signupList.vue 50 KB

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