From 5e610d0207101c29fd66b2aeee76aed183d3acf1 Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Fri, 26 Apr 2024 18:02:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E5=95=86=E6=88=B7?= =?UTF-8?q?=E6=89=80=E6=9C=89=E5=88=86=E7=B1=BB=E5=88=97=E8=A1=A8=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=BC=98=E5=8C=96=20=E5=85=A8=E9=83=A8=E8=81=9A?= =?UTF-8?q?=E5=90=88=E5=9C=A8=E4=B8=80=E4=B8=AA=E9=A1=B5=E9=9D=A2=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E5=9C=A8=E6=98=AF=E6=AF=8F=E4=B8=AA=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E5=8D=95=E7=8B=AC=E4=B8=80=E4=B8=AA=E9=A1=B5=E9=9D=A2=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=EF=BC=9A=E5=81=A5=E5=BA=B7=E4=BD=93=E6=A3=80?= =?UTF-8?q?=E9=A6=86=E7=9B=B8=E5=85=B3=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/filters/commFilter.js | 14 + src/router/modules/merchant.js | 183 +++++---- src/views/merchant/application/hall_apply.vue | 375 ----------------- src/views/merchant/application/index.vue | 160 +++++--- src/views/merchant/application/shop_apply.vue | 375 ----------------- .../merchant/application/smoke_apply.vue | 375 ----------------- .../application/supermarket_apply.vue | 375 ----------------- src/views/merchant/list/hall.vue | 378 ----------------- .../merchant/list/handle/merEditForm.vue | 11 +- src/views/merchant/list/handle/merInfo.vue | 11 +- src/views/merchant/list/index.vue | 145 ++++--- src/views/merchant/list/province.vue | 379 ----------------- src/views/merchant/list/shop.vue | 383 ------------------ src/views/merchant/list/smoke.vue | 378 ----------------- src/views/merchant/list/supermarket.vue | 378 ----------------- src/views/merchant/list/supplier.vue | 378 ----------------- 16 files changed, 304 insertions(+), 3994 deletions(-) delete mode 100644 src/views/merchant/application/hall_apply.vue delete mode 100644 src/views/merchant/application/shop_apply.vue delete mode 100644 src/views/merchant/application/smoke_apply.vue delete mode 100644 src/views/merchant/application/supermarket_apply.vue delete mode 100644 src/views/merchant/list/hall.vue delete mode 100644 src/views/merchant/list/province.vue delete mode 100644 src/views/merchant/list/shop.vue delete mode 100644 src/views/merchant/list/smoke.vue delete mode 100644 src/views/merchant/list/supermarket.vue delete mode 100644 src/views/merchant/list/supplier.vue diff --git a/src/filters/commFilter.js b/src/filters/commFilter.js index 06043d9..0b264f9 100644 --- a/src/filters/commFilter.js +++ b/src/filters/commFilter.js @@ -477,3 +477,17 @@ export function integralOrderStatus(status) { } return statusMap[status] } +// 商户类型 +export function merchantTypeText(merchantType = 0) { + const textArray = { + 0: '商户', + 1: '酒道馆', + 2: '供应商', + 3: '烟酒店', + 4: '超市', + 5: '省公司门店', + 6: '城市会客厅', + 7: '健康体检馆', + } + return textArray[Number(merchantType)] || '商户'; +} diff --git a/src/router/modules/merchant.js b/src/router/modules/merchant.js index ab69d30..65f8ccc 100644 --- a/src/router/modules/merchant.js +++ b/src/router/modules/merchant.js @@ -12,21 +12,14 @@ const merchantRouter = alwaysShow: true, component: Layout, children: [ - { - path: 'system', - name: 'MerchantSystem', - meta: { - title: '商户权限管理', - noCache: true - }, - component: () => import('@/views/merchant/system/index') - }, + // 商户列表 { path: 'list', name: 'MerchantList', meta: { - title: '商户列表', - noCache: true + title: '联盟商家', + noCache: true, + merchant_type: 0, }, component: () => import('@/views/merchant/list/index') }, @@ -35,90 +28,141 @@ const merchantRouter = name: 'MerchantShopList', meta: { title: '酒道馆', - noCache: true + noCache: true, + merchant_type: 1, }, - component: () => import('@/views/merchant/list/shop') - }, - { - path: 'shopApply', - name: 'MerchantShopApply', - meta: { - title: '酒道馆申请审核', - noCache: true - }, - component: () => import('@/views/merchant/application/shop_apply') + component: () => import('@/views/merchant/list/index') }, { path: 'supplier', name: 'MerchantSupplierList', meta: { title: '供应商', - noCache: true + noCache: true, + merchant_type: 2, }, - component: () => import('@/views/merchant/list/supplier') + component: () => import('@/views/merchant/list/index') }, { path: 'smoke', name: 'SmokeShopList', meta: { title: '烟酒店', - noCache: true + noCache: true, + merchant_type: 3, }, - component: () => import('@/views/merchant/list/smoke') - }, - { - path: 'smoke_apply', - name: 'SmokeApplyList', - meta: { - title: '入驻申请审核', - noCache: true - }, - component: () => import('@/views/merchant/application/smoke_apply') - }, - { - path: 'hall', - name: 'hallShopList', - meta: { - title: '城市会客厅', - noCache: true - }, - component: () => import('@/views/merchant/list/hall') - }, - { - path: 'hall_apply', - name: 'hallApplyList', - meta: { - title: '入驻申请审核', - noCache: true - }, - component: () => import('@/views/merchant/application/hall_apply') + component: () => import('@/views/merchant/list/index') }, { path: 'supermarket', name: 'supermarketShopList', meta: { title: '超市', - noCache: true + noCache: true, + merchant_type: 4, }, - component: () => import('@/views/merchant/list/supermarket') - }, - { - path: 'supermarket_apply', - name: 'supermarketApplyList', - meta: { - title: '入驻申请审核', - noCache: true - }, - component: () => import('@/views/merchant/application/supermarket_apply') + component: () => import('@/views/merchant/list/index') }, { path: 'province', name: 'provinceShopList', meta: { title: '省公司门店', + noCache: true, + merchant_type: 5, + }, + component: () => import('@/views/merchant/list/index') + }, + { + path: 'hall', + name: 'hallShopList', + meta: { + title: '城市会客厅', + noCache: true, + merchant_type: 6, + }, + component: () => import('@/views/merchant/list/index') + }, + { + path: 'health', + name: 'healthList', + meta: { + title: '健康体检馆', + noCache: true, + merchant_type: 7, + }, + component: () => import('@/views/merchant/list/index') + }, + // 商户申请审核列表 + { + path: 'application', + name: 'MerchantApplication', + meta: { + title: '商户申请', + noCache: true, + merchant_type: 0, + }, + component: () => import('@/views/merchant/application/index') + }, + { + path: 'shopApply', + name: 'MerchantShopApply', + meta: { + title: '酒道馆申请审核', + noCache: true, + merchant_type: 1, + }, + component: () => import('@/views/merchant/application/index') + }, + { + path: 'smoke_apply', + name: 'SmokeApplyList', + meta: { + title: '入驻申请审核', + noCache: true, + merchant_type: 3, + }, + component: () => import('@/views/merchant/application/index') + }, + { + path: 'supermarket_apply', + name: 'supermarketApplyList', + meta: { + title: '入驻申请审核', + noCache: true, + merchant_type: 4, + }, + component: () => import('@/views/merchant/application/index') + }, + { + path: 'hall_apply', + name: 'hallApplyList', + meta: { + title: '入驻申请审核', + noCache: true, + merchant_type: 6, + }, + component: () => import('@/views/merchant/application/index') + }, + { + path: 'health_apply', + name: 'healthApplyList', + meta: { + title: '入驻申请审核', + noCache: true, + merchant_type: 7, + }, + component: () => import('@/views/merchant/application/index') + }, + // 其他 + { + path: 'system', + name: 'MerchantSystem', + meta: { + title: '商户权限管理', noCache: true }, - component: () => import('@/views/merchant/list/province') + component: () => import('@/views/merchant/system/index') }, { path: 'list/reconciliation/:id/:type?', @@ -149,15 +193,6 @@ const merchantRouter = }, component: () => import('@/views/merchant/brand') }, - { - path: 'application', - name: 'MerchantApplication', - meta: { - title: '商户申请', - noCache: true - }, - component: () => import('@/views/merchant/application/index') - }, { path: 'agree', name: 'MerchantAgreement', diff --git a/src/views/merchant/application/hall_apply.vue b/src/views/merchant/application/hall_apply.vue deleted file mode 100644 index 0150e79..0000000 --- a/src/views/merchant/application/hall_apply.vue +++ /dev/null @@ -1,375 +0,0 @@ - - - - - diff --git a/src/views/merchant/application/index.vue b/src/views/merchant/application/index.vue index 610d792..f64f590 100644 --- a/src/views/merchant/application/index.vue +++ b/src/views/merchant/application/index.vue @@ -15,7 +15,8 @@ v-for="(itemn, indexn) in fromList.fromTxt" :key="indexn" :label="itemn.val" - >{{ itemn.text }}{{ itemn.text }} + {{ itemn.text }}{{ itemn.text }} + - + - +