From 60cd2072893f7cf35eb50fef40b7c79fe773872a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com> Date: Tue, 17 Dec 2024 19:21:19 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/datacenter.js | 34 +- .../datacenter/customer-analysis/index.vue | 207 +++++++------ .../datacenter/order-analysis/index.vue | 291 +++++++++++++----- .../datacenter/product-analysis/index.vue | 218 +++++++------ .../product/notice/popup/add-or-update.vue | 2 +- src/views/modules/product/order/content.vue | 16 +- 6 files changed, 475 insertions(+), 293 deletions(-) diff --git a/src/api/modules/datacenter.js b/src/api/modules/datacenter.js index d9c4f5d..8138e65 100644 --- a/src/api/modules/datacenter.js +++ b/src/api/modules/datacenter.js @@ -15,18 +15,36 @@ export const dataCenter = { params: data, }); }, - updatePreSaleProducts: (data) => { + //商品分析 + productAnalysis: (data) => { return $http.request({ - url: `/merchant-api/product/save/advance/sell`, - method: "post", - data, + url: `/merchant-api/pc/data/analyse/product/analyse`, + method: "get", + params: data, }); }, - closePreSaleProducts: (data) => { + //订单分析 + orderAnalysis: (data) => { return $http.request({ - url: `/merchant-api/product/update/advance/sell/status`, - method: "post", - data, + url: `/merchant-api/pc/data/analyse/order/analyse`, + method: "get", + params: data, + }); + }, + //订单结算统计 + orderSummary: (data) => { + return $http.request({ + url: `/merchant-api/pc/data/analyse/settle/summary`, + method: "get", + params: data, + }); + }, + //订单结算明细 + orderSummaryPage: (data) => { + return $http.request({ + url: `/merchant-api/pc/data/analyse/settle/page`, + method: "get", + params: data, }); }, }; diff --git a/src/views/modules/datacenter/customer-analysis/index.vue b/src/views/modules/datacenter/customer-analysis/index.vue index fe31609..553192b 100644 --- a/src/views/modules/datacenter/customer-analysis/index.vue +++ b/src/views/modules/datacenter/customer-analysis/index.vue @@ -1,42 +1,52 @@ \ No newline at end of file + \ No newline at end of file diff --git a/src/views/modules/agent/shop-list/index.vue b/src/views/modules/agent/shop-list/index.vue index fddeffc..2bbe15c 100644 --- a/src/views/modules/agent/shop-list/index.vue +++ b/src/views/modules/agent/shop-list/index.vue @@ -1,15 +1,236 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/views/modules/datacenter/order-analysis/index.vue b/src/views/modules/datacenter/order-analysis/index.vue index 2bb38ae..6928372 100644 --- a/src/views/modules/datacenter/order-analysis/index.vue +++ b/src/views/modules/datacenter/order-analysis/index.vue @@ -311,11 +311,11 @@ export default { this.valueOne = [ year + "-" + month + "-" + day + " 00:00:00", year + "-" + month + "-" + day + " 23:59:59", - (this.formData.settleBeginDate = - year + "-" + month + "-" + day + " 00:00:00"), - (this.formData.settleEndDate = - year + "-" + month + "-" + day + " 23:59:59"), ]; + this.formData.settleBeginDate = + year + "-" + month + "-" + day + " 00:00:00"; + this.formData.settleEndDate = + year + "-" + month + "-" + day + " 23:59:59"; this.getList(); }, changeValue(e) { diff --git a/src/views/modules/marketing/points-mall/index.vue b/src/views/modules/marketing/points-mall/index.vue index 0400454..6674556 100644 --- a/src/views/modules/marketing/points-mall/index.vue +++ b/src/views/modules/marketing/points-mall/index.vue @@ -87,6 +87,8 @@ diff --git a/src/views/modules/marketing/points-mall/popup/add-or-update.vue b/src/views/modules/marketing/points-mall/popup/add-or-update.vue index 392305a..d3ed42c 100644 --- a/src/views/modules/marketing/points-mall/popup/add-or-update.vue +++ b/src/views/modules/marketing/points-mall/popup/add-or-update.vue @@ -15,62 +15,7 @@ label-width="150px" class="demo-ruleForm" > - - - - - - - - - - - - - - - + 点击请选择商品
@@ -104,7 +49,7 @@ { - this.orderTime = []; - this.arrears = []; - this.delivery = []; this.ruleForm = { - startTime: "", - endTime: "", - balancePaymentStartTime: "", - balancePaymentEndTime: "", - estimatedStartDeliveryTime: "", - estimatedEndDeliveryTime: "", - productList: [], - isRefundEarnestMoney: 1, //定金可退 1是 2否 + marketId: this.marketId, + shopId: this.shopId, + unitType: JSON.parse(sessionStorage.getItem("userInfo")).unitType, + list: [], }; - this.modalConfig.title = "新增预售"; + this.modalConfig.title = "添加积分兑换商品"; this.isAdd = true; }, update: () => { - this.modalConfig.title = "编辑预售"; + this.modalConfig.title = "编辑积分商品"; this.isAdd = false; }, }; @@ -484,39 +378,6 @@ export default { // this.ruleForm = row; }, - //订单支付时间 - getOrderTime(e) { - if (e) { - console.log(e); - this.ruleForm.startTime = e[0]; - this.ruleForm.endTime = e[1]; - } else { - this.ruleForm.startTime = ""; - this.ruleForm.endTime = ""; - } - }, - //尾款支付时间 - getArrearsTime(e) { - if (e) { - console.log(e); - this.ruleForm.balancePaymentStartTime = e[0]; - this.ruleForm.balancePaymentEndTime = e[1]; - } else { - this.ruleForm.balancePaymentStartTime = ""; - this.ruleForm.balancePaymentEndTime = ""; - } - }, - //发货时间 - deliveryTime(e) { - if (e) { - console.log(e); - this.ruleForm.estimatedStartDeliveryTime = e[0]; - this.ruleForm.estimatedEndDeliveryTime = e[1]; - } else { - this.ruleForm.estimatedStartDeliveryTime = ""; - this.ruleForm.estimatedEndDeliveryTime = ""; - } - }, selectProduct() { console.log("选择商品", this.marketId, this.shopId); this.$nextTick(() => {