|
@@ -60,6 +60,13 @@
|
|
>
|
|
>
|
|
新建学校缴费
|
|
新建学校缴费
|
|
</div>
|
|
</div>
|
|
|
|
+ <div
|
|
|
|
+ class="newBand"
|
|
|
|
+ v-permission="'musicGroup/extensionPayment'"
|
|
|
|
+ @click="extendTime"
|
|
|
|
+ >
|
|
|
|
+ 延长缴费
|
|
|
|
+ </div>
|
|
<!-- <div class="newBand"
|
|
<!-- <div class="newBand"
|
|
v-if="teamStatus"
|
|
v-if="teamStatus"
|
|
v-permission="'/studentPayBase'"
|
|
v-permission="'/studentPayBase'"
|
|
@@ -147,13 +154,17 @@
|
|
</el-table-column> -->
|
|
</el-table-column> -->
|
|
<el-table-column align="center" prop="status" label="缴费人数">
|
|
<el-table-column align="center" prop="status" label="缴费人数">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <div v-if="scope.row.payUserType=='STUDENT'">{{ scope.row.actualNum }}/{{ scope.row.expectNum }}</div>
|
|
|
|
|
|
+ <div v-if="scope.row.payUserType == 'STUDENT'">
|
|
|
|
+ {{ scope.row.actualNum }}/{{ scope.row.expectNum }}
|
|
|
|
+ </div>
|
|
<div V-esle>--</div>
|
|
<div V-esle>--</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center"
|
|
|
|
- prop="currentTotalAmount"
|
|
|
|
- label="缴费金额(元)">
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="currentTotalAmount"
|
|
|
|
+ label="缴费金额(元)"
|
|
|
|
+ >
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column align="center" prop="memo" width="200px" label="备注">
|
|
<el-table-column align="center" prop="memo" width="200px" label="备注">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -178,7 +189,7 @@
|
|
teamStatus &&
|
|
teamStatus &&
|
|
scope.row.paymentType != 'MUSIC_APPLY' &&
|
|
scope.row.paymentType != 'MUSIC_APPLY' &&
|
|
scope.row.paymentType != 'ADD_STUDENT' &&
|
|
scope.row.paymentType != 'ADD_STUDENT' &&
|
|
- scope.row.paymentType != 'SPAN_GROUP_CLASS_ADJUST'&&
|
|
|
|
|
|
+ scope.row.paymentType != 'SPAN_GROUP_CLASS_ADJUST' &&
|
|
scope.row.payUserType === 'STUDENT'
|
|
scope.row.payUserType === 'STUDENT'
|
|
"
|
|
"
|
|
>
|
|
>
|
|
@@ -541,6 +552,32 @@
|
|
<el-button @click="dialogSubjectVisible = false">取 消</el-button>
|
|
<el-button @click="dialogSubjectVisible = false">取 消</el-button>
|
|
</div> -->
|
|
</div> -->
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+
|
|
|
|
+ <el-dialog
|
|
|
|
+ :title="'延长缴费'"
|
|
|
|
+ :visible.sync="extendPaymentStatus"
|
|
|
|
+ v-if="extendPaymentStatus"
|
|
|
|
+ width="400px"
|
|
|
|
+ >
|
|
|
|
+ <el-form :model="extendForm" ref="extendForm" :rules="extendRule">
|
|
|
|
+ <el-form-item label="缴费时间" prop="expireDate">
|
|
|
|
+ <el-date-picker
|
|
|
|
+ v-model.trim="extendForm.expireDate"
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
|
+ type="date"
|
|
|
|
+ :picker-options="applyDates"
|
|
|
|
+ placeholder="选择日期"
|
|
|
|
+ >
|
|
|
|
+ </el-date-picker>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button @click="extendPaymentStatus = false">取 消</el-button>
|
|
|
|
+ <el-button type="primary" @click="onExtendPayment('extendForm')"
|
|
|
|
+ >确 定</el-button
|
|
|
|
+ >
|
|
|
|
+ </div>
|
|
|
|
+ </el-dialog>
|
|
<el-button type="primary" @click="submitAudit" v-if="team_status == 'DRAFT'"
|
|
<el-button type="primary" @click="submitAudit" v-if="team_status == 'DRAFT'"
|
|
>提交审核</el-button
|
|
>提交审核</el-button
|
|
>
|
|
>
|
|
@@ -576,6 +613,7 @@ import {
|
|
resetMusicGroupPaymentCalender,
|
|
resetMusicGroupPaymentCalender,
|
|
delMusicGroupPaymentCalender,
|
|
delMusicGroupPaymentCalender,
|
|
findMusicGroupSubjectInfo,
|
|
findMusicGroupSubjectInfo,
|
|
|
|
+ extensionPayment,
|
|
} from "@/api/buildTeam";
|
|
} from "@/api/buildTeam";
|
|
import { getAuditList } from "@/api/auditManager";
|
|
import { getAuditList } from "@/api/auditManager";
|
|
import { getOrganizationCourseUnitPriceSettings } from "@/api/specialSetting";
|
|
import { getOrganizationCourseUnitPriceSettings } from "@/api/specialSetting";
|
|
@@ -669,6 +707,16 @@ export default {
|
|
baseInfo: null,
|
|
baseInfo: null,
|
|
memberVisible: false, // 会员缴费,
|
|
memberVisible: false, // 会员缴费,
|
|
payUserTypeList: payUserTypeList,
|
|
payUserTypeList: payUserTypeList,
|
|
|
|
+ extendPaymentStatus: "",
|
|
|
|
+ extendForm: {
|
|
|
|
+ expireDate: null,
|
|
|
|
+ },
|
|
|
|
+ extendRule: {
|
|
|
|
+ expireDate: [
|
|
|
|
+ { required: true, message: "请选择延长时间", trigger: "change" },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ applyDates: this.applyDate(),
|
|
};
|
|
};
|
|
},
|
|
},
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -925,6 +973,27 @@ export default {
|
|
console.log(e);
|
|
console.log(e);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ extendTime() {
|
|
|
|
+ this.extendPaymentStatus = true;
|
|
|
|
+ },
|
|
|
|
+ onExtendPayment(formName) {
|
|
|
|
+ this.$refs[formName].validate((valid) => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ extensionPayment({
|
|
|
|
+ musicGroupId: this.$route.query.id,
|
|
|
|
+ expireDate: this.extendForm.expireDate,
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.$message.success("延长缴费成功");
|
|
|
|
+ this.extendPaymentStatus = false;
|
|
|
|
+ this.getList()
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error(res.msg);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
// setStudentPay () {
|
|
// setStudentPay () {
|
|
// let query = this.$route.query;
|
|
// let query = this.$route.query;
|
|
// this.$router.push({ path: "/business/studentPayBase", query });
|
|
// this.$router.push({ path: "/business/studentPayBase", query });
|
|
@@ -1058,24 +1127,21 @@ export default {
|
|
// 开始预览
|
|
// 开始预览
|
|
this.dialogCalenderId = row.id;
|
|
this.dialogCalenderId = row.id;
|
|
const musicGroupId = this.$route.query.id;
|
|
const musicGroupId = this.$route.query.id;
|
|
- findMusicGroupSubjectInfo({ musicGroupId: musicGroupId }).then(
|
|
|
|
- (res) => {
|
|
|
|
- if (res.code == 200) {
|
|
|
|
-
|
|
|
|
- this.dialogSubjectList = res.data.musicGroupSubjectPlans;
|
|
|
|
|
|
+ findMusicGroupSubjectInfo({ musicGroupId: musicGroupId }).then((res) => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.dialogSubjectList = res.data.musicGroupSubjectPlans;
|
|
|
|
|
|
- // 默认预览第一个
|
|
|
|
- if(this.dialogSubjectList.length<=0){
|
|
|
|
- this.$message.error('请先设置声部信息')
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- this.activeName = this.dialogSubjectList[0].subjectId.toString();
|
|
|
|
- this.dialogSubjectVisible = true;
|
|
|
|
- } else {
|
|
|
|
- this.$message.warning("没有可预览的声部");
|
|
|
|
|
|
+ // 默认预览第一个
|
|
|
|
+ if (this.dialogSubjectList.length <= 0) {
|
|
|
|
+ this.$message.error("请先设置声部信息");
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
|
|
+ this.activeName = this.dialogSubjectList[0].subjectId.toString();
|
|
|
|
+ this.dialogSubjectVisible = true;
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.warning("没有可预览的声部");
|
|
}
|
|
}
|
|
- );
|
|
|
|
|
|
+ });
|
|
},
|
|
},
|
|
approval() {
|
|
approval() {
|
|
// 审核通过 验证商品
|
|
// 审核通过 验证商品
|
|
@@ -1126,6 +1192,15 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ applyDate() {
|
|
|
|
+ let self = this;
|
|
|
|
+ return {
|
|
|
|
+ firstDayOfWeek: 1,
|
|
|
|
+ disabledDate(time) {
|
|
|
|
+ return time.getTime() + 86400000 < new Date().getTime();
|
|
|
|
+ },
|
|
|
|
+ };
|
|
|
|
+ },
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
chioseStudentVisible() {
|
|
chioseStudentVisible() {
|