1 line
19 KiB
JavaScript
1 line
19 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6b26c6d8"],{"0b37":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return u})),n.d(e,"f",(function(){return i})),n.d(e,"e",(function(){return c}));n("8dee"),n("e680"),n("4057"),n("fc02");function r(t,e){var n,r,o,a;try{n=t.toString().split(".")[1].length}catch(i){n=0}try{r=e.toString().split(".")[1].length}catch(i){r=0}if(a=Math.abs(n-r),o=Math.pow(10,Math.max(n,r)),a>0){var u=Math.pow(10,a);n>r?(t=Number(t.toString().replace(".","")),e=Number(e.toString().replace(".",""))*u):(t=Number(t.toString().replace(".",""))*u,e=Number(e.toString().replace(".","")))}else t=Number(t.toString().replace(".","")),e=Number(e.toString().replace(".",""));return(t+e)/o}function o(t,e){var n,r,o=0,a=0;try{o=t.toString().split(".")[1].length}catch(u){}try{a=e.toString().split(".")[1].length}catch(u){}return n=Number(t.toString().replace(".","")),r=Number(e.toString().replace(".","")),n/r*Math.pow(10,a-o)}function a(t,e){var n=0,r=t.toString(),o=e.toString();try{n+=r.split(".")[1].length}catch(a){}try{n+=o.split(".")[1].length}catch(a){}return Number(r.replace(".",""))*Number(o.replace(".",""))/Math.pow(10,n)}function u(t,e){var n,r,o,a;try{n=t.toString().split(".")[1].length}catch(u){n=0}try{r=e.toString().split(".")[1].length}catch(u){r=0}return o=Math.pow(10,Math.max(n,r)),a=n>=r?n:r,(Math.round(t*o-e*o)/o).toFixed(a)}function i(t,e){if(0==t&&(t=0),/[^[\-|0-9][0-9]*]/.test(t))return"0";if(null==t||""===t)return"";t=t.toString().replace(/^(-\d*)$/,"$1."),t=t.toString().replace(/^(\d*)$/,"$1."),t=(t+"00").replace(/(\d*\.\d\d)\d*/,"$1"),t=t.replace(".",",");var n=/(\d)(\d{3},)/;while(n.test(t))t=t.replace(n,"$1,$2");if(t=t.replace(/,(\d\d)$/,".$1"),0===e||void 0===e){var r=t.split(".");"00"==r[1]&&(t=r[0])}return t}function c(t,e){t=t.toString();var n=t.indexOf(".");return t=-1!==n?t.substring(0,e+n+1):t.substring(0),parseFloat(t).toFixed(e)}},"44e7":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:"todayDynamicsbox"},[n("div",{staticClass:"box-container todayDynamicsTable detaPlatformTable"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"todayDynamics",attrs:{size:"small",height:t.tableHeight,"element-loading-background":"rgba(0, 0, 0, 0.1)",data:t.tableList,"row-class-name":t.tableRowClassName,"cell-style":t.cellStyle}},[n("el-table-column",{attrs:{label:"统计科目",align:"center"}},[n("el-table-column",{attrs:{prop:"subCode",label:"#","min-width":"50",align:"left","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.$index+1)+" ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"projectName",label:"项目名称","min-width":"120",align:"left","show-overflow-tooltip":"","label-class-name":"titleBlue"}})],1),t._v(" "),n("el-table-column",{attrs:{align:"center"}},[n("template",{slot:"header"},[t._v("\n 账期收入\n "),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.accountingPeriodText,placement:"top-start"}},[n("i",{staticClass:"el-icon-question itemcursor"})])],1),t._v(" "),n("el-table-column",{attrs:{label:"Q往年回款","min-width":"120",align:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-popover",{attrs:{"popper-class":"rePopoverOwner",placement:"top","visible-arrow":!1,effect:"dark",width:"200",trigger:"hover"}},[n("div",[n("p",[t._v("货币收入:"+t._s(t._f("formatMoney")(e.row.previousYearsRealAmount)))]),t._v(" "),n("p",[t._v("雨滴减免:"+t._s(t._f("formatMoney")(e.row.previousYearsReductionAmount)))])]),t._v(" "),n("div",{attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(t._f("formatMoney")(t.amountCalculation(e.row.previousYearsRealAmount,e.row.previousYearsReductionAmount))))])])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"unPreviousYearsAmount",label:"应收未收款","min-width":"120",align:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"unamout"},[t._v(t._s(t._f("formatMoney")(e.row.unPreviousYearsAmount)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"money",label:"Q去年回款","min-width":"120",align:"right","label-class-name":"titleBlue"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-popover",{attrs:{"popper-class":"rePopoverOwner",placement:"top","visible-arrow":!1,effect:"dark",width:"200",trigger:"hover"}},[n("div",[n("p",[t._v("货币收入:"+t._s(t._f("formatMoney")(e.row.lastYearsRealAmount)))]),t._v(" "),n("p",[t._v("雨滴减免:"+t._s(t._f("formatMoney")(e.row.lastYearsReductionAmount)))])]),t._v(" "),n("div",{attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(t._f("formatMoney")(t.amountCalculation(e.row.lastYearsRealAmount,e.row.lastYearsReductionAmount))))])])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"unLastYearsAmount",label:"应收未收款","min-width":"120",align:"right","label-class-name":"titleBlue"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"unamout"},[t._v(t._s(t._f("formatMoney")(e.row.unLastYearsAmount)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"money",label:"Q本年回款","min-width":"120",align:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-popover",{attrs:{"popper-class":"rePopoverOwner",placement:"top","visible-arrow":!1,effect:"dark",width:"200",trigger:"hover"}},[n("div",[n("p",[t._v("货币收入:"+t._s(t._f("formatMoney")(e.row.currentYearRealAmount)))]),t._v(" "),n("p",[t._v("雨滴减免:"+t._s(t._f("formatMoney")(e.row.currentYearReductionAmount)))])]),t._v(" "),n("div",{attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(t._f("formatMoney")(t.amountCalculation(e.row.currentYearRealAmount,e.row.currentYearReductionAmount))))])])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"unCurrentYearAmount",label:"应收未收款","min-width":"120",align:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"unamout"},[t._v(t._s(t._f("formatMoney")(e.row.unCurrentYearAmount)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"money",label:"DL往月回款","min-width":"120",align:"right","label-class-name":"titleBlue"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-popover",{attrs:{"popper-class":"rePopoverOwner",placement:"top","visible-arrow":!1,effect:"dark",width:"200",trigger:"hover"}},[n("div",[n("p",[t._v("货币收入:"+t._s(t._f("formatMoney")(e.row.currentYearBeforeRealAmount)))]),t._v(" "),n("p",[t._v("雨滴减免:"+t._s(t._f("formatMoney")(e.row.currentYearBeforeReductionAmount)))])]),t._v(" "),n("div",{attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(t._f("formatMoney")(t.amountCalculation(e.row.currentYearBeforeRealAmount,e.row.currentYearBeforeReductionAmount))))])])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"unCurrentYearBeforeMonthAmount",label:"应收未收款","min-width":"120",align:"right","label-class-name":"titleBlue"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"unamout"},[t._v(t._s(t._f("formatMoney")(e.row.unCurrentYearBeforeMonthAmount)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"money",label:"D本月回款","min-width":"120",align:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-popover",{attrs:{"popper-class":"rePopoverOwner",placement:"top","visible-arrow":!1,effect:"dark",width:"200",trigger:"hover"}},[n("div",[n("p",[t._v("货币收入:"+t._s(t._f("formatMoney")(e.row.currentMonthRealAmount)))]),t._v(" "),n("p",[t._v("雨滴减免:"+t._s(t._f("formatMoney")(e.row.currentMonthReductionAmount)))])]),t._v(" "),n("div",{attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(t._f("formatMoney")(t.amountCalculation(e.row.currentMonthRealAmount,e.row.currentMonthReductionAmount))))])])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"unCurrentMonthAmount",label:"应收未收款","min-width":"120",align:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"unamout"},[t._v(t._s(t._f("formatMoney")(e.row.unCurrentMonthAmount)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"currentRate",label:"同比","min-width":"80",align:"right","label-class-name":"titleBlue"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"unamout"},[t._v(t._s(t._f("decimalProcessing")(e.row.currentRate))+"%")])]}}])})],2),t._v(" "),n("el-table-column",{attrs:{align:"center"}},[n("template",{slot:"header"},[t._v("\n 现金流收入\n "),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.cashFlowDes,placement:"top-start"}},[n("i",{staticClass:"el-icon-question itemcursor"})])],1),t._v(" "),n("el-table-column",{attrs:{prop:"money",label:"本月流入","min-width":"120",align:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-popover",{attrs:{"popper-class":"rePopoverOwner",placement:"top","visible-arrow":!1,effect:"dark",width:"200",trigger:"hover"}},[n("div",[n("p",[t._v("货币收入:"+t._s(t._f("formatMoney")(e.row.monthRealAmount)))]),t._v(" "),n("p",[t._v("雨滴减免:"+t._s(t._f("formatMoney")(e.row.monthReductionAmount)))])]),t._v(" "),n("div",{attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(t._f("formatMoney")(t.amountCalculation(e.row.monthRealAmount,e.row.monthReductionAmount))))])])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"currentMonthRate",label:"同比","min-width":"80",align:"right","label-class-name":"titleBlue"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"unamout"},[t._v(t._s(t._f("decimalProcessing")(e.row.currentMonthRate))+"%")])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"money",label:"近七天流入","min-width":"120",align:"right","label-class-name":"titleBlue"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-popover",{attrs:{"popper-class":"rePopoverOwner",placement:"top","visible-arrow":!1,effect:"dark",width:"200",trigger:"hover"}},[n("div",[n("p",[t._v("货币收入:"+t._s(t._f("formatMoney")(e.row.weekRealAmount)))]),t._v(" "),n("p",[t._v("雨滴减免:"+t._s(t._f("formatMoney")(e.row.weekReductionAmount)))])]),t._v(" "),n("div",{attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(t._f("formatMoney")(t.amountCalculation(e.row.weekRealAmount,e.row.weekReductionAmount))))])])]}}])})],2)],1)],1)])},o=[],a=n("b071"),u=n("0b37"),i={name:"incomeStatementTable",props:["subjectName"],data:function(){return{companyId:"",accountingPeriodText:"按“计费账期”统计本年度各账期的收费金额",cashFlowDes:"按“支付时间”统计各时间段的收入",tableList:[],listLoading:!1,isMobile:!1,queryResult:[],subjectCode:"1801.1",tableHeight:null}},mounted:function(){this.$route.query.code?(this.companyId=this.$route.query.code,this.isMobile=!0,this.subjectCode="1801.1.1.1.1"):(this.isMobile=!1,this.subjectCode="1801.1",this.companyId=JSON.parse(window.localStorage.getItem("companyInfo")).osId),this.initPageTableHeight(),this.initPageData()},methods:{initPageTableHeight:function(){if(this.isMobile)this.tableHeight=window.innerWidth-24;else{var t=document.getElementsByClassName("R2-navbar")[0].clientHeight,e=document.getElementsByClassName("incomeHeader")[0].clientHeight;this.tableHeight=window.innerHeight-t-e-24}},initPageData:function(){this.getList()},getList:function(){var t=this;this.listLoading=!0,Object(a["n"])({companyId:this.companyId}).then((function(e){0===e.code?(t.queryResult=e.data,t.handelTableData()):t.tableList=[],t.listLoading=!1}))},handelTableData:function(){var t=this,e=this.queryResult;if(e.length>0){var n=[];e.map((function(e){var r=e.dtoList,o=r.filter((function(e){return e.subCode===t.subjectCode}));o.length>0&&(o[0]=Object.assign(o[0],{projectName:e.projectName})),n=0===n.length?o:n.concat(o)})),this.$emit("updataStatisicsTime",e[0].dtoList.length>0?e[0].dtoList[0].updateTime:"-"),0===n.length?this.tableList=[]:this.tableList=n}else this.tableList=[]},updataTableRender:function(t){console.log("list",t),this.subjectCode=t[0],this.handelTableData()},tableRowClassName:function(t){t.row;var e=t.rowIndex;return(e+1)%2===0?"detaPlatRow-even":"detaPlatRow-odd"},cellStyle:function(t){t.row,t.column,t.rowIndex,t.columnIndex;return""},amountCalculation:function(t,e){return Object(u["a"])(t,e)}}},c=i,l=(n("5598"),n("829d")),s=Object(l["a"])(c,r,o,!1,null,"faa920d6",null);e["default"]=s.exports},5598:function(t,e,n){"use strict";n("79f2")},"79f2":function(t,e,n){},b071:function(t,e,n){"use strict";n.d(e,"n",(function(){return o})),n.d(e,"q",(function(){return a})),n.d(e,"o",(function(){return u})),n.d(e,"r",(function(){return i})),n.d(e,"E",(function(){return c})),n.d(e,"D",(function(){return l})),n.d(e,"N",(function(){return s})),n.d(e,"K",(function(){return d})),n.d(e,"F",(function(){return p})),n.d(e,"p",(function(){return m})),n.d(e,"G",(function(){return f})),n.d(e,"H",(function(){return h})),n.d(e,"O",(function(){return b})),n.d(e,"k",(function(){return v})),n.d(e,"M",(function(){return g})),n.d(e,"l",(function(){return y})),n.d(e,"j",(function(){return _})),n.d(e,"i",(function(){return w})),n.d(e,"L",(function(){return O})),n.d(e,"x",(function(){return S})),n.d(e,"y",(function(){return k})),n.d(e,"c",(function(){return T})),n.d(e,"d",(function(){return j})),n.d(e,"b",(function(){return P})),n.d(e,"w",(function(){return C})),n.d(e,"v",(function(){return R})),n.d(e,"C",(function(){return M})),n.d(e,"a",(function(){return A})),n.d(e,"A",(function(){return L})),n.d(e,"t",(function(){return x})),n.d(e,"B",(function(){return Y})),n.d(e,"u",(function(){return B})),n.d(e,"s",(function(){return N})),n.d(e,"z",(function(){return I})),n.d(e,"P",(function(){return $})),n.d(e,"g",(function(){return D})),n.d(e,"h",(function(){return H})),n.d(e,"f",(function(){return W})),n.d(e,"e",(function(){return q})),n.d(e,"m",(function(){return E})),n.d(e,"I",(function(){return F})),n.d(e,"J",(function(){return J}));var r=n("b775");function o(t){return Object(r["a"])({url:"/hakocompany/data/project/currentYearTotal",method:"POST",data:t})}function a(t){return Object(r["a"])({url:"/hakocompany/data/project/employeeReport",method:"POST",data:t})}function u(t){return Object(r["a"])({url:"/hakocompany/data/project/currentYearTotalTask",method:"POST",data:t})}function i(t){return Object(r["a"])({url:"/hakocompany/data/project/employeeReportTask",method:"POST",data:t})}function c(t){return Object(r["a"])({url:"/company/Assess/pageListAssess",method:"POST",data:t})}function l(t){return Object(r["a"])({url:"/hakocompany/data/project/chargeTotal",method:"POST",data:t})}function s(t){return Object(r["a"])({url:"/hakocompany/data/project/currentTotalTask",method:"POST",data:t})}function d(t){return Object(r["a"])({url:"/hakocompany/data/project/syncTaskV2",method:"POST",data:t})}function p(t){return Object(r["a"])({url:"/hakocompany/data/project/syncUpdate",method:"POST",data:t})}function m(t){return Object(r["a"])({url:"/hakocompany/data/project/downloadChargeTotal",method:"POST",responseType:"blob",data:t})}function f(t){return Object(r["a"])({url:"/hakocompany/spaceTaskStatistics/pageList",method:"POST",data:t})}function h(t){return Object(r["a"])({url:"/hakocompany/spaceTaskStatistics/exportByMonth",method:"POST",responseType:"blob",data:t})}function b(t){return Object(r["a"])({url:"/hakocompany/spaceTaskStatistics/statistics",method:"POST",data:t})}function v(t){return Object(r["a"])({url:"/hakocompany/ContractTaskStatistics/pageList",method:"POST",data:t})}function g(t){return Object(r["a"])({url:"/hakocompany/ContractTaskStatistics/statistics",method:"POST",data:t})}function y(t){return Object(r["a"])({url:"/hakocompany/ContractTaskStatistics/pageItemList",method:"POST",data:t})}function _(t){return Object(r["a"])({url:"/hakocompany/ContractExecuteStatistics/pageList",method:"POST",data:t})}function w(t){return Object(r["a"])({url:"/hakocompany/ContractExecuteStatistics/export",method:"POST",responseType:"blob",data:t})}function O(t){return Object(r["a"])({url:"/hakocompany/ContractExecuteStatistics/statistics",method:"POST",data:t})}function S(t){return Object(r["a"])({url:"/hakocompany/InspectSubscribe/reportPageList",method:"POST",data:t})}function k(t){return Object(r["a"])({url:"/hakocompany/InspectSubscribe/exportReport",method:"POST",responseType:"blob",data:t})}function T(t){return Object(r["a"])({url:"/hakocompany/TaskStatisticsReport/pageList",method:"POST",data:t})}function j(t){return Object(r["a"])({url:"/hakocompany/TaskStatisticsReport/statistics",method:"POST",data:t})}function P(t){return Object(r["a"])({url:"/hakocompany/TaskStatisticsReport/exportReport",method:"POST",responseType:"blob",data:t})}function C(t){return Object(r["a"])({url:"/hakocompany/data/project/personWeekInfo",method:"POST",data:t})}function R(t){return Object(r["a"])({url:"/hakocompany/data/project/downloadWeekInfo",method:"POST",responseType:"blob",data:t})}function M(t){return Object(r["a"])({url:"/hakocompany/data/project/projectWxpublicUser",method:"POST",data:t})}function A(t){return Object(r["a"])({url:"/hakocompany/TaskStatisticsReport/projectPageList",method:"POST",data:t})}function L(t){return Object(r["a"])({url:"/hakocompany/PostponeWorder/projectOrderStatisticsPage",method:"POST",data:t})}function x(t){return Object(r["a"])({url:"/hakocompany/PostponeWorder/memberOrderPage",method:"POST",data:t})}function Y(t){return Object(r["a"])({url:"/hakocompany/TaskStatisticsReport/projectPageByTaskType",method:"POST",data:t})}function B(t){return Object(r["a"])({url:"/hakocompany/TaskStatisticsReport/pageByTaskType",method:"POST",data:t})}function N(t){return Object(r["a"])({url:"/hakocompany/WorkOrder/memberOrderPage",method:"POST",data:t})}function I(t){return Object(r["a"])({url:"/hakocompany/PostponeWorder/export",method:"POST",responseType:"blob",data:t})}function $(t){return Object(r["a"])({url:"/hakocompany/WorkOrder/export",method:"POST",responseType:"blob",data:t})}function D(t){return Object(r["a"])({url:"/hakocompany/data/project/ChargeReportByCharge/pageList",method:"POST",data:t})}function H(t){return Object(r["a"])({url:"/hakocompany/data/project/ChargeReportByCharge/pageList/sum",method:"POST",data:t})}function W(t){return Object(r["a"])({url:"/hakocompany/data/project/ChargeReportByCharge/out/excel",method:"POST",responseType:"blob",data:t})}function q(t){return Object(r["a"])({url:"/hakocompany/data/project/calculated/rate",method:"POST",data:t})}function E(t){return Object(r["a"])({url:"/hakocompany/data/project/ChargeReportByCharge/current/by/charges",method:"POST",data:t})}function F(t){return Object(r["a"])({url:"/hakocompany/CustomerVisit/statisticsCustomerVisit",method:"POST",data:t})}function J(t){return Object(r["a"])({url:"/hakocompany/CustomerVisit/export",method:"POST",responseType:"blob",data:t})}}}]); |