订单修改金额

This commit is contained in:
2026-05-08 16:07:39 +08:00
parent f20a45a1ad
commit 14735af0b3
7 changed files with 252 additions and 3 deletions
@@ -36,6 +36,7 @@ class PrescriptionOrderValidate extends BaseValidate
'patient_name' => 'require|max:50',
'phone' => 'require|max:20',
'phone_tail' => 'max:20|regex:/^\\d*$/',
'amount_update' => 'require|float|gt:0',
];
protected $message = [
@@ -50,6 +51,8 @@ class PrescriptionOrderValidate extends BaseValidate
'patient_name.require' => '请输入患者姓名',
'phone.require' => '请输入手机号',
'phone_tail.regex' => '手机后四位仅支持数字',
'amount_update.require' => '请输入订单金额',
'amount_update.gt' => '订单金额必须大于0',
];
protected $scene = [
@@ -77,5 +80,6 @@ class PrescriptionOrderValidate extends BaseValidate
'submitGancaoRecipel' => ['id'],
'previewGancaoRecipel' => ['id'],
'patchPrescriptionPatient' => ['id', 'patient_name', 'phone'],
'updateAmount' => ['id', 'amount_update'],
];
}