(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a9016742"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return u})),Math.easeInOutQuad=function(e,t,a,l){return e/=l/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var l=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function u(e,t,a){var u=r(),o=e-u,i=20,s=0;t="undefined"===typeof t?500:t;var c=function e(){s+=i;var r=Math.easeInOutQuad(s,u,o,t);n(r),s1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(n["a"])(t,2),r=a[0],u=a[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[r]]=c[u]}}catch(d){s.e(d)}finally{s.f()}}return o}},cd82:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[e._m(0),e._v(" "),a("div",{staticClass:"m-core"},[a("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",{attrs:{prop:"search"}},[a("el-input",{attrs:{clearable:"",placeholder:"流水号 订单号 学生姓名"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"organIdList"}},[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organIdList,callback:function(t){e.$set(e.searchForm,"organIdList","string"===typeof t?t.trim():t)},expression:"searchForm.organIdList"}},e._l(e.selects.branchs,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"cooperationOrganId"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择所属学校"},model:{value:e.searchForm.cooperationOrganId,callback:function(t){e.$set(e.searchForm,"cooperationOrganId",t)},expression:"searchForm.cooperationOrganId"}},e._l(e.cooperations,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"resetDate"}},[a("el-date-picker",{staticStyle:{width:"410px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","picker-options":{firstDayOfWeek:1},"range-separator":"至","start-placeholder":"销售开始日期","end-placeholder":"销售结束日期"},model:{value:e.searchForm.resetDate,callback:function(t){e.$set(e.searchForm,"resetDate","string"===typeof t?t.trim():t)},expression:"searchForm.resetDate"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left",inline:"","label-width":"120px"}},[a("el-form-item",{attrs:{label:"交易流水号"}},[a("copy-text",[e._v(e._s(t.row.transNo))])],1),e._v(" "),a("el-form-item",{attrs:{label:"订单号"}},[a("copy-text",[e._v(e._s(t.row.orderNo))])],1),e._v(" "),a("el-form-item",{attrs:{label:"更换金额(元)"}},[a("span",[e._v(e._s(e._f("moneyFormat")(t.row.changeMusicalPrice)))])]),e._v(" "),a("el-form-item",{attrs:{label:"乐团主管"}},[a("span",[e._v(e._s(t.row.eduTeacher))])]),e._v(" "),a("el-form-item",{attrs:{label:"交易方式"}},[a("span",[e._v(e._s(e._f("paymentChannelStatus")(t.row.paymentChannel)))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentName",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.studentName))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"organName",label:"所属分部"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.organName))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"cooperationOrganName",label:"所属学校"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.cooperationOrganName))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"原乐器"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.originalMusicalGoods?a("div",[e._v("\n "+e._s(t.row.originalMusicalGoods.name)+"\n ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"原教辅"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("overflow-text",{attrs:{width:"100%",text:e.accessoriesFormatter(t.row.originalAccessoriesGoods)}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"原支付金额(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.originalMusicalPrice))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"更换乐器"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.changeMusicalGoods?a("div",[e._v("\n "+e._s(t.row.changeMusicalGoods.name)+"\n ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"更换教辅"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("overflow-text",{attrs:{width:"100%",text:e.accessoriesFormatter(t.row.changeAccessoriesGoods)}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"差价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.changeMusicalPrice+t.row.changeAccessoriesPrice-(t.row.originalMusicalPrice+t.row.originalAccessoriesPrice)))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"成本差(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.costMargin))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"musicGroupName",label:"乐团"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"销售日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("dayjsFormat")(t.row.sellTime))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.reset(t.row)}}},[e._v("修改")])],1)]}}])})],1),e._v(" "),a("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(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)],1),e._v(" "),a("resetSound",{attrs:{show:e.show,item:e.activeRow},on:{closeReset:e.closeReset,getList:e.getList}})],1)},n=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("\n 更换列表\n ")])}],r=(a("7f7f"),a("386d"),a("5530")),u=a("15fd"),o=(a("bc3a"),a("5f87"),a("333d")),i=(a("3908"),a("1cc7")),s=a("2543"),c=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:"修改",width:"500px",visible:e.soundVisible},on:{"update:visible":function(t){e.soundVisible=t}}},[a("el-form",{ref:"soundForm",attrs:{model:e.soundForm,"label-position":"right","label-width":"120px",inline:!0}},[a("el-form-item",{attrs:{label:"原乐器"}},[a("el-input",{staticStyle:{width:"330px"},attrs:{disabled:""},model:{value:e.soundForm.originalMusicalGoods,callback:function(t){e.$set(e.soundForm,"originalMusicalGoods",t)},expression:"soundForm.originalMusicalGoods"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"原教辅"}},[a("el-input",{staticStyle:{width:"330px"},attrs:{disabled:""},model:{value:e.soundForm.originalAccessories,callback:function(t){e.$set(e.soundForm,"originalAccessories",t)},expression:"soundForm.originalAccessories"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"更换乐器"}},[a("el-input",{staticStyle:{width:"330px"},attrs:{disabled:""},model:{value:e.soundForm.changeMusicalGoods,callback:function(t){e.$set(e.soundForm,"changeMusicalGoods",t)},expression:"soundForm.changeMusicalGoods"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"更换教辅"}},[a("el-input",{staticStyle:{width:"330px"},attrs:{disabled:""},model:{value:e.soundForm.changeAccessories,callback:function(t){e.$set(e.soundForm,"changeAccessories",t)},expression:"soundForm.changeAccessories"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"支付差价"}},[a("el-input",{staticStyle:{width:"330px"},attrs:{disabled:""},model:{value:e.soundForm.money,callback:function(t){e.$set(e.soundForm,"money",t)},expression:"soundForm.money"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"成本差(元)"}},[a("el-input",{staticStyle:{width:"330px"},model:{value:e.soundForm.costMargin,callback:function(t){e.$set(e.soundForm,"costMargin",t)},expression:"soundForm.costMargin"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.soundVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.resetCostMargin}},[e._v("确 定")])],1)],1)],1)},d=[],b=a("6612"),f=a.n(b),v={props:["show","item"],data:function(){return{soundForm:{originalMusicalGoods:null,originalAccessories:null,changeMusicalGoods:null,changeAccessories:null,money:null,costMargin:null,id:null},soundVisible:!1}},mounted:function(){},methods:{accessoriesFormatter:function(e){if((null===e||void 0===e?void 0:e.length)>0){var t=e.map((function(e){return e.name}));return t.join(",")}return""},resetCostMargin:function(){var e=this;Object(s["t"])({id:this.soundForm.id,costMargin:this.soundForm.costMargin}).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.$emit("getList"))}))}},watch:{show:function(e){this.soundVisible=e},soundVisible:function(e){e||this.$emit("closeReset")},item:{immediate:!0,deep:!0,handler:function(e,t){this.soundForm=e?{originalMusicalGoods:e.originalMusicalGoods?e.originalMusicalGoods.name:null,originalAccessories:this.accessoriesFormatter(e.originalAccessoriesGoods)||null,changeMusicalGoods:e.changeMusicalGoods?e.changeMusicalGoods.name:null,changeAccessories:this.accessoriesFormatter(e.changeAccessoriesGoods)||null,money:f()(e.changeMusicalPrice+e.changeAccessoriesPrice-(e.originalMusicalPrice+e.originalAccessoriesPrice)).format("0,0.00"),costMargin:f()(e.costMargin).format("0,0.00"),id:e.id}:{originalMusicalGoods:null,originalAccessories:null,changeMusicalGoods:null,changeAccessories:null,money:null,costMargin:null,id:null}}}}},m=v,p=a("2877"),h=Object(p["a"])(m,c,d,!1,null,null,null),g=h.exports,E=a("92e3"),y=a("e3eb"),_=a.n(y),O=a("fa7d"),I=(a("d8fc"),a("ed08")),S=["resetDate"],T=new Date;T=T.getFullYear()+"-"+(T.getMonth()+1)+"-"+T.getDate();var A={components:{pagination:o["a"],resetSound:g},data:function(){return{searchForm:{search:null,resetDate:[],organIdList:null,cooperationOrganId:null},show:!1,teacherList:[],tableList:[],organList:[],cooperations:[],saleStatus:E["U"],activeRow:null,rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){},mounted:function(){var e=this;Object(i["Z"])({rows:1e3}).then((function(t){200==t.code&&(e.cooperations=t.data.rows)})),this.$store.dispatch("setBranchs"),this.init()},activated:function(){},methods:{init:function(){var e;(null===(e=this.searchForm.resetDate)||void 0===e?void 0:e.length)<1&&(this.searchForm.resetDate=[],this.searchForm.resetDate.push(Object(O["b"])(T)),this.searchForm.resetDate.push(Object(O["c"])(T))),this.getList()},getList:function(){var e=this,t=this.searchForm,a=t.resetDate,l=Object(u["a"])(t,S),n=Object(r["a"])(Object(r["a"])(Object(r["a"])({},l),Object(I["d"])(a,["startTime","endTime"])),{},{page:this.rules.page,rows:this.rules.limit});Object(s["m"])(_()(n)).then((function(t){200===t.code&&(e.rules.total=t.data.total,e.tableList=t.data.rows)}))},reset:function(e){this.activeRow=e,this.show=!0},closeReset:function(){this.show=!1},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.$refs.searchForm.resetFields(),console.log(this.searchForm),this.searchForm.startTime=null,this.searchForm.endTime=null,this.search()},accessoriesFormatter:function(e){if(e&&e.length>0){var t=e.map((function(e){return e.name}));return t.join(",")}return""}},watch:{}},M=A,N=(a("eed2"),Object(p["a"])(M,l,n,!1,null,"6fb2381a",null));t["default"]=N.exports},d8fc:function(e,t,a){"use strict";a.d(t,"o",(function(){return o})),a.d(t,"n",(function(){return i})),a.d(t,"j",(function(){return s})),a.d(t,"e",(function(){return c})),a.d(t,"h",(function(){return d})),a.d(t,"l",(function(){return b})),a.d(t,"g",(function(){return f})),a.d(t,"b",(function(){return v})),a.d(t,"s",(function(){return m})),a.d(t,"f",(function(){return p})),a.d(t,"i",(function(){return h})),a.d(t,"c",(function(){return g})),a.d(t,"r",(function(){return E})),a.d(t,"p",(function(){return y})),a.d(t,"q",(function(){return _})),a.d(t,"d",(function(){return O})),a.d(t,"k",(function(){return I})),a.d(t,"a",(function(){return S})),a.d(t,"m",(function(){return T}));var l=a("b775"),n=a("4328"),r=a.n(n),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:r.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:r.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 f(e){return Object(l["a"])({url:u+"/teacherLeaveRecord/queryDetail",method:"get",params:e})}function v(e){return Object(l["a"])({url:u+"/teacherLeaveRecord/approve",method:"POST",data:r.a.stringify(e)})}function m(e){return Object(l["a"])({url:u+"/vipGroupManage/vipApplyAudit",method:"POST",data:r.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 g(e){return Object(l["a"])({url:u+"/courseScheduleTeacherSalary/closeSalaryConfirm",method:"GET",params:e})}function E(e){return Object(l["a"])({url:u+"/teacherSalaryModifyLog/add",method:"POST",data:r.a.stringify(e)})}function y(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 O(e){return Object(l["a"])({url:u+"/teacherSalaryComplaints/complaintsDispose",method:"post",data:r.a.stringify(e)})}function I(e){return Object(l["a"])({url:u+"/teacherAttendance/queryTeacherAttendanceComplaints",method:"post",data:r.a.stringify(e)})}function S(e){return Object(l["a"])({url:u+"/teacherAttendance/agreeTeacherAttendanceComplaints",method:"post",data:r.a.stringify(e)})}function T(e){return Object(l["a"])({url:u+"/teacherAttendance/rejectTeacherAttendanceComplaints",method:"post",data:r.a.stringify(e)})}},eed2:function(e,t,a){"use strict";a("f7b6")},f7b6:function(e,t,a){},fa7d:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return u})),a.d(t,"d",(function(){return o}));var l=a("5530"),n=(a("a481"),a("5a0c"),function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e);0==a.getDay()&&(t-=6048e5);var l=t-24*(a.getDay()-1)*60*60*1e3,n=new Date(l),r=n.getFullYear(),u=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,o=n.getDate()<10?"0"+n.getDate():n.getDate(),i=r+"-"+u+"-"+o;return i}),r=function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e),l=7-a.getDay();7==l&&(l=0);var n=t+24*l*60*60*1e3,r=new Date(n),u=r.getFullYear(),o=r.getMonth()+1<10?"0"+(r.getMonth()+1):r.getMonth()+1,i=r.getDate()<10?"0"+r.getDate():r.getDate(),s=u+"-"+o+"-"+i;return s},u=function(e){var t=[];switch(e){case"NORMAL":t=[{value:"SINGLE",label:"声部课"},{value:"TRAINING_SINGLE",label:"集训声部课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}];break;case"MIX":t=[{value:"MIX",label:"合奏课"},{value:"TRAINING_MIX",label:"集训合奏课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}];break;case"HIGH":t=[{value:"HIGH",label:"基础技能课"}];break;case"HIGH_ONLINE":t=[{value:"HIGH_ONLINE",label:"线上基础技能课"}];break;case"MUSIC_NETWORK":t=[{value:"MUSIC_NETWORK",label:"乐团网管课"}];break;case"SNAP":t=[{value:"SINGLE",label:"声部课"},{value:"MIX",label:"合奏课"},{value:"TRAINING_SINGLE",label:"集训声部课"},{value:"TRAINING_MIX",label:"集训合奏课"},{value:"HIGH",label:"基础技能课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}]}return t},o=function(e,t){e.$router.replace({query:Object(l["a"])(Object(l["a"])({},e.$route.query),t)})}}}]);