qlfFwFdcqQfsyq.vue 7.72 KB
<template>
  <div class="mainCommonPart 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">
            <span slot="label">
              要素代码:<br />
              <p class="label-detail">(YSDM)</p>
            </span>
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.YSDM" maxlength="10"></el-input>
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item prop="BDCDYH">
            <span slot="label">
              不动产单元号: <br />
              <p class="label-detail">(BDCDYH)</p>
            </span>
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.BDCDYH" maxlength="28"></el-input>
          </el-form-item>
        </el-col>

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

      <el-row>
        <el-col :span="8">
          <el-form-item prop="QLLX">
            <span slot="label">
              权利类型 <br />
              <p class="label-detail">(QLLX)</p>
            </span>
            <el-select :disabled="$store.state.business.Edit" v-model="ruleForm.QLLX">
              <el-option v-for="item in dicData['A8']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item prop="JGZWBH">
            <span slot="label">
              建(构)筑物编号: <br />
              <p class="label-detail">(JGZWBH)</p>
            </span>
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.JGZWBH"></el-input>
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item prop="JGZWMC">
            <span slot="label">
              建(构)筑物名称: <br />
              <p class="label-detail">(JGZWMC)</p>
            </span>
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.JGZWMC"></el-input>
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="8">
          <el-form-item prop="JGZWSL" :rules="{ type: 'number' }">
            <span slot="label">
              建(构)筑物数量: <br />
              <p class="label-detail">(JGZWSL)</p>
            </span>
            <el-input :disabled="$store.state.business.Edit" title="" type="number"
              v-only-number="{ max: 999999, min: 0, precision: 0 }" v-model.number="ruleForm.JGZWSL"></el-input>
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item prop="JGZWMJ" :rules="{ type: 'number' }">
            <span slot="label">
              建(构)筑物面积 <br />
              <p class="label-detail">(JGZWMJ)</p>
            </span>
            <el-input :disabled="$store.state.business.Edit" title="" type="number"
              v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" v-model.number="ruleForm.JGZWMJ">
            </el-input>
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item prop="FTTDMJ" :rules="{ type: 'number' }">
            <span slot="label">
              分摊土地面积: <br />
              <p class="label-detail">(FTTDMJ)</p>
            </span>
            <el-input :disabled="$store.state.business.Edit" title="" type="number"
              v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" v-model.number="ruleForm.FTTDMJ">
            </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-col :span="8">
          <el-form-item prop="DJJG">
            <span slot="label">
              登记机构: <br />
              <p class="label-detail">(DJJG)</p>
            </span>
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.DJJG"></el-input>
          </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-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" clearable v-model="ruleForm.DJSJ"
              value-format="yyyy-MM-dd">
            </el-date-picker>
          </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-col :span="8">
          <el-form-item prop="QSZT">
            <span slot="label">
              权属状态: <br />
              <p class="label-detail">(QSZT)</p>
            </span>
            <el-select :disabled="$store.state.business.Edit" v-model="ruleForm.QSZT">
              <el-option v-for="item in dicData['A22']" :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 qlfFwFdcqQfsyq from "@/api/qlfFwFdcqQfsyq";
import ruleMixin from "@/mixins/ruleMixin.js";
export default {
  mixins: [ruleMixin],
  props: {
    bsmSjsb: {
      type: String,
      default: "",
    },
    bsmYwsjb: {
      type: String,
      default: "",
    },
  },
  data() {
    return {
      ruleForm: {
        YSDM: "",
        BDCDYH: "",
        YWH: "",
        QLLX: "",
        JGZWBH: "",
        JGZWMC: "",
        JGZWSL: "",
        JGZWMJ: "",
        FTTDMJ: "",
        QXDM: "",
        DJJG: "",
        DBR: "",
        DJSJ: "",
        FJ: "",
        QSZT: "",
      },
    };
  },
  methods: {
    async featchData() {
      try {
        let { result: res } = await qlfFwFdcqQfsyq.getQlfFwFdcqQfsyqById(
          this.bsmSjsb
        );
        this.ruleForm = res;
        //this.featchRule()
      } catch (error) {
        this.$refs.msg.messageShow();
      }
    },
    handleUpdateForm() {
      return new Promise(async (resolve, reject) => {
        try {
          let res = await qlfFwFdcqQfsyq.updateQlfFwFdcqQfsyq(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>