|
@@ -159,6 +159,19 @@
|
|
|
v-permission="'musicGroupPaymentCalenderDetail/batchAdd/4360'"
|
|
|
>添加学员</el-button
|
|
|
>
|
|
|
+ <auth auths="musicGroupPaymentCalender/revoke">
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ v-if="
|
|
|
+ (team_status == 'FEE_AUDIT' || team_status == 'PROGRESS') &&
|
|
|
+ scope.row.auditStatus === 'AUDITING' &&
|
|
|
+ scope.row.paymentType != 'ADD_STUDENT' &&
|
|
|
+ scope.row.paymentType != 'SPAN_GROUP_CLASS_ADJUST'
|
|
|
+ "
|
|
|
+ @click="revoke(scope.row)"
|
|
|
+ >撤回</el-button
|
|
|
+ >
|
|
|
+ </auth>
|
|
|
<el-button
|
|
|
type="text"
|
|
|
v-if="teamStatus && scope.row.auditStatus === 'REJECT'"
|
|
@@ -471,7 +484,7 @@ import { objectToOptions } from "@/utils";
|
|
|
import { payOrderTypeList } from "@/utils/searchArray";
|
|
|
import { getTeamBaseInfo } from "@/api/buildTeam";
|
|
|
export default {
|
|
|
- props: [ "isNewGropu"],
|
|
|
+ props: ["isNewGropu"],
|
|
|
components: {
|
|
|
pagination,
|
|
|
setStudentFee,
|
|
@@ -537,7 +550,7 @@ export default {
|
|
|
musicGroupPaymentCalenderId: "",
|
|
|
payOrderTypeLists: payOrderTypeList,
|
|
|
getMoneyVisible: false,
|
|
|
- baseInfo:null
|
|
|
+ baseInfo: null,
|
|
|
};
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -566,27 +579,33 @@ export default {
|
|
|
},
|
|
|
teamStatus() {
|
|
|
// let type = this.$route.query.type;
|
|
|
- let team_status = this.$route.query.team_status;
|
|
|
+ let team_status = this.team_status;
|
|
|
return team_status == "PRE_BUILD_FEE" || team_status == "PROGRESS";
|
|
|
},
|
|
|
+ team_status() {
|
|
|
+ return this.$route.query.team_status;
|
|
|
+ },
|
|
|
},
|
|
|
// activated () {
|
|
|
// this.init();
|
|
|
// },
|
|
|
methods: {
|
|
|
async init() {
|
|
|
- this.team_status = this.$route.query.team_status;
|
|
|
try {
|
|
|
const res = await getMusicGroupStu({
|
|
|
musicGroupId: this.$route.query.id,
|
|
|
});
|
|
|
} catch (error) {}
|
|
|
- getTeamBaseInfo({ musicGroupId: this.$route.query.id }).then((res) => {
|
|
|
+ this.getTeamInfo();
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ getTeamInfo() {
|
|
|
+ getTeamBaseInfo({ musicGroupId: this.$route.query.id }).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.baseInfo = res.data;
|
|
|
+ this.$emit("getBaseInfo", this.baseInfo);
|
|
|
}
|
|
|
});
|
|
|
- this.getList();
|
|
|
},
|
|
|
newUserPay() {
|
|
|
this.payFormType = "user";
|
|
@@ -595,10 +614,18 @@ export default {
|
|
|
this.userVisible = true;
|
|
|
},
|
|
|
newSchoolPay() {
|
|
|
- this.payFormType = "school";
|
|
|
- this.isNew = true;
|
|
|
- this.activeRow = null;
|
|
|
- this.userVisible = true;
|
|
|
+ if (
|
|
|
+ this.baseInfo?.musicGroup?.courseViewType == 1 &&
|
|
|
+ this.team_status == "PRE_BUILD_FEE"
|
|
|
+ ) {
|
|
|
+ this.$message.error('会员缴费乐团无法创建学校缴费')
|
|
|
+ return
|
|
|
+ } else {
|
|
|
+ this.payFormType = "school";
|
|
|
+ this.isNew = true;
|
|
|
+ this.activeRow = null;
|
|
|
+ this.userVisible = true;
|
|
|
+ }
|
|
|
},
|
|
|
getList() {
|
|
|
let musicGroupId = this.$route.query.id;
|
|
@@ -765,6 +792,7 @@ export default {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success("修改成功");
|
|
|
this.payVisible = false;
|
|
|
+ this.getTeamInfo();
|
|
|
this.getList();
|
|
|
}
|
|
|
});
|
|
@@ -815,6 +843,7 @@ export default {
|
|
|
async payedSubmited(data) {
|
|
|
try {
|
|
|
await this.getList();
|
|
|
+ this.getTeamInfo();
|
|
|
// if (!this.isNewGropu) {
|
|
|
// this.chioseStudentVisible = true;
|
|
|
// if (data) {
|
|
@@ -834,6 +863,21 @@ export default {
|
|
|
this.getMoneyVisible = false;
|
|
|
this.getList();
|
|
|
},
|
|
|
+ async revoke(row) {
|
|
|
+ try {
|
|
|
+ await this.$confirm("是否撤回此缴费项目的审批?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ });
|
|
|
+ const res = await revokeMusicGroupPaymentCalender({
|
|
|
+ batchNo: row.batchNo,
|
|
|
+ });
|
|
|
+ this.$message.success("取消审批成功");
|
|
|
+ this.getList();
|
|
|
+ this.getTeamInfo();
|
|
|
+ } catch {}
|
|
|
+ },
|
|
|
},
|
|
|
watch: {
|
|
|
chioseStudentVisible() {
|