workOrderBom.vue 3.4 KB

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