|
@@ -910,6 +910,24 @@ var index = $("select[name='printtype']").find("option:selected").index();
|
|
$("select[name=printtype]").val(tmp_first_express)
|
|
$("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("--------------------------")
|
|
console.log("--------------------------")
|
|
});
|
|
});
|
|
function custom() {
|
|
function custom() {
|