(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3200819e"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),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 o(e,t,a){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"],a=Object(n["a"])(t,2),r=a[0],o=a[1],u={};if(e&&e.length){var s,i=Object(l["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}},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("el-form",{attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",[a("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(" "),a("el-form-item",{attrs:{prop:"organId"}},[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.organList,(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:"organId"}},[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",[a("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(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[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("span",[e._v(e._s(t.row.transNo))])]),e._v(" "),a("el-form-item",{attrs:{label:"订单号"}},[a("span",[e._v(e._s(t.row.orderNo))])]),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:"学员姓名"}}),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:"原教辅",formatter:function(t){return e.accessoriesFormatter(t.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:"更换教辅",formatter:function(t){return e.accessoriesFormatter(t.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:"organName",label:"所属分部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"cooperationOrganName",label:"所属学校"}}),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:{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(" "),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 ")])}],r=(a("7f7f"),a("386d"),a("bc3a"),a("5f87"),a("333d")),o=(a("3908"),a("1cc7")),u=a("2543"),s=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)},i=[],c=a("6612"),d=a.n(c),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(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}}}}},b=v,f=a("2877"),m=Object(f["a"])(b,s,i,!1,null,null,null),g=m.exports,p=a("92e3"),h=a("e3eb"),_=a.n(h),E=a("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["w"],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=(a("8199"),Object(f["a"])(M,l,n,!1,null,"2eaf8a4e",null));t["default"]=O.exports},f84a:function(e,t,a){},fa7d:function(e,t,a){"use strict";a.d(t,"b",(function(){return l})),a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return r}));a("a481"),a("5a0c");var l=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(),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(),a=new Date(e),l=7-a.getDay();7==l&&(l=0);var n=t+24*l*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}}}]);