diff --git a/src/api/merchant.js b/src/api/merchant.js index c06be93..cbc2ffe 100644 --- a/src/api/merchant.js +++ b/src/api/merchant.js @@ -210,8 +210,8 @@ export function merchantIsCloseApi(id, status) { /** * @description 商户列表 -- 开启商户数 */ -export function merchantCountApi() { - return request.get(`system/merchant/count`) +export function merchantCountApi(data) { + return request.get(`system/merchant/count`,data) } /** diff --git a/src/router/modules/merchant.js b/src/router/modules/merchant.js index 59cb7bc..3cf809f 100644 --- a/src/router/modules/merchant.js +++ b/src/router/modules/merchant.js @@ -1,127 +1,145 @@ - import Layout from '@/layout' -import { roterPre } from '@/settings' +import {roterPre} from '@/settings' + const merchantRouter = - { - path: `${roterPre}/merchant`, - name: 'merchant', - meta: { - icon: 'dashboard', - title: '商户管理' + { + path: `${roterPre}/merchant`, + name: 'merchant', + meta: { + icon: 'dashboard', + title: '商户管理' + }, + alwaysShow: true, + component: Layout, + children: [ + { + path: 'system', + name: 'MerchantSystem', + meta: { + title: '商户权限管理', + noCache: true + }, + component: () => import('@/views/merchant/system/index') }, - 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 }, - { - path: 'list', - name: 'MerchantList', - meta: { - title: '商户列表', - noCache: true - }, - component: () => import('@/views/merchant/list/index') + component: () => import('@/views/merchant/list/index') + }, + { + path: 'shop', + name: 'MerchantShopList', + meta: { + title: '酒道馆', + noCache: true }, - { - path: 'list/reconciliation/:id/:type?', - name: 'MerchantRecord', - component: () => import('@/views/merchant/list/record'), - meta: { - title: '商户对账', - noCache: true, - activeMenu: `${roterPre}/merchant/list` - }, - hidden: true + component: () => import('@/views/merchant/list/shop') + }, + { + path: 'supplier', + name: 'MerchantSupplierList', + meta: { + title: '供应商', + noCache: true }, - { - path: 'classify', - name: 'MerchantClassify', - meta: { - title: '商户分类', - noCache: true - }, - component: () => import('@/views/merchant/classify') + component: () => import('@/views/merchant/list/supplier') + }, + { + path: 'list/reconciliation/:id/:type?', + name: 'MerchantRecord', + component: () => import('@/views/merchant/list/record'), + meta: { + title: '商户对账', + noCache: true, + activeMenu: `${roterPre}/merchant/list` }, - { - path: 'application', - name: 'MerchantApplication', - meta: { - title: '商户申请', - noCache: true - }, - component: () => import('@/views/merchant/application') + hidden: true + }, + { + path: 'classify', + name: 'MerchantClassify', + meta: { + title: '商户分类', + noCache: true }, - { - path: 'agree', - name: 'MerchantAgreement', - meta: { - title: '入驻协议', - noCache: true - }, - component: () => import('@/views/merchant/agreement') + component: () => import('@/views/merchant/classify') + }, + { + path: 'application', + name: 'MerchantApplication', + meta: { + title: '商户申请', + noCache: true }, - { - path: 'type', - name: 'storeType', - meta: { - title: '店铺类型', - noCache: true - }, - component: () => import('@/views/merchant/type/index') - }, - { - path: 'applyMents', - name: 'MerchantApplyMents', - meta: { - title: '服务申请', - noCache: true - }, - component: () => import('@/views/merchant/applyments/index') - }, - { - path: 'applyList', - name: 'ApplyList', - meta: { - title: '分账商户列表' - }, - component: () => import('@/views/merchant/applyments/list') - }, - { - path: 'type/description', - name: 'MerTypeDesc', - meta: { - title: '店铺类型说明', - noCache: true, - }, - component: () => import('@/views/merchant/type/description') - }, - { - path: 'deposit_list', - name: 'DepositList', - meta: { - title: '店铺保证金管理', - noCache: true - }, - component: () => import('@/views/merchant/deposit/index') - }, - { - path: 'recharge_record', - name: 'RechargeRecord', - meta: { - title: '商户充值记录', - noCache: true - }, - component: () => import('@/views/merchant/rechargeRecord/index') - }, - ] - } + component: () => import('@/views/merchant/application') + }, + { + path: 'agree', + name: 'MerchantAgreement', + meta: { + title: '入驻协议', + noCache: true + }, + component: () => import('@/views/merchant/agreement') + }, + { + path: 'type', + name: 'storeType', + meta: { + title: '店铺类型', + noCache: true + }, + component: () => import('@/views/merchant/type/index') + }, + { + path: 'applyMents', + name: 'MerchantApplyMents', + meta: { + title: '服务申请', + noCache: true + }, + component: () => import('@/views/merchant/applyments/index') + }, + { + path: 'applyList', + name: 'ApplyList', + meta: { + title: '分账商户列表' + }, + component: () => import('@/views/merchant/applyments/list') + }, + { + path: 'type/description', + name: 'MerTypeDesc', + meta: { + title: '店铺类型说明', + noCache: true, + }, + component: () => import('@/views/merchant/type/description') + }, + { + path: 'deposit_list', + name: 'DepositList', + meta: { + title: '店铺保证金管理', + noCache: true + }, + component: () => import('@/views/merchant/deposit/index') + }, + { + path: 'recharge_record', + name: 'RechargeRecord', + meta: { + title: '商户充值记录', + noCache: true + }, + component: () => import('@/views/merchant/rechargeRecord/index') + }, + ] + } export default merchantRouter diff --git a/src/views/merchant/list/handle/merDetails.vue b/src/views/merchant/list/handle/merDetails.vue index 70cf1fb..7bd4831 100644 --- a/src/views/merchant/list/handle/merDetails.vue +++ b/src/views/merchant/list/handle/merDetails.vue @@ -72,13 +72,13 @@
- 添加商户 + 添加{{ defaultMerchantType == 1 ? '酒道馆' : (defaultMerchantType == 2 ? '供应商' :'商户') }}
- - + + @@ -321,6 +323,17 @@ + + + + + + + + + + + +
普通商户
+
酒道馆
+
供应商
+ + 登录 + 编辑 + 详情 + 删除 + + + + +
+ +
+ + + + + + + + diff --git a/src/views/merchant/list/supplier.vue b/src/views/merchant/list/supplier.vue new file mode 100644 index 0000000..de08aff --- /dev/null +++ b/src/views/merchant/list/supplier.vue @@ -0,0 +1,434 @@ + + + +