{"version":3,"sources":["webpack:///./src/views/CZLastMeterRead/CZLastAcutalMeterReadGas.vue?007c","webpack:///./src/views/CZLastMeterRead/CZLastAcutalMeterReadGas.vue?751b","webpack:///./src/views/CZLastMeterRead/CZLastAcutalMeterReadGas.vue","webpack:///./src/views/CZLastMeterRead/CZLastAcutalMeterReadGas.vue?5f81"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","style","_hoisted_6","id","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","key","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","render","_ctx","_cache","$props","$setup","$data","$options","_component_apexchart","_component_TableTab","type","onClick","openAssetGraph","args","name","openAssetRemoval","ref","height","options","eboptions","chartOptions","series","tableDatanew","OriginalTableHeaders","selectedType","colnames","pagetitle","pageheader","_","slot","fn","customer","components","TableTab","setup","AccountId","store","getters","graphHeader","graph","tablesumm","fromDate","Date","toDate","loading","value","tabheader","PaginationUtill","LastActualMeterReadGas","getContent","fdate","setDate","getDate","tdate","accountInfo","accountid","format","ApiService","post","then","resp","data","lastActualmreadGas","map","a","lastActualmreadGasGraphdata","values","dataval","x","y","plotvalues","splice","datas","push","catch","console","log","sortable","ebchartType","gaschartType","chart","stacked","plotOptions","bar","distributed","borderRadius","columnWidth","colors","dataLabels","enabled","yaxis","title","text","fontSize","legend","show","floating","changeChartType","changeGasChartType","__exports__"],"mappings":"kHAAA,W,kFCEA,yBAAa,mBACb,IAAMA,EAA0B,gCAAoB,MAAO,CAAEC,MAAO,gBAAkB,CACvE,gCAAoB,MAAO,CAAEA,MAAO,uBAAyB,+GACxE,GACEC,EAA0B,gCAAoB,KAAM,KAAM,MAAO,GACjEC,EAAa,CAAEF,MAAO,qBACtBG,EAAa,CAAEH,MAAO,uBACtBI,EAAa,CACjBJ,MAAO,8BACPK,MAAO,CAAC,MAAQ,UAEZC,EAAa,CAAEC,GAAI,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BAAI,OAClBC,EAAe,iBAAI,OACnB5D,EAAY,CAChBC,aAAc,CACZ4D,MAAO,CACLtE,KAAM,MAENO,OAAQ,IACRgE,SAAS,GAEXC,YAAa,CACXC,IAAK,CACHC,aAAa,EACbC,aAAc,EACdC,YAAa,QAGjBC,OAAQ,CACN,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,WAEFC,WAAY,CACVC,SAAS,GAEXC,MAAO,CACLC,MAAO,CACLC,KAAM,sBACN5G,MAAO,CACL6G,SAAU,UAIhBC,OAAQ,CACNC,MAAM,EACNC,UAAU,EACVH,SAAU,UAKhB,SAASI,EAAgBvF,GACvBoE,EAAYjC,MAAQnC,EAGtB,SAASwF,EAAmBxF,GAC1BqE,EAAalC,MAAQnC,EAKvB,OAFAuC,IAEO,CACL1B,qBAAoB,EACpBI,WAAU,EACVsB,WAAU,EACVR,SAAQ,EACRE,OAAM,EACN/B,eAAc,EACdG,iBAAgB,EAChBwB,MAAK,EACLC,UAAS,EACTrB,UAAS,EACT4D,aAAY,EACZD,YAAW,EACXmB,gBAAe,EACfC,mBAAkB,EAClBtD,QAAO,EACPE,UAAS,EACTxB,aAAY,EACZG,SAAQ,EACRJ,OAAM,EACNiB,YAAW,M,iCChLjB,MAAM6D,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASlG,GAAQ,CAAC,YAAY,qBAE1E","file":"js/chunk-ca361740.780a0108.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./CZLastAcutalMeterReadGas.vue?vue&type=style&index=0&id=2b1082fa&scoped=true&lang=css\"","import { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, renderList as _renderList, createSlots as _createSlots, Fragment as _Fragment, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\n_pushScopeId(\"data-v-2b1082fa\")\nconst _hoisted_1 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"mb-2 mb-xl-1\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"card-body pt-1 pb-0\" }, \" Use this report to identify when your Gas meters were last billed using a customer or supplier reading. \")\n], -1)\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"br\", null, null, -1)\nconst _hoisted_3 = { class: \"card mb-2 mb-xl-3\" }\nconst _hoisted_4 = { class: \"card-body pt-2 pb-0\" }\nconst _hoisted_5 = {\n class: \"d-flex overflow-auto h-55px\",\n style: {\"float\":\"right\"}\n}\nconst _hoisted_6 = { id: \"container\" }\nconst _hoisted_7 = { class: \"tabs\" }\nconst _hoisted_8 = { class: \"tab\" }\nconst _hoisted_9 = /*#__PURE__*/_createElementVNode(\"div\", {\n class: \"tab-box card-label\",\n style: {\"cursor\":\"pointer\"}\n}, \" Graph(s) \", -1)\nconst _hoisted_10 = { class: \"tab\" }\nconst _hoisted_11 = /*#__PURE__*/_createElementVNode(\"div\", {\n class: \"tab-box card-label\",\n style: {\"cursor\":\"pointer\"}\n}, \" Table \", -1)\nconst _hoisted_12 = { key: 0 }\nconst _hoisted_13 = {\n class: \"card mb-5 mb-xl-5\",\n id: \"kt_profile_details_view\"\n}\nconst _hoisted_14 = /*#__PURE__*/_createElementVNode(\"div\", {\n class: \"card-header cursor-pointer\",\n style: {\"float\":\"right !important\"}\n}, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"card-title m-0 row col-md-5\" }, [\n /*#__PURE__*/_createElementVNode(\"h6\", { class: \"fw-bolder m-0\" }, \"Last 'Actual' Meter Read Report - Gas\")\n ])\n], -1)\nconst _hoisted_15 = { id: \"chart\" }\nconst _hoisted_16 = { key: 1 }\nconst _hoisted_17 = {\n key: 2,\n style: {},\n id: \"loadingDiv\"\n}\nconst _hoisted_18 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"loader\" }, \"Loading...\", -1)\nconst _hoisted_19 = [\n _hoisted_18\n]\n_popScopeId()\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_apexchart = _resolveComponent(\"apexchart\")!\n const _component_TableTab = _resolveComponent(\"TableTab\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _hoisted_1,\n _hoisted_2,\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"label\", _hoisted_8, [\n _createElementVNode(\"input\", {\n type: \"radio\",\n onClick: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.openAssetGraph && _ctx.openAssetGraph(...args))),\n name: \"tab-input\",\n class: \"tab-input\"\n }),\n _hoisted_9\n ]),\n _createElementVNode(\"label\", _hoisted_10, [\n _createElementVNode(\"input\", {\n type: \"radio\",\n onClick: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => (_ctx.openAssetRemoval && _ctx.openAssetRemoval(...args))),\n name: \"tab-input\",\n class: \"tab-input\"\n }),\n _hoisted_11\n ])\n ])\n ])\n ])\n ])\n ]),\n (_ctx.graph)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_12, [\n _createElementVNode(\"div\", _hoisted_13, [\n _hoisted_14,\n _createElementVNode(\"div\", _hoisted_15, [\n _createVNode(_component_apexchart, {\n ref: \"chart\",\n type: \"bar\",\n height: \"350\",\n options: _ctx.eboptions.chartOptions,\n series: _ctx.series\n }, null, 8, [\"options\", \"series\"])\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.tablesumm)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_16, [\n _createVNode(_component_TableTab, {\n \"table-data\": _ctx.tableDatanew,\n \"table-header\": _ctx.OriginalTableHeaders,\n \"enable-items-per-page-dropdown\": true,\n selectedType: _ctx.colnames,\n pagetitle: _ctx.pageheader\n }, _createSlots({ _: 2 }, [\n _renderList(_ctx.colnames, (slot) => {\n return {\n name: `cell-${slot}`,\n fn: _withCtx(({ row: customer }) => [\n _createTextVNode(_toDisplayString(customer[slot]), 1)\n ])\n }\n })\n ]), 1032, [\"table-data\", \"table-header\", \"selectedType\", \"pagetitle\"])\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.loading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_17, _hoisted_19))\n : _createCommentVNode(\"\", true)\n ], 64))\n}","\nimport \"@/assets/sass/template.scss\";\nimport { defineComponent, onMounted, ref, reactive } from \"vue\";\nimport { setCurrentPageBreadcrumbs } from \"@/core/helpers/breadcrumb\";\nimport ApiService from \"@/core/services/ApiService\";\nimport TableTab from \"@/components/kt-datatable/TableTab.vue\";\nimport moment from \"moment\";\nimport PaginationUtill from \"../util/PaginationUtill\";\nimport store from \"@/store\";\nexport default defineComponent({\n name: \"DataTable\",\n\n components: {\n TableTab,\n },\n\n setup() {\n let AccountId = store.getters.AccountId;\n const tableDatanew = ref([]);\n const graphHeader = ref([]);\n const colnames = ref();\n const graph = ref(false);\n const tablesumm = ref(false);\n const fromDate = ref(new Date());\n const toDate = ref(new Date());\n const loading = ref(false);\n const series = reactive([{}]);\n const pageheader = \"Last 'Actual' Meter Read Report - Gas\";\n interface TableHeader {\n name: string;\n key: string;\n sortable: boolean;\n }\n\n onMounted(() => {\n setCurrentPageBreadcrumbs(\"Last 'Actual' Meter Read Report - Gas\", [\n \"NA\",\n ]);\n graph.value = true;\n tablesumm.value = false;\n });\n const OriginalTableHeaders = ref>();\n let tabheader: Array = PaginationUtill.LastActualMeterReadGas;\n OriginalTableHeaders.value = tabheader.map((a) => ({\n name: a.name,\n key: a.key,\n sortable: true,\n }));\n\n async function getContent() {\n graph.value = true;\n loading.value = true;\n let fdate: any = new Date();\n fdate.setDate(fdate.getDate() - 364);\n let tdate: any = new Date();\n tdate.setDate(tdate.getDate());\n //let tdate: any = new Date().toLocaleDateString();\n\n const accountInfo: any = {\n accountid: AccountId,\n fdate: moment(fdate).format(\"YYYY-MM-DD 00:00:00\"),\n tdate: moment(tdate).format(\"YYYY-MM-DD 00:00:00\"),\n };\n\n ApiService.post(\"api/lastactualmeterread/gas_actualmeter\", accountInfo)\n .then((resp) => {\n tableDatanew.value = resp.data.lastActualmreadGas.map((a) => a);\n colnames.value = tabheader.map((a) => a.key);\n graphHeader.value = resp.data.lastActualmreadGasGraphdata.map(\n (a) => a.values\n );\n\n let dataval = resp.data.lastActualmreadGasGraphdata.map((a) => ({\n x: a.values,\n y: a.plotvalues,\n }));\n loading.value = false;\n series.splice(0);\n const datas = {\n // data: dataval[0] === undefined ? [] : dataval,\n data: dataval,\n };\n series.push(datas);\n })\n .catch((a) => {\n loading.value = false;\n console.log(\"Api Log Error\", a);\n });\n }\n\n function openAssetGraph() {\n graph.value = true;\n tablesumm.value = false;\n }\n\n function openAssetRemoval() {\n graph.value = false;\n tablesumm.value = true;\n }\n\n const ebchartType = ref(\"bar\");\n const gaschartType = ref(\"bar\");\n const eboptions = {\n chartOptions: {\n chart: {\n type: \"bar\",\n\n height: 350,\n stacked: true,\n },\n plotOptions: {\n bar: {\n distributed: true,\n borderRadius: 1,\n columnWidth: 25 + \"%\",\n },\n },\n colors: [\n \"#F3B415\",\n \"#F27036\",\n \"#663F59\",\n \"#6A6E94\",\n \"#4E88B4\",\n \"#00A7C6\",\n \"#18D8D8\",\n \"#A9D794\",\n \"#46AF78\",\n \"#A93F55\",\n \"#8C5E58\",\n \"#2176FF\",\n \"#33A1FD\",\n \"#7A918D\",\n \"#BAFF29\",\n ],\n dataLabels: {\n enabled: false,\n },\n yaxis: {\n title: {\n text: \"Number of Locations\",\n style: {\n fontSize: \"12px\",\n },\n },\n },\n legend: {\n show: true,\n floating: false,\n fontSize: \"20px\",\n },\n },\n };\n\n function changeChartType(type) {\n ebchartType.value = type;\n }\n\n function changeGasChartType(type) {\n gaschartType.value = type;\n }\n\n getContent();\n\n return {\n OriginalTableHeaders,\n pageheader,\n getContent,\n fromDate,\n toDate,\n openAssetGraph,\n openAssetRemoval,\n graph,\n tablesumm,\n eboptions,\n gaschartType,\n ebchartType,\n changeChartType,\n changeGasChartType,\n loading,\n tabheader,\n tableDatanew,\n colnames,\n series,\n graphHeader,\n };\n },\n});\n","import { render } from \"./CZLastAcutalMeterReadGas.vue?vue&type=template&id=2b1082fa&scoped=true&ts=true\"\nimport script from \"./CZLastAcutalMeterReadGas.vue?vue&type=script&lang=ts\"\nexport * from \"./CZLastAcutalMeterReadGas.vue?vue&type=script&lang=ts\"\n\nimport \"./CZLastAcutalMeterReadGas.vue?vue&type=style&index=0&id=2b1082fa&scoped=true&lang=css\"\n\nimport exportComponent from \"C:\\\\Develop\\\\WorkSpace\\\\Codebase\\\\EICPartnershipSVN\\\\UI_EICPartnership\\\\node_modules\\\\@vue\\\\cli-service\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2b1082fa\"]])\n\nexport default __exports__"],"sourceRoot":""}