From a03daf1d6b12c222409de1b77dbc64823088a38c Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Mon, 22 Jul 2024 15:10:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AA=8C=E8=AF=81=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../preparetoissueplan/preparetoissueMain/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue b/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue index 91e9e534b..bdb8faf57 100644 --- a/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue +++ b/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue @@ -113,6 +113,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => if (type == 'tableForm') { // 明细查询页赋值 if (formField == 'itemCode') { + if(tableData.value.find(item1=>item1['itemCode'] == val[0]['componentItemCode'])){ + message.warning(`物料${val[0]['componentItemCode']}已经存在`) + return + } row['itemCode'] = val[0]['componentItemCode'] row['uom'] = val[0]['componentUom'] } else if(formField == 'workStation'){