123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025 |
- <template>
- <div class="sigup-container">
- <div class="topWrap">
- <div>
- <div style="display: flex; justify-content: space-between">
- <div
- style="
- display: flex;
- margin-bottom: 15px;
- font-size: 18px;
- font-weight: 400;
- "
- >
- <p style="margin-right: 10px" v-if="applyExpireDate">
- 报名截止时间:{{ applyExpireDate | formatTimer }}
- </p>
- <p v-if="paymentExpireDate">
- 缴费截止时间:{{ paymentExpireDate | formatTimer }}
- </p>
- </div>
- </div>
- <div class="btnList">
- <!-- <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="status == 'APPLY'"
- >
- 开始缴费
- </div>
- <!-- v-show="status=='PAY'" -->
- <div
- class="newBand"
- v-permission="'musicGroup/found'"
- @click="onGoHome"
- v-if="status == 'APPLY' || status == 'PAY'"
- >
- 确认开团
- </div>
- <div
- class="newBand"
- v-permission="'musicGroup/extensionPayment'"
- @click="extendTime(true)"
- v-show="
- status == 'PAY' || status == 'PROGRESS' || status == 'PREPARE'
- "
- >
- 延长缴费
- </div>
- <div
- class="newBand"
- v-permission="'musicGroup/extensionApplyExpireDate'"
- @click="extendTime(false)"
- v-show="
- status == 'PAY' ||
- status == 'APPLY' ||
- status == 'PROGRESS' ||
- status == 'PREPARE'
- "
- >
- 延长报名
- </div>
- <div
- class="newBand"
- @click="onCreateQRCode('payment')"
- v-show="
- (status == 'PAY' ||
- status == 'APPLY' ||
- status == 'PROGRESS' ||
- status == 'PREPARE') &&
- ischeckCanReg
- "
- >
- 报名链接
- </div>
- <div class="newBand" @click="onCreateQRCode('detail')">缴费详情</div>
- <auth :auths="'studentRegistration/queryPreApplyList/4263'">
- <div
- class="newBand"
- style="margin-right: 0"
- @click="forecastVisible = true"
- >
- 预报名名单
- </div>
- </auth>
- <!-- v-permission="getFullPermission('musicGroup/addMusicGroupRegs')" -->
- <div
- class="newBand"
- v-permission="'musicGroup/addMusicGroupRegs'"
- @click="mergeVisible = true"
- v-show="
- (status == 'PAY' ||
- status == 'APPLY' ||
- status == 'PROGRESS' ||
- status == 'PREPARE') &&
- ischeckCanReg
- "
- >
- 合并学员
- </div>
- <div
- class="newBand"
- style="background-color: #f97215; border: 1px solid #f97215"
- @click="onCreateQRCode('rePayment')"
- v-show="
- (status == 'PAY' ||
- status == 'APPLY' ||
- status == 'PROGRESS' ||
- status == 'PREPARE') &&
- ischeckCanReg
- "
- >
- 报名链接(无乐器)
- </div>
- <div
- class="newBand"
- v-permission="'studentRegistration/queryStudentApplyDetailExport'"
- @click="onDownLoadExecl"
- >
- 名单导出
- </div>
- <auth :auths="'studentRegistration/getRegisterOrPreList'">
- <div
- class="newBand"
- style="margin-right: 0"
- @click="newForecastVisible = true"
- >
- 时间数据统计
- </div>
- </auth>
- <auth :auths="'subject/findSubApplyDetail'">
- <el-popover placement="bottom" width="1000" trigger="hover">
- <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">
- <template slot-scope="scope">
- <div>
- <el-button type="text" @click="getpayNum(scope.row)">{{
- scope.row.payNum
- }}</el-button>
- </div>
- </template>
- </el-table-column>
- <el-table-column label="缴费中" prop="payingNum" align="center">
- <template slot="header">
- <p>
- 缴费中
- <el-tooltip placement="top" popper-class="mTooltip">
- <div slot="content">提交订单尚未支付成功学员</div>
- <i
- class="el-icon-question"
- style="font-size: 18px; color: #f56c6c"
- ></i>
- </el-tooltip>
- </p>
- </template>
- <template slot-scope="scope">
- <div>
- <el-button type="text" @click="getpayingNum(scope.row)">{{
- scope.row.payingNum
- }}</el-button>
- </div>
- </template>
- </el-table-column>
- <el-table-column label="审核中" prop="checkNum" align="center">
- <template slot="header">
- <p>
- 审核中
- <el-tooltip placement="top" popper-class="mTooltip">
- <div slot="content">
- 不购买云教练系统学员数量,不包含已缴费学员
- </div>
- <i
- class="el-icon-question"
- style="font-size: 18px; color: #f56c6c"
- ></i>
- </el-tooltip>
- </p>
- </template>
- <template slot-scope="scope">
- <div>
- <el-button type="text" @click="getCheckNum(scope.row)">{{
- scope.row.checkNum
- }}</el-button>
- </div>
- </template>
- </el-table-column>
- </el-table>
- <div
- class="btnWrap"
- v-permission="'musicGroup/updateExpectedStudentNum'"
- style="margin-right: 20px; margin-top: 20px"
- >
- <el-button
- v-show="
- !isEdit &&
- (status == 'PAY' ||
- status == 'APPLY' ||
- status == 'PROGRESS' ||
- status == 'PREPARE')
- "
- @click="isEdit = true"
- >编辑</el-button
- >
- <el-button v-show="isEdit" @click="saveIsEdit">保存</el-button>
- </div>
- <div class="newBand" slot="reference">人数统计</div>
- </el-popover>
- </auth>
- </div>
- </div>
- <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="newForecastVisible"
- width="1100px"
- >
- <newForecastList
- v-if="newForecastVisible"
- @close="newForecastVisible = false"
- />
- </el-dialog>
- <el-dialog
- title="预报名名单"
- :visible.sync="forecastVisible"
- width="1100px"
- >
- <forecastList v-if="forecastVisible" @close="forecastVisible = false" />
- </el-dialog>
- <!-- stepImgs: {
- APPLY: require('@/assets/images/base/clock.png'),
- PAY: require('@/assets/images/base/pay.png')
- }, -->
- </div>
- <div class="searchList">
- <save-form
- :inline="true"
- :model="searchFrom"
- @submit="search"
- @reset="onReset"
- >
- <el-form-item>
- <el-select
- v-model.trim="searchFrom.subject"
- filterable
- clearable
- placeholder="请选择专业"
- >
- <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-item>
- <el-select
- v-model.trim="searchFrom.isAllowAdjust"
- filterable
- placeholder="请选择是否允许调剂"
- clearable
- >
- <el-option label="是" value="1"></el-option>
- <el-option label="否" value="0"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item>
- <el-input
- v-model.trim="searchFrom.name"
- placeholder="请输入用户名或手机号"
- clearable
- ></el-input>
- </el-form-item>
- <el-form-item>
- <!-- <el-input v-model.trim="searchFrom.currentGrade" placeholder="请输入年级" clearable></el-input> -->
- <el-select
- v-model.trim="searchFrom.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>
- <el-select
- v-model.trim="searchFrom.paymentStatus"
- 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>
- <el-select
- v-model.trim="searchFrom.visited"
- clearable
- filterable
- placeholder="是否回访"
- >
- <el-option label="否" value="false"></el-option>
- <el-option label="是" value="true"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item>
- <el-select
- v-model.trim="searchFrom.hasCloudTeacher"
- 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>
- <el-select
- v-model.trim="searchFrom.noneNeedCloudTeacher"
- 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>
- <el-select
- v-model.trim="searchFrom.payingStatus"
- clearable
- filterable
- placeholder="订单状态"
- >
- <el-option label="缴费中" :value="1"></el-option>
- <el-option label="审核中" :value="2"></el-option>
- </el-select>
- </el-form-item>
- <!-- 专业actualSubjectId 调剂isAllowAdjust 手机号name -->
- <el-form-item>
- <el-button type="danger" native-type="search">搜索</el-button>
- <el-button type="primary" native-type="reset">重置</el-button>
- </el-form-item>
- </save-form>
- </div>
- <div>
- <el-table
- :data="rightList"
- ref="multipleTable"
- :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="学员姓名" prop="studentName" align="center">
- <template slot-scope="scope">
- <div>{{ scope.row.studentName }}({{ scope.row.gender | sex }})</div>
- </template>
- </el-table-column>
- <el-table-column label="家长姓名" prop="parentsName" align="center">
- </el-table-column>
- <el-table-column align="center" label="入团年份">
- <template slot-scope="scope">
- <div>
- {{ scope.row.createTime | dayjsFormat("YYYY年") }}
- </div>
- </template>
- </el-table-column>
- <el-table-column label="联系电话" prop="parentsPhone" align="center">
- </el-table-column>
- <el-table-column label="年级班级" align="center">
- <template slot-scope="scope">
- <div>
- {{ scope.row.currentGrade + scope.row.currentClass }}
- </div>
- </template>
- </el-table-column>
- <!-- <el-table-column label="性别" prop="gender" align="center">
- <template slot-scope="scope">
- <div>
- {{ scope.row.gender | sex }}
- </div>
- </template>
- </el-table-column> -->
- <el-table-column label="服从调剂" prop="isAllowAdjust" align="center">
- <template slot-scope="scope">
- <div>
- {{ scope.row.isAllowAdjust | isAllowAdjust }}
- </div>
- </template>
- </el-table-column>
- <!-- <el-table-column label="报名专业" prop="subjectName" align="center">
- </el-table-column> -->
- <el-table-column
- label="报名/调剂专业"
- prop="actualSubjectName"
- align="center"
- >
- <template slot-scope="scope">
- <div>
- {{ scope.row.subjectName }} / {{ scope.row.actualSubjectName }}
- </div>
- </template>
- </el-table-column>
- <el-table-column label="是否回访" prop="paymentStatus" align="center">
- <template slot-scope="scope">
- <div>
- {{ scope.row.visitNum ? "是" : "否" }}
- </div>
- </template>
- </el-table-column>
- <!-- visited -->
- <!-- v-show='status == "PAY"' -->
- <el-table-column
- label="报名缴费状态"
- prop="paymentStatus"
- align="center"
- >
- <template slot-scope="scope">
- <div>
- {{ scope.row.paymentStatus | paymentStatus }}
- </div>
- </template>
- </el-table-column>
- <el-table-column label="订单状态" prop="payingStatus" align="center">
- <template slot-scope="scope">
- <div>
- {{ scope.row.payingStatus | filtersPayingStatus }}
- </div>
- </template>
- </el-table-column>
- <el-table-column
- label="是否购买云教练"
- fixed="right"
- prop="hasCloudTeacher"
- align="center"
- >
- <template slot-scope="scope">
- <div>
- {{ scope.row.hasCloudTeacher == 1 ? "是" : "否" }}
- </div>
- </template>
- </el-table-column>
- <el-table-column
- label="解除限制"
- fixed="right"
- prop="noneNeedCloudTeacher"
- align="center"
- >
- <template slot="header">
- <p style="position: relative; display: flex">
- 解除限制
- <el-tooltip placement="top" popper-class="mTooltip">
- <div slot="content">学员是否受到不购买云教练的缴费限制</div>
- <i
- class="el-icon-question"
- style="font-size: 18px; color: #f56c6c"
- ></i>
- </el-tooltip>
- </p>
- </template>
- <template slot-scope="scope">
- <div>
- {{ scope.row.noneNeedCloudTeacher == 1 ? "是" : "否" }}
- </div>
- </template>
- </el-table-column>
- <el-table-column
- label="操作"
- fixed="right"
- width="240"
- align="center"
- v-if="
- status == 'PAY' ||
- status == 'APPLY' ||
- status == 'PROGRESS' ||
- status == 'PREPARE'
- "
- >
- <!-- v-show="
- status == 'PAY' || status == 'PROGRESS' || status == 'PREPARE' || status=='APPLY'
- " -->
- <template slot-scope="scope">
- <div>
- <auth :auths="'studentRegistration/batchUpdateSubject'">
- <el-button
- type="text"
- v-show="scope.row.paymentStatus != 2"
- @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="'musicGroupQuit/directQuitMusicGroup2'"
- v-show="scope.row.paymentStatus == 2"
- >
- <el-button type="text" @click="quitTeam(scope.row)"
- >退团退费</el-button
- >
- </auth>
- <auth
- :auths="'musicGroupQuit/directQuitMusicGroup3'"
- v-show="scope.row.paymentStatus == 2"
- >
- <el-button type="text" @click="quieTeams(scope.row)"
- >退团</el-button
- >
- </auth>
- <auth
- :auths="'visit/add/teamSignupList'"
- v-if="scope.row.visitNum <= 0"
- >
- <el-button type="text" @click="addVisit(scope.row)"
- >新增回访</el-button
- >
- </auth>
- <auth
- :auths="'subjectChange/getStudentOriginal'"
- v-show="scope.row.paymentStatus == 2"
- >
- <el-button type="text" @click="openChangeVoice(scope.row)"
- >更改声部</el-button
- >
- </auth>
- <!-- -->
- <auth
- v-show="scope.row.payingStatus == 2 && scope.row.noneNeedCloudTeacher == 0"
- :auths="'studentRegistration/setNoneCloudTeacher'"
- >
- <el-button type="text" @click="relieve(scope.row)"
- >解除预约限制</el-button
- >
- </auth>
- </div>
- </template>
- </el-table-column>
- </el-table>
- <div
- style="margin-top: 10px; margin-bottom: 10px"
- v-show="
- status == 'APPLY' || status == 'PROGRESS' || status == 'PREPARE'
- "
- >
- <el-button @click="onSelectAll">全选/取消</el-button>
- <auth :auths="'studentRegistration/openPayment'">
- <el-button
- style="background-color: #14928a; border: 1px solid #14928a"
- @click="onPartPayment"
- type="primary"
- >开启缴费</el-button
- >
- </auth>
- <!-- <div class='newBand' v-show="status=='APPLY'">允许缴费</div> -->
- </div>
- <pagination
- sync
- :total.sync="rules.total"
- :page.sync="rules.page"
- :limit.sync="rules.limit"
- :page-sizes="rules.page_size"
- @pagination="getList"
- />
- </div>
- <el-dialog title="修改专业" :visible.sync="subjectVisible" width="400px">
- <el-form :model="maskForm">
- <el-form-item label="选择专业">
- <el-select v-model.trim="maskForm.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>
- <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="payDate()"
- 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="applyDates"
- 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>
- <el-dialog title="订单详情" :visible.sync="orderVisible" width="600px">
- <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="paymentStatus"
- width="400px"
- destroy-on-close
- >
- <el-form
- ref="paymentForm"
- class="paymentForm"
- :model="paymentForm"
- label-position="top"
- :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>
- <!-- 预报名链接 -->
- <qr-code v-model="codeStatus" :title="codeTitle" :codeUrl="qrCodeUrl" />
- <!-- 退团弹窗 -->
- <el-dialog
- title="退团信息确认"
- :destroy-on-close="true"
- width="640px"
- :visible.sync="quitVisible"
- >
- <quiteTeam :quitForm="quitForm" :activeRow="activeRow" ref="quitForm"/>
- <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>
- <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="新增回访"
- 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="更改声部"
- :visible.sync="changeVoiceVisible"
- v-if="changeVoiceVisible"
- width="600px"
- >
- <changeVoice
- @close="closeChangeVoice"
- @submited="getList"
- :detail.sync="rowDetail"
- :musicGroupId="id"
- :voiceList="leftList"
- />
- </el-dialog>
- </div>
- </template>
- <script>
- import pagination from "@/components/Pagination/index";
- import qrCode from "@/components/QrCode/index";
- import {
- getintoClass,
- getStudentList,
- findSound,
- musicGroupOpenPay,
- openPayment,
- musicGroupFound,
- extensionPayment,
- extensionApplyExpire,
- resetPlanNum,
- cancelMusicGroup,
- getTeamBaseInfo,
- studentApplyDetailExport,
- StudentQuit,
- getMusicGroupGradeList,
- checkCanReg,
- } from "@/api/buildTeam";
- import { setNoneCloudTeacher } from "./api";
- import mergeMusic from "./components/merge-music";
- import forecastList from "./components/forecast-list";
- import newForecastList from "./components/newForecast-list";
- import { resetStudentSubject, getStudentFeeDetail } from "@/api/studentManager";
- import { vaildStudentUrl, vaildTeacherUrl } from "@/utils/validate";
- import { addVisit } from "@/views/returnVisitManager/api.js";
- import QRCode from "qrcodejs2";
- import { visitChiose } from "@/utils/searchArray";
- import axios from "axios";
- import { getToken } from "@/utils/auth";
- import load from "@/utils/loading";
- import qs from "qs";
- import { permission } from "@/utils/directivePage";
- import cleanDeep from "clean-deep";
- import changeVoice from "./modals/change-voice";
- import visit from "@/views/withdrawal-application/modals/visit";
- import quiteTeam from "@/views/teamDetail/components/modals/quite-team"
- export default {
- name: "signupList",
- components: {
- pagination,
- qrCode,
- changeVoice,
- mergeMusic,
- forecastList,
- visit,
- newForecastList,
- quiteTeam
- },
- data() {
- return {
- multipleSelection: [], //
- forecastVisible: false, // 预报名状态
- newForecastVisible: false,
- isEdit: false,
- rowDetail: null,
- mergeVisible: false,
- changeVoiceVisible: false,
- subjectVisible: false,
- orderVisible: false,
- quitVisible: false,
- leftList: [],
- rightList: [],
- searchFrom: {
- name: "",
- subject: "", // 专业
- isAllowAdjust: "", // 是否允许调剂
- currentGrade: null, // 入学年级
- paymentStatus: "",
- visited: "",
- hasCloudTeacher: null, // 是否购买云教练
- payingStatus: null,
- noneNeedCloudTeacher: null,
- },
- quitForm: {
- // 退团信息确认
- isRefundCourseFee: null,
- isRefundInstrumentFee: null,
- isRefundTeachingAssistantsFee: null,
- isMaintenanceFee: null,
- cloudTeacherAmount: null,
- isCloudTeacherAmount: null,
- maintenanceFee: 0,
- reason: "",
- },
- stepImgs: {
- APPLY: require("@/assets/images/base/clock.png"),
- PAY: require("@/assets/images/base/pay.png"),
- },
- status: "",
- id: "",
- rules: {
- // 分页规则
- limit: 10, // 限制显示条数
- page: 1, // 当前页
- total: 0, // 总条数
- page_size: [10, 20, 30, 40], // 选择限制显示条数
- },
- teamName: "",
- maskForm: {
- subject: "",
- },
- activeId: "",
- soundList: [],
- orderForm: {
- name: "",
- totalAmount: "",
- subject: "",
- subjectFee: "",
- axe: "",
- axePrice: "",
- others: "",
- othersPrice: "",
- },
- paymentStatus: false,
- paymentForm: {
- paymentExpireDate: null,
- // feeType: null
- },
- paymentRules: {
- paymentExpireDate: [
- { required: true, message: "请设置缴费截止日期", trigger: "blur" },
- ],
- },
- paymentNum: 0, // 缴费了多少人
- qrcodeStatus: false, // 生成二维码
- qrcodes: true,
- qrcode: null,
- codeUrl: null,
- qrcodeStatus2: false, // 生成二维码
- qrcodes2: true,
- qrcode2: null,
- codeUrl2: null,
- codeStatus: false,
- codeTitle: null,
- qrCodeUrl: null,
- organId: "",
- extendPaymentStatus: false,
- extendForm: {
- expireDate: null,
- },
- extendRule: {
- expireDate: [
- { required: true, message: "请选择延长时间", trigger: "change" },
- ],
- },
- quitRules: {
- isCloudTeacherAmount: [{ required: true, message: "请输入云教练费用" }],
- cloudTeacherAmount: [
- { required: true, message: "请输入云教练金额", trigger: "blur" },
- ],
- isRefundCourseFee: [
- { required: true, message: "请选择是否退还课程费用" },
- ],
- isRefundInstrumentFee: [
- { required: true, message: "选择是否退还乐器费用" },
- ],
- isRefundTeachingAssistantsFee: [
- { required: true, message: "选择是否退还教辅费用" },
- ],
- isMaintenanceFee: [{ required: true, message: "选择是否退还乐保费用" }],
- maintenanceFee: [{ required: true, message: "请输入退还乐保金额" }],
- reason: [{ required: true, message: "请填写退团退费原因" }],
- },
- applyExpireDate: "",
- paymentExpireDate: "",
- activeRow: { hasMaintenance: false },
- visitVisiable: false,
- visitForm: {
- musicGroupId: "",
- overview: "",
- purpose: "",
- studentId: "",
- type: "",
- visitTime: "",
- visitType: "",
- feedback: "",
- studentName: "",
- },
- visitChiose,
- visitRules: {
- overview: [{ required: true, message: "请输入学生近况" }],
- feedback: [{ required: true, message: "请输入家长反馈" }],
- visitTime: [{ required: true, message: "请输入回访时间" }],
- visitType: [{ required: true, message: "请选择回访类型" }],
- },
- isPay: false,
- applyDates: this.applyDate(),
- detail: null,
- gradeList: [],
- ischeckCanReg: false,
- };
- },
- created() {},
- mounted() {
- // 通过乐团状态判断显示隐藏的东西
- this.init();
- },
- activated() {
- this.init();
- },
- filters: {
- filtersPayingStatus(val) {
- let obj = {
- 0: "--",
- 1: "缴费中",
- 2: "审核中",
- };
- return obj[val];
- },
- },
- methods: {
- permission(str) {
- return permission(str);
- },
- async init() {
- this.status = this.$route.query.team_status;
- // 通过乐团id 获取乐团招生状态
- this.id = this.$route.query.id;
- this.teamName = this.$route.query.name;
- // 判断是否带缓存参数
- this.pickerOptions = this.beginDate(new Date());
- // checkCanReg
- try {
- this.ischeckCanReg = await (
- await checkCanReg({ musicGroupId: this.id })
- ).data;
- console.log(this.ischeckCanReg);
- } catch (e) {
- console.log(e);
- }
- getMusicGroupGradeList({ musicGroupId: this.id }).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.id }).then((res) => {
- if (res.code == 200) {
- this.organId = res.data.musicGroup.organId;
- this.applyExpireDate = res.data.musicGroup.applyExpireDate;
- this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
- }
- });
- // 根据乐团id获乐团声部
- findSound({ musicGroupId: this.id }).then((res) => {
- if (res.code == 200) {
- this.soundList = res.data;
- }
- });
- // 通过乐团id获取乐团学生列表
- this.getList();
- },
- search() {
- this.rules.page = 1;
- this.getList();
- },
- onReset() {
- this.rules.page = 1;
- this.rules.limit = 10;
- this.searchFrom = {
- name: null,
- subject: null, // 专业
- isAllowAdjust: null, // 是否允许调剂
- currentGrade: null,
- paymentStatus: null,
- visited: null,
- hasCloudTeacher: null,
- payingStatus: null,
- noneNeedCloudTeacher: null,
- };
- this.getList();
- },
- onCancel() {
- this.$store.dispatch("delVisitedViews", this.$route);
- this.$router.push({ path: "/teamList" });
- },
- payStart() {
- this.paymentStatus = true;
- getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
- if (res.code == 200) {
- this.applyExpireDate = res.data.musicGroup.applyExpireDate;
- this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
- }
- });
- },
- getList() {
- let obj = {
- musicGroupId: this.id,
- actualSubjectId: this.searchFrom.subject || null,
- isAllowAdjust: this.searchFrom.isAllowAdjust || null,
- name: this.searchFrom.name || null,
- currentGrade: this.searchFrom.currentGrade || null,
- paymentStatus: this.searchFrom.paymentStatus || null,
- visited: this.searchFrom.visited || null,
- hasCloudTeacher: this.searchFrom.hasCloudTeacher,
- payingStatus: this.searchFrom.payingStatus,
- noneNeedCloudTeacher: this.searchFrom.noneNeedCloudTeacher,
- page: this.rules.page,
- rows: this.rules.limit,
- };
- // 根据乐团id获取学团情况
- getintoClass({ musicGroupId: this.id }).then((res) => {
- if (res.code == 200) {
- this.leftList = res.data;
- }
- });
- return 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;
- }
- });
- },
- onStartPayment(formName) {
- // 开启缴费
- this.$refs[formName].validate((valid) => {
- if (valid) {
- musicGroupOpenPay({
- musicGroupId: this.id,
- 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.status = "PAY";
- this.paymentExpireDate = this.paymentForm.paymentExpireDate;
- this.getList();
- }
- });
- } else {
- return false;
- }
- });
- },
- onSelectAll() {
- // 选中全部
- this.$refs.multipleTable.toggleAllSelection();
- },
- onPartPayment() {
- // 部分缴费
- let selection = this.multipleSelection;
- if (selection.length <= 0) {
- this.$message.error("您还没有选择学生");
- return false;
- }
- let ids = [];
- selection.forEach((item) => {
- ids.push(item.id);
- });
- 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(() => {});
- },
- onCreateQRCode(type) {
- // 生成报名二维码
- let id = this.id;
- 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";
- }
- },
- onCreateQRCode2() {
- // 生成报名二维码
- this.qrcodeStatus2 = true;
- let id = this.id;
- let teamName = this.$route.query.name;
- setTimeout(() => {
- document.getElementById("qrcode2").innerHTML = "";
- this.qrcode2 = new QRCode("qrcode2", {
- width: 200,
- height: 200,
- colorDark: "#000000",
- colorLight: "#ffffff",
- correctLevel: QRCode.CorrectLevel.H,
- });
- this.qrcode2.makeCode(
- vaildTeacherUrl() +
- "/#/order?musicGroupId=" +
- id +
- "&musicGroupName=" +
- teamName
- );
- this.codeUrl2 =
- vaildTeacherUrl() +
- "/#/order?musicGroupId=" +
- id +
- "&musicGroupName=" +
- teamName;
- }, 500);
- },
- onDownLoadExecl() {
- // 报表导出
- let url = "/api-web/studentRegistration/queryStudentApplyDetailExport";
- let data = {
- musicGroupId: this.$route.query.id,
- page: 1,
- rows: 9999,
- };
- const options = {
- method: "POST",
- headers: {
- Authorization: getToken(),
- },
- data: qs.stringify(data),
- url,
- responseType: "blob",
- };
- this.$confirm("您确定导出吗?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- load.startLoading();
- 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 text = new Response(blob).text();
- text.then((res) => {
- // 判断是否报错
- if (res.indexOf("code") != -1) {
- let json = JSON.parse(res);
- this.$message.error(json.msg);
- } else {
- let objectUrl = URL.createObjectURL(blob);
- let link = document.createElement("a");
- let nowTime = new Date();
- let ymd =
- nowTime.getFullYear() +
- "" +
- (nowTime.getMonth() + 1) +
- "" +
- nowTime.getDate() +
- "" +
- nowTime.getHours() +
- "" +
- nowTime.getMinutes();
- let fname = this.$route.query.id + "-" + ymd + ".xls"; //下载文件的名字
- link.href = objectUrl;
- link.setAttribute("download", fname);
- document.body.appendChild(link);
- link.click();
- }
- });
- load.endLoading();
- })
- .catch((error) => {
- this.$message.error("导出数据失败,请联系管理员");
- load.endLoading();
- });
- })
- .catch(() => {});
- },
- 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.onCancel();
- }
- });
- })
- .catch(() => {});
- },
- onClose() {
- // 停止乐团
- this.$confirm("您确定停止乐团吗?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- cancelMusicGroup({
- musicGroupId: this.$route.query.id,
- }).then((res) => {
- if (res.code == 200) {
- this.$message.success("停止成功");
- this.$store.dispatch("delVisitedViews", this.$route);
- this.$router.push({
- path: "/teamList",
- });
- }
- });
- })
- .catch(() => {});
- },
- handleSelectionChange(val) {
- this.multipleSelection = val;
- },
- // 修改专业
- resetSubject(row) {
- console.log(row);
- this.activeId = row.studentId;
- this.maskForm.subject = row.actualSubjectId;
- this.subjectVisible = true;
- // resetStudentSubject().then(res=>{]})
- },
- // 确认修改
- okReset() {
- if (!this.maskForm.subject) {
- this.$message.error("请选择调剂专业");
- return;
- }
- resetStudentSubject({
- musicGroupId: this.id,
- userId: this.activeId,
- subId: this.maskForm.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();
- }
- });
- },
- onExtendPayment(formName, isPay) {
- this.$refs[formName].validate((valid) => {
- if (valid) {
- if (!isPay) {
- extensionApplyExpire({
- musicGroupId: this.id,
- expireDate: this.extendForm.expireDate,
- }).then((res) => {
- if (res.code == 200) {
- this.$message.success("延长报名成功");
- this.extendPaymentStatus = false;
- getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
- if (res.code == 200) {
- this.applyExpireDate = res.data.musicGroup.applyExpireDate;
- }
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- } else {
- extensionPayment({
- musicGroupId: this.id,
- expireDate: this.extendForm.expireDate,
- }).then((res) => {
- if (res.code == 200) {
- this.$message.success("延长缴费成功");
- this.extendPaymentStatus = false;
- getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
- if (res.code == 200) {
- this.paymentExpireDate =
- res.data.musicGroup.paymentExpireDate;
- }
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- }
- }
- });
- },
- lookdetail(row) {
- this.orderVisible = true;
- this.activeId = row.studentId;
- this.orderForm.name = row.studentName;
- this.orderForm.subject = row.subjectName;
- getStudentFeeDetail({
- musicGroupId: this.id,
- studentId: row.studentId,
- }).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;
- }
- }
- });
- },
- saveIsEdit() {
- // 提交数据
- this.isEdit = false;
- resetPlanNum(this.leftList).then((res) => {});
- },
- quitTeam(row) {
- this.activeRow = row;
- this.quitVisible = true;
- this.quitForm.cloudTeacherAmount = row.cloudTeacherAmount;
- },
- quieTeams(row) {
- this.$prompt("请输入退团原因", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- inputPattern: /\S/,
- inputErrorMessage: "请输入退团原因",
- type: "warning",
- })
- .then((val) => {
- // 发请求 退团
- StudentQuit({
- musicGroupId: this.id,
- userId: row.studentId,
- reason: val.value,
- isRefundCourseFee: false,
- isRefundInstrumentFee: false,
- isRefundTeachingAssistantsFee: false,
- }).then((res) => {
- this.quitForm = {
- // 退团信息确认
- isRefundCourseFee: null,
- isRefundInstrumentFee: null,
- isRefundTeachingAssistantsFee: null,
- isMaintenanceFee: null,
- cloudTeacherAmount: null,
- isCloudTeacherAmount: null,
- maintenanceFee: 0,
- reason: "",
- };
- if (res.code == 200) {
- this.$message.success("退团成功");
- this.getList();
- this.quitVisible = false;
- }
- });
- })
- .catch(() => {});
- },
- chioseType() {
- this.$refs["quitForm"].$refs["quitForm"].validate((res) => {
- if (res) {
- this.$confirm("确定退团?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- let row = this.activeRow;
- let params = {
- musicGroupId: this.id,
- userId: row.studentId,
- reason: this.quitForm.reason,
- isRefundCourseFee: this.quitForm.isRefundCourseFee,
- isRefundInstrumentFee: this.quitForm.isRefundInstrumentFee,
- isRefundTeachingAssistantsFee:
- this.quitForm.isRefundTeachingAssistantsFee,
- maintenanceFee: this.quitForm.maintenanceFee,
- };
- // 退还乐器练习云教练费用
- if (this.quitForm.isCloudTeacherAmount) {
- params.cloudTeacherAmount = this.quitForm.cloudTeacherAmount;
- } else {
- params.cloudTeacherAmount = 0;
- }
- // 发请求 退团
- StudentQuit(params).then((res) => {
- this.quitForm = {
- // 退团信息确认
- isRefundCourseFee: null,
- isRefundInstrumentFee: null,
- isRefundTeachingAssistantsFee: null,
- isMaintenanceFee: null,
- cloudTeacherAmount: null,
- isCloudTeacherAmount: null,
- maintenanceFee: 0,
- reason: "",
- };
- if (res.code == 200) {
- this.$message.success("退团成功");
- this.getList();
- this.quitVisible = false;
- }
- });
- })
- .catch(() => {});
- } else {
- }
- });
- // row.typeVisible = false;
- },
- addVisit(row) {
- // this.visitForm.studentName = row.studentName;
- // this.visitForm.musicGroupId = this.teamid;
- // this.visitForm.studentId = row.studentId;
- row.userId = row.studentId;
- this.detail = row;
- this.detail.musicGroupId = this.$route.query.id;
- this.visitVisiable = true;
- },
- openChangeVoice(row) {
- this.getList().then((res) => {
- for (const item of res.data.rows) {
- if (item.id === row.id) {
- this.rowDetail = { ...item, userId: item.studentId };
- // console.log(this.rowDetail)
- this.changeVoiceVisible = true;
- }
- }
- });
- },
- closeChangeVoice() {
- this.changeVoiceVisible = false;
- // this.rowDetail = null
- },
- handleChange(val) {
- this.visitForm.type = val[0];
- this.visitForm.purpose = val[1];
- },
- submitAddVisit() {
- this.$refs.visitForm.validate((res) => {
- if (res) {
- this.visitForm.visitType = null;
- this.visitForm.musicGroupId = this.id;
- addVisit(cleanDeep(this.visitForm)).then((res) => {
- if (res.code === 200) {
- this.$message.success("新增成功");
- this.visitVisiable = false;
- }
- });
- }
- });
- },
- beginDate(date) {
- let self = this;
- return {
- firstDayOfWeek: 1,
- disabledDate(time) {
- return time.getTime() >= date.getTime(); //开始时间不选时,结束时间最大值小于等于当天
- },
- };
- },
- extendTime(isPay) {
- this.isPay = isPay;
- if (isPay) {
- // 点击的延长缴费
- this.extendForm.expireDate = this.paymentExpireDate;
- } else {
- // 点击的延长报名
- this.extendForm.expireDate = this.applyExpireDate;
- }
- this.extendPaymentStatus = true;
- },
- payDate() {
- let self = this;
- return {
- firstDayOfWeek: 1,
- disabledDate(time) {
- return time.getTime() + 86400000 < new Date().getTime();
- },
- };
- },
- applyDate() {
- let self = this;
- return {
- firstDayOfWeek: 1,
- disabledDate(time) {
- return time.getTime() + 86400000 < new Date().getTime();
- },
- };
- },
- checkboxSelect(row) {
- return row.paymentStatus == 0;
- },
- relieve(row) {
- this.$confirm("操作后该学员即可不购买云教练缴费入团", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- }).then(async () => {
- try {
- const res = await setNoneCloudTeacher({ id: row.id });
- this.$message.success("解除预约成功");
- this.getList();
- } catch (e) {
- console.log(e);
- }
- });
- },
- getCheckNum(row) {
- this.rules.page = 1;
- this.rules.limit = 10;
- this.searchFrom = {
- name: null,
- subject: null, // 专业
- isAllowAdjust: null, // 是否允许调剂
- currentGrade: null,
- paymentStatus: null,
- visited: null,
- hasCloudTeacher: null,
- payingStatus: null,
- noneNeedCloudTeacher: null,
- };
- this.searchFrom.subject = row.subjectId;
- this.searchFrom.payingStatus = 2;
- this.searchFrom.hasCloudTeacher = 0;
- this.search();
- },
- getpayingNum(row) {
- this.rules.page = 1;
- this.rules.limit = 10;
- this.searchFrom = {
- name: null,
- subject: null, // 专业
- isAllowAdjust: null, // 是否允许调剂
- currentGrade: null,
- paymentStatus: null,
- visited: null,
- hasCloudTeacher: null,
- payingStatus: null,
- noneNeedCloudTeacher: null,
- };
- this.searchFrom.subject = row.subjectId;
- this.searchFrom.payingStatus = 1;
- this.search();
- },
- getpayNum(row) {
- this.rules.page = 1;
- this.rules.limit = 10;
- this.searchFrom = {
- name: null,
- subject: null, // 专业
- isAllowAdjust: null, // 是否允许调剂
- currentGrade: null,
- paymentStatus: null,
- visited: null,
- hasCloudTeacher: null,
- payingStatus: null,
- noneNeedCloudTeacher: null,
- };
- this.searchFrom.subject = row.subjectId;
- this.searchFrom.paymentStatus = 2 + "";
- this.search();
- },
- },
- watch: {
- "quitForm.isMaintenanceFee"(val) {
- if (val) {
- this.quitForm.maintenanceFee = 300;
- } else {
- this.quitForm.maintenanceFee = 0;
- }
- },
- orderVisible(val) {
- if (!val) {
- this.orderForm = {
- name: "",
- totalAmount: "",
- subject: "",
- subjectFee: "",
- axe: "",
- axePrice: "",
- others: "",
- othersPrice: "",
- };
- }
- },
- qrcodeStatus(val) {
- if (!val) {
- this.qrcode.clear();
- }
- },
- qrcodeStatus2(val) {
- if (!val) {
- this.qrcode2.clear();
- }
- },
- paymentStatus(val) {
- if (!val) {
- this.paymentForm = {
- paymentExpireDate: null,
- // feeType: null
- };
- }
- },
- quitVisible(val) {
- if (!val) {
- this.quitForm = {
- // 退团信息确认
- isRefundCourseFee: null,
- isRefundInstrumentFee: null,
- isRefundTeachingAssistantsFee: null,
- isMaintenanceFee: null,
- cloudTeacherAmount: null,
- isCloudTeacherAmount: null,
- maintenanceFee: 0,
- reason: "",
- };
- this.$refs["quitForm"].$refs["quitForm"].resetFields();
- }
- },
- // visitVisiable(val) {
- // if (!val) {
- // this.$refs["visitForm"].resetFields();
- // }
- // },
- },
- };
- </script>
- <style lang="scss" scoped>
- .auth {
- display: inline-block;
- & + .auth {
- margin-left: 0px;
- }
- }
- .dialog-footer.question {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- }
- .sigup-container {
- margin-left: 12px;
- .topWrap {
- padding: 18px 58px 18px 0;
- // height: 136px;
- background-color: #fff;
- // display: flex;
- // flex-direction: row;
- // justify-content: space-between;
- .msg.pay {
- color: #f85043;
- }
- .msg {
- text-align: right;
- color: #f97215;
- font-size: 32px;
- font-weight: bold;
- padding-top: 30px;
- box-sizing: border-box;
- img {
- width: 36px;
- height: 36px;
- position: relative;
- top: 5px;
- margin-right: 8px;
- }
- }
- h2 {
- height: 48px;
- line-height: 48px;
- position: relative;
- // padding-left: 30px;
- font-size: 32px;
- font-weight: 600;
- margin-bottom: 10px;
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: center;
- .term {
- height: 32px;
- line-height: 32px;
- border-radius: 24px;
- width: 100px;
- color: #14928a;
- border: 1px solid rgba(20, 146, 138, 1);
- font-size: 14px;
- text-align: center;
- margin-right: 12px;
- &:nth-child(1) {
- margin-left: 47px;
- }
- }
- .term.active {
- color: #fff;
- background-color: #14928a;
- }
- .squrt {
- position: absolute;
- left: -25px;
- top: 8px;
- height: 34px;
- width: 8px;
- background-color: #14928a;
- }
- }
- .btnList {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: center;
- flex-wrap: wrap;
- & > div {
- margin-right: 15px;
- margin-top: 10px;
- }
- }
- .newBand.close {
- background-color: #777;
- border: 1px solid #777;
- }
- }
- .searchList {
- background-color: #fff;
- padding: 0 58p 0 0px;
- }
- .sigup-core {
- margin-top: 12px;
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- .left {
- width: 400px;
- background-color: #fff;
- height: 80vh;
- overflow: auto;
- }
- .right {
- width: calc(100% - 400px);
- margin-left: 12px;
- flex-grow: 1;
- }
- }
- }
- .el-dialog__body {
- overflow: hidden;
- }
- .left-code,
- .right-code {
- // width: 50%;
- // float: left;
- h2 {
- font-size: 18px;
- text-align: center;
- padding-bottom: 8px;
- }
- .qrcode {
- display: flex;
- flex-direction: column;
- align-items: center;
- img {
- width: 200px;
- height: 200px;
- margin: 0 auto;
- }
- }
- .code-url {
- font-size: 18px;
- text-align: center;
- padding: 15px 15px 0 15px;
- }
- }
- .newBand {
- margin-bottom: 0;
- max-width: inherit;
- }
- /deep/.el-button--danger {
- background: #f85043;
- }
- .paymentForm {
- /deep/.el-input__inner,
- /deep/.el-input.el-input--suffix {
- width: 360px !important;
- }
- }
- .popoverWrap {
- p {
- line-height: 25px;
- }
- }
- </style>
|