workOrderBom.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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">
  27. <view class="lable rx-cc">批次号</view>
  28. <view class="content">{{ item.batchNo }}</view>
  29. </view>
  30. <view class="item rx-sc">
  31. <view class="rx ww55 ">
  32. <view class="lable rx-cc">生产数量</view>
  33. <view class="content rx-sc">
  34. <view>{{item.formingNum}}</view>
  35. <view class="unit">{{item.unit}}</view>
  36. </view>
  37. </view>
  38. <view class="rx ww45">
  39. <view class="lable rx-cc ww80">重量</view>
  40. <view class="content content_num">
  41. <view>{{item.formingWeight}}</view>
  42. <view class="unit">{{item.weightUnit}}</view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="title_box mt20 rx-bc" v-if="clientEnvironmentId == 3 && taskType == 1 && (pType == 'feed' || pType == 'job')">
  49. <view class="name">{{ pType == 'feed' ? '实际投料时间' : '实际报工时间'}} </view>
  50. </view>
  51. <view class="material " v-if="clientEnvironmentId == 3 && taskType == 1 && (pType == 'feed' || pType == 'job')">
  52. <view class="content_table">
  53. <view class="item">
  54. <view class="content ">
  55. <uni-datetime-picker type="datetime" v-model="item.executorTime" />
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </template>
  62. <script>
  63. export default {
  64. props: {
  65. item: {
  66. type: Object,
  67. default: () => {}
  68. },
  69. isDetails: {
  70. type: Boolean,
  71. default: false
  72. },
  73. pType: {
  74. type: '',
  75. default: ''
  76. },
  77. taskType: {
  78. type: '',
  79. default: ''
  80. }
  81. },
  82. data() {
  83. return {
  84. clientEnvironmentId: uni.getStorageSync("userInfo") && uni.getStorageSync("userInfo").clientEnvironmentId
  85. }
  86. },
  87. methods: {
  88. handleScan(id) {
  89. this.$emit('handleScan', id, 'wordOrder')
  90. },
  91. }
  92. }
  93. </script>
  94. <style lang="scss" scoped>
  95. .title_box {
  96. .name {
  97. font-size: 28rpx;
  98. font-style: normal;
  99. font-weight: 400;
  100. color: $theme-color;
  101. padding-left: 20rpx;
  102. position: relative;
  103. &:before {
  104. position: absolute;
  105. content: '';
  106. left: 0rpx;
  107. top: 0rpx;
  108. bottom: 0rpx;
  109. width: 4rpx;
  110. height: 28rpx;
  111. background: $theme-color;
  112. margin: auto;
  113. }
  114. }
  115. .btn_box {
  116. padding: 0 18rpx;
  117. height: 60rpx;
  118. background: $theme-color;
  119. font-size: 26rpx;
  120. font-style: normal;
  121. font-weight: 400;
  122. font-size: 24rpx;
  123. color: #fff;
  124. border-radius: 4rpx;
  125. .scan {
  126. width: 34rpx;
  127. height: 34rpx;
  128. margin-right: 12rpx;
  129. }
  130. }
  131. }
  132. .material {
  133. margin-top: 10rpx;
  134. .content_table {
  135. width: 100%;
  136. border: 2rpx solid $border-color;
  137. .item {
  138. display: flex;
  139. border-bottom: 2rpx solid $border-color;
  140. .lable {
  141. width: 132rpx;
  142. text-align: center;
  143. background-color: #F7F9FA;
  144. font-size: 26rpx;
  145. border-right: 2rpx solid $border-color;
  146. flex-shrink: 0;
  147. }
  148. .lable150 {
  149. width: 156rpx !important;
  150. font-size: 24rpx;
  151. }
  152. .ww80 {
  153. width: 80rpx;
  154. }
  155. .content {
  156. width: 518rpx;
  157. min-height: 64rpx;
  158. font-size: 28rpx;
  159. line-height: 28rpx;
  160. font-style: normal;
  161. font-weight: 400;
  162. padding: 18rpx 8rpx;
  163. box-sizing: border-box;
  164. word-wrap: break-word;
  165. flex-grow: 1 !important;
  166. .unit {
  167. padding: 0 4rpx;
  168. font-size: 24rpx;
  169. color: #404446;
  170. }
  171. }
  172. .content_num {
  173. display: flex;
  174. align-items: center;
  175. padding: 0 4rpx;
  176. /deep/ .uni-input-input {
  177. border: 2rpx solid #F0F8F2;
  178. background: #F0F8F2;
  179. color: $theme-color;
  180. }
  181. }
  182. .pd4 {
  183. padding: 4rpx 8rpx;
  184. }
  185. &:last-child {
  186. border-bottom: none;
  187. }
  188. }
  189. .ww55 {
  190. width: 55%;
  191. }
  192. .ww45 {
  193. width: 45%;
  194. }
  195. }
  196. }
  197. .mt20 {
  198. margin-top: 20rpx;
  199. }
  200. </style>