djfDjDb.vue 4.88 KB
<template>
  <div class="applicantInfo itemForm">
    <el-form :model="ruleForm" :rules="rules" ref="formList" label-width="115px" :key="key">
      <el-row>
        <el-col :span="8">
          <el-form-item prop="YSDM" class="borderTopNone">
            <span slot="label">
              要素代码:<br />
              <p class="label-detail">(YSDM)</p>
            </span>
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.ysdm" placeholder="要素代码"></el-input>
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item prop="YWH" class="borderTopNone">
            <span slot="label">
              业务号: <br />
              <p class="label-detail">(YWH)</p>
            </span>
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.ywh" placeholder="业务号"></el-input>
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item prop="QXDM" class="borderTopNone">
            <span slot="label">
              区县代码: <br />
              <p class="label-detail">(QXDM)</p>
            </span>
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.qxdm" placeholder="区县代码"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item prop="DBYJ">
            <span slot="label">
              登簿意见: <br />
              <p class="label-detail">(DBYJ)</p>
            </span>
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.dbyj" maxlength="11" placeholder="登簿意见">
            </el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="8">
          <el-form-item prop="DBRYXM">
            <span slot="label">
              登簿人员姓名: <br />
              <p class="label-detail">(DBRYXM)</p>
            </span>
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.dbryxm" maxlength="11"
              placeholder="登簿意见"></el-input>
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item prop="DBSJ">
            <span slot="label">
              登簿时间: <br />
              <p class="label-detail">(DBSJ)</p>
            </span>
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.dbsj" placeholder="登簿时间"></el-input>
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item prop="CZJG">
            <span slot="label">
              操作结果: <br />
              <p class="label-detail">(CZJG)</p>
            </span>
            <!-- <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.czjg" placeholder="权利人通讯地址">
            </el-input> -->
             <el-select :disabled="$store.state.business.Edit" v-model="ruleForm.czjg" placeholder="请选择">
              <el-option v-for="item in dicData['A37']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <message-tips ref="msg" />
  </div>
</template>
<script>
// 申请人属性信息
import business from "@/api/business";
import ruleMixin from "@/mixins/ruleMixin.js";
import treeSelect from "@/components/treeSelect/index.vue";
export default {
  mixins: [ruleMixin],
  props: {
    bsmSjsb: {
      type: String,
      default: "",
    },
    bsmYwsjb: {
      type: String,
      default: "",
    },
  },
  components: {
    treeSelect,
  },
  data() {
    return {
      ruleForm: {
        YSDM: "",
        YWH: "",
        QLRMC: "",
        QLRZJZL: "",
        QLRZJH: "",
        QLRTXDZ: "",
        QLRYB: "",
        QLRFRMC: "",
        QLRFRDH: "",
        QLRDLRMC: "",
        QLRDLRDH: "",
        QLRDLJG: "",
        HJSZSS: "",
        XB: "",
        DH: "",
        YWRMC: "",
        YWRZJZL: "",
        YWRZJH: "",
        YWRTXDZ: "",
        YWRYB: "",
        YWRFRMC: "",
        YWRFRDH: "",
        YWRDLRMC: "",
        YWRDLJG: "",
        BZ: "",
        QXDM: "",
      },
    };
  },
  methods: {
    async featchData() {
      try {
        let { result: res } = await business.getDjfDjDbById(this.bsmSjsb);
        this.ruleForm = res;
        //this.featchRule()
      } catch (error) {
        this.$refs.msg.messageShow();
      }
    },
    handleUpdateForm() {
      return new Promise(async (resolve, reject) => {
        try {
          let data = _.cloneDeep(this.ruleForm);
          let res = await business.updateDjfDjSqr(data);
          resolve(res.code);
        } catch (error) {
          this.$refs.msg.messageShow();
        }
      });
    },
  },
};
</script>
<style scoped lang="scss">
@import "./css/itemForm.scss";
</style>