lvhao 1 miesiąc temu
rodzic
commit
a821ba01b4

+ 18 - 0
template/erp/fullorderamz_edit.html

@@ -893,6 +893,24 @@ var index = $("select[name='printtype']").find("option:selected").index();
 			$(".productdescription").hide();
 				$(".customs").hide();
 		}
+
+
+
+	let printtype = "{$fullorderamz['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/fullorderamz_readonly.html

@@ -627,6 +627,23 @@ if($("select[name='express']").find("option:selected").val() == '24' || $("selec
 		{
 			 $("select[name='qm']").html('<option value="0" {if $fullorderamz["qm"] == 0}selected="selected"{/if}>不需要</option><option value="1" {if $fullorderamz["qm"] == 1}selected="selected"{/if}>需要</option>');
 		}
+
+
+		let printtype = "{$fullorderamz['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/fullordersmt_edit.html

@@ -814,6 +814,23 @@ var index = $("select[name='printtype']").find("option:selected").index();
 			$(".productdescription").hide();
 				$(".customs").hide();
 		}
+
+
+	let printtype = "{$fullordersmt['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/fullordersmt_readonly.html

@@ -533,6 +533,22 @@ if($("select[name='express']").find("option:selected").val() == '24' || $("selec
 		$(".qm").show();
 	}
 $("#refundtime").calendar();custom();pptskc('2');
+
+let printtype = "{$fullordersmt['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;