Blame view

src/views/ywbl/slsqxx/fdcq2/slxx300.vue 13.1 KB
1 2 3
<!--
 * @Description: 受理信息
 * @Autor: renchao
4
 * @LastEditTime: 2023-07-21 14:27:15
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 49 50 51 52
            </el-form-item>
          </el-col>
        </el-row>
        <div class="slxx_title title-block">
          不动产单元情况
          <div class="triangle"></div>
        </div>
53

54
        <el-button type="primary" style="float: right;margin-right: 20px; " @click="dataSelectClick">数据查看</el-button>
55 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="建筑面积:">
127
              <el-input disabled v-model="ruleForm.qlxx.mj"></el-input>
128 129 130
            </el-form-item>
          </el-col>
          <el-col :span="8">
131
            <el-form-item label="专有建筑面积:">
132
              <el-input disabled v-model="ruleForm.fdcq2.zyjzmj"></el-input>
133 134 135
            </el-form-item>
          </el-col>
          <el-col :span="8">
136
            <el-form-item label="分摊建筑面积:">
137
              <el-input disabled v-model="ruleForm.fdcq2.ftjzmj"></el-input>
138 139 140
            </el-form-item>
          </el-col>
        </el-row>
141
        <div class="slxx_title title-block">
xiaomiao committed
142 143 144 145
          土地用途
          <div class="triangle"></div>
        </div>
        <tdytTable
xiaomiao committed
146
          :ableOperation="ableOperation"
xiaomiao committed
147
          :tableData="ruleForm.tdytqxList"
148
          @upDateTdytxxList="upDateTdytxxList" />
149 150 151 152 153
        <div class="slxx_title title-block">
          权利人信息
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
tianhaohao@pashanhoo.com committed
154
          <el-col :span="14">
155
            <el-form-item label="共有方式:">
xiaomiao committed
156
              <el-radio-group :disabled="!ableOperation" v-model="ruleForm.sldy.gyfs">
157 158 159 160
                <el-radio label="0">单独所有</el-radio>
                <el-radio label="1">共同共有</el-radio>
                <el-radio label="2">按份所有</el-radio>
                <el-radio label="3">其它共有</el-radio>
161 162 163
              </el-radio-group>
            </el-form-item>
          </el-col>
164
          <el-col :span="5" v-if="ruleForm.sldy.gyfs && ruleForm.sldy.gyfs == '2'">
165
            <el-form-item label="是否分别持证:">
166
              <el-radio-group v-model="ruleForm.sffbcz" :disabled="!ableOperation">
167 168 169 170 171
                <el-radio label="1"></el-radio>
                <el-radio label="0"></el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
172
          <el-col :span="5" v-if="ruleForm.sldy.gyfs && ruleForm.sldy.gyfs == '2'">
173
            <el-form-item label="持证人:">
174
              <el-select v-model="ruleForm.czr" placeholder="持证人" :disabled="!ableOperation">
175 176 177 178 179 180
                <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>
181
        <qlrCommonTable @upDateQlrxxList="upDateQlrxxList" :disabled="!ableOperation" :tableData="ruleForm.qlrList"
182
          :gyfs="ruleForm.slsq.gyfs" />
183 184 185 186 187 188
        <div class="slxx_title title-block">
          登记原因
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col>
189
            <el-form-item v-if="ruleForm.fdcq2" label="登记原因:" prop="djyy">
xiaomiao committed
190
              <el-input class="textArea" type="textarea" :disabled="!ableOperation"
191
                v-model="ruleForm.fdcq2.djyy">
192 193 194 195 196
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </div>
197
      <el-row class="btn" v-if="ableOperation">
198
        <el-form-item>
199 200 201 202 203 204 205
          <el-button type="primary" @click="onSubmit">保存</el-button>
        </el-form-item>
      </el-row>
    </el-form>
  </div>
</template>
<script>
206
  import qlrCommonTable from "@/views/workflow/components/qlrCommonTable";
xiaomiao committed
207
  import tdytTable from "@/views/workflow/components/tdytTable";
208
  import { Init, saveData } from "@/api/workflow/fwsyqFlow.js";
209 210
  import { mapGetters } from "vuex";
  export default {
211
    mounted () {
212
      this.ableOperation = this.$parent.currentSelectTab.ableOperation
213 214 215 216
      this.propsParam = this.$attrs;
      var formdata = new FormData();
      formdata.append("bsmSldy", this.propsParam.bsmSldy);
      formdata.append("djlx", this.propsParam.djlx);
217
      formdata.append("isEdit", this.ableOperation);
218 219 220 221 222 223 224 225
      Init(formdata).then((res) => {
        if (res.code === 200 && res.result) {
          this.ruleForm = {
            ...res.result,
            ...res.result.zdjbxxdatas,
            ...res.result.qlxxdatas,
            ...res.result.jsydsyqdatas,
          };
226
          //初始化发证方式,1:小证,2:大正
227
          this.ruleForm.slsq.fzfs == null ? this.ruleForm.slsq.fzfs = '1' : this.ruleForm.slsq.fzfs;
228 229
        }
      });
230
    },
231
    components: { qlrCommonTable, tdytTable },
232 233
    computed: {
      ...mapGetters(["dictData", "flag"]),
234
    },
235 236
    data () {
      return {
237 238
        //表单是否可操作
        ableOperation: true,
239 240 241 242
        disabled: true,
        tdytOption: [],
        czrOptions: [],
        ruleForm: {
243 244 245
          flow: {
            ywh: ''
          },
246 247 248 249 250
          slry: "",
          slsj: "",
          qllx: "",
          djlx: "",
          djqx: "",
251 252 253
          sldy: {
            gyfs: ''
          },
254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275
          // 宗地代码
          zddm: "",
          bdcdyh: "",
          qlxzmc: "",
          qlrxx: [],
          // 自然幢号
          zrzh: "",
          // 户不动产单元号
          hbdcdyh: '',
          djzt: '',
          // 图幅丘幢号
          tfqzh: '',
          zl: '',
          // 房屋用途
          fwyt: '',
          fwxz: '',
          fwjg: '',
          // 权利人信息
          // 是否分别持证
          sffbcz: "",
          // 持证人
          czr: "",
276 277 278 279 280 281 282
          djyy: '',
          // 规划用途名称
          zdjbxx: {
            ghytmc: ''
          },
          fdcq2: {
            fwxzmc: ''
283 284 285
          },
          slsq: {
            gyfs: ''
286
          }
287 288 289 290 291
        },
        //传递参数
        propsParam: {},
        rules: {},
      };
292
    },
293
    methods: {
yuanbo committed
294 295 296 297
      /**
       * @description: dataSelectClick
       * @author: renchao
       */
298 299 300 301 302 303 304
      dataSelectClick () {
        this.$popup("房屋信息比对", this.BASE_API.SERVERAPI + "/rest/ywbl/fdcq2/slxxCompareDetai",
          {
            formData: {
              bsmSldy: this.propsParam.bsmSldy,
              qllx: this.propsParam.qllx
            }
305
          });
306
      },
307
      // 更新土地用途信息
yuanbo committed
308 309 310 311 312
      /**
       * @description: 更新土地用途信息
       * @param {*} val
       * @author: renchao
       */
313 314 315 316
      upDateTdytxxList (val) {
        this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val));
        this.key++;
      },
317
      // 更新权利人信息
yuanbo committed
318 319 320 321 322
      /**
       * @description: 更新权利人信息
       * @param {*} val
       * @author: renchao
       */
323 324 325 326
      upDateQlrxxList (val) {
        this.ruleForm.qlrList = _.cloneDeep(val);
      },
      // 更新权利人信息
yuanbo committed
327 328 329 330 331
      /**
       * @description: 更新权利人信息
       * @param {*} val
       * @author: renchao
       */
332 333 334 335
      upDateYwrxxList (val) {
        this.ruleForm.ywrList = _.cloneDeep(val);
      },

yuanbo committed
336 337 338 339
      /**
       * @description: onSubmit
       * @author: renchao
       */
340
      onSubmit () {
341
        saveData(this.ruleForm).then((res) => {
342 343 344 345 346 347
          if (res.code === 200) {
            this.$message({
              showClose: true,
              message: "保存成功!",
              type: "success",
            });
348
            this.$store.dispatch('user/refreshPage', true);
349 350 351 352 353 354 355 356 357
          } else {
            this.$message({
              showClose: true,
              message: res.message,
              type: "error",
            });
          }
        });
      },
358
    },
359
  };
360 361
</script>
<style scoped lang='scss'>
362
  @import "~@/styles/public.scss";
363

364 365 366 367 368
  /deep/.el-form {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 130px);
  }
369

370 371 372
  /deep/.el-form-item__label {
    padding: 0;
  }
373

374 375 376
  /deep/.el-radio {
    margin-right: 10px;
  }
377

378 379 380
  /deep/.el-select {
    width: 100%;
  }
381

382 383 384
  /deep/.el-form-item {
    margin-bottom: 8px;
  }
385

386 387 388
  .marginBot0 {
    margin-bottom: 0 !important;
  }
389

390 391 392
  .slxx {
    box-sizing: border-box;
  }
393

394 395 396 397 398 399 400 401
  .slxx_con {
    flex: 1;
    height: 100%;
    background-color: #ffffff;
    overflow-y: auto;
    padding-right: 3px;
    overflow-x: hidden;
  }
402

403 404 405
  .submit_btn {
    height: 50px;
  }
406

407 408 409 410 411 412 413 414 415 416
  .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;
  }
417

418 419 420 421 422 423 424
  .btn {
    text-align: center;
    padding-top: 10px;
    height: 36px;
    background-color: #ffffff;
    padding: 5px 0;
  }
425

426 427 428 429
  .textArea {
    /deep/.el-textarea__inner {
      min-height: 90px !important;
    }
430 431
  }

432 433 434
  /deep/.el-form-item__label {
    padding-bottom: 0px;
  }
435
</style>