Browse Source

退货数量不能大于库存余额

master_hella_20240701
yufei0306 6 months ago
parent
commit
27433c9f0a
  1. 4
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

4
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

@ -830,6 +830,10 @@ const submitForm = async (formType, data) => {
message.warning("退货数量不能大于收获数量")
return;
}
if(tableData.value.find(item=>Number(item.returnedQty)>Number(item.inventoryBalance))){
message.warning("退货数量不能大于库存余额")
return;
}
data.subList = tableData.value //
try {
if (formType === 'create') {

Loading…
Cancel
Save