(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-54c0711a"],{"09f4":function(e,t,l){"use strict";l.d(t,"a",(function(){return o})),Math.easeInOutQuad=function(e,t,l,a){return e/=a/2,e<1?l/2*e*e+t:(e--,-l/2*(e*(e-2)-1)+t)};var a=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 o(e,t,l){var o=r(),u=e-o,s=20,i=0;t="undefined"===typeof t?500:t;var c=function e(){i+=s;var r=Math.easeInOutQuad(i,o,u,t);n(r),i1&&void 0!==arguments[1]?arguments[1]:["value","label"],l=Object(n["a"])(t,2),r=l[0],o=l[1],u={};if(e&&e.length){var s,i=Object(a["a"])(e);try{for(i.s();!(s=i.n()).done;){var c=s.value;u[c[r]]=c[o]}}catch(d){i.e(d)}finally{i.f()}}return u}},bb52:function(e,t,l){"use strict";l("5481")},cd82:function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"m-container"},[e._m(0),e._v(" "),l("div",{staticClass:"m-core"},[l("el-form",{attrs:{inline:!0,model:e.searchForm}},[l("el-form-item",[l("el-input",{attrs:{placeholder:"流水号 订单号 学生姓名"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null: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(" "),l("el-form-item",{attrs:{prop:"organId"}},[l("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.organList,(function(e,t){return l("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),l("el-form-item",{attrs:{prop:"organId"}},[l("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 l("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),l("el-form-item",[l("el-date-picker",{staticStyle:{width:"410px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"销售开始日期","end-placeholder":"销售结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.resetDate,callback:function(t){e.resetDate="string"===typeof t?t.trim():t},expression:"resetDate"}})],1),e._v(" "),l("el-form-item",[l("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),l("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),l("div",{staticClass:"tableWrap"},[l("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[l("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left",inline:"","label-width":"120px"}},[l("el-form-item",{attrs:{label:"交易流水号"}},[l("span",[e._v(e._s(t.row.transNo))])]),e._v(" "),l("el-form-item",{attrs:{label:"订单号"}},[l("span",[e._v(e._s(t.row.orderNo))])]),e._v(" "),l("el-form-item",{attrs:{label:"更换金额(元)"}},[l("span",[e._v(e._s(e._f("moneyFormat")(t.row.changeMusicalPrice)))])]),e._v(" "),l("el-form-item",{attrs:{label:"乐团主管"}},[l("span",[e._v(e._s(t.row.eduTeacher))])]),e._v(" "),l("el-form-item",{attrs:{label:"交易方式"}},[l("span",[e._v(e._s(e._f("paymentChannelStatus")(t.row.paymentChannel)))])])],1)]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"studentName",label:"学员姓名"}}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"studentId",label:"原乐器"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.originalMusicalGoods?l("div",[e._v("\n "+e._s(t.row.originalMusicalGoods.name)+"\n ")]):e._e()]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"studentId",label:"原教辅",formatter:function(t){return e.accessoriesFormatter(t.originalAccessoriesGoods)}}}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"studentId",label:"原支付金额(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.originalMusicalPrice))+"\n ")])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"studentId",label:"更换乐器"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.changeMusicalGoods?l("div",[e._v("\n "+e._s(t.row.changeMusicalGoods.name)+"\n ")]):e._e()]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",label:"更换教辅",formatter:function(t){return e.accessoriesFormatter(t.changeAccessoriesGoods)}}}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"studentId",label:"差价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.changeMusicalPrice+t.row.changeAccessoriesPrice-(t.row.originalMusicalPrice+t.row.originalAccessoriesPrice)))+"\n ")])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"studentId",label:"成本差(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.costMargin))+"\n ")])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"organName",label:"所属分部"}}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"cooperationOrganName",label:"所属学校"}}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"musicGroupName",label:"乐团"}}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"studentId",label:"销售日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[e._v("\n "+e._s(e._f("dayjsFormat")(t.row.sellTime))+"\n ")])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"studentId",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[l("el-button",{attrs:{type:"text"},on:{click:function(l){return e.reset(t.row)}}},[e._v("修改")])],1)]}}])})],1),e._v(" "),l("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"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(" "),l("resetSound",{attrs:{show:e.show,item:e.activeRow},on:{closeReset:e.closeReset,getList:e.getList}})],1)},n=[function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("h2",[l("div",{staticClass:"squrt"}),e._v("更换列表\n ")])}],r=(l("7f7f"),l("386d"),l("bc3a"),l("5f87"),l("333d")),o=(l("3908"),l("1cc7")),u=l("2543"),s=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("el-dialog",{attrs:{title:"修改",width:"500px",visible:e.soundVisible},on:{"update:visible":function(t){e.soundVisible=t}}},[l("el-form",{ref:"soundForm",attrs:{model:e.soundForm,"label-position":"right","label-width":"120px",inline:!0}},[l("el-form-item",{attrs:{label:"原乐器"}},[l("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(" "),l("el-form-item",{attrs:{label:"原教辅"}},[l("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(" "),l("el-form-item",{attrs:{label:"更换乐器"}},[l("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(" "),l("el-form-item",{attrs:{label:"更换教辅"}},[l("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(" "),l("el-form-item",{attrs:{label:"支付差价"}},[l("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(" "),l("el-form-item",{attrs:{label:"成本差(元)"}},[l("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(" "),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{on:{click:function(t){e.soundVisible=!1}}},[e._v("取 消")]),e._v(" "),l("el-button",{attrs:{type:"primary"},on:{click:e.resetCostMargin}},[e._v("确 定")])],1)],1)],1)},i=[],c=l("6612"),d=l.n(c),b={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(u["l"])({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:d()(e.changeMusicalPrice+e.changeAccessoriesPrice-(e.originalMusicalPrice+e.originalAccessoriesPrice)).format("0,0.00"),costMargin:d()(e.costMargin).format("0,0.00"),id:e.id}:{originalMusicalGoods:null,originalAccessories:null,changeMusicalGoods:null,changeAccessories:null,money:null,costMargin:null,id:null}}}}},v=b,f=l("2877"),m=Object(f["a"])(v,s,i,!1,null,null,null),g=m.exports,p=l("92e3"),h=l("e3eb"),_=l.n(h),E=l("fa7d"),I=new Date;I=I.getFullYear()+"-"+(I.getMonth()+1)+"-"+I.getDate();var A={components:{pagination:r["a"],resetSound:g},data:function(){return{searchForm:{search:null},resetDate:[],show:!1,teacherList:[],tableList:[],organList:[],cooperations:[],saleStatus:p["x"],activeRow:null,rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){},mounted:function(){var e=this;this.resetDate=[],this.resetDate.push(Object(E["b"])(I)),this.resetDate.push(Object(E["c"])(I)),Object(o["Q"])({rows:1e3}).then((function(t){200==t.code&&(e.cooperations=t.data.rows)})),Object(o["Y"])().then((function(t){200==t.code&&(e.organList=t.data)})),this.init()},activated:function(){this.init()},methods:{init:function(){this.getList()},getList:function(){var e=this,t=this.searchForm;t.rows=this.rules.limit,t.page=this.rules.page,this.resetDate&&this.resetDate.length>1?(t.startTime=this.resetDate[0],t.endTime=this.resetDate[1]):(t.startTime=null,t.endTime=null),Object(u["f"])(_()(t)).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.searchForm.resetFields(),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,O=(l("bb52"),Object(f["a"])(M,a,n,!1,null,"f81aa276",null));t["default"]=O.exports},fa7d:function(e,t,l){"use strict";l.d(t,"b",(function(){return a})),l.d(t,"c",(function(){return n})),l.d(t,"a",(function(){return r}));l("a481"),l("5a0c");var a=function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),l=new Date(e);0==l.getDay()&&(t-=6048e5);var a=t-24*(l.getDay()-1)*60*60*1e3,n=new Date(a),r=n.getFullYear(),o=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,u=n.getDate()<10?"0"+n.getDate():n.getDate(),s=r+"-"+o+"-"+u;return s},n=function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),l=new Date(e),a=7-l.getDay();7==a&&(a=0);var n=t+24*a*60*60*1e3,r=new Date(n),o=r.getFullYear(),u=r.getMonth()+1<10?"0"+(r.getMonth()+1):r.getMonth()+1,s=r.getDate()<10?"0"+r.getDate():r.getDate(),i=o+"-"+u+"-"+s;return i},r=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}}}]);