#1 员工,用户信息合并master

Open
hanqingsong wants to merge 82 commits from depot-tianjin/master into depot-tianjin/dev-20241121
100 changed files with 4427 additions and 3520 deletions
  1. 7 1
      src/main/java/com/chinaitop/depot/LogRecodeFilter.java
  2. 26 4
      src/main/java/com/chinaitop/depot/system/mapper/UserOperationPageLogMapper.xml
  3. 20 0
      src/main/java/com/chinaitop/depot/system/model/UserInfoLog.java
  4. 20 0
      src/main/java/com/chinaitop/depot/system/model/UserOperationPageLog.java
  5. 4 3
      src/main/resources/static/app/app.js
  6. 5 19
      src/main/resources/static/app/basic/keeper/controller/keeperCtrl.js
  7. 23 3
      src/main/resources/static/app/basic/keeper/service/keeperService.js
  8. 26 13
      src/main/resources/static/app/basic/keeper/views/keeper-view.html
  9. 21 0
      src/main/resources/static/app/basic/warehouse/service/warehouseService.js
  10. 26 3
      src/main/resources/static/app/business/commonUtilService.js
  11. 1 1
      src/main/resources/static/app/business/customer/views/customer-edit.html
  12. 68 4
      src/main/resources/static/app/business/deliveryStorageNotice/controller/grainDeliveryStorageNoticeSaveCtrl.js
  13. 25 2
      src/main/resources/static/app/business/deliveryStorageNotice/controller/grainReservesNoticeCtrl.js
  14. 17 0
      src/main/resources/static/app/business/deliveryStorageNotice/service/deliveryStorageNoticeService.js
  15. 11 0
      src/main/resources/static/app/business/deliveryStorageNotice/views/grainDeliveryNotice-edit.html
  16. 11 0
      src/main/resources/static/app/business/deliveryStorageNotice/views/grainReservesNotice-list.html
  17. 6 0
      src/main/resources/static/app/business/device/controller/deviceCheckCtrl.js
  18. 9 5
      src/main/resources/static/app/business/device/controller/deviceGetCtrl.js
  19. 2 1
      src/main/resources/static/app/business/device/controller/deviceKeepCtrl.js
  20. 7 2
      src/main/resources/static/app/business/device/controller/deviceOutCtrl.js
  21. 178 176
      src/main/resources/static/app/business/device/controller/deviceRepairCtrl.js
  22. 10 2
      src/main/resources/static/app/business/device/controller/deviceStorageCtrl.js
  23. 5 1
      src/main/resources/static/app/business/device/views/deviceAccount-list.html
  24. 14 0
      src/main/resources/static/app/business/device/views/deviceAdd.html
  25. 4 0
      src/main/resources/static/app/business/device/views/deviceCheck-list.html
  26. 18 3
      src/main/resources/static/app/business/device/views/deviceGet-add.html
  27. 14 0
      src/main/resources/static/app/business/device/views/deviceGet-back.html
  28. 12 4
      src/main/resources/static/app/business/device/views/deviceKeep-add.html
  29. 4 0
      src/main/resources/static/app/business/device/views/deviceKeep-olist.html
  30. 4 0
      src/main/resources/static/app/business/device/views/deviceOut-list.html
  31. 14 2
      src/main/resources/static/app/business/device/views/deviceRepair-add.html
  32. 4 0
      src/main/resources/static/app/business/device/views/deviceRepair-olist.html
  33. 36 5
      src/main/resources/static/app/business/device/views/deviceStorage-edit.html
  34. 12 1
      src/main/resources/static/app/business/facility/controller/facilityGetListCtrl.js
  35. 28 10
      src/main/resources/static/app/business/facility/controller/facilityKeepListCtrl.js
  36. 19 9
      src/main/resources/static/app/business/facility/controller/facilityListCtrl.js
  37. 14 0
      src/main/resources/static/app/business/facility/views/add-facility-get.html
  38. 14 0
      src/main/resources/static/app/business/facility/views/add-facility-keep.html
  39. 13 3
      src/main/resources/static/app/business/facility/views/add-facility.html
  40. 35 55
      src/main/resources/static/app/business/jsgl/controller/jsglCtrl.js
  41. 14 0
      src/main/resources/static/app/business/jsgl/views/jsgl-edit.html
  42. 14 0
      src/main/resources/static/app/business/jsgl/views/jsgl-sl-edit.html
  43. 69 21
      src/main/resources/static/app/business/storageSealedConfirmation/controller/pageEditCtrl.js
  44. 24 2
      src/main/resources/static/app/business/storageSealedConfirmation/service/pageListService.js
  45. 14 14
      src/main/resources/static/app/business/storageSealedConfirmation/views/pageEdit.html
  46. 3 3
      src/main/resources/static/app/intelligent/aeration/controller/aerationJobCtrl.js
  47. 1 1
      src/main/resources/static/app/intelligent/aeration/views/aerationJob-js-list.html
  48. 1 1
      src/main/resources/static/app/intelligent/aeration/views/aerationJob-ks-list.html
  49. 3 3
      src/main/resources/static/app/intelligent/fumigation/views/homework/fumHomeWorkProcess-edit.html
  50. 8 8
      src/main/resources/static/app/intelligent/fumigation/views/plan/forRecord-edit.html
  51. 7 0
      src/main/resources/static/app/layout/partials/header.tpl.html
  52. 402 231
      src/main/resources/static/app/layout/partials/navigation.tpl.html
  53. 8 8
      src/main/resources/static/app/storage/controller/dailyListCtrl.js
  54. 31 2
      src/main/resources/static/app/storage/controller/festivalbeforeCtrl.js
  55. 2 7
      src/main/resources/static/app/storage/controller/keepAccount/keepDetailedAccountCtrl.js
  56. 16 13
      src/main/resources/static/app/storage/controller/keeperCtrl.js
  57. 3 13
      src/main/resources/static/app/storage/controller/paymentCtrl.js
  58. 10 3
      src/main/resources/static/app/storage/controller/qualitycheckAssayCtrl.js
  59. 61 4
      src/main/resources/static/app/storage/controller/qualitycheckCtrl.js
  60. 166 166
      src/main/resources/static/app/storage/controller/qualitycheckSampleCtrl.js
  61. 148 155
      src/main/resources/static/app/storage/controller/safeProduceRiskCtrl.js
  62. 11 5
      src/main/resources/static/app/storage/controller/storagehouseCtrl.js
  63. 5 20
      src/main/resources/static/app/storage/controller/windrainsnowCtrl.js
  64. 1 1
      src/main/resources/static/app/storage/grainCard/controller/addQualityInspectionCtrl.js
  65. 37 83
      src/main/resources/static/app/storage/grainCard/controller/checkFoodSituationListCtrl.js
  66. 220 216
      src/main/resources/static/app/storage/grainCard/controller/foodHandleCtr.js
  67. 35 48
      src/main/resources/static/app/storage/grainCard/controller/foodSituationCtrl.js
  68. 89 34
      src/main/resources/static/app/storage/grainCard/controller/grainCarAddCtrl.js
  69. 50 15
      src/main/resources/static/app/storage/grainCard/controller/oilCarAddCtrl.js
  70. 80 177
      src/main/resources/static/app/storage/grainCard/controller/productGrainAddCtrl.js
  71. 51 3
      src/main/resources/static/app/storage/grainCard/controller/productGrainCheckCtrl.js
  72. 3 2
      src/main/resources/static/app/storage/grainCard/controller/productGrainCtrl.js
  73. 9 1
      src/main/resources/static/app/storage/grainCard/service/grainCardService.js
  74. 234 331
      src/main/resources/static/app/storage/grainCard/views/checkFoodSituationList.html
  75. 212 252
      src/main/resources/static/app/storage/grainCard/views/foodHandle-edit.html
  76. 2 2
      src/main/resources/static/app/storage/grainCard/views/foodHandle-list.html
  77. 2 12
      src/main/resources/static/app/storage/grainCard/views/foodSituationList.html
  78. 103 71
      src/main/resources/static/app/storage/grainCard/views/grainCarAdd.html
  79. 69 73
      src/main/resources/static/app/storage/grainCard/views/oilCarAdd.html
  80. 242 120
      src/main/resources/static/app/storage/grainCard/views/productGrain-add-G.html
  81. 156 53
      src/main/resources/static/app/storage/grainCard/views/productGrain-add-T.html
  82. 6 213
      src/main/resources/static/app/storage/grainCard/views/productGrain-add.html
  83. 179 50
      src/main/resources/static/app/storage/grainCard/views/productGrain-check-G.html
  84. 179 49
      src/main/resources/static/app/storage/grainCard/views/productGrain-check-T.html
  85. 9 3
      src/main/resources/static/app/storage/grainCard/views/productGrain-check.html
  86. 7 19
      src/main/resources/static/app/storage/grainCard/views/productGrainList.html
  87. 17 4
      src/main/resources/static/app/storage/insectPestDetection/controller/insectPestDetectionNewCtrl.js
  88. 75 75
      src/main/resources/static/app/storage/insectPestDetection/view/insectPestDetection-edit.html
  89. 1 1
      src/main/resources/static/app/storage/insectPestDetection/view/insectPestDetection-list.html
  90. 89 15
      src/main/resources/static/app/storage/module.js
  91. 4 1
      src/main/resources/static/app/storage/profitlossStatement/controller/profitlossStatementSaveCtrl.js
  92. 1 1
      src/main/resources/static/app/storage/profitlossStatement/views/profitlossStatement-edit.html
  93. 10 2
      src/main/resources/static/app/storage/safe-manage/controller/safeManageCtrl.js
  94. 335 273
      src/main/resources/static/app/storage/safe-manage/views/safeManage-edit.html
  95. 50 293
      src/main/resources/static/app/storage/views/keeper/keeper-edit.html
  96. 7 7
      src/main/resources/static/app/storage/views/keeper/keeper-list.html
  97. 1 1
      src/main/resources/static/app/storage/views/keeper/keeper-transfer-add.html
  98. 30 0
      src/main/resources/static/app/storage/views/qualitycheck/qualitycheck-first-editEatScore.html
  99. 24 7
      src/main/resources/static/app/storage/views/qualitycheck/qualitycheck-firstcheck-edit.html
  100. 0 0
      src/main/resources/static/app/storage/views/qualitycheck/qualitycheck-firstcheck-list.html

+ 7 - 1
src/main/java/com/chinaitop/depot/LogRecodeFilter.java

@@ -116,8 +116,14 @@ public class LogRecodeFilter extends ZuulFilter {
116 116
             String viewName = url.getViewName();
117 117
             pageLog.setViewName(viewName);
118 118
             // 访问用户名称
119
+			String orgInfo = request.getSession().getAttribute("orgInfo").toString();
120
+			UserInfoLog getOrg = JSON.parseObject(orgInfo, UserInfoLog.class);
121
+			pageLog.setOrgName(getOrg.getOrgName());
122
+
119 123
             String userInfo = request.getSession().getAttribute("userInfo").toString();
120
-            String realName = JSON.parseObject(userInfo, UserInfoLog.class).getRealName();
124
+			UserInfoLog userInfoLog = JSON.parseObject(userInfo, UserInfoLog.class);
125
+			String realName = userInfoLog.getRealName();
126
+			pageLog.setOrgId(userInfoLog.getOrgId());
121 127
             pageLog.setRealName(realName);
122 128
             // 用户设备IP
123 129
             String ip = getIpAddr(request);

+ 26 - 4
src/main/java/com/chinaitop/depot/system/mapper/UserOperationPageLogMapper.xml

@@ -7,6 +7,8 @@
7 7
     <result column="real_name" property="realName" jdbcType="VARCHAR" />
8 8
     <result column="user_ip" property="userIp" jdbcType="VARCHAR" />
9 9
     <result column="visit_page_time" property="visitPageTime" jdbcType="TIMESTAMP" />
10
+    <result column="org_id" property="orgId" jdbcType="INTEGER" />
11
+    <result column="org_name" property="orgName" jdbcType="VARCHAR" />
10 12
   </resultMap>
11 13
   <sql id="Example_Where_Clause" >
12 14
     <where >
@@ -67,7 +69,7 @@
67 69
     </where>
68 70
   </sql>
69 71
   <sql id="Base_Column_List" >
70
-    id, view_name, real_name, user_ip, visit_page_time
72
+    id, view_name, real_name, user_ip, visit_page_time, org_id, org_name
71 73
   </sql>
72 74
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.system.model.UserOperationPageLogExample" >
73 75
     select
@@ -91,9 +93,9 @@
91 93
   </delete>
92 94
   <insert id="insert" parameterType="com.chinaitop.depot.system.model.UserOperationPageLog" >
93 95
     insert into user_operation_page_log (id, view_name, real_name, 
94
-      user_ip, visit_page_time)
96
+      user_ip, visit_page_time, org_id, org_name)
95 97
     values (#{id,jdbcType=VARCHAR}, #{viewName,jdbcType=VARCHAR}, #{realName,jdbcType=VARCHAR}, 
96
-      #{userIp,jdbcType=VARCHAR}, #{visitPageTime,jdbcType=TIMESTAMP})
98
+      #{userIp,jdbcType=VARCHAR}, #{visitPageTime,jdbcType=TIMESTAMP}, #{orgId,jdbcType=INTEGER}, #{orgName,jdbcType=VARCHAR})
97 99
   </insert>
98 100
   <insert id="insertSelective" parameterType="com.chinaitop.depot.system.model.UserOperationPageLog" >
99 101
     insert into user_operation_page_log
@@ -113,6 +115,12 @@
113 115
       <if test="visitPageTime != null" >
114 116
         visit_page_time,
115 117
       </if>
118
+      <if test="orgId != null" >
119
+        org_id,
120
+      </if>
121
+      <if test="orgName != null" >
122
+        org_name,
123
+      </if>
116 124
     </trim>
117 125
     <trim prefix="values (" suffix=")" suffixOverrides="," >
118 126
       <if test="id != null" >
@@ -130,6 +138,12 @@
130 138
       <if test="visitPageTime != null" >
131 139
         #{visitPageTime,jdbcType=TIMESTAMP},
132 140
       </if>
141
+      <if test="orgId != null" >
142
+        #{orgId,jdbcType=INTEGER},
143
+      </if>
144
+      <if test="orgName != null" >
145
+        #{orgName,jdbcType=VARCHAR},
146
+      </if>
133 147
     </trim>
134 148
   </insert>
135 149
   <select id="countByExample" parameterType="com.chinaitop.depot.system.model.UserOperationPageLogExample" resultType="java.lang.Integer" >
@@ -156,6 +170,12 @@
156 170
       <if test="record.visitPageTime != null" >
157 171
         visit_page_time = #{record.visitPageTime,jdbcType=TIMESTAMP},
158 172
       </if>
173
+      <if test="record.visitPageTime != null" >
174
+        org_id = #{record.orgId,jdbcType=INTEGER},
175
+      </if>
176
+      <if test="record.visitPageTime != null" >
177
+        org_name = #{record.orgName,jdbcType=VARCHAR},
178
+      </if>
159 179
     </set>
160 180
     <if test="_parameter != null" >
161 181
       <include refid="Update_By_Example_Where_Clause" />
@@ -167,7 +187,9 @@
167 187
       view_name = #{record.viewName,jdbcType=VARCHAR},
168 188
       real_name = #{record.realName,jdbcType=VARCHAR},
169 189
       user_ip = #{record.userIp,jdbcType=VARCHAR},
170
-      visit_page_time = #{record.visitPageTime,jdbcType=TIMESTAMP}
190
+      visit_page_time = #{record.visitPageTime,jdbcType=TIMESTAMP},
191
+      org_id = #{record.orgId,jdbcType=INTEGER},
192
+      org_name = #{record.orgName,jdbcType=VARCHAR}
171 193
     <if test="_parameter != null" >
172 194
       <include refid="Update_By_Example_Where_Clause" />
173 195
     </if>

+ 20 - 0
src/main/java/com/chinaitop/depot/system/model/UserInfoLog.java

@@ -9,6 +9,26 @@ public class UserInfoLog {
9 9
 
10 10
     private String realName;
11 11
 
12
+    private Integer orgId;
13
+
14
+    private String orgName;
15
+
16
+    public String getOrgName() {
17
+        return orgName;
18
+    }
19
+
20
+    public void setOrgName(String orgName) {
21
+        this.orgName = orgName;
22
+    }
23
+
24
+    public Integer getOrgId() {
25
+        return orgId;
26
+    }
27
+
28
+    public void setOrgId(Integer orgId) {
29
+        this.orgId = orgId;
30
+    }
31
+
12 32
     public String getRealName() {
13 33
         return realName;
14 34
     }

+ 20 - 0
src/main/java/com/chinaitop/depot/system/model/UserOperationPageLog.java

@@ -13,6 +13,26 @@ public class UserOperationPageLog {
13 13
 
14 14
     private Date visitPageTime;
15 15
 
16
+    private Integer orgId;
17
+
18
+    private String orgName;
19
+
20
+    public String getOrgName() {
21
+        return orgName;
22
+    }
23
+
24
+    public void setOrgName(String orgName) {
25
+        this.orgName = orgName;
26
+    }
27
+
28
+    public Integer getOrgId() {
29
+        return orgId;
30
+    }
31
+
32
+    public void setOrgId(Integer orgId) {
33
+        this.orgId = orgId;
34
+    }
35
+
16 36
     /**
17 37
      * null
18 38
      * @return id null

+ 4 - 3
src/main/resources/static/app/app.js

@@ -68,7 +68,8 @@ angular.module('app', [
68 68
     'app.log',
69 69
     'app.additionalHome',
70 70
     'app.registrationTable',
71
-    'app.archive'
71
+    'app.archive',
72
+    'app.warnAndAlarm'
72 73
     //'app.risk',
73 74
     //'app.cstj',
74 75
     //'app.jczcsupervise'
@@ -434,11 +435,11 @@ angular.module('app', [
434 435
                             $rootScope.store_tank_list = data.house_and_tank_List;
435 436
                             /* 包含所有有效的仓房信息的下拉对象  */
436 437
                             $rootScope.storelist = data.houseList;
437
-                            $rootScope.storelist2 = data.houseList;
438
+                            //$rootScope.storelist2 = data.houseList;
438 439
                             $rootScope.storeAgentlist = data.houseList;
439 440
                             /* 包含所有有效的油罐信息的下拉对象  */
440 441
                             $rootScope.tanklist = data.tankList;
441
-                            $rootScope.tanklist2 = data.tankList;
442
+                            //$rootScope.tanklist2 = data.tankList;
442 443
                             $rootScope.agentYGList = data.tankList;
443 444
                             /* 按ID来封装的包含所有仓房和油罐(有仓房的详细信息,油罐只有油罐ID、油罐code和油罐name) */
444 445
                             $rootScope.storehouseObj = data.houseObj;

+ 5 - 19
src/main/resources/static/app/basic/keeper/controller/keeperCtrl.js

@@ -616,7 +616,7 @@ angular.module('app.basic').controller("keeperCtrl", function ($scope, $rootScop
616 616
 
617 617
         // 查看保管员跳转页面加载数据
618 618
         $scope.findKeepView = function () {
619
-            keeperService.getById($stateParams.rybh).then(function (data) {
619
+            keeperService.getById($stateParams.rybh, $rootScope.orgInfo.orgId).then(function (data) {
620 620
                 $scope.keeper = data;
621 621
                 $scope.educationVOList = data.educationVOList; // 全日制
622 622
                 $scope.feiEducationVOList = data.feiEducationVOList; // 非全日制
@@ -626,9 +626,12 @@ angular.module('app.basic').controller("keeperCtrl", function ($scope, $rootScop
626 626
                 $scope.certificatesVOList = data.certificatesVOList; // 上岗其它证书
627 627
                 $scope.otherVoList = data.otherVoList; // 其它附件
628 628
                 $scope.zwlxbgjlVOList = data.zwlxbgjlVOList; // 职务类型变更记录
629
+                $scope.ryfjFileVOList = data.ryfjFileVOList; // 其它证书
629 630
                 if ($scope.zwlxbgjlVOList.length > 0) {
630
-                    $scope.zwlxbgjlVOHide = true;
631
+                    $scope.zwlxbgjlVOHide = false;
632
+                    $scope.zwlxbgjlVONotHide = true;
631 633
                 } else {
634
+                    $scope.zwlxbgjlVOHide = true;
632 635
                     $scope.zwlxbgjlVONotHide = false;
633 636
                 }
634 637
                 var url = data.avatorUrl;
@@ -643,12 +646,6 @@ angular.module('app.basic').controller("keeperCtrl", function ($scope, $rootScop
643 646
         };
644 647
         $scope.findKeepView();
645 648
 
646
-        // 新增或修改跳转到录入页面
647
-        /*$scope.showKeeper = function(id) {
648
-           // 新增或修改跳转到录入页面
649
-            $state.go('app.basic.keeperEdit',{id:id, showType:1});
650
-        }*/
651
-
652 649
         //返回和取消
653 650
         $scope.returnTop = function () {
654 651
             if ($rootScope.previousState_name != '') {
@@ -656,17 +653,6 @@ angular.module('app.basic').controller("keeperCtrl", function ($scope, $rootScop
656 653
             } else {
657 654
                 $rootScope.back();
658 655
             }
659
-            /*if ($rootScope.previousState_name != '') {
660
-                if($stateParams.types == "LKJC"){
661
-                    $state.go("app.supervise.storage.keeperList");
662
-                }else if($stateParams.types != ''){
663
-                    $state.go("app.synth.barn.view", {id : $stateParams.types});
664
-                }else{
665
-                    $state.go("app.basic.keeperList");
666
-                }
667
-            }else{
668
-                $rootScope.back();
669
-            }*/
670 656
         }
671 657
 
672 658
     });

+ 23 - 3
src/main/resources/static/app/basic/keeper/service/keeperService.js

@@ -24,11 +24,11 @@ angular.module('app.basic').service("keeperService", function($http, $q, APP_CON
24 24
     };
25 25
 
26 26
     // 详情-市平台数据
27
-    this.getById = function(rybh) {
27
+    this.getById = function(rybh, orgId) {
28 28
         var d = $q.defer();
29 29
         $http({
30 30
             method : 'GET',
31
-            url : APP_CONFIG.basicUrl + '/DRyxxsjyController/getById/' + rybh
31
+            url : APP_CONFIG.basicUrl + '/DRyxxsjyController/getById/' + rybh + '/' + orgId
32 32
         }).then(function successCallback(response) {
33 33
             // 请求成功执行代码
34 34
             d.resolve(response.data);
@@ -286,7 +286,7 @@ angular.module('app.basic').service("keeperService", function($http, $q, APP_CON
286 286
     }
287 287
 
288 288
     //更新保管员移交对应保管员的仓房
289
-    this.updateKeeperHouse = function(houseId,receiveId,transferId,roleId) {
289
+    this.updateKeeperHouse = function(houseId,receiveId,transferId,roleId,orgId) {
290 290
         var d = $q.defer();
291 291
         $http({
292 292
             method: 'GET',
@@ -295,6 +295,7 @@ angular.module('app.basic').service("keeperService", function($http, $q, APP_CON
295 295
                 houseId : houseId,
296 296
                 receiveId : receiveId,
297 297
                 transferId : transferId,
298
+                orgId : orgId,
298 299
                 roleId : roleId
299 300
             }
300 301
         }).then(function successCallback(response) {
@@ -307,5 +308,24 @@ angular.module('app.basic').service("keeperService", function($http, $q, APP_CON
307 308
         return d.promise;
308 309
     }
309 310
 
311
+    //根据仓房ID获取仓房保管员头像
312
+    this.getBgztxUrl = function (houseId, orgId) {
313
+        var d = $q.defer();
314
+        $http({
315
+            method: 'GET',
316
+            url: APP_CONFIG.basicUrl + '/Keeper/getBgztxUrl',
317
+            params: {
318
+                houseId: houseId,
319
+                orgId : orgId
320
+            }
321
+        }).then(function successCallback(response) {
322
+            // 请求成功执行代码
323
+            d.resolve(response.data);
324
+        }, function errorCallback(response) {
325
+            // 请求失败执行代码
326
+            d.reject("error");
327
+        });
328
+        return d.promise;
329
+    }
310 330
 
311 331
 });

+ 26 - 13
src/main/resources/static/app/basic/keeper/views/keeper-view.html

@@ -149,16 +149,16 @@
149 149
 											<label class="select">
150 150
 												<select ng-model="keeper.gwdm" name="gwdm" class="form-control"  ng-disabled="true">
151 151
 													<option value="">--请选择--</option>
152
-													<option value="11">后勤</option>
153
-													<option value="12">业务</option>
154
-													<option value="13">财务</option>
155
-													<option value="14">统计</option>
156
-													<option value="15">仓储</option>
157
-													<option value="16">化验</option>
158
-													<option value="17">管理</option>
159
-													<option value="18">防治</option>
160
-													<option value="19">保安</option>
161
-													<option value="20">其他</option>
152
+													<option value="1">后勤</option>
153
+													<option value="2">业务</option>
154
+													<option value="3">财务</option>
155
+													<option value="4">统计</option>
156
+													<option value="5">仓储</option>
157
+													<option value="6">化验</option>
158
+													<option value="7">管理</option>
159
+													<!--<option value="8">防治</option>
160
+													<option value="9">保安</option>
161
+													<option value="10">其他</option>-->
162 162
 												</select>
163 163
 											</label>
164 164
 										</section>
@@ -465,7 +465,7 @@
465 465
 											</section>
466 466
 											<section class="col col-3">
467 467
 												<label class="label">颁证机构</label> <label class="input">
468
-												<input type="text" ng-model="certificatesVO.issuefacility" name="issuefacility" ng-readonly="true">
468
+												<input type="text" ng-model="certificatesVO.issueFacility" name="issueFacility" ng-readonly="true">
469 469
 											</label>
470 470
 											</section>
471 471
 											<section class="col col-3">
@@ -487,6 +487,14 @@
487 487
 									</h3>
488 488
 								</header>
489 489
 								<fieldset>
490
+									<div ng-repeat="ryfjFileVO in ryfjFileVOList">
491
+										<section class="col col-2">
492
+											{{ryfjFileVO.ryfjFileName}}
493
+											<a class="btn btn-default" href="{{ryfjFileVO.ryfjFileUrl}}" target="_blank"><i class="fa fa-download"></i>预览</a>
494
+										</section>
495
+									</div>
496
+								</fieldset>
497
+								<fieldset>
490 498
 									<div ng-repeat="otherVo in otherVoList">
491 499
 										<label class="label">附件</label>
492 500
 										<label class="input">
@@ -516,9 +524,14 @@
516 524
 											<tr ng-repeat="zwlxbgjlVO in zwlxbgjlVOList" ng-hide="zwlxbgjlVOHide">
517 525
 												<td>{{$index+1}}</td>
518 526
 												<td>{{zwlxbgjlVO.bgqzzdwmc}}</td>
519
-												<td>{{zwlxbgjlVO.zwlxQ}}</td>
527
+												<!--需求变更前主职,变更后副职,与数据无关-->
528
+												<!--0:主职,1:副职-->
529
+												<!--<td>{{zwlxbgjlVO.zwlxQ=='0'?'主职':'副职'}}</td>-->
530
+												<td>{{'主职'}}</td>
520 531
 												<td>{{zwlxbgjlVO.bghzzdwmc}}</td>
521
-												<td>{{zwlxbgjlVO.zwlxH}}</td>
532
+												<!--0:主职,1:副职-->
533
+												<!--<td>{{zwlxbgjlVO.zwlxH=='0'?'主职':'副职'}}</td>-->
534
+												<td>{{'副职'}}</td>
522 535
 												<td>{{zwlxbgjlVO.bgr}}</td>
523 536
 												<td>{{zwlxbgjlVO.bgfsrq}}</td>
524 537
 											</tr>

+ 21 - 0
src/main/resources/static/app/basic/warehouse/service/warehouseService.js

@@ -156,4 +156,25 @@ angular.module('app.basic').service("warehouseService", function($http, $q, $roo
156 156
         return d.promise;
157 157
     }
158 158
 
159
+    //按条件查询某种货位状态的数据
160
+    this.getCrkStatusList = function(lylx, crkStatus, orgId) {
161
+        var d = $q.defer();
162
+        $http({
163
+            method : 'GET',
164
+            url : APP_CONFIG.basicUrl + '/Warehouse/getCrkStatusList',
165
+            params : {
166
+            	lylx : lylx,
167
+                crkStatus : crkStatus,
168
+                orgId : orgId
169
+            }
170
+        }).then(function successCallback(response) {
171
+            // 请求成功执行代码
172
+            d.resolve(response.data);
173
+        }, function errorCallback(response) {
174
+            // 请求失败执行代码
175
+            d.reject("error");
176
+        });
177
+        return d.promise;
178
+    }
179
+
159 180
 });

+ 26 - 3
src/main/resources/static/app/business/commonUtilService.js

@@ -1,6 +1,6 @@
1 1
 "use strict";
2 2
 
3
-angular.module('app.business').service("commonUtilService", function($http, $q, APP_CONFIG) {
3
+angular.module('app.business').service("commonUtilService", function($http, $q, $rootScope, APP_CONFIG) {
4 4
     /*---------------js 两个数加 ------------------------------*/
5 5
     this.accAdd = function(arg1, arg2) {
6 6
         if (arg1 == '' || arg1 == null || arg1 == undefined) {
@@ -158,7 +158,7 @@ angular.module('app.business').service("commonUtilService", function($http, $q,
158 158
         return v;
159 159
     }
160 160
     
161
-    //将v四舍五入,且保留n位小数
161
+    //将v四舍五入,且保留n位小数(这个方法有异常,不准)
162 162
     this.getMath_N = function(v, n) {
163 163
         if (isNaN(v) || v == "") {
164 164
         	if (isNaN(n) || v == "") {
@@ -250,10 +250,33 @@ angular.module('app.business').service("commonUtilService", function($http, $q,
250 250
     	        	}
251 251
     	        }
252 252
     	     }
253
-    	    v = this.getMath1(v);
253
+    	    if (n==2) {
254
+    	    	v = this.getMath(v);
255
+    	    }
256
+    	    if (n==1) {
257
+    	    	v = this.getMath1(v);
258
+    	    }
254 259
     	} else {
255 260
     		v = 0.0
256 261
     	}
257 262
     	return v;
258 263
     }
264
+
265
+    /**
266
+     * 获取仓房或油罐的保管员
267
+     */
268
+    this.getKeeperNames = function(houseId) {
269
+    	var keeperNames;
270
+    	var datatype = $rootScope.storehouseObj[houseId].datatype;
271
+    	if (datatype == "0") {
272
+    		keeperNames = $rootScope.storehouseObj[houseId].dutystoreman;
273
+    	} else if (datatype == "1") {
274
+    		keeperNames = $rootScope.tankObj[houseId].keeperNames;
275
+    	} else {
276
+    		keeperNames = null;
277
+    		console.log("无法区分数据是油罐还是仓房");
278
+    	}
279
+    	return keeperNames
280
+    }
281
+	
259 282
 })

+ 1 - 1
src/main/resources/static/app/business/customer/views/customer-edit.html

@@ -266,7 +266,7 @@
266 266
                                             <label class="label">统一社会信用代码<span style="color: red;">*</span></label>
267 267
                                             <label class="input">
268 268
                                                 <input class="form-control" type="text" ng-model="customer.socialCreditCode" ng-readonly="isNotEdit" name="socialCreditCode"
269
-                                                ng-blur="checkRepeat()" required maxlength="18">
269
+                                                ng-blur="checkRepeat()" required maxlength="18" minlength="18">
270 270
                                             </label>
271 271
                                         </section>
272 272
                                         <section class="col col-4">

+ 68 - 4
src/main/resources/static/app/business/deliveryStorageNotice/controller/grainDeliveryStorageNoticeSaveCtrl.js

@@ -1,7 +1,7 @@
1 1
 angular.module('app.business').controller("grainDeliveryStorageNoticeSaveCtrl",
2 2
     function($scope, $http, $filter, $stateParams, $state, $uibModal, $rootScope,agentDepotService,
3 3
              deliveryStorageNoticeService, deliveryStorageNoticeAuditService, commonUtilService, 
4
-             storeWareDetailService, enumService, codeRuleService,planService, customerService, contractReceiveService, userRoleService, qualitycheckService, $location, APP_CONFIG) {
4
+             storeWareDetailService, enumService, codeRuleService,planService, customerService, contractReceiveService, userRoleService, qualitycheckService, warehouseService, $location, APP_CONFIG) {
5 5
 
6 6
         $scope.deliveryStorageNotice = {};
7 7
         $scope.billNumber = {};
@@ -1256,20 +1256,84 @@ angular.module('app.business').controller("grainDeliveryStorageNoticeSaveCtrl",
1256 1256
                                 	$scope.deliveryStorageNotice.shipingCount = detailSumAmountAnother;
1257 1257
                                 }
1258 1258
                                 
1259
+//                                if(titles != ""){
1260
+//                                    var msg = confirm(titles);
1261
+//                                    if(msg == true){
1262
+//                                        $scope.savePlanData(variable);
1263
+//                                    }else{
1264
+//                                        $scope.saveFlag = false;
1265
+//                                    }
1266
+//                                }else{
1267
+//                                    $scope.savePlanData(variable);
1268
+//                                }
1259 1269
 
1260 1270
                                 if(titles != ""){
1261 1271
                                     var msg = confirm(titles);
1262 1272
                                     if(msg == true){
1263
-                                        $scope.savePlanData(variable);
1273
+                                    	//当选择出库通知单时,平台校验是否该企业存在状态为“入库中”的仓房,
1274
+                                    	//如果有,则在库级屏幕中央显示提示弹窗“预计出现同时出入库作业情况,请提前报送报备手续至市粮食储备有限公司”。
1275
+                                    	//要求显示20秒后自动关闭提示弹窗。
1276
+                                    	if (variable == "1") {
1277
+                                    		warehouseService.getCrkStatusList(0, 2, $rootScope.orgInfo.orgId).then(function(data){
1278
+                                    			if (data.length > 0) {
1279
+                                    				var showConfim=document.getElementById("crkStatusAlert");
1280
+                                    				showConfim.style.display="block";
1281
+                                    				var seconds = 20;
1282
+                                    				// 设置定时器,每秒钟增加秒数,并输出到控制台
1283
+                                    				setInterval(() => {
1284
+                                    					seconds--;
1285
+                                    					$('#crkStatusAlert_button').text(seconds+"秒后自动关闭");
1286
+                                    					if (seconds == 0) {
1287
+                                    						showConfim.style.display="none";
1288
+                                    						$scope.savePlanData(variable);
1289
+                                    					}
1290
+                                    				}, 1000);
1291
+                                    				//给市平台推送出库通知单提示消息
1292
+                           					        deliveryStorageNoticeService.pushCktzdts($rootScope.userInfo.userId, $rootScope.orgInfo.orgName);
1293
+                                    			} else {
1294
+                                    				$scope.savePlanData(variable);
1295
+                                    			}
1296
+                                    		},function(data){
1297
+                                    			console.log(data);
1298
+                                    		});
1299
+                                    	} else {
1300
+                                    		$scope.savePlanData(variable);
1301
+                                    	}
1264 1302
                                     }else{
1265 1303
                                         $scope.saveFlag = false;
1266 1304
                                     }
1267 1305
                                 }else{
1268
-                                    $scope.savePlanData(variable);
1306
+                                	if (variable == "1") {
1307
+                                		warehouseService.getCrkStatusList(0, 2, $rootScope.orgInfo.orgId).then(function(data){
1308
+                                            if (data.length > 0) {
1309
+                                            	var showConfim=document.getElementById("crkStatusAlert");
1310
+                       						    showConfim.style.display="block";
1311
+                       						    var seconds = 20;
1312
+                       						 
1313
+                       					        // 设置定时器,每秒钟增加秒数,并输出到控制台
1314
+                       					        setInterval(() => {
1315
+                       					            seconds--;
1316
+                       					            $('#crkStatusAlert_button').text(seconds+"秒后自动关闭");
1317
+                       					            if (seconds == 0) {
1318
+                       					            	showConfim.style.display="none";
1319
+                       					            	$scope.savePlanData(variable);
1320
+                       					            }
1321
+                       					        }, 1000);
1322
+                       					        //给市平台推送出库通知单提示消息
1323
+                       					        deliveryStorageNoticeService.pushCktzdts($rootScope.userInfo.userId, $rootScope.orgInfo.orgName);
1324
+                                            } else {
1325
+                                            	$scope.savePlanData(variable);
1326
+                                            }
1327
+                                        },function(data){
1328
+                                        	console.log(data);
1329
+                                        });
1330
+                                	} else {
1331
+                                		$scope.savePlanData(variable);
1332
+                                	}
1333
+                                    
1269 1334
                                 }
1270 1335
 
1271 1336
                         }
1272
-                    //});
1273 1337
                 });
1274 1338
 
1275 1339
                 }

+ 25 - 2
src/main/resources/static/app/business/deliveryStorageNotice/controller/grainReservesNoticeCtrl.js

@@ -1,5 +1,5 @@
1 1
 angular.module('app.business').controller("grainReservesNoticeCtrl", function($scope, $http, $state, $uibModal,
2
-		$rootScope,$stateParams,deliveryStorageNoticeService,deliveryStorageNoticeAuditService, APP_CONFIG) {
2
+		$rootScope,$stateParams,deliveryStorageNoticeService,deliveryStorageNoticeAuditService, warehouseService, APP_CONFIG) {
3 3
 	
4 4
 	 $scope.pageInfo = {pageNum : 1, pageSize : 10};
5 5
 	   
@@ -136,8 +136,31 @@ angular.module('app.business').controller("grainReservesNoticeCtrl", function($s
136 136
 				if (result.returnType == "cancel") {
137 137
 					// 不做操作.
138 138
 				} else if (result.returnType == "submit") {
139
+					warehouseService.getCrkStatusList(0, 2, $rootScope.orgInfo.orgId).then(function(data){
140
+                        if (data.length > 0) {
141
+                        	var showConfim=document.getElementById("crkStatusAlert");
142
+   						    showConfim.style.display="block";
143
+   						    var seconds = 20;
144
+   						 
145
+   					        // 设置定时器,每秒钟增加秒数,并输出到控制台
146
+   					        setInterval(() => {
147
+   					            seconds--;
148
+   					            $('#crkStatusAlert_button').text(seconds+"秒后自动关闭");
149
+   					            if (seconds == 0) {
150
+   					            	showConfim.style.display="none";
151
+   					            	$scope.submit(result.assignee);
152
+   					            }
153
+   					        }, 1000);
154
+   					        //给市平台推送出库通知单提示消息
155
+   					        deliveryStorageNoticeService.pushCktzdts($rootScope.userInfo.userId, $rootScope.orgInfo.orgName);
156
+                        } else {
157
+                        	$scope.submit(result.assignee);
158
+                        }
159
+                    },function(data){
160
+                    	console.log(data);
161
+                    });
139 162
 					// 审批人.
140
-					$scope.submit(result.assignee);
163
+					//$scope.submit(result.assignee);
141 164
 				} 
142 165
 			}, function (reason) {
143 166
 				console.log(reason);

+ 17 - 0
src/main/resources/static/app/business/deliveryStorageNotice/service/deliveryStorageNoticeService.js

@@ -163,4 +163,21 @@ angular.module('app.business').service("deliveryStorageNoticeService", function(
163 163
     	});
164 164
     	return d.promise;
165 165
     }
166
+    
167
+    //给市平台推送出库通知单提示消息
168
+    this.pushCktzdts = function(fsr, fsdw) {
169
+    	var d = $q.defer();
170
+    	$http({
171
+    		method: 'GET',
172
+    		url: APP_CONFIG.businessUrl + '/depot/business/grainNotice/pushCktzdts',
173
+    		params: {
174
+    			fsr : fsr,
175
+    			fsdw : fsdw
176
+    		}
177
+    	}).then(function successCallback(response) {
178
+    		d.resolve(response.data);
179
+    	}, function errorCallback(response) {
180
+    	});
181
+    	return d.promise;
182
+    }
166 183
 })

+ 11 - 0
src/main/resources/static/app/business/deliveryStorageNotice/views/grainDeliveryNotice-edit.html

@@ -375,4 +375,15 @@
375 375
            <button ng-click="cancel()" style="margin-right:10px;">取消</button>
376 376
         </div>
377 377
     </div>
378
+    <div  id="crkStatusAlert" style="display: none;
379
+	   position: fixed;opacity: 0.8;
380
+	   left: 0;top: 0;width: 100%;height: 100%;
381
+	   background: #000;z-index: 1002;">
382
+		<div style="position: fixed; 
383
+		    top: 50%;left: 50%;transform: translate(-50%, -50%);background-color: white;padding: 20px;border: 1px solid #ccc;z-index: 1200;">
384
+			<h3 style="margin-top:18px">系统提示:</h3>
385
+			<p style="font-size:15px">预计出现同时出入库作业情况,请提前报送报备手续至市粮食储备有限公司!</p >
386
+			<div id="crkStatusAlert_button" style="margin-top:20px;text-align: center;"></div>
387
+		</div>
388
+	</div>
378 389
 </div>

+ 11 - 0
src/main/resources/static/app/business/deliveryStorageNotice/views/grainReservesNotice-list.html

@@ -124,4 +124,15 @@
124 124
             </article>
125 125
         </div>
126 126
     </section>
127
+    <div  id="crkStatusAlert" style="display: none;
128
+	   position: fixed;opacity: 0.8;
129
+	   left: 0;top: 0;width: 100%;height: 100%;
130
+	   background: #000;z-index: 1002;">
131
+		<div style="position: fixed; 
132
+		    top: 50%;left: 50%;transform: translate(-50%, -50%);background-color: white;padding: 20px;border: 1px solid #ccc;z-index: 1200;">
133
+			<h3 style="margin-top:18px">系统提示:</h3>
134
+			<p style="font-size:15px">预计出现同时出入库作业情况,请提前报送报备手续至市粮食储备有限公司!</p >
135
+			<div id="crkStatusAlert_button" style="margin-top:20px;text-align: center;"></div>
136
+		</div>
137
+	</div>
127 138
 </div>

+ 6 - 0
src/main/resources/static/app/business/device/controller/deviceCheckCtrl.js

@@ -135,6 +135,10 @@ angular.module('app.business')
135 135
         $scope.back = function () {
136 136
             $state.go("app.business.device.deviceCheckList");
137 137
         }
138
+
139
+        $scope.deviceCheck.commitPeople = $rootScope.userInfo.realName; // 提交人
140
+        $scope.deviceCheck.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
141
+
138 142
         var validator = $("#deviceCheck-form").validate();
139 143
         $scope.pd = {};
140 144
         $scope.check = {reallyCount: "", reason: ""};
@@ -154,6 +158,8 @@ angular.module('app.business')
154 158
                 ins.org_id = $rootScope.userInfo.orgId;
155 159
                 ins.check_person = $scope.deviceCheck.checkPerson;//负责人
156 160
                 ins.model = $scope.deviceList.sbggxh; //规格型号
161
+                ins.commitPeople = $scope.deviceCheck.commitPeople; //提交人
162
+                ins.commitTime = $scope.deviceCheck.commitTime; //提交时间
157 163
 
158 164
                 // 提交表单
159 165
                 $http({

+ 9 - 5
src/main/resources/static/app/business/device/controller/deviceGetCtrl.js

@@ -2,12 +2,11 @@
2 2
 var useCount = "0";
3 3
 angular.module('app.business')
4 4
 //器材信息
5
-    .controller("deviceGetCtrl", function ($scope, $http, $state, $rootScope, orgService, deviceGetService, enumService, equipmentEquipmentPoolService, deviceStorageService, $stateParams, APP_CONFIG) {
5
+    .controller("deviceGetCtrl", function ($scope, $http, $state, $rootScope, orgService, deviceGetService, enumService, equipmentEquipmentPoolService, deviceStorageService, $stateParams, APP_CONFIG, $filter) {
6 6
         // 获取列表数据
7 7
         $scope.pageInfo = {pageNum: 1, pageSize: 10};
8 8
         $scope.search = {deviceName: "", deviceType: ""};
9 9
         $scope.allSbcode = {};
10
-        //$scope.deviceGet = undefined;
11 10
         $scope.orgId = $rootScope.userInfo.orgId;
12 11
         $scope.loadData = function () {
13 12
             orgService.editOrg($scope.orgId).then(function (data) {
@@ -204,7 +203,10 @@ angular.module('app.business')
204 203
             var checkNumber = /^[1-9]\d*$/g;
205 204
             return this.optional(element)||(checkNumber.test(value));
206 205
         },"请输入正确的整数类型,不能有小数!");
207
-
206
+        // 领用新增默认数
207
+        $scope.deviceGet = {};
208
+        $scope.deviceGet.commitPeople = $rootScope.userInfo.realName;
209
+        $scope.deviceGet.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");
208 210
         $scope.saveData = function () {
209 211
             if (validator.form()) {
210 212
                 $scope.deviceGet.number = $scope.contentBean.number;
@@ -253,7 +255,7 @@ angular.module('app.business')
253 255
 
254 256
     })
255 257
 
256
-    .controller("deviceGetBackCtrl", function ($scope, $http, $state, $rootScope, deviceGetService, StorehouseService, commonUtilService, $stateParams, APP_CONFIG) {
258
+    .controller("deviceGetBackCtrl", function ($scope, $http, $state, $rootScope, deviceGetService, StorehouseService, commonUtilService, $stateParams, APP_CONFIG, $filter) {
257 259
         $scope.deviceGet = {};
258 260
         //根据id获取name
259 261
         /* $scope.getHouseNameById = function(depotId) {
@@ -307,9 +309,11 @@ angular.module('app.business')
307 309
         var id = $stateParams.id;
308 310
         $scope.getDeviceGetById(id);
309 311
 
310
-
311 312
         // 提交表单
312 313
         var validator = $("#deviceBack-form").validate();
314
+        $scope.deviceGet = {};
315
+        $scope.deviceGet.commitPeople = $rootScope.userInfo.realName;
316
+        $scope.deviceGet.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");
313 317
         $scope.saveBackData = function () {
314 318
             $scope.deviceGet.backTime = $("#disablebackTime").val();
315 319
             if (validator.form()) {

+ 2 - 1
src/main/resources/static/app/business/device/controller/deviceKeepCtrl.js

@@ -121,8 +121,9 @@ angular.module('app.business')
121 121
         }
122 122
 
123 123
         // 提交表单
124
-
125 124
         var validator = $("#deviceKeep-form").validate();
125
+        $scope.deviceList.commitPeople = $rootScope.userInfo.realName; // 提交人
126
+        $scope.deviceList.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
126 127
         $scope.saveData = function () {
127 128
             $scope.deviceList.orgId = $rootScope.userInfo.orgId;
128 129
             $scope.deviceList.keepStart = $("#disablekeepStart").val();

+ 7 - 2
src/main/resources/static/app/business/device/controller/deviceOutCtrl.js

@@ -1,7 +1,7 @@
1 1
 "use strict";
2 2
 //器材信息
3 3
 angular.module('app.business')
4
-    .controller("deviceOutCtrl", function($scope, $http,$state,$rootScope,deviceInputService,$stateParams, APP_CONFIG) {
4
+    .controller("deviceOutCtrl", function($scope, $http,$state,$rootScope,deviceInputService,$stateParams, APP_CONFIG, $filter) {
5 5
     // 获取列表数据
6 6
      $scope.pageInfo = {pageNum : 1, pageSize : 10};
7 7
      $scope.search = {deviceTypeId:"5476"};
@@ -16,11 +16,16 @@ angular.module('app.business')
16 16
 	 
17 17
 	// 报废
18 18
  	$scope.showOut = function (sbbh) {
19
+        if (!confirm("您确定要报废吗?")) {
20
+            return;
21
+        }
19 22
          $http({
20 23
              method: 'POST',
21 24
              url: APP_CONFIG.deviceUrl + '/devicePutStorage/outUpdate',
22 25
              data: {
23
-                 sbbh: sbbh
26
+                 sbbh: sbbh,
27
+                 commitPeople: $rootScope.userInfo.realName,
28
+                 commitTime: $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss")
24 29
              }
25 30
          }).then(function successCallback(response) {
26 31
              if (response.data.status == "success") {

+ 178 - 176
src/main/resources/static/app/business/device/controller/deviceRepairCtrl.js

@@ -1,55 +1,55 @@
1 1
 "use strict";
2 2
 //var useCount="";
3 3
 angular.module('app.business')
4
-    //器材信息
5
-    .controller("deviceRepairCtrl", function($scope, $http,$state,$rootScope,orgService,deviceRepairService,deviceGetService, $stateParams, APP_CONFIG) {
6
-     // 获取列表数据
7
-     $scope.pageInfo = {pageNum : 1, pageSize : 10};
8
-     $scope.search = {repairStatus:""};
9
-     $scope.orgId = $rootScope.userInfo.orgId;
10
-	 $scope.loadData = function() {
11
-		 orgService.editOrg($scope.orgId).then(function(data) {
12
-             $scope.orgInfo = data;
13
-             //$scope.orgName=$scope.orgInfo.orgName;
14
-         }, function(data) {
15
-             console.log(data);
16
-         });
17
-		 
18
-		 deviceRepairService.getPageInfoDevice($scope.pageInfo.pageNum, $scope.pageInfo.pageSize,$scope.search.repairStatus,$scope.orgInfo.orgName).then(function(data){
19
-			 $scope.pageInfo = data;
20
-	         $scope.deviceRepairList = data.list;
21
-	     },function(data){
22
-	         console.log(data);
23
-	     });
24
-	 }
25
-	 $scope.loadData();
26
-
27
-    // 翻页
28
-    $scope.goPage = function(pageNum) {
29
-        if ($scope.pageInfo.pageNum != pageNum && pageNum > 0) {
30
-            $scope.pageInfo.pageNum = pageNum;
31
-            $scope.loadData();
4
+//器材信息
5
+    .controller("deviceRepairCtrl", function ($scope, $http, $state, $rootScope, orgService, deviceRepairService, deviceGetService, $stateParams, APP_CONFIG) {
6
+        // 获取列表数据
7
+        $scope.pageInfo = {pageNum: 1, pageSize: 10};
8
+        $scope.search = {repairStatus: ""};
9
+        $scope.orgId = $rootScope.userInfo.orgId;
10
+        $scope.loadData = function () {
11
+            orgService.editOrg($scope.orgId).then(function (data) {
12
+                $scope.orgInfo = data;
13
+                //$scope.orgName=$scope.orgInfo.orgName;
14
+            }, function (data) {
15
+                console.log(data);
16
+            });
17
+
18
+            deviceRepairService.getPageInfoDevice($scope.pageInfo.pageNum, $scope.pageInfo.pageSize, $scope.search.repairStatus, $scope.orgInfo.orgName).then(function (data) {
19
+                $scope.pageInfo = data;
20
+                $scope.deviceRepairList = data.list;
21
+            }, function (data) {
22
+                console.log(data);
23
+            });
24
+        }
25
+        $scope.loadData();
26
+
27
+        // 翻页
28
+        $scope.goPage = function (pageNum) {
29
+            if ($scope.pageInfo.pageNum != pageNum && pageNum > 0) {
30
+                $scope.pageInfo.pageNum = pageNum;
31
+                $scope.loadData();
32
+            }
33
+        }
34
+
35
+        //添加维护信息页面
36
+        $scope.showRepair = function () {
37
+            $state.go('app.business.device.manage.devicerepairAdd');
38
+        }
39
+
40
+        //维护信息详情
41
+        $scope.showRepairMassage = function (id) {
42
+            $state.go('app.business.device.manage.deviceRepairMassage', {id: id, isNotEdit: false});
32 43
         }
33
-    }
34
-    
35
-	 //添加维护信息页面
36
-	 $scope.showRepair = function () {
37
-	   $state.go('app.business.device.manage.devicerepairAdd');
38
-	 }
39
-	 
40
-	 //维护信息详情
41
-	 $scope.showRepairMassage = function (id) {
42
-		 $state.go('app.business.device.manage.deviceRepairMassage',{id:id,isNotEdit:false});
43
-	 }
44
-
45
-    	
46
-    	// 结束维修
47
-    	$scope.EndRepair = function (id) {
44
+
45
+
46
+        // 结束维修
47
+        $scope.EndRepair = function (id) {
48 48
             $http({
49 49
                 method: 'POST',
50 50
                 url: APP_CONFIG.deviceUrl + '/deviceRepair/end',
51 51
                 data: {
52
-                	deviceListJson: angular.toJson({"id":id})
52
+                    deviceListJson: angular.toJson({"id": id})
53 53
                 }
54 54
             }).then(function successCallback(response) {
55 55
                 if (response.data.status == "success") {
@@ -61,10 +61,10 @@ angular.module('app.business')
61 61
             }, function errorCallback(response) {
62 62
                 // 请求失败执行代码
63 63
             });
64
-    	}
65
-    	
66
-    	/*//批量结束维修复选框
67
-    	$scope.selected = [];
64
+        }
65
+
66
+        /*//批量结束维修复选框
67
+        $scope.selected = [];
68 68
 
69 69
         var updateSelected = function(action,id,name){
70 70
             if(action == 'add' && $scope.selected.indexOf(id) == -1){
@@ -82,137 +82,139 @@ angular.module('app.business')
82 82
             var action = (checkbox.checked?'add':'remove');
83 83
             updateSelected(action,id,checkbox.name);
84 84
         }
85
-        
85
+
86 86
         $scope.isSelected = function(id){
87
-        	return $scope.selected.indexOf(id)>=0;
87
+            return $scope.selected.indexOf(id)>=0;
88 88
         }*/
89
-        
90
-       /* // 批量结束维修
91
-    	$scope.moreDelete = function () {
92
-    		var ids = "";
93
-    		for(var i=0; i<$scope.selected.length; i++){
94
-    			ids +=$scope.selected[i]+",";
95
-    		}
96
-    		if(ids!=""){
97
-    			$http({
98
-    				method: 'POST',
99
-    				url: APP_CONFIG.baseUrl + '/deviceRepair/endMore',
100
-    				data: {
101
-    					deviceListJson: angular.toJson({"id":ids})
102
-    				}
103
-    			}).then(function successCallback(response) {
104
-    				if (response.data.status == "success") {
105
-    					alert("结束维修成功!");
106
-    					$scope.loadData();
107
-    				} else {
108
-    					alert("结束维修失败!");
109
-    				}
110
-    			}, function errorCallback(response) {
111
-    				// 请求失败执行代码
112
-    			});
113
-    		}else{
114
-    			alert("请选择要结束维修的器材");
115
-    		}
116
-    	}
117
-    	
118
-    */
89
+
90
+        /* // 批量结束维修
91
+         $scope.moreDelete = function () {
92
+             var ids = "";
93
+             for(var i=0; i<$scope.selected.length; i++){
94
+                 ids +=$scope.selected[i]+",";
95
+             }
96
+             if(ids!=""){
97
+                 $http({
98
+                     method: 'POST',
99
+                     url: APP_CONFIG.baseUrl + '/deviceRepair/endMore',
100
+                     data: {
101
+                         deviceListJson: angular.toJson({"id":ids})
102
+                     }
103
+                 }).then(function successCallback(response) {
104
+                     if (response.data.status == "success") {
105
+                         alert("结束维修成功!");
106
+                         $scope.loadData();
107
+                     } else {
108
+                         alert("结束维修失败!");
109
+                     }
110
+                 }, function errorCallback(response) {
111
+                     // 请求失败执行代码
112
+                 });
113
+             }else{
114
+                 alert("请选择要结束维修的器材");
115
+             }
116
+         }
117
+
118
+     */
119 119
     })
120
-    
121
-     //器材信息
122
-    .controller("deviceRepairSaveCtrl", function($scope, $http,$state,$rootScope,deviceRepairService,deviceGetService, $stateParams, APP_CONFIG) {
123
-    	//根据id查询数据
124
-   			$scope.loadDataById = function(id) {
125
-      		 deviceRepairService.loadDataById(id).then(function(data){
126
-      	         $scope.deviceRepairMassage = data;
127
-      	         console.log(data);
128
-      	     },function(data){
129
-      	         console.log(data);
130
-      	     });
131
-   		 }
132
-   			var id=$stateParams.id;
133
-   			$scope.loadDataById(id);
120
+
121
+    //器材信息
122
+    .controller("deviceRepairSaveCtrl", function ($scope, $http, $state, $rootScope, deviceRepairService, deviceGetService, $stateParams, APP_CONFIG) {
123
+        //根据id查询数据
124
+        $scope.loadDataById = function (id) {
125
+            deviceRepairService.loadDataById(id).then(function (data) {
126
+                $scope.deviceRepairMassage = data;
127
+                console.log(data);
128
+            }, function (data) {
129
+                console.log(data);
130
+            });
131
+        }
132
+        var id = $stateParams.id;
133
+        $scope.loadDataById(id);
134 134
     })
135
-    
136
-    
137
-        .controller("deviceRepairAddCtrl", function($scope, $http,$state,$rootScope,deviceRepairService,deviceKeepService,deviceGetService, $stateParams, APP_CONFIG) {
138
-        	
139
-        	$scope.deviceRepair={};
140
-
141
-            //获取名称
142
-            $scope.deviceNameChange=function(){
143
-                deviceKeepService.getDeviceName().then(function(data){
144
-                    $scope.deviceNameList=data;
145
-                    //console.log(data);
146
-                },function(data){
147
-                    console.log(data);
148
-                })
149
-            }
150
-        	
151
-        	$scope.deviceNameChange();
152
-       	
153
-            //获取规格型号
154
-            $scope.deviceModelChange=function(){
155
-                var deviceName = $scope.deviceRepair.deviceName;
156
-                deviceKeepService.getDeviceModel(deviceName).then(function(data){
157
-                    $scope.deviceInputList=data;
158
-                    console.log(data);
159
-                },function(data){
160
-                    console.log(data);
161
-                })
135
+
136
+
137
+    .controller("deviceRepairAddCtrl", function ($scope, $http, $state, $rootScope, deviceRepairService, deviceKeepService, deviceGetService, $stateParams, APP_CONFIG, $filter) {
138
+
139
+        $scope.deviceRepair = {};
140
+
141
+        //获取名称
142
+        $scope.deviceNameChange = function () {
143
+            deviceKeepService.getDeviceName().then(function (data) {
144
+                $scope.deviceNameList = data;
145
+                //console.log(data);
146
+            }, function (data) {
147
+                console.log(data);
148
+            })
149
+        }
150
+
151
+        $scope.deviceNameChange();
152
+
153
+        //获取规格型号
154
+        $scope.deviceModelChange = function () {
155
+            var deviceName = $scope.deviceRepair.deviceName;
156
+            deviceKeepService.getDeviceModel(deviceName).then(function (data) {
157
+                $scope.deviceInputList = data;
158
+                console.log(data);
159
+            }, function (data) {
160
+                console.log(data);
161
+            })
162
+        }
163
+
164
+        //获取设备编码
165
+        $scope.deviceSbCodeModelChange = function () {
166
+            var deviceName = $scope.deviceRepair.deviceName;
167
+            var model = $scope.deviceRepair.model;
168
+            deviceKeepService.deviceSbCodeModelChange(deviceName, model).then(function (data) {
169
+                $scope.deviceUseCountList = data;
170
+
171
+            }, function (data) {
172
+                console.log(data);
173
+            })
174
+        }
175
+        //获取故障数量
176
+        $scope.gzNumberchange = function () {
177
+            var number = $scope.deviceRepair.number;
178
+            deviceKeepService.deviceBySbCode(number).then(function (data) {
179
+                $scope.deviceRepair.repairSumnumber = data;
180
+            }, function (data) {
181
+                console.log(data);
182
+            })
183
+        }
184
+        //维修数量改变事件
185
+        $scope.getCountChange = function () {
186
+            var repairNumber = $scope.deviceRepair.repairNumber;
187
+            var brokenCount = $scope.deviceRepair.repairSumnumber;
188
+            if (brokenCount < repairNumber) {
189
+                alert("超过范围");
190
+                $scope.deviceRepair.repairNumber = "";
162 191
             }
163
-        	
164
-            //获取设备编码
165
-            $scope.deviceSbCodeModelChange=function(){
166
-                var deviceName = $scope.deviceRepair.deviceName;
167
-                var model = $scope.deviceRepair.model;
168
-                deviceKeepService.deviceSbCodeModelChange(deviceName,model).then(function(data){
169
-                    $scope.deviceUseCountList=data;
170
-
171
-                },function(data){
172
-                    console.log(data);
173
-                })
192
+        }
193
+        // 提交表单
194
+        $scope.deviceRepair.orgId = $rootScope.userInfo.orgId;
195
+        $scope.deviceRepair.commitPeople = $rootScope.userInfo.realName; // 提交人
196
+        $scope.deviceRepair.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
197
+        var validator = $("#deviceRepair-form").validate();
198
+        $scope.saveData = function () {
199
+            $scope.deviceRepair.repairStart = $("#disableStart").val();
200
+            if (validator.form()) {
201
+                $http({
202
+                    method: 'POST',
203
+                    url: APP_CONFIG.deviceUrl + '/deviceRepair/save',
204
+                    data: {
205
+                        deviceRepairJson: angular.toJson($scope.deviceRepair)
206
+                    }
207
+                }).then(function successCallback(response) {
208
+                    if (response.data.status == "success") {
209
+                        alert("保存成功!");
210
+                        $state.go('app.business.device.manage.deviceRepairList');
211
+                    } else {
212
+                        alert("保存失败!");
213
+                    }
214
+                }, function errorCallback(response) {
215
+                    // 请求失败执行代码
216
+                });
174 217
             }
175
-       	     //获取故障数量
176
-       	     $scope.gzNumberchange= function() {
177
-                 var number = $scope.deviceRepair.number;
178
-                 deviceKeepService.deviceBySbCode(number).then(function(data){
179
-                     $scope.deviceRepair.repairSumnumber = data;
180
-                 },function(data){
181
-                     console.log(data);
182
-                 })
183
-       	     }
184
-       	 //维修数量改变事件
185
-       		 $scope.getCountChange = function(){
186
-       			 var repairNumber=$scope.deviceRepair.repairNumber;
187
-       			var brokenCount=$scope.deviceRepair.repairSumnumber;
188
-       			 if(brokenCount<repairNumber){
189
-       				 alert("超过范围");
190
-       				 $scope.deviceRepair.repairNumber="";
191
-       			 }
192
-       		 }
193
-        	// 提交表单
194
-       		  $scope.deviceRepair.orgId = $rootScope.userInfo.orgId;
195
-            var validator = $("#deviceRepair-form").validate();
196
-        	$scope.saveData = function () {
197
-                $scope.deviceRepair.repairStart = $("#disableStart").val();
198
-                if (validator.form()) {
199
-                    $http({
200
-                        method: 'POST',
201
-                        url: APP_CONFIG.deviceUrl + '/deviceRepair/save',
202
-                        data: {
203
-                        	deviceRepairJson: angular.toJson($scope.deviceRepair)
204
-                        }
205
-                    }).then(function successCallback(response) {
206
-                        if (response.data.status == "success") {
207
-                            alert("保存成功!");
208
-                            $state.go('app.business.device.manage.deviceRepairList');
209
-                        } else {
210
-                            alert("保存失败!");
211
-                        }
212
-                    }, function errorCallback(response) {
213
-                        // 请求失败执行代码
214
-                    });
215
-                }
216
-        	}
217
-           
218
-        })
218
+        }
219
+
220
+    })

+ 10 - 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;
@@ -272,4 +274,10 @@ angular.module('app.business').controller("deviceStorageCtrl", function ($scope,
272 274
         var checkNumber = /^[1-9]\d*$/g;
273 275
         return this.optional(element) || (checkNumber.test(value));
274 276
     }, "请输入正确的整数类型,不能有小数!");
277
+    
278
+    // 自定义验证,验证数字
279
+    $.validator.addMethod("validDouble", function (value, element, params) {
280
+        var checkNumber = /^(?!0+(?:\.0+)?$)(?:[1-9]\d*|0)(?:\.\d{1,4})?$/;
281
+        return this.optional(element) || (checkNumber.test(value));
282
+    }, "请输入正确的数值类型,最多4位小数!");
275 283
 });

+ 5 - 1
src/main/resources/static/app/business/device/views/deviceAccount-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>台账列表</h2>
12 12
                     </header>
13 13
                     <div>
14 14
                         <div class="widget-body no-padding">
@@ -50,6 +50,8 @@
50 50
                             <th data-class="expand">规格型号</th>
51 51
                             <th data-hide="phone">库存数量</th>
52 52
                             <th data-hide="phone">故障数量</th>
53
+                            <th data-hide="phone">提交人</th>
54
+                            <th data-hide="phone">提交时间</th>
53 55
                          <!--   <th data-hide="phone,tablet"> 操作</th>-->
54 56
                         </tr>
55 57
                         </thead>
@@ -73,6 +75,8 @@
73 75
 									<span ng-if="device.sbms==null">0</span>
74 76
 									<span ng-if="device.sbms!=null">{{device.sbms}}</span>
75 77
 								</td>
78
+								<td>{{device.refresher}}</td>
79
+								<td>{{device.refreshTime}}</td>
76 80
 							<!--	<td>
77 81
 									<a href-void ng-click="showViewInput(device.ssfl,device.sbyqmc,device.sbggxh)"><i class="fa fa-info-circle"></i>查看</a>
78 82
                         			&lt;!&ndash; <a has-permission="517" href-void ng-click="showEditInput(device.id)"><i class="fa fa-edit"></i>修改</a>

+ 14 - 0
src/main/resources/static/app/business/device/views/deviceAdd.html

@@ -143,6 +143,20 @@
143 143
                                         </table>
144 144
                                     </div>
145 145
                                 </fieldset>
146
+                                <fieldset>
147
+                                    <div class="row">
148
+                                        <section class="col col-3">
149
+                                            <label class="input">提交人:
150
+                                                <input type="text" ng-model="deviceCheck.commitPeople" name="commitPeople" ng-readonly="true">
151
+                                            </label>
152
+                                        </section>
153
+                                        <section class="col col-3">
154
+                                            <label class="input">提交时间:
155
+                                                <input type="text" ng-model="deviceCheck.commitTime" name="commitTime" ng-readonly="true">
156
+                                            </label>
157
+                                        </section>
158
+                                    </div>
159
+                                </fieldset>
146 160
                                 <footer>
147 161
                                     <div class="row">
148 162
                                         <div class="col-md-12">

+ 4 - 0
src/main/resources/static/app/business/device/views/deviceCheck-list.html

@@ -54,6 +54,8 @@
54 54
 							<th data-class="expand">盘点单号</th>
55 55
 							<th data-class="expand">负责人</th>
56 56
 							<th data-class="expand">盘点时间</th>
57
+							<th data-class="expand">提交人</th>
58
+							<th data-class="expand">提交时间</th>
57 59
                             <th data-hide="phone,tablet"> 操作</th>
58 60
                         </tr>
59 61
                         </thead>
@@ -65,6 +67,8 @@
65 67
 								<td>{{deviceList.checkNumber}}</td>
66 68
 								<td>{{deviceList.checkPerson}}</td>
67 69
 								<td>{{deviceList.checkDate | date :'yyyy-MM-dd HH:mm:ss'}}</td>
70
+								<td>{{deviceList.commitPeople}}</td>
71
+								<td>{{deviceList.commitTime}}</td>
68 72
 								<td>
69 73
 									<a has-permission="703" href-void ng-click="loadDataById(deviceList.checkNumber,'1')"><i class="fa fa-info-circle"></i>明细</a>
70 74
 									<a has-permission="704" href-void ng-click="loadDataById(deviceList.checkNumber,'2')"><i class="fa fa-edit"></i>修改</a>

+ 18 - 3
src/main/resources/static/app/business/device/views/deviceGet-add.html

@@ -123,18 +123,19 @@
123 123
 														   ng-change="getCountChange()" placeholder="领用数量" validInteger="true" required>
124 124
 												</label>
125 125
 										</section>
126
-
127 126
 										<!-- <section class="col col-3">
128 127
 											<label class="label">存放位置:<span style="color: red;">*</span></label>
129 128
 											<label class="select">
130
-												<select ng-model="deviceGet.depotId" name="depotId" 
129
+												<select ng-model="deviceGet.depotId" name="depotId"
131 130
 														ng-options="equipmentEquipmentPool.id as equipmentEquipmentPool.putPosition for equipmentEquipmentPool in equipmentEquipmentPool "
132 131
 														class="form-control" ng-disabled="isNotEdit" required>
133 132
 													<option value="">--请选择--</option>
134 133
 												</select>
135 134
 											</label>
136 135
 										</section> -->
137
-										<section class="col col-10">
136
+									</div>
137
+									<div class="row">
138
+										<section class="col col-9">
138 139
 												<label class="input">
139 140
 													<span>备注:</span>
140 141
 													<input type="text" ng-model="deviceGet.remark" name="remark" placeholder="备注" ng-readonly="isNotEdit">
@@ -148,6 +149,20 @@
148 149
 												</label>
149 150
 										</section>
150 151
 									</div>
152
+									<div class="row">
153
+										<section class="col col-3">
154
+											<label class="input">
155
+												<span>提交人:</span>
156
+												<input type="text" ng-model="deviceGet.commitPeople" name="commitPeople" ng-readonly="true">
157
+											</label>
158
+										</section>
159
+										<section class="col col-3">
160
+											<label class="input">
161
+												<span>提交时间:</span>
162
+												<input type="text" ng-model="deviceGet.commitTime" name="commitTime" ng-readonly="true">
163
+											</label>
164
+										</section>
165
+									</div>
151 166
 								</fieldset>
152 167
 								<footer>
153 168
 									<div class="row">

+ 14 - 0
src/main/resources/static/app/business/device/views/deviceGet-back.html

@@ -74,6 +74,20 @@
74 74
 											</label>
75 75
 										</section>
76 76
 									</div>
77
+									<div class="row">
78
+										<section class="col col-3">
79
+											<label class="label">提交人:</label>
80
+											<label class="input">
81
+												<input type="text" ng-model="deviceGet.commitPeople" name="commitPeople" ng-readonly="true">
82
+											</label>
83
+										</section>
84
+										<section class="col col-3">
85
+											<label class="label">提交时间:</label>
86
+											<label class="input">
87
+												<input type="text" ng-model="deviceGet.commitTime" name="commitTime" ng-readonly="true">
88
+											</label>
89
+										</section>
90
+									</div>
77 91
 								</fieldset>
78 92
 								<footer>
79 93
 									<div class="row">

+ 12 - 4
src/main/resources/static/app/business/device/views/deviceKeep-add.html

@@ -68,10 +68,6 @@
68 68
 												</select>
69 69
 											</label>
70 70
 										</section>
71
-
72
-										
73
-									</div>
74
-									<div class="row">
75 71
 										<section class="col col-3">
76 72
 											<label class="label">保养开始时间:<span style="color: red;">*</span></label>
77 73
 											<label class="input">
@@ -79,6 +75,8 @@
79 75
 													   ng-readonly="isNotEdit" placeholder="保养开始时间" required onClick="WdatePicker({lang:'zh-cn'})">
80 76
 											</label>
81 77
 										</section>
78
+									</div>
79
+									<div class="row">
82 80
 										<section class="col col-3">
83 81
 												<label class="input">
84 82
 													<label class="label">保养负责人:</label>
@@ -95,6 +93,16 @@
95 93
 														   
96 94
 												</label>
97 95
 										</section>
96
+										<section class="col col-3">
97
+											<label class="input">提交人:
98
+												<input type="text" ng-model="deviceList.commitPeople" name="commitPeople" ng-readonly="true">
99
+											</label>
100
+										</section>
101
+										<section class="col col-3">
102
+											<label class="input">提交时间:
103
+												<input type="text" ng-model="deviceList.commitTime" name="commitTime" ng-readonly="true">
104
+											</label>
105
+										</section>
98 106
 									</div>
99 107
 								</fieldset>
100 108
 								<footer>

+ 4 - 0
src/main/resources/static/app/business/device/views/deviceKeep-olist.html

@@ -20,6 +20,8 @@
20 20
                             <th data-hide="phone">保养开始日期</th>
21 21
                             <th data-hide="phone,tablet">保养结束日期</th>
22 22
                             <th data-hide="phone,tablet">设备状况</th>
23
+                            <th data-hide="phone,tablet">提交人</th>
24
+                            <th data-hide="phone,tablet">提交时间</th>
23 25
                         </tr>
24 26
                         </thead>
25 27
                         <tbody>
@@ -31,6 +33,8 @@
31 33
 								<td>{{deviceKeep.keepStart | date :'yyyy-MM-dd '}}</td>
32 34
 								<td>{{deviceKeep.keepEnd | date :'yyyy-MM-dd'}}</td>
33 35
 								<td>{{deviceKeep.keepStatus==0?'正常':'保养中'}}</td>
36
+                                <td>{{deviceKeep.commitPeople}}</td>
37
+                                <td>{{deviceKeep.commitTime}}</td>
34 38
                         	</tr>
35 39
                         </tbody>
36 40
                         </table>

+ 4 - 0
src/main/resources/static/app/business/device/views/deviceOut-list.html

@@ -42,6 +42,8 @@
42 42
                             <th data-hide="phone,tablet">生产厂家</th>
43 43
                             <th data-hide="phone,tablet">单价</th>
44 44
                             <!-- <th data-hide="phone,tablet">存放地点</th> -->
45
+							<th data-class="expand">提交人</th>
46
+							<th data-class="expand">提交时间</th>
45 47
                             <th data-hide="phone,tablet"> 操作</th>
46 48
                         </tr>
47 49
                         </thead>
@@ -66,6 +68,8 @@
66 68
 								<td>{{device.sysm}}</td>
67 69
 								<td>{{device.sccj}}</td>
68 70
 								<td>{{device.cgjg}}</td>
71
+								<td>{{device.refresher}}</td>
72
+								<td>{{device.refreshTime}}</td>
69 73
 								<!-- <td>{{device.positionName}}</td> -->
70 74
 								<td>
71 75
 									<span ng-show="{{device.status == 1}}">

+ 14 - 2
src/main/resources/static/app/business/device/views/deviceRepair-add.html

@@ -91,14 +91,26 @@
91 91
 														   placeholder="设备管理员" >
92 92
 												</label>
93 93
 										</section>
94
-										 <section class="col col-10">
94
+										 <section class="col col-9">
95 95
 												<label class="input">
96 96
 													<span>备注:</span>
97 97
 													<input type="text" ng-model="deviceRepair.remark" name="remark" placeholder="备注">
98 98
 													<input type="hidden" ng-model="deviceRepair.orgId" name="orgId">
99 99
 												</label>
100 100
 										</section>  
101
-									</div>       
101
+									</div>
102
+									<div class="row">
103
+										<section class="col col-3">
104
+											<label class="input">提交人:
105
+												<input type="text" ng-model="deviceRepair.commitPeople" name="commitPeople" ng-readonly="true">
106
+											</label>
107
+										</section>
108
+										<section class="col col-3">
109
+											<label class="input">提交时间:
110
+												<input type="text" ng-model="deviceRepair.commitTime" name="commitTime" ng-readonly="true">
111
+											</label>
112
+										</section>
113
+									</div>
102 114
 								</fieldset>
103 115
 								<footer>
104 116
 									<div class="row">

+ 4 - 0
src/main/resources/static/app/business/device/views/deviceRepair-olist.html

@@ -25,6 +25,8 @@
25 25
                                 <th data-hide="phone,tablet">维修负责人</th>
26 26
                                 <th data-hide="phone,tablet">设备管理员</th>
27 27
                                 <th data-hide="phone,tablet">维修状态</th>
28
+                                <th data-hide="phone,tablet">提交人</th>
29
+                                <th data-hide="phone,tablet">提交时间</th>
28 30
                                 <th data-hide="phone,tablet">备注</th>
29 31
                             </tr>
30 32
                             </thead>
@@ -41,6 +43,8 @@
41 43
                                 <td>{{deviceRepair.repairer}}</td>
42 44
                                 <td>{{deviceRepair.deviceManager}}</td>
43 45
                                 <td>{{deviceRepair.repairStatus==0?'正常':deviceRepair.repairStatus==1?'维修中':'故障'}}</td>
46
+                                <td>{{deviceRepair.commitPeople}}</td>
47
+                                <td>{{deviceRepair.commitTime}}</td>
44 48
                                 <td>{{deviceRepair.remark}}</td>
45 49
                             </tr>
46 50
                             </tbody>

+ 36 - 5
src/main/resources/static/app/business/device/views/deviceStorage-edit.html

@@ -88,7 +88,7 @@
88 88
                                                 <label class="label">单价(万元)<span style="color: red;">*</span></label>
89 89
                                                 <label class="input">
90 90
                                                     <input type="text" ng-model="dSbxxsjy.cgjg" name="cgjg" ng-readonly="isNotEdit" required
91
-                                                           placeholder="单价" validInteger="true" />
91
+                                                           placeholder="单价" validDouble="true" />
92 92
                                                 </label>
93 93
                                             </section>
94 94
                                             <section class="col col-3">
@@ -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">
@@ -251,11 +267,10 @@
251 267
                                                 </label>
252 268
                                             </section>
253 269
                                             <section class="col col-3">
254
-                                                <label class="label">单价(万元):</label>
270
+                                                <label class="label">单价(万元):<span style="color: red;">*</span></label>
255 271
                                                 <label class="input">
256
-                                                    <input type="text" ng-model="dSbxxsjy.cgjg"
257
-                                                           ng-readonly="isNotEdit"
258
-                                                           placeholder="单价" validInteger="true">
272
+                                                    <input type="text" ng-model="dSbxxsjy.cgjg" name="cgjg" ng-readonly="isNotEdit"
273
+                                                           placeholder="单价" validDouble="true" required />
259 274
                                                 </label>
260 275
                                             </section>
261 276
                                             <section class="col col-3">
@@ -347,6 +362,22 @@
347 362
                                                 </label>
348 363
                                             </section>
349 364
                                         </div>
365
+                                        <div class="row">
366
+                                            <section class="col col-3">
367
+                                                <label class="input">
368
+                                                    <label class="label">提交人:</label>
369
+                                                    <input type="text" ng-model="dSbxxsjy.refresher" ng-disabled="true">
370
+                                                </label>
371
+                                            </section>
372
+                                            <section class="col col-3">
373
+                                                <label class="label">提交时间:</label>
374
+                                                <label class="input">
375
+                                                    <input type="text" ng-model="dSbxxsjy.refreshTime" name="refreshTime"
376
+                                                           onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})"
377
+                                                           ng-disabled="true">
378
+                                                </label>
379
+                                            </section>
380
+                                        </div>
350 381
                                     </div>
351 382
                                 </fieldset>
352 383
                                 <div>

+ 12 - 1
src/main/resources/static/app/business/facility/controller/facilityGetListCtrl.js

@@ -65,6 +65,8 @@ angular.module('app.business')
65 65
 })
66 66
 
67 67
     .controller("addFacilityGetCtrl", function($scope, $filter,$http,$state,$rootScope, FacilityGetService, equipmentEquipmentPoolService,enumService,$stateParams, APP_CONFIG) {
68
+        // 初始化
69
+        $scope.repairInfo = {};
68 70
         //树形下拉框获取设施分类
69 71
         // $scope.getDeviceName = function(deviceName, deviceType) {
70 72
         // 	//$scope.deviceType=angular.fromJson($scope.device.deviceType);
@@ -87,8 +89,14 @@ angular.module('app.business')
87 89
                         var receiveFacility = angular.fromJson($stateParams.facility);
88 90
 						$scope.repairInfo = receiveFacility;
89 91
                     }
92
+                     if($stateParams.isNotEdit != null) {
93
+                         if ($stateParams.isNotEdit == "false") {
94
+                             // 修改
95
+                             $scope.repairInfo.commitPeople = $rootScope.userInfo.realName; // 提交人
96
+                             $scope.repairInfo.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
97
+                         }
98
+                     }
90 99
                  }, 1000);
91
-                 
92 100
 		     }, function(data){
93 101
 		         console.log(data);
94 102
 		     });
@@ -113,6 +121,9 @@ angular.module('app.business')
113 121
         if($stateParams.isNotEdit != null){
114 122
     	    if ($stateParams.isNotEdit == "false") {
115 123
                 $scope.isNotEdit = false;
124
+                // 保存/修改
125
+                $scope.repairInfo.commitPeople = $rootScope.userInfo.realName; // 提交人
126
+                $scope.repairInfo.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
116 127
             } else if ($stateParams.isNotEdit == "true") {
117 128
                 $scope.isNotEdit = true;
118 129
             }

+ 28 - 10
src/main/resources/static/app/business/facility/controller/facilityKeepListCtrl.js

@@ -65,7 +65,9 @@ angular.module('app.business')
65 65
 })
66 66
 
67 67
     .controller("addfacilityKeepCtrl", function($scope, $filter,$http,$state,$rootScope, facilityKeepService, equipmentEquipmentPoolService,enumService,$stateParams, APP_CONFIG) {
68
-        //树形下拉框获取设施分类
68
+        // 初始化
69
+        $scope.keepInfo = {};
70
+            //树形下拉框获取设施分类
69 71
         // $scope.getDeviceName = function(deviceName, deviceType) {
70 72
         // 	//$scope.deviceType=angular.fromJson($scope.device.deviceType);
71 73
         // 	//$scope.device.deviceName=angular.fromJson($scope.device.deviceName);
@@ -86,6 +88,12 @@ angular.module('app.business')
86 88
                         var receiveFacility = angular.fromJson($stateParams.facility);
87 89
                         $scope.keepInfo = receiveFacility;
88 90
                     }
91
+                     if($stateParams.isNotEdit != null){
92
+                         if ($stateParams.isNotEdit == "false") {
93
+                             $scope.keepInfo.commitPeople = $rootScope.userInfo.realName; // 提交人
94
+                             $scope.keepInfo.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
95
+                         }
96
+                     }
89 97
                  }, 1000);
90 98
                  
91 99
 		     }, function(data){
@@ -109,15 +117,7 @@ angular.module('app.business')
109 117
         //  var disabled = false;
110 118
     	//  $("#deviceInput-form input").attr("disabled",disabled);
111 119
         //  $("#deviceInput-form select").attr("disabled",disabled);
112
-        if($stateParams.isNotEdit != null){
113
-    	    if ($stateParams.isNotEdit == "false") {
114
-                $scope.isNotEdit = false;
115
-            } else if ($stateParams.isNotEdit == "true") {
116
-                $scope.isNotEdit = true;
117
-            }
118
-        }else{
119
-            $scope.isNotEdit = false;
120
-        }
120
+
121 121
         if(!$stateParams.facility) {
122 122
             // $scope.getDeviceName('', '5476');
123 123
             $scope.keepInfo = {
@@ -128,13 +128,31 @@ angular.module('app.business')
128 128
                 bz: '',
129 129
             };
130 130
         }
131
+
132
+        if($stateParams.isNotEdit != null){
133
+            if ($stateParams.isNotEdit == "false") {
134
+                $scope.isNotEdit = false;
135
+                // 保存/修改
136
+                $scope.keepInfo.commitPeople = $rootScope.userInfo.realName; // 提交人
137
+                $scope.keepInfo.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
138
+            } else if ($stateParams.isNotEdit == "true") {
139
+                $scope.isNotEdit = true;
140
+            }
141
+        }else{
142
+            $scope.isNotEdit = false;
143
+        }
144
+
131 145
         $scope.useFacilityChange = function(e) {
132 146
             $scope.facility = $scope.facilityList.find(function(v) {
133 147
                 return v.id == $scope.keepInfo.basicsId;
134 148
             });
135 149
             $scope.keepInfo.ssfl = $scope.facility.ssfl;
136 150
 			$scope.keepInfo.ssmc = $scope.facility.ssmc;
151
+            $scope.keepInfo.commitPeople = $rootScope.userInfo.realName; // 提交人
152
+            $scope.keepInfo.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
137 153
         };
154
+
155
+
138 156
          // 存放位置
139 157
         //  $scope.loadData = function() {
140 158
         //  	equipmentEquipmentPoolService.getPageInfo(null, null,null).then(function(data){

+ 19 - 9
src/main/resources/static/app/business/facility/controller/facilityListCtrl.js

@@ -53,8 +53,13 @@ angular.module('app.business')
53 53
 
54 54
     // 报废
55 55
     $scope.scrap = function(facility) {
56
+         if (!confirm("您确定要报废吗?")) {
57
+             return;
58
+         }
56 59
         facility.sszt = "0";
57 60
         facility.bfrq = $filter('date')(new Date(), "yyyy-MM-dd");
61
+        facility.commitPeople = $rootScope.userInfo.realName; // 提交人
62
+        facility.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
58 63
         facilityListService.savaFacility({dFacilitiesBasicsJson : angular.toJson(facility)}).then(function (response) {
59 64
             if(response.status == "success"){
60 65
                 alert("已报废");
@@ -112,15 +117,7 @@ angular.module('app.business')
112 117
         //  var disabled = false;
113 118
     	//  $("#deviceInput-form input").attr("disabled",disabled);
114 119
         //  $("#deviceInput-form select").attr("disabled",disabled);
115
-        if($stateParams.isNotEdit != null){
116
-    	    if ($stateParams.isNotEdit == "false") {
117
-                $scope.isNotEdit = false;
118
-            } else if ($stateParams.isNotEdit == "true") {
119
-                $scope.isNotEdit = true;
120
-            }
121
-        }else{
122
-            $scope.isNotEdit = false;
123
-        }
120
+
124 121
         if($stateParams.facility) {
125 122
             var receiveFacility = angular.fromJson($stateParams.facility);
126 123
             $scope.facilityInfo = receiveFacility;
@@ -135,6 +132,19 @@ angular.module('app.business')
135 132
                 bz: '',
136 133
             };
137 134
         }
135
+
136
+        if($stateParams.isNotEdit != null){
137
+            if ($stateParams.isNotEdit == "false") {
138
+                $scope.isNotEdit = false;
139
+                // 新增/修改
140
+                $scope.facilityInfo.commitPeople = $rootScope.userInfo.realName; // 提交人
141
+                $scope.facilityInfo.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
142
+            } else if ($stateParams.isNotEdit == "true") {
143
+                $scope.isNotEdit = true;
144
+            }
145
+        }else{
146
+            $scope.isNotEdit = false;
147
+        }
138 148
          // 存放位置
139 149
         //  $scope.loadData = function() {
140 150
         //  	equipmentEquipmentPoolService.getPageInfo(null, null,null).then(function(data){

+ 14 - 0
src/main/resources/static/app/business/facility/views/add-facility-get.html

@@ -113,6 +113,20 @@
113 113
                                                 </label>
114 114
                                         </section>
115 115
                                     </div>
116
+									<div class="row">
117
+										<section class="col col-3">
118
+											<label class="label">提交人:</label>
119
+											<label class="input">
120
+												<input type="text" ng-model="repairInfo.commitPeople" name="commitPeople" ng-readonly="true" required>
121
+											</label>
122
+										</section>
123
+										<section class="col col-3">
124
+											<label class="label">提交时间:</label>
125
+											<label class="input">
126
+												<input type="text" ng-model="repairInfo.commitTime" name="commitTime" ng-readonly="true" required>
127
+											</label>
128
+										</section>
129
+									</div>
116 130
 								</fieldset>
117 131
 								<footer>
118 132
 									<div class="row">

+ 14 - 0
src/main/resources/static/app/business/facility/views/add-facility-keep.html

@@ -99,6 +99,20 @@
99 99
                                                 </label>
100 100
                                         </section>
101 101
                                     </div>
102
+									<div class="row">
103
+										<section class="col col-3">
104
+											<label class="label">提交人:</label>
105
+											<label class="input">
106
+												<input type="text" ng-model="keepInfo.commitPeople" name="commitPeople" ng-readonly="true" required>
107
+											</label>
108
+										</section>
109
+										<section class="col col-3">
110
+											<label class="label">提交时间:</label>
111
+											<label class="input">
112
+												<input type="text" ng-model="keepInfo.commitTime" name="commitTime" ng-readonly="true" required>
113
+											</label>
114
+										</section>
115
+									</div>
102 116
 								</fieldset>
103 117
 								<footer>
104 118
 									<div class="row">

+ 13 - 3
src/main/resources/static/app/business/facility/views/add-facility.html

@@ -21,8 +21,7 @@
21 21
                                         </section>
22 22
                                         <section class="col col-3">
23 23
 											<label class="label"  id="devicename-label">设施分类:</label>
24
-											  <label class="select" id="deviceName-label">
25
-											 <multi-select-tree 
24
+											 <multi-select-tree
26 25
 					                            disabled-tree="isNotEdit"
27 26
 					                            data-input-model="deviceNameTreeData" 
28 27
 					                            data-output-model="facilityInfo.ssfl"
@@ -32,7 +31,6 @@
32 31
 					                            data-callback="selectOnly1Or2(item, selectedItems)">
33 32
 					                        </multi-select-tree>
34 33
 											 <em><span style="color: #D56161;margin-top:6px;padding:0 1px;font-style:normal;font-size:11px;line-height:15px;" id="devicename-error"></span></em>
35
-											</label>
36 34
 										</section>
37 35
                                         <section class="col col-3">
38 36
 											<label class="select">
@@ -87,6 +85,18 @@
87 85
                                                 </label>
88 86
                                         </section>
89 87
                                     </div>
88
+									<div class="row">
89
+										<section class="col col-3">
90
+											<label class="input">提交人:
91
+												<input type="text" ng-model="facilityInfo.commitPeople" name="commitPeople" ng-disabled="true" required>
92
+											</label>
93
+										</section>
94
+										<section class="col col-3">
95
+											<label class="input">提交时间:
96
+												<input type="text" ng-model="facilityInfo.commitTime" name="commitTime" ng-disabled="true" required>
97
+											</label>
98
+										</section>
99
+									</div>
90 100
 								</fieldset>
91 101
 								<footer>
92 102
 									<div class="row">

+ 35 - 55
src/main/resources/static/app/business/jsgl/controller/jsglCtrl.js

@@ -67,7 +67,7 @@ angular.module('app.business')
67 67
     }
68 68
 
69 69
 })
70
-.controller("jsglEditCtrl", function($scope, $http, $filter, $state, $rootScope, $stateParams, $uibModal, APP_CONFIG, jsglService, warehouseService, customerService, commonUtilService ) {
70
+.controller("jsglEditCtrl", function($scope, $http, $filter, $state, $rootScope, $stateParams, $uibModal, APP_CONFIG, jsglService, warehouseService, customerService, commonUtilService) {
71 71
     var id = $stateParams.id;
72 72
     var butType = $stateParams.butType;
73 73
     $scope.jslx = $stateParams.jslx;
@@ -79,7 +79,6 @@ angular.module('app.business')
79 79
     	$scope.top_title = "出库结算详情";
80 80
     	$scope.sectionHide = false;
81 81
         // 非必填
82
-        $('#remarks').attr("required", "true");
83 82
         $scope.isNotHide = true;
84 83
     }
85 84
     var isNotEdit = false;//大多数文本框
@@ -93,6 +92,12 @@ angular.module('app.business')
93 92
 			$scope.jsgl.orgId = $rootScope.orgInfo.orgId;
94 93
 			$scope.loadWare($scope.jsgl.houseId);
95 94
             $scope.remarksChange();
95
+            if ("" != id) {
96
+                if (butType != "show") {
97
+                    $scope.jsgl.commitPeople = $rootScope.userInfo.realName; // 提交人
98
+                    $scope.jsgl.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
99
+                }
100
+            }
96 101
 	    },function(data){
97 102
 	        console.log(data);
98 103
 	    });
@@ -124,6 +129,8 @@ angular.module('app.business')
124 129
     	$scope.jsgl.fpzt = "1"; //发票状态默认1正常
125 130
     	$scope.jsgl.bcjsfs = "1"; //付款方式默认1转账
126 131
     	$scope.jsgl.ywlx = "1"; //业务类型是非散粮类型
132
+        $scope.jsgl.commitPeople = $rootScope.userInfo.realName; // 提交人
133
+        $scope.jsgl.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
127 134
     }
128 135
 	
129 136
 	$scope.getReceiveContract = function() {
@@ -196,49 +203,8 @@ angular.module('app.business')
196 203
     	}, function (data) {
197 204
 			console.log(data);
198 205
 		});
199
-	}
206
+	};
200 207
 
201
-	/**
202
-	 * 计算本次结算金额 = 本次结算数量 * 本次结算单价
203
-	 * 保留两位小数
204
-	 */
205
-    //将v四舍五入,且保留n位小数
206
-    $scope.getMath_N = function(v, n) {
207
-        if (isNaN(v) || v == "") {
208
-            if (isNaN(n) || v == "") {
209
-                v = "0.00";
210
-            } else if (n == 0) {
211
-                v = "0";
212
-            } else {
213
-                v = "";
214
-                for (var i = 1; i <= n; i++) {
215
-                    if (i == 1) {
216
-                        v = "0.0";
217
-                    } else {
218
-                        v = v+"0";
219
-                    }
220
-                }
221
-            }
222
-        } else {
223
-            v = Math.round(v*100)/100;
224
-            v = v.toString();
225
-            var rs = v.indexOf('.');
226
-            if (rs < 0) {
227
-                if (n > 0) {
228
-                    for (var i = 1; i <= n; i++) {
229
-                        if (i == 1) {
230
-                            v = v+".0";
231
-                        } else {
232
-                            v = v+"0";
233
-                        }
234
-                    }
235
-                }
236
-            }else{
237
-                while(v.length <= rs + n){v += '0';}
238
-            }
239
-        }
240
-        return v;
241
-    };
242 208
 	$scope.calculate = function() {
243 209
 		var bcjssl = $scope.jsgl.bcjssl;
244 210
 		var bcjsdj = $scope.jsgl.bcjsdj;
@@ -262,7 +228,10 @@ angular.module('app.business')
262 228
 		 * 
263 229
 		 */
264 230
 		var bcjsje = $scope.jsgl.bcjssl * 1000 * $scope.jsgl.bcjsdj * 1000 / 1000000;
265
-		$scope.jsgl.bcjsje = $scope.getMath_N(bcjsje, 2);
231
+        //将v四舍五入,且保留n位小数
232
+		$scope.jsgl.bcjsje = commonUtilService.getMath_N(bcjsje, 2);
233
+        // 备注必填效验
234
+        $scope.remarksChange();
266 235
 	};
267 236
 
268 237
     // 备注必填效验
@@ -274,7 +243,7 @@ angular.module('app.business')
274 243
             $scope.isNotHide = false;
275 244
 		} else {
276 245
             // 非必填
277
-            $('#remarks').attr("required", "true");
246
+            $("#remarks").removeAttr("required");
278 247
             $scope.isNotHide = true;
279 248
 		}
280 249
     };
@@ -300,15 +269,18 @@ angular.module('app.business')
300 269
     	var fp_s = $scope.jsgl.fpStart;
301 270
     	var fp_e = $scope.jsgl.fpEnd;
302 271
     	var fps = $scope.jsgl.fps;
303
-    	if (fp_s == null && fp_e == null && fps == null) {
304
-    		alert("连续发票号和不连续发票号至少要录入一种,不能都为空值!");
305
-    		return;
306
-    	} else {
307
-    		if ((fp_s == null && fp_e != null) || (fp_s != null && fp_e == null)) {
308
-    			alert("连续发票号码不能只录入起始值或只录入终止值!");
309
-    			return;
310
-    		}
311
-    	}
272
+        var bcjsje_check = $scope.jsgl.bcjsje;
273
+        if (bcjsje_check!=0 || bcjsje_check!=0.00) {
274
+            if (fp_s == null && fp_e == null && fps == null) {
275
+                alert("连续发票号和不连续发票号至少要录入一种,不能都为空值!");
276
+                return;
277
+            } else {
278
+                if ((fp_s == null && fp_e != null) || (fp_s != null && fp_e == null)) {
279
+                    alert("连续发票号码不能只录入起始值或只录入终止值!");
280
+                    return;
281
+                }
282
+            }
283
+        }
312 284
     	if ($scope.jsgl.yhzh == null) {
313 285
     		alert("请补全对应客户档案信息!");
314 286
     		return;
@@ -358,6 +330,12 @@ angular.module('app.business')
358 330
 			$scope.jsgl = data;
359 331
 			$scope.jsgl.orgId = $rootScope.orgInfo.orgId;
360 332
 			$scope.loadWare($scope.jsgl.houseId);
333
+            if ("" != id) {
334
+                if (butType != "show") {
335
+                    $scope.jsgl.commitPeople = $rootScope.userInfo.realName; // 提交人
336
+                    $scope.jsgl.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
337
+                }
338
+            }
361 339
 	    },function(data){
362 340
 	        console.log(data);
363 341
 	    });
@@ -389,6 +367,8 @@ angular.module('app.business')
389 367
     	$scope.jsgl.fpzt = "1"; //发票状态默认1正常
390 368
     	$scope.jsgl.bcjsfs = "1"; //付款方式默认1转账
391 369
     	$scope.jsgl.ywlx = "0"; //业务类型是散粮类型
370
+        $scope.jsgl.commitPeople = $rootScope.userInfo.realName; // 提交人
371
+        $scope.jsgl.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
392 372
     }
393 373
 
394 374
 	//获取储备粮外面的自建通知单列表

+ 14 - 0
src/main/resources/static/app/business/jsgl/views/jsgl-edit.html

@@ -227,6 +227,20 @@
227 227
                                             </label>
228 228
                                         </section>
229 229
                                     </div>
230
+                                    <div class="row">
231
+                                        <section class="col col-4">
232
+                                            <label class="label">提交人:</label>
233
+                                            <label class="input">
234
+                                                <input type="text" ng-model="jsgl.commitPeople" name="commitPeople" ng-readonly="true" required>
235
+                                            </label>
236
+                                        </section>
237
+                                        <section class="col col-4">
238
+                                            <label class="label">提交时间:</label>
239
+                                            <label class="input">
240
+                                                <input type="text" ng-model="jsgl.commitTime" name="commitTime" ng-readonly="true" required>
241
+                                            </label>
242
+                                        </section>
243
+                                    </div>
230 244
                                 </fieldset>
231 245
 
232 246
                                 <div>

+ 14 - 0
src/main/resources/static/app/business/jsgl/views/jsgl-sl-edit.html

@@ -222,6 +222,20 @@
222 222
                                             </label>
223 223
                                         </section>
224 224
                                     </div>
225
+                                    <div class="row">
226
+                                        <section class="col col-3">
227
+                                            <label class="label">提交人:</label>
228
+                                            <label class="input">
229
+                                                <input type="text" ng-model="jsgl.commitPeople" name="commitPeople" ng-readonly="true" required>
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="jsgl.commitTime" name="commitTime" ng-readonly="true" required>
236
+                                            </label>
237
+                                        </section>
238
+                                    </div>
225 239
                                 </fieldset>
226 240
 
227 241
                                 <div>

+ 69 - 21
src/main/resources/static/app/business/storageSealedConfirmation/controller/pageEditCtrl.js

@@ -1,7 +1,6 @@
1
-angular.module('app.business').controller("pageEditCtrl", function ($scope, $http, $stateParams, $state, $rootScope, APP_CONFIG, $uibModal, pageListService, warehouseService) {
1
+angular.module('app.business').controller("pageEditCtrl", function ($scope, $stateParams, $state, $rootScope, pageListService, warehouseService, productService) {
2 2
     $scope.title = $stateParams.title;
3 3
     $scope.sealedStorage = {};
4
-
5 4
     // console.log("userInfoAllData", $rootScope.userInfoAllData)
6 5
 
7 6
     // 根据id查询数据
@@ -64,10 +63,10 @@ angular.module('app.business').controller("pageEditCtrl", function ($scope, $htt
64 63
         $scope.sealedStorage.saveProcess.applyNameId = $rootScope.userInfo.userId;
65 64
         $scope.sealedStorage.saveProcess.applyName = $rootScope.userInfo.realName;
66 65
 
67
-        if(auditType === '2' && $scope.sealedStorage.auditState === 1) {
66
+        if (auditType === '2' && $scope.sealedStorage.auditState === 1) {
68 67
             $scope.sealedStorage.saveProcess.taskName = '员工提交';
69 68
             $scope.sealedStorage.saveProcess.applyResult = '待审批';
70
-            $scope.sealedStorage.saveProcess.applyContent = $rootScope.userInfo.realName +  '提交';
69
+            $scope.sealedStorage.saveProcess.applyContent = $rootScope.userInfo.realName + '提交';
71 70
             $scope.sealedStorage.auditState = auditType;
72 71
         } else if (auditType === '3') {
73 72
             $scope.sealedStorage.saveProcess.taskName = '驳回';
@@ -105,29 +104,78 @@ angular.module('app.business').controller("pageEditCtrl", function ($scope, $htt
105 104
     $scope.selectNotSealedStorageList();
106 105
 
107 106
     // 货位列表
108
-    $scope.loadWare = function() {
109
-        warehouseService.getStorehouse($rootScope.orgInfo.orgId, $scope.sealedStorage.houseId).then(function(data){
110
-            $scope.warelist = data.wareList;
111
-        },function(data){
112
-            console.log(data);
113
-        });
107
+    $scope.loadWare = function () {
108
+        // datatype 0:仓房,1:油罐
109
+        if ($rootScope.storehouseObj[$scope.sealedStorage.houseId].datatype == 1) {
110
+            // 油罐,没有货位
111
+            $scope.warelist = [];
112
+            $scope.sealedStorage.warehouseId = $scope.sealedStorage.houseId;
113
+            $scope.checkGrainAttribute();
114
+        } else {
115
+            // 仓房获取货位
116
+            warehouseService.getStorehouse($rootScope.orgInfo.orgId, $scope.sealedStorage.houseId).then(function (data) {
117
+                $scope.warelist = data.wareList;
118
+                $scope.hwObj = data.wares;
119
+            }, function (data) {
120
+                console.log(data);
121
+            });
122
+        }
114 123
     };
115 124
 
116 125
     // 获取封仓数据
117
-    $scope.checkGrainAttribute = function() {
118
-        pageListService.checkGrainAttribute($rootScope.orgInfo.orgId, $scope.sealedStorage.houseId, $scope.sealedStorage.warehouseId).then(function(data){
119
-            $scope.sealedStorage = data.data;
120
-        },function(data){
121
-            console.log(data);
122
-        });
126
+    $scope.checkGrainAttribute = function () {
127
+    	// datatype 0:仓房,1:油罐
128
+    	// 存放粮油类型(0:原粮/油,1:成品粮/油)
129
+    	var lylx;
130
+    	if ($rootScope.storehouseObj[$scope.sealedStorage.houseId].datatype == 0) {
131
+    		lylx = $scope.hwObj[$scope.sealedStorage.warehouseId].lylx;
132
+    	} else {
133
+    		lylx = $rootScope.tankObj[$scope.sealedStorage.houseId].lylx;
134
+    	}
135
+
136
+    	if (lylx == "0") {//原粮
137
+    		//查询粮食库存是否已经转成储备粮,并且验证当前批次粮食的入库性质转变单是否已经审批完
138
+    		pageListService.checkGrainAttribute($rootScope.orgInfo.orgId, $scope.sealedStorage.houseId, $scope.sealedStorage.warehouseId).then(function (data) {
139
+    			let sealedStorage = data.data;
140
+                if (sealedStorage === null) {
141
+                    alert("性质转变单未处理完成");
142
+                    $scope.sealedStorage = {};
143
+                } else {
144
+                	$scope.sealedStorage = data.data;
145
+                	$scope.sealedStorage.harvestYear = $rootScope.dicData[$scope.sealedStorage.harvestYear];
146
+                }
147
+    		}, function (data) {
148
+                console.log(data);
149
+            });
150
+    	}
151
+    	if (lylx == "1") {//成品粮
152
+    		//查询成品粮库存,不需要检验入库性质转变单
153
+    		$scope.search = {houseId:$scope.sealedStorage.houseId, wareId:$scope.sealedStorage.warehouseId};
154
+            productService.getNumberList(null, null, $scope.search).then(function(data){
155
+            	if (typeof(data.list[0]) != "undefined" && data.list.length > 0 ) {
156
+            		$scope.sealedStorage.grainAttribute = data.list[0].lyxz;
157
+            		$scope.sealedStorage.grainKind = data.list[0].lypz;
158
+            		$scope.sealedStorage.grainGrade = data.list[0].lydj;
159
+            		$scope.sealedStorage.placeOfOrigin = data.list[0].lycd;
160
+            		var scny = data.list[0].scny;
161
+                    if (scny != "" && scny != null) {
162
+                    	var scnd = scny.substr(0,4);//收货年度
163
+                    	$scope.sealedStorage.harvestYear = scnd;
164
+                    }
165
+            		$scope.sealedStorage.sealedNumber = data.list[0].kcsl*1000;
166
+            		$scope.sealedStorage.orgId = data.list[0].orgId; 
167
+            	}
168
+            },function(data){
169
+                console.log(data);
170
+            });
171
+    	}
123 172
     };
124 173
 
125 174
     // 表单效验
126 175
     var validator = $("#storageSealed-form").validate();
127
-
128 176
     // 保存
129
-    $scope.save = function() {
130
-        if(validator.form()) {
177
+    $scope.save = function () {
178
+        if (validator.form()) {
131 179
             pageListService.saveData($scope.sealedStorage).then(function (data) {
132 180
                 if (data.retCode === '200') {
133 181
                     alert('保存成功');
@@ -142,8 +190,8 @@ angular.module('app.business').controller("pageEditCtrl", function ($scope, $htt
142 190
     };
143 191
 
144 192
     // 修改
145
-    $scope.update = function() {
146
-        if(validator.form()) {
193
+    $scope.update = function () {
194
+        if (validator.form()) {
147 195
             pageListService.updateData($scope.sealedStorage).then(function (data) {
148 196
                 if (data.retCode === '200') {
149 197
                     alert('修改成功');

+ 24 - 2
src/main/resources/static/app/business/storageSealedConfirmation/service/pageListService.js

@@ -11,7 +11,8 @@ angular.module('app.business').service("pageListService", function ($http, $root
11 11
                 auditState  : search.auditState, // 1:待提交,2:待审批,3:驳回,4:已审批,5:审批结束
12 12
                 orgId : $rootScope.userInfo.orgId,
13 13
                 houseId : search.houseId,
14
-                warehouseId : search.warehouseId
14
+                warehouseId : search.warehouseId,
15
+                applyTime : search.applyTime
15 16
             }
16 17
         }).then(function successCallback(response) {
17 18
             // 请求成功执行代码
@@ -42,7 +43,10 @@ angular.module('app.business').service("pageListService", function ($http, $root
42 43
         var d = $q.defer();
43 44
         $http({
44 45
             method : 'GET',
45
-            url : APP_CONFIG.sharedUrl + '/storageSealedConfirmation/checkGrainAttribute/' + orgId + '/' + houseId + '/' + warehouseId
46
+            url : APP_CONFIG.sharedUrl + '/storageSealedConfirmation/checkGrainAttribute/' + orgId + '/' + houseId,
47
+            params : {
48
+                warehouseId : warehouseId
49
+            }
46 50
         }).then(function successCallback(response) {
47 51
             // 请求成功执行代码
48 52
             d.resolve(response.data);
@@ -120,4 +124,22 @@ angular.module('app.business').service("pageListService", function ($http, $root
120 124
         });
121 125
         return d.promise;
122 126
     };
127
+
128
+    this.checkAuditState = function(houseId, harvestYear, warehouseId) {
129
+        var d = $q.defer();
130
+        $http({
131
+            method : 'GET',
132
+            url : APP_CONFIG.sharedUrl + '/storageSealedConfirmation/checkAuditState/' + houseId + '/' + harvestYear,
133
+            params : {
134
+                warehouseId : warehouseId
135
+            }
136
+        }).then(function successCallback(response) {
137
+            // 请求成功执行代码
138
+            d.resolve(response.data);
139
+        }, function errorCallback(response) {
140
+            // 请求失败执行代码
141
+            d.reject("error");
142
+        });
143
+        return d.promise;
144
+    };
123 145
 });

+ 14 - 14
src/main/resources/static/app/business/storageSealedConfirmation/views/pageEdit.html

@@ -36,11 +36,11 @@
36 36
                                             </label>
37 37
                                         </section>
38 38
                                         <section class="col col-3">
39
-                                            <label class="label">货位名称:<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
39
+                                            <label class="label">货位名称:</label>
40 40
                                             <label class="select">
41 41
                                                 <select ng-model="sealedStorage.warehouseId" ng-disabled="isNotEdit" ng-change="checkGrainAttribute()"
42 42
                                                         ng-options="ware.warehouseId as ware.warehouseName for ware in warelist"
43
-                                                        class="form-control" required>
43
+                                                        class="form-control">
44 44
                                                     <option value="">--请选择--</option>
45 45
                                                 </select>
46 46
                                             </label>
@@ -48,15 +48,15 @@
48 48
                                         <section class="col col-3">
49 49
                                             <label class="label">粮食品种:<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
50 50
                                             <label class="input">
51
-                                                <input type="text" ng-model="dicData[sealedStorage.grainKind]" name="idCard"
52
-                                                       placeholder="" ng-readonly="true" sfzhm="true" maxlength="18" required>
51
+                                                <input type="text" ng-model="dicData[sealedStorage.grainKind]" name="grainKind"
52
+                                                       placeholder="" ng-readonly="true" required>
53 53
                                             </label>
54 54
                                         </section>
55 55
                                         <section class="col col-3">
56 56
                                             <label class="label">粮食品性质:<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
57 57
                                             <label class="input">
58
-                                                <input type="text" ng-model="dicData[sealedStorage.grainAttribute]" name="idCard"
59
-                                                       placeholder="" ng-readonly="true" sfzhm="true" maxlength="18" required>
58
+                                                <input type="text" ng-model="dicData[sealedStorage.grainAttribute]" name="grainAttribute"
59
+                                                       placeholder="" ng-readonly="true" required>
60 60
                                             </label>
61 61
                                         </section>
62 62
                                     </div>
@@ -64,29 +64,29 @@
64 64
                                         <section class="col col-3">
65 65
                                             <label class="label">封仓数量(公斤):<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
66 66
                                             <label class="input">
67
-                                                <input type="text" ng-model="sealedStorage.sealedNumber" name="idCard"
68
-                                                       placeholder="" ng-readonly="true" sfzhm="true" maxlength="18" required>
67
+                                                <input type="text" ng-model="sealedStorage.sealedNumber" name="sealedNumber"
68
+                                                       placeholder="" ng-readonly="true" required>
69 69
                                             </label>
70 70
                                         </section>
71 71
                                         <section class="col col-3">
72 72
                                             <label class="label">等级:<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
73 73
                                             <label class="input">
74
-                                                <input type="text" ng-model="dicData[sealedStorage.grainGrade]" name="idCard"
75
-                                                       placeholder="" ng-readonly="true" sfzhm="true" maxlength="18" required>
74
+                                                <input type="text" ng-model="dicData[sealedStorage.grainGrade]" name="grainGrade"
75
+                                                       placeholder="" ng-readonly="true" required>
76 76
                                             </label>
77 77
                                         </section>
78 78
                                         <section class="col col-3">
79 79
                                             <label class="label">产地:<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
80 80
                                             <label class="input">
81
-                                                <input type="text" ng-model="dicData[sealedStorage.placeOfOrigin]" name="idCard"
82
-                                                       placeholder="" ng-readonly="true" sfzhm="true" maxlength="18" required>
81
+                                                <input type="text" ng-model="dicData[sealedStorage.placeOfOrigin]" name="placeOfOrigin"
82
+                                                       placeholder="" ng-readonly="true" required>
83 83
                                             </label>
84 84
                                         </section>
85 85
                                         <section class="col col-3">
86 86
                                             <label class="label">收获年度:<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
87 87
                                             <label class="input">
88
-                                                <input type="text" ng-model="dicData[sealedStorage.harvestYear]" name="idCard"
89
-                                                       placeholder="" ng-readonly="true" sfzhm="true" maxlength="18" required>
88
+                                                <input type="text" ng-model="sealedStorage.harvestYear" name="harvestYear"
89
+                                                       placeholder="" ng-readonly="true" required>
90 90
                                             </label>
91 91
                                         </section>
92 92
                                     </div>

+ 3 - 3
src/main/resources/static/app/intelligent/aeration/controller/aerationJobCtrl.js

@@ -6,7 +6,7 @@ angular.module('app.intelligent')
6 6
 
7 7
 	//通风作业数据查询
8 8
 	$scope.pageInfo = {pageNum : 1, pageSize : 10};
9
-	$scope.aerationJob = {cfbh: ""};
9
+	$scope.aerationJob = {cfmc: null};
10 10
 	$scope.isArchive = false;
11 11
 	$scope.isArchiveHouse = 0;
12 12
     $scope.loadData = function() {
@@ -34,7 +34,7 @@ angular.module('app.intelligent')
34 34
 				}
35 35
 				$scope.aerationJob.createTime = $filter('date')($scope.aerationJob.createTime, "yyyy-MM-dd HH:mm:ss");
36 36
 				//原来代码
37
-				aerationJobService.getPageInfo($scope.pageInfo.pageNum, $scope.pageInfo.pageSize, $scope.aerationJob, null).then(function (data) {
37
+				aerationJobService.getPageInfo($scope.pageInfo.pageNum, $scope.pageInfo.pageSize, $scope.aerationJob, $scope.aerationJob.cfmc).then(function (data) {
38 38
 					$scope.pageInfo = data.data;
39 39
 				}, function (data) {
40 40
 					console.log(data);
@@ -45,7 +45,7 @@ angular.module('app.intelligent')
45 45
 		}else {
46 46
 			$scope.aerationJob.funcType = $stateParams.funcType;//1:代表通风作业开始功能,2:代表通风作业结束功能
47 47
 			$scope.funcType = $stateParams.funcType;
48
-			aerationJobService.getPageInfo($scope.pageInfo.pageNum, $scope.pageInfo.pageSize, $scope.aerationJob, null).then(function (data) {
48
+			aerationJobService.getPageInfo($scope.pageInfo.pageNum, $scope.pageInfo.pageSize, $scope.aerationJob, $scope.aerationJob.cfmc).then(function (data) {
49 49
 				$scope.pageInfo = data.data;
50 50
 			}, function (data) {
51 51
 				console.log(data);

+ 1 - 1
src/main/resources/static/app/intelligent/aeration/views/aerationJob-js-list.html

@@ -24,7 +24,7 @@
24 24
 <!-- 										    <a ng-hide="isArchive" has-permission="703" class="btn btn-primary btn-sm" ng-click="edit(null, 'add', '2')"><i class="fa fa-plus"></i>&nbsp;新&nbsp;增</a> -->
25 25
 											&emsp;
26 26
 											<label> 仓房名称:&emsp;
27
-                                                <select ng-model="aerationJob.cfbh" 
27
+                                                <select ng-model="aerationJob.cfmc" 
28 28
                                                         ng-options="store.storehouseId as store.storehouseName for store in storelist"
29 29
                                                          class="form-control">
30 30
                                                     <option value="">--请选择--</option>

+ 1 - 1
src/main/resources/static/app/intelligent/aeration/views/aerationJob-ks-list.html

@@ -24,7 +24,7 @@
24 24
 										    <a ng-hide="isArchive" has-permission="703" class="btn btn-primary btn-sm" ng-click="edit(null, 'add', '1')"><i class="fa fa-plus"></i>&nbsp;新&nbsp;增</a>
25 25
 											&emsp;
26 26
 											<label> 仓房名称:&emsp;
27
-                                                <select ng-model="aerationJob.cfbh" 
27
+                                                <select ng-model="aerationJob.cfmc" 
28 28
                                                         ng-options="store.storehouseCode as store.storehouseName for store in storelist"
29 29
                                                          class="form-control">
30 30
                                                     <option value="">--请选择--</option>

+ 3 - 3
src/main/resources/static/app/intelligent/fumigation/views/homework/fumHomeWorkProcess-edit.html

@@ -238,9 +238,9 @@
238 238
                             <th><label class="label" style="text-align: center;">{{dicData[fumigationProcess.jx]}}</label></th>
239 239
                         </tr>
240 240
                         <tr>
241
-                            <th><label class="label" style="text-align: center;">领用合计总量</label></th>
241
+                            <th><label class="label" style="text-align: center;">领用合计总量(kg)</label></th>
242 242
                             <th><label class="label" style="text-align: center;">{{fumigationProcess.lyhjzl}}</label></th>
243
-                            <th><label class="label" style="text-align: center;">计划用药量</label></th>
243
+                            <th><label class="label" style="text-align: center;">计划用药量(kg)</label></th>
244 244
                             <th><label class="label" style="text-align: center;">{{fumigation.jhyyl}}</label></th>
245 245
                             <th><label class="label" style="text-align: center;">实际使用总量(kg)<apan style="color: red;">*</apan></label></th>
246 246
                             <th>
@@ -280,7 +280,7 @@
280 280
                             <th><label class="label" style="text-align: center;">浓度(%)<apan style="color: red;">*</apan></label></th>
281 281
                             <th colspan="5">
282 282
                                 <label class="input" style="text-align: center;">
283
-                                    <input type="text" ng-model="fumigationProcess.concentration" name="concentration" ng-readonly="isNotEdit" required />
283
+                                    <input type="text" ng-model="fumigationProcess.concentration" name="concentration" positiveNumber=true ng-readonly="isNotEdit" required />
284 284
                                 </label>
285 285
                             </th>
286 286
                         </tr>

+ 8 - 8
src/main/resources/static/app/intelligent/fumigation/views/plan/forRecord-edit.html

@@ -384,14 +384,14 @@
384 384
 										<table class="table table-striped table-bordered table-hover"  >
385 385
 											<thead>
386 386
 											<tr>
387
-												<th data-class="expand" style="text-align:center;"></th>
388
-												<th data-class="expand" style="text-align:center;">姓名</th>
389
-												<th data-class="expand" style="text-align:center;">职务</th>
390
-												<th data-class="expand" style="text-align:center;">职务资质</th>
391
-												<th data-class="expand" style="text-align:center;">工作任务</th>
392
-												<th data-class="expand" style="text-align:center;">身体情况</th>
393
-												<th data-class="expand" style="text-align:center;">是否经专业培训</th>
394
-												<th data-class="expand" style="text-align:center;">是否为外请</th>
387
+												<th data-class="expand" style="text-align:center;width: 15%;"></th>
388
+												<th data-class="expand" style="text-align:center;width: 10%;">姓名</th>
389
+												<th data-class="expand" style="text-align:center;width: 15%;">职务</th>
390
+												<th data-class="expand" style="text-align:center;width: 10%;">职务资质</th>
391
+												<th data-class="expand" style="text-align:center;width: 20%;">工作任务</th>
392
+												<th data-class="expand" style="text-align:center;width: 10%;">身体情况</th>
393
+												<th data-class="expand" style="text-align:center;width: 10%;">是否经专业培训</th>
394
+												<th data-class="expand" style="text-align:center;width: 10%;">是否为外请</th>
395 395
 											</tr>
396 396
 											</thead>
397 397
 	

+ 7 - 0
src/main/resources/static/app/layout/partials/header.tpl.html

@@ -31,6 +31,7 @@
31 31
 					<a href-void data-slide="prev"><i class="nav-prev"></i></a>
32 32
                     <i class="nav-feng-line"></i>
33 33
 				</div>
34
+				<!--static/styles/css/home/reset-default.css 38 行-->
34 35
 				<div class="carousel-inner">
35 36
 					<!-- Slide 1 -->
36 37
 					<div class="nav-item">
@@ -46,6 +47,12 @@
46 47
 								综合业务</a>
47 48
 							<i class="nav-feng-line"></i>
48 49
 						</div>
50
+						<div has-func="517" ng-hide="isEmergency" class="nav-li" role="presentation" ng-class="{true:'active'}[childSysId==517]">
51
+							<a href-void ng-click="switchTopMenu(517, 'app.warnAndAlarm.temperatureHumidity.threshold')">
52
+								<i class="nav-icon"><img src="styles/img/home-1/nav-icon/zhinaf-icon.png" /></i>
53
+								预警报警</a>
54
+							<i class="nav-feng-line"></i>
55
+						</div>
49 56
 						<div has-func="124" class="nav-li" role="presentation">
50 57
 							<a href="javaScript:void(0)" ng-click="crk()">
51 58
 								<i class="nav-icon"><img src="styles/img/home-1/nav-icon/churk-icon.png" /></i>

+ 402 - 231
src/main/resources/static/app/layout/partials/navigation.tpl.html

@@ -42,7 +42,7 @@
42 42
                     <li has-func="287" data-ui-sref-active="active">
43 43
                         <a data-ui-sref="app.system.resetPwd">重置密码</a>
44 44
                     </li>
45
-                    <li has-func="430"  data-ui-sref-active="active">
45
+                    <li has-func="430" data-ui-sref-active="active">
46 46
                         <a data-ui-sref="app.system.systemLog">日志管理</a>
47 47
                     </li>
48 48
                     <li has-func="217" data-ui-sref-active="active">
@@ -146,11 +146,11 @@
146 146
                                 <a data-ui-sref="app.business.grainReservesManage-receiveNotice">接收通知单</a>
147 147
                             </li>
148 148
                             <li has-func="474" data-menu-collapse>
149
-                              <a href="#">
149
+                                <a href="#">
150 150
                                     <i class="fa fa-lg fa-fw fa-folder-open"></i>性质转变单管理
151
-                              </a>
152
-                              <ul>
153
-                              		<li has-func="476" data-ui-sref-active="active">
151
+                                </a>
152
+                                <ul>
153
+                                    <li has-func="476" data-ui-sref-active="active">
154 154
                                         <a data-ui-sref="app.business.propertyTransitionSheet-list">性质转变单</a>
155 155
                                     </li>
156 156
                                     <li has-func="475" data-ui-sref-active="active">
@@ -158,7 +158,7 @@
158 158
                                     </li>
159 159
                                 </ul>
160 160
                             </li>
161
-                            
161
+
162 162
                             <li has-func="274" data-menu-collapse>
163 163
                                 <a href="#">
164 164
                                     <i class="fa fa-lg fa-fw fa-folder-open"></i>合同管理
@@ -353,7 +353,7 @@
353 353
                             </li>
354 354
                         </ul>
355 355
                     </li>
356
-					<li data-menu-collapse>
356
+                    <li data-menu-collapse>
357 357
                         <a has-func="455" href="#">
358 358
                             <i class="fa fa-fw fa-folder-open"></i>统计管理
359 359
                         </a>
@@ -379,7 +379,7 @@
379 379
                             </li>
380 380
                         </ul>
381 381
                     </li>
382
-                    
382
+
383 383
                     <li data-menu-collapse>
384 384
                         <a has-func="36" href="#">
385 385
                             <i class="fa fa-fw fa-folder-open"></i>业务进度查询
@@ -508,41 +508,41 @@
508 508
 							<li has-func="450">
509 509
 								<a data-ui-sref="app.business.warning.humidity">湿度报警</a>
510 510
 							</li>
511
-							<li has-func="450">
512
-								<a data-ui-sref="app.business.warning.dewing">结露预警</a>
513
-							</li>
514
-							<li has-func="452">
515
-								<a data-ui-sref="app.business.warning.stock">库存超限报警</a>
516
-							</li>
511
+                            <li has-func="450">
512
+                                <a data-ui-sref="app.business.warning.dewing">结露预警</a>
513
+                            </li>
514
+                            <li has-func="452">
515
+                                <a data-ui-sref="app.business.warning.stock">库存超限报警</a>
516
+                            </li>
517 517
                             <li has-func="302">
518 518
                                 <a data-ui-sref="app.business.warning.emptyPoliceList">库存空仓报警</a>
519 519
                             </li>
520 520
                             <li has-func="" data-ui-sref-active="active">
521 521
                                 <a data-ui-sref="app.business.warning.AbnormalEquipment">设备异常报警信息</a>
522 522
                             </li>
523
-							<li data-menu-collapse>
524
-								<a href="#"><i class="fa fa-lg fa-fw fa-folder-open"></i>轮换预警管理</a>
525
-								<ul>
526
-									<li data-ui-sref-active="active">
527
-										<a data-ui-sref="app.business.warning.rotation-warning.plan-warning-time">预警时间</a>
528
-									</li>
529
-									<!-- <li data-ui-sref-active="active">
530
-										<a data-ui-sref="app.business.warning.rotation-warning.plan-warning-set">轮换预警设置</a>
531
-									</li> -->
532
-									<li data-ui-sref-active="active">
533
-										<a data-ui-sref="app.business.warning.rotation-warning.plan-warning-list">预警列表</a>
534
-									</li>
535
-								</ul>
536
-							</li>
537
-							<li has-func="451">
538
-								<a data-ui-sref="app.business.warning.store">超期储存报警</a>
539
-							</li>
540
-							<li has-func="453">
541
-								<a data-ui-sref="app.business.warning.internalControl">内控预警</a>
542
-							</li>
543
-							<li has-func="454">
544
-								<a data-ui-sref="app.business.warning.violation">违规预警</a>
545
-							</li>
523
+                            <li data-menu-collapse>
524
+                                <a href="#"><i class="fa fa-lg fa-fw fa-folder-open"></i>轮换预警管理</a>
525
+                                <ul>
526
+                                    <li data-ui-sref-active="active">
527
+                                        <a data-ui-sref="app.business.warning.rotation-warning.plan-warning-time">预警时间</a>
528
+                                    </li>
529
+                                     <li data-ui-sref-active="active">
530
+                                        <a data-ui-sref="app.business.warning.rotation-warning.plan-warning-set">轮换预警设置</a>
531
+                                    </li>
532
+                                    <li data-ui-sref-active="active">
533
+                                        <a data-ui-sref="app.business.warning.rotation-warning.plan-warning-list">预警列表</a>
534
+                                    </li>
535
+                                </ul>
536
+                            </li>
537
+                            <li has-func="451">
538
+                                <a data-ui-sref="app.business.warning.store">超期储存报警</a>
539
+                            </li>
540
+                            <li has-func="453">
541
+                                <a data-ui-sref="app.business.warning.internalControl">内控预警</a>
542
+                            </li>
543
+                            <li has-func="454">
544
+                                <a data-ui-sref="app.business.warning.violation">违规预警</a>
545
+                            </li>
546 546
                             <li>
547 547
                                 <a data-ui-sref="app.business.warning.intelligentWarn">智能分析报警</a>
548 548
                             </li>
@@ -624,6 +624,141 @@
624 624
 
625 625
                 </ul>
626 626
             </li>
627
+            <!----------------------------------预警报警 start ------------------------------------->
628
+            <li data-menu-collapse id="menu-517" ng-show="childSysId==517">
629
+                <a href="#" style="background: #2259a5 !important">
630
+                    <i class="nav-icon"><img style="margin-bottom: -12px;"
631
+                                             src="styles/img/home-1/nav-icon/zhinaf-icon.png"/></i>
632
+                    <span class="menu-item-parent" style="color:#fff;background: #2259a5 !important">预警报警</span>
633
+                </a>
634
+                <ul>
635
+                    <!--温湿度 start-->
636
+                    <li data-menu-collapse>
637
+                        <a has-func="518" href="#">
638
+                            <i class="fa fa-fw fa-folder-open"></i>温湿度报警
639
+                        </a>
640
+                        <ul>
641
+                            <li has-func="519">
642
+                                <a data-ui-sref="app.warnAndAlarm.temperatureHumidity.threshold">温湿度报警设置</a>
643
+                            </li>
644
+                            <li has-func="520">
645
+                                <a data-ui-sref="app.warnAndAlarm.temperatureHumidity.temperature">温度报警</a>
646
+                            </li>
647
+                            <li has-func="521">
648
+                                <a data-ui-sref="app.warnAndAlarm.temperatureHumidity.humidity">湿度报警</a>
649
+                            </li>
650
+                        </ul>
651
+                    </li>
652
+                    <!--温湿度 end-->
653
+
654
+                    <!--储存超期报警 start-->
655
+                    <li data-menu-collapse>
656
+                        <a has-func="522" href="#">
657
+                            <i class="fa fa-fw fa-folder-open"></i>储存超期报警
658
+                        </a>
659
+                        <ul>
660
+                            <li has-func="523">
661
+                                <a data-ui-sref="app.warnAndAlarm.reservePeriod.setUp">储备年限预警设置</a>
662
+                            </li>
663
+                            <li has-func="524">
664
+                                <a data-ui-sref="app.warnAndAlarm.reservePeriod.ageWarning">储备年限预警</a>
665
+                            </li>
666
+                        </ul>
667
+                    </li>
668
+                    <!--储存超期报警 end-->
669
+
670
+                    <!--设备异常报警 start-->
671
+                    <li data-menu-collapse>
672
+                        <a has-func="525" href="#">
673
+                            <i class="fa fa-fw fa-folder-open"></i>设备异常报警
674
+                        </a>
675
+                        <ul>
676
+                            <li has-func="526">
677
+                                <a data-ui-sref="app.warnAndAlarm.deviceAbnormalAlarm.temperatureFault">测温设备故障</a>
678
+                            </li>
679
+                            <li has-func="527">
680
+                                <a data-ui-sref="app.warnAndAlarm.deviceAbnormalAlarm.temperatureUpFault">测温数据上传故障</a>
681
+                            </li>
682
+                            <li has-func="528">
683
+                                <a data-ui-sref="app.warnAndAlarm.deviceAbnormalAlarm.monitoredFault">监控设备故障</a>
684
+                            </li>
685
+                        </ul>
686
+                    </li>
687
+                    <!--设备异常报警 end-->
688
+                    <!--储存超限预警 start-->
689
+                    <li data-menu-collapse>
690
+                        <a has-func="529" href="#">
691
+                            <i class="fa fa-fw fa-folder-open"></i>储存超限预警
692
+                        </a>
693
+                        <ul>
694
+                            <li has-func="530">
695
+                                <a data-ui-sref="app.warnAndAlarm.storageOverLimit.storeTaskProcess">入库作业过程</a>
696
+                            </li>
697
+                            <li has-func="531">
698
+                                <a data-ui-sref="app.warnAndAlarm.storageOverLimit.storeProcess">存储过程</a>
699
+                            </li>
700
+                        </ul>
701
+                    </li>
702
+                    <!--储存超限预警 end-->
703
+                    <!--同号牌入库预警 start-->
704
+                    <li has-func="532" data-ui-sref-active="active">
705
+                        <a data-ui-sref="app.warnAndAlarm.sameLicensePlate">同号牌入库预警</a>
706
+                    </li>
707
+                    <!--同号牌入库预警 end-->
708
+                    <!--化验不合格车辆再入库预警 start-->
709
+                    <li has-func="533" data-ui-sref-active="active">
710
+                        <a data-ui-sref="app.warnAndAlarm.assayUnqualified">化验不合格车辆再入库预警</a>
711
+                    </li>
712
+                    <!--化验不合格车辆再入库预警 end-->
713
+                    <!--在库异常报警 start-->
714
+                    <li has-func="534" data-ui-sref-active="active">
715
+                        <a data-ui-sref="app.warnAndAlarm.inStorageAbnormal">在库异常报警</a>
716
+                    </li>
717
+                    <!--在库异常报警 end-->
718
+                    <!--检验报告超期预警 start-->
719
+                    <li has-func="535" data-ui-sref-active="active">
720
+                        <a data-ui-sref="app.warnAndAlarm.inspectionReport">检验报告超期预警</a>
721
+                    </li>
722
+                    <!--检验报告超期预警 end-->
723
+                    <!--超耗报警 start-->
724
+                    <li has-func="536" data-ui-sref-active="active">
725
+                        <a data-ui-sref="app.warnAndAlarm.consumeAbove">超耗报警</a>
726
+                    </li>
727
+                    <!--超耗报警 end-->
728
+                    <!--质量报警 start-->
729
+                    <li has-func="537" data-ui-sref-active="active">
730
+                        <a data-ui-sref="app.warnAndAlarm.qualityWarn">质量报警</a>
731
+                    </li>
732
+                    <!--质量报警 end-->
733
+                    <!--空进空出预警 start-->
734
+                    <li has-func="538" data-ui-sref-active="active">
735
+                        <a data-ui-sref="app.warnAndAlarm.emptyInOrSpace">空进空出预警</a>
736
+                    </li>
737
+                    <!--空进空出预警 end-->
738
+                    <!--擅自动用或置换预警 start-->
739
+                    <li has-func="539" data-ui-sref-active="active">
740
+                        <a data-ui-sref="app.warnAndAlarm.unauthorizedOperation">擅自动用或置换预警</a>
741
+                    </li>
742
+                    <!--擅自动用或置换预警 end-->
743
+                    <!--打白条预警 start-->
744
+                    <li has-func="540" data-ui-sref-active="active">
745
+                        <a data-ui-sref="app.warnAndAlarm.issueAnIOU">打白条预警</a>
746
+                    </li>
747
+                    <!--打白条预警 end-->
748
+                    <!--转圈粮预警 start-->
749
+                    <li has-func="547" data-ui-sref-active="active">
750
+                        <a data-ui-sref="app.warnAndAlarm.zqlWarning">转圈粮预警</a>
751
+                    </li>
752
+                    <!--转圈粮预警 end-->
753
+                    <!--亏库预警 start-->
754
+                    <li has-func="548" data-ui-sref-active="active">
755
+                        <a data-ui-sref="app.warnAndAlarm.lossWarning">亏库预警</a>
756
+                    </li>
757
+                    <!--亏库预警 end-->
758
+
759
+                </ul>
760
+            </li>
761
+            <!----------------------------------预警报警 end ------------------------------------->
627 762
             <li data-menu-collapse id="menu-17" ng-show="childSysId==17">
628 763
                 <a href="#" style="background: #2259a5;">
629 764
                     <i class="nav-icon"><img style="margin-bottom: -12px;"
@@ -706,8 +841,8 @@
706 841
                         </ul>
707 842
                     </li>
708 843
                     <li has-func="58" data-ui-sref-active="active">
709
-                        <!--<a href="app/monitor/MonitorMFC-右键管理员运行.exe">控件下载</a>-->
710
-                        <a href="app/monitor/VideoWebPlugin.exe" title="监控控件">控件下载</a>
844
+                        <a href="app/monitor/MonitorMFC-右键管理员运行.exe">控件下载</a>
845
+                        <!--<a href="app/monitor/VideoWebPlugin.exe" title="监控控件">控件下载</a>-->
711 846
                     </li>
712 847
                 </ul>
713 848
             </li>
@@ -778,9 +913,9 @@
778 913
                                     <li has-func="76">
779 914
                                         <a data-ui-sref="app.supervise.situation.threeTempChart">粮情五温趋势图</a>
780 915
                                     </li>
781
-<!--                                     <li has-func="77"> -->
782
-<!--                                         <a data-ui-sref="app.supervise.situation.temperature">粮温预警</a> -->
783
-<!--                                     </li> -->
916
+                                    <!--                                     <li has-func="77"> -->
917
+                                    <!--                                         <a data-ui-sref="app.supervise.situation.temperature">粮温预警</a> -->
918
+                                    <!--                                     </li> -->
784 919
                                 </ul>
785 920
                             </li>
786 921
                             <li data-menu-collapse>
@@ -976,7 +1111,7 @@
976 1111
                                     <li has-func="461" data-ui-sref-active="active">
977 1112
                                         <a data-ui-sref="app.storage.safeproduce.safeRiskLevelCtrl">安全风险分级管控</a>
978 1113
                                     </li>
979
-                                    <li  data-ui-sref-active="active">
1114
+                                    <li data-ui-sref-active="active">
980 1115
                                         <a data-ui-sref="app.storage.safeproduce.safeManage">安全隐患排查治理</a>
981 1116
                                     </li>
982 1117
                                     <li has-func="182" data-ui-sref-active="active">
@@ -995,9 +1130,9 @@
995 1130
                                             <li has-func="405" data-ui-sref-active="active">
996 1131
                                                 <a data-ui-sref="app.storage.safeproduce.safeCheck.dailyList">日常检查</a>
997 1132
                                             </li>
998
-											<li has-func="336" data-ui-sref-active="active">
999
-				                                <a data-ui-sref="app.storage.safeproduce.safeCheck.insectPestDetectionList">虫害检查</a>
1000
-				                            </li>
1133
+                                            <li has-func="336" data-ui-sref-active="active">
1134
+                                                <a data-ui-sref="app.storage.safeproduce.safeCheck.insectPestDetectionList">虫害检查</a>
1135
+                                            </li>
1001 1136
                                             <li has-func="183" data-ui-sref-active="active">
1002 1137
                                                 <a data-ui-sref="app.storage.safeproduce.safeCheck.fbelist">节前安全检查</a>
1003 1138
                                             </li>
@@ -1060,53 +1195,59 @@
1060 1195
                                 <!--三级菜单开始-->
1061 1196
                                 <ul>
1062 1197
                                     <li data-ui-sref-active="active">
1063
-                                        <a has-func="468" data-ui-sref="app.storage.qualitycheck.fcklist.sample({type:'0,4,6'})">扦样</a>
1198
+                                        <a has-func="468"
1199
+                                           data-ui-sref="app.storage.qualitycheck.fcklist.sample({type:'0,4,6'})">扦样</a>
1064 1200
                                     </li>
1065
-                                    <li  data-ui-sref-active="active">
1066
-                                        <a has-func="469" data-ui-sref="app.storage.qualitycheck.fcklist.assay({type:'0,4,6'})">化验</a>
1201
+                                    <li data-ui-sref-active="active">
1202
+                                        <a has-func="469"
1203
+                                           data-ui-sref="app.storage.qualitycheck.fcklist.assay({type:'0,4,6'})">化验</a>
1067 1204
                                     </li>
1068
-                                    <li  data-ui-sref-active="active">
1069
-                                        <a has-func="470" data-ui-sref="app.storage.qualitycheck.fcklist.result({type:'0,4,6'})">自检结果</a>
1205
+                                    <li data-ui-sref-active="active">
1206
+                                        <a has-func="470"
1207
+                                           data-ui-sref="app.storage.qualitycheck.fcklist.result({type:'0,4,6'})">自检结果</a>
1070 1208
                                     </li>
1071 1209
                                 </ul>
1072 1210
                             </li>
1073
-<!--                             <li data-menu-collapse> -->
1074
-<!--                                 <a has-func="504" href="#"> -->
1075
-<!--                                     <i class="fa fa-lg fa-fw fa-folder-open"></i>入库检验 -->
1076
-<!--                                 </a> -->
1077
-<!--                                 三级菜单开始 -->
1078
-<!--                                 <ul> -->
1079
-<!--                                     <li data-ui-sref-active="active"> -->
1080
-<!--                                         <a has-func="505" data-ui-sref="app.storage.qualitycheck.rkjy.qy_list({type:6})">扦样</a> -->
1081
-<!--                                     </li> -->
1082
-<!--                                     <li  data-ui-sref-active="active"> -->
1083
-<!--                                         <a has-func="506" data-ui-sref="app.storage.qualitycheck.rkjy.hy_list({type:6})">化验</a> -->
1084
-<!--                                     </li> -->
1085
-<!--                                     <li  data-ui-sref-active="active"> -->
1086
-<!--                                         <a has-func="507" data-ui-sref="app.storage.qualitycheck.rkjy.result({type:6})">入库检验结果</a> -->
1087
-<!--                                     </li> -->
1088
-<!--                                 </ul> -->
1089
-<!--                             </li> -->
1211
+                            <!--                             <li data-menu-collapse> -->
1212
+                            <!--                                 <a has-func="504" href="#"> -->
1213
+                            <!--                                     <i class="fa fa-lg fa-fw fa-folder-open"></i>入库检验 -->
1214
+                            <!--                                 </a> -->
1215
+                            <!--                                 三级菜单开始 -->
1216
+                            <!--                                 <ul> -->
1217
+                            <!--                                     <li data-ui-sref-active="active"> -->
1218
+                            <!--                                         <a has-func="505" data-ui-sref="app.storage.qualitycheck.rkjy.qy_list({type:6})">扦样</a> -->
1219
+                            <!--                                     </li> -->
1220
+                            <!--                                     <li  data-ui-sref-active="active"> -->
1221
+                            <!--                                         <a has-func="506" data-ui-sref="app.storage.qualitycheck.rkjy.hy_list({type:6})">化验</a> -->
1222
+                            <!--                                     </li> -->
1223
+                            <!--                                     <li  data-ui-sref-active="active"> -->
1224
+                            <!--                                         <a has-func="507" data-ui-sref="app.storage.qualitycheck.rkjy.result({type:6})">入库检验结果</a> -->
1225
+                            <!--                                     </li> -->
1226
+                            <!--                                 </ul> -->
1227
+                            <!--                             </li> -->
1090 1228
                             <li data-ui-sref-active="active">
1091 1229
                                 <a has-func="148" data-ui-sref="app.storage.qualitycheck.sprlist({type:2})">强检</a>
1092 1230
                             </li>
1093 1231
                             <li data-ui-sref-active="active">
1094 1232
                                 <a has-func="150" data-ui-sref="app.storage.qualitycheck.acklist({type:1})">第三方检验</a>
1095 1233
                             </li>
1096
-                             <li data-menu-collapse>
1234
+                            <li data-menu-collapse>
1097 1235
                                 <a has-func="153" href="#">
1098 1236
                                     <i class="fa fa-lg fa-fw fa-folder-open"></i>出库检验
1099 1237
                                 </a>
1100 1238
                                 <!--三级菜单开始-->
1101 1239
                                 <ul>
1102 1240
                                     <li data-ui-sref-active="active">
1103
-                                        <a has-func="471" data-ui-sref="app.storage.qualitycheck.outlist.sample({type:3})">扦样</a>
1241
+                                        <a has-func="471"
1242
+                                           data-ui-sref="app.storage.qualitycheck.outlist.sample({type:3})">扦样</a>
1104 1243
                                     </li>
1105 1244
                                     <li data-ui-sref-active="active">
1106
-                                        <a has-func="472" data-ui-sref="app.storage.qualitycheck.outlist.assay({type:3})">化验</a>
1245
+                                        <a has-func="472"
1246
+                                           data-ui-sref="app.storage.qualitycheck.outlist.assay({type:3})">化验</a>
1107 1247
                                     </li>
1108 1248
                                     <li data-ui-sref-active="active">
1109
-                                        <a has-func="473" data-ui-sref="app.storage.qualitycheck.outlist.result({type:3})">出库检验结果</a>
1249
+                                        <a has-func="473"
1250
+                                           data-ui-sref="app.storage.qualitycheck.outlist.result({type:3})">出库检验结果</a>
1110 1251
                                     </li>
1111 1252
                                 </ul>
1112 1253
                             </li>
@@ -1117,7 +1258,8 @@
1117 1258
                                 <a has-func="401" data-ui-sref="app.storage.qualitycheck.storagesetList">设置管理</a>
1118 1259
                             </li>
1119 1260
                             <li data-ui-sref-active="active">
1120
-                                <a has-func="444" data-ui-sref="app.storage.qualitycheck.qualitystandardMainList">质量标准配制</a>
1261
+                                <a has-func="444"
1262
+                                   data-ui-sref="app.storage.qualitycheck.qualitystandardMainList">质量标准配制</a>
1121 1263
                             </li>
1122 1264
                         </ul>
1123 1265
                     </li>
@@ -1164,8 +1306,8 @@
1164 1306
                             </li>
1165 1307
                         </ul>
1166 1308
                     </li>
1167
-					
1168
-					<li data-menu-collapse>
1309
+
1310
+                    <li data-menu-collapse>
1169 1311
                         <a has-func="482" href="#">
1170 1312
                             <i class="fa fa-lg fa-fw fa-folder-open"></i>损溢单
1171 1313
                         </a>
@@ -1209,11 +1351,31 @@
1209 1351
                     </li>
1210 1352
 
1211 1353
                     <li data-menu-collapse>
1212
-                        <a has-func="92" href="#"><i class="fa fa-lg fa-fw fa-folder-open"></i>
1213
-                            保管账
1214
-                        </a>
1354
+                        <a has-func="92" href="#"><i class="fa fa-lg fa-fw fa-folder-open"></i>原粮保管账</a>
1215 1355
                         <!--三级菜单开始-->
1216 1356
                         <ul>
1357
+                            <li data-menu-collapse>
1358
+                            	<a has-func="541" href="#"><i class="fa fa-lg fa-fw fa-folder-open"></i>分仓保管账</a>
1359
+                            	<ul>
1360
+                            		<li has-func="543" data-ui-sref-active="active">
1361
+                            			<a data-ui-sref="app.storage.account.fcbgz.fcbgzlist({type:'6877'})">储备粮分仓保管账</a>
1362
+                            		</li>
1363
+                            		<li has-func="544" data-ui-sref-active="active">
1364
+                            			<a data-ui-sref="app.storage.account.fcbgz.fcbgzlist({type:'3052'})">商品粮分仓保管账</a>
1365
+                            		</li>
1366
+                            	</ul>
1367
+                            </li>
1368
+                            <li data-menu-collapse>
1369
+                            	<a has-func="542" href="#"><i class="fa fa-lg fa-fw fa-folder-open"></i>保管总账</a>
1370
+                            	<ul>
1371
+                            		<li has-func="545" data-ui-sref-active="active">
1372
+                            			<a data-ui-sref="app.storage.account.fcbgz.bgzzlist({type:'6877'})">保管总账(储备粮)</a>
1373
+                            		</li>
1374
+                            		<li has-func="546" data-ui-sref-active="active">
1375
+                            			<a data-ui-sref="app.storage.account.fcbgz.bgzzlist({type:'3052'})">保管总账(商品粮)</a>
1376
+                            		</li>
1377
+                            	</ul>
1378
+                            </li>
1217 1379
                             <li has-func="155" data-ui-sref-active="active">
1218 1380
                                 <a data-ui-sref="app.storage.account.keepDetailedAccount">保管明细账</a>
1219 1381
                             </li>
@@ -1230,7 +1392,7 @@
1230 1392
                         <!--三级菜单结束-->
1231 1393
                     </li>
1232 1394
 
1233
-					<li data-menu-collapse>
1395
+                    <li data-menu-collapse>
1234 1396
                         <a has-func="137" href="#"><i class="fa fa-lg fa-fw fa-folder-open"></i>
1235 1397
                             粮情分析报告
1236 1398
                         </a>
@@ -1394,16 +1556,20 @@
1394 1556
                                         </a>
1395 1557
                                         <ul>
1396 1558
                                             <li data-ui-sref-active="active">
1397
-                                                <a has-func="146" data-ui-sref="app.business.agent.qualitycheck.fcklist({type:'0,4'})">自检</a>
1559
+                                                <a has-func="146"
1560
+                                                   data-ui-sref="app.business.agent.qualitycheck.fcklist({type:'0,4'})">自检</a>
1398 1561
                                             </li>
1399 1562
                                             <li data-ui-sref-active="active">
1400
-                                                <a has-func="148" data-ui-sref="app.business.agent.qualitycheck.sprlist({type:2})">强检</a>
1563
+                                                <a has-func="148"
1564
+                                                   data-ui-sref="app.business.agent.qualitycheck.sprlist({type:2})">强检</a>
1401 1565
                                             </li>
1402 1566
                                             <li data-ui-sref-active="active">
1403
-                                                <a has-func="150" data-ui-sref="app.business.agent.qualitycheck.acklist({type:1})">第三方检验</a>
1567
+                                                <a has-func="150"
1568
+                                                   data-ui-sref="app.business.agent.qualitycheck.acklist({type:1})">第三方检验</a>
1404 1569
                                             </li>
1405 1570
                                             <li data-ui-sref-active="active">
1406
-                                                <a has-func="153" data-ui-sref="app.business.agent.qualitycheck.outlist({type:3})">出库检验</a>
1571
+                                                <a has-func="153"
1572
+                                                   data-ui-sref="app.business.agent.qualitycheck.outlist({type:3})">出库检验</a>
1407 1573
                                             </li>
1408 1574
                                         </ul>
1409 1575
                                     </li>
@@ -1931,12 +2097,12 @@
1931 2097
                             <!--<li has-func="" data-ui-sref-active="active">-->
1932 2098
                             <!--<a data-ui-sref="app.intelligent.basicgraindistributionset">粮情传感器分布设置</a>-->
1933 2099
                             <!--</li>-->
1934
-<!--                            <li has-func="377" data-ui-sref-active="active">-->
1935
-<!--                                <a data-ui-sref="app.intelligent.basicData.basicThresholdSetList">报警阀值设置</a>-->
1936
-<!--                            </li>-->
1937
-<!--                            <li has-func="378" data-ui-sref-active="active">-->
1938
-<!--                                <a data-ui-sref="app.intelligent.basicData.StationSet">通讯设置</a>-->
1939
-<!--                            </li>-->
2100
+                            <!--                            <li has-func="377" data-ui-sref-active="active">-->
2101
+                            <!--                                <a data-ui-sref="app.intelligent.basicData.basicThresholdSetList">报警阀值设置</a>-->
2102
+                            <!--                            </li>-->
2103
+                            <!--                            <li has-func="378" data-ui-sref-active="active">-->
2104
+                            <!--                                <a data-ui-sref="app.intelligent.basicData.StationSet">通讯设置</a>-->
2105
+                            <!--                            </li>-->
1940 2106
                             <li has-func="379" data-ui-sref-active="active">
1941 2107
                                 <a data-ui-sref="app.intelligent.basicData.stationType">站点类型</a>
1942 2108
                             </li>
@@ -2006,175 +2172,180 @@
2006 2172
                             <i class="fa fa-fw fa-folder-open"></i>仓储业务
2007 2173
                         </a>
2008 2174
                         <ul>
2009
-                    <!--粮情卡开始-->
2010
-                    <li data-menu-collapse>
2011
-                        <a has-func="90" href="#"><i class="fa fa-lg fa-fw fa-folder-open"></i>
2012
-                            粮情卡
2013
-                        </a>
2014
-                        <ul>
2015
-                            <li has-func="403">
2016
-                                <a data-ui-sref="app.archive.storage.foodSituation">原粮粮情卡</a>
2175
+                            <!--粮情卡开始-->
2176
+                            <li data-menu-collapse>
2177
+                                <a has-func="90" href="#"><i class="fa fa-lg fa-fw fa-folder-open"></i>
2178
+                                    粮情卡
2179
+                                </a>
2180
+                                <ul>
2181
+                                    <li has-func="403">
2182
+                                        <a data-ui-sref="app.archive.storage.foodSituation">原粮粮情卡</a>
2183
+                                    </li>
2184
+                                    <li has-func="404">
2185
+                                        <a data-ui-sref="app.archive.storage.productGrain">成品粮粮情卡</a>
2186
+                                    </li>
2187
+                                </ul>
2017 2188
                             </li>
2018
-                            <li has-func="404">
2019
-                                <a data-ui-sref="app.archive.storage.productGrain">成品粮粮情卡</a>
2189
+                            <!--粮情卡结束-->
2190
+                            <!--安全生产开始-->
2191
+                            <li data-menu-collapse><!--原: 安全生产-->
2192
+                                <a has-func="94" href="#"><i class="fa fa-lg fa-fw fa-folder-open"></i>
2193
+                                    粮食安全生产管理</a>
2194
+                                <!--三级菜单开始-->
2195
+                                <ul>
2196
+                                    <li data-menu-collapse><!--原名: 粮情检查管理-->
2197
+                                        <a has-func="118" href="#">
2198
+                                            <i class="fa fa-lg fa-fw fa-folder-open"></i>
2199
+                                            安全检查
2200
+                                        </a>
2201
+                                        <ul>
2202
+                                            <li has-func="405" data-ui-sref-active="active">
2203
+                                                <a data-ui-sref="app.archive.storage.safeproduce.safeCheck.dailyList">日常检查</a>
2204
+                                            </li>
2205
+                                            <li has-func="183" data-ui-sref-active="active">
2206
+                                                <a data-ui-sref="app.archive.storage.safeproduce.safeCheck.fbelist">节前安全检查</a>
2207
+                                            </li>
2208
+                                            <li has-func="184" data-ui-sref-active="active">
2209
+                                                <a data-ui-sref="app.archive.storage.safeproduce.safeCheck.wrslist">风雨雪三查</a>
2210
+                                            </li>
2211
+                                            <li has-func="119" data-ui-sref-active="active">
2212
+                                                <a data-ui-sref="app.archive.storage.safeproduce.safeCheck.ttplist">五温检查</a>
2213
+                                            </li>
2214
+                                            <li has-func="120" data-ui-sref-active="active">
2215
+                                                <a data-ui-sref="app.archive.storage.safeproduce.safeCheck.otherchecklist">其他检查</a>
2216
+                                            </li>
2217
+                                        </ul>
2218
+                                    </li>
2219
+                                </ul>
2220
+                                <!--三级菜单结束-->
2020 2221
                             </li>
2021
-                        </ul>
2022
-                    </li>
2023
-                    <!--粮情卡结束-->
2024
-                    <!--安全生产开始-->
2025
-                    <li data-menu-collapse><!--原: 安全生产-->
2026
-                        <a has-func="94" href="#"><i class="fa fa-lg fa-fw fa-folder-open"></i>
2027
-                            粮食安全生产管理</a>
2028
-                        <!--三级菜单开始-->
2029
-                        <ul>
2030
-                            <li data-menu-collapse><!--原名: 粮情检查管理-->
2031
-                                <a has-func="118" href="#">
2032
-                                    <i class="fa fa-lg fa-fw fa-folder-open"></i>
2033
-                                    安全检查
2222
+                            <!-- 质量管理开始 -->
2223
+                            <li data-menu-collapse>
2224
+                                <a has-func="66" href="#">
2225
+                                    <i class="fa fa-lg fa-fw fa-folder-open"></i>质量管理
2034 2226
                                 </a>
2035 2227
                                 <ul>
2036
-                                    <li has-func="405" data-ui-sref-active="active">
2037
-                                        <a data-ui-sref="app.archive.storage.safeproduce.safeCheck.dailyList">日常检查</a>
2228
+                                    <li data-ui-sref-active="active">
2229
+                                        <a has-func="146"
2230
+                                           data-ui-sref="app.archive.storage.qualitycheck.fcklist({type:'0,4'})">自检</a>
2038 2231
                                     </li>
2039
-                                    <li has-func="183" data-ui-sref-active="active">
2040
-                                        <a data-ui-sref="app.archive.storage.safeproduce.safeCheck.fbelist">节前安全检查</a>
2232
+                                    <li data-ui-sref-active="active">
2233
+                                        <a has-func="148"
2234
+                                           data-ui-sref="app.archive.storage.qualitycheck.sprlist({type:2})">强检</a>
2041 2235
                                     </li>
2042
-                                    <li has-func="184" data-ui-sref-active="active">
2043
-                                        <a data-ui-sref="app.archive.storage.safeproduce.safeCheck.wrslist">风雨雪三查</a>
2236
+                                    <li data-ui-sref-active="active">
2237
+                                        <a has-func="150"
2238
+                                           data-ui-sref="app.archive.storage.qualitycheck.acklist({type:1})">第三方检验</a>
2044 2239
                                     </li>
2045
-                                    <li has-func="119" data-ui-sref-active="active">
2046
-                                        <a data-ui-sref="app.archive.storage.safeproduce.safeCheck.ttplist">五温检查</a>
2240
+                                    <li data-ui-sref-active="active">
2241
+                                        <a has-func="153"
2242
+                                           data-ui-sref="app.archive.storage.qualitycheck.outlist({type:3})">出库检验</a>
2047 2243
                                     </li>
2048
-                                    <li has-func="120" data-ui-sref-active="active">
2049
-                                        <a data-ui-sref="app.archive.storage.safeproduce.safeCheck.otherchecklist">其他检查</a>
2244
+                                    <li data-ui-sref-active="active">
2245
+                                        <a has-func="400"
2246
+                                           data-ui-sref="app.archive.storage.qualitycheck.waterCheckList">水分检验</a>
2050 2247
                                     </li>
2051 2248
                                 </ul>
2052 2249
                             </li>
2053
-                        </ul>
2054
-                        <!--三级菜单结束-->
2055
-                    </li>
2056
-                    <!-- 质量管理开始 -->
2057
-                    <li data-menu-collapse>
2058
-                        <a has-func="66" href="#">
2059
-                            <i class="fa fa-lg fa-fw fa-folder-open"></i>质量管理
2060
-                        </a>
2061
-                        <ul>
2062
-                            <li data-ui-sref-active="active">
2063
-                                <a has-func="146" data-ui-sref="app.archive.storage.qualitycheck.fcklist({type:'0,4'})">自检</a>
2064
-                            </li>
2065
-                            <li data-ui-sref-active="active">
2066
-                                <a has-func="148" data-ui-sref="app.archive.storage.qualitycheck.sprlist({type:2})">强检</a>
2067
-                            </li>
2068
-                            <li data-ui-sref-active="active">
2069
-                                <a has-func="150" data-ui-sref="app.archive.storage.qualitycheck.acklist({type:1})">第三方检验</a>
2070
-                            </li>
2071
-                            <li data-ui-sref-active="active">
2072
-                                <a has-func="153" data-ui-sref="app.archive.storage.qualitycheck.outlist({type:3})">出库检验</a>
2073
-                            </li>
2074
-                            <li data-ui-sref-active="active">
2075
-                                <a has-func="400" data-ui-sref="app.archive.storage.qualitycheck.waterCheckList">水分检验</a>
2076
-                            </li>
2077
-                        </ul>
2078
-                    </li>
2079
-                    <!-- 质量管理结束 -->
2080
-                    <!-- 验收管理结束 -->
2081
-                    <li data-menu-collapse>
2082
-                        <a has-func="67" href="#">
2083
-                            <i class="fa fa-lg fa-fw fa-folder-open"></i>
2084
-                            原粮数量管理
2085
-                        </a>
2086
-                        <ul>
2087
-                            <li has-func="122" data-ui-sref-active="active">
2088
-                                <a data-ui-sref="app.archive.storage.quantity.numberManage-list">库存数量管理</a>
2089
-                            </li>
2250
+                            <!-- 质量管理结束 -->
2251
+                            <!-- 验收管理结束 -->
2090 2252
                             <li data-menu-collapse>
2091
-                                <a has-func="79" href="#">
2092
-                                    <i class="fa fa-lg fa-fw fa-folder-open"></i>出入库记录
2253
+                                <a has-func="67" href="#">
2254
+                                    <i class="fa fa-lg fa-fw fa-folder-open"></i>
2255
+                                    原粮数量管理
2093 2256
                                 </a>
2094
-                                <!--三级菜单开始-->
2095 2257
                                 <ul>
2096
-                                    <li has-func="409" data-ui-sref-active="active">
2097
-                                        <a data-ui-sref="app.archive.storage.quantity.crkresult.trainList">火车出入库记录</a>
2258
+                                    <li has-func="122" data-ui-sref-active="active">
2259
+                                        <a data-ui-sref="app.archive.storage.quantity.numberManage-list">库存数量管理</a>
2098 2260
                                     </li>
2099
-                                    <li has-func="410" data-ui-sref-active="active">
2100
-                                        <a data-ui-sref="app.archive.storage.quantity.crkresult.truckList">汽车出入库记录</a>
2261
+                                    <li data-menu-collapse>
2262
+                                        <a has-func="79" href="#">
2263
+                                            <i class="fa fa-lg fa-fw fa-folder-open"></i>出入库记录
2264
+                                        </a>
2265
+                                        <!--三级菜单开始-->
2266
+                                        <ul>
2267
+                                            <li has-func="409" data-ui-sref-active="active">
2268
+                                                <a data-ui-sref="app.archive.storage.quantity.crkresult.trainList">火车出入库记录</a>
2269
+                                            </li>
2270
+                                            <li has-func="410" data-ui-sref-active="active">
2271
+                                                <a data-ui-sref="app.archive.storage.quantity.crkresult.truckList">汽车出入库记录</a>
2272
+                                            </li>
2273
+                                        </ul>
2101 2274
                                     </li>
2102 2275
                                 </ul>
2103 2276
                             </li>
2104
-                        </ul>
2105
-                    </li>
2106 2277
 
2107
-                    <li data-menu-collapse>
2108
-                        <a has-func="92" href="#"><i class="fa fa-lg fa-fw fa-folder-open"></i>
2109
-                            保管账
2110
-                        </a>
2111
-                        <!--三级菜单开始-->
2112
-                        <ul>
2113
-                            <li has-func="155" data-ui-sref-active="active">
2114
-                                <a data-ui-sref="app.archive.storage.account.keepDetailedAccount">保管明细账</a>
2115
-                            </li>
2116
-                            <li has-func="99" data-ui-sref-active="active">
2117
-                                <a data-ui-sref="app.archive.storage.account.houseKeepAccount">分仓保管账</a>
2278
+                            <li data-menu-collapse>
2279
+                                <a has-func="92" href="#"><i class="fa fa-lg fa-fw fa-folder-open"></i>
2280
+                                    保管账
2281
+                                </a>
2282
+                                <!--三级菜单开始-->
2283
+                                <ul>
2284
+                                    <li has-func="155" data-ui-sref-active="active">
2285
+                                        <a data-ui-sref="app.archive.storage.account.keepDetailedAccount">保管明细账</a>
2286
+                                    </li>
2287
+                                    <li has-func="99" data-ui-sref-active="active">
2288
+                                        <a data-ui-sref="app.archive.storage.account.houseKeepAccount">分仓保管账</a>
2289
+                                    </li>
2290
+                                </ul>
2291
+                                <!--三级菜单结束-->
2118 2292
                             </li>
2119
-                        </ul>
2120
-                        <!--三级菜单结束-->
2121
-                    </li>
2122 2293
 
2123
-                    <!-- 入库情况登统表开始 -->
2124
-                    <li data-menu-collapse>
2125
-                        <a has-func="414" href="#"><i class="fa fa-lg fa-fw fa-folder-open"></i>入库情况登统表</a>
2126
-                        <ul>
2127
-                            <li has-func="415" data-ui-sref-active="active">
2128
-                                <a data-ui-sref="app.archive.storage.registrationTable.wheat">小麦入库情况登统表</a>
2129
-                            </li>
2130
-                            <li has-func="416" data-ui-sref-active="active">
2131
-                                <a data-ui-sref="app.archive.storage.registrationTable.corn">玉米入库情况登统表</a>
2132
-                            </li>
2133
-                            <li has-func="417" data-ui-sref-active="active">
2134
-                                <a data-ui-sref="app.archive.storage.registrationTable.soybean">大豆入库情况登统表</a>
2135
-                            </li>
2136
-                            <li has-func="418" data-ui-sref-active="active">
2137
-                                <a data-ui-sref="app.archive.storage.registrationTable.rice">稻谷入库情况登统表</a>
2138
-                            </li>
2139
-                            <li has-func="419" data-ui-sref-active="active">
2140
-                                <a data-ui-sref="app.archive.storage.registrationTable.crudeOil">大豆原油入库情况登统表</a>
2141
-                            </li>
2142
-                        </ul>
2143
-                    </li>
2144
-                    <!-- 入库情况登统表结束 -->
2145
-                    <!--熏蒸作业-->
2146
-                    <li data-menu-collapse>
2147
-                        <a has-func="221" href="#">
2148
-                            <i class="fa fa-lg fa-fw fa-folder-open"></i>熏蒸信息
2149
-                        </a>
2150
-                        <ul>
2151
-                            <li has-func="245" data-ui-sref-active="active">
2152
-                                <a data-ui-sref="app.archive.storage.fumigation.fumigationPlanList">熏蒸方案申请</a>
2153
-                            </li>
2154
-                            <li has-func="246" data-ui-sref-active="active">
2155
-                                <a data-ui-sref="app.archive.storage.fumigation.fumigationApproveList">熏蒸方案审批</a>
2156
-                            </li>
2157
-                            <li has-func="250" data-ui-sref-active="active">
2158
-                                <a data-ui-sref="app.archive.storage.fumigation.fumHomeWorkProcess">熏蒸作业过程</a>
2294
+                            <!-- 入库情况登统表开始 -->
2295
+                            <li data-menu-collapse>
2296
+                                <a has-func="414" href="#"><i class="fa fa-lg fa-fw fa-folder-open"></i>入库情况登统表</a>
2297
+                                <ul>
2298
+                                    <li has-func="415" data-ui-sref-active="active">
2299
+                                        <a data-ui-sref="app.archive.storage.registrationTable.wheat">小麦入库情况登统表</a>
2300
+                                    </li>
2301
+                                    <li has-func="416" data-ui-sref-active="active">
2302
+                                        <a data-ui-sref="app.archive.storage.registrationTable.corn">玉米入库情况登统表</a>
2303
+                                    </li>
2304
+                                    <li has-func="417" data-ui-sref-active="active">
2305
+                                        <a data-ui-sref="app.archive.storage.registrationTable.soybean">大豆入库情况登统表</a>
2306
+                                    </li>
2307
+                                    <li has-func="418" data-ui-sref-active="active">
2308
+                                        <a data-ui-sref="app.archive.storage.registrationTable.rice">稻谷入库情况登统表</a>
2309
+                                    </li>
2310
+                                    <li has-func="419" data-ui-sref-active="active">
2311
+                                        <a data-ui-sref="app.archive.storage.registrationTable.crudeOil">大豆原油入库情况登统表</a>
2312
+                                    </li>
2313
+                                </ul>
2159 2314
                             </li>
2160
-                            <li has-func="252" data-ui-sref-active="active">
2161
-                                <a data-ui-sref="app.archive.storage.fumigation.fumHomeWorkAfter">熏蒸作业善后</a>
2315
+                            <!-- 入库情况登统表结束 -->
2316
+                            <!--熏蒸作业-->
2317
+                            <li data-menu-collapse>
2318
+                                <a has-func="221" href="#">
2319
+                                    <i class="fa fa-lg fa-fw fa-folder-open"></i>熏蒸信息
2320
+                                </a>
2321
+                                <ul>
2322
+                                    <li has-func="245" data-ui-sref-active="active">
2323
+                                        <a data-ui-sref="app.archive.storage.fumigation.fumigationPlanList">熏蒸方案申请</a>
2324
+                                    </li>
2325
+                                    <li has-func="246" data-ui-sref-active="active">
2326
+                                        <a data-ui-sref="app.archive.storage.fumigation.fumigationApproveList">熏蒸方案审批</a>
2327
+                                    </li>
2328
+                                    <li has-func="250" data-ui-sref-active="active">
2329
+                                        <a data-ui-sref="app.archive.storage.fumigation.fumHomeWorkProcess">熏蒸作业过程</a>
2330
+                                    </li>
2331
+                                    <li has-func="252" data-ui-sref-active="active">
2332
+                                        <a data-ui-sref="app.archive.storage.fumigation.fumHomeWorkAfter">熏蒸作业善后</a>
2333
+                                    </li>
2334
+                                </ul>
2162 2335
                             </li>
2163
-                        </ul>
2164
-                    </li>
2165 2336
 
2166
-                    <li data-menu-collapse>
2167
-                        <a has-func="226" href="#">
2168
-                            <i class="fa fa-lg fa-fw fa-folder-open"></i>通风信息
2169
-                        </a>
2170
-                        <ul>
2171
-                            <li has-func="392" data-ui-sref-active="active">
2172
-                                <a data-ui-sref="app.archive.storage.aeration.aerationJob">通风作业</a>
2337
+                            <li data-menu-collapse>
2338
+                                <a has-func="226" href="#">
2339
+                                    <i class="fa fa-lg fa-fw fa-folder-open"></i>通风信息
2340
+                                </a>
2341
+                                <ul>
2342
+                                    <li has-func="392" data-ui-sref-active="active">
2343
+                                        <a data-ui-sref="app.archive.storage.aeration.aerationJob">通风作业</a>
2344
+                                    </li>
2345
+                                </ul>
2173 2346
                             </li>
2174 2347
                         </ul>
2175 2348
                     </li>
2176
-                        </ul>
2177
-                    </li>
2178 2349
                     <!--点位图规划-->
2179 2350
                     <li data-menu-collapse>
2180 2351
                         <a has-func="380" href="#">

+ 8 - 8
src/main/resources/static/app/storage/controller/dailyListCtrl.js

@@ -16,7 +16,11 @@ angular.module('app.storage')
16 16
                 console.log(data);
17 17
             });
18 18
         }
19
-        $scope.loadData = function() {
19
+        $scope.loadData = function(searchFor) {
20
+            // 搜索条件分页
21
+            if (searchFor === 'searchFor') {
22
+                $scope.pageInfo = {pageNum: 1, pageSize: 10};
23
+            }
20 24
             //归档用
21 25
             if($stateParams.dataState == "archive"){
22 26
                 $scope.isArchive = true;
@@ -119,7 +123,7 @@ angular.module('app.storage')
119 123
 
120 124
 
121 125
     .controller("dailyListAddCtrl", function($scope,$state, $http, $stateParams, StorehouseService, warehouseService,$rootScope, 
122
-    		dailyService, kcswService, keeperService, productService, $filter, APP_CONFIG) {
126
+    		dailyService, kcswService, keeperService, productService, commonUtilService, $filter, APP_CONFIG) {
123 127
 
124 128
         $scope.loadDataById = function(id) {
125 129
             dailyService.loadDataById(id).then(function(data){
@@ -153,7 +157,7 @@ angular.module('app.storage')
153 157
 
154 158
 
155 159
         //通过仓房号,获取货位号.
156
-        $scope.change = function () {
160
+        $scope.change = function (flag) {
157 161
             if ($scope.dailycheck.houseId != null && $scope.dailycheck.houseId != undefined && $scope.dailycheck.houseId != '') {
158 162
                 warehouseService.getStorehouse($rootScope.orgInfo.orgId, $scope.dailycheck.houseId, "0").then(function(data){
159 163
                     $scope.warehouseList = data.wareList;  //下拉列表数据
@@ -162,11 +166,7 @@ angular.module('app.storage')
162 166
                 });
163 167
 
164 168
 				// 通过仓房id 获取保管员姓名
165
-				keeperService.getKeeperNamesByHouseId($scope.dailycheck.houseId).then(function(data){
166
-					$scope.dailycheck.bgy = data.keeperNames
167
-				},function(data){
168
-					console.log(data);
169
-				});
169
+                $scope.dailycheck.bgy = commonUtilService.getKeeperNames($scope.dailycheck.houseId);
170 170
             } else {
171 171
                 // 设置货位号为空.
172 172
                 $scope.dailycheck.warehouseId = null;

+ 31 - 2
src/main/resources/static/app/storage/controller/festivalbeforeCtrl.js

@@ -137,7 +137,19 @@ angular.module('app.storage')
137 137
         };
138 138
 
139 139
         // 限制多选个数(无限制)
140
+        let houseCheckCount = 0;
140 141
         $scope.multipleChoice = function(item, selectedItems) {
142
+            // 检查仓房数 计算
143
+            if (item.isActive && item.selected === undefined) {
144
+                houseCheckCount += 1;
145
+                $scope.festivalbefore.houseCheckCount = houseCheckCount;
146
+            }
147
+            if (item.selected) {
148
+                houseCheckCount -= 1;
149
+                $scope.festivalbefore.houseCheckCount = houseCheckCount;
150
+            }
151
+
152
+            // 限制多选个数(无限制)
141 153
             if (selectedItems  !== undefined && selectedItems.length >= $rootScope.storelist.length) {
142 154
                 return false;
143 155
             } else {
@@ -183,12 +195,29 @@ angular.module('app.storage')
183 195
             $scope.festivalbefore.houseId = storehouseId;
184 196
             $scope.loadData();
185 197
         });*/
198
+        // 效验-检查发现问题
199
+        $.validator.addMethod("checkProblem",function(value,element, params) {
200
+            if ((value.length*2) >= 200) { // Gbase 存储/2
201
+                return this.optional(element);
202
+            }
203
+            return true;
204
+        },"输入最大100字符");
205
+
206
+        // 效验-整改措施
207
+        $.validator.addMethod("checkOpinion",function(value,element, params) {
208
+            if ((value.length*2) >= 200) { // Gbase 存储/2
209
+                return this.optional(element);
210
+            }
211
+            return true;
212
+        },"输入最大100字符");
186 213
 
187 214
         // 提交表单
188 215
         var validator = $("#festivalbefore-form").validate();
189 216
         $scope.saveData = function () {
190
-            console.log("$scope.festivalbefore.houseId", $scope.festivalbefore.houseIdList);
191
-            console.log("$scope.festivalbefore", $scope.festivalbefore);
217
+            if ($scope.festivalbefore.houseIdList.length <= 0) {
218
+                $("#storageDataSelect-error").text("必须填写");
219
+                return;
220
+            }
192 221
             if (validator.form()) {
193 222
                 $scope.festivalbefore.orgId = $rootScope.userInfo.orgId;
194 223
                 $scope.festivalbefore.checkDate = $("input[name='checkDate']").val(); // 时间控件获取值

+ 2 - 7
src/main/resources/static/app/storage/controller/keepAccount/keepDetailedAccountCtrl.js

@@ -196,7 +196,7 @@ angular.module('app.storage').controller("keepDetailedAccountCtrl",
196 196
 	};
197 197
 	
198 198
 })//记账凭证详情(跟保管明细账记账同一个页面)
199
-.controller('keepDetailedAccountEditCtrl', function($scope, $state, $stateParams, $rootScope, $filter, keeperService, keepVoucherService) {
199
+.controller('keepDetailedAccountEditCtrl', function($scope, $state, $stateParams, $rootScope, $filter, keeperService, keepVoucherService, commonUtilService) {
200 200
 
201 201
 	/*----初始化页面数据------start----*/
202 202
 	/**
@@ -247,12 +247,7 @@ angular.module('app.storage').controller("keepDetailedAccountCtrl",
247 247
 			$scope.accountInfo.rcfs = "机械方式";
248 248
 			$scope.accountInfo.jzr = $rootScope.userInfo.realName; //记账人
249 249
 			$scope.accountInfo.jzsj = $filter('date')(new Date(), "yyyy-MM-dd"); //记账时间
250
-			//通过仓房ID带出的保管员
251
-			keeperService.getKeeperNamesByHouseId($scope.accountObj.ch).then(function (data) {
252
-				$scope.accountInfo.bgy = data.keeperNames;
253
-			}, function (data) {
254
-				console.log(data);
255
-			});
250
+			$scope.accountInfo.bgy = commonUtilService.getKeeperNames($scope.accountInfo.ch);
256 251
 		}, function (data) {
257 252
 			console.log(data);
258 253
 		});

+ 16 - 13
src/main/resources/static/app/storage/controller/keeperCtrl.js

@@ -1,7 +1,7 @@
1 1
 "use strict";
2 2
 
3 3
 angular.module('app.storage')
4
-    .controller("keepertransferCtrl", function($scope,$rootScope, $http,$state, $stateParams,StorehouseService,keepertransferService,roleService) {
4
+    .controller("keepertransferCtrl", function($scope,$rootScope, $state, $stateParams,StorehouseService,keepertransferService,roleService) {
5 5
         // 获取列表数据
6 6
         $scope.pageInfo = {pageNum : 1, pageSize : 10};
7 7
         $scope.search = {storehouseId:""};
@@ -89,7 +89,7 @@ angular.module('app.storage')
89 89
     })
90 90
 
91 91
     .controller("keepertransferSaveCtrl", function($scope,$rootScope, $state,$http,$stateParams,keeperService,
92
-                                                   $filter,keepertransferService,warehouseService,roleService,StorehouseService,foodbasicinfoService,keepAccountService) {
92
+                                                   $filter,keepertransferService,warehouseService,roleService,StorehouseService,foodbasicinfoService,keepAccountService, userService) {
93 93
         //下面的判断用于查看页面只读状态
94 94
         if($stateParams.isNotEdit != null){
95 95
             if ($stateParams.isNotEdit == "false") {
@@ -218,7 +218,7 @@ angular.module('app.storage')
218 218
                 var houseId = $scope.keepertransfer.houseId;
219 219
                 var receiveId = $scope.keepertransfer.receiveUser;
220 220
                 var transferId=$rootScope.userInfo.userId;//当前移交的人就是登陆的保管员
221
-                keeperService.updateKeeperHouse(houseId,receiveId,transferId,roleId).then(function (data) {
221
+                keeperService.updateKeeperHouse(houseId, receiveId, transferId, roleId, $rootScope.userInfo.orgId).then(function (data) {
222 222
                     if (data.msg == 'success') {
223 223
                         alert("保存成功!");
224 224
                         $state.go('app.storage.keeper.keepertransferlist');
@@ -246,19 +246,21 @@ angular.module('app.storage')
246 246
                 if(roleId != 0){
247 247
                     //移交人(当前登录人)
248 248
                     var userId=$rootScope.userInfo.userId;
249
-                    keepertransferService.getKeeperByLoginUser(userId,roleId).then(function(data){
250
-                        $scope.transUser = data;
249
+                    userService.getUserList(null, null, $rootScope.userInfo.orgId, roleId, null, userId).then(function(data){
250
+                    	if (data.list.length > 0) {
251
+                    		$scope.transUser = data.list[0];
252
+                    	}
251 253
                         //给移交人赋值 该移交人是登录的保管员
252 254
                         //$("#transUser").val($scope.transUser.name);
253 255
                         $scope.keepertransfer.transUser=$scope.transUser.userId;//给移交人赋值
254
-                        $scope.transUserName=$scope.transUser.name;//给移交人赋值
256
+                        $scope.transUserName=$scope.transUser.realName;//给移交人赋值
255 257
                     },function(data){
256 258
                         // console.log(data);
257 259
                     });
258 260
 
259 261
                     //接收人(当前登录人所在库的所有保管员) 库id通过在后台的session中获取
260
-                    keepertransferService.findreceivedUser($rootScope.userInfo,roleId).then(function(data){
261
-                        $scope.receiveUsers = data;
262
+                    userService.getUserList(null, null, $rootScope.userInfo.orgId, roleId, null, null, userId).then(function(data){
263
+                        $scope.receiveUsers = data.list;
262 264
                     },function(data){
263 265
                         // console.log(data);
264 266
                     });
@@ -316,7 +318,7 @@ angular.module('app.storage')
316 318
 
317 319
     })
318 320
 
319
-    .controller("keeperSaveCtrl", function($scope,$state,$rootScope,$http,$stateParams,roleService,StorehouseService, keeperService, APP_CONFIG) {
321
+    .controller("keeperSaveCtrl", function($scope, $state, $rootScope, $stateParams, roleService, StorehouseService, userService) {
320 322
         if ($stateParams.showType == 1) {
321 323
             $scope.isNotEdit = true;
322 324
         }
@@ -335,8 +337,8 @@ angular.module('app.storage')
335 337
                     var roleId = 8888888;
336 338
                 }
337 339
 
338
-                keeperService.getKeeperListPageInfo($scope.pageInfo.pageNum, $scope.pageInfo.pageSize,$scope.search.name,
339
-                    $scope.search.storehouseId,$rootScope.userInfo.orgId,roleId).then(function(data){
340
+                userService.getUserList($scope.pageInfo.pageNum, $scope.pageInfo.pageSize, $rootScope.orgInfo.orgId,
341
+                		roleId, $scope.search.name).then(function(data){
340 342
                     $scope.pageInfo = data;
341 343
                 },function(data){
342 344
                     console.log(data);
@@ -356,8 +358,9 @@ angular.module('app.storage')
356 358
         }
357 359
 
358 360
         // 查看
359
-        $scope.keeperView = function(id) {
360
-            $state.go('app.storage.keeper.keeperDetails',{id:id, showType:1});
361
+        $scope.keeperView = function(obj) {
362
+        	$rootScope.user = obj;
363
+            $state.go('app.storage.keeper.keeperDetails',{userId:obj.userId, showType:1});
361 364
         }
362 365
 
363 366
         // 仓房列表

+ 3 - 13
src/main/resources/static/app/storage/controller/paymentCtrl.js

@@ -63,7 +63,7 @@ angular.module('app.storage')
63 63
         $scope.editPage = function (id,type) {$state.go('app.storage.payment.edit',{id:id,type:type}); }
64 64
 
65 65
     })
66
-    .controller("paymentEditCtrl", function($scope,$filter,$rootScope,$state, $stateParams,alertService, paymentService, APP_CONFIG) {
66
+    .controller("paymentEditCtrl", function($scope,$filter,$rootScope,$state, $stateParams,alertService, paymentService, commonUtilService) {
67 67
         // 获取数据
68 68
 
69 69
         $scope.loadData = function () {
@@ -118,18 +118,8 @@ angular.module('app.storage')
118 118
                 && $scope.payment.houseId != undefined
119 119
                 && $scope.payment.houseId != '') {
120 120
 
121
-                paymentService.getKepperByHouseId($scope.payment.houseId).then(function(data){
122
-                    var houseNames="";
123
-                    for(var i=0;i<data.length;i++){
124
-                        houseNames+=data[i].name;
125
-                        if(i != data.length-1){
126
-                            houseNames+=",";
127
-                        }
128
-                    }
129
-                    $scope.payment.recorder = houseNames;
130
-                },function (data) {
131
-                    console.log(data);
132
-                });
121
+            	$scope.payment.recorder = commonUtilService.getKeeperNames($scope.payment.houseId);
122
+                
133 123
             } else {
134 124
                 // 设置货位号为空.
135 125
                 $scope.payment.houseId = null;

+ 10 - 3
src/main/resources/static/app/storage/controller/qualitycheckAssayCtrl.js

@@ -88,6 +88,7 @@ angular.module('app.storage')
88 88
 
89 89
         //自检:处理、查看、修改
90 90
         $scope.doProcess = function (id, buttype, typeUpdate) {
91
+            console.log(typeUpdate)
91 92
         	if (typeUpdate == 3) {
92 93
             	$state.go('app.storage.qualitycheck.outlist.outeditAssay',{id : id, isNotEdit : false, buttype : buttype});
93 94
         	} else if (typeUpdate == 0 || typeUpdate == 4 || typeUpdate == 6) {
@@ -297,6 +298,14 @@ angular.module('app.storage')
297 298
                 if($stateParams.buttype == "add"){
298 299
                 	$scope.qualitycheck.checkTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");
299 300
                 	$scope.qualitycheck.checkResult = "0"; //检验结果:默认给合格
301
+                    $scope.qualitycheck.acceptUnite = $rootScope.orgInfo.orgName; // 检验机构
302
+                    $scope.qualitycheck.commitPeople = $rootScope.userInfo.realName; // 提交人
303
+                    $scope.qualitycheck.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
304
+                }
305
+                if ("update" === $stateParams.buttype) {
306
+                    $scope.qualitycheck.commitPeople = $rootScope.userInfo.realName; // 提交人
307
+                    $scope.qualitycheck.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
308
+                    $scope.qualitycheck.acceptUnite = $rootScope.orgInfo.orgName; // 检验机构
300 309
                 }
301 310
                 $scope.qualitycheck.checkTime = $filter('date')($scope.qualitycheck.checkTime, "yyyy-MM-dd HH:mm:ss");
302 311
                 $scope.qualitycheck.applyCheckTime = $filter('date')($scope.qualitycheck.applyCheckTime, "yyyy-MM-dd");
@@ -555,9 +564,7 @@ angular.module('app.storage')
555 564
                         console.log(data);
556 565
                     });
557 566
 
558
-                    if (type != 0) {
559
-                    	$scope.findKeeperNames();
560
-                    }
567
+                    $scope.qualitycheck.keeper = commonUtilService.getKeeperNames($scope.qualitycheck.houseId);
561 568
                 }
562 569
             } else {
563 570
                 // 设置货位号为空.

+ 61 - 4
src/main/resources/static/app/storage/controller/qualitycheckCtrl.js

@@ -349,6 +349,31 @@ angular.module('app.storage')
349 349
         	
350 350
         }
351 351
 
352
+        //更新
353
+        $scope.editEatScore = function(obj) {
354
+        	var params = [];
355
+            params.obj = obj;
356
+            var uibModalInstance = $uibModal.open({
357
+                size:'sm',
358
+                templateUrl: 'app/storage/views/qualitycheck/qualitycheck-first-editEatScore.html',
359
+                controller: 'editEatScoreModalCtrl',
360
+                resolve: {
361
+                    // items是一个回调函数
362
+                    items: function () {
363
+                        // 这个值会被模态框的控制器获取到
364
+                        return params;
365
+                    }
366
+                }
367
+            });
368
+            uibModalInstance.result.then(function (result) {
369
+                if (result != null) {
370
+                	$scope.loadData();
371
+                }
372
+            }, function (reason) {
373
+                console.log(reason);
374
+            });
375
+        }
376
+
352 377
     })
353 378
     .controller("qualitycheckSaveCtrl", function($scope,$state, $http, $stateParams, FileUploader, StorehouseService, warehouseService, keeperService, businessFileService,
354 379
       agentStorehouseService, $rootScope, $filter, enumService, qualitycheckService,keepAccountService, kcswService , productService,APP_CONFIG,agentDepotService,commonUtilService) {
@@ -392,6 +417,12 @@ angular.module('app.storage')
392 417
                         $scope.getGrainDetailKind();
393 418
                     }
394 419
                 }
420
+                if ('update' === $stateParams.buttype) {
421
+                    // 修改时更新提交人,提交时间
422
+                    $scope.qualitycheck.commitPeople = $rootScope.userInfo.realName; // 提交人
423
+                    $scope.qualitycheck.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
424
+                    $scope.qualitycheck.acceptUnite = $rootScope.orgInfo.orgName; // 检验机构
425
+                }
395 426
                 $scope.getzblbData1(data);
396 427
                 $scope.getstoreQualityData1(data);
397 428
                 //获取对应的文件信息
@@ -625,9 +656,7 @@ angular.module('app.storage')
625 656
                         console.log(data);
626 657
                     });
627 658
 
628
-                    if (type != 0) {
629
-                    	$scope.findKeeperNames();
630
-                    }
659
+                	$scope.qualitycheck.keeper = commonUtilService.getKeeperNames($scope.qualitycheck.houseId);
631 660
                 }
632 661
             } else {
633 662
                 // 设置货位号为空.
@@ -1397,7 +1426,7 @@ angular.module('app.storage')
1397 1426
         	value = value.replace(",",',');
1398 1427
         	$scope.qualitycheck.checker = value;
1399 1428
         	var checkNumber = /^[\u4e00-\u9fa5,\|?]{0,128}$/g;
1400
-            return this.optional(element)||(checkNumber.test(value));  
1429
+            return this.optional(element)||(checkNumber.test(value));
1401 1430
         },"请输入汉字,用','号分隔");
1402 1431
         
1403 1432
         //通过检验时间判断部分检验项是否要加载
@@ -1607,4 +1636,32 @@ angular.module('app.storage')
1607 1636
 
1608 1637
         // -----------------------------------------------   上传下载相关     结束           ------------------------------------------------
1609 1638
 
1639
+    })
1640
+    .controller("editEatScoreModalCtrl", function($scope, $state, items, $http, $stateParams, $rootScope, $uibModalInstance, qualitycheckService) {
1641
+
1642
+    	$scope.save = function() {
1643
+    		var validator = $("#gxcczbxx-form").validate();
1644
+    		if (validator.form()) {
1645
+    			items.obj.eatScore = $scope.xmpcpfz;
1646
+    			qualitycheckService.save(items.obj).then(function(datas){
1647
+    				if (datas.status == "success") {
1648
+    					alert("操作成功!");
1649
+    					$scope.cancel(200);
1650
+    				} else {
1651
+    					alert("保存失败!");
1652
+    				}
1653
+    			},function(datas){
1654
+    				console.log(datas);
1655
+    			});
1656
+    		}
1657
+    	}
1658
+
1659
+        // 点叉号"x"关闭模态窗口
1660
+        $scope.cancel = function(s) {
1661
+        	if (s == 200) {
1662
+        		$uibModalInstance.close(200);
1663
+        	} else {
1664
+        		$uibModalInstance.close(500);
1665
+        	}
1666
+        }
1610 1667
     })

+ 166 - 166
src/main/resources/static/app/storage/controller/qualitycheckSampleCtrl.js

@@ -1,85 +1,85 @@
1 1
 "use strict";
2 2
 
3 3
 angular.module('app.storage')
4
-    .controller("qualitycheckSampleCtrl", function($scope, $state, $rootScope, $stateParams, warehouseService, qualitycheckService) {
4
+    .controller("qualitycheckSampleCtrl", function ($scope, $state, $rootScope, $stateParams, warehouseService, qualitycheckService) {
5
+
5 6
 
6
-    	
7 7
         $scope.dicDataList = $rootScope.dicDataList;
8 8
 
9 9
         // 获取列表数据
10
-        $scope.pageInfo = {pageNum : 1, pageSize : 10};
11
-        $scope.search = {storehouseId:"", warehouseId:"",checkResult:null,processState:null,jclx:null};
10
+        $scope.pageInfo = {pageNum: 1, pageSize: 10};
11
+        $scope.search = {storehouseId: "", warehouseId: "", checkResult: null, processState: null, jclx: null};
12 12
 
13
-        if($stateParams.checkResult != null){
13
+        if ($stateParams.checkResult != null) {
14 14
             $scope.search.checkResult = $stateParams.checkResult;
15 15
         }
16 16
 
17 17
         //默认加载数据
18
-        $scope.loadData = function() {
19
-        	var type_update = $stateParams.type;
20
-        	if ($scope.search.jclx == null || $scope.search.jclx == "") {
21
-        		type_update = $stateParams.type;
22
-        	} else {
23
-        		type_update = $scope.search.jclx;
24
-        	}
25
-        	qualitycheckService.getPageInfo($scope.pageInfo.pageNum, $scope.pageInfo.pageSize, type_update, $scope.search.checkResult, 
26
-                    $scope.search.storehouseId, $scope.search.warehouseId, null, null, $scope.search.processState).then(function (data) {
27
-                    $scope.pageInfo = data;
18
+        $scope.loadData = function () {
19
+            var type_update = $stateParams.type;
20
+            if ($scope.search.jclx == null || $scope.search.jclx == "") {
21
+                type_update = $stateParams.type;
22
+            } else {
23
+                type_update = $scope.search.jclx;
24
+            }
25
+            qualitycheckService.getPageInfo($scope.pageInfo.pageNum, $scope.pageInfo.pageSize, type_update, $scope.search.checkResult,
26
+                $scope.search.storehouseId, $scope.search.warehouseId, null, null, $scope.search.processState).then(function (data) {
27
+                $scope.pageInfo = data;
28 28
             }, function (data) {
29
-                    console.log(data);
29
+                console.log(data);
30 30
             });
31 31
         }
32 32
         $scope.loadData();
33 33
 
34 34
         //自检扦样:新增、修改、查看
35
-        $scope.fckEdit = function(id, buttype, processState) {
36
-        	if(processState == 2){
37
-        		alert("该扦样单已完成【化验】,不能修改!");
38
-        		return;
39
-        	}
40
-        	$state.go('app.storage.qualitycheck.fckedit.sample', {id:id, checkType:0, buttype : buttype});
35
+        $scope.fckEdit = function (id, buttype, processState) {
36
+            if (processState == 2) {
37
+                alert("该扦样单已完成【化验】,不能修改!");
38
+                return;
39
+            }
40
+            $state.go('app.storage.qualitycheck.fckedit.sample', {id: id, checkType: 0, buttype: buttype});
41 41
         }
42 42
 
43 43
         //出库检验扦样:新增、修改、查看
44 44
         $scope.ckCheckSample = function (id, buttype, processState) {
45
-        	if(processState == 2){
46
-        		alert("该扦样单已完成【化验】,不能修改!");
47
-        	}else{
48
-                $state.go('app.storage.qualitycheck.outlist.outeditSample',{id : id, checkType:3, buttype : buttype});
45
+            if (processState == 2) {
46
+                alert("该扦样单已完成【化验】,不能修改!");
47
+            } else {
48
+                $state.go('app.storage.qualitycheck.outlist.outeditSample', {id: id, checkType: 3, buttype: buttype});
49 49
 
50
-        	}
50
+            }
51 51
         }
52
-        
52
+
53 53
         //入库检验扦样:新增、查看、修改
54
-        $scope.rkjyEdit = function(id, buttype, processState) {
55
-        	if(buttype == 'update' && processState == 2){
56
-        		alert("该扦样单已完成【化验】,不能修改!");
57
-        		return;
58
-        	}
59
-        	$state.go('app.storage.qualitycheck.rkjy.qy_edit',{id:id, checkType:'6', buttype : buttype});
54
+        $scope.rkjyEdit = function (id, buttype, processState) {
55
+            if (buttype == 'update' && processState == 2) {
56
+                alert("该扦样单已完成【化验】,不能修改!");
57
+                return;
58
+            }
59
+            $state.go('app.storage.qualitycheck.rkjy.qy_edit', {id: id, checkType: '6', buttype: buttype});
60 60
         }
61 61
 
62 62
         // 扦样 -----删除
63
-        $scope.removeSample = function(id, processState) {
64
-        	if(processState == 2){
65
-        		alert("该扦样单已完成【化验】,不能删除!");
66
-        	}else{
67
-        		qualitycheckService.removeById(id).then(function (data) {
68
-                    if(data.msg == "success"){
63
+        $scope.removeSample = function (id, processState) {
64
+            if (processState == 2) {
65
+                alert("该扦样单已完成【化验】,不能删除!");
66
+            } else {
67
+                qualitycheckService.removeById(id).then(function (data) {
68
+                    if (data.msg == "success") {
69 69
                         alert("删除成功");
70 70
                         $scope.loadData();
71
-                    }else{
71
+                    } else {
72 72
                         alert("删除失败");
73 73
                     }
74 74
                 });
75
-        	}
75
+            }
76 76
         }
77 77
 
78 78
         // 货位列表
79
-        $scope.loadWare = function() {
80
-            warehouseService.getStorehouse($rootScope.orgInfo.orgId, $scope.search.storehouseId).then(function(data){
79
+        $scope.loadWare = function () {
80
+            warehouseService.getStorehouse($rootScope.orgInfo.orgId, $scope.search.storehouseId).then(function (data) {
81 81
                 $scope.warelist = data.wareList;
82
-            },function(data){
82
+            }, function (data) {
83 83
                 console.log(data);
84 84
             });
85 85
         }
@@ -93,32 +93,37 @@ angular.module('app.storage')
93 93
         };
94 94
 
95 95
         // 接收广播,切换仓房
96
-        $scope.$on("storeChangeed", function(event, storehouseId) {
96
+        $scope.$on("storeChangeed", function (event, storehouseId) {
97 97
             $scope.search.storehouseId = storehouseId;
98 98
             $scope.loadData();
99 99
             $scope.loadWare();
100 100
         })
101 101
 
102 102
     })
103
-    .controller("qualitycheckSampleSaveCtrl", function($scope,$state, $http, $stateParams, warehouseService, keeperService, 
104
-      $rootScope, $filter, qualitycheckService, kcswService, productService, APP_CONFIG) {
103
+    .controller("qualitycheckSampleSaveCtrl", function ($scope, $state, $http, $stateParams, warehouseService, keeperService,
104
+                                                        $rootScope, $filter, qualitycheckService, kcswService, productService, commonUtilService, APP_CONFIG) {
105 105
 
106
-        $scope.loadDataById = function(id) {
107
-            qualitycheckService.loadDataById(id).then(function(data){
108
-                if(data.qualitycheckInspection!=null) {
106
+        $scope.loadDataById = function (id) {
107
+            qualitycheckService.loadDataById(id).then(function (data) {
108
+                if (data.qualitycheckInspection != null) {
109 109
                     $scope.qualitycheckInspection = data.qualitycheckInspection;
110 110
                 }
111 111
                 $scope.qualitycheck = data.qualitycheck;
112
+                if ($stateParams.id != 0) {
113
+                    if ($stateParams.buttype == "update") {//修改
114
+                        $scope.qualitycheck.commitPeople = $rootScope.userInfo.realName; // 提交人
115
+                        $scope.qualitycheck.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
116
+                    }
117
+                }
112 118
                 $scope.change(0);//获取货位号
113
-
114
-            },function(data){
119
+            }, function (data) {
115 120
             });
116 121
         };
117 122
 
118 123
         //通过仓房号,获取货位号.
119 124
         $scope.change = function (type) {
120
-        	if(type != 0 ){
121
-        		// 设置货位号为空.
125
+            if (type != 0) {
126
+                // 设置货位号为空.
122 127
                 $scope.qualitycheck.warehouseId = null;
123 128
                 //清空带出来的数据
124 129
                 $scope.qualitycheck.subType = null;//品种
@@ -130,26 +135,24 @@ angular.module('app.storage')
130 135
                 $scope.qualitycheck.zhycsj = null;//入库时间
131 136
                 $scope.qualitycheck.keeper = null; //保管员
132 137
                 $scope.qualitycheck.levelUpdate = null; //粮油等级
133
-        	}
138
+            }
134 139
             if ($scope.qualitycheck.houseId != null && $scope.qualitycheck.houseId != undefined && $scope.qualitycheck.houseId != '') {
135
-            	warehouseService.getStorehouse($rootScope.orgInfo.orgId, $scope.qualitycheck.houseId, "0").then(function(data){
136
-                    if(data.wareList.length > 0){
140
+                $scope.qualitycheck.keeper = commonUtilService.getKeeperNames($scope.qualitycheck.houseId);
141
+                warehouseService.getStorehouse($rootScope.orgInfo.orgId, $scope.qualitycheck.houseId, "0").then(function (data) {
142
+                    if (data.wareList.length > 0) {
137 143
                         $scope.warehouseList = data.wareList;  //下拉列表数据
138 144
                         $scope.warehouseObj = data.wares;	//查询数据列表货位信息转换
139
-                        $("#wareNameDis").attr("disabled",false);
140
-                    }else{
145
+                        $("#wareNameDis").attr("disabled", false);
146
+                    } else {
141 147
                         $scope.warehouseList = '';
142 148
                         $scope.changeGetInfo(0);
143
-                        $("#wareNameDis").attr("disabled",true);
149
+                        $("#wareNameDis").attr("disabled", true);
144 150
                     }
145 151
 
146
-                },function(data){
152
+                }, function (data) {
147 153
                     console.log(data);
148 154
                 });
149 155
 
150
-                if (type != 0) {
151
-                	$scope.findKeeperNames();
152
-                }
153 156
             } else {
154 157
                 // 设置货位号为空.
155 158
                 $scope.qualitycheck.warehouseId = null;
@@ -166,60 +169,53 @@ angular.module('app.storage')
166 169
             }
167 170
         }
168 171
 
169
-        //用于初检,验收,春秋普查,日常检查和第三方检查带出的保管员
170
-        $scope.findKeeperNames = function () {
171
-            //通过仓房号获取保管员,用于在第三方检查和日常检查中显示保管员的名字
172
-            keeperService.getKeeperNamesByHouseId($scope.qualitycheck.houseId).then(function (data) {
173
-                $scope.keeper = data;
174
-                $scope.qualitycheck.keeper = $scope.keeper.keeperNames;
175
-            }, function (data) {
176
-                console.log(data);
177
-            });
178
-        }
179
-        
180 172
         //校验是否已经有初检了
181 173
         $scope.isChuJian = function (stype) {
182
-        	if (stype==="0") {
183
-        		var datatype = $rootScope.storehouseObj[$scope.qualitycheck.houseId].datatype;
184
-        		//先判断表中是否已经存在初检,验收
185
-                qualitycheckService.findByStoreWarehouse($scope.qualitycheck.houseId,$scope.qualitycheck.warehouseId,stype).then(function(data) {
174
+            if (stype === "0") {
175
+                var datatype = $rootScope.storehouseObj[$scope.qualitycheck.houseId].datatype;
176
+                //先判断表中是否已经存在初检,验收
177
+                qualitycheckService.findByStoreWarehouse($scope.qualitycheck.houseId, $scope.qualitycheck.warehouseId, stype).then(function (data) {
186 178
                     if (data) {
187 179
                         alert("该仓已经初检,不能再次初检,您可以从列表中选择进行修改!");
188
-                        if($stateParams.depotType == "1"){
180
+                        if ($stateParams.depotType == "1") {
189 181
                             $state.go('app.business.agent.qualitycheck.fcklist', {type: 0});
190
-                        }else{
182
+                        } else {
191 183
                             $state.go('app.storage.qualitycheck.fcklist.sample', {type: 0});
192 184
                         }
193 185
                         return true;
194 186
                     }
195
-                },function(data){
187
+                }, function (data) {
196 188
                     console.log(data);
197 189
                 });
198
-        	}
190
+            }
199 191
         }
200
-        
192
+
201 193
         //得到分仓保管账中的信息
202 194
         $scope.changeGetInfo = function (type) {
203
-           
204
-            if(type != 0 && ($scope.qualitycheck.warehouseId == null || typeof $scope.qualitycheck.warehouseId == undefined || $scope.qualitycheck.warehouseId == ''))return;
195
+
196
+            if (type != 0 && ($scope.qualitycheck.warehouseId == null || typeof $scope.qualitycheck.warehouseId == undefined || $scope.qualitycheck.warehouseId == '')) return;
205 197
             if ($scope.qualitycheck.houseId != null && $scope.qualitycheck.houseId != undefined && $scope.qualitycheck.houseId != '') {
206 198
 
207
-                if($stateParams.depotType == "1") return;
199
+                if ($stateParams.depotType == "1") return;
208 200
 
209 201
                 var datatype = $rootScope.storehouseObj[$scope.qualitycheck.houseId].datatype;
210 202
                 var lylx;
211 203
                 if (datatype == "0") {//粮仓
212
-                	lylx = $rootScope.wares[$scope.qualitycheck.warehouseId].lylx;
204
+                    lylx = $rootScope.wares[$scope.qualitycheck.warehouseId].lylx;
213 205
                 } else if (datatype == "1") {//油罐
214
-                	lylx = $rootScope.tankObj[$scope.qualitycheck.houseId].lylx;
206
+                    lylx = $rootScope.tankObj[$scope.qualitycheck.houseId].lylx;
215 207
                 }
216
-                
208
+
217 209
                 if (lylx != null && lylx == 0) {
218
-                	//出入库--原粮(小麦、玉米、大豆、稻谷、大豆原油即压榨成品油)
219
-                    $scope.kcswStr = {ch : $scope.qualitycheck.houseId, hwh : $scope.qualitycheck.warehouseId, unitid : $rootScope.orgInfo.orgId};
220
-                	kcswService.getPageInfoOrRcsj($scope.kcswStr).then(function(data){
221
-                		//如果从分仓保管账查找到数据就取出赋值到对应的数据  否则清空上次的数据
222
-                        if (typeof(data[0]) != "undefined" && data.length > 0 ) {
210
+                    //出入库--原粮(小麦、玉米、大豆、稻谷、大豆原油即压榨成品油)
211
+                    $scope.kcswStr = {
212
+                        ch: $scope.qualitycheck.houseId,
213
+                        hwh: $scope.qualitycheck.warehouseId,
214
+                        unitid: $rootScope.orgInfo.orgId
215
+                    };
216
+                    kcswService.getPageInfoOrRcsj($scope.kcswStr).then(function (data) {
217
+                        //如果从分仓保管账查找到数据就取出赋值到对应的数据  否则清空上次的数据
218
+                        if (typeof(data[0]) != "undefined" && data.length > 0) {
223 219
                             $scope.keepaccount = data[0];//根据仓房和货位获取分仓保管账的降序的第一条记录
224 220
                             $scope.qualitycheck.subType = parseInt($scope.keepaccount.pz);//品种
225 221
                             $scope.qualitycheck.subTypeDetailed = parseInt($scope.keepaccount.mxpz);//明细品种
@@ -236,46 +232,46 @@ angular.module('app.storage')
236 232
                             if ($scope.qualitycheck.subType == 3164) {
237 233
                                 // 小麦
238 234
                                 $scope.qualitycheck.inspectionStandardBasis = 5523;
239
-                            } else if($scope.qualitycheck.subType == 3165) {
235
+                            } else if ($scope.qualitycheck.subType == 3165) {
240 236
                                 // 玉米
241 237
                                 $scope.qualitycheck.inspectionStandardBasis = 5524;
242
-                            }else if($scope.qualitycheck.subType == 3166) {
238
+                            } else if ($scope.qualitycheck.subType == 3166) {
243 239
                                 // 稻谷
244 240
                                 $scope.qualitycheck.inspectionStandardBasis = 5526;
245
-                            }else if($scope.qualitycheck.subType == 2777) {
241
+                            } else if ($scope.qualitycheck.subType == 2777) {
246 242
                                 // 大豆
247 243
                                 $scope.qualitycheck.inspectionStandardBasis = 5525;
248
-                            }else if($scope.qualitycheck.subType == 6905) {
244
+                            } else if ($scope.qualitycheck.subType == 6905) {
249 245
                                 // 粮油
250 246
                                 $scope.qualitycheck.inspectionStandardBasis = 6908;
251 247
                             }
252
-                        }else{
253
-                            $scope.qualitycheck.subType="";//品种
254
-                            $scope.qualitycheck.subTypeDetailed="";//明细品种
255
-                            $scope.qualitycheck.numberUpdate="";//数量
256
-                            $scope.qualitycheck.harvestTime="";//收货年度
257
-                            $scope.qualitycheck.inputTime="";//入仓日期
248
+                        } else {
249
+                            $scope.qualitycheck.subType = "";//品种
250
+                            $scope.qualitycheck.subTypeDetailed = "";//明细品种
251
+                            $scope.qualitycheck.numberUpdate = "";//数量
252
+                            $scope.qualitycheck.harvestTime = "";//收货年度
253
+                            $scope.qualitycheck.inputTime = "";//入仓日期
258 254
                         }
259
-                	},function(data){
255
+                    }, function (data) {
260 256
                         console.log(data);
261 257
                     });
262 258
                 } else if (lylx != null && lylx == 1) {
263
-                	$scope.search = {houseId:$scope.qualitycheck.houseId, wareId:$scope.qualitycheck.warehouseId};
264
-                    productService.getNumberList(null, null, $scope.search).then(function(data){
259
+                    $scope.search = {houseId: $scope.qualitycheck.houseId, wareId: $scope.qualitycheck.warehouseId};
260
+                    productService.getNumberList(null, null, $scope.search).then(function (data) {
265 261
                         //如果从分仓保管账查找到数据就取出赋值到对应的数据  否则清空上次的数据
266
-                        if (typeof(data.list[0]) != "undefined" && data.list.length > 0 ) {
262
+                        if (typeof(data.list[0]) != "undefined" && data.list.length > 0) {
267 263
                             $scope.qualityFinishedCard = data.list[0];//根据仓房和货位获取成品粮油卡
268 264
                             $scope.qualitycheck.subType = parseInt($scope.qualityFinishedCard.lypz);//品种
269 265
                             $scope.qualitycheck.subTypeDetailed = parseInt($scope.qualityFinishedCard.mxpz);//明细品种
270
-                            $scope.qualitycheck.numberUpdate = $scope.qualityFinishedCard.kcsl*1000;//数量
266
+                            $scope.qualitycheck.numberUpdate = $scope.qualityFinishedCard.kcsl * 1000;//数量
271 267
                             var scny = $scope.qualityFinishedCard.scny;
272 268
                             if (scny != "" && scny != null) {
273
-                            	var scnd = scny.substr(0,4);//收货年度
274
-                            	for (var i = 0;i < $rootScope.dicDataList[1004].length;i++) {
275
-                            		if ($rootScope.dicDataList[1004][i].enumname==scnd) {
276
-                            			$scope.qualitycheck.harvestTime = $rootScope.dicDataList[1004][i].enumid;
277
-                            		}
278
-                            	}
269
+                                var scnd = scny.substr(0, 4);//收货年度
270
+                                for (var i = 0; i < $rootScope.dicDataList[1004].length; i++) {
271
+                                    if ($rootScope.dicDataList[1004][i].enumname == scnd) {
272
+                                        $scope.qualitycheck.harvestTime = $rootScope.dicDataList[1004][i].enumid;
273
+                                    }
274
+                                }
279 275
                             }
280 276
                             $scope.qualitycheck.inputTime = $scope.qualityFinishedCard.rksj;//入仓时间
281 277
                             $scope.qualitycheck.zhycsj = $scope.qualityFinishedCard.zhycsj;//入库时间
@@ -288,21 +284,21 @@ angular.module('app.storage')
288 284
                             if ($scope.qualitycheck.subType == 7107) {
289 285
                                 // 大米
290 286
                                 $scope.qualitycheck.inspectionStandardBasis = 7573;
291
-                            } else if($scope.qualitycheck.subType == 7038) {
287
+                            } else if ($scope.qualitycheck.subType == 7038) {
292 288
                                 // 小麦粉
293 289
                                 $scope.qualitycheck.inspectionStandardBasis = 7575;
294
-                            }else if($scope.qualitycheck.subType == 7050 || $scope.qualitycheck.subType == 7052) {
290
+                            } else if ($scope.qualitycheck.subType == 7050 || $scope.qualitycheck.subType == 7052) {
295 291
                                 // 压榨和浸出成品油
296 292
                                 $scope.qualitycheck.inspectionStandardBasis = 7574;
297 293
                             }
298
-                        }else{
299
-                            $scope.qualitycheck.subType="";//品种
300
-                            $scope.qualitycheck.subTypeDetailed="";//明细品种
301
-                            $scope.qualitycheck.numberUpdate="";//数量
302
-                            $scope.qualitycheck.harvestTime="";//收货年度
303
-                            $scope.qualitycheck.inputTime="";//入仓日期
294
+                        } else {
295
+                            $scope.qualitycheck.subType = "";//品种
296
+                            $scope.qualitycheck.subTypeDetailed = "";//明细品种
297
+                            $scope.qualitycheck.numberUpdate = "";//数量
298
+                            $scope.qualitycheck.harvestTime = "";//收货年度
299
+                            $scope.qualitycheck.inputTime = "";//入仓日期
304 300
                         }
305
-                    },function(data){
301
+                    }, function (data) {
306 302
                         console.log(data);
307 303
                     });
308 304
                 }
@@ -317,16 +313,20 @@ angular.module('app.storage')
317 313
         if ($stateParams.id != 0) {//说明是的查看和修改
318 314
             $scope.loadDataById($stateParams.id);
319 315
             if ($stateParams.buttype == "update") {//修改
320
-        		$scope.isNotEdit = false; //数据可编辑
316
+                $scope.isNotEdit = false; //数据可编辑
317
+                $scope.qualitycheck.commitPeople = $rootScope.userInfo.realName; // 提交人
318
+                $scope.qualitycheck.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
321 319
             }
322 320
             if ($stateParams.buttype == "view") {//查看
323
-        		$scope.isNotEdit = true; //数据不可编辑
324
-        	}
321
+                $scope.isNotEdit = true; //数据不可编辑
322
+            }
325 323
 //        	$scope.disable_checkTime = true;//检验时间不可编辑
326 324
             //修改和查看不可以编辑
327
-            $("#wareNameDis").attr("disabled",true);
328
-        }else{//新增
329
-        	$scope.isNotEdit = false; //数据可编辑
325
+            $("#wareNameDis").attr("disabled", true);
326
+        } else {//新增
327
+            $scope.isNotEdit = false; //数据可编辑
328
+            $scope.qualitycheck.commitPeople = $rootScope.userInfo.realName; // 提交人
329
+            $scope.qualitycheck.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
330 330
         }
331 331
 
332 332
         // 提交表单
@@ -339,45 +339,45 @@ angular.module('app.storage')
339 339
                     $scope.qualitycheck.jylb = '02';
340 340
                 } else if (checktype == 0) {
341 341
                     $scope.qualitycheck.chooserOrgan = $rootScope.orgInfo.orgName;
342
-                    if($scope.qualitycheck.typeUpdate==0){
342
+                    if ($scope.qualitycheck.typeUpdate == 0) {
343 343
                         $scope.qualitycheck.jylb = '01';
344
-                    }else if ($scope.qualitycheck.typeUpdate==4){
344
+                    } else if ($scope.qualitycheck.typeUpdate == 4) {
345 345
                         $scope.qualitycheck.jylb = '06';
346 346
                     }
347 347
                 } else if (checktype == 4) {
348 348
                     $scope.qualitycheck.jylb = '06';
349 349
                 } else if (checktype == 6) {
350
-                	$scope.qualitycheck.typeUpdate = checktype;
350
+                    $scope.qualitycheck.typeUpdate = checktype;
351 351
                     $scope.qualitycheck.jylb = '05';
352 352
                 }
353
-                
353
+
354 354
                 $scope.qualitycheck.orgId = $rootScope.userInfo.orgId;
355 355
 
356 356
                 /**************时间插件无法通过$scope获取数据,重新赋值一下****************/
357 357
                 //入仓日期
358
-                $("input[name='inputTime']").each(function(j,item){
359
-                    if(item.value != '' && item.value != null && typeof item.value != 'undefined'){
358
+                $("input[name='inputTime']").each(function (j, item) {
359
+                    if (item.value != '' && item.value != null && typeof item.value != 'undefined') {
360 360
                         $scope.qualitycheck.inputTime = $filter('date')(item.value, "yyyy-MM-dd HH:mm:ss");
361 361
                     }
362 362
                 });
363 363
                 //入库日期
364
-                $("input[name='zhycsj']").each(function(j,item){
365
-                    if(item.value != '' && item.value != null && typeof item.value != 'undefined'){
364
+                $("input[name='zhycsj']").each(function (j, item) {
365
+                    if (item.value != '' && item.value != null && typeof item.value != 'undefined') {
366 366
                         $scope.qualitycheck.zhycsj = $filter('date')(item.value, "yyyy-MM-dd HH:mm:ss");
367 367
                     }
368 368
                 });
369 369
                 //扦样日期
370
-                $("input[name='chooseTime']").each(function(j,item){
371
-                    if(item.value != '' && item.value != null && typeof item.value != 'undefined'){
370
+                $("input[name='chooseTime']").each(function (j, item) {
371
+                    if (item.value != '' && item.value != null && typeof item.value != 'undefined') {
372 372
                         $scope.qualitycheck.chooseTime = $filter('date')(item.value, "yyyy-MM-dd HH:mm:ss");
373 373
                     }
374 374
                 });
375
-                
375
+
376 376
                 //入库日期早于扦样日期的判断
377
-                var rksj = new Date($scope.qualitycheck.inputTime.replace( /\-/g, "\/"));
378
-                var qysj = new Date($scope.qualitycheck.chooseTime.replace( /\-/g, "\/"));
379
-                if (rksj!= "" && qysj!= "" && rksj > qysj) {
380
-                    alert( "入仓时间应该早于扦样时间!");
377
+                var rksj = new Date($scope.qualitycheck.inputTime.replace(/\-/g, "\/"));
378
+                var qysj = new Date($scope.qualitycheck.chooseTime.replace(/\-/g, "\/"));
379
+                if (rksj != "" && qysj != "" && rksj > qysj) {
380
+                    alert("入仓时间应该早于扦样时间!");
381 381
                     return false;
382 382
                 }
383 383
 
@@ -386,46 +386,46 @@ angular.module('app.storage')
386 386
                 delete $scope.qualitycheck.subMold;
387 387
 
388 388
                 $scope.qualitycheck.processState = 1; //扦样
389
-                qualitycheckService.save($scope.qualitycheck, $scope.qualitycheckInspection).then(function(datas){
389
+                qualitycheckService.save($scope.qualitycheck, $scope.qualitycheckInspection).then(function (datas) {
390 390
                     if (datas.status == "success") {
391 391
                         var dataid = datas.dataid;
392 392
                         alert("保存成功!");
393 393
                         //0:自检 1:验收 2:质量普查 3:出库
394 394
                         if (checktype == 0) {
395 395
                             $state.go('app.storage.qualitycheck.fcklist.sample', {type: '0,4,6'});
396
-                        } else if(checktype == 3){
396
+                        } else if (checktype == 3) {
397 397
                             $state.go('app.storage.qualitycheck.outlist.sample', {type: 3});
398
-                        } else if(checktype == 6){
399
-		                    $state.go('app.storage.qualitycheck.rkjy.qy_list', {type: 6});
400
-		                }
398
+                        } else if (checktype == 6) {
399
+                            $state.go('app.storage.qualitycheck.rkjy.qy_list', {type: 6});
400
+                        }
401 401
                     } else {
402 402
                         alert("保存失败!");
403 403
                     }
404
-                },function(datas){
404
+                }, function (datas) {
405 405
                     console.log(datas);
406 406
                 });
407 407
             }
408 408
         }
409 409
 
410 410
         // 样表编号和扦样单编号校验
411
-        $.validator.addMethod("bhCheck",function(value,element, params) {
412
-        	var checkNumber = /^$|^[A-Za-z0-9]{0,64}$/;
413
-            return this.optional(element)||(checkNumber.test(value));
414
-        },"只允许录入数字和字母!");
411
+        $.validator.addMethod("bhCheck", function (value, element, params) {
412
+            var checkNumber = /^$|^[A-Za-z0-9]{0,64}$/;
413
+            return this.optional(element) || (checkNumber.test(value));
414
+        }, "只允许录入数字和字母!");
415 415
 
416 416
         // 自定义验证
417
-        $.validator.addMethod("setState",function(value,element, params) {
418
-            if(value == "无" || value == "暂无" || value == "空"){
419
-                return this.optional(element)|| false;
420
-            }else{
421
-                return this.optional(element)|| true;
417
+        $.validator.addMethod("setState", function (value, element, params) {
418
+            if (value == "无" || value == "暂无" || value == "空") {
419
+                return this.optional(element) || false;
420
+            } else {
421
+                return this.optional(element) || true;
422 422
             }
423
-        },"不能填写无,暂无,空等选项!");
423
+        }, "不能填写无,暂无,空等选项!");
424 424
 
425 425
         // 自定义验证,验证数字
426
-        $.validator.addMethod("validNumber",function(value,element, params) {
426
+        $.validator.addMethod("validNumber", function (value, element, params) {
427 427
             var checkNumber = /^(?!0+(?:\.0+)?$)(?:[1-9]\d*|0)(?:\.\d{1,2})?$/;
428
-            return this.optional(element)||(checkNumber.test(value));
429
-        },"请输入大于0的数字,最多两位小数!");
428
+            return this.optional(element) || (checkNumber.test(value));
429
+        }, "请输入大于0的数字,最多两位小数!");
430 430
 
431 431
     })

+ 148 - 155
src/main/resources/static/app/storage/controller/safeProduceRiskCtrl.js

@@ -1,168 +1,161 @@
1 1
 "use strict";
2 2
 
3 3
 angular
4
-  .module("app.storage")
5
-  .controller(
6
-    "safeProduceRiskCtrl",
7
-    function ($scope, $state, $rootScope, safeProduceRiskService) {
8
-      $scope.pageInfo = { pageNum: 1, pageSize: 10 };
9
-      $scope.search = {fxlx:"", fxfj:""};
10
-     
11
-
12
-      $scope.loadData = function () {
13
-        safeProduceRiskService
14
-          .getPageInfo(
15
-            $scope.pageInfo.pageNum,
16
-            $scope.pageInfo.pageSize,
17
-            $scope.search
18
-          )
19
-          .then(
20
-            function (data) {
21
-              if (data) {
22
-                $scope.pageInfo = data.data;
23
-                // $scope.pageInfo.pages = Math.ceil(data.data.total / $scope.pageInfo.pageSize);
24
-              }
25
-              if ($scope.pageInfo.pageNum <= 0) {
26
-                $scope.pageInfo.pageNum = 1;
27
-              }
28
-              if ($scope.pageInfo.pageSize <= 0) {
29
-                $scope.pageInfo.pageSize = 10;
30
-              }
31
-            },
32
-            function (data) {
33
-              console.log(data);
34
-            }
35
-          );
36
-      };
37
-
38
-      $scope.loadData();
4
+    .module("app.storage")
5
+    .controller(
6
+        "safeProduceRiskCtrl",
7
+        function ($scope, $state, $rootScope, safeProduceRiskService) {
8
+            $scope.pageInfo = {pageNum: 1, pageSize: 10};
9
+            $scope.search = {fxlx: "", fxfj: ""};
39 10
 
40 11
 
41
-      // 翻页
42
-      $scope.goPage = function (pageNum) {
43
-        $scope.pageInfo.pageNum = pageNum;
44
-        $scope.loadData();
45
-      };
46
-      // 添加页面
47
-      $scope.showAddRisk = function () {
48
-        $state.go("app.storage.safeproduce.safeRiskAdd", {
49
-          id: 0,
50
-          isNotEdit: false,
51
-        });
52
-      };
53
-      // 修改编辑页面
54
-      $scope.showEditRisk = function (id) {
55
-        $state.go("app.storage.safeproduce.safeRiskAdd", {
56
-          id: id,
57
-          isNotEdit: false,
58
-        });
59
-      };
12
+            $scope.loadData = function () {
13
+                safeProduceRiskService
14
+                    .getPageInfo(
15
+                        $scope.pageInfo.pageNum,
16
+                        $scope.pageInfo.pageSize,
17
+                        $scope.search
18
+                    )
19
+                    .then(
20
+                        function (data) {
21
+                            if (data) {
22
+                                $scope.pageInfo = data.data;
23
+                                // $scope.pageInfo.pages = Math.ceil(data.data.total / $scope.pageInfo.pageSize);
24
+                            }
25
+                            if ($scope.pageInfo.pageNum <= 0) {
26
+                                $scope.pageInfo.pageNum = 1;
27
+                            }
28
+                            if ($scope.pageInfo.pageSize <= 0) {
29
+                                $scope.pageInfo.pageSize = 10;
30
+                            }
31
+                        },
32
+                        function (data) {
33
+                            console.log(data);
34
+                        }
35
+                    );
36
+            };
60 37
 
61
-      // 查看页面
62
-      $scope.showViewRisk = function (id) {
63
-        $state.go("app.storage.safeproduce.safeRiskAdd", {
64
-          id: id,
65
-          isNotEdit: true,
66
-        });
67
-      };
68
-      // 根据id删除信息
69
-      $scope.removeRisk = function (id) {
70
-        if (!confirm("确定要删除吗?")) {
71
-          return;
72
-        }
73
-        safeProduceRiskService.removeById(id).then(function (data) {
74
-          if (data.message == "success") {
75
-            alert("删除成功");
76 38
             $scope.loadData();
77
-          } else {
78
-            alert("删除失败");
79
-          }
80
-        });
81
-      };
82
-    }
83
-  )
84
-  .controller(
85
-    "safeProduceRiskCtrlSave",
86
-    function (
87
-      $scope,
88
-      $state,
89
-      $rootScope,
90
-      safeProduceRiskService,
91
-      $stateParams
92
-    ) {
93
-      // $scope.orgName = $rootScope.depotInfo.orgName;
94
-      $scope.insertRisk = {
95
-        libraryPointName: $rootScope.depotInfo.orgName
96
-      };
97
-      //下面的判断用于查看页面只读状态
98
-      if ($stateParams.isNotEdit != null) {
99
-        if ($stateParams.isNotEdit == "false") {
100
-          // 修改
101
-          $scope.isNotEdit = false;
102
-        } else if ($stateParams.isNotEdit == "true") {
103
-          // 查看
104
-          $scope.isNotEdit = true;
105
-        }
106
-      } else {
107
-        $scope.isNotEdit = false;
108
-      }
109 39
 
110 40
 
111
-      $scope.edit = function () {
112
-        // 编辑
113
-        if ($stateParams.id != 0) {
114
-          safeProduceRiskService
115
-            .queryById($stateParams.id)
116
-            .then(function (data) {
117
-              $scope.insertRisk = data.data;
118
-              $scope.insertRisk.riskClassification = parseInt($scope.insertRisk.riskClassification);
119
-              $scope.insertRisk.riskTypeId = parseInt($scope.insertRisk.riskTypeId);
120
-            });
41
+            // 翻页
42
+            $scope.goPage = function (pageNum) {
43
+                $scope.pageInfo.pageNum = pageNum;
44
+                $scope.loadData();
45
+            };
46
+            // 添加页面
47
+            $scope.showAddRisk = function () {
48
+                $state.go("app.storage.safeproduce.safeRiskAdd", {
49
+                    id: 0,
50
+                    isNotEdit: false,
51
+                });
52
+            };
53
+            // 修改编辑页面
54
+            $scope.showEditRisk = function (id) {
55
+                $state.go("app.storage.safeproduce.safeRiskAdd", {
56
+                    id: id,
57
+                    isNotEdit: false,
58
+                });
59
+            };
60
+
61
+            // 查看页面
62
+            $scope.showViewRisk = function (id) {
63
+                $state.go("app.storage.safeproduce.safeRiskAdd", {
64
+                    id: id,
65
+                    isNotEdit: true,
66
+                });
67
+            };
68
+            // 根据id删除信息
69
+            $scope.removeRisk = function (id) {
70
+                if (!confirm("确定要删除吗?")) {
71
+                    return;
72
+                }
73
+                safeProduceRiskService.removeById(id).then(function (data) {
74
+                    if (data.message == "success") {
75
+                        alert("删除成功");
76
+                        $scope.loadData();
77
+                    } else {
78
+                        alert("删除失败");
79
+                    }
80
+                });
81
+            };
121 82
         }
122
-      };
123
-      $scope.edit();
124
-      // 提交表单
125
-      var validator = $("#safeProduceNotify-form").validate();
126
-      $scope.saveData = function () {
127
-        if (validator.form()) {
128
-          $scope.insertRisk.orgId = $rootScope.orgInfo.orgId;
129
-          
130
-          if ($stateParams.id != 0) {
131
-            safeProduceRiskService.updateRask(angular.toJson($scope.insertRisk)).then(
132
-              function (data) {
133
-                if (data.message == "success") {
134
-                  alert("修改成功!");
135
-                  //$scope.back();
136
-                  $scope.backLayer();
137
-                } else {
138
-                  alert("修改失败!");
83
+    )
84
+    .controller("safeProduceRiskCtrlSave", function ($scope, $state, $rootScope, safeProduceRiskService, $stateParams, $filter) {
85
+            // $scope.orgName = $rootScope.depotInfo.orgName;
86
+            $scope.insertRisk = {
87
+                libraryPointName: $rootScope.depotInfo.orgName
88
+            };
89
+            //下面的判断用于查看页面只读状态
90
+            if ($stateParams.isNotEdit != null) {
91
+                if ($stateParams.isNotEdit == "false") {
92
+                    // 保存
93
+                    $scope.isNotEdit = false;
94
+                    $scope.insertRisk.commitPeople = $rootScope.userInfo.realName; // 提交人
95
+                    $scope.insertRisk.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
96
+                } else if ($stateParams.isNotEdit == "true") {
97
+                    // 查看
98
+                    $scope.isNotEdit = true;
99
+                }
100
+            } else {
101
+                $scope.isNotEdit = false;
102
+            }
103
+
104
+            $scope.edit = function () {
105
+                // 编辑
106
+                if ($stateParams.id != 0) {
107
+                    safeProduceRiskService.queryById($stateParams.id).then(function (data) {
108
+                        $scope.insertRisk = data.data;
109
+                        $scope.insertRisk.riskClassification = parseInt($scope.insertRisk.riskClassification);
110
+                        $scope.insertRisk.riskTypeId = parseInt($scope.insertRisk.riskTypeId);
111
+                        // 修改
112
+                        if ($stateParams.isNotEdit != null) {
113
+                            if ($stateParams.isNotEdit == "false") {
114
+                                $scope.insertRisk.commitPeople = $rootScope.userInfo.realName; // 提交人
115
+                                $scope.insertRisk.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
116
+                            }
117
+                        }
118
+                    });
139 119
                 }
140
-              },
141
-              function (data) {
142
-                console.log(data);
143
-              }
144
-            );
145
-          } else {
146
-            safeProduceRiskService.save(angular.toJson($scope.insertRisk)).then(
147
-              function (data) {
148
-                if (data.message == "success") {
149
-                  alert("保存成功!");
150
-                  //$scope.back();
151
-                  $scope.backLayer();
152
-                } else {
153
-                  alert("保存失败!");
120
+            };
121
+            $scope.edit();
122
+            // 提交表单
123
+            var validator = $("#safeProduceNotify-form").validate();
124
+            $scope.saveData = function () {
125
+                if (validator.form()) {
126
+                    $scope.insertRisk.orgId = $rootScope.orgInfo.orgId;
127
+                    if ($stateParams.id != 0) {
128
+                        safeProduceRiskService.updateRask(angular.toJson($scope.insertRisk)).then(function (data) {
129
+                                if (data.message == "success") {
130
+                                    alert("修改成功!");
131
+                                    //$scope.back();
132
+                                    $scope.backLayer();
133
+                                } else {
134
+                                    alert("修改失败!");
135
+                                }
136
+                            }, function (data) {
137
+                                console.log(data);
138
+                            }
139
+                        );
140
+                    } else {
141
+                        safeProduceRiskService.save(angular.toJson($scope.insertRisk)).then(function (data) {
142
+                                if (data.message == "success") {
143
+                                    alert("保存成功!");
144
+                                    //$scope.back();
145
+                                    $scope.backLayer();
146
+                                } else {
147
+                                    alert("保存失败!");
148
+                                }
149
+                            }, function (data) {
150
+                                console.log(data);
151
+                            }
152
+                        );
153
+                    }
154 154
                 }
155
-              },
156
-              function (data) {
157
-                console.log(data);
158
-              }
159
-            );
160
-          }
155
+            };
156
+            // 返回
157
+            $scope.backLayer = function () {
158
+                $state.go("app.storage.safeproduce.safeRiskLevelCtrl");
159
+            };
161 160
         }
162
-      };
163
-      // 返回
164
-      $scope.backLayer = function () {
165
-        $state.go("app.storage.safeproduce.safeRiskLevelCtrl");
166
-      };
167
-    }
168
-  );
161
+    );

+ 11 - 5
src/main/resources/static/app/storage/controller/storagehouseCtrl.js

@@ -53,9 +53,9 @@ angular.module('app.storage')
53 53
         }
54 54
         //修改编辑页面
55 55
         $scope.showEditHck= function (id) {
56
-            $state.go('app.storage.storehouse.hckadd', {id:id,isNotEdit:true});
56
+            $state.go('app.storage.storehouse.hckadd', {id:id,isNotEdit:false});
57 57
         }
58
-        //修改编辑页面
58
+        //查看页面
59 59
         $scope.showHckView= function (id) {
60 60
             $state.go('app.storage.storehouse.hckadd', {id:id,isNotEdit:true});
61 61
         }
@@ -81,9 +81,9 @@ angular.module('app.storage')
81 81
     .controller("housecheckSaveCtrl", function($scope, $http,$state,$stateParams,$rootScope,StorehouseService, $filter,storagehouseService, APP_CONFIG) {
82 82
         //控制禁用和启用
83 83
         if($stateParams.isNotEdit != null){
84
-            if ($stateParams.isNotEdit == "false") {
84
+            if ($stateParams.isNotEdit == "false") {// 新增
85 85
                 $scope.isNotEdit = false;
86
-            } else if ($stateParams.isNotEdit == "true") {
86
+            } else if ($stateParams.isNotEdit == "true") {// 查看
87 87
                 $scope.isNotEdit = true;
88 88
             }
89 89
         }else{
@@ -98,7 +98,13 @@ angular.module('app.storage')
98 98
                 $scope.houserepair.repairEndDate = $filter('date')($scope.houserepair.repairEndDate, "yyyy-MM-dd");
99 99
                 //设置登录人为登记人
100 100
                 $scope.houserepair.checkPerson=$rootScope.userInfo.realName;
101
-
101
+                // 修改
102
+                if($stateParams.isNotEdit != null) {
103
+                    if ($stateParams.isNotEdit == "false") {
104
+                        $scope.houserepair.commitPeople = $rootScope.userInfo.realName; // 提交人
105
+                        $scope.houserepair.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
106
+                    }
107
+                }
102 108
             },function(data){
103 109
                 // console.log(data);
104 110
             });

+ 5 - 20
src/main/resources/static/app/storage/controller/windrainsnowCtrl.js

@@ -124,7 +124,7 @@ angular.module('app.storage')
124 124
                 // 新增初始化对象
125 125
                 $scope.windrainsnow = {};
126 126
                 $scope.windrainsnow.commitPeople = $rootScope.userInfo.realName; // 提交人
127
-                $scope.windrainsnow.commitTime = $filter('date')(new Date(), "yyyy-MM-dd hh:mm:ss"); // 提交时间
127
+                $scope.windrainsnow.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss"); // 提交时间
128 128
             } else if ($stateParams.isNotEdit == "true") { // 查看
129 129
                 $scope.isNotEdit = true;
130 130
             }
@@ -139,9 +139,9 @@ angular.module('app.storage')
139 139
             $("#centerHide_3").attr("required", "true");
140 140
             $scope.centerHide = true;
141 141
 
142
-            $("#centerHideTwo_1").attr("required", "true");
143
-            $("#centerHideTwo_2").attr("required", "true");
144
-            $scope.centerHideTwo = true;
142
+            // 风雨雪中检查-日期/天气情况 必填动态效验
143
+            document.getElementById("spanId_1").style.display='none';
144
+            document.getElementById("spanId_2").style.display='none';
145 145
         }else{
146 146
             $scope.isNotEdit = false;
147 147
         }
@@ -182,22 +182,6 @@ angular.module('app.storage')
182 182
                 $scope.endHide = true;
183 183
             }
184 184
         };
185
-        $scope.centerHideTwoFunction = function() {
186
-            /*console.log("$scope.windrainsnow.centerTime", $scope.windrainsnow.centerTime)
187
-            console.log("$scope.windrainsnow.doingWeather", $scope.windrainsnow.doingWeather)
188
-            $scope.windrainsnow.centerTime = $("input[name='centerTime']").val();*/
189
-            if ($scope.windrainsnow.centerTime || $scope.windrainsnow.doingWeather) {
190
-                // 设置动态必填-必填
191
-                $("#centerHideTwo_1").attr("required", "false");
192
-                $("#centerHideTwo_2").attr("required", "false");
193
-                $scope.centerHideTwo = false;
194
-            } else {
195
-                // 设置动态必填-非必填
196
-                $("#centerHideTwo_1").removeAttr("required");
197
-                $("#centerHideTwo_2").removeAttr("required");
198
-                $scope.centerHideTwo = true;
199
-            }
200
-        };
201 185
 
202 186
         /**
203 187
          * 级联仓房
@@ -227,6 +211,7 @@ angular.module('app.storage')
227 211
                 $scope.windrainsnow.orgId = $rootScope.userInfo.orgId;
228 212
                 $scope.windrainsnow.checkDate = $("input[name='checkDate']").val(); // 时间控件获取值
229 213
                 $scope.windrainsnow.postCheckDate = $("input[name='postCheckDate']").val(); // 时间控件获取值
214
+                $scope.windrainsnow.centerTime = $("input[name='centerTime']").val(); // 时间控件获取值
230 215
                 $http({
231 216
                     method: 'POST',
232 217
                     url: APP_CONFIG.depotStorageUrl + '/windrainsnow/save',

+ 1 - 1
src/main/resources/static/app/storage/grainCard/controller/addQualityInspectionCtrl.js

@@ -114,7 +114,7 @@ angular.module('app.storage')
114 114
             	$rootScope.previousState_params.tabType = 2;
115 115
                 $rootScope.back();
116 116
             } else {
117
-                $state.go("app.storage.foodSituation.checkFoodSituationList");
117
+                $state.go("app.storage.foodSituation.checkFoodSituationList", {id:$stateParams.cardNum, tabType:1});
118 118
             }
119 119
         };
120 120
 

+ 37 - 83
src/main/resources/static/app/storage/grainCard/controller/checkFoodSituationListCtrl.js

@@ -8,49 +8,37 @@ angular.module('app.storage').controller("checkFoodSituationListCtrl",
8 8
             grainCardService.findGrainCardById(id).then(function (data) {
9 9
                 if (data.retCode === '200' && data.message === 'success') {
10 10
                     $scope.GrainCardByIdObj = data.data;
11
+                    $scope.datatype = $rootScope.storehouseObj[$scope.GrainCardByIdObj.storehouseId].datatype;
12
+                    $scope.orgName = $rootScope.orgInfo.orgName;
11 13
                     $scope.grainRemark = $scope.GrainCardByIdObj.grainRemark;//下面js有用到这个参数,不要删除
12
-                    if ($scope.GrainCardByIdObj.grainRights == "01") {
13
-                        $scope.GrainCardByIdObj.grainRights = "市粮食局";
14
-                    } else if ($scope.GrainCardByIdObj.grainRights == "03") {
15
-                        $scope.GrainCardByIdObj.grainRights = "区发改委";
16
-                    } else if ($scope.GrainCardByIdObj.grainRights == "04") {
17
-                        $scope.GrainCardByIdObj.grainRights = "市储备公司";
18
-                    } else if ($scope.GrainCardByIdObj.grainRights == "05") {
19
-                        $scope.GrainCardByIdObj.grainRights = "区购销公司";
20
-                    } else {
21
-                        $scope.GrainCardByIdObj.grainRights = $rootScope.orgInfo.orgName;
22
-                    }
23
-                    $scope.GrainCardByIdObj.wall = $rootScope.storehouseObj[$scope.GrainCardByIdObj.storehouseId].wall;
24 14
                 } else {
25 15
                     $scope.GrainCardByIdObj = {};
26 16
                 }
17
+                $scope.findQuailckCardList($scope.GrainCardByIdObj.id);
18
+                $scope.findGrainCardList($scope.GrainCardByIdObj.qualitycheckId);
19
+                $scope.findailyCardList();
20
+                //获取保管员照片
21
+                $scope.getBgztxUrl($scope.GrainCardByIdObj.storehouseId);
27 22
             }, function (data) {
28 23
                 console.log(data);
29 24
             });
30
-        };
31
-        $scope.findGrainCardById($stateParams.id);
32
-        
33
-        $scope.getMath = function(v) {
34
-            if (isNaN(v) || v == "") {
35
-                v = 0.00;
36
-            } else {
37
-                v = Math.round(v*100)/100;
38
-                v = v.toString();
39
-                var rs = v.indexOf('.');
40
-                if(rs < 0){
41
-                    v = v + ".00";
42
-                }else{
43
-                    while(v.length <= rs + 2){v += '0';}
44
-                }
45
-            }
46
-            return v;
47 25
         }
48 26
 
27
+        $scope.findGrainCardById($stateParams.id);
28
+
29
+        //获取保管员头像
30
+        $scope.getBgztxUrl = function(houseId) {
31
+        	keeperService.getBgztxUrl(houseId, $rootScope.orgInfo.orgId).then(function (data) {
32
+        		$scope.bgyurl = data.url;
33
+            }, function (data) {
34
+                console.log(data);
35
+            });
36
+        }
49 37
         // --------------------------------管理卡片------------------------
50 38
         //管理卡片
51
-        $scope.findGrainCardList = function () {
39
+        $scope.findGrainCardList = function (qualitycheckId) {
52 40
             // 查看卡片
53
-            grainCardService.findGrainCard($stateParams.qualitycheckId).then(function (data) {
41
+            grainCardService.findGrainCard(qualitycheckId).then(function (data) {
54 42
                 $scope.grainCardView = {};
55 43
 
56 44
                 if(data.cardOnetList.length > 0 ){
@@ -65,54 +53,19 @@ angular.module('app.storage').controller("checkFoodSituationListCtrl",
65 53
 
66 54
                     $scope.grainCardView.inputTime = $filter('date')($scope.grainCardView.inputTime, "yyyy-MM-dd HH:mm:ss");
67 55
                     $scope.grainCardView.zhycsj = $filter('date')($scope.grainCardView.zhycsj, "yyyy-MM-dd HH:mm:ss");
68
-                    $scope.grainCardView.checkTime = $filter('date')($scope.grainCardView.checkTime, "yyyy-MM-dd");
69
-
70
-                    //小麦及混合小麦111 ,玉米112,大豆141,稻谷113  市平台
71
-                    //小麦及混合小麦3164,玉米3165,大豆2777,稻谷3166
72
-                    if($stateParams.grainVarietyNum == 1110000 || $stateParams.grainVarietyNum == 111){
73
-                        $scope.grainCardView.subType = 3164;
74
-                    }else if($stateParams.grainVarietyNum == 1120000 || $stateParams.grainVarietyNum == 112){
75
-                        $scope.grainCardView.subType = 3165;
76
-                    }else if($stateParams.grainVarietyNum == 1410000 || $stateParams.grainVarietyNum == 141){
77
-                        $scope.grainCardView.subType = 2777;
78
-                    }else if($stateParams.grainVarietyNum == 1130000 || $stateParams.grainVarietyNum == 113){
79
-                        $scope.grainCardView.subType = 3166;
80
-                    }else if($stateParams.grainVarietyNum == null || $stateParams.grainVarietyNum == '' || typeof $stateParams.grainVarietyNum == 'undefined') {
81
-                        $scope.grainCardView.subType = null;
82
-                    }else{
83
-                        $scope.grainCardView.subType = 7052;
84
-                    }
85
-                    
86
-                    if ($scope.grainCardView.storehouseYG == 2) {
87
-                    	$scope.grainCardView.useDate = $filter('date')($scope.grainCardView.useDate, "yyyy-MM-dd");
88
-                    	$scope.grainCardView.useDate = $scope.grainCardView.useDate.substr(0,4);//建设年份
89
-                    	if($scope.grainCardView.storehouseType == "2972" || $scope.grainCardView.storehouseType == "2973"){//仓房类型为圆筒仓和浅圆仓
90
-                    		$scope.grainCardView.length = $scope.grainCardView.siloDiameter;
91
-                    		var tczj = $scope.grainCardView.siloDiameter; //筒仓内劲(直径)
92
-                    		$scope.grainCardView.binVolume = $scope.getMath(3.14*(tczj/2)*(tczj/2));// 使用面积
93
-                    	} else {
94
-                    		var cnc = $scope.grainCardView.length; // 仓内长
95
-                    		var cnk = $scope.grainCardView.width; // 仓内宽
96
-                    		cnc = parseFloat(cnc == null ? 1 : cnc);
97
-                    		cnk = parseFloat(cnk == null ? 1 : cnk);
98
-                    		$scope.grainCardView.binVolume = $scope.getMath(cnc*cnk);// 使用面积
99
-                    	}
100
-                    }
101
-
102 56
                 }
103 57
             }, function (data) {
104 58
                 console.log(data);
105 59
             });
106 60
 
107 61
         };
108
-        $scope.findGrainCardList();
109 62
 
110 63
         //===================质量检查==========================
111 64
 
112
-        $scope.findQuailckCardList = function () {
113
-            $scope.subType = $stateParams.grainVarietyNum;
65
+        $scope.findQuailckCardList = function (id) {
66
+            $scope.subType = $scope.GrainCardByIdObj.grainVarietyNum;
114 67
             // 质量查看列表
115
-            grainCardService.findQuailckCardList($stateParams.id).then(function (data) {
68
+            grainCardService.findQuailckCardList(id, null, null, null, null, null, null).then(function (data) {
116 69
                 if (data.retCode === '200' && data.message === 'success') {
117 70
                     $scope.quailckCardListView = data.data;
118 71
                 } else {
@@ -121,13 +74,12 @@ angular.module('app.storage').controller("checkFoodSituationListCtrl",
121 74
             }, function (data) {
122 75
                 console.log(data);
123 76
             });
124
-        };
125
-        $scope.findQuailckCardList();
77
+        }
126 78
 
127 79
         //======日常检查==========
128
-        $scope.search = {cardNum:$stateParams.id,storehouseId:$stateParams.storehouseId, warehouseId:$stateParams.warehouseId};
129 80
         $scope.findailyCardList = function () {
130 81
             // 日常检查列表
82
+        	$scope.search = {cardNum:$stateParams.id,storehouseId:$scope.GrainCardByIdObj.storehouseId, warehouseId:$scope.GrainCardByIdObj.warehouseId};
131 83
             grainDailyCardService.findDailyCardList($scope.search).then(function (data) {
132 84
                 $scope.dailyCardList = data.dailyList;
133 85
                 $scope.dailyCardOneList = data.dailyListOne;
@@ -136,7 +88,6 @@ angular.module('app.storage').controller("checkFoodSituationListCtrl",
136 88
                 console.log(data);
137 89
             });
138 90
         };
139
-        $scope.findailyCardList();
140 91
 
141 92
         // ------------------------温度卡start-------------------
142 93
         // 温度卡查看列表
@@ -187,8 +138,8 @@ angular.module('app.storage').controller("checkFoodSituationListCtrl",
187 138
             $state.go('app.storage.foodSituation.addTemperatureTest', {
188 139
                 cardNum: $stateParams.id,
189 140
 //                storehouseNum: $stateParams.storehouseNum,
190
-                storehouseNum: $rootScope.storehouseObj[$stateParams.storehouseId].storehouseCode,
191
-                warehouseNum: $stateParams.warehouseNum,
141
+                storehouseNum: $rootScope.storehouseObj[$scope.GrainCardByIdObj.storehouseId].storehouseCode,
142
+                warehouseNum: $scope.GrainCardByIdObj.warehouseNum,
192 143
                 grainRemark: $scope.grainRemark
193 144
             })
194 145
         };
@@ -250,9 +201,9 @@ angular.module('app.storage').controller("checkFoodSituationListCtrl",
250 201
         $scope.moistureAddData = function () {
251 202
             $state.go('app.storage.foodSituation.addMoistureTest',{
252 203
                 warterId: $stateParams.id,
253
-                storehouse: $stateParams.storehouseId,
254
-                warehouse: $stateParams.warehouseId,
255
-                warterRemark: $stateParams.warterRemark
204
+                storehouse: $scope.GrainCardByIdObj.storehouseId,
205
+                warehouse: $scope.GrainCardByIdObj.warehouseId,
206
+                warterRemark: $scope.warterData.warterremark
256 207
             });
257 208
         }
258 209
 
@@ -290,9 +241,9 @@ angular.module('app.storage').controller("checkFoodSituationListCtrl",
290 241
         $scope.qualityAddData = function (storehouseYG) {
291 242
             $state.go('app.storage.foodSituation.addQualityInspection', {
292 243
                 cardNum: $stateParams.id,
293
-                storehouseId: $stateParams.storehouseId,
294
-                warehouseId: $stateParams.warehouseId,
295
-                grainVarietyNum: $stateParams.grainVarietyNum,
244
+                storehouseId: $scope.GrainCardByIdObj.storehouseId,
245
+                warehouseId: $scope.GrainCardByIdObj.warehouseId,
246
+                grainVarietyNum: $scope.GrainCardByIdObj.grainVarietyNum,
296 247
                 storehouseYG: storehouseYG
297 248
             })
298 249
         };
@@ -301,9 +252,12 @@ angular.module('app.storage').controller("checkFoodSituationListCtrl",
301 252
         $scope.dailyAddData = function () {
302 253
             $state.go('app.storage.foodSituation.addDailyTest', {
303 254
                 cardNum: $stateParams.id,
304
-                storehouseId: $stateParams.storehouseId,
305
-                warehouseId: $stateParams.warehouseId
255
+                storehouseId: $scope.GrainCardByIdObj.storehouseId,
256
+                warehouseId: $scope.GrainCardByIdObj.warehouseId
306 257
             })
307 258
         };
308 259
 
260
+        $scope.returnTop = function() {
261
+        	$state.go("app.storage.foodSituation");
262
+        }
309 263
     });

+ 220 - 216
src/main/resources/static/app/storage/grainCard/controller/foodHandleCtr.js

@@ -1,230 +1,234 @@
1 1
 "use strict";
2 2
 angular
3
-  .module("app.storage")
4
-  .controller(
5
-    "foodHandleCtr",
6
-    function (
7
-      $scope,
8
-      $state,
9
-      $rootScope,
10
-      $uibModal,
11
-      $http,
12
-      $filter,
13
-      warehouseService,
14
-      $stateParams,
15
-      foodHandleService,
16
-      archiveService
17
-    ) {
18
-      $scope.pageInfo = { pageNum: 1, pageSize: 10 };
19
-      $scope.search = {};
20
-      $scope.isArchive = false;
21
-      $scope.isArchiveHouse = 0;
22
-      // 分页列表
23
-      $scope.loadData = function () {
24
-            
25
-            foodHandleService.getPageInfo($scope.pageInfo, $scope.search).then(
26
-              function (data) {
27
-                $scope.pageInfo = data.data;
28
-              },
29
-              function (data) {
30
-                console.log(data);
3
+    .module("app.storage")
4
+    .controller(
5
+        "foodHandleCtr",
6
+        function (
7
+            $scope,
8
+            $state,
9
+            $rootScope,
10
+            $uibModal,
11
+            $http,
12
+            $filter,
13
+            warehouseService,
14
+            $stateParams,
15
+            foodHandleService,
16
+            archiveService
17
+        ) {
18
+            $scope.pageInfo = {pageNum: 1, pageSize: 10};
19
+            $scope.search = {};
20
+            $scope.isArchive = false;
21
+            $scope.isArchiveHouse = 0;
22
+            // 分页列表
23
+            $scope.loadData = function () {
24
+
25
+                foodHandleService.getPageInfo($scope.pageInfo, $scope.search).then(
26
+                    function (data) {
27
+                        $scope.pageInfo = data.data;
28
+                    },
29
+                    function (data) {
30
+                        console.log(data);
31
+                    }
32
+                );
33
+            };
34
+            $scope.loadData();
35
+            // 货位列表
36
+            $scope.loadWare = function (houseId) {
37
+                warehouseService
38
+                    .getStorehouse($rootScope.orgInfo.orgId, houseId, "0")
39
+                    .then(
40
+                        function (data) {
41
+                            $scope.warelist = data.wareList; //下拉列表数据
42
+                            $scope.warehouseObj = data.wares; //查询数据列表货位信息转换
43
+                        },
44
+                        function (data) {
45
+                            console.log(data);
46
+                        }
47
+                    );
48
+            };
49
+            $scope.loadWare(null);
50
+
51
+            // 添加页面
52
+            $scope.showAddFood = function () {
53
+                $state.go("app.storage.foodHandle.add", {
54
+                    id: 0,
55
+                    isNotEdit: false,
56
+                });
57
+            };
58
+            // 修改编辑页面
59
+            /*$scope.showEditFood = function (id) {
60
+              $state.go("app.storage.foodHandle.add", {
61
+                id: id,
62
+                isNotEdit: false,
63
+              });
64
+            };*/
65
+            // 查看
66
+            $scope.showViewFood = function (id) {
67
+                $state.go("app.storage.foodHandle.add", {
68
+                    id: id,
69
+                    isNotEdit: true,
70
+                });
71
+            };
72
+
73
+            // 根据id删除信息
74
+            /*$scope.removeFood = function (id) {
75
+              if (!confirm("确定要删除吗?")) {
76
+                return;
31 77
               }
32
-            );
33
-      };
34
-      $scope.loadData();
35
-      // 货位列表
36
-      $scope.loadWare = function (houseId) {
37
-        warehouseService
38
-          .getStorehouse($rootScope.orgInfo.orgId, houseId, "0")
39
-          .then(
40
-            function (data) {
41
-              $scope.warelist = data.wareList; //下拉列表数据
42
-              $scope.warehouseObj = data.wares; //查询数据列表货位信息转换
43
-            },
44
-            function (data) {
45
-              console.log(data);
46
-            }
47
-          );
48
-      };
49
-      $scope.loadWare(null);
78
+              foodHandleService.removeById(id).then(function (data) {
79
+                if (data.message == "success") {
80
+                  alert("删除成功");
81
+                  $scope.loadData();
82
+                } else {
83
+                  alert("删除失败");
84
+                }
85
+              });
86
+            };*/
50 87
 
51
-      // 添加页面
52
-      $scope.showAddFood = function () {
53
-        $state.go("app.storage.foodHandle.add", {
54
-          id: 0,
55
-          isNotEdit: false,
56
-        });
57
-      };
58
-      // 修改编辑页面
59
-      $scope.showEditFood = function (id) {
60
-        $state.go("app.storage.foodHandle.add", {
61
-          id: id,
62
-          isNotEdit: false,
63
-        });
64
-      };
65
-      // 查看
66
-      $scope.showViewFood = function (id) {
67
-        $state.go("app.storage.foodHandle.add", {
68
-          id: id,
69
-          isNotEdit: true,
70
-        });
71
-      };
88
+            //修改按钮
89
+            $scope.editProductGrainList = function (id, spareOne, lypzName) {
90
+                $state.go("app.storage.productGrain.add", {
91
+                    id: id,
92
+                    spareOne: spareOne,
93
+                    lypzName: lypzName,
94
+                });
95
+            };
72 96
 
73
-      // 根据id删除信息
74
-      $scope.removeFood = function (id) {
75
-        if (!confirm("确定要删除吗?")) {
76
-          return;
97
+            // 翻页
98
+            $scope.goPage = function (pageNum) {
99
+                if ($scope.pageInfo.pageNum != pageNum && pageNum > 0) {
100
+                    $scope.pageInfo.pageNum = pageNum;
101
+                    $scope.loadData();
102
+                }
103
+            };
77 104
         }
78
-        foodHandleService.removeById(id).then(function (data) {
79
-          if (data.message == "success") {
80
-            alert("删除成功");
81
-            $scope.loadData();
82
-          } else {
83
-            alert("删除失败");
84
-          }
85
-        });
86
-      };
105
+    )
106
+    .controller("foodHandleSave", function ($scope, $state, $rootScope, $uibModal, $http, $filter, warehouseService, $stateParams, foodHandleService, archiveService, cerealsCardService, StorehouseService, keeperService, enumService, TankService, grainCardService) {
107
+            $scope.insertFoodHandle = {};
108
+            $scope.search = {spareOne: "", spareTwo: ""};
87 109
 
88
-      //修改按钮
89
-      $scope.editProductGrainList = function (id, spareOne, lypzName) {
90
-        $state.go("app.storage.productGrain.add", {
91
-          id: id,
92
-          spareOne: spareOne,
93
-          lypzName: lypzName,
94
-        });
95
-      };
110
+            $scope.loadWare = function (houseId) {
111
+                // 判断是粮/油(1是油罐,0是仓房)
112
+                if (null !== houseId) {
113
+                    let dataType = $rootScope.storehouseObj[houseId].datatype;
114
+                    // 仓房id查询油品种
115
+                    $scope.findQualityCheck(houseId);
116
+                    // 获取保管员
117
+                    $scope.getKeeperByHouseId(houseId);
118
+                    if ('0' === dataType) {
119
+                        // 获取货位
120
+                        warehouseService.getStorehouse($rootScope.orgInfo.orgId, houseId, "0").then(function (data) {
121
+                                $scope.warelist = data.wareList; //下拉列表数据
122
+                                $scope.warehouseObj = data.wares; //查询数据列表货位信息转换
123
+                            }, function (data) {
124
+                                console.log(data);
125
+                            }
126
+                        );
127
+                    }
128
+                }
129
+            };
130
+            $scope.loadWare(null);
96 131
 
97
-      // 翻页
98
-      $scope.goPage = function (pageNum) {
99
-        if ($scope.pageInfo.pageNum != pageNum && pageNum > 0) {
100
-          $scope.pageInfo.pageNum = pageNum;
101
-          $scope.loadData();
102
-        }
103
-      };
104
-    }
105
-  )
106
-  .controller(
107
-    "foodHandleSave",
108
-    function (
109
-      $scope,
110
-      $state,
111
-      $rootScope,
112
-      $uibModal,
113
-      $http,
114
-      $filter,
115
-      warehouseService,
116
-      $stateParams,
117
-      foodHandleService,
118
-      archiveService,
119
-      cerealsCardService,
120
-      StorehouseService,
121
-      keeperService,
122
-      enumService,
123
-      TankService
124
-    ) {
125
-      $scope.insertFoodHandle = {};
126
-      $scope.search = {
127
-        spareOne: "",
128
-        spareTwo: "",
129
-      };
130
-      //下面的判断用于查看页面只读状态
131
-      if ($stateParams.isNotEdit != null) {
132
-        if ($stateParams.isNotEdit == "false") {
133
-          // 修改
134
-          $scope.isNotEdit = false;
135
-        } else if ($stateParams.isNotEdit == "true") {
136
-          // 查看
137
-          $scope.isNotEdit = true;
138
-        }
139
-      } else {
140
-        $scope.isNotEdit = false;
141
-      }
142
-      $scope.loadWare = function (houseId) {
143
-        warehouseService
144
-          .getStorehouse($rootScope.orgInfo.orgId, houseId, "0")
145
-          .then(
146
-            function (data) {
147
-              $scope.warelist = data.wareList; //下拉列表数据
148
-              $scope.warehouseObj = data.wares; //查询数据列表货位信息转换
149
-            },
150
-            function (data) {
151
-              console.log(data);
152
-            }
153
-          );
154
-      };
155
-      $scope.loadWare(null);
156
-      $scope.edit = function () {
157
-        // 编辑
158
-          if ($stateParams.id != 0) {
159
-            foodHandleService
160
-              .findDataById($stateParams.id)
161
-              .then(function (data) {
162
-                $scope.insertFoodHandle = data.data;
163
-                if($scope.insertFoodHandle.isSolve == 1) {
164
-                  $scope.insertFoodHandle.isSolve = "1"
132
+            $scope.edit = function () {
133
+                // 编辑
134
+                if ($stateParams.id != 0) {
135
+                    foodHandleService.findDataById($stateParams.id).then(function (data) {
136
+                        $scope.insertFoodHandle = data.data;
137
+                        if ($scope.insertFoodHandle.isSolve == 1) {
138
+                            $scope.insertFoodHandle.isSolve = "1"
139
+                        }
140
+                        if ($scope.insertFoodHandle.isSolve == 0) {
141
+                            $scope.insertFoodHandle.isSolve = "0"
142
+                        }
143
+                        $scope.search.spareOne = data.data.storeHouseId;
144
+                        $scope.search.spareTwo = data.data.wareHouseId;
145
+                        $scope.loadWare(data.data.storeHouseId);
146
+                    });
165 147
                 }
166
-                if($scope.insertFoodHandle.isSolve == 0) {
167
-                  $scope.insertFoodHandle.isSolve = "0"
148
+            };
149
+            $scope.edit();
150
+
151
+            //下面的判断用于查看页面只读状态
152
+            if ($stateParams.isNotEdit != null) {
153
+                if ($stateParams.isNotEdit == "false") {
154
+                    // 新增/修改
155
+                    $scope.isNotEdit = false;
156
+                    $scope.insertFoodHandle.commitPeople = $rootScope.userInfo.realName; // 提交人
157
+                    $scope.insertFoodHandle.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
158
+                } else if ($stateParams.isNotEdit == "true") {
159
+                    // 查看
160
+                    $scope.isNotEdit = true;
168 161
                 }
169
-                $scope.search.spareOne = data.data.storeHouseId;
170
-                $scope.search.spareTwo = data.data.wareHouseId;
171
-              });
172
-          }
173
-      };
174
-      $scope.edit();
162
+            } else {
163
+                $scope.isNotEdit = false;
164
+            }
175 165
 
176
-      $scope.insertFoodHandle = {
177
-        orgName: $rootScope.depotInfo.orgName,
178
-      };
166
+            // 获取保管员
167
+            $scope.getKeeperByHouseId = function (houseId) {
168
+                $scope.insertFoodHandle.custodian = $rootScope.storehouseObj[houseId].dutystoreman;
169
+            };
179 170
 
180
-      var validator = $("#safeProduceFood-form").validate();
181
-      $scope.saveData = function () {
182
-        if (validator.form()) {
183
-          $scope.insertFoodHandle.checkDate = $("input[name='checkDate']").val(); // 时间控件获取值
184
-          $scope.insertFoodHandle.orgId = $rootScope.orgInfo.orgId;
185
-          $scope.insertFoodHandle.storeHouseId = $scope.search.spareOne;
186
-          $scope.insertFoodHandle.storehouseName = $rootScope.storehouseObj[$scope.search.spareOne].storehouseName;
187
-          $scope.insertFoodHandle.warehouseName = $scope.warehouseObj[$scope.search.spareTwo].warehouseName;
188
-          $scope.insertFoodHandle.wareHouseId = $scope.search.spareTwo;
189
-          if (+$stateParams.id !== 0) {
190
-            foodHandleService
191
-              .updateFood(angular.toJson($scope.insertFoodHandle))
192
-              .then(
193
-                function (data) {
194
-                  if (data.message == "success") {
195
-                    alert("修改成功!");
196
-                    //$scope.back();
197
-                    $scope.backLayer();
198
-                  } else {
199
-                    alert("修改失败!");
200
-                  }
201
-                },
202
-                function (data) {
203
-                  console.log(data);
204
-                }
205
-              );
206
-          } else {
207
-            foodHandleService
208
-              .saveData(angular.toJson($scope.insertFoodHandle))
209
-              .then(
210
-                function (data) {
211
-                  if (data.message == "success") {
212
-                    alert("保存成功!");
213
-                    //$scope.back();
214
-                    $scope.backLayer();
215
-                  } else {
216
-                    alert("保存失败!");
217
-                  }
218
-                },
219
-                function (data) {
220
-                  console.log(data);
171
+            // 查询油品种
172
+            $scope.findQualityCheck = function (houseId) {
173
+                grainCardService.findQualityCheckScnd(houseId, null, 7052).then(function (data) {
174
+                    if (null != data.data) {
175
+                        // 品种编码
176
+                        // $scope.insertFoodHandle.grainOilVarieties = data.data.enumcode === null ? '' : data.data.enumcode;
177
+                        // 品种名称
178
+                        $scope.insertFoodHandle.grainOilVarieties = data.data.enumname === null ? '' : data.data.enumname;
179
+                    }
180
+                }, function (data) {
181
+                    console.log(data);
182
+                });
183
+            };
184
+
185
+            /*$scope.insertFoodHandle = {
186
+                orgName: $rootScope.depotInfo.orgName,
187
+            };*/
188
+
189
+            var validator = $("#safeProduceFood-form").validate();
190
+            $scope.saveData = function () {
191
+                if (validator.form()) {
192
+                    $scope.insertFoodHandle.checkDate = $("input[name='checkDate']").val(); // 时间控件获取值
193
+                    $scope.insertFoodHandle.orgId = $rootScope.orgInfo.orgId;
194
+                    $scope.insertFoodHandle.storeHouseId = $scope.search.spareOne;
195
+                    $scope.insertFoodHandle.storehouseName = $rootScope.storehouseObj[$scope.search.spareOne].storehouseName;
196
+                    // 油罐没货位
197
+                    if ($scope.search.spareTwo !== "") {
198
+                        $scope.insertFoodHandle.warehouseName = $scope.warehouseObj[$scope.search.spareTwo].warehouseName;
199
+                        $scope.insertFoodHandle.wareHouseId = $scope.search.spareTwo;
200
+                    }
201
+                    if (+$stateParams.id !== 0) {
202
+                        foodHandleService.updateFood(angular.toJson($scope.insertFoodHandle)).then(function (data) {
203
+                                if (data.message == "success") {
204
+                                    alert("修改成功!");
205
+                                    //$scope.back();
206
+                                    $scope.backLayer();
207
+                                } else {
208
+                                    alert("修改失败!");
209
+                                }
210
+                            }, function (data) {
211
+                                console.log(data);
212
+                            }
213
+                        );
214
+                    } else {
215
+                        foodHandleService.saveData(angular.toJson($scope.insertFoodHandle)).then(function (data) {
216
+                                if (data.message == "success") {
217
+                                    alert("保存成功!");
218
+                                    //$scope.back();
219
+                                    $scope.backLayer();
220
+                                } else {
221
+                                    alert("保存失败!");
222
+                                }
223
+                            }, function (data) {
224
+                                console.log(data);
225
+                            }
226
+                        );
227
+                    }
221 228
                 }
222
-              );
223
-          }
229
+            };
230
+            $scope.backLayer = function () {
231
+                $state.go("app.storage.foodHandle");
232
+            };
224 233
         }
225
-      };
226
-      $scope.backLayer = function () {
227
-        $state.go("app.storage.foodHandle");
228
-      };
229
-    }
230
-  );
234
+    );

+ 35 - 48
src/main/resources/static/app/storage/grainCard/controller/foodSituationCtrl.js

@@ -1,18 +1,6 @@
1 1
 "use strict";
2 2
 angular.module('app.storage').controller("foodSituationCtrl",
3 3
     function ($scope, $state, $rootScope, $uibModal, $http, $filter, $stateParams, APP_CONFIG, grainCardService, warehouseService,StorehouseService,archiveService) {
4
-        $scope.loadData2 = function () {
5
-            // 获取仓房列表
6
-            StorehouseService.getStorehouseList($rootScope.orgInfo.orgId, "0").then(function(data){
7
-                /* 包含所有有效的仓房信息的下拉对象  */
8
-                $rootScope.storelist2 = data.houseList;
9
-                /* 包含所有有效的油罐信息的下拉对象  */
10
-                $rootScope.tanklist2 = data.tankList;
11
-
12
-            },function(data){
13
-                console.log(data);
14
-            });
15
-        }
16 4
 
17 5
         // 获取列表数据
18 6
         $scope.pageInfo = {pageNum: 1, pageSize: 10};
@@ -67,35 +55,35 @@ angular.module('app.storage').controller("foodSituationCtrl",
67 55
                 });
68 56
             }
69 57
 
70
-            grainCardService.selectAndOrgId().then(function (data) {
71
-
72
-                for (var i = 0; i < data.data.length; i++) {
73
-                    var a = data.data[i].storehouseNum;
74
-                    for (var j = 0; j < $rootScope.storelist2.length; j++) {
75
-                        var b = $rootScope.storelist2[j].storehouseCode;
76
-                        if (a == b) {//删除仓房下拉选
77
-                            for (var c = 0; c < $rootScope.storelist2.length; c++) {
78
-                                if (($rootScope.storelist2[c].storehouseCode).indexOf(b) > -1) {//判断key为b的对象是否存在,
79
-                                    $rootScope.storelist2.splice(c, 1);//存在即删除
80
-                                }
81
-                            }
82
-                        }
83
-                    }
84
-
85
-                    for (var jj = 0; jj < $rootScope.tanklist2.length; jj++) {
86
-                        var bb = $rootScope.tanklist2[jj].storehouseCode;
87
-                        if (a == bb) {//删除油罐下拉选
88
-                            for (var cc = 0; cc < $rootScope.tanklist2.length; cc++) {
89
-                                if (($rootScope.tanklist2[cc].storehouseCode).indexOf(bb) > -1) {//判断key为bb的对象是否存在,
90
-                                    $rootScope.tanklist2.splice(cc, 1);//存在即删除
91
-                                }
92
-                            }
93
-                        }
94
-                    }
95
-                }
96
-            }, function (data) {
97
-                console.log(data);
98
-            });
58
+//            grainCardService.selectAndOrgId().then(function (data) {
59
+//
60
+//                for (var i = 0; i < data.data.length; i++) {
61
+//                    var a = data.data[i].storehouseNum;
62
+//                    for (var j = 0; j < $rootScope.storelist2.length; j++) {
63
+//                        var b = $rootScope.storelist2[j].storehouseCode;
64
+//                        if (a == b) {//删除仓房下拉选
65
+//                            for (var c = 0; c < $rootScope.storelist2.length; c++) {
66
+//                                if (($rootScope.storelist2[c].storehouseCode).indexOf(b) > -1) {//判断key为b的对象是否存在,
67
+//                                    $rootScope.storelist2.splice(c, 1);//存在即删除
68
+//                                }
69
+//                            }
70
+//                        }
71
+//                    }
72
+//
73
+//                    for (var jj = 0; jj < $rootScope.tanklist2.length; jj++) {
74
+//                        var bb = $rootScope.tanklist2[jj].storehouseCode;
75
+//                        if (a == bb) {//删除油罐下拉选
76
+//                            for (var cc = 0; cc < $rootScope.tanklist2.length; cc++) {
77
+//                                if (($rootScope.tanklist2[cc].storehouseCode).indexOf(bb) > -1) {//判断key为bb的对象是否存在,
78
+//                                    $rootScope.tanklist2.splice(cc, 1);//存在即删除
79
+//                                }
80
+//                            }
81
+//                        }
82
+//                    }
83
+//                }
84
+//            }, function (data) {
85
+//                console.log(data);
86
+//            });
99 87
         };
100 88
         $scope.loadData();
101 89
 
@@ -115,12 +103,12 @@ angular.module('app.storage').controller("foodSituationCtrl",
115 103
             // console.log('列表: ',flagType); // 温度卡标记(保存:1,提交:2)
116 104
             $state.go('app.storage.foodSituation.checkFoodSituationList', {
117 105
                 id: id,
118
-                qualitycheckId: qualitycheckId,
119
-                storehouseNum: storehouseNum,
120
-                warehouseNum: warehouseNum,
121
-                storehouseId: storehouseId,
122
-                warehouseId: warehouseId,
123
-                grainVarietyNum: grainVarietyNum,
106
+//                qualitycheckId: qualitycheckId,
107
+//                storehouseNum: storehouseNum,
108
+//                warehouseNum: warehouseNum,
109
+//                storehouseId: storehouseId,
110
+//                warehouseId: warehouseId,
111
+//                grainVarietyNum: grainVarietyNum,
124 112
                 tabType: 1
125 113
             });
126 114
         };
@@ -143,7 +131,6 @@ angular.module('app.storage').controller("foodSituationCtrl",
143 131
 
144 132
         // 修改粮情卡列表信息
145 133
         $scope.gainCardUpdate = function (id, storehouseNum, storehouseId) {
146
-            $scope.loadData2();
147 134
             // 判断是仓房或是油
148 135
             if (storehouseNum.match('YG')) {
149 136
                 $scope.addOilCarList(id, storehouseId); // 修改原油卡信息

+ 89 - 34
src/main/resources/static/app/storage/grainCard/controller/grainCarAddCtrl.js

@@ -1,6 +1,6 @@
1 1
 "use strict"; // 新增原粮 (补录)
2
-angular.module('app.storage').controller("grainCarAddCtrl", function ($scope, $state, $rootScope, $uibModal, $filter, $stateParams, warehouseService, 
3
-		grainCardService,receiveNoticeService) {
2
+angular.module('app.storage').controller("grainCarAddCtrl", function ($scope, $state, $rootScope, $filter, $stateParams, warehouseService, 
3
+		grainCardService,receiveNoticeService, pageListService, commonUtilService) {
4 4
     // 初始保存对象
5 5
     $scope.grainCard = {};
6 6
 
@@ -8,13 +8,16 @@ angular.module('app.storage').controller("grainCarAddCtrl", function ($scope, $s
8 8
     $scope.findOilGrainCardById = function (id) {
9 9
         grainCardService.findGrainCardById(id).then(function (data) {
10 10
             $scope.grainCard = data.data;
11
+            if ($scope.grainCard.flagType == "2") {
12
+            	$scope.isNotEdit = true; // 不可编辑
13
+            }
11 14
             // 建卡日期格式化回显
12 15
             $scope.grainCard.acceptDate = $filter('date')(data.data.acceptDate, "yyyy-MM-dd HH:mm:ss");
13 16
             $scope.findQualityCheck($scope.grainCard.storehouseId, $scope.grainCard.warehouseId);
14 17
         }, function (data) {
15 18
             console.log(data);
16 19
         });
17
-    };
20
+    }
18 21
 
19 22
     // 货位列表
20 23
     $scope.loadWare = function (houseId) {
@@ -44,19 +47,82 @@ angular.module('app.storage').controller("grainCarAddCtrl", function ($scope, $s
44 47
     };
45 48
 
46 49
     // 判断新增或修改
47
-    if ($stateParams.id === '') { // 新增保存
50
+    if ($stateParams.id === '') { // 新增
48 51
         $scope.isNotEdit = false; // 可编辑
49 52
         $scope.grainCard.acceptDate = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 建卡日期
53
+        $scope.grainCard.checkTypeNum = "0";//默认赋值入库
54
+        //分公司默认“直储”,其他库均默认展示“代储”
55
+        if ($rootScope.orgInfo.orgId == "76") {
56
+        	$scope.grainCard.storeType = "1";
57
+        } else {
58
+        	$scope.grainCard.storeType = "2";
59
+        }
60
+        $scope.grainCard.jkr = $rootScope.userInfo.realName;//建卡人
50 61
     } else { // 修改保存
51
-        $scope.isNotEdit = true; // 不可编辑
52 62
         $scope.findOilGrainCardById($stateParams.id);
53 63
         $scope.loadWare($stateParams.storehouseId);
54 64
     }
55 65
 
56
-    // 成品粮粮情卡保存
66
+    $.validator.addMethod("checkCsscldc",function(value,element, params) {
67
+        //var checkNumber = /^\d*\.{0,1}\d{1,2}$/g;
68
+        var checkNumber =/^(?!0+(?:\.0+)?$)(?:[1-9]\d*|0)(?:\.\d{1,2})?$/g;
69
+        var flag = this.optional(element)||(checkNumber.test(value));
70
+        if (flag) {
71
+        	var storeLength = $rootScope.storehouseObj[$scope.grainCard.storehouseId].length;
72
+        	if (Number(value) > Number(storeLength)) {
73
+        		return false;
74
+        	} else {
75
+        		return true;
76
+        	}
77
+        } else {
78
+        	return false;
79
+        }
80
+    },"请输入大于0的数字,最多两位小数,且不能超过仓内长!");
81
+
82
+    $.validator.addMethod("checkCsscldk",function(value,element, params) {
83
+        //var checkNumber = /^\d*\.{0,1}\d{1,2}$/g;
84
+        var checkNumber =/^(?!0+(?:\.0+)?$)(?:[1-9]\d*|0)(?:\.\d{1,2})?$/g;
85
+        var flag = this.optional(element)||(checkNumber.test(value));
86
+        if (flag) {
87
+        	var storeWidth = $rootScope.storehouseObj[$scope.grainCard.storehouseId].width;
88
+        	if (Number(value) > Number(storeWidth)) {
89
+        		return false;
90
+        	} else {
91
+        		return true;
92
+        	}
93
+        } else {
94
+        	return false;
95
+        }
96
+    },"请输入大于0的数字,最多两位小数,且不能超过仓内宽!");
97
+
98
+    $.validator.addMethod("checkCsscldg",function(value,element, params) {
99
+        //var checkNumber = /^\d*\.{0,1}\d{1,2}$/g;
100
+        var checkNumber =/^(?!0+(?:\.0+)?$)(?:[1-9]\d*|0)(?:\.\d{1,2})?$/g;
101
+        var flag = this.optional(element)||(checkNumber.test(value));
102
+        if (flag) {
103
+        	var storeHeigth = $rootScope.storehouseObj[$scope.grainCard.storehouseId].heigth;
104
+        	if (Number(value) > Number(storeHeigth)) {
105
+        		return false;
106
+        	} else {
107
+        		return true;
108
+        	}
109
+        } else {
110
+        	return false;
111
+        }
112
+    },"请输入大于0的数字,最多两位小数,且不能超过仓内檐高!");
113
+
114
+    //计算粮堆体积
115
+    $scope.getLdtj = function() {
116
+    	if ($scope.grainCard.csscldc != null && $scope.grainCard.csscldk != null && $scope.grainCard.csscldg != null) {
117
+    		var ldtj = $scope.grainCard.csscldc * $scope.grainCard.csscldk * $scope.grainCard.csscldg;
118
+    		$scope.grainCard.looseGrainVolume = commonUtilService.getMath(ldtj);
119
+    	}
120
+    }
121
+    // 原粮粮情卡保存
57 122
     var validator = $("#grainCarAdd-form").validate();
58
-    $scope.save = function () {
123
+    $scope.save = function (flagType) {
59 124
         if (validator.form()) {
125
+        	$scope.grainCard.flagType = flagType;
60 126
             $scope.grainCard.orgId = $rootScope.orgInfo.orgId; // 组织编码
61 127
             $scope.grainCard.storehouseName = $rootScope.storehouseObj[$scope.grainCard.storehouseId].storehouseName; // 仓房名称
62 128
             $scope.grainCard.storehouseNum = $rootScope.storehouseObj[$scope.grainCard.storehouseId].storehouseCode; // 仓房编码
@@ -75,49 +141,38 @@ angular.module('app.storage').controller("grainCarAddCtrl", function ($scope, $s
75 141
             }
76 142
             // 验收类型名
77 143
             if ($scope.grainCard.checkTypeNum === '0') { // 入库验收
78
-                $scope.grainCard.checkTypeName = '入库验收';
144
+                $scope.grainCard.checkTypeName = '入库';
79 145
                 $scope.grainCard.sfmc = '1'; // 是否满仓(入库(0:否,1:是).倒仓,移库(2:表示倒仓移库数据))
80 146
             } else if ($scope.grainCard.checkTypeNum === '1') { // 倒仓验收
81
-                $scope.grainCard.checkTypeName = '倒仓验收';
147
+                $scope.grainCard.checkTypeName = '倒仓';
82 148
                 $scope.grainCard.sfmc = '2'; // 是否满仓(入库(0:否,1:是).倒仓,移库(2:表示倒仓移库数据))
83 149
             } else { // 移库验收
84
-                $scope.grainCard.checkTypeName = '移库验收';
150
+                $scope.grainCard.checkTypeName = '移库';
85 151
                 $scope.grainCard.sfmc = '2'; // 是否满仓(入库(0:否,1:是).倒仓,移库(2:表示倒仓移库数据))
86 152
             }
87
-            //小麦及混合小麦111 ,玉米112,大豆141,稻谷113  市平台
88
-            //小麦及混合小麦3164,玉米3165,大豆2777,稻谷3166
89
-            /*if ($scope.grainCard.grainVarietyNum === '111') {
90
-                $scope.grainCard.grainVarietyName = '小麦及混合小麦'
91
-            } else if ($scope.grainCard.grainVarietyNum === '112') {
92
-                $scope.grainCard.grainVarietyName = '玉米'
93
-            } else if ($scope.grainCard.grainVarietyNum === '113') {
94
-                $scope.grainCard.grainVarietyName = '稻谷'
95
-            } else {
96
-                $scope.grainCard.grainVarietyName = '大豆'
97
-            }*/
98 153
 
99
-            $scope.searchCondition = {houseId:$scope.grainCard.storehouseId ,wareHouseId:$scope.grainCard.warehouseId,isNotice:1,isSheet:0,auditState:14};
100
-            //未进行审核完成的【性质转变单】,该仓再下一次申请入库验收的时候,会提示,需要将上一次的粮食性质转变单审核完成,才能进行提交。
101
-            receiveNoticeService.getPageInfo(1, 10,$scope.searchCondition).then(function(data){
102
-                if(data.list.length>0 && data.list[0].auditState != 5 ){
103
-                	alert("需要将上一次的粮食性质转变单审批完成,才能进行提交");
104
-                }else{
105
-                	grainCardService.saveGrainOilCardData($scope.grainCard).then(function (data) {
106
-                        if (data.retCode === '200' && data.message === 'success') {
154
+            $scope.search = {auditState: 3, houseId: $scope.grainCard.storehouseId, warehouseId: $scope.grainCard.warehouseId, applyTime: $scope.rksj};
155
+            pageListService.getPageList(1, 1, $scope.search).then(function (data) {
156
+                $scope.pageInfo = data.data;
157
+                if ($scope.pageInfo.list.length > 0) {
158
+                	$scope.grainCard.fcqrdId = $scope.pageInfo.list[0].id;
159
+                	grainCardService.saveGrainOilCardData($scope.grainCard).then(function (datas) {
160
+                        if (datas.retCode === '200' && datas.message === 'success') {
107 161
                             alert("保存成功");
108 162
                             $scope.retList();
109 163
                         } else {
110 164
                             alert("保存失败");
111 165
                         }
112
-                    }, function (data) {
113
-                        console.log(data);
166
+                    }, function (datas) {
167
+                        console.log(datas);
114 168
                     });
169
+                } else {
170
+                	alert("请先做封仓确认单业务!");
115 171
                 }
116
-            },function(data){
172
+            }, function (data) {
117 173
                 console.log(data);
118 174
             });
119
-            
120
-            
175
+
121 176
         }
122 177
     };
123 178
 

+ 50 - 15
src/main/resources/static/app/storage/grainCard/controller/oilCarAddCtrl.js

@@ -1,5 +1,5 @@
1 1
 "use strict"; // 新增原油 (补录)
2
-angular.module('app.storage').controller("oilCarAddCtrl", function ($scope, $state, $rootScope, $uibModal, $filter, $stateParams, grainCardService) {
2
+angular.module('app.storage').controller("oilCarAddCtrl", function ($scope, $state, $rootScope, $filter, $stateParams, grainCardService, pageListService) {
3 3
     // 初始保存对象
4 4
     $scope.oilCard = {};
5 5
 
@@ -7,6 +7,9 @@ angular.module('app.storage').controller("oilCarAddCtrl", function ($scope, $sta
7 7
     $scope.findOilGrainCardById = function (id) {
8 8
         grainCardService.findGrainCardById(id).then(function (data) {
9 9
             $scope.oilCard = data.data;
10
+            if ($scope.oilCard.flagType == "2") {
11
+            	$scope.isNotEdit = true; // 不可编辑
12
+            }
10 13
             // 建卡日期格式化回显
11 14
             $scope.oilCard.acceptDate = $filter('date')(data.data.acceptDate, "yyyy-MM-dd HH:mm:ss");
12 15
             $scope.findQualityCheck($scope.oilCard.storehouseId);
@@ -30,21 +33,42 @@ angular.module('app.storage').controller("oilCarAddCtrl", function ($scope, $sta
30 33
         }, function (data) {
31 34
             console.log(data);
32 35
         });
33
-    };
36
+    }
37
+
38
+    $.validator.addMethod("checkHeight",function(value,element, params) {
39
+        //var checkNumber = /^\d*\.{0,1}\d{1,2}$/g;
40
+        var checkNumber =/^(?!0+(?:\.0+)?$)(?:[1-9]\d*|0)(?:\.\d{1,2})?$/g;
41
+        var flag = this.optional(element)||(checkNumber.test(value));
42
+        if (flag) {
43
+        	var tankHeight = $rootScope.tankObj[$scope.oilCard.storehouseId].height;
44
+        	if (Number(value) > Number(tankHeight)) {
45
+        		return false;
46
+        	} else {
47
+        		return true;
48
+        	}
49
+        } else {
50
+        	return false;
51
+        }
52
+        //return this.optional(element)||(checkNumber.test(value));
53
+    },"请输入大于0的数字,最多两位小数,且不能大于油罐设计高度!");
34 54
 
35 55
     // 判断新增或修改
36 56
     if ($stateParams.id === '') { // 新增保存
37 57
         $scope.isNotEdit = false; // 可编辑
38 58
         $scope.oilCard.acceptDate = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 建卡日期
59
+        $scope.oilCard.checkTypeNum = "0";//默认赋值入库
60
+        $scope.oilCard.jkr = $rootScope.userInfo.realName;//建卡人
61
+        $scope.ygzt = "封仓";
39 62
     } else { // 修改保存
40
-        $scope.isNotEdit = true; // 不可编辑
63
+        //$scope.isNotEdit = true; // 不可编辑
41 64
         $scope.findOilGrainCardById($stateParams.id);
42
-        // $scope.findQualityCheckScnd($stateParams.storehouseId);
65
+        $scope.ygzt = "封仓";
43 66
     }
44 67
 
45 68
     var validator = $("#oilCardAdd-form").validate();
46
-    $scope.save = function () {
69
+    $scope.save = function (flagType) {
47 70
         if (validator.form()) {
71
+        	$scope.oilCard.flagType = flagType;
48 72
             $scope.oilCard.orgId = $rootScope.orgInfo.orgId; // 组织编码
49 73
             $scope.oilCard.storehouseName = $rootScope.storehouseObj[$scope.oilCard.storehouseId].storehouseName; // 仓房名称
50 74
             $scope.oilCard.storehouseNum = $rootScope.storehouseObj[$scope.oilCard.storehouseId].storehouseCode; // 仓房编码
@@ -60,24 +84,35 @@ angular.module('app.storage').controller("oilCarAddCtrl", function ($scope, $sta
60 84
             }
61 85
             // 验收类型名
62 86
             if ($scope.oilCard.checkTypeNum === '0') { // 入库验收
63
-                $scope.oilCard.checkTypeName = '入库验收';
87
+                $scope.oilCard.checkTypeName = '入库';
64 88
                 $scope.oilCard.sfmc = '1'; // 是否满仓(入库(0:否,1:是).倒仓,移库(2:表示倒仓移库数据))
65 89
             } else if ($scope.oilCard.checkTypeNum === '1') { // 倒仓验收
66
-                $scope.oilCard.checkTypeName = '倒仓验收';
90
+                $scope.oilCard.checkTypeName = '倒仓';
67 91
                 $scope.oilCard.sfmc = '2'; // 是否满仓(入库(0:否,1:是).倒仓,移库(2:表示倒仓移库数据))
68 92
             } else { // 移库验收
69
-                $scope.oilCard.checkTypeName = '移库验收';
93
+                $scope.oilCard.checkTypeName = '移库';
70 94
                 $scope.oilCard.sfmc = '2'; // 是否满仓(入库(0:否,1:是).倒仓,移库(2:表示倒仓移库数据))
71 95
             }
72
-            grainCardService.saveGrainOilCardData($scope.oilCard).then(function (data) {
73
-                if (data.retCode === '200' && data.message === 'success') {
74
-                    alert("保存成功");
75
-                    $scope.retList();
96
+            $scope.search = {auditState: 3, houseId: $scope.grainCard.storehouseId, warehouseId: null, applyTime: $scope.rksj};
97
+            pageListService.getPageList(1, 1, $scope.search).then(function (datas) {
98
+            	$scope.pageInfo = datas.data;
99
+                if ($scope.pageInfo.list.length > 0) {
100
+                	$scope.oilCard.fcqrdId = $scope.pageInfo.list[0].id;
101
+                	grainCardService.saveGrainOilCardData($scope.oilCard).then(function (data) {
102
+                        if (data.retCode === '200' && data.message === 'success') {
103
+                            alert("保存成功");
104
+                            $scope.retList();
105
+                        } else {
106
+                            alert("保存失败");
107
+                        }
108
+                    }, function (data) {
109
+                        console.log(data);
110
+                    });
76 111
                 } else {
77
-                    alert("保存失败");
112
+                	alert("请先做封仓确认单业务!");
78 113
                 }
79
-            }, function (data) {
80
-                console.log(data);
114
+            }, function (datas) {
115
+                console.log(datas);
81 116
             });
82 117
         }
83 118
     };

+ 80 - 177
src/main/resources/static/app/storage/grainCard/controller/productGrainAddCtrl.js

@@ -1,22 +1,17 @@
1 1
 "use strict";
2 2
 angular.module('app.storage').controller("productGrainAddCtrl",
3 3
     function ($scope, $state, $rootScope, $uibModal, $http, $filter, warehouseService, $stateParams,receiveNoticeService, 
4
-    		cerealsCardService, StorehouseService, keeperService, enumService, TankService, productService) {
5
-        // console.log('id: ' + $stateParams.id, $stateParams.spareOne, $stateParams.lypzName);
4
+    		cerealsCardService, StorehouseService, keeperService, enumService, TankService, productService, pageListService) {
5
+
6 6
         // 初始保存对象
7 7
         $scope.cerealsCard = {};
8
-        $scope.grainOrOil = false; // 默认显示仓房信息
9
-
10
-        // 初始化建卡日期
11
-        $scope.cerealsCard.jkrq = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");
12 8
 
13 9
         // 保存或修改
14 10
         $scope.loadDataById = function (id) {
15 11
             cerealsCardService.findDataById(id).then(function (data) {
16 12
                 $scope.cerealsCard = data.data;
17
-                // 数据类型(0仓房,1油罐)
18
-                if ('1' === $scope.cerealsCard.spareFour) {
19
-                    $scope.grainOrOil = true; // 油罐信息
13
+                if (data.data.dataStatus=='1') {
14
+                	$scope.isNotEdit = true;
20 15
                 }
21 16
                 // 字符串转number
22 17
                 $scope.cerealsCard.spareOne = parseInt(data.data.spareOne);
@@ -29,129 +24,45 @@ angular.module('app.storage').controller("productGrainAddCtrl",
29 24
                 $scope.cerealsCard.scrq = $filter('date')(data.data.scrq, "yyyy-MM-dd");
30 25
                 $scope.cerealsCard.jkrq = $filter('date')(data.data.jkrq, "yyyy-MM-dd HH:mm:ss");
31 26
                 $scope.cerealsCard.buildDate = $filter('date')(data.data.buildDate, "yyyy-MM-dd");
32
-                $scope.getAreaData(); // 树形下拉产地
33
-                $scope.getsGrainDetailKind(); //树形下拉明细品种
27
+                $scope.type = $scope.cerealsCard.spareFour;
34 28
             }, function (data) {
35 29
                 console.log(data);
36 30
             });
37
-        };
38
-        
39
-        $scope.getMath = function(v) {
40
-            if (isNaN(v) || v == "") {
41
-                v = 0.00;
42
-            } else {
43
-                v = Math.round(v*100)/100;
44
-                v = v.toString();
45
-                var rs = v.indexOf('.');
46
-                if(rs < 0){
47
-                    v = v + ".00";
48
-                }else{
49
-                    while(v.length <= rs + 2){v += '0';}
50
-                }
51
-            }
52
-            return v;
53 31
         }
54 32
 
55 33
         // 获取仓房基础信息
56 34
         $scope.findStorehouse = function (houseId) {
57
-            StorehouseService.findByStorehouse(houseId, $rootScope.orgInfo.orgId).then(function (data) {
58
-                // 数据类型(0仓房,1油罐)
59
-                if (data.datatype !== '0') {
60
-                    $scope.grainOrOil = true; // 油罐信息
61
-                    TankService.findByTank(houseId).then(function (dataT) {
62
-                        // 油罐数据转换
63
-                        $scope.cerealsCard.storehouseCode = dataT.storagetankCode; // 油罐编码
64
-                        $scope.cerealsCard.storehouseName = dataT.storagetankName; // 油罐名称
65
-                        $scope.cerealsCard.storehouseType = dataT.tankType; // 油罐类型编码
66
-                        $scope.cerealsCard.storehouseTypeName = $rootScope.dicData[dataT.tankType]; // 油罐类型名
67
-                        $scope.cerealsCard.buildDate = dataT.builddate; //建造日期,使用油罐启用时间
68
-                        $scope.cerealsCard.wallName = dataT.tankCapacity; // 油罐容量(吨)
69
-                        $scope.cerealsCard.outsideHeigth = dataT.diameter; // 直径(m)
70
-                        $scope.cerealsCard.inLength = dataT.height; // 高度(m)
71
-                        $scope.cerealsCard.inWidth = dataT.bottomArea; // 底面积(m²)
72
-                        $scope.cerealsCard.grainLineHeigth = dataT.designHeight; // 设计储油高度(m)
73
-                        $scope.cerealsCard.binVolume = dataT.oilHeight; // 出油口高度(m)
74
-                        $scope.cerealsCard.spareFour = '1'; // 0仓房,1油罐
75
-                        $scope.cerealsCard.spareFive = dataT.insportHeight; // 检查口高度(米)
76
-                    }, function (data) {
77
-                        console.log(data);
78
-                    });
79
-                } else { // 仓房信息
80
-                    // 仓房数据转换
81
-                    $scope.cerealsCard.storehouseCode = data.storehouseCode; // 仓房编码
82
-                    $scope.cerealsCard.storehouseName = data.storehouseName; // 仓房名称
83
-                    $scope.cerealsCard.storehouseType = data.storehouseType; // 仓房类型编码
84
-                    $scope.cerealsCard.storehouseTypeName = $rootScope.dicData[data.storehouseType]; // 仓房类型名
85
-                    $scope.cerealsCard.buildDate = data.usedate; //创建时间,使用仓房启用时间
86
-                    $scope.cerealsCard.wallCode = data.house; // 仓房结构编码
87
-                    $scope.cerealsCard.wallName = $rootScope.dicData[data.house]; // 仓房结构名称
88
-                    $scope.cerealsCard.outsideHeigth = data.storeOutsideHeigth; // 外檐高度(m)
89
-                    if(data.storehouseType == "2972" || data.storehouseType == "2973"){//仓房类型为圆筒仓和浅圆仓
90
-                    	$scope.cerealsCard.inLength = data.siloDiameter; // 仓内长(筒仓内劲)
91
-                        $scope.cerealsCard.inWidth = null; // 仓内宽
92
-                        var cnc = parseFloat($scope.cerealsCard.siloDiameter == null ? 1 : $scope.cerealsCard.siloDiameter);
93
-                        //var cnk = parseFloat($scope.cerealsCard.inWidth == null ? 1 : $scope.cerealsCard.inWidth);
94
-                        $scope.cerealsCard.binVolume = $scope.getMath(3.14*(cnc/2)*(cnc/2));// 使用面积
95
-                    } else {
96
-                    	$scope.cerealsCard.inLength = data.length; // 仓内长
97
-                        $scope.cerealsCard.inWidth = data.width; // 仓内宽
98
-                        var cnc = parseFloat($scope.cerealsCard.inLength == null ? 1 : $scope.cerealsCard.inLength);
99
-                        var cnk = parseFloat($scope.cerealsCard.inWidth == null ? 1 : $scope.cerealsCard.inWidth);
100
-                        $scope.cerealsCard.binVolume = $scope.getMath(cnc*cnk);// 使用面积
101
-                    }
102
-                    $scope.cerealsCard.grainLineHeigth = data.grainLineHeigth; // 设计装粮线高度高度
103
-                    $scope.cerealsCard.spareFour = '0'; // 0仓房,1油罐
104
-                }
105
-            }, function (data) {
106
-                console.log(data);
107
-            });
108
-        };
109
-
110
-        // 树形下拉框(明细品种)
111
-        $scope.getsGrainDetailKind = function () {
112
-            enumService.getTreeListByTypeId($scope.cerealsCard.spareThree, $scope.cerealsCard.lypzCode).then(function (data) {
113
-                $scope.grainDetailKindTreeData = data;
114
-            }, function (data) {
115
-                console.log(data);
116
-            })
117
-        };
118
-
119
-        // 树形下拉框(粮食产地)
120
-        $scope.getAreaData = function () {
121
-            enumService.getTreeList($scope.cerealsCard.lycdCode, "grainProducingArea").then(function (data) {
122
-                $scope.grainProducingAreaTreeData = data;
123
-            }, function (data) {
124
-                console.log(data);
125
-            })
126
-        };
127
-
128
-        // 获取仓房下保管员
129
-        $scope.findKeeperNames = function (houseId) {
130
-            //通过仓房号获取保管员
131
-            keeperService.getKeeperNamesByHouseId(houseId).then(function (data) {
132
-                $scope.cerealsCard.storemanName = data.keeperNames; // 保管员
133
-                $scope.cerealsCard.imageUrl = data.avatorUrl; // 头像路径
134
-            }, function (data) {
135
-                console.log(data);
136
-            });
137
-        };
35
+        	var datatype = $rootScope.storehouseObj[houseId].datatype;
36
+        	if (datatype !== '0') {
37
+        		// 油罐数据
38
+        		$scope.cerealsCard.storehouseCode = $rootScope.tankObj[houseId].storagetankCode; // 油罐编码
39
+        		$scope.cerealsCard.storehouseName = $rootScope.tankObj[houseId].storagetankName; // 油罐名称
40
+        		$scope.cerealsCard.storehouseType = $rootScope.tankObj[houseId].tankType; // 油罐类型编码
41
+        		$scope.cerealsCard.storehouseTypeName = $rootScope.dicData[$scope.cerealsCard.storehouseType]; // 油罐类型名
42
+        		$scope.cerealsCard.spareFour = '1'; // 0仓房,1油罐
43
+        	} else { // 仓房信息
44
+        		$scope.cerealsCard.storehouseCode = $rootScope.storehouseObj[houseId].storehouseCode; // 仓房编码
45
+        		$scope.cerealsCard.storehouseName = $rootScope.storehouseObj[houseId].storehouseName; // 仓房名称
46
+        		$scope.cerealsCard.storehouseType = $rootScope.storehouseObj[houseId].storehouseType; // 仓房类型编码
47
+        		$scope.cerealsCard.storehouseTypeName = $rootScope.dicData[$scope.cerealsCard.storehouseType]; // 仓房类型名
48
+        		$scope.cerealsCard.spareFour = '0'; // 0仓房,1油罐
49
+        	}
50
+        }
138 51
 
139 52
         // 根据仓房获取货位
140 53
         $scope.findWare = function (houseId) {
141
-            // 获取货位
142
-            warehouseService.getStorehouse($rootScope.orgInfo.orgId, houseId, "0").then(function (data) {
143
-                $scope.warelist = data.wareList;  //下拉列表数据
144
-                $scope.warehouseObj = data.wares;	//查询数据列表货位信息转换
145
-            }, function (data) {
146
-                console.log(data);
147
-            });
54
+        	var datatype = $rootScope.storehouseObj[houseId].datatype;
55
+        	if (datatype == "0") {
56
+        		// 获取货位
57
+        		warehouseService.getStorehouse($rootScope.orgInfo.orgId, houseId, "0").then(function (data) {
58
+        			$scope.warelist = data.wareList;  //下拉列表数据
59
+        			$scope.warehouseObj = data.wares;	//查询数据列表货位信息转换
60
+        		}, function (data) {
61
+        			console.log(data);
62
+        		});
63
+        	}
148 64
         };
149 65
 
150
-        // 带出粮油等级
151
-        $scope.loadLYDJ = function () {
152
-            $scope.getsGrainDetailKind();
153
-        };
154
-        
155 66
         //获取成品粮库存数据
156 67
         $scope.getProductData = function(houseId, wareId) {
157 68
         	$scope.search = {houseId:houseId, wareId:wareId};
@@ -161,24 +72,14 @@ angular.module('app.storage').controller("productGrainAddCtrl",
161 72
                     $scope.qualityFinishedCard = datas.list[0];//根据仓房和货位获取成品粮油卡
162 73
                     $scope.cerealsCard.lypzCode = datas.list[0].lypz.toString();//品种
163 74
                     $scope.cerealsCard.lypzName = $rootScope.dicData[datas.list[0].lypz];
164
-                    $scope.cerealsCard.spareThree = parseInt($scope.qualityFinishedCard.mxpz);//明细品种
165 75
                     $scope.cerealsCard.lydjCode = datas.list[0].lydj; //等级
166 76
                     $scope.cerealsCard.rksj = $filter('date')($scope.qualityFinishedCard.rksj, "yyyy-MM-dd HH:mm:ss");//入仓时间
167 77
                     $scope.cerealsCard.zhycsj = $filter('date')($scope.qualityFinishedCard.zhycsj, "yyyy-MM-dd HH:mm:ss");//入库时间
168
-                    $scope.cerealsCard.lycdCode = parseInt($scope.qualityFinishedCard.lycd);//产地
169 78
                     $scope.cerealsCard.lysl = $scope.qualityFinishedCard.kcsl;//数量
170
-                    
171
-                    // 树形下拉框(明细品种)
172
-        			$scope.getsGrainDetailKind();
173
-
174
-        			// 树形下拉框(粮食产地)
175
-        			$scope.getAreaData();
176 79
                 }else{
177 80
                 	$scope.cerealsCard.lypzCode="";//品种
178
-                	$scope.cerealsCard.spareThree="";//明细品种
179 81
                 	$scope.cerealsCard.lydjCode="";//等级
180 82
                 	$scope.cerealsCard.rksj="";//入库时间
181
-                	$scope.cerealsCard.lycdCode="";//产地
182 83
                 	$scope.cerealsCard.lysl = "";//数量
183 84
                 }
184 85
             },function(datas){
@@ -215,41 +116,60 @@ angular.module('app.storage').controller("productGrainAddCtrl",
215 116
 
216 117
         // 修改判断回显数据
217 118
         if ($stateParams.id !== '') { // 修改
218
-            $scope.isNotEdit = true;
219 119
             $scope.loadDataById($stateParams.id); // 条件id查询对应数据
220 120
             $scope.findWare($stateParams.spareOne); // 获取仓房下货位
221
-            $scope.loadLYDJ($stateParams.lypzName); // 成品粮品种
222
-            //$scope.getAreaData(); // 树形下拉
223
-            //$scope.getsGrainDetailKind();
224
-        } else { // 新增保存
225
-            $scope.getAreaData(); // 树形下拉
121
+        } else { // 新增
122
+        	$scope.type = $stateParams.type;
226 123
             $scope.isNotEdit = false; // 新增禁用修改仓房货位
124
+            $scope.cerealsCard.ywlx = "0";//默认展示入库
125
+            $scope.cerealsCard.jkr = $rootScope.userInfo.realName;
126
+            $scope.cerealsCard.jkrq = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");
227 127
         }
228 128
 
229 129
         // 货位列表
230 130
         $scope.loadWare = function (houseId) {
231 131
             $scope.findWare(houseId); // 根据仓房获取货位
232 132
             $scope.findStorehouse(houseId); // 获取仓房基础信息
233
-            $scope.findKeeperNames(houseId); // 获取仓房保管员
234 133
             //带出当前货位的库存信息,品种、明细品种、产地、等级、等级、入库时间、数量(吨)
235 134
         	$scope.getProductData(houseId, houseId);
236 135
         };
237 136
 
137
+        $.validator.addMethod("checkSjcygd",function(value,element, params) {
138
+            //var checkNumber = /^\d*\.{0,1}\d{1,2}$/g;
139
+            var checkNumber =/^(?!0+(?:\.0+)?$)(?:[1-9]\d*|0)(?:\.\d{1,2})?$/g;
140
+            var flag = this.optional(element)||(checkNumber.test(value));
141
+            if (flag) {
142
+            	var storeWidth = $rootScope.tankObj[$scope.cerealsCard.spareOne].designHeight;
143
+            	if (Number(value) > Number(storeWidth)) {
144
+            		return false;
145
+            	} else {
146
+            		return true;
147
+            	}
148
+            } else {
149
+            	return false;
150
+            }
151
+        },"请输入大于0的数字,最多两位小数,且不能超过设计储油高度!");
152
+
238 153
         // 成品粮粮情卡保存
239 154
         var validator = $("#productGrainAdd-form").validate();
240
-        $scope.save = function () {
155
+        $scope.save = function (dataStatus) {
241 156
             if (validator.form()) {
242 157
                 $scope.cerealsCard.orgId = $rootScope.orgInfo.orgId;
243
-                if (!$scope.grainOrOil) {
158
+                $scope.cerealsCard.dataStatus = dataStatus;
159
+                var dataType = $rootScope.storehouseObj[$scope.cerealsCard.spareOne].datatype;
160
+                if (dataType == "0") {
244 161
                     var wareId = parseInt($scope.cerealsCard.spareTwo);
245 162
                     $scope.cerealsCard.warehouseName = $scope.warehouseObj[wareId].warehouseName; // 货位名称
246 163
                     $scope.cerealsCard.warehouseCode = $scope.warehouseObj[wareId].warehouseCode; // 货位编号
164
+                } else {
165
+                	$scope.cerealsCard.spareTwo = null;
247 166
                 }
248 167
                 // 保存获取时间插件值
249 168
                 $scope.cerealsCard.rksj = $("input[name='rksj']").val();
250 169
                 $scope.cerealsCard.zhycsj = $("input[name='zhycsj']").val();
251 170
                 $scope.cerealsCard.scrq = $("input[name='scrq']").val();
252 171
                 $scope.cerealsCard.jkrq = $("input[name='jkrq']").val();
172
+                $scope.cerealsCard.bzq = $("input[name='bzq']").val();
253 173
                 var rcsj = new Date($scope.cerealsCard.rksj.replace( /\-/g, "\/"));
254 174
                 var jksj = new Date($scope.cerealsCard.jkrq.replace( /\-/g, "\/"));
255 175
                 if (rcsj!= "" && jksj!= "" && rcsj > jksj) {
@@ -257,47 +177,30 @@ angular.module('app.storage').controller("productGrainAddCtrl",
257 177
                     return false;
258 178
                 }
259 179
 
260
-                // 储存方式名称
261
-                // $scope.cerealsCard.ccfsName = $rootScope.dicData[$scope.cerealsCard.ccfsCode];
262
-                // console.log($rootScope.dicDataList[5411]);
263
-                //粮油产地
264
-                $scope.grainProducingArea = angular.fromJson($scope.cerealsCard.lycdCode);
265
-                var area = angular.isNumber($scope.grainProducingArea);
266
-                if (!area) {
267
-                    $scope.cerealsCard.lycdCode = $scope.grainProducingArea[0].id;
268
-                    $scope.cerealsCard.lycdName = $scope.grainProducingArea[0].name;
269
-                }
270
-                // 明细品种
271
-                $scope.grainDetail = angular.fromJson($scope.cerealsCard.spareThree);
272
-                var mxpz = angular.isNumber($scope.grainDetail);
273
-                if (!mxpz) {
274
-                    $scope.cerealsCard.spareThree = $scope.grainDetail[0].id;
275
-                }
276
-                
277
-                $scope.searchCondition = {houseId:$scope.cerealsCard.spareOne ,wareHouseId:$scope.cerealsCard.spareTwo,isNotice:1,isSheet:0,auditState:14};
278
-                //未进行审核完成的【性质转变单】,该仓再下一次申请入库验收的时候,会提示,需要将上一次的粮食性质转变单审核完成,才能进行提交。
279
-                receiveNoticeService.getPageInfo(1, 10,$scope.searchCondition).then(function(data){
280
-                    if(data.list.length>0 && data.list[0].auditState != 5 ){
281
-                    	alert("需要将上一次的粮食性质转变单审批完成,才能进行提交");
282
-                    }else{
283
-	                    cerealsCardService.saveData($scope.cerealsCard).then(function (data) {
284
-	                        if (data.retCode === '200' && data.message === 'success') {
285
-	                            alert("保存成功");
286
-	                            $scope.retList();
287
-	                        } else {
288
-	                            alert("保存失败");
289
-	                        }
290
-	                    }, function (data) {
291
-	                        console.log(data);
292
-	                    });
293
-	                    }
294
-                },function(data){
180
+                $scope.search = {auditState: 3, houseId: $scope.cerealsCard.spareOne, warehouseId: $scope.cerealsCard.spareTwo, applyTime: $scope.cerealsCard.zhycsj};
181
+                pageListService.getPageList(1, 1, $scope.search).then(function (data) {
182
+                	$scope.pageInfo = data.data;
183
+                    if ($scope.pageInfo.list.length > 0) {
184
+                    	$scope.cerealsCard.fcqrdId = $scope.pageInfo.list[0].id;
185
+                    	cerealsCardService.saveData($scope.cerealsCard).then(function (datas) {
186
+                    		if (datas.retCode === '200' && datas.message === 'success') {
187
+                    			alert("保存成功");
188
+                    			$scope.retList();
189
+                    		} else {
190
+                    			alert("保存失败");
191
+                    		}
192
+                    	}, function (datas) {
193
+                    		console.log(datas);
194
+                    	});
195
+                    } else {
196
+                    	alert("请先做封仓确认单业务!");
197
+                    }
198
+                }, function (data) {
295 199
                     console.log(data);
296 200
                 });
297
-                
298
-               
201
+
299 202
             }
300
-        };
203
+        }
301 204
 
302 205
         // 取消
303 206
         $scope.retList = function () {

+ 51 - 3
src/main/resources/static/app/storage/grainCard/controller/productGrainCheckCtrl.js

@@ -1,13 +1,13 @@
1 1
 "use strict";
2 2
 angular.module('app.storage').controller("productGrainCheckCtrl",
3
-    function ($scope, $state, $rootScope, $uibModal, $http, $filter, $stateParams, cerealsCardService) {
3
+    function ($scope, $state, $rootScope, $uibModal, $http, $filter, $stateParams, cerealsCardService, grainCardService, productService, keeperService) {
4 4
 
5 5
         $scope.grainOrOil = false; // 默认显示仓房信息
6 6
         // 保存或修改
7 7
         $scope.loadDataById = function () {
8 8
             cerealsCardService.findDataById($stateParams.id).then(function (data) {
9 9
                 $scope.cerealsCard = data.data;
10
-                $scope.cerealsCard.wallName = $rootScope.dicData[$rootScope.storehouseObj[$scope.cerealsCard.spareOne].wall];
10
+                //$scope.cerealsCard.wallName = $rootScope.dicData[$rootScope.storehouseObj[$scope.cerealsCard.spareOne].wall];
11 11
                 // 判断是粮食信息还是油信息(0仓房,1油罐)
12 12
                 if ($scope.cerealsCard.spareFour === '1') { // 1油罐
13 13
                     $scope.grainOrOil = true;
@@ -23,10 +23,58 @@ angular.module('app.storage').controller("productGrainCheckCtrl",
23 23
                 $scope.cerealsCard.scrq = $filter('date')(data.data.scrq, "yyyy-MM-dd");
24 24
                 $scope.cerealsCard.jkrq = $filter('date')(data.data.jkrq, "yyyy-MM-dd");
25 25
                 $scope.cerealsCard.buildDate = $filter('date')(data.data.buildDate, "yyyy-MM-dd");
26
+                $scope.getCplKcData($scope.cerealsCard.spareOne, $scope.cerealsCard.spareTwo);
27
+                $scope.findQuailckCardList($scope.cerealsCard.spareOne, $scope.cerealsCard.spareTwo, 0, 0, 0, 3);
28
+                //获取保管员照片
29
+                $scope.getBgztxUrl($scope.cerealsCard.spareOne);
26 30
             }, function (data) {
27 31
                 console.log(data);
28 32
             });
29
-        };
33
+        }
34
+
35
+        //获取保管员头像
36
+        $scope.getBgztxUrl = function(houseId) {
37
+        	keeperService.getBgztxUrl(houseId, $rootScope.orgInfo.orgId).then(function (data) {
38
+        		$scope.cerealsCard.bgyurl = data.url;
39
+            }, function (data) {
40
+                console.log(data);
41
+            });
42
+        }
43
+
44
+        $scope.findQuailckCardList = function (houseId, warehouseId, historyStatus, typeUpdate, flagType, processState) {
45
+            //$scope.subType = $scope.GrainCardByIdObj.grainVarietyNum;
46
+            // 质量查看列表
47
+        	if ($scope.cerealsCard.spareFour === '1') { // 1油罐
48
+        		warehouseId = null;
49
+        	}
50
+            grainCardService.findQuailckCardList(null, houseId, warehouseId, historyStatus, typeUpdate, flagType, processState).then(function (data) {
51
+                if (data.retCode === '200' && data.message === 'success') {
52
+                	if (data.data.length > 0) {
53
+                		$scope.quailckCardListView = data.data[0];
54
+                	}
55
+                } else {
56
+                    console.log(data.data);
57
+                }
58
+            }, function (data) {
59
+                console.log(data);
60
+            });
61
+        }
62
+        
63
+        $scope.getCplKcData = function(houseId, wareId) {
64
+        	if ($scope.cerealsCard.spareFour === '1') { // 1油罐
65
+        		wareId = null;
66
+        	}
67
+        	$scope.search = {houseId:houseId, wareId:wareId, searchStartDate:"", searchEndDate:""};
68
+    		productService.getNumberList(1, 1, $scope.search).then(function(data){
69
+    			$scope.pageInfo = data;
70
+    			if ($scope.pageInfo.list.length > 0) {
71
+    				$scope.cd = $scope.pageInfo.list[0].lycd;
72
+    				$scope.lyxz = $scope.pageInfo.list[0].lyxz;
73
+    			}
74
+    		},function(data){
75
+    			console.log(data);
76
+    		});
77
+    	}
30 78
         $scope.loadDataById();
31 79
 
32 80
         // 返回或取消.

+ 3 - 2
src/main/resources/static/app/storage/grainCard/controller/productGrainCtrl.js

@@ -62,9 +62,10 @@ angular.module('app.storage').controller("productGrainCtrl",
62 62
         //$scope.loadWare(null);
63 63
 
64 64
         //新增按钮
65
-        $scope.addProductGrainList = function () {
65
+        $scope.addProductGrainList = function (type) {
66 66
             $state.go('app.storage.productGrain.add', {
67
-                id: ''
67
+                id: '',
68
+                type : type
68 69
             });
69 70
         };
70 71
 

+ 9 - 1
src/main/resources/static/app/storage/grainCard/service/grainCardService.js

@@ -85,14 +85,21 @@ angular.module('app.storage').service("grainCardService", function ($http, $q, A
85 85
     };
86 86
 
87 87
     //质量查看列表
88
-    this.findQuailckCardList = function (id) {
88
+    this.findQuailckCardList = function (id, houseId, warehouseId, historyStatus, typeUpdate, flagType, processState) {
89 89
         var d = $q.defer();
90 90
         $http({
91 91
             method: 'GET',
92 92
             url: APP_CONFIG.sharedUrl + '/grainCard/findQuailckCard',
93 93
             params: {
94 94
                 id: id,
95
+                houseId : houseId,
96
+                warehouseId : warehouseId,
97
+                historyStatus : historyStatus,
98
+                typeUpdate : typeUpdate,
99
+                flagType : flagType,
100
+                processState : processState,
95 101
                 orgId: $rootScope.orgInfo.orgId
102
+                
96 103
             }
97 104
         }).then(function successCallback(response) {
98 105
             // 请求成功执行代码
@@ -182,4 +189,5 @@ angular.module('app.storage').service("grainCardService", function ($http, $q, A
182 189
         });
183 190
         return d.promise;
184 191
     };
192
+
185 193
 });

+ 234 - 331
src/main/resources/static/app/storage/grainCard/views/checkFoodSituationList.html

@@ -27,11 +27,11 @@
27 27
                                                     </li>
28 28
                                                     <li ng-click="MenuBtn(2)" style="margin-top:8px;cursor: pointer;"><a id="check2"
29 29
                                                             style="border-radius:5px;padding:6px;">质量检验记录</a></li>
30
-                                                    <li ng-if="storehouseNumIf.indexOf('YG') == -1" ng-click="MenuBtn(3)" style="margin-top:8px;cursor: pointer;"><a id="check3"
30
+                                                    <li ng-if="datatype == '0'" ng-click="MenuBtn(3)" style="margin-top:8px;cursor: pointer;"><a id="check3"
31 31
                                                             style="border-radius:5px;padding:6px;">水分检验记录</a></li>
32
-                                                    <li ng-if="storehouseNumIf.indexOf('YG') == -1" ng-click="MenuBtn(4)" style="margin-top:8px;cursor: pointer;"><a id="check4"
32
+                                                    <li ng-if="datatype == '0'" ng-click="MenuBtn(4)" style="margin-top:8px;cursor: pointer;"><a id="check4"
33 33
                                                             style="border-radius:5px;padding:6px;">温度测量记录</a></li>
34
-                                                    <li ng-if="storehouseNumIf.indexOf('YG') == -1" ng-click="MenuBtn(5)" style="margin-top:8px;cursor: pointer;"><a id="check5"
34
+                                                    <li ng-if="datatype == '0'" ng-click="MenuBtn(5)" style="margin-top:8px;cursor: pointer;"><a id="check5"
35 35
                                                             style="border-radius:5px;padding:6px;">日常检查记录</a></li>
36 36
                                                 </ul>
37 37
                                             </div>
@@ -58,113 +58,143 @@
58 58
                                         </tr>
59 59
                                         </thead>
60 60
                                     </table>
61
+
61 62
                                     <div ng-if="grainCardView.storehouseYG == 1">
62 63
                                         <table class="table table-striped table-bordered table-hover" width="100%"
63 64
                                                style="table-layout: fixed;border-collapse:collapse;border:none; font-size: 13px;"
64 65
                                                border="1">
65 66
                                             <tbody>
66 67
                                             <tr>
67
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px" colspan="2">油罐基本信息</td>
68
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" colspan="6">储油基本信息</td>
68
+                                                <td class="text-center" style="font-size: large;vertical-align: middle;text-align: center;"  colspan="8">油罐设计说明</td>
69 69
                                             </tr>
70
-
71 70
                                             <tr>
72
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">油罐名称</td>
71
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;" >油罐名称</td>
73 72
                                                 <td class="text-center" style="vertical-align: middle;text-align: center;">{{storehouseObj[GrainCardByIdObj.storehouseId].storehouseName}}</td>
74
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">轮换协议编号</td>
75
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{GrainCardByIdObj.spareOne}}</td>
76
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">等级</td>
77
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.ypdj]}}</td>
78
-                                                <td colspan="2" style="vertical-align: middle;text-align: center;" class="text-center">保管员</td>
73
+                                            	<td class="text-center" style="vertical-align: middle;text-align: center;" >使用单位</td>
74
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{orgName}}</td>
75
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;" >设计单位</td>
76
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{tankObj[GrainCardByIdObj.storehouseId].sjdw}}</td>
77
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;"  colspan="2">保管员</td>
79 78
                                             </tr>
80 79
                                             <tr>
81
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">油罐类型</td>
82
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.tankType]}}</td>
83
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">品种</td>
84
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.subType]}}</td>
85
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">气味、滋味</td>
86
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.colorsmell}}</td>
87
-                                                <td rowspan="5" class="text-center" colspan="2" style="border: 1px solid #ccc;padding:0" >
88
-                                                    <div style="width:150px;height:150px;background:rgb(0, 140, 255);margin: auto;;line-height:150px;">
89
-                                                        <img style="width:150px;height:150px;" src="{{grainCardView.avatorUrl}}">
80
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;" >油罐类型</td>
81
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[tankObj[GrainCardByIdObj.storehouseId].tankType]}}</td>
82
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;" >建设年度</td>
83
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{tankObj[GrainCardByIdObj.storehouseId].builddate.toString().substring(0,4)}}</td>
84
+                                            	<td class="text-center" style="vertical-align: middle;text-align: center;" >油罐容量</td>
85
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{tankObj[GrainCardByIdObj.storehouseId].tankCapacity}}</td>
86
+                                                <td rowspan="7" class="text-center" colspan="2" style="border: 1px solid #ccc;padding:0" >
87
+                                                    <div style="width:180px;height:240px;background:rgb(0, 140, 255);margin: auto;;line-height:150px;">
88
+                                                        <img style="width:180px;height:240px;" src="{{bgyurl}}">
90 89
                                                     </div>
91 90
                                                 </td>
92 91
                                             </tr>
93 92
                                             <tr>
94
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">油罐容量(吨)</td>
95
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.tankCapacity}}</td>
96
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">入仓时间(第一车)</td>
97
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.inputTime}}</td>
98
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">水分及挥发物含量%</td>
99
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.qualitycheckInspection.waterVolatiles}}</td>
93
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">直径(米)</td>
94
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{tankObj[GrainCardByIdObj.storehouseId].diameter}}</td>
95
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">储粮品种</td>
96
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.subType]}}</td>
97
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">储粮方式</td>
98
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">散装储粮</td>
100 99
                                             </tr>
101 100
                                             <tr>
102
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">直径(米)</td>
103
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.diameter}}</td>
104
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">入库时间(最后一车)</td>
105
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.zhycsj}}</td>
106
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">不溶性杂质含量%</td>
107
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.qualitycheckInspection.insolubleImpurity}}</td>
101
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">使用年限</td>
102
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{tank.synx}}</td>
103
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">高度(米)</td>
104
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{tankObj[GrainCardByIdObj.storehouseId].height}}</td>
105
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">底面积(平方米)</td>
106
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{tankObj[GrainCardByIdObj.storehouseId].bottomArea}}</td>
108 107
                                             </tr>
109 108
                                             <tr>
110
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">高度(米)</td>
111
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.height}}</td>
112
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">产地</td>
113
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.location]}}</td>
114
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">酸价(KOH)/(mg/g)</td>
115
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.qualitycheckInspection.acidValue}}</td>
109
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">设计储油高度(米)</td>
110
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{tankObj[GrainCardByIdObj.storehouseId].designHeight}}</td>
111
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">出油口高度(米)</td>
112
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{tankObj[GrainCardByIdObj.storehouseId].oilHeight}}</td>
113
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">检查口高度(米)</td>
114
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{tankObj[GrainCardByIdObj.storehouseId].insportHeight}}</td>
115
+                                            </tr>
116
+
117
+                                            <tr>
118
+                                                <td class="text-center" style="font-size: large;vertical-align: middle;padding-left: 26%;"  colspan="6">储油基本信息</td>
116 119
                                             </tr>
117 120
                                             <tr>
118
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">底面积(平方米)</td>
119
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.bottomArea}}</td>
120
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">数量(吨)</td>
121
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">粮油品种</td>
122
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.subType]}}</td>
123
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">粮权所属</td>
124
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{GrainCardByIdObj.grainRights}}</td>
125
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;" >库存数量(吨)</td>
121 126
                                                 <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.number ? grainCardView.number/1000 : 0 | number : 3}}</td>
122
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">过氧化值(mmol/kg)</td>
123
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.peroxideValue}}</td>
124 127
                                             </tr>
125 128
                                             <tr>
126
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">设计储油高度(米)</td>
127
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.designHeight}}</td>
129
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">粮油性质</td>
130
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.quality]}}</td>
131
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">入罐年度</td>
132
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.inputTime.toString().substring(0,4)}}</td>
128 133
                                                 <td class="text-center" style="vertical-align: middle;text-align: center;">生产年度</td>
129 134
                                                 <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.harvestTime]}}</td>
130
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">溶剂残留量(mg/kg)</td>
131
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.residualSolvent}}</td>
132
-                                                <td class="text-center" colspan="2"
133
-                                                    style="vertical-align: middle;border:1px solid #ccc;vertical-align: middle;text-align: center;">{{grainCardView.keeperNames}}
135
+                                            </tr>
136
+                                            <tr>
137
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">入罐时间(第一车)</td>
138
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.inputTime}}</td>
139
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">入罐时间(最后一车)</td>
140
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.zhycsj}}</td>
141
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">产地</td>
142
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.location]}}</td>
143
+                                                <td colspan="2" rowspan="2" style="vertical-align: middle;text-align: center;" class="text-center">{{tankObj[GrainCardByIdObj.storehouseId].keeperNames}}</td>
144
+                                            </tr>
145
+                                            <tr>
146
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;" >业务类型</td>
147
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">
148
+				                                    <div>
149
+										                <div ng-if="GrainCardByIdObj.checkTypeNum==2">移库</div>
150
+										                <div ng-if="GrainCardByIdObj.checkTypeNum==0">入库</div>
151
+										                <div ng-if="GrainCardByIdObj.checkTypeNum==1">倒仓</div>
152
+										            </div>
134 153
                                                 </td>
154
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">管理方式</td>
155
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{GrainCardByIdObj.storeType == 1 ? "直储" : "代储"}}</td>
156
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;" >储粮方式</td>
157
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">散装储粮</td>
135 158
                                             </tr>
136 159
                                             <tr>
137
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">货位状态</td>
138
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">封仓</td>
139
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">建卡时间</td>
140
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{GrainCardByIdObj.acceptDate}}</td>
160
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;" >国别</td>
161
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">中国</td>
162
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">实际储油高度(米)</td>
163
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{GrainCardByIdObj.csscldg}}</td>
141 164
                                                 <td class="text-center" style="vertical-align: middle;text-align: center;">收储地点</td>
142 165
                                                 <td class="text-center" style="vertical-align: middle;text-align: center;">库内</td>
143
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">计价数量(吨)</td>
144
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.number ? grainCardView.number/1000 : 0 | number : 3}}</td>
166
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">油罐状态</td>
167
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">封仓</td>
145 168
                                             </tr>
169
+                                            </tbody>
170
+                                        </table>
171
+                                        <table class="table table-striped table-bordered table-hover" width="100%" style="table-layout: fixed;border-collapse:collapse;border:none; font-size: 13px;" border="1">
146 172
                                             <tr>
147
-                                                "<td class="text-center" style="vertical-align: middle;text-align: center;">入仓年度</td>
148
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.inputTime.slice(0, 4)}}</td>
149
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">存储类型</td>
150
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{GrainCardByIdObj.storeType == 1 ? "直储" : "代储"}}</td>
151
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">包存粮包数</td>
152
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{GrainCardByIdObj.grainPacks}}</td>
153
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">粮权所属</td>
154
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{GrainCardByIdObj.grainRights}}</td>
173
+                                                <td class="text-center" style="font-size: large;vertical-align: middle;text-align: center;"  colspan="6">质检信息</td>
155 174
                                             </tr>
156 175
                                             <tr>
157
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">出油口高度(米)</td>
158
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.oilHeight}}</td>
159
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">散存粮体积(立方米)</td>
160
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{GrainCardByIdObj.looseGrainVolume}}</td>
161
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">检查口高度(米)</td>
162
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.insportHeight}}</td>
163
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">备注</td>
164
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{GrainCardByIdObj.remark}}</td>
176
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">不溶性杂质含量%</td>
177
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">过氧化值(mmol/kg)</td>
178
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">水分及挥发物含量%</td>
179
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">酸价(KOH)/(mg/g)</td>
180
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">溶剂残留量(mg/kg)</td>
181
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">气味、滋味</td>
182
+                                            </tr>
183
+                                            <tr>
184
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.qualitycheckInspection.insolubleImpurity}}</td>
185
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.peroxideValue}}</td>
186
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.qualitycheckInspection.waterVolatiles}}</td>
187
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.qualitycheckInspection.acidValue}}</td>
188
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.residualSolvent}}</td>
189
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.colorsmell}}</td>
190
+                                            </tr>
191
+                                        </table>
192
+                                        <table class="table table-striped table-bordered table-hover" width="100%" style="table-layout: fixed;">
193
+                                            <tr>
194
+                                                <td class="text-left" style="vertical-align: middle;text-align: left;" >建卡人:{{GrainCardByIdObj.jkr}}</td>
195
+                                                <td class="text-left" style="vertical-align: middle;text-align: left;" >建卡时间:{{GrainCardByIdObj.acceptDate}}</td>
196
+                                                <td class="text-left" style="vertical-align: middle;text-align: left;" >备注:{{GrainCardByIdObj.remark}}</td>
165 197
                                             </tr>
166
-                                            </table>
167
-                                            </tbody>
168 198
                                         </table>
169 199
                                     </div>
170 200
                                     <div ng-if="grainCardView.storehouseYG == 2">
@@ -173,300 +203,173 @@
173 203
                                                border="1">
174 204
                                             <tbody>
175 205
                                             <tr>
176
-                                                <td class="text-center" style="font-size: large;vertical-align: middle;text-align: center;" height="45px" colspan="2">仓房基本信息</td>
177
-                                                <td class="text-center" style="font-size: large;vertical-align: middle;text-align: center;" colspan="6">储粮基本信息</td>
206
+                                                <td class="text-center" style="font-size: large;vertical-align: middle;text-align: center;" height="45px" colspan="8">粮仓设计说明</td>
178 207
                                             </tr>
179
-
180 208
                                             <tr>
181 209
                                                 <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">仓房名称</td>
182 210
                                                 <td class="text-center" style="vertical-align: middle;text-align: center;">{{storehouseObj[GrainCardByIdObj.storehouseId].storehouseName}}</td>
183
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">轮换协议编号</td>
184
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{GrainCardByIdObj.spareOne}}</td>
185
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">等级</td>
186
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.ypdj]}}</td>
187
-                                                <td colspan="2" style="vertical-align: middle;text-align: center;" class="text-center">保管员</td>
211
+                                            	<td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">使用单位</td>
212
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{orgName}}</td>
213
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">设计单位</td>
214
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{storehouseObj[GrainCardByIdObj.storehouseId].sjdw}}</td>
215
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px" colspan="2">保管员</td>
188 216
                                             </tr>
189 217
                                             <tr>
190
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">货位名称</td>
191
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.warehouseName}}</td>
192
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">粮油性质</td>
193
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.quality]}}</td>
194
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==null"></td>
195
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==null"></td>
196
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3164">容重</td>
197
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3164">
198
-                                                    {{grainCardView.qualitycheckInspection.unitWeight}}
199
-                                                </td>
200
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3165">容重</td>
201
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3165">
202
-                                                    {{grainCardView.qualitycheckInspection.unitWeight}}
203
-                                                </td>
204
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==2777">入库水分</td>
205
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==2777">
206
-                                                    {{grainCardView.water}}
207
-                                                </td>
208
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3166">入库水分</td>
209
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3166">
210
-                                                    {{grainCardView.water}}
211
-                                                </td>
212
-                                                <td rowspan="5" class="text-center" colspan="2" style="border: 1px solid #ccc;padding:0" >
213
-                                                    <div style="width:150px;height:150px;background:rgb(0, 140, 255);margin: auto;;line-height:150px;">
214
-                                                        <img style="width:150px;height:150px;" src="{{grainCardView.avatorUrl}}">
218
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">仓房类型</td>
219
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.storehouseType]}}</td>
220
+                                            	<td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">仓房结构</td>
221
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[storehouseObj[GrainCardByIdObj.storehouseId].wall]}}</td>
222
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">建设年度</td>
223
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{storehouseObj[GrainCardByIdObj.storehouseId].useDate.toString().substring(0,4)}}</td>
224
+                                                <td rowspan="6" class="text-center" colspan="2" style="border: 1px solid #ccc;padding:0" >
225
+                                                    <div style="width:180px;height:240px;background:rgb(0, 140, 255);margin: auto;;line-height:150px;">
226
+                                                        <img style="width:180px;height:240px;" src="{{bgyurl}}">
215 227
                                                     </div>
216 228
                                                 </td>
217 229
                                             </tr>
218 230
                                             <tr>
219
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">仓房类型</td>
220
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.storehouseType]}}</td>
221
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">品种</td>
231
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">储粮品种</td>
222 232
                                                 <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.subType]}}</td>
223
-                                                <!--小麦及混合小麦3164,玉米3165,大豆2777,稻谷3166-->
224
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==null"></td>
225
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==null"></td>
226
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3164">不完善粒%(总量)</td>
227
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3164">
228
-                                                    {{grainCardView.qualitycheckInspection.imperfectgrainsTotal}}
229
-                                                </td>
230
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3165">不完善粒%(总量)</td>
231
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3165">
232
-                                                    {{grainCardView.qualitycheckInspection.imperfectgrainsTotal}}
233
-                                                </td>
234
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==2777">杂质%(总量)</td>
235
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==2777">
236
-                                                    {{grainCardView.qualitycheckInspection.impurityTotal}}
237
-                                                </td>
238
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3166">出糙率%</td>
239
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3166">
240
-                                                    {{grainCardView.huskedRation}}
241
-                                                </td>
242
-
233
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">储粮方式</td>
234
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.keepingWay]}}</td>
235
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">使用年限</td>
236
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{storehouseObj[GrainCardByIdObj.storehouseId].sjsynx}}</td>
243 237
                                             </tr>
244
-                                            
245 238
                                             <tr>
246
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">建设年份</td>
247
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.useDate}}</td>
248
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">入仓时间(第一车)</td>
249
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.inputTime}}</td>
250
-                                                <!--小麦及混合小麦3164,玉米3165,大豆2777,稻谷3166-->
251
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==null"></td>
252
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==null"></td>
253
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3164">入库水分</td>
254
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3164">
255
-                                                    {{grainCardView.water}}
256
-                                                </td>
257
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3165">入库水分</td>
258
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3165">
259
-                                                    {{grainCardView.water}}
260
-                                                </td>
261
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==2777">完整粒率%</td>
262
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==2777">
263
-                                                    {{grainCardView.goodpart}}
264
-                                                </td>
265
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3166">整精米率%</td>
266
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3166">
267
-                                                    {{grainCardView.fullGoodRation}}
268
-                                                </td>
239
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">内檐高度(米)</td>
240
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{storehouseObj[GrainCardByIdObj.storehouseId].heigth}}</td>
241
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">内仓长(直径,米)</td>
242
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{storehouseObj[GrainCardByIdObj.storehouseId].length}}</td>
243
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">内仓宽(米)</td>
244
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{storehouseObj[GrainCardByIdObj.storehouseId].width}}</td>
269 245
                                             </tr>
270 246
                                             <tr>
271
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">仓房结构</td>
272
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[GrainCardByIdObj.wall]}}</td>
273
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">入库时间(最后一车)</td>
274
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.zhycsj}}</td>
275
-                                                <!--小麦及混合小麦3164,玉米3165,大豆2777,稻谷3166-->
276
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==null"></td>
277
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==null"></td>
278
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3164">杂质%(总量)</td>
279
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3164">
280
-                                                    {{grainCardView.qualitycheckInspection.impurityTotal}}
281
-                                                </td>
282
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3165">杂质%(总量)</td>
283
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3165">
284
-                                                    {{grainCardView.qualitycheckInspection.impurityTotal}}
285
-                                                </td>
286
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==2777">未熟粒率%</td>
287
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==2777">
288
-                                                    {{grainCardView.qualitycheckInspection.immatureGrainRate}}
289
-                                                </td>
290
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3166">不完善粒%(总量)</td>
291
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3166">
292
-                                                    {{grainCardView.qualitycheckInspection.imperfectgrainsTotal}}
293
-                                                </td>
247
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">设计装粮线高度(米)</td>
248
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{storehouseObj[GrainCardByIdObj.storehouseId].grainLineHeigth}}</td>
249
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">设计仓容(吨)</td>
250
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{storehouseObj[GrainCardByIdObj.storehouseId].designCapacity}}</td>
251
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">核定仓容(吨)</td>
252
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{storehouseObj[GrainCardByIdObj.storehouseId].actualCapacity}}</td>
253
+                                            </tr>
294 254
 
255
+                                            <tr>
256
+                                                <td class="text-center" style="font-size: large;vertical-align: middle;padding-left: 26%;" height="45px" colspan="6">储粮基本信息</td>
295 257
                                             </tr>
296 258
                                             <tr>
297
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">外檐高度(米)</td>
298
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.storeOutsideHeigth}}</td>
299
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">产地</td>
300
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.location]}}</td>
301
-                                                <!--小麦及混合小麦3164,玉米3165,大豆2777,稻谷3166-->
302
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==null"></td>
303
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==null"></td>
304
-
305
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3164">色泽气味</td>
306
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3164">
307
-                                                    {{grainCardView.colorsmell}}
308
-                                                </td>
309
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3165">色泽气味</td>
310
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3165">
311
-                                                    {{grainCardView.colorsmell}}
312
-                                                </td>
313
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==2777">损伤粒率%(总量)</td>
314
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;"ng-if="grainCardView.subType==2777">
315
-                                                    {{grainCardView.damageRatio}}
316
-                                                </td>
317
-
318
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3166">杂质%(总量)</td>
319
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3166">
320
-                                                    {{grainCardView.qualitycheckInspection.impurityTotal}}
321
-                                                </td>
259
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">货位名称</td>
260
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.warehouseName}}</td>
261
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">粮权所属</td>
262
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{GrainCardByIdObj.grainRights}}</td>
263
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">粮油品种</td>
264
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.subType]}}</td>
322 265
                                             </tr>
323 266
                                             <tr>
324
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">仓内长(直径,米)</td>
325
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.length}}</td>
326
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">数量(吨)</td>
267
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">库存数量(吨)</td>
327 268
                                                 <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.number ? grainCardView.number/1000 : 0 | number : 3}}</td>
328
-                                                <!--小麦及混合小麦3164,玉米3165,大豆2777,稻谷3166-->
329
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==null"></td>
330
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==null"></td>
331
-
332
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3164">小麦硬度指数</td>
333
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3164">
334
-                                                    {{grainCardView.hardIndex}}
335
-                                                </td>
336
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3165">霉变粒%</td>
337
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3165">
338
-                                                    {{grainCardView.qualitycheckInspection.mildew}}
339
-                                                </td>
340
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==2777">破碎粒</td>
341
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==2777">
342
-                                                    {{grainCardView.badpart}}
343
-                                                </td>
344
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3166">谷外糙米%</td>
345
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3166">
346
-                                                    {{grainCardView.outHuskedRation}}
347
-                                                </td>
348
-                                                <td class="text-center" rowspan="2" colspan="2"
349
-                                                    style="vertical-align: middle;border:1px solid #ccc;vertical-align: middle;text-align: center;">{{grainCardView.keeperNames}}
350
-                                                </td>
269
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">等级</td>
270
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.ypdj]}}</td>
271
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">粮油性质</td>
272
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.quality]}}</td>
273
+                                                <td colspan="2" style="vertical-align: middle;text-align: center;" class="text-center">{{storehouseObj[GrainCardByIdObj.storehouseId].dutystoreman}}</td>
351 274
                                             </tr>
352 275
                                             <tr>
353
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">仓内宽(米)</td>
354
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.width}}</td>
276
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;" >业务类型</td>
277
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">
278
+                                                	<div>
279
+										                <div ng-if="GrainCardByIdObj.checkTypeNum==2">移库</div>
280
+										                <div ng-if="GrainCardByIdObj.checkTypeNum==0">入库</div>
281
+										                <div ng-if="GrainCardByIdObj.checkTypeNum==1">倒仓</div>
282
+										            </div>
283
+                                                </td>
284
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">管理方式</td>
285
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{GrainCardByIdObj.storeType == 1 ? "直储" : "代储"}}</td>
355 286
                                                 <td class="text-center" style="vertical-align: middle;text-align: center;">生产年度</td>
356 287
                                                 <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.harvestTime]}}</td>
357
-                                                
358
-                                                <!--小麦及混合小麦3164,玉米3165,大豆2777,稻谷3166-->
359
-
360
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;"
361
-                                                    ng-if="grainCardView.subType==3164 || grainCardView.subType==3165 || grainCardView.subType==null">
362
-                                                </td>
363
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;"
364
-                                                    ng-if="grainCardView.subType==3164 || grainCardView.subType==3165 || grainCardView.subType==null">
365
-                                                </td>
366
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==2777">色泽气味</td>
367
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==2777">
368
-                                                    {{grainCardView.colorsmell}}
369
-                                                </td>
370
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3166">互混率%</td>
371
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3166">
372
-                                                    {{grainCardView.intermixingRate}}
373
-                                                </td>
374
-
288
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">产地</td>
289
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.location]}}</td>
375 290
                                             </tr>
376 291
                                             <tr>
377
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">设计装粮线高度(米)</td>
378
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.grainLineHeigth}}</td>
379
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">建卡时间</td>
380
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{GrainCardByIdObj.acceptDate}}</td>
381
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">储存方式</td>
382
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[grainCardView.keepingWay]}}</td>
383
-                                                
384
-                                                <!--小麦及混合小麦3164,玉米3165,大豆2777,稻谷3166-->
385
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;"
386
-                                                    ng-if="grainCardView.subType==3164 || grainCardView.subType==3165 || grainCardView.subType==null">
387
-                                                </td>
388
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;"
389
-                                                    ng-if="grainCardView.subType==3164 || grainCardView.subType==3165 || grainCardView.subType==null">
390
-                                                </td>
391
-
392
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==2777">粗脂肪含量(千基)/%</td>
393
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==2777">
394
-                                                    {{grainCardView.qualitycheckInspection.crudeFatContent}}
395
-                                                </td>
396
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3166">黄粒米%</td>
397
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3166">
398
-                                                    {{grainCardView.qualitycheckInspection.yellowRice}}
399
-                                                </td>
292
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;" >国别</td>
293
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">中国</td>
294
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">入仓年度</td>
295
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.inputTime.toString().substring(0,4)}}</td>
296
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">入仓时间(第一车)</td>
297
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.inputTime}}</td>
298
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">入库时间(最后一车)</td>
299
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.zhycsj}}</td>
400 300
                                             </tr>
401 301
                                             <tr>
402
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">状态</td>
302
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;" >储粮方式</td>
303
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">散装储粮</td>
304
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">初始散存粮体积长/宽/高(米)</td>
305
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{GrainCardByIdObj.csscldc+'/'+GrainCardByIdObj.csscldk+'/'+GrainCardByIdObj.csscldg}}</td>
306
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">散存粮体积(立方米)</td>
307
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{GrainCardByIdObj.looseGrainVolume}}</td>
308
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">货位状态</td>
403 309
                                                 <td class="text-center" style="vertical-align: middle;text-align: center;">封仓</td>
404
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">存储类型</td>
405
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{GrainCardByIdObj.storeType == 1 ? "直储" : "代储"}}</td>
406
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">收储地点</td>
407
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">库内</td>
408
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">计价数量(吨)</td>
409
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.number ? grainCardView.number/1000 : 0 | number : 3}}</td>
410 310
                                             </tr>
311
+                                            </tbody>
312
+                                        </table>
313
+                                        <table class="table table-striped table-bordered table-hover" width="100%" style="table-layout: fixed;border-collapse:collapse;border:none; font-size: 13px;"
314
+                                               border="1" ng-show="grainCardView.subType=='3164'">
411 315
                                             <tr>
412
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">入仓年度</td>
413
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.inputTime.slice(0, 4)}}</td>
414
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">散存粮体积(立方米)</td>
415
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{GrainCardByIdObj.looseGrainVolume}}</td>
416
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">包存粮包数</td>
417
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{GrainCardByIdObj.grainPacks}}</td>
418
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">粮权所属</td>
419
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{GrainCardByIdObj.grainRights}}</td>
316
+                                                <td class="text-center" style="font-size: large;vertical-align: middle;text-align: center;" colspan="6">质检信息</td>
420 317
                                             </tr>
421
-                                            <!-- <tr>
422
-                                                
423
-                                                
424
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;"
425
-                                                    ng-if="grainCardView.subType==3164 || grainCardView.subType==3165 || grainCardView.subType==null">
426
-                                                </td>
427
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;"
428
-                                                    ng-if="grainCardView.subType==3164 || grainCardView.subType==3165 || grainCardView.subType==null">
429
-                                                </td>
430
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3166"></td>
431
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" ng-if="grainCardView.subType==3166">
432
-                                                </td>
433
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" colspan="2"></td>
434
-                                            </tr> -->
435 318
                                             <tr>
436
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">使用面积(平方米)</td>
437
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.binVolume}}</td>
438
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">设计仓容(吨)</td>
439
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.designCapacity}}</td>
440
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;">备注</td>
441
-                                                <td class="text-center" style="vertical-align: middle;text-align: center;" colspan="3">{{GrainCardByIdObj.remark}}</td>
319
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">容重(g/L)</td>
320
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">水分%</td>
321
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">杂质%(总量)</td>
322
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">不完善粒(总量)</td>
323
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">硬度指数</td>
324
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">色泽、气味</td>
325
+                                            </tr>
326
+                                            <tr>
327
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.qualitycheckInspection.unitWeight}}</td>
328
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.water}}</td>
329
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.qualitycheckInspection.impurityTotal}}</td>
330
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.qualitycheckInspection.imperfectgrainsTotal}}</td>
331
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.hardIndex}}</td>
332
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.colorsmell}}</td>
333
+                                            </tr>
334
+                                        </table>
335
+                                        <table class="table table-striped table-bordered table-hover" width="100%" style="table-layout: fixed;border-collapse:collapse;border:none; font-size: 13px;"
336
+                                               border="1" ng-show="grainCardView.subType=='3166'">
337
+                                            <tr>
338
+                                                <td class="text-center" style="font-size: large;vertical-align: middle;text-align: center;" colspan="8">质检信息</td>
339
+                                            </tr>
340
+                                            <tr>
341
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">出糙率%</td>
342
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">整精米率%</td>
343
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">水分%</td>
344
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">杂质%(总量)</td>
345
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">谷外糙米%</td>
346
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">互混率%</td>
347
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">黄粒米%</td>
348
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">色泽、气味</td>
349
+                                            </tr>
350
+                                            <tr>
351
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;" >{{grainCardView.huskedRation}}</td>
352
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.fullGoodRation}}</td>
353
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.water}}</td>
354
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.qualitycheckInspection.impurityTotal}}</td>
355
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.outHuskedRation}}</td>
356
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.intermixingRate}}</td>
357
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.qualitycheckInspection.yellowRice}}</td>
358
+                                                <td class="text-center" style="vertical-align: middle;text-align: center;">{{grainCardView.qualitycheckInspection.colorSmell}}</td>
359
+                                            </tr>
360
+                                        </table>
361
+                                        <table class="table table-striped table-bordered table-hover" width="100%" style="table-layout: fixed;">
362
+                                            <tr>
363
+                                                <td class="text-left" style="vertical-align: middle;text-align: left;" >建卡人:{{GrainCardByIdObj.jkr}}</td>
364
+                                                <td class="text-left" style="vertical-align: middle;text-align: left;" >建卡时间:{{GrainCardByIdObj.acceptDate}}</td>
365
+                                                <td class="text-left" style="vertical-align: middle;text-align: left;" >备注:{{GrainCardByIdObj.remark}}</td>
442 366
                                             </tr>
443
-                                           
444
-                                            <table class="table table-striped table-bordered table-hover"
445
-                                                   width="100%" style="table-layout: fixed;"
446
-                                                   ng-repeat="many in manyList">
447
-                                                <tr>
448
-                                                    <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">第{{$index + 1}}次</td>
449
-                                                    <td class="text-center" style="vertical-align: middle;text-align: center;">仓房名称</td>
450
-                                                    <td class="text-center" style="vertical-align: middle;text-align: center;">货位名称</td>
451
-                                                    <td class="text-center" style="vertical-align: middle;text-align: center;">仓房类型</td>
452
-                                                    <td class="text-center" style="vertical-align: middle;text-align: center;">数量</td>
453
-                                                    <td class="text-center" style="vertical-align: middle;text-align: center;">保管员</td>
454
-                                                    <td class="text-center" style="vertical-align: middle;text-align: center;" colspan="2">备注</td>
455
-                                                </tr>
456
-                                                <tr>
457
-                                                    <td class="text-center" style="vertical-align: middle;text-align: center;" height="45px">{{many.inputTime}}</td>
458
-                                                    <td class="text-center" style="vertical-align: middle;text-align: center;">
459
-                                                        {{storehouseObj[many.houseId].storehouseName}}</td>
460
-                                                    <td class="text-center" style="vertical-align: middle;text-align: center;">{{many.warehouseName}}</td>
461
-                                                    <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[many.storehouseType]}}</td>
462
-                                                    <td class="text-center" style="vertical-align: middle;text-align: center;">{{many.number}}</td>
463
-                                                    <td class="text-center" style="vertical-align: middle;text-align: center;">{{many.keeperNames}}</td>
464
-                                                    <td class="text-center" style="vertical-align: middle;text-align: center;" colspan="2"></td>
465
-                                                </tr>
466
-                                            </table>
467
-                                            </tbody>
468 367
                                         </table>
469 368
                                     </div>
369
+                                    <br/>
370
+                                    <a href-void class="btn btn-default btn-xs" style="float: right;" ng-click="returnTop()">
371
+										<i class="fa fa-angle-left"></i>&nbsp;返回&nbsp;
372
+									</a>
470 373
 
471 374
                                 </div>
472 375
 

+ 212 - 252
src/main/resources/static/app/storage/grainCard/views/foodHandle-edit.html

@@ -1,255 +1,215 @@
1 1
 <div id="content">
2
-  <section id="widget-grid" widget-grid>
3
-    <div class="row">
4
-      <article class="col-sm-12 col-md-12 col-lg-12">
5
-        <div
6
-          jarvis-widget
7
-          id="form-grid-widget"
8
-          data-widget-colorbutton="false"
9
-          data-widget-editbutton="false"
10
-          data-widget-custombutton="false"
11
-        >
12
-          <div>
13
-            <div class="widget-body no-padding">
14
-              <form
15
-                id="safeProduceFood-form"
16
-                class="smart-form"
17
-                data-validator-option="validateOptions"
18
-                novalidate="novalidate"
19
-              >
20
-                <button
21
-                  type="submit"
22
-                  class="bv-hidden-submit"
23
-                  style="display: none; width: 0px; height: 0px"
24
-                ></button>
25
-                <header>
26
-                  <a
27
-                    href-void
28
-                    class="btn btn-default btn-xs"
29
-                    ng-click="backLayer()"
30
-                  >
31
-                    <i class="fa fa-angle-left"></i>&nbsp;返回&nbsp;
32
-                  </a>
33
-                  &nbsp;<strong>粮情检查表</strong>
34
-                </header>
35
-                <fieldset>
36
-                  <div class="row">
37
-                    <section class="col col-3">
38
-                      <label class="label"> 仓房名称<span style="color: red">*</span>:</label>
39
-                      <label class="select">
40
-                        <select
41
-                          ng-model="search.spareOne"
42
-                          class="form-control input-sm"
43
-                          name="spareOne"
44
-                          ng-disabled="isNotEdit"
45
-                          ng-options="store.storehouseId as store.storehouseName for store in storehouseObj"
46
-                          ng-change="loadWare(search.spareOne)"
47
-                          required
48
-                        >
49
-                          <option value="">请选择</option></select
50
-                        >&emsp;
51
-                      </label>
52
-                    </section>
53
-                    <section class="col col-3">
54
-                      <label class="label"
55
-                        >货位名称:<span style="color: red">*</span></label
56
-                      >
57
-                      <label class="select">
58
-                        <select
59
-                        ng-disabled="isNotEdit"
60
-                          ng-model="search.spareTwo"
61
-                          required
62
-                          class="form-control input-sm"
63
-                          ng-options="ware.warehouseId as ware.warehouseName for ware in warelist"
64
-                        >
65
-                          <option value="">请选择</option></select
66
-                        >&emsp;
67
-                      </label>
68
-                    </section>
69
-                    <section class="col col-3">
70
-                      <label class="label"
71
-                        >粮油品种<span style="color: red">*</span></label
72
-                      >
73
-                      <label class="input">
74
-                        <input
75
-                          type="text"
76
-                          ng-disabled="isNotEdit"
77
-                          required
78
-                          ng-model="insertFoodHandle.grainOilVarieties"
79
-                          name="grainOilVarieties"
80
-                        />
81
-                      </label>
82
-                    </section>
83
-                    <section class="col col-3">
84
-                      <label class="label"
85
-                        >检查日期<span style="color: red">*</span></label
86
-                      >
87
-                      <label class="input form-group">
88
-                        <input
89
-                          ng-disabled="isNotEdit"
90
-                          class="form-control"
91
-                          type="text"
92
-                          required
93
-                          ng-model="insertFoodHandle.checkDate"
94
-                          id="checkDate"
95
-                          name="checkDate"
96
-                          onClick="WdatePicker({lang:'zh-cn'})"
97
-                        />
98
-                      </label>
99
-                    </section>
100
-                  </div>
101
-                  <div class="row">
102
-                    <section class="col col-3">
103
-                      <label class="label"
104
-                        >单位名称<span style="color: red">*</span></label
105
-                      >
106
-                      <label class="input">
107
-                        <input
108
-                          type="text"
109
-                          ng-model="insertFoodHandle.companyName"
110
-                          name="companyName"
111
-                          required
112
-                          ng-disabled="isNotEdit"
113
-                        />
114
-                      </label>
115
-                    </section>
116
-                    <section class="col col-3">
117
-                      <label class="label"
118
-                        >粮情员<span style="color: red">*</span></label
119
-                      >
120
-                      <label class="input">
121
-                        <input
122
-                          type="text"
123
-                          ng-disabled="isNotEdit"
124
-                          required
125
-                          ng-model="insertFoodHandle.grainPerson"
126
-                          name="grainPerson"
127
-                        />
128
-                      </label>
129
-                    </section>
130
-                    <section class="col col-3">
131
-                      <label class="label"
132
-                        >保管组长<span style="color: red">*</span></label
133
-                      >
134
-                      <label class="input">
135
-                        <input
136
-                          type="text"
137
-                          ng-disabled="isNotEdit"
138
-                          required
139
-                          ng-model="insertFoodHandle.custodianLeader"
140
-                          name="custodianLeader"
141
-                        />
142
-                      </label>
143
-                    </section>
144
-                    <section class="col col-3">
145
-                      <label class="label"
146
-                        >保管员<span style="color: red">*</span></label
147
-                      >
148
-                      <label class="input">
149
-                        <input
150
-                          type="text"
151
-                          ng-disabled="isNotEdit"
152
-                          required
153
-                          ng-model="insertFoodHandle.custodian"
154
-                          name="custodian"
155
-                        />
156
-                      </label>
157
-                    </section>
158
-                  </div>
159
-                  <div class="row">
160
-                    <section class="col col-3">
161
-                        <label class="label"
162
-                          >解决情况<span style="color: red">*</span></label
163
-                        >
164
-                        <label class="select">
165
-                            <select
166
-                              ng-model="insertFoodHandle.isSolve"
167
-                              class="form-control input-sm"
168
-                              name="isSolve"
169
-                              required
170
-                            >
171
-                              <option value="">请选择</option>
172
-                              <option value="1">是</option>
173
-                              <option value="0">否</option>
174
-                            </select
175
-                            >&emsp;
176
-                          </label>
177
-                      </section>
178
-                  </div>
179
-                  <header style="margin-left: 0; margin-bottom: 20px">
180
-                    &nbsp;发现粮情
181
-                  </header>
182
-                  <div class="row">
183
-                    <section class="col col-12" style="width: 100%">
184
-                      <label class="label"
185
-                        >现象及原因<span style="color: red">*</span></label
186
-                      >
187
-                      <label class="textarea textarea-resizable">
188
-                        <textarea
189
-                          rows="5"
190
-                          class="custom-scroll"
191
-                          ng-disabled="isNotEdit"
192
-                          ng-model="insertFoodHandle.phenomenonCause"
193
-                          ng-disabled="isNotEdit"
194
-                          name="phenomenonCause"
195
-                          required
196
-                        ></textarea>
197
-                      </label>
198
-                    </section>
199
-                  </div>
200
-                  <div class="row">
201
-                    <section class="col col-12" style="width: 100%">
202
-                      <label class="label">保管员采取的措施</label>
203
-                      <label class="textarea textarea-resizable">
204
-                        <textarea
205
-                          rows="5"
206
-                          class="custom-scroll"
207
-                          ng-disabled="isNotEdit"
208
-                          ng-model="insertFoodHandle.custodianMeasure"
209
-                          ng-disabled="isNotEdit"
210
-                          name="custodianMeasure"
211
-                        ></textarea>
212
-                      </label>
213
-                    </section>
214
-                  </div>
215
-                  <div class="row">
216
-                    <section class="col col-12" style="width: 100%">
217
-                      <label class="label">粮情员处理意见</label>
218
-                      <label class="textarea textarea-resizable">
219
-                        <textarea
220
-                          rows="5"
221
-                          class="custom-scroll"
222
-                          ng-disabled="isNotEdit"
223
-                          ng-model="insertFoodHandle.grainPersonComments"
224
-                          ng-disabled="isNotEdit"
225
-                          name="grainPersonComments"
226
-                        ></textarea>
227
-                      </label>
228
-                    </section>
229
-                  </div>
230
-                </fieldset>
231
-                <footer class="modal-footer text-align-center">
232
-                  <button
233
-                    ng-click="back()"
234
-                    class="btn btn-default btn-lg"
235
-                    data-dismiss="modal"
236
-                  >
237
-                    取消
238
-                  </button>
239
-                  <button
240
-                    ng-click="saveData()"
241
-                    type="button"
242
-                    class="btn btn-primary btn-lg"
243
-                    ng-hide="isNotEdit"
244
-                  >
245
-                    提交
246
-                  </button>
247
-                </footer>
248
-              </form>
249
-            </div>
250
-          </div>
2
+    <section id="widget-grid" widget-grid>
3
+        <div class="row">
4
+            <article class="col-sm-12 col-md-12 col-lg-12">
5
+                <div jarvis-widget id="form-grid-widget" data-widget-colorbutton="false" data-widget-editbutton="false"
6
+                     data-widget-custombutton="false">
7
+                    <div>
8
+                        <div class="widget-body no-padding">
9
+                            <form id="safeProduceFood-form" class="smart-form" data-validator-option="validateOptions"
10
+                                  novalidate="novalidate">
11
+                                <button type="submit" class="bv-hidden-submit"
12
+                                        style="display: none; width: 0px; height: 0px"></button>
13
+                                <header>
14
+                                    <a href-void class="btn btn-default btn-xs" ng-click="backLayer()">
15
+                                        <i class="fa fa-angle-left"></i>&nbsp;返回&nbsp;
16
+                                    </a>
17
+                                    &nbsp;<strong>粮情检查表</strong>
18
+                                </header>
19
+                                <fieldset>
20
+                                    <div class="row">
21
+                                        <section class="col col-3">
22
+                                            <label class="label"> 仓房名称<span style="color: red">*</span>:</label>
23
+                                            <label class="select">
24
+                                                <select
25
+                                                        ng-model="search.spareOne"
26
+                                                        class="form-control input-sm"
27
+                                                        name="spareOne"
28
+                                                        ng-disabled="isNotEdit"
29
+                                                        ng-options="store.storehouseId as store.storehouseName for store in storehouseObj"
30
+                                                        ng-change="loadWare(search.spareOne)"
31
+                                                        required>
32
+                                                    <option value="">请选择</option>
33
+                                                </select>&emsp;
34
+                                            </label>
35
+                                        </section>
36
+                                        <section class="col col-3">
37
+                                            <label class="label">货位名称:</label>
38
+                                            <label class="select">
39
+                                                <select ng-disabled="isNotEdit"
40
+                                                        ng-model="search.spareTwo"
41
+                                                        class="form-control input-sm"
42
+                                                        ng-options="ware.warehouseId as ware.warehouseName for ware in warelist">
43
+                                                    <option value="">请选择</option>
44
+                                                </select>&emsp;
45
+                                            </label>
46
+                                        </section>
47
+                                        <section class="col col-3">
48
+                                            <label class="label">粮油品种<span style="color: red">*</span></label>
49
+                                            <label class="input">
50
+                                                <input
51
+                                                        type="text"
52
+                                                        ng-disabled="isNotEdit"
53
+                                                        required
54
+                                                        ng-model="insertFoodHandle.grainOilVarieties"
55
+                                                        name="grainOilVarieties"/>
56
+                                            </label>
57
+                                        </section>
58
+                                        <section class="col col-3">
59
+                                            <label class="label"
60
+                                            >检查日期<span style="color: red">*</span></label
61
+                                            >
62
+                                            <label class="input form-group">
63
+                                                <input
64
+                                                        ng-disabled="isNotEdit"
65
+                                                        class="form-control"
66
+                                                        type="text"
67
+                                                        required
68
+                                                        ng-model="insertFoodHandle.checkDate"
69
+                                                        id="checkDate"
70
+                                                        name="checkDate"
71
+                                                        onClick="WdatePicker({lang:'zh-cn'})"
72
+                                                />
73
+                                            </label>
74
+                                        </section>
75
+                                    </div>
76
+                                    <div class="row">
77
+                                        <!--<section class="col col-3">
78
+                                          <label class="label">单位名称<span style="color: red">*</span></label>
79
+                                          <label class="input">
80
+                                            <input
81
+                                              type="text"
82
+                                              ng-model="insertFoodHandle.companyName"
83
+                                              name="companyName"
84
+                                              required
85
+                                              ng-disabled="isNotEdit"/>
86
+                                          </label>
87
+                                        </section>-->
88
+                                        <section class="col col-3">
89
+                                            <label class="label">检查人<span style="color: red">*</span></label>
90
+                                            <label class="input">
91
+                                                <input type="text" ng-model="insertFoodHandle.checkPerson"
92
+                                                       name="checkPerson" required ng-disabled="isNotEdit"/>
93
+                                            </label>
94
+                                        </section>
95
+                                        <section class="col col-3">
96
+                                            <label class="label"
97
+                                            >粮情员<span style="color: red">*</span></label
98
+                                            >
99
+                                            <label class="input">
100
+                                                <input
101
+                                                        type="text"
102
+                                                        ng-disabled="isNotEdit"
103
+                                                        required
104
+                                                        ng-model="insertFoodHandle.grainPerson"
105
+                                                        name="grainPerson"
106
+                                                />
107
+                                            </label>
108
+                                        </section>
109
+                                        <section class="col col-3">
110
+                                            <label class="label"
111
+                                            >保管组长<span style="color: red">*</span></label
112
+                                            >
113
+                                            <label class="input">
114
+                                                <input
115
+                                                        type="text"
116
+                                                        ng-disabled="isNotEdit"
117
+                                                        required
118
+                                                        ng-model="insertFoodHandle.custodianLeader"
119
+                                                        name="custodianLeader"
120
+                                                />
121
+                                            </label>
122
+                                        </section>
123
+                                        <section class="col col-3">
124
+                                            <label class="label">保管员<span style="color: red">*</span></label>
125
+                                            <label class="input">
126
+                                                <input
127
+                                                        type="text"
128
+                                                        ng-disabled="isNotEdit"
129
+                                                        required
130
+                                                        ng-model="insertFoodHandle.custodian"
131
+                                                        name="custodian"/>
132
+                                            </label>
133
+                                        </section>
134
+                                    </div>
135
+                                    <div class="row">
136
+                                        <section class="col col-3">
137
+                                            <label class="label">解决情况<span style="color: red">*</span></label>
138
+                                            <label class="select">
139
+                                                <select ng-model="insertFoodHandle.isSolve"
140
+                                                        class="form-control input-sm" name="isSolve" required>
141
+                                                    <option value="">请选择</option>
142
+                                                    <option value="1">是</option>
143
+                                                    <option value="0">否</option>
144
+                                                </select>&emsp;
145
+                                            </label>
146
+                                        </section>
147
+                                    </div>
148
+                                    <header style="margin-left: 0; margin-bottom: 20px">
149
+                                        &nbsp;发现粮情
150
+                                    </header>
151
+                                    <div class="row">
152
+                                        <section class="col col-12" style="width: 100%">
153
+                                            <label class="label">现象及原因<span style="color: red">*</span></label>
154
+                                            <label class="textarea textarea-resizable">
155
+                                                <textarea rows="5" class="custom-scroll" ng-disabled="isNotEdit"
156
+                                                          ng-model="insertFoodHandle.phenomenonCause"
157
+                                                          ng-disabled="isNotEdit" name="phenomenonCause"
158
+                                                          required></textarea>
159
+                                            </label>
160
+                                        </section>
161
+                                    </div>
162
+                                    <div class="row">
163
+                                        <section class="col col-12" style="width: 100%">
164
+                                            <label class="label">保管员采取的措施</label>
165
+                                            <label class="textarea textarea-resizable">
166
+                                                <textarea rows="5" class="custom-scroll" ng-disabled="isNotEdit"
167
+                                                          ng-model="insertFoodHandle.custodianMeasure"
168
+                                                          ng-disabled="isNotEdit" name="custodianMeasure"></textarea>
169
+                                            </label>
170
+                                        </section>
171
+                                    </div>
172
+                                    <div class="row">
173
+                                        <section class="col col-12" style="width: 100%">
174
+                                            <label class="label">粮情员处理意见</label>
175
+                                            <label class="textarea textarea-resizable">
176
+                                                <textarea rows="5" class="custom-scroll" ng-disabled="isNotEdit"
177
+                                                          ng-model="insertFoodHandle.grainPersonComments"
178
+                                                          ng-disabled="isNotEdit" name="grainPersonComments"></textarea>
179
+                                            </label>
180
+                                        </section>
181
+                                    </div>
182
+                                    <div class="row">
183
+                                        <section class="col col-3">
184
+                                            <label class="label">提交人:</label>
185
+                                            <label class="input">
186
+                                                <input type="text" ng-model="insertFoodHandle.commitPeople"
187
+                                                       name="commitPeople" ng-readonly="true" required>
188
+                                            </label>
189
+                                        </section>
190
+                                        <section class="col col-3">
191
+                                            <label class="label">提交时间:</label>
192
+                                            <label class="input">
193
+                                                <input type="text" ng-model="insertFoodHandle.commitTime"
194
+                                                       name="commitTime" ng-readonly="true" required>
195
+                                            </label>
196
+                                        </section>
197
+                                    </div>
198
+                                </fieldset>
199
+                                <footer class="modal-footer text-align-center">
200
+                                    <button ng-click="back()" class="btn btn-default btn-lg" data-dismiss="modal">
201
+                                        取消
202
+                                    </button>
203
+                                    <button ng-click="saveData()" type="button" class="btn btn-primary btn-lg"
204
+                                            ng-hide="isNotEdit">
205
+                                        提交
206
+                                    </button>
207
+                                </footer>
208
+                            </form>
209
+                        </div>
210
+                    </div>
211
+                </div>
212
+            </article>
251 213
         </div>
252
-      </article>
253
-    </div>
254
-  </section>
214
+    </section>
255 215
 </div>

+ 2 - 2
src/main/resources/static/app/storage/grainCard/views/foodHandle-list.html

@@ -76,8 +76,8 @@
76 76
                                         <td class="text-center">{{cereals.createTime}}</td>
77 77
                                         <td class="text-center">
78 78
                                             <a href-void ng-click="showViewFood(cereals.id,cereals.spareFour)">查看</a>
79
-                                            <a ng-hide="isArchive" href-void ng-click="showEditFood(cereals.id,cereals.spareOne,cereals.lypzName)">修改</a>
80
-                                            <a ng-hide="isArchive" href-void ng-click="removeFood(cereals.id)">删除</a>
79
+                                            <!--<a ng-hide="isArchive" href-void ng-click="showEditFood(cereals.id,cereals.spareOne,cereals.lypzName)">修改</a>
80
+                                            <a ng-hide="isArchive" href-void ng-click="removeFood(cereals.id)">删除</a>-->
81 81
                                         </td>
82 82
                                     </tr>
83 83
 

+ 2 - 12
src/main/resources/static/app/storage/grainCard/views/foodSituationList.html

@@ -91,18 +91,8 @@
91 91
 											<!-- 使用通过编号效验是否为补录数据,在保存数据时手动补录数据通过编号与提交保存标记同步 -->
92 92
 											<td class="text-center">
93 93
 												<!--保存:1,提交:2, 借用通过编号 区分手动补录,和推送数据-->
94
-												<div ng-if="gainCard.flagType == '1' && gainCard.tgph == '1'">
95
-													<a href-void ng-click="foodSituation(gainCard.id,gainCard.storehouseNum,gainCard.warehouseNum,gainCard.storehouseId,gainCard.warehouseId,gainCard.grainRemark,gainCard.flagType,gainCard.grainVarietyNum,gainCard.qualitycheckId)"><i class="fa fa-info-circle"></i>粮情卡</a>
96
-													<a ng-hide="isArchive" href-void ng-click="gainCardUpdate(gainCard.id, gainCard.storehouseNum, gainCard.storehouseId)">修改</a>
97
-													<!-- <a ng-hide="isArchive" href-void ng-click="gainOilCardAllDelete(gainCard.id)">删除</a> -->
98
-												</div>
99
-												<div ng-if="gainCard.flagType == '2' && gainCard.tgph == '1'">
100
-													<a href-void ng-click="foodSituation(gainCard.id,gainCard.storehouseNum,gainCard.warehouseNum,gainCard.storehouseId,gainCard.warehouseId,gainCard.grainRemark,gainCard.flagType,gainCard.grainVarietyNum,gainCard.qualitycheckId)"><i class="fa fa-info-circle"></i>粮情卡</a>
101
-													<a ng-hide="isArchive" href-void ng-click="gainCardUpdate(gainCard.id, gainCard.storehouseNum, gainCard.storehouseId)">修改</a>
102
-												</div>
103
-												<div ng-if="gainCard.tgph != '1'">
104
-													<a href-void ng-click="foodSituation(gainCard.id,gainCard.storehouseNum,gainCard.warehouseNum,gainCard.storehouseId,gainCard.warehouseId,gainCard.grainRemark,gainCard.flagType,gainCard.grainVarietyNum,gainCard.qualitycheckId)"><i class="fa fa-info-circle"></i>粮情卡</a>
105
-												</div>
94
+												<a href-void ng-click="foodSituation(gainCard.id,gainCard.storehouseNum,gainCard.warehouseNum,gainCard.storehouseId,gainCard.warehouseId,gainCard.grainRemark,gainCard.flagType,gainCard.grainVarietyNum,gainCard.qualitycheckId)"><i class="fa fa-info-circle"></i>粮情卡</a>
95
+												<a ng-hide="isArchive || gainCard.flagType=='2'" href-void ng-click="gainCardUpdate(gainCard.id, gainCard.storehouseNum, gainCard.storehouseId)">修改</a>
106 96
 											</td>
107 97
 										</tr>
108 98
 									</tbody>

+ 103 - 71
src/main/resources/static/app/storage/grainCard/views/grainCarAdd.html

@@ -34,7 +34,7 @@
34 34
                                                     <label class="select">
35 35
                                                         <select ng-model="grainCard.storehouseId" name="storehouseId"
36 36
                                                                 ng-disabled="isNotEdit"
37
-                                                                ng-options="store.storehouseId as store.storehouseName for store in storelist2"
37
+                                                                ng-options="store.storehouseId as store.storehouseName for store in storelist"
38 38
                                                                 ng-change="loadWare(grainCard.storehouseId)"
39 39
                                                                 required>
40 40
                                                             <option value="">--请选择--</option>
@@ -59,59 +59,72 @@
59 59
                                                 </section>
60 60
                                             </th>
61 61
                                             <th width='10%'>
62
-                                                <label class="label" style="margin-top: 9px;text-align: center;">粮油品种:<span style="color: red;">*</span></label>
62
+                                                <label class="label" style="margin-top: 9px;text-align: center;">粮权所属:<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
63 63
                                             </th>
64 64
                                             <th width='20%'>
65 65
                                                 <section>
66
-                                                    <label class="input">
67
-                                                        <input type="text" ng-model="grainCard.grainVarietyName"
68
-                                                               name="grainVarietyName" class="form-control" ng-readonly="true">
66
+                                                    <label class="select">
67
+                                                        <label class="select">
68
+	                                                        <select ng-model="grainCard.grainRights" name="grainRights" ng-disabled="isNotEdit" required>
69
+	                                                            <option value="">--请选择--</option>
70
+	                                                            <option value="天津市人民政府">天津市人民政府</option>
71
+	                                                            <option value="和平区人民政府">和平区人民政府</option>
72
+																<option value="河东区人民政府">河东区人民政府</option>
73
+																<option value="河西区人民政府">河西区人民政府</option>
74
+																<option value="南开区人民政府">南开区人民政府</option>
75
+																<option value="河北区人民政府">河北区人民政府</option>
76
+																<option value="红桥区人民政府">红桥区人民政府</option>
77
+																<option value="东丽区人民政府">东丽区人民政府</option>
78
+																<option value="西青区人民政府">西青区人民政府</option>
79
+																<option value="津南区人民政府">津南区人民政府</option>
80
+																<option value="北辰区人民政府">北辰区人民政府</option>
81
+																<option value="武清区人民政府">武清区人民政府</option>
82
+																<option value="宝坻区人民政府">宝坻区人民政府</option>
83
+																<option value="滨海新区人民政府">滨海新区人民政府</option>
84
+																<option value="宁河区人民政府">宁河区人民政府</option>
85
+																<option value="静海区人民政府">静海区人民政府</option>
86
+																<option value="蓟州区人民政府">蓟州区人民政府</option>
87
+	                                                        </select><i></i>
88
+	                                                    </label><i></i>
69 89
                                                     </label>
70 90
                                                 </section>
71 91
                                             </th>
72 92
                                         </tr>
73 93
                                         <tr>
74
-                                            <th>
75
-                                                <label class="label" style="margin-top: 9px;text-align: center;">建卡时间:<span style="color: red;">*</span></label>
94
+                                            <th width='10%'>
95
+                                                <label class="label" style="margin-top: 9px;text-align: center;">粮油品种:<span style="color: red;">*</span></label>
76 96
                                             </th>
77
-                                            <th>
97
+                                            <th width='20%'>
78 98
                                                 <section>
79 99
                                                     <label class="input">
80
-                                                        <input type="text" ng-model="grainCard.acceptDate"
81
-                                                               name="acceptDate" class="form-control Wdate"
82
-                                                               onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" required>
100
+                                                        <input type="text" ng-model="grainCard.grainVarietyName"
101
+                                                               name="grainVarietyName" class="form-control" ng-readonly="true">
83 102
                                                     </label>
84 103
                                                 </section>
85 104
                                             </th>
86
-                                            <th>
87
-                                                <label class="label" style="margin-top: 9px;text-align: center;">类型:<span style="color: red;">*</span></label>
105
+                                            <th style="border-bottom-width:1px">
106
+                                                <label class="label" style="margin-top: 9px;text-align: center;">库存数量(吨):</label>
88 107
                                             </th>
89
-                                            <th width='20%'>
108
+                                            <th style="border-bottom-width:1px">
90 109
                                                 <section>
91
-                                                    <label class="select">
92
-                                                        <select ng-model="grainCard.checkTypeNum" name="checkTypeNum" required>
93
-                                                            <option value="">--请选择--</option>
94
-                                                            <option value="0">入库</option>
95
-                                                            <option value="1">倒仓</option>
96
-                                                            <option value="2">移库</option>
97
-                                                        </select><i></i>
110
+                                                    <label class="input">
111
+                                                        <input type="text" ng-model="grainCard.rksl"
112
+                                                               name="rksl" class="form-control" ng-readonly="true">
98 113
                                                     </label>
99 114
                                                 </section>
100 115
                                             </th>
101
-                                            <th style="border-bottom-width:1px">
102
-                                                <label class="label" style="margin-top: 9px;text-align: center;">库存数量(吨):</label>
116
+                                            <th>
117
+                                                <label class="label" style="margin-top: 9px;text-align: center;">生产年度:</label>
103 118
                                             </th>
104 119
                                             <th style="border-bottom-width:1px">
105 120
                                                 <section>
106 121
                                                     <label class="input">
107
-                                                        <input type="text" ng-model="grainCard.rksl"
108
-                                                               name="rksl" class="form-control" ng-readonly="true">
122
+                                                        <input type="text" ng-model="grainCard.scnd"
123
+                                                               name="scnd" class="form-control" ng-readonly="true">
109 124
                                                     </label>
110 125
                                                 </section>
111 126
                                             </th>
112 127
                                         </tr>
113
-
114
-
115 128
                                         <tr>
116 129
                                             <th>
117 130
                                                 <label class="label" style="margin-top: 9px;text-align: center;">入仓时间(第一车):<span style="color: red;">*</span></label>
@@ -120,8 +133,8 @@
120 133
                                                 <section>
121 134
                                                     <label class="input">
122 135
                                                         <input type="text" ng-model="rcsj"
123
-                                                               name="rcsj" class="form-control Wdate"
124
-                                                               onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" required>
136
+                                                               name="rcsj" class="form-control Wdate" ng-disabled="true"
137
+                                                               onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" required />
125 138
                                                     </label>
126 139
                                                 </section>
127 140
                                             </th>
@@ -132,102 +145,120 @@
132 145
                                                 <section>
133 146
                                                     <label class="input">
134 147
                                                         <input type="text" ng-model="rksj"
135
-                                                               name="rksj" class="form-control Wdate"
136
-                                                               onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" required>
148
+                                                               name="rksj" class="form-control Wdate" ng-disabled="true"
149
+                                                               onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" required />
137 150
                                                     </label>
138 151
                                                 </section>
139 152
                                             </th>
140 153
                                             <th>
141
-                                                <label class="label" style="margin-top: 9px;text-align: center;">散存粮体积:</label>
154
+                                                <label class="label" style="margin-top: 9px;text-align: center;">业务类型:<span style="color: red;">*</span></label>
142 155
                                             </th>
143
-                                            <th>
156
+                                            <th width='20%'>
144 157
                                                 <section>
145
-                                                    <label class="input">
146
-                                                        <input type="text" ng-model="grainCard.looseGrainVolume"
147
-                                                               name="looseGrainVolume" class="form-control">
158
+                                                    <label class="select">
159
+                                                        <select ng-model="grainCard.checkTypeNum" name="checkTypeNum" required ng-disabled="isNotEdit">
160
+                                                            <option value="">--请选择--</option>
161
+                                                            <option value="0">入库</option>
162
+                                                            <option value="1">倒仓</option>
163
+                                                            <option value="2">移库</option>
164
+                                                        </select><i></i>
148 165
                                                     </label>
149 166
                                                 </section>
150 167
                                             </th>
151 168
                                         </tr>
152 169
                                         <tr>
153 170
                                             <th>
154
-                                                <label class="label" style="margin-top: 9px;text-align: center;">存储类型:</label>
171
+                                                <label class="label" style="margin-top: 9px;text-align: center;">初始散存粮堆长(米):<span style="color: red;">*</span></label>
155 172
                                             </th>
156 173
                                             <th>
157 174
                                                 <section>
158
-                                                    <label class="select">
159
-                                                        <select ng-model="grainCard.storeType" name="storeType">
160
-                                                            <option value="">--请选择--</option>
161
-                                                            <option value="1">直储</option>
162
-                                                            <option value="2">代储</option>
163
-                                                        </select><i></i>
175
+                                                    <label class="input">
176
+                                                        <input type="text" ng-model="grainCard.csscldc" name="csscldc" ng-readonly="isNotEdit"
177
+                                                               class="form-control" checkCsscldc=true ng-change="getLdtj()" required />
164 178
                                                     </label>
165 179
                                                 </section>
166 180
                                             </th>
167
-                                            <th style="border-bottom-width:1px">
168
-                                                <label class="label" style="margin-top: 9px;text-align: center;">包存粮包数:</label>
181
+                                            <th>
182
+                                                <label class="label" style="margin-top: 9px;text-align: center;">初始散存粮堆宽(米):<span style="color: red;">*</span></label>
169 183
                                             </th>
170
-                                            <th style="border-bottom-width:1px">
184
+                                            <th>
171 185
                                                 <section>
172 186
                                                     <label class="input">
173
-                                                        <input type="text" ng-model="grainCard.grainPacks"
174
-                                                               name="grainPacks" class="form-control">
187
+                                                        <input type="text" ng-model="grainCard.csscldk" name="csscldk" ng-readonly="isNotEdit"
188
+                                                               class="form-control" checkCsscldk=true ng-change="getLdtj()" required />
175 189
                                                     </label>
176 190
                                                 </section>
177 191
                                             </th>
178 192
                                             <th>
179
-                                                <label class="label" style="margin-top: 9px;text-align: center;">生产年度:</label>
193
+                                                <label class="label" style="margin-top: 9px;text-align: center;">初始散存粮堆高(米):<span style="color: red;">*</span></label>
180 194
                                             </th>
181
-                                            <th style="border-bottom-width:1px">
195
+                                            <th>
182 196
                                                 <section>
183 197
                                                     <label class="input">
184
-                                                        <input type="text" ng-model="grainCard.scnd"
185
-                                                               name="scnd" class="form-control" ng-readonly="true">
198
+                                                        <input type="text" ng-model="grainCard.csscldg" name="csscldg" ng-readonly="isNotEdit"
199
+                                                               class="form-control" checkCsscldg=true ng-change="getLdtj()" required />
186 200
                                                     </label>
187 201
                                                 </section>
188 202
                                             </th>
189 203
                                         </tr>
190 204
                                         <tr>
191
-                                        	<th>
192
-                                                <label class="label" style="margin-top: 9px;text-align: center;white-space: nowrap;">轮换协议编号:</label>
205
+                                            <th>
206
+                                                <label class="label" style="margin-top: 9px;text-align: center;">散存粮体积:<span style="color: red;">*</span></label>
193 207
                                             </th>
194
-                                            <th style="border-bottom-width:1px">
208
+                                            <th>
195 209
                                                 <section>
196 210
                                                     <label class="input">
197
-                                                        <input type="text" ng-model="grainCard.spareOne"
198
-                                                               name="spareOne" class="form-control">
211
+                                                        <input type="text" ng-model="grainCard.looseGrainVolume" name="looseGrainVolume" ng-readonly="isNotEdit"
212
+                                                        class="form-control" numberDouble2=true required />
199 213
                                                     </label>
200 214
                                                 </section>
201 215
                                             </th>
202 216
                                             <th>
203
-                                                <label class="label" style="margin-top: 9px;text-align: center;">粮权所属:</label>
217
+                                                <label class="label" style="margin-top: 9px;text-align: center;">管理方式:</label>
204 218
                                             </th>
205
-                                            <th style="border-bottom-width:1px">
219
+                                            <th>
206 220
                                                 <section>
207 221
                                                     <label class="select">
208
-                                                        <select ng-model="grainCard.grainRights" name="grainRights">
222
+                                                        <select ng-model="grainCard.storeType" name="storeType" ng-disabled="true">
209 223
                                                             <option value="">--请选择--</option>
210
-                                                            <option value="01">市粮食局</option>
211
-                                                            <option value="02">{{orgInfo.orgName}}</option>
212
-                                                            <option value="03">区发改委</option>
213
-                                                            <option value="04">市储备公司</option>
214
-															<option value="05">区购销公司</option>
224
+                                                            <option value="1">直储</option>
225
+                                                            <option value="2">代储</option>
215 226
                                                         </select><i></i>
216 227
                                                     </label>
217 228
                                                 </section>
218 229
                                             </th>
219
-                                            <th></th>
220
-                                            <th></th>
230
+                                            <th>
231
+                                                <label class="label" style="margin-top: 9px;text-align: center;">建卡人:</label>
232
+                                            </th>
233
+                                            <th>
234
+                                                <section>
235
+                                                    <label class="input">
236
+                                                        <input type="text" ng-model="grainCard.jkr" name="jkr" ng-readonly="true"
237
+                                                        class="form-control" required />
238
+                                                    </label>
239
+                                                </section>
240
+                                            </th>
221 241
                                         </tr>
222 242
                                         <tr>
223 243
                                             <th>
244
+                                                <label class="label" style="margin-top: 9px;text-align: center;">建卡时间:<span style="color: red;">*</span></label>
245
+                                            </th>
246
+                                            <th>
247
+                                                <section>
248
+                                                    <label class="input">
249
+                                                        <input type="text" ng-model="grainCard.acceptDate"
250
+                                                               name="acceptDate" class="form-control Wdate" ng-disabled="true"
251
+                                                               onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" required>
252
+                                                    </label>
253
+                                                </section>
254
+                                            </th>
255
+                                            <th>
224 256
                                                 <label class="label" style="margin-top: 9px;text-align: center;">备注</label>
225 257
                                             </th>
226
-                                            <th style="border-bottom-width:1px" colspan="5">
258
+                                            <th style="border-bottom-width:1px" colspan="3">
227 259
                                                 <section>
228 260
                                                     <label class="input">
229
-                                                        <input type="text" ng-model="grainCard.remark"
230
-                                                               name="remark" class="form-control">
261
+                                                        <input type="text" ng-model="grainCard.remark" name="remark" class="form-control" ng-readonly="isNotEdit" />
231 262
                                                     </label>
232 263
                                                 </section>
233 264
                                             </th>
@@ -236,7 +267,8 @@
236 267
                                     <div>
237 268
                                         <footer class="text-align-center">
238 269
                                             <button type="button" class="btn btn-default" ng-click="retList()">取消</button>
239
-                                            <button type="button" class="btn btn-primary" ng-click="save()">保存</button>
270
+                                            <button type="button" class="btn btn-primary" ng-click="save(1)">保存</button>
271
+                                            <button type="button" class="btn btn-primary" ng-click="save(2)">提交</button>
240 272
                                         </footer>
241 273
                                     </div>
242 274
                                 </fieldset>

+ 69 - 73
src/main/resources/static/app/storage/grainCard/views/oilCarAdd.html

@@ -34,7 +34,7 @@
34 34
                                                     <label class="select">
35 35
                                                         <select ng-model="oilCard.storehouseId" name="storehouseId"
36 36
                                                                 ng-disabled="isNotEdit"
37
-                                                                ng-options="store.storehouseId as store.storehouseName for store in tanklist2"
37
+                                                                ng-options="store.storehouseId as store.storehouseName for store in tanklist"
38 38
                                                                 ng-change="findQualityCheck(oilCard.storehouseId)"
39 39
                                                                 required>
40 40
                                                             <option value="">--请选择--</option>
@@ -43,47 +43,51 @@
43 43
                                                 </section>
44 44
                                             </th>
45 45
                                             <th width='10%'>
46
-                                                <label class="label" style="margin-top: 9px;text-align: center;">粮油品种<span style="color: red;">*</span></label>
46
+                                                <label class="label" style="margin-top: 9px;text-align: center;">粮权所属:<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
47 47
                                             </th>
48 48
                                             <th width='20%'>
49 49
                                                 <section>
50
-                                                    <label class="input">
51
-                                                        <input type="text" ng-model="oilCard.grainVarietyName"
52
-                                                               name="grainVarietyName" class="form-control" ng-readonly="true">
50
+                                                    <label class="select">
51
+                                                        <label class="select">
52
+	                                                        <select ng-model="oilCard.grainRights" name="grainRights" ng-disabled="isNotEdit" required>
53
+	                                                            <option value="">--请选择--</option>
54
+	                                                            <option value="天津市人民政府">天津市人民政府</option>
55
+	                                                            <option value="和平区人民政府">和平区人民政府</option>
56
+																<option value="河东区人民政府">河东区人民政府</option>
57
+																<option value="河西区人民政府">河西区人民政府</option>
58
+																<option value="南开区人民政府">南开区人民政府</option>
59
+																<option value="河北区人民政府">河北区人民政府</option>
60
+																<option value="红桥区人民政府">红桥区人民政府</option>
61
+																<option value="东丽区人民政府">东丽区人民政府</option>
62
+																<option value="西青区人民政府">西青区人民政府</option>
63
+																<option value="津南区人民政府">津南区人民政府</option>
64
+																<option value="北辰区人民政府">北辰区人民政府</option>
65
+																<option value="武清区人民政府">武清区人民政府</option>
66
+																<option value="宝坻区人民政府">宝坻区人民政府</option>
67
+																<option value="滨海新区人民政府">滨海新区人民政府</option>
68
+																<option value="宁河区人民政府">宁河区人民政府</option>
69
+																<option value="静海区人民政府">静海区人民政府</option>
70
+																<option value="蓟州区人民政府">蓟州区人民政府</option>
71
+	                                                        </select><i></i>
72
+	                                                    </label><i></i>
53 73
                                                     </label>
54 74
                                                 </section>
55 75
                                             </th>
56 76
                                             <th width='10%'>
57
-                                                <label class="label" style="margin-top: 9px;text-align: center;">建卡时间<span style="color: red;">*</span></label>
77
+                                                <label class="label" style="margin-top: 9px;text-align: center;">粮油品种</label>
58 78
                                             </th>
59 79
                                             <th width='20%'>
60 80
                                                 <section>
61 81
                                                     <label class="input">
62
-                                                        <input type="text" ng-model="oilCard.acceptDate"
63
-                                                               name="acceptDate" class="form-control Wdate"
64
-                                                               onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" required>
82
+                                                        <input type="text" ng-model="oilCard.grainVarietyName"
83
+                                                               name="grainVarietyName" class="form-control" ng-readonly="true">
65 84
                                                     </label>
66 85
                                                 </section>
67 86
                                             </th>
68 87
                                         </tr>
69 88
                                         <tr>
70
-                                            <th>
71
-                                                <label class="label" style="margin-top: 9px;text-align: center;">类型<span style="color: red;">*</span></label>
72
-                                            </th>
73
-                                            <th width='20%'>
74
-                                                <section>
75
-                                                    <label class="select">
76
-                                                        <select ng-model="oilCard.checkTypeNum" name="checkTypeNum" required>
77
-                                                            <option value="">--请选择--</option>
78
-                                                            <option value="0">入库</option>
79
-                                                            <option value="1">倒仓</option>
80
-                                                            <option value="2">移库</option>
81
-                                                        </select><i></i>
82
-                                                    </label>
83
-                                                </section>
84
-                                            </th>
85 89
                                             <th style="border-bottom-width:1px">
86
-                                                <label class="label" style="margin-top: 9px;text-align: center;">库存数量(吨)<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
90
+                                                <label class="label" style="margin-top: 9px;text-align: center;">库存数量(吨)</label>
87 91
                                             </th>
88 92
                                             <th style="border-bottom-width:1px">
89 93
                                                 <section>
@@ -99,110 +103,101 @@
99 103
                                             <th width='20%'>
100 104
                                                 <section>
101 105
                                                     <label class="input">
102
-                                                        <input type="text" ng-model="oilCard.scnd"
103
-                                                               name="scnd" class="form-control" ng-readonly="true">
106
+                                                        <input type="text" ng-model="oilCard.scnd" name="scnd" class="form-control" ng-readonly="true">
104 107
                                                     </label>
105 108
                                                 </section>
106 109
                                             </th>
107
-                                        </tr>
108
-                                        <tr>
109 110
                                             <th>
110
-                                                <label class="label" style="margin-top: 9px;text-align: center;">入仓时间(第一车):<span style="color: red;">*</span></label>
111
+                                                <label class="label" style="margin-top: 9px;text-align: center;">入罐时间(第一车):</label>
111 112
                                             </th>
112 113
                                             <th>
113 114
                                                 <section>
114 115
                                                     <label class="input">
115
-                                                        <input type="text" ng-model="rcsj"
116
-                                                               name="rcsj" class="form-control Wdate"
117
-                                                               onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" required>
116
+                                                        <input type="text" ng-model="rcsj" name="rcsj" class="form-control Wdate" ng-disabled="true"
117
+                                                               onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
118 118
                                                     </label>
119 119
                                                 </section>
120 120
                                             </th>
121
+                                        </tr>
122
+                                        <tr>
121 123
                                             <th>
122
-                                                <label class="label" style="margin-top: 9px;text-align: center;">入库时间(最后一车):<span style="color: red;">*</span></label>
124
+                                                <label class="label" style="margin-top: 9px;text-align: center;">入罐时间(最后一车):</label>
123 125
                                             </th>
124 126
                                             <th>
125 127
                                                 <section>
126 128
                                                     <label class="input">
127
-                                                        <input type="text" ng-model="rksj"
128
-                                                               name="rksj" class="form-control Wdate"
129
-                                                               onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" required>
129
+                                                        <input type="text" ng-model="rksj" name="rksj" class="form-control Wdate" ng-disabled="true"
130
+                                                               onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
130 131
                                                     </label>
131 132
                                                 </section>
132 133
                                             </th>
133 134
                                             <th>
134
-                                                <label class="label" style="margin-top: 9px;text-align: center;">散存粮体积:</label>
135
+                                                <label class="label" style="margin-top: 9px;text-align: center;">实际储油高度(米):<span style="color: red;">*</span></label>
135 136
                                             </th>
136 137
                                             <th>
137 138
                                                 <section>
138 139
                                                     <label class="input">
139
-                                                        <input type="text" ng-model="oilCard.looseGrainVolume"
140
-                                                               name="looseGrainVolume" class="form-control">
140
+                                                        <input type="text" ng-model="oilCard.csscldg" name="csscldg" ng-readonly="isNotEdit"
141
+                                                               class="form-control" checkHeight=true required />
141 142
                                                     </label>
142 143
                                                 </section>
143 144
                                             </th>
144
-                                        </tr>
145
-                                        <tr>
146 145
                                             <th>
147
-                                                <label class="label" style="margin-top: 9px;text-align: center;">存储类型:</label>
146
+                                                <label class="label" style="margin-top: 9px;text-align: center;">业务类型:<span style="color: red;">*</span></label>
148 147
                                             </th>
149
-                                            <th>
148
+                                            <th width='20%'>
150 149
                                                 <section>
151 150
                                                     <label class="select">
152
-                                                        <select ng-model="oilCard.storeType" name="storeType">
151
+                                                        <select ng-model="oilCard.checkTypeNum" name="checkTypeNum" required ng-disabled="isNotEdit">
153 152
                                                             <option value="">--请选择--</option>
154
-                                                            <option value="1">直储</option>
155
-                                                            <option value="2">代储</option>
153
+                                                            <option value="0">入库</option>
154
+                                                            <option value="1">倒仓</option>
155
+                                                            <option value="2">移库</option>
156 156
                                                         </select><i></i>
157 157
                                                     </label>
158 158
                                                 </section>
159 159
                                             </th>
160
-                                            <th style="border-bottom-width:1px">
161
-                                                <label class="label" style="margin-top: 9px;text-align: center;">包存粮包数:</label>
160
+                                        </tr>
161
+                                        <tr>
162
+                                            <th width='10%'>
163
+                                                <label class="label" style="margin-top: 9px;text-align: center;">油罐状态</label>
162 164
                                             </th>
163
-                                            <th style="border-bottom-width:1px">
165
+                                            <th width='20%'>
164 166
                                                 <section>
165 167
                                                     <label class="input">
166
-                                                        <input type="text" ng-model="oilCard.grainPacks"
167
-                                                               name="grainPacks" class="form-control">
168
+                                                        <input type="text" ng-model="ygzt" name="ygzt" class="form-control" />
168 169
                                                     </label>
169 170
                                                 </section>
170 171
                                             </th>
171 172
                                             <th>
172
-                                                <label class="label" style="margin-top: 9px;text-align: center;">轮换协议编号</label>
173
+                                                <label class="label" style="margin-top: 9px;text-align: center;">建卡人:</label>
173 174
                                             </th>
174
-                                            <th style="border-bottom-width:1px">
175
+                                            <th>
175 176
                                                 <section>
176 177
                                                     <label class="input">
177
-                                                        <input type="text" ng-model="oilCard.spareOne"
178
-                                                               name="spareOne" class="form-control">
178
+                                                        <input type="text" ng-model="oilCard.jkr" name="jkr" ng-readonly="true"
179
+                                                        class="form-control" required />
179 180
                                                     </label>
180 181
                                                 </section>
181 182
                                             </th>
182
-                                            <!-- <th colspan="4"></th> -->
183
-                                        </tr>
184
-                                        <tr>
185
-                                            <th>
186
-                                                <label class="label" style="margin-top: 9px;text-align: center;">粮权所属:</label>
183
+                                            <th width='10%'>
184
+                                                <label class="label" style="margin-top: 9px;text-align: center;">建卡时间<span style="color: red;">*</span></label>
187 185
                                             </th>
188
-                                            <th style="border-bottom-width:1px">
186
+                                            <th width='20%'>
189 187
                                                 <section>
190
-                                                    <label class="select">
191
-                                                        <select ng-model="oilCard.grainRights" name="grainRights">
192
-                                                            <option value="">--请选择--</option>
193
-                                                            <option value="01">市粮食局</option>
194
-                                                            <option value="02">{{orgInfo.orgName}}</option>
195
-                                                            <option value="03">区发改委</option>
196
-                                                            <option value="04">市储备公司</option>
197
-															<option value="05">区购销公司</option>
198
-                                                        </select><i></i>
188
+                                                    <label class="input">
189
+                                                        <input type="text" ng-model="oilCard.acceptDate"
190
+                                                               name="acceptDate" class="form-control Wdate"
191
+                                                               onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" required>
199 192
                                                     </label>
200 193
                                                 </section>
201 194
                                             </th>
195
+                                        </tr>
196
+                                        <tr>
202 197
                                             <th>
203 198
                                                 <label class="label" style="margin-top: 9px;text-align: center;">备注</label>
204 199
                                             </th>
205
-                                            <th style="border-bottom-width:1px" colspan="3">
200
+                                            <th style="border-bottom-width:1px" colspan="5">
206 201
                                                 <section>
207 202
                                                     <label class="input">
208 203
                                                         <input type="text" ng-model="oilCard.remark"
@@ -215,7 +210,8 @@
215 210
                                     <div>
216 211
                                         <footer class="text-align-center">
217 212
                                             <button type="button" class="btn btn-default" ng-click="retList()">取消</button>
218
-                                            <button type="button" class="btn btn-primary" ng-click="save()">保存</button>
213
+                                            <button type="button" class="btn btn-primary" ng-click="save(1)">保存</button>
214
+                                            <button type="button" class="btn btn-primary" ng-click="save(2)">提交</button>
219 215
                                         </footer>
220 216
                                     </div>
221 217
                                 </fieldset>

+ 242 - 120
src/main/resources/static/app/storage/grainCard/views/productGrain-add-G.html

@@ -1,5 +1,4 @@
1 1
 <!--粮仓-->
2
-<!--第一个tr开始 -->
3 2
 <table class="table table-striped table-bordered table-hover" width="100%">
4 3
     <tr>
5 4
         <th width='10%'>
@@ -9,10 +8,10 @@
9 8
             <section>
10 9
                 <label class="select">
11 10
                     <select ng-model="cerealsCard.spareOne" name="spareOne"
12
-                            ng-disabled="isNotEdit"
13
-                            ng-options="store.storehouseId as store.storehouseName for store in storehouseObj"
14
-                            ng-change="loadWare(cerealsCard.spareOne)"
15
-                            required>
11
+                           ng-disabled="isNotEdit"
12
+                           ng-options="store.storehouseId as store.storehouseName for store in storelist"
13
+                           ng-change="loadWare(cerealsCard.spareOne)"
14
+                           required>
16 15
                         <option value="">--请选择--</option>
17 16
                     </select><i></i>
18 17
                 </label>
@@ -35,122 +34,245 @@
35 34
             </section>
36 35
         </th>
37 36
         <th width='10%'>
38
-            <label class="label" style="margin-top: 9px;text-align: center;">仓房类型</label>
37
+            <label class="label" style="margin-top: 9px;text-align: center;">粮权所属</label>
39 38
         </th>
40 39
         <th width='20%'>
41 40
             <section>
42
-                <label class="input">
43
-                    <input type="text" ng-model="cerealsCard.storehouseTypeName"
44
-                           name="storehouseTypeName" class="form-control input1">
45
-                </label>
46
-            </section>
47
-        </th>
48
-    </tr>
49
-    <!--第一个tr结束 -->
50
-    <!--第二个tr开始 -->
51
-    <tr>
52
-
53
-        <th>
54
-            <label class="label" style="margin-top: 9px;text-align: center;">建设年份</label>
55
-        </th>
56
-        <th>
57
-            <section>
58
-                <label class="input">
59
-                    <input type="text" ng-model="cerealsCard.buildDate"
60
-                           name="buildDate" class="form-control datepicker input1"
61
-                           data-smart-datepicker>
62
-                </label>
63
-            </section>
64
-        </th>
65
-        <th style="border-bottom-width:1px">
66
-            <label class="label" style="margin-top: 9px;text-align: center;">仓房结构</label>
67
-        </th>
68
-        <th style="border-bottom-width:1px">
69
-            <section>
70
-                <label class="input">
71
-                    <input type="text" ng-model="cerealsCard.wallName"
72
-                           name="wallName" class="form-control input1">
73
-                </label>
74
-            </section>
75
-        </th>
76
-        <th style="border-bottom-width:1px">
77
-            <label class="label" style="margin-top: 9px;text-align: center;">外檐高度(m)</label>
78
-        </th>
79
-        <th style="border-bottom-width:1px">
80
-            <section>
81
-                <label class="input">
82
-                    <input type="text" ng-model="cerealsCard.outsideHeigth"
83
-                           name="outsideHeigth" class="form-control input1">
84
-                </label>
85
-            </section>
86
-        </th>
87
-    </tr>
88
-    <!--第二个tr结束 -->
89
-    <!--第三个tr开始 -->
90
-    <tr>
91
-
92
-        <th>
93
-            <label class="label" style="margin-top: 9px;text-align: center;">仓内长(直径)</label>
94
-        </th>
95
-        <th style="border-right-width:1px">
96
-            <section>
97
-                <label class="input">
98
-                    <input type="text" ng-model="cerealsCard.inLength"
99
-                           name="inLength" class="form-control input1">
100
-                </label>
101
-            </section>
102
-        </th>
103
-        <th>
104
-            <label class="label" style="margin-top: 9px;text-align: center;">仓内宽(m)</label>
105
-        </th>
106
-        <th>
107
-            <section>
108
-                <label class="input">
109
-                    <input class="form-control input1" type="text"
110
-                           ng-model="cerealsCard.inWidth" name="inWidth">
111
-                </label>
112
-            </section>
113
-        </th>
114
-
115
-        <th>
116
-            <label class="label" style="margin-top: 9px;text-align: center;">设计装粮线高度(m)</label>
117
-        </th>
118
-        <th>
119
-            <section>
120
-                <label class="input">
121
-                    <input class="form-control input1" type="text"
122
-                           ng-model="cerealsCard.grainLineHeigth"
123
-                           name="grainLineHeigth">
124
-                </label>
125
-            </section>
126
-        </th>
127
-
128
-    </tr>
129
-    <!--第三个tr结束 -->
130
-    <tr>
131
-        <th>
132
-            <label class="label" style="margin-top: 9px;text-align: center;">使用面积</label>
133
-        </th>
134
-        <th style="border-right-width:1px">
135
-            <section>
136
-                <label class="input">
137
-                    <input type="text" ng-model="cerealsCard.binVolume"
138
-                           name="binVolume" class="form-control input1">
139
-                </label>
140
-            </section>
141
-        </th>
142
-        <th>
143
-            <label class="label" style="margin-top: 9px;text-align: center;">保管员</label>
144
-        </th>
145
-        <th>
146
-            <section>
147
-                <label class="input">
148
-                    <input class="form-control input1" type="text"
149
-                           ng-model="cerealsCard.storemanName" name="storemanName">
150
-                </label>
151
-            </section>
152
-        </th>
153
-        <th colspan="2"></th>
154
-    </tr>
41
+                <label class="select">
42
+                    <select ng-model="cerealsCard.lqss" name="lqss" ng-disabled="isNotEdit" required>
43
+                        <option value="">--请选择--</option>
44
+                        <option value="天津市人民政府">天津市人民政府</option>
45
+                        <option value="和平区人民政府">和平区人民政府</option>
46
+						<option value="河东区人民政府">河东区人民政府</option>
47
+						<option value="河西区人民政府">河西区人民政府</option>
48
+						<option value="南开区人民政府">南开区人民政府</option>
49
+						<option value="河北区人民政府">河北区人民政府</option>
50
+						<option value="红桥区人民政府">红桥区人民政府</option>
51
+						<option value="东丽区人民政府">东丽区人民政府</option>
52
+						<option value="西青区人民政府">西青区人民政府</option>
53
+						<option value="津南区人民政府">津南区人民政府</option>
54
+						<option value="北辰区人民政府">北辰区人民政府</option>
55
+						<option value="武清区人民政府">武清区人民政府</option>
56
+						<option value="宝坻区人民政府">宝坻区人民政府</option>
57
+						<option value="滨海新区人民政府">滨海新区人民政府</option>
58
+						<option value="宁河区人民政府">宁河区人民政府</option>
59
+						<option value="静海区人民政府">静海区人民政府</option>
60
+						<option value="蓟州区人民政府">蓟州区人民政府</option>
61
+                    </select><i></i>
62
+                 </label><i></i>
63
+             </section>
64
+         </th>
65
+	     </tr>
66
+		     <tr>
67
+		        <th width='10%'>
68
+		            <label class="label" style="margin-top: 9px;text-align: center;">粮油品种<span style="color: red;">*</span></label>
69
+		        </th>
70
+		        <th width='20%'>
71
+		            <section>
72
+		                <label class="select">
73
+		                    <select ng-model="cerealsCard.lypzCode" name="lypzCode" ng-change="getsGrainDetailKind()" ng-disabled="true" required>
74
+								<option value="">--请选择--</option>
75
+								<option value="7038">小麦粉</option>
76
+								<option value="7051">混合小麦粉</option>
77
+								<option value="7052">压榨成品油</option>
78
+								<option value="7050">浸出成品油</option>
79
+								<option value="7107">大米及优质大米</option>
80
+							</select> <i></i>
81
+		                </label>
82
+		            </section>
83
+		        </th>
84
+		        <th width='10%'>
85
+		            <label class="label" style="margin-top: 9px;text-align: center;">等级/类别<span style="color: red;">*</span></label>
86
+		        </th>
87
+		        <th width='20%'>
88
+		            <section>
89
+		                <label class="select">
90
+		                    <select ng-model="cerealsCard.lydjCode" name="lydjCode" ng-disabled="true" ng-disabled="true"
91
+		                            ng-options="enum.enumid as enum.enumname for enum in dicDataList[1002]" required>
92
+		                        <option value="">--请选择--</option>
93
+		                    </select><i></i>
94
+		                </label>
95
+		            </section>
96
+		        </th>
97
+		        <th width='10%'>
98
+		            <label class="label" style="margin-top: 9px;text-align: center;">仓房类型<span style="color: red;">*</span></label>
99
+		        </th>
100
+		        <th width='20%'>
101
+		            <section>
102
+		                <label class="input">
103
+		                    <input type="text" ng-model="cerealsCard.storehouseTypeName" name="storehouseTypeName" class="form-control input1" ng-readonly="true" required />
104
+		                </label>
105
+		            </section>
106
+		        </th>
107
+		    </tr>
108
+		    <tr>
109
+		        <th>
110
+		            <label class="label" style="margin-top: 9px;text-align: center;">业务类型:<span style="color: red;">*</span></label>
111
+		        </th>
112
+		        <th width='20%'>
113
+			        <section>
114
+			            <label class="select">
115
+			                <select ng-model="cerealsCard.ywlx" name="ywlx" required ng-disabled="isNotEdit">
116
+			                    <option value="">--请选择--</option>
117
+			                    <option value="0">入库</option>
118
+			                    <option value="1">倒仓</option>
119
+			                    <option value="2">移库</option>
120
+			                </select><i></i>
121
+			            </label>
122
+			        </section>
123
+			    </th>
124
+		        <th style="border-bottom-width:1px">
125
+		            <label class="label" style="margin-top: 9px;text-align: center;">库存数量(吨)<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
126
+		        </th>
127
+		        <th style="border-bottom-width:1px">
128
+		            <section>
129
+		                <label class="input">
130
+		                    <input type="text" ng-model="cerealsCard.lysl" ng-readonly="true"
131
+		                           name="lysl" class="form-control" required />
132
+		                </label>
133
+		            </section>
134
+		        </th>
135
+		        <th>
136
+		            <label class="label" style="margin-top: 9px;text-align: center;">生产日期<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
137
+		        </th>
138
+		        <th>
139
+		            <section>
140
+		                <label class="input">
141
+		                    <input type="text" ng-model="cerealsCard.scrq" name="scrq" class="form-control Wdate"
142
+		                           onClick="WdatePicker({lang:'zh-cn'})" ng-readonly="isNotEdit" required />
143
+		                </label>
144
+		            </section>
145
+		        </th>
146
+		    </tr>
147
+		    <tr>
148
+		        <th width='10%'>
149
+		            <label class="label" style="margin-top: 9px;text-align: center;">入仓时间(第一车)<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
150
+		        </th>
151
+		        <th width='20%'>
152
+		            <section>
153
+		                <label class="input">
154
+		                    <input type="text" ng-model="cerealsCard.rksj" name="rksj"
155
+		                           class="form-control Wdate" ng-readonly="true"
156
+		                           onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" required />
157
+		                </label>
158
+		            </section>
159
+		        </th>
160
+		        <th width='10%'>
161
+		            <label class="label" style="margin-top: 9px;text-align: center;">入库时间(最后一车)<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
162
+		        </th>
163
+		        <th width='20%'>
164
+		            <section>
165
+		                <label class="input">
166
+		                    <input type="text" ng-model="cerealsCard.zhycsj"
167
+		                           name="zhycsj" class="form-control Wdate" ng-readonly="true"
168
+		                           onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" required>
169
+		                </label>
170
+		            </section>
171
+		        </th>
172
+		        <th>
173
+		            <label class="label" style="margin-top: 9px;text-align: center;">储粮方式<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
174
+		        </th>
175
+		        <th style="border-right-width:1px">
176
+		            <section>
177
+		                <label class="select">
178
+		                    <select name="ccfsName" ng-model="cerealsCard.ccfsName" ng-disabled="isNotEdit" required>
179
+		                        <option value="">--请选择--</option>
180
+		                        <option value="散装储粮">散装储粮</option>
181
+		                        <option value="包装储粮">包装储粮</option>
182
+		                        <option value="围包散存">围包散存</option>
183
+		                        <option value="其他">其他</option>
184
+		                    </select><i></i>
185
+		                </label>
186
+		            </section>
187
+		        </th>
188
+		    </tr>
189
+		    <tr>
190
+		        <th>
191
+		            <label class="label" style="margin-top: 9px;text-align: center;">件数</label>
192
+		        </th>
193
+		        <th style="border-right-width:1px">
194
+		            <section>
195
+		                <label class="input">
196
+		                    <input type="text" ng-model="cerealsCard.js" name="js" class="form-control" ng-readonly="isNotEdit">
197
+		                </label>
198
+		            </section>
199
+		        </th>
200
+		        <th>
201
+		            <label class="label" style="margin-top: 9px;text-align: center;">包装规格(kg/件)</label>
202
+		        </th>
203
+		        <th>
204
+		            <section>
205
+		                <label class="input">
206
+		                    <input class="form-control" type="text" ng-model="cerealsCard.bzgg" name="bzgg" ng-readonly="isNotEdit" />
207
+		                </label>
208
+		            </section>
209
+		        </th>
210
+		        <th>
211
+		            <label class="label" style="margin-top: 9px;text-align: center;">保质期<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
212
+		        </th>
213
+		        <th>
214
+		            <section>
215
+		                <label class="input">
216
+		                    <input class="form-control" type="text" ng-model="cerealsCard.bzq" name="bzq" class="form-control Wdate" ng-disabled="isNotEdit"
217
+		                           onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd'})" required>
218
+		                </label>
219
+		            </section>
220
+		        </th>
221
+		    </tr>
222
+		    <tr>
223
+		        <th>
224
+		            <label class="label" style="margin-top: 9px;text-align: center;">厂家<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
225
+		        </th>
226
+		        <th style="border-right-width:1px">
227
+		            <section>
228
+		                <label class="input">
229
+		                    <input type="text" ng-model="cerealsCard.cj" name="cj" class="form-control" ng-readonly="isNotEdit" required />
230
+		                </label>
231
+		            </section>
232
+		        </th>
233
+		        <th>
234
+		            <label class="label" style="margin-top: 9px;text-align: center;">品牌<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
235
+		        </th>
236
+		        <th>
237
+		            <section>
238
+		                <label class="input">
239
+		                    <input class="form-control" type="text" ng-model="cerealsCard.pinp" name="pinp" ng-readonly="isNotEdit" required />
240
+		                </label>
241
+		            </section>
242
+		        </th>
243
+		        <th>
244
+		            <label class="label" style="margin-top: 9px;text-align: center;">建卡人<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
245
+		        </th>
246
+		        <th>
247
+		            <section>
248
+		                <label class="input">
249
+		                    <input class="form-control" type="text" ng-model="cerealsCard.jkr" name="jkr" ng-disabled="isNotEdit" required />
250
+		                </label>
251
+		            </section>
252
+		        </th>
253
+		    </tr>
254
+		    <tr>
255
+		        <th>
256
+		            <label class="label" style="margin-top: 9px;text-align: center;">建卡时间<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
257
+		        </th>
258
+		        <th style="border-right-width:1px">
259
+		            <section>
260
+		                <label class="input">
261
+		                    <input class="form-control Wdate" type="text" ng-model="cerealsCard.jkrq"
262
+		                           name="jkrq" onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" ng-disabled="true" required />
263
+		                </label>
264
+		            </section>
265
+		        </th>
266
+		        <th>
267
+		            <label class="label" style="margin-top: 9px;text-align: center;">备注</label>
268
+		        </th>
269
+		        <th colspan="3">
270
+		            <section>
271
+		                <label class="input">
272
+		                    <input class="form-control" type="text" ng-model="cerealsCard.remark" name="remark" maxlength="100" ng-readonly="isNotEdit" />
273
+		                </label>
274
+		            </section>
275
+		        </th>
276
+		    </tr>
155 277
 </table>
156
-<!--油罐-->
278
+<!--粮仓-->

+ 156 - 53
src/main/resources/static/app/storage/grainCard/views/productGrain-add-T.html

@@ -1,148 +1,251 @@
1 1
 <!--油罐-->
2
-<!--第一个tr开始 -->
3 2
 <table class="table table-striped table-bordered table-hover" width="100%">
4 3
     <tr>
5 4
         <th width='10%'>
6
-            <label class="label" style="margin-top: 9px;text-align: center;">仓房/油罐名称<span style="color: red;">*</span></label>
5
+            <label class="label" style="margin-top: 9px;text-align: center;">油罐名称<span style="color: red;">*</span></label>
7 6
         </th>
8 7
         <th width='20%'>
9 8
             <section>
10 9
                 <label class="select">
11 10
                     <select ng-model="cerealsCard.spareOne" name="spareOne"
12
-                            ng-disabled="isNotEdit"
13
-                            ng-options="store.storehouseId as store.storehouseName for store in tanklist"
14
-                            ng-change="loadWare(cerealsCard.spareOne)"
15
-                            required>
11
+                           ng-disabled="isNotEdit"
12
+                           ng-options="store.storehouseId as store.storehouseName for store in tanklist"
13
+                           ng-change="loadWare(cerealsCard.spareOne)"
14
+                           required>
16 15
                         <option value="">--请选择--</option>
17 16
                     </select><i></i>
18 17
                 </label>
19 18
             </section>
20 19
         </th>
21 20
         <th width='10%'>
22
-            <label class="label" style="margin-top: 9px;text-align: center;">油罐类型</label>
21
+            <label class="label" style="margin-top: 9px;text-align: center;">粮权所属</label>
23 22
         </th>
24 23
         <th width='20%'>
25 24
             <section>
25
+                <label class="select">
26
+                    <select ng-model="cerealsCard.lqss" name="lqss" ng-disabled="isNotEdit" required>
27
+                        <option value="">--请选择--</option>
28
+                        <option value="天津市人民政府">天津市人民政府</option>
29
+                        <option value="和平区人民政府">和平区人民政府</option>
30
+						<option value="河东区人民政府">河东区人民政府</option>
31
+						<option value="河西区人民政府">河西区人民政府</option>
32
+						<option value="南开区人民政府">南开区人民政府</option>
33
+						<option value="河北区人民政府">河北区人民政府</option>
34
+						<option value="红桥区人民政府">红桥区人民政府</option>
35
+						<option value="东丽区人民政府">东丽区人民政府</option>
36
+						<option value="西青区人民政府">西青区人民政府</option>
37
+						<option value="津南区人民政府">津南区人民政府</option>
38
+						<option value="北辰区人民政府">北辰区人民政府</option>
39
+						<option value="武清区人民政府">武清区人民政府</option>
40
+						<option value="宝坻区人民政府">宝坻区人民政府</option>
41
+						<option value="滨海新区人民政府">滨海新区人民政府</option>
42
+						<option value="宁河区人民政府">宁河区人民政府</option>
43
+						<option value="静海区人民政府">静海区人民政府</option>
44
+						<option value="蓟州区人民政府">蓟州区人民政府</option>
45
+                    </select><i></i>
46
+                 </label><i></i>
47
+             </section>
48
+        </th>
49
+        <th width='10%'>
50
+            <label class="label" style="margin-top: 9px;text-align: center;">粮油品种<span style="color: red;">*</span></label>
51
+        </th>
52
+        <th width='20%'>
53
+            <section>
54
+                <label class="select">
55
+                    <select ng-model="cerealsCard.lypzCode" name="lypzCode" ng-change="getsGrainDetailKind()" ng-disabled="true" required>
56
+						<option value="">--请选择--</option>
57
+						<option value="7038">小麦粉</option>
58
+						<option value="7051">混合小麦粉</option>
59
+						<option value="7052">压榨成品油</option>
60
+						<option value="7050">浸出成品油</option>
61
+						<option value="7107">大米及优质大米</option>
62
+					</select> <i></i>
63
+                </label>
64
+            </section>
65
+        </th>
66
+	 </tr>
67
+	 <tr>
68
+		 <th style="border-bottom-width:1px">
69
+             <label class="label" style="margin-top: 9px;text-align: center;">库存数量(吨)<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
70
+         </th>
71
+         <th style="border-bottom-width:1px">
72
+             <section>
26 73
                 <label class="input">
27
-                    <input type="text" ng-model="cerealsCard.storehouseTypeName"
28
-                           name="storehouseTypeName" class="form-control input1">
74
+                    <input type="text" ng-model="cerealsCard.lysl" ng-readonly="true"
75
+                           name="lysl" class="form-control" required />
76
+                </label>
77
+             </section>
78
+         </th>
79
+        <th width='10%'>
80
+            <label class="label" style="margin-top: 9px;text-align: center;">等级<span style="color: red;">*</span></label>
81
+        </th>
82
+        <th width='20%'>
83
+            <section>
84
+                <label class="select">
85
+                    <select ng-model="cerealsCard.lydjCode" name="lydjCode" ng-disabled="true" ng-disabled="true"
86
+                            ng-options="enum.enumid as enum.enumname for enum in dicDataList[1002]" required>
87
+                        <option value="">--请选择--</option>
88
+                    </select><i></i>
29 89
                 </label>
30 90
             </section>
31 91
         </th>
32 92
         <th>
33
-            <label class="label" style="margin-top: 9px;text-align: center;">建造日期</label>
93
+            <label class="label" style="margin-top: 9px;text-align: center;">生产日期<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
34 94
         </th>
35 95
         <th>
36 96
             <section>
37 97
                 <label class="input">
38
-                    <input type="text" ng-model="cerealsCard.buildDate"
39
-                           name="buildDate" class="form-control datepicker input1"
40
-                           data-smart-datepicker>
98
+                    <input type="text" ng-model="cerealsCard.scrq" name="scrq" class="form-control Wdate"
99
+                           onClick="WdatePicker({lang:'zh-cn'})" ng-readonly="isNotEdit" required />
41 100
                 </label>
42 101
             </section>
43 102
         </th>
44 103
     </tr>
45
-    <!--第一个tr结束 -->
46
-    <!--第二个tr开始 -->
47 104
     <tr>
48
-        <th style="border-bottom-width:1px">
49
-            <label class="label" style="margin-top: 9px;text-align: center;">油罐容量(吨)</label>
105
+        <th width='10%'>
106
+            <label class="label" style="margin-top: 9px;text-align: center;">入罐时间(第一车)<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
50 107
         </th>
51
-        <th style="border-bottom-width:1px">
108
+        <th width='20%'>
52 109
             <section>
53 110
                 <label class="input">
54
-                    <input type="text" ng-model="cerealsCard.wallName"
55
-                           name="wallName" class="form-control input1">
111
+                    <input type="text" ng-model="cerealsCard.rksj" name="rksj"
112
+                           class="form-control Wdate" ng-readonly="true"
113
+                           onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" required />
56 114
                 </label>
57 115
             </section>
58 116
         </th>
59
-        <th style="border-bottom-width:1px">
60
-            <label class="label" style="margin-top: 9px;text-align: center;">直径(m)</label>
117
+        <th width='10%'>
118
+            <label class="label" style="margin-top: 9px;text-align: center;">入罐时间(最后一车)<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
61 119
         </th>
62
-        <th style="border-bottom-width:1px">
120
+        <th width='20%'>
63 121
             <section>
64 122
                 <label class="input">
65
-                    <input type="text" ng-model="cerealsCard.outsideHeigth"
66
-                           name="outsideHeigth" class="form-control input1">
123
+                    <input type="text" ng-model="cerealsCard.zhycsj"
124
+                           name="zhycsj" class="form-control Wdate" ng-readonly="true"
125
+                           onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" required>
67 126
                 </label>
68 127
             </section>
69 128
         </th>
70 129
         <th>
71
-            <label class="label" style="margin-top: 9px;text-align: center;">高度(m)</label>
130
+            <label class="label" style="margin-top: 9px;text-align: center;">保质期<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
72 131
         </th>
73
-        <th style="border-right-width:1px">
132
+        <th>
74 133
             <section>
75 134
                 <label class="input">
76
-                    <input type="text" ng-model="cerealsCard.inLength"
77
-                           name="inLength" class="form-control input1">
135
+                    <input class="form-control" type="text" ng-model="cerealsCard.bzq" name="bzq" class="form-control Wdate" ng-disabled="isNotEdit"
136
+                           onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd'})" required>
78 137
                 </label>
79 138
             </section>
80 139
         </th>
81 140
     </tr>
82
-    <!--第二个tr结束 -->
83
-    <!--第三个tr开始 -->
84 141
     <tr>
85 142
         <th>
86
-            <label class="label" style="margin-top: 9px;text-align: center;">底面积(m²)</label>
143
+            <label class="label" style="margin-top: 9px;text-align: center;">实际储油高度<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
87 144
         </th>
88 145
         <th>
89 146
             <section>
90 147
                 <label class="input">
91
-                    <input class="form-control input1" type="text"
92
-                           ng-model="cerealsCard.inWidth" name="inWidth">
148
+                    <input class="form-control" type="text" ng-model="cerealsCard.sjcygd" name="sjcygd" class="form-control" checkSjcygd=true ng-readonly="isNotEdit" required />
93 149
                 </label>
94 150
             </section>
95 151
         </th>
96
-
97 152
         <th>
98
-            <label class="label" style="margin-top: 9px;text-align: center;">设计储油高度(m)</label>
153
+            <label class="label" style="margin-top: 9px;text-align: center;">业务类型:<span style="color: red;">*</span></label>
99 154
         </th>
100
-        <th>
155
+        <th width='20%'>
156
+	        <section>
157
+	            <label class="select">
158
+	                <select ng-model="cerealsCard.ywlx" name="ywlx" required ng-disabled="isNotEdit">
159
+	                    <option value="">--请选择--</option>
160
+	                    <option value="0">入库</option>
161
+	                    <option value="1">倒仓</option>
162
+	                    <option value="2">移库</option>
163
+	                </select><i></i>
164
+	            </label>
165
+	        </section>
166
+	    </th>
167
+        <th width='10%'>
168
+            <label class="label" style="margin-top: 9px;text-align: center;">油罐类型<span style="color: red;">*</span></label>
169
+        </th>
170
+        <th width='20%'>
101 171
             <section>
102 172
                 <label class="input">
103
-                    <input class="form-control input1" type="text"
104
-                           ng-model="cerealsCard.grainLineHeigth"
105
-                           name="grainLineHeigth">
173
+                    <input type="text" ng-model="cerealsCard.storehouseTypeName" name="storehouseTypeName" class="form-control input1" ng-readonly="true" required />
106 174
                 </label>
107 175
             </section>
108 176
         </th>
177
+    </tr>
178
+    <tr>
179
+        <th>
180
+	        <label class="label" style="margin-top: 9px;text-align: center;">储粮方式<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
181
+	    </th>
182
+	    <th style="border-right-width:1px">
183
+	        <section>
184
+	            <label class="select">
185
+	                <select name="ccfsName" ng-model="cerealsCard.ccfsName" ng-disabled="isNotEdit" required>
186
+	                    <option value="">--请选择--</option>
187
+	                    <option value="散装储粮">散装储粮</option>
188
+	                    <option value="包装储粮">包装储粮</option>
189
+	                    <option value="围包散存">围包散存</option>
190
+	                    <option value="其他">其他</option>
191
+	                </select><i></i>
192
+	            </label>
193
+	        </section>
194
+	    </th>
109 195
         <th>
110
-            <label class="label" style="margin-top: 9px;text-align: center;">出油口高度(m)</label>
196
+            <label class="label" style="margin-top: 9px;text-align: center;">厂家<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
111 197
         </th>
112 198
         <th style="border-right-width:1px">
113 199
             <section>
114 200
                 <label class="input">
115
-                    <input type="text" ng-model="cerealsCard.binVolume"
116
-                           name="binVolume" class="form-control input1">
201
+                    <input type="text" ng-model="cerealsCard.cj" name="cj" class="form-control" ng-readonly="isNotEdit" required />
202
+                </label>
203
+            </section>
204
+        </th>
205
+        <th>
206
+            <label class="label" style="margin-top: 9px;text-align: center;">品牌<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
207
+        </th>
208
+        <th>
209
+            <section>
210
+                <label class="input">
211
+                    <input class="form-control" type="text" ng-model="cerealsCard.pinp" name="pinp" ng-readonly="isNotEdit" required />
117 212
                 </label>
118 213
             </section>
119 214
         </th>
120 215
     </tr>
121
-    <!--第三个tr结束 -->
122 216
     <tr>
217
+        
218
+        <th>
219
+            <label class="label" style="margin-top: 9px;text-align: center;">建卡人<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
220
+        </th>
123 221
         <th>
124
-            <label class="label" style="margin-top: 9px;text-align: center;">检查口高度(m)</label>
222
+            <section>
223
+                <label class="input">
224
+                    <input class="form-control" type="text" ng-model="cerealsCard.jkr" name="jkr" ng-disabled="isNotEdit" required />
225
+                </label>
226
+            </section>
125 227
         </th>
126 228
         <th>
229
+            <label class="label" style="margin-top: 9px;text-align: center;">建卡时间<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
230
+        </th>
231
+        <th style="border-right-width:1px">
127 232
             <section>
128 233
                 <label class="input">
129
-                    <input class="form-control input1" type="text"
130
-                           ng-model="cerealsCard.spareFive" name="spareFive">
234
+                    <input class="form-control Wdate" type="text" ng-model="cerealsCard.jkrq"
235
+                           name="jkrq" onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" ng-disabled="true" required />
131 236
                 </label>
132 237
             </section>
133 238
         </th>
134 239
         <th>
135
-            <label class="label" style="margin-top: 9px;text-align: center;">保管员</label>
240
+            <label class="label" style="margin-top: 9px;text-align: center;">备注</label>
136 241
         </th>
137 242
         <th>
138 243
             <section>
139 244
                 <label class="input">
140
-                    <input class="form-control input1" type="text"
141
-                           ng-model="cerealsCard.storemanName" name="storemanName">
245
+                    <input class="form-control" type="text" ng-model="cerealsCard.remark" name="remark" maxlength="100" ng-readonly="isNotEdit" />
142 246
                 </label>
143 247
             </section>
144 248
         </th>
145
-        <th colspan="2"></th>
146
-        <th colspan="2"></th>
147 249
     </tr>
148
-</table>
250
+</table>
251
+<!--油罐-->

+ 6 - 213
src/main/resources/static/app/storage/grainCard/views/productGrain-add.html

@@ -23,222 +23,15 @@
23 23
                                     <!-- <span class="pull-right font-xs">带*的部分必须填写</span> -->
24 24
                                 </header>
25 25
                                 <fieldset>
26
-                                    <header>
27
-                                        <h3>
28
-                                            <strong>仓房基本信息</strong>
29
-                                        </h3>
30
-                                    </header>
31
-                                    <!--仓房-->
32
-                                    <div ng-include="'app/storage/grainCard/views/productGrain-add-G.html'" ng-hide="grainOrOil"></div>
33
-                                    <!--油罐-->
34
-                                    <div ng-include="'app/storage/grainCard/views/productGrain-add-T.html'" ng-hide="!grainOrOil"></div>
35
-                                    <header>
36
-                                        <h3>
37
-                                            <strong>储粮基本信息</strong>
38
-                                        </h3>
39
-                                    </header>
40
-                                    <table class="table table-striped table-bordered table-hover" width="100%">
41
-                                        <!--第一个tr开始 -->
42
-                                        <tr>
43
-                                            <th width='10%'>
44
-                                                <label class="label" style="margin-top: 9px;text-align: center;">粮油品种<span style="color: red;">*</span></label>
45
-                                            </th>
46
-                                            <th width='20%'>
47
-                                                <section>
48
-                                                    <label class="select">
49
-                                                        <select ng-model="cerealsCard.lypzCode" name="lypzCode" ng-change="getsGrainDetailKind()" ng-disabled="" required>
50
-															<option value="">--请选择--</option>
51
-															<option value="7038">小麦粉</option>
52
-															<option value="7051">混合小麦粉</option>
53
-															<option value="7052">压榨成品油</option>
54
-															<option value="7050">浸出成品油</option>
55
-															<option value="7107">大米及优质大米</option>
56
-														</select> <i></i>
57
-                                                    </label>
58
-                                                </section>
59
-                                            </th>
60
-                                            <th width='10%'>
61
-                                                <label class="label">明细品种</label>
62
-                                            </th>
63
-                                            <th width='20%'>
64
-                                                <label class="select" id="grainDetailKind-label">
65
-                                                    <multi-select-tree
66
-                                                            disabled-tree="true"
67
-                                                            data-input-model="grainDetailKindTreeData"
68
-                                                            data-output-model="cerealsCard.spareThree"
69
-                                                            data-default-label="--请选择--" name="spareThree"
70
-                                                            multi-select="false"
71
-                                                            select-only-leafs="true">
72
-                                                    </multi-select-tree>
73
-                                                    <em><span style="color: #D56161;margin-top:6px;padding:0 1px;font-style:normal;font-size:11px;line-height:15px;" id="grainDetailKind-error"></span></em>
74
-                                                </label>
75
-                                            </th>
76
-                                            <th width='10%'>
77
-                                                <label class="label" style="margin-top: 9px;text-align: center;">等级</label>
78
-                                            </th>
79
-                                            <th width='20%'>
80
-                                                <section>
81
-                                                    <label class="select">
82
-                                                        <select ng-model="cerealsCard.lydjCode" name="lydjCode" ng-disabled="true"
83
-                                                                ng-options="enum.enumid as enum.enumname for enum in dicDataList[1002]">
84
-                                                            <option value="">--请选择--</option>
85
-                                                        </select><i></i>
86
-                                                    </label>
87
-                                                </section>
88
-                                            </th>
89
-
90
-                                        </tr>
91
-                                        <!--第一个tr结束 -->
92
-                                        <!--第二个tr开始 -->
93
-                                        <tr>
94
-                                            <th width='10%'>
95
-                                                <label class="label" style="margin-top: 9px;text-align: center;">入仓时间(第一车)<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
96
-                                            </th>
97
-                                            <th width='20%'>
98
-                                                <section>
99
-                                                    <label class="input">
100
-                                                        <input type="text" ng-model="cerealsCard.rksj"
101
-                                                               name="rksj" class="form-control Wdate" ng-readonly="true"
102
-                                                               onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" required>
103
-                                                    </label>
104
-                                                </section>
105
-                                            </th>
106
-                                            <th width='10%'>
107
-                                                <label class="label" style="margin-top: 9px;text-align: center;">入库时间(最后一车)<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
108
-                                            </th>
109
-                                            <th width='20%'>
110
-                                                <section>
111
-                                                    <label class="input">
112
-                                                        <input type="text" ng-model="cerealsCard.zhycsj"
113
-                                                               name="zhycsj" class="form-control Wdate" ng-readonly="true"
114
-                                                               onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" required>
115
-                                                    </label>
116
-                                                </section>
117
-                                            </th>
118
-                                            <th>
119
-                                                <label class="label" style="margin-top: 9px;text-align: center;">生产日期<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
120
-                                            </th>
121
-                                            <th>
122
-                                                <section>
123
-                                                    <label class="input">
124
-                                                        <input type="text" ng-model="cerealsCard.scrq"
125
-                                                               name="scrq" class="form-control Wdate"
126
-                                                               onClick="WdatePicker({lang:'zh-cn'})" required>
127
-                                                    </label>
128
-                                                </section>
129
-                                            </th>
130
-                                        </tr>
131
-                                        <!--第二个tr结束 -->
132
-                                        <!--第三个tr开始 -->
133
-                                        <tr>
134
-                                            <th style="border-bottom-width:1px">
135
-                                                <label class="label" style="margin-top: 9px;text-align: center;">产地</label>
136
-                                            </th>
137
-                                            <th style="border-bottom-width:1px">
138
-                                                <section>
139
-                                                    <label class="select">
140
-                                                        <!--disabled-tree="isNotEdit"-->
141
-                                                        <multi-select-tree
142
-                                                                disabled-tree="true"
143
-                                                                data-input-model="grainProducingAreaTreeData"
144
-                                                                data-default-label="请选择" name="lycdCode"
145
-                                                                multi-select="false"
146
-                                                                select-only-leafs="true"
147
-                                                                data-output-model="cerealsCard.lycdCode"
148
-                                                                data-callback="selectOnly1Or2(item, selectedItems)">
149
-                                                        </multi-select-tree>
150
-                                                    </label>
151
-                                                </section>
152
-                                            </th>
153
-                                            <th style="border-bottom-width:1px">
154
-                                                <label class="label" style="margin-top: 9px;text-align: center;">数量(吨)<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
155
-                                            </th>
156
-                                            <th style="border-bottom-width:1px">
157
-                                                <section>
158
-                                                    <label class="input">
159
-                                                        <input type="text" ng-model="cerealsCard.lysl" ng-readonly="true"
160
-                                                               name="lysl" class="form-control" required>
161
-                                                    </label>
162
-                                                </section>
163
-                                            </th>
164
-                                            <th>
165
-                                                <label class="label" style="margin-top: 9px;text-align: center;">件数</label>
166
-                                            </th>
167
-                                            <th style="border-right-width:1px">
168
-                                                <section>
169
-                                                    <label class="input">
170
-                                                        <input type="text" ng-model="cerealsCard.js"
171
-                                                               name="js" class="form-control">
172
-                                                    </label>
173
-                                                </section>
174
-                                            </th>
175
-                                        </tr>
176
-                                        <!--第三个tr结束 -->
177
-                                        <tr>
178
-                                            <th>
179
-                                                <label class="label" style="margin-top: 9px;text-align: center;">包装规格</label>
180
-                                            </th>
181
-                                            <th>
182
-                                                <section>
183
-                                                    <label class="input">
184
-                                                        <input class="form-control" type="text" ng-model="cerealsCard.bzgg"
185
-                                                               name="bzgg">
186
-                                                    </label>
187
-                                                </section>
188
-                                            </th>
189
-                                            <th>
190
-                                                <label class="label" style="margin-top: 9px;text-align: center;">品牌(厂家)<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
191
-                                            </th>
192
-                                            <th>
193
-                                                <section>
194
-                                                    <label class="input">
195
-                                                        <input class="form-control" type="text" ng-model="cerealsCard.pinp"
196
-                                                               name="pinp" required />
197
-                                                    </label>
198
-                                                </section>
199
-                                            </th>
200
-                                            <th>
201
-                                                <label class="label" style="margin-top: 9px;text-align: center;">储存方式<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
202
-                                            </th>
203
-                                            <th style="border-right-width:1px">
204
-                                                <section>
205
-                                                    <label class="select">
206
-                                                        <select name="ccfsName" ng-model="cerealsCard.ccfsName" required>
207
-                                                            <option value="">--请选择--</option>
208
-                                                            <option value="包装垛存">包装垛存</option>
209
-                                                            <option value="散存">包装垛存</option>
210
-                                                            <option value="油罐">油罐</option>
211
-                                                        </select><i></i>
212
-                                                        <!--<select ng-model="cerealsCard.ccfsCode" name="ccfsCode"
213
-                                                                ng-options="enum.enumid as enum.enumname for enum in dicDataList[5411]">
214
-                                                            <option value="">&#45;&#45;请选择&#45;&#45;</option>
215
-                                                        </select><i></i>-->
216
-                                                    </label>
217
-                                                </section>
218
-                                            </th>
219
-                                        </tr>
220
-                                        <tr>
221
-                                        	<th>
222
-                                                <label class="label" style="margin-top: 9px;text-align: center;">建卡时间</label>
223
-                                            </th>
224
-                                            <th>
225
-                                                <section>
226
-                                                    <label class="input">
227
-                                                        <input class="form-control Wdate" type="text" ng-model="cerealsCard.jkrq"
228
-                                                               name="jkrq" onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})">
229
-                                                    </label>
230
-                                                </section>
231
-                                            </th>
232
-                                            <th></th>
233
-                                            <th></th>
234
-                                            <th></th>
235
-                                            <th></th>
236
-                                        </tr>
237
-                                    </table>
26
+									<!-- 仓房 -->
27
+                                	<div ng-include="'app/storage/grainCard/views/productGrain-add-G.html'" ng-hide="type=='1'"></div>
28
+									<!-- 油罐 -->
29
+                                    <div ng-include="'app/storage/grainCard/views/productGrain-add-T.html'" ng-hide="type=='0'"></div>
238 30
                                     <div>
239 31
                                         <footer class="text-align-center">
240 32
                                             <button type="button" class="btn btn-default" ng-click="retList()">取消</button>
241
-                                            <button type="button" class="btn btn-primary" ng-click="save()">保存</button>
33
+                                            <button type="button" class="btn btn-primary" ng-click="save(0)">保存</button>
34
+                                            <button type="button" class="btn btn-primary" ng-click="save(1)">提交</button>
242 35
                                         </footer>
243 36
                                     </div>
244 37
                                 </fieldset>

+ 179 - 50
src/main/resources/static/app/storage/grainCard/views/productGrain-check-G.html

@@ -2,82 +2,211 @@
2 2
 
3 3
     <tbody>
4 4
     <tr>
5
-        <td style="vertical-align: middle;text-align: center;" colspan="2" height="56px">仓房基本信息</td>
6
-        <td style="vertical-align: middle;text-align: center;" colspan="4">储粮基本信息</td>
5
+        <td class="text-center" style="font-size: large;vertical-align: middle;text-align: center;" colspan="8">粮仓设计说明</td>
7 6
     </tr>
8 7
     <tr>
9
-        <td style="vertical-align: middle;text-align: center;" height="56px">仓房名称</td>
8
+        <td style="vertical-align: middle;text-align: center;" >仓房名称</td>
10 9
         <td style="vertical-align: middle;text-align: center;">{{cerealsCard.storehouseName}}</td>
11
-        <td style="vertical-align: middle;text-align: center;">粮油品种</td>
12
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.lypzName}}</td>
13
-        <td colspan="2" style="vertical-align: middle;text-align: center;">保管员</td>
10
+        <td style="vertical-align: middle;text-align: center;" >使用单位</td>
11
+        <td style="vertical-align: middle;text-align: center;">{{orgInfo.orgName}}</td>
12
+        <td style="vertical-align: middle;text-align: center;" >设计单位</td>
13
+        <td style="vertical-align: middle;text-align: center;">{{storehouseObj[cerealsCard.spareOne].sjdw}}</td>
14
+        <td style="vertical-align: middle;text-align: center;"  colspan="2">保管员</td>
14 15
     </tr>
15 16
     <tr>
16
-        <td style="vertical-align: middle;text-align: center;" height="56px">货位名称</td>
17
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.warehouseName}}</td>
18
-        <td style="vertical-align: middle;text-align: center;">等级</td>
19
-        <td style="vertical-align: middle;text-align: center;">{{dicData[cerealsCard.lydjCode]}}</td>
20
-        <td rowspan="5" style="vertical-align: middle;text-align: center;" colspan="2">
21
-            <div
22
-                    style="width:200px;height:200px;background:rgb(0, 140, 255);margin: auto;;line-height:200px;">
23
-                <!--<img src="styles/img/avatars/1.png">-->
24
-                <img style="width:200px;height:200px;" src="{{cerealsCard.imageUrl}}">
17
+        <td class="text-center" style="vertical-align: middle;text-align: center;" >仓房类型</td>
18
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[storehouseObj[cerealsCard.spareOne].storehouseType]}}</td>
19
+        <td class="text-center" style="vertical-align: middle;text-align: center;" >仓房结构</td>
20
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[storehouseObj[cerealsCard.spareOne].wall]}}</td>
21
+        <td class="text-center" style="vertical-align: middle;text-align: center;" >建设年度</td>
22
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{storehouseObj[cerealsCard.spareOne].usedate}}</td>
23
+        <td rowspan="7" class="text-center" colspan="2" style="border: 1px solid #ccc;padding:0" >
24
+            <div style="width:180px;height:240px;background:rgb(0, 140, 255);margin: auto;;line-height:150px;">
25
+                <img style="width:180px;height:240px;" src="{{cerealsCard.bgyurl}}">
25 26
             </div>
26 27
         </td>
27 28
     </tr>
28 29
     <tr>
29
-        <td style="vertical-align: middle;text-align: center;" height="56px">仓房类型</td>
30
-        <td style="vertical-align: middle;text-align: center;">{{dicData[cerealsCard.storehouseType]}}</td>
31
-        <td style="vertical-align: middle;text-align: center;">入仓时间(第一车)</td>
32
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.rksj}}</td>
30
+        <td class="text-center" style="vertical-align: middle;text-align: center;">储粮品种</td>
31
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{cerealsCard.lypzName}}</td>
32
+        <td class="text-center" style="vertical-align: middle;text-align: center;">储粮方式</td>
33
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{cerealsCard.ccfsName}}</td>
34
+        <td class="text-center" style="vertical-align: middle;text-align: center;">使用年限</td>
35
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{storehouseObj[cerealsCard.spareOne].sjsynx}}</td>
33 36
     </tr>
34 37
     <tr>
35
-        <td style="vertical-align: middle;text-align: center;" height="56px">入库时间(最后一车)</td>
36
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.zhycsj}}</td>
37
-        <td style="vertical-align: middle;text-align: center;" height="56px">建设年份</td>
38
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.buildDate}}</td>
38
+        <td class="text-center" style="vertical-align: middle;text-align: center;">内檐高度(米)</td>
39
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{storehouseObj[cerealsCard.spareOne].heigth}}</td>
40
+        <td class="text-center" style="vertical-align: middle;text-align: center;">内仓长(直径,米)</td>
41
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{storehouseObj[cerealsCard.spareOne].length}}</td>
42
+        <td class="text-center" style="vertical-align: middle;text-align: center;">内仓宽(米)</td>
43
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{storehouseObj[cerealsCard.spareOne].width}}</td>
39 44
     </tr>
40 45
     <tr>
41
-        <td style="vertical-align: middle;text-align: center;">生产日期</td>
42
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.scrq}}</td>
43
-        <td style="vertical-align: middle;text-align: center;" height="56px">仓房结构</td>
44
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.wallName}}</td>
46
+        <td class="text-center" style="vertical-align: middle;text-align: center;">设计装粮线高度(米)</td>
47
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{storehouseObj[cerealsCard.spareOne].grainLineHeigth}}</td>
48
+        <td class="text-center" style="vertical-align: middle;text-align: center;">设计仓容(吨)</td>
49
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{storehouseObj[cerealsCard.spareOne].designCapacity}}</td>
50
+        <td class="text-center" style="vertical-align: middle;text-align: center;">核定仓容(吨)</td>
51
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{storehouseObj[cerealsCard.spareOne].actualCapacity}}</td>
45 52
     </tr>
46 53
     <tr>
47
-        <td style="vertical-align: middle;text-align: center;">产地</td>
48
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.lycdName}}</td>
49
-        <td style="vertical-align: middle;text-align: center;" height="56px">外檐高度(米)</td>
50
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.outsideHeigth}}</td>
54
+        <td class="text-center" style="font-size: large;vertical-align: middle;padding-left: 26%;" colspan="6">储粮基本信息</td>
51 55
     </tr>
52 56
     <tr>
53
-        <td style="vertical-align: middle;text-align: center;">数量(吨)</td>
54
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.lysl}}</td>
55
-        <td style="vertical-align: middle;text-align: center;" height="56px">仓内长(直径,米)</td>
56
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.inLength}}</td>
57
-        <td rowspan="2" colspan="2" style="vertical-align: middle;text-align: center">{{cerealsCard.storemanName}}</td>
57
+        <td class="text-center" style="vertical-align: middle;text-align: center;" >货位名称</td>
58
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{cerealsCard.warehouseName}}</td>
59
+        <td class="text-center" style="vertical-align: middle;text-align: center;">粮权所属</td>
60
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{cerealsCard.lqss}}</td>
61
+        <td class="text-center" style="vertical-align: middle;text-align: center;">粮油品种</td>
62
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{cerealsCard.lypzName}}</td>
63
+    </tr>
64
+    <tr>
65
+        <td class="text-center" style="vertical-align: middle;text-align: center;" >库存数量(吨)</td>
66
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{cerealsCard.lysl}}</td>
67
+        <td class="text-center" style="vertical-align: middle;text-align: center;">包数</td>
68
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{cerealsCard.js}}</td>
69
+        <td class="text-center" style="vertical-align: middle;text-align: center;">生产日期</td>
70
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{cerealsCard.scrq}}</td>
71
+    </tr>
72
+    <tr>
73
+        <td class="text-center" style="vertical-align: middle;text-align: center;" >入仓年度</td>
74
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{cerealsCard.rksj.toString().substring(0,4)}}</td>
75
+        <td class="text-center" style="vertical-align: middle;text-align: center;">品牌</td>
76
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{cerealsCard.pinp}}</td>
77
+        <td style="vertical-align: middle;text-align: center;">入仓时间(第一车)</td>
78
+        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.rksj}}</td>
79
+        <td style="vertical-align: middle;text-align: center;" colspan="2">{{storehouseObj[cerealsCard.spareOne].dutystoreman}}</td>
58 80
     </tr>
59 81
     <tr>
60
-        <td style="vertical-align: middle;text-align: center;">包数</td>
61
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.js}}</td>
62
-        <td style="vertical-align: middle;text-align: center;" height="56px">仓内宽(米)</td>
63
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.inWidth}}</td>
82
+        <td style="vertical-align: middle;text-align: center;" >入库时间(最后一车)</td>
83
+        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.zhycsj}}</td>
84
+        <td style="vertical-align: middle;text-align: center;">等级/类别</td>
85
+        <td style="vertical-align: middle;text-align: center;">{{dicData[cerealsCard.lydjCode]}}</td>
86
+        <td style="vertical-align: middle;text-align: center;">业务类型</td>
87
+        <td style="vertical-align: middle;text-align: center;">
88
+            <div>
89
+                <div ng-if="cerealsCard.ywlx==2">移库</div>
90
+                <div ng-if="cerealsCard.ywlx==0">入库</div>
91
+                <div ng-if="cerealsCard.ywlx==1">倒仓</div>
92
+            </div>
93
+        </td>
94
+        <td style="vertical-align: middle;text-align: center;">产地</td>
95
+        <td style="vertical-align: middle;text-align: center;">{{dicData[cd]}}</td>
64 96
     </tr>
65 97
     <tr>
66
-        <td style="vertical-align: middle;text-align: center;">包装规格</td>
98
+        <td style="vertical-align: middle;text-align: center;" >国别</td>
99
+        <td style="vertical-align: middle;text-align: center;">中国</td>
100
+        <td style="vertical-align: middle;text-align: center;">粮油性质</td>
101
+        <td style="vertical-align: middle;text-align: center;">{{dicData[lyxz]}}</td>
102
+        <td style="vertical-align: middle;text-align: center;">包装规格(kg/件)</td>
67 103
         <td style="vertical-align: middle;text-align: center;">{{cerealsCard.bzgg}}</td>
68
-        <td style="vertical-align: middle;text-align: center;" height="56px">设计装粮线高度(米)</td>
69
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.grainLineHeigth}}</td>
70
-        <td style="vertical-align: middle;text-align: center;">品牌</td>
71
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.pinp}}</td>
104
+        <td style="vertical-align: middle;text-align: center;" >保质期</td>
105
+        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.bzq}}</td>
72 106
     </tr>
107
+    
73 108
     <tr>
74
-        <td style="vertical-align: middle;text-align: center;" height="56px">使用面积(平方米)</td>
75
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.binVolume}}</td>
76 109
         <td style="vertical-align: middle;text-align: center;">储存方式</td>
77 110
         <td style="vertical-align: middle;text-align: center;">{{cerealsCard.ccfsName}}</td>
78
-        <td style="vertical-align: middle;text-align: center;" colspan="2"></td>
111
+        <td style="vertical-align: middle;text-align: center;" >管理方式</td>
112
+        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.orgId == 76 ? "直储" : "代储"}}</td>
113
+        <td style="vertical-align: middle;text-align: center;">厂家</td>
114
+        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.cj}}</td>
115
+        <td style="vertical-align: middle;text-align: center;">货位状态</td>
116
+        <td style="vertical-align: middle;text-align: center;">封仓</td>
79 117
     </tr>
80
-
81 118
     </tbody>
82
-
119
+</table>
120
+<!-- 大米 -->
121
+<table ng-show="cerealsCard.lypzCode=='7107' && cerealsCard.sfgd == 1" class="table table-striped table-bordered table-hover" width="100%" border="1" bordercolor="#999999" style="table-layout: fixed;border-style:solid;border-collapse:collapse;">
122
+    <tbody>
123
+    <tr>
124
+        <td class="text-center" style="font-size: large;vertical-align: middle;text-align: center;" colspan="10">质检信息</td>
125
+    </tr>
126
+    <tr>
127
+        <td style="vertical-align: middle;text-align: center;">加工精度</td>
128
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.storehouseName}}</td>
129
+        <td style="vertical-align: middle;text-align: center;">碎米(总量)%</td>
130
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.brokenriceTotal}}</td>
131
+        <td style="vertical-align: middle;text-align: center;">小碎米含量</td>
132
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.brokenriceSmall}}</td>
133
+        <td style="vertical-align: middle;text-align: center;">不完善粒(总量)</td>
134
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.imperfectgrainsTotal}}</td>
135
+        <td style="vertical-align: middle;text-align: center;">杂质(总量)</td>
136
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.impurityTotal}}</td>
137
+    </tr>
138
+    <tr>
139
+        <td style="vertical-align: middle;text-align: center;">无机杂质</td>
140
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.impurityInorganic}}</td>
141
+        <td style="vertical-align: middle;text-align: center;">水分%</td>
142
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.water}}</td>
143
+        <td style="vertical-align: middle;text-align: center;">黄米粒</td>
144
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.yellowRice}}</td>
145
+        <td style="vertical-align: middle;text-align: center;">互混率%</td>
146
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.intermixingRate}}</td>
147
+        <td style="vertical-align: middle;text-align: center;">色泽、气味</td>
148
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.colorSmell}}</td>
149
+    </tr>
150
+</table>
151
+<!-- 小麦粉 -->
152
+<table ng-show="cerealsCard.lypzCode==7038 && cerealsCard.sfgd == 1" class="table table-striped table-bordered table-hover" width="100%" border="1" bordercolor="#999999" style="table-layout: fixed;border-style:solid;border-collapse:collapse;">
153
+    <tbody>
154
+    <tr>
155
+        <td class="text-center" style="font-size: large;vertical-align: middle;text-align: center;" colspan="10">质检信息</td>
156
+    </tr>
157
+    <tr>
158
+        <td style="vertical-align: middle;text-align: center;">水分%</td>
159
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.water}}</td>
160
+        <td style="vertical-align: middle;text-align: center;">加工精度</td>
161
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.machiningaccuracy}}</td>
162
+        <td style="vertical-align: middle;text-align: center;">灰分%(以干物计)</td>
163
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.ashContent}}</td>
164
+        <td style="vertical-align: middle;text-align: center;">湿面筋含量/%</td>
165
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.gluten}}</td>
166
+        <td style="vertical-align: middle;text-align: center;">含砂量%</td>
167
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.siltContent}}</td>
168
+    </tr>
169
+    <tr>
170
+        <td style="vertical-align: middle;text-align: center;">磁性金属物g/kg</td>
171
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.magneticMetal}}</td>
172
+        <td style="vertical-align: middle;text-align: center;">脂肪酸值(以湿基计)</td>
173
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.fatIndex}}</td>
174
+        <td style="vertical-align: middle;text-align: center;">气味、口味</td>
175
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.smelltaste}}</td>
176
+        <td style="vertical-align: middle;text-align: center;">外观形态</td>
177
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.wgxt}}</td>
178
+        <td style="vertical-align: middle;text-align: center;"></td>
179
+        <td style="vertical-align: middle;text-align: center;"></td>
180
+    </tr>
181
+</table>
182
+<!-- 成品油 -->
183
+<table ng-show="(cerealsCard.lypzCode==7050 || cerealsCard.lypzCode==7052) && cerealsCard.sfgd == 1" class="table table-striped table-bordered table-hover" width="100%" border="1" bordercolor="#999999" style="table-layout: fixed;border-style:solid;border-collapse:collapse;">
184
+    <tbody>
185
+    <tr>
186
+        <td class="text-center" style="font-size: large;vertical-align: middle;text-align: center;" colspan="10">质检信息</td>
187
+    </tr>
188
+    <tr>
189
+        <td style="vertical-align: middle;text-align: center;">气味、滋味</td>
190
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.smelltaste}}</td>
191
+        <td style="vertical-align: middle;text-align: center;">透明度</td>
192
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.transparency}}</td>
193
+        <td style="vertical-align: middle;text-align: center;">水分及挥发物含量</td>
194
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.waterVolatiles}}</td>
195
+        <td style="vertical-align: middle;text-align: center;">不溶性杂质含量</td>
196
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.insolubleImpurity}}</td>
197
+        <td style="vertical-align: middle;text-align: center;">酸价</td>
198
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.acidValue}}</td>
199
+    </tr>
200
+    <tr>
201
+        <td style="vertical-align: middle;text-align: center;">过氧化值</td>
202
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.peroxideValue}}</td>
203
+        <td style="vertical-align: middle;text-align: center;">烟点</td>
204
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.smokePoint}}</td>
205
+        <td style="vertical-align: middle;text-align: center;">冷冻试验</td>
206
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.reezeTest}}</td>
207
+        <td style="vertical-align: middle;text-align: center;">溶剂残留量</td>
208
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.residualSolvent}}</td>
209
+        <td style="vertical-align: middle;text-align: center;"></td>
210
+        <td style="vertical-align: middle;text-align: center;"></td>
211
+    </tr>
83 212
 </table>

+ 179 - 49
src/main/resources/static/app/storage/grainCard/views/productGrain-check-T.html

@@ -1,80 +1,210 @@
1
-<table class="table table-striped table-bordered table-hover" width="100%" border="1" bordercolor="#999999"
2
-       style="table-layout: fixed;border-style:solid;border-collapse:collapse;">
1
+<table class="table table-striped table-bordered table-hover" width="100%" border="1" bordercolor="#999999" style="table-layout: fixed;border-style:solid;border-collapse:collapse;">
3 2
 
4 3
     <tbody>
5 4
     <tr>
6
-        <td style="vertical-align: middle;text-align: center;" colspan="2" height="56px">油罐基本信息</td>
7
-        <td style="vertical-align: middle;text-align: center;" colspan="4">储油基本信息</td>
5
+        <td class="text-center" style="font-size: large;vertical-align: middle;text-align: center;" colspan="8">油罐设计说明</td>
8 6
     </tr>
9 7
     <tr>
10 8
         <td style="vertical-align: middle;text-align: center;" height="56px">油罐名称</td>
11 9
         <td style="vertical-align: middle;text-align: center;">{{cerealsCard.storehouseName}}</td>
12
-        <td style="vertical-align: middle;text-align: center;">粮油品种</td>
13
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.lypzName}}</td>
14
-        <td colspan="2" style="vertical-align: middle;text-align: center;">保管员</td>
10
+        <td style="vertical-align: middle;text-align: center;" height="56px">使用单位</td>
11
+        <td style="vertical-align: middle;text-align: center;">{{orgInfo.orgName}}</td>
12
+        <td style="vertical-align: middle;text-align: center;" height="56px">设计单位</td>
13
+        <td style="vertical-align: middle;text-align: center;">{{tankObj[cerealsCard.spareOne].sjdw}}</td>
14
+        <td style="vertical-align: middle;text-align: center;" height="56px" colspan="2">保管员</td>
15 15
     </tr>
16 16
     <tr>
17
-        <td style="vertical-align: middle;text-align: center;" height="56px">油罐类型</td>
18
-        <td style="vertical-align: middle;text-align: center;">{{dicData[cerealsCard.storehouseType]}}</td>
19
-        <td style="vertical-align: middle;text-align: center;">等级</td>
20
-        <td style="vertical-align: middle;text-align: center;">{{dicData[cerealsCard.lydjCode]}}</td>
21
-        <td rowspan="5" style="vertical-align: middle;text-align: center;" colspan="2">
22
-            <div style="width:200px;height:200px;background:rgb(0, 140, 255);margin: auto;;line-height:200px;">
23
-                <!--<img src="styles/img/avatars/1.png">-->
24
-                <img style="width:200px;height:200px;" src="{{cerealsCard.imageUrl}}">
17
+        <td class="text-center" style="vertical-align: middle;text-align: center;" >油罐类型</td>
18
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[tankObj[cerealsCard.spareOne].tankType]}}</td>
19
+        <td class="text-center" style="vertical-align: middle;text-align: center;" >建设年度</td>
20
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{tankObj[cerealsCard.spareOne].builddate.toString().substring(0,4)}}</td>
21
+        <td class="text-center" style="vertical-align: middle;text-align: center;" >油罐容量</td>
22
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{tankObj[cerealsCard.spareOne].tankCapacity}}</td>
23
+        <td rowspan="7" class="text-center" colspan="2" style="border: 1px solid #ccc;padding:0" >
24
+            <div style="width:180px;height:240px;background:rgb(0, 140, 255);margin: auto;;line-height:150px;">
25
+                <img style="width:180px;height:240px;" src="{{cerealsCard.bgyurl}}">
25 26
             </div>
26 27
         </td>
27 28
     </tr>
28 29
     <tr>
29
-        <td style="vertical-align: middle;text-align: center;" height="56px">油罐容量(吨)</td>
30
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.wallName}}</td>
31
-        <td style="vertical-align: middle;text-align: center;">入库时间</td>
32
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.rksj}}</td>
30
+        <td class="text-center" style="vertical-align: middle;text-align: center;">直径(米)</td>
31
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{tankObj[cerealsCard.spareOne].diameter}}</td>
32
+        <td class="text-center" style="vertical-align: middle;text-align: center;">储粮品种</td>
33
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{cerealsCard.lypzName}}</td>
34
+        <td class="text-center" style="vertical-align: middle;text-align: center;">储粮方式</td>
35
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{cerealsCard.ccfsName}}</td>
33 36
     </tr>
34
-
35
-
36 37
     <tr>
37
-        <td style="vertical-align: middle;text-align: center;" height="56px">直径(米)</td>
38
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.outsideHeigth}}</td>
39
-        <td style="vertical-align: middle;text-align: center;">生产日期</td>
40
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.scrq}}</td>
38
+        <td class="text-center" style="vertical-align: middle;text-align: center;">使用年限</td>
39
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{tankObj[cerealsCard.spareOne].synx}}</td>
40
+        <td class="text-center" style="vertical-align: middle;text-align: center;">高度(米)</td>
41
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{tankObj[cerealsCard.spareOne].height}}</td>
42
+        <td class="text-center" style="vertical-align: middle;text-align: center;">底面积(平方米)</td>
43
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{tankObj[cerealsCard.spareOne].bottomArea}}</td>
41 44
     </tr>
42 45
     <tr>
43
-        <td style="vertical-align: middle;text-align: center;" height="56px">高度(米)</td>
44
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.inLength}}</td>
45
-
46
-        <td style="vertical-align: middle;text-align: center;">产地</td>
47
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.lycdName}}</td>
46
+        <td class="text-center" style="vertical-align: middle;text-align: center;">设计储油高度(米)</td>
47
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{tankObj[cerealsCard.spareOne].designHeight}}</td>
48
+        <td class="text-center" style="vertical-align: middle;text-align: center;">出油口高度(米)</td>
49
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{tankObj[cerealsCard.spareOne].oilHeight}}</td>
50
+        <td class="text-center" style="vertical-align: middle;text-align: center;">检查口高度(米)</td>
51
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{tankObj[cerealsCard.spareOne].insportHeight}}</td>
52
+    </tr>
53
+    <tr>
54
+        <td class="text-center" style="font-size: large;vertical-align: middle;padding-left: 26%;" colspan="6">储油基本信息</td>
55
+    </tr>
56
+    <tr>
57
+        <td class="text-center" style="vertical-align: middle;text-align: center;">粮油品种</td>
58
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{cerealsCard.lypzName}}</td>
59
+        <td class="text-center" style="vertical-align: middle;text-align: center;">粮权所属</td>
60
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{cerealsCard.lqss}}</td>
61
+        <td class="text-center" style="vertical-align: middle;text-align: center;" >库存数量(吨)</td>
62
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{cerealsCard.lysl}}</td>
48 63
     </tr>
49 64
     <tr>
50
-        <td style="vertical-align: middle;text-align: center;" height="56px">底面积(平方米)</td>
51
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.inWidth}}</td>
52
-        <td style="vertical-align: middle;text-align: center;">数量(吨)</td>
53
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.lysl}}</td>
65
+        <td style="vertical-align: middle;text-align: center;">等级</td>
66
+        <td style="vertical-align: middle;text-align: center;">{{dicData[cerealsCard.lydjCode]}}</td>
67
+        <td style="vertical-align: middle;text-align: center;">粮油性质</td>
68
+        <td style="vertical-align: middle;text-align: center;">{{dicData[lyxz]}}</td>
69
+        <td class="text-center" style="vertical-align: middle;text-align: center;" >入罐年度</td>
70
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{cerealsCard.rksj.toString().substring(0,4)}}</td>
71
+    </tr>
72
+    <tr>
73
+        <td class="text-center" style="vertical-align: middle;text-align: center;">生产日期</td>
74
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{cerealsCard.scrq}}</td>
75
+        <td class="text-center" style="vertical-align: middle;text-align: center;">品牌</td>
76
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{cerealsCard.pinp}}</td>
77
+        <td style="vertical-align: middle;text-align: center;">入仓时间(第一车)</td>
78
+        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.rksj}}</td>
79
+        <td style="vertical-align: middle;text-align: center;" colspan="2">{{tankObj[cerealsCard.spareOne].keeperNames}}</td>
54 80
     </tr>
55 81
     <tr>
56
-        <td style="vertical-align: middle;text-align: center;" height="56px">设计储油高度(米)</td>
57
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.grainLineHeigth}}</td>
58
-        <td style="vertical-align: middle;text-align: center;">品牌</td>
59
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.pinp}}</td>
60
-        <td rowspan="4" colspan="2" style="vertical-align: middle;text-align: center" class="ng-binding">{{cerealsCard.storemanName}}</td>
82
+        <td class="text-center" style="vertical-align: middle;text-align: center;">入库时间(最后一车)</td>
83
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{cerealsCard.zhycsj}}</td>
84
+        <td class="text-center" style="vertical-align: middle;text-align: center;">保质期</td>
85
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{cerealsCard.bzq}}</td>
86
+        <td class="text-center" style="vertical-align: middle;text-align: center;">产地</td>
87
+        <td class="text-center" style="vertical-align: middle;text-align: center;">{{dicData[cd]}}</td>
61 88
     </tr>
62 89
     <tr>
63
-        <td style="vertical-align: middle;text-align: center;" height="56px">出油口高度(米)</td>
64
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.binVolume}}</td>
90
+        <td style="vertical-align: middle;text-align: center;">业务类型</td>
91
+        <td style="vertical-align: middle;text-align: center;">
92
+            <div>
93
+                <div ng-if="cerealsCard.ywlx==2">移库</div>
94
+                <div ng-if="cerealsCard.ywlx==0">入库</div>
95
+                <div ng-if="cerealsCard.ywlx==1">倒仓</div>
96
+            </div>
97
+        </td>
98
+        <td style="vertical-align: middle;text-align: center;">管理方式</td>
99
+        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.orgId == 76 ? "直储" : "代储"}}</td>
65 100
         <td style="vertical-align: middle;text-align: center;">储存方式</td>
66 101
         <td style="vertical-align: middle;text-align: center;">{{cerealsCard.ccfsName}}</td>
102
+        <td style="vertical-align: middle;text-align: center;">国别</td>
103
+        <td style="vertical-align: middle;text-align: center;">中国</td>
67 104
     </tr>
105
+    
68 106
     <tr>
69
-        <td style="vertical-align: middle;text-align: center;" height="56px">检查口高度(米)</td>
70
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.spareFive}}</td>
71
-        <td style="vertical-align: middle;text-align: center;" colspan="2"></td>
107
+        <td style="vertical-align: middle;text-align: center;">实际储油高度(米)</td>
108
+        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.sjcygd}}</td>
109
+        <td class="text-center" style="vertical-align: middle;text-align: center;">收储地点</td>
110
+        <td class="text-center" style="vertical-align: middle;text-align: center;">库内</td>
111
+        <td style="vertical-align: middle;text-align: center;">厂家</td>
112
+        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.cj}}</td>
113
+        <td class="text-center" style="vertical-align: middle;text-align: center;">油罐状态</td>
114
+        <td class="text-center" style="vertical-align: middle;text-align: center;">封仓</td>
72 115
     </tr>
116
+    </tbody>
117
+</table>
118
+<!-- 大米 -->
119
+<table ng-show="cerealsCard.lypzCode=='7107' && cerealsCard.sfgd == 1" class="table table-striped table-bordered table-hover" width="100%" border="1" bordercolor="#999999" style="table-layout: fixed;border-style:solid;border-collapse:collapse;">
120
+    <tbody>
73 121
     <tr>
74
-        <td style="vertical-align: middle;text-align: center;" height="56px">建造日期</td>
75
-        <td style="vertical-align: middle;text-align: center;">{{cerealsCard.buildDate}}</td>
76
-        <td style="vertical-align: middle;text-align: center;" colspan="2"></td>
122
+        <td class="text-center" style="font-size: large;vertical-align: middle;text-align: center;" colspan="10">质检信息</td>
123
+    </tr>
124
+    <tr>
125
+        <td style="vertical-align: middle;text-align: center;">加工精度</td>
126
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.storehouseName}}</td>
127
+        <td style="vertical-align: middle;text-align: center;">碎米(总量)%</td>
128
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.brokenriceTotal}}</td>
129
+        <td style="vertical-align: middle;text-align: center;">小碎米含量</td>
130
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.brokenriceSmall}}</td>
131
+        <td style="vertical-align: middle;text-align: center;">不完善粒(总量)</td>
132
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.imperfectgrainsTotal}}</td>
133
+        <td style="vertical-align: middle;text-align: center;">杂质(总量)</td>
134
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.impurityTotal}}</td>
135
+    </tr>
136
+    <tr>
137
+        <td style="vertical-align: middle;text-align: center;">无机杂质</td>
138
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.impurityInorganic}}</td>
139
+        <td style="vertical-align: middle;text-align: center;">水分%</td>
140
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.water}}</td>
141
+        <td style="vertical-align: middle;text-align: center;">黄米粒</td>
142
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.yellowRice}}</td>
143
+        <td style="vertical-align: middle;text-align: center;">互混率%</td>
144
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.intermixingRate}}</td>
145
+        <td style="vertical-align: middle;text-align: center;">色泽、气味</td>
146
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.colorSmell}}</td>
147
+    </tr>
148
+</table>
149
+<!-- 小麦粉 -->
150
+<table ng-show="cerealsCard.lypzCode==7038 && cerealsCard.sfgd == 1" class="table table-striped table-bordered table-hover" width="100%" border="1" bordercolor="#999999" style="table-layout: fixed;border-style:solid;border-collapse:collapse;">
151
+    <tbody>
152
+    <tr>
153
+        <td class="text-center" style="font-size: large;vertical-align: middle;text-align: center;" colspan="10">质检信息</td>
154
+    </tr>
155
+    <tr>
156
+        <td style="vertical-align: middle;text-align: center;">水分%</td>
157
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.water}}</td>
158
+        <td style="vertical-align: middle;text-align: center;">加工精度</td>
159
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.machiningaccuracy}}</td>
160
+        <td style="vertical-align: middle;text-align: center;">灰分%(以干物计)</td>
161
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.ashContent}}</td>
162
+        <td style="vertical-align: middle;text-align: center;">湿面筋含量/%</td>
163
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.gluten}}</td>
164
+        <td style="vertical-align: middle;text-align: center;">含砂量%</td>
165
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.siltContent}}</td>
166
+    </tr>
167
+    <tr>
168
+        <td style="vertical-align: middle;text-align: center;">磁性金属物g/kg</td>
169
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.magneticMetal}}</td>
170
+        <td style="vertical-align: middle;text-align: center;">脂肪酸值(以湿基计)</td>
171
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.fatIndex}}</td>
172
+        <td style="vertical-align: middle;text-align: center;">气味、口味</td>
173
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.smelltaste}}</td>
174
+        <td style="vertical-align: middle;text-align: center;">外观形态</td>
175
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.wgxt}}</td>
176
+        <td style="vertical-align: middle;text-align: center;"></td>
177
+        <td style="vertical-align: middle;text-align: center;"></td>
178
+    </tr>
179
+</table>
180
+<!-- 成品油 -->
181
+<table ng-show="(cerealsCard.lypzCode==7050 || cerealsCard.lypzCode==7052) && cerealsCard.sfgd == 1" class="table table-striped table-bordered table-hover" width="100%" border="1" bordercolor="#999999" style="table-layout: fixed;border-style:solid;border-collapse:collapse;">
182
+    <tbody>
183
+    <tr>
184
+        <td class="text-center" style="font-size: large;vertical-align: middle;text-align: center;" colspan="10">质检信息</td>
185
+    </tr>
186
+    <tr>
187
+        <td style="vertical-align: middle;text-align: center;">气味、滋味</td>
188
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.smelltaste}}</td>
189
+        <td style="vertical-align: middle;text-align: center;">透明度</td>
190
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.transparency}}</td>
191
+        <td style="vertical-align: middle;text-align: center;">水分及挥发物含量</td>
192
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.waterVolatiles}}</td>
193
+        <td style="vertical-align: middle;text-align: center;">不溶性杂质含量</td>
194
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.insolubleImpurity}}</td>
195
+        <td style="vertical-align: middle;text-align: center;">酸价</td>
196
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.qualitycheckInspection.acidValue}}</td>
197
+    </tr>
198
+    <tr>
199
+        <td style="vertical-align: middle;text-align: center;">过氧化值</td>
200
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.peroxideValue}}</td>
201
+        <td style="vertical-align: middle;text-align: center;">烟点</td>
202
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.smokePoint}}</td>
203
+        <td style="vertical-align: middle;text-align: center;">冷冻试验</td>
204
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.reezeTest}}</td>
205
+        <td style="vertical-align: middle;text-align: center;">溶剂残留量</td>
206
+        <td style="vertical-align: middle;text-align: center;">{{quailckCardListView.residualSolvent}}</td>
207
+        <td style="vertical-align: middle;text-align: center;"></td>
208
+        <td style="vertical-align: middle;text-align: center;"></td>
77 209
     </tr>
78
-    </tbody>
79
-
80 210
 </table>

+ 9 - 3
src/main/resources/static/app/storage/grainCard/views/productGrain-check.html

@@ -24,9 +24,8 @@
24 24
                                                         <i class="fa fa-angle-left"></i>&nbsp;返回&nbsp;
25 25
                                                     </a>
26 26
                                                 </th>
27
-                                                <th class="text-center" colspan="9" style="font-size: large;">
28
-                                                    天津市成品储备粮管理信息表
29
-                                                </th>
27
+                                                <th class="text-center" colspan="8" style="font-size: large;" ng-hide="grainOrOil">天津市成品储备粮管理信息表</th>
28
+                                                <th class="text-center" colspan="8" style="font-size: large;" ng-hide="!grainOrOil">天津市成品储备油管理信息表</th>
30 29
                                                 <th class="text-center no-print">
31 30
                                                     <button class="btn btn-md btn-primary" style="padding:8px 20px;border-radius: 3px;" onclick="Print('#print',{noPrint:'.no-print'})">
32 31
                                                         <a class="fa fa-print" style="color:#fff">打印</a>
@@ -39,6 +38,13 @@
39 38
                                     <div ng-include="'app/storage/grainCard/views/productGrain-check-G.html'" ng-hide="grainOrOil"></div>
40 39
                                     <!--油罐-->
41 40
                                     <div ng-include="'app/storage/grainCard/views/productGrain-check-T.html'" ng-hide="!grainOrOil"></div>
41
+                                    <table class="table table-striped table-bordered table-hover" width="100%" style="table-layout: fixed;">
42
+                                        <tr>
43
+                                            <td class="text-left" style="vertical-align: middle;text-align: left;">建卡人:{{cerealsCard.jkr}}</td>
44
+                                            <td class="text-left" style="vertical-align: middle;text-align: left;">建卡时间:{{cerealsCard.jkrq}}</td>
45
+                                            <td class="text-left" style="vertical-align: middle;text-align: left;">备注:{{cerealsCard.remark}}</td>
46
+                                        </tr>
47
+                                    </table>
42 48
                                 </div>
43 49
                             </div>
44 50
                         </div>

+ 7 - 19
src/main/resources/static/app/storage/grainCard/views/productGrainList.html

@@ -19,8 +19,11 @@
19 19
                                 <div class="dt-toolbar">
20 20
                                     <div class="col-xs-12 col-sm-9">
21 21
                                         <div class="form-group">
22
-                                            <a ng-hide="isArchive" class="btn btn-primary btn-sm" ng-click="addProductGrainList()">
23
-                                                <span class="fa fa-plus"></span>&nbsp;新&nbsp;增
22
+                                            <a ng-hide="isArchive" class="btn btn-primary btn-sm" ng-click="addProductGrainList(0)">
23
+                                                <span class="fa fa-plus"></span>新增成品粮
24
+                                            </a>
25
+                                            <a ng-hide="isArchive" class="btn btn-primary btn-sm" ng-click="addProductGrainList(1)">
26
+                                                <span class="fa fa-plus"></span>新增成品油
24 27
                                             </a>
25 28
                                             <label style="margin-left: 10px;"> 仓房/油罐名称:
26 29
                                                 <select ng-model="search.spareOne" class="form-control input-sm"
@@ -73,25 +76,10 @@
73 76
                                         <td class="text-center">{{cereals.lysl}}</td>
74 77
                                         <td class="text-center">{{cereals.jkrq | date:'yyyy-MM-dd HH:mm:ss'}}</td>
75 78
                                         <td class="text-center">
76
-                                            <a href-void ng-click="checkProductGrainList(cereals.id,cereals.spareFour)">查看</a>
77
-                                            <a ng-hide="isArchive" href-void ng-click="editProductGrainList(cereals.id,cereals.spareOne,cereals.lypzName)">修改</a>
79
+                                            <a href-void ng-click="checkProductGrainList(cereals.id,cereals.spareFour)">粮情卡</a>
80
+                                            <a ng-hide="isArchive || cereals.dataStatus == '1'" href-void ng-click="editProductGrainList(cereals.id,cereals.spareOne,cereals.lypzName)">修改</a>
78 81
                                         </td>
79 82
                                     </tr>
80
-
81
-
82
-                                    <!--<tr>
83
-                                        <td class="text-center">1</td>
84
-                                        <td class="text-center">1</td>
85
-                                        <td class="text-center">1</td>
86
-                                        <td class="text-center">1</td>
87
-                                        <td class="text-center">1</td>
88
-                                        <td class="text-center">1</td>
89
-                                        <td class="text-center">
90
-                                            <a href-void ng-click="checkProductGrainList(cereals.id)">查看</a>
91
-                                            <a href-void ng-click="editProductGrainList(cereals.id,cereals.spareOne,cereals.lypzName)">修改</a>
92
-                                        </td>
93
-                                    </tr>-->
94
-                                   
95 83
                                     </tbody>
96 84
 
97 85
                                 </table>

+ 17 - 4
src/main/resources/static/app/storage/insectPestDetection/controller/insectPestDetectionNewCtrl.js

@@ -16,7 +16,11 @@ angular.module('app.storage').controller("insectPestDetectionNewCtrl", function
16 16
     $scope.isArchive = false;
17 17
     $scope.isArchiveHouse = 0;
18 18
     // 加载列表
19
-    $scope.loadData = function () {
19
+    $scope.loadData = function (searchFor) {
20
+        // 搜索条件分页
21
+        if (searchFor === 'searchFor') {
22
+            $scope.pageInfo = {pageNum: 1, pageSize: 10};
23
+        }
20 24
         //归档用
21 25
         if($stateParams.dataState == "archive"){
22 26
             $scope.isArchive = true;
@@ -313,10 +317,14 @@ angular.module('app.storage').controller("insectPestDetectionNewCtrl", function
313 317
                 var arr_hczl = hczl.split('#');
314 318
                 var ckmd = data.data.ckmdzjh;
315 319
                 var arr_ckmd = ckmd.split('|');
320
+
321
+                let fsbw = data.data.fsbw;
322
+                let arr_fsbw = fsbw.split('|');
316 323
                 for (var i = 0; i < arr_hczl.length; i++) {
317
-                    var arr = {hczl: 0, ckmdzjh: ''};
324
+                    var arr = {hczl: 0, ckmdzjh: '', fsbw: ''};
318 325
                     arr.hczl = parseInt(arr_hczl[i]);
319 326
                     arr.ckmdzjh = arr_ckmd[i];
327
+                    arr.fsbw = arr_fsbw[i];
320 328
                     $scope.pestList[i] = arr;
321 329
                 }
322 330
             }
@@ -390,6 +398,7 @@ angular.module('app.storage').controller("insectPestDetectionNewCtrl", function
390 398
                 });
391 399
                 let hczlStr = '';
392 400
                 let ckmdzjhStr = '';
401
+                let fsbwStr = '';
393 402
                 $scope.pestList.forEach(function (item) {
394 403
                     if(item.hczl) {
395 404
                         hczlStr = hczlStr + item.hczl + '#'
@@ -397,15 +406,19 @@ angular.module('app.storage').controller("insectPestDetectionNewCtrl", function
397 406
                     if(item.ckmdzjh) {
398 407
                         ckmdzjhStr = ckmdzjhStr + item.ckmdzjh + '|'
399 408
                     }
409
+                    if(item.fsbw) {
410
+                        fsbwStr += (item.fsbw + '|')
411
+                    }
400 412
                 });
401 413
                 hczlStr = hczlStr.slice(0, hczlStr.length - 1);
402 414
                 ckmdzjhStr = ckmdzjhStr.slice(0, ckmdzjhStr.length - 1);
403
-                // console.log(hczlStr, ckmdzjhStr);
415
+                fsbwStr = fsbwStr.slice(0, fsbwStr.length - 1);
404 416
                 $scope.insectPests.hczl = hczlStr;
405 417
                 $scope.insectPests.ckmdzjh = ckmdzjhStr;
418
+                $scope.insectPests.fsbw = fsbwStr;
406 419
                 //保存测虫数据
407 420
                 insectPestDetectionNewService.saveInsectPestDate($scope.insectPests).then(function(data){
408
-                    if(data.message == "success"){
421
+                    if(data.message === "success"){
409 422
                         alert("保存成功!");
410 423
                         $scope.retList();
411 424
                     } else {

+ 75 - 75
src/main/resources/static/app/storage/insectPestDetection/view/insectPestDetection-edit.html

@@ -26,10 +26,18 @@
26 26
 								<fieldset>
27 27
 									<table class="table table-striped table-bordered table-hover" width="100%">
28 28
 										<tr>
29
-											<th width='15%'>
29
+											<th>
30
+												<label class="label" style="margin-top: 9px;text-align: center;">虫害检测单号</label>
31
+											</th>
32
+											<th>
33
+												<label class="input">
34
+													<input type="text" placeholder="自动生成 检测日期(yyyyMMdd)+4 位顺序号" ng-model="insectPests.hcjcdh" ng-readonly="true" />
35
+												</label>
36
+											</th>
37
+											<th>
30 38
 												<label class="label" style="margin-top: 9px;text-align: center;">仓房名称<span style="color: red;">*</span></label>
31 39
 											</th>
32
-											<th width='15%'>
40
+											<th>
33 41
 												<label class="select">
34 42
 													<select ng-model="houseId" name="houseId" class="form-control input-sm" ng-disabled="isEdit"
35 43
 															ng-options="store.storehouseId as store.storehouseName for store in storelist"
@@ -38,10 +46,10 @@
38 46
 													</select> <i></i>
39 47
 												</label>
40 48
 											</th>
41
-											<th width='15%'>
49
+											<th>
42 50
 												<label class="label" style="margin-top: 9px;text-align: center;">货位名称<span style="color: red;">*</span></label>
43 51
 											</th>
44
-											<th width='15%'>
52
+											<th>
45 53
 												<label class="select">
46 54
 													<select ng-model="insectPests.vHwCode" name="vHwCode" class="form-control input-sm" ng-disabled="isEdit"
47 55
 															ng-options="ware.warehouseId as ware.warehouseName for ware in warelist" ng-change="getStorageInfo(insectPests.vHwCode)" required>
@@ -49,10 +57,28 @@
49 57
 													</select> <i></i>
50 58
 												</label>
51 59
 											</th>
52
-											<th width='15%'>
53
-												<label label class="label" style="margin-top: 9px;text-align: center;">检查害虫方法<span style="color: red;">*</span></label>
60
+										</tr>
61
+										<tr>
62
+											<th>
63
+												<label class="label" style="margin-top: 9px;text-align: center;">粮油品种</label>
64
+											</th>
65
+											<th>
66
+												<label class="input">
67
+													<input type="text" ng-model="dicData[insectPests.lypz]" ng-readonly="true" />
68
+												</label>
69
+											</th>
70
+											<th>
71
+												<label class="label" style="margin-top: 9px;text-align: center;">库存数量(吨)</label>
72
+											</th>
73
+											<th>
74
+												<label class="input">
75
+													<input type="text" ng-model="insectPests.kcsl" ng-readonly="true" />
76
+												</label>
54 77
 											</th>
55
-											<th width='15%'>
78
+											<th>
79
+												<label class="label" style="margin-top: 9px;text-align: center;">检查害虫方法<span style="color: red;">*</span></label>
80
+											</th>
81
+											<th>
56 82
 												<section>
57 83
 													<label class="select">
58 84
 														<select ng-model="insectPests.jchcff" name="jchcff" required ng-disabled="isEdit">
@@ -84,7 +110,7 @@
84 110
 												</label>
85 111
 											</th>
86 112
 											<th >
87
-												<label label class="label" style="margin-top: 9px;text-align: center;">虫粮等级<span style="color: red;">*</span></label>
113
+												<label class="label" style="margin-top: 9px;text-align: center;">虫粮等级<span style="color: red;">*</span></label>
88 114
 											</th>
89 115
 											<th>
90 116
 												<section>
@@ -99,7 +125,7 @@
99 125
 										</tr>
100 126
 										<tr>
101 127
 											<th>
102
-												<label label class="label" style="margin-top: 9px;text-align: center;">害虫抗药性分析</label>
128
+												<label class="label" style="margin-top: 9px;text-align: center;">害虫抗药性分析</label>
103 129
 											</th>
104 130
 											<th>
105 131
 												<section>
@@ -129,35 +155,6 @@
129 155
 										</tr>
130 156
 										<tr>
131 157
 											<th>
132
-												<label class="label" style="margin-top: 9px;text-align: center;">发生部位<span style="color: red;">*</span></label>
133
-											</th>
134
-											<th>
135
-												<section>
136
-													<label class="input">
137
-														<input class="form-control" type="text" ng-model="insectPests.fsbw"
138
-															   name="fsbw" ng-readonly="isEdit" required />
139
-													</label>
140
-												</section>
141
-											</th>
142
-											<th>
143
-												<label class="label" style="margin-top: 9px;text-align: center;">粮油品种</label>
144
-											</th>
145
-											<th>
146
-												<label class="input">
147
-													<input type="text" ng-model="dicData[insectPests.lypz]" ng-readonly="true" />
148
-												</label>
149
-											</th>
150
-											<th>
151
-												<label class="label" style="margin-top: 9px;text-align: center;">库存数量(吨)</label>
152
-											</th>
153
-											<th>
154
-												<label class="input">
155
-													<input type="text" ng-model="insectPests.kcsl" ng-readonly="true" />
156
-												</label>
157
-											</th>
158
-										</tr>
159
-										<tr>
160
-											<th>
161 158
 												<label class="label" style="margin-top: 9px;text-align: center;">提交人</label>
162 159
 											</th>
163 160
 											<th>
@@ -173,14 +170,8 @@
173 170
 													<input type="text" ng-model="insectPests.commitTime" ng-readonly="true" />
174 171
 												</label>
175 172
 											</th>
176
-											<th>
177
-												<label class="label" style="margin-top: 9px;text-align: center;">虫害检测单号</label>
178
-											</th>
179
-											<th>
180
-												<label class="input">
181
-													<input type="text" placeholder="自动生成 检测日期(yyyyMMdd)+4 位顺序号" ng-model="insectPests.hcjcdh" ng-readonly="true" />
182
-												</label>
183
-											</th>
173
+											<th></th>
174
+											<th></th>
184 175
 										</tr>
185 176
 									</table>
186 177
 								</fieldset>
@@ -192,36 +183,45 @@
192 183
 										</button>
193 184
 								</header>
194 185
 								<fieldset>
195
-								<div class="row" ng-repeat="item in pestList" ng-style="{ 'padding': $index === 0 ? '25px 14px 5px' : '0px 14px 5px'}">
196
-									<div class="col-md-3">
197
-										<label class="label" style="margin-top: 9px;">虫害种类<span style="color: red;">*</span></label>
198
-										<section>
199
-											<label class="select">
200
-												<select ng-model="item.hczl" name="hczl{{$index}}" ng-disabled="isEdit"
201
-														ng-options="enum.enumid as enum.enumname for enum in dicDataList[5267]" required>
202
-													<option value="">&#45;&#45;请选择&#45;&#45;</option>
203
-												</select><i></i>
204
-											</label>
205
-										</section>
206
-									</div>
207
-									<div class="col-md-1"></div>
208
-									<div class="col-md-3">
209
-										<label class="label" style="margin-top: 9px;">密度(头/公斤)<span style="color: red;">*</span></label>
210
-										<section>
211
-											<label class="input">
212
-												<input class="form-control" type="text" ng-model="item.ckmdzjh" ng-readonly="isEdit"
213
-													   name="ckmdzjh{{$index}}" validFrequency1="true" required />
214
-											</label>
215
-										</section>
216
-									</div>
217
-									<div class="col-md-1"></div>
218
-									<div class="col-md-1">
219
-										<label class="label" style="margin-top: 9px;"></label>
220
-										<section>
221
-											<a class="btn btn-primary" ng-hide="isEdit" style="margin-top: 30px;" ng-click="removeRow(item)">删除</a>
222
-										</section>
186
+									<div class="row" ng-repeat="item in pestList" ng-style="{ 'padding': $index === 0 ? '25px 14px 5px' : '0px 14px 5px'}">
187
+										<div class="col-md-2">
188
+											<label class="label" style="margin-top: 9px;">虫害种类<span style="color: red;">*</span></label>
189
+											<section>
190
+												<label class="select">
191
+													<select ng-model="item.hczl" name="hczl{{$index}}" ng-disabled="isEdit"
192
+															ng-options="enum.enumid as enum.enumname for enum in dicDataList[5267]" required>
193
+														<option value="">&#45;&#45;请选择&#45;&#45;</option>
194
+													</select><i></i>
195
+												</label>
196
+											</section>
197
+										</div>
198
+										<div class="col-md-1"></div>
199
+										<div class="col-md-2">
200
+											<label class="label" style="margin-top: 9px;">密度(头/公斤)<span style="color: red;">*</span></label>
201
+											<section>
202
+												<label class="input">
203
+													<input class="form-control" type="text" ng-model="item.ckmdzjh" ng-readonly="isEdit"
204
+														   name="ckmdzjh{{$index}}" validFrequency1="true" required />
205
+												</label>
206
+											</section>
207
+										</div>
208
+										<div class="col-md-1"></div>
209
+										<div class="col-md-2">
210
+											<label class="label" style="margin-top: 9px;">发生部位<span style="color: red;">*</span></label>
211
+											<section>
212
+												<label class="input">
213
+													<input class="form-control" type="text" ng-model="item.fsbw" ng-readonly="isEdit" name="fsbw{{$index}}" required />
214
+												</label>
215
+											</section>
216
+										</div>
217
+										<div class="col-md-1"></div>
218
+										<div class="col-md-2">
219
+											<label class="label" style="margin-top: 9px;"></label>
220
+											<section>
221
+												<a class="btn btn-primary" ng-hide="isEdit" style="margin-top: 30px;" ng-click="removeRow(item)">删除</a>
222
+											</section>
223
+										</div>
223 224
 									</div>
224
-								</div>
225 225
 								</fieldset>
226 226
 								<!-- <div class="col-md-1" style="padding-left: 14px;">
227 227
 									<div class="col-md-1">

+ 1 - 1
src/main/resources/static/app/storage/insectPestDetection/view/insectPestDetection-list.html

@@ -33,7 +33,7 @@
33 33
                                             结束通道:
34 34
                                             <input ng-model="search.iEndTdh" class="form-control input-sm" style="width: 88px;">&emsp;
35 35
                                         </label>
36
-                                        <a class="btn btn-default btn-sm" ng-click="loadData()"> <i class="fa fa-search"></i>&nbsp;查&nbsp;询</a>
36
+                                        <a class="btn btn-default btn-sm" ng-click="loadData('searchFor')"> <i class="fa fa-search"></i>&nbsp;查&nbsp;询</a>
37 37
                                         <a class="btn btn-default btn-sm" ng-click="emptyCondition()"> <i class=""></i>&nbsp;清&nbsp;空</a>&nbsp;
38 38
 <!--                                        <a class="btn btn-default btn-sm" ng-click="allStoreGrainTemperatureDetection()"> <i class="fa fa-search"></i>&nbsp;虫情实时检测</a>-->
39 39
 <!--                                        <a class="btn btn-default btn-sm" ng-click="contrastCahrt()"> <i class="fa fa-search"></i>&nbsp;虫情对比趋势</a>-->

+ 89 - 15
src/main/resources/static/app/storage/module.js

@@ -139,15 +139,15 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
139 139
 
140 140
             //点新增或修改保管员信息调用
141 141
             .state('app.storage.keeper.keeperDetails', {
142
-                url: '/keeperDetails/:id/:showType;',
142
+                url: '/keeperDetails/:userId/:showType;',
143 143
                 data: {
144 144
                     title: '保管员详情信息',
145 145
                 },
146 146
                 views: {
147 147
                     "content@app": {
148
-                        controller: 'keeperCtrlEdit',//该controller使用的是基础信息的保管员中的
149
-                       // templateUrl: 'app/storage/views/keeper/keeper-edit.html'
150
-                        templateUrl: 'app/basic/keeper/views/keeper-edit.html'
148
+                        controller: 'userEditCtrl',//该controller使用的是基础信息的保管员中的
149
+                        templateUrl: 'app/storage/views/keeper/keeper-edit.html'
150
+                        //templateUrl: 'app/basic/keeper/views/keeper-edit.html'
151 151
                     }
152 152
                 }
153 153
             })
@@ -482,7 +482,8 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
482 482
 
483 483
             //查看粮情卡
484 484
             .state('app.storage.foodSituation.checkFoodSituationList', {
485
-                url: '/foodSituation/checkFoodSituationList/:id/:qualitycheckId/:storehouseNum/:warehouseNum/:storehouseId/:warehouseId/:grainVarietyNum/:tabType',
485
+                //url: '/foodSituation/checkFoodSituationList/:id/:qualitycheckId/:storehouseNum/:warehouseNum/:storehouseId/:warehouseId/:grainVarietyNum/:tabType',
486
+            	url: '/foodSituation/checkFoodSituationList/:id/:tabType',
486 487
                 data: {
487 488
                     title: '查看粮情卡'
488 489
                 },
@@ -615,7 +616,7 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
615 616
 
616 617
 //成品粮新增/编辑
617 618
 .state('app.storage.productGrain.add', {
618
-    url: '/productGrain/add',
619
+    url: '/productGrain/add/:type',
619 620
     data: {
620 621
         title: '新增'
621 622
     },
@@ -1973,14 +1974,14 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
1973 1974
             .state('app.storage.account', {
1974 1975
                 abstract: true,
1975 1976
                 data: {
1976
-                    title: '保管账'
1977
+                    title: '原粮保管账'
1977 1978
                 }
1978 1979
             })
1979 1980
             //分仓保管账
1980 1981
             .state('app.storage.account.houseKeepAccount', {
1981 1982
                 url: '/storage/quantity/houseKeepAccount/:account/:type/:findPage/:findSearch',
1982 1983
                 data: {
1983
-                    title: '分仓保管账'
1984
+                    title: '分仓保管账(旧)'
1984 1985
                 },
1985 1986
                 views: {
1986 1987
                     "content@app": {
@@ -1993,7 +1994,7 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
1993 1994
             .state('app.storage.account.houseKeepAccount.houseKeepAccountEdit', {
1994 1995
                 url: '/storage/quantity/houseKeepAccountEdit/:account/:butType/:findPage/:findSearch',
1995 1996
                 data: {
1996
-                    title: '记账'
1997
+                    title: '记账(旧)'
1997 1998
                 },
1998 1999
                 views: {
1999 2000
                     "content@app": {
@@ -2006,7 +2007,7 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
2006 2007
             .state('app.storage.account.keepDetailedAccount', {
2007 2008
                 url: '/storage/quantity/keepDetailedAccount/:account/:type/:findPage/:findSearch',
2008 2009
                 data: {
2009
-                    title: '保管明细账'
2010
+                    title: '保管明细账(旧)'
2010 2011
                 },
2011 2012
                 views: {
2012 2013
                     "content@app": {
@@ -2018,7 +2019,7 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
2018 2019
             .state('app.storage.account.keepDetailedAccount.edit', {
2019 2020
                 url: '/storage/quantity/keepDetailedAccount/edit/:account/:type/:findPage/:findSearch',// type: 0:记账, 1:审核,2:查看
2020 2021
                 data: {
2021
-                    title: '保管明细账记账'
2022
+                    title: '保管明细账记账(旧)'
2022 2023
                 },
2023 2024
                 views: {
2024 2025
                     "content@app": {
@@ -2032,7 +2033,7 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
2032 2033
             .state('app.storage.account.keepTotalAccount', {
2033 2034
                 url: '/storage/quantity/keepTotalAccount/:findPage/:findSearch',
2034 2035
                 data: {
2035
-                    title: '保管总账'
2036
+                    title: '保管总账(旧)'
2036 2037
                 },
2037 2038
                 views: {
2038 2039
                     "content@app": {
@@ -2045,7 +2046,7 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
2045 2046
             .state('app.storage.account.keepTotalAccount.keepTotalAccountEdit', {
2046 2047
                 url: '/storage/quantity/keepTotalAccountEdit/:account/:butType/:findPage/:findSearch',
2047 2048
                 data: {
2048
-                    title: '记账'
2049
+                    title: '记账(旧)'
2049 2050
                 },
2050 2051
                 views: {
2051 2052
                     "content@app": {
@@ -2058,7 +2059,7 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
2058 2059
             .state('app.storage.account.keepVoucher', {
2059 2060
                 url: '/storage/quantity/keepVoucher/:account/:butType/:findPage/:findSearch',
2060 2061
                 data: {
2061
-                    title: '记账凭证'
2062
+                    title: '记账凭证(旧)'
2062 2063
                 },
2063 2064
                 views: {
2064 2065
                     "content@app": {
@@ -2071,7 +2072,7 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
2071 2072
             .state('app.storage.account.keepVoucher.edit', {
2072 2073
                 url: '/storage/quantity/keepVoucher/edit/:account/:butType/:findPage/:findSearch',
2073 2074
                 data: {
2074
-                    title: '记账'
2075
+                    title: '记账(旧)'
2075 2076
                 },
2076 2077
                 views: {
2077 2078
                     "content@app": {
@@ -2080,6 +2081,79 @@ angular.module('app.storage', ['ui.router', 'datatables', 'datatables.bootstrap'
2080 2081
                     }
2081 2082
                 }
2082 2083
             })
2084
+            
2085
+            .state('app.storage.account.fcbgz', {
2086
+                abstract: true,
2087
+                data: {
2088
+                    title: '分仓保管账'
2089
+                }
2090
+            })
2091
+            //原粮分仓保管账列表
2092
+            .state('app.storage.account.fcbgz.fcbgzlist', {
2093
+                url: '/storage/account/fcbgz/list/:type',
2094
+                data: {
2095
+                    title: '分仓保管账列表(储备粮)'
2096
+                },
2097
+                views: {
2098
+                    "content@app": {
2099
+                        controller: 'ylFcbgzCtrl',
2100
+                        templateUrl: 'app/storage/yl_account/views/cbl-fcbgz-list.html'
2101
+                    }
2102
+                }
2103
+            })
2104
+            //原粮分仓保管账列表---点记账
2105
+            .state('app.storage.account.fcbgz.fcbgzlist.fcbgzJzList', {
2106
+                url: '/storage/account/fcbgz/list/jzList/:obj/:funcType',
2107
+                data: {
2108
+                    title: '分仓保管账列表(储备粮)_记账列表'
2109
+                },
2110
+                views: {
2111
+                    "content@app": {
2112
+                        controller: 'queryJzListCtrl',
2113
+                        templateUrl: 'app/storage/yl_account/views/cbl-fcbgz-jz-list.html'
2114
+                    }
2115
+                }
2116
+            })
2117
+            //原粮分仓保管账记账列表---点记账、审核、查看
2118
+            .state('app.storage.account.fcbgz.fcbgzlist.fcbgzJzEdit', {
2119
+                url: '/storage/account/fcbgz/list/jzEdit/:obj/:funcType/:topFuncType',
2120
+                data: {
2121
+                    title: '分仓保管账列表(储备粮)_记账'
2122
+                },
2123
+                views: {
2124
+                    "content@app": {
2125
+                        controller: 'queryJzEditCtrl',
2126
+                        templateUrl: 'app/storage/yl_account/views/fcbgz-jz-edit.html'
2127
+                    }
2128
+                }
2129
+            })
2130
+
2131
+            //原粮保管总账列表
2132
+            .state('app.storage.account.fcbgz.bgzzlist', {
2133
+                url: '/storage/account/fcbgz/bgzzlist/:type',
2134
+                data: {
2135
+                    title: '保管总账列表(储备粮)'
2136
+                },
2137
+                views: {
2138
+                    "content@app": {
2139
+                        controller: 'ylBgzzCtrl',
2140
+                        templateUrl: 'app/storage/yl_account/views/bgzz-list.html'
2141
+                    }
2142
+                }
2143
+            })
2144
+            //原粮分仓保管账列表---点记账
2145
+            .state('app.storage.account.fcbgz.bgzzlist.bgzzJzList', {
2146
+                url: '/storage/account/fcbgz/bgzzlist/jzList/:obj/:funcType',
2147
+                data: {
2148
+                    title: '分仓保管账列表(储备粮)_记账列表'
2149
+                },
2150
+                views: {
2151
+                    "content@app": {
2152
+                        controller: 'queryBgzzJzListCtrl',
2153
+                        templateUrl: 'app/storage/yl_account/views/bgzz-jz-list.html'
2154
+                    }
2155
+                }
2156
+            })
2083 2157
 
2084 2158
             .state('app.storage.taskDispatch', {
2085 2159
                 abstract: true,

+ 4 - 1
src/main/resources/static/app/storage/profitlossStatement/controller/profitlossStatementSaveCtrl.js

@@ -90,7 +90,7 @@ angular.module('app.storage').controller("profitlossStatementSaveCtrl", function
90 90
 		
91 91
 
92 92
 	}
93
-	
93
+
94 94
 	//实际损耗数量(kg)
95 95
 	$scope.getSjshsl = function(rksl,cksl){
96 96
 		if (rksl > cksl) {
@@ -230,6 +230,9 @@ angular.module('app.storage').controller("profitlossStatementSaveCtrl", function
230 230
 			//保管自然损耗(kg)=实际储存损耗-入仓环节水分杂质减量合计-储存期间水分杂质减量合计(要放在最后)
231 231
 			var c = commonUtilService.accSub($scope.profitlossStatement.sjccshsl, $scope.profitlossStatement.rchjsfzzjlhj);
232 232
 			$scope.profitlossStatement.bgzrsh = commonUtilService.accSub(c,$scope.profitlossStatement.ccqjsfzzjlhj);
233
+			if (Number(profitlossStatement.bgzrsh) < 0) {
234
+				$scope.profitlossStatement.bgzrsh = 0;
235
+			}
233 236
 
234 237
 			//超耗数量(要放在最后) 
235 238
 			$scope.chsl($scope.profitlossStatement.bgzrsh, $scope.profitlossStatement.rksl, $scope.profitlossStatement.bgzrshde);

+ 1 - 1
src/main/resources/static/app/storage/profitlossStatement/views/profitlossStatement-edit.html

@@ -486,7 +486,7 @@
486 486
 														<td style="vertical-align: middle;" rowspan="3">损溢原因</td>
487 487
 														<td colspan="4" rowspan="3">
488 488
 															<label class="textarea">
489
-					                                            <textarea rows="5" ng-model="profitlossStatement.syyy" name="syyy" 
489
+					                                            <textarea rows="5" ng-model="profitlossStatement.syyy" name="syyy" required
490 490
 					                                                oninput="if(value.length>1000) value=value.slice(0,1000)" ng-disabled ="isNotEdit">
491 491
 					                                            </textarea>
492 492
 					                                        </label>

+ 10 - 2
src/main/resources/static/app/storage/safe-manage/controller/safeManageCtrl.js

@@ -54,6 +54,7 @@ angular.module('app.storage').controller("safeManageCtrl", function($scope, $roo
54 54
 
55 55
 	$scope.disabled = false;
56 56
 	$scope.productEdit = {};
57
+    $scope.safeManage = {};
57 58
 	$scope.orgName = $rootScope.orgInfo.orgName;//库点名称
58 59
 
59 60
 	//获取风险分级管控列表
@@ -91,6 +92,13 @@ angular.module('app.storage').controller("safeManageCtrl", function($scope, $roo
91 92
 			/*$("#safeManage-form input").attr("disabled",$scope.disabled );
92 93
 			$("#safeManage-form select").attr("disabled",$scope.disabled );
93 94
 			$("#safeManage-form textarea").attr("disabled",$scope.disabled );*/
95
+            if($stateParams.id != null && $stateParams.id != "") {
96
+                if ($stateParams.butType == "edit") {
97
+					// 修改
98
+                    $scope.safeManage.commitPeople = $rootScope.userInfo.realName; // 提交人
99
+                    $scope.safeManage.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
100
+                }
101
+            }
94 102
 		},function(data){
95 103
 			console.log();
96 104
 		});
@@ -106,11 +114,11 @@ angular.module('app.storage').controller("safeManageCtrl", function($scope, $roo
106 114
 		$scope.isEditsbr = true ;
107 115
 	}else{
108 116
 	   //新增
109
-		$scope.safeManage = {};
110 117
 		$scope.isEditsbr = false ;
118
+        $scope.safeManage.commitPeople = $rootScope.userInfo.realName; // 提交人
119
+        $scope.safeManage.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
111 120
 	}
112 121
 
113
-	
114 122
 	// -----------------------------------------------   上传下载相关     开始------------------------------------------------
115 123
     var bid = null;
116 124
 	// 添加一行,取最大值加1放入数组

+ 335 - 273
src/main/resources/static/app/storage/safe-manage/views/safeManage-edit.html

@@ -1,290 +1,352 @@
1 1
 <!-- MAIN CONTENT -->
2 2
 <div id="content">
3 3
 
4
-	<!-- widget grid -->
5
-	<section id="widget-grid" widget-grid>
4
+    <!-- widget grid -->
5
+    <section id="widget-grid" widget-grid>
6 6
 
7
-		<!-- START ROW -->
8
-		<div class="row">
7
+        <!-- START ROW -->
8
+        <div class="row">
9 9
 
10
-			<!-- NEW COL START -->
11
-			<article class="col-sm-12 col-md-12 col-lg-12">
10
+            <!-- NEW COL START -->
11
+            <article class="col-sm-12 col-md-12 col-lg-12">
12 12
 
13
-				<!-- Widget ID (each widget will need unique ID)-->
14
-				<div jarvis-widget id="form-grid-widget"
15
-					 data-widget-colorbutton="false" data-widget-editbutton="false"
16
-					 data-widget-custombutton="false">
13
+                <!-- Widget ID (each widget will need unique ID)-->
14
+                <div jarvis-widget id="form-grid-widget"
15
+                     data-widget-colorbutton="false" data-widget-editbutton="false"
16
+                     data-widget-custombutton="false">
17 17
 
18
-					<!-- widget div-->
19
-					<div>
18
+                    <!-- widget div-->
19
+                    <div>
20 20
 
21
-						<!-- widget content -->
22
-						<div class="widget-body no-padding">
23
-							<form id="safeManage-form" class="smart-form ng-pristine ng-valid" data-validator-option="validateOptions" novalidate="novalidate">
24
-								<button type="submit" class="bv-hidden-submit" style="display: none; width: 0px; height: 0px;"></button>
25
-								<header>
26
-									<a href-void class="btn btn-default btn-xs" ng-click="back()"><i class="fa fa-angle-left"></i>&nbsp;返回&nbsp;</a>
27
-									&nbsp;<strong>安全隐患排查治理详情</strong>
28
-								</header>
29
-								<fieldset>
30
-									<div class="row">
31
-										<section class="col col-4">
32
-                                          <label class="label">库点名称<span style="color: red;">*</span></label>
33
-                                          <label class="input">
34
-                                              <input type="text" ng-model="orgName" name="orgName"  ng-disabled="true" required>
35
-                                          </label>
36
-                                      	</section>
37
-										<section class="col col-4">
38
-                                            <label class="label txt-bg-red">识别人<span style="color: red;">*</span></label> 
39
-                                            <label class="input"> 
40
-                                                <input class="form-control" name="sbr" ng-model="safeManage.sbr" maxlength="32" 
41
-                                                 ng-disabled="isEditsbr" ng-click="getRiskLevelList()" placeholder="请选择风险单" required>
21
+                        <!-- widget content -->
22
+                        <div class="widget-body no-padding">
23
+                            <form id="safeManage-form" class="smart-form ng-pristine ng-valid"
24
+                                  data-validator-option="validateOptions" novalidate="novalidate">
25
+                                <button type="submit" class="bv-hidden-submit"
26
+                                        style="display: none; width: 0px; height: 0px;"></button>
27
+                                <header>
28
+                                    <a href-void class="btn btn-default btn-xs" ng-click="back()"><i
29
+                                            class="fa fa-angle-left"></i>&nbsp;返回&nbsp;</a>
30
+                                    &nbsp;<strong>安全隐患排查治理详情1</strong>
31
+                                </header>
32
+                                <fieldset>
33
+                                    <div class="row">
34
+                                        <section class="col col-4">
35
+                                            <label class="label">库点名称<span style="color: red;">*</span></label>
36
+                                            <label class="input">
37
+                                                <input type="text" ng-model="orgName" name="orgName" ng-disabled="true"
38
+                                                       required>
39
+                                            </label>
40
+                                        </section>
41
+                                        <section class="col col-4">
42
+                                            <label class="label txt-bg-red">识别人<span
43
+                                                    style="color: red;">*</span></label>
44
+                                            <label class="input">
45
+                                                <input class="form-control" name="sbr" ng-model="safeManage.sbr"
46
+                                                       maxlength="32"
47
+                                                       ng-disabled="isEditsbr" ng-click="getRiskLevelList()"
48
+                                                       placeholder="请选择风险单" required>
49
+                                            </label>
50
+                                        </section>
51
+                                        <section class="col col-4">
52
+                                            <label class="label">环节/部位<span style="color: red;">*</span></label>
53
+                                            <label class="input">
54
+                                                <input type="text" name="hjbw" ng-model="safeManage.hjbw"
55
+                                                       maxlength="128" required ng-disabled="true"/>
56
+                                            </label>
57
+                                        </section>
58
+
59
+                                    </div>
60
+                                    <div class="row">
61
+                                        <section class="col col-md-12">
62
+                                            <label class="label">风险信息<span style="color: red;">*</span></label>
63
+                                            <label class="textarea">
64
+												<textarea rows="5" name="fxxx" ng-model="safeManage.fxxx"
65
+                                                          ng-disabled="true"
66
+                                                          placeholder="最多输入256个字符" maxlength="256" required></textarea>
67
+                                            </label>
68
+                                        </section>
69
+                                    </div>
70
+                                    <div class="row">
71
+                                        <section class="col col-6">
72
+                                            <label class="label">风险类型<span style="color: red;">*</span></label>
73
+                                            <label class="select">
74
+                                                <select ng-model="safeManage.fxlx" name="fxlx"
75
+                                                        ng-options='enum.enumid as enum.enumname for enum in dicDataList[7512]'
76
+                                                        ng-disabled="true" required>
77
+                                                </select><i></i>
78
+                                            </label>
79
+                                        </section>
80
+                                        <section class="col col-6">
81
+                                            <label class="label">风险分级<span style="color: red;">*</span></label>
82
+                                            <label class="select">
83
+                                                <select ng-model="safeManage.fxfj" name="fxfj"
84
+                                                        ng-options='enum.enumid as enum.enumname for enum in dicDataList[7513]'
85
+                                                        ng-disabled="true" required>
86
+                                                </select><i></i>
87
+                                            </label>
88
+                                        </section>
89
+                                    </div>
90
+                                    <div class="row">
91
+                                        <section class="col col-md-12">
92
+                                            <label class="label">风险管控措施<span style="color: red;">*</span></label>
93
+                                            <label class="textarea">
94
+                                                <textarea rows="5" name="fxglcs" ng-model="safeManage.fxglcs" required
95
+                                                          maxlength="1000" ng-disabled="true"></textarea>
96
+                                            </label>
97
+                                        </section>
98
+                                    </div>
99
+                                    <div class="row">
100
+                                        <section class="col col-md-4">
101
+                                            <label class="label">隐患等级<span style="color: red;">*</span></label>
102
+                                            <label class="select">
103
+                                                <select ng-model="safeManage.yhdj" name="yhdj" ng-disabled="isEdit"
104
+                                                        required>
105
+                                                    <option value="">请选择</option>
106
+                                                    <option value="0">一般隐患</option>
107
+                                                    <option value="1">重大事故隐患</option>
108
+                                                </select><i></i>
109
+                                            </label>
110
+                                        </section>
111
+                                    </div>
112
+                                    <div class="row">
113
+                                        <section class="col col-md-12">
114
+                                            <label class="label">隐患信息<span style="color: red;">*</span></label>
115
+                                            <label class="textarea">
116
+												<textarea rows="5" name="yhxx" ng-model="safeManage.yhxx" required
117
+                                                          ng-disabled="isEdit"
118
+                                                          placeholder="最多输入256个字符" maxlength="256"></textarea>
119
+                                            </label>
120
+                                        </section>
121
+                                    </div>
122
+                                    <div class="row">
123
+                                        <section class="col col-md-12">
124
+                                            <label class="label">隐患排查信息<span style="color: red;">*</span></label>
125
+                                            <label class="textarea">
126
+												<textarea rows="5" name="yhpcxx" ng-model="safeManage.yhpcxx" required
127
+                                                          ng-disabled="isEdit"
128
+                                                          placeholder="最多输入1000个字符" maxlength="1000"></textarea>
129
+                                            </label>
130
+                                        </section>
131
+                                    </div>
132
+                                    <div class="row">
133
+                                        <section class="col col-md-12">
134
+                                            <label class="label">隐患整改信息<span style="color: red;">*</span></label>
135
+                                            <label class="textarea">
136
+												<textarea rows="5" name="yhzgxx" ng-model="safeManage.yhzgxx" required
137
+                                                          ng-disabled="isEdit"
138
+                                                          placeholder="最多输入1000个字符" maxlength="1000"></textarea>
139
+                                            </label>
140
+                                        </section>
141
+                                    </div>
142
+                                    <div class="row">
143
+                                        <section class="col col-md-12">
144
+                                            <label class="label">隐患整改验收信息<span style="color: red;">*</span></label>
145
+                                            <label class="textarea">
146
+												<textarea rows="5" name="yhysxx" ng-model="safeManage.yhysxx" required
147
+                                                          ng-disabled="isEdit"
148
+                                                          placeholder="最多输入1000个字符" maxlength="1000"></textarea>
149
+                                            </label>
150
+                                        </section>
151
+                                    </div>
152
+                                    <div class="row">
153
+                                        <section class="col col-md-12">
154
+                                            <label class="label">事故基本信息<span style="color: red;">*</span></label>
155
+                                            <label class="textarea">
156
+												<textarea rows="5" name="sgjbxx" ng-model="safeManage.sgjbxx" required
157
+                                                          ng-disabled="isEdit"
158
+                                                          placeholder="最多输入1000个字符" maxlength="1000"></textarea>
159
+                                            </label>
160
+                                        </section>
161
+                                    </div>
162
+                                    <div class="row">
163
+                                        <section class="col col-md-4">
164
+                                            <label class="label">整改时限<span style="color: red;">*</span></label>
165
+                                            <label class="input">
166
+                                                <input id="zgsx" type="text" ng-model="safeManage.zgsx"
167
+                                                       class="form-control" onClick="WdatePicker({lang:'zh-cn'})"
168
+                                                       name="zgsx" ng-disabled="isEdit" required/>
42 169
                                             </label>
43 170
                                         </section>
44 171
                                         <section class="col col-4">
45
-											<label class="label">环节/部位<span style="color: red;">*</span></label>
46
-											<label class="input">
47
-												<input type="text" name="hjbw" ng-model="safeManage.hjbw" maxlength="128" required ng-disabled="true"/>
48
-											</label>
49
-										</section>
50
-										
51
-									</div>
52
-									<div class="row">
53
-										<section class="col col-md-12">
54
-											<label class="label">风险信息<span style="color: red;">*</span></label>
55
-											<label class="textarea">
56
-												<textarea rows="5" name="fxxx" ng-model="safeManage.fxxx" ng-disabled="true"
57
-														  placeholder="最多输入256个字符" maxlength="256" required></textarea>
58
-											</label>
59
-										</section>
60
-									</div>
61
-									<div class="row">
62
-										<section class="col col-6">
63
-											<label class="label">风险类型<span style="color: red;">*</span></label>
64
-											<label class="select">
65
-												<select ng-model="safeManage.fxlx" name="fxlx" ng-options='enum.enumid as enum.enumname for enum in dicDataList[7512]' 
66
-												ng-disabled="true" required>
67
-												</select><i></i>
68
-											</label>
69
-										</section>
70
-										<section class="col col-6">
71
-											<label class="label">风险分级<span style="color: red;">*</span></label>
72
-											<label class="select">
73
-												<select ng-model="safeManage.fxfj" name="fxfj" ng-options='enum.enumid as enum.enumname for enum in dicDataList[7513]' 
74
-												ng-disabled="true" required>
75
-												</select><i></i>
76
-											</label>
77
-										</section>
78
-									</div>
79
-									<div class="row">
80
-										<section class="col col-md-12">
81
-											<label class="label">风险管控措施<span style="color: red;">*</span></label>
82
-											<label class="textarea">
83
-												<textarea rows="5" name="fxglcs" ng-model="safeManage.fxglcs" required maxlength="1000" ng-disabled="true"></textarea>
84
-											</label>
85
-										</section>
86
-									</div>
87
-									<div class="row">
88
-										<section class="col col-md-4">
89
-											<label class="label">隐患等级<span style="color: red;">*</span></label>
90
-											<label class="select">
91
-												<select ng-model="safeManage.yhdj" name="yhdj" ng-disabled="isEdit" required>
92
-												    <option value="">请选择</option>
93
-													<option value="0">一般隐患</option>
94
-													<option value="1">重大事故隐患</option>
95
-												</select><i></i>
96
-											</label>
97
-										</section>
98
-									</div>
99
-									<div class="row">
100
-										<section class="col col-md-12">
101
-											<label class="label">隐患信息<span style="color: red;">*</span></label>
102
-											<label class="textarea">
103
-												<textarea rows="5" name="yhxx" ng-model="safeManage.yhxx" required ng-disabled="isEdit"
104
-														  placeholder="最多输入256个字符" maxlength="256"></textarea>
105
-											</label>
106
-										</section>
107
-									</div>
108
-									<div class="row">
109
-										<section class="col col-md-12">
110
-											<label class="label">隐患排查信息<span style="color: red;">*</span></label>
111
-											<label class="textarea">
112
-												<textarea rows="5" name="yhpcxx" ng-model="safeManage.yhpcxx" required ng-disabled="isEdit"
113
-														  placeholder="最多输入1000个字符" maxlength="1000"></textarea>
114
-											</label>
115
-										</section>
116
-									</div>
117
-									<div class="row">
118
-										<section class="col col-md-12">
119
-											<label class="label">隐患整改信息<span style="color: red;">*</span></label>
120
-											<label class="textarea">
121
-												<textarea rows="5" name="yhzgxx" ng-model="safeManage.yhzgxx" required ng-disabled="isEdit"
122
-														  placeholder="最多输入1000个字符" maxlength="1000"></textarea>
123
-											</label>
124
-										</section>
125
-									</div>
126
-									<div class="row">
127
-										<section class="col col-md-12">
128
-											<label class="label">隐患整改验收信息<span style="color: red;">*</span></label>
129
-											<label class="textarea">
130
-												<textarea rows="5" name="yhysxx" ng-model="safeManage.yhysxx" required ng-disabled="isEdit"
131
-														  placeholder="最多输入1000个字符" maxlength="1000"></textarea>
132
-											</label>
133
-										</section>
134
-									</div>
135
-									<div class="row">
136
-										<section class="col col-md-12">
137
-											<label class="label">事故基本信息<span style="color: red;">*</span></label>
138
-											<label class="textarea">
139
-												<textarea rows="5" name="sgjbxx" ng-model="safeManage.sgjbxx" required ng-disabled="isEdit"
140
-														  placeholder="最多输入1000个字符" maxlength="1000"></textarea>
141
-											</label>
142
-										</section>
143
-									</div>
144
-									<div class="row">
145
-										<section class="col col-md-4">
146
-											<label class="label">整改时限<span style="color: red;">*</span></label>
147
-											<label class="input">
148
-												<input id="zgsx" type="text" ng-model="safeManage.zgsx" class="form-control" onClick="WdatePicker({lang:'zh-cn'})"
149
-													   name="zgsx"  ng-disabled="isEdit" required/>
150
-											</label>
151
-										</section>
152
-										<section class="col col-4">
153
-											<label class="label">整改单位/部门<span style="color: red;">*</span></label>
154
-											<label class="input">
155
-												<input type="text" name="zrdw" ng-model="safeManage.zrdw" maxlength="128" ng-disabled="isEdit" required />
156
-											</label>
157
-										</section>
158
-										<section class="col col-4">
159
-											<label class="label">整改责任人<span style="color: red;">*</span></label>
160
-											<label class="input">
161
-												<input type="text" name="zrr" ng-model="safeManage.zrr" maxlength="32" ng-disabled="isEdit" required />
162
-											</label>
163
-										</section>
164
-									</div>
165
-									<div class="row">
166
-										<section class="col col-md-12">
167
-											<label class="label">整改验收信息<span style="color: red;">*</span></label>
168
-											<label class="textarea">
169
-												<textarea rows="5" name="zgysxx" ng-model="safeManage.zgysxx" ng-disabled="isEdit"
170
-														  placeholder="最多输入1024个字符" maxlength="1024" required></textarea>
171
-											</label>
172
-										</section>
173
-									</div>
174
-									<div class="row">
175
-										<section class="col col-md-4">
176
-											<label class="label">风险跟踪监管责任人<span style="color: red;">*</span></label>
177
-											<label class="input">
178
-												<input type="text" name="fxgzjgzrr" ng-model="safeManage.fxgzjgzrr" required ng-disabled="isEdit" maxlength="32" />
179
-											</label>
180
-										</section>
181
-										<section class="col col-md-4">
182
-										    <label class="label">整改状态<span style="color: red;">*</span></label>
183
-                                            <label class="select"> 
184
-                                                <select ng-model="safeManage.rectificationState"  name="rectificationState" ng-disabled="isEdit"  required>
185
-                                                	<option value="">--请选择--</option>
186
-                                                	<option value="0">未整改</option>
187
-                                                	<option value="1">整改中</option>
188
-                                                	<option value="2">已完成</option>
172
+                                            <label class="label">整改单位/部门<span style="color: red;">*</span></label>
173
+                                            <label class="input">
174
+                                                <input type="text" name="zrdw" ng-model="safeManage.zrdw"
175
+                                                       maxlength="128" ng-disabled="isEdit" required/>
176
+                                            </label>
177
+                                        </section>
178
+                                        <section class="col col-4">
179
+                                            <label class="label">整改责任人<span style="color: red;">*</span></label>
180
+                                            <label class="input">
181
+                                                <input type="text" name="zrr" ng-model="safeManage.zrr" maxlength="32"
182
+                                                       ng-disabled="isEdit" required/>
183
+                                            </label>
184
+                                        </section>
185
+                                    </div>
186
+                                    <div class="row">
187
+                                        <section class="col col-md-12">
188
+                                            <label class="label">整改验收信息<span style="color: red;">*</span></label>
189
+                                            <label class="textarea">
190
+												<textarea rows="5" name="zgysxx" ng-model="safeManage.zgysxx"
191
+                                                          ng-disabled="isEdit"
192
+                                                          placeholder="最多输入1024个字符" maxlength="1024"
193
+                                                          required></textarea>
194
+                                            </label>
195
+                                        </section>
196
+                                    </div>
197
+                                    <div class="row">
198
+                                        <section class="col col-md-4">
199
+                                            <label class="label">风险跟踪监管责任人<span style="color: red;">*</span></label>
200
+                                            <label class="input">
201
+                                                <input type="text" name="fxgzjgzrr" ng-model="safeManage.fxgzjgzrr"
202
+                                                       required ng-disabled="isEdit" maxlength="32"/>
203
+                                            </label>
204
+                                        </section>
205
+                                        <section class="col col-md-4">
206
+                                            <label class="label">整改状态<span style="color: red;">*</span></label>
207
+                                            <label class="select">
208
+                                                <select ng-model="safeManage.rectificationState"
209
+                                                        name="rectificationState" ng-disabled="isEdit" required>
210
+                                                    <option value="">--请选择--</option>
211
+                                                    <option value="0">未整改</option>
212
+                                                    <option value="1">整改中</option>
213
+                                                    <option value="2">已完成</option>
189 214
                                                 </select>
190 215
                                             </label>
191
-		                                </section>
192
-									</div>
193
-							
194
-								<header>
195
-                                	<h3>
196
-                                		<strong>附件信息</strong>
197
-                                		<a href-void class="btn btn-primary" ng-hide="isEdit" ng-click="addFile()"> <i class="fa fa-plus"></i>文件 </a>
198
-                               		</h3>
199
-                          		</header>
200
-								<div>
201
-                                	<table ng-hide="isNotEdit" class="table table-striped table-bordered table-hover" ng-repeat="linenumber in linenumbers" ng-click="clickFileInput(linenumber)" >
202
-		                                <!--第四3个tr开始 -->
203
-										<tr>
204
-											<th width='10%' >
205
-												<label class="label" style="margin-top: 9px;text-align: center;">附件</label>
206
-											</th>
207
-											<th colspan="4">
208
-												<section>
209
-									            	<div class="input input-file" style="margin-top: 9px; text-align: center; margin-right: 22px;">
210
-											            <span class="button" >
211
-											            	<input type="file" nv-file-select="" uploader="uploader" accept="*" options="id" id="fileInputId{{linenumber}}"
212
-											            		onchange="if (this.value != '')this.parentNode.nextSibling.value = this.value">
216
+                                        </section>
217
+                                    </div>
218
+
219
+                                    <header>
220
+                                        <h3>
221
+                                            <strong>附件信息</strong>
222
+                                            <a href-void class="btn btn-primary" ng-hide="isEdit" ng-click="addFile()">
223
+                                                <i class="fa fa-plus"></i>文件 </a>
224
+                                        </h3>
225
+                                    </header>
226
+                                    <div>
227
+                                        <table ng-hide="isNotEdit"
228
+                                               class="table table-striped table-bordered table-hover"
229
+                                               ng-repeat="linenumber in linenumbers"
230
+                                               ng-click="clickFileInput(linenumber)">
231
+                                            <!--第四3个tr开始 -->
232
+                                            <tr>
233
+                                                <th width='10%'>
234
+                                                    <label class="label"
235
+                                                           style="margin-top: 9px;text-align: center;">附件</label>
236
+                                                </th>
237
+                                                <th colspan="4">
238
+                                                    <section>
239
+                                                        <div class="input input-file"
240
+                                                             style="margin-top: 9px; text-align: center; margin-right: 22px;">
241
+											            <span class="button">
242
+											            	<input type="file" nv-file-select="" uploader="uploader"
243
+                                                                   accept="*" options="id"
244
+                                                                   id="fileInputId{{linenumber}}"
245
+                                                                   onchange="if (this.value != '')this.parentNode.nextSibling.value = this.value">
213 246
 											                	上传
214
-											            </span><input type="text" name="imgUrl" placeholder="" readonly="">
215
-										        	</div>
216
-									            </section>
217
-											</th>
218
-											<!-- <th width='10%' class="text-align-center">
219
-													<div class="input input-file" style="margin-top: 9px; text-align: center; margin-right: 16px;">
220
-														<span class="button"  ng-click="showFileByLinenumber(linenumber)">预览
221
-											            </span>
222
-													</div>
223
-											</th> -->
224
-											
225
-											<th width='10%'>
226
-	                                                <!-- <span class="button" style="margin-top: 9px; text-align: center; margin-right: 22px;" ng-click="deleteFileByLinenumber(linenumber)">删除
227
-										            </span> -->
228
-										            <div class="input input-file" style="margin-top: 9px; text-align: center; margin-right: 16px;">
229
-														<span class="button"  ng-click="deleteFileByLinenumber(linenumber)">删除
247
+											            </span><input type="text" name="imgUrl" placeholder=""
248
+                                                                      readonly="">
249
+                                                        </div>
250
+                                                    </section>
251
+                                                </th>
252
+                                                <!-- <th width='10%' class="text-align-center">
253
+                                                        <div class="input input-file" style="margin-top: 9px; text-align: center; margin-right: 16px;">
254
+                                                            <span class="button"  ng-click="showFileByLinenumber(linenumber)">预览
255
+                                                            </span>
256
+                                                        </div>
257
+                                                </th> -->
258
+
259
+                                                <th width='10%'>
260
+                                                    <!-- <span class="button" style="margin-top: 9px; text-align: center; margin-right: 22px;" ng-click="deleteFileByLinenumber(linenumber)">删除
261
+                                                    </span> -->
262
+                                                    <div class="input input-file"
263
+                                                         style="margin-top: 9px; text-align: center; margin-right: 16px;">
264
+														<span class="button"
265
+                                                              ng-click="deleteFileByLinenumber(linenumber)">删除
230 266
 											            </span>
231
-													</div>
232
-											</th>
233
-											
234
-										</tr>
235
-										<!--第四3个tr结束 -->
236
-		                             </table>
237
-                                
238
-                                	<!--回显文件的表格  -->
239
-                                	
240
-                                	<table class="table table-striped table-bordered table-hover" ng-repeat="file in fileList" >
241
-		                                <!--第四3个tr开始 -->
242
-										<tr>
243
-											<th width='10%' >
244
-												<label class="label" style="margin-top: 9px;text-align: center;">附件</label>
245
-											</th>
246
-											<th colspan="5">
247
-												<section >
248
-										            <input class="form-control" type="text" ng-model="file.originalFileName" readonly="">
249
-		                                		</section>
250
-											</th>
251
-											<th width='10%' >
252
-												<section style="margin-top: 9px; text-align: center; margin-right: 22px;">
253
-							                        <a class="btn btn-default" href-void ng-click="downloads(file.filePath, file.originalFileName)"><i class="fa fa-download"></i>下载</a>
254
-		                                		</section>
255
-											</th>
256
-											
257
-											<!-- <th width='10%'>
258
-												<section style="margin-top: 9px; text-align: center; margin-right: 22px;">
259
-							                        <a class="btn btn-default" href-void ng-click="showFile(file.filePath)"><i class="fa fa-download"></i>预览</a>
260
-		                                		</section>
261
-											</th>
262
-											<th width='10%'>
263
-												<section  ng-hide="isNotEdit" style="margin-top: 9px; text-align: center; margin-right: 22px;">
264
-							                        <a class="btn btn-default" href-void ng-click="deleteFile(file)"><i class="fa fa-trash-o"></i>删除</a>
265
-		                                		</section>
266
-											</th> -->
267
-											
268
-										</tr>
269
-										<!--第四3个tr结束 -->
270
-		                             </table>
271
-		                             </div>
272
-								</fieldset>
267
+                                                    </div>
268
+                                                </th>
269
+
270
+                                            </tr>
271
+                                            <!--第四3个tr结束 -->
272
+                                        </table>
273
+
274
+                                        <!--回显文件的表格  -->
275
+
276
+                                        <table class="table table-striped table-bordered table-hover"
277
+                                               ng-repeat="file in fileList">
278
+                                            <!--第四3个tr开始 -->
279
+                                            <tr>
280
+                                                <th width='10%'>
281
+                                                    <label class="label"
282
+                                                           style="margin-top: 9px;text-align: center;">附件</label>
283
+                                                </th>
284
+                                                <th colspan="5">
285
+                                                    <section>
286
+                                                        <input class="form-control" type="text"
287
+                                                               ng-model="file.originalFileName" readonly="">
288
+                                                    </section>
289
+                                                </th>
290
+                                                <th width='10%'>
291
+                                                    <section
292
+                                                            style="margin-top: 9px; text-align: center; margin-right: 22px;">
293
+                                                        <a class="btn btn-default" href-void
294
+                                                           ng-click="downloads(file.filePath, file.originalFileName)"><i
295
+                                                                class="fa fa-download"></i>下载</a>
296
+                                                    </section>
297
+                                                </th>
298
+
299
+                                                <!-- <th width='10%'>
300
+                                                    <section style="margin-top: 9px; text-align: center; margin-right: 22px;">
301
+                                                        <a class="btn btn-default" href-void ng-click="showFile(file.filePath)"><i class="fa fa-download"></i>预览</a>
302
+                                                    </section>
303
+                                                </th>
304
+                                                <th width='10%'>
305
+                                                    <section  ng-hide="isNotEdit" style="margin-top: 9px; text-align: center; margin-right: 22px;">
306
+                                                        <a class="btn btn-default" href-void ng-click="deleteFile(file)"><i class="fa fa-trash-o"></i>删除</a>
307
+                                                    </section>
308
+                                                </th> -->
309
+
310
+                                            </tr>
311
+                                            <!--第四3个tr结束 -->
312
+                                        </table>
313
+                                    </div>
314
+                                    <br>
315
+                                    <div class="row">
316
+                                        <section class="col col-4">
317
+                                            <label class="label">提交人:</label>
318
+                                            <label class="input">
319
+                                                <input type="text" ng-model="safeManage.commitPeople"
320
+                                                       name="commitPeople" ng-readonly="true" required>
321
+                                            </label>
322
+                                        </section>
323
+                                        <section class="col col-4">
324
+                                            <label class="label">提交时间:</label>
325
+                                            <label class="input">
326
+                                                <input type="text" ng-model="safeManage.commitTime" name="commitTime"
327
+                                                       ng-readonly="true" required>
328
+                                            </label>
329
+                                        </section>
330
+                                    </div>
331
+                                </fieldset>
273 332
 
274
-								<footer class="text-align-center">
275
-									<button type="button" class="btn btn-default" ng-click="retList()">取消</button>
276
-									<button type="button" ng-hide="isEdit" class="btn btn-primary" ng-click="saveData()">保存</button>
277
-								</footer>
278
-							</form>
279
-						</div>
280
-					</div>
281
-				</div>
282
-			</article>
283
-		</div>
284
-	</section>
285
-	<form id="download-form" method="post" target="_blank" style=" border-width:5px; margin-left:2%;position:relative;margin-right:2%;">
286
-		<input type="hidden" name="filePath" id="filePath">
287
-		<input type="hidden" name="originalFileName" id="originalFileName">
288
-		<input type="hidden" name="type" id="type">
289
-	</form>
333
+                                <footer class="text-align-center">
334
+                                    <button type="button" class="btn btn-default" ng-click="retList()">取消</button>
335
+                                    <button type="button" ng-hide="isEdit" class="btn btn-primary"
336
+                                            ng-click="saveData()">保存
337
+                                    </button>
338
+                                </footer>
339
+                            </form>
340
+                        </div>
341
+                    </div>
342
+                </div>
343
+            </article>
344
+        </div>
345
+    </section>
346
+    <form id="download-form" method="post" target="_blank"
347
+          style=" border-width:5px; margin-left:2%;position:relative;margin-right:2%;">
348
+        <input type="hidden" name="filePath" id="filePath">
349
+        <input type="hidden" name="originalFileName" id="originalFileName">
350
+        <input type="hidden" name="type" id="type">
351
+    </form>
290 352
 </div>

+ 50 - 293
src/main/resources/static/app/storage/views/keeper/keeper-edit.html

@@ -25,324 +25,81 @@
25 25
 								</header>
26 26
 								<fieldset>
27 27
 									<div class="row">
28
-										<section class="col col-3">
29
-											<label class="label">所属粮库</label> <label class="input">
30
-											<input ng-model="keeper.depotName" name="grainId{{$index}}"
31
-												   class="form-control" ng-readonly="true">
32
-										</label>
28
+										<section class="col col-4">
29
+											<label class="label">所属粮库</label> 
30
+											<label class="input">
31
+												<input ng-model="orgInfo.orgName" class="form-control" ng-readonly="true" />
32
+											</label>
33 33
 										</section>
34
-									<!--	<section class="col col-3">
35
-											<label class="label">保管员姓名<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
36
-											<label class="select">
37
-												<input type="text" ng-model="keeper.name" name="name"
38
-													   required ng-hide="true" />
39
-												<select ng-model="keeper.userId" ng-disabled="keepNameEdit" ng-change="setKeeperName()"
40
-														ng-options="user.userId as user.realName for user in keeperList"
41
-														class="form-control" required>
42
-													<option value="">&#45;&#45;请选择&#45;&#45;</option>
43
-												</select>
34
+										<section class="col col-4">
35
+											<label class="label">身份证号码</label>
36
+											<label class="input">
37
+												<!-- validCard=true validSfzhm="true"-->
38
+												<input type="text" ng-model="user.sfzhm" ng-readonly="true" />
44 39
 											</label>
45
-										</section>-->
46
-										<section class="col col-3">
47
-											<label class="label">岗位类型<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
48
-											<label class="select">
49
-												<select ng-model="keeper.postType"  ng-change="getUserList()"
50
-														ng-options="role.roleId as role.roleName for role in rolelist"
51
-														class="form-control" ng-disabled="true" required>
52
-													<option value="">--请选择--</option>
53
-												</select>
40
+										</section>
41
+										<section class="col col-4">
42
+											<label class="label">姓名</label>
43
+											<label class="input">
44
+												<input type="text" ng-model="user.realName" ng-readonly="true" />
54 45
 											</label>
55 46
 										</section>
56
-										<section class="col col-3">
57
-											<label class="label">职员姓名<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
47
+									</div>
48
+									<div class="row">
49
+										<section class="col col-4">
50
+											<label class="label">部门名称</label>
51
+											<label class="input">
52
+												<input type="text" ng-model="user.bmmc" ng-readonly="true" />
53
+											</label>
54
+										</section>
55
+										<section class="col col-4">
56
+											<label class="label">在岗状态</label>
58 57
 											<label class="select">
59
-												<input type="text" ng-model="keeper.name" name="name"
60
-													   required ng-hide="true" />
61
-												<select ng-model="keeper.userId" ng-disabled="isNotEdit" ng-change="setKeeperName()"
62
-														ng-options="user.userId as user.realName for user in keeperList" name="userId"
63
-														class="form-control" required>
58
+												<select ng-model="user.zgzt" name="zgzt" class="form-control" ng-disabled="true">
64 59
 													<option value="">--请选择--</option>
60
+													<option value="01">在岗</option>
61
+													<option value="02">已离职</option>
65 62
 												</select>
63
+												<i></i>
64
+											</label>
65
+										</section>
66
+										<section class="col col-4">
67
+											<label class="label">离职日期</label>
68
+											<label class="input">
69
+												<input type="text" ng-model="user.lzrq" class="form-control" ng-readonly="true" />
66 70
 											</label>
67 71
 										</section>
68
-
69 72
 									</div>
70 73
 									<div class="row">
71
-										<section class="col col-3">
72
-											<label class="label">性别<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
73
-											<label class="select">
74
-												<select ng-model="keeper.sex" ng-disabled="isNotEdit" name="sex"
75
-														ng-options="enum.enumid as enum.enumname for enum in dicDataList[5287]"
76
-														class="form-control" required>
77
-													<option value="">--请选择--</option>
78
-												</select>
74
+										<section class="col col-4">
75
+											<label class="label">固定电话</label>
76
+											<label class="input">
77
+												<input type="tel" ng-model="user.telphone" name="telphone" ng-readonly="true" />
79 78
 											</label>
80 79
 										</section>
81
-										<section class="col col-3">
82
-											<label class="label">联系方式<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
80
+										<section class="col col-4">
81
+											<label class="label">手机号</label>
83 82
 											<label class="input">
84 83
 												<i class="icon-prepend fa fa-mobile-phone"></i>
85
-												<input type="text" ng-model="keeper.phone" name="phone"
86
-													   placeholder="" ng-readonly="isNotEdit" maxlength="20" required>
84
+												<input type="text" ng-model="user.mobile" ng-readonly="true" />
87 85
 											</label>
88 86
 										</section>
89
-										<section class="col col-3">
90
-											<label class="label">出生日期<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
87
+										<section class="col col-4">
88
+											<label class="label">地址</label>
91 89
 											<label class="input">
92
-												<input type="text" ng-model="keeper.birthday"
93
-													   class="form-control datepicker" data-smart-datepicker
94
-													   name="birthday" ng-readonly="true" ng-disabled="isNotEdit" required>
90
+												<input type="text" ng-model="user.address" ng-readonly="true" />
95 91
 											</label>
96 92
 										</section>
97
-
98 93
 									</div>
99 94
 									<div class="row">
100
-										<section class="col col-3">
101
-											<label class="label">邮箱</label> <label class="input">
102
-											<i class="icon-prepend fa fa-envelope-o"></i>
103
-											<input type="email" ng-model="keeper.email" name="email"
104
-												   ng-readonly="isNotEdit" maxlength="30">
105
-										</label>
106
-										</section>
107
-										<section class="col col-3">
108
-											<label class="label">工作年限<span style="color: red;margin-left: 5px;text-align: center;">*</span></label> <label class="input">
109
-											<input type="number" ng-model="keeper.workYear" oninput="if(value.length>2) value=value.slice(0,2)"
110
-												   name="workYear" placeholder="" required ng-readonly="isNotEdit" />
111
-										</label>
112
-										</section>
113
-										<section class="col col-3">
114
-											<label class="label">政治面貌</label> <label class="select">
115
-											<select ng-model="keeper.political" ng-disabled="isNotEdit"
116
-													ng-options="enum.enumid as enum.enumname for enum in dicDataList[1043]"
117
-													class="form-control">
118
-												<option value="">--请选择--</option>
119
-											</select>
120
-										</label>
95
+										<section class="col col-4">
96
+											<label class="label">邮箱</label>
97
+											<label class="input">
98
+												<input type="text" ng-model="user.email" ng-readonly="true" />
99
+											</label>
121 100
 										</section>
122 101
 
123 102
 									</div>
124
-									<div class="row">
125
-										<section class="col col-3">
126
-											<label class="label">入党时间</label> <label class="input">
127
-											<input type="text" ng-model="keeper.isdepartmentTime" name="isdepartmentTime"
128
-												   class="form-control datepicker" ng-readonly="true" data-smart-datepicker ng-disabled="isNotEdit" />
129
-										</label>
130
-									</section>
131
-									</div>
132
-									<!--<div class="row">
133
-										<section class="col col-8">
134
-											<label class="label">所管仓房</label> <label class="textarea">
135
-												<textarea rows="5" ng-model="keeper.houseId" name="仓房"
136
-														  placeholder="" ng-disabled="true"></textarea>
137
-										</label>
138
-										</section>
139
-										<section class="col col-3">
140
-											<label class="label">保管员头像</label>
141
-											<div class="input input-file">
142
-												<span class="button">
143
-									            	<input type="file" nv-file-select="" uploader="uploader" accept="image/*" ng-hide="isNotEdit">
144
-									                	浏览
145
-									            </span><input type="text" ng-model="keeper.avatorUrl" placeholder="" ng-disabled="true">
146
-											</div>
147
-										</section>
148
-									</div>-->
149
-								</fieldset>
150
-								<header>
151
-									<h3>
152
-										<strong>学历学位情况</strong>&nbsp;&nbsp; <a
153
-											class="btn btn-primary btn-circle"
154
-											ng-click="addEducation(keeper.id,1)" ng-hide="isNotEdit">新增</a>
155
-									</h3>
156
-								</header>
157
-								<fieldset>
158
-									<div ng-repeat="keeperedu in addXwxl">
159
-										<input type="hidden" ng-model="keeperedu.datatype" />
160
-										<input type="hidden" ng-model="keeperedu.keeperId" />
161
-										<input type="hidden" ng-model="keeperedu.id" />
162
-										<div class="row">
163
-											<section class="col col-2">
164
-												<label class="label">教育形式<span style="color: red;margin-left: 5px;text-align: center;">*</span></label> <label class="select">
165
-												<select ng-options="enum.enumid as enum.enumname for enum in dicDataList[5291]"
166
-														ng-model="keeperedu.type" name="type{{$index}}"
167
-														class="form-control" ng-disabled="isNotEdit" required>
168
-													<option value="">--请选择--</option>
169
-												</select>
170
-											</label>
171
-											</section>
172
-											<section class="col col-2">
173
-												<label class="label">毕业院校<span style="color: red;margin-left: 5px;text-align: center;">*</span></label> <label class="input">
174
-												<input type="text" ng-model="keeperedu.college" maxlength="30"
175
-													   name="college{{$index}}" placeholder="" required ng-readonly="isNotEdit" />
176
-											</label>
177
-											</section>
178
-											<section class="col col-2">
179
-												<label class="label">专业<span style="color: red;margin-left: 5px;text-align: center;">*</span></label> <label class="input">
180
-												<input type="text" ng-model="keeperedu.department" maxlength="20"
181
-													   name="department{{$index}}" placeholder="" required ng-readonly="isNotEdit" />
182
-											</label>
183
-											</section>
184
-											<section class="col col-2">
185
-												<label class="label">学位</label> <label class="input">
186
-												<input type="text" ng-model="keeperedu.degree" maxlength="20"
187
-													   name="degree{{$index}}" placeholder="" ng-readonly="isNotEdit">
188
-											</label>
189
-											</section>
190
-											<section class="col col-2">
191
-												<label class="label">学历</label> <label class="select">
192
-												<select ng-model="keeperedu.education" name="education{{$index}}"
193
-														ng-options="enum.enumid as enum.enumname for enum in dicDataList[5294]"
194
-														class="form-control" ng-disabled="isNotEdit"></select>
195
-											</label>
196
-											</section>
197
-											<section class="col col-2">
198
-												<label class="label"> </label>
199
-												<label class="input">
200
-													<a ng-hide="isNotEdit" class="btn btn-primary btn-circle" ng-click="delRow(keeper.id,1,keeperedu)">删除</a>
201
-												</label>
202
-											</section>
203
-										</div>
204
-									</div>
205
-								</fieldset>
206
-								<header>
207
-									<h3>
208
-										<strong>专业技术职称</strong>&nbsp;&nbsp; <a ng-hide="isNotEdit"
209
-																			   class="btn btn-primary btn-circle" ng-click="addEducation(keeper.id,2)">新增</a>
210
-									</h3>
211
-								</header>
212
-								<fieldset>
213
-									<div ng-repeat="zyjszc in addZyjs">
214
-										<input type="hidden" ng-model="zyjszc.datatype" />
215
-										<input type="hidden" ng-model="zyjszc.keeperId" />
216
-										<input type="hidden" ng-model="zyjszc.id" />
217
-										<div class="row">
218
-											<section class="col col-2">
219
-												<label class="label">专业<span style="color: red;margin-left: 5px;text-align: center;">*</span></label> <label class="input">
220
-												<input type="text" ng-model="zyjszc.department" maxlength="20"
221
-													   name="departmente{{$index}}" required ng-readonly="isNotEdit" />
222
-											</label>
223
-											</section>
224
-											<section class="col col-2">
225
-												<label class="label">级别<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
226
-												<label class="select">
227
-													<select ng-options="enum.enumid as enum.enumname for enum in dicDataList[5303]"
228
-															ng-model="zyjszc.rank" name="rankes{{$index}}"
229
-															class="form-control" ng-disabled="isNotEdit" required>
230
-														<option value="">--请选择--</option>
231
-													</select>
232
-												</label>
233
-											</section>
234
-											<section class="col col-2">
235
-												<label class="label">颁证机构</label> <label class="input">
236
-												<input type="text" ng-model="zyjszc.issueFacility" maxlength="20"
237
-													   name="issueFacility{{$index}}" placeholder="" ng-readonly="isNotEdit">
238
-											</label>
239
-											</section>
240
-											<section class="col col-2">
241
-												<label class="label">颁证年月</label> <label class="input">
242
-												<input type="text" ng-model="zyjszc.issueTime"
243
-													   class="form-control datepicker" data-smart-datepicker
244
-													   name="issueTime{{$index}}" placeholder="" ng-readonly="true" ng-disabled="isNotEdit">
245
-											</label>
246
-											</section>
247
-											<section class="col col-2">
248
-												<label class="label"> </label>
249
-												<label class="input">
250
-													<a ng-hide="isNotEdit" class="btn btn-primary btn-circle" ng-click="delRow(keeper.id,2,zyjszc)">删除</a>
251
-												</label>
252
-											</section>
253
-										</div>
254
-									</div>
255
-								</fieldset>
256
-								<header>
257
-									<h3>
258
-										<strong>职业资格及等级</strong>&nbsp;&nbsp; <a ng-hide="isNotEdit"
259
-																				class="btn btn-primary btn-circle" ng-click="addEducation(keeper.id,3)">新增</a>
260
-									</h3>
261
-								</header>
262
-								<fieldset>
263
-									<div ng-repeat="zyzg in addZyzg">
264
-										<input type="hidden" ng-model="zyzg.datatype" />
265
-										<input type="hidden" ng-model="zyzg.keeperId" />
266
-										<input type="hidden" ng-model="zyzg.id" />
267
-										<div class="row">
268
-											<section class="col col-2">
269
-												<label class="label">专业<span style="color: red;margin-left: 5px;text-align: center;">*</span></label> <label class="select">
270
-												<select ng-model="zyzg.occupation" name="occupation{{$index}}"
271
-														ng-options="enum.enumid as enum.enumname for enum in dicDataList[5307]"
272
-														class="form-control" required ng-disabled="isNotEdit">
273
-													<option value="">--请选择--</option>
274
-												</select>
275
-											</label>
276
-											</section>
277
-											<section class="col col-2">
278
-												<label class="label">等级<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
279
-												<label class="select">
280
-													<select ng-model="zyzg.rank" name="rank{{$index}}"
281
-															ng-options="enum.enumid as enum.enumname for enum in dicDataList[5310]"
282
-															class="form-control" ng-disabled="isNotEdit" required>
283
-														<option value="">--请选择--</option>
284
-													</select>
285
-												</label>
286
-											</section>
287
-											<section class="col col-2">
288
-												<label class="label">颁证机构</label> <label class="input">
289
-												<input type="text" ng-model="zyzg.issueFacility" maxlength="20"
290
-													   name="issueFacility{{$index}}" placeholder="" ng-readonly="isNotEdit">
291
-											</label>
292
-											</section>
293
-											<section class="col col-2">
294
-												<label class="label">颁证年月</label> <label class="input">
295
-												<input type="text" ng-model="zyzg.issueTime"
296
-													   class="form-control datepicker" data-smart-datepicker
297
-													   name="issueTime{{$index}}" placeholder="" ng-readonly="true" ng-disabled="isNotEdit">
298
-											</label>
299
-											</section>
300
-											<section class="col col-2">
301
-												<label class="label"></label>
302
-												<label class="input">
303
-													<a ng-hide="isNotEdit" class="btn btn-primary btn-circle" ng-click="delRow(keeper.id,3,zyzg)">删除</a>
304
-												</label>
305
-											</section>
306
-										</div>
307
-									</div>
308
-								</fieldset>
309
-								<header>
310
-									<h3>
311
-										<strong>上岗证</strong>
312
-									</h3>
313
-								</header>
314
-								<fieldset>
315
-									<div ng-repeat="sgz in addSgz">
316
-										<input type="hidden" ng-model="sgz.datatype" />
317
-										<input type="hidden" ng-model="sgz.keeperId" />
318
-										<input type="hidden" ng-model="sgz.id" />
319
-										<div class="row">
320
-											<section class="col col-3">
321
-												<label class="label">专业<span style="color: red;margin-left: 5px;text-align: center;">*</span></label> <label class="input">
322
-												<input type="text" ng-model="sgz.department" maxlength="20"
323
-													   name="departments{{$index}}" required ng-readonly="isNotEdit" />
324
-											</label>
325
-											</section>
326
-											<section class="col col-3">
327
-												<label class="label">颁证机构</label> <label class="input">
328
-												<input type="text" ng-model="sgz.issueFacility" maxlength="20"
329
-													   name="issueFacility" placeholder="" ng-readonly="isNotEdit">
330
-											</label>
331
-											</section>
332
-											<section class="col col-3">
333
-												<label class="label">颁证年月</label> <label class="input">
334
-												<input type="text" ng-model="sgz.issueTime"
335
-													   class="form-control datepicker" data-smart-datepicker
336
-													   name="issueTime" placeholder="" ng-readonly="true" ng-disabled="isNotEdit">
337
-											</label>
338
-											</section>
339
-										</div>
340
-									</div>
341
-								</fieldset>
342
-									<div class="modal-footer text-align-center">
343
-										<button ui-sref="app.keeper.keeperview"
344
-											class="btn btn-default btn-lg" data-dismiss="modal">取消</button>
345
-									</div>
346 103
 								</fieldset>
347 104
 							</form>
348 105
 						</div>

+ 7 - 7
src/main/resources/static/app/storage/views/keeper/keeper-list.html

@@ -40,23 +40,23 @@
40 40
 										<th data-hide="expand">所属粮库</th>
41 41
 										<th data-hide="expand">保管员姓名</th>
42 42
 										<th data-class="expand">性别</th>
43
-										<th data-class="expand">联系电话</th>
43
+										<th data-class="expand">手机号</th>
44 44
 										<th data-class="expand">邮箱</th>
45
-										<th data-hide="expand">出生日期</th>
45
+										<th data-hide="expand">身份证号</th>
46 46
 										<th data-hide="expand">操作</th>
47 47
 									</tr>
48 48
 									</thead>
49 49
 
50 50
 									<tbody>
51 51
 									<tr ng-repeat="keeper in pageInfo.list">
52
-										<td>{{keeper.depotName}}</td>
53
-										<td>{{keeper.name}}</td>
52
+										<td>{{orgInfo.orgName}}</td>
53
+										<td>{{keeper.realName}}</td>
54 54
 										<td>{{dicData[keeper.sex]}}</td>
55
-										<td>{{keeper.phone}}</td>
55
+										<td>{{keeper.mobile}}</td>
56 56
 										<td>{{keeper.email}}</td>
57
-										<td>{{keeper.birthday | date:'yyyy-MM-dd'}}</td>
57
+										<td>{{keeper.sfzhm}}</td>
58 58
 										<td>
59
-											<a href-void ng-click="keeperView(keeper.id)">
59
+											<a href-void ng-click="keeperView(keeper)">
60 60
 												<i class="fa fa-info-circle"></i>查看
61 61
 											</a>
62 62
 										</td>

+ 1 - 1
src/main/resources/static/app/storage/views/keeper/keeper-transfer-add.html

@@ -47,7 +47,7 @@
47 47
 											<label class="label">接收人:<span style="color: red;">*</span></label>
48 48
 											<label class="input">
49 49
 												<select ng-model="keepertransfer.receiveUser"  id="receive" value=""
50
-														ng-options="user.userId as user.name for user in receiveUsers" ng-disabled="isNotEdit" name="receiveUser"
50
+														ng-options="user.userId as user.realName for user in receiveUsers" ng-disabled="isNotEdit" name="receiveUser"
51 51
 														class="form-control input-sm" required>
52 52
 													<option value="">--请选择--</option>
53 53
 												</select>

+ 30 - 0
src/main/resources/static/app/storage/views/qualitycheck/qualitycheck-first-editEatScore.html

@@ -0,0 +1,30 @@
1
+<div class="modal-content">
2
+	<div class="modal-header">
3
+		<button type="button" class="close" ng-click="cancel(500)">
4
+			&times;</button>
5
+		<h4 class="modal-title" id="myModalLabel">更新存储指标信息</h4>
6
+	</div>
7
+
8
+	<div class="modal-body">
9
+		<form id="gxcczbxx-form" name='gxcczbxx-form'
10
+			class="smart-form ng-pristine ng-valid"
11
+			data-validator-option="validateOptions" novalidate="novalidate">
12
+			<fieldset>
13
+				<div class="row">
14
+					<section class="col col-12">
15
+						<label class="label">小麦品尝评分值<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
16
+						<label class="input">
17
+							<input type="text" ng-model="xmpcpfz" name="xmpcpfz" class="form-control" required />
18
+						</label>
19
+					</section>
20
+				</div>
21
+			</fieldset>
22
+		</form>
23
+	</div>
24
+	<div class="modal-footer">
25
+		<button ng-click="save()" type="button" ng-hide="isNotEdit"
26
+			class="btn btn-primary">提交</button>
27
+		<button ng-click="cancel(500)" class="btn btn-default"
28
+			data-dismiss="modal">取消</button>
29
+	</div>
30
+</div>

+ 24 - 7
src/main/resources/static/app/storage/views/qualitycheck/qualitycheck-firstcheck-edit.html

@@ -259,7 +259,7 @@
259 259
 											<section class="col col-3">
260 260
 												<label class="label">检验机构:<span style="color: red;">*</span></label>
261 261
 												<label class="input">
262
-													<input type="text" ng-model="qualitycheck.acceptUnite" ng-readonly="isNotEdit" name="acceptUnite"
262
+													<input type="text" ng-model="qualitycheck.acceptUnite" ng-readonly="true" name="acceptUnite"
263 263
 														   placeholder="检验机构" required>
264 264
 												</label>
265 265
 											</section>
@@ -1572,10 +1572,10 @@
1572 1572
 														</td>
1573 1573
 													</tr>
1574 1574
 													<tr>
1575
-														<td class="text-center" colspan="2">粗细度%</td>
1575
+														<td class="text-center" colspan="2">外观形态</td>
1576 1576
 														<td colspan="2">
1577 1577
 															<label class="input">
1578
-																<input type="text" ng-model="qualitycheckInspection.coarseness" name="coarseness" ng-readonly="isNotEdit" validNumber=true>
1578
+																<input type="text" ng-model="qualitycheckInspection.wgxt" name="wgxt" ng-readonly="isNotEdit" />
1579 1579
 															</label>
1580 1580
 														</td>
1581 1581
 														<td class="text-center" colspan="2">气味、口味</td>
@@ -1586,7 +1586,7 @@
1586 1586
 														</td>
1587 1587
 													</tr>
1588 1588
 													<tr>
1589
-														<td class="text-center" colspan="2">面筋质%(以湿重计)</td>
1589
+														<td class="text-center" colspan="2">湿面筋含量/%</td>
1590 1590
 														<td colspan="2">
1591 1591
 															<label class="input">
1592 1592
 																<input type="text" ng-model="qualitycheckInspection.gluten" name="gluten" ng-readonly="isNotEdit" validNumber=true>
@@ -1787,6 +1787,23 @@
1787 1787
 									</tr>
1788 1788
 									<!--第四3个tr结束 -->
1789 1789
 								</table>
1790
+								<!--提交人 提交时间-->
1791
+								<fieldset>
1792
+									<div class="row">
1793
+										<section class="col col-3">
1794
+											<label class="label">提交人:</label>
1795
+											<label class="input">
1796
+												<input type="text" ng-model="qualitycheck.commitPeople" name="commitPeople" ng-readonly="true" required>
1797
+											</label>
1798
+										</section>
1799
+										<section class="col col-3">
1800
+											<label class="label">提交时间:</label>
1801
+											<label class="input">
1802
+												<input type="text" ng-model="qualitycheck.commitTime" name="commitTime" ng-readonly="true" required>
1803
+											</label>
1804
+										</section>
1805
+									</div>
1806
+								</fieldset>
1790 1807
 								<!-- 附件 end -->
1791 1808
 									<fieldset>
1792 1809
 										<footer class="modal-footer text-align-center">
@@ -2801,9 +2818,9 @@
2801 2818
 						</td>
2802 2819
 					</tr>
2803 2820
 					<tr>
2804
-						<td colspan="2" style="height:30px;vertical-align: middle;text-align: center;">粗细度%</td>
2821
+						<td colspan="2" style="height:30px;vertical-align: middle;text-align: center;">外观形态</td>
2805 2822
 						<td colspan="2" style="vertical-align: middle;text-align: center; color:#888;">
2806
-							{{qualitycheckInspection.coarseness}}
2823
+							{{qualitycheckInspection.wgxt}}
2807 2824
 						</td>
2808 2825
 						<td colspan="2" style="vertical-align: middle;text-align: center;">气味、口味</td>
2809 2826
 						<td colspan="2" style="vertical-align: middle;text-align: center; color:#888;">
@@ -2811,7 +2828,7 @@
2811 2828
 						</td>
2812 2829
 					</tr>
2813 2830
 					<tr>
2814
-						<td colspan="2" style="height:30px;vertical-align: middle;text-align: center;">面筋质%(以湿重计)</td>
2831
+						<td colspan="2" style="height:30px;vertical-align: middle;text-align: center;">湿面筋含量/%</td>
2815 2832
 						<td colspan="6" style="vertical-align: middle;text-align: center; color:#888;">
2816 2833
 							{{qualitycheckInspection.gluten}}>
2817 2834
 						</td>

+ 0 - 0
src/main/resources/static/app/storage/views/qualitycheck/qualitycheck-firstcheck-list.html


Some files were not shown because too many files changed in this diff