index.vue 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <div class="order-item-table">
  3. <el-table
  4. :data="itemData"
  5. :loading="loading"
  6. border
  7. size="small"
  8. style="width: 100%"
  9. >
  10. <el-table-column prop="itemCode" label="物料编码" width="120" />
  11. <el-table-column prop="itemName" label="物料名称" width="150" />
  12. <el-table-column prop="specs" label="规格型号" width="120" />
  13. <el-table-column prop="mainItemCategoryName" label="主物料分类" width="120" />
  14. <el-table-column prop="warehouseName" label="仓库名称" width="120" />
  15. <el-table-column prop="availableQuantity" label="库存数量" width="100" align="right">
  16. <template slot-scope="scope">
  17. {{ scope.row.availableQuantity | numberFormat(4) }}
  18. </template>
  19. </el-table-column>
  20. <el-table-column prop="orderQuantity" label="订单数量" width="100" align="right">
  21. <template slot-scope="scope">
  22. {{ scope.row.orderQuantity | numberFormat(4) }}
  23. </template>
  24. </el-table-column>
  25. <el-table-column prop="confirmQuantity" label="确认数量" width="100" align="right">
  26. <template slot-scope="scope">
  27. {{ scope.row.confirmQuantity | numberFormat(4) }}
  28. </template>
  29. </el-table-column>
  30. <el-table-column prop="unitPrice" label="单价" width="100" align="right">
  31. <template slot-scope="scope">
  32. ¥{{ scope.row.unitPrice | numberFormat(2) }}
  33. </template>
  34. </el-table-column>
  35. <el-table-column prop="taxRate" label="税率" width="80" align="right">
  36. <template slot-scope="scope">
  37. {{ scope.row.taxRate | numberFormat(2) }}%
  38. </template>
  39. </el-table-column>
  40. <el-table-column prop="taxAmount" label="税额" width="100" align="right">
  41. <template slot-scope="scope">
  42. ¥{{ scope.row.taxAmount | numberFormat(2) }}
  43. </template>
  44. </el-table-column>
  45. <el-table-column prop="totalAmount" label="总金额" width="100" align="right">
  46. <template slot-scope="scope">
  47. ¥{{ scope.row.totalAmount | numberFormat(2) }}
  48. </template>
  49. </el-table-column>
  50. <el-table-column prop="itemStatus" label="明细状态" width="100" align="center">
  51. <template slot-scope="scope">
  52. <el-tag
  53. :type="getStatusType(scope.row.itemStatus)"
  54. size="mini"
  55. >
  56. {{ getStatusText(scope.row.itemStatus) }}
  57. </el-tag>
  58. </template>
  59. </el-table-column>
  60. </el-table>
  61. </div>
  62. </template>
  63. <script>
  64. import orderItemTableMixin from '@/mixins/order/orderItemTableMixin'
  65. export default {
  66. name: 'OrderItemTable',
  67. mixins: [orderItemTableMixin]
  68. }
  69. </script>
  70. <style scoped>
  71. .order-item-table {
  72. padding: 10px 0;
  73. }
  74. </style>