outsourcingData.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <template>
  2. <view class="card_box">
  3. <view class="item_box rx-sc">
  4. <view class="round">{{ index + 1 }}</view>
  5. <view class="orderId">{{ item.categoryCode }} </view>
  6. </view>
  7. <view class="item_box rx-bc">
  8. <view class="item_one rx-sc">
  9. <view class="lable">名称:</view>
  10. <view>{{ item.categoryName }}</view>
  11. </view>
  12. </view>
  13. <view class="item_box rx-bc">
  14. <view class="item_one rx-sc">
  15. <view>编码:</view>
  16. <view>{{ item.categoryCode }}</view>
  17. </view>
  18. </view>
  19. <view class="item_box rx-bc">
  20. <view class="item_one rx-sc">
  21. <view>规格:</view>
  22. <view>{{ item.specification }}</view>
  23. </view>
  24. </view>
  25. <view class="item_box rx-bc">
  26. <view class="item_one rx-sc">
  27. <view>型号:</view>
  28. <view>{{ item.modelType }}</view>
  29. </view>
  30. </view>
  31. <view class="item_box rx-bc">
  32. <view class="item_one perce50 rx-sc">
  33. <view>类型:</view>
  34. <view v-if="item.sourceType == 1" class="gylx">物品清单</view>
  35. <view v-if="item.sourceType == 2" class="gylx">带料清单</view>
  36. <view v-if="item.sourceType == 3" class="gylx">产出清单</view>
  37. </view>
  38. <view class="item_one perce50 rx-sc">
  39. <view>牌号:</view>
  40. <view>{{ item.brandNum }}</view>
  41. </view>
  42. </view>
  43. <view class="item_box rx-bc">
  44. <view class="item_one perce50 rx-sc">
  45. <view class="lable">数量:</view>
  46. <view>{{ item.totalCount }}{{ item.measuringUnit }}</view>
  47. </view>
  48. <view class="item_one perce50 rx-sc">
  49. <view>重量:</view>
  50. <view v-if="item.totalWeight">
  51. {{ item.totalWeight }}{{ item.weightUnit }}
  52. </view>
  53. <view v-else>无</view>
  54. </view>
  55. </view>
  56. <view class="item_box rx-bc">
  57. <view class="item_one perce50 rx-sc">
  58. <view class="lable">物料代号:</view>
  59. <view>{{ item.extInfo.materielCode }}</view>
  60. </view>
  61. <view class="item_one perce50 rx-sc">
  62. <view>客户代号:</view>
  63. <view> {{ item.extInfo.clientCode }} </view>
  64. </view>
  65. </view>
  66. <view class="item_box rx-bc">
  67. <view class="item_one rx-sc">
  68. <view class="lable">刻码:</view>
  69. <view>{{ item.extInfo.engrave }}</view>
  70. </view>
  71. </view>
  72. </view>
  73. </template>
  74. <script>
  75. export default {
  76. props: {
  77. item: {
  78. type: Object,
  79. default: () => ({}),
  80. },
  81. index: {
  82. type: Number,
  83. default: 0,
  84. },
  85. },
  86. data() {
  87. return {};
  88. },
  89. methods: {},
  90. };
  91. </script>
  92. <!-- <style lang="scss" scoped>
  93. .card_box {
  94. width: 750rpx;
  95. padding: 16rpx 32rpx;
  96. box-sizing: border-box;
  97. border-bottom: 2rpx solid #e1e1e1;
  98. .item_box {
  99. margin-top: 10rpx;
  100. .round {
  101. width: 40rpx;
  102. height: 40rpx;
  103. line-height: 40rpx;
  104. border-radius: 50%;
  105. background: $theme-color;
  106. color: #fff;
  107. text-align: center;
  108. font-size: 20rpx;
  109. }
  110. .orderId {
  111. color: #000;
  112. font-family: PingFang HK;
  113. font-size: 28rpx;
  114. font-style: normal;
  115. font-weight: 600;
  116. margin-left: 16rpx;
  117. }
  118. .item_one {
  119. width: 100%;
  120. font-size: 26rpx;
  121. font-style: normal;
  122. font-weight: 400;
  123. line-height: 38rpx;
  124. word-wrap: break-word;
  125. }
  126. .item-right {
  127. flex: 1;
  128. }
  129. .gylx {
  130. color: $theme-color;
  131. }
  132. .perce50 {
  133. width: 50%;
  134. }
  135. }
  136. }
  137. </style> -->
  138. <style lang="scss" scoped>
  139. .card_box {
  140. width: 100%;
  141. padding: 20rpx 26rpx;
  142. box-sizing: border-box;
  143. border-bottom: 2rpx solid #f1f1f1;
  144. background: #fff;
  145. .item_box {
  146. margin-top: 14rpx;
  147. display: flex;
  148. flex-wrap: wrap;
  149. align-items: center;
  150. .round {
  151. width: 46rpx;
  152. height: 46rpx;
  153. line-height: 46rpx;
  154. border-radius: 50%;
  155. background: $theme-color;
  156. color: #fff;
  157. text-align: center;
  158. font-size: 22rpx;
  159. flex-shrink: 0;
  160. }
  161. .orderId {
  162. color: #111;
  163. font-size: 30rpx;
  164. font-weight: 600;
  165. margin-left: 18rpx;
  166. word-break: break-all;
  167. }
  168. .item_one {
  169. display: flex;
  170. width: 100%;
  171. font-size: 28rpx;
  172. line-height: 42rpx;
  173. color: #333;
  174. margin-top: 6rpx;
  175. word-wrap: break-word;
  176. .lable {
  177. color: #666;
  178. margin-right: 8rpx;
  179. flex-shrink: 0;
  180. }
  181. }
  182. .gylx {
  183. color: $theme-color;
  184. font-weight: 500;
  185. }
  186. /* 自适应 2列布局,超出自动换行 */
  187. .perce50 {
  188. width: 48%;
  189. }
  190. }
  191. }
  192. </style>