fanxw hace 11 meses
padre
commit
09db7a70f7
Se han modificado 20 ficheros con 378 adiciones y 196 borrados
  1. 2 1
      src/main/resources/static/app/business/deliveryStorageNotice/controller/grainDeliveryStorageNoticeSaveCtrl.js
  2. 5 5
      src/main/resources/static/app/business/deliveryStorageNotice/views/grainDeliveryNotice-edit.html
  3. 5 7
      src/main/resources/static/app/business/deliveryStorageNotice/views/grainStorageNotice-edit.html
  4. 129 68
      src/main/resources/static/app/business/jsgl/controller/jsglCtrl.js
  5. 5 3
      src/main/resources/static/app/business/jsgl/controller/tzdZjCtrl.js
  6. 58 0
      src/main/resources/static/app/business/jsgl/service/jsglService.js
  7. 57 0
      src/main/resources/static/app/business/jsgl/views/crkjl-model-list.html
  8. 98 101
      src/main/resources/static/app/business/jsgl/views/jsgl-sl-edit.html
  9. 1 1
      src/main/resources/static/app/business/module.js
  10. 4 1
      src/main/resources/static/app/business/storeWareDetail/controller/grainStoreWareDetailModalCtrl.js
  11. 1 1
      src/main/resources/static/app/business/storeWareDetail/views/grainStoreWareDetailModal.html
  12. 1 1
      src/main/resources/static/app/business/storeWareDetail/views/ylgrainStoreWareDetailModal.html
  13. 3 2
      src/main/resources/static/app/storage/foodstuffAnalysis/service/GrainAnalysisService.js
  14. 1 0
      src/main/resources/static/app/storage/grainAnalysis/controller/monthAnalysisCtrl.js
  15. 1 1
      src/main/resources/static/app/storage/grainAnalysis/controller/selectWeekAnalysisModalCtrl.js
  16. 2 0
      src/main/resources/static/app/storage/yl_account/controller/ylBgzzCtrl.js
  17. 1 0
      src/main/resources/static/app/storage/yl_account/controller/ylFcbgzCtrl.js
  18. 2 1
      src/main/resources/static/app/storage/yl_account/service/ylBgzzService.js
  19. 1 2
      src/main/resources/static/app/storage/yl_account/views/bgzz-jz-modul.html
  20. 1 1
      src/main/resources/static/app/storage/yl_account/views/fcbgz-jz-edit.html

+ 2 - 1
src/main/resources/static/app/business/deliveryStorageNotice/controller/grainDeliveryStorageNoticeSaveCtrl.js

@@ -734,7 +734,7 @@ angular.module('app.business').controller("grainDeliveryStorageNoticeSaveCtrl",
734 734
         $scope.iddetailInfo();*/
735 735
         
736 736
      // 修改时弹出模态窗,通知单只能修改数量.
737
-        $scope.editRow = function(detailInfo,$event,deliveryStorageNotice) {
737
+        $scope.editRow = function(detailInfo,$event,deliveryStorageNotice, buttype) {
738 738
             var copyId = $($event.target).parent().parent().find("td:first").text();
739 739
             var count = detailInfo.inCount;
740 740
             var countAnother = detailInfo.outCount;
@@ -806,6 +806,7 @@ angular.module('app.business').controller("grainDeliveryStorageNoticeSaveCtrl",
806 806
 	    		params.planRemainingNumber = detailInfo.planRemainingNumber;  //计划的剩余数量
807 807
 	    		params.planOutRemainingNumber = detailInfo.planOutRemainingNumber;  //计划的剩余数量
808 808
 	    		params.copyId = copyId;
809
+	    		params.buttype = buttype;
809 810
 	    		if (detailInfo.crktype == 3) {//出库
810 811
 	    			if (detailInfo.ywtype == "2" || detailInfo.ywtype == "4") {//销售=竞价
811 812
 	    				if (detailInfo.htbh == null) {

+ 5 - 5
src/main/resources/static/app/business/deliveryStorageNotice/views/grainDeliveryNotice-edit.html

@@ -155,7 +155,7 @@
155 155
 													<th data-hide="expand" align="center" width="8%">剩余数量(吨)</th>
156 156
 													<th data-hide="expand" align="center" width="8%">单价(元/吨)</th>
157 157
 													<th data-hide="expand" align="center" width="7%">金额(元)</th>
158
-													<th data-hide="expand" align="center" width="10%" ng-hide="isNotEdit">操作</th>
158
+													<th data-hide="expand" align="center" width="10%">操作</th>
159 159
 														
160 160
 												</tr>
161 161
 											</thead>
@@ -187,11 +187,11 @@
187 187
 													<td>{{detailInfo.outRemainingNumber}}</td>
188 188
 													<td>{{detailInfo.outPrice}}</td>
189 189
 													<td>{{detailInfo.outDetailTotalPrice}}</td>
190
-													<td ng-hide="isNotEdit">
190
+													<td>
191
+														<a ng-hide="isNotEdit" class="btn btn-primary"
192
+															ng-click="editRow(detailInfo,$event,deliveryStorageNotice,'edit')">编辑</a>
191 193
 														<a class="btn btn-primary"
192
-															ng-click="editRow(detailInfo,$event,deliveryStorageNotice)">编辑</a>
193
-<!-- 														<a class="btn btn-primary" -->
194
-<!-- 															ng-click="deleteRow(detailInfo)">删除</a> -->
194
+															ng-click="editRow(detailInfo,$event,deliveryStorageNotice,'show')">查看</a>
195 195
 													</td>
196 196
 												</tr>
197 197
 											</tbody>

+ 5 - 7
src/main/resources/static/app/business/deliveryStorageNotice/views/grainStorageNotice-edit.html

@@ -159,7 +159,7 @@
159 159
 													<th data-hide="expand" align="center" width="8%">剩余数量(吨)</th>
160 160
 													<th data-hide="expand" align="center" width="8%">单价(元/吨)</th>
161 161
 													<th data-hide="expand" align="center" width="7%">金额(元)</th>
162
-													<th data-hide="expand" align="center" width="10%" ng-hide="isNotEdit">操作</th>
162
+													<th data-hide="expand" align="center" width="10%">操作</th>
163 163
 												</tr>
164 164
 											</thead>
165 165
 											<tbody>
@@ -191,13 +191,11 @@
191 191
 													<td id="nums_{{$index+1}}">{{detailInfo.inCount}}</td> 
192 192
 													<td>{{detailInfo.remainingNumber}}</td>
193 193
 													<td>{{detailInfo.inPrice}}</td>
194
-													<td>{{detailInfo.inDetailTotalPrice}}</td>  
194
+													<td>{{detailInfo.inDetailTotalPrice}}</td>
195 195
 
196
-													<td ng-hide="isNotEdit">
197
-														<a class="btn btn-primary"
198
-															ng-click="editRow(detailInfo,$event,deliveryStorageNotice)">编辑</a>
199
-<!-- 														<a class="btn btn-primary" -->
200
-<!-- 															ng-click="deleteRow(detailInfo)">删除</a> -->
196
+													<td>
197
+														<a ng-hide="isNotEdit" class="btn btn-primary" ng-click="editRow(detailInfo,$event,deliveryStorageNotice, 'edit')">编辑</a>
198
+														<a class="btn btn-primary" ng-click="editRow(detailInfo,$event,deliveryStorageNotice, 'show')">查看</a>
201 199
 													</td>
202 200
 												</tr>
203 201
 											</tbody>

+ 129 - 68
src/main/resources/static/app/business/jsgl/controller/jsglCtrl.js

@@ -329,6 +329,7 @@ angular.module('app.business')
329 329
 		jsglService.findBykey($stateParams.id).then(function(data){
330 330
 			$scope.jsgl = data;
331 331
 			$scope.jsgl.orgId = $rootScope.orgInfo.orgId;
332
+			$scope.sfkr_list = $scope.jsgl.khxxlist;
332 333
 			$scope.loadWare($scope.jsgl.houseId);
333 334
             if ("" != id) {
334 335
                 if (butType != "show") {
@@ -418,16 +419,15 @@ angular.module('app.business')
418 419
         });
419 420
 	}
420 421
 
421
-	// 选择个人客户.
422
-    $scope.getCustomer = function(id) {
423
-        if (id == null) {
422
+	// 选择收款人信息.
423
+    $scope.getSkrData = function(id) {
424
+        if ($scope.jsgl.htbh != null) {
424 425
         	var params = [];
425
-            params.type = "addBlacklist"; //不是黑名单人员
426
-            params.classify = 3152;
426
+            params.tzdbh = $scope.jsgl.htbh; //通知单编号
427 427
             var uibModalInstance = $uibModal.open({
428 428
                 size:'lg',
429
-                templateUrl: 'app/business/util/views/customer-list-modal.html',
430
-                controller: 'customerListModalCtrl',
429
+                templateUrl: 'app/business/jsgl/views/crkjl-model-list.html',
430
+                controller: 'selectCyrDataModalCtrl',
431 431
                 resolve: {
432 432
                     // items是一个回调函数
433 433
                     items: function () {
@@ -438,62 +438,80 @@ angular.module('app.business')
438 438
             });
439 439
             uibModalInstance.result.then(function (result) {
440 440
                 if (result != null) {
441
-                    // 客户表id.
442
-                    $scope.jsgl.customerId = result.id;
443
-                    // 收付款人赋值客户姓名.
444
-                    $scope.jsgl.sfkr = result.name;
445
-                    //开户行名称
446
-                    $scope.jsgl.khhmc = result.bankName;
447
-                    //开户行号
448
-                    $scope.jsgl.khhh = result.khhh;
449
-                    //银行账号
450
-                    $scope.jsgl.yhzh = result.accountNumber;
451
-
452
-                    if (result.classify == 3152) {
453
-                        // 个人.
454
-                        //收付款人身份证号
455
-                    	$scope.jsgl.skrsfzh = result.identification;
456
-                    } else if (result.classify == 3153) {
457
-                        // 企业.
458
-                        //收付款人身份证号(社会信用代码)
459
-                    	$scope.jsgl.skrsfzh = result.socialCreditCode;
460
-                    }
461
-                    //付款单位
462
-                    $scope.jsgl.fkdw = $rootScope.orgInfo.orgName;
441
+                	$scope.sfkr_list = result;
442
+                    $scope.jsgl.khxxlist = result;
443
+                    $scope.jsgl.khxxlist.forEach(obj => {
444
+                    	  delete obj.bizno;
445
+                    	  delete obj.checked;
446
+                    });
447
+                    //计算本次结算数量
448
+                    var bcjssl = 0;
449
+                    bcjssl = $scope.sfkr_list.reduce((sum, slkhxx) => sum + slkhxx.crksl, 0);
450
+                    $scope.jsgl.bcjssl = bcjssl/1000;
451
+                    $scope.calculate();//计算本次结算金额
463 452
                 }
464 453
                 // 关闭模态框时刷新页面数据
465 454
             }, function (reason) {
466 455
                 console.log(reason);
467 456
             });
468
-        } else {
469
-        	customerService.loadDataById(id).then(function(data){
470
-                // 客户表id.
471
-        		$scope.jsgl.customerId = id;
472
-                // 收付款人姓名.
473
-        		$scope.jsgl.sfkr = data.name;
474
-        		//开户行名称
475
-                $scope.jsgl.khhmc = data.bankName;
476
-                //开户行号
477
-                $scope.jsgl.khhh = data.khhh;
478
-                //银行账号
479
-                $scope.jsgl.yhzh = data.accountNumber;
480
-                if (data.classify == 3152) {
481
-                    // 个人.
482
-                    //身份证号
483
-                	$scope.jsgl.skrsfzh = data.identification;
484
-                } else if (data.classify == 3153) {
485
-                    // 企业.
486
-                    //社会信用代码
487
-                	$scope.jsgl.skrsfzh = data.socialCreditCode;
488
-                }
489
-                //付款单位
490
-                $scope.jsgl.fkdw = $rootScope.orgInfo.orgName;
491
-        	}, function (data) {
492
-				console.log(data);
493
-			});
494 457
         }
495 458
     }
496 459
 
460
+    $.validator.addMethod("checkKhhh",function(value,element, params) {
461
+    	var checkNumber = /(^[0-9]{1,12}$)/g;
462
+    	return this.optional(element)||(checkNumber.test(value));
463
+    },"请输入正确的开户行号");
464
+    $.validator.addMethod("checkSfzhm",function(value,element, params) {
465
+    	var checkNumber = /(^\d{18}$)|(^\d{17}(\d|X)$)/g;
466
+    	return this.optional(element)||(checkNumber.test(value));
467
+    },"请输入正确的身份证号码,且不能重复!");
468
+
469
+    $.validator.addMethod("checkYhzh",function(value,element, params) {
470
+    	var checkNumber = /^[0-9]{1,30}$/g;
471
+    	return this.optional(element)||(checkNumber.test(value));
472
+    },"请输入正确的银行账号!");
473
+
474
+    //散粮客户信息保存
475
+    $scope.saveKhxx = function(ite) {
476
+    	if (ite.sfkr != null && ite.skrsfzh != null && ite.sfkr != undefined && ite.skrsfzh != undefined) {
477
+    		var obj = {};
478
+    		obj.khmc = ite.sfkr;
479
+    		obj.sfzhm = ite.skrsfzh;
480
+    		obj.khhmc = ite.khhmc;
481
+    		obj.yhhbdm = ite.yhhbdm;
482
+    		obj.khhh = ite.khhh;
483
+    		obj.yhzh = ite.yhzh;
484
+    		jsglService.saveOrUpdateSlkhxx(obj).then(function(data){
485
+    			if (data.status == "200") {
486
+    				alert("操作成功!");
487
+    			} else {
488
+    				alert("操作失败!");
489
+    			}
490
+    	    },function(data){
491
+    	        console.log(data);
492
+    	    });
493
+    	} else {
494
+    		alert("收款人和身份证号不能为空");
495
+    	}
496
+    }
497
+
498
+    //点击收款人或身份证号码带出散粮客户信息
499
+    $scope.checkSlKhxx = function(ite) {
500
+    	if (ite.sfkr != null && ite.skrsfzh != null && ite.sfkr != undefined && ite.skrsfzh != undefined) {
501
+    		jsglService.queryStorageSlkhxx(ite.sfkr, ite.skrsfzh).then(function(data){
502
+    			if (data.status == "200") {
503
+    				var slkhxx = data.msg;
504
+    				ite.khhmc = slkhxx.khhmc;
505
+    				ite.yhhbdm = slkhxx.yhhbdm;
506
+    				ite.khhh = slkhxx.khhh;
507
+    				ite.yhzh = slkhxx.yhzh;
508
+    			}
509
+    	    },function(data){
510
+    	        console.log(data);
511
+    	    });
512
+    	}
513
+    }
514
+
497 515
     /**
498 516
 	 * 计算本次结算金额 = 本次结算数量 * 本次结算单价
499 517
 	 * 保留两位小数
@@ -538,25 +556,27 @@ angular.module('app.business')
538 556
     //保存(0:保存,1:提交)
539 557
     $scope.save = function(czlx) {
540 558
     	$scope.jsgl.dataStatus = czlx;
541
-    	var fp_s = $scope.jsgl.fpStart;
542
-    	var fp_e = $scope.jsgl.fpEnd;
543
-    	var fps = $scope.jsgl.fps;
544
-    	if (fp_s == null && fp_e == null && fps == null) {
545
-    		alert("连续发票号和不连续发票号至少要录入一种,不能都为空值!");
559
+    	$scope.isCustomerEdit = $scope.jsgl.bcjsfs=='0'?false:true;
560
+    	if (null === $scope.jsgl.khxxlist || $scope.jsgl.khxxlist == undefined) {
561
+    		alert("至少要有一条客户信息!");
546 562
     		return;
547
-    	} else {
548
-    		if ((fp_s == null && fp_e != null) || (fp_s != null && fp_e == null)) {
549
-    			alert("连续发票号码不能只录入起始值或只录入终止值!");
563
+    	}
564
+    	let sfkr = $scope.jsgl.khxxlist.filter(item => !item.sfkr);
565
+    	let skrsfzh = $scope.jsgl.khxxlist.filter(item => !item.skrsfzh);
566
+    	let khhmc = $scope.jsgl.khxxlist.filter(item => !item.khhmc);
567
+    	let yhzh = $scope.jsgl.khxxlist.filter(item => !item.yhzh);
568
+    	if ($scope.isCustomerEdit) {//转账
569
+    		if (sfkr.length != 0 || skrsfzh.length != 0 || khhmc.length != 0 || yhzh.length != 0) {
570
+    			alert("收款人、身份证号、开户行名称、银行账号不能为空!");
550 571
     			return;
551 572
     		}
552
-    	}
553
-    	$scope.isCustomerEdit = $scope.jsgl.bcjsfs=='0'?false:true
554
-    	if ($scope.jsgl.bcjsfs == '1') {
555
-    		if ($scope.jsgl.yhzh == null || $scope.jsgl.khhmc == null || $scope.jsgl.khhh == null) {
556
-    			alert("请补全对应客户档案信息!");
573
+    	} else {
574
+    		if (sfkr.length != 0 || skrsfzh.length != 0) {
575
+    			alert("收款人、身份证号不能为空!");
557 576
     			return;
558 577
     		}
559 578
     	}
579
+
560 580
     	var validator = $("#jsgl-sl-form").validate();
561 581
     	if (validator.form()) {
562 582
     		//本次结算时间
@@ -578,4 +598,45 @@ angular.module('app.business')
578 598
     	}
579 599
     };
580 600
 
601
+})
602
+.controller("selectCyrDataModalCtrl", function($scope, $uibModalInstance, $filter, $http, $uibModal, $rootScope, jsglService, APP_CONFIG, items) {
603
+
604
+    $scope.search = {tzdbh: items.tzdbh, cph: null, startTime: null, endTime: null};
605
+    // 获取列表数据
606
+    $scope.loadData = function() {
607
+    	var startTime = $("#startTime").val();
608
+    	var endTime = $("#endTime").val();
609
+    	$scope.search.startTime = startTime;
610
+    	$scope.search.endTime = endTime;
611
+    	jsglService.queryCrkywData($scope.search).then(function(data) {
612
+            $scope.list = data;
613
+        }).catch(function(data) {
614
+            if (data.status == 601) {
615
+                // session失效,关闭模态框.
616
+                $uibModalInstance.close();
617
+            }
618
+        });
619
+    }
620
+
621
+    $scope.loadData();
622
+
623
+    //勾选或取消勾选一条数据
624
+    $scope.selectData = function(index, obj) {
625
+    	$scope.list[index].checked = obj.checked;
626
+    	if (!obj.checked) {
627
+    		$scope.checkeds = false;
628
+    	}
629
+    }
630
+
631
+    // 关闭模态窗口
632
+    $scope.cancel = function() {
633
+        $uibModalInstance.close();
634
+    }
635
+
636
+    // 选择后点下一步.
637
+    $scope.closeModal = function() {
638
+    	var arr = $scope.list.filter(item => item.checked); //检索被选中的数据
639
+        $uibModalInstance.close(arr);
640
+    }
641
+
581 642
 });

+ 5 - 3
src/main/resources/static/app/business/jsgl/controller/tzdZjCtrl.js

@@ -1,12 +1,13 @@
1 1
 angular.module('app.business').controller("tzdZjCtrl", 
2
-	function($scope, $uibModalInstance, $filter, $http, $uibModal,deliveryStorageNoticeService, storeWareDetailService, jsglService, commonUtilService, APP_CONFIG, items) {
2
+	function($scope, $rootScope, $uibModalInstance, $filter, $http, $uibModal,deliveryStorageNoticeService, storeWareDetailService, jsglService, commonUtilService, APP_CONFIG, items) {
3 3
 
4 4
 	$scope.pageInfo = {pageNum : 1, pageSize : 10};  
5
-	$scope.searchCondition = {}; //查询入库的
5
+	$scope.searchCondition = {orgId : $rootScope.orgInfo.orgId, billType : 1}; //查询入库的
6 6
     // 获取列表数据
7 7
 	
8 8
     $scope.loadData = function() {
9
-    	deliveryStorageNoticeService.getPassPageInfo($scope.pageInfo.pageNum, $scope.pageInfo.pageSize, $scope.searchCondition).then(function(data){
9
+    	$scope.searchCondition.billType = 1;
10
+    	deliveryStorageNoticeService.getGrainPassPageInfo($scope.pageInfo.pageNum, $scope.pageInfo.pageSize, $scope.searchCondition).then(function(data){
10 11
             $scope.pageInfo = data;
11 12
         },function(data){
12 13
             console.log(data);
@@ -38,6 +39,7 @@ angular.module('app.business').controller("tzdZjCtrl",
38 39
 	$scope.selectData = function(check) {
39 40
 		var datas = {billNumber: check.billNumber, shipingCount: check.shipingCount};
40 41
 		storeWareDetailService.getStoreWareDetailList(check.id, 'notice').then(function(data) {
42
+			datas.id = data[0].zid;
41 43
 			datas.houseId = data[0].houseId;
42 44
 			datas.warehouseId = data[0].warehouseId;
43 45
 			datas.lypz = data[0].grainKind;

+ 58 - 0
src/main/resources/static/app/business/jsgl/service/jsglService.js

@@ -96,4 +96,62 @@ angular.module('app.business').service("jsglService", function($http, $q,$rootSc
96 96
         });
97 97
         return d.promise;
98 98
     }
99
+
100
+    //根据通知单编号查询出入库记录数据
101
+    this.queryCrkywData = function(obj){
102
+        var d = $q.defer();
103
+        $http({
104
+            method : 'GET',
105
+            url : APP_CONFIG.deviceUrl + '/storageJsglKhxx/queryCrkywData',
106
+            params : {
107
+            	tzdbh : obj.tzdbh,
108
+            	cph : obj.cph,
109
+            	startTime : obj.startTime,
110
+            	endTime : obj.endTime
111
+            }
112
+        }).then(function successCallback(response) {
113
+            // 请求成功执行代码
114
+            d.resolve(response.data);
115
+        }, function errorCallback(response) {
116
+            // 请求失败执行代码
117
+            d.reject("error");
118
+        });
119
+        return d.promise;
120
+    }
121
+
122
+    // 保存散粮客户信息
123
+    this.saveOrUpdateSlkhxx = function(json) {
124
+        var d = $q.defer();
125
+        $http({
126
+            method: 'POST',
127
+            url: APP_CONFIG.deviceUrl + '/storageSlkhxx/saveOrUpdate',
128
+            data: {
129
+                json : angular.toJson(json)
130
+            }
131
+        }).then(function successCallback(response) {
132
+            d.resolve(response.data);
133
+        }, function errorCallback(response) {
134
+        });
135
+        return d.promise;
136
+    }
137
+    
138
+    //收付款人和身份证号码查询一条散粮客户信息
139
+    this.queryStorageSlkhxx = function(khmc, sfzhm){
140
+        var d = $q.defer();
141
+        $http({
142
+            method : 'GET',
143
+            url : APP_CONFIG.deviceUrl + '/storageSlkhxx/queryStorageSlkhxx',
144
+            params : {
145
+            	khmc : khmc,
146
+            	sfzhm : sfzhm
147
+            }
148
+        }).then(function successCallback(response) {
149
+            // 请求成功执行代码
150
+            d.resolve(response.data);
151
+        }, function errorCallback(response) {
152
+            // 请求失败执行代码
153
+            d.reject("error");
154
+        });
155
+        return d.promise;
156
+    }
99 157
 });

+ 57 - 0
src/main/resources/static/app/business/jsgl/views/crkjl-model-list.html

@@ -0,0 +1,57 @@
1
+<div class="modal-content">
2
+    <div class="modal-header">
3
+        <button type="button" class="close" ng-click="cancel()">
4
+            &times;
5
+        </button>
6
+        <h4 class="modal-title" id="myModalLabel"></h4>
7
+    </div>
8
+    <div class="modal-body">
9
+        <div>
10
+            <div class="widget-body no-padding">
11
+                <div id="DataTables_Table_1_wrapper" class="dataTables_wrapper form-inline no-footer">
12
+                    <div class="col-xs-12 col-sm-10">
13
+                        <label>出入库日期:<input style="width: 100px;" class="form-control" type="text" ng-model="search.startTime" name="startTime" id="startTime"
14
+                                               onClick="WdatePicker({lang:'zh-cn',maxDate:'#F{$dp.$D(\'endTime\')}', dateFmt:'yyyy-MM-dd'})">——
15
+                                       <input style="width: 100px;" class="form-control" type="text" ng-model="search.endTime" name="endTime" id="endTime"
16
+                                               onClick="WdatePicker({lang:'zh-cn',minDate:'#F{$dp.$D(\'startTime\')}', dateFmt:'yyyy-MM-dd'})">
17
+                        </label>
18
+                        <label>车牌号:<input style="width: 100px;" class="form-control" type="text"
19
+                                           ng-model="search.cph" name="cph" id="ssyf" />
20
+                        </label>
21
+                        <a class="btn btn-default btn-sm"  ng-click="loadData()">
22
+                                                <i class="fa fa-search"></i>&nbsp;查&nbsp;询</a>&nbsp;&nbsp;
23
+                    </div>
24
+                    <table class="table table-striped table-bordered table-hover" width="100%">
25
+                        <thead>
26
+                            <tr>
27
+	                            <th>序号</th>
28
+	                            <th>业务单据号</th>
29
+	                            <th>车牌号</th>
30
+	                            <th>数量(kg)</th>
31
+	                            <th>出入库日期</th>
32
+	                            <th>承运人</th>
33
+	                            <th>身份证号</th>
34
+                            </tr>
35
+                        </thead>
36
+                        
37
+                        <tbody>
38
+                            <tr ng-repeat="data in list">
39
+		                        <td><input type="checkbox" ng-model="data.checked" name="checked" ng-click="selectData($index,data)">{{$index+1}}</td>
40
+								<td>{{data.bizno}}</td>
41
+								<td>{{data.cph}}</td>
42
+								<td>{{data.crksl}}</td>
43
+								<td>{{data.crkrq}}</td>
44
+								<td>{{data.sfkr}}</td>
45
+								<td>{{data.skrsfzh}}</td>
46
+                            </tr>
47
+                        </tbody>
48
+                    </table>
49
+                </div>
50
+            </div>
51
+        </div>
52
+    </div>
53
+    <div class="modal-footer">
54
+       <button type="button" class="btn btn-primary"  ng-click="closeModal()"> 下一步 </button>
55
+       <button type="button" class="btn btn-default"  ng-click="cancel()"> 返回 </button>
56
+    </div>
57
+</div>

+ 98 - 101
src/main/resources/static/app/business/jsgl/views/jsgl-sl-edit.html

@@ -135,108 +135,105 @@
135 135
                                         </section>
136 136
                                     </div>
137 137
                                 </fieldset>
138
-                                <header><strong>发票信息</strong></header>
139
-                                <fieldset>
140
-                                    <div class="row">
141
-                                        <section class="col col-12">
142
-                                            <label class="label">连续发票号码填写</label>
143
-                                            <label class="input"> 
144
-                                            	<div>
145
-                                            	<table border="0">
146
-                                            	    <tr>
147
-                                            	        <td>
148
-                                            	             <input type="text" ng-model="jsgl.fpStart" ng-readonly="isNotEdit" name="fpStart" placeholder="" />
149
-                                            	        </td>
150
-                                            	        <td><span>&nbsp;——&nbsp;</span></td>
151
-                                            	        <td>
152
-                                            	             <input type="text" ng-model="jsgl.fpEnd" ng-readonly="isNotEdit" name="fpEnd" />
153
-                                            	        </td>
154
-                                            	        <td><span style="color: red;">&nbsp;&nbsp;&nbsp;&nbsp;说明:连续发票号码,请填写第一张和最后一张即可</span></td>
155
-                                            	    </tr>
156
-                                            	</table>
157
-                                            	</div>
158
-                                            </label>
159
-                                        </section>
160
-                                    </div>
161
-                                    <section>
162
-                                        <label class="label">不连续发票号码填写</label>
163
-                                        <label class="textarea textarea-resizable"> 
164
-                                          <textarea
165
-                                            rows="5" ng-model="jsgl.fps" name="fps" ng-disabled="isNotEdit" class="custom-scroll"
166
-                                            placeholder="多个发票号码填写,请用英文逗号进行间隔。例如:1234567890,123456788">
167
-                                          </textarea>
168
-                                        </label>
169
-                                    </section>
170
-                                    <div class="row">
171
-                                        <section class="col col-4">
172
-                                        <label class="label">发票状态</label>
173
-                                        <label class="select"> 
174
-                                        	<select ng-model="jsgl.fpzt" ng-disabled="isNotEdit" name="fpzt">
175
-                                         		<option value="1">正常</option>
176
-                                         		<option value="0">作废</option>
177
-                                         	</select>
178
-                                     	</label>
179
-                                    </section>
180
-                                    </div>
181
-                                </fieldset>
182
-                                <header><strong>收/付款信息</strong></header>
138
+                                
139
+                                <header>
140
+                                    <strong>收/付款信息</strong> 
141
+                                    <button style="padding: 5px 10px;" type="button" class="btn btn-default" ng-click="getSkrData()" ng-hide="isEdit">
142
+										<i class="glyphicon glyphicon-plus"></i> 
143
+										<span>添加收款人信息</span>
144
+									</button>
145
+								</header>
183 146
                                 <fieldset>
184
-                                    <div class="row">
185
-                                        <section class="col col-4">
186
-                                            <label class="label">收/付款人<span style="color: red;">*</span></label>
187
-                                            <label class="input">
188
-                                                <input class="form-control" type="text" ng-model="jsgl.sfkr" name="sfkr" ng-disabled="isNotEdit"
189
-                                                       ng-click="getCustomer()" placeholder="请选择客户" required />
190
-                                            </label>
191
-                                        </section>
192
-                                        <section class="col col-4">
193
-                                            <label class="label">开户行名称<span style="color: red;">*</span></label>
194
-                                            <label class="input">
195
-                                                <input class="form-control" type="text" ng-model="dicData[jsgl.khhmc]" ng-readonly="true" name="khhmc" placeholder="" ng-required="isCustomerEdit" />
196
-                                            </label>
197
-                                        </section>
198
-                                        <section class="col col-4">
199
-                                            <label class="label">开户行号<span style="color: red;">*</span></label>
200
-                                            <label class="input">
201
-                                                <input type="text" ng-model="jsgl.khhh" ng-readonly="true" ng-required="isCustomerEdit" name="khhh" placeholder="" />
202
-                                            </label>
203
-                                        </section>
204
-                                    </div>
205
-                                    <div class="row">
206
-                                        <section class="col col-4">
207
-                                            <label class="label">银行账号<span style="color: red;">*</span></label>
208
-                                            <label class="input">
209
-                                                <input class="form-control" type="text" ng-model="jsgl.yhzh" ng-readonly="true" name="yhzh" placeholder="" ng-required="isCustomerEdit" />
210
-                                            </label>
211
-                                        </section>
212
-                                        <section class="col col-4" ng-hide="jslx=='1'">
213
-                                            <label class="label">收款人身份证号</label>
214
-                                            <label class="input">
215
-                                                <input class="form-control" type="text" ng-model="jsgl.skrsfzh" ng-readonly="true" name="skrsfzh" placeholder="" />
216
-                                            </label>
217
-                                        </section>
218
-                                        <section class="col col-4" ng-hide="jslx=='1'">
219
-                                            <label class="label">付款单位<span style="color: red;">*</span></label>
220
-                                            <label class="input">
221
-                                                <input type="text" ng-model="jsgl.fkdw" name="fkdw" ng-readonly="isNotEdit" required placeholder="" />
222
-                                            </label>
223
-                                        </section>
224
-                                    </div>
225
-                                    <div class="row">
226
-                                        <section class="col col-3">
227
-                                            <label class="label">提交人:</label>
228
-                                            <label class="input">
229
-                                                <input type="text" ng-model="jsgl.commitPeople" name="commitPeople" ng-readonly="true" required>
230
-                                            </label>
231
-                                        </section>
232
-                                        <section class="col col-3">
233
-                                            <label class="label">提交时间:</label>
234
-                                            <label class="input">
235
-                                                <input type="text" ng-model="jsgl.commitTime" name="commitTime" ng-readonly="true" required>
236
-                                            </label>
237
-                                        </section>
238
-                                    </div>
239
-                                </fieldset>
147
+									<div class="col-xs-12 col-sm-12">
148
+										<table class="table table-striped table-bordered table-hover" width="100%">
149
+											<tbody>
150
+											<tr>
151
+												<th>
152
+													<label class="label" style="margin-top: 9px;text-align: center;">序号</label>
153
+												</th>
154
+												<th>
155
+													<label class="label" style="margin-top: 9px;text-align: center;">车牌号</label>
156
+												</th>
157
+												<th>
158
+													<label class="label" style="margin-top: 9px;text-align: center;">数量(kg)</label>
159
+												</th>
160
+												<th>
161
+													<label class="label" style="margin-top: 9px;text-align: center;">出入库日期</label>
162
+												</th>
163
+												<th>
164
+													<label class="label" style="margin-top: 9px;text-align: center;">收款人</label>
165
+												</th>
166
+												<th>
167
+													<label class="label" style="margin-top: 9px;text-align: center;">身份证号</label>
168
+												</th>
169
+												<th>
170
+													<label class="label" style="margin-top: 9px;text-align: center;">开户行名称</label>
171
+												</th>
172
+												<th>
173
+													<label class="label" style="margin-top: 9px;text-align: center;">银行行别代码</label>
174
+												</th>
175
+												<th>
176
+													<label class="label" style="margin-top: 9px;text-align: center;">开户行号</label>
177
+												</th>
178
+												<th>
179
+													<label class="label" style="margin-top: 9px;text-align: center;">银行账号</label>
180
+												</th>
181
+												<th>
182
+													<label class="label" style="margin-top: 9px;text-align: center;">操作</label>
183
+												</th>
184
+											</tr>
185
+											<tr ng-repeat="item in sfkr_list" class="ng-scope">
186
+												<th>
187
+													<label class="label" style="margin-top: 9px;text-align: center;">{{ $index+1 }}</label>
188
+												</th>
189
+												<th>
190
+													<label class="label" style="margin-top: 9px;text-align: center;">{{ item.cph }}</label>
191
+												</th>
192
+												<th>
193
+													<label class="label" style="margin-top: 9px;text-align: center;">{{ item.crksl }}</label>
194
+												</th>
195
+												<th>
196
+													<label class="label" style="margin-top: 9px;text-align: center;">{{ item.crkrq }}</label>
197
+												</th>
198
+												<th>
199
+													<label class="label" style="margin-top: 9px;text-align: center;">
200
+													    <input class="form-control" type="text" ng-model="item.sfkr" name="sfkr" ng-click="checkSlKhxx(item)" ng-readonly="isNotEdit" />
201
+													</label>
202
+												</th>
203
+												<th>
204
+													<label class="label" style="margin-top: 9px;text-align: center;">
205
+													    <input class="form-control" type="text" ng-model="item.skrsfzh" name="skrsfzh" checkSfzhm=true ng-click="checkSlKhxx(item)" ng-readonly="isNotEdit" />
206
+													</label>
207
+												</th>
208
+												<th>
209
+													<label class="label" style="margin-top: 9px;text-align: center;">
210
+													    <input class="form-control" type="text" ng-model="item.khhmc" name="khhmc" ng-readonly="isNotEdit" />
211
+													</label>
212
+												</th>
213
+												<th>
214
+													<label class="label" style="margin-top: 9px;text-align: center;">
215
+													    <input class="form-control" type="text" ng-model="item.yhhbdm" name="yhhbdm" ng-readonly="isNotEdit" />
216
+													</label>
217
+												</th>
218
+												<th>
219
+													<label class="label" style="margin-top: 9px;text-align: center;">
220
+													    <input class="form-control" type="text" ng-model="item.khhh" name="khhh" checkKhhh=true ng-readonly="isNotEdit" />
221
+													</label>
222
+												</th>
223
+												<th>
224
+													<label class="label" style="margin-top: 9px;text-align: center;">
225
+													    <input class="form-control" type="text" ng-model="item.yhzh" name="yhzh" checkYhzh=true ng-readonly="isNotEdit" />
226
+													</label>
227
+												</th>
228
+												<th>
229
+													<label class="label" style="margin-top: 9px;text-align: center;">
230
+													    <a class="btn btn-primary" ng-click="saveKhxx(item)" ng-hide="isNotEdit">保存</a>
231
+													</label>
232
+												</th>
233
+											</tr>
234
+										</tbody></table>
235
+									</div>
236
+								</fieldset>
240 237
 
241 238
                                 <div>
242 239
                                     <footer class="text-align-center">

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

@@ -1308,7 +1308,7 @@ angular.module('app.business')
1308 1308
         	}
1309 1309
         })
1310 1310
         .state('app.business.rkjs-sl-list.edit', {
1311
-            url: '/business/rkjs-sl-list/edit/:id',
1311
+            url: '/business/rkjs-sl-list/edit/:id/:butType',
1312 1312
             data: {
1313 1313
                 title: '散粮入库结算详情'
1314 1314
             },

+ 4 - 1
src/main/resources/static/app/business/storeWareDetail/controller/grainStoreWareDetailModalCtrl.js

@@ -159,7 +159,10 @@ angular.module('app.business').controller("grainStoreWareDetailModalCtrl",
159 159
 						$scope.wareHidden = true ;
160 160
 					}
161 161
 				}
162
-
162
+				if (items.buttype == "show") {
163
+					$scope.isEdit = true;
164
+					$scope.isNotEdit = true;
165
+				} 
163 166
 			}
164 167
 		}
165 168
 

+ 1 - 1
src/main/resources/static/app/business/storeWareDetail/views/grainStoreWareDetailModal.html

@@ -271,7 +271,7 @@
271 271
 		</form>
272 272
     </div>
273 273
     <div class="modal-footer">
274
-        <button type="button" class="btn btn-primary"  ng-click="save()">提交</button>
274
+        <button type="button" class="btn btn-primary"  ng-click="save()" ng-hide="isNotEdit">提交</button>
275 275
         <button type="button" class="btn btn-default"  ng-click="cancel()">取消</button>
276 276
     </div>
277 277
 </div>

+ 1 - 1
src/main/resources/static/app/business/storeWareDetail/views/ylgrainStoreWareDetailModal.html

@@ -282,7 +282,7 @@
282 282
 		</form>
283 283
     </div>
284 284
     <div class="modal-footer">
285
-        <button type="button" class="btn btn-primary"  ng-click="save()">
285
+        <button type="button" class="btn btn-primary"  ng-click="save()" ng-hide="isNotEdit">
286 286
         	提交
287 287
         </button>
288 288
         <button type="button" class="btn btn-default"  ng-click="cancel()">

+ 3 - 2
src/main/resources/static/app/storage/foodstuffAnalysis/service/GrainAnalysisService.js

@@ -86,14 +86,15 @@ angular.module('app.storage').service("GrainAnalysisService", function($http, $q
86 86
 	}
87 87
 	
88 88
 	//选择周报(新版用)
89
-	this.queryWeekAnalysis = function (ssyf, houseId) {
89
+	this.queryWeekAnalysis = function (ssyf, houseId, warehouseId) {
90 90
 		var d = $q.defer();
91 91
 		$http({
92 92
 			method : 'GET',
93 93
 			url : APP_CONFIG.keeperHouseUrl + '/GrainAnalysis/queryWeekAnalysis',
94 94
 			params : {
95 95
 				ssyf: ssyf,
96
-				houseId: houseId
96
+				houseId: houseId,
97
+				warehouseId : warehouseId
97 98
 			}
98 99
 		}).then(function successCallback(response) {
99 100
 			// 请求成功执行代码

+ 1 - 0
src/main/resources/static/app/storage/grainAnalysis/controller/monthAnalysisCtrl.js

@@ -204,6 +204,7 @@ angular.module('app.storage')
204 204
         $scope.modelItem.orgId = $rootScope.orgInfo.orgId;
205 205
         $scope.modelItem.type = 1;//报表类型是周报
206 206
         $scope.modelItem.houseId = $scope.form.houseId;//仓房ID
207
+        $scope.modelItem.warehouseId = $scope.form.warehouseId;//货位ID
207 208
         $scope.modelItem.ssyf = $scope.storageGrainAnalysis.ssyf;//所属月份
208 209
 		
209 210
         // 展开选择仓房的模态框.

+ 1 - 1
src/main/resources/static/app/storage/grainAnalysis/controller/selectWeekAnalysisModalCtrl.js

@@ -8,7 +8,7 @@ angular.module('app.storage').controller("selectWeekAnalysisModalCtrl",
8 8
     // 获取列表数据
9 9
     $scope.loadData = function() {
10 10
 
11
-    	GrainAnalysisService.queryWeekAnalysis(items.ssyf, items.houseId).then(function(data) {
11
+    	GrainAnalysisService.queryWeekAnalysis(items.ssyf, items.houseId, items.warehouseId).then(function(data) {
12 12
 			$scope.list = data;
13 13
 			for (var i = 0; i < $scope.list.length; i++) {
14 14
     			$scope.list[i].checked = true;

+ 2 - 0
src/main/resources/static/app/storage/yl_account/controller/ylBgzzCtrl.js

@@ -219,6 +219,7 @@ angular.module('app.storage')
219 219
     	$scope.bgzz.jzsj = $scope.jzsj;
220 220
     	$scope.bgzz.shr = $scope.shr;
221 221
     	$scope.bgzz.shsj = $scope.shsj;
222
+    	$scope.disabled = true;
222 223
     	ylBgzzService.saveJz($scope.bgzz).then(function (data) {
223 224
 			$scope.list = data;
224 225
 			if (data.status == "200") {
@@ -265,6 +266,7 @@ angular.module('app.storage')
265 266
         	$scope.modelItem.jzyf = items.obj.sjfm;//记账月份
266 267
         	$scope.modelItem.jzzy = items.obj.jzzy;//摘要
267 268
         }
269
+        $scope.modelItem.orgId = $rootScope.orgInfo.orgId
268 270
         ylBgzzService.selectFcbgzDetail($scope.modelItem).then(function(data){
269 271
     		$scope.list = data;
270 272
         },function(data){

+ 1 - 0
src/main/resources/static/app/storage/yl_account/controller/ylFcbgzCtrl.js

@@ -205,6 +205,7 @@ angular.module('app.storage')
205 205
 
206 206
     //保存
207 207
     $scope.save = function() {
208
+    	$scope.disabled = true;
208 209
     	ylFcbgzService.saveJz($scope.fcbgz).then(function (data) {
209 210
 			$scope.list = data;
210 211
 			if (data.status == "200") {

+ 2 - 1
src/main/resources/static/app/storage/yl_account/service/ylBgzzService.js

@@ -68,7 +68,8 @@ angular.module('app.storage').service("ylBgzzService", function($http, $q, $root
68 68
                 lspz : modelItem == undefined ? "" :modelItem.lspz,
69 69
                 jzzy : modelItem == undefined ? "" :modelItem.jzzy,
70 70
                 jzyf : modelItem == undefined ? "" :modelItem.jzyf,
71
-                jznd : modelItem == undefined ? "" :modelItem.jznd
71
+                jznd : modelItem == undefined ? "" :modelItem.jznd,
72
+                orgId : modelItem == undefined ? "" :modelItem.orgId
72 73
             }
73 74
         }).then(function successCallback(response) {
74 75
             // 请求成功执行代码

+ 1 - 2
src/main/resources/static/app/storage/yl_account/views/bgzz-jz-modul.html

@@ -48,8 +48,7 @@
48 48
 		</form>
49 49
 	</div>
50 50
 	<div class="modal-footer">
51
-		<button ng-click="save()" type="button" ng-hide="isNotEdit"
52
-			class="btn btn-primary">提交</button>
51
+		<button ng-click="save()" type="button" ng-hide="isNotEdit" class="btn btn-primary" ng-disabled="disabled">提交</button>
53 52
 		<button ng-click="cancel()" class="btn btn-default"
54 53
 			data-dismiss="modal">取消</button>
55 54
 	</div>

+ 1 - 1
src/main/resources/static/app/storage/yl_account/views/fcbgz-jz-edit.html

@@ -154,7 +154,7 @@
154 154
 								</fieldset>
155 155
 								<footer class="modal-footer text-align-center">
156 156
 									<button ng-click="retList()" class="btn btn-default btn-lg" data-dismiss="modal">取消</button>
157
-									<button ng-click="save()" type="button" class="btn btn-primary btn-lg" ng-hide="fcbgz.dataStatus=='0'">提交</button>
157
+									<button ng-click="save()" type="button" class="btn btn-primary btn-lg" ng-hide="fcbgz.dataStatus=='0'" ng-disabled="disabled">提交</button>
158 158
 								</footer>
159 159
 							</form>
160 160
 						</div>