osmanli-veri-dagitim 2.0.75 → 2.0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9
9
|
|
|
10
10
|
"use strict";
|
|
11
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"ManualReport\",\n\n data() {\n return {\n years: [],\n months: [],\n tableHeaders: [{\n name: \"Dosya Adı\"\n }, {\n name: \"Dosya Boyutu\"\n }, {\n name: \"Oluşturulduğu Tarih\"\n }, {\n name: \"Dosya\"\n }],\n reportListData: [],\n formItems: {\n year: 0,\n month: 0,\n dateTime: null\n },\n stopOverClicks: false\n };\n },\n\n components: {\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseSelect\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseButton\"]\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_1__[\"mapActions\"])([\"getManuelReportExport\", \"getVdsReportExport\", \"getReportList\", \"postAlgorithmPurchaseExportExcel\"]),\n\n getCustomerReports() {\n if (this.formItems.year === 0 && this.formItems.month === 0) {\n return this.$toast.warning(\"Lütfen Ay ve Yıl Seçiniz.\");\n }\n\n this.stopOverClicks = true;\n this.getManuelReportExport(this.formItems).then(returnValue => {\n if (returnValue && !(returnValue !== null && returnValue !== void 0 && returnValue.error)) {\n this.$toast.success(\"Manuel Müşteri Raporu başarıyla oluşturuldu.\");\n } else {\n this.$toast.error(returnValue.message);\n }\n\n this.stopOverClicks = false;\n });\n },\n\n getVdsReports() {\n if (this.formItems.year === 0 && this.formItems.month === 0) {\n return this.$toast.warning(\"Lütfen Ay ve Yıl Seçiniz.\");\n }\n\n this.stopOverClicks = true;\n this.getVdsReportExport(this.formItems).then(returnValue => {\n if (returnValue && !(returnValue !== null && returnValue !== void 0 && returnValue.error)) {\n this.$toast.success(\"VDS Raporu başarıyla oluşturuldu.\");\n } else {\n this.$toast.error(returnValue.message);\n }\n\n this.stopOverClicks = false;\n });\n },\n\n getReportItems() {\n this.getReportList().then(response => {\n if (response) {\n this.reportListData = response;\n this.reportListData.forEach(item => {\n let fileSize = String(item.fileLength).slice(0, 4);\n item.fileLength = fileSize;\n });\n }\n });\n },\n\n postAlgorithmExportExcel() {\n if (this.formItems.dateTime == null) {\n this.$toast.error(\"Lütfen Tarih seçiniz.\");\n } else {\n this.stopOverClicks = true;\n let firstDate = this.getTime(this.formItems.dateTime[0]);\n let secondDate = this.getTime(this.formItems.dateTime[1]);\n let mergeTheDates = this.splitTimes(firstDate) + \"&\" + this.splitTimes(secondDate);\n let selectedFilter = {\n DatePeriod: mergeTheDates\n };\n this.postAlgorithmPurchaseExportExcel({\n filter: selectedFilter\n }).then(response => {\n if (response) {\n this.getReportItems();\n this.$toast.success(\"Rapor Başarıyla oluşturuldu.\");\n } else {\n this.$toast.error(\"Rapor oluşturulamadı.\");\n }\n\n this.stopOverClicks = false;\n });\n }\n },\n\n splitTimes(time) {\n return time.split(\"T\")[0];\n },\n\n downloadFile(filePath) {\n const createElem = document.createElement(\"a\");\n const setUrls = \"https://veridagitimapi.osmanlimenkul.com.tr/api\" + \"/\" + filePath;\n createElem.setAttribute(\"href\", setUrls);\n createElem.click();\n },\n\n getTime(dateTime, formatType) {\n let stringDateTime = dateTime.
|
|
11
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"ManualReport\",\n\n data() {\n return {\n years: [],\n months: [],\n tableHeaders: [{\n name: \"Dosya Adı\"\n }, {\n name: \"Dosya Boyutu\"\n }, {\n name: \"Oluşturulduğu Tarih\"\n }, {\n name: \"Dosya\"\n }],\n reportListData: [],\n formItems: {\n year: 0,\n month: 0,\n dateTime: null\n },\n stopOverClicks: false\n };\n },\n\n components: {\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseSelect\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseButton\"]\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_1__[\"mapActions\"])([\"getManuelReportExport\", \"getVdsReportExport\", \"getReportList\", \"postAlgorithmPurchaseExportExcel\"]),\n\n getCustomerReports() {\n if (this.formItems.year === 0 && this.formItems.month === 0) {\n return this.$toast.warning(\"Lütfen Ay ve Yıl Seçiniz.\");\n }\n\n this.stopOverClicks = true;\n this.getManuelReportExport(this.formItems).then(returnValue => {\n if (returnValue && !(returnValue !== null && returnValue !== void 0 && returnValue.error)) {\n this.$toast.success(\"Manuel Müşteri Raporu başarıyla oluşturuldu.\");\n } else {\n this.$toast.error(returnValue.message);\n }\n\n this.stopOverClicks = false;\n });\n },\n\n getVdsReports() {\n if (this.formItems.year === 0 && this.formItems.month === 0) {\n return this.$toast.warning(\"Lütfen Ay ve Yıl Seçiniz.\");\n }\n\n this.stopOverClicks = true;\n this.getVdsReportExport(this.formItems).then(returnValue => {\n if (returnValue && !(returnValue !== null && returnValue !== void 0 && returnValue.error)) {\n this.$toast.success(\"VDS Raporu başarıyla oluşturuldu.\");\n } else {\n this.$toast.error(returnValue.message);\n }\n\n this.stopOverClicks = false;\n });\n },\n\n getReportItems() {\n this.getReportList().then(response => {\n if (response) {\n this.reportListData = response;\n this.reportListData.forEach(item => {\n let fileSize = String(item.fileLength).slice(0, 4);\n item.fileLength = fileSize;\n });\n }\n });\n },\n\n postAlgorithmExportExcel() {\n if (this.formItems.dateTime == null) {\n this.$toast.error(\"Lütfen Tarih seçiniz.\");\n } else {\n console.log(this.formItems.dateTime);\n this.stopOverClicks = true;\n let firstDate = this.getTime(this.formItems.dateTime[0]);\n let secondDate = this.getTime(this.formItems.dateTime[1]);\n let mergeTheDates = this.splitTimes(firstDate) + \"&\" + this.splitTimes(secondDate);\n let selectedFilter = {\n DatePeriod: mergeTheDates\n };\n this.postAlgorithmPurchaseExportExcel({\n filter: selectedFilter\n }).then(response => {\n if (response) {\n this.getReportItems();\n this.$toast.success(\"Rapor Başarıyla oluşturuldu.\");\n } else {\n this.$toast.error(\"Rapor oluşturulamadı.\");\n }\n\n this.stopOverClicks = false;\n });\n }\n },\n\n splitTimes(time) {\n return time.split(\"T\")[0];\n },\n\n downloadFile(filePath) {\n const createElem = document.createElement(\"a\");\n const setUrls = \"https://veridagitimapi.osmanlimenkul.com.tr/api\" + \"/\" + filePath;\n createElem.setAttribute(\"href\", setUrls);\n createElem.click();\n },\n\n getTime(dateTime, formatType) {\n let stringDateTime = dateTime.toString();\n let generateMomentDate = this.$moment(new Date(stringDateTime)).format(formatType);\n return generateMomentDate;\n }\n\n },\n\n mounted() {\n const monthNames = [\"Ocak\", \"Şubat\", \"Mart\", \"Nisan\", \"Mayıs\", \"Haziran\", \"Temmuz\", \"Ağustos\", \"Eylül\", \"Ekim\", \"Kasım\", \"Aralık\"];\n const date = new Date();\n let currentYear = date.getFullYear();\n\n for (let i = 0; i < 5; i++) {\n currentYear = i === 0 ? currentYear : currentYear - 1;\n this.years.push({\n code: currentYear,\n label: currentYear\n });\n }\n\n for (let i = 0; i < 12; i++) {\n this.months.push({\n code: i + 1,\n label: monthNames[i]\n });\n }\n\n this.getReportItems();\n }\n\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/ManualReport.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
|
|
12
12
|
|
|
13
13
|
/***/ }),
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9
9
|
|
|
10
10
|
"use strict";
|
|
11
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"ManualReport\",\n\n data() {\n return {\n years: [],\n months: [],\n tableHeaders: [{\n name: \"Dosya Adı\"\n }, {\n name: \"Dosya Boyutu\"\n }, {\n name: \"Oluşturulduğu Tarih\"\n }, {\n name: \"Dosya\"\n }],\n reportListData: [],\n formItems: {\n year: 0,\n month: 0,\n dateTime: null\n },\n stopOverClicks: false\n };\n },\n\n components: {\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseSelect\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseButton\"]\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_1__[\"mapActions\"])([\"getManuelReportExport\", \"getVdsReportExport\", \"getReportList\", \"postAlgorithmPurchaseExportExcel\"]),\n\n getCustomerReports() {\n if (this.formItems.year === 0 && this.formItems.month === 0) {\n return this.$toast.warning(\"Lütfen Ay ve Yıl Seçiniz.\");\n }\n\n this.stopOverClicks = true;\n this.getManuelReportExport(this.formItems).then(returnValue => {\n if (returnValue && !(returnValue !== null && returnValue !== void 0 && returnValue.error)) {\n this.$toast.success(\"Manuel Müşteri Raporu başarıyla oluşturuldu.\");\n } else {\n this.$toast.error(returnValue.message);\n }\n\n this.stopOverClicks = false;\n });\n },\n\n getVdsReports() {\n if (this.formItems.year === 0 && this.formItems.month === 0) {\n return this.$toast.warning(\"Lütfen Ay ve Yıl Seçiniz.\");\n }\n\n this.stopOverClicks = true;\n this.getVdsReportExport(this.formItems).then(returnValue => {\n if (returnValue && !(returnValue !== null && returnValue !== void 0 && returnValue.error)) {\n this.$toast.success(\"VDS Raporu başarıyla oluşturuldu.\");\n } else {\n this.$toast.error(returnValue.message);\n }\n\n this.stopOverClicks = false;\n });\n },\n\n getReportItems() {\n this.getReportList().then(response => {\n if (response) {\n this.reportListData = response;\n this.reportListData.forEach(item => {\n let fileSize = String(item.fileLength).slice(0, 4);\n item.fileLength = fileSize;\n });\n }\n });\n },\n\n postAlgorithmExportExcel() {\n if (this.formItems.dateTime == null) {\n this.$toast.error(\"Lütfen Tarih seçiniz.\");\n } else {\n this.stopOverClicks = true;\n let firstDate = this.getTime(this.formItems.dateTime[0]);\n let secondDate = this.getTime(this.formItems.dateTime[1]);\n let mergeTheDates = this.splitTimes(firstDate) + \"&\" + this.splitTimes(secondDate);\n let selectedFilter = {\n DatePeriod: mergeTheDates\n };\n this.postAlgorithmPurchaseExportExcel({\n filter: selectedFilter\n }).then(response => {\n if (response) {\n this.getReportItems();\n this.$toast.success(\"Rapor Başarıyla oluşturuldu.\");\n } else {\n this.$toast.error(\"Rapor oluşturulamadı.\");\n }\n\n this.stopOverClicks = false;\n });\n }\n },\n\n splitTimes(time) {\n return time.split(\"T\")[0];\n },\n\n downloadFile(filePath) {\n const createElem = document.createElement(\"a\");\n const setUrls = \"https://veridagitimapi.osmanlimenkul.com.tr/api\" + \"/\" + filePath;\n createElem.setAttribute(\"href\", setUrls);\n createElem.click();\n },\n\n getTime(dateTime, formatType) {\n let stringDateTime = dateTime.
|
|
11
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"ManualReport\",\n\n data() {\n return {\n years: [],\n months: [],\n tableHeaders: [{\n name: \"Dosya Adı\"\n }, {\n name: \"Dosya Boyutu\"\n }, {\n name: \"Oluşturulduğu Tarih\"\n }, {\n name: \"Dosya\"\n }],\n reportListData: [],\n formItems: {\n year: 0,\n month: 0,\n dateTime: null\n },\n stopOverClicks: false\n };\n },\n\n components: {\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseSelect\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseButton\"]\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_1__[\"mapActions\"])([\"getManuelReportExport\", \"getVdsReportExport\", \"getReportList\", \"postAlgorithmPurchaseExportExcel\"]),\n\n getCustomerReports() {\n if (this.formItems.year === 0 && this.formItems.month === 0) {\n return this.$toast.warning(\"Lütfen Ay ve Yıl Seçiniz.\");\n }\n\n this.stopOverClicks = true;\n this.getManuelReportExport(this.formItems).then(returnValue => {\n if (returnValue && !(returnValue !== null && returnValue !== void 0 && returnValue.error)) {\n this.$toast.success(\"Manuel Müşteri Raporu başarıyla oluşturuldu.\");\n } else {\n this.$toast.error(returnValue.message);\n }\n\n this.stopOverClicks = false;\n });\n },\n\n getVdsReports() {\n if (this.formItems.year === 0 && this.formItems.month === 0) {\n return this.$toast.warning(\"Lütfen Ay ve Yıl Seçiniz.\");\n }\n\n this.stopOverClicks = true;\n this.getVdsReportExport(this.formItems).then(returnValue => {\n if (returnValue && !(returnValue !== null && returnValue !== void 0 && returnValue.error)) {\n this.$toast.success(\"VDS Raporu başarıyla oluşturuldu.\");\n } else {\n this.$toast.error(returnValue.message);\n }\n\n this.stopOverClicks = false;\n });\n },\n\n getReportItems() {\n this.getReportList().then(response => {\n if (response) {\n this.reportListData = response;\n this.reportListData.forEach(item => {\n let fileSize = String(item.fileLength).slice(0, 4);\n item.fileLength = fileSize;\n });\n }\n });\n },\n\n postAlgorithmExportExcel() {\n if (this.formItems.dateTime == null) {\n this.$toast.error(\"Lütfen Tarih seçiniz.\");\n } else {\n console.log(this.formItems.dateTime);\n this.stopOverClicks = true;\n let firstDate = this.getTime(this.formItems.dateTime[0]);\n let secondDate = this.getTime(this.formItems.dateTime[1]);\n let mergeTheDates = this.splitTimes(firstDate) + \"&\" + this.splitTimes(secondDate);\n let selectedFilter = {\n DatePeriod: mergeTheDates\n };\n this.postAlgorithmPurchaseExportExcel({\n filter: selectedFilter\n }).then(response => {\n if (response) {\n this.getReportItems();\n this.$toast.success(\"Rapor Başarıyla oluşturuldu.\");\n } else {\n this.$toast.error(\"Rapor oluşturulamadı.\");\n }\n\n this.stopOverClicks = false;\n });\n }\n },\n\n splitTimes(time) {\n return time.split(\"T\")[0];\n },\n\n downloadFile(filePath) {\n const createElem = document.createElement(\"a\");\n const setUrls = \"https://veridagitimapi.osmanlimenkul.com.tr/api\" + \"/\" + filePath;\n createElem.setAttribute(\"href\", setUrls);\n createElem.click();\n },\n\n getTime(dateTime, formatType) {\n let stringDateTime = dateTime.toString();\n let generateMomentDate = this.$moment(new Date(stringDateTime)).format(formatType);\n return generateMomentDate;\n }\n\n },\n\n mounted() {\n const monthNames = [\"Ocak\", \"Şubat\", \"Mart\", \"Nisan\", \"Mayıs\", \"Haziran\", \"Temmuz\", \"Ağustos\", \"Eylül\", \"Ekim\", \"Kasım\", \"Aralık\"];\n const date = new Date();\n let currentYear = date.getFullYear();\n\n for (let i = 0; i < 5; i++) {\n currentYear = i === 0 ? currentYear : currentYear - 1;\n this.years.push({\n code: currentYear,\n label: currentYear\n });\n }\n\n for (let i = 0; i < 12; i++) {\n this.months.push({\n code: i + 1,\n label: monthNames[i]\n });\n }\n\n this.getReportItems();\n }\n\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/ManualReport.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
|
|
12
12
|
|
|
13
13
|
/***/ }),
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9
9
|
|
|
10
10
|
"use strict";
|
|
11
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"ManualReport\",\n\n data() {\n return {\n years: [],\n months: [],\n tableHeaders: [{\n name: \"Dosya Adı\"\n }, {\n name: \"Dosya Boyutu\"\n }, {\n name: \"Oluşturulduğu Tarih\"\n }, {\n name: \"Dosya\"\n }],\n reportListData: [],\n formItems: {\n year: 0,\n month: 0,\n dateTime: null\n },\n stopOverClicks: false\n };\n },\n\n components: {\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseSelect\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseButton\"]\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_1__[\"mapActions\"])([\"getManuelReportExport\", \"getVdsReportExport\", \"getReportList\", \"postAlgorithmPurchaseExportExcel\"]),\n\n getCustomerReports() {\n if (this.formItems.year === 0 && this.formItems.month === 0) {\n return this.$toast.warning(\"Lütfen Ay ve Yıl Seçiniz.\");\n }\n\n this.stopOverClicks = true;\n this.getManuelReportExport(this.formItems).then(returnValue => {\n if (returnValue && !(returnValue !== null && returnValue !== void 0 && returnValue.error)) {\n this.$toast.success(\"Manuel Müşteri Raporu başarıyla oluşturuldu.\");\n } else {\n this.$toast.error(returnValue.message);\n }\n\n this.stopOverClicks = false;\n });\n },\n\n getVdsReports() {\n if (this.formItems.year === 0 && this.formItems.month === 0) {\n return this.$toast.warning(\"Lütfen Ay ve Yıl Seçiniz.\");\n }\n\n this.stopOverClicks = true;\n this.getVdsReportExport(this.formItems).then(returnValue => {\n if (returnValue && !(returnValue !== null && returnValue !== void 0 && returnValue.error)) {\n this.$toast.success(\"VDS Raporu başarıyla oluşturuldu.\");\n } else {\n this.$toast.error(returnValue.message);\n }\n\n this.stopOverClicks = false;\n });\n },\n\n getReportItems() {\n this.getReportList().then(response => {\n if (response) {\n this.reportListData = response;\n this.reportListData.forEach(item => {\n let fileSize = String(item.fileLength).slice(0, 4);\n item.fileLength = fileSize;\n });\n }\n });\n },\n\n postAlgorithmExportExcel() {\n if (this.formItems.dateTime == null) {\n this.$toast.error(\"Lütfen Tarih seçiniz.\");\n } else {\n this.stopOverClicks = true;\n let firstDate = this.getTime(this.formItems.dateTime[0]);\n let secondDate = this.getTime(this.formItems.dateTime[1]);\n let mergeTheDates = this.splitTimes(firstDate) + \"&\" + this.splitTimes(secondDate);\n let selectedFilter = {\n DatePeriod: mergeTheDates\n };\n this.postAlgorithmPurchaseExportExcel({\n filter: selectedFilter\n }).then(response => {\n if (response) {\n this.getReportItems();\n this.$toast.success(\"Rapor Başarıyla oluşturuldu.\");\n } else {\n this.$toast.error(\"Rapor oluşturulamadı.\");\n }\n\n this.stopOverClicks = false;\n });\n }\n },\n\n splitTimes(time) {\n return time.split(\"T\")[0];\n },\n\n downloadFile(filePath) {\n const createElem = document.createElement(\"a\");\n const setUrls = \"https://veridagitimapi.osmanlimenkul.com.tr/api\" + \"/\" + filePath;\n createElem.setAttribute(\"href\", setUrls);\n createElem.click();\n },\n\n getTime(dateTime, formatType) {\n let stringDateTime = dateTime.
|
|
11
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"ManualReport\",\n\n data() {\n return {\n years: [],\n months: [],\n tableHeaders: [{\n name: \"Dosya Adı\"\n }, {\n name: \"Dosya Boyutu\"\n }, {\n name: \"Oluşturulduğu Tarih\"\n }, {\n name: \"Dosya\"\n }],\n reportListData: [],\n formItems: {\n year: 0,\n month: 0,\n dateTime: null\n },\n stopOverClicks: false\n };\n },\n\n components: {\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseSelect\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseButton\"]\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_1__[\"mapActions\"])([\"getManuelReportExport\", \"getVdsReportExport\", \"getReportList\", \"postAlgorithmPurchaseExportExcel\"]),\n\n getCustomerReports() {\n if (this.formItems.year === 0 && this.formItems.month === 0) {\n return this.$toast.warning(\"Lütfen Ay ve Yıl Seçiniz.\");\n }\n\n this.stopOverClicks = true;\n this.getManuelReportExport(this.formItems).then(returnValue => {\n if (returnValue && !(returnValue !== null && returnValue !== void 0 && returnValue.error)) {\n this.$toast.success(\"Manuel Müşteri Raporu başarıyla oluşturuldu.\");\n } else {\n this.$toast.error(returnValue.message);\n }\n\n this.stopOverClicks = false;\n });\n },\n\n getVdsReports() {\n if (this.formItems.year === 0 && this.formItems.month === 0) {\n return this.$toast.warning(\"Lütfen Ay ve Yıl Seçiniz.\");\n }\n\n this.stopOverClicks = true;\n this.getVdsReportExport(this.formItems).then(returnValue => {\n if (returnValue && !(returnValue !== null && returnValue !== void 0 && returnValue.error)) {\n this.$toast.success(\"VDS Raporu başarıyla oluşturuldu.\");\n } else {\n this.$toast.error(returnValue.message);\n }\n\n this.stopOverClicks = false;\n });\n },\n\n getReportItems() {\n this.getReportList().then(response => {\n if (response) {\n this.reportListData = response;\n this.reportListData.forEach(item => {\n let fileSize = String(item.fileLength).slice(0, 4);\n item.fileLength = fileSize;\n });\n }\n });\n },\n\n postAlgorithmExportExcel() {\n if (this.formItems.dateTime == null) {\n this.$toast.error(\"Lütfen Tarih seçiniz.\");\n } else {\n console.log(this.formItems.dateTime);\n this.stopOverClicks = true;\n let firstDate = this.getTime(this.formItems.dateTime[0]);\n let secondDate = this.getTime(this.formItems.dateTime[1]);\n let mergeTheDates = this.splitTimes(firstDate) + \"&\" + this.splitTimes(secondDate);\n let selectedFilter = {\n DatePeriod: mergeTheDates\n };\n this.postAlgorithmPurchaseExportExcel({\n filter: selectedFilter\n }).then(response => {\n if (response) {\n this.getReportItems();\n this.$toast.success(\"Rapor Başarıyla oluşturuldu.\");\n } else {\n this.$toast.error(\"Rapor oluşturulamadı.\");\n }\n\n this.stopOverClicks = false;\n });\n }\n },\n\n splitTimes(time) {\n return time.split(\"T\")[0];\n },\n\n downloadFile(filePath) {\n const createElem = document.createElement(\"a\");\n const setUrls = \"https://veridagitimapi.osmanlimenkul.com.tr/api\" + \"/\" + filePath;\n createElem.setAttribute(\"href\", setUrls);\n createElem.click();\n },\n\n getTime(dateTime, formatType) {\n let stringDateTime = dateTime.toString();\n let generateMomentDate = this.$moment(new Date(stringDateTime)).format(formatType);\n return generateMomentDate;\n }\n\n },\n\n mounted() {\n const monthNames = [\"Ocak\", \"Şubat\", \"Mart\", \"Nisan\", \"Mayıs\", \"Haziran\", \"Temmuz\", \"Ağustos\", \"Eylül\", \"Ekim\", \"Kasım\", \"Aralık\"];\n const date = new Date();\n let currentYear = date.getFullYear();\n\n for (let i = 0; i < 5; i++) {\n currentYear = i === 0 ? currentYear : currentYear - 1;\n this.years.push({\n code: currentYear,\n label: currentYear\n });\n }\n\n for (let i = 0; i < 12; i++) {\n this.months.push({\n code: i + 1,\n label: monthNames[i]\n });\n }\n\n this.getReportItems();\n }\n\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/ManualReport.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
|
|
12
12
|
|
|
13
13
|
/***/ }),
|
|
14
14
|
|