
<template>
  <el-card style="margin-top: 16px">
    <el-form
      ref="elForm"
      :disabled="true"
      :model="formData"
      size="mini"
      label-width="100px"
    >
      <div class="tit">
        开设店铺
        <span class="time">更新于:{{ update_time }}</span>
      </div>

      <el-row>
        <el-col :span="6">
          <el-form-item label="有无门面" prop="shop_front">
            <el-radio-group v-model="datas.shop_front" 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="6">
          <el-form-item label="门面面积" prop="area">
            <el-input
              v-model="datas.area"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <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="6">
          <el-form-item label="经营类型" prop="type">
            <el-input
              v-model="datas.type"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="门面环境" prop="environment">
            <el-input
              v-model="datas.environment"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="服务对象" prop="service">
            <el-input
              v-model="datas.service"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item
            label="有无营业资质"
            label-width="120px"
            prop="qualification"
          >
            <el-radio-group v-model="datas.qualification" 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="6">
          <el-form-item label="有无进货渠道" label-width="120px" prop="stock">
            <el-radio-group v-model="datas.stock" 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="6">
          <el-form-item label="店铺规模" prop="scale">
            <el-input
              v-model="datas.scale"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="商品来源" prop="online_display">
            <el-input
              v-model="datas.online_display"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="有无线上展示" label-width="120px" prop="brand">
            <el-radio-group v-model="datas.brand" 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="6">
          <el-form-item label="有无品牌" label-width="120px" prop="field134">
            <el-radio-group v-model="datas.brand" 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="6">
          <el-form-item label="库存情况" prop="repertory">
            <el-input
              v-model="datas.repertory"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="经营诉求" prop="appeal">
            <el-input
              v-model="datas.appeal"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </el-card>
</template>

<script setup lang='ts'>
import { ref, defineProps } from "vue";

const props = defineProps({
  datas: {
    type: Object,
    defualt: function () {
      return {
        appeal: "",
        aea: "",
        brand: "",
        environment: "",
        online_display: "",
        place: "",
        qualification: "",
        repertory: "",
        scale: "",
        service: "",
        shop_front: "",
        source: "",
        stock: "",
        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>
