Browse Source

录方后台

pull/1/head
pengda 8 months ago
parent
commit
a4ae3547d0
  1. 8
      control/index.php
  2. 1
      model/mFormula.php

8
control/index.php

@ -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(

1
model/mFormula.php

@ -283,7 +283,6 @@ class mFormula extends mBase {
$temp['num'] = 0;
//$temp['num'] = $this->convertToNum($name, $num, false);
}
$temp['sort'] = $key;
$formula_herb[] = $temp;

Loading…
Cancel
Save