Commit 5b5c5e14 authored by jingnan's avatar jingnan 👀

验收入库接受仓库修改

parent 34a76508
......@@ -1825,6 +1825,14 @@ export default {
},
// 默认带出接收仓库
defaultStorage() {
let extDxProductAreaItem = []
if (this.basicData.extDxProductAreaId) {
extDxProductAreaItem = [{
'fieldName': 'source.extDxProductAreaId',
'operator': 'EQ',
'value': this.basicData.extDxProductAreaId || ''
}]
}
const params = {
'pageFrom': 1,
'pageSize': 9999,
......@@ -1835,12 +1843,13 @@ export default {
'fieldName': 'targetId',
'operator': 'EQ',
'value': this.basicData.materialTypeId || ''
}
},
// {
// 'fieldName': 'source.extDxProductAreaId',
// 'operator': 'EQ',
// 'value': this.basicData.extDxProductAreaId || ''
// }
...extDxProductAreaItem
],
'operator': 'AND'
}
......@@ -1856,7 +1865,9 @@ export default {
const STORAGE = this.formFileds[0].data.find(
(item) => item.key === 'storageZone'
)
res.items.content = res.items.content.filter(item => { return item.source })
if (!this.basicData.extDxProductAreaId) {
res.items.content = res.items.content.filter(item => { return item.source })
}
STORAGE.component.options = res.items.content.map((item) => {
return {
label: item.source && item.source.extname,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment