resetPayListSchool.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716
  1. <!-- -->
  2. <template>
  3. <div class="m-core">
  4. <el-form :inline="true"
  5. :model="searchForm">
  6. <el-form-item>
  7. <el-select placeholder="缴费类型"
  8. v-model="searchForm.paymentType"
  9. clearable
  10. filterable>
  11. <el-option v-for="(item, index) in payOrderTypeList"
  12. :label="item.label"
  13. :value="item.value"
  14. :key="index"></el-option>
  15. </el-select>
  16. </el-form-item>
  17. <el-form-item>
  18. <el-button type="danger"
  19. @click="getList">搜索</el-button>
  20. <!-- <el-button @click="onReSet" type="primary">重置</el-button> -->
  21. </el-form-item>
  22. </el-form>
  23. <div class="topWrap">
  24. <div class="newBand"
  25. @click="newSchoolPay"
  26. v-if="teamStatus"
  27. v-permission="'musicGroupPaymentCalender/add'">新建学校缴费</div>
  28. <div class="newBand"
  29. v-permission="'/studentPayBase'"
  30. v-if="teamStatus"
  31. @click="setStudentPay">学员缴费设置</div>
  32. <!-- <div class="newBand"
  33. v-if="!isNewGropu"
  34. @click="onCreateQRCode">续费二维码</div> -->
  35. </div>
  36. <div class="tableWrap">
  37. <el-table style="width: 100%"
  38. :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
  39. :data="tableList">
  40. <el-table-column align="center"
  41. prop="batchNo"
  42. width="200"
  43. label="订单编号"></el-table-column>
  44. <el-table-column align="center"
  45. prop="paymentType"
  46. label="缴费类型">
  47. <template slot-scope="scope">
  48. <div>
  49. {{ scope.row.paymentType | userPaymentTypeFormat }}
  50. </div>
  51. </template>
  52. </el-table-column>
  53. <el-table-column align="center"
  54. prop="expectNum"
  55. width="200"
  56. label="缴费人数(预计/实际)">
  57. <template slot-scope="scope">
  58. <div>
  59. {{scope.row.expectNum}}/{{scope.row.actualNum}}
  60. </div>
  61. </template>
  62. </el-table-column>
  63. <el-table-column align="center"
  64. prop="paymentPattern"
  65. label="缴费方式">
  66. <template slot-scope="scope">
  67. <div>
  68. {{ scope.row.paymentPattern | teamPayStatus }}
  69. </div>
  70. </template>
  71. </el-table-column>
  72. <el-table-column align="center"
  73. prop="paymentValidStartDate"
  74. width="200"
  75. label="缴费有效期">
  76. <template slot-scope="scope">
  77. <div>
  78. {{ scope.row.paymentValidStartDate | formatTimer }} ~ {{ scope.row.paymentValidEndDate | formatTimer }}
  79. </div>
  80. </template>
  81. </el-table-column>
  82. <el-table-column align="center"
  83. prop="status"
  84. label="缴费状态">
  85. <template slot-scope="scope">
  86. <div>
  87. {{ scope.row.status | payTypeStatus }}
  88. </div>
  89. </template>
  90. </el-table-column>
  91. <el-table-column align="center"
  92. prop="memo"
  93. label="备注"></el-table-column>
  94. <el-table-column label="操作"
  95. fixed="right"
  96. min-width="260px">
  97. <template slot-scope="scope">
  98. <div>
  99. <el-button type="text"
  100. @click="lookDetail(scope.row)"
  101. v-permission="'musicGroupPaymentCalender/auditListDetail'">查看</el-button>
  102. <el-button type="text"
  103. @click="openChioseStudent(scope.row)"
  104. v-if="scope.row.status != 'REJECT' && scope.row.status != 'AUDITING'&&teamStatus && scope.row.paymentType != 'MUSIC_APPLY' && scope.row.paymentType != 'ADD_STUDENT'"
  105. v-permission="'musicGroupPaymentCalenderDetail/batchAdd'">添加学员</el-button>
  106. <el-button type="text"
  107. v-if="scope.row.status == 'REJECT'&&teamStatus"
  108. v-permission="'musicGroupPaymentCalender/update'"
  109. @click="resetPay(scope.row)">修改</el-button>
  110. <el-button type="text"
  111. v-permission="'musicGroupPaymentCalender/makesureSchoolePaid'"
  112. v-if="scope.row.status == 'OPEN'&&teamType=='resetTeam'"
  113. @click="commmitGetMoney(scope.row)">确认收款</el-button>
  114. <!-- <el-button type="text" v-if="!isNewGropu" @click="onCreateQRCode(scope.row)">续费二维码</el-button> -->
  115. </div>
  116. </template>
  117. </el-table-column>
  118. </el-table>
  119. <pagination :total="rules.total"
  120. :page.sync="rules.page"
  121. :limit.sync="rules.limit"
  122. :page-sizes="rules.page_size"
  123. @pagination="getList" />
  124. </div>
  125. <el-dialog :visible.sync="payVisible"
  126. :close-on-click-modal="false"
  127. width="500px"
  128. :title="diTitle">
  129. <el-form :model="payForm"
  130. :inline="true"
  131. label-width="120px"
  132. label-position="right"
  133. ref="payForm">
  134. <el-form-item label="缴费开始日期"
  135. :rules="[
  136. { required: true, message: '请设置缴费开始日期', trigger: 'blur' },
  137. ]"
  138. prop="startPaymentDate">
  139. <el-date-picker v-model.trim="payForm.startPaymentDate"
  140. @change="changeStartTime"
  141. type="date"
  142. :picker-options="pickerOptions"
  143. value-format="yyyy-MM-dd"
  144. placeholder="开始日期"></el-date-picker>
  145. </el-form-item>
  146. <el-form-item label="缴费结束日期"
  147. :rules="[
  148. { required: true, message: '请设置缴费结束日期', trigger: 'blur' },
  149. ]"
  150. prop="deadlinePaymentDate">
  151. <el-date-picker v-model.trim="payForm.deadlinePaymentDate"
  152. type="date"
  153. :picker-options="beginDate(payForm.startPaymentDate)"
  154. value-format="yyyy-MM-dd"
  155. placeholder="结束日期"></el-date-picker>
  156. </el-form-item>
  157. <el-form-item label="缴费方式"
  158. prop="paymentPattern"
  159. :rules="[{ required: true, message: '请选择缴费方式' }]">
  160. <el-select placeholder="缴费方式"
  161. style="width: 220px"
  162. clearable
  163. filterable
  164. @change="paymentPatternChange"
  165. v-model.trim="payForm.paymentPattern">
  166. <el-option :value="0"
  167. label="按月"></el-option>
  168. <el-option :value="1"
  169. label="按季"></el-option>
  170. <el-option :value="2"
  171. label="一次性"></el-option>
  172. </el-select>
  173. </el-form-item>
  174. <el-form-item label="缴费有效期开始"
  175. :rules="[
  176. {
  177. required: true,
  178. message: '请设置缴费有效期开始日期',
  179. trigger: 'blur',
  180. },
  181. ]"
  182. prop="paymentValidStartDate">
  183. <el-date-picker v-model.trim="payForm.paymentValidStartDate"
  184. type="date"
  185. @change="changePaymentStartTime"
  186. :picker-options="pickerOptions"
  187. value-format="yyyy-MM-dd"
  188. placeholder="有效期开始日期"></el-date-picker>
  189. </el-form-item>
  190. <el-form-item label="缴费有效期结束"
  191. :rules="[
  192. {
  193. required: payForm.paymentPattern !== 2,
  194. message: '请设置缴费有效期结束日期',
  195. trigger: 'blur',
  196. },
  197. ]"
  198. prop="paymentValidEndDate">
  199. <el-date-picker v-model.trim="payForm.paymentValidEndDate"
  200. type="date"
  201. :disabled="payForm.paymentPattern === 2"
  202. :picker-options="beginDate(payForm.paymentValidStartDate)"
  203. value-format="yyyy-MM-dd"
  204. placeholder="有效期结束日期"></el-date-picker>
  205. </el-form-item>
  206. <el-form-item label="收费类型"
  207. v-if="isNew"
  208. :rules="[
  209. { required: true, message: '请选择收费类型', trigger: 'blur' },
  210. ]"
  211. prop="type">
  212. <el-select v-model.trim="payForm.type"
  213. style="width: 220px !important"
  214. placeholder="课程类型">
  215. <el-option label="线上"
  216. value="ONLINE"></el-option>
  217. <el-option label="线下"
  218. value="OFFLINE"></el-option>
  219. </el-select>
  220. </el-form-item>
  221. <el-form-item label="备注"
  222. v-if="isNew"
  223. :rules="[{ required: true, message: '请填写备注', trigger: 'blur' }]"
  224. prop="memo">
  225. <el-input type="textarea"
  226. style="width: 220px !important"
  227. :rows="4"
  228. placeholder="请填写备注"
  229. v-model="payForm.memo"></el-input>
  230. </el-form-item>
  231. </el-form>
  232. <div slot="footer"
  233. class="dialog-footer">
  234. <el-button @click="payVisible = false">取 消</el-button>
  235. <el-button type="primary"
  236. v-if="isNew"
  237. @click="newPayInfo">确 定</el-button>
  238. <el-button type="primary"
  239. v-else
  240. @click="resetPayDate">确 定</el-button>
  241. </div>
  242. </el-dialog>
  243. <el-dialog title="查看"
  244. :visible.sync="reviewVisible"
  245. width="900px"
  246. destroy-on-close>
  247. <reviewDetail @close="reviewVisible = false"
  248. @submited="getList"
  249. :detail="viewDetail"
  250. :musicGroupId="$route.query.id"
  251. destroy-on-close />
  252. <div slot="footer"
  253. class="dialog-footer">
  254. <el-button type="primary"
  255. @click="reviewVisible = false">关闭</el-button>
  256. </div>
  257. </el-dialog>
  258. <el-dialog :title="payFormTitle"
  259. :visible.sync="userVisible"
  260. width="830px">
  261. <userPayForm v-if="userVisible"
  262. @close="userVisible = false"
  263. @submited="payedSubmited"
  264. @changeActive="$listeners.changeActive"
  265. :organizationCourseUnitPriceSettings="organizationCourseUnitPriceSettings"
  266. :rowDetail='activeRow'
  267. :type="payFormType"
  268. :baseInfo="baseInfo"
  269. :paymentType="isNewGropu ? 0 : undefined"
  270. :musicGroupId="$route.query.id" />
  271. </el-dialog>
  272. <el-dialog title="学员选择"
  273. :visible.sync="chioseStudentVisible"
  274. destroy-on-close
  275. append-to-body
  276. width='800px'>
  277. <setStudentFee @chioseStudent='chioseStudent'
  278. ref='setStudentFee'
  279. :musicGroupPaymentCalenderId="musicGroupPaymentCalenderId"
  280. @submited="chioseStudentSubmited"
  281. :clearTale="clearStduent"></setStudentFee>
  282. <div slot="footer"
  283. class="dialog-footer">
  284. <el-button @click="chioseStudentVisible = false">取 消</el-button>
  285. <el-button type="primary"
  286. @click="submitNewPay">确 定</el-button>
  287. </div>
  288. </el-dialog>
  289. <qr-code v-model="qrcodeStatus"
  290. title="续费二维码"
  291. :codeUrl="codeUrl" />
  292. <el-dialog title="确认收款"
  293. :visible.sync="getMoneyVisible"
  294. width='600px'>
  295. <isGetMoney @close="closeMoney"
  296. :data="activeRow"
  297. ref='getMoney' />
  298. <div slot="footer"
  299. class="dialog-footer">
  300. <el-button @click="getMoneyVisible=false">取 消</el-button>
  301. <el-button type="primary"
  302. @click="submitGetMoney">确 定</el-button>
  303. </div>
  304. </el-dialog>
  305. </div>
  306. </template>
  307. <script>
  308. import axios from "axios";
  309. import { getToken } from "@/utils/auth";
  310. import pagination from "@/components/Pagination/index";
  311. import load from "@/utils/loading";
  312. import qs from "qs";
  313. import dayjs from 'dayjs'
  314. import QrCode from "@/components/QrCode/index";
  315. import { vaildStudentUrl } from '@/utils/validate'
  316. import { addMusicGroupPaymentCalender, getMusicGroupPaymentCalender, resetMusicGroupPaymentCalender, delMusicGroupPaymentCalender } from "@/api/buildTeam";
  317. import {
  318. getOrganizationCourseUnitPriceSettings
  319. } from '@/api/specialSetting'
  320. import { musicGroupPaymentCalenderQueryPage, getMusicGroupStu, musicGroupPaymentCalenderDetailBatchAdd } from '../api'
  321. import setStudentFee from './studentPayBase'
  322. import userPayForm from '../modals/user-pay-form'
  323. import schoolPayForm from '../modals/school-pay-form'
  324. import isGetMoney from '../modals/isGetMoney'
  325. import review from '../modals/review'
  326. import reviewDetail from '../modals/review-detail'
  327. import { userPaymentType } from '@/constant'
  328. import { objectToOptions } from '@/utils'
  329. import { payOrderTypeList } from "@/utils/searchArray";
  330. export default {
  331. props: ["baseInfo", "isNewGropu"],
  332. components: {
  333. pagination,
  334. setStudentFee,
  335. userPayForm,
  336. schoolPayForm,
  337. QrCode,
  338. review,
  339. reviewDetail,
  340. teamType: '',
  341. isGetMoney
  342. },
  343. data () {
  344. return {
  345. musicGroupStu: [],
  346. payFormType: "user",
  347. userVisible: false,
  348. schoolVisible: false,
  349. reviewVisible: false,
  350. teamType: this.$route.query.type,
  351. organizationCourseUnitPriceSettings: [],
  352. searchForm: {
  353. paymentType: null,
  354. },
  355. viewDetail: null,
  356. tableList: [],
  357. rules: {
  358. // 分页规则
  359. limit: 10, // 限制显示条数
  360. page: 1, // 当前页
  361. total: 0, // 总条数
  362. page_size: [10, 20, 40, 50], // 选择限制显示条数
  363. },
  364. isInit: false,
  365. diTitle: "新增缴费",
  366. payVisible: false,
  367. payForm: {
  368. startPaymentDate: null,
  369. deadlinePaymentDate: null,
  370. paymentPattern: null,
  371. paymentValidStartDate: null,
  372. paymentValidEndDate: null,
  373. type: null,
  374. memo: null,
  375. },
  376. isNew: false,
  377. activeRow: null,
  378. pickerOptions: {
  379. firstDayOfWeek: 1,
  380. disabledDate (time) {
  381. return time.getTime() + 86400000 <= new Date().getTime();
  382. },
  383. },
  384. qrcodeStatus: false, // 生成二维码
  385. codeUrl: null,
  386. chioseStudentVisible: false,
  387. chioseStudentList: [],
  388. clearStduent: true,
  389. musicGroupPaymentCalenderId: "",
  390. payOrderTypeLists: payOrderTypeList,
  391. getMoneyVisible: false
  392. };
  393. },
  394. //生命周期 - 创建完成(可以访问当前this实例)
  395. created () { },
  396. //生命周期 - 挂载完成(可以访问DOM元素)
  397. async mounted () {
  398. // 获取分部
  399. try {
  400. const res = await getOrganizationCourseUnitPriceSettings({
  401. rows: 9999
  402. })
  403. this.organizationCourseUnitPriceSettings = res.data.rows
  404. } catch (error) { }
  405. this.init();
  406. },
  407. computed: {
  408. payOrderTypeList () {
  409. return objectToOptions(userPaymentType);
  410. },
  411. payFormTitle () {
  412. if (this.isNew) {
  413. return this.payFormType === "user" ? "新增学员缴费" : "新增学校缴费";
  414. } else {
  415. return this.payFormType === "user" ? "修改学员缴费" : "修改学校缴费";
  416. }
  417. },
  418. teamStatus () {
  419. let type = this.$route.query.type;
  420. return type == 'teamDraft' || type == 'resetTeam'
  421. }
  422. },
  423. activated () {
  424. this.init();
  425. },
  426. methods: {
  427. async init () {
  428. try {
  429. const res = await getMusicGroupStu({
  430. musicGroupId: this.$route.query.id,
  431. });
  432. } catch (error) { }
  433. this.getList();
  434. },
  435. newUserPay () {
  436. this.payFormType = "user";
  437. this.isNew = true;
  438. this.activeRow = null
  439. this.userVisible = true;
  440. },
  441. newSchoolPay () {
  442. this.payFormType = "school";
  443. this.isNew = true;
  444. this.activeRow = null
  445. this.userVisible = true;
  446. },
  447. getList () {
  448. let musicGroupId = this.$route.query.id
  449. return musicGroupPaymentCalenderQueryPage({
  450. page: this.rules.page,
  451. rows: this.rules.limit,
  452. musicGroupId,
  453. payUserType: 'SCHOOL',
  454. paymentType: this.searchForm.paymentType,
  455. }).then(res => {
  456. if (res.code == 200) {
  457. this.rules.total = res.data.total;
  458. this.tableList = res.data.rows;
  459. }
  460. });
  461. },
  462. paymentPatternChange (val) {
  463. if (val === 2) {
  464. this.payForm.paymentValidEndDate = null;
  465. }
  466. },
  467. onCreateQRCode (row) { // 生成报名二维码
  468. this.qrcodeStatus = true
  469. this.codeUrl = vaildStudentUrl() + '/#/musicGroupRenew?calenderId=' + row.id
  470. },
  471. chioseStudent (val) {
  472. this.chioseStudentList = val;
  473. },
  474. newPay () {
  475. this.diTitle = "新增缴费";
  476. this.isNew = true;
  477. this.payVisible = true;
  478. },
  479. resetPay (row) {
  480. this.diTitle = "修改缴费";
  481. this.isNew = false;
  482. this.activeRow = row;
  483. this.payFormType = row.payUserType === 'SCHOOL' ? 'school' : 'user'
  484. this.userVisible = true;
  485. },
  486. async chioseStudentSubmited () {
  487. try {
  488. await this.$confirm('缴费创建完成, 是否立即排课?', '提示', {
  489. confirmButtonText: '确定',
  490. cancelButtonText: '取消',
  491. type: 'warning'
  492. })
  493. if (this.$listeners.changeActive) {
  494. this.$listeners.changeActive({
  495. name: '5'
  496. })
  497. }
  498. } catch (error) { }
  499. },
  500. detelePay (row) {
  501. let id = row.id;
  502. this.$confirm(`确定删除该缴费周期?`, "提示", {
  503. confirmButtonText: "确定",
  504. cancelButtonText: "取消",
  505. type: "warning",
  506. })
  507. .then(() => {
  508. delMusicGroupPaymentCalender({ id }).then((res) => {
  509. if (res.code == 200) {
  510. this.$message.success("删除成功");
  511. this.getList();
  512. }
  513. });
  514. })
  515. .catch(() => { });
  516. },
  517. lookDetail (row) {
  518. let query = this.$route.query;
  519. this.$route.query.paymentId = row.id;
  520. this.viewDetail = row;
  521. if (row.payUserType === "SCHOOL") {
  522. this.reviewVisible = true;
  523. } else {
  524. this.$router.push({ path: "/business/strudentPayInfo", query });
  525. }
  526. },
  527. setStudentPay () {
  528. let query = this.$route.query;
  529. this.$router.push({ path: "/business/studentPayBase", query });
  530. },
  531. newPayInfo () {
  532. this.$refs["payForm"].validate((res) => {
  533. if (res) {
  534. /**
  535. * payForm: {
  536. startPaymentDate: null,
  537. deadlinePaymentDate: null,
  538. type: null,
  539. memo: null
  540. },
  541. *
  542. */
  543. this.chioseStudentVisible = true;
  544. return;
  545. }
  546. });
  547. },
  548. submitNewPay () {
  549. if (this.chioseStudentList.length < 1) {
  550. this.$message.error("请至少选择一名学员");
  551. return;
  552. }
  553. let obj = {};
  554. obj.userIdList = this.chioseStudentList.map((stu) => {
  555. return stu.userId;
  556. });
  557. obj.musicGroupPaymentCalenderId = this.musicGroupPaymentCalenderId;
  558. musicGroupPaymentCalenderDetailBatchAdd(obj).then((res) => {
  559. if (res.code == 200) {
  560. this.$message.success("添加成功");
  561. this.$refs.setStudentFee.clearTable();
  562. this.payVisible = false;
  563. this.chioseStudentVisible = false;
  564. this.getList();
  565. }
  566. });
  567. },
  568. resetPayDate () {
  569. resetMusicGroupPaymentCalender({
  570. id: this.activeRow.id,
  571. startPaymentDate: this.payForm.startPaymentDate,
  572. deadlinePaymentDate: this.payForm.deadlinePaymentDate,
  573. paymentValidStartDate: this.payForm.paymentValidStartDate
  574. ? dayjs(this.payForm.paymentValidStartDate).format("YYYY-MM-DD")
  575. : this.payForm.paymentValidStartDate,
  576. paymentValidEndDate: this.payForm.paymentValidEndDate
  577. ? dayjs(this.payForm.paymentValidEndDate).format("YYYY-MM-DD")
  578. : this.payForm.paymentValidEndDate,
  579. paymentPattern: this.payForm.paymentPattern,
  580. }).then((res) => {
  581. if (res.code == 200) {
  582. this.$message.success("修改成功");
  583. this.payVisible = false;
  584. this.getList();
  585. }
  586. });
  587. },
  588. changeStartTime (val) {
  589. this.payForm.deadlinePaymentDate = this.dateAddDays(val, 3);
  590. },
  591. changePaymentStartTime (val) {
  592. this.payForm.paymentValidEndDate = null;
  593. },
  594. dateAddDays (dataStr, dayCount) {
  595. let strdate = dataStr; //日期字符串
  596. let isdate = new Date(strdate.replace(/-/g, "/")); //把日期字符串转换成日期格式
  597. isdate = new Date((isdate / 1000 + 86400 * dayCount) * 1000); //日期加1天
  598. let pdate =
  599. isdate.getFullYear() +
  600. "-" +
  601. (isdate.getMonth() + 1) +
  602. "-" +
  603. isdate.getDate(); //把日期格式转换成字符串
  604. return pdate;
  605. },
  606. beginDate (end) {
  607. return {
  608. firstDayOfWeek: 1,
  609. disabledDate (time) {
  610. if (end) {
  611. return new Date(end).getTime() - 86400000 >= time.getTime();
  612. } else {
  613. return time.getTime() + 86400000 < Date.now();
  614. //开始时间不选时,结束时间最大值小于等于当天
  615. }
  616. },
  617. };
  618. },
  619. search () {
  620. this.rules.page = 1;
  621. this.getList();
  622. },
  623. onReSet () {
  624. this.searchForm = { payUserType: null };
  625. },
  626. openChioseStudent (row) {
  627. this.chioseStudentVisible = true;
  628. this.musicGroupPaymentCalenderId = row.id;
  629. },
  630. async payedSubmited (data) {
  631. try {
  632. await this.getList();
  633. // if (!this.isNewGropu) {
  634. // this.chioseStudentVisible = true;
  635. // if (data) {
  636. // this.musicGroupPaymentCalenderId = data.musicGroupPaymentCalenderId;
  637. // }
  638. // }
  639. } catch (error) { }
  640. },
  641. commmitGetMoney (row) {
  642. this.activeRow = row;
  643. this.getMoneyVisible = true;
  644. },
  645. submitGetMoney () {
  646. this.$refs.getMoney.submitGetMoney()
  647. },
  648. closeMoney () {
  649. this.getMoneyVisible = false;
  650. this.getList()
  651. }
  652. },
  653. watch: {
  654. chioseStudentVisible () {
  655. this.chioseStudentList = [];
  656. },
  657. payVisible (val) {
  658. if (!val) {
  659. this.payForm = {
  660. startPaymentDate: null,
  661. paymentPattern: null,
  662. paymentValidStartDate: null,
  663. paymentValidEndDate: null,
  664. type: null,
  665. memo: null,
  666. deadlinePaymentDate: null,
  667. };
  668. this.$refs["payForm"].resetFields();
  669. }
  670. },
  671. },
  672. };
  673. </script>
  674. <style lang='scss' scoped>
  675. .topWrap {
  676. display: flex;
  677. flex-direction: row;
  678. justify-content: flex-start;
  679. div {
  680. margin-right: 10px;
  681. }
  682. }
  683. .left-code,
  684. .right-code {
  685. // width: 50%;
  686. // float: left;
  687. h2 {
  688. font-size: 18px;
  689. text-align: center;
  690. padding-bottom: 8px;
  691. }
  692. .qrcode {
  693. display: flex;
  694. flex-direction: column;
  695. align-items: center;
  696. img {
  697. width: 200px;
  698. height: 200px;
  699. margin: 0 auto;
  700. }
  701. }
  702. .code-url {
  703. font-size: 18px;
  704. text-align: center;
  705. padding: 15px 15px 0 15px;
  706. }
  707. }
  708. </style>