deviceBom.vue 3.8 KB

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