From 54acac218f00e0fec78e89766b1eab271675545d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Tue, 6 Aug 2024 22:53:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=94=80=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 3 + src/views/bl/commission/fxy/fxyApply.vue | 541 ++++++++++++++++------- src/views/bl/commission/fxy/fxyData.vue | 488 ++++++++++++++++++++ src/views/bl/commission/fxy/fxyOrder.vue | 304 +++++++++++++ src/views/bl/commission/jjr/jjrApply.vue | 3 + src/views/bl/commission/jjr/jjrData.vue | 3 + 6 files changed, 1186 insertions(+), 156 deletions(-) create mode 100644 src/views/bl/commission/fxy/fxyData.vue create mode 100644 src/views/bl/commission/fxy/fxyOrder.vue diff --git a/src/router/index.js b/src/router/index.js index f1195d4..4eacbda 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -137,8 +137,11 @@ const mainRoutes = { { path: '/travelConf', component: _import('travelConf/index'), name: 'travelConf', meta: { title: '出行配置', isTab: true } }, { path: '/fxyConfig', component: _import('bl/commission/fxy/fxyConfig'), name: 'fxyConfig', meta: { title: '分销员设置', isTab: true } }, { path: '/fxyApply', component: _import('bl/commission/fxy/fxyApply'), name: 'fxyApply', meta: { title: '分销员审核', isTab: true } }, + { path: '/fxyData', component: _import('bl/commission/fxy/fxyData'), name: 'fxyData', meta: { title: '分销员数据', isTab: true } }, + { path: '/fxyOrder', component: _import('bl/commission/fxy/fxyOrder'), name: 'fxyOrder', meta: { title: '分销员门槛订单', isTab: true } }, { path: '/jjrConfig', component: _import('bl/commission/jjr/jjrConfig'), name: 'jjrConfig', meta: { title: '经纪人设置', isTab: true } }, { path: '/jjrApply', component: _import('bl/commission/jjr/jjrApply'), name: 'jjrApply', meta: { title: '经纪人审核', isTab: true } }, + { path: '/jjrData', component: _import('bl/commission/jjr/jjrData'), name: 'jjrData', meta: { title: '经纪人数据', isTab: true } }, { path: '/ywyConfig', component: _import('bl/commission/ywy/ywyConfig'), name: 'ywyConfig', meta: { title: '业务员设置', isTab: true } }, { path: '/ywyApply', component: _import('bl/commission/ywy/ywyApply'), name: 'ywyApply', meta: { title: '业务员审核', isTab: true } }, ], diff --git a/src/views/bl/commission/fxy/fxyApply.vue b/src/views/bl/commission/fxy/fxyApply.vue index dd045d2..3794e1d 100644 --- a/src/views/bl/commission/fxy/fxyApply.vue +++ b/src/views/bl/commission/fxy/fxyApply.vue @@ -57,30 +57,20 @@ @click="handleClear" >重置 - 添加 - - +
@@ -405,7 +519,7 @@
- 审批意见: + 审批意见: { + let id = row.id; + this.$http({ + url: this.$http.adornUrl("commission/fxyApply/delete"), + method: "post", + params: this.$http.adornParams({ + id: id + }), + }).then(({data}) => { + if (data.code == 0) { + this.clearDatas(); + this.$message({ + message: "删除成功", + type: "success", + duration: 1500, + onClose: () => { + this.handleSelect(); + }, + }); + } else { + this.$message({ + message: data.msg, + type: "warning", + duration: 1500, + onClose: () => { + }, + }); + } + }); + }).catch(() => {}); + }, + //授权 handleApprove() { if (this.status == "") { this.$notify({ @@ -669,7 +835,40 @@ export default { this.dialogApproveFormVisible = false; this.clearDatas(); this.$message({ - message: "操作成功", + message: "审核成功", + type: "success", + duration: 1500, + onClose: () => { + this.handleSelect(); + }, + }); + } else { + this.$message({ + message: data.msg, + type: "warning", + duration: 1500, + onClose: () => { + }, + }); + } + }); + }, + //取消授权 + handleCancelApply(row){ + let id = row.id; + this.$http({ + url: this.$http.adornUrl("commission/fxyApply/approve"), + method: "post", + params: this.$http.adornParams({ + id: id, + opinion: '系统取消授权', + status: 0, + }), + }).then(({data}) => { + if (data.code == 0) { + this.clearDatas(); + this.$message({ + message: "取消成功", type: "success", duration: 1500, onClose: () => { @@ -687,7 +886,6 @@ export default { } }); }, - clearDatas(){ this.apiUrl=""; this.tableDataLoading= false; @@ -707,22 +905,26 @@ export default { this.handleSelect(); }, - showUsersView(){ - this.handleSelectUsers(); - this.dialogUserListFormVisible = true; + handleSuperiorFxyView(row){ + this.userId = row.userId, + this.handleClearFxy(); + this.dialogFxyListFormVisible = true; }, - handleSelectUsers(){ - this.userTableDataLoading = true; + handleSelectSuperiorFxy(){ + this.fxyTableDataLoading = true; this.$http({ - url: this.$http.adornUrl("commission/fxyApply/findUserPage"), + url: this.$http.adornUrl("commission/fxyApply/findSuperiorFxyPage"), method: "get", params: this.$http.adornParams({ - userPage: this.userPage, - userLimit: this.userLimit, + page: this.fxyPage, + limit: this.fxyLimit, + name: this.fxyName, + phone: this.fxyPhone, + invitationCode: this.invitationCode, }), }).then(({data}) => { if (data.code == 0) { - this.userTableData = data.data; + this.fxyTableData = data.data; } else { this.$notify({ title: "提示", @@ -731,37 +933,64 @@ export default { type: "warning", }); } - this.userTableDataLoading = false; + this.fxyTableDataLoading = false; }); }, //分页 - handleUserSizeChange(val) { - this.userLimit = val; - this.handleSelectUsers(); + handleFxySizeChange(val) { + this.fxyLimit = val; + this.handleSelectSuperiorFxy(); }, //翻页 - handleUserCurrentChange(val) { - this.userPage = val; - this.handleSelectUsers(); + handleFxyCurrentChange(val) { + this.fxyPage = val; + this.handleSelectSuperiorFxy(); }, // 重置 - handleClearUsers() { - this.userName = ""; - this.phone = ""; + handleClearFxy() { + this.fxyName = ""; + this.fxyPhone = ""; this.invitationCode = ""; - this.userPage = 1; - this.userLimit = 10; - this.handleSelectUsers(); + this.fxtPage = 1; + this.fxtLimit = 10; + this.handleSelectSuperiorFxy(); }, - handleAddUser(row){ - this.userId = row.userId; - this.avatar = row.avatar; - this.userName = row.userName; - this.dialogUserListFormVisible = false; + handleAddFxy(row){ + let userId = this.userId; + let invitationCode = row.invitationCode; + this.$http({ + url: this.$http.adornUrl("commission/fxyApply/setSuperiorFxy"), + method: "post", + params: this.$http.adornParams({ + userId: userId, + invitationCode: invitationCode, + }), + }).then(({data}) => { + if (data.code == 0) { + this.clearDatas(); + this.$message({ + message: "取消成功", + type: "success", + duration: 1500, + onClose: () => { + this.handleSelect(); + this.dialogFxyListFormVisible = false; + }, + }); + } else { + this.$message({ + message: data.msg, + type: "warning", + duration: 1500, + onClose: () => { + }, + }); + } + }); }, }, @@ -777,104 +1006,104 @@ export default { } .el-dialog--center { text-align: center; - margin-top: 1vh !important; + margin-top: 1vh !important; } .el-tooltip__popper { -width: 200px; -padding: 10px; -color: #000 !important; -box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4); -background-color: #fff !important; + width: 200px; + padding: 10px; + color: #000 !important; + box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4); + background-color: #fff !important; } .adver_main.box a { -display: flex; -justify-content: center; -height: 150px; -line-height: 150px; -text-decoration: none; + display: flex; + justify-content: center; + height: 150px; + line-height: 150px; + text-decoration: none; } .bannerManin span { -display: inline-block; -margin-left: 5px; + display: inline-block; + margin-left: 5px; } .bannerManin img { -width: 48px; -height: 48px; -border-radius: 50%; + width: 48px; + height: 48px; + border-radius: 50%; } .bannerbtn a { -flex: 1; -text-align: center; -color: #3e8ef7 !important; -text-decoration: none; + flex: 1; + text-align: center; + color: #3e8ef7 !important; + text-decoration: none; } .imgs { -position: relative; -border-radius: 6px; -width: 148px; -height: 148px; -margin-right: 10px; -display: inline-block; + position: relative; + border-radius: 6px; + width: 148px; + height: 148px; + margin-right: 10px; + display: inline-block; } .dels { -position: absolute; -top: 0; -left: 0; -display: none; + position: absolute; + top: 0; + left: 0; + display: none; } .dels .el-icon-delete { -line-height: 148px; -padding-left: 58px; -font-size: 25px; -color: #fff; + line-height: 148px; + padding-left: 58px; + font-size: 25px; + color: #fff; } .imgs:hover .dels { -width: 100%; -height: 100%; -background: #000; -display: block; -opacity: 0.5; + width: 100%; + height: 100%; + background: #000; + display: block; + opacity: 0.5; } .bqList { -padding: 4px 14px; -margin: 4px; -border: 1px solid #efefef; -font-size: 12px; -color: #999; -border-radius: 4px; -margin-right: 15px; + padding: 4px 14px; + margin: 4px; + border: 1px solid #efefef; + font-size: 12px; + color: #999; + border-radius: 4px; + margin-right: 15px; } .delss { -display: none; -position: relative; + display: none; + position: relative; } .delss .el-icon-delete { -position: absolute; -top: 0; + position: absolute; + top: 0; } .bqList:hover .delss { -display: initial; -opacity: 0.5; + display: initial; + opacity: 0.5; } .tj { -padding: 6px !important; -margin: 4px; -font-size: 12px; -border: 1px solid #ccc; -border-radius: 4px; + padding: 6px !important; + margin: 4px; + font-size: 12px; + border: 1px solid #ccc; + border-radius: 4px; } diff --git a/src/views/bl/commission/fxy/fxyData.vue b/src/views/bl/commission/fxy/fxyData.vue new file mode 100644 index 0000000..bee4adf --- /dev/null +++ b/src/views/bl/commission/fxy/fxyData.vue @@ -0,0 +1,488 @@ + + + + + diff --git a/src/views/bl/commission/fxy/fxyOrder.vue b/src/views/bl/commission/fxy/fxyOrder.vue new file mode 100644 index 0000000..2415dc7 --- /dev/null +++ b/src/views/bl/commission/fxy/fxyOrder.vue @@ -0,0 +1,304 @@ + + + + + diff --git a/src/views/bl/commission/jjr/jjrApply.vue b/src/views/bl/commission/jjr/jjrApply.vue index d3d8252..406522a 100644 --- a/src/views/bl/commission/jjr/jjrApply.vue +++ b/src/views/bl/commission/jjr/jjrApply.vue @@ -912,6 +912,9 @@ export default { params: this.$http.adornParams({ userPage: this.userPage, userLimit: this.userLimit, + userName: this.userName, + phone: this.phone, + invitationCode: this.invitationCode, }), }).then(({data}) => { if (data.code == 0) { diff --git a/src/views/bl/commission/jjr/jjrData.vue b/src/views/bl/commission/jjr/jjrData.vue index 0d1a6ee..5fcc976 100644 --- a/src/views/bl/commission/jjr/jjrData.vue +++ b/src/views/bl/commission/jjr/jjrData.vue @@ -97,18 +97,21 @@ prop="artificerCount" label="累计邀请技师" width="150" + align="right" >