signupList.vue 72 KB

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