tgDetails.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <ele-modal :visible.sync="visible" title="入库详情" width="1200px" >
  3. <ele-pro-table :columns="columns" :datasource="tableList" cache-key="tgDetails" height="calc(100vh - 350px)" :need-page="false">
  4. </ele-pro-table>
  5. </ele-modal>
  6. </template>
  7. <script>
  8. export default {
  9. data() {
  10. return {
  11. visible: false,
  12. tableList: [],
  13. columns: [
  14. {
  15. label: '序号',
  16. type: 'index',
  17. width: 55,
  18. align: 'center'
  19. },
  20. {
  21. label: '入库申请单id',
  22. prop: 'applyStorageId'
  23. },
  24. {
  25. label: '物品名称',
  26. prop: 'categoryName'
  27. },
  28. {
  29. label: '物品分类名称',
  30. prop: 'categoryLevelName'
  31. },
  32. {
  33. label: '牌号',
  34. prop: 'brandNum'
  35. },
  36. {
  37. label: '型号',
  38. prop: 'modelType'
  39. },
  40. {
  41. label: '包装数量',
  42. prop: 'packingCount'
  43. },
  44. {
  45. label: '包装单位',
  46. prop: 'packingUnit'
  47. },
  48. {
  49. label: '本包重量',
  50. prop: 'packingWeight'
  51. },
  52. {
  53. label: '包装内总数量',
  54. prop: 'quantity '
  55. },
  56. ]
  57. };
  58. },
  59. created() {
  60. },
  61. methods: {
  62. open(row) {
  63. if (row) {
  64. this.tableList = [...row.detailList]
  65. }
  66. this.visible = true;
  67. }
  68. }
  69. };
  70. </script>