From 886f8742eaab87a54a3213329307133d3c8d9d0a Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Mon, 28 Oct 2024 14:29:32 +0800 Subject: [PATCH] =?UTF-8?q?YT-514=E4=BE=9B=E5=BA=94=E5=95=86=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E5=8F=91=E8=B4=A7=E7=94=B3=E8=AF=B7=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=8F=91=E8=B4=A7=E6=95=B0=E9=87=8F=E5=BA=94=E8=AF=A5=E6=A0=B9?= =?UTF-8?q?=E6=8D=AE=E8=AE=A2=E5=8D=95=E8=A1=8C=E8=BF=9B=E8=A1=8C=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=EF=BC=8C=E4=B8=8D=E6=98=AF=E6=A0=B9=E6=8D=AE=E7=89=A9?= =?UTF-8?q?=E6=96=99=E4=BB=A3=E7=A0=81=E8=BF=9B=E8=A1=8C=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierdeliverBasicForm.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue index 4b23bcd71..33a6e4fe7 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue @@ -363,7 +363,10 @@ const submitForm = async (formType, submitData) => { if(item['allowOverShipment']!='TRUE'){ let qtyDefault = item['planQty'] - item['shippedQty'] if(item['qty']>qtyDefault){ - itemCodes.push(item['itemCode']) + itemCodes.push({ + itemCode:item['itemCode'], + poLine:item['poLine'] + }) } if(!itemCodeSum.includes(item['itemCode'])){ @@ -379,7 +382,11 @@ const submitForm = async (formType, submitData) => { } }) if(itemCodes.length>0){ - message.error(`${itemCodes.join(',')}${t('ts.不允许超发')}`) + let str = '' + itemCodes.forEach(cur => { + str += `【物料号${cur.itemCode}-订单行${cur.poLine}】` + }) + message.error(`${str}${t('ts.不允许超发')}`) return } if (itemCodeSum.length > 0) { @@ -436,7 +443,7 @@ const inputNumberChange = (field, val,row, index) => { if(row['allowOverShipment']!='TRUE'){ let qtyDefault = row['planQty'] - row['shippedQty'] if (row['qty'] > qtyDefault) { - message.error(`${row['itemCode']}${t('ts.不允许超发')}`) + message.error(`【物料号${row['itemCode']}-订单行${row['poLine']}】${t('ts.不允许超发')}`) } let planQty = row['planQty'] //计划数量 let sumQty = tableData.value.filter(item1=>item1['itemCode']==row['itemCode'] && item1['poLine']==row['poLine'] ).reduce((prev, item1) => prev + item1['qty'],0)