signupList.vue 47 KB

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