update 无来源转库页面,增加通过库存组织查询条件联动转库的目的组织
This commit is contained in:
parent
9e46d660ab
commit
6036bf343d
@ -199,14 +199,14 @@
|
||||
<el-form-item label="目的组织" prop="ERPFACTORY">
|
||||
<el-select
|
||||
filterable
|
||||
v-model="queryParams.params.ERPFACTORY"
|
||||
v-model="queryParams.params.destinationErpFactory"
|
||||
placeholder="下拉选择组织"
|
||||
size="small"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in spcERPFactoryList"
|
||||
v-for="item in state.spcERPFactoryList"
|
||||
:key="item.ERPFACTORY"
|
||||
:label="item.DESCRIPTION"
|
||||
:label="item.ERPFACTORY"
|
||||
:value="item.ERPFACTORY"
|
||||
/>
|
||||
</el-select>
|
||||
@ -351,6 +351,7 @@ const state = reactive({
|
||||
MATERIALSPECNAME: '',
|
||||
ERPLOCATION: '',
|
||||
ERPFACTORY: '',
|
||||
destinationErpFactory: '',
|
||||
LOCATIONNAME: '',
|
||||
CHARGE: '',
|
||||
DESC_CN:'',
|
||||
@ -629,10 +630,18 @@ function changeFac(e: any) {
|
||||
console.log(e)
|
||||
state.queryParams.params.ERPLOCATION = ''
|
||||
state.queryParamsERPLocation.params.ERPFACTORYNAME = e
|
||||
|
||||
state.queryParams.params.destinationErpFactory = ''
|
||||
state.queryParams.params.destinationErpFactory = e
|
||||
state.spcERPFactoryList = [] as any
|
||||
ERPLocationQuery()
|
||||
if(e.ERPFACTORY == "1010" || e.ERPFACTORY == "1020") {
|
||||
if(e == "1010" || e == "1020") {
|
||||
state.spcERPFactoryList = state.ERPFactoryList.filter((item: any) =>
|
||||
(e.ERPFACTORY == "1010" || e.ERPFACTORY == "1020")
|
||||
(item.ERPFACTORY === "1010" || item.ERPFACTORY === "1020")
|
||||
)
|
||||
}else {
|
||||
state.spcERPFactoryList = state.ERPFactoryList.filter((item: any) =>
|
||||
(item.ERPFACTORY === e)
|
||||
)
|
||||
}
|
||||
|
||||
@ -659,9 +668,20 @@ function ERPFactoryQuery() {
|
||||
getORG({ orgNo: null })
|
||||
.then((res: any) => {
|
||||
state.ERPFactoryList = res.resultObj
|
||||
//state.spcERPFactoryList = res.resultObj
|
||||
state.ERPFactoryList.unshift({
|
||||
ERPFACTORY: ''
|
||||
})
|
||||
if(state.queryParams.params.ERPFACTORY == "1010" || state.queryParams.params.ERPFACTORY == "1020") {
|
||||
state.spcERPFactoryList = state.ERPFactoryList.filter((item: any) =>
|
||||
(item.ERPFACTORY === "1010" || item.ERPFACTORY === "1020")
|
||||
)
|
||||
}else {
|
||||
state.spcERPFactoryList = state.ERPFactoryList.filter((item: any) =>
|
||||
(item.ERPFACTORY === state.queryParams.params.ERPFACTORY)
|
||||
)
|
||||
}
|
||||
state.queryParams.params.destinationErpFactory = state.queryParams.params.ERPFACTORY
|
||||
})
|
||||
.catch(() => {})
|
||||
}
|
||||
@ -1016,8 +1036,8 @@ async function submit() {
|
||||
|
||||
row.AIMERPLOCATION = state.desParams.params.ERPLOCATION
|
||||
row.AIMLOCATIONNAME = state.desParams.params.LOCATIONNAME
|
||||
row.AIMERPFACTORY = row.ERPFACTORY
|
||||
|
||||
//row.AIMERPFACTORY = row.ERPFACTORY
|
||||
row.AIMERPFACTORY = state.queryParams.params.destinationErpFactory
|
||||
})
|
||||
|
||||
console.log('BoxListInfo',BoxListInfo)
|
||||
|
Loading…
x
Reference in New Issue
Block a user