|
@@ -9,7 +9,10 @@
|
|
|
</p> -->
|
|
|
|
|
|
<div class="btnList">
|
|
|
- <auth :auths="['musicGroup/sendParentMeetingNotice']" v-if="isedit || $route.query.team_status=='DRAFT'">
|
|
|
+ <auth
|
|
|
+ :auths="['musicGroup/sendParentMeetingNotice']"
|
|
|
+ v-if="isedit || $route.query.team_status == 'DRAFT'"
|
|
|
+ >
|
|
|
<el-button type="primary" @click="extendPaymentStatus = true"
|
|
|
>预报名家长会通知</el-button
|
|
|
>
|
|
@@ -58,8 +61,8 @@
|
|
|
<el-input
|
|
|
v-model.trim="searchForm.name"
|
|
|
clearable
|
|
|
- @keyup.enter.native="
|
|
|
- (e) => {
|
|
|
+ @keyup.enter.native="
|
|
|
+ e => {
|
|
|
e.target.blur();
|
|
|
$refs.searchForm.save();
|
|
|
search();
|
|
@@ -355,7 +358,7 @@
|
|
|
<el-dialog
|
|
|
title="新增回访"
|
|
|
width="760px"
|
|
|
- v-if="visitVisible"
|
|
|
+ v-if="visitVisible"
|
|
|
:close-on-click-modal="false"
|
|
|
:visible.sync="visitVisible"
|
|
|
>
|
|
@@ -396,6 +399,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { getMusicGroupAddr } from "../teamDetail/api";
|
|
|
import pagination from "@/components/Pagination/index";
|
|
|
import qrCode from "@/components/QrCode/index";
|
|
|
import { permission } from "@/utils/directivePage";
|
|
@@ -403,16 +407,22 @@ import { vaildStudentUrl, vaildTeachingUrl } from "@/utils/validate";
|
|
|
import { Export } from "@/utils/downLoadFile";
|
|
|
import visitModel from "@/views/withdrawal-application/modals/visit";
|
|
|
import intentionModel from "./modals/intention";
|
|
|
-import parentsMeeting from './modals/parentsMeeting'
|
|
|
+import parentsMeeting from "./modals/parentsMeeting";
|
|
|
import {
|
|
|
queryPreApplyList,
|
|
|
finishPreApply,
|
|
|
sendParentMeetingNotice,
|
|
|
- getSysMessageConfig,
|
|
|
+ getSysMessageConfig
|
|
|
} from "./api";
|
|
|
export default {
|
|
|
name: "forecastName",
|
|
|
- components: { pagination, qrCode, visitModel, intentionModel,parentsMeeting },
|
|
|
+ components: {
|
|
|
+ pagination,
|
|
|
+ qrCode,
|
|
|
+ visitModel,
|
|
|
+ intentionModel,
|
|
|
+ parentsMeeting
|
|
|
+ },
|
|
|
props: ["isedit"],
|
|
|
data() {
|
|
|
const query = this.$route.query;
|
|
@@ -432,7 +442,7 @@ export default {
|
|
|
selectionSubjectId: null,
|
|
|
isAllowAdjust: null,
|
|
|
cloudTeacherMethod: null,
|
|
|
- kitPurchaseMethod: null,
|
|
|
+ kitPurchaseMethod: null
|
|
|
},
|
|
|
tableList: [],
|
|
|
pageInfo: {
|
|
@@ -440,7 +450,7 @@ export default {
|
|
|
limit: 10, // 限制显示条数
|
|
|
page: 1, // 当前页
|
|
|
total: 0, // 总条数
|
|
|
- page_size: [10, 20, 40, 50], // 选择限制显示条数
|
|
|
+ page_size: [10, 20, 40, 50] // 选择限制显示条数
|
|
|
},
|
|
|
visitVisible: false,
|
|
|
subjectVisible: false,
|
|
@@ -448,33 +458,32 @@ export default {
|
|
|
extendPaymentStatus: false,
|
|
|
extendForm: {
|
|
|
meetingDate: null,
|
|
|
- address: null,
|
|
|
+ address: null
|
|
|
},
|
|
|
extendRule: {
|
|
|
meetingDate: [
|
|
|
- { required: true, message: "请选择家长会时间", trigger: "change" },
|
|
|
+ { required: true, message: "请选择家长会时间", trigger: "change" }
|
|
|
],
|
|
|
address: [
|
|
|
- { required: true, message: "请输入家长会地址", trigger: "blur" },
|
|
|
- ],
|
|
|
+ { required: true, message: "请输入家长会地址", trigger: "blur" }
|
|
|
+ ]
|
|
|
},
|
|
|
preLookVisible: false,
|
|
|
sysMsg: "",
|
|
|
subjectList: [],
|
|
|
- tenantId:null
|
|
|
-
|
|
|
+ tenantId: null
|
|
|
};
|
|
|
},
|
|
|
async mounted() {
|
|
|
- this.tenantId= this.$helpers.tenantId
|
|
|
+ this.tenantId = this.$helpers.tenantId;
|
|
|
await this.$store.dispatch("setSubjects");
|
|
|
// 获取短信推送模板
|
|
|
this.subjectList = [...this.selects.subjects];
|
|
|
this.subjectList.push({ id: -1, name: "无" });
|
|
|
const rus = await getSysMessageConfig({
|
|
|
- type: "STUDENT_SMS_IM_MUSIC_GROUP_PARENT_MEETING_NOTICE",
|
|
|
+ type: "STUDENT_SMS_IM_MUSIC_GROUP_PARENT_MEETING_NOTICE"
|
|
|
});
|
|
|
- this.sysMsg = rus.data?.content||'';
|
|
|
+ this.sysMsg = rus.data?.content || "";
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
@@ -499,9 +508,9 @@ export default {
|
|
|
url: "/api-web/studentRegistration/preRegisterExport",
|
|
|
params: {
|
|
|
...params,
|
|
|
- musicGroupId: this.musicGroupId,
|
|
|
+ musicGroupId: this.musicGroupId
|
|
|
},
|
|
|
- fileName: "预报名列表.xls",
|
|
|
+ fileName: "预报名列表.xls"
|
|
|
},
|
|
|
"是否确认导出报表?"
|
|
|
);
|
|
@@ -512,7 +521,7 @@ export default {
|
|
|
...this.searchForm,
|
|
|
musicGroupId: this.musicGroupId,
|
|
|
page: this.pageInfo.page,
|
|
|
- rows: this.pageInfo.limit,
|
|
|
+ rows: this.pageInfo.limit
|
|
|
});
|
|
|
this.tableList = result.data.rows;
|
|
|
this.pageInfo.total = result.data.total;
|
|
@@ -520,20 +529,36 @@ export default {
|
|
|
},
|
|
|
async onPaymentGroup(type) {
|
|
|
try {
|
|
|
- this.$confirm("您是否确定开启乐团缴费?", "提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
- }).then(async () => {
|
|
|
- const result = await finishPreApply({
|
|
|
- isCheckStudentNum: type == 1 ? false : true,
|
|
|
- musicGroupId: this.musicGroupId,
|
|
|
+ const { data } = await getMusicGroupAddr({
|
|
|
+ musicGroupId: this.musicGroupId,
|
|
|
+ page: 1,
|
|
|
+ rows: 10
|
|
|
+ });
|
|
|
+ console.log(data, "data");
|
|
|
+ if (Array.isArray(data.rows) && data.rows.length > 0) {
|
|
|
+ this.$confirm("您是否确定开启乐团缴费?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(async () => {
|
|
|
+ const result = await finishPreApply({
|
|
|
+ isCheckStudentNum: type == 1 ? false : true,
|
|
|
+ musicGroupId: this.musicGroupId
|
|
|
+ });
|
|
|
+ this.$store.dispatch("delVisitedViews", this.$route);
|
|
|
+ this.$router.push({
|
|
|
+ path: "/teamList"
|
|
|
+ });
|
|
|
});
|
|
|
- this.$store.dispatch("delVisitedViews", this.$route);
|
|
|
- this.$router.push({
|
|
|
- path: "/teamList",
|
|
|
+ } else {
|
|
|
+ this.$confirm("请先设置开团商品收货地址?", "提示", {
|
|
|
+ confirmButtonText: "去设置",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(async () => {
|
|
|
+ this.$listeners.changeActive("10");
|
|
|
});
|
|
|
- });
|
|
|
+ }
|
|
|
} catch (error) {}
|
|
|
},
|
|
|
addVisited(rows) {
|
|
@@ -548,32 +573,32 @@ export default {
|
|
|
visitTime: "",
|
|
|
visitType: "",
|
|
|
feedback: "",
|
|
|
- realName: rows.userName,
|
|
|
+ realName: rows.userName
|
|
|
};
|
|
|
// this.visitDetail = rows
|
|
|
},
|
|
|
onClose(formName) {
|
|
|
- this.extendForm= {
|
|
|
+ this.extendForm = {
|
|
|
meetingDate: null,
|
|
|
- address: null,
|
|
|
- }
|
|
|
- // this.$refs[formName].$refs[formName].resetFields();
|
|
|
+ address: null
|
|
|
+ };
|
|
|
+ // this.$refs[formName].$refs[formName].resetFields();
|
|
|
},
|
|
|
onExtendPayment(formName) {
|
|
|
// console.log(formName)
|
|
|
// console.log(this.$refs)
|
|
|
// return
|
|
|
- this.$refs[formName].$refs[formName].validate(async (valid) => {
|
|
|
+ this.$refs[formName].$refs[formName].validate(async valid => {
|
|
|
if (valid) {
|
|
|
try {
|
|
|
await this.$confirm("您是否确定发送家长会通知?", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
+ type: "warning"
|
|
|
});
|
|
|
await sendParentMeetingNotice({
|
|
|
...this.extendForm,
|
|
|
- musicGroupId: this.musicGroupId,
|
|
|
+ musicGroupId: this.musicGroupId
|
|
|
});
|
|
|
this.$message.success("家长会通知已发送");
|
|
|
this.extendPaymentStatus = false;
|
|
@@ -591,12 +616,12 @@ export default {
|
|
|
return time.getTime() + 86400000 < Date.now();
|
|
|
//开始时间不选时,结束时间最大值小于等于当天
|
|
|
}
|
|
|
- },
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
preLook(val) {
|
|
|
this.preLookVisible = true;
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
computed: {
|
|
|
sysMsgStr() {
|
|
@@ -612,10 +637,16 @@ export default {
|
|
|
return ``;
|
|
|
}
|
|
|
},
|
|
|
- detailUrl(){
|
|
|
- return vaildTeachingUrl() + "/#/preApplySubject?musicGroupId=" + this.$route.query.id+'&tenantId='+this.tenantId
|
|
|
+ detailUrl() {
|
|
|
+ return (
|
|
|
+ vaildTeachingUrl() +
|
|
|
+ "/#/preApplySubject?musicGroupId=" +
|
|
|
+ this.$route.query.id +
|
|
|
+ "&tenantId=" +
|
|
|
+ this.tenantId
|
|
|
+ );
|
|
|
}
|
|
|
- },
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
|