index.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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-tab-pane label="退货台账-业务口径" name="table15"><table15 v-if="activeName == 'table15'"></table15></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(/* webpackChunkName:'mycomp' */ "./components/table1")
  36. const table2 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table2")
  37. const table3 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table3")
  38. const table4 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table4")
  39. const table5 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table5")
  40. const table6 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table6")
  41. const table7 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table7")
  42. const table8 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table8")
  43. const table9 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table9")
  44. const table10 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table10")
  45. const table11 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table11")
  46. const table12 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table12")
  47. const table13 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table13")
  48. const table14 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table14")
  49. const table15 = ()=>import(/* webpackChunkName:'mycomp' */ "./components/table15")
  50. export default {
  51. mixins: [mixinPage, resToken],
  52. components:{
  53. table1,
  54. table2,
  55. table3,
  56. table4,
  57. table5,
  58. table6,
  59. table7,
  60. table8,
  61. table9,
  62. table10,
  63. table11,
  64. table12,
  65. table13,
  66. table14,
  67. table15,
  68. },
  69. computed: {
  70. ...mapGetters(["tablebtnSize", "searchSize", "size"]),
  71. powers() {
  72. let tran =
  73. this.$store.getters.btnList.find(
  74. (item) => item.menu_route == "sellOutOrder"
  75. ) || {};
  76. if (tran && tran.action && tran.action.length > 0) {
  77. return tran.action;
  78. } else {
  79. return [];
  80. }
  81. },
  82. },
  83. data(){
  84. return {
  85. activeName: 'table1'
  86. }
  87. },
  88. methods:{
  89. // handleClick(tab, event) {
  90. // console.log(tab, event);
  91. // }
  92. }
  93. }
  94. </script>
  95. <style lang="scss" scoped>
  96. </style>