|
@@ -9,14 +9,14 @@
|
|
</p> -->
|
|
</p> -->
|
|
|
|
|
|
<div class="btnList">
|
|
<div class="btnList">
|
|
- <auth :auths="['/main']">
|
|
|
|
|
|
+ <auth :auths="['forecastName/forecastLink']">
|
|
<el-button type="primary" @click="codeStatus = true">预报名链接</el-button>
|
|
<el-button type="primary" @click="codeStatus = true">预报名链接</el-button>
|
|
</auth>
|
|
</auth>
|
|
<!-- <auth>
|
|
<!-- <auth>
|
|
<el-button type="primary" @click="extendPaymentStatus = true">预报名时间延长</el-button>
|
|
<el-button type="primary" @click="extendPaymentStatus = true">预报名时间延长</el-button>
|
|
</auth> -->
|
|
</auth> -->
|
|
- <auth>
|
|
|
|
- <el-button type="primary">家长会通知</el-button>
|
|
|
|
|
|
+ <auth :auths="['musicGroup/sendParentMeetingNotice']">
|
|
|
|
+ <el-button type="primary" @click="extendPaymentStatus = true">家长会通知</el-button>
|
|
</auth>
|
|
</auth>
|
|
<auth :auths="['musicGroup/finishPreApply']">
|
|
<auth :auths="['musicGroup/finishPreApply']">
|
|
<el-button type="primary" @click="onPaymentGroup">乐团缴费</el-button>
|
|
<el-button type="primary" @click="onPaymentGroup">乐团缴费</el-button>
|
|
@@ -165,24 +165,28 @@
|
|
|
|
|
|
<!-- 预报名连接 -->
|
|
<!-- 预报名连接 -->
|
|
<qr-code v-model="codeStatus" title="预报名二维码" :codeUrl="codeUrl" />
|
|
<qr-code v-model="codeStatus" title="预报名二维码" :codeUrl="codeUrl" />
|
|
- <!-- 预报名时间延长 -->
|
|
|
|
- <!-- <el-dialog
|
|
|
|
- title="预报名时间延长"
|
|
|
|
|
|
+ <!-- 发送家长会通知 -->
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="发送家长会通知"
|
|
:visible.sync="extendPaymentStatus"
|
|
:visible.sync="extendPaymentStatus"
|
|
- destroy-on-close
|
|
|
|
|
|
+ @close="onClose('extendForm')"
|
|
width="400px"
|
|
width="400px"
|
|
>
|
|
>
|
|
- <el-form label-width="120px" :model="extendForm" ref="extendForm" :rules="extendRule">
|
|
|
|
- <el-form-item label="延长预报名时间" prop="expireDate">
|
|
|
|
|
|
+ <el-form label-width="110px" :model="extendForm" ref="extendForm" :rules="extendRule">
|
|
|
|
+ <el-form-item label="家长会时间" prop="meetingDate">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
- v-model.trim="extendForm.expireDate"
|
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
|
- type="date"
|
|
|
|
|
|
+ style="width: 100% !important;"
|
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
+ v-model.trim="extendForm.meetingDate"
|
|
|
|
+ type="datetime"
|
|
:picker-options="applyDates"
|
|
:picker-options="applyDates"
|
|
- placeholder="选择日期"
|
|
|
|
|
|
+ placeholder="请选择家长会时间"
|
|
>
|
|
>
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="家长会地址" prop="address">
|
|
|
|
+ <el-input v-model="extendForm.address" placeholder="请输入家长会地址"></el-input>
|
|
|
|
+ </el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button @click="extendPaymentStatus = false">取 消</el-button>
|
|
<el-button @click="extendPaymentStatus = false">取 消</el-button>
|
|
@@ -191,7 +195,7 @@
|
|
@click="onExtendPayment('extendForm')"
|
|
@click="onExtendPayment('extendForm')"
|
|
>确 定</el-button>
|
|
>确 定</el-button>
|
|
</div>
|
|
</div>
|
|
- </el-dialog> -->
|
|
|
|
|
|
+ </el-dialog>
|
|
<!-- 回访记录 -->
|
|
<!-- 回访记录 -->
|
|
<el-dialog
|
|
<el-dialog
|
|
title="新增回访"
|
|
title="新增回访"
|
|
@@ -211,7 +215,7 @@ import qrCode from '@/components/QrCode/index';
|
|
import { permission } from "@/utils/directivePage";
|
|
import { permission } from "@/utils/directivePage";
|
|
import { vaildStudentUrl } from '@/utils/validate'
|
|
import { vaildStudentUrl } from '@/utils/validate'
|
|
import visitModel from './modals/visit'
|
|
import visitModel from './modals/visit'
|
|
-import { queryPreApplyList, finishPreApply } from './api'
|
|
|
|
|
|
+import { queryPreApplyList, finishPreApply, sendParentMeetingNotice } from './api'
|
|
export default {
|
|
export default {
|
|
name: 'forecastName',
|
|
name: 'forecastName',
|
|
components: { pagination, qrCode, visitModel },
|
|
components: { pagination, qrCode, visitModel },
|
|
@@ -239,12 +243,14 @@ export default {
|
|
visitDetail: null,
|
|
visitDetail: null,
|
|
extendPaymentStatus: false,
|
|
extendPaymentStatus: false,
|
|
extendForm: {
|
|
extendForm: {
|
|
- expireDate: null,
|
|
|
|
|
|
+ meetingDate: null,
|
|
|
|
+ address: null,
|
|
},
|
|
},
|
|
extendRule: {
|
|
extendRule: {
|
|
- expireDate: [
|
|
|
|
- { required: true, message: "请选择延长时间", trigger: "change" },
|
|
|
|
|
|
+ meetingDate: [
|
|
|
|
+ { required: true, message: "请选择家长会时间", trigger: "change" },
|
|
],
|
|
],
|
|
|
|
+ address: [{ required: true, message: "请输入家长会地址", trigger: 'blur' }]
|
|
},
|
|
},
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -309,25 +315,34 @@ export default {
|
|
}
|
|
}
|
|
// this.visitDetail = rows
|
|
// this.visitDetail = rows
|
|
},
|
|
},
|
|
|
|
+ onClose(formName) {
|
|
|
|
+ this.$refs[formName].resetFields()
|
|
|
|
+ },
|
|
onExtendPayment(formName) {
|
|
onExtendPayment(formName) {
|
|
- this.$refs[formName].validate(valid => {
|
|
|
|
|
|
+ this.$refs[formName].validate(async (valid) => {
|
|
if(valid) {
|
|
if(valid) {
|
|
-
|
|
|
|
|
|
+ try {
|
|
|
|
+ await this.$confirm('您是否确定发送家长会通知?', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ })
|
|
|
|
+ await sendParentMeetingNotice({ ...this.extendForm, musicGroupId: this.musicGroupId })
|
|
|
|
+ this.$message.success('家长会通知已发送')
|
|
|
|
+ this.extendPaymentStatus = false
|
|
|
|
+ } catch(error) {}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
applyDates() {
|
|
applyDates() {
|
|
- let self = this;
|
|
|
|
return {
|
|
return {
|
|
firstDayOfWeek: 1,
|
|
firstDayOfWeek: 1,
|
|
disabledDate(time) {
|
|
disabledDate(time) {
|
|
- if (self.paymentExpireDate) {
|
|
|
|
- return (
|
|
|
|
- time.getTime() >
|
|
|
|
- new Date(self.paymentExpireDate.replace(/-/g, "/")).getTime()
|
|
|
|
- );
|
|
|
|
|
|
+ if (end) {
|
|
|
|
+ return new Date(end).getTime() - 86400000 >= time.getTime();
|
|
} else {
|
|
} else {
|
|
- return false;
|
|
|
|
|
|
+ return time.getTime() + 86400000 < Date.now();
|
|
|
|
+ //开始时间不选时,结束时间最大值小于等于当天
|
|
}
|
|
}
|
|
},
|
|
},
|
|
};
|
|
};
|