index.vue 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <div class="pagePadding">
  3. <div v-if="powers.some((i) => i == '001')">
  4. <el-tabs v-model="activeName">
  5. <el-tab-pane label="采购单情况表" name="table1">
  6. <table1 v-if="activeName == 'table1'" />
  7. </el-tab-pane>
  8. <el-tab-pane label="竞价单反馈情况表" name="table2">
  9. <table2 v-if="activeName == 'table2'" />
  10. </el-tab-pane>
  11. <el-tab-pane label="当日库存销售情况表" name="table3">
  12. <table3 v-if="activeName == 'table3'" />
  13. </el-tab-pane>
  14. <el-tab-pane label="待库管发货" name="table4">
  15. <table4 v-if="activeName == 'table4'" />
  16. </el-tab-pane>
  17. <el-tab-pane label="待采购备货" name="table5">
  18. <table5 v-if="activeName === 'table5'" />
  19. </el-tab-pane>
  20. <el-tab-pane label="无地址订单" name="table6">
  21. <table6 v-if="activeName === 'table6'" />
  22. </el-tab-pane>
  23. </el-tabs>
  24. </div>
  25. <div v-else>
  26. <no-auth></no-auth>
  27. </div>
  28. </div>
  29. </template>
  30. <script>
  31. import mixinPage from "@/mixins/elPaginationHandle";
  32. import resToken from "@/mixins/resToken";
  33. import { mapGetters } from "vuex";
  34. //标签页组件引入
  35. const table1 = () => import("./components/table1.vue");
  36. const table2 = () => import("./components/table2.vue");
  37. const table3 = () => import("./components/table3.vue");
  38. const table4 = () => import("./components/table4.vue");
  39. const table5 = () => import("./components/table5.vue");
  40. const table6 = () => import("./components/table6.vue");
  41. export default {
  42. mixins: [mixinPage, resToken],
  43. components: { table1, table2, table3, table4, table5, table6 },
  44. computed: {
  45. ...mapGetters(["tablebtnSize", "searchSize", "size"]),
  46. powers() {
  47. const tran =
  48. this.$store.getters.btnList.find((i) => i.menu_route == "newReport") || {};
  49. const { action } = tran ?? {};
  50. return action ?? [];
  51. },
  52. },
  53. data() {
  54. return {
  55. activeName: "table1",
  56. };
  57. },
  58. methods: {
  59. // handleClick(tab, event) {
  60. // console.log(tab, event);
  61. // }
  62. },
  63. };
  64. </script>
  65. <style lang="scss" scoped></style>