From a0cd1c9fcd64092d0a567d54a98e2eb58765872f Mon Sep 17 00:00:00 2001 From: xhj Date: Wed, 18 Sep 2024 19:31:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/jhzxgl/dmjhD.vue | 74 ++++---- src/views/jhzxgl/hxjhD.vue | 39 ++-- src/views/jhzxgl/pkjhD.vue | 376 +++++++++++++++++++++++++++---------- src/views/jhzxgl/pwjhD.vue | 49 +++-- src/views/jhzxgl/qgjhD.vue | 40 ++-- src/views/jhzxgl/qmjhD.vue | 63 ++++--- src/views/jhzxgl/yppCX.vue | 2 +- src/views/jhzxgl/yppFK.vue | 2 +- src/views/jhzxgl/yppGL.vue | 8 +- 9 files changed, 446 insertions(+), 207 deletions(-) diff --git a/src/views/jhzxgl/dmjhD.vue b/src/views/jhzxgl/dmjhD.vue index 45fb0eb..4023dc0 100644 --- a/src/views/jhzxgl/dmjhD.vue +++ b/src/views/jhzxgl/dmjhD.vue @@ -6,7 +6,7 @@ - + @@ -54,21 +54,21 @@ - + - + - + - + - + 查询 @@ -96,51 +97,52 @@ - - 班组: - + 作业区: + - 作业区: - + 班组: + + + + - + 批量 - - - - - + + + + + 派工 - 报工 @@ -169,7 +171,7 @@ highlight-hover-row show-overflow show-header-overflow - + :header-cell-style="headerCellStyle" > @@ -281,7 +283,7 @@ export default { filterRender: { name: 'FilterCombination', }, }, - { field: 'zl', title: '组立', width: 120, + { field: 'zl', title: '组立', width: 120,formatter: ['dictFormat', 'ZLLB'], filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filterRender: { name: 'FilterCombination', }, }, @@ -604,7 +606,14 @@ export default { }, methods: { - + headerCellStyle ({ column, columnIndex }) { + if (['dmjhrq','dmXfry','dmXfrq','dscry','dmFkry','dmFkrq '].includes(column.property)) { + return { + backgroundColor: '#2db7f5', + color: '#ffffff' + } + } + }, cellClickEvent({row}) { this.queryParam.dcch = row.cbbm this.$refs.xDown4.hidePanel() @@ -628,15 +637,16 @@ export default { bzClick(){ console.log(this.dictData.gxry) console.log(this.inParam.scdw) - this.dictData.zyqs= this.zyqs.filter(fst=>fst.resourcesCode===this.inParam.scdw) + this.dictData.zyqs= this.zyqs.filter(fst=>fst.zyq===this.inParam.scdw) console.log(this.dictData.zyqs) }, bzClick1(){ console.log(this.dictData.zyrys) console.log(this.zyrys) - this.dictData.zyrys= this.zyrys.filter(fst=>fst.resourcesCode+fst.zyq===this.inParam.scdw+this.inParam.zyq) + this.dictData.zyrys= this.zyrys.filter(fst=>fst.zyq+fst.resourcesCode===this.inParam.scdw+this.inParam.zyq) console.log(this.dictData.gxry) }, + updates2(){ let selectRecords = this.$refs.xGrid.getCheckboxRecords() @@ -833,10 +843,10 @@ export default { .el-header{margin:0;padding: 5px;height:auto; .el-input{ - width: 140px; + width: 80px; } .el-select{ - width: 140px; + width: 80px; } } diff --git a/src/views/jhzxgl/hxjhD.vue b/src/views/jhzxgl/hxjhD.vue index d56dcf4..171a0cb 100644 --- a/src/views/jhzxgl/hxjhD.vue +++ b/src/views/jhzxgl/hxjhD.vue @@ -87,33 +87,36 @@ - 班组: - + 作业区: + - 作业区: - + 班组: + + + + @@ -158,7 +161,7 @@ highlight-hover-row show-overflow show-header-overflow - + :header-cell-style="headerCellStyle" > @@ -369,6 +372,14 @@ export default { }, methods: { + headerCellStyle ({ column, columnIndex }) { + if (['hxry','hxpgrq','hxpgry','hxfkry','hxfkrq'].includes(column.property)) { + return { + backgroundColor: '#2db7f5', + color: '#ffffff' + } + } + }, cellClickEvent({row}) { this.queryParam.dcch = row.cbbm this.$refs.xDown4.hidePanel() @@ -392,13 +403,13 @@ export default { bzClick(){ console.log(this.dictData.gxry) console.log(this.inParam.scdw) - this.dictData.zyqs= this.zyqs.filter(fst=>fst.resourcesCode===this.inParam.scdw) + this.dictData.zyqs= this.zyqs.filter(fst=>fst.zyq===this.inParam.scdw) console.log(this.dictData.zyqs) }, bzClick1(){ console.log(this.dictData.zyrys) console.log(this.zyrys) - this.dictData.zyrys= this.zyrys.filter(fst=>fst.resourcesCode+fst.zyq===this.inParam.scdw+this.inParam.zyq) + this.dictData.zyrys= this.zyrys.filter(fst=>fst.zyq+fst.resourcesCode===this.inParam.scdw+this.inParam.zyq) console.log(this.dictData.gxry) }, updates2(){ diff --git a/src/views/jhzxgl/pkjhD.vue b/src/views/jhzxgl/pkjhD.vue index ce6fe17..3191afb 100644 --- a/src/views/jhzxgl/pkjhD.vue +++ b/src/views/jhzxgl/pkjhD.vue @@ -6,7 +6,7 @@ - + @@ -54,18 +54,36 @@ - + - + + + + + + + + + + + + + + - + 查询 @@ -79,40 +97,52 @@ + 作业区: + + + + 班组: - + - + + + + - + 批量 - - - - - + + + + + 派工 - 报工 @@ -141,7 +171,7 @@ highlight-hover-row show-overflow show-header-overflow - + :header-cell-style="headerCellStyle" > @@ -157,7 +187,7 @@