gaodd 2 gadi atpakaļ
vecāks
revīzija
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 151
     	var checkNumber = /^[0-9]{1,30}$/g;
152 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 162
     $scope.retList = function () {

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

@@ -224,7 +224,7 @@
224 224
                                         <section class="col col-4">
225 225
                                             <label class="label">邮政编码</label>
226 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 229
                                             </label>
230 230
                                         </section>
@@ -441,7 +441,7 @@
441 441
                                         <section class="col col-4">
442 442
                                             <label class="label">邮政编码</label>
443 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 445
                                             </label>
446 446
                                         </section>
447 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 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 53
 	$scope.saveFlag = false;
54 54