payInfoDetail.vue 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492
  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 (
  592. res.data?.calender?.startPaymentDate &&
  593. res.data?.calender?.deadlinePaymentDate
  594. ) {
  595. this.$set(this.form, "paymentDate", [
  596. res.data?.calender?.startPaymentDate,
  597. res.data?.calender?.deadlinePaymentDate
  598. ]);
  599. }
  600. this.$set(
  601. this.form,
  602. "contractUrl",
  603. res.data?.calender?.contractUrl
  604. );
  605. this.$set(this.form, "memo", res.data?.calender?.memo);
  606. this.$set(
  607. this.form,
  608. "isShowMemberForPay",
  609. res.data?.calender?.paymentItemShowState?.isShowMemberForPay
  610. );
  611. this.$set(
  612. this.form,
  613. "isShowMusicInsuranceForPay",
  614. res.data?.calender?.paymentItemShowState
  615. ?.isShowMusicInsuranceForPay
  616. );
  617. this.$set(
  618. this.form,
  619. "isShowVipCourseForPay",
  620. res.data?.calender?.paymentItemShowState?.isShowVipCourseForPay
  621. );
  622. this.$set(
  623. this.form,
  624. "isShowSalePrice",
  625. res.data?.calender?.isShowSalePrice
  626. );
  627. this.$set(
  628. this.form,
  629. "isShowMusicCourseForPay",
  630. res.data?.calender?.paymentItemShowState?.isShowMusicCourseForPay
  631. );
  632. if (res.data.member) {
  633. // 团练保
  634. this.member = true;
  635. this.$set(this.form, "memberList", [{ ...res.data.member }]);
  636. }
  637. if (res.data.repair) {
  638. this.leBao = true;
  639. this.$set(this.form, "leBaoList", [{ ...res.data.repair }]);
  640. }
  641. if (res.data?.course?.length > 0) {
  642. this.$nextTick(() => {
  643. this.teamCourse = true;
  644. this.isSetCourseSettingsId = true;
  645. this.$set(this.form, "eclass", res.data?.course);
  646. this.initDetail = true;
  647. this.$set(
  648. this.form,
  649. "payUserType",
  650. res.data?.calender?.payUserType
  651. );
  652. this.$set(
  653. this.form,
  654. "calenderFeeType",
  655. res.data?.calender?.calenderFeeType
  656. );
  657. this.$set(
  658. this.form,
  659. "musicGroupCalenderRefundPeriods",
  660. res.data?.calenderRefundPeriods
  661. );
  662. let calenderFeeJson = res.data?.calender?.calenderFeeJson;
  663. if (calenderFeeJson) {
  664. calenderFeeJson = JSON.parse(calenderFeeJson);
  665. this.$set(this.form, "calenderFeeJson", calenderFeeJson);
  666. if (this.form.calenderFeeType == "TEACHER") {
  667. this.$set(
  668. this.form,
  669. "teacherFeeList",
  670. calenderFeeJson.teacherFeeList
  671. );
  672. }
  673. }
  674. });
  675. }
  676. if (res.data?.activity?.length > 0) {
  677. this.teamActive = true;
  678. this.$set(this.form, "activeList", res.data.activity);
  679. this.form.activeList.forEach(active => {
  680. active.vipGroupCategoryNames = active.categoryName;
  681. });
  682. }
  683. }
  684. });
  685. }
  686. if (this.submitList.length > 0) {
  687. this.$bus.$emit("showguide", this.submitList);
  688. }
  689. },
  690. getActive() {
  691. return vipGroupActivity({
  692. organId: this.organId,
  693. rows: 10,
  694. page: 1,
  695. status: "PROGRESS",
  696. activityChannel: 1,
  697. enable: true
  698. }).then(res => {
  699. if (res.code == 200) {
  700. this.activeList = res.data.rows;
  701. if (this.activeList.length <= 0) {
  702. this.submitList.push("teamActive");
  703. // this.$bus.$emit("showguide", ["teamCourseFee"]);
  704. }
  705. }
  706. });
  707. },
  708. async getAgreement() {
  709. try {
  710. const res = await getAgreement();
  711. if (!res.data) {
  712. this.submitList.push("agreement");
  713. }
  714. } catch (e) {}
  715. },
  716. async getMemberRules() {
  717. try {
  718. const res = await sysConfigList({ group: "DEFAULT" });
  719. const paramName = "cloud_price_range";
  720. res.data.forEach(item => {
  721. if (item.paramName == paramName) {
  722. const itemValue = item.paranValue
  723. ? JSON.parse(item.paranValue)
  724. : null;
  725. if (itemValue) {
  726. this.rulesForm = itemValue;
  727. }
  728. }
  729. });
  730. } catch (e) {
  731. console.log(e);
  732. }
  733. },
  734. async getLeBao() {
  735. try {
  736. const res = await getSysTenantConfig({ group: "MUSIC_REPAIR" });
  737. this.leBaoInfo = res.data;
  738. res.data.forEach(element => {
  739. if (element.id == 188) {
  740. this.isShowLeBao = !!element.paranValue;
  741. }
  742. });
  743. // this.$forceUpdate()
  744. } catch (e) {
  745. console.log(e);
  746. }
  747. },
  748. async getMemberList() {
  749. try {
  750. const res = await getAllmemberRank({ isDefault: 0 });
  751. this.memberRankList = res.data;
  752. // 获取是否展示会员是否自动生效
  753. const memberRes = await getAutoActivationFlag();
  754. this.showAutoActivationFlag = memberRes.data;
  755. } catch (e) {
  756. console.log(e);
  757. }
  758. },
  759. async getCharges() {
  760. const organId = this.musicGroup?.organId;
  761. const chargeTypeId = this.musicGroup?.chargeTypeId;
  762. this.chargeTypeName = this.musicGroup?.chargeTypeName;
  763. try {
  764. const res = await musicGroupOrganizationCourseSettingsQueryPage({
  765. row: 9999,
  766. chargeTypeId,
  767. organId
  768. });
  769. const ids = res.data.rows.map(item => item.id);
  770. if (!ids.includes(this.form.musicGroupOrganizationCourseSettingId)) {
  771. this.$set(this.form, "musicGroupOrganizationCourseSettingId", null);
  772. }
  773. this.charges = res.data.rows;
  774. // this.charges =[];
  775. if (this.charges.length <= 0) {
  776. this.submitList.push("teamCourseType");
  777. } else {
  778. if (this.form.leixing == 1 && this.teamCourse) {
  779. this.$set(
  780. this.form,
  781. "musicGroupOrganizationCourseSettingId",
  782. this.charges[0].id
  783. );
  784. }
  785. }
  786. } catch (error) {}
  787. },
  788. goback() {
  789. let query = { ...this.$route.query };
  790. query.calenderId = null;
  791. if (query.type == "resetTeam") {
  792. this.$store.dispatch("delVisitedViews", this.$route);
  793. this.$router.push({
  794. path: "/business/resetTeaming",
  795. query
  796. });
  797. } else if (query.type == "look") {
  798. this.$store.dispatch("delVisitedViews", this.$route);
  799. this.$router.push({
  800. path: "/business/resetTeaming",
  801. query
  802. });
  803. } else if (
  804. query.type == "teamDraft" ||
  805. query.type == "feeAudit" ||
  806. query.type == "FEE_AUDIT_FAILED"
  807. ) {
  808. this.$store.dispatch("delVisitedViews", this.$route);
  809. this.$router.push({
  810. path: "/business/resetTeaming",
  811. query
  812. });
  813. }
  814. },
  815. formatCourse() {
  816. // 格式化课程类型
  817. const organId = this.musicGroup?.organId;
  818. const chargeTypeId = this.musicGroup?.chargeTypeId;
  819. const _ = {};
  820. const list = (this.organizationCourseUnitPriceSettings || []).filter(
  821. item =>
  822. organId &&
  823. organId == item.organId &&
  824. chargeTypeId &&
  825. chargeTypeId == item.chargeTypeId
  826. );
  827. for (const item of list) {
  828. _[item.courseType] = item;
  829. }
  830. this.organizationCourseUnitPriceSettingsByType = _;
  831. return _;
  832. },
  833. priceChange(item, index) {
  834. const _ = [...this.form.eclass];
  835. const active =
  836. this.organizationCourseUnitPriceSettingsByType[item.courseType] || {};
  837. const price = Math.round(
  838. numeral(active.unitPrice || 1)
  839. .multiply(item.courseTotalMinuties || 1)
  840. .value()
  841. );
  842. item.courseCurrentPrice = price;
  843. item.courseOriginalPrice = price;
  844. _[index] = item;
  845. this.$set(this.form, "eclass", [..._]);
  846. this.syncAllMoney();
  847. },
  848. syncAllMoney() {
  849. let money = 0;
  850. let first = 0;
  851. let other = 0;
  852. let classs = this.form.eclass;
  853. for (const item of classs) {
  854. money += item.courseCurrentPrice;
  855. if (this.cycles && this.cycles.length) {
  856. if (item.isStudentOptional) {
  857. first += item.courseCurrentPrice;
  858. } else {
  859. const floorMoney = Math.floor(
  860. item.courseCurrentPrice / this.cycles.length
  861. );
  862. const remainder = item.courseCurrentPrice % this.cycles.length;
  863. first += floorMoney + remainder;
  864. other += floorMoney;
  865. }
  866. }
  867. }
  868. // if (!money) {
  869. // this.$set(this.cycle, "paymentAmount", undefined);
  870. // } else {
  871. // this.$set(this.cycle, "paymentAmount", money);
  872. // }
  873. // money += parseFloat(this.memberForm.memberPaymentAmount || 0);
  874. // this.money = money;
  875. return money;
  876. },
  877. addExtraClass() {
  878. this.form.eclass.push({});
  879. },
  880. addActive() {
  881. this.form.activeList.push({});
  882. },
  883. removeActive(index) {
  884. this.form.activeList[index] = null;
  885. this.$set(
  886. this.form,
  887. "activeList",
  888. this.form.activeList.filter(item => !!item)
  889. );
  890. },
  891. removeExtraClass(index) {
  892. this.form.eclass[index] = null;
  893. this.$set(this.form, "eclass", this.form.eclass.filter(item => !!item));
  894. // this.form.eclass = this.form.eclass.filter((item) => !!item);
  895. },
  896. async onPreview() {
  897. // 开始预览
  898. const musicGroupId = this.$route.query.id;
  899. await findMusicGroupSubjectInfo({ musicGroupId: musicGroupId }).then(
  900. res => {
  901. if (res.code == 200) {
  902. this.dialogSubjectList = res.data.musicGroupSubjectPlans;
  903. // 默认预览第一个
  904. if (this.dialogSubjectList.length <= 0) {
  905. this.$message.error("请先设置声部信息");
  906. return;
  907. }
  908. this.activeName = this.dialogSubjectList[0].subjectId.toString();
  909. this.dialogSubjectVisible = true;
  910. } else {
  911. this.$message.warning("没有可预览的声部");
  912. }
  913. }
  914. );
  915. },
  916. submitForm() {
  917. this.$refs.form.validate(async (isok, obj) => {
  918. if (isok) {
  919. // 学校缴费没有预览
  920. if (this.$route.query.payUserType == "SCHOOL") {
  921. this.$confirm("是否创建缴费?", "提示", {
  922. confirmButtonText: "确定",
  923. cancelButtonText: "取消",
  924. type: "warning"
  925. })
  926. .then(() => {
  927. this.onSubmit();
  928. })
  929. .catch(() => {});
  930. } else {
  931. const preViewData = this.formatPreviewData();
  932. console.log(preViewData);
  933. this.preViewData = preViewData;
  934. await this.onPreview();
  935. }
  936. } else {
  937. this.$nextTick(() => {
  938. this.scrollView(obj);
  939. });
  940. }
  941. });
  942. },
  943. onSubmit() {
  944. this.$refs.form.validate(async isok => {
  945. if (isok) {
  946. let obj = this.fommatDate();
  947. if (this.form.payUserType == "SCHOOL") {
  948. let total = 0;
  949. this.form.musicGroupCalenderRefundPeriods.forEach(item => {
  950. total += item.refundAmount * 1;
  951. });
  952. if (total != this.form.currentTotalAmount) {
  953. console.log(total, this.form.currentTotalAmount);
  954. this.$message.error("付款金额与回款金额不一致,请重新设置");
  955. return;
  956. }
  957. }
  958. if (this.$route.query.calenderId) {
  959. obj.calenderId = this.$route.query.calenderId;
  960. try {
  961. const res = await musicGroupresetCalender(obj);
  962. if (res.code == 200) {
  963. this.$message.success("修改缴费成功");
  964. this.goback();
  965. }
  966. if (res.code == 207) {
  967. await this.$confirm(
  968. res.msg || `当前乐团存在未排课的缴费项目,请再次确认操作`,
  969. "提示",
  970. {
  971. type: "warning"
  972. }
  973. );
  974. obj.confirmCreate = true;
  975. await musicGroupresetCalender(obj);
  976. this.$message.success("修改缴费成功");
  977. this.goback();
  978. }
  979. } catch (e) {
  980. console.log(e);
  981. }
  982. } else {
  983. try {
  984. const res = await musicGroupcreateCalender(obj);
  985. if (res.code == 200) {
  986. this.$message.success("创建缴费成功");
  987. this.goback();
  988. }
  989. if (res.code == 207) {
  990. await this.$confirm(
  991. res.msg || `当前乐团存在未排课的缴费项目,请再次确认操作`,
  992. "提示",
  993. {
  994. type: "warning"
  995. }
  996. );
  997. obj.confirmCreate = true;
  998. await musicGroupcreateCalender(obj);
  999. this.$message.success("创建缴费成功");
  1000. this.goback();
  1001. }
  1002. } catch (e) {
  1003. console.log(e);
  1004. }
  1005. }
  1006. }
  1007. });
  1008. },
  1009. scrollView(object) {
  1010. console.log(object);
  1011. for (const i in object) {
  1012. let dom = this.$refs[i];
  1013. // 这里是针对遍历的情况(多个输入框),取值为数组
  1014. if (Object.prototype.toString.call(dom) !== "[object Object]") {
  1015. dom = dom[0];
  1016. }
  1017. // 第一种方法(包含动画效果)
  1018. dom.$el.scrollIntoView({
  1019. // 滚动到指定节点
  1020. // 值有start,center,end,nearest,当前显示在视图区域中间
  1021. block: "center",
  1022. // 值有auto、instant,smooth,缓动动画(当前是慢速的)
  1023. behavior: "smooth"
  1024. });
  1025. break; // 跳出循环了
  1026. }
  1027. },
  1028. formatPreviewData() {
  1029. // 格式化预览数据
  1030. const form = this.form;
  1031. // 重置小班课数据
  1032. let tmpActiveList = form.activeList?.length > 0 ? form.activeList : [];
  1033. let activeList = [];
  1034. if (tmpActiveList.length > 0) {
  1035. tmpActiveList.forEach(active => {
  1036. if (active.activityId) {
  1037. active.categoryName = active.vipGroupCategoryNames;
  1038. activeList.push(active);
  1039. }
  1040. });
  1041. }
  1042. let memberObj =
  1043. form.memberList?.length > 0 ? { ...form.memberList[0] } : null;
  1044. // 获取会员名称
  1045. if (memberObj) {
  1046. this.memberRankList.forEach(item => {
  1047. if (item.id == memberObj.memberRankSettingId) {
  1048. memberObj.name = item.name;
  1049. }
  1050. });
  1051. }
  1052. // console.log(memberObj, 'memberObj', activeList)
  1053. let tempCourseList = form.eclass?.length > 0 ? form.eclass : [];
  1054. let courseList = [];
  1055. if (tempCourseList.length > 0) {
  1056. tempCourseList.forEach(course => {
  1057. if (course.courseType) {
  1058. course.isStudentOptional = true;
  1059. courseList.push(course);
  1060. }
  1061. });
  1062. }
  1063. return {
  1064. payUserType: this.$route.query.payUserType,
  1065. musicGroup: this.musicGroup,
  1066. paymentCalender: {
  1067. calender: {
  1068. isShowSalePrice: form.isShowSalePrice
  1069. },
  1070. activity: [...activeList], // 小班课
  1071. course: courseList, // 课程
  1072. member: memberObj, // 云教练
  1073. memberPrivilegesItemList: [], // 会员基本内容
  1074. repair:
  1075. form.leBaoList?.length > 0 &&
  1076. this.isShowLeBao &&
  1077. this.$route.query.team_status != "PROGRESS"
  1078. ? { ...form.leBaoList[0], optionalFlag: false }
  1079. : null // 乐保
  1080. },
  1081. isShowMemberForPay: form.isShowMemberForPay,
  1082. isShowMusicInsuranceForPay: form.isShowMusicInsuranceForPay,
  1083. isShowVipCourseForPay: form.isShowVipCourseForPay,
  1084. isShowMusicCourseForPay: form.isShowMusicCourseForPay
  1085. };
  1086. },
  1087. fommatDate() {
  1088. if (this.$route.query.payUserType == "STUDENT") {
  1089. return {
  1090. payUserType: this.$route.query.payUserType,
  1091. musicGroupOrganizationCourseSettingId:
  1092. this.form.musicGroupOrganizationCourseSettingId || null,
  1093. memo: this.form.memo,
  1094. startPaymentDate: this.form.paymentDate[0],
  1095. deadlinePaymentDate: this.form.paymentDate[1],
  1096. calenderActivityList:
  1097. this.form.activeList?.length > 0 ? this.form.activeList : null,
  1098. musicRepair:
  1099. this.form.leBaoList?.length > 0
  1100. ? { ...this.form.leBaoList[0] }
  1101. : null,
  1102. calenderMember:
  1103. this.form.memberList?.length > 0 &&
  1104. this.form.memberList[0]?.memberRankSettingId
  1105. ? { ...this.form.memberList[0] }
  1106. : null,
  1107. musicGroupPaymentCalenderCourseSettingsList:
  1108. this.form.eclass?.length > 0 ? this.form.eclass : null,
  1109. musicGroupId: this.$route.query.id,
  1110. paymentItemShowState: JSON.stringify({
  1111. isShowMemberForPay: this.form.isShowMemberForPay,
  1112. isShowMusicInsuranceForPay: this.form.isShowMusicInsuranceForPay,
  1113. isShowVipCourseForPay: this.form.isShowVipCourseForPay,
  1114. isShowMusicCourseForPay: this.form.isShowMusicCourseForPay
  1115. }),
  1116. isShowSalePrice: this.form.isShowSalePrice
  1117. };
  1118. } else {
  1119. let calenderFeeJson = this.form.calenderFeeJson;
  1120. if (this.form.calenderFeeType == "TEACHER") {
  1121. calenderFeeJson.teacherFeeList = this.form.teacherFeeList;
  1122. }
  1123. return {
  1124. payUserType: this.$route.query.payUserType,
  1125. musicGroupOrganizationCourseSettingId:
  1126. this.form.musicGroupOrganizationCourseSettingId || null,
  1127. memo: this.form.memo,
  1128. startPaymentDate: this.form.paymentDate[0],
  1129. deadlinePaymentDate: this.form.paymentDate[1],
  1130. calenderActivityList:
  1131. this.form.activeList?.length > 0 ? this.form.activeList : null,
  1132. musicRepair:
  1133. this.form.leBaoList?.length > 0
  1134. ? { ...this.form.leBaoList[0] }
  1135. : null,
  1136. calenderMember:
  1137. this.form.memberList?.length > 0 &&
  1138. this.form.memberList[0]?.memberRankSettingId
  1139. ? { ...this.form.memberList[0] }
  1140. : null,
  1141. musicGroupPaymentCalenderCourseSettingsList:
  1142. this.form.eclass?.length > 0 ? this.form.eclass : null,
  1143. musicGroupId: this.$route.query.id,
  1144. paymentItemShowState: JSON.stringify({
  1145. isShowMemberForPay: this.form.isShowMemberForPay,
  1146. isShowMusicInsuranceForPay: this.form.isShowMusicInsuranceForPay,
  1147. isShowVipCourseForPay: this.form.isShowVipCourseForPay,
  1148. isShowMusicCourseForPay: this.form.isShowMusicCourseForPay
  1149. }),
  1150. calenderFeeType: this.form.calenderFeeType,
  1151. calenderFeeJson: JSON.stringify(calenderFeeJson),
  1152. musicGroupCalenderRefundPeriods: this.form
  1153. .musicGroupCalenderRefundPeriods,
  1154. currentTotalAmount: this.form.currentTotalAmount,
  1155. contractUrl: this.form.contractUrl
  1156. };
  1157. }
  1158. },
  1159. getScroll() {
  1160. this.scrollTop =
  1161. window.pageYOffset ||
  1162. document.documentElement.scrollTop ||
  1163. document.body.scrollTop;
  1164. if (!!this.scrollTop && this.scrollTop >= 70) {
  1165. this.isField = true;
  1166. } else {
  1167. this.isField = false;
  1168. }
  1169. },
  1170. setAllTotal(val) {
  1171. this.form.calenderFeeJson.allTotal = val;
  1172. this.form.currentTotalAmount =
  1173. this.form.calenderFeeJson.allTotal -
  1174. this.form.calenderFeeJson.discountTotal;
  1175. this.$set(this.form, "currentTotalAmount", this.form.currentTotalAmount);
  1176. },
  1177. currentTotalAmount(val) {
  1178. this.$set(this.form, "currentTotalAmount", val);
  1179. }
  1180. },
  1181. watch: {
  1182. teamCourse(val) {
  1183. if (!val) {
  1184. this.$set(this.form, "eclass", [{}]);
  1185. this.$set(this.form, "leixing", "1");
  1186. this.$set(this.form, "musicGroupOrganizationCourseSettingId", null);
  1187. }
  1188. },
  1189. member(val) {
  1190. if (!val) {
  1191. this.$set(this.form, "memberList", [{}]);
  1192. }
  1193. },
  1194. teamActive(val) {
  1195. if (!val) {
  1196. this.$set(this.form, "activeList", [{}]);
  1197. }
  1198. },
  1199. leBao(val) {
  1200. if (!val) {
  1201. this.$set(this.form, "leBaoList", [{}]);
  1202. }
  1203. },
  1204. "form.eclass": {
  1205. handler(newValue) {
  1206. if (this.initDetail) {
  1207. this.initDetail = false;
  1208. return;
  1209. }
  1210. let arr = [];
  1211. newValue.forEach(item => {
  1212. arr.push({
  1213. courseType: item.courseType,
  1214. teacherNumber: 0,
  1215. courseNumber: 0,
  1216. courseCurrentPrice: 0
  1217. });
  1218. });
  1219. this.$set(this.form, "teacherFeeList", arr);
  1220. },
  1221. deep: true
  1222. },
  1223. "form.currentTotalAmount"(val) {
  1224. // console.log(val,'form.currentTotalAmount');
  1225. // this.$forceUpdate()
  1226. },
  1227. async "form.musicGroupOrganizationCourseSettingId"(val) {
  1228. // && !this.rowDetail !this.$route.query.calenderId
  1229. if (val && !this.isSetCourseSettingsId) {
  1230. try {
  1231. const res = await queryByMusicGroupOrganizationCourseSettingsId({
  1232. id: val
  1233. });
  1234. let CourseSettingDetail = res.data.map(course => {
  1235. return {
  1236. ...course
  1237. };
  1238. });
  1239. this.$set(this.form, "eclass", res.data);
  1240. // this.syncAllMoney();
  1241. } catch (error) {}
  1242. }
  1243. this.isSetCourseSettingsId = false;
  1244. },
  1245. "form.leixing"(val) {
  1246. this.cycles = [{}];
  1247. this.collapse = [0];
  1248. this.cycle = {};
  1249. if (val != "1") {
  1250. this.$set(
  1251. this.form,
  1252. "musicGroupOrganizationCourseSettingId",
  1253. undefined
  1254. );
  1255. }
  1256. // this.$set(this.cycle, "paymentAmount", undefined);
  1257. // this.$set(this.other, "memo", null);
  1258. if (val === "1" && !this.isSetCourseSettingsId) {
  1259. this.$set(this.form, "eclass", []);
  1260. } else if (val === "2") {
  1261. this.$set(this.form, "eclass", [{}]);
  1262. }
  1263. this.isSetCourseSettingsId = false;
  1264. }
  1265. },
  1266. computed: {
  1267. musicGroup() {
  1268. return this.baseInfo?.musicGroup;
  1269. }
  1270. }
  1271. };
  1272. </script>
  1273. <style lang="scss" scoped>
  1274. @import "~@/views/resetTeaming/modals/pay.scss";
  1275. .memoWrap {
  1276. // width: calc(100% - 860px);
  1277. width: 860px;
  1278. .memoWrapItem {
  1279. display: block;
  1280. ::v-deep .el-form-item__content {
  1281. display: inline-block;
  1282. width: calc(100% - 140px);
  1283. }
  1284. }
  1285. }
  1286. .Wall {
  1287. height: 15px;
  1288. background-color: #f2f2f2;
  1289. }
  1290. ::v-deep .el-form-item__label:before {
  1291. content: "" !important;
  1292. position: absolute;
  1293. color: transparent;
  1294. margin-right: 4px;
  1295. }
  1296. .payInfoWrap {
  1297. .submitBtn {
  1298. // width: 121px;
  1299. // height: 41px;
  1300. background: var(--color-primary);
  1301. border-radius: 7px;
  1302. // margin: 20px auto;
  1303. // line-height: 40px;
  1304. color: #fff;
  1305. text-align: center;
  1306. cursor: pointer;
  1307. }
  1308. .baseWrap {
  1309. padding: 20px;
  1310. background-color: #fff;
  1311. }
  1312. .baseWrapFixed {
  1313. top: 105px;
  1314. left: 210px; // 205
  1315. position: fixed;
  1316. background-color: #fff;
  1317. width: calc(100% - 220px);
  1318. z-index: 100;
  1319. padding: 20px;
  1320. box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 3px 3px;
  1321. }
  1322. .left {
  1323. ::v-deep .el-checkbox {
  1324. padding: 8px 10px 7px 10px;
  1325. border-radius: 4px;
  1326. }
  1327. ::v-deep .el-checkbox .el-checkbox__inner {
  1328. border-radius: 50%;
  1329. border: 1px solid var(--color-primary);
  1330. width: 16px;
  1331. height: 16px;
  1332. &:after {
  1333. height: 8px;
  1334. left: 5px;
  1335. }
  1336. }
  1337. ::v-deep .el-checkbox__inner:hover {
  1338. background-color: var(--color-primary);
  1339. }
  1340. ::v-deep .el-checkbox.is-checked {
  1341. border-color: #fff;
  1342. color: #fff;
  1343. }
  1344. .payTitle {
  1345. display: flex;
  1346. flex-direction: row;
  1347. align-items: center;
  1348. font-size: 18px;
  1349. font-weight: 600;
  1350. color: #1a1a1a;
  1351. height: 25px;
  1352. margin-bottom: 15px;
  1353. p {
  1354. line-height: 25px;
  1355. }
  1356. .squrt {
  1357. width: 3px;
  1358. height: 16px;
  1359. background: var(--color-primary);
  1360. margin-right: 8px;
  1361. position: relative;
  1362. top: -1px;
  1363. border-radius: 2px;
  1364. }
  1365. .payContext {
  1366. color: var(--color-primary);
  1367. border: 1px solid var(--color-primary);
  1368. font-size: 14px;
  1369. line-height: 22px;
  1370. border-radius: 3px;
  1371. padding: 0 5px;
  1372. margin-left: 12px;
  1373. }
  1374. }
  1375. .checkWrap {
  1376. display: flex;
  1377. flex-direction: row;
  1378. justify-content: flex-start;
  1379. align-items: center;
  1380. .checkBtn.active {
  1381. border: 1px solid var(--color-primary);
  1382. }
  1383. .checkBtn {
  1384. position: relative;
  1385. background-color: #fefefe;
  1386. margin-right: 12px;
  1387. padding: 0 22px;
  1388. display: flex;
  1389. flex-direction: row;
  1390. align-items: center;
  1391. border-radius: 6px;
  1392. border: 1px solid #dfe8ec;
  1393. cursor: pointer;
  1394. height: 84px;
  1395. width: 251px;
  1396. overflow: hidden;
  1397. &:hover {
  1398. border: 1px solid var(--color-primary);
  1399. }
  1400. p {
  1401. height: 41px;
  1402. line-height: 41px;
  1403. }
  1404. .checkLeft {
  1405. width: 60px;
  1406. height: 60px;
  1407. margin-right: 16px;
  1408. img {
  1409. width: 100%;
  1410. }
  1411. }
  1412. .checkRight {
  1413. p {
  1414. height: 26px;
  1415. font-size: 19px;
  1416. font-weight: 600;
  1417. color: #1a1a1a;
  1418. line-height: 26px;
  1419. }
  1420. .checkSubTitle {
  1421. font-size: 14px;
  1422. font-weight: 400;
  1423. color: var(--color-primary);
  1424. line-height: 20px;
  1425. }
  1426. }
  1427. .checTriangle {
  1428. border-bottom: 44px solid var(--color-primary);
  1429. border-left: 44px solid transparent;
  1430. position: absolute;
  1431. right: 0;
  1432. bottom: 0;
  1433. width: 0;
  1434. height: 0;
  1435. img {
  1436. width: 19px;
  1437. height: 16px;
  1438. position: absolute;
  1439. top: 22px;
  1440. right: 5px;
  1441. }
  1442. }
  1443. }
  1444. // .checkBtn.disabled {
  1445. // cursor: not-allowed;
  1446. // color: #d9d9d9;
  1447. // background-color: #f2f2f2 !important;
  1448. // ::v-deep .el-checkbox__inner {
  1449. // background-color: #fff !important;
  1450. // border-color: #d9d9d9;
  1451. // color: #fff;
  1452. // &::after {
  1453. // border-color: #d9d9d9;
  1454. // }
  1455. // }
  1456. // &:hover {
  1457. // background-color: #f2f2f2 !important;
  1458. // color: #d9d9d9;
  1459. // ::v-deep .el-checkbox__inner {
  1460. // background-color: #fff !important;
  1461. // }
  1462. // }
  1463. // }
  1464. }
  1465. }
  1466. }
  1467. .coreList {
  1468. // margin: 14px;
  1469. }
  1470. </style>
  1471. <style lang="less" scoped>
  1472. ::v-deep .el-dialog__body {
  1473. padding: 15px 0 0;
  1474. }
  1475. .empty {
  1476. background-color: #fff;
  1477. padding-bottom: 20px;
  1478. }
  1479. </style>