Browse Source

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

faster_develop 2023.10.16
安虹睿 2 years ago
parent
commit
73a8a80704
  1. 2
      fe/PC/public/version.json
  2. 38
      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"
} }

38
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.Location));
let _list = JSON.parse(JSON.stringify(this.$isTableColumns.CountPlanByAddLocation)); let _list = JSON.parse(JSON.stringify(this.$isTableColumns.CountPlanByAddLocation));
_list.forEach(item => { _list.forEach(item => {
// pda 使 locationTypeForPADPlan 线 // pda 使 locationTypeForPADPlan 线,
// Excel 使 locationTypeForExcelPlan // Excel 使 locationTypeForExcelPlan
if(item.prop == 'type'){ if(item.prop == 'type'){
// todo:
item.filters = this.CreateFormData.requestType == 2 ? 'locationTypeForPADPlan' : 'locationTypeForExcelPlan' 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 return _list
@ -450,18 +449,27 @@ export default {
return () => { return () => {
list.SkipCount = (oldSkipCount - 1) * list.MaxResultCount; list.SkipCount = (oldSkipCount - 1) * list.MaxResultCount;
this.tableLoading = true; this.tableLoading = true;
// 线 20230703 // 线 20231005
let _filter = {}
// Excel(this.CreateFormData.requestType == 1)2 // Excel(this.CreateFormData.requestType == 1)2
// Excel(this.CreateFormData.requestType != 1)线5 if(this.CreateFormData.requestType == 1){
// todo:// _filter = {
let type_value = this.CreateFormData.requestType == 1 ? '2' : '5' action: "!=",
// let type_value = this.CreateFormData.requestType == 1 ? null : '5' column: "type",
let _filter = { logic: "And",
action: "!=", value: '2',
column: "type", hide:true
logic: "And", }
value: type_value, }
hide:true // pda(this.CreateFormData.requestType != 1)2
else{
_filter = {
action: "==",
column: "type",
logic: "And",
value: '2',
hide:true
}
} }
// //
let _filter_code = { let _filter_code = {
@ -472,7 +480,7 @@ export default {
hide: true hide: true
} }
if(this.pageListLocation.condition.filters.length <= 0){ 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) this.pageListLocation.condition.filters.push(_filter_code)
} }
// code 20230705 // code 20230705

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

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

Loading…
Cancel
Save