123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843 |
- <template>
- <div>
- <el-alert
- title="课程信息设置"
- :closable="false"
- class="alert"
- v-if="paymentTypeString !== 'SPAN_GROUP_CLASS_ADJUST'&&courseViewType!=1"
- type="info"
- >
- </el-alert>
- <userBaseinfo
- :form.sync="form"
- :isCommon="isCommon"
- v-if="paymentTypeString !== 'SPAN_GROUP_CLASS_ADJUST'"
- :isUserType="isUserType"
- @getCharges="getCharges"
- @changeActive="changeActive"
- :typeList="typeList"
- :charges="charges"
- :rowDetail="rowDetail"
- :chargeTypeName="chargeTypeName"
- :paymentType="paymentType"
- :courseViewType="courseViewType"
- ref="base"
- />
- <template v-if="paymentTypeString === 'SPAN_GROUP_CLASS_ADJUST'">
- <el-alert
- title="加课信息设置"
- :closable="false"
- class="alert"
- type="info"
- >
- </el-alert>
- <extraClassUser
- :form.sync="eclassuser"
- ref="eclass"
- :isUserType="isUserType"
- :courseUnitPriceSettingsByType="
- organizationCourseUnitPriceSettingsByType
- "
- @priceChange="priceChange"
- :clearable="true"
- @moneyChange="syncAllMoney"
- />
- </template>
- <template v-else-if="!isCommon">
- <el-alert
- title="加课信息设置"
- :closable="false"
- class="alert"
- type="info"
- >
- </el-alert>
- <extraClass
- :form.sync="eclass"
- ref="eclass"
- @create="addExtraClass"
- @remove="removeExtraClass"
- :isUserType="isUserType"
- :courseUnitPriceSettingsByType="
- organizationCourseUnitPriceSettingsByType
- "
- @priceChange="priceChange"
- :clearable="true"
- @moneyChange="syncAllMoney"
- />
- </template>
- <extraClass
- v-else-if="(!isCommon && eclass.length) || isCommon"
- :form="eclass"
- ref="eclass"
- :isCommon="isCommon"
- @create="addExtraClass"
- @remove="removeExtraClass"
- @moneyChange="syncAllMoney"
- :courseUnitPriceSettingsByType="organizationCourseUnitPriceSettingsByType"
- :isUserType="isUserType"
- :isDisabled="
- form.leixing === '1' || form.leixing === '2' || paymentType == '0'
- "
- />
- <template>
- <el-alert
- title="会员设置"
- :closable="false"
- class="alert"
- style="margin-top: 20px"
- type="info"
- v-if="courseViewType == 1&&paymentType !== undefined"
- >
- </el-alert>
- <memberSetting
- v-if="courseViewType == 1&&paymentType !== undefined"
- :form="memberForm"
- :isUserType="isUserType"
- :organId="baseInfo.organId"
- :showTime="false"
- />
- <el-alert title="缴费设置" :closable="false" class="alert" type="info">
- </el-alert>
- <el-form ref="payment" :model="payment">
- <el-form-item
- label-width="160px"
- label="系统缴费金额"
- v-if="
- !paymentType &&
- type == 'user' &&
- (courseViewType == 2 || courseViewType == 3)
- "
- >
- <el-input :disabled="true" v-model="cloudFee"></el-input>
- </el-form-item>
- <el-form-item
- label-width="160px"
- label="缴费方式"
- prop="paymentPattern"
- :rules="[
- { required: true, message: '请选择缴费方式', trigger: 'change' },
- ]"
- >
- <el-select
- style="width: 100% !important"
- v-model="payment.paymentPattern"
- placeholder="请选择缴费方式"
- :disabled="courseViewType == 1&&paymentType !== undefined"
- >
- <el-option
- v-for="item in paymentPatternTypeOptions"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- >
- </el-option>
- </el-select>
- </el-form-item>
- </el-form>
- <template
- v-if="isMulticycle && paymentTypeString !== 'SPAN_GROUP_CLASS_ADJUST'"
- >
- <el-collapse :value="collapse" @change="collapseChange">
- <el-collapse-item
- v-for="(item, index) in cycles"
- :key="index"
- :name="index"
- >
- <template slot="title">
- <div class="collapse-title">
- <span>缴费周期 {{ index + 1 }}</span>
- <i
- v-if="cycles.length > 1"
- class="el-icon-circle-close"
- @click.stop="removeCycle(index)"
- ></i>
- </div>
- </template>
- <paymentCycle
- ref="cycles"
- :form="item"
- :paymentType="paymentType"
- :hidePaymentPattern="true"
- :isCommon="isCommon"
- :isUserType="isUserType"
- :isDisabled="
- form.leixing === '1' ||
- form.leixing === '2' ||
- paymentType == '0'
- "
- />
- </el-collapse-item>
- </el-collapse>
- <el-button
- icon="el-icon-circle-plus-outline"
- plain
- type="info"
- size="small"
- style="width: 100%; margin: 20px 0"
- @click="addCycle"
- >新增缴费周期</el-button
- >
- </template>
- <paymentCycle
- ref="cycle"
- :form.sync="cycle"
- :isCommon="isCommon"
- :hidePaymentPattern="true"
- :isUserType="isUserType"
- :isDisabled="
- form.leixing === '1' || form.leixing === '2' || paymentType == '0'
- "
- :courseViewType="courseViewType"
- v-else
- />
- </template>
- <el-alert title="其它" :closable="false" class="alert" type="info">
- </el-alert>
- <otherform :form="other" ref="other" />
- <div slot="footer" class="dialog-footer">
- <el-button @click="$listeners.close">取 消</el-button>
- <el-button type="primary" @click="submit">确认</el-button>
- </div>
- <el-dialog
- :title="nextTitle"
- :visible.sync="nextVisible"
- width="600px"
- append-to-body
- >
- <classrooms @close="closeNext" />
- </el-dialog>
- </div>
- </template>
- <script>
- import {
- chargeTypeList,
- musicGroupOrganizationCourseSettingsQueryPage,
- } from "@/api/specialSetting";
- import { getMusicGroupPaymentCalenderDetail } from "@/api/buildTeam";
- import {
- musicGroupPaymentCalenderAdd,
- musicGroupPaymentCalenderDetailBatchUpdate,
- queryByMusicGroupOrganizationCourseSettingsId,
- musicGroupPaymentCalenderView,
- } from "../api";
- import { paymentPatternType } from "@/constant";
- import { getTimes, objectToOptions } from "@/utils";
- import userBaseinfo from "./user-baseinfo";
- import paymentCycle from "./payment-cycle";
- import extraClass from "./extra-class";
- import extraClassUser from "./extra-class-user";
- import classrooms from "./classrooms";
- import otherform from "./other";
- import memberSetting from "./member-setting";
- import baseInfoVue from "../../teamDetail/components/baseInfo.vue";
- import merge from "webpack-merge";
- import numeral from "numeral";
- import { organizationCloudTeacherFeeQueryPage } from "@/api/specialSetting";
- const paymentTypeFormat = {
- 0: "MUSIC_APPLY",
- 1: "MUSIC_RENEW",
- 2: "ADD_COURSE",
- 3: "ADD_STUDENT",
- 4: "SPAN_GROUP_CLASS_ADJUST",
- };
- export default {
- props: [
- "type",
- "musicGroupId",
- "baseInfo",
- "paymentType",
- "rowDetail",
- "organizationCourseUnitPriceSettings",
- ],
- components: {
- userBaseinfo,
- paymentCycle,
- extraClass,
- extraClassUser,
- classrooms,
- otherform,
- memberSetting,
- },
- data() {
- return {
- options: [],
- form: {
- payUserType: this.type === "user" ? "STUDENT" : "SCHOOL",
- leixing: "1",
- musicGroupOrganizationCourseSettingId: null,
- },
- chargeTypeName: "",
- other: {},
- cycles: [{}],
- cycle: {},
- eclass: [],
- eclassuser: [],
- collapse: [0],
- nextVisible: false,
- typeList: [],
- charges: [],
- studentIds: "",
- payment: {
- paymentPattern: null,
- },
- viewDetail: null,
- organizationCourseUnitPriceSettingsByType: {},
- paymentPatternTypeOptions: objectToOptions(paymentPatternType),
- cloudFee: "",
- courseViewType: "",
- memberForm: {
- memberRankSettingId: "",
- memberValidDate: "",
- memberPaymentAmount: "",
- originalMemberPaymentAmount: "",
- paymentDate: [],
- },
- };
- },
- computed: {
- musicGroup() {
- return this.baseInfo?.musicGroup;
- },
- isCommon() {
- return this.form.leixing === "1";
- },
- isDisabled() {
- return this.form.leixing === "1" || String(this.paymentType) === "0";
- },
- isUserType() {
- return this.type === "user";
- },
- nextTitle() {
- return this.isCommon ? "乐团课程-班级选择" : "临时加课-班级选择";
- },
- chargesById() {
- const data = {};
- for (const item of this.charges) {
- data[item.id] = item;
- }
- return data;
- },
- paymentAmountDisabled() {
- return (
- (this.isUserType || (this.isCommon && this.isUserType)) &&
- this.isDisabled
- );
- },
- isMulticycle() {
- let editMulticycle = false;
- let paymentType = "";
- if (this.viewDetail) {
- const { musicGroupPaymentCalenders, auditDto } = this.viewDetail;
- paymentType = musicGroupPaymentCalenders[0]?.paymentType;
- editMulticycle =
- musicGroupPaymentCalenders.length > 1 || paymentType != "ADD_COURSE";
- if (editMulticycle) {
- this.cycles = musicGroupPaymentCalenders.map((item) => ({
- paymentAmount: item.paymentAmount,
- paymentDate: [item?.startPaymentDate, item?.deadlinePaymentDate],
- paymentValid: [
- item?.paymentValidStartDate,
- item?.paymentValidEndDate,
- ],
- }));
- }
- }
- return (
- (this.payment.paymentPattern == 0 &&
- this.form.leixing !== "2" &&
- paymentType !== "ADD_COURSE") ||
- (this.payment.paymentPattern == 0 && editMulticycle)
- );
- },
- paymentTypeString() {
- let paymentType = "";
- if (this.viewDetail) {
- const { musicGroupPaymentCalenders } = this.viewDetail;
- paymentType = musicGroupPaymentCalenders[0]?.paymentType;
- }
- return paymentType;
- },
- },
- watch: {
- type() {
- this.$set(
- this.form,
- "payUserType",
- this.type === "user" ? "STUDENT" : "SCHOOL"
- );
- },
- baseInfo(val) {
- this.formatCourse();
- this.getCharges();
- },
- organizationCourseUnitPriceSettings() {
- this.formatCourse();
- },
- "form.leixing"(val) {
- this.cycles = [{}];
- this.collapse = [0];
- this.cycle = {};
- this.$set(this.form, "musicGroupOrganizationCourseSettingId", undefined);
- this.$set(this.cycle, "paymentAmount", undefined);
- if (val === "1") {
- this.eclass = [];
- } else if (val === "2") {
- this.eclass = [{}];
- }
- },
- async "form.musicGroupOrganizationCourseSettingId"(val) {
- // && !this.rowDetail
- if (val ) {
- try {
- const res = await queryByMusicGroupOrganizationCourseSettingsId({
- id: val,
- });
- this.eclass = res.data.filter((item) => {
- return !item.isStudentOptional || this.paymentType !== undefined;
- }) || [{}];
- this.syncAllMoney();
- } catch (error) {}
- }
- },
- "payment.paymentPattern"() {
- this.syncAllMoney();
- },
- },
- mounted() {
- this.formatCourse();
- this.init();
- },
- activated() {
- this.formatCourse();
- this.init();
- },
- methods: {
- async init() {
- let organId = this.baseInfo?.musicGroup?.organId;
- this.courseViewType = this.baseInfo?.musicGroup?.courseViewType;
- if(this.courseViewType == 1){
- this.$set(this.form,'leixing',2)
- // console.log('paymentType',this.paymentType)
- this.addExtraClass()
- }
- // 如果为学员缴费且是乐团缴费则显示云教练的价格
- if (
- !this.paymentType &&
- this.type == "user" &&
- organId &&
- (this.courseViewType == 2 || this.courseViewType == 3)
- ) {
- try {
- const res = await organizationCloudTeacherFeeQueryPage({ organId });
- this.courseViewType == 2
- ? (this.cloudFee = res.data.rows[0].price)
- : (this.cloudFee = res.data.rows[0].plusPrice);
- } catch (e) {
- console.log(e);
- }
- // 获取乐团云教练费用
- // this.cloudFee
- }
- this.getCharges();
- if (this.rowDetail) {
- console.log("this.rowDetail", this.rowDetail);
- for (const key in paymentTypeFormat) {
- if (paymentTypeFormat.hasOwnProperty(key)) {
- const item = paymentTypeFormat[key];
- if (item === this.rowDetail.paymentType) {
- this.paymentType = key;
- }
- }
- }
- this.$set(
- this.other,
- "isGiveMusicNetwork",
- this.rowDetail.isGiveMusicNetwork
- );
- this.$set(this.other, "memo", this.rowDetail.memo);
- try {
- const res = await musicGroupPaymentCalenderView({
- musicGroupId: this.musicGroupId,
- batchNo: this.rowDetail.batchNo,
- });
- this.viewDetail = res.data;
- const firstPayment = res.data.musicGroupPaymentCalenders[0] || {};
- this.eclass = (
- res.data.musicGroupPaymentCalenderCourseSettings || []
- ).filter((item) => {
- return !item.isStudentOptional || this.paymentType !== undefined;
- });
- this.eclassuser =
- res.data.musicGroupPaymentCalenderStudentDetails.map((item) => {
- if (this.paymentTypeString === "SPAN_GROUP_CLASS_ADJUST") {
- return {
- ...item,
- courseOriginalPrice: item.masterSubCoursePrice,
- };
- }
- return item;
- });
- this.$set(
- this.payment,
- "paymentPattern",
- String(this.viewDetail.auditDto?.paymentPattern)
- );
- // 添加会员缴费信息
- this.$set(
- this.memberForm,
- "memberRankSettingId",
- this.viewDetail.musicGroupPaymentCalenders[0].memberRankSettingId||null
- );
- this.$set(
- this.memberForm,
- "memberValidDate",
- this.viewDetail.musicGroupPaymentCalenders[0].memberValidDate||null
- );
- this.$set(
- this.memberForm,
- "memberPaymentAmount",
- this.viewDetail.musicGroupPaymentCalenders[0].memberPaymentAmount
- );
- this.$set(
- this.memberForm,
- "originalMemberPaymentAmount",
- this.viewDetail.musicGroupPaymentCalenders[0]
- .originalMemberPaymentAmount
- );
- if (this.$refs.cycle) {
- this.$set(
- this.cycle,
- "paymentPattern",
- firstPayment.paymentPattern + ""
- );
- let arr = [
- firstPayment.paymentValidStartDate,
- firstPayment.paymentValidEndDate,
- ];
- // paymentDate startPaymentDate deadlinePaymentDate
- this.$set(this.cycle, "paymentDate", [
- firstPayment.startPaymentDate,
- firstPayment.deadlinePaymentDate,
- ]);
- this.$set(this.cycle, "paymentValid", arr);
- }
- this.studentIds = firstPayment.studentIds;
- this.$set(
- this.form,
- "musicGroupOrganizationCourseSettingId",
- res.data.auditDto?.musicGroupOrganizationCourseSettingsId
- );
- this.syncAllMoney();
- } catch (error) {}
- }
- },
- formatCourse() {
- const organId = this.musicGroup?.organId;
- const chargeTypeId = this.musicGroup?.chargeTypeId;
- const _ = {};
- const list = (this.organizationCourseUnitPriceSettings || []).filter(
- (item) =>
- organId &&
- organId == item.organId &&
- chargeTypeId &&
- chargeTypeId == item.chargeTypeId
- );
- for (const item of list) {
- _[item.courseType] = item;
- }
- this.organizationCourseUnitPriceSettingsByType = _;
- return _;
- },
- priceChange(item, index) {
- const _ = [...this.eclass];
- const active =
- this.organizationCourseUnitPriceSettingsByType[item.courseType] || {};
- const price = Math.round(
- numeral(active.unitPrice || 1)
- .multiply(item.courseTotalMinuties || 1)
- .value()
- );
- item.courseCurrentPrice = price;
- item.courseOriginalPrice = price;
- _[index] = item;
- this.eclass = [..._];
- this.syncAllMoney();
- },
- syncAllMoney() {
- if (this.paymentTypeString === "SPAN_GROUP_CLASS_ADJUST") {
- const money =
- this.viewDetail?.musicGroupPaymentCalenders[0].paymentAmount;
- this.$set(this.cycle, "paymentAmount", money);
- return money;
- }
- let money = 0;
- let first = 0;
- let other = 0;
- let classs =
- this.paymentTypeString === "SPAN_GROUP_CLASS_ADJUST"
- ? this.eclassuser
- : this.eclass;
- for (const item of classs) {
- money += item.courseCurrentPrice;
- if (this.cycles && this.cycles.length) {
- if (item.isStudentOptional) {
- first += item.courseCurrentPrice;
- } else {
- const floorMoney = Math.floor(
- item.courseCurrentPrice / this.cycles.length
- );
- const remainder = item.courseCurrentPrice % this.cycles.length;
- first += floorMoney + remainder;
- other += floorMoney;
- }
- }
- }
- if (this.cycles && this.cycles.length) {
- this.cycles = this.cycles.map((item, index) => {
- return {
- ...item,
- paymentAmount: index === 0 ? first : other,
- };
- });
- }
- // if (!money) {
- // this.$set(this.cycle, "paymentAmount", undefined);
- // } else {
- this.$set(this.cycle, "paymentAmount", money);
- // }
- return money;
- },
- async getChargeTypeList() {
- try {
- const res = await chargeTypeList({
- row: 9999,
- });
- this.typeList = res.data.rows;
- } catch (error) {}
- },
- async getCharges() {
- const organId = this.musicGroup?.organId;
- const chargeTypeId = this.musicGroup?.chargeTypeId;
- this.chargeTypeName = this.musicGroup?.chargeTypeName;
- try {
- const res = await musicGroupOrganizationCourseSettingsQueryPage({
- row: 9999,
- chargeTypeId,
- organId,
- });
- const ids = res.data.rows.map((item) => item.id);
- if (!ids.includes(this.form.musicGroupOrganizationCourseSettingId)) {
- this.$set(this.form, "musicGroupOrganizationCourseSettingId", null);
- }
- this.charges = res.data.rows;
- } catch (error) {}
- },
- addExtraClass() {
- this.eclass.push({});
- },
- removeExtraClass(index) {
- this.eclass[index] = null;
- this.eclass = this.eclass.filter((item) => !!item);
- },
- addCycle() {
- this.cycles.push({});
- this.collapse.push(this.cycles.length - 1);
- this.syncAllMoney();
- },
- removeCycle(index) {
- this.cycles[index] = null;
- this.cycles = this.cycles.filter((item) => !!item);
- if (this.collapse.includes(index)) {
- this.collapse.splice(index, 1);
- this.collapse = this.collapse.map((item, _index) =>
- _index - 1 >= index ? item-- : item
- );
- }
- this.syncAllMoney();
- },
- collapseChange(val) {
- this.collapse = val;
- },
- closeNext() {
- this.nextVisible = false;
- },
- getForms() {
- const { $refs: refs } = this;
- return [
- refs.base,
- refs.eclass,
- refs.cycle,
- ...(refs.cycles || []),
- refs.other,
- refs.payment,
- ]
- .filter((item) => !!item)
- .map((item) => item.$refs.form || item);
- },
- changeActive(val) {
- if (this.$listeners.changeActive) {
- this.$listeners.changeActive(val);
- }
- },
- async submit() {
- const forms = this.getForms();
- const valided = [];
- for (const form of forms) {
- form.validate((valid) => {
- if (valid) {
- valided.push(form);
- }
- });
- }
- if (this.eclass.length < 1 && this.eclassuser.length < 1&&this.courseViewType !=1) {
- return this.$message.error("请至少选择一条加课信息");
- }
- if (valided.length === forms.length) {
- const { leixing, ...rest } = {
- ...this.form,
- ...this.other,
- paymentPattern: this.payment.paymentPattern,
- musicGroupPaymentDateRangeList: [
- ...this.cycles.map((item) => {
- const { paymentDate, paymentValid, ...other } = item;
- return {
- ...other,
- ...getTimes(paymentDate, [
- "startPaymentDate",
- "deadlinePaymentDate",
- ]),
- ...getTimes(paymentValid, [
- "paymentValidStartDate",
- "paymentValidEndDate",
- ]),
- };
- }),
- ],
- musicGroupPaymentCalenderCourseSettingsList: this.eclass,
- musicGroupPaymentCalenderStudentDetails: this.eclassuser,
- };
- if (this.$refs.cycle) {
- const { paymentDate, paymentValid, ...other } = this.cycle;
- rest.musicGroupPaymentDateRangeList = [
- {
- ...other,
- ...getTimes(paymentDate, [
- "startPaymentDate",
- "deadlinePaymentDate",
- ]),
- ...getTimes(paymentValid, [
- "paymentValidStartDate",
- "paymentValidEndDate",
- ]),
- },
- ];
- }
- const data = {
- ...rest,
- ...this.memberForm,
- isGiveMusicNetwork: false,
- studentIds: this.studentIds,
- paymentType:
- paymentTypeFormat[
- this.paymentType == 0 ? this.paymentType : leixing
- ],
- musicGroupId: this.musicGroupId,
- };
- const info = this.viewDetail?.musicGroupPaymentCalenders[0];
- if (info && this.viewDetail?.auditDto.paymentType === "ADD_STUDENT") {
- data.attribute1 = info.attribute1;
- }
- // courseViewType == 1&&paymentType !== undefined
- let hasCourseFee = false;
- for (const item of data.musicGroupPaymentCalenderCourseSettingsList) {
- if (item.courseCurrentPrice > 0 || item.isStudentOptional == true) {
- hasCourseFee = true;
- break;
- }
- }
- // console.log(this.baseInfo?.musicGroup?.courseViewType, this.paymentType, hasCourseFee, this.type)
- if (
- (this.baseInfo?.musicGroup?.courseViewType == 2 ||
- this.baseInfo?.musicGroup?.courseViewType == 3) &&
- this.paymentType == 0 &&
- hasCourseFee &&
- this.type === "user"
- ) {
- this.$message.error(
- "报名缴费云教练收费模式课程费用不得大于0且不可选"
- );
- return;
- }
- if (!this.rowDetail?.batchNo) {
- try {
- const res = await musicGroupPaymentCalenderAdd(data);
- if (this.$route.query.team_status == "PRE_BUILD_FEE") {
- this.$message.success("创建成功");
- this.$store.dispatch("delVisitedViews", this.$route);
- this.$router.push({
- path: "/teamList",
- });
- }
- this.$listeners.close();
- this.$listeners.submited(res.data);
- // 在这里
- } catch (error) {}
- } else {
- try {
- data.batchNo = this.rowDetail.batchNo;
- // 缴费类型无法修改,按照之前覆盖
- data.paymentType =
- this.viewDetail.musicGroupPaymentCalenders[0]?.paymentType;
- const res = await musicGroupPaymentCalenderDetailBatchUpdate(data);
- this.$listeners.close();
- this.$listeners.submited(res.data);
- if (this.$route.query.type == "teamDraft") {
- this.$router.push({
- query: merge(this.$route.query, { type: "feeAudit" }),
- });
- }
- } catch (error) {}
- }
- }
- },
- },
- };
- </script>
- <style lang="less" scoped>
- .dialog-footer {
- margin-top: 20px;
- display: block;
- text-align: right;
- }
- .alert {
- margin-bottom: 10px;
- }
- .collapse-title {
- display: flex;
- justify-content: space-between;
- align-items: center;
- width: 100%;
- .el-icon-circle-close {
- font-size: 16px;
- margin-right: 10px;
- }
- }
- /deep/ .el-collapse-item__wrap {
- padding-top: 20px;
- }
- </style>
|