tgDetails.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <template>
  2. <ele-modal :visible.sync="visible" title="入库详情" width="1200px">
  3. <ele-pro-table v-if="clientEnvironmentId == 3" :columns="columns" :datasource="tableList" cache-key="tgDetails" height="calc(100vh - 350px)"
  4. :need-page="false">
  5. <template v-slot:packingWeight="{ row }">
  6. {{ row.packingWeight }} {{ row.weightUnit}}
  7. </template>
  8. <template v-slot:materielCode="{ row }">
  9. {{ row.extInfo.materielCode }}
  10. </template>
  11. <template v-slot:clientCode="{ row }">
  12. {{ row.extInfo.clientCode }}
  13. </template>
  14. <template v-slot:engrave="{ row }">
  15. {{ row.extInfo.engrave }}
  16. </template>
  17. </ele-pro-table>
  18. <ele-pro-table v-if="clientEnvironmentId == 2" :columns="columns2" :datasource="tableList" cache-key="srDetails" height="calc(100vh - 350px)"
  19. :need-page="false">
  20. <template v-slot:quantity="{ row }">
  21. {{ row.quantity }}
  22. </template>
  23. </ele-pro-table>
  24. </ele-modal>
  25. </template>
  26. <script>
  27. export default {
  28. computed: {
  29. clientEnvironmentId() {
  30. return this.$store.state.user.info.clientEnvironmentId;
  31. },
  32. },
  33. data() {
  34. return {
  35. visible: false,
  36. tableList: [],
  37. columns: [
  38. {
  39. label: '序号',
  40. type: 'index',
  41. width: 55,
  42. align: 'center'
  43. },
  44. {
  45. label: '入库申请单id',
  46. prop: 'applyStorageId'
  47. },
  48. {
  49. label: '物品名称',
  50. prop: 'categoryName'
  51. },
  52. {
  53. label: '物品分类名称',
  54. prop: 'categoryLevelName'
  55. },
  56. {
  57. label: '牌号',
  58. prop: 'brandNum'
  59. },
  60. {
  61. label: '型号',
  62. prop: 'modelType'
  63. },
  64. {
  65. label: '包装数量',
  66. prop: 'packingCount'
  67. },
  68. {
  69. label: '包装单位',
  70. prop: 'packingUnit'
  71. },
  72. {
  73. label: '本包重量',
  74. slot: 'packingWeight'
  75. },
  76. {
  77. label: '包装内总数量',
  78. slot: 'quantity'
  79. },
  80. {
  81. label: '物料代号',
  82. slot: 'materielCode'
  83. },
  84. {
  85. label: '客户代号',
  86. slot: 'clientCode'
  87. },
  88. {
  89. label: '刻码',
  90. slot: 'engrave'
  91. },
  92. {
  93. label: '发货码',
  94. prop: 'sendCode'
  95. },
  96. ],
  97. columns2: [
  98. {
  99. label: '序号',
  100. type: 'index',
  101. width: 55,
  102. align: 'center'
  103. },
  104. {
  105. label: '入库申请单id',
  106. prop: 'applyStorageId'
  107. },
  108. {
  109. label: '物品名称',
  110. prop: 'categoryName'
  111. },
  112. {
  113. label: '物品分类名称',
  114. prop: 'categoryLevelName'
  115. },
  116. {
  117. label: '牌号',
  118. prop: 'brandNum'
  119. },
  120. {
  121. label: '型号',
  122. prop: 'modelType'
  123. },
  124. {
  125. label: '包装数量',
  126. prop: 'packingCount'
  127. },
  128. {
  129. label: '包装单位',
  130. prop: 'packingUnit'
  131. },
  132. {
  133. label: '本包重量',
  134. prop: 'packingWeight'
  135. },
  136. {
  137. label: '包装内总数量',
  138. slot: 'quantity'
  139. },
  140. {
  141. label: '发货码',
  142. prop: 'sendCode'
  143. },
  144. ]
  145. };
  146. },
  147. created() {
  148. },
  149. methods: {
  150. open(row) {
  151. if (row) {
  152. this.tableList = [...row.detailList]
  153. }
  154. this.visible = true;
  155. }
  156. }
  157. };
  158. </script>