From 7426badbf33c1ee4ba89e16bfbb4049a479e21ee Mon Sep 17 00:00:00 2001 From: mashuai Date: Wed, 15 May 2024 09:15:42 +0800 Subject: [PATCH 1/5] =?UTF-8?q?bug-=E9=A2=84=E6=8A=A5=E5=BA=9F=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sgzb/material/vo/ScrapApplyDetailsVO.java | 8 ++++++ .../material/ScrapApplyDetailsMapper.xml | 25 +++++++++++-------- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/vo/ScrapApplyDetailsVO.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/vo/ScrapApplyDetailsVO.java index f0244e40..32701ec8 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/vo/ScrapApplyDetailsVO.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/vo/ScrapApplyDetailsVO.java @@ -59,6 +59,14 @@ public class ScrapApplyDetailsVO { */ @Excel(name = "维修单号",sort = 6) private String repairNum; + /** + * 单位id + */ + private String unitId; + /** + * 工程id + */ + private String projectId; /** * 审核状态 diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/ScrapApplyDetailsMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/ScrapApplyDetailsMapper.xml index b7860aaa..037bcc5c 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/ScrapApplyDetailsMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/ScrapApplyDetailsMapper.xml @@ -428,7 +428,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" tk.CODE scrapNum, tk.task_status taskStatus, dic.NAME taskStatusName, + bui.unit_id unitId, bui.unit_name unitName, + bpl.lot_id projectId, bpl.lot_name projectName, su.nick_name createBy, tk.create_time createTime, @@ -464,18 +466,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" WHERE sad.scrap_source IN ( '1', '2' ) AND tk.task_type IN ('20' , '21') - - AND (locate(#{keyword}, tk.create_by) > 0 - or locate(#{keyword}, tk.CODE) > 0 - or locate(#{keyword}, bui.unit_name) > 0 - or locate(#{keyword}, bpl.lot_name) > 0 - or locate(#{keyword}, tk1.CODE) > 0) + + AND (locate(#{keywords}, tk.create_by) > 0 + or locate(#{keywords}, tk.CODE) > 0 + or locate(#{keywords}, bui.unit_name) > 0 + or locate(#{keywords}, bpl.lot_name) > 0 + or locate(#{keywords}, tk1.CODE) > 0) and bui.unit_id = #{backUnit} - - and tk.task_status = #{repairStatus} + + and tk.task_status = #{taskStatus} and tk.task_id in #{taskIdList} @@ -483,14 +485,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and bpl.lot_id = #{backPro} + + and sad.scrap_source = #{scrapSource} + and mt1.type_id = #{type} and locate(#{backCode}, tk.code) > 0 - - and tk.create_time between #{params.beginTime} and #{params.endTime} + + and DATE(tk.create_time) between #{beginTime} and #{endTime} GROUP BY tk.CODE order by tk.create_time desc From f0180f41862cc9e55dac15018a5d3320e5dd18f8 Mon Sep 17 00:00:00 2001 From: binbin_pan Date: Wed, 15 May 2024 09:17:30 +0800 Subject: [PATCH 2/5] =?UTF-8?q?fix:=201606=20=E5=BD=93=E6=9C=88=E6=8A=A5?= =?UTF-8?q?=E5=BA=9F=E5=88=86=E6=9E=90=E6=A8=A1=E5=9D=97=E6=89=93=E5=BC=80?= =?UTF-8?q?=E6=88=96=E5=85=B3=E9=97=AD=E7=9B=B8=E5=BA=94=E6=8A=98=E7=BA=BF?= =?UTF-8?q?=E5=9B=BE=E6=97=B6=E4=BC=9A=E5=BC=B9=E5=87=BA=E4=BA=8C=E7=BA=A7?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-screen/src/components/home/leftThree.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sgzb-screen/src/components/home/leftThree.vue b/sgzb-screen/src/components/home/leftThree.vue index c93bfd32..56e69bcd 100644 --- a/sgzb-screen/src/components/home/leftThree.vue +++ b/sgzb-screen/src/components/home/leftThree.vue @@ -4,7 +4,7 @@
当月报废分析
-
+
@@ -234,11 +234,10 @@ export default { } let myCharts = echarts.init(document.querySelector('#accessRateEcharts')); myCharts.setOption(echartOption) + myCharts.off('click').on('click', () => { + this.$refs.scrapAnalysisDialog.setOpen({ open: true, maType: this.maType}) + }) }, - handleClick() { - console.log('handleClick--报废分析') - this.$refs.scrapAnalysisDialog.setOpen({ open: true, maType: this.maType}) - } } } From a377d316105433d1cb56c7ef5243e62d0502377f Mon Sep 17 00:00:00 2001 From: binbin_pan Date: Wed, 15 May 2024 09:50:45 +0800 Subject: [PATCH 3/5] =?UTF-8?q?fix:=20bug=20=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/home/centerFold.vue | 22 ++++++++----------- .../src/components/home/countFlopOne.vue | 14 ++++-------- .../src/components/home/countFlopTwo.vue | 6 ++--- sgzb-screen/src/components/home/leftOne.vue | 14 ++++++++---- sgzb-screen/src/components/home/leftTwo.vue | 14 ++++++++---- sgzb-ui/vue.config.js | 4 ++-- 6 files changed, 38 insertions(+), 36 deletions(-) diff --git a/sgzb-screen/src/components/home/centerFold.vue b/sgzb-screen/src/components/home/centerFold.vue index ef23de5a..fef228c7 100644 --- a/sgzb-screen/src/components/home/centerFold.vue +++ b/sgzb-screen/src/components/home/centerFold.vue @@ -17,7 +17,7 @@
-
+
{{ item.value }}
@@ -48,7 +48,7 @@ export default { isCollapse: false, newArrOne: [ { name: '施工机具总保有量', value: 9999 }, - // { url: GROUP, name: '工器具总保有量', value: 9999 }, + { url: GROUP, name: '工器具总保有量', value: 9999 }, ], newArr: [ { url: GROUP, name: '在库机具', value: 999 }, @@ -62,7 +62,6 @@ export default { { url: GROUP, name: '报废机具', value: 999 }, { url: GROUP, name: '报废机具', value: 999 }, ], - maType: 1 } }, mounted() { @@ -73,12 +72,6 @@ export default { setInterval(() => { this.getTotalOwnershipApiPage() }, 60 * 1000); - this.$eventBus.$on('maType', (maType) => { - this.maType = maType - }); - }, - destroyed() { - this.$eventBus.$off('maType'); }, methods: { getTotalOwnershipApiPage() { @@ -116,10 +109,13 @@ export default { this.$refs['box1'].style.height = height } }, - handleClickItem() { - setTimeout(() => { - this.$refs.inventoryDialog.setOpen({ open: true, maType: this.maType }) - }, 10) + handleClickItem(index) { + // console.log('🚀 ~ handleClickItem ~ index:', index); + if (index < 5) { + this.$refs.inventoryDialog.setOpen({ open: true, maType: 1 }) + } else { + this.$refs.inventoryDialog.setOpen({ open: true, maType: 2 }) + } } } } diff --git a/sgzb-screen/src/components/home/countFlopOne.vue b/sgzb-screen/src/components/home/countFlopOne.vue index 0b0b5dd0..e949d2a6 100644 --- a/sgzb-screen/src/components/home/countFlopOne.vue +++ b/sgzb-screen/src/components/home/countFlopOne.vue @@ -1,7 +1,7 @@