采购单优化

This commit is contained in:
liu
2026-08-12 18:08:23 +08:00
parent d4bdabb866
commit c2c56408a0
4 changed files with 23 additions and 133 deletions
@@ -20,7 +20,6 @@ class PurchaseRowUpdateRequest extends BaseFormRequest
'product_spec' => 'nullable|string|max:100',
'unit' => 'nullable|string|max:20',
'cost_price' => 'nullable|numeric|min:0',
'weight' => 'nullable|numeric|min:0',
'sync_product' => 'nullable|boolean',
];
}
@@ -34,8 +33,6 @@ class PurchaseRowUpdateRequest extends BaseFormRequest
'unit.max' => '单位不能超过 20 字',
'cost_price.numeric' => '采购成本必须为数字',
'cost_price.min' => '采购成本不能小于 0',
'weight.numeric' => '实际称重必须为数字',
'weight.min' => '实际称重不能小于 0',
];
}
}