gaodd 2 jaren geleden
bovenliggende
commit
46cdbadc49

+ 6 - 0
src/main/resources/static/app/business/customer/controller/customerSaveCtrl.js

@@ -151,6 +151,12 @@ angular.module('app.business').controller("customerSaveCtrl", function($scope, $
151
     	var checkNumber = /^[0-9]{1,30}$/g;
151
     	var checkNumber = /^[0-9]{1,30}$/g;
152
     	return this.optional(element)||(checkNumber.test(value));
152
     	return this.optional(element)||(checkNumber.test(value));
153
     },"请输入正确的开户账号!");
153
     },"请输入正确的开户账号!");
154
+    
155
+    $.validator.addMethod("validYzbm",function(value,element, params) {
156
+    	var checkNumber = /^[0-9]{6}$/g;
157
+    	return this.optional(element)||(checkNumber.test(value));
158
+    },"请输入正确的邮政编码!");
159
+    
154
 
160
 
155
     // 返回.
161
     // 返回.
156
     $scope.retList = function () {
162
     $scope.retList = function () {

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

@@ -224,7 +224,7 @@
224
                                         <section class="col col-4">
224
                                         <section class="col col-4">
225
                                             <label class="label">邮政编码</label>
225
                                             <label class="label">邮政编码</label>
226
                                             <label class="input">
226
                                             <label class="input">
227
-                                                <input class="form-control" type="text" ng-model="customer.yzbm" ng-readonly="isNotEdit" name="yzbm">
227
+                                                <input class="form-control" type="text" ng-model="customer.yzbm" ng-readonly="isNotEdit" name="yzbm" validYzbm=true>
228
 
228
 
229
                                             </label>
229
                                             </label>
230
                                         </section>
230
                                         </section>
@@ -441,7 +441,7 @@
441
                                         <section class="col col-4">
441
                                         <section class="col col-4">
442
                                             <label class="label">邮政编码</label>
442
                                             <label class="label">邮政编码</label>
443
                                             <label class="input">
443
                                             <label class="input">
444
-                                                <input class="form-control" type="text" ng-model="customer.yzbm" ng-readonly="isNotEdit" name="yzbm">
444
+                                                <input class="form-control" type="text" ng-model="customer.yzbm" ng-readonly="isNotEdit" name="yzbm" validYzbm=true>
445
                                             </label>
445
                                             </label>
446
                                         </section>
446
                                         </section>
447
                                     </div>
447
                                     </div>

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

@@ -48,7 +48,7 @@ angular.module('app.storage').controller("safeManageCtrl", function($scope, $roo
48
 
48
 
49
 })
49
 })
50
 .controller("safeManageEditCtrl", function($scope, $state, $rootScope, $http, $filter, $location, $stateParams,FileUploader,
50
 .controller("safeManageEditCtrl", function($scope, $state, $rootScope, $http, $filter, $location, $stateParams,FileUploader,
51
-										safeManageService,$uibModal,APP_CONFIG) {
51
+										safeManageService,businessFileService,$uibModal,APP_CONFIG) {
52
 	// 防止重复提交标记
52
 	// 防止重复提交标记
53
 	$scope.saveFlag = false;
53
 	$scope.saveFlag = false;
54
 
54