更新房屋对应的效验内容
Showing
5 changed files
with
71 additions
and
43 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 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.fdcq1"> | 91 | <el-row :gutter="10" v-if="ruleForm.fdcq1"> |
| 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 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" |
| ... | @@ -107,13 +107,21 @@ | ... | @@ -107,13 +107,21 @@ |
| 107 | </el-form-item> | 107 | </el-form-item> |
| 108 | </el-col> | 108 | </el-col> |
| 109 | <el-col :span="8"> | 109 | <el-col :span="8"> |
| 110 | <el-form-item label="土地性质:"> | 110 | <el-form-item label="土地性质:" prop="zdjbxx.qlxz"> |
| 111 | <el-input disabled v-model="ruleForm.zdjbxx.qlxzmc"></el-input> | 111 | <treeselect |
| 112 | :disabled="!viewEdit" | ||
| 113 | v-model="ruleForm.zdjbxx.qlxz" | ||
| 114 | noOptionsText="暂无数据" | ||
| 115 | placeholder="" | ||
| 116 | :normalizer="normalizer" | ||
| 117 | :default-expand-level="1" | ||
| 118 | :show-count="true" | ||
| 119 | :options="dictData['A9']" /> | ||
| 112 | </el-form-item> | 120 | </el-form-item> |
| 113 | </el-col> | 121 | </el-col> |
| 114 | <el-col :span="8"> | 122 | <el-col :span="8"> |
| 115 | <el-form-item label="土地使用权人:"> | 123 | <el-form-item label="土地使用权人:"> |
| 116 | <el-input disabled v-model="ruleForm.fdcq1.tdsyqr"></el-input> | 124 | <el-input :disabled="!viewEdit" v-model="ruleForm.fdcq1.tdsyqr"></el-input> |
| 117 | </el-form-item> | 125 | </el-form-item> |
| 118 | </el-col> | 126 | </el-col> |
| 119 | </el-row> | 127 | </el-row> |
| ... | @@ -157,8 +165,7 @@ | ... | @@ -157,8 +165,7 @@ |
| 157 | </el-form-item> | 165 | </el-form-item> |
| 158 | </el-col> | 166 | </el-col> |
| 159 | <el-col :span="8"> | 167 | <el-col :span="8"> |
| 160 | 168 | <el-form-item label="房地产交易价格:" prop="fdcq1.fdcjyjg"> | |
| 161 | <el-form-item label="房地产交易价格:"> | ||
| 162 | <div class="flex"> | 169 | <div class="flex"> |
| 163 | <el-input | 170 | <el-input |
| 164 | maxlength="11" | 171 | maxlength="11" |
| ... | @@ -176,6 +183,18 @@ | ... | @@ -176,6 +183,18 @@ |
| 176 | </div> | 183 | </div> |
| 177 | </el-form-item> | 184 | </el-form-item> |
| 178 | </el-col> | 185 | </el-col> |
| 186 | <el-col :span="8"> | ||
| 187 | <el-form-item label="产权来源:" prop="fdcq1.cqlybm"> | ||
| 188 | <el-select v-model="ruleForm.fdcq1.cqlybm" :disabled="!viewEdit"> | ||
| 189 | <el-option | ||
| 190 | v-for="item in dictData['cqly']" | ||
| 191 | :key="item.dcode" | ||
| 192 | :label="item.dname" | ||
| 193 | :value="item.dcode"> | ||
| 194 | </el-option> | ||
| 195 | </el-select> | ||
| 196 | </el-form-item> | ||
| 197 | </el-col> | ||
| 179 | </el-row> | 198 | </el-row> |
| 180 | <el-row :gutter="10"> | 199 | <el-row :gutter="10"> |
| 181 | <el-col :span="24"> | 200 | <el-col :span="24"> |
| ... | @@ -274,7 +293,7 @@ | ... | @@ -274,7 +293,7 @@ |
| 274 | </div> | 293 | </div> |
| 275 | <el-row :gutter="10"> | 294 | <el-row :gutter="10"> |
| 276 | <el-col> | 295 | <el-col> |
| 277 | <el-form-item v-if="ruleForm.sldy" label="登记原因:" prop="fdcq1.djyy"> | 296 | <el-form-item label="登记原因:" prop="fdcq1.djyy"> |
| 278 | <el-input | 297 | <el-input |
| 279 | class="textArea" | 298 | class="textArea" |
| 280 | type="textarea" | 299 | type="textarea" |
| ... | @@ -307,8 +326,7 @@ | ... | @@ -307,8 +326,7 @@ |
| 307 | export default { | 326 | export default { |
| 308 | mixins: [ywmix], | 327 | mixins: [ywmix], |
| 309 | mounted () { | 328 | mounted () { |
| 310 | let that = this | 329 | let that = this; |
| 311 | // this.loading = true | ||
| 312 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 330 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
| 313 | this.propsParam = this.$attrs; | 331 | this.propsParam = this.$attrs; |
| 314 | var formdata = new FormData(); | 332 | var formdata = new FormData(); |
| ... | @@ -331,7 +349,8 @@ | ... | @@ -331,7 +349,8 @@ |
| 331 | } | 349 | } |
| 332 | }); | 350 | }); |
| 333 | that.czrOptions = that.ruleForm.qlrList; | 351 | that.czrOptions = that.ruleForm.qlrList; |
| 334 | that.isSave = this.viewEdit | 352 | that.isSave = this.viewEdit; |
| 353 | this.rules = formValidate(this.ruleForm.sldy.djlx); | ||
| 335 | } else { | 354 | } else { |
| 336 | that.isSave = false | 355 | that.isSave = false |
| 337 | that.$confirm(res.message, '提示', { | 356 | that.$confirm(res.message, '提示', { |
| ... | @@ -350,6 +369,16 @@ | ... | @@ -350,6 +369,16 @@ |
| 350 | }, | 369 | }, |
| 351 | data () { | 370 | data () { |
| 352 | return { | 371 | return { |
| 372 | normalizer (node) { | ||
| 373 | if (node.children == null || node.children == "null") { | ||
| 374 | delete node.children; | ||
| 375 | } | ||
| 376 | return { | ||
| 377 | id: node.dcode, | ||
| 378 | label: node.dname, | ||
| 379 | children: node.children, | ||
| 380 | }; | ||
| 381 | }, | ||
| 353 | isSave: true, | 382 | isSave: true, |
| 354 | loading: false, | 383 | loading: false, |
| 355 | disabled: true, | 384 | disabled: true, |
| ... | @@ -380,11 +409,7 @@ | ... | @@ -380,11 +409,7 @@ |
| 380 | propsParam: this.$attrs, | 409 | propsParam: this.$attrs, |
| 381 | //表单是否可操作 | 410 | //表单是否可操作 |
| 382 | viewEdit: false, | 411 | viewEdit: false, |
| 383 | rules: { | 412 | rules: {} |
| 384 | 'fdcq1.djyy': [ | ||
| 385 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
| 386 | ] | ||
| 387 | } | ||
| 388 | } | 413 | } |
| 389 | }, | 414 | }, |
| 390 | methods: { | 415 | methods: { | ... | ... |
| ... | @@ -4,22 +4,27 @@ | ... | @@ -4,22 +4,27 @@ |
| 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 | 'zdjbxx.qlxz': [ |
| 15 | return logoutValidate(); | 15 | { required: true, message: '土地性质:', trigger: 'blur' } |
| 16 | case "500": | 16 | ], |
| 17 | return riviseValidate(); | 17 | 'fdcq1.djyy': [ |
| 18 | case "901": | 18 | { required: true, message: '登记原因:', trigger: 'blur' } |
| 19 | return renewalValidate(); | 19 | ], |
| 20 | case "902": | 20 | 'fdcq1.fdcjyjg': [ |
| 21 | return replaceValidate(); | 21 | { required: false, message: '房地产交易价格:', trigger: 'blur' } |
| 22 | } | 22 | ] |
| 23 | } | ||
| 24 | if (djlx=="200") { | ||
| 25 | formRules["fdcq1.fdcjyjg"][0].required=true; | ||
| 26 | } | ||
| 27 | return formRules; | ||
| 23 | } | 28 | } |
| 24 | 29 | ||
| 25 | /** | 30 | /** |
| ... | @@ -28,12 +33,6 @@ export function formValidate (djlx) { | ... | @@ -28,12 +33,6 @@ export function formValidate (djlx) { |
| 28 | * @author: renchao | 33 | * @author: renchao |
| 29 | */ | 34 | */ |
| 30 | export function fristValidate () { | 35 | export function fristValidate () { |
| 31 | var formRules={ | ||
| 32 | 'diyaq.djyy': [ | ||
| 33 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
| 34 | ] | ||
| 35 | } | ||
| 36 | return formRules; | ||
| 37 | } | 36 | } |
| 38 | 37 | ||
| 39 | 38 | ... | ... |
| ... | @@ -690,7 +690,7 @@ | ... | @@ -690,7 +690,7 @@ |
| 690 | } | 690 | } |
| 691 | this.$refs['ruleForm'].validate((valid) => { | 691 | this.$refs['ruleForm'].validate((valid) => { |
| 692 | if (valid) { | 692 | if (valid) { |
| 693 | that.$store.dispatch("user/refreshPage", false); | 693 | that.$store.dispatch("user/refreshPage", false); |
| 694 | saveData(that.ruleForm).then((res) => { | 694 | saveData(that.ruleForm).then((res) => { |
| 695 | if (res.code === 200) { | 695 | if (res.code === 200) { |
| 696 | that.$message({ | 696 | that.$message({ |
| ... | @@ -711,7 +711,7 @@ | ... | @@ -711,7 +711,7 @@ |
| 711 | } else { | 711 | } else { |
| 712 | that.$message({ | 712 | that.$message({ |
| 713 | showClose: true, | 713 | showClose: true, |
| 714 | message: "请输入登记原因", | 714 | message: "请输入红框内的相关信息!", |
| 715 | type: "error" | 715 | type: "error" |
| 716 | }) | 716 | }) |
| 717 | return false | 717 | return false | ... | ... |
| ... | @@ -40,7 +40,7 @@ export function formValidate (djlx) { | ... | @@ -40,7 +40,7 @@ export function formValidate (djlx) { |
| 40 | ] | 40 | ] |
| 41 | } | 41 | } |
| 42 | if (djlx=="200") { | 42 | if (djlx=="200") { |
| 43 | formRules["cfdj.fdcjyjg"][0].required=true; | 43 | formRules["fdcq2.fdcjyjg"][0].required=true; |
| 44 | } | 44 | } |
| 45 | return formRules; | 45 | return formRules; |
| 46 | } | 46 | } | ... | ... |
| ... | @@ -183,6 +183,10 @@ class data extends filter { | ... | @@ -183,6 +183,10 @@ class data extends filter { |
| 183 | label: "权利类型", | 183 | label: "权利类型", |
| 184 | }, | 184 | }, |
| 185 | { | 185 | { |
| 186 | prop: "bdcdyh", | ||
| 187 | label: "不动产单元号", | ||
| 188 | }, | ||
| 189 | { | ||
| 186 | prop: "xmmc", | 190 | prop: "xmmc", |
| 187 | label: "项目名称", | 191 | label: "项目名称", |
| 188 | }, | 192 | }, | ... | ... |
-
Please register or sign in to post a comment