受理申请效验
Showing
11 changed files
with
150 additions
and
172 deletions
... | @@ -119,7 +119,7 @@ | ... | @@ -119,7 +119,7 @@ |
119 | </el-form-item> | 119 | </el-form-item> |
120 | </el-col> | 120 | </el-col> |
121 | <el-col :span="8"> | 121 | <el-col :span="8"> |
122 | <el-form-item label="取得价格:"> | 122 | <el-form-item label="取得价格:" prop="jsydsyq.qdjg"> |
123 | <div style="display: flex"> | 123 | <div style="display: flex"> |
124 | <el-input | 124 | <el-input |
125 | maxlength="11" | 125 | maxlength="11" | ... | ... |
... | @@ -75,8 +75,8 @@ | ... | @@ -75,8 +75,8 @@ |
75 | </el-form-item> | 75 | </el-form-item> |
76 | </el-col> | 76 | </el-col> |
77 | <el-col :span="16"> | 77 | <el-col :span="16"> |
78 | <el-form-item label="坐落:"> | 78 | <el-form-item label="坐落:" prop="sldy.zl"> |
79 | <el-input disabled v-model="ruleForm.sldy.zl"></el-input> | 79 | <el-input v-model="ruleForm.sldy.zl"></el-input> |
80 | </el-form-item> | 80 | </el-form-item> |
81 | </el-col> | 81 | </el-col> |
82 | </el-row> | 82 | </el-row> |
... | @@ -92,7 +92,7 @@ | ... | @@ -92,7 +92,7 @@ |
92 | </el-form-item> | 92 | </el-form-item> |
93 | </el-col> | 93 | </el-col> |
94 | <el-col :span="8"> | 94 | <el-col :span="8"> |
95 | <el-form-item label="使用权(承包)面积:"> | 95 | <el-form-item label="使用权(承包)面积:" prop="lq.syqmj"> |
96 | <el-input v-model="ruleForm.lq.syqmj" :disabled="!viewEdit"></el-input> | 96 | <el-input v-model="ruleForm.lq.syqmj" :disabled="!viewEdit"></el-input> |
97 | </el-form-item> | 97 | </el-form-item> |
98 | </el-col> | 98 | </el-col> |
... | @@ -291,7 +291,7 @@ | ... | @@ -291,7 +291,7 @@ |
291 | </div> | 291 | </div> |
292 | <el-row :gutter="10"> | 292 | <el-row :gutter="10"> |
293 | <el-col> | 293 | <el-col> |
294 | <el-form-item v-if="ruleForm.sldy" label="登记原因:" prop="lq.djyy"> | 294 | <el-form-item label="登记原因:" prop="lq.djyy"> |
295 | <el-input | 295 | <el-input |
296 | class="textArea" | 296 | class="textArea" |
297 | type="textarea" | 297 | type="textarea" |
... | @@ -348,7 +348,8 @@ | ... | @@ -348,7 +348,8 @@ |
348 | }) | 348 | }) |
349 | that.czrOptions = that.ruleForm.qlrList; | 349 | that.czrOptions = that.ruleForm.qlrList; |
350 | that.ruleForm.lq.zlnd ? that.$set(that.ruleForm.lq, 'zlnd', that.ruleForm.lq.zlnd.toString()) : that.$set(that.ruleForm.lq, 'zlnd', "") | 350 | that.ruleForm.lq.zlnd ? that.$set(that.ruleForm.lq, 'zlnd', that.ruleForm.lq.zlnd.toString()) : that.$set(that.ruleForm.lq, 'zlnd', "") |
351 | that.isSave = that.viewEdit | 351 | that.isSave = that.viewEdit; |
352 | this.rules = formValidate(this.ruleForm.sldy.djlx); | ||
352 | } else { | 353 | } else { |
353 | that.isSave = false | 354 | that.isSave = false |
354 | that.$confirm(res.message, '提示', { | 355 | that.$confirm(res.message, '提示', { |
... | @@ -399,11 +400,7 @@ | ... | @@ -399,11 +400,7 @@ |
399 | propsParam: this.$attrs, | 400 | propsParam: this.$attrs, |
400 | //表单是否可操作 | 401 | //表单是否可操作 |
401 | viewEdit: true, | 402 | viewEdit: true, |
402 | rules: { | 403 | rules: {} |
403 | 'lq.djyy': [ | ||
404 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
405 | ] | ||
406 | } | ||
407 | }; | 404 | }; |
408 | }, | 405 | }, |
409 | methods: { | 406 | methods: { | ... | ... |
... | @@ -4,22 +4,19 @@ | ... | @@ -4,22 +4,19 @@ |
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 | 'sldy.zl': [ |
9 | return fristValidate(); | 9 | { required: true, message: '坐落:', trigger: 'blur' } |
10 | case "200": | 10 | ], |
11 | return transferValidate(); | 11 | 'lq.syqmj': [ |
12 | case "300": | 12 | { required: true, message: '使用权(承包)面积:', trigger: 'blur' } |
13 | return changeValidate(); | 13 | ], |
14 | case "400": | 14 | 'lq.djyy': [ |
15 | return logoutValidate(); | 15 | { required: true, message: '登记原因:', trigger: 'blur' } |
16 | case "500": | 16 | ] |
17 | return riviseValidate(); | ||
18 | case "901": | ||
19 | return renewalValidate(); | ||
20 | case "902": | ||
21 | return replaceValidate(); | ||
22 | } | 17 | } |
18 | |||
19 | return formRules; | ||
23 | } | 20 | } |
24 | 21 | ||
25 | /** | 22 | /** |
... | @@ -28,12 +25,6 @@ export function formValidate (djlx) { | ... | @@ -28,12 +25,6 @@ export function formValidate (djlx) { |
28 | * @author: renchao | 25 | * @author: renchao |
29 | */ | 26 | */ |
30 | export function fristValidate () { | 27 | export function fristValidate () { |
31 | var formRules={ | ||
32 | 'diyaq.djyy': [ | ||
33 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
34 | ] | ||
35 | } | ||
36 | return formRules; | ||
37 | } | 28 | } |
38 | 29 | ||
39 | 30 | ... | ... |
... | @@ -86,7 +86,7 @@ | ... | @@ -86,7 +86,7 @@ |
86 | </el-row> | 86 | </el-row> |
87 | <el-row :gutter="10"> | 87 | <el-row :gutter="10"> |
88 | <el-col :span="8"> | 88 | <el-col :span="8"> |
89 | <el-form-item label="宗地面积:"> | 89 | <el-form-item label="宗地面积:" prop="zdjbxx.zdmj"> |
90 | <el-input disabled v-model="ruleForm.zdjbxx.zdmj"></el-input> | 90 | <el-input disabled v-model="ruleForm.zdjbxx.zdmj"></el-input> |
91 | </el-form-item> | 91 | </el-form-item> |
92 | </el-col> | 92 | </el-col> |
... | @@ -103,7 +103,7 @@ | ... | @@ -103,7 +103,7 @@ |
103 | </el-row> | 103 | </el-row> |
104 | <el-row :gutter="10"> | 104 | <el-row :gutter="10"> |
105 | <el-col :span="16"> | 105 | <el-col :span="16"> |
106 | <el-form-item label="坐落:"> | 106 | <el-form-item label="坐落:" prop="sldy.zl"> |
107 | <el-input disabled v-model="ruleForm.sldy.zl"></el-input> | 107 | <el-input disabled v-model="ruleForm.sldy.zl"></el-input> |
108 | </el-form-item> | 108 | </el-form-item> |
109 | </el-col> | 109 | </el-col> |
... | @@ -359,7 +359,8 @@ | ... | @@ -359,7 +359,8 @@ |
359 | } | 359 | } |
360 | }) | 360 | }) |
361 | that.czrOptions = that.ruleForm.qlrList; | 361 | that.czrOptions = that.ruleForm.qlrList; |
362 | that.isSave = that.viewEdit | 362 | that.isSave = that.viewEdit; |
363 | this.rules = formValidate(this.ruleForm.sldy.djlx); | ||
363 | } else { | 364 | } else { |
364 | that.isSave = false | 365 | that.isSave = false |
365 | that.$confirm(res.message, '提示', { | 366 | that.$confirm(res.message, '提示', { |
... | @@ -405,11 +406,7 @@ | ... | @@ -405,11 +406,7 @@ |
405 | propsParam: {}, | 406 | propsParam: {}, |
406 | //表单是否可操作 | 407 | //表单是否可操作 |
407 | viewEdit: true, | 408 | viewEdit: true, |
408 | rules: { | 409 | rules: {}, |
409 | 'nydsyq.djyy': [ | ||
410 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
411 | ] | ||
412 | }, | ||
413 | }; | 410 | }; |
414 | }, | 411 | }, |
415 | methods: { | 412 | methods: { | ... | ... |
... | @@ -4,22 +4,19 @@ | ... | @@ -4,22 +4,19 @@ |
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 | 'sldy.zl': [ |
9 | return fristValidate(); | 9 | { required: true, message: '坐落:', trigger: 'blur' } |
10 | case "200": | 10 | ], |
11 | return transferValidate(); | 11 | 'zdjbxx.zdmj': [ |
12 | case "300": | 12 | { required: true, message: '宗地面积:', trigger: 'blur' } |
13 | return changeValidate(); | 13 | ], |
14 | case "400": | 14 | 'nydsyq.djyy': [ |
15 | return logoutValidate(); | 15 | { required: true, message: '登记原因:', trigger: 'blur' } |
16 | case "500": | 16 | ] |
17 | return riviseValidate(); | ||
18 | case "901": | ||
19 | return renewalValidate(); | ||
20 | case "902": | ||
21 | return replaceValidate(); | ||
22 | } | 17 | } |
18 | |||
19 | return formRules; | ||
23 | } | 20 | } |
24 | 21 | ||
25 | /** | 22 | /** |
... | @@ -28,12 +25,6 @@ export function formValidate (djlx) { | ... | @@ -28,12 +25,6 @@ export function formValidate (djlx) { |
28 | * @author: renchao | 25 | * @author: renchao |
29 | */ | 26 | */ |
30 | export function fristValidate () { | 27 | export function fristValidate () { |
31 | var formRules={ | ||
32 | 'diyaq.djyy': [ | ||
33 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
34 | ] | ||
35 | } | ||
36 | return formRules; | ||
37 | } | 28 | } |
38 | 29 | ||
39 | 30 | ... | ... |
... | @@ -75,7 +75,7 @@ | ... | @@ -75,7 +75,7 @@ |
75 | </el-form-item> | 75 | </el-form-item> |
76 | </el-col> | 76 | </el-col> |
77 | <el-col :span="16"> | 77 | <el-col :span="16"> |
78 | <el-form-item label="坐落:"> | 78 | <el-form-item label="坐落:" prop="sldy.zl"> |
79 | <el-input disabled v-model="ruleForm.sldy.zl"></el-input> | 79 | <el-input disabled v-model="ruleForm.sldy.zl"></el-input> |
80 | </el-form-item> | 80 | </el-form-item> |
81 | </el-col> | 81 | </el-col> |
... | @@ -92,7 +92,7 @@ | ... | @@ -92,7 +92,7 @@ |
92 | </el-form-item> | 92 | </el-form-item> |
93 | </el-col> | 93 | </el-col> |
94 | <el-col :span="8"> | 94 | <el-col :span="8"> |
95 | <el-form-item label="使用权(承包)面积:"> | 95 | <el-form-item label="使用权(承包)面积:" prop="lq.syqmj"> |
96 | <el-input maxlength="12" v-model="ruleForm.lq.syqmj" :disabled="!viewEdit"></el-input> | 96 | <el-input maxlength="12" v-model="ruleForm.lq.syqmj" :disabled="!viewEdit"></el-input> |
97 | </el-form-item> | 97 | </el-form-item> |
98 | </el-col> | 98 | </el-col> |
... | @@ -305,7 +305,7 @@ | ... | @@ -305,7 +305,7 @@ |
305 | </div> | 305 | </div> |
306 | <el-row :gutter="10"> | 306 | <el-row :gutter="10"> |
307 | <el-col> | 307 | <el-col> |
308 | <el-form-item v-if="ruleForm.sldy" label="登记原因:" prop="djyy"> | 308 | <el-form-item label="登记原因:" prop="lq.djyy"> |
309 | <el-input | 309 | <el-input |
310 | class="textArea" | 310 | class="textArea" |
311 | type="textarea" | 311 | type="textarea" |
... | @@ -361,7 +361,8 @@ | ... | @@ -361,7 +361,8 @@ |
361 | } | 361 | } |
362 | }) | 362 | }) |
363 | that.czrOptions = that.ruleForm.qlrList | 363 | that.czrOptions = that.ruleForm.qlrList |
364 | that.isSave = that.viewEdit | 364 | that.isSave = that.viewEdit; |
365 | this.rules = formValidate(this.ruleForm.sldy.djlx); | ||
365 | } else { | 366 | } else { |
366 | that.isSave = false | 367 | that.isSave = false |
367 | that.$confirm(res.message, '提示', { | 368 | that.$confirm(res.message, '提示', { | ... | ... |
... | @@ -4,22 +4,19 @@ | ... | @@ -4,22 +4,19 @@ |
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 | 'sldy.zl': [ |
9 | return fristValidate(); | 9 | { required: true, message: '坐落:', trigger: 'blur' } |
10 | case "200": | 10 | ], |
11 | return transferValidate(); | 11 | 'lq.syqmj': [ |
12 | case "300": | 12 | { required: true, message: '使用权(承包)面积:', trigger: 'blur' } |
13 | return changeValidate(); | 13 | ], |
14 | case "400": | 14 | 'lq.djyy': [ |
15 | return logoutValidate(); | 15 | { required: true, message: '登记原因:', trigger: 'blur' } |
16 | case "500": | 16 | ] |
17 | return riviseValidate(); | ||
18 | case "901": | ||
19 | return renewalValidate(); | ||
20 | case "902": | ||
21 | return replaceValidate(); | ||
22 | } | 17 | } |
18 | |||
19 | return formRules; | ||
23 | } | 20 | } |
24 | 21 | ||
25 | /** | 22 | /** |
... | @@ -28,12 +25,6 @@ export function formValidate (djlx) { | ... | @@ -28,12 +25,6 @@ export function formValidate (djlx) { |
28 | * @author: renchao | 25 | * @author: renchao |
29 | */ | 26 | */ |
30 | export function fristValidate () { | 27 | export function fristValidate () { |
31 | var formRules={ | ||
32 | 'diyaq.djyy': [ | ||
33 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
34 | ] | ||
35 | } | ||
36 | return formRules; | ||
37 | } | 28 | } |
38 | 29 | ||
39 | 30 | ... | ... |
... | @@ -85,7 +85,7 @@ | ... | @@ -85,7 +85,7 @@ |
85 | </el-form-item> | 85 | </el-form-item> |
86 | </el-col> | 86 | </el-col> |
87 | <el-col :span="8"> | 87 | <el-col :span="8"> |
88 | <el-form-item label="权利性质:"> | 88 | <el-form-item label="权利性质:" prop="zdjbxx.qlxz"> |
89 | <treeselect | 89 | <treeselect |
90 | v-model="ruleForm.zdjbxx.qlxz" | 90 | v-model="ruleForm.zdjbxx.qlxz" |
91 | noOptionsText="暂无数据" | 91 | noOptionsText="暂无数据" |
... | @@ -183,7 +183,7 @@ | ... | @@ -183,7 +183,7 @@ |
183 | </el-form-item> | 183 | </el-form-item> |
184 | </el-col> | 184 | </el-col> |
185 | <el-col :span="8"> | 185 | <el-col :span="8"> |
186 | <el-form-item label="确权面积:"> | 186 | <el-form-item label="确权面积:" prop="tdcbjyq.qqmj"> |
187 | <div class="flex"> | 187 | <div class="flex"> |
188 | <el-input | 188 | <el-input |
189 | :disabled="!viewEdit" | 189 | :disabled="!viewEdit" |
... | @@ -378,7 +378,8 @@ | ... | @@ -378,7 +378,8 @@ |
378 | } | 378 | } |
379 | }) | 379 | }) |
380 | that.czrOptions = that.ruleForm.qlrList; | 380 | that.czrOptions = that.ruleForm.qlrList; |
381 | that.isSave = that.viewEdit | 381 | that.isSave = that.viewEdit; |
382 | this.rules = formValidate(this.ruleForm.sldy.djlx); | ||
382 | } else { | 383 | } else { |
383 | that.isSave = false | 384 | that.isSave = false |
384 | that.$confirm(res.message, '提示', { | 385 | that.$confirm(res.message, '提示', { |
... | @@ -449,11 +450,7 @@ | ... | @@ -449,11 +450,7 @@ |
449 | ruleForm: {}, | 450 | ruleForm: {}, |
450 | //传递参数 | 451 | //传递参数 |
451 | propsParam: {}, | 452 | propsParam: {}, |
452 | rules: { | 453 | rules: {} |
453 | 'tdcbjyq.djyy': [ | ||
454 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
455 | ] | ||
456 | } | ||
457 | } | 454 | } |
458 | }, | 455 | }, |
459 | methods: { | 456 | methods: { | ... | ... |
... | @@ -4,22 +4,22 @@ | ... | @@ -4,22 +4,22 @@ |
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 | 'sldy.zl': [ |
9 | return fristValidate(); | 9 | { required: true, message: '坐落:', trigger: 'blur' } |
10 | case "200": | 10 | ], |
11 | return transferValidate(); | 11 | 'zdjbxx.qlxz': [ |
12 | case "300": | 12 | { required: true, message: '权利性质:', trigger: 'blur' } |
13 | return changeValidate(); | 13 | ], |
14 | case "400": | 14 | 'tdcbjyq.qqmj': [ |
15 | return logoutValidate(); | 15 | { required: true, message: '确权面积:', trigger: 'blur' } |
16 | case "500": | 16 | ], |
17 | return riviseValidate(); | 17 | 'lq.djyy': [ |
18 | case "901": | 18 | { required: true, message: '登记原因:', trigger: 'blur' } |
19 | return renewalValidate(); | 19 | ] |
20 | case "902": | ||
21 | return replaceValidate(); | ||
22 | } | 20 | } |
21 | |||
22 | return formRules; | ||
23 | } | 23 | } |
24 | 24 | ||
25 | /** | 25 | /** |
... | @@ -28,12 +28,6 @@ export function formValidate (djlx) { | ... | @@ -28,12 +28,6 @@ export function formValidate (djlx) { |
28 | * @author: renchao | 28 | * @author: renchao |
29 | */ | 29 | */ |
30 | export function fristValidate () { | 30 | export function fristValidate () { |
31 | var formRules={ | ||
32 | 'diyaq.djyy': [ | ||
33 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
34 | ] | ||
35 | } | ||
36 | return formRules; | ||
37 | } | 31 | } |
38 | 32 | ||
39 | 33 | ... | ... |
... | @@ -71,8 +71,8 @@ | ... | @@ -71,8 +71,8 @@ |
71 | </el-form-item> | 71 | </el-form-item> |
72 | </el-col> | 72 | </el-col> |
73 | <el-col :span="8"> | 73 | <el-col :span="8"> |
74 | <el-form-item label="坐落:"> | 74 | <el-form-item label="坐落:" prop="sldy.zl"> |
75 | <el-input disabled v-model="ruleForm.sldy.zl"></el-input> | 75 | <el-input v-model="ruleForm.sldy.zl"></el-input> |
76 | </el-form-item> | 76 | </el-form-item> |
77 | </el-col> | 77 | </el-col> |
78 | </el-row> | 78 | </el-row> |
... | @@ -88,7 +88,7 @@ | ... | @@ -88,7 +88,7 @@ |
88 | </el-form-item> | 88 | </el-form-item> |
89 | </el-col> | 89 | </el-col> |
90 | <el-col :span="8"> | 90 | <el-col :span="8"> |
91 | <el-form-item label="房屋性质:"> | 91 | <el-form-item label="房屋性质:" prop="ygdj.fwxz"> |
92 | <el-select v-model="ruleForm.ygdj.fwxz" :disabled="!viewEdit"> | 92 | <el-select v-model="ruleForm.ygdj.fwxz" :disabled="!viewEdit"> |
93 | <el-option | 93 | <el-option |
94 | v-for="item in dictData['A19']" | 94 | v-for="item in dictData['A19']" |
... | @@ -102,7 +102,7 @@ | ... | @@ -102,7 +102,7 @@ |
102 | </el-row> | 102 | </el-row> |
103 | <el-row :gutter="10" v-if="ruleForm.qlxx"> | 103 | <el-row :gutter="10" v-if="ruleForm.qlxx"> |
104 | <el-col :span="8"> | 104 | <el-col :span="8"> |
105 | <el-form-item label="房屋用途:"> | 105 | <el-form-item label="房屋用途:" prop="ygdj.ghyt"> |
106 | <el-select v-model="ruleForm.ygdj.ghyt" :disabled="!viewEdit"> | 106 | <el-select v-model="ruleForm.ygdj.ghyt" :disabled="!viewEdit"> |
107 | <el-option | 107 | <el-option |
108 | v-for="item in dictData['A17']" | 108 | v-for="item in dictData['A17']" |
... | @@ -114,12 +114,12 @@ | ... | @@ -114,12 +114,12 @@ |
114 | </el-form-item> | 114 | </el-form-item> |
115 | </el-col> | 115 | </el-col> |
116 | <el-col :span="8"> | 116 | <el-col :span="8"> |
117 | <el-form-item label="所在层:"> | 117 | <el-form-item label="所在层:" prop="ygdj.szc"> |
118 | <el-input maxlength="20" :disabled="!viewEdit" v-model="ruleForm.ygdj.szc"></el-input> | 118 | <el-input maxlength="20" :disabled="!viewEdit" v-model="ruleForm.ygdj.szc"></el-input> |
119 | </el-form-item> | 119 | </el-form-item> |
120 | </el-col> | 120 | </el-col> |
121 | <el-col :span="8"> | 121 | <el-col :span="8"> |
122 | <el-form-item label="总层数:"> | 122 | <el-form-item label="总层数:" prop="ygdj.zcs"> |
123 | <el-input | 123 | <el-input |
124 | :disabled="!viewEdit" | 124 | :disabled="!viewEdit" |
125 | maxlength="4" | 125 | maxlength="4" |
... | @@ -130,7 +130,7 @@ | ... | @@ -130,7 +130,7 @@ |
130 | </el-row> | 130 | </el-row> |
131 | <el-row :gutter="10" v-if="ruleForm.qlxx"> | 131 | <el-row :gutter="10" v-if="ruleForm.qlxx"> |
132 | <el-col :span="8"> | 132 | <el-col :span="8"> |
133 | <el-form-item label="房屋结构:"> | 133 | <el-form-item label="房屋结构:" prop="ygdj.fwjg"> |
134 | <el-select v-model="ruleForm.ygdj.fwjg" :disabled="!viewEdit"> | 134 | <el-select v-model="ruleForm.ygdj.fwjg" :disabled="!viewEdit"> |
135 | <el-option | 135 | <el-option |
136 | v-for="item in dictData['A46']" | 136 | v-for="item in dictData['A46']" |
... | @@ -143,7 +143,7 @@ | ... | @@ -143,7 +143,7 @@ |
143 | </el-col> | 143 | </el-col> |
144 | 144 | ||
145 | <el-col :span="8"> | 145 | <el-col :span="8"> |
146 | <el-form-item label="建筑面积:"> | 146 | <el-form-item label="建筑面积:" prop="ygdj.jzmj"> |
147 | <div class="flex"> | 147 | <div class="flex"> |
148 | <el-input | 148 | <el-input |
149 | maxlength="12" | 149 | maxlength="12" |
... | @@ -262,7 +262,7 @@ | ... | @@ -262,7 +262,7 @@ |
262 | </div> | 262 | </div> |
263 | <el-row :gutter="10"> | 263 | <el-row :gutter="10"> |
264 | <el-col> | 264 | <el-col> |
265 | <el-form-item v-if="ruleForm.sldy.djlx=='400'" label="注销登记原因:" prop="djyy"> | 265 | <el-form-item v-if="ruleForm.sldy.djlx=='400'" label="注销登记原因:" prop="ygdj.zxyy"> |
266 | <el-input | 266 | <el-input |
267 | class="textArea" | 267 | class="textArea" |
268 | type="textarea" | 268 | type="textarea" |
... | @@ -324,7 +324,8 @@ | ... | @@ -324,7 +324,8 @@ |
324 | } | 324 | } |
325 | }) | 325 | }) |
326 | that.czrOptions = this.ruleForm.qlrList | 326 | that.czrOptions = this.ruleForm.qlrList |
327 | that.isSave = that.viewEdit | 327 | that.isSave = that.viewEdit; |
328 | this.rules = formValidate(this.ruleForm.sldy.djlx); | ||
328 | } else { | 329 | } else { |
329 | that.isSave = false | 330 | that.isSave = false |
330 | that.$confirm(res.message, '提示', { | 331 | that.$confirm(res.message, '提示', { |
... | @@ -362,11 +363,7 @@ | ... | @@ -362,11 +363,7 @@ |
362 | }, | 363 | }, |
363 | //传递参数 | 364 | //传递参数 |
364 | propsParam: this.$attrs, | 365 | propsParam: this.$attrs, |
365 | rules: { | 366 | rules: {} |
366 | 'ygdj.djyy': [ | ||
367 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
368 | ] | ||
369 | } | ||
370 | } | 367 | } |
371 | }, | 368 | }, |
372 | methods: { | 369 | methods: { | ... | ... |
... | @@ -4,89 +4,111 @@ | ... | @@ -4,89 +4,111 @@ |
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 | 'sldy.zl': [ |
9 | return fristValidate(); | 9 | { required: false, message: '坐落:', trigger: 'blur' } |
10 | case "200": | 10 | ], |
11 | return transferValidate(); | 11 | 'ygdj.fwxz': [ |
12 | case "300": | 12 | { required: false, message: '房屋性质:', trigger: 'blur' } |
13 | return changeValidate(); | 13 | ], |
14 | case "400": | 14 | 'ygdj.ghyt': [ |
15 | return logoutValidate(); | 15 | { required: false, message: '房屋用途:', trigger: 'blur' } |
16 | case "500": | 16 | ], |
17 | return riviseValidate(); | 17 | 'ygdj.szc': [ |
18 | case "901": | 18 | { required: false, message: '所在层:', trigger: 'blur' } |
19 | return renewalValidate(); | 19 | ], |
20 | case "902": | 20 | 'ygdj.zcs': [ |
21 | return replaceValidate(); | 21 | { required: false, message: '总层数:', trigger: 'blur' } |
22 | ], | ||
23 | 'ygdj.fwjg': [ | ||
24 | { required: false, message: '房屋结构:', trigger: 'blur' } | ||
25 | ], | ||
26 | 'ygdj.jzmj': [ | ||
27 | { required: false, message: '建筑面积:', trigger: 'blur' } | ||
28 | ], | ||
29 | 'ygdj.djyy': [ | ||
30 | { required: false, message: '请输入登记原因', trigger: 'blur' } | ||
31 | ], | ||
32 | 'ygdj.zxyy': [ | ||
33 | { required: false, message: '请输入注销登记原因', trigger: 'blur' } | ||
34 | ] | ||
35 | } | ||
36 | if (djlx=="400") { | ||
37 | formRules["ygdj.zxyy"][0].required=true; | ||
38 | }else{ | ||
39 | formRules["sldy.zl"][0].required=true; | ||
40 | formRules["ygdj.fwxz"][0].required=true; | ||
41 | formRules["ygdj.ghyt"][0].required=true; | ||
42 | formRules["ygdj.szc"][0].required=true; | ||
43 | formRules["ygdj.zcs"][0].required=true; | ||
44 | formRules["ygdj.fwjg"][0].required=true; | ||
45 | formRules["ygdj.jzmj"][0].required=true; | ||
46 | formRules["ygdj.djyy"][0].required=true; | ||
47 | } | ||
48 | return formRules; | ||
22 | } | 49 | } |
23 | } | ||
24 | 50 | ||
25 | /** | 51 | /** |
26 | * @description: 首次登记效验 | 52 | * @description: 首次登记效验 |
27 | * @param {*} data | 53 | * @param {*} data |
28 | * @author: renchao | 54 | * @author: renchao |
29 | */ | 55 | */ |
30 | export function fristValidate () { | 56 | export function fristValidate (formRules,dyfs) { |
31 | var formRules={ | 57 | |
32 | 'diyaq.djyy': [ | ||
33 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
34 | ] | ||
35 | } | ||
36 | return formRules; | 58 | return formRules; |
37 | } | 59 | } |
38 | 60 | ||
39 | 61 | ||
40 | /** | 62 | /** |
41 | * @description: 转移登记效验 | 63 | * @description: 转移登记效验 |
42 | * @param {*} data | 64 | * @param {*} data |
43 | * @author: renchao | 65 | * @author: renchao |
44 | */ | 66 | */ |
45 | export function transferValidate (data) { | 67 | export function transferValidate (data) { |
46 | 68 | ||
47 | } | 69 | } |
48 | 70 | ||
49 | /** | 71 | /** |
50 | * @description: 变更登记效验 | 72 | * @description: 变更登记效验 |
51 | * @param {*} data | 73 | * @param {*} data |
52 | * @author: renchao | 74 | * @author: renchao |
53 | */ | 75 | */ |
54 | export function changeValidate (data) { | 76 | export function changeValidate (data) { |
55 | 77 | ||
56 | } | 78 | } |
57 | 79 | ||
58 | /** | 80 | /** |
59 | * @description: 注销登记效验 | 81 | * @description: 注销登记效验 |
60 | * @param {*} data | 82 | * @param {*} data |
61 | * @author: renchao | 83 | * @author: renchao |
62 | */ | 84 | */ |
63 | export function logoutValidate (data) { | 85 | export function logoutValidate (data) { |
64 | 86 | ||
65 | } | 87 | } |
66 | 88 | ||
67 | /** | 89 | /** |
68 | * @description: 更正登记效验 | 90 | * @description: 更正登记效验 |
69 | * @param {*} data | 91 | * @param {*} data |
70 | * @author: renchao | 92 | * @author: renchao |
71 | */ | 93 | */ |
72 | export function riviseValidate (data) { | 94 | export function riviseValidate (data) { |
73 | 95 | ||
74 | } | 96 | } |
75 | 97 | ||
76 | /** | 98 | /** |
77 | * @description: 补证登记效验 | 99 | * @description: 补证登记效验 |
78 | * @param {*} data | 100 | * @param {*} data |
79 | * @author: renchao | 101 | * @author: renchao |
80 | */ | 102 | */ |
81 | export function renewalValidate (data) { | 103 | export function renewalValidate (data) { |
82 | 104 | ||
83 | } | 105 | } |
84 | 106 | ||
85 | /** | 107 | /** |
86 | * @description: 换证登记效验 | 108 | * @description: 换证登记效验 |
87 | * @param {*} data | 109 | * @param {*} data |
88 | * @author: renchao | 110 | * @author: renchao |
89 | */ | 111 | */ |
90 | export function replaceValidate (data) { | 112 | export function replaceValidate (data) { |
91 | 113 | ||
92 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
114 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment