fanxw 2 yıl önce
ebeveyn
işleme
be1f0f799a

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

@@ -926,12 +926,12 @@ angular.module('app.storage')
926 926
                 var rksj = new Date($scope.qualitycheck.inputTime.replace( /\-/g, "\/"));
927 927
                 var qysj = new Date($scope.qualitycheck.chooseTime.replace( /\-/g, "\/"));
928 928
                 var jysj = new Date($scope.qualitycheck.checkTime.replace( /\-/g, "\/"));
929
-                if (rksj!= "" && jysj!= "" && rksj >= jysj) {
930
-                    alert( "入库日期应该早于检验日期!");
929
+                if (rksj!= "" && qysj!= "" && rksj > qysj) {
930
+                    alert( "入库日期应该早于扦样时间!");
931 931
                     return false;
932 932
                 }
933 933
 
934
-                if (qysj!= "" && jysj!= "" && qysj >= jysj) {
934
+                if (qysj!= "" && jysj!= "" && qysj > jysj) {
935 935
                     alert( "扦样日期应该早于检验日期!");
936 936
                     return false;
937 937
                 }
@@ -943,7 +943,9 @@ angular.module('app.storage')
943 943
                     }
944 944
                 });
945 945
                 var qfrq = new Date($scope.qualitycheck.qfrq.replace( /\-/g, "\/"));
946
-                if (qfrq!= "" && jysj!= "" && qfrq <= jysj) {
946
+                var n_jysj = $scope.qualitycheck.checkTime.substr(0,10);
947
+                var new_jysj = new Date(n_jysj.replace( /\-/g, "\/"));
948
+                if (qfrq!= "" && new_jysj!= "" && qfrq < new_jysj) {
947 949
                     alert( "签发日期不得早于检验时间!");
948 950
                     return false;
949 951
                 }

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

@@ -95,7 +95,7 @@
95 95
                                             <label class="label">备注(其它药剂名称等)</label>
96 96
                                             <label class="input">
97 97
                                                 <input class="form-control" type="text" ng-model="drugInfo.remark" name="remark"
98
-                                                       ng-readonly="isNotEdit" placeholder="其它药剂或试剂名称" maxlength="200" />
98
+                                                       ng-readonly="isNotEdit" placeholder="其它药剂或试剂名称" maxlength="100" />
99 99
                                             </label>
100 100
                                         </section>
101 101
                                     </div>

+ 4 - 0
src/main/resources/static/app/storage/grainCard/controller/checkFoodSituationListCtrl.js

@@ -13,6 +13,10 @@ angular.module('app.storage').controller("checkFoodSituationListCtrl",
13 13
                         $scope.GrainCardByIdObj.grainRights = "市粮食局";
14 14
                     } else if ($scope.GrainCardByIdObj.grainRights == "03") {
15 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 = "区购销公司";
16 20
                     } else {
17 21
                         $scope.GrainCardByIdObj.grainRights = $rootScope.orgInfo.orgName;
18 22
                     }

+ 2 - 0
src/main/resources/static/app/storage/grainCard/views/grainCarAdd.html

@@ -186,6 +186,8 @@
186 186
                                                             <option value="01">市粮食局</option>
187 187
                                                             <option value="02">{{orgInfo.orgName}}</option>
188 188
                                                             <option value="03">区发改委</option>
189
+                                                            <option value="04">市储备公司</option>
190
+															<option value="05">区购销公司</option>
189 191
                                                         </select><i></i>
190 192
                                                     </label>
191 193
                                                 </section>

+ 2 - 0
src/main/resources/static/app/storage/grainCard/views/oilCarAdd.html

@@ -166,6 +166,8 @@
166 166
                                                             <option value="01">市粮食局</option>
167 167
                                                             <option value="02">{{orgInfo.orgName}}</option>
168 168
                                                             <option value="03">区发改委</option>
169
+                                                            <option value="04">市储备公司</option>
170
+															<option value="05">区购销公司</option>
169 171
                                                         </select><i></i>
170 172
                                                     </label>
171 173
                                                 </section>