ソースを参照

体积是数据

lvhao 1 日 前
コミット
5b02469276
2 ファイル変更11 行追加48 行削除
  1. 5 22
      template/erp/fullorder_edit.html
  2. 6 26
      template/erp/js/fullorder-addedit.js

+ 5 - 22
template/erp/fullorder_edit.html

@@ -538,7 +538,7 @@
 <em>快递方式:</em>
 <select name="express" class="select class">
 {loop express(100) as $val}
-<option value="{$val['id']}" data-sbpm="{$val['sbpm']}" data-type="{$val['type']}" {if $fullorder['express'] == $val['id']}selected="selected"{/if}>{$val['servicename']}</option>
+<option value="{$val['id']}" data-sbpm="{$val['sbpm']}" data-ts="{$val['xxts']}" data-type="{$val['type']}" {if $fullorder['express'] == $val['id']}selected="selected"{/if}>{$val['servicename']}</option>
 {/loop}
 </select>
 <font class="expressfa"><i id="show_express" class="fa fa-question-circle " style="display: none;" ></i></font>
@@ -988,32 +988,15 @@ if(eid == '2' || eid == '64')//联邦的话替换签名选项
 		if(eid*1 > 0 ){
 			
 
-			$.ajax({
-				url: "/express/read",
-				data: "id="+eid,
-				type: "POST",
-				dataType: "json",
-				success: function(a) {
-					layx.destroy('loadId');
-					if (a && a.success) {
+			
 						
 						
 						//$('#tipdata').attr('title', a.msg);
-						
-						$("#show_express").css("display","inline-block")
+		   let msg =	$("select[name='express']").children("option:selected").data('ts')			
+			$("#show_express").css("display","inline-block")
 
-						showExpressTiShi(a.msg)
-					}
-					else
-					{
-						
-						$("#show_express").css("display","none")
-						//$('#tipdata').attr('title',"");
-				
-					}
+			showExpressTiShi(msg)
 					
-				}
-			});
 
 		}
 

+ 6 - 26
template/erp/js/fullorder-addedit.js

@@ -623,33 +623,13 @@ $("#currency").change(function(){
 		var type = $(this).find("option:selected").data("type");
 		$("select[name=printtype]").find("option[value='"+type+"']").prop("selected","selected");
 		//type();
-		
-		 $.ajax({
-        url: "/express/read",
-        data: "id="+gj,
-        type: "POST",
-        dataType: "json",
-        success: function(a) {
-			layx.destroy('loadId');
-            if (a && a.success) {
-				
-				//$('#tipdata').attr('title', a.msg);
-				// $(".expressfa .expressfa2").html(a.msg);
-				// $(".expressfa i").show();
-				// layx.tip($(".expressfa").find(".expressfa1").html(),document.getElementById('tipdata'),'bottom');
-				$("#show_express").css("display","inline-block")
+		let xxts = $("select[name=express]").find("option:selected").data('ts');
+		if(xxts){
+			$("#show_express").css("display","inline-block")
 
-				showExpressTiShi(a.msg)
-            }
-			else
-			{
-				$("#show_express").css("display","none")
-				//$('#tipdata').attr('title',"");
-				$(".expressfa .expressfa2").html("");
-				$(".expressfa i").hide();
-			}
-        }
-    });
+			showExpressTiShi(xxts)
+		}
+		
 	
 		});
 		function eqm(id) {