From 866fd5b6f84dfa41acfcbee8c1502fd9967fc6cd Mon Sep 17 00:00:00 2001 From: 18110972313 <780768673@qq.com> Date: Sun, 27 Apr 2025 13:33:05 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E7=86=9F=E5=8C=96=E5=BA=93=E8=BF=87?= =?UTF-8?q?=E8=B4=A6=E4=BF=AE=E6=94=B9=E7=9B=AE=E7=9A=84=E8=B4=A7=E4=BD=8D?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E6=A1=86=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MaturationLibraryToERP/index.vue | 27 +++++++++++++++---- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/src/views/buildWareHouse/MaturationLibraryToERP/index.vue b/src/views/buildWareHouse/MaturationLibraryToERP/index.vue index 35299c7..f4eb21c 100644 --- a/src/views/buildWareHouse/MaturationLibraryToERP/index.vue +++ b/src/views/buildWareHouse/MaturationLibraryToERP/index.vue @@ -135,7 +135,6 @@ @@ -160,9 +159,9 @@ > @@ -216,6 +215,7 @@ import { getORG } from '@/api/auth' import { cals } from '@/utils/cal' import { getOpCode } from '@/api/opcode' + import request from '@/utils/request' const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableHeight(330) const queryFormRef = ref(ElForm) @@ -427,6 +427,8 @@ updateTableHeight() window.addEventListener('resize', handleResize) + StorageList() + getStorageSpecLocationList() }) function getRKey(row: any) { @@ -573,7 +575,7 @@ function getlocDec(query: any) { // console.log(query) let arr = state.locDecListAll.filter((item: any) => { - return item.LABEL.includes(query) || item.VALUE.includes(query) + return item.STORAGENAME.includes(query) || item.STORAGENAME.includes(query) }) // console.log(arr) if (arr.length > 50) { @@ -679,6 +681,21 @@ // state.loading2 = false state.Button_state = false } + + async function getStorageSpecLocationList() { + let erpLocation = JSON.parse(localStorage.getItem('orgNo')); + request({ + url: '/api/api/storage/getLocationNameForERPLocation', + method: 'post', + data: { + erpLocation: erpLocation, + SITENAME: 'SDK', + }, + }).then((res: any) => { + state.locDecListAll = res.resultObj; + console.log(state.locDecList2) + }); + }