lvhao 1 ヶ月 前
コミット
cd1c747011

+ 17 - 0
template/erp/fullorder_edit.html

@@ -1032,6 +1032,23 @@ var index = $("select[name='printtype']").find("option:selected").index();
 			$(".productdescription").hide();
 				$(".customs").hide();
 		}
+
+
+	  let printtype = "{$fullod['printtype']}";
+		console.log("=====================")
+		
+		if(printtype*1 == 0){
+			let tmp_express =	$("select[name=express]").find("option:selected").val();
+			console.log(tmp_express)
+			if(tmp_express){
+				$("select[name=printtype]").val($("select[name=express]").find("option:selected").data('type'))
+			}else{
+				let tmp_first_express =  $("select[name=express]  option")[0].data('type');
+				console.log(tmp_first_express)
+				$("select[name=printtype]").val('type')
+			}
+		}
+		console.log("--------------------------")
 });
 function custom() {
 var num = $('.packing .datatitle tr').children().length;

+ 17 - 0
template/erp/fullorder_readonly.html

@@ -682,6 +682,23 @@ if($("select[name='express']").find("option:selected").val() == '24' || $("selec
 		{
 			 $("select[name='qm']").html('<option value="0" {if $fullorder["qm"] == 0}selected="selected"{/if}>不需要</option><option value="1" {if $fullorder["qm"] == 1}selected="selected"{/if}>需要</option>');
 		}
+
+
+		let printtype = "{$fullod['printtype']}";
+		console.log("=====================")
+		
+		if(printtype*1 == 0){
+			let tmp_express =	$("select[name=express]").find("option:selected").val();
+			console.log(tmp_express)
+			if(tmp_express){
+				$("select[name=printtype]").val($("select[name=express]").find("option:selected").data('type'))
+			}else{
+				let tmp_first_express =  $("select[name=express]  option")[0].data('type');
+				console.log(tmp_first_express)
+				$("select[name=printtype]").val('type')
+			}
+		}
+		console.log("--------------------------")
 });
 function custom() {
 var num = $('.packing .datatitle tr').children().length;

+ 17 - 0
template/erp/fullordertt_edit.html

@@ -883,6 +883,23 @@ var index = $("select[name='printtype']").find("option:selected").index();
 			$(".productdescription").hide();
 				$(".customs").hide();
 		}
+
+
+		let printtype = "{$fullod['printtype']}";
+		console.log("=====================")
+		
+		if(printtype*1 == 0){
+			let tmp_express =	$("select[name=express]").find("option:selected").val();
+			console.log(tmp_express)
+			if(tmp_express){
+				$("select[name=printtype]").val($("select[name=express]").find("option:selected").data('type'))
+			}else{
+				let tmp_first_express =  $("select[name=express]  option")[0].data('type');
+				console.log(tmp_first_express)
+				$("select[name=printtype]").val('type')
+			}
+		}
+		console.log("--------------------------")
 });
 function custom() {
 var num = $('.packing .datatitle tr').children().length;

+ 16 - 0
template/erp/fullordertt_readonly.html

@@ -631,6 +631,22 @@ if($("select[name='express']").find("option:selected").val() == '24' || $("selec
 		{
 			 $("select[name='qm']").html('<option value="0" {if $fullordertt["qm"] == 0}selected="selected"{/if}>不需要</option><option value="1" {if $fullordertt["qm"] == 1}selected="selected"{/if}>需要</option>');
 		}
+
+		let printtype = "{$fullod['printtype']}";
+		console.log("=====================")
+		
+		if(printtype*1 == 0){
+			let tmp_express =	$("select[name=express]").find("option:selected").val();
+			console.log(tmp_express)
+			if(tmp_express){
+				$("select[name=printtype]").val($("select[name=express]").find("option:selected").data('type'))
+			}else{
+				let tmp_first_express =  $("select[name=express]  option")[0].data('type');
+				console.log(tmp_first_express)
+				$("select[name=printtype]").val('type')
+			}
+		}
+		console.log("--------------------------")
 });
 function custom() {
 var num = $('.packing .datatitle tr').children().length;