浏览代码

打印配置修改

lzm 3 年之前
父节点
当前提交
f91e59de8d

+ 2 - 1
sp-admin/sa-view/tb-business/print.html

@@ -10,6 +10,7 @@
     </style>
     <script src="../../static/print/jquery-2.0.3.js" type="text/javascript"></script>
     <script src="../../static/print/jquery.jPrintArea.js" type="text/javascript"></script>
+    <script src="../../static/sa.js"></script>
 
 </head>
 
@@ -90,7 +91,7 @@
         }
         var id = getUrlParam('id');
         $.ajax({
-            url: 'https://dxkaa1.bgigc.com/pro/TbBusiness/getById?id=' + id,
+            url: sa.cfg.api_url+'/TbBusiness/getById?id=' + id,
             type: 'post',
             success: function(data) {
                 $("#no").html(data.data.no);

+ 2 - 1
sp-admin/sa-view/tb-declare/print.html

@@ -10,6 +10,7 @@ body{left:0px;top:0px;right:0px;bottom:0px;margin:0px;font-family: Arial, Helvet
 </style>
 <script src="../../static/print/jquery-2.0.3.js" type="text/javascript"></script>
 <script src="../../static/print/jquery.jPrintArea.js" type="text/javascript"></script>
+	<script src="../../static/sa.js"></script>
 
 </head>
 
@@ -115,7 +116,7 @@ $(function(){
 	}
 	var id = getUrlParam('id');
 	$.ajax({
-		url: 'https://dxkaa1.bgigc.com/pro/TbDeclare/getById?id=' + id,
+		url: sa.cfg.api_url+'/TbDeclare/getById?id=' + id,
 		type: 'post',     // 请求类型,常用的有 GET 和 POST
 		success: function(data) { // 接口调用成功回调函数
 			$("#goodsName").html( data.data.goodsName);

+ 2 - 1
sp-admin/sa-view/tb-disinfect/print.html

@@ -10,6 +10,7 @@ body{left:0px;top:0px;right:0px;bottom:0px;margin:0px;font-family: Arial, Helvet
 </style>
 <script src="../../static/print/jquery-2.0.3.js" type="text/javascript"></script>
 <script src="../../static/print/jquery.jPrintArea.js" type="text/javascript"></script>
+	<script src="../../static/sa.js"></script>
 
 </head>
 
@@ -121,7 +122,7 @@ $(function(){
 	}
 	var id = getUrlParam('id');
 	$.ajax({
-		url: 'https://dxkaa1.bgigc.com/pro/TbDisinfect/getById?id=' + id,
+		url: sa.cfg.api_url+'/TbDisinfect/getById?id=' + id,
 		type: 'post',
 		success: function(data) {
 			console.log(data);

+ 3 - 1
sp-admin/sa-view/tb-fee-statistics/dayStatsPrint.html

@@ -10,6 +10,7 @@
   </style>
   <script src="../../static/print/jquery-2.0.3.js" type="text/javascript"></script>
   <script src="../../static/print/jquery.jPrintArea.js" type="text/javascript"></script>
+  <script src="../../static/sa.js"></script>
 
 </head>
 
@@ -99,9 +100,10 @@
     var feeType = getUrlParam('feeType');
     feeType = feeType != '' ? feeType : null;
 
+    console.log(sa.cfg.api_url);
 
     $.ajax({
-      url: 'https://pco.aseanbusiness.cn/pro/TbFeeStatistics/prePrint',
+      url: sa.cfg.api_url + '/TbFeeStatistics/prePrint',
       data:{
         isMonth:isMonth,
         isYear:isYear,

+ 2 - 1
sp-admin/sa-view/tb-fee-statistics/detailPrint.html

@@ -10,6 +10,7 @@
   </style>
   <script src="../../static/print/jquery-2.0.3.js" type="text/javascript"></script>
   <script src="../../static/print/jquery.jPrintArea.js" type="text/javascript"></script>
+  <script src="../../static/sa.js"></script>
 
 </head>
 
@@ -93,7 +94,7 @@
     console.log("beginTime"+beginTime);
     console.log(endTime);
     $.ajax({
-      url: 'https://pco.aseanbusiness.cn/pro/TbFeeDetails/prePrint',
+      url: sa.cfg.api_url+'/TbFeeDetails/prePrint',
       data:{
         "beginTime":beginTime,
         "endTime":endTime,