From cb1f4b3a8c71b0c6b55ee01b604a799d697db629 Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Wed, 9 Apr 2025 16:13:26 +0800 Subject: [PATCH 01/12] =?UTF-8?q?fix=EF=BC=9A=E5=BA=97=E9=93=BA=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/shop/list/components/addShop.vue | 26 +++++++++++++++------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/src/views/shop/list/components/addShop.vue b/src/views/shop/list/components/addShop.vue index 942e0d0..e8ae3f5 100644 --- a/src/views/shop/list/components/addShop.vue +++ b/src/views/shop/list/components/addShop.vue @@ -6,15 +6,16 @@ - + 单店 连锁店 加盟店 -
请谨慎修改!!!
+
+
- + @@ -22,7 +23,7 @@ + :remote-method="getTableData" :loading="state.shopListLoading" :disabled="state.isEdit || state.type == 'addBranch'"> @@ -41,14 +42,16 @@ 先付费 后付费 -
请谨慎修改!!!
+
+
不可直接管理 直接管理 -
请谨慎修改!!!
+
+
@@ -297,6 +300,7 @@ const state = reactive({ }, shopListLoading: false, shopList: [], + isEdit: false, }); onBeforeMount(async () => { const res = await initMapLoad(); @@ -387,7 +391,9 @@ function show(obj,type) { } console.log(state.form); console.log(state.type); - + if( state.form.shopType != 'only'){ + state.isEdit = true + } for (let key in state.rules) { if (key === "accountName") { if (obj.id) { @@ -403,11 +409,12 @@ function close() { state.dialogVisible = false; state.form = { ...state.resetForm }; state.type = ""; - + state.isEdit = false } function reset() { state.form = { ...state.resetForm }; state.type = ""; + state.isEdit = false } let ElMap = undefined; @@ -544,4 +551,7 @@ defineExpose({ .amap-sug-result { z-index: 2000; } +.tips{ + margin-left: 10px; +} From 3dc62a680252600cf9761f988184df7a1e55ffe2 Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Wed, 9 Apr 2025 16:43:18 +0800 Subject: [PATCH 02/12] =?UTF-8?q?fix=EF=BC=9A=E5=88=86=E5=BA=97=E7=AD=9B?= =?UTF-8?q?=E9=80=89=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/data/index.vue | 18 ++++++++++++++---- src/views/data/sales.vue | 10 +++++++--- src/views/shop/staff/config/search.ts | 2 +- 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/src/views/data/index.vue b/src/views/data/index.vue index 947c3c3..788111c 100644 --- a/src/views/data/index.vue +++ b/src/views/data/index.vue @@ -52,7 +52,7 @@ 营业
- +
@@ -391,7 +391,7 @@ export default { }, ], branchList: [], - storeId: null, + shopId: null, trade: {}, formatDecimal, topData: "", @@ -486,10 +486,18 @@ export default { // this.initCardUserChart(); }, methods: { + /** + * 获取分店列表 + */ async geiShopList() { let res = await ShopApi.getBranchList() this.branchList = res; }, + shopChange(){ + this.summarytrade(); + this.lineChartTypeChange(this.lineChartType) + this.dateProduct() + }, // 切换时间 timeChange(e) { const format = ["YYYY-MM-DD 00:00:00", "YYYY-MM-DD 23:59:59"]; @@ -555,6 +563,7 @@ export default { const res = await dataSummaryApi.trade({ beginDate: this.query.createdAt[0], endDate: this.query.createdAt[1], + shopId: this.shopId }); this.trade = res; this.tradeLoading = false; @@ -878,7 +887,7 @@ export default { async dateAmount() { try { this.saleLoading = true; - const res = await dataSummaryApi.dateAmount({ day: this.saleActive }); + const res = await dataSummaryApi.dateAmount({ day: this.saleActive,shopId: this.shopId }); const data = res.total.map((item) => { return { orderAmount: item.orderAmount, @@ -907,6 +916,7 @@ export default { day: this.saleTableActive, page: this.saleTablePage, size: this.saleTableSize, + shopId: this.shopId }); this.saleTable = res.records; this.saleTableTotal = res.totalRow * 1; @@ -922,7 +932,7 @@ export default { async datePayType() { try { this.payChartLoading = true; - const res = await dataSummaryApi.datePayType({ day: this.saleActive }); + const res = await dataSummaryApi.datePayType({ day: this.saleActive,shopId: this.shopId }); const data = res.countPayType.map((item) => { return { value: item.count, diff --git a/src/views/data/sales.vue b/src/views/data/sales.vue index a20a397..e972574 100644 --- a/src/views/data/sales.vue +++ b/src/views/data/sales.vue @@ -12,7 +12,7 @@ - + @@ -157,6 +157,7 @@