Browse Source

盘点使用excel盘点筛选条件不等于原材料库处理

dev_web_online
安虹睿 2 years ago
parent
commit
72c5db5148
  1. 21
      fe/PC/src/components/StepsCountPlanForm/index.vue
  2. 80
      fe/PC/src/filters/status.js

21
fe/PC/src/components/StepsCountPlanForm/index.vue

@ -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;

80
fe/PC/src/filters/status.js

@ -871,7 +871,7 @@ export function TransSubType(index, prop) {
}
return Enum(type, index, prop)
}
//库位类型
//库位类型 注意!!!更改时候将 locationTypeForPADPlan 和 locationTypeForExcelPlan同步更改
/**
*
* @param {Boolean}
@ -1025,6 +1025,84 @@ export function locationType(index, prop) {
}
return Enum(type, index, prop)
}
//库位类型-Excel类型盘点(盘点新增选择计划第二步骤的库位列表高级筛选的使用)
// 区别于【locationType】:原材料库位为不可选择
/**
*
* @param {Boolean}
* @returns {object}
*/
export function locationTypeForExcelPlan(index, prop) {
let type = {
1: {
label: "待检库位",
value: 1,
UK: 'INSP'
},
2: {
label: "原材料库位",
value: 2,
UK: 'RAW',
disabled:true
},
3: {
label: "半成品库位",
value: 3,
UK: 'SEMI'
},
4: {
label: "成品库位",
value: 4,
UK: 'FG'
},
5: {
label: "线边库位",
value: 5,
UK: 'WIP',
},
6: {
label: "隔离库位",
value: 6,
UK: 'HOLD'
},
7: {
label: "报废库位",
value: 7,
UK: 'SCRAP'
},
8: {
label: "不合格品库位",
value: 8,
UK: 'NOC'
},
9: {
label: "溢出库位",
value: 9,
UK: 'OVERFLOW'
},
10: {
label: "客户库位",
value: 10,
UK: 'CUST'
},
11: {
label: "外库位",
value: 11,
UK: 'OUTSIDE'
},
12: {
label: "盘点差异库位",
value: 12,
UK: 'DIFF'
},
13: {
label: "在途库位",
value: 13,
UK: 'TRANSPORT'
}
}
return Enum(type, index, prop)
}
//库位类型
/**

Loading…
Cancel
Save