Kaynağa Gözat

Merge branch 'master' of http://101.36.160.140:21044/depot-tianjin/depot-web-tianjin.git

gaodd 2 yıl önce
ebeveyn
işleme
83ba9c6bea

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

@@ -64,7 +64,7 @@
64 64
 											<label class="label">货位名称:</label>
65 65
 											<label class="select">
66 66
 												<select ng-model="businessNoticeReceive.wareHouseId" name="wareHouseId" 
67
-														ng-options="ware.warehouseId as ware.warehouseName for ware in warehouseList"
67
+														ng-options="ware.warehouseId as ware.warehouseName for ware in wareList"
68 68
 														class="form-control" ng-disabled="isNotEdit">
69 69
 													<option value="">--请选择--</option>
70 70
 												</select>

+ 27 - 2
src/main/resources/static/app/intelligent/fumigation/controller/fumHomeWorkCtrl.js

@@ -141,6 +141,7 @@ angular.module('app.intelligent')
141 141
                 $scope.fumigationProcess.xzczry = $scope.fumigation.xzczry;//熏蒸作业人员
142 142
                 $scope.fumigationProcess.operationSupervisor = $scope.fumigation.operationSupervisor;//熏蒸作业负责人
143 143
                 $scope.fumigationProcess.djcxz = $scope.fumigation.djcxz;//第几次熏蒸
144
+                $scope.fumigationProcess.perforatedDate = $filter('date')($scope.fumigationProcess.perforatedDate, "yyyy-MM-dd");
144 145
 
145 146
             },function(data){
146 147
                 console.log(data);
@@ -212,6 +213,18 @@ angular.module('app.intelligent')
212 213
                 return this.optional(element)|| true;
213 214
             }
214 215
         },"不能填写无,暂无,空等选项!");
216
+        
217
+        // 自定义验证:散气日期
218
+        $.validator.addMethod("sqrq",function(value,element, params) {
219
+        	var xzkssj = $filter('date')($scope.fumigation.fumigationStart.substring(0,10), "yyyy-MM-dd");
220
+        	var xzjssj = $filter('date')($scope.fumigation.fumigationEnd.substring(0,10), "yyyy-MM-dd");
221
+        	var sqrq = $filter('date')(value, "yyyy-MM-dd");
222
+            if(sqrq >= xzjssj || sqrq <= xzkssj){
223
+                return this.optional(element)|| false;
224
+            }else{
225
+                return this.optional(element)|| true;
226
+            }
227
+        },"散气日期必须在熏蒸开始时间与结束时间范围内,且不可等于!");
215 228
 
216 229
         // 返回.
217 230
         $scope.retList = function () {
@@ -434,7 +447,7 @@ angular.module('app.intelligent')
434 447
                 
435 448
                     $scope.fumigationProcess.bulkStartTime = $filter('date')(data.processEdit.bulkStartTime, "yyyy-MM-dd HH:mm:ss");
436 449
                     $scope.fumigationProcess.bulkEndTime = $filter('date')(data.processEdit.bulkEndTime, "yyyy-MM-dd HH:mm:ss");
437
-                    $scope.fumigationProcess.perforatedDate = $filter('date')(data.processEdit.perforatedDate, "yyyy-MM-dd HH:mm:ss");
450
+                    $scope.fumigationProcess.perforatedDate = $filter('date')(data.processEdit.perforatedDate, "yyyy-MM-dd");
438 451
                     $scope.fumigationAfter.checkInsectCageTime = $filter('date')(data.afterEdit.checkInsectCageTime, "yyyy-MM-dd HH:mm:ss");
439 452
                 }
440 453
 
@@ -463,7 +476,7 @@ angular.module('app.intelligent')
463 476
                 $scope.fumigationProcess = data.processEdit[0];
464 477
                 $scope.fumigationProcess.bulkStartTime = $filter('date')(data.processEdit[0].bulkStartTime, "yyyy-MM-dd HH:mm:ss");
465 478
                 $scope.fumigationProcess.bulkEndTime = $filter('date')(data.processEdit[0].bulkEndTime, "yyyy-MM-dd HH:mm:ss");
466
-                $scope.fumigationProcess.perforatedDate = $filter('date')(data.processEdit[0].perforatedDate, "yyyy-MM-dd HH:mm:ss");
479
+                $scope.fumigationProcess.perforatedDate = $filter('date')(data.processEdit[0].perforatedDate, "yyyy-MM-dd");
467 480
             },function(data){
468 481
                 console.log(data);
469 482
             });
@@ -509,6 +522,18 @@ angular.module('app.intelligent')
509 522
                 return this.optional(element)|| true;
510 523
             }
511 524
         },"不能填写无,暂无,空等选项!");
525
+        
526
+        // 自定义验证
527
+        $.validator.addMethod("czsjzysj",function(value,element, params) {
528
+        	var sqrq = $filter('date')($scope.fumigationProcess.perforatedDate.substring(0,10), "yyyy-MM-dd");
529
+        	var xzjssj = $filter('date')($scope.fumigation.fumigationEnd.substring(0,10), "yyyy-MM-dd");
530
+        	var czsjzysj = $filter('date')($("input[name='residueCollectionTime']").val(), "yyyy-MM-dd");
531
+            if(czsjzysj <= sqrq || czsjzysj >= xzjssj){
532
+                return this.optional(element)|| false;
533
+            }else{
534
+                return this.optional(element)|| true;
535
+            }
536
+        },"残渣收集作业时间必须大于散气日期!");
512 537
 
513 538
         // 返回.
514 539
         $scope.retList = function () {

+ 13 - 4
src/main/resources/static/app/intelligent/fumigation/views/homework/fumHomeWorkAfter-edit.html

@@ -248,8 +248,17 @@
248 248
                                                         </label>
249 249
                                                     </section>
250 250
                                                 </th>
251
-                                                <th></th>
252
-                                                <th></th>
251
+                                                <th>
252
+						                            <label class="label" style="margin-top: 9px; text-align: center">备注</label>
253
+						                        </th>
254
+						                        <th>
255
+						                            <section>
256
+						                                <label class="input">
257
+						                                    <input class="form-control" type="text" ng-model="fumigationAfter.remark"
258
+						                                     ng-readonly="isNotEdit" name="remark" />
259
+						                                </label>
260
+						                            </section>
261
+						                        </th>
253 262
                                             </tr>
254 263
                                         </table>
255 264
 
@@ -259,7 +268,7 @@
259 268
                                                     <label class="label" style="margin-top: 9px;text-align: center;">残渣处理</label>
260 269
                                                 </th>
261 270
                                                 <th>
262
-                                                    <label label class="label" style="margin-top: 9px;text-align: center;">残渣收集作业时间</label>
271
+                                                    <label label class="label" style="margin-top: 9px;text-align: center;">残渣收集作业时间<span style="color: red;text-align: center;">*</span></label>
263 272
                                                 </th>
264 273
                                                 <th>
265 274
                                                     <label label class="label" style="margin-top: 9px;text-align: center;">收集作业人数</label>
@@ -286,7 +295,7 @@
286 295
                                                         <label class="input">
287 296
                                                             <input class="form-control" type="text" ng-model="fumigationAfter.residueCollectionTime"
288 297
                                                                    ng-readonly="isNotEdit" name="residueCollectionTime"
289
-                                                                   onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd'})" />
298
+                                                                   onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd'})" czsjzysj=true required />
290 299
                                                         </label>
291 300
                                                     </section>
292 301
                                                 </th>

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

@@ -990,14 +990,14 @@
990 990
                           </section>
991 991
                         </th>
992 992
                         <th>
993
-                          <label class="label" style="margin-top: 9px; text-align: center">散气日期</label>
993
+                          <label class="label" style="margin-top: 9px; text-align: center">散气日期<span style="color: red;margin-left: 5px;text-align: center;">*</span></label>
994 994
                         </th>
995 995
                         <th>
996 996
                           <section>
997 997
                             <label class="input">
998 998
                               <input type="text" class="form-control" ng-model="fumigationProcess.perforatedDate"
999
-                                name="perforatedDate" onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})"
1000
-                                ng-disabled="isNotEdit" />
999
+                                name="perforatedDate" onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd'})"
1000
+                                ng-disabled="isNotEdit" sqrq=true required />
1001 1001
                             </label>
1002 1002
                           </section>
1003 1003
                         </th>
@@ -1104,8 +1104,17 @@
1104 1104
                             </label>
1105 1105
                           </section>
1106 1106
                         </th>
1107
-                        <th></th>
1108
-                        <th></th>
1107
+                        <th>
1108
+                          <label class="label" style="margin-top: 9px; text-align: center">备注</label>
1109
+                        </th>
1110
+                        <th>
1111
+                          <section>
1112
+                            <label class="input">
1113
+                              <input class="form-control" type="text" ng-model="fumigationProcess.remark"
1114
+                                ng-readonly="isNotEdit" name="remark" />
1115
+                            </label>
1116
+                          </section>
1117
+                        </th>
1109 1118
                       </tr>
1110 1119
 
1111 1120
                       <!-- 创建信息 -->

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

@@ -98,7 +98,7 @@
98 98
                                         <section class="col col-4">
99 99
                                             <label class="label">采购来源<span style="color: red;">*</span></label>
100 100
                                             <label class="input">
101
-                                                <input class="form-control" type="text" ng-model="drugStorage.cgly" ng-readonly="isNotEdit" name="cgly" required />
101
+                                                <input class="form-control" type="text" ng-model="drugStorage.cgly" placeholder="例如:采购平台统一采购、招标采购、单一来源采购等" ng-readonly="isNotEdit" name="cgly" required />
102 102
                                             </label>
103 103
                                         </section>
104 104
                                         <section class="col col-4">

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

@@ -80,7 +80,7 @@
80 80
 								</fieldset>
81 81
 								<fieldset>
82 82
 									<label class="control-label">费用描述:</label>
83
-									<textarea class="form-control" maxlength="300" ng-model="payment.payContent" rows="8" placeholder="最多可输入300字"></textarea>
83
+									<textarea class="form-control" maxlength="600" ng-model="payment.payContent" rows="8" placeholder="最多可输入600字"></textarea>
84 84
 								</fieldset>
85 85
 								<footer class="modal-footer text-align-center">
86 86
 									<a  class="btn btn-default" href-void="" href="#" ng-click="retList()">取消</a>