studentList.vue 67 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134
  1. <template>
  2. <div class="stu-container">
  3. <div class="studentListWrap">
  4. <div
  5. v-if="team_status == 'PROGRESS'"
  6. class="newBand"
  7. v-permission="'studentRegistration/insertStudent'"
  8. @click="createStudentFrom"
  9. >
  10. 新增学员
  11. </div>
  12. <div
  13. class="newBand"
  14. v-permission="'studentManage/updateMemberExperience'"
  15. @click="addTryTime"
  16. >
  17. 增加会员试用期
  18. </div>
  19. </div>
  20. <!-- 搜索类型 -->
  21. <save-form
  22. ref="searchForm"
  23. :inline="true"
  24. :save-key="saveKey"
  25. class="searchForm"
  26. @submit="search"
  27. @reset="onReSet"
  28. :model="searchForm"
  29. >
  30. <el-form-item prop="search">
  31. <el-input
  32. v-model.trim="searchForm.search"
  33. clearable
  34. placeholder="学生姓名或电话"
  35. @keyup.enter.native="search"
  36. ></el-input>
  37. </el-form-item>
  38. <el-form-item prop="studentStatus">
  39. <el-select
  40. v-model.trim="searchForm.studentStatus"
  41. clearable
  42. filterable
  43. placeholder="学员状态"
  44. >
  45. <el-option label="在读" value="NORMAL"></el-option>
  46. <el-option label="请假" value="LEAVE"></el-option>
  47. <el-option label="退团" value="QUIT"></el-option>
  48. <el-option label="报名" value="APPLY"></el-option>
  49. </el-select>
  50. </el-form-item>
  51. <el-form-item prop="createYear">
  52. <el-date-picker
  53. v-model="searchForm.createYear"
  54. type="year"
  55. value-format="yyyy"
  56. placeholder="选择入团年份"
  57. >
  58. </el-date-picker>
  59. </el-form-item>
  60. <el-form-item prop="currentGrade">
  61. <!-- <el-input
  62. v-model.trim="searchForm.currentGrade"
  63. clearable
  64. placeholder="学员年级"
  65. ></el-input> -->
  66. <el-select
  67. v-model.trim="searchForm.currentGrade"
  68. filterable
  69. clearable
  70. placeholder="请选择年级"
  71. >
  72. <el-option
  73. v-for="(item, index) in gradeList"
  74. :key="index"
  75. :label="item.label"
  76. :value="item.label"
  77. ></el-option>
  78. </el-select>
  79. </el-form-item>
  80. <el-form-item prop="classGroupId">
  81. <el-select
  82. v-model.trim="searchForm.classGroupId"
  83. clearable
  84. filterable
  85. placeholder="请选择班级"
  86. >
  87. <el-option
  88. v-for="(item, index) in classList"
  89. :key="index"
  90. :value="item.id"
  91. :label="item.name"
  92. ></el-option>
  93. </el-select>
  94. </el-form-item>
  95. <el-form-item prop="major">
  96. <el-select
  97. v-model.trim="searchForm.major"
  98. clearable
  99. filterable
  100. placeholder="所选专业"
  101. >
  102. <el-option
  103. v-for="(item, index) in soundList"
  104. :key="index"
  105. :value="item.id"
  106. :label="item.name"
  107. ></el-option>
  108. </el-select>
  109. </el-form-item>
  110. <el-form-item prop="isPay">
  111. <el-select
  112. v-model.trim="searchForm.isPay"
  113. clearable
  114. filterable
  115. placeholder="报名缴费"
  116. >
  117. <el-option label="未开启缴费" value="0"></el-option>
  118. <el-option label="开启缴费" value="1"></el-option>
  119. <el-option label="已缴费" value="2"></el-option>
  120. </el-select>
  121. </el-form-item>
  122. <el-form-item prop="oweFlag">
  123. <el-select
  124. v-model.trim="searchForm.oweFlag"
  125. clearable
  126. filterable
  127. placeholder="是否欠费"
  128. >
  129. <el-option label="否" value="0"></el-option>
  130. <el-option label="是" value="1"></el-option>
  131. </el-select>
  132. </el-form-item>
  133. <el-form-item prop="hasMember">
  134. <el-select
  135. class="multiple"
  136. v-model.trim="searchForm.hasMember"
  137. clearable
  138. placeholder="是否是会员"
  139. >
  140. <el-option label="是" value="1"></el-option>
  141. <el-option label="否" value="0"></el-option>
  142. <el-option label="未生效" value="2"></el-option>
  143. </el-select>
  144. </el-form-item>
  145. <el-form-item prop="isActive">
  146. <el-select
  147. v-model.trim="searchForm.isActive"
  148. clearable
  149. filterable
  150. placeholder="是否激活"
  151. >
  152. <el-option label="是" value="1"></el-option>
  153. <el-option label="否" value="0"></el-option>
  154. </el-select>
  155. </el-form-item>
  156. <el-form-item prop="hasCourse">
  157. <el-select
  158. v-model.trim="searchForm.hasCourse"
  159. clearable
  160. placeholder="VIP/网管是否有课"
  161. >
  162. <el-option label="是" value="true"></el-option>
  163. <el-option label="否" value="false"></el-option>
  164. </el-select>
  165. </el-form-item>
  166. <el-form-item prop="carePackage">
  167. <el-select
  168. class="multiple"
  169. v-model.trim="searchForm.carePackage"
  170. clearable
  171. placeholder="关心包"
  172. >
  173. <el-option label="不可用" :value="0"></el-option>
  174. <el-option label="可用" :value="1"></el-option>
  175. <el-option label="已使用" :value="2"></el-option>
  176. </el-select>
  177. </el-form-item>
  178. <el-form-item prop="comeOnPackage">
  179. <el-select
  180. class="multiple"
  181. v-model.trim="searchForm.comeOnPackage"
  182. clearable
  183. placeholder="加油包"
  184. >
  185. <el-option label="不可用" :value="0"></el-option>
  186. <el-option label="可用" :value="1"></el-option>
  187. <el-option label="已使用" :value="2"></el-option>
  188. </el-select>
  189. </el-form-item>
  190. <el-form-item>
  191. <el-button native-type="submit" type="danger">搜索</el-button>
  192. <el-button type="primary" native-type="reset">重置</el-button>
  193. <el-button
  194. type="primary"
  195. v-permission="'export/musicGroupStudent'"
  196. @click="onMusicGroupExport"
  197. >导出</el-button
  198. >
  199. </el-form-item>
  200. </save-form>
  201. <div style="font-size: 14px; color: #f85043; padding-bottom: 10px">
  202. 在读人数:{{ studentListInfo.studying
  203. }}<i style="width: 10px; display: inline-block"></i> 退团人数:{{
  204. studentListInfo.quit
  205. }}<i style="width: 10px; display: inline-block"></i> VIP&网管转化率:{{
  206. studentListInfo.courseRate
  207. }}<i style="width: 10px; display: inline-block"></i>
  208. </div>
  209. <!-- 列表 -->
  210. <div class="tableWrap">
  211. <el-table
  212. :data="tableList"
  213. :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
  214. @selection-change="handleSelectionChange"
  215. >
  216. <el-table-column
  217. type="selection"
  218. width="55"
  219. :selectable="checkboxSelect"
  220. ></el-table-column>
  221. <el-table-column type="expand">
  222. <template slot-scope="props">
  223. <el-form label-position="left" class="demo-table-expand">
  224. <el-row>
  225. <el-col :span="6">
  226. <el-form-item label="入团年份">
  227. <span>{{
  228. props.row.registerTime | dayjsFormat("YYYY年")
  229. }}</span>
  230. </el-form-item></el-col
  231. >
  232. <el-col :span="6">
  233. <el-form-item label="性别">
  234. <span>{{ props.row.gender | sex }}</span>
  235. </el-form-item></el-col
  236. >
  237. <el-col :span="6">
  238. <el-form-item label="关心包">
  239. <span> {{ props.row.carePackage | studentPackage }} </span>
  240. </el-form-item></el-col
  241. >
  242. <el-col :span="6">
  243. <el-form-item label="报名专业">
  244. <copy-text>
  245. {{ props.row.regSubjectName }}
  246. </copy-text>
  247. </el-form-item></el-col
  248. >
  249. </el-row>
  250. <el-row>
  251. <el-col :span="6">
  252. <el-form-item label="是否激活">
  253. <span>{{ props.row.isActive ? "是" : "否" }}</span>
  254. </el-form-item></el-col
  255. >
  256. <el-col :span="6">
  257. <el-form-item label="VIP/网管是否有课">
  258. <span>{{ props.row.hasCourse ? "是" : "否" }}</span>
  259. </el-form-item></el-col
  260. >
  261. <el-col :span="6">
  262. <el-form-item label="加油包">
  263. <span>{{ props.row.comeOnPackage | studentPackage }}</span>
  264. </el-form-item></el-col
  265. >
  266. <el-col :span="6">
  267. <el-form-item label="退团原因">
  268. <overflow-text
  269. :text="props.row.quitReason"
  270. ></overflow-text> </el-form-item
  271. ></el-col>
  272. </el-row>
  273. </el-form>
  274. </template>
  275. </el-table-column>
  276. <el-table-column label="学员信息" width="120px;" prop="userId">
  277. <template slot-scope="scope">
  278. <div
  279. @click="gotoStudent(scope.row.userId)"
  280. style="color: #14928a; cursor: pointer"
  281. >
  282. <p>
  283. <copy-text>
  284. {{ scope.row.userId }}
  285. </copy-text>
  286. </p>
  287. <p>
  288. <copy-text>
  289. {{ scope.row.realName }}
  290. </copy-text>
  291. </p>
  292. </div>
  293. </template>
  294. </el-table-column>
  295. <!-- <el-table-column label="学员姓名" width="120px;" prop="realName">
  296. <template slot-scope="scope">
  297. <div
  298. @click="gotoStudent(scope.row.realName)"
  299. style="color: #14928a; cursor: pointer"
  300. >
  301. <copy-text>
  302. {{ scope.row.realName }}
  303. </copy-text>
  304. </div>
  305. </template>
  306. </el-table-column> -->
  307. <!-- <el-table-column
  308. align="center"
  309. prop="gender"
  310. width="50px;"
  311. label="性别"
  312. >
  313. <template slot-scope="scope">
  314. <div>{{ scope.row.gender | sex }}</div>
  315. </template>
  316. </el-table-column> -->
  317. <el-table-column align="center" prop="phone" label="联系电话">
  318. <template slot-scope="scope">
  319. <copy-text>
  320. {{ scope.row.phone }}
  321. </copy-text>
  322. </template>
  323. </el-table-column>
  324. <!-- <el-table-column align="center" label="入团年份">
  325. <template slot-scope="scope">
  326. <div>{{ scope.row.registerTime | dayjsFormat("YYYY年") }}</div>
  327. </template>
  328. </el-table-column> -->
  329. <!-- 年纪班级修改 -->
  330. <el-table-column align="center" label="年级班级">
  331. <template slot-scope="scope">
  332. <div v-if="gradeListObj[scope.row.currentGrade]">{{ gradeListObj[scope.row.currentGrade] + scope.row.currentClass }}</div>
  333. </template>
  334. </el-table-column>
  335. <!-- <el-table-column align="center" label="报名专业" prop="subjectName">
  336. <template slot-scope="scope">
  337. <copy-text>
  338. {{ scope.row.regSubjectName }}
  339. </copy-text>
  340. </template>
  341. </el-table-column> -->
  342. <el-table-column align="center" label="入团专业" prop="subjectName">
  343. <template slot-scope="scope">
  344. <copy-text>
  345. {{ scope.row.subjectName }}
  346. </copy-text>
  347. </template>
  348. </el-table-column>
  349. <el-table-column align="center" prop="studentStatus" label="学员状态">
  350. <template slot-scope="scope">
  351. <div>{{ scope.row.studentStatus | musicGroupStudentType }}</div>
  352. </template>
  353. </el-table-column>
  354. <!-- <el-table-column align="center" label="新增学员">
  355. <template slot-scope="scope">
  356. <div>{{ scope.row.isNewStudent | yesOrNo }}</div>
  357. </template>
  358. </el-table-column> -->
  359. <el-table-column align="center" label="报名缴费">
  360. <template slot-scope="scope">
  361. <div>{{ scope.row.paymentStatus | paymentStatus }}</div>
  362. </template>
  363. </el-table-column>
  364. <!-- <el-table-column align="center" label="是否激活">
  365. <template slot-scope="scope">
  366. <div>{{ scope.row.isActive ? "是" : "否" }}</div>
  367. </template>
  368. </el-table-column> -->
  369. <!-- <el-table-column align="center" label="VIP/网管是否有课">
  370. <template slot-scope="scope">
  371. <div>{{ scope.row.hasCourse ? "是" : "否" }}</div>
  372. </template>
  373. </el-table-column> -->
  374. <!-- <el-table-column align="center" label="关心包">
  375. <template slot-scope="scope">{{
  376. scope.row.carePackage | studentPackage
  377. }}</template>
  378. </el-table-column> -->
  379. <!-- <el-table-column align="center" label="加油包">
  380. <template slot-scope="scope">{{
  381. scope.row.comeOnPackage | studentPackage
  382. }}</template>
  383. </el-table-column> -->
  384. <el-table-column align="center" label="欠费金额(元)">
  385. <template slot-scope="scope">
  386. <div :class="[scope.row.noPaymentAmount > 0 ? 'error' : null]">
  387. {{ scope.row.noPaymentAmount | moneyFormat }}
  388. <!-- musicGroupPaymentCalenderDetail/queryPage/studentList -->
  389. <auth
  390. auths="musicGroupPaymentCalenderDetail/queryPage/studentList"
  391. :router="['/business/resetTeaming']"
  392. >
  393. <i
  394. style="color: #14928a; font-size: 17px"
  395. title="缴费记录"
  396. class="el-icon-view"
  397. @click="onPaymentDetail(scope.row)"
  398. ></i>
  399. </auth>
  400. </div>
  401. </template>
  402. </el-table-column>
  403. <!-- <el-table-column label="退团原因" align="center">
  404. <template slot-scope="scope">
  405. <div>
  406. <Tooltip :content="scope.row.quitReason" />
  407. </div>
  408. </template>
  409. </el-table-column> -->
  410. <el-table-column
  411. label="下次续费时间(剩余天数)"
  412. align="center"
  413. width="120px;"
  414. >
  415. <template slot-scope="scope">
  416. <div>
  417. {{ scope.row.musicMembershipEndTime | dayjsFormat }}
  418. <p
  419. class="error"
  420. v-if="
  421. scope.row.musicMembershipEndTime &&
  422. scope.row.musicMembershipDay >= 0
  423. "
  424. >
  425. 剩余{{ scope.row.musicMembershipDay }}天
  426. </p>
  427. <p
  428. class="error"
  429. v-if="
  430. scope.row.musicMembershipEndTime &&
  431. scope.row.musicMembershipDay < 0
  432. "
  433. >
  434. 已欠费{{ Math.abs(scope.row.musicMembershipDay) }}天
  435. </p>
  436. </div>
  437. </template>
  438. </el-table-column>
  439. <el-table-column
  440. label="会员试用结束日期(剩余天数)"
  441. align="center"
  442. width="120px;"
  443. >
  444. <template slot-scope="scope">
  445. <div>
  446. {{ scope.row.experienceMembershipEndTime | dayjsFormat }}
  447. <p
  448. class="error"
  449. v-if="
  450. scope.row.experienceMembershipEndTime &&
  451. scope.row.experienceMembershipDay >= 0
  452. "
  453. >
  454. 剩余{{ scope.row.experienceMembershipDay }}天
  455. </p>
  456. <p
  457. class="error"
  458. v-if="
  459. scope.row.experienceMembershipEndTime &&
  460. scope.row.experienceMembershipDay < 0
  461. "
  462. >
  463. 已过期{{ Math.abs(scope.row.experienceMembershipDay) }}天
  464. </p>
  465. </div>
  466. </template>
  467. </el-table-column>
  468. <el-table-column
  469. label="会员截止时间(剩余天数)"
  470. align="center"
  471. width="120px;"
  472. >
  473. <template slot-scope="scope">
  474. <div v-if="scope.row.membershipEndTime">
  475. <div v-if="scope.row.membershipDay >= 0">
  476. {{ scope.row.membershipEndTime | dayjsFormat }}
  477. <p class="red">剩余{{ scope.row.membershipDay }}天</p>
  478. </div>
  479. <!-- 已过期 -->
  480. <div v-else>
  481. <!-- 有未生效 -->
  482. <div v-if="scope.row.hasNoStartCloudTeacher">
  483. <p>会员未生效</p>
  484. </div>
  485. <!-- 无未生效 -->
  486. <div v-else>
  487. {{ scope.row.membershipEndTime | dayjsFormat }}
  488. <p class="red" v-if="scope.row.membershipDay < 0">
  489. 已过期{{ Math.abs(scope.row.membershipDay) }}天
  490. </p>
  491. </div>
  492. </div>
  493. <!-- <div></div>
  494. <p v-if="scope.row.hasNoStartCloudTeacher">
  495. {{ scope.row.membershipEndTime | dayjsFormat }}
  496. </p> -->
  497. </div>
  498. <div v-else class="red">
  499. <div v-if="scope.row.hasNoStartCloudTeacher">会员未生效</div>
  500. <div v-else>未购买会员</div>
  501. </div>
  502. </template>
  503. </el-table-column>
  504. <el-table-column label="备注" prop="remark" align="center">
  505. <template slot-scope="scope">
  506. <div>
  507. <overflow-text :text="scope.row.remark"></overflow-text>
  508. </div>
  509. </template>
  510. </el-table-column>
  511. <el-table-column align="center" width="180px;" label="操作">
  512. <template slot-scope="scope">
  513. <div>
  514. <el-button
  515. type="text"
  516. v-if="
  517. permission('studentManage/queryStudentClassGroup') &&
  518. scope.row.studentStatus != 'QUIT'
  519. "
  520. @click="lookClass(scope.row)"
  521. >查看班级</el-button
  522. >
  523. <el-button
  524. type="text"
  525. v-if="
  526. permission('musicGroupPaymentCalender/add') &&
  527. scope.row.studentStatus == 'APPLY' &&
  528. scope.row.paymentStatus != '2' &&
  529. team_status == 'PROGRESS'
  530. "
  531. @click="addPay(scope.row)"
  532. >添加缴费</el-button
  533. >
  534. <el-button
  535. type="text"
  536. v-if="
  537. permission('musicGroupQuit/directQuitMusicGroup/3852') &&
  538. scope.row.studentStatus != 'QUIT'
  539. "
  540. @click="quieTeamMask(scope.row)"
  541. >退团退费</el-button
  542. >
  543. <el-button
  544. type="text"
  545. v-if="
  546. permission('musicGroupQuit/directQuitMusicGroup/3851') &&
  547. scope.row.studentStatus != 'QUIT'
  548. "
  549. @click="quieTeam(scope.row)"
  550. >退团</el-button
  551. >
  552. <el-button
  553. type="text"
  554. v-if="permission('visit/add/teamStudentList')"
  555. @click="addVisit(scope.row)"
  556. >新增回访</el-button
  557. >
  558. <!-- <el-popover
  559. v-show="scope.row.remark"
  560. placement="top-start"
  561. title="备注"
  562. width="200"
  563. trigger="hover"
  564. :content="scope.row.remark"
  565. >
  566. <el-button type="text" slot="reference">备注</el-button>
  567. </el-popover> -->
  568. </div>
  569. </template>
  570. </el-table-column>
  571. </el-table>
  572. <pagination
  573. :save-key="saveKey"
  574. sync
  575. :total.sync="rules.total"
  576. :page.sync="rules.page"
  577. :limit.sync="rules.limit"
  578. :page-sizes="rules.page_size"
  579. @pagination="getList"
  580. />
  581. </div>
  582. <el-dialog
  583. title="新增学员"
  584. width="700px"
  585. class="studentInfo"
  586. :visible.sync="addStudentVisible"
  587. >
  588. <el-form
  589. :model="maskForm"
  590. label-position="right"
  591. label-width="120px"
  592. ref="maskForm"
  593. :rules="maskRules"
  594. :inline="true"
  595. >
  596. <el-alert title="基本信息" :closable="false" class="alert" type="info">
  597. </el-alert>
  598. <el-form-item
  599. label="联系电话"
  600. prop="phone"
  601. :rules="[
  602. { required: true, message: '请输入手机号' },
  603. {
  604. pattern: /^1[3456789]\d{9}$/,
  605. message: '请输入正确的手机号',
  606. trigger: 'blur',
  607. },
  608. ]"
  609. >
  610. <el-input
  611. v-model.trim="maskForm.phone"
  612. placeholder="联系电话"
  613. @blur="checkPhone(maskForm.phone)"
  614. ></el-input>
  615. </el-form-item>
  616. <el-form-item label="学员姓名" prop="studentName">
  617. <el-input
  618. v-model.trim="maskForm.studentName"
  619. placeholder="学员姓名"
  620. ></el-input>
  621. </el-form-item>
  622. <el-form-item label="学员性别" prop="sex">
  623. <el-select
  624. v-model.trim="maskForm.sex"
  625. clearable
  626. style="width: 185px !important"
  627. >
  628. <el-option label="男" :value="1"></el-option>
  629. <el-option label="女" :value="0"></el-option>
  630. </el-select>
  631. </el-form-item>
  632. <!-- <el-form-item label="家长姓名" prop="parentName">
  633. <el-input
  634. v-model.trim="maskForm.parentName"
  635. placeholder="家长姓名"
  636. ></el-input>
  637. </el-form-item> -->
  638. <el-form-item label="年级" prop="currentGradeNum">
  639. <el-select
  640. placeholder="起始年级"
  641. filterable
  642. clearable
  643. v-model.trim="maskForm.currentGradeNum"
  644. style="width: 185px !important"
  645. >
  646. <el-option
  647. v-for="item in gradeList"
  648. :key="item.value"
  649. :label="item.label"
  650. :value="item.value"
  651. ></el-option>
  652. <!-- <el-option value="一年级" label="一年级"></el-option>
  653. <el-option value="二年级" label="二年级"></el-option>
  654. <el-option value="三年级" label="三年级"></el-option>
  655. <el-option value="四年级" label="四年级"></el-option>
  656. <el-option value="五年级" label="五年级"></el-option>
  657. <el-option value="六年级" label="六年级"></el-option>
  658. <el-option value="初一" label="初一"></el-option>
  659. <el-option value="初二" label="初二"></el-option>
  660. <el-option value="初三" label="初三"></el-option>
  661. <el-option value="高一" label="高一"></el-option>
  662. <el-option value="高二" label="高二"></el-option>
  663. <el-option value="高三" label="高三"></el-option> -->
  664. </el-select>
  665. </el-form-item>
  666. <el-form-item label="班级" prop="course">
  667. <el-select
  668. placeholder="班级"
  669. filterable
  670. clearable
  671. v-model.trim="maskForm.course"
  672. style="width: 185px !important"
  673. >
  674. <el-option label="1班" value="1班"></el-option>
  675. <el-option label="2班" value="2班"></el-option>
  676. <el-option label="3班" value="3班"></el-option>
  677. <el-option label="4班" value="4班"></el-option>
  678. <el-option label="5班" value="5班"></el-option>
  679. <el-option label="6班" value="6班"></el-option>
  680. <el-option label="7班" value="7班"></el-option>
  681. <el-option label="8班" value="8班"></el-option>
  682. <el-option label="9班" value="9班"></el-option>
  683. <el-option label="10班" value="10班"></el-option>
  684. <el-option label="11班" value="11班"></el-option>
  685. <el-option label="12班" value="12班"></el-option>
  686. <el-option label="13班" value="13班"></el-option>
  687. <el-option label="14班" value="14班"></el-option>
  688. <el-option label="15班" value="15班"></el-option>
  689. <el-option label="16班" value="16班"></el-option>
  690. <el-option label="17班" value="17班"></el-option>
  691. <el-option label="18班" value="18班"></el-option>
  692. <el-option label="19班" value="19班"></el-option>
  693. <el-option label="20班" value="20班"></el-option>
  694. </el-select>
  695. <!-- <el-input
  696. v-model.trim="maskForm.course"
  697. placeholder="班级"
  698. ></el-input> -->
  699. </el-form-item>
  700. <el-form-item label="学员声部" prop="sound">
  701. <el-select
  702. v-model.trim="maskForm.sound"
  703. clearable
  704. filterable
  705. @change="onSoundChange"
  706. style="width: 185px !important"
  707. >
  708. <el-option
  709. v-for="(item, index) in soundList"
  710. :key="index"
  711. :value="item.id"
  712. :label="item.name"
  713. ></el-option>
  714. </el-select>
  715. </el-form-item>
  716. <!-- <el-form-item label="证件号"
  717. prop="id">
  718. <el-input v-model.trim="maskForm.id"></el-input>
  719. </el-form-item>-->
  720. <el-form-item label="出生日期" style="margin-right: 0" prop="timer">
  721. <el-col :span="24">
  722. <el-date-picker
  723. v-model.trim="maskForm.timer"
  724. value-format="yyyy-MM-dd"
  725. type="date"
  726. :picker-options="{
  727. firstDayOfWeek: 1,
  728. }"
  729. placeholder="选择日期"
  730. ></el-date-picker>
  731. </el-col>
  732. </el-form-item>
  733. </el-form>
  734. <div slot="footer" class="dialog-footer">
  735. <!-- <el-button @click="addStudentVisible = false">取 消</el-button> -->
  736. <el-button type="primary" @click="addStudent">确 定</el-button>
  737. </div>
  738. </el-dialog>
  739. <el-dialog
  740. title="学员所在班级"
  741. width="640px"
  742. :visible.sync="studentClassVisible"
  743. >
  744. <el-form :model="classMask">
  745. <el-form-item label="学生姓名">{{
  746. classMask.studentName
  747. }}</el-form-item>
  748. <el-form-item
  749. label="所在班级"
  750. v-for="(item, index) in classLists"
  751. :key="index"
  752. >{{ item.name }}</el-form-item
  753. >
  754. </el-form>
  755. </el-dialog>
  756. <!-- 退团弹窗 -->
  757. <el-dialog title="退团信息确认" width="640px" :visible.sync="quitVisible">
  758. <quiteTeam :quitForm="quitForm" :activeRow="activeRow" ref="quitForm" />
  759. <span slot="footer" class="dialog-footer question">
  760. <div>
  761. <el-popover placement="right" width="500" trigger="click">
  762. <div class="popoverWrap">
  763. <p>乐团退团退费规则:</p>
  764. <p>退还乐器练习云教练费用:报名缴费时缴费的乐器练习云教练费用</p>
  765. <p>退还课程费用:缴费总额-已结束课时单价之和</p>
  766. <p>退还乐器费用:报名缴费时缴纳的乐器费用(团购、租金)</p>
  767. <p>退还教辅费用:报名缴费时缴费的教辅费用</p>
  768. <p>退还乐保费用:报名缴费时缴费的乐保费用</p>
  769. </div>
  770. <el-button
  771. type="text"
  772. icon="el-icon-question"
  773. slot="reference"
  774. style="color: red"
  775. >退团退费说明</el-button
  776. >
  777. </el-popover>
  778. </div>
  779. <div>
  780. <el-button @click="quitVisible = false">取 消</el-button>
  781. <el-button type="primary" @click="chioseType">确 定</el-button>
  782. </div>
  783. </span>
  784. </el-dialog>
  785. <el-dialog
  786. title="修改缴费周期"
  787. :before-close="closePayVisible"
  788. width="600px"
  789. :visible.sync="payVisible"
  790. >
  791. <el-form :model="payForm" ref="payForm" :inline="true">
  792. <el-form-item label="学生姓名" prop="studentName">
  793. <el-input v-model.trim="payForm.studentName" disabled></el-input>
  794. </el-form-item>
  795. <br />
  796. <el-form-item label="缴费金额" prop="payMoney">
  797. <el-input
  798. type="number"
  799. v-model.trim="payForm.payMoney"
  800. @mousewheel.native.prevent
  801. ></el-input>
  802. </el-form-item>
  803. <el-form-item label="缴费月份" prop="payMonth">
  804. <el-checkbox-group
  805. v-model.trim="payForm.payMonth"
  806. fill="#14928A"
  807. text-color="#474747"
  808. >
  809. <el-checkbox label="1">一月</el-checkbox>
  810. <el-checkbox label="2">二月</el-checkbox>
  811. <el-checkbox label="3">三月</el-checkbox>
  812. <el-checkbox label="4">四月</el-checkbox>
  813. <el-checkbox label="5">五月</el-checkbox>
  814. <el-checkbox label="6">六月</el-checkbox>
  815. <el-checkbox label="7">七月</el-checkbox>
  816. <el-checkbox label="8">八月</el-checkbox>
  817. <el-checkbox label="9">九月</el-checkbox>
  818. <el-checkbox label="10">十月</el-checkbox>
  819. <el-checkbox label="11">十一月</el-checkbox>
  820. <el-checkbox label="12">十二月</el-checkbox>
  821. </el-checkbox-group>
  822. </el-form-item>
  823. <!-- studentName: '',
  824. payMoney: '',
  825. payMonth-->
  826. </el-form>
  827. <div slot="footer" class="dialog-footer">
  828. <el-button @click="quitVisible = false">取 消</el-button>
  829. <el-button type="primary" @click="submitPay">确 定</el-button>
  830. </div>
  831. </el-dialog>
  832. <el-dialog
  833. title="新增回访"
  834. width="500px"
  835. destroy-on-close
  836. :close-on-click-modal="false"
  837. :visible.sync="visitVisiable"
  838. >
  839. <visit
  840. v-if="visitVisiable && detail"
  841. :detail="detail"
  842. @close="visitVisiable = false"
  843. @submited="getList"
  844. />
  845. </el-dialog>
  846. <el-dialog
  847. title="选择班级"
  848. destroy-on-close
  849. width="830px"
  850. :visible.sync="createUserPayVisible"
  851. >
  852. <createUserPay
  853. :signList="signList"
  854. :mixList="mixList"
  855. :highList="highList"
  856. :snapList="snapList"
  857. :highonlineList="highonlineList"
  858. :musicGroupId="this.teamid"
  859. :organizationCourseUnitPriceSettings="
  860. organizationCourseUnitPriceSettings
  861. "
  862. :createdUserId="createdUserId"
  863. :baseInfo="baseInfo"
  864. @submited="getList"
  865. @close="createUserPayVisible = false"
  866. />
  867. </el-dialog>
  868. <el-dialog
  869. title="缴费记录"
  870. width="900px"
  871. :visible.sync="paymentDetailVisible"
  872. >
  873. <payment-list
  874. v-if="paymentDetailVisible"
  875. :paymentDetail="paymentDetail"
  876. @close="paymentDetailVisible = false"
  877. />
  878. </el-dialog>
  879. <el-dialog
  880. title="订单详情"
  881. :visible.sync="orderVisible"
  882. width="600px"
  883. v-if="orderVisible"
  884. >
  885. <el-form :model="orderForm" :inline="true">
  886. <el-form-item label="学员姓名">
  887. <el-input v-model.trim="orderForm.name" disabled=""></el-input>
  888. </el-form-item>
  889. <el-form-item label="实缴金额">
  890. <el-input v-model.trim="orderForm.totalAmount" disabled=""></el-input>
  891. </el-form-item>
  892. <el-form-item label="实际专业">
  893. <el-input v-model.trim="orderForm.subject" disabled=""></el-input>
  894. </el-form-item>
  895. <el-form-item label="课程费用">
  896. <el-input v-model.trim="orderForm.subjectFee" disabled=""></el-input>
  897. </el-form-item>
  898. <el-form-item label="选择乐器">
  899. <el-input v-model.trim="orderForm.axe" disabled=""></el-input>
  900. </el-form-item>
  901. <el-form-item label="乐器价格">
  902. <el-input v-model.trim="orderForm.axePrice" disabled=""></el-input>
  903. </el-form-item>
  904. <el-form-item label="教辅组合">
  905. <el-input v-model.trim="orderForm.others" disabled=""></el-input>
  906. </el-form-item>
  907. <el-form-item label="组合价格">
  908. <el-input v-model.trim="orderForm.othersPrice" disabled=""></el-input>
  909. </el-form-item>
  910. </el-form>
  911. <div slot="footer" class="dialog-footer">
  912. <!-- <el-button>取 消</el-button> -->
  913. <el-button type="primary" @click="orderVisible = false"
  914. >确 定</el-button
  915. >
  916. </div>
  917. </el-dialog>
  918. <el-dialog
  919. title="新增会员试用期"
  920. width="600px"
  921. :visible.sync="addTryVisible"
  922. >
  923. <addTryList
  924. ref="addTry"
  925. v-if="addTryVisible"
  926. :multipleSelection="multipleSelection"
  927. :memberRankList="memberRankList"
  928. @close="addTryVisible = false"
  929. @submited="getList"
  930. />
  931. <div slot="footer" class="dialog-footer">
  932. <el-button @click="addTryVisible = false">取 消</el-button>
  933. <el-button type="primary" @click="submitAddTryTime">确 定</el-button>
  934. </div>
  935. </el-dialog>
  936. </div>
  937. </template>
  938. <script>
  939. import {
  940. getTeamStudentList,
  941. getTeamStudentInfo,
  942. findSound,
  943. StudentQuit,
  944. findSubjectPlan,
  945. getGoods,
  946. getMusicGroup,
  947. getMusicGroupAllClass,
  948. StudentFeeIsLock,
  949. updateStudentFee,
  950. getMusicGroupGradeList,
  951. } from "@/api/buildTeam";
  952. import {
  953. addStudent,
  954. getStudentClass,
  955. getStudentInfoByPhone,
  956. } from "@/api/studentManager";
  957. import { getAllmemberRank } from "@/views/resetTeaming/api";
  958. import qrCode from "@/components/QrCode/index";
  959. import { getOrganizationCourseUnitPriceSettings } from "@/api/specialSetting";
  960. import { visitChiose } from "@/utils/searchArray";
  961. import pagination from "@/components/Pagination/index";
  962. import { vaildStudentUrl, vaildTeacherUrl } from "@/utils/validate";
  963. import QRCode from "qrcodejs2";
  964. import axios from "axios";
  965. import { getToken } from "@/utils/auth";
  966. import { permission } from "@/utils/directivePage";
  967. import { addVisit } from "@/views/returnVisitManager/api.js";
  968. import cleanDeep from "clean-deep";
  969. import createUserPay from "./modals/create-user-pay.vue";
  970. import TimesView from "./modals/course-time-detail";
  971. import paymentCycle from "../../resetTeaming/modals/payment-cycle";
  972. import paymentList from "./modals/payment-list";
  973. import Tooltip from "@/components/Tooltip/index";
  974. import changeVoice from "@/views/teamBuild/modals/change-voice";
  975. //import changeVoice from "./modals/change-voice";
  976. import visit from "@/views/withdrawal-application/modals/visit";
  977. import mergeMusic from "@/views/teamBuild/components/merge-music";
  978. import quiteTeam from "@/views/teamDetail/components/modals/quite-team";
  979. import addTryList from "@/views/teamDetail/components/modals/addTryList";
  980. export default {
  981. name: "tstudentList",
  982. data() {
  983. return {
  984. detail: null,
  985. teamid: "",
  986. paymentDetailVisible: false,
  987. paymentDetail: {},
  988. payVisible: false,
  989. quitVisible: false, // 退团信息确认的弹窗
  990. studentClassVisible: false, // 学员所在班级弹窗
  991. addStudentVisible: false, //新增学员弹窗
  992. timesVisible: false,
  993. timerDetail: null,
  994. topFrom: {
  995. // 顶部的禁选框集合
  996. expect: "2", // 预期招生
  997. studing: "5", // 在读人数
  998. allmoney: "100", //实收总额
  999. students: "5", // 实际招生人数
  1000. signout: "10", // 退团总数
  1001. },
  1002. searchForm: {
  1003. studentStatus: "", // 学生状态
  1004. major: "", // 报名专业
  1005. isPay: "", // 是否缴费
  1006. search: "",
  1007. isActive: "",
  1008. oweFlag: "",
  1009. currentGrade: null,
  1010. createYear: null,
  1011. classGroupId: null,
  1012. hasCourse: null,
  1013. carePackage: null,
  1014. comeOnPackage: null,
  1015. },
  1016. organizationCourseUnitPriceSettings: [],
  1017. quitForm: {
  1018. // 退团信息确认
  1019. isCloudTeacherAmount: null,
  1020. cloudTeacherAmount: null,
  1021. isRefundCourseFee: null,
  1022. isRefundInstrumentFee: null,
  1023. isRefundTeachingAssistantsFee: null,
  1024. isMaintenanceFee: null,
  1025. maintenanceFee: 0,
  1026. reason: "",
  1027. },
  1028. classMask: {
  1029. studentName: "",
  1030. },
  1031. baseInfo: {},
  1032. searchLsit: [],
  1033. tableList: [], //
  1034. rules: {
  1035. // 分页规则
  1036. limit: 10, // 限制显示条数
  1037. page: 1, // 当前页
  1038. total: 0, // 总条数
  1039. page_size: [10, 20, 40, 50], // 选择限制显示条数
  1040. },
  1041. studentListInfo: {
  1042. add: "",
  1043. quit: "",
  1044. studying: "",
  1045. courseRate: "",
  1046. },
  1047. signList: [],
  1048. mixList: [],
  1049. highList: [],
  1050. snapList: [],
  1051. soundList: [],
  1052. highonlineList: [],
  1053. muiscnetworkList: [],
  1054. qrcodeStatus: false, // 生成二维码
  1055. qrcodes: true,
  1056. qrcode: null,
  1057. codeUrl: null,
  1058. gradeList: [], // 学生
  1059. maskForm: {
  1060. studentName: "",
  1061. sex: "",
  1062. parentName: "",
  1063. course: "",
  1064. phone: "",
  1065. sound: "",
  1066. timer: "",
  1067. signClass: "",
  1068. mixClass: "",
  1069. highClass: "",
  1070. snapClass: [],
  1071. highonline: "",
  1072. muiscnetwork: "",
  1073. startClass: "",
  1074. currentGradeNum: null,
  1075. id: "",
  1076. // courseFee: null, // 声部费用
  1077. temporaryCourseFee: null, // 本次课程费用
  1078. musicGoodsIdList: null, // 乐器商品编号
  1079. kitGroupPurchaseType: "GROUP", // 乐器购买方式
  1080. musicPrice: null, // 乐器购买金额
  1081. instrGoodsIdList: [], // 辅件商品编号
  1082. instrPrice: null, // 辅件购买金额
  1083. },
  1084. remark: "", // 退团原因
  1085. classList: [],
  1086. maskRules: {
  1087. studentName: [{ required: true, message: "请输入学生姓名" }],
  1088. sex: [{ required: true, message: "请选择学生姓名" }],
  1089. parentName: [{ required: true, message: "请输入家长姓名" }],
  1090. course: [{ required: true, message: "请输入班级" }],
  1091. // phone: [{ required: true, message: '请输入手机号' }, { pattern: /^1[3456789]\d{9}$/, message: '请输入正确的手机号', trigger: 'blur' }],
  1092. sound: [{ required: true, message: "请选择声部" }],
  1093. timer: [{ required: true, message: "请选择出生日期" }],
  1094. signClass: [{ required: true, message: "请选择声部班" }],
  1095. // price: [{ required: true, message: '请输入首缴金额' },],
  1096. currentGradeNum: [{ required: true, message: "请选择年级" }],
  1097. id: [{ required: true, message: "请输入证件号" }],
  1098. // courseFee: [{ required: true, message: "请输入声部费用" }],
  1099. temporaryCourseFee: [{ required: true, message: "请输课程费用" }],
  1100. musicGoodsIdList: [
  1101. { required: true, message: "请选择乐器", trigger: "change" },
  1102. ],
  1103. musicPrice: [{ required: true, message: "请输入乐器购买金额" }],
  1104. instrGoodsIdList: [{ required: true, message: "请选择辅件" }],
  1105. instrPrice: [{ required: true, message: "请输入辅件金额" }],
  1106. },
  1107. INSTRUMENTLIST: [], // 乐器列表
  1108. ACCESSORIESLIST: [], // 辅件列表
  1109. activeRow: { hasMaintenance: false },
  1110. Fsearch: null,
  1111. Frules: null,
  1112. payForm: {
  1113. studentName: "",
  1114. payMoney: "",
  1115. payMonth: [],
  1116. },
  1117. kitStatus: false, // 乐器提供方式
  1118. // 新增回访记录弹窗
  1119. visitVisiable: false,
  1120. visitForm: {
  1121. musicGroupId: "",
  1122. overview: "",
  1123. purpose: "",
  1124. studentId: "",
  1125. type: "",
  1126. visitTime: "",
  1127. visitType: "",
  1128. feedback: "",
  1129. studentName: "",
  1130. },
  1131. cycles: [{}],
  1132. collapse: [0],
  1133. visitChiose,
  1134. visitRules: {
  1135. overview: [{ required: true, message: "请输入学生近况" }],
  1136. feedback: [{ required: true, message: "请输入家长反馈" }],
  1137. visitTime: [{ required: true, message: "请输入回访时间" }],
  1138. visitType: [{ required: true, message: "请选择回访类型" }],
  1139. },
  1140. pickerOptions: null,
  1141. classLists: null,
  1142. createdUserId: 0,
  1143. createUserPayVisible: false,
  1144. team_status: "",
  1145. // 整合报名中
  1146. orderVisible: false,
  1147. orderForm: {
  1148. name: "",
  1149. totalAmount: "",
  1150. subject: "",
  1151. subjectFee: "",
  1152. axe: "",
  1153. axePrice: "",
  1154. others: "",
  1155. othersPrice: "",
  1156. },
  1157. maskSoundForm: {
  1158. subject: "",
  1159. },
  1160. subjectVisible: false,
  1161. multipleSelection: [],
  1162. isCanReg: false,
  1163. organId: "",
  1164. addTryVisible: false,
  1165. memberRankList: [],
  1166. gradeListObj:{}
  1167. };
  1168. },
  1169. components: {
  1170. pagination,
  1171. paymentCycle,
  1172. createUserPay,
  1173. Tooltip,
  1174. "times-view": TimesView,
  1175. paymentList,
  1176. visit,
  1177. qrCode,
  1178. changeVoice,
  1179. mergeMusic,
  1180. quiteTeam,
  1181. addTryList,
  1182. },
  1183. created() {},
  1184. filters: {
  1185. studentPays(val) {
  1186. let template = {
  1187. 0: "未缴费",
  1188. 1: "已缴费",
  1189. };
  1190. return template[val];
  1191. },
  1192. },
  1193. // activated() {
  1194. // this.init();
  1195. // },
  1196. async mounted() {
  1197. try {
  1198. const res = await getOrganizationCourseUnitPriceSettings({
  1199. rows: 9999,
  1200. });
  1201. this.organizationCourseUnitPriceSettings = res.data.rows;
  1202. } catch (error) {}
  1203. try {
  1204. const res = await getAllmemberRank({ isDefault: 0 });
  1205. this.memberRankList = res.data;
  1206. } catch (e) {
  1207. console.log(e);
  1208. }
  1209. this.init();
  1210. },
  1211. methods: {
  1212. onPaymentDetail(row) {
  1213. this.paymentDetail = row;
  1214. this.paymentDetailVisible = true;
  1215. },
  1216. viewTimer(row) {
  1217. // this.timerDetail = row
  1218. this.timesVisible = true;
  1219. },
  1220. permission(str) {
  1221. return permission(str);
  1222. },
  1223. async init() {
  1224. this.teamid = this.$route.query.id;
  1225. this.team_status = this.$route.query.team_status;
  1226. this.organId = this.$route.query.organId;
  1227. // 获取乐团是否能补招
  1228. // try {
  1229. // const ruselt = await checkCanReg({ musicGroupId: this.teamid });
  1230. // this.isCanReg = ruselt.data;
  1231. // } catch (e) {
  1232. // console.log(e);
  1233. // }
  1234. getMusicGroupGradeList({ musicGroupId: this.teamid }).then((res) => {
  1235. let result = res.data;
  1236. this.gradeListObj = res.data
  1237. if (res.code == 200 && result) {
  1238. for (let i in result) {
  1239. this.gradeList.push({
  1240. value: i,
  1241. label: result[i],
  1242. });
  1243. }
  1244. }
  1245. });
  1246. // 获取报名截止日期和缴费截止日期
  1247. // getTeamBaseInfo({ musicGroupId: this.teamid }).then((res) => {
  1248. // if (res.code == 200) {
  1249. // this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
  1250. // this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  1251. // this.organId = res.data.musicGroup.organId;
  1252. // }
  1253. // });
  1254. // 获取汇总数据
  1255. // this.getTeamStudent();
  1256. this.pickerOptions = this.beginDate();
  1257. this.getList();
  1258. // 获取乐团内所有声部
  1259. findSound({ musicGroupId: this.teamid }).then((res) => {
  1260. if (res.code == 200) {
  1261. this.soundList = res.data;
  1262. }
  1263. });
  1264. // this.getMusicClass()
  1265. // 获取乐团基本信息
  1266. getMusicGroup({ musicGroupId: this.teamid }).then(
  1267. (res) => (this.baseInfo = res.data)
  1268. );
  1269. // 获取乐团所有合奏课
  1270. },
  1271. getMusicClass() {
  1272. getMusicGroupAllClass({ musicGroupId: this.teamid }).then((res) => {
  1273. if (res.code == 200) {
  1274. this.classList = res.data;
  1275. this.signList = [];
  1276. this.mixList = [];
  1277. this.highList = [];
  1278. this.snapList = [];
  1279. this.highonlineList = [];
  1280. this.classList.forEach((item) => {
  1281. if (item.type == "NORMAL") {
  1282. this.signList.push(item);
  1283. } else if (item.type == "MIX") {
  1284. this.mixList.push(item);
  1285. } else if (item.type == "HIGH") {
  1286. this.highList.push(item);
  1287. } else if (item.type == "HIGH_ONLINE" && item.studentNum < 6) {
  1288. this.highonlineList.push(item);
  1289. } else if (item.type == "SNAP") {
  1290. this.snapList.push(item);
  1291. } else if (item.type == "MUSIC_NETWORK") {
  1292. this.muiscnetworkList.push(item);
  1293. }
  1294. });
  1295. }
  1296. });
  1297. },
  1298. getTeamStudent() {
  1299. getTeamStudentInfo({ musicGroupId: this.teamid }).then((res) => {
  1300. if (res.code == 200) {
  1301. this.studentListInfo = res.data;
  1302. }
  1303. });
  1304. },
  1305. permission(str) {
  1306. return permission(str);
  1307. },
  1308. onInstrumentChange() {
  1309. // 乐器切换时
  1310. // 乐器切换时
  1311. // let tempkitType = this.maskForm.kitGroupPurchaseType
  1312. // if(tempkitType == 'GROUP') {
  1313. // this.INSTRUMENTLIST.forEach(item => {
  1314. // if(item.value == value) {
  1315. // this.maskForm.musicPrice = item.marketPrice
  1316. // }
  1317. // })
  1318. // }
  1319. },
  1320. onKitGroupChnage(value) {
  1321. // 乐器提供方式
  1322. this.kitStatus = false;
  1323. if (value == "FREE") {
  1324. this.kitStatus = true;
  1325. this.maskForm.musicPrice = 0;
  1326. } else {
  1327. this.maskForm.musicPrice = null;
  1328. }
  1329. },
  1330. onMusicGroupExport() {
  1331. let url = "/api-web/export/musicGroupStudent";
  1332. let data = {
  1333. musicGroupId: this.teamid,
  1334. studentStatus: this.searchForm.studentStatus || null,
  1335. paymentStatus: this.searchForm.isPay || null,
  1336. subjectId: this.searchForm.major || null,
  1337. search: this.searchForm.search || null,
  1338. isActive: this.searchForm.isActive || null,
  1339. classGroupId: this.searchForm.classGroupId || null,
  1340. currentGrade: this.searchForm.currentGrade || null,
  1341. createYear: this.searchForm.createYear || null,
  1342. hasCourse: this.searchForm.hasCourse || null,
  1343. comeOnPackage: this.searchForm.comeOnPackage,
  1344. carePackage: this.searchForm.carePackage,
  1345. };
  1346. const options = {
  1347. method: "get",
  1348. headers: {
  1349. Authorization: getToken(),
  1350. },
  1351. url,
  1352. params: data,
  1353. responseType: "blob",
  1354. };
  1355. this.$confirm("您确定导出学员列表?", "提示", {
  1356. confirmButtonText: "确定",
  1357. cancelButtonText: "取消",
  1358. type: "warning",
  1359. })
  1360. .then(() => {
  1361. axios(options).then((res) => {
  1362. let blob = new Blob([res.data], {
  1363. // type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8',
  1364. type: "application/vnd.ms-excel;charset=utf-8",
  1365. // word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
  1366. });
  1367. let objectUrl = URL.createObjectURL(blob);
  1368. let link = document.createElement("a");
  1369. let fname = this.$route.query.name + "学员列表.xls";
  1370. link.href = objectUrl;
  1371. link.setAttribute("download", fname);
  1372. document.body.appendChild(link);
  1373. link.click();
  1374. });
  1375. })
  1376. .catch(() => {});
  1377. },
  1378. search() {
  1379. this.rules.page = 1;
  1380. this.getList();
  1381. },
  1382. onReSet() {
  1383. this.$refs.searchForm.resetFields();
  1384. this.search();
  1385. },
  1386. getList() {
  1387. // getintoClass({ musicGroupId: this.teamid }).then((res) => {
  1388. // if (res.code == 200) {
  1389. // this.$set(this, "leftList", res.data);
  1390. // // this.leftList = res.data;
  1391. // }
  1392. // });
  1393. this.getTeamStudent();
  1394. let obj = {
  1395. musicGroupId: this.teamid,
  1396. page: this.rules.page,
  1397. rows: this.rules.limit,
  1398. studentStatus: this.searchForm.studentStatus || null,
  1399. paymentStatus: this.searchForm.isPay || null,
  1400. subjectId: this.searchForm.major || null,
  1401. search: this.searchForm.search || null,
  1402. isActive: this.searchForm.isActive || null,
  1403. classGroupId: this.searchForm.classGroupId || null,
  1404. currentGrade: this.searchForm.currentGrade || null,
  1405. createYear: this.searchForm.createYear || null,
  1406. oweFlag: this.searchForm.oweFlag || null,
  1407. hasCourse: this.searchForm.hasCourse || null,
  1408. oweFlag: this.searchForm.oweFlag || null,
  1409. comeOnPackage: this.searchForm.comeOnPackage,
  1410. carePackage: this.searchForm.carePackage,
  1411. hasMember: this.searchForm.hasMember,
  1412. };
  1413. return getTeamStudentList(obj).then((res) => {
  1414. if (res.code == 200) {
  1415. this.tableList = res.data.rows;
  1416. this.rules.total = res.data.total;
  1417. return res;
  1418. }
  1419. });
  1420. },
  1421. addPay(row) {
  1422. this.createUserPayVisible = true;
  1423. this.createdUserId = row.userId;
  1424. },
  1425. addCycle() {
  1426. this.cycles.push({});
  1427. this.collapse.push(this.collapse.length);
  1428. },
  1429. removeCycle(index) {
  1430. this.cycles[index] = null;
  1431. this.cycles = this.cycles.filter((item) => !!item);
  1432. this.collapse.pop();
  1433. },
  1434. collapseChange(val) {
  1435. this.collapse = val;
  1436. },
  1437. gotoSignin() {
  1438. this.$router.push({
  1439. path: "/business/studentSignin",
  1440. query: {
  1441. id: this.teamid,
  1442. status: this.$route.query.status,
  1443. name: this.$route.query.name,
  1444. rules: this.Frules,
  1445. search: this.Fsearch,
  1446. },
  1447. });
  1448. },
  1449. chioseType() {
  1450. // 父级验证子集表单
  1451. this.$refs["quitForm"].$refs["quitForm"].validate((res) => {
  1452. if (res) {
  1453. this.$confirm("确定退团?", "提示", {
  1454. confirmButtonText: "确定",
  1455. cancelButtonText: "取消",
  1456. type: "warning",
  1457. })
  1458. .then(() => {
  1459. let row = this.activeRow;
  1460. let params = {
  1461. musicGroupId: this.teamid,
  1462. userId: row.userId,
  1463. reason: this.quitForm.reason,
  1464. isRefundCourseFee: this.quitForm.isRefundCourseFee,
  1465. isRefundInstrumentFee: this.quitForm.isRefundInstrumentFee,
  1466. isRefundTeachingAssistantsFee:
  1467. this.quitForm.isRefundTeachingAssistantsFee,
  1468. maintenanceFee: this.quitForm.maintenanceFee,
  1469. isRefundMemberFee: this.quitForm.isRefundMemberFee,
  1470. };
  1471. // 退还乐器练习云教练费用
  1472. if (this.quitForm.isRefundMemberFee) {
  1473. params.cloudTeacherAmount = this.quitForm.cloudTeacherAmount;
  1474. } else {
  1475. params.cloudTeacherAmount = 0;
  1476. }
  1477. // 发请求 退团
  1478. StudentQuit(params).then((res) => {
  1479. this.quitForm = {
  1480. // 退团信息确认
  1481. isRefundCourseFee: null,
  1482. isRefundInstrumentFee: null,
  1483. isRefundTeachingAssistantsFee: null,
  1484. isMaintenanceFee: null,
  1485. cloudTeacherAmount: null,
  1486. isCloudTeacherAmount: null,
  1487. isRefundMemberFee: null,
  1488. maintenanceFee: 0,
  1489. reason: "",
  1490. };
  1491. if (res.code == 200) {
  1492. this.$message.success("退团成功");
  1493. this.getList();
  1494. this.quitVisible = false;
  1495. }
  1496. });
  1497. })
  1498. .catch(() => {});
  1499. } else {
  1500. }
  1501. });
  1502. // row.typeVisible = false;
  1503. },
  1504. //
  1505. addStudent() {
  1506. // 发请求添加学员
  1507. this.$refs["maskForm"].validate((res) => {
  1508. if (res) {
  1509. // this.maskForm.parentName.timer 少个生日的字段
  1510. // classGroupId: maskForm.signClass
  1511. /** <!-- signClass: '',
  1512. mixClass: '',
  1513. highClass: '',
  1514. snapClass: [], --> */
  1515. let maskForm = this.maskForm;
  1516. // if (
  1517. // !maskForm.signClass &&
  1518. // !maskForm.mixClass &&
  1519. // !maskForm.highClass &&
  1520. // !maskForm.highonline &&
  1521. // !maskForm.muiscnetwork
  1522. // ) {
  1523. // if (
  1524. // !maskForm.snapClass ||
  1525. // !(maskForm.snapClass && maskForm.snapClass.length >= 1)
  1526. // ) {
  1527. // this.$message.error("该学生必须加入一个班级");
  1528. // return;
  1529. // }
  1530. // }
  1531. if (
  1532. maskForm.musicGoodsIdList &&
  1533. (maskForm.musicPrice === "" || maskForm.musicPrice === null)
  1534. ) {
  1535. this.$message.error("请输入乐器金额");
  1536. return;
  1537. }
  1538. if (
  1539. maskForm.instrGoodsIdList &&
  1540. maskForm.instrGoodsIdList.length > 0 &&
  1541. (maskForm.instrPrice === "" || maskForm.instrPrice === null)
  1542. ) {
  1543. this.$message.error("请输入辅件金额");
  1544. return;
  1545. }
  1546. let snapClassIds;
  1547. maskForm.snapClass
  1548. ? (snapClassIds = maskForm.snapClass.join(","))
  1549. : (snapClassIds = null);
  1550. let params = {
  1551. signClassId: maskForm.signClass,
  1552. mixClassId: maskForm.mixClass,
  1553. snapClassIds,
  1554. highClassId: maskForm.highClass,
  1555. courseFee: maskForm.courseFee,
  1556. temporaryCourseFee: maskForm.temporaryCourseFee,
  1557. studentRegistration: {
  1558. name: maskForm.studentName,
  1559. gender: maskForm.sex,
  1560. birthdate: maskForm.timer,
  1561. parentsName: maskForm.parentName,
  1562. parentsPhone: maskForm.phone,
  1563. currentGrade: maskForm.startClass,
  1564. currentGradeNum: maskForm.currentGradeNum,
  1565. currentClass: maskForm.course,
  1566. subjectId: maskForm.sound,
  1567. musicGroupId: this.teamid,
  1568. },
  1569. };
  1570. params.studentPaymentOrderDetails = [];
  1571. if (maskForm.musicGoodsIdList) {
  1572. params.studentPaymentOrderDetails.push({
  1573. goodsIdList: maskForm.musicGoodsIdList,
  1574. kitGroupPurchaseType: maskForm.kitGroupPurchaseType,
  1575. type: "MUSICAL",
  1576. price: maskForm.musicPrice,
  1577. });
  1578. }
  1579. if (maskForm.instrGoodsIdList && maskForm.instrGoodsIdList != "") {
  1580. params.studentPaymentOrderDetails.push({
  1581. goodsIdList: maskForm.instrGoodsIdList.join(","),
  1582. type: "ACCESSORIES",
  1583. price: maskForm.instrPrice,
  1584. });
  1585. }
  1586. addStudent(params).then((res) => {
  1587. if (res.code == 200) {
  1588. this.$message.success("添加学生成功");
  1589. this.getList();
  1590. this.addStudentVisible = false;
  1591. this.createUserPayVisible = true;
  1592. this.createdUserId = res.data;
  1593. }
  1594. this.$refs.maskForm.resetFields();
  1595. });
  1596. }
  1597. });
  1598. },
  1599. onSoundChange(value) {
  1600. // 学员声部切换时
  1601. // this.findSubjectPlan(value)
  1602. // this.ACCESSORIESLIST = [];
  1603. // this.maskForm.instrGoodsIdList = [];
  1604. // this.maskForm.instrPrice = null;
  1605. // this.INSTRUMENTLIST = [];
  1606. // this.maskForm.musicPrice = null;
  1607. // this.maskForm.musicGoodsIdList = null;
  1608. // this.getGoodsList(value, "INSTRUMENT"); // 乐器
  1609. // this.getGoodsList(value, "ACCESSORIES"); // 辅件
  1610. },
  1611. // 获取购买方式
  1612. findSubjectPlan(subjectId) {
  1613. findSubjectPlan({
  1614. musicGroupId: this.teamid,
  1615. subjectId: subjectId,
  1616. }).then((res) => {
  1617. let result = res.data;
  1618. if (res.code == 200) {
  1619. this.maskForm.musicMode = this.getBranchType(
  1620. result.kitGroupPurchaseType
  1621. );
  1622. }
  1623. });
  1624. },
  1625. getGoodsList(subjectId, type) {
  1626. getGoods({
  1627. subjectId: subjectId,
  1628. type: type,
  1629. organId: this.organId,
  1630. }).then((res) => {
  1631. let result = res.data;
  1632. if (res.code == 200) {
  1633. let tempArr = [];
  1634. result.forEach((item) => {
  1635. tempArr.push({
  1636. label: item.name,
  1637. value: item.id,
  1638. marketPrice: item.marketPrice,
  1639. });
  1640. });
  1641. if (type == "ACCESSORIES") {
  1642. this.ACCESSORIESLIST = tempArr;
  1643. }
  1644. if (type == "INSTRUMENT") {
  1645. this.INSTRUMENTLIST = tempArr;
  1646. }
  1647. }
  1648. });
  1649. },
  1650. getBranchType(status) {
  1651. let common = {
  1652. FREE: "免费",
  1653. GROUP: "团购",
  1654. LEASE: "租赁",
  1655. };
  1656. return common[status];
  1657. },
  1658. lookClass(row) {
  1659. this.classMask.studentName = row.realName;
  1660. getStudentClass({
  1661. musicGroupId: this.teamid,
  1662. teacherId: row.userId,
  1663. }).then((res) => {
  1664. if (res.code == 200) {
  1665. this.classLists = res.data;
  1666. this.studentClassVisible = true;
  1667. }
  1668. });
  1669. },
  1670. quieTeamMask(row) {
  1671. this.activeRow = row;
  1672. this.activeRow.courseViewType = this.baseInfo.courseViewType;
  1673. this.quitVisible = true;
  1674. this.quitForm.cloudTeacherAmount = row.cloudTeacherAmount;
  1675. },
  1676. quieTeam(row) {
  1677. this.$prompt("请输入退团原因", "提示", {
  1678. confirmButtonText: "确定",
  1679. cancelButtonText: "取消",
  1680. type: "warning",
  1681. inputPattern: /\S/,
  1682. inputErrorMessage: "请输入退团原因",
  1683. })
  1684. .then((val) => {
  1685. // 发请求 退团
  1686. StudentQuit({
  1687. musicGroupId: this.teamid,
  1688. userId: row.userId,
  1689. reason: val.value,
  1690. isRefundCourseFee: false,
  1691. isRefundInstrumentFee: false,
  1692. isRefundTeachingAssistantsFee: false,
  1693. }).then((res) => {
  1694. this.quitForm = {
  1695. // 退团信息确认
  1696. isRefundCourseFee: null,
  1697. isRefundInstrumentFee: null,
  1698. isRefundTeachingAssistantsFee: null,
  1699. isMaintenanceFee: null,
  1700. cloudTeacherAmount: null,
  1701. isCloudTeacherAmount: null,
  1702. maintenanceFee: 0,
  1703. reason: "",
  1704. };
  1705. if (res.code == 200) {
  1706. this.$message.success("退团成功");
  1707. this.getList();
  1708. this.quitVisible = false;
  1709. }
  1710. });
  1711. })
  1712. .catch(() => {});
  1713. },
  1714. checkPhone(val) {
  1715. var regu = /^1[3456789]\d{9}$/;
  1716. var re = new RegExp(regu);
  1717. if (re.test(val)) {
  1718. getStudentInfoByPhone({ mobile: this.maskForm.phone }).then((res) => {
  1719. if (res.code == 200) {
  1720. if (res.data) {
  1721. this.maskForm.studentName = res.data.name;
  1722. this.maskForm.sex = res.data.gender;
  1723. this.maskForm.parentName = res.data.parentsName;
  1724. this.maskForm.course = res.data.currentClass;
  1725. this.maskForm.startClass = res.data.currentGrade;
  1726. this.maskForm.currentGradeNum = res.data.currentGradeNum
  1727. ? res.data.currentGradeNum + ""
  1728. : null;
  1729. this.maskForm.phone = val;
  1730. this.maskForm.timer = res.data.birthdate;
  1731. }
  1732. }
  1733. });
  1734. }
  1735. },
  1736. lockStudent(row) {
  1737. this.$confirm("是否锁定/解锁学生缴费周期?", "提示", {
  1738. confirmButtonText: "确定",
  1739. cancelButtonText: "取消",
  1740. type: "warning",
  1741. })
  1742. .then(() => {
  1743. let musicGroupId = this.teamid;
  1744. let studentId = row.userId;
  1745. let isLock;
  1746. row.isLock == 0 ? (isLock = 1) : (isLock = 0);
  1747. StudentFeeIsLock({ musicGroupId, studentId, isLock }).then((res) => {
  1748. if (res.code == 200) {
  1749. this.$message.success("修改成功");
  1750. this.getList();
  1751. }
  1752. });
  1753. })
  1754. .catch(() => {});
  1755. },
  1756. resetPay(row) {
  1757. this.activeRow = row;
  1758. this.payVisible = true;
  1759. this.payForm.studentName = row.realName;
  1760. this.payForm.payMoney = row.courseFee;
  1761. this.payForm.payMonth = row.paymentPeriodList.split(",");
  1762. if (this.payForm.payMonth[0] == "") {
  1763. this.payForm.payMonth = [];
  1764. }
  1765. },
  1766. submitPay() {
  1767. let studentId = this.activeRow.userId;
  1768. let musicGroupId = this.teamid;
  1769. let month = this.payForm.payMonth.join(",") || null;
  1770. let amount = this.payForm.payMoney;
  1771. let obj = {
  1772. studentId,
  1773. musicGroupId,
  1774. month,
  1775. amount,
  1776. };
  1777. updateStudentFee(obj).then((res) => {
  1778. if (res.code == 200) {
  1779. this.$message.success("修改成功");
  1780. this.payVisible = false;
  1781. this.getList();
  1782. }
  1783. });
  1784. },
  1785. closePayVisible() {
  1786. this.$refs["payForm"].resetFields();
  1787. this.payVisible = false;
  1788. },
  1789. addVisit(row) {
  1790. console.log(row);
  1791. this.detail = row;
  1792. // this.visitForm.studentName = row.realName;
  1793. // this.visitForm.musicGroupId = this.teamid;
  1794. // this.visitForm.studentId = row.userId;
  1795. this.visitVisiable = true;
  1796. },
  1797. handleChange(val) {
  1798. this.visitForm.type = val[0];
  1799. this.visitForm.purpose = val[1];
  1800. },
  1801. submitAddVisit() {
  1802. console.log(this.$refs.visitForm);
  1803. this.$refs.visitForm.validate((res) => {
  1804. if (res) {
  1805. addVisit(cleanDeep(this.visitForm)).then((res) => {
  1806. if (res.code === 200) {
  1807. this.$message.success("新增成功");
  1808. this.visitVisiable = false;
  1809. }
  1810. });
  1811. }
  1812. });
  1813. },
  1814. beginDate() {
  1815. let self = this;
  1816. return {
  1817. firstDayOfWeek: 1,
  1818. disabledDate(time) {
  1819. return time.getTime() >= new Date().getTime(); //开始时间不选时,结束时间最大值小于等于当天
  1820. },
  1821. };
  1822. },
  1823. createStudentFrom() {
  1824. this.addStudentVisible = true;
  1825. },
  1826. // 报名缴费功能
  1827. payDate() {
  1828. let self = this;
  1829. return {
  1830. firstDayOfWeek: 1,
  1831. disabledDate(time) {
  1832. if (self.applyExpireDate) {
  1833. return (
  1834. time.getTime() <=
  1835. new Date(self.applyExpireDate.replace(/-/g, "/")).getTime()
  1836. );
  1837. } else {
  1838. return false;
  1839. }
  1840. },
  1841. };
  1842. },
  1843. applyDate() {
  1844. let self = this;
  1845. return {
  1846. firstDayOfWeek: 1,
  1847. disabledDate(time) {
  1848. if (self.paymentExpireDate) {
  1849. return (
  1850. time.getTime() >
  1851. new Date(self.paymentExpireDate.replace(/-/g, "/")).getTime()
  1852. );
  1853. } else {
  1854. return false;
  1855. }
  1856. },
  1857. };
  1858. },
  1859. handleSelectionChange(val) {
  1860. this.multipleSelection = val;
  1861. },
  1862. checkboxSelect(row) {
  1863. return row.studentStatus == "NORMAL";
  1864. },
  1865. gotoStudent(search) {
  1866. // this.$router.push({
  1867. // name: "teamCourseList",
  1868. // params: { courseIdSearch: row.id },
  1869. // });
  1870. this.$router.push({
  1871. name: "studentList",
  1872. params: { search: search },
  1873. });
  1874. },
  1875. addTryTime() {
  1876. if (this.multipleSelection.length > 0) {
  1877. this.addTryVisible = true;
  1878. } else {
  1879. this.$message.error("请至少选择一名学员");
  1880. }
  1881. },
  1882. submitAddTryTime() {
  1883. this.$refs.addTry.submit();
  1884. },
  1885. },
  1886. watch: {
  1887. createUserPayVisible(val) {
  1888. if (val) {
  1889. this.getMusicClass();
  1890. }
  1891. },
  1892. "quitForm.isMaintenanceFee"(val) {
  1893. if (val) {
  1894. this.quitForm.maintenanceFee = 300;
  1895. } else {
  1896. this.quitForm.maintenanceFee = 0;
  1897. }
  1898. },
  1899. quitVisible(val) {
  1900. if (!val) {
  1901. this.quitForm = {
  1902. // 退团信息确认
  1903. isRefundCourseFee: null,
  1904. isRefundInstrumentFee: null,
  1905. isRefundTeachingAssistantsFee: null,
  1906. isMaintenanceFee: null,
  1907. cloudTeacherAmount: null,
  1908. isCloudTeacherAmount: null,
  1909. isRefundMemberFee: null,
  1910. maintenanceFee: 0,
  1911. reason: "",
  1912. };
  1913. this.$refs["quitForm"].$refs["quitForm"].resetFields();
  1914. }
  1915. },
  1916. // visitVisiable(val) {
  1917. // if (!val) {
  1918. // this.$refs["visitForm"].resetFields();
  1919. // }
  1920. // },
  1921. },
  1922. computed: {
  1923. saveKey() {
  1924. // return 'teamDetails-'+this.$route.query.id
  1925. return "teamDetails-studentList|id|" + this.$route.query.id;
  1926. },
  1927. },
  1928. };
  1929. </script>
  1930. <style lang="scss" scoped>
  1931. .dialog-footer.question {
  1932. display: flex;
  1933. flex-direction: row;
  1934. justify-content: space-between;
  1935. }
  1936. // .moreInput {
  1937. // width: 100%;
  1938. // display: flex;
  1939. // /deep/.el-form-item__content {
  1940. // display: flex;
  1941. // flex-direction: row;
  1942. // }
  1943. // }
  1944. .error {
  1945. color: red;
  1946. }
  1947. .el-select {
  1948. width: 180px !important;
  1949. }
  1950. .headWrap {
  1951. padding: 20px 0;
  1952. }
  1953. /deep/.el-date-editor.el-input {
  1954. width: auto;
  1955. .el-input__inner {
  1956. padding-right: 0;
  1957. }
  1958. }
  1959. .studentInfo {
  1960. /deep/.el-dialog__body {
  1961. // padding-top: 0;
  1962. // padding-bottom: 0;
  1963. }
  1964. }
  1965. // .instrList {
  1966. // display: flex;
  1967. // /deep/.el-form-item__content {
  1968. // width: 80%;
  1969. // }
  1970. // .el-col {
  1971. // /deep/.el-form-item__content {
  1972. // width: 100%;
  1973. // }
  1974. // }
  1975. // }
  1976. .stu-container {
  1977. .topFrom {
  1978. margin: 20px 30px 0;
  1979. width: 1000px;
  1980. }
  1981. .newStudent {
  1982. width: 121px;
  1983. height: 40px;
  1984. background: rgba(20, 146, 138, 1);
  1985. border-radius: 4px;
  1986. color: #fff;
  1987. text-align: center;
  1988. line-height: 40px;
  1989. font-size: 14px;
  1990. cursor: pointer;
  1991. }
  1992. }
  1993. .left-code,
  1994. .right-code {
  1995. // width: 50%;
  1996. // float: left;
  1997. h2 {
  1998. display: block;
  1999. font-size: 18px;
  2000. text-align: center;
  2001. padding-bottom: 8px;
  2002. line-height: 1;
  2003. height: 30px;
  2004. margin-bottom: 0;
  2005. }
  2006. .qrcode {
  2007. display: flex;
  2008. justify-content: center;
  2009. img {
  2010. width: 200px;
  2011. height: 200px;
  2012. // margin: 0 auto;
  2013. }
  2014. }
  2015. .code-url {
  2016. font-size: 18px;
  2017. text-align: center;
  2018. padding: 15px 15px 0 15px;
  2019. }
  2020. }
  2021. .export {
  2022. background: #14928a;
  2023. }
  2024. .alert {
  2025. margin-bottom: 10px;
  2026. }
  2027. .collapse-title {
  2028. display: flex;
  2029. justify-content: space-between;
  2030. align-items: center;
  2031. width: 100%;
  2032. .el-icon-circle-close {
  2033. font-size: 16px;
  2034. margin-right: 10px;
  2035. }
  2036. }
  2037. /deep/ .el-collapse-item__wrap {
  2038. padding-top: 20px;
  2039. }
  2040. .cycleForm {
  2041. /deep/ .el-form-item {
  2042. display: flex;
  2043. width: 100%;
  2044. /deep/ .el-form-item__content {
  2045. margin-left: 0 !important;
  2046. flex: 1;
  2047. }
  2048. }
  2049. }
  2050. .statistic {
  2051. padding: 20px 0;
  2052. text-align: center;
  2053. width: 100%;
  2054. margin: auto !important;
  2055. }
  2056. .popoverWrap {
  2057. p {
  2058. line-height: 25px;
  2059. }
  2060. }
  2061. .studentListWrap {
  2062. display: flex;
  2063. flex-direction: row;
  2064. justify-content: flex-start;
  2065. align-items: center;
  2066. div {
  2067. margin-right: 15px;
  2068. }
  2069. }
  2070. .btnList {
  2071. display: flex;
  2072. flex-direction: row;
  2073. justify-content: flex-start;
  2074. align-items: center;
  2075. flex-wrap: wrap;
  2076. & > div {
  2077. margin-right: 15px;
  2078. margin-bottom: 10px;
  2079. }
  2080. }
  2081. .demo-table-expand {
  2082. font-size: 0;
  2083. }
  2084. .demo-table-expand label {
  2085. width: 150px;
  2086. color: #99a9bf;
  2087. }
  2088. .demo-table-expand .el-form-item {
  2089. margin-right: 0;
  2090. margin-bottom: 0;
  2091. overflow: hidden;
  2092. text-overflow: ellipsis;
  2093. white-space: nowrap;
  2094. padding-right: 10px;
  2095. }
  2096. /deep/.el-table__expanded-cell[class*="cell"] {
  2097. padding: 20px 0 20px 110px;
  2098. }
  2099. .red {
  2100. color:red;
  2101. }
  2102. </style>