deviceBom.vue 3.2 KB

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