Commit 68926d81 by 赵增煜

增加待录入状态

parent 9e4b5128
...@@ -303,7 +303,7 @@ public function create(Request $request) ...@@ -303,7 +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->status = PrescriptionModel::PRESCRIPTION_STATUS_ENTERED;
$prescription_number = 0; $prescription_number = 0;
if ($prescription->save()) { if ($prescription->save()) {
$prescription_number = $prescription->id; $prescription_number = $prescription->id;
......
...@@ -22,7 +22,7 @@ class PrescriptionModel extends Model ...@@ -22,7 +22,7 @@ class PrescriptionModel extends Model
]; ];
// 审方状态[0=待开方,1=待审方,2=审方成功] // 审方状态[0=待开方,1=待审方,2=审方成功]
const PRESCRIPTION_STATUS_INIT = -1; const PRESCRIPTION_STATUS_ENTERED = -1;
const PRESCRIPTION_STATUS_PENDING = 0; const PRESCRIPTION_STATUS_PENDING = 0;
...@@ -32,7 +32,7 @@ class PrescriptionModel extends Model ...@@ -32,7 +32,7 @@ class PrescriptionModel extends Model
// 审方状态-文字映射 // 审方状态-文字映射
const PRESCRIPTION_STATUS_MAP = [ const PRESCRIPTION_STATUS_MAP = [
self::PRESCRIPTION_STATUS_INIT => '未录入', self::PRESCRIPTION_STATUS_ENTERED => '未录入',
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