Blame view

src/views/ywbl/slsqxx/zjgcdy/slxx.vue 15.9 KB
1 2 3
<template>
  <!-- 受理信息 -->
  <div class="slxx">
xiaomiao committed
4 5 6 7 8 9 10 11 12
    <el-form
      :model="ruleForm"
      :rules="rules"
      class="loadingtext"
      ref="ruleForm"
      :label-position="flag ? 'top' : ''"
      :inline="flag"
      label-width="140px"
    >
13
      <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''">
jiaozeping@pashanhoo.com committed
14
        <div class="slxx_title title-block">
15
          申请业务信息
jiaozeping@pashanhoo.com committed
16 17
          <div class="triangle"></div>
        </div>
18 19
        <el-row :gutter="10">
          <el-col :span="8">
20
            <el-form-item label="业务号:">
tianhaohao@pashanhoo.com committed
21
              <el-input disabled v-model="ruleForm.flow.ywh"></el-input>
22 23 24
            </el-form-item>
          </el-col>
          <el-col :span="8">
25
            <el-form-item label="受理人员:">
tianhaohao@pashanhoo.com committed
26
              <el-input disabled v-model="ruleForm.slsq.slry"></el-input>
27 28 29
            </el-form-item>
          </el-col>
          <el-col :span="8">
30
            <el-form-item label="受理时间:">
tianhaohao@pashanhoo.com committed
31
              <el-input disabled v-model="ruleForm.slsq.slsj"></el-input>
32 33 34 35 36
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
37
            <el-form-item label="权利类型:" prop="qllx">
tianhaohao@pashanhoo.com committed
38
              <el-input disabled v-model="ruleForm.sldy.qllxmc"></el-input>
39 40 41
            </el-form-item>
          </el-col>
          <el-col :span="8">
42
            <el-form-item label="登记类型:" prop="djlx">
tianhaohao@pashanhoo.com committed
43
              <el-input disabled v-model="ruleForm.sldy.djlxmc"></el-input>
44 45 46
            </el-form-item>
          </el-col>
          <el-col :span="8">
47
            <el-form-item label="登记情形:" prop="djqx">
tianhaohao@pashanhoo.com committed
48
              <el-input disabled v-model="ruleForm.slsq.djqxmc"></el-input>
49 50 51
            </el-form-item>
          </el-col>
        </el-row>
jiaozeping@pashanhoo.com committed
52
        <div class="slxx_title title-block">
53
          抵押户信息情况
jiaozeping@pashanhoo.com committed
54 55 56 57
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col :span="8">
58
            <el-form-item label="房屋用途:">
59 60 61 62 63 64 65
              <treeselect
                v-model="ruleForm.qjh.showfwyt"
                noOptionsText=""
                disabled
                placeholder=""
                :normalizer="normalizer"
                :show-count="true"
xiaomiao committed
66 67
                :options="dictData['A17']"
              />
jiaozeping@pashanhoo.com committed
68 69 70
            </el-form-item>
          </el-col>
          <el-col :span="8">
71 72
            <el-form-item label="房屋性质:">
              <el-input disabled v-model="ruleForm.qjh.fwxzmc"></el-input>
jiaozeping@pashanhoo.com committed
73 74 75
            </el-form-item>
          </el-col>
          <el-col :span="8">
76 77
            <el-form-item label="房屋结构:">
              <el-input disabled v-model="ruleForm.qjh.showfwjg"></el-input>
jiaozeping@pashanhoo.com committed
78 79 80 81 82
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
83 84
            <el-form-item label="建筑面积:">
              <el-input disabled v-model="ruleForm.qjh.jzmj"></el-input>
田浩浩 committed
85 86 87
            </el-form-item>
          </el-col>
          <el-col :span="8">
88 89
            <el-form-item label="套内建筑面积:">
              <el-input disabled v-model="ruleForm.qjh.tnjzmj"></el-input>
jiaozeping@pashanhoo.com committed
90 91
            </el-form-item>
          </el-col>
田浩浩 committed
92
          <el-col :span="8">
93 94
            <el-form-item label="分摊建筑面积:">
              <el-input disabled v-model="ruleForm.qjh.ftjzmj"></el-input>
jiaozeping@pashanhoo.com committed
95 96 97 98 99
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
100
            <el-form-item label="不动产单元号:">
101
              <el-input disabled v-model="ruleForm.qlxx.bdcdyh"></el-input>
jiaozeping@pashanhoo.com committed
102 103 104
            </el-form-item>
          </el-col>
          <el-col :span="8">
105 106
            <el-form-item label="室号部位:">
              <el-input disabled v-model="ruleForm.qjh.shbw"></el-input>
jiaozeping@pashanhoo.com committed
107 108
            </el-form-item>
          </el-col>
田浩浩 committed
109
          <el-col :span="8">
110
            <el-form-item label="坐落:">
111
              <el-input disabled v-model="ruleForm.sldy.zl"></el-input>
田浩浩 committed
112 113
            </el-form-item>
          </el-col>
jiaozeping@pashanhoo.com committed
114
        </el-row>
1  
jiaozeping@pashanhoo.com committed
115 116

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

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

jiaozeping@pashanhoo.com committed
147
        <el-row :gutter="10">
148
          <el-col :span="8" v-show="ruleForm.diyaq.dyfs == 1">
149
            <el-form-item label="被担保主债权数额:">
xiaomiao committed
150 151 152 153
              <el-input
                v-model="ruleForm.diyaq.bdbzzqse"
                :disabled="!viewEdit"
              ></el-input>
154
              <el-select v-model="ruleForm.diyaq.jedw" :disabled="!viewEdit">
xiaomiao committed
155 156 157 158 159 160
                <el-option
                  v-for="item in dictData['A57']"
                  :key="item.dcode"
                  :label="item.dname"
                  :value="item.dcode"
                >
161 162
                </el-option>
              </el-select>
1  
jiaozeping@pashanhoo.com committed
163 164 165
            </el-form-item>
          </el-col>

166
          <el-col :span="8" v-show="ruleForm.diyaq.dyfs == 2">
167
            <el-form-item label="最高债权额:">
xiaomiao committed
168 169 170 171
              <el-input
                v-model="ruleForm.diyaq.zgzqse"
                :disabled="!viewEdit"
              ></el-input>
172
              <el-select v-model="ruleForm.diyaq.jedw" :disabled="!viewEdit">
xiaomiao committed
173 174 175 176 177 178
                <el-option
                  v-for="item in dictData['A57']"
                  :key="item.dcode"
                  :label="item.dname"
                  :value="item.dcode"
                >
179 180
                </el-option>
              </el-select>
1  
jiaozeping@pashanhoo.com committed
181 182 183 184
            </el-form-item>
          </el-col>

          <el-col :span="8">
185
            <el-form-item label="债务履行起始时间:">
xiaomiao committed
186 187 188 189 190
              <el-date-picker
                v-model="ruleForm.diyaq.zwlxqssj"
                :disabled="!viewEdit"
                type="date"
              >
191
              </el-date-picker>
1  
jiaozeping@pashanhoo.com committed
192 193 194
            </el-form-item>
          </el-col>
          <el-col :span="8">
195
            <el-form-item label="债务履行结束时间:">
xiaomiao committed
196 197 198 199 200
              <el-date-picker
                v-model="ruleForm.diyaq.zwlxjssj"
                :disabled="!viewEdit"
                type="date"
              >
jiaozeping@pashanhoo.com committed
201
              </el-date-picker>
1  
jiaozeping@pashanhoo.com committed
202 203 204 205 206 207
            </el-form-item>
          </el-col>
        </el-row>

        <el-row>
          <el-col :span="24">
208
            <el-form-item label="担保范围:">
xiaomiao committed
209 210 211 212
              <el-input
                v-model="ruleForm.diyaq.dbfw"
                :disabled="ruleForm.sldy.djlx == '300' && !viewEdit"
              ></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"
              ></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"
              ></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 245
        <div class="slxx_title title-block">
          抵押权人信息
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col :span="14">
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"
          @upDateQlrxxList="upDateQlrxxList"
          :disabled="viewEdit"
          :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"
          @upDateQlrxxList="upDateYwrxxList"
          :disabled="viewEdit"
        />
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
import qlrCommonTable from "@/views/workflow/components/qlrCommonTable";
import { Init, saveData } from "@/api/workflow/zjgcdyFlow.js";
import { mapGetters } from "vuex";
export default {
  mounted() {
    this.viewEdit = this.$parent.currentSelectTab.ableOperation;
    this.propsParam = this.$attrs;
    var formdata = new FormData();
    this.$startLoading();
    formdata.append("bsmSldy", this.propsParam.bsmSldy);
    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.qlrList.forEach((item) => {
          if (item.sfczr == 1) {
            this.czr = item.sqrmc;
368
          }
xiaomiao committed
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
        });
        this.$endLoading();
      }
    });
  },
  components: { qlrCommonTable },
  computed: {
    ...mapGetters(["dictData", "flag"]),
  },
  data() {
    return {
      //表单是否可操作
      viewEdit: true,
      disabled: true,
      czrOptions: [],
      czr: "",
      ruleForm: {},
      //传递参数
      propsParam: {},
      rules: {},
      // 键名转换,方法默认是label和children进行树状渲染
      normalizer(node) {
        //方法
        if (node.children == null || node.children == "null") {
          delete node.children;
        }
        return {
          id: node.dcode,
          label: node.dname,
        };
      },
    };
  },
  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) {
420 421
          this.$message({
            showClose: true,
xiaomiao committed
422
            message: "共有方式:单独所有,权利人只能是一个人",
423 424 425 426
            type: "error",
          });
          return false;
        }
xiaomiao committed
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443
        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";
          });
444
        } else {
xiaomiao committed
445 446
          if (!that.czr) {
            that.$message({
447
              showClose: true,
xiaomiao committed
448
              message: "请选择持证人",
449 450 451 452
              type: "error",
            });
            return false;
          }
xiaomiao committed
453
          this.ruleForm.qlrList.forEach((item, index) => {
454
            if (item.zjh == that.czr) {
455
              item.sfczr = "1";
xiaomiao committed
456 457
            } else {
              item.sfczr = "0";
458
            }
xiaomiao committed
459
          });
460
        }
xiaomiao committed
461 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 488
      });
    },

    /**
     * @description: 更新权利人信息
     * @param {*} val
     * @author: renchao
     */
    upDateQlrxxList(val) {
      if (!_.isEqual(val, this.ruleForm.qlrList)) {
        this.ruleForm.qlrList = _.cloneDeep(val);
        this.czrOptions = this.ruleForm.qlrList;
任超 committed
489
      }
xiaomiao committed
490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508
    },
    // 是否持证人变化
    /**
     * @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);
      }
509 510 511
    }
  }
}
512
</script>
xiaomiao committed
513 514 515
<style scoped lang="scss">
@import "~@/styles/public.scss";
@import "~@/styles/slxx/slxx.scss";
516
</style>