添加功能效验
Showing
14 changed files
with
1496 additions
and
239 deletions
1 | /** | ||
2 | * @description: 首次登记效验 | ||
3 | * @param {*} data | ||
4 | * @author: renchao | ||
5 | */ | ||
6 | export function formValidate (djlx) { | ||
7 | switch (djlx) { | ||
8 | case "100": | ||
9 | return fristValidate(); | ||
10 | case "200": | ||
11 | return transferValidate(); | ||
12 | case "300": | ||
13 | return changeValidate(); | ||
14 | case "400": | ||
15 | return logoutValidate(); | ||
16 | case "500": | ||
17 | return riviseValidate(); | ||
18 | case "901": | ||
19 | return renewalValidate(); | ||
20 | case "902": | ||
21 | return replaceValidate(); | ||
22 | } | ||
23 | } | ||
24 | |||
25 | /** | ||
26 | * @description: 首次登记效验 | ||
27 | * @param {*} data | ||
28 | * @author: renchao | ||
29 | */ | ||
30 | export function fristValidate () { | ||
31 | var formRules={ | ||
32 | 'diyaq.djyy': [ | ||
33 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
34 | ] | ||
35 | } | ||
36 | return formRules; | ||
37 | } | ||
38 | |||
39 | |||
40 | /** | ||
41 | * @description: 转移登记效验 | ||
42 | * @param {*} data | ||
43 | * @author: renchao | ||
44 | */ | ||
45 | export function transferValidate (data) { | ||
46 | |||
47 | } | ||
48 | |||
49 | /** | ||
50 | * @description: 变更登记效验 | ||
51 | * @param {*} data | ||
52 | * @author: renchao | ||
53 | */ | ||
54 | export function changeValidate (data) { | ||
55 | |||
56 | } | ||
57 | |||
58 | /** | ||
59 | * @description: 注销登记效验 | ||
60 | * @param {*} data | ||
61 | * @author: renchao | ||
62 | */ | ||
63 | export function logoutValidate (data) { | ||
64 | |||
65 | } | ||
66 | |||
67 | /** | ||
68 | * @description: 更正登记效验 | ||
69 | * @param {*} data | ||
70 | * @author: renchao | ||
71 | */ | ||
72 | export function riviseValidate (data) { | ||
73 | |||
74 | } | ||
75 | |||
76 | /** | ||
77 | * @description: 补证登记效验 | ||
78 | * @param {*} data | ||
79 | * @author: renchao | ||
80 | */ | ||
81 | export function renewalValidate (data) { | ||
82 | |||
83 | } | ||
84 | |||
85 | /** | ||
86 | * @description: 换证登记效验 | ||
87 | * @param {*} data | ||
88 | * @author: renchao | ||
89 | */ | ||
90 | export function replaceValidate (data) { | ||
91 | |||
92 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -13,7 +13,8 @@ | ... | @@ -13,7 +13,8 @@ |
13 | ref="ruleForm" | 13 | ref="ruleForm" |
14 | :label-position="flag ? 'top' : ''" | 14 | :label-position="flag ? 'top' : ''" |
15 | :inline="flag" | 15 | :inline="flag" |
16 | label-width="180px"> | 16 | label-width="180px" |
17 | > | ||
17 | <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''"> | 18 | <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''"> |
18 | <div class="slxx_title title-block"> | 19 | <div class="slxx_title title-block"> |
19 | 申请业务信息 | 20 | 申请业务信息 |
... | @@ -55,15 +56,16 @@ | ... | @@ -55,15 +56,16 @@ |
55 | </el-row> | 56 | </el-row> |
56 | <div class="slxx_title title-block"> | 57 | <div class="slxx_title title-block"> |
57 | <el-row> | 58 | <el-row> |
58 | <el-col :span="16"> | 59 | <el-col :span="16"> 抵押不动产情况 </el-col> |
59 | 抵押不动产情况 | 60 | <el-col |
60 | </el-col> | 61 | :span="4" |
61 | <el-col :span="4" v-if="ruleForm.sldy.djlx=='300'||ruleForm.sldy.djlx=='500'"> | 62 | v-if="ruleForm.sldy.djlx == '300' || ruleForm.sldy.djlx == '500'" |
63 | > | ||
62 | <el-button @click="compare">变化情况对比+</el-button> | 64 | <el-button @click="compare">变化情况对比+</el-button> |
63 | </el-col> | 65 | </el-col> |
64 | </el-row> | 66 | </el-row> |
65 | <div class="triangle"></div> | 67 | <div class="triangle"></div> |
66 | </div> | 68 | </div> |
67 | <el-row :gutter="10"> | 69 | <el-row :gutter="10"> |
68 | <el-col :span="8"> | 70 | <el-col :span="8"> |
69 | <el-form-item label="权利人:"> | 71 | <el-form-item label="权利人:"> |
... | @@ -141,13 +143,19 @@ | ... | @@ -141,13 +143,19 @@ |
141 | <el-input | 143 | <el-input |
142 | maxlength="12" | 144 | maxlength="12" |
143 | v-model="ruleForm.diyaq.dymj" | 145 | v-model="ruleForm.diyaq.dymj" |
144 | disabled></el-input> | 146 | disabled |
145 | <el-select disabled v-model="ruleForm.diyaq.mjdw" style="width: 68px"> | 147 | ></el-input> |
148 | <el-select | ||
149 | disabled | ||
150 | v-model="ruleForm.diyaq.mjdw" | ||
151 | style="width: 68px" | ||
152 | > | ||
146 | <el-option | 153 | <el-option |
147 | v-for="item in dictData['A7']" | 154 | v-for="item in dictData['A7']" |
148 | :key="item.dcode" | 155 | :key="item.dcode" |
149 | :label="item.dname" | 156 | :label="item.dname" |
150 | :value="item.dcode"> | 157 | :value="item.dcode" |
158 | > | ||
151 | </el-option> | 159 | </el-option> |
152 | </el-select> | 160 | </el-select> |
153 | </div> | 161 | </div> |
... | @@ -158,18 +166,19 @@ | ... | @@ -158,18 +166,19 @@ |
158 | <el-col :span="8"> | 166 | <el-col :span="8"> |
159 | <el-form-item | 167 | <el-form-item |
160 | label="是否禁止或者限制转让的约定:" | 168 | label="是否禁止或者限制转让的约定:" |
161 | label-width="200px"> | 169 | label-width="200px" |
170 | > | ||
162 | <el-radio-group | 171 | <el-radio-group |
163 | v-model="ruleForm.diyaq.sfczjzhxz" | 172 | v-model="ruleForm.diyaq.sfczjzhxz" |
164 | :disabled="!viewEdit || isJfOperation"> | 173 | :disabled="!viewEdit || isJfOperation" |
174 | > | ||
165 | <el-radio label="1">是</el-radio> | 175 | <el-radio label="1">是</el-radio> |
166 | <el-radio label="0">否</el-radio> | 176 | <el-radio label="0">否</el-radio> |
167 | </el-radio-group> | 177 | </el-radio-group> |
168 | </el-form-item> | 178 | </el-form-item> |
169 | </el-col> | 179 | </el-col> |
170 | <el-col :span="8"> | 180 | <el-col :span="8"> |
171 | <el-form-item | 181 | <el-form-item label="是否预告登记:"> |
172 | label="是否预告登记:"> | ||
173 | <el-radio-group v-model="ruleForm.diyaq.sfygdj" disabled> | 182 | <el-radio-group v-model="ruleForm.diyaq.sfygdj" disabled> |
174 | <el-radio label="1">是</el-radio> | 183 | <el-radio label="1">是</el-radio> |
175 | <el-radio label="0">否</el-radio> | 184 | <el-radio label="0">否</el-radio> |
... | @@ -180,27 +189,31 @@ | ... | @@ -180,27 +189,31 @@ |
180 | <el-form-item label="债务履行期限:"> | 189 | <el-form-item label="债务履行期限:"> |
181 | <el-input | 190 | <el-input |
182 | v-model="ruleForm.diyaq.dyqx" | 191 | v-model="ruleForm.diyaq.dyqx" |
183 | :disabled="!viewEdit || isJfOperation"></el-input> | 192 | :disabled="!viewEdit || isJfOperation" |
193 | ></el-input> | ||
184 | </el-form-item> | 194 | </el-form-item> |
185 | </el-col> | 195 | </el-col> |
186 | </el-row> | 196 | </el-row> |
187 | 197 | ||
188 | <el-row :gutter="10"> | 198 | <el-row :gutter="10"> |
189 | <el-col :span="8" v-show="ruleForm.diyaq.dyfs == 1"> | 199 | <el-col :span="8" v-show="ruleForm.diyaq.dyfs == 1"> |
190 | <el-form-item label="被担保主债权数额:"> | 200 | <el-form-item label="被担保主债权数额:" prop="diyaq.bdbzzqse"> |
191 | <div style="display: flex"> | 201 | <div style="display: flex"> |
192 | <el-input | 202 | <el-input |
193 | v-model="ruleForm.diyaq.bdbzzqse" | 203 | v-model="ruleForm.diyaq.bdbzzqse" |
194 | :disabled="!viewEdit || isJfOperation" | 204 | :disabled="!viewEdit || isJfOperation" |
195 | style="width: 500%"></el-input> | 205 | style="width: 500%" |
206 | ></el-input> | ||
196 | <el-select | 207 | <el-select |
197 | v-model="ruleForm.diyaq.jedw" | 208 | v-model="ruleForm.diyaq.jedw" |
198 | :disabled="!viewEdit || isJfOperation"> | 209 | :disabled="!viewEdit || isJfOperation" |
210 | > | ||
199 | <el-option | 211 | <el-option |
200 | v-for="item in dictData['A57']" | 212 | v-for="item in dictData['A57']" |
201 | :key="item.dcode" | 213 | :key="item.dcode" |
202 | :label="item.dname" | 214 | :label="item.dname" |
203 | :value="item.dcode"> | 215 | :value="item.dcode" |
216 | > | ||
204 | </el-option> | 217 | </el-option> |
205 | </el-select> | 218 | </el-select> |
206 | </div> | 219 | </div> |
... | @@ -208,28 +221,47 @@ | ... | @@ -208,28 +221,47 @@ |
208 | </el-col> | 221 | </el-col> |
209 | 222 | ||
210 | <el-col :span="8" v-show="ruleForm.diyaq.dyfs == 2"> | 223 | <el-col :span="8" v-show="ruleForm.diyaq.dyfs == 2"> |
211 | <el-form-item label="最高债权额:"> | 224 | <el-form-item label="最高债权额:" prop="diyaq.zgzqse"> |
212 | <el-input | 225 | <div style="display: flex"> |
213 | v-model="ruleForm.diyaq.zgzqse" | 226 | <el-input |
214 | :disabled="!viewEdit || isJfOperation"></el-input> | 227 | v-model="ruleForm.diyaq.zgzqse" |
228 | :disabled="!viewEdit || isJfOperation" | ||
229 | style="width: 500%" | ||
230 | ></el-input> | ||
231 | <el-select | ||
232 | v-model="ruleForm.diyaq.jedw" | ||
233 | :disabled="!viewEdit || isJfOperation" | ||
234 | > | ||
235 | <el-option | ||
236 | v-for="item in dictData['A57']" | ||
237 | :key="item.dcode" | ||
238 | :label="item.dname" | ||
239 | :value="item.dcode" | ||
240 | > | ||
241 | </el-option> | ||
242 | </el-select> | ||
243 | </div> | ||
215 | </el-form-item> | 244 | </el-form-item> |
216 | </el-col> | 245 | </el-col> |
217 | 246 | ||
218 | <el-col :span="8"> | 247 | <el-col :span="8"> |
219 | <el-form-item label="债务履行起始时间:"> | 248 | <el-form-item label="债务履行起始时间:" prop="diyaq.zwlxqssj"> |
220 | <el-date-picker | 249 | <el-date-picker |
221 | v-model="ruleForm.diyaq.zwlxqssj" | 250 | v-model="ruleForm.diyaq.zwlxqssj" |
222 | :disabled="!viewEdit || isJfOperation" | 251 | :disabled="!viewEdit || isJfOperation" |
223 | type="date"> | 252 | type="date" |
253 | > | ||
224 | </el-date-picker> | 254 | </el-date-picker> |
225 | </el-form-item> | 255 | </el-form-item> |
226 | </el-col> | 256 | </el-col> |
227 | <el-col :span="8"> | 257 | <el-col :span="8"> |
228 | <el-form-item label="债务履行结束时间:"> | 258 | <el-form-item label="债务履行结束时间:" prop="diyaq.zwlxjssj"> |
229 | <el-date-picker class="width100" | 259 | <el-date-picker |
260 | class="width100" | ||
230 | v-model="ruleForm.diyaq.zwlxjssj" | 261 | v-model="ruleForm.diyaq.zwlxjssj" |
231 | :disabled="!viewEdit || isJfOperation" | 262 | :disabled="!viewEdit || isJfOperation" |
232 | type="date"> | 263 | type="date" |
264 | > | ||
233 | </el-date-picker> | 265 | </el-date-picker> |
234 | </el-form-item> | 266 | </el-form-item> |
235 | </el-col> | 267 | </el-col> |
... | @@ -240,8 +272,9 @@ | ... | @@ -240,8 +272,9 @@ |
240 | <el-input | 272 | <el-input |
241 | v-model="ruleForm.diyaq.dbfw" | 273 | v-model="ruleForm.diyaq.dbfw" |
242 | :disabled=" | 274 | :disabled=" |
243 | (ruleForm.sldy.djlx == '300' || !viewEdit) || isJfOperation | 275 | ruleForm.sldy.djlx == '300' || !viewEdit || isJfOperation |
244 | "></el-input> | 276 | " |
277 | ></el-input> | ||
245 | </el-form-item> | 278 | </el-form-item> |
246 | </el-col> | 279 | </el-col> |
247 | </el-row> | 280 | </el-row> |
... | @@ -250,7 +283,8 @@ | ... | @@ -250,7 +283,8 @@ |
250 | <el-form-item label="最高债权确定事实和数额:"> | 283 | <el-form-item label="最高债权确定事实和数额:"> |
251 | <el-input | 284 | <el-input |
252 | v-model="ruleForm.diyaq.zgzqqdss" | 285 | v-model="ruleForm.diyaq.zgzqqdss" |
253 | :disabled="!viewEdit || isJfOperation"></el-input> | 286 | :disabled="!viewEdit || isJfOperation" |
287 | ></el-input> | ||
254 | </el-form-item> | 288 | </el-form-item> |
255 | </el-col> | 289 | </el-col> |
256 | </el-row> | 290 | </el-row> |
... | @@ -262,7 +296,8 @@ | ... | @@ -262,7 +296,8 @@ |
262 | maxlength="500" | 296 | maxlength="500" |
263 | show-word-limit | 297 | show-word-limit |
264 | v-model="ruleForm.diyaq.fj" | 298 | v-model="ruleForm.diyaq.fj" |
265 | :disabled="!viewEdit || isJfOperation"></el-input> | 299 | :disabled="!viewEdit || isJfOperation" |
300 | ></el-input> | ||
266 | </el-form-item> | 301 | </el-form-item> |
267 | </el-col> | 302 | </el-col> |
268 | </el-row> | 303 | </el-row> |
... | @@ -276,7 +311,8 @@ | ... | @@ -276,7 +311,8 @@ |
276 | <el-form-item label="共有方式:"> | 311 | <el-form-item label="共有方式:"> |
277 | <el-radio-group | 312 | <el-radio-group |
278 | :disabled="!viewEdit" | 313 | :disabled="!viewEdit" |
279 | v-model="ruleForm.sldy.gyfs"> | 314 | v-model="ruleForm.sldy.gyfs" |
315 | > | ||
280 | <el-radio label="0">单独所有</el-radio> | 316 | <el-radio label="0">单独所有</el-radio> |
281 | <el-radio label="1">共同共有</el-radio> | 317 | <el-radio label="1">共同共有</el-radio> |
282 | <el-radio label="2">按份所有</el-radio> | 318 | <el-radio label="2">按份所有</el-radio> |
... | @@ -289,7 +325,8 @@ | ... | @@ -289,7 +325,8 @@ |
289 | <el-radio-group | 325 | <el-radio-group |
290 | v-model="ruleForm.sldy.sqfbcz" | 326 | v-model="ruleForm.sldy.sqfbcz" |
291 | :disabled="!viewEdit" | 327 | :disabled="!viewEdit" |
292 | @input="updaterow()"> | 328 | @input="updaterow()" |
329 | > | ||
293 | <el-radio :label="1">是</el-radio> | 330 | <el-radio :label="1">是</el-radio> |
294 | <el-radio :label="0">否</el-radio> | 331 | <el-radio :label="0">否</el-radio> |
295 | </el-radio-group> | 332 | </el-radio-group> |
... | @@ -297,17 +334,20 @@ | ... | @@ -297,17 +334,20 @@ |
297 | </el-col> | 334 | </el-col> |
298 | <el-col | 335 | <el-col |
299 | :span="6" | 336 | :span="6" |
300 | v-show="ruleForm.sldy.sqfbcz == '0' && ruleForm.sldy.gyfs != '0'"> | 337 | v-show="ruleForm.sldy.sqfbcz == '0' && ruleForm.sldy.gyfs != '0'" |
338 | > | ||
301 | <el-form-item label="持证人:"> | 339 | <el-form-item label="持证人:"> |
302 | <el-select | 340 | <el-select |
303 | v-model="czr" | 341 | v-model="czr" |
304 | placeholder="持证人" | 342 | placeholder="持证人" |
305 | :disabled="!viewEdit"> | 343 | :disabled="!viewEdit" |
344 | > | ||
306 | <el-option | 345 | <el-option |
307 | v-for="(item,index) in czrOptions" | 346 | v-for="(item, index) in czrOptions" |
308 | :key="index" | 347 | :key="index" |
309 | :label="item.sqrmc" | 348 | :label="item.sqrmc" |
310 | :value="item.id"> | 349 | :value="item.id" |
350 | > | ||
311 | </el-option> | 351 | </el-option> |
312 | </el-select> | 352 | </el-select> |
313 | </el-form-item> | 353 | </el-form-item> |
... | @@ -317,7 +357,8 @@ | ... | @@ -317,7 +357,8 @@ |
317 | :tableData="ruleForm.qlrList" | 357 | :tableData="ruleForm.qlrList" |
318 | :disabled="viewEdit" | 358 | :disabled="viewEdit" |
319 | @upDateQlrxxList="upDateQlrxxList" | 359 | @upDateQlrxxList="upDateQlrxxList" |
320 | :gyfs="ruleForm.sldy.gyfs" /> | 360 | :gyfs="ruleForm.sldy.gyfs" |
361 | /> | ||
321 | <div class="slxx_title title-block"> | 362 | <div class="slxx_title title-block"> |
322 | 抵押人信息 | 363 | 抵押人信息 |
323 | <div class="triangle"></div> | 364 | <div class="triangle"></div> |
... | @@ -325,7 +366,8 @@ | ... | @@ -325,7 +366,8 @@ |
325 | <qlrCommonTable | 366 | <qlrCommonTable |
326 | :tableData="ruleForm.ywrList" | 367 | :tableData="ruleForm.ywrList" |
327 | :disabled="viewEdit" | 368 | :disabled="viewEdit" |
328 | @upDateQlrxxList="upDateYwrxxList" /> | 369 | @upDateQlrxxList="upDateYwrxxList" |
370 | /> | ||
329 | 371 | ||
330 | <div class="slxx_title title-block"> | 372 | <div class="slxx_title title-block"> |
331 | 登记原因 | 373 | 登记原因 |
... | @@ -336,12 +378,14 @@ | ... | @@ -336,12 +378,14 @@ |
336 | <el-form-item | 378 | <el-form-item |
337 | v-if="ruleForm.sldy.djlx == '400'" | 379 | v-if="ruleForm.sldy.djlx == '400'" |
338 | label="注销抵押原因:" | 380 | label="注销抵押原因:" |
339 | prop="djyy"> | 381 | prop="diyaq.zxdyyy" |
382 | > | ||
340 | <el-input | 383 | <el-input |
341 | class="textArea" | 384 | class="textArea" |
342 | type="textarea" | 385 | type="textarea" |
343 | :disabled="!viewEdit" | 386 | :disabled="!viewEdit" |
344 | v-model="ruleForm.diyaq.zxdyyy"> | 387 | v-model="ruleForm.diyaq.zxdyyy" |
388 | > | ||
345 | </el-input> | 389 | </el-input> |
346 | </el-form-item> | 390 | </el-form-item> |
347 | <el-form-item v-else label="登记原因:" prop="diyaq.djyy"> | 391 | <el-form-item v-else label="登记原因:" prop="diyaq.djyy"> |
... | @@ -351,7 +395,8 @@ | ... | @@ -351,7 +395,8 @@ |
351 | maxlength="500" | 395 | maxlength="500" |
352 | show-word-limit | 396 | show-word-limit |
353 | :disabled="!viewEdit" | 397 | :disabled="!viewEdit" |
354 | v-model="ruleForm.diyaq.djyy"> | 398 | v-model="ruleForm.diyaq.djyy" |
399 | > | ||
355 | </el-input> | 400 | </el-input> |
356 | </el-form-item> | 401 | </el-form-item> |
357 | </el-col> | 402 | </el-col> |
... | @@ -366,13 +411,54 @@ | ... | @@ -366,13 +411,54 @@ |
366 | </div> | 411 | </div> |
367 | </template> | 412 | </template> |
368 | <script> | 413 | <script> |
369 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; | 414 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; |
370 | import { Init, saveData } from "@/api/workflow/diyaqFlow.js"; | 415 | import { Init, saveData } from "@/api/workflow/diyaqFlow.js"; |
371 | import { mapGetters } from "vuex"; | 416 | import { formValidate } from "./slxxValidate"; |
372 | export default { | 417 | import { mapGetters } from "vuex"; |
373 | mounted () { | 418 | export default { |
374 | let that = this | 419 | mounted() { |
375 | this.loading = true | 420 | this.initData(); |
421 | }, | ||
422 | components: { qlrCommonTable }, | ||
423 | computed: { | ||
424 | ...mapGetters(["dictData", "flag"]), | ||
425 | }, | ||
426 | data() { | ||
427 | return { | ||
428 | isSave: true, | ||
429 | // 键名转换,方法默认是label和children进行树状渲染 | ||
430 | normalizer(node) { | ||
431 | //方法 | ||
432 | if (node.children == null || node.children == "null") { | ||
433 | delete node.children; | ||
434 | } | ||
435 | return { | ||
436 | id: node.dcode, | ||
437 | label: node.dname, | ||
438 | }; | ||
439 | }, | ||
440 | loading: false, | ||
441 | //表单是否可操作 | ||
442 | viewEdit: true, | ||
443 | disabled: true, | ||
444 | czrOptions: [], | ||
445 | czr: "", | ||
446 | ruleForm: { | ||
447 | slsq: {}, | ||
448 | ssQlxx: {}, | ||
449 | diyaq: {}, | ||
450 | gyfs: "", | ||
451 | }, | ||
452 | isJfOperation: false, | ||
453 | //传递参数 | ||
454 | propsParam: {}, | ||
455 | rules: {}, | ||
456 | }; | ||
457 | }, | ||
458 | methods: { | ||
459 | initData() { | ||
460 | let that = this; | ||
461 | this.loading = true; | ||
376 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 462 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
377 | this.propsParam = this.$attrs; | 463 | this.propsParam = this.$attrs; |
378 | var formdata = new FormData(); | 464 | var formdata = new FormData(); |
... | @@ -383,219 +469,181 @@ | ... | @@ -383,219 +469,181 @@ |
383 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); | 469 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); |
384 | formdata.append("djlx", this.propsParam.djlx); | 470 | formdata.append("djlx", this.propsParam.djlx); |
385 | formdata.append("isEdit", this.viewEdit); | 471 | formdata.append("isEdit", this.viewEdit); |
386 | Init(formdata).then((res) => { | 472 | Init(formdata) |
387 | setTimeout(() => { | 473 | .then((res) => { |
388 | this.loading = false | 474 | setTimeout(() => { |
389 | }, 200) | 475 | this.loading = false; |
390 | if (res.code === 200 && res.result) { | 476 | }, 200); |
391 | that.ruleForm = res.result; | 477 | if (res.code === 200 && res.result) { |
392 | that.ruleForm.qlrList.forEach((item) => { | 478 | that.ruleForm = res.result; |
393 | item.id = item.bsmSqr | 479 | that.ruleForm.qlrList.forEach((item) => { |
394 | if (item.sfczr == '1') { | 480 | item.id = item.bsmSqr; |
395 | that.czr = item.bsmSqr | 481 | if (item.sfczr == "1") { |
396 | } | 482 | that.czr = item.bsmSqr; |
397 | }) | 483 | } |
398 | that.czrOptions = this.ruleForm.qlrList; | 484 | }); |
399 | that.isSave = that.viewEdit | 485 | that.czrOptions = this.ruleForm.qlrList; |
400 | } else { | 486 | that.isSave = that.viewEdit; |
401 | that.isSave = false | 487 | that.rules = formValidate(that.ruleForm.qlxx.djlx,that.ruleForm.diyaq.dyfs); |
402 | that.$confirm(res.message, '提示', { | 488 | } else { |
403 | cancelButtonText: '取消', | 489 | that.isSave = false; |
404 | showConfirmButton: false, | 490 | that.$confirm(res.message, "提示", { |
405 | type: 'warning' | 491 | cancelButtonText: "取消", |
406 | }) | 492 | showConfirmButton: false, |
407 | } | 493 | type: "warning", |
408 | }).catch(() => { | 494 | }); |
409 | this.loading = false | ||
410 | }) | ||
411 | }, | ||
412 | components: { qlrCommonTable }, | ||
413 | computed: { | ||
414 | ...mapGetters(["dictData", "flag"]), | ||
415 | }, | ||
416 | data () { | ||
417 | return { | ||
418 | isSave: true, | ||
419 | // 键名转换,方法默认是label和children进行树状渲染 | ||
420 | normalizer (node) { | ||
421 | //方法 | ||
422 | if (node.children == null || node.children == "null") { | ||
423 | delete node.children; | ||
424 | } | 495 | } |
425 | return { | 496 | }) |
426 | id: node.dcode, | 497 | .catch(() => { |
427 | label: node.dname, | 498 | this.loading = false; |
428 | }; | 499 | }); |
429 | }, | ||
430 | loading: false, | ||
431 | //表单是否可操作 | ||
432 | viewEdit: true, | ||
433 | disabled: true, | ||
434 | czrOptions: [], | ||
435 | czr: "", | ||
436 | ruleForm: { | ||
437 | slsq: {}, | ||
438 | ssQlxx: {}, | ||
439 | diyaq: {}, | ||
440 | gyfs: "", | ||
441 | }, | ||
442 | isJfOperation: false, | ||
443 | //传递参数 | ||
444 | propsParam: {}, | ||
445 | rules: { | ||
446 | 'diyaq.djyy': [ | ||
447 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
448 | ] | ||
449 | } | ||
450 | } | ||
451 | }, | 500 | }, |
452 | methods: { | 501 | /** |
453 | /** | 502 | * @description: onSubmitClick |
454 | * @description: onSubmitClick | 503 | * @author: renchao |
455 | * @author: renchao | 504 | */ |
456 | */ | 505 | onSubmitClick() { |
457 | onSubmitClick () { | 506 | let that = this; |
458 | let that = this; | 507 | if (this.ruleForm.qlrList.length == 0) { |
459 | if (this.ruleForm.qlrList.length == 0) { | 508 | this.$message({ |
509 | showClose: true, | ||
510 | message: "请确认抵押权人信息", | ||
511 | type: "error", | ||
512 | }); | ||
513 | return false; | ||
514 | } | ||
515 | if (this.ruleForm.sldy.gyfs == "0") { | ||
516 | if (this.ruleForm.qlrList.length > 1) { | ||
460 | this.$message({ | 517 | this.$message({ |
461 | showClose: true, | 518 | showClose: true, |
462 | message: "请确认抵押权人信息", | 519 | message: "共有方式:单独所有,权利人只能是一个人", |
463 | type: "error", | 520 | type: "error", |
464 | }); | 521 | }); |
465 | return false; | 522 | return false; |
466 | } | 523 | } |
467 | if (this.ruleForm.sldy.gyfs == "0") { | 524 | this.ruleForm.qlrList[0].sfczr = "1"; |
468 | if (this.ruleForm.qlrList.length > 1) { | 525 | } else { |
469 | this.$message({ | 526 | if (this.ruleForm.qlrList.length <= 1) { |
470 | showClose: true, | 527 | this.$message({ |
471 | message: "共有方式:单独所有,权利人只能是一个人", | 528 | showClose: true, |
472 | type: "error", | 529 | message: |
473 | }); | 530 | "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", |
474 | return false; | 531 | type: "error", |
475 | } | 532 | }); |
476 | this.ruleForm.qlrList[0].sfczr = "1"; | 533 | return false; |
534 | } | ||
535 | //是否分别持证 | ||
536 | if (this.ruleForm.sldy.sqfbcz == "1") { | ||
537 | //是 | ||
538 | this.ruleForm.qlrList.forEach((item, index) => { | ||
539 | item.sfczr = "1"; | ||
540 | }); | ||
477 | } else { | 541 | } else { |
478 | if (this.ruleForm.qlrList.length <= 1) { | 542 | if (that.czr === "") { |
479 | this.$message({ | 543 | that.$message({ |
480 | showClose: true, | 544 | showClose: true, |
481 | message: | 545 | message: "请选择持证人", |
482 | "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", | ||
483 | type: "error", | 546 | type: "error", |
484 | }); | 547 | }); |
485 | return false; | 548 | return false; |
486 | } | 549 | } |
487 | //是否分别持证 | 550 | this.ruleForm.qlrList.forEach((item, index) => { |
488 | if (this.ruleForm.sldy.sqfbcz == "1") { | 551 | if (item.id == that.czr) { |
489 | //是 | ||
490 | this.ruleForm.qlrList.forEach((item, index) => { | ||
491 | item.sfczr = "1"; | 552 | item.sfczr = "1"; |
492 | }); | 553 | } else { |
493 | } else { | 554 | item.sfczr = "0"; |
494 | if (that.czr === '') { | 555 | } |
556 | }); | ||
557 | } | ||
558 | } | ||
559 | |||
560 | this.$refs["ruleForm"].validate((valid) => { | ||
561 | if (valid) { | ||
562 | that.$store.dispatch("user/refreshPage", false); | ||
563 | saveData(that.ruleForm, that.propsParam.djlx).then((res) => { | ||
564 | if (res.code === 200) { | ||
565 | that.$message({ | ||
566 | showClose: true, | ||
567 | message: "保存成功!", | ||
568 | type: "success", | ||
569 | }); | ||
570 | that.$store.dispatch("user/refreshPage", true); | ||
571 | } else { | ||
495 | that.$message({ | 572 | that.$message({ |
496 | showClose: true, | 573 | showClose: true, |
497 | message: "请选择持证人", | 574 | message: res.message, |
498 | type: "error" | 575 | type: "error", |
499 | }); | 576 | }); |
500 | return false; | ||
501 | } | 577 | } |
502 | this.ruleForm.qlrList.forEach((item, index) => { | 578 | }); |
503 | if (item.id == that.czr) { | 579 | } else { |
504 | item.sfczr = "1" | 580 | that.$message({ |
505 | } else { | 581 | showClose: true, |
506 | item.sfczr = "0" | 582 | message: "请输入红框内的相关信息!", |
507 | } | 583 | type: "error", |
508 | }) | 584 | }); |
509 | } | 585 | return false; |
510 | } | ||
511 | |||
512 | this.$refs['ruleForm'].validate((valid) => { | ||
513 | if (valid) { | ||
514 | that.$store.dispatch("user/refreshPage", false); | ||
515 | saveData(that.ruleForm, that.propsParam.djlx).then((res) => { | ||
516 | if (res.code === 200) { | ||
517 | that.$message({ | ||
518 | showClose: true, | ||
519 | message: "保存成功!", | ||
520 | type: "success", | ||
521 | }); | ||
522 | that.$store.dispatch("user/refreshPage", true); | ||
523 | } else { | ||
524 | that.$message({ | ||
525 | showClose: true, | ||
526 | message: res.message, | ||
527 | type: "error", | ||
528 | }); | ||
529 | } | ||
530 | }) | ||
531 | |||
532 | } else { | ||
533 | this.$message({ | ||
534 | showClose: true, | ||
535 | message: "请输入登记原因", | ||
536 | type: "error" | ||
537 | }) | ||
538 | return false | ||
539 | } | ||
540 | }) | ||
541 | }, | ||
542 | /** | ||
543 | * @description: 更新权利人信息 | ||
544 | * @param {*} val | ||
545 | * @author: renchao | ||
546 | */ | ||
547 | upDateQlrxxList (val) { | ||
548 | if (!_.isEqual(val, this.ruleForm.qlrList)) { | ||
549 | this.ruleForm.qlrList = _.cloneDeep(val); | ||
550 | this.czrOptions = this.ruleForm.qlrList; | ||
551 | } | 586 | } |
552 | this.num = 0 | 587 | }); |
553 | this.ruleForm.qlrList.forEach(item => { | 588 | }, |
554 | if (item.id == this.czr) { | 589 | /** |
555 | this.num++ | 590 | * @description: 更新权利人信息 |
556 | } | 591 | * @param {*} val |
557 | }) | 592 | * @author: renchao |
558 | if (this.num == 0) { | 593 | */ |
559 | this.czr = '' | 594 | upDateQlrxxList(val) { |
595 | if (!_.isEqual(val, this.ruleForm.qlrList)) { | ||
596 | this.ruleForm.qlrList = _.cloneDeep(val); | ||
597 | this.czrOptions = this.ruleForm.qlrList; | ||
598 | } | ||
599 | this.num = 0; | ||
600 | this.ruleForm.qlrList.forEach((item) => { | ||
601 | if (item.id == this.czr) { | ||
602 | this.num++; | ||
560 | } | 603 | } |
561 | 604 | }); | |
562 | }, | 605 | if (this.num == 0) { |
563 | /** | ||
564 | * @description: 是否持证人变化 | ||
565 | * @author: renchao | ||
566 | */ | ||
567 | updaterow () { | ||
568 | this.czr = ""; | 606 | this.czr = ""; |
569 | }, | 607 | } |
570 | /** | 608 | }, |
571 | * @description: 更新义务人信息 | 609 | /** |
572 | * @param {*} val | 610 | * @description: 是否持证人变化 |
573 | * @author: renchao | 611 | * @author: renchao |
574 | */ | 612 | */ |
575 | upDateYwrxxList (val) { | 613 | updaterow() { |
576 | if (!_.isEqual(val, this.ruleForm.ywrList)) { | 614 | this.czr = ""; |
577 | this.ruleForm.ywrList = _.cloneDeep(val); | 615 | }, |
578 | } | 616 | /** |
579 | }, /** | 617 | * @description: 更新义务人信息 |
580 | * @description: compare | 618 | * @param {*} val |
581 | * @author: renchao | 619 | * @author: renchao |
582 | */ | 620 | */ |
583 | compare () { | 621 | upDateYwrxxList(val) { |
584 | this.$popupDialog( | 622 | if (!_.isEqual(val, this.ruleForm.ywrList)) { |
585 | this.ruleForm.qlxx.qllxmc, | 623 | this.ruleForm.ywrList = _.cloneDeep(val); |
586 | "registerBook/comparison", | 624 | } |
587 | { | 625 | } |
588 | bsmQlxx: this.ruleForm.qlxx.bsmQlxx, | 626 | /** |
589 | dqqllx: "FDCQ2", | 627 | * @description: compare |
590 | }, | 628 | * @author: renchao |
591 | "80%", | 629 | */, |
592 | true | 630 | compare() { |
593 | ); | 631 | this.$popupDialog( |
594 | }, | 632 | this.ruleForm.qlxx.qllxmc, |
633 | "registerBook/comparison", | ||
634 | { | ||
635 | bsmQlxx: this.ruleForm.qlxx.bsmQlxx, | ||
636 | dqqllx: "FDCQ2", | ||
637 | }, | ||
638 | "80%", | ||
639 | true | ||
640 | ); | ||
595 | }, | 641 | }, |
596 | }; | 642 | }, |
643 | }; | ||
597 | </script> | 644 | </script> |
598 | <style scoped lang="scss"> | 645 | <style scoped lang="scss"> |
599 | @import "~@/styles/public.scss"; | 646 | @import "~@/styles/public.scss"; |
600 | @import "~@/styles/slxx/slxx.scss"; | 647 | @import "~@/styles/slxx/slxx.scss"; |
601 | </style> | 648 | </style> |
649 | ./slxxValidate | ... | ... |
1 | /** | ||
2 | * @description: 首次登记效验 | ||
3 | * @param {*} data | ||
4 | * @author: renchao | ||
5 | */ | ||
6 | export function formValidate (djlx,dyfs) { | ||
7 | var formRules={ | ||
8 | 'diyaq.djyy': [ | ||
9 | { required: false, message: '请输入登记原因', trigger: 'blur' } | ||
10 | ], | ||
11 | 'diyaq.zxdyyy': [ | ||
12 | { required: false, message: '请输入注销登记原因', trigger: 'blur' } | ||
13 | ], | ||
14 | 'diyaq.zwlxqssj': [ | ||
15 | { required: false, message: '请选择债务履行起始时间', trigger: 'blur' } | ||
16 | ], | ||
17 | 'diyaq.zwlxjssj': [ | ||
18 | { required: false, message: '请选择债务履行起始时间', trigger: 'blur' } | ||
19 | ], | ||
20 | 'diyaq.bdbzzqse': [ | ||
21 | { required: false, message: '请输入被担保主债权数额', trigger: 'blur' } | ||
22 | ], | ||
23 | 'diyaq.zgzqse': [ | ||
24 | { required: false, message: '请输入最高债权额', trigger: 'blur' } | ||
25 | ] | ||
26 | } | ||
27 | if (djlx=="400") { | ||
28 | formRules["diyaq.zxdyyy"][0].required=true; | ||
29 | }else{ | ||
30 | if(dyfs=="1"){ | ||
31 | formRules["diyaq.bdbzzqse"][0].required=true; | ||
32 | }else{ | ||
33 | formRules["diyaq.zgzqse"][0].required=true; | ||
34 | } | ||
35 | formRules["diyaq.zwlxqssj"][0].required=true; | ||
36 | formRules["diyaq.zwlxjssj"][0].required=true; | ||
37 | formRules["diyaq.djyy"][0].required=true; | ||
38 | } | ||
39 | return formRules; | ||
40 | } | ||
41 | |||
42 | /** | ||
43 | * @description: 首次登记效验 | ||
44 | * @param {*} data | ||
45 | * @author: renchao | ||
46 | */ | ||
47 | export function fristValidate (formRules,dyfs) { | ||
48 | |||
49 | return formRules; | ||
50 | } | ||
51 | |||
52 | |||
53 | /** | ||
54 | * @description: 转移登记效验 | ||
55 | * @param {*} data | ||
56 | * @author: renchao | ||
57 | */ | ||
58 | export function transferValidate (data) { | ||
59 | |||
60 | } | ||
61 | |||
62 | /** | ||
63 | * @description: 变更登记效验 | ||
64 | * @param {*} data | ||
65 | * @author: renchao | ||
66 | */ | ||
67 | export function changeValidate (data) { | ||
68 | |||
69 | } | ||
70 | |||
71 | /** | ||
72 | * @description: 注销登记效验 | ||
73 | * @param {*} data | ||
74 | * @author: renchao | ||
75 | */ | ||
76 | export function logoutValidate (data) { | ||
77 | |||
78 | } | ||
79 | |||
80 | /** | ||
81 | * @description: 更正登记效验 | ||
82 | * @param {*} data | ||
83 | * @author: renchao | ||
84 | */ | ||
85 | export function riviseValidate (data) { | ||
86 | |||
87 | } | ||
88 | |||
89 | /** | ||
90 | * @description: 补证登记效验 | ||
91 | * @param {*} data | ||
92 | * @author: renchao | ||
93 | */ | ||
94 | export function renewalValidate (data) { | ||
95 | |||
96 | } | ||
97 | |||
98 | /** | ||
99 | * @description: 换证登记效验 | ||
100 | * @param {*} data | ||
101 | * @author: renchao | ||
102 | */ | ||
103 | export function replaceValidate (data) { | ||
104 | |||
105 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | /** | ||
2 | * @description: 首次登记效验 | ||
3 | * @param {*} data | ||
4 | * @author: renchao | ||
5 | */ | ||
6 | export function formValidate (djlx) { | ||
7 | switch (djlx) { | ||
8 | case "100": | ||
9 | return fristValidate(); | ||
10 | case "200": | ||
11 | return transferValidate(); | ||
12 | case "300": | ||
13 | return changeValidate(); | ||
14 | case "400": | ||
15 | return logoutValidate(); | ||
16 | case "500": | ||
17 | return riviseValidate(); | ||
18 | case "901": | ||
19 | return renewalValidate(); | ||
20 | case "902": | ||
21 | return replaceValidate(); | ||
22 | } | ||
23 | } | ||
24 | |||
25 | /** | ||
26 | * @description: 首次登记效验 | ||
27 | * @param {*} data | ||
28 | * @author: renchao | ||
29 | */ | ||
30 | export function fristValidate () { | ||
31 | var formRules={ | ||
32 | 'diyaq.djyy': [ | ||
33 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
34 | ] | ||
35 | } | ||
36 | return formRules; | ||
37 | } | ||
38 | |||
39 | |||
40 | /** | ||
41 | * @description: 转移登记效验 | ||
42 | * @param {*} data | ||
43 | * @author: renchao | ||
44 | */ | ||
45 | export function transferValidate (data) { | ||
46 | |||
47 | } | ||
48 | |||
49 | /** | ||
50 | * @description: 变更登记效验 | ||
51 | * @param {*} data | ||
52 | * @author: renchao | ||
53 | */ | ||
54 | export function changeValidate (data) { | ||
55 | |||
56 | } | ||
57 | |||
58 | /** | ||
59 | * @description: 注销登记效验 | ||
60 | * @param {*} data | ||
61 | * @author: renchao | ||
62 | */ | ||
63 | export function logoutValidate (data) { | ||
64 | |||
65 | } | ||
66 | |||
67 | /** | ||
68 | * @description: 更正登记效验 | ||
69 | * @param {*} data | ||
70 | * @author: renchao | ||
71 | */ | ||
72 | export function riviseValidate (data) { | ||
73 | |||
74 | } | ||
75 | |||
76 | /** | ||
77 | * @description: 补证登记效验 | ||
78 | * @param {*} data | ||
79 | * @author: renchao | ||
80 | */ | ||
81 | export function renewalValidate (data) { | ||
82 | |||
83 | } | ||
84 | |||
85 | /** | ||
86 | * @description: 换证登记效验 | ||
87 | * @param {*} data | ||
88 | * @author: renchao | ||
89 | */ | ||
90 | export function replaceValidate (data) { | ||
91 | |||
92 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | /** | ||
2 | * @description: 首次登记效验 | ||
3 | * @param {*} data | ||
4 | * @author: renchao | ||
5 | */ | ||
6 | export function formValidate (djlx) { | ||
7 | switch (djlx) { | ||
8 | case "100": | ||
9 | return fristValidate(); | ||
10 | case "200": | ||
11 | return transferValidate(); | ||
12 | case "300": | ||
13 | return changeValidate(); | ||
14 | case "400": | ||
15 | return logoutValidate(); | ||
16 | case "500": | ||
17 | return riviseValidate(); | ||
18 | case "901": | ||
19 | return renewalValidate(); | ||
20 | case "902": | ||
21 | return replaceValidate(); | ||
22 | } | ||
23 | } | ||
24 | |||
25 | /** | ||
26 | * @description: 首次登记效验 | ||
27 | * @param {*} data | ||
28 | * @author: renchao | ||
29 | */ | ||
30 | export function fristValidate () { | ||
31 | var formRules={ | ||
32 | 'diyaq.djyy': [ | ||
33 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
34 | ] | ||
35 | } | ||
36 | return formRules; | ||
37 | } | ||
38 | |||
39 | |||
40 | /** | ||
41 | * @description: 转移登记效验 | ||
42 | * @param {*} data | ||
43 | * @author: renchao | ||
44 | */ | ||
45 | export function transferValidate (data) { | ||
46 | |||
47 | } | ||
48 | |||
49 | /** | ||
50 | * @description: 变更登记效验 | ||
51 | * @param {*} data | ||
52 | * @author: renchao | ||
53 | */ | ||
54 | export function changeValidate (data) { | ||
55 | |||
56 | } | ||
57 | |||
58 | /** | ||
59 | * @description: 注销登记效验 | ||
60 | * @param {*} data | ||
61 | * @author: renchao | ||
62 | */ | ||
63 | export function logoutValidate (data) { | ||
64 | |||
65 | } | ||
66 | |||
67 | /** | ||
68 | * @description: 更正登记效验 | ||
69 | * @param {*} data | ||
70 | * @author: renchao | ||
71 | */ | ||
72 | export function riviseValidate (data) { | ||
73 | |||
74 | } | ||
75 | |||
76 | /** | ||
77 | * @description: 补证登记效验 | ||
78 | * @param {*} data | ||
79 | * @author: renchao | ||
80 | */ | ||
81 | export function renewalValidate (data) { | ||
82 | |||
83 | } | ||
84 | |||
85 | /** | ||
86 | * @description: 换证登记效验 | ||
87 | * @param {*} data | ||
88 | * @author: renchao | ||
89 | */ | ||
90 | export function replaceValidate (data) { | ||
91 | |||
92 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | /** | ||
2 | * @description: 首次登记效验 | ||
3 | * @param {*} data | ||
4 | * @author: renchao | ||
5 | */ | ||
6 | export function formValidate (djlx) { | ||
7 | switch (djlx) { | ||
8 | case "100": | ||
9 | return fristValidate(); | ||
10 | case "200": | ||
11 | return transferValidate(); | ||
12 | case "300": | ||
13 | return changeValidate(); | ||
14 | case "400": | ||
15 | return logoutValidate(); | ||
16 | case "500": | ||
17 | return riviseValidate(); | ||
18 | case "901": | ||
19 | return renewalValidate(); | ||
20 | case "902": | ||
21 | return replaceValidate(); | ||
22 | } | ||
23 | } | ||
24 | |||
25 | /** | ||
26 | * @description: 首次登记效验 | ||
27 | * @param {*} data | ||
28 | * @author: renchao | ||
29 | */ | ||
30 | export function fristValidate () { | ||
31 | var formRules={ | ||
32 | 'diyaq.djyy': [ | ||
33 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
34 | ] | ||
35 | } | ||
36 | return formRules; | ||
37 | } | ||
38 | |||
39 | |||
40 | /** | ||
41 | * @description: 转移登记效验 | ||
42 | * @param {*} data | ||
43 | * @author: renchao | ||
44 | */ | ||
45 | export function transferValidate (data) { | ||
46 | |||
47 | } | ||
48 | |||
49 | /** | ||
50 | * @description: 变更登记效验 | ||
51 | * @param {*} data | ||
52 | * @author: renchao | ||
53 | */ | ||
54 | export function changeValidate (data) { | ||
55 | |||
56 | } | ||
57 | |||
58 | /** | ||
59 | * @description: 注销登记效验 | ||
60 | * @param {*} data | ||
61 | * @author: renchao | ||
62 | */ | ||
63 | export function logoutValidate (data) { | ||
64 | |||
65 | } | ||
66 | |||
67 | /** | ||
68 | * @description: 更正登记效验 | ||
69 | * @param {*} data | ||
70 | * @author: renchao | ||
71 | */ | ||
72 | export function riviseValidate (data) { | ||
73 | |||
74 | } | ||
75 | |||
76 | /** | ||
77 | * @description: 补证登记效验 | ||
78 | * @param {*} data | ||
79 | * @author: renchao | ||
80 | */ | ||
81 | export function renewalValidate (data) { | ||
82 | |||
83 | } | ||
84 | |||
85 | /** | ||
86 | * @description: 换证登记效验 | ||
87 | * @param {*} data | ||
88 | * @author: renchao | ||
89 | */ | ||
90 | export function replaceValidate (data) { | ||
91 | |||
92 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | /** | ||
2 | * @description: 首次登记效验 | ||
3 | * @param {*} data | ||
4 | * @author: renchao | ||
5 | */ | ||
6 | export function formValidate (djlx) { | ||
7 | switch (djlx) { | ||
8 | case "100": | ||
9 | return fristValidate(); | ||
10 | case "200": | ||
11 | return transferValidate(); | ||
12 | case "300": | ||
13 | return changeValidate(); | ||
14 | case "400": | ||
15 | return logoutValidate(); | ||
16 | case "500": | ||
17 | return riviseValidate(); | ||
18 | case "901": | ||
19 | return renewalValidate(); | ||
20 | case "902": | ||
21 | return replaceValidate(); | ||
22 | } | ||
23 | } | ||
24 | |||
25 | /** | ||
26 | * @description: 首次登记效验 | ||
27 | * @param {*} data | ||
28 | * @author: renchao | ||
29 | */ | ||
30 | export function fristValidate () { | ||
31 | var formRules={ | ||
32 | 'diyaq.djyy': [ | ||
33 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
34 | ] | ||
35 | } | ||
36 | return formRules; | ||
37 | } | ||
38 | |||
39 | |||
40 | /** | ||
41 | * @description: 转移登记效验 | ||
42 | * @param {*} data | ||
43 | * @author: renchao | ||
44 | */ | ||
45 | export function transferValidate (data) { | ||
46 | |||
47 | } | ||
48 | |||
49 | /** | ||
50 | * @description: 变更登记效验 | ||
51 | * @param {*} data | ||
52 | * @author: renchao | ||
53 | */ | ||
54 | export function changeValidate (data) { | ||
55 | |||
56 | } | ||
57 | |||
58 | /** | ||
59 | * @description: 注销登记效验 | ||
60 | * @param {*} data | ||
61 | * @author: renchao | ||
62 | */ | ||
63 | export function logoutValidate (data) { | ||
64 | |||
65 | } | ||
66 | |||
67 | /** | ||
68 | * @description: 更正登记效验 | ||
69 | * @param {*} data | ||
70 | * @author: renchao | ||
71 | */ | ||
72 | export function riviseValidate (data) { | ||
73 | |||
74 | } | ||
75 | |||
76 | /** | ||
77 | * @description: 补证登记效验 | ||
78 | * @param {*} data | ||
79 | * @author: renchao | ||
80 | */ | ||
81 | export function renewalValidate (data) { | ||
82 | |||
83 | } | ||
84 | |||
85 | /** | ||
86 | * @description: 换证登记效验 | ||
87 | * @param {*} data | ||
88 | * @author: renchao | ||
89 | */ | ||
90 | export function replaceValidate (data) { | ||
91 | |||
92 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | /** | ||
2 | * @description: 首次登记效验 | ||
3 | * @param {*} data | ||
4 | * @author: renchao | ||
5 | */ | ||
6 | export function formValidate (djlx) { | ||
7 | switch (djlx) { | ||
8 | case "100": | ||
9 | return fristValidate(); | ||
10 | case "200": | ||
11 | return transferValidate(); | ||
12 | case "300": | ||
13 | return changeValidate(); | ||
14 | case "400": | ||
15 | return logoutValidate(); | ||
16 | case "500": | ||
17 | return riviseValidate(); | ||
18 | case "901": | ||
19 | return renewalValidate(); | ||
20 | case "902": | ||
21 | return replaceValidate(); | ||
22 | } | ||
23 | } | ||
24 | |||
25 | /** | ||
26 | * @description: 首次登记效验 | ||
27 | * @param {*} data | ||
28 | * @author: renchao | ||
29 | */ | ||
30 | export function fristValidate () { | ||
31 | var formRules={ | ||
32 | 'diyaq.djyy': [ | ||
33 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
34 | ] | ||
35 | } | ||
36 | return formRules; | ||
37 | } | ||
38 | |||
39 | |||
40 | /** | ||
41 | * @description: 转移登记效验 | ||
42 | * @param {*} data | ||
43 | * @author: renchao | ||
44 | */ | ||
45 | export function transferValidate (data) { | ||
46 | |||
47 | } | ||
48 | |||
49 | /** | ||
50 | * @description: 变更登记效验 | ||
51 | * @param {*} data | ||
52 | * @author: renchao | ||
53 | */ | ||
54 | export function changeValidate (data) { | ||
55 | |||
56 | } | ||
57 | |||
58 | /** | ||
59 | * @description: 注销登记效验 | ||
60 | * @param {*} data | ||
61 | * @author: renchao | ||
62 | */ | ||
63 | export function logoutValidate (data) { | ||
64 | |||
65 | } | ||
66 | |||
67 | /** | ||
68 | * @description: 更正登记效验 | ||
69 | * @param {*} data | ||
70 | * @author: renchao | ||
71 | */ | ||
72 | export function riviseValidate (data) { | ||
73 | |||
74 | } | ||
75 | |||
76 | /** | ||
77 | * @description: 补证登记效验 | ||
78 | * @param {*} data | ||
79 | * @author: renchao | ||
80 | */ | ||
81 | export function renewalValidate (data) { | ||
82 | |||
83 | } | ||
84 | |||
85 | /** | ||
86 | * @description: 换证登记效验 | ||
87 | * @param {*} data | ||
88 | * @author: renchao | ||
89 | */ | ||
90 | export function replaceValidate (data) { | ||
91 | |||
92 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | /** | ||
2 | * @description: 首次登记效验 | ||
3 | * @param {*} data | ||
4 | * @author: renchao | ||
5 | */ | ||
6 | export function formValidate (djlx) { | ||
7 | switch (djlx) { | ||
8 | case "100": | ||
9 | return fristValidate(); | ||
10 | case "200": | ||
11 | return transferValidate(); | ||
12 | case "300": | ||
13 | return changeValidate(); | ||
14 | case "400": | ||
15 | return logoutValidate(); | ||
16 | case "500": | ||
17 | return riviseValidate(); | ||
18 | case "901": | ||
19 | return renewalValidate(); | ||
20 | case "902": | ||
21 | return replaceValidate(); | ||
22 | } | ||
23 | } | ||
24 | |||
25 | /** | ||
26 | * @description: 首次登记效验 | ||
27 | * @param {*} data | ||
28 | * @author: renchao | ||
29 | */ | ||
30 | export function fristValidate () { | ||
31 | var formRules={ | ||
32 | 'diyaq.djyy': [ | ||
33 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
34 | ] | ||
35 | } | ||
36 | return formRules; | ||
37 | } | ||
38 | |||
39 | |||
40 | /** | ||
41 | * @description: 转移登记效验 | ||
42 | * @param {*} data | ||
43 | * @author: renchao | ||
44 | */ | ||
45 | export function transferValidate (data) { | ||
46 | |||
47 | } | ||
48 | |||
49 | /** | ||
50 | * @description: 变更登记效验 | ||
51 | * @param {*} data | ||
52 | * @author: renchao | ||
53 | */ | ||
54 | export function changeValidate (data) { | ||
55 | |||
56 | } | ||
57 | |||
58 | /** | ||
59 | * @description: 注销登记效验 | ||
60 | * @param {*} data | ||
61 | * @author: renchao | ||
62 | */ | ||
63 | export function logoutValidate (data) { | ||
64 | |||
65 | } | ||
66 | |||
67 | /** | ||
68 | * @description: 更正登记效验 | ||
69 | * @param {*} data | ||
70 | * @author: renchao | ||
71 | */ | ||
72 | export function riviseValidate (data) { | ||
73 | |||
74 | } | ||
75 | |||
76 | /** | ||
77 | * @description: 补证登记效验 | ||
78 | * @param {*} data | ||
79 | * @author: renchao | ||
80 | */ | ||
81 | export function renewalValidate (data) { | ||
82 | |||
83 | } | ||
84 | |||
85 | /** | ||
86 | * @description: 换证登记效验 | ||
87 | * @param {*} data | ||
88 | * @author: renchao | ||
89 | */ | ||
90 | export function replaceValidate (data) { | ||
91 | |||
92 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | /** | ||
2 | * @description: 首次登记效验 | ||
3 | * @param {*} data | ||
4 | * @author: renchao | ||
5 | */ | ||
6 | export function formValidate (djlx) { | ||
7 | switch (djlx) { | ||
8 | case "100": | ||
9 | return fristValidate(); | ||
10 | case "200": | ||
11 | return transferValidate(); | ||
12 | case "300": | ||
13 | return changeValidate(); | ||
14 | case "400": | ||
15 | return logoutValidate(); | ||
16 | case "500": | ||
17 | return riviseValidate(); | ||
18 | case "901": | ||
19 | return renewalValidate(); | ||
20 | case "902": | ||
21 | return replaceValidate(); | ||
22 | } | ||
23 | } | ||
24 | |||
25 | /** | ||
26 | * @description: 首次登记效验 | ||
27 | * @param {*} data | ||
28 | * @author: renchao | ||
29 | */ | ||
30 | export function fristValidate () { | ||
31 | var formRules={ | ||
32 | 'diyaq.djyy': [ | ||
33 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
34 | ] | ||
35 | } | ||
36 | return formRules; | ||
37 | } | ||
38 | |||
39 | |||
40 | /** | ||
41 | * @description: 转移登记效验 | ||
42 | * @param {*} data | ||
43 | * @author: renchao | ||
44 | */ | ||
45 | export function transferValidate (data) { | ||
46 | |||
47 | } | ||
48 | |||
49 | /** | ||
50 | * @description: 变更登记效验 | ||
51 | * @param {*} data | ||
52 | * @author: renchao | ||
53 | */ | ||
54 | export function changeValidate (data) { | ||
55 | |||
56 | } | ||
57 | |||
58 | /** | ||
59 | * @description: 注销登记效验 | ||
60 | * @param {*} data | ||
61 | * @author: renchao | ||
62 | */ | ||
63 | export function logoutValidate (data) { | ||
64 | |||
65 | } | ||
66 | |||
67 | /** | ||
68 | * @description: 更正登记效验 | ||
69 | * @param {*} data | ||
70 | * @author: renchao | ||
71 | */ | ||
72 | export function riviseValidate (data) { | ||
73 | |||
74 | } | ||
75 | |||
76 | /** | ||
77 | * @description: 补证登记效验 | ||
78 | * @param {*} data | ||
79 | * @author: renchao | ||
80 | */ | ||
81 | export function renewalValidate (data) { | ||
82 | |||
83 | } | ||
84 | |||
85 | /** | ||
86 | * @description: 换证登记效验 | ||
87 | * @param {*} data | ||
88 | * @author: renchao | ||
89 | */ | ||
90 | export function replaceValidate (data) { | ||
91 | |||
92 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | /** | ||
2 | * @description: 首次登记效验 | ||
3 | * @param {*} data | ||
4 | * @author: renchao | ||
5 | */ | ||
6 | export function formValidate (djlx) { | ||
7 | switch (djlx) { | ||
8 | case "100": | ||
9 | return fristValidate(); | ||
10 | case "200": | ||
11 | return transferValidate(); | ||
12 | case "300": | ||
13 | return changeValidate(); | ||
14 | case "400": | ||
15 | return logoutValidate(); | ||
16 | case "500": | ||
17 | return riviseValidate(); | ||
18 | case "901": | ||
19 | return renewalValidate(); | ||
20 | case "902": | ||
21 | return replaceValidate(); | ||
22 | } | ||
23 | } | ||
24 | |||
25 | /** | ||
26 | * @description: 首次登记效验 | ||
27 | * @param {*} data | ||
28 | * @author: renchao | ||
29 | */ | ||
30 | export function fristValidate () { | ||
31 | var formRules={ | ||
32 | 'diyaq.djyy': [ | ||
33 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
34 | ] | ||
35 | } | ||
36 | return formRules; | ||
37 | } | ||
38 | |||
39 | |||
40 | /** | ||
41 | * @description: 转移登记效验 | ||
42 | * @param {*} data | ||
43 | * @author: renchao | ||
44 | */ | ||
45 | export function transferValidate (data) { | ||
46 | |||
47 | } | ||
48 | |||
49 | /** | ||
50 | * @description: 变更登记效验 | ||
51 | * @param {*} data | ||
52 | * @author: renchao | ||
53 | */ | ||
54 | export function changeValidate (data) { | ||
55 | |||
56 | } | ||
57 | |||
58 | /** | ||
59 | * @description: 注销登记效验 | ||
60 | * @param {*} data | ||
61 | * @author: renchao | ||
62 | */ | ||
63 | export function logoutValidate (data) { | ||
64 | |||
65 | } | ||
66 | |||
67 | /** | ||
68 | * @description: 更正登记效验 | ||
69 | * @param {*} data | ||
70 | * @author: renchao | ||
71 | */ | ||
72 | export function riviseValidate (data) { | ||
73 | |||
74 | } | ||
75 | |||
76 | /** | ||
77 | * @description: 补证登记效验 | ||
78 | * @param {*} data | ||
79 | * @author: renchao | ||
80 | */ | ||
81 | export function renewalValidate (data) { | ||
82 | |||
83 | } | ||
84 | |||
85 | /** | ||
86 | * @description: 换证登记效验 | ||
87 | * @param {*} data | ||
88 | * @author: renchao | ||
89 | */ | ||
90 | export function replaceValidate (data) { | ||
91 | |||
92 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | /** | ||
2 | * @description: 首次登记效验 | ||
3 | * @param {*} data | ||
4 | * @author: renchao | ||
5 | */ | ||
6 | export function formValidate (djlx) { | ||
7 | switch (djlx) { | ||
8 | case "100": | ||
9 | return fristValidate(); | ||
10 | case "200": | ||
11 | return transferValidate(); | ||
12 | case "300": | ||
13 | return changeValidate(); | ||
14 | case "400": | ||
15 | return logoutValidate(); | ||
16 | case "500": | ||
17 | return riviseValidate(); | ||
18 | case "901": | ||
19 | return renewalValidate(); | ||
20 | case "902": | ||
21 | return replaceValidate(); | ||
22 | } | ||
23 | } | ||
24 | |||
25 | /** | ||
26 | * @description: 首次登记效验 | ||
27 | * @param {*} data | ||
28 | * @author: renchao | ||
29 | */ | ||
30 | export function fristValidate () { | ||
31 | var formRules={ | ||
32 | 'diyaq.djyy': [ | ||
33 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
34 | ] | ||
35 | } | ||
36 | return formRules; | ||
37 | } | ||
38 | |||
39 | |||
40 | /** | ||
41 | * @description: 转移登记效验 | ||
42 | * @param {*} data | ||
43 | * @author: renchao | ||
44 | */ | ||
45 | export function transferValidate (data) { | ||
46 | |||
47 | } | ||
48 | |||
49 | /** | ||
50 | * @description: 变更登记效验 | ||
51 | * @param {*} data | ||
52 | * @author: renchao | ||
53 | */ | ||
54 | export function changeValidate (data) { | ||
55 | |||
56 | } | ||
57 | |||
58 | /** | ||
59 | * @description: 注销登记效验 | ||
60 | * @param {*} data | ||
61 | * @author: renchao | ||
62 | */ | ||
63 | export function logoutValidate (data) { | ||
64 | |||
65 | } | ||
66 | |||
67 | /** | ||
68 | * @description: 更正登记效验 | ||
69 | * @param {*} data | ||
70 | * @author: renchao | ||
71 | */ | ||
72 | export function riviseValidate (data) { | ||
73 | |||
74 | } | ||
75 | |||
76 | /** | ||
77 | * @description: 补证登记效验 | ||
78 | * @param {*} data | ||
79 | * @author: renchao | ||
80 | */ | ||
81 | export function renewalValidate (data) { | ||
82 | |||
83 | } | ||
84 | |||
85 | /** | ||
86 | * @description: 换证登记效验 | ||
87 | * @param {*} data | ||
88 | * @author: renchao | ||
89 | */ | ||
90 | export function replaceValidate (data) { | ||
91 | |||
92 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | /** | ||
2 | * @description: 首次登记效验 | ||
3 | * @param {*} data | ||
4 | * @author: renchao | ||
5 | */ | ||
6 | export function formValidate (djlx) { | ||
7 | switch (djlx) { | ||
8 | case "100": | ||
9 | return fristValidate(); | ||
10 | case "200": | ||
11 | return transferValidate(); | ||
12 | case "300": | ||
13 | return changeValidate(); | ||
14 | case "400": | ||
15 | return logoutValidate(); | ||
16 | case "500": | ||
17 | return riviseValidate(); | ||
18 | case "901": | ||
19 | return renewalValidate(); | ||
20 | case "902": | ||
21 | return replaceValidate(); | ||
22 | } | ||
23 | } | ||
24 | |||
25 | /** | ||
26 | * @description: 首次登记效验 | ||
27 | * @param {*} data | ||
28 | * @author: renchao | ||
29 | */ | ||
30 | export function fristValidate () { | ||
31 | var formRules={ | ||
32 | 'diyaq.djyy': [ | ||
33 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
34 | ] | ||
35 | } | ||
36 | return formRules; | ||
37 | } | ||
38 | |||
39 | |||
40 | /** | ||
41 | * @description: 转移登记效验 | ||
42 | * @param {*} data | ||
43 | * @author: renchao | ||
44 | */ | ||
45 | export function transferValidate (data) { | ||
46 | |||
47 | } | ||
48 | |||
49 | /** | ||
50 | * @description: 变更登记效验 | ||
51 | * @param {*} data | ||
52 | * @author: renchao | ||
53 | */ | ||
54 | export function changeValidate (data) { | ||
55 | |||
56 | } | ||
57 | |||
58 | /** | ||
59 | * @description: 注销登记效验 | ||
60 | * @param {*} data | ||
61 | * @author: renchao | ||
62 | */ | ||
63 | export function logoutValidate (data) { | ||
64 | |||
65 | } | ||
66 | |||
67 | /** | ||
68 | * @description: 更正登记效验 | ||
69 | * @param {*} data | ||
70 | * @author: renchao | ||
71 | */ | ||
72 | export function riviseValidate (data) { | ||
73 | |||
74 | } | ||
75 | |||
76 | /** | ||
77 | * @description: 补证登记效验 | ||
78 | * @param {*} data | ||
79 | * @author: renchao | ||
80 | */ | ||
81 | export function renewalValidate (data) { | ||
82 | |||
83 | } | ||
84 | |||
85 | /** | ||
86 | * @description: 换证登记效验 | ||
87 | * @param {*} data | ||
88 | * @author: renchao | ||
89 | */ | ||
90 | export function replaceValidate (data) { | ||
91 | |||
92 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | /** | ||
2 | * @description: 首次登记效验 | ||
3 | * @param {*} data | ||
4 | * @author: renchao | ||
5 | */ | ||
6 | export function formValidate (djlx) { | ||
7 | switch (djlx) { | ||
8 | case "100": | ||
9 | return fristValidate(); | ||
10 | case "200": | ||
11 | return transferValidate(); | ||
12 | case "300": | ||
13 | return changeValidate(); | ||
14 | case "400": | ||
15 | return logoutValidate(); | ||
16 | case "500": | ||
17 | return riviseValidate(); | ||
18 | case "901": | ||
19 | return renewalValidate(); | ||
20 | case "902": | ||
21 | return replaceValidate(); | ||
22 | } | ||
23 | } | ||
24 | |||
25 | /** | ||
26 | * @description: 首次登记效验 | ||
27 | * @param {*} data | ||
28 | * @author: renchao | ||
29 | */ | ||
30 | export function fristValidate () { | ||
31 | var formRules={ | ||
32 | 'diyaq.djyy': [ | ||
33 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
34 | ] | ||
35 | } | ||
36 | return formRules; | ||
37 | } | ||
38 | |||
39 | |||
40 | /** | ||
41 | * @description: 转移登记效验 | ||
42 | * @param {*} data | ||
43 | * @author: renchao | ||
44 | */ | ||
45 | export function transferValidate (data) { | ||
46 | |||
47 | } | ||
48 | |||
49 | /** | ||
50 | * @description: 变更登记效验 | ||
51 | * @param {*} data | ||
52 | * @author: renchao | ||
53 | */ | ||
54 | export function changeValidate (data) { | ||
55 | |||
56 | } | ||
57 | |||
58 | /** | ||
59 | * @description: 注销登记效验 | ||
60 | * @param {*} data | ||
61 | * @author: renchao | ||
62 | */ | ||
63 | export function logoutValidate (data) { | ||
64 | |||
65 | } | ||
66 | |||
67 | /** | ||
68 | * @description: 更正登记效验 | ||
69 | * @param {*} data | ||
70 | * @author: renchao | ||
71 | */ | ||
72 | export function riviseValidate (data) { | ||
73 | |||
74 | } | ||
75 | |||
76 | /** | ||
77 | * @description: 补证登记效验 | ||
78 | * @param {*} data | ||
79 | * @author: renchao | ||
80 | */ | ||
81 | export function renewalValidate (data) { | ||
82 | |||
83 | } | ||
84 | |||
85 | /** | ||
86 | * @description: 换证登记效验 | ||
87 | * @param {*} data | ||
88 | * @author: renchao | ||
89 | */ | ||
90 | export function replaceValidate (data) { | ||
91 | |||
92 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or sign in to post a comment