|
@@ -248,9 +248,22 @@
|
|
|
<el-table-column align="center" label="是否续费" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
- <p v-if="scope.row.type=='FREE'|| scope.row.type=='CARE_PACKAGE' || scope.row.type=='TRIAL' " >免费</p>
|
|
|
- <p v-if="scope.row.type=='CHARGE'||scope.row.type=='COME_ON_PACKAGE'">
|
|
|
- {{ scope.row.beRenewGroupId > 0 ? "续费" : "首充" }}
|
|
|
+ <p
|
|
|
+ v-if="
|
|
|
+ scope.row.type == 'FREE' ||
|
|
|
+ scope.row.type == 'CARE_PACKAGE' ||
|
|
|
+ scope.row.type == 'TRIAL'
|
|
|
+ "
|
|
|
+ >
|
|
|
+ 免费
|
|
|
+ </p>
|
|
|
+ <p
|
|
|
+ v-if="
|
|
|
+ scope.row.type == 'CHARGE' ||
|
|
|
+ scope.row.type == 'COME_ON_PACKAGE'
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ scope.row.beRenewGroupId > 0 ? "续费" : "首充" }}
|
|
|
</p>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -436,7 +449,7 @@ export default {
|
|
|
practiceGroupType: null,
|
|
|
groupStatus: null,
|
|
|
};
|
|
|
- new Searchs().removeByKey('accompanyList');
|
|
|
+ new Searchs().removeByKey("accompanyList");
|
|
|
this.search();
|
|
|
},
|
|
|
onStudentExport() {
|
|
@@ -599,24 +612,44 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
closeCrouse(row) {
|
|
|
- this.activeRow = row;
|
|
|
- this.$confirm("请确认是否关闭课程组,关闭后不予退费", "提示", {
|
|
|
+ this.activeRow = row;
|
|
|
+ this.$confirm("请确认是否关闭课程组,关闭后不予退费", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning",
|
|
|
- }).then(res=>{
|
|
|
- cancelGroup({
|
|
|
- groupId: row.id,
|
|
|
- groupType: "PRACTICE",
|
|
|
- refundAmount: null,
|
|
|
- }).then((res) => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.$message.success("关闭成功");
|
|
|
- this.getList();
|
|
|
- // this.closeVisible = false;
|
|
|
- }
|
|
|
- });
|
|
|
- }).catch(()=>{})
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ cancelGroup({
|
|
|
+ groupId: row.id,
|
|
|
+ groupType: "PRACTICE",
|
|
|
+ refundAmount: 0,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("关闭成功");
|
|
|
+ this.getList();
|
|
|
+ // this.closeVisible = false;
|
|
|
+ }
|
|
|
+ if (res.code == 206) {
|
|
|
+ this.$confirm(res.msg, "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ }).then(() => {
|
|
|
+ cancelGroup({
|
|
|
+ groupId: row.id,
|
|
|
+ groupType: "PRACTICE",
|
|
|
+ refundAmount: 0,
|
|
|
+ confirmReturnActivityGive: true,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("关闭成功");
|
|
|
+ this.getList();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
|
|
|
// this.closeVisible = true;
|
|
|
},
|
|
@@ -663,7 +696,7 @@ export default {
|
|
|
newPractice() {
|
|
|
this.$router.push({
|
|
|
path: "/business/newPractice",
|
|
|
- query:{courseType:'PRACTICE'}
|
|
|
+ query: { courseType: "PRACTICE" },
|
|
|
});
|
|
|
},
|
|
|
},
|