受理申请效验
Showing
11 changed files
with
201 additions
and
223 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(); | 17 | } |
18 | case "901": | 18 | |
19 | return renewalValidate(); | 19 | return formRules; |
20 | case "902": | ||
21 | return replaceValidate(); | ||
22 | } | ||
23 | } | 20 | } |
24 | 21 | ||
25 | /** | 22 | /** |
... | @@ -27,13 +24,7 @@ export function formValidate (djlx) { | ... | @@ -27,13 +24,7 @@ export function formValidate (djlx) { |
27 | * @param {*} data | 24 | * @param {*} data |
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(); | 17 | } |
18 | case "901": | 18 | |
19 | return renewalValidate(); | 19 | return formRules; |
20 | case "902": | ||
21 | return replaceValidate(); | ||
22 | } | ||
23 | } | 20 | } |
24 | 21 | ||
25 | /** | 22 | /** |
... | @@ -27,13 +24,7 @@ export function formValidate (djlx) { | ... | @@ -27,13 +24,7 @@ export function formValidate (djlx) { |
27 | * @param {*} data | 24 | * @param {*} data |
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(); | 17 | } |
18 | case "901": | 18 | |
19 | return renewalValidate(); | 19 | return formRules; |
20 | case "902": | ||
21 | return replaceValidate(); | ||
22 | } | ||
23 | } | 20 | } |
24 | 21 | ||
25 | /** | 22 | /** |
... | @@ -27,13 +24,7 @@ export function formValidate (djlx) { | ... | @@ -27,13 +24,7 @@ export function formValidate (djlx) { |
27 | * @param {*} data | 24 | * @param {*} data |
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": | 20 | } |
21 | return replaceValidate(); | 21 | |
22 | } | 22 | return formRules; |
23 | } | 23 | } |
24 | 24 | ||
25 | /** | 25 | /** |
... | @@ -27,13 +27,7 @@ export function formValidate (djlx) { | ... | @@ -27,13 +27,7 @@ export function formValidate (djlx) { |
27 | * @param {*} data | 27 | * @param {*} data |
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 | } | 22 | ], |
23 | } | 23 | 'ygdj.fwjg': [ |
24 | 24 | { required: false, message: '房屋结构:', trigger: 'blur' } | |
25 | /** | 25 | ], |
26 | * @description: 首次登记效验 | 26 | 'ygdj.jzmj': [ |
27 | * @param {*} data | 27 | { required: false, message: '建筑面积:', trigger: 'blur' } |
28 | * @author: renchao | 28 | ], |
29 | */ | 29 | 'ygdj.djyy': [ |
30 | export function fristValidate () { | 30 | { required: false, message: '请输入登记原因', trigger: 'blur' } |
31 | var formRules={ | 31 | ], |
32 | 'diyaq.djyy': [ | 32 | 'ygdj.zxyy': [ |
33 | { required: true, message: '请输入登记原因', trigger: 'blur' } | 33 | { required: false, message: '请输入注销登记原因', trigger: 'blur' } |
34 | ] | 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; | ||
35 | } | 49 | } |
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 |
50 | |||
51 | /** | ||
52 | * @description: 首次登记效验 | ||
53 | * @param {*} data | ||
54 | * @author: renchao | ||
55 | */ | ||
56 | export function fristValidate (formRules,dyfs) { | ||
57 | |||
58 | return formRules; | ||
59 | } | ||
60 | |||
61 | |||
62 | /** | ||
63 | * @description: 转移登记效验 | ||
64 | * @param {*} data | ||
65 | * @author: renchao | ||
66 | */ | ||
67 | export function transferValidate (data) { | ||
68 | |||
69 | } | ||
70 | |||
71 | /** | ||
72 | * @description: 变更登记效验 | ||
73 | * @param {*} data | ||
74 | * @author: renchao | ||
75 | */ | ||
76 | export function changeValidate (data) { | ||
77 | |||
78 | } | ||
79 | |||
80 | /** | ||
81 | * @description: 注销登记效验 | ||
82 | * @param {*} data | ||
83 | * @author: renchao | ||
84 | */ | ||
85 | export function logoutValidate (data) { | ||
86 | |||
87 | } | ||
88 | |||
89 | /** | ||
90 | * @description: 更正登记效验 | ||
91 | * @param {*} data | ||
92 | * @author: renchao | ||
93 | */ | ||
94 | export function riviseValidate (data) { | ||
95 | |||
96 | } | ||
97 | |||
98 | /** | ||
99 | * @description: 补证登记效验 | ||
100 | * @param {*} data | ||
101 | * @author: renchao | ||
102 | */ | ||
103 | export function renewalValidate (data) { | ||
104 | |||
105 | } | ||
106 | |||
107 | /** | ||
108 | * @description: 换证登记效验 | ||
109 | * @param {*} data | ||
110 | * @author: renchao | ||
111 | */ | ||
112 | export function replaceValidate (data) { | ||
113 | |||
114 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment