update 优化货位移转页面货位下拉框方法
This commit is contained in:
parent
dfbc800b69
commit
86270ba438
@ -255,6 +255,7 @@ import { IFTRUE } from '@/utils/CommonUtil'
|
||||
import { bTableHeight } from '../../../composables/calcTableHeight'
|
||||
import { getORG } from '@/api/auth'
|
||||
import { search } from '@/api/wareHouse'
|
||||
import request from '@/utils/request'
|
||||
|
||||
const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableHeight(240)
|
||||
const queryFormRef = ref(ElForm)
|
||||
@ -450,6 +451,7 @@ onMounted(() => {
|
||||
|
||||
let pwd: any = localStorage.getItem('remeberPwd');
|
||||
state.ERPFACTORY = JSON.parse(localStorage.getItem('orgNo')) || '';
|
||||
getStorageSpecLocationList()
|
||||
})
|
||||
// 更新列
|
||||
function updateList(col: any) {
|
||||
@ -566,7 +568,7 @@ function handleOuterClick(isVisible: any) {
|
||||
return
|
||||
}
|
||||
}
|
||||
StorageList(firstLocation)
|
||||
//StorageList(firstLocation)
|
||||
}
|
||||
}
|
||||
|
||||
@ -701,6 +703,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.StorageSelectAll = res.resultObj;
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
Loading…
x
Reference in New Issue
Block a user