|
@@ -75,11 +75,11 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="createTime" label="申请人"></el-table-column>
|
|
|
+ <el-table-column prop="applyUserName" label="申请人"></el-table-column>
|
|
|
<el-table-column prop="createTime" label="退费金额">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
- <p v-if="scope.row.status == 'PROCESSING'">--</p>
|
|
|
+ <p v-if="!scope.row.returnTotalFee">--</p>
|
|
|
<p v-else>
|
|
|
{{ scope.row.returnTotalFee | moneyFormat }}
|
|
|
</p>
|
|
@@ -95,7 +95,11 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="状态">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.status | withdrawalStatus }}
|
|
|
+ <div>
|
|
|
+ {{ scope.row.status | withdrawalStatus }}
|
|
|
+ <span v-if="scope.row.status=='PROCESSING'">({{scope.row.currentApproveRole==3?'分部经理':'乐团主管'}})</span>
|
|
|
+ </div>
|
|
|
+
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -110,32 +114,50 @@
|
|
|
"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- v-if="permission('musicGroupQuit/quitMusicGroup/quit')"
|
|
|
- :disabled="(scope.row.status != 'PROCESSING'||scope.row.status =='DENIED'||scope.row.status =='CANCELED')||!isManage&¤tApproveRole=='4'"
|
|
|
- @click="quieTeamMask(scope.row)"
|
|
|
- >立即处理</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- v-if="permission('musicGroupQuit/quitMusicGroup/quit')"
|
|
|
- :disabled="scope.row.status == 'PROCESSING'"
|
|
|
- @click="quieTeamMask(scope.row,'look')"
|
|
|
- >查看</el-button
|
|
|
- >
|
|
|
- <!-- <el-button
|
|
|
+ <div>
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ v-if="permission('musicGroupQuit/quitMusicGroup/quit')"
|
|
|
+ :disabled="
|
|
|
+ scope.row.status != 'PROCESSING' ||
|
|
|
+ scope.row.status == 'DENIED' ||
|
|
|
+ scope.row.status == 'CANCELED' ||
|
|
|
+ (scope.row.status == 'PROCESSING' &&
|
|
|
+ isManage=='manage' &&
|
|
|
+ scope.row.currentApproveRole == '4')||(scope.row.status == 'PROCESSING' &&
|
|
|
+ !isManage &&
|
|
|
+ scope.row.currentApproveRole == '3')
|
|
|
+ "
|
|
|
+ @click="quieTeamMask(scope.row)"
|
|
|
+ >立即处理</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ v-if="permission('musicGroupQuit/quitMusicGroup/quit')"
|
|
|
+ :disabled="!( scope.row.status != 'PROCESSING' ||
|
|
|
+ scope.row.status == 'DENIED' ||
|
|
|
+ scope.row.status == 'CANCELED' ||
|
|
|
+ (scope.row.status == 'PROCESSING' &&
|
|
|
+ isManage=='manage' &&
|
|
|
+ scope.row.currentApproveRole == '4')||(scope.row.status == 'PROCESSING' &&
|
|
|
+ !isManage &&
|
|
|
+ scope.row.currentApproveRole == '3'))"
|
|
|
+ @click="quieTeamMask(scope.row, 'look')"
|
|
|
+ >查看</el-button
|
|
|
+ >
|
|
|
+ <!-- <el-button
|
|
|
type="text"
|
|
|
v-if="permission('musicGroupQuit/quitMusicGroup/quit-only')"
|
|
|
:disabled="scope.row.status != 'PROCESSING'"
|
|
|
@click="quieTeam(scope.row)"
|
|
|
>退团</el-button> -->
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- v-if="permission('visit/add/tuituanliebiao')"
|
|
|
- @click="addVisit(scope.row)"
|
|
|
- >新增回访</el-button
|
|
|
- >
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ v-if="permission('visit/add/tuituanliebiao')"
|
|
|
+ @click="addVisit(scope.row)"
|
|
|
+ >新增回访</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -148,7 +170,11 @@
|
|
|
@pagination="FetchList"
|
|
|
/>
|
|
|
</div>
|
|
|
- <el-dialog :title="isDisabled?'查看':'立即处理'" width="700px" :visible.sync="quitVisible">
|
|
|
+ <el-dialog
|
|
|
+ :title="isDisabled ? '查看' : '立即处理'"
|
|
|
+ width="700px"
|
|
|
+ :visible.sync="quitVisible"
|
|
|
+ >
|
|
|
<quitModal
|
|
|
v-if="quitVisible"
|
|
|
:quitForm="quitForm"
|
|
@@ -270,17 +296,18 @@ export default {
|
|
|
userComment: null,
|
|
|
},
|
|
|
isManage: false,
|
|
|
- isDisabled:false
|
|
|
+ isDisabled: false,
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
let isSuperAdmin = this.$store.getters.isSuperAdmin;
|
|
|
let roles = this.$store.getters.roles;
|
|
|
+ console.log(roles)
|
|
|
if (isSuperAdmin) {
|
|
|
- this.isManage = true;
|
|
|
+ this.isManage = 'super';
|
|
|
} else {
|
|
|
- if (roles.indexof(3) != -1) {
|
|
|
- this.isManage = true;
|
|
|
+ if (roles.indexOf(3) != -1) {
|
|
|
+ this.isManage = 'manage';
|
|
|
} else {
|
|
|
this.isManage = false;
|
|
|
}
|
|
@@ -301,13 +328,13 @@ export default {
|
|
|
this.searchForm = { ...initSearch };
|
|
|
this.submit();
|
|
|
},
|
|
|
- async quieTeamMask(row,look) {
|
|
|
+ async quieTeamMask(row, look) {
|
|
|
await musicGroupQuit({ id: row.id }).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
- if(look=='look'){
|
|
|
- this.isDisabled = true
|
|
|
- }else{
|
|
|
- this.isDisabled = false
|
|
|
+ if (look == "look") {
|
|
|
+ this.isDisabled = true;
|
|
|
+ } else {
|
|
|
+ this.isDisabled = false;
|
|
|
}
|
|
|
this.musicForm = res.data;
|
|
|
this.activeRow = { ...row, ...res.data.returnFeeDto };
|
|
@@ -318,7 +345,7 @@ export default {
|
|
|
this.quitForm.studentName = res.data.user?.username;
|
|
|
this.quitForm.musicGroupName = res.data.musicGroup?.name;
|
|
|
this.quitForm.hasMaintenance = res.data.hasMaintenance;
|
|
|
- this.quitForm.reason = res.data.reason
|
|
|
+ this.quitForm.reason = res.data.reason;
|
|
|
this.quitForm.id = res.data.id;
|
|
|
this.quitForm = { ...this.quitForm, ...res.data.returnFeeDto };
|
|
|
this.quitVisible = true;
|
|
@@ -386,19 +413,6 @@ export default {
|
|
|
memberFee: query.memberFee,
|
|
|
musicalFee: query.musicalFee,
|
|
|
};
|
|
|
- if (
|
|
|
- this.activeRow.memberFee < parseFloat(query.returnFeeDto.memberFee)
|
|
|
- ) {
|
|
|
- this.$message.error("会员金额不能超过默认金额");
|
|
|
- return;
|
|
|
- }
|
|
|
- if (
|
|
|
- this.activeRow.maintenanceFee <
|
|
|
- parseFloat(query.returnFeeDto.maintenanceFee)
|
|
|
- ) {
|
|
|
- this.$message.error("乐保金额不能超过默认金额");
|
|
|
- return;
|
|
|
- }
|
|
|
await quitMusicGroup(cleanDeep(query)).then((res) => {
|
|
|
this.$message.success("处理成功");
|
|
|
this.activeRow = null;
|
|
@@ -423,5 +437,4 @@ export default {
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
}
|
|
|
-
|
|
|
</style>
|