Blame view

src/views/ywbl/slsqxx/diyaq/slxx.vue 12.1 KB
1 2 3
<!--
 * @Description: 
 * @Autor: renchao
4
 * @LastEditTime: 2023-05-25 08:51:13
5
-->
6 7 8
<template>
  <!-- 受理信息 -->
  <div class="slxx">
9 10
    <el-form :model="ruleForm" :rules="rules" class="loadingtext" ref="ruleForm" :label-position="flag ? 'top' : ''"
      :inline="flag" label-width="140px">
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="业务号:">
19
              <el-input disabled v-model="ruleForm.slsq.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">
36
              <el-input disabled v-model="ruleForm.slsq.qllxmc"></el-input>
37 38 39
            </el-form-item>
          </el-col>
          <el-col :span="8">
40
            <el-form-item label="登记类型:" prop="djlx">
41
              <el-input disabled v-model="ruleForm.slsq.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="权利人:">
58
              <el-input disabled v-model="ruleForm.ssQlxx.qlrmc"></el-input>
jiaozeping@pashanhoo.com committed
59 60 61
            </el-form-item>
          </el-col>
          <el-col :span="8">
62
            <el-form-item label="证件号:">
63
              <el-input disabled v-model="ruleForm.ssQlxx.qlrzjhm"></el-input>
jiaozeping@pashanhoo.com committed
64 65 66
            </el-form-item>
          </el-col>
          <el-col :span="8">
67
            <el-form-item label="证件种类:">
68
              <el-input disabled v-model="ruleForm.ssQlxx.qlrzjzl"></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="权利类型:">
75
              <el-input disabled v-model="ruleForm.ssQlxx.qllxmc"></el-input>
田浩浩 committed
76 77 78
            </el-form-item>
          </el-col>
          <el-col :span="8">
79
            <el-form-item label="不动产权证号:">
80
              <el-input disabled v-model="ruleForm.ssQlxx.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.ssQlxx.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="不动产单元号:">
92
              <el-input disabled v-model="ruleForm.ssQlxx.bdcdyh"></el-input>
jiaozeping@pashanhoo.com committed
93 94 95
            </el-form-item>
          </el-col>
          <el-col :span="8">
96
            <el-form-item label="面积:">
97
              <el-input disabled v-model="ruleForm.ssQlxx.mj"></el-input>
jiaozeping@pashanhoo.com committed
98 99
            </el-form-item>
          </el-col>
田浩浩 committed
100
          <el-col :span="8">
101
            <el-form-item label="用途:">
102
              <el-input disabled v-model="ruleForm.ssQlxx.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 113
          <div class="triangle"></div>
        </div>

        <el-row :gutter="10">
          <el-col :span="8">
114
            <el-form-item label="抵押方式:">
jiaozeping@pashanhoo.com committed
115
              <el-radio-group disabled v-model="ruleForm.diyaq.dyfs">
116 117
                <el-radio label="1">一般抵押权</el-radio>
                <el-radio label="2">最高额抵押权</el-radio>
118
              </el-radio-group>
1  
jiaozeping@pashanhoo.com committed
119 120
            </el-form-item>
          </el-col>
jiaozeping@pashanhoo.com committed
121
          <el-col :span="16">
122
            <el-form-item label="是否存在禁止或者限制转让抵押不动产的约定:" label-width="350px">
jiaozeping@pashanhoo.com committed
123 124 125 126 127 128 129
              <el-radio-group v-model="ruleForm.diyaq.sfczjzhxz">
                <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
130

jiaozeping@pashanhoo.com committed
131
        <el-row :gutter="10">
132
          <el-col :span="8" v-show="ruleForm.diyaq.dyfs == 1">
133
            <el-form-item label="被担保主债权数额:">
134 135 136 137 138 139 140 141
               <div style="display:flex">
              <el-input v-model="ruleForm.diyaq.bdbzzqse" style="width:500%"></el-input>
                <el-select v-model="ruleForm.diyaq.jedw" :disabled="$route.query.viewtype == '1'">
                  <el-option v-for="item in dictData['A57']" :key="item.dcode" :label="item.dname" :value="item.dcode">
                  </el-option>
                </el-select>
               </div>
            </el-form-item>            
1  
jiaozeping@pashanhoo.com committed
142 143
          </el-col>

144
          <el-col :span="8" v-show="ruleForm.diyaq.dyfs == 2">
145
            <el-form-item label="最高债权额:">
146
              <el-input v-model="ruleForm.diyaq.zgzqse"></el-input>
1  
jiaozeping@pashanhoo.com committed
147 148 149 150
            </el-form-item>
          </el-col>

          <el-col :span="8">
151
            <el-form-item label="债务履行起始时间:">
152 153
              <el-date-picker v-model="ruleForm.diyaq.zwlxqssj" type="date">
              </el-date-picker>
1  
jiaozeping@pashanhoo.com committed
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.zwlxjssj" type="date">
jiaozeping@pashanhoo.com committed
159
              </el-date-picker>
1  
jiaozeping@pashanhoo.com committed
160 161 162 163 164
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
165
            <el-form-item label="担保范围:">
任超 committed
166
              <el-input v-model="ruleForm.diyaq.dbfw"
167
                :disabled="$route.query.viewtype == 1 || ruleForm.slsq.djlx == '300'"></el-input>
1  
jiaozeping@pashanhoo.com committed
168 169 170 171 172
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
173
            <el-form-item label="最高债权确定事实和数额:">
1  
jiaozeping@pashanhoo.com committed
174 175 176 177
              <el-input v-model="ruleForm.diyaq.zgzqqdss"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
178
        <el-row>
1  
jiaozeping@pashanhoo.com committed
179
          <el-col>
180
            <el-form-item label="附记:" prop="fj">
181
              <el-input type="textarea" v-model="ruleForm.diyaq.fj" :disabled="$route.query.viewtype == 1"></el-input>
1  
jiaozeping@pashanhoo.com committed
182 183 184 185
            </el-form-item>
          </el-col>
        </el-row>

1  
jiaozeping@pashanhoo.com committed
186 187 188 189 190 191
        <div class="slxx_title title-block">
          抵押权人信息
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col :span="14">
192
            <el-form-item label="共有方式:">
193
              <el-radio-group :disabled="$route.query.viewtype == 1" v-model="ruleForm.sldy.gyfs">
194
                <el-radio label="0">单独所有</el-radio>
1  
jiaozeping@pashanhoo.com committed
195 196 197
                <el-radio label="1">共同共有</el-radio>
                <el-radio label="2">按份所有</el-radio>
                <el-radio label="3">其它共有</el-radio>
1  
jiaozeping@pashanhoo.com committed
198 199 200
              </el-radio-group>
            </el-form-item>
          </el-col>
201
          <el-col :span="5" v-show="ruleForm.sldy.gyfs == '2'">
202
            <el-form-item label="是否分别持证:">
203
              <el-radio-group v-model="ruleForm.sldy.sqfbcz">
1  
jiaozeping@pashanhoo.com committed
204 205 206 207 208
                <el-radio label="1"></el-radio>
                <el-radio label="0"></el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
209
          <el-col :span="5" v-show="ruleForm.sldy.gyfs == '2'">
210
            <el-form-item label="持证人:">
1  
jiaozeping@pashanhoo.com committed
211
              <el-select v-model="ruleForm.czr" placeholder="持证人">
212
                <el-option v-for="item in czrOptions" :key="item.value" :label="item.label" :value="item.value">
1  
jiaozeping@pashanhoo.com committed
213 214 215 216 217
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
218
        <qlrCommonTable :tableData="ruleForm.qlrList" @upDateQlrxxList="upDateQlrxxList"
219
          :viewtype="$route.query.viewtype" :gyfs="ruleForm.sldy.gyfs" />
1  
jiaozeping@pashanhoo.com committed
220 221 222 223
        <div class="slxx_title title-block">
          抵押人信息
          <div class="triangle"></div>
        </div>
任超 committed
224
        <qlrCommonTable :tableData="ruleForm.ywrList" @upDateQlrxxList="upDateYwrxxList"
225
          :viewtype="$route.query.viewtype" />
1  
jiaozeping@pashanhoo.com committed
226 227 228 229 230 231 232

        <div class="slxx_title title-block">
          登记原因
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col>
233
            <el-form-item v-if="ruleForm.slsq.djlx == '400'" label="注销抵押原因:" prop="djyy">
田浩浩 committed
234 235 236 237
              <el-input class="textArea" type="textarea" :disabled="$route.query.viewtype == 1"
                v-model="ruleForm.diyaq.zxdyyy">
              </el-input>
            </el-form-item>
238
            <el-form-item v-else label="登记原因:" prop="djyy">
239 240
              <el-input class="textArea" type="textarea" :disabled="$route.query.viewtype == 1"
                v-model="ruleForm.diyaq.djyy">
1  
jiaozeping@pashanhoo.com committed
241 242 243 244 245
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>

246
      </div>
247
      <el-row class="btn" v-if="!$route.query.viewtype && ableOperation">
248
        <el-form-item>
1  
jiaozeping@pashanhoo.com committed
249
          <el-button type="primary" @click="onSubmitClick()">保存</el-button>
250 251 252 253 254 255
        </el-form-item>
      </el-row>
    </el-form>
  </div>
</template>
<script>
256 257 258 259 260
  import qlrCommonTable from "@/views/workflow/components/qlrCommonTable";
  import { Init, saveData } from "@/api/workflow/diyaqFlow.js";
  import { mapGetters } from "vuex";
  export default {
    mounted () {
261
      this.ableOperation = this.$parent.currentSelectTab.ableOperation
262 263 264 265 266 267
      this.propsParam = this.$attrs;
      var formdata = new FormData();
      this.$startLoading();
      formdata.append("bsmSldy", this.propsParam.bsmSldy);
      formdata.append("bsmSlsq", this.$route.query.bsmSlsq);
      formdata.append("djlx", this.propsParam.djlx);
268
      formdata.append("isEdit", this.ableOperation);
269 270 271 272 273
      Init(formdata).then((res) => {
        if (res.code === 200 && res.result) {
          this.ruleForm = res.result;
          this.$endLoading();
          this.ruleForm.diyaq.sfczjzhxz = "0";
274
        }
275
      })
276
    },
277 278 279 280 281 282
    components: { qlrCommonTable },
    computed: {
      ...mapGetters(["dictData", "flag"]),
    },
    data () {
      return {
283 284
        //表单是否可操作
        ableOperation: true,
285 286 287
        disabled: true,
        czrOptions: [],
        ruleForm: {
288 289
          slsq: {},
          ssQlxx: {},
290 291 292 293 294 295 296
          diyaq: {},
          gyfs: "",
        },
        //传递参数
        propsParam: {},
        rules: {},
      };
1  
jiaozeping@pashanhoo.com committed
297
    },
298 299 300 301 302 303 304 305 306
    methods: {
      onSubmitClick () {
        saveData(this.ruleForm, this.propsParam.djlx).then((res) => {
          if (res.code === 200) {
            this.$message({
              showClose: true,
              message: "保存成功!",
              type: "success",
            });
307
            this.$store.dispatch('user/refreshPage', true);
308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328
          } else {
            this.$message({
              showClose: true,
              message: res.message,
              type: "error",
            });
          }
        });
      },

      // 更新权利人信息
      upDateQlrxxList (val) {
        if (!_.isEqual(val, this.ruleForm.qlrList)) {
          this.ruleForm.qlrList = _.cloneDeep(val);
        }
      },
      // 更新义务人信息
      upDateYwrxxList (val) {
        if (!_.isEqual(val, this.ruleForm.ywrList)) {
          this.ruleForm.ywrList = _.cloneDeep(val);
        }
任超 committed
329 330
      }
    }
331
  };
332 333
</script>
<style scoped lang='scss'>
334 335
  @import "~@/styles/public.scss";
  @import "~@/styles/slxx/slxx.scss";
336
</style>