首次登记和注销登记代码优化
Showing
1 changed file
with
389 additions
and
0 deletions
src/views/ywbl/fdcq2/slxx400.vue
0 → 100644
| 1 | <template> | ||
| 2 | <!-- 受理信息 --> | ||
| 3 | <div class="slxx"> | ||
| 4 | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" :label-position="flag ? 'top' : ''" :inline="flag" | ||
| 5 | label-width="120px"> | ||
| 6 | <div class="slxx_con"> | ||
| 7 | <div class="slxx_title title-block"> | ||
| 8 | 受理信息 | ||
| 9 | <div class="triangle"></div> | ||
| 10 | </div> | ||
| 11 | <el-row :gutter="10" v-if="ruleForm.slywxx"> | ||
| 12 | <el-col :span="8"> | ||
| 13 | <el-form-item :class="flag ? 'marginBot0' : ''" label="业务号:"> | ||
| 14 | <el-input disabled v-model="ruleForm.slywxx.ywh"></el-input> | ||
| 15 | </el-form-item> | ||
| 16 | </el-col> | ||
| 17 | <el-col :span="8"> | ||
| 18 | <el-form-item :class="flag ? 'marginBot0' : ''" label="受理人员:"> | ||
| 19 | <el-input disabled v-model="ruleForm.slywxx.slry"></el-input> | ||
| 20 | </el-form-item> | ||
| 21 | </el-col> | ||
| 22 | <el-col :span="8"> | ||
| 23 | <el-form-item :class="flag ? 'marginBot0' : ''" label="受理时间:"> | ||
| 24 | <el-input disabled v-model="ruleForm.slywxx.slsj"></el-input> | ||
| 25 | </el-form-item> | ||
| 26 | </el-col> | ||
| 27 | </el-row> | ||
| 28 | <el-row :gutter="10" v-if="ruleForm.slywxx"> | ||
| 29 | <el-col :span="8"> | ||
| 30 | <el-form-item :class="flag ? 'marginBot0' : ''" label="权利类型:"> | ||
| 31 | <el-input disabled v-model="ruleForm.slywxx.qllxmc"></el-input> | ||
| 32 | </el-form-item> | ||
| 33 | </el-col> | ||
| 34 | <el-col :span="8"> | ||
| 35 | <el-form-item :class="flag ? 'marginBot0' : ''" label="登记类型:"> | ||
| 36 | <el-input disabled v-model="ruleForm.slywxx.djlxmc"></el-input> | ||
| 37 | </el-form-item> | ||
| 38 | </el-col> | ||
| 39 | <el-col :span="8"> | ||
| 40 | <el-form-item :class="flag ? 'marginBot0' : ''" label="登记情形:"> | ||
| 41 | <el-input disabled v-model="ruleForm.slywxx.djqxmc"></el-input> | ||
| 42 | </el-form-item> | ||
| 43 | </el-col> | ||
| 44 | </el-row> | ||
| 45 | <div class="slxx_title title-block"> | ||
| 46 | 不动产单元情况 | ||
| 47 | <div class="triangle"></div> | ||
| 48 | </div> | ||
| 49 | |||
| 50 | <el-row :gutter="10" v-if="ruleForm.qlxx"> | ||
| 51 | <el-col :span="8"> | ||
| 52 | <el-form-item :class="flag ? 'marginBot0' : ''" label="不动产单元号:"> | ||
| 53 | <el-input disabled v-model="ruleForm.qlxx.bdcdyh"></el-input> | ||
| 54 | </el-form-item> | ||
| 55 | </el-col> | ||
| 56 | <el-col :span="8"> | ||
| 57 | <el-form-item :class="flag ? 'marginBot0' : ''" label="原不动产证号:"> | ||
| 58 | <el-input disabled v-model="ruleForm.slywxx.ybdcqzsh"></el-input> | ||
| 59 | </el-form-item> | ||
| 60 | </el-col> | ||
| 61 | <el-col :span="8"> | ||
| 62 | <el-form-item :class="flag ? 'marginBot0' : ''" label="竣工时间:"> | ||
| 63 | <el-input disabled v-model="ruleForm.fdcq2.jgsj"></el-input> | ||
| 64 | </el-form-item> | ||
| 65 | </el-col> | ||
| 66 | </el-row> | ||
| 67 | <el-row :gutter="10" v-if="ruleForm.fdcq2"> | ||
| 68 | <el-col :span="8"> | ||
| 69 | <el-form-item :class="flag ? 'marginBot0' : ''" label="土地用途:"> | ||
| 70 | <el-input disabled v-model="ruleForm.fdcq2.yt"></el-input> | ||
| 71 | </el-form-item> | ||
| 72 | </el-col> | ||
| 73 | <el-col :span="8"> | ||
| 74 | <el-form-item :class="flag ? 'marginBot0' : ''" label="土地使用起止时间:"> | ||
| 75 | <el-input disabled v-model="ruleForm.fdcq2.tdsyqzsj"></el-input> | ||
| 76 | </el-form-item> | ||
| 77 | </el-col> | ||
| 78 | <el-col :span="8"> | ||
| 79 | <el-form-item :class="flag ? 'marginBot0' : ''" label="土地使用期限:"> | ||
| 80 | <el-input disabled v-model="ruleForm.fdcq2.tdsyqx"></el-input> | ||
| 81 | </el-form-item> | ||
| 82 | </el-col> | ||
| 83 | </el-row> | ||
| 84 | <el-row :gutter="10" v-if="ruleForm.qlxx"> | ||
| 85 | <el-col :span="8"> | ||
| 86 | <el-form-item :class="flag ? 'marginBot0' : ''" label="房屋用途:"> | ||
| 87 | <el-input disabled v-model="ruleForm.qlxx.ytmc"></el-input> | ||
| 88 | </el-form-item> | ||
| 89 | </el-col> | ||
| 90 | <el-col :span="8"> | ||
| 91 | <el-form-item :class="flag ? 'marginBot0' : ''" label="房屋性质:"> | ||
| 92 | <el-input disabled v-model="ruleForm.fdcq2.fwxzmc"></el-input> | ||
| 93 | </el-form-item> | ||
| 94 | </el-col> | ||
| 95 | <el-col :span="8"> | ||
| 96 | <el-form-item :class="flag ? 'marginBot0' : ''" label="房屋结构:"> | ||
| 97 | <el-input disabled v-model="ruleForm.fdcq2.fwjgmc"></el-input> | ||
| 98 | </el-form-item> | ||
| 99 | </el-col> | ||
| 100 | </el-row> | ||
| 101 | <el-row :gutter="10" v-if="ruleForm.fdcq2"> | ||
| 102 | <el-col :span="8"> | ||
| 103 | <el-form-item :class="flag ? 'marginBot0' : ''" label="所在层:"> | ||
| 104 | <el-input disabled v-model="ruleForm.fdcq2.szc"></el-input> | ||
| 105 | </el-form-item> | ||
| 106 | </el-col> | ||
| 107 | <el-col :span="8"> | ||
| 108 | <el-form-item :class="flag ? 'marginBot0' : ''" label="总层数:"> | ||
| 109 | <el-input disabled v-model="ruleForm.fdcq2.zcs"></el-input> | ||
| 110 | </el-form-item> | ||
| 111 | </el-col> | ||
| 112 | <el-col :span="8"> | ||
| 113 | <el-form-item :class="flag ? 'marginBot0' : ''" label="建筑面积:"> | ||
| 114 | <el-input disabled v-model="ruleForm.qlxx.mj"></el-input> | ||
| 115 | </el-form-item> | ||
| 116 | </el-col> | ||
| 117 | </el-row> | ||
| 118 | <el-row :gutter="10" v-if="ruleForm.qlxx"> | ||
| 119 | |||
| 120 | <el-col :span="8"> | ||
| 121 | <el-form-item :class="flag ? 'marginBot0' : ''" label="专有建筑面积:"> | ||
| 122 | <el-input disabled v-model="ruleForm.fdcq2.zyjzmj"></el-input> | ||
| 123 | </el-form-item> | ||
| 124 | </el-col> | ||
| 125 | <el-col :span="8"> | ||
| 126 | <el-form-item :class="flag ? 'marginBot0' : ''" label="分摊建筑面积:"> | ||
| 127 | <el-input disabled v-model="ruleForm.fdcq2.ftjzmj"></el-input> | ||
| 128 | </el-form-item> | ||
| 129 | </el-col> | ||
| 130 | <el-col :span="16"> | ||
| 131 | <el-form-item :class="flag ? 'marginBot0' : ''" label="坐落:"> | ||
| 132 | <el-input disabled v-model="ruleForm.qlxx.zl"></el-input> | ||
| 133 | </el-form-item> | ||
| 134 | </el-col> | ||
| 135 | </el-row> | ||
| 136 | <div class="slxx_title title-block"> | ||
| 137 | 权利人信息 | ||
| 138 | <div class="triangle"></div> | ||
| 139 | </div> | ||
| 140 | <el-row :gutter="10"> | ||
| 141 | <el-col :span="14" v-if="ruleForm.qlxx"> | ||
| 142 | <el-form-item :class="flag ? 'marginBot0' : ''" label="共有方式:"> | ||
| 143 | <el-radio-group :disabled="$route.query.viewtype==1" v-model="ruleForm.slywxx.gyfs"> | ||
| 144 | <el-radio label="1">单独所有</el-radio> | ||
| 145 | <el-radio label="2">共同共有</el-radio> | ||
| 146 | <el-radio label="3">按份所有</el-radio> | ||
| 147 | </el-radio-group> | ||
| 148 | </el-form-item> | ||
| 149 | </el-col> | ||
| 150 | <el-col :span="5" v-show="ruleForm.qlxx&&ruleForm.qlxx.gyfs == '2'"> | ||
| 151 | <el-form-item :class="flag ? 'marginBot0' : ''" label="是否分别持证:"> | ||
| 152 | <el-radio-group v-model="ruleForm.sffbcz"> | ||
| 153 | <el-radio label="1">是</el-radio> | ||
| 154 | <el-radio label="0">否</el-radio> | ||
| 155 | </el-radio-group> | ||
| 156 | </el-form-item> | ||
| 157 | </el-col> | ||
| 158 | <el-col :span="5" v-show="ruleForm.qlxx&&ruleForm.qlxx.gyfs == '2'"> | ||
| 159 | <el-form-item :class="flag ? 'marginBot0' : ''" label="持证人:"> | ||
| 160 | <el-select v-model="ruleForm.czr" placeholder="持证人"> | ||
| 161 | <el-option v-for="item in czrOptions" :key="item.value" :label="item.label" :value="item.value"> | ||
| 162 | </el-option> | ||
| 163 | </el-select> | ||
| 164 | </el-form-item> | ||
| 165 | </el-col> | ||
| 166 | </el-row> | ||
| 167 | <InformationTable v-if="ruleForm.qlxx" @upDateQlrxxList="upDateQlrxxList" :tableData="ruleForm.qlrList" | ||
| 168 | :gyfs="ruleForm.qlxx.gyfs" /> | ||
| 169 | <div class="slxx_title title-block"> | ||
| 170 | 登记原因 | ||
| 171 | <div class="triangle"></div> | ||
| 172 | </div> | ||
| 173 | <el-row :gutter="10"> | ||
| 174 | <el-col> | ||
| 175 | <el-form-item v-if="ruleForm.fdcq2" :class="flag ? 'marginBot0' : ''" label="登记原因:" prop="djyy"> | ||
| 176 | <el-input class="textArea" type="textarea" :disabled="$route.query.viewtype==1" | ||
| 177 | v-model="ruleForm.fdcq2.djyy"> | ||
| 178 | </el-input> | ||
| 179 | </el-form-item> | ||
| 180 | </el-col> | ||
| 181 | </el-row> | ||
| 182 | </div> | ||
| 183 | <el-row class="btn" v-if="!$route.query.viewtype"> | ||
| 184 | <el-form-item :class="flag ? 'marginBot0' : ''"> | ||
| 185 | <el-button type="primary" @click="onSubmit">保存</el-button> | ||
| 186 | </el-form-item> | ||
| 187 | </el-row> | ||
| 188 | </el-form> | ||
| 189 | </div> | ||
| 190 | </template> | ||
| 191 | <script> | ||
| 192 | import InformationTable from "@/views/workflow/components/InformationTable"; | ||
| 193 | import {Init, saveData} from "@/api/fwsyqFlow.js"; | ||
| 194 | import { mapGetters } from "vuex"; | ||
| 195 | import {logoutReg} from "@/api/jsydsyqFlow"; | ||
| 196 | export default { | ||
| 197 | async created () { | ||
| 198 | this.propsParam = this.$attrs; | ||
| 199 | var formdata = new FormData(); | ||
| 200 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | ||
| 201 | formdata.append("djlx", this.propsParam.djlx); | ||
| 202 | Init(formdata).then((res) => { | ||
| 203 | if (res.code === 200 && res.result) { | ||
| 204 | this.ruleForm = { | ||
| 205 | ...res.result, | ||
| 206 | ...res.result.zdjbxxdatas, | ||
| 207 | ...res.result.qlxxdatas, | ||
| 208 | ...res.result.jsydsyqdatas, | ||
| 209 | }; | ||
| 210 | } | ||
| 211 | }); | ||
| 212 | }, | ||
| 213 | components: { InformationTable }, | ||
| 214 | computed: { | ||
| 215 | ...mapGetters(["dictData", "flag"]), | ||
| 216 | }, | ||
| 217 | data () { | ||
| 218 | return { | ||
| 219 | disabled: true, | ||
| 220 | tdytOption: [], | ||
| 221 | czrOptions: [], | ||
| 222 | ruleForm: { | ||
| 223 | ywh: "", | ||
| 224 | slry: "", | ||
| 225 | slsj: "", | ||
| 226 | qllx: "", | ||
| 227 | djlx: "", | ||
| 228 | djqx: "", | ||
| 229 | // 宗地代码 | ||
| 230 | zddm: "", | ||
| 231 | bdcdyh: "", | ||
| 232 | qlxzmc: "", | ||
| 233 | qlrxx: [], | ||
| 234 | // 自然幢号 | ||
| 235 | zrzh: "", | ||
| 236 | // 户不动产单元号 | ||
| 237 | hbdcdyh: '', | ||
| 238 | djzt: '', | ||
| 239 | // 图幅丘幢号 | ||
| 240 | tfqzh: '', | ||
| 241 | zl: '', | ||
| 242 | // 房屋用途 | ||
| 243 | fwyt: '', | ||
| 244 | fwxz: '', | ||
| 245 | fwjg: '', | ||
| 246 | // 权利人信息 | ||
| 247 | gyfs: "1", | ||
| 248 | // 是否分别持证 | ||
| 249 | sffbcz: "", | ||
| 250 | // 持证人 | ||
| 251 | czr: "", | ||
| 252 | djyy: '' | ||
| 253 | }, | ||
| 254 | //传递参数 | ||
| 255 | propsParam: {}, | ||
| 256 | rules: {}, | ||
| 257 | }; | ||
| 258 | }, | ||
| 259 | methods: { | ||
| 260 | onClick(){ | ||
| 261 | this.$popup({ | ||
| 262 | titleStyle: "left", | ||
| 263 | title: "登记簿详情", // 弹窗标题 | ||
| 264 | editItem: "ywbl/fdcq2/slxx900", // 弹窗内容 | ||
| 265 | formData: { | ||
| 266 | bsmSlsq: this.propsParam.bsmSldy, | ||
| 267 | qllx: this.propsParam.qllx | ||
| 268 | }, | ||
| 269 | width: "1220px", | ||
| 270 | height: "790px", | ||
| 271 | // cancelText: '取消摆烂', // 右边按钮文本 | ||
| 272 | // confirmText: '确定点击', //左边按钮文本 | ||
| 273 | cancel: () => { | ||
| 274 | console.log("取消回调"); | ||
| 275 | }, | ||
| 276 | confirm: () => { | ||
| 277 | console.log("确认回调"); | ||
| 278 | }, | ||
| 279 | }); | ||
| 280 | }, | ||
| 281 | // 更新权利人信息 | ||
| 282 | upDateQlrxxList (val) { | ||
| 283 | this.ruleForm.qlrList = _.cloneDeep(val); | ||
| 284 | }, | ||
| 285 | // 更新权利人信息 | ||
| 286 | upDateYwrxxList (val) { | ||
| 287 | this.ruleForm.ywrList = _.cloneDeep(val); | ||
| 288 | }, | ||
| 289 | list (bsmSldy) { | ||
| 290 | var formdata = new FormData(); | ||
| 291 | formdata.append("bsmSldy", bsmSldy); | ||
| 292 | Init(formdata).then((res) => { | ||
| 293 | if (res.code === 200 && res.result) { | ||
| 294 | this.ruleForm = { | ||
| 295 | ...res.result, | ||
| 296 | ...res.result.zdjbxxdatas, | ||
| 297 | ...res.result.qlxxdatas, | ||
| 298 | ...res.result.jsydsyqdatas, | ||
| 299 | }; | ||
| 300 | } | ||
| 301 | }); | ||
| 302 | }, | ||
| 303 | onSubmit () { | ||
| 304 | saveData(this.ruleForm).then((res) => { | ||
| 305 | if (res.code === 200 && res.result) { | ||
| 306 | console.log(res); | ||
| 307 | //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas } | ||
| 308 | } | ||
| 309 | }); | ||
| 310 | }, | ||
| 311 | }, | ||
| 312 | }; | ||
| 313 | </script> | ||
| 314 | <style scoped lang='scss'> | ||
| 315 | @import "~@/styles/public.scss"; | ||
| 316 | |||
| 317 | /deep/.el-form { | ||
| 318 | display: flex; | ||
| 319 | flex-direction: column; | ||
| 320 | height: calc(100vh - 130px); | ||
| 321 | background-color: aqua; | ||
| 322 | } | ||
| 323 | |||
| 324 | /deep/.el-form-item__label { | ||
| 325 | padding: 0; | ||
| 326 | } | ||
| 327 | |||
| 328 | /deep/.el-radio { | ||
| 329 | margin-right: 10px; | ||
| 330 | } | ||
| 331 | |||
| 332 | /deep/.el-select { | ||
| 333 | width: 100%; | ||
| 334 | } | ||
| 335 | |||
| 336 | /deep/.el-form-item { | ||
| 337 | margin-bottom: 8px; | ||
| 338 | } | ||
| 339 | |||
| 340 | .marginBot0 { | ||
| 341 | margin-bottom: 0 !important; | ||
| 342 | } | ||
| 343 | |||
| 344 | .slxx { | ||
| 345 | box-sizing: border-box; | ||
| 346 | } | ||
| 347 | |||
| 348 | .slxx_con { | ||
| 349 | flex: 1; | ||
| 350 | height: 100%; | ||
| 351 | background-color: #ffffff; | ||
| 352 | overflow-y: auto; | ||
| 353 | padding-right: 3px; | ||
| 354 | overflow-x: hidden; | ||
| 355 | } | ||
| 356 | |||
| 357 | .submit_btn { | ||
| 358 | height: 50px; | ||
| 359 | } | ||
| 360 | |||
| 361 | .slxx_title { | ||
| 362 | border-bottom: 1px solid $borderColor; | ||
| 363 | padding-left: 10px; | ||
| 364 | padding-bottom: 5px; | ||
| 365 | margin-bottom: 10px; | ||
| 366 | margin-top: 5px; | ||
| 367 | font-size: 16px; | ||
| 368 | font-weight: 500; | ||
| 369 | color: #4a4a4a; | ||
| 370 | } | ||
| 371 | |||
| 372 | .btn { | ||
| 373 | text-align: center; | ||
| 374 | padding-top: 10px; | ||
| 375 | height: 36px; | ||
| 376 | background-color: #ffffff; | ||
| 377 | padding: 5px 0; | ||
| 378 | } | ||
| 379 | |||
| 380 | .textArea { | ||
| 381 | /deep/.el-textarea__inner { | ||
| 382 | min-height: 90px !important; | ||
| 383 | } | ||
| 384 | } | ||
| 385 | |||
| 386 | /deep/.el-form-item__label { | ||
| 387 | padding-bottom: 0px; | ||
| 388 | } | ||
| 389 | </style> |
-
Please register or sign in to post a comment