diff --git a/src/views/dashboard/components/baseInfo.vue b/src/views/dashboard/components/baseInfo.vue index 125d55a..1eb2286 100644 --- a/src/views/dashboard/components/baseInfo.vue +++ b/src/views/dashboard/components/baseInfo.vue @@ -8,16 +8,16 @@ - 销售额 + 总注册 - 今日 + 总计
- {{ viewData.sales }} + {{ viewData.totalRegisterNum }} -
- 昨日数据 - {{ viewData.yesterdaySales }} 元 +
+ 今日注册 + {{ viewData.todayRegisterNum }}
@@ -29,16 +29,16 @@ - 用户访问量 + 总订单数
- 今日 + 总计
- {{ viewData.pageviews }} + {{ viewData.totalOrderNum }} -
- 昨日数据 - {{ viewData.yesterdayPageviews }} +
+ 今日订单数 + {{ viewData.todayOrderNum }}
@@ -50,16 +50,16 @@ - 订单量 + 总订单金额
- 今日 + 总计
- {{ viewData.orderNum }} + {{ viewData.totalOrderAmount }} -
- 昨日数据 - {{ viewData.yesterdayOrderNum }}单 +
+ 今日订单金额 + {{ viewData.todayOrderAmount }}元
@@ -71,16 +71,58 @@ - 新增用户 + 已收金额
- 今日 + 总计
- {{ viewData.newUserNum }} + {{ viewData.totalReceivedAmount }}元
- 昨日数据 - {{ viewData.yesterdayNewUserNum }} 人 + 今日已收金额 + {{ viewData.todayReceivedAmount }} 元 +
+
+ + + + +
+
+ + 应收金额 +
+ 总计 +
+
+ {{ viewData.totalReceivableAccount }}元 + +
+ 今日应收金额 + {{ viewData.todayReceivableAccount }} 元 +
+
+
+
+ + +
+
+ + 回款率 +
+ 总计 +
+
+ {{ viewData.rateOfReturn }}% + +
+ 今日回款率 + {{ viewData.todayRateOfReturn }} %
@@ -95,6 +137,7 @@ export default { return { grid: { xl: 6, lg: 6, md: 12, sm: 12, xs: 24 }, viewData: {}, + totaldata:{} }; }, methods: { @@ -102,7 +145,12 @@ export default { viewModelApi().then(async (res) => { this.viewData = res; }); + // allinfo().then(async (res) => { + // // console.log(res,'resresresre'); + // this.totaldata = res; + // }); }, + }, mounted() { this.statisticsOrder(); @@ -154,6 +202,8 @@ export default { align-items: center; } .baseInfo { + display: flex; + flex-wrap: nowrap; ::v-deep .el-card__header { padding: 15px 20px !important; } diff --git a/src/views/dashboard/components/gridMenu.vue b/src/views/dashboard/components/gridMenu.vue index b25e4bc..3b2e662 100644 --- a/src/views/dashboard/components/gridMenu.vue +++ b/src/views/dashboard/components/gridMenu.vue @@ -14,6 +14,7 @@
+
经营数据
diff --git a/src/views/order/index.vue b/src/views/order/index.vue index 2de9652..127b99a 100644 --- a/src/views/order/index.vue +++ b/src/views/order/index.vue @@ -287,7 +287,7 @@ checkPermi(['admin:order:send']) ">发货 查看合同 + style="margin-top: 10px;" @click="showht(scope.row.contractUrl)" v-show="scope.row.statusStr.value!='待审核'&&scope.row.statusStr.value!='待签约'">查看合同 取消订单 @@ -919,7 +920,8 @@ export default { }); }, showht(url){ - this.pdfUrl=url + // this.pdfUrl='@/assets/222.pdf' + this.pdfUrl='http://api.yruibao.com/crmebimage/public/content/2024/02/03/0eba557ba62041e190b8d819a9f69ca3884hdh9izs.pdf' const CMAP_URL = "https://cdn.jsdelivr.net/npm/pdfjs-dist@2.0.943/cmaps/"; let obj = {}; obj.url = this.pdfUrl; //pdf文件地址,根据情景自行修改 @@ -931,18 +933,7 @@ export default { htClose(){ this.htVisible=false }, - downloadAndOpenPDF() { - // 替换为你的直接下载的PDF文件链接 - const pdfUrl = 'https://esignoss.esign.cn/7439001031/c432aa2f-b786-4d60-807f-f33013f2430a/%E5%88%86%E6%9C%9F%E4%BB%98%E6%AC%BE%E6%89%8B%E6%9C%BA%E4%B9%B0%E5%8D%96%E5%90%88%E5%90%8C.pdf?Expires=1706538506&OSSAccessKeyId=LTAI4G23YViiKnxTC28ygQzF&Signature=V1gxvTgnonr6wdQTKlHgGuRHK6A%3D'; - - // 创建一个新窗口并在其中打开PDF文件 - const newWindow = window.open(pdfUrl, '_blank'); - - // 如果浏览器的弹窗拦截器(pop-up blocker)启用,可能需要延迟打开新窗口 - if (!newWindow || newWindow.closed || typeof newWindow.closed === 'undefined') { - alert('请允许浏览器弹窗以查看PDF文件。'); - } - }, + init(fileUrl) { let _this = this; PDFJS.getDocument(fileUrl).then(fileContent => { diff --git a/vue.config.js b/vue.config.js index 23f2d34..e2bbec2 100644 --- a/vue.config.js +++ b/vue.config.js @@ -36,8 +36,27 @@ module.exports = { overlay: { warnings: false, errors: true + }, + proxy: { + '/api': { + target: 'http://api.yruibao.com', + changeOrigin: true, + pathRewrite: { + '^/api': '' + }, + followRedirects: true + } } }, +// devServer: { + +// port: 9527,//它是用来修改你打开后的端口号的 +// open: true,//值为 true的话,项目启动时自动打开到浏览器里边, false不会打开 + +// }, + + + configureWebpack: { // provide the app's title in webpack's name field, so that // it can be accessed in index.html to inject the correct title.