StoreInfo.vue 2.03 KB
<template>
  <div class="store-components gl-form-page">
    <div class="title">门店信息</div>
      <template>
        <div class="content">
          <div class="detail">
            <div class="label">业务场景:</div>
            <div class="value">{{ sceneList[storeInfo.sceneType] || '-' }}</div>
          </div>
          <div class="detail">
            <div class="label">上架门店:</div>
            <div class="value">
              <GLTable ref="mutiProRef" :tableData="storeInfo.merchantGoodsRefList" :hasPage="false" :tableParams="tableParams">
              </GLTable>
            </div>
          </div>
        </div>
      </template>
  </div>
</template>

<script>
export default {
  name: 'StoreInfo',
  props: {
    storeInfo: Object
  },
  data() {
    return {
      tableParams: {
        listName: 'list',
        tableColumns: [
          {
            label: '门店名称',
            prop: 'merchantName',
            formatter: cellValue => {
              return cellValue.merchantName || '-'
            }
          },
          {
            label: '门店商户号',
            prop: 'merchantId',
            formatter: cellValue => {
              return cellValue.merchantId || '-'
            }
          }
        ]
      },
      sceneList: {
        1: "精品升级",
        2: "次新车转化",
        3: "售后众筹",
        0: "会员权益/升级",
        4: "积分商城"
      }
    }
  },
  created() {
    
  },
  methods: {
    
  }
}
</script>
<style lang="scss" scoped>
.store-components{
  margin-top: 10px;
  background: white;
  .title {
    padding: 0 20px;
    font-size: 16px;
    font-weight: bold;
    height: 58px;
    line-height: 58px;
    border-bottom: 1px solid #d8d8d8;
    margin: 0 0;
    color: #333;
  }
  .content {
    padding: 32px 0 12px;
    font-size: 14px;
    .detail {
      display: flex;
      margin-bottom: 20px;
      .label {
        width: 154px;
        text-align: right;
        color: #666666;
      }
      .value{
        flex: 0 0 50%;
      }
    }
  }
}
</style>