workOrderBom.vue 4.4 KB

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