lvhao 8 saat önce
ebeveyn
işleme
58573f237e
1 değiştirilmiş dosya ile 14 ekleme ve 3 silme
  1. 14 3
      template/erp/js/index.js

+ 14 - 3
template/erp/js/index.js

@@ -1002,6 +1002,9 @@ $("select[name='zwpm']").change(function(){
 //product 关联操作
 $(".cike select").change(function(){
     var index = $(this).find("option:selected").index();
+	// if(index == 8){
+	// 	index = 2
+	// }
 	$(".pttab li").hide();	$(".pttab li").removeClass("post");
     $("."+index).show();$("."+index).addClass("post");
 	$('.pttab select option').prop('selected',false); 
@@ -1038,6 +1041,8 @@ $(".cike select").change(function(){
 		{
 			$(".synthetichair").show();
 		}
+	}else if(index == 8){
+		$(".BlendedHair").hide()
 	}
  });
 $(".cikeb select").change(function(){
@@ -1160,13 +1165,14 @@ else
              checkid = checkid + $(this).val()+",";
     });
 	var cd = $(".cike select").find("option:selected").index();
-	if(checkname == "" && typeof addedit != "undefined" && (addedit == "/whlabel/enteradd/" || addedit == "/whlabel/enteredit/"))
+	if(checkname == "" && typeof addedit != "undefined" && (addedit == "/whlabel/enteradd/" || addedit == "/whlabel/enteredit/" || addedit == "/specialstock/enteradd/" || addedit == "/specialstock/enteredit/"))
 	{
 		if($(".datalist .checkbox:eq("+i+")").prevAll("em").text() == '长 度:')
 		{
+
 			if(checkname == "" && typeof cd != "undefined" && cd != 4)
 	       {
-		   $(".ts p").text($(".datalist .checkbox:eq("+i+")").prevAll("em").text()+"为必填项");
+		   $(".ts p").text($(".datalist .checkbox:eq("+i+")").prevAll("em").text()+"为必填项123");
             $(".ts").show();
            setTimeout('$(".ts").fadeOut()', 600);
             return false;
@@ -2706,6 +2712,9 @@ window.location.reload();
 
 function cpxz() {
     var index = $(".cike select").find("option:selected").index();
+	// if(index == 8){
+	// 	index = 2
+	// }
 	$(".pttab li").hide();	$(".pttab li").removeClass("post");
     $("."+index).show();$("."+index).addClass("post");
 	$('.pttab select option:eq(0)').prop('selected','selected'); 
@@ -2742,6 +2751,9 @@ function cpxz() {
 		{
 			$(".synthetichair").show();
 		}
+	}else if(index == 8){
+		$(".BlendedHair").hide()
+	}
     //var indexb = $(".cikeb.post select").find("option:selected").val();
 	//发块的类型的清除 这里直接写死了
 	
@@ -2750,7 +2762,6 @@ function cpxz() {
 	}else{
 		var indexb = 0;
 	}
-    var indexb = $(".cikeb.post select").find("option:selected").val();
 	$(".pttab .a1").hide();$(".pttab .a2").hide();$(".pttab .a1").removeClass("post");$(".pttab .a2").removeClass("post");
 	if(indexb == 195)
      {