deviceBom.vue 3.0 KB

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