update 优化货位移转页面货位下拉框方法

This commit is contained in:
18110972313 2025-04-27 14:37:55 +08:00
parent dfbc800b69
commit 86270ba438

View File

@ -255,6 +255,7 @@ import { IFTRUE } from '@/utils/CommonUtil'
import { bTableHeight } from '../../../composables/calcTableHeight' import { bTableHeight } from '../../../composables/calcTableHeight'
import { getORG } from '@/api/auth' import { getORG } from '@/api/auth'
import { search } from '@/api/wareHouse' import { search } from '@/api/wareHouse'
import request from '@/utils/request'
const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableHeight(240) const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableHeight(240)
const queryFormRef = ref(ElForm) const queryFormRef = ref(ElForm)
@ -450,6 +451,7 @@ onMounted(() => {
let pwd: any = localStorage.getItem('remeberPwd'); let pwd: any = localStorage.getItem('remeberPwd');
state.ERPFACTORY = JSON.parse(localStorage.getItem('orgNo')) || ''; state.ERPFACTORY = JSON.parse(localStorage.getItem('orgNo')) || '';
getStorageSpecLocationList()
}) })
// //
function updateList(col: any) { function updateList(col: any) {
@ -566,7 +568,7 @@ function handleOuterClick(isVisible: any) {
return return
} }
} }
StorageList(firstLocation) //StorageList(firstLocation)
} }
} }
@ -701,6 +703,20 @@ async function submit() {
state.loading2 = false state.loading2 = false
state.Button_state = 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.StorageSelectAll = res.resultObj;
});
}
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">