deviceBom.vue 3.2 KB

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