kttFwH.vue 21.3 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562
<!--
 * @Description  :户信息
 * @Autor        : miaofang
 * @LastEditTime : 2023-05-17 13:44:30
-->
<template>
  <div class="households itemForm">
    <el-form :model="ruleForm" :rules="rules" ref="formList" label-width="115px" :key="key">

      <div v-for="(item, index) in ruleForm" :key="index" class="obligee-item">
        <p class="obligee-item-name">户信息{{ index + 1 }}</p>
        <div class="obligee-item-list">
          <el-row>
            <el-col :span="8">
              <el-form-item prop="YSDM">
                <span slot="label">
                  要素代码: <br />
                  <p class="label-detail">(YSDM)</p>
                </span>
                <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].ysdm"></el-input>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="BDCDYH">
                <span slot="label">
                  不动产单元号: <br />
                  <p class="label-detail">(BDCDYH)</p>
                </span>
                <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].bdcdyh"></el-input>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="LJZH">
                <span slot="label">
                  逻辑幢号: <br />
                  <p class="label-detail">(LJZH)</p>
                </span>
                <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].ljzh"></el-input>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row>
            <el-col :span="8">
              <el-form-item prop="ZRZH">
                <span slot="label">
                  自然幢号: <br />
                  <p class="label-detail">(ZRZH)</p>
                </span>
                <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].zrzh"></el-input>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="FWBM">
                <span slot="label">
                  房屋编码: <br />
                  <p class="label-detail">(FWBM)</p>
                </span>
                <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].fwbm"></el-input>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="CH">
                <span slot="label">
                  层号: <br />
                  <p class="label-detail">(CH)</p>
                </span>
                <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].ch"></el-input>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row>
            <el-col :span="8">
              <el-form-item prop="ZL">
                <span slot="label">
                  坐落: <br />
                  <p class="label-detail">(ZL)</p>
                </span>
                <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].zl"></el-input>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="MJDW">
                <span slot="label">
                  面积单位: <br />
                  <p class="label-detail">(MJDW)</p>
                </span>
                <el-select :disabled="$store.state.business.Edit" v-model="ruleForm[index].mjdw">
                  <el-option v-for="item in dicData['A7']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
                  </el-option>
                </el-select>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="SJCS">
                <span slot="label">
                  实际层数: <br />
                  <p class="label-detail">(SJCS)</p>
                </span>
                <el-input-number controls-position="right" :disabled="$store.state.business.Edit"
                  v-only-number="{ max: 99999, min: 1, precision: 0 }" v-model="ruleForm[index].sjcs"></el-input-number>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row>
            <el-col :span="8">
              <el-form-item prop="HH">
                <span slot="label">
                  户号: <br />
                  <p class="label-detail">(HH)</p>
                </span>
                <el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-model="ruleForm[index].hh"
                  v-only-number="{ max: 99999, min: 1, precision: 0 }"></el-input-number>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="SHBW">
                <span slot="label">
                  室号部位: <br />
                  <p class="label-detail">(SHBW)</p>
                </span>
                <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].shbw"></el-input>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="HX">
                <span slot="label">
                  户型: <br />
                  <p class="label-detail">(HX)</p>
                </span>
                <el-select :disabled="$store.state.business.Edit" v-model="ruleForm[index].hx">
                  <el-option v-for="item in dicData['A15']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
                  </el-option>
                </el-select>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row>
            <el-col :span="8">
              <el-form-item prop="HXJG">
                <span slot="label">
                  户型结构: <br />
                  <p class="label-detail">(HXJG)</p>
                </span>
                <el-select :disabled="$store.state.business.Edit" v-model="ruleForm[index].hxjg">
                  <el-option v-for="item in dicData['A16']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
                  </el-option>
                </el-select>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="FWYT1">
                <span slot="label">
                  房屋用途1: <br />
                  <p class="label-detail">(FWYT1)</p>
                </span>
                <el-select :disabled="$store.state.business.Edit" v-model="ruleForm[index].fwyt1">
                  <el-option v-for="item in dicData['A17']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
                  </el-option>
                </el-select>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="FWYT2">
                <span slot="label">
                  房屋用途2: <br />
                  <p class="label-detail">(FWYT2)</p>
                </span>
                <el-select :disabled="$store.state.business.Edit" v-model="ruleForm[index].fwyt2">
                  <el-option v-for="item in dicData['A17']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
                  </el-option>
                </el-select>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row>
            <el-col :span="8">
              <el-form-item prop="FWYT3">
                <span slot="label">
                  房屋用途3: <br />
                  <p class="label-detail">(FWYT3)</p>
                </span>
                <el-select :disabled="$store.state.business.Edit" v-model="ruleForm[index].fwyt3">
                  <el-option v-for="item in dicData['A17']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
                  </el-option>
                </el-select>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="YCJZMJ" :rules="{ type: 'number' }">
                <span slot="label">
                  预测建筑面积: <br />
                  <p class="label-detail">(YCJZMJ)</p>
                </span>
                <el-input-number controls-position="right" :disabled="$store.state.business.Edit"
                  v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" title="" type="number"
                  v-model.number="ruleForm[index].ycjzmj"></el-input-number>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="YCTNJZMJ" :rules="{ type: 'number' }">
                <span slot="label">
                  预测套内建筑面积: <br />
                  <p class="label-detail">(YCTNJZMJ)</p>
                </span>
                <el-input-number controls-position="right" :disabled="$store.state.business.Edit"
                  v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" title="" type="number"
                  v-model.number="ruleForm[index].yctnjzmj"></el-input-number>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row>
            <el-col :span="8">
              <el-form-item prop="YCFTJZMJ" :rules="{ type: 'number' }">
                <span slot="label">
                  预测分摊建筑面积: <br />
                  <p class="label-detail">(YCFTJZMJ)</p>
                </span>
                <el-input :disabled="$store.state.business.Edit"
                  v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" title="" type="number"
                  v-model.number="ruleForm[index].ycftjzmj"></el-input>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="YCDXBFJZMJ" :rules="{ type: 'number' }">
                <span slot="label">
                  预测地下部分建筑面积: <br />
                  <p class="label-detail">(YCDXBFJZMJ)</p>
                </span>
                <el-input controls-position="right" :disabled="$store.state.business.Edit"
                  v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" title="" type="number"
                  v-model.number="ruleForm[index].ycdxbfjzmj"></el-input>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="YCQTJZMJ" :rules="{ type: 'number' }">
                <span slot="label">
                  预测其它建筑面积: <br />
                  <p class="label-detail">(YCQTJZMJ)</p>
                </span>
                <el-input-number controls-position="right" :disabled="$store.state.business.Edit"
                  v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" title="" type="number"
                  v-model.number="ruleForm[index].ycqtjzmj"></el-input-number>
              </el-form-item>
            </el-col>
          </el-row>

          <!-- 预测分摊系数 -->
          <el-row>
            <el-col :span="8">
              <el-form-item prop="YCFTXS" :rules="{ type: 'number' }">
                <span slot="label">
                  预测分摊系数: <br />
                  <p class="label-detail">(YCFTXS)</p>
                </span>
                <el-input :disabled="$store.state.business.Edit" v-model.number="ruleForm[index].ycftxs" title="" type="number"
                  v-only-number="{ max: 999999999999999, min: 0, precision: 6 }"></el-input>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="SCJZMJ" :rules="{ type: 'number' }">
                <span slot="label">
                  实测建筑面积: <br />
                  <p class="label-detail">(SCJZMJ)</p>
                </span>
                <el-input :disabled="$store.state.business.Edit"
                  v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number"
                  v-model.number="ruleForm[index].scjzmj"></el-input>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="SCTNJZMJ" :rules="{ type: 'number' }">
                <span slot="label">
                  实测套内建筑面积: <br />
                  <p class="label-detail">(SCTNJZMJ)</p>
                </span>
                <el-input :disabled="$store.state.business.Edit"
                  v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number"
                  v-model.number="ruleForm[index].sctnjzmj"></el-input>
              </el-form-item>
            </el-col>
          </el-row>

          <!-- 实测分摊建筑面积 -->
          <el-row>
            <el-col :span="8">
              <el-form-item prop="SCFTJZMJ" :rules="{ type: 'number' }">
                <span slot="label">
                  实测分摊建筑面积: <br />
                  <p class="label-detail">(SCFTJZMJ)</p>
                </span>
                <el-input :disabled="$store.state.business.Edit"
                  v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number"
                  v-model.number="ruleForm[index].scftjzmj"></el-input>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="SCDXBFJZMJ" :rules="{ type: 'number' }">
                <span slot="label">
                  实测地下部分建筑面积: <br />
                  <p class="label-detail">(SCDXBFJZMJ)</p>
                </span>
                <el-input :disabled="$store.state.business.Edit"
                  v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number"
                  v-model.number="ruleForm[index].scdxbfjzmj"></el-input>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="SCQTJZMJ" :rules="{ type: 'number' }">
                <span slot="label">
                  实测其它建筑面积: <br />
                  <p class="label-detail">(SCQTJZMJ)</p>
                </span>
                <el-input :disabled="$store.state.business.Edit"
                  v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number"
                  v-model.number="ruleForm[index].scqtjzmj"></el-input>
              </el-form-item>
            </el-col>
          </el-row>

          <!-- 实测分摊系数 -->
          <el-row>
            <el-col :span="8">
              <el-form-item prop="SCFTXS" :rules="{ type: 'number' }">
                <span slot="label">
                  实测分摊系数: <br />
                  <p class="label-detail">(SCFTXS)</p>
                </span>
                <el-input :disabled="$store.state.business.Edit" v-model.number="ruleForm[index].scftxs" title="" type="number"
                  v-only-number="{ max: 999999999999999, min: 0, precision: 6 }"></el-input>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="GYTDMJ" :rules="{ type: 'number' }">
                <span slot="label">
                  共有土地面积: <br />
                  <p class="label-detail">(GYTDMJ)</p>
                </span>
                <el-input :disabled="$store.state.business.Edit"
                  v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number"
                  v-model.number="ruleForm[index].gytdmj"></el-input>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="FTTDMJ" :rules="{ type: 'number' }">
                <span slot="label">
                  分摊土地面积: <br />
                  <p class="label-detail">(FTTDMJ)</p>
                </span>
                <el-input :disabled="$store.state.business.Edit"
                  v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" title="" type="number"
                  v-model.number="ruleForm[index].fttdmj"></el-input>
              </el-form-item>
            </el-col>
          </el-row>

          <!-- 独用土地面积 -->
          <el-row>
            <el-col :span="8">
              <el-form-item prop="DYTDMJ" :rules="{ type: 'number' }">
                <span slot="label">
                  独用土地面积: <br />
                  <p class="label-detail">(DYTDMJ)</p>
                </span>
                <el-input :disabled="$store.state.business.Edit" v-model.number="ruleForm[index].dytdmj" title="" type="number"
                  v-only-number="{ max: 999999999999999, min: 0, precision: 3 }"></el-input>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="FWLX">
                <span slot="label">
                  房屋类型: <br />
                  <p class="label-detail">(FWLX)</p>
                </span>
                <el-select :disabled="$store.state.business.Edit" v-model="ruleForm[index].fwlx">
                  <el-option v-for="item in dicData['A18']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
                  </el-option>
                </el-select>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="FWXZ">
                <span slot="label">
                  房屋性质: <br />
                  <p class="label-detail">(FWXZ)</p>
                </span>
                <el-select :disabled="$store.state.business.Edit" v-model="ruleForm[index].fwxz">
                  <el-option v-for="item in dicData['A19']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
                  </el-option>
                </el-select>
              </el-form-item>
            </el-col>
          </el-row>

          <!-- 房产分户图 -->
          <el-row>
            <el-col :span="8">
              <el-form-item prop="FCFHT">
                <span slot="label">
                  房产分户图: <br />
                  <p class="label-detail">(FCFHT)</p>
                </span>
                <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].fcfht"></el-input>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="ZT">
                <span slot="label">
                  状态: <br />
                  <p class="label-detail">(ZT)</p>
                </span>
                <el-select :disabled="$store.state.business.Edit" v-model="ruleForm[index].zt">
                  <el-option v-for="item in dicData['A11']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
                  </el-option>
                </el-select>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item prop="QXDM">
                <span slot="label">
                  区县代码: <br />
                  <p class="label-detail">(QXDM)</p>
                </span>
                <el-input :disabled="$store.state.business.Edit" v-model="ruleForm[index].qxdm"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
        </div>
      </div>
    </el-form>
  </div>
</template>
<script>
  // 户信息
  import kttFwH from "@/api/kttFwH";
  import ruleMixin from "@/mixins/ruleMixin.js";
  export default {
    mixins: [ruleMixin],
    props: {
      bsmSjsb: {
        type: String,
        default: ""
      },
      bsmYwsjb: {
        type: String,
        default: ""
      },
    },
    data () {
      return {
        ruleForm: [{
          YSDM: "",
          BDCDYH: "",
          LJZH: "",
          ZRZH: "",
          FWBM: "",
          CH: "",
          ZL: "",
          MJDW: "",
          SJCS: "",
          HH: "",
          SHBW: "",
          HX: "",
          HXJG: "",
          FWYT1: "",
          FWYT2: "",
          FWYT3: "",
          YCJZMJ: "",
          YCTNJZMJ: "",
          YCFTJZMJ: "",
          YCDXBFJZMJ: "",
          YCQTJZMJ: "",
          YCFTXS: "",
          SCJZMJ: "",
          SCTNJZMJ: "",
          SCFTJZMJ: "",
          SCDXBFJZMJ: "",
          SCQTJZMJ: "",
          SCFTXS: "",
          GYTDMJ: "",
          FTTDMJ: "",
          DYTDMJ: "",
          FWLX: "",
          FWXZ: "",
          FCFHT: "",
          ZT: "",
          QXDM: ""
        }]
      }
    },
    methods: {
      /**
       * @description: featchData
       * @author: renchao
       */
      async featchData () {
        try {
          let { result: res } = await kttFwH.getKttFwHById(this.bsmSjsb);
          this.ruleForm = res;
          //this.featchRule()
        } catch (error) {
          this.$refs.msg.messageShow();
        }
      },
      /**
       * @description: handleUpdateForm
       * @author: renchao
       */
      handleUpdateForm () {
        return new Promise(async (resolve, reject) => {
          try {
            let res = await kttFwH.updateKttFwH(this.ruleForm);
            // this.$refs['formList'].resetFields();
            resolve(res.code);
          } catch (error) {
            this.$refs.msg.messageShow();
          }
        });
      },
    },
  };
</script>
<style scoped lang="scss">
  @import "./css/itemForm.scss";

  .households {
    .item-label {
      flex: 0 0 120px;
    }
  }
</style>