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