slxx.vue 6.27 KB
<template>
  <!-- 受理信息 -->
  <div class="slxx">
    <el-form
      :model="ruleForm"
      :rules="rules"
      ref="ruleForm"
      :label-position="flag ? 'top' : ''"
      :inline="flag"
      label-width="120px"
    >
      <div class="slxx_con">
        <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.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">
            <el-form-item
              :class="flag ? 'marginBot0' : ''"
              label="权利类型:"
              prop="qllx"
            >
              <el-input disabled v-model="ruleForm.slywxx.qllxmc"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item
              :class="flag ? 'marginBot0' : ''"
              label="登记类型:"
              prop="djlx"
            >
              <el-input disabled v-model="ruleForm.slywxx.djlxmc"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item
              :class="flag ? 'marginBot0' : ''"
              label="登记情形:"
              prop="djqx"
            >
              <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="权利人:"
              prop="qlxx.qlrmc"
            >
              <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">
            <el-form-item
              :class="flag ? 'marginBot0' : ''"
              label="不动产权证号:"
              prop="qlxx.bdcqzh"
            >
              <el-input disabled v-model="ruleForm.slywxx.ybdcqzsh"></el-input>
            </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">
            <el-form-item
              :class="flag ? 'marginBot0' : ''"
              label="不动产单元号:"
              prop="qlxx.bdcdyh"
            >
              <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>
      <el-row class="btn" v-if="!$route.query.viewtype">
        <el-form-item :class="flag ? 'marginBot0' : ''">
          <el-button type="primary" @click="onSubmit">保存</el-button>
        </el-form-item>
      </el-row>
    </el-form>
  </div>
</template>
<script>
import InformationTable from "@/views/workflow/components/InformationTable";
import { Init } from "@/api/diyaqFlow.js";
import { mapGetters } from "vuex";
export default {
  async created() {
    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;
      }
    });
  },
  components: { InformationTable },
  computed: {
    ...mapGetters(["dictData", "flag"]),
  },
  data() {
    return {
      disabled: true,
      ruleForm: {
        slywxx: {},
        qlxxold:{},
      },
      //传递参数
      propsParam: {},
      rules: {},
    };
  },
  methods: {
    list(bsmSldy) {
      Init({
        bsmSldy: bsmSldy.split(","),
      }).then((res) => {
        if (res.code === 200 && res.result) {
          this.ruleForm = {
            ...res.result,
            ...res.result.zdjbxxdatas,
            ...res.result.qlxxdatas,
            ...res.result.jsydsyqdatas,
          };
        }
      });
    },
    onSubmit() {
      fristReg(this.ruleForm).then((res) => {
        if (res.code === 200 && res.result) {
          console.log(res);
          //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas }
        }
      });
    },
  },
};
</script>
<style scoped lang='scss'>
@import "~@/styles/public.scss";
@import "~@/styles/slxx/slxx.scss";
</style>