<template>
  <div>
    <headerTitle title="领料单详情"></headerTitle>
    <el-table :data="infoData.detailList" style="width: 100%">
      <el-table-column prop="code" label="领料单号"> </el-table-column>
      <el-table-column prop="workOrderCode" label="工单编号"> </el-table-column>
      <el-table-column prop="workOrderId" label="工单编号"> </el-table-column>
      <el-table-column prop="categoryCode" label="物品编码"> </el-table-column>
      <el-table-column prop="categoryName" label="物品名称"> </el-table-column>
      <el-table-column label="数量">
        <template slot-scope="{ row }">
          {{ row.demandQuantity }}/{{ row.unit }}
        </template>
      </el-table-column>
      <el-table-column label="领料仓库">
        <template slot-scope="{ row }">
          {{ row.warehouseName }}
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
  export default {
    components: {},
    props: {
      businessId: {
        default: ''
      },
      infoData: {
        default: {}
      }
    },
    data() {
      return {
        detailId: '',
        list: []
      };
    }
  };
</script>

<style scoped lang="scss">
  .ele-dialog-form {
    .el-form-item {
      margin-bottom: 10px;
    }
  }

  .headbox {
    display: flex;
    justify-content: flex-start;
    align-items: center;

    .amount {
      font-size: 14px;
      font-weight: bold;
      margin-right: 20px;
    }
  }
</style>
