chunk-1a43554a.39f1a826.js 29 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1a43554a"],{"09f4":function(e,a,t){"use strict";t.d(a,"a",(function(){return u})),Math.easeInOutQuad=function(e,a,t,l){return e/=l/2,e<1?t/2*e*e+a:(e--,-t/2*(e*(e-2)-1)+a)};var l=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function u(e,a,t){var u=n(),o=e-u,i=20,s=0;a="undefined"===typeof a?500:a;var c=function e(){s+=i;var n=Math.easeInOutQuad(s,u,o,a);r(n),s<a?l(e):t&&"function"===typeof t&&t()};c()}},"62b1":function(e,a,t){},"92e3":function(e,a,t){"use strict";t.d(a,"u",(function(){return i})),t.d(a,"F",(function(){return s})),t.d(a,"s",(function(){return c})),t.d(a,"c",(function(){return d})),t.d(a,"C",(function(){return b})),t.d(a,"S",(function(){return v})),t.d(a,"R",(function(){return m})),t.d(a,"d",(function(){return f})),t.d(a,"J",(function(){return p})),t.d(a,"w",(function(){return h})),t.d(a,"U",(function(){return y})),t.d(a,"t",(function(){return S})),t.d(a,"o",(function(){return g})),t.d(a,"T",(function(){return _})),t.d(a,"M",(function(){return I})),t.d(a,"W",(function(){return T})),t.d(a,"X",(function(){return E})),t.d(a,"L",(function(){return O})),t.d(a,"P",(function(){return F})),t.d(a,"A",(function(){return C})),t.d(a,"l",(function(){return A})),t.d(a,"Q",(function(){return R})),t.d(a,"V",(function(){return L})),t.d(a,"G",(function(){return N})),t.d(a,"m",(function(){return w})),t.d(a,"v",(function(){return M})),t.d(a,"K",(function(){return D})),t.d(a,"f",(function(){return k})),t.d(a,"e",(function(){return x})),t.d(a,"I",(function(){return G})),t.d(a,"H",(function(){return P})),t.d(a,"O",(function(){return j})),t.d(a,"E",(function(){return U})),t.d(a,"a",(function(){return $})),t.d(a,"x",(function(){return H})),t.d(a,"p",(function(){return V})),t.d(a,"n",(function(){return B})),t.d(a,"q",(function(){return Y})),t.d(a,"g",(function(){return q})),t.d(a,"D",(function(){return X})),t.d(a,"r",(function(){return K})),t.d(a,"B",(function(){return Q})),t.d(a,"z",(function(){return W})),t.d(a,"y",(function(){return z})),t.d(a,"h",(function(){return J})),t.d(a,"k",(function(){return Z})),t.d(a,"i",(function(){return ee})),t.d(a,"j",(function(){return ae})),t.d(a,"N",(function(){return te})),t.d(a,"b",(function(){return re}));var l=t("b85c"),r=t("3835"),n=t("267e"),u=sessionStorage.getItem("tenantConfig");u=u?JSON.parse(u):{};var o=u.tenantId,i=null,s=null;1==o?(s=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],i=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"}]):(s=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],i=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"}]);var c=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"}],d=[{label:"正常签到",value:1},{label:"异常签到",value:0}],b=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],v=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],m=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],f=[].concat(m,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),p=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"MEMBER",label:"会员购买"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"2020双十一活动"},{value:"DOUBLE_ELEVEN2021",label:"2021双十一活动"},{value:"DEGREE",label:"儿童节活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"SUBJECT_CHANGE",label:"声部更换"},{value:"MAINTENANCE",label:"乐器保养"},{value:"ADD_STUDENT",label:"乐团报名"},{value:"REPLACEMENT",label:"乐器置换"},{value:"SCHOOL",label:"学校订单"},{value:"PERSONAL",label:"个人订单"},{value:"OTHER",label:"其他"},{value:"ACTIVITY",label:"活动购买"},{value:"LIVE_BUY",label:"直播购物"}],h=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],y=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"5",text:"报名结束"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"},{value:"6",text:"暂停"}],S=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],g=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],_=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],I=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],T=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],E=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"VIP课回访",label:"VIP课回访"},{value:"乐理课回访",label:"乐理课回访"},{value:"网管课回访",label:"网管课回访"}]},{value:"云教练",label:"云教练",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],O=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"}],F=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],C=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],A=[{value:"1",label:"一年级"},{value:"2",label:"二年级"},{value:"3",label:"三年级"},{value:"4",label:"四年级"},{value:"5",label:"五年级"},{value:"6",label:"六年级"},{value:"7",label:"初一"},{value:"8",label:"初二"},{value:"9",label:"初三"},{value:"10",label:"高一"},{value:"11",label:"高二"},{value:"12",label:"高三"}],R=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],L=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],N=le(n["musicGroupType"]),w=le(n["classTime"]),M=le(n["courseViewType"]),D=le(n["payOrderType"]),k=le(n["auditType"]),x=le(n["auditPaymentType"]),G=le(n["orderServerType"]),P=le(n["orderAuditType"]),j=le(n["rewardModeType"]),U=le(n["musicClassType"]),$=le(n["ProbationPeriodStatus"]),H=le(n["downListType"]),V=le(n["conclusion"]),B=le(n["clientType"]),Y=le(n["couponType"]),q=le(n["backType"]),X=le(n["memberEnum"]),K=le(n["coupontypeDetail"]),Q=le(n["issue"]),W=le(n["feedbackType"]),z=le(n["feedbackTypeDesc"]),J=le(n["campState"]),Z=le(n["catgGoupType"]),ee=le(n["catRole"]),ae=le(n["catType"]),te=le(n["quiteReason"]);function le(e){var a=[];for(var t in e)a.push({label:e[t],value:t});return a}var re=function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],t=Object(r["a"])(a,2),n=t[0],u=t[1],o={};if(e&&e.length){var i,s=Object(l["a"])(e);try{for(s.s();!(i=s.n()).done;){var c=i.value;o[c[n]]=c[u]}}catch(d){s.e(d)}finally{s.f()}}return o}},a454:function(e,a,t){"use strict";t("62b1")},d732:function(e,a,t){"use strict";t.r(a);var l=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"m-container"},[e._m(0),e._v(" "),t("div",{staticClass:"m-core"},[0==e.isOpen?t("auth",{attrs:{auths:"courseScheduleTeacherSalary/openSalaryConfirm"}},[t("div",{staticClass:"newBand",on:{click:e.openSalary}},[e._v("开启课酬确认")])]):e._e(),e._v(" "),1==e.isOpen?t("auth",{attrs:{auths:"courseScheduleTeacherSalary/closeSalaryConfirm"}},[t("div",{staticClass:"newBand",on:{click:e.closeSalary}},[e._v("关闭课酬确认")])]):e._e(),e._v(" "),t("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[t("el-form-item",[t("el-input",{attrs:{clearable:"",placeholder:"课程编号/课程组名称"},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:function(a){a.target.blur(),e.$refs.searchForm.save(),e.search()}(a)}},model:{value:e.searchForm.search,callback:function(a){e.$set(e.searchForm,"search","string"===typeof a?a.trim():a)},expression:"searchForm.search"}})],1),e._v(" "),t("el-form-item",{attrs:{prop:"organId"}},[t("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organIdList,callback:function(a){e.$set(e.searchForm,"organIdList","string"===typeof a?a.trim():a)},expression:"searchForm.organIdList"}},e._l(e.selects.branchs,(function(e,a){return t("el-option",{key:a,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),t("el-form-item",{attrs:{prop:"organId"}},[t("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择课程组类型"},model:{value:e.searchForm.groupType,callback:function(a){e.$set(e.searchForm,"groupType","string"===typeof a?a.trim():a)},expression:"searchForm.groupType"}},e._l(e.groupTypeList,(function(e,a){return t("el-option",{key:a,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),t("el-form-item",{attrs:{prop:"belongDaya"}},[t("el-select",{attrs:{clearable:"",placeholder:"请选择课酬类型"},model:{value:e.searchForm.belongDaya,callback:function(a){e.$set(e.searchForm,"belongDaya","string"===typeof a?a.trim():a)},expression:"searchForm.belongDaya"}},e._l(e.belongDayaOption,(function(e,a){return t("el-option",{key:a,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),t("el-form-item",[t("remoteSearch",{attrs:{commit:"setTeachers"},model:{value:e.searchForm.teacherId,callback:function(a){e.$set(e.searchForm,"teacherId",a)},expression:"searchForm.teacherId"}})],1),e._v(" "),t("el-form-item",[t("el-select",{attrs:{placeholder:"正常签到",clearable:""},model:{value:e.searchForm.signInStatus,callback:function(a){e.$set(e.searchForm,"signInStatus",a)},expression:"searchForm.signInStatus"}},[t("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),t("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),t("el-form-item",[t("el-select",{attrs:{placeholder:"正常签退",clearable:""},model:{value:e.searchForm.signOutStatus,callback:function(a){e.$set(e.searchForm,"signOutStatus",a)},expression:"searchForm.signOutStatus"}},[t("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),t("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),t("el-form-item",[t("el-select",{attrs:{placeholder:"状态",clearable:""},model:{value:e.searchForm.confirmStatus,callback:function(a){e.$set(e.searchForm,"confirmStatus",a)},expression:"searchForm.confirmStatus"}},[t("el-option",{attrs:{label:"待确定",value:"1"}}),e._v(" "),t("el-option",{attrs:{label:"已确定",value:"2"}}),e._v(" "),t("el-option",{attrs:{label:"已完成",value:"3"}})],1)],1),e._v(" "),t("el-form-item",[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{clearable:!1,type:"month","value-format":"yyyy-MM",placeholder:"选择年月"},model:{value:e.searchForm.month,callback:function(a){e.$set(e.searchForm,"month",a)},expression:"searchForm.month"}})],1),e._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")]),e._v(" "),t("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")]),e._v(" "),t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/isSettlementCourseSalarys",expression:"'export/isSettlementCourseSalarys'"}],attrs:{type:"primary"},on:{click:e.onExport}},[e._v("导出")])],1)],1),e._v(" "),t("div",{staticClass:"tableWrap"},[t("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[t("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),e._v(" "),t("el-table-column",{attrs:{align:"center",prop:"groupType",width:"100",label:"课程组类型"},scopedSlots:e._u([{key:"default",fn:function(a){return[e._v(e._s(e._f("coursesType")(a.row.groupType)))]}}])}),e._v(" "),t("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",label:"课程编号"}}),e._v(" "),t("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",width:"150",label:"时间"},scopedSlots:e._u([{key:"default",fn:function(a){return[e._v(e._s(e._f("dateForMinFormat")(a.row.startClassTime)))]}}])}),e._v(" "),t("el-table-column",{attrs:{align:"center",prop:"courseName",width:"120",label:"课程名称"}}),e._v(" "),t("el-table-column",{attrs:{align:"center",prop:"teacherId",label:"老师编号"}}),e._v(" "),t("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"老师姓名"}}),e._v(" "),t("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",width:"150",label:"签到时间"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("p",{class:1==a.row.signInStatus?"":"red"},[e._v("\n "+e._s(e._f("dateForMinFormat")(a.row.signInTime))+"\n ")]),e._v(" "),t("p",{class:1==a.row.signInStatus?"":"red"},[e._v("\n "+e._s(e._f("attendanceType")(a.row.signInStatus))+"\n ")]),e._v(" "),a.row.signInStatus||0==a.row.signInStatus?e._e():t("p",{staticClass:"red"},[e._v("\n 未签到\n ")])]}}])}),e._v(" "),t("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",width:"150",label:"签退时间"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("p",{class:1==a.row.signOutStatus?"":"red"},[e._v("\n "+e._s(e._f("dateForMinFormat")(a.row.signOutTime))+"\n ")]),e._v(" "),t("p",{class:1==a.row.signOutStatus?"":"red"},[e._v("\n "+e._s(e._f("attendanceOutType")(a.row.signOutStatus))+"\n ")]),e._v(" "),a.row.signOutStatus||0==a.row.signOutStatus?e._e():t("p",{staticClass:"red"},[e._v("\n 未签退\n ")])]}}])}),e._v(" "),t("el-table-column",{attrs:{align:"center",prop:"belongDaya",label:"课酬类型"},scopedSlots:e._u([{key:"default",fn:function(a){return[e._v(e._s(e.belongDaya[a.row.belongDaya]))]}}])}),e._v(" "),t("el-table-column",{attrs:{align:"center",prop:"actualSalary",label:"应发课酬"},scopedSlots:e._u([{key:"default",fn:function(a){return[e._v(e._s(e._f("moneyFormat")(a.row.actualSalary))+"元")]}}])}),e._v(" "),t("el-table-column",{attrs:{align:"center",prop:"reduceSalary",label:"课酬扣款"},scopedSlots:e._u([{key:"default",fn:function(a){return[e._v(e._s(e._f("moneyFormat")(a.row.reduceSalary))+"元")]}}])}),e._v(" "),t("el-table-column",{attrs:{align:"center",prop:"finalSalary",label:"结算课酬"},scopedSlots:e._u([{key:"default",fn:function(a){return[e._v(e._s(e._f("moneyFormat")(a.row.finalSalary))+"元")]}}])}),e._v(" "),t("el-table-column",{attrs:{align:"center",prop:"",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(a){return[e._v(e._s(e._f("confirmFilter")(a.row.confirmStatus)))]}}])}),e._v(" "),t("el-table-column",{attrs:{align:"center",prop:"memo",label:"备注",width:"300"}})],1),e._v(" "),t("pagination",{attrs:{sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(a){return e.$set(e.rules,"total",a)},"update:page":function(a){return e.$set(e.rules,"page",a)},"update:limit":function(a){return e.$set(e.rules,"limit",a)},pagination:e.getList}})],1)],1),e._v(" "),t("el-dialog",{attrs:{title:"课酬调整",visible:e.dialogVisible,width:"400px"},on:{"update:visible":function(a){e.dialogVisible=a}}},[t("div",[t("el-form",{ref:"visibleForm",staticClass:"visibleForm",attrs:{model:e.visibleForm,inline:!0,"label-width":"60px"}},[t("el-form-item",{attrs:{label:"应发",rules:[{required:!0,message:"请填写应发数",trigger:"blur"}],prop:"actualSalary"}},[t("el-input-number",{attrs:{controls:!1,min:0,precision:2,type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.visibleForm.actualSalary,callback:function(a){e.$set(e.visibleForm,"actualSalary","string"===typeof a?a.trim():a)},expression:"visibleForm.actualSalary"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"扣款",rules:[{required:!0,message:"请填写扣款数",trigger:"blur"}],prop:"reduceSalary"}},[t("el-input-number",{attrs:{controls:!1,min:0,precision:2,type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.visibleForm.reduceSalary,callback:function(a){e.$set(e.visibleForm,"reduceSalary","string"===typeof a?a.trim():a)},expression:"visibleForm.reduceSalary"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"实发"}},[t("el-input-number",{attrs:{controls:!1,min:0,precision:2,disabled:"",type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.visibleForm.finalSalary,callback:function(a){e.$set(e.visibleForm,"finalSalary","string"===typeof a?a.trim():a)},expression:"visibleForm.finalSalary"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"说明",rules:[{required:!0,message:"请填写说明",trigger:"blur"}],prop:"memo"}},[t("el-input",{attrs:{type:"textarea",rows:5},model:{value:e.visibleForm.memo,callback:function(a){e.$set(e.visibleForm,"memo","string"===typeof a?a.trim():a)},expression:"visibleForm.memo"}})],1)],1)],1),e._v(" "),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(a){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:e.subreset}},[e._v("确 定")])],1)])],1)},r=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("h2",[t("div",{staticClass:"squrt"}),e._v("\n 课酬列表\n ")])}],n=(t("386d"),t("96cf"),t("1da1")),u=t("6612"),o=t.n(u),i=t("bc3a"),s=t.n(i),c=t("5f87"),d=t("333d"),b=t("bd8f"),v=t("3908"),m=t("267e"),f=t("ed08"),p=t("5a0c"),h=t.n(p),y=t("d8fc"),S=t("92e3"),g={components:{pagination:d["a"],remoteSearch:b["a"]},data:function(){return{belongDaya:m["belongDaya"],searchForm:{search:null,organIdList:null,groupType:null,teacherId:null,signInStatus:null,signOutStatus:null,month:null,confirmStatus:null,belongDaya:null},dialogVisible:!1,visibleForm:{finalSalary:null,reduceSalary:null,actualSalary:null,courseScheduleId:null,teacherId:null,memo:null},isOpen:null,activeRow:null,tableList:[],groupTypeList:S["s"],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){if(!this.searchForm.month){var e=new Date;this.searchForm.month=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())).toISOString().slice(0,7)}},mounted:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("setBranchs");case 2:return e.next=4,this.$store.dispatch("setTeachers");case 4:this.init();case 5:case"end":return e.stop()}}),e,this)})));function a(){return e.apply(this,arguments)}return a}(),methods:{init:function(){this.getList()},getList:function(){var e=this,a=this.getDate();Object(y["f"])(a).then((function(a){200==a.code&&(e.isOpen=a.data.isOpenConfirm,e.tableList=a.data.pageInfo.rows,e.rules.total=a.data.pageInfo.total)}))},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={search:null,organIdList:null,groupType:null,teacherId:null,signInStatus:null,signOutStatus:null,month:h()().format("YYYY-MM"),confirmStatus:null},this.search()},getDate:function(){var e={search:this.searchForm.search,organIdList:this.searchForm.organIdList||null,groupType:this.searchForm.groupType||null,teacherId:this.searchForm.teacherId||null,signInStatus:this.searchForm.signInStatus||null,signOutStatus:this.searchForm.signOutStatus||null,month:this.searchForm.month||null,confirmStatus:this.searchForm.confirmStatus||null,belongDaya:this.searchForm.belongDaya||null,page:this.rules.page,rows:this.rules.limit};return e},openSalary:function(){var e=this;this.$confirm("您确定开启课酬确认?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(y["i"])({month:e.searchForm.month}).then((function(a){200==a.code&&(e.$message.success("开启成功"),e.getList())}))}))},closeSalary:function(){var e=this;this.$confirm("您确定关闭课酬确认?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(y["c"])({month:e.searchForm.month}).then((function(a){200==a.code&&(e.$message.success("关闭成功"),e.getList())}))}))},onExport:function(){var e=this,a="/api-web/export/isSettlementCourseSalarys",t=this.getDate(),l={method:"get",headers:{Authorization:Object(c["b"])(),tenantId:Object(c["a"])()},url:a,params:t,responseType:"blob"};this.$confirm("您确定导出列表?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){v["a"].startLoading(),s()(l).then((function(a){console.log(a);var t=new Blob([a.data],{type:"application/vnd.ms-excel;charset=utf-8"}),l=new Response(t).text();l.then((function(a){if(-1!=a.indexOf("code")){var l=JSON.parse(a);if(403==l.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);e.$message.error(l.msg)}else{var r=URL.createObjectURL(t),n=document.createElement("a"),u=new Date,o=u.getFullYear()+""+(u.getMonth()+1)+u.getDate()+u.getHours()+u.getMinutes(),i=o+"课酬确认.xls";n.href=r,n.setAttribute("download",i),document.body.appendChild(n),n.click()}})),v["a"].endLoading()})).catch((function(a){e.$message.error("导出数据失败,请联系管理员"),v["a"].endLoading()}))})).catch((function(){}))},resetSalary:function(e){var a=this;this.$nextTick((function(){a.visibleForm={finalSalary:e.finalSalary,reduceSalary:e.reduceSalary,actualSalary:e.actualSalary,courseScheduleId:e.courseScheduleId,memo:e.memo,teacherId:e.teacherId}})),this.dialogVisible=!0},subreset:function(){var e=this;this.$refs["visibleForm"].validate((function(a){if(a){var t={courseScheduleId:e.visibleForm.courseScheduleId,currentExpectSalary:e.visibleForm.actualSalary,currentReduceSalary:e.visibleForm.reduceSalary,memo:e.visibleForm.memo,teacherId:e.visibleForm.teacherId};Object(y["r"])(t).then((function(a){200==a.code&&(e.dialogVisible=!1,e.$message.success("调整成功"),e.getList())}))}}))}},filters:{confirmFilter:function(e){if(e){var a={1:"待确认",2:"已确认",3:"已完成"};return a[e]}}},computed:{getActualsalary:function(){return this.visibleForm.actualSalary},getReduceSalary:function(){return this.visibleForm.reduceSalary},belongDayaOption:function(){return Object(f["b"])(m["belongDaya"])}},watch:{getActualsalary:function(e){var a=o()(e);this.visibleForm.finalSalary=Math.max(a.subtract(this.getReduceSalary).value(),0)},getReduceSalary:function(e){var a=o()(this.getActualsalary);this.visibleForm.finalSalary=Math.max(a.subtract(e).value(),0)},dialogVisible:function(e){e||this.$refs["visibleForm"].resetFields()}}},_=g,I=(t("a454"),t("2877")),T=Object(I["a"])(_,l,r,!1,null,"cb796736",null);a["default"]=T.exports},d8fc:function(e,a,t){"use strict";t.d(a,"o",(function(){return o})),t.d(a,"n",(function(){return i})),t.d(a,"j",(function(){return s})),t.d(a,"e",(function(){return c})),t.d(a,"h",(function(){return d})),t.d(a,"l",(function(){return b})),t.d(a,"g",(function(){return v})),t.d(a,"b",(function(){return m})),t.d(a,"s",(function(){return f})),t.d(a,"f",(function(){return p})),t.d(a,"i",(function(){return h})),t.d(a,"c",(function(){return y})),t.d(a,"r",(function(){return S})),t.d(a,"p",(function(){return g})),t.d(a,"q",(function(){return _})),t.d(a,"d",(function(){return I})),t.d(a,"k",(function(){return T})),t.d(a,"a",(function(){return E})),t.d(a,"m",(function(){return O}));var l=t("b775"),r=t("4328"),n=t.n(r),u="/api-web";function o(e){return Object(l["a"])({url:u+"/sysMessage/list",method:"get",params:e})}function i(e){return Object(l["a"])({url:u+"/sysMessage/setRead",method:"post",data:n.a.stringify(e)})}function s(e){return Object(l["a"])({url:u+"/courseSchedule/queryCourseScheduleComplaintsDetail",method:"get",params:e})}function c(e){return Object(l["a"])({url:u+"/courseSchedule/courseScheduleCommplaintAudit",method:"post",data:n.a.stringify(e)})}function d(e){return Object(l["a"])({url:u+"/musicGroupQuit/query",method:"get",params:e})}function b(e){return Object(l["a"])({url:u+"/musicGroupQuit/quitMusicGroup",method:"POST",data:e,requestType:"json"})}function v(e){return Object(l["a"])({url:u+"/teacherLeaveRecord/queryDetail",method:"get",params:e})}function m(e){return Object(l["a"])({url:u+"/teacherLeaveRecord/approve",method:"POST",data:n.a.stringify(e)})}function f(e){return Object(l["a"])({url:u+"/vipGroupManage/vipApplyAudit",method:"POST",data:n.a.stringify(e)})}function p(e){return Object(l["a"])({url:u+"/courseScheduleTeacherSalary/findIsSettlementCourseSalarys",method:"GET",params:e})}function h(e){return Object(l["a"])({url:u+"/courseScheduleTeacherSalary/openSalaryConfirm",method:"GET",params:e})}function y(e){return Object(l["a"])({url:u+"/courseScheduleTeacherSalary/closeSalaryConfirm",method:"GET",params:e})}function S(e){return Object(l["a"])({url:u+"/teacherSalaryModifyLog/add",method:"POST",data:n.a.stringify(e)})}function g(e){return Object(l["a"])({url:u+"/teacherSalaryComplaints/queryPage",method:"GET",params:e})}function _(e){return Object(l["a"])({url:u+"/teacherSalaryComplaints/get",method:"GET",params:e})}function I(e){return Object(l["a"])({url:u+"/teacherSalaryComplaints/complaintsDispose",method:"post",data:n.a.stringify(e)})}function T(e){return Object(l["a"])({url:u+"/teacherAttendance/queryTeacherAttendanceComplaints",method:"post",data:n.a.stringify(e)})}function E(e){return Object(l["a"])({url:u+"/teacherAttendance/agreeTeacherAttendanceComplaints",method:"post",data:n.a.stringify(e)})}function O(e){return Object(l["a"])({url:u+"/teacherAttendance/rejectTeacherAttendanceComplaints",method:"post",data:n.a.stringify(e)})}},ed08:function(e,a,t){"use strict";t.d(a,"b",(function(){return u})),t.d(a,"a",(function(){return o}));var l=t("ade3"),r=(t("c5f6"),t("28a5"),t("a481"),t("6b54"),t("53ca"),t("5a0c")),n=t.n(r);var u=function(e){var a=[];for(var t in e)if(e.hasOwnProperty(t)){var l=e[t],r=t.toLocaleUpperCase();a.push({label:l,value:"TRUE"===r||"FALSE"===r?"TRUE"===r:t})}return a},o=function(e){var a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(a={},Object(l["a"])(a,t[0]||"start",n()(e[0]).isValid()?n()(e[0]).format(r):""),Object(l["a"])(a,t[1]||"end",n()(e[1]).isValid()?n()(e[1]).format(r):""),a):{}}}}]);