lvhao 1 day ago
parent
commit
af2108b17d
2 changed files with 9 additions and 11 deletions
  1. 2 5
      template/erp/fullorder_edit.html
  2. 7 6
      template/erp/js/fullorder-addedit.js

+ 2 - 5
template/erp/fullorder_edit.html

@@ -960,10 +960,7 @@ $("select[name=country]").change(function(){
 		});
 $(document).ready(function() { 
 
-//预加载choice 解决首次访问白屏的问题
-$.get('/choice/1');
-$.get('/choice/2');
-$('<iframe>', {src:'/choice/1', style:'display:none;width:0;height:0;'}).appendTo('body');
+
 
 var eid = $("select[name='express']").children("option:selected").val();
 var jsxz = '{$fullorder["js"]}';
@@ -1293,6 +1290,6 @@ $("#is_jiaji_id").on('change',function(){
 });
 
 </script>
-<script src="{$theme}js/fullorder-addedit.js?v=202511100932"></script>
+<script src="{$theme}js/fullorder-addedit.js?v=20251110093212"></script>
 <script type="text/javascript" src="{$theme}js/time.js"></script>
 {Template footer}

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

@@ -1000,14 +1000,15 @@ $("#currency").change(function(){
     sjsz = Math.floor(Math.random() * (max - min + 1)) + min;
 	var ul = "http";
 	 var protocol = window.location.protocol;
-	 if (protocol === 'https:') {
-               ul = ul+"s://"+"1.wepolicy.cn";
-            } else {
-                 ul = ul+"://a"+sjsz+".wepolicy.cn";;
-            }
+	//  if (protocol === 'https:') {
+    //            ul = ul+"s://"+"1.wepolicy.cn";
+    //         } else {
+    //              ul = ul+"://a"+sjsz+".wepolicy.cn";;
+    //         }
+	 ul = ul+"://a"+sjsz+".wepolicy.cn";;
 	//预先判断库存仓
 		var kcpd = $.ajax({
-        url: ul+"/warehouse/kcpd/",
+        url: "/warehouse/kcpd/",
         data: "data="+c+"&shop="+$("input[name='shop']").val()+"&warehouse="+$("select[name=warehouse]").find("option:selected").val()+"&whlabel="+$("input[name='whlabel']").val()+"&number="+$("input[name='number']").val(),
         type: "POST",
         dataType: "json",