<template>
  <div>
    <el-table
      :data="list"
      border
      style="width: 100%">
      <el-table-column :label="$t('序号')" width="60px" fixed>
        <template slot-scope="scope">
          {{ scope.$index + 1 }}
        </template>
      </el-table-column>
      <el-table-column prop="prodTitleZh" :label="$t('品名')" width="220px">
        <template slot-scope="{row}">
          <div>{{row.prodName}}</div>
        </template>
      </el-table-column>
      <el-table-column :label="`${$t('填单数据')}(${$t('个')})`">
        <template slot-scope="{row}">
          {{row.quantity}}
        </template>
      </el-table-column>
      <el-table-column :label="`${$t('验货数据')}(${$t('个')})`">
        <template slot-scope="{row}">
          <el-link type="primary" @click.native="$emit('showWarehouseLogs', row,1)" v-show="row.inspectionQuantity">
            {{row.inspectionNum}}{{$t('箱')}}
            {{row.inspectionWeight}}Kg
            {{row.inspectionVolume}}m³
            {{row.inspectionQuantity}}{{$t('个')}}
          </el-link>
        </template>
      </el-table-column>
    </el-table>
  </div>

</template>

<script>
import ProductSelector from "@/components/ProductSelector/index.vue";
import Template from "@/views/cms/template/index.vue";

export default {
  name: 'DetailConsProd',
  components: {Template, ProductSelector},
  props: {
    list: {
      type: Array,
      required: true
    },
  },
  methods: {

  },
  computed: {
  },
}
</script>
<style scoped>

</style>
