From 6036bf343d221677626f1171e2ad56dbd10a4b8d Mon Sep 17 00:00:00 2001 From: 18110972313 <780768673@qq.com> Date: Mon, 28 Apr 2025 09:59:48 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=97=A0=E6=9D=A5=E6=BA=90=E8=BD=AC?= =?UTF-8?q?=E5=BA=93=E9=A1=B5=E9=9D=A2=EF=BC=8C=E5=A2=9E=E5=8A=A0=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E5=BA=93=E5=AD=98=E7=BB=84=E7=BB=87=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E8=81=94=E5=8A=A8=E8=BD=AC=E5=BA=93=E7=9A=84?= =?UTF-8?q?=E7=9B=AE=E7=9A=84=E7=BB=84=E7=BB=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/stocked/NoOrMoveLibrary/index.vue | 36 ++++++++++++++++----- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/src/views/stocked/NoOrMoveLibrary/index.vue b/src/views/stocked/NoOrMoveLibrary/index.vue index 9362139..e88cda2 100644 --- a/src/views/stocked/NoOrMoveLibrary/index.vue +++ b/src/views/stocked/NoOrMoveLibrary/index.vue @@ -199,14 +199,14 @@ @@ -351,6 +351,7 @@ const state = reactive({ MATERIALSPECNAME: '', ERPLOCATION: '', ERPFACTORY: '', + destinationErpFactory: '', LOCATIONNAME: '', CHARGE: '', DESC_CN:'', @@ -629,13 +630,21 @@ function changeFac(e: any) { console.log(e) state.queryParams.params.ERPLOCATION = '' state.queryParamsERPLocation.params.ERPFACTORYNAME = e + + state.queryParams.params.destinationErpFactory = '' + state.queryParams.params.destinationErpFactory = e + state.spcERPFactoryList = [] as any ERPLocationQuery() - if(e.ERPFACTORY == "1010" || e.ERPFACTORY == "1020") { + if(e == "1010" || e == "1020") { state.spcERPFactoryList = state.ERPFactoryList.filter((item: any) => - (e.ERPFACTORY == "1010" || e.ERPFACTORY == "1020") + (item.ERPFACTORY === "1010" || item.ERPFACTORY === "1020") + ) + }else { + state.spcERPFactoryList = state.ERPFactoryList.filter((item: any) => + (item.ERPFACTORY === e) ) } - + } function changeERPLocation(e: any) { // console.log(e) @@ -659,9 +668,20 @@ function ERPFactoryQuery() { getORG({ orgNo: null }) .then((res: any) => { state.ERPFactoryList = res.resultObj + //state.spcERPFactoryList = res.resultObj state.ERPFactoryList.unshift({ ERPFACTORY: '' }) + if(state.queryParams.params.ERPFACTORY == "1010" || state.queryParams.params.ERPFACTORY == "1020") { + state.spcERPFactoryList = state.ERPFactoryList.filter((item: any) => + (item.ERPFACTORY === "1010" || item.ERPFACTORY === "1020") + ) + }else { + state.spcERPFactoryList = state.ERPFactoryList.filter((item: any) => + (item.ERPFACTORY === state.queryParams.params.ERPFACTORY) + ) + } + state.queryParams.params.destinationErpFactory = state.queryParams.params.ERPFACTORY }) .catch(() => {}) } @@ -1016,8 +1036,8 @@ async function submit() { row.AIMERPLOCATION = state.desParams.params.ERPLOCATION row.AIMLOCATIONNAME = state.desParams.params.LOCATIONNAME - row.AIMERPFACTORY = row.ERPFACTORY - + //row.AIMERPFACTORY = row.ERPFACTORY + row.AIMERPFACTORY = state.queryParams.params.destinationErpFactory }) console.log('BoxListInfo',BoxListInfo)