{"version":3,"sources":["webpack:///./src/router/views/report/AssetCurrentReport.vue?ccf3","webpack:///./src/router/views/report/AssetCurrentReport.vue","webpack:///./src/router/views/report/AssetCurrentReport.vue?38ca","webpack:///./src/router/views/report/AssetCurrentReport.vue?2ade"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","title","items","pageIsLoading","staticClass","on","GenerateAssetCurrentReportAsExcel","_v","isPageLoading","_l","currentReport","key","id","_s","teamName","assetCode","configurationString","employeeName","class","primary","assetStatus","success","warning","pink","danger","assetCurrentReport","length","_e","staticRenderFns","Component","registerHooks","AssetCurrentReport","Mixins","BaseMixer","constructor","super","arguments","showText","summaryDate","grantTotal","text","to","active","AssetMasterModule","_","ExportDataAssetCurrent","GetAssetCurrentReportAsExcel","then","response","blob","Blob","type","link","document","createElement","href","window","URL","createObjectURL","body","appendChild","download","click","created","GetAssetCurrentReport","res","__decorate","name","components","Loader","Layout","PageHeader","SectionLoader","simplebar","component"],"mappings":"iHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACA,EAAG,aAAa,CAACE,MAAM,CAAC,MAAQN,EAAIO,MAAM,MAAQP,EAAIQ,SAASJ,EAAG,SAAS,CAACE,MAAM,CAAC,QAAUN,EAAIS,gBAAgB,CAACL,EAAG,OAAO,CAACM,YAAY,WAAW,CAACN,EAAG,MAAM,CAACM,YAAY,uBAAuB,CAACN,EAAG,MAAM,CAACM,YAAY,cAAc,CAACN,EAAG,MAAM,CAACM,YAAY,kBAAkB,CAACN,EAAG,MAAM,CAACM,YAAY,WAAW,CAACN,EAAG,SAAS,CAACM,YAAY,4DAA4DJ,MAAM,CAAC,KAAO,UAAUK,GAAG,CAAC,MAAQX,EAAIY,oCAAoC,CAACR,EAAG,IAAI,CAACM,YAAY,kDAAkDV,EAAIa,GAAG,iBAAiBT,EAAG,gBAAgB,CAACM,YAAY,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,SAASM,KAAKC,YAAYR,GAC1BA,EAAKS,SAAY,yBACjBT,EAAKU,QACLnE,KAAKa,eAAgB,KAIjCuD,UACIpE,KAAKQ,eAAgB,EACrBwC,OAAkBqB,wBAAwBjB,KAAMkB,IACxCA,IACAtE,KAAKQ,eAAgB,OAiBrC,OAZA4B,EAAqBmC,eAAW,CAC5BrC,eAAU,CACNsC,KAAM,oBACNC,WAAY,CACRC,cACAC,cACAC,kBACAC,qBACAC,qBAGT1C,GACIA,GAtE4B,GAwExBA,QCrFka,I,YCO7a2C,EAAY,eACd,EACAjF,EACAmC,GACA,EACA,KACA,KACA,MAIa,aAAA8C,E","file":"js/Status.7a935f95.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Layout',[_c('PageHeader',{attrs:{\"title\":_vm.title,\"items\":_vm.items}}),_c('loader',{attrs:{\"loading\":_vm.pageIsLoading}},[_c('main',{staticClass:\"s1-list\"},[_c('div',{staticClass:\"s1-list-actions-top\"},[_c('div',{staticClass:\"h-viewport\"},[_c('div',{staticClass:\"s1-d-flex mb-3\"},[_c('div',{staticClass:\"ms-auto\"},[_c('button',{staticClass:\"btn btn-success btn-sm waves-effect btn-label waves-light\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.GenerateAssetCurrentReportAsExcel}},[_c('i',{staticClass:\"mdi mdi-microsoft-excel text-white label-icon\"}),_vm._v(\"Export \")])])]),_c('SectionLoader',{staticClass:\"loader-download\",attrs:{\"loading\":_vm.isPageLoading}}),_c('div',[_c('simplebar',{staticClass:\"reports-scroll-listing\"},[_c('div',{staticClass:\"table-responsive-sm\"},[_c('table',{staticClass:\"table table-centered align-middle\"},[_c('thead',{staticClass:\"table-light\"},[_c('tr',[_c('th',{staticClass:\"align-middle w-25\",attrs:{\"scope\":\"col\"}},[_vm._v(\"Team\")]),_c('th',{staticClass:\"align-middle w-25\",attrs:{\"scope\":\"col\"}},[_vm._v(\" Asset Code \")]),_c('th',{staticClass:\"align-middle\",attrs:{\"scope\":\"col\"}},[_vm._v(\"Configuration\")]),_c('th',{staticClass:\"align-middle\",attrs:{\"scope\":\"col\"}},[_vm._v(\"Assigned To\")]),_c('th',{staticClass:\"align-middle\",attrs:{\"scope\":\"col\"}},[_vm._v(\"Status\")])])]),_c('tbody',_vm._l((_vm.assetCurrentReport),function(currentReport){return _c('tr',{key:currentReport.id},[_c('td',[_c('span',{},[_vm._v(_vm._s(currentReport.teamName ? currentReport.teamName : \"-\"))])]),_c('td',[_c('div',[_vm._v(\" \"+_vm._s(currentReport.assetCode ? currentReport.assetCode : \"-\")+\" \")])]),_c('td',[_c('div',[_vm._v(\" \"+_vm._s(currentReport.configurationString ? currentReport.configurationString : \"-\")+\" \")])]),_c('td',[_c('div',[_vm._v(\" \"+_vm._s(currentReport.employeeName ? currentReport.employeeName : \"-\")+\" \")])]),_c('td',[_c('label',{staticClass:\"badge\",class:[\n {\n primary: currentReport.assetStatus == 'Assigned',\n },\n {\n success: currentReport.assetStatus == 'InStore',\n },\n {\n warning: currentReport.assetStatus == 'Repair',\n },\n { pink: currentReport.assetStatus == 'Scrap' },\n {\n danger: currentReport.assetStatus == 'Disposed',\n } ]},[_vm._v(\" \"+_vm._s(currentReport.assetStatus ? currentReport.assetStatus : \"-\")+\" \")]),_c('div')])])}),0)]),(_vm.assetCurrentReport.length < 1)?_c('div',{staticClass:\"d-h-center asset-report-tbody p-5\"},[_c('i',{staticClass:\"bx bx-info-circle text-info me-2 align-middle\"}),_c('label',{staticClass:\"align-middle mb-0\"},[_vm._v(\"No Assets Found.\")])]):_vm._e()])])],1)],1)])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { __decorate } from \"tslib\";\r\n// NPM\r\nimport { Component, Mixins } from \"vue-property-decorator\";\r\n// SYSTEM1\r\nimport Loader from \"@/components/widgets/loader.vue\";\r\nimport Layout from \"@/router/layouts/main.vue\";\r\nimport PageHeader from \"@/components/page-header.vue\";\r\nimport BaseMixer from \"@/router/views/BaseMixer\";\r\nimport { AssetMasterModule } from \"@/store/modules/asset.module\";\r\nimport * as _ from \"lodash\";\r\nimport SectionLoader from \"@/components/widgets/SectionLoader.vue\";\r\nimport simplebar from \"simplebar-vue\";\r\nComponent.registerHooks([\"metaInfo\"]);\r\nlet AssetCurrentReport = /** @class */ (() => {\r\n let AssetCurrentReport = class AssetCurrentReport extends Mixins(BaseMixer) {\r\n constructor() {\r\n super(...arguments);\r\n this.title = \"Asset Status Report\";\r\n this.pageIsLoading = false;\r\n this.isPageLoading = false;\r\n this.showText = true;\r\n this.summaryDate = null;\r\n this.grantTotal = 0;\r\n this.items = [\r\n {\r\n text: \"Home\",\r\n to: \"/dashBoard\",\r\n },\r\n {\r\n text: \"Reports\",\r\n },\r\n {\r\n text: \"Asset Status Report\",\r\n active: true,\r\n },\r\n ];\r\n }\r\n get assetCurrentReport() {\r\n return AssetMasterModule.assetCurrentReport;\r\n }\r\n get sortedAssetCurrentReport() {\r\n return _.sortBy(AssetMasterModule.assetCurrentReport);\r\n }\r\n get excel() {\r\n return AssetMasterModule.ExportDataAssetCurrent;\r\n }\r\n GenerateAssetCurrentReportAsExcel() {\r\n this.isPageLoading = true;\r\n AssetMasterModule.GetAssetCurrentReportAsExcel().then((response) => {\r\n if (response) {\r\n const blob = new Blob([response], {\r\n type: \"application/vnd.ms-excel\",\r\n });\r\n const link = document.createElement(\"a\");\r\n link.href = window.URL.createObjectURL(blob);\r\n document.body.appendChild(link);\r\n link.download = `AssetStatusReport.xlsx`;\r\n link.click();\r\n this.isPageLoading = false;\r\n }\r\n });\r\n }\r\n created() {\r\n this.pageIsLoading = true;\r\n AssetMasterModule.GetAssetCurrentReport().then((res) => {\r\n if (res) {\r\n this.pageIsLoading = false;\r\n }\r\n });\r\n }\r\n };\r\n AssetCurrentReport = __decorate([\r\n Component({\r\n name: \"AssetStatusReport\",\r\n components: {\r\n Loader,\r\n Layout,\r\n PageHeader,\r\n SectionLoader,\r\n simplebar,\r\n },\r\n })\r\n ], AssetCurrentReport);\r\n return AssetCurrentReport;\r\n})();\r\nexport default AssetCurrentReport;\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AssetCurrentReport.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AssetCurrentReport.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AssetCurrentReport.vue?vue&type=template&id=7087dca0&\"\nimport script from \"./AssetCurrentReport.vue?vue&type=script&lang=ts&\"\nexport * from \"./AssetCurrentReport.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}