update 产成品入库修改库位下拉框代码回退

This commit is contained in:
18110972313 2025-05-19 10:17:13 +08:00
parent 3f7f9fe053
commit aa40c4d414

View File

@ -140,6 +140,7 @@
<el-select <el-select
size="small" size="small"
filterable filterable
@change="changeLocW"
v-model="desParams.params.ERPLOCATION" v-model="desParams.params.ERPLOCATION"
placeholder="下拉选择仓库" placeholder="下拉选择仓库"
> >
@ -164,9 +165,9 @@
> >
<el-option <el-option
v-for="item in locDecList2" v-for="item in locDecList2"
:key="item.STORAGENAME" :key="item.VALUE"
:label="item.DESCRIPTION" :label="item.LABEL"
:value="item.STORAGENAME" :value="item.VALUE"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -220,7 +221,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 { getOpCode } from '@/api/opcode' import { getOpCode } from '@/api/opcode'
import request from '@/utils/request' // 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)
@ -426,7 +427,7 @@ onMounted(() => {
let pwd: any = localStorage.getItem('remeberPwd') let pwd: any = localStorage.getItem('remeberPwd')
ERPFactoryQuery() ERPFactoryQuery()
queryInfo() queryInfo()
getStorageSpecLocationList() // getStorageSpecLocationList()
updateTableHeight() updateTableHeight()
window.addEventListener('resize', handleResize) window.addEventListener('resize', handleResize)
}) })
@ -576,7 +577,7 @@ function getlocDec(query: any) {
// console.log(query) // console.log(query)
//let arr = state.locDecListAll; //let arr = state.locDecListAll;
let arr = state.locDecListAll.filter((item: any) => { let arr = state.locDecListAll.filter((item: any) => {
return item.STORAGENAME.includes(query) || item.STORAGENAME.includes(query) return item.LABEL.includes(query) || item.VALUE.includes(query)
}) })
// console.log(arr) // console.log(arr)
if (arr.length > 50) { if (arr.length > 50) {
@ -682,7 +683,7 @@ async function submit() {
// state.loading2 = false // state.loading2 = false
state.Button_state = false state.Button_state = false
} }
/*
async function getStorageSpecLocationList() { async function getStorageSpecLocationList() {
let erpLocation = JSON.parse(localStorage.getItem('orgNo')); let erpLocation = JSON.parse(localStorage.getItem('orgNo'));
request({ request({
@ -696,7 +697,7 @@ async function getStorageSpecLocationList() {
state.locDecListAll = res.resultObj; state.locDecListAll = res.resultObj;
console.log(state.locDecList2) console.log(state.locDecList2)
}); });
} }*/
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">