|
|
@ -404,12 +404,11 @@ export default { |
|
|
|
// let _list = JSON.parse(JSON.stringify(this.$isTableColumns.Location)); |
|
|
|
let _list = JSON.parse(JSON.stringify(this.$isTableColumns.CountPlanByAddLocation)); |
|
|
|
_list.forEach(item => { |
|
|
|
// 如果是pda类型盘点,库位类型 则使用 locationTypeForPADPlan 枚举(区别为线边库位为不可选) |
|
|
|
// 如果是pda类型盘点,库位类型 则使用 locationTypeForPADPlan 枚举(区别为线边库位为不可选),库位禁止选择 |
|
|
|
// 如果是Excel类型盘点,库位类型 则使用 locationTypeForExcelPlan 枚举(区别为原材料库位为不可选) |
|
|
|
if(item.prop == 'type'){ |
|
|
|
// todo:暂时 |
|
|
|
item.filters = this.CreateFormData.requestType == 2 ? 'locationTypeForPADPlan' : 'locationTypeForExcelPlan' |
|
|
|
// item.filters = this.CreateFormData.requestType == 2 ? 'locationTypeForPADPlan' : 'locationType' |
|
|
|
item.disabled = this.CreateFormData.requestType == 2 ? true : false |
|
|
|
} |
|
|
|
}); |
|
|
|
return _list |
|
|
@ -450,19 +449,28 @@ export default { |
|
|
|
return () => { |
|
|
|
list.SkipCount = (oldSkipCount - 1) * list.MaxResultCount; |
|
|
|
this.tableLoading = true; |
|
|
|
// 盘点库存 过滤线边仓数据 20230703更新 |
|
|
|
// 盘点库存 过滤线边仓数据 20231005更新 |
|
|
|
let _filter = {} |
|
|
|
// 如果是Excel盘点类型(this.CreateFormData.requestType == 1),过滤原材料2 |
|
|
|
// 如果不是Excel盘点类型(this.CreateFormData.requestType != 1),过滤线边仓数据5 |
|
|
|
// todo://暂时 |
|
|
|
let type_value = this.CreateFormData.requestType == 1 ? '2' : '5' |
|
|
|
// let type_value = this.CreateFormData.requestType == 1 ? null : '5' |
|
|
|
let _filter = { |
|
|
|
if(this.CreateFormData.requestType == 1){ |
|
|
|
_filter = { |
|
|
|
action: "!=", |
|
|
|
column: "type", |
|
|
|
logic: "And", |
|
|
|
value: type_value, |
|
|
|
value: '2', |
|
|
|
hide:true |
|
|
|
} |
|
|
|
} |
|
|
|
// 如果是pda盘点类型(this.CreateFormData.requestType != 1),只能是原材料2 |
|
|
|
else{ |
|
|
|
_filter = { |
|
|
|
action: "==", |
|
|
|
column: "type", |
|
|
|
logic: "And", |
|
|
|
value: '2', |
|
|
|
hide:true |
|
|
|
} |
|
|
|
} |
|
|
|
// 库位筛选,默认去掉的库位代码 |
|
|
|
let _filter_code = { |
|
|
|
action: "!=", |
|
|
@ -472,7 +480,7 @@ export default { |
|
|
|
hide: true |
|
|
|
} |
|
|
|
if(this.pageListLocation.condition.filters.length <= 0){ |
|
|
|
if(type_value)this.pageListLocation.condition.filters.push(_filter) |
|
|
|
this.pageListLocation.condition.filters.push(_filter) |
|
|
|
this.pageListLocation.condition.filters.push(_filter_code) |
|
|
|
} |
|
|
|
// code多选处理 20230705更新 |
|
|
|