|
@@ -17,6 +17,7 @@
|
|
|
<p>基础信息设置</p>
|
|
|
</div>
|
|
|
<el-form-item
|
|
|
+ prop="paymentDate"
|
|
|
:rules="[
|
|
|
{ required: true, message: '请选择缴费时间', trigger: 'blur' },
|
|
|
]"
|
|
@@ -223,6 +224,16 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <el-dialog
|
|
|
+ title="报名声部预览"
|
|
|
+ :visible.sync="dialogSubjectVisible"
|
|
|
+ width="400px"
|
|
|
+ class="subjectPreview"
|
|
|
+ >
|
|
|
+ <subject-preview
|
|
|
+ :preViewData="preViewData"
|
|
|
+ ></subject-preview>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -232,6 +243,7 @@ import payLeBao from "../modals/payLeBao";
|
|
|
import payTeamActive from "../modals/payTeamActive";
|
|
|
import numeral from "numeral";
|
|
|
import dayjs from "dayjs";
|
|
|
+import subjectPreview from "@/views/resetTeaming/modals/subject-preview";
|
|
|
import {
|
|
|
chargeTypeList,
|
|
|
musicGroupOrganizationCourseSettingsQueryPage,
|
|
@@ -296,6 +308,8 @@ export default {
|
|
|
activeList: [{}],
|
|
|
submitList: [],
|
|
|
organizationCourseUnitPriceSettingsByType: null,
|
|
|
+ dialogSubjectVisible: false, // 预览
|
|
|
+ preViewData: {}
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -569,6 +583,9 @@ export default {
|
|
|
submitForm() {
|
|
|
this.$refs.form.validate(async (isok) => {
|
|
|
if (isok) {
|
|
|
+ // const preViewData = this.formatPreviewData()
|
|
|
+ // this.preViewData = preViewData
|
|
|
+ // this.dialogSubjectVisible = true
|
|
|
let obj = this.fommatDate();
|
|
|
if (this.$route.query.calenderId) {
|
|
|
obj.calenderId = this.$route.query.calenderId;
|
|
@@ -591,6 +608,26 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
+ formatPreviewData() {
|
|
|
+ // 格式化预览数据
|
|
|
+ const form = this.form
|
|
|
+ // 重置小班课数据
|
|
|
+ let activeList = form.activeList?.length > 0 ? form.activeList : []
|
|
|
+ if(activeList.length > 0) {
|
|
|
+ activeList.forEach(active => {
|
|
|
+ active.categoryName = active.vipGroupCategoryNames
|
|
|
+ })
|
|
|
+ }
|
|
|
+ return {
|
|
|
+ musicGroup: this.musicGroup,
|
|
|
+ activity: [...activeList], // 小班课
|
|
|
+ course: form.eclass?.length > 0 ? form.eclass : [], // 课程
|
|
|
+ member: form.memberList?.length > 0 ? { ...form.memberList[0] } : null, // 团练宝
|
|
|
+ memberPrivilegesItemList: [], // 会员基本内容
|
|
|
+ repair: form.leBaoList?.length > 0 ? { ...form.leBaoList[0] } : null, // 乐保
|
|
|
+ }
|
|
|
+ },
|
|
|
fommatDate() {
|
|
|
return {
|
|
|
payUserType: this.$route.query.payUserType,
|