From 76e561bb8b4657f49599630c848e2a91d80b0e01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Fri, 12 Jan 2024 10:38:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E6=96=99=E8=AE=A1=E5=88=92=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../preparetoissueplan/preparetoissueMain/index.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue b/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue index d4c53011a..7949496c0 100644 --- a/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue +++ b/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue @@ -110,8 +110,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => row['itemCode'] = val[0]['componentItemCode'] } else { row[formField] = val[0][searchField] + row['toLocationCode'] = val[0]['rawLocationCode'] } - row['toLocationCode'] = val[0]['rawLocationCode'] } else { const setV = {} setV[formField] = val[0][searchField] @@ -169,7 +169,11 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { nextTick(() => { const setV = {} setV[formField] = val[0][searchField] - setV['toLocationCode'] = val[0]['rawLocationCode'] + if (formField == 'itemCode') { + setV['itemCode'] = val[0]['componentItemCode'] + } else { + setV['toLocationCode'] = val[0]['rawLocationCode'] + } formRef.setValues(setV) }) }