123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- starter.config(function ($stateProvider, $httpProvider) {
- $stateProvider.state('audit', {
- url: '/index',
- templateUrl: 'templates/audit.html',
- controller: 'AuditCtrl'
- })
- .state('audit-filter', {
- url: '/filter',
- templateUrl: 'templates/filter.html',
- controller: 'FilterCtrl'
- })
- .state('audit-list', {
- url: '/list/:QueryID',
- templateUrl: 'templates/list.html',
- controller: 'ListCtrl'
- })
- .state('audit-detail', {
- url: '/detail/:QueryID&:BIL_ID&:BIL_NO&:BIL_ITM&:IsAuditCall&:CheckInAudit',
- templateUrl: 'templates/detailhead.html',
- controller: 'DetailHeadCtrl'
- })
- .state('audit-detail-body', {
- url: '/detail-body/',
- templateUrl: 'templates/detailbody.html',
- controller: 'DetailBodyCtrl'
- })
- .state('audit-body-data', {
- url: '/body-data/',
- templateUrl: 'templates/bodydata.html',
- controller: 'BodyDataCtrl'
- });
- $httpProvider.interceptors.push(function ($q, cfg, global) {
- return {
- 'request': function (config) {
- if (config.url.indexOf("ext_erp") != -1) {//分页时自带了请求路径
- config.headers['cid'] = JSON.stringify({"linkid": global.user.compno, "langid": "TW", "phone": global.user.cellphone});
- }
- return config;
- }
- };
- });
- });
|