1111
Showing
2 changed files
with
55 additions
and
41 deletions
... | @@ -83,16 +83,16 @@ | ... | @@ -83,16 +83,16 @@ |
83 | </el-form-item> | 83 | </el-form-item> |
84 | </el-col> | 84 | </el-col> |
85 | <el-col :span="8"> | 85 | <el-col :span="8"> |
86 | <el-form-item label="坐落:"> | 86 | <el-form-item label="坐落:" prop="sldy.zl"> |
87 | <el-input maxlength="100" :disabled="!viewEdit" v-model="ruleForm.sldy.zl"></el-input> | 87 | <el-input maxlength="100" :disabled="!viewEdit" v-model="ruleForm.sldy.zl" ></el-input> |
88 | </el-form-item> | 88 | </el-form-item> |
89 | </el-col> | 89 | </el-col> |
90 | </el-row> | 90 | </el-row> |
91 | <el-row :gutter="10" v-if="ruleForm.fdcq2"> | 91 | <el-row :gutter="10" v-if="ruleForm.fdcq2"> |
92 | <el-col :span="8"> | 92 | <el-col :span="8"> |
93 | <el-form-item label="宗地面积:"> | 93 | <el-form-item label="宗地面积:" prop="zdjbxx.zdmj"> |
94 | <div class="flex"> | 94 | <div class="flex"> |
95 | <el-input :disabled="!viewEdit" v-model="ruleForm.zdjbxx.zdmj"></el-input> | 95 | <el-input :disabled="!viewEdit" v-model="ruleForm.zdjbxx.zdmj" ></el-input> |
96 | <el-select | 96 | <el-select |
97 | disabled | 97 | disabled |
98 | v-model="ruleForm.zdjbxx.mjdw" | 98 | v-model="ruleForm.zdjbxx.mjdw" |
... | @@ -113,7 +113,7 @@ | ... | @@ -113,7 +113,7 @@ |
113 | </el-form-item> | 113 | </el-form-item> |
114 | </el-col> | 114 | </el-col> |
115 | <el-col :span="8"> | 115 | <el-col :span="8"> |
116 | <el-form-item label="土地性质:"> | 116 | <el-form-item label="土地性质:" prop="fdcq2.tdxz"> |
117 | <treeselect | 117 | <treeselect |
118 | :disabled="!viewEdit" | 118 | :disabled="!viewEdit" |
119 | v-model="ruleForm.fdcq2.tdxz" | 119 | v-model="ruleForm.fdcq2.tdxz" |
... | @@ -166,7 +166,7 @@ | ... | @@ -166,7 +166,7 @@ |
166 | </el-form-item> | 166 | </el-form-item> |
167 | </el-col> | 167 | </el-col> |
168 | <el-col :span="8"> | 168 | <el-col :span="8"> |
169 | <el-form-item label="房屋性质:"> | 169 | <el-form-item label="房屋性质:" prop="fdcq2.fwxz"> |
170 | <el-select v-model="ruleForm.fdcq2.fwxz" :disabled="!viewEdit"> | 170 | <el-select v-model="ruleForm.fdcq2.fwxz" :disabled="!viewEdit"> |
171 | <el-option | 171 | <el-option |
172 | v-for="item in dictData['A19']" | 172 | v-for="item in dictData['A19']" |
... | @@ -180,7 +180,7 @@ | ... | @@ -180,7 +180,7 @@ |
180 | </el-row> | 180 | </el-row> |
181 | <el-row :gutter="10" v-if="ruleForm.qlxx"> | 181 | <el-row :gutter="10" v-if="ruleForm.qlxx"> |
182 | <el-col :span="8"> | 182 | <el-col :span="8"> |
183 | <el-form-item label="房屋用途:"> | 183 | <el-form-item label="房屋用途:" prop="fdcq2.ghyt"> |
184 | <treeselect | 184 | <treeselect |
185 | v-model="ruleForm.fdcq2.ghyt" | 185 | v-model="ruleForm.fdcq2.ghyt" |
186 | :disabled="!viewEdit" | 186 | :disabled="!viewEdit" |
... | @@ -192,7 +192,7 @@ | ... | @@ -192,7 +192,7 @@ |
192 | </el-form-item> | 192 | </el-form-item> |
193 | </el-col> | 193 | </el-col> |
194 | <el-col :span="8"> | 194 | <el-col :span="8"> |
195 | <el-form-item label="房屋结构:"> | 195 | <el-form-item label="房屋结构:" prop="fdcq2.fwjg"> |
196 | <el-select v-model="ruleForm.fdcq2.fwjg" :disabled="!viewEdit"> | 196 | <el-select v-model="ruleForm.fdcq2.fwjg" :disabled="!viewEdit"> |
197 | <el-option | 197 | <el-option |
198 | v-for="item in dictData['A46']" | 198 | v-for="item in dictData['A46']" |
... | @@ -217,7 +217,7 @@ | ... | @@ -217,7 +217,7 @@ |
217 | </el-row> | 217 | </el-row> |
218 | <el-row :gutter="10" v-if="ruleForm.qlxx"> | 218 | <el-row :gutter="10" v-if="ruleForm.qlxx"> |
219 | <el-col :span="8"> | 219 | <el-col :span="8"> |
220 | <el-form-item label="所在层:"> | 220 | <el-form-item label="所在层:" prop="fdcq2.szc"> |
221 | <el-input | 221 | <el-input |
222 | maxlength="20" | 222 | maxlength="20" |
223 | v-model="ruleForm.fdcq2.szc" | 223 | v-model="ruleForm.fdcq2.szc" |
... | @@ -225,7 +225,7 @@ | ... | @@ -225,7 +225,7 @@ |
225 | </el-form-item> | 225 | </el-form-item> |
226 | </el-col> | 226 | </el-col> |
227 | <el-col :span="8"> | 227 | <el-col :span="8"> |
228 | <el-form-item label="总层数:"> | 228 | <el-form-item label="总层数:" prop="fdcq2.zcs"> |
229 | <el-input | 229 | <el-input |
230 | maxlength="4" | 230 | maxlength="4" |
231 | :disabled="!viewEdit" | 231 | :disabled="!viewEdit" |
... | @@ -234,7 +234,7 @@ | ... | @@ -234,7 +234,7 @@ |
234 | </el-form-item> | 234 | </el-form-item> |
235 | </el-col> | 235 | </el-col> |
236 | <el-col :span="8"> | 236 | <el-col :span="8"> |
237 | <el-form-item label="房地产交易价格:"> | 237 | <el-form-item label="房地产交易价格:" prop="fdcq2.fdcjyjg"> |
238 | <div class="flex"> | 238 | <div class="flex"> |
239 | <el-input | 239 | <el-input |
240 | maxlength="11" | 240 | maxlength="11" |
... | @@ -256,7 +256,7 @@ | ... | @@ -256,7 +256,7 @@ |
256 | </el-row> | 256 | </el-row> |
257 | <el-row :gutter="10" v-if="ruleForm.fdcq2"> | 257 | <el-row :gutter="10" v-if="ruleForm.fdcq2"> |
258 | <el-col :span="8"> | 258 | <el-col :span="8"> |
259 | <el-form-item label="建筑面积:"> | 259 | <el-form-item label="建筑面积:" prop="fdcq2.jzmj"> |
260 | <div class="flex"> | 260 | <div class="flex"> |
261 | <el-input | 261 | <el-input |
262 | maxlength="12" | 262 | maxlength="12" |
... | @@ -461,7 +461,8 @@ | ... | @@ -461,7 +461,8 @@ |
461 | } | 461 | } |
462 | }) | 462 | }) |
463 | that.czrOptions = that.ruleForm.qlrList; | 463 | that.czrOptions = that.ruleForm.qlrList; |
464 | that.isSave = that.viewEdit | 464 | that.isSave = that.viewEdit; |
465 | this.rules = formValidate(this.ruleForm.sldy.djlx); | ||
465 | } else { | 466 | } else { |
466 | that.isSave = false | 467 | that.isSave = false |
467 | that.$confirm(res.message, '提示', { | 468 | that.$confirm(res.message, '提示', { |
... | @@ -548,11 +549,7 @@ | ... | @@ -548,11 +549,7 @@ |
548 | }, | 549 | }, |
549 | //传递参数 | 550 | //传递参数 |
550 | propsParam: {}, | 551 | propsParam: {}, |
551 | rules: { | 552 | rules: {} |
552 | 'fdcq2.djyy': [ | ||
553 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
554 | ] | ||
555 | } | ||
556 | } | 553 | } |
557 | }, | 554 | }, |
558 | methods: { | 555 | methods: { | ... | ... |
... | @@ -4,22 +4,45 @@ | ... | @@ -4,22 +4,45 @@ |
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 | 'fdcq2.tdxz': [ |
15 | return logoutValidate(); | 15 | { required: false, message: '土地性质:', trigger: 'blur' } |
16 | case "500": | 16 | ], |
17 | return riviseValidate(); | 17 | 'fdcq2.fwxz': [ |
18 | case "901": | 18 | { required: true, message: '房屋性质:', trigger: 'blur' } |
19 | return renewalValidate(); | 19 | ], |
20 | case "902": | 20 | 'fdcq2.ghyt': [ |
21 | return replaceValidate(); | 21 | { required: true, message: '房屋用途:', trigger: 'blur' } |
22 | } | 22 | ], |
23 | 'fdcq2.fwjg': [ | ||
24 | { required: true, message: '房屋结构:', trigger: 'blur' } | ||
25 | ], | ||
26 | 'fdcq2.szc': [ | ||
27 | { required: true, message: '所在层:', trigger: 'blur' } | ||
28 | ], | ||
29 | 'fdcq2.zcs': [ | ||
30 | { required: true, message: '总层数:', trigger: 'blur' } | ||
31 | ], | ||
32 | 'fdcq2.jzmj': [ | ||
33 | { required: true, message: '建筑面积:', trigger: 'blur' } | ||
34 | ], | ||
35 | 'fdcq2.djyy': [ | ||
36 | { required: true, message: '登记原因:', trigger: 'blur' } | ||
37 | ], | ||
38 | 'fdcq2.fdcjyjg': [ | ||
39 | { required: false, message: '房地产交易价格:', trigger: 'blur' } | ||
40 | ] | ||
41 | } | ||
42 | if (djlx=="200") { | ||
43 | formRules["cfdj.fdcjyjg"][0].required=true; | ||
44 | } | ||
45 | return formRules; | ||
23 | } | 46 | } |
24 | 47 | ||
25 | /** | 48 | /** |
... | @@ -27,13 +50,7 @@ export function formValidate (djlx) { | ... | @@ -27,13 +50,7 @@ export function formValidate (djlx) { |
27 | * @param {*} data | 50 | * @param {*} data |
28 | * @author: renchao | 51 | * @author: renchao |
29 | */ | 52 | */ |
30 | export function fristValidate () { | 53 | export function fristValidate () { |
31 | var formRules={ | ||
32 | 'diyaq.djyy': [ | ||
33 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
34 | ] | ||
35 | } | ||
36 | return formRules; | ||
37 | } | 54 | } |
38 | 55 | ||
39 | 56 | ... | ... |
-
Please register or sign in to post a comment