1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560 |
- <template>
- <div class="stu-container">
- <!-- 头部展示 -->
- <!-- <statistic>
- <statistic-item>
- <span>在读人数</span>
- <span>{{ studentListInfo.studying }}</span>
- </statistic-item>
- <statistic-item>
- <span>退团人数</span>
- <span>{{ studentListInfo.quit }}</span>
- </statistic-item>
- <statistic-item>
- <span>新增人数</span>
- <span>{{ studentListInfo.add }}</span>
- </statistic-item>
- <statistic-item>
- <span>VIP&网管转化率</span>
- <span>{{ studentListInfo.courseRate }}</span>
- </statistic-item>
- </statistic> -->
- <!-- style="margin-bottom: 15px" -->
- <p
- style="margin-bottom: 15px; font-size: 16px; font-weight: 400"
- v-if="
- team_status == 'PAY' ||
- team_status == 'APPLY' ||
- (team_status == 'PROGRESS' && isCanReg) ||
- team_status == 'PREPARE'
- "
- >
- <span> 报名截止时间:{{ applyExpireDate | formatTimer }} </span>
- <span v-if="team_status != 'APPLY'">
- 缴费截止时间:{{ paymentExpireDate | formatTimer }}
- </span>
- </p>
- <div class="studentListWrap" v-if="team_status == 'PROGRESS'">
- <div
- class="newBand"
- v-permission="'studentRegistration/insertStudent'"
- @click="createStudentFrom"
- >
- 新增学员
- </div>
- <!-- 可以直接去学生考勤查看 -->
- <!-- <el-button type="primary" v-permission="'/studentSignin'"
- @click="gotoSignin">点名总览</el-button> -->
- <!-- <div
- class="newBand"
- v-permission="'studentManage/queryStudentSubTotalCourseTimes'"
- @click="viewTimer"
- style="margin-right: 15px"
- >
- 剩余时长明细
- </div> -->
- </div>
- <div
- style="display: flex; justify-content: space-between; align-items: center"
- v-if="
- team_status == 'PAY' ||
- team_status == 'APPLY' ||
- (team_status == 'PROGRESS' && isCanReg) ||
- team_status == 'PREPARE'
- "
- >
- <!-- <h2> -->
- <!-- + '报名详情' -->
- <!-- <el-page-header @back="onCancel" :content="teamName">
- </el-page-header> -->
- <!-- </h2> -->
- <div
- class="btnList"
- style="margin-bottom: 15px; font-size: 18px; font-weight: 400"
- >
- <!-- <div class='newBand close'
- v-permission="'musicGroup/cancelMusicGroup'"
- @click="onClose">停止乐团</div> v-show="status == 'APPLY'"-->
- <div
- class="newBand"
- @click="payStart"
- v-permission="'musicGroup/openPay'"
- v-if="team_status == 'APPLY'"
- >
- 开始缴费
- </div>
- <!-- v-show="status=='PAY'" -->
- <div
- class="newBand"
- v-permission="'musicGroup/found'"
- @click="onGoHome"
- v-if="team_status == 'APPLY' || team_status == 'PAY'"
- >
- 确认开团
- </div>
- <div
- class="newBand"
- v-permission="'musicGroup/extensionPayment'"
- @click="extendTime(true)"
- v-show="
- team_status == 'PAY' ||
- team_status == 'PROGRESS' ||
- team_status == 'PREPARE'
- "
- >
- 延长缴费
- </div>
- <div
- class="newBand"
- v-permission="'musicGroup/extensionApplyExpireDate'"
- @click="extendTime(false)"
- v-show="
- team_status == 'PAY' ||
- team_status == 'APPLY' ||
- team_status == 'PROGRESS' ||
- team_status == 'PREPARE'
- "
- >
- 延长报名
- </div>
- <div class="newBand" @click="onCreateQRCode('payment')">报名链接</div>
- <div class="newBand" @click="onCreateQRCode('rePayment')">
- 报名链接(无乐器)
- </div>
- <div class="newBand" @click="onCreateQRCode('detail')">
- 报名缴费详情
- </div>
- <div
- class="newBand"
- v-permission="'musicGroup/addMusicGroupRegs'"
- @click="mergeVisible = true"
- v-show="team_status == 'PAY' || team_status == 'APPLY'"
- >
- 合并学员
- </div>
- <div
- v-if="team_status == 'APPLY'"
- v-permission="'studentRegistration/openPayment'"
- class="newBand"
- style="background-color: #14928a; border: 1px solid #14928a"
- @click="onPartPayment"
- type="primary"
- >
- 提前开启缴费
- </div>
- <el-popover placement="bottom" width="800" trigger="hover">
- <div>
- <el-table
- style="width: 100% !important"
- :data="leftList"
- :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
- >
- <el-table-column
- label="乐团声部"
- prop="subjectName"
- align="center"
- >
- </el-table-column>
- <el-table-column
- label="计划招生"
- prop="expectedStudentNum"
- align="center"
- >
- <template slot-scope="scope">
- <div>
- <p v-show="!isEdit">{{ scope.row.expectedStudentNum }}</p>
- <el-input
- v-show="isEdit"
- v-model.trim="scope.row.expectedStudentNum"
- ></el-input>
- </div>
- </template>
- </el-table-column>
- <el-table-column
- label="已报名"
- prop="applyStudentNum"
- align="center"
- >
- </el-table-column>
- <el-table-column label="已缴费" prop="payNum" align="center">
- </el-table-column>
- </el-table>
- <div
- class="btnWrap"
- v-permission="'musicGroup/updateExpectedStudentNum'"
- style="margin-right: 20px; margin-top: 20px"
- >
- <el-button v-show="!isEdit" @click="isEdit = true"
- >编辑</el-button
- >
- <el-button v-show="isEdit" @click="saveIsEdit">保存</el-button>
- </div>
- </div>
- <!-- <auth :auths="'studentRegistration/openPayment'">
- <el-button
- style="background-color: #14928a; border: 1px solid #14928a"
- @click="onPartPayment"
- type="primary"
- >开启缴费</el-button
- >
- </auth> -->
- <div class="newBand" style="margin-bottom: 10px" slot="reference">
- 声部报名计划
- </div>
- </el-popover>
- </div>
- </div>
- <!-- v-if="
- team_status == 'PAY' ||
- team_status == 'PROGRESS' ||
- team_status == 'PREPARE'
- " -->
- <!-- 搜索类型 -->
- <save-form
- ref="searchForm"
- :inline="true"
- :save-key="saveKey"
- class="searchForm"
- @submit="search"
- @reset="onReSet"
- :model="searchForm"
- >
- <el-form-item prop="search">
- <el-input
- v-model.trim="searchForm.search"
- clearable
- placeholder="学生姓名或电话"
- @keyup.enter.native="search"
- ></el-input>
- </el-form-item>
- <el-form-item prop="studentStatus">
- <el-select
- v-model.trim="searchForm.studentStatus"
- clearable
- filterable
- placeholder="学员状态"
- >
- <el-option label="在读" value="NORMAL"></el-option>
- <el-option label="请假" value="LEAVE"></el-option>
- <el-option label="退团" value="QUIT"></el-option>
- <el-option label="报名" value="APPLY"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item prop="createYear">
- <el-date-picker
- v-model="searchForm.createYear"
- type="year"
- value-format="yyyy"
- placeholder="选择入团年份"
- >
- </el-date-picker>
- </el-form-item>
- <el-form-item prop="currentGrade">
- <!-- <el-input
- v-model.trim="searchForm.currentGrade"
- clearable
- placeholder="学员年级"
- ></el-input> -->
- <el-select
- v-model.trim="searchForm.currentGrade"
- filterable
- clearable
- placeholder="请输入年级"
- >
- <el-option
- v-for="(item, index) in gradeList"
- :key="index"
- :label="item.label"
- :value="item.label"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item prop="classGroupId">
- <el-select
- v-model.trim="searchForm.classGroupId"
- clearable
- filterable
- placeholder="请选择班级"
- >
- <el-option
- v-for="(item, index) in classList"
- :key="index"
- :value="item.id"
- :label="item.name"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item prop="major">
- <el-select
- v-model.trim="searchForm.major"
- clearable
- filterable
- placeholder="所选专业"
- >
- <el-option
- v-for="(item, index) in soundList"
- :key="index"
- :value="item.id"
- :label="item.name"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item prop="isPay">
- <el-select
- v-model.trim="searchForm.isPay"
- clearable
- filterable
- placeholder="报名缴费"
- >
- <el-option label="未开启缴费" value="0"></el-option>
- <el-option label="开启缴费" value="1"></el-option>
- <el-option label="已缴费" value="2"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item prop="oweFlag">
- <el-select
- v-model.trim="searchForm.oweFlag"
- clearable
- filterable
- placeholder="是否欠费"
- >
- <el-option label="否" value="0"></el-option>
- <el-option label="是" value="1"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item prop="isActive">
- <el-select
- v-model.trim="searchForm.isActive"
- clearable
- filterable
- placeholder="是否激活"
- >
- <el-option label="是" value="1"></el-option>
- <el-option label="否" value="0"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item prop="hasCourse">
- <el-select
- v-model.trim="searchForm.hasCourse"
- clearable
- placeholder="VIP/网管是否有课"
- >
- <el-option label="是" value="true"></el-option>
- <el-option label="否" value="false"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item prop="carePackage">
- <el-select
- class="multiple"
- v-model.trim="searchForm.carePackage"
- clearable
- placeholder="关心包"
- >
- <el-option label="不可用" :value="0"></el-option>
- <el-option label="可用" :value="1"></el-option>
- <el-option label="已使用" :value="2"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item prop="comeOnPackage">
- <el-select
- class="multiple"
- v-model.trim="searchForm.comeOnPackage"
- clearable
- placeholder="加油包"
- >
- <el-option label="不可用" :value="0"></el-option>
- <el-option label="可用" :value="1"></el-option>
- <el-option label="已使用" :value="2"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item>
- <el-button native-type="submit" type="danger">搜索</el-button>
- <el-button type="primary" native-type="reset">重置</el-button>
- <el-button
- type="primary"
- v-permission="'export/musicGroupStudent'"
- @click="onMusicGroupExport"
- >导出</el-button
- >
- </el-form-item>
- </save-form>
- <div style="font-size: 14px; color: #f85043; padding-bottom: 10px">
- 在读人数:{{ studentListInfo.studying
- }}<i style="width: 10px; display: inline-block"></i> 退团人数:{{
- studentListInfo.quit
- }}<i style="width: 10px; display: inline-block"></i> VIP&网管转化率:{{
- studentListInfo.courseRate
- }}<i style="width: 10px; display: inline-block"></i>
- </div>
- <!-- 列表 -->
- <div class="tableWrap">
- <el-table
- :data="tableList"
- :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
- @selection-change="handleSelectionChange"
- >
- <el-table-column
- type="selection"
- width="55"
- :selectable="checkboxSelect"
- ></el-table-column>
- <el-table-column label="学员编号" width="120px;" prop="userId">
- <template slot-scope="scope">
- <copy-text>
- {{ scope.row.userId }}
- </copy-text>
- </template>
- </el-table-column>
- <el-table-column label="学员姓名" width="120px;" prop="realName">
- <template slot-scope="scope">
- <copy-text>
- {{ scope.row.realName }}
- </copy-text>
- </template>
- </el-table-column>
- <el-table-column
- align="center"
- prop="gender"
- width="50px;"
- label="性别"
- >
- <template slot-scope="scope">
- <div>{{ scope.row.gender | sex }}</div>
- </template>
- </el-table-column>
- <el-table-column align="center" prop="phone" label="联系电话">
- <template slot-scope="scope">
- <copy-text>
- {{ scope.row.phone }}
- </copy-text>
- </template>
- </el-table-column>
- <el-table-column align="center" label="入团年份">
- <template slot-scope="scope">
- <div>{{ scope.row.registerTime | dayjsFormat("YYYY年") }}</div>
- </template>
- </el-table-column>
- <el-table-column align="center" label="年级班级">
- <template slot-scope="scope">
- <div>{{ scope.row.currentGrade + scope.row.currentClass }}</div>
- </template>
- </el-table-column>
- <el-table-column align="center" label="报名专业" prop="subjectName">
- <template slot-scope="scope">
- <copy-text>
- {{ scope.row.regSubjectName }}
- </copy-text>
- </template>
- </el-table-column>
- <el-table-column align="center" label="入团专业" prop="subjectName">
- <template slot-scope="scope">
- <copy-text>
- {{ scope.row.subjectName }}
- </copy-text>
- </template>
- </el-table-column>
- <el-table-column align="center" prop="studentStatus" label="学员状态">
- <template slot-scope="scope">
- <div>{{ scope.row.studentStatus | musicGroupStudentType }}</div>
- </template>
- </el-table-column>
- <!-- <el-table-column align="center" label="新增学员">
- <template slot-scope="scope">
- <div>{{ scope.row.isNewStudent | yesOrNo }}</div>
- </template>
- </el-table-column> -->
- <el-table-column align="center" label="报名缴费">
- <template slot-scope="scope">
- <div>{{ scope.row.paymentStatus | paymentStatus }}</div>
- </template>
- </el-table-column>
- <el-table-column align="center" label="是否激活">
- <template slot-scope="scope">
- <div>{{ scope.row.isActive ? "是" : "否" }}</div>
- </template>
- </el-table-column>
- <el-table-column align="center" label="VIP/网管是否有课">
- <template slot-scope="scope">
- <div>{{ scope.row.hasCourse ? "是" : "否" }}</div>
- </template>
- </el-table-column>
- <el-table-column align="center" label="关心包">
- <template slot-scope="scope">{{
- scope.row.carePackage | studentPackage
- }}</template>
- </el-table-column>
- <el-table-column align="center" label="加油包">
- <template slot-scope="scope">{{
- scope.row.comeOnPackage | studentPackage
- }}</template>
- </el-table-column>
- <el-table-column align="center" label="欠费金额(元)">
- <template slot-scope="scope">
- <div :class="[scope.row.noPaymentAmount > 0 ? 'error' : null]">
- {{ scope.row.noPaymentAmount | moneyFormat }}
- <!-- musicGroupPaymentCalenderDetail/queryPage/studentList -->
- <auth
- auths="musicGroupPaymentCalenderDetail/queryPage/studentList"
- :router="['/teamLists']"
- >
- <i
- style="color: #14928a; font-size: 17px"
- title="缴费记录"
- class="el-icon-view"
- @click="onPaymentDetail(scope.row)"
- ></i>
- </auth>
- </div>
- </template>
- </el-table-column>
- <el-table-column label="退团原因" align="center">
- <template slot-scope="scope">
- <div>
- <Tooltip :content="scope.row.quitReason" />
- </div>
- </template>
- </el-table-column>
- <el-table-column
- align="center"
- fixed="right"
- width="360px;"
- label="操作"
- >
- <template slot-scope="scope">
- <div>
- <el-button
- type="text"
- v-if="
- permission('studentManage/queryStudentClassGroup') &&
- scope.row.studentStatus != 'QUIT'
- "
- @click="lookClass(scope.row)"
- >查看班级</el-button
- >
- <el-button
- type="text"
- v-if="
- permission('musicGroupPaymentCalender/add') &&
- scope.row.studentStatus == 'APPLY' &&
- scope.row.paymentStatus != '2' &&
- team_status == 'PROGRESS'
- "
- @click="addPay(scope.row)"
- >添加缴费</el-button
- >
- <el-button
- type="text"
- v-if="
- permission('musicGroupQuit/directQuitMusicGroup2') &&
- scope.row.studentStatus != 'QUIT'
- "
- @click="quieTeamMask(scope.row)"
- >退团退费</el-button
- >
- <el-button
- type="text"
- v-if="
- permission('musicGroupQuit/directQuitMusicGroup3') &&
- scope.row.studentStatus != 'QUIT'
- "
- @click="quieTeam(scope.row)"
- >退团</el-button
- >
- <el-button
- type="text"
- v-if="permission('visit/add/teamStudentList')"
- @click="addVisit(scope.row)"
- >新增回访</el-button
- >
- <auth :auths="'studentRegistration/batchUpdateSubject'">
- <el-button
- type="text"
- v-show="scope.row.paymentStatus != 2 && isShowResSound()&& scope.row.studentStatus != 'QUIT'"
- @click="resetSubject(scope.row)"
- >修改专业</el-button
- >
- </auth>
- <!-- APPLY status == "APPLY" || s-->
- <el-popover
- v-show="scope.row.remark"
- placement="top-start"
- title="备注"
- width="200"
- trigger="hover"
- :content="scope.row.remark"
- >
- <el-button type="text" slot="reference">备注</el-button>
- </el-popover>
- <!-- PAY -->
- <!-- && status == "PAY"-->
- <auth
- :auths="'studentRegistration/queryFeeDetail'"
- v-show="scope.row.paymentStatus == 2"
- >
- <el-button type="text" @click="lookdetail(scope.row)"
- >查看</el-button
- >
- </auth>
- <auth
- :auths="'subjectChange/getStudentOriginal'"
- v-show="scope.row.paymentStatus == 2 && isShowResSound()&& scope.row.studentStatus != 'QUIT'"
- >
- <el-button type="text" @click="openChangeVoice(scope.row)"
- >更改声部</el-button
- >
- </auth>
- </div>
- </template>
- </el-table-column>
- </el-table>
- <pagination
- :save-key="saveKey"
- sync
- :total.sync="rules.total"
- :page.sync="rules.page"
- :limit.sync="rules.limit"
- :page-sizes="rules.page_size"
- @pagination="getList"
- />
- </div>
- <el-dialog
- title="新增学员"
- width="700px"
- class="studentInfo"
- :visible.sync="addStudentVisible"
- >
- <el-form
- :model="maskForm"
- label-position="right"
- label-width="120px"
- ref="maskForm"
- :rules="maskRules"
- :inline="true"
- >
- <el-alert title="基本信息" :closable="false" class="alert" type="info">
- </el-alert>
- <el-form-item
- label="联系电话"
- prop="phone"
- :rules="[
- { required: true, message: '请输入手机号' },
- {
- pattern: /^1[3456789]\d{9}$/,
- message: '请输入正确的手机号',
- trigger: 'blur',
- },
- ]"
- >
- <el-input
- v-model.trim="maskForm.phone"
- placeholder="联系电话"
- @blur="checkPhone(maskForm.phone)"
- ></el-input>
- </el-form-item>
- <el-form-item label="学员姓名" prop="studentName">
- <el-input
- v-model.trim="maskForm.studentName"
- placeholder="学员姓名"
- ></el-input>
- </el-form-item>
- <el-form-item label="学员性别" prop="sex">
- <el-select v-model.trim="maskForm.sex" clearable>
- <el-option label="男" :value="1"></el-option>
- <el-option label="女" :value="0"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="家长姓名" prop="parentName">
- <el-input
- v-model.trim="maskForm.parentName"
- placeholder="家长姓名"
- ></el-input>
- </el-form-item>
- <el-form-item label="年级" prop="currentGradeNum">
- <el-select
- placeholder="起始年级"
- filterable
- clearable
- v-model.trim="maskForm.currentGradeNum"
- >
- <el-option
- v-for="item in gradeList"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- ></el-option>
- <!-- <el-option value="一年级" label="一年级"></el-option>
- <el-option value="二年级" label="二年级"></el-option>
- <el-option value="三年级" label="三年级"></el-option>
- <el-option value="四年级" label="四年级"></el-option>
- <el-option value="五年级" label="五年级"></el-option>
- <el-option value="六年级" label="六年级"></el-option>
- <el-option value="初一" label="初一"></el-option>
- <el-option value="初二" label="初二"></el-option>
- <el-option value="初三" label="初三"></el-option>
- <el-option value="高一" label="高一"></el-option>
- <el-option value="高二" label="高二"></el-option>
- <el-option value="高三" label="高三"></el-option> -->
- </el-select>
- </el-form-item>
- <el-form-item label="班级" prop="course">
- <el-input
- v-model.trim="maskForm.course"
- placeholder="班级"
- ></el-input>
- </el-form-item>
- <el-form-item label="学员声部" prop="sound">
- <el-select
- v-model.trim="maskForm.sound"
- clearable
- filterable
- @change="onSoundChange"
- >
- <el-option
- v-for="(item, index) in soundList"
- :key="index"
- :value="item.id"
- :label="item.name"
- ></el-option>
- </el-select>
- </el-form-item>
- <!-- <el-form-item label="证件号"
- prop="id">
- <el-input v-model.trim="maskForm.id"></el-input>
- </el-form-item>-->
- <el-form-item label="出生日期" style="margin-right: 0" prop="timer">
- <el-col :span="24">
- <el-date-picker
- v-model.trim="maskForm.timer"
- value-format="yyyy-MM-dd"
- type="date"
- :picker-options="{
- firstDayOfWeek: 1,
- }"
- placeholder="选择日期"
- ></el-date-picker>
- </el-col>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <!-- <el-button @click="addStudentVisible = false">取 消</el-button> -->
- <el-button type="primary" @click="addStudent">确 定</el-button>
- </div>
- </el-dialog>
- <el-dialog
- title="学员所在班级"
- width="640px"
- :visible.sync="studentClassVisible"
- >
- <el-form :model="classMask">
- <el-form-item label="学生姓名">{{
- classMask.studentName
- }}</el-form-item>
- <el-form-item
- label="所在班级"
- v-for="(item, index) in classLists"
- :key="index"
- >{{ item.name }}</el-form-item
- >
- </el-form>
- </el-dialog>
- <!-- 退团弹窗 -->
- <el-dialog title="退团信息确认" width="640px" :visible.sync="quitVisible">
- <el-form :model="quitForm" ref="quitForm" :rules="quitRules">
- <el-form-item label="退还课程费用" prop="isRefundCourseFee">
- <el-radio v-model.trim="quitForm.isRefundCourseFee" :label="true"
- >是</el-radio
- >
- <el-radio v-model.trim="quitForm.isRefundCourseFee" :label="false"
- >否</el-radio
- >
- </el-form-item>
- <el-form-item label="退还乐器费用" prop="isRefundInstrumentFee">
- <el-radio v-model.trim="quitForm.isRefundInstrumentFee" :label="true"
- >是</el-radio
- >
- <el-radio v-model.trim="quitForm.isRefundInstrumentFee" :label="false"
- >否</el-radio
- >
- </el-form-item>
- <el-form-item label="退还教辅费用" prop="isRefundTeachingAssistantsFee">
- <el-radio
- v-model.trim="quitForm.isRefundTeachingAssistantsFee"
- :label="true"
- >是</el-radio
- >
- <el-radio
- v-model.trim="quitForm.isRefundTeachingAssistantsFee"
- :label="false"
- >否</el-radio
- >
- </el-form-item>
- <el-form-item label="退团原因" prop="reason">
- <el-input type="textarea" v-model.trim="quitForm.reason"></el-input>
- </el-form-item>
- </el-form>
- <span slot="footer" class="dialog-footer question">
- <div>
- <el-popover placement="right" width="500" trigger="click">
- <div class="popoverWrap">
- <p>乐团退团退费规则:</p>
- <p>退还课程费用:缴费总额-已结束课时单价之和</p>
- <p>退还乐器费用:报名缴费时缴纳的乐器费用(团购、租金)</p>
- <p>退还教辅费用:报名缴费时缴费的教辅费用</p>
- </div>
- <el-button
- type="text"
- icon="el-icon-question"
- slot="reference"
- style="color: red"
- >退团退费说明</el-button
- >
- </el-popover>
- </div>
- <div>
- <el-button @click="quitVisible = false">取 消</el-button>
- <el-button type="primary" @click="chioseType">确 定</el-button>
- </div>
- </span>
- </el-dialog>
- <el-dialog title="报名二维码" :visible.sync="qrcodeStatus" width="300px">
- <div class="left-code">
- <h2>学员报名连接</h2>
- <div id="qrcode" class="qrcode code" ref="qrCodeUrl"></div>
- <p class="code-url" v-if="codeUrl">{{ codeUrl }}</p>
- </div>
- </el-dialog>
- <el-dialog :visible.sync="timesVisible" title="查看剩余可排课时长">
- <times-view v-if="timesVisible" @close="timesVisible = false" />
- </el-dialog>
- <el-dialog
- title="修改缴费周期"
- :before-close="closePayVisible"
- width="600px"
- :visible.sync="payVisible"
- >
- <el-form :model="payForm" ref="payForm" :inline="true">
- <el-form-item label="学生姓名" prop="studentName">
- <el-input v-model.trim="payForm.studentName" disabled></el-input>
- </el-form-item>
- <br />
- <el-form-item label="缴费金额" prop="payMoney">
- <el-input
- type="number"
- v-model.trim="payForm.payMoney"
- @mousewheel.native.prevent
- ></el-input>
- </el-form-item>
- <el-form-item label="缴费月份" prop="payMonth">
- <el-checkbox-group
- v-model.trim="payForm.payMonth"
- fill="#14928A"
- text-color="#474747"
- >
- <el-checkbox label="1">一月</el-checkbox>
- <el-checkbox label="2">二月</el-checkbox>
- <el-checkbox label="3">三月</el-checkbox>
- <el-checkbox label="4">四月</el-checkbox>
- <el-checkbox label="5">五月</el-checkbox>
- <el-checkbox label="6">六月</el-checkbox>
- <el-checkbox label="7">七月</el-checkbox>
- <el-checkbox label="8">八月</el-checkbox>
- <el-checkbox label="9">九月</el-checkbox>
- <el-checkbox label="10">十月</el-checkbox>
- <el-checkbox label="11">十一月</el-checkbox>
- <el-checkbox label="12">十二月</el-checkbox>
- </el-checkbox-group>
- </el-form-item>
- <!-- studentName: '',
- payMoney: '',
- payMonth-->
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button @click="quitVisible = false">取 消</el-button>
- <el-button type="primary" @click="submitPay">确 定</el-button>
- </div>
- </el-dialog>
- <el-dialog
- title="新增回访"
- width="500px"
- destroy-on-close
- :close-on-click-modal="false"
- :visible.sync="visitVisiable"
- >
- <visit
- v-if="visitVisiable && detail"
- :detail="detail"
- @close="visitVisiable = false"
- @submited="getList"
- />
- </el-dialog>
- <el-dialog
- title="选择班级"
- destroy-on-close
- width="700px"
- :visible.sync="createUserPayVisible"
- >
- <createUserPay
- :signList="signList"
- :mixList="mixList"
- :highList="highList"
- :snapList="snapList"
- :musicGroupId="this.teamid"
- :organizationCourseUnitPriceSettings="
- organizationCourseUnitPriceSettings
- "
- :createdUserId="createdUserId"
- :baseInfo="baseInfo"
- @submited="getList"
- @close="createUserPayVisible = false"
- />
- </el-dialog>
- <el-dialog
- title="缴费记录"
- width="900px"
- :visible.sync="paymentDetailVisible"
- >
- <payment-list
- v-if="paymentDetailVisible"
- :paymentDetail="paymentDetail"
- @close="paymentDetailVisible = false"
- />
- </el-dialog>
- <el-dialog title="选择合并乐团" :visible.sync="mergeVisible" width="950px">
- <mergeMusic
- v-if="mergeVisible"
- style="padding: 0 20px"
- :organId="organId"
- @close="mergeVisible = false"
- @submited="getList"
- />
- </el-dialog>
- <el-dialog
- title="开始缴费"
- :visible.sync="paymentStatus"
- width="400px"
- destroy-on-close
- >
- <el-form
- ref="paymentForm"
- class="paymentForm"
- :model="paymentForm"
- :rules="paymentRules"
- >
- <el-form-item label="请设置缴费截止日期" prop="paymentExpireDate">
- <el-date-picker
- v-model.trim="paymentForm.paymentExpireDate"
- type="date"
- value-format="yyyy-MM-dd"
- :picker-options="payDate()"
- style="width: 100%"
- placeholder="选择日期"
- >
- </el-date-picker>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button @click="paymentStatus = false">取 消</el-button>
- <el-button type="primary" @click="onStartPayment('paymentForm')"
- >确 定</el-button
- >
- </div>
- </el-dialog>
- <el-dialog
- :title="!isPay ? '延长报名' : '延长缴费'"
- :visible.sync="extendPaymentStatus"
- destroy-on-close
- width="400px"
- >
- <el-form :model="extendForm" ref="extendForm" :rules="extendRule">
- <el-form-item v-if="isPay" label="延长缴费时间" prop="expireDate">
- <el-date-picker
- v-model.trim="extendForm.expireDate"
- value-format="yyyy-MM-dd"
- type="date"
- :picker-options="{
- firstDayOfWeek: 1,
- }"
- placeholder="选择日期"
- >
- </el-date-picker>
- </el-form-item>
- <el-form-item label="延长报名时间" v-else prop="expireDate">
- <el-date-picker
- v-model.trim="extendForm.expireDate"
- value-format="yyyy-MM-dd"
- type="date"
- :picker-options="applyDate"
- placeholder="选择日期"
- >
- </el-date-picker>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button @click="extendPaymentStatus = false">取 消</el-button>
- <el-button
- type="primary"
- v-if="isPay"
- @click="onExtendPayment('extendForm', isPay)"
- >确 定</el-button
- >
- <el-button
- v-else
- type="primary"
- @click="onExtendPayment('extendForm', isPay)"
- >确 定</el-button
- >
- </div>
- </el-dialog>
- <qr-code v-model="codeStatus" :title="codeTitle" :codeUrl="qrCodeUrl" />
- <el-dialog
- title="更改声部"
- :visible.sync="changeVoiceVisible"
- @close="closeChangeVoice"
- v-if="changeVoiceVisible"
- width="600px"
- >
- <changeVoice
- @close="closeChangeVoice"
- @submited="getList"
- :detail.sync="rowDetail"
- :musicGroupId="teamid"
- :voiceList="leftList"
- />
- </el-dialog>
- <el-dialog
- title="订单详情"
- :visible.sync="orderVisible"
- width="600px"
- v-if="orderVisible"
- >
- <el-form :model="orderForm" :inline="true">
- <!-- name: '',
- totalAmount: '',
- subject: '',
- subjectFee: '',
- axe: '',
- axePrice: '',
- others: '',
- othersPrice: '' -->
- <el-form-item label="学员姓名">
- <el-input v-model.trim="orderForm.name" disabled=""></el-input>
- </el-form-item>
- <el-form-item label="实缴金额">
- <el-input v-model.trim="orderForm.totalAmount" disabled=""></el-input>
- </el-form-item>
- <el-form-item label="实际专业">
- <el-input v-model.trim="orderForm.subject" disabled=""></el-input>
- </el-form-item>
- <el-form-item label="课程费用">
- <el-input v-model.trim="orderForm.subjectFee" disabled=""></el-input>
- </el-form-item>
- <el-form-item label="选择乐器">
- <el-input v-model.trim="orderForm.axe" disabled=""></el-input>
- </el-form-item>
- <el-form-item label="乐器价格">
- <el-input v-model.trim="orderForm.axePrice" disabled=""></el-input>
- </el-form-item>
- <el-form-item label="教辅组合">
- <el-input v-model.trim="orderForm.others" disabled=""></el-input>
- </el-form-item>
- <el-form-item label="组合价格">
- <el-input v-model.trim="orderForm.othersPrice" disabled=""></el-input>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <!-- <el-button>取 消</el-button> -->
- <el-button type="primary" @click="orderVisible = false"
- >确 定</el-button
- >
- </div>
- </el-dialog>
- <el-dialog title="修改专业" :visible.sync="subjectVisible" width="400px">
- <el-form :model="maskSoundForm">
- <el-form-item label="选择专业">
- <el-select v-model.trim="maskSoundForm.subject" filterable clearable>
- <el-option
- v-for="(item, index) in soundList"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button @click="subjectVisible = false">取 消</el-button>
- <el-button type="primary" @click="okReset">确 定</el-button>
- </div>
- </el-dialog>
- </div>
- </template>
- <script>
- import {
- getTeamStudentList,
- getTeamStudentInfo,
- findSound,
- StudentQuit,
- findSubjectPlan,
- getGoods,
- getMusicGroup,
- getMusicGroupAllClass,
- StudentFeeIsLock,
- updateStudentFee,
- getMusicGroupGradeList,
- getStudentList,
- musicGroupOpenPay,
- extensionPayment,
- extensionApplyExpire,
- getTeamBaseInfo,
- getintoClass,
- resetPlanNum,
- openPayment,
- musicGroupFound,
- checkCanReg,
- } from "@/api/buildTeam";
- import {
- addStudent,
- getStudentClass,
- getStudentInfoByPhone,
- getStudentFeeDetail,
- resetStudentSubject,
- } from "@/api/studentManager";
- import qrCode from "@/components/QrCode/index";
- import { getOrganizationCourseUnitPriceSettings } from "@/api/specialSetting";
- import { visitChiose } from "@/utils/searchArray";
- import pagination from "@/components/Pagination/index";
- import { vaildStudentUrl, vaildTeacherUrl } from "@/utils/validate";
- import QRCode from "qrcodejs2";
- import axios from "axios";
- import { getToken } from "@/utils/auth";
- import { permission } from "@/utils/directivePage";
- import { addVisit } from "@/views/returnVisitManager/api.js";
- import cleanDeep from "clean-deep";
- import createUserPay from "./modals/create-user-pay.vue";
- import TimesView from "./modals/course-time-detail";
- import paymentCycle from "../../resetTeaming/modals/payment-cycle";
- import paymentList from "./modals/payment-list";
- import Tooltip from "@/components/Tooltip/index";
- import changeVoice from "@/views/teamBuild/modals/change-voice";
- //import changeVoice from "./modals/change-voice";
- import visit from "@/views/withdrawal-application/modals/visit";
- import mergeMusic from "@/views/teamBuild/components/merge-music";
- export default {
- name: "tstudentList",
- data() {
- return {
- detail: null,
- teamid: "",
- paymentDetailVisible: false,
- paymentDetail: {},
- payVisible: false,
- quitVisible: false, // 退团信息确认的弹窗
- studentClassVisible: false, // 学员所在班级弹窗
- addStudentVisible: false, //新增学员弹窗
- timesVisible: false,
- timerDetail: null,
- topFrom: {
- // 顶部的禁选框集合
- expect: "2", // 预期招生
- studing: "5", // 在读人数
- allmoney: "100", //实收总额
- students: "5", // 实际招生人数
- signout: "10", // 退团总数
- },
- searchForm: {
- studentStatus: "", // 学生状态
- major: "", // 报名专业
- isPay: "", // 是否缴费
- search: "",
- isActive: "",
- oweFlag: "",
- currentGrade: null,
- createYear: null,
- classGroupId: null,
- hasCourse: null,
- carePackage: null,
- comeOnPackage: null,
- },
- organizationCourseUnitPriceSettings: [],
- quitForm: {
- // 退团信息确认
- isRefundCourseFee: null,
- isRefundInstrumentFee: null,
- isRefundTeachingAssistantsFee: null,
- reason: "",
- },
- classMask: {
- studentName: "",
- },
- baseInfo: {},
- searchLsit: [],
- tableList: [], //
- rules: {
- // 分页规则
- limit: 10, // 限制显示条数
- page: 1, // 当前页
- total: 0, // 总条数
- page_size: [10, 20, 40, 50], // 选择限制显示条数
- },
- studentListInfo: {
- add: "",
- quit: "",
- studying: "",
- courseRate: "",
- },
- signList: [],
- mixList: [],
- highList: [],
- snapList: [],
- soundList: [],
- highonlineList: [],
- muiscnetworkList: [],
- qrcodeStatus: false, // 生成二维码
- qrcodes: true,
- qrcode: null,
- codeUrl: null,
- gradeList: [], // 学生
- maskForm: {
- studentName: "",
- sex: "",
- parentName: "",
- course: "",
- phone: "",
- sound: "",
- timer: "",
- signClass: "",
- mixClass: "",
- highClass: "",
- snapClass: [],
- highonline: "",
- muiscnetwork: "",
- startClass: "",
- currentGradeNum: null,
- id: "",
- // courseFee: null, // 声部费用
- temporaryCourseFee: null, // 本次课程费用
- musicGoodsIdList: null, // 乐器商品编号
- kitGroupPurchaseType: "GROUP", // 乐器购买方式
- musicPrice: null, // 乐器购买金额
- instrGoodsIdList: [], // 辅件商品编号
- instrPrice: null, // 辅件购买金额
- },
- remark: "", // 退团原因
- classList: [],
- quitRules: {
- isRefundCourseFee: [
- { required: true, message: "请选择是否退还课程费用" },
- ],
- isRefundInstrumentFee: [
- { required: true, message: "选择是否退还乐器费用" },
- ],
- isRefundTeachingAssistantsFee: [
- { required: true, message: "选择是否退还教辅费用" },
- ],
- reason: [{ required: true, message: "请填写退团退费原因" }],
- },
- maskRules: {
- studentName: [{ required: true, message: "请输入学生姓名" }],
- sex: [{ required: true, message: "请选择学生姓名" }],
- parentName: [{ required: true, message: "请输入家长姓名" }],
- course: [{ required: true, message: "请输入班级" }],
- // phone: [{ required: true, message: '请输入手机号' }, { pattern: /^1[3456789]\d{9}$/, message: '请输入正确的手机号', trigger: 'blur' }],
- sound: [{ required: true, message: "请选择声部" }],
- timer: [{ required: true, message: "请选择出生日期" }],
- signClass: [{ required: true, message: "请选择声部班" }],
- // price: [{ required: true, message: '请输入首缴金额' },],
- currentGradeNum: [{ required: true, message: "请选择年级" }],
- id: [{ required: true, message: "请输入证件号" }],
- // courseFee: [{ required: true, message: "请输入声部费用" }],
- temporaryCourseFee: [{ required: true, message: "请输课程费用" }],
- musicGoodsIdList: [
- { required: true, message: "请选择乐器", trigger: "change" },
- ],
- musicPrice: [{ required: true, message: "请输入乐器购买金额" }],
- instrGoodsIdList: [{ required: true, message: "请选择辅件" }],
- instrPrice: [{ required: true, message: "请输入辅件金额" }],
- },
- INSTRUMENTLIST: [], // 乐器列表
- ACCESSORIESLIST: [], // 辅件列表
- activeRow: null,
- Fsearch: null,
- Frules: null,
- payForm: {
- studentName: "",
- payMoney: "",
- payMonth: [],
- },
- kitStatus: false, // 乐器提供方式
- // 新增回访记录弹窗
- visitVisiable: false,
- visitForm: {
- musicGroupId: "",
- overview: "",
- purpose: "",
- studentId: "",
- type: "",
- visitTime: "",
- visitType: "",
- feedback: "",
- studentName: "",
- },
- cycles: [{}],
- collapse: [0],
- visitChiose,
- visitRules: {
- overview: [{ required: true, message: "请输入学生近况" }],
- feedback: [{ required: true, message: "请输入家长反馈" }],
- visitTime: [{ required: true, message: "请输入回访时间" }],
- visitType: [{ required: true, message: "请选择回访类型" }],
- },
- pickerOptions: null,
- classLists: null,
- createdUserId: 0,
- createUserPayVisible: false,
- team_status: "",
- // 整合报名中
- paymentExpireDate: "",
- applyExpireDate: null,
- mergeVisible: false,
- team_status: "",
- paymentNum: 0,
- paymentStatus: false,
- paymentForm: {
- paymentExpireDate: null,
- // feeType: null
- },
- paymentRules: {
- paymentExpireDate: [
- { required: true, message: "请设置缴费截止日期", trigger: "blur" },
- ],
- },
- extendForm: {
- expireDate: null,
- },
- extendRule: {
- expireDate: [
- { required: true, message: "请选择延长时间", trigger: "change" },
- ],
- },
- isPay: false,
- extendPaymentStatus: false, // 延长缴费
- codeStatus: false,
- qrCodeUrl: null,
- codeTitle: null,
- isEdit: false,
- leftList: [],
- changeVoiceVisible: false,
- rowDetail: null,
- orderVisible: false,
- orderForm: {
- name: "",
- totalAmount: "",
- subject: "",
- subjectFee: "",
- axe: "",
- axePrice: "",
- others: "",
- othersPrice: "",
- },
- maskSoundForm: {
- subject: "",
- },
- subjectVisible: false,
- multipleSelection: [],
- isCanReg: false,
- organId: "",
- };
- },
- components: {
- pagination,
- paymentCycle,
- createUserPay,
- Tooltip,
- "times-view": TimesView,
- paymentList,
- visit,
- qrCode,
- changeVoice,
- mergeMusic,
- },
- created() {},
- filters: {
- studentPays(val) {
- let template = {
- 0: "未缴费",
- 1: "已缴费",
- };
- return template[val];
- },
- },
- // activated() {
- // this.init();
- // },
- async mounted() {
- try {
- const res = await getOrganizationCourseUnitPriceSettings({
- rows: 9999,
- });
- this.organizationCourseUnitPriceSettings = res.data.rows;
- } catch (error) {}
- this.init();
- },
- methods: {
- onPaymentDetail(row) {
- this.paymentDetail = row;
- this.paymentDetailVisible = true;
- },
- viewTimer(row) {
- // this.timerDetail = row
- this.timesVisible = true;
- },
- permission(str) {
- return permission(str);
- },
- async init() {
- this.teamid = this.$route.query.id;
- this.team_status = this.$route.query.team_status;
- // 获取乐团是否能补招
- try {
- const ruselt = await checkCanReg({ musicGroupId: this.teamid });
- this.isCanReg = ruselt.data;
- } catch (e) {
- console.log(e);
- }
- getMusicGroupGradeList({ musicGroupId: this.teamid }).then((res) => {
- let result = res.data;
- if (res.code == 200 && result) {
- for (let i in result) {
- this.gradeList.push({
- value: i,
- label: result[i],
- });
- }
- }
- });
- // 获取报名截止日期和缴费截止日期
- getTeamBaseInfo({ musicGroupId: this.teamid }).then((res) => {
- if (res.code == 200) {
- this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
- this.applyExpireDate = res.data.musicGroup.applyExpireDate;
- this.organId = res.data.musicGroup.organId;
- }
- });
- // 获取汇总数据
- // this.getTeamStudent();
- this.pickerOptions = this.beginDate();
- this.getList();
- // 获取乐团内所有声部
- findSound({ musicGroupId: this.teamid }).then((res) => {
- if (res.code == 200) {
- this.soundList = res.data;
- }
- });
- getintoClass({ musicGroupId: this.teamid }).then((res) => {
- if (res.code == 200) {
- this.leftList = res.data;
- }
- });
- // 获取乐团基本信息
- getMusicGroup({ musicGroupId: this.teamid }).then(
- (res) => (this.baseInfo = res.data)
- );
- // 获取乐团所有合奏课
- getMusicGroupAllClass({ musicGroupId: this.teamid }).then((res) => {
- if (res.code == 200) {
- this.classList = res.data;
- this.signList = [];
- this.mixList = [];
- this.highList = [];
- this.snapList = [];
- this.classList.forEach((item) => {
- if (item.type == "NORMAL") {
- this.signList.push(item);
- } else if (item.type == "MIX") {
- this.mixList.push(item);
- } else if (item.type == "HIGH") {
- this.highList.push(item);
- } else if (item.type == "SNAP") {
- this.snapList.push(item);
- } else if (item.type == "HIGH_ONLINE") {
- this.highonlineList.push(item);
- } else if (item.type == "MUSIC_NETWORK") {
- this.muiscnetworkList.push(item);
- }
- });
- }
- });
- },
- getTeamStudent() {
- getTeamStudentInfo({ musicGroupId: this.teamid }).then((res) => {
- if (res.code == 200) {
- this.studentListInfo = res.data;
- }
- });
- },
- permission(str) {
- return permission(str);
- },
- onInstrumentChange() {
- // 乐器切换时
- // 乐器切换时
- // let tempkitType = this.maskForm.kitGroupPurchaseType
- // if(tempkitType == 'GROUP') {
- // this.INSTRUMENTLIST.forEach(item => {
- // if(item.value == value) {
- // this.maskForm.musicPrice = item.marketPrice
- // }
- // })
- // }
- },
- onKitGroupChnage(value) {
- // 乐器提供方式
- this.kitStatus = false;
- if (value == "FREE") {
- this.kitStatus = true;
- this.maskForm.musicPrice = 0;
- } else {
- this.maskForm.musicPrice = null;
- }
- },
- onMusicGroupExport() {
- let url = "/api-web/export/musicGroupStudent";
- let data = {
- musicGroupId: this.teamid,
- studentStatus: this.searchForm.studentStatus || null,
- paymentStatus: this.searchForm.isPay || null,
- subjectId: this.searchForm.major || null,
- search: this.searchForm.search || null,
- isActive: this.searchForm.isActive || null,
- classGroupId: this.searchForm.classGroupId || null,
- currentGrade: this.searchForm.currentGrade || null,
- createYear: this.searchForm.createYear || null,
- hasCourse: this.searchForm.hasCourse || null,
- comeOnPackage: this.searchForm.comeOnPackage,
- carePackage: this.searchForm.carePackage,
- };
- const options = {
- method: "get",
- headers: {
- Authorization: getToken(),
- },
- url,
- params: data,
- responseType: "blob",
- };
- this.$confirm("您确定导出学员列表?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- axios(options).then((res) => {
- let blob = new Blob([res.data], {
- // type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8',
- type: "application/vnd.ms-excel;charset=utf-8",
- // word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
- });
- let objectUrl = URL.createObjectURL(blob);
- let link = document.createElement("a");
- let fname = this.$route.query.name + "学员列表.xls";
- link.href = objectUrl;
- link.setAttribute("download", fname);
- document.body.appendChild(link);
- link.click();
- });
- })
- .catch(() => {});
- },
- search() {
- this.rules.page = 1;
- this.getList();
- },
- onReSet() {
- this.$refs.searchForm.resetFields();
- this.search();
- },
- onCreateQRCode() {
- // 生成报名二维码
- this.qrcodeStatus = true;
- let id = this.$route.query.id;
- if (this.qrcodes) {
- this.qrcodes = false;
- setTimeout(() => {
- this.qrcode = new QRCode("qrcode", {
- width: 200,
- height: 200,
- colorDark: "#000000",
- colorLight: "#ffffff",
- correctLevel: QRCode.CorrectLevel.H,
- });
- this.qrcode.makeCode(
- vaildStudentUrl() + "/#/login?musicGroupId=" + id
- );
- this.codeUrl = vaildStudentUrl() + "/#/login?musicGroupId=" + id;
- }, 500);
- }
- },
- getList() {
- let obj = {
- musicGroupId: this.teamid,
- page: this.rules.page,
- rows: this.rules.limit,
- studentStatus: this.searchForm.studentStatus || null,
- paymentStatus: this.searchForm.isPay || null,
- subjectId: this.searchForm.major || null,
- search: this.searchForm.search || null,
- isActive: this.searchForm.isActive || null,
- classGroupId: this.searchForm.classGroupId || null,
- currentGrade: this.searchForm.currentGrade || null,
- createYear: this.searchForm.createYear || null,
- oweFlag: this.searchForm.oweFlag || null,
- hasCourse: this.searchForm.hasCourse || null,
- comeOnPackage: this.searchForm.comeOnPackage,
- carePackage: this.searchForm.carePackage,
- };
- getTeamStudentList(obj).then((res) => {
- if (res.code == 200) {
- this.tableList = res.data.rows;
- this.rules.total = res.data.total;
- this.getStudentStatus();
- }
- });
- this.getTeamStudent();
- },
- addPay(row) {
- this.createUserPayVisible = true;
- this.createdUserId = row.userId;
- },
- addCycle() {
- this.cycles.push({});
- this.collapse.push(this.collapse.length);
- },
- removeCycle(index) {
- this.cycles[index] = null;
- this.cycles = this.cycles.filter((item) => !!item);
- this.collapse.pop();
- },
- collapseChange(val) {
- this.collapse = val;
- },
- gotoSignin() {
- this.$router.push({
- path: "/business/studentSignin",
- query: {
- id: this.teamid,
- status: this.$route.query.status,
- name: this.$route.query.name,
- rules: this.Frules,
- search: this.Fsearch,
- },
- });
- },
- chioseType() {
- this.$refs["quitForm"].validate((res) => {
- if (res) {
- this.$confirm("确定退团?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- let row = this.activeRow;
- // 发请求 退团
- StudentQuit({
- musicGroupId: this.teamid,
- userId: row.userId,
- reason: this.quitForm.reason,
- isRefundCourseFee: this.quitForm.isRefundCourseFee,
- isRefundInstrumentFee: this.quitForm.isRefundInstrumentFee,
- isRefundTeachingAssistantsFee: this.quitForm
- .isRefundTeachingAssistantsFee,
- }).then((res) => {
- this.quitForm = {
- // 退团信息确认
- isRefundCourseFee: null,
- isRefundInstrumentFee: null,
- isRefundTeachingAssistantsFee: null,
- reason: "",
- };
- if (res.code == 200) {
- this.$message.success("退团成功");
- this.getList();
- this.quitVisible = false;
- }
- });
- })
- .catch(() => {});
- } else {
- }
- });
- // row.typeVisible = false;
- },
- //
- addStudent() {
- // 发请求添加学员
- this.$refs["maskForm"].validate((res) => {
- if (res) {
- // this.maskForm.parentName.timer 少个生日的字段
- // classGroupId: maskForm.signClass
- /** <!-- signClass: '',
- mixClass: '',
- highClass: '',
- snapClass: [], --> */
- let maskForm = this.maskForm;
- // if (
- // !maskForm.signClass &&
- // !maskForm.mixClass &&
- // !maskForm.highClass &&
- // !maskForm.highonline &&
- // !maskForm.muiscnetwork
- // ) {
- // if (
- // !maskForm.snapClass ||
- // !(maskForm.snapClass && maskForm.snapClass.length >= 1)
- // ) {
- // this.$message.error("该学生必须加入一个班级");
- // return;
- // }
- // }
- if (
- maskForm.musicGoodsIdList &&
- (maskForm.musicPrice === "" || maskForm.musicPrice === null)
- ) {
- this.$message.error("请输入乐器金额");
- return;
- }
- if (
- maskForm.instrGoodsIdList &&
- maskForm.instrGoodsIdList.length > 0 &&
- (maskForm.instrPrice === "" || maskForm.instrPrice === null)
- ) {
- this.$message.error("请输入辅件金额");
- return;
- }
- let snapClassIds;
- maskForm.snapClass
- ? (snapClassIds = maskForm.snapClass.join(","))
- : (snapClassIds = null);
- let params = {
- signClassId: maskForm.signClass,
- mixClassId: maskForm.mixClass,
- snapClassIds,
- highClassId: maskForm.highClass,
- courseFee: maskForm.courseFee,
- temporaryCourseFee: maskForm.temporaryCourseFee,
- studentRegistration: {
- name: maskForm.studentName,
- gender: maskForm.sex,
- birthdate: maskForm.timer,
- parentsName: maskForm.parentName,
- parentsPhone: maskForm.phone,
- currentGrade: maskForm.startClass,
- currentGradeNum: maskForm.currentGradeNum,
- currentClass: maskForm.course,
- subjectId: maskForm.sound,
- musicGroupId: this.teamid,
- },
- };
- params.studentPaymentOrderDetails = [];
- if (maskForm.musicGoodsIdList) {
- params.studentPaymentOrderDetails.push({
- goodsIdList: maskForm.musicGoodsIdList,
- kitGroupPurchaseType: maskForm.kitGroupPurchaseType,
- type: "MUSICAL",
- price: maskForm.musicPrice,
- });
- }
- if (maskForm.instrGoodsIdList && maskForm.instrGoodsIdList != "") {
- params.studentPaymentOrderDetails.push({
- goodsIdList: maskForm.instrGoodsIdList.join(","),
- type: "ACCESSORIES",
- price: maskForm.instrPrice,
- });
- }
- addStudent(params).then((res) => {
- if (res.code == 200) {
- this.$message.success("添加学生成功");
- this.getList();
- this.addStudentVisible = false;
- this.createUserPayVisible = true;
- this.createdUserId = res.data;
- }
- this.$refs.maskForm.resetFields();
- });
- }
- });
- },
- onSoundChange(value) {
- // 学员声部切换时
- // this.findSubjectPlan(value)
- this.ACCESSORIESLIST = [];
- this.maskForm.instrGoodsIdList = [];
- this.maskForm.instrPrice = null;
- this.INSTRUMENTLIST = [];
- this.maskForm.musicPrice = null;
- this.maskForm.musicGoodsIdList = null;
- this.getGoodsList(value, "INSTRUMENT"); // 乐器
- this.getGoodsList(value, "ACCESSORIES"); // 辅件
- },
- // 获取购买方式
- findSubjectPlan(subjectId) {
- findSubjectPlan({
- musicGroupId: this.teamid,
- subjectId: subjectId,
- }).then((res) => {
- let result = res.data;
- if (res.code == 200) {
- this.maskForm.musicMode = this.getBranchType(
- result.kitGroupPurchaseType
- );
- }
- });
- },
- getGoodsList(subjectId, type) {
- getGoods({
- subjectId: subjectId,
- type: type,
- }).then((res) => {
- let result = res.data;
- if (res.code == 200) {
- let tempArr = [];
- result.forEach((item) => {
- tempArr.push({
- label: item.name,
- value: item.id,
- marketPrice: item.marketPrice,
- });
- });
- if (type == "ACCESSORIES") {
- this.ACCESSORIESLIST = tempArr;
- }
- if (type == "INSTRUMENT") {
- this.INSTRUMENTLIST = tempArr;
- }
- }
- });
- },
- getBranchType(status) {
- let common = {
- FREE: "免费",
- GROUP: "团购",
- LEASE: "租赁",
- };
- return common[status];
- },
- lookClass(row) {
- this.classMask.studentName = row.realName;
- getStudentClass({
- musicGroupId: this.teamid,
- teacherId: row.userId,
- }).then((res) => {
- if (res.code == 200) {
- this.classLists = res.data;
- this.studentClassVisible = true;
- }
- });
- },
- quieTeamMask(row) {
- this.activeRow = row;
- this.quitVisible = true;
- },
- quieTeam(row) {
- this.$prompt("请输入退团原因", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- inputPattern: /\S/,
- inputErrorMessage: "请输入退团原因",
- })
- .then((val) => {
- // 发请求 退团
- StudentQuit({
- musicGroupId: this.teamid,
- userId: row.userId,
- reason: val.value,
- isRefundCourseFee: false,
- isRefundInstrumentFee: false,
- isRefundTeachingAssistantsFee: false,
- }).then((res) => {
- this.quitForm = {
- // 退团信息确认
- isRefundCourseFee: null,
- isRefundInstrumentFee: null,
- isRefundTeachingAssistantsFee: null,
- reason: "",
- };
- if (res.code == 200) {
- this.$message.success("退团成功");
- this.getList();
- this.quitVisible = false;
- }
- });
- })
- .catch(() => {});
- },
- checkPhone(val) {
- var regu = /^1[3456789]\d{9}$/;
- var re = new RegExp(regu);
- if (re.test(val)) {
- getStudentInfoByPhone({ mobile: this.maskForm.phone }).then((res) => {
- if (res.code == 200) {
- if (res.data) {
- this.maskForm.studentName = res.data.name;
- this.maskForm.sex = res.data.gender;
- this.maskForm.parentName = res.data.parentsName;
- this.maskForm.course = res.data.currentClass;
- this.maskForm.startClass = res.data.currentGrade;
- this.maskForm.currentGradeNum = res.data.currentGradeNum
- ? res.data.currentGradeNum + ""
- : null;
- this.maskForm.phone = val;
- this.maskForm.timer = res.data.birthdate;
- }
- }
- });
- }
- },
- lockStudent(row) {
- this.$confirm("是否锁定/解锁学生缴费周期?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- let musicGroupId = this.teamid;
- let studentId = row.userId;
- let isLock;
- row.isLock == 0 ? (isLock = 1) : (isLock = 0);
- StudentFeeIsLock({ musicGroupId, studentId, isLock }).then((res) => {
- if (res.code == 200) {
- this.$message.success("修改成功");
- this.getList();
- }
- });
- })
- .catch(() => {});
- },
- resetPay(row) {
- this.activeRow = row;
- this.payVisible = true;
- this.payForm.studentName = row.realName;
- this.payForm.payMoney = row.courseFee;
- this.payForm.payMonth = row.paymentPeriodList.split(",");
- if (this.payForm.payMonth[0] == "") {
- this.payForm.payMonth = [];
- }
- },
- submitPay() {
- let studentId = this.activeRow.userId;
- let musicGroupId = this.teamid;
- let month = this.payForm.payMonth.join(",") || null;
- let amount = this.payForm.payMoney;
- let obj = {
- studentId,
- musicGroupId,
- month,
- amount,
- };
- updateStudentFee(obj).then((res) => {
- if (res.code == 200) {
- this.$message.success("修改成功");
- this.payVisible = false;
- this.getList();
- }
- });
- },
- closePayVisible() {
- this.$refs["payForm"].resetFields();
- this.payVisible = false;
- },
- addVisit(row) {
- console.log(row);
- this.detail = row;
- // this.visitForm.studentName = row.realName;
- // this.visitForm.musicGroupId = this.teamid;
- // this.visitForm.studentId = row.userId;
- this.visitVisiable = true;
- },
- handleChange(val) {
- this.visitForm.type = val[0];
- this.visitForm.purpose = val[1];
- },
- submitAddVisit() {
- console.log(this.$refs.visitForm);
- this.$refs.visitForm.validate((res) => {
- if (res) {
- addVisit(cleanDeep(this.visitForm)).then((res) => {
- if (res.code === 200) {
- this.$message.success("新增成功");
- this.visitVisiable = false;
- }
- });
- }
- });
- },
- beginDate() {
- let self = this;
- return {
- firstDayOfWeek: 1,
- disabledDate(time) {
- return time.getTime() >= new Date().getTime(); //开始时间不选时,结束时间最大值小于等于当天
- },
- };
- },
- createStudentFrom() {
- this.addStudentVisible = true;
- },
- // 报名缴费功能
- onGoHome() {
- if (this.paymentNum <= 0) {
- this.$message.error("当前缴费人数为0,无法开团");
- return;
- }
- this.$confirm(`是否确认开团?`, "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- musicGroupFound({
- musicGroupId: this.$route.query.id,
- }).then((res) => {
- if (res.code == 200) {
- // let query = this.$route.query;
- // this.$message.success("开启成功");
- // this.$router.push({
- // path: "/teamList",
- // query: {
- // ...query,
- // },
- // });
- this.$store.dispatch("delVisitedViews", this.$route);
- this.$router.push({ path: "/teamList" });
- }
- });
- })
- .catch(() => {});
- },
- payStart() {
- this.paymentStatus = true;
- },
- getStudentStatus() {
- let obj = {
- musicGroupId: this.teamid,
- page: 1,
- rows: 9999,
- };
- getStudentList(obj).then((res) => {
- if (res.code == 200) {
- res.data.rows.forEach((item) => {
- // '未开启缴费', '开启缴费', '已缴费'
- if (item.paymentStatus == 2) {
- this.paymentNum += 1;
- }
- });
- // this.rightList = res.data.rows;
- // this.rules.total = res.data.total;
- // return res;
- }
- });
- },
- payDate() {
- let self = this;
- return {
- firstDayOfWeek: 1,
- disabledDate(time) {
- if (self.applyExpireDate) {
- return (
- time.getTime() <=
- new Date(self.applyExpireDate.replace(/-/g, "/")).getTime()
- );
- } else {
- return false;
- }
- },
- };
- },
- onStartPayment(formName) {
- // 开启缴费
- this.$refs[formName].validate((valid) => {
- if (valid) {
- musicGroupOpenPay({
- musicGroupId: this.teamid,
- expireDate: this.paymentForm.paymentExpireDate,
- // feeType: this.paymentForm.feeType
- }).then((res) => {
- if (res.code == 200) {
- this.$message.success("开启成功");
- this.paymentStatus = false;
- this.$store.dispatch("delVisitedViews", this.$route);
- this.$router.push({ path: "/teamList" });
- // this.$router.push({
- // path: "/business/resetTeaming",
- // query: {
- // status: "PAY",
- // id: this.$route.query.id,
- // name: this.$route.query.name,
- // },
- // });
- // this.team_status = "PAY";
- // this.paymentExpireDate = this.paymentForm.paymentExpireDate;
- // this.getList();
- }
- });
- } else {
- return false;
- }
- });
- },
- applyDate() {
- let self = this;
- return {
- firstDayOfWeek: 1,
- disabledDate(time) {
- if (self.paymentExpireDate) {
- return (
- time.getTime() >
- new Date(self.paymentExpireDate.replace(/-/g, "/")).getTime()
- );
- } else {
- return false;
- }
- },
- };
- },
- extendTime(isPay) {
- this.isPay = isPay;
- if (isPay) {
- // 点击的延长缴费
- this.extendForm.expireDate = this.paymentExpireDate;
- } else {
- // 点击的延长报名
- this.extendForm.expireDate = this.applyExpireDate;
- }
- this.extendPaymentStatus = true;
- },
- onExtendPayment(formName, isPay) {
- this.$refs[formName].validate((valid) => {
- if (valid) {
- if (!isPay) {
- extensionApplyExpire({
- musicGroupId: this.teamid,
- expireDate: this.extendForm.expireDate,
- }).then((res) => {
- if (res.code == 200) {
- this.$message.success("延长报名成功");
- this.extendPaymentStatus = false;
- getTeamBaseInfo({ musicGroupId: this.teamid }).then((res) => {
- if (res.code == 200) {
- this.applyExpireDate = res.data.musicGroup.applyExpireDate;
- this.setBase(res);
- }
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- } else {
- extensionPayment({
- musicGroupId: this.teamid,
- expireDate: this.extendForm.expireDate,
- }).then((res) => {
- if (res.code == 200) {
- this.$message.success("延长缴费成功");
- this.extendPaymentStatus = false;
- getTeamBaseInfo({ musicGroupId: this.teamid }).then((res) => {
- if (res.code == 200) {
- this.paymentExpireDate =
- res.data.musicGroup.paymentExpireDate;
- }
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- }
- }
- });
- },
- onCreateQRCode(type) {
- // 生成报名二维码
- let id = this.teamid;
- this.codeStatus = true;
- if (type == "payment") {
- this.codeTitle = "学员报名连接";
- this.qrCodeUrl = vaildStudentUrl() + "/#/login?musicGroupId=" + id;
- } else if (type == "detail") {
- let teamName = this.$route.query.name;
- this.codeTitle = "报名缴费详情";
- this.qrCodeUrl =
- vaildTeacherUrl() +
- "/#/order?musicGroupId=" +
- id +
- "&musicGroupName=" +
- teamName;
- } else if (type == "rePayment") {
- this.codeTitle = "学生报名链接(无乐器)";
- this.qrCodeUrl =
- vaildStudentUrl() + "/#/login?musicGroupId=" + id + "&instrument=1";
- }
- },
- saveIsEdit() {
- // 提交数据
- this.isEdit = false;
- resetPlanNum(this.leftList).then((res) => {});
- },
- openChangeVoice(row) {
- console.log(row);
- // this.getList().then((res) => {
- // for (const item of res.data.rows) {
- // if (item.id === row.id) {
- // this.rowDetail = { ...item, studentId: row.userId };
- // this.changeVoiceVisible = true;
- // console.log( this.rowDetail)
- // }
- // }
- // });
- this.rowDetail = { ...row, studentId: row.userId };
- this.changeVoiceVisible = true;
- },
- closeChangeVoice() {
- this.changeVoiceVisible = false;
- // this.rowDetail = null
- },
- lookdetail(row) {
- this.orderVisible = true;
- this.activeId = row.userId;
- this.orderForm.name = row.realName;
- this.orderForm.subject = row.subjectName;
- getStudentFeeDetail({
- musicGroupId: this.teamid,
- studentId: row.userId,
- }).then((res) => {
- if (res.code == 200) {
- if (res.data) {
- this.orderForm.totalAmount = res.data.totalAmount;
- // this.orderForm.subjectFee = res.data.courseFee;
- let goodStr = "";
- let goodPrice = 0;
- let otherStr = "";
- let othersPrice = 0;
- for (let i in res.data.goods) {
- if (res.data.goods[i].goodsType == "INSTRUMENT") {
- goodStr += res.data.goods[i].goodsName + ",";
- goodPrice += parseFloat(res.data.goods[i].musicalFee);
- // this.orderForm.axe = res.data.goods[i].goodsName;
- // this.orderForm.axePrice = res.data.goods[i].musicalFee;
- } else if (res.data.goods[i].goodsType == "ACCESSORIES") {
- otherStr += res.data.goods[i].goodsName + ",";
- othersPrice += parseFloat(res.data.goods[i].musicalFee);
- // this.orderForm.others = res.data.goods[i].goodsName;
- // this.orderForm.othersPrice = res.data.goods[i].musicalFee;
- } else if (res.data.goods[i].goodsType == "COURSE") {
- this.orderForm.subjectFee = res.data.goods[i].musicalFee;
- }
- }
- this.orderForm.others = otherStr.substring(0, otherStr.length - 1);
- this.orderForm.othersPrice = othersPrice;
- this.orderForm.axe = goodStr.substring(0, goodStr.length - 1);
- this.orderForm.axePrice = goodPrice;
- }
- }
- });
- },
- // 修改专业
- resetSubject(row) {
- this.activeId = row.userId;
- this.subjectVisible = true;
- // resetStudentSubject().then(res=>{]})
- },
- okReset() {
- if (!this.maskSoundForm.subject) {
- this.$message.error("请选择调剂专业");
- return;
- }
- resetStudentSubject({
- musicGroupId: this.teamid,
- userId: this.activeId,
- subId: this.maskSoundForm.subject,
- }).then((res) => {
- if (res.code == 200) {
- this.$message.success("修改成功");
- this.subjectVisible = false;
- this.maskForm.subject = "";
- getintoClass({ musicGroupId: this.id }).then((res) => {
- if (res.code == 200) {
- this.leftList = res.data;
- }
- });
- this.getList();
- }
- });
- },
- onPartPayment() {
- // 部分缴费
- let selection = this.multipleSelection;
- if (selection.length <= 0) {
- this.$message.error("您还没有选择学生");
- return false;
- }
- let ids = [];
- selection.forEach((item) => {
- ids.push(item.studentRegistrationId);
- });
- this.$confirm(`是否确认开启缴费?`, "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- openPayment({
- ids: ids.join(","),
- }).then((res) => {
- if (res.code == 200) {
- this.$message.success("开启成功");
- this.getList();
- } else {
- this.$message.error(res.msg);
- }
- });
- })
- .catch(() => {});
- },
- handleSelectionChange(val) {
- this.multipleSelection = val;
- },
- checkboxSelect(row) {
- return row.paymentStatus == 0;
- },
- isShowResSound() {
- /**
- * team_status == 'PAY' ||
- team_status == 'APPLY' ||
- team_status == 'PROGRESS'&&isCanReg ||
- team_status == 'PREPARE')
- */
- if (this.team_status == "PAY" || this.team_status == "APPLY") {
- return true;
- } else if (
- this.team_status == "PROGRESS" ||
- this.team_status == "PREPARE"
- ) {
- return this.isCanReg;
- } else {
- return false;
- }
- },
- },
- watch: {
- quitVisible(val) {
- if (!val) {
- this.quitForm = {
- // 退团信息确认
- isRefundCourseFee: null,
- isRefundInstrumentFee: null,
- isRefundTeachingAssistantsFee: null,
- reason: "",
- };
- this.$refs["quitForm"].resetFields();
- }
- },
- // visitVisiable(val) {
- // if (!val) {
- // this.$refs["visitForm"].resetFields();
- // }
- // },
- },
- computed: {
- saveKey() {
- // return 'teamDetails-'+this.$route.query.id
- return "teamDetails-studentList|id|" + this.$route.query.id;
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- .dialog-footer.question {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- }
- // .moreInput {
- // width: 100%;
- // display: flex;
- // /deep/.el-form-item__content {
- // display: flex;
- // flex-direction: row;
- // }
- // }
- .error {
- color: red;
- }
- .el-select {
- width: 180px !important;
- }
- .headWrap {
- padding: 20px 0;
- }
- /deep/.el-date-editor.el-input {
- width: auto;
- .el-input__inner {
- padding-right: 0;
- }
- }
- .studentInfo {
- /deep/.el-dialog__body {
- // padding-top: 0;
- // padding-bottom: 0;
- }
- }
- // .instrList {
- // display: flex;
- // /deep/.el-form-item__content {
- // width: 80%;
- // }
- // .el-col {
- // /deep/.el-form-item__content {
- // width: 100%;
- // }
- // }
- // }
- .stu-container {
- .topFrom {
- margin: 20px 30px 0;
- width: 1000px;
- }
- .newStudent {
- width: 121px;
- height: 40px;
- background: rgba(20, 146, 138, 1);
- border-radius: 4px;
- color: #fff;
- text-align: center;
- line-height: 40px;
- font-size: 14px;
- cursor: pointer;
- }
- }
- .left-code,
- .right-code {
- // width: 50%;
- // float: left;
- h2 {
- display: block;
- font-size: 18px;
- text-align: center;
- padding-bottom: 8px;
- line-height: 1;
- height: 30px;
- margin-bottom: 0;
- }
- .qrcode {
- display: flex;
- justify-content: center;
- img {
- width: 200px;
- height: 200px;
- // margin: 0 auto;
- }
- }
- .code-url {
- font-size: 18px;
- text-align: center;
- padding: 15px 15px 0 15px;
- }
- }
- .export {
- background: #14928a;
- }
- .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;
- }
- .cycleForm {
- /deep/ .el-form-item {
- display: flex;
- width: 100%;
- /deep/ .el-form-item__content {
- margin-left: 0 !important;
- flex: 1;
- }
- }
- }
- .statistic {
- padding: 20px 0;
- text-align: center;
- width: 100%;
- margin: auto !important;
- }
- .popoverWrap {
- p {
- line-height: 25px;
- }
- }
- .studentListWrap {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: center;
- div {
- margin-right: 15px;
- }
- }
- .btnList {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: center;
- flex-wrap: wrap;
- & > div {
- margin-right: 15px;
- margin-bottom: 10px;
- }
- }
- </style>
|