workOrderBom.vue 3.4 KB

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