|
@@ -75,7 +75,7 @@
|
|
|
<label><input type="radio" name="processType_p${process_index + 1}" value="2" <#if process.processType == 2>checked</#if>>修理工序</label>
|
|
|
<button type="button" class="my-btn-edit" onclick="delProcess(this)">删除节点</button>
|
|
|
</div>
|
|
|
- <div class="input-box"><span class="input-dic">节点名称</span><input class="my-input" name="processName" type="text" value="${process.processName!}" placeholder="请输入节点名称,2-20位中文、英文、数字组合" maxlength="20" required/> </div>
|
|
|
+ <div class="input-box"><span class="input-dic">节点名称</span><input class="my-input" name="processName" type="text" value="${process.processName!}" placeholder="请输入节点名称,2-20位字符" maxlength="20" required/> </div>
|
|
|
<div class="input-box"><span class="input-dic">节点操作</span>
|
|
|
<ul class="add-list oneTheNode" >
|
|
|
<#list process.nodes as nodes>
|
|
@@ -84,7 +84,7 @@
|
|
|
<#--<select class="my-select"><option>1</option></select>-->
|
|
|
<label><input type="radio" name="nodeStatus_p${process_index + 1}_n${nodes_index + 1}" value="1" <#if nodes.nodeStatus == 1>checked</#if>>正常</label>
|
|
|
<label><input type="radio" name="nodeStatus_p${process_index + 1}_n${nodes_index + 1}" value="0" <#if nodes.nodeStatus == 0>checked</#if>>异常</label>
|
|
|
- <input class="my-input" name="nodeDes" type="text" value="${nodes.nodeDes!}" placeholder="请输入节点操作描述,2-20位中文、英文、数字组合" maxlength="20" minlength="2" required/>
|
|
|
+ <input class="my-input" name="nodeDes" type="text" value="${nodes.nodeDes!}" placeholder="请输入节点操作描述,2-20位字符" maxlength="20" minlength="2" required/>
|
|
|
<i class="Hui-iconfont" onclick="delNode(this)"></i>
|
|
|
</li>
|
|
|
</#list>
|
|
@@ -147,23 +147,23 @@
|
|
|
}
|
|
|
|
|
|
var flag = true;
|
|
|
- $("input[name='processName']").each(function () {
|
|
|
- if( !(cnen_name.test($(this).val())) ){
|
|
|
- layer.msg('节点名称输入格式不正确', {icon: 5, time: 1000});
|
|
|
- flag = false;
|
|
|
- }
|
|
|
- })
|
|
|
- if(!flag)
|
|
|
- return false;
|
|
|
-
|
|
|
- $("input[name='nodeDes']").each(function () {
|
|
|
- if( !(check_name.test($(this).val())) ){
|
|
|
- layer.msg('节点操作描述输入格式不正确', {icon: 5, time: 1000});
|
|
|
- flag = false;
|
|
|
- }
|
|
|
- })
|
|
|
- if(!flag)
|
|
|
- return false;
|
|
|
+// $("input[name='processName']").each(function () {
|
|
|
+// if( !(cnen_name.test($(this).val())) ){
|
|
|
+// layer.msg('节点名称输入格式不正确', {icon: 5, time: 1000});
|
|
|
+// flag = false;
|
|
|
+// }
|
|
|
+// })
|
|
|
+// if(!flag)
|
|
|
+// return false;
|
|
|
+
|
|
|
+// $("input[name='nodeDes']").each(function () {
|
|
|
+// if( !(check_name.test($(this).val())) ){
|
|
|
+// layer.msg('节点操作描述输入格式不正确', {icon: 5, time: 1000});
|
|
|
+// flag = false;
|
|
|
+// }
|
|
|
+// })
|
|
|
+// if(!flag)
|
|
|
+// return false;
|
|
|
|
|
|
layer.confirm('您确定要修改产品信息吗?', {
|
|
|
btn: ['确定','取消'] //按钮
|
|
@@ -262,7 +262,7 @@
|
|
|
//+'<select class="my-select"><option>1</option></select> '
|
|
|
+'<label><input type="radio" name="nodeStatus_p'+ processNumber +'_n'+ nodeNumber +'" value="1" checked>正常</label> '
|
|
|
+'<label><input type="radio" name="nodeStatus_p'+ processNumber +'_n'+ nodeNumber +'" value="0">异常</label> '
|
|
|
- +'<input class="my-input" name="nodeDes" type="text" value="" placeholder="请输入节点操作描述,2-20位中文、英文、数字组合" maxlength="20" minlength="2" required/> '
|
|
|
+ +'<input class="my-input" name="nodeDes" type="text" value="" placeholder="请输入节点操作描述,2-20位字符" maxlength="20" minlength="2" required/> '
|
|
|
+'<i class="Hui-iconfont" onclick="delNode(this)"></i>'
|
|
|
+'</li>';
|
|
|
$(node).parent().before(nodeHtml);
|
|
@@ -280,14 +280,14 @@
|
|
|
+ '<label><input type="radio" name="processType_p'+ processNumber +'" value="2">修理工序</label>'
|
|
|
+ '<button type="button" class="my-btn-edit" onclick="delProcess(this)">删除节点</button>'
|
|
|
+ '</div>'
|
|
|
- + '<div class="input-box"><span class="input-dic">节点名称</span><input class="my-input" name="processName" type="text" value="" placeholder="请输入节点名称,2-20位中文、英文、数字组合" maxlength="20" required/> </div>'
|
|
|
+ + '<div class="input-box"><span class="input-dic">节点名称</span><input class="my-input" name="processName" type="text" value="" placeholder="请输入节点名称,2-20位字符" maxlength="20" required/> </div>'
|
|
|
+ '<div class="input-box"><span class="input-dic">节点操作</span>'
|
|
|
+ '<ul class="add-list oneTheNode">'
|
|
|
+ '<li class="nodeList">'
|
|
|
// + '<select class="my-select"><option>1</option></select> '
|
|
|
+ '<label><input type="radio" name="nodeStatus_p'+ processNumber +'_n1" value="1" checked>正常</label> '
|
|
|
+ '<label><input type="radio" name="nodeStatus_p'+ processNumber +'_n1" value="0">异常</label> '
|
|
|
- + '<input class="my-input" name="nodeDes" type="text" value="" placeholder="请输入节点操作描述,2-20位中文、英文、数字组合" maxlength="20" minlength="2" required/> '
|
|
|
+ + '<input class="my-input" name="nodeDes" type="text" value="" placeholder="请输入节点操作描述,2-20位字符" maxlength="20" minlength="2" required/> '
|
|
|
+ '<i class="Hui-iconfont" onclick="delNode(this)"></i>'
|
|
|
+ '</li>'
|
|
|
+ '<li><button type="button" class="my-btn-edit" onclick="addProNode(this)">增加节点操作</button></li>'
|