1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7df4a7de"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),Math.easeInOutQuad=function(e,t,a,n){return e/=n/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function l(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,c=20,i=0;t="undefined"===typeof t?500:t;var s=function e(){i+=c;var r=Math.easeInOutQuad(i,o,u,t);l(r),i<t?n(e):a&&"function"===typeof a&&a()};s()}},"266e":function(e,t,a){},"3de3":function(e,t,a){"use strict";a.d(t,"l",(function(){return c})),a.d(t,"m",(function(){return i})),a.d(t,"n",(function(){return s})),a.d(t,"r",(function(){return d})),a.d(t,"q",(function(){return m})),a.d(t,"t",(function(){return p})),a.d(t,"a",(function(){return v})),a.d(t,"u",(function(){return b})),a.d(t,"v",(function(){return f})),a.d(t,"A",(function(){return h})),a.d(t,"s",(function(){return y})),a.d(t,"x",(function(){return _})),a.d(t,"g",(function(){return E})),a.d(t,"d",(function(){return g})),a.d(t,"p",(function(){return A})),a.d(t,"e",(function(){return O})),a.d(t,"j",(function(){return S})),a.d(t,"z",(function(){return I})),a.d(t,"o",(function(){return T})),a.d(t,"f",(function(){return N})),a.d(t,"k",(function(){return R})),a.d(t,"i",(function(){return L})),a.d(t,"h",(function(){return x})),a.d(t,"b",(function(){return C})),a.d(t,"y",(function(){return w})),a.d(t,"c",(function(){return F})),a.d(t,"w",(function(){return D}));var n=a("b775"),l=a("829b"),r=a("4328"),o=a.n(r),u="/api-web";function c(e){return Object(n["a"])({url:u+"/order/queryPage",method:"get",params:e})}function i(e){return Object(n["a"])({url:u+"/order/queryPage1",method:"get",params:e})}function s(e){return Object(n["a"])({url:u+"/order/queryPage2",method:"get",params:e})}function d(e){return Object(n["a"])({url:u+"/routeOrder/finance",method:"get",params:e})}function m(e){return Object(n["a"])({url:u+"/routeOrder/add",method:"post",headers:{"Content-Type":"application/json"},data:e})}function p(e){return Object(n["a"])({url:u+"/studentRefunds/queryPage",method:"get",params:e})}function v(e){return Object(n["a"])({url:u+"/vipGroupManage/applyRefundAudit",method:"post",data:o.a.stringify(e)})}function b(e){return Object(n["a"])({url:u+"/studentWithdraw/queryPage",method:"get",params:e})}function f(e){return Object(n["a"])({url:u+"/studentWithdraw/confirm",method:"post",data:o.a.stringify(e)})}function h(e){return Object(n["a"])({url:u+"/order/verifyMusicalList",method:"GET",params:e})}function y(e){return Object(n["a"])({url:u+"/studentRecharge/queryPage",method:"GET",params:e})}function _(e){return Object(n["a"])({url:u+"/tenantPaymentOrder/queryPage",method:"GET",params:e})}function E(e){return Object(n["a"])({url:u+"/order/getOrderStatus",method:"GET",params:e})}function g(e){return Object(n["a"])({url:u+"/financialExpenditure/queryPage",method:"GET",params:e})}function A(e){return Object(n["a"])({url:u+"/financialExpenditure/batchDel",method:"POST",params:e})}function O(e){return Object(n["a"])({url:u+"/operatingReport/queryPage",method:"GET",params:e})}function S(e){return Object(n["a"])({url:u+"/sellOrder/queryPage",method:"GET",params:e})}function I(e){return Object(n["a"])({url:u+"/sellOrder/update",method:"POST",params:e})}function T(e){return Object(l["a"])({url:u+"/sellOrder/refund",method:"POST",params:e,hint:!0})}function N(e){return Object(n["a"])({url:u+"/routeOrder/getOrderInfo",method:"GET",params:e})}function R(e){return Object(n["a"])({url:u+"/routeOrder/delete",method:"POST",data:o.a.stringify(e)})}function L(e){return Object(n["a"])({url:u+"/routeOrder/queryPage",method:"get",params:e})}function x(e){return Object(n["a"])({url:u+"/routeOrder/query",method:"get",params:e})}function C(e){return Object(n["a"])({url:u+"/routeOrder/auditOutOrder",method:"post",data:o.a.stringify(e)})}function w(e){return Object(n["a"])({url:u+"/routeOrder/update",method:"post",data:e,headers:{"Content-Type":"application/json"}})}function F(e){return Object(l["a"])({url:u+"/cooperationOrgan/getCalenders",method:"get",params:e})}function D(e){return Object(l["a"])({url:u+"/musicGroup/takeEffectOfinstrumentInsurance",method:"post",data:e})}},9277:function(e,t,a){"use strict";a("266e")},"92e3":function(e,t,a){"use strict";a.d(t,"v",(function(){return c})),a.d(t,"I",(function(){return i})),a.d(t,"t",(function(){return s})),a.d(t,"c",(function(){return d})),a.d(t,"E",(function(){return m})),a.d(t,"bb",(function(){return p})),a.d(t,"Z",(function(){return v})),a.d(t,"d",(function(){return b})),a.d(t,"M",(function(){return f})),a.d(t,"x",(function(){return h})),a.d(t,"db",(function(){return y})),a.d(t,"u",(function(){return _})),a.d(t,"o",(function(){return E})),a.d(t,"cb",(function(){return g})),a.d(t,"Q",(function(){return A})),a.d(t,"fb",(function(){return O})),a.d(t,"gb",(function(){return S})),a.d(t,"P",(function(){return I})),a.d(t,"U",(function(){return T})),a.d(t,"C",(function(){return N})),a.d(t,"l",(function(){return R})),a.d(t,"Y",(function(){return L})),a.d(t,"eb",(function(){return x})),a.d(t,"J",(function(){return C})),a.d(t,"m",(function(){return w})),a.d(t,"w",(function(){return F})),a.d(t,"N",(function(){return D})),a.d(t,"f",(function(){return P})),a.d(t,"e",(function(){return M})),a.d(t,"L",(function(){return G})),a.d(t,"K",(function(){return k})),a.d(t,"T",(function(){return U})),a.d(t,"H",(function(){return j})),a.d(t,"a",(function(){return B})),a.d(t,"y",(function(){return H})),a.d(t,"p",(function(){return $})),a.d(t,"n",(function(){return q})),a.d(t,"q",(function(){return V})),a.d(t,"g",(function(){return Y})),a.d(t,"G",(function(){return W})),a.d(t,"r",(function(){return X})),a.d(t,"D",(function(){return z})),a.d(t,"B",(function(){return K})),a.d(t,"A",(function(){return J})),a.d(t,"h",(function(){return Q})),a.d(t,"k",(function(){return Z})),a.d(t,"i",(function(){return ee})),a.d(t,"j",(function(){return te})),a.d(t,"S",(function(){return ae})),a.d(t,"O",(function(){return ne})),a.d(t,"F",(function(){return le})),a.d(t,"z",(function(){return re})),a.d(t,"R",(function(){return oe})),a.d(t,"V",(function(){return ue})),a.d(t,"X",(function(){return ce})),a.d(t,"s",(function(){return ie})),a.d(t,"ab",(function(){return se})),a.d(t,"W",(function(){return de})),a.d(t,"b",(function(){return pe}));var n=a("b85c"),l=a("3835"),r=a("267e"),o=sessionStorage.getItem("tenantConfig");o=o?JSON.parse(o):{};var u=o.tenantId,c=null,i=null;1==u?(i=[{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"}],c=[{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"}]):(i=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],c=[{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 s=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"},{label:"直播课",value:"LIVE"}],d=[{label:"正常签到",value:1},{label:"异常签到",value:0}],m=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],p=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],v=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],b=[].concat(v,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),f=[{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:"直播课购买"},{value:"SCHOOL_GOODS_PURCHASE",label:"商品采购"},{value:"DIRECTOR_TRAINING_CAMP",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:"取消"}],_=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],E=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],g=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],A=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],O=[{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:"续费类回访",label:"续费类回访"},{value:"服务回访",label:"服务回访"},{value:"其他",label:"其他"}]},{value:"学练宝",label:"学练宝",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],I=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"},{value:"YEEPAY",label:"易宝"}],T=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],N=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],R=[{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:"高三"}],L=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],x=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],C=me(r["musicGroupType"]),w=me(r["classTime"]),F=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],D=me(r["payOrderType"]),P=me(r["auditType"]),M=me(r["auditPaymentType"]),G=me(r["orderServerType"]),k=me(r["orderAuditType"]),U=me(r["rewardModeType"]),j=me(r["musicClassType"]),B=me(r["ProbationPeriodStatus"]),H=me(r["downListType"]),$=me(r["conclusion"]),q=me(r["clientType"]),V=me(r["couponType"]),Y=me(r["backType"]),W=me(r["memberEnum"]),X=me(r["coupontypeDetail"]),z=me(r["issue"]),K=me(r["feedbackType"]),J=me(r["feedbackTypeDesc"]),Q=me(r["campState"]),Z=me(r["catgGoupType"]),ee=me(r["catRole"]),te=me(r["catType"]),ae=me(r["quiteReason"]),ne=me(r["payUserType"]),le=me(r["levelStatus"]),re=me(r["evaluateStatus"]),oe=me(r["problemType"]),ue=me(r["schoolUserType"]),ce=me(r["shareLiveType"]),ie=me(r["courseEmnu"]),se=me(r["suggestionType"]),de=me(r["scoreType"]);function me(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(l["a"])(t,2),r=a[0],o=a[1],u={};if(e&&e.length){var c,i=Object(n["a"])(e);try{for(i.s();!(c=i.n()).done;){var s=c.value;u[s[r]]=s[o]}}catch(d){i.e(d)}finally{i.f()}}return u}},adb21:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n=a("bc3a"),l=a.n(n),r=(a("4328"),a("5f87")),o=a("3908"),u=a("e3eb"),c=a.n(u),i=function(e,t,a,n){var u=t.url,i={method:t.method?t.method:"get",headers:{Authorization:Object(r["b"])(),tenantId:Object(r["a"])()},url:u,responseType:"blob"};"post"==i.method?i.data=t.params:i.params=t.params,e.$confirm(a||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){o["a"].startLoading(),l()(c()(i)).then((function(a){var l=new Blob([a.data],{type:"application/vnd.ms-excel;charset=utf-8"}),r=new Response(l).text();r.then((function(a){if(-1!=a.indexOf("code")){var r=JSON.parse(a);if(403==r.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==r.code?e.$message.success(r.msg):e.$message.error(r.msg),n&&n()}else{var o=URL.createObjectURL(l),u=document.createElement("a"),c=t.fileName||"导出文件.xls";u.href=o,u.setAttribute("download",c),document.body.appendChild(u),u.click(),n&&n()}})),o["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),o["a"].endLoading()}))})).catch((function(){}))}},ddb1:function(e,t,a){"use strict";a.r(t);var n=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("div",{staticClass:"btnList"},[a("ExportChiose",{directives:[{name:"permission",rawName:"v-permission",value:{child:"export/orderList",parent:"/income"},expression:"{ child: 'export/orderList', parent: '/income' }"}],staticStyle:{"margin-bottom":"20px","margin-right":"10px"},attrs:{name:"订单汇总导出",ExportEnum:"ORDER_LIST_SUM",exportData:e.onOrderExport,fileName:"订单汇总",errorMsg:"请选择月份",isDownList:!0}}),e._v(" "),a("ExportChiose",{directives:[{name:"permission",rawName:"v-permission",value:{child:"export/orderList",parent:"/income"},expression:"{ child: 'export/orderList', parent: '/income' }"}],staticStyle:{"margin-bottom":"20px","margin-right":"10px"},attrs:{name:"报表导出",ExportEnum:"ORDER_LIST1",exportData:e.onOrderExport,fileName:"订单报表导出",errorMsg:"请选择月份",isDownList:!0}}),e._v(" "),a("ExportChiose",{directives:[{name:"permission",rawName:"v-permission",value:{child:"export/MALL_ORDER_LIST",parent:"/income"},expression:"{ child: 'export/MALL_ORDER_LIST', parent: '/income' }"}],staticStyle:{"margin-bottom":"20px"},attrs:{name:"商城订单导出",ExportEnum:"MALL_ORDER_LIST",exportData:e.onOrderExport,fileName:"商城订单导出",errorMsg:"请选择月份",isDownList:!0}})],1),e._v(" "),a("save-form",{staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"学生编号/姓名/手机号",type:"text",clearable:""},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",[a("el-input",{attrs:{placeholder:"交易流水号",clearable:"",type:"text"},model:{value:e.searchForm.transNo,callback:function(t){e.$set(e.searchForm,"transNo","string"===typeof t?t.trim():t)},expression:"searchForm.transNo"}})],1),e._v(" "),a("el-form-item",[a("el-input",{attrs:{placeholder:"订单号",clearable:"",type:"text"},model:{value:e.searchForm.orderNo,callback:function(t){e.$set(e.searchForm,"orderNo","string"===typeof t?t.trim():t)},expression:"searchForm.orderNo"}})],1),e._v(" "),a("el-form-item",[a("el-input",{attrs:{placeholder:"收款账户",clearable:"",type:"text"},model:{value:e.searchForm.merNos,callback:function(t){e.$set(e.searchForm,"merNos","string"===typeof t?t.trim():t)},expression:"searchForm.merNos"}})],1),e._v(" "),a("el-form-item",[a("el-input",{attrs:{placeholder:"余额支付大于等于",clearable:"",type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.searchForm.balancePaymentAmount,callback:function(t){e.$set(e.searchForm,"balancePaymentAmount","string"===typeof t?t.trim():t)},expression:"searchForm.balancePaymentAmount"}})],1),e._v(" "),a("el-form-item",[a("el-input",{attrs:{placeholder:"余额支付小于等于",clearable:"",type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.searchForm.lessBalancePaymentAmount,callback:function(t){e.$set(e.searchForm,"lessBalancePaymentAmount","string"===typeof t?t.trim():t)},expression:"searchForm.lessBalancePaymentAmount"}})],1),e._v(" "),a("el-form-item",[a("el-input",{attrs:{placeholder:"现金支付大于等于",clearable:"",type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.searchForm.actualAmount,callback:function(t){e.$set(e.searchForm,"actualAmount","string"===typeof t?t.trim():t)},expression:"searchForm.actualAmount"}})],1),e._v(" "),a("el-form-item",[a("el-input",{attrs:{placeholder:"现金支付小于等于",clearable:"",type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.searchForm.lessActualAmount,callback:function(t){e.$set(e.searchForm,"lessActualAmount","string"===typeof t?t.trim():t)},expression:"searchForm.lessActualAmount"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"organId"}},[a("el-select",{staticClass:"multiple",attrs:{filterable:"","collapse-tags":"",clearable:"",multiple:"",placeholder:"请选择分部"},on:{clear:function(t){return e.onClear("organId")}},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},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",[a("el-date-picker",{staticStyle:{width:"410px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","picker-options":{firstDayOfWeek:1},"start-placeholder":"订单开始日期","end-placeholder":"订单结束日期"},model:{value:e.searchForm.orderDate,callback:function(t){e.$set(e.searchForm,"orderDate",t)},expression:"searchForm.orderDate"}})],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"交易类型"},on:{clear:function(t){return e.onClear("paymentType")}},model:{value:e.searchForm.paymentType,callback:function(t){e.$set(e.searchForm,"paymentType","string"===typeof t?t.trim():t)},expression:"searchForm.paymentType"}},e._l(e.orderStatus,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"交易状态"},on:{clear:function(t){return e.onClear("paymentStatus")}},model:{value:e.searchForm.paymentStatus,callback:function(t){e.$set(e.searchForm,"paymentStatus","string"===typeof t?t.trim():t)},expression:"searchForm.paymentStatus"}},e._l(e.dealStatus,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],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",{staticStyle:{"font-size":"14px",color:"#f85043","padding-bottom":"10px"}},[e._v("\n 营收金额:"+e._s(e._f("moneyFormat")(e.totalRevenueAmount))+"元"),a("i",{staticStyle:{width:"10px",display:"inline-block"}}),e._v("\n 实收金额:"+e._s(e._f("moneyFormat")(e.totalActualAmount))+"元"),a("i",{staticStyle:{width:"10px",display:"inline-block"}}),e._v("\n 预收金额:"+e._s(e._f("moneyFormat")(e.totalAdvanceAmount))+"元"),a("i",{staticStyle:{width:"10px",display:"inline-block"}}),e._v("\n 预收余额:"+e._s(e._f("moneyFormat")(e.totalUserBalance))+"元\n ")]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[28!=e.tenantId?a("el-table-column",{attrs:{align:"center",prop:"transNo",label:"所属分部"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.organName))])],1)]}}],null,!1,1717585468)}):e._e(),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"100px",prop:"transNo",label:"交易流水号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.transNo))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"100px",prop:"orderNo",label:"订单号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.orderNo))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"150",prop:"createTime",label:"订单日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("dateForMinFormat")(t.row.createTime)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"100px",label:"交易类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("orderType")(t.row.type)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expectAmount",label:"订单金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.couponRemitFee+t.row.expectAmount))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expectAmount",label:"优惠金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.couponRemitFee))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expectAmount",label:"应付金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.expectAmount))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"balancePaymentAmount",label:"余额支付"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.balancePaymentAmount))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"actualAmount",label:"现金支付"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.actualAmount))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"学员姓名",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.user.username?a("copy-text",[e._v("\n "+e._s(t.row.user.username))]):e._e(),e._v(" "),t.row.user.username&&t.row.user.phone?a("span",[e._v("/")]):e._e(),e._v(" "),t.row.user.phone?a("copy-text",[e._v("\n "+e._s(t.row.user.phone)+"\n ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentChannel",label:"交易方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("paymentChannelStatus")(t.row.paymentChannel)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"交易状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("dealStatus")(t.row.status)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"备注",width:"220px"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("overflow-text",{attrs:{width:"200px",text:e.row.memo}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"150px",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return["SUCCESS"!=t.row.status&&t.row.actualAmount>0?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/getOrderStatus",expression:"'order/getOrderStatus'"}],attrs:{type:"text"},on:{click:function(a){return e.onGetOrderStatus(t.row)}}},[e._v("查询订单状态")]):e._e()]}}])})],1),e._v(" "),a("pagination",{attrs:{sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1)])},l=[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("386d"),a("5530")),o=a("15fd"),u=a("333d"),c=a("3de3"),i=(a("1cc7"),a("4360"),a("e3eb")),s=a.n(i),d=a("92e3"),m=(a("bc3a"),a("4328"),a("5f87"),a("3908"),a("ed08")),p=a("3655"),v=["orderDate","organId"],b={components:{pagination:u["a"],ExportChiose:p["a"]},name:"income",data:function(){return{orderStatus:d["M"],dealStatus:d["x"],searchForm:{search:null,orderStartDate:null,orderEndDate:null,paymentStatus:"SUCCESS",paymentType:null,organId:[],actualAmount:null,balancePaymentAmount:null,orderNo:null,transNo:null,merNos:null,lessBalancePaymentAmount:null,lessActualAmount:null,orderDate:[]},tableList:[],organList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},totalUserBalance:0,totalActualAmount:0,totalAdvanceAmount:0,totalRevenueAmount:0,tenantId:null}},created:function(){var e;(null===(e=this.searchForm.orderDate)||void 0===e?void 0:e.length)<1&&this.getNow()},mounted:function(){var e,t,a;(this.tenantId=this.$helpers.tenantId,this.$store.dispatch("setBranchs"),null!==(e=this.$route.params)&&void 0!==e&&e.orderNo||null!==(t=this.$route.query)&&void 0!==t&&t.orderNo)&&(this.searchForm.orderDate=[],this.searchForm.orderNo=this.$route.params.orderNo||(null===(a=this.$route.query)||void 0===a?void 0:a.orderNo),this.searchForm.paymentStatus=null);this.getList()},methods:{getNow:function(){var e=new Date,t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())).toISOString().slice(0,10),a=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())).toISOString().slice(0,10);this.searchForm.orderDate=[],this.searchForm.orderDate.push(t),this.searchForm.orderDate.push(a)},onClear:function(e){"paymentType"==e?this.searchForm.paymentType=null:"paymentStatus"==e?this.searchForm.paymentStatus=null:"organId"==e&&(this.searchForm.organId=[])},search:function(){this.pageInfo.page=1,this.getList()},getList:function(){var e=this,t=this.searchForm,a=t.orderDate,n=t.organId,l=Object(o["a"])(t,v),u=Object(r["a"])(Object(r["a"])({},l),{},{organId:n.join(","),page:this.pageInfo.page,rows:this.pageInfo.limit},Object(m["d"])(a,["orderStartDate","orderEndDate"]));Object(c["l"])(s()(u)).then((function(t){var a=t.data;200==t.code&&(e.tableList=a.rows,e.pageInfo.total=a.total,e.totalUserBalance=a.totalUserBalance?a.totalUserBalance:0,e.totalActualAmount=a.totalActualAmount?a.totalActualAmount:0,e.totalAdvanceAmount=a.totalAdvanceAmount?a.totalAdvanceAmount:0,e.totalRevenueAmount=a.totalRevenueAmount?a.totalRevenueAmount:0)}))},onGetOrderStatus:function(e){var t=this;this.$confirm("您确定查询该订单状态","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(c["g"])({id:e.id}).then((function(e){t.getList()}))})).catch((function(e){}))},onReSet:function(){this.searchForm={search:null,orderStartDate:null,orderEndDate:null,paymentStatus:"SUCCESS",paymentType:null,organId:[],actualAmount:null,balancePaymentAmount:null,orderNo:null,transNo:null,merNos:null,lessBalancePaymentAmount:null,lessActualAmount:null,orderDate:[]},this.getNow(),this.getList()}},computed:{onOrderExport:function(){var e=this.searchForm,t={orderType:0,search:e.search,orderNo:e.orderNo,transNo:e.transNo,merNos:e.merNos,actualAmount:e.actualAmount,balancePaymentAmount:e.balancePaymentAmount,paymentStatus:e.paymentStatus,paymentType:e.paymentType,organId:e.organId.join(","),lessBalancePaymentAmount:e.lessBalancePaymentAmount,lessActualAmount:e.lessActualAmount};return this.searchForm.orderDate&&this.searchForm.orderDate.length>0?(t.orderStartDate=this.searchForm.orderDate[0],t.orderEndDate=this.searchForm.orderDate[1]):(t.orderStartDate=null,t.orderEndDate=null),t}}},f=b,h=(a("9277"),a("2877")),y=Object(h["a"])(f,n,l,!1,null,"4dcfba35",null);t["default"]=y.exports}}]);
|