deviceBom.vue 3.6 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" v-if="clientEnvironmentId == 3">
  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. clientEnvironmentId: uni.getStorageSync("userInfo") && uni.getStorageSync("userInfo").clientEnvironmentId
  57. }
  58. },
  59. methods: {
  60. handleScan(id) {
  61. this.$emit('scanIt', id, )
  62. },
  63. }
  64. }
  65. </script>
  66. <style lang="scss" scoped>
  67. .title_box {
  68. margin-top: 20rpx;
  69. .name {
  70. font-size: 28rpx;
  71. font-style: normal;
  72. font-weight: 400;
  73. color: $theme-color;
  74. padding-left: 20rpx;
  75. position: relative;
  76. &:before {
  77. position: absolute;
  78. content: '';
  79. left: 0rpx;
  80. top: 0rpx;
  81. bottom: 0rpx;
  82. width: 4rpx;
  83. height: 28rpx;
  84. background: $theme-color;
  85. margin: auto;
  86. }
  87. }
  88. .btn_box {
  89. padding: 0 18rpx;
  90. height: 60rpx;
  91. background: $theme-color;
  92. font-size: 26rpx;
  93. font-style: normal;
  94. font-weight: 400;
  95. font-size: 24rpx;
  96. color: #fff;
  97. border-radius: 4rpx;
  98. .scan {
  99. width: 34rpx;
  100. height: 34rpx;
  101. margin-right: 12rpx;
  102. }
  103. }
  104. }
  105. .material {
  106. margin-top: 10rpx;
  107. .content_table {
  108. width: 100%;
  109. border: 2rpx solid $border-color;
  110. margin-bottom: 10rpx;
  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>