{"version":3,"sources":["webpack:///./src/pages/master/scheduled-report/form-helper.js","webpack:///./src/pages/master/scheduled-report/Form.vue?295b","webpack:///./src/mixins/ReportFilter.js","webpack:///./src/pages/master/scheduled-report/Form.vue?17e5","webpack:///src/pages/master/scheduled-report/Form.vue","webpack:///./src/pages/master/scheduled-report/Form.vue?1ba5","webpack:///./src/pages/master/scheduled-report/Form.vue","webpack:///./node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js"],"names":["emptyData","SchedulerName","Period","Day","Email","Subject","Message","ParamJsonObject","startDate","endDate","reportType","locationReport","locationReportNode","dataForm","customer","ListFormula","validationRules","required","message","trigger","ListDceId","getEmptyData","getValidationRule","data","loading","filterText","filterCustomSensorText","reports","location","deviceGroups","defaultProps","children","label","deviceGroupProps","cascaderProps","multiple","periodDatePickerType","datePickerOptions","customSensorList","customerList","mounted","methods","allowAlarmReport","this","user","RolesName","includes","onChangePicker","form","validateDate","temp1","Date","temp2","$message","error","filterNode","value","Name","indexOf","filterCustomSensor","VarName","onDeviceGroupChange","checked","length","IsFormula","Dce_id","push","filter","x","findDeviceGroupDataByKey","key","deviceGroup","sensorDataChange","$emit","resetForm","formName","$refs","resetFields","Object","prototype","hasOwnProperty","call","$route","query","$router","assign","setDefaultCustomerId","isCustomer","CustomerName","closePopup","val","popupScheduleOpen","setAllFormulaIds","_this","map","item","onLocationChanged","Array","isArray","getCustomers","submitFilter","fromUrl","validate","valid","warning","getLocations","$axios","get","$appInfo","api","manualConfig","getListServerLocation","res","disabled","console","log","locationIds","post","getListCustomerByMultipleServerCode","ListServerCode","getSensorsByCustomers","CustomerDcoId","treeGroupDevice","getCustTreeGroupDeviceLevelWithFormula","getCustomSensors","formula","getAll","getReportTypes","tag","listStringTagsAuthorizeReport","computed","$store","state","auth","userData","watch","deviceGroupsTree","customerSensorTree","render","_vm","_h","$createElement","_c","_self","directives","name","rawName","expression","attrs","_v","_s","params","id","staticClass","ref","model","callback","$$v","$set","_l","index","_e","days","editorOption","on","DcoId","Company","submit","cancel","staticRenderFns","components","mixins","created","service","apiGetById","mailList","getById","apiPost","apiPut","put","roles","costumers","mode","isSubmit","firstLoad","dateOptions","dayOfWeek","placeholder","theme","modules","toolbar","syntax","highlight","handler","beforeRouteLeave","next","answer","component","_createForOfIteratorHelper","o","allowArrayLike","it","Symbol","iterator","unsupportedIterableToArray","i","F","s","n","done","e","f","TypeError","err","normalCompletion","didErr","step","_e2"],"mappings":"mIAIA,IAAMA,EAAY,CAChBC,cAAe,GACfC,OAAQ,QACRC,IAAK,EACLC,MAAO,GACPC,QAAS,GACTC,QAAS,GACTC,gBAAiB,CACfC,UAAW,GACXC,QAAS,GACTC,WAAY,GACZC,eAAgB,GAChBC,mBAAoB,CAAC,SACrBC,SAAU,QACVC,SAAU,GACVC,YAAa,KAIXC,EAAkB,CACtBf,cAAe,CACb,CACEgB,UAAU,EACVC,QAAS,mBACTC,QAAS,WAGbhB,IAAK,CACH,CACEc,UAAU,EACVC,QAAS,kBACTC,QAAS,WAGbjB,OAAQ,CACN,CACEe,UAAU,EACVC,QAAS,8BACTC,QAAS,WAGbf,MAAO,CACL,CACEa,UAAU,EACVC,QAAS,4BACTC,QAAS,SAGbd,QAAS,CACP,CACEY,UAAU,EACVC,QAAS,sBACTC,QAAS,SAGbZ,gBAAiB,CACfG,WAAY,CACV,CACEO,UAAU,EACVC,QAAS,0BACTC,QAAS,WAGbN,SAAU,CACR,CACEI,UAAU,EACVC,QAAS,4BACTC,QAAS,SAGbX,UAAW,CACT,CACES,UAAU,EACVC,QAAS,2BACTC,QAAS,SAGbV,QAAS,CACP,CACEQ,UAAU,EACVC,QAAS,yBACTC,QAAS,SAGbP,mBAAoB,CAClB,CACEK,UAAU,EACVC,QAAS,uBACTC,QAAS,SAGbL,SAAU,CACR,CACEG,UAAU,EACVC,QAAS,qBACTC,QAAS,SAGbC,UAAW,CACT,CACEH,UAAU,EACVC,QAAS,2BACTC,QAAS,WAMF,QACbE,aADa,WAEX,OAAOrB,GAETs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B/C,KAAK6I,WAAY,KAIvBU,iBA9IF,SA8IA,OACI,GAAKvJ,KAAK4I,SAURY,QAVkB,CAClB,IAAN,iBACA,0DAEUC,EACFD,IAEAA,GAAK,MCra+V,I,wBCQxWE,EAAY,eACd,EACA3D,EACA+B,GACA,EACA,KACA,KACA,MAIa,aAAA4B,E,0JClBA,SAASC,EAA2BC,EAAGC,GACpD,IAAIC,EAEJ,GAAsB,qBAAXC,QAAgD,MAAtBH,EAAEG,OAAOC,UAAmB,CAC/D,GAAI1G,MAAMC,QAAQqG,KAAOE,EAAKG,eAA2BL,KAAOC,GAAkBD,GAAyB,kBAAbA,EAAExI,OAAqB,CAC/G0I,IAAIF,EAAIE,GACZ,IAAII,EAAI,EAEJC,EAAI,aAER,MAAO,CACLC,EAAGD,EACHE,EAAG,WACD,OAAIH,GAAKN,EAAExI,OAAe,CACxBkJ,MAAM,GAED,CACLA,MAAM,EACNzJ,MAAO+I,EAAEM,OAGbK,EAAG,SAAWjD,GACZ,MAAMA,GAERkD,EAAGL,GAIP,MAAM,IAAIM,UAAU,yIAGtB,IAEIC,EAFAC,GAAmB,EACnBC,GAAS,EAEb,MAAO,CACLR,EAAG,WACDN,EAAKF,EAAEG,OAAOC,aAEhBK,EAAG,WACD,IAAIQ,EAAOf,EAAGN,OAEd,OADAmB,EAAmBE,EAAKP,KACjBO,GAETN,EAAG,SAAWO,GACZF,GAAS,EACTF,EAAMI,GAERN,EAAG,WACD,IACOG,GAAoC,MAAhBb,EAAG,WAAmBA,EAAG,YADpD,QAGE,GAAIc,EAAQ,MAAMF","file":"js/chunk-b2b624f8.97f5f38f.js","sourcesContent":["// import appInfo from '@/app-info'\n// import axios from 'axios'\n// import router from '@/router';\n\nconst emptyData = {\n SchedulerName: '',\n Period: 'daily',\n Day: 0,\n Email: '',\n Subject: '',\n Message: '',\n ParamJsonObject: {\n startDate: '',\n endDate: '',\n reportType: '',\n locationReport: [],\n locationReportNode: ['ONEDC'],\n dataForm: 'daily',\n customer: '',\n ListFormula: []\n }\n}\n\nconst validationRules = {\n SchedulerName: [\n {\n required: true,\n message: 'Name is required',\n trigger: 'change'\n }\n ],\n Day: [\n {\n required: true,\n message: 'Day is required',\n trigger: 'change'\n }\n ],\n Period: [\n {\n required: true,\n message: 'Schedule Period is required',\n trigger: 'change'\n }\n ],\n Email: [\n {\n required: true,\n message: 'Send To Email is required',\n trigger: 'blur'\n }\n ],\n Subject: [\n {\n required: true,\n message: 'Subject is required',\n trigger: 'blur'\n }\n ],\n ParamJsonObject: {\n reportType: [\n {\n required: true,\n message: 'Report Type is required',\n trigger: 'change'\n }\n ],\n dataForm: [\n {\n required: true,\n message: 'Report Period is required',\n trigger: 'blur'\n }\n ],\n startDate: [\n {\n required: true,\n message: 'Start Period is required',\n trigger: 'blur'\n }\n ],\n endDate: [\n {\n required: true,\n message: 'End Period is required',\n trigger: 'blur'\n }\n ],\n locationReportNode: [\n {\n required: true,\n message: 'Location is required',\n trigger: 'blur'\n }\n ],\n customer: [\n {\n required: true,\n message: 'Tenant is required',\n trigger: 'blur'\n }\n ],\n ListDceId: [\n {\n required: true,\n message: 'Device Group is required',\n trigger: 'blur'\n }\n ]\n }\n}\n\nexport default {\n getEmptyData() {\n return emptyData\n },\n getValidationRule() {\n return validationRules\n }\n}\n","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/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-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/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-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=style&index=0&lang=css&\"","export default {\n data() {\n return {\n loading: false,\n filterText: '',\n filterCustomSensorText: '',\n reports: [],\n location: [],\n deviceGroups: [],\n defaultProps: {\n children: 'children',\n label: 'Name'\n },\n deviceGroupProps: {\n children: 'children',\n label: 'Name'\n },\n cascaderProps: {\n multiple: true\n },\n periodDatePickerType: 'date',\n datePickerOptions: '',\n customSensorList: [],\n customerList: []\n }\n },\n mounted() {},\n methods: {\n allowAlarmReport() {\n return (\n this.user.RolesName.includes('Customer Admin') ||\n this.user.RolesName.includes('Customer Staff')\n )\n },\n onChangePicker() {\n if (this.form.dataForm == 'monthly') this.periodDatePickerType = 'month'\n else if (this.form.dataForm == 'yearly')\n this.periodDatePickerType = 'year'\n else this.periodDatePickerType = 'date'\n\n this.form.startDate = ''\n this.form.endDate = ''\n },\n validateDate() {\n if (this.form.startDate != '' && this.form.endDate != '') {\n let temp1 = new Date(this.form.startDate)\n let temp2 = new Date(this.form.endDate)\n if (temp1 > temp2) {\n this.form.endDate = ''\n this.$message.error('End Period must be greater than Start Period')\n }\n }\n },\n filterNode(value, data) {\n if (!value) return true\n return data.Name.indexOf(value) !== -1\n },\n filterCustomSensor(value, data) {\n if (!value) return true\n return data.VarName.indexOf(value) !== -1\n },\n onDeviceGroupChange(data, checked) {\n // skip parent data\n if (data.children.length) return\n if (checked) {\n // populate formula\n if (data.IsFormula && !this.form.ListFormula.includes(data.Dce_id)) {\n this.form.ListFormula.push(data.Dce_id)\n }\n } else {\n // populate formula\n if (data.IsFormula) {\n this.form.ListFormula = this.form.ListFormula.filter(\n (x) => x !== data.Dce_id\n )\n }\n }\n },\n findDeviceGroupDataByKey(deviceGroups, key, value) {\n for (var deviceGroup of deviceGroups) {\n if (deviceGroup[key] == value) {\n return deviceGroup\n } else {\n return this.findDeviceGroupDataByKey(deviceGroup.children, key, value)\n }\n }\n },\n sensorDataChange(data, checked) {\n this.$emit('sensorDataSelected', {\n data: data,\n checked: checked\n })\n },\n resetForm(formName) {\n this.$refs[formName].resetFields()\n\n // reset parameter\n if (Object.prototype.hasOwnProperty.call(this.$route.query, 'customer')) {\n this.$router.push({\n query: Object.assign({}, [], [])\n })\n }\n },\n setDefaultCustomerId() {\n if (this.isCustomer) {\n this.form.customer = this.user.CustomerName\n ? this.user.CustomerName[0]\n : ''\n }\n },\n closePopup(val) {\n this.popupScheduleOpen = !val\n },\n setAllFormulaIds(data) {\n var _this = this\n\n // set disability\n return data.map(function (item) {\n // populate formula\n if (item.IsFormula) {\n _this.form.ListFormula.push(item.Dce_id)\n }\n\n // find on children data\n if (item.children.length) {\n _this.setAllFormulaIds(item.children)\n }\n return item\n })\n },\n onLocationChanged(val) {\n // extract nested location array\n this.form.locationReport = Array.isArray(val)\n ? val.map(function (x) {\n return Array.isArray(x) ? x[0] : x\n })\n : val\n\n this.getCustomers(this.form.locationReport)\n },\n\n async submitFilter(fromUrl = false) {\n this.$refs['form'].validate(async (valid) => {\n if (valid) {\n if (!fromUrl) {\n // push parameter\n this.$router.push({\n query: Object.assign({}, this.$route.query, this.form)\n })\n }\n\n this.$emit('formData', this.form)\n } else {\n this.$message.warning('Please fill in the Report filters correctly')\n }\n })\n },\n async getLocations() {\n try {\n this.loading = true\n const res = await this.$axios.get(\n this.$appInfo.api.manualConfig.getListServerLocation\n )\n\n // get location\n this.location = res.data.map(function (x) {\n x.disabled = x.value !== 'ONEDC'\n return x\n })\n\n this.loading = false\n } catch (e) {\n this.loading = false\n console.log(e)\n }\n },\n async getCustomers(locationIds) {\n try {\n this.loading = true\n const res = await this.$axios.post(\n this.$appInfo.api.customer.getListCustomerByMultipleServerCode,\n {\n ListServerCode: locationIds\n }\n )\n this.customerList = res.data\n this.loading = false\n } catch (e) {\n this.loading = false\n console.log(e)\n }\n },\n async getSensorsByCustomers(CustomerDcoId) {\n try {\n this.loading = true\n const res = await this.$axios.get(\n //this.$appInfo.api.reportTree.getCustTreeSensorFiltered + '?CustomerDcoId=' + CustomerDcoId + '&Filter=ENERGY'\n this.$appInfo.api.treeGroupDevice\n .getCustTreeGroupDeviceLevelWithFormula +\n '?CustomerDcoId=' +\n CustomerDcoId +\n '&Tags=' +\n this.form.reportType\n )\n\n // set deviceGroups\n this.deviceGroups = res.data\n\n // reset & set all formula ids\n this.form.ListFormula = []\n this.setAllFormulaIds(this.deviceGroups)\n\n this.loading = false\n } catch (e) {\n this.loading = false\n console.log(e)\n }\n },\n async getCustomSensors() {\n try {\n this.loading = true\n const res = await this.$axios.get(this.$appInfo.api.formula.getAll)\n this.customSensorList = res.data.map(function (item) {\n item.label = item.VarName\n return item\n })\n this.loading = false\n } catch (e) {\n this.loading = false\n console.log(e)\n }\n },\n async getReportTypes() {\n try {\n this.loading = true\n const res = await this.$axios.get(\n this.$appInfo.api.tag.listStringTagsAuthorizeReport\n )\n this.reports = this.allowAlarmReport()\n ? res.data.filter((x) => x != 'Alarm Report')\n : res.data\n this.loading = false\n } catch (e) {\n this.loading = false\n console.log(e)\n }\n }\n },\n computed: {\n isCustomer() {\n return this.$store.state.auth.isCustomer\n },\n user() {\n return this.$store.state.auth.userData\n }\n },\n watch: {\n filterText(val) {\n this.$refs.deviceGroupsTree.filter(val)\n },\n filterCustomSensorText(val) {\n this.$refs.customerSensorTree.filter(val)\n },\n 'form.customer': function (val) {\n if (val) {\n // fetch customer sensors\n this.getSensorsByCustomers(val)\n }\n },\n 'form.reportType': function () {\n if (this.form.customer) {\n // fetch customer sensors\n this.getSensorsByCustomers(this.form.customer)\n }\n },\n 'form.locationReportNode': function (val) {\n // fetch customer data\n if (val) {\n this.onLocationChanged(val)\n } else {\n this.deviceGroups = []\n this.customerList = []\n }\n },\n 'form.ParamJsonObject.customer': function (val) {\n if (val) {\n // fetch customer sensors\n this.getSensorsByCustomers(val)\n }\n },\n 'form.ParamJsonObject.reportType': function () {\n if (this.form.customer) {\n // fetch customer sensors\n this.getSensorsByCustomers(this.form.customer)\n }\n },\n 'form.ParamJsonObject.locationReportNode': function (val) {\n // fetch customer data\n if (val) {\n this.onLocationChanged(val)\n } else {\n this.deviceGroups = []\n this.customerList = []\n }\n }\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],attrs:{\"id\":\"report-view\"}},[_c('h3',[_vm._v(\"Scheduled Report Form - \"+_vm._s(_vm.$route.params.id ? 'Edit' : 'Create'))]),_c('hr',{staticClass:\"my-4\"}),_c('div',{staticClass:\"pt-2\",attrs:{\"id\":\"form-container\"}},[_c('el-form',{ref:\"elForm\",staticClass:\"flex space-x-0 space-y-2 lg:space-x-2 lg:space-y-0\",attrs:{\"size\":\"medium\",\"label-width\":\"auto\",\"label-position\":\"top\",\"model\":_vm.form,\"rules\":_vm.validationRules}},[_c('div',{staticClass:\"w-1/2 flex flex-col space-y-2\"},[_c('div',{staticClass:\"w-full border border-lg rounded-lg\",attrs:{\"id\":\"scheduleForm\"}},[_c('h5',{staticClass:\"text-base font-bold text-black border-b-2 bg-gray-200 p-4\"},[_vm._v(\" Schedule Details \")]),_c('div',{staticClass:\"w-full flex flex-col space-y-2 p-4\"},[_c('el-form-item',{attrs:{\"label\":\"Name \",\"prop\":\"SchedulerName\"}},[_c('el-input',{attrs:{\"placeholder\":\"Name\",\"clearable\":\"\"},model:{value:(_vm.form.SchedulerName),callback:function ($$v) {_vm.$set(_vm.form, \"SchedulerName\", $$v)},expression:\"form.SchedulerName\"}})],1),_c('div',{staticClass:\"w-full flex space-y-2\"},[_c('el-form-item',{staticClass:\"w-full\",attrs:{\"label\":\"Period\",\"prop\":\"Period\"}},[_c('el-select',{attrs:{\"placeholder\":\"Select Report Period\",\"clearable\":\"\"},model:{value:(_vm.form.Period),callback:function ($$v) {_vm.$set(_vm.form, \"Period\", $$v)},expression:\"form.Period\"}},_vm._l((_vm.dateOptions),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)],1),(_vm.form.Period == 'weekly')?_c('el-form-item',{staticClass:\"w-full\",attrs:{\"prop\":\"Day\",\"label\":\"Every\"}},[_c('el-select',{staticClass:\"w-full\",attrs:{\"placeholder\":\"Select the Day\",\"clearable\":\"\"},model:{value:(_vm.form.Day),callback:function ($$v) {_vm.$set(_vm.form, \"Day\", $$v)},expression:\"form.Day\"}},_vm._l((_vm.dayOfWeek),function(item,index){return _c('el-option',{key:item,attrs:{\"label\":item,\"value\":index}})}),1)],1):_vm._e(),(_vm.form.Period == 'monthly')?_c('el-form-item',{staticClass:\"w-full\",attrs:{\"prop\":\"Day\",\"label\":\"Every\"}},[_c('el-select',{staticClass:\"w-full\",attrs:{\"placeholder\":\"Select the Date\",\"clearable\":\"\"},model:{value:(_vm.form.Day),callback:function ($$v) {_vm.$set(_vm.form, \"Day\", $$v)},expression:\"form.Day\"}},_vm._l((30),function(days){return _c('el-option',{key:days,attrs:{\"label\":days,\"value\":days}})}),1)],1):_vm._e()],1)],1)]),_c('div',{staticClass:\"w-full border border-lg rounded-lg\",attrs:{\"id\":\"email details\"}},[_c('h5',{staticClass:\"text-base font-bold text-black border-b-2 bg-gray-200 p-4\"},[_vm._v(\" Email Details \")]),_c('div',{staticClass:\"w-full flex flex-col space-x-0 space-y-2 lg:space-x-2 lg:space-y-0 p-4\"},[_c('el-form-item',{attrs:{\"label\":\"Send To\",\"prop\":\"Email\"}},[_c('el-input',{attrs:{\"placeholder\":\"Send To\",\"clearable\":\"\"},model:{value:(_vm.form.Email),callback:function ($$v) {_vm.$set(_vm.form, \"Email\", $$v)},expression:\"form.Email\"}})],1),_c('el-form-item',{attrs:{\"label\":\"Subject\",\"prop\":\"Subject\"}},[_c('el-input',{attrs:{\"placeholder\":\"Subject\",\"clearable\":\"\"},model:{value:(_vm.form.Subject),callback:function ($$v) {_vm.$set(_vm.form, \"Subject\", $$v)},expression:\"form.Subject\"}})],1),_c('el-form-item',{attrs:{\"label\":\"Message\",\"prop\":\"Message\"}},[_c('quill-editor',{ref:\"myQuillEditor\",attrs:{\"options\":_vm.editorOption},model:{value:(_vm.form.Message),callback:function ($$v) {_vm.$set(_vm.form, \"Message\", $$v)},expression:\"form.Message\"}})],1)],1)])]),_c('div',{staticClass:\"w-1/2 border border-lg rounded-lg\",attrs:{\"id\":\"reportForm\"}},[_c('h5',{staticClass:\"text-base font-bold text-black border-b-2 bg-gray-200 p-4\"},[_vm._v(\" Report Filter Details \")]),_c('div',{staticClass:\"w-full flex flex-col space-y-2 p-4\"},[_c('el-form-item',{attrs:{\"label\":\"Report Type\",\"prop\":\"ParamJsonObject.reportType\"}},[_c('el-select',{attrs:{\"filterable\":\"\",\"clearable\":\"\",\"remote\":\"\",\"reserve-keyword\":\"\",\"placeholder\":\"Search Report\",\"loading\":_vm.loading},model:{value:(_vm.form.ParamJsonObject.reportType),callback:function ($$v) {_vm.$set(_vm.form.ParamJsonObject, \"reportType\", $$v)},expression:\"form.ParamJsonObject.reportType\"}},_vm._l((_vm.reports),function(item){return _c('el-option',{key:item,attrs:{\"label\":item,\"value\":item}})}),1)],1),_c('el-form-item',{attrs:{\"label\":\"Report Period\",\"prop\":\"ParamJsonObject.dataForm\"}},[_c('el-select',{staticClass:\"w-full mt-2\",attrs:{\"placeholder\":\"Select Report Period\"},on:{\"change\":_vm.onChangePicker},model:{value:(_vm.form.ParamJsonObject.dataForm),callback:function ($$v) {_vm.$set(_vm.form.ParamJsonObject, \"dataForm\", $$v)},expression:\"form.ParamJsonObject.dataForm\"}},_vm._l((_vm.dateOptions),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)],1),_c('label',{staticClass:\"el-form-item__label pb-0 mb-0\",attrs:{\"for\":\"ParamJsonObject.startDate\"}},[_vm._v(\"Period Range\")]),_c('div',{staticClass:\"flex justify-between\"},[_c('el-form-item',{attrs:{\"prop\":\"ParamJsonObject.startDate\"}},[_c('el-date-picker',{staticClass:\"mr-1\",attrs:{\"picker-options\":_vm.datePickerOptions,\"type\":_vm.periodDatePickerType,\"placeholder\":\"Start Period\",\"value-format\":\"yyyy-MM-dd\"},on:{\"change\":_vm.validateDate},model:{value:(_vm.form.ParamJsonObject.startDate),callback:function ($$v) {_vm.$set(_vm.form.ParamJsonObject, \"startDate\", $$v)},expression:\"form.ParamJsonObject.startDate\"}})],1),_c('el-form-item',{attrs:{\"prop\":\"ParamJsonObject.endDate\"}},[_c('el-date-picker',{staticClass:\"ml-1\",attrs:{\"picker-options\":_vm.datePickerOptions,\"type\":_vm.periodDatePickerType,\"placeholder\":\"End Period\",\"value-format\":\"yyyy-MM-dd\"},on:{\"change\":_vm.validateDate},model:{value:(_vm.form.ParamJsonObject.endDate),callback:function ($$v) {_vm.$set(_vm.form.ParamJsonObject, \"endDate\", $$v)},expression:\"form.ParamJsonObject.endDate\"}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"Location\",\"prop\":\"ParamJsonObject.locationReportNode\"}},[_c('el-cascader',{staticClass:\"w-full\",attrs:{\"clearable\":\"\",\"filterable\":\"\",\"options\":_vm.location,\"props\":_vm.cascaderProps},model:{value:(_vm.form.ParamJsonObject.locationReportNode),callback:function ($$v) {_vm.$set(_vm.form.ParamJsonObject, \"locationReportNode\", $$v)},expression:\"form.ParamJsonObject.locationReportNode\"}})],1),(!_vm.isCustomer)?_c('el-form-item',{attrs:{\"label\":\"Tenant\",\"prop\":\"ParamJsonObject.customer\"}},[_c('el-select',{attrs:{\"filterable\":\"\",\"clearable\":\"\",\"remote\":\"\",\"reserve-keyword\":\"\",\"placeholder\":\"Select Customer\"},model:{value:(_vm.form.ParamJsonObject.customer),callback:function ($$v) {_vm.$set(_vm.form.ParamJsonObject, \"customer\", $$v)},expression:\"form.ParamJsonObject.customer\"}},_vm._l((_vm.customerList),function(item){return _c('el-option',{key:item.DcoId,attrs:{\"label\":item.Company,\"value\":item.DcoId}})}),1)],1):_vm._e(),_c('el-form-item',{staticClass:\"hidden\",attrs:{\"label\":\"Formula\"}},[_c('el-input',{attrs:{\"placeholder\":\"Search Formula\"},model:{value:(_vm.filterText),callback:function ($$v) {_vm.filterText=$$v},expression:\"filterText\"}}),_c('div',{staticClass:\"border\"},[_c('el-tree',{ref:\"deviceGroupsTree\",attrs:{\"show-checkbox\":\"\",\"default-expand-all\":\"\",\"node-key\":\"Dce_id\",\"highlight-current\":\"\",\"empty-text\":\"No Data\",\"data\":_vm.deviceGroups,\"props\":_vm.deviceGroupProps,\"filter-node-method\":_vm.filterNode,\"check-on-click-node\":true},on:{\"check-change\":_vm.onDeviceGroupChange}})],1)],1)],1)])]),_c('hr',{staticClass:\"my-4\"}),_c('div',{staticClass:\"w-full text-right\"},[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.submit}},[_vm._v(\"Submit\")]),_c('el-button',{on:{\"click\":_vm.cancel}},[_vm._v(\"Cancel\")])],1)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\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!./Form.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!./Form.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=207c1bd7&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Form.vue?vue&type=style&index=0&lang=css&\"\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","import unsupportedIterableToArray from \"./unsupportedIterableToArray\";\nexport default function _createForOfIteratorHelper(o, allowArrayLike) {\n var it;\n\n if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) {\n if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n var i = 0;\n\n var F = function F() {};\n\n return {\n s: F,\n n: function n() {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n },\n e: function e(_e) {\n throw _e;\n },\n f: F\n };\n }\n\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n\n var normalCompletion = true,\n didErr = false,\n err;\n return {\n s: function s() {\n it = o[Symbol.iterator]();\n },\n n: function n() {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function e(_e2) {\n didErr = true;\n err = _e2;\n },\n f: function f() {\n try {\n if (!normalCompletion && it[\"return\"] != null) it[\"return\"]();\n } finally {\n if (didErr) throw err;\n }\n }\n };\n}"],"sourceRoot":""}