studentList.vue 71 KB

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