Commit ec24e2b17bec95d155747827e21fc61065d18efe
1 parent
373bae16
登陆验证码提交
Showing
2 changed files
with
19 additions
and
1 deletions
.env.development
src/views/mycar/index.vue
... | ... | @@ -119,7 +119,7 @@ |
119 | 119 | debugger |
120 | 120 | |
121 | 121 | if(null != that.alredyBoundCar && that.alredyBoundCar.length >0){ |
122 | - if(that.alredyBoundCar.length >5){ | |
122 | + if(that.alredyBoundCar.length ==5){ | |
123 | 123 | this.$message({ |
124 | 124 | type: 'error', |
125 | 125 | message: '最多只能绑定5个车牌!' |
... | ... | @@ -158,6 +158,23 @@ |
158 | 158 | } |
159 | 159 | } |
160 | 160 | |
161 | + }else{ | |
162 | + let checkReq ={ | |
163 | + carNumber:carNum | |
164 | + } | |
165 | + checkCarNumIsbind(checkReq).then(response =>{ | |
166 | + if(response.code =='8888'){ | |
167 | + if(null != response.data && null != response.data.id){ | |
168 | + this.$message({ | |
169 | + type: 'error', | |
170 | + message: '改车牌已被其他车主绑定!' | |
171 | + }); | |
172 | + return false | |
173 | + }else{ | |
174 | + that.bondCarNum(custId,carNum) | |
175 | + } | |
176 | + } | |
177 | + }); | |
161 | 178 | } |
162 | 179 | |
163 | 180 | }); | ... | ... |