payInfoDetail.vue 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477
  1. <template>
  2. <div class="m-container1">
  3. <el-page-header
  4. @back="goback"
  5. style="padding: 20px"
  6. :content="$route.query.payUserType == 'SCHOOL' ? '学校缴费' : '学员缴费'"
  7. >
  8. </el-page-header>
  9. <div class="payInfoWrap">
  10. <div class="left">
  11. <!-- <div class="Wall"></div> -->
  12. <div class="m-core1">
  13. <el-form :inline="true" :model="form" label-width="120px" ref="form">
  14. <div :class="isField ? 'baseWrapFixed' : 'baseWrap'">
  15. <div class="payTitle">
  16. <div class="squrt"></div>
  17. <p>基础项目配置</p>
  18. <div class="payContext">请选择您需要的课程配置</div>
  19. <el-form-item
  20. label="计价标准"
  21. class="vertical"
  22. prop="isShowMusicInsuranceForPay"
  23. v-if="$route.query.payUserType == 'SCHOOL'"
  24. >
  25. <el-select
  26. size="mini"
  27. v-model="form.calenderFeeType"
  28. placeholder="请选择计价标准"
  29. >
  30. <el-option label="按学生" value="STUDENT"> </el-option>
  31. <el-option
  32. label="按老师"
  33. value="TEACHER"
  34. :disabled="!teamCourse"
  35. >
  36. </el-option>
  37. </el-select>
  38. </el-form-item>
  39. </div>
  40. <div class="checkWrap">
  41. <div
  42. class="checkBtn"
  43. :class="[
  44. teamCourse ? 'active' : '',
  45. teamCourseDisabled ? 'disabled' : '',
  46. ]"
  47. @click.prevent="
  48. () => {
  49. if (teamCourseDisabled) return;
  50. teamCourse = !teamCourse;
  51. if (teamCourse && form.eclass.length < 0) {
  52. form.eclass = [];
  53. form.eclass.push({});
  54. }
  55. if (!teamCourse) {
  56. form.calenderFeeType = 'STUDENT';
  57. }
  58. }
  59. "
  60. >
  61. <div class="checkLeft">
  62. <img src="../images/checkIcon1.png" alt="" />
  63. </div>
  64. <div class="checkRight">
  65. <p>乐团课</p>
  66. <p class="checkSubTitle">创建课程类型标准</p>
  67. </div>
  68. <div class="checTriangle" v-if="teamCourse">
  69. <img src="../images/checkGou.png" alt="" />
  70. </div>
  71. <!-- <el-checkbox
  72. v-model="teamCourse"
  73. :disabled="teamCourseDisabled"
  74. ></el-checkbox> -->
  75. </div>
  76. <div
  77. class="checkBtn"
  78. :class="[
  79. member ? 'active' : '',
  80. memberDisabled ? 'disabled' : '',
  81. ]"
  82. @click.prevent="
  83. () => {
  84. if (memberDisabled) return;
  85. member = !member;
  86. if (member && form.memberList.length < 0) {
  87. form.memberList = [];
  88. form.memberList.push({});
  89. }
  90. }
  91. "
  92. >
  93. <div class="checkLeft">
  94. <img src="../images/checkIcon2.png" alt="" />
  95. </div>
  96. <div class="checkRight">
  97. <p>云教练</p>
  98. <p class="checkSubTitle">乐团训练工具</p>
  99. </div>
  100. <div class="checTriangle" v-if="member">
  101. <img src="../images/checkGou.png" alt="" />
  102. </div>
  103. </div>
  104. <div
  105. v-if="
  106. isShowLeBao &&
  107. tenantId == 1 &&
  108. $route.query.team_status != 'PROGRESS'
  109. "
  110. class="checkBtn"
  111. :class="[
  112. leBao ? 'active' : '',
  113. leBaoDisabled ? 'disabled' : '',
  114. ]"
  115. @click.prevent="
  116. () => {
  117. if (leBaoDisabled) return;
  118. leBao = !leBao;
  119. if (leBao && form.leBaoList.length < 0) {
  120. form.leBaoList = [];
  121. form.leBaoList.push({});
  122. }
  123. }
  124. "
  125. >
  126. <div class="checkLeft">
  127. <img src="../images/checkIcon3.png" alt="" />
  128. </div>
  129. <div class="checkRight">
  130. <p>乐保</p>
  131. <p class="checkSubTitle">乐器维修保养</p>
  132. </div>
  133. <div class="checTriangle" v-if="leBao">
  134. <img src="../images/checkGou.png" alt="" />
  135. </div>
  136. </div>
  137. <div
  138. class="checkBtn"
  139. :class="[
  140. teamActive ? 'active' : '',
  141. teamActiveDisabled ? 'disabled' : '',
  142. ]"
  143. @click.prevent="
  144. () => {
  145. if (teamActiveDisabled) return;
  146. teamActive = !teamActive;
  147. if (teamActive && form.activeList.length < 0) {
  148. form.activeList = [];
  149. form.activeList.push({});
  150. }
  151. }
  152. "
  153. >
  154. <div class="checkLeft">
  155. <img src="../images/checkIcon4.png" alt="" />
  156. </div>
  157. <div class="checkRight">
  158. <p>小课</p>
  159. <p class="checkSubTitle">创建活动课程方案</p>
  160. </div>
  161. <div class="checTriangle" v-if="teamActive">
  162. <img src="../images/checkGou.png" alt="" />
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. <div class="wall" style="height: 184px" v-if="isField"></div>
  168. <div class="coreList">
  169. <payTeamCourse
  170. :form="form"
  171. :charges="charges"
  172. :courseUnitPriceSettingsByType="
  173. organizationCourseUnitPriceSettingsByType
  174. "
  175. v-if="teamCourse"
  176. @create="addExtraClass"
  177. @remove="removeExtraClass"
  178. @moneyChange="syncAllMoney"
  179. @priceChange="priceChange"
  180. />
  181. <payMember
  182. ref="payMember"
  183. :memberRankList="memberRankList"
  184. @moneyChange="syncAllMoney"
  185. @priceChange="priceChange"
  186. :rulesForm="rulesForm"
  187. :organId="organId"
  188. :showAutoActivationFlag="showAutoActivationFlag"
  189. :form="form"
  190. v-if="member"
  191. />
  192. <payLeBao :form="form" v-if="leBao" :leBaoInfo="leBaoInfo" />
  193. <payTeamActive
  194. :form="form"
  195. v-if="teamActive"
  196. :activeList="activeList"
  197. @create="addActive"
  198. @remove="removeActive"
  199. />
  200. <paySchoolInfo
  201. :form="form"
  202. :courseUnitPriceSettingsByType="
  203. organizationCourseUnitPriceSettingsByType
  204. "
  205. :teamCourse="teamCourse"
  206. :member="member"
  207. :teamActive="teamActive"
  208. :leBao="leBao"
  209. @setAllTotal="setAllTotal"
  210. v-if="$route.query.payUserType == 'SCHOOL'"
  211. />
  212. <backMoney
  213. v-if="
  214. $route.query.payUserType == 'SCHOOL' &&
  215. form.currentTotalAmount > 0
  216. "
  217. :form="form"
  218. />
  219. </div>
  220. <div
  221. class="teamCourseList coreList"
  222. v-if="$route.query.payUserType == 'STUDENT'"
  223. >
  224. <div class="coreTitle">
  225. <p>基础信息设置</p>
  226. </div>
  227. <el-row :gutter="20">
  228. <el-col style="width: 430px">
  229. <el-form-item
  230. prop="paymentDate"
  231. :rules="[
  232. {
  233. required: true,
  234. message: '请选择缴费时间',
  235. trigger: 'blur',
  236. },
  237. ]"
  238. ref="paymentDate"
  239. >
  240. <template slot="label">
  241. <p style="position: relative">
  242. <span style="color: #f56c6c; margin-right: 4px">*</span>
  243. 缴费时间
  244. <el-tooltip placement="top" popper-class="mTooltip">
  245. <div slot="content">在该时间段内学员才可缴费</div>
  246. <i
  247. class="el-icon-question"
  248. style="
  249. font-size: 18px;
  250. color: #f56c6c;
  251. position: relative;
  252. top: 2px;
  253. "
  254. ></i>
  255. </el-tooltip>
  256. </p>
  257. </template>
  258. <el-date-picker
  259. v-model="form.paymentDate"
  260. type="daterange"
  261. style="width: 280px"
  262. :picker-options="{ firstDayOfWeek: 1 }"
  263. value-format="yyyy-MM-dd"
  264. range-separator="-"
  265. start-placeholder="开始日期"
  266. end-placeholder="结束日期"
  267. >
  268. </el-date-picker>
  269. </el-form-item>
  270. </el-col>
  271. <el-col style="width: 430px">
  272. <!-- :rules="[
  273. {
  274. required: true,
  275. message: '请选择缴费时间',
  276. trigger: 'blur',
  277. },
  278. ]" -->
  279. <el-form-item prop="isShowSalePrice" ref="isShowSalePrice">
  280. <template slot="label">
  281. <p style="position: relative">
  282. <!-- <span style="color: #f56c6c; margin-right: 4px">*</span> -->
  283. 是否展示售价
  284. <!-- <el-tooltip placement="top" popper-class="mTooltip">
  285. <div slot="content">在该时间段内学员才可缴费</div>
  286. <i
  287. class="el-icon-question"
  288. style="
  289. font-size: 18px;
  290. color: #f56c6c;
  291. position: relative;
  292. top: 2px;
  293. "
  294. ></i>
  295. </el-tooltip> -->
  296. </p>
  297. </template>
  298. <el-select v-model="form.isShowSalePrice">
  299. <el-option label="是" :value="true"> </el-option>
  300. <el-option label="否" :value="false"> </el-option>
  301. </el-select>
  302. </el-form-item>
  303. </el-col>
  304. </el-row>
  305. <el-row>
  306. <el-col class="memoWrap">
  307. <el-form-item
  308. class="memoWrapItem"
  309. prop="memo"
  310. :rules="[
  311. {
  312. required: true,
  313. message: '请输入备注',
  314. trigger: 'blur',
  315. },
  316. ]"
  317. ref="memo"
  318. >
  319. <template slot="label">
  320. <p style="position: relative">
  321. <span style="color: #f56c6c; margin-right: 4px">*</span>
  322. 备注
  323. <el-tooltip placement="top" popper-class="mTooltip">
  324. <div slot="content">本次缴费的内容描述</div>
  325. <i
  326. class="el-icon-question"
  327. style="
  328. font-size: 18px;
  329. color: #f56c6c;
  330. position: relative;
  331. top: 2px;
  332. "
  333. ></i>
  334. </el-tooltip>
  335. </p>
  336. </template>
  337. <el-input
  338. style="width: 100%"
  339. :rows="3"
  340. v-model="form.memo"
  341. type="textarea"
  342. maxlength="50"
  343. show-word-limit
  344. ></el-input>
  345. </el-form-item>
  346. </el-col>
  347. </el-row>
  348. </div>
  349. </el-form>
  350. <div
  351. v-if="
  352. !teamCourse &&
  353. !member &&
  354. !leBao &&
  355. !teamActive &&
  356. $route.query.team_status == 'PROGRESS'
  357. "
  358. >
  359. <empty desc="暂无缴费项目配置" />
  360. </div>
  361. <div v-else style="text-align: center">
  362. <el-button class="submitBtn" @click="submitForm">确认</el-button>
  363. </div>
  364. <!-- <div style="text-align: center">
  365. <el-button class="submitBtn" @click="submitForm">确认</el-button>
  366. </div> -->
  367. </div>
  368. </div>
  369. </div>
  370. <el-dialog
  371. title="报名声部预览"
  372. :visible.sync="dialogSubjectVisible"
  373. width="400px"
  374. class="subjectPreview"
  375. v-if="dialogSubjectVisible"
  376. >
  377. <el-tabs v-model="activeName" type="card">
  378. <el-tab-pane
  379. :label="subject.subName"
  380. lazy
  381. v-for="(subject, index) in dialogSubjectList"
  382. :key="index"
  383. :name="subject.subjectId.toString()"
  384. style="max-height: 500px; overflow-y: auto"
  385. >
  386. <subject-preview
  387. :subjectId="subject.subjectId"
  388. :preViewData="preViewData"
  389. ></subject-preview>
  390. </el-tab-pane>
  391. </el-tabs>
  392. <div>
  393. <el-button
  394. style="width: 100%; border-radius: 0; line-height: 30px"
  395. size="medium"
  396. type="primary"
  397. @click="onSubmit"
  398. >确认提交</el-button
  399. >
  400. </div>
  401. </el-dialog>
  402. </div>
  403. </template>
  404. <script>
  405. import payTeamCourse from "../modals/payTeamCourse";
  406. import payMember from "../modals/payMember";
  407. import payLeBao from "../modals/payLeBao";
  408. import payTeamActive from "../modals/payTeamActive";
  409. import paySchoolInfo from "../modals/paySchoolInfo";
  410. import backMoney from "../modals/backMoney";
  411. import numeral from "numeral";
  412. import dayjs from "dayjs";
  413. import subjectPreview from "@/views/resetTeaming/modals/subject-preview";
  414. import {
  415. chargeTypeList,
  416. musicGroupOrganizationCourseSettingsQueryPage,
  417. } from "@/api/specialSetting";
  418. import { getSysTenantConfig } from "@/views/courseRulersManager/api";
  419. import { sysConfigList } from "@/api/generalSettings";
  420. import {
  421. queryByMusicGroupOrganizationCourseSettingsId,
  422. getAllmemberRank,
  423. musicGroupcreateCalender,
  424. musicGroupresetCalender,
  425. getAutoActivationFlag,
  426. } from "../api";
  427. import {
  428. getMusicGroupPaymentCalenderDetail,
  429. findMusicGroupSubjectInfo,
  430. getAgreement,
  431. } from "@/api/buildTeam";
  432. import { vipGroupActivity } from "@/api/vipSeting";
  433. export default {
  434. components: {
  435. payTeamCourse,
  436. payMember,
  437. payLeBao,
  438. payTeamActive,
  439. subjectPreview,
  440. paySchoolInfo,
  441. backMoney,
  442. },
  443. data() {
  444. return {
  445. form: {
  446. paymentType: "",
  447. memo: "",
  448. eclass: [{}],
  449. memberList: [
  450. {
  451. period: "",
  452. num: "",
  453. name: "",
  454. actualAmount: "",
  455. memberRankSettingId: "",
  456. optionalFlag: null,
  457. autoActivationFlag: false,
  458. },
  459. ],
  460. leBaoList: [{}],
  461. activeList: [{}],
  462. teacherFeeList: [],
  463. isShowMemberForPay: true,
  464. isShowMusicInsuranceForPay: true,
  465. isShowVipCourseForPay: true,
  466. isShowMusicCourseForPay: true,
  467. leixing: "1",
  468. isShowSalePrice: true,
  469. calenderFeeJson: {
  470. discountTotal: "",
  471. allTotal: "",
  472. sutdentNumber: "",
  473. },
  474. calenderFeeType: "STUDENT",
  475. musicGroupCalenderRefundPeriods: [{ refundDate: "", refundAmount: "" }],
  476. currentTotalAmount: 0,
  477. contractUrl: "",
  478. },
  479. teamCourse: false,
  480. member: false,
  481. teamActive: false,
  482. leBao: false,
  483. memberDisabled: false,
  484. teamCourseDisabled: false,
  485. teamActiveDisabled: false,
  486. leBaoDisabled: false,
  487. organizationCourseUnitPriceSettings: null,
  488. baseInfo: null,
  489. courseViewType: null,
  490. charges: null, // 乐团收费类型对应的收费方式
  491. memberRankList: [],
  492. organId: null,
  493. leBaoInfo: null,
  494. isShowLeBao: false,
  495. isSetCourseSettingsId: false,
  496. activeList: [{}],
  497. submitList: [],
  498. organizationCourseUnitPriceSettingsByType: null,
  499. rulesForm: {
  500. minMonthFee: null,
  501. maxMonthFee: null,
  502. minQuarterlyFee: null,
  503. maxQuarterlyFee: null,
  504. minHalfYearFee: null,
  505. maxHalfYearFee: null,
  506. minYearFee: null,
  507. maxYearFee: null,
  508. },
  509. dialogSubjectVisible: false, // 预览
  510. dialogSubjectList: [],
  511. activeName: null,
  512. preViewData: {},
  513. tenantId: null,
  514. isField: false,
  515. showAutoActivationFlag: false,
  516. initDetail: false,
  517. };
  518. },
  519. mounted() {
  520. let tenantConfig = sessionStorage.getItem("tenantConfig");
  521. tenantConfig = tenantConfig ? JSON.parse(tenantConfig) : {};
  522. if (tenantConfig.tenantId && tenantConfig.tenantId != "undefined") {
  523. this.tenantId = tenantConfig.tenantId;
  524. }
  525. this.organizationCourseUnitPriceSettings = JSON.parse(
  526. localStorage.getItem("organizationCourseUnitPriceSettings")
  527. );
  528. this.baseInfo = JSON.parse(localStorage.getItem("payMusicBase"));
  529. // 判断乐团状态 缴费类型
  530. window.addEventListener("scroll", this.getScroll);
  531. this.init();
  532. },
  533. beforeDestroy() {
  534. window.removeEventListener("scroll", this.getScroll);
  535. },
  536. methods: {
  537. async init() {
  538. this.organId = this.musicGroup?.organId;
  539. this.courseViewType = this.baseInfo?.musicGroup?.courseViewType;
  540. if (
  541. this.courseViewType != 2 &&
  542. this.$route.query.team_status == "DRAFT"
  543. ) {
  544. // 课程团的创建缴费
  545. this.teamCourse = true;
  546. // 现在课程团不在
  547. // this.teamCourseDisabled = true;
  548. this.form.paymentType = "MUSIC_APPLY";
  549. } else if (
  550. this.courseViewType == 2 &&
  551. this.$route.query.team_status == "DRAFT"
  552. ) {
  553. // 会员团的创建缴费
  554. this.member = true;
  555. this.memberDisabled = true;
  556. } else if (this.$route.query.team_status == "PROGRESS") {
  557. this.leBao = false;
  558. this.leBaoDisabled = true;
  559. }
  560. if (this.$route.query.payUserType == "SCHOOL") {
  561. // this.member = false;
  562. // this.memberDisabled = true;
  563. this.leBao = false;
  564. this.leBaoDisabled = true;
  565. // this.teamActive = false;
  566. // this.teamActiveDisabled = true;
  567. } else {
  568. }
  569. await this.getCharges(); // 续费的选择缴费类型
  570. await this.formatCourse(); // 临时加课的类型选择以及价格
  571. await this.getMemberList(); // 获取会员(团练保信息)
  572. await this.getLeBao(); // 获取乐保
  573. await this.getActive(); // 获取活动
  574. await this.getMemberRules();
  575. await this.getAgreement(); // 获取是否有正在启用得协议
  576. if (this.$route.query.calenderId) {
  577. // 说明是修改 查缴项目详情
  578. this.initDetail = true;
  579. await getMusicGroupPaymentCalenderDetail({
  580. id: this.$route.query.calenderId,
  581. }).then((res) => {
  582. if (res.code == 200) {
  583. if (res.data?.calender?.musicGroupOrganizationCourseSettingId) {
  584. this.form.leixing = "1";
  585. this.form.musicGroupOrganizationCourseSettingId =
  586. res.data?.calender?.musicGroupOrganizationCourseSettingId;
  587. } else {
  588. this.form.leixing = "2";
  589. }
  590. console.log( res.data?.calender?.startPaymentDate)
  591. if(res.data?.calender?.startPaymentDate&& res.data?.calender?.deadlinePaymentDate){
  592. this.$set(this.form, "paymentDate", [
  593. res.data?.calender?.startPaymentDate,
  594. res.data?.calender?.deadlinePaymentDate,
  595. ]);
  596. }
  597. this.$set(this.form, "contractUrl", res.data?.calender?.contractUrl);
  598. this.$set(this.form, "memo", res.data?.calender?.memo);
  599. this.$set(
  600. this.form,
  601. "isShowMemberForPay",
  602. res.data?.calender?.paymentItemShowState?.isShowMemberForPay
  603. );
  604. this.$set(
  605. this.form,
  606. "isShowMusicInsuranceForPay",
  607. res.data?.calender?.paymentItemShowState
  608. ?.isShowMusicInsuranceForPay
  609. );
  610. this.$set(
  611. this.form,
  612. "isShowVipCourseForPay",
  613. res.data?.calender?.paymentItemShowState?.isShowVipCourseForPay
  614. );
  615. this.$set(
  616. this.form,
  617. "isShowMusicCourseForPay",
  618. res.data?.calender?.paymentItemShowState?.isShowMusicCourseForPay
  619. );
  620. if (res.data.member) {
  621. // 团练保
  622. this.member = true;
  623. this.$set(this.form, "memberList", [{ ...res.data.member }]);
  624. }
  625. if (res.data.repair) {
  626. this.leBao = true;
  627. this.$set(this.form, "leBaoList", [{ ...res.data.repair }]);
  628. }
  629. if (res.data?.course?.length > 0) {
  630. this.$nextTick(() => {
  631. this.teamCourse = true;
  632. this.isSetCourseSettingsId = true;
  633. this.$set(this.form, "eclass", res.data?.course);
  634. console.log("设置完成eclass");
  635. this.initDetail = true;
  636. this.$set(
  637. this.form,
  638. "payUserType",
  639. res.data?.calender?.payUserType
  640. );
  641. this.$set(
  642. this.form,
  643. "calenderFeeType",
  644. res.data?.calender?.calenderFeeType
  645. );
  646. this.$set(
  647. this.form,
  648. "musicGroupCalenderRefundPeriods",
  649. res.data?.calenderRefundPeriods
  650. );
  651. let calenderFeeJson = res.data?.calender?.calenderFeeJson;
  652. if (calenderFeeJson) {
  653. calenderFeeJson = JSON.parse(calenderFeeJson);
  654. this.$set(this.form, "calenderFeeJson", calenderFeeJson);
  655. if (this.form.calenderFeeType == "TEACHER") {
  656. this.$set(
  657. this.form,
  658. "teacherFeeList",
  659. calenderFeeJson.teacherFeeList
  660. );
  661. }
  662. }
  663. });
  664. }
  665. if (res.data?.activity?.length > 0) {
  666. this.teamActive = true;
  667. this.$set(this.form, "activeList", res.data.activity);
  668. this.form.activeList.forEach((active) => {
  669. active.vipGroupCategoryNames = active.categoryName;
  670. });
  671. }
  672. }
  673. });
  674. }
  675. if (this.submitList.length > 0) {
  676. this.$bus.$emit("showguide", this.submitList);
  677. }
  678. },
  679. getActive() {
  680. return vipGroupActivity({
  681. organId: this.organId,
  682. rows: 10,
  683. page: 1,
  684. status: "PROGRESS",
  685. activityChannel: 1,
  686. enable: true,
  687. }).then((res) => {
  688. if (res.code == 200) {
  689. this.activeList = res.data.rows;
  690. if (this.activeList.length <= 0) {
  691. this.submitList.push("teamActive");
  692. // this.$bus.$emit("showguide", ["teamCourseFee"]);
  693. }
  694. }
  695. });
  696. },
  697. async getAgreement() {
  698. try {
  699. const res = await getAgreement();
  700. if (!res.data) {
  701. this.submitList.push("agreement");
  702. }
  703. } catch (e) {}
  704. },
  705. async getMemberRules() {
  706. try {
  707. const res = await sysConfigList({ group: "DEFAULT" });
  708. const paramName = "cloud_price_range";
  709. res.data.forEach((item) => {
  710. if (item.paramName == paramName) {
  711. const itemValue = item.paranValue
  712. ? JSON.parse(item.paranValue)
  713. : null;
  714. if (itemValue) {
  715. this.rulesForm = itemValue;
  716. }
  717. }
  718. });
  719. } catch (e) {
  720. console.log(e);
  721. }
  722. },
  723. async getLeBao() {
  724. try {
  725. const res = await getSysTenantConfig({ group: "MUSIC_REPAIR" });
  726. this.leBaoInfo = res.data;
  727. res.data.forEach((element) => {
  728. if (element.id == 188) {
  729. this.isShowLeBao = !!element.paranValue;
  730. }
  731. });
  732. // this.$forceUpdate()
  733. } catch (e) {
  734. console.log(e);
  735. }
  736. },
  737. async getMemberList() {
  738. try {
  739. const res = await getAllmemberRank({ isDefault: 0 });
  740. this.memberRankList = res.data;
  741. // 获取是否展示会员是否自动生效
  742. const memberRes = await getAutoActivationFlag();
  743. this.showAutoActivationFlag = memberRes.data;
  744. } catch (e) {
  745. console.log(e);
  746. }
  747. },
  748. async getCharges() {
  749. const organId = this.musicGroup?.organId;
  750. const chargeTypeId = this.musicGroup?.chargeTypeId;
  751. this.chargeTypeName = this.musicGroup?.chargeTypeName;
  752. try {
  753. const res = await musicGroupOrganizationCourseSettingsQueryPage({
  754. row: 9999,
  755. chargeTypeId,
  756. organId,
  757. });
  758. const ids = res.data.rows.map((item) => item.id);
  759. if (!ids.includes(this.form.musicGroupOrganizationCourseSettingId)) {
  760. this.$set(this.form, "musicGroupOrganizationCourseSettingId", null);
  761. }
  762. this.charges = res.data.rows;
  763. // this.charges =[];
  764. if (this.charges.length <= 0) {
  765. this.submitList.push("teamCourseType");
  766. } else {
  767. if (this.form.leixing == 1 && this.teamCourse) {
  768. this.$set(
  769. this.form,
  770. "musicGroupOrganizationCourseSettingId",
  771. this.charges[0].id
  772. );
  773. }
  774. }
  775. } catch (error) {}
  776. },
  777. goback() {
  778. let query = { ...this.$route.query };
  779. query.calenderId = null;
  780. if (query.type == "resetTeam") {
  781. this.$store.dispatch("delVisitedViews", this.$route);
  782. this.$router.push({
  783. path: "/business/resetTeaming",
  784. query,
  785. });
  786. } else if (query.type == "look") {
  787. this.$store.dispatch("delVisitedViews", this.$route);
  788. this.$router.push({
  789. path: "/business/resetTeaming",
  790. query,
  791. });
  792. } else if (query.type == "teamDraft" || query.type == "feeAudit") {
  793. this.$store.dispatch("delVisitedViews", this.$route);
  794. this.$router.push({
  795. path: "/business/resetTeaming",
  796. query,
  797. });
  798. }
  799. },
  800. formatCourse() {
  801. // 格式化课程类型
  802. const organId = this.musicGroup?.organId;
  803. const chargeTypeId = this.musicGroup?.chargeTypeId;
  804. const _ = {};
  805. const list = (this.organizationCourseUnitPriceSettings || []).filter(
  806. (item) =>
  807. organId &&
  808. organId == item.organId &&
  809. chargeTypeId &&
  810. chargeTypeId == item.chargeTypeId
  811. );
  812. for (const item of list) {
  813. _[item.courseType] = item;
  814. }
  815. this.organizationCourseUnitPriceSettingsByType = _;
  816. return _;
  817. },
  818. priceChange(item, index) {
  819. const _ = [...this.form.eclass];
  820. const active =
  821. this.organizationCourseUnitPriceSettingsByType[item.courseType] || {};
  822. const price = Math.round(
  823. numeral(active.unitPrice || 1)
  824. .multiply(item.courseTotalMinuties || 1)
  825. .value()
  826. );
  827. item.courseCurrentPrice = price;
  828. item.courseOriginalPrice = price;
  829. _[index] = item;
  830. this.$set(this.form, "eclass", [..._]);
  831. this.syncAllMoney();
  832. },
  833. syncAllMoney() {
  834. let money = 0;
  835. let first = 0;
  836. let other = 0;
  837. let classs = this.form.eclass;
  838. for (const item of classs) {
  839. money += item.courseCurrentPrice;
  840. if (this.cycles && this.cycles.length) {
  841. if (item.isStudentOptional) {
  842. first += item.courseCurrentPrice;
  843. } else {
  844. const floorMoney = Math.floor(
  845. item.courseCurrentPrice / this.cycles.length
  846. );
  847. const remainder = item.courseCurrentPrice % this.cycles.length;
  848. first += floorMoney + remainder;
  849. other += floorMoney;
  850. }
  851. }
  852. }
  853. // if (!money) {
  854. // this.$set(this.cycle, "paymentAmount", undefined);
  855. // } else {
  856. // this.$set(this.cycle, "paymentAmount", money);
  857. // }
  858. // money += parseFloat(this.memberForm.memberPaymentAmount || 0);
  859. // this.money = money;
  860. return money;
  861. },
  862. addExtraClass() {
  863. this.form.eclass.push({});
  864. },
  865. addActive() {
  866. this.form.activeList.push({});
  867. },
  868. removeActive(index) {
  869. this.form.activeList[index] = null;
  870. this.$set(
  871. this.form,
  872. "activeList",
  873. this.form.activeList.filter((item) => !!item)
  874. );
  875. },
  876. removeExtraClass(index) {
  877. this.form.eclass[index] = null;
  878. this.$set(
  879. this.form,
  880. "eclass",
  881. this.form.eclass.filter((item) => !!item)
  882. );
  883. // this.form.eclass = this.form.eclass.filter((item) => !!item);
  884. },
  885. async onPreview() {
  886. // 开始预览
  887. const musicGroupId = this.$route.query.id;
  888. await findMusicGroupSubjectInfo({ musicGroupId: musicGroupId }).then(
  889. (res) => {
  890. if (res.code == 200) {
  891. this.dialogSubjectList = res.data.musicGroupSubjectPlans;
  892. // 默认预览第一个
  893. if (this.dialogSubjectList.length <= 0) {
  894. this.$message.error("请先设置声部信息");
  895. return;
  896. }
  897. this.activeName = this.dialogSubjectList[0].subjectId.toString();
  898. this.dialogSubjectVisible = true;
  899. } else {
  900. this.$message.warning("没有可预览的声部");
  901. }
  902. }
  903. );
  904. },
  905. submitForm() {
  906. this.$refs.form.validate(async (isok, obj) => {
  907. if (isok) {
  908. // 学校缴费没有预览
  909. if (this.$route.query.payUserType == "SCHOOL") {
  910. this.$confirm("是否创建缴费?", "提示", {
  911. confirmButtonText: "确定",
  912. cancelButtonText: "取消",
  913. type: "warning",
  914. })
  915. .then(() => {
  916. this.onSubmit();
  917. })
  918. .catch(() => {});
  919. } else {
  920. const preViewData = this.formatPreviewData();
  921. this.preViewData = preViewData;
  922. await this.onPreview();
  923. }
  924. } else {
  925. this.$nextTick(() => {
  926. this.scrollView(obj);
  927. });
  928. }
  929. });
  930. },
  931. onSubmit() {
  932. this.$refs.form.validate(async (isok) => {
  933. if (isok) {
  934. let obj = this.fommatDate();
  935. if (this.form.payUserType == "SCHOOL") {
  936. let total = 0;
  937. this.form.musicGroupCalenderRefundPeriods.forEach((item) => {
  938. total += item.refundAmount * 1;
  939. });
  940. if (total != this.form.currentTotalAmount) {
  941. console.log(total, this.form.currentTotalAmount);
  942. this.$message.error("付款金额与回款金额不一致,请重新设置");
  943. return;
  944. }
  945. }
  946. if (this.$route.query.calenderId) {
  947. obj.calenderId = this.$route.query.calenderId;
  948. try {
  949. const res = await musicGroupresetCalender(obj);
  950. if (res.code == 200) {
  951. this.$message.success("修改缴费成功");
  952. this.goback();
  953. }
  954. if (res.code == 207) {
  955. await this.$confirm(
  956. res.msg || `当前乐团存在未排课的缴费项目,请再次确认操作`,
  957. "提示",
  958. {
  959. type: "warning",
  960. }
  961. );
  962. obj.confirmCreate = true;
  963. await musicGroupresetCalender(obj);
  964. this.$message.success("修改缴费成功");
  965. this.goback();
  966. }
  967. } catch (e) {
  968. console.log(e);
  969. }
  970. } else {
  971. try {
  972. const res = await musicGroupcreateCalender(obj);
  973. if (res.code == 200) {
  974. this.$message.success("创建缴费成功");
  975. this.goback();
  976. }
  977. if (res.code == 207) {
  978. await this.$confirm(
  979. res.msg || `当前乐团存在未排课的缴费项目,请再次确认操作`,
  980. "提示",
  981. {
  982. type: "warning",
  983. }
  984. );
  985. obj.confirmCreate = true;
  986. await musicGroupcreateCalender(obj);
  987. this.$message.success("创建缴费成功");
  988. this.goback();
  989. }
  990. } catch (e) {
  991. console.log(e);
  992. }
  993. }
  994. }
  995. });
  996. },
  997. scrollView(object) {
  998. console.log(object);
  999. for (const i in object) {
  1000. let dom = this.$refs[i];
  1001. // 这里是针对遍历的情况(多个输入框),取值为数组
  1002. if (Object.prototype.toString.call(dom) !== "[object Object]") {
  1003. dom = dom[0];
  1004. }
  1005. // 第一种方法(包含动画效果)
  1006. dom.$el.scrollIntoView({
  1007. // 滚动到指定节点
  1008. // 值有start,center,end,nearest,当前显示在视图区域中间
  1009. block: "center",
  1010. // 值有auto、instant,smooth,缓动动画(当前是慢速的)
  1011. behavior: "smooth",
  1012. });
  1013. break; // 跳出循环了
  1014. }
  1015. },
  1016. formatPreviewData() {
  1017. // 格式化预览数据
  1018. const form = this.form;
  1019. // 重置小班课数据
  1020. let tmpActiveList = form.activeList?.length > 0 ? form.activeList : [];
  1021. let activeList = [];
  1022. if (tmpActiveList.length > 0) {
  1023. tmpActiveList.forEach((active) => {
  1024. if (active.activityId) {
  1025. active.categoryName = active.vipGroupCategoryNames;
  1026. activeList.push(active);
  1027. }
  1028. });
  1029. }
  1030. let memberObj =
  1031. form.memberList?.length > 0 ? { ...form.memberList[0] } : null;
  1032. // 获取会员名称
  1033. if (memberObj) {
  1034. this.memberRankList.forEach((item) => {
  1035. if (item.id == memberObj.memberRankSettingId) {
  1036. memberObj.name = item.name;
  1037. }
  1038. });
  1039. }
  1040. // console.log(memberObj, 'memberObj', activeList)
  1041. let tempCourseList = form.eclass?.length > 0 ? form.eclass : [];
  1042. let courseList = [];
  1043. if (tempCourseList.length > 0) {
  1044. tempCourseList.forEach((course) => {
  1045. if (course.courseType) {
  1046. course.isStudentOptional = true;
  1047. courseList.push(course);
  1048. }
  1049. });
  1050. }
  1051. return {
  1052. payUserType: this.$route.query.payUserType,
  1053. musicGroup: this.musicGroup,
  1054. paymentCalender: {
  1055. activity: [...activeList], // 小班课
  1056. course: courseList, // 课程
  1057. member: memberObj, // 云教练
  1058. memberPrivilegesItemList: [], // 会员基本内容
  1059. repair:
  1060. form.leBaoList?.length > 0 &&
  1061. this.isShowLeBao &&
  1062. this.$route.query.team_status != "PROGRESS"
  1063. ? { ...form.leBaoList[0], optionalFlag: false }
  1064. : null, // 乐保
  1065. },
  1066. isShowMemberForPay: form.isShowMemberForPay,
  1067. isShowMusicInsuranceForPay: form.isShowMusicInsuranceForPay,
  1068. isShowVipCourseForPay: form.isShowVipCourseForPay,
  1069. isShowMusicCourseForPay: form.isShowMusicCourseForPay,
  1070. };
  1071. },
  1072. fommatDate() {
  1073. if (this.$route.query.payUserType == "STUDENT") {
  1074. return {
  1075. payUserType: this.$route.query.payUserType,
  1076. musicGroupOrganizationCourseSettingId:
  1077. this.form.musicGroupOrganizationCourseSettingId || null,
  1078. memo: this.form.memo,
  1079. startPaymentDate: this.form.paymentDate[0],
  1080. deadlinePaymentDate: this.form.paymentDate[1],
  1081. calenderActivityList:
  1082. this.form.activeList?.length > 0 ? this.form.activeList : null,
  1083. musicRepair:
  1084. this.form.leBaoList?.length > 0
  1085. ? { ...this.form.leBaoList[0] }
  1086. : null,
  1087. calenderMember:
  1088. this.form.memberList?.length > 0 &&
  1089. this.form.memberList[0]?.memberRankSettingId
  1090. ? { ...this.form.memberList[0] }
  1091. : null,
  1092. musicGroupPaymentCalenderCourseSettingsList:
  1093. this.form.eclass?.length > 0 ? this.form.eclass : null,
  1094. musicGroupId: this.$route.query.id,
  1095. paymentItemShowState: JSON.stringify({
  1096. isShowMemberForPay: this.form.isShowMemberForPay,
  1097. isShowMusicInsuranceForPay: this.form.isShowMusicInsuranceForPay,
  1098. isShowVipCourseForPay: this.form.isShowVipCourseForPay,
  1099. isShowMusicCourseForPay: this.form.isShowMusicCourseForPay,
  1100. }),
  1101. };
  1102. } else {
  1103. let calenderFeeJson = this.form.calenderFeeJson;
  1104. if (this.form.calenderFeeType == "TEACHER") {
  1105. calenderFeeJson.teacherFeeList = this.form.teacherFeeList;
  1106. }
  1107. return {
  1108. payUserType: this.$route.query.payUserType,
  1109. musicGroupOrganizationCourseSettingId:
  1110. this.form.musicGroupOrganizationCourseSettingId || null,
  1111. memo: this.form.memo,
  1112. startPaymentDate: this.form.paymentDate[0],
  1113. deadlinePaymentDate: this.form.paymentDate[1],
  1114. calenderActivityList:
  1115. this.form.activeList?.length > 0 ? this.form.activeList : null,
  1116. musicRepair:
  1117. this.form.leBaoList?.length > 0
  1118. ? { ...this.form.leBaoList[0] }
  1119. : null,
  1120. calenderMember:
  1121. this.form.memberList?.length > 0 &&
  1122. this.form.memberList[0]?.memberRankSettingId
  1123. ? { ...this.form.memberList[0] }
  1124. : null,
  1125. musicGroupPaymentCalenderCourseSettingsList:
  1126. this.form.eclass?.length > 0 ? this.form.eclass : null,
  1127. musicGroupId: this.$route.query.id,
  1128. paymentItemShowState: JSON.stringify({
  1129. isShowMemberForPay: this.form.isShowMemberForPay,
  1130. isShowMusicInsuranceForPay: this.form.isShowMusicInsuranceForPay,
  1131. isShowVipCourseForPay: this.form.isShowVipCourseForPay,
  1132. isShowMusicCourseForPay: this.form.isShowMusicCourseForPay,
  1133. }),
  1134. calenderFeeType: this.form.calenderFeeType,
  1135. calenderFeeJson: JSON.stringify(calenderFeeJson),
  1136. musicGroupCalenderRefundPeriods:
  1137. this.form.musicGroupCalenderRefundPeriods,
  1138. currentTotalAmount: this.form.currentTotalAmount,
  1139. contractUrl: this.form.contractUrl,
  1140. };
  1141. }
  1142. },
  1143. getScroll() {
  1144. this.scrollTop =
  1145. window.pageYOffset ||
  1146. document.documentElement.scrollTop ||
  1147. document.body.scrollTop;
  1148. if (!!this.scrollTop && this.scrollTop >= 70) {
  1149. this.isField = true;
  1150. } else {
  1151. this.isField = false;
  1152. }
  1153. },
  1154. setAllTotal(val) {
  1155. this.form.calenderFeeJson.allTotal = val;
  1156. this.form.currentTotalAmount =
  1157. this.form.calenderFeeJson.allTotal -
  1158. this.form.calenderFeeJson.discountTotal;
  1159. this.$set(this.form, "currentTotalAmount", this.form.currentTotalAmount);
  1160. },
  1161. currentTotalAmount(val) {
  1162. this.$set(this.form, "currentTotalAmount", val);
  1163. },
  1164. },
  1165. watch: {
  1166. teamCourse(val) {
  1167. if (!val) {
  1168. this.$set(this.form, "eclass", [{}]);
  1169. this.$set(this.form, "leixing", "1");
  1170. this.$set(this.form, "musicGroupOrganizationCourseSettingId", null);
  1171. }
  1172. },
  1173. member(val) {
  1174. if (!val) {
  1175. this.$set(this.form, "memberList", [{}]);
  1176. }
  1177. },
  1178. teamActive(val) {
  1179. if (!val) {
  1180. this.$set(this.form, "activeList", [{}]);
  1181. }
  1182. },
  1183. leBao(val) {
  1184. if (!val) {
  1185. this.$set(this.form, "leBaoList", [{}]);
  1186. }
  1187. },
  1188. "form.eclass": {
  1189. handler(newValue) {
  1190. if (this.initDetail) {
  1191. this.initDetail = false;
  1192. return;
  1193. }
  1194. let arr = [];
  1195. newValue.forEach((item) => {
  1196. arr.push({
  1197. courseType: item.courseType,
  1198. teacherNumber: 0,
  1199. courseNumber: 0,
  1200. courseCurrentPrice: 0,
  1201. });
  1202. });
  1203. this.$set(this.form, "teacherFeeList", arr);
  1204. },
  1205. deep: true,
  1206. },
  1207. "form.currentTotalAmount"(val) {
  1208. // console.log(val,'form.currentTotalAmount');
  1209. // this.$forceUpdate()
  1210. },
  1211. async "form.musicGroupOrganizationCourseSettingId"(val) {
  1212. // && !this.rowDetail !this.$route.query.calenderId
  1213. if (val && !this.isSetCourseSettingsId) {
  1214. try {
  1215. const res = await queryByMusicGroupOrganizationCourseSettingsId({
  1216. id: val,
  1217. });
  1218. let CourseSettingDetail = res.data.map((course) => {
  1219. return {
  1220. ...course,
  1221. };
  1222. });
  1223. this.$set(this.form, "eclass", res.data);
  1224. // this.syncAllMoney();
  1225. } catch (error) {}
  1226. }
  1227. this.isSetCourseSettingsId = false;
  1228. },
  1229. "form.leixing"(val) {
  1230. this.cycles = [{}];
  1231. this.collapse = [0];
  1232. this.cycle = {};
  1233. if (val != "1") {
  1234. this.$set(
  1235. this.form,
  1236. "musicGroupOrganizationCourseSettingId",
  1237. undefined
  1238. );
  1239. }
  1240. // this.$set(this.cycle, "paymentAmount", undefined);
  1241. // this.$set(this.other, "memo", null);
  1242. if (val === "1" && !this.isSetCourseSettingsId) {
  1243. this.$set(this.form, "eclass", []);
  1244. } else if (val === "2") {
  1245. this.$set(this.form, "eclass", [{}]);
  1246. }
  1247. this.isSetCourseSettingsId = false;
  1248. },
  1249. },
  1250. computed: {
  1251. musicGroup() {
  1252. return this.baseInfo?.musicGroup;
  1253. },
  1254. },
  1255. };
  1256. </script>
  1257. <style lang="scss" scoped>
  1258. @import "~@/views/resetTeaming/modals/pay.scss";
  1259. .memoWrap {
  1260. // width: calc(100% - 860px);
  1261. width: 860px;
  1262. .memoWrapItem {
  1263. display: block;
  1264. ::v-deep .el-form-item__content {
  1265. display: inline-block;
  1266. width: calc(100% - 140px);
  1267. }
  1268. }
  1269. }
  1270. .Wall {
  1271. height: 15px;
  1272. background-color: #f2f2f2;
  1273. }
  1274. ::v-deep .el-form-item__label:before {
  1275. content: "" !important;
  1276. position: absolute;
  1277. color: transparent;
  1278. margin-right: 4px;
  1279. }
  1280. .payInfoWrap {
  1281. .submitBtn {
  1282. // width: 121px;
  1283. // height: 41px;
  1284. background: var(--color-primary);
  1285. border-radius: 7px;
  1286. // margin: 20px auto;
  1287. // line-height: 40px;
  1288. color: #fff;
  1289. text-align: center;
  1290. cursor: pointer;
  1291. }
  1292. .baseWrap {
  1293. padding: 20px;
  1294. background-color: #fff;
  1295. }
  1296. .baseWrapFixed {
  1297. top: 105px;
  1298. left: 210px; // 205
  1299. position: fixed;
  1300. background-color: #fff;
  1301. width: calc(100% - 220px);
  1302. z-index: 100;
  1303. padding: 20px;
  1304. box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 3px 3px;
  1305. }
  1306. .left {
  1307. ::v-deep .el-checkbox {
  1308. padding: 8px 10px 7px 10px;
  1309. border-radius: 4px;
  1310. }
  1311. ::v-deep .el-checkbox .el-checkbox__inner {
  1312. border-radius: 50%;
  1313. border: 1px solid var(--color-primary);
  1314. width: 16px;
  1315. height: 16px;
  1316. &:after {
  1317. height: 8px;
  1318. left: 5px;
  1319. }
  1320. }
  1321. ::v-deep .el-checkbox__inner:hover {
  1322. background-color: var(--color-primary);
  1323. }
  1324. ::v-deep .el-checkbox.is-checked {
  1325. border-color: #fff;
  1326. color: #fff;
  1327. }
  1328. .payTitle {
  1329. display: flex;
  1330. flex-direction: row;
  1331. align-items: center;
  1332. font-size: 18px;
  1333. font-weight: 600;
  1334. color: #1a1a1a;
  1335. height: 25px;
  1336. margin-bottom: 15px;
  1337. p {
  1338. line-height: 25px;
  1339. }
  1340. .squrt {
  1341. width: 3px;
  1342. height: 16px;
  1343. background: var(--color-primary);
  1344. margin-right: 8px;
  1345. position: relative;
  1346. top: -1px;
  1347. border-radius: 2px;
  1348. }
  1349. .payContext {
  1350. color: var(--color-primary);
  1351. border: 1px solid var(--color-primary);
  1352. font-size: 14px;
  1353. line-height: 22px;
  1354. border-radius: 3px;
  1355. padding: 0 5px;
  1356. margin-left: 12px;
  1357. }
  1358. }
  1359. .checkWrap {
  1360. display: flex;
  1361. flex-direction: row;
  1362. justify-content: flex-start;
  1363. align-items: center;
  1364. .checkBtn.active {
  1365. border: 1px solid var(--color-primary);
  1366. }
  1367. .checkBtn {
  1368. position: relative;
  1369. background-color: #fefefe;
  1370. margin-right: 12px;
  1371. padding: 0 22px;
  1372. display: flex;
  1373. flex-direction: row;
  1374. align-items: center;
  1375. border-radius: 6px;
  1376. border: 1px solid #dfe8ec;
  1377. cursor: pointer;
  1378. height: 84px;
  1379. width: 251px;
  1380. overflow: hidden;
  1381. &:hover {
  1382. border: 1px solid var(--color-primary);
  1383. }
  1384. p {
  1385. height: 41px;
  1386. line-height: 41px;
  1387. }
  1388. .checkLeft {
  1389. width: 60px;
  1390. height: 60px;
  1391. margin-right: 16px;
  1392. img {
  1393. width: 100%;
  1394. }
  1395. }
  1396. .checkRight {
  1397. p {
  1398. height: 26px;
  1399. font-size: 19px;
  1400. font-weight: 600;
  1401. color: #1a1a1a;
  1402. line-height: 26px;
  1403. }
  1404. .checkSubTitle {
  1405. font-size: 14px;
  1406. font-weight: 400;
  1407. color: var(--color-primary);
  1408. line-height: 20px;
  1409. }
  1410. }
  1411. .checTriangle {
  1412. border-bottom: 44px solid var(--color-primary);
  1413. border-left: 44px solid transparent;
  1414. position: absolute;
  1415. right: 0;
  1416. bottom: 0;
  1417. width: 0;
  1418. height: 0;
  1419. img {
  1420. width: 19px;
  1421. height: 16px;
  1422. position: absolute;
  1423. top: 22px;
  1424. right: 5px;
  1425. }
  1426. }
  1427. }
  1428. // .checkBtn.disabled {
  1429. // cursor: not-allowed;
  1430. // color: #d9d9d9;
  1431. // background-color: #f2f2f2 !important;
  1432. // ::v-deep .el-checkbox__inner {
  1433. // background-color: #fff !important;
  1434. // border-color: #d9d9d9;
  1435. // color: #fff;
  1436. // &::after {
  1437. // border-color: #d9d9d9;
  1438. // }
  1439. // }
  1440. // &:hover {
  1441. // background-color: #f2f2f2 !important;
  1442. // color: #d9d9d9;
  1443. // ::v-deep .el-checkbox__inner {
  1444. // background-color: #fff !important;
  1445. // }
  1446. // }
  1447. // }
  1448. }
  1449. }
  1450. }
  1451. .coreList {
  1452. // margin: 14px;
  1453. }
  1454. </style>
  1455. <style lang="less" scoped>
  1456. ::v-deep .el-dialog__body {
  1457. padding: 15px 0 0;
  1458. }
  1459. .empty {
  1460. background-color: #fff;
  1461. padding-bottom: 20px;
  1462. }
  1463. </style>