payInfoDetail.vue 48 KB

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