From a8ca4353e7f86f94ec586c3196d1a75e4456ebe3 Mon Sep 17 00:00:00 2001
From: Joshi <3040996759@qq.com>
Date: Fri, 5 Jun 2026 14:23:49 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E9=92=A2=E5=8D=B7?=
=?UTF-8?q?=E7=BC=BA=E9=99=B7=E7=BB=B4=E6=8A=A4=E5=8A=9F=E8=83=BD=E6=A8=A1?=
=?UTF-8?q?=E5=9D=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
1. 新增缺陷维护页面路由与入口
2. 实现钢卷缺陷的增删改查及图片上传功能
3. 添加缺陷级别统计与分页展示
4. 集成钢卷查询与缺陷管理API
---
apps/hand-factory/api/wms/coilAbnormal.js | 53 +
apps/hand-factory/pages.json | 6 +
.../hand-factory/pages/defect/coil-defect.vue | 1060 +++++++++++++++++
3 files changed, 1119 insertions(+)
create mode 100644 apps/hand-factory/api/wms/coilAbnormal.js
create mode 100644 apps/hand-factory/pages/defect/coil-defect.vue
diff --git a/apps/hand-factory/api/wms/coilAbnormal.js b/apps/hand-factory/api/wms/coilAbnormal.js
new file mode 100644
index 0000000..914e5fa
--- /dev/null
+++ b/apps/hand-factory/api/wms/coilAbnormal.js
@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询钢卷异常信息列表
+export function listCoilAbnormal(query) {
+ return request({
+ url: '/wms/coilAbnormal/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询钢卷异常信息详细
+export function getCoilAbnormal(abnormalId) {
+ return request({
+ url: '/wms/coilAbnormal/' + abnormalId,
+ method: 'get'
+ })
+}
+
+// 新增钢卷异常信息
+export function addCoilAbnormal(data) {
+ return request({
+ url: '/wms/coilAbnormal',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改钢卷异常信息
+export function updateCoilAbnormal(data) {
+ return request({
+ url: '/wms/coilAbnormal',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除钢卷异常信息
+export function delCoilAbnormal(abnormalId) {
+ return request({
+ url: '/wms/coilAbnormal/' + abnormalId,
+ method: 'delete'
+ })
+}
+
+// 异常判级
+export function judgeAbnormalLevel(params) {
+ return request({
+ url: '/wms/coilAbnormal/judge',
+ method: 'put',
+ params
+ })
+}
diff --git a/apps/hand-factory/pages.json b/apps/hand-factory/pages.json
index 43a1fa3..e156832 100644
--- a/apps/hand-factory/pages.json
+++ b/apps/hand-factory/pages.json
@@ -119,6 +119,12 @@
"style": {
"navigationBarTitleText": "设备巡检"
}
+ },
+ {
+ "path": "pages/defect/coil-defect",
+ "style": {
+ "navigationBarTitleText": "缺陷维护"
+ }
}
],
"globalStyle": {
diff --git a/apps/hand-factory/pages/defect/coil-defect.vue b/apps/hand-factory/pages/defect/coil-defect.vue
new file mode 100644
index 0000000..6f1db4f
--- /dev/null
+++ b/apps/hand-factory/pages/defect/coil-defect.vue
@@ -0,0 +1,1060 @@
+
+
+
+
+
+
+
+
+ 查询钢卷
+
+
+ 入场钢卷号
+
+
+
+ 当前钢卷号
+
+
+
+ 品名
+
+
+
+ 规格
+
+
+
+ 材质
+
+
+
+ 逻辑库区
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+ 暂无符合条件的钢卷数据
+
+
+
+
+
+ 入场号: {{ item.enterCoilNo || '-' }}
+ 品名: {{ item.itemName || '-' }}
+ 规格: {{ item.itemSpecification || '-' }}
+ 净重: {{ item.netWeight || '-' }}吨
+
+
+
+
+
+
+
+
+
+ 重查
+
+
+
+
+
+
+
+
+
+
+ {{ stat.count }}
+ {{ stat.label }}
+
+
+
+
+ 该钢卷暂无异常记录
+
+
+
+
+ {{ item.abnormalLevel || 'C' }}级
+
+ 编辑
+ 删除
+
+
+ {{ item.abnormalDesc || '暂无描述' }}
+
+
+
+
+ {{ item.createTime || '' }}
+
+
+
+
+ +
+
+
+
+
+ ←
+
+
+
+
+
+
+
+
+
+
+
+
+