zm
2020-04-12 0d659cff38f50d83e782a9f8c5c20fb54a5c0321
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
angular.module('billing_cfg_guide', [])
    .controller('billingCfgGuideCtrl', ['$scope', '$routeParams', '$location','http_service', function($scope, $routeParams, $location,http_service) {
        $scope.business = $routeParams.business;
        $scope.step = $routeParams.step;
        $scope.redirect_to_billing_cfg_guide = function(path, inCode, step) {
            if(step != 8) {
                var guide = {
                    "child": [{
                        "gcPcsCode": step*10,
                        "gcPcsStep": 99,
                        "gcInCode":inCode
                    }]
                }
            }else{
                var guide = {
                    "child": [{
                        "gcPcsCode": step*10,
                        "gcPcsStep": 0,
                        "gcInCode":inCode
                    }]
                }
            }
            http_service.post("guiCfg/update",guide,function(res){//更新向导信息
                    if(res.data.opState){
                        if(step == 8){
                            $location.path("/travel_expense_todos/");
                        }else{
                            $location.path(path + inCode + "/" + step);
                        }
                    }else{
                        //弹窗  
                    }
                });
 
        }
        $scope.redirect_to_budget_forms = function(path, inCode, type) {
            $location.path(path + inCode + "/" + type);
        }
    }]);