采购单优化
This commit is contained in:
@@ -15,6 +15,7 @@ class PurchaseCellUpdateRequest extends BaseFormRequest
|
||||
{
|
||||
return [
|
||||
'quantity' => 'required|integer|min:0',
|
||||
'price' => 'required|numeric|min:0',
|
||||
'weight' => 'nullable|numeric|min:0',
|
||||
];
|
||||
}
|
||||
@@ -25,6 +26,9 @@ class PurchaseCellUpdateRequest extends BaseFormRequest
|
||||
'quantity.required' => '数量不能为空',
|
||||
'quantity.integer' => '数量必须为整数',
|
||||
'quantity.min' => '数量不能小于 0',
|
||||
'price.required' => '单价不能为空',
|
||||
'price.numeric' => '单价必须为数字',
|
||||
'price.min' => '单价不能小于 0',
|
||||
'weight.numeric' => '实际称重必须为数字',
|
||||
'weight.min' => '实际称重不能小于 0',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user