lvhao hace 15 horas
padre
commit
25e588012b
Se han modificado 2 ficheros con 7 adiciones y 8 borrados
  1. 1 1
      template/erp/fullorder_edit.html
  2. 6 7
      template/erp/js/fullorder-addedit.js

+ 1 - 1
template/erp/fullorder_edit.html

@@ -1290,6 +1290,6 @@ $("#is_jiaji_id").on('change',function(){
 });
 
 </script>
-<script src="{$theme}js/fullorder-addedit.js?v=20260711094813"></script>
+<script src="{$theme}js/fullorder-addedit.js?v=20260711094855"></script>
 <script type="text/javascript" src="{$theme}js/time.js"></script>
 {Template footer}

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

@@ -1000,15 +1000,14 @@ $("#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";;
-	// 	}
-	ul = ul+"://a"+sjsz+".wepolicy.cn";
+	 if (protocol === 'https:') {
+               ul = ul+"s://"+"1.wepolicy.cn";
+            } else {
+                 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",