From 01b40b94278efaefd81b5f410aaa5818578d4f01 Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Mon, 27 May 2024 14:53:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=EF=BC=9A=E8=A1=A5=E8=B4=A7?= =?UTF-8?q?=E9=A2=9D=E5=BA=A6=E7=AE=A1=E7=90=86=E7=9B=B8=E5=85=B3=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/merchant.js | 15 + src/router/modules/merchant.js | 71 ++++- .../merchant/list/handle/merEditForm.vue | 3 +- src/views/merchant/quota/index.vue | 257 ++++++++++++++++++ 4 files changed, 340 insertions(+), 6 deletions(-) create mode 100644 src/views/merchant/quota/index.vue diff --git a/src/api/merchant.js b/src/api/merchant.js index 7aa718a..7761639 100644 --- a/src/api/merchant.js +++ b/src/api/merchant.js @@ -379,3 +379,18 @@ export function marginPaymentApi(id) { export function marginDeductionForm(id) { return request.get(`margin/set/${id}/form`) } +// 商户补货额度 - 变更 +export function merQuotaChange(data) { + return request.post('system/merchant/quota/change', data) +} +// 商户补货额度 - 变更记录 +export function merQuotaChangeRecord(data) { + return request.post('system/merchant/quota/change_record', data) +} + + + + + + + diff --git a/src/router/modules/merchant.js b/src/router/modules/merchant.js index 65f8ccc..0033d29 100644 --- a/src/router/modules/merchant.js +++ b/src/router/modules/merchant.js @@ -45,7 +45,7 @@ const merchantRouter = }, { path: 'smoke', - name: 'SmokeShopList', + name: 'MerchantSmokeList', meta: { title: '烟酒店', noCache: true, @@ -55,7 +55,7 @@ const merchantRouter = }, { path: 'supermarket', - name: 'supermarketShopList', + name: 'MerchantSupermarketList', meta: { title: '超市', noCache: true, @@ -65,7 +65,7 @@ const merchantRouter = }, { path: 'province', - name: 'provinceShopList', + name: 'MerchantProvinceList', meta: { title: '省公司门店', noCache: true, @@ -75,7 +75,7 @@ const merchantRouter = }, { path: 'hall', - name: 'hallShopList', + name: 'MerchantHallList', meta: { title: '城市会客厅', noCache: true, @@ -85,7 +85,7 @@ const merchantRouter = }, { path: 'health', - name: 'healthList', + name: 'MerchantHealthList', meta: { title: '健康体检馆', noCache: true, @@ -154,6 +154,67 @@ const merchantRouter = }, component: () => import('@/views/merchant/application/index') }, + // 商户补货额度管理 + { + path: 'shop_quota', + name: 'MerchantQuotaList', + meta: { + title: '酒道馆补货额度管理', + noCache: true, + merchant_type: 1, + }, + component: () => import('@/views/merchant/quota/index') + }, + { + path: 'smoke_quota', + name: 'SmokeQuotaList', + meta: { + title: '烟酒店补货额度管理', + noCache: true, + merchant_type: 3, + }, + component: () => import('@/views/merchant/quota/index') + }, + { + path: 'supermarket_quota', + name: 'supermarketQuotaList', + meta: { + title: '超市补货额度管理', + noCache: true, + merchant_type: 4, + }, + component: () => import('@/views/merchant/quota/index') + }, + { + path: 'province_quota', + name: 'provinceQuotaList', + meta: { + title: '省公司门店补货额度管理', + noCache: true, + merchant_type: 5, + }, + component: () => import('@/views/merchant/quota/index') + }, + { + path: 'hall_quota', + name: 'hallQuotaList', + meta: { + title: '城市会客厅补货额度管理', + noCache: true, + merchant_type: 6, + }, + component: () => import('@/views/merchant/quota/index') + }, + { + path: 'health_quota', + name: 'healthQuotaList', + meta: { + title: '健康体检馆补货额度管理', + noCache: true, + merchant_type: 7, + }, + component: () => import('@/views/merchant/quota/index') + }, // 其他 { path: 'system', diff --git a/src/views/merchant/list/handle/merEditForm.vue b/src/views/merchant/list/handle/merEditForm.vue index e5dd011..acbe1ea 100644 --- a/src/views/merchant/list/handle/merEditForm.vue +++ b/src/views/merchant/list/handle/merEditForm.vue @@ -161,7 +161,7 @@ - + +
+ + + +
+
+ + + + + + + +
+
+ + + + + + + + + + + + + +
+ + + + + + + 减少 + 增加 + + + + + + + + + + + 取 消 + 确 定 + + + + + + + + + + + + + + + + + + + + + + 关 闭 + + +
+ + + + +