Procházet zdrojové kódy

储存超期报警-添加提示

hanqingsong před 1 rokem
rodič
revize
ca0875e4b4

+ 4 - 2
src/main/resources/static/app/business/device/controller/deviceStorageCtrl.js

@@ -124,6 +124,8 @@ angular.module('app.business').controller("deviceStorageCtrl", function ($scope,
124 124
         $scope.isNotEdit = false;
125 125
         $scope.dSbxxsjy.djr = $rootScope.userInfo.realName; // 创建人
126 126
         $scope.dSbxxsjy.createDate = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 创建时间
127
+        $scope.dSbxxsjy.refresher = $rootScope.userInfo.realName; // 提交人
128
+        $scope.dSbxxsjy.refreshTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
127 129
         $scope.changeDeviceType();
128 130
     } else if ($stateParams.isNotEdit === 'true') { // 查看
129 131
         $scope.isNotEdit = true;
@@ -149,8 +151,8 @@ angular.module('app.business').controller("deviceStorageCtrl", function ($scope,
149 151
         $scope.dSbxxsjy.fzd = Number($scope.dSbxxsjy.fzd);
150 152
         $scope.dSbxxsjy.sbazr = Number($scope.dSbxxsjy.sbazr);
151 153
         $scope.dSbxxsjy.shrmc = Number($scope.dSbxxsjy.shrmc);
152
-        $scope.dSbxxsjy.refresher = $rootScope.userInfo.realName; // 更新
153
-        $scope.dSbxxsjy.refreshTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 更新时间
154
+        $scope.dSbxxsjy.refresher = $rootScope.userInfo.realName; // 提交
155
+        $scope.dSbxxsjy.refreshTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
154 156
         if ($scope.dSbxxsjy.ssfl === '3') { // 器材
155 157
             $scope.ShowQCType = false;
156 158
             $scope.ShowSBType = true;

+ 32 - 0
src/main/resources/static/app/business/device/views/deviceStorage-edit.html

@@ -222,6 +222,22 @@
222 222
                                                 </label>
223 223
                                             </section>
224 224
                                         </div>
225
+                                        <div class="row">
226
+                                            <section class="col col-3">
227
+                                                <label class="input">
228
+                                                    <label class="label">提交人:</label>
229
+                                                    <input type="text" ng-model="dSbxxsjy.refresher" ng-disabled="true">
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="dSbxxsjy.refreshTime" name="refreshTime"
236
+                                                           onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})"
237
+                                                           ng-disabled="true">
238
+                                                </label>
239
+                                            </section>
240
+                                        </div>
225 241
                                     </div>
226 242
                                     <!--器材-->
227 243
                                     <div ng-hide="ShowQCType">
@@ -347,6 +363,22 @@
347 363
                                                 </label>
348 364
                                             </section>
349 365
                                         </div>
366
+                                        <div class="row">
367
+                                            <section class="col col-3">
368
+                                                <label class="input">
369
+                                                    <label class="label">提交人:</label>
370
+                                                    <input type="text" ng-model="dSbxxsjy.refresher" ng-disabled="true">
371
+                                                </label>
372
+                                            </section>
373
+                                            <section class="col col-3">
374
+                                                <label class="label">提交时间:</label>
375
+                                                <label class="input">
376
+                                                    <input type="text" ng-model="dSbxxsjy.refreshTime" name="refreshTime"
377
+                                                           onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})"
378
+                                                           ng-disabled="true">
379
+                                                </label>
380
+                                            </section>
381
+                                        </div>
350 382
                                     </div>
351 383
                                 </fieldset>
352 384
                                 <div>

+ 2 - 1
src/main/resources/static/app/warnAndAlarm/reservePeriod/controller/setUpListCtrl.js

@@ -31,7 +31,8 @@ angular.module('app.warnAndAlarm').controller('setUpListCtrl', function ($scope,
31 31
         setUp.knccnx = tds[3].innerText;
32 32
         // 库内设置年,必须小于等于市级
33 33
         if (parseInt(setUp.knccnx) > setUp.sptccnx) {
34
-            alert('库内设置年,必须小于等于市级');
34
+            alert('库内储存年限设置,必须小于等于市级储存年限设置');
35
+            setUp.knccnx = null;
35 36
         } else {
36 37
             reservePeriodService.saveSetUpData(setUp).then(function (data) {
37 38
                 if (data.retCode === '200') {

+ 2 - 1
src/main/resources/static/app/warnAndAlarm/reservePeriod/views/setUp-list.html

@@ -15,7 +15,8 @@
15 15
                         <div class="widget-body no-padding">
16 16
                             <div id="DataTables_Table_1_wrapper" class="dataTables_wrapper form-inline no-footer">
17 17
                                 <div class="dt-toolbar">
18
-                                    <div class="col-xs-12 col-sm-10"></div>
18
+                                    <div class="col-xs-12 col-sm-5"></div>
19
+                                    <div class="col-xs-12 col-sm-5"><span style="color: #5da8f7;text-align: right;">库内储存年限设置,必须小于等于市级储存年限设置</span></div>
19 20
                                     <div class="col-sm-2 col-xs-2 hidden-xs">
20 21
                                         <div class="dataTables_length">
21 22
                                             <label>每页显示 <select ng-model="pageInfo.pageSize" ng-change="loadData()"