Browse Source

数量提示

master_hella_20240701
yufei0306 5 months ago
parent
commit
b83c783292
  1. 11
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

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

@ -826,11 +826,12 @@ const tableSelectionDelete = (selection) => {
//
const submitForm = async (formType, data) => {
if(tableData.value.find(item=>Number(item.returnedQty)>Number(item.receiptQty))){
message.warning("退货数量不能大于收获数量")
return;
}
if(tableData.value.find(item=>Number(item.returnedQty)>Number(item.inventoryBalance))){
console.log('submitForm',tableData.value)
// if(tableData.value.find(item=>Number(item.returnedQty)>Number(item.receiptQty))){
// message.warning("退")
// return;
// }
if(tableData.value.find(item=>Number(item.qty)>Number(item.inventoryBalance))){
message.warning("退货数量不能大于库存余额")
return;
}

Loading…
Cancel
Save