update 调拨入库修改库位下拉框代码回退
This commit is contained in:
parent
e413f991fc
commit
3f7f9fe053
@ -20,6 +20,7 @@
|
|||||||
<el-select
|
<el-select
|
||||||
size="default"
|
size="default"
|
||||||
filterable
|
filterable
|
||||||
|
@change="changeWare(formData.ERPRECEIVELOCATION,formData.ERPFACTORY)"
|
||||||
v-model="formData.ERPRECEIVELOCATION"
|
v-model="formData.ERPRECEIVELOCATION"
|
||||||
placeholder="下拉选择仓库"
|
placeholder="下拉选择仓库"
|
||||||
>
|
>
|
||||||
@ -32,24 +33,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
<!-- <el-input v-model="formData.ERPRECEIVELOCATION" placeholder="接收仓库" /> -->
|
<!-- <el-input v-model="formData.ERPRECEIVELOCATION" placeholder="接收仓库" /> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item label="仓库">
|
<el-form-item v-show="USE_LOCATION != 'N'" label="目的货位" prop="portFormRefData.SEARCHTYPE">
|
||||||
<el-select
|
|
||||||
size="default"
|
|
||||||
filterable
|
|
||||||
@change="changeWare(formData.ERPRECEIVELOCATION,formData.ERPFACTORY)"
|
|
||||||
v-model="formData.ERPRECEIVELOCATION"
|
|
||||||
placeholder="下拉选择库位"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item in locDecList"
|
|
||||||
:key="item.ENUMVALUE"
|
|
||||||
:label="item.DESCRIPTION"
|
|
||||||
:value="item.ENUMVALUE"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
<!– <el-input v-model="formData.ERPRECEIVELOCATION" placeholder="接收仓库" /> –>
|
|
||||||
</el-form-item>-->
|
|
||||||
<!-- <el-form-item v-show="USE_LOCATION != 'N'" label="目的货位" prop="portFormRefData.SEARCHTYPE">
|
|
||||||
<el-cascader
|
<el-cascader
|
||||||
@visible-change="handleOuterClick"
|
@visible-change="handleOuterClick"
|
||||||
v-model="state.StorageSelect"
|
v-model="state.StorageSelect"
|
||||||
@ -57,11 +41,11 @@
|
|||||||
:props="{
|
:props="{
|
||||||
checkStrictly: true,
|
checkStrictly: true,
|
||||||
label: 'DESCRIPTION',
|
label: 'DESCRIPTION',
|
||||||
value: 'STORAGENAME',
|
value: 'ERPLOCATION',
|
||||||
children: 'children'
|
children: 'children'
|
||||||
}"
|
}"
|
||||||
/>
|
/>
|
||||||
</el-form-item>-->
|
</el-form-item>
|
||||||
<el-form-item label="目的货位" prop="portFormRefData.SEARCHTYPE">
|
<el-form-item label="目的货位" prop="portFormRefData.SEARCHTYPE">
|
||||||
<el-select
|
<el-select
|
||||||
size="default"
|
size="default"
|
||||||
@ -178,7 +162,7 @@ export default {
|
|||||||
import { reactive, ref, onMounted, toRefs, getCurrentInstance } from 'vue'
|
import { reactive, ref, onMounted, toRefs, getCurrentInstance } from 'vue'
|
||||||
import { ElForm, ElMessageBox } from 'element-plus'
|
import { ElForm, ElMessageBox } from 'element-plus'
|
||||||
import { allocateStockInCommit, BpelEvent, getQueryList } from '@/api/common'
|
import { allocateStockInCommit, BpelEvent, getQueryList } from '@/api/common'
|
||||||
import request from '@/utils/request'
|
// import request from '@/utils/request'
|
||||||
// import { getPageList } from "@/api/menu";
|
// import { getPageList } from "@/api/menu";
|
||||||
// import { Header } from "element-plus/es/components/table-v2/src/components";
|
// import { Header } from "element-plus/es/components/table-v2/src/components";
|
||||||
|
|
||||||
@ -195,7 +179,7 @@ const state = reactive({
|
|||||||
locDecList: [] as any,
|
locDecList: [] as any,
|
||||||
StorageSelect: [] as any,
|
StorageSelect: [] as any,
|
||||||
StorageSelectList: [] as any,
|
StorageSelectList: [] as any,
|
||||||
locDecListAll: [] as any,
|
// locDecListAll: [] as any,
|
||||||
formData: {
|
formData: {
|
||||||
SHIPREQUESTNAME: '',
|
SHIPREQUESTNAME: '',
|
||||||
SHIPREQUESTSTATE: '',
|
SHIPREQUESTSTATE: '',
|
||||||
@ -387,8 +371,8 @@ onMounted(() => {
|
|||||||
if (day < 10) day = '0' + day
|
if (day < 10) day = '0' + day
|
||||||
state.commitDate = year + '-' + moth + '-' + day
|
state.commitDate = year + '-' + moth + '-' + day
|
||||||
|
|
||||||
WareList()
|
// WareList()
|
||||||
getStorageSpecLocationList()
|
// getStorageSpecLocationList()
|
||||||
})
|
})
|
||||||
|
|
||||||
/*****************************************************下面方法******************************************/
|
/*****************************************************下面方法******************************************/
|
||||||
@ -499,9 +483,9 @@ function getBoxList() {
|
|||||||
// state.formData.ERPRECEIVELOCATION = res.data[0]?.ERPRECEIVELOCATION
|
// state.formData.ERPRECEIVELOCATION = res.data[0]?.ERPRECEIVELOCATION
|
||||||
state.formData.SHIPREQUESTSTATE = res.data[0]?.SHIPREQUESTSTATE
|
state.formData.SHIPREQUESTSTATE = res.data[0]?.SHIPREQUESTSTATE
|
||||||
|
|
||||||
/*if(state.formData.ERPRECEIVEFACTORY) {
|
if(state.formData.ERPRECEIVEFACTORY) {
|
||||||
WareList(state.formData.ERPRECEIVEFACTORY)
|
WareList(state.formData.ERPRECEIVEFACTORY)
|
||||||
}*/
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
.catch((error: any) => {
|
.catch((error: any) => {
|
||||||
@ -512,14 +496,14 @@ function getBoxList() {
|
|||||||
// getDetailList() // 之前是列表取的出库单详情
|
// getDetailList() // 之前是列表取的出库单详情
|
||||||
getAllPackingList()
|
getAllPackingList()
|
||||||
}
|
}
|
||||||
async function WareList() {
|
async function WareList(firstLocation: any) {
|
||||||
try {
|
try {
|
||||||
let erpLocation = JSON.parse(localStorage.getItem('orgNo'))
|
// let erpLocation = JSON.parse(localStorage.getItem('orgNo'))
|
||||||
const res = await getQueryList({
|
const res = await getQueryList({
|
||||||
queryId: 'GetErpLocationList',
|
queryId: 'GetErpLocationList',
|
||||||
version: 'WEB00001',
|
version: 'WEB00001',
|
||||||
params: {
|
params: {
|
||||||
ERPFACTORYNAME: erpLocation,
|
ERPFACTORYNAME: firstLocation,
|
||||||
SITENAME: 'SDK'
|
SITENAME: 'SDK'
|
||||||
},
|
},
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
@ -575,17 +559,8 @@ function getAllPackingList() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleOuterClick(query: any) {
|
function handleOuterClick() {
|
||||||
//StorageList(state.formData.ERPRECEIVELOCATION)
|
StorageList(state.formData.ERPRECEIVELOCATION)
|
||||||
let arr = state.locDecListAll.filter((item: any) => {
|
|
||||||
return item.DESCRIPTION.includes(query) || item.STORAGENAME.includes(query)
|
|
||||||
})
|
|
||||||
// console.log(arr)
|
|
||||||
if (arr.length > 50) {
|
|
||||||
state.StorageSelectList = arr.slice(0, 50)
|
|
||||||
} else {
|
|
||||||
state.StorageSelectList = arr
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function StorageList(firstLocation: any) {
|
async function StorageList(firstLocation: any) {
|
||||||
@ -847,7 +822,7 @@ function stockIn() {
|
|||||||
console.log(res, 'res')
|
console.log(res, 'res')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
async function getStorageSpecLocationList() {
|
async function getStorageSpecLocationList() {
|
||||||
let erpLocation = JSON.parse(localStorage.getItem('orgNo'));
|
let erpLocation = JSON.parse(localStorage.getItem('orgNo'));
|
||||||
request({
|
request({
|
||||||
@ -861,7 +836,7 @@ async function getStorageSpecLocationList() {
|
|||||||
state.locDecListAll = res.resultObj;
|
state.locDecListAll = res.resultObj;
|
||||||
console.log(state.locDecListAll)
|
console.log(state.locDecListAll)
|
||||||
});
|
});
|
||||||
}
|
}*/
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user