djfDjDb.vue 4.99 KB
<!--
 * @Description  :登簿信息表单
 * @Autor        : miaofang
 * @LastEditTime : 2023-05-17 11:02:40
-->
<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"></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" ></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" ></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">
            </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"
              ></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"></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">
              <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 djfDjSqr from "@/api/djfDjSqr";
import djfDjDb from "@/api/djfDjDb"
import ruleMixin from "@/mixins/ruleMixin.js";
import treeSelect from '@/components/TreeSelect.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: {
    /**
     * @description: featchData
     * @author: renchao
     */
    async featchData() {
      try {
        let { result: res } = await djfDjDb.getDjfDjDbById(this.bsmSjsb);
        this.ruleForm = res;
        //this.featchRule()
      } catch (error) {
        this.$refs.msg.messageShow();
      }
    },
    /**
     * @description: handleUpdateForm
     * @author: renchao
     */
    handleUpdateForm() {
      return new Promise(async (resolve, reject) => {
        try {
          let data = _.cloneDeep(this.ruleForm);
          let res = await djfDjSqr.updateDjfDjSqr(data);
          resolve(res.code);
        } catch (error) {
          this.$refs.msg.messageShow();
        }
      });
    },
  },
};
</script>
<style scoped lang="scss">
@import "./css/itemForm.scss";
</style>