Browse Source

盘点新增:pda类型,库位控制开发

faster_develop 2023.10.16
安虹睿 2 years ago
parent
commit
73a8a80704
  1. 2
      fe/PC/public/version.json
  2. 30
      fe/PC/src/components/StepsCountPlanForm/index.vue
  3. 1
      fe/PC/src/components/conditionFilters/index.vue

2
fe/PC/public/version.json

@ -1,3 +1,3 @@
{
"version": "1.0.72"
"version": "1.0.73"
}

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

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

1
fe/PC/src/components/conditionFilters/index.vue

@ -42,6 +42,7 @@
v-for="(item, index) in tableColumnsOptions(tableColumns)"
:key="index"
:label="item.label"
:disabled="item.disabled"
:value="
item.showProp
? item.prop + '.' + item.showProp

Loading…
Cancel
Save