diff --git a/src/api/merchant.js b/src/api/merchant.js index 47dd3a9..cad095d 100644 --- a/src/api/merchant.js +++ b/src/api/merchant.js @@ -9,11 +9,23 @@ // +---------------------------------------------------------------------- import request from './request' + // 新增修改状态 export function updateStatus(mer_id, data) { return request.post(`merchant/intention/status/${mer_id}`, data) } +// 商户变更申请列表 +export function shopChangeList(data) { + return request.get(`merchant/intention/list`, data) +} + + +// 商户变更审核 +export function shoptypeAudit(data) { + return request.post(`merchant/intention/change/` + data.mer_intention_id, data) +} + /** * @description 商户权限管理 -- 列表 */ diff --git a/src/router/modules/merchant.js b/src/router/modules/merchant.js index 6cb88a0..3f83798 100644 --- a/src/router/modules/merchant.js +++ b/src/router/modules/merchant.js @@ -10,135 +10,144 @@ import Layout from '@/layout' import { roterPre } from '@/settings' const merchantRouter = +{ + path: `${roterPre}/merchant`, + name: 'merchant', + meta: { + icon: 'dashboard', + title: '商户管理' + }, + alwaysShow: true, + component: Layout, + children: [ { - path: `${roterPre}/merchant`, - name: 'merchant', + path: 'system', + name: 'MerchantSystem', meta: { - icon: 'dashboard', - title: '商户管理' + title: '商户权限管理', + noCache: true }, - 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 - }, - component: () => import('@/views/merchant/list/index') - }, - { - path: 'list/reconciliation/:id/:type?', - name: 'MerchantRecord', - component: () => import('@/views/merchant/list/record'), - meta: { - title: '商户对账', - noCache: true, - activeMenu: `${roterPre}/merchant/list` - }, - hidden: true - }, - { - path: 'classify', - name: 'MerchantClassify', - meta: { - title: '商户分类', - noCache: true - }, - component: () => import('@/views/merchant/classify') - }, - { - path: 'application', - name: 'MerchantApplication', - meta: { - title: '商户申请', - noCache: true - }, - component: () => import('@/views/merchant/application') - }, - { - path: 'wholesaleApply', - name: 'wholesaleApply', - meta: { - title: '商户批发申请', - noCache: true - }, - component: () => import('@/views/merchant/wholesaleApply') - }, - { - 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') - }, - ] - } + component: () => import('@/views/merchant/system/index') + }, + { + path: 'list', + name: 'MerchantList', + meta: { + title: '商户列表', + noCache: true + }, + component: () => import('@/views/merchant/list/index') + }, + { + path: 'list/reconciliation/:id/:type?', + name: 'MerchantRecord', + component: () => import('@/views/merchant/list/record'), + meta: { + title: '商户对账', + noCache: true, + activeMenu: `${roterPre}/merchant/list` + }, + hidden: true + }, + { + path: 'classify', + name: 'MerchantClassify', + meta: { + title: '商户分类', + noCache: true + }, + component: () => import('@/views/merchant/classify') + }, + { + path: 'application', + name: 'MerchantApplication', + meta: { + title: '商户申请', + noCache: true + }, + component: () => import('@/views/merchant/application') + }, + { + path: 'wholesaleApply', + name: 'wholesaleApply', + meta: { + title: '商户批发申请', + noCache: true + }, + component: () => import('@/views/merchant/wholesaleApply') + }, + { + path: 'shoptype', + name: 'MerchantShoptype', + meta: { + title: '商户申请', + noCache: true + }, + component: () => import('@/views/merchant/shoptype') + }, + { + 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/accounts/subsidy/index.vue b/src/views/accounts/subsidy/index.vue index 78b5aac..f6392ed 100644 --- a/src/views/accounts/subsidy/index.vue +++ b/src/views/accounts/subsidy/index.vue @@ -43,17 +43,19 @@ - + @@ -69,53 +71,6 @@ /> - - - - - - - - - - - - - - - - - - - - @@ -139,7 +94,6 @@ export default { data: [], total: 0 }, - dialogVisible: false, roterPre: roterPre, listLoading: true, tableFrom: { @@ -152,39 +106,12 @@ export default { fromList: fromList, options: [], cardLists: [], - formData: { - extra: {} - }, - rules:{ - amount: [{ - required: true, - message: '请输入补贴金额', - tigger: 'blur' - }] - } } }, mounted() { this.getList() }, methods: { - showDialog(row){ - this.formData = {...row}; - this.dialogVisible = true; - }, - updateInfo(){ - this.$refs.editForm.validate((valid) => { - if (valid) { - subsidyUpdateApi(this.formData).then(res => { - this.$message.success(res.message); - this.dialogVisible = false; - this.getList() - }).catch(res => { - this.$message.error(res.message); - }) - } - }) - }, /**重置 */ searchReset(){ this.timeVal = [] diff --git a/src/views/merchant/shoptype/index.vue b/src/views/merchant/shoptype/index.vue new file mode 100644 index 0000000..6058083 --- /dev/null +++ b/src/views/merchant/shoptype/index.vue @@ -0,0 +1,295 @@ + + + + \ No newline at end of file