ソースを参照

财务管理详情

gaodd 2 年 前
コミット
7e28a64bec

+ 25 - 0
src/main/resources/static/app/business/module.js

@@ -519,6 +519,18 @@ angular.module('app.business')
519 519
                 }
520 520
             }
521 521
         })
522
+        .state('app.business.xjllbView', {
523
+            url: '/business/xjllbView/:id/:type',
524
+            data: {
525
+                title: '现金流量表详情'
526
+            },
527
+            views: {
528
+                "content@app": {
529
+                    controller: 'sptCwglSaveCtrl as datatables',
530
+                    templateUrl: 'app/supervise/views/cwglxjll-edit.html'
531
+                }
532
+            }
533
+        })
522 534
         .state('app.business.lrb', {
523 535
             url: '/business/lrb',
524 536
             data: {
@@ -535,6 +547,19 @@ angular.module('app.business')
535 547
             }
536 548
         })
537 549
         
550
+        .state('app.business.lrbView', {
551
+            url: '/business/lrbView/:id/:type',
552
+            data: {
553
+                title: '利润表详情'
554
+            },
555
+            views: {
556
+                "content@app": {
557
+                    controller: 'sptCwglSaveCtrl as datatables',
558
+                    templateUrl: 'app/supervise/views/cwgllrb-edit.html'
559
+                }
560
+            }
561
+        })
562
+        
538 563
         /*----------------------------------------------客户------------------------------------*/
539 564
         .state('app.business.customer', {
540 565
             abstract: true,

+ 4 - 4
src/main/resources/static/app/layout/partials/navigation.tpl.html

@@ -345,17 +345,17 @@
345 345
                         </ul>
346 346
                     </li>
347 347
                     <li data-menu-collapse>
348
-                        <a has-func="36" href="#">
348
+                        <a has-func="486" href="#">
349 349
                             <i class="fa fa-fw fa-folder-open"></i>财务管理
350 350
                         </a>
351 351
                         <ul>
352
-                            <li has-func="37">
352
+                            <li has-func="487">
353 353
                                 <a data-ui-sref="app.business.zcfzb">资产负债表</a>
354 354
                             </li>
355
-                            <li has-func="38">
355
+                            <li has-func="488">
356 356
                                 <a data-ui-sref="app.business.xjllb">现金流量表</a>
357 357
                             </li>
358
-                            <li has-func="39">
358
+                            <li has-func="489">
359 359
                                 <a data-ui-sref="app.business.lrb">利润表</a>
360 360
                             </li>
361 361
                         </ul>

+ 23 - 3
src/main/resources/static/app/supervise/controller/sptCtrl.js

@@ -352,9 +352,9 @@ angular.module('app.supervise').controller("sptSxtgzsCtrl", function ($scope, $r
352 352
             if (type == 'asset') {
353 353
                 $state.go('app.business.zcfzbView', {id: id, type: type});
354 354
             } else if (type == 'cash') {
355
-
355
+            	$state.go('app.business.xjllbView', {id: id, type: type});
356 356
             } else if (type == 'profit') {
357
-
357
+            	$state.go('app.business.lrbView', {id: id, type: type});
358 358
             }
359 359
 
360 360
         }
@@ -365,7 +365,9 @@ angular.module('app.supervise').controller("sptSxtgzsCtrl", function ($scope, $r
365 365
         $scope.loadDataById = function (id) {
366 366
             sptService.loadCwbbDataById(id).then(function (data) {
367 367
                 $scope.formInlineList = data.data;
368
-                $scope.formInlineList.detailList.splice(34,0,{
368
+                
369
+                if($stateParams.type == 'asset'){
370
+                	$scope.formInlineList.detailList.splice(34,0,{
369 371
                         zbmc:'',
370 372
                         zbz1:'',
371 373
                         zbz2:'',
@@ -399,6 +401,13 @@ angular.module('app.supervise').controller("sptSxtgzsCtrl", function ($scope, $r
399 401
                 // console.log("len:", len/2);
400 402
                 $scope.zcList = $scope.formInlineList.detailList.slice(0, len/2);
401 403
                 $scope.fzList = $scope.formInlineList.detailList.slice(len/2, len);
404
+                }else if($stateParams.type == 'cash'){
405
+                	$scope.zcList = $scope.formInlineList.detailList;
406
+                }else if($stateParams.type == 'profit'){
407
+                	$scope.zcList = $scope.formInlineList.detailList;
408
+                }
409
+                
410
+                
402 411
             }, function (data) {
403 412
             });
404 413
         };
@@ -406,5 +415,16 @@ angular.module('app.supervise').controller("sptSxtgzsCtrl", function ($scope, $r
406 415
         if ($stateParams.id != null) {
407 416
             $scope.loadDataById($stateParams.id);
408 417
         }
418
+        
419
+        $scope.retList = function(type){
420
+        	if(type == 'zc'){
421
+        		$state.go('app.business.zcfzb');
422
+        	}else if(type == 'xj'){
423
+        		$state.go('app.business.xjllb');
424
+        	}else if(type == 'lr'){
425
+        		$state.go('app.business.lrb');
426
+        	}
427
+        	
428
+        }
409 429
     })
410 430
 ;

+ 6 - 0
src/main/resources/static/app/supervise/views/cwgl-edit.html

@@ -1,4 +1,10 @@
1 1
 <div id="content">
2
+<div>
3
+    	<a href-void class="btn btn-default btn-xs" ng-click="retList('zc')">
4
+				<i class="fa fa-angle-left"></i>&nbsp;返回&nbsp;
5
+		</a>
6
+</div>
7
+    
2 8
     <div style="text-align: center;font-size: large">
3 9
         资产负债表
4 10
     </div>

+ 47 - 0
src/main/resources/static/app/supervise/views/cwgllrb-edit.html

@@ -0,0 +1,47 @@
1
+<div id="content">
2
+<div>
3
+    	<a href-void class="btn btn-default btn-xs" ng-click="retList('lr')">
4
+				<i class="fa fa-angle-left"></i>&nbsp;返回&nbsp;
5
+		</a>
6
+</div>
7
+    
8
+    <div style="text-align: center;font-size: large">
9
+        利润表
10
+    </div>
11
+    <div>
12
+        <div class="floatLeft">填报单位:{{ formInlineList.dwmc }}</div>
13
+        <div class="floatRight">
14
+            <span style="color: #FF0000;">*</span>填报期数:{{ formInlineList.bbsj }}
15
+            <span style="margin-left: 10px;">单位:元</span>
16
+        </div>
17
+    </div>
18
+    <div style="display: flex;width: 100%;">
19
+        <div style="flex: 4;">
20
+            <table class="table table-striped table-bordered table-hover">
21
+                <tbody>
22
+                <tr ng-repeat="item in zcList">
23
+                    <td class="tdsize">{{item.zbmc}}</td>
24
+                    <td class="tdsize">{{item.zbz1}}</td>
25
+                    <td class="tdsize">{{item.zbz2}}</td>
26
+                </tr>
27
+                </tbody>
28
+            </table>
29
+        </div>
30
+    </div>
31
+</div>
32
+<style>
33
+    .floatLeft {
34
+        float: left;
35
+    }
36
+
37
+    .floatRight {
38
+        float: right;
39
+    }
40
+    .tdsize {
41
+        font-size: 16px;
42
+        font-weight: 700;
43
+        text-align: center;
44
+        height: 40px;
45
+    }
46
+</style>
47
+

+ 47 - 0
src/main/resources/static/app/supervise/views/cwglxjll-edit.html

@@ -0,0 +1,47 @@
1
+<div id="content">
2
+<div>
3
+    	<a href-void class="btn btn-default btn-xs" ng-click="retList('xj')">
4
+				<i class="fa fa-angle-left"></i>&nbsp;返回&nbsp;
5
+		</a>
6
+</div>
7
+    
8
+    <div style="text-align: center;font-size: large">
9
+        现金流量表
10
+    </div>
11
+    <div>
12
+        <div class="floatLeft">填报单位:{{ formInlineList.dwmc }}</div>
13
+        <div class="floatRight">
14
+            <span style="color: #FF0000;">*</span>填报期数:{{ formInlineList.bbsj }}
15
+            <span style="margin-left: 10px;">单位:元</span>
16
+        </div>
17
+    </div>
18
+    <div style="display: flex;width: 100%;">
19
+        <div style="flex: 4;">
20
+            <table class="table table-striped table-bordered table-hover">
21
+                <tbody>
22
+                <tr ng-repeat="item in zcList">
23
+                    <td class="tdsize">{{item.zbmc}}</td>
24
+                    <td class="tdsize">{{item.zbz1}}</td>
25
+                    <td class="tdsize">{{item.zbz2}}</td>
26
+                </tr>
27
+                </tbody>
28
+            </table>
29
+        </div>
30
+    </div>
31
+</div>
32
+<style>
33
+    .floatLeft {
34
+        float: left;
35
+    }
36
+
37
+    .floatRight {
38
+        float: right;
39
+    }
40
+    .tdsize {
41
+        font-size: 16px;
42
+        font-weight: 700;
43
+        text-align: center;
44
+        height: 40px;
45
+    }
46
+</style>
47
+