添加抵押权及查封登记的字段内容效验
Showing
16 changed files
with
70 additions
and
40 deletions
... | @@ -1011,6 +1011,10 @@ class data extends filter { | ... | @@ -1011,6 +1011,10 @@ class data extends filter { |
1011 | label: "坐落", | 1011 | label: "坐落", |
1012 | }, | 1012 | }, |
1013 | { | 1013 | { |
1014 | prop: "yg", | ||
1015 | label: "原告", | ||
1016 | }, | ||
1017 | { | ||
1014 | prop: "cfjg", | 1018 | prop: "cfjg", |
1015 | label: "查封机关", | 1019 | label: "查封机关", |
1016 | }, | 1020 | }, | ... | ... |
... | @@ -1098,6 +1098,10 @@ class data extends filter { | ... | @@ -1098,6 +1098,10 @@ class data extends filter { |
1098 | label: "坐落", | 1098 | label: "坐落", |
1099 | }, | 1099 | }, |
1100 | { | 1100 | { |
1101 | prop: "yg", | ||
1102 | label: "原告", | ||
1103 | }, | ||
1104 | { | ||
1101 | prop: "cfjg", | 1105 | prop: "cfjg", |
1102 | label: "查封机关", | 1106 | label: "查封机关", |
1103 | }, | 1107 | }, | ... | ... |
... | @@ -155,7 +155,7 @@ | ... | @@ -155,7 +155,7 @@ |
155 | </div> | 155 | </div> |
156 | <el-row :gutter="10"> | 156 | <el-row :gutter="10"> |
157 | <el-col :span="8"> | 157 | <el-col :span="8"> |
158 | <el-form-item :class="flag ? 'marginBot0' : ''" label="原告:" prop="cfdj.cfwh"> | 158 | <el-form-item :class="flag ? 'marginBot0' : ''" label="原告:"> |
159 | <el-input | 159 | <el-input |
160 | v-model="ruleForm.cfdj.yg" | 160 | v-model="ruleForm.cfdj.yg" |
161 | :disabled="!viewEdit || ableEdit || isJfOperation"></el-input> | 161 | :disabled="!viewEdit || ableEdit || isJfOperation"></el-input> |
... | @@ -178,12 +178,12 @@ | ... | @@ -178,12 +178,12 @@ |
178 | </el-row> | 178 | </el-row> |
179 | <el-row :gutter="10"> | 179 | <el-row :gutter="10"> |
180 | <el-col :span="8"> | 180 | <el-col :span="8"> |
181 | <el-form-item :class="flag ? 'marginBot0' : ''" label="查封类型:" prop="cfdj.cflxmc"> | 181 | <el-form-item :class="flag ? 'marginBot0' : ''" label="查封类型:"> |
182 | <el-input v-model="ruleForm.cfdj.cflxmc" disabled></el-input> | 182 | <el-input v-model="ruleForm.cfdj.cflxmc" disabled></el-input> |
183 | </el-form-item> | 183 | </el-form-item> |
184 | </el-col> | 184 | </el-col> |
185 | <el-col :span="16"> | 185 | <el-col :span="16"> |
186 | <el-form-item :class="flag ? 'marginBot0' : ''" label="查封文件:" prop="cfdj.cfwj"> | 186 | <el-form-item :class="flag ? 'marginBot0' : ''" label="查封文件:"> |
187 | <el-input | 187 | <el-input |
188 | v-model="ruleForm.cfdj.cfwj" | 188 | v-model="ruleForm.cfdj.cfwj" |
189 | :disabled="!viewEdit || ableEdit || isJfOperation"></el-input> | 189 | :disabled="!viewEdit || ableEdit || isJfOperation"></el-input> |
... | @@ -192,7 +192,7 @@ | ... | @@ -192,7 +192,7 @@ |
192 | </el-row> | 192 | </el-row> |
193 | <el-row :gutter="10"> | 193 | <el-row :gutter="10"> |
194 | <el-col :span="8"> | 194 | <el-col :span="8"> |
195 | <el-form-item :class="flag ? 'marginBot0' : ''" label="查封期限:" prop="cfdj.cfqx"> | 195 | <el-form-item :class="flag ? 'marginBot0' : ''" label="查封期限:"> |
196 | <el-input | 196 | <el-input |
197 | v-model="ruleForm.cfdj.cfqx" | 197 | v-model="ruleForm.cfdj.cfqx" |
198 | :disabled="!viewEdit || ableEdit || isJfOperation"></el-input> | 198 | :disabled="!viewEdit || ableEdit || isJfOperation"></el-input> |
... | @@ -224,7 +224,7 @@ | ... | @@ -224,7 +224,7 @@ |
224 | 224 | ||
225 | <el-row :gutter="10"> | 225 | <el-row :gutter="10"> |
226 | <el-col :span="24"> | 226 | <el-col :span="24"> |
227 | <el-form-item :class="flag ? 'marginBot0' : ''" label="查封范围:" prop="cfdj.cffw"> | 227 | <el-form-item :class="flag ? 'marginBot0' : ''" label="查封范围:"> |
228 | <el-input | 228 | <el-input |
229 | v-model="ruleForm.cfdj.cffw" | 229 | v-model="ruleForm.cfdj.cffw" |
230 | :disabled="!viewEdit || ableEdit || isJfOperation"></el-input> | 230 | :disabled="!viewEdit || ableEdit || isJfOperation"></el-input> |
... | @@ -233,7 +233,7 @@ | ... | @@ -233,7 +233,7 @@ |
233 | </el-row> | 233 | </el-row> |
234 | <el-row :gutter="10"> | 234 | <el-row :gutter="10"> |
235 | <el-col :span="24"> | 235 | <el-col :span="24"> |
236 | <el-form-item :class="flag ? 'marginBot0' : ''" label="附记:" prop="cfdj.fj"> | 236 | <el-form-item :class="flag ? 'marginBot0' : ''" label="附记:"> |
237 | <el-input | 237 | <el-input |
238 | v-model="ruleForm.cfdj.fj" | 238 | v-model="ruleForm.cfdj.fj" |
239 | type="textarea" | 239 | type="textarea" |
... | @@ -264,18 +264,18 @@ | ... | @@ -264,18 +264,18 @@ |
264 | v-model="ruleForm.cfdj.jfjg" | 264 | v-model="ruleForm.cfdj.jfjg" |
265 | :disabled="!viewEdit || ableEdit"></el-input> | 265 | :disabled="!viewEdit || ableEdit"></el-input> |
266 | </el-form-item> | 266 | </el-form-item> |
267 | </el-col> | 267 | </el-col> |
268 | <el-col :span="8"> | 268 | <el-col :span="8"> |
269 | <el-form-item :class="flag ? 'marginBot0' : ''" label="解封文件:" prop="cfdj.jfwj"> | 269 | <el-form-item :class="flag ? 'marginBot0' : ''" label="解封文号:" prop="cfdj.jfwh"> |
270 | <el-input | 270 | <el-input |
271 | v-model="ruleForm.cfdj.jfwj" | 271 | v-model="ruleForm.cfdj.jfwh" |
272 | :disabled="!viewEdit || ableEdit"></el-input> | 272 | :disabled="!viewEdit || ableEdit"></el-input> |
273 | </el-form-item> | 273 | </el-form-item> |
274 | </el-col> | 274 | </el-col> |
275 | <el-col :span="8"> | 275 | <el-col :span="8"> |
276 | <el-form-item :class="flag ? 'marginBot0' : ''" label="解封文号:" prop="cfdj.jfwh"> | 276 | <el-form-item :class="flag ? 'marginBot0' : ''" label="解封文件:" prop="cfdj.jfwj"> |
277 | <el-input | 277 | <el-input |
278 | v-model="ruleForm.cfdj.jfwh" | 278 | v-model="ruleForm.cfdj.jfwj" |
279 | :disabled="!viewEdit || ableEdit"></el-input> | 279 | :disabled="!viewEdit || ableEdit"></el-input> |
280 | </el-form-item> | 280 | </el-form-item> |
281 | </el-col> | 281 | </el-col> |
... | @@ -292,6 +292,7 @@ | ... | @@ -292,6 +292,7 @@ |
292 | </template> | 292 | </template> |
293 | <script> | 293 | <script> |
294 | import { Init, saveData } from "@/api/workflow/cfdjFlow.js"; | 294 | import { Init, saveData } from "@/api/workflow/cfdjFlow.js"; |
295 | import { formValidate } from "./slxxValidate"; | ||
295 | import { mapGetters } from "vuex"; | 296 | import { mapGetters } from "vuex"; |
296 | export default { | 297 | export default { |
297 | data () { | 298 | data () { |
... | @@ -311,11 +312,7 @@ | ... | @@ -311,11 +312,7 @@ |
311 | viewEdit: false, | 312 | viewEdit: false, |
312 | disabled: true, | 313 | disabled: true, |
313 | flagTop: this.flag ? "top" : "", | 314 | flagTop: this.flag ? "top" : "", |
314 | rules: { | 315 | rules: {}, |
315 | 'cfdj.djyy': [ | ||
316 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
317 | ] | ||
318 | }, | ||
319 | //传递参数 | 316 | //传递参数 |
320 | propsParam: {}, | 317 | propsParam: {}, |
321 | //页面数据 | 318 | //页面数据 |
... | @@ -340,6 +337,7 @@ | ... | @@ -340,6 +337,7 @@ |
340 | Init(formdata).then((res) => { | 337 | Init(formdata).then((res) => { |
341 | if (res.code === 200 && res.result) { | 338 | if (res.code === 200 && res.result) { |
342 | this.ruleForm = res.result; | 339 | this.ruleForm = res.result; |
340 | this.rules = formValidate(this.ruleForm.sldy.djlx); | ||
343 | } else { | 341 | } else { |
344 | this.$message.error(res.message); | 342 | this.$message.error(res.message); |
345 | } | 343 | } |
... | @@ -377,7 +375,7 @@ | ... | @@ -377,7 +375,7 @@ |
377 | } else { | 375 | } else { |
378 | this.$message({ | 376 | this.$message({ |
379 | showClose: true, | 377 | showClose: true, |
380 | message: "请输入登记原因", | 378 | message: "请输入红框内的相关信息!", |
381 | type: "error" | 379 | type: "error" |
382 | }) | 380 | }) |
383 | return false | 381 | return false | ... | ... |
... | @@ -4,22 +4,41 @@ | ... | @@ -4,22 +4,41 @@ |
4 | * @author: renchao | 4 | * @author: renchao |
5 | */ | 5 | */ |
6 | export function formValidate (djlx) { | 6 | export function formValidate (djlx) { |
7 | switch (djlx) { | 7 | var formRules={ |
8 | case "100": | 8 | 'cfdj.djyy': [ |
9 | return fristValidate(); | 9 | { required: false, message: '请输入登记原因', trigger: 'blur' } |
10 | case "200": | 10 | ], |
11 | return transferValidate(); | 11 | |
12 | case "300": | 12 | 'cfdj.cfwh': [ |
13 | return changeValidate(); | 13 | { required: false, message: '查封文号', trigger: 'blur' } |
14 | case "400": | 14 | ], |
15 | return logoutValidate(); | 15 | 'cfdj.cfjg': [ |
16 | case "500": | 16 | { required: false, message: '查封机关:', trigger: 'blur' } |
17 | return riviseValidate(); | 17 | ], |
18 | case "901": | 18 | 'cfdj.cfqssj': [ |
19 | return renewalValidate(); | 19 | { required: false, message: '查封起始时间:', trigger: 'blur' } |
20 | case "902": | 20 | ], |
21 | return replaceValidate(); | 21 | 'cfdj.cfjssj': [ |
22 | } | 22 | { required: false, message: '查封结束时间:', trigger: 'blur' } |
23 | ], | ||
24 | 'cfdj.jfwh': [ | ||
25 | { required: false, message: '解封文号:', trigger: 'blur' } | ||
26 | ], | ||
27 | 'cfdj.jfjg': [ | ||
28 | { required: false, message: '解封机关:', trigger: 'blur' } | ||
29 | ] | ||
30 | } | ||
31 | if (djlx=="400") { | ||
32 | formRules["cfdj.jfwh"][0].required=true; | ||
33 | formRules["cfdj.jfjg"][0].required=true; | ||
34 | }else{ | ||
35 | formRules["cfdj.cfwh"][0].required=true; | ||
36 | formRules["cfdj.cfjg"][0].required=true; | ||
37 | formRules["cfdj.cfqssj"][0].required=true; | ||
38 | formRules["cfdj.cfjssj"][0].required=true; | ||
39 | formRules["cfdj.djyy"][0].required=true; | ||
40 | } | ||
41 | return formRules; | ||
23 | } | 42 | } |
24 | 43 | ||
25 | /** | 44 | /** |
... | @@ -28,12 +47,6 @@ export function formValidate (djlx) { | ... | @@ -28,12 +47,6 @@ export function formValidate (djlx) { |
28 | * @author: renchao | 47 | * @author: renchao |
29 | */ | 48 | */ |
30 | export function fristValidate () { | 49 | export function fristValidate () { |
31 | var formRules={ | ||
32 | 'diyaq.djyy': [ | ||
33 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
34 | ] | ||
35 | } | ||
36 | return formRules; | ||
37 | } | 50 | } |
38 | 51 | ||
39 | 52 | ... | ... |
... | @@ -484,7 +484,7 @@ export default { | ... | @@ -484,7 +484,7 @@ export default { |
484 | }); | 484 | }); |
485 | that.czrOptions = this.ruleForm.qlrList; | 485 | that.czrOptions = this.ruleForm.qlrList; |
486 | that.isSave = that.viewEdit; | 486 | that.isSave = that.viewEdit; |
487 | that.rules = formValidate(that.ruleForm.qlxx.djlx,that.ruleForm.diyaq.dyfs); | 487 | that.rules = formValidate(that.ruleForm.sldy.djlx,that.ruleForm.diyaq.dyfs); |
488 | } else { | 488 | } else { |
489 | that.isSave = false; | 489 | that.isSave = false; |
490 | that.$confirm(res.message, "提示", { | 490 | that.$confirm(res.message, "提示", { | ... | ... |
... | @@ -303,6 +303,7 @@ | ... | @@ -303,6 +303,7 @@ |
303 | import tdytTable from "@/views/workflow/components/tdytTable"; | 303 | import tdytTable from "@/views/workflow/components/tdytTable"; |
304 | import { Init, saveData } from "@/api/workflow/fwsyq1Flow.js"; | 304 | import { Init, saveData } from "@/api/workflow/fwsyq1Flow.js"; |
305 | import { mapGetters } from "vuex"; | 305 | import { mapGetters } from "vuex"; |
306 | import { formValidate } from "./slxxValidate"; | ||
306 | export default { | 307 | export default { |
307 | mixins: [ywmix], | 308 | mixins: [ywmix], |
308 | mounted () { | 309 | mounted () { | ... | ... |
... | @@ -431,6 +431,7 @@ | ... | @@ -431,6 +431,7 @@ |
431 | import tdytTable from "@/views/workflow/components/tdytTable"; | 431 | import tdytTable from "@/views/workflow/components/tdytTable"; |
432 | import { Init, saveData } from "@/api/workflow/fwsyqFlow.js"; | 432 | import { Init, saveData } from "@/api/workflow/fwsyqFlow.js"; |
433 | import { mapGetters } from "vuex"; | 433 | import { mapGetters } from "vuex"; |
434 | import { formValidate } from "./slxxValidate"; | ||
434 | export default { | 435 | export default { |
435 | mixins: [ywmix], | 436 | mixins: [ywmix], |
436 | mounted () { | 437 | mounted () { | ... | ... |
... | @@ -302,6 +302,7 @@ | ... | @@ -302,6 +302,7 @@ |
302 | import ywrCommonTable from "@/views/workflow/components/ywrCommonTable"; | 302 | import ywrCommonTable from "@/views/workflow/components/ywrCommonTable"; |
303 | import tdytTable from "@/views/workflow/components/tdytTable"; | 303 | import tdytTable from "@/views/workflow/components/tdytTable"; |
304 | import { Init, saveData } from "@/api/workflow/jsydsyqFlow.js"; | 304 | import { Init, saveData } from "@/api/workflow/jsydsyqFlow.js"; |
305 | import { formValidate } from "./slxxValidate"; | ||
305 | export default { | 306 | export default { |
306 | mixins: [ywmix], | 307 | mixins: [ywmix], |
307 | mounted () { | 308 | mounted () { | ... | ... |
... | @@ -319,6 +319,7 @@ | ... | @@ -319,6 +319,7 @@ |
319 | import ywrCommonTable from "@/views/workflow/components/ywrCommonTable"; | 319 | import ywrCommonTable from "@/views/workflow/components/ywrCommonTable"; |
320 | import tdytTable from "@/views/workflow/components/tdytTable"; | 320 | import tdytTable from "@/views/workflow/components/tdytTable"; |
321 | import { Init, saveData } from "@/api/workflow/lqFlow.js"; | 321 | import { Init, saveData } from "@/api/workflow/lqFlow.js"; |
322 | import { formValidate } from "./slxxValidate"; | ||
322 | export default { | 323 | export default { |
323 | mixins: [ywmix], | 324 | mixins: [ywmix], |
324 | mounted () { | 325 | mounted () { | ... | ... |
... | @@ -334,6 +334,7 @@ | ... | @@ -334,6 +334,7 @@ |
334 | import { Init, saveData } from "@/api/workflow/nydsyqFlow.js"; | 334 | import { Init, saveData } from "@/api/workflow/nydsyqFlow.js"; |
335 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; | 335 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; |
336 | import JtcyTable from "./JtcyTable"; | 336 | import JtcyTable from "./JtcyTable"; |
337 | import { formValidate } from "./slxxValidate"; | ||
337 | export default { | 338 | export default { |
338 | mixins: [ywmix], | 339 | mixins: [ywmix], |
339 | mounted () { | 340 | mounted () { | ... | ... |
... | @@ -333,6 +333,7 @@ | ... | @@ -333,6 +333,7 @@ |
333 | import tdytTable from "@/views/workflow/components/tdytTable"; | 333 | import tdytTable from "@/views/workflow/components/tdytTable"; |
334 | import { Init, saveData } from "@/api/workflow/sllmFlow.js"; | 334 | import { Init, saveData } from "@/api/workflow/sllmFlow.js"; |
335 | import { mapGetters } from "vuex"; | 335 | import { mapGetters } from "vuex"; |
336 | import { formValidate } from "./slxxValidate"; | ||
336 | export default { | 337 | export default { |
337 | mixins: [ywmix], | 338 | mixins: [ywmix], |
338 | mounted () { | 339 | mounted () { | ... | ... |
... | @@ -353,6 +353,7 @@ | ... | @@ -353,6 +353,7 @@ |
353 | import { Init, saveData } from "@/api/workflow/tdcbjyq.js"; | 353 | import { Init, saveData } from "@/api/workflow/tdcbjyq.js"; |
354 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; | 354 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; |
355 | import ywrCommonTable from "@/views/workflow/components/ywrCommonTable"; | 355 | import ywrCommonTable from "@/views/workflow/components/ywrCommonTable"; |
356 | import { formValidate } from "./slxxValidate"; | ||
356 | export default { | 357 | export default { |
357 | mixins: [ywmix], | 358 | mixins: [ywmix], |
358 | mounted () { | 359 | mounted () { | ... | ... |
... | @@ -367,6 +367,7 @@ | ... | @@ -367,6 +367,7 @@ |
367 | import tdytTable from "@/views/workflow/components/tdytTable"; | 367 | import tdytTable from "@/views/workflow/components/tdytTable"; |
368 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; | 368 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; |
369 | import ywrCommonTable from "@/views/workflow/components/ywrCommonTable"; | 369 | import ywrCommonTable from "@/views/workflow/components/ywrCommonTable"; |
370 | import { formValidate } from "./slxxValidate"; | ||
370 | export default { | 371 | export default { |
371 | mixins: [ywmix], | 372 | mixins: [ywmix], |
372 | components: { qlrCommonTable, tdytTable, ywrCommonTable }, | 373 | components: { qlrCommonTable, tdytTable, ywrCommonTable }, | ... | ... |
... | @@ -299,6 +299,7 @@ | ... | @@ -299,6 +299,7 @@ |
299 | import ywrCommonTable from "@/views/workflow/components/ywrCommonTable"; | 299 | import ywrCommonTable from "@/views/workflow/components/ywrCommonTable"; |
300 | import { Init, saveData } from "@/api/workflow/ygdjFlow.js"; | 300 | import { Init, saveData } from "@/api/workflow/ygdjFlow.js"; |
301 | import { mapGetters } from "vuex"; | 301 | import { mapGetters } from "vuex"; |
302 | import { formValidate } from "./slxxValidate"; | ||
302 | export default { | 303 | export default { |
303 | mixins: [ywmix], | 304 | mixins: [ywmix], |
304 | mounted () { | 305 | mounted () { | ... | ... |
... | @@ -324,6 +324,7 @@ | ... | @@ -324,6 +324,7 @@ |
324 | import ywrCommonTable from "@/views/workflow/components/ywrCommonTable"; | 324 | import ywrCommonTable from "@/views/workflow/components/ywrCommonTable"; |
325 | import { Init, saveData } from "@/api/workflow/ygdyFlow.js"; | 325 | import { Init, saveData } from "@/api/workflow/ygdyFlow.js"; |
326 | import { mapGetters } from "vuex"; | 326 | import { mapGetters } from "vuex"; |
327 | import { formValidate } from "./slxxValidate"; | ||
327 | export default { | 328 | export default { |
328 | mixins: [ywmix], | 329 | mixins: [ywmix], |
329 | mounted () { | 330 | mounted () { | ... | ... |
... | @@ -371,6 +371,7 @@ | ... | @@ -371,6 +371,7 @@ |
371 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; | 371 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; |
372 | import { Init, saveData } from "@/api/workflow/zjgcdyFlow.js"; | 372 | import { Init, saveData } from "@/api/workflow/zjgcdyFlow.js"; |
373 | import { mapGetters } from "vuex"; | 373 | import { mapGetters } from "vuex"; |
374 | import { formValidate } from "./slxxValidate"; | ||
374 | export default { | 375 | export default { |
375 | mounted () { | 376 | mounted () { |
376 | let that = this | 377 | let that = this | ... | ... |
-
Please register or sign in to post a comment