studentList.vue 71 KB

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