workOrderBom.vue 3.5 KB

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