关闭老系统的中药订单同步功能
This commit is contained in:
@@ -24,12 +24,13 @@ class RegisterForm extends BaseModel
|
||||
public $user_patient_id;
|
||||
public $service_user_id;
|
||||
public $register_id;
|
||||
public $register_type;
|
||||
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[['store_id', 'user_id','register_id'], 'integer'],
|
||||
[['user_patient_id', 'service_user_id'], 'required']
|
||||
[['user_patient_id', 'service_user_id', 'register_type'], 'required']
|
||||
];
|
||||
}
|
||||
|
||||
@@ -117,6 +118,7 @@ class RegisterForm extends BaseModel
|
||||
$UserRegister->order_no = FuncHelper::generate_order_no('SN');
|
||||
$UserRegister->user_patient_id = $this->user_patient_id;
|
||||
$UserRegister->service_user_id = $this->service_user_id;
|
||||
$UserRegister->type = $this->register_type;
|
||||
$UserRegister->depart_id = $ServiceUser->docInfo->depart_id;
|
||||
$UserRegister->order_number = ($order_number['order_number']??0 ) + 1;
|
||||
$UserRegister->price = $ServiceUser->docService->register_price;
|
||||
|
||||
@@ -25,6 +25,9 @@ class RegisterController extends BaseAppController
|
||||
public function actionRegister()
|
||||
{
|
||||
$post=\Yii::$app->request->post();
|
||||
if (!isset($post['register_type'])) {
|
||||
$post['register_type'] = '0';
|
||||
}
|
||||
$RegisterForm=new RegisterForm();
|
||||
$RegisterForm->attributes=$post;
|
||||
return $RegisterForm->save();
|
||||
@@ -131,6 +134,7 @@ class RegisterController extends BaseAppController
|
||||
'order_number','price',
|
||||
'patient'=>'patient.name',
|
||||
'idcard'=>'patient.id_card',
|
||||
'register_type'=>'type',
|
||||
'mobile'=>'patient.mobile',
|
||||
'status','is_pay','created_at','is_cancel',
|
||||
'cancel_time'=>function($m){
|
||||
|
||||
Reference in New Issue
Block a user