Browse Source

国强让把校验先拿掉

hella_online_20240919
yufei_wang 2 months ago
parent
commit
39ae50a2e2
  1. 39
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

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

@ -865,25 +865,26 @@ const handleSelectionPublish = async ()=>{
// / // /
const detailValidate = async (data) => { const detailValidate = async (data) => {
let tag = false return true
await PurchaseDetailApi.getPurchaseDetailPageCheckData({ // let tag = false
number: data.poNumber, // await PurchaseDetailApi.getPurchaseDetailPageCheckData({
lineNumber: data.poLine // number: data.poNumber,
}).then(res => { // lineNumber: data.poLine
if(res.list[0].type == 'DISCRETE'){// // }).then(res => {
if (data.planQty > res.list[0].orderQty - res.list[0].plannedQty) { // if(res.list[0].type == 'DISCRETE'){//
message.error(t('ts.要货计划数量不得大于订单数量-已计划数量')) // if (data.planQty > res.list[0].orderQty - res.list[0].plannedQty) {
tag = false // message.error(t('ts.-'))
} else { // tag = false
tag = true // } else {
} // tag = true
}else{ // }
tag = true // }else{
} // tag = true
}).catch(err =>{ // }
console.log(err); // }).catch(err =>{
}) // console.log(err);
return tag // })
// return tag
} }
/** 导入 */ /** 导入 */

Loading…
Cancel
Save