modelBom.vue 3.1 KB

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