osmanli-veri-dagitim 2.1.69-dev → 2.1.70-dev

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.
@@ -1714,7 +1714,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
1714
1714
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1715
1715
 
1716
1716
  "use strict";
1717
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"InvoiceFilter\",\n components: {\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseSelect\"]\n },\n props: {\n currentYearNumber: String,\n currentMonthNumber: String\n },\n\n data() {\n return {\n ApplicationTypes: [],\n selectedYear: -1,\n selectedMonth: -1,\n customerId: null\n };\n },\n\n mounted() {\n this.customerId = this.$route.params.customerId;\n this.getFilter();\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getFilterList\", \"getInvoiceFilter\", \"getUserInfo\"]),\n\n getUserType() {\n const REPRESENTATIVE_CODE = 3;\n const userType = this.getUserInfo.memberType;\n return userType && userType === REPRESENTATIVE_CODE;\n },\n\n availableYears() {\n const currentYear = new Date().getFullYear();\n const previousYear = currentYear - 1;\n const nextYear = currentYear + 1;\n var currentMonth = this.selectedMonth;\n\n if (currentMonth >= 0 && currentMonth <= 9) {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 0,\n label: previousYear\n }, {\n code: 1,\n label: currentYear\n }];\n } else if (currentMonth >= 10 && currentMonth <= 12) {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 1,\n label: currentYear\n }, {\n code: 2,\n label: nextYear\n }];\n } else {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 0,\n label: previousYear\n }, {\n code: 1,\n label: currentYear\n }];\n }\n },\n\n availableMonths() {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 1,\n label: \"Ocak\"\n }, {\n code: 2,\n label: \"Şubat\"\n }, {\n code: 3,\n label: \"Mart\"\n }, {\n code: 4,\n label: \"Nisan\"\n }, {\n code: 5,\n label: \"Mayıs\"\n }, {\n code: 6,\n label: \"Haziran\"\n }, {\n code: 7,\n label: \"Temmuz\"\n }, {\n code: 8,\n label: \"Ağustos\"\n }, {\n code: 9,\n label: \"Eylül\"\n }, {\n code: 10,\n label: \"Ekim\"\n }, {\n code: 11,\n label: \"Kasım\"\n }, {\n code: 12,\n label: \"Aralık\"\n }];\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"fillFilter\", \"getInvoiceList\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setInvoiceFilter\"]),\n\n getFilter() {\n this.fillFilter().then(res => {\n if (res.data) {\n const ApplicationTypesList = this.getFilterList.filter(o => o.name === \"ApplicationTypes\");\n if (ApplicationTypesList.length > 0) this.ApplicationTypes = ApplicationTypesList[0].values;\n }\n });\n },\n\n changeInvoiceYear(value) {\n this.$emit(\"filterChangeResponse\", false);\n this.selectedYear = value;\n\n if (value) {\n if (value.code == -1 && (this.selectedMonth != -1 || this.selectedMonth.code == -1)) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Month: this.selectedMonth\n }\n });\n } else if ((this.selectedMonth == -1 || this.selectedMonth.code == -1) && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: parseInt(this.selectedYear.label)\n }\n });\n } else if ((this.selectedMonth == -1 || this.selectedMonth.code == -1) && value.code == -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {}\n });\n } else if ((this.selectedMonth != -1 || this.selectedMonth.code != -1) && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear.label ? this.selectedYear.label : this.currentYearNumber,\n Month: this.selectedMonth\n }\n });\n }\n } else {\n delete this.getInvoiceFilter.filter.Year;\n delete this.getInvoiceFilter.filter.Month;\n this.setInvoiceFilter({\n filter: this.getInvoiceFilter\n });\n }\n\n this.getInvoiceList(this.customerId).then(() => {\n this.$emit(\"filterChangeResponse\", true);\n });\n },\n\n changeInvoiceMonth(value) {\n this.$emit(\"filterChangeResponse\", false);\n this.selectedMonth = value.code;\n\n if (value) {\n if (value.code == -1 && (this.selectedYear != -1 || this.selectedYear.code != -1)) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear.label ? this.selectedYear.label : this.currentYearNumber\n }\n });\n } else if ((this.selectedYear == -1 || this.selectedYear.code == -1) && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Month: this.selectedMonth\n }\n });\n } else if ((this.selectedYear == -1 || this.selectedYear.code == -1) && value.code == -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {}\n });\n } else if (this.selectedYear != -1 | this.selectedYear.code != -1 && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear.label ? this.selectedYear.label : this.currentYearNumber,\n Month: this.selectedMonth\n }\n });\n }\n } else {\n delete this.getInvoiceFilter.filter.Year;\n delete this.getInvoiceFilter.filter.Month;\n this.setInvoiceFilter({\n filter: this.getInvoiceFilter\n });\n }\n\n this.getInvoiceList(this.customerId).then(() => {\n this.$emit(\"filterChangeResponse\", true);\n });\n },\n\n changeApplicationTypes(value) {\n this.$emit(\"filterChangeResponse\", false);\n\n if (value) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear,\n Month: this.selectedMonth,\n ApplicationTypes: value === null || value === void 0 ? void 0 : value.code.toString()\n }\n });\n } else {\n delete this.getInvoiceFilter.filter.ApplicationTypes;\n this.setInvoiceFilter(this.getInvoiceFilter);\n }\n\n this.getInvoiceList(this.customerId).then(() => {\n this.$emit(\"filterChangeResponse\", true);\n });\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/InvoiceFilter.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");
1717
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"InvoiceFilter\",\n components: {\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseSelect\"]\n },\n props: {\n currentYearNumber: String,\n currentMonthNumber: String\n },\n\n data() {\n return {\n ApplicationTypes: [],\n selectedYear: -1,\n selectedMonth: -1,\n customerId: null\n };\n },\n\n mounted() {\n this.customerId = this.$route.params.customerId;\n this.getFilter();\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getFilterList\", \"getInvoiceFilter\", \"getUserInfo\"]),\n\n getUserType() {\n const REPRESENTATIVE_CODE = 3;\n const userType = this.getUserInfo.memberType;\n return userType && userType === REPRESENTATIVE_CODE;\n },\n\n availableYears() {\n const currentYear = new Date().getFullYear();\n const previousYear = currentYear - 1;\n const nextYear = currentYear + 1;\n var currentMonth = this.selectedMonth;\n\n if (currentMonth >= 0 && currentMonth <= 9) {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 0,\n label: previousYear\n }, {\n code: 1,\n label: currentYear\n }];\n } else if (currentMonth >= 10 && currentMonth <= 12) {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 1,\n label: currentYear\n }, {\n code: 2,\n label: nextYear\n }];\n } else {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 0,\n label: previousYear\n }, {\n code: 1,\n label: currentYear\n }];\n }\n },\n\n availableMonths() {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 1,\n label: \"Ocak\"\n }, {\n code: 2,\n label: \"Şubat\"\n }, {\n code: 3,\n label: \"Mart\"\n }, {\n code: 4,\n label: \"Nisan\"\n }, {\n code: 5,\n label: \"Mayıs\"\n }, {\n code: 6,\n label: \"Haziran\"\n }, {\n code: 7,\n label: \"Temmuz\"\n }, {\n code: 8,\n label: \"Ağustos\"\n }, {\n code: 9,\n label: \"Eylül\"\n }, {\n code: 10,\n label: \"Ekim\"\n }, {\n code: 11,\n label: \"Kasım\"\n }, {\n code: 12,\n label: \"Aralık\"\n }];\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"fillFilter\", \"getInvoiceList\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setInvoiceFilter\"]),\n\n getFilter() {\n this.fillFilter().then(res => {\n if (res.data) {\n const ApplicationTypesList = this.getFilterList.filter(o => o.name === \"ApplicationTypes\");\n if (ApplicationTypesList.length > 0) this.ApplicationTypes = ApplicationTypesList[0].values;\n }\n });\n },\n\n changeInvoiceYear(value) {\n this.$emit(\"filterChangeResponse\", false);\n this.selectedYear = value;\n\n if (value) {\n if (value.code == -1 && (this.selectedMonth != -1 || this.selectedMonth.code == -1)) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Month: this.selectedMonth\n }\n });\n } else if ((this.selectedMonth == -1 || this.selectedMonth.code == -1) && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: parseInt(this.selectedYear.label)\n }\n });\n } else if ((this.selectedMonth == -1 || this.selectedMonth.code == -1) && value.code == -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {}\n });\n } else if ((this.selectedMonth != -1 || this.selectedMonth.code != -1) && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear.label ? this.selectedYear.label : this.currentYearNumber,\n Month: this.selectedMonth\n }\n });\n }\n } else {\n delete this.getInvoiceFilter.filter.Year;\n delete this.getInvoiceFilter.filter.Month;\n this.setInvoiceFilter({\n filter: this.getInvoiceFilter\n });\n }\n\n this.getInvoiceList(this.customerId).then(() => {\n this.$emit(\"filterChangeResponse\", true);\n });\n },\n\n changeInvoiceMonth(value) {\n this.$emit(\"filterChangeResponse\", false);\n this.selectedMonth = value.code;\n\n if (value) {\n if (value.code == -1 && (this.selectedYear != -1 || this.selectedYear.code != -1)) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear.label ? this.selectedYear.label : this.currentYearNumber\n }\n });\n } else if ((this.selectedYear == -1 || this.selectedYear.code == -1) && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Month: this.selectedMonth\n }\n });\n } else if ((this.selectedYear == -1 || this.selectedYear.code == -1) && value.code == -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {}\n });\n } else if (this.selectedYear != -1 || this.selectedYear.code != -1 && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear.label ? this.selectedYear.label : this.currentYearNumber,\n Month: this.selectedMonth\n }\n });\n }\n } else {\n delete this.getInvoiceFilter.filter.Year;\n delete this.getInvoiceFilter.filter.Month;\n this.setInvoiceFilter({\n filter: this.getInvoiceFilter\n });\n }\n\n this.getInvoiceList(this.customerId).then(() => {\n this.$emit(\"filterChangeResponse\", true);\n });\n },\n\n changeApplicationTypes(value) {\n this.$emit(\"filterChangeResponse\", false);\n\n if (value) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear,\n Month: this.selectedMonth,\n ApplicationTypes: value === null || value === void 0 ? void 0 : value.code.toString()\n }\n });\n } else {\n delete this.getInvoiceFilter.filter.ApplicationTypes;\n this.setInvoiceFilter(this.getInvoiceFilter);\n }\n\n this.getInvoiceList(this.customerId).then(() => {\n this.$emit(\"filterChangeResponse\", true);\n });\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/InvoiceFilter.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");
1718
1718
 
1719
1719
  /***/ }),
1720
1720
 
@@ -1723,7 +1723,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
1723
1723
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1724
1724
 
1725
1725
  "use strict";
1726
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"InvoiceFilter\",\n components: {\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseSelect\"]\n },\n props: {\n currentYearNumber: String,\n currentMonthNumber: String\n },\n\n data() {\n return {\n ApplicationTypes: [],\n selectedYear: -1,\n selectedMonth: -1,\n customerId: null\n };\n },\n\n mounted() {\n this.customerId = this.$route.params.customerId;\n this.getFilter();\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getFilterList\", \"getInvoiceFilter\", \"getUserInfo\"]),\n\n getUserType() {\n const REPRESENTATIVE_CODE = 3;\n const userType = this.getUserInfo.memberType;\n return userType && userType === REPRESENTATIVE_CODE;\n },\n\n availableYears() {\n const currentYear = new Date().getFullYear();\n const previousYear = currentYear - 1;\n const nextYear = currentYear + 1;\n var currentMonth = this.selectedMonth;\n\n if (currentMonth >= 0 && currentMonth <= 9) {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 0,\n label: previousYear\n }, {\n code: 1,\n label: currentYear\n }];\n } else if (currentMonth >= 10 && currentMonth <= 12) {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 1,\n label: currentYear\n }, {\n code: 2,\n label: nextYear\n }];\n } else {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 0,\n label: previousYear\n }, {\n code: 1,\n label: currentYear\n }];\n }\n },\n\n availableMonths() {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 1,\n label: \"Ocak\"\n }, {\n code: 2,\n label: \"Şubat\"\n }, {\n code: 3,\n label: \"Mart\"\n }, {\n code: 4,\n label: \"Nisan\"\n }, {\n code: 5,\n label: \"Mayıs\"\n }, {\n code: 6,\n label: \"Haziran\"\n }, {\n code: 7,\n label: \"Temmuz\"\n }, {\n code: 8,\n label: \"Ağustos\"\n }, {\n code: 9,\n label: \"Eylül\"\n }, {\n code: 10,\n label: \"Ekim\"\n }, {\n code: 11,\n label: \"Kasım\"\n }, {\n code: 12,\n label: \"Aralık\"\n }];\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"fillFilter\", \"getInvoiceList\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setInvoiceFilter\"]),\n\n getFilter() {\n this.fillFilter().then(res => {\n if (res.data) {\n const ApplicationTypesList = this.getFilterList.filter(o => o.name === \"ApplicationTypes\");\n if (ApplicationTypesList.length > 0) this.ApplicationTypes = ApplicationTypesList[0].values;\n }\n });\n },\n\n changeInvoiceYear(value) {\n this.$emit(\"filterChangeResponse\", false);\n this.selectedYear = value;\n\n if (value) {\n if (value.code == -1 && (this.selectedMonth != -1 || this.selectedMonth.code == -1)) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Month: this.selectedMonth\n }\n });\n } else if ((this.selectedMonth == -1 || this.selectedMonth.code == -1) && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: parseInt(this.selectedYear.label)\n }\n });\n } else if ((this.selectedMonth == -1 || this.selectedMonth.code == -1) && value.code == -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {}\n });\n } else if ((this.selectedMonth != -1 || this.selectedMonth.code != -1) && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear.label ? this.selectedYear.label : this.currentYearNumber,\n Month: this.selectedMonth\n }\n });\n }\n } else {\n delete this.getInvoiceFilter.filter.Year;\n delete this.getInvoiceFilter.filter.Month;\n this.setInvoiceFilter({\n filter: this.getInvoiceFilter\n });\n }\n\n this.getInvoiceList(this.customerId).then(() => {\n this.$emit(\"filterChangeResponse\", true);\n });\n },\n\n changeInvoiceMonth(value) {\n this.$emit(\"filterChangeResponse\", false);\n this.selectedMonth = value.code;\n\n if (value) {\n if (value.code == -1 && (this.selectedYear != -1 || this.selectedYear.code != -1)) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear.label ? this.selectedYear.label : this.currentYearNumber\n }\n });\n } else if ((this.selectedYear == -1 || this.selectedYear.code == -1) && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Month: this.selectedMonth\n }\n });\n } else if ((this.selectedYear == -1 || this.selectedYear.code == -1) && value.code == -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {}\n });\n } else if (this.selectedYear != -1 | this.selectedYear.code != -1 && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear.label ? this.selectedYear.label : this.currentYearNumber,\n Month: this.selectedMonth\n }\n });\n }\n } else {\n delete this.getInvoiceFilter.filter.Year;\n delete this.getInvoiceFilter.filter.Month;\n this.setInvoiceFilter({\n filter: this.getInvoiceFilter\n });\n }\n\n this.getInvoiceList(this.customerId).then(() => {\n this.$emit(\"filterChangeResponse\", true);\n });\n },\n\n changeApplicationTypes(value) {\n this.$emit(\"filterChangeResponse\", false);\n\n if (value) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear,\n Month: this.selectedMonth,\n ApplicationTypes: value === null || value === void 0 ? void 0 : value.code.toString()\n }\n });\n } else {\n delete this.getInvoiceFilter.filter.ApplicationTypes;\n this.setInvoiceFilter(this.getInvoiceFilter);\n }\n\n this.getInvoiceList(this.customerId).then(() => {\n this.$emit(\"filterChangeResponse\", true);\n });\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/InvoiceFilter.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");
1726
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"InvoiceFilter\",\n components: {\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseSelect\"]\n },\n props: {\n currentYearNumber: String,\n currentMonthNumber: String\n },\n\n data() {\n return {\n ApplicationTypes: [],\n selectedYear: -1,\n selectedMonth: -1,\n customerId: null\n };\n },\n\n mounted() {\n this.customerId = this.$route.params.customerId;\n this.getFilter();\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getFilterList\", \"getInvoiceFilter\", \"getUserInfo\"]),\n\n getUserType() {\n const REPRESENTATIVE_CODE = 3;\n const userType = this.getUserInfo.memberType;\n return userType && userType === REPRESENTATIVE_CODE;\n },\n\n availableYears() {\n const currentYear = new Date().getFullYear();\n const previousYear = currentYear - 1;\n const nextYear = currentYear + 1;\n var currentMonth = this.selectedMonth;\n\n if (currentMonth >= 0 && currentMonth <= 9) {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 0,\n label: previousYear\n }, {\n code: 1,\n label: currentYear\n }];\n } else if (currentMonth >= 10 && currentMonth <= 12) {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 1,\n label: currentYear\n }, {\n code: 2,\n label: nextYear\n }];\n } else {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 0,\n label: previousYear\n }, {\n code: 1,\n label: currentYear\n }];\n }\n },\n\n availableMonths() {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 1,\n label: \"Ocak\"\n }, {\n code: 2,\n label: \"Şubat\"\n }, {\n code: 3,\n label: \"Mart\"\n }, {\n code: 4,\n label: \"Nisan\"\n }, {\n code: 5,\n label: \"Mayıs\"\n }, {\n code: 6,\n label: \"Haziran\"\n }, {\n code: 7,\n label: \"Temmuz\"\n }, {\n code: 8,\n label: \"Ağustos\"\n }, {\n code: 9,\n label: \"Eylül\"\n }, {\n code: 10,\n label: \"Ekim\"\n }, {\n code: 11,\n label: \"Kasım\"\n }, {\n code: 12,\n label: \"Aralık\"\n }];\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"fillFilter\", \"getInvoiceList\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setInvoiceFilter\"]),\n\n getFilter() {\n this.fillFilter().then(res => {\n if (res.data) {\n const ApplicationTypesList = this.getFilterList.filter(o => o.name === \"ApplicationTypes\");\n if (ApplicationTypesList.length > 0) this.ApplicationTypes = ApplicationTypesList[0].values;\n }\n });\n },\n\n changeInvoiceYear(value) {\n this.$emit(\"filterChangeResponse\", false);\n this.selectedYear = value;\n\n if (value) {\n if (value.code == -1 && (this.selectedMonth != -1 || this.selectedMonth.code == -1)) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Month: this.selectedMonth\n }\n });\n } else if ((this.selectedMonth == -1 || this.selectedMonth.code == -1) && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: parseInt(this.selectedYear.label)\n }\n });\n } else if ((this.selectedMonth == -1 || this.selectedMonth.code == -1) && value.code == -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {}\n });\n } else if ((this.selectedMonth != -1 || this.selectedMonth.code != -1) && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear.label ? this.selectedYear.label : this.currentYearNumber,\n Month: this.selectedMonth\n }\n });\n }\n } else {\n delete this.getInvoiceFilter.filter.Year;\n delete this.getInvoiceFilter.filter.Month;\n this.setInvoiceFilter({\n filter: this.getInvoiceFilter\n });\n }\n\n this.getInvoiceList(this.customerId).then(() => {\n this.$emit(\"filterChangeResponse\", true);\n });\n },\n\n changeInvoiceMonth(value) {\n this.$emit(\"filterChangeResponse\", false);\n this.selectedMonth = value.code;\n\n if (value) {\n if (value.code == -1 && (this.selectedYear != -1 || this.selectedYear.code != -1)) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear.label ? this.selectedYear.label : this.currentYearNumber\n }\n });\n } else if ((this.selectedYear == -1 || this.selectedYear.code == -1) && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Month: this.selectedMonth\n }\n });\n } else if ((this.selectedYear == -1 || this.selectedYear.code == -1) && value.code == -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {}\n });\n } else if (this.selectedYear != -1 || this.selectedYear.code != -1 && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear.label ? this.selectedYear.label : this.currentYearNumber,\n Month: this.selectedMonth\n }\n });\n }\n } else {\n delete this.getInvoiceFilter.filter.Year;\n delete this.getInvoiceFilter.filter.Month;\n this.setInvoiceFilter({\n filter: this.getInvoiceFilter\n });\n }\n\n this.getInvoiceList(this.customerId).then(() => {\n this.$emit(\"filterChangeResponse\", true);\n });\n },\n\n changeApplicationTypes(value) {\n this.$emit(\"filterChangeResponse\", false);\n\n if (value) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear,\n Month: this.selectedMonth,\n ApplicationTypes: value === null || value === void 0 ? void 0 : value.code.toString()\n }\n });\n } else {\n delete this.getInvoiceFilter.filter.ApplicationTypes;\n this.setInvoiceFilter(this.getInvoiceFilter);\n }\n\n this.getInvoiceList(this.customerId).then(() => {\n this.$emit(\"filterChangeResponse\", true);\n });\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/InvoiceFilter.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");
1727
1727
 
1728
1728
  /***/ }),
1729
1729
 
@@ -1723,7 +1723,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
1723
1723
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1724
1724
 
1725
1725
  "use strict";
1726
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"InvoiceFilter\",\n components: {\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseSelect\"]\n },\n props: {\n currentYearNumber: String,\n currentMonthNumber: String\n },\n\n data() {\n return {\n ApplicationTypes: [],\n selectedYear: -1,\n selectedMonth: -1,\n customerId: null\n };\n },\n\n mounted() {\n this.customerId = this.$route.params.customerId;\n this.getFilter();\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getFilterList\", \"getInvoiceFilter\", \"getUserInfo\"]),\n\n getUserType() {\n const REPRESENTATIVE_CODE = 3;\n const userType = this.getUserInfo.memberType;\n return userType && userType === REPRESENTATIVE_CODE;\n },\n\n availableYears() {\n const currentYear = new Date().getFullYear();\n const previousYear = currentYear - 1;\n const nextYear = currentYear + 1;\n var currentMonth = this.selectedMonth;\n\n if (currentMonth >= 0 && currentMonth <= 9) {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 0,\n label: previousYear\n }, {\n code: 1,\n label: currentYear\n }];\n } else if (currentMonth >= 10 && currentMonth <= 12) {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 1,\n label: currentYear\n }, {\n code: 2,\n label: nextYear\n }];\n } else {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 0,\n label: previousYear\n }, {\n code: 1,\n label: currentYear\n }];\n }\n },\n\n availableMonths() {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 1,\n label: \"Ocak\"\n }, {\n code: 2,\n label: \"Şubat\"\n }, {\n code: 3,\n label: \"Mart\"\n }, {\n code: 4,\n label: \"Nisan\"\n }, {\n code: 5,\n label: \"Mayıs\"\n }, {\n code: 6,\n label: \"Haziran\"\n }, {\n code: 7,\n label: \"Temmuz\"\n }, {\n code: 8,\n label: \"Ağustos\"\n }, {\n code: 9,\n label: \"Eylül\"\n }, {\n code: 10,\n label: \"Ekim\"\n }, {\n code: 11,\n label: \"Kasım\"\n }, {\n code: 12,\n label: \"Aralık\"\n }];\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"fillFilter\", \"getInvoiceList\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setInvoiceFilter\"]),\n\n getFilter() {\n this.fillFilter().then(res => {\n if (res.data) {\n const ApplicationTypesList = this.getFilterList.filter(o => o.name === \"ApplicationTypes\");\n if (ApplicationTypesList.length > 0) this.ApplicationTypes = ApplicationTypesList[0].values;\n }\n });\n },\n\n changeInvoiceYear(value) {\n this.$emit(\"filterChangeResponse\", false);\n this.selectedYear = value;\n\n if (value) {\n if (value.code == -1 && (this.selectedMonth != -1 || this.selectedMonth.code == -1)) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Month: this.selectedMonth\n }\n });\n } else if ((this.selectedMonth == -1 || this.selectedMonth.code == -1) && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: parseInt(this.selectedYear.label)\n }\n });\n } else if ((this.selectedMonth == -1 || this.selectedMonth.code == -1) && value.code == -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {}\n });\n } else if ((this.selectedMonth != -1 || this.selectedMonth.code != -1) && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear.label ? this.selectedYear.label : this.currentYearNumber,\n Month: this.selectedMonth\n }\n });\n }\n } else {\n delete this.getInvoiceFilter.filter.Year;\n delete this.getInvoiceFilter.filter.Month;\n this.setInvoiceFilter({\n filter: this.getInvoiceFilter\n });\n }\n\n this.getInvoiceList(this.customerId).then(() => {\n this.$emit(\"filterChangeResponse\", true);\n });\n },\n\n changeInvoiceMonth(value) {\n this.$emit(\"filterChangeResponse\", false);\n this.selectedMonth = value.code;\n\n if (value) {\n if (value.code == -1 && (this.selectedYear != -1 || this.selectedYear.code != -1)) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear.label ? this.selectedYear.label : this.currentYearNumber\n }\n });\n } else if ((this.selectedYear == -1 || this.selectedYear.code == -1) && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Month: this.selectedMonth\n }\n });\n } else if ((this.selectedYear == -1 || this.selectedYear.code == -1) && value.code == -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {}\n });\n } else if (this.selectedYear != -1 | this.selectedYear.code != -1 && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear.label ? this.selectedYear.label : this.currentYearNumber,\n Month: this.selectedMonth\n }\n });\n }\n } else {\n delete this.getInvoiceFilter.filter.Year;\n delete this.getInvoiceFilter.filter.Month;\n this.setInvoiceFilter({\n filter: this.getInvoiceFilter\n });\n }\n\n this.getInvoiceList(this.customerId).then(() => {\n this.$emit(\"filterChangeResponse\", true);\n });\n },\n\n changeApplicationTypes(value) {\n this.$emit(\"filterChangeResponse\", false);\n\n if (value) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear,\n Month: this.selectedMonth,\n ApplicationTypes: value === null || value === void 0 ? void 0 : value.code.toString()\n }\n });\n } else {\n delete this.getInvoiceFilter.filter.ApplicationTypes;\n this.setInvoiceFilter(this.getInvoiceFilter);\n }\n\n this.getInvoiceList(this.customerId).then(() => {\n this.$emit(\"filterChangeResponse\", true);\n });\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/InvoiceFilter.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");
1726
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"InvoiceFilter\",\n components: {\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseSelect\"]\n },\n props: {\n currentYearNumber: String,\n currentMonthNumber: String\n },\n\n data() {\n return {\n ApplicationTypes: [],\n selectedYear: -1,\n selectedMonth: -1,\n customerId: null\n };\n },\n\n mounted() {\n this.customerId = this.$route.params.customerId;\n this.getFilter();\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getFilterList\", \"getInvoiceFilter\", \"getUserInfo\"]),\n\n getUserType() {\n const REPRESENTATIVE_CODE = 3;\n const userType = this.getUserInfo.memberType;\n return userType && userType === REPRESENTATIVE_CODE;\n },\n\n availableYears() {\n const currentYear = new Date().getFullYear();\n const previousYear = currentYear - 1;\n const nextYear = currentYear + 1;\n var currentMonth = this.selectedMonth;\n\n if (currentMonth >= 0 && currentMonth <= 9) {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 0,\n label: previousYear\n }, {\n code: 1,\n label: currentYear\n }];\n } else if (currentMonth >= 10 && currentMonth <= 12) {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 1,\n label: currentYear\n }, {\n code: 2,\n label: nextYear\n }];\n } else {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 0,\n label: previousYear\n }, {\n code: 1,\n label: currentYear\n }];\n }\n },\n\n availableMonths() {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 1,\n label: \"Ocak\"\n }, {\n code: 2,\n label: \"Şubat\"\n }, {\n code: 3,\n label: \"Mart\"\n }, {\n code: 4,\n label: \"Nisan\"\n }, {\n code: 5,\n label: \"Mayıs\"\n }, {\n code: 6,\n label: \"Haziran\"\n }, {\n code: 7,\n label: \"Temmuz\"\n }, {\n code: 8,\n label: \"Ağustos\"\n }, {\n code: 9,\n label: \"Eylül\"\n }, {\n code: 10,\n label: \"Ekim\"\n }, {\n code: 11,\n label: \"Kasım\"\n }, {\n code: 12,\n label: \"Aralık\"\n }];\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"fillFilter\", \"getInvoiceList\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setInvoiceFilter\"]),\n\n getFilter() {\n this.fillFilter().then(res => {\n if (res.data) {\n const ApplicationTypesList = this.getFilterList.filter(o => o.name === \"ApplicationTypes\");\n if (ApplicationTypesList.length > 0) this.ApplicationTypes = ApplicationTypesList[0].values;\n }\n });\n },\n\n changeInvoiceYear(value) {\n this.$emit(\"filterChangeResponse\", false);\n this.selectedYear = value;\n\n if (value) {\n if (value.code == -1 && (this.selectedMonth != -1 || this.selectedMonth.code == -1)) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Month: this.selectedMonth\n }\n });\n } else if ((this.selectedMonth == -1 || this.selectedMonth.code == -1) && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: parseInt(this.selectedYear.label)\n }\n });\n } else if ((this.selectedMonth == -1 || this.selectedMonth.code == -1) && value.code == -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {}\n });\n } else if ((this.selectedMonth != -1 || this.selectedMonth.code != -1) && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear.label ? this.selectedYear.label : this.currentYearNumber,\n Month: this.selectedMonth\n }\n });\n }\n } else {\n delete this.getInvoiceFilter.filter.Year;\n delete this.getInvoiceFilter.filter.Month;\n this.setInvoiceFilter({\n filter: this.getInvoiceFilter\n });\n }\n\n this.getInvoiceList(this.customerId).then(() => {\n this.$emit(\"filterChangeResponse\", true);\n });\n },\n\n changeInvoiceMonth(value) {\n this.$emit(\"filterChangeResponse\", false);\n this.selectedMonth = value.code;\n\n if (value) {\n if (value.code == -1 && (this.selectedYear != -1 || this.selectedYear.code != -1)) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear.label ? this.selectedYear.label : this.currentYearNumber\n }\n });\n } else if ((this.selectedYear == -1 || this.selectedYear.code == -1) && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Month: this.selectedMonth\n }\n });\n } else if ((this.selectedYear == -1 || this.selectedYear.code == -1) && value.code == -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {}\n });\n } else if (this.selectedYear != -1 || this.selectedYear.code != -1 && value.code != -1) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear.label ? this.selectedYear.label : this.currentYearNumber,\n Month: this.selectedMonth\n }\n });\n }\n } else {\n delete this.getInvoiceFilter.filter.Year;\n delete this.getInvoiceFilter.filter.Month;\n this.setInvoiceFilter({\n filter: this.getInvoiceFilter\n });\n }\n\n this.getInvoiceList(this.customerId).then(() => {\n this.$emit(\"filterChangeResponse\", true);\n });\n },\n\n changeApplicationTypes(value) {\n this.$emit(\"filterChangeResponse\", false);\n\n if (value) {\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {\n Year: this.selectedYear,\n Month: this.selectedMonth,\n ApplicationTypes: value === null || value === void 0 ? void 0 : value.code.toString()\n }\n });\n } else {\n delete this.getInvoiceFilter.filter.ApplicationTypes;\n this.setInvoiceFilter(this.getInvoiceFilter);\n }\n\n this.getInvoiceList(this.customerId).then(() => {\n this.$emit(\"filterChangeResponse\", true);\n });\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/InvoiceFilter.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");
1727
1727
 
1728
1728
  /***/ }),
1729
1729
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "osmanli-veri-dagitim",
3
- "version": "2.1.69-dev",
3
+ "version": "2.1.70-dev",
4
4
  "main": "./dist/OsmanliPackage.umd.min.js?version=2.0.90",
5
5
  "files": [
6
6
  "dist"