123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034 |
- <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>
- <!-- <el-button
- style="margin-left: 10px"
- type="primary"
- @click="exportMusicTeamNum"
- >导出</el-button
- > -->
- <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>
- </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>
- </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-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="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/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 {
- 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: "",
- cloudTimer: [],
- };
- },
- mounted() {
- this.$store.dispatch("setBranchs");
- },
- methods: {
- // exportSalar() {
- // if (!this.mouth) {
- // this.$message.error("请选择导出月份");
- // return;
- // }
- // // let courseTypeList = this.courseScheduleType.join(',')
- // let url = "/api-web/export/teacherSalary";
- // let data = { date: this.mouth };
- // 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(() => {});
- // },
- 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(() => {});
- },
- // exportDefaultSalary() {
- // let organIdList = this.teacherDefaultSalaryOrganId.join(",");
- // let url = "/api-web/export/teacherDefaultSalary";
- // let data = { organIdList };
- // return data;
- // 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(() => {});
- },
- // exportStudent() {
- // if (!this.studentMonth) {
- // this.$message.error("请选择导出月份");
- // return;
- // }
- // let studentOrganId = this.studentOrganId.join(",");
- // let url = "/api-web/export/studentOrder";
- // let data = { organIds: studentOrganId, date: this.studentMonth };
- // 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(() => {});
- // },
- // 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,
- // };
- // Export(
- // this,
- // {
- // url: "/api-web/export/exportStudentAttendances",
- // fileName: "学生考勤.xls",
- // method: "post",
- // params: qs.stringify({
- // organId: this.attendanceOrganId.join(","),
- // groupType: this.attendanceCourseType,
- // classStartDate,
- // classEndDate,
- // }),
- // },
- // "您确定导出学生考勤?"
- // );
- // },
- // exportTrain() {
- // if (!this.trainOrganId) {
- // this.$message.error("请选择分部");
- // return;
- // }
- // return {
- // organId: this.trainOrganId,
- // };
- // Export(
- // this,
- // {
- // url: "/api-web/export/cloudStudyStudentTrainData",
- // fileName: "云教练学员统计.xls",
- // method: "post",
- // params: qs.stringify({
- // organId: this.trainOrganId,
- // }),
- // },
- // "您确定导出云教练学员统计?"
- // );
- // },
- exportQuestion() {
- Export(
- this,
- {
- url: "/api-web/questionnaireUserResult/export",
- fileName: "问卷调查.xls",
- method: "get",
- params: { activeType: this.questionActiveType },
- },
- "您确定导出问卷调查?"
- );
- },
- // 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");
- // } else {
- // this.$message.error("请选择导出月份");
- // return;
- // }
- // Export(
- // this,
- // {
- // url: "/api-web/studentInstrument/export",
- // fileName: "乐保订单.xls",
- // method: "get",
- // params: { startTime: startTime, endTime: endTime },
- // },
- // "您确定导出乐保订单?"
- // );
- // },
- // exportAccount() {
- // let endTime, startTime;
- // if (this.AccountTimer && this.AccountTimer.length > 1) {
- // startTime = this.AccountTimer[0];
- // endTime = this.AccountTimer[1];
- // } else {
- // startTime = null;
- // endTime = null;
- // }
- // Export(
- // this,
- // {
- // url: "/api-web/export/userCoursesAccount",
- // fileName: "课程余额明细.xls",
- // method: "post",
- // params: qs.stringify({
- // startTime: startTime,
- // endTime: endTime,
- // organId: this.AccountOrganId.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;
- // }
- // Export(
- // this,
- // {
- // url: "/api-web/export/userCashAccountDetail",
- // fileName: "账户余额明细.xls",
- // method: "post",
- // params: qs.stringify({
- // startTime: startTime,
- // endTime: endTime,
- // organId: this.AccountDetailOrganId.join(","),
- // }),
- // },
- // "您确定导出账户余额明细?"
- // );
- // },
- // exportVip() {
- // if (!this.vipOrganId.length < 0) {
- // this.$message.error("请选择分部");
- // return;
- // }
- // let data = {
- // organId: this.vipOrganId.join(","),
- // };
- // let url = "/api-web/export/studentVipPractice";
- // const options = {
- // method: "get",
- // headers: {
- // Authorization: getToken(),
- // tenantId: getTenantId(),
- // },
- // params: cleanDeep(data),
- // url,
- // responseType: "form",
- // };
- // this.$confirm("您确定导出VIP网管课耗", "提示", {
- // confirmButtonText: "确定",
- // cancelButtonText: "取消",
- // type: "warning",
- // })
- // .then(() => {
- // load.startLoading();
- // axios(options)
- // .then((res) => {
- // load.endLoading();
- // if (res.data.code == 200) {
- // this.$message.info(res.data.msg);
- // } else if (res.data.code == 403) {
- // this.$message.error(`登录过期,请重新登录!`);
- // setTimeout(() => {
- // this.$store.dispatch("user/resetToken").then(() => {
- // location.reload();
- // });
- // }, 1000);
- // } else {
- // this.$message.error(res.data.msg);
- // }
- // // this.$confirm(res.data.data, "提示", {
- // // confirmButtonText: "确定",
- // // cancelButtonText: "取消",
- // // type: "warning",
- // // }).then(() => {
- // // }).catch(err => {
- // // })
- // })
- // .catch((error) => {
- // this.$message.error("导出数据失败,请联系管理员");
- // load.endLoading();
- // });
- // })
- // .catch(() => {});
- // // Export(
- // // this,
- // // {
- // // url: "/api-web/export/studentVipPractice",
- // // fileName: "vip网管课.xls",
- // // method: "post",
- // // params: qs.stringify({
- // // organId: this.vipOrganId.join(',')
- // // }),
- // // },
- // // "您确定导出vip网管课?"
- // // );
- // },
- // exportDetailService() {
- // let sunday, monday;
- // if (this.serviceTimer && this.serviceTimer.length > 1) {
- // monday = this.serviceTimer[0];
- // sunday = this.serviceTimer[1];
- // } else {
- // monday = null;
- // sunday = null;
- // }
- // Export(
- // this,
- // {
- // url: "/api-web/export/exercisesSituation",
- // fileName: "服务指标明细.xls",
- // method: "post",
- // params: qs.stringify({
- // monday: monday,
- // sunday: sunday,
- // organId: this.serviceOrganId.join(","),
- // }),
- // },
- // "您确定导出服务指标明细?"
- // );
- // },
- 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);
- },
- // exportVipStudent() {
- // let data = {
- // organIdList: this.VipStudentOrganId.join(","),
- // };
- // Export(
- // this,
- // {
- // method: "post",
- // url: "/api-web/export/vipCourseInfo",
- // params: this.$helpers.qs.stringify({
- // ...data,
- // }),
- // },
- // "是否确认导出VIP学员课程管理?"
- // );
- // },
- // exportAbnormal() {
- // let params = this.Abnormal;
- // Export(
- // this,
- // {
- // method: "post",
- // url: "/api-web/export/exportIndexErrData",
- // params: this.$helpers.qs.stringify({
- // ...params,
- // }),
- // },
- // "是否确认导出报表?"
- // );
- // },
- 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: {
- 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;
- },
- exportOperating() {
- let data = { date: this.operatingMouth };
- 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(","),
- };
- },
- 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>
|