Commit 9e4b5128 by 赵增煜

增加待录入状态

parent 78ccae4d
...@@ -303,6 +303,7 @@ public function create(Request $request) ...@@ -303,6 +303,7 @@ public function create(Request $request)
$prescription->review_at = $review_at; $prescription->review_at = $review_at;
$prescription->is_abnormal = $is_abnormal; $prescription->is_abnormal = $is_abnormal;
$prescription->open_source = $open_source; $prescription->open_source = $open_source;
$prescription->status = PrescriptionModel::PRESCRIPTION_STATUS_INIT;
$prescription_number = 0; $prescription_number = 0;
if ($prescription->save()) { if ($prescription->save()) {
$prescription_number = $prescription->id; $prescription_number = $prescription->id;
......
...@@ -22,6 +22,8 @@ class PrescriptionModel extends Model ...@@ -22,6 +22,8 @@ class PrescriptionModel extends Model
]; ];
// 审方状态[0=待开方,1=待审方,2=审方成功] // 审方状态[0=待开方,1=待审方,2=审方成功]
const PRESCRIPTION_STATUS_INIT = -1;
const PRESCRIPTION_STATUS_PENDING = 0; const PRESCRIPTION_STATUS_PENDING = 0;
const PRESCRIPTION_STATUS_REVIEWING = 1; const PRESCRIPTION_STATUS_REVIEWING = 1;
...@@ -30,6 +32,7 @@ class PrescriptionModel extends Model ...@@ -30,6 +32,7 @@ class PrescriptionModel extends Model
// 审方状态-文字映射 // 审方状态-文字映射
const PRESCRIPTION_STATUS_MAP = [ const PRESCRIPTION_STATUS_MAP = [
self::PRESCRIPTION_STATUS_INIT => '未录入',
self::PRESCRIPTION_STATUS_PENDING => '待开方', self::PRESCRIPTION_STATUS_PENDING => '待开方',
self::PRESCRIPTION_STATUS_REVIEWING => '待审方', self::PRESCRIPTION_STATUS_REVIEWING => '待审方',
self::PRESCRIPTION_STATUS_SUCCESS => '审方成功', self::PRESCRIPTION_STATUS_SUCCESS => '审方成功',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment