浏览代码

成品粮粮情和成品粮分仓保管账功能变更

fanxw 2 年之前
父节点
当前提交
80d3ba1de4

+ 1 - 0
src/main/resources/static/app/storage/grainCard/views/productGrain-add.html

@@ -206,6 +206,7 @@
206 206
                                                         <select name="ccfsName" ng-model="cerealsCard.ccfsName" required>
207 207
                                                             <option value="">--请选择--</option>
208 208
                                                             <option value="包装垛存">包装垛存</option>
209
+                                                            <option value="散存">包装垛存</option>
209 210
                                                             <option value="油罐">油罐</option>
210 211
                                                         </select><i></i>
211 212
                                                         <!--<select ng-model="cerealsCard.ccfsCode" name="ccfsCode"

+ 2 - 2
src/main/resources/static/app/storage/product/controller/productCtrl.js

@@ -399,7 +399,7 @@ angular.module('app.storage').controller("productCtrl", function($scope, $rootSc
399 399
 						$scope.productEdit.productionDate = $filter('date')(item.realValue, "yyyy-MM-dd HH:mm:ss");
400 400
 					}
401 401
 				});
402
-				if ($scope.productEdit.storage == 1) {
402
+				if ($scope.productEdit.storage != 2) {
403 403
 					$("input[name='recordDateJJ']").each(function (j, item) {
404 404
 						if (item.value != '' && item.value != null && typeof item.value != 'undefined') {
405 405
 							$scope.productEdit.recordDate = $filter('date')(item.value, "yyyy-MM-dd HH:mm:ss");
@@ -563,7 +563,7 @@ angular.module('app.storage').controller("productCtrl", function($scope, $rootSc
563 563
 			$scope.productEdit.levels = Number($scope.productEdit.levels);
564 564
 			$scope.productEdit.storehouseType = Number($scope.productEdit.storehouseType);
565 565
 			var nums = parseFloat($scope.productEdit.specifications);//规格
566
-			if($scope.productEdit.storage == "1"){//只有分件这样计算
566
+			if($scope.productEdit.storage != "2"){//只有分件这样计算
567 567
 				if($scope.productEdit.inventoryQuantity !== undefined && $scope.productEdit.inventoryQuantity !== ""){//入库
568 568
 					$scope.storage = ((parseFloat($scope.productEdit.inventoryQuantity)*1000) / (parseFloat(nums)*1000));
569 569
 				}

+ 8 - 7
src/main/resources/static/app/storage/product/views/product-edit.html

@@ -188,6 +188,7 @@
188 188
 														<select name="storage" ng-model="productEdit.storage" required>
189 189
 															<option value="">--请选择--</option>
190 190
 															<option value="1">包装垛存</option>
191
+															<option value="3">散存</option>
191 192
 															<option value="2">油罐</option>
192 193
 														</select> <i></i>
193 194
 													</label>
@@ -224,19 +225,19 @@
224 225
 										</table>
225 226
 
226 227
 										<!--存储方式切换--><!--分件-->
227
-										<table ng-show="productEdit.storage==1" class="table table-striped table-bordered table-hover" width="100%" style="padding: 0;" >
228
+										<table ng-show="productEdit.storage!=2" class="table table-striped table-bordered table-hover" width="100%" style="padding: 0;" >
228 229
 											<tr>
229 230
 												<th style="height:20px;" colspan="6"></th>
230 231
 											</tr>
231 232
 											<tr>
232 233
 												<th width='15%'>
233
-													<label class="label txt-bg-red">规格(吨):<span style="color: red;">*</span></label>
234
+													<label class="label txt-bg-red">规格(吨):</label>
234 235
 												</th>
235 236
 												<th width='15%'>
236 237
 													<label class="input">
237 238
 														<i class="input"></i>
238 239
 														<input type="text" name="specifications" ng-model="productEdit.specifications"
239
-															   onkeyup="this.value=this.value.match(/\d+(\.\d{0,5})?/) ? this.value.match(/\d+(\.\d{0,5})?/)[0] : '' " required/>
240
+															   onkeyup="this.value=this.value.match(/\d+(\.\d{0,5})?/) ? this.value.match(/\d+(\.\d{0,5})?/)[0] : '' " />
240 241
 													</label>
241 242
 												</th>
242 243
 												<th width='15%'>
@@ -271,13 +272,13 @@
271 272
 													</label>
272 273
 												</th>
273 274
 												<th width='15%'>
274
-													<label class="label txt-bg-red">入库数量(吨):</label>
275
+													<label class="label txt-bg-red">入库数量(吨):<span style="color: red;">*</span></label>
275 276
 												</th>
276 277
 												<th width='15%'>
277 278
 													<label class="input">
278 279
 														<i class="input"></i>
279 280
 														<input type="text" name="storageQuantity" ng-model="productEdit.storageQuantity" ng-blur="calculate()" ng-readonly="rksl"
280
-															   onkeyup="this.value=this.value.match(/\d+(\.\d{0,3})?/) ? this.value.match(/\d+(\.\d{0,3})?/)[0] : '' " />
281
+															   onkeyup="this.value=this.value.match(/\d+(\.\d{0,3})?/) ? this.value.match(/\d+(\.\d{0,3})?/)[0] : '' " required />
281 282
 													</label>
282 283
 												</th>
283 284
 												<th width='15%'>
@@ -302,13 +303,13 @@
302 303
 													</label>
303 304
 												</th>
304 305
 												<th width='15%'>
305
-													<label class="label txt-bg-red">出库数量(吨):</label>
306
+													<label class="label txt-bg-red">出库数量(吨):<span style="color: red;">*</span></label>
306 307
 												</th>
307 308
 												<th width='15%'>
308 309
 													<label class="input">
309 310
 														<i class="input"></i>
310 311
 														<input type="text" name="outboundQuantity" ng-model="productEdit.outboundQuantity" ng-blur="calculate()" ng-readonly="cksl"
311
-															   onkeyup="this.value=this.value.match(/\d+(\.\d{0,3})?/) ? this.value.match(/\d+(\.\d{0,3})?/)[0] : '' " />
312
+															   onkeyup="this.value=this.value.match(/\d+(\.\d{0,3})?/) ? this.value.match(/\d+(\.\d{0,3})?/)[0] : '' " required />
312 313
 													</label>
313 314
 												</th>
314 315
 												<th width='15%'>