signupList.vue 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648
  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"></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.$router.push({ path: "/business/teamDetail" });
  865. },
  866. payStart() {
  867. this.paymentStatus = true;
  868. getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
  869. if (res.code == 200) {
  870. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  871. this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
  872. }
  873. });
  874. },
  875. getList() {
  876. let obj = {
  877. musicGroupId: this.id,
  878. actualSubjectId: this.searchFrom.subject || null,
  879. isAllowAdjust: this.searchFrom.isAllowAdjust || null,
  880. name: this.searchFrom.name || null,
  881. page: this.rules.page,
  882. rows: this.rules.limit,
  883. };
  884. // 根据乐团id获取学团情况
  885. getintoClass({ musicGroupId: this.id }).then((res) => {
  886. if (res.code == 200) {
  887. this.leftList = res.data;
  888. }
  889. });
  890. return getStudentList(obj).then((res) => {
  891. if (res.code == 200) {
  892. res.data.rows.forEach((item) => {
  893. // '未开启缴费', '开启缴费', '已缴费'
  894. if (item.paymentStatus == 2) {
  895. this.paymentNum += 1;
  896. }
  897. });
  898. this.rightList = res.data.rows;
  899. this.rules.total = res.data.total;
  900. return res;
  901. }
  902. });
  903. },
  904. onStartPayment(formName) {
  905. // 开启缴费
  906. this.$refs[formName].validate((valid) => {
  907. if (valid) {
  908. musicGroupOpenPay({
  909. musicGroupId: this.id,
  910. expireDate: this.paymentForm.paymentExpireDate,
  911. // feeType: this.paymentForm.feeType
  912. }).then((res) => {
  913. if (res.code == 200) {
  914. this.$message.success("开启成功");
  915. this.paymentStatus = false;
  916. this.$router.push({
  917. path: "/business/signupList",
  918. query: {
  919. status: "PAY",
  920. id: this.$route.query.id,
  921. name: this.$route.query.name,
  922. },
  923. });
  924. this.status = "PAY";
  925. this.paymentExpireDate = this.paymentForm.paymentExpireDate;
  926. this.getList();
  927. }
  928. });
  929. } else {
  930. return false;
  931. }
  932. });
  933. // this.id
  934. },
  935. onSelectAll() {
  936. // 选中全部
  937. this.$refs.multipleTable.toggleAllSelection();
  938. },
  939. onPartPayment() {
  940. // 部分缴费
  941. let selection = this.multipleSelection;
  942. if (selection.length <= 0) {
  943. this.$message.success("您还没有选择学生");
  944. return false;
  945. }
  946. let ids = [];
  947. selection.forEach((item) => {
  948. ids.push(item.id);
  949. });
  950. this.$confirm(`是否确认提前缴费?`, "提示", {
  951. confirmButtonText: "确定",
  952. cancelButtonText: "取消",
  953. type: "warning",
  954. })
  955. .then(() => {
  956. openPayment({
  957. ids: ids.join(","),
  958. }).then((res) => {
  959. if (res.code == 200) {
  960. this.$message.success("开启成功");
  961. this.getList();
  962. } else {
  963. this.$message.error(res.msg);
  964. }
  965. });
  966. })
  967. .catch(() => {});
  968. },
  969. onCreateQRCode() {
  970. // 生成报名二维码
  971. this.qrcodeStatus = true;
  972. let id = this.id;
  973. let teamName = this.$route.query.name;
  974. setTimeout(() => {
  975. document.getElementById("qrcode").innerHTML = "";
  976. this.qrcode = new QRCode("qrcode", {
  977. width: 200,
  978. height: 200,
  979. colorDark: "#000000",
  980. colorLight: "#ffffff",
  981. correctLevel: QRCode.CorrectLevel.H,
  982. });
  983. this.qrcode.makeCode(vaildStudentUrl() + "/#/login?musicGroupId=" + id);
  984. this.codeUrl = vaildStudentUrl() + "/#/login?musicGroupId=" + id;
  985. }, 500);
  986. },
  987. onCreateQRCode2() {
  988. // 生成报名二维码
  989. this.qrcodeStatus2 = true;
  990. let id = this.id;
  991. let teamName = this.$route.query.name;
  992. setTimeout(() => {
  993. document.getElementById("qrcode2").innerHTML = "";
  994. this.qrcode2 = new QRCode("qrcode2", {
  995. width: 200,
  996. height: 200,
  997. colorDark: "#000000",
  998. colorLight: "#ffffff",
  999. correctLevel: QRCode.CorrectLevel.H,
  1000. });
  1001. this.qrcode2.makeCode(
  1002. vaildTeacherUrl() +
  1003. "/#/order?musicGroupId=" +
  1004. id +
  1005. "&musicGroupName=" +
  1006. teamName
  1007. );
  1008. this.codeUrl2 =
  1009. vaildTeacherUrl() +
  1010. "/#/order?musicGroupId=" +
  1011. id +
  1012. "&musicGroupName=" +
  1013. teamName;
  1014. }, 500);
  1015. },
  1016. onDownLoadExecl() {
  1017. // 报表导出
  1018. let url = "/api-web/studentRegistration/queryStudentApplyDetailExport";
  1019. let data = {
  1020. musicGroupId: this.$route.query.id,
  1021. page: 1,
  1022. rows: 9999,
  1023. };
  1024. const options = {
  1025. method: "POST",
  1026. headers: {
  1027. Authorization: getToken(),
  1028. },
  1029. data: qs.stringify(data),
  1030. url,
  1031. responseType: "blob",
  1032. };
  1033. this.$confirm("您确定导出吗?", "提示", {
  1034. confirmButtonText: "确定",
  1035. cancelButtonText: "取消",
  1036. type: "warning",
  1037. })
  1038. .then(() => {
  1039. load.startLoading();
  1040. axios(options)
  1041. .then((res) => {
  1042. let blob = new Blob([res.data], {
  1043. // type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
  1044. type: "application/vnd.ms-excel;charset=utf-8",
  1045. //word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
  1046. });
  1047. let text = new Response(blob).text();
  1048. text.then((res) => {
  1049. // 判断是否报错
  1050. if (res.indexOf("code") != -1) {
  1051. let json = JSON.parse(res);
  1052. this.$message.error(json.msg);
  1053. } else {
  1054. let objectUrl = URL.createObjectURL(blob);
  1055. let link = document.createElement("a");
  1056. let nowTime = new Date();
  1057. let ymd =
  1058. nowTime.getFullYear() +
  1059. "" +
  1060. (nowTime.getMonth() + 1) +
  1061. "" +
  1062. nowTime.getDate() +
  1063. "" +
  1064. nowTime.getHours() +
  1065. "" +
  1066. nowTime.getMinutes();
  1067. let fname = this.$route.query.id + "-" + ymd + ".xls"; //下载文件的名字
  1068. link.href = objectUrl;
  1069. link.setAttribute("download", fname);
  1070. document.body.appendChild(link);
  1071. link.click();
  1072. }
  1073. });
  1074. load.endLoading();
  1075. })
  1076. .catch((error) => {
  1077. this.$message.error("导出数据失败,请联系管理员");
  1078. load.endLoading();
  1079. });
  1080. })
  1081. .catch(() => {});
  1082. },
  1083. onGoHome() {
  1084. // 确认开团
  1085. // 判断是否有学生缴费
  1086. if (this.paymentNum <= 0) {
  1087. this.$message.error("当前缴费人数为0,无法开团");
  1088. return;
  1089. }
  1090. this.$confirm(`是否确认开团?`, "提示", {
  1091. confirmButtonText: "确定",
  1092. cancelButtonText: "取消",
  1093. type: "warning",
  1094. })
  1095. .then(() => {
  1096. musicGroupFound({
  1097. musicGroupId: this.$route.query.id,
  1098. }).then((res) => {
  1099. if (res.code == 200) {
  1100. let query = this.$route.query;
  1101. this.$message.success("开启成功");
  1102. this.$router.push({
  1103. path: "/business/teamDetail",
  1104. query: {
  1105. ...query,
  1106. },
  1107. });
  1108. }
  1109. });
  1110. })
  1111. .catch(() => {});
  1112. },
  1113. onClose() {
  1114. // 停止乐团
  1115. this.$confirm("您确定停止乐团吗?", "提示", {
  1116. confirmButtonText: "确定",
  1117. cancelButtonText: "取消",
  1118. type: "warning",
  1119. })
  1120. .then(() => {
  1121. cancelMusicGroup({
  1122. musicGroupId: this.$route.query.id,
  1123. }).then((res) => {
  1124. if (res.code == 200) {
  1125. this.$message.success("停止成功");
  1126. this.$router.push({
  1127. path: "/business/teamDetail",
  1128. });
  1129. }
  1130. });
  1131. })
  1132. .catch(() => {});
  1133. },
  1134. handleSelectionChange(val) {
  1135. this.multipleSelection = val;
  1136. },
  1137. // 修改专业
  1138. resetSubject(row) {
  1139. this.activeId = row.studentId;
  1140. this.subjectVisible = true;
  1141. // resetStudentSubject().then(res=>{]})
  1142. },
  1143. // 确认修改
  1144. okReset() {
  1145. if (!this.maskForm.subject) {
  1146. this.$message.error("请选择调剂专业");
  1147. return;
  1148. }
  1149. resetStudentSubject({
  1150. musicGroupId: this.id,
  1151. userId: this.activeId,
  1152. subId: this.maskForm.subject,
  1153. }).then((res) => {
  1154. if (res.code == 200) {
  1155. this.$message.success("修改成功");
  1156. this.subjectVisible = false;
  1157. this.maskForm.subject = "";
  1158. getintoClass({ musicGroupId: this.id }).then((res) => {
  1159. if (res.code == 200) {
  1160. this.leftList = res.data;
  1161. }
  1162. });
  1163. this.getList();
  1164. }
  1165. });
  1166. },
  1167. onExtendPayment(formName, isPay) {
  1168. this.$refs[formName].validate((valid) => {
  1169. if (valid) {
  1170. if (!isPay) {
  1171. extensionApplyExpire({
  1172. musicGroupId: this.id,
  1173. expireDate: this.extendForm.expireDate,
  1174. }).then((res) => {
  1175. if (res.code == 200) {
  1176. this.$message.success("延长报名成功");
  1177. this.extendPaymentStatus = false;
  1178. getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
  1179. if (res.code == 200) {
  1180. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  1181. }
  1182. });
  1183. } else {
  1184. this.$message.error(res.msg);
  1185. }
  1186. });
  1187. } else {
  1188. extensionPayment({
  1189. musicGroupId: this.id,
  1190. expireDate: this.extendForm.expireDate,
  1191. }).then((res) => {
  1192. if (res.code == 200) {
  1193. this.$message.success("延长缴费成功");
  1194. this.extendPaymentStatus = false;
  1195. getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
  1196. if (res.code == 200) {
  1197. this.paymentExpireDate =
  1198. res.data.musicGroup.paymentExpireDate;
  1199. }
  1200. });
  1201. } else {
  1202. this.$message.error(res.msg);
  1203. }
  1204. });
  1205. }
  1206. }
  1207. });
  1208. },
  1209. lookdetail(row) {
  1210. this.orderVisible = true;
  1211. this.activeId = row.studentId;
  1212. this.orderForm.name = row.studentName;
  1213. this.orderForm.subject = row.subjectName;
  1214. getStudentFeeDetail({
  1215. musicGroupId: this.id,
  1216. studentId: row.studentId,
  1217. }).then((res) => {
  1218. if (res.code == 200) {
  1219. if (res.data) {
  1220. this.orderForm.totalAmount = res.data.totalAmount;
  1221. // this.orderForm.subjectFee = res.data.courseFee;
  1222. let goodStr = "";
  1223. let goodPrice = 0;
  1224. let otherStr = "";
  1225. let othersPrice = 0;
  1226. for (let i in res.data.goods) {
  1227. if (res.data.goods[i].goodsType == "INSTRUMENT") {
  1228. goodStr += res.data.goods[i].goodsName + ",";
  1229. goodPrice += parseFloat(res.data.goods[i].musicalFee);
  1230. // this.orderForm.axe = res.data.goods[i].goodsName;
  1231. // this.orderForm.axePrice = res.data.goods[i].musicalFee;
  1232. } else if (res.data.goods[i].goodsType == "ACCESSORIES") {
  1233. otherStr += res.data.goods[i].goodsName + ",";
  1234. othersPrice += parseFloat(res.data.goods[i].musicalFee);
  1235. // this.orderForm.others = res.data.goods[i].goodsName;
  1236. // this.orderForm.othersPrice = res.data.goods[i].musicalFee;
  1237. } else if (res.data.goods[i].goodsType == "COURSE") {
  1238. this.orderForm.subjectFee = res.data.goods[i].musicalFee;
  1239. }
  1240. }
  1241. this.orderForm.others = otherStr.substring(0, otherStr.length - 1);
  1242. this.orderForm.othersPrice = othersPrice;
  1243. this.orderForm.axe = goodStr.substring(0, goodStr.length - 1);
  1244. this.orderForm.axePrice = goodPrice;
  1245. }
  1246. }
  1247. });
  1248. },
  1249. saveIsEdit() {
  1250. // 提交数据
  1251. this.isEdit = false;
  1252. resetPlanNum(this.leftList).then((res) => {});
  1253. },
  1254. quitTeam(row) {
  1255. this.activeRow = row;
  1256. this.quitVisible = true;
  1257. },
  1258. quieTeams(row) {
  1259. this.$prompt("请输入退团原因", "提示", {
  1260. confirmButtonText: "确定",
  1261. cancelButtonText: "取消",
  1262. inputPattern: /\S/,
  1263. inputErrorMessage: "请输入退团原因",
  1264. type: "warning",
  1265. })
  1266. .then((val) => {
  1267. // 发请求 退团
  1268. StudentQuit({
  1269. musicGroupId: this.id,
  1270. userId: row.studentId,
  1271. reason: val.value,
  1272. isRefundCourseFee: false,
  1273. isRefundInstrumentFee: false,
  1274. isRefundTeachingAssistantsFee: false,
  1275. }).then((res) => {
  1276. this.quitForm = {
  1277. // 退团信息确认
  1278. isRefundCourseFee: null,
  1279. isRefundInstrumentFee: null,
  1280. isRefundTeachingAssistantsFee: null,
  1281. reason: "",
  1282. };
  1283. if (res.code == 200) {
  1284. this.$message.success("退团成功");
  1285. this.getList();
  1286. this.quitVisible = false;
  1287. }
  1288. });
  1289. })
  1290. .catch(() => {});
  1291. },
  1292. chioseType() {
  1293. this.$refs["quitForm"].validate((res) => {
  1294. if (res) {
  1295. this.$confirm("确定退团?", "提示", {
  1296. confirmButtonText: "确定",
  1297. cancelButtonText: "取消",
  1298. type: "warning",
  1299. })
  1300. .then(() => {
  1301. let row = this.activeRow;
  1302. // 发请求 退团
  1303. StudentQuit({
  1304. musicGroupId: this.id,
  1305. userId: row.studentId,
  1306. reason: this.quitForm.reason,
  1307. isRefundCourseFee: this.quitForm.isRefundCourseFee,
  1308. isRefundInstrumentFee: this.quitForm.isRefundInstrumentFee,
  1309. isRefundTeachingAssistantsFee: this.quitForm
  1310. .isRefundTeachingAssistantsFee,
  1311. }).then((res) => {
  1312. this.quitForm = {
  1313. // 退团信息确认
  1314. isRefundCourseFee: null,
  1315. isRefundInstrumentFee: null,
  1316. isRefundTeachingAssistantsFee: null,
  1317. reason: "",
  1318. };
  1319. if (res.code == 200) {
  1320. this.$message.success("退团成功");
  1321. this.getList();
  1322. this.quitVisible = false;
  1323. }
  1324. });
  1325. })
  1326. .catch(() => {});
  1327. } else {
  1328. }
  1329. });
  1330. // row.typeVisible = false;
  1331. },
  1332. addVisit(row) {
  1333. // this.visitForm.studentName = row.studentName;
  1334. // this.visitForm.musicGroupId = this.teamid;
  1335. // this.visitForm.studentId = row.studentId;
  1336. this.detail = row
  1337. this.visitVisiable = true;
  1338. },
  1339. openChangeVoice(row) {
  1340. this.getList().then((res) => {
  1341. for (const item of res.data.rows) {
  1342. if (item.id === row.id) {
  1343. this.rowDetail = { ...item };
  1344. this.changeVoiceVisible = true;
  1345. }
  1346. }
  1347. });
  1348. },
  1349. closeChangeVoice() {
  1350. this.changeVoiceVisible = false;
  1351. // this.rowDetail = null
  1352. },
  1353. handleChange(val) {
  1354. this.visitForm.type = val[0];
  1355. this.visitForm.purpose = val[1];
  1356. },
  1357. submitAddVisit() {
  1358. this.$refs.visitForm.validate((res) => {
  1359. if (res) {
  1360. this.visitForm.visitType = null;
  1361. this.visitForm.musicGroupId = this.id;
  1362. addVisit(cleanDeep(this.visitForm)).then((res) => {
  1363. if (res.code === 200) {
  1364. this.$message.success("新增成功");
  1365. this.visitVisiable = false;
  1366. }
  1367. });
  1368. }
  1369. });
  1370. },
  1371. beginDate(date) {
  1372. let self = this;
  1373. return {
  1374. firstDayOfWeek: 1,
  1375. disabledDate(time) {
  1376. return time.getTime() >= date.getTime(); //开始时间不选时,结束时间最大值小于等于当天
  1377. },
  1378. };
  1379. },
  1380. extendTime(isPay) {
  1381. this.isPay = isPay;
  1382. if (isPay) {
  1383. // 点击的延长缴费
  1384. this.extendForm.expireDate = this.paymentExpireDate;
  1385. } else {
  1386. // 点击的延长报名
  1387. this.extendForm.expireDate = this.applyExpireDate;
  1388. }
  1389. this.extendPaymentStatus = true;
  1390. },
  1391. applyDate() {
  1392. let self = this;
  1393. return {
  1394. firstDayOfWeek: 1,
  1395. disabledDate(time) {
  1396. if (self.paymentExpireDate) {
  1397. return (
  1398. time.getTime() >
  1399. new Date(self.paymentExpireDate.replace(/-/g, "/")).getTime()
  1400. );
  1401. } else {
  1402. return false;
  1403. }
  1404. },
  1405. };
  1406. },
  1407. payDate() {
  1408. let self = this;
  1409. return {
  1410. firstDayOfWeek: 1,
  1411. disabledDate(time) {
  1412. if (self.applyExpireDate) {
  1413. return (
  1414. time.getTime() <=
  1415. new Date(self.applyExpireDate.replace(/-/g, "/")).getTime()
  1416. );
  1417. } else {
  1418. return false;
  1419. }
  1420. },
  1421. };
  1422. },
  1423. },
  1424. watch: {
  1425. orderVisible(val) {
  1426. if (!val) {
  1427. this.orderForm = {
  1428. name: "",
  1429. totalAmount: "",
  1430. subject: "",
  1431. subjectFee: "",
  1432. axe: "",
  1433. axePrice: "",
  1434. others: "",
  1435. othersPrice: "",
  1436. };
  1437. }
  1438. },
  1439. qrcodeStatus(val) {
  1440. if (!val) {
  1441. this.qrcode.clear();
  1442. }
  1443. },
  1444. qrcodeStatus2(val) {
  1445. if (!val) {
  1446. this.qrcode2.clear();
  1447. }
  1448. },
  1449. paymentStatus(val) {
  1450. if (!val) {
  1451. this.paymentForm = {
  1452. paymentExpireDate: null,
  1453. // feeType: null
  1454. };
  1455. }
  1456. },
  1457. quitVisible(val) {
  1458. if (!val) {
  1459. this.quitForm = {
  1460. // 退团信息确认
  1461. isRefundCourseFee: null,
  1462. isRefundInstrumentFee: null,
  1463. isRefundTeachingAssistantsFee: null,
  1464. reason: "",
  1465. };
  1466. this.$refs["quitForm"].resetFields();
  1467. }
  1468. },
  1469. // visitVisiable(val) {
  1470. // if (!val) {
  1471. // this.$refs["visitForm"].resetFields();
  1472. // }
  1473. // },
  1474. },
  1475. };
  1476. </script>
  1477. <style lang="scss" scoped>
  1478. .dialog-footer.question{
  1479. display: flex;
  1480. flex-direction: row;
  1481. justify-content: space-between;
  1482. }
  1483. .sigup-container {
  1484. margin-left: 12px;
  1485. .topWrap {
  1486. padding: 18px 58px;
  1487. // height: 136px;
  1488. background-color: #fff;
  1489. display: flex;
  1490. flex-direction: row;
  1491. justify-content: space-between;
  1492. .msg.pay {
  1493. color: #f85043;
  1494. }
  1495. .msg {
  1496. text-align: right;
  1497. color: #f97215;
  1498. font-size: 32px;
  1499. font-weight: bold;
  1500. padding-top: 30px;
  1501. box-sizing: border-box;
  1502. img {
  1503. width: 36px;
  1504. height: 36px;
  1505. position: relative;
  1506. top: 5px;
  1507. margin-right: 8px;
  1508. }
  1509. }
  1510. h2 {
  1511. height: 48px;
  1512. line-height: 48px;
  1513. position: relative;
  1514. // padding-left: 30px;
  1515. font-size: 32px;
  1516. font-weight: 600;
  1517. margin-bottom: 10px;
  1518. display: flex;
  1519. flex-direction: row;
  1520. justify-content: flex-start;
  1521. align-items: center;
  1522. .term {
  1523. height: 32px;
  1524. line-height: 32px;
  1525. border-radius: 24px;
  1526. width: 100px;
  1527. color: #14928a;
  1528. border: 1px solid rgba(20, 146, 138, 1);
  1529. font-size: 14px;
  1530. text-align: center;
  1531. margin-right: 12px;
  1532. &:nth-child(1) {
  1533. margin-left: 47px;
  1534. }
  1535. }
  1536. .term.active {
  1537. color: #fff;
  1538. background-color: #14928a;
  1539. }
  1540. .squrt {
  1541. position: absolute;
  1542. left: -25px;
  1543. top: 8px;
  1544. height: 34px;
  1545. width: 8px;
  1546. background-color: #14928a;
  1547. }
  1548. }
  1549. .btnList {
  1550. display: flex;
  1551. flex-direction: row;
  1552. justify-content: flex-start;
  1553. align-items: center;
  1554. div {
  1555. margin-right: 15px;
  1556. }
  1557. }
  1558. .newBand.close {
  1559. background-color: #777;
  1560. border: 1px solid #777;
  1561. }
  1562. }
  1563. .searchList {
  1564. background-color: #fff;
  1565. padding: 0 58px;
  1566. }
  1567. .sigup-core {
  1568. margin-top: 12px;
  1569. display: flex;
  1570. flex-direction: row;
  1571. justify-content: flex-start;
  1572. .left {
  1573. width: 340px;
  1574. background-color: #fff;
  1575. height: 80vh;
  1576. overflow: auto;
  1577. }
  1578. .right {
  1579. width: calc(100% - 340px);
  1580. margin-left: 12px;
  1581. flex-grow: 1;
  1582. }
  1583. }
  1584. }
  1585. .el-dialog__body {
  1586. overflow: hidden;
  1587. }
  1588. .left-code,
  1589. .right-code {
  1590. // width: 50%;
  1591. // float: left;
  1592. h2 {
  1593. font-size: 18px;
  1594. text-align: center;
  1595. padding-bottom: 8px;
  1596. }
  1597. .qrcode {
  1598. display: flex;
  1599. flex-direction: column;
  1600. align-items: center;
  1601. img {
  1602. width: 200px;
  1603. height: 200px;
  1604. margin: 0 auto;
  1605. }
  1606. }
  1607. .code-url {
  1608. font-size: 18px;
  1609. text-align: center;
  1610. padding: 15px 15px 0 15px;
  1611. }
  1612. }
  1613. .newBand {
  1614. margin-bottom: 0;
  1615. }
  1616. /deep/.el-button--danger {
  1617. background: #f85043;
  1618. }
  1619. .paymentForm {
  1620. /deep/.el-input__inner,
  1621. /deep/.el-input.el-input--suffix {
  1622. width: 360px !important;
  1623. }
  1624. }
  1625. .popoverWrap {
  1626. p {
  1627. line-height: 25px;
  1628. }
  1629. }
  1630. </style>