<template>
  <div class="ZGattributeDetail">
    <van-field
      readonly
      v-model="storeArchives.estimateSalesYearTarget"
      label="年预估销额目标/千元:" />
    <van-field readonly v-model="storeArchives.zgwqWorkerNum" label="旗下质感外墙工人数量:" />
    <van-field readonly v-model="storeArchives.projectYearNum" label="年承接项目数量:" />
    <van-field
      readonly
      autosize
      type="textarea"
      rows="2"
      v-model="storeArchives.operateCompetitor"
      label="是否经营竞品:" />
    <van-field
      v-if="storeArchives.operateCompetitor == '是'"
      readonly
      autosize
      rows="2"
      type="textarea"
      v-model="storeArchives.mainCompetitorBrand"
      label="主营竞品品牌:" />
    <van-field
      v-if="storeArchives.operateCompetitor == '是'"
      readonly
      v-model="storeArchives.mainCompetitorSalesYear"
      label="主营竞品年销售额/千元:" />
  </div>
</template>
<script>
import { getServiceProviderArchives } from '@/api/index';
export default {
  props: {
    storeArchives: {
      type: Object,
    },
  },
  data() {
    return {
      // storeArchives: {},
    };
  },
  created() {
    // this.getDetail();
  },
  methods: {
    // getDetail() {
    //   getServiceProviderArchives({ storeCode: this.storeCode }).then((res) => {
    //     if (res.code == 200) {
    //       this.storeArchives = res.data;
    //     } else {
    //       this.$toast.fail(res.msg);
    //     }
    //   });
    // },
  },
};
</script>
<style lang="scss">
.ZGattributeDetail {
  // padding: 0 16px;
  background: #fff;
  .van-cell {
    // padding: 10px 0;
    // border-bottom: 1px solid #ccc;
  }
  .van-field__label {
    width: 10em;
  }
}
</style>
