chunk-0a363ac4.5128124b.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0a363ac4"],{"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,s=20,c=0;e="undefined"===typeof e?500:e;var l=function t(){c+=s;var a=Math.easeInOutQuad(c,u,i,e);o(a),c<e?r(t):n&&"function"===typeof n&&n()};l()}},1754:function(t,e,n){"use strict";n("66059")},"3de3":function(t,e,n){"use strict";n.d(e,"l",(function(){return s})),n.d(e,"m",(function(){return c})),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 _})),n.d(e,"g",(function(){return y})),n.d(e,"d",(function(){return O})),n.d(e,"p",(function(){return w})),n.d(e,"e",(function(){return j})),n.d(e,"j",(function(){return F})),n.d(e,"z",(function(){return T})),n.d(e,"o",(function(){return I})),n.d(e,"f",(function(){return k})),n.d(e,"k",(function(){return x})),n.d(e,"i",(function(){return S})),n.d(e,"h",(function(){return L})),n.d(e,"b",(function(){return A})),n.d(e,"y",(function(){return E})),n.d(e,"c",(function(){return q})),n.d(e,"w",(function(){return $}));var r=n("b775"),o=n("829b"),a=n("4328"),u=n.n(a),i="/api-web";function s(t){return Object(r["a"])({url:i+"/order/queryPage",method:"get",params:t})}function c(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 _(t){return Object(r["a"])({url:i+"/tenantPaymentOrder/queryPage",method:"GET",params:t})}function y(t){return Object(r["a"])({url:i+"/order/getOrderStatus",method:"GET",params:t})}function O(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 F(t){return Object(r["a"])({url:i+"/sellOrder/queryPage",method:"GET",params:t})}function T(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 x(t){return Object(r["a"])({url:i+"/routeOrder/delete",method:"POST",data:u.a.stringify(t)})}function S(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 E(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 $(t){return Object(o["a"])({url:i+"/musicGroup/takeEffectOfinstrumentInsurance",method:"post",data:t})}},66059:function(t,e,n){},adb21:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("bc3a"),o=n.n(r),a=(n("4328"),n("5f87")),u=n("3908"),i=n("e3eb"),s=n.n(i),c=function(t,e,n,r){var i=e.url,c={method:e.method?e.method:"get",headers:{Authorization:Object(a["b"])(),tenantId:Object(a["a"])()},url:i,responseType:"blob"};"post"==c.method?c.data=e.params:c.params=e.params,t.$confirm(n||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){u["a"].startLoading(),o()(s()(c)).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"),s=e.fileName||"导出文件.xls";i.href=u,i.setAttribute("download",s),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(){}))}},c3d3: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"},[t._m(0),t._v(" "),n("div",{staticClass:"m-core"},[n("save-form",{staticClass:"searchForm",attrs:{inline:!0,model:t.searchForm},on:{submit:t.search,reset:t.onReSet}},[n("el-form-item",{attrs:{prop:"organIdList"}},[n("el-select",{staticClass:"multiple",attrs:{clearable:"",filterable:"",multiple:"","collapse-tags":"",placeholder:"请选择分部"},model:{value:t.searchForm.organIdList,callback:function(e){t.$set(t.searchForm,"organIdList","string"===typeof e?e.trim():e)},expression:"searchForm.organIdList"}},t._l(t.selects.branchs,(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",{staticStyle:{width:"100% !important"},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:{"native-type":"submit",type:"danger"}},[t._v("搜索")]),t._v(" "),n("el-button",{attrs:{"native-type":"reset",type:"primary"}},[t._v("重置")])],1)],1),t._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"operatingReport/export",expression:"'operatingReport/export'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:t.downloadFile}},[t._v("导出")]),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",width:"150",prop:"organName",label:"分部"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[n("copy-text",[t._v(t._s(e.row.organName))])],1)]}}])}),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 ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("auth",{attrs:{auths:"/businessStatementDetail"}},[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.lookDetail(e.row)}}},[t._v("查看")])],1)]}}])})],1),t._v(" "),n("pagination",{attrs:{sync:"",total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"update:total":function(e){return t.$set(t.pageInfo,"total",e)},"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)])},o=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h2",[n("div",{staticClass:"squrt"}),t._v("\n 经营报表\n ")])}],a=n("db72"),u=n("333d"),i=n("adb21"),s=n("3de3"),c=n("1cc7"),l=(n("4360"),n("5a0c")),d=n.n(l),m={components:{pagination:u["a"]},name:"backMoney",data:function(){return{orderDate:null,searchForm:{startTime:null,endTime:null,organId:[],month:"",cooperationOrganId:"",organIdList:[]},tableList:[],organList:[],cooperations:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){var t=Object(a["a"])({},this.searchForm);t.month=d()().format("YYYY-MM"),this.searchForm=t},mounted:function(){var t=this;this.$store.dispatch("setBranchs"),Object(c["Z"])({rows:1e3}).then((function(e){200==e.code&&(t.cooperations=e.data.rows)})),this.getList()},methods:{search:function(){this.pageInfo.page=1,this.getList()},downloadFile:function(){var t=this.searchForm;Object(i["a"])(this,{url:"/api-web/operatingReport/export",params:Object(a["a"])(Object(a["a"])({},t),{},{organIdList:this.searchForm.organIdList.join(","),month:t.month?d()(t.month).format("YYYY-MM-DD"):""})},"是否确认导出报表?")},onTeachingSubmit:function(t,e){var n=this;this.$refs[t].validate((function(t){if(!t)return!1;n.form.status=e,Object(s["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(s["e"])(Object(a["a"])(Object(a["a"])({},e),{},{organIdList:this.searchForm.organIdList.join(","),month:e.month?d()(e.month).format("YYYY-MM-DD"):"",type:"organ"})).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:d()().format("YYYY-MM"),cooperationOrganId:"",organIdList:[],organId:[]},this.getList()},lookDetail:function(t){this.$router.push({path:"/financialManager/businessStatementDetail",query:{organId:t.organId,organName:t.organName}})}}},f=m,p=(n("1754"),n("2877")),h=Object(p["a"])(f,r,o,!1,null,"1183d612",null);e["default"]=h.exports}}]);