update 无来源转库页面货位下拉框方法
This commit is contained in:
parent
86270ba438
commit
5eaed3f953
@ -200,7 +200,6 @@
|
|||||||
<el-select
|
<el-select
|
||||||
size="small"
|
size="small"
|
||||||
filterable
|
filterable
|
||||||
@change="changeLocW"
|
|
||||||
@blur="focusLocW"
|
@blur="focusLocW"
|
||||||
v-model="desParams.params.ERPLOCATION"
|
v-model="desParams.params.ERPLOCATION"
|
||||||
placeholder="下拉选择仓库"
|
placeholder="下拉选择仓库"
|
||||||
@ -227,9 +226,9 @@
|
|||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in locDecList2"
|
v-for="item in locDecList2"
|
||||||
:key="item.VALUE"
|
:key="item.STORAGENAME"
|
||||||
:label="item.LABEL"
|
:label="item.DESCRIPTION"
|
||||||
:value="item.VALUE"
|
:value="item.STORAGENAME"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -289,6 +288,7 @@ import { bTableHeight } from '../../../composables/calcTableHeight'
|
|||||||
import { getORG } from '@/api/auth'
|
import { getORG } from '@/api/auth'
|
||||||
import { cals } from '@/utils/cal'
|
import { cals } from '@/utils/cal'
|
||||||
import { search } from '@/api/wareHouse'
|
import { search } from '@/api/wareHouse'
|
||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableHeight(330)
|
const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableHeight(330)
|
||||||
const queryFormRef = ref(ElForm)
|
const queryFormRef = ref(ElForm)
|
||||||
@ -507,6 +507,7 @@ onMounted(() => {
|
|||||||
|
|
||||||
updateTableHeight()
|
updateTableHeight()
|
||||||
window.addEventListener('resize', handleResize)
|
window.addEventListener('resize', handleResize)
|
||||||
|
getStorageSpecLocationList()
|
||||||
})
|
})
|
||||||
|
|
||||||
function handleInput(val: any) {
|
function handleInput(val: any) {
|
||||||
@ -752,7 +753,7 @@ async function changeLocW() {
|
|||||||
function getlocDec(query: any) {
|
function getlocDec(query: any) {
|
||||||
// console.log(query)
|
// console.log(query)
|
||||||
let arr = state.locDecListAll.filter((item: any) => {
|
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)
|
// console.log(arr)
|
||||||
if (arr.length > 50) {
|
if (arr.length > 50) {
|
||||||
@ -1032,6 +1033,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.locDecListAll = res.resultObj;
|
||||||
|
});
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user