1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-47c27596"],{"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),s<t?l(e):a&&"function"===typeof a&&a()};c()}},2543:function(e,t,a){"use strict";a.d(t,"i",(function(){return o})),a.d(t,"j",(function(){return i})),a.d(t,"m",(function(){return s})),a.d(t,"g",(function(){return c})),a.d(t,"k",(function(){return d})),a.d(t,"h",(function(){return b})),a.d(t,"a",(function(){return v})),a.d(t,"b",(function(){return f})),a.d(t,"c",(function(){return m})),a.d(t,"f",(function(){return p})),a.d(t,"l",(function(){return h})),a.d(t,"e",(function(){return g})),a.d(t,"d",(function(){return _}));var l=a("b775"),n=a("4328"),r=a.n(n),u="/api-web";function o(e){return Object(l["a"])({url:u+"/goods/queryPage",method:"get",params:e})}function i(e){return Object(l["a"])({url:u+"/goods/get/".concat(e),method:"get"})}function s(e){return Object(l["a"])({url:u+"/goods/updateGoodsStatus",method:"post",data:r.a.stringify(e)})}function c(e){return Object(l["a"])({url:u+"/goods/add",method:"post",data:r.a.stringify(e)})}function d(e){return Object(l["a"])({url:u+"/goods/update",method:"post",data:r.a.stringify(e)})}function b(e){return Object(l["a"])({url:u+"/goods/del/".concat(e),method:"post"})}function v(e){return Object(l["a"])({url:u+"/category/queryPage",method:"get",params:e})}function f(e){return Object(l["a"])({url:u+"/category/upset",method:"post",data:e})}function m(e){return Object(l["a"])({url:u+"/category/del",method:"post",data:r.a.stringify(e)})}function p(e){return Object(l["a"])({url:u+"/subjectChange/queryPage",method:"get",params:e})}function h(e){return Object(l["a"])({url:u+"/subjectChange/updateCostMargin",method:"post",data:r.a.stringify(e)})}function g(e){return Object(l["a"])({url:u+"/goodsProcurement/queryGoodsProcurements",method:"get",params:e})}function _(e){return Object(l["a"])({url:u+"/goods/addGoodsProcurement",method:"post",params:e})}},"92e3":function(e,t,a){"use strict";a.d(t,"u",(function(){return i})),a.d(t,"F",(function(){return s})),a.d(t,"s",(function(){return c})),a.d(t,"c",(function(){return d})),a.d(t,"C",(function(){return b})),a.d(t,"S",(function(){return v})),a.d(t,"R",(function(){return f})),a.d(t,"d",(function(){return m})),a.d(t,"J",(function(){return p})),a.d(t,"w",(function(){return h})),a.d(t,"U",(function(){return g})),a.d(t,"t",(function(){return _})),a.d(t,"o",(function(){return E})),a.d(t,"T",(function(){return y})),a.d(t,"M",(function(){return O})),a.d(t,"W",(function(){return I})),a.d(t,"X",(function(){return S})),a.d(t,"L",(function(){return M})),a.d(t,"P",(function(){return T})),a.d(t,"A",(function(){return A})),a.d(t,"l",(function(){return N})),a.d(t,"Q",(function(){return R})),a.d(t,"V",(function(){return C})),a.d(t,"G",(function(){return G})),a.d(t,"m",(function(){return L})),a.d(t,"v",(function(){return w})),a.d(t,"K",(function(){return F})),a.d(t,"f",(function(){return P})),a.d(t,"e",(function(){return j})),a.d(t,"I",(function(){return D})),a.d(t,"H",(function(){return k})),a.d(t,"O",(function(){return x})),a.d(t,"E",(function(){return H})),a.d(t,"a",(function(){return U})),a.d(t,"x",(function(){return V})),a.d(t,"p",(function(){return $})),a.d(t,"n",(function(){return q})),a.d(t,"q",(function(){return Y})),a.d(t,"g",(function(){return X})),a.d(t,"D",(function(){return B})),a.d(t,"r",(function(){return W})),a.d(t,"B",(function(){return K})),a.d(t,"z",(function(){return Q})),a.d(t,"y",(function(){return z})),a.d(t,"h",(function(){return J})),a.d(t,"k",(function(){return Z})),a.d(t,"i",(function(){return ee})),a.d(t,"j",(function(){return te})),a.d(t,"N",(function(){return ae})),a.d(t,"b",(function(){return ne}));var l=a("b85c"),n=a("3835"),r=a("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"}],f=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],m=[].concat(f,[{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:"交易关闭"}],g=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"5",text:"报名结束"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"},{value:"6",text:"暂停"}],_=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],E=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],y=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],O=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],I=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],S=[{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:"会员续费"}]}],M=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"}],T=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],A=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],N=[{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:"全部"}],C=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],G=le(r["musicGroupType"]),L=le(r["classTime"]),w=le(r["courseViewType"]),F=le(r["payOrderType"]),P=le(r["auditType"]),j=le(r["auditPaymentType"]),D=le(r["orderServerType"]),k=le(r["orderAuditType"]),x=le(r["rewardModeType"]),H=le(r["musicClassType"]),U=le(r["ProbationPeriodStatus"]),V=le(r["downListType"]),$=le(r["conclusion"]),q=le(r["clientType"]),Y=le(r["couponType"]),X=le(r["backType"]),B=le(r["memberEnum"]),W=le(r["coupontypeDetail"]),K=le(r["issue"]),Q=le(r["feedbackType"]),z=le(r["feedbackTypeDesc"]),J=le(r["campState"]),Z=le(r["catgGoupType"]),ee=le(r["catRole"]),te=le(r["catType"]),ae=le(r["quiteReason"]);function le(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var ne=function(e){var t=arguments.length>1&&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","range-separator":"至","start-placeholder":"销售开始日期","end-placeholder":"销售结束日期","picker-options":{firstDayOfWeek:1}},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"),v=a.n(b),f={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["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:v()(e.changeMusicalPrice+e.changeAccessoriesPrice-(e.originalMusicalPrice+e.originalAccessoriesPrice)).format("0,0.00"),costMargin:v()(e.costMargin).format("0,0.00"),id:e.id}:{originalMusicalGoods:null,originalAccessories:null,changeMusicalGoods:null,changeAccessories:null,money:null,costMargin:null,id:null}}}}},m=f,p=a("2877"),h=Object(p["a"])(m,c,d,!1,null,null,null),g=h.exports,_=a("92e3"),E=a("e3eb"),y=a.n(E),O=a("fa7d"),I=(a("d8fc"),a("ed08")),S=new Date;S=S.getFullYear()+"-"+(S.getMonth()+1)+"-"+S.getDate();var M={components:{pagination:o["a"],resetSound:g},data:function(){return{searchForm:{search:null,resetDate:[],organIdList:null,cooperationOrganId:null},show:!1,teacherList:[],tableList:[],organList:[],cooperations:[],saleStatus:_["P"],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"])(S)),this.searchForm.resetDate.push(Object(O["c"])(S))),this.getList()},getList:function(){var e=this,t=this.searchForm,a=t.resetDate,l=Object(u["a"])(t,["resetDate"]),n=Object(r["a"])(Object(r["a"])(Object(r["a"])({},l),Object(I["a"])(a,["startTime","endTime"])),{},{page:this.rules.page,rows:this.rules.limit});Object(s["f"])(y()(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:{}},T=M,A=(a("d0ca2"),Object(p["a"])(T,l,n,!1,null,"1ba87804",null));t["default"]=A.exports},d0ca2:function(e,t,a){"use strict";a("d227")},d227:function(e,t,a){},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 v})),a.d(t,"b",(function(){return f})),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 _})),a.d(t,"p",(function(){return E})),a.d(t,"q",(function(){return y})),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 M}));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 v(e){return Object(l["a"])({url:u+"/teacherLeaveRecord/queryDetail",method:"get",params:e})}function f(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){return Object(l["a"])({url:u+"/teacherSalaryModifyLog/add",method:"POST",data:r.a.stringify(e)})}function E(e){return Object(l["a"])({url:u+"/teacherSalaryComplaints/queryPage",method:"GET",params:e})}function y(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 M(e){return Object(l["a"])({url:u+"/teacherAttendance/rejectTeacherAttendanceComplaints",method:"post",data:r.a.stringify(e)})}},ed08:function(e,t,a){"use strict";a.d(t,"b",(function(){return u})),a.d(t,"a",(function(){return o}));var l=a("ade3"),n=(a("c5f6"),a("28a5"),a("a481"),a("6b54"),a("53ca"),a("5a0c")),r=a.n(n);var u=function(e){var t=[];for(var a in e)if(e.hasOwnProperty(a)){var l=e[a],n=a.toLocaleUpperCase();t.push({label:l,value:"TRUE"===n||"FALSE"===n?"TRUE"===n:a})}return t},o=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(t={},Object(l["a"])(t,a[0]||"start",r()(e[0]).isValid()?r()(e[0]).format(n):""),Object(l["a"])(t,a[1]||"end",r()(e[1]).isValid()?r()(e[1]).format(n):""),t):{}}},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)})}}}]);
|