|
|
@ -391,8 +391,9 @@ export default { |
|
|
|
let _list = JSON.parse(JSON.stringify(this.$isTableColumns.Location)); |
|
|
|
_list.forEach(item => { |
|
|
|
// 如果是pda类型盘点,库位类型 则使用 locationTypeForPADPlan 枚举(区别为线边库位为不可选) |
|
|
|
// 如果是Excel类型盘点,库位类型 则使用 locationTypeForExcelPlan 枚举(区别为原材料库位为不可选) |
|
|
|
if(item.prop == 'type'){ |
|
|
|
item.filters = this.CreateFormData.requestType == 2 ? 'locationTypeForPADPlan' : 'locationType' |
|
|
|
item.filters = this.CreateFormData.requestType == 2 ? 'locationTypeForPADPlan' : 'locationTypeForExcelPlan' |
|
|
|
} |
|
|
|
}); |
|
|
|
return _list |
|
|
@ -447,6 +448,24 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
// 如果是Excel盘点类型(this.CreateFormData.requestType == 1),过滤原材料 |
|
|
|
else{ |
|
|
|
let _filter = { |
|
|
|
action: "!=", |
|
|
|
column: "type", |
|
|
|
logic: "And", |
|
|
|
value: "2", |
|
|
|
hide:true |
|
|
|
} |
|
|
|
if(this.pageListLocation.condition.filters.length <= 0){ |
|
|
|
this.pageListLocation.condition.filters.push(_filter) |
|
|
|
} |
|
|
|
list.condition.filters.forEach((item,key)=>{ |
|
|
|
if(item.action == '!=' && item.column == 'type' && item.value == '2'){ |
|
|
|
item.hide = true |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
getPageList(list, url) |
|
|
|
.then((res) => { |
|
|
|
this[data] = res.items; |
|
|
|