|
|
@ -108,7 +108,6 @@ class index extends publicBase { |
|
|
|
$uinfo = $this->_check_login(); |
|
|
|
|
|
|
|
$id = $this->post('id') + 0; |
|
|
|
$is_delete = $this->post('is_delete') + 0; |
|
|
|
$name = trim($this->post('name')); |
|
|
|
$source = trim($this->post('source')); |
|
|
|
$method = trim($this->post('method')); |
|
|
@ -121,8 +120,7 @@ class index extends publicBase { |
|
|
|
$request_times = $mformula->requestLimit(sprintf(_QR_REQUEST_LIMIT, $request_id), 1, 60); |
|
|
|
if (!$request_times) $this->ajax_json(false, $mformula->getError()); |
|
|
|
|
|
|
|
//新增药方 |
|
|
|
$id = $mformula->saveFormula($uinfo['uid'], $id, $name, $source, $method, $herbs, $is_delete); |
|
|
|
$id = $mformula->saveFormula($uinfo['uid'], $id, $name, $source, $method, $herbs); |
|
|
|
if (!$id) $this->ajax_json(false, $mformula->getError()); |
|
|
|
|
|
|
|
$this->ajax_json(true, '请求成功', array('id' => $id)); |
|
|
@ -365,10 +363,10 @@ class index extends publicBase { |
|
|
|
//导出全部医案 |
|
|
|
if ($id == 0) { |
|
|
|
$start_date = $this->post('start_date'); |
|
|
|
if (empty($start_date)) $this->ajax_json(false, '请选择导出开始时间'); |
|
|
|
//if (empty($start_date)) $this->ajax_json(false, '请选择导出开始时间'); |
|
|
|
|
|
|
|
$end_date = $this->post('end_date'); |
|
|
|
if (empty($end_date)) $this->ajax_json(false, '请选择导出结束时间'); |
|
|
|
//if (empty($end_date)) $this->ajax_json(false, '请选择导出结束时间'); |
|
|
|
|
|
|
|
$post_url = USER_CASE_LIST_HTML_URL; |
|
|
|
$data = array( |
|
|
|