index.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <template>
  2. <div class="pagePadding">
  3. <div
  4. v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
  5. >
  6. <!-- <el-tabs v-model="activeName" @tab-click="handleClick"> -->
  7. <el-tabs v-model="activeName">
  8. <el-tab-pane label="咨询单总数" name="table1"><table1 v-if="activeName == 'table1'"></table1></el-tab-pane>
  9. <el-tab-pane label="采购订单总金额" name="table2"><table2 v-if="activeName == 'table2'"></table2></el-tab-pane>
  10. <el-tab-pane label="采购员回复咨询单数" name="table3"><table3 v-if="activeName == 'table3'"></table3></el-tab-pane>
  11. <el-tab-pane label="采购员订单金额" name="table4"><table4 v-if="activeName == 'table4'"></table4></el-tab-pane>
  12. <el-tab-pane label="已采返报价信息" name="table5"><table5 v-if="activeName == 'table5'"></table5></el-tab-pane>
  13. <el-tab-pane label="未采返信息" name="table6"><table6 v-if="activeName == 'table6'"></table6></el-tab-pane>
  14. <el-tab-pane label="订单明细报表" name="table7"><table7 v-if="activeName == 'table7'"></table7></el-tab-pane>
  15. <el-tab-pane label="售后明细报表" name="table8"><table8 v-if="activeName == 'table8'"></table8></el-tab-pane>
  16. <el-tab-pane label="每日录入供应商报表" name="table9"><table9 v-if="activeName == 'table9'"></table9></el-tab-pane>
  17. <el-tab-pane label="退货流水报表" name="table10"><table10 v-if="activeName == 'table10'"></table10></el-tab-pane>
  18. <el-tab-pane label="商品上线报表" name="table11"><table11 v-if="activeName == 'table11'"></table11></el-tab-pane>
  19. <el-tab-pane label="商品下线报表" name="table12"><table12 v-if="activeName == 'table12'"></table12></el-tab-pane>
  20. <el-tab-pane label="商品修改报表" name="table13"><table13 v-if="activeName == 'table13'"></table13></el-tab-pane>
  21. <el-tab-pane label="出入库明细报表" name="table14"><table14 v-if="activeName == 'table14'"></table14></el-tab-pane>
  22. </el-tabs>
  23. </div>
  24. <div v-else>
  25. <no-auth></no-auth>
  26. </div>
  27. </div>
  28. </template>
  29. <script>
  30. import mixinPage from "@/mixins/elPaginationHandle";
  31. import resToken from "@/mixins/resToken";
  32. import { mapGetters } from "vuex";
  33. //标签页组件引入
  34. const table1 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table1")
  35. const table2 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table2")
  36. const table3 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table3")
  37. const table4 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table4")
  38. const table5 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table5")
  39. const table6 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table6")
  40. const table7 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table7")
  41. const table8 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table8")
  42. const table9 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table9")
  43. const table10 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table10")
  44. const table11 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table11")
  45. const table12 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table12")
  46. const table13 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table13")
  47. const table14 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table14")
  48. export default {
  49. mixins: [mixinPage, resToken],
  50. components:{
  51. table1,
  52. table2,
  53. table3,
  54. table4,
  55. table5,
  56. table6,
  57. table7,
  58. table8,
  59. table9,
  60. table10,
  61. table11,
  62. table12,
  63. table13,
  64. table14,
  65. },
  66. computed: {
  67. ...mapGetters(["tablebtnSize", "searchSize", "size"]),
  68. powers() {
  69. let tran =
  70. this.$store.getters.btnList.find(
  71. (item) => item.menu_route == "sellOutOrder"
  72. ) || {};
  73. if (tran && tran.action && tran.action.length > 0) {
  74. return tran.action;
  75. } else {
  76. return [];
  77. }
  78. },
  79. },
  80. data(){
  81. return {
  82. activeName: 'table1'
  83. }
  84. },
  85. methods:{
  86. // handleClick(tab, event) {
  87. // console.log(tab, event);
  88. // }
  89. }
  90. }
  91. </script>
  92. <style lang="scss" scoped>
  93. </style>