|
@@ -214,6 +214,9 @@
|
|
|
v-if='scope.row.paymentStatus==2'
|
|
|
@click='quitTeam(scope.row)'>退团</el-button>
|
|
|
<el-button type="text"
|
|
|
+ v-if="permission('musicGroupQuit/directQuitMusicGroup3')&&scope.row.paymentStatus==2"
|
|
|
+ @click="quieTeams(scope.row)">退团不退费</el-button>
|
|
|
+ <el-button type="text"
|
|
|
v-if="permission('visit/add')"
|
|
|
@click="addVisit(scope.row)">新增回访</el-button>
|
|
|
<el-button type="text"
|
|
@@ -1057,6 +1060,38 @@ export default {
|
|
|
this.activeRow = row;
|
|
|
this.quitVisible = true;
|
|
|
},
|
|
|
+ quieTeams (row) {
|
|
|
+ this.$confirm("确定退团?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ // 发请求 退团
|
|
|
+ StudentQuit({
|
|
|
+ musicGroupId: this.id,
|
|
|
+ userId: row.studentId,
|
|
|
+ reason: '',
|
|
|
+ isRefundCourseFee: false,
|
|
|
+ isRefundInstrumentFee: false,
|
|
|
+ isRefundTeachingAssistantsFee: false
|
|
|
+ }).then(res => {
|
|
|
+ this.quitForm = {
|
|
|
+ // 退团信息确认
|
|
|
+ isRefundCourseFee: null,
|
|
|
+ isRefundInstrumentFee: null,
|
|
|
+ isRefundTeachingAssistantsFee: null,
|
|
|
+ reason: ""
|
|
|
+ };
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("退团成功");
|
|
|
+ this.getList();
|
|
|
+ this.quitVisible = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => { });
|
|
|
+ },
|
|
|
chioseType () {
|
|
|
this.$refs["quitForm"].validate(res => {
|
|
|
if (res) {
|