瀏覽代碼

稻谷登统表脂肪酸开发和成品粮生产年月开发

admin 3 年之前
父節點
當前提交
f87307ef61

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

@@ -99,7 +99,7 @@ angular.module('app.storage').controller("productCtrl", function($scope, $rootSc
99 99
 	$scope.loadDataById = function(id) {
100 100
 		productService.edit(id).then(function(data){
101 101
 			$scope.productEdit = data;
102
-			$scope.productEdit.productionDate = $filter('date')(data.productionDate, "yyyy-MM-dd");
102
+			$scope.productEdit.productionDate = $filter('date')(data.productionDate, "yyyy-MM");
103 103
 			$scope.productEdit.recordDate = $filter('date')(data.recordDate, "yyyy-MM-dd");
104 104
 			$scope.productEdit.createTime = $filter('date')(data.createTime, "yyyy-MM-dd HH:mm:ss");
105 105
 			$scope.productEdit.houseId = Number($scope.productEdit.houseId);
@@ -376,7 +376,8 @@ angular.module('app.storage').controller("productCtrl", function($scope, $rootSc
376 376
 
377 377
 				$("input[name='productionDate']").each(function (j, item) {
378 378
 					if (item.value != '' && item.value != null && typeof item.value != 'undefined') {
379
-						$scope.productEdit.productionDate = $filter('date')(item.value, "yyyy-MM-dd HH:mm:ss");
379
+						//item.realValue这个值是专门用的这个属性,
380
+						$scope.productEdit.productionDate = $filter('date')(item.realValue, "yyyy-MM-dd HH:mm:ss");
380 381
 					}
381 382
 				});
382 383
 				if ($scope.productEdit.storage == 1) {

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

@@ -150,13 +150,13 @@
150 150
 													</label>
151 151
 												</th>
152 152
 												<th width='15%'>
153
-													<label class="label txt-bg-red">生产日期:</label>
153
+													<label class="label txt-bg-red">生产年月:<span style="color: red;">*</span></label>
154 154
 												</th>
155 155
 												<th width='15%'>
156 156
 													<label class="input">
157 157
 														<label class="input">
158 158
 															<input type="text" name="productionDate" ng-model="productEdit.productionDate"
159
-																   onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd'})">
159
+																   onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM'})" required />
160 160
 														</label>
161 161
 													</label>
162 162
 												</th>

+ 3 - 1
src/main/resources/static/app/storage/registrationTable/views/rice-list.html

@@ -77,7 +77,7 @@
77 77
                                         <th data-class="expand" style="text-align:center;vertical-align:middle;" rowspan="3">生产年度</th>
78 78
                                         <th data-class="expand" style="text-align:center;vertical-align:middle;" rowspan="3">入库日期</th>
79 79
                                         <th data-class="expand" style="text-align:center;vertical-align:middle;" rowspan="3">入库数量(t)</th>
80
-                                        <th data-class="expand" style="text-align:center;vertical-align:middle;" colspan="17">入库质量标准</th>
80
+                                        <th data-class="expand" style="text-align:center;vertical-align:middle;" colspan="18">入库质量标准</th>
81 81
                                         <th data-class="expand" style="text-align:center;vertical-align:middle;" rowspan="3">存储方式</th>
82 82
                                     </tr>
83 83
                                     <tr>
@@ -91,6 +91,7 @@
91 91
                                         <th data-class="expand" style="text-align:center;vertical-align:middle;" colspan="6">不完善粒%</th>
92 92
                                         <th data-class="expand" style="text-align:center;vertical-align:middle;" rowspan="2">黄粒米<br>%</th>
93 93
                                         <th data-class="expand" style="text-align:center;vertical-align:middle;" rowspan="2">色泽气味</th>
94
+                                        <th data-class="expand" style="text-align:center;vertical-align:middle;" rowspan="2">脂肪酸值</th>
94 95
                                     </tr>
95 96
                                     <tr>
96 97
                                         <th data-class="expand" style="text-align:center;vertical-align:middle;">总量</th>
@@ -134,6 +135,7 @@
134 135
                                         <td width="3%" style="text-align:center;vertical-align:middle;">{{rice.sml}}</td>
135 136
                                         <td width="3%" style="text-align:center;vertical-align:middle;">{{rice.hlm}}</td>
136 137
                                         <td width="4%" style="text-align:center;vertical-align:middle;">{{rice.szqw}}</td>
138
+                                        <td width="4%" style="text-align:center;vertical-align:middle;">{{rice.zfsz}}</td>
137 139
                                         <td width="4%" style="text-align:center;vertical-align:middle;">{{rice.ccfs}}</td>
138 140
                                     </tr>
139 141
                                     </tbody>