Переглянути джерело

解决变更时信息项英文名称无法编辑问题

胡杰 10 місяців тому
батько
коміт
36245b85e9

+ 9 - 3
cn.com.taiji.system/src/main/resources/static/theme/tinfoclass/tinfoclass_bg.js

@@ -21,13 +21,17 @@ $(".mainform")
                         
 						var isCf=false;
 						var ary= new Array();
+						var ary2= new Array();
 						$("input[name='xxxmc']").each(function(){
 							ary.push($(this).val());
 						});
-						if(ary.length==0){
+						$("input[name='xxxdbmc']").each(function(){
+							ary2.push($(this).val());
+						});
+
+						if(ary.length==0 || ary2.length==0){
 							   isCf=true;
 							   alert("您尚未填写完整相关信息项信息,请填写后提交。");
-						   
 						}
 						var nary=ary.sort();
 						for(var i = 0; i < nary.length - 1; i++)
@@ -454,6 +458,7 @@ function addDataMetaInfo(obj,xxxid){
     +"          <option value=\"是\" title=\"是\"  "+selectvalue1+">是</option>"
     +"         </select></td>"
     +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"xxxmc\"  value=\""+obj.xxxmc.value+"\"/></td>"
+	+"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"xxxdbmc\"  value=\""+obj.xxxdbmc.value+"\"/></td>"
     +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"xxxbm\" readonly=\"true\" value=\""+obj.xxxbm.value+"\"/></td>"
     +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"glsjy\" readonly=\"true\" value=\""+obj.glsjy.value+"\"/></td>"
     +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"sjymc\" readonly=\"true\" value=\""+obj.sjymc.value+"\"/></td>"
@@ -505,7 +510,8 @@ function addDataMetaInfoZt(obj,xxxid){
     +"          <option value=\"是\"  title=\"是\"  "+selectvalue1+">是</option>"
     +"         </select></td>"
     +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"xxxmc\"  value=\""+obj.xxxmc+"\"/></td>"
-    +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"xxxbm\" readonly=\"true\" value=\""+obj.xxxbm+"\"/></td>"
+		+"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"xxxdbmc\"  value=\""+obj.xxxdbmc+"\"/></td>"
+	+"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"xxxbm\" readonly=\"true\" value=\""+obj.xxxbm+"\"/></td>"
     +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"glsjy\" readonly=\"true\" value=\""+obj.glsjy+"\"/></td>"
     +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"sjymc\" readonly=\"true\" value=\""+obj.sjymc+"\"/></td>"