diff --git a/src/api/modules/datacenter.js b/src/api/modules/datacenter.js new file mode 100644 index 0000000..d9c4f5d --- /dev/null +++ b/src/api/modules/datacenter.js @@ -0,0 +1,32 @@ +import $http from "@/utils/httpRequest.js"; +// +export const dataCenter = { + customerAnalysis: (data) => { + return $http.request({ + url: `/merchant-api/pc/data/analyse/customer/analyse`, + method: "get", + params: data, + }); + }, + customerTrend: (data) => { + return $http.request({ + url: `/merchant-api/pc/data/analyse/customer/trend`, + method: "get", + params: data, + }); + }, + updatePreSaleProducts: (data) => { + return $http.request({ + url: `/merchant-api/product/save/advance/sell`, + method: "post", + data, + }); + }, + closePreSaleProducts: (data) => { + return $http.request({ + url: `/merchant-api/product/update/advance/sell/status`, + method: "post", + data, + }); + }, +}; diff --git a/src/api/modules/marketing.js b/src/api/modules/marketing.js index a28e6f5..0a1c6d7 100644 --- a/src/api/modules/marketing.js +++ b/src/api/modules/marketing.js @@ -15,4 +15,12 @@ export const marketing = { params: data, }); }, + //积分列表 + integralList: (data) => { + return $http.request({ + url: `/merchant-api/memberUnitMemberTask/list`, + method: "post", + data, + }); + }, }; diff --git a/src/api/modules/pre-sale.js b/src/api/modules/pre-sale.js index 2e86144..3dd4ac2 100644 --- a/src/api/modules/pre-sale.js +++ b/src/api/modules/pre-sale.js @@ -23,4 +23,12 @@ export const preSale = { data, }); }, + closePreSaleProducts: (data) => { + return $http.request({ + url: `/merchant-api/product/update/advance/sell/status`, + method: "post", + data, + }); + }, }; + diff --git a/src/router/full-routers.js b/src/router/full-routers.js index 6e48791..8f93b31 100644 --- a/src/router/full-routers.js +++ b/src/router/full-routers.js @@ -305,6 +305,111 @@ export default { }, ], }, + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "代理商", + url: "", + perms: "", + type: 0, + elIcon: "el-icon-tickets", + orderNum: 0, + open: null, + list: [ + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "数据面板", + url: "agent/data-panel/index", + perms: "", + type: 1, + elIcon: "el-icon-user", + orderNum: 0, + open: null, + list: [], + }, + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "品牌管理", + url: "agent/brand/index", + perms: "", + type: 1, + elIcon: "el-icon-data-analysis", + orderNum: 0, + open: null, + list: [], + }, + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "报表", + url: "agent/report-form/index", + perms: "", + type: 1, + elIcon: "el-icon-shopping-cart-full", + orderNum: 0, + open: null, + list: [], + }, + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "市场列表", + url: "agent/market-list/index", + perms: "", + type: 1, + elIcon: "el-icon-shopping-cart-full", + orderNum: 0, + open: null, + list: [], + }, + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "店铺列表", + url: "agent/shop-list/index", + perms: "", + type: 1, + elIcon: "el-icon-shopping-cart-full", + orderNum: 0, + open: null, + list: [], + }, + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "分销商列表", + url: "agent/distributor/index", + perms: "", + type: 1, + elIcon: "el-icon-shopping-cart-full", + orderNum: 0, + open: null, + list: [], + }, + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "权限管理", + url: "agent/jurisdiction/index", + perms: "", + type: 1, + elIcon: "el-icon-shopping-cart-full", + orderNum: 0, + open: null, + list: [], + }, + ], + }, ], code: 0, permissions: [], diff --git a/src/views/modules/agent/brand/index.vue b/src/views/modules/agent/brand/index.vue new file mode 100644 index 0000000..ae73936 --- /dev/null +++ b/src/views/modules/agent/brand/index.vue @@ -0,0 +1,15 @@ + + + + + \ No newline at end of file diff --git a/src/views/modules/agent/data-panel/index.vue b/src/views/modules/agent/data-panel/index.vue new file mode 100644 index 0000000..902c9b7 --- /dev/null +++ b/src/views/modules/agent/data-panel/index.vue @@ -0,0 +1,15 @@ + + + + + \ No newline at end of file diff --git a/src/views/modules/agent/distributor/index.vue b/src/views/modules/agent/distributor/index.vue new file mode 100644 index 0000000..1937f7c --- /dev/null +++ b/src/views/modules/agent/distributor/index.vue @@ -0,0 +1,15 @@ + + + + + \ No newline at end of file diff --git a/src/views/modules/agent/jurisdiction/index.vue b/src/views/modules/agent/jurisdiction/index.vue new file mode 100644 index 0000000..0a3f262 --- /dev/null +++ b/src/views/modules/agent/jurisdiction/index.vue @@ -0,0 +1,15 @@ + + + + + \ No newline at end of file diff --git a/src/views/modules/agent/market-list/index.vue b/src/views/modules/agent/market-list/index.vue new file mode 100644 index 0000000..100959b --- /dev/null +++ b/src/views/modules/agent/market-list/index.vue @@ -0,0 +1,15 @@ + + + + + \ No newline at end of file diff --git a/src/views/modules/agent/report-form/index.vue b/src/views/modules/agent/report-form/index.vue new file mode 100644 index 0000000..df33af1 --- /dev/null +++ b/src/views/modules/agent/report-form/index.vue @@ -0,0 +1,15 @@ + + + + + \ 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 new file mode 100644 index 0000000..fddeffc --- /dev/null +++ b/src/views/modules/agent/shop-list/index.vue @@ -0,0 +1,15 @@ + + + + + \ No newline at end of file diff --git a/src/views/modules/datacenter/customer-analysis/index.vue b/src/views/modules/datacenter/customer-analysis/index.vue index 7a20056..fe31609 100644 --- a/src/views/modules/datacenter/customer-analysis/index.vue +++ b/src/views/modules/datacenter/customer-analysis/index.vue @@ -35,7 +35,7 @@ > - 查询 + 查询 导出
@@ -44,14 +44,20 @@
展现量 (次)
- 562 - + {{ + analysis.viewCount ? analysis.viewCount : "0" + }} + - 56% + {{ + absoluteValue(analysis.viewCountRatio) + }}
@@ -62,12 +68,16 @@
62 - - 56% + + {{ + absoluteValue(analysis.peopleCountRatio) + }}
@@ -76,14 +86,20 @@
新客数量 (人)
- 62 + {{ + analysis.newPeopleCount ? analysis.newPeopleCount : "0" + }} - - 56% + + {{ + absoluteValue(analysis.newPeopleCountRatio) + }}
@@ -91,21 +107,27 @@
支付订单人数 (人)
-
199
+
+ {{ analysis.payCount ? analysis.payCount : "0" }} +
支付订单转化率 (%)
-
1256
+
+ {{ analysis.payConversion ? analysis.payConversion : "0" }} +
客户复购率 (%)
-
1256
+
+ {{ analysis.repurchaseRate ? analysis.repurchaseRate : "0" }} +
@@ -124,18 +146,45 @@ diff --git a/src/views/modules/marketing/points-mall/index.vue b/src/views/modules/marketing/points-mall/index.vue index 4f13553..1d0cd38 100644 --- a/src/views/modules/marketing/points-mall/index.vue +++ b/src/views/modules/marketing/points-mall/index.vue @@ -1,15 +1,226 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/views/modules/marketing/points-order/index.vue b/src/views/modules/marketing/points-order/index.vue index 6a41ab5..d150b36 100644 --- a/src/views/modules/marketing/points-order/index.vue +++ b/src/views/modules/marketing/points-order/index.vue @@ -1,15 +1,375 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/views/modules/marketing/points-setting/index.vue b/src/views/modules/marketing/points-setting/index.vue index df61af2..51217aa 100644 --- a/src/views/modules/marketing/points-setting/index.vue +++ b/src/views/modules/marketing/points-setting/index.vue @@ -1,15 +1,129 @@ - \ No newline at end of file diff --git a/src/views/modules/presale/products/index.vue b/src/views/modules/presale/products/index.vue index 0f8e09a..cc44395 100644 --- a/src/views/modules/presale/products/index.vue +++ b/src/views/modules/presale/products/index.vue @@ -89,7 +89,7 @@ type="danger" size="small" @click="deleteProduct" - >批量删除批量关闭 添加商品 { - console.log(row); - this.$refs.AddPrice.toggle(row).update(); + let close = () => { + this.$api.preSale + .closePreSaleProducts({ + productIds: [row.id], + advanceSellStatus: 3, + }) + .then((res) => { + this.$refs.oTable.reload(); + }); }; let changeInventory = () => { this.$refs.addStock.toggle(row).update(); @@ -512,30 +518,26 @@ export default { }; return (
- + 查看 - - 编辑 - - - 关闭 + 编辑 - 删除 + 关闭
);