| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885 |
- <template>
- <div class="m-container">
- <h2>
- <div class="squrt"></div>
- 报表中心
- </h2>
- <div class="m-core">
- <el-collapse v-model="activeName" class="formCollapse">
- <el-collapse-item
- name="1"
- v-if="
- $helpers.permission('export/musicGroupRegister') ||
- $helpers.permission('export/musicGroupNormalStudentNum') ||
- $helpers.permission('export/exportStudentAttendances') ||
- $helpers.permission('export/cloudStudyStudentTrainData')
- "
- >
- <template slot="title">
- <p class="wrapTitle">教务信息</p>
- </template>
- <div class="m-wrap" v-permission="'export/musicGroupRegister'">
- <div class="title">乐团招生汇总:</div>
- <select-all
- v-model.trim="organIdList"
- class="organSelect"
- style="width: 100%"
- filterable
- placeholder="请选择分部"
- multiple
- clearable
- >
- <el-option
- v-for="(item, index) in selects.branchs"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </select-all>
- <!-- <el-button
- style="margin-left: 10px"
- type="primary"
- @click="exportMusicGroup"
- >导出</el-button
- > -->
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="MUSIC_GROUP_REGISTER"
- :exportData="{ organIds: this.organIdList.join(',') }"
- fileName="招生情况汇总表"
- errorMsg="请至少选择一个分部"
- :flag="this.organIdList.length < 1"
- />
- <el-tooltip placement="top" popper-class="mTooltip">
- <div slot="content">
- 请选择分部后,导出招生情况汇总表,分部可多选
- </div>
- <i
- class="el-icon-question micon el-tooltip"
- v-permission="'export/musicGroupRegister'"
- style="font-size: 18px; color: #f56c6c"
- ></i>
- </el-tooltip>
- </div>
- <div
- class="m-wrap"
- v-permission="'export/musicGroupNormalStudentNum'"
- >
- <div class="title">乐团在读人数:</div>
- <select-all
- v-model.trim="musicTeamNum"
- class="organSelect"
- style="width: 100%"
- filterable
- multiple
- placeholder="请选择分部"
- clearable
- >
- <el-option
- v-for="(item, index) in selects.branchs"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </select-all>
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="MUSIC_GROUP_NORMAL_STUDENT_NUM"
- :exportData="{ organIds: this.musicTeamNum.join(',') }"
- fileName="乐团在读人数"
- errorMsg="请至少选择一个分部"
- />
- <el-tooltip placement="top" popper-class="mTooltip">
- <div slot="content">请选择分部后,导出乐团在读人数信息</div>
- <i
- class="el-icon-question micon el-tooltip"
- style="font-size: 18px; color: #f56c6c"
- ></i>
- </el-tooltip>
- </div>
- <div class="m-wrap" v-permission="'export/exportStudentAttendances'">
- <div class="title">学生考勤:</div>
- <select-all
- v-model.trim="attendanceOrganId"
- class="organSelect"
- style="width: 100%"
- filterable
- multiple
- placeholder="请选择分部"
- clearable
- >
- <el-option
- v-for="(item, index) in selects.branchs"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </select-all>
- <el-select
- v-model.trim="attendanceCourseType"
- class="organSelect"
- style="margin-left: 15px; width: 100%"
- filterable
- placeholder="请选择课程类型"
- >
- <el-option
- v-for="(item, index) in courseListType"
- :key="index"
- :label="item.label"
- :value="item.value"
- ></el-option>
- </el-select>
- <el-date-picker
- v-model.trim="timer"
- style="width: 360px; margin-left: 15px"
- type="daterange"
- value-format="yyyy-MM-dd"
- range-separator="至"
- start-placeholder="上课开始日期"
- end-placeholder="上课结束日期"
- :picker-options="{
- firstDayOfWeek: 1
- }"
- ></el-date-picker>
- <!-- <el-button
- style="margin-left: 10px"
- type="primary"
- @click="exportAttendance"
- >导出</el-button
- > -->
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="EXPORT_STUDENT_ATTENDANCES"
- :exportData="exportAttendance"
- fileName="学生考勤"
- errorMsg="请至少选择一个分部"
- />
- </div>
- <div
- class="m-wrap"
- v-permission="'export/cloudStudyStudentTrainData'"
- >
- <div class="title">云教练学员统计:</div>
- <el-select
- v-model.trim="trainOrganId"
- class="organSelect"
- style="width: 100%"
- filterable
- placeholder="请选择分部"
- clearable
- >
- <el-option
- v-for="(item, index) in selects.branchs"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- <el-date-picker
- v-model.trim="cloudTimer"
- style="width: 360px; margin-left: 15px"
- type="daterange"
- value-format="yyyy-MM-dd"
- range-separator="至"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- :picker-options="{
- firstDayOfWeek: 1
- }"
- ></el-date-picker>
- <!-- <el-button
- style="margin-left: 10px"
- type="primary"
- @click="exportTrain"
- >导出</el-button
- > -->
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="CLOUD_STUDY_STUDENT_TRAIN_DATA"
- :exportData="exportTrain"
- fileName="云教练学员统计"
- errorMsg="请选择分部"
- :flag="!this.trainOrganId"
- />
- </div>
- <!-- 老师使用云教练数据
- -->
- <div class="m-wrap" v-permission="'export/teacherCloudTrainingList'">
- <div class="title">老师使用云教练数据:</div>
- <select-all
- v-model.trim="trainTeacherOrganId"
- class="organSelect"
- style="width: 100%"
- filterable
- multiple
- placeholder="请选择分部"
- clearable
- >
- <el-option
- v-for="(item, index) in selects.branchs"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </select-all>
- <el-date-picker
- v-model.trim="trainTeacherTimer"
- style="width: 360px; margin-left: 15px"
- type="daterange"
- value-format="yyyy-MM-dd"
- range-separator="至"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- :picker-options="pickerOptions"
- ></el-date-picker>
- <!-- <el-button
- style="margin-left: 10px"
- type="primary"
- @click="exportTeacherTrain"
- >导出</el-button
- > -->
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="EXPORT_TEACHER_CLOUD_COURSE_REPORT"
- :exportData="exportTeacherTrain"
- fileName="老师使用云教练数据"
- errorMsg="请选择分部"
- :flag="!this.trainTeacherOrganId"
- :isDownList="true"
- />
- </div>
- <!-- -->
- </el-collapse-item>
- <el-collapse-item
- name="2"
- v-if="
- $helpers.permission('export/teacherDefaultSalary') ||
- $helpers.permission('export/studentOrder') ||
- $helpers.permission('studentInstrument/export') ||
- $helpers.permission('export/studentVipPractice') ||
- $helpers.permission('export/exercisesSituation') ||
- $helpers.permission('export/exportIndexErrData') ||
- $helpers.permission('export/exportMusicGroupCourseList') ||
- $helpers.permission('export/EXPORT_INDEX_HISTORY_ERR_DATA') ||
- $helpers.permission('export/EXPORT_STUDENT_SUBCOURSE') ||
- $helpers.permission('export/EXPORT_TRAINING_STATISTICS') ||
- $helpers.permission('export/EXPORT_OPERATING_VISIT_STATISTICS')
- "
- >
- <template slot="title">
- <p class="wrapTitle">运营数据</p>
- </template>
- <div class="m-wrap" v-permission="'export/teacherDefaultSalary'">
- <div class="title">老师默认课酬:</div>
- <select-all
- v-model.trim="teacherDefaultSalaryOrganId"
- class="organSelect"
- style="width: 100%"
- filterable
- placeholder="请选择分部"
- multiple
- clearable
- >
- <el-option
- v-for="(item, index) in selects.branchs"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </select-all>
- <!-- <el-button
- style="margin-left: 10px"
- type="primary"
- @click="exportDefaultSalary"
- >导出</el-button
- > -->
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="TEACHER_DEFAULT_SALARY"
- :exportData="exportDefaultSalary"
- fileName="老师默认课酬"
- errorMsg="请至少选择一个分部"
- />
- <el-tooltip placement="top" popper-class="mTooltip">
- <div slot="content">请选择分部后,导出老师列表及老师课酬信息</div>
- <i
- class="el-icon-question micon el-tooltip"
- style="font-size: 18px; color: #f56c6c"
- v-permission="'export/teacherDefaultSalary'"
- ></i>
- </el-tooltip>
- </div>
- <div class="m-wrap" v-permission="'export/studentOrder'">
- <div class="title">回款统计:</div>
- <select-all
- v-model.trim="studentOrganId"
- class="organSelect"
- style="width: 100%"
- filterable
- placeholder="请选择分部"
- multiple
- clearable
- >
- <el-option
- v-for="(item, index) in selects.branchs"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </select-all>
- <el-date-picker
- style="margin-left: 15px"
- v-model="studentMonth"
- type="month"
- placeholder="选择月"
- value-format="yyyy-MM-dd"
- ></el-date-picker>
- <!-- <el-button
- style="margin-left: 10px"
- type="primary"
- @click="exportStudent"
- >导出</el-button
- > -->
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="STUDENT_ORDER"
- :exportData="exportStudent"
- fileName="回款统计"
- errorMsg="请选择导出月份"
- :flag="!this.studentMonth"
- />
- <el-tooltip placement="top" popper-class="mTooltip">
- <div slot="content">请选择分部和月份,导出回款统计</div>
- <i
- class="el-icon-question micon el-tooltip"
- style="font-size: 18px; color: #f56c6c"
- v-permission="'export/studentOrder'"
- ></i>
- </el-tooltip>
- </div>
- <div class="m-wrap" v-permission="'studentInstrument/export'">
- <div class="title">乐保订单导出:</div>
- <el-date-picker
- v-model="leBaoTimer"
- style="width: 360px"
- type="monthrange"
- value-format="yyyy-MM-dd"
- range-separator="至"
- start-placeholder="开始月份"
- end-placeholder="结束月份"
- >
- </el-date-picker>
- <!-- <el-button
- style="margin-left: 10px"
- type="primary"
- @click="exportLeBao"
- >导出</el-button
- > -->
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="STUDENT_INSTRUMENT"
- :exportData="exportLeBao"
- fileName="乐保订单"
- errorMsg="请选择导出月份"
- :flag="!(leBaoTimer && leBaoTimer.length > 1)"
- />
- <!-- <el-tooltip placement="top"
- popper-class="mTooltip">
- <div slot="content">
- 请选择分部和月份,导出回款统计
- </div>
- <i class="el-icon-question micon el-tooltip"
- style="font-size: 18px; color: #F56C6C"
- v-permission="'export/studentOrder'"></i>
- </el-tooltip> -->
- </div>
- <div class="m-wrap" v-permission="'export/studentVipPractice'">
- <div class="title">VIP网管课耗导出:</div>
- <select-all
- v-model.trim="vipOrganId"
- class="organSelect"
- style="width: 100%"
- filterable
- placeholder="请选择分部"
- clearable
- >
- <el-option
- v-for="(item, index) in selects.branchs"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </select-all>
- <!-- <el-button
- style="margin-left: 10px"
- type="primary"
- @click="exportVip"
- >导出</el-button
- > -->
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="STUDENT_VIP_PRACTICE"
- :exportData="exportVip"
- fileName="VIP网管课耗"
- errorMsg="请选择分部"
- :flag="vipOrganId.length <= 0"
- :isDownList="true"
- />
- </div>
- <div class="m-wrap" v-permission="'export/VIP_STUDENT_COURSE_MANAGE'">
- <div class="title">VIP学员课程管理导出:</div>
- <select-all
- v-model.trim="VipStudentOrganId"
- class="organSelect"
- style="width: 100%"
- filterable
- placeholder="请选择分部"
- clearable
- >
- <el-option
- v-for="(item, index) in selects.branchs"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </select-all>
- <!-- <el-button
- style="margin-left: 10px"
- type="primary"
- @click="exportVipStudent"
- >导出</el-button
- > -->
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="VIP_STUDENT_COURSE_MANAGE"
- :exportData="exportVipStudent"
- fileName="VIP学员课程管理导出"
- errorMsg="请选择分部"
- :isDownList="true"
- />
- </div>
- <div class="m-wrap" v-permission="'export/exercisesSituation'">
- <div class="title">服务指标明细导出:</div>
- <select-all
- v-model.trim="serviceOrganId"
- class="organSelect"
- style="width: 100%"
- filterable
- multiple
- placeholder="请选择分部"
- clearable
- >
- <el-option
- v-for="(item, index) in selects.branchs"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </select-all>
- <el-date-picker
- v-model.trim="serviceTimer"
- style="width: 360px; margin-left: 15px"
- type="daterange"
- value-format="yyyy-MM-dd"
- range-separator="至"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- :picker-options="{
- firstDayOfWeek: 1
- }"
- ></el-date-picker>
- <!-- <el-button
- style="margin-left: 10px"
- type="primary"
- @click="exportDetailService"
- >导出</el-button
- > -->
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="EXERCISES_SITUATION"
- :exportData="exportDetailService"
- fileName="服务指标明细"
- errorMsg="请选择导出月份"
- />
- </div>
- <div class="m-wrap" v-permission="'export/exportIndexErrData'">
- <div class="title">异常处理数据导出:</div>
- <select-all
- clearable
- filterable
- class="organSelect"
- v-model="Abnormal.organIds"
- multiple
- placeholder="请选择分部"
- >
- <el-option
- v-for="(item, index) in selects.branchs"
- :key="index"
- :label="item.name"
- :value="item.id + ''"
- ></el-option>
- </select-all>
- <!-- <el-button
- type="primary"
- style="margin-left: 10px"
- @click="exportAbnormal"
- >导出</el-button
- > -->
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="EXPORT_INDEX_HISTORY_ERR_DATA"
- :exportData="exportAbnormal"
- fileName="异常处理数据导出"
- errorMsg="请选择分部"
- />
- </div>
- <!-- <div class="m-wrap" v-permission="'export/STUDENT_VIP_COURSE_INFO'">
- <div class="title">VIP课学员课程导出:</div>
- <select-all
- v-model.trim="vipStudentCourseOrganId"
- class="organSelect"
- style="width: 100%"
- filterable
- multiple
- placeholder="请选择分部"
- clearable
- >
- <el-option
- v-for="(item, index) in selects.branchs"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </select-all>
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="STUDENT_VIP_COURSE_INFO"
- :exportData="exportAbnormal"
- fileName="VIP课学员课程信息导出"
- errorMsg="请选择分部"
- :flag="this.vipStudentCourseOrganId.length < 1"
- :isDownList="true"
- />
- </div> -->
- <div
- class="m-wrap"
- v-permission="'export/STUDENT_MUSIC_THEORY_COURSE_INFO'"
- >
- <div class="title">乐理课学员课程导出:</div>
- <select-all
- v-model.trim="musicStudentCourseOrganId"
- class="organSelect"
- style="width: 100%"
- filterable
- multiple
- placeholder="请选择分部"
- clearable
- >
- <el-option
- v-for="(item, index) in selects.branchs"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </select-all>
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="STUDENT_MUSIC_THEORY_COURSE_INFO"
- :exportData="exportAbnormal"
- fileName="乐理课学员课程信息导出"
- errorMsg="请选择分部"
- :flag="this.musicStudentCourseOrganId.length < 1"
- :isDownList="true"
- />
- </div>
- <div
- class="m-wrap"
- v-permission="'export/exportMusicGroupCourseList'"
- >
- <div class="title">乐团数据导出:</div>
- <select-all
- v-model.trim="teamOrganId"
- class="organSelect"
- style="width: 100%"
- filterable
- multiple
- placeholder="请选择分部"
- clearable
- >
- <el-option
- v-for="(item, index) in selects.branchs"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </select-all>
- <el-date-picker
- v-model.trim="teamTimer"
- style="width: 360px; margin-left: 15px"
- type="daterange"
- value-format="yyyy-MM-dd"
- range-separator="至"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- @change="getWeekTime"
- :picker-options="{
- firstDayOfWeek: 1
- }"
- ></el-date-picker>
- <el-button
- style="margin-left: 10px"
- type="primary"
- @click="exportMusicGroup"
- >导出</el-button
- >
- <!-- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="EXERCISES_SITUATION"
- :exportData="exportDetailService"
- fileName="服务指标明细"
- errorMsg="请选择导出月份"
- /> -->
- </div>
- <div class="m-wrap" v-permission="'export/EXPORT_STUDENT_SUBCOURSE'">
- <div class="title">活动资格导出:</div>
- <select-all
- v-model.trim="activeOrganId"
- class="organSelect"
- style="width: 100%"
- filterable
- multiple
- placeholder="请选择分部"
- clearable
- >
- <el-option
- v-for="(item, index) in selects.branchs"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </select-all>
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="EXPORT_STUDENT_SUBCOURSE"
- :exportData="exportActive"
- fileName="活动资格导出"
- errorMsg="请选择分部"
- :isDownList="true"
- />
- </div>
- <div class="m-wrap" v-permission="'export/EXPORT_STUDENT_SERVE_INFO'">
- <div class="title">乐团学生指标导出:</div>
- <select-all
- v-model.trim="studentServerOrganId"
- class="organSelect"
- style="width: 100%"
- filterable
- multiple
- placeholder="请选择分部"
- clearable
- >
- <el-option
- v-for="(item, index) in selects.branchs"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </select-all>
- <el-date-picker
- v-model.trim="studentServerTimer"
- style="width: 360px; margin-left: 15px"
- type="daterange"
- value-format="yyyy-MM-dd"
- range-separator="至"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- @change="getStudentWeekTime"
- :picker-options="{
- firstDayOfWeek: 1
- }"
- ></el-date-picker>
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="EXPORT_STUDENT_SERVE_INFO"
- :exportData="exportStudentServer"
- fileName="乐团学生指标导出"
- errorMsg="请选择分部"
- :isDownList="false"
- />
- </div>
- <!-- -->
- <div
- class="m-wrap"
- v-permission="'export/EXPORT_TRAINING_STATISTICS'"
- >
- <div class="title">训练统计导出:</div>
- <select-all
- v-model.trim="trainingOrganId"
- class="organSelect"
- style="width: 100%"
- filterable
- multiple
- placeholder="请选择分部"
- clearable
- >
- <el-option
- v-for="(item, index) in selects.branchs"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </select-all>
- <el-date-picker
- v-model.trim="trainingTimer"
- style="width: 360px; margin-left: 15px"
- type="daterange"
- value-format="yyyy-MM-dd"
- range-separator="至"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- :picker-options="{
- firstDayOfWeek: 1
- }"
- ></el-date-picker>
- <!-- @change="getStudentWeekTime" -->
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="EXPORT_TRAINING_STATISTICS"
- :exportData="exporTtraining"
- fileName="训练统计导出"
- errorMsg="请选择分部"
- :isDownList="true"
- />
- </div>
- <!-- 回访统计导出 -->
- <div
- class="m-wrap"
- v-permission="'export/EXPORT_OPERATING_VISIT_STATISTICS'"
- >
- <div class="title">回访统计导出:</div>
- <el-date-picker
- v-model="visitmouth"
- type="month"
- placeholder="选择月"
- value-format="yyyy-MM"
- class="organSelect"
- ></el-date-picker>
- <!-- <el-select v-model.trim="courseScheduleType"
- style="marginLeft:10px"
- filterable
- clearable
- multiple
- placeholder="课程类型">
- <el-option v-for="(item, index) in courseArray"
- :key="index"
- :label="item.label"
- :value="item.value"></el-option>
- </el-select> -->
- <!-- <el-button
- style="margin-left: 10px"
- type="primary"
- @click="exportSalar"
- >导出</el-button
- > -->
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="EXPORT_OPERATING_VISIT_STATISTICS"
- :exportData="exportVisit"
- fileName="回访统计导出"
- errorMsg="请选择月份"
- :flag="!this.visitmouth"
- />
- <!-- <el-tooltip placement="top" popper-class="mTooltip">
- <div slot="content">将只导出当前选择月份已结算的课程课酬。</div>
- <i
- class="el-icon-question micon el-tooltip"
- style="font-size: 18px; color: #f56c6c"
- v-permission="'export/teacherSalary'"
- ></i>
- </el-tooltip> -->
- </div>
- <div class="m-wrap" v-permission="'export/EXPORT_CLOUD_TEACHER_SUM'">
- <div class="title">云教练统计导出:</div>
- <select-all
- v-model.trim="yunOrganId"
- class="organSelect"
- style="width: 100%"
- filterable
- multiple
- placeholder="请选择分部"
- clearable
- >
- <el-option
- v-for="(item, index) in selects.branchs"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </select-all>
- <el-date-picker
- v-model.trim="yunTimer"
- style="width: 360px; margin-left: 15px"
- type="daterange"
- value-format="yyyy-MM-dd"
- range-separator="至"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- :clearable="false"
- :picker-options="{
- firstDayOfWeek: 1
- }"
- ></el-date-picker>
- <!-- @change="getStudentWeekTime" -->
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="EXPORT_CLOUD_TEACHER_SUM"
- :exportData="exporyun"
- fileName="云教练统计导出"
- errorMsg="请选择分部"
- :isDownList="true"
- />
- </div>
- </el-collapse-item>
- <el-collapse-item
- name="3"
- v-if="
- $helpers.permission('export/teacherSalary') ||
- $helpers.permission('export/userCoursesAccount/4388') ||
- $helpers.permission('export/userCashAccountDetail/4389')
- "
- >
- <template slot="title">
- <p class="wrapTitle">财务数据</p>
- </template>
- <div
- class="m-wrap"
- v-permission="'export/EXPORT_OPERATING_REPORT_NEW'"
- >
- <div class="title">经营报表导出:</div>
- <el-date-picker
- v-model="operatingMouth"
- type="month"
- placeholder="选择月"
- value-format="yyyy-MM"
- class="organSelect"
- ></el-date-picker>
- <!-- <el-select v-model.trim="courseScheduleType"
- style="marginLeft:10px"
- filterable
- clearable
- multiple
- placeholder="课程类型">
- <el-option v-for="(item, index) in courseArray"
- :key="index"
- :label="item.label"
- :value="item.value"></el-option>
- </el-select> -->
- <!-- <el-button
- style="margin-left: 10px"
- type="primary"
- @click="exportSalar"
- >导出</el-button
- > -->
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="EXPORT_OPERATING_REPORT_NEW"
- :exportData="exportOperating"
- fileName="经营报表"
- errorMsg="请选择月份"
- :flag="!this.operatingMouth"
- />
- <el-tooltip placement="top" popper-class="mTooltip">
- <div slot="content">将只导出当前选择月份的经营报表。</div>
- <i
- class="el-icon-question micon el-tooltip"
- style="font-size: 18px; color: #f56c6c"
- v-permission="'export/teacherSalary'"
- ></i>
- </el-tooltip>
- </div>
- <div
- class="m-wrap"
- v-permission="'export/EXPORT_OA_SUMMARY_EXPENSES'"
- >
- <div class="title">oa费用汇总:</div>
- <el-date-picker
- v-model="oaCountMouth"
- type="month"
- placeholder="选择月"
- value-format="yyyy-MM"
- class="organSelect"
- ></el-date-picker>
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="EXPORT_OA_SUMMARY_EXPENSES"
- :exportData="exportOaCount"
- :isDownList="true"
- fileName="oa费用汇总"
- errorMsg="请选择月份"
- :flag="!this.oaCountMouth"
- />
- </div>
- <div
- class="m-wrap"
- v-permission="'export/EXPORT_OA_SUMMARY_EXPENSES_DETAIL'"
- >
- <div class="title">oa费用明细:</div>
- <el-date-picker
- v-model="oaDetailMouth"
- type="month"
- placeholder="选择月"
- value-format="yyyy-MM"
- class="organSelect"
- ></el-date-picker>
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="EXPORT_OA_SUMMARY_EXPENSES_DETAIL"
- :exportData="exportOaDetail"
- :isDownList="true"
- fileName="oa费用明细"
- errorMsg="请选择月份"
- :flag="!this.oaDetailMouth"
- />
- </div>
- <div
- class="m-wrap"
- v-permission="'export/EXPORT_OPERATING_SUMMARY_INCOME'"
- >
- <div class="title">经营报表收入汇总:</div>
- <el-date-picker
- v-model="reportCountMouth"
- type="month"
- placeholder="选择月"
- value-format="yyyy-MM"
- class="organSelect"
- ></el-date-picker>
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="EXPORT_OPERATING_SUMMARY_INCOME"
- :exportData="exportCount"
- fileName="经营报表收入汇总"
- :isDownList="true"
- errorMsg="请选择月份"
- :flag="!this.reportCountMouth"
- />
- </div>
- <div class="m-wrap" v-permission="'import/importHumanCost'">
- <div class="title">经营报表外部数据录入:</div>
- <el-upload
- v-permission="'import/importHumanCost'"
- style="display: inline-block; "
- action="/api-web/import/importHumanCost"
- :show-file-list="false"
- :before-upload="reportBeforeUpload"
- accept=".xlsx,.xls"
- :headers="headers"
- :on-error="reportHandleError"
- :on-success="reportHandleSuccess"
- >
- <el-button type="primary">
- 导入
- </el-button>
- </el-upload>
- <el-button
- type="primary"
- @click="downloadTemplateReportOut"
- style="margin-left: 10px;"
- >下载模板</el-button
- >
- </div>
- <div class="m-wrap" v-permission="'export/now'">
- <div class="title">课程收入明细:</div>
- <el-date-picker
- v-model="mouthIncome"
- type="month"
- placeholder="选择月"
- value-format="yyyy-MM"
- class="organSelect"
- ></el-date-picker>
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="EXPORT_COURSE_INCOME"
- :exportData="exportIncome"
- fileName="课程收入明细导出"
- errorMsg="请选择月份"
- :flag="!this.mouthIncome"
- />
- </div>
- <div class="m-wrap" v-permission="'export/teacherSalary'">
- <div class="title">课酬导出:</div>
- <el-date-picker
- v-model="mouth"
- type="month"
- placeholder="选择月"
- value-format="yyyy-MM-dd"
- class="organSelect"
- ></el-date-picker>
- <!-- <el-select v-model.trim="courseScheduleType"
- style="marginLeft:10px"
- filterable
- clearable
- multiple
- placeholder="课程类型">
- <el-option v-for="(item, index) in courseArray"
- :key="index"
- :label="item.label"
- :value="item.value"></el-option>
- </el-select> -->
- <!-- <el-button
- style="margin-left: 10px"
- type="primary"
- @click="exportSalar"
- >导出</el-button
- > -->
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="TEACHER_SALARY"
- :exportData="exportSalar"
- fileName="课酬导出"
- errorMsg="请选择月份"
- :flag="!this.mouth"
- />
- <el-tooltip placement="top" popper-class="mTooltip">
- <div slot="content">将只导出当前选择月份已结算的课程课酬。</div>
- <i
- class="el-icon-question micon el-tooltip"
- style="font-size: 18px; color: #f56c6c"
- v-permission="'export/teacherSalary'"
- ></i>
- </el-tooltip>
- </div>
- <div class="m-wrap" v-permission="'export/userCoursesAccount/4388'">
- <div class="title">课程余额明细:</div>
- <select-all
- v-model.trim="AccountOrganId"
- class="organSelect"
- style="width: 100%"
- filterable
- multiple
- placeholder="请选择分部"
- clearable
- >
- <el-option
- v-for="(item, index) in selects.branchs"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </select-all>
- <el-date-picker
- v-model.trim="AccountTimer"
- style="width: 360px; margin-left: 15px"
- type="daterange"
- value-format="yyyy-MM-dd"
- range-separator="至"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- :picker-options="{
- firstDayOfWeek: 1
- }"
- ></el-date-picker>
- <!-- <el-button
- style="margin-left: 10px"
- type="primary"
- @click="exportAccount"
- >导出</el-button
- > -->
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="USER_COURSES_ACCOUNT"
- :exportData="exportAccount"
- fileName="课程余额明细"
- errorMsg="请选择月份"
- />
- </div>
- <div
- class="m-wrap"
- v-permission="'export/userCashAccountDetail/4389'"
- >
- <div class="title">账户余额明细:</div>
- <select-all
- v-model.trim="AccountDetailOrganId"
- class="organSelect"
- style="width: 100%"
- filterable
- multiple
- placeholder="请选择分部"
- clearable
- >
- <el-option
- v-for="(item, index) in selects.branchs"
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </select-all>
- <el-date-picker
- v-model.trim="AccountDetailTimer"
- style="width: 360px; margin-left: 15px"
- type="daterange"
- value-format="yyyy-MM-dd"
- range-separator="至"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- :picker-options="{
- firstDayOfWeek: 1
- }"
- ></el-date-picker>
- <!-- <el-button
- style="margin-left: 10px"
- type="primary"
- @click="exportDetailAccount"
- >导出</el-button
- > -->
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="USER_CASH_ACCOUNT_DETAIL"
- :exportData="exportAccount"
- fileName="课程余额明细"
- errorMsg="请选择月份"
- />
- </div>
- </el-collapse-item>
- <!-- <el-collapse-item
- name="4"
- v-if="$helpers.permission('questionnaireUserResult/export/report')"
- >
- <template slot="title">
- <p class="wrapTitle">其他数据</p>
- </template>
- <div
- class="m-wrap"
- v-if="$helpers.permission('questionnaireUserResult/export/report')"
- >
- <div class="title">问卷调查:</div>
- <el-select
- v-model.trim="questionActiveType"
- class="organSelect"
- style="width: 100%"
- filterable
- placeholder="请选择导出类型"
- clearable
- >
- <el-option
- label="云教练用户反馈"
- value="CLOUD_TEACHER_FEEDBACK"
- ></el-option>
- </el-select>
- <el-button
- style="margin-left: 10px"
- type="primary"
- @click="exportQuestion"
- >导出</el-button
- >
- <ExportChiose
- style="margin-left: 10px"
- ExportEnum="USER_CASH_ACCOUNT_DETAIL"
- :exportData="{ activeType: this.questionActiveType }"
- fileName="问卷调查"
- errorMsg="请选择月份"
- />
- </div>
- </el-collapse-item> -->
- </el-collapse>
- </div>
- </div>
- </template>
- <script>
- import { exportTeacherSalary } from "@/api/generalSettings";
- import { courseType, courseListType } from "@/utils/searchArray";
- import ExportChiose from "@/components/Export-chiose";
- import { Export } from "@/utils/downLoadFile";
- import cleanDeep from "clean-deep";
- import qs from "qs";
- import dayjs from "dayjs";
- import axios from "axios";
- import { getToken, getTenantId } from "@/utils/auth";
- import { getTimes } from "@/utils";
- import load from "@/utils/loading";
- export default {
- name: "reportForm",
- components: {
- ExportChiose
- },
- data() {
- return {
- mouthIncome: "",
- mouth: "",
- organIdList: [],
- teacherDefaultSalaryOrganId: [],
- courseArray: courseType,
- courseListType,
- courseScheduleType: [],
- musicTeamNum: [],
- studentOrganId: [],
- studentMonth: "",
- attendanceOrganId: [],
- attendanceCourseType: "MUSIC",
- timer: [],
- leBaoTimer: [],
- AccountOrganId: [],
- AccountTimer: [],
- AccountDetailOrganId: [],
- AccountDetailTimer: [],
- trainOrganId: null,
- questionActiveType: "CLOUD_TEACHER_FEEDBACK",
- vipOrganId: [],
- serviceOrganId: [], // 服务报表
- serviceTimer: [],
- Abnormal: {
- organIds: []
- },
- activeName: ["1", "2", "3", "4"],
- vipStudentCourseOrganId: [],
- musicStudentCourseOrganId: [],
- VipStudentOrganId: [],
- teamOrganId: [],
- teamTimer: [],
- activeOrganId: [],
- studentServerOrganId: [],
- studentServerTimer: [],
- trainingOrganId: [],
- trainingTimer: [],
- visitmouth: "",
- operatingMouth: "",
- reportCountMouth: "",
- oaDetailMouth: "",
- oaCountMouth: "",
- cloudTimer: [],
- yunOrganId: [],
- yunTimer: [
- dayjs()
- .set("date", 1)
- .format("YYYY-MM-DD"),
- dayjs().format("YYYY-MM-DD")
- ],
- trainTeacherOrganId: [],
- trainTeacherTimer: [],
- pickerOptions: {
- firstDayOfWeek: 1,
- disabledDate(time) {
- return time.getTime() + 86400000 > new Date().getTime();
- }
- },
- headers: {
- Authorization: getToken(),
- tenantId: getTenantId()
- }
- };
- },
- mounted() {
- this.$store.dispatch("setBranchs");
- },
- methods: {
- reportBeforeUpload(file) {
- load.startLoading();
- },
- reportHandleSuccess(response, file, fileList) {
- // 导入商品
- // 报表导出
- load.endLoading();
- if (response.code == 200) {
- this.$message.success(response.msg || "导入成功");
- } else if (response.code == 0) {
- let str = this.fomatStr(response.msg);
- this.$alert(str, "导入结果", {
- confirmButtonText: "确定",
- dangerouslyUseHTMLString: true,
- callback: action => {}
- });
- } else {
- this.$message.error(response.msg);
- }
- },
- reportHandleError(err, file, fileList) {
- load.endLoading();
- },
- downloadTemplateReportOut() {
- window.location.href =
- "https://oss.dayaedu.com/daya-docs/%E7%BB%8F%E8%90%A5%E6%8A%A5%E8%A1%A8%E5%A4%96%E9%83%A8%E6%95%B0%E6%8D%AE%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xls";
- },
- exportMusicGroup() {
- if (this.organIdList.length < 1) {
- this.$message.error("请至少选择一个分部");
- return;
- }
- let url = "/api-web/export/musicGroupRegister";
- let data = { organIds: this.organIdList.join(",") };
- const options = {
- method: "POST",
- headers: {
- Authorization: getToken(),
- tenantId: getTenantId()
- },
- data: qs.stringify(cleanDeep(data)),
- url,
- responseType: "blob"
- };
- this.$confirm("您确定导出招生情况汇总表", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- })
- .then(() => {
- load.startLoading();
- axios(options)
- .then(res => {
- let blob = new Blob([res.data], {
- // type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
- type: "application/vnd.ms-excel;charset=utf-8"
- //word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
- });
- let text = new Response(blob).text();
- text.then(res => {
- // 判断是否报错
- if (res.indexOf("code") != -1) {
- let json = JSON.parse(res);
- if (json.code == 403) {
- this.$message.error(`登录过期,请重新登录!`);
- setTimeout(() => {
- this.$store.dispatch("user/resetToken").then(() => {
- location.reload();
- });
- }, 1000);
- return;
- }
- this.$message.error(json.msg);
- } else {
- let objectUrl = URL.createObjectURL(blob);
- let link = document.createElement("a");
- let nowTime = new Date();
- let ymd =
- nowTime.getFullYear() +
- "" +
- (nowTime.getMonth() + 1) +
- "" +
- nowTime.getDate();
- let fname = ymd + "招生情况汇总表.xls"; //下载文件的名字
- link.href = objectUrl;
- link.setAttribute("download", fname);
- document.body.appendChild(link);
- link.click();
- }
- });
- load.endLoading();
- })
- .catch(error => {
- this.$message.error("导出数据失败,请联系管理员");
- load.endLoading();
- });
- })
- .catch(() => {});
- },
- exportMusicTeamNum() {
- let organIds = this.musicTeamNum.join(",");
- let url = "/api-web/export/musicGroupNormalStudentNum";
- let data = { organIds };
- const options = {
- method: "POST",
- headers: {
- Authorization: getToken(),
- tenantId: getTenantId()
- },
- data: qs.stringify(cleanDeep(data)),
- url,
- responseType: "blob"
- };
- this.$confirm("您确定导出乐团在读人数", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- })
- .then(() => {
- load.startLoading();
- axios(options)
- .then(res => {
- let blob = new Blob([res.data], {
- // type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
- type: "application/vnd.ms-excel;charset=utf-8"
- //word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
- });
- let text = new Response(blob).text();
- text.then(res => {
- // 判断是否报错
- if (res.indexOf("code") != -1) {
- let json = JSON.parse(res);
- if (json.code == 403) {
- this.$message.error(`登录过期,请重新登录!`);
- setTimeout(() => {
- this.$store.dispatch("user/resetToken").then(() => {
- location.reload();
- });
- }, 1000);
- return;
- }
- this.$message.error(json.msg);
- } else {
- let objectUrl = URL.createObjectURL(blob);
- let link = document.createElement("a");
- let nowTime = new Date();
- let ymd =
- nowTime.getFullYear() +
- "" +
- (nowTime.getMonth() + 1) +
- "" +
- nowTime.getDate();
- let fname = ymd + "乐团在读人数.xls"; //下载文件的名字
- link.href = objectUrl;
- link.setAttribute("download", fname);
- document.body.appendChild(link);
- link.click();
- }
- });
- load.endLoading();
- })
- .catch(error => {
- this.$message.error("导出数据失败,请联系管理员");
- load.endLoading();
- });
- })
- .catch(() => {});
- },
- exportQuestion() {
- Export(
- this,
- {
- url: "/api-web/questionnaireUserResult/export",
- fileName: "问卷调查.xls",
- method: "get",
- params: { activeType: this.questionActiveType }
- },
- "您确定导出问卷调查?"
- );
- },
- getNowDateAndMonday(time) {
- let timestamp = new Date(time.replace(/-/g, "/")).getTime();
- let serverDate = new Date(time);
- if (serverDate.getDay() == 0) {
- timestamp -= 7 * 24 * 60 * 60 * 1000;
- }
- let mondayTime =
- timestamp - (serverDate.getDay() - 1) * 24 * 60 * 60 * 1000;
- let mondayData = new Date(mondayTime);
- //年
- let mondayY = mondayData.getFullYear();
- //月
- let mondayM =
- mondayData.getMonth() + 1 < 10
- ? "0" + (mondayData.getMonth() + 1)
- : mondayData.getMonth() + 1;
- //日
- let mondayD =
- mondayData.getDate() < 10
- ? "0" + mondayData.getDate()
- : mondayData.getDate();
- let str = mondayY + "-" + mondayM + "-" + mondayD;
- return str;
- },
- getNowDateAndSunday(time) {
- let timestamp = new Date(time.replace(/-/g, "/")).getTime();
- let serverDate = new Date(time);
- let num = 7 - serverDate.getDay();
- if (num == 7) {
- num = 0;
- }
- let sundayTiem = timestamp + num * 24 * 60 * 60 * 1000;
- let SundayData = new Date(sundayTiem);
- //年
- let tomorrowY = SundayData.getFullYear(); //月
- let tomorrowM =
- SundayData.getMonth() + 1 < 10
- ? "0" + (SundayData.getMonth() + 1)
- : SundayData.getMonth() + 1;
- //日
- let tomorrowD =
- SundayData.getDate() < 10
- ? "0" + SundayData.getDate()
- : SundayData.getDate();
- let str = tomorrowY + "-" + tomorrowM + "-" + tomorrowD;
- return str;
- },
- getWeekTime(val) {
- if (val && val.length > 0) {
- let start = this.getNowDateAndMonday(val[0]);
- let end = this.getNowDateAndSunday(val[1]);
- this.teamTimer.splice(0, 1, start);
- this.teamTimer.splice(1, 1, end);
- }
- },
- getStudentWeekTime(val) {
- let start = this.getNowDateAndMonday(val[0]);
- let end = this.getNowDateAndSunday(val[1]);
- this.studentServerTimer.splice(0, 1, start);
- this.studentServerTimer.splice(1, 1, end);
- },
- exportMusicGroup() {
- let params = {
- ...getTimes(this.teamTimer, ["startTime", "endTime"]),
- organId: this.teamOrganId.join(",")
- };
- Export(
- this,
- {
- method: "post",
- url: "/api-web/export/exportMusicGroupCourseList",
- params: this.$helpers.qs.stringify({
- ...params
- })
- },
- "是否确认导出报表?"
- );
- }
- },
- computed: {
- exportTeacherTrain() {
- // if (this.trainTeacherTimer.length < 1) {
- // this.$message.error("请选择时间段");
- // return;
- // }
- // if (this.trainTeacherOrganId.length < 1) {
- // this.$message.error("请选择分部");
- // return;
- // }
- let startTime = this.trainTeacherTimer[0] || null;
- let endTime = this.trainTeacherTimer[1] || null;
- // Export(
- // this,
- // {
- // url: "/api-web/export/teacherCloudTrainingList",
- // fileName: "老师使用云教练数据.xls",
- // method: "post",
- // params: qs.stringify({
- // organIdList: this.trainTeacherOrganId.join(","),
- // startTime,
- // endTime,
- // }),
- // },
- // "您确定导出老师使用云教练数据?"
- // );
- let obj = {
- organId: this.trainTeacherOrganId.join(","),
- startTime,
- endTime
- };
- return obj;
- },
- exportAttendance() {
- let classStartDate, classEndDate;
- if (this.timer && this.timer.length > 0) {
- classStartDate = this.timer[0];
- classEndDate = this.timer[1];
- } else {
- classStartDate = null;
- classEndDate = null;
- }
- return {
- organId: this.attendanceOrganId.join(","),
- groupType: this.attendanceCourseType,
- classStartDate,
- classEndDate
- };
- },
- exportTrain() {
- let cloudTeacherTrainStartDate, cloudTeacherTrainEndDate;
- if (this.cloudTimer && this.cloudTimer.length > 0) {
- cloudTeacherTrainStartDate = this.cloudTimer[0];
- cloudTeacherTrainEndDate = this.cloudTimer[1];
- } else {
- cloudTeacherTrainStartDate = null;
- cloudTeacherTrainEndDate = null;
- }
- let obj = {
- organId: this.trainOrganId,
- cloudTeacherTrainStartDate,
- cloudTeacherTrainEndDate
- };
- console.log(obj, "exportTrain");
- return obj;
- },
- exportDefaultSalary() {
- let organIdList = this.teacherDefaultSalaryOrganId.join(",");
- let url = "/api-web/export/teacherDefaultSalary";
- let data = { organIdList };
- return data;
- },
- exportStudent() {
- let studentOrganId = this.studentOrganId.join(",");
- return { organIds: studentOrganId, date: this.studentMonth };
- },
- exportLeBao() {
- let endTime, startTime;
- if (this.leBaoTimer && this.leBaoTimer.length > 1) {
- startTime = this.leBaoTimer[0];
- let end = this.leBaoTimer[1];
- end = new Date(end);
- end = new Date(end.getFullYear(), end.getMonth() + 1, 0);
- endTime = dayjs(end).format("YYYY-MM-DD");
- }
- return { startTime: startTime, endTime: endTime };
- },
- exportVip() {
- // if (!this.vipOrganId.length < 0) {
- // this.$message.error("请选择分部");
- // return;
- // }
- let data = {
- organId: this.vipOrganId.join(",")
- };
- return data;
- },
- exportVipStudent() {
- let data = {
- organId: this.VipStudentOrganId.join(",")
- };
- return data;
- },
- exportActive() {
- let data = {
- organId: this.activeOrganId.join(",")
- };
- return data;
- },
- exportStudentServer() {
- let sunday, monday;
- if (this.studentServerTimer && this.studentServerTimer.length > 1) {
- monday = this.studentServerTimer[0];
- sunday = this.studentServerTimer[1];
- } else {
- monday = null;
- sunday = null;
- }
- return {
- monday,
- sunday,
- organId: this.studentServerOrganId.join(",")
- };
- },
- exportDetailService() {
- let sunday, monday;
- if (this.serviceTimer && this.serviceTimer.length > 1) {
- monday = this.serviceTimer[0];
- sunday = this.serviceTimer[1];
- } else {
- monday = null;
- sunday = null;
- }
- return {
- monday: monday,
- sunday: sunday,
- organId: this.serviceOrganId.join(",")
- };
- },
- exportAbnormal() {
- console.log(this.Abnormal);
- return {
- organIds: this.Abnormal.organIds.join(",")
- };
- },
- exportSalar() {
- // if (!this.mouth) {
- // this.$message.error("请选择导出月份");
- // return;
- // }
- // let courseTypeList = this.courseScheduleType.join(',')
- // let url = "/api-web/export/teacherSalary";
- let data = { date: this.mouth };
- return data;
- },
- exportIncome() {
- let data = { date: this.mouthIncome };
- return data;
- },
- exportOperating() {
- let data = { date: this.operatingMouth };
- return data;
- },
- exportOaCount() {
- let data = { month: this.oaCountMouth };
- return data;
- },
- exportOaDetail() {
- let data = { month: this.oaDetailMouth };
- return data;
- },
- exportCount() {
- let data = { month: this.reportCountMouth };
- return data;
- },
- exportVisit() {
- let data = { month: this.visitmouth };
- return data;
- },
- exportAccount() {
- let endTime, startTime;
- if (this.AccountTimer && this.AccountTimer.length > 1) {
- startTime = this.AccountTimer[0];
- endTime = this.AccountTimer[1];
- } else {
- startTime = null;
- endTime = null;
- }
- return {
- startTime: startTime,
- endTime: endTime,
- organId: this.AccountOrganId.join(",")
- };
- },
- exporTtraining() {
- let endTime, startTime;
- if (this.trainingTimer && this.trainingTimer.length > 1) {
- startTime = this.trainingTimer[0];
- endTime = this.trainingTimer[1];
- } else {
- startTime = null;
- endTime = null;
- }
- return {
- startDate: startTime,
- endDate: endTime,
- organId: this.trainingOrganId.join(",")
- };
- },
- exporyun() {
- let endTime, startTime;
- if (this.yunTimer && this.yunTimer.length > 1) {
- startTime = this.yunTimer[0];
- endTime = this.yunTimer[1];
- } else {
- startTime = null;
- endTime = null;
- }
- return {
- startDate: startTime,
- endDate: endTime,
- organId: this.yunOrganId.join(",")
- };
- },
- exportDetailAccount() {
- let endTime, startTime;
- if (this.AccountDetailTimer && this.AccountDetailTimer.length > 1) {
- startTime = this.AccountDetailTimer[0];
- endTime = this.AccountDetailTimer[1];
- } else {
- startTime = null;
- endTime = null;
- }
- return {
- startTime: startTime,
- endTime: endTime,
- organId: this.AccountDetailOrganId.join(",")
- };
- }
- }
- // AccountDetailTimer
- };
- </script>
- <style lang="scss" scoped>
- .m-container {
- // margin-top: 20px;
- .m-wrap {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- width: 100%;
- align-items: center;
- margin-bottom: 16px;
- .newBand {
- margin: 0 5px 0 10px;
- }
- .title {
- width: 150px;
- // height: 40px;
- // line-height: 40px;
- text-align: right;
- color: #212121;
- font-weight: 600;
- }
- .organSelect {
- width: 260px !important;
- }
- .el-tooltip.micon {
- width: 20px;
- height: 20px;
- position: relative;
- margin-left: 8px;
- // top: 12px;
- }
- }
- .formCollapse {
- border: none;
- ::v-deep .el-collapse-item__header {
- padding: 0 15px;
- border-bottom: none;
- background-color: #f8f8f8;
- }
- ::v-deep .el-collapse-item__wrap {
- padding: 15px;
- border-bottom: none;
- }
- ::v-deep .el-collapse-item__arrow.is-active {
- transform: rotate(-90deg);
- }
- // 默认方向
- ::v-deep .el-collapse-item__arrow,
- .el-tabs__nav {
- transform: rotate(90deg);
- }
- ::v-deep .el-collapse-item__content {
- padding-bottom: 0px !important;
- }
- .wrapTitle {
- font-size: 18px;
- position: relative;
- font-weight: 600;
- margin-left: 12px;
- &::after {
- position: absolute;
- width: 4px;
- height: 18px;
- background: var(--color-primary);
- border-radius: 2px;
- left: -13px;
- top: 14px;
- content: "";
- }
- }
- }
- }
- ::v-deep .el-input__icon.el-icon-date {
- height: 40px !important;
- }
- </style>
|