12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826 |
- <template>
- <div class="base-container">
- <div class="banseLeft">
- <!-- <div class="num">乐团编号:dywh01</div> -->
- <el-form
- :model="topFrom"
- ref="topinfo"
- label-width="150px"
- :inline="true"
- label-position="right"
- >
- <div class="head">乐团基本信息:</div>
- <el-form-item
- label="乐团名称"
- prop="name"
- :rules="[{ required: true, message: '乐团名称不能为空' }]"
- >
- <el-input
- placeholder="请输入乐团名称"
- v-model.trim="topFrom.name"
- :disabled="basdisabled"
- ></el-input>
- </el-form-item>
- <!-- style="margin-left: 11px" -->
- <el-form-item
- label="所属分部"
- prop="section"
- :rules="[{ required: true, message: '所属分部不能为空' }]"
- >
- <el-select
- class="width400"
- v-model.trim="topFrom.section"
- filterable
- :disabled="basdisabled"
- @change="changeSection"
- clearable
- >
- <el-option
- v-for="(item, index) in sectionList"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- label="收费模式"
- prop="courseViewType"
- :rules="[{ required: true, message: '收费模式不能为空' }]"
- >
- <el-select
- v-model.trim="topFrom.courseViewType"
- filterable
- :disabled="basdisabled"
- clearable
- >
- <el-option
- :label="item.label"
- :value="Number(item.value)"
- v-for="item in courseViewTypeList"
- :key="item.value"
- :disabled="checkCourseView(Number(item.value))"
- ></el-option>
- <!-- <el-option label="AMR收费" :value="1"></el-option>
- <el-option label="会员收费" :value="2"></el-option> -->
- </el-select>
- </el-form-item>
- <el-form-item
- label="合作单位"
- prop="school"
- :rules="[{ required: true, message: '合作单位不能为空' }]"
- >
- <el-select
- v-model.trim="topFrom.school"
- :disabled="!topFrom.section || basdisabled"
- @change="chioseSchool"
- filterable
- clearable
- >
- <el-option
- v-for="(item, index) in cooperationList"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- label="教学地点"
- prop="address"
- :rules="[{ required: true, message: '教学地点不能为空' }]"
- >
- <template #label>
- <p style="position: relative; display: inline-block">
- 教学地点
- <el-tooltip placement="top" popper-class="mTooltip">
- <div slot="content">如果已生成课表,则会修改未上课时的教学点</div>
- <i class="el-icon-question" style="font-size: 18px; color: #f56c6c"></i>
- </el-tooltip>
- </p>
- </template>
- <el-select
- v-model.trim="topFrom.address"
- filterable
- clearable
- :disabled="!topFrom.section || basdisabled"
- >
- <el-option
- v-for="(item, index) in addList"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- <!-- <el-form-item
- label="运营主管"
- prop="boss"
- :rules="[{ required: true, message: '运营主管不能为空' }]"
- >
- <el-select
- v-model.trim="topFrom.boss"
- :disabled="!topFrom.section || basdisabled"
- filterable
- clearable
- >
- <el-option
- v-for="item in bossList"
- :key="item.userId"
- :label="item.realName"
- :value="item.userId"
- >
- <span style="float: left">{{ item.realName }}</span>
- <span style="float: right; color: #8492a6; font-size: 13px">{{
- String(item.userId)
- }}</span>
- </el-option>
- </el-select>
- </el-form-item> -->
- <!-- <el-form-item
- label="预报名截止时间"
- prop="time"
- :rules="[{ required: true, message: '请输入预报名截止时间' }]"
- >
- <el-date-picker
- v-model.trim="topFrom.time"
- :disabled="basdisabled"
- type="date"
- value-format="yyyy-MM-dd"
- :picker-options="beginDate()"
- placeholder="选择日期"
- ></el-date-picker>
- </el-form-item> -->
- <!-- <el-form-item
- label="报名截止时间"
- prop="time"
- :rules="[{ required: true, message: '请输入报名截止时间' }]"
- >
- <el-date-picker
- v-model.trim="topFrom.time"
- :disabled="basdisabled"
- type="date"
- value-format="yyyy-MM-dd"
- :picker-options="beginDate()"
- placeholder="选择日期"
- ></el-date-picker>
- </el-form-item> -->
- <!-- <el-form-item
- label="预计开团时间"
- prop="startTime"
- :rules="[{ required: true, message: '请输入预计开团时间' }]"
- >
- <el-date-picker
- v-model.trim="topFrom.startTime"
- :disabled="basdisabled"
- type="date"
- value-format="yyyy-MM-dd"
- :picker-options="beginDate()"
- placeholder="选择日期"
- ></el-date-picker>
- </el-form-item> -->
- <!-- <el-form-item
- label="课酬结算标准"
- :rules="[{ required: true, message: '请选择课酬结算标准' }]"
- prop="salary"
- >
- <el-select
- v-model.trim="topFrom.salary"
- clearable
- :disabled="basdisabled"
- filterable
- >
- <el-option label="自定义课酬" value="TEACHER_DEFAULT"></el-option>
- <el-option label="标准课酬" value="GRADIENT_SALARY"></el-option>
- </el-select>
- </el-form-item> -->
- <el-form-item label="机构类型" prop="ownershipType" v-if="tenantId == 1">
- <el-select v-model.trim="topFrom.ownershipType" :disabled="basdisabled">
- <el-option label="自有" value="OWN"></el-option>
- <el-option label="三方" value="COOPERATION"></el-option>
- <!-- <el-option label="租赁"
- value="LEASE"></el-option>-->
- </el-select>
- </el-form-item>
- <el-form-item
- label="课外训练布置老师"
- prop="extracurricularTeacher"
- v-if="tenantId == 1"
- >
- <el-select
- v-model.trim="topFrom.extracurricularTeacher"
- :disabled="basdisabled"
- >
- <el-option label="声部班老师" value="NORMAL"></el-option>
- <el-option label="合奏班老师" value="MIX"></el-option>
- <!-- <el-option label="租赁"
- value="LEASE"></el-option>-->
- </el-select>
- </el-form-item>
- <el-form-item
- label="年级分部"
- prop="gradeType"
- v-if="tenantId == 1"
- :rules="[{ required: true, message: '请选择年级分部' }]"
- >
- <el-select v-model.trim="topFrom.gradeType" :disabled="basdisabled">
- <el-option label="小学团" value="PRIMARY"></el-option>
- <el-option label="初中团" value="MIDDLE"></el-option>
- <el-option label="高中团" value="HIGH"></el-option>
- <el-option label="混合团" value="MIXED"></el-option>
- <!-- <el-option label="租赁"
- value="LEASE"></el-option>-->
- </el-select>
- </el-form-item>
- <!-- v-if="teamStatus == 'resetTeam' || teamStatus == 'teamList'" -->
- <div class="head">人员配置:</div>
- <el-form-item
- label="乐团主管"
- prop="teacher"
- :rules="[{ required: true, message: '乐团主管不能为空' }]"
- >
- <el-select v-model.trim="topFrom.teacher" :disabled="true" filterable clearable>
- <el-option
- v-for="(item, key) in educationList"
- :key="key"
- :label="item.userName"
- :value="Number(item.userId)"
- >
- <span style="float: left">{{ item.userName }}</span>
- <span style="float: right; color: #8492a6; font-size: 13px">{{
- String(item.userId)
- }}</span>
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="乐队指导" prop="head">
- <el-select
- v-model.trim="topFrom.head"
- filterable
- :disabled="!topFrom.section || basdisabled"
- clearable
- >
- <el-option
- v-for="(item, index) in teacherList"
- :key="index"
- :label="item.realName"
- :value="item.id"
- >
- <span style="float: left">{{ item.realName }}</span>
- <span style="float: right; color: #8492a6; font-size: 13px">{{
- String(item.id)
- }}</span>
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="维修技师" prop="repairUserId">
- <el-select
- v-model.trim="topFrom.repairUserId"
- :disabled="!topFrom.section || basdisabled"
- filterable
- clearable
- >
- <el-option
- v-for="(item, key) in technician"
- :key="key"
- :label="item.userName"
- :value="item.userId"
- >
- <span style="float: left">{{ item.userName }}</span>
- <span style="float: right; color: #8492a6; font-size: 13px">{{
- String(item.userId)
- }}</span>
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="衔接老师" prop="transactionTeacherId">
- <el-select
- v-model.trim="topFrom.transactionTeacherId"
- :disabled="!topFrom.section || basdisabled"
- filterable
- clearable
- >
- <el-option
- v-for="(item, key) in transactionList"
- :key="key"
- :label="item.userName"
- :value="item.userId"
- >
- <span style="float: left">{{ item.userName }}</span>
- <span style="float: right; color: #8492a6; font-size: 13px">{{
- String(item.userId)
- }}</span>
- </el-option>
- </el-select>
- </el-form-item>
- <div v-if="tenantId == 1">
- <div class="head">建团信息:</div>
- <el-form-item
- label="建团编制"
- prop="musicGroupPlanMakingId"
- :rules="[{ required: true, message: '建团编制不能为空' }]"
- >
- <el-select
- v-model.trim="topFrom.musicGroupPlanMakingId"
- filterable
- :disabled="basdisabled"
- clearable
- @change="changeType"
- >
- <el-option
- v-for="(item, index) in musicGroupPlanMakingList"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- label="成团年级"
- prop="firstRecruitGrade"
- :rules="[{ required: true, message: '成团年级不能为空' }]"
- >
- <el-select
- v-model.trim="topFrom.firstRecruitGrade"
- filterable
- :disabled="basdisabled || !topFrom.section"
- clearable
- multiple
- @change="
- () => {
- topFrom.graduateGrade = null;
- }
- "
- >
- <el-option
- v-for="(item, index) in gradeList"
- :key="index"
- :label="item.label"
- :value="item.value"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- label="收费标准"
- prop="defaultChargeStandard"
- :rules="[
- { required: true, message: '收费标准不能为空' },
- {
- pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
- message: '请输入正确的金额',
- trigger: 'blur',
- },
- ]"
- >
- <el-input
- v-model.trim="topFrom.defaultChargeStandard"
- placeholder="请输入收费标准"
- :disabled="basdisabled"
- >
- <i slot="suffix" class="el-input__icon" style="padding-right: 5px">元</i>
- </el-input>
- </el-form-item>
- <el-form-item
- label="单次训练时长"
- prop="singleTrainMinutes"
- :rules="[
- { required: true, message: '请输入单次训练时长' },
- {
- pattern: /(^[0-9+]*$)/,
- message: '请输入正确的时长',
- },
- ]"
- >
- <el-select
- v-model.trim="topFrom.singleTrainMinutes"
- filterable
- :disabled="basdisabled"
- allow-create
- default-first-option
- clearable
- >
- <el-option
- v-for="(item, index) in singleTrainMinutesList"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- label="课程配置"
- prop="coursePlan"
- :rules="[{ required: true, message: '请选择课程配置' }]"
- >
- <el-select
- v-model.trim="topFrom.coursePlan"
- filterable
- :disabled="basdisabled"
- clearable
- >
- <el-option
- v-for="(item, index) in coursePlanList"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- label="毕业年级"
- prop="graduateGrade"
- :rules="[{ required: true, message: '毕业年级不能为空' }]"
- >
- <el-select
- v-model.trim="topFrom.graduateGrade"
- filterable
- :disabled="basdisabled || !topFrom.firstRecruitGrade"
- clearable
- >
- <el-option
- v-for="(item, index) in gradeList"
- :key="index"
- :label="item.label"
- :value="item.value"
- :disabled="
- item.value <=
- (topFrom.firstRecruitGrade.length > 0
- ? Math.max(...topFrom.firstRecruitGrade)
- : 0)
- "
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="学生基数" prop="graduateGrade">
- <el-input
- type="number"
- :disabled="basdisabled"
- v-model="topFrom.basicStudentNum"
- />
- </el-form-item>
- <el-form-item label="缴费方" prop="paymentUserType">
- <el-select
- v-model.trim="topFrom.paymentUserType"
- filterable
- :disabled="basdisabled"
- clearable
- @change="
- () => {
- topFrom.chargeMode = '';
- }
- "
- >
- <el-option label="学校" value="SCHOOL"></el-option>
- <el-option label="学员" value="STUDENT"></el-option>
- <el-option label="第三方" value="THIRDPARTY"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- label="计费方式"
- prop="chargeMode"
- v-if="topFrom.paymentUserType != 'STUDENT'"
- >
- <el-select
- v-model.trim="topFrom.chargeMode"
- filterable
- :disabled="basdisabled"
- clearable
- >
- <el-option label="学员计费" value="STUDENT"></el-option>
- <el-option label="老师计费" value="TEACHER"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="销售活动" prop="saleActivityDesc">
- <el-input
- style="width: 300px"
- placeholder="请输入销售活动"
- :maxlength="100"
- v-model.trim="topFrom.saleActivityDesc"
- show-word-limit
- type="textarea"
- :rows="3"
- :disabled="basdisabled"
- ></el-input>
- </el-form-item>
- </div>
- <div class="head">乐团设置:</div>
- <el-form-item
- label="同步群消息"
- prop="homeworkPushFlag"
- label-width="200px"
- :rules="[{ required: true, message: '同步群消息不能为空' }]"
- >
- <template #label>
- <p style="position: relative; display: inline-block">
- 开课后作业同步群消息
- <el-tooltip placement="top" popper-class="mTooltip">
- <div slot="content">
- 学员提交乐团课后作业时,群聊中是否发送作业提交消息
- </div>
- <i class="el-icon-question" style="font-size: 18px; color: #f56c6c"></i>
- </el-tooltip>
- </p>
- </template>
- <el-switch
- v-model="topFrom.homeworkPushFlag"
- :disabled="basdisabled"
- :active-value="1"
- :inactive-value="0"
- >
- </el-switch>
- </el-form-item>
- <el-form-item
- label="是否赠送辅件"
- prop="isGiveAccessories"
- label-width="200px"
- :rules="[{ required: true, message: '是否赠送辅件不能为空' }]"
- >
- <template #label>
- <p style="position: relative; display: inline-block">
- 是否赠送辅件
- <el-tooltip placement="top" popper-class="mTooltip">
- <div slot="content">购买团练宝是否赠送辅件</div>
- <i class="el-icon-question" style="font-size: 18px; color: #f56c6c"></i>
- </el-tooltip>
- </p>
- </template>
- <el-switch
- v-model="topFrom.isGiveAccessories"
- :disabled="basdisabled"
- :active-value="'true'"
- :inactive-value="'false'"
- >
- </el-switch>
- </el-form-item>
- <!-- <el-form-item
- label="是否显示免费课程"
- prop="memberCourseShowFlag"
- label-width="200px"
- :rules="[{ required: true, message: '是否显示免费课程不能为空' }]"
- >
- <template #label>
- <p style="position: relative; display: inline-block">
- 是否显示免费课程
- <el-tooltip placement="top" popper-class="mTooltip">
- <div slot="content">报名时是否显示免费赠送课程</div>
- <i
- class="el-icon-question"
- style="font-size: 18px; color: #f56c6c"
- ></i>
- </el-tooltip>
- </p>
- </template>
- <el-switch
- v-model="topFrom.memberCourseShowFlag"
- :disabled="basdisabled"
- :active-value="1"
- :inactive-value="0"
- >
- </el-switch>
- </el-form-item> -->
- <!-- <el-form-item label prop="isClass">
- <el-checkbox v-model.trim="topFrom.isClass" :disabled="basdisabled"
- >课堂课乐团</el-checkbox
- >
- </el-form-item> -->
- <!-- <br /> -->
- <!-- <el-form-item label="" v-if="teamStatus == 'teamDraft'">
- <p style="color: red; padding-left: 50px">
- 修改【收费类型】会重置乐团声部与缴费信息
- </p>
- </el-form-item> -->
- </el-form>
- <div class="btnWrap">
- <!-- <div
- class="nextBtn"
- v-if="teamStatus == 'resetTeam'"
- v-permission="{
- child: 'musicGroup/update',
- parent: '/resetTeaming/teamBaseInfo',
- }"
- @click="resetSubmit"
- >
- 修改
- </div> -->
- <!-- 审批或者草稿的下一步 -->
- <div class="nextBtn" @click="gotoNext()" v-if="!basdisabled">
- {{ this.teamStatus == "teamDraft" ? "下一步" : "保存" }}
- </div>
- <div class="nextBtn" v-if="this.teamStatus == 'teamAudit'" @click="gotoNext()">
- 下一步
- </div>
- </div>
- </div>
- </div>
- </template>
- <script>
- import {
- getType,
- getTeamBaseInfo,
- resetTeamBaseInfo,
- getEmployeeOrgan,
- getStudentList,
- musicGroupOpenPay,
- extensionPayment,
- extensionApplyExpire,
- getOrganRole,
- getTeacher,
- createTeam,
- getGradeList,
- } from "@/api/buildTeam";
- import dayjs from "dayjs";
- import merge from "webpack-merge";
- import { queryByOrganId, getSchool } from "@/api/systemManage";
- import qrCode from "@/components/QrCode/index";
- import { classStatus, courseViewTypeList } from "@/utils/searchArray";
- import { vaildStudentUrl, vaildTeacherUrl } from "@/utils/validate";
- import { getMusicGroupPlanMakingList } from "@/views/baseRulesManager/api";
- import mergeMusic from "../components/merge-music";
- const singleTrainMinutesList = [
- { name: "90+90", id: "90+90" },
- { name: "90+90+45", id: "90+90+45" },
- ];
- const coursePlanList = [
- { name: "PlanS", id: "PlanS" },
- { name: "PlanA", id: "PlanA" },
- { name: "PlanB", id: "PlanB" },
- { name: "PlanC", id: "PlanC" },
- { name: "PlanD", id: "PlanD" },
- { name: "PlanE", id: "PlanE" },
- ];
- export default {
- components: {
- mergeMusic,
- qrCode,
- },
- name: "teamBaseInfo",
- props: ["getTeamList"],
- data() {
- return {
- classStatus,
- courseViewTypeList,
- organId: null,
- topFrom: {
- type: "", // 收费类型
- section: "", //所属分部
- courseViewType: "", // 收费模式
- school: "", // 合作单位
- teacher: null, // 乐团主管
- name: "", //乐团名称
- boss: "", // 运营主管
- time: "", // 报名截止时间
- startClass: [], // 招生年级起始
- address: "", // 教学地点
- salary: "", // 收费模式
- head: "",
- homeworkPushFlag: 1, // 是否同步群消息
- isGiveAccessories: 0, // 是否赠送辅件 默认不赠送
- memberCourseShowFlag: 0,
- isClass: false, //是否为课堂课
- startTime: "",
- feeType: null,
- paymentPattern: "", // 缴费方式
- paymentValid: [], // 缴费有效期
- paymentValidStartDate: null, // 缴费有效期开始
- paymentValidEndDate: null, // 缴费有效期结束
- ownershipType: "OWN", // 合作机构类型
- repairUserId: null, // 维修技师
- transactionTeacherId: null, // 衔接老师
- extracurricularTeacher: "NORMAL",
- musicGroupPlanMakingId: "", //建团编制
- firstRecruitGrade: [], // 成团年级
- defaultChargeStandard: "", // 收费标准
- singleTrainMinutes: "", //单次训练时长
- coursePlan: "", // 课程计划
- graduateGrade: "", // 毕业年级
- saleActivityDesc: "", // 销售活动描述
- basicStudentNum: "", // 学生基数
- paymentUserType: "", // 缴费方
- chargeMode: "", // 计费方式
- },
- baseInfo: {},
- money: 580,
- orderInfo: {
- marketPrice: 0, // 原价总金额
- referencePrice: 0, // 现价总金额
- }, // 金额列表,金额计算
- sectionList: [], // 分部列表
- cooperationList: [], // 教学点列表
- teacherList: [], // 获取老师列表
- educationList: [], // 乐团主管
- bossList: [],
- transactionList: [],
- addList: [], // 教学地点列表
- activeTeam: [],
- gradeList: [], // 年级
- gradeListObj: null,
- teamid: "",
- teamStatus: "",
- isInit: false,
- technician: [],
- basdisabled: false,
- // 整合报名中
- paymentExpireDate: "",
- applyExpireDate: null,
- mergeVisible: false,
- team_status: "",
- paymentNum: 0,
- paymentStatus: false,
- paymentForm: {
- paymentExpireDate: null,
- // feeType: null
- },
- paymentRules: {
- paymentExpireDate: [
- { required: true, message: "请设置缴费截止日期", trigger: "blur" },
- ],
- },
- extendForm: {
- expireDate: null,
- },
- extendRule: {
- expireDate: [{ required: true, message: "请选择延长时间", trigger: "change" }],
- },
- isPay: false,
- extendPaymentStatus: false, // 延长缴费
- codeStatus: false,
- qrCodeUrl: null,
- codeTitle: null,
- tenantId: "",
- coursePlanList: coursePlanList,
- musicGroupPlanMakingList: [],
- singleTrainMinutesList: singleTrainMinutesList,
- };
- },
- created() {},
- mounted() {
- if (this.$route.query.type == "newTeam") {
- this.onReset();
- }
- this.init();
- },
- activated() {
- if (
- (this.teamid && this.teamid != this.$route.query.id) ||
- this.teamStatus != this.$route.query.type
- ) {
- this.init();
- }
- if (this.$route.query.clear == "true") {
- this.onReset();
- }
- if (this.teamStatus == "newTeam") {
- this.$store.dispatch("buildIndex", 0);
- }
- if (this.teamStatus != "newTeam") {
- this.$store.dispatch("draftIndex", 0);
- }
- this.teamStatus = this.$route.query.type;
- console.log(this.$route.query.type, "teamStatus");
- if (
- this.teamStatus == "look" ||
- this.teamStatus == "teamAudit" ||
- this.teamStatus == "feeAudit" ||
- this.teamStatus == "APPLY" ||
- this.teamStatus == "PAY" ||
- this.teamStatus == "FEE_AUDIT_FAILED"
- ) {
- this.basdisabled = true;
- } else {
- this.basdisabled = false;
- }
- },
- deactivated() {},
- // async beforeDestroy() {
- // await this.setStore();
- // // await new Promise((res, err) => {
- // // setTimeout(() => {
- // // res();
- // // }, 1000);
- // // });
- // },
- methods: {
- async setStore(str) {
- if (this.teamid) {
- let loadash = this.$helpers.lodash;
- let sotrage = JSON.parse(localStorage.getItem(`${this.teamid}base`));
- // console.log(sotrage,this.topFrom)
- if (!loadash.isEqual(this.topFrom, sotrage) && sotrage) {
- // 提示保存
- return await this.$confirm("已修改当前页面数据是否保存", "提示", {
- confirmButtonText: "是",
- cancelButtonText: "否",
- type: "warning",
- closeOnClickModal: false,
- distinguishCancelAndClose: true,
- })
- .then(async () => {
- // localStorage.setItem(
- // `${this.teamid}base`,
- // JSON.stringify(this.topFrom)
- // );
- let b = await this.gotoNext(str);
- console.log(b);
- return b;
- })
- .catch((e) => {
- console.log(e);
- if (e == "close") {
- return false;
- } else {
- localStorage.removeItem(`${this.teamid}base`);
- return true;
- }
- // localStorage.setItem(`${this.teamid}base`,JSON.stringify(this.topFrom));
- });
- } else {
- return true;
- // localStorage.setItem(`${this.teamid}base`,JSON.stringify(this.topFrom));
- }
- } else {
- localStorage.setItem(`newTeambase`, JSON.stringify(this.topFrom));
- return true;
- }
- },
- //|| this.teamStatus === 'teamAudit'
- isNotEditing: function () {
- return !(
- this.teamStatus === "teamDraft" ||
- this.teamStatus === "newTeam" ||
- this.teamStatus === "teamList"
- );
- },
- changeFeeType(val) {},
- changePaymentValidStartDate(val) {
- if (val) {
- this.$set(this.topFrom, "paymentValidEndDate", "");
- }
- },
- changePaymentPattern(val) {
- // if (val === 2) {
- // // this.topFrom.paymentValidStartDate = null
- // this.$set(this.topFrom, 'paymentValidEndDate', '')
- // }
- },
- beginDate(end) {
- return {
- firstDayOfWeek: 1,
- disabledDate(time) {
- if (end) {
- return new Date(end).getTime() - 86400000 >= time.getTime();
- } else {
- return time.getTime() + 86400000 < Date.now();
- //开始时间不选时,结束时间最大值小于等于当天
- }
- },
- };
- },
- init() {
- this.isInit = true;
- if (this.$route.query.id) {
- this.teamid = this.$route.query.id;
- }
- this.teamStatus = this.$route.query.type;
- this.team_status = this.$route.query.team_status;
- this.tenantId = this.$helpers.tenantId;
- // if (this.teamStatus == "newTeam") {
- // this.$store.dispatch("buildIndex", 0);
- // }
- // if (this.teamStatus != "newTeam") {
- // this.$store.dispatch("draftIndex", 0);
- // }
- // 获取建团编制
- getMusicGroupPlanMakingList().then((res) => {
- if (res.code == 200) {
- this.musicGroupPlanMakingList = res.data;
- }
- });
- // 传过来的乐团信息
- this.activeTeam = this.getTeamList;
- if (
- this.teamStatus == "look" ||
- this.teamStatus == "teamAudit" ||
- this.teamStatus == "feeAudit" ||
- this.teamStatus == "teamCanceled" ||
- this.teamStatus == "FEE_AUDIT_FAILED"
- ) {
- this.basdisabled = true;
- } else {
- this.basdisabled = false;
- }
- if (this.$route.query.id) {
- // 单团修改
- this.teamid = this.$route.query.id;
- let sotrage = JSON.parse(localStorage.getItem(`${this.$route.query.id}base`));
- if (!sotrage?.section) {
- getTeamBaseInfo({ musicGroupId: this.teamid }).then((res) => {
- if (res.code == 200) {
- // if (this.$listeners.getBaseInfo) {
- // this.$listeners.getBaseInfo(res.data);
- // }
- // 头部
- this.setBase(res);
- // // 循环缴费月
- // this.payList.chioseMonth = res.data.months;
- if (res.data.musicGroup.organId) {
- // 获取员工
- this.getBaseList(res.data.musicGroup.organId);
- }
- this.$emit("getBaseInfo", res.data);
- }
- });
- } else {
- this.topFrom = sotrage;
- // this.applyExpireDate = sotrage.time;
- // this.paymentExpireDate = Storage.paymentExpireDate;
- if (this.topFrom?.section) {
- // 获取员工
- this.getBaseList(this.topFrom.section);
- }
- }
- } else {
- // 如果是新建团
- let sotrage = JSON.parse(localStorage.getItem(`newTeambase`));
- sotrage ? (this.topFrom = sotrage) : this.topFrom;
- if (this.topFrom?.section) {
- // 获取员工
- this.getBaseList(this.topFrom.section);
- }
- }
- this.getStudentStatus();
- this.$emit("getName", this.topFrom?.name);
- Promise.all([getEmployeeOrgan()]).then((values) => {
- console.log(values, "--------");
- if (values[0].code == 200) {
- this.sectionList = values[0].data;
- }
- let arr = [];
- if (this.sectionList.length <= 0) {
- arr.push("organ");
- } else {
- if (!this.topFrom.section) {
- this.$set(this.topFrom, "section", this.sectionList[0].id);
- this.changeSection(this.sectionList[0].id);
- }
- }
- this.$bus.$emit("showguide", arr);
- });
- // console.log('到这里来',getEmployeeOrgan())
- // 缓存设置时的状态
- },
- changeSection(val) {
- // 修改分部的时候 重置运营主管 重置乐团主管 重置乐队指导 合作单位 教学点
- this.topFrom.teacher = null;
- this.topFrom.boss = "";
- this.topFrom.head = "";
- this.topFrom.school = "";
- this.topFrom.address = "";
- this.topFrom.firstRecruitGrade = [];
- this.topFrom.graduateGrade = "";
- // 发请求 根据分部id 查询所有员工
- if (val) {
- this.getBaseList(val);
- }
- },
- async getBaseList(val) {
- // 合作单位
- // queryByOrganId({ organId: val }).then((res) => {
- // if (res.code == 200) {
- // this.cooperationList = res.data;
- // }
- // });
- // 教学点=>学校
- // getSchool({ organId: val }).then((res) => {
- // if (res.code == 200) {
- // this.addList = res.data;
- // }
- // });
- // 获取乐团主管
- try {
- const ruselt = await getOrganRole({
- id: val,
- });
- // 乐团主管
- this.educationList = ruselt?.data?.EDUCATION;
- // 维修技师
- this.technician = ruselt?.data?.REPAIR;
- // this.bossList = ruselt?.data?.TEAM_TEACHER;
- // 衔接老师
- this.transactionList = ruselt?.data?.JOIN_TEACHER;
- } catch (e) {
- console.log(e);
- }
- // 获取指导老师
- getTeacher({ organId: val }).then((res) => {
- if (res.code == 200) {
- this.teacherList = res.data;
- }
- });
- // 获取年级
- getGradeList({ id: val }).then((res) => {
- let result = res.data;
- this.gradeListObj = res.data;
- if (res.code == 200 && result) {
- for (let i in result) {
- this.gradeList.push({
- value: i,
- label: result[i],
- });
- }
- }
- });
- Promise.all([queryByOrganId({ organId: val }), getSchool({ organId: val })]).then(
- (values) => {
- if (values[0].code == 200) {
- this.cooperationList = values[0].data;
- }
- if (values[1].code == 200) {
- this.addList = values[1].data;
- }
- let arr = [];
- if (this.cooperationList.length <= 0) {
- arr.push("cooperationOrgan");
- }
- if (this.addList.length <= 0) {
- arr.push("school");
- }
- if (arr.length > 0) {
- this.$bus.$emit("showguide", arr);
- return;
- }
- }
- );
- },
- chioseSchool(val) {
- // 清除教学点
- this.topFrom.teacher = null;
- if (val) {
- console.log(this.cooperationList);
- this.cooperationList.forEach((item) => {
- if (item.id == val) {
- console.log(item);
- this.$set(this.topFrom, "teacher", item.educationUserId);
- console.log(this.topFrom);
- }
- });
- }
- console.log("chioseSchool", this.topFrom.teacher);
- },
- async gotoNext(str) {
- let tempStatus;
- return new Promise((resolve, reject) => {
- this.$refs["topinfo"].validate(async (valid, object) => {
- if (!valid) {
- this.$message.error("请填写建团必要参数");
- // return false
- resolve(false);
- } else {
- // 判断一下是否勾选了课程类型而没有输入金额
- // 验证通过
- this.$store.dispatch("topinfo", this.topFrom);
- if (this.teamStatus == "teamAudit") {
- // 获取数据提交
- this.$emit("handleClick", { name: "2" });
- } else {
- this.$emit("getName", this.topFrom.name);
- tempStatus = await this.resetSubmit(str);
- console.log(tempStatus, "tempStatus");
- resolve(tempStatus);
- }
- }
- });
- });
- },
- async resetSubmit(str) {
- return new Promise((resolve, reject) => {
- this.$refs["topinfo"].validate(async (valid, object) => {
- if (!valid) {
- this.$message.error("请填写必要参数");
- reject();
- } else {
- let status = null;
- // 1.resetTeam 乐团修改
- // 2.newTeam 新建乐团
- // 3.teamList 跨团修改
- // 4.teamDraft 乐团草稿
- switch (this.teamStatus) {
- case "resetTeam": {
- status = "PROGRESS";
- break;
- }
- case "newTeam": {
- status = "DRAFT";
- break;
- }
- case "teamList": {
- status = null;
- break;
- }
- case "teamDraft": {
- status = "DRAFT";
- break;
- }
- }
- let obj = {};
- // topFrom.ownershipType
- // 修改 合并对象
- obj.musicGroup = {
- settlementType: this.topFrom.salary,
- applyExpireDate: this.topFrom.time
- ? dayjs(this.topFrom.time).format("YYYY-MM-DD HH:mm:ss")
- : null,
- cooperationOrganId: this.topFrom.school,
- courseViewType: this.topFrom.courseViewType,
- teamTeacherId: this.topFrom.boss,
- // educationalTeacherId: this.topFrom.teacher,
- // chioseSchool
- enrollClasses: this.topFrom.startClass.join(","),
- name: this.topFrom.name,
- paymentPattern: this.topFrom.paymentPattern,
- paymentValidStartDate: this.topFrom.paymentValidStartDate
- ? dayjs(this.topFrom.paymentValidStartDate).format("YYYY-MM-DD")
- : this.topFrom.paymentValidStartDate,
- paymentValidEndDate: this.topFrom.paymentValidEndDate
- ? dayjs(this.topFrom.paymentValidEndDate).format("YYYY-MM-DD")
- : this.topFrom.paymentValidEndDate,
- organId: this.topFrom.section,
- // paymentMonths:obj.months 有待确认
- schoolId: this.topFrom.address,
- id: this.teamid,
- directorUserId: this.topFrom.head,
- isClassroomLessons: this.topFrom.isClass,
- status,
- expectStartGroupDate: this.topFrom.startTime,
- ownershipType: this.topFrom.ownershipType,
- repairUserId: this.topFrom.repairUserId || null,
- feeType: this.topFrom.feeType,
- transactionTeacherId: this.topFrom.transactionTeacherId,
- homeworkPushFlag: this.topFrom.homeworkPushFlag,
- isGiveAccessories: this.topFrom.isGiveAccessories,
- memberCourseShowFlag: this.topFrom.memberCourseShowFlag,
- extracurricularTeacher: this.topFrom.extracurricularTeacher,
- musicGroupPlanMakingId: this.topFrom.musicGroupPlanMakingId,
- firstRecruitGrade: this.topFrom.firstRecruitGrade.join(","),
- defaultChargeStandard: this.topFrom.defaultChargeStandard,
- singleTrainMinutes: this.topFrom.singleTrainMinutes,
- coursePlan: this.topFrom.coursePlan,
- graduateGrade: this.topFrom.graduateGrade,
- saleActivityDesc: this.topFrom.saleActivityDesc,
- basicStudentNum: this.topFrom.basicStudentNum,
- paymentUserType: this.topFrom.paymentUserType,
- chargeMode: this.topFrom.chargeMode,
- gradeType: this.topFrom.gradeType,
- };
- // obj.musicGroupPaymentEntities = [];
- // createTeam
- if (this.teamStatus != "newTeam") {
- return await resetTeamBaseInfo(obj).then(async (res) => {
- if (res.code == 200) {
- localStorage.setItem(
- `${this.teamid}base`,
- JSON.stringify(this.topFrom)
- );
- this.$emit("getBaseInfo");
- if (this.teamStatus == "teamDraft") {
- this.$message.success("保存成功");
- if (!str) {
- this.$emit("handleClick", { name: "2" });
- }
- resolve(true);
- // 跳到第二页
- } else {
- this.$message.success("修改乐团成功");
- // this.$router.push({ path: '/teamLists', query: { id: this.teamid, name: this.topFrom.name } })
- }
- resolve(true);
- }
- });
- } else {
- // 发送建团申请 成功后跳到第二页
- createTeam(obj).then((res) => {
- if (res.code == 200) {
- // this.$message.success('建团成功,请设置声部信息')
- // this.$emit("chiosetab", 1);
- const h = this.$createElement;
- this.$msgbox({
- title: "提示",
- message: h("p", null, [
- h("p", null, "新乐团基础信息创建完成"),
- h("p", null, "请设置声部信息"),
- ]),
- type: "warning",
- confirmButtonText: "是",
- cancelButtonText: "否",
- showCancelButton: true,
- customClass: "messageBox-prompt-test",
- })
- .then(() => {
- this.$router.push(
- {
- query: merge(this.$route.query, {
- type: "teamDraft",
- id: res.data,
- team_status: "DRAFT",
- }),
- },
- (router) => {
- console.log(router);
- router.meta.title = "乐团编辑中";
- }
- );
- this.$emit("getName", this.topFrom.name);
- this.$emit("handleClick", { name: "2" });
- return true;
- })
- .catch(() => {
- this.$router.push(
- {
- query: merge(this.$route.query, {
- type: "teamDraft",
- id: res.data,
- team_status: "DRAFT",
- }),
- },
- (router) => {
- console.log(router);
- router.meta.title = "乐团编辑中";
- }
- );
- this.$emit("getName", this.topFrom.name);
- this.init();
- return true;
- });
- }
- });
- }
- // 发请求
- }
- });
- });
- },
- changeApplyTime(val) {
- this.$set(this.topFrom, "paymentValidStartDate", "");
- this.$set(this.topFrom, "paymentValidEndDate", "");
- // this.topFrom.paymentValidStartDate = ''
- // this.topFrom.paymentValidEndDate = ''
- },
- onReset() {
- this.topFrom = {
- type: "", // 收费类型
- section: "", //所属分部
- school: "", // 合作单位
- courseViewType: "",
- teacher: "", // 乐团主管
- name: "", //乐团名称
- boss: "", // 运营主管
- time: "", // 报名截止时间
- startClass: [], // 招生年级起始
- paymentValid: [], // 缴费有效期时间起始
- address: "", // 教学地点
- salary: "", // 收费模式
- head: "",
- paymentPattern: "", // 缴费方式
- isClass: false, //是否为课堂课
- startTime: "",
- ownershipType: "OWN", // 合作机构类型
- feeType: null,
- homeworkPushFlag: 1,
- isGiveAccessories: false,
- memberCourseShowFlag: 0,
- extracurricularTeacher: "NORMAL",
- musicGroupPlanMakingId: "",
- firstRecruitGrade: [],
- defaultChargeStandard: "",
- singleTrainMinutes: "",
- coursePlan: "",
- graduateGrade: "",
- saleActivityDesc: "",
- paymentUserType: "",
- chargeMode: "",
- basicStudentNum: "",
- };
- this.$refs["topinfo"].resetFields();
- },
- onGoHome() {
- if (this.paymentNum <= 0) {
- this.$message.error("当前缴费人数为0,无法开团");
- return;
- }
- this.$confirm(`是否确认开团?`, "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- musicGroupFound({
- musicGroupId: this.$route.query.id,
- }).then((res) => {
- if (res.code == 200) {
- // let query = this.$route.query;
- // this.$message.success("开启成功");
- // this.$router.push({
- // path: "/teamList",
- // query: {
- // ...query,
- // },
- // });
- this.onCancel();
- }
- });
- })
- .catch(() => {});
- },
- payStart() {
- this.paymentStatus = true;
- },
- getStudentStatus() {
- let obj = {
- musicGroupId: this.teamid,
- page: 1,
- rows: 9999,
- };
- if (!this.teamid) return;
- getStudentList(obj).then((res) => {
- if (res.code == 200) {
- res.data.rows.forEach((item) => {
- // '未开启缴费', '开启缴费', '已缴费'
- if (item.paymentStatus == 2) {
- this.paymentNum += 1;
- }
- });
- // this.rightList = res.data.rows;
- // this.rules.total = res.data.total;
- // return res;
- }
- });
- },
- payDate() {
- let self = this;
- return {
- firstDayOfWeek: 1,
- disabledDate(time) {
- if (self.applyExpireDate) {
- return (
- time.getTime() <=
- new Date(self.applyExpireDate.replace(/-/g, "/")).getTime()
- );
- } else {
- return false;
- }
- },
- };
- },
- onStartPayment(formName) {
- // 开启缴费
- this.$refs[formName].validate((valid) => {
- if (valid) {
- musicGroupOpenPay({
- musicGroupId: this.teamid,
- expireDate: this.paymentForm.paymentExpireDate,
- // feeType: this.paymentForm.feeType
- }).then((res) => {
- if (res.code == 200) {
- this.$message.success("开启成功");
- this.paymentStatus = false;
- this.$store.dispatch("delVisitedViews", this.$route);
- this.$router.push({ path: "/teamList" });
- // this.$router.push({
- // path: "/business/resetTeaming",
- // query: {
- // status: "PAY",
- // id: this.$route.query.id,
- // name: this.$route.query.name,
- // },
- // });
- // this.team_status = "PAY";
- // this.paymentExpireDate = this.paymentForm.paymentExpireDate;
- // this.getList();
- }
- });
- } else {
- return false;
- }
- });
- },
- applyDate() {
- let self = this;
- return {
- firstDayOfWeek: 1,
- disabledDate(time) {
- if (self.paymentExpireDate) {
- return (
- time.getTime() >
- new Date(self.paymentExpireDate.replace(/-/g, "/")).getTime()
- );
- } else {
- return false;
- }
- },
- };
- },
- extendTime(isPay) {
- this.isPay = isPay;
- if (isPay) {
- // 点击的延长缴费
- this.extendForm.expireDate = this.paymentExpireDate;
- } else {
- // 点击的延长报名
- this.extendForm.expireDate = this.applyExpireDate;
- }
- this.extendPaymentStatus = true;
- },
- onExtendPayment(formName, isPay) {
- this.$refs[formName].validate((valid) => {
- if (valid) {
- if (!isPay) {
- extensionApplyExpire({
- musicGroupId: this.teamid,
- expireDate: this.extendForm.expireDate,
- }).then((res) => {
- if (res.code == 200) {
- this.$message.success("延长报名成功");
- this.extendPaymentStatus = false;
- getTeamBaseInfo({ musicGroupId: this.teamid }).then((res) => {
- if (res.code == 200) {
- this.applyExpireDate = res.data.musicGroup.applyExpireDate;
- this.setBase(res);
- }
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- } else {
- extensionPayment({
- musicGroupId: this.teamid,
- expireDate: this.extendForm.expireDate,
- }).then((res) => {
- if (res.code == 200) {
- this.$message.success("延长缴费成功");
- this.extendPaymentStatus = false;
- getTeamBaseInfo({ musicGroupId: this.teamid }).then((res) => {
- if (res.code == 200) {
- this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
- }
- });
- } else {
- this.$message.error(res.msg);
- }
- });
- }
- }
- });
- },
- onCreateQRCode(type) {
- // 生成报名二维码
- let id = this.teamid;
- this.codeStatus = true;
- if (type == "payment") {
- this.codeTitle = "学员报名链接";
- this.qrCodeUrl = vaildStudentUrl() + "/#/login?musicGroupId=" + id;
- } else if (type == "detail") {
- let teamName = this.$route.query.name;
- this.codeTitle = "报名缴费详情";
- this.qrCodeUrl =
- vaildTeacherUrl() +
- "/#/order?musicGroupId=" +
- id +
- "&musicGroupName=" +
- teamName;
- } else if (type == "rePayment") {
- this.codeTitle = "学生报名链接(无乐器)";
- this.qrCodeUrl =
- vaildStudentUrl() + "/#/login?musicGroupId=" + id + "&instrument=1";
- }
- },
- gotoStudentList() {
- this.$router.push({
- query: merge(this.$route.query, { tabrouter: 7 }),
- });
- // this.$router.replace({query:{...this.$route.query,tabrouter:7}})
- },
- setBase(res) {
- this.topFrom.name = res.data.musicGroup.name;
- this.$emit("getName", this.topFrom.name);
- this.topFrom.time = res.data.musicGroup.applyExpireDate;
- this.topFrom.startClass = res.data.musicGroup.enrollClasses.split(",");
- this.topFrom.paymentPattern = res.data.musicGroup.paymentPattern;
- this.topFrom.paymentValidStartDate = res.data.musicGroup.paymentValidStartDate;
- this.topFrom.paymentValidEndDate = res.data.musicGroup.paymentValidEndDate;
- this.topFrom.section = res.data.musicGroup.organId;
- this.topFrom.courseViewType = res.data.musicGroup.courseViewType;
- this.topFrom.school = res.data.musicGroup.cooperationOrganId;
- this.topFrom.teacher = res.data.musicGroup.educationalTeacherId;
- this.topFrom.boss = res.data.musicGroup.teamTeacherId;
- this.topFrom.address = res.data.musicGroup.schoolId;
- // this.topFrom.salary = res.data.musicGroup.settlementType;
- this.topFrom.head = res.data.musicGroup.directorUserId
- ? res.data.musicGroup.directorUserId
- : null;
- this.topFrom.isClass = res.data.musicGroup.isClassroomLessons;
- this.topFrom.startTime = res.data.musicGroup.expectStartGroupDate;
- this.topFrom.ownershipType = res.data.musicGroup.ownershipType;
- this.topFrom.repairUserId = res.data.musicGroup.repairUserId
- ? res.data.musicGroup.repairUserId
- : null;
- this.topFrom.feeType = res.data.musicGroup.feeType
- ? res.data.musicGroup.feeType
- : null;
- this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
- this.applyExpireDate = res.data.musicGroup.applyExpireDate;
- this.topFrom.transactionTeacherId = res.data.musicGroup.transactionTeacherId || "";
- this.topFrom.homeworkPushFlag = res.data.musicGroup.homeworkPushFlag;
- this.topFrom.isGiveAccessories = res.data.musicGroup.isGiveAccessories + "";
- console.log(this.topFrom.isGiveAccessories, "isGiveAccessories");
- this.topFrom.memberCourseShowFlag = res.data.musicGroup.memberCourseShowFlag
- ? 1
- : 0;
- this.topFrom.extracurricularTeacher = res.data.musicGroup.extracurricularTeacher;
- this.topFrom.musicGroupPlanMakingId = res.data.musicGroup.musicGroupPlanMakingId;
- this.topFrom.firstRecruitGrade = res.data.musicGroup.firstRecruitGrade
- ? res.data.musicGroup.firstRecruitGrade.split(",")
- : [];
- this.topFrom.defaultChargeStandard = res.data.musicGroup.defaultChargeStandard;
- this.topFrom.singleTrainMinutes = res.data.musicGroup.singleTrainMinutes;
- this.topFrom.coursePlan = res.data.musicGroup.coursePlan;
- this.topFrom.graduateGrade = res.data.musicGroup.graduateGrade + "";
- this.topFrom.saleActivityDesc = res.data.musicGroup.saleActivityDesc;
- this.topFrom.basicStudentNum = res.data.musicGroup.basicStudentNum;
- this.topFrom.paymentUserType = res.data.musicGroup.paymentUserType;
- this.topFrom.chargeMode = res.data.musicGroup.chargeMode;
- this.topFrom.gradeType = res.data.musicGroup.gradeType;
- localStorage.setItem(`${this.teamid}base`, JSON.stringify(this.topFrom));
- },
- changeType(val) {
- if (val) {
- localStorage.removeItem(`${this.teamid}sound`);
- }
- },
- checkCourseView(val) {
- if (this.teamStatus == "newTeam" || this.teamStatus == "teamDraft") {
- return false;
- } else {
- if (this.topFrom.courseViewType == 0 || this.topFrom.courseViewType == 1) {
- // val ==2
- return false;
- } else {
- return val == 0 || val == 1;
- }
- }
- },
- },
- computed: {
- startClassString() {
- return this.topFrom.startClass
- .map((item) => {
- for (let i in this.classStatus) {
- if (item == this.classStatus[i].value) {
- return this.classStatus[i].label;
- }
- }
- // return this.classStatus[item]
- })
- .join(",");
- },
- showNext() {
- const teamStatus = this.teamStatus;
- return (
- teamStatus == "newTeam" ||
- teamStatus == "teamDraft" ||
- teamStatus == "teamAudit" ||
- teamStatus == "feeAudit"
- );
- },
- },
- };
- </script>
- <style lang="scss">
- .messageBox-prompt-test {
- .el-message-box__status {
- top: 25% !important;
- }
- }
- .base-container {
- overflow: auto;
- // display: flex;
- // flex-direction: row;
- // justify-content: flex-start;
- // flex-wrap: nowrap;
- font-size: 14px;
- color: #444;
- // width: fill-available;
- .banseLeft {
- // width: 1050px;
- .head {
- height: 48px;
- line-height: 48px;
- background-color: #edeef0;
- font-size: 14px;
- font-weight: bold;
- color: #444;
- padding: 0 11px;
- margin-bottom: 20px;
- }
- .noMargin.head {
- margin-bottom: 0;
- }
- .num {
- padding: 15px 11px;
- }
- .checkRow {
- min-width: 1200px;
- padding-left: 28px;
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- flex-wrap: nowrap;
- overflow: auto;
- .el-checkbox {
- line-height: 72px;
- width: 120px;
- }
- .inputWrap {
- line-height: 72px;
- font-size: 14px;
- color: #777;
- margin-left: 65px;
- input {
- // border: none;
- // width: 80px;
- // margin-right: 10px;
- // outline: none;
- }
- }
- .inputWrap.rightFirst {
- margin-left: 245px;
- }
- .textWrap {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- font-size: 14px;
- color: #777;
- align-items: center;
- span {
- color: #f97215;
- }
- }
- .selectWrap {
- font-size: 14px;
- padding-top: 5px;
- margin-left: 100px;
- margin-right: 52px;
- .rowSelect {
- .el-input__inner {
- min-height: 69px;
- }
- }
- }
- .chioseList {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: center;
- font-size: 14px;
- color: #777;
- margin-left: 64px;
- .chioseItem {
- width: 80px;
- height: 30px;
- border-radius: 15px;
- border: 1px solid #979797;
- margin-right: 10px;
- line-height: 30px;
- text-align: center;
- cursor: pointer;
- }
- .chioseItem.active {
- background-color: var(--color-primary);
- border: 1px solid var(--color-primary);
- color: #fff;
- }
- }
- // &:nth-child(even) {
- // background-color: #c6cbd4;
- // input {
- // background-color: #c6cbd4;
- // }
- // }
- }
- }
- .btnWrap {
- margin-top: 30px;
- }
- .el-checkbox__input.is-checked + .el-checkbox__label {
- color: #606266;
- }
- .subTitle {
- // width: 1203px;
- height: 40px;
- line-height: 40px;
- background-color: #fefceb;
- padding: 0 25px;
- box-sizing: border-box;
- font-size: 16px;
- color: #474747;
- margin-bottom: 20px;
- }
- .chioseWrap {
- margin-bottom: 30px;
- display: flex;
- flex-direction: row;
- padding: 0 25px;
- p {
- width: 80px;
- font-size: 14px;
- // margin-right: 30px;
- }
- }
- .classCheckBox {
- margin-right: 10px;
- }
- }
- </style>
- <style scoped lang="scss">
- .banseLeft {
- :deep(.el-form--inline) {
- .el-form-item__content {
- display: block;
- }
- }
- ::v-deep .el-select {
- width: 300px !important;
- }
- ::v-deep .el-date-editor {
- width: 300px !important;
- }
- ::v-deep .el-checkbox {
- margin-left: 15px !important;
- }
- ::v-deep .el-input {
- position: relative;
- font-size: 14px;
- display: inline-block;
- width: 300px;
- }
- }
- input[disabled] {
- background-color: #fff;
- border-color: #b3b3b3;
- color: #606266;
- }
- ::v-deep .el-radio-button__orig-radio:checked + .el-radio-button__inner {
- background-color: #00a79d;
- border-color: #00a79d;
- // -webkit-box-shadow: -1px 0 0 0 rgb (19, 129, 122);
- box-shadow: -1px 0 0 #00a79d;
- color: #fff;
- outline: none;
- }
- ::v-deep .el-radio-button__inner {
- &:hover {
- color: #00a79d;
- }
- outline: none;
- }
- ::v-deep .el-radio-button:focus:not(.is-focus):not(:active):not(.is-disabled) {
- -webkit-box-shadow: none;
- box-shadow: none;
- }
- </style>
|