signupList.vue 55 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820
  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/extensionPayment'"
  46. @click="extendTime(true)"
  47. v-show="
  48. status == 'PAY' || status == 'PROGRESS' || status == 'PREPARE'
  49. "
  50. >
  51. 延长缴费
  52. </div>
  53. <div
  54. class="newBand"
  55. v-permission="'musicGroup/extensionApplyExpireDate'"
  56. @click="extendTime(false)"
  57. v-show="
  58. status == 'PAY' ||
  59. status == 'APPLY' ||
  60. status == 'PROGRESS' ||
  61. status == 'PREPARE'
  62. "
  63. >
  64. 延长报名
  65. </div>
  66. <div
  67. class="newBand"
  68. @click="onCreateQRCode('payment')"
  69. v-show="
  70. (status == 'PAY' ||
  71. status == 'APPLY' ||
  72. status == 'PROGRESS' ||
  73. status == 'PREPARE') &&
  74. ischeckCanReg
  75. "
  76. >
  77. 报名链接
  78. </div>
  79. <div class="newBand" @click="onCreateQRCode('detail')">缴费详情</div>
  80. <div
  81. class="newBand"
  82. v-show="rightList.length > 0"
  83. v-permission="'studentRegistration/queryStudentApplyDetailExport'"
  84. @click="onDownLoadExecl"
  85. >
  86. 报表导出
  87. </div>
  88. <auth :auths="'studentRegistration/queryPreApplyList/4263'">
  89. <div
  90. class="newBand"
  91. style="margin-right: 0"
  92. @click="forecastVisible = true"
  93. >
  94. 预报名名单
  95. </div>
  96. </auth>
  97. <!-- v-permission="getFullPermission('musicGroup/addMusicGroupRegs')" -->
  98. <div
  99. class="newBand"
  100. v-permission="'musicGroup/addMusicGroupRegs'"
  101. @click="mergeVisible = true"
  102. v-show="
  103. (status == 'PAY' ||
  104. status == 'APPLY' ||
  105. status == 'PROGRESS' ||
  106. status == 'PREPARE') &&
  107. ischeckCanReg
  108. "
  109. >
  110. 合并学员
  111. </div>
  112. <div
  113. class="newBand"
  114. style="background-color: #f97215; border: 1px solid #f97215"
  115. @click="onCreateQRCode('rePayment')"
  116. v-show="
  117. (status == 'PAY' ||
  118. status == 'APPLY' ||
  119. status == 'PROGRESS' ||
  120. status == 'PREPARE') &&
  121. ischeckCanReg
  122. "
  123. >
  124. 报名链接(无乐器)
  125. </div>
  126. </div>
  127. </div>
  128. <el-dialog
  129. title="选择合并乐团"
  130. :visible.sync="mergeVisible"
  131. width="950px"
  132. >
  133. <mergeMusic
  134. v-if="mergeVisible"
  135. style="padding: 0 20px"
  136. :organId="organId"
  137. @close="mergeVisible = false"
  138. @submited="getList"
  139. />
  140. </el-dialog>
  141. <el-dialog
  142. title="预报名名单"
  143. :visible.sync="forecastVisible"
  144. width="950px"
  145. >
  146. <forecastList v-if="forecastVisible" @close="forecastVisible = false" />
  147. </el-dialog>
  148. <!-- stepImgs: {
  149. APPLY: require('@/assets/images/base/clock.png'),
  150. PAY: require('@/assets/images/base/pay.png')
  151. }, -->
  152. </div>
  153. <div class="searchList">
  154. <save-form
  155. :inline="true"
  156. :model="searchFrom"
  157. @submit="search"
  158. @reset="onReset"
  159. >
  160. <el-form-item>
  161. <el-select
  162. v-model.trim="searchFrom.subject"
  163. filterable
  164. clearable
  165. placeholder="请选择专业"
  166. >
  167. <el-option
  168. v-for="(item, index) in soundList"
  169. :key="index"
  170. :label="item.name"
  171. :value="item.id"
  172. ></el-option>
  173. </el-select>
  174. </el-form-item>
  175. <el-form-item>
  176. <el-select
  177. v-model.trim="searchFrom.isAllowAdjust"
  178. filterable
  179. placeholder="请选择是否允许调剂"
  180. clearable
  181. >
  182. <el-option label="是" value="1"></el-option>
  183. <el-option label="否" value="0"></el-option>
  184. </el-select>
  185. </el-form-item>
  186. <el-form-item>
  187. <el-input
  188. v-model.trim="searchFrom.name"
  189. placeholder="请输入用户名或手机号"
  190. clearable
  191. ></el-input>
  192. </el-form-item>
  193. <el-form-item>
  194. <!-- <el-input v-model.trim="searchFrom.currentGrade" placeholder="请输入年级" clearable></el-input> -->
  195. <el-select
  196. v-model.trim="searchFrom.currentGrade"
  197. filterable
  198. clearable
  199. placeholder="请输入年级"
  200. >
  201. <el-option
  202. v-for="(item, index) in gradeList"
  203. :key="index"
  204. :label="item.label"
  205. :value="item.label"
  206. ></el-option>
  207. </el-select>
  208. </el-form-item>
  209. <el-form-item>
  210. <el-select
  211. v-model.trim="searchFrom.paymentStatus"
  212. clearable
  213. filterable
  214. placeholder="报名缴费"
  215. >
  216. <el-option label="未开启缴费" value="0"></el-option>
  217. <el-option label="开启缴费" value="1"></el-option>
  218. <el-option label="已缴费" value="2"></el-option>
  219. </el-select>
  220. </el-form-item>
  221. <el-form-item>
  222. <el-select
  223. v-model.trim="searchFrom.visited"
  224. clearable
  225. filterable
  226. placeholder="是否回访"
  227. >
  228. <el-option label="否" value="false"></el-option>
  229. <el-option label="是" value="true"></el-option>
  230. </el-select>
  231. </el-form-item>
  232. <!-- 专业actualSubjectId 调剂isAllowAdjust 手机号name -->
  233. <el-form-item>
  234. <el-button type="danger" native-type="search">搜索</el-button>
  235. <el-button type="primary" native-type="reset">重置</el-button>
  236. </el-form-item>
  237. </save-form>
  238. </div>
  239. <div class="sigup-core">
  240. <div class="left">
  241. <el-table
  242. style="width: 100% !important"
  243. :data="leftList"
  244. :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
  245. >
  246. <el-table-column label="乐团声部" prop="subjectName" align="center">
  247. </el-table-column>
  248. <el-table-column
  249. label="计划招生"
  250. prop="expectedStudentNum"
  251. align="center"
  252. >
  253. <template slot-scope="scope">
  254. <div>
  255. <p v-show="!isEdit">{{ scope.row.expectedStudentNum }}</p>
  256. <el-input
  257. v-show="isEdit"
  258. v-model.trim="scope.row.expectedStudentNum"
  259. ></el-input>
  260. </div>
  261. </template>
  262. </el-table-column>
  263. <el-table-column label="已报名" prop="applyStudentNum" align="center">
  264. </el-table-column>
  265. <el-table-column label="已缴费" prop="payNum" align="center">
  266. </el-table-column>
  267. </el-table>
  268. <div
  269. class="btnWrap"
  270. v-permission="'musicGroup/updateExpectedStudentNum'"
  271. style="margin-right: 20px; margin-top: 20px"
  272. >
  273. <el-button
  274. v-show="
  275. !isEdit &&
  276. (status == 'PAY' ||
  277. status == 'APPLY' ||
  278. status == 'PROGRESS' ||
  279. status == 'PREPARE')
  280. "
  281. @click="isEdit = true"
  282. >编辑</el-button
  283. >
  284. <el-button v-show="isEdit" @click="saveIsEdit">保存</el-button>
  285. </div>
  286. </div>
  287. <div class="right">
  288. <el-table
  289. :data="rightList"
  290. ref="multipleTable"
  291. :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
  292. @selection-change="handleSelectionChange"
  293. >
  294. <el-table-column
  295. type="selection"
  296. width="55"
  297. :selectable="checkboxSelect"
  298. >
  299. </el-table-column>
  300. <el-table-column label="学员姓名" prop="studentName" align="center">
  301. </el-table-column>
  302. <el-table-column label="家长姓名" prop="parentsName" align="center">
  303. </el-table-column>
  304. <el-table-column align="center" label="入团年份">
  305. <template slot-scope="scope">
  306. <div>
  307. {{ scope.row.createTime | dayjsFormat("YYYY年") }}
  308. </div>
  309. </template>
  310. </el-table-column>
  311. <el-table-column label="年级班级" align="center">
  312. <template slot-scope="scope">
  313. <div>
  314. {{ scope.row.currentGrade + scope.row.currentClass }}
  315. </div>
  316. </template>
  317. </el-table-column>
  318. <el-table-column label="性别" prop="gender" align="center">
  319. <template slot-scope="scope">
  320. <div>
  321. {{ scope.row.gender | sex }}
  322. </div>
  323. </template>
  324. </el-table-column>
  325. <el-table-column label="服从调剂" prop="isAllowAdjust" align="center">
  326. <template slot-scope="scope">
  327. <div>
  328. {{ scope.row.isAllowAdjust | isAllowAdjust }}
  329. </div>
  330. </template>
  331. </el-table-column>
  332. <el-table-column label="报名专业" prop="subjectName" align="center">
  333. </el-table-column>
  334. <el-table-column
  335. label="调剂专业"
  336. prop="actualSubjectName"
  337. align="center"
  338. >
  339. </el-table-column>
  340. <el-table-column label="联系电话" prop="parentsPhone" align="center">
  341. </el-table-column>
  342. <el-table-column label="是否回访" prop="paymentStatus" align="center">
  343. <template slot-scope="scope">
  344. <div>
  345. {{ scope.row.visitNum ? "是" : "否" }}
  346. </div>
  347. </template>
  348. </el-table-column>
  349. <!-- visited -->
  350. <!-- v-show='status == "PAY"' -->
  351. <el-table-column
  352. label="报名缴费状态"
  353. fixed="right"
  354. prop="paymentStatus"
  355. align="center"
  356. >
  357. <template slot-scope="scope">
  358. <div>
  359. {{ scope.row.paymentStatus | paymentStatus }}
  360. </div>
  361. </template>
  362. </el-table-column>
  363. <el-table-column
  364. label="操作"
  365. fixed="right"
  366. width="240"
  367. align="center"
  368. v-if="
  369. status == 'PAY' ||
  370. status == 'APPLY' ||
  371. status == 'PROGRESS' ||
  372. status == 'PREPARE'
  373. "
  374. >
  375. <!-- v-show="
  376. status == 'PAY' || status == 'PROGRESS' || status == 'PREPARE' || status=='APPLY'
  377. " -->
  378. <template slot-scope="scope">
  379. <div>
  380. <auth :auths="'studentRegistration/batchUpdateSubject'">
  381. <el-button
  382. type="text"
  383. v-show="scope.row.paymentStatus != 2"
  384. @click="resetSubject(scope.row)"
  385. >修改专业</el-button
  386. >
  387. </auth>
  388. <!-- APPLY status == "APPLY" || s-->
  389. <el-popover
  390. v-show="scope.row.remark"
  391. placement="top-start"
  392. title="备注"
  393. width="200"
  394. trigger="hover"
  395. :content="scope.row.remark"
  396. >
  397. <el-button type="text" slot="reference">备注</el-button>
  398. </el-popover>
  399. <!-- PAY -->
  400. <!-- && status == "PAY"-->
  401. <auth
  402. :auths="'studentRegistration/queryFeeDetail'"
  403. v-show="scope.row.paymentStatus == 2"
  404. >
  405. <el-button type="text" @click="lookdetail(scope.row)"
  406. >查看</el-button
  407. >
  408. </auth>
  409. <auth
  410. :auths="'musicGroupQuit/directQuitMusicGroup2'"
  411. v-show="scope.row.paymentStatus == 2"
  412. >
  413. <el-button type="text" @click="quitTeam(scope.row)"
  414. >退团退费</el-button
  415. >
  416. </auth>
  417. <auth
  418. :auths="'musicGroupQuit/directQuitMusicGroup3'"
  419. v-show="scope.row.paymentStatus == 2"
  420. >
  421. <el-button type="text" @click="quieTeams(scope.row)"
  422. >退团</el-button
  423. >
  424. </auth>
  425. <auth
  426. :auths="'visit/add/teamSignupList'"
  427. v-if="scope.row.visitNum <= 0"
  428. >
  429. <el-button type="text" @click="addVisit(scope.row)"
  430. >新增回访</el-button
  431. >
  432. </auth>
  433. <auth
  434. :auths="'subjectChange/getStudentOriginal'"
  435. v-show="scope.row.paymentStatus == 2"
  436. >
  437. <el-button type="text" @click="openChangeVoice(scope.row)"
  438. >更改声部</el-button
  439. >
  440. </auth>
  441. </div>
  442. </template>
  443. </el-table-column>
  444. </el-table>
  445. <div
  446. style="margin-top: 10px; margin-bottom: 10px"
  447. v-show="
  448. status == 'APPLY' || status == 'PROGRESS' || status == 'PREPARE'
  449. "
  450. >
  451. <el-button @click="onSelectAll">全选/取消</el-button>
  452. <auth :auths="'studentRegistration/openPayment'">
  453. <el-button
  454. style="background-color: #14928a; border: 1px solid #14928a"
  455. @click="onPartPayment"
  456. type="primary"
  457. >开启缴费</el-button
  458. >
  459. </auth>
  460. <!-- <div class='newBand' v-show="status=='APPLY'">允许缴费</div> -->
  461. </div>
  462. <pagination
  463. sync
  464. :total.sync="rules.total"
  465. :page.sync="rules.page"
  466. :limit.sync="rules.limit"
  467. :page-sizes="rules.page_size"
  468. @pagination="getList"
  469. />
  470. </div>
  471. </div>
  472. <el-dialog title="修改专业" :visible.sync="subjectVisible" width="400px">
  473. <el-form :model="maskForm">
  474. <el-form-item label="选择专业">
  475. <el-select v-model.trim="maskForm.subject" filterable clearable>
  476. <el-option
  477. v-for="(item, index) in soundList"
  478. :key="index"
  479. :label="item.name"
  480. :value="item.id"
  481. ></el-option>
  482. </el-select>
  483. </el-form-item>
  484. </el-form>
  485. <div slot="footer" class="dialog-footer">
  486. <el-button @click="subjectVisible = false">取 消</el-button>
  487. <el-button type="primary" @click="okReset">确 定</el-button>
  488. </div>
  489. </el-dialog>
  490. <el-dialog
  491. :title="!isPay ? '延长报名' : '延长缴费'"
  492. :visible.sync="extendPaymentStatus"
  493. destroy-on-close
  494. width="400px"
  495. >
  496. <el-form :model="extendForm" ref="extendForm" :rules="extendRule">
  497. <el-form-item v-if="isPay" label="延长缴费时间" prop="expireDate">
  498. <el-date-picker
  499. v-model.trim="extendForm.expireDate"
  500. value-format="yyyy-MM-dd"
  501. type="date"
  502. :picker-options="payDate()"
  503. placeholder="选择日期"
  504. >
  505. </el-date-picker>
  506. </el-form-item>
  507. <el-form-item label="延长报名时间" v-else prop="expireDate">
  508. <el-date-picker
  509. v-model.trim="extendForm.expireDate"
  510. value-format="yyyy-MM-dd"
  511. type="date"
  512. :picker-options="applyDates"
  513. placeholder="选择日期"
  514. >
  515. </el-date-picker>
  516. </el-form-item>
  517. </el-form>
  518. <div slot="footer" class="dialog-footer">
  519. <el-button @click="extendPaymentStatus = false">取 消</el-button>
  520. <el-button
  521. type="primary"
  522. v-if="isPay"
  523. @click="onExtendPayment('extendForm', isPay)"
  524. >确 定</el-button
  525. >
  526. <el-button
  527. v-else
  528. type="primary"
  529. @click="onExtendPayment('extendForm', isPay)"
  530. >确 定</el-button
  531. >
  532. </div>
  533. </el-dialog>
  534. <el-dialog title="订单详情" :visible.sync="orderVisible" width="600px">
  535. <el-form :model="orderForm" :inline="true">
  536. <!-- name: '',
  537. totalAmount: '',
  538. subject: '',
  539. subjectFee: '',
  540. axe: '',
  541. axePrice: '',
  542. others: '',
  543. othersPrice: '' -->
  544. <el-form-item label="学员姓名">
  545. <el-input v-model.trim="orderForm.name" disabled=""></el-input>
  546. </el-form-item>
  547. <el-form-item label="实缴金额">
  548. <el-input v-model.trim="orderForm.totalAmount" disabled=""></el-input>
  549. </el-form-item>
  550. <el-form-item label="实际专业">
  551. <el-input v-model.trim="orderForm.subject" disabled=""></el-input>
  552. </el-form-item>
  553. <el-form-item label="课程费用">
  554. <el-input v-model.trim="orderForm.subjectFee" disabled=""></el-input>
  555. </el-form-item>
  556. <el-form-item label="选择乐器">
  557. <el-input v-model.trim="orderForm.axe" disabled=""></el-input>
  558. </el-form-item>
  559. <el-form-item label="乐器价格">
  560. <el-input v-model.trim="orderForm.axePrice" disabled=""></el-input>
  561. </el-form-item>
  562. <el-form-item label="教辅组合">
  563. <el-input v-model.trim="orderForm.others" disabled=""></el-input>
  564. </el-form-item>
  565. <el-form-item label="组合价格">
  566. <el-input v-model.trim="orderForm.othersPrice" disabled=""></el-input>
  567. </el-form-item>
  568. </el-form>
  569. <div slot="footer" class="dialog-footer">
  570. <!-- <el-button>取 消</el-button> -->
  571. <el-button type="primary" @click="orderVisible = false"
  572. >确 定</el-button
  573. >
  574. </div>
  575. </el-dialog>
  576. <el-dialog
  577. title="开始缴费"
  578. :visible.sync="paymentStatus"
  579. width="400px"
  580. destroy-on-close
  581. >
  582. <el-form
  583. ref="paymentForm"
  584. class="paymentForm"
  585. :model="paymentForm"
  586. label-position="top"
  587. :rules="paymentRules"
  588. >
  589. <el-form-item label="请设置缴费截止日期" prop="paymentExpireDate">
  590. <el-date-picker
  591. v-model.trim="paymentForm.paymentExpireDate"
  592. type="date"
  593. value-format="yyyy-MM-dd"
  594. :picker-options="payDate()"
  595. style="width: 100%"
  596. placeholder="选择日期"
  597. >
  598. </el-date-picker>
  599. </el-form-item>
  600. <!-- <el-form-item label="是否排乐团网管课"
  601. :rules="[{ required: true, message: '请选择是否排乐团网管课'}]"
  602. prop="feeType">
  603. <el-select v-model="paymentForm.feeType"
  604. style="width: 100%!imoprtant">
  605. <el-option label="需要排线上课"
  606. value="ONLINE"></el-option>
  607. <el-option label="只排线下课"
  608. value="OFFLINE"></el-option>
  609. </el-select>
  610. </el-form-item> -->
  611. </el-form>
  612. <div slot="footer" class="dialog-footer">
  613. <el-button @click="paymentStatus = false">取 消</el-button>
  614. <el-button type="primary" @click="onStartPayment('paymentForm')"
  615. >确 定</el-button
  616. >
  617. </div>
  618. </el-dialog>
  619. <!-- <el-dialog title="报名二维码" :visible.sync="qrcodeStatus" width="300px">
  620. <div class="left-code">
  621. <h2>学员报名链接</h2>
  622. <div id="qrcode" class="qrcode code" ref="qrCodeUrl"></div>
  623. <p class="code-url" v-show="codeUrl">{{ codeUrl }}</p>
  624. </div>
  625. </el-dialog>
  626. <el-dialog
  627. title="缴费详情二维码"
  628. :visible.sync="qrcodeStatus2"
  629. width="300px"
  630. >
  631. <div class="right-code">
  632. <h2>报名缴费详情</h2>
  633. <div id="qrcode2" class="qrcode code" ref="qrCodeUrl"></div>
  634. <p class="code-url" v-show="codeUrl2">{{ codeUrl2 }}</p>
  635. </div>
  636. </el-dialog> -->
  637. <!-- 预报名链接 -->
  638. <qr-code v-model="codeStatus" :title="codeTitle" :codeUrl="qrCodeUrl" />
  639. <!-- 退团弹窗 -->
  640. <el-dialog
  641. title="退团信息确认"
  642. :destroy-on-close="true"
  643. width="640px"
  644. :visible.sync="quitVisible"
  645. >
  646. <el-form :model="quitForm" ref="quitForm" :rules="quitRules">
  647. <el-form-item label="退还课程费用" prop="isRefundCourseFee">
  648. <el-radio v-model.trim="quitForm.isRefundCourseFee" :label="true"
  649. >是</el-radio
  650. >
  651. <el-radio v-model.trim="quitForm.isRefundCourseFee" :label="false"
  652. >否</el-radio
  653. >
  654. </el-form-item>
  655. <el-form-item label="退还乐器费用" prop="isRefundInstrumentFee">
  656. <el-radio v-model.trim="quitForm.isRefundInstrumentFee" :label="true"
  657. >是</el-radio
  658. >
  659. <el-radio v-model.trim="quitForm.isRefundInstrumentFee" :label="false"
  660. >否</el-radio
  661. >
  662. </el-form-item>
  663. <el-form-item label="退还教辅费用" prop="isRefundTeachingAssistantsFee">
  664. <el-radio
  665. v-model.trim="quitForm.isRefundTeachingAssistantsFee"
  666. :label="true"
  667. >是</el-radio
  668. >
  669. <el-radio
  670. v-model.trim="quitForm.isRefundTeachingAssistantsFee"
  671. :label="false"
  672. >否</el-radio
  673. >
  674. </el-form-item>
  675. <el-form-item
  676. label="退还乐保费用"
  677. prop="isMaintenanceFee"
  678. v-if="activeRow.hasMaintenance"
  679. >
  680. <el-radio v-model.trim="quitForm.isMaintenanceFee" :label="true"
  681. >是</el-radio
  682. >
  683. <el-radio v-model.trim="quitForm.isMaintenanceFee" :label="false"
  684. >否</el-radio
  685. >
  686. </el-form-item>
  687. <el-form-item
  688. label="退还乐保金额"
  689. prop="maintenanceFee"
  690. v-if="quitForm.isMaintenanceFee"
  691. >
  692. <el-input
  693. type="number"
  694. v-model.trim="quitForm.maintenanceFee"
  695. style="width: 180px"
  696. >
  697. <template slot="append">元</template>
  698. </el-input>
  699. </el-form-item>
  700. <el-form-item label="退团原因" prop="reason">
  701. <el-input type="textarea" v-model.trim="quitForm.reason"> </el-input>
  702. </el-form-item>
  703. </el-form>
  704. <span slot="footer" class="dialog-footer question">
  705. <div>
  706. <el-popover placement="right" width="500" trigger="click">
  707. <div class="popoverWrap">
  708. <p>乐团退团退费规则:</p>
  709. <p>退还课程费用:缴费总额-已结束课时单价之和</p>
  710. <p>退还乐器费用:报名缴费时缴纳的乐器费用(团购、租金)</p>
  711. <p>退还教辅费用:报名缴费时缴费的教辅费用</p>
  712. </div>
  713. <el-button
  714. type="text"
  715. icon="el-icon-question"
  716. slot="reference"
  717. style="color: red"
  718. >退团退费说明</el-button
  719. >
  720. </el-popover>
  721. </div>
  722. <div>
  723. <el-button @click="quitVisible = false">取 消</el-button>
  724. <el-button type="primary" @click="chioseType">确 定</el-button>
  725. </div>
  726. </span>
  727. </el-dialog>
  728. <!-- 回访记录 -->
  729. <el-dialog
  730. title="新增回访"
  731. width="500px"
  732. destroy-on-close
  733. :close-on-click-modal="false"
  734. :visible.sync="visitVisiable"
  735. >
  736. <visit
  737. v-if="visitVisiable && detail"
  738. :detail="detail"
  739. @close="visitVisiable = false"
  740. @submited="getList"
  741. />
  742. </el-dialog>
  743. <el-dialog
  744. title="更改声部"
  745. :visible.sync="changeVoiceVisible"
  746. v-if="changeVoiceVisible"
  747. width="600px"
  748. >
  749. <changeVoice
  750. @close="closeChangeVoice"
  751. @submited="getList"
  752. :detail.sync="rowDetail"
  753. :musicGroupId="id"
  754. :voiceList="leftList"
  755. />
  756. </el-dialog>
  757. </div>
  758. </template>
  759. <script>
  760. import pagination from "@/components/Pagination/index";
  761. import qrCode from "@/components/QrCode/index";
  762. import {
  763. getintoClass,
  764. getStudentList,
  765. findSound,
  766. musicGroupOpenPay,
  767. openPayment,
  768. musicGroupFound,
  769. extensionPayment,
  770. extensionApplyExpire,
  771. resetPlanNum,
  772. cancelMusicGroup,
  773. getTeamBaseInfo,
  774. studentApplyDetailExport,
  775. StudentQuit,
  776. getMusicGroupGradeList,
  777. checkCanReg,
  778. } from "@/api/buildTeam";
  779. import mergeMusic from "./components/merge-music";
  780. import forecastList from "./components/forecast-list";
  781. import { resetStudentSubject, getStudentFeeDetail } from "@/api/studentManager";
  782. import { vaildStudentUrl, vaildTeacherUrl } from "@/utils/validate";
  783. import { addVisit } from "@/views/returnVisitManager/api.js";
  784. import QRCode from "qrcodejs2";
  785. import { visitChiose } from "@/utils/searchArray";
  786. import axios from "axios";
  787. import { getToken } from "@/utils/auth";
  788. import load from "@/utils/loading";
  789. import qs from "qs";
  790. import { permission } from "@/utils/directivePage";
  791. import cleanDeep from "clean-deep";
  792. import changeVoice from "./modals/change-voice";
  793. import visit from "@/views/withdrawal-application/modals/visit";
  794. export default {
  795. name: "signupList",
  796. components: {
  797. pagination,
  798. qrCode,
  799. changeVoice,
  800. mergeMusic,
  801. forecastList,
  802. visit,
  803. },
  804. data() {
  805. return {
  806. multipleSelection: [], //
  807. forecastVisible: false, // 预报名状态
  808. isEdit: false,
  809. rowDetail: null,
  810. mergeVisible: false,
  811. changeVoiceVisible: false,
  812. subjectVisible: false,
  813. orderVisible: false,
  814. quitVisible: false,
  815. leftList: [],
  816. rightList: [],
  817. searchFrom: {
  818. name: "",
  819. subject: "", // 专业
  820. isAllowAdjust: "", // 是否允许调剂
  821. currentGrade: null, // 入学年级
  822. paymentStatus: "",
  823. visited: "",
  824. },
  825. quitForm: {
  826. // 退团信息确认
  827. isRefundCourseFee: null,
  828. isRefundInstrumentFee: null,
  829. isRefundTeachingAssistantsFee: null,
  830. isMaintenanceFee: null,
  831. maintenanceFee: 0,
  832. reason: "",
  833. },
  834. stepImgs: {
  835. APPLY: require("@/assets/images/base/clock.png"),
  836. PAY: require("@/assets/images/base/pay.png"),
  837. },
  838. status: "",
  839. id: "",
  840. rules: {
  841. // 分页规则
  842. limit: 10, // 限制显示条数
  843. page: 1, // 当前页
  844. total: 0, // 总条数
  845. page_size: [10, 20, 30, 40], // 选择限制显示条数
  846. },
  847. teamName: "",
  848. maskForm: {
  849. subject: "",
  850. },
  851. activeId: "",
  852. soundList: [],
  853. orderForm: {
  854. name: "",
  855. totalAmount: "",
  856. subject: "",
  857. subjectFee: "",
  858. axe: "",
  859. axePrice: "",
  860. others: "",
  861. othersPrice: "",
  862. },
  863. paymentStatus: false,
  864. paymentForm: {
  865. paymentExpireDate: null,
  866. // feeType: null
  867. },
  868. paymentRules: {
  869. paymentExpireDate: [
  870. { required: true, message: "请设置缴费截止日期", trigger: "blur" },
  871. ],
  872. },
  873. paymentNum: 0, // 缴费了多少人
  874. qrcodeStatus: false, // 生成二维码
  875. qrcodes: true,
  876. qrcode: null,
  877. codeUrl: null,
  878. qrcodeStatus2: false, // 生成二维码
  879. qrcodes2: true,
  880. qrcode2: null,
  881. codeUrl2: null,
  882. codeStatus: false,
  883. codeTitle: null,
  884. qrCodeUrl: null,
  885. organId: "",
  886. extendPaymentStatus: false,
  887. extendForm: {
  888. expireDate: null,
  889. },
  890. extendRule: {
  891. expireDate: [
  892. { required: true, message: "请选择延长时间", trigger: "change" },
  893. ],
  894. },
  895. quitRules: {
  896. isRefundCourseFee: [
  897. { required: true, message: "请选择是否退还课程费用" },
  898. ],
  899. isRefundInstrumentFee: [
  900. { required: true, message: "选择是否退还乐器费用" },
  901. ],
  902. isRefundTeachingAssistantsFee: [
  903. { required: true, message: "选择是否退还教辅费用" },
  904. ],
  905. isMaintenanceFee: [{ required: true, message: "选择是否退还乐保费用" }],
  906. maintenanceFee: [{ required: true, message: "请输入退还乐保金额" }],
  907. reason: [{ required: true, message: "请填写退团退费原因" }],
  908. },
  909. applyExpireDate: "",
  910. paymentExpireDate: "",
  911. activeRow: { hasMaintenance: false },
  912. visitVisiable: false,
  913. visitForm: {
  914. musicGroupId: "",
  915. overview: "",
  916. purpose: "",
  917. studentId: "",
  918. type: "",
  919. visitTime: "",
  920. visitType: "",
  921. feedback: "",
  922. studentName: "",
  923. },
  924. visitChiose,
  925. visitRules: {
  926. overview: [{ required: true, message: "请输入学生近况" }],
  927. feedback: [{ required: true, message: "请输入家长反馈" }],
  928. visitTime: [{ required: true, message: "请输入回访时间" }],
  929. visitType: [{ required: true, message: "请选择回访类型" }],
  930. },
  931. isPay: false,
  932. applyDates: this.applyDate(),
  933. detail: null,
  934. gradeList: [],
  935. ischeckCanReg: false,
  936. };
  937. },
  938. created() {},
  939. mounted() {
  940. // 通过乐团状态判断显示隐藏的东西
  941. this.init();
  942. },
  943. activated() {
  944. this.init();
  945. },
  946. methods: {
  947. permission(str) {
  948. return permission(str);
  949. },
  950. async init() {
  951. this.status = this.$route.query.team_status;
  952. // 通过乐团id 获取乐团招生状态
  953. this.id = this.$route.query.id;
  954. this.teamName = this.$route.query.name;
  955. // 判断是否带缓存参数
  956. this.pickerOptions = this.beginDate(new Date());
  957. // checkCanReg
  958. try {
  959. this.ischeckCanReg = await (
  960. await checkCanReg({ musicGroupId: this.id })
  961. ).data;
  962. console.log(this.ischeckCanReg);
  963. } catch (e) {
  964. console.log(e);
  965. }
  966. getMusicGroupGradeList({ musicGroupId: this.id }).then((res) => {
  967. let result = res.data;
  968. if (res.code == 200 && result) {
  969. for (let i in result) {
  970. this.gradeList.push({
  971. value: i,
  972. label: result[i],
  973. });
  974. }
  975. }
  976. });
  977. getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
  978. if (res.code == 200) {
  979. this.organId = res.data.musicGroup.organId;
  980. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  981. this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
  982. }
  983. });
  984. // 根据乐团id获乐团声部
  985. findSound({ musicGroupId: this.id }).then((res) => {
  986. if (res.code == 200) {
  987. this.soundList = res.data;
  988. }
  989. });
  990. // 通过乐团id获取乐团学生列表
  991. this.getList();
  992. },
  993. search() {
  994. this.rules.page = 1;
  995. this.getList();
  996. },
  997. onReset() {
  998. this.rules.page = 1;
  999. this.rules.limit = 10;
  1000. this.searchFrom = {
  1001. name: null,
  1002. subject: null, // 专业
  1003. isAllowAdjust: null, // 是否允许调剂
  1004. currentGrade: null,
  1005. paymentStatus: null,
  1006. visited: null,
  1007. };
  1008. this.getList();
  1009. },
  1010. onCancel() {
  1011. this.$store.dispatch("delVisitedViews", this.$route);
  1012. this.$router.push({ path: "/teamList" });
  1013. },
  1014. payStart() {
  1015. this.paymentStatus = true;
  1016. getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
  1017. if (res.code == 200) {
  1018. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  1019. this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
  1020. }
  1021. });
  1022. },
  1023. getList() {
  1024. let obj = {
  1025. musicGroupId: this.id,
  1026. actualSubjectId: this.searchFrom.subject || null,
  1027. isAllowAdjust: this.searchFrom.isAllowAdjust || null,
  1028. name: this.searchFrom.name || null,
  1029. currentGrade: this.searchFrom.currentGrade || null,
  1030. paymentStatus: this.searchFrom.paymentStatus || null,
  1031. visited: this.searchFrom.visited || null,
  1032. page: this.rules.page,
  1033. rows: this.rules.limit,
  1034. };
  1035. // 根据乐团id获取学团情况
  1036. getintoClass({ musicGroupId: this.id }).then((res) => {
  1037. if (res.code == 200) {
  1038. this.leftList = res.data;
  1039. }
  1040. });
  1041. return getStudentList(obj).then((res) => {
  1042. if (res.code == 200) {
  1043. res.data.rows.forEach((item) => {
  1044. // '未开启缴费', '开启缴费', '已缴费'
  1045. if (item.paymentStatus == 2) {
  1046. this.paymentNum += 1;
  1047. }
  1048. });
  1049. this.rightList = res.data.rows;
  1050. this.rules.total = res.data.total;
  1051. return res;
  1052. }
  1053. });
  1054. },
  1055. onStartPayment(formName) {
  1056. // 开启缴费
  1057. this.$refs[formName].validate((valid) => {
  1058. if (valid) {
  1059. musicGroupOpenPay({
  1060. musicGroupId: this.id,
  1061. expireDate: this.paymentForm.paymentExpireDate,
  1062. // feeType: this.paymentForm.feeType
  1063. }).then((res) => {
  1064. if (res.code == 200) {
  1065. this.$message.success("开启成功");
  1066. this.paymentStatus = false;
  1067. this.$store.dispatch("delVisitedViews", this.$route);
  1068. this.$router.push({
  1069. path: "/teamList",
  1070. });
  1071. this.status = "PAY";
  1072. this.paymentExpireDate = this.paymentForm.paymentExpireDate;
  1073. this.getList();
  1074. }
  1075. });
  1076. } else {
  1077. return false;
  1078. }
  1079. });
  1080. },
  1081. onSelectAll() {
  1082. // 选中全部
  1083. this.$refs.multipleTable.toggleAllSelection();
  1084. },
  1085. onPartPayment() {
  1086. // 部分缴费
  1087. let selection = this.multipleSelection;
  1088. if (selection.length <= 0) {
  1089. this.$message.error("您还没有选择学生");
  1090. return false;
  1091. }
  1092. let ids = [];
  1093. selection.forEach((item) => {
  1094. ids.push(item.id);
  1095. });
  1096. this.$confirm(`是否确认开启缴费?`, "提示", {
  1097. confirmButtonText: "确定",
  1098. cancelButtonText: "取消",
  1099. type: "warning",
  1100. })
  1101. .then(() => {
  1102. openPayment({
  1103. ids: ids.join(","),
  1104. }).then((res) => {
  1105. if (res.code == 200) {
  1106. this.$message.success("开启成功");
  1107. this.getList();
  1108. } else {
  1109. this.$message.error(res.msg);
  1110. }
  1111. });
  1112. })
  1113. .catch(() => {});
  1114. },
  1115. onCreateQRCode(type) {
  1116. // 生成报名二维码
  1117. let id = this.id;
  1118. this.codeStatus = true;
  1119. if (type == "payment") {
  1120. this.codeTitle = "学员报名链接";
  1121. this.qrCodeUrl = vaildStudentUrl() + "/#/login?musicGroupId=" + id;
  1122. } else if (type == "detail") {
  1123. let teamName = this.$route.query.name;
  1124. this.codeTitle = "报名缴费详情";
  1125. this.qrCodeUrl =
  1126. vaildTeacherUrl() +
  1127. "/#/order?musicGroupId=" +
  1128. id +
  1129. "&musicGroupName=" +
  1130. teamName;
  1131. } else if (type == "rePayment") {
  1132. this.codeTitle = "学生报名链接(无乐器)";
  1133. this.qrCodeUrl =
  1134. vaildStudentUrl() + "/#/login?musicGroupId=" + id + "&instrument=1";
  1135. }
  1136. },
  1137. onCreateQRCode2() {
  1138. // 生成报名二维码
  1139. this.qrcodeStatus2 = true;
  1140. let id = this.id;
  1141. let teamName = this.$route.query.name;
  1142. setTimeout(() => {
  1143. document.getElementById("qrcode2").innerHTML = "";
  1144. this.qrcode2 = new QRCode("qrcode2", {
  1145. width: 200,
  1146. height: 200,
  1147. colorDark: "#000000",
  1148. colorLight: "#ffffff",
  1149. correctLevel: QRCode.CorrectLevel.H,
  1150. });
  1151. this.qrcode2.makeCode(
  1152. vaildTeacherUrl() +
  1153. "/#/order?musicGroupId=" +
  1154. id +
  1155. "&musicGroupName=" +
  1156. teamName
  1157. );
  1158. this.codeUrl2 =
  1159. vaildTeacherUrl() +
  1160. "/#/order?musicGroupId=" +
  1161. id +
  1162. "&musicGroupName=" +
  1163. teamName;
  1164. }, 500);
  1165. },
  1166. onDownLoadExecl() {
  1167. // 报表导出
  1168. let url = "/api-web/studentRegistration/queryStudentApplyDetailExport";
  1169. let data = {
  1170. musicGroupId: this.$route.query.id,
  1171. page: 1,
  1172. rows: 9999,
  1173. };
  1174. const options = {
  1175. method: "POST",
  1176. headers: {
  1177. Authorization: getToken(),
  1178. },
  1179. data: qs.stringify(data),
  1180. url,
  1181. responseType: "blob",
  1182. };
  1183. this.$confirm("您确定导出吗?", "提示", {
  1184. confirmButtonText: "确定",
  1185. cancelButtonText: "取消",
  1186. type: "warning",
  1187. })
  1188. .then(() => {
  1189. load.startLoading();
  1190. axios(options)
  1191. .then((res) => {
  1192. let blob = new Blob([res.data], {
  1193. // type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
  1194. type: "application/vnd.ms-excel;charset=utf-8",
  1195. //word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
  1196. });
  1197. let text = new Response(blob).text();
  1198. text.then((res) => {
  1199. // 判断是否报错
  1200. if (res.indexOf("code") != -1) {
  1201. let json = JSON.parse(res);
  1202. this.$message.error(json.msg);
  1203. } else {
  1204. let objectUrl = URL.createObjectURL(blob);
  1205. let link = document.createElement("a");
  1206. let nowTime = new Date();
  1207. let ymd =
  1208. nowTime.getFullYear() +
  1209. "" +
  1210. (nowTime.getMonth() + 1) +
  1211. "" +
  1212. nowTime.getDate() +
  1213. "" +
  1214. nowTime.getHours() +
  1215. "" +
  1216. nowTime.getMinutes();
  1217. let fname = this.$route.query.id + "-" + ymd + ".xls"; //下载文件的名字
  1218. link.href = objectUrl;
  1219. link.setAttribute("download", fname);
  1220. document.body.appendChild(link);
  1221. link.click();
  1222. }
  1223. });
  1224. load.endLoading();
  1225. })
  1226. .catch((error) => {
  1227. this.$message.error("导出数据失败,请联系管理员");
  1228. load.endLoading();
  1229. });
  1230. })
  1231. .catch(() => {});
  1232. },
  1233. onGoHome() {
  1234. // 确认开团
  1235. // 判断是否有学生缴费
  1236. if (this.paymentNum <= 0) {
  1237. this.$message.error("当前缴费人数为0,无法开团");
  1238. return;
  1239. }
  1240. this.$confirm(`是否确认开团?`, "提示", {
  1241. confirmButtonText: "确定",
  1242. cancelButtonText: "取消",
  1243. type: "warning",
  1244. })
  1245. .then(() => {
  1246. musicGroupFound({
  1247. musicGroupId: this.$route.query.id,
  1248. }).then((res) => {
  1249. if (res.code == 200) {
  1250. // let query = this.$route.query;
  1251. // this.$message.success("开启成功");
  1252. // this.$router.push({
  1253. // path: "/teamList",
  1254. // query: {
  1255. // ...query,
  1256. // },
  1257. // });
  1258. this.onCancel();
  1259. }
  1260. });
  1261. })
  1262. .catch(() => {});
  1263. },
  1264. onClose() {
  1265. // 停止乐团
  1266. this.$confirm("您确定停止乐团吗?", "提示", {
  1267. confirmButtonText: "确定",
  1268. cancelButtonText: "取消",
  1269. type: "warning",
  1270. })
  1271. .then(() => {
  1272. cancelMusicGroup({
  1273. musicGroupId: this.$route.query.id,
  1274. }).then((res) => {
  1275. if (res.code == 200) {
  1276. this.$message.success("停止成功");
  1277. this.$store.dispatch("delVisitedViews", this.$route);
  1278. this.$router.push({
  1279. path: "/teamList",
  1280. });
  1281. }
  1282. });
  1283. })
  1284. .catch(() => {});
  1285. },
  1286. handleSelectionChange(val) {
  1287. this.multipleSelection = val;
  1288. },
  1289. // 修改专业
  1290. resetSubject(row) {
  1291. console.log(row);
  1292. this.activeId = row.studentId;
  1293. this.maskForm.subject = row.actualSubjectId;
  1294. this.subjectVisible = true;
  1295. // resetStudentSubject().then(res=>{]})
  1296. },
  1297. // 确认修改
  1298. okReset() {
  1299. if (!this.maskForm.subject) {
  1300. this.$message.error("请选择调剂专业");
  1301. return;
  1302. }
  1303. resetStudentSubject({
  1304. musicGroupId: this.id,
  1305. userId: this.activeId,
  1306. subId: this.maskForm.subject,
  1307. }).then((res) => {
  1308. if (res.code == 200) {
  1309. this.$message.success("修改成功");
  1310. this.subjectVisible = false;
  1311. this.maskForm.subject = "";
  1312. getintoClass({ musicGroupId: this.id }).then((res) => {
  1313. if (res.code == 200) {
  1314. this.leftList = res.data;
  1315. }
  1316. });
  1317. this.getList();
  1318. }
  1319. });
  1320. },
  1321. onExtendPayment(formName, isPay) {
  1322. this.$refs[formName].validate((valid) => {
  1323. if (valid) {
  1324. if (!isPay) {
  1325. extensionApplyExpire({
  1326. musicGroupId: this.id,
  1327. expireDate: this.extendForm.expireDate,
  1328. }).then((res) => {
  1329. if (res.code == 200) {
  1330. this.$message.success("延长报名成功");
  1331. this.extendPaymentStatus = false;
  1332. getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
  1333. if (res.code == 200) {
  1334. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  1335. }
  1336. });
  1337. } else {
  1338. this.$message.error(res.msg);
  1339. }
  1340. });
  1341. } else {
  1342. extensionPayment({
  1343. musicGroupId: this.id,
  1344. expireDate: this.extendForm.expireDate,
  1345. }).then((res) => {
  1346. if (res.code == 200) {
  1347. this.$message.success("延长缴费成功");
  1348. this.extendPaymentStatus = false;
  1349. getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
  1350. if (res.code == 200) {
  1351. this.paymentExpireDate =
  1352. res.data.musicGroup.paymentExpireDate;
  1353. }
  1354. });
  1355. } else {
  1356. this.$message.error(res.msg);
  1357. }
  1358. });
  1359. }
  1360. }
  1361. });
  1362. },
  1363. lookdetail(row) {
  1364. this.orderVisible = true;
  1365. this.activeId = row.studentId;
  1366. this.orderForm.name = row.studentName;
  1367. this.orderForm.subject = row.subjectName;
  1368. getStudentFeeDetail({
  1369. musicGroupId: this.id,
  1370. studentId: row.studentId,
  1371. }).then((res) => {
  1372. if (res.code == 200) {
  1373. if (res.data) {
  1374. this.orderForm.totalAmount = res.data.totalAmount;
  1375. // this.orderForm.subjectFee = res.data.courseFee;
  1376. let goodStr = "";
  1377. let goodPrice = 0;
  1378. let otherStr = "";
  1379. let othersPrice = 0;
  1380. for (let i in res.data.goods) {
  1381. if (res.data.goods[i].goodsType == "INSTRUMENT") {
  1382. goodStr += res.data.goods[i].goodsName + ",";
  1383. goodPrice += parseFloat(res.data.goods[i].musicalFee);
  1384. // this.orderForm.axe = res.data.goods[i].goodsName;
  1385. // this.orderForm.axePrice = res.data.goods[i].musicalFee;
  1386. } else if (res.data.goods[i].goodsType == "ACCESSORIES") {
  1387. otherStr += res.data.goods[i].goodsName + ",";
  1388. othersPrice += parseFloat(res.data.goods[i].musicalFee);
  1389. // this.orderForm.others = res.data.goods[i].goodsName;
  1390. // this.orderForm.othersPrice = res.data.goods[i].musicalFee;
  1391. } else if (res.data.goods[i].goodsType == "COURSE") {
  1392. this.orderForm.subjectFee = res.data.goods[i].musicalFee;
  1393. }
  1394. }
  1395. this.orderForm.others = otherStr.substring(0, otherStr.length - 1);
  1396. this.orderForm.othersPrice = othersPrice;
  1397. this.orderForm.axe = goodStr.substring(0, goodStr.length - 1);
  1398. this.orderForm.axePrice = goodPrice;
  1399. }
  1400. }
  1401. });
  1402. },
  1403. saveIsEdit() {
  1404. // 提交数据
  1405. this.isEdit = false;
  1406. resetPlanNum(this.leftList).then((res) => {});
  1407. },
  1408. quitTeam(row) {
  1409. this.activeRow = row;
  1410. this.quitVisible = true;
  1411. },
  1412. quieTeams(row) {
  1413. this.$prompt("请输入退团原因", "提示", {
  1414. confirmButtonText: "确定",
  1415. cancelButtonText: "取消",
  1416. inputPattern: /\S/,
  1417. inputErrorMessage: "请输入退团原因",
  1418. type: "warning",
  1419. })
  1420. .then((val) => {
  1421. // 发请求 退团
  1422. StudentQuit({
  1423. musicGroupId: this.id,
  1424. userId: row.studentId,
  1425. reason: val.value,
  1426. isRefundCourseFee: false,
  1427. isRefundInstrumentFee: false,
  1428. isRefundTeachingAssistantsFee: false,
  1429. }).then((res) => {
  1430. this.quitForm = {
  1431. // 退团信息确认
  1432. isRefundCourseFee: null,
  1433. isRefundInstrumentFee: null,
  1434. isRefundTeachingAssistantsFee: null,
  1435. isMaintenanceFee: null,
  1436. maintenanceFee: 0,
  1437. reason: "",
  1438. };
  1439. if (res.code == 200) {
  1440. this.$message.success("退团成功");
  1441. this.getList();
  1442. this.quitVisible = false;
  1443. }
  1444. });
  1445. })
  1446. .catch(() => {});
  1447. },
  1448. chioseType() {
  1449. this.$refs["quitForm"].validate((res) => {
  1450. if (res) {
  1451. this.$confirm("确定退团?", "提示", {
  1452. confirmButtonText: "确定",
  1453. cancelButtonText: "取消",
  1454. type: "warning",
  1455. })
  1456. .then(() => {
  1457. let row = this.activeRow;
  1458. // 发请求 退团
  1459. StudentQuit({
  1460. musicGroupId: this.id,
  1461. userId: row.studentId,
  1462. reason: this.quitForm.reason,
  1463. isRefundCourseFee: this.quitForm.isRefundCourseFee,
  1464. isRefundInstrumentFee: this.quitForm.isRefundInstrumentFee,
  1465. isRefundTeachingAssistantsFee: this.quitForm
  1466. .isRefundTeachingAssistantsFee,
  1467. maintenanceFee: this.quitForm.maintenanceFee,
  1468. }).then((res) => {
  1469. this.quitForm = {
  1470. // 退团信息确认
  1471. isRefundCourseFee: null,
  1472. isRefundInstrumentFee: null,
  1473. isRefundTeachingAssistantsFee: null,
  1474. isMaintenanceFee: null,
  1475. maintenanceFee: 0,
  1476. reason: "",
  1477. };
  1478. if (res.code == 200) {
  1479. this.$message.success("退团成功");
  1480. this.getList();
  1481. this.quitVisible = false;
  1482. }
  1483. });
  1484. })
  1485. .catch(() => {});
  1486. } else {
  1487. }
  1488. });
  1489. // row.typeVisible = false;
  1490. },
  1491. addVisit(row) {
  1492. // this.visitForm.studentName = row.studentName;
  1493. // this.visitForm.musicGroupId = this.teamid;
  1494. // this.visitForm.studentId = row.studentId;
  1495. row.userId = row.studentId;
  1496. this.detail = row;
  1497. this.detail.musicGroupId = this.$route.query.id;
  1498. this.visitVisiable = true;
  1499. },
  1500. openChangeVoice(row) {
  1501. this.getList().then((res) => {
  1502. for (const item of res.data.rows) {
  1503. if (item.id === row.id) {
  1504. this.rowDetail = { ...item, userId: item.studentId };
  1505. // console.log(this.rowDetail)
  1506. this.changeVoiceVisible = true;
  1507. }
  1508. }
  1509. });
  1510. },
  1511. closeChangeVoice() {
  1512. this.changeVoiceVisible = false;
  1513. // this.rowDetail = null
  1514. },
  1515. handleChange(val) {
  1516. this.visitForm.type = val[0];
  1517. this.visitForm.purpose = val[1];
  1518. },
  1519. submitAddVisit() {
  1520. this.$refs.visitForm.validate((res) => {
  1521. if (res) {
  1522. this.visitForm.visitType = null;
  1523. this.visitForm.musicGroupId = this.id;
  1524. addVisit(cleanDeep(this.visitForm)).then((res) => {
  1525. if (res.code === 200) {
  1526. this.$message.success("新增成功");
  1527. this.visitVisiable = false;
  1528. }
  1529. });
  1530. }
  1531. });
  1532. },
  1533. beginDate(date) {
  1534. let self = this;
  1535. return {
  1536. firstDayOfWeek: 1,
  1537. disabledDate(time) {
  1538. return time.getTime() >= date.getTime(); //开始时间不选时,结束时间最大值小于等于当天
  1539. },
  1540. };
  1541. },
  1542. extendTime(isPay) {
  1543. this.isPay = isPay;
  1544. if (isPay) {
  1545. // 点击的延长缴费
  1546. this.extendForm.expireDate = this.paymentExpireDate;
  1547. } else {
  1548. // 点击的延长报名
  1549. this.extendForm.expireDate = this.applyExpireDate;
  1550. }
  1551. this.extendPaymentStatus = true;
  1552. },
  1553. payDate() {
  1554. let self = this;
  1555. return {
  1556. firstDayOfWeek: 1,
  1557. disabledDate(time) {
  1558. return time.getTime() + 86400000 < new Date().getTime();
  1559. },
  1560. };
  1561. },
  1562. applyDate() {
  1563. let self = this;
  1564. return {
  1565. firstDayOfWeek: 1,
  1566. disabledDate(time) {
  1567. return time.getTime() + 86400000 < new Date().getTime();
  1568. },
  1569. };
  1570. },
  1571. checkboxSelect(row) {
  1572. return row.paymentStatus == 0;
  1573. },
  1574. },
  1575. watch: {
  1576. "quitForm.isMaintenanceFee"(val) {
  1577. if (val) {
  1578. this.quitForm.maintenanceFee = 300;
  1579. } else {
  1580. this.quitForm.maintenanceFee = 0;
  1581. }
  1582. },
  1583. orderVisible(val) {
  1584. if (!val) {
  1585. this.orderForm = {
  1586. name: "",
  1587. totalAmount: "",
  1588. subject: "",
  1589. subjectFee: "",
  1590. axe: "",
  1591. axePrice: "",
  1592. others: "",
  1593. othersPrice: "",
  1594. };
  1595. }
  1596. },
  1597. qrcodeStatus(val) {
  1598. if (!val) {
  1599. this.qrcode.clear();
  1600. }
  1601. },
  1602. qrcodeStatus2(val) {
  1603. if (!val) {
  1604. this.qrcode2.clear();
  1605. }
  1606. },
  1607. paymentStatus(val) {
  1608. if (!val) {
  1609. this.paymentForm = {
  1610. paymentExpireDate: null,
  1611. // feeType: null
  1612. };
  1613. }
  1614. },
  1615. quitVisible(val) {
  1616. if (!val) {
  1617. this.quitForm = {
  1618. // 退团信息确认
  1619. isRefundCourseFee: null,
  1620. isRefundInstrumentFee: null,
  1621. isRefundTeachingAssistantsFee: null,
  1622. reason: "",
  1623. };
  1624. this.$refs["quitForm"].resetFields();
  1625. }
  1626. },
  1627. // visitVisiable(val) {
  1628. // if (!val) {
  1629. // this.$refs["visitForm"].resetFields();
  1630. // }
  1631. // },
  1632. },
  1633. };
  1634. </script>
  1635. <style lang="scss" scoped>
  1636. .auth {
  1637. display: inline-block;
  1638. & + .auth {
  1639. margin-left: 0px;
  1640. }
  1641. }
  1642. .dialog-footer.question {
  1643. display: flex;
  1644. flex-direction: row;
  1645. justify-content: space-between;
  1646. }
  1647. .sigup-container {
  1648. margin-left: 12px;
  1649. .topWrap {
  1650. padding: 18px 58px 18px 0;
  1651. // height: 136px;
  1652. background-color: #fff;
  1653. // display: flex;
  1654. // flex-direction: row;
  1655. // justify-content: space-between;
  1656. .msg.pay {
  1657. color: #f85043;
  1658. }
  1659. .msg {
  1660. text-align: right;
  1661. color: #f97215;
  1662. font-size: 32px;
  1663. font-weight: bold;
  1664. padding-top: 30px;
  1665. box-sizing: border-box;
  1666. img {
  1667. width: 36px;
  1668. height: 36px;
  1669. position: relative;
  1670. top: 5px;
  1671. margin-right: 8px;
  1672. }
  1673. }
  1674. h2 {
  1675. height: 48px;
  1676. line-height: 48px;
  1677. position: relative;
  1678. // padding-left: 30px;
  1679. font-size: 32px;
  1680. font-weight: 600;
  1681. margin-bottom: 10px;
  1682. display: flex;
  1683. flex-direction: row;
  1684. justify-content: flex-start;
  1685. align-items: center;
  1686. .term {
  1687. height: 32px;
  1688. line-height: 32px;
  1689. border-radius: 24px;
  1690. width: 100px;
  1691. color: #14928a;
  1692. border: 1px solid rgba(20, 146, 138, 1);
  1693. font-size: 14px;
  1694. text-align: center;
  1695. margin-right: 12px;
  1696. &:nth-child(1) {
  1697. margin-left: 47px;
  1698. }
  1699. }
  1700. .term.active {
  1701. color: #fff;
  1702. background-color: #14928a;
  1703. }
  1704. .squrt {
  1705. position: absolute;
  1706. left: -25px;
  1707. top: 8px;
  1708. height: 34px;
  1709. width: 8px;
  1710. background-color: #14928a;
  1711. }
  1712. }
  1713. .btnList {
  1714. display: flex;
  1715. flex-direction: row;
  1716. justify-content: flex-start;
  1717. align-items: center;
  1718. flex-wrap: wrap;
  1719. & > div {
  1720. margin-right: 15px;
  1721. margin-bottom: 10px;
  1722. }
  1723. }
  1724. .newBand.close {
  1725. background-color: #777;
  1726. border: 1px solid #777;
  1727. }
  1728. }
  1729. .searchList {
  1730. background-color: #fff;
  1731. padding: 0 58p 0 0px;
  1732. }
  1733. .sigup-core {
  1734. margin-top: 12px;
  1735. display: flex;
  1736. flex-direction: row;
  1737. justify-content: flex-start;
  1738. .left {
  1739. width: 340px;
  1740. background-color: #fff;
  1741. height: 80vh;
  1742. overflow: auto;
  1743. }
  1744. .right {
  1745. width: calc(100% - 340px);
  1746. margin-left: 12px;
  1747. flex-grow: 1;
  1748. }
  1749. }
  1750. }
  1751. .el-dialog__body {
  1752. overflow: hidden;
  1753. }
  1754. .left-code,
  1755. .right-code {
  1756. // width: 50%;
  1757. // float: left;
  1758. h2 {
  1759. font-size: 18px;
  1760. text-align: center;
  1761. padding-bottom: 8px;
  1762. }
  1763. .qrcode {
  1764. display: flex;
  1765. flex-direction: column;
  1766. align-items: center;
  1767. img {
  1768. width: 200px;
  1769. height: 200px;
  1770. margin: 0 auto;
  1771. }
  1772. }
  1773. .code-url {
  1774. font-size: 18px;
  1775. text-align: center;
  1776. padding: 15px 15px 0 15px;
  1777. }
  1778. }
  1779. .newBand {
  1780. margin-bottom: 0;
  1781. max-width: inherit;
  1782. }
  1783. /deep/.el-button--danger {
  1784. background: #f85043;
  1785. }
  1786. .paymentForm {
  1787. /deep/.el-input__inner,
  1788. /deep/.el-input.el-input--suffix {
  1789. width: 360px !important;
  1790. }
  1791. }
  1792. .popoverWrap {
  1793. p {
  1794. line-height: 25px;
  1795. }
  1796. }
  1797. </style>