{"version":3,"sources":["webpack:///./src/views/request/AddMissionHour.vue?55d1","webpack:///src/views/request/AddMissionHour.vue","webpack:///./src/views/request/AddMissionHour.vue?a6ea","webpack:///./src/views/request/AddMissionHour.vue","webpack:///./src/components/widget/DialogTimePicker.vue?2d20","webpack:///./src/components/widget/DialogTimePicker.vue?c901","webpack:///src/components/widget/DialogTimePicker.vue","webpack:///./src/components/widget/DialogTimePicker.vue?a657","webpack:///./src/components/widget/DialogTimePicker.vue?3bcc"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","$t","_v","_s","details","PageNo","Name","CityName","Location","BeginDate","EndDate","missionHourList","missionHourHeader","scopedSlots","_u","key","fn","props","ConvertToEnglishDigits","item","beginTime","on","$event","bTime","EndTime","eTime","loading","btnSaveClick","staticRenderFns","components","DialogTimePicker","data","perno","beginDate","endDate","missionType","year","pageNo","text","value","mounted","methods","date","console","rowClicked","pageLoad","dispatch","params","then","GetMissionDetailForPerson","GetMissionHourForMission","dbKind","GetMissionHourForMissionParams","promises","Promise","name","AddMissionHour","element","BeginTime","Perno","Description","MissionType","CityCode","Place","type","msg","component","VBtn","VCard","VCardActions","VCol","VDataTable","VIcon","VRow","VSpacer","ref","disabled","style","width","model","callback","$$v","expression","datePicker","label","initTime","timeNow","default","modal","computed","dateResult","watch","newval"],"mappings":"kJAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,MAAM,CAACG,MAAM,CAAC,MAAQP,EAAIQ,GAAG,oBAAoB,CAACJ,EAAG,QAAQ,CAACE,YAAY,QAAQ,CAACF,EAAG,QAAQ,CAACG,MAAM,CAAC,KAAO,MAAM,CAACP,EAAIS,GAAGT,EAAIU,GAAGV,EAAIQ,GAAG,WAAW,KAAKJ,EAAG,OAAO,CAACE,YAAY,cAAc,CAACN,EAAIS,GA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,MAAQ,uBAAuB,SAAWP,EAAImF,SAAS,cAAc,CAAEC,MAAO,CAAEC,MAAO,qBAAuBC,MAAM,CAACxC,MAAO9C,EAAQ,KAAEuF,SAAS,SAAUC,GAAMxF,EAAIiD,KAAKuC,GAAKC,WAAW,WAAW,IAC3atD,EAAkB,G,iCCoBP,GACfC,YACAsD,gBAEAlE,OACAmE,aACAC,gBACAC,gBACAV,UACAZ,aACAuB,aAGA/C,QAbA,WAeA,kBACA,oBACAG,6BAEA,4BACA,CACA,eACA,kCACA,cAGAZ,gBAAA,OACAW,aACA8C,WAEAC,YACAhD,SACAiD,WADA,WAGA,8CACA,6BAGAC,OACAjD,KADA,WAEA,mBAEA2C,SAJA,SAIAO,GACA,eChEyW,I,wBCQrW1B,EAAY,eACd,EACA1E,EACAoC,GACA,EACA,KACA,KACA,MAIa,OAAAsC,E","file":"js/chunk-c5e7c94e.a50a4db8.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"addMissionHour\"},[_c('box',{attrs:{\"title\":_vm.$t('missionDetails')}},[_c('v-row',{staticClass:\"pa-2\"},[_c('v-col',{attrs:{\"cols\":\"6\"}},[_vm._v(_vm._s(_vm.$t(\"PageNo\"))+\":\"),_c('span',{staticClass:\"text-value\"},[_vm._v(_vm._s(_vm.details.PageNo))])]),_c('v-col',{attrs:{\"cols\":\"6\"}},[_vm._v(_vm._s(_vm.$t(\"requestType\"))+\":\"),_c('span',{staticClass:\"text-value\"},[_vm._v(_vm._s(_vm.details.Name))])]),_c('v-col',{attrs:{\"cols\":\"6\"}},[_vm._v(_vm._s(_vm.$t(\"cityName\"))+\":\"),_c('span',{staticClass:\"text-value\"},[_vm._v(_vm._s(_vm.details.CityName))])]),_c('v-col',{attrs:{\"cols\":\"6\"}},[_vm._v(_vm._s(_vm.$t(\"missionLocation\"))+\":\"),_c('span',{staticClass:\"text-value\"},[_vm._v(_vm._s(_vm.details.Location))])]),_c('v-col',{attrs:{\"cols\":\"6\"}},[_vm._v(_vm._s(_vm.$t(\"BeginDate\"))+\":\"),_c('span',{staticClass:\"text-value\"},[_vm._v(_vm._s(_vm.details.BeginDate))])]),_c('v-col',{attrs:{\"cols\":\"6\"}},[_vm._v(_vm._s(_vm.$t(\"EndDate\"))+\":\"),_c('span',{staticClass:\"text-value\"},[_vm._v(_vm._s(_vm.details.EndDate))])])],1),_c('div',{staticClass:\"mx-2\"},[_c('v-icon',[_vm._v(\"mdi-info\")]),_c('span',{staticClass:\"mx-2\"},[_vm._v(\"برای وارد کردن ساعت لطفا ساعت مورد نظر را انتخاب کنید :\")])],1),_c('v-card',{staticClass:\"ma-2\"},[_c('v-data-table',{attrs:{\"items\":_vm.missionHourList,\"headers\":_vm.missionHourHeader,\"disable-pagination\":\"\",\"disable-sort\":\"\",\"hide-default-footer\":\"\",\"dense\":\"\"},scopedSlots:_vm._u([{key:\"item.BeginTime\",fn:function(props){return [_c('div',{staticClass:\"pa-1\"},[_c('dialog-time-picker',{attrs:{\"label\":_vm.$t('BeginTime') + ':',\"initTime\":_vm.ConvertToEnglishDigits(props.item.beginTime)},on:{\"dateResult\":function($event){return _vm.bTime($event, props)}}})],1)]}},{key:\"item.EndTime\",fn:function(props){return [_c('dialog-time-picker',{attrs:{\"label\":_vm.$t('EndTime') + ':',\"initTime\":_vm.ConvertToEnglishDigits(props.item.EndTime)},on:{\"dateResult\":function($event){return _vm.eTime($event, props)}}})]}}])})],1),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{attrs:{\"color\":\"primary\",\"loading\":_vm.loading,\"disabled\":_vm.loading},on:{\"click\":_vm.btnSaveClick}},[_vm._v(_vm._s(_vm.$t(\"save\")))])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n  <div class=\"addMissionHour\">\r\n    <box :title=\"$t('missionDetails')\">\r\n      <v-row class=\"pa-2\">\r\n        <v-col cols=\"6\"\r\n          >{{ $t(\"PageNo\") }}:<span class=\"text-value\">{{\r\n            details.PageNo\r\n          }}</span></v-col\r\n        >\r\n\r\n        <v-col cols=\"6\"\r\n          >{{ $t(\"requestType\") }}:<span class=\"text-value\">{{\r\n            details.Name\r\n          }}</span></v-col\r\n        >\r\n\r\n        <v-col cols=\"6\"\r\n          >{{ $t(\"cityName\") }}:<span class=\"text-value\">{{\r\n            details.CityName\r\n          }}</span></v-col\r\n        >\r\n        <v-col cols=\"6\"\r\n          >{{ $t(\"missionLocation\") }}:<span class=\"text-value\">{{\r\n            details.Location\r\n          }}</span></v-col\r\n        >\r\n        <v-col cols=\"6\"\r\n          >{{ $t(\"BeginDate\") }}:<span class=\"text-value\">{{\r\n            details.BeginDate\r\n          }}</span></v-col\r\n        >\r\n        <v-col cols=\"6\"\r\n          >{{ $t(\"EndDate\") }}:<span class=\"text-value\">{{\r\n            details.EndDate\r\n          }}</span></v-col\r\n        >\r\n      </v-row>\r\n\r\n      <div class=\"mx-2\">\r\n        <v-icon>mdi-info</v-icon>\r\n        <span class=\"mx-2\"\r\n          >برای وارد کردن ساعت لطفا ساعت مورد نظر را انتخاب کنید :</span\r\n        >\r\n      </div>\r\n\r\n      <v-card class=\"ma-2\">\r\n        <v-data-table\r\n          :items=\"missionHourList\"\r\n          :headers=\"missionHourHeader\"\r\n          disable-pagination\r\n          disable-sort\r\n          hide-default-footer\r\n          dense\r\n        >\r\n          <template v-slot:item.BeginTime=\"props\">\r\n            <div class=\"pa-1\">\r\n              <dialog-time-picker\r\n                :label=\"$t('BeginTime') + ':'\"\r\n                :initTime=\"ConvertToEnglishDigits(props.item.beginTime)\"\r\n                @dateResult=\"bTime($event, props)\"\r\n              />\r\n            </div>\r\n          </template>\r\n\r\n          <template v-slot:item.EndTime=\"props\">\r\n            <dialog-time-picker\r\n              :label=\"$t('EndTime') + ':'\"\r\n              :initTime=\"ConvertToEnglishDigits(props.item.EndTime)\"\r\n              @dateResult=\"eTime($event, props)\"\r\n            />\r\n          </template>\r\n        </v-data-table>\r\n      </v-card>\r\n\r\n      <v-card-actions>\r\n        <v-spacer></v-spacer>\r\n        <v-btn\r\n          color=\"primary\"\r\n          @click=\"btnSaveClick\"\r\n          :loading=\"loading\"\r\n          :disabled=\"loading\"\r\n          >{{ $t(\"save\") }}</v-btn\r\n        >\r\n      </v-card-actions>\r\n    </box>\r\n  </div>\r\n</template>\r\n\r\n<script>\r\nimport ResultType from \"../../model/ResultType\";\r\nimport TextUtils from \"../../utils/TextUtils\";\r\nimport i18n from \"../../i18n\";\r\nimport DialogTimePicker from \"../../components/widget/DialogTimePicker.vue\";\r\nimport EosToastType from \"../../model/EosToastType\";\r\n\r\nexport default {\r\n  components: { DialogTimePicker },\r\n  data() {\r\n    return {\r\n      perno: \"\",\r\n      beginDate: \"\",\r\n      endDate: \"\",\r\n      missionType: \"\",\r\n      year: \"\",\r\n      pageNo: \"\",\r\n      details: {},\r\n      loading: false,\r\n      missionHourList: [],\r\n      missionHourHeader: [\r\n        {\r\n          text: i18n.t(\"date\"),\r\n          value: \"DayDate\",\r\n        },\r\n        {\r\n          text: i18n.t(\"DayName\"),\r\n          value: \"DayName\",\r\n        },\r\n        {\r\n          text: i18n.t(\"BeginTime\"),\r\n          value: \"BeginTime\",\r\n        },\r\n        {\r\n          text: i18n.t(\"EndTime\"),\r\n          value: \"EndTime\",\r\n        },\r\n      ],\r\n    };\r\n  },\r\n  mounted() {\r\n    this.pageLoad();\r\n  },\r\n  methods: {\r\n    bTime(date, props) {\r\n      var bb = this.missionHourList\r\n\r\n      console.log(bb)\r\n      console.log(date)\r\n      props.item.BeginTime=date ;\r\n    },\r\n    eTime(date, props) {\r\n      props.item.EndTime = date;\r\n    },\r\n    rowClicked(item) {\r\n      console.log(item);\r\n    },\r\n    async pageLoad() {\r\n      // //debugger\r\n    \r\n      this.perno = this.$route.query.pid;\r\n      this.beginDate = this.$route.query.bd;\r\n      this.endDate = this.$route.query.ed;\r\n      this.missionType = this.$route.query.t;\r\n      this.year = this.$route.query.y;\r\n\r\n      this.$store\r\n        .dispatch(\"GetMissionPageNo\", {\r\n          params: {\r\n            perno: this.perno,\r\n            beginDate: this.beginDate,\r\n            endDate: this.endDate,\r\n            missionType: this.missionType,\r\n            year: this.year,\r\n          },\r\n        })\r\n        .then((result) => {\r\n         \r\n          console.log(result);\r\n          if (result.type == ResultType.success) {\r\n            this.pageNo = result.data.Status;\r\n            this.GetMissionDetailForPerson();\r\n          }\r\n        });\r\n    },\r\n    GetMissionDetailForPerson() {\r\n      const params = new URLSearchParams();\r\n      params.append(\"pageNo\", TextUtils.convertToEnglishDigits(this.pageNo));\r\n      params.append(\"dbkind\", \"1\");\r\n      params.append(\"year\", this.year);\r\n      params.append(\"perno\", this.perno);\r\n      // //debugger\r\n      this.$store\r\n        .dispatch(\"GetMissionDetailForPerson\", { params })\r\n        .then((result) => {\r\n          \r\n          if (result.type == \"success\") {\r\n            if (result.data.length > 0) {\r\n              this.details = result.data[0];\r\n              this.GetMissionHourForMission(this.details);\r\n            }\r\n          }\r\n        });\r\n    },\r\n    GetMissionHourForMission(item) {\r\n      //console.log(item);\r\n// //debugger\r\n      this.missionHourList = [];\r\n      if (item.IsDaily) {\r\n        this.rdGridTimesVisible = true;\r\n        var GetMissionHourForMissionParams = {\r\n          pageNo: TextUtils.convertToEnglishDigits(this.pageNo),\r\n          year: this.year,\r\n          dbKind:1\r\n        };\r\n        console.log('ndn:'+GetMissionHourForMissionParams)\r\n        // //debugger\r\n        this.$store\r\n          .dispatch(\"GetMissionHourForMission\", {\r\n            GetMissionHourForMissionParams,\r\n          })\r\n          .then((result) => {\r\n            //console.log(result);\r\n            // //debugger\r\n            if (result.type == ResultType.success) {\r\n              this.missionHourList = result.data;\r\n            }\r\n          });\r\n      }\r\n    },\r\n    btnSaveClick() {\r\n      this.loading = true;\r\n      var promises = [];\r\n      this.missionHourList.forEach((element) => {\r\n        //debugger;\r\n        if (element.BeginTime != \"&nbsp;\") {\r\n          promises.push(this.AddMissionHour(element));\r\n        }\r\n      });\r\n      Promise.all(promises).then((results) => {\r\n        //console.log(results);\r\n        this.loading = false;\r\n        var failed = results.find((result) => result == false);\r\n        if (!failed) {\r\n          this.$router.push({ name: \"request-mission-archive\" });\r\n        }\r\n      });\r\n    },\r\n    AddMissionHour(element) {\r\n      // //debugger\r\n      var localPerno = this.perno\r\n      var currentYear=this.year\r\n      var completeBeginDate=currentYear+'/'+element.BeginDate\r\n      var completeBEndDate=currentYear+'/'+element.BeginDate\r\n      \r\n      return this.$store\r\n        .dispatch(\"AddMissionHour\", {\r\n          data: {\r\n            BeginDate: completeBeginDate,\r\n            EndDate: completeBEndDate,\r\n            BeginTime: element.BeginTime,\r\n            EndTime: element.EndTime,\r\n            Perno: localPerno,\r\n            PageNo: element.PageNo,\r\n            Description: this.details.UserDescription,\r\n            MissionType: this.details.Type,\r\n            CityCode: this.details.City,\r\n            Place: this.details.Location,\r\n          },\r\n        })\r\n        .then((result) => {\r\n          //console.log(result);\r\n          if (result.type == ResultType.success) {\r\n            if (result.data[0].Status == \"1\") {\r\n              this.$EosToast.show({\r\n                type: EosToastType.success,\r\n                // msg: `ثبت ساعت برای تاریخ ${element.DayDate} با موفقیت انجام شد`,\r\n                msg: `ثبت ساعت برای تاریخ مورد نظر با موفقیت انجام شد`,\r\n              });\r\n              return true;\r\n            } else {\r\n              this.$EosToast.show({\r\n                type: EosToastType.error,\r\n                // msg: `ثبت ساعت برای تاریخ ${element.DayDate} با خطا مواجه شد`,\r\n                msg: `ثبت ساعت برای تاریخ مورد نظر با خطا مواجه شد`,\r\n              });\r\n              return false;\r\n            }\r\n          }\r\n          return false;\r\n        });\r\n    },\r\n  },\r\n};\r\n</script>\r\n\r\n<style>\r\n</style>","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddMissionHour.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddMissionHour.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AddMissionHour.vue?vue&type=template&id=6e26265e&\"\nimport script from \"./AddMissionHour.vue?vue&type=script&lang=js&\"\nexport * from \"./AddMissionHour.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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VDataTable } from 'vuetify/lib/components/VDataTable';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCol,VDataTable,VIcon,VRow,VSpacer})\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DialogTimePicker.vue?vue&type=style&index=0&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('date-picker',{ref:\"dialog\",staticClass:\"datepicker\",attrs:{\"type\":\"time\",\"editable\":\"\",\"format\":\"HH:mm\",\"placeholder\":\"00:00\",\"color\":\"var(--color-primary)\",\"disabled\":_vm.disabled,\"input-attrs\":{ style: { width: '100% !important' } }},model:{value:(_vm.date),callback:function ($$v) {_vm.date=$$v},expression:\"date\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n  <div>\r\n    <date-picker\r\n      class=\"datepicker\"\r\n      ref=\"dialog\"\r\n      v-model=\"date\"\r\n      type=\"time\"\r\n      editable\r\n      format=\"HH:mm\"\r\n      placeholder=\"00:00\"\r\n      color=\"var(--color-primary)\"\r\n      :disabled=\"disabled\"\r\n      :input-attrs=\"{ style: { width: '100% !important' } }\"\r\n    ></date-picker>\r\n  </div>\r\n</template>\r\n\r\n<script>\r\nimport VuePersianDatetimePicker from \"vue-persian-datetime-picker\";\r\nimport DateUtils from \"../../utils/DateUtils\";\r\n\r\nexport default {\r\n  components: {\r\n    datePicker: VuePersianDatetimePicker,\r\n  },\r\n  props: {\r\n    label: String,\r\n    initTime: String,\r\n    timeNow:Boolean,\r\n    disabled: {\r\n      type: Boolean,\r\n      default: false,\r\n    },\r\n  },\r\n  mounted() {\r\n    // //debugger\r\n    if (this.initTime) {\r\n      var aa = this.initTime\r\n      console.log ('initTime : '+aa)\r\n      \r\n      this.date = this.initTime;\r\n    } else {\r\n      let today = new Date();\r\n      const time = today.getHours() + \":\" + today.getMinutes();\r\n      this.date = time;\r\n    }\r\n  },\r\n  data: () => ({\r\n    date: \"00:00\",\r\n    modal: false,\r\n  }),\r\n  computed: {},\r\n  methods: {\r\n    dateResult() {\r\n      // //debugger\r\n      var time = DateUtils.fixTimeFormatTwoDigit(this.date);\r\n      this.$emit(\"dateResult\", time);\r\n    },\r\n  },\r\n  watch: {\r\n    date() {\r\n      this.dateResult();\r\n    },\r\n    initTime(newval) {\r\n      this.date = newval;\r\n    },\r\n  },\r\n};\r\n</script>\r\n\r\n<style>\r\n.datepicker {\r\n  color: rgb(27, 27, 27);\r\n}\r\n</style>","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DialogTimePicker.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DialogTimePicker.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DialogTimePicker.vue?vue&type=template&id=501c01ac&\"\nimport script from \"./DialogTimePicker.vue?vue&type=script&lang=js&\"\nexport * from \"./DialogTimePicker.vue?vue&type=script&lang=js&\"\nimport style0 from \"./DialogTimePicker.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"],"sourceRoot":""}