signupList.vue 49 KB

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