Blame view

src/views/ywbl/slsqxx/fdcq2/slxx.vue 13.8 KB
1 2 3
<!--
 * @Description: 受理信息
 * @Autor: renchao
4
 * @LastEditTime: 2023-08-02 08:53:43
5
-->
6 7 8
<template>
  <div class="slxx">
    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" :label-position="flag ? 'top' : ''" :inline="flag"
9
      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
        <el-row :gutter="10" v-if="ruleForm.qlxx">
54
          <el-col :span="8">
55
            <el-form-item label="不动产单元号:">
56 57 58 59
              <el-input disabled v-model="ruleForm.qlxx.bdcdyh"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="16">
60
            <el-form-item label="坐落:">
61 62 63 64 65 66
              <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">
          <el-col :span="8">
67
            <el-form-item label="土地使用期限:">
68
              <el-input disabled v-model="ruleForm.fdcq2.tdsyqx"></el-input>
69 70
            </el-form-item>
          </el-col>
71 72 73 74
          <el-col :span="8">
            <el-form-item label="规划用途名称:">
              <el-input disabled v-model="ruleForm.zdjbxx.ghytmc"></el-input>
            </el-form-item>
75 76
          </el-col>
          <el-col :span="8">
77
            <el-form-item label="房屋性质:">
78
              <el-input disabled v-model="ruleForm.fdcq2.fwxzmc"></el-input>
79 80
            </el-form-item>
          </el-col>
81 82
        </el-row>
        <el-row :gutter="10" v-if="ruleForm.qlxx">
83
          <el-col :span="8">
84
            <el-form-item label="房屋结构:">
85
              <el-input disabled v-model="ruleForm.fdcq2.fwjgmc"></el-input>
86 87 88
            </el-form-item>
          </el-col>
          <el-col :span="8">
89
            <el-form-item label="所在层:">
90
              <el-input disabled v-model="ruleForm.fdcq2.szc"></el-input>
91 92
            </el-form-item>
          </el-col>
93
          <el-col :span="8">
94
            <el-form-item label="总层数:">
95 96 97
              <el-input disabled v-model="ruleForm.fdcq2.zcs"></el-input>
            </el-form-item>
          </el-col>
98 99
        </el-row>
        <el-row :gutter="10" v-if="ruleForm.fdcq2">
100
          <el-col :span="8">
101
            <el-form-item label="竣工时间:">
102
              <el-input disabled v-model="ruleForm.fdcq2.jgsj"></el-input>
103 104 105
            </el-form-item>
          </el-col>
          <el-col :span="8">
106
            <el-form-item label="建筑面积:">
107 108 109
              <div class="flex">
                <el-input disabled v-model="ruleForm.qlxx.mj"
                  oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"></el-input>
xiaomiao committed
110 111 112 113 114 115 116 117 118 119 120
                <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>
121
              </div>
122 123 124
            </el-form-item>
          </el-col>
          <el-col :span="8">
125
            <el-form-item label="专有建筑面积:">
126 127 128
              <div class="flex">
                <el-input disabled v-model="ruleForm.fdcq2.zyjzmj"
                  oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"></el-input>
xiaomiao committed
129 130 131 132 133 134 135 136 137 138 139
                <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>
140
              </div>
141 142
            </el-form-item>
          </el-col>
143 144 145
        </el-row>
        <el-row :gutter="10">

146
          <el-col :span="8">
147
            <el-form-item label="分摊建筑面积:">
148 149 150
              <div class="flex">
                <el-input disabled v-model="ruleForm.fdcq2.ftjzmj"
                  oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"></el-input>
xiaomiao committed
151 152 153 154 155 156 157 158 159 160 161
                <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>
162
              </div>
163 164 165
            </el-form-item>
          </el-col>
        </el-row>
166
        <div class="slxx_title title-block">
xiaomiao committed
167 168 169 170
          土地用途
          <div class="triangle"></div>
        </div>
        <tdytTable
xiaomiao committed
171
          :ableOperation="ableOperation"
xiaomiao committed
172
          :tableData="ruleForm.tdytqxList"
173
          @upDateTdytxxList="upDateTdytxxList" />
174 175 176 177 178
        <div class="slxx_title title-block">
          权利人信息
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
179
          <el-col :span="12" v-if="ruleForm.qlxx">
180
            <el-form-item label="共有方式:">
181
              <el-radio-group :disabled="!ableOperation"
tianhaohao@pashanhoo.com committed
182
                v-model="ruleForm.sldy.gyfs">
183 184 185 186 187 188 189
                <el-radio label="0">单独所有</el-radio>
                <el-radio label="1">共同共有</el-radio>
                <el-radio label="2">按份所有</el-radio>
                <el-radio label="3">其它共有</el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
190
          <!-- <el-col :span="5">
191
            <el-form-item label="发证方式:">
192
              <el-radio-group v-model="ruleForm.slsq.fzfs" :disabled="!ableOperation">
193 194 195 196
                <el-radio label="1">小证</el-radio>
                <el-radio label="2">大证</el-radio>
              </el-radio-group>
            </el-form-item>
197
          </el-col> -->
198

199
          <el-col :span="6" v-show="ruleForm.sldy.gyfs != '0'">
200
            <el-form-item label="是否分别持证:">
201 202 203 204 205
              <el-radio-group
                v-model="ruleForm.sldy.sqfbcz"
                :disabled="!ableOperation">
                <el-radio :label="1"></el-radio>
                <el-radio :label="0"></el-radio>
206 207 208
              </el-radio-group>
            </el-form-item>
          </el-col>
209
          <el-col
210
            :span="6"
211
            v-show="ruleForm.sldy.sqfbcz == '0' && ruleForm.sldy.gyfs != '0'">
212
            <el-form-item label="持证人:">
213 214 215 216 217 218 219 220 221
              <el-select
                v-model="ruleForm.czr"
                placeholder="持证人"
                :disabled="!ableOperation">
                <el-option
                  v-for="item in czrOptions"
                  :key="item.zjh"
                  :label="item.sqrmc"
                  :value="item.zjh">
222 223 224 225 226
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
227
        <qlrCommonTable @upDateQlrxxList="upDateQlrxxList" :tableData="ruleForm.qlrList" :disabled="!ableOperation"
228
          :gyfs="ruleForm.slsq.gyfs" />
229

单帅旗 committed
230
        <div v-if="ruleForm.ywrList && ruleForm.slsq.djlx == '200'">
231 232 233 234
          <div class="slxx_title title-block">
            义务人信息
            <div class="triangle"></div>
          </div>
235
          <qlrCommonTable v-if="ruleForm.qlxx" @upDateQlrxxList="upDateYwrxxList" :tableData="ruleForm.ywrList"
236
            :gyfs="ruleForm.qlxx.gyfs" />
237
        </div>
238 239 240 241 242 243
        <div class="slxx_title title-block">
          登记原因
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col>
单帅旗 committed
244
            <el-form-item v-if="ruleForm.sldy" label="登记原因:" prop="djyy">
xiaomiao committed
245
              <el-input class="textArea" type="textarea" :disabled="!ableOperation"
246
                v-model="ruleForm.fdcq2.djyy">
247 248 249 250 251
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </div>
252
      <el-row class="btn" v-if="ableOperation">
253
        <el-form-item>
254 255 256 257 258 259 260
          <el-button type="primary" @click="onSubmit">保存</el-button>
        </el-form-item>
      </el-row>
    </el-form>
  </div>
</template>
<script>
261
  import ywmix from "@/views/ywbl/mixin/index"
262
  import qlrCommonTable from "@/views/workflow/components/qlrCommonTable";
263
  import tdytTable from "@/views/workflow/components/tdytTable";
264
  import { Init, saveData } from "@/api/workflow/fwsyqFlow.js";
265 266
  import { mapGetters } from "vuex";
  export default {
267
    mixins: [ywmix],
268
    mounted () {
269
      this.ableOperation = this.$parent.currentSelectTab.ableOperation
270 271 272 273
      this.propsParam = this.$attrs;
      var formdata = new FormData();
      formdata.append("bsmSldy", this.propsParam.bsmSldy);
      formdata.append("djlx", this.propsParam.djlx);
274
      formdata.append("isEdit", this.ableOperation);
275 276 277 278 279 280
      Init(formdata).then((res) => {
        if (res.code === 200 && res.result) {
          this.ruleForm = {
            ...res.result,
            ...res.result.qlxxdatas,
          }
281
          //初始化发证方式,1:小证,2:大正
282
          this.ruleForm.slsq.fzfs == null ? this.ruleForm.slsq.fzfs = '1' : this.ruleForm.slsq.fzfs;
任超 committed
283
        }
284
      });
285
    },
286
    components: { qlrCommonTable, tdytTable },
287 288
    computed: {
      ...mapGetters(["dictData", "flag"]),
289
    },
290 291
    data () {
      return {
292
        mjdw: "1",
293 294 295
        disabled: true,
        tdytOption: [],
        czrOptions: [],
296
        ruleForm: {
297 298 299 300 301 302 303 304 305 306 307 308
          flow: {
            ywh: ''
          },
          qlxx: {
            mj: ''
          },
          sldy: {
            gyfs: ''
          },
          slsq: {

          },
309 310 311
          fdcq2: {
            zyjzmj: '',
            ftjzmj: ''
312 313 314
          },
          zdjbxx: {
            ghytmc: ''
315 316
          }
        },
317 318
        //传递参数
        propsParam: this.$attrs,
319 320 321 322
        //表单是否可操作
        ableOperation: true,
        rules: {}
      }
323
    },
324
    methods: {
yuanbo committed
325 326 327 328 329
      /**
       * @description: 更新土地用途信息
       * @param {*} val
       * @author: renchao
       */
330 331 332 333
      upDateTdytxxList (val) {
        this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val));
        this.key++;
      },
yuanbo committed
334 335 336 337 338
      /**
       * @description: 更新权利人信息
       * @param {*} val
       * @author: renchao
       */
339 340 341
      upDateQlrxxList (val) {
        this.ruleForm.qlrList = _.cloneDeep(val);
      },
yuanbo committed
342 343 344 345 346
      /**
       * @description: 更新权利人信息
       * @param {*} val
       * @author: renchao
       */
347 348 349
      upDateYwrxxList (val) {
        this.ruleForm.ywrList = _.cloneDeep(val);
      },
yuanbo committed
350 351 352 353
      /**
       * @description: onSubmit
       * @author: renchao
       */
354
      onSubmit () {
355
        saveData(this.ruleForm).then((res) => {
356 357 358 359 360 361
          if (res.code === 200) {
            this.$message({
              showClose: true,
              message: "保存成功!",
              type: "success",
            });
362
            this.$store.dispatch('user/refreshPage', true);
363 364 365 366
          } else {
            this.$message({
              showClose: true,
              message: res.message,
367 368
              type: "error"
            })
369
          }
370 371 372 373
        })
      }
    }
  }
374 375
</script>
<style scoped lang='scss'>
376
  @import "~@/styles/public.scss";
377

378 379 380 381 382
  /deep/.el-form {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 130px);
  }
383

384 385 386
  /deep/.el-form-item__label {
    padding: 0;
  }
387

388 389 390
  /deep/.el-radio {
    margin-right: 10px;
  }
391

392 393 394
  /deep/.el-select {
    width: 100%;
  }
395

396 397 398
  /deep/.el-form-item {
    margin-bottom: 8px;
  }
399

400 401 402
  .marginBot0 {
    margin-bottom: 0 !important;
  }
403

404 405 406
  .slxx {
    box-sizing: border-box;
  }
407

408 409 410 411 412 413 414 415
  .slxx_con {
    flex: 1;
    height: 100%;
    background-color: #ffffff;
    overflow-y: auto;
    padding-right: 3px;
    overflow-x: hidden;
  }
416

417 418 419
  .submit_btn {
    height: 50px;
  }
420

421 422 423 424 425 426 427 428 429 430
  .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;
  }
431

432 433 434 435 436 437 438
  .btn {
    text-align: center;
    padding-top: 10px;
    height: 36px;
    background-color: #ffffff;
    padding: 5px 0;
  }
439

440 441 442 443
  .textArea {
    /deep/.el-textarea__inner {
      min-height: 90px !important;
    }
444 445
  }

446 447 448
  /deep/.el-form-item__label {
    padding-bottom: 0px;
  }
449
</style>