1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-468d0c5c"],{"0b37":function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return o})),a.d(e,"d",(function(){return c})),a.d(e,"f",(function(){return i})),a.d(e,"e",(function(){return l}));a("8dee"),a("e680"),a("4057"),a("fc02");function n(t,e){var a,n,r,o;try{a=t.toString().split(".")[1].length}catch(i){a=0}try{n=e.toString().split(".")[1].length}catch(i){n=0}if(o=Math.abs(a-n),r=Math.pow(10,Math.max(a,n)),o>0){var c=Math.pow(10,o);a>n?(t=Number(t.toString().replace(".","")),e=Number(e.toString().replace(".",""))*c):(t=Number(t.toString().replace(".",""))*c,e=Number(e.toString().replace(".","")))}else t=Number(t.toString().replace(".","")),e=Number(e.toString().replace(".",""));return(t+e)/r}function r(t,e){var a,n,r=0,o=0;try{r=t.toString().split(".")[1].length}catch(c){}try{o=e.toString().split(".")[1].length}catch(c){}return a=Number(t.toString().replace(".","")),n=Number(e.toString().replace(".","")),a/n*Math.pow(10,o-r)}function o(t,e){var a=0,n=t.toString(),r=e.toString();try{a+=n.split(".")[1].length}catch(o){}try{a+=r.split(".")[1].length}catch(o){}return Number(n.replace(".",""))*Number(r.replace(".",""))/Math.pow(10,a)}function c(t,e){var a,n,r,o;try{a=t.toString().split(".")[1].length}catch(c){a=0}try{n=e.toString().split(".")[1].length}catch(c){n=0}return r=Math.pow(10,Math.max(a,n)),o=a>=n?a:n,(Math.round(t*r-e*r)/r).toFixed(o)}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 a=/(\d)(\d{3},)/;while(a.test(t))t=t.replace(a,"$1,$2");if(t=t.replace(/,(\d\d)$/,".$1"),0===e||void 0===e){var n=t.split(".");"00"==n[1]&&(t=n[0])}return t}function l(t,e){t=t.toString();var a=t.indexOf(".");return t=-1!==a?t.substring(0,e+a+1):t.substring(0),parseFloat(t).toFixed(e)}},"0e7c":function(t,e,a){},"82a6":function(t,e,a){},b071:function(t,e,a){"use strict";a.d(e,"n",(function(){return r})),a.d(e,"q",(function(){return o})),a.d(e,"o",(function(){return c})),a.d(e,"r",(function(){return i})),a.d(e,"E",(function(){return l})),a.d(e,"D",(function(){return u})),a.d(e,"N",(function(){return s})),a.d(e,"K",(function(){return d})),a.d(e,"F",(function(){return p})),a.d(e,"p",(function(){return h})),a.d(e,"G",(function(){return m})),a.d(e,"H",(function(){return f})),a.d(e,"O",(function(){return b})),a.d(e,"k",(function(){return g})),a.d(e,"M",(function(){return y})),a.d(e,"l",(function(){return S})),a.d(e,"j",(function(){return T})),a.d(e,"i",(function(){return O})),a.d(e,"L",(function(){return v})),a.d(e,"x",(function(){return w})),a.d(e,"y",(function(){return k})),a.d(e,"c",(function(){return j})),a.d(e,"d",(function(){return P})),a.d(e,"b",(function(){return C})),a.d(e,"w",(function(){return x})),a.d(e,"v",(function(){return N})),a.d(e,"C",(function(){return _})),a.d(e,"a",(function(){return M})),a.d(e,"A",(function(){return R})),a.d(e,"t",(function(){return L})),a.d(e,"B",(function(){return B})),a.d(e,"u",(function(){return $})),a.d(e,"s",(function(){return I})),a.d(e,"z",(function(){return E})),a.d(e,"P",(function(){return q})),a.d(e,"g",(function(){return D})),a.d(e,"h",(function(){return z})),a.d(e,"f",(function(){return H})),a.d(e,"e",(function(){return U})),a.d(e,"m",(function(){return W})),a.d(e,"I",(function(){return J})),a.d(e,"J",(function(){return F}));var n=a("b775");function r(t){return Object(n["a"])({url:"/hakocompany/data/project/currentYearTotal",method:"POST",data:t})}function o(t){return Object(n["a"])({url:"/hakocompany/data/project/employeeReport",method:"POST",data:t})}function c(t){return Object(n["a"])({url:"/hakocompany/data/project/currentYearTotalTask",method:"POST",data:t})}function i(t){return Object(n["a"])({url:"/hakocompany/data/project/employeeReportTask",method:"POST",data:t})}function l(t){return Object(n["a"])({url:"/company/Assess/pageListAssess",method:"POST",data:t})}function u(t){return Object(n["a"])({url:"/hakocompany/data/project/chargeTotal",method:"POST",data:t})}function s(t){return Object(n["a"])({url:"/hakocompany/data/project/currentTotalTask",method:"POST",data:t})}function d(t){return Object(n["a"])({url:"/hakocompany/data/project/syncTaskV2",method:"POST",data:t})}function p(t){return Object(n["a"])({url:"/hakocompany/data/project/syncUpdate",method:"POST",data:t})}function h(t){return Object(n["a"])({url:"/hakocompany/data/project/downloadChargeTotal",method:"POST",responseType:"blob",data:t})}function m(t){return Object(n["a"])({url:"/hakocompany/spaceTaskStatistics/pageList",method:"POST",data:t})}function f(t){return Object(n["a"])({url:"/hakocompany/spaceTaskStatistics/exportByMonth",method:"POST",responseType:"blob",data:t})}function b(t){return Object(n["a"])({url:"/hakocompany/spaceTaskStatistics/statistics",method:"POST",data:t})}function g(t){return Object(n["a"])({url:"/hakocompany/ContractTaskStatistics/pageList",method:"POST",data:t})}function y(t){return Object(n["a"])({url:"/hakocompany/ContractTaskStatistics/statistics",method:"POST",data:t})}function S(t){return Object(n["a"])({url:"/hakocompany/ContractTaskStatistics/pageItemList",method:"POST",data:t})}function T(t){return Object(n["a"])({url:"/hakocompany/ContractExecuteStatistics/pageList",method:"POST",data:t})}function O(t){return Object(n["a"])({url:"/hakocompany/ContractExecuteStatistics/export",method:"POST",responseType:"blob",data:t})}function v(t){return Object(n["a"])({url:"/hakocompany/ContractExecuteStatistics/statistics",method:"POST",data:t})}function w(t){return Object(n["a"])({url:"/hakocompany/InspectSubscribe/reportPageList",method:"POST",data:t})}function k(t){return Object(n["a"])({url:"/hakocompany/InspectSubscribe/exportReport",method:"POST",responseType:"blob",data:t})}function j(t){return Object(n["a"])({url:"/hakocompany/TaskStatisticsReport/pageList",method:"POST",data:t})}function P(t){return Object(n["a"])({url:"/hakocompany/TaskStatisticsReport/statistics",method:"POST",data:t})}function C(t){return Object(n["a"])({url:"/hakocompany/TaskStatisticsReport/exportReport",method:"POST",responseType:"blob",data:t})}function x(t){return Object(n["a"])({url:"/hakocompany/data/project/personWeekInfo",method:"POST",data:t})}function N(t){return Object(n["a"])({url:"/hakocompany/data/project/downloadWeekInfo",method:"POST",responseType:"blob",data:t})}function _(t){return Object(n["a"])({url:"/hakocompany/data/project/projectWxpublicUser",method:"POST",data:t})}function M(t){return Object(n["a"])({url:"/hakocompany/TaskStatisticsReport/projectPageList",method:"POST",data:t})}function R(t){return Object(n["a"])({url:"/hakocompany/PostponeWorder/projectOrderStatisticsPage",method:"POST",data:t})}function L(t){return Object(n["a"])({url:"/hakocompany/PostponeWorder/memberOrderPage",method:"POST",data:t})}function B(t){return Object(n["a"])({url:"/hakocompany/TaskStatisticsReport/projectPageByTaskType",method:"POST",data:t})}function $(t){return Object(n["a"])({url:"/hakocompany/TaskStatisticsReport/pageByTaskType",method:"POST",data:t})}function I(t){return Object(n["a"])({url:"/hakocompany/WorkOrder/memberOrderPage",method:"POST",data:t})}function E(t){return Object(n["a"])({url:"/hakocompany/PostponeWorder/export",method:"POST",responseType:"blob",data:t})}function q(t){return Object(n["a"])({url:"/hakocompany/WorkOrder/export",method:"POST",responseType:"blob",data:t})}function D(t){return Object(n["a"])({url:"/hakocompany/data/project/ChargeReportByCharge/pageList",method:"POST",data:t})}function z(t){return Object(n["a"])({url:"/hakocompany/data/project/ChargeReportByCharge/pageList/sum",method:"POST",data:t})}function H(t){return Object(n["a"])({url:"/hakocompany/data/project/ChargeReportByCharge/out/excel",method:"POST",responseType:"blob",data:t})}function U(t){return Object(n["a"])({url:"/hakocompany/data/project/calculated/rate",method:"POST",data:t})}function W(t){return Object(n["a"])({url:"/hakocompany/data/project/ChargeReportByCharge/current/by/charges",method:"POST",data:t})}function J(t){return Object(n["a"])({url:"/hakocompany/CustomerVisit/statisticsCustomerVisit",method:"POST",data:t})}function F(t){return Object(n["a"])({url:"/hakocompany/CustomerVisit/export",method:"POST",responseType:"blob",data:t})}},c107:function(t,e,a){"use strict";a("0e7c")},d0ce:function(t,e,a){"use strict";a("82a6")},d713:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flowlayout incomeStatement physicalReport"},[a("div",{staticClass:"incomeHeader"},[t._v("\n 体检统计报表\n "),t._v(" "),a("span",{staticClass:"updataQuery itemcursor",on:{click:t.exportExcel}},[t._v("下载Excel")]),t._v(" "),a("div",{staticClass:"selectMonthBox"},[a("el-date-picker",{staticClass:"selectTable selectMonth",attrs:{"popper-class":"selectTablePopper",clearable:!1,size:"mini",type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.dataPickerChange},model:{value:t.selectedMonth,callback:function(e){t.selectedMonth=e},expression:"selectedMonth"}})],1)]),t._v(" "),a("physicalReport",{ref:"physicalReport",on:{updataStatisicsTime:t.updataStatisicsTime}})],1)},r=[],o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"todayDynamicsbox"},[a("div",{staticClass:"box-container todayDynamicsTable detaPlatformTable"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"todayDynamics",attrs:{size:"small",border:"",height:t.tableHeight,"element-loading-background":"rgba(0, 0, 0, 0.1)",data:t.tableList,"row-class-name":t.tableRowClassName}},[a("el-table-column",{attrs:{prop:"code",label:"#","min-width":"50",align:"center","label-class-name":"titleBlue"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(" "+t._s(e.$index+(t.query.pageNumber-1)*t.query.pageSize+1)+" ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"项目",prop:"projectName","min-width":"140",align:"center","show-overflow-tooltip":"","label-class-name":"titleBlue",filters:t.filterProject,"filter-method":t.filterTag,"filter-placement":"bottom"}}),t._v(" "),a("el-table-column",{attrs:{label:"体检套餐",prop:"setMealName","min-width":"160",align:"center","show-overflow-tooltip":"","label-class-name":"titleBlue"}}),t._v(" "),a("el-table-column",{attrs:{label:"完成时间",prop:"realEndTime","min-width":"160",align:"center","show-overflow-tooltip":"","label-class-name":"titleBlue"}}),t._v(" "),a("el-table-column",{attrs:{label:"总分",prop:"totalScore","min-width":"100",align:"center","show-overflow-tooltip":"","label-class-name":"titleBlue"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.totalScore?e.row.totalScore:"-"))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"得分",prop:"comprehensiveScore","min-width":"100",align:"center","show-overflow-tooltip":"","label-class-name":"titleBlue"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.comprehensiveScore?e.row.comprehensiveScore:"-"))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"得分率",prop:"scoreRate","min-width":"100",align:"center","show-overflow-tooltip":"","label-class-name":"titleBlue"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.scoreRate?e.row.scoreRate:"-"))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"整改数",prop:"orderNum","min-width":"100",align:"center","show-overflow-tooltip":"","label-class-name":"titleBlue"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.orderNum>0?a("div",{staticClass:"orderNumUnderLine",on:{click:function(a){return t.gotoPhysical(e.row)}}},[t._v(t._s(e.row.orderNum))]):a("div",[t._v("-")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"整改报告",prop:"reported","min-width":"100",align:"center","show-overflow-tooltip":"","label-class-name":"titleBlue"}}),t._v(" "),a("el-table-column",{attrs:{label:"点赞数",prop:"agreeNum","min-width":"100",align:"center","show-overflow-tooltip":"","label-class-name":"titleBlue"}}),t._v(" "),a("el-table-column",{attrs:{label:"评价数",prop:"commentNum","min-width":"100",align:"center","show-overflow-tooltip":"","label-class-name":"titleBlue"}}),t._v(" "),a("el-table-column",{attrs:{label:"综合评分",prop:"avgScore","min-width":"100",align:"center","show-overflow-tooltip":"","label-class-name":"titleBlue"}})],1),t._v(" "),a("div",{staticClass:"table-ststisic-pages"},[a("el-pagination",{attrs:{background:"","current-page":t.query.pageNumber,"pager-count":7,"page-sizes":[10,20,30,50],"page-size":t.query.pageSize,layout:"total, prev, pager, next, jumper",total:t.pageTotal},on:{"update:currentPage":function(e){return t.$set(t.query,"pageNumber",e)},"update:current-page":function(e){return t.$set(t.query,"pageNumber",e)},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)])},c=[],i=(a("a7e5"),a("b071")),l=a("0b37"),u={name:"incomeStatementTable",data:function(){return{companyId:"",companyName:"",tableList:[],listLoading:!1,isMobile:!1,tableHeight:null,pageTotal:0,query:{companyId:"",realStartTime:"",realEndTime:"",pageNumber:1,pageSize:20},filterProject:[]}},mounted:function(){this.companyName=JSON.parse(window.localStorage.getItem("companyInfo")).abbreviation,this.query.companyId=JSON.parse(window.localStorage.getItem("companyInfo")).osId,this.initPageTableHeight()},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,a=document.getElementsByClassName("table-ststisic-pages")[0].clientHeight;this.tableHeight=window.innerHeight-t-e-a-24}},initPageData:function(t){this.query.realStartTime="".concat(t[0]," 00:00:00"),this.query.realEndTime="".concat(t[1]," 23:59:59"),this.query.pageNumber=1,this.getTableList()},getTableList:function(){var t=this;this.listLoading=!0,Object(i["x"])(this.query).then((function(e){if(0===e.code&&e.data){var a=e.data,n=a.rowsCount,r=a.records;if(r.length>0){var o=[];t.pageTotal=n,t.tableList=r,r.map((function(t){o.findIndex((function(e){return e.value===t.projectUuid}))<0&&o.push({text:t.projectName,value:t.projectUuid})})),t.filterProject=o}else t.pageTotal=0,t.tableList=[]}else t.pageTotal=0,t.tableList=[];t.listLoading=!1}))},filterTag:function(t,e){return e.projectUuid===t},tableRowClassName:function(t){t.row;var e=t.rowIndex;return(e+1)%2===0?"detaPlatRow-even":"detaPlatRow-odd"},gotoPhysical:function(t){var e="".concat("https://hc-pos.sqygj.cn/","#/viewInfo/viewPhysical?data=").concat(t.id);window.open("".concat(e))},amountCalculation:function(t,e){return Object(l["a"])(t,e)},handleSizeChange:function(t){this.query.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.query.pageNumber=t,this.getTableList()}}},s=u,d=(a("d0ce"),a("829d")),p=Object(d["a"])(s,o,c,!1,null,"e7c42bba",null),h=p.exports,m={components:{physicalReport:h},data:function(){return{selectedMonth:""}},mounted:function(){this.initDate()},methods:{initDate:function(){var t=this,e=this.$moment(new Date).format("yyyy-MM-DD"),a=this.$moment(e).subtract(30,"days").format("yyyy-MM-DD");this.selectedMonth=[a,e],this.$nextTick((function(){t.$refs.physicalReport.initPageData(t.selectedMonth)}))},updataStatisicsTime:function(){this.updataTime=val},exportExcel:function(){var t={companyId:JSON.parse(window.localStorage.getItem("companyInfo")).osId,realStartTime:"".concat(this.selectedMonth[0]," 00:00:00"),realEndTime:"".concat(this.selectedMonth[1]," 23:59:59"),pageNumber:1,pageSize:-1},e="体检统计报表.xls";Object(i["y"])(t).then((function(t){var a=new Blob([t],{type:"application/vnd.ms-excel;charset=UTF-8"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(a);else{var n=document.createElement("a");n.download=e,n.href=URL.createObjectURL(a),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}})).catch((function(t){}))},dataPickerChange:function(t){var e=this;t&&t.length>0&&this.$nextTick((function(){e.$refs.physicalReport.initPageData(e.selectedMonth)}))},selectMonthChange:function(){var t=this;this.$nextTick((function(){t.$refs.physicalReport.initPageData(t.selectedMonth)}))}}},f=m,b=(a("c107"),Object(d["a"])(f,n,r,!1,null,"9fe9a9c2",null));e["default"]=b.exports}}]); |