Kaynağa Gözat

增加说明的弹出框

gaodd 2 yıl önce
ebeveyn
işleme
a3e835a06a

+ 193 - 1
src/main/resources/static/app/storage/profitlossStatement/controller/profitlossStatementAuditPassSaveCtrl.js

@@ -30,7 +30,8 @@ angular.module('app.business').controller("profitlossStatementAuditPassSaveCtrl"
30
 	         $scope.profitlossStatement.rksj = $filter('date')($scope.profitlossStatement.rksj, "yyyy-MM-dd hh:mm:ss");
30
 	         $scope.profitlossStatement.rksj = $filter('date')($scope.profitlossStatement.rksj, "yyyy-MM-dd hh:mm:ss");
31
 	         $scope.profitlossStatement.cksj = $filter('date')($scope.profitlossStatement.cksj, "yyyy-MM-dd hh:mm:ss");//出库时间为最后一车的出库时间
31
 	         $scope.profitlossStatement.cksj = $filter('date')($scope.profitlossStatement.cksj, "yyyy-MM-dd hh:mm:ss");//出库时间为最后一车的出库时间
32
 
32
 
33
-	            
33
+	         $scope.inputTime =  $scope.profitlossStatement.dycrksj;
34
+	         
34
 			 $scope.auditList = data.auditList;
35
 			 $scope.auditList = data.auditList;
35
 			 
36
 			 
36
 			 $scope.isAuditMsg = false; 
37
 			 $scope.isAuditMsg = false; 
@@ -51,6 +52,197 @@ angular.module('app.business').controller("profitlossStatementAuditPassSaveCtrl"
51
      }
52
      }
52
  	
53
  	
53
    
54
    
55
+	 /**
56
+		 * 实际损耗数量(kg) 详情
57
+		 */
58
+		$scope.getSjshslMtk = function(rksl,cksl) {
59
+			if(rksl != null && cksl != null){
60
+				var params = [];
61
+				params.rksl = rksl; //入库数量
62
+				params.cksl = cksl; //出库数量
63
+		        var uibModalInstance = $uibModal.open({
64
+		            size:'md',
65
+		            templateUrl: 'app/storage/profitlossStatement/views/sjshsl-list-model.html',
66
+		            controller: 'sjshslListModalCtrl',
67
+		            resolve: {
68
+		                // items是一个回调函数
69
+		                items: function () {
70
+		                    // 这个值会被模态框的控制器获取到
71
+		                    return params;
72
+		                }
73
+		            }
74
+		        });
75
+		        uibModalInstance.result.then(function (result) {
76
+		            if (result != null) {
77
+		            	
78
+		            }
79
+		            // 关闭模态框时刷新页面数据
80
+		        }, function (reason) {
81
+		            console.log(reason);
82
+		        });
83
+			}
84
+			
85
+	    }
86
+		
87
+		
88
+		/**
89
+		 * 入库水分
90
+		 */
91
+		
92
+		$scope.getRksfMtk = function(ch,hwh) {
93
+			
94
+			if($scope.inputTime != null && $scope.profitlossStatement.rksj != null && $scope.profitlossStatement.rksj != undefined){
95
+				var params = [];
96
+				params.ch = ch; //仓号
97
+				params.hwh = hwh; //货位号
98
+				params.dycrksj = $scope.inputTime; //第一车入库时间
99
+				params.zhycRksj = $scope.profitlossStatement.rksj; //封仓时间
100
+		        var uibModalInstance = $uibModal.open({
101
+		            size:'md',
102
+		            templateUrl: 'app/storage/profitlossStatement/views/keepDetailedAccountSfRk-list-model.html',
103
+		            controller: 'keepDetailListModalCtrl',
104
+		            resolve: {
105
+		                // items是一个回调函数
106
+		                items: function () {
107
+		                    // 这个值会被模态框的控制器获取到
108
+		                    return params;
109
+		                }
110
+		            }
111
+		        });
112
+		        uibModalInstance.result.then(function (result) {
113
+		            if (result != null) {
114
+		            }
115
+		            // 关闭模态框时刷新页面数据
116
+		        }, function (reason) {
117
+		            console.log(reason);
118
+		        });
119
+			}
120
+			
121
+	    }
122
+
123
+		/**
124
+		 * 入库杂质
125
+		 */
126
+		$scope.getRkzzMtk = function(ch,hwh) {
127
+			if($scope.inputTime != null && $scope.profitlossStatement.rksj != null && $scope.profitlossStatement.rksj != undefined){
128
+				var params = [];
129
+				params.ch = ch; //仓号
130
+				params.hwh = hwh; //货位号
131
+				params.dycrksj = $scope.inputTime; //第一车入库时间
132
+				params.zhycRksj = $scope.profitlossStatement.rksj; //最后一车入库时间
133
+				
134
+		        var uibModalInstance = $uibModal.open({
135
+		            size:'md',
136
+		            templateUrl: 'app/storage/profitlossStatement/views/keepDetailedAccountZzRk-list-model.html',
137
+		            controller: 'keepDetailListModalCtrl',
138
+		            resolve: {
139
+		                // items是一个回调函数
140
+		                items: function () {
141
+		                    // 这个值会被模态框的控制器获取到
142
+		                    return params;
143
+		                }
144
+		            }
145
+		        });
146
+		        uibModalInstance.result.then(function (result) {
147
+		            if (result != null) {
148
+		            }
149
+		            // 关闭模态框时刷新页面数据
150
+		        }, function (reason) {
151
+		            console.log(reason);
152
+		        });
153
+			}
154
+			
155
+	    }
156
+		
157
+		$scope.getRksfzzjlMtk = function(rksl,rksf,fczjsf,rkzz,fczjzz,rksfjl,rkzzjl) {
158
+			
159
+			//if(rksl != null && rksf != null && fczjsf != null && rkzz != null && fczjzz != null && rksfjl != null && rkzzjl != null){
160
+				/*var params = [];
161
+				params.rksl = rksl; //入库数量
162
+				params.rksf = rksf; //入库水分
163
+				params.fczjsf = fczjsf; //封仓自检水分
164
+				params.rkzz = rkzz; //入库杂质
165
+				params.fczjzz = fczjzz; //封仓自检杂质
166
+				params.rksfjl = rksfjl; //入库水分减量
167
+				params.rkzzjl = rkzzjl; //入库杂质减量
168
+				
169
+	*/	    
170
+			var params = [];
171
+			var uibModalInstance = $uibModal.open({
172
+		            size:'md',
173
+		            templateUrl: 'app/storage/profitlossStatement/views/rksfzz-list-model.html',
174
+		            controller: 'rksfzzlListModalCtrl',
175
+		            resolve: {
176
+		                // items是一个回调函数
177
+		                items: function () {
178
+		                    // 这个值会被模态框的控制器获取到
179
+		                    return params;
180
+		                }
181
+		            }
182
+		        });
183
+		        uibModalInstance.result.then(function (result) {
184
+		            if (result != null) {
185
+		            	
186
+		            }
187
+		            // 关闭模态框时刷新页面数据
188
+		        }, function (reason) {
189
+		            console.log(reason);
190
+		        });
191
+			//}
192
+			
193
+	    }
194
+		
195
+
196
+		$scope.tsMtk = function(type){
197
+			var params = [];
198
+			if(type != null){
199
+				if(type == 1){
200
+					params.ccsfzz = true;
201
+				}
202
+				if(type == 2){
203
+					params.dcbksh = true;
204
+				}
205
+				if(type == 3){
206
+					params.bgzrshde = true;
207
+				}
208
+				if(type == 4){
209
+					params.chsl = true;
210
+				}
211
+				if(type == 5){
212
+					params.sjccsh = true;
213
+				}
214
+				if(type == 6){
215
+					params.bgzrsh = true;
216
+				}
217
+				if(type == 7){
218
+					params.clsgdj = true;
219
+				}
220
+			}
221
+			
222
+			
223
+			
224
+			
225
+			var uibModalInstance = $uibModal.open({
226
+	            size:'md',
227
+	            templateUrl: 'app/storage/profitlossStatement/views/ccsfzz-list-model.html',
228
+	            controller: 'ccsfzzlListModalCtrl',
229
+	            resolve: {
230
+	                // items是一个回调函数
231
+	                items: function () {
232
+	                    // 这个值会被模态框的控制器获取到
233
+	                    return params;
234
+	                }
235
+	            }
236
+	        });
237
+	        uibModalInstance.result.then(function (result) {
238
+	            if (result != null) {
239
+	            	
240
+	            }
241
+	            // 关闭模态框时刷新页面数据
242
+	        }, function (reason) {
243
+	            console.log(reason);
244
+	        });
245
+		}
54
  	
246
  	
55
  	//返回
247
  	//返回
56
 	 $scope.retList = function () {
248
 	 $scope.retList = function () {

+ 193 - 0
src/main/resources/static/app/storage/profitlossStatement/controller/profitlossStatementAuditSaveCtrl.js

@@ -22,6 +22,7 @@ angular.module('app.business').controller("profitlossStatementAuditSaveCtrl", fu
22
 	}
22
 	}
23
 	
23
 	
24
 	//根据id加载数据
24
 	//根据id加载数据
25
+	$scope.inputTime = null;
25
 	 $scope.loadDataById = function(id) {
26
 	 $scope.loadDataById = function(id) {
26
 		 profitlossStatementService.getAuditById(id).then(function(data){
27
 		 profitlossStatementService.getAuditById(id).then(function(data){
27
 			 $scope.profitlossStatement = data.storageProfitlossStatement;
28
 			 $scope.profitlossStatement = data.storageProfitlossStatement;
@@ -36,6 +37,7 @@ angular.module('app.business').controller("profitlossStatementAuditSaveCtrl", fu
36
 				 $scope.isAuditMsg = false; 
37
 				 $scope.isAuditMsg = false; 
37
 			 }
38
 			 }
38
 			 
39
 			 
40
+			 $scope.inputTime =  $scope.profitlossStatement.dycrksj;
39
 			 
41
 			 
40
 	     },function(data){
42
 	     },function(data){
41
 	    	 console.log(data);
43
 	    	 console.log(data);
@@ -86,5 +88,196 @@ angular.module('app.business').controller("profitlossStatementAuditSaveCtrl", fu
86
 			}
88
 			}
87
 	         
89
 	         
88
 	    }
90
 	    }
91
+	    
92
+	    /**
93
+		 * 实际损耗数量(kg) 详情
94
+		 */
95
+		$scope.getSjshslMtk = function(rksl,cksl) {
96
+			if(rksl != null && cksl != null){
97
+				var params = [];
98
+				params.rksl = rksl; //入库数量
99
+				params.cksl = cksl; //出库数量
100
+		        var uibModalInstance = $uibModal.open({
101
+		            size:'md',
102
+		            templateUrl: 'app/storage/profitlossStatement/views/sjshsl-list-model.html',
103
+		            controller: 'sjshslListModalCtrl',
104
+		            resolve: {
105
+		                // items是一个回调函数
106
+		                items: function () {
107
+		                    // 这个值会被模态框的控制器获取到
108
+		                    return params;
109
+		                }
110
+		            }
111
+		        });
112
+		        uibModalInstance.result.then(function (result) {
113
+		            if (result != null) {
114
+		            	
115
+		            }
116
+		            // 关闭模态框时刷新页面数据
117
+		        }, function (reason) {
118
+		            console.log(reason);
119
+		        });
120
+			}
121
+			
122
+	    }
123
+		
124
+		/**
125
+		 * 入库水分
126
+		 */
127
+		
128
+		$scope.getRksfMtk = function(ch,hwh) {
129
+			
130
+			if($scope.inputTime != null && $scope.profitlossStatement.rksj != null && $scope.profitlossStatement.rksj != undefined){
131
+				var params = [];
132
+				params.ch = ch; //仓号
133
+				params.hwh = hwh; //货位号
134
+				params.dycrksj = $scope.inputTime; //第一车入库时间
135
+				params.zhycRksj = $scope.profitlossStatement.rksj; //封仓时间
136
+		        var uibModalInstance = $uibModal.open({
137
+		            size:'md',
138
+		            templateUrl: 'app/storage/profitlossStatement/views/keepDetailedAccountSfRk-list-model.html',
139
+		            controller: 'keepDetailListModalCtrl',
140
+		            resolve: {
141
+		                // items是一个回调函数
142
+		                items: function () {
143
+		                    // 这个值会被模态框的控制器获取到
144
+		                    return params;
145
+		                }
146
+		            }
147
+		        });
148
+		        uibModalInstance.result.then(function (result) {
149
+		            if (result != null) {
150
+		            }
151
+		            // 关闭模态框时刷新页面数据
152
+		        }, function (reason) {
153
+		            console.log(reason);
154
+		        });
155
+			}
156
+			
157
+	    }
158
+		
159
+		/**
160
+		 * 入库杂质
161
+		 */
162
+		$scope.getRkzzMtk = function(ch,hwh) {
163
+			if($scope.inputTime != null && $scope.profitlossStatement.rksj != null && $scope.profitlossStatement.rksj != undefined){
164
+				var params = [];
165
+				params.ch = ch; //仓号
166
+				params.hwh = hwh; //货位号
167
+				params.dycrksj = $scope.inputTime; //第一车入库时间
168
+				params.zhycRksj = $scope.profitlossStatement.rksj; //最后一车入库时间
169
+				
170
+		        var uibModalInstance = $uibModal.open({
171
+		            size:'md',
172
+		            templateUrl: 'app/storage/profitlossStatement/views/keepDetailedAccountZzRk-list-model.html',
173
+		            controller: 'keepDetailListModalCtrl',
174
+		            resolve: {
175
+		                // items是一个回调函数
176
+		                items: function () {
177
+		                    // 这个值会被模态框的控制器获取到
178
+		                    return params;
179
+		                }
180
+		            }
181
+		        });
182
+		        uibModalInstance.result.then(function (result) {
183
+		            if (result != null) {
184
+		            }
185
+		            // 关闭模态框时刷新页面数据
186
+		        }, function (reason) {
187
+		            console.log(reason);
188
+		        });
189
+			}
190
+			
191
+	    }
192
+		
193
+$scope.getRksfzzjlMtk = function(rksl,rksf,fczjsf,rkzz,fczjzz,rksfjl,rkzzjl) {
194
+			
195
+			//if(rksl != null && rksf != null && fczjsf != null && rkzz != null && fczjzz != null && rksfjl != null && rkzzjl != null){
196
+				/*var params = [];
197
+				params.rksl = rksl; //入库数量
198
+				params.rksf = rksf; //入库水分
199
+				params.fczjsf = fczjsf; //封仓自检水分
200
+				params.rkzz = rkzz; //入库杂质
201
+				params.fczjzz = fczjzz; //封仓自检杂质
202
+				params.rksfjl = rksfjl; //入库水分减量
203
+				params.rkzzjl = rkzzjl; //入库杂质减量
204
+				
205
+	*/	    
206
+			var params = [];
207
+			var uibModalInstance = $uibModal.open({
208
+		            size:'md',
209
+		            templateUrl: 'app/storage/profitlossStatement/views/rksfzz-list-model.html',
210
+		            controller: 'rksfzzlListModalCtrl',
211
+		            resolve: {
212
+		                // items是一个回调函数
213
+		                items: function () {
214
+		                    // 这个值会被模态框的控制器获取到
215
+		                    return params;
216
+		                }
217
+		            }
218
+		        });
219
+		        uibModalInstance.result.then(function (result) {
220
+		            if (result != null) {
221
+		            	
222
+		            }
223
+		            // 关闭模态框时刷新页面数据
224
+		        }, function (reason) {
225
+		            console.log(reason);
226
+		        });
227
+			//}
228
+			
229
+	    }
230
+
231
+
232
+$scope.tsMtk = function(type){
233
+	var params = [];
234
+	if(type != null){
235
+		if(type == 1){
236
+			params.ccsfzz = true;
237
+		}
238
+		if(type == 2){
239
+			params.dcbksh = true;
240
+		}
241
+		if(type == 3){
242
+			params.bgzrshde = true;
243
+		}
244
+		if(type == 4){
245
+			params.chsl = true;
246
+		}
247
+		if(type == 5){
248
+			params.sjccsh = true;
249
+		}
250
+		if(type == 6){
251
+			params.bgzrsh = true;
252
+		}
253
+		if(type == 7){
254
+			params.clsgdj = true;
255
+		}
256
+	}
257
+	
258
+	
259
+	
260
+	
261
+	var uibModalInstance = $uibModal.open({
262
+        size:'md',
263
+        templateUrl: 'app/storage/profitlossStatement/views/ccsfzz-list-model.html',
264
+        controller: 'ccsfzzlListModalCtrl',
265
+        resolve: {
266
+            // items是一个回调函数
267
+            items: function () {
268
+                // 这个值会被模态框的控制器获取到
269
+                return params;
270
+            }
271
+        }
272
+    });
273
+    uibModalInstance.result.then(function (result) {
274
+        if (result != null) {
275
+        	
276
+        }
277
+        // 关闭模态框时刷新页面数据
278
+    }, function (reason) {
279
+        console.log(reason);
280
+    });
281
+}
89
 });
282
 });
90
 
283