From 8c545f370513f72e683c2f9142c8629ffc3a3bdc Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 3 Sep 2025 16:29:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A3=80=E9=AA=8C=E5=A4=A7=E8=A1=A8?= =?UTF-8?q?=E9=9C=80=E6=8C=89=E7=85=A7=E7=8F=AD=E6=AC=A1=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistics/good_check_gx.vue | 85 +++++++++++++++---------- src/views/statistics/good_check_gx2.vue | 79 ++++++++++++++--------- 2 files changed, 100 insertions(+), 64 deletions(-) diff --git a/src/views/statistics/good_check_gx.vue b/src/views/statistics/good_check_gx.vue index 4fe1dd7f..25db06f0 100644 --- a/src/views/statistics/good_check_gx.vue +++ b/src/views/statistics/good_check_gx.vue @@ -7,13 +7,37 @@ clearable style="width: 200px;" > + + + + + + { + that.shiftOptions = res; + }); + }, getList(val){ let that = this; that.params.page = val?val:1; @@ -409,56 +443,37 @@ export default { if(key=='batch'){ obj.field = "batch"; obj.compare = "contains"; - arr1.push(obj); - arr2.push(obj); - arr3.push(obj); }else if(key=='cc_data_start'){ obj.compare = "gte"; obj.field = "data__尺寸检验_日期"; - arr1.push(obj); }else if(key=='cc_data_end'){ obj.compare = "lte"; obj.field = "data__尺寸检验_日期"; - arr1.push(obj); + }else if(key=='shiftcc'){ + obj.compare = ""; + obj.field = "data__尺寸检验_班次"; }else if(key=='wg_data_start'){ obj.compare = "gte"; obj.field = "data__外观检验_日期"; - arr2.push(obj); }else if(key=='wg_data_end'){ obj.compare = "lte"; obj.field = "data__外观检验_日期"; - arr2.push(obj); + }else if(key=='shiftwg'){ + obj.compare = ""; + obj.field = "data__外观检验_班次"; }else if(key=='fx_data_start'){ obj.compare = "gte"; obj.field = "data__返修_日期"; - arr3.push(obj); }else if(key=='fx_data_end'){ obj.compare = "lte"; obj.field = "data__返修_日期"; - arr3.push(obj); } + arr1.push(obj); + arr2.push(obj); + arr3.push(obj); } } - if((that.query.cc_data_start != ""&&that.query.cc_data_start != null)||(that.query.cc_data_end != ""&&that.query.cc_data_end != null)){ - console.log('arr1'); - console.log(arr1); - that.params.querys.push(arr1); - } - if((that.query.wg_data_start != ""&&that.query.wg_data_start != null)||(that.query.wg_data_end != ""&&that.query.wg_data_end != null)){ - console.log('arr2'); - console.log(arr2); - that.params.querys.push(arr2); - } - if((that.query.fx_data_start != ""&&that.query.fx_data_start != null)||(that.query.fx_data_end != ""&&that.query.fx_data_end != null)){ - console.log('arr3'); - console.log(arr3); - that.params.querys.push(arr3); - } - if((that.query.cc_data_start == ""||that.query.cc_data_start == null)&&(that.query.cc_data_end == ""||that.query.cc_data_end== null)&& - (that.query.wg_data_start == ""||that.query.wg_data_start == null)&&(that.query.wg_data_end == ""||that.query.wg_data_end == null)&& - (that.query.fx_data_start == ""||that.query.fx_data_start == null)&&(that.query.fx_data_end == ""||that.query.fx_data_end == null)){ - that.params.querys.push(arr1,arr2,arr3); - } + that.params.querys.push(arr1,arr2,arr3); this.getList(); }, getSummaries({ columns, data }) { diff --git a/src/views/statistics/good_check_gx2.vue b/src/views/statistics/good_check_gx2.vue index 540ab056..c6359291 100644 --- a/src/views/statistics/good_check_gx2.vue +++ b/src/views/statistics/good_check_gx2.vue @@ -7,13 +7,37 @@ clearable style="width: 200px;" > + + + + + + { + that.shiftOptions = res; + }); + }, getList(val){ let that = this; that.params.page = val?val:1; @@ -350,50 +384,37 @@ export default { if(key=='batch'){ obj.field = "batch"; obj.compare = "contains"; - arr1.push(obj); - arr2.push(obj); - arr3.push(obj); }else if(key=='cc_data_start'){ obj.compare = "gte"; obj.field = "data__尺寸检验_日期"; - arr1.push(obj); }else if(key=='cc_data_end'){ obj.compare = "lte"; obj.field = "data__尺寸检验_日期"; - arr1.push(obj); + }else if(key=='shiftcc'){ + obj.compare = ""; + obj.field = "data__尺寸检验_班次"; }else if(key=='wg_data_start'){ obj.compare = "gte"; obj.field = "data__外观检验_日期"; - arr2.push(obj); }else if(key=='wg_data_end'){ obj.compare = "lte"; obj.field = "data__外观检验_日期"; - arr2.push(obj); + }else if(key=='shiftwg'){ + obj.compare = ""; + obj.field = "data__外观检验_班次"; }else if(key=='fx_data_start'){ obj.compare = "gte"; obj.field = "data__返修_日期"; - arr3.push(obj); }else if(key=='fx_data_end'){ obj.compare = "lte"; obj.field = "data__返修_日期"; - arr3.push(obj); } + arr1.push(obj); + arr2.push(obj); + arr3.push(obj); } } - if((that.query.cc_data_start != ""&&that.query.cc_data_start != null)||(that.query.cc_data_end != ""&&that.query.cc_data_end != null)){ - that.params.querys.push(arr1); - } - if((that.query.wg_data_start != ""&&that.query.wg_data_start != null)||(that.query.wg_data_end != ""&&that.query.wg_data_end != null)){ - that.params.querys.push(arr2); - } - if((that.query.fx_data_start != ""&&that.query.fx_data_start != null)||(that.query.fx_data_end != ""&&that.query.fx_data_end != null)){ - that.params.querys.push(arr3); - } - if((that.query.cc_data_start == ""||that.query.cc_data_start == null)&&(that.query.cc_data_end == ""||that.query.cc_data_end== null)&& - (that.query.wg_data_start == ""||that.query.wg_data_start == null)&&(that.query.wg_data_end == ""||that.query.wg_data_end == null)&& - (that.query.fx_data_start == ""||that.query.fx_data_start == null)&&(that.query.fx_data_end == ""||that.query.fx_data_end == null)){ - that.params.querys.push(arr1,arr2,arr3); - } + that.params.querys.push(arr1,arr2,arr3); this.getList(); }, getSummaries({ columns, data }) {