<template>
  <div class="sales">
    <div class="diy-table-1">
      <el-row>
        <el-col :span="8" class="item">
          <div class="label">销售订单号</div>
          <div class="value" style="padding: 0">
            <el-input disabled v-model="details.customerOrderNo" placeholder="引用销售单"></el-input>
          </div>
        </el-col>
        <el-col :span="16" class="item" v-if="details.detailsId">
          <div class="label">退货订单号</div>
          <div class="value">{{ details.id }}</div>
        </el-col>
        <el-col :span="8" class="item">
          <div class="label">商家编号</div>
          <div class="value">{{ details.customerNumber }}</div>
        </el-col>
        <el-col :span="8" class="item">
          <div class="label">商家名称</div>
          <div class="value">{{ details.customerName }}</div>
        </el-col>
        <el-col :span="8" class="item">
          <div class="label">配送日期</div>
          <div class="value">{{ details.pickTime }}</div>
        </el-col>
        <el-col :span="8" class="item">
          <div class="label">用户名称</div>
          <div class="value">{{ details.userName }}</div>
        </el-col>
        <el-col :span="8" class="item">
          <div class="label">用户电话</div>
          <div class="value">{{ details.phone }}</div>
        </el-col>
        <el-col :span="8" class="item">
          <div class="label">备注</div>
          <div class="value">{{ details.notes }}</div>
        </el-col>
        <el-col :span="8" class="item">
          <div class="label">地址</div>
          <div class="value">{{ details.receAddress }}</div>
        </el-col>
        <el-col :span="8" class="item">
          <div class="label">发货仓库编码</div>
          <div class="value"></div>
        </el-col>
        <el-col :span="details.id?8:24" class="item">
          <div class="label">发货仓库名称</div>
          <div class="value">{{storeObj[details.stockType]}}</div>
        </el-col>
        <el-col :span="24" class="item">
          <div class="label">退货备注</div>
          <div class="value">{{ details.refundRemark }}</div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ReturnSalesHeader',
  props: {
    details: {
      type: Object,
      default: () => {
        return {}
      }
    }
  },
  data() {
    return {
      storeObj: {
        1: '嘉贤前置仓', 2: '商家自提仓'
      }
    }
  },
  methods: {
    aa() {

    }
  }
}
</script>

<style scoped>
.sales {
  margin: 20px;
  padding: 20px;
  box-shadow: 0 0 8px 0 rgb(0 0 0 / 20%);
}
</style>
