djbeditDialog.vue 7.16 KB
<template>
  <div class="jtfccx-edit">
    <div class="jtfccx-edit-con">
      <el-form ref="form"  :model="form" label-width="160px">
        <el-row>
          <el-col :span="8">
            <el-form-item label="权属状态" label-width="140px">
              <el-select v-model="form.qszt">
                <el-option v-for="item in qsztList" :key="item.value" :label="item.label" :value="item.value">
              </el-option>
            </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="权利类型" label-width="140px">
              <el-input v-model="form.qllxmc" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="登记类型" label-width="140px">
              <el-input v-model="form.djlxmc" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="上手业务号" label-width="140px">
              <el-input v-model="form.ssywh" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="档案号" label-width="140px">
              <el-input v-model="form.dah" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="业务号" label-width="140px">
              <el-input v-model="form.ywh" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="不动产单元号" label-width="140px">
              <el-input v-model="form.bdcdyh" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="坐落" label-width="140px">
              <el-input v-model="form.zl" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="共有情况" label-width="140px">
              <el-input v-model="form.gyqk" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="权利人类型" label-width="140px">
              <el-input v-model="form.qlrlx" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="权利人" label-width="140px">
              <el-input v-model="form.qlrmc" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="证件种类" label-width="140px">
              <el-input v-model="form.qlrzjzl" ></el-input>
            </el-form-item>
          </el-col>
            <el-col :span="8">
            <el-form-item label="证件号" label-width="140px">
              <el-input v-model="form.qlrzjhm" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="使用权面积" label-width="140px">
              <el-input v-model="form.mj" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="权利性质" label-width="140px">
              <el-input v-model="form.qlxzmc" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="土地用途" label-width="140px">
              <el-input v-model="form.ytmc" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="使用权起止时间" label-width="140px">
              <el-input v-model="form.syqqzsj" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="土地使用期限" label-width="140px">
              <el-input v-model="form.tdsyqx" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="取得价格(万元)" label-width="140px">
              <el-input v-model="form.qdjg" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="登记原因" label-width="140px">
              <el-input v-model="form.djyy" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="不动产权证号" label-width="140px">
              <el-input v-model="form.bdcqzh" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="登记时间" label-width="140px">
              <el-input v-model="form.djsj" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="登簿人" label-width="140px">
              <el-input v-model="form.dbr" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="附记" label-width="140px">
              <el-input v-model="form.fj" ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
            <el-form-item class="btn">
      <el-button type="primary" @click="submitForm">保存</el-button>
      <el-button @click="closeDialog">取消</el-button>
    </el-form-item>
      </el-form>

    </div>

  </div>
</template>
<script>
export default {
  props: {
    formData: {
      type: Object,
      default: () => { },
    },
  },
  data () {
    return {
      form:{},
     qsztList: [
        {
          value: "0",
          label: "临时",
        },
        {
          value: "1",
          label: "现势",
        },
        {
          value: "2",
          label: "历史",
        },

        ],
       label:"",
    };
  },
  mounted () {
    console.log("this.formData.data",this.formData.data);
   if (this.formData.data) {
          this.$nextTick(() => {
            this.form = Object.assign({}, this.formData.data)
            this.form.qszt=this.form.qszt=='0'?"临时":this.form.qszt=='1'?"现势":"历史"
          })
          console.log("this.form",this.form);
        }
  },

  methods: {
       //新增常用意见
      submitForm () {

        this.$refs.form.validate(valid => {
          if (valid) {
             console.log("from",this.form);
            // addUserCommonOpinion({ commonOpinion: this.form.commonOpinion }).then(res => {
            //   if (res.code == 200) {
            //     this.$message.success("新增成功")
            //     this.closeaddDiglog();
            //     this.getList()
            //   } else {
            //     this.$message.error(res.message)
            //   }
            // })
          } else {
            return false;
          }
        });
      },
      closeDialog () {
        console.log("this.$refs['form']",this.$refs['form']);
      this.$popupCacel()
      this.$refs['form'].resetFields();
      // this.resetTableFields();
    }
  },
};
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
@import "~@/styles/public.scss";


.jtfccx-edit {
  @include flex;
  flex-direction: column;
  overflow-y: hidden;
  max-height: 85vh;
  padding: 0 2px;


 .btn{
   text-align: center;

 }
}
</style>