1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2ed724c4"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),Math.easeInOutQuad=function(t,e,n,r){return t/=r/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function o(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function a(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function u(t,e,n){var u=a(),i=t-u,c=20,s=0;e="undefined"===typeof e?500:e;var l=function t(){s+=c;var a=Math.easeInOutQuad(s,u,i,e);o(a),s<e?r(t):n&&"function"===typeof n&&n()};l()}},"220b":function(t,e,n){},"3de3":function(t,e,n){"use strict";n.d(e,"l",(function(){return c})),n.d(e,"m",(function(){return s})),n.d(e,"n",(function(){return l})),n.d(e,"r",(function(){return d})),n.d(e,"q",(function(){return m})),n.d(e,"t",(function(){return f})),n.d(e,"a",(function(){return p})),n.d(e,"u",(function(){return h})),n.d(e,"v",(function(){return g})),n.d(e,"A",(function(){return b})),n.d(e,"s",(function(){return v})),n.d(e,"x",(function(){return O})),n.d(e,"g",(function(){return _})),n.d(e,"d",(function(){return y})),n.d(e,"p",(function(){return w})),n.d(e,"e",(function(){return j})),n.d(e,"j",(function(){return T})),n.d(e,"z",(function(){return F})),n.d(e,"o",(function(){return I})),n.d(e,"f",(function(){return k})),n.d(e,"k",(function(){return S})),n.d(e,"i",(function(){return x})),n.d(e,"h",(function(){return L})),n.d(e,"b",(function(){return A})),n.d(e,"y",(function(){return $})),n.d(e,"c",(function(){return q})),n.d(e,"w",(function(){return E}));var r=n("b775"),o=n("829b"),a=n("4328"),u=n.n(a),i="/api-web";function c(t){return Object(r["a"])({url:i+"/order/queryPage",method:"get",params:t})}function s(t){return Object(r["a"])({url:i+"/order/queryPage1",method:"get",params:t})}function l(t){return Object(r["a"])({url:i+"/order/queryPage2",method:"get",params:t})}function d(t){return Object(r["a"])({url:i+"/routeOrder/finance",method:"get",params:t})}function m(t){return Object(r["a"])({url:i+"/routeOrder/add",method:"post",headers:{"Content-Type":"application/json"},data:t})}function f(t){return Object(r["a"])({url:i+"/studentRefunds/queryPage",method:"get",params:t})}function p(t){return Object(r["a"])({url:i+"/vipGroupManage/applyRefundAudit",method:"post",data:u.a.stringify(t)})}function h(t){return Object(r["a"])({url:i+"/studentWithdraw/queryPage",method:"get",params:t})}function g(t){return Object(r["a"])({url:i+"/studentWithdraw/confirm",method:"post",data:u.a.stringify(t)})}function b(t){return Object(r["a"])({url:i+"/order/verifyMusicalList",method:"GET",params:t})}function v(t){return Object(r["a"])({url:i+"/studentRecharge/queryPage",method:"GET",params:t})}function O(t){return Object(r["a"])({url:i+"/tenantPaymentOrder/queryPage",method:"GET",params:t})}function _(t){return Object(r["a"])({url:i+"/order/getOrderStatus",method:"GET",params:t})}function y(t){return Object(r["a"])({url:i+"/financialExpenditure/queryPage",method:"GET",params:t})}function w(t){return Object(r["a"])({url:i+"/financialExpenditure/batchDel",method:"POST",params:t})}function j(t){return Object(r["a"])({url:i+"/operatingReport/queryPage",method:"GET",params:t})}function T(t){return Object(r["a"])({url:i+"/sellOrder/queryPage",method:"GET",params:t})}function F(t){return Object(r["a"])({url:i+"/sellOrder/update",method:"POST",params:t})}function I(t){return Object(o["a"])({url:i+"/sellOrder/refund",method:"POST",params:t,hint:!0})}function k(t){return Object(r["a"])({url:i+"/routeOrder/getOrderInfo",method:"GET",params:t})}function S(t){return Object(r["a"])({url:i+"/routeOrder/delete",method:"POST",data:u.a.stringify(t)})}function x(t){return Object(r["a"])({url:i+"/routeOrder/queryPage",method:"get",params:t})}function L(t){return Object(r["a"])({url:i+"/routeOrder/query",method:"get",params:t})}function A(t){return Object(r["a"])({url:i+"/routeOrder/auditOutOrder",method:"post",data:u.a.stringify(t)})}function $(t){return Object(r["a"])({url:i+"/routeOrder/update",method:"post",data:t,headers:{"Content-Type":"application/json"}})}function q(t){return Object(o["a"])({url:i+"/cooperationOrgan/getCalenders",method:"get",params:t})}function E(t){return Object(o["a"])({url:i+"/musicGroup/takeEffectOfinstrumentInsurance",method:"post",data:t})}},"52cc":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[n("el-page-header",{attrs:{content:t.organName},on:{back:t.goBack}}),t._v(" "),n("div",{staticClass:"m-core"},[n("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:t.searchForm,callback:function(e){t.searchForm="string"===typeof e?e.trim():e},expression:"searchForm"}},[n("el-form-item",[n("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择所属学校"},model:{value:t.searchForm.cooperationOrganId,callback:function(e){t.$set(t.searchForm,"cooperationOrganId",e)},expression:"searchForm.cooperationOrganId"}},t._l(t.cooperations,(function(t,e){return n("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),n("el-form-item",[n("el-date-picker",{attrs:{type:"month",placeholder:"选择月份"},model:{value:t.searchForm.month,callback:function(e){t.$set(t.searchForm,"month",e)},expression:"searchForm.month"}})],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"danger"},on:{click:t.search}},[t._v("搜索")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.onReSet}},[t._v("重置")])],1)],1),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",prop:"schoolName",label:"学校"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"sellAmount",width:"150px",label:"销售收入(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.sellAmount))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"serviceAmount",width:"150px",label:"服务收入(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.serviceAmount))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"otherIncome",width:"150px",label:"其它收入(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.otherIncome))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"refundAmount",width:"150px",label:"业务退费(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.refundAmount))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"incomeTotal",width:"150px",label:"收入合计(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"point"},[t._v("\n "+t._s(t._f("moneyFormat")(e.row.incomeTotal))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"sellCost",width:"150px",label:"销售成本(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.sellCost))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"expensesAmount",width:"150px",label:"固定支出(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.expensesAmount))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"variableCost",width:"150px",label:"变动支出(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.variableCost))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"distributionAmount",width:"150px",label:"分摊费用(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.distributionAmount))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"costAmount",width:"150px",label:"成本费用合计(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"point"},[t._v("\n "+t._s(t._f("moneyFormat")(e.row.costAmount))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"profit",label:"利润(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"point"},[t._v("\n "+t._s(t._f("moneyFormat")(e.row.profit))+"\n ")])]}}])})],1),t._v(" "),n("pagination",{attrs:{total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"update:page":function(e){return t.$set(t.pageInfo,"page",e)},"update:limit":function(e){return t.$set(t.pageInfo,"limit",e)},pagination:t.getList}})],1)],1)],1)},o=[],a=n("5530"),u=n("333d"),i=(n("adb21"),n("3de3")),c=n("1cc7"),s=(n("4360"),n("5a0c")),l=n.n(s),d={components:{pagination:u["a"]},name:"backMoney",data:function(){return{orderDate:null,searchForm:{startTime:null,endTime:null,organId:null,month:"",cooperationOrganId:"",organIdList:[]},tableList:[],organList:[],cooperations:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},organId:null,organName:null}},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var t=this;this.organId=this.$route.query.organId,this.organName=this.$route.query.organName,Object(c["gb"])().then((function(e){200==e.code&&(t.organList=e.data)})),Object(c["Z"])({rows:1e3,organId:this.organId}).then((function(e){if(200==e.code){t.cooperations=e.data.rows;var n=t.cooperations.some((function(e){return e.id==t.searchForm.cooperationOrganId}));n||(t.searchForm.cooperationOrganId=null);var r=Object(a["a"])({},t.searchForm);r.month=l()().format("YYYY-MM"),t.searchForm=r,t.getList();var o=new Date,u=new Date(Date.UTC(o.getFullYear(),o.getMonth(),o.getDate())).toISOString().slice(0,10),i=new Date(Date.UTC(o.getFullYear(),o.getMonth(),o.getDate())).toISOString().slice(0,10);t.orderDate=[],t.orderDate.push(u),t.orderDate.push(i)}}))},search:function(){this.pageInfo.page=1,this.getList()},onTeachingSubmit:function(t,e){var n=this;this.$refs[t].validate((function(t){if(!t)return!1;n.form.status=e,Object(i["a"])(n.form).then((function(t){200==t.code?(n.$message.success("操作成功"),n.backStatus=!1,n.getList()):n.$message.error(t.msg)}))}))},getList:function(){var t=this,e=this.searchForm;e.rows=this.pageInfo.limit,e.page=this.pageInfo.page,Object(i["e"])(Object(a["a"])(Object(a["a"])({},e),{},{month:e.month?l()(e.month).format("YYYY-MM-DD"):"",organIdList:this.organId,type:"school"})).then((function(e){var n=e.data;200==e.code&&(t.tableList=n.rows,t.pageInfo.total=n.total)}))},searchOrderDate:function(t){t?(this.searchForm.startTime=t[0]+" 00:00:00",this.searchForm.endTime=t[1]+" 23:59:59"):(this.searchForm.startTime=null,this.searchForm.endTime=null)},onReSet:function(){this.orderDate=null,this.searchForm={startTime:null,endTime:null,month:"",cooperationOrganId:"",organIdList:[]},this.getList()},goBack:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/businessStatement"})}}},m=d,f=(n("af02"),n("2877")),p=Object(f["a"])(m,r,o,!1,null,"5e96b98c",null);e["default"]=p.exports},adb21:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("bc3a"),o=n.n(r),a=(n("4328"),n("5f87")),u=n("3908"),i=n("e3eb"),c=n.n(i),s=function(t,e,n,r){var i=e.url,s={method:e.method?e.method:"get",headers:{Authorization:Object(a["b"])(),tenantId:Object(a["a"])()},url:i,responseType:"blob"};"post"==s.method?s.data=e.params:s.params=e.params,t.$confirm(n||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){u["a"].startLoading(),o()(c()(s)).then((function(n){var o=new Blob([n.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=new Response(o).text();a.then((function(n){if(-1!=n.indexOf("code")){var a=JSON.parse(n);if(403==a.code)return t.$message.error("登录过期,请重新登录!"),void setTimeout((function(){t.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==a.code?t.$message.success(a.msg):t.$message.error(a.msg),r&&r()}else{var u=URL.createObjectURL(o),i=document.createElement("a"),c=e.fileName||"导出文件.xls";i.href=u,i.setAttribute("download",c),document.body.appendChild(i),i.click(),r&&r()}})),u["a"].endLoading()})).catch((function(e){console.log(e),t.$message.error("下载失败,请联系管理员"),u["a"].endLoading()}))})).catch((function(){}))}},af02:function(t,e,n){"use strict";n("220b")}}]);
|