From d4e71492137276f6d83a10dcef08fbc521cf8b9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E9=A3=9E?= Date: Sun, 27 Apr 2025 19:01:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E6=97=A0=E6=9D=A5?= =?UTF-8?q?=E6=BA=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/stocked/NoOrMoveLibrary/index.vue | 42 +++++++++++++++++++-- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/src/views/stocked/NoOrMoveLibrary/index.vue b/src/views/stocked/NoOrMoveLibrary/index.vue index a253e84..64c5ee1 100644 --- a/src/views/stocked/NoOrMoveLibrary/index.vue +++ b/src/views/stocked/NoOrMoveLibrary/index.vue @@ -195,6 +195,23 @@
+ + + + + + + { @@ -498,7 +518,11 @@ onMounted(() => { { header: '备注', field: 'REMARK', hide: false } ] let pwd: any = localStorage.getItem('remeberPwd') - // state.orgNo = JSON.parse(pwd).orgNo; + if(pwd) { + state.orgNo = JSON.parse(pwd).orgNo; + state.queryParams.params.ERPFACTORY = state.orgNo + } + // state.queryParams.params.ERPFACTORY = JSON.parse(pwd).orgNo; // state.queryParamsERPLocation.params.ERPFACTORYNAME = JSON.parse(pwd).orgNo; ERPFactoryQuery() @@ -601,10 +625,16 @@ async function Storage2List(firstLocation: any) { } } function changeFac(e: any) { - // console.log(e) + console.log(e) state.queryParams.params.ERPLOCATION = '' state.queryParamsERPLocation.params.ERPFACTORYNAME = e ERPLocationQuery() + if(e.ERPFACTORY == "1010" || e.ERPFACTORY == "1020") { + state.spcERPFactoryList = state.ERPFactoryList.filter((item: any) => + (e.ERPFACTORY == "1010" || e.ERPFACTORY == "1020") + ) + } + } function changeERPLocation(e: any) { // console.log(e) @@ -651,6 +681,12 @@ const updateList = (col: any) => { } function queryInfo() { state.queryParams.pageNum = 1 + if(!state.queryParams.params.ERPFACTORY) { + ElMessageBox.alert('请选择库存组织!', '提醒框', { + confirmButtonText: 'OK' + }) + } + handleQuery() } async function handleQuery() {