fanxw 2 lat temu
rodzic
commit
e16d12c67a

+ 1 - 0
.gitignore

@@ -36,3 +36,4 @@ yarn-error.log*
36 36
 *.sln
37 37
 *.sw?
38 38
 云南智能化粮库系统使用手册.pdf
39
+/target/

+ 138 - 0
src/main/resources/static/app/business/jsgl/controller/jsglCtrl.js

@@ -0,0 +1,138 @@
1
+"use strict";
2
+//器材信息
3
+angular.module('app.business')
4
+    .controller("jsglCtrl", function($scope, $http, $state, $rootScope, jsglService, warehouseService, $stateParams, APP_CONFIG) {
5
+    // 获取列表数据
6
+    $scope.jslx = $stateParams.jslx;
7
+	if ($scope.jslx == "0") {
8
+    	$scope.top_title = "入库结算列表";
9
+    } else if ($scope.jslx == "1") {
10
+    	$scope.top_title = "出库结算列表";
11
+    }
12
+     $scope.pageInfo = {pageNum : 1, pageSize : 10};
13
+     $scope.search = {houseId:null, wareId: null};
14
+	 $scope.loadData = function() {
15
+		 jsglService.getPageInfoDevice($scope.pageInfo.pageNum, $scope.pageInfo.pageSize, $stateParams.jslx, $scope.search).then(function(data){
16
+			 $scope.pageInfo = data;
17
+	     },function(data){
18
+	         console.log(data);
19
+	     });
20
+	 }
21
+	 $scope.loadData();
22
+
23
+	 $scope.loadWare = function(houseId) {
24
+		//按照单位获取单位下的仓房信息
25
+		if (null == houseId) {
26
+			$scope.warehouseList = null;
27
+		} else {
28
+			var orgId = $rootScope.orgInfo.orgId;
29
+			warehouseService.getStorehouse(orgId, houseId, "0").then(function(data){
30
+				$scope.warehouseList = data.wareList;  //下拉列表数据
31
+			},function (data) {
32
+				console.log(data);
33
+			});
34
+		}
35
+	}
36
+	// 翻页
37
+    $scope.goPage = function(pageNum) {
38
+        $scope.pageInfo.pageNum = pageNum;
39
+        $scope.loadData();
40
+    }
41
+
42
+	//新增、查看、修改
43
+    $scope.edit = function(id, butType) {
44
+    	$state.go('app.business.rkjslist.edit',{id:id, butType:butType, jslx: $stateParams.jslx});
45
+    }
46
+
47
+    //删除
48
+    $scope.remove = function(id) {
49
+    	if (!confirm("确定要删除吗?")) {
50
+            return;
51
+        }
52
+    	jsglService.remove(id).then(function(data){
53
+    		$scope.loadData();
54
+	    },function(data){
55
+	         console.log(data);
56
+	    });
57
+    }
58
+
59
+})
60
+.controller("jsglEditCtrl", function($scope, $http, $filter, $state, $rootScope, $stateParams, APP_CONFIG, jsglService, warehouseService) {
61
+    var id = $stateParams.id;
62
+    var butType = $stateParams.butType;
63
+    $scope.jslx = $stateParams.jslx;
64
+    if ($scope.jslx == "0") {
65
+    	$scope.top_title = "入库结算详情";
66
+    } else if ($scope.jslx == "1") {
67
+    	$scope.top_title = "出库结算详情";
68
+    }
69
+    var isNotEdit = false;//大多数文本框
70
+    var isEdit = false;//少数要控制的文本框
71
+    $scope.jsgl = {};
72
+
73
+	// 获取列表数据
74
+	$scope.loadData = function() {
75
+		jsglService.findBykey($stateParams.id).then(function(data){
76
+			$scope.jsgl = data;
77
+			$scope.jsgl.orgId = $rootScope.orgInfo.orgId;
78
+			$scope.loadWare($scope.jsgl.houseId);
79
+	    },function(data){
80
+	        console.log(data);
81
+	    });
82
+	}
83
+
84
+	$scope.loadWare = function(houseId) {
85
+		//按照单位获取单位下的仓房信息
86
+		var orgId = $rootScope.orgInfo.orgId;
87
+		warehouseService.getStorehouse(orgId, houseId, "0").then(function(data){
88
+			$scope.warehouseList = data.wareList;  //下拉列表数据
89
+		},function (data) {
90
+			console.log(data);
91
+		});
92
+	}
93
+
94
+	if ("" != id) {
95
+    	if (butType == "show") {//查看
96
+    		$scope.isNotEdit = true;
97
+    		$scope.isEdit = true;
98
+        } else {
99
+        	$scope.isEdit = true;
100
+        }
101
+    	$scope.loadData();
102
+    } else {
103
+    	$scope.jsgl.bcjssj = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");
104
+    	$scope.jsgl.fkdw = $rootScope.orgInfo.orgName;
105
+    }
106
+	
107
+	// 返回.
108
+    $scope.retList = function () {
109
+        if ($rootScope.previousState_name != '') {
110
+        	$rootScope.back();
111
+        } else {
112
+        	if ($scope.jslx=="0") {
113
+        		$state.go('app.business.rkjslist');
114
+        	} else if ($scope.jslx=="1") {
115
+        		$state.go('app.business.ckjslist');
116
+        	}
117
+        }
118
+    }
119
+
120
+    //保存(0:保存,1:提交)
121
+    $scope.save = function(czlx) {
122
+    	$scope.jsgl.dataStatus = czlx;
123
+    	jsglService.saveData($scope.jsgl).then(function(data){
124
+			if (data.status == "200") {
125
+				alert("操作成功!");
126
+			} else {
127
+				alert("操作失败!");
128
+			}
129
+			if ($scope.jslx=="0") {
130
+        		$state.go('app.business.rkjslist');
131
+        	} else if ($scope.jslx=="1") {
132
+        		$state.go('app.business.ckjslist');
133
+        	}
134
+	    },function(data){
135
+	        console.log(data);
136
+	    });
137
+    }
138
+})

+ 0 - 74
src/main/resources/static/app/business/jsgl/controller/rkjsCtrl.js

@@ -1,74 +0,0 @@
1
-"use strict";
2
-//器材信息
3
-angular.module('app.business')
4
-    .controller("rkjsCtrl", function($scope, $http, $state, $rootScope, jsglService, $stateParams, APP_CONFIG) {
5
-    // 获取列表数据
6
-     $scope.pageInfo = {pageNum : 1, pageSize : 10};
7
-     $scope.search = {houseId:null, wareId: null};
8
-	 $scope.loadData = function() {
9
-		 jsglService.getPageInfoDevice($scope.pageInfo.pageNum, $scope.pageInfo.pageSize, '0', $scope.search).then(function(data){
10
-			 $scope.pageInfo = data;
11
-	     },function(data){
12
-	         console.log(data);
13
-	     });
14
-	 }
15
-	 $scope.loadData();
16
-
17
-	// 翻页
18
-    $scope.goPage = function(pageNum) {
19
-        $scope.pageInfo.pageNum = pageNum;
20
-        $scope.loadData();
21
-    }
22
-
23
-	//新增、查看、修改
24
-    $scope.edit = function(id, butType) {
25
-    	$state.go('app.business.rkjslist.edit',{id:id, butType:butType});
26
-    }
27
-
28
-    //删除
29
-    $scope.remove = function(id) {
30
-    	if (!confirm("确定要删除吗?")) {
31
-            return;
32
-        }
33
-    	jsglService.remove(id).then(function(data){
34
-    		$scope.loadData();
35
-	    },function(data){
36
-	         console.log(data);
37
-	    });
38
-    }
39
-
40
-})
41
-.controller("rkjsEditCtrl", function($scope, $http, $state, $rootScope, jsglService, $stateParams, APP_CONFIG) {
42
-    var id = $stateParams.id;
43
-    var butType = $stateParams.butType;
44
-    var isNotEdit = false;//大多数文本框
45
-    var isEdit = false;//少数要控制的文本框
46
-    
47
-	// 获取列表数据
48
-	$scope.loadData = function() {
49
-		jsglService.findBykey($stateParams.id).then(function(data){
50
-			$scope.jsgl = data;
51
-	    },function(data){
52
-	        console.log(data);
53
-	    });
54
-	}
55
-
56
-	if (null != id) {
57
-    	if (butType == "show") {//查看
58
-    		isNotEdit = true;
59
-    		isEdit = true;
60
-        } else {
61
-        	isEdit = true;
62
-        }
63
-    	$scope.loadData();
64
-    }
65
-	
66
-	// 返回.
67
-    $scope.retList = function () {
68
-        if ($rootScope.previousState_name != '') {
69
-        	$rootScope.back();
70
-        } else {
71
-        	$state.go('app.business.rkjslist');
72
-        }
73
-    }
74
-})

+ 0 - 0
src/main/resources/static/app/business/jsgl/view/ckjs-edit.html


+ 0 - 93
src/main/resources/static/app/business/jsgl/view/ckjs-list.html

@@ -1,93 +0,0 @@
1
-<!-- MAIN CONTENT -->
2
-<div id="content">
3
-    <!-- widget grid -->
4
-    <section widget-grid id="widget-grid">
5
-        <div class="row">
6
-            <article class="col-sm-12">
7
-
8
-                <div jarvis-widget id="standard-datatable-widget" data-widget-color="darken" data-widget-editbutton="false">
9
-                    <header>
10
-                        <span class="widget-icon"> <i class="fa fa-table"></i> </span>
11
-                        <h2>出库结算列表 </h2>
12
-                    </header>
13
-                    <div>
14
-                        <div class="widget-body no-padding">
15
-                        <div id="DataTables_Table_1_wrapper" class="dataTables_wrapper form-inline no-footer">
16
-							<div class="dt-toolbar">
17
-								<div class="col-xs-12 col-sm-9">
18
-									<div class="form-group">
19
-										<label>
20
-											<select ng-model="search.houseId" class="form-control input-sm" 
21
-												ng-options="store.storehouseId as store.storehouseName for store in storelist" 
22
-												ng-change="loadWare(search.houseId)">
23
-												<option value="">--仓房名称--</option>
24
-											</select>&emsp;
25
-										</label>
26
-										<label>
27
-											<select ng-model="search.wareId" class="form-control input-sm" 
28
-												ng-options="ware.warehouseId as ware.warehouseName for ware in warelist">
29
-												<option value="">--货位名称--</option>
30
-											</select>&emsp;
31
-										</label>
32
-										<a class="btn btn-default btn-sm" ng-click="loadData()">
33
-										<i class="fa fa-search"></i>&nbsp;查&nbsp;询</a>
34
-									</div>
35
-								</div>
36
-
37
-								<div class="col-sm-3 col-xs-6 hidden-xs">
38
-									<div class="dataTables_length">
39
-										<label>每页显示 <select ng-model="pageInfo.pageSize" ng-change="loadData()"
40
-															ng-options="num as num for num in [10,25,50,100]"
41
-															class="form-control input-sm"></select> 条
42
-										</label>
43
-									</div>
44
-								</div>
45
-							</div>
46
-
47
-
48
-						<table class="table table-striped table-bordered table-hover" width="100%">
49
-                        <thead>
50
-	                        <tr>
51
-	                            <th data-hide="phone">序号</th>
52
-								<th data-class="expand">合同号</th>
53
-								<th data-class="expand">仓房名称</th>
54
-								<th data-class="expand">货位名称</th>
55
-	                            <th data-class="expand">明细品种</th>
56
-	                            <th data-class="expand">本次结算数量</th>
57
-	                            <th data-hide="expand">本次结算单价</th>
58
-	                            <th data-hide="expand">本次结算金额</th>
59
-	                            <th data-hide="expand">本次结算时间</th>
60
-	                            <th data-hide="phone,tablet"> 操作</th>
61
-	                        </tr>
62
-                        </thead>
63
-                        
64
-                        <tbody>
65
-                        	<tr ng-repeat="data in pageInfo.list">
66
-								<th align="center">{{$index + 1 + (pageInfo.pageNum-1) * pageInfo.pageSize}}</th>
67
-								<td>{{data.htbh}}</td>
68
-								<td>{{storehouseObj[data.houseId].storehouseName}}</td>
69
-								<td>{{warehouseObj[data.warehouseId].warehouseName}}</td>
70
-								<td>{{dicData[data.mxpz]}}</td>
71
-								<td>{{data.bcjssl}}</td>
72
-								<td>{{data.bcjsdj}}</td>
73
-								<td>{{data.bcjsje}}</td>
74
-								<td>{{data.bcjssj}}</td>
75
-								<td>
76
-									<a href-void ng-click="edit(data.id, 'show')"><i class="fa fa-info-circle"></i>查看</a>&nbsp;&nbsp;
77
-                        			<a has-permission="517" href-void ng-click="edit(data.id, 'update')"><i class="fa fa-edit"></i>修改</a>&nbsp;&nbsp;
78
-                        			<a has-permission="518" href-void ng-click="remove(data.id)"><i class="fa fa-trash-o"></i>删除</a>
79
-                        		</td>
80
-                        	</tr>
81
-                        </tbody>
82
-
83
-                        </table>
84
-							<div smart-include="app/layout/partials/page.tpl.html"></div>
85
-						</div>
86
-                    	</div>
87
-                    </div>
88
-                </div>
89
-            </article>
90
-        </div>
91
-    </section>
92
-</div>
93
-

+ 61 - 29
src/main/resources/static/app/business/jsgl/view/rkjs-edit.html

@@ -12,7 +12,7 @@
12 12
 									<a href-void class="btn btn-default btn-xs" ng-click="retList()">
13 13
 										<i class="fa fa-angle-left"></i>&nbsp;返回&nbsp;
14 14
 									</a>
15
-									&nbsp;<strong>入库结算详情</strong>
15
+									&nbsp;<strong>{{top_title}}</strong>
16 16
 									<span class="pull-right font-xs">带*的部分必须填写</span>
17 17
 								</header>
18 18
 								
@@ -22,7 +22,7 @@
22 22
                                         <section class="col col-4">
23 23
                                             <label class="label">合同信息<span style="color: red;">*</span></label>
24 24
                                             <label class="select"> 
25
-                                            	<select ng-model="jsgl.htid" ng-disabled="isNotEdit" name="htid"
25
+                                            	<select ng-model="jsgl.htid" ng-disabled="isEdit" name="htid"
26 26
                                              	ng-options="enum.enumid as enum.enumname for enum in dicDataList[5498]" required >
27 27
                                              		<option value="">--请选择合同--</option><i></i>
28 28
                                              	</select><i></i>
@@ -47,7 +47,7 @@
47 47
                                         <section class="col col-4">
48 48
                                             <label class="label">仓房名称<span style="color: red;">*</span></label> 
49 49
                                             <label class="select"> 
50
-                                            	<select ng-model="jsgl.houseId" ng-disabled="isNotEdit" name="houseId" 
50
+                                            	<select ng-model="jsgl.houseId" ng-disabled="true" name="houseId" ng-change="loadWare(jsgl.houseId)"
51 51
                                              	ng-options="store.storehouseId as store.storehouseName for store in store_tank_list" required >
52 52
                                              		<option value="">--请选择--</option><i></i>
53 53
                                              	</select><i></i>
@@ -56,8 +56,8 @@
56 56
 										<section class="col col-4">
57 57
                                             <label class="label">货位名称<span style="color: red;">*</span></label>
58 58
                                             <label class="select"> 
59
-                                            	<select ng-model="jsgl.warehouseId" ng-disabled="isNotEdit" name="warehouseId" 
60
-                                             	ng-options="ware.warehouseId as ware.warehouseName for ware in warelist" required >
59
+                                            	<select ng-model="jsgl.warehouseId" ng-disabled="true" name="warehouseId" 
60
+                                             	ng-options="ware.warehouseId as ware.warehouseName for ware in warehouseList" required >
61 61
                                              		<option value="">--请选择--</option><i></i>
62 62
                                              	</select><i></i>
63 63
                                          	</label>
@@ -65,8 +65,8 @@
65 65
                                         <section class="col col-4">
66 66
                                             <label class="label">粮油品种<span style="color: red;">*</span></label>
67 67
                                             <label class="select"> 
68
-                                            	<select ng-model="jsgl.lypz" ng-disabled="isNotEdit" name="lypz" 
69
-                                             	ng-options="ware.warehouseId as ware.warehouseName for ware in warelist" required >
68
+                                            	<select ng-model="jsgl.lypz" ng-disabled="true" name="lypz" ng-change="getMxpz()"
69
+                                             	ng-options="enum.enumid as enum.enumname for enum in dicDataList[1061]" required >
70 70
                                              		<option value="">--请选择--</option><i></i>
71 71
                                              	</select><i></i>
72 72
                                          	</label>
@@ -118,11 +118,23 @@
118 118
                                     	<section class="col col-4">
119 119
                                             <label class="label">本次结算时间<span style="color: red;">*</span></label> 
120 120
                                             <label class="input"> 
121
-                                                <input type="text" ng-model="jsgl.bcjssl" ng-readonly="isNotEdit" required
121
+                                                <input type="text" ng-model="jsgl.bcjssj" ng-readonly="isNotEdit" required
122 122
                                                 name="yjssl" placeholder="" onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
123 123
                                             </label>
124 124
                                         </section>
125 125
                                     </div>
126
+                                    <div class="row">
127
+                                        <section class="col col-4">
128
+                                            <label class="label">本次结算方式<span style="color: red;">*</span></label>
129
+                                            <label class="select"> 
130
+                                            	<select ng-model="jsgl.bcjsfs" ng-disabled="isNotEdit" name="bcjsfs" required >
131
+                                             		<option value="">--请选择--</option>
132
+                                             		<option value="0">现金</option>
133
+                                             		<option value="1">转账</option>
134
+                                             	</select>
135
+                                         	</label>
136
+                                        </section>
137
+                                    </div>
126 138
                                 </fieldset>
127 139
                                 <header><strong>发票信息</strong></header>
128 140
                                 <fieldset>
@@ -130,22 +142,44 @@
130 142
                                         <section class="col col-12">
131 143
                                             <label class="label">连续发票号码填写<span style="color: red;">*</span></label>
132 144
                                             <label class="input"> 
133
-                                                <input type="text" ng-model="jsgl.fpStart" ng-readonly="isNotEdit" required
134
-                                                name="fpStart" placeholder="" />
135
-                                            </label>——
136
-                                            <label class="input"> 
137
-                                                <input type="text" ng-model="jsgl.fpEnd" ng-readonly="isNotEdit" required
138
-                                                name="fpEnd" /><span style="color: red;">说明:连续发票号码,请填写第一张和最后一张即可</span>
145
+                                            	<div>
146
+                                            	<table border="0">
147
+                                            	    <tr>
148
+                                            	        <td>
149
+                                            	             <input type="text" ng-model="jsgl.fpStart" ng-readonly="isNotEdit" required name="fpStart" placeholder="" />
150
+                                            	        </td>
151
+                                            	        <td><span>&nbsp;——&nbsp;</span></td>
152
+                                            	        <td>
153
+                                            	             <input type="text" ng-model="jsgl.fpEnd" ng-readonly="isNotEdit" required name="fpEnd" />
154
+                                            	        </td>
155
+                                            	        <td><span style="color: red;">&nbsp;&nbsp;&nbsp;&nbsp;说明:连续发票号码,请填写第一张和最后一张即可</span></td>
156
+                                            	    </tr>
157
+                                            	</table>
158
+                                            	</div>
139 159
                                             </label>
140 160
                                         </section>
141 161
                                     </div>
142 162
                                     <section>
143 163
                                         <label class="label">发票号码填写</label>
144
-                                        <label class="textarea"> <textarea
145
-                                            rows="5" ng-model="drugInfo.cctj" name="cctj" ng-disabled="issyz"
146
-                                            oninput="if(value.length>255) value=value.slice(0,255)" placeholder="多个发票号码填写,请用英文近号进行间隔。例如:1234567890,123456788"></textarea>
164
+                                        <label class="textarea textarea-resizable"> 
165
+                                          <textarea
166
+                                            rows="5" ng-model="drugInfo.cctj" name="cctj" ng-disabled="issyz" class="custom-scroll"
167
+                                            oninput="if(value.length>255) value=value.slice(0,255)" placeholder="多个发票号码填写,请用英文近号进行间隔。例如:1234567890,123456788,最大255个字符">
168
+                                          </textarea>
147 169
                                         </label>
148 170
                                     </section>
171
+                                    <div class="row">
172
+                                        <section class="col col-4">
173
+                                        <label class="label">发票状态</label>
174
+                                        <label class="select"> 
175
+                                        	<select ng-model="jsgl.fpzt" ng-disabled="isNotEdit" name="fpzt">
176
+                                         		<option value="">--请选择--</option>
177
+                                         		<option value="0">作废</option>
178
+                                         		<option value="1">正常</option>
179
+                                         	</select>
180
+                                     	</label>
181
+                                    </section>
182
+                                    </div>
149 183
                                 </fieldset>
150 184
                                 <header><strong>收付款信息</strong></header>
151 185
                                 <fieldset>
@@ -153,21 +187,21 @@
153 187
                                         <section class="col col-4">
154 188
                                             <label class="label">收付款人<span style="color: red;">*</span></label>
155 189
                                             <label class="input"> 
156
-                                                <input class="form-control" type="text" ng-model="jsgl.sfkr" ng-readonly="isNotEdit"
190
+                                                <input class="form-control" type="text" ng-model="jsgl.sfkr" ng-readonly="true"
157 191
                                                 name="sfkr" placeholder="" required />
158 192
                                             </label>
159 193
                                         </section>
160 194
                                         <section class="col col-4">
161 195
                                             <label class="label">开户行名称<span style="color: red;">*</span></label>
162 196
                                             <label class="input"> 
163
-                                                <input class="form-control" type="text" ng-model="jsgl.khhmc" ng-readonly="isNotEdit"
197
+                                                <input class="form-control" type="text" ng-model="jsgl.khhmc" ng-readonly="true"
164 198
                                                 name="khhmc" placeholder="" required />
165 199
                                             </label>
166 200
                                         </section>
167 201
                                         <section class="col col-4">
168 202
                                             <label class="label">开户行号<span style="color: red;">*</span></label>
169 203
                                             <label class="input"> 
170
-                                                <input type="text" ng-model="jsgl.khhh" ng-readonly="isNotEdit" required
204
+                                                <input type="text" ng-model="jsgl.khhh" ng-readonly="true" required
171 205
                                                 name="khhh" placeholder="" />
172 206
                                             </label>
173 207
                                         </section>
@@ -176,22 +210,20 @@
176 210
                                         <section class="col col-4">
177 211
                                             <label class="label">银行账号<span style="color: red;">*</span></label>
178 212
                                             <label class="input"> 
179
-                                                <input class="form-control" type="text" ng-model="jsgl.yhzh" ng-readonly="isNotEdit"
213
+                                                <input class="form-control" type="text" ng-model="jsgl.yhzh" ng-readonly="true"
180 214
                                                 name="yhzh" placeholder="" required />
181 215
                                             </label>
182 216
                                         </section>
183
-                                        <section class="col col-4">
217
+                                        <section class="col col-4" ng-hide="jslx=='1'">
184 218
                                             <label class="label">收款人身份证号</label>
185 219
                                             <label class="input"> 
186
-                                                <input class="form-control" type="text" ng-model="jsgl.skrsfzh" ng-readonly="isNotEdit"
187
-                                                name="skrsfzh" placeholder="" />
220
+                                                <input class="form-control" type="text" ng-model="jsgl.skrsfzh" ng-readonly="true" name="skrsfzh" placeholder="" />
188 221
                                             </label>
189 222
                                         </section>
190
-                                        <section class="col col-4">
223
+                                        <section class="col col-4" ng-hide="jslx=='1'">
191 224
                                             <label class="label">付款单位<span style="color: red;">*</span></label>
192 225
                                             <label class="input"> 
193
-                                                <input type="text" ng-model="jsgl.fkdw" ng-readonly="isNotEdit" required
194
-                                                name="fkdw" placeholder="" />
226
+                                                <input type="text" ng-model="jsgl.fkdw" name="fkdw" ng-readonly="isNotEdit" required placeholder="" />
195 227
                                             </label>
196 228
                                         </section>
197 229
                                     </div>
@@ -199,9 +231,9 @@
199 231
 
200 232
                                 <div><!--class="form-actions"-->
201 233
                                     <footer class="text-align-center">
202
-                                        <button type="button" class="btn btn-primary" ng-hide="isNotEdit" ng-click="save('0')">保存</button>
203
-                                        <button type="button" class="btn btn-primary" ng-hide="isNotEdit" ng-click="save('1')">提交</button>
204 234
                                         <button type="button" class="btn btn-default" ng-click="retList()">取消</button>
235
+                                        <button type="button" class="btn btn-primary" ng-hide="isNotEdit" ng-click="save('1')">提交</button>
236
+                                        <button type="button" class="btn btn-primary" ng-hide="isNotEdit" ng-click="save('0')">保存</button>
205 237
                                     </footer>
206 238
                                 </div>
207 239
                             </form>

+ 3 - 3
src/main/resources/static/app/business/jsgl/view/rkjs-list.html

@@ -8,7 +8,7 @@
8 8
                 <div jarvis-widget id="standard-datatable-widget" data-widget-color="darken" data-widget-editbutton="false">
9 9
                     <header>
10 10
                         <span class="widget-icon"> <i class="fa fa-table"></i> </span>
11
-                        <h2>入库结算列表 </h2>
11
+                        <h2>{{top_title}} </h2>
12 12
                     </header>
13 13
                     <div>
14 14
                         <div class="widget-body no-padding">
@@ -28,7 +28,7 @@
28 28
 										</label>
29 29
 										<label>
30 30
 											<select ng-model="search.wareId" class="form-control input-sm" 
31
-												ng-options="ware.warehouseId as ware.warehouseName for ware in warelist">
31
+												ng-options="ware.warehouseId as ware.warehouseName for ware in warehouseList">
32 32
 												<option value="">--货位名称--</option>
33 33
 											</select>&emsp;
34 34
 										</label>
@@ -69,7 +69,7 @@
69 69
 								<th align="center">{{$index + 1 + (pageInfo.pageNum-1) * pageInfo.pageSize}}</th>
70 70
 								<td>{{data.htbh}}</td>
71 71
 								<td>{{storehouseObj[data.houseId].storehouseName}}</td>
72
-								<td>{{warehouseObj[data.warehouseId].warehouseName}}</td>
72
+								<td>{{wares[data.warehouseId].warehouseName}}</td>
73 73
 								<td>{{dicData[data.mxpz]}}</td>
74 74
 								<td>{{data.bcjssl}}</td>
75 75
 								<td>{{data.bcjsdj}}</td>

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

@@ -1155,23 +1155,26 @@ angular.module('app.business')
1155 1155
         	data: {
1156 1156
         		title: '入库结算管理'
1157 1157
         	},
1158
+        	params:{
1159
+        		jslx: '0'
1160
+        	},
1158 1161
         	views: {
1159 1162
         		"content@app": {
1160
-        			controller: 'rkjsCtrl',
1161
-        			templateUrl: 'app/business/jsgl/view/rkjs-list.html'
1163
+        			controller: 'jsglCtrl',
1164
+        			templateUrl: 'app/business/jsgl/view/jsgl-list.html'
1162 1165
         		}
1163 1166
         	}
1164 1167
         })
1165 1168
 
1166 1169
         .state('app.business.rkjslist.edit', {
1167
-            url: '/business/rkjslist/edit/:id/:butType',
1170
+            url: '/business/rkjslist/edit/:id/:butType/:jslx',
1168 1171
             data: {
1169 1172
                 title: '入库结算详情'
1170 1173
             },
1171 1174
             views: {
1172 1175
                 "content@app": {
1173
-                    controller: 'rkjsEditCtrl',
1174
-                    templateUrl: 'app/business/jsgl/view/rkjs-edit.html'
1176
+                    controller: 'jsglEditCtrl',
1177
+                    templateUrl: 'app/business/jsgl/view/jsgl-edit.html'
1175 1178
                 }
1176 1179
             }
1177 1180
         })
@@ -1181,10 +1184,13 @@ angular.module('app.business')
1181 1184
         	data: {
1182 1185
         		title: '出库结算管理'
1183 1186
         	},
1187
+        	params:{
1188
+        		jslx: '1'
1189
+        	},
1184 1190
         	views: {
1185 1191
         		"content@app": {
1186
-        			controller: 'ckjsCtrl',
1187
-        			templateUrl: 'app/business/jsgl/view/ckjs-list.html'
1192
+        			controller: 'jsglCtrl',
1193
+        			templateUrl: 'app/business/jsgl/view/jsgl-list.html'
1188 1194
         		}
1189 1195
         	}
1190 1196
         })
@@ -1196,8 +1202,8 @@ angular.module('app.business')
1196 1202
             },
1197 1203
             views: {
1198 1204
                 "content@app": {
1199
-                    controller: 'ckjsEditCtrl',
1200
-                    templateUrl: 'app/business/jsgl/view/ckjs-edit.html'
1205
+                    controller: 'jsglEditCtrl',
1206
+                    templateUrl: 'app/business/jsgl/view/jsgl-edit.html'
1201 1207
                 }
1202 1208
             }
1203 1209
         })

+ 20 - 20
src/main/resources/static/app/intelligent/fumigation/controller/fumHomeWorkCtrl.js

@@ -215,16 +215,16 @@ angular.module('app.intelligent')
215 215
         },"不能填写无,暂无,空等选项!");
216 216
         
217 217
         // 自定义验证:散气日期
218
-        $.validator.addMethod("sqrq",function(value,element, params) {
219
-        	var xzkssj = $filter('date')($scope.fumigation.fumigationStart.substring(0,10), "yyyy-MM-dd");
220
-        	var xzjssj = $filter('date')($scope.fumigation.fumigationEnd.substring(0,10), "yyyy-MM-dd");
221
-        	var sqrq = $filter('date')(value, "yyyy-MM-dd");
222
-            if(sqrq >= xzjssj || sqrq <= xzkssj){
223
-                return this.optional(element)|| false;
224
-            }else{
225
-                return this.optional(element)|| true;
226
-            }
227
-        },"散气日期必须在熏蒸开始时间与结束时间范围内,且不可等于!");
218
+//        $.validator.addMethod("sqrq",function(value,element, params) {
219
+//        	var xzkssj = $filter('date')($scope.fumigation.fumigationStart.substring(0,10), "yyyy-MM-dd");
220
+//        	var xzjssj = $filter('date')($scope.fumigation.fumigationEnd.substring(0,10), "yyyy-MM-dd");
221
+//        	var sqrq = $filter('date')(value, "yyyy-MM-dd");
222
+//            if(sqrq >= xzjssj || sqrq <= xzkssj){
223
+//                return this.optional(element)|| false;
224
+//            }else{
225
+//                return this.optional(element)|| true;
226
+//            }
227
+//        },"散气日期必须在熏蒸开始时间与结束时间范围内,且不可等于!");
228 228
 
229 229
         // 返回.
230 230
         $scope.retList = function () {
@@ -524,16 +524,16 @@ angular.module('app.intelligent')
524 524
         },"不能填写无,暂无,空等选项!");
525 525
         
526 526
         // 自定义验证
527
-        $.validator.addMethod("czsjzysj",function(value,element, params) {
528
-        	var sqrq = $filter('date')($scope.fumigationProcess.perforatedDate.substring(0,10), "yyyy-MM-dd");
529
-        	var xzjssj = $filter('date')($scope.fumigation.fumigationEnd.substring(0,10), "yyyy-MM-dd");
530
-        	var czsjzysj = $filter('date')($("input[name='residueCollectionTime']").val(), "yyyy-MM-dd");
531
-            if(czsjzysj <= sqrq || czsjzysj >= xzjssj){
532
-                return this.optional(element)|| false;
533
-            }else{
534
-                return this.optional(element)|| true;
535
-            }
536
-        },"残渣收集作业时间必须大于散气日期!");
527
+//        $.validator.addMethod("czsjzysj",function(value,element, params) {
528
+//        	var sqrq = $filter('date')($scope.fumigationProcess.perforatedDate.substring(0,10), "yyyy-MM-dd");
529
+//        	var xzjssj = $filter('date')($scope.fumigation.fumigationEnd.substring(0,10), "yyyy-MM-dd");
530
+//        	var czsjzysj = $filter('date')($("input[name='residueCollectionTime']").val(), "yyyy-MM-dd");
531
+//            if(czsjzysj <= sqrq || czsjzysj >= xzjssj){
532
+//                return this.optional(element)|| false;
533
+//            }else{
534
+//                return this.optional(element)|| true;
535
+//            }
536
+//        },"残渣收集作业时间必须大于散气日期!");
537 537
 
538 538
         // 返回.
539 539
         $scope.retList = function () {