signupList.vue 81 KB

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