(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-acc0f15a","chunk-32271bb8"],{"0778":function(t,e,a){"use strict";a("4cce")},"0c67":function(t,e,a){},"4cce":function(t,e,a){},b018:function(t,e,a){"use strict";var n=a("5530"),s=(a("99af"),a("a15b"),a("d3b7"),a("ac1f"),a("5319"),a("c1df")),i=a.n(s),r={data:function(){return{advanced:!1,exportLoading:!1,selectedRowKeys:[],pageNum:1,pageSize:10,total:0,tableData:[],tableLoading:!1,queryParams:{},otherParams:{}}},mounted:function(){this.isCancelHttp||this.loadData()},methods:{handleSubmit:function(t){t&&t.preventDefault();var e=this.queryParams,a={};for(var n in e)(e[n]||0===e[n])&&("rangeTime"===n?(a.beginTime=i()(e[n][0]).format("YYYY-MM-DD"),a.endTime=i()(e[n][1]).format("YYYY-MM-DD")):"f3"===n?a.startTime=i()(e[n]).format("YYYY-MM-DD"):a[n]=e[n]);this.queryParams=a,1!==this.pageNum&&(this.pageNum=1),this.loadData()},handleReset:function(){"{}"!==JSON.stringify(this.queryParams)&&(this.queryParams={},this.handleSubmit())},toggleAdvanced:function(){this.advanced=!this.advanced},setUrlQuery:function(t){var e=t.query,a="";if(e){var n=[];for(var s in e)e.hasOwnProperty(s)&&n.push("".concat(s,"=").concat(e[s]));a=-1!==a.indexOf("?")?"".concat(a,"&").concat(n.join("&")):"".concat(a,"?").concat(n.join("&"))}return a=a.replace(/null/g,""),a=a.replace(/undefined/g,""),a},loadData:function(){var t=this;if(this.queryUrl||this.otherParams.queryUrl){var e=Object.assign({pageNum:this.pageNum,pageSize:this.otherParams.pageSize?this.otherParams.pageSize:this.pageSize},this.queryParams,this.otherParams);this.tableLoading=!0;var a=this.otherParams.method||"POST",s="";"get"==a&&(s=this.setUrlQuery({query:Object(n["a"])(Object(n["a"])({},this.queryParams),{},{pageNum:this.pageNum,pageSize:this.queryParams.pageSize?this.queryParams.pageSize:this.pageSize})})),this.$http({url:this.otherParams.queryUrl||this.queryUrl+s,method:a,data:"POST"==a?e:{},params:"GET"==a?e:{}}).then((function(e){if(Array.isArray(e.data)){var a=e.data;t.tableData=a}else if(e.data){var n=e.data,s=n.rows,i=n.total,r=n.records,o=n.items;t.tableData=s||r||o||[],t.total=i||0}else{var c=e.rows,u=e.total,d=e.records,l=e.items;t.tableData=c||d||l||[],t.total=u||0}t.tableData.length>0&&(t.selectedRowId=t.tableData[0].id)})).catch((function(e){t.$notification.error({message:"失败",description:e.msg})})).finally((function(){t.tableLoading=!1}))}},handleCurrentChange:function(t){this.loadData()},onPageShowSizeChange:function(t,e){Object.assign(this,{pageNum:t,pageSize:e}),this.loadData()},onSelectChange:function(t){this.selectedRowKeys=t},pcsChangeHandle:function(t,e){var a={},n=Object.assign({},this.queryParams);e||(delete n.provinceId,delete n.provinceName,delete n.cityId,delete n.cityName,delete n.strictId,delete n.strictName),e&&1===e.length&&(a.provinceId=e[0].code,a.provinceName=e[0].label,delete n.cityId,delete n.cityName,delete n.strictId,delete n.strictName),e&&2===e.length&&(a.cityId=e[1].code,a.cityName=e[1].label,delete n.strictId,delete n.strictName),e&&3===e.length&&(a.strictId=e[2].code,a.strictName=e[2].label),this.queryParams=Object.assign({},n,a)},rangDateChangeHandle:function(t,e){var a={},n=Object.assign({},this.queryParams);e&&e[0]&&(a.beginTime=e[0]),e&&e[1]&&(a.endTime=e[1]),"{}"===JSON.stringify(a)&&(delete n.beginTime,delete n.endTime),this.queryParams=Object.assign({},n,a)},handleDateQuickChange:function(t){t.startDate?(this.$set(this.queryParams,"rangDate",[i()(t.startDate),i()(t.endDate)]),this.queryParams.beginTime=t.startDate,this.queryParams.endTime=t.endDate):(delete this.queryParams.beginTime,delete this.queryParams.endTime,this.$set(this.queryParams,"rangDate",void 0))}}};e["a"]=r},bcd1:function(t,e,a){"use strict";a("0c67")},c35e:function(t,e,a){"use strict";a.r(e);a("b0c0");var n=function(){var t=this,e=t._self._c;return e("div",{ref:"pageImgHome",staticClass:"page-word"},[e("div",{staticClass:"page"},[e("h5",{staticClass:"h5-title"},[e("span",[t._v("单位："+t._s(t.dataInfo.company?t.dataInfo.company:"--"))]),e("span",[t._v("报表生成时间："+t._s(t.dataInfo.generatedTime?t.dataInfo.generatedTime:"--"))]),e("span",[t._v("报表数据日期："+t._s(t.dataInfo.dataDate?t.dataInfo.dataDate:"--"))])]),t.dataInfo?e("div",{staticClass:"page-body"},[e("div",{staticClass:"data-tj"},[e("div",{staticClass:"item"},[e("p",[e("span",{on:{click:function(e){return t.changePage(3)}}},[e("b",[t._v(t._s(t.dataInfo.wramNum?t.numberToCurrencyNo(t.dataInfo.wramNum):0))])]),t._v("预警总数")])]),e("div",{staticClass:"item"},[e("p",[e("span",{on:{click:function(e){return t.changePage(4)}}},[e("b",[t._v(t._s(t.dataInfo.assignNum?t.numberToCurrencyNo(t.dataInfo.assignNum):0))])]),t._v("交办数")])]),e("div",{staticClass:"item"},[e("p",[e("span",{on:{click:function(e){return t.changePage(5)}}},[e("b",[t._v(t._s(t.dataInfo.supervisionNum?t.numberToCurrencyNo(t.dataInfo.supervisionNum):0))])]),t._v("督办数")])]),e("div",{staticClass:"item"},[e("p",[e("span",{on:{click:function(e){return t.changePage(1)}}},[e("b",[t._v(t._s(t.dataInfo.dataNum?t.numberToCurrencyNo(t.dataInfo.dataNum):0))])]),t._v("日更新数据")])]),e("div",{staticClass:"item"},[e("p",[e("span",{on:{click:function(e){return t.changePage(2)}}},[e("b",[t._v(t._s(t.dataInfo.totalNum?t.numberToCurrencyNo(t.dataInfo.totalNum):0))])]),t._v("已归集数据总量")])])]),e("div",{staticClass:"model-sub"},[e("h2",{staticClass:"sub-title"},[t._v("今日预警排名 ")]),t.dataInfo.modelList&&t.dataInfo.modelList.length>0?e("div",{staticClass:"model-list"},t._l(t.dataInfo.modelList,(function(a,n){return e("p",{key:n,staticClass:"item"},[e("i",[t._v(t._s(n+1))]),e("span",[t._v(t._s(a.name)+" "),e("label",[t._v("( "),e("b",{on:{click:function(e){return t.modelInfo(a)}}},[t._v(t._s(a.value))]),t._v(" 条 )")])])])})),0):t._e()]),e("div",{staticClass:"es-body"},[e("div",{staticClass:"item"},[e("h3",[t._v("预警类型结果")]),e("a-spin",{attrs:{spinning:t.spinning}},[e("div",{ref:"es_sj",staticClass:"echars",style:{height:"382px"},attrs:{id:"Home_YJLXBB"}})])],1),e("div",{staticClass:"item"},[e("h3",[t._v("区域比例")]),e("a-spin",{attrs:{spinning:t.spinning1}},[e("div",{ref:"es_sj1",staticClass:"echars",style:{height:"382px"},attrs:{id:"Home_QYBL"}})])],1)]),e("div",{staticClass:"data-check"},[e("p",{staticClass:"title-p",on:{click:function(e){t.showTable=!t.showTable}}},[t._v("系统数据校验表("+t._s(1==t.type?"营收":"报装")+")"),e("i",{staticClass:"iconfont icon-youbianbiaoqian",class:t.showTable?"rotate":""})]),e("dataCheck",{directives:[{name:"show",rawName:"v-show",value:t.showTable,expression:"showTable"}],attrs:{type:t.type}})],1)]):t._e()])])},s=[],i=a("c7eb"),r=a("1da1"),o=(a("d81d"),a("313e")),c=a.n(o),u=a("c0e9"),d=a.n(u),l=a("1ac1"),m=a("12df"),h=a("fda4"),p=a("c1df"),f=a.n(p),b={name:"reportForm",components:{dataCheck:h["default"]},props:["type","selectDate","company"],data:function(){return{echarts:c.a,jyjlxbbOption:l["jyjlxbbOption"],qyblbbOption:l["qyblbbOption"],spinning:!0,spinning1:!0,dataInfo:{company:""},showTable:!1,companyName:this.company}},computed:{},mounted:function(){},watch:{type:function(t,e){var a=this;return Object(r["a"])(Object(i["a"])().mark((function t(){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,a.getData();case 2:case"end":return t.stop()}}),t)})))()},company:function(t,e){var a=this;return Object(r["a"])(Object(i["a"])().mark((function e(){return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a.companyName=t,e.next=3,a.getData();case 3:case"end":return e.stop()}}),e)})))()}},created:function(){var t=this;return Object(r["a"])(Object(i["a"])().mark((function e(){return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getData();case 2:case"end":return e.stop()}}),e)})))()},methods:{modelInfo:function(t){1===this.type?this.$router.push({path:"/sjcj/yd/ssys?modelId=".concat(t.name)}):this.$router.push({path:"/sjcj/yd/ssbz?modelId=".concat(t.name)})},changePage:function(t){1===this.type?1===t?this.$router.push({path:"/sjgj/ssys"}):2===t?this.$router.push({path:"/sjgj/ys"}):3===t?this.$router.push({path:"/sjcj/yd/ssys"}):4===t?this.$router.push({path:"/jbcj/sfzs"}):5===t&&this.$router.push({path:"/dbcj/sfzs"}):1===t?this.$router.push({path:"/sjgj/ssbz"}):2===t?this.$router.push({path:"/sjgj/bz"}):3===t?this.$router.push({path:"/sjcj/yd/ssbz"}):4===t?this.$router.push({path:"/jbcj/lhxx"}):5===t&&this.$router.push({path:"/dbcj/lhxx"})},downLoad:function(){var t=this;return d()(this.$refs.pageImgHome,{backgroundColor:null,dpi:192,scale:2,useCORS:!0}).then((function(e){var a=e.toDataURL("image/png"),n=document.createElement("a");n.href=a,n.download="".concat(1==t.type?"营收报表"+f()().format("YYYY-MM-DD"):"报装报表"+f()().format("YYYY-MM-DD")),n.click()}))},getData:function(){var t=this;return Object(r["a"])(Object(i["a"])().mark((function e(){return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.spinning=!0,t.spinning1=!0,e.next=4,Object(m["HomeDayBz"])({source:1==t.type?"营收":"报装",statementTime:"",company:t.companyName}).then(function(){var e=Object(r["a"])(Object(i["a"])().mark((function e(a){return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(200!==a.code){e.next=6;break}return t.dataInfo=a.data,e.next=4,t.xsnjCountHandle();case 4:return e.next=6,t.xsnjCountHandle1();case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 4:case"end":return e.stop()}}),e)})))()},getColor:function(t){var e;return e="红色"==t?"#FF6060":"黄色"==t?"#FFBC51":"#30B2FF",e},xsnjCountHandle:function(t){var e=this;return Object(r["a"])(Object(i["a"])().mark((function t(){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:setTimeout((function(){e.spinning=!1,e.dataInfo.gradeList&&e.dataInfo.gradeList.length>0?e.jyjlxbbOption.series[0].data=e.dataInfo.gradeList.map((function(t){return{name:t.name,value:t.value?t.value:0,itemStyle:{color:e.getColor(t.name)}}})):e.jyjlxbbOption.series[0].data=[{value:0,name:"红色",itemStyle:{color:"#FF6060"}},{value:0,name:"黄色",itemStyle:{color:"#FFBC51"}},{value:0,name:"蓝色",itemStyle:{color:"#30B2FF"}}];var t=e.echarts.init(document.getElementById("Home_YJLXBB"));t.setOption(e.jyjlxbbOption)}),300);case 1:case"end":return t.stop()}}),t)})))()},xsnjCountHandle1:function(t){var e=this;return Object(r["a"])(Object(i["a"])().mark((function t(){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:setTimeout((function(){e.spinning1=!1,e.dataInfo.countyList?(e.qyblbbOption.xAxis[0].data=e.dataInfo.countyList.map((function(t){return t.name})),e.qyblbbOption.series[0].data=e.dataInfo.countyList.map((function(t){return t.value}))):(e.qyblbbOption.xAxis[0].data=[],e.qyblbbOption.series[0].data=[]);var t=e.echarts.init(document.getElementById("Home_QYBL"));t.setOption(e.qyblbbOption)}),200);case 1:case"end":return t.stop()}}),t)})))()},close:function(){this.$emit("close")}}},g=b,y=(a("0778"),a("2877")),v=Object(y["a"])(g,n,s,!1,null,"4b71b28c",null);e["default"]=v.exports},fda4:function(t,e,a){"use strict";a.r(e);a("99af");var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"div-table-box"},[e("h2",[t._v("系统数据校验表("+t._s(1==t.type?"营收":"报装")+")")]),e("a-table",{staticClass:"table-h-auto",attrs:{columns:t.columns,"row-key":"id","data-source":t.tableData,pagination:!1,loading:t.tableLoading,scroll:{x:"max-content"}},scopedSlots:t._u([{key:"id",fn:function(a,n,s){return[e("span",[t._v(t._s(parseInt(s)+1))])]}},{key:"acquireDate",fn:function(a,n){return[e("span",[t._v(t._s(a||"--"))])]}},{key:"acquireNumber",fn:function(a,n){return[e("span",[t._v(t._s(a||"--"))])]}},{key:"columnName",fn:function(a,n){return[e("span",[t._v(t._s(a||"--"))])]}},{key:"beEmpty",fn:function(a,n){return[e("span",[t._v(t._s(a?a+"%":"--"))])]}},{key:"isWramColumn",fn:function(a,n){return[e("span",1==a?[t._v("是")]:[t._v("否")])]}},{key:"source",fn:function(a,n){return[e("span",[t._v(t._s(a||"--"))])]}}])}),e("div",{staticStyle:{"text-align":"right","margin-top":"24px"}},[e("a-pagination",{attrs:{total:t.total,"show-total":function(e){return"共".concat(e,"条记录  第 ").concat(t.pageNum,"页")}},on:{change:t.handleCurrentChange,showSizeChange:t.onPageShowSizeChange},model:{value:t.pageNum,callback:function(e){t.pageNum=e},expression:"pageNum"}})],1)],1)},s=[],i=a("c7eb"),r=a("1da1"),o=a("b018"),c=[{title:"序号",dataIndex:"id",align:"center",width:70,ellipsis:!0,scopedSlots:{customRender:"id"}},{title:"获取时间",dataIndex:"acquire_date",align:"center",scopedSlots:{customRender:"acquireDate"}},{title:"获取数量",dataIndex:"acquire_number",align:"center",scopedSlots:{customRender:"acquireNumber"}},{title:"字段名",dataIndex:"column_name",align:"center",scopedSlots:{customRender:"columnName"}},{title:"字段为空百分比",dataIndex:"be_empty",align:"center",scopedSlots:{customRender:"beEmpty"}},{title:"是否预警条件相关字段",dataIndex:"is_wram_column",align:"center",scopedSlots:{customRender:"isWramColumn"}},{title:"数据来源",dataIndex:"source",align:"center",scopedSlots:{customRender:"source"}}],u={name:"dataCheck",mixins:[o["a"]],components:{},props:["type","itemName"],data:function(){return{columns:c,tableLoading:!0,queryParams:{source:""},otherParams:{method:"get"}}},computed:{},mounted:function(){this.queryUrl="/api/data/quality/source",1==this.type?this.queryParams.source="营收":this.queryParams.source="报装",this.loadData()},watch:{type:function(t,e){t&&(this.queryUrl="/api/data/quality/source",1==this.type?this.queryParams.source="营收":this.queryParams.source="报装",this.loadData())}},created:function(){return Object(r["a"])(Object(i["a"])().mark((function t(){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()},methods:{}},d=u,l=(a("bcd1"),a("2877")),m=Object(l["a"])(d,n,s,!1,null,"0581a634",null);e["default"]=m.exports}}]);