workOrderBom.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. <template>
  2. <view>
  3. <view class="title_box rx-bc">
  4. <view class="name">工单信息 </view>
  5. <view class="btn_box rx-bc" @click="handleScan(item.workOrderId)" v-if='!isDetails'>
  6. <image class="scan" src="@/static/pda/ScanIt.svg"></image>
  7. 更换工单
  8. </view>
  9. </view>
  10. <view class="material ">
  11. <view class="content_table">
  12. <view class="item">
  13. <view class="lable rx-cc">工单编号</view>
  14. <view class="content">
  15. {{item.code}}
  16. </view>
  17. </view>
  18. <view class="item">
  19. <view class="lable rx-cc">产品编码</view>
  20. <view class="content">{{ item.productCode }}</view>
  21. </view>
  22. <view class="item">
  23. <view class="lable rx-cc">产品名称</view>
  24. <view class="content">{{ item.productName }}</view>
  25. </view>
  26. <view class="item">
  27. <view class="lable rx-cc">批次号</view>
  28. <view class="content">{{ item.batchNo }}</view>
  29. </view>
  30. <view class="item rx-sc">
  31. <view class="rx ww55 ">
  32. <view class="lable rx-cc">生产数量</view>
  33. <view class="content rx-sc">
  34. <view>{{item.formingNum}}</view>
  35. <view class="unit">{{item.unit}}</view>
  36. </view>
  37. </view>
  38. <view class="rx ww45">
  39. <view class="lable rx-cc ww80">重量</view>
  40. <view class="content content_num">
  41. <view>{{item.formingWeight}}</view>
  42. <view class="unit">{{item.weightUnit}}</view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. </template>
  50. <script>
  51. export default {
  52. props: {
  53. item: {
  54. type: Object,
  55. default: () => {}
  56. },
  57. isDetails: {
  58. type: Boolean,
  59. default: false
  60. }
  61. },
  62. data() {
  63. return {
  64. }
  65. },
  66. methods: {
  67. handleScan(id) {
  68. this.$emit('handleScan', id, 'wordOrder')
  69. },
  70. }
  71. }
  72. </script>
  73. <style lang="scss" scoped>
  74. .title_box {
  75. .name {
  76. font-size: 28rpx;
  77. font-style: normal;
  78. font-weight: 400;
  79. color: $theme-color;
  80. padding-left: 20rpx;
  81. position: relative;
  82. &:before {
  83. position: absolute;
  84. content: '';
  85. left: 0rpx;
  86. top: 0rpx;
  87. bottom: 0rpx;
  88. width: 4rpx;
  89. height: 28rpx;
  90. background: $theme-color;
  91. margin: auto;
  92. }
  93. }
  94. .btn_box {
  95. padding: 0 18rpx;
  96. height: 60rpx;
  97. background: $theme-color;
  98. font-size: 26rpx;
  99. font-style: normal;
  100. font-weight: 400;
  101. font-size: 24rpx;
  102. color: #fff;
  103. border-radius: 4rpx;
  104. .scan {
  105. width: 34rpx;
  106. height: 34rpx;
  107. margin-right: 12rpx;
  108. }
  109. }
  110. }
  111. .material {
  112. margin-top: 10rpx;
  113. .content_table {
  114. width: 100%;
  115. border: 2rpx solid $border-color;
  116. .item {
  117. display: flex;
  118. border-bottom: 2rpx solid $border-color;
  119. .lable {
  120. width: 132rpx;
  121. text-align: center;
  122. background-color: #F7F9FA;
  123. font-size: 26rpx;
  124. border-right: 2rpx solid $border-color;
  125. flex-shrink: 0;
  126. }
  127. .lable150 {
  128. width: 156rpx !important;
  129. font-size: 24rpx;
  130. }
  131. .ww80 {
  132. width: 80rpx;
  133. }
  134. .content {
  135. width: 518rpx;
  136. min-height: 64rpx;
  137. font-size: 28rpx;
  138. line-height: 28rpx;
  139. font-style: normal;
  140. font-weight: 400;
  141. padding: 18rpx 8rpx;
  142. box-sizing: border-box;
  143. word-wrap: break-word;
  144. flex-grow: 1 !important;
  145. .unit {
  146. padding: 0 4rpx;
  147. font-size: 24rpx;
  148. color: #404446;
  149. }
  150. }
  151. .content_num {
  152. display: flex;
  153. align-items: center;
  154. padding: 0 4rpx;
  155. /deep/ .uni-input-input {
  156. border: 2rpx solid #F0F8F2;
  157. background: #F0F8F2;
  158. color: $theme-color;
  159. }
  160. }
  161. .pd4 {
  162. padding: 4rpx 8rpx;
  163. }
  164. &:last-child {
  165. border-bottom: none;
  166. }
  167. }
  168. .ww55 {
  169. width: 55%;
  170. }
  171. .ww45 {
  172. width: 45%;
  173. }
  174. }
  175. }
  176. </style>