Просмотр исходного кода

请求接口链接地址修改

wangcz 7 лет назад
Родитель
Сommit
be006862d8
1 измененных файлов с 161 добавлено и 188 удалено
  1. 161 188
      src/main/webapp/resources/js/common/b2bServices.js

+ 161 - 188
src/main/webapp/resources/js/common/b2bServices.js

@@ -540,15 +540,15 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
             },
             getAll: {
               url: rootPath + '/make/changes/info/search',
-              method: 'GET',
+              method: 'GET'
             },
             getItem: {
               url: rootPath + '/make/changes/:id/info',
-              method: 'GET',
+              method: 'GET'
             },
             exportXls: {
               url: rootPath + '/make/changes/xls/permission',
-              method: 'GET',
+              method: 'GET'
             }
           });
       }])
@@ -695,9 +695,9 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                         cache: false,
                         headers: {
                             'Cache-Control': 'no-cache',
-                            'Pragma': 'no-cache',
+                            'Pragma': 'no-cache'
                         },
-                        ifModified :true ,
+                        ifModified :true
                     };
                     var logout = $http.get(rootPath + "/logout", config);
                     var refresh = function(data) {
@@ -791,9 +791,9 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
         }])
         .factory('B2bSaleSend', ['$resource', 'BaseService', function($resource, BaseService) {
           var b2bPath = BaseService.getB2bUrl();
-          return $resource(b2bPath + 'sale/notice/sends/info/search', {}, {
+          return $resource(b2bPath + '/sale/notice/sends/info/search', {}, {
             getItem: {
-              url: b2bPath + 'sale/notice/sends/:id/info',
+              url: b2bPath + '/sale/notice/sends/:id/info',
               method: 'GET'
             },
             getTodo: {
@@ -802,7 +802,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
               }
             },
             update: {
-              url: b2bPath + 'sale/notice/sends/:id',
+              url: b2bPath + '/sale/notice/sends/:id',
               method: 'POST'
             },
             getDone: {
@@ -811,7 +811,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
               }
             },
             printCount:{
-              url: b2bPath + 'sale/notice/sends/print/:id',
+              url: b2bPath + '/sale/notice/sends/print/:id',
               method: 'POST'
             },
             printPermission:{
@@ -819,34 +819,34 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
               method: 'POST'
             },
             generateBarcodes :{
-              url: b2bPath + 'sale/notice/generateBarcodes',
+              url: b2bPath + '/sale/notice/generateBarcodes',
               method: 'POST'
             },
             getPrintBarcodes :{
-              url: b2bPath + 'sale/notice/getPrintBarcodes',
+              url: b2bPath + '/sale/notice/getPrintBarcodes',
               method: 'POST'
             },
             getPrintTemplate:{
-              url: b2bPath + 'sale/notice/getPrintTemplate',
+              url: b2bPath + '/sale/notice/getPrintTemplate',
               method: 'GET'
             },
             getSPrintBarcode:{
-              url: b2bPath + 'sale/notice/getSPrintBarcode',
+              url: b2bPath + '/sale/notice/getSPrintBarcode',
               method: 'GET'
             },
             updatePrintStatus: {
-              url: b2bPath + 'sale/notice/updatePrintStatus',
+              url: b2bPath + '/sale/notice/updatePrintStatus',
               method: 'POST'
             },
             exportXls: {
-              url: b2bPath + 'sale/notice/sends/xls/permission',
+              url: b2bPath + '/sale/notice/sends/xls/permission',
               method: 'GET'
             }
           });
     }])
         .factory('B2bPurcNotice', ['$resource', 'BaseService', function($resource, BaseService) {
           var b2bPath = BaseService.getB2bUrl();
-          return $resource(b2bPath + 'sale/notice/info/search', {}, {
+          return $resource(b2bPath + '/sale/notice/info/search', {}, {
             getTodo: {
               params: {
                 _state: 'todo'
@@ -868,40 +868,40 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
               }
             },
             save: {
-              url: b2bPath + 'sale/notice/:id/sends',
+              url: b2bPath + '/sale/notice/:id/sends',
               method: 'POST'
             },
             getSends: {
-              url: b2bPath + 'sale/notice/:id/sendItems',
+              url: b2bPath + '/sale/notice/:id/sendItems',
               method: 'GET',
               isArray: true
             },
             sendByBatch: {
-              url: b2bPath + 'sale/notice/sendByBatch',
+              url: b2bPath + '/sale/notice/sendByBatch',
               method: 'POST'
             },
             setRead:{
-              url: b2bPath + 'sale/notice/setRead',
+              url: b2bPath + '/sale/notice/setRead',
               method: 'POST'
             },
             setReadByState:{
-              url: b2bPath + 'sale/notice/setReadByState',
+              url: b2bPath + '/sale/notice/setReadByState',
               method: 'GET'
             },
             getUnreadIds:{
-              url: b2bPath + 'sale/notice/getUnreadIds',
+              url: b2bPath + '/sale/notice/getUnreadIds',
               method: 'GET'
             },
             getUnreadCount:{
-              url: b2bPath + 'sale/notice/unread',
+              url: b2bPath + '/sale/notice/unread',
               method: 'GET'
             },
             exportXls: {
-              url: b2bPath + 'sale/notice/xls/permission',
+              url: b2bPath + '/sale/notice/xls/permission',
               method: 'GET'
             },
             findByIds: {
-              url: b2bPath + 'sale/notice/findByIds',
+              url: b2bPath + '/sale/notice/findByIds',
               method: 'GET',
               isArray: true
             }
@@ -909,15 +909,15 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
         }])
         .factory('B2bPurcNoticeInfo', ['$resource', 'BaseService', function($resource, BaseService) {
           var b2bPath = BaseService.getB2bUrl();
-          return $resource(b2bPath + 'sale/notice/info/search', {}, {
+          return $resource(b2bPath + '/sale/notice/info/search', {}, {
             getTodo: {
-              url: b2bPath + 'sale/notice/info/nosearch',
+              url: b2bPath + '/sale/notice/info/nosearch',
               params: {
                 _state: 'todo'
               }
             },
             getDone: {
-              url: b2bPath + 'sale/notice/info/nosearch',
+              url: b2bPath + '/sale/notice/info/nosearch',
               params: {
                 _state: 'done'
               }
@@ -933,10 +933,9 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
               }
             }
           });
-        }])
-        .factory('B2bSaleTruck', ['$resource', 'BaseService', function($resource, BaseService) {
+        }]).factory('B2bSaleTruck', ['$resource', 'BaseService', function($resource, BaseService) {
             var b2bPath = BaseService.getB2bUrl();
-            return $resource(b2bPath + 'sale/truck', {}, {
+            return $resource(b2bPath + '/sale/truck', {}, {
               save: {
                 isArray: true,
                 method: 'POST'
@@ -946,12 +945,11 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                 method: 'DELETE'
               },
               detail: {
-                url: b2bPath +  'sale/truck/items',
+                url: b2bPath + '/sale/truck/items',
                 isArray: true
               }
             });
-        }])
-        .factory('B2bPurcInquiry', ['$resource', 'BaseService', function($resource, BaseService) {
+        }]).factory('B2bPurcInquiry', ['$resource', 'BaseService', function($resource, BaseService) {
             var b2bPath = BaseService.getB2bUrl();
             return $resource(b2bPath + '/sale/inquiry/info/search', {}, {
                 getAll: {
@@ -1048,8 +1046,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                 }
             });
             // 数据库直接获取
-        }])
-        .factory('B2bPurcInquiryInfo', ['$resource', 'BaseService', function($resource, BaseService) {
+        }]).factory('B2bPurcInquiryInfo', ['$resource', 'BaseService', function($resource, BaseService) {
             var b2bPath = BaseService.getB2bUrl();
             return $resource(b2bPath + '/sale/inquiry/info/nosearch', {}, {
                 getAll: {
@@ -1087,8 +1084,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                 }
             });
             // 数据库直接获取
-        }])
-        .factory('B2bCurrentRole', ['$resource', 'BaseService', function($resource, BaseService) {
+        }]).factory('B2bCurrentRole', ['$resource', 'BaseService', function($resource, BaseService) {
             var b2bPath = BaseService.getB2bUrl();
             return $resource(b2bPath + '/account/role', {}, {
                 //当前企业对应的角色是否是销售经理或管理员
@@ -1105,8 +1101,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                     method: 'GET'
                 }
             })
-        }])
-        .factory('B2bPurcInquiryMould', ['$resource', 'BaseService', function($resource, BaseService) {
+        }]).factory('B2bPurcInquiryMould', ['$resource', 'BaseService', function($resource, BaseService) {
             var b2bPath = BaseService.getB2bUrl();
             return $resource(b2bPath + '/sale/mould/info/search', {}, {
                 getAll: {
@@ -1185,8 +1180,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                     method: 'GET'
                 }
             });
-        }])
-        .factory('B2bPurcInquiryMouldSql', ['$resource', 'BaseService', function($resource, BaseService) {
+        }]).factory('B2bPurcInquiryMouldSql', ['$resource', 'BaseService', function($resource, BaseService) {
             var b2bPath = BaseService.getB2bUrl();
             return $resource(b2bPath + '/sale/mould/info/nosearch', {}, {
                 getAll: {
@@ -1208,8 +1202,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                     }
                 }
             });
-        }])
-        .factory('B2bQuotationInfo', ['$resource', 'BaseService', function($resource, BaseService){
+        }]).factory('B2bQuotationInfo', ['$resource', 'BaseService', function($resource, BaseService){
             var b2bPath = BaseService.getB2bUrl();
             return $resource(b2bPath + '/sale/quotation/info/nosearch', {}, {
                 getTodo: {
@@ -1238,8 +1231,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                     }
                 }
             });
-        }])
-        .factory('B2bPurcTender', ['$resource', 'BaseService', function($resource, BaseService) {
+        }]).factory('B2bPurcTender', ['$resource', 'BaseService', function($resource, BaseService) {
             var b2bPath = BaseService.getB2bUrl();
             return $resource(b2bPath + '/tender/sale/info/search', {}, {
                 getMyAll: {
@@ -1430,8 +1422,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                     method: 'GET'
                 }
             });
-        }])
-        .factory('B2bAccountEnterprise', ['$resource', 'BaseService', function($resource, BaseService) {
+        }]).factory('B2bAccountEnterprise', ['$resource', 'BaseService', function($resource, BaseService) {
             var b2bPath = BaseService.getB2bUrl();
             return $resource(b2bPath + '/account/enterprise', {}, {
                 growth: {
@@ -1506,8 +1497,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                     }
                 }
             });
-        }])
-        .factory('B2bSaleTenderQuestion', ['$resource', 'BaseService', function($resource, BaseService) {
+        }]).factory('B2bSaleTenderQuestion', ['$resource', 'BaseService', function($resource, BaseService) {
             var b2bPath = BaseService.getB2bUrl();
             return $resource(b2bPath + '/tender/question', {}, {
                 getAll: {
@@ -1552,10 +1542,9 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                     }
                 }
             });
-        }])
-        .factory('B2bPagingRelease', ['$resource', 'BaseService', function($resource, BaseService){
+        }]).factory('B2bPagingRelease', ['$resource', 'BaseService', function($resource, BaseService){
           var b2bPath = BaseService.getB2bUrl();
-          return $resource(b2bPath + 'api/paging', {}, {
+          return $resource(b2bPath + '/api/paging', {}, {
             getTodo: {
               params: {
                 _state: 'todo'
@@ -1568,33 +1557,32 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
             },
             // 设置消息已读(公共消息服务)
             setMessageRead: {
-              url: b2bPath + 'api/paging/message/setRead',
+              url: b2bPath + '/api/paging/message/setRead',
               method: 'POST'
             },
             // 设置当前页已读(公共消息服务)
             setPageRead: {
-              url: b2bPath + 'api/paging/message/setRead/page',
+              url: b2bPath + '/api/paging/message/setRead/page',
               method: 'POST'
             },
             setRead:{
-              url: b2bPath + 'api/paging/setRead',
+              url: b2bPath + '/api/paging/setRead',
               method: 'POST'
             },
             getUnreadIds:{
-              url: b2bPath + 'api/paging/getUnreadIds',
+              url: b2bPath + '/api/paging/getUnreadIds',
               method: 'POST'
             },
             setReadByOrder:{
-              url: b2bPath + 'api/paging/setRead/order',
+              url: b2bPath + '/api/paging/setRead/order',
               method: 'POST'
             },
             setOneRead:{
-              url: b2bPath + 'api/paging/setOneRead/:id',
+              url: b2bPath + '/api/paging/setOneRead/:id',
               method: 'POST'
             }
           });
-        }])
-        .factory('B2bSnapshotService', ['$http', 'BaseService', function($http, BaseService) {
+        }]).factory('B2bSnapshotService', ['$http', 'BaseService', function($http, BaseService) {
           var rootPath = BaseService.getB2bUrl();
           return {
             getTodo: function(success) {
@@ -1636,10 +1624,9 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
 
             }
           };
-        }])
-        .factory('B2bPurcOrderItemInfo', ['$resource', 'BaseService', function($resource, BaseService){
+        }]).factory('B2bPurcOrderItemInfo', ['$resource', 'BaseService', function($resource, BaseService){
           var rootPath = BaseService.getB2bUrl();
-          return $resource(rootPath + 'sale/orders/info/nosearch', {}, {
+          return $resource(rootPath + '/sale/orders/info/nosearch', {}, {
             getTodo: {
               params: {
                 _state: 'todo'
@@ -1671,73 +1658,69 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
               }
             },
             getUnreadIds:{
-              url: rootPath + 'sale/orders/getUnreadIds',
+              url: rootPath + '/sale/orders/getUnreadIds',
               method: 'GET'
             },
             getUnreadCount:{
-              url: rootPath + 'sale/orders/unread',
+              url: rootPath + '/sale/orders/unread',
               method: 'GET'
             },
             setRead:{
-              url:rootPath +  'sale/orders/setRead',
+              url:rootPath +  '/sale/orders/setRead',
               method: 'POST'
             }
           });
         }])
         .factory('B2bPurcBadOut', ['$resource', 'BaseService', function($resource, BaseService) {
           var rootPath = BaseService.getB2bUrl();
-          return $resource(rootPath + 'sale/badOut/:id', {}, {
+          return $resource(rootPath + '/sale/badOut/:id', {}, {
             exportXls: {
-              url: rootPath + 'sale/badOut/xls/permission',
+              url: rootPath + '/sale/badOut/xls/permission',
               method:'GET'
             }
           });
-        }])
-        .factory('B2bPurcBadIn', ['$resource', 'BaseService', function($resource, BaseService){
+        }]).factory('B2bPurcBadIn', ['$resource', 'BaseService', function($resource, BaseService){
           var rootPath = BaseService.getB2bUrl();
-          return $resource(rootPath + 'sale/badIn/:id', {}, {
+          return $resource(rootPath + '/sale/badIn/:id', {}, {
             exportXls: {
-              url: rootPath + 'sale/badIn/xls/permission',
+              url: rootPath + '/sale/badIn/xls/permission',
               method:'GET'
             }
           });
-        }])
-        .factory('B2bPurcAccept', ['$resource', 'BaseService', function($resource, BaseService) {
+        }]).factory('B2bPurcAccept', ['$resource', 'BaseService', function($resource, BaseService) {
           var rootPath = BaseService.getB2bUrl();
-          return $resource(rootPath + 'sale/accept/:id', {}, {
+          return $resource(rootPath + '/sale/accept/:id', {}, {
             getAll: {
             },
             getDetail : {
-              url: rootPath +  'sale/accept/:id/info',
+              url: rootPath + '/sale/accept/:id/info',
               method: 'GET'
             },
             exportXls: {
-              url: rootPath +  'sale/accept/xls/permission',
+              url: rootPath + '/sale/accept/xls/permission',
               method: 'GET'
             }
           });
-        }])
-        .factory('B2bPurcReturn', ['$resource',  'BaseService', function($resource, BaseService) {
+        }]).factory('B2bPurcReturn', ['$resource',  'BaseService', function($resource, BaseService) {
           var rootPath = BaseService.getB2bUrl();
-          return $resource(rootPath + 'sale/return/:id', {}, {
+          return $resource(rootPath + '/sale/return/:id', {}, {
             getAll: {},
             getEnterpriseName: {
-              url: rootPath +  "sale/return/:id/enname",
+              url: rootPath + "/sale/return/:id/enname",
               method: "GET"
             },
             getDetail: {
-              url: rootPath +  'sale/return/:id/info',
+              url: rootPath + '/sale/return/:id/info',
               method: 'GET'
             },
             exportXls: {
-              url: rootPath +  'sale/return/xls/permission',
+              url: rootPath + '/sale/return/xls/permission',
               method: 'GET'
             }
           });
-        }])
-        .factory('B2bVendorPerformanceAssessService', ['$resource', 'BaseService', function($resource, BaseService) {
+        }]).factory('B2bVendorPerformanceAssessService', ['$resource', 'BaseService', function($resource, BaseService) {
             var b2bUrl = BaseService.getB2bUrl();
-        return $resource(b2bUrl + '/vendorPerformanceAssess/info/search', {}, {
+            return $resource(b2bUrl + '/vendorPerformanceAssess/info/search', {}, {
             getAll: {
                 url: b2bUrl + '/vendorPerformanceAssess/info/search',
                 method: 'GET'
@@ -1749,9 +1732,8 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                 url: b2bUrl + '/vendorPerformanceAssess/:id/info',
                 method: 'GET'
             }
-        });
-    }])
-        .factory('B2bAddtoCart', ['$resource', 'BaseService', function($resource, BaseService) {
+          });
+        }]).factory('B2bAddtoCart', ['$resource', 'BaseService', function($resource, BaseService) {
             var b2bUrl = BaseService.getB2bUrl();
             return $resource(b2bUrl + '/product/baseInfo/addtoCart', {}, {
                 save: {
@@ -1760,10 +1742,9 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                     headers: {
                         'Content-Type' : 'application/json;charset=UTF-8'
                     }
-                },
+                }
             })
-        }])
-        .factory('B2bNewPurcOrder', ['$resource', 'BaseService', function($resource, BaseService) {
+        }]).factory('B2bNewPurcOrder', ['$resource', 'BaseService', function($resource, BaseService) {
             var b2bUrl = BaseService.getB2bUrl();
             return $resource(b2bUrl + '/product/baseInfo/newPurcOrder', {}, {
                 save: {
@@ -1778,8 +1759,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                     method: 'GET'
                 }
             })
-        }])
-        .factory('B2bCartOperation', ['$resource', 'BaseService', function($resource, BaseService) {
+        }]).factory('B2bCartOperation', ['$resource', 'BaseService', function($resource, BaseService) {
             var b2bUrl = BaseService.getB2bUrl();
             return $resource(b2bUrl + '/cart', {}, {
                 addToOrder: {
@@ -1837,7 +1817,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                     url: b2bUrl + '/sale/inquiry/recentPrice/:prId',
                     method: 'GET'
                 }
-        });
+            });
         }]).factory('B2bToken', ['$resource', 'BaseService', function($resource, BaseService) {
             var b2bUrl = BaseService.getB2bUrl();
             return $resource(b2bUrl + '/token', {}, {
@@ -1919,8 +1899,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                     method: 'GET'
                 }
             })
-        }])
-        .factory('B2bPurcOrdersInfo', ['$resource', 'BaseService', function($resource, BaseService) {
+        }]).factory('B2bPurcOrdersInfo', ['$resource', 'BaseService', function($resource, BaseService) {
             var b2bUrl = BaseService.getB2bUrl();
             return $resource(b2bUrl + '/sale/orders/purc/info/nosearch', {}, {
                 getAll: {
@@ -1953,8 +1932,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                     }
                 }
             });
-        }])
-        .factory('B2bDeputyOrder', ['$resource', 'BaseService', function($resource, BaseService) {
+        }]).factory('B2bDeputyOrder', ['$resource', 'BaseService', function($resource, BaseService) {
             var b2bUrl = BaseService.getB2bUrl();
             return $resource(b2bUrl + '/deputyOrder', {}, {
                 saveDeOrder: {
@@ -2154,7 +2132,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
             return $resource(b2bUrl + '/deputy', {}, {
                 getValue: {
                     url: b2bUrl + '/deputy/getKeyValue',
-                    method: 'GET',
+                    method: 'GET'
                 },
             })
         }])
@@ -2190,8 +2168,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                     }
                 }
             })
-        }])
-        .factory('B2bMakeOutOrder', ['$resource', 'BaseService', function($resource, BaseService){
+        }]).factory('B2bMakeOutOrder', ['$resource', 'BaseService', function($resource, BaseService){
             var b2bUrl = BaseService.getB2bUrl();
             return $resource(b2bUrl + '/make/outorders/info/search', {}, {
                 getReply: {
@@ -2212,54 +2189,52 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                     method: 'GET'
                 }
             })
-        }])
-        .factory('B2bPurcOrders', ['$resource', 'BaseService', function($resource, BaseService) {
-        var b2bUrl = BaseService.getB2bUrl();
-        return $resource(b2bUrl + '/sale/orders/purc/info/search', {}, {
-            getTodo: {
-                params: {
-                    _state: 'todo'
-                }
-            },
-            getDone: {
-                params: {
-                    _state: 'done'
-                }
-            },
-            getEnd: {
-                params: {
-                    _state: 'end'
-                }
-            },
-            getReceived:{
-                params: {
-                    _state: 'received'
-                }
-            },
-            getWaiting: {
-                params: {
-                    _state: 'waiting'
+        }]).factory('B2bPurcOrders', ['$resource', 'BaseService', function($resource, BaseService) {
+            var b2bUrl = BaseService.getB2bUrl();
+            return $resource(b2bUrl + '/sale/orders/purc/info/search', {}, {
+                getTodo: {
+                    params: {
+                        _state: 'todo'
+                    }
+                },
+                getDone: {
+                    params: {
+                        _state: 'done'
+                    }
+                },
+                getEnd: {
+                    params: {
+                        _state: 'end'
+                    }
+                },
+                getReceived:{
+                    params: {
+                        _state: 'received'
+                    }
+                },
+                getWaiting: {
+                    params: {
+                        _state: 'waiting'
+                    }
+                },
+                setRead:{
+                    url: b2bUrl + '/sale/orders/setRead/purc',
+                    method: 'POST'
+                },
+                getUnreadIds:{
+                    url: b2bUrl + '/sale/orders/getUnreadIds/purc',
+                    method: 'GET'
+                },
+                getUnreadCount:{
+                    url: b2bUrl + '/sale/orders/unread/purc',
+                    method: 'GET'
+                },
+                exportXls: {
+                    url: b2bUrl + '/sale/orders/purc/xls/permission',
+                    method: 'GET'
                 }
-            },
-            setRead:{
-                url: b2bUrl + '/sale/orders/setRead/purc',
-                method: 'POST'
-            },
-            getUnreadIds:{
-                url: b2bUrl + '/sale/orders/getUnreadIds/purc',
-                method: 'GET'
-            },
-            getUnreadCount:{
-                url: b2bUrl + '/sale/orders/unread/purc',
-                method: 'GET'
-            },
-            exportXls: {
-                url: b2bUrl + '/sale/orders/purc/xls/permission',
-                method: 'GET'
-            }
-        });
-    }])
-        .factory('B2bPurchaseInquiry', ['$resource', 'BaseService', function($resource, BaseService){
+            });
+        }]).factory('B2bPurchaseInquiry', ['$resource', 'BaseService', function($resource, BaseService){
             var b2bUrl = BaseService.getB2bUrl();
             return $resource(b2bUrl + '/purc/inquiry/info/search', {}, {
                 getTodo: {
@@ -2392,8 +2367,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                     }
                 }
             });
-        }])
-        .factory('B2bGetProductInfo', ['$resource', 'BaseService', function($resource, BaseService) {
+        }]).factory('B2bGetProductInfo', ['$resource', 'BaseService', function($resource, BaseService) {
             var b2bUrl = BaseService.getB2bUrl();
             return $resource(b2bUrl + '/product/baseInfo/info/search', {}, {
             getSaleProduct: {
@@ -2668,7 +2642,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
             return $resource(b2bUrl + '/addpartner', {}, {
                 addPartner: {
                     url: b2bUrl + '/addpartner/request/nameAndBusCode',
-                    method : 'POST',
+                    method : 'POST'
                 },
                 agreeRequest: {
                     url: b2bUrl + '/addpartner/agree/:id',
@@ -2795,7 +2769,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
         })
     }]).factory('B2bGetAccountUserSpace', ['$resource', 'BaseService', function($resource, BaseService) {
         var b2bUrl = BaseService.getB2bUrl();
-        return $resource(b2bUrl + 'product/baseInfo/getUserSpaceDetails', {}, {
+        return $resource(b2bUrl + '/product/baseInfo/getUserSpaceDetails', {}, {
             getAll: {
                 isArray: false
             }
@@ -2803,61 +2777,61 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
     }])
         .factory('B2bFaApBill', ['$resource',  'BaseService', function($resource, BaseService) {
           var b2bUrl = BaseService.getB2bUrl();
-          return $resource(b2bUrl + 'sale/apBill/info/search', {}, {
+          return $resource(b2bUrl + '/sale/apBill/info/search', {}, {
             getAll: {
-              url: b2bUrl + 'sale/apBill/:id/info',
+              url: b2bUrl + '/sale/apBill/:id/info',
               method: 'GET'
             },
             exportXls: {
-              url: b2bUrl + 'sale/apBill/xls/permission',
+              url: b2bUrl + '/sale/apBill/xls/permission',
               method: 'GET'
             }
           });
         }])
         .factory('B2bFaApCheck', ['$resource', 'BaseService', function($resource, BaseService) {
           var b2bUrl = BaseService.getB2bUrl();
-          return $resource(b2bUrl + 'sale/apCheck/info/search', {}, {
+          return $resource(b2bUrl + '/sale/apCheck/info/search', {}, {
             getItem: {
-              url: b2bUrl + 'sale/apCheck/:id/info',
-              method: 'GET',
+              url: b2bUrl + '/sale/apCheck/:id/info',
+              method: 'GET'
             },
             getAll: {
-              url: b2bUrl + 'sale/apCheck/getAll',
+              url: b2bUrl + '/sale/apCheck/getAll',
               method: 'GET',
               isArray: true
             },
             getAllCustomers: {
-              url: b2bUrl + 'sale/apCheck/getAllCustomers',
+              url: b2bUrl + '/sale/apCheck/getAllCustomers',
               method: 'GET',
               isArray: true
             },
             getAllByKeywords: {
-              url:b2bUrl +  'sale/apCheck/getAllByKeywords',
+              url:b2bUrl +  '/sale/apCheck/getAllByKeywords',
               method: 'GET',
               isArray: true
             },
             saveApCheck: {
-              url : b2bUrl + 'sale/apCheck/operation/save',
+              url : b2bUrl + '/sale/apCheck/operation/save',
               method: 'POST'
             },
             update: {
-              url: b2bUrl + 'sale/apCheck/update',
+              url: b2bUrl + '/sale/apCheck/update',
               method: 'POST'
             },
             deleteApCheck: {
-              url: b2bUrl + 'sale/apCheck/operation/deleteApCheck',
+              url: b2bUrl + '/sale/apCheck/operation/deleteApCheck',
               method: 'POST'
             },
             updateStatus: {
-              url: b2bUrl + 'sale/apCheck/operation/updateStatus',
+              url: b2bUrl + '/sale/apCheck/operation/updateStatus',
               method: 'POST'
             },
             printCount: {
-              url: b2bUrl + 'sale/apCheck/printCount/:id',
+              url: b2bUrl + '/sale/apCheck/printCount/:id',
               method: 'POST'
             },
             printPermission: {
-              url: b2bUrl + 'sale/apCheck/printCount/permission',
+              url: b2bUrl + '/sale/apCheck/printCount/permission',
               method: 'POST'
             },
     //			getTodoApCheck: {
@@ -2882,36 +2856,36 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
               }
             },
             cancel: {
-              url: b2bUrl + 'sale/apCheck/operation/cancel',
+              url: b2bUrl + '/sale/apCheck/operation/cancel',
               method: 'POST'
             },
             setRead:{
-              url: b2bUrl + 'sale/apCheck/setRead',
+              url: b2bUrl + '/sale/apCheck/setRead',
               method: 'POST'
             },
             getUnreadIds:{
-              url: b2bUrl + 'sale/apCheck/getUnreadIds',
+              url: b2bUrl + '/sale/apCheck/getUnreadIds',
               method: 'GET'
             },
             getUnreadCount:{
-              url: b2bUrl + 'sale/apCheck/unread',
+              url: b2bUrl + '/sale/apCheck/unread',
               method: 'GET'
             },
             getBilled: {
-              url: b2bUrl + 'sale/apCheck/getBilled',
-              method: 'GET',
+              url: b2bUrl + '/sale/apCheck/getBilled',
+              method: 'GET'
             },
             exportXls: {
-              url: b2bUrl + 'sale/apCheck/xls/permission',
-              method: 'GET',
+              url: b2bUrl + '/sale/apCheck/xls/permission',
+              method: 'GET'
             }
           });
         }])
         .factory('B2bFaArCheck', ['$resource', 'BaseService', function($resource, BaseService) {
           var b2bUrl = BaseService.getB2bUrl();
-          return $resource(b2bUrl + 'purchase/arCheck/:id', {}, {
+          return $resource(b2bUrl + '/purchase/arCheck/:id', {}, {
             agree: {
-              url: b2bUrl + 'purchase/arCheck/items/:itemId/reply',
+              url: b2bUrl + '/purchase/arCheck/items/:itemId/reply',
               method: 'POST',
               params: {
                 itemId: 'itemId',
@@ -2919,7 +2893,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
               }
             },
             disagree: {
-              url: b2bUrl +  'purchase/arCheck/items/:itemId/reply',
+              url: b2bUrl + '/purchase/arCheck/items/:itemId/reply',
               method: 'POST',
               params: {
                 orderItemId: 'itemId',
@@ -2927,18 +2901,18 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
               }
             },
             getReplies: {
-              url: b2bUrl + 'purchase/arCheck/items/:itemId/reply',
+              url: b2bUrl + '/purchase/arCheck/items/:itemId/reply',
               method: 'GET',
               isArray: true
             },
             getDone: {
-              url : b2bUrl + 'purchase/arCheck/page/done',
+              url : b2bUrl + '/purchase/arCheck/page/done'
             },
             getTodo: {
-              url : b2bUrl + 'purchase/arCheck/page/todo',
+              url : b2bUrl + '/purchase/arCheck/page/todo'
             },
             getWaiting: {
-              url : b2bUrl + 'purchase/arCheck/page/waiting',
+              url : b2bUrl + '/purchase/arCheck/page/waiting'
             }
           });
         }])
@@ -2973,7 +2947,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                 getUserByDep: {
                     url: b2bUrl + '/office/ApprovalFlow/getUserByDep',
                     method: 'GET',
-                    isArray: true,
+                    isArray: true
                 },
                 setCopy: {
                     url: b2bUrl + '/office/ApprovalFlow/setCopy',
@@ -2982,12 +2956,12 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                 getUserByPosition: {
                     url: b2bUrl + '/office/ApprovalFlow/getUserByPosition',
                     method: 'GET',
-                    isArray: true,
+                    isArray: true
                 },
                 getPositions: {
                     url: b2bUrl + '/office/ApprovalFlow/getPositions',
                     method: 'GET',
-                    isArray: true,
+                    isArray: true
                 },
                 getPositionInfo: {
                     url: b2bUrl + '/office/ApprovalFlow/getPositionInfo',
@@ -3140,5 +3114,4 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
                 }
             });
         }])
-
 });