<template>
  <el-form ref="form" :label-width="labelWidth">
    <el-form-item prop="totalCount" label="委外数量">
      <el-input v-model="form.totalCount" disabled></el-input>
    </el-form-item>
    <el-form-item prop="totalWeight" label="委外总重量">
      <el-input v-model="form.totalWeight" disabled></el-input>
    </el-form-item>
    <el-form-item prop="categoryName" label="产品名称">
      <el-input v-model="form.categoryName" disabled></el-input>
    </el-form-item>
    <el-form-item prop="categoryCode" label="产品编码">
      <el-input v-model="form.categoryCode" disabled></el-input>
    </el-form-item>
    <el-form-item prop="categoryLevelName" label="产品类型">
      <el-input v-model="form.categoryLevelName" disabled></el-input>
    </el-form-item>
  </el-form>
</template>

<script>
  import { applyoutsource } from '@/api/purchasingManage/purchaseOrder';
  export default {
    props: {
      labelWidth: {
        default: '120px'
      }
    },

    data() {
      return {
        form: {}
      };
    },

    created() {},

    methods: {
      init(val) {
        applyoutsource(val).then((res) => {
          this.form = res.data
        });
      }
    }
  };
</script>
<style scoped lang="scss">
  .TotalAmount {
    font-size: 16px;
    padding-right: 30px;
  }
</style>
