signupList.vue 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581
  1. <template>
  2. <div class="sigup-container">
  3. <div class="topWrap">
  4. <div>
  5. <h2>
  6. <el-page-header @back="onCancel" :content="teamName + '报名详情'">
  7. </el-page-header>
  8. </h2>
  9. <p style="margin-bottom: 15px; font-size: 18px; font-weight: 400">
  10. 报名截止时间:{{ applyExpireDate | formatTimer }} 缴费截止时间:{{
  11. paymentExpireDate | formatTimer
  12. }}
  13. </p>
  14. <div class="btnList">
  15. <!-- <div class='newBand close'
  16. v-permission="'musicGroup/cancelMusicGroup'"
  17. @click="onClose">停止乐团</div> -->
  18. <div
  19. class="newBand"
  20. @click="payStart"
  21. v-permission="'musicGroup/openPay'"
  22. v-show="status == 'APPLY'"
  23. >
  24. 开始缴费
  25. </div>
  26. <!-- v-show="status=='PAY'" -->
  27. <div
  28. class="newBand"
  29. v-permission="'musicGroup/found'"
  30. @click="onGoHome"
  31. >
  32. 确认开团
  33. </div>
  34. <div
  35. class="newBand"
  36. v-permission="'musicGroup/extensionPayment'"
  37. @click="extendTime(true)"
  38. v-show="status == 'PAY'"
  39. >
  40. 延长缴费
  41. </div>
  42. <div
  43. class="newBand"
  44. v-permission="'musicGroup/extensionApplyExpireDate'"
  45. @click="extendTime(false)"
  46. >
  47. 延长报名
  48. </div>
  49. <div class="newBand" @click="onCreateQRCode">报名链接</div>
  50. <div class="newBand" @click="onCreateQRCode2">缴费详情</div>
  51. <div
  52. class="newBand"
  53. v-show="rightList.length > 0"
  54. v-permission="'studentRegistration/queryStudentApplyDetailExport'"
  55. @click="onDownLoadExecl"
  56. >
  57. 报表导出
  58. </div>
  59. <div
  60. class="newBand"
  61. v-permission="'musicGroup/addMusicGroupRegs'"
  62. @click="mergeVisible = true"
  63. >
  64. 合并学员
  65. </div>
  66. </div>
  67. </div>
  68. <el-dialog title="选择合并乐团" :visible.sync="mergeVisible" width="950px">
  69. <mergeMusic
  70. v-if="mergeVisible"
  71. style="padding: 0 20px;"
  72. :organId="organId"
  73. @close="mergeVisible = false"
  74. @submited="getList"
  75. />
  76. </el-dialog>
  77. <!-- stepImgs: {
  78. APPLY: require('@/assets/images/base/clock.png'),
  79. PAY: require('@/assets/images/base/pay.png')
  80. }, -->
  81. <p class="msg" :class="status == 'PAY' ? 'pay' : ''">
  82. <img :src="status == 'APPLY' ? stepImgs.APPLY : stepImgs.PAY" alt="" />
  83. {{ status == "APPLY" ? "报名中" : "缴费中" }}
  84. </p>
  85. </div>
  86. <div class="searchList">
  87. <save-form
  88. :inline="true"
  89. :model="searchFrom"
  90. @submit="search"
  91. @reset="onReset"
  92. >
  93. <el-form-item label="专业">
  94. <el-select v-model.trim="searchFrom.subject" filterable clearable>
  95. <el-option
  96. v-for="(item, index) in soundList"
  97. :key="index"
  98. :label="item.name"
  99. :value="item.id"
  100. ></el-option>
  101. </el-select>
  102. </el-form-item>
  103. <el-form-item label="是否允许调剂">
  104. <el-select
  105. v-model.trim="searchFrom.isAllowAdjust"
  106. filterable
  107. clearable
  108. >
  109. <el-option label="是" value="1"></el-option>
  110. <el-option label="否" value="0"></el-option>
  111. </el-select>
  112. </el-form-item>
  113. <el-form-item label="用户名或手机号">
  114. <el-input v-model.trim="searchFrom.name"></el-input>
  115. </el-form-item>
  116. <!-- 专业actualSubjectId 调剂isAllowAdjust 手机号name -->
  117. <el-form-item>
  118. <el-button type="danger" native-type="search">搜索</el-button>
  119. <el-button type="primary" native-type="reset">重置</el-button>
  120. </el-form-item>
  121. </save-form>
  122. </div>
  123. <div class="sigup-core">
  124. <div class="left">
  125. <el-table
  126. :data="leftList"
  127. :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
  128. >
  129. <el-table-column label="乐团声部" prop="subjectName" align="center">
  130. </el-table-column>
  131. <el-table-column
  132. label="计划招生"
  133. prop="expectedStudentNum"
  134. align="center"
  135. >
  136. <template slot-scope="scope">
  137. <div>
  138. <p v-show="!isEdit">{{ scope.row.expectedStudentNum }}</p>
  139. <el-input
  140. v-show="isEdit"
  141. v-model.trim="scope.row.expectedStudentNum"
  142. ></el-input>
  143. </div>
  144. </template>
  145. </el-table-column>
  146. <el-table-column label="已报名" prop="applyStudentNum" align="center">
  147. </el-table-column>
  148. <el-table-column label="已缴费" prop="payNum" align="center">
  149. </el-table-column>
  150. </el-table>
  151. <div
  152. class="btnWrap"
  153. v-permission="'musicGroup/updateExpectedStudentNum'"
  154. style="margin-right: 20px; margin-top: 20px"
  155. >
  156. <el-button v-show="!isEdit" @click="isEdit = true">编辑</el-button>
  157. <el-button v-show="isEdit" @click="saveIsEdit">保存</el-button>
  158. </div>
  159. </div>
  160. <div class="right">
  161. <el-table
  162. :data="rightList"
  163. ref="multipleTable"
  164. :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
  165. @selection-change="handleSelectionChange"
  166. >
  167. <el-table-column type="selection" width="55"> </el-table-column>
  168. <el-table-column label="学员姓名" prop="studentName" align="center">
  169. </el-table-column>
  170. <el-table-column label="家长姓名" prop="parentsName" align="center">
  171. </el-table-column>
  172. <el-table-column label="年级班级" align="center">
  173. <template slot-scope="scope">
  174. <div>
  175. {{ scope.row.currentGrade + scope.row.currentClass }}
  176. </div>
  177. </template>
  178. </el-table-column>
  179. <el-table-column label="性别" prop="gender" align="center">
  180. <template slot-scope="scope">
  181. <div>
  182. {{ scope.row.gender | sex }}
  183. </div>
  184. </template>
  185. </el-table-column>
  186. <el-table-column label="服从调剂" prop="isAllowAdjust" align="center">
  187. <template slot-scope="scope">
  188. <div>
  189. {{ scope.row.isAllowAdjust | isAllowAdjust }}
  190. </div>
  191. </template>
  192. </el-table-column>
  193. <el-table-column label="报名专业" prop="subjectName" align="center">
  194. </el-table-column>
  195. <el-table-column
  196. label="调剂专业"
  197. prop="actualSubjectName"
  198. align="center"
  199. >
  200. </el-table-column>
  201. <el-table-column label="联系电话" prop="parentsPhone" align="center">
  202. </el-table-column>
  203. <!-- v-show='status == "PAY"' -->
  204. <el-table-column
  205. label="学员状态"
  206. fixed="right"
  207. prop="paymentStatus"
  208. align="center"
  209. >
  210. <template slot-scope="scope">
  211. <div>
  212. {{ scope.row.paymentStatus | paymentStatus }}
  213. </div>
  214. </template>
  215. </el-table-column>
  216. <el-table-column
  217. label="操作"
  218. fixed="right"
  219. width="240"
  220. align="center"
  221. >
  222. <template slot-scope="scope">
  223. <div>
  224. <el-button
  225. type="text"
  226. v-permission="'studentRegistration/batchUpdateSubject'"
  227. v-show="scope.row.paymentStatus != 2"
  228. @click="resetSubject(scope.row)"
  229. >修改专业</el-button
  230. >
  231. <!-- APPLY status == "APPLY" || s-->
  232. <el-popover
  233. v-show="scope.row.remark"
  234. placement="top-start"
  235. title="备注"
  236. width="200"
  237. trigger="hover"
  238. :content="scope.row.remark"
  239. >
  240. <el-button type="text" slot="reference">备注</el-button>
  241. </el-popover>
  242. <!-- PAY -->
  243. <!-- && status == "PAY"-->
  244. <el-button
  245. type="text"
  246. v-permission="'studentRegistration/queryFeeDetail'"
  247. v-show="scope.row.paymentStatus == 2"
  248. @click="lookdetail(scope.row)"
  249. >查看</el-button
  250. >
  251. <el-button
  252. type="text"
  253. v-permission="'musicGroupQuit/directQuitMusicGroup2'"
  254. v-show="scope.row.paymentStatus == 2"
  255. @click="quitTeam(scope.row)"
  256. >退团退费</el-button
  257. >
  258. <el-button
  259. type="text"
  260. v-show="
  261. permission('musicGroupQuit/directQuitMusicGroup3') &&
  262. scope.row.paymentStatus == 2
  263. "
  264. @click="quieTeams(scope.row)"
  265. >退团</el-button
  266. >
  267. <el-button
  268. type="text"
  269. v-show="permission('visit/add')"
  270. @click="addVisit(scope.row)"
  271. >新增回访</el-button
  272. >
  273. <el-button
  274. type="text"
  275. v-show="scope.row.paymentStatus == 2"
  276. v-permission="'subjectChange/getStudentOriginal'"
  277. @click="openChangeVoice(scope.row)"
  278. >更改声部</el-button
  279. >
  280. </div>
  281. </template>
  282. </el-table-column>
  283. </el-table>
  284. <div
  285. style="margin-top: 10px; margin-bottom: 10px"
  286. v-show="status == 'APPLY'"
  287. >
  288. <el-button @click="onSelectAll">全选/取消</el-button>
  289. <el-button
  290. style="background-color: #14928a; border: 1px solid #14928a"
  291. @click="onPartPayment"
  292. v-permission="'studentRegistration/openPayment'"
  293. type="primary"
  294. >提前缴费</el-button
  295. >
  296. <!-- <div class='newBand' v-show="status=='APPLY'">允许缴费</div> -->
  297. </div>
  298. <pagination
  299. sync
  300. :total.sync="rules.total"
  301. :page.sync="rules.page"
  302. :limit.sync="rules.limit"
  303. :page-sizes="rules.page_size"
  304. @pagination="getList"
  305. />
  306. </div>
  307. </div>
  308. <el-dialog title="修改专业" :visible.sync="subjectVisible" width="400px">
  309. <el-form :model="maskForm">
  310. <el-form-item label="选择专业">
  311. <el-select v-model.trim="maskForm.subject" filterable clearable>
  312. <el-option
  313. v-for="(item, index) in soundList"
  314. :key="index"
  315. :label="item.name"
  316. :value="item.id"
  317. ></el-option>
  318. </el-select>
  319. </el-form-item>
  320. </el-form>
  321. <div slot="footer" class="dialog-footer">
  322. <el-button @click="subjectVisible = false">取 消</el-button>
  323. <el-button type="primary" @click="okReset">确 定</el-button>
  324. </div>
  325. </el-dialog>
  326. <el-dialog
  327. :title="!isPay ? '延长报名' : '延长缴费'"
  328. :visible.sync="extendPaymentStatus"
  329. destroy-on-close
  330. width="400px"
  331. >
  332. <el-form :model="extendForm" ref="extendForm" :rules="extendRule">
  333. <el-form-item v-if="isPay" label="延长缴费时间" prop="expireDate">
  334. <el-date-picker
  335. v-model.trim="extendForm.expireDate"
  336. value-format="yyyy-MM-dd"
  337. type="date"
  338. :picker-options="{
  339. firstDayOfWeek: 1,
  340. }"
  341. placeholder="选择日期"
  342. >
  343. </el-date-picker>
  344. </el-form-item>
  345. <el-form-item label="延长报名时间" v-else prop="expireDate">
  346. <el-date-picker
  347. v-model.trim="extendForm.expireDate"
  348. value-format="yyyy-MM-dd"
  349. type="date"
  350. :picker-options="applyDates"
  351. placeholder="选择日期"
  352. >
  353. </el-date-picker>
  354. </el-form-item>
  355. </el-form>
  356. <div slot="footer" class="dialog-footer">
  357. <el-button @click="extendPaymentStatus = false">取 消</el-button>
  358. <el-button
  359. type="primary"
  360. v-if="isPay"
  361. @click="onExtendPayment('extendForm', isPay)"
  362. >确 定</el-button
  363. >
  364. <el-button
  365. v-else
  366. type="primary"
  367. @click="onExtendPayment('extendForm', isPay)"
  368. >确 定</el-button
  369. >
  370. </div>
  371. </el-dialog>
  372. <el-dialog title="订单详情" :visible.sync="orderVisible" width="600px">
  373. <el-form :model="orderForm" :inline="true">
  374. <!-- name: '',
  375. totalAmount: '',
  376. subject: '',
  377. subjectFee: '',
  378. axe: '',
  379. axePrice: '',
  380. others: '',
  381. othersPrice: '' -->
  382. <el-form-item label="学员姓名">
  383. <el-input v-model.trim="orderForm.name" disabled=""></el-input>
  384. </el-form-item>
  385. <el-form-item label="实缴金额">
  386. <el-input v-model.trim="orderForm.totalAmount" disabled=""></el-input>
  387. </el-form-item>
  388. <el-form-item label="实际专业">
  389. <el-input v-model.trim="orderForm.subject" disabled=""></el-input>
  390. </el-form-item>
  391. <el-form-item label="课程费用">
  392. <el-input v-model.trim="orderForm.subjectFee" disabled=""></el-input>
  393. </el-form-item>
  394. <el-form-item label="选择乐器">
  395. <el-input v-model.trim="orderForm.axe" disabled=""></el-input>
  396. </el-form-item>
  397. <el-form-item label="乐器价格">
  398. <el-input v-model.trim="orderForm.axePrice" disabled=""></el-input>
  399. </el-form-item>
  400. <el-form-item label="教辅组合">
  401. <el-input v-model.trim="orderForm.others" disabled=""></el-input>
  402. </el-form-item>
  403. <el-form-item label="组合价格">
  404. <el-input v-model.trim="orderForm.othersPrice" disabled=""></el-input>
  405. </el-form-item>
  406. </el-form>
  407. <div slot="footer" class="dialog-footer">
  408. <!-- <el-button>取 消</el-button> -->
  409. <el-button type="primary" @click="orderVisible = false"
  410. >确 定</el-button
  411. >
  412. </div>
  413. </el-dialog>
  414. <el-dialog
  415. title="开始缴费"
  416. :visible.sync="paymentStatus"
  417. width="400px"
  418. destroy-on-close
  419. >
  420. <el-form
  421. ref="paymentForm"
  422. class="paymentForm"
  423. :model="paymentForm"
  424. label-position="top"
  425. :rules="paymentRules"
  426. >
  427. <el-form-item label="请设置缴费截止日期" prop="paymentExpireDate">
  428. <el-date-picker
  429. v-model.trim="paymentForm.paymentExpireDate"
  430. type="date"
  431. value-format="yyyy-MM-dd"
  432. :picker-options="payDate()"
  433. style="width: 100%"
  434. placeholder="选择日期"
  435. >
  436. </el-date-picker>
  437. </el-form-item>
  438. <!-- <el-form-item label="是否排乐团网管课"
  439. :rules="[{ required: true, message: '请选择是否排乐团网管课'}]"
  440. prop="feeType">
  441. <el-select v-model="paymentForm.feeType"
  442. style="width: 100%!imoprtant">
  443. <el-option label="需要排线上课"
  444. value="ONLINE"></el-option>
  445. <el-option label="只排线下课"
  446. value="OFFLINE"></el-option>
  447. </el-select>
  448. </el-form-item> -->
  449. </el-form>
  450. <div slot="footer" class="dialog-footer">
  451. <el-button @click="paymentStatus = false">取 消</el-button>
  452. <el-button type="primary" @click="onStartPayment('paymentForm')"
  453. >确 定</el-button
  454. >
  455. </div>
  456. </el-dialog>
  457. <el-dialog title="报名二维码" :visible.sync="qrcodeStatus" width="300px">
  458. <div class="left-code">
  459. <h2>学员报名连接</h2>
  460. <div id="qrcode" class="qrcode code" ref="qrCodeUrl"></div>
  461. <p class="code-url" v-show="codeUrl">{{ codeUrl }}</p>
  462. </div>
  463. </el-dialog>
  464. <el-dialog
  465. title="缴费详情二维码"
  466. :visible.sync="qrcodeStatus2"
  467. width="300px"
  468. >
  469. <div class="right-code">
  470. <h2>报名缴费详情</h2>
  471. <div id="qrcode2" class="qrcode code" ref="qrCodeUrl"></div>
  472. <p class="code-url" v-show="codeUrl2">{{ codeUrl2 }}</p>
  473. </div>
  474. </el-dialog>
  475. <!-- 退团弹窗 -->
  476. <el-dialog
  477. title="退团信息确认"
  478. :destroy-on-close="true"
  479. width="640px"
  480. :visible.sync="quitVisible"
  481. >
  482. <el-form :model="quitForm" ref="quitForm" :rules="quitRules">
  483. <el-form-item label="退还课程费用" prop="isRefundCourseFee">
  484. <el-radio v-model.trim="quitForm.isRefundCourseFee" :label="true"
  485. >是</el-radio
  486. >
  487. <el-radio v-model.trim="quitForm.isRefundCourseFee" :label="false"
  488. >否</el-radio
  489. >
  490. </el-form-item>
  491. <el-form-item label="退还乐器费用" prop="isRefundInstrumentFee">
  492. <el-radio v-model.trim="quitForm.isRefundInstrumentFee" :label="true"
  493. >是</el-radio
  494. >
  495. <el-radio v-model.trim="quitForm.isRefundInstrumentFee" :label="false"
  496. >否</el-radio
  497. >
  498. </el-form-item>
  499. <el-form-item label="退还教辅费用" prop="isRefundTeachingAssistantsFee">
  500. <el-radio
  501. v-model.trim="quitForm.isRefundTeachingAssistantsFee"
  502. :label="true"
  503. >是</el-radio
  504. >
  505. <el-radio
  506. v-model.trim="quitForm.isRefundTeachingAssistantsFee"
  507. :label="false"
  508. >否</el-radio
  509. >
  510. </el-form-item>
  511. <el-form-item label="退团原因" prop="reason">
  512. <el-input type="textarea" v-model.trim="quitForm.reason"></el-input>
  513. </el-form-item>
  514. </el-form>
  515. <span slot="footer" class="dialog-footer">
  516. <el-button @click="quitVisible = false">取 消</el-button>
  517. <el-button type="primary" @click="chioseType">确 定</el-button>
  518. </span>
  519. </el-dialog>
  520. <!-- 回访记录 -->
  521. <el-dialog
  522. title="新增回访"
  523. width="600px"
  524. destroy-on-close
  525. :close-on-click-modal="false"
  526. :visible.sync="visitVisiable"
  527. >
  528. <el-form
  529. :model="visitForm"
  530. label-width="120px"
  531. label-position="right"
  532. ref="visitForm"
  533. :rules="visitRules"
  534. >
  535. <el-form-item label="学生姓名">
  536. <p>{{ visitForm.studentName }}</p>
  537. </el-form-item>
  538. <el-form-item label="回访类型" prop="visitType">
  539. <el-cascader
  540. expand-trigger="hover"
  541. clearable
  542. placeholder="请选择回访类型"
  543. :options="visitChiose"
  544. @change="handleChange"
  545. style="width: 220px !important"
  546. v-model="visitForm.visitType"
  547. >
  548. </el-cascader>
  549. </el-form-item>
  550. <el-form-item label="回访日期" prop="visitTime">
  551. <el-date-picker
  552. v-model.trim="visitForm.visitTime"
  553. align="right"
  554. style="width: 220px !important"
  555. type="date"
  556. placeholder="选择日期"
  557. :picker-options="pickerOptions"
  558. value-format="yyyy-MM-dd"
  559. ></el-date-picker>
  560. </el-form-item>
  561. <el-form-item label="学员情况" prop="overview">
  562. <el-input
  563. type="textarea"
  564. v-model="visitForm.overview"
  565. style="width: 80% !important"
  566. :rows="3"
  567. maxlength="50"
  568. show-word-limit
  569. ></el-input>
  570. </el-form-item>
  571. <el-form-item label="家长反馈" prop="feedback">
  572. <el-input
  573. type="textarea"
  574. v-model="visitForm.feedback"
  575. style="width: 80% !important"
  576. :rows="3"
  577. maxlength="50"
  578. show-word-limit
  579. ></el-input>
  580. </el-form-item>
  581. </el-form>
  582. <span slot="footer" class="dialog-footer">
  583. <el-button @click="visitVisiable = false">取 消</el-button>
  584. <el-button type="primary" @click="submitAddVisit">确 定</el-button>
  585. </span>
  586. </el-dialog>
  587. <el-dialog
  588. title="更改声部"
  589. :visible.sync="changeVoiceVisible"
  590. @close="closeChangeVoice"
  591. :destroy-on-close="true"
  592. width="600px"
  593. >
  594. <changeVoice
  595. @close="closeChangeVoice"
  596. @submited="getList"
  597. :detail.sync="rowDetail"
  598. :musicGroupId="id"
  599. :voiceList="leftList"
  600. />
  601. </el-dialog>
  602. </div>
  603. </template>
  604. <script>
  605. import pagination from "@/components/Pagination/index";
  606. import {
  607. getintoClass,
  608. getStudentList,
  609. findSound,
  610. musicGroupOpenPay,
  611. openPayment,
  612. musicGroupFound,
  613. extensionPayment,
  614. extensionApplyExpire,
  615. resetPlanNum,
  616. cancelMusicGroup,
  617. getTeamBaseInfo,
  618. studentApplyDetailExport,
  619. StudentQuit,
  620. } from "@/api/buildTeam";
  621. import mergeMusic from './components/merge-music'
  622. import { resetStudentSubject, getStudentFeeDetail } from "@/api/studentManager";
  623. import { vaildStudentUrl, vaildTeacherUrl } from "@/utils/validate";
  624. import { addVisit } from "@/views/returnVisitManager/api.js";
  625. import QRCode from "qrcodejs2";
  626. import { visitChiose } from "@/utils/searchArray";
  627. import axios from "axios";
  628. import { getToken } from "@/utils/auth";
  629. import load from "@/utils/loading";
  630. import qs from "qs";
  631. import { permission } from "@/utils/directivePage";
  632. import cleanDeep from "clean-deep";
  633. import changeVoice from "./modals/change-voice";
  634. export default {
  635. name: "signupList",
  636. components: {
  637. pagination,
  638. changeVoice,
  639. mergeMusic,
  640. },
  641. data() {
  642. return {
  643. multipleSelection: [], //
  644. isEdit: false,
  645. rowDetail: null,
  646. mergeVisible: false,
  647. changeVoiceVisible: false,
  648. subjectVisible: false,
  649. orderVisible: false,
  650. quitVisible: false,
  651. leftList: [],
  652. rightList: [],
  653. searchFrom: {
  654. name: "",
  655. subject: "", // 专业
  656. isAllowAdjust: "", // 是否允许调剂
  657. },
  658. quitForm: {
  659. // 退团信息确认
  660. isRefundCourseFee: null,
  661. isRefundInstrumentFee: null,
  662. isRefundTeachingAssistantsFee: null,
  663. reason: "",
  664. },
  665. stepImgs: {
  666. APPLY: require("@/assets/images/base/clock.png"),
  667. PAY: require("@/assets/images/base/pay.png"),
  668. },
  669. status: "",
  670. id: "",
  671. rules: {
  672. // 分页规则
  673. limit: 10, // 限制显示条数
  674. page: 1, // 当前页
  675. total: 0, // 总条数
  676. page_size: [10, 20, 30, 40], // 选择限制显示条数
  677. },
  678. teamName: "",
  679. maskForm: {
  680. subject: "",
  681. },
  682. activeId: "",
  683. soundList: [],
  684. orderForm: {
  685. name: "",
  686. totalAmount: "",
  687. subject: "",
  688. subjectFee: "",
  689. axe: "",
  690. axePrice: "",
  691. others: "",
  692. othersPrice: "",
  693. },
  694. paymentStatus: false,
  695. paymentForm: {
  696. paymentExpireDate: null,
  697. // feeType: null
  698. },
  699. paymentRules: {
  700. paymentExpireDate: [
  701. { required: true, message: "请设置缴费截止日期", trigger: "blur" },
  702. ],
  703. },
  704. paymentNum: 0, // 缴费了多少人
  705. qrcodeStatus: false, // 生成二维码
  706. qrcodes: true,
  707. qrcode: null,
  708. codeUrl: null,
  709. qrcodeStatus2: false, // 生成二维码
  710. qrcodes2: true,
  711. qrcode2: null,
  712. codeUrl2: null,
  713. organId: '',
  714. extendPaymentStatus: false,
  715. extendForm: {
  716. expireDate: null,
  717. },
  718. extendRule: {
  719. expireDate: [
  720. { required: true, message: "请选择延长时间", trigger: "change" },
  721. ],
  722. },
  723. quitRules: {
  724. isRefundCourseFee: [
  725. { required: true, message: "请选择是否退还课程费用" },
  726. ],
  727. isRefundInstrumentFee: [
  728. { required: true, message: "选择是否退还乐器费用" },
  729. ],
  730. isRefundTeachingAssistantsFee: [
  731. { required: true, message: "选择是否退还教辅费用" },
  732. ],
  733. reason: [{ required: true, message: "请填写退团退费原因" }],
  734. },
  735. applyExpireDate: "",
  736. paymentExpireDate: "",
  737. activeRow: null,
  738. visitVisiable: false,
  739. visitForm: {
  740. musicGroupId: "",
  741. overview: "",
  742. purpose: "",
  743. studentId: "",
  744. type: "",
  745. visitTime: "",
  746. visitType: "",
  747. feedback: "",
  748. studentName: "",
  749. },
  750. visitChiose,
  751. visitRules: {
  752. overview: [{ required: true, message: "请输入学生近况" }],
  753. feedback: [{ required: true, message: "请输入家长反馈" }],
  754. visitTime: [{ required: true, message: "请输入回访时间" }],
  755. visitType: [{ required: true, message: "请选择回访类型" }],
  756. },
  757. isPay: false,
  758. applyDates: this.applyDate(),
  759. };
  760. },
  761. created() {
  762. // 通过乐团状态判断显示隐藏的东西
  763. this.init();
  764. },
  765. activated() {
  766. this.init();
  767. },
  768. methods: {
  769. permission(str) {
  770. return permission(str);
  771. },
  772. init() {
  773. this.status = this.$route.query.status;
  774. // 通过乐团id 获取乐团招生状态
  775. this.id = this.$route.query.id;
  776. this.teamName = this.$route.query.name;
  777. // 判断是否带缓存参数
  778. this.pickerOptions = this.beginDate(new Date());
  779. getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
  780. if (res.code == 200) {
  781. this.organId = res.data.musicGroup.organId
  782. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  783. this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
  784. }
  785. });
  786. // 根据乐团id获乐团声部
  787. findSound({ musicGroupId: this.id }).then((res) => {
  788. if (res.code == 200) {
  789. this.soundList = res.data;
  790. }
  791. });
  792. // 通过乐团id获取乐团学生列表
  793. this.getList();
  794. },
  795. search() {
  796. this.rules.page = 1;
  797. this.getList();
  798. },
  799. onReset() {
  800. this.rules.page = 1;
  801. this.rules.limit = 10;
  802. this.searchFrom = {
  803. name: null,
  804. subject: null, // 专业
  805. isAllowAdjust: null, // 是否允许调剂
  806. };
  807. this.getList();
  808. },
  809. onCancel() {
  810. this.$router.push({ path: "/business/teamDetail" });
  811. },
  812. payStart() {
  813. this.paymentStatus = true;
  814. getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
  815. if (res.code == 200) {
  816. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  817. this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
  818. }
  819. });
  820. },
  821. getList() {
  822. let obj = {
  823. musicGroupId: this.id,
  824. actualSubjectId: this.searchFrom.subject || null,
  825. isAllowAdjust: this.searchFrom.isAllowAdjust || null,
  826. name: this.searchFrom.name || null,
  827. page: this.rules.page,
  828. rows: this.rules.limit,
  829. };
  830. // 根据乐团id获取学团情况
  831. getintoClass({ musicGroupId: this.id }).then((res) => {
  832. if (res.code == 200) {
  833. this.leftList = res.data;
  834. }
  835. });
  836. return getStudentList(obj).then((res) => {
  837. if (res.code == 200) {
  838. res.data.rows.forEach((item) => {
  839. // '未开启缴费', '开启缴费', '已缴费'
  840. if (item.paymentStatus == 2) {
  841. this.paymentNum += 1;
  842. }
  843. });
  844. this.rightList = res.data.rows;
  845. this.rules.total = res.data.total;
  846. return res;
  847. }
  848. });
  849. },
  850. onStartPayment(formName) {
  851. // 开启缴费
  852. this.$refs[formName].validate((valid) => {
  853. if (valid) {
  854. musicGroupOpenPay({
  855. musicGroupId: this.id,
  856. expireDate: this.paymentForm.paymentExpireDate,
  857. // feeType: this.paymentForm.feeType
  858. }).then((res) => {
  859. if (res.code == 200) {
  860. this.$message.success("开启成功");
  861. this.paymentStatus = false;
  862. this.$router.push({
  863. path: "/business/signupList",
  864. query: {
  865. status: "PAY",
  866. id: this.$route.query.id,
  867. name: this.$route.query.name,
  868. },
  869. });
  870. this.status = "PAY";
  871. this.paymentExpireDate = this.paymentForm.paymentExpireDate;
  872. this.getList();
  873. }
  874. });
  875. } else {
  876. return false;
  877. }
  878. });
  879. // this.id
  880. },
  881. onSelectAll() {
  882. // 选中全部
  883. this.$refs.multipleTable.toggleAllSelection();
  884. },
  885. onPartPayment() {
  886. // 部分缴费
  887. let selection = this.multipleSelection;
  888. if (selection.length <= 0) {
  889. this.$message.success("您还没有选择学生");
  890. return false;
  891. }
  892. let ids = [];
  893. selection.forEach((item) => {
  894. ids.push(item.id);
  895. });
  896. this.$confirm(`是否确认提前缴费?`, "提示", {
  897. confirmButtonText: "确定",
  898. cancelButtonText: "取消",
  899. type: "warning",
  900. })
  901. .then(() => {
  902. openPayment({
  903. ids: ids.join(","),
  904. }).then((res) => {
  905. if (res.code == 200) {
  906. this.$message.success("开启成功");
  907. this.getList();
  908. } else {
  909. this.$message.error(res.msg);
  910. }
  911. });
  912. })
  913. .catch(() => {});
  914. },
  915. onCreateQRCode() {
  916. // 生成报名二维码
  917. this.qrcodeStatus = true;
  918. let id = this.id;
  919. let teamName = this.$route.query.name;
  920. setTimeout(() => {
  921. document.getElementById("qrcode").innerHTML = "";
  922. this.qrcode = new QRCode("qrcode", {
  923. width: 200,
  924. height: 200,
  925. colorDark: "#000000",
  926. colorLight: "#ffffff",
  927. correctLevel: QRCode.CorrectLevel.H,
  928. });
  929. this.qrcode.makeCode(vaildStudentUrl() + "/#/login?musicGroupId=" + id);
  930. this.codeUrl = vaildStudentUrl() + "/#/login?musicGroupId=" + id;
  931. }, 500);
  932. },
  933. onCreateQRCode2() {
  934. // 生成报名二维码
  935. this.qrcodeStatus2 = true;
  936. let id = this.id;
  937. let teamName = this.$route.query.name;
  938. setTimeout(() => {
  939. document.getElementById("qrcode2").innerHTML = "";
  940. this.qrcode2 = new QRCode("qrcode2", {
  941. width: 200,
  942. height: 200,
  943. colorDark: "#000000",
  944. colorLight: "#ffffff",
  945. correctLevel: QRCode.CorrectLevel.H,
  946. });
  947. this.qrcode2.makeCode(
  948. vaildTeacherUrl() +
  949. "/#/order?musicGroupId=" +
  950. id +
  951. "&musicGroupName=" +
  952. teamName
  953. );
  954. this.codeUrl2 =
  955. vaildTeacherUrl() +
  956. "/#/order?musicGroupId=" +
  957. id +
  958. "&musicGroupName=" +
  959. teamName;
  960. }, 500);
  961. },
  962. onDownLoadExecl() {
  963. // 报表导出
  964. let url = "/api-web/studentRegistration/queryStudentApplyDetailExport";
  965. let data = {
  966. musicGroupId: this.$route.query.id,
  967. page: 1,
  968. rows: 9999,
  969. };
  970. const options = {
  971. method: "POST",
  972. headers: {
  973. Authorization: getToken(),
  974. },
  975. data: qs.stringify(data),
  976. url,
  977. responseType: "blob",
  978. };
  979. this.$confirm("您确定导出吗?", "提示", {
  980. confirmButtonText: "确定",
  981. cancelButtonText: "取消",
  982. type: "warning",
  983. })
  984. .then(() => {
  985. load.startLoading();
  986. axios(options)
  987. .then((res) => {
  988. let blob = new Blob([res.data], {
  989. // type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
  990. type: "application/vnd.ms-excel;charset=utf-8",
  991. //word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
  992. });
  993. let text = new Response(blob).text();
  994. text.then((res) => {
  995. // 判断是否报错
  996. if (res.indexOf("code") != -1) {
  997. let json = JSON.parse(res);
  998. this.$message.error(json.msg);
  999. } else {
  1000. let objectUrl = URL.createObjectURL(blob);
  1001. let link = document.createElement("a");
  1002. let nowTime = new Date();
  1003. let ymd =
  1004. nowTime.getFullYear() +
  1005. "" +
  1006. (nowTime.getMonth() + 1) +
  1007. "" +
  1008. nowTime.getDate() +
  1009. "" +
  1010. nowTime.getHours() +
  1011. "" +
  1012. nowTime.getMinutes();
  1013. let fname = this.$route.query.id + "-" + ymd + '.xls'; //下载文件的名字
  1014. link.href = objectUrl;
  1015. link.setAttribute("download", fname);
  1016. document.body.appendChild(link);
  1017. link.click();
  1018. }
  1019. });
  1020. load.endLoading();
  1021. })
  1022. .catch((error) => {
  1023. this.$message.error("导出数据失败,请联系管理员");
  1024. load.endLoading();
  1025. });
  1026. })
  1027. .catch(() => {});
  1028. },
  1029. onGoHome() {
  1030. // 确认开团
  1031. // 判断是否有学生缴费
  1032. if (this.paymentNum <= 0) {
  1033. this.$message.error("当前缴费人数为0,无法开团");
  1034. return;
  1035. }
  1036. this.$confirm(`是否确认开团?`, "提示", {
  1037. confirmButtonText: "确定",
  1038. cancelButtonText: "取消",
  1039. type: "warning",
  1040. })
  1041. .then(() => {
  1042. musicGroupFound({
  1043. musicGroupId: this.$route.query.id,
  1044. }).then((res) => {
  1045. if (res.code == 200) {
  1046. let query = this.$route.query;
  1047. this.$message.success("开启成功");
  1048. this.$router.push({
  1049. path: "/business/teamDetail",
  1050. query: {
  1051. ...query,
  1052. },
  1053. });
  1054. }
  1055. });
  1056. })
  1057. .catch(() => {});
  1058. },
  1059. onClose() {
  1060. // 停止乐团
  1061. this.$confirm("您确定停止乐团吗?", "提示", {
  1062. confirmButtonText: "确定",
  1063. cancelButtonText: "取消",
  1064. type: "warning",
  1065. })
  1066. .then(() => {
  1067. cancelMusicGroup({
  1068. musicGroupId: this.$route.query.id,
  1069. }).then((res) => {
  1070. if (res.code == 200) {
  1071. this.$message.success("停止成功");
  1072. this.$router.push({
  1073. path: "/business/teamDetail",
  1074. });
  1075. }
  1076. });
  1077. })
  1078. .catch(() => {});
  1079. },
  1080. handleSelectionChange(val) {
  1081. this.multipleSelection = val;
  1082. },
  1083. // 修改专业
  1084. resetSubject(row) {
  1085. this.activeId = row.studentId;
  1086. this.subjectVisible = true;
  1087. // resetStudentSubject().then(res=>{]})
  1088. },
  1089. // 确认修改
  1090. okReset() {
  1091. if (!this.maskForm.subject) {
  1092. this.$message.error("请选择调剂专业");
  1093. return;
  1094. }
  1095. resetStudentSubject({
  1096. musicGroupId: this.id,
  1097. userId: this.activeId,
  1098. subId: this.maskForm.subject,
  1099. }).then((res) => {
  1100. if (res.code == 200) {
  1101. this.$message.success("修改成功");
  1102. this.subjectVisible = false;
  1103. this.maskForm.subject = "";
  1104. getintoClass({ musicGroupId: this.id }).then((res) => {
  1105. if (res.code == 200) {
  1106. this.leftList = res.data;
  1107. }
  1108. });
  1109. this.getList();
  1110. }
  1111. });
  1112. },
  1113. onExtendPayment(formName, isPay) {
  1114. this.$refs[formName].validate((valid) => {
  1115. if (valid) {
  1116. if (!isPay) {
  1117. extensionApplyExpire({
  1118. musicGroupId: this.id,
  1119. expireDate: this.extendForm.expireDate,
  1120. }).then((res) => {
  1121. if (res.code == 200) {
  1122. this.$message.success("延长报名成功");
  1123. this.extendPaymentStatus = false;
  1124. getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
  1125. if (res.code == 200) {
  1126. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  1127. }
  1128. });
  1129. } else {
  1130. this.$message.error(res.msg);
  1131. }
  1132. });
  1133. } else {
  1134. extensionPayment({
  1135. musicGroupId: this.id,
  1136. expireDate: this.extendForm.expireDate,
  1137. }).then((res) => {
  1138. if (res.code == 200) {
  1139. this.$message.success("延长缴费成功");
  1140. this.extendPaymentStatus = false;
  1141. getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
  1142. if (res.code == 200) {
  1143. this.paymentExpireDate =
  1144. res.data.musicGroup.paymentExpireDate;
  1145. }
  1146. });
  1147. } else {
  1148. this.$message.error(res.msg);
  1149. }
  1150. });
  1151. }
  1152. }
  1153. });
  1154. },
  1155. lookdetail(row) {
  1156. this.orderVisible = true;
  1157. this.activeId = row.studentId;
  1158. this.orderForm.name = row.studentName;
  1159. this.orderForm.subject = row.subjectName;
  1160. getStudentFeeDetail({
  1161. musicGroupId: this.id,
  1162. studentId: row.studentId,
  1163. }).then((res) => {
  1164. if (res.code == 200) {
  1165. if (res.data) {
  1166. this.orderForm.totalAmount = res.data.totalAmount;
  1167. // this.orderForm.subjectFee = res.data.courseFee;
  1168. let goodStr = "";
  1169. let goodPrice = 0;
  1170. let otherStr = "";
  1171. let othersPrice = 0;
  1172. for (let i in res.data.goods) {
  1173. if (res.data.goods[i].goodsType == "INSTRUMENT") {
  1174. goodStr += res.data.goods[i].goodsName + ",";
  1175. goodPrice += parseFloat(res.data.goods[i].musicalFee);
  1176. // this.orderForm.axe = res.data.goods[i].goodsName;
  1177. // this.orderForm.axePrice = res.data.goods[i].musicalFee;
  1178. } else if (res.data.goods[i].goodsType == "ACCESSORIES") {
  1179. otherStr += res.data.goods[i].goodsName + ",";
  1180. othersPrice += parseFloat(res.data.goods[i].musicalFee);
  1181. // this.orderForm.others = res.data.goods[i].goodsName;
  1182. // this.orderForm.othersPrice = res.data.goods[i].musicalFee;
  1183. } else if (res.data.goods[i].goodsType == "COURSE") {
  1184. this.orderForm.subjectFee = res.data.goods[i].musicalFee;
  1185. }
  1186. }
  1187. this.orderForm.others = otherStr.substring(0, otherStr.length - 1);
  1188. this.orderForm.othersPrice = othersPrice;
  1189. this.orderForm.axe = goodStr.substring(0, goodStr.length - 1);
  1190. this.orderForm.axePrice = goodPrice;
  1191. }
  1192. }
  1193. });
  1194. },
  1195. saveIsEdit() {
  1196. // 提交数据
  1197. this.isEdit = false;
  1198. resetPlanNum(this.leftList).then((res) => {});
  1199. },
  1200. quitTeam(row) {
  1201. this.activeRow = row;
  1202. this.quitVisible = true;
  1203. },
  1204. quieTeams(row) {
  1205. this.$prompt("请输入退团原因", "提示", {
  1206. confirmButtonText: "确定",
  1207. cancelButtonText: "取消",
  1208. inputPattern: /\S/,
  1209. inputErrorMessage: "请输入退团原因",
  1210. type: "warning",
  1211. })
  1212. .then((val) => {
  1213. // 发请求 退团
  1214. StudentQuit({
  1215. musicGroupId: this.id,
  1216. userId: row.studentId,
  1217. reason: val.value,
  1218. isRefundCourseFee: false,
  1219. isRefundInstrumentFee: false,
  1220. isRefundTeachingAssistantsFee: false,
  1221. }).then((res) => {
  1222. this.quitForm = {
  1223. // 退团信息确认
  1224. isRefundCourseFee: null,
  1225. isRefundInstrumentFee: null,
  1226. isRefundTeachingAssistantsFee: null,
  1227. reason: "",
  1228. };
  1229. if (res.code == 200) {
  1230. this.$message.success("退团成功");
  1231. this.getList();
  1232. this.quitVisible = false;
  1233. }
  1234. });
  1235. })
  1236. .catch(() => {});
  1237. },
  1238. chioseType() {
  1239. this.$refs["quitForm"].validate((res) => {
  1240. if (res) {
  1241. this.$confirm("确定退团?", "提示", {
  1242. confirmButtonText: "确定",
  1243. cancelButtonText: "取消",
  1244. type: "warning",
  1245. })
  1246. .then(() => {
  1247. let row = this.activeRow;
  1248. // 发请求 退团
  1249. StudentQuit({
  1250. musicGroupId: this.id,
  1251. userId: row.studentId,
  1252. reason: this.quitForm.reason,
  1253. isRefundCourseFee: this.quitForm.isRefundCourseFee,
  1254. isRefundInstrumentFee: this.quitForm.isRefundInstrumentFee,
  1255. isRefundTeachingAssistantsFee: this.quitForm
  1256. .isRefundTeachingAssistantsFee,
  1257. }).then((res) => {
  1258. this.quitForm = {
  1259. // 退团信息确认
  1260. isRefundCourseFee: null,
  1261. isRefundInstrumentFee: null,
  1262. isRefundTeachingAssistantsFee: null,
  1263. reason: "",
  1264. };
  1265. if (res.code == 200) {
  1266. this.$message.success("退团成功");
  1267. this.getList();
  1268. this.quitVisible = false;
  1269. }
  1270. });
  1271. })
  1272. .catch(() => {});
  1273. } else {
  1274. }
  1275. });
  1276. // row.typeVisible = false;
  1277. },
  1278. addVisit(row) {
  1279. this.visitForm.studentName = row.studentName;
  1280. this.visitForm.musicGroupId = this.teamid;
  1281. this.visitForm.studentId = row.studentId;
  1282. this.visitVisiable = true;
  1283. },
  1284. openChangeVoice(row) {
  1285. this.getList().then((res) => {
  1286. for (const item of res.data.rows) {
  1287. if (item.id === row.id) {
  1288. this.rowDetail = { ...item };
  1289. this.changeVoiceVisible = true;
  1290. }
  1291. }
  1292. });
  1293. },
  1294. closeChangeVoice() {
  1295. this.changeVoiceVisible = false;
  1296. // this.rowDetail = null
  1297. },
  1298. handleChange(val) {
  1299. this.visitForm.type = val[0];
  1300. this.visitForm.purpose = val[1];
  1301. },
  1302. submitAddVisit() {
  1303. this.$refs.visitForm.validate((res) => {
  1304. if (res) {
  1305. this.visitForm.visitType = null;
  1306. this.visitForm.musicGroupId = this.id;
  1307. addVisit(cleanDeep(this.visitForm)).then((res) => {
  1308. if (res.code === 200) {
  1309. this.$message.success("新增成功");
  1310. this.visitVisiable = false;
  1311. }
  1312. });
  1313. }
  1314. });
  1315. },
  1316. beginDate(date) {
  1317. let self = this;
  1318. return {
  1319. firstDayOfWeek: 1,
  1320. disabledDate(time) {
  1321. return time.getTime() >= date.getTime(); //开始时间不选时,结束时间最大值小于等于当天
  1322. },
  1323. };
  1324. },
  1325. extendTime(isPay) {
  1326. this.isPay = isPay;
  1327. if (isPay) {
  1328. // 点击的延长缴费
  1329. this.extendForm.expireDate = this.paymentExpireDate;
  1330. } else {
  1331. // 点击的延长报名
  1332. this.extendForm.expireDate = this.applyExpireDate;
  1333. }
  1334. this.extendPaymentStatus = true;
  1335. },
  1336. applyDate() {
  1337. let self = this;
  1338. return {
  1339. firstDayOfWeek: 1,
  1340. disabledDate(time) {
  1341. if (self.paymentExpireDate) {
  1342. return (
  1343. time.getTime() >
  1344. new Date(self.paymentExpireDate.replace(/-/g, "/")).getTime()
  1345. );
  1346. } else {
  1347. return false;
  1348. }
  1349. },
  1350. };
  1351. },
  1352. payDate() {
  1353. let self = this;
  1354. return {
  1355. firstDayOfWeek: 1,
  1356. disabledDate(time) {
  1357. if (self.applyExpireDate) {
  1358. return (
  1359. time.getTime() <=
  1360. new Date(self.applyExpireDate.replace(/-/g, "/")).getTime()
  1361. );
  1362. } else {
  1363. return false;
  1364. }
  1365. },
  1366. };
  1367. },
  1368. },
  1369. watch: {
  1370. orderVisible(val) {
  1371. if (!val) {
  1372. this.orderForm = {
  1373. name: "",
  1374. totalAmount: "",
  1375. subject: "",
  1376. subjectFee: "",
  1377. axe: "",
  1378. axePrice: "",
  1379. others: "",
  1380. othersPrice: "",
  1381. };
  1382. }
  1383. },
  1384. qrcodeStatus(val) {
  1385. if (!val) {
  1386. this.qrcode.clear();
  1387. }
  1388. },
  1389. qrcodeStatus2(val) {
  1390. if (!val) {
  1391. this.qrcode2.clear();
  1392. }
  1393. },
  1394. paymentStatus(val) {
  1395. if (!val) {
  1396. this.paymentForm = {
  1397. paymentExpireDate: null,
  1398. // feeType: null
  1399. };
  1400. }
  1401. },
  1402. quitVisible(val) {
  1403. if (!val) {
  1404. this.quitForm = {
  1405. // 退团信息确认
  1406. isRefundCourseFee: null,
  1407. isRefundInstrumentFee: null,
  1408. isRefundTeachingAssistantsFee: null,
  1409. reason: "",
  1410. };
  1411. this.$refs["quitForm"].resetFields();
  1412. }
  1413. },
  1414. visitVisiable(val) {
  1415. if (!val) {
  1416. this.$refs["visitForm"].resetFields();
  1417. }
  1418. },
  1419. },
  1420. };
  1421. </script>
  1422. <style lang="scss" scoped>
  1423. .sigup-container {
  1424. margin-left: 12px;
  1425. .topWrap {
  1426. padding: 18px 58px;
  1427. // height: 136px;
  1428. background-color: #fff;
  1429. display: flex;
  1430. flex-direction: row;
  1431. justify-content: space-between;
  1432. .msg.pay {
  1433. color: #f85043;
  1434. }
  1435. .msg {
  1436. text-align: right;
  1437. color: #f97215;
  1438. font-size: 32px;
  1439. font-weight: bold;
  1440. padding-top: 30px;
  1441. box-sizing: border-box;
  1442. img {
  1443. width: 36px;
  1444. height: 36px;
  1445. position: relative;
  1446. top: 5px;
  1447. margin-right: 8px;
  1448. }
  1449. }
  1450. h2 {
  1451. height: 48px;
  1452. line-height: 48px;
  1453. position: relative;
  1454. // padding-left: 30px;
  1455. font-size: 32px;
  1456. font-weight: 600;
  1457. margin-bottom: 10px;
  1458. display: flex;
  1459. flex-direction: row;
  1460. justify-content: flex-start;
  1461. align-items: center;
  1462. .term {
  1463. height: 32px;
  1464. line-height: 32px;
  1465. border-radius: 24px;
  1466. width: 100px;
  1467. color: #14928a;
  1468. border: 1px solid rgba(20, 146, 138, 1);
  1469. font-size: 14px;
  1470. text-align: center;
  1471. margin-right: 12px;
  1472. &:nth-child(1) {
  1473. margin-left: 47px;
  1474. }
  1475. }
  1476. .term.active {
  1477. color: #fff;
  1478. background-color: #14928a;
  1479. }
  1480. .squrt {
  1481. position: absolute;
  1482. left: -25px;
  1483. top: 8px;
  1484. height: 34px;
  1485. width: 8px;
  1486. background-color: #14928a;
  1487. }
  1488. }
  1489. .btnList {
  1490. display: flex;
  1491. flex-direction: row;
  1492. justify-content: flex-start;
  1493. align-items: center;
  1494. div {
  1495. margin-right: 15px;
  1496. }
  1497. }
  1498. .newBand.close {
  1499. background-color: #777;
  1500. border: 1px solid #777;
  1501. }
  1502. }
  1503. .searchList {
  1504. background-color: #fff;
  1505. padding: 0 58px;
  1506. }
  1507. .sigup-core {
  1508. margin-top: 12px;
  1509. display: flex;
  1510. flex-direction: row;
  1511. justify-content: flex-start;
  1512. .left {
  1513. width: 340px;
  1514. background-color: #fff;
  1515. height: 80vh;
  1516. overflow: auto;
  1517. }
  1518. .right {
  1519. width: calc(100% - 340px);
  1520. margin-left: 12px;
  1521. flex-grow: 1;
  1522. }
  1523. }
  1524. }
  1525. .el-dialog__body {
  1526. overflow: hidden;
  1527. }
  1528. .left-code,
  1529. .right-code {
  1530. // width: 50%;
  1531. // float: left;
  1532. h2 {
  1533. font-size: 18px;
  1534. text-align: center;
  1535. padding-bottom: 8px;
  1536. }
  1537. .qrcode {
  1538. display: flex;
  1539. flex-direction: column;
  1540. align-items: center;
  1541. img {
  1542. width: 200px;
  1543. height: 200px;
  1544. margin: 0 auto;
  1545. }
  1546. }
  1547. .code-url {
  1548. font-size: 18px;
  1549. text-align: center;
  1550. padding: 15px 15px 0 15px;
  1551. }
  1552. }
  1553. .newBand {
  1554. margin-bottom: 0;
  1555. }
  1556. /deep/.el-button--danger {
  1557. background: #f85043;
  1558. }
  1559. .paymentForm {
  1560. /deep/.el-input__inner,
  1561. /deep/.el-input.el-input--suffix {
  1562. width: 360px !important;
  1563. }
  1564. }
  1565. </style>