(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5aee9cd8"],{"20d4":function(t,e,a){},ac87:function(t,e,a){"use strict";a("20d4")},ebaf:function(t,e,a){"use strict";a.r(e);a("b0c0");var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pop-page-word-sub"},[e("div",{staticClass:"page"},[e("h1",{staticClass:"title"},[t._v("（"+t._s(1==t.type?"营收":"报装")+"）模型 "),e("span",{staticStyle:{color:"#008BE8"}},[t._v(t._s(t.modelItem))]),t._v(" 日更新数据")]),1==t.type?[e("a-table",{staticClass:"table-h-auto",attrs:{columns:t.columns,"row-key":"id","data-source":t.list,pagination:!1,scroll:{x:"max-content"},bordered:""},scopedSlots:t._u([{key:"id",fn:function(a,n,s){return[e("span",[t._v(t._s(parseInt(s)+1))])]}},{key:"waterMeterSize",fn:function(a,n,s){return[e("span",[t._v(t._s(a||"--"))])]}},{key:"natureNo",fn:function(a,n,s){return[e("span",[t._v(t._s(a||"--"))])]}},{key:"population",fn:function(a,n,s){return[e("span",[t._v(t._s(a||"--"))])]}}],null,!1,901588618)})]:[e("a-table",{staticClass:"table-h-auto",attrs:{columns:t.columns1,"row-key":"id","data-source":t.list,pagination:!1,scroll:{x:"max-content"},bordered:""},scopedSlots:t._u([{key:"id",fn:function(a,n,s){return[e("span",[t._v(t._s(parseInt(s)+1))])]}},{key:"waterMeterSize",fn:function(a,n,s){return[e("span",[t._v(t._s(a||"--"))])]}},{key:"natureNo",fn:function(a,n,s){return[e("span",[t._v(t._s(a||"--"))])]}},{key:"population",fn:function(a,n,s){return[e("span",[t._v(t._s(a||"--"))])]}}])})],e("div",{staticClass:"page-body",staticStyle:{display:"none"}},[e("div",{staticClass:"table"},[e("div",{staticClass:"item"},[e("label",{staticClass:"no-b"},[t._v("单位")]),t._v(" "+t._s(t.dataInfo.company?t.dataInfo.company:"--")+" ")]),e("div",{staticClass:"item"},[e("label",[t._v("系统账号")]),t._v(" "+t._s(t.dataInfo.account?t.dataInfo.account:"--")+" ")]),e("div",{staticClass:"item"},[e("label",{staticClass:"no-b"},[t._v("起始日期")]),t._v(" "+t._s(t.dataInfo.startTime?t.dataInfo.startTime:"--")+" ")]),e("div",{staticClass:"item"},[e("label",[t._v("截止日期")]),t._v(" "+t._s(t.dataInfo.endTime?t.dataInfo.endTime:"--")+" ")]),e("div",{staticClass:"item"},[e("label",{staticClass:"no-b"},[t._v("报表生成时间")]),t._v(" "+t._s(t.dataInfo.generatedTime?t.dataInfo.generatedTime:"--")+" ")]),e("div",{staticClass:"item"},[e("label",[t._v("报表数据日期")]),t._v(" "+t._s(t.dataInfo.dataDate?t.dataInfo.dataDate:"--")+" ")]),e("div",{staticClass:"item"},[e("label",{staticClass:"no-b"},[t._v("日更新数据("+t._s(1==t.type?"营收":"报装")+")")]),e("span",{on:{click:function(e){return t.changePage(1)}}},[t._v(t._s(t.dataInfo.dataNum?t.dataInfo.dataNum:0))])]),e("div",{staticClass:"item"},[e("label",[t._v("已归集数据总量")]),e("span",{on:{click:function(e){return t.changePage(2)}}},[t._v(t._s(t.dataInfo.totalNum?t.dataInfo.totalNum:0))])])]),e("div",{staticClass:"data-tj"},[e("div",{staticClass:"item"},[e("i",{staticClass:"iconfont icon-yujingzongshu"}),e("p",[e("span",[t._v(t._s(t.dataInfo.wramNum?t.dataInfo.wramNum:0))]),t._v("预警总数")])]),e("div",{staticClass:"item"},[e("i",{staticClass:"iconfont icon-jiaobanzongshu"}),e("p",[e("span",[t._v(t._s(t.dataInfo.assignNum?t.dataInfo.assignNum:0))]),t._v("交办数")])]),e("div",{staticClass:"item"},[e("i",{staticClass:"iconfont icon-dubanzongshu"}),e("p",[e("span",[t._v(t._s(t.dataInfo.supervisionNum?t.dataInfo.supervisionNum:0))]),t._v("督办数")])])]),e("div",{staticClass:"model-sub"},[e("h2",{staticClass:"sub-title"},[t._v("参与模型数条件数： "),e("span",[t._v(t._s(t.dataInfo.modelNum?t.dataInfo.modelNum:0))])]),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",[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:"YJLXBB_SUB"}})])],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:"QYBL_SUB"}})])],1)])])],2)])},s=[],i=a("c7eb"),o=a("1da1"),c=(a("d81d"),a("313e")),r=a.n(c),d=a("1ac1"),l=a("12df"),u=a("c1df"),p=a.n(u),m=[{title:"序号",dataIndex:"id",align:"center",width:70,ellipsis:!0,scopedSlots:{customRender:"id"}},{title:"户号",dataIndex:"accNo",align:"center",scopedSlots:{customRender:"accNo"}},{title:"用户名",dataIndex:"name",align:"center",scopedSlots:{customRender:"name"}},{title:"账单月份",dataIndex:"month",align:"center",scopedSlots:{customRender:"month"}},{title:"上期行至",dataIndex:"meterReadLast",align:"center",scopedSlots:{customRender:"meterReadLast"}},{title:"本期行至",dataIndex:"meterReadCurrent",align:"center",scopedSlots:{customRender:"meterReadCurrent"}},{title:"用水性质",dataIndex:"nature",align:"center",scopedSlots:{customRender:"nature"}}],f=[{title:"序号",dataIndex:"id",align:"center",width:70,ellipsis:!0,scopedSlots:{customRender:"id"}},{title:"户号",dataIndex:"accNo",align:"center",scopedSlots:{customRender:"accNo"}},{title:"用户名",dataIndex:"name",align:"center",scopedSlots:{customRender:"name"}},{title:"账单月份",dataIndex:"month",align:"center",scopedSlots:{customRender:"month"}},{title:"水表口径",dataIndex:"waterMeterSize",align:"center",scopedSlots:{customRender:"waterMeterSize"}},{title:"用水性质编码",dataIndex:"natureNo",align:"center",scopedSlots:{customRender:"natureNo"}},{title:"用水人口",dataIndex:"population",align:"center",scopedSlots:{customRender:"population"}}],b={name:"reportForm",components:{},props:["type","itemName"],data:function(){return{columns:m,columns1:f,echarts:r.a,jyjlxbbOptionSub:d["jyjlxbbOptionSub"],qyblbbOptionSub:d["qyblbbOptionSub"],spinning:!0,spinning1:!0,dataInfo:{company:""},modelItem:this.itemName,list:[]}},computed:{},mounted:function(){},watch:{type:function(t,e){var a=this;return Object(o["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)})))()}},created:function(){var t=this;return Object(o["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:{changePage:function(t){1===this.type?1===t?this.$router.push({path:"/sjgj/ssys"}):this.$router.push({path:"/sjgj/ys"}):1===t?this.$router.push({path:"/sjgj/ssbz"}):this.$router.push({path:"/sjgj/bz"})},downLoad:function(){var t=this;this.$nextTick(Object(o["a"])(Object(i["a"])().mark((function e(){var a,n,s,o;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=document.querySelector(".pop-page-word-sub"),e.next=3,html2canvas(a);case 3:n=e.sent,s=n.toDataURL("image/png"),o=document.createElement("a"),o.href=s,o.download="".concat(1==t.type?"营收"+p()().format("YYYY-MM-DD")+"日更新数据":"报装"+p()().format("YYYY-MM-DD")+"日更新数据"),o.click();case 9:case"end":return e.stop()}}),e)}))))},getData:function(){var t=this;return Object(o["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(l["HomeSubModel"])({item:t.modelItem}).then(function(){var e=Object(o["a"])(Object(i["a"])().mark((function e(a){return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:200===a.code&&(t.list=a.rows);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 4:case"end":return e.stop()}}),e)})))()},xsnjCountHandle:function(t){var e=this;return Object(o["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.jyjlxbbOption.series[0].data=e.dataInfo.gradeList.map((function(t){return{name:t.name,value:t.value?t.value:0}})):e.jyjlxbbOption.series[0].data=[{value:0,name:"红色"},{value:0,name:"黄色"},{value:0,name:"蓝色"}];var t=e.echarts.init(document.getElementById("YJLXBB_SUB"));t.setOption(e.jyjlxbbOptionSub)}),300);case 1:case"end":return t.stop()}}),t)})))()},xsnjCountHandle1:function(t){var e=this;return Object(o["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("QYBL_SUB"));t.setOption(e.qyblbbOptionSub)}),200);case 1:case"end":return t.stop()}}),t)})))()},close:function(){this.$emit("close")}}},v=b,_=(a("ac87"),a("2877")),h=Object(_["a"])(v,n,s,!1,null,"7acedd44",null);e["default"]=h.exports}}]);