ktfZdbhqk.vue 3.87 KB
<template>
  <div class="parcelChange itemForm">
    <el-form :model="ruleForm" :rules="rules" ref="formList" label-width="100px" :key="key">
      <el-row>
        <el-col :span="8">
          <el-form-item prop="ZDDM">
            <span slot="label">
              宗地代码: <br />
              <p class="label-detail">(ZDDM)</p>
            </span>
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.zddm"></el-input>
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item prop="BHYY">
            <span slot="label">
              变化原因: <br />
              <p class="label-detail">(BHYY)</p>
            </span>
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.bhyy"></el-input>
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item prop="BHNR">
            <span slot="label">
              变化内容: <br />
              <p class="label-detail">(BHNR)</p>
            </span>
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.bhnr"></el-input>
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="8">
          <el-form-item prop="DJSJ">
            <span slot="label">
              登记时间: <br />
              <p class="label-detail">(DJSJ)</p>
            </span>
            <el-date-picker :disabled="$store.state.business.Edit" type="datetime" clearable v-model="ruleForm.djsj"
              value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
          </el-form-item>
        </el-col>

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

        <el-col :span="8">
          <el-form-item prop="FJ">
            <span slot="label">
              附记: <br />
              <p class="label-detail">(FJ)</p>
            </span>
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.fj"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="8">
          <el-form-item prop="QXDM">
            <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-form>
    <message-tips ref="msg" />
  </div>
</template>
<script>
// 宗地变化情况
import ktfZdbhqk from "@/api/ktfZdbhqk";
import ruleMixin from "@/mixins/ruleMixin.js";
export default {
  mixins: [ruleMixin],
  props: {
    bsmSjsb: {
      type: String,
      default: "",
    },
    bsmYwsjb: {
      type: String,
      default: "",
    },
  },
  data() {
    return {
      ruleForm: {
        ZDDM: "",
        BHYY: "",
        BHNR: "",
        DJSJ: "",
        DBR: "",
        FJ: "",
        QXDM: "",
      },
    };
  },
  methods: {
    async featchData() {
      try {
        let { result: res } = await ktfZdbhqk.getKtfZdbhqkById(this.bsmSjsb);
        this.ruleForm = res;
        //this.featchRule()
      } catch (error) {
        this.$refs.msg.messageShow();
      }
    },
    handleUpdateForm() {
      return new Promise(async (resolve) => {
        try {
          let res = await ktfZdbhqk.updateKtfZdbhqk(this.ruleForm);
          // this.$refs['formList'].resetFields();
          resolve(res.code);
        } catch (error) {
          this.$refs.msg.messageShow();
        }
      });
    },
  },
};
</script>
<style scoped lang="scss">
@import "./css/itemForm.scss";
</style>