details.vue 1.8 KB

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