Blame view

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

        <el-row :gutter="10">
          <el-col :span="8">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="权利人:">
              <el-input disabled v-model="ruleForm.qlxxold.qlrmc"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="证件号:">
              <el-input disabled v-model="ruleForm.qlxxold.qlrzjhm"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="证件种类:">
              <el-input disabled v-model="ruleForm.qlxxold.qlrzjzl"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
69
            <el-form-item :class="flag ? 'marginBot0' : ''" label="不动产权证号:">
田浩浩 committed
70
              <el-input disabled v-model="ruleForm.qlxxold.bdcqzh"></el-input>
jiaozeping@pashanhoo.com committed
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
            </el-form-item>
          </el-col>
          <el-col :span="16">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="坐落:">
              <el-input disabled v-model="ruleForm.qlxxold.zl"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="用途:">
              <el-input disabled v-model="ruleForm.qlxxold.ytmc"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
86
            <el-form-item :class="flag ? 'marginBot0' : ''" label="不动产单元号:">
jiaozeping@pashanhoo.com committed
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
              <el-input disabled v-model="ruleForm.qlxxold.bdcdyh"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="面积:">
              <el-input disabled v-model="ruleForm.qlxxold.mj"></el-input>
            </el-form-item>
          </el-col>
        </el-row>

        <div class="slxx_title title-block">
          抵押信息
          <div class="triangle"></div>
        </div>

        <el-row :gutter="10">
          <el-col :span="8">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="抵押方式:">
              <!-- <el-input disabled v-model="ruleForm.slywxx.djqxmc"></el-input> -->
              <el-radio-group disabled v-model="ruleForm.diyaq.dyfs">
107 108 109
                <el-radio label="1">一般抵押</el-radio>
                <el-radio label="2">最高额抵押</el-radio>
              </el-radio-group>
jiaozeping@pashanhoo.com committed
110 111 112
            </el-form-item>
          </el-col>
          <el-col :span="16">
113
            <el-form-item :class="flag ? 'marginBot0' : ''" label="是否存在禁止或者限制转让抵押不动产的约定:" label-width="350px">
jiaozeping@pashanhoo.com committed
114 115 116 117 118 119 120 121 122
              <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>

        <el-row :gutter="10">
123 124 125
          <el-col :span="8" v-show="ruleForm.diyaq.dyfs == 1">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="被担保主债权数额:">
              <el-input v-model="ruleForm.diyaq.bdbzzqse"></el-input>
jiaozeping@pashanhoo.com committed
126 127 128
            </el-form-item>
          </el-col>

129 130 131
          <el-col :span="8" v-show="ruleForm.diyaq.dyfs == 2">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="最高债权额:">
              <el-input v-model="ruleForm.diyaq.zgzqse"></el-input>
jiaozeping@pashanhoo.com committed
132 133 134 135
            </el-form-item>
          </el-col>

          <el-col :span="8">
136 137 138
            <el-form-item :class="flag ? 'marginBot0' : ''" label="债务履行起始时间:">
              <el-date-picker v-model="ruleForm.diyaq.zwlxqssj" type="date">
              </el-date-picker>
jiaozeping@pashanhoo.com committed
139 140 141
            </el-form-item>
          </el-col>
          <el-col :span="8">
142 143
            <el-form-item :class="flag ? 'marginBot0' : ''" label="债务履行结束时间:">
              <el-date-picker v-model="ruleForm.diyaq.zwlxjssj" type="date">
jiaozeping@pashanhoo.com committed
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
              </el-date-picker>
            </el-form-item>
          </el-col>
        </el-row>


        <el-row>
          <el-col :span="24">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="担保范围:">
              <el-input v-model="ruleForm.diyaq.dbfw"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="最高债权确定事实和数额:" label-width="200px">
              <el-input v-model="ruleForm.diyaq.zgzqqdss"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
164
        <el-row>
jiaozeping@pashanhoo.com committed
165 166
          <el-col>
            <el-form-item :class="flag ? 'marginBot0' : ''" label="附记:" prop="fj">
167
              <el-input type="textarea" v-model="ruleForm.diyaq.fj" :disabled="$route.query.viewtype == 1"></el-input>
jiaozeping@pashanhoo.com committed
168 169 170 171 172 173 174 175 176 177 178
            </el-form-item>
          </el-col>
        </el-row>

        <div class="slxx_title title-block">
          抵押权人信息
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col :span="14">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="共有方式:">
179 180
              <el-radio-group :disabled="$route.query.viewtype == 1" v-model="ruleForm.slywxx.gyfs">
                <el-radio label="0">单独所有</el-radio>
jiaozeping@pashanhoo.com committed
181 182 183 184 185 186 187
                <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>
          <el-col :span="5" v-show="ruleForm.gyfs == '2'">
188
            <el-form-item :class="flag ? 'marginBot0' : ''" label="是否分别持证:">
jiaozeping@pashanhoo.com committed
189 190 191 192 193 194 195 196 197
              <el-radio-group v-model="ruleForm.slywxx.sffbcz">
                <el-radio label="1"></el-radio>
                <el-radio label="0"></el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
          <el-col :span="5" v-show="ruleForm.gyfs == '2'">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="持证人:">
              <el-select v-model="ruleForm.czr" placeholder="持证人">
198
                <el-option v-for="item in czrOptions" :key="item.value" :label="item.label" :value="item.value">
jiaozeping@pashanhoo.com committed
199 200 201 202 203
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
204
        <qlrCommonTable :tableData="ruleForm.qlrList" @upDateQlrxxList="upDateQlrxxList"
205
          :viewtype="$route.query.viewtype" :gyfs="ruleForm.slywxx.gyfs" />
jiaozeping@pashanhoo.com committed
206 207 208 209
        <div class="slxx_title title-block">
          抵押人信息
          <div class="triangle"></div>
        </div>
210
        <qlrCommonTable :tableData="ruleForm.ywrList" @upDateQlrxxList="upDateYwrxxList"
211
          :viewtype="$route.query.viewtype" />
jiaozeping@pashanhoo.com committed
212 213 214 215 216 217 218

        <div class="slxx_title title-block">
          登记原因
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col>
219 220 221 222 223 224 225
            <el-form-item v-if="ruleForm.slywxx.djlx == '400'" :class="flag ? 'marginBot0' : ''" label="注销抵押原因:"
              prop="djyy">
              <el-input class="textArea" type="textarea" :disabled="$route.query.viewtype == 1"
                v-model="ruleForm.diyaq.zxdyyy">
              </el-input>
            </el-form-item>
            <el-form-item v-else :class="flag ? 'marginBot0' : ''" label="登记原因:" prop="djyy">
226 227
              <el-input class="textArea" type="textarea" :disabled="$route.query.viewtype == 1"
                v-model="ruleForm.diyaq.djyy">
jiaozeping@pashanhoo.com committed
228 229 230 231 232 233 234 235 236 237 238 239 240 241 242
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>

      </div>
      <el-row class="btn" v-if="!$route.query.viewtype">
        <el-form-item :class="flag ? 'marginBot0' : ''">
          <el-button type="primary" @click="onSubmitClick()">保存</el-button>
        </el-form-item>
      </el-row>
    </el-form>
  </div>
</template>
<script>
243
import qlrCommonTable from "@/views/workflow/components/qlrCommonTable";
244
import { Init, saveData } from "@/api/workflow/diyaqFlow.js";
jiaozeping@pashanhoo.com committed
245 246
import { mapGetters } from "vuex";
export default {
247
  async created () {
jiaozeping@pashanhoo.com committed
248 249 250 251 252 253 254 255
    this.propsParam = this.$attrs;
    var formdata = new FormData();
    formdata.append("bsmSldy", this.propsParam.bsmSldy);
    formdata.append("bsmSlsq", this.$route.query.bsmSlsq);
    formdata.append("djlx", this.propsParam.djlx);
    Init(formdata).then((res) => {
      if (res.code === 200 && res.result) {
        this.ruleForm = res.result;
256
        this.ruleForm.diyaq.sfczjzhxz = "0";
jiaozeping@pashanhoo.com committed
257 258 259
      }
    });
  },
260
  components: { qlrCommonTable },
jiaozeping@pashanhoo.com committed
261 262 263
  computed: {
    ...mapGetters(["dictData", "flag"]),
  },
264
  data () {
jiaozeping@pashanhoo.com committed
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279
    return {
      disabled: true,
      czrOptions: [],
      ruleForm: {
        slywxx: {},
        qlxxold: {},
        diyaq: {},
        gyfs: "",
      },
      //传递参数
      propsParam: {},
      rules: {},
    };
  },
  methods: {
280
    onSubmitClick () {
281
      saveData(this.ruleForm,this.propsParam.djlx).then((res) => {
jiaozeping@pashanhoo.com committed
282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297
        if (res.code === 200) {
          this.$message({
            showClose: true,
            message: "保存成功!",
            type: "success",
          });
        } else {
          this.$message({
            showClose: true,
            message: res.message,
            type: "error",
          });
        }
      });
    },
    // 更新权利人信息
298
    upDateQlrxxList (val) {
jiaozeping@pashanhoo.com committed
299 300 301
      this.ruleForm.qlrList = _.cloneDeep(val);
    },
    // 更新义务人信息
302
    upDateYwrxxList (val) {
jiaozeping@pashanhoo.com committed
303
      this.ruleForm.ywrList = _.cloneDeep(val);
304 305 306
    }
  }
}
jiaozeping@pashanhoo.com committed
307 308 309 310 311
</script>
<style scoped lang='scss'>
@import "~@/styles/public.scss";
@import "~@/styles/slxx/slxx.scss";
</style>