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', // 表示该列可以被编辑为文本 }, },