{"version":3,"sources":["webpack:///./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack:///./src/mixins/FormService.js","webpack:///./src/pages/master/scheduled-report/form-helper.js","webpack:///./src/mixins/ReportFilter.js","webpack:///./src/pages/master/scheduled-report/Form.vue?5ae7","webpack:///./src/pages/master/scheduled-report/Form.vue","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?475b"],"names":["_defineProperty","obj","key","value","Object","defineProperty","enumerable","configurable","writable","serviceForm","constructor","vue","helper","id","this","async","formData","$route","params","res","axios","get","apiGetById","data","assign","getEmptyData","redirect","put","apiPut","then","$router","go","catch","error","response","post","apiPost","e","extractErrMessage","push","name","query","ListIdUpload","delete","apiRemove","console","log","status","statusText","prototype","hasOwnProperty","call","message","title","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","reportDateOption","date","previousDate","setDate","getDate","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","Name","indexOf","filterCustomSensor","VarName","onDeviceGroupChange","checked","length","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","fromUrl","validate","valid","warning","$axios","$appInfo","api","getCustomerWithRack","sortData","sort","a","b","link","getListCustomerWithData","CustomerDcoId","treeGroupDevice","getCustTreeGroupDeviceLevelWithFormula","formula","getAll","tag","listStringTagsAuthorizeReport","computed","$store","state","auth","userData","watch","deviceGroupsTree","customerSensorTree","dateOptions","render","_vm","_c","_self","directives","rawName","expression","attrs","_v","_s","staticClass","ref","formRules","model","callback","$$v","$set","_l","dayOfWeek","index","_e","days","EmailList","editorOption","ReportTitle","on","DcoId","CustomerType","Company","Department","submit","cancel","staticRenderFns","service","validateMultipleEmail","rule","pass","failed","components","mixins","created","roles","customers","mode","isSubmit","firstLoad","validator","placeholder","theme","modules","toolbar","header","list","script","indent","direction","size","font","color","background","align","syntax","highlight","handler","beforeRouteLeave","next","component"],"mappings":"kHAAe,SAASA,EAAgBC,EAAKC,EAAKC,GAYhD,OAXID,KAAOD,EACTG,OAAOC,eAAeJ,EAAKC,EAAK,CAC9BC,MAAOA,EACPG,YAAY,EACZC,cAAc,EACdC,UAAU,IAGZP,EAAIC,GAAOC,EAGNF,E,mCCVT,MAAMQ,EAKJC,YAAYC,EAAKC,EAAQC,EAAK,MAAM,iEAClCC,KAAKH,IAAMA,EACXG,KAAKF,OAASA,EACdE,KAAKD,GAAKA,EAGO,sBACjB,OAAOE,UACL,IAAIC,EAEJ,IAAIH,EAAKC,KAAKH,IAAIM,OAAOC,OAAOL,GAKhC,GAJIC,KAAKD,KACPA,EAAKC,KAAKD,IAGRA,EAAI,CACN,MAAMM,QAAYC,IAAMC,IAAK,GAAEP,KAAKH,IAAIW,iBAAiBT,KACzDG,EAAWG,EAAII,UAEfP,EAAWZ,OAAOoB,OAAO,GAAIV,KAAKF,OAAOa,gBAG3C,OAAOT,GAIC,aAACA,EAAUU,GAAW,GAChC,IACMZ,KAAKH,IAAIM,OAAOC,OAAOL,IAAMC,KAAKD,SAC9BO,IACHO,IAAK,GAAEb,KAAKH,IAAIiB,OAAUZ,GAC1Ba,KAAK,KACAH,GACFZ,KAAKH,IAAImB,QAAQC,IAAI,KAGxBC,MAAOC,IACN,MAAMA,EAAMC,iBAGVd,IACHe,KAAM,GA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YACApB,iCACAqB,iBAGAN,UACA,CACAK,YACApB,+BACAqB,iBAGAJ,UACA,CACAG,YACApB,6BACAqB,iBAGAC,WACA,CACAF,YACApB,mCACAqB,mBAKAuI,cACAwB,4BACAC,aACAC,SACAC,SACA,uCACA,4BACA,EAAAC,UAAA,CAAAA,WACA,EAAAC,gBAAA,CAAAA,gBACA,EAAAC,cAAA,CAAAA,iBACA,EAAAC,aAAA,CAAAA,cACA,EAAAC,kBACA,EAAAC,mCACA,EAAAL,0BACA,EAAAM,UACA,EAAAC,UAAA,CAAAC,gBACA,EAAAC,WACA,UACA,UAEAC,QACAC,8CAMAvE,UACAvE,OACA,yCAGAF,SACA,eACA,qBAEA,eACA,qCACA,MAqBA,OAFA,0DACA,iBACA,EApBA,IACA,gBACA,iBACA,0CACA,wCACA,4DACA,6CAGA,oBACA,oCACA,gBACA,SACA,gBACA,uBACA1D,oBAuBAwI,OACA,eACAmE,WACA,iBAEA,cADA,aACA,EAEA,GAKA,qBAgBAC,wBACA,iBAUAC,QAVA,CACA,uBACA,0DAEA,EACAA,IAEAA,SCxnB4W,I,wBCQxWC,EAAY,eACd,EACAlE,EACAgC,GACA,EACA,KACA,KACA,MAIa,aAAAkC,E","file":"js/chunk-d53319de.26df318d.js","sourcesContent":["export default function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\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 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 reportDateOption: {\n disabledDate(time) {\n var date = new Date()\n var previousDate = date.setDate(date.getDate() - 1)\n return time.getTime() > previousDate\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\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.getCustomerWithRack\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(link) {\n try {\n this.loading = true\n const res = await this.$axios.get(\n `${this.$appInfo.api.customer.getListCustomerWithData}${link}`\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 * 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&id=f7cb57e6&prod&lang=css&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],attrs:{\"id\":\"report-view\",\"element-loading-spinner\":\"el-icon-loading\",\"element-loading-background\":\"rgba(0, 0, 0, 0.8)\"}},[_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-white border-b-2 bg-primary-300 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-white border-b-2 bg-primary-50 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 internal 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-white border-b-2 bg-primary-50 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)])\n}\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=f7cb57e6&\"\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&id=f7cb57e6&prod&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"],"sourceRoot":""}