瀏覽代碼

添加快递优化选项

lvhao 3 周之前
父節點
當前提交
aaf8c5b8bd
共有 3 個文件被更改,包括 54 次插入0 次删除
  1. 18 0
      template/erp/fullorderamz_edit.html
  2. 18 0
      template/erp/fullordersmt_edit.html
  3. 18 0
      template/erp/fullordertt_edit.html

+ 18 - 0
template/erp/fullorderamz_edit.html

@@ -910,6 +910,24 @@ var index = $("select[name='printtype']").find("option:selected").index();
 			$("select[name=printtype]").val(tmp_first_express)
 		}
 	}
+
+	let sbpm = "{$fullorderamz['sbpm']}";
+	
+	if(sbpm.length == 0){
+		let tmp_express =	$("select[name=express]").find("option:selected").val();
+		console.log(tmp_express)
+		let tmp_sbpm = ""
+		if(tmp_express){
+			tmp_sbpm =  $("select[name=express]").find("option:selected").data('sbpm');
+			
+		}else{
+			tmp_sbpm =  $("select[name=express]  option")[0].data('sbpm');
+		}
+		if(tmp_sbpm.length > 0){
+			$("select[name=sbpm]").val(tmp_sbpm).trigger('change')
+		}
+		
+	}
 	console.log("--------------------------")
 });
 function custom() {

+ 18 - 0
template/erp/fullordersmt_edit.html

@@ -830,6 +830,24 @@ var index = $("select[name='printtype']").find("option:selected").index();
 			$("select[name=printtype]").val(tmp_first_express)
 		}
 	}
+
+	let sbpm = "{$fullordersmt['sbpm']}";
+	
+	if(sbpm.length == 0){
+		let tmp_express =	$("select[name=express]").find("option:selected").val();
+		console.log(tmp_express)
+		let tmp_sbpm = ""
+		if(tmp_express){
+			tmp_sbpm =  $("select[name=express]").find("option:selected").data('sbpm');
+			
+		}else{
+			tmp_sbpm =  $("select[name=express]  option")[0].data('sbpm');
+		}
+		if(tmp_sbpm.length > 0){
+			$("select[name=sbpm]").val(tmp_sbpm).trigger('change')
+		}
+		
+	}
 	console.log("--------------------------")
 });
 function custom() {

+ 18 - 0
template/erp/fullordertt_edit.html

@@ -899,6 +899,24 @@ var index = $("select[name='printtype']").find("option:selected").index();
 				$("select[name=printtype]").val(tmp_first_express)
 			}
 		}
+
+		let sbpm = "{$fullordertt['sbpm']}";
+	
+		if(sbpm.length == 0){
+			let tmp_express =	$("select[name=express]").find("option:selected").val();
+			console.log(tmp_express)
+			let tmp_sbpm = ""
+			if(tmp_express){
+				tmp_sbpm =  $("select[name=express]").find("option:selected").data('sbpm');
+				
+			}else{
+				tmp_sbpm =  $("select[name=express]  option")[0].data('sbpm');
+			}
+			if(tmp_sbpm.length > 0){
+				$("select[name=sbpm]").val(tmp_sbpm).trigger('change')
+			}
+			
+		}
 		console.log("--------------------------")
 });
 function custom() {