采购单优化

This commit is contained in:
liu
2026-08-12 23:20:05 +08:00
parent c2c56408a0
commit 0211e5e98d
22 changed files with 768 additions and 1425 deletions
@@ -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',
];