outInstanceBom.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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: ["item"],
  63. data() {
  64. return {
  65. typeName,
  66. outWorkList: null,
  67. };
  68. },
  69. created() {
  70. this.getOutWorkList();
  71. },
  72. methods: {
  73. async getOutWorkList() {
  74. await queryOutWordDetail({
  75. pickOrderId: this.item.pickOrderId,
  76. }).then((res) => {
  77. this.outWorkList = res;
  78. });
  79. },
  80. tableH(type) {
  81. return tableHeader(type);
  82. },
  83. },
  84. };
  85. </script>
  86. <style lang="scss" scoped>
  87. .material {
  88. margin-top: 10rpx;
  89. .content_table {
  90. width: 702rpx;
  91. border: 2rpx solid $border-color;
  92. .item {
  93. display: flex;
  94. border-bottom: 2rpx solid $border-color;
  95. .lable {
  96. width: 162rpx;
  97. text-align: center;
  98. background-color: #f7f9fa;
  99. font-size: 26rpx;
  100. border-right: 2rpx solid $border-color;
  101. flex-shrink: 0;
  102. }
  103. .ww80 {
  104. width: 80rpx;
  105. }
  106. .content {
  107. width: 518rpx;
  108. min-height: 64rpx;
  109. font-size: 28rpx;
  110. line-height: 28rpx;
  111. font-style: normal;
  112. font-weight: 400;
  113. padding: 18rpx 8rpx;
  114. box-sizing: border-box;
  115. word-wrap: break-word;
  116. flex-grow: 1 !important;
  117. }
  118. .content_num {
  119. display: flex;
  120. align-items: center;
  121. padding: 0 4rpx;
  122. /deep/ .uni-input-input {
  123. width: 200rpx;
  124. border: 2rpx solid #f0f8f2;
  125. background: #f0f8f2;
  126. color: $theme-color;
  127. }
  128. .unit {
  129. padding: 0 4rpx;
  130. font-size: 24rpx;
  131. color: #404446;
  132. }
  133. }
  134. .pd4 {
  135. padding: 4rpx 8rpx;
  136. }
  137. &:last-child {
  138. border-bottom: none;
  139. }
  140. }
  141. .ww55 {
  142. width: 55%;
  143. }
  144. .ww45 {
  145. width: 45%;
  146. }
  147. }
  148. }
  149. </style>