workOrderBom.vue 3.6 KB

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