signupList.vue 76 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452
  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.value"
  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. @click="onPartPayment"
  858. type="primary"
  859. >开启缴费</el-button
  860. >
  861. </auth>
  862. <!-- <div class='newBand' v-show="status=='APPLY'">允许缴费</div> -->
  863. </div>
  864. <pagination
  865. sync
  866. :total.sync="rules.total"
  867. :page.sync="rules.page"
  868. :limit.sync="rules.limit"
  869. :page-sizes="rules.page_size"
  870. @pagination="getList"
  871. />
  872. </div>
  873. <el-dialog title="修改专业" :visible.sync="subjectVisible" width="400px">
  874. <el-form :model="maskForm">
  875. <el-form-item label="选择专业">
  876. <el-select v-model.trim="maskForm.subject" filterable clearable>
  877. <el-option
  878. v-for="(item, index) in soundList"
  879. :key="index"
  880. :label="item.name"
  881. :value="item.id"
  882. ></el-option>
  883. </el-select>
  884. </el-form-item>
  885. </el-form>
  886. <div slot="footer" class="dialog-footer">
  887. <el-button @click="subjectVisible = false">取 消</el-button>
  888. <el-button type="primary" @click="okReset">确 定</el-button>
  889. </div>
  890. </el-dialog>
  891. <el-dialog
  892. :title="!isPay ? '延长报名' : '延长缴费'"
  893. :visible.sync="extendPaymentStatus"
  894. destroy-on-close
  895. width="400px"
  896. >
  897. <el-form :model="extendForm" ref="extendForm" :rules="extendRule">
  898. <el-form-item v-if="isPay" label="延长缴费时间" prop="expireDate">
  899. <el-date-picker
  900. v-model.trim="extendForm.expireDate"
  901. value-format="yyyy-MM-dd"
  902. type="date"
  903. :picker-options="payDate()"
  904. placeholder="选择日期"
  905. >
  906. </el-date-picker>
  907. </el-form-item>
  908. <el-form-item label="延长报名时间" v-else prop="expireDate">
  909. <el-date-picker
  910. v-model.trim="extendForm.expireDate"
  911. value-format="yyyy-MM-dd"
  912. type="date"
  913. :picker-options="applyDates"
  914. placeholder="选择日期"
  915. >
  916. </el-date-picker>
  917. </el-form-item>
  918. </el-form>
  919. <div slot="footer" class="dialog-footer">
  920. <el-button @click="extendPaymentStatus = false">取 消</el-button>
  921. <el-button
  922. type="primary"
  923. v-if="isPay"
  924. @click="onExtendPayment('extendForm', isPay)"
  925. >确 定</el-button
  926. >
  927. <el-button
  928. v-else
  929. type="primary"
  930. @click="onExtendPayment('extendForm', isPay)"
  931. >确 定</el-button
  932. >
  933. </div>
  934. </el-dialog>
  935. <el-dialog title="订单详情" :visible.sync="orderVisible" width="800px">
  936. <template v-if="orderForm.length > 0">
  937. <descriptions :column="2">
  938. <template v-for="(item, index) in orderForm">
  939. <descriptions-item :key="index" :label="item.name"
  940. >{{ item.price | moneyFormat }}元</descriptions-item
  941. >
  942. <descriptions-item :key="index" label="缴费时间">{{
  943. item.createTime
  944. }}</descriptions-item>
  945. </template>
  946. </descriptions>
  947. </template>
  948. <el-row v-else>
  949. <el-col :span="24">
  950. <empty desc="暂无订单详情" />
  951. </el-col>
  952. </el-row>
  953. <div slot="footer" class="dialog-footer">
  954. <el-button type="primary" @click="orderVisible = false"
  955. >确 定</el-button
  956. >
  957. </div>
  958. </el-dialog>
  959. <el-dialog
  960. title="开始缴费"
  961. :visible.sync="paymentStatus"
  962. width="400px"
  963. destroy-on-close
  964. >
  965. <el-form
  966. ref="paymentForm"
  967. class="paymentForm"
  968. :model="paymentForm"
  969. label-position="top"
  970. :rules="paymentRules"
  971. >
  972. <el-form-item label="请设置缴费截止日期" prop="paymentExpireDate">
  973. <el-date-picker
  974. v-model.trim="paymentForm.paymentExpireDate"
  975. type="date"
  976. value-format="yyyy-MM-dd"
  977. :picker-options="payDate()"
  978. style="width: 100%"
  979. placeholder="选择日期"
  980. >
  981. </el-date-picker>
  982. </el-form-item>
  983. </el-form>
  984. <div slot="footer" class="dialog-footer">
  985. <el-button @click="paymentStatus = false">取 消</el-button>
  986. <el-button type="primary" @click="onStartPayment('paymentForm')"
  987. >确 定</el-button
  988. >
  989. </div>
  990. </el-dialog>
  991. <!-- 预报名链接 -->
  992. <qr-code v-model="codeStatus" :title="codeTitle" :codeUrl="qrCodeUrl" />
  993. <!-- 退团弹窗 -->
  994. <el-dialog
  995. title="退团信息确认"
  996. v-if="quitVisible"
  997. width="700px"
  998. :visible.sync="quitVisible"
  999. >
  1000. <quiteTeam :quitForm="quitForm" :activeRow="activeRow" ref="quitForm" />
  1001. <p style="color: red; paddingleft: 150px">退费金额暂不进入账户余额</p>
  1002. <span slot="footer" class="dialog-footer question">
  1003. <div>
  1004. <el-popover placement="right" width="500" trigger="click">
  1005. <div class="popoverWrap">
  1006. <p>乐团退团退费规则:</p>
  1007. <p>退还乐器练习云教练费用:报名缴费时缴费的乐器练习云教练费用</p>
  1008. <p>退还课程费用:缴费总额-已结束课时单价之和</p>
  1009. <p>退还乐器费用:报名缴费时缴纳的乐器费用(团购、租金)</p>
  1010. <p>退还教辅费用:报名缴费时缴费的教辅费用</p>
  1011. <p>退还乐保费用:报名缴费时缴费的乐保费用</p>
  1012. </div>
  1013. <el-button
  1014. type="text"
  1015. icon="el-icon-question"
  1016. slot="reference"
  1017. style="color: red"
  1018. >退团退费说明</el-button
  1019. >
  1020. </el-popover>
  1021. </div>
  1022. <div>
  1023. <el-button @click="quitVisible = false">取 消</el-button>
  1024. <el-button type="primary" @click="chioseType">确 定</el-button>
  1025. </div>
  1026. </span>
  1027. </el-dialog>
  1028. <!-- 回访记录 -->
  1029. <el-dialog
  1030. title="新增回访"
  1031. width="500px"
  1032. destroy-on-close
  1033. :close-on-click-modal="false"
  1034. :visible.sync="visitVisiable"
  1035. >
  1036. <visit
  1037. v-if="visitVisiable && detail"
  1038. :detail="detail"
  1039. @close="visitVisiable = false"
  1040. @submited="getList"
  1041. />
  1042. </el-dialog>
  1043. <el-dialog
  1044. title="更改声部"
  1045. :visible.sync="changeVoiceVisible"
  1046. v-if="changeVoiceVisible"
  1047. width="600px"
  1048. >
  1049. <changeVoice
  1050. @close="closeChangeVoice"
  1051. @submited="getList"
  1052. :detail.sync="rowDetail"
  1053. :courseViewType="courseViewType"
  1054. :musicGroupId="id"
  1055. :voiceList="leftList"
  1056. />
  1057. </el-dialog>
  1058. <!-- 家长会通知 -->
  1059. <el-dialog
  1060. title="预报名家长会通知"
  1061. :visible.sync="meetingStatus"
  1062. @close="onCloseMeet('extendForm')"
  1063. width="400px"
  1064. >
  1065. <parentsMeeting
  1066. v-if="meetingStatus"
  1067. :extendForm="meetingForm"
  1068. :sysMsgStr="sysMsgStr"
  1069. ref="meetingForm"
  1070. :msg="'确认后该短信将发送给已缴费的学员'"
  1071. />
  1072. <div slot="footer" class="dialog-footer">
  1073. <el-button @click="meetingStatus = false">取 消</el-button>
  1074. <el-button type="primary" @click="onMeetingPayment('extendForm')"
  1075. >确 定</el-button
  1076. >
  1077. </div>
  1078. </el-dialog>
  1079. </div>
  1080. </template>
  1081. <script>
  1082. import pagination from "@/components/Pagination/index";
  1083. import qrCode from "@/components/QrCode/index";
  1084. import {
  1085. getintoClass,
  1086. getStudentList,
  1087. findSound,
  1088. musicGroupOpenPay,
  1089. openPayment,
  1090. musicGroupFound,
  1091. extensionPayment,
  1092. extensionApplyExpire,
  1093. resetPlanNum,
  1094. cancelMusicGroup,
  1095. getTeamBaseInfo,
  1096. studentApplyDetailExport,
  1097. StudentQuit,
  1098. getMusicGroupGradeList,
  1099. checkCanReg,
  1100. getRefundsDetail,
  1101. applyMusicGroupQuit,
  1102. } from "@/api/buildTeam";
  1103. import {
  1104. setNoneCloudTeacher,
  1105. setCloudTeacherToFailed,
  1106. sendParentMeetingNotice,
  1107. getSysMessageConfig,
  1108. } from "./api";
  1109. import mergeMusic from "./components/merge-music";
  1110. import forecastList from "./components/forecast-list";
  1111. import newForecastList from "./components/newForecast-list";
  1112. import { resetStudentSubject, getStudentFeeDetail } from "@/api/studentManager";
  1113. import { vaildStudentUrl, vaildTeacherUrl } from "@/utils/validate";
  1114. import { addVisit } from "@/views/returnVisitManager/api.js";
  1115. import QRCode from "qrcodejs2";
  1116. import { visitChiose } from "@/utils/searchArray";
  1117. import axios from "axios";
  1118. import { getToken, getTenantId } from "@/utils/auth";
  1119. import load from "@/utils/loading";
  1120. import qs from "qs";
  1121. import { permission } from "@/utils/directivePage";
  1122. import cleanDeep from "clean-deep";
  1123. import changeVoice from "./modals/change-voice";
  1124. import visit from "@/views/withdrawal-application/modals/visit";
  1125. import quiteTeam from "@/views/teamDetail/components/modals/quite-team";
  1126. import { courseType } from "@/constant/index";
  1127. import parentsMeeting from "./modals/parentsMeeting";
  1128. export default {
  1129. name: "signupList",
  1130. components: {
  1131. pagination,
  1132. qrCode,
  1133. changeVoice,
  1134. mergeMusic,
  1135. forecastList,
  1136. visit,
  1137. newForecastList,
  1138. quiteTeam,
  1139. parentsMeeting,
  1140. },
  1141. data() {
  1142. return {
  1143. multipleSelection: [], //
  1144. forecastVisible: false, // 预报名状态
  1145. newForecastVisible: false,
  1146. isEdit: false,
  1147. rowDetail: null,
  1148. mergeVisible: false,
  1149. changeVoiceVisible: false,
  1150. subjectVisible: false,
  1151. orderVisible: false,
  1152. quitVisible: false,
  1153. leftList: [],
  1154. rightList: [],
  1155. searchFrom: {
  1156. name: "",
  1157. subject: "", // 专业
  1158. isAllowAdjust: "", // 是否允许调剂
  1159. currentGrade: null, // 入学年级
  1160. paymentStatus: "",
  1161. visited: "",
  1162. hasCloudTeacher: null, // 是否购买云教练
  1163. payingStatus: null,
  1164. noneNeedCloudTeacher: null,
  1165. studentStatus: null,
  1166. },
  1167. quitForm: {
  1168. // 退团信息确认
  1169. isRefundCourseFee: null,
  1170. isRefundInstrumentFee: null,
  1171. isRefundTeachingAssistantsFee: null,
  1172. courseViewType: null,
  1173. hasMaintenance: null,
  1174. studentName: null,
  1175. musicGroupName: null,
  1176. isVisit: false,
  1177. reason: "",
  1178. userComment: null,
  1179. },
  1180. stepImgs: {
  1181. APPLY: require("@/assets/images/base/clock.png"),
  1182. PAY: require("@/assets/images/base/pay.png"),
  1183. },
  1184. status: "",
  1185. id: "",
  1186. rules: {
  1187. // 分页规则
  1188. limit: 10, // 限制显示条数
  1189. page: 1, // 当前页
  1190. total: 0, // 总条数
  1191. page_size: [10, 20, 30, 40], // 选择限制显示条数
  1192. },
  1193. teamName: "",
  1194. maskForm: {
  1195. subject: "",
  1196. },
  1197. activeId: "",
  1198. soundList: [],
  1199. orderForm: [],
  1200. paymentStatus: false,
  1201. paymentForm: {
  1202. paymentExpireDate: null,
  1203. // feeType: null
  1204. },
  1205. paymentRules: {
  1206. paymentExpireDate: [
  1207. { required: true, message: "请设置缴费截止日期", trigger: "blur" },
  1208. ],
  1209. },
  1210. paymentNum: 0, // 缴费了多少人
  1211. qrcodeStatus: false, // 生成二维码
  1212. qrcodes: true,
  1213. qrcode: null,
  1214. codeUrl: null,
  1215. qrcodeStatus2: false, // 生成二维码
  1216. qrcodes2: true,
  1217. qrcode2: null,
  1218. codeUrl2: null,
  1219. codeStatus: false,
  1220. codeTitle: null,
  1221. qrCodeUrl: null,
  1222. organId: "",
  1223. extendPaymentStatus: false,
  1224. extendForm: {
  1225. expireDate: null,
  1226. },
  1227. extendRule: {
  1228. expireDate: [
  1229. { required: true, message: "请选择延长时间", trigger: "change" },
  1230. ],
  1231. },
  1232. quitRules: {
  1233. isCloudTeacherAmount: [{ required: true, message: "请输入云教练费用" }],
  1234. cloudTeacherAmount: [
  1235. { required: true, message: "请输入云教练金额", trigger: "blur" },
  1236. ],
  1237. isRefundCourseFee: [
  1238. { required: true, message: "请选择是否退还课程费用" },
  1239. ],
  1240. isRefundInstrumentFee: [
  1241. { required: true, message: "选择是否退还乐器费用" },
  1242. ],
  1243. isRefundTeachingAssistantsFee: [
  1244. { required: true, message: "选择是否退还教辅费用" },
  1245. ],
  1246. isMaintenanceFee: [{ required: true, message: "选择是否退还乐保费用" }],
  1247. maintenanceFee: [{ required: true, message: "请输入退还乐保金额" }],
  1248. reason: [{ required: true, message: "请填写退团退费原因" }],
  1249. },
  1250. applyExpireDate: "",
  1251. paymentExpireDate: "",
  1252. activeRow: { hasMaintenance: false },
  1253. visitVisiable: false,
  1254. visitForm: {
  1255. musicGroupId: "",
  1256. overview: "",
  1257. purpose: "",
  1258. studentId: "",
  1259. type: "",
  1260. visitTime: "",
  1261. visitType: "",
  1262. feedback: "",
  1263. studentName: "",
  1264. },
  1265. visitChiose,
  1266. visitRules: {
  1267. overview: [{ required: true, message: "请输入学生近况" }],
  1268. feedback: [{ required: true, message: "请输入家长反馈" }],
  1269. visitTime: [{ required: true, message: "请输入回访时间" }],
  1270. visitType: [{ required: true, message: "请选择回访类型" }],
  1271. },
  1272. isPay: false,
  1273. applyDates: this.applyDate(),
  1274. detail: null,
  1275. gradeList: [],
  1276. ischeckCanReg: false,
  1277. courseViewType: null, // 乐团模式
  1278. isManage: false,
  1279. gradeListObj: {},
  1280. meetingStatus: false,
  1281. meetingForm: {
  1282. meetingDate: null,
  1283. address: null,
  1284. },
  1285. sysMsg: "",
  1286. };
  1287. },
  1288. created() {},
  1289. async mounted() {
  1290. // 通过乐团状态判断显示隐藏的东西
  1291. let isSuperAdmin = this.$store.getters.isSuperAdmin;
  1292. let roles = this.$store.getters.roles;
  1293. if (isSuperAdmin) {
  1294. this.isManage = "super";
  1295. } else {
  1296. if (roles.indexOf(3) != -1) {
  1297. this.isManage = "manage";
  1298. } else {
  1299. this.isManage = false;
  1300. }
  1301. }
  1302. if (roles.indexOf(3) != -1 && roles.indexOf(4) != -1) {
  1303. this.isManage = "super";
  1304. }
  1305. // 获取短信模板
  1306. const rus = await getSysMessageConfig({
  1307. type: "STUDENT_SMS_IM_MUSIC_GROUP_PARENT_MEETING_NOTICE",
  1308. });
  1309. this.sysMsg = rus.data?.content || "";
  1310. this.init();
  1311. },
  1312. activated() {
  1313. this.init();
  1314. },
  1315. filters: {
  1316. filtersPayingStatus(val) {
  1317. let obj = {
  1318. 0: "--",
  1319. 1: "缴费中",
  1320. 2: "审核中",
  1321. };
  1322. return obj[val];
  1323. },
  1324. },
  1325. methods: {
  1326. permission(str) {
  1327. return permission(str);
  1328. },
  1329. async init() {
  1330. this.status = this.$route.query.team_status;
  1331. // 通过乐团id 获取乐团招生状态
  1332. this.id = this.$route.query.id;
  1333. this.teamName = this.$route.query.name;
  1334. // 判断是否带缓存参数
  1335. this.pickerOptions = this.beginDate(new Date());
  1336. // checkCanReg
  1337. try {
  1338. this.ischeckCanReg = await (
  1339. await checkCanReg({ musicGroupId: this.id })
  1340. ).data;
  1341. } catch (e) {
  1342. console.log(e);
  1343. }
  1344. getMusicGroupGradeList({ musicGroupId: this.id }).then((res) => {
  1345. let result = res.data;
  1346. this.gradeListObj = res.data;
  1347. if (res.code == 200 && result) {
  1348. for (let i in result) {
  1349. this.gradeList.push({
  1350. value: i,
  1351. label: result[i],
  1352. });
  1353. }
  1354. }
  1355. });
  1356. getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
  1357. if (res.code == 200) {
  1358. this.organId = res.data.musicGroup.organId;
  1359. this.courseViewType = res.data.musicGroup.courseViewType;
  1360. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  1361. this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
  1362. }
  1363. });
  1364. // 根据乐团id获乐团声部
  1365. findSound({ musicGroupId: this.id }).then((res) => {
  1366. if (res.code == 200) {
  1367. this.soundList = res.data;
  1368. }
  1369. });
  1370. // 通过乐团id获取乐团学生列表
  1371. this.getList();
  1372. },
  1373. search() {
  1374. this.rules.page = 1;
  1375. this.getList();
  1376. },
  1377. onReset() {
  1378. this.rules.page = 1;
  1379. this.rules.limit = 10;
  1380. this.searchFrom = {
  1381. name: null,
  1382. subject: null, // 专业
  1383. isAllowAdjust: null, // 是否允许调剂
  1384. currentGrade: null,
  1385. paymentStatus: null,
  1386. visited: null,
  1387. hasCloudTeacher: null,
  1388. payingStatus: null,
  1389. studentStatus: null,
  1390. noneNeedCloudTeacher: null,
  1391. };
  1392. this.getList();
  1393. },
  1394. onCancel() {
  1395. this.$store.dispatch("delVisitedViews", this.$route);
  1396. this.$router.push({ path: "/teamList" });
  1397. },
  1398. payStart() {
  1399. this.paymentStatus = true;
  1400. getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
  1401. if (res.code == 200) {
  1402. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  1403. this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
  1404. }
  1405. });
  1406. },
  1407. getList() {
  1408. let obj = {
  1409. musicGroupId: this.id,
  1410. actualSubjectId: this.searchFrom.subject || null,
  1411. isAllowAdjust: this.searchFrom.isAllowAdjust || null,
  1412. name: this.searchFrom.name || null,
  1413. currentGrade: this.searchFrom.currentGrade || null,
  1414. paymentStatus: this.searchFrom.paymentStatus || null,
  1415. visited: this.searchFrom.visited || null,
  1416. hasCloudTeacher: this.searchFrom.hasCloudTeacher,
  1417. payingStatus: this.searchFrom.payingStatus,
  1418. studentStatus: this.searchFrom.studentStatus,
  1419. noneNeedCloudTeacher: this.searchFrom.noneNeedCloudTeacher,
  1420. page: this.rules.page,
  1421. rows: this.rules.limit,
  1422. };
  1423. // 根据乐团id获取学团情况
  1424. getintoClass({ musicGroupId: this.id }).then((res) => {
  1425. if (res.code == 200) {
  1426. this.leftList = res.data;
  1427. }
  1428. });
  1429. return getStudentList(obj).then((res) => {
  1430. if (res.code == 200) {
  1431. res.data.rows.forEach((item) => {
  1432. // '未开启缴费', '开启缴费', '已缴费'
  1433. if (item.paymentStatus == 2) {
  1434. this.paymentNum += 1;
  1435. }
  1436. });
  1437. this.rightList = res.data.rows;
  1438. this.rules.total = res.data.total;
  1439. return res;
  1440. }
  1441. });
  1442. },
  1443. onStartPayment(formName) {
  1444. // 开启缴费
  1445. this.$refs[formName].validate((valid) => {
  1446. if (valid) {
  1447. musicGroupOpenPay({
  1448. musicGroupId: this.id,
  1449. expireDate: this.paymentForm.paymentExpireDate,
  1450. // feeType: this.paymentForm.feeType
  1451. }).then((res) => {
  1452. if (res.code == 200) {
  1453. this.$message.success("开启成功");
  1454. this.paymentStatus = false;
  1455. this.$store.dispatch("delVisitedViews", this.$route);
  1456. this.$router.push({
  1457. path: "/teamList",
  1458. });
  1459. this.status = "PAY";
  1460. this.paymentExpireDate = this.paymentForm.paymentExpireDate;
  1461. this.getList();
  1462. }
  1463. });
  1464. } else {
  1465. return false;
  1466. }
  1467. });
  1468. },
  1469. onSelectAll() {
  1470. // 选中全部
  1471. this.$refs.multipleTable.toggleAllSelection();
  1472. },
  1473. onPartPayment() {
  1474. // 部分缴费
  1475. let selection = this.multipleSelection;
  1476. if (selection.length <= 0) {
  1477. this.$message.error("您还没有选择学生");
  1478. return false;
  1479. }
  1480. let ids = [];
  1481. selection.forEach((item) => {
  1482. ids.push(item.id);
  1483. });
  1484. this.$confirm(`是否确认开启缴费?`, "提示", {
  1485. confirmButtonText: "确定",
  1486. cancelButtonText: "取消",
  1487. type: "warning",
  1488. })
  1489. .then(() => {
  1490. openPayment({
  1491. ids: ids.join(","),
  1492. }).then((res) => {
  1493. if (res.code == 200) {
  1494. this.$message.success("开启成功");
  1495. this.getList();
  1496. } else {
  1497. this.$message.error(res.msg);
  1498. }
  1499. });
  1500. })
  1501. .catch(() => {});
  1502. },
  1503. onCreateQRCode(type) {
  1504. // 生成报名二维码
  1505. let id = this.id;
  1506. this.codeStatus = true;
  1507. let tenantConfig = sessionStorage.getItem('tenantConfig')
  1508. tenantConfig = tenantConfig ? JSON.parse(tenantConfig) : {}
  1509. const tenantId = tenantConfig.tenantId || 0
  1510. if (type == "payment") {
  1511. this.codeTitle = "学员报名链接";
  1512. this.qrCodeUrl = vaildStudentUrl() + "/#/login?musicGroupId=" + id + '&organId=' + this.organId+ '&tenantId=' + tenantId;
  1513. } else if (type == "detail") {
  1514. let teamName = this.$route.query.name;
  1515. this.codeTitle = "报名缴费详情";
  1516. this.qrCodeUrl =
  1517. vaildTeacherUrl() +
  1518. "/#/order?musicGroupId=" +
  1519. id +
  1520. "&musicGroupName=" +
  1521. teamName;
  1522. } else if (type == "rePayment") {
  1523. this.codeTitle = "学生报名链接(无乐器)";
  1524. this.qrCodeUrl =
  1525. vaildStudentUrl() + "/#/login?musicGroupId=" + id + '&organId=' + this.organId + '&tenantId=' + tenantId + "&instrument=1";
  1526. }
  1527. },
  1528. onCreateQRCode2() {
  1529. // 生成报名二维码
  1530. this.qrcodeStatus2 = true;
  1531. let id = this.id;
  1532. let teamName = this.$route.query.name;
  1533. setTimeout(() => {
  1534. document.getElementById("qrcode2").innerHTML = "";
  1535. this.qrcode2 = new QRCode("qrcode2", {
  1536. width: 200,
  1537. height: 200,
  1538. colorDark: "#000000",
  1539. colorLight: "#ffffff",
  1540. correctLevel: QRCode.CorrectLevel.H,
  1541. });
  1542. this.qrcode2.makeCode(
  1543. vaildTeacherUrl() +
  1544. "/#/order?musicGroupId=" +
  1545. id +
  1546. "&musicGroupName=" +
  1547. teamName
  1548. );
  1549. this.codeUrl2 =
  1550. vaildTeacherUrl() +
  1551. "/#/order?musicGroupId=" +
  1552. id +
  1553. "&musicGroupName=" +
  1554. teamName;
  1555. }, 500);
  1556. },
  1557. onDownLoadExecl() {
  1558. // 报表导出
  1559. let url = "/api-web/studentRegistration/queryStudentApplyDetailExport";
  1560. let data = {
  1561. musicGroupId: this.$route.query.id,
  1562. page: 1,
  1563. rows: 9999,
  1564. };
  1565. const options = {
  1566. method: "POST",
  1567. headers: {
  1568. Authorization: getToken(),
  1569. tenantId: getTenantId()
  1570. },
  1571. data: qs.stringify(data),
  1572. url,
  1573. responseType: "blob",
  1574. };
  1575. this.$confirm("您确定导出吗?", "提示", {
  1576. confirmButtonText: "确定",
  1577. cancelButtonText: "取消",
  1578. type: "warning",
  1579. })
  1580. .then(() => {
  1581. load.startLoading();
  1582. axios(options)
  1583. .then((res) => {
  1584. let blob = new Blob([res.data], {
  1585. // type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
  1586. type: "application/vnd.ms-excel;charset=utf-8",
  1587. //word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
  1588. });
  1589. let text = new Response(blob).text();
  1590. text.then((res) => {
  1591. // 判断是否报错
  1592. if (res.indexOf("code") != -1) {
  1593. let json = JSON.parse(res);
  1594. this.$message.error(json.msg);
  1595. } else {
  1596. let objectUrl = URL.createObjectURL(blob);
  1597. let link = document.createElement("a");
  1598. let nowTime = new Date();
  1599. let ymd =
  1600. nowTime.getFullYear() +
  1601. "" +
  1602. (nowTime.getMonth() + 1) +
  1603. "" +
  1604. nowTime.getDate() +
  1605. "" +
  1606. nowTime.getHours() +
  1607. "" +
  1608. nowTime.getMinutes();
  1609. let fname = this.$route.query.id + "-" + ymd + ".xls"; //下载文件的名字
  1610. link.href = objectUrl;
  1611. link.setAttribute("download", fname);
  1612. document.body.appendChild(link);
  1613. link.click();
  1614. }
  1615. });
  1616. load.endLoading();
  1617. })
  1618. .catch((error) => {
  1619. this.$message.error("导出数据失败,请联系管理员");
  1620. load.endLoading();
  1621. });
  1622. })
  1623. .catch(() => {});
  1624. },
  1625. onGoHome() {
  1626. // 确认开团
  1627. // 判断是否有学生缴费
  1628. if (this.paymentNum <= 0) {
  1629. this.$message.error("当前缴费人数为0,无法开团");
  1630. return;
  1631. }
  1632. this.$confirm(`是否确认开团?`, "提示", {
  1633. confirmButtonText: "确定",
  1634. cancelButtonText: "取消",
  1635. type: "warning",
  1636. })
  1637. .then(() => {
  1638. musicGroupFound({
  1639. musicGroupId: this.$route.query.id,
  1640. }).then((res) => {
  1641. if (res.code == 200) {
  1642. // let query = this.$route.query;
  1643. // this.$message.success("开启成功");
  1644. // this.$router.push({
  1645. // path: "/teamList",
  1646. // query: {
  1647. // ...query,
  1648. // },
  1649. // });
  1650. this.onCancel();
  1651. }
  1652. });
  1653. })
  1654. .catch(() => {});
  1655. },
  1656. onClose() {
  1657. // 停止乐团
  1658. this.$confirm("您确定停止乐团吗?", "提示", {
  1659. confirmButtonText: "确定",
  1660. cancelButtonText: "取消",
  1661. type: "warning",
  1662. })
  1663. .then(() => {
  1664. cancelMusicGroup({
  1665. musicGroupId: this.$route.query.id,
  1666. }).then((res) => {
  1667. if (res.code == 200) {
  1668. this.$message.success("停止成功");
  1669. this.$store.dispatch("delVisitedViews", this.$route);
  1670. this.$router.push({
  1671. path: "/teamList",
  1672. });
  1673. }
  1674. });
  1675. })
  1676. .catch(() => {});
  1677. },
  1678. handleSelectionChange(val) {
  1679. this.multipleSelection = val;
  1680. },
  1681. // 修改专业
  1682. resetSubject(row) {
  1683. this.activeId = row.studentId;
  1684. this.maskForm.subject = row.actualSubjectId;
  1685. this.subjectVisible = true;
  1686. // resetStudentSubject().then(res=>{]})
  1687. },
  1688. // 确认修改
  1689. okReset() {
  1690. if (!this.maskForm.subject) {
  1691. this.$message.error("请选择调剂专业");
  1692. return;
  1693. }
  1694. resetStudentSubject({
  1695. musicGroupId: this.id,
  1696. userId: this.activeId,
  1697. subId: this.maskForm.subject,
  1698. }).then((res) => {
  1699. if (res.code == 200) {
  1700. this.$message.success("修改成功");
  1701. this.subjectVisible = false;
  1702. this.maskForm.subject = "";
  1703. getintoClass({ musicGroupId: this.id }).then((res) => {
  1704. if (res.code == 200) {
  1705. this.leftList = res.data;
  1706. }
  1707. });
  1708. this.getList();
  1709. }
  1710. });
  1711. },
  1712. onExtendPayment(formName, isPay) {
  1713. this.$refs[formName].validate((valid) => {
  1714. if (valid) {
  1715. if (!isPay) {
  1716. extensionApplyExpire({
  1717. musicGroupId: this.id,
  1718. expireDate: this.extendForm.expireDate,
  1719. }).then((res) => {
  1720. if (res.code == 200) {
  1721. this.$message.success("延长报名成功");
  1722. this.extendPaymentStatus = false;
  1723. getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
  1724. if (res.code == 200) {
  1725. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  1726. }
  1727. });
  1728. } else {
  1729. this.$message.error(res.msg);
  1730. }
  1731. });
  1732. } else {
  1733. extensionPayment({
  1734. musicGroupId: this.id,
  1735. expireDate: this.extendForm.expireDate,
  1736. }).then((res) => {
  1737. if (res.code == 200) {
  1738. this.$message.success("延长缴费成功");
  1739. this.extendPaymentStatus = false;
  1740. getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
  1741. if (res.code == 200) {
  1742. this.paymentExpireDate =
  1743. res.data.musicGroup.paymentExpireDate;
  1744. }
  1745. });
  1746. } else {
  1747. this.$message.error(res.msg);
  1748. }
  1749. });
  1750. }
  1751. }
  1752. });
  1753. },
  1754. async lookdetail(row) {
  1755. await getStudentFeeDetail({
  1756. musicGroupId: this.id,
  1757. studentId: row.studentId,
  1758. }).then((res) => {
  1759. if (res.code == 200) {
  1760. const paymentList = res.data || [];
  1761. paymentList.forEach((item) => {
  1762. if (item.type == "MAINTENANCE") {
  1763. item.name = "乐器保养";
  1764. } else if (
  1765. item.type == "CLOUD_TEACHER" ||
  1766. item.type == "CLOUD_TEACHER_PLUS"
  1767. ) {
  1768. item.name = "乐器练习云教练";
  1769. } else if (item.type == "COURSE") {
  1770. item.name = "课程";
  1771. }
  1772. if (courseType[item.type]) {
  1773. item.name = courseType[item.type];
  1774. }
  1775. });
  1776. this.orderForm = paymentList;
  1777. }
  1778. });
  1779. this.activeId = row.studentId;
  1780. this.orderVisible = true;
  1781. },
  1782. saveIsEdit() {
  1783. // 提交数据
  1784. this.isEdit = false;
  1785. resetPlanNum(this.leftList).then((res) => {});
  1786. },
  1787. async quitTeam(row) {
  1788. try {
  1789. const res = await getRefundsDetail({
  1790. musicGroupId: this.$route.query.id,
  1791. userId: row.studentId,
  1792. });
  1793. this.quitForm = {
  1794. ...this.quitForm,
  1795. ...res.data,
  1796. courseViewType: this.courseViewType,
  1797. studentName: row.studentName,
  1798. musicGroupName: this.teamName,
  1799. hasMaintenance: row.hasMaintenance,
  1800. };
  1801. this.activeRow = { ...row, ...res.data };
  1802. this.activeRow.courseViewType = this.courseViewType;
  1803. this.quitVisible = true;
  1804. // this.quitForm.cloudTeacherAmount = row.cloudTeacherAmount;
  1805. } catch (e) {
  1806. console.log(e);
  1807. }
  1808. // 查询退团费用
  1809. },
  1810. // quieTeams(row) {
  1811. // this.$prompt("请输入退团原因", "提示", {
  1812. // confirmButtonText: "确定",
  1813. // cancelButtonText: "取消",
  1814. // inputPattern: /\S/,
  1815. // inputErrorMessage: "请输入退团原因",
  1816. // type: "warning",
  1817. // })
  1818. // .then((val) => {
  1819. // // 发请求 退团
  1820. // StudentQuit({
  1821. // musicGroupId: this.id,
  1822. // userId: row.studentId,
  1823. // reason: val.value,
  1824. // isRefundCourseFee: false,
  1825. // isRefundInstrumentFee: false,
  1826. // isRefundTeachingAssistantsFee: false,
  1827. // isRefundMemberFee: false,
  1828. // }).then((res) => {
  1829. // this.quitForm = {
  1830. // // 退团信息确认
  1831. // isRefundCourseFee: null,
  1832. // isRefundInstrumentFee: null,
  1833. // isRefundTeachingAssistantsFee: null,
  1834. // isMaintenanceFee: null,
  1835. // cloudTeacherAmount: null,
  1836. // isCloudTeacherAmount: null,
  1837. // maintenanceFee: 0,
  1838. // reason: "",
  1839. // };
  1840. // if (res.code == 200) {
  1841. // this.$message.success("退团成功");
  1842. // this.getList();
  1843. // this.quitVisible = false;
  1844. // }
  1845. // });
  1846. // })
  1847. // .catch(() => {});
  1848. // },
  1849. chioseType() {
  1850. this.$refs["quitForm"].$refs["quitForm"].validate((res) => {
  1851. if (res) {
  1852. this.$confirm("确定退团?", "提示", {
  1853. confirmButtonText: "确定",
  1854. cancelButtonText: "取消",
  1855. type: "warning",
  1856. })
  1857. .then(() => {
  1858. let row = this.activeRow;
  1859. let params = {
  1860. ...this.quitForm,
  1861. musicGroupId: this.id,
  1862. userId: row.studentId,
  1863. reason: this.quitForm.reason,
  1864. isRefundCourseFee: this.quitForm.isRefundCourseFee,
  1865. isRefundInstrumentFee: this.quitForm.isRefundInstrumentFee,
  1866. isRefundTeachingAssistantsFee:
  1867. this.quitForm.isRefundTeachingAssistantsFee,
  1868. maintenanceFee: this.quitForm.maintenanceFee,
  1869. isRefundMemberFee: this.quitForm.isRefundMemberFee,
  1870. };
  1871. params.returnFeeDto = {
  1872. accessoriesFee: params.accessoriesFee,
  1873. courseFee: params.courseFee,
  1874. isReturnAccessoriesFee: params.isReturnAccessoriesFee,
  1875. isReturnCourseFee: params.isReturnCourseFee,
  1876. isReturnMaintenanceFee: params.isReturnMaintenanceFee,
  1877. isReturnMemberFee: params.isReturnMemberFee,
  1878. isReturnMusicalFee: params.isReturnMusicalFee,
  1879. maintenanceFee: params.maintenanceFee,
  1880. memberFee: params.memberFee,
  1881. musicalFee: params.musicalFee,
  1882. };
  1883. if (this.isManage) {
  1884. params.status = "APPROVED";
  1885. } else {
  1886. params.status = "PROCESSING";
  1887. }
  1888. // 发请求 退团
  1889. applyMusicGroupQuit(params).then((res) => {
  1890. if (res.code == 200) {
  1891. this.quitForm = {
  1892. // 退团信息确认
  1893. isRefundCourseFee: null,
  1894. isRefundInstrumentFee: null,
  1895. isRefundTeachingAssistantsFee: null,
  1896. reason: "",
  1897. courseViewType: null,
  1898. hasMaintenance: null,
  1899. studentName: null,
  1900. musicGroupName: null,
  1901. isVisit: false,
  1902. reason: "",
  1903. userComment: null,
  1904. };
  1905. if (this.isManage == "super") {
  1906. this.$message.success("退团成功");
  1907. } else {
  1908. this.$message.success("退团申请成功");
  1909. }
  1910. this.getList();
  1911. this.quitVisible = false;
  1912. }
  1913. });
  1914. })
  1915. .catch(() => {});
  1916. } else {
  1917. }
  1918. });
  1919. // row.typeVisible = false;
  1920. },
  1921. addVisit(row) {
  1922. // this.visitForm.studentName = row.studentName;
  1923. // this.visitForm.musicGroupId = this.teamid;
  1924. // this.visitForm.studentId = row.studentId;
  1925. row.userId = row.studentId;
  1926. this.detail = row;
  1927. this.detail.musicGroupId = this.$route.query.id;
  1928. this.visitVisiable = true;
  1929. },
  1930. openChangeVoice(row) {
  1931. this.getList().then((res) => {
  1932. for (const item of res.data.rows) {
  1933. if (item.id === row.id) {
  1934. this.rowDetail = { ...item, userId: item.studentId };
  1935. this.changeVoiceVisible = true;
  1936. }
  1937. }
  1938. });
  1939. },
  1940. closeChangeVoice() {
  1941. this.changeVoiceVisible = false;
  1942. // this.rowDetail = null
  1943. },
  1944. handleChange(val) {
  1945. this.visitForm.type = val[0];
  1946. this.visitForm.purpose = val[1];
  1947. },
  1948. submitAddVisit() {
  1949. this.$refs.visitForm.validate((res) => {
  1950. if (res) {
  1951. this.visitForm.visitType = null;
  1952. this.visitForm.musicGroupId = this.id;
  1953. addVisit(cleanDeep(this.visitForm)).then((res) => {
  1954. if (res.code === 200) {
  1955. this.$message.success("新增成功");
  1956. this.visitVisiable = false;
  1957. }
  1958. });
  1959. }
  1960. });
  1961. },
  1962. beginDate(date) {
  1963. let self = this;
  1964. return {
  1965. firstDayOfWeek: 1,
  1966. disabledDate(time) {
  1967. return time.getTime() >= date.getTime(); //开始时间不选时,结束时间最大值小于等于当天
  1968. },
  1969. };
  1970. },
  1971. extendTime(isPay) {
  1972. this.isPay = isPay;
  1973. if (isPay) {
  1974. // 点击的延长缴费
  1975. this.extendForm.expireDate = this.paymentExpireDate;
  1976. } else {
  1977. // 点击的延长报名
  1978. this.extendForm.expireDate = this.applyExpireDate;
  1979. }
  1980. this.extendPaymentStatus = true;
  1981. },
  1982. payDate() {
  1983. let self = this;
  1984. return {
  1985. firstDayOfWeek: 1,
  1986. disabledDate(time) {
  1987. return time.getTime() + 86400000 < new Date().getTime();
  1988. },
  1989. };
  1990. },
  1991. applyDate() {
  1992. let self = this;
  1993. return {
  1994. firstDayOfWeek: 1,
  1995. disabledDate(time) {
  1996. return time.getTime() + 86400000 < new Date().getTime();
  1997. },
  1998. };
  1999. },
  2000. checkboxSelect(row) {
  2001. return row.paymentStatus == 0;
  2002. },
  2003. relieve(row) {
  2004. this.$confirm("操作后该学员即可不购买云教练缴费入团", "提示", {
  2005. confirmButtonText: "确定",
  2006. cancelButtonText: "取消",
  2007. type: "warning",
  2008. }).then(async () => {
  2009. try {
  2010. const res = await setNoneCloudTeacher({ id: row.id });
  2011. console.log("code", res.code);
  2012. if (res.code == 200) {
  2013. this.$message.success("解除预约成功");
  2014. this.getList();
  2015. } else if (res.code == 100) {
  2016. this.$confirm(res.msg, "提示", {
  2017. confirmButtonText: "确定",
  2018. cancelButtonText: "取消",
  2019. type: "warning",
  2020. }).then(async (some) => {
  2021. const res = await setNoneCloudTeacher({
  2022. id: row.id,
  2023. isContinue: true,
  2024. });
  2025. if (res.code == 200) {
  2026. this.$message.success("解除预约成功");
  2027. this.getList();
  2028. }
  2029. });
  2030. }
  2031. } catch (e) {
  2032. console.log("错误", e);
  2033. }
  2034. });
  2035. },
  2036. failedRelieve(row) {
  2037. this.$confirm("拒绝后学员需购买会员方可入团", "提示", {
  2038. confirmButtonText: "确定",
  2039. cancelButtonText: "取消",
  2040. type: "warning",
  2041. }).then(async () => {
  2042. try {
  2043. const res = await setCloudTeacherToFailed({ id: row.id });
  2044. this.$message.success("操作成功");
  2045. this.getList();
  2046. } catch (e) {
  2047. console.log(e);
  2048. }
  2049. });
  2050. },
  2051. getCheckNum(row, type) {
  2052. this.rules.page = 1;
  2053. this.rules.limit = 10;
  2054. this.searchFrom = {
  2055. name: null,
  2056. subject: null, // 专业
  2057. isAllowAdjust: null, // 是否允许调剂
  2058. currentGrade: null,
  2059. paymentStatus: null,
  2060. visited: null,
  2061. hasCloudTeacher: null,
  2062. payingStatus: null,
  2063. studentStatus: null,
  2064. noneNeedCloudTeacher: null,
  2065. };
  2066. this.searchFrom.subject = row.subjectId;
  2067. if (type == "buyCloud") {
  2068. this.searchFrom.hasCloudTeacher = 1;
  2069. } else if (type == "noCloud") {
  2070. this.searchFrom.hasCloudTeacher = 0;
  2071. this.searchFrom.studentStatus = "NORMAL";
  2072. } else {
  2073. this.searchFrom.payingStatus = 2;
  2074. this.searchFrom.hasCloudTeacher = 0;
  2075. }
  2076. this.search();
  2077. },
  2078. getpayingNum(row) {
  2079. this.rules.page = 1;
  2080. this.rules.limit = 10;
  2081. this.searchFrom = {
  2082. name: null,
  2083. subject: null, // 专业
  2084. isAllowAdjust: null, // 是否允许调剂
  2085. currentGrade: null,
  2086. paymentStatus: null,
  2087. visited: null,
  2088. hasCloudTeacher: null,
  2089. payingStatus: null,
  2090. studentStatus: null,
  2091. noneNeedCloudTeacher: null,
  2092. };
  2093. this.searchFrom.subject = row.subjectId;
  2094. this.searchFrom.payingStatus = 1;
  2095. this.search();
  2096. },
  2097. getpayNum(row) {
  2098. this.rules.page = 1;
  2099. this.rules.limit = 10;
  2100. this.searchFrom = {
  2101. name: null,
  2102. subject: null, // 专业
  2103. isAllowAdjust: null, // 是否允许调剂
  2104. currentGrade: null,
  2105. paymentStatus: null,
  2106. visited: null,
  2107. hasCloudTeacher: null,
  2108. payingStatus: null,
  2109. studentStatus: null,
  2110. noneNeedCloudTeacher: null,
  2111. };
  2112. this.searchFrom.subject = row.subjectId;
  2113. this.searchFrom.paymentStatus = 2 + "";
  2114. this.search();
  2115. },
  2116. onCloseMeet() {
  2117. this.meetingForm = {
  2118. meetingDate: null,
  2119. address: null,
  2120. };
  2121. },
  2122. onMeetingPayment(formName) {
  2123. console.log(this.$refs.meetingForm.$refs[formName]);
  2124. this.$refs.meetingForm.$refs[formName].validate(async (valid) => {
  2125. if (valid) {
  2126. try {
  2127. await this.$confirm("您是否确定发送家长会通知?", "提示", {
  2128. confirmButtonText: "确定",
  2129. cancelButtonText: "取消",
  2130. type: "warning",
  2131. });
  2132. await sendParentMeetingNotice({
  2133. ...this.meetingForm,
  2134. musicGroupId: this.id,
  2135. });
  2136. this.$message.success("家长会通知已发送");
  2137. this.meetingStatus = false;
  2138. } catch (error) {}
  2139. }
  2140. });
  2141. },
  2142. },
  2143. watch: {
  2144. "quitForm.isMaintenanceFee"(val) {
  2145. if (val) {
  2146. this.quitForm.maintenanceFee = 300;
  2147. } else {
  2148. this.quitForm.maintenanceFee = 0;
  2149. }
  2150. },
  2151. orderVisible(val) {
  2152. if (!val) {
  2153. this.orderForm = [];
  2154. }
  2155. },
  2156. qrcodeStatus(val) {
  2157. if (!val) {
  2158. this.qrcode.clear();
  2159. }
  2160. },
  2161. qrcodeStatus2(val) {
  2162. if (!val) {
  2163. this.qrcode2.clear();
  2164. }
  2165. },
  2166. paymentStatus(val) {
  2167. if (!val) {
  2168. this.paymentForm = {
  2169. paymentExpireDate: null,
  2170. // feeType: null
  2171. };
  2172. }
  2173. },
  2174. quitVisible(val) {
  2175. if (!val) {
  2176. this.quitForm = {
  2177. // 退团信息确认
  2178. isRefundCourseFee: null,
  2179. isRefundInstrumentFee: null,
  2180. isRefundTeachingAssistantsFee: null,
  2181. courseViewType: null,
  2182. hasMaintenance: null,
  2183. studentName: null,
  2184. musicGroupName: null,
  2185. isVisit: false,
  2186. reason: "",
  2187. userComment: null,
  2188. };
  2189. this.$refs["quitForm"].$refs["quitForm"].resetFields();
  2190. }
  2191. },
  2192. // visitVisiable(val) {
  2193. // if (!val) {
  2194. // this.$refs["visitForm"].resetFields();
  2195. // }
  2196. // },
  2197. },
  2198. computed: {
  2199. sysMsgStr() {
  2200. let strArr = this.sysMsg.split("{}");
  2201. if (strArr.length == 3) {
  2202. return `${strArr[0]}<span style="color:red">"${
  2203. this.meetingForm.meetingDate ? this.meetingForm.meetingDate : "--"
  2204. }"</span>${strArr[1]}<span style="color:red">"${
  2205. this.meetingForm.address ? this.meetingForm.address : "--"
  2206. }"</span>
  2207. ${strArr[2]}`;
  2208. } else {
  2209. return ``;
  2210. }
  2211. },
  2212. allSubjectTotal(){
  2213. let allConut = 0;
  2214. this.leftList.forEach(item=>{
  2215. allConut+=Number(item.totalAmount)
  2216. })
  2217. return allConut
  2218. }
  2219. },
  2220. };
  2221. </script>
  2222. <style lang="scss" scoped>
  2223. .courseYellow {
  2224. color: #ff802c;
  2225. }
  2226. .hiddenwrap {
  2227. display: flex;
  2228. flex-direction: row;
  2229. align-items: center;
  2230. p {
  2231. font-size: 14px;
  2232. color: #606266;
  2233. line-height: 40px;
  2234. padding: 0 12px 0 0;
  2235. box-sizing: border-box;
  2236. font-weight: 700;
  2237. }
  2238. }
  2239. .auth {
  2240. display: inline-block;
  2241. & + .auth {
  2242. margin-left: 0px;
  2243. }
  2244. }
  2245. .dialog-footer.question {
  2246. display: flex;
  2247. flex-direction: row;
  2248. justify-content: space-between;
  2249. }
  2250. .sigup-container {
  2251. margin-left: 12px;
  2252. .topWrap {
  2253. padding: 18px 58px 18px 0;
  2254. // height: 136px;
  2255. background-color: #fff;
  2256. // display: flex;
  2257. // flex-direction: row;
  2258. // justify-content: space-between;
  2259. .msg.pay {
  2260. color: #f85043;
  2261. }
  2262. .msg {
  2263. text-align: right;
  2264. color: #f97215;
  2265. font-size: 32px;
  2266. font-weight: bold;
  2267. padding-top: 30px;
  2268. box-sizing: border-box;
  2269. img {
  2270. width: 36px;
  2271. height: 36px;
  2272. position: relative;
  2273. top: 5px;
  2274. margin-right: 8px;
  2275. }
  2276. }
  2277. h2 {
  2278. height: 48px;
  2279. line-height: 48px;
  2280. position: relative;
  2281. // padding-left: 30px;
  2282. font-size: 32px;
  2283. font-weight: 600;
  2284. margin-bottom: 10px;
  2285. display: flex;
  2286. flex-direction: row;
  2287. justify-content: flex-start;
  2288. align-items: center;
  2289. .term {
  2290. height: 32px;
  2291. line-height: 32px;
  2292. border-radius: 24px;
  2293. width: 100px;
  2294. color: var(--color-primary);
  2295. border: 1px solid var(--color-primary);
  2296. font-size: 14px;
  2297. text-align: center;
  2298. margin-right: 12px;
  2299. &:nth-child(1) {
  2300. margin-left: 47px;
  2301. }
  2302. }
  2303. .term.active {
  2304. color: #fff;
  2305. background-color: var(--color-primary);
  2306. }
  2307. .squrt {
  2308. position: absolute;
  2309. left: -25px;
  2310. top: 8px;
  2311. height: 34px;
  2312. width: 8px;
  2313. background-color: var(--color-primary);
  2314. }
  2315. }
  2316. .btnList {
  2317. display: flex;
  2318. flex-direction: row;
  2319. justify-content: flex-start;
  2320. align-items: center;
  2321. flex-wrap: wrap;
  2322. & > div {
  2323. margin-right: 15px;
  2324. margin-top: 10px;
  2325. }
  2326. }
  2327. .newBand.close {
  2328. background-color: #777;
  2329. border: 1px solid #777;
  2330. }
  2331. }
  2332. .searchList {
  2333. background-color: #fff;
  2334. padding: 0 58p 0 0px;
  2335. }
  2336. .sigup-core {
  2337. margin-top: 12px;
  2338. display: flex;
  2339. flex-direction: row;
  2340. justify-content: flex-start;
  2341. .left {
  2342. width: 400px;
  2343. background-color: #fff;
  2344. height: 80vh;
  2345. overflow: auto;
  2346. }
  2347. .right {
  2348. width: calc(100% - 400px);
  2349. margin-left: 12px;
  2350. flex-grow: 1;
  2351. }
  2352. }
  2353. }
  2354. .el-dialog__body {
  2355. overflow: hidden;
  2356. }
  2357. .left-code,
  2358. .right-code {
  2359. // width: 50%;
  2360. // float: left;
  2361. h2 {
  2362. font-size: 18px;
  2363. text-align: center;
  2364. padding-bottom: 8px;
  2365. }
  2366. .qrcode {
  2367. display: flex;
  2368. flex-direction: column;
  2369. align-items: center;
  2370. img {
  2371. width: 200px;
  2372. height: 200px;
  2373. margin: 0 auto;
  2374. }
  2375. }
  2376. .code-url {
  2377. font-size: 18px;
  2378. text-align: center;
  2379. padding: 15px 15px 0 15px;
  2380. }
  2381. }
  2382. .newBand {
  2383. margin-bottom: 0;
  2384. max-width: inherit;
  2385. }
  2386. /deep/.el-button--danger {
  2387. background: #f85043;
  2388. }
  2389. .paymentForm {
  2390. /deep/.el-input__inner,
  2391. /deep/.el-input.el-input--suffix {
  2392. width: 360px !important;
  2393. }
  2394. }
  2395. .popoverWrap {
  2396. p {
  2397. line-height: 25px;
  2398. }
  2399. }
  2400. /deep/.description-title {
  2401. margin-bottom: 0;
  2402. }
  2403. /deep/.description-label {
  2404. white-space: normal !important;
  2405. }
  2406. .left {
  2407. text-align: left;
  2408. }
  2409. .leftbtnWrap {
  2410. display: flex;
  2411. flex-direction: row;
  2412. justify-content: space-between;
  2413. align-items: center;
  2414. }
  2415. </style>