From d832e58da7bf4479f3bc6a1dc1ef18dead05ca2f Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Wed, 20 Mar 2024 15:25:46 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=EF=BC=9A=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=20-=20=E4=BB=A3=E7=90=86=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=A0=B7=E5=BC=8F=E9=87=8D=E6=9E=84=EF=BC=8C?= =?UTF-8?q?=E7=94=B1=E5=85=A8=E9=83=A8=E6=98=BE=E7=A4=BA=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=88=86=E7=BB=84=E6=98=BE=E7=A4=BA=EF=BC=8C=E4=B8=94?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=98=BE=E7=A4=BA=E6=AF=8F=E7=BB=84=E6=9C=80?= =?UTF-8?q?=E4=B8=8A=E7=BA=A7=E8=A7=92=E8=89=B2=EF=BC=8C=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E4=B8=8B=E7=BA=A7=E6=8C=89=E9=92=AE=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E4=B8=8B=E7=BA=A7=20=E4=BC=98=E5=8C=96=EF=BC=9A?= =?UTF-8?q?=E4=BB=A3=E7=90=86=E4=B8=AD=E5=BF=83=20-=20=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=90=8E=E8=87=AA=E5=8A=A8=E5=A1=AB=E5=85=85?= =?UTF-8?q?=E8=81=94=E7=B3=BB=E4=BA=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/marketing.js | 8 + src/router/modules/marketing.js | 9 + src/views/marketing/agent/agent/new_index.vue | 326 ++++++++++++++++++ .../marketing/agent/agent/template/edit.vue | 10 +- 4 files changed, 350 insertions(+), 3 deletions(-) create mode 100644 src/views/marketing/agent/agent/new_index.vue diff --git a/src/api/marketing.js b/src/api/marketing.js index 1498a8c..36cc730 100644 --- a/src/api/marketing.js +++ b/src/api/marketing.js @@ -768,6 +768,14 @@ export function getEditInfo(data) { export function agentList(data) { return request.get(`marketing/agent/list`,data) } +// 代理中心 - 代理列表 - 新 +export function newAgentList(data) { + return request.get(`marketing/agent/new_list`,data) +} +// 代理中心 - 下级列表 +export function childrenList(data) { + return request.get(`marketing/agent/children_list`,data) +} // 代理中心 - 申请列表 export function agentApplyList(data) { return request.get(`marketing/agent/apply_list`,data) diff --git a/src/router/modules/marketing.js b/src/router/modules/marketing.js index 0200ecf..f4dfe49 100644 --- a/src/router/modules/marketing.js +++ b/src/router/modules/marketing.js @@ -532,6 +532,15 @@ const marketingRouter = }, component: () => import('@/views/marketing/agent/agent/index') }, + { + path: 'new_list', + name: `newAgentList`, + meta: { + title: '代理管理', + noCache: true + }, + component: () => import('@/views/marketing/agent/agent/new_index') + }, { path: 'apply', name: `agentApply`, diff --git a/src/views/marketing/agent/agent/new_index.vue b/src/views/marketing/agent/agent/new_index.vue new file mode 100644 index 0000000..093e8d2 --- /dev/null +++ b/src/views/marketing/agent/agent/new_index.vue @@ -0,0 +1,326 @@ + + + + + diff --git a/src/views/marketing/agent/agent/template/edit.vue b/src/views/marketing/agent/agent/template/edit.vue index 23c0f98..9e917fd 100644 --- a/src/views/marketing/agent/agent/template/edit.vue +++ b/src/views/marketing/agent/agent/template/edit.vue @@ -276,7 +276,7 @@ - +
@@ -435,6 +435,7 @@ export default { children_list: {}, children_uid_list: {}, // 用户选择弹框 + userSelectTitle: '用户选择', userSelectVisible: false, userListLoading: true, userTableFrom: { @@ -508,6 +509,9 @@ export default { case 10: this.page_title = '总部内勤信息编辑'; break; + case 11: + this.page_title = '烟酒馆信息编辑'; + break; } }, immediate: true @@ -603,8 +607,8 @@ export default { pid: this.info.id || 0, agent_type: this.create_role_type, agent_stock: 0, - contact_name: '', - contact_phone: '', + contact_name: item.real_name || item.nickname, + contact_phone: item.phone || '', province_id: 0, city_id: 0, area_id: 0,