Browse Source

计划数量

master_hella_20240701
wangyufei 4 months ago
parent
commit
a9a556ac96
  1. 37
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

37
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -641,23 +641,26 @@ const handleSelectionPublish = async ()=>{
data.subList = [] data.subList = []
let flag = false let flag = false
for (let item of tableData.value) { for (let item of tableData.value) {
await PurchaseDetailApi.getPurchaseDetailPageCheckData({ if(item.planQty>0){
number: item.poNumber, data.subList.push(item) //
lineNumber: item.poLine, }
}).then(res => { // await PurchaseDetailApi.getPurchaseDetailPageCheckData({
console.log("【要货计划】-每条数据结果",item) // number: item.poNumber,
if(res.list[0].type == 'DISCRETE'){// // lineNumber: item.poLine,
if (item.planQty > res.list[0].orderQty - res.list[0].plannedQty) { // }).then(res => {
flag = true; // console.log("-",item)
message.error(t('ts.要货计划数量不得大于订单数量-已计划数量')) // if(res.list[0].type == 'DISCRETE'){//
return // if (item.planQty > res.list[0].orderQty - res.list[0].plannedQty) {
}else{ // flag = true;
data.subList.push(item) // // message.error(t('ts.-'))
} // return
}else{ // }else{
data.subList.push(item) // // data.subList.push(item) //
} // }
}) // }else{
// data.subList.push(item) //
// }
// })
} }
if(flag){ if(flag){
formRef.value.formLoading = false formRef.value.formLoading = false

Loading…
Cancel
Save