details.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <view class="mainBox">
  3. <uni-nav-bar fixed="true" statusBar="true" left-icon="back" title="盘点工单详情" @clickLeft="back"></uni-nav-bar>
  4. <view class="view-container">
  5. <DetailView :baseInfo="infoData" :list="reportList" />
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. import {
  11. getOrderInfoByPlanId,
  12. getReportList
  13. } from '@/api/warehouseManagement'
  14. import DetailView from './DetailView.vue'
  15. export default {
  16. components: {
  17. DetailView
  18. },
  19. data() {
  20. return {
  21. activeName: 1,
  22. baseInfo: {},
  23. reportList: [],
  24. infoData: {}
  25. }
  26. },
  27. onLoad({
  28. id,
  29. planId
  30. }) {
  31. if (id && planId) {
  32. this._getDetail(id, planId)
  33. }
  34. },
  35. methods: {
  36. async _getDetail(id, planId) {
  37. const data = await getOrderInfoByPlanId({
  38. planOrderId: id,
  39. planId: planId
  40. })
  41. const res = await getReportList({
  42. planOrderId: id,
  43. planId: planId,
  44. status: 1
  45. })
  46. console.log()
  47. this.reportList = res
  48. this.infoData = data
  49. }
  50. }
  51. }
  52. </script>
  53. <style lang="scss" scoped>
  54. .tabs {
  55. position: fixed;
  56. width: 100vw;
  57. background-color: rgba(242, 242, 242, 0.792156862745098);
  58. padding-top: 20rpx;
  59. display: flex;
  60. justify-content: flex-start;
  61. align-items: center;
  62. margin-bottom: 20rpx;
  63. .tab-item {
  64. width: 200rpx;
  65. display: flex;
  66. justify-content: center;
  67. align-items: center;
  68. &.active {
  69. background: linear-gradient(180deg, rgba(75, 121, 2, 1) 0%, rgba(255, 255, 255, 1) 12%);
  70. }
  71. }
  72. }
  73. .view-container {
  74. padding-bottom: 20rpx;
  75. }
  76. .footer {
  77. position: fixed;
  78. bottom: 0;
  79. width: 100vw;
  80. left: 0;
  81. .verify-box {
  82. display: flex;
  83. justify-content: space-between;
  84. align-items: center;
  85. padding: 10rpx;
  86. /deep/.u-input {
  87. border: 1rpx solid #ccc;
  88. }
  89. .dept {
  90. margin-right: 30rpx;
  91. }
  92. }
  93. }
  94. </style>