signupList.vue 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472
  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. Fsearch: null,
  651. Frules: null,
  652. applyExpireDate: '',
  653. paymentExpireDate: '',
  654. activeRow: null,
  655. visitVisiable: false,
  656. visitForm: {
  657. musicGroupId: '',
  658. overview: '',
  659. purpose: '',
  660. studentId: '',
  661. type: '',
  662. visitTime: '',
  663. visitType: '',
  664. feedback: '',
  665. studentName: ''
  666. },
  667. visitChiose,
  668. visitRules: {
  669. overview: [{ required: true, message: "请输入学生近况" }],
  670. feedback: [{ required: true, message: "请输入家长反馈" }],
  671. visitTime: [{ required: true, message: "请输入回访时间" }],
  672. visitType: [{ required: true, message: "请选择回访类型" }]
  673. },
  674. isPay: false,
  675. applyDates: this.applyDate()
  676. }
  677. },
  678. created () {
  679. // 通过乐团状态判断显示隐藏的东西
  680. this.init()
  681. },
  682. activated () {
  683. this.init()
  684. },
  685. methods: {
  686. permission (str) {
  687. return permission(str);
  688. },
  689. init () {
  690. this.status = this.$route.query.status;
  691. // 通过乐团id 获取乐团招生状态
  692. this.id = this.$route.query.id;
  693. this.teamName = this.$route.query.name
  694. // 判断是否带缓存参数
  695. if (this.$route.query.search) {
  696. this.Fsearch = this.$route.query.search;
  697. }
  698. if (this.$route.query.rules) {
  699. this.Frules = this.$route.query.rules
  700. }
  701. this.pickerOptions = this.beginDate(new Date());
  702. getTeamBaseInfo({ musicGroupId: this.id }).then(res => {
  703. if (res.code == 200) {
  704. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  705. this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
  706. }
  707. })
  708. // 根据乐团id获乐团声部
  709. findSound({ musicGroupId: this.id }).then(res => {
  710. if (res.code == 200) {
  711. this.soundList = res.data;
  712. }
  713. })
  714. // 通过乐团id获取乐团学生列表
  715. this.getList()
  716. },
  717. search () {
  718. this.rules.page = 1;
  719. this.getList();
  720. },
  721. onReset () {
  722. this.rules.page = 1
  723. this.rules.limit = 10
  724. this.searchFrom = {
  725. name: null,
  726. subject: null, // 专业
  727. isAllowAdjust: null // 是否允许调剂
  728. }
  729. this.getList()
  730. },
  731. onCancel () {
  732. this.$router.push({ path: '/business/teamDetail', query: { search: this.Fsearch, rules: this.Frules } })
  733. },
  734. payStart () {
  735. this.paymentStatus = true;
  736. getTeamBaseInfo({ musicGroupId: this.id }).then(res => {
  737. if (res.code == 200) {
  738. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  739. this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
  740. }
  741. })
  742. },
  743. getList () {
  744. let obj = {
  745. musicGroupId: this.id,
  746. actualSubjectId: this.searchFrom.subject || null,
  747. isAllowAdjust: this.searchFrom.isAllowAdjust || null,
  748. name: this.searchFrom.name || null,
  749. page: this.rules.page,
  750. rows: this.rules.limit
  751. }
  752. // 根据乐团id获取学团情况
  753. getintoClass({ musicGroupId: this.id }).then(res => {
  754. if (res.code == 200) {
  755. this.leftList = res.data;
  756. }
  757. })
  758. return getStudentList(obj).then(res => {
  759. if (res.code == 200) {
  760. res.data.rows.forEach(item => {
  761. // '未开启缴费', '开启缴费', '已缴费'
  762. if (item.paymentStatus == 2) {
  763. this.paymentNum += 1
  764. }
  765. })
  766. this.rightList = res.data.rows
  767. this.rules.total = res.data.total
  768. return res
  769. }
  770. })
  771. },
  772. onStartPayment (formName) { // 开启缴费
  773. this.$refs[formName].validate((valid) => {
  774. if (valid) {
  775. musicGroupOpenPay({
  776. musicGroupId: this.id,
  777. expireDate: this.paymentForm.paymentExpireDate,
  778. // feeType: this.paymentForm.feeType
  779. }).then(res => {
  780. if (res.code == 200) {
  781. this.$message.success('开启成功')
  782. this.paymentStatus = false
  783. this.$router.push({
  784. path: '/business/signupList',
  785. query: {
  786. status: 'PAY',
  787. id: this.$route.query.id,
  788. name: this.$route.query.name
  789. }
  790. })
  791. this.status = 'PAY'
  792. this.paymentExpireDate = this.paymentForm.paymentExpireDate;
  793. this.getList();
  794. }
  795. })
  796. } else {
  797. return false;
  798. }
  799. })
  800. // this.id
  801. },
  802. onSelectAll () { // 选中全部
  803. this.$refs.multipleTable.toggleAllSelection()
  804. },
  805. onPartPayment () { // 部分缴费
  806. let selection = this.multipleSelection
  807. if (selection.length <= 0) {
  808. this.$message.success('您还没有选择学生')
  809. return false
  810. }
  811. let ids = []
  812. selection.forEach(item => {
  813. ids.push(item.id)
  814. })
  815. this.$confirm(`是否确认提前缴费?`, '提示', {
  816. confirmButtonText: '确定',
  817. cancelButtonText: '取消',
  818. type: 'warning'
  819. }).then(() => {
  820. openPayment({
  821. ids: ids.join(',')
  822. }).then(res => {
  823. if (res.code == 200) {
  824. this.$message.success('开启成功')
  825. this.getList()
  826. } else {
  827. this.$message.error(res.msg)
  828. }
  829. })
  830. }).catch(() => { })
  831. },
  832. onCreateQRCode () { // 生成报名二维码
  833. this.qrcodeStatus = true
  834. let id = this.id
  835. let teamName = this.$route.query.name
  836. setTimeout(() => {
  837. document.getElementById('qrcode').innerHTML = '';
  838. this.qrcode = new QRCode('qrcode', {
  839. width: 200,
  840. height: 200,
  841. colorDark: '#000000',
  842. colorLight: '#ffffff',
  843. correctLevel: QRCode.CorrectLevel.H
  844. })
  845. this.qrcode.makeCode(vaildStudentUrl() + '/#/login?musicGroupId=' + id)
  846. this.codeUrl = vaildStudentUrl() + '/#/login?musicGroupId=' + id
  847. }, 500)
  848. },
  849. onCreateQRCode2 () { // 生成报名二维码
  850. this.qrcodeStatus2 = true
  851. let id = this.id
  852. let teamName = this.$route.query.name
  853. setTimeout(() => {
  854. document.getElementById('qrcode2').innerHTML = '';
  855. this.qrcode2 = new QRCode('qrcode2', {
  856. width: 200,
  857. height: 200,
  858. colorDark: '#000000',
  859. colorLight: '#ffffff',
  860. correctLevel: QRCode.CorrectLevel.H
  861. })
  862. this.qrcode2.makeCode(vaildTeacherUrl() + '/#/order?musicGroupId=' + id + '&musicGroupName=' + teamName)
  863. this.codeUrl2 = vaildTeacherUrl() + '/#/order?musicGroupId=' + id + '&musicGroupName=' + teamName
  864. }, 500)
  865. },
  866. onDownLoadExecl () { // 报表导出
  867. let url = '/api-web/studentRegistration/queryStudentApplyDetailExport'
  868. let data = {
  869. musicGroupId: this.$route.query.id,
  870. page: 1,
  871. rows: 9999
  872. }
  873. const options = {
  874. method: 'POST',
  875. headers: {
  876. 'Authorization': getToken()
  877. },
  878. data: qs.stringify(data),
  879. url,
  880. responseType: 'blob'
  881. }
  882. this.$confirm('您确定导出吗?', '提示', {
  883. confirmButtonText: '确定',
  884. cancelButtonText: '取消',
  885. type: 'warning'
  886. }).then(() => {
  887. load.startLoading()
  888. axios(options).then(res => {
  889. let blob = new Blob([res.data], {
  890. // type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
  891. type: 'application/vnd.ms-excel;charset=utf-8'
  892. //word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
  893. })
  894. let text = (new Response(blob)).text()
  895. text.then(res => {
  896. // 判断是否报错
  897. if (res.indexOf('code') != -1) {
  898. let json = JSON.parse(res)
  899. this.$message.error(json.msg)
  900. } else {
  901. let objectUrl = URL.createObjectURL(blob)
  902. let link = document.createElement("a")
  903. let nowTime = new Date()
  904. let ymd = nowTime.getFullYear() + '' + (nowTime.getMonth() + 1) + '' + nowTime.getDate() + '' + nowTime.getHours() + '' + nowTime.getMinutes()
  905. let fname = this.$route.query.id + '-' + ymd //下载文件的名字
  906. link.href = objectUrl
  907. link.setAttribute("download", fname)
  908. document.body.appendChild(link)
  909. link.click()
  910. }
  911. })
  912. load.endLoading();
  913. }).catch(error => {
  914. this.$message.error('导出数据失败,请联系管理员');
  915. load.endLoading();
  916. })
  917. }).catch(() => { })
  918. },
  919. onGoHome () { // 确认开团
  920. // 判断是否有学生缴费
  921. if (this.paymentNum <= 0) {
  922. this.$message.error('当前缴费人数为0,无法开团')
  923. return
  924. }
  925. this.$confirm(`是否确认开团?`, '提示', {
  926. confirmButtonText: '确定',
  927. cancelButtonText: '取消',
  928. type: 'warning'
  929. }).then(() => {
  930. musicGroupFound({
  931. musicGroupId: this.$route.query.id
  932. }).then(res => {
  933. if (res.code == 200) {
  934. let query = this.$route.query
  935. this.$message.success('开启成功')
  936. this.$router.push({
  937. path: '/business/teamDetail',
  938. query: {
  939. ...query
  940. }
  941. })
  942. }
  943. })
  944. }).catch(() => {
  945. })
  946. },
  947. onClose () { // 停止乐团
  948. this.$confirm('您确定停止乐团吗?', '提示', {
  949. confirmButtonText: '确定',
  950. cancelButtonText: '取消',
  951. type: 'warning'
  952. }).then(() => {
  953. cancelMusicGroup({
  954. musicGroupId: this.$route.query.id
  955. }).then(res => {
  956. if (res.code == 200) {
  957. this.$message.success('停止成功')
  958. this.$router.push({
  959. path: '/business/teamDetail',
  960. query: { search: this.Fsearch, rules: this.Frules }
  961. })
  962. }
  963. })
  964. }).catch(() => {
  965. })
  966. },
  967. handleSelectionChange (val) {
  968. this.multipleSelection = val;
  969. },
  970. // 修改专业
  971. resetSubject (row) {
  972. this.activeId = row.studentId
  973. this.subjectVisible = true;
  974. // resetStudentSubject().then(res=>{]})
  975. },
  976. // 确认修改
  977. okReset () {
  978. if (!this.maskForm.subject) {
  979. this.$message.error('请选择调剂专业');
  980. return
  981. }
  982. resetStudentSubject({ musicGroupId: this.id, userId: this.activeId, subId: this.maskForm.subject }).then(res => {
  983. if (res.code == 200) {
  984. this.$message.success('修改成功');
  985. this.subjectVisible = false;
  986. this.maskForm.subject = '';
  987. getintoClass({ musicGroupId: this.id }).then(res => {
  988. if (res.code == 200) {
  989. this.leftList = res.data;
  990. }
  991. })
  992. this.getList();
  993. }
  994. })
  995. },
  996. onExtendPayment (formName, isPay) {
  997. this.$refs[formName].validate(valid => {
  998. if (valid) {
  999. if (!isPay) {
  1000. extensionApplyExpire({
  1001. musicGroupId: this.id,
  1002. expireDate: this.extendForm.expireDate
  1003. }).then(res => {
  1004. if (res.code == 200) {
  1005. this.$message.success('延长报名成功')
  1006. this.extendPaymentStatus = false
  1007. getTeamBaseInfo({ musicGroupId: this.id }).then(res => {
  1008. if (res.code == 200) {
  1009. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  1010. }
  1011. })
  1012. } else {
  1013. this.$message.error(res.msg);
  1014. }
  1015. })
  1016. } else {
  1017. extensionPayment({
  1018. musicGroupId: this.id,
  1019. expireDate: this.extendForm.expireDate
  1020. }).then(res => {
  1021. if (res.code == 200) {
  1022. this.$message.success('延长缴费成功')
  1023. this.extendPaymentStatus = false
  1024. getTeamBaseInfo({ musicGroupId: this.id }).then(res => {
  1025. if (res.code == 200) {
  1026. this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
  1027. }
  1028. })
  1029. } else {
  1030. this.$message.error(res.msg);
  1031. }
  1032. })
  1033. }
  1034. }
  1035. })
  1036. },
  1037. lookdetail (row) {
  1038. this.orderVisible = true;
  1039. this.activeId = row.studentId;
  1040. this.orderForm.name = row.studentName;
  1041. this.orderForm.subject = row.subjectName;
  1042. getStudentFeeDetail({ musicGroupId: this.id, studentId: row.studentId }).then(res => {
  1043. if (res.code == 200) {
  1044. if (res.data) {
  1045. this.orderForm.totalAmount = res.data.totalAmount;
  1046. // this.orderForm.subjectFee = res.data.courseFee;
  1047. let goodStr = '';
  1048. let goodPrice = 0;
  1049. let otherStr = '';
  1050. let othersPrice = 0;
  1051. for (let i in res.data.goods) {
  1052. if (res.data.goods[i].goodsType == 'INSTRUMENT') {
  1053. goodStr += res.data.goods[i].goodsName + ',';
  1054. goodPrice += parseFloat(res.data.goods[i].musicalFee);
  1055. // this.orderForm.axe = res.data.goods[i].goodsName;
  1056. // this.orderForm.axePrice = res.data.goods[i].musicalFee;
  1057. } else if (res.data.goods[i].goodsType == 'ACCESSORIES') {
  1058. otherStr += res.data.goods[i].goodsName + ',';
  1059. othersPrice += parseFloat(res.data.goods[i].musicalFee);
  1060. // this.orderForm.others = res.data.goods[i].goodsName;
  1061. // this.orderForm.othersPrice = res.data.goods[i].musicalFee;
  1062. } else if (res.data.goods[i].goodsType == 'COURSE') {
  1063. this.orderForm.subjectFee = res.data.goods[i].musicalFee
  1064. }
  1065. }
  1066. this.orderForm.others = otherStr.substring(0, otherStr.length - 1);
  1067. this.orderForm.othersPrice = othersPrice;
  1068. this.orderForm.axe = goodStr.substring(0, goodStr.length - 1);
  1069. this.orderForm.axePrice = goodPrice;
  1070. }
  1071. }
  1072. })
  1073. },
  1074. saveIsEdit () {
  1075. // 提交数据
  1076. this.isEdit = false;
  1077. resetPlanNum(this.leftList).then(res => {
  1078. })
  1079. },
  1080. quitTeam (row) {
  1081. this.activeRow = row;
  1082. this.quitVisible = true;
  1083. },
  1084. quieTeams (row) {
  1085. this.$prompt("请输入退团原因", "提示", {
  1086. confirmButtonText: "确定",
  1087. cancelButtonText: "取消",
  1088. inputPattern: /\S/,
  1089. inputErrorMessage: '请输入退团原因',
  1090. type: "warning"
  1091. })
  1092. .then((val) => {
  1093. // 发请求 退团
  1094. StudentQuit({
  1095. musicGroupId: this.id,
  1096. userId: row.studentId,
  1097. reason: val.value,
  1098. isRefundCourseFee: false,
  1099. isRefundInstrumentFee: false,
  1100. isRefundTeachingAssistantsFee: false
  1101. }).then(res => {
  1102. this.quitForm = {
  1103. // 退团信息确认
  1104. isRefundCourseFee: null,
  1105. isRefundInstrumentFee: null,
  1106. isRefundTeachingAssistantsFee: null,
  1107. reason: ""
  1108. };
  1109. if (res.code == 200) {
  1110. this.$message.success("退团成功");
  1111. this.getList();
  1112. this.quitVisible = false;
  1113. }
  1114. });
  1115. })
  1116. .catch(() => { });
  1117. },
  1118. chioseType () {
  1119. this.$refs["quitForm"].validate(res => {
  1120. if (res) {
  1121. this.$confirm("确定退团?", "提示", {
  1122. confirmButtonText: "确定",
  1123. cancelButtonText: "取消",
  1124. type: "warning"
  1125. })
  1126. .then(() => {
  1127. let row = this.activeRow;
  1128. // 发请求 退团
  1129. StudentQuit({
  1130. musicGroupId: this.id,
  1131. userId: row.studentId,
  1132. reason: this.quitForm.reason,
  1133. isRefundCourseFee: this.quitForm.isRefundCourseFee,
  1134. isRefundInstrumentFee: this.quitForm.isRefundInstrumentFee,
  1135. isRefundTeachingAssistantsFee: this.quitForm
  1136. .isRefundTeachingAssistantsFee
  1137. }).then(res => {
  1138. this.quitForm = {
  1139. // 退团信息确认
  1140. isRefundCourseFee: null,
  1141. isRefundInstrumentFee: null,
  1142. isRefundTeachingAssistantsFee: null,
  1143. reason: ""
  1144. };
  1145. if (res.code == 200) {
  1146. this.$message.success("退团成功");
  1147. this.getList();
  1148. this.quitVisible = false;
  1149. }
  1150. });
  1151. })
  1152. .catch(() => { });
  1153. } else {
  1154. }
  1155. });
  1156. // row.typeVisible = false;
  1157. },
  1158. addVisit (row) {
  1159. this.visitForm.studentName = row.studentName;
  1160. this.visitForm.musicGroupId = this.teamid
  1161. this.visitForm.studentId = row.studentId
  1162. this.visitVisiable = true;
  1163. },
  1164. openChangeVoice (row) {
  1165. this.getList()
  1166. .then(res => {
  1167. for (const item of res.data.rows) {
  1168. if (item.id === row.id) {
  1169. this.rowDetail = { ...item }
  1170. this.changeVoiceVisible = true
  1171. }
  1172. }
  1173. })
  1174. },
  1175. closeChangeVoice () {
  1176. this.changeVoiceVisible = false
  1177. // this.rowDetail = null
  1178. },
  1179. handleChange (val) {
  1180. this.visitForm.type = val[0]
  1181. this.visitForm.purpose = val[1]
  1182. },
  1183. submitAddVisit () {
  1184. this.$refs.visitForm.validate(res => {
  1185. if (res) {
  1186. this.visitForm.visitType = null;
  1187. addVisit(cleanDeep(this.visitForm)).then(res => {
  1188. if (res.code === 200) {
  1189. this.$message.success('新增成功')
  1190. this.visitVisiable = false
  1191. }
  1192. })
  1193. }
  1194. })
  1195. },
  1196. beginDate (date) {
  1197. let self = this;
  1198. return {
  1199. firstDayOfWeek: 1,
  1200. disabledDate (time) {
  1201. return time.getTime() >= date.getTime(); //开始时间不选时,结束时间最大值小于等于当天
  1202. }
  1203. };
  1204. },
  1205. extendTime (isPay) {
  1206. this.isPay = isPay
  1207. if (isPay) {
  1208. // 点击的延长缴费
  1209. this.extendForm.expireDate = this.paymentExpireDate
  1210. } else {
  1211. // 点击的延长报名
  1212. this.extendForm.expireDate = this.applyExpireDate
  1213. }
  1214. this.extendPaymentStatus = true
  1215. },
  1216. applyDate () {
  1217. let self = this
  1218. return {
  1219. firstDayOfWeek: 1,
  1220. disabledDate (time) {
  1221. if (self.paymentExpireDate) {
  1222. return time.getTime() > new Date(self.paymentExpireDate.replace(/-/g, "/")).getTime()
  1223. } else {
  1224. return false
  1225. }
  1226. }
  1227. }
  1228. },
  1229. payDate () {
  1230. let self = this
  1231. return {
  1232. firstDayOfWeek: 1,
  1233. disabledDate (time) {
  1234. if (self.applyExpireDate) {
  1235. return time.getTime() <= new Date(self.applyExpireDate.replace(/-/g, "/")).getTime()
  1236. } else {
  1237. return false
  1238. }
  1239. }
  1240. }
  1241. },
  1242. },
  1243. watch: {
  1244. orderVisible (val) {
  1245. if (!val) {
  1246. this.orderForm = {
  1247. name: '',
  1248. totalAmount: '',
  1249. subject: '',
  1250. subjectFee: '',
  1251. axe: '',
  1252. axePrice: '',
  1253. others: '',
  1254. othersPrice: ''
  1255. }
  1256. }
  1257. },
  1258. qrcodeStatus (val) {
  1259. if (!val) {
  1260. this.qrcode.clear()
  1261. }
  1262. },
  1263. qrcodeStatus2 (val) {
  1264. if (!val) {
  1265. this.qrcode2.clear()
  1266. }
  1267. },
  1268. paymentStatus (val) {
  1269. if (!val) {
  1270. this.paymentForm = {
  1271. paymentExpireDate: null,
  1272. // feeType: null
  1273. }
  1274. }
  1275. },
  1276. quitVisible (val) {
  1277. if (!val) {
  1278. this.quitForm = {
  1279. // 退团信息确认
  1280. isRefundCourseFee: null,
  1281. isRefundInstrumentFee: null,
  1282. isRefundTeachingAssistantsFee: null,
  1283. reason: ""
  1284. };
  1285. this.$refs["quitForm"].resetFields();
  1286. }
  1287. },
  1288. visitVisiable (val) {
  1289. if (!val) {
  1290. this.$refs["visitForm"].resetFields();
  1291. }
  1292. }
  1293. }
  1294. }
  1295. </script>
  1296. <style lang="scss" scoped>
  1297. .sigup-container {
  1298. margin-left: 12px;
  1299. .topWrap {
  1300. padding: 18px 58px;
  1301. // height: 136px;
  1302. background-color: #fff;
  1303. display: flex;
  1304. flex-direction: row;
  1305. justify-content: space-between;
  1306. .msg.pay {
  1307. color: #f85043;
  1308. }
  1309. .msg {
  1310. text-align: right;
  1311. color: #f97215;
  1312. font-size: 32px;
  1313. font-weight: bold;
  1314. padding-top: 30px;
  1315. box-sizing: border-box;
  1316. img {
  1317. width: 36px;
  1318. height: 36px;
  1319. position: relative;
  1320. top: 5px;
  1321. margin-right: 8px;
  1322. }
  1323. }
  1324. h2 {
  1325. height: 48px;
  1326. line-height: 48px;
  1327. position: relative;
  1328. // padding-left: 30px;
  1329. font-size: 32px;
  1330. font-weight: 600;
  1331. margin-bottom: 10px;
  1332. display: flex;
  1333. flex-direction: row;
  1334. justify-content: flex-start;
  1335. align-items: center;
  1336. .term {
  1337. height: 32px;
  1338. line-height: 32px;
  1339. border-radius: 24px;
  1340. width: 100px;
  1341. color: #14928a;
  1342. border: 1px solid rgba(20, 146, 138, 1);
  1343. font-size: 14px;
  1344. text-align: center;
  1345. margin-right: 12px;
  1346. &:nth-child(1) {
  1347. margin-left: 47px;
  1348. }
  1349. }
  1350. .term.active {
  1351. color: #fff;
  1352. background-color: #14928a;
  1353. }
  1354. .squrt {
  1355. position: absolute;
  1356. left: -25px;
  1357. top: 8px;
  1358. height: 34px;
  1359. width: 8px;
  1360. background-color: #14928a;
  1361. }
  1362. }
  1363. .btnList {
  1364. display: flex;
  1365. flex-direction: row;
  1366. justify-content: flex-start;
  1367. align-items: center;
  1368. div {
  1369. margin-right: 15px;
  1370. }
  1371. }
  1372. .newBand.close {
  1373. background-color: #777;
  1374. border: 1px solid #777;
  1375. }
  1376. }
  1377. .searchList {
  1378. background-color: #fff;
  1379. padding: 0 58px;
  1380. }
  1381. .sigup-core {
  1382. margin-top: 12px;
  1383. display: flex;
  1384. flex-direction: row;
  1385. justify-content: flex-start;
  1386. .left {
  1387. width: 340px;
  1388. background-color: #fff;
  1389. height: 80vh;
  1390. overflow: auto;
  1391. }
  1392. .right {
  1393. width: calc(100% - 340px);
  1394. margin-left: 12px;
  1395. flex-grow: 1;
  1396. }
  1397. }
  1398. }
  1399. .el-dialog__body {
  1400. overflow: hidden;
  1401. }
  1402. .left-code,
  1403. .right-code {
  1404. // width: 50%;
  1405. // float: left;
  1406. h2 {
  1407. font-size: 18px;
  1408. text-align: center;
  1409. padding-bottom: 8px;
  1410. }
  1411. .qrcode {
  1412. display: flex;
  1413. flex-direction: column;
  1414. align-items: center;
  1415. img {
  1416. width: 200px;
  1417. height: 200px;
  1418. margin: 0 auto;
  1419. }
  1420. }
  1421. .code-url {
  1422. font-size: 18px;
  1423. text-align: center;
  1424. padding: 15px 15px 0 15px;
  1425. }
  1426. }
  1427. .newBand {
  1428. margin-bottom: 0;
  1429. }
  1430. /deep/.el-button--danger {
  1431. background: #f85043;
  1432. }
  1433. .paymentForm {
  1434. /deep/.el-input__inner,
  1435. /deep/.el-input.el-input--suffix {
  1436. width: 360px !important;
  1437. }
  1438. }
  1439. </style>