{"version":3,"sources":["webpack:///./node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack:///./node_modules/@babel/runtime/helpers/esm/createClass.js","webpack:///./src/mixins/FormService.js","webpack:///./src/pages/master/scheduled-report/form-helper.js","webpack:///./src/pages/master/scheduled-report/Form.vue?295b","webpack:///./src/mixins/ReportFilter.js","webpack:///./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack:///./src/pages/master/scheduled-report/Form.vue?1383","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":["_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_createClass","protoProps","staticProps","prototype","serviceForm","vue","helper","id","this","formData","redirect","$route","params","axios","put","apiPut","then","$router","go","catch","error","response","post","apiPost","extractErrMessage","push","name","query","data","ListIdUpload","delete","apiRemove","console","log","status","statusText","hasOwnProperty","call","message","title","get","apiGetById","res","assign","getEmptyData","emptyData","SchedulerName","Period","Day","Email","Subject","Message","ModifiedBy","ParamJsonObject","startDate","endDate","reportType","locationReport","location","dataForm","customer","ListFormula","validationRulesz","required","trigger","ListDceId","getValidationRule","pickerOptions","disabledDate","time","getTime","Date","now","loading","filterText","filterCustomSensorText","reports","deviceGroups","defaultProps","children","label","deviceGroupProps","cascaderProps","multiple","periodDatePickerType","datePickerOptions","customSensorList","customerList","mounted","methods","allowAlarmReport","user","RolesName","includes","onChangePicker","formParent","validateDate","currentDate","$moment","startOf","temp1","temp2","temp2Date","isSame","$message","filterNode","value","Name","indexOf","filterCustomSensor","VarName","onDeviceGroupChange","checked","IsFormula","form","Dce_id","filter","x","findDeviceGroupDataByKey","deviceGroup","sensorDataChange","$emit","resetForm","formName","formException","$refs","fields","map","prop","resetField","resetFields","IsSummaryOnly","setDefaultCustomerId","isCustomer","CustomerName","closePopup","val","popupScheduleOpen","setAllFormulaIds","_this","item","submitFilter","validate","valid","warning","getLocations","$axios","$appInfo","api","getCustomerFloorServerRoom","sortData","sort","a","b","getCustomers","getListCustomerWithData","getSensorsByCustomers","CustomerDcoId","treeGroupDevice","getCustTreeGroupDeviceLevelWithFormula","getCustomSensors","formula","getAll","getReportTypes","tag","listStringTagsAuthorizeReport","computed","$store","state","auth","userData","watch","deviceGroupsTree","customerSensorTree","dateOptions","_typeof","obj","Symbol","iterator","constructor","render","_vm","_h","$createElement","_c","_self","directives","rawName","expression","attrs","_v","_s","staticClass","ref","formRules","model","callback","$$v","$set","_l","index","_e","days","editorOption","on","DcoId","CustomerType","Company","Department","submit","cancel","staticRenderFns","regexExp","test","failed","Error","components","mixins","created","service","mailList","getById","roles","customers","mode","EmailList","isSubmit","firstLoad","dayOfWeek","placeholder","theme","modules","toolbar","syntax","highlight","handler","beforeRouteLeave","next","answer","component","_createForOfIteratorHelper","o","allowArrayLike","it","Array","isArray","unsupportedIterableToArray","F","s","n","done","e","f","err","normalCompletion","didErr","step","_e2"],"mappings":"sJAAe,SAASA,EAAgBC,EAAUC,GAChD,KAAMD,aAAoBC,GACxB,MAAM,IAAIC,UAAU,qCCFxB,SAASC,EAAkBC,EAAQC,GACjC,IAAK,IAAIC,EAAI,EAAGA,EAAID,EAAME,OAAQD,IAAK,CACrC,IAAIE,EAAaH,EAAMC,GACvBE,EAAWC,WAAaD,EAAWC,aAAc,EACjDD,EAAWE,cAAe,EACtB,UAAWF,IAAYA,EAAWG,UAAW,GACjDC,OAAOC,eAAeT,EAAQI,EAAWM,IAAKN,IAInC,SAASO,EAAad,EAAae,EAAYC,GAG5D,OAFID,GAAYb,EAAkBF,EAAYiB,UAAWF,GACrDC,GAAad,EAAkBF,EAAagB,GACzChB,E,qCCXHkB,E,WAKJ,WAAYC,EAAKC,GAAmB,IAAXC,EAAW,uDAAN,KAAM,kHAClCC,KAAKH,IAAMA,EACXG,KAAKF,OAASA,EACdE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GACanO,KAAK2N,YAEN3N,KAAK0G,KAAKlE,IADA,WAARwF,EACc,EAEA,GAKpBhI,KAAK2N,WAAY,KAgBvBS,iBAxQF,SAwQA,OACI,GAAKpO,KAAK0N,SAURW,QAVkB,CAClB,IAAN,iBACA,0DAEUC,EACFD,IAEAA,GAAK,MChnB+V,I,wBCQxWE,EAAY,eACd,EACA3D,EACA+B,GACA,EACA,KACA,KACA,MAIa,aAAA4B,E,yJClBA,SAASC,EAA2BC,EAAGC,GACpD,IAAIC,EAEJ,GAAsB,qBAAXlE,QAAgD,MAAtBgE,EAAEhE,OAAOC,UAAmB,CAC/D,GAAIkE,MAAMC,QAAQJ,KAAOE,EAAKG,eAA2BL,KAAOC,GAAkBD,GAAyB,kBAAbA,EAAEzP,OAAqB,CAC/G2P,IAAIF,EAAIE,GACZ,IAAI5P,EAAI,EAEJgQ,EAAI,aAER,MAAO,CACLC,EAAGD,EACHE,EAAG,WACD,OAAIlQ,GAAK0P,EAAEzP,OAAe,CACxBkQ,MAAM,GAED,CACLA,MAAM,EACNhJ,MAAOuI,EAAE1P,OAGboQ,EAAG,SAAWlD,GACZ,MAAMA,GAERmD,EAAGL,GAIP,MAAM,IAAIpQ,UAAU,yIAGtB,IAEI0Q,EAFAC,GAAmB,EACnBC,GAAS,EAEb,MAAO,CACLP,EAAG,WACDL,EAAKF,EAAEhE,OAAOC,aAEhBuE,EAAG,WACD,IAAIO,EAAOb,EAAGN,OAEd,OADAiB,EAAmBE,EAAKN,KACjBM,GAETL,EAAG,SAAWM,GACZF,GAAS,EACTF,EAAMI,GAERL,EAAG,WACD,IACOE,GAAoC,MAAhBX,EAAG,WAAmBA,EAAG,YADpD,QAGE,GAAIY,EAAQ,MAAMF","file":"js/chunk-7aafb300.bee9d0e7.js","sourcesContent":["export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}","import axios from 'axios'\n\nclass serviceForm {\n vue\n helper\n id\n\n constructor(vue, helper, id = null) {\n this.vue = vue\n this.helper = helper\n this.id = id\n }\n\n get initialFormData() {\n return async () => {\n let formData\n\n var id = this.vue.$route.params.id\n if (this.id) {\n id = this.id\n }\n\n if (id) {\n const res = await axios.get(`${this.vue.apiGetById}?id=${id}`)\n formData = res.data\n } else {\n formData = Object.assign({}, this.helper.getEmptyData())\n }\n\n return formData\n }\n }\n\n async submit(formData, redirect = true) {\n try {\n if (this.vue.$route.params.id || this.id) {\n await axios\n .put(`${this.vue.apiPut}`, formData)\n .then(() => {\n if (redirect) {\n this.vue.$router.go(-1)\n }\n })\n .catch((error) => {\n throw error.response\n })\n } else {\n await axios\n .post(`${this.vue.apiPost}`, formData)\n .then(() => {\n this.vue.$router.go(-1)\n })\n .catch((error) => {\n throw error.response\n })\n }\n } catch (e) {\n this.extractErrMessage(e)\n }\n }\n\n async customSubmit(formData) {\n try {\n if (this.vue.$route.params.id) {\n await axios\n .put(`${this.vue.apiPut}`, formData)\n .then(() => {\n this.vue.$router.push({\n name: 'docs-upload',\n query: { id: this.vue.$route.params.id }\n })\n })\n .catch((error) => {\n throw error.response\n })\n } else {\n await axios\n .post(`${this.vue.apiPost}`, formData)\n .then((response) => {\n this.vue.$router.push({\n name: 'docs-upload',\n params: { id: response.data.ListIdUpload }\n })\n })\n .catch((error) => {\n throw error.response\n })\n }\n } catch (e) {\n this.extractErrMessage(e)\n }\n }\n\n async remove(id) {\n try {\n await axios.delete(`${this.vue.apiRemove}?id=${id}`).catch((error) => {\n throw error.response\n })\n } catch (e) {\n this.extractErrMessage(e)\n }\n }\n\n extractErrMessage(response) {\n // display on console log\n console.log(response)\n\n if (response.status == 400) {\n if (Object.prototype.hasOwnProperty.call(response.data, 'message')) {\n throw response.data.message\n } else if (\n Object.prototype.hasOwnProperty.call(response.data.Object, 'title')\n ) {\n throw response.data.title\n }\n } else {\n throw response.statusText\n }\n }\n}\n\nexport default serviceForm\n","// 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 ModifiedBy: '',\n ParamJsonObject: {\n startDate: '',\n endDate: '',\n reportType: '',\n locationReport: [],\n location: ['BELL'],\n dataForm: 'daily',\n customer: '',\n ListFormula: []\n }\n}\n\nconst validationRulesz = {\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: 'change'\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 location: [\n {\n required: false,\n message: 'Location is required',\n trigger: 'blur'\n }\n ],\n customer: [\n {\n required: false,\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 validationRulesz\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&\"","import reportType from '@/assets/dummy/reportType.json'\n\nexport default {\n data() {\n return {\n pickerOptions: {\n disabledDate(time) {\n return time.getTime() > Date.now()\n }\n },\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.formParent.dataForm == 'monthly') {\n this.periodDatePickerType = 'month'\n } else if (this.formParent.dataForm == 'yearly') {\n this.periodDatePickerType = 'year'\n } else {\n this.periodDatePickerType = 'date'\n }\n\n this.formParent.startDate = ''\n this.formParent.endDate = ''\n },\n validateDate() {\n if (this.formParent.startDate != '' && this.formParent.endDate != '') {\n let currentDate = this.$moment(new Date()).startOf('day')\n let temp1 = new Date(this.formParent.startDate)\n let temp2 = new Date(this.formParent.endDate)\n\n let temp2Date = this.$moment(this.formParent.endDate).startOf('day')\n\n if (currentDate.isSame(temp2Date)) {\n this.formParent.startDate = ''\n this.formParent.endDate = ''\n this.$message.error(\n 'Todays data is not yet available, please select the date before today'\n )\n }\n if (temp1 > temp2) {\n this.formParent.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, formException) {\n this.periodDatePickerType = 'date'\n let data = this.$refs[formName].fields\n\n if (formException) {\n data.map((data) => {\n if (data.prop !== formException) {\n data.resetField()\n }\n })\n } else {\n this.$refs[formName].resetFields()\n this.formParent.IsSummaryOnly = true\n }\n\n this.$emit('resetFormFromSidebar')\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()\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 // this.form.IsSummaryOnly = JSON.parse(this.form.IsSummaryOnly)\n\n // this.$emit('formData', this.form)\n this.$emit('formData')\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 { data: res } = await this.$axios.get(\n this.$appInfo.api.customer.getCustomerFloorServerRoom\n )\n\n let sortData = res.sort((a, b) => (a.label > b.label ? 1 : -1))\n\n // get location\n this.location = sortData\n\n this.loading = false\n } catch (e) {\n this.loading = false\n console.log(e)\n }\n },\n async getCustomers() {\n try {\n this.loading = true\n const res = await this.$axios.get(\n this.$appInfo.api.customer.getListCustomerWithData\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\n this.reports = 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 'formParent.IsSummaryOnly': function (val) {\n this.$router.push({\n query: Object.assign({}, this.$route.query, this.form)\n })\n },\n 'form.reportType': function (val) {},\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 'formParent.reportType': function () {\n // this.formParent.startDate = ''\n // this.formParent.endDate = ''\n if (this.formParent.reportType === 'Power Billing') {\n this.dateOptions = [\n {\n value: 'daily',\n label: 'Daily'\n },\n {\n value: 'monthly',\n label: 'Monthly'\n }\n ]\n } else {\n this.dateOptions = [\n {\n value: 'daily',\n label: 'Daily'\n },\n {\n value: 'monthly',\n label: 'Monthly'\n },\n {\n value: 'yearly',\n label: 'Yearly'\n }\n ]\n }\n },\n // 'form.location': 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.location': 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","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\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.formRules}},[_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-x-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-0 lg:space-y-0 p-4\"},[_c('el-form-item',{attrs:{\"label\":\"Send To\",\"prop\":\"Email\"}},[_c('p',{staticClass:\"text-xs text-red-400\"},[_vm._v(\" Must to valid Switch corporate e-mail address, no external addresses permitted \")]),_c('el-select',{staticClass:\"w-full\",attrs:{\"multiple\":\"\",\"filterable\":\"\",\"allow-create\":\"\",\"default-first-option\":\"\",\"placeholder\":\"Type email here\"},model:{value:(_vm.form.Email),callback:function ($$v) {_vm.$set(_vm.form, \"Email\", $$v)},expression:\"form.Email\"}},_vm._l((_vm.EmailList),function(item){return _c('el-option',{key:item,attrs:{\"label\":item,\"value\":item}})}),1)],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\":\"ReportTitle\"}},[_c('el-input',{attrs:{\"disabled\":\"\",\"clearable\":\"\"},model:{value:(_vm.form.ReportTitle),callback:function ($$v) {_vm.$set(_vm.form, \"ReportTitle\", $$v)},expression:\"form.ReportTitle\"}})],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),(_vm.form.ParamJsonObject.location)?_c('el-form-item',{attrs:{\"label\":\"Location\",\"prop\":\"ParamJsonObject.location\"}},[_c('el-cascader',{staticClass:\"w-full\",attrs:{\"clearable\":\"\",\"filterable\":\"\",\"disabled\":\"\",\"options\":_vm.location,\"props\":_vm.cascaderProps},model:{value:(_vm.form.ParamJsonObject.location),callback:function ($$v) {_vm.$set(_vm.form.ParamJsonObject, \"location\", $$v)},expression:\"form.ParamJsonObject.location\"}})],1):_vm._e(),(_vm.form.ParamJsonObject.customer && !_vm.isCustomer)?_c('el-form-item',{attrs:{\"label\":\"Tenant\",\"prop\":\"ParamJsonObject.customer\"}},[_c('el-select',{attrs:{\"disabled\":\"\",\"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.CustomerType == 'INTERNAL_DEPARTMENT'\n ? item.Company + ' [' + item.Department + ']'\n : item.Company,\"value\":item.DcoId}})}),1)],1):_vm._e()],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=c7b1024a&\"\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":""}