Blame view

src/views/ywbl/slsqxx/fdcq2/slxx300.vue 15 KB
1 2 3
<!--
 * @Description: 受理信息
 * @Autor: renchao
4
 * @LastEditTime: 2023-07-25 09:22:40
5
-->
6 7 8 9
<template>
  <div class="slxx">
    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" :label-position="flag ? 'top' : ''" :inline="flag"
      label-width="120px">
10
      <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''">
11 12 13 14
        <div class="slxx_title title-block">
          受理信息
          <div class="triangle"></div>
        </div>
15
        <el-row :gutter="10" v-if="ruleForm.slsq">
16
          <el-col :span="8">
17
            <el-form-item label="业务号:">
tianhaohao@pashanhoo.com committed
18
              <el-input disabled v-model="ruleForm.flow.ywh"></el-input>
19 20 21
            </el-form-item>
          </el-col>
          <el-col :span="8">
22
            <el-form-item label="受理人员:">
23
              <el-input disabled v-model="ruleForm.slsq.slry"></el-input>
24 25 26
            </el-form-item>
          </el-col>
          <el-col :span="8">
27
            <el-form-item label="受理时间:">
28
              <el-input disabled v-model="ruleForm.slsq.slsj"></el-input>
29 30 31
            </el-form-item>
          </el-col>
        </el-row>
32
        <el-row :gutter="10" v-if="ruleForm.slsq">
33
          <el-col :span="8">
34
            <el-form-item label="权利类型:">
tianhaohao@pashanhoo.com committed
35
              <el-input disabled v-model="ruleForm.sldy.qllxmc"></el-input>
36 37 38
            </el-form-item>
          </el-col>
          <el-col :span="8">
39
            <el-form-item label="登记类型:">
tianhaohao@pashanhoo.com committed
40
              <el-input disabled v-model="ruleForm.sldy.djlxmc"></el-input>
41 42 43
            </el-form-item>
          </el-col>
          <el-col :span="8">
44
            <el-form-item label="登记情形:">
45
              <el-input disabled v-model="ruleForm.slsq.djqxmc"></el-input>
46 47 48
            </el-form-item>
          </el-col>
        </el-row>
xiaomiao committed
49 50 51 52
       <div
          class="slxx_title title-block flex"
          style="justify-content: space-between"
        >
53
          不动产单元情况
xiaomiao committed
54
          <el-button @click="compare">变化情况对比+</el-button>
55
        </div>
56
        <el-row :gutter="10" v-if="ruleForm.qlxx">
57
          <el-col :span="8">
58
            <el-form-item label="不动产单元号:">
59
              <el-input disabled v-model="ruleForm.qlxx.bdcdyh"></el-input>
60 61
            </el-form-item>
          </el-col>
62
          <el-col :span="16">
63
            <el-form-item label="坐落:">
64 65 66 67 68
              <el-input disabled v-model="ruleForm.qlxx.zl"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10" v-if="ruleForm.fdcq2">
69
          <el-col :span="8">
70
            <el-form-item label="土地用途:">
71
              <el-input disabled v-model="ruleForm.fdcq2.yt"></el-input>
72 73 74
            </el-form-item>
          </el-col>
          <el-col :span="8">
75
            <el-form-item label="土地使用起止时间:">
76 77 78 79
              <el-input disabled v-model="ruleForm.fdcq2.tdsyqzsj"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
80
            <el-form-item label="土地使用期限:">
81
              <el-input disabled v-model="ruleForm.fdcq2.tdsyqx"></el-input>
82 83 84
            </el-form-item>
          </el-col>
        </el-row>
85
        <el-row :gutter="10" v-if="ruleForm.qlxx">
86
          <!-- <el-col :span="8">
87
            <el-form-item label="房屋用途:">
88
              <el-input disabled v-model="ruleForm.qlxx.ytmc"></el-input>
89
            </el-form-item>
90 91 92 93 94
          </el-col> -->
          <el-col :span="8">
            <el-form-item label="规划用途名称:">
              <el-input disabled v-model="ruleForm.zdjbxx.ghytmc"></el-input>
            </el-form-item>
95 96
          </el-col>
          <el-col :span="8">
97
            <el-form-item label="房屋性质:">
98
              <el-input disabled v-model="ruleForm.fdcq2.fwxzmc"></el-input>
99 100 101
            </el-form-item>
          </el-col>
          <el-col :span="8">
102
            <el-form-item label="房屋结构:">
103
              <el-input disabled v-model="ruleForm.fdcq2.fwjgmc"></el-input>
104 105 106
            </el-form-item>
          </el-col>
        </el-row>
107
        <el-row :gutter="10" v-if="ruleForm.fdcq2">
108
          <el-col :span="8">
109
            <el-form-item label="所在层:">
110
              <el-input disabled v-model="ruleForm.fdcq2.szc"></el-input>
111 112
            </el-form-item>
          </el-col>
113
          <el-col :span="8">
114
            <el-form-item label="总层数:">
115 116 117 118
              <el-input disabled v-model="ruleForm.fdcq2.zcs"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
119
            <el-form-item label="竣工时间:">
120
              <el-input disabled v-model="ruleForm.fdcq2.jgsj"></el-input>
121 122 123
            </el-form-item>
          </el-col>
        </el-row>
124
        <el-row :gutter="10" v-if="ruleForm.qlxx">
125
          <el-col :span="8">
126
            <el-form-item label="建筑面积:">
xiaomiao committed
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
              <div class="flex">
              <el-input disabled v-model="ruleForm.qlxx.mj"
              oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"></el-input>
                <el-select
                  disabled
                  v-model="mjdw"
                  style="width: 20%">
                  <el-option
                    v-for="item in dictData['A7']"
                    :key="item.dcode"
                    :label="item.dname"
                    :value="item.dcode">
                  </el-option>
                </el-select>
                 </div>
142 143 144
            </el-form-item>
          </el-col>
          <el-col :span="8">
145
            <el-form-item label="专有建筑面积:">
xiaomiao committed
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
              <div class="flex">
              <el-input disabled v-model="ruleForm.fdcq2.zyjzmj"
              oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"></el-input>
                <el-select
                  disabled
                  v-model="mjdw"
                  style="width: 20%">
                  <el-option
                    v-for="item in dictData['A7']"
                    :key="item.dcode"
                    :label="item.dname"
                    :value="item.dcode">
                  </el-option>
                </el-select>
                 </div>
161 162 163
            </el-form-item>
          </el-col>
          <el-col :span="8">
164
            <el-form-item label="分摊建筑面积:">
xiaomiao committed
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
              <div class="flex">
              <el-input disabled v-model="ruleForm.fdcq2.ftjzmj"
              oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"></el-input>
                <el-select
                  disabled
                  v-model="mjdw"
                  style="width: 20%">
                  <el-option
                    v-for="item in dictData['A7']"
                    :key="item.dcode"
                    :label="item.dname"
                    :value="item.dcode">
                  </el-option>
                </el-select>
                 </div>
180 181 182
            </el-form-item>
          </el-col>
        </el-row>
183
        <div class="slxx_title title-block">
xiaomiao committed
184 185 186 187
          土地用途
          <div class="triangle"></div>
        </div>
        <tdytTable
xiaomiao committed
188
          :ableOperation="ableOperation"
xiaomiao committed
189
          :tableData="ruleForm.tdytqxList"
190
          @upDateTdytxxList="upDateTdytxxList" />
191 192 193 194 195
        <div class="slxx_title title-block">
          权利人信息
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
tianhaohao@pashanhoo.com committed
196
          <el-col :span="14">
197
            <el-form-item label="共有方式:">
xiaomiao committed
198
              <el-radio-group :disabled="!ableOperation" v-model="ruleForm.sldy.gyfs">
199 200 201 202
                <el-radio label="0">单独所有</el-radio>
                <el-radio label="1">共同共有</el-radio>
                <el-radio label="2">按份所有</el-radio>
                <el-radio label="3">其它共有</el-radio>
203 204 205
              </el-radio-group>
            </el-form-item>
          </el-col>
206
          <el-col :span="5" v-if="ruleForm.sldy.gyfs && ruleForm.sldy.gyfs == '2'">
207
            <el-form-item label="是否分别持证:">
208
              <el-radio-group v-model="ruleForm.sffbcz" :disabled="!ableOperation">
209 210 211 212 213
                <el-radio label="1"></el-radio>
                <el-radio label="0"></el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
214
          <el-col :span="5" v-if="ruleForm.sldy.gyfs && ruleForm.sldy.gyfs == '2'">
215
            <el-form-item label="持证人:">
216
              <el-select v-model="ruleForm.czr" placeholder="持证人" :disabled="!ableOperation">
217 218 219 220 221 222
                <el-option v-for="item in czrOptions" :key="item.value" :label="item.label" :value="item.value">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
223
        <qlrCommonTable @upDateQlrxxList="upDateQlrxxList" :disabled="!ableOperation" :tableData="ruleForm.qlrList"
224
          :gyfs="ruleForm.slsq.gyfs" />
225 226 227 228 229 230
        <div class="slxx_title title-block">
          登记原因
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col>
231
            <el-form-item v-if="ruleForm.fdcq2" label="登记原因:" prop="djyy">
xiaomiao committed
232
              <el-input class="textArea" type="textarea" :disabled="!ableOperation"
233
                v-model="ruleForm.fdcq2.djyy">
234 235 236 237 238
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </div>
239
      <el-row class="btn" v-if="ableOperation">
240
        <el-form-item>
241 242 243 244 245 246 247
          <el-button type="primary" @click="onSubmit">保存</el-button>
        </el-form-item>
      </el-row>
    </el-form>
  </div>
</template>
<script>
248
  import qlrCommonTable from "@/views/workflow/components/qlrCommonTable";
xiaomiao committed
249
  import tdytTable from "@/views/workflow/components/tdytTable";
250
  import { Init, saveData } from "@/api/workflow/fwsyqFlow.js";
251 252
  import { mapGetters } from "vuex";
  export default {
253
    mounted () {
254
      this.ableOperation = this.$parent.currentSelectTab.ableOperation
255 256 257 258
      this.propsParam = this.$attrs;
      var formdata = new FormData();
      formdata.append("bsmSldy", this.propsParam.bsmSldy);
      formdata.append("djlx", this.propsParam.djlx);
259
      formdata.append("isEdit", this.ableOperation);
260 261 262 263 264 265 266 267
      Init(formdata).then((res) => {
        if (res.code === 200 && res.result) {
          this.ruleForm = {
            ...res.result,
            ...res.result.zdjbxxdatas,
            ...res.result.qlxxdatas,
            ...res.result.jsydsyqdatas,
          };
268
          //初始化发证方式,1:小证,2:大正
269
          this.ruleForm.slsq.fzfs == null ? this.ruleForm.slsq.fzfs = '1' : this.ruleForm.slsq.fzfs;
270 271
        }
      });
272
    },
273
    components: { qlrCommonTable, tdytTable },
274 275
    computed: {
      ...mapGetters(["dictData", "flag"]),
276
    },
277 278
    data () {
      return {
xiaomiao committed
279
        mjdw:"1",
280 281
        //表单是否可操作
        ableOperation: true,
282 283 284 285
        disabled: true,
        tdytOption: [],
        czrOptions: [],
        ruleForm: {
286 287 288
          flow: {
            ywh: ''
          },
289 290 291 292 293
          slry: "",
          slsj: "",
          qllx: "",
          djlx: "",
          djqx: "",
294 295 296
          sldy: {
            gyfs: ''
          },
297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318
          // 宗地代码
          zddm: "",
          bdcdyh: "",
          qlxzmc: "",
          qlrxx: [],
          // 自然幢号
          zrzh: "",
          // 户不动产单元号
          hbdcdyh: '',
          djzt: '',
          // 图幅丘幢号
          tfqzh: '',
          zl: '',
          // 房屋用途
          fwyt: '',
          fwxz: '',
          fwjg: '',
          // 权利人信息
          // 是否分别持证
          sffbcz: "",
          // 持证人
          czr: "",
319 320 321 322 323 324 325
          djyy: '',
          // 规划用途名称
          zdjbxx: {
            ghytmc: ''
          },
          fdcq2: {
            fwxzmc: ''
326 327 328
          },
          slsq: {
            gyfs: ''
329
          }
330 331 332 333 334
        },
        //传递参数
        propsParam: {},
        rules: {},
      };
335
    },
336
    methods: {
yuanbo committed
337 338 339 340
      /**
       * @description: dataSelectClick
       * @author: renchao
       */
341
      dataSelectClick () {
342
        this.$popup("房屋所有权", this.BASE_API.SERVERAPI + "/rest/ywbl/fdcq2/slxxCompareDetai",
343 344 345 346 347
          {
            formData: {
              bsmSldy: this.propsParam.bsmSldy,
              qllx: this.propsParam.qllx
            }
348
          });
349
      },
350
      // 更新土地用途信息
yuanbo committed
351 352 353 354 355
      /**
       * @description: 更新土地用途信息
       * @param {*} val
       * @author: renchao
       */
356 357 358 359
      upDateTdytxxList (val) {
        this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val));
        this.key++;
      },
360
      // 更新权利人信息
yuanbo committed
361 362 363 364 365
      /**
       * @description: 更新权利人信息
       * @param {*} val
       * @author: renchao
       */
366 367 368 369
      upDateQlrxxList (val) {
        this.ruleForm.qlrList = _.cloneDeep(val);
      },
      // 更新权利人信息
yuanbo committed
370 371 372 373 374
      /**
       * @description: 更新权利人信息
       * @param {*} val
       * @author: renchao
       */
375 376 377
      upDateYwrxxList (val) {
        this.ruleForm.ywrList = _.cloneDeep(val);
      },
yuanbo committed
378 379 380 381
      /**
       * @description: onSubmit
       * @author: renchao
       */
382
      onSubmit () {
383
        saveData(this.ruleForm).then((res) => {
384 385 386 387 388 389
          if (res.code === 200) {
            this.$message({
              showClose: true,
              message: "保存成功!",
              type: "success",
            });
390
            this.$store.dispatch('user/refreshPage', true);
391 392 393 394 395 396 397 398 399
          } else {
            this.$message({
              showClose: true,
              message: res.message,
              type: "error",
            });
          }
        });
      },
xiaomiao committed
400 401 402 403 404 405
         /**
     * @description: compare
     * @author: renchao
     */
    compare() {
      this.$popupDialog(
406
          this.ruleForm.qlxx.qllxmc,
xiaomiao committed
407 408 409 410 411 412 413 414
        "registerBook/comparison",
        { bsmQlxx: this.ruleForm.qlxx.bsmQlxx,
         dqqllx: 'FDCQ2',
        },
        "80%",
        true
      );
    },
415
    },
416
  };
417 418
</script>
<style scoped lang='scss'>
419
  @import "~@/styles/public.scss";
xiaomiao committed
420
@import "~@/styles/slxx/slxx.scss";
421 422 423 424 425
  /deep/.el-form {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 130px);
  }
426

427 428 429
  /deep/.el-form-item__label {
    padding: 0;
  }
430

431 432 433
  /deep/.el-radio {
    margin-right: 10px;
  }
434

435 436 437
  /deep/.el-select {
    width: 100%;
  }
438

439 440 441
  /deep/.el-form-item {
    margin-bottom: 8px;
  }
442

443 444 445
  .marginBot0 {
    margin-bottom: 0 !important;
  }
446

447 448 449
  .slxx {
    box-sizing: border-box;
  }
450

451 452 453 454 455 456 457 458
  .slxx_con {
    flex: 1;
    height: 100%;
    background-color: #ffffff;
    overflow-y: auto;
    padding-right: 3px;
    overflow-x: hidden;
  }
459

460 461 462
  .submit_btn {
    height: 50px;
  }
463

464 465 466 467 468 469 470 471 472 473
  .slxx_title {
    border-bottom: 1px solid $borderColor;
    padding-left: 10px;
    padding-bottom: 5px;
    margin-bottom: 10px;
    margin-top: 5px;
    font-size: 16px;
    font-weight: 500;
    color: #4a4a4a;
  }
474

475 476 477 478 479 480 481
  .btn {
    text-align: center;
    padding-top: 10px;
    height: 36px;
    background-color: #ffffff;
    padding: 5px 0;
  }
482

483 484 485 486
  .textArea {
    /deep/.el-textarea__inner {
      min-height: 90px !important;
    }
487 488
  }

489 490 491
  /deep/.el-form-item__label {
    padding-bottom: 0px;
  }
492
</style>