details.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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. <jobBom :item='objData' :palletList='objData.palletList' :notFormed='objData.notFormedList'
  18. :isDetails='true'></jobBom>
  19. <byProductBom v-if='objData.productRecycleList.length != 0 ' :list='objData.productRecycleList'
  20. :isDetails='true'>
  21. </byProductBom>
  22. <turnoverBom v-if='objData.turnover.length != 0' :list='objData.turnover' :wordItem='objData'
  23. pattern='job' :isDetails='true'>
  24. </turnoverBom>
  25. <aridRegion v-if='objData.aridRegionList.length != 0' :list='objData.aridRegionList'
  26. :remainingTime='0' :isType='true'></aridRegion>
  27. </view>
  28. <view v-if='list.length == 0'>
  29. <view style='margin-top: 20vh;'>
  30. <u-empty iconSize='150' textSize='32' text='暂无报工详情'>
  31. </u-empty>
  32. </view>
  33. </view>
  34. </u-list>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. import {
  40. listWorkReport,
  41. } from '@/api/pda/workOrder.js'
  42. import workOrderBom from '../../feeding/components/workOrderBom.vue'
  43. import deviceBom from '../../feeding/components/deviceBom.vue'
  44. import modelBom from '../../feeding/components/modelBom.vue'
  45. import jobBom from '../../jobBooking/components/jobBom.vue'
  46. import oneJobBom from '../../jobBooking/components/oneJobBom.vue'
  47. import byProductBom from '../../jobBooking/components/byProductBom'
  48. import turnoverBom from '../../jobBooking/components/turnoverBom.vue'
  49. import aridRegion from '../../feeding/components/aridRegion.vue'
  50. import paramBom from '../../feeding/components/paramBom.vue'
  51. export default {
  52. components: {
  53. workOrderBom,
  54. deviceBom,
  55. modelBom,
  56. jobBom,
  57. oneJobBom,
  58. byProductBom,
  59. turnoverBom,
  60. aridRegion,
  61. paramBom,
  62. },
  63. data() {
  64. return {
  65. workOrderId: null,
  66. taskId: null,
  67. list: []
  68. }
  69. },
  70. onLoad(options) {
  71. this.title = options.taskName ? options.taskName + '-报工详情' : '报工详情'
  72. this.workOrderId = options.id
  73. this.taskId = options.taskId
  74. this.getList()
  75. },
  76. methods: {
  77. getList() {
  78. let param = {
  79. workOrderId: this.workOrderId,
  80. taskId: this.taskId
  81. }
  82. listWorkReport(param).then(res => {
  83. this.list = res
  84. })
  85. },
  86. scrolltolower() {}
  87. }
  88. }
  89. </script>
  90. <style lang="scss" scoped>
  91. .content-box {
  92. height: 100vh;
  93. overflow: hidden;
  94. display: flex;
  95. flex-direction: column;
  96. }
  97. .list_box {
  98. flex: 1;
  99. overflow: hidden;
  100. padding: 4rpx 0;
  101. .u-list {
  102. height: 100% !important;
  103. }
  104. .card_box {
  105. padding: 16rpx 24rpx;
  106. }
  107. }
  108. .bottom-wrapper {
  109. .btn_box {
  110. width: 750rpx;
  111. height: 88rpx;
  112. line-height: 88rpx;
  113. background: $theme-color;
  114. text-align: center;
  115. font-size: 36rpx;
  116. font-style: normal;
  117. font-weight: 400;
  118. color: #fff;
  119. }
  120. }
  121. .operate_box {
  122. padding: 10rpx 160rpx;
  123. /deep/ .u-button {
  124. width: 160rpx;
  125. }
  126. }
  127. .title_card {
  128. height: 70rpx;
  129. width: 100%;
  130. background: #157A2C;
  131. font-size: 30rpx;
  132. color: #fff;
  133. line-height: 70rpx;
  134. padding: 0 22rpx;
  135. box-sizing: border-box;
  136. }
  137. </style>