|
@@ -453,6 +453,7 @@ import {
|
|
|
queryCanAddStudent,
|
|
|
addMusicGroupPaymentCalenderStudent,
|
|
|
delMusicGroupPaymentCalenderStudent,
|
|
|
+ sendWaitRenewMessage
|
|
|
} from "@/api/buildTeam";
|
|
|
|
|
|
export default {
|
|
@@ -792,20 +793,37 @@ export default {
|
|
|
},
|
|
|
payRemind(){
|
|
|
console.log(this.activeChiose)
|
|
|
- this.$confirm('以下, 是否继续?', '提示', {
|
|
|
+ let submitArr = [];
|
|
|
+ let msgArr = '';
|
|
|
+ let str = ''
|
|
|
+ this.activeChiose.forEach(item=>{
|
|
|
+ if(item.open){
|
|
|
+ submitArr.push(item.userId)
|
|
|
+ }else{
|
|
|
+ msgArr+=item?.sysUser?.username+','
|
|
|
+ }
|
|
|
+ })
|
|
|
+ console.log(submitArr,msgArr)
|
|
|
+
|
|
|
+ if(msgArr){
|
|
|
+ str=`${msgArr}未开启缴费无法提醒`
|
|
|
+ }else{
|
|
|
+ str='是否发送提醒'
|
|
|
+ }
|
|
|
+ this.$confirm(str, '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
- }).then(() => {
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: '删除成功!'
|
|
|
- });
|
|
|
+ }).then(async() => {
|
|
|
+ try{
|
|
|
+ const res = await sendWaitRenewMessage({studentIds:submitArr.join(','),calenderId:this.$route.query.paymentId})
|
|
|
+ this.$message.success('提醒成功')
|
|
|
+ this.getList()
|
|
|
+ }catch(e){
|
|
|
+
|
|
|
+ }
|
|
|
}).catch(() => {
|
|
|
- this.$message({
|
|
|
- type: 'info',
|
|
|
- message: '已取消删除'
|
|
|
- });
|
|
|
+
|
|
|
});
|
|
|
|
|
|
}
|