{"remainingRequest":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/views/dashboard/components/gridMenu.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/views/dashboard/components/gridMenu.vue","mtime":1701742078553},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n// +----------------------------------------------------------------------\n// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]\n// +----------------------------------------------------------------------\n// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.\n// +----------------------------------------------------------------------\n// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权\n// +----------------------------------------------------------------------\n// | Author: CRMEB Team <admin@crmeb.com>\n// +----------------------------------------------------------------------\n\nimport echartsNew from '@/components/echartsNew/index';\nimport { businessData } from '@/api/dashboard';\nimport { checkPermi } from '@/utils/permission'; // 权限判断函数\nexport default {\n  components: {\n    echartsNew,\n  },\n  data() {\n    return {\n      grid: {\n        xl: 3,\n        lg: 3,\n        md: 6,\n        sm: 8,\n        xs: 8,\n      },\n      nav_list: [\n        {\n          bgColor: '#E8B500',\n          icon: 'icon-youhuiquan',\n          title: '优惠券',\n          url: '/coupon/list',\n          perms: ['merchant:coupon:page:list'],\n        },\n        {\n          bgColor: '#4BCAD5',\n          icon: 'icon-shangpinguanli',\n          title: '商品管理',\n          url: '/product/list',\n          perms: ['merchant:product:page:list'],\n        },\n        {\n          bgColor: '#A277FF',\n          icon: 'icon-a-dingdanguanli1',\n          title: '订单管理',\n          url: '/order/list',\n          perms: ['merchant:order:page:list'],\n        },\n        {\n          bgColor: '#1890FF',\n          icon: 'icon-xitongshezhi',\n          title: '系统设置',\n          url: '/operation/modifyStoreInfo',\n          perms: ['merchant:base:info'],\n        },\n        {\n          bgColor: '#EF9C20',\n          icon: 'icon-caiwuguanli',\n          title: '财务管理',\n          url: '/finance/capitalFlow',\n          perms: ['merchant:finance:page:capitalFlow'],\n        },\n      ],\n      statisticData: [\n        { title: '在售商品', num: 0, path: '/product/list', perms: ['merchant:product:page:list'] },\n        { title: '待审核商品', num: 0, path: '/product/list', perms: ['merchant:product:page:list'] },\n        { title: '待发货', num: 0, path: '/order/list', perms: ['merchant:order:page:list'] },\n        { title: '待核销', num: 0, path: '/order/list', perms: ['merchant:order:page:list'] },\n        { title: '待退款', num: 0, path: '/order/refund', perms: ['merchant:order:page:refund'] },\n      ],\n      optionData: {},\n      applyNum: 0,\n      style: { height: '250px' },\n    };\n  },\n  computed: {\n    //鉴权处理\n    permList: function () {\n      let arr = [];\n      this.nav_list.forEach((item) => {\n        if (this.checkPermi(item.perms)) {\n          arr.push(item);\n        }\n      });\n      return arr;\n    },\n    businessList: function () {\n      let arr = [];\n      this.statisticData.forEach((item) => {\n        if (this.checkPermi(item.perms)) {\n          arr.push(item);\n        }\n      });\n      return arr;\n    },\n  },\n  mounted() {\n    if (checkPermi(['merchant:statistics:home:operating:data'])) this.getbusinessData();\n  },\n  methods: {\n    checkPermi,\n    navigatorTo(path) {\n      this.$router.push(path);\n    },\n    getbusinessData() {\n      businessData().then((res) => {\n        this.statisticData[0].num = res.onSaleProductNum; //在售商品数量\n        this.statisticData[1].num = res.awaitAuditProductNum; //待审核商品数量\n        this.statisticData[2].num = res.notShippingOrderNum; //待发货订单数量\n        this.statisticData[3].num = res.awaitVerificationOrderNum; //待核销订单数量\n        this.statisticData[4].num = res.refundingOrderNum; //待退款订单数量\n      });\n    },\n  },\n};\n",null]}