From 5eaed3f953bca11544caeff6f69be7853d9cf862 Mon Sep 17 00:00:00 2001 From: 18110972313 <780768673@qq.com> Date: Sun, 27 Apr 2025 14:47:19 +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=E8=B4=A7=E4=BD=8D=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E6=A1=86=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/stocked/NoOrMoveLibrary/index.vue | 25 ++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/src/views/stocked/NoOrMoveLibrary/index.vue b/src/views/stocked/NoOrMoveLibrary/index.vue index a253e84..029ba7c 100644 --- a/src/views/stocked/NoOrMoveLibrary/index.vue +++ b/src/views/stocked/NoOrMoveLibrary/index.vue @@ -200,7 +200,6 @@ @@ -289,6 +288,7 @@ import { bTableHeight } from '../../../composables/calcTableHeight' import { getORG } from '@/api/auth' import { cals } from '@/utils/cal' import { search } from '@/api/wareHouse' +import request from '@/utils/request' const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableHeight(330) const queryFormRef = ref(ElForm) @@ -507,6 +507,7 @@ onMounted(() => { updateTableHeight() window.addEventListener('resize', handleResize) + getStorageSpecLocationList() }) function handleInput(val: any) { @@ -752,7 +753,7 @@ async function changeLocW() { 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) { @@ -1032,6 +1033,20 @@ async function submit() { // 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; + }); +}