
<template>
  <el-card style="margin-top: 16px">
    <el-form
      ref="elForm"
      :disabled="true"
      :model="formData"
      size="mini"
      label-width="180px"
    >
      <div class="tit">
        买卖房屋
        <span class="time">更新于:{{ update_time }}</span>
      </div>

      <el-row>
        <el-col :span="8">
          <el-form-item label="地点" prop="place">
            <el-input
              v-model="datas.place"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="房型" prop="house_type">
            <el-input
              v-model="datas.house_type"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="几房" prop="rooms">
            <el-input
              v-model="datas.rooms"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="面积(m²)" prop="house_area">
            <el-input
              v-model="datas.house_area"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="朝向" prop="orientation">
            <el-input
              v-model="datas.orientation"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="楼层" prop="floor">
            <el-input
              v-model="datas.floor"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="装修类型" prop="fitment">
            <el-radio-group v-model="datas.fitment" size="medium">
              <el-radio label="1">精装</el-radio>
              <el-radio label="0">清水</el-radio>
            </el-radio-group>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="预算" prop="budget">
            <el-input
              v-model="datas.budget"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="付款类型" prop="payment_type">
            <el-radio-group v-model="datas.payment_type" size="medium">
              <el-radio label="1">按揭</el-radio>
              <el-radio label="0">全款</el-radio>
            </el-radio-group>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </el-card>
</template>

<script setup lang='ts'>
const storeTypeList = ref([
  "超市",
  "生鲜",
  "饭店",
  "五金",
  "杂货",
  "服装",
  "文具",
  "其他",
]);

const props = defineProps({
  datas: {
    type: Object,
    defualt: function () {
      return {
        place: "",
        house_type: "",
        rooms: "",
        house_area: "",
        orientation: "",
        floor: "",
        fitment: "",
        budget: "",
        payment_type: "",
      };
    },
  },
  update_time: {
    type: String,
    defualt: "",
  },
});
</script>

<style scoped lang='scss'>
.tit {
  font-size: 1.2rem;
  translate: 1vw -1vw;
  background-color: white;
  margin: 2vh 0 0 0;
  .time {
    display: inline-block;
    font-size: 0.8rem;
    margin-left: 1vw;
    color: #999;
  }
}
</style>
