index.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <z-paging ref="paging" bgColor="#f7f7f7" safe-area-inset-bottom scroll-with-animation>
  3. <template #top>
  4. <ut-navbar :title="stepsObject[currentStep].title" :fixed="false" border :breadcrumb="false"></ut-navbar>
  5. <view class="pd-24 bg-fff">
  6. <ut-steps-title :stepsObject="stepsObject"></ut-steps-title>
  7. </view>
  8. <view class="pd-5"></view>
  9. </template>
  10. <view>
  11. <view v-show="currentStep === 'check'">
  12. <!-- 业务组件核对信息 -->
  13. <check-info-pack v-if="opts" :opts="opts" :info="stepsObject[currentStep]"></check-info-pack>
  14. </view>
  15. <view v-show="currentStep === 'export'">
  16. <!-- 业务组件确认数量 -->
  17. </view>
  18. </view>
  19. </z-paging>
  20. </template>
  21. <script setup lang="ts">
  22. import CheckInfoPack from '@/plant/print/models/check-info-pack.vue';
  23. import { useClientRequest } from '@/utils/request';
  24. const currentStep = ref('check');
  25. const stepsObject = reactive<any>({
  26. check: {
  27. title: '核对信息',
  28. value: 'check',
  29. status: 'in-progress', // 为开始、进行中、已完成 三种状态分别值为 'not-started'、'in-progress'、'completed'
  30. sort: 0,
  31. },
  32. confirm: {
  33. title: '导出追溯码',
  34. value: 'export',
  35. status: 'not-started', // 为开始、进行中、已完成 三种状态分别值为 'not-started'、'in-progress'、'completed'
  36. sort: 1,
  37. }
  38. });
  39. const opts = ref<any>(null);
  40. onLoad((options: any) => {
  41. opts.value = options;
  42. });
  43. // 如果是 30x30
  44. </script>
  45. <style lang="scss" scoped></style>