Blame view

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

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

        <div class="slxx_title title-block">
田浩浩 committed
108
          抵押信息
1  
jiaozeping@pashanhoo.com committed
109 110 111 112
          <div class="triangle"></div>
        </div>

        <el-row :gutter="10">
113
          <el-col :span="8" v-if="ruleForm.sldy.djlx != '100'">
114 115 116 117 118
            <el-form-item label="原不动产登记证明号:">
              <el-input v-if="ruleForm.sldy.djlx == '400'" disabled v-model="ruleForm.qlxx.bdcqzh"></el-input>
              <el-input v-else disabled v-model="ruleForm.ssQlxx.bdcqzh"></el-input>
            </el-form-item>
          </el-col>
119
          <el-col :span="7">
120
            <el-form-item label="抵押方式:">
jiaozeping@pashanhoo.com committed
121
              <el-radio-group disabled v-model="ruleForm.diyaq.dyfs">
122 123
                <el-radio label="1">一般抵押权</el-radio>
                <el-radio label="2">最高额抵押权</el-radio>
124
              </el-radio-group>
1  
jiaozeping@pashanhoo.com committed
125 126
            </el-form-item>
          </el-col>
127
          <el-col :span="9">
128
            <el-form-item label="是否存在禁止或者限制转让抵押不动产的约定:" label-width="350px">
129
              <el-radio-group v-model="ruleForm.diyaq.sfczjzhxz" :disabled="!viewEdit|| isJfOperation">
jiaozeping@pashanhoo.com committed
130 131 132 133 134 135
                <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
136

jiaozeping@pashanhoo.com committed
137
        <el-row :gutter="10">
138
          <el-col :span="8" v-show="ruleForm.diyaq.dyfs == 1">
139
            <el-form-item label="被担保主债权数额:">
140
              <div style="display:flex">
141 142
                <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">
143 144 145
                  <el-option v-for="item in dictData['A57']" :key="item.dcode" :label="item.dname" :value="item.dcode">
                  </el-option>
                </el-select>
146 147
              </div>
            </el-form-item>
1  
jiaozeping@pashanhoo.com committed
148 149
          </el-col>

150
          <el-col :span="8" v-show="ruleForm.diyaq.dyfs == 2">
151
            <el-form-item label="最高债权额:">
152
              <el-input v-model="ruleForm.diyaq.zgzqse" :disabled="!viewEdit|| isJfOperation"></el-input>
1  
jiaozeping@pashanhoo.com committed
153 154 155 156
            </el-form-item>
          </el-col>

          <el-col :span="8">
157
            <el-form-item label="债务履行起始时间:">
158
              <el-date-picker v-model="ruleForm.diyaq.zwlxqssj" :disabled="!viewEdit|| isJfOperation" type="date">
159
              </el-date-picker>
1  
jiaozeping@pashanhoo.com committed
160 161 162
            </el-form-item>
          </el-col>
          <el-col :span="8">
163
            <el-form-item label="债务履行结束时间:">
164
              <el-date-picker v-model="ruleForm.diyaq.zwlxjssj" :disabled="!viewEdit|| isJfOperation" type="date">
jiaozeping@pashanhoo.com committed
165
              </el-date-picker>
1  
jiaozeping@pashanhoo.com committed
166 167 168 169 170
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
171
            <el-form-item label="担保范围:">
任超 committed
172
              <el-input v-model="ruleForm.diyaq.dbfw"
173
                :disabled="ruleForm.sldy.djlx == '300'&& !viewEdit|| isJfOperation"></el-input>
1  
jiaozeping@pashanhoo.com committed
174 175 176 177 178
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
179
            <el-form-item label="最高债权确定事实和数额:">
180
              <el-input v-model="ruleForm.diyaq.zgzqqdss" :disabled="!viewEdit|| isJfOperation"></el-input>
1  
jiaozeping@pashanhoo.com committed
181 182 183
            </el-form-item>
          </el-col>
        </el-row>
184
        <el-row>
1  
jiaozeping@pashanhoo.com committed
185
          <el-col>
186
            <el-form-item label="附记:" prop="fj">
187
              <el-input type="textarea" v-model="ruleForm.diyaq.fj" :disabled="!viewEdit|| isJfOperation"></el-input>
1  
jiaozeping@pashanhoo.com committed
188 189 190 191
            </el-form-item>
          </el-col>
        </el-row>

1  
jiaozeping@pashanhoo.com committed
192 193 194 195 196
        <div class="slxx_title title-block">
          抵押权人信息
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
197
          <el-col :span="12">
198
            <el-form-item label="共有方式:">
199
              <el-radio-group :disabled="!viewEdit" v-model="ruleForm.sldy.gyfs">
200
                <el-radio label="0">单独所有</el-radio>
1  
jiaozeping@pashanhoo.com committed
201 202 203
                <el-radio label="1">共同共有</el-radio>
                <el-radio label="2">按份所有</el-radio>
                <el-radio label="3">其它共有</el-radio>
1  
jiaozeping@pashanhoo.com committed
204 205 206
              </el-radio-group>
            </el-form-item>
          </el-col>
207
          <el-col :span="6" v-show="ruleForm.sldy.gyfs != '0'">
208
            <el-form-item label="是否分别持证:">
209 210
              <el-radio-group
                v-model="ruleForm.sldy.sqfbcz"
211
                :disabled="!viewEdit">
212 213
                <el-radio :label="1"></el-radio>
                <el-radio :label="0"></el-radio>
1  
jiaozeping@pashanhoo.com committed
214 215 216
              </el-radio-group>
            </el-form-item>
          </el-col>
217 218
          <el-col
            :span="6"
219
            v-show="ruleForm.sldy.sqfbcz == '0' && ruleForm.sldy.gyfs != '0'">
220
            <el-form-item label="持证人:">
221 222 223
              <el-select
                v-model="ruleForm.czr"
                placeholder="持证人"
224
                :disabled="!viewEdit">
225 226 227 228 229
                <el-option
                  v-for="item in czrOptions"
                  :key="item.zjh"
                  :label="item.sqrmc"
                  :value="item.zjh">
1  
jiaozeping@pashanhoo.com committed
230 231 232 233 234
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
235
        <qlrCommonTable :tableData="ruleForm.qlrList" :disabled="viewEdit" @upDateQlrxxList="upDateQlrxxList"
236
          :gyfs="ruleForm.sldy.gyfs" />
1  
jiaozeping@pashanhoo.com committed
237 238 239 240
        <div class="slxx_title title-block">
          抵押人信息
          <div class="triangle"></div>
        </div>
241
        <qlrCommonTable :tableData="ruleForm.ywrList" :disabled="viewEdit" @upDateQlrxxList="upDateYwrxxList" />
1  
jiaozeping@pashanhoo.com committed
242 243 244 245 246 247 248

        <div class="slxx_title title-block">
          登记原因
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col>
249
            <el-form-item v-if="ruleForm.sldy.djlx == '400'" label="注销抵押原因:" prop="djyy">
250
              <el-input class="textArea" type="textarea" :disabled="!viewEdit"
田浩浩 committed
251 252 253
                v-model="ruleForm.diyaq.zxdyyy">
              </el-input>
            </el-form-item>
254
            <el-form-item v-else label="登记原因:" prop="djyy">
255
              <el-input class="textArea" type="textarea" maxlength="500" show-word-limit :disabled="!viewEdit"
256
                v-model="ruleForm.diyaq.djyy">
1  
jiaozeping@pashanhoo.com committed
257 258 259 260 261
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>

262
      </div>
263
      <el-row class="btn" v-if="viewEdit">
264
        <el-form-item>
1  
jiaozeping@pashanhoo.com committed
265
          <el-button type="primary" @click="onSubmitClick()">保存</el-button>
266 267 268 269 270 271
        </el-form-item>
      </el-row>
    </el-form>
  </div>
</template>
<script>
272 273 274 275 276
  import qlrCommonTable from "@/views/workflow/components/qlrCommonTable";
  import { Init, saveData } from "@/api/workflow/diyaqFlow.js";
  import { mapGetters } from "vuex";
  export default {
    mounted () {
277
      this.viewEdit = this.$parent.currentSelectTab.ableOperation
278 279
      this.propsParam = this.$attrs;
      var formdata = new FormData();
280
      if (this.propsParam.djlx == '400') {
xiaomiao committed
281 282
        this.isJfOperation = true;
      }
283 284 285 286
      this.$startLoading();
      formdata.append("bsmSldy", this.propsParam.bsmSldy);
      formdata.append("bsmSlsq", this.$route.query.bsmSlsq);
      formdata.append("djlx", this.propsParam.djlx);
287
      formdata.append("isEdit", this.viewEdit);
288 289
      Init(formdata).then((res) => {
        if (res.code === 200 && res.result) {
290
          this.ruleForm = res.result;
291 292
          this.ruleForm.qlrList.forEach((item, index) => {
            if (item.sfczr == 1) {
293
              this.$set(this.ruleForm, "czr", item.zjh)
294 295
            }
          })
296
          this.ruleForm.diyaq.sfczjzhxz = "0";
297
          this.czrOptions = this.ruleForm.qlrList;
298
        }
299
        this.$endLoading();
300
      })
301
    },
302 303 304 305 306 307
    components: { qlrCommonTable },
    computed: {
      ...mapGetters(["dictData", "flag"]),
    },
    data () {
      return {
308
        //表单是否可操作
309
        viewEdit: true,
310 311 312
        disabled: true,
        czrOptions: [],
        ruleForm: {
313 314
          slsq: {},
          ssQlxx: {},
315 316 317
          diyaq: {},
          gyfs: "",
        },
xiaomiao committed
318
        isJfOperation: false,
319 320 321 322
        //传递参数
        propsParam: {},
        rules: {},
      };
1  
jiaozeping@pashanhoo.com committed
323
    },
324
    methods: {
yuanbo committed
325 326 327 328
      /**
       * @description: onSubmitClick
       * @author: renchao
       */
329
      onSubmitClick () {
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382
        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) {
            this.$message({
              showClose: true,
              message: "共有方式:单独所有,权利人只能是一个人",
              type: "error",
            });
            return false;
          }
          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";
            });
          } else {
            if (!that.ruleForm.czr) {
              that.$message({
                showClose: true,
                message: "请选择持证人",
                type: "error",
              });
              return false;
            }
            this.ruleForm.qlrList.forEach((item, index) => {
              if (item.zjh == this.ruleForm.czr) {
                item.sfczr = "1";
              } else {
                item.sfczr = "0";
              }
            });
          }
        }

383 384 385 386 387 388 389
        saveData(this.ruleForm, this.propsParam.djlx).then((res) => {
          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",
            });
          }
        });
      },
yuanbo committed
400 401 402 403 404
      /**
       * @description: 更新权利人信息
       * @param {*} val
       * @author: renchao
       */
405 406 407
      upDateQlrxxList (val) {
        if (!_.isEqual(val, this.ruleForm.qlrList)) {
          this.ruleForm.qlrList = _.cloneDeep(val);
408
          this.czrOptions = this.ruleForm.qlrList;
409 410 411
        }
      },
      // 更新义务人信息
yuanbo committed
412 413 414 415 416
      /**
       * @description: 更新义务人信息
       * @param {*} val
       * @author: renchao
       */
417 418 419 420
      upDateYwrxxList (val) {
        if (!_.isEqual(val, this.ruleForm.ywrList)) {
          this.ruleForm.ywrList = _.cloneDeep(val);
        }
任超 committed
421 422
      }
    }
423
  };
424 425
</script>
<style scoped lang='scss'>
426 427
  @import "~@/styles/public.scss";
  @import "~@/styles/slxx/slxx.scss";
428
</style>