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