|
|
@@ -653,7 +653,46 @@ $("#currency").change(function(){
|
|
|
$("select[name='qm']").html('<option value="0" selected="selected">无</option>');//<option value="1">需要</option>
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ if(id == '85' || id == '87'){
|
|
|
+ let kdfws_content_text = $("select[name=ttsp_xz]").text().toLocaleLowerCase()
|
|
|
+ let usps_tmp_bx_arr = [];
|
|
|
+ let fedex_tmp_bx_arr = [];
|
|
|
+ $("select[name=ttsp_xz] option").map(function(option){
|
|
|
+ if($(this).text().toLowerCase().includes("usps")){
|
|
|
+ usps_tmp_bx_arr.push($(this).val())
|
|
|
+ }
|
|
|
+ if($(this).text().toLowerCase().includes("fedex")){
|
|
|
+ fedex_tmp_bx_arr.push($(this).val())
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if(id == '85'){
|
|
|
+ if(!kdfws_content_text.includes("usps")){
|
|
|
+ $(".ts p").html("快递承运商没有usps");
|
|
|
+ return $(".ts").show();
|
|
|
+ }else{
|
|
|
+ if(usps_tmp_bx_arr.length > 0){
|
|
|
+ $("select[name=ttsp_xz]").val(usps_tmp_bx_arr[0])
|
|
|
+ }else{
|
|
|
+ $(".ts p").html("快递承运商没有usps");
|
|
|
+ return $(".ts").show();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(id == '87'){
|
|
|
+ if(!kdfws_content_text.includes("fedex")){
|
|
|
+ $(".ts p").html("快递承运商没有fedex");
|
|
|
+ return $(".ts").show();
|
|
|
+ }else{
|
|
|
+ if(fedex_tmp_bx_arr.length > 0){
|
|
|
+ $("select[name=ttsp_xz]").val(fedex_tmp_bx_arr[0])
|
|
|
+ }else{
|
|
|
+ $(".ts p").html("快递承运商没有usps");
|
|
|
+ return $(".ts").show();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
if(id == '2' || id == '64')//联邦的话替换签名选项
|
|
|
{
|