From b8a5d50cbad818616070edd22640971c15bab30a Mon Sep 17 00:00:00 2001 From: zhangsiqi <2825463979@qq.com> Date: Fri, 31 May 2024 14:18:34 +0800 Subject: [PATCH] =?UTF-8?q?[feat]bom=E6=B7=BB=E5=8A=A0=E6=98=AFtable?= =?UTF-8?q?=E7=94=A8=E9=87=8F=E6=9D=A1=E4=BB=B6=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/templates/erp/bom/add.html | 29 +++++++++++++------ 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/erp/bom/add.html b/ruoyi-admin/src/main/resources/templates/erp/bom/add.html index 98ebac06..0309f324 100644 --- a/ruoyi-admin/src/main/resources/templates/erp/bom/add.html +++ b/ruoyi-admin/src/main/resources/templates/erp/bom/add.html @@ -273,16 +273,13 @@ editable : { type : 'text', title : '用量', + mode:'inline', validate : function(value) { if (!value) { - return '用量不能为空'; + return '损耗率不能为空'; } if (isNaN(value)) { - return '用量必须为数字'; - }else if(value >100){ - return "输入数值不能大100" - }else if(value < 0){ - return "输入数值不能小于0"; + return '损耗率必须为数字'; } } } @@ -294,12 +291,17 @@ editable : { type : 'text', title : '损耗率', + mode:'inline', validate : function(value) { if (!value) { - return '损耗率不能为空'; + return '用量不能为空'; } if (isNaN(value)) { - return '损耗率必须为数字'; + return '用量必须为数字'; + }else if(value >100){ + return "输入数值不能大100" + }else if(value < 0){ + return "输入数值不能小于0"; } } } @@ -316,7 +318,16 @@ field: 'remark', align: 'center', title: '备注', - editable: true + editable : { + type : 'text', + title : '损耗率', + mode:'inline', + validate : function(value) { + if (!value) { + return '用量不能为空'; + } + } + } }] }; $.table.init(options);