
<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="maintenance_contents">
            <el-input
              v-model="datas.maintenance_contents"
              clearable
              type="textarea"
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="维护类型" prop="maintenance_type">
            <el-radio-group v-model="datas.maintenance_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 props = defineProps({
  datas: {
    type: Object,
    defualt: function () {
      return {
        maintenance_contents: "",
        maintenance_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>
