新增
This commit is contained in:
@@ -16,10 +16,11 @@ class OrderValidate extends BaseValidate
|
||||
protected $rule = [
|
||||
'id' => 'require|integer',
|
||||
'patient_id' => 'require|integer',
|
||||
'order_type' => 'require|in:1,2,3',
|
||||
'patient_id_optional' => 'integer',
|
||||
'order_type' => 'require|in:1,2,3,4,5,6,7',
|
||||
'amount' => 'require|float',
|
||||
'status' => 'require|in:1,2,3,4',
|
||||
'payment_method' => 'in:alipay,wechat',
|
||||
'payment_method' => 'in:alipay,wechat,wechat_work',
|
||||
'remark' => 'string|max:500',
|
||||
'order_no' => 'string|max:50',
|
||||
'is_supplement' => 'in:0,1',
|
||||
@@ -37,7 +38,7 @@ class OrderValidate extends BaseValidate
|
||||
|
||||
protected $scene = [
|
||||
'create' => ['patient_id', 'order_type', 'amount'],
|
||||
'edit' => ['id', 'remark'],
|
||||
'edit' => ['id'],
|
||||
'detail' => ['id'],
|
||||
'pay' => ['payment_method'],
|
||||
'cancel' => ['id'],
|
||||
|
||||
Reference in New Issue
Block a user