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

Loading…
Cancel
Save