signupList.vue 75 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423
  1. <template>
  2. <div class="sigup-container">
  3. <div class="topWrap">
  4. <div>
  5. <div style="display: flex; justify-content: space-between">
  6. <div
  7. style="
  8. display: flex;
  9. margin-bottom: 15px;
  10. font-size: 18px;
  11. font-weight: 400;
  12. "
  13. >
  14. <p style="margin-right: 10px" v-if="applyExpireDate">
  15. 报名截止时间:{{ applyExpireDate | formatTimer }}
  16. </p>
  17. <p v-if="paymentExpireDate">
  18. 缴费截止时间:{{ paymentExpireDate | formatTimer }}
  19. </p>
  20. </div>
  21. </div>
  22. <div class="btnList">
  23. <!-- <div class='newBand close'
  24. v-permission="'musicGroup/cancelMusicGroup'"
  25. @click="onClose">停止乐团</div> v-show="status == 'APPLY'"-->
  26. <div
  27. class="newBand"
  28. @click="payStart"
  29. v-permission="'musicGroup/openPay'"
  30. v-if="status == 'APPLY'"
  31. >
  32. 开始缴费
  33. </div>
  34. <!-- v-show="status=='PAY'" -->
  35. <div
  36. class="newBand"
  37. v-permission="'musicGroup/found'"
  38. @click="onGoHome"
  39. v-if="status == 'APPLY' || status == 'PAY'"
  40. >
  41. 确认开团
  42. </div>
  43. <div
  44. class="newBand"
  45. v-permission="'musicGroup/extensionApplyExpireDate'"
  46. @click="extendTime(false)"
  47. v-show="
  48. status == 'APPLY' ||
  49. status == 'PAY' ||
  50. status == 'PROGRESS' ||
  51. status == 'PREPARE'
  52. "
  53. >
  54. 延长报名
  55. </div>
  56. <div
  57. class="newBand"
  58. v-permission="'musicGroup/extensionPayment'"
  59. @click="extendTime(true)"
  60. v-show="
  61. status == 'APPLY' ||
  62. status == 'PAY' ||
  63. status == 'PROGRESS' ||
  64. status == 'PREPARE'
  65. "
  66. >
  67. 延长缴费
  68. </div>
  69. <!-- 家长会 -->
  70. <auth
  71. :auths="['musicGroup/sendParentMeetingNotice']"
  72. v-if="status == 'PAY'"
  73. >
  74. <div class="newBand" @click="meetingStatus = true">家长会通知</div>
  75. </auth>
  76. <div
  77. class="newBand"
  78. @click="onCreateQRCode('payment')"
  79. v-show="
  80. (status == 'PAY' ||
  81. status == 'APPLY' ||
  82. status == 'PROGRESS' ||
  83. status == 'PREPARE') &&
  84. ischeckCanReg
  85. "
  86. >
  87. 报名链接
  88. </div>
  89. <div class="newBand" @click="onCreateQRCode('detail')">缴费详情</div>
  90. <auth :auths="'studentRegistration/queryPreApplyList/4263'">
  91. <div
  92. class="newBand"
  93. style="margin-right: 0"
  94. @click="forecastVisible = true"
  95. >
  96. 预报名名单
  97. </div>
  98. </auth>
  99. <!-- v-permission="getFullPermission('musicGroup/addMusicGroupRegs')" -->
  100. <div
  101. class="newBand"
  102. v-permission="'musicGroup/addMusicGroupRegs'"
  103. @click="mergeVisible = true"
  104. v-show="
  105. (status == 'PAY' ||
  106. status == 'APPLY' ||
  107. status == 'PROGRESS' ||
  108. status == 'PREPARE') &&
  109. ischeckCanReg
  110. "
  111. >
  112. 合并学员
  113. </div>
  114. <div
  115. class="newBand"
  116. style="background-color: #f97215; border: 1px solid #f97215"
  117. @click="onCreateQRCode('rePayment')"
  118. v-show="
  119. (status == 'PAY' ||
  120. status == 'APPLY' ||
  121. status == 'PROGRESS' ||
  122. status == 'PREPARE') &&
  123. ischeckCanReg
  124. "
  125. >
  126. 报名链接(无乐器)
  127. </div>
  128. <div
  129. class="newBand"
  130. v-permission="'studentRegistration/queryStudentApplyDetailExport'"
  131. @click="onDownLoadExecl"
  132. >
  133. 名单导出
  134. </div>
  135. <auth :auths="'studentRegistration/getRegisterOrPreList'">
  136. <div
  137. class="newBand"
  138. style="margin-right: 0"
  139. @click="newForecastVisible = true"
  140. >
  141. 时间数据统计
  142. </div>
  143. </auth>
  144. <auth :auths="'subject/findSubApplyDetail'">
  145. <el-popover placement="bottom" width="1000" trigger="hover">
  146. <el-table
  147. style="width: 100% !important"
  148. :data="leftList"
  149. :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
  150. >
  151. <el-table-column
  152. label="乐团声部"
  153. prop="subjectName"
  154. align="center"
  155. >
  156. </el-table-column>
  157. <el-table-column
  158. label="计划招生"
  159. prop="expectedStudentNum"
  160. align="center"
  161. >
  162. <template slot-scope="scope">
  163. <div>
  164. <p v-show="!isEdit">{{ scope.row.expectedStudentNum }}</p>
  165. <el-input
  166. v-show="isEdit"
  167. v-model.trim="scope.row.expectedStudentNum"
  168. ></el-input>
  169. </div>
  170. </template>
  171. </el-table-column>
  172. <el-table-column
  173. label="已报名"
  174. prop="applyStudentNum"
  175. align="center"
  176. >
  177. </el-table-column>
  178. <el-table-column label="已缴费" prop="payNum" align="center">
  179. <template slot-scope="scope">
  180. <div>
  181. <el-button type="text" @click="getpayNum(scope.row)">{{
  182. scope.row.payNum
  183. }}</el-button>
  184. </div>
  185. </template>
  186. </el-table-column>
  187. <el-table-column label="缴费中" prop="payingNum" align="center">
  188. <template slot="header">
  189. <p>
  190. 缴费中
  191. <el-tooltip placement="top" popper-class="mTooltip">
  192. <div slot="content">提交订单尚未支付成功学员</div>
  193. <i
  194. class="el-icon-question"
  195. style="font-size: 18px; color: #f56c6c"
  196. ></i>
  197. </el-tooltip>
  198. </p>
  199. </template>
  200. <template slot-scope="scope">
  201. <div>
  202. <el-button type="text" @click="getpayingNum(scope.row)">{{
  203. scope.row.payingNum
  204. }}</el-button>
  205. </div>
  206. </template>
  207. </el-table-column>
  208. <el-table-column label="审核中" prop="checkNum" align="center">
  209. <template slot="header">
  210. <p>
  211. 审核中
  212. <el-tooltip placement="top" popper-class="mTooltip">
  213. <div slot="content">
  214. 不购买云教练系统学员数量,不包含已缴费学员
  215. </div>
  216. <i
  217. class="el-icon-question"
  218. style="font-size: 18px; color: #f56c6c"
  219. ></i>
  220. </el-tooltip>
  221. </p>
  222. </template>
  223. <template slot-scope="scope">
  224. <div>
  225. <el-button type="text" @click="getCheckNum(scope.row)">{{
  226. scope.row.checkNum
  227. }}</el-button>
  228. </div>
  229. </template>
  230. </el-table-column>
  231. <el-table-column
  232. label="购买云教练人数"
  233. prop="buyCloudTeacherNum"
  234. align="center"
  235. >
  236. <template slot="header">
  237. <p>
  238. 购买云教练人数
  239. <el-tooltip placement="top" popper-class="mTooltip">
  240. <div slot="content">
  241. 已缴费学员中购买了云教练系统的学员总数
  242. </div>
  243. <i
  244. class="el-icon-question"
  245. style="font-size: 18px; color: #f56c6c"
  246. ></i>
  247. </el-tooltip>
  248. </p>
  249. </template>
  250. <template slot-scope="scope">
  251. <div>
  252. <el-button
  253. type="text"
  254. @click="getCheckNum(scope.row, 'buyCloud')"
  255. >{{ scope.row.buyCloudTeacherNum }}</el-button
  256. >
  257. </div>
  258. </template>
  259. </el-table-column>
  260. <el-table-column
  261. label="入团未购云教练"
  262. prop="noCloudTeacherStudentNumOfNormal"
  263. align="center"
  264. >
  265. <template slot="header">
  266. <p>
  267. 入团未购云教练
  268. <el-tooltip placement="top" popper-class="mTooltip">
  269. <div slot="content">
  270. 【在读】学员中,未购买【云教练系统】学员数量
  271. </div>
  272. <i
  273. class="el-icon-question"
  274. style="font-size: 18px; color: #f56c6c"
  275. ></i>
  276. </el-tooltip>
  277. </p>
  278. </template>
  279. <template slot-scope="scope">
  280. <div>
  281. <el-button
  282. type="text"
  283. @click="getCheckNum(scope.row, 'noCloud')"
  284. >{{
  285. scope.row.noCloudTeacherStudentNumOfNormal
  286. }}</el-button
  287. >
  288. </div>
  289. </template>
  290. </el-table-column>
  291. <!-- <el-table-column label="购买乐器未入团人数" prop="cloudTeacherStudentNumOfApply" align="center">
  292. <template slot="header">
  293. <p>
  294. 购买乐器未入团人数
  295. <el-tooltip placement="top" popper-class="mTooltip">
  296. <div slot="content">
  297. 只购买乐器未解除限制学员数量(不包括退团学员)
  298. </div>
  299. <i
  300. class="el-icon-question"
  301. style="font-size: 18px; color: #f56c6c"
  302. ></i>
  303. </el-tooltip>
  304. </p>
  305. </template>
  306. <template slot-scope="scope">
  307. <div>
  308. <el-button type="text" @click="getCheckNum(scope.row, 'cloudTeacher')">{{
  309. scope.row.cloudTeacherStudentNumOfApply
  310. }}</el-button>
  311. </div>
  312. </template>
  313. </el-table-column> -->
  314. </el-table>
  315. <div
  316. class="btnWrap"
  317. v-permission="'musicGroup/updateExpectedStudentNum'"
  318. style="margin-right: 20px; margin-top: 20px"
  319. >
  320. <el-button
  321. v-show="
  322. !isEdit &&
  323. (status == 'PAY' ||
  324. status == 'APPLY' ||
  325. status == 'PROGRESS' ||
  326. status == 'PREPARE')
  327. "
  328. @click="isEdit = true"
  329. >编辑</el-button
  330. >
  331. <el-button v-show="isEdit" @click="saveIsEdit">保存</el-button>
  332. </div>
  333. <div class="newBand" slot="reference">人数统计</div>
  334. </el-popover>
  335. </auth>
  336. </div>
  337. </div>
  338. <el-dialog
  339. title="选择合并乐团"
  340. :visible.sync="mergeVisible"
  341. width="950px"
  342. >
  343. <mergeMusic
  344. v-if="mergeVisible"
  345. style="padding: 0 20px"
  346. :organId="organId"
  347. @close="mergeVisible = false"
  348. @submited="getList"
  349. />
  350. </el-dialog>
  351. <el-dialog
  352. title="时间数据统计"
  353. :visible.sync="newForecastVisible"
  354. width="1100px"
  355. >
  356. <newForecastList
  357. v-if="newForecastVisible"
  358. @close="newForecastVisible = false"
  359. />
  360. </el-dialog>
  361. <el-dialog
  362. title="预报名名单"
  363. :visible.sync="forecastVisible"
  364. width="1150px"
  365. >
  366. <forecastList v-if="forecastVisible" @close="forecastVisible = false" />
  367. </el-dialog>
  368. <!-- stepImgs: {
  369. APPLY: require('@/assets/images/base/clock.png'),
  370. PAY: require('@/assets/images/base/pay.png')
  371. }, -->
  372. </div>
  373. <div class="searchList">
  374. <save-form
  375. :inline="true"
  376. :model="searchFrom"
  377. @submit="search"
  378. @reset="onReset"
  379. >
  380. <el-form-item>
  381. <el-select
  382. v-model.trim="searchFrom.subject"
  383. filterable
  384. clearable
  385. placeholder="请选择专业"
  386. >
  387. <el-option
  388. v-for="(item, index) in soundList"
  389. :key="index"
  390. :label="item.name"
  391. :value="item.id"
  392. ></el-option>
  393. </el-select>
  394. </el-form-item>
  395. <el-form-item>
  396. <el-select
  397. v-model.trim="searchFrom.isAllowAdjust"
  398. filterable
  399. placeholder="请选择是否允许调剂"
  400. clearable
  401. >
  402. <el-option label="是" value="1"></el-option>
  403. <el-option label="否" value="0"></el-option>
  404. </el-select>
  405. </el-form-item>
  406. <el-form-item>
  407. <el-input
  408. v-model.trim="searchFrom.name"
  409. placeholder="请输入用户名或手机号"
  410. clearable
  411. ></el-input>
  412. </el-form-item>
  413. <el-form-item>
  414. <!-- <el-input v-model.trim="searchFrom.currentGrade" placeholder="请输入年级" clearable></el-input> -->
  415. <el-select
  416. v-model.trim="searchFrom.currentGrade"
  417. filterable
  418. clearable
  419. placeholder="请输入年级"
  420. >
  421. <el-option
  422. v-for="(item, index) in gradeList"
  423. :key="index"
  424. :label="item.label"
  425. :value="item.label"
  426. ></el-option>
  427. </el-select>
  428. </el-form-item>
  429. <el-form-item>
  430. <el-select
  431. v-model.trim="searchFrom.paymentStatus"
  432. clearable
  433. filterable
  434. placeholder="报名缴费"
  435. >
  436. <el-option label="未开启缴费" value="0"></el-option>
  437. <el-option label="开启缴费" value="1"></el-option>
  438. <el-option label="已缴费" value="2"></el-option>
  439. </el-select>
  440. </el-form-item>
  441. <el-form-item>
  442. <el-select
  443. v-model.trim="searchFrom.visited"
  444. clearable
  445. filterable
  446. placeholder="是否回访"
  447. >
  448. <el-option label="否" value="false"></el-option>
  449. <el-option label="是" value="true"></el-option>
  450. </el-select>
  451. </el-form-item>
  452. <el-form-item>
  453. <el-select
  454. v-model.trim="searchFrom.hasCloudTeacher"
  455. clearable
  456. filterable
  457. placeholder="是否购买云教练"
  458. >
  459. <el-option label="是" :value="1"></el-option>
  460. <el-option label="否" :value="0"></el-option>
  461. </el-select>
  462. </el-form-item>
  463. <el-form-item>
  464. <el-select
  465. v-model.trim="searchFrom.noneNeedCloudTeacher"
  466. clearable
  467. filterable
  468. placeholder="是否解除限制"
  469. >
  470. <el-option label="是" :value="1"></el-option>
  471. <el-option label="否" :value="0"></el-option>
  472. </el-select>
  473. </el-form-item>
  474. <el-form-item>
  475. <el-select
  476. v-model.trim="searchFrom.payingStatus"
  477. clearable
  478. filterable
  479. placeholder="订单状态"
  480. >
  481. <el-option label="缴费中" :value="1"></el-option>
  482. <el-option label="审核中" :value="2"></el-option>
  483. </el-select>
  484. </el-form-item>
  485. <el-form-item prop="studentStatus">
  486. <el-select
  487. v-model.trim="searchFrom.studentStatus"
  488. clearable
  489. filterable
  490. placeholder="学员状态"
  491. >
  492. <el-option label="在读" value="NORMAL"></el-option>
  493. <!-- <el-option label="请假" value="LEAVE"></el-option>
  494. <el-option label="退团" value="QUIT"></el-option> -->
  495. <el-option label="报名" value="APPLY"></el-option>
  496. </el-select>
  497. </el-form-item>
  498. <!-- 专业actualSubjectId 调剂isAllowAdjust 手机号name -->
  499. <el-form-item>
  500. <el-button type="danger" native-type="search">搜索</el-button>
  501. <el-button type="primary" native-type="reset">重置</el-button>
  502. </el-form-item>
  503. </save-form>
  504. </div>
  505. <div>
  506. <el-table
  507. :data="rightList"
  508. ref="multipleTable"
  509. :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
  510. @selection-change="handleSelectionChange"
  511. >
  512. <el-table-column
  513. type="selection"
  514. width="55"
  515. :selectable="checkboxSelect"
  516. >
  517. </el-table-column>
  518. <el-table-column type="expand">
  519. <template slot-scope="props">
  520. <el-form label-position="left" class="demo-table-expand">
  521. <el-row style="margin-left: 64px">
  522. <el-col :span="4">
  523. <el-form-item label="入团年份">
  524. <span>
  525. {{ props.row.createTime | dayjsFormat("YYYY年") }}</span
  526. >
  527. </el-form-item>
  528. </el-col>
  529. <el-col :span="4">
  530. <el-form-item label="报名专业">
  531. <span>{{ props.row.subjectName }}</span>
  532. </el-form-item>
  533. </el-col>
  534. <el-col :span="4">
  535. <el-form-item label="服从调剂:">
  536. <span>{{ props.row.isAllowAdjust | isAllowAdjust }}</span>
  537. </el-form-item></el-col
  538. >
  539. <!-- <el-col :span="4">
  540. <el-form-item label="是否购买云教练:">
  541. <span>{{
  542. props.row.hasCloudTeacher == 1 ? "是" : "否"
  543. }}</span>
  544. </el-form-item></el-col
  545. > -->
  546. <el-col :span="4">
  547. <!-- <el-form-item> -->
  548. <!-- <template slot="label"> -->
  549. <div class="hiddenwrap">
  550. <p
  551. style="
  552. position: relative;
  553. display: flex;
  554. align-items: center;
  555. "
  556. >
  557. 解除限制
  558. <el-tooltip placement="top" popper-class="mTooltip">
  559. <div slot="content">
  560. 学员是否受到不购买云教练的缴费限制
  561. </div>
  562. <i
  563. class="el-icon-question"
  564. style="font-size: 18px; color: #f56c6c"
  565. ></i
  566. >:
  567. </el-tooltip>
  568. </p>
  569. <!-- </template> -->
  570. <span>
  571. {{ props.row.noneNeedCloudTeacher == 1 ? "是" : "否" }}
  572. </span>
  573. </div>
  574. <!-- </el-form-item>-->
  575. </el-col>
  576. <!-- <el-col :span="4">
  577. <el-form-item label="备注:">
  578. <overflow-text
  579. :text="props.row.remark"
  580. ></overflow-text> </el-form-item
  581. ></el-col> -->
  582. </el-row>
  583. </el-form>
  584. </template>
  585. </el-table-column>
  586. <el-table-column
  587. label="姓名"
  588. prop="studentName"
  589. align="center"
  590. width="150px"
  591. >
  592. <template slot-scope="scope">
  593. <div>
  594. <p class="courseYellow left">
  595. 学员: {{ scope.row.studentName }}({{ scope.row.gender | sex }})
  596. </p>
  597. <p class="left">家长: {{ scope.row.parentsName }}</p>
  598. </div>
  599. </template>
  600. </el-table-column>
  601. <!-- <el-table-column label="家长姓名" prop="parentsName" align="center">
  602. </el-table-column> -->
  603. <!-- <el-table-column align="left" label="入团年份">
  604. <template slot-scope="scope">
  605. <div>
  606. {{ scope.row.createTime | dayjsFormat("YYYY年") }}
  607. </div>
  608. </template>
  609. </el-table-column> -->
  610. <el-table-column
  611. label="联系电话"
  612. prop="parentsPhone"
  613. align="center"
  614. width="110px"
  615. >
  616. </el-table-column>
  617. <el-table-column label="学员状态" prop="studentStatus" align="center">
  618. <template slot-scope="scope">
  619. <div>
  620. {{ scope.row.studentStatus | musicGroupStudentType }}
  621. </div>
  622. </template>
  623. </el-table-column>
  624. <el-table-column label="年级班级" align="center">
  625. <template slot-scope="scope">
  626. <div v-if="gradeListObj[scope.row.currentGrade]">
  627. {{
  628. gradeListObj[scope.row.currentGrade] + scope.row.currentClass
  629. }}
  630. </div>
  631. </template>
  632. </el-table-column>
  633. <!-- <el-table-column label="性别" prop="gender" align="center">
  634. <template slot-scope="scope">
  635. <div>
  636. {{ scope.row.gender | sex }}
  637. </div>
  638. </template>
  639. </el-table-column> -->
  640. <!-- <el-table-column label="服从调剂" prop="isAllowAdjust" align="center">
  641. <template slot-scope="scope">
  642. <div>
  643. {{ scope.row.isAllowAdjust | isAllowAdjust }}
  644. </div>
  645. </template>
  646. </el-table-column> -->
  647. <!-- <el-table-column label="报名专业" prop="subjectName" align="center">
  648. </el-table-column> -->
  649. <el-table-column
  650. label="调剂专业"
  651. prop="actualSubjectName"
  652. align="center"
  653. >
  654. <template slot-scope="scope">
  655. <div>
  656. <p>
  657. {{ scope.row.actualSubjectName }}
  658. </p>
  659. <!-- <p>报名:{{ scope.row.subjectName }}</p> -->
  660. </div>
  661. </template>
  662. </el-table-column>
  663. <el-table-column label="是否回访" prop="paymentStatus" align="center">
  664. <template slot-scope="scope">
  665. <div>
  666. {{ scope.row.visitNum ? "是" : "否" }}
  667. </div>
  668. </template>
  669. </el-table-column>
  670. <!-- visited -->
  671. <!-- v-show='status == "PAY"' -->
  672. <el-table-column
  673. label="报名缴费/订单状态"
  674. prop="paymentStatus"
  675. align="center"
  676. >
  677. <template slot-scope="scope">
  678. <div>
  679. <p>{{ scope.row.paymentStatus | paymentStatus }}</p>
  680. <p>{{ scope.row.payingStatus | filtersPayingStatus }}</p>
  681. </div>
  682. </template>
  683. </el-table-column>
  684. <!-- <el-table-column label="订单状态" prop="payingStatus" align="center">
  685. <template slot-scope="scope">
  686. <div>
  687. {{ scope.row.payingStatus | filtersPayingStatus }}
  688. </div>
  689. </template>
  690. </el-table-column> -->
  691. <el-table-column
  692. label="是否购买会员"
  693. prop="hasCloudTeacher"
  694. align="center"
  695. >
  696. <template slot-scope="scope">
  697. <div>
  698. {{ scope.row.hasCloudTeacher == 1 ? "是" : "否" }}
  699. </div>
  700. </template>
  701. </el-table-column>
  702. <!-- <el-table-column
  703. label="解除限制"
  704. fixed="right"
  705. prop="noneNeedCloudTeacher"
  706. align="center"
  707. >
  708. <template slot="header">
  709. <p style="position: relative; display: flex">
  710. 解除限制
  711. <el-tooltip placement="top" popper-class="mTooltip">
  712. <div slot="content">学员是否受到不购买云教练的缴费限制</div>
  713. <i
  714. class="el-icon-question"
  715. style="font-size: 18px; color: #f56c6c"
  716. ></i>
  717. </el-tooltip>
  718. </p>
  719. </template>
  720. <template slot-scope="scope">
  721. <div>
  722. {{ scope.row.noneNeedCloudTeacher == 1 ? "是" : "否" }}
  723. </div>
  724. </template>
  725. </el-table-column> -->
  726. <el-table-column label="备注" prop="remark" align="center">
  727. <template slot-scope="scope">
  728. <div>
  729. <overflow-text :text="scope.row.remark"></overflow-text>
  730. </div>
  731. </template>
  732. </el-table-column>
  733. <!-- {{ status }} -->
  734. <el-table-column
  735. label="操作"
  736. width="200px"
  737. align="center"
  738. v-if="
  739. status == 'PAY' ||
  740. status == 'APPLY' ||
  741. status == 'PROGRESS' ||
  742. status == 'PREPARE'
  743. "
  744. >
  745. <!-- v-show="
  746. status == 'PAY' || status == 'PROGRESS' || status == 'PREPARE' || status=='APPLY'
  747. " -->
  748. <template slot-scope="scope">
  749. <div>
  750. <auth :auths="'studentRegistration/batchUpdateSubject'">
  751. <el-button
  752. type="text"
  753. v-show="scope.row.paymentStatus != 2"
  754. @click="resetSubject(scope.row)"
  755. >修改专业</el-button
  756. >
  757. </auth>
  758. <!-- APPLY status == "APPLY" || s-->
  759. <!-- <el-popover
  760. v-show="scope.row.remark"
  761. placement="top-start"
  762. title="备注"
  763. width="200"
  764. trigger="hover"
  765. :content="scope.row.remark"
  766. >
  767. <el-button type="text" slot="reference">备注</el-button>
  768. </el-popover> -->
  769. <!-- PAY -->
  770. <!-- && status == "PAY"-->
  771. <auth
  772. :auths="'studentRegistration/queryFeeDetail'"
  773. v-show="scope.row.paymentStatus == 2"
  774. >
  775. <el-button type="text" @click="lookdetail(scope.row)"
  776. >查看</el-button
  777. >
  778. </auth>
  779. <auth
  780. :auths="'musicGroupQuit/apply2'"
  781. v-show="scope.row.paymentStatus == 2"
  782. >
  783. <el-button type="text" @click="quitTeam(scope.row)"
  784. >退团</el-button
  785. >
  786. </auth>
  787. <!-- <auth
  788. :auths="'musicGroupQuit/directQuitMusicGroup3'"
  789. v-show="scope.row.paymentStatus == 2"
  790. >
  791. <el-button type="text" @click="quieTeams(scope.row)"
  792. >退团</el-button
  793. >
  794. </auth> -->
  795. <auth
  796. :auths="'visit/add/teamSignupList'"
  797. v-if="scope.row.visitNum <= 0"
  798. >
  799. <el-button type="text" @click="addVisit(scope.row)"
  800. >新增回访</el-button
  801. >
  802. </auth>
  803. <auth
  804. :auths="'subjectChange/getStudentOriginal'"
  805. v-show="scope.row.paymentStatus == 2"
  806. v-if="status != 'PROGRESS'"
  807. >
  808. <el-button type="text" @click="openChangeVoice(scope.row)"
  809. >更改声部</el-button
  810. >
  811. </auth>
  812. <!-- -->
  813. <auth
  814. v-show="
  815. scope.row.payingStatus == 2 &&
  816. scope.row.noneNeedCloudTeacher == 0
  817. "
  818. :auths="'studentRegistration/setNoneCloudTeacher'"
  819. >
  820. <el-button type="text" @click="relieve(scope.row)"
  821. >解除预约限制</el-button
  822. >
  823. </auth>
  824. <auth :auths="'studentRegistration/setCloudTeacherToFailed'">
  825. <el-button
  826. type="text"
  827. v-if="scope.row.payingStatus == 2"
  828. @click="failedRelieve(scope.row)"
  829. >拒绝审核</el-button
  830. >
  831. </auth>
  832. </div>
  833. </template>
  834. </el-table-column>
  835. </el-table>
  836. <div
  837. style="margin-top: 10px; margin-bottom: 10px"
  838. v-show="
  839. status == 'APPLY' || status == 'PROGRESS' || status == 'PREPARE'
  840. "
  841. >
  842. <el-button @click="onSelectAll">全选/取消</el-button>
  843. <auth :auths="'studentRegistration/openPayment'">
  844. <el-button
  845. style="background-color: #14928a; border: 1px solid #14928a"
  846. @click="onPartPayment"
  847. type="primary"
  848. >开启缴费</el-button
  849. >
  850. </auth>
  851. <!-- <div class='newBand' v-show="status=='APPLY'">允许缴费</div> -->
  852. </div>
  853. <pagination
  854. sync
  855. :total.sync="rules.total"
  856. :page.sync="rules.page"
  857. :limit.sync="rules.limit"
  858. :page-sizes="rules.page_size"
  859. @pagination="getList"
  860. />
  861. </div>
  862. <el-dialog title="修改专业" :visible.sync="subjectVisible" width="400px">
  863. <el-form :model="maskForm">
  864. <el-form-item label="选择专业">
  865. <el-select v-model.trim="maskForm.subject" filterable clearable>
  866. <el-option
  867. v-for="(item, index) in soundList"
  868. :key="index"
  869. :label="item.name"
  870. :value="item.id"
  871. ></el-option>
  872. </el-select>
  873. </el-form-item>
  874. </el-form>
  875. <div slot="footer" class="dialog-footer">
  876. <el-button @click="subjectVisible = false">取 消</el-button>
  877. <el-button type="primary" @click="okReset">确 定</el-button>
  878. </div>
  879. </el-dialog>
  880. <el-dialog
  881. :title="!isPay ? '延长报名' : '延长缴费'"
  882. :visible.sync="extendPaymentStatus"
  883. destroy-on-close
  884. width="400px"
  885. >
  886. <el-form :model="extendForm" ref="extendForm" :rules="extendRule">
  887. <el-form-item v-if="isPay" label="延长缴费时间" prop="expireDate">
  888. <el-date-picker
  889. v-model.trim="extendForm.expireDate"
  890. value-format="yyyy-MM-dd"
  891. type="date"
  892. :picker-options="payDate()"
  893. placeholder="选择日期"
  894. >
  895. </el-date-picker>
  896. </el-form-item>
  897. <el-form-item label="延长报名时间" v-else prop="expireDate">
  898. <el-date-picker
  899. v-model.trim="extendForm.expireDate"
  900. value-format="yyyy-MM-dd"
  901. type="date"
  902. :picker-options="applyDates"
  903. placeholder="选择日期"
  904. >
  905. </el-date-picker>
  906. </el-form-item>
  907. </el-form>
  908. <div slot="footer" class="dialog-footer">
  909. <el-button @click="extendPaymentStatus = false">取 消</el-button>
  910. <el-button
  911. type="primary"
  912. v-if="isPay"
  913. @click="onExtendPayment('extendForm', isPay)"
  914. >确 定</el-button
  915. >
  916. <el-button
  917. v-else
  918. type="primary"
  919. @click="onExtendPayment('extendForm', isPay)"
  920. >确 定</el-button
  921. >
  922. </div>
  923. </el-dialog>
  924. <el-dialog title="订单详情" :visible.sync="orderVisible" width="800px">
  925. <template v-if="orderForm.length > 0">
  926. <descriptions :column="2">
  927. <template v-for="(item, index) in orderForm">
  928. <descriptions-item :key="index" :label="item.name"
  929. >{{ item.price | moneyFormat }}元</descriptions-item
  930. >
  931. <descriptions-item :key="index" label="缴费时间">{{
  932. item.createTime
  933. }}</descriptions-item>
  934. </template>
  935. </descriptions>
  936. </template>
  937. <el-row v-else>
  938. <el-col :span="24">
  939. <empty desc="暂无订单详情" />
  940. </el-col>
  941. </el-row>
  942. <div slot="footer" class="dialog-footer">
  943. <el-button type="primary" @click="orderVisible = false"
  944. >确 定</el-button
  945. >
  946. </div>
  947. </el-dialog>
  948. <el-dialog
  949. title="开始缴费"
  950. :visible.sync="paymentStatus"
  951. width="400px"
  952. destroy-on-close
  953. >
  954. <el-form
  955. ref="paymentForm"
  956. class="paymentForm"
  957. :model="paymentForm"
  958. label-position="top"
  959. :rules="paymentRules"
  960. >
  961. <el-form-item label="请设置缴费截止日期" prop="paymentExpireDate">
  962. <el-date-picker
  963. v-model.trim="paymentForm.paymentExpireDate"
  964. type="date"
  965. value-format="yyyy-MM-dd"
  966. :picker-options="payDate()"
  967. style="width: 100%"
  968. placeholder="选择日期"
  969. >
  970. </el-date-picker>
  971. </el-form-item>
  972. </el-form>
  973. <div slot="footer" class="dialog-footer">
  974. <el-button @click="paymentStatus = false">取 消</el-button>
  975. <el-button type="primary" @click="onStartPayment('paymentForm')"
  976. >确 定</el-button
  977. >
  978. </div>
  979. </el-dialog>
  980. <!-- 预报名链接 -->
  981. <qr-code v-model="codeStatus" :title="codeTitle" :codeUrl="qrCodeUrl" />
  982. <!-- 退团弹窗 -->
  983. <el-dialog
  984. title="退团信息确认"
  985. v-if="quitVisible"
  986. width="700px"
  987. :visible.sync="quitVisible"
  988. >
  989. <quiteTeam :quitForm="quitForm" :activeRow="activeRow" ref="quitForm" />
  990. <p style="color: red; paddingleft: 150px">退费金额暂不进入账户余额</p>
  991. <span slot="footer" class="dialog-footer question">
  992. <div>
  993. <el-popover placement="right" width="500" trigger="click">
  994. <div class="popoverWrap">
  995. <p>乐团退团退费规则:</p>
  996. <p>退还乐器练习云教练费用:报名缴费时缴费的乐器练习云教练费用</p>
  997. <p>退还课程费用:缴费总额-已结束课时单价之和</p>
  998. <p>退还乐器费用:报名缴费时缴纳的乐器费用(团购、租金)</p>
  999. <p>退还教辅费用:报名缴费时缴费的教辅费用</p>
  1000. <p>退还乐保费用:报名缴费时缴费的乐保费用</p>
  1001. </div>
  1002. <el-button
  1003. type="text"
  1004. icon="el-icon-question"
  1005. slot="reference"
  1006. style="color: red"
  1007. >退团退费说明</el-button
  1008. >
  1009. </el-popover>
  1010. </div>
  1011. <div>
  1012. <el-button @click="quitVisible = false">取 消</el-button>
  1013. <el-button type="primary" @click="chioseType">确 定</el-button>
  1014. </div>
  1015. </span>
  1016. </el-dialog>
  1017. <!-- 回访记录 -->
  1018. <el-dialog
  1019. title="新增回访"
  1020. width="500px"
  1021. destroy-on-close
  1022. :close-on-click-modal="false"
  1023. :visible.sync="visitVisiable"
  1024. >
  1025. <visit
  1026. v-if="visitVisiable && detail"
  1027. :detail="detail"
  1028. @close="visitVisiable = false"
  1029. @submited="getList"
  1030. />
  1031. </el-dialog>
  1032. <el-dialog
  1033. title="更改声部"
  1034. :visible.sync="changeVoiceVisible"
  1035. v-if="changeVoiceVisible"
  1036. width="600px"
  1037. >
  1038. <changeVoice
  1039. @close="closeChangeVoice"
  1040. @submited="getList"
  1041. :detail.sync="rowDetail"
  1042. :courseViewType="courseViewType"
  1043. :musicGroupId="id"
  1044. :voiceList="leftList"
  1045. />
  1046. </el-dialog>
  1047. <!-- 家长会通知 -->
  1048. <el-dialog
  1049. title="预报名家长会通知"
  1050. :visible.sync="meetingStatus"
  1051. @close="onCloseMeet('extendForm')"
  1052. width="400px"
  1053. >
  1054. <parentsMeeting
  1055. v-if="meetingStatus"
  1056. :extendForm="meetingForm"
  1057. :sysMsgStr="sysMsgStr"
  1058. ref="meetingForm"
  1059. :msg="'确认后该短信将发送给已缴费的学员'"
  1060. />
  1061. <div slot="footer" class="dialog-footer">
  1062. <el-button @click="meetingStatus = false">取 消</el-button>
  1063. <el-button type="primary" @click="onMeetingPayment('extendForm')"
  1064. >确 定</el-button
  1065. >
  1066. </div>
  1067. </el-dialog>
  1068. </div>
  1069. </template>
  1070. <script>
  1071. import pagination from "@/components/Pagination/index";
  1072. import qrCode from "@/components/QrCode/index";
  1073. import {
  1074. getintoClass,
  1075. getStudentList,
  1076. findSound,
  1077. musicGroupOpenPay,
  1078. openPayment,
  1079. musicGroupFound,
  1080. extensionPayment,
  1081. extensionApplyExpire,
  1082. resetPlanNum,
  1083. cancelMusicGroup,
  1084. getTeamBaseInfo,
  1085. studentApplyDetailExport,
  1086. StudentQuit,
  1087. getMusicGroupGradeList,
  1088. checkCanReg,
  1089. getRefundsDetail,
  1090. applyMusicGroupQuit,
  1091. } from "@/api/buildTeam";
  1092. import {
  1093. setNoneCloudTeacher,
  1094. setCloudTeacherToFailed,
  1095. sendParentMeetingNotice,
  1096. getSysMessageConfig,
  1097. } from "./api";
  1098. import mergeMusic from "./components/merge-music";
  1099. import forecastList from "./components/forecast-list";
  1100. import newForecastList from "./components/newForecast-list";
  1101. import { resetStudentSubject, getStudentFeeDetail } from "@/api/studentManager";
  1102. import { vaildStudentUrl, vaildTeacherUrl } from "@/utils/validate";
  1103. import { addVisit } from "@/views/returnVisitManager/api.js";
  1104. import QRCode from "qrcodejs2";
  1105. import { visitChiose } from "@/utils/searchArray";
  1106. import axios from "axios";
  1107. import { getToken } from "@/utils/auth";
  1108. import load from "@/utils/loading";
  1109. import qs from "qs";
  1110. import { permission } from "@/utils/directivePage";
  1111. import cleanDeep from "clean-deep";
  1112. import changeVoice from "./modals/change-voice";
  1113. import visit from "@/views/withdrawal-application/modals/visit";
  1114. import quiteTeam from "@/views/teamDetail/components/modals/quite-team";
  1115. import { courseType } from "@/constant/index";
  1116. import parentsMeeting from './modals/parentsMeeting'
  1117. export default {
  1118. name: "signupList",
  1119. components: {
  1120. pagination,
  1121. qrCode,
  1122. changeVoice,
  1123. mergeMusic,
  1124. forecastList,
  1125. visit,
  1126. newForecastList,
  1127. quiteTeam,
  1128. parentsMeeting
  1129. },
  1130. data() {
  1131. return {
  1132. multipleSelection: [], //
  1133. forecastVisible: false, // 预报名状态
  1134. newForecastVisible: false,
  1135. isEdit: false,
  1136. rowDetail: null,
  1137. mergeVisible: false,
  1138. changeVoiceVisible: false,
  1139. subjectVisible: false,
  1140. orderVisible: false,
  1141. quitVisible: false,
  1142. leftList: [],
  1143. rightList: [],
  1144. searchFrom: {
  1145. name: "",
  1146. subject: "", // 专业
  1147. isAllowAdjust: "", // 是否允许调剂
  1148. currentGrade: null, // 入学年级
  1149. paymentStatus: "",
  1150. visited: "",
  1151. hasCloudTeacher: null, // 是否购买云教练
  1152. payingStatus: null,
  1153. noneNeedCloudTeacher: null,
  1154. studentStatus: null,
  1155. },
  1156. quitForm: {
  1157. // 退团信息确认
  1158. isRefundCourseFee: null,
  1159. isRefundInstrumentFee: null,
  1160. isRefundTeachingAssistantsFee: null,
  1161. courseViewType: null,
  1162. hasMaintenance: null,
  1163. studentName: null,
  1164. musicGroupName: null,
  1165. isVisit: false,
  1166. reason: "",
  1167. userComment: null,
  1168. },
  1169. stepImgs: {
  1170. APPLY: require("@/assets/images/base/clock.png"),
  1171. PAY: require("@/assets/images/base/pay.png"),
  1172. },
  1173. status: "",
  1174. id: "",
  1175. rules: {
  1176. // 分页规则
  1177. limit: 10, // 限制显示条数
  1178. page: 1, // 当前页
  1179. total: 0, // 总条数
  1180. page_size: [10, 20, 30, 40], // 选择限制显示条数
  1181. },
  1182. teamName: "",
  1183. maskForm: {
  1184. subject: "",
  1185. },
  1186. activeId: "",
  1187. soundList: [],
  1188. orderForm: [],
  1189. paymentStatus: false,
  1190. paymentForm: {
  1191. paymentExpireDate: null,
  1192. // feeType: null
  1193. },
  1194. paymentRules: {
  1195. paymentExpireDate: [
  1196. { required: true, message: "请设置缴费截止日期", trigger: "blur" },
  1197. ],
  1198. },
  1199. paymentNum: 0, // 缴费了多少人
  1200. qrcodeStatus: false, // 生成二维码
  1201. qrcodes: true,
  1202. qrcode: null,
  1203. codeUrl: null,
  1204. qrcodeStatus2: false, // 生成二维码
  1205. qrcodes2: true,
  1206. qrcode2: null,
  1207. codeUrl2: null,
  1208. codeStatus: false,
  1209. codeTitle: null,
  1210. qrCodeUrl: null,
  1211. organId: "",
  1212. extendPaymentStatus: false,
  1213. extendForm: {
  1214. expireDate: null,
  1215. },
  1216. extendRule: {
  1217. expireDate: [
  1218. { required: true, message: "请选择延长时间", trigger: "change" },
  1219. ],
  1220. },
  1221. quitRules: {
  1222. isCloudTeacherAmount: [{ required: true, message: "请输入云教练费用" }],
  1223. cloudTeacherAmount: [
  1224. { required: true, message: "请输入云教练金额", trigger: "blur" },
  1225. ],
  1226. isRefundCourseFee: [
  1227. { required: true, message: "请选择是否退还课程费用" },
  1228. ],
  1229. isRefundInstrumentFee: [
  1230. { required: true, message: "选择是否退还乐器费用" },
  1231. ],
  1232. isRefundTeachingAssistantsFee: [
  1233. { required: true, message: "选择是否退还教辅费用" },
  1234. ],
  1235. isMaintenanceFee: [{ required: true, message: "选择是否退还乐保费用" }],
  1236. maintenanceFee: [{ required: true, message: "请输入退还乐保金额" }],
  1237. reason: [{ required: true, message: "请填写退团退费原因" }],
  1238. },
  1239. applyExpireDate: "",
  1240. paymentExpireDate: "",
  1241. activeRow: { hasMaintenance: false },
  1242. visitVisiable: false,
  1243. visitForm: {
  1244. musicGroupId: "",
  1245. overview: "",
  1246. purpose: "",
  1247. studentId: "",
  1248. type: "",
  1249. visitTime: "",
  1250. visitType: "",
  1251. feedback: "",
  1252. studentName: "",
  1253. },
  1254. visitChiose,
  1255. visitRules: {
  1256. overview: [{ required: true, message: "请输入学生近况" }],
  1257. feedback: [{ required: true, message: "请输入家长反馈" }],
  1258. visitTime: [{ required: true, message: "请输入回访时间" }],
  1259. visitType: [{ required: true, message: "请选择回访类型" }],
  1260. },
  1261. isPay: false,
  1262. applyDates: this.applyDate(),
  1263. detail: null,
  1264. gradeList: [],
  1265. ischeckCanReg: false,
  1266. courseViewType: null, // 乐团模式
  1267. isManage: false,
  1268. gradeListObj: {},
  1269. meetingStatus: false,
  1270. meetingForm: {
  1271. meetingDate: null,
  1272. address: null,
  1273. },
  1274. sysMsg:''
  1275. };
  1276. },
  1277. created() {},
  1278. async mounted() {
  1279. // 通过乐团状态判断显示隐藏的东西
  1280. let isSuperAdmin = this.$store.getters.isSuperAdmin;
  1281. let roles = this.$store.getters.roles;
  1282. if (isSuperAdmin) {
  1283. this.isManage = "super";
  1284. } else {
  1285. if (roles.indexOf(3) != -1) {
  1286. this.isManage = "manage";
  1287. } else {
  1288. this.isManage = false;
  1289. }
  1290. }
  1291. if (roles.indexOf(3) != -1 && roles.indexOf(4) != -1) {
  1292. this.isManage = "super";
  1293. }
  1294. // 获取短信模板
  1295. const rus = await getSysMessageConfig({
  1296. type: "STUDENT_SMS_IM_MUSIC_GROUP_PARENT_MEETING_NOTICE",
  1297. });
  1298. this.sysMsg = rus.data?.content || "";
  1299. this.init();
  1300. },
  1301. activated() {
  1302. this.init();
  1303. },
  1304. filters: {
  1305. filtersPayingStatus(val) {
  1306. let obj = {
  1307. 0: "--",
  1308. 1: "缴费中",
  1309. 2: "审核中",
  1310. };
  1311. return obj[val];
  1312. },
  1313. },
  1314. methods: {
  1315. permission(str) {
  1316. return permission(str);
  1317. },
  1318. async init() {
  1319. this.status = this.$route.query.team_status;
  1320. // 通过乐团id 获取乐团招生状态
  1321. this.id = this.$route.query.id;
  1322. this.teamName = this.$route.query.name;
  1323. // 判断是否带缓存参数
  1324. this.pickerOptions = this.beginDate(new Date());
  1325. // checkCanReg
  1326. try {
  1327. this.ischeckCanReg = await (
  1328. await checkCanReg({ musicGroupId: this.id })
  1329. ).data;
  1330. } catch (e) {
  1331. console.log(e);
  1332. }
  1333. getMusicGroupGradeList({ musicGroupId: this.id }).then((res) => {
  1334. let result = res.data;
  1335. this.gradeListObj = res.data;
  1336. if (res.code == 200 && result) {
  1337. for (let i in result) {
  1338. this.gradeList.push({
  1339. value: i,
  1340. label: result[i],
  1341. });
  1342. }
  1343. }
  1344. });
  1345. getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
  1346. if (res.code == 200) {
  1347. this.organId = res.data.musicGroup.organId;
  1348. this.courseViewType = res.data.musicGroup.courseViewType;
  1349. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  1350. this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
  1351. }
  1352. });
  1353. // 根据乐团id获乐团声部
  1354. findSound({ musicGroupId: this.id }).then((res) => {
  1355. if (res.code == 200) {
  1356. this.soundList = res.data;
  1357. }
  1358. });
  1359. // 通过乐团id获取乐团学生列表
  1360. this.getList();
  1361. },
  1362. search() {
  1363. this.rules.page = 1;
  1364. this.getList();
  1365. },
  1366. onReset() {
  1367. this.rules.page = 1;
  1368. this.rules.limit = 10;
  1369. this.searchFrom = {
  1370. name: null,
  1371. subject: null, // 专业
  1372. isAllowAdjust: null, // 是否允许调剂
  1373. currentGrade: null,
  1374. paymentStatus: null,
  1375. visited: null,
  1376. hasCloudTeacher: null,
  1377. payingStatus: null,
  1378. studentStatus: null,
  1379. noneNeedCloudTeacher: null,
  1380. };
  1381. this.getList();
  1382. },
  1383. onCancel() {
  1384. this.$store.dispatch("delVisitedViews", this.$route);
  1385. this.$router.push({ path: "/teamList" });
  1386. },
  1387. payStart() {
  1388. this.paymentStatus = true;
  1389. getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
  1390. if (res.code == 200) {
  1391. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  1392. this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
  1393. }
  1394. });
  1395. },
  1396. getList() {
  1397. let obj = {
  1398. musicGroupId: this.id,
  1399. actualSubjectId: this.searchFrom.subject || null,
  1400. isAllowAdjust: this.searchFrom.isAllowAdjust || null,
  1401. name: this.searchFrom.name || null,
  1402. currentGrade: this.searchFrom.currentGrade || null,
  1403. paymentStatus: this.searchFrom.paymentStatus || null,
  1404. visited: this.searchFrom.visited || null,
  1405. hasCloudTeacher: this.searchFrom.hasCloudTeacher,
  1406. payingStatus: this.searchFrom.payingStatus,
  1407. studentStatus: this.searchFrom.studentStatus,
  1408. noneNeedCloudTeacher: this.searchFrom.noneNeedCloudTeacher,
  1409. page: this.rules.page,
  1410. rows: this.rules.limit,
  1411. };
  1412. // 根据乐团id获取学团情况
  1413. getintoClass({ musicGroupId: this.id }).then((res) => {
  1414. if (res.code == 200) {
  1415. this.leftList = res.data;
  1416. }
  1417. });
  1418. return getStudentList(obj).then((res) => {
  1419. if (res.code == 200) {
  1420. res.data.rows.forEach((item) => {
  1421. // '未开启缴费', '开启缴费', '已缴费'
  1422. if (item.paymentStatus == 2) {
  1423. this.paymentNum += 1;
  1424. }
  1425. });
  1426. this.rightList = res.data.rows;
  1427. this.rules.total = res.data.total;
  1428. return res;
  1429. }
  1430. });
  1431. },
  1432. onStartPayment(formName) {
  1433. // 开启缴费
  1434. this.$refs[formName].validate((valid) => {
  1435. if (valid) {
  1436. musicGroupOpenPay({
  1437. musicGroupId: this.id,
  1438. expireDate: this.paymentForm.paymentExpireDate,
  1439. // feeType: this.paymentForm.feeType
  1440. }).then((res) => {
  1441. if (res.code == 200) {
  1442. this.$message.success("开启成功");
  1443. this.paymentStatus = false;
  1444. this.$store.dispatch("delVisitedViews", this.$route);
  1445. this.$router.push({
  1446. path: "/teamList",
  1447. });
  1448. this.status = "PAY";
  1449. this.paymentExpireDate = this.paymentForm.paymentExpireDate;
  1450. this.getList();
  1451. }
  1452. });
  1453. } else {
  1454. return false;
  1455. }
  1456. });
  1457. },
  1458. onSelectAll() {
  1459. // 选中全部
  1460. this.$refs.multipleTable.toggleAllSelection();
  1461. },
  1462. onPartPayment() {
  1463. // 部分缴费
  1464. let selection = this.multipleSelection;
  1465. if (selection.length <= 0) {
  1466. this.$message.error("您还没有选择学生");
  1467. return false;
  1468. }
  1469. let ids = [];
  1470. selection.forEach((item) => {
  1471. ids.push(item.id);
  1472. });
  1473. this.$confirm(`是否确认开启缴费?`, "提示", {
  1474. confirmButtonText: "确定",
  1475. cancelButtonText: "取消",
  1476. type: "warning",
  1477. })
  1478. .then(() => {
  1479. openPayment({
  1480. ids: ids.join(","),
  1481. }).then((res) => {
  1482. if (res.code == 200) {
  1483. this.$message.success("开启成功");
  1484. this.getList();
  1485. } else {
  1486. this.$message.error(res.msg);
  1487. }
  1488. });
  1489. })
  1490. .catch(() => {});
  1491. },
  1492. onCreateQRCode(type) {
  1493. // 生成报名二维码
  1494. let id = this.id;
  1495. this.codeStatus = true;
  1496. if (type == "payment") {
  1497. this.codeTitle = "学员报名链接";
  1498. this.qrCodeUrl = vaildStudentUrl() + "/#/login?musicGroupId=" + id;
  1499. } else if (type == "detail") {
  1500. let teamName = this.$route.query.name;
  1501. this.codeTitle = "报名缴费详情";
  1502. this.qrCodeUrl =
  1503. vaildTeacherUrl() +
  1504. "/#/order?musicGroupId=" +
  1505. id +
  1506. "&musicGroupName=" +
  1507. teamName;
  1508. } else if (type == "rePayment") {
  1509. this.codeTitle = "学生报名链接(无乐器)";
  1510. this.qrCodeUrl =
  1511. vaildStudentUrl() + "/#/login?musicGroupId=" + id + "&instrument=1";
  1512. }
  1513. },
  1514. onCreateQRCode2() {
  1515. // 生成报名二维码
  1516. this.qrcodeStatus2 = true;
  1517. let id = this.id;
  1518. let teamName = this.$route.query.name;
  1519. setTimeout(() => {
  1520. document.getElementById("qrcode2").innerHTML = "";
  1521. this.qrcode2 = new QRCode("qrcode2", {
  1522. width: 200,
  1523. height: 200,
  1524. colorDark: "#000000",
  1525. colorLight: "#ffffff",
  1526. correctLevel: QRCode.CorrectLevel.H,
  1527. });
  1528. this.qrcode2.makeCode(
  1529. vaildTeacherUrl() +
  1530. "/#/order?musicGroupId=" +
  1531. id +
  1532. "&musicGroupName=" +
  1533. teamName
  1534. );
  1535. this.codeUrl2 =
  1536. vaildTeacherUrl() +
  1537. "/#/order?musicGroupId=" +
  1538. id +
  1539. "&musicGroupName=" +
  1540. teamName;
  1541. }, 500);
  1542. },
  1543. onDownLoadExecl() {
  1544. // 报表导出
  1545. let url = "/api-web/studentRegistration/queryStudentApplyDetailExport";
  1546. let data = {
  1547. musicGroupId: this.$route.query.id,
  1548. page: 1,
  1549. rows: 9999,
  1550. };
  1551. const options = {
  1552. method: "POST",
  1553. headers: {
  1554. Authorization: getToken(),
  1555. },
  1556. data: qs.stringify(data),
  1557. url,
  1558. responseType: "blob",
  1559. };
  1560. this.$confirm("您确定导出吗?", "提示", {
  1561. confirmButtonText: "确定",
  1562. cancelButtonText: "取消",
  1563. type: "warning",
  1564. })
  1565. .then(() => {
  1566. load.startLoading();
  1567. axios(options)
  1568. .then((res) => {
  1569. let blob = new Blob([res.data], {
  1570. // type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
  1571. type: "application/vnd.ms-excel;charset=utf-8",
  1572. //word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
  1573. });
  1574. let text = new Response(blob).text();
  1575. text.then((res) => {
  1576. // 判断是否报错
  1577. if (res.indexOf("code") != -1) {
  1578. let json = JSON.parse(res);
  1579. this.$message.error(json.msg);
  1580. } else {
  1581. let objectUrl = URL.createObjectURL(blob);
  1582. let link = document.createElement("a");
  1583. let nowTime = new Date();
  1584. let ymd =
  1585. nowTime.getFullYear() +
  1586. "" +
  1587. (nowTime.getMonth() + 1) +
  1588. "" +
  1589. nowTime.getDate() +
  1590. "" +
  1591. nowTime.getHours() +
  1592. "" +
  1593. nowTime.getMinutes();
  1594. let fname = this.$route.query.id + "-" + ymd + ".xls"; //下载文件的名字
  1595. link.href = objectUrl;
  1596. link.setAttribute("download", fname);
  1597. document.body.appendChild(link);
  1598. link.click();
  1599. }
  1600. });
  1601. load.endLoading();
  1602. })
  1603. .catch((error) => {
  1604. this.$message.error("导出数据失败,请联系管理员");
  1605. load.endLoading();
  1606. });
  1607. })
  1608. .catch(() => {});
  1609. },
  1610. onGoHome() {
  1611. // 确认开团
  1612. // 判断是否有学生缴费
  1613. if (this.paymentNum <= 0) {
  1614. this.$message.error("当前缴费人数为0,无法开团");
  1615. return;
  1616. }
  1617. this.$confirm(`是否确认开团?`, "提示", {
  1618. confirmButtonText: "确定",
  1619. cancelButtonText: "取消",
  1620. type: "warning",
  1621. })
  1622. .then(() => {
  1623. musicGroupFound({
  1624. musicGroupId: this.$route.query.id,
  1625. }).then((res) => {
  1626. if (res.code == 200) {
  1627. // let query = this.$route.query;
  1628. // this.$message.success("开启成功");
  1629. // this.$router.push({
  1630. // path: "/teamList",
  1631. // query: {
  1632. // ...query,
  1633. // },
  1634. // });
  1635. this.onCancel();
  1636. }
  1637. });
  1638. })
  1639. .catch(() => {});
  1640. },
  1641. onClose() {
  1642. // 停止乐团
  1643. this.$confirm("您确定停止乐团吗?", "提示", {
  1644. confirmButtonText: "确定",
  1645. cancelButtonText: "取消",
  1646. type: "warning",
  1647. })
  1648. .then(() => {
  1649. cancelMusicGroup({
  1650. musicGroupId: this.$route.query.id,
  1651. }).then((res) => {
  1652. if (res.code == 200) {
  1653. this.$message.success("停止成功");
  1654. this.$store.dispatch("delVisitedViews", this.$route);
  1655. this.$router.push({
  1656. path: "/teamList",
  1657. });
  1658. }
  1659. });
  1660. })
  1661. .catch(() => {});
  1662. },
  1663. handleSelectionChange(val) {
  1664. this.multipleSelection = val;
  1665. },
  1666. // 修改专业
  1667. resetSubject(row) {
  1668. this.activeId = row.studentId;
  1669. this.maskForm.subject = row.actualSubjectId;
  1670. this.subjectVisible = true;
  1671. // resetStudentSubject().then(res=>{]})
  1672. },
  1673. // 确认修改
  1674. okReset() {
  1675. if (!this.maskForm.subject) {
  1676. this.$message.error("请选择调剂专业");
  1677. return;
  1678. }
  1679. resetStudentSubject({
  1680. musicGroupId: this.id,
  1681. userId: this.activeId,
  1682. subId: this.maskForm.subject,
  1683. }).then((res) => {
  1684. if (res.code == 200) {
  1685. this.$message.success("修改成功");
  1686. this.subjectVisible = false;
  1687. this.maskForm.subject = "";
  1688. getintoClass({ musicGroupId: this.id }).then((res) => {
  1689. if (res.code == 200) {
  1690. this.leftList = res.data;
  1691. }
  1692. });
  1693. this.getList();
  1694. }
  1695. });
  1696. },
  1697. onExtendPayment(formName, isPay) {
  1698. this.$refs[formName].validate((valid) => {
  1699. if (valid) {
  1700. if (!isPay) {
  1701. extensionApplyExpire({
  1702. musicGroupId: this.id,
  1703. expireDate: this.extendForm.expireDate,
  1704. }).then((res) => {
  1705. if (res.code == 200) {
  1706. this.$message.success("延长报名成功");
  1707. this.extendPaymentStatus = false;
  1708. getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
  1709. if (res.code == 200) {
  1710. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  1711. }
  1712. });
  1713. } else {
  1714. this.$message.error(res.msg);
  1715. }
  1716. });
  1717. } else {
  1718. extensionPayment({
  1719. musicGroupId: this.id,
  1720. expireDate: this.extendForm.expireDate,
  1721. }).then((res) => {
  1722. if (res.code == 200) {
  1723. this.$message.success("延长缴费成功");
  1724. this.extendPaymentStatus = false;
  1725. getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
  1726. if (res.code == 200) {
  1727. this.paymentExpireDate =
  1728. res.data.musicGroup.paymentExpireDate;
  1729. }
  1730. });
  1731. } else {
  1732. this.$message.error(res.msg);
  1733. }
  1734. });
  1735. }
  1736. }
  1737. });
  1738. },
  1739. async lookdetail(row) {
  1740. await getStudentFeeDetail({
  1741. musicGroupId: this.id,
  1742. studentId: row.studentId,
  1743. }).then((res) => {
  1744. if (res.code == 200) {
  1745. const paymentList = res.data || [];
  1746. paymentList.forEach((item) => {
  1747. if (item.type == "MAINTENANCE") {
  1748. item.name = "乐器保养";
  1749. } else if (
  1750. item.type == "CLOUD_TEACHER" ||
  1751. item.type == "CLOUD_TEACHER_PLUS"
  1752. ) {
  1753. item.name = "乐器练习云教练";
  1754. } else if (item.type == "COURSE") {
  1755. item.name = "课程";
  1756. }
  1757. if (courseType[item.type]) {
  1758. item.name = courseType[item.type];
  1759. }
  1760. });
  1761. this.orderForm = paymentList;
  1762. }
  1763. });
  1764. this.activeId = row.studentId;
  1765. this.orderVisible = true;
  1766. },
  1767. saveIsEdit() {
  1768. // 提交数据
  1769. this.isEdit = false;
  1770. resetPlanNum(this.leftList).then((res) => {});
  1771. },
  1772. async quitTeam(row) {
  1773. try {
  1774. const res = await getRefundsDetail({
  1775. musicGroupId: this.$route.query.id,
  1776. userId: row.studentId,
  1777. });
  1778. this.quitForm = {
  1779. ...this.quitForm,
  1780. ...res.data,
  1781. courseViewType: this.courseViewType,
  1782. studentName: row.studentName,
  1783. musicGroupName: this.teamName,
  1784. hasMaintenance: row.hasMaintenance,
  1785. };
  1786. this.activeRow = { ...row, ...res.data };
  1787. this.activeRow.courseViewType = this.courseViewType;
  1788. this.quitVisible = true;
  1789. // this.quitForm.cloudTeacherAmount = row.cloudTeacherAmount;
  1790. } catch (e) {
  1791. console.log(e);
  1792. }
  1793. // 查询退团费用
  1794. },
  1795. // quieTeams(row) {
  1796. // this.$prompt("请输入退团原因", "提示", {
  1797. // confirmButtonText: "确定",
  1798. // cancelButtonText: "取消",
  1799. // inputPattern: /\S/,
  1800. // inputErrorMessage: "请输入退团原因",
  1801. // type: "warning",
  1802. // })
  1803. // .then((val) => {
  1804. // // 发请求 退团
  1805. // StudentQuit({
  1806. // musicGroupId: this.id,
  1807. // userId: row.studentId,
  1808. // reason: val.value,
  1809. // isRefundCourseFee: false,
  1810. // isRefundInstrumentFee: false,
  1811. // isRefundTeachingAssistantsFee: false,
  1812. // isRefundMemberFee: false,
  1813. // }).then((res) => {
  1814. // this.quitForm = {
  1815. // // 退团信息确认
  1816. // isRefundCourseFee: null,
  1817. // isRefundInstrumentFee: null,
  1818. // isRefundTeachingAssistantsFee: null,
  1819. // isMaintenanceFee: null,
  1820. // cloudTeacherAmount: null,
  1821. // isCloudTeacherAmount: null,
  1822. // maintenanceFee: 0,
  1823. // reason: "",
  1824. // };
  1825. // if (res.code == 200) {
  1826. // this.$message.success("退团成功");
  1827. // this.getList();
  1828. // this.quitVisible = false;
  1829. // }
  1830. // });
  1831. // })
  1832. // .catch(() => {});
  1833. // },
  1834. chioseType() {
  1835. this.$refs["quitForm"].$refs["quitForm"].validate((res) => {
  1836. if (res) {
  1837. this.$confirm("确定退团?", "提示", {
  1838. confirmButtonText: "确定",
  1839. cancelButtonText: "取消",
  1840. type: "warning",
  1841. })
  1842. .then(() => {
  1843. let row = this.activeRow;
  1844. let params = {
  1845. ...this.quitForm,
  1846. musicGroupId: this.id,
  1847. userId: row.studentId,
  1848. reason: this.quitForm.reason,
  1849. isRefundCourseFee: this.quitForm.isRefundCourseFee,
  1850. isRefundInstrumentFee: this.quitForm.isRefundInstrumentFee,
  1851. isRefundTeachingAssistantsFee:
  1852. this.quitForm.isRefundTeachingAssistantsFee,
  1853. maintenanceFee: this.quitForm.maintenanceFee,
  1854. isRefundMemberFee: this.quitForm.isRefundMemberFee,
  1855. };
  1856. params.returnFeeDto = {
  1857. accessoriesFee: params.accessoriesFee,
  1858. courseFee: params.courseFee,
  1859. isReturnAccessoriesFee: params.isReturnAccessoriesFee,
  1860. isReturnCourseFee: params.isReturnCourseFee,
  1861. isReturnMaintenanceFee: params.isReturnMaintenanceFee,
  1862. isReturnMemberFee: params.isReturnMemberFee,
  1863. isReturnMusicalFee: params.isReturnMusicalFee,
  1864. maintenanceFee: params.maintenanceFee,
  1865. memberFee: params.memberFee,
  1866. musicalFee: params.musicalFee,
  1867. };
  1868. if (this.isManage) {
  1869. params.status = "APPROVED";
  1870. } else {
  1871. params.status = "PROCESSING";
  1872. }
  1873. // 发请求 退团
  1874. applyMusicGroupQuit(params).then((res) => {
  1875. if (res.code == 200) {
  1876. this.quitForm = {
  1877. // 退团信息确认
  1878. isRefundCourseFee: null,
  1879. isRefundInstrumentFee: null,
  1880. isRefundTeachingAssistantsFee: null,
  1881. reason: "",
  1882. courseViewType: null,
  1883. hasMaintenance: null,
  1884. studentName: null,
  1885. musicGroupName: null,
  1886. isVisit: false,
  1887. reason: "",
  1888. userComment: null,
  1889. };
  1890. if (this.isManage == "super") {
  1891. this.$message.success("退团成功");
  1892. } else {
  1893. this.$message.success("退团申请成功");
  1894. }
  1895. this.getList();
  1896. this.quitVisible = false;
  1897. }
  1898. });
  1899. })
  1900. .catch(() => {});
  1901. } else {
  1902. }
  1903. });
  1904. // row.typeVisible = false;
  1905. },
  1906. addVisit(row) {
  1907. // this.visitForm.studentName = row.studentName;
  1908. // this.visitForm.musicGroupId = this.teamid;
  1909. // this.visitForm.studentId = row.studentId;
  1910. row.userId = row.studentId;
  1911. this.detail = row;
  1912. this.detail.musicGroupId = this.$route.query.id;
  1913. this.visitVisiable = true;
  1914. },
  1915. openChangeVoice(row) {
  1916. this.getList().then((res) => {
  1917. for (const item of res.data.rows) {
  1918. if (item.id === row.id) {
  1919. this.rowDetail = { ...item, userId: item.studentId };
  1920. this.changeVoiceVisible = true;
  1921. }
  1922. }
  1923. });
  1924. },
  1925. closeChangeVoice() {
  1926. this.changeVoiceVisible = false;
  1927. // this.rowDetail = null
  1928. },
  1929. handleChange(val) {
  1930. this.visitForm.type = val[0];
  1931. this.visitForm.purpose = val[1];
  1932. },
  1933. submitAddVisit() {
  1934. this.$refs.visitForm.validate((res) => {
  1935. if (res) {
  1936. this.visitForm.visitType = null;
  1937. this.visitForm.musicGroupId = this.id;
  1938. addVisit(cleanDeep(this.visitForm)).then((res) => {
  1939. if (res.code === 200) {
  1940. this.$message.success("新增成功");
  1941. this.visitVisiable = false;
  1942. }
  1943. });
  1944. }
  1945. });
  1946. },
  1947. beginDate(date) {
  1948. let self = this;
  1949. return {
  1950. firstDayOfWeek: 1,
  1951. disabledDate(time) {
  1952. return time.getTime() >= date.getTime(); //开始时间不选时,结束时间最大值小于等于当天
  1953. },
  1954. };
  1955. },
  1956. extendTime(isPay) {
  1957. this.isPay = isPay;
  1958. if (isPay) {
  1959. // 点击的延长缴费
  1960. this.extendForm.expireDate = this.paymentExpireDate;
  1961. } else {
  1962. // 点击的延长报名
  1963. this.extendForm.expireDate = this.applyExpireDate;
  1964. }
  1965. this.extendPaymentStatus = true;
  1966. },
  1967. payDate() {
  1968. let self = this;
  1969. return {
  1970. firstDayOfWeek: 1,
  1971. disabledDate(time) {
  1972. return time.getTime() + 86400000 < new Date().getTime();
  1973. },
  1974. };
  1975. },
  1976. applyDate() {
  1977. let self = this;
  1978. return {
  1979. firstDayOfWeek: 1,
  1980. disabledDate(time) {
  1981. return time.getTime() + 86400000 < new Date().getTime();
  1982. },
  1983. };
  1984. },
  1985. checkboxSelect(row) {
  1986. return row.paymentStatus == 0;
  1987. },
  1988. relieve(row) {
  1989. this.$confirm("操作后该学员即可不购买云教练缴费入团", "提示", {
  1990. confirmButtonText: "确定",
  1991. cancelButtonText: "取消",
  1992. type: "warning",
  1993. }).then(async () => {
  1994. try {
  1995. const res = await setNoneCloudTeacher({ id: row.id });
  1996. console.log("code", res.code);
  1997. if (res.code == 200) {
  1998. this.$message.success("解除预约成功");
  1999. this.getList();
  2000. } else if (res.code == 100) {
  2001. this.$confirm(res.msg, "提示", {
  2002. confirmButtonText: "确定",
  2003. cancelButtonText: "取消",
  2004. type: "warning",
  2005. }).then(async (some) => {
  2006. const res = await setNoneCloudTeacher({
  2007. id: row.id,
  2008. isContinue: true,
  2009. });
  2010. if (res.code == 200) {
  2011. this.$message.success("解除预约成功");
  2012. this.getList();
  2013. }
  2014. });
  2015. }
  2016. } catch (e) {
  2017. console.log("错误", e);
  2018. }
  2019. });
  2020. },
  2021. failedRelieve(row) {
  2022. this.$confirm("拒绝后学员需购买会员方可入团", "提示", {
  2023. confirmButtonText: "确定",
  2024. cancelButtonText: "取消",
  2025. type: "warning",
  2026. }).then(async () => {
  2027. try {
  2028. const res = await setCloudTeacherToFailed({ id: row.id });
  2029. this.$message.success("操作成功");
  2030. this.getList();
  2031. } catch (e) {
  2032. console.log(e);
  2033. }
  2034. });
  2035. },
  2036. getCheckNum(row, type) {
  2037. this.rules.page = 1;
  2038. this.rules.limit = 10;
  2039. this.searchFrom = {
  2040. name: null,
  2041. subject: null, // 专业
  2042. isAllowAdjust: null, // 是否允许调剂
  2043. currentGrade: null,
  2044. paymentStatus: null,
  2045. visited: null,
  2046. hasCloudTeacher: null,
  2047. payingStatus: null,
  2048. studentStatus: null,
  2049. noneNeedCloudTeacher: null,
  2050. };
  2051. this.searchFrom.subject = row.subjectId;
  2052. if (type == "buyCloud") {
  2053. this.searchFrom.hasCloudTeacher = 1;
  2054. } else if (type == "noCloud") {
  2055. this.searchFrom.hasCloudTeacher = 0;
  2056. this.searchFrom.studentStatus = "NORMAL";
  2057. } else {
  2058. this.searchFrom.payingStatus = 2;
  2059. this.searchFrom.hasCloudTeacher = 0;
  2060. }
  2061. this.search();
  2062. },
  2063. getpayingNum(row) {
  2064. this.rules.page = 1;
  2065. this.rules.limit = 10;
  2066. this.searchFrom = {
  2067. name: null,
  2068. subject: null, // 专业
  2069. isAllowAdjust: null, // 是否允许调剂
  2070. currentGrade: null,
  2071. paymentStatus: null,
  2072. visited: null,
  2073. hasCloudTeacher: null,
  2074. payingStatus: null,
  2075. studentStatus: null,
  2076. noneNeedCloudTeacher: null,
  2077. };
  2078. this.searchFrom.subject = row.subjectId;
  2079. this.searchFrom.payingStatus = 1;
  2080. this.search();
  2081. },
  2082. getpayNum(row) {
  2083. this.rules.page = 1;
  2084. this.rules.limit = 10;
  2085. this.searchFrom = {
  2086. name: null,
  2087. subject: null, // 专业
  2088. isAllowAdjust: null, // 是否允许调剂
  2089. currentGrade: null,
  2090. paymentStatus: null,
  2091. visited: null,
  2092. hasCloudTeacher: null,
  2093. payingStatus: null,
  2094. studentStatus: null,
  2095. noneNeedCloudTeacher: null,
  2096. };
  2097. this.searchFrom.subject = row.subjectId;
  2098. this.searchFrom.paymentStatus = 2 + "";
  2099. this.search();
  2100. },
  2101. onCloseMeet() {
  2102. this.meetingForm = {
  2103. meetingDate: null,
  2104. address: null,
  2105. };
  2106. },
  2107. onMeetingPayment(formName) {
  2108. console.log(this.$refs.meetingForm.$refs[formName])
  2109. this.$refs.meetingForm.$refs[formName].validate(async (valid) => {
  2110. if (valid) {
  2111. try {
  2112. await this.$confirm("您是否确定发送家长会通知?", "提示", {
  2113. confirmButtonText: "确定",
  2114. cancelButtonText: "取消",
  2115. type: "warning",
  2116. });
  2117. await sendParentMeetingNotice({
  2118. ...this.meetingForm,
  2119. musicGroupId: this.id,
  2120. });
  2121. this.$message.success("家长会通知已发送");
  2122. this.meetingStatus = false;
  2123. } catch (error) {}
  2124. }
  2125. });
  2126. },
  2127. },
  2128. watch: {
  2129. "quitForm.isMaintenanceFee"(val) {
  2130. if (val) {
  2131. this.quitForm.maintenanceFee = 300;
  2132. } else {
  2133. this.quitForm.maintenanceFee = 0;
  2134. }
  2135. },
  2136. orderVisible(val) {
  2137. if (!val) {
  2138. this.orderForm = [];
  2139. }
  2140. },
  2141. qrcodeStatus(val) {
  2142. if (!val) {
  2143. this.qrcode.clear();
  2144. }
  2145. },
  2146. qrcodeStatus2(val) {
  2147. if (!val) {
  2148. this.qrcode2.clear();
  2149. }
  2150. },
  2151. paymentStatus(val) {
  2152. if (!val) {
  2153. this.paymentForm = {
  2154. paymentExpireDate: null,
  2155. // feeType: null
  2156. };
  2157. }
  2158. },
  2159. quitVisible(val) {
  2160. if (!val) {
  2161. this.quitForm = {
  2162. // 退团信息确认
  2163. isRefundCourseFee: null,
  2164. isRefundInstrumentFee: null,
  2165. isRefundTeachingAssistantsFee: null,
  2166. courseViewType: null,
  2167. hasMaintenance: null,
  2168. studentName: null,
  2169. musicGroupName: null,
  2170. isVisit: false,
  2171. reason: "",
  2172. userComment: null,
  2173. };
  2174. this.$refs["quitForm"].$refs["quitForm"].resetFields();
  2175. }
  2176. },
  2177. // visitVisiable(val) {
  2178. // if (!val) {
  2179. // this.$refs["visitForm"].resetFields();
  2180. // }
  2181. // },
  2182. },
  2183. computed: {
  2184. sysMsgStr() {
  2185. let strArr = this.sysMsg.split("{}");
  2186. if (strArr.length == 3) {
  2187. return `${strArr[0]}<span style="color:red">"${
  2188. this.meetingForm.meetingDate ? this.meetingForm.meetingDate : "--"
  2189. }"</span>${strArr[1]}<span style="color:red">"${
  2190. this.meetingForm.address ? this.meetingForm.address : "--"
  2191. }"</span>
  2192. ${strArr[2]}`;
  2193. } else {
  2194. return ``;
  2195. }
  2196. },
  2197. },
  2198. };
  2199. </script>
  2200. <style lang="scss" scoped>
  2201. .courseYellow {
  2202. color: #ff802c;
  2203. }
  2204. .hiddenwrap {
  2205. display: flex;
  2206. flex-direction: row;
  2207. align-items: center;
  2208. p {
  2209. font-size: 14px;
  2210. color: #606266;
  2211. line-height: 40px;
  2212. padding: 0 12px 0 0;
  2213. box-sizing: border-box;
  2214. font-weight: 700;
  2215. }
  2216. }
  2217. .auth {
  2218. display: inline-block;
  2219. & + .auth {
  2220. margin-left: 0px;
  2221. }
  2222. }
  2223. .dialog-footer.question {
  2224. display: flex;
  2225. flex-direction: row;
  2226. justify-content: space-between;
  2227. }
  2228. .sigup-container {
  2229. margin-left: 12px;
  2230. .topWrap {
  2231. padding: 18px 58px 18px 0;
  2232. // height: 136px;
  2233. background-color: #fff;
  2234. // display: flex;
  2235. // flex-direction: row;
  2236. // justify-content: space-between;
  2237. .msg.pay {
  2238. color: #f85043;
  2239. }
  2240. .msg {
  2241. text-align: right;
  2242. color: #f97215;
  2243. font-size: 32px;
  2244. font-weight: bold;
  2245. padding-top: 30px;
  2246. box-sizing: border-box;
  2247. img {
  2248. width: 36px;
  2249. height: 36px;
  2250. position: relative;
  2251. top: 5px;
  2252. margin-right: 8px;
  2253. }
  2254. }
  2255. h2 {
  2256. height: 48px;
  2257. line-height: 48px;
  2258. position: relative;
  2259. // padding-left: 30px;
  2260. font-size: 32px;
  2261. font-weight: 600;
  2262. margin-bottom: 10px;
  2263. display: flex;
  2264. flex-direction: row;
  2265. justify-content: flex-start;
  2266. align-items: center;
  2267. .term {
  2268. height: 32px;
  2269. line-height: 32px;
  2270. border-radius: 24px;
  2271. width: 100px;
  2272. color: #14928a;
  2273. border: 1px solid rgba(20, 146, 138, 1);
  2274. font-size: 14px;
  2275. text-align: center;
  2276. margin-right: 12px;
  2277. &:nth-child(1) {
  2278. margin-left: 47px;
  2279. }
  2280. }
  2281. .term.active {
  2282. color: #fff;
  2283. background-color: #14928a;
  2284. }
  2285. .squrt {
  2286. position: absolute;
  2287. left: -25px;
  2288. top: 8px;
  2289. height: 34px;
  2290. width: 8px;
  2291. background-color: #14928a;
  2292. }
  2293. }
  2294. .btnList {
  2295. display: flex;
  2296. flex-direction: row;
  2297. justify-content: flex-start;
  2298. align-items: center;
  2299. flex-wrap: wrap;
  2300. & > div {
  2301. margin-right: 15px;
  2302. margin-top: 10px;
  2303. }
  2304. }
  2305. .newBand.close {
  2306. background-color: #777;
  2307. border: 1px solid #777;
  2308. }
  2309. }
  2310. .searchList {
  2311. background-color: #fff;
  2312. padding: 0 58p 0 0px;
  2313. }
  2314. .sigup-core {
  2315. margin-top: 12px;
  2316. display: flex;
  2317. flex-direction: row;
  2318. justify-content: flex-start;
  2319. .left {
  2320. width: 400px;
  2321. background-color: #fff;
  2322. height: 80vh;
  2323. overflow: auto;
  2324. }
  2325. .right {
  2326. width: calc(100% - 400px);
  2327. margin-left: 12px;
  2328. flex-grow: 1;
  2329. }
  2330. }
  2331. }
  2332. .el-dialog__body {
  2333. overflow: hidden;
  2334. }
  2335. .left-code,
  2336. .right-code {
  2337. // width: 50%;
  2338. // float: left;
  2339. h2 {
  2340. font-size: 18px;
  2341. text-align: center;
  2342. padding-bottom: 8px;
  2343. }
  2344. .qrcode {
  2345. display: flex;
  2346. flex-direction: column;
  2347. align-items: center;
  2348. img {
  2349. width: 200px;
  2350. height: 200px;
  2351. margin: 0 auto;
  2352. }
  2353. }
  2354. .code-url {
  2355. font-size: 18px;
  2356. text-align: center;
  2357. padding: 15px 15px 0 15px;
  2358. }
  2359. }
  2360. .newBand {
  2361. margin-bottom: 0;
  2362. max-width: inherit;
  2363. }
  2364. /deep/.el-button--danger {
  2365. background: #f85043;
  2366. }
  2367. .paymentForm {
  2368. /deep/.el-input__inner,
  2369. /deep/.el-input.el-input--suffix {
  2370. width: 360px !important;
  2371. }
  2372. }
  2373. .popoverWrap {
  2374. p {
  2375. line-height: 25px;
  2376. }
  2377. }
  2378. /deep/.description-title {
  2379. margin-bottom: 0;
  2380. }
  2381. /deep/.description-label {
  2382. white-space: normal !important;
  2383. }
  2384. .left {
  2385. text-align: left;
  2386. }
  2387. </style>