From 847313168560bc7d65882aef2cad625c8c17247d Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Thu, 23 May 2024 18:50:38 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=E5=93=81=E8=B4=A8=E7=AE=A1=E7=90=86:=20?= =?UTF-8?q?=E5=93=81=E8=B4=A8=E6=8A=A5=E5=91=8A=20=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8C=89=E9=92=AE=20=E7=BB=99=E4=B8=8D?= =?UTF-8?q?=E8=89=AF=E6=95=B0=E9=87=8F=E6=96=B0=E5=A2=9E=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=EF=BC=8C=E6=96=B0=E5=A2=9E=E6=95=B0=E5=AD=97?= =?UTF-8?q?=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/quality/qualityOrder/qualityOrder.html | 5 ----- .../quality/qualityOrder/qualityOrderReport.html | 12 +++++++++++- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrder.html b/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrder.html index 17ef70a5..e537fe1d 100644 --- a/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrder.html +++ b/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrder.html @@ -48,11 +48,6 @@ -
- - 添加 - -
diff --git a/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrderReport.html b/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrderReport.html index 6e7d29d5..f7f70646 100644 --- a/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrderReport.html +++ b/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrderReport.html @@ -203,12 +203,22 @@ { title: '数量', field: 'processBadNum', - editable:true + editable:{ + type: 'text', + mode:'inline', + validate: function (v) { + if (!v) return '数量不能为空'; + if (isNaN(v)) return '数量必须是数字'; + var processBadNum = parseInt(v); + if (processBadNum <= 0) return '数量必须是正整数'; + } + } }, { title: '报告', field: 'unqualifiedReportUrl', editable: { + mode:'inline', type: 'text', // 表示该列可以被编辑为文本 }, },