details.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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 && clientEnvironmentId == 3 '
  38. :list='objData.packInfo.pickOutInList' :isWarehousing='true' :isDetails="true"></packingTgBom>
  39. <packingBom v-if="objData.packInfo && clientEnvironmentId == 2" :packInfo="objData.packInfo" > </packingBom>
  40. </view>
  41. <view v-if='list.length == 0'>
  42. <view style='margin-top: 20vh;'>
  43. <u-empty iconSize='150' textSize='32' text='暂无报工详情'>
  44. </u-empty>
  45. </view>
  46. </view>
  47. </u-list>
  48. </view>
  49. </view>
  50. </template>
  51. <script>
  52. import {
  53. listWorkReport,
  54. } from '@/api/pda/workOrder.js'
  55. import workOrderBom from '../../feeding/components/workOrderBom.vue'
  56. import deviceBom from '../../feeding/components/deviceBom.vue'
  57. import modelBom from '../../feeding/components/modelBom.vue'
  58. import jobBom from '../../jobBooking/components/jobBom.vue'
  59. import oneJobBom from '../../jobBooking/components/oneJobBom.vue'
  60. import byProductBom from '../../jobBooking/components/byProductBom'
  61. import turnoverBom from '../../jobBooking/components/turnoverBom.vue'
  62. import aridRegion from '../../feeding/components/aridRegion.vue'
  63. import paramBom from '../../feeding/components/paramBom.vue'
  64. import qualityStat from '../../sample/components/qualityStat.vue'
  65. import sampleBom from '../../sample/components/sampleBom.vue'
  66. import palletBom from '../../feeding/components/palletBom.vue'
  67. import revolvingDiskBom from '../../feeding/components/revolvingDiskBom.vue'
  68. import packingTgBom from '../../jobBooking/components/packingTgBom.vue'
  69. import packingBom from '../../jobBooking/components/packingBomDetails.vue'
  70. export default {
  71. components: {
  72. workOrderBom,
  73. deviceBom,
  74. modelBom,
  75. jobBom,
  76. oneJobBom,
  77. byProductBom,
  78. turnoverBom,
  79. aridRegion,
  80. paramBom,
  81. qualityStat,
  82. sampleBom,
  83. palletBom,
  84. revolvingDiskBom,
  85. packingTgBom,
  86. packingBom
  87. },
  88. data() {
  89. return {
  90. workOrderId: null,
  91. taskId: null,
  92. list: [],
  93. taskType: 1,
  94. clientEnvironmentId: uni.getStorageSync("userInfo") && uni.getStorageSync("userInfo")
  95. .clientEnvironmentId, // *1 主环境-601环境 2 soll-索尔环境 3 tg-碳谷环境
  96. }
  97. },
  98. onLoad(options) {
  99. this.title = options.taskName ? options.taskName + '-报工详情' : '报工详情'
  100. this.workOrderId = options.id
  101. this.taskId = options.taskId
  102. this.taskType = options.taskType
  103. this.getList()
  104. },
  105. methods: {
  106. getList() {
  107. let param = {
  108. workOrderId: this.workOrderId,
  109. taskId: this.taskId
  110. }
  111. listWorkReport(param).then(res => {
  112. this.list = res
  113. console.log(11,res)
  114. })
  115. },
  116. scrolltolower() {}
  117. }
  118. }
  119. </script>
  120. <style lang="scss" scoped>
  121. .content-box {
  122. height: 100vh;
  123. overflow: hidden;
  124. display: flex;
  125. flex-direction: column;
  126. }
  127. .list_box {
  128. flex: 1;
  129. overflow: hidden;
  130. padding: 4rpx 0;
  131. .u-list {
  132. height: 100% !important;
  133. }
  134. .card_box {
  135. padding: 16rpx;
  136. }
  137. }
  138. .bottom-wrapper {
  139. .btn_box {
  140. width: 750rpx;
  141. height: 88rpx;
  142. line-height: 88rpx;
  143. background: $theme-color;
  144. text-align: center;
  145. font-size: 36rpx;
  146. font-style: normal;
  147. font-weight: 400;
  148. color: #fff;
  149. }
  150. }
  151. .operate_box {
  152. padding: 10rpx 160rpx;
  153. /deep/ .u-button {
  154. width: 160rpx;
  155. }
  156. }
  157. .title_card {
  158. height: 70rpx;
  159. width: 100%;
  160. background: #157A2C;
  161. font-size: 30rpx;
  162. color: #fff;
  163. line-height: 70rpx;
  164. padding: 0 22rpx;
  165. box-sizing: border-box;
  166. }
  167. </style>