signupList.vue 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468
  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. <el-input type="textarea"
  456. v-model.trim="quitForm.reason"></el-input>
  457. </el-form-item>
  458. </el-form>
  459. <span slot="footer"
  460. class="dialog-footer">
  461. <el-button @click="quitVisible = false">取 消</el-button>
  462. <el-button type="primary"
  463. @click="chioseType">确 定</el-button>
  464. </span>
  465. </el-dialog>
  466. <!-- 回访记录 -->
  467. <el-dialog title="新增回访"
  468. width="600px"
  469. destroy-on-close
  470. :close-on-click-modal='false'
  471. :visible.sync="visitVisiable">
  472. <el-form :model="visitForm"
  473. label-width="120px"
  474. label-position='right'
  475. ref='visitForm'
  476. :rules="visitRules">
  477. <el-form-item label="学生姓名">
  478. <p>{{visitForm.studentName}}</p>
  479. </el-form-item>
  480. <el-form-item label="回访类型"
  481. prop='visitType'>
  482. <el-cascader expand-trigger="hover"
  483. clearable
  484. placeholder="请选择回访类型"
  485. :options="visitChiose"
  486. @change="handleChange"
  487. style="width:220px!important;"
  488. v-model="visitForm.visitType">
  489. </el-cascader>
  490. </el-form-item>
  491. <el-form-item label="回访日期"
  492. prop='visitTime'>
  493. <el-date-picker v-model.trim="visitForm.visitTime"
  494. align="right"
  495. style="width:220px!important;"
  496. type="date"
  497. placeholder="选择日期"
  498. :picker-options="pickerOptions"
  499. value-format="yyyy-MM-dd"></el-date-picker>
  500. </el-form-item>
  501. <el-form-item label="学员情况"
  502. prop="overview">
  503. <el-input type="textarea"
  504. v-model="visitForm.overview"
  505. style="width:80%!important;"
  506. :rows="3"
  507. maxlength="50"
  508. show-word-limit></el-input>
  509. </el-form-item>
  510. <el-form-item label="家长反馈"
  511. prop='feedback'>
  512. <el-input type="textarea"
  513. v-model="visitForm.feedback"
  514. style="width:80%!important;"
  515. :rows="3"
  516. maxlength="50"
  517. show-word-limit></el-input>
  518. </el-form-item>
  519. </el-form>
  520. <span slot="footer"
  521. class="dialog-footer">
  522. <el-button @click="visitVisiable = false">取 消</el-button>
  523. <el-button type="primary"
  524. @click="submitAddVisit">确 定</el-button>
  525. </span>
  526. </el-dialog>
  527. <el-dialog title="更改声部"
  528. :visible.sync="changeVoiceVisible"
  529. @close="closeChangeVoice"
  530. :destroy-on-close="true"
  531. width="500px">
  532. <changeVoice @close="closeChangeVoice"
  533. @submited="getList"
  534. :detail.sync="rowDetail"
  535. :musicGroupId="id"
  536. :voiceList="leftList" />
  537. </el-dialog>
  538. </div>
  539. </template>
  540. <script>
  541. import pagination from '@/components/Pagination/index'
  542. import { getintoClass, getStudentList, findSound, musicGroupOpenPay, openPayment, musicGroupFound, extensionPayment, extensionApplyExpire, resetPlanNum, cancelMusicGroup, getTeamBaseInfo, studentApplyDetailExport, StudentQuit } from '@/api/buildTeam'
  543. import { resetStudentSubject, getStudentFeeDetail } from '@/api/studentManager'
  544. import { vaildStudentUrl, vaildTeacherUrl } from '@/utils/validate'
  545. import { addVisit } from "@/views/returnVisitManager/api.js"
  546. import QRCode from 'qrcodejs2'
  547. import { visitChiose } from '@/utils/searchArray'
  548. import axios from 'axios'
  549. import { getToken } from '@/utils/auth'
  550. import load from '@/utils/loading'
  551. import qs from 'qs'
  552. import { permission } from "@/utils/directivePage";
  553. import cleanDeep from 'clean-deep'
  554. import changeVoice from './modals/change-voice'
  555. export default {
  556. name: 'signupList',
  557. components: {
  558. pagination,
  559. changeVoice,
  560. },
  561. data () {
  562. return {
  563. multipleSelection: [], //
  564. isEdit: false,
  565. rowDetail: null,
  566. changeVoiceVisible: false,
  567. subjectVisible: false,
  568. orderVisible: false,
  569. quitVisible: false,
  570. leftList: [],
  571. rightList: [],
  572. searchFrom: {
  573. name: '',
  574. subject: '', // 专业
  575. isAllowAdjust: '' // 是否允许调剂
  576. },
  577. quitForm: {
  578. // 退团信息确认
  579. isRefundCourseFee: null,
  580. isRefundInstrumentFee: null,
  581. isRefundTeachingAssistantsFee: null,
  582. reason: ""
  583. },
  584. stepImgs: {
  585. APPLY: require('@/assets/images/base/clock.png'),
  586. PAY: require('@/assets/images/base/pay.png')
  587. },
  588. status: '',
  589. id: '',
  590. rules: {
  591. // 分页规则
  592. limit: 10, // 限制显示条数
  593. page: 1, // 当前页
  594. total: 0, // 总条数
  595. page_size: [10, 20, 30, 40] // 选择限制显示条数
  596. },
  597. teamName: '',
  598. maskForm: {
  599. subject: ''
  600. },
  601. activeId: '',
  602. soundList: [],
  603. orderForm: {
  604. name: '',
  605. totalAmount: '',
  606. subject: '',
  607. subjectFee: '',
  608. axe: '',
  609. axePrice: '',
  610. others: '',
  611. othersPrice: ''
  612. },
  613. paymentStatus: false,
  614. paymentForm: {
  615. paymentExpireDate: null,
  616. // feeType: null
  617. },
  618. paymentRules: {
  619. paymentExpireDate: [{ required: true, message: '请设置缴费截止日期', trigger: 'blur' }]
  620. },
  621. paymentNum: 0, // 缴费了多少人
  622. qrcodeStatus: false, // 生成二维码
  623. qrcodes: true,
  624. qrcode: null,
  625. codeUrl: null,
  626. qrcodeStatus2: false, // 生成二维码
  627. qrcodes2: true,
  628. qrcode2: null,
  629. codeUrl2: null,
  630. extendPaymentStatus: false,
  631. extendForm: {
  632. expireDate: null,
  633. },
  634. extendRule: {
  635. expireDate: [{ required: true, message: '请选择延长时间', trigger: 'change' }]
  636. },
  637. quitRules: {
  638. isRefundCourseFee: [
  639. { required: true, message: "请选择是否退还课程费用" }
  640. ],
  641. isRefundInstrumentFee: [
  642. { required: true, message: "选择是否退还乐器费用" }
  643. ],
  644. isRefundTeachingAssistantsFee: [
  645. { required: true, message: "选择是否退还教辅费用" }
  646. ]
  647. },
  648. Fsearch: null,
  649. Frules: null,
  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. if (this.$route.query.search) {
  694. this.Fsearch = this.$route.query.search;
  695. }
  696. if (this.$route.query.rules) {
  697. this.Frules = this.$route.query.rules
  698. }
  699. this.pickerOptions = this.beginDate(new Date());
  700. getTeamBaseInfo({ musicGroupId: this.id }).then(res => {
  701. if (res.code == 200) {
  702. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  703. this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
  704. }
  705. })
  706. // 根据乐团id获乐团声部
  707. findSound({ musicGroupId: this.id }).then(res => {
  708. if (res.code == 200) {
  709. this.soundList = res.data;
  710. }
  711. })
  712. // 通过乐团id获取乐团学生列表
  713. this.getList()
  714. },
  715. search () {
  716. this.rules.page = 1;
  717. this.getList();
  718. },
  719. onReset () {
  720. this.rules.page = 1
  721. this.rules.limit = 10
  722. this.searchFrom = {
  723. name: null,
  724. subject: null, // 专业
  725. isAllowAdjust: null // 是否允许调剂
  726. }
  727. this.getList()
  728. },
  729. onCancel () {
  730. this.$router.push({ path: '/business/teamDetail', query: { search: this.Fsearch, rules: this.Frules } })
  731. },
  732. payStart () {
  733. this.paymentStatus = true;
  734. getTeamBaseInfo({ musicGroupId: this.id }).then(res => {
  735. if (res.code == 200) {
  736. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  737. this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
  738. }
  739. })
  740. },
  741. getList () {
  742. let obj = {
  743. musicGroupId: this.id,
  744. actualSubjectId: this.searchFrom.subject || null,
  745. isAllowAdjust: this.searchFrom.isAllowAdjust || null,
  746. name: this.searchFrom.name || null,
  747. page: this.rules.page,
  748. rows: this.rules.limit
  749. }
  750. // 根据乐团id获取学团情况
  751. getintoClass({ musicGroupId: this.id }).then(res => {
  752. if (res.code == 200) {
  753. this.leftList = res.data;
  754. }
  755. })
  756. return getStudentList(obj).then(res => {
  757. if (res.code == 200) {
  758. res.data.rows.forEach(item => {
  759. // '未开启缴费', '开启缴费', '已缴费'
  760. if (item.paymentStatus == 2) {
  761. this.paymentNum += 1
  762. }
  763. })
  764. this.rightList = res.data.rows
  765. this.rules.total = res.data.total
  766. return res
  767. }
  768. })
  769. },
  770. onStartPayment (formName) { // 开启缴费
  771. this.$refs[formName].validate((valid) => {
  772. if (valid) {
  773. musicGroupOpenPay({
  774. musicGroupId: this.id,
  775. expireDate: this.paymentForm.paymentExpireDate,
  776. // feeType: this.paymentForm.feeType
  777. }).then(res => {
  778. if (res.code == 200) {
  779. this.$message.success('开启成功')
  780. this.paymentStatus = false
  781. this.$router.push({
  782. path: '/business/signupList',
  783. query: {
  784. status: 'PAY',
  785. id: this.$route.query.id,
  786. name: this.$route.query.name
  787. }
  788. })
  789. this.status = 'PAY'
  790. this.paymentExpireDate = this.paymentForm.paymentExpireDate;
  791. this.getList();
  792. }
  793. })
  794. } else {
  795. return false;
  796. }
  797. })
  798. // this.id
  799. },
  800. onSelectAll () { // 选中全部
  801. this.$refs.multipleTable.toggleAllSelection()
  802. },
  803. onPartPayment () { // 部分缴费
  804. let selection = this.multipleSelection
  805. if (selection.length <= 0) {
  806. this.$message.success('您还没有选择学生')
  807. return false
  808. }
  809. let ids = []
  810. selection.forEach(item => {
  811. ids.push(item.id)
  812. })
  813. this.$confirm(`是否确认提前缴费?`, '提示', {
  814. confirmButtonText: '确定',
  815. cancelButtonText: '取消',
  816. type: 'warning'
  817. }).then(() => {
  818. openPayment({
  819. ids: ids.join(',')
  820. }).then(res => {
  821. if (res.code == 200) {
  822. this.$message.success('开启成功')
  823. this.getList()
  824. } else {
  825. this.$message.error(res.msg)
  826. }
  827. })
  828. }).catch(() => { })
  829. },
  830. onCreateQRCode () { // 生成报名二维码
  831. this.qrcodeStatus = true
  832. let id = this.id
  833. let teamName = this.$route.query.name
  834. setTimeout(() => {
  835. document.getElementById('qrcode').innerHTML = '';
  836. this.qrcode = new QRCode('qrcode', {
  837. width: 200,
  838. height: 200,
  839. colorDark: '#000000',
  840. colorLight: '#ffffff',
  841. correctLevel: QRCode.CorrectLevel.H
  842. })
  843. this.qrcode.makeCode(vaildStudentUrl() + '/#/login?musicGroupId=' + id)
  844. this.codeUrl = vaildStudentUrl() + '/#/login?musicGroupId=' + id
  845. }, 500)
  846. },
  847. onCreateQRCode2 () { // 生成报名二维码
  848. this.qrcodeStatus2 = true
  849. let id = this.id
  850. let teamName = this.$route.query.name
  851. setTimeout(() => {
  852. document.getElementById('qrcode2').innerHTML = '';
  853. this.qrcode2 = new QRCode('qrcode2', {
  854. width: 200,
  855. height: 200,
  856. colorDark: '#000000',
  857. colorLight: '#ffffff',
  858. correctLevel: QRCode.CorrectLevel.H
  859. })
  860. this.qrcode2.makeCode(vaildTeacherUrl() + '/#/order?musicGroupId=' + id + '&musicGroupName=' + teamName)
  861. this.codeUrl2 = vaildTeacherUrl() + '/#/order?musicGroupId=' + id + '&musicGroupName=' + teamName
  862. }, 500)
  863. },
  864. onDownLoadExecl () { // 报表导出
  865. let url = '/api-web/studentRegistration/queryStudentApplyDetailExport'
  866. let data = {
  867. musicGroupId: this.$route.query.id,
  868. page: 1,
  869. rows: 9999
  870. }
  871. const options = {
  872. method: 'POST',
  873. headers: {
  874. 'Authorization': getToken()
  875. },
  876. data: qs.stringify(data),
  877. url,
  878. responseType: 'blob'
  879. }
  880. this.$confirm('您确定导出吗?', '提示', {
  881. confirmButtonText: '确定',
  882. cancelButtonText: '取消',
  883. type: 'warning'
  884. }).then(() => {
  885. load.startLoading()
  886. axios(options).then(res => {
  887. let blob = new Blob([res.data], {
  888. // type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
  889. type: 'application/vnd.ms-excel;charset=utf-8'
  890. //word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
  891. })
  892. let text = (new Response(blob)).text()
  893. text.then(res => {
  894. // 判断是否报错
  895. if (res.indexOf('code') != -1) {
  896. let json = JSON.parse(res)
  897. this.$message.error(json.msg)
  898. } else {
  899. let objectUrl = URL.createObjectURL(blob)
  900. let link = document.createElement("a")
  901. let nowTime = new Date()
  902. let ymd = nowTime.getFullYear() + '' + (nowTime.getMonth() + 1) + '' + nowTime.getDate() + '' + nowTime.getHours() + '' + nowTime.getMinutes()
  903. let fname = this.$route.query.id + '-' + ymd //下载文件的名字
  904. link.href = objectUrl
  905. link.setAttribute("download", fname)
  906. document.body.appendChild(link)
  907. link.click()
  908. }
  909. })
  910. load.endLoading();
  911. }).catch(error => {
  912. this.$message.error('导出数据失败,请联系管理员');
  913. load.endLoading();
  914. })
  915. }).catch(() => { })
  916. },
  917. onGoHome () { // 确认开团
  918. // 判断是否有学生缴费
  919. if (this.paymentNum <= 0) {
  920. this.$message.error('当前缴费人数为0,无法开团')
  921. return
  922. }
  923. this.$confirm(`是否确认开团?`, '提示', {
  924. confirmButtonText: '确定',
  925. cancelButtonText: '取消',
  926. type: 'warning'
  927. }).then(() => {
  928. musicGroupFound({
  929. musicGroupId: this.$route.query.id
  930. }).then(res => {
  931. if (res.code == 200) {
  932. let query = this.$route.query
  933. this.$message.success('开启成功')
  934. this.$router.push({
  935. path: '/business/teamDetail',
  936. query: {
  937. ...query
  938. }
  939. })
  940. }
  941. })
  942. }).catch(() => {
  943. })
  944. },
  945. onClose () { // 停止乐团
  946. this.$confirm('您确定停止乐团吗?', '提示', {
  947. confirmButtonText: '确定',
  948. cancelButtonText: '取消',
  949. type: 'warning'
  950. }).then(() => {
  951. cancelMusicGroup({
  952. musicGroupId: this.$route.query.id
  953. }).then(res => {
  954. if (res.code == 200) {
  955. this.$message.success('停止成功')
  956. this.$router.push({
  957. path: '/business/teamDetail',
  958. query: { search: this.Fsearch, rules: this.Frules }
  959. })
  960. }
  961. })
  962. }).catch(() => {
  963. })
  964. },
  965. handleSelectionChange (val) {
  966. this.multipleSelection = val;
  967. },
  968. // 修改专业
  969. resetSubject (row) {
  970. this.activeId = row.studentId
  971. this.subjectVisible = true;
  972. // resetStudentSubject().then(res=>{]})
  973. },
  974. // 确认修改
  975. okReset () {
  976. if (!this.maskForm.subject) {
  977. this.$message.error('请选择调剂专业');
  978. return
  979. }
  980. resetStudentSubject({ musicGroupId: this.id, userId: this.activeId, subId: this.maskForm.subject }).then(res => {
  981. if (res.code == 200) {
  982. this.$message.success('修改成功');
  983. this.subjectVisible = false;
  984. this.maskForm.subject = '';
  985. getintoClass({ musicGroupId: this.id }).then(res => {
  986. if (res.code == 200) {
  987. this.leftList = res.data;
  988. }
  989. })
  990. this.getList();
  991. }
  992. })
  993. },
  994. onExtendPayment (formName, isPay) {
  995. this.$refs[formName].validate(valid => {
  996. if (valid) {
  997. if (!isPay) {
  998. extensionApplyExpire({
  999. musicGroupId: this.id,
  1000. expireDate: this.extendForm.expireDate
  1001. }).then(res => {
  1002. if (res.code == 200) {
  1003. this.$message.success('延长报名成功')
  1004. this.extendPaymentStatus = false
  1005. getTeamBaseInfo({ musicGroupId: this.id }).then(res => {
  1006. if (res.code == 200) {
  1007. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  1008. }
  1009. })
  1010. } else {
  1011. this.$message.error(res.msg);
  1012. }
  1013. })
  1014. } else {
  1015. extensionPayment({
  1016. musicGroupId: this.id,
  1017. expireDate: this.extendForm.expireDate
  1018. }).then(res => {
  1019. if (res.code == 200) {
  1020. this.$message.success('延长缴费成功')
  1021. this.extendPaymentStatus = false
  1022. getTeamBaseInfo({ musicGroupId: this.id }).then(res => {
  1023. if (res.code == 200) {
  1024. this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
  1025. }
  1026. })
  1027. } else {
  1028. this.$message.error(res.msg);
  1029. }
  1030. })
  1031. }
  1032. }
  1033. })
  1034. },
  1035. lookdetail (row) {
  1036. this.orderVisible = true;
  1037. this.activeId = row.studentId;
  1038. this.orderForm.name = row.studentName;
  1039. this.orderForm.subject = row.subjectName;
  1040. getStudentFeeDetail({ musicGroupId: this.id, studentId: row.studentId }).then(res => {
  1041. if (res.code == 200) {
  1042. if (res.data) {
  1043. this.orderForm.totalAmount = res.data.totalAmount;
  1044. // this.orderForm.subjectFee = res.data.courseFee;
  1045. let goodStr = '';
  1046. let goodPrice = 0;
  1047. let otherStr = '';
  1048. let othersPrice = 0;
  1049. for (let i in res.data.goods) {
  1050. if (res.data.goods[i].goodsType == 'INSTRUMENT') {
  1051. goodStr += res.data.goods[i].goodsName + ',';
  1052. goodPrice += parseFloat(res.data.goods[i].musicalFee);
  1053. // this.orderForm.axe = res.data.goods[i].goodsName;
  1054. // this.orderForm.axePrice = res.data.goods[i].musicalFee;
  1055. } else if (res.data.goods[i].goodsType == 'ACCESSORIES') {
  1056. otherStr += res.data.goods[i].goodsName + ',';
  1057. othersPrice += parseFloat(res.data.goods[i].musicalFee);
  1058. // this.orderForm.others = res.data.goods[i].goodsName;
  1059. // this.orderForm.othersPrice = res.data.goods[i].musicalFee;
  1060. } else if (res.data.goods[i].goodsType == 'COURSE') {
  1061. this.orderForm.subjectFee = res.data.goods[i].musicalFee
  1062. }
  1063. }
  1064. this.orderForm.others = otherStr.substring(0, otherStr.length - 1);
  1065. this.orderForm.othersPrice = othersPrice;
  1066. this.orderForm.axe = goodStr.substring(0, goodStr.length - 1);
  1067. this.orderForm.axePrice = goodPrice;
  1068. }
  1069. }
  1070. })
  1071. },
  1072. saveIsEdit () {
  1073. // 提交数据
  1074. this.isEdit = false;
  1075. resetPlanNum(this.leftList).then(res => {
  1076. })
  1077. },
  1078. quitTeam (row) {
  1079. this.activeRow = row;
  1080. this.quitVisible = true;
  1081. },
  1082. quieTeams (row) {
  1083. this.$confirm("确定退团?", "提示", {
  1084. confirmButtonText: "确定",
  1085. cancelButtonText: "取消",
  1086. type: "warning"
  1087. })
  1088. .then(() => {
  1089. // 发请求 退团
  1090. StudentQuit({
  1091. musicGroupId: this.id,
  1092. userId: row.studentId,
  1093. reason: '',
  1094. isRefundCourseFee: false,
  1095. isRefundInstrumentFee: false,
  1096. isRefundTeachingAssistantsFee: false
  1097. }).then(res => {
  1098. this.quitForm = {
  1099. // 退团信息确认
  1100. isRefundCourseFee: null,
  1101. isRefundInstrumentFee: null,
  1102. isRefundTeachingAssistantsFee: null,
  1103. reason: ""
  1104. };
  1105. if (res.code == 200) {
  1106. this.$message.success("退团成功");
  1107. this.getList();
  1108. this.quitVisible = false;
  1109. }
  1110. });
  1111. })
  1112. .catch(() => { });
  1113. },
  1114. chioseType () {
  1115. this.$refs["quitForm"].validate(res => {
  1116. if (res) {
  1117. this.$confirm("确定退团?", "提示", {
  1118. confirmButtonText: "确定",
  1119. cancelButtonText: "取消",
  1120. type: "warning"
  1121. })
  1122. .then(() => {
  1123. let row = this.activeRow;
  1124. // 发请求 退团
  1125. StudentQuit({
  1126. musicGroupId: this.id,
  1127. userId: row.studentId,
  1128. reason: this.quitForm.reason,
  1129. isRefundCourseFee: this.quitForm.isRefundCourseFee,
  1130. isRefundInstrumentFee: this.quitForm.isRefundInstrumentFee,
  1131. isRefundTeachingAssistantsFee: this.quitForm
  1132. .isRefundTeachingAssistantsFee
  1133. }).then(res => {
  1134. this.quitForm = {
  1135. // 退团信息确认
  1136. isRefundCourseFee: null,
  1137. isRefundInstrumentFee: null,
  1138. isRefundTeachingAssistantsFee: null,
  1139. reason: ""
  1140. };
  1141. if (res.code == 200) {
  1142. this.$message.success("退团成功");
  1143. this.getList();
  1144. this.quitVisible = false;
  1145. }
  1146. });
  1147. })
  1148. .catch(() => { });
  1149. } else {
  1150. }
  1151. });
  1152. // row.typeVisible = false;
  1153. },
  1154. addVisit (row) {
  1155. this.visitForm.studentName = row.studentName;
  1156. this.visitForm.musicGroupId = this.teamid
  1157. this.visitForm.studentId = row.studentId
  1158. this.visitVisiable = true;
  1159. },
  1160. openChangeVoice (row) {
  1161. this.getList()
  1162. .then(res => {
  1163. for (const item of res.data.rows) {
  1164. if (item.id === row.id) {
  1165. this.rowDetail = { ...item }
  1166. this.changeVoiceVisible = true
  1167. }
  1168. }
  1169. })
  1170. },
  1171. closeChangeVoice () {
  1172. this.changeVoiceVisible = false
  1173. // this.rowDetail = null
  1174. },
  1175. handleChange (val) {
  1176. this.visitForm.type = val[0]
  1177. this.visitForm.purpose = val[1]
  1178. },
  1179. submitAddVisit () {
  1180. this.$refs.visitForm.validate(res => {
  1181. if (res) {
  1182. this.visitForm.visitType = null;
  1183. addVisit(cleanDeep(this.visitForm)).then(res => {
  1184. if (res.code === 200) {
  1185. this.$message.success('新增成功')
  1186. this.visitVisiable = false
  1187. }
  1188. })
  1189. }
  1190. })
  1191. },
  1192. beginDate (date) {
  1193. let self = this;
  1194. return {
  1195. firstDayOfWeek: 1,
  1196. disabledDate (time) {
  1197. return time.getTime() >= date.getTime(); //开始时间不选时,结束时间最大值小于等于当天
  1198. }
  1199. };
  1200. },
  1201. extendTime (isPay) {
  1202. this.isPay = isPay
  1203. if (isPay) {
  1204. // 点击的延长缴费
  1205. this.extendForm.expireDate = this.paymentExpireDate
  1206. } else {
  1207. // 点击的延长报名
  1208. this.extendForm.expireDate = this.applyExpireDate
  1209. }
  1210. this.extendPaymentStatus = true
  1211. },
  1212. applyDate () {
  1213. let self = this
  1214. return {
  1215. firstDayOfWeek: 1,
  1216. disabledDate (time) {
  1217. if (self.paymentExpireDate) {
  1218. return time.getTime() > new Date(self.paymentExpireDate.replace(/-/g, "/")).getTime()
  1219. } else {
  1220. return false
  1221. }
  1222. }
  1223. }
  1224. },
  1225. payDate () {
  1226. let self = this
  1227. return {
  1228. firstDayOfWeek: 1,
  1229. disabledDate (time) {
  1230. if (self.applyExpireDate) {
  1231. return time.getTime() <= new Date(self.applyExpireDate.replace(/-/g, "/")).getTime()
  1232. } else {
  1233. return false
  1234. }
  1235. }
  1236. }
  1237. },
  1238. },
  1239. watch: {
  1240. orderVisible (val) {
  1241. if (!val) {
  1242. this.orderForm = {
  1243. name: '',
  1244. totalAmount: '',
  1245. subject: '',
  1246. subjectFee: '',
  1247. axe: '',
  1248. axePrice: '',
  1249. others: '',
  1250. othersPrice: ''
  1251. }
  1252. }
  1253. },
  1254. qrcodeStatus (val) {
  1255. if (!val) {
  1256. this.qrcode.clear()
  1257. }
  1258. },
  1259. qrcodeStatus2 (val) {
  1260. if (!val) {
  1261. this.qrcode2.clear()
  1262. }
  1263. },
  1264. paymentStatus (val) {
  1265. if (!val) {
  1266. this.paymentForm = {
  1267. paymentExpireDate: null,
  1268. // feeType: null
  1269. }
  1270. }
  1271. },
  1272. quitVisible (val) {
  1273. if (!val) {
  1274. this.quitForm = {
  1275. // 退团信息确认
  1276. isRefundCourseFee: null,
  1277. isRefundInstrumentFee: null,
  1278. isRefundTeachingAssistantsFee: null,
  1279. reason: ""
  1280. };
  1281. this.$refs["quitForm"].resetFields();
  1282. }
  1283. },
  1284. visitVisiable (val) {
  1285. if (!val) {
  1286. this.$refs["visitForm"].resetFields();
  1287. }
  1288. }
  1289. }
  1290. }
  1291. </script>
  1292. <style lang="scss" scoped>
  1293. .sigup-container {
  1294. margin-left: 12px;
  1295. .topWrap {
  1296. padding: 18px 58px;
  1297. // height: 136px;
  1298. background-color: #fff;
  1299. display: flex;
  1300. flex-direction: row;
  1301. justify-content: space-between;
  1302. .msg.pay {
  1303. color: #f85043;
  1304. }
  1305. .msg {
  1306. text-align: right;
  1307. color: #f97215;
  1308. font-size: 32px;
  1309. font-weight: bold;
  1310. padding-top: 30px;
  1311. box-sizing: border-box;
  1312. img {
  1313. width: 36px;
  1314. height: 36px;
  1315. position: relative;
  1316. top: 5px;
  1317. margin-right: 8px;
  1318. }
  1319. }
  1320. h2 {
  1321. height: 48px;
  1322. line-height: 48px;
  1323. position: relative;
  1324. // padding-left: 30px;
  1325. font-size: 32px;
  1326. font-weight: 600;
  1327. margin-bottom: 10px;
  1328. display: flex;
  1329. flex-direction: row;
  1330. justify-content: flex-start;
  1331. align-items: center;
  1332. .term {
  1333. height: 32px;
  1334. line-height: 32px;
  1335. border-radius: 24px;
  1336. width: 100px;
  1337. color: #14928a;
  1338. border: 1px solid rgba(20, 146, 138, 1);
  1339. font-size: 14px;
  1340. text-align: center;
  1341. margin-right: 12px;
  1342. &:nth-child(1) {
  1343. margin-left: 47px;
  1344. }
  1345. }
  1346. .term.active {
  1347. color: #fff;
  1348. background-color: #14928a;
  1349. }
  1350. .squrt {
  1351. position: absolute;
  1352. left: -25px;
  1353. top: 8px;
  1354. height: 34px;
  1355. width: 8px;
  1356. background-color: #14928a;
  1357. }
  1358. }
  1359. .btnList {
  1360. display: flex;
  1361. flex-direction: row;
  1362. justify-content: flex-start;
  1363. align-items: center;
  1364. div {
  1365. margin-right: 15px;
  1366. }
  1367. }
  1368. .newBand.close {
  1369. background-color: #777;
  1370. border: 1px solid #777;
  1371. }
  1372. }
  1373. .searchList {
  1374. background-color: #fff;
  1375. padding: 0 58px;
  1376. }
  1377. .sigup-core {
  1378. margin-top: 12px;
  1379. display: flex;
  1380. flex-direction: row;
  1381. justify-content: flex-start;
  1382. .left {
  1383. width: 340px;
  1384. background-color: #fff;
  1385. height: 80vh;
  1386. overflow: auto;
  1387. }
  1388. .right {
  1389. width: calc(100% - 340px);
  1390. margin-left: 12px;
  1391. flex-grow: 1;
  1392. }
  1393. }
  1394. }
  1395. .el-dialog__body {
  1396. overflow: hidden;
  1397. }
  1398. .left-code,
  1399. .right-code {
  1400. // width: 50%;
  1401. // float: left;
  1402. h2 {
  1403. font-size: 18px;
  1404. text-align: center;
  1405. padding-bottom: 8px;
  1406. }
  1407. .qrcode {
  1408. display: flex;
  1409. flex-direction: column;
  1410. align-items: center;
  1411. img {
  1412. width: 200px;
  1413. height: 200px;
  1414. margin: 0 auto;
  1415. }
  1416. }
  1417. .code-url {
  1418. font-size: 18px;
  1419. text-align: center;
  1420. padding: 15px 15px 0 15px;
  1421. }
  1422. }
  1423. .newBand {
  1424. margin-bottom: 0;
  1425. }
  1426. /deep/.el-button--danger {
  1427. background: #f85043;
  1428. }
  1429. .paymentForm {
  1430. /deep/.el-input__inner,
  1431. /deep/.el-input.el-input--suffix {
  1432. width: 360px !important;
  1433. }
  1434. }
  1435. </style>