teamBaseInfo.vue 47 KB

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