diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue index b36c4f3c3..6d0455381 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue @@ -865,25 +865,26 @@ const handleSelectionPublish = async ()=>{ // 子表新增/编辑校验 const detailValidate = async (data) => { - let tag = false - await PurchaseDetailApi.getPurchaseDetailPageCheckData({ - number: data.poNumber, - lineNumber: data.poLine - }).then(res => { - if(res.list[0].type == 'DISCRETE'){//只有离散单需要这个校验 - if (data.planQty > res.list[0].orderQty - res.list[0].plannedQty) { - message.error(t('ts.要货计划数量不得大于订单数量-已计划数量')) - tag = false - } else { - tag = true - } - }else{ - tag = true - } - }).catch(err =>{ - console.log(err); - }) - return tag + return true + // let tag = false + // await PurchaseDetailApi.getPurchaseDetailPageCheckData({ + // number: data.poNumber, + // lineNumber: data.poLine + // }).then(res => { + // if(res.list[0].type == 'DISCRETE'){//只有离散单需要这个校验 + // if (data.planQty > res.list[0].orderQty - res.list[0].plannedQty) { + // message.error(t('ts.要货计划数量不得大于订单数量-已计划数量')) + // tag = false + // } else { + // tag = true + // } + // }else{ + // tag = true + // } + // }).catch(err =>{ + // console.log(err); + // }) + // return tag } /** 导入 */