|
@@ -580,14 +580,7 @@ $("#currency").change(function(){
|
|
|
$("select[name='ioss']").change(function() {
|
|
|
var io = $(this).find("option:selected").val();
|
|
|
var gj =$("select[name='express']").find("option:selected").val();
|
|
|
- //alert(io+' - '+gj);
|
|
|
- if((gj == 66 || gj == 67) && io != 'IOSS243131124570470022786' && io != 'IOSS243131124412071487821')
|
|
|
- {
|
|
|
- layx.alert('提示','禁止更改!',null,{dialogIcon:'error'});
|
|
|
- $("select[name=ioss]").find("option[value='IOSS243131124570470022786']").prop("selected","selected");
|
|
|
- }
|
|
|
- else if((io == 'IOSS243131124570470022786' || io == 'IOSS243131124412071487821') && gj != 66 && gj != 67)
|
|
|
- {
|
|
|
+ if( (![66,67].includes(gj*1)) && io == 'IOSS243131124412071487821'){
|
|
|
layx.alert('提示','此物流不可选择!',null,{dialogIcon:'error'});
|
|
|
$("select[name=ioss]").find("option[value='']").prop("selected","selected");
|
|
|
}
|
|
@@ -606,20 +599,6 @@ $("#currency").change(function(){
|
|
|
{
|
|
|
$(".zzldw").html("oz");
|
|
|
}
|
|
|
- else if(gj == 66)
|
|
|
- {
|
|
|
-
|
|
|
- $(".zzldw").html("kg");
|
|
|
- $("select[name=ioss]").find("option[value='IOSS243131124570470022786']").prop("selected","selected");
|
|
|
-
|
|
|
- }
|
|
|
- else if(gj == 67)
|
|
|
- {
|
|
|
-
|
|
|
- $(".zzldw").html("kg");
|
|
|
- $("select[name=ioss]").find("option[value='IOSS243131124412071487821']").prop("selected","selected");
|
|
|
-
|
|
|
- }
|
|
|
else
|
|
|
{
|
|
|
$("select[name=ioss]").find("option[value='']").prop("selected","selected");
|
|
@@ -631,6 +610,13 @@ $("#currency").change(function(){
|
|
|
dhl_r_tax_id()
|
|
|
//express() 暂时固定运费为20USD 不在查找设置价格
|
|
|
//printtype();暂时不用
|
|
|
+ //快递变动引发申报品名变动
|
|
|
+ let tmp_sbpm = $("select[name=express]").find("option:selected").data('sbpm');
|
|
|
+ if(tmp_sbpm.length > 0){
|
|
|
+ $("select[name=sbpm]").val(tmp_sbpm).trigger('change')
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
var type = $(this).find("option:selected").data("type");
|
|
|
$("select[name=printtype]").find("option[value='"+type+"']").prop("selected","selected");
|
|
|
//type();
|
|
@@ -1297,7 +1283,7 @@ layx.load('loadId','数据提交中,请稍后');
|
|
|
layx.destroy('loadId');
|
|
|
$(".ts p").html(a.msg);
|
|
|
$(".ts").fadeIn();
|
|
|
- setTimeout('$(".ts").fadeOut()', 1000);
|
|
|
+ setTimeout('$(".ts").fadeOut()', 2000);
|
|
|
}
|
|
|
}
|
|
|
},
|