index.vue 965 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <script setup lang="ts">
  2. import { reactive } from "vue";
  3. import { useRouter } from "vue-router";
  4. import { usePageSearch, type PageHooks, type PageEvents } from "/@/hooks/page";
  5. import contentConfig from "./config/content.config";
  6. import searchConfig from "./config/search.config";
  7. const PageName = "productManager";
  8. const router = useRouter();
  9. const hooks: PageHooks = {
  10. pageSearchHook: () => usePageSearch(undefined, undefined, searchConfig)
  11. };
  12. const state = reactive({
  13. orderImportVisible: false,
  14. notOrderImportVisible: false
  15. })
  16. const events: PageEvents = {
  17. content: {
  18. create: () => router.push('/invoiceInOut/provisionOutDetail'),
  19. preview: ({ id }) => router.push("/invoiceInOut/provisionOutDetail?id=" + id)
  20. }
  21. };
  22. </script>
  23. <template>
  24. <PageAuth :pageName="PageName">
  25. <PageContainer
  26. :hooks="hooks"
  27. :events="events"
  28. :searchConfig="searchConfig"
  29. :contentConfig="contentConfig"
  30. />
  31. </PageAuth>
  32. </template>