teamBaseInfo.vue 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490
  1. <template>
  2. <div class="base-container">
  3. <div class="banseLeft">
  4. <div class="head">乐团基本信息:</div>
  5. <!-- <div class="num">乐团编号:dywh01</div> -->
  6. <el-form
  7. :model="topFrom"
  8. :inline="true"
  9. ref="topinfo"
  10. label-width="120px"
  11. >
  12. <!-- style="margin-left: 11px" -->
  13. <el-form-item
  14. label="所属分部"
  15. prop="section"
  16. :rules="[{ required: true, message: '所属分部不能为空' }]"
  17. >
  18. <el-select
  19. v-model.trim="topFrom.section"
  20. filterable
  21. :disabled="basdisabled"
  22. @change="changeSection"
  23. clearable
  24. >
  25. <el-option
  26. v-for="(item, index) in sectionList"
  27. :key="index"
  28. :label="item.name"
  29. :value="item.id"
  30. ></el-option>
  31. </el-select>
  32. </el-form-item>
  33. <el-form-item
  34. label="收费类型"
  35. prop="type"
  36. :rules="[{ required: true, message: '收费类型不能为空' }]"
  37. >
  38. <el-select
  39. v-model.trim="topFrom.type"
  40. filterable
  41. :disabled="basdisabled"
  42. clearable
  43. @change="changeType"
  44. >
  45. <el-option
  46. v-for="(item, index) in typeList"
  47. :key="index"
  48. :label="item.name"
  49. :value="item.id"
  50. ></el-option>
  51. </el-select>
  52. </el-form-item>
  53. <el-form-item
  54. label="收费模式"
  55. prop="courseViewType"
  56. :rules="[{ required: true, message: '收费模式不能为空' }]"
  57. >
  58. <el-select
  59. v-model.trim="topFrom.courseViewType"
  60. filterable
  61. :disabled="basdisabled"
  62. clearable
  63. >
  64. <el-option :label="item.label" :value="Number(item.value)" v-for="item in courseViewTypeList" :key="item.value" :disabled="checkCourseView(Number(item.value))"></el-option>
  65. <!-- <el-option label="AMR收费" :value="1"></el-option>
  66. <el-option label="会员收费" :value="2"></el-option> -->
  67. </el-select>
  68. </el-form-item>
  69. <el-form-item
  70. label="合作单位"
  71. prop="school"
  72. :rules="[{ required: true, message: '合作单位不能为空' }]"
  73. >
  74. <el-select
  75. v-model.trim="topFrom.school"
  76. :disabled="!topFrom.section || basdisabled"
  77. @change="chioseSchool"
  78. filterable
  79. clearable
  80. >
  81. <el-option
  82. v-for="(item, index) in cooperationList"
  83. :key="index"
  84. :label="item.name"
  85. :value="item.id"
  86. ></el-option>
  87. </el-select>
  88. </el-form-item>
  89. <el-form-item
  90. label="乐团主管"
  91. prop="teacher"
  92. :rules="[{ required: true, message: '乐团主管不能为空' }]"
  93. >
  94. <el-select
  95. v-model.trim="topFrom.teacher"
  96. :disabled="true"
  97. filterable
  98. clearable
  99. >
  100. <el-option
  101. v-for="(item, index) in educationList"
  102. :key="index"
  103. :label="item.realName"
  104. :value="item.userId"
  105. >
  106. <span style="float: left">{{ item.realName }}</span>
  107. <span style="float: right; color: #8492a6; font-size: 13px">{{
  108. String(item.userId)
  109. }}</span>
  110. </el-option>
  111. </el-select>
  112. </el-form-item>
  113. <el-form-item
  114. label="教学地点"
  115. prop="address"
  116. :rules="[{ required: true, message: '教学地点不能为空' }]"
  117. >
  118. <template #label>
  119. <p style="position: relative; display: inline-block">
  120. 教学地点
  121. <el-tooltip placement="top" popper-class="mTooltip">
  122. <div slot="content">
  123. 如果已生成课表,则会修改未上课时的教学点
  124. </div>
  125. <i
  126. class="el-icon-question"
  127. style="font-size: 18px; color: #f56c6c"
  128. ></i>
  129. </el-tooltip>
  130. </p>
  131. </template>
  132. <el-select
  133. v-model.trim="topFrom.address"
  134. filterable
  135. clearable
  136. :disabled="!topFrom.section || basdisabled"
  137. >
  138. <el-option
  139. v-for="(item, index) in addList"
  140. :key="index"
  141. :label="item.name"
  142. :value="item.id"
  143. ></el-option>
  144. </el-select>
  145. </el-form-item>
  146. <el-form-item
  147. label="乐团名称"
  148. prop="name"
  149. :rules="[{ required: true, message: '乐团名称不能为空' }]"
  150. >
  151. <el-input
  152. placeholder="请输入乐团名称"
  153. v-model.trim="topFrom.name"
  154. :disabled="basdisabled"
  155. ></el-input>
  156. </el-form-item>
  157. <el-form-item
  158. label="运营主管"
  159. prop="boss"
  160. :rules="[{ required: true, message: '运营主管不能为空' }]"
  161. >
  162. <el-select
  163. v-model.trim="topFrom.boss"
  164. :disabled="!topFrom.section || basdisabled"
  165. filterable
  166. clearable
  167. >
  168. <el-option
  169. v-for="item in bossList"
  170. :key="item.userId"
  171. :label="item.realName"
  172. :value="item.userId"
  173. >
  174. <span style="float: left">{{ item.realName }}</span>
  175. <span style="float: right; color: #8492a6; font-size: 13px">{{
  176. String(item.userId)
  177. }}</span>
  178. </el-option>
  179. </el-select>
  180. </el-form-item>
  181. <el-form-item label="衔接老师" prop="transactionTeacherId">
  182. <el-select
  183. v-model.trim="topFrom.transactionTeacherId"
  184. :disabled="!topFrom.section || basdisabled"
  185. filterable
  186. clearable
  187. >
  188. <el-option
  189. v-for="item in transactionList"
  190. :key="item.userId"
  191. :label="item.realName"
  192. :value="item.userId"
  193. >
  194. <span style="float: left">{{ item.realName }}</span>
  195. <span style="float: right; color: #8492a6; font-size: 13px">{{
  196. String(item.userId)
  197. }}</span>
  198. </el-option>
  199. </el-select>
  200. </el-form-item>
  201. <el-form-item label="维修技师" prop="repairUserId">
  202. <el-select
  203. v-model.trim="topFrom.repairUserId"
  204. :disabled="!topFrom.section || basdisabled"
  205. filterable
  206. clearable
  207. >
  208. <el-option
  209. v-for="(item, index) in technician"
  210. :key="index"
  211. :label="item.userName"
  212. :value="item.userId"
  213. >
  214. <span style="float: left">{{ item.realName }}</span>
  215. <span style="float: right; color: #8492a6; font-size: 13px">{{
  216. String(item.userId)
  217. }}</span>
  218. </el-option>
  219. </el-select>
  220. </el-form-item>
  221. <!-- <el-form-item
  222. label="预报名截止时间"
  223. prop="time"
  224. :rules="[{ required: true, message: '请输入预报名截止时间' }]"
  225. >
  226. <el-date-picker
  227. v-model.trim="topFrom.time"
  228. :disabled="basdisabled"
  229. type="date"
  230. value-format="yyyy-MM-dd"
  231. :picker-options="beginDate()"
  232. placeholder="选择日期"
  233. ></el-date-picker>
  234. </el-form-item> -->
  235. <el-form-item
  236. label="报名截止时间"
  237. prop="time"
  238. :rules="[{ required: true, message: '请输入报名截止时间' }]"
  239. >
  240. <el-date-picker
  241. v-model.trim="topFrom.time"
  242. :disabled="basdisabled"
  243. type="date"
  244. value-format="yyyy-MM-dd"
  245. :picker-options="beginDate()"
  246. placeholder="选择日期"
  247. ></el-date-picker>
  248. </el-form-item>
  249. <el-form-item
  250. label="预计开团时间"
  251. prop="startTime"
  252. :rules="[{ required: true, message: '请输入预计开团时间' }]"
  253. >
  254. <el-date-picker
  255. v-model.trim="topFrom.startTime"
  256. :disabled="basdisabled"
  257. type="date"
  258. value-format="yyyy-MM-dd"
  259. :picker-options="beginDate()"
  260. placeholder="选择日期"
  261. ></el-date-picker>
  262. </el-form-item>
  263. <el-form-item
  264. label="课酬结算标准"
  265. :rules="[{ required: true, message: '请选择课酬结算标准' }]"
  266. prop="salary"
  267. >
  268. <el-select
  269. v-model.trim="topFrom.salary"
  270. clearable
  271. :disabled="basdisabled"
  272. filterable
  273. >
  274. <el-option label="自定义课酬" value="TEACHER_DEFAULT"></el-option>
  275. <el-option label="标准课酬" value="GRADIENT_SALARY"></el-option>
  276. <!-- <el-option label="课堂课酬" value="CLASSROOM_SALARY"></el-option> -->
  277. </el-select>
  278. </el-form-item>
  279. <el-form-item label="机构类型" prop="ownershipType">
  280. <el-select
  281. v-model.trim="topFrom.ownershipType"
  282. :disabled="basdisabled"
  283. >
  284. <el-option label="自有" value="OWN"></el-option>
  285. <el-option label="三方" value="COOPERATION"></el-option>
  286. <!-- <el-option label="租赁"
  287. value="LEASE"></el-option>-->
  288. </el-select>
  289. </el-form-item>
  290. <!-- v-if="teamStatus == 'resetTeam' || teamStatus == 'teamList'" -->
  291. <el-form-item label="乐队指导" prop="head">
  292. <el-select
  293. v-model.trim="topFrom.head"
  294. filterable
  295. :disabled="!topFrom.section || basdisabled"
  296. clearable
  297. >
  298. <el-option
  299. v-for="(item, index) in teacherList"
  300. :key="index"
  301. :label="item.realName"
  302. :value="item.id"
  303. >
  304. <span style="float: left">{{ item.realName }}</span>
  305. <span style="float: right; color: #8492a6; font-size: 13px">{{
  306. String(item.id)
  307. }}</span>
  308. </el-option>
  309. </el-select>
  310. </el-form-item>
  311. <div class="head">乐团设置:</div>
  312. <el-form-item
  313. label="同步群消息"
  314. prop="homeworkPushFlag"
  315. label-width="200px"
  316. :rules="[{ required: true, message: '同步群消息不能为空' }]">
  317. <template #label>
  318. <p style="position: relative; display: inline-block">
  319. 开课后作业同步群消息
  320. <el-tooltip placement="top" popper-class="mTooltip">
  321. <div slot="content">
  322. 学员提交乐团课后作业时,群聊中是否发送作业提交消息
  323. </div>
  324. <i
  325. class="el-icon-question"
  326. style="font-size: 18px; color: #f56c6c"
  327. ></i>
  328. </el-tooltip>
  329. </p>
  330. </template>
  331. <el-switch
  332. v-model="topFrom.homeworkPushFlag"
  333. :disabled="basdisabled"
  334. :active-value="1"
  335. :inactive-value="0" >
  336. </el-switch>
  337. </el-form-item>
  338. <el-form-item
  339. label="是否显示免费课程"
  340. prop="memberCourseShowFlag"
  341. label-width="200px"
  342. :rules="[{ required: true, message: '是否显示免费课程不能为空' }]">
  343. <template #label>
  344. <p style="position: relative; display: inline-block">
  345. 是否显示免费课程
  346. <el-tooltip placement="top" popper-class="mTooltip">
  347. <div slot="content">
  348. 报名时是否显示免费赠送课程
  349. </div>
  350. <i
  351. class="el-icon-question"
  352. style="font-size: 18px; color: #f56c6c"
  353. ></i>
  354. </el-tooltip>
  355. </p>
  356. </template>
  357. <el-switch
  358. v-model="topFrom.memberCourseShowFlag"
  359. :disabled="basdisabled"
  360. :active-value="1"
  361. :inactive-value="0" >
  362. </el-switch>
  363. </el-form-item>
  364. <!-- <el-form-item label prop="isClass">
  365. <el-checkbox v-model.trim="topFrom.isClass" :disabled="basdisabled"
  366. >课堂课乐团</el-checkbox
  367. >
  368. </el-form-item> -->
  369. <br />
  370. <el-form-item label="" v-if="teamStatus == 'teamDraft'">
  371. <p style="color: red; padding-left: 50px">
  372. 修改【收费类型】会重置乐团声部与缴费信息
  373. </p>
  374. </el-form-item>
  375. </el-form>
  376. <div class="btnWrap">
  377. <!-- <div
  378. class="nextBtn"
  379. v-if="teamStatus == 'resetTeam'"
  380. v-permission="{
  381. child: 'musicGroup/update',
  382. parent: '/resetTeaming/teamBaseInfo',
  383. }"
  384. @click="resetSubmit"
  385. >
  386. 修改
  387. </div> -->
  388. <!-- 审批或者草稿的下一步 -->
  389. <div class="nextBtn" @click="gotoNext()" v-if="!basdisabled">
  390. {{ this.teamStatus == "teamDraft" ? "下一步" : "保存" }}
  391. </div>
  392. <div
  393. class="nextBtn"
  394. v-if="this.teamStatus == 'teamAudit'"
  395. @click="gotoNext()"
  396. >
  397. 下一步
  398. </div>
  399. </div>
  400. </div>
  401. </div>
  402. </template>
  403. <script>
  404. import {
  405. getType,
  406. getTeamBaseInfo,
  407. resetTeamBaseInfo,
  408. getEmployeeOrgan,
  409. getStudentList,
  410. musicGroupOpenPay,
  411. extensionPayment,
  412. extensionApplyExpire,
  413. findUserByRole,
  414. getTeacher,
  415. createTeam,
  416. } from "@/api/buildTeam";
  417. import { findTechnician } from "@/api/repairManager";
  418. import dayjs from "dayjs";
  419. import merge from "webpack-merge";
  420. import { queryByOrganId, getSchool } from "@/api/systemManage";
  421. import qrCode from "@/components/QrCode/index";
  422. import { classStatus,courseViewTypeList } from "@/utils/searchArray";
  423. import { vaildStudentUrl, vaildTeacherUrl } from "@/utils/validate";
  424. import mergeMusic from "../components/merge-music";
  425. export default {
  426. components: {
  427. mergeMusic,
  428. qrCode,
  429. },
  430. name: "teamBaseInfo",
  431. props: ["getTeamList"],
  432. data() {
  433. return {
  434. classStatus,
  435. courseViewTypeList,
  436. organId: null,
  437. topFrom: {
  438. type: "", // 收费类型
  439. section: "", //所属分部
  440. courseViewType: "", // 收费模式
  441. school: "", // 合作单位
  442. teacher: "", // 乐团主管
  443. name: "", //乐团名称
  444. boss: "", // 运营主管
  445. time: "", // 报名截止时间
  446. startClass: [], // 招生年级起始
  447. address: "", // 教学地点
  448. salary: "", // 收费模式
  449. head: "",
  450. homeworkPushFlag: 1, // 是否同步群消息
  451. memberCourseShowFlag: 0,
  452. isClass: false, //是否为课堂课
  453. startTime: "",
  454. feeType: null,
  455. paymentPattern: "", // 缴费方式
  456. paymentValid: [], // 缴费有效期
  457. paymentValidStartDate: null, // 缴费有效期开始
  458. paymentValidEndDate: null, // 缴费有效期结束
  459. ownershipType: "OWN", // 合作机构类型
  460. repairUserId: null, // 维修技师
  461. transactionTeacherId: null, // 衔接老师
  462. },
  463. baseInfo: {},
  464. money: 580,
  465. orderInfo: {
  466. marketPrice: 0, // 原价总金额
  467. referencePrice: 0, // 现价总金额
  468. }, // 金额列表,金额计算
  469. sectionList: [], // 分部列表
  470. typeList: [], // 收费类型列表
  471. cooperationList: [], // 教学点列表
  472. teacherList: [], // 获取老师列表
  473. educationList: [], // 乐团主管
  474. bossList: [],
  475. transactionList: [],
  476. addList: [], // 教学地点列表
  477. activeTeam: [],
  478. teamid: "",
  479. teamStatus: "",
  480. isInit: false,
  481. technician: [],
  482. basdisabled: false,
  483. // 整合报名中
  484. paymentExpireDate: "",
  485. applyExpireDate: null,
  486. mergeVisible: false,
  487. team_status: "",
  488. paymentNum: 0,
  489. paymentStatus: false,
  490. paymentForm: {
  491. paymentExpireDate: null,
  492. // feeType: null
  493. },
  494. paymentRules: {
  495. paymentExpireDate: [
  496. { required: true, message: "请设置缴费截止日期", trigger: "blur" },
  497. ],
  498. },
  499. extendForm: {
  500. expireDate: null,
  501. },
  502. extendRule: {
  503. expireDate: [
  504. { required: true, message: "请选择延长时间", trigger: "change" },
  505. ],
  506. },
  507. isPay: false,
  508. extendPaymentStatus: false, // 延长缴费
  509. codeStatus: false,
  510. qrCodeUrl: null,
  511. codeTitle: null,
  512. teamid: "",
  513. };
  514. },
  515. created() {},
  516. mounted() {
  517. if (this.$route.query.type == "newTeam") {
  518. this.onReset();
  519. }
  520. this.init();
  521. },
  522. activated() {
  523. if (
  524. (this.teamid && this.teamid != this.$route.query.id) ||
  525. this.teamStatus != this.$route.query.type
  526. ) {
  527. this.init();
  528. }
  529. if (this.$route.query.clear == "true") {
  530. this.onReset();
  531. }
  532. if (this.teamStatus == "newTeam") {
  533. this.$store.dispatch("buildIndex", 0);
  534. }
  535. if (this.teamStatus != "newTeam") {
  536. this.$store.dispatch("draftIndex", 0);
  537. }
  538. this.teamStatus = this.$route.query.type;
  539. if (
  540. this.teamStatus == "look" ||
  541. this.teamStatus == "teamAudit" ||
  542. this.teamStatus == "feeAudit" ||
  543. this.teamStatus == "APPLY" ||
  544. this.teamStatus == "PAY"
  545. ) {
  546. this.basdisabled = true;
  547. } else {
  548. this.basdisabled = false;
  549. }
  550. },
  551. deactivated() {},
  552. // async beforeDestroy() {
  553. // await this.setStore();
  554. // // await new Promise((res, err) => {
  555. // // setTimeout(() => {
  556. // // res();
  557. // // }, 1000);
  558. // // });
  559. // },
  560. methods: {
  561. async setStore(str) {
  562. if (this.teamid) {
  563. let loadash = this.$helpers.lodash;
  564. let sotrage = JSON.parse(localStorage.getItem(`${this.teamid}base`));
  565. // console.log(sotrage,this.topFrom)
  566. if (!loadash.isEqual(this.topFrom, sotrage) && sotrage) {
  567. // 提示保存
  568. return await this.$confirm("已修改当前页面数据是否保存", "提示", {
  569. confirmButtonText: "是",
  570. cancelButtonText: "否",
  571. type: "warning",
  572. closeOnClickModal: false,
  573. distinguishCancelAndClose: true,
  574. })
  575. .then(async () => {
  576. // localStorage.setItem(
  577. // `${this.teamid}base`,
  578. // JSON.stringify(this.topFrom)
  579. // );
  580. let b = await this.gotoNext(str);
  581. console.log(b);
  582. return b;
  583. })
  584. .catch((e) => {
  585. console.log(e);
  586. if (e == "close") {
  587. return false;
  588. } else {
  589. localStorage.removeItem(`${this.teamid}base`);
  590. return true;
  591. }
  592. // localStorage.setItem(`${this.teamid}base`,JSON.stringify(this.topFrom));
  593. });
  594. } else {
  595. return true;
  596. // localStorage.setItem(`${this.teamid}base`,JSON.stringify(this.topFrom));
  597. }
  598. } else {
  599. localStorage.setItem(`newTeambase`, JSON.stringify(this.topFrom));
  600. return true;
  601. }
  602. },
  603. //|| this.teamStatus === 'teamAudit'
  604. isNotEditing: function () {
  605. return !(
  606. this.teamStatus === "teamDraft" ||
  607. this.teamStatus === "newTeam" ||
  608. this.teamStatus === "teamList"
  609. );
  610. },
  611. changeFeeType(val) {},
  612. changePaymentValidStartDate(val) {
  613. if (val) {
  614. this.$set(this.topFrom, "paymentValidEndDate", "");
  615. }
  616. },
  617. changePaymentPattern(val) {
  618. // if (val === 2) {
  619. // // this.topFrom.paymentValidStartDate = null
  620. // this.$set(this.topFrom, 'paymentValidEndDate', '')
  621. // }
  622. },
  623. beginDate(end) {
  624. return {
  625. firstDayOfWeek: 1,
  626. disabledDate(time) {
  627. if (end) {
  628. return new Date(end).getTime() - 86400000 >= time.getTime();
  629. } else {
  630. return time.getTime() + 86400000 < Date.now();
  631. //开始时间不选时,结束时间最大值小于等于当天
  632. }
  633. },
  634. };
  635. },
  636. init() {
  637. this.isInit = true;
  638. if (this.$route.query.id) {
  639. this.teamid = this.$route.query.id;
  640. }
  641. this.teamStatus = this.$route.query.type;
  642. this.team_status = this.$route.query.team_status;
  643. // if (this.teamStatus == "newTeam") {
  644. // this.$store.dispatch("buildIndex", 0);
  645. // }
  646. // if (this.teamStatus != "newTeam") {
  647. // this.$store.dispatch("draftIndex", 0);
  648. // }
  649. // 传过来的乐团信息
  650. this.activeTeam = this.getTeamList;
  651. if (
  652. this.teamStatus == "look" ||
  653. this.teamStatus == "teamAudit" ||
  654. this.teamStatus == "feeAudit" ||
  655. this.teamStatus == "teamCanceled"
  656. ) {
  657. this.basdisabled = true;
  658. } else {
  659. this.basdisabled = false;
  660. }
  661. if (this.$route.query.id) {
  662. // 单团修改
  663. this.teamid = this.$route.query.id;
  664. let sotrage = JSON.parse(
  665. localStorage.getItem(`${this.$route.query.id}base`)
  666. );
  667. if (!sotrage?.section) {
  668. getTeamBaseInfo({ musicGroupId: this.teamid }).then((res) => {
  669. if (res.code == 200) {
  670. // if (this.$listeners.getBaseInfo) {
  671. // this.$listeners.getBaseInfo(res.data);
  672. // }
  673. // 头部
  674. this.setBase(res);
  675. // // 循环缴费月
  676. // this.payList.chioseMonth = res.data.months;
  677. if (res.data.musicGroup.organId) {
  678. // 获取员工
  679. this.getBaseList(res.data.musicGroup.organId);
  680. }
  681. this.$emit("getBaseInfo", res.data);
  682. }
  683. });
  684. } else {
  685. this.topFrom = sotrage;
  686. // this.applyExpireDate = sotrage.time;
  687. // this.paymentExpireDate = Storage.paymentExpireDate;
  688. if (this.topFrom?.section) {
  689. // 获取员工
  690. this.getBaseList(this.topFrom.section);
  691. }
  692. }
  693. } else {
  694. // 如果是新建团
  695. let sotrage = JSON.parse(localStorage.getItem(`newTeambase`));
  696. sotrage ? (this.topFrom = sotrage) : this.topFrom;
  697. if (this.topFrom?.section) {
  698. // 获取员工
  699. this.getBaseList(this.topFrom.section);
  700. }
  701. }
  702. this.getStudentStatus();
  703. this.$emit("getName", this.topFrom?.name);
  704. getEmployeeOrgan().then((res) => {
  705. if (res.code == 200) {
  706. this.sectionList = res.data;
  707. }
  708. });
  709. // 2.获取收费类型选项卡
  710. getType({ rows: 1000 }).then((res) => {
  711. if (res.code == 200) {
  712. this.typeList = res.data.rows;
  713. }
  714. });
  715. // 缓存设置时的状态
  716. },
  717. changeSection(val) {
  718. // 修改分部的时候 重置运营主管 重置乐团主管 重置乐队指导 合作单位 教学点
  719. this.topFrom.teacher = "";
  720. this.topFrom.boss = "";
  721. this.topFrom.head = "";
  722. this.topFrom.school = "";
  723. this.topFrom.address = "";
  724. // 发请求 根据分部id 查询所有员工
  725. this.getBaseList(val);
  726. },
  727. async getBaseList(val) {
  728. // 合作单位
  729. queryByOrganId({ organId: val }).then((res) => {
  730. if (res.code == 200) {
  731. this.cooperationList = res.data;
  732. }
  733. });
  734. // 教学点=>学校
  735. getSchool({ organId: val }).then((res) => {
  736. if (res.code == 200) {
  737. this.addList = res.data;
  738. }
  739. });
  740. // 获取维修技师
  741. findTechnician().then((res) => {
  742. if (res.code == 200) {
  743. this.technician = res.data;
  744. }
  745. });
  746. // 获取乐团主管
  747. try {
  748. const ruselt = await findUserByRole({
  749. organId: val,
  750. });
  751. this.educationList = ruselt?.data?.EDUCATION;
  752. this.bossList = ruselt?.data?.TEAM_TEACHER;
  753. this.transactionList = ruselt?.data?.TRANSACTION;
  754. } catch (e) {
  755. console.log(e);
  756. }
  757. // 获取运营主管
  758. // try {
  759. // const ruselt = await findUserByRole({
  760. // organId: val,
  761. // employeeRole: "TEAM_TEACHER",
  762. // });
  763. // this.bossList = ruselt.data;
  764. // } catch (e) {
  765. // console.log(e);
  766. // }
  767. // 获取指导老师
  768. getTeacher({ organId: val }).then((res) => {
  769. if (res.code == 200) {
  770. this.teacherList = res.data;
  771. }
  772. });
  773. },
  774. chioseSchool(val) {
  775. // 清除教学点
  776. this.topFrom.teacher = "";
  777. if (val) {
  778. console.log(this.cooperationList);
  779. this.cooperationList.forEach((item) => {
  780. if (item.id == val) {
  781. console.log(item);
  782. this.$set(this.topFrom, "teacher", item.educationUserId);
  783. // this.topFrom.teacher = item.educationUserId;
  784. }
  785. });
  786. }
  787. console.log("chioseSchool", this.topFrom.teacher);
  788. },
  789. async gotoNext(str) {
  790. let tempStatus;
  791. return new Promise((resolve, reject) => {
  792. this.$refs["topinfo"].validate(async (valid, object) => {
  793. if (!valid) {
  794. this.$message.error("请填写建团必要参数");
  795. // return false
  796. resolve(false);
  797. } else {
  798. // 判断一下是否勾选了课程类型而没有输入金额
  799. // 验证通过
  800. this.$store.dispatch("topinfo", this.topFrom);
  801. if (this.teamStatus == "teamAudit") {
  802. // 获取数据提交
  803. this.$emit("handleClick", { name: "2" });
  804. } else {
  805. this.$emit("getName", this.topFrom.name);
  806. tempStatus = await this.resetSubmit(str);
  807. console.log(tempStatus, "tempStatus");
  808. resolve(tempStatus);
  809. }
  810. }
  811. });
  812. });
  813. },
  814. async resetSubmit(str) {
  815. return new Promise((resolve, reject) => {
  816. this.$refs["topinfo"].validate(async (valid, object) => {
  817. if (!valid) {
  818. this.$message.error("请填写必要参数");
  819. reject();
  820. } else {
  821. let status = null;
  822. // 1.resetTeam 乐团修改
  823. // 2.newTeam 新建乐团
  824. // 3.teamList 跨团修改
  825. // 4.teamDraft 乐团草稿
  826. switch (this.teamStatus) {
  827. case "resetTeam": {
  828. status = "PROGRESS";
  829. break;
  830. }
  831. case "newTeam": {
  832. status = "DRAFT";
  833. break;
  834. }
  835. case "teamList": {
  836. status = null;
  837. break;
  838. }
  839. case "teamDraft": {
  840. status = "DRAFT";
  841. break;
  842. }
  843. }
  844. let obj = {};
  845. // topFrom.ownershipType
  846. // 修改 合并对象
  847. obj.musicGroup = {
  848. settlementType: this.topFrom.salary,
  849. applyExpireDate: dayjs(this.topFrom.time).format(
  850. "YYYY-MM-DD HH:mm:ss"
  851. ),
  852. chargeTypeId: this.topFrom.type,
  853. cooperationOrganId: this.topFrom.school,
  854. courseViewType: this.topFrom.courseViewType,
  855. teamTeacherId: this.topFrom.boss,
  856. // educationalTeacherId: this.topFrom.teacher,
  857. // chioseSchool
  858. enrollClasses: this.topFrom.startClass.join(","),
  859. name: this.topFrom.name,
  860. paymentPattern: this.topFrom.paymentPattern,
  861. paymentValidStartDate: this.topFrom.paymentValidStartDate
  862. ? dayjs(this.topFrom.paymentValidStartDate).format("YYYY-MM-DD")
  863. : this.topFrom.paymentValidStartDate,
  864. paymentValidEndDate: this.topFrom.paymentValidEndDate
  865. ? dayjs(this.topFrom.paymentValidEndDate).format("YYYY-MM-DD")
  866. : this.topFrom.paymentValidEndDate,
  867. organId: this.topFrom.section,
  868. // paymentMonths:obj.months 有待确认
  869. schoolId: this.topFrom.address,
  870. id: this.teamid,
  871. directorUserId: this.topFrom.head,
  872. isClassroomLessons: this.topFrom.isClass,
  873. status,
  874. expectStartGroupDate: this.topFrom.startTime,
  875. ownershipType: this.topFrom.ownershipType,
  876. repairUserId: this.topFrom.repairUserId || null,
  877. feeType: this.topFrom.feeType,
  878. transactionTeacherId: this.topFrom.transactionTeacherId,
  879. homeworkPushFlag: this.topFrom.homeworkPushFlag,
  880. memberCourseShowFlag: this.topFrom.memberCourseShowFlag,
  881. };
  882. // obj.musicGroupPaymentEntities = [];
  883. // createTeam
  884. if (this.teamStatus != "newTeam") {
  885. return await resetTeamBaseInfo(obj).then(async (res) => {
  886. if (res.code == 200) {
  887. localStorage.setItem(
  888. `${this.teamid}base`,
  889. JSON.stringify(this.topFrom)
  890. );
  891. this.$emit("getBaseInfo");
  892. if (this.teamStatus == "teamDraft") {
  893. this.$message.success("保存成功");
  894. if (!str) {
  895. this.$emit("handleClick", { name: "2" });
  896. }
  897. resolve(true);
  898. // 跳到第二页
  899. } else {
  900. this.$message.success("修改乐团成功");
  901. // this.$router.push({ path: '/teamLists', query: { id: this.teamid, name: this.topFrom.name } })
  902. }
  903. resolve(true);
  904. }
  905. });
  906. } else {
  907. // 发送建团申请 成功后跳到第二页
  908. createTeam(obj).then((res) => {
  909. if (res.code == 200) {
  910. // this.$message.success('建团成功,请设置声部信息')
  911. // this.$emit("chiosetab", 1);
  912. const h = this.$createElement;
  913. this.$msgbox({
  914. title: "提示",
  915. message: h("p", null, [
  916. h("p", null, "新乐团基础信息创建完成"),
  917. h("p", null, "请设置声部信息"),
  918. ]),
  919. type: "warning",
  920. confirmButtonText: "是",
  921. cancelButtonText: "否",
  922. showCancelButton: true,
  923. customClass: "messageBox-prompt-test",
  924. })
  925. .then(() => {
  926. this.$router.push(
  927. {
  928. query: merge(this.$route.query, {
  929. type: "teamDraft",
  930. id: res.data,
  931. team_status: "DRAFT",
  932. }),
  933. },
  934. (router) => {
  935. console.log(router);
  936. router.meta.title = "乐团编辑中";
  937. }
  938. );
  939. this.$emit("getName", this.topFrom.name);
  940. this.$emit("handleClick", { name: "2" });
  941. return true;
  942. })
  943. .catch(() => {
  944. this.$router.push(
  945. {
  946. query: merge(this.$route.query, {
  947. type: "teamDraft",
  948. id: res.data,
  949. team_status: "DRAFT",
  950. }),
  951. },
  952. (router) => {
  953. console.log(router);
  954. router.meta.title = "乐团编辑中";
  955. }
  956. );
  957. this.$emit("getName", this.topFrom.name);
  958. this.init();
  959. return true;
  960. });
  961. }
  962. });
  963. }
  964. // 发请求
  965. }
  966. });
  967. });
  968. },
  969. changeApplyTime(val) {
  970. this.$set(this.topFrom, "paymentValidStartDate", "");
  971. this.$set(this.topFrom, "paymentValidEndDate", "");
  972. // this.topFrom.paymentValidStartDate = ''
  973. // this.topFrom.paymentValidEndDate = ''
  974. },
  975. onReset() {
  976. this.topFrom = {
  977. type: "", // 收费类型
  978. section: "", //所属分部
  979. school: "", // 合作单位
  980. courseViewType: "",
  981. teacher: "", // 乐团主管
  982. name: "", //乐团名称
  983. boss: "", // 运营主管
  984. time: "", // 报名截止时间
  985. startClass: [], // 招生年级起始
  986. paymentValid: [], // 缴费有效期时间起始
  987. address: "", // 教学地点
  988. salary: "", // 收费模式
  989. head: "",
  990. paymentPattern: "", // 缴费方式
  991. isClass: false, //是否为课堂课
  992. startTime: "",
  993. ownershipType: "OWN", // 合作机构类型
  994. feeType: null,
  995. homeworkPushFlag: 1,
  996. memberCourseShowFlag: 0
  997. };
  998. this.$refs["topinfo"].resetFields();
  999. },
  1000. onGoHome() {
  1001. if (this.paymentNum <= 0) {
  1002. this.$message.error("当前缴费人数为0,无法开团");
  1003. return;
  1004. }
  1005. this.$confirm(`是否确认开团?`, "提示", {
  1006. confirmButtonText: "确定",
  1007. cancelButtonText: "取消",
  1008. type: "warning",
  1009. })
  1010. .then(() => {
  1011. musicGroupFound({
  1012. musicGroupId: this.$route.query.id,
  1013. }).then((res) => {
  1014. if (res.code == 200) {
  1015. // let query = this.$route.query;
  1016. // this.$message.success("开启成功");
  1017. // this.$router.push({
  1018. // path: "/teamList",
  1019. // query: {
  1020. // ...query,
  1021. // },
  1022. // });
  1023. this.onCancel();
  1024. }
  1025. });
  1026. })
  1027. .catch(() => {});
  1028. },
  1029. payStart() {
  1030. this.paymentStatus = true;
  1031. },
  1032. getStudentStatus() {
  1033. let obj = {
  1034. musicGroupId: this.teamid,
  1035. page: 1,
  1036. rows: 9999,
  1037. };
  1038. if (!this.teamid) return;
  1039. getStudentList(obj).then((res) => {
  1040. if (res.code == 200) {
  1041. res.data.rows.forEach((item) => {
  1042. // '未开启缴费', '开启缴费', '已缴费'
  1043. if (item.paymentStatus == 2) {
  1044. this.paymentNum += 1;
  1045. }
  1046. });
  1047. // this.rightList = res.data.rows;
  1048. // this.rules.total = res.data.total;
  1049. // return res;
  1050. }
  1051. });
  1052. },
  1053. payDate() {
  1054. let self = this;
  1055. return {
  1056. firstDayOfWeek: 1,
  1057. disabledDate(time) {
  1058. if (self.applyExpireDate) {
  1059. return (
  1060. time.getTime() <=
  1061. new Date(self.applyExpireDate.replace(/-/g, "/")).getTime()
  1062. );
  1063. } else {
  1064. return false;
  1065. }
  1066. },
  1067. };
  1068. },
  1069. onStartPayment(formName) {
  1070. // 开启缴费
  1071. this.$refs[formName].validate((valid) => {
  1072. if (valid) {
  1073. musicGroupOpenPay({
  1074. musicGroupId: this.teamid,
  1075. expireDate: this.paymentForm.paymentExpireDate,
  1076. // feeType: this.paymentForm.feeType
  1077. }).then((res) => {
  1078. if (res.code == 200) {
  1079. this.$message.success("开启成功");
  1080. this.paymentStatus = false;
  1081. this.$store.dispatch("delVisitedViews", this.$route);
  1082. this.$router.push({ path: "/teamList" });
  1083. // this.$router.push({
  1084. // path: "/business/resetTeaming",
  1085. // query: {
  1086. // status: "PAY",
  1087. // id: this.$route.query.id,
  1088. // name: this.$route.query.name,
  1089. // },
  1090. // });
  1091. // this.team_status = "PAY";
  1092. // this.paymentExpireDate = this.paymentForm.paymentExpireDate;
  1093. // this.getList();
  1094. }
  1095. });
  1096. } else {
  1097. return false;
  1098. }
  1099. });
  1100. },
  1101. applyDate() {
  1102. let self = this;
  1103. return {
  1104. firstDayOfWeek: 1,
  1105. disabledDate(time) {
  1106. if (self.paymentExpireDate) {
  1107. return (
  1108. time.getTime() >
  1109. new Date(self.paymentExpireDate.replace(/-/g, "/")).getTime()
  1110. );
  1111. } else {
  1112. return false;
  1113. }
  1114. },
  1115. };
  1116. },
  1117. extendTime(isPay) {
  1118. this.isPay = isPay;
  1119. if (isPay) {
  1120. // 点击的延长缴费
  1121. this.extendForm.expireDate = this.paymentExpireDate;
  1122. } else {
  1123. // 点击的延长报名
  1124. this.extendForm.expireDate = this.applyExpireDate;
  1125. }
  1126. this.extendPaymentStatus = true;
  1127. },
  1128. onExtendPayment(formName, isPay) {
  1129. this.$refs[formName].validate((valid) => {
  1130. if (valid) {
  1131. if (!isPay) {
  1132. extensionApplyExpire({
  1133. musicGroupId: this.teamid,
  1134. expireDate: this.extendForm.expireDate,
  1135. }).then((res) => {
  1136. if (res.code == 200) {
  1137. this.$message.success("延长报名成功");
  1138. this.extendPaymentStatus = false;
  1139. getTeamBaseInfo({ musicGroupId: this.teamid }).then((res) => {
  1140. if (res.code == 200) {
  1141. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  1142. this.setBase(res);
  1143. }
  1144. });
  1145. } else {
  1146. this.$message.error(res.msg);
  1147. }
  1148. });
  1149. } else {
  1150. extensionPayment({
  1151. musicGroupId: this.teamid,
  1152. expireDate: this.extendForm.expireDate,
  1153. }).then((res) => {
  1154. if (res.code == 200) {
  1155. this.$message.success("延长缴费成功");
  1156. this.extendPaymentStatus = false;
  1157. getTeamBaseInfo({ musicGroupId: this.teamid }).then((res) => {
  1158. if (res.code == 200) {
  1159. this.paymentExpireDate =
  1160. res.data.musicGroup.paymentExpireDate;
  1161. }
  1162. });
  1163. } else {
  1164. this.$message.error(res.msg);
  1165. }
  1166. });
  1167. }
  1168. }
  1169. });
  1170. },
  1171. onCreateQRCode(type) {
  1172. // 生成报名二维码
  1173. let id = this.teamid;
  1174. this.codeStatus = true;
  1175. if (type == "payment") {
  1176. this.codeTitle = "学员报名链接";
  1177. this.qrCodeUrl = vaildStudentUrl() + "/#/login?musicGroupId=" + id;
  1178. } else if (type == "detail") {
  1179. let teamName = this.$route.query.name;
  1180. this.codeTitle = "报名缴费详情";
  1181. this.qrCodeUrl =
  1182. vaildTeacherUrl() +
  1183. "/#/order?musicGroupId=" +
  1184. id +
  1185. "&musicGroupName=" +
  1186. teamName;
  1187. } else if (type == "rePayment") {
  1188. this.codeTitle = "学生报名链接(无乐器)";
  1189. this.qrCodeUrl =
  1190. vaildStudentUrl() + "/#/login?musicGroupId=" + id + "&instrument=1";
  1191. }
  1192. },
  1193. gotoStudentList() {
  1194. this.$router.push({
  1195. query: merge(this.$route.query, { tabrouter: 7 }),
  1196. });
  1197. // this.$router.replace({query:{...this.$route.query,tabrouter:7}})
  1198. },
  1199. setBase(res) {
  1200. this.topFrom.name = res.data.musicGroup.name;
  1201. this.$emit("getName", this.topFrom.name);
  1202. this.topFrom.time = res.data.musicGroup.applyExpireDate;
  1203. this.topFrom.type = res.data.musicGroup.chargeTypeId;
  1204. this.topFrom.startClass = res.data.musicGroup.enrollClasses.split(",");
  1205. this.topFrom.paymentPattern = res.data.musicGroup.paymentPattern;
  1206. this.topFrom.paymentValidStartDate =
  1207. res.data.musicGroup.paymentValidStartDate;
  1208. this.topFrom.paymentValidEndDate =
  1209. res.data.musicGroup.paymentValidEndDate;
  1210. this.topFrom.section = res.data.musicGroup.organId;
  1211. this.topFrom.courseViewType = res.data.musicGroup.courseViewType;
  1212. this.topFrom.school = res.data.musicGroup.cooperationOrganId;
  1213. this.topFrom.teacher = res.data.musicGroup.educationalTeacherId;
  1214. this.topFrom.boss = res.data.musicGroup.teamTeacherId;
  1215. this.topFrom.address = res.data.musicGroup.schoolId;
  1216. this.topFrom.salary = res.data.musicGroup.settlementType;
  1217. this.topFrom.head = res.data.musicGroup.directorUserId
  1218. ? res.data.musicGroup.directorUserId
  1219. : null;
  1220. this.topFrom.isClass = res.data.musicGroup.isClassroomLessons;
  1221. this.topFrom.startTime = res.data.musicGroup.expectStartGroupDate;
  1222. this.topFrom.ownershipType = res.data.musicGroup.ownershipType;
  1223. this.topFrom.repairUserId = res.data.musicGroup.repairUserId
  1224. ? res.data.musicGroup.repairUserId
  1225. : null;
  1226. this.topFrom.feeType = res.data.musicGroup.feeType
  1227. ? res.data.musicGroup.feeType
  1228. : null;
  1229. this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
  1230. this.applyExpireDate = res.data.musicGroup.applyExpireDate;
  1231. this.topFrom.transactionTeacherId =
  1232. res.data.musicGroup.transactionTeacherId||'';
  1233. this.topFrom.homeworkPushFlag = res.data.musicGroup.homeworkPushFlag
  1234. this.topFrom.memberCourseShowFlag = res.data.musicGroup.memberCourseShowFlag
  1235. localStorage.setItem(`${this.teamid}base`, JSON.stringify(this.topFrom));
  1236. },
  1237. changeType(val) {
  1238. if (val) {
  1239. localStorage.removeItem(`${this.teamid}sound`);
  1240. }
  1241. },
  1242. checkCourseView(val){
  1243. if(this.teamStatus == "newTeam" || this.teamStatus == "teamDraft"){
  1244. return false
  1245. }else{
  1246. if(this.topFrom.courseViewType == 0 || this.topFrom.courseViewType== 1){
  1247. // val ==2
  1248. return false
  1249. }else{
  1250. return val == 0 || val==1
  1251. }
  1252. }
  1253. },
  1254. },
  1255. computed: {
  1256. startClassString() {
  1257. return this.topFrom.startClass
  1258. .map((item) => {
  1259. for (let i in this.classStatus) {
  1260. if (item == this.classStatus[i].value) {
  1261. return this.classStatus[i].label;
  1262. }
  1263. }
  1264. // return this.classStatus[item]
  1265. })
  1266. .join(",");
  1267. },
  1268. showNext() {
  1269. const teamStatus = this.teamStatus;
  1270. return (
  1271. teamStatus == "newTeam" ||
  1272. teamStatus == "teamDraft" ||
  1273. teamStatus == "teamAudit" ||
  1274. teamStatus == "feeAudit"
  1275. );
  1276. },
  1277. },
  1278. };
  1279. </script>
  1280. <style lang="scss" >
  1281. .messageBox-prompt-test {
  1282. .el-message-box__status {
  1283. top: 25% !important;
  1284. }
  1285. }
  1286. .base-container {
  1287. overflow: auto;
  1288. // display: flex;
  1289. // flex-direction: row;
  1290. // justify-content: flex-start;
  1291. // flex-wrap: nowrap;
  1292. font-size: 14px;
  1293. color: #444;
  1294. // width: fill-available;
  1295. .banseLeft {
  1296. // width: 1050px;
  1297. .head {
  1298. height: 48px;
  1299. line-height: 48px;
  1300. background-color: #edeef0;
  1301. font-size: 14px;
  1302. font-weight: bold;
  1303. color: #444;
  1304. padding: 0 11px;
  1305. margin-bottom: 20px;
  1306. }
  1307. .noMargin.head {
  1308. margin-bottom: 0;
  1309. }
  1310. .num {
  1311. padding: 15px 11px;
  1312. }
  1313. .checkRow {
  1314. min-width: 1200px;
  1315. padding-left: 28px;
  1316. display: flex;
  1317. flex-direction: row;
  1318. justify-content: flex-start;
  1319. flex-wrap: nowrap;
  1320. overflow: auto;
  1321. .el-checkbox {
  1322. line-height: 72px;
  1323. width: 120px;
  1324. }
  1325. .inputWrap {
  1326. line-height: 72px;
  1327. font-size: 14px;
  1328. color: #777;
  1329. margin-left: 65px;
  1330. input {
  1331. // border: none;
  1332. // width: 80px;
  1333. // margin-right: 10px;
  1334. // outline: none;
  1335. }
  1336. }
  1337. .inputWrap.rightFirst {
  1338. margin-left: 245px;
  1339. }
  1340. .textWrap {
  1341. display: flex;
  1342. flex-direction: row;
  1343. justify-content: flex-start;
  1344. font-size: 14px;
  1345. color: #777;
  1346. align-items: center;
  1347. span {
  1348. color: #f97215;
  1349. }
  1350. }
  1351. .selectWrap {
  1352. font-size: 14px;
  1353. padding-top: 5px;
  1354. margin-left: 100px;
  1355. margin-right: 52px;
  1356. .rowSelect {
  1357. .el-input__inner {
  1358. min-height: 69px;
  1359. }
  1360. }
  1361. }
  1362. .chioseList {
  1363. display: flex;
  1364. flex-direction: row;
  1365. justify-content: flex-start;
  1366. align-items: center;
  1367. font-size: 14px;
  1368. color: #777;
  1369. margin-left: 64px;
  1370. .chioseItem {
  1371. width: 80px;
  1372. height: 30px;
  1373. border-radius: 15px;
  1374. border: 1px solid #979797;
  1375. margin-right: 10px;
  1376. line-height: 30px;
  1377. text-align: center;
  1378. cursor: pointer;
  1379. }
  1380. .chioseItem.active {
  1381. background-color: #14928a;
  1382. border: 1px solid #14928a;
  1383. color: #fff;
  1384. }
  1385. }
  1386. // &:nth-child(even) {
  1387. // background-color: #c6cbd4;
  1388. // input {
  1389. // background-color: #c6cbd4;
  1390. // }
  1391. // }
  1392. }
  1393. }
  1394. .btnWrap {
  1395. margin-top: 30px;
  1396. }
  1397. .el-checkbox__input.is-checked + .el-checkbox__label {
  1398. color: #606266;
  1399. }
  1400. .subTitle {
  1401. // width: 1203px;
  1402. height: 40px;
  1403. line-height: 40px;
  1404. background-color: #fefceb;
  1405. padding: 0 25px;
  1406. box-sizing: border-box;
  1407. font-size: 16px;
  1408. color: #474747;
  1409. margin-bottom: 20px;
  1410. }
  1411. .chioseWrap {
  1412. margin-bottom: 30px;
  1413. display: flex;
  1414. flex-direction: row;
  1415. padding: 0 25px;
  1416. p {
  1417. width: 80px;
  1418. font-size: 14px;
  1419. // margin-right: 30px;
  1420. }
  1421. }
  1422. .classCheckBox {
  1423. margin-right: 10px;
  1424. }
  1425. }
  1426. </style>
  1427. <style scoped lang="scss">
  1428. /deep/.el-date-editor {
  1429. width: 180px !important;
  1430. }
  1431. /deep/.el-checkbox {
  1432. margin-left: 15px !important;
  1433. }
  1434. /deep/.el-input {
  1435. position: relative;
  1436. font-size: 14px;
  1437. display: inline-block;
  1438. width: 180px;
  1439. }
  1440. input[disabled] {
  1441. background-color: #fff;
  1442. border-color: #b3b3b3;
  1443. color: #606266;
  1444. }
  1445. /deep/.el-radio-button__orig-radio:checked + .el-radio-button__inner {
  1446. background-color: rgb(19, 129, 122);
  1447. border-color: rgb(19, 129, 122);
  1448. // -webkit-box-shadow: -1px 0 0 0 rgb (19, 129, 122);
  1449. box-shadow: -1px 0 0 rgb(19, 129, 122);
  1450. color: #fff;
  1451. outline: none;
  1452. }
  1453. /deep/.el-radio-button__inner {
  1454. &:hover {
  1455. color: rgb(19, 129, 122);
  1456. }
  1457. outline: none;
  1458. }
  1459. /deep/.el-radio-button:focus:not(.is-focus):not(:active):not(.is-disabled) {
  1460. -webkit-box-shadow: none;
  1461. box-shadow: none;
  1462. }
  1463. </style>