From 3b3afebb93f8e41e2a69c6d5bc51fe0df5dc3148 Mon Sep 17 00:00:00 2001
From: "liang.chao" <1360241448@qq.com>
Date: Fri, 6 Feb 2026 10:20:00 +0800
Subject: [PATCH 1/4] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
resources/mybatis/index/IndexHomeDetailsMapper.xml | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/resources/mybatis/index/IndexHomeDetailsMapper.xml b/resources/mybatis/index/IndexHomeDetailsMapper.xml
index 03f7af0..c7a1580 100644
--- a/resources/mybatis/index/IndexHomeDetailsMapper.xml
+++ b/resources/mybatis/index/IndexHomeDetailsMapper.xml
@@ -272,9 +272,7 @@
and mat2.`NAME` like concat ('%',#{maType},'%')
-
- and rs.isCount = #{isCount}
-
+
GROUP BY rs.typeId
) a WHERE
@@ -287,6 +285,9 @@
mt.`LEVEL` = 4
AND mt.IS_ACTIVE = 1
)
+
+ and a.isCount = #{isCount}
+
From 38236a98d0e8edf5d70cc8902175c205239728a4 Mon Sep 17 00:00:00 2001
From: jiask <1069621233@qq.com>
Date: Fri, 6 Feb 2026 10:21:06 +0800
Subject: [PATCH 2/4] =?UTF-8?q?jsk=20=20=E6=9C=BA=E5=85=B7=E5=8D=A0?=
=?UTF-8?q?=E6=AF=94=20=20=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../equipment/equipmentProportionDetail.jsp | 335 ++++++++++++++++++
.../views/equipment/equipmentTypeDetail.jsp | 298 ++++++++++++++++
2 files changed, 633 insertions(+)
create mode 100644 WebContent/WEB-INF/views/equipment/equipmentProportionDetail.jsp
create mode 100644 WebContent/WEB-INF/views/equipment/equipmentTypeDetail.jsp
diff --git a/WebContent/WEB-INF/views/equipment/equipmentProportionDetail.jsp b/WebContent/WEB-INF/views/equipment/equipmentProportionDetail.jsp
new file mode 100644
index 0000000..d085e50
--- /dev/null
+++ b/WebContent/WEB-INF/views/equipment/equipmentProportionDetail.jsp
@@ -0,0 +1,335 @@
+<%@ page contentType="text/html;charset=UTF-8" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+
+
+
+ <%@include file="../baseset.jsp" %>
+ <%@include file="../systemset.jsp" %>
+
+ 入库占比
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WebContent/WEB-INF/views/equipment/equipmentTypeDetail.jsp b/WebContent/WEB-INF/views/equipment/equipmentTypeDetail.jsp
new file mode 100644
index 0000000..dc93088
--- /dev/null
+++ b/WebContent/WEB-INF/views/equipment/equipmentTypeDetail.jsp
@@ -0,0 +1,298 @@
+<%@ page contentType="text/html;charset=UTF-8" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+
+
+
+ <%@include file="../baseset.jsp" %>
+ <%@include file="../systemset.jsp" %>
+
+ 机具类别
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
From cf226ddae76ece6716e6158e1bdfa56f1f2550ff Mon Sep 17 00:00:00 2001
From: jiask <1069621233@qq.com>
Date: Fri, 6 Feb 2026 10:22:52 +0800
Subject: [PATCH 3/4] =?UTF-8?q?jsk=20=20=E6=9C=BA=E5=85=B7=E5=8D=A0?=
=?UTF-8?q?=E6=AF=94=20=20=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
WebContent/WEB-INF/views/index/indexHome.jsp | 40 ++++++++++++++++----
WebContent/static/js/index/indexHome.js | 6 ++-
2 files changed, 38 insertions(+), 8 deletions(-)
diff --git a/WebContent/WEB-INF/views/index/indexHome.jsp b/WebContent/WEB-INF/views/index/indexHome.jsp
index 0f906d6..41281f9 100644
--- a/WebContent/WEB-INF/views/index/indexHome.jsp
+++ b/WebContent/WEB-INF/views/index/indexHome.jsp
@@ -810,12 +810,12 @@
@@ -931,7 +931,7 @@
function showEquipmentTypes() {
layer.open({
type: 2,
- title: '机具类别明细',
+ title: '入库占比',
area: ['1500px', '700px'],
content: '${bonuspath}/backstage/indexHome/dataOverview/equipment/index',
btn: ['关闭'], // 添加关闭按钮
@@ -941,6 +941,32 @@
});
}
+ function showEquipmentTypes1(name,type) {
+ layer.open({
+ type: 2,
+ title: ''+name,
+ area: ['1500px', '700px'],
+ content: '${bonuspath}/backstage/indexHome/dataOverview/equipmentProportion/index?type='+type,
+ btn: ['关闭'], // 添加关闭按钮
+ yes: function(index, layero) {
+ layer.close(index); // 关闭当前弹窗
+ }
+ });
+ }
+
+ function showEquipmentTypes2(name,type) {
+ layer.open({
+ type: 2,
+ title: ''+name,
+ area: ['1500px', '700px'],
+ content: '${bonuspath}/backstage/indexHome/dataOverview/equipmentType/index?type='+type,
+ btn: ['关闭'], // 添加关闭按钮
+ yes: function(index, layero) {
+ layer.close(index); // 关闭当前弹窗
+ }
+ });
+ }
+
function showProjectDetail() {
layer.open({
type: 2,
diff --git a/WebContent/static/js/index/indexHome.js b/WebContent/static/js/index/indexHome.js
index 5143c0a..b140bf5 100644
--- a/WebContent/static/js/index/indexHome.js
+++ b/WebContent/static/js/index/indexHome.js
@@ -1230,6 +1230,7 @@ $(function() {
{ key: 'repairStorage', index: 2, title: '修试后入库', color: '#36cfc9' },
{ key: 'inventoryStorage', index: 3, title: '盘点入库', color: '#73d13d' },
{ key: 'returnStorage', index: 4, title: '退料入库', color: '#ffc53d' },
+ // { key: 'repairStorage', index: 4, title: '退料入库', color: '#ffc53d' },
{ key: 'equipmentCount', index: 5, title: '机具数量', color: '#ff7a45' },
{ key: 'deviceCount', index: 6, title: '编码数量', color: '#722ed1' }
];
@@ -1241,7 +1242,10 @@ $(function() {
continue;
}
- const chartData = data[config.key] || { value: 0, total: 100 };
+ let chartData = data[config.key] || { value: 0, total: 100 };
+ if(config.key=='returnStorage'){
+ chartData=data['repairStorage'] || { value: 0, total: 100 };
+ }
const option = createCircleChartOption(chartData, config.title, config.color);
try {
From ce6022dff39d5435fd56b54cea8c9e82d893eda2 Mon Sep 17 00:00:00 2001
From: jiask <1069621233@qq.com>
Date: Fri, 6 Feb 2026 11:12:47 +0800
Subject: [PATCH 4/4] jsk
---
.../equipment/equipmentProportionDetail.jsp | 61 +++++++++----------
1 file changed, 30 insertions(+), 31 deletions(-)
diff --git a/WebContent/WEB-INF/views/equipment/equipmentProportionDetail.jsp b/WebContent/WEB-INF/views/equipment/equipmentProportionDetail.jsp
index d085e50..eaa39b2 100644
--- a/WebContent/WEB-INF/views/equipment/equipmentProportionDetail.jsp
+++ b/WebContent/WEB-INF/views/equipment/equipmentProportionDetail.jsp
@@ -98,15 +98,14 @@
var typed=5;
var urld='${bonuspath}/backstage/indexHomeDetails/getNewlyStored';
var colsd=[[
- {type: 'numbers', title: '序号', width: 80},
- {field: 'isCount', title: '机具类别', width: 120, templet: function(d) {
+ {type: 'numbers', title: '序号', width: 100},
+ {field: 'isCount', title: '机具类别', width: 200, templet: function(d) {
return d.isCount === '0' ? '设备' : '机具';
}},
- {field: 'maType', title: '机具名称', width: 200},
- {field: 'maName', title: '规格型号', width: 200},
- {field: 'maUnit', title: '单位', width: 90},
- {field: 'maTotal', title: '保有量', width: 90},
- {field: 'storageNum', title: '新购入库量', width: 120},
+ {field: 'maType', title: '机具名称', width: 450},
+ {field: 'maName', title: '规格型号', width: 300},
+ {field: 'maUnit', title: '单位', width: 150},
+ {field: 'storageNum', title: '新购入库量', width: 200},
]];
// 渲染表单
form.render('select');
@@ -114,50 +113,50 @@
if(type==2){
typed=3;
colsd=[[
- {type: 'numbers', title: '序号', width: 80},
- {field: 'isCount', title: '机具类别', width: 120, templet: function(d) {
+ {type: 'numbers', title: '序号', width: 100},
+ {field: 'isCount', title: '机具类别', width: 200, templet: function(d) {
return d.isCount === '0' ? '设备' : '机具';
}},
- {field: 'maType', title: '机具名称', width: 200},
- {field: 'maName', title: '规格型号', width: 200},
- {field: 'maUnit', title: '单位', width: 90},
- {field: 'storageNum', title: '修试后入库量', width: 120},
+ {field: 'maType', title: '机具名称', width: 450},
+ {field: 'maName', title: '规格型号', width: 300},
+ {field: 'maUnit', title: '单位', width: 150},
+ {field: 'storageNum', title: '修试后入库量', width: 200},
]];
}else if(type==4){
typed=3;
colsd=[[
- {type: 'numbers', title: '序号', width: 80},
- {field: 'isCount', title: '机具类别', width: 120, templet: function(d) {
+ {type: 'numbers', title: '序号', width: 100},
+ {field: 'isCount', title: '机具类别', width: 200, templet: function(d) {
return d.isCount === '0' ? '设备' : '机具';
}},
- {field: 'maType', title: '机具名称', width: 200},
- {field: 'maName', title: '规格型号', width: 200},
- {field: 'maUnit', title: '单位', width: 90},
- {field: 'storageNum', title: '退料入库量', width: 120}
+ {field: 'maType', title: '机具名称', width: 450},
+ {field: 'maName', title: '规格型号', width: 300},
+ {field: 'maUnit', title: '单位', width: 150},
+ {field: 'storageNum', title: '退料入库量', width: 200}
]];
}else if(type==1){
typed=5;
colsd=[[
- {type: 'numbers', title: '序号', width: 80},
- {field: 'isCount', title: '机具类别', width: 120, templet: function(d) {
+ {type: 'numbers', title: '序号', width: 100},
+ {field: 'isCount', title: '机具类别', width: 200, templet: function(d) {
return d.isCount === '0' ? '设备' : '机具';
}},
- {field: 'maType', title: '机具名称', width: 200},
- {field: 'maName', title: '规格型号', width: 200},
- {field: 'maUnit', title: '单位', width: 90},
- {field: 'storageNum', title: '新购入库量', width: 120},
+ {field: 'maType', title: '机具名称', width: 450},
+ {field: 'maName', title: '规格型号', width: 300},
+ {field: 'maUnit', title: '单位', width: 150},
+ {field: 'storageNum', title: '新购入库量', width: 200},
]];
}else if(type==3){
urld='${bonuspath}/backstage/indexHomeDetails/getInventoryStored';
colsd=[[
- {type: 'numbers', title: '序号', width: 80},
- {field: 'isCount', title: '机具类别', width: 120, templet: function(d) {
+ {type: 'numbers', title: '序号', width: 100},
+ {field: 'isCount', title: '机具类别', width: 200, templet: function(d) {
return d.isCount === '0' ? '设备' : '机具';
}},
- {field: 'maType', title: '机具名称', width: 200},
- {field: 'maName', title: '规格型号', width: 200},
- {field: 'maUnit', title: '单位', width: 90},
- {field: 'storageNum', title: '盘点入库量', width: 120},
+ {field: 'maType', title: '机具名称', width: 450},
+ {field: 'maName', title: '规格型号', width: 300},
+ {field: 'maUnit', title: '单位', width: 150},
+ {field: 'storageNum', title: '盘点入库量', width: 200},
]];
}
// 监听数量筛选下拉框