{"version":3,"sources":["webpack:///./src/utilities/Date/parse.js","webpack:///./src/pages/Management/vendors/tabs/WorkOrders/List.vue?2375","webpack:///./src/services/Vendors/VendorWorkOrders/store.js","webpack:///./src/pages/Management/vendors/tabs/WorkOrders/keys/methods.js","webpack:///./src/pages/Management/vendors/tabs/WorkOrders/keys/data.js","webpack:///src/pages/Management/vendors/tabs/WorkOrders/List.vue","webpack:///./src/pages/Management/vendors/tabs/WorkOrders/List.vue?3256","webpack:///./src/pages/Management/vendors/tabs/WorkOrders/List.vue"],"names":["parseDate","date","format","console","debug","parsed","moment","isValid","exception","message","error","render","_vm","this","_h","$createElement","_c","_self","attrs","$t","region","filters","rows","columns","perPage","loading","scopedSlots","_u","key","fn","style","width","height","class","show","float","background","border","on","$event","staticStyle","_v","proxy","staticRenderFns","isDebug","actions","getVendorWorkOrderList","vendorID","hoaID","log","kms","get","params","result","JSON","stringify","list","results","notifyProblem","Vue","use","Vuex","vendorWorkOrder","Store","state","mutations","getters","methods","determineRows","Array","isArray","map","entry","dateFormat","type","_get","description","locationDescription","createdDate","completedDate","loadVendorWorkOrders","dispatch","hoaId","then","reload","$route","id","data","formatDateFn","value","field","label","aria","sortable","searchable","styles","filterButton","marginTop","name","components","PageContentLayoutOnly","ModernTable","computed","watch","mounted","i18n","messages","en","component"],"mappings":"4HAAA,2DAQaA,EAAY,SAACC,GAAwB,IAAlBC,EAAkB,uDAAT,KACvC,GAAoB,kBAATD,EAET,OADAE,QAAQC,MAAR,+CAA8D,CAAEH,SACzDA,EAGT,IACE,IAAMI,EAASC,IAAOL,GAClBI,EAAOE,YACTN,EAAOK,IAAOL,GAAMC,OAAOA,IAE7B,MAAOM,GACHA,GAAaA,EAAUC,QACzBN,QAAQO,MAAMF,EAAUC,SAExBN,QAAQO,MAAMF,GAIlB,OAAOP,I,yCC3BT,IAAIU,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,O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ACP8D,UAAU,EACVC,YAAY,GAEd,CACEJ,MAAO,cACPC,MAAO,cACPC,KAAM,cACN7D,MAAO,MACP8D,UAAU,EACVC,YAAY,GAEd,CACEJ,MAAO,sBACPC,MAAO,WACPC,KAAM,WACN7D,MAAO,MACP8D,UAAU,EACVC,YAAY,GAEd,CACEJ,MAAO,cACPC,MAAO,eACPC,KAAM,eACN7D,MAAO,MACP8D,UAAU,EACVC,YAAY,GAEd,CACEJ,MAAO,gBACPC,MAAO,iBACPC,KAAM,iBACN7D,MAAO,MACP8D,UAAU,EACVC,YAAY,IAIhBC,OAAQ,CACNC,aAAc,CACZ7D,MAAO,QACP8D,UAAW,UCzBjB,GACEC,KAAM,mBACNC,WAAY,CACVC,sBAAJ,OACIC,YAAJ,QAGEd,KAAF,EACEpB,QAAF,EAEEmC,SAAU,OAAZ,OAAY,CAAZ,GACA,gBACI,MAAJ,YAAM,OAAN,yBAIEC,MAAO,GAEPC,QAlBF,WAmBI3F,KAAKuE,UAGPqB,KAAM,CACJC,SAAU,CACRC,GAAI,CAAV,oCC/D0Y,I,YCOtYC,EAAY,eACd,EACAjG,EACAgC,GACA,EACA,KACA,KACA,MAIa,aAAAiE,E","file":"js/vendors.vendorWorkOrders.668e9eb9.js","sourcesContent":["/*\r\n Example:\r\n import { parseDate } from '@/utilities/Date/parse'\r\n\r\n const parsedDate = parseDate (date, 'LL');\r\n*/\r\nimport moment from 'moment'\r\n\r\nexport const parseDate = (date, format = 'LL') => {\r\n if (typeof date !== 'string') {\r\n console.debug(`parseDate can only parse a date string. got:`, { date })\r\n return date\r\n }\r\n\r\n try {\r\n const parsed = moment(date)\r\n if (parsed.isValid()) {\r\n date = moment(date).format(format)\r\n }\r\n } catch (exception) {\r\n if (exception && exception.message) {\r\n console.error(exception.message)\r\n } else {\r\n console.error(exception)\r\n }\r\n }\r\n\r\n return date\r\n}\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('PageContentLayoutOnly',{attrs:{\"aria-label\":_vm.$t('workOrder.title'),\"role\":\"region\"}},[_c('ModernTable',{attrs:{\"region\":_vm.region,\"filters\":_vm.filters,\"rows\":_vm.rows,\"columns\":_vm.columns,\"pagination\":{\n perPage: 12\n },\"loading\":_vm.loading,\"headerColor\":\"#FFF\",\"condensed\":\"\"},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_c('div',{style:({ width: '100%', height: '60px' })},[_c('b-button',{class:'filter-button ' + (_vm.filters.show ? 'active' : ''),style:({ float: 'right', background: 'none', border: 0 }),attrs:{\"type\":\"is-ghost\"},on:{\"click\":function($event){_vm.filters.show = !_vm.filters.show}}},[_c('b-icon',{staticStyle:{\"display\":\"inline-block\"},attrs:{\"pack\":\"mdi\",\"icon\":\"filter-outline\",\"size\":\"is-small\"}}),_c('div',{staticStyle:{\"display\":\"inline-block\"}},[_vm._v(\"Filter\")])],1)],1)]},proxy:true}])})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*\r\n import { vendorWorkOrder } from '@/services/Vendors/VendorWorkOrders/store'\r\n*/\r\n\r\nimport Vue from 'vue'\r\nimport Vuex from 'vuex'\r\n\r\nimport { notifyProblem } from '@/services/notify'\r\nimport kms from '@/services/kms'\r\n\r\nconst isDebug = true\r\n\r\n/* eslint-disable no-empty-pattern */\r\nconst actions = {\r\n /*\r\n const { list } = await vendorWorkOrder.dispatch ('getVendorWorkOrderList', {\r\n vendorID\r\n });\r\n */\r\n async getVendorWorkOrderList({}, { vendorID, hoaID }) {\r\n console.log('in getVendorWorkOrderList...')\r\n try {\r\n const result = await kms.get('/WorkOrders/WorkOrder/ListBasic', {\r\n params: {\r\n hoaID,\r\n vendorID\r\n }\r\n })\r\n\r\n if (isDebug == true) console.debug('getVendorWorkOrderList log=' + JSON.stringify(result))\r\n\r\n return {\r\n list: result.results\r\n }\r\n } catch (exception) {\r\n notifyProblem(`The vendor work order list could not be retrieved.`)\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n list: []\r\n }\r\n }\r\n}\r\n/* eslint-enable no-empty-pattern */\r\n\r\nVue.use(Vuex)\r\nexport const vendorWorkOrder = new Vuex.Store({\r\n state: {},\r\n mutations: {},\r\n getters: {},\r\n actions\r\n})\r\n","import _get from 'lodash/get'\r\nimport { vendorWorkOrder } from '@/services/Vendors/VendorWorkOrders/store'\r\nimport { parseDate } from '@/utilities/Date/parse'\r\n\r\nexport const methods = {\r\n determineRows: function(list) {\r\n if (!Array.isArray(list)) {\r\n return\r\n }\r\n\r\n var rows = list.map(entry => {\r\n var dateFormat = 'LL'\r\n\r\n const type = _get(entry, 'workOrderTypeName', '')\r\n const description = _get(entry, 'description', '')\r\n const locationDescription = _get(entry, 'locationDescription', '')\r\n const createdDate = parseDate(_get(entry, 'createdDate', null), dateFormat)\r\n const completedDate = parseDate(_get(entry, 'completionDate', null), dateFormat)\r\n\r\n return {\r\n type: type,\r\n description: description,\r\n locationDescription,\r\n createdDate: createdDate,\r\n completedDate: completedDate\r\n }\r\n })\r\n\r\n this.rows = rows\r\n },\r\n\r\n async loadVendorWorkOrders() {\r\n if (this.isDebug == true) console.debug('in loadVendorWorkOrders()...')\r\n\r\n await vendorWorkOrder\r\n .dispatch('getVendorWorkOrderList', {\r\n hoaID: this.hoaId,\r\n vendorID: this.vendorID\r\n })\r\n .then(({ list }) => {\r\n this.determineRows(list)\r\n })\r\n },\r\n\r\n reload() {\r\n this.loading = true\r\n\r\n this.vendorID = this.$route.params.id || 0\r\n\r\n this.rows = []\r\n this.loadVendorWorkOrders()\r\n\r\n this.loading = false\r\n }\r\n}\r\n","import moment from 'moment'\r\n\r\nexport const data = () => ({\r\n isDebug: true,\r\n loading: false,\r\n vendorID: 0,\r\n formatDateFn: function(value) {\r\n return value != null ? moment(value, 'YYYY/MM/DD HH:mm:ss').format('MM-DD-YYYY') : ''\r\n },\r\n\r\n filters: {\r\n show: false\r\n },\r\n\r\n region: {},\r\n\r\n rows: [],\r\n\r\n columns: [\r\n {\r\n field: 'type',\r\n label: 'Type',\r\n aria: 'Type',\r\n width: '10%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'description',\r\n label: 'Description',\r\n aria: 'Description',\r\n width: '15%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'locationDescription',\r\n label: 'Location',\r\n aria: 'Location',\r\n width: '15%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'createdDate',\r\n label: 'Date Created',\r\n aria: 'Date Created',\r\n width: '10%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'completedDate',\r\n label: 'Date Completed',\r\n aria: 'Date Completed',\r\n width: '10%',\r\n sortable: true,\r\n searchable: true\r\n }\r\n ],\r\n\r\n styles: {\r\n filterButton: {\r\n float: 'right',\r\n marginTop: '4px'\r\n }\r\n }\r\n})\r\n","\r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n Filter
\r\n \r\n
\r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./List.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./List.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./List.vue?vue&type=template&id=7e42ad53&\"\nimport script from \"./List.vue?vue&type=script&lang=js&\"\nexport * from \"./List.vue?vue&type=script&lang=js&\"\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":""}