1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0c61f302"],{"05e9":function(e,a,t){},"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()}},"638f":function(e,a,t){"use strict";t("05e9")},"92e3":function(e,a,t){"use strict";t.d(a,"u",(function(){return i})),t.d(a,"H",(function(){return s})),t.d(a,"s",(function(){return c})),t.d(a,"c",(function(){return d})),t.d(a,"D",(function(){return b})),t.d(a,"Y",(function(){return v})),t.d(a,"X",(function(){return m})),t.d(a,"d",(function(){return f})),t.d(a,"L",(function(){return p})),t.d(a,"w",(function(){return h})),t.d(a,"ab",(function(){return y})),t.d(a,"t",(function(){return S})),t.d(a,"o",(function(){return g})),t.d(a,"Z",(function(){return _})),t.d(a,"P",(function(){return I})),t.d(a,"cb",(function(){return E})),t.d(a,"db",(function(){return O})),t.d(a,"O",(function(){return T})),t.d(a,"T",(function(){return F})),t.d(a,"B",(function(){return C})),t.d(a,"l",(function(){return L})),t.d(a,"W",(function(){return A})),t.d(a,"bb",(function(){return R})),t.d(a,"I",(function(){return N})),t.d(a,"m",(function(){return w})),t.d(a,"v",(function(){return M})),t.d(a,"M",(function(){return D})),t.d(a,"f",(function(){return k})),t.d(a,"e",(function(){return G})),t.d(a,"K",(function(){return x})),t.d(a,"J",(function(){return j})),t.d(a,"S",(function(){return U})),t.d(a,"G",(function(){return P})),t.d(a,"a",(function(){return $})),t.d(a,"x",(function(){return V})),t.d(a,"p",(function(){return Y})),t.d(a,"n",(function(){return H})),t.d(a,"q",(function(){return B})),t.d(a,"g",(function(){return q})),t.d(a,"F",(function(){return X})),t.d(a,"r",(function(){return Q})),t.d(a,"C",(function(){return W})),t.d(a,"A",(function(){return z})),t.d(a,"z",(function(){return K})),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,"R",(function(){return te})),t.d(a,"N",(function(){return le})),t.d(a,"E",(function(){return re})),t.d(a,"y",(function(){return ne})),t.d(a,"Q",(function(){return ue})),t.d(a,"U",(function(){return oe})),t.d(a,"V",(function(){return ie})),t.d(a,"b",(function(){return ce}));var l=t("2d63"),r=t("768b"),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"},{label:"直播课",value:"LIVE"}]):(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"},{label:"直播课",value:"LIVE"}]);var c=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"},{label:"直播课",value:"LIVE"}],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:"MALL_BUY",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:"直播购物"},{value:"LIVE_GROUP_BUY",label:"直播课购买"}],h=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],y=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",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:"加油包"}],E=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],O=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"续费类回访",label:"续费类回访"},{value:"服务回访",label:"服务回访"},{value:"其他",label:"其他"}]},{value:"云教练",label:"云教练",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],T=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"},{value:"YEEPAY",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:"其它"}],L=[{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:"高三"}],A=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],R=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],N=se(n["musicGroupType"]),w=se(n["classTime"]),M=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],D=se(n["payOrderType"]),k=se(n["auditType"]),G=se(n["auditPaymentType"]),x=se(n["orderServerType"]),j=se(n["orderAuditType"]),U=se(n["rewardModeType"]),P=se(n["musicClassType"]),$=se(n["ProbationPeriodStatus"]),V=se(n["downListType"]),Y=se(n["conclusion"]),H=se(n["clientType"]),B=se(n["couponType"]),q=se(n["backType"]),X=se(n["memberEnum"]),Q=se(n["coupontypeDetail"]),W=se(n["issue"]),z=se(n["feedbackType"]),K=se(n["feedbackTypeDesc"]),J=se(n["campState"]),Z=se(n["catgGoupType"]),ee=se(n["catRole"]),ae=se(n["catType"]),te=se(n["quiteReason"]),le=se(n["payUserType"]),re=se(n["levelStatus"]),ne=se(n["evaluateStatus"]),ue=se(n["problemType"]),oe=se(n["schoolUserType"]),ie=se(n["shareLiveType"]);function se(e){var a=[];for(var t in e)a.push({label:e[t],value:t});return a}var ce=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}},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",isForzenWithQueryCondition:!0},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("c80c")),u=(t("96cf"),t("3b8d")),o=t("6612"),i=t.n(o),s=t("bc3a"),c=t.n(s),d=t("5f87"),b=t("333d"),v=t("bd8f"),m=t("3908"),f=t("267e"),p=t("ed08"),h=t("5a0c"),y=t.n(h),S=t("d8fc"),g=t("92e3"),_={components:{pagination:b["a"],remoteSearch:v["a"]},data:function(){return{belongDaya:f["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:g["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(u["a"])(Object(n["a"])().mark((function e(){return Object(n["a"])().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(S["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:y()().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(S["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(S["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(d["b"])(),tenantId:Object(d["a"])()},url:a,params:t,responseType:"blob"};this.$confirm("您确定导出列表?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){m["a"].startLoading(),c()(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()}})),m["a"].endLoading()})).catch((function(a){e.$message.error("导出数据失败,请联系管理员"),m["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(S["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(p["c"])(f["belongDaya"])}},watch:{getActualsalary:function(e){var a=i()(e);this.visibleForm.finalSalary=Math.max(a.subtract(this.getReduceSalary).value(),0)},getReduceSalary:function(e){var a=i()(this.getActualsalary);this.visibleForm.finalSalary=Math.max(a.subtract(e).value(),0)},dialogVisible:function(e){e||this.$refs["visibleForm"].resetFields()}}},I=_,E=(t("638f"),t("2877")),O=Object(E["a"])(I,l,r,!1,null,"2d66e5b5",null);a["default"]=O.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 E})),t.d(a,"a",(function(){return O})),t.d(a,"m",(function(){return T}));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 E(e){return Object(l["a"])({url:u+"/teacherAttendance/queryTeacherAttendanceComplaints",method:"post",data:n.a.stringify(e)})}function O(e){return Object(l["a"])({url:u+"/teacherAttendance/agreeTeacherAttendanceComplaints",method:"post",data:n.a.stringify(e)})}function T(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,"c",(function(){return u})),t.d(a,"b",(function(){return o})),t.d(a,"a",(function(){return i}));var l=t("bd86"),r=(t("c5f6"),t("28a5"),t("a481"),t("6b54"),t("7618"),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):{}},i=function(e){var a,t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?"YYYY-MM-DD"===u?(a={},Object(l["a"])(a,r[0]||"start",n()(e[0]).isValid()?n()(e[0]).format(u)+" 00:00:00":""),Object(l["a"])(a,r[1]||"end",n()(e[1]).isValid()?n()(e[1]).format(u)+" 23:59:59":""),a):(t={},Object(l["a"])(t,r[0]||"start",n()(e[0]).isValid()?n()(e[0]).format(u):""),Object(l["a"])(t,r[1]||"end",n()(e[1]).isValid()?n()(e[1]).format(u):""),t):{}}}}]);
|