outInstanceBom.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <template>
  2. <view>
  3. <view class="material rx-ss" v-for="(mate, idx) in outWorkList">
  4. <view class="content_table">
  5. <view class="item">
  6. <view class="lable rx-cc">批次号</view>
  7. <view class="content">{{ mate.batchNo }}</view>
  8. </view>
  9. <view class="item">
  10. <view class="lable rx-cc">领料类型</view>
  11. <view class="content">
  12. {{ typeName[Number(mate.rootCategoryLevelId)] }}</view
  13. >
  14. </view>
  15. <view class="item">
  16. <view class="lable rx-cc">编码</view>
  17. <view class="content">{{ mate.categoryCode }}</view>
  18. </view>
  19. <view class="item">
  20. <view class="lable rx-cc">名称</view>
  21. <view class="content" style="color: rgb(255 170 42)">{{
  22. mate.name
  23. }}</view>
  24. </view>
  25. <view class="item">
  26. <view class="lable rx-cc">型号</view>
  27. <view class="content">{{ mate.modelType }}</view>
  28. </view>
  29. <view class="item">
  30. <view class="lable rx-cc">规格</view>
  31. <view class="content">{{ mate.specification }}</view>
  32. </view>
  33. <view class="item">
  34. <view class="lable rx-cc">牌号</view>
  35. <view class="content">{{ mate.brandNo }}</view>
  36. </view>
  37. <view class="item">
  38. <view class="lable rx-cc">数量</view>
  39. <view class="content content_num">
  40. <view class="unit">{{ mate.feedQuantity }}{{ mate.unit }}</view>
  41. </view>
  42. </view>
  43. <view class="item">
  44. <view class="lable rx-cc">供应商</view>
  45. <view class="content">{{ mate.supplierName }}</view>
  46. </view>
  47. <view class="item">
  48. <view class="lable rx-cc">领料仓库</view>
  49. <view class="content" style="color: rgb(255 170 42)">
  50. {{ mate.warehouseName }}
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. </template>
  57. <script>
  58. import { tableHeader } from "./outCommon.js";
  59. import { queryOutWordDetail } from "@/api/pda/picking.js";
  60. import { typeName } from "@/pages/pda/feeding/common.js";
  61. export default {
  62. props: {
  63. item: {
  64. type: Object,
  65. default: () => ({}),
  66. },
  67. },
  68. data() {
  69. return {
  70. typeName,
  71. outWorkList: [],
  72. };
  73. },
  74. created() {
  75. this.getOutWorkList();
  76. },
  77. methods: {
  78. async getOutWorkList() {
  79. if (!this.item?.pickOrderId) {
  80. this.outWorkList = [];
  81. return;
  82. }
  83. await queryOutWordDetail({
  84. pickOrderId: this.item.pickOrderId,
  85. }).then((res) => {
  86. this.outWorkList = Array.isArray(res) ? res : [];
  87. });
  88. },
  89. tableH(type) {
  90. return tableHeader(type);
  91. },
  92. },
  93. };
  94. </script>
  95. <style lang="scss" scoped>
  96. .material {
  97. margin-top: 10rpx;
  98. .content_table {
  99. width: 702rpx;
  100. border: 2rpx solid $border-color;
  101. .item {
  102. display: flex;
  103. border-bottom: 2rpx solid $border-color;
  104. .lable {
  105. width: 162rpx;
  106. text-align: center;
  107. background-color: #f7f9fa;
  108. font-size: 26rpx;
  109. border-right: 2rpx solid $border-color;
  110. flex-shrink: 0;
  111. }
  112. .ww80 {
  113. width: 80rpx;
  114. }
  115. .content {
  116. width: 518rpx;
  117. min-height: 64rpx;
  118. font-size: 28rpx;
  119. line-height: 28rpx;
  120. font-style: normal;
  121. font-weight: 400;
  122. padding: 18rpx 8rpx;
  123. box-sizing: border-box;
  124. word-wrap: break-word;
  125. flex-grow: 1 !important;
  126. }
  127. .content_num {
  128. display: flex;
  129. align-items: center;
  130. padding: 0 4rpx;
  131. /deep/ .uni-input-input {
  132. width: 200rpx;
  133. border: 2rpx solid #f0f8f2;
  134. background: #f0f8f2;
  135. color: $theme-color;
  136. }
  137. .unit {
  138. padding: 0 4rpx;
  139. font-size: 24rpx;
  140. color: #404446;
  141. }
  142. }
  143. .pd4 {
  144. padding: 4rpx 8rpx;
  145. }
  146. &:last-child {
  147. border-bottom: none;
  148. }
  149. }
  150. .ww55 {
  151. width: 55%;
  152. }
  153. .ww45 {
  154. width: 45%;
  155. }
  156. }
  157. }
  158. </style>