signupList.vue 75 KB

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