1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3246bb8b"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),Math.easeInOutQuad=function(e,t,r,a){return e/=a/2,e<1?r/2*e*e+t:(e--,-r/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 l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(e,t,r){var o=l(),u=e-o,i=20,s=0;t="undefined"===typeof t?500:t;var c=function e(){s+=i;var l=Math.easeInOutQuad(s,o,u,t);n(l),s<t?a(e):r&&"function"===typeof r&&r()};c()}},2543:function(e,t,r){"use strict";r.d(t,"k",(function(){return u})),r.d(t,"l",(function(){return i})),r.d(t,"o",(function(){return s})),r.d(t,"i",(function(){return c})),r.d(t,"m",(function(){return d})),r.d(t,"j",(function(){return m})),r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return f})),r.d(t,"c",(function(){return b})),r.d(t,"h",(function(){return v})),r.d(t,"n",(function(){return h})),r.d(t,"f",(function(){return g})),r.d(t,"d",(function(){return y})),r.d(t,"e",(function(){return O})),r.d(t,"g",(function(){return _}));var a=r("b775"),n=r("4328"),l=r.n(n),o="/api-web";function u(e){return Object(a["a"])({url:o+"/goods/queryPage",method:"get",params:e})}function i(e){return Object(a["a"])({url:o+"/goods/get/".concat(e),method:"get"})}function s(e){return Object(a["a"])({url:o+"/goods/updateGoodsStatus",method:"post",data:l.a.stringify(e)})}function c(e){return Object(a["a"])({url:o+"/goods/add",method:"post",data:l.a.stringify(e)})}function d(e){return Object(a["a"])({url:o+"/goods/update",method:"post",data:l.a.stringify(e)})}function m(e){return Object(a["a"])({url:o+"/goods/del/".concat(e),method:"post"})}function p(e){return Object(a["a"])({url:o+"/category/queryPage",method:"get",params:e})}function f(e){return Object(a["a"])({url:o+"/category/upset",method:"post",data:e})}function b(e){return Object(a["a"])({url:o+"/category/del",method:"post",data:l.a.stringify(e)})}function v(e){return Object(a["a"])({url:o+"/subjectChange/queryPage",method:"get",params:e})}function h(e){return Object(a["a"])({url:o+"/subjectChange/updateCostMargin",method:"post",data:l.a.stringify(e)})}function g(e){return Object(a["a"])({url:o+"/goodsProcurement/queryGoodsProcurements",method:"get",params:e})}function y(e){return Object(a["a"])({url:o+"/goods/addGoodsProcurement",method:"post",params:e})}function O(e){return Object(a["a"])({url:o+"/swTempJc/queryPageForCourseSchedule",method:"get",params:e})}function _(e){return Object(a["a"])({url:o+"/swTempJc/queryPageForExtensionOrder",method:"get",params:e})}},"3de3":function(e,t,r){"use strict";r.d(t,"l",(function(){return i})),r.d(t,"m",(function(){return s})),r.d(t,"n",(function(){return c})),r.d(t,"r",(function(){return d})),r.d(t,"q",(function(){return m})),r.d(t,"t",(function(){return p})),r.d(t,"a",(function(){return f})),r.d(t,"u",(function(){return b})),r.d(t,"v",(function(){return v})),r.d(t,"A",(function(){return h})),r.d(t,"s",(function(){return g})),r.d(t,"x",(function(){return y})),r.d(t,"g",(function(){return O})),r.d(t,"d",(function(){return _})),r.d(t,"p",(function(){return A})),r.d(t,"e",(function(){return T})),r.d(t,"j",(function(){return I})),r.d(t,"z",(function(){return E})),r.d(t,"o",(function(){return S})),r.d(t,"f",(function(){return L})),r.d(t,"k",(function(){return N})),r.d(t,"i",(function(){return w})),r.d(t,"h",(function(){return x})),r.d(t,"b",(function(){return F})),r.d(t,"y",(function(){return R})),r.d(t,"c",(function(){return C})),r.d(t,"w",(function(){return k}));var a=r("b775"),n=r("829b"),l=r("4328"),o=r.n(l),u="/api-web";function i(e){return Object(a["a"])({url:u+"/order/queryPage",method:"get",params:e})}function s(e){return Object(a["a"])({url:u+"/order/queryPage1",method:"get",params:e})}function c(e){return Object(a["a"])({url:u+"/order/queryPage2",method:"get",params:e})}function d(e){return Object(a["a"])({url:u+"/routeOrder/finance",method:"get",params:e})}function m(e){return Object(a["a"])({url:u+"/routeOrder/add",method:"post",headers:{"Content-Type":"application/json"},data:e})}function p(e){return Object(a["a"])({url:u+"/studentRefunds/queryPage",method:"get",params:e})}function f(e){return Object(a["a"])({url:u+"/vipGroupManage/applyRefundAudit",method:"post",data:o.a.stringify(e)})}function b(e){return Object(a["a"])({url:u+"/studentWithdraw/queryPage",method:"get",params:e})}function v(e){return Object(a["a"])({url:u+"/studentWithdraw/confirm",method:"post",data:o.a.stringify(e)})}function h(e){return Object(a["a"])({url:u+"/order/verifyMusicalList",method:"GET",params:e})}function g(e){return Object(a["a"])({url:u+"/studentRecharge/queryPage",method:"GET",params:e})}function y(e){return Object(a["a"])({url:u+"/tenantPaymentOrder/queryPage",method:"GET",params:e})}function O(e){return Object(a["a"])({url:u+"/order/getOrderStatus",method:"GET",params:e})}function _(e){return Object(a["a"])({url:u+"/financialExpenditure/queryPage",method:"GET",params:e})}function A(e){return Object(a["a"])({url:u+"/financialExpenditure/batchDel",method:"POST",params:e})}function T(e){return Object(a["a"])({url:u+"/operatingReport/queryPage",method:"GET",params:e})}function I(e){return Object(a["a"])({url:u+"/sellOrder/queryPage",method:"GET",params:e})}function E(e){return Object(a["a"])({url:u+"/sellOrder/update",method:"POST",params:e})}function S(e){return Object(n["a"])({url:u+"/sellOrder/refund",method:"POST",params:e,hint:!0})}function L(e){return Object(a["a"])({url:u+"/routeOrder/getOrderInfo",method:"GET",params:e})}function N(e){return Object(a["a"])({url:u+"/routeOrder/delete",method:"POST",data:o.a.stringify(e)})}function w(e){return Object(a["a"])({url:u+"/routeOrder/queryPage",method:"get",params:e})}function x(e){return Object(a["a"])({url:u+"/routeOrder/query",method:"get",params:e})}function F(e){return Object(a["a"])({url:u+"/routeOrder/auditOutOrder",method:"post",data:o.a.stringify(e)})}function R(e){return Object(a["a"])({url:u+"/routeOrder/update",method:"post",data:e,headers:{"Content-Type":"application/json"}})}function C(e){return Object(n["a"])({url:u+"/cooperationOrgan/getCalenders",method:"get",params:e})}function k(e){return Object(n["a"])({url:u+"/musicGroup/takeEffectOfinstrumentInsurance",method:"post",data:e})}},"92e3":function(e,t,r){"use strict";r.d(t,"u",(function(){return i})),r.d(t,"H",(function(){return s})),r.d(t,"s",(function(){return c})),r.d(t,"c",(function(){return d})),r.d(t,"D",(function(){return m})),r.d(t,"Y",(function(){return p})),r.d(t,"X",(function(){return f})),r.d(t,"d",(function(){return b})),r.d(t,"L",(function(){return v})),r.d(t,"w",(function(){return h})),r.d(t,"ab",(function(){return g})),r.d(t,"t",(function(){return y})),r.d(t,"o",(function(){return O})),r.d(t,"Z",(function(){return _})),r.d(t,"P",(function(){return A})),r.d(t,"cb",(function(){return T})),r.d(t,"db",(function(){return I})),r.d(t,"O",(function(){return E})),r.d(t,"T",(function(){return S})),r.d(t,"B",(function(){return L})),r.d(t,"l",(function(){return N})),r.d(t,"W",(function(){return w})),r.d(t,"bb",(function(){return x})),r.d(t,"I",(function(){return F})),r.d(t,"m",(function(){return R})),r.d(t,"v",(function(){return C})),r.d(t,"M",(function(){return k})),r.d(t,"f",(function(){return D})),r.d(t,"e",(function(){return P})),r.d(t,"K",(function(){return j})),r.d(t,"J",(function(){return M})),r.d(t,"S",(function(){return G})),r.d(t,"G",(function(){return $})),r.d(t,"a",(function(){return U})),r.d(t,"x",(function(){return q})),r.d(t,"p",(function(){return H})),r.d(t,"n",(function(){return B})),r.d(t,"q",(function(){return W})),r.d(t,"g",(function(){return V})),r.d(t,"F",(function(){return Y})),r.d(t,"r",(function(){return J})),r.d(t,"C",(function(){return X})),r.d(t,"A",(function(){return z})),r.d(t,"z",(function(){return Q})),r.d(t,"h",(function(){return K})),r.d(t,"k",(function(){return Z})),r.d(t,"i",(function(){return ee})),r.d(t,"j",(function(){return te})),r.d(t,"R",(function(){return re})),r.d(t,"N",(function(){return ae})),r.d(t,"E",(function(){return ne})),r.d(t,"y",(function(){return le})),r.d(t,"Q",(function(){return oe})),r.d(t,"U",(function(){return ue})),r.d(t,"V",(function(){return ie})),r.d(t,"b",(function(){return ce}));var a=r("2d63"),n=r("768b"),l=r("267e"),o=sessionStorage.getItem("tenantConfig");o=o?JSON.parse(o):{};var u=o.tenantId,i=null,s=null;1==u?(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"},{label:"直播课",value:"LIVE"}]):(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"},{label:"直播课",value:"LIVE"}]);var c=[{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"}],f=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],b=[].concat(f,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),v=[{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:"直播课购买"}],h=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],g=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"}],y=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],O=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],_=[{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:"加油包"}],T=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],I=[{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:"会员续费"}]}],E=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"},{value:"YEEPAY",label:"易宝"}],S=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],L=[{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:"高三"}],w=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],x=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],F=se(l["musicGroupType"]),R=se(l["classTime"]),C=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],k=se(l["payOrderType"]),D=se(l["auditType"]),P=se(l["auditPaymentType"]),j=se(l["orderServerType"]),M=se(l["orderAuditType"]),G=se(l["rewardModeType"]),$=se(l["musicClassType"]),U=se(l["ProbationPeriodStatus"]),q=se(l["downListType"]),H=se(l["conclusion"]),B=se(l["clientType"]),W=se(l["couponType"]),V=se(l["backType"]),Y=se(l["memberEnum"]),J=se(l["coupontypeDetail"]),X=se(l["issue"]),z=se(l["feedbackType"]),Q=se(l["feedbackTypeDesc"]),K=se(l["campState"]),Z=se(l["catgGoupType"]),ee=se(l["catRole"]),te=se(l["catType"]),re=se(l["quiteReason"]),ae=se(l["payUserType"]),ne=se(l["levelStatus"]),le=se(l["evaluateStatus"]),oe=se(l["problemType"]),ue=se(l["schoolUserType"]),ie=se(l["shareLiveType"]);function se(e){var t=[];for(var r in e)t.push({label:e[r],value:r});return t}var ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],r=Object(n["a"])(t,2),l=r[0],o=r[1],u={};if(e&&e.length){var i,s=Object(a["a"])(e);try{for(s.s();!(i=s.n()).done;){var c=i.value;u[c[l]]=c[o]}}catch(d){s.e(d)}finally{s.f()}}return u}},adb21:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var a=r("bc3a"),n=r.n(a),l=(r("4328"),r("5f87")),o=r("3908"),u=r("e3eb"),i=r.n(u),s=function(e,t,r,a){var u=t.url,s={method:t.method?t.method:"get",headers:{Authorization:Object(l["b"])(),tenantId:Object(l["a"])()},url:u,responseType:"blob"};"post"==s.method?s.data=t.params:s.params=t.params,e.$confirm(r||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){o["a"].startLoading(),n()(i()(s)).then((function(r){var n=new Blob([r.data],{type:"application/vnd.ms-excel;charset=utf-8"}),l=new Response(n).text();l.then((function(r){if(-1!=r.indexOf("code")){var l=JSON.parse(r);if(403==l.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==l.code?e.$message.success(l.msg):e.$message.error(l.msg),a&&a()}else{var o=URL.createObjectURL(n),u=document.createElement("a"),i=t.fileName||"导出文件.xls";u.href=o,u.setAttribute("download",i),document.body.appendChild(u),u.click(),a&&a()}})),o["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),o["a"].endLoading()}))})).catch((function(){}))}},b59a:function(e,t,r){"use strict";r("be6a")},be6a:function(e,t,r){},ec07:function(e,t,r){"use strict";r.r(t);var a,n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[e._m(0),e._v(" "),r("div",{staticClass:"m-core"},[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"routeOrder/add/taoqi",expression:"'routeOrder/add/taoqi'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:function(){e.routeOrderStatus=!0,e.isAdd=!0,e.form.applyType=null}}},[e._v("\n 添加订单\n ")]),e._v(" "),r("ExportChiose",{directives:[{name:"permission",rawName:"v-permission",value:{child:"export/routeOrderList",parent:"/financeManager"},expression:"{\n child: 'export/routeOrderList',\n parent: '/financeManager',\n }"}],staticStyle:{"margin-bottom":"20px",display:"inline-block"},attrs:{name:"报表导出",ExportEnum:"ROUTE_ORDER_LIST1",exportData:e.onOrderExport,fileName:"财务列表",errorMsg:"请选择开始日期和结束日期",isDownList:!0}}),e._v(" "),r("ExportChiose",{directives:[{name:"permission",rawName:"v-permission",value:{child:"adapay/exportBill",parent:"/financeManager"},expression:"{ child: 'adapay/exportBill', parent: '/financeManager' }"}],staticStyle:{"margin-bottom":"20px",display:"inline-block"},attrs:{name:"汇付订单导出",ExportEnum:"EXPORT_BILL",exportData:e.onAdaPayExport,fileName:"汇付订单",errorMsg:"请选择开始日期和结束日期",flag:!(this.searchForm.orderDate&&this.searchForm.orderDate.length>0)}}),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"import/downloadTemplate?financeManager/taoqi",expression:"'import/downloadTemplate?financeManager/taoqi'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:e.onDownload}},[e._v("\n 下载模板\n ")]),e._v(" "),r("el-upload",{directives:[{name:"permission",rawName:"v-permission",value:"import/routeOrder/taoqi",expression:"'import/routeOrder/taoqi'"}],staticStyle:{display:"inline-block","margin-left":"10px"},attrs:{action:"/api-web/import/routeOrder","show-file-list":!1,"before-upload":e.beforeUpload,accept:".xlsx,.xls",headers:e.headers,"on-error":e.handleError,"on-success":e.handleSuccess}},[r("el-button",{staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"}},[e._v(" 导入 ")])],1),e._v(" "),r("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{"update:model":function(t){e.searchForm=t}}},[r("el-form-item",[r("el-input",{attrs:{placeholder:"学生编号/姓名/手机号",clearable:"",type:"text"},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(" "),r("el-form-item",[r("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(" "),r("el-form-item",[r("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(" "),r("el-form-item",[r("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(" "),r("el-form-item",[r("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(" "),r("el-form-item",[r("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(" "),r("el-form-item",[r("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(" "),r("el-form-item",[r("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(" "),r("el-form-item",{attrs:{prop:"routingOrganId"}},[r("el-select",{staticClass:"multiple",attrs:{filterable:"",multiple:"","collapse-tags":"",clearable:"",placeholder:"请选择分部"},on:{clear:function(t){return e.onClear("routingOrganId")}},model:{value:e.searchForm.routingOrganId,callback:function(t){e.$set(e.searchForm,"routingOrganId","string"===typeof t?t.trim():t)},expression:"searchForm.routingOrganId"}},e._l(e.selects.branchs,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",[r("el-date-picker",{staticStyle:{width:"410px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","picker-options":{firstDayOfWeek:1},"range-separator":"至","start-placeholder":"订单开始日期","end-placeholder":"订单结束日期"},on:{change:e.searchOrderDate},model:{value:e.searchForm.orderDate,callback:function(t){e.$set(e.searchForm,"orderDate","string"===typeof t?t.trim():t)},expression:"searchForm.orderDate"}})],1),e._v(" "),r("el-form-item",[r("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 r("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",[r("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 r("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),r("div",{staticStyle:{"font-size":"14px",color:"#f85043","padding-bottom":"10px"}},[e._v("\n 营收金额:"+e._s(e._f("moneyFormat")(e.totalRevenueAmount))+"元\n "),r("i",{staticStyle:{width:"10px",display:"inline-block"}}),e._v("\n 实收金额:"+e._s(e._f("moneyFormat")(e.totalActualAmount))+"元\n "),r("i",{staticStyle:{width:"10px",display:"inline-block"}}),e._v("\n 预收金额:"+e._s(e._f("moneyFormat")(e.totalAdvanceAmount))+"元\n "),r("i",{staticStyle:{width:"10px",display:"inline-block"}}),e._v("\n 预收余额:"+e._s(e._f("moneyFormat")(e.totalUserBalance))+"元\n ")]),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{align:"center",prop:"transNo",label:"所属分部"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("copy-text",[e._v(e._s(t.row.routeOrganName))])],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"transNo",label:"交易流水号"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("copy-text",[e._v(e._s(t.row.transNo))])],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"orderNo",label:"订单号"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("copy-text",[e._v(e._s(t.row.orderNo))])],1)]}}])}),e._v(" "),r("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(" "),r("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(" "),r("el-table-column",{attrs:{align:"center",prop:"expectAmount",label:"订单金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.couponRemitFee+t.row.expectAmount))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"expectAmount",label:"优惠金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.couponRemitFee))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"expectAmount",label:"应付金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.expectAmount))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"balancePaymentAmount",label:"余额支付"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.balancePaymentAmount))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"actualAmount",label:"现金支付"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.actualAmount))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"routeAmount",label:"分润金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.routeAmount))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"routeBalanceAmount",label:"分润余额"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.routeBalanceAmount))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"学员姓名",width:"130px"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("div",[r("p",[r("copy-text",[e._v(" "+e._s(t.row.user.username))])],1),e._v(" "),r("copy-text",[e._v(e._s(t.row.user.phone))])],1)])]}}])}),e._v(" "),r("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(" "),r("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(" "),r("el-table-column",{attrs:{align:"center",label:"备注",width:"220px"},scopedSlots:e._u([{key:"default",fn:function(e){return[r("overflow-text",{attrs:{width:"200px",text:e.row.memo}})]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",fixed:"right",width:"150px",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return["OUTORDER"==t.row.groupType&&e.$helpers.permission("routeOrder/getOrderInfo/taoqi")?r("div",[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.lookOrderInfo(t.row)}}},[e._v("查看")])],1):e._e()]}}])})],1),e._v(" "),r("pagination",{attrs:{total:e.pageInfo.total,sync:"",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),e._v(" "),e.routeOrderStatus?r("el-dialog",{attrs:{title:e.isAdd?"添加订单":"查看",visible:e.routeOrderStatus,width:"600px"},on:{"update:visible":function(t){e.routeOrderStatus=t},close:function(t){return e.onFormClose("ruleForm")}}},[r("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules}},[r("div",{staticClass:"lookTitle"},[e._v("基本信息")]),e._v(" "),r("el-form-item",{attrs:{label:"所属分部",prop:"routeOrganId",rules:[{required:!0,message:"请选择分部",trigger:"change"}],"label-width":e.formLabelWidth}},[r("el-select",{staticStyle:{width:"100% !important"},attrs:{disabled:!e.isAdd,filterable:""},on:{change:e.changeOrgin},model:{value:e.form.routeOrganId,callback:function(t){e.$set(e.form,"routeOrganId","string"===typeof t?t.trim():t)},expression:"form.routeOrganId"}},e._l(e.selects.branchs,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"所属学校",prop:"schoolId","label-width":e.formLabelWidth}},[r("el-select",{staticStyle:{width:"100% !important"},attrs:{disabled:!e.isAdd},on:{change:e.checkSchool},model:{value:e.form.schoolId,callback:function(t){e.$set(e.form,"schoolId",t)},expression:"form.schoolId"}},e._l(e.cooperationList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"订单类型",prop:"insertOrderType","label-width":e.formLabelWidth}},[r("el-radio-group",{attrs:{disabled:!e.isAdd},model:{value:e.insertOrderType,callback:function(t){e.insertOrderType=t},expression:"insertOrderType"}},[r("el-radio",{attrs:{label:1}},[e._v("个人订单")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("学校订单")]),e._v(" "),r("el-radio",{attrs:{label:3}},[e._v("其它订单")])],1)],1),e._v(" "),2==e.insertOrderType||3==e.insertOrderType?r("el-form-item",{attrs:{label:"缴费单号",prop:"calenderId","label-width":e.formLabelWidth,rules:[{pattern:/^[0-9]*$/,message:"请输入正确的缴费单号",trigger:"blur"}]}},[r("el-select",{staticStyle:{width:"100% !important"},attrs:{disabled:!e.isAdd,placeholder:"请选择缴费单号",filterable:""},model:{value:e.form.calenderId,callback:function(t){e.$set(e.form,"calenderId",t)},expression:"form.calenderId"}},e._l(e.getCalenderList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.id,value:e.id}})})),1)],1):e._e(),e._v(" "),1==e.insertOrderType||3==e.insertOrderType?r("el-form-item",{attrs:{label:"学员编号",prop:"userId","label-width":e.formLabelWidth}},[r("el-input",{attrs:{disabled:!e.isAdd,placeholder:"请输入学员编号"},model:{value:e.form.userId,callback:function(t){e.$set(e.form,"userId","string"===typeof t?t.trim():t)},expression:"form.userId"}})],1):e._e(),e._v(" "),r("div",{staticClass:"lookTitle"},[e._v("交易信息")]),e._v(" "),r("el-form-item",{attrs:{label:"交易流水号",prop:"transNo","label-width":e.formLabelWidth}},[r("el-input",{attrs:{placeholder:"请输入交易流水号",type:"text",disabled:!e.isAdd},model:{value:e.form.transNo,callback:function(t){e.$set(e.form,"transNo","string"===typeof t?t.trim():t)},expression:"form.transNo"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"收款账户",prop:"merNo","label-width":e.formLabelWidth}},[r("el-input",{attrs:{placeholder:"请输入收款账户",type:"text",disabled:!e.isAdd},model:{value:e.form.merNo,callback:function(t){e.$set(e.form,"merNo","string"===typeof t?t.trim():t)},expression:"form.merNo"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"交易日期",prop:"payTime","label-width":e.formLabelWidth}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:!e.isAdd,type:"datetime",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择交易日期"},model:{value:e.form.payTime,callback:function(t){e.$set(e.form,"payTime",t)},expression:"form.payTime"}})],1),e._v(" "),e.isAdd?r("el-form-item",{attrs:{label:"收入类型","label-width":e.formLabelWidth,prop:"applyType"}},[r("el-select",{staticClass:"multiple",staticStyle:{width:"100% !important"},attrs:{filterable:"",clearable:"",disabled:!e.isAdd,placeholder:"请选择收入类型"},on:{change:e.changeApplyType},model:{value:e.form.applyType,callback:function(t){e.$set(e.form,"applyType","string"===typeof t?t.trim():t)},expression:"form.applyType"}},e._l(e.orderServerList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1):e._e(),e._v(" "),"SELL"==e.form.applyType?r("div",e._l(e.form.goodsList,(function(t,a){return r("div",{key:a,staticClass:"shopListWrap"},[r("el-form-item",{staticClass:"setWidth",attrs:{label:"商品名称"+(a+1),"label-width":e.formLabelWidth,prop:"goodsList."+a+".id",rules:[{required:!0,message:"请选择商品",trigger:"change"}]}},[e.isAdd?r("el-select",{attrs:{filterable:"",disabled:!e.isAdd||!e.form.routeOrganId,placeholder:"请选择商品"},on:{change:e.checkgoods},model:{value:t.id,callback:function(r){e.$set(t,"id","string"===typeof r?r.trim():r)},expression:"goodsList.id"}},e._l(e.shopList,(function(t,a){return r("el-option",{key:a,attrs:{label:t.name,value:t.id}},[r("span",{staticStyle:{float:"left"}},[e._v(e._s(t.name))]),e._v(" "),r("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(t.id))])])})),1):r("p",{staticClass:"showShop"},[r("Tooltip",{attrs:{content:e._f("filterShopId")(t.id)}})],1)],1),e._v(" "),r("el-form-item",{staticClass:"setWidth",staticStyle:{margin:"0 10px"},attrs:{prop:"goodsList."+a+".number",rules:e.validAmount}},[r("el-input",{staticStyle:{width:"160px"},attrs:{type:"age",disabled:!e.isAdd||!e.form.routeOrganId,clearable:"",placeholder:"请输入商品数量"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:t.number,callback:function(r){e.$set(t,"number",e._n(r))},expression:"goodsList.number"}})],1),e._v(" "),e.form.goodsList.length>1?r("el-button",{staticStyle:{height:"40px"},attrs:{icon:"el-icon-minus",disabled:!e.isAdd||!e.form.routeOrganId,circle:""},on:{click:function(r){return r.preventDefault(),e.removeGoodsList(t)}}}):e._e(),e._v(" "),r("el-button",{staticStyle:{"margin-left":"5px",height:"40px"},attrs:{icon:"el-icon-plus",disabled:!e.isAdd||!e.form.routeOrganId,circle:""},on:{click:function(t){return t.preventDefault(),e.addGoodsList(t)}}})],1)})),0):e._e(),e._v(" "),"SELL"!=e.form.applyType&&e.isAdd?e._e():r("el-form-item",{attrs:{label:"销售金额",prop:"saleAmount","label-width":e.formLabelWidth}},[r("el-input",{attrs:{type:"number",disabled:!e.isAdd,placeholder:"请输入销售金额"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.form.saleAmount,callback:function(t){e.$set(e.form,"saleAmount",t)},expression:"form.saleAmount"}})],1),e._v(" "),"SERVICE"!=e.form.applyType&&e.isAdd?e._e():r("el-form-item",{attrs:{label:"服务金额",prop:"serviceAmount","label-width":e.formLabelWidth}},[r("el-input",{attrs:{type:"number",disabled:!e.isAdd,placeholder:"请输入收入金额"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.form.serviceAmount,callback:function(t){e.$set(e.form,"serviceAmount",t)},expression:"form.serviceAmount"}})],1),e._v(" "),r("div",{staticClass:"lookTitle"},[e._v("其它")]),e._v(" "),r("el-form-item",{attrs:{label:"备注",prop:"memo","label-width":e.formLabelWidth}},[r("el-input",{attrs:{placeholder:"请输入备注",disabled:!e.isAdd,type:"textarea",rows:3},model:{value:e.form.memo,callback:function(t){e.$set(e.form,"memo","string"===typeof t?t.trim():t)},expression:"form.memo"}})],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.routeOrderStatus=!1}}},[e._v("取 消")]),e._v(" "),e.isAdd?r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onOrderSubmit("ruleForm")}}},[e._v("确 定")]):r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.routeOrderStatus=!1}}},[e._v("确 定")])],1)],1):e._e()],1)])},l=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h2",[r("div",{staticClass:"squrt"}),e._v("\n 财务列表\n ")])}],o=r("bd86"),u=(r("386d"),r("7f7f"),r("ac6a"),r("28a5"),r("c80c")),i=(r("96cf"),r("3b8d")),s=r("db72"),c=r("333d"),d=r("3de3"),m=r("2543"),p=r("1cc7"),f=r("92e3"),b=r("e3eb"),v=r.n(b),h=(r("bc3a"),r("4328"),r("5f87")),g=r("3908"),y=r("adb21"),O=r("a5b0"),_=r("3655"),A=function(e,t,r){t?t<0?r(new Error("输入商品数量必须大于0")):t>999?r(new Error("输入商品数量必须小于999")):r():r(new Error("请输入商品数量"))},T=Object(o["a"])({components:{pagination:c["a"],Tooltip:O["a"],ExportChiose:_["a"]},name:"incomeTwo",computed:{extraQuery:function(){var e={};return"/orderList/financeManager"===this.$route.path&&(e.noneTqType="1"),e}},data:function(){return{orderStatus:f["L"],dealStatus:f["w"],searchForm:{search:null,orderStartDate:null,orderEndDate:null,paymentStatus:"SUCCESS",paymentType:null,routingOrganId:[],actualAmount:null,balancePaymentAmount:null,orderNo:null,transNo:null,merNos:null,lessBalancePaymentAmount:null,lessActualAmount:null,orderDate:[]},tableList:[],organList:[],shopList:[],cooperationList:[],orderServerList:f["K"],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},totalUserBalance:0,totalActualAmount:0,totalAdvanceAmount:0,totalRevenueAmount:0,formLabelWidth:"100px",routeOrderStatus:!1,isAdd:!0,insertOrderType:1,form:{routeOrganId:null,transNo:null,type:"OTHER",merNo:null,actualAmount:null,memo:null,payTime:null,serviceAmount:null,saleAmount:null,schoolId:null,goodsList:[{id:null,number:null}],applyType:null,userId:"",calenderId:""},validAmount:[{required:!0,validator:A,trigger:"blur"},{type:"number",message:"商品数量必须为数字"}],rules:{organId:[{required:!0,message:"请选择所属分部",trigger:"change"}],actualAmount:[{required:!0,message:"请输入金额",trigger:"blur"}],transNo:[{required:!0,message:"请输入交易流水号",trigger:"blur"}],merNo:[{required:!0,message:"请输入收款账户",trigger:"blur"}],payTime:[{required:!0,message:"选择交易日期",trigger:"change"}],applyType:[{required:!0,message:"请选择收入类型",trigger:"change"}]},headers:{Authorization:Object(h["b"])(),tenantId:Object(h["a"])()},getCalenderList:[]}},created:function(){var e;a=this,(null===(e=this.searchForm.orderDate)||void 0===e?void 0:e.length)>0||this.getNow()},mounted:function(){this.$store.dispatch("setBranchs"),this.getList()},methods:{getNow:function(){var e=new Date,t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())).toISOString().slice(0,10),r=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(r)},onClear:function(e){"paymentType"==e?this.searchForm.paymentType=null:"paymentStatus"==e?this.searchForm.paymentStatus=null:"routingOrganId"==e&&(this.searchForm.routingOrganId=[])},onOrderSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(e){var r=JSON.parse(JSON.stringify(t.form));if(r.saleAmount||r.serviceAmount){r.saleAmount||(r.goodsList=null);var a={};for(var n in r.goodsList)a[r.goodsList[n]["id"]]=r.goodsList[n]["number"];r.goodsJson="SERVICE"==r.applyType?null:JSON.stringify(a),1==t.insertOrderType?(r.calenderId=null,r.type="PERSONAL"):2==t.insertOrderType?(r.userId=null,r.type="SCHOOL"):r.type="OTHER",Object(d["q"])(r).then((function(e){200==e.code?(t.$message.success("添加成功"),t.routeOrderStatus=!1,t.getList()):t.$message.error(e.msg)}))}else t.$message.error("请输入销售收入或服务收入")}}))},onFormClose:function(e){this.$refs[e].resetFields(),this.insertOrderType=1},search:function(){this.pageInfo.page=1,this.$refs.searchForm.save(this.searchForm),this.$refs.searchForm.save(this.pageInfo,"page"),this.getList()},getList:function(){var e=this,t=Object.assign(Object(s["a"])({},this.extraQuery),this.searchForm);t.rows=this.pageInfo.limit,t.page=this.pageInfo.page,t.orderNo=t.orderNo?t.orderNo:null,t.transNo=t.transNo?t.transNo:null,t.merNos=t.merNos?t.merNos:null,t.actualAmount=t.actualAmount?t.actualAmount:null,t.balancePaymentAmount=t.balancePaymentAmount?t.balancePaymentAmount:null,t.routingOrganId=this.searchForm.routingOrganId.join(","),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.orderDate=null,Object(d["r"])(v()(t)).then((function(t){var r=t.data;200==t.code&&(e.tableList=r.rows,e.pageInfo.total=r.total,e.totalUserBalance=r.totalUserBalance?r.totalUserBalance:0,e.totalActualAmount=r.totalActualAmount?r.totalActualAmount:0,e.totalAdvanceAmount=r.totalAdvanceAmount?r.totalAdvanceAmount:0,e.totalRevenueAmount=r.totalRevenueAmount?r.totalRevenueAmount:0)}))},searchOrderDate:function(e){e?(this.searchForm.orderStartDate=e[0],this.searchForm.orderEndDate=e[1]):(this.searchForm.orderStartDate=null,this.searchForm.orderEndDate=null)},onReSet:function(){this.orderDate=null,this.searchForm={search:null,orderStartDate:null,orderEndDate:null,paymentStatus:"SUCCESS",paymentType:null,routingOrganId:[],actualAmount:null,balancePaymentAmount:null,orderNo:null,transNo:null,merNos:null,lessBalancePaymentAmount:null,lessActualAmount:null,orderDate:[]},this.getNow(),this.getList()},removeGoodsList:function(e){var t=this.form.goodsList.indexOf(e);-1!==t&&this.form.goodsList.splice(t,1)},addGoodsList:function(){this.form.goodsList.push({id:null,number:null})},changeOrgin:function(e){var t=this;this.$set(this.form,"schoolId",null),e&&(Object(p["Z"])({rows:9999,organId:e}).then((function(e){200===e.code&&(t.cooperationList=e.data.rows)})),this.form.goodsList=[{id:null,number:null}],Object(m["k"])({rows:99999,noOrganSearch:1}).then((function(e){200===e.code&&(t.shopList=e.data.rows)})))},checkSchool:function(){var e=Object(i["a"])(Object(u["a"])().mark((function e(t){var r;return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.form.calenderId=null,e.prev=1,e.next=4,Object(d["c"])({id:t});case 4:r=e.sent,this.getCalenderList=r.data,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](1);case 10:case"end":return e.stop()}}),e,this,[[1,8]])})));function t(t){return e.apply(this,arguments)}return t}(),checkgoods:function(e){for(var t=0;t<=this.form.goodsList.length-1;t++)t!=this.form.goodsList.length-1&&this.form.goodsList[t].id===e&&(this.form.goodsList[this.form.goodsList.length-1].id="")},lookOrderInfo:function(e){var t=this;this.isAdd=!1,Object(d["f"])({orderId:e.id}).then((function(r){200===r.code&&t.$nextTick((function(a){var n=r.data.studentPaymentOrder;t.changeOrgin(parseInt(n.organId)),t.form={routeOrganId:n.organId,transNo:n.transNo,userId:n.userId?n.userId:"",type:"OTHER",merNo:n.merNos,actualAmount:n.actualAmount,memo:n.memo,payTime:n.payTime,serviceAmount:r.data.serviceAmount,saleAmount:r.data.goodsAmount,schoolId:parseInt(n.musicGroupId)||" ",applyType:"SELL",calenderId:r.data.calenderId?r.data.calenderId:""},t.$set(t.form,"goodsList",r.data.sellOrders.map((function(e){return{id:e.goodsId,number:e.num}}))),n.userId&&!r.data.calenderId?t.insertOrderType=1:r.data.calenderId&&!n.userId?t.insertOrderType=2:t.insertOrderType=3,"OUTORDER"!==e.type&&("OTHER"===e.type?t.insertOrderType=3:"SCHOOL"===e.type?t.insertOrderType=2:"PERSONAL"===e.type&&(t.insertOrderType=1)),t.routeOrderStatus=!0}))}))},removeOrderInfo:function(e){var t=this;this.$confirm("确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(d["k"])({orderId:e.id}).then((function(e){200===e.code&&(t.$message.success("删除成功"),t.getList())}))})).catch()},onDownload:function(){Object(y["a"])(this,{url:"/api-web/import/downloadTemplate",params:{templateType:"ROUTE_ORDER"},fileName:"财务管理导入模板.xls"})},beforeUpload:function(e){g["a"].startLoading()},handleSuccess:function(e,t,r){if(g["a"].endLoading(),200==e.code)this.$message.success("导入成功");else if(0==e.code){var a=this.fomatStr(e.msg);this.$alert(a,"导入结果",{confirmButtonText:"确定",dangerouslyUseHTMLString:!0,callback:function(e){}})}else this.$message.error(e.msg)},handleError:function(e,t,r){g["a"].endLoading()},fomatStr:function(e){var t=e.split(";"),r="";return t.forEach((function(e){r+="<p>".concat(e,"</p>")})),r},changeApplyType:function(e){"SELL"!=e||this.form.goodsList||(this.form.goodsList=[{id:null,number:null}]),this.form.serviceAmount=null,this.form.saleAmount=null}},watch:{routeOrderStatus:function(e){e||(this.form={routeOrganId:null,transNo:null,type:"OTHER",merNo:null,actualAmount:null,memo:null,payTime:null,serviceAmount:null,saleAmount:null,schoolId:null,goodsList:[{id:null,number:null}],applyType:null,userId:"",calenderId:null})}},filters:{filterShopId:function(e){var t="";return a.shopList.forEach((function(r){r.id==e&&(t=r.name)})),t}}},"computed",{onOrderExport:function(){var e=this.searchForm,t=Object(s["a"])({orderType:3,search:e.search,orderNo:e.orderNo,transNo:e.transNo,merNos:e.merNos,actualAmount:e.actualAmount,balancePaymentAmount:e.balancePaymentAmount,paymentStatus:e.paymentStatus,paymentType:e.paymentType,routingOrganId:e.routingOrganId,lessBalancePaymentAmount:e.lessBalancePaymentAmount,lessActualAmount:e.lessActualAmount},this.extraQuery);return t.routingOrganId=this.searchForm.routingOrganId.join(","),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},onAdaPayExport:function(){var e=Object(s["a"])({},this.extraQuery);return e.routingOrganId=this.searchForm.routingOrganId.join(","),this.searchForm.orderDate&&this.searchForm.orderDate.length>0&&(e.startTime=this.searchForm.orderDate[0],e.endTime=this.searchForm.orderDate[1]),e}}),I=T,E=(r("b59a"),r("2877")),S=Object(E["a"])(I,n,l,!1,null,"2a5b8a09",null);t["default"]=S.exports}}]);
|