<template>
  <div>
    <div class="material">
      <div class="content_table">
        <div class="item rx-sc">
          <div class="rx ww50">
            <div class="lable rx-cc">工单编号</div>
            <div class="content">
              {{ item.code }}
            </div>
          </div>

          <div class="rx ww50">
            <div class="lable rx-cc">产品编码</div>
            <div class="content">{{ item.productCode }}</div>
          </div>
        </div>

        <div class="item rx-sc">
          <div class="rx ww50">
            <div class="lable rx-cc">产品名称</div>
            <div class="content">{{ item.productName }}</div>
          </div>
          <div class="rx ww30">
            <div class="lable rx-cc">生产数量</div>
            <div class="content rx-sc">
              <div>{{ item.formingNum }}</div>
              <div class="unit">{{ item.unit }}</div>
            </div>
          </div>

          <div class="rx ww20">
            <div class="lable rx-cc ww60">重量</div>
            <div class="content content_num">
              <div>{{ item.formingWeight }}</div>
              <div class="unit">{{ item.weightUnit }}</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'workOrderBom',
    props: {
      item: {
        type: Object,
        default: () => {}
      },
      isDetails: {
        type: Boolean,
        default: false
      }
    },

    computed: {},

    data() {
      return {};
    },

    methods: {}
  };
</script>

<style scoped lang="scss">
  .material {
    margin-top: 6px;

  }
</style>
