Blame view

src/views/ywbl/slsqxx/diyaq/slxx.vue 15.9 KB
1
<!--
xiaomiao committed
2
 * @Description:
3
 * @Autor: renchao
renchao@pashanhoo.com committed
4
 * @LastEditTime: 2023-08-22 16:25:12
5
-->
6 7 8
<template>
  <!-- 受理信息 -->
  <div class="slxx">
xiaomiao committed
9 10 11 12 13 14 15 16 17
    <el-form
      :model="ruleForm"
      :rules="rules"
      class="loadingtext"
      ref="ruleForm"
      :label-position="flag ? 'top' : ''"
      :inline="flag"
      label-width="180px"
    >
18
      <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''">
jiaozeping@pashanhoo.com committed
19 20 21 22
        <div class="slxx_title title-block">
          受理信息
          <div class="triangle"></div>
        </div>
23 24
        <el-row :gutter="10">
          <el-col :span="8">
25
            <el-form-item label="业务号:">
tianhaohao@pashanhoo.com committed
26
              <el-input disabled v-model="ruleForm.flow.ywh"></el-input>
27 28 29
            </el-form-item>
          </el-col>
          <el-col :span="8">
30
            <el-form-item label="受理人员:">
31
              <el-input disabled v-model="ruleForm.slsq.slry"></el-input>
32 33 34
            </el-form-item>
          </el-col>
          <el-col :span="8">
35
            <el-form-item label="受理时间:">
36
              <el-input disabled v-model="ruleForm.slsq.slsj"></el-input>
37 38 39 40 41
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
42
            <el-form-item label="权利类型:" prop="qllx">
tianhaohao@pashanhoo.com committed
43
              <el-input disabled v-model="ruleForm.sldy.qllxmc"></el-input>
44 45 46
            </el-form-item>
          </el-col>
          <el-col :span="8">
47
            <el-form-item label="登记类型:" prop="djlx">
tianhaohao@pashanhoo.com committed
48
              <el-input disabled v-model="ruleForm.sldy.djlxmc"></el-input>
49 50 51
            </el-form-item>
          </el-col>
          <el-col :span="8">
52
            <el-form-item label="登记情形:" prop="djqx">
53
              <el-input disabled v-model="ruleForm.slsq.djqxmc"></el-input>
54 55 56
            </el-form-item>
          </el-col>
        </el-row>
jiaozeping@pashanhoo.com committed
57 58 59 60 61 62 63
        <div class="slxx_title title-block">
          抵押不动产情况
          <div class="triangle"></div>
        </div>

        <el-row :gutter="10">
          <el-col :span="8">
64
            <el-form-item label="权利人:">
tianhaohao@pashanhoo.com committed
65
              <el-input disabled v-model="ruleForm.ztQlxx.qlrmc"></el-input>
jiaozeping@pashanhoo.com committed
66
            </el-form-item>
67
          </el-col>
jiaozeping@pashanhoo.com committed
68
          <el-col :span="8">
tianhaohao@pashanhoo.com committed
69 70
            <el-form-item label="证件种类:">
              <el-input disabled v-model="ruleForm.ztQlxx.qlrzjzl"></el-input>
jiaozeping@pashanhoo.com committed
71 72
            </el-form-item>
          </el-col>
73
          <el-col :span="8">
tianhaohao@pashanhoo.com committed
74 75
            <el-form-item label="证件号:">
              <el-input disabled v-model="ruleForm.ztQlxx.qlrzjhm"></el-input>
jiaozeping@pashanhoo.com committed
76 77 78 79 80
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
81
            <el-form-item label="权利类型:">
tianhaohao@pashanhoo.com committed
82
              <el-input disabled v-model="ruleForm.ztQlxx.qllxmc"></el-input>
田浩浩 committed
83 84 85
            </el-form-item>
          </el-col>
          <el-col :span="8">
86
            <el-form-item label="不动产权证号:">
tianhaohao@pashanhoo.com committed
87
              <el-input disabled v-model="ruleForm.ztQlxx.bdcqzh"></el-input>
jiaozeping@pashanhoo.com committed
88 89
            </el-form-item>
          </el-col>
田浩浩 committed
90
          <el-col :span="8">
91
            <el-form-item label="坐落:">
92
              <el-input disabled v-model="ruleForm.sldy.zl"></el-input>
jiaozeping@pashanhoo.com committed
93 94 95 96 97
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
98
            <el-form-item label="不动产单元号:">
tianhaohao@pashanhoo.com committed
99
              <el-input disabled v-model="ruleForm.ztQlxx.bdcdyh"></el-input>
jiaozeping@pashanhoo.com committed
100 101 102
            </el-form-item>
          </el-col>
          <el-col :span="8">
103
            <el-form-item label="面积:">
104
              <el-input disabled v-model="ruleForm.ztQlxx.qlmjmc"></el-input>
jiaozeping@pashanhoo.com committed
105 106
            </el-form-item>
          </el-col>
田浩浩 committed
107
          <el-col :span="8">
108
            <el-form-item label="用途:">
109
              <el-input disabled v-model="ruleForm.ztQlxx.qlytmc"></el-input>
田浩浩 committed
110 111
            </el-form-item>
          </el-col>
jiaozeping@pashanhoo.com committed
112
        </el-row>
1  
jiaozeping@pashanhoo.com committed
113 114

        <div class="slxx_title title-block">
田浩浩 committed
115
          抵押信息
1  
jiaozeping@pashanhoo.com committed
116 117 118 119
          <div class="triangle"></div>
        </div>

        <el-row :gutter="10">
120 121 122
          <el-col :span="8" >
            <el-form-item label="原不动产权证号:">
              <el-input disabled v-model="ruleForm.sldy.ybdcqzsh"></el-input>
123 124
            </el-form-item>
          </el-col>
125
          <el-col :span="7">
126
            <el-form-item label="抵押方式:">
jiaozeping@pashanhoo.com committed
127
              <el-radio-group disabled v-model="ruleForm.diyaq.dyfs">
128 129
                <el-radio label="1">一般抵押权</el-radio>
                <el-radio label="2">最高额抵押权</el-radio>
130
              </el-radio-group>
1  
jiaozeping@pashanhoo.com committed
131 132
            </el-form-item>
          </el-col>
133
          <el-col :span="9">
xiaomiao committed
134 135 136 137 138 139 140 141
            <el-form-item
              label="是否存在禁止或者限制转让抵押不动产的约定:"
              label-width="350px"
            >
              <el-radio-group
                v-model="ruleForm.diyaq.sfczjzhxz"
                :disabled="!viewEdit || isJfOperation"
              >
jiaozeping@pashanhoo.com committed
142 143 144 145 146 147
                <el-radio label="1">启用</el-radio>
                <el-radio label="0">禁用</el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
        </el-row>
1  
jiaozeping@pashanhoo.com committed
148

jiaozeping@pashanhoo.com committed
149
        <el-row :gutter="10">
150
          <el-col :span="8" v-show="ruleForm.diyaq.dyfs == 1">
151
            <el-form-item label="被担保主债权数额:">
xiaomiao committed
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
              <div style="display: flex">
                <el-input
                  v-model="ruleForm.diyaq.bdbzzqse"
                  :disabled="!viewEdit || isJfOperation"
                  style="width: 500%"
                ></el-input>
                <el-select
                  v-model="ruleForm.diyaq.jedw"
                  :disabled="!viewEdit || isJfOperation"
                >
                  <el-option
                    v-for="item in dictData['A57']"
                    :key="item.dcode"
                    :label="item.dname"
                    :value="item.dcode"
                  >
168 169
                  </el-option>
                </el-select>
170 171
              </div>
            </el-form-item>
1  
jiaozeping@pashanhoo.com committed
172 173
          </el-col>

174
          <el-col :span="8" v-show="ruleForm.diyaq.dyfs == 2">
175
            <el-form-item label="最高债权额:">
xiaomiao committed
176 177 178 179
              <el-input
                v-model="ruleForm.diyaq.zgzqse"
                :disabled="!viewEdit || isJfOperation"
              ></el-input>
1  
jiaozeping@pashanhoo.com committed
180 181 182 183
            </el-form-item>
          </el-col>

          <el-col :span="8">
184
            <el-form-item label="债务履行起始时间:">
xiaomiao committed
185 186 187 188 189
              <el-date-picker
                v-model="ruleForm.diyaq.zwlxqssj"
                :disabled="!viewEdit || isJfOperation"
                type="date"
              >
190
              </el-date-picker>
1  
jiaozeping@pashanhoo.com committed
191 192 193
            </el-form-item>
          </el-col>
          <el-col :span="8">
194
            <el-form-item label="债务履行结束时间:">
xiaomiao committed
195 196 197 198 199
              <el-date-picker
                v-model="ruleForm.diyaq.zwlxjssj"
                :disabled="!viewEdit || isJfOperation"
                type="date"
              >
jiaozeping@pashanhoo.com committed
200
              </el-date-picker>
1  
jiaozeping@pashanhoo.com committed
201 202 203 204 205
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
206
            <el-form-item label="担保范围:">
xiaomiao committed
207 208 209 210 211 212
              <el-input
                v-model="ruleForm.diyaq.dbfw"
                :disabled="
                  (ruleForm.sldy.djlx == '300' && !viewEdit) || isJfOperation
                "
              ></el-input>
1  
jiaozeping@pashanhoo.com committed
213 214 215 216 217
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
218
            <el-form-item label="最高债权确定事实和数额:">
xiaomiao committed
219 220 221 222
              <el-input
                v-model="ruleForm.diyaq.zgzqqdss"
                :disabled="!viewEdit || isJfOperation"
              ></el-input>
1  
jiaozeping@pashanhoo.com committed
223 224 225
            </el-form-item>
          </el-col>
        </el-row>
226
        <el-row>
1  
jiaozeping@pashanhoo.com committed
227
          <el-col>
228
            <el-form-item label="附记:" prop="fj">
xiaomiao committed
229 230 231 232 233 234 235
              <el-input
                type="textarea"
                maxlength="500"
                show-word-limit
                v-model="ruleForm.diyaq.fj"
                :disabled="!viewEdit || isJfOperation"
              ></el-input>
1  
jiaozeping@pashanhoo.com committed
236 237 238 239
            </el-form-item>
          </el-col>
        </el-row>

1  
jiaozeping@pashanhoo.com committed
240 241 242 243 244
        <div class="slxx_title title-block">
          抵押权人信息
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
245
          <el-col :span="12">
246
            <el-form-item label="共有方式:">
xiaomiao committed
247 248 249 250
              <el-radio-group
                :disabled="!viewEdit"
                v-model="ruleForm.sldy.gyfs"
              >
251
                <el-radio label="0">单独所有</el-radio>
1  
jiaozeping@pashanhoo.com committed
252 253 254
                <el-radio label="1">共同共有</el-radio>
                <el-radio label="2">按份所有</el-radio>
                <el-radio label="3">其它共有</el-radio>
1  
jiaozeping@pashanhoo.com committed
255 256 257
              </el-radio-group>
            </el-form-item>
          </el-col>
258
          <el-col :span="6" v-show="ruleForm.sldy.gyfs != '0'">
259
            <el-form-item label="是否分别持证:">
260 261
              <el-radio-group
                v-model="ruleForm.sldy.sqfbcz"
xiaomiao committed
262 263 264
                :disabled="!viewEdit"
                @input="updaterow()"
              >
265 266
                <el-radio :label="1"></el-radio>
                <el-radio :label="0"></el-radio>
1  
jiaozeping@pashanhoo.com committed
267 268 269
              </el-radio-group>
            </el-form-item>
          </el-col>
270 271
          <el-col
            :span="6"
xiaomiao committed
272 273
            v-show="ruleForm.sldy.sqfbcz == '0' && ruleForm.sldy.gyfs != '0'"
          >
274
            <el-form-item label="持证人:">
275
              <el-select
xiaomiao committed
276
                v-model="czr"
277
                placeholder="持证人"
xiaomiao committed
278 279
                :disabled="!viewEdit"
              >
280 281 282 283
                <el-option
                  v-for="item in czrOptions"
                  :key="item.zjh"
                  :label="item.sqrmc"
xiaomiao committed
284 285
                  :value="item.zjh"
                >
1  
jiaozeping@pashanhoo.com committed
286 287 288 289 290
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
xiaomiao committed
291 292 293 294 295 296
        <qlrCommonTable
          :tableData="ruleForm.qlrList"
          :disabled="viewEdit"
          @upDateQlrxxList="upDateQlrxxList"
          :gyfs="ruleForm.sldy.gyfs"
        />
1  
jiaozeping@pashanhoo.com committed
297 298 299 300
        <div class="slxx_title title-block">
          抵押人信息
          <div class="triangle"></div>
        </div>
xiaomiao committed
301 302 303 304 305
        <qlrCommonTable
          :tableData="ruleForm.ywrList"
          :disabled="viewEdit"
          @upDateQlrxxList="upDateYwrxxList"
        />
1  
jiaozeping@pashanhoo.com committed
306 307 308 309 310 311 312

        <div class="slxx_title title-block">
          登记原因
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col>
xiaomiao committed
313 314 315 316 317 318 319 320 321 322 323
            <el-form-item
              v-if="ruleForm.sldy.djlx == '400'"
              label="注销抵押原因:"
              prop="djyy"
            >
              <el-input
                class="textArea"
                type="textarea"
                :disabled="!viewEdit"
                v-model="ruleForm.diyaq.zxdyyy"
              >
田浩浩 committed
324 325
              </el-input>
            </el-form-item>
326
            <el-form-item v-else label="登记原因:" prop="djyy">
xiaomiao committed
327 328 329 330 331 332 333 334
              <el-input
                class="textArea"
                type="textarea"
                maxlength="500"
                show-word-limit
                :disabled="!viewEdit"
                v-model="ruleForm.diyaq.djyy"
              >
1  
jiaozeping@pashanhoo.com committed
335 336 337 338
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>
339
      </div>
340
      <el-row class="btn" v-if="viewEdit">
341
        <el-form-item>
1  
jiaozeping@pashanhoo.com committed
342
          <el-button type="primary" @click="onSubmitClick()">保存</el-button>
343 344 345 346 347 348
        </el-form-item>
      </el-row>
    </el-form>
  </div>
</template>
<script>
xiaomiao committed
349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369
import qlrCommonTable from "@/views/workflow/components/qlrCommonTable";
import { Init, saveData } from "@/api/workflow/diyaqFlow.js";
import { mapGetters } from "vuex";
export default {
  mounted() {
    this.viewEdit = this.$parent.currentSelectTab.ableOperation;
    this.propsParam = this.$attrs;
    var formdata = new FormData();
    if (this.propsParam.djlx == "400") {
      this.isJfOperation = true;
    }
    this.$startLoading();
    formdata.append("bsmSldy", this.propsParam.bsmSldy);
    formdata.append("bsmSlsq", this.$route.query.bsmSlsq);
    formdata.append("djlx", this.propsParam.djlx);
    formdata.append("isEdit", this.viewEdit);
    Init(formdata).then((res) => {
      if (res.code === 200 && res.result) {
        this.ruleForm = res.result;
        this.czrOptions = this.ruleForm.qlrList;
        this.ruleForm.diyaq.sfczjzhxz = "0";
xiaomiao committed
370
      }
xiaomiao committed
371 372 373
      this.ruleForm.qlrList.forEach((item) => {
        if (item.sfczr == 1) {
          this.czr = item.sqrmc;
374
        }
xiaomiao committed
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
      });
      this.$endLoading();
    });
  },
  components: { qlrCommonTable },
  computed: {
    ...mapGetters(["dictData", "flag"]),
  },
  data() {
    return {
      //表单是否可操作
      viewEdit: true,
      disabled: true,
      czrOptions: [],
      czr: "",
      ruleForm: {
        slsq: {},
        ssQlxx: {},
        diyaq: {},
        gyfs: "",
      },
      isJfOperation: false,
      //传递参数
      propsParam: {},
      rules: {},
    };
  },
  methods: {
    /**
     * @description: onSubmitClick
     * @author: renchao
     */
    onSubmitClick() {
      let that = this;
      if (this.ruleForm.qlrList.length == 0) {
        this.$message({
          showClose: true,
          message: "请确认抵押权人信息",
          type: "error",
        });
        return false;
      }
      if (this.ruleForm.sldy.gyfs == "0") {
        if (this.ruleForm.qlrList.length > 1) {
419 420
          this.$message({
            showClose: true,
xiaomiao committed
421
            message: "共有方式:单独所有,权利人只能是一个人",
422 423 424 425
            type: "error",
          });
          return false;
        }
xiaomiao committed
426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442
        this.ruleForm.qlrList[0].sfczr = "1";
      } else {
        if (this.ruleForm.qlrList.length <= 1) {
          this.$message({
            showClose: true,
            message:
              "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上",
            type: "error",
          });
          return false;
        }
        //是否分别持证
        if (this.ruleForm.sldy.sqfbcz == "1") {
          //是
          this.ruleForm.qlrList.forEach((item, index) => {
            item.sfczr = "1";
          });
443
        } else {
xiaomiao committed
444 445
          if (!that.czr) {
            that.$message({
446
              showClose: true,
xiaomiao committed
447
              message: "请选择持证人",
448 449 450 451
              type: "error",
            });
            return false;
          }
xiaomiao committed
452 453
          this.ruleForm.qlrList.forEach((item, index) => {
            if (item.zjh == this.czr) {
454
              item.sfczr = "1";
xiaomiao committed
455 456
            } else {
              item.sfczr = "0";
457
            }
xiaomiao committed
458
          });
459
        }
xiaomiao committed
460
      }
461

xiaomiao committed
462 463 464 465 466 467 468 469 470 471 472 473 474 475
      saveData(this.ruleForm, this.propsParam.djlx).then((res) => {
        if (res.code === 200) {
          this.$message({
            showClose: true,
            message: "保存成功!",
            type: "success",
          });
          this.$store.dispatch("user/refreshPage", true);
        } else {
          this.$message({
            showClose: true,
            message: res.message,
            type: "error",
          });
476
        }
xiaomiao committed
477 478 479 480 481 482 483 484 485 486 487
      });
    },
    /**
     * @description: 更新权利人信息
     * @param {*} val
     * @author: renchao
     */
    upDateQlrxxList(val) {
      if (!_.isEqual(val, this.ruleForm.qlrList)) {
        this.ruleForm.qlrList = _.cloneDeep(val);
        this.czrOptions = this.ruleForm.qlrList;
任超 committed
488
      }
xiaomiao committed
489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510
    },
    // 是否持证人变化
    /**
     * @description: 是否持证人变化
     * @param {*} val
     * @author: renchao
     */
    updaterow() {
      this.czr = "";
    },
    /**
     * @description: 更新义务人信息
     * @param {*} val
     * @author: renchao
     */
    upDateYwrxxList(val) {
      if (!_.isEqual(val, this.ruleForm.ywrList)) {
        this.ruleForm.ywrList = _.cloneDeep(val);
      }
    },
  },
};
511
</script>
xiaomiao committed
512 513 514
<style scoped lang="scss">
@import "~@/styles/public.scss";
@import "~@/styles/slxx/slxx.scss";
515
</style>