From 0b07c2a2f1d9663e70bbc5e7621762d3ca26a68c Mon Sep 17 00:00:00 2001
From: Joshi <3040996759@qq.com>
Date: Mon, 27 Apr 2026 18:34:40 +0800
Subject: [PATCH] =?UTF-8?q?refactor(PdiList):=20=E9=87=8D=E6=9E=84?=
=?UTF-8?q?=E8=A1=A8=E5=8D=95=E5=B8=83=E5=B1=80=E5=B9=B6=E4=BC=98=E5=8C=96?=
=?UTF-8?q?=E5=AD=97=E6=AE=B5=E7=BB=84=E7=BB=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 重新组织表单字段为更合理的分组结构
- 调整标签宽度和输入框样式
- 移除不必要的化学元素字段
- 更新表单验证规则
- 添加新的字段如钢卷状态、分卷模式等
---
frontend/src/views/PdiList.vue | 283 ++++++++++++++++-----------------
1 file changed, 136 insertions(+), 147 deletions(-)
diff --git a/frontend/src/views/PdiList.vue b/frontend/src/views/PdiList.vue
index 6372877..23b0293 100644
--- a/frontend/src/views/PdiList.vue
+++ b/frontend/src/views/PdiList.vue
@@ -72,156 +72,139 @@
-
+
- 基本信息
+ 基本数据
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
+ 来料数据基本信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 主数据
+
-
+
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 入口参数
-
-
-
+
+
+ 千克
-
-
+
+
-
-
+
+
+ 毫米
-
-
+
+
+ 毫米
-
-
+
+
-
-
+
+
+ 毫米
-
-
+
+
-
-
-
-
-
-
-
-
- 出口 / 订单参数
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 张力参数
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 化学成分 (%)
-
-
-
-
-
-
@@ -258,20 +241,17 @@
import { pdiApi, syncApi, gradeApi } from '../api/index'
const EMPTY = () => ({
- coilid: '', rollprogramnb: null, sequencenb: null,
- schedule_code: '', steel_grade: '', l2_grade: '',
- work_order_no: '', order_quality: '', sg_sign: '',
- packing_type_code: '', coiler_diameter: null, weight_mode: '',
- entry_coil_thickness: null, entry_coil_thickness_max: null, entry_coil_thickness_min: null,
- entry_coil_width: null, entry_coil_width_max: null, entry_coil_width_min: null,
- entry_coil_weight: null, entry_of_coil_length: null, entry_of_coil_outer_diameter: null,
- exit_coil_no: '', exit_coil_thickness: null, exit_coil_width: null, exit_coil_weight: null,
- order_thickness: null, order_width: null,
- uncoiler_tension: null, looper_tension_1: null, pl_tension: null,
- looper_tension_2: null, looper_tension_3: null,
- c: null, si: null, mn: null, p: null, s: null, cu: null,
- ni: null, cr: null, mo: null, v: null, ti: null, sol_al: null,
- nb: null, n: null, b: null, fe: null
+ rollprogramnb: null, sequencenb: null,
+ status: 0, schedule_code: '', coilid: '', next_process_code: '', steel_grade: '', l2_grade: '',
+ sg_sign: '', packing_type_code: '', coiler_diameter: null,
+ entry_coil_thickness: null, entry_coil_width: null,
+ entry_of_coil_inner_diameter: null, entry_of_coil_outer_diameter: null,
+ entry_of_coil_length: null, entry_coil_weight: null, crown_average: null,
+ order_thickness: null, order_width: null, material_yield_point: null,
+ welding_code: '', trimming: 0, trimming_width: null,
+ exit_coil_weight: null, exit_coil_no: '',
+ exit_coil_thickness: null, exit_coil_width: null,
+ sleeve_code_of_cold_coil: '', work_order_no: '', order_quality: ''
})
export default {
@@ -295,9 +275,11 @@ export default {
autoRefreshTimer: null, // 定时器句柄
autoRefreshCountdown: 0, // 倒计时秒数
rules: {
- coilid: [
- { required: true, message: '卷号不能为空', trigger: 'blur' },
- { min: 12, max: 12, message: '卷号必须为12位', trigger: 'blur' }
+ rollprogramnb: [
+ { required: true, message: '批次编号不能为空', trigger: 'blur' }
+ ],
+ sequencenb: [
+ { required: true, message: '顺序不能为空', trigger: 'blur' }
]
},
chemElements: ['c', 'si', 'mn', 'p', 's', 'cu', 'ni', 'cr', 'mo', 'v', 'ti', 'sol_al', 'nb', 'n', 'b', 'fe'],
@@ -555,5 +537,12 @@ export default {
\ No newline at end of file