details.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <template>
  2. <view class="content-box">
  3. <uni-nav-bar fixed="true" statusBar="true" left-icon="back" :title="title" background-color="#F7F9FA"
  4. color="#000" @clickLeft="back">
  5. </uni-nav-bar>
  6. <view class="list_box">
  7. <u-list @scrolltolower="scrolltolower">
  8. <view class="card_box" v-for="(objData,index) in list" :key='index'>
  9. <view class="rx-bc title_card">
  10. <view>{{index + 1}}</view>
  11. <view>报工时间: {{objData.createTime}}</view>
  12. </view>
  13. <workOrderBom :item='objData' v-if='objData' :isDetails='true'></workOrderBom>
  14. <deviceBom v-if='objData.equipmentList.length != 0' :list='objData.equipmentList'></deviceBom>
  15. <modelBom v-if='objData.modelList.length != 0' :list='objData.modelList'>
  16. </modelBom>
  17. <qualityStat :normalQuality='objData.normalQuality' v-if='objData && taskType == 3'></qualityStat>
  18. <sampleBom :item='objData.quality' v-if='objData.quality && taskType == 2'
  19. :workReportInfo='objData.workReportInfo' :isDetails='true'></sampleBom>
  20. <jobBom :item='objData' v-if="objData.notFormedList" :palletList='objData.palletList'
  21. :notFormed='objData.notFormedList' :isDetails='true'></jobBom>
  22. <palletBom v-if="objData.palletList.length != 0" :palletList='objData.palletList' :isDetails='true'>
  23. </palletBom>
  24. <!-- <revolvingDiskBom v-if="objData.revolvingDiskList.length > 0"
  25. :revolvingDiskList="objData.revolvingDiskList"></revolvingDiskBom> -->
  26. <oneJobBom v-if='objData.instanceList && objData.instanceList.length != 0'
  27. :list='objData.instanceList' :item='objData' :isDetails='true'> </oneJobBom>
  28. <byProductBom v-if='objData.productRecycleList.length != 0 ' :list='objData.productRecycleList'
  29. :isDetails='true'>
  30. </byProductBom>
  31. <turnoverBom v-if='objData.turnover.length != 0' :list='objData.turnover' :wordItem='objData'
  32. pattern='job' :isDetails='true'>
  33. </turnoverBom>
  34. <aridRegion v-if='objData.aridRegionList.length != 0' :list='objData.aridRegionList'
  35. :remainingTime='0' :isType='true'></aridRegion>
  36. <packingTgBom
  37. v-if='objData.packInfo && objData.packInfo.pickOutInList && objData.packInfo.pickOutInList != 0 && taskType == 4 '
  38. :list='objData.packInfo.pickOutInList' :isWarehousing='true' :isDetails="true"></packingTgBom>
  39. </view>
  40. <view v-if='list.length == 0'>
  41. <view style='margin-top: 20vh;'>
  42. <u-empty iconSize='150' textSize='32' text='暂无报工详情'>
  43. </u-empty>
  44. </view>
  45. </view>
  46. </u-list>
  47. </view>
  48. </view>
  49. </template>
  50. <script>
  51. import {
  52. listWorkReport,
  53. } from '@/api/pda/workOrder.js'
  54. import workOrderBom from '../../feeding/components/workOrderBom.vue'
  55. import deviceBom from '../../feeding/components/deviceBom.vue'
  56. import modelBom from '../../feeding/components/modelBom.vue'
  57. import jobBom from '../../jobBooking/components/jobBom.vue'
  58. import oneJobBom from '../../jobBooking/components/oneJobBom.vue'
  59. import byProductBom from '../../jobBooking/components/byProductBom'
  60. import turnoverBom from '../../jobBooking/components/turnoverBom.vue'
  61. import aridRegion from '../../feeding/components/aridRegion.vue'
  62. import paramBom from '../../feeding/components/paramBom.vue'
  63. import qualityStat from '../../sample/components/qualityStat.vue'
  64. import sampleBom from '../../sample/components/sampleBom.vue'
  65. import palletBom from '../../feeding/components/palletBom.vue'
  66. import revolvingDiskBom from '../../feeding/components/revolvingDiskBom.vue'
  67. import packingTgBom from '../../jobBooking/components/packingTgBom.vue'
  68. export default {
  69. components: {
  70. workOrderBom,
  71. deviceBom,
  72. modelBom,
  73. jobBom,
  74. oneJobBom,
  75. byProductBom,
  76. turnoverBom,
  77. aridRegion,
  78. paramBom,
  79. qualityStat,
  80. sampleBom,
  81. palletBom,
  82. revolvingDiskBom,
  83. packingTgBom
  84. },
  85. data() {
  86. return {
  87. workOrderId: null,
  88. taskId: null,
  89. list: [],
  90. taskType: 1
  91. }
  92. },
  93. onLoad(options) {
  94. this.title = options.taskName ? options.taskName + '-报工详情' : '报工详情'
  95. this.workOrderId = options.id
  96. this.taskId = options.taskId
  97. this.taskType = options.taskType
  98. this.getList()
  99. },
  100. methods: {
  101. getList() {
  102. let param = {
  103. workOrderId: this.workOrderId,
  104. taskId: this.taskId
  105. }
  106. listWorkReport(param).then(res => {
  107. this.list = res
  108. })
  109. },
  110. scrolltolower() {}
  111. }
  112. }
  113. </script>
  114. <style lang="scss" scoped>
  115. .content-box {
  116. height: 100vh;
  117. overflow: hidden;
  118. display: flex;
  119. flex-direction: column;
  120. }
  121. .list_box {
  122. flex: 1;
  123. overflow: hidden;
  124. padding: 4rpx 0;
  125. .u-list {
  126. height: 100% !important;
  127. }
  128. .card_box {
  129. padding: 16rpx;
  130. }
  131. }
  132. .bottom-wrapper {
  133. .btn_box {
  134. width: 750rpx;
  135. height: 88rpx;
  136. line-height: 88rpx;
  137. background: $theme-color;
  138. text-align: center;
  139. font-size: 36rpx;
  140. font-style: normal;
  141. font-weight: 400;
  142. color: #fff;
  143. }
  144. }
  145. .operate_box {
  146. padding: 10rpx 160rpx;
  147. /deep/ .u-button {
  148. width: 160rpx;
  149. }
  150. }
  151. .title_card {
  152. height: 70rpx;
  153. width: 100%;
  154. background: #157A2C;
  155. font-size: 30rpx;
  156. color: #fff;
  157. line-height: 70rpx;
  158. padding: 0 22rpx;
  159. box-sizing: border-box;
  160. }
  161. </style>