From 41cc383f04afc69724400175025774d3eb2b6872 Mon Sep 17 00:00:00 2001 From: binbin_pan Date: Thu, 13 Jun 2024 13:37:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/home/centerFold.vue | 8 ++++---- .../src/components/home/inventoryDialog.vue | 20 +++++++++---------- sgzb-screen/src/components/home/leftOne.vue | 4 ++-- sgzb-screen/src/components/home/leftTwo.vue | 4 ++-- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/sgzb-screen/src/components/home/centerFold.vue b/sgzb-screen/src/components/home/centerFold.vue index fef228c7..efef171a 100644 --- a/sgzb-screen/src/components/home/centerFold.vue +++ b/sgzb-screen/src/components/home/centerFold.vue @@ -47,8 +47,8 @@ export default { isUp: true, isCollapse: false, newArrOne: [ - { name: '施工机具总保有量', value: 9999 }, - { url: GROUP, name: '工器具总保有量', value: 9999 }, + { name: '机具设备总保有量', value: 9999 }, + { url: GROUP, name: '调试设备总保有量', value: 9999 }, ], newArr: [ { url: GROUP, name: '在库机具', value: 999 }, @@ -79,8 +79,8 @@ export default { this.newArr = [] getTotalOwnershipApi().then(res => { this.newArrOne.push( - { name: '施工机具总保有量', value: res.data[0].totalOwnershipNum }, - { url: GROUP, name: '工器具总保有量', value: res.data[1].totalOwnershipNum }, + { name: '机具设备总保有量', value: res.data[0].totalOwnershipNum }, + { url: GROUP, name: '调试设备总保有量', value: res.data[1].totalOwnershipNum }, ) this.newArr.push( { url: GROUP, name: '在库机具', value: res.data[0].stockNum }, diff --git a/sgzb-screen/src/components/home/inventoryDialog.vue b/sgzb-screen/src/components/home/inventoryDialog.vue index 778ddbba..386d1f4e 100644 --- a/sgzb-screen/src/components/home/inventoryDialog.vue +++ b/sgzb-screen/src/components/home/inventoryDialog.vue @@ -84,16 +84,16 @@ export default { prop: 'typeName', align: 'center' }, - { - label: '规格型号', - prop: 'typeModelName', - align: 'center' - }, - { - label: '单位', - prop: 'unitName', - align: 'center' - }, + // { + // label: '规格型号', + // prop: 'typeModelName', + // align: 'center' + // }, + // { + // label: '单位', + // prop: 'unitName', + // align: 'center' + // }, { label: '在库数量', prop: 'stockNum', diff --git a/sgzb-screen/src/components/home/leftOne.vue b/sgzb-screen/src/components/home/leftOne.vue index c8168102..ada72b5e 100644 --- a/sgzb-screen/src/components/home/leftOne.vue +++ b/sgzb-screen/src/components/home/leftOne.vue @@ -5,10 +5,10 @@
领料数据
- +
- +
diff --git a/sgzb-screen/src/components/home/leftTwo.vue b/sgzb-screen/src/components/home/leftTwo.vue index b9eca5d9..31d3ce48 100644 --- a/sgzb-screen/src/components/home/leftTwo.vue +++ b/sgzb-screen/src/components/home/leftTwo.vue @@ -5,10 +5,10 @@
退料数据
- +
- +
From aa3e125e09c7f59c97d576eaa54c54a45d029123 Mon Sep 17 00:00:00 2001 From: mashuai Date: Thu, 13 Jun 2024 13:38:26 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/largeScreen/LargeScreenMapper.xml | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/sgzb-modules/sgzb-base/src/main/resources/mapper/largeScreen/LargeScreenMapper.xml b/sgzb-modules/sgzb-base/src/main/resources/mapper/largeScreen/LargeScreenMapper.xml index 162dde6e..9051a06f 100644 --- a/sgzb-modules/sgzb-base/src/main/resources/mapper/largeScreen/LargeScreenMapper.xml +++ b/sgzb-modules/sgzb-base/src/main/resources/mapper/largeScreen/LargeScreenMapper.xml @@ -439,14 +439,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" SELECT mt2.type_name AS typeName, mt2.type_id AS typeId, - mt.type_name AS typeModelName, - mt.unit_name AS unitName, - IFNULL( mt.num, 0 ) AS stockNum, - IFNULL( subquery1.usNum, 0 ) AS useNum, - IFNULL( subquery2.repairNum, 0 ) AS inRepairNum, - IFNULL( subquery3.repairInputNum, 0 ) AS inputNum, - IFNULL( subquery4.inputNum, 0 ) AS purchaseNum, - IFNULL( mt.num, 0 ) + IFNULL( subquery1.usNum, 0 ) + IFNULL( subquery2.repairNum, 0 ) + IFNULL( subquery3.repairInputNum, 0 ) AS totalOwnershipNum, + SUM( + IFNULL( mt.num, 0 )) AS stockNum, + SUM( + IFNULL( subquery1.usNum, 0 )) AS useNum, + SUM( + IFNULL( subquery2.repairNum, 0 )) AS inRepairNum, + SUM( + IFNULL( subquery3.repairInputNum, 0 )) AS inputNum, + SUM( + IFNULL( subquery4.inputNum, 0 )) AS purchaseNum, + SUM( + IFNULL( mt.num, 0 ) + IFNULL( subquery1.usNum, 0 ) + IFNULL( subquery2.repairNum, 0 ) + IFNULL( subquery3.repairInputNum, 0 )) AS totalOwnershipNum, sd.dept_name AS companyName FROM ma_type mt @@ -549,6 +553,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" AND mt2.type_id = #{typeId} + GROUP BY + mt2.type_id