lvhao 4 هفته پیش
والد
کامیت
637c4bbede
1فایلهای تغییر یافته به همراه17 افزوده شده و 2 حذف شده
  1. 17 2
      template/erp/fullorder_edit.html

+ 17 - 2
template/erp/fullorder_edit.html

@@ -1039,7 +1039,6 @@ var index = $("select[name='printtype']").find("option:selected").index();
 		
 		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{
@@ -1049,7 +1048,23 @@ var index = $("select[name='printtype']").find("option:selected").index();
 			}
 		}
 
-		
+		let sbpm = "{$fullorder['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() {