osmanli-veri-dagitim 2.1.80-dev → 2.1.82-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.
|
@@ -1543,7 +1543,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _com
|
|
|
1543
1543
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1544
1544
|
|
|
1545
1545
|
"use strict";
|
|
1546
|
-
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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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: \"Pager\",\n components: {\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"]\n },\n props: {\n page: Object,\n pageName: String\n },\n\n data() {\n return {\n pageSize: 5,\n customerId: null,\n changedXlsxData: []\n };\n },\n\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getAllPackages\", \"getHistoryList\", \"getRepresentativeReport\", \"getInvoiceList\", \"userRoleGetUsersList\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setGeneralFilter\"
|
|
1546
|
+
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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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: \"Pager\",\n components: {\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"]\n },\n props: {\n page: Object,\n pageName: String\n },\n\n data() {\n return {\n pageSize: 5,\n customerId: null,\n changedXlsxData: []\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"generalFilter\"])\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getAllPackages\", \"getHistoryList\", \"getRepresentativeReport\", \"getInvoiceList\", \"userRoleGetUsersList\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setGeneralFilter\", \"setInvoiceFilter\"]),\n\n setPage(page) {\n page = parseInt(page);\n this.setGeneralFilter({\n page: page,\n size: Number(this.pageSize)\n });\n this.setInvoiceFilter({\n page: page,\n size: Number(this.pageSize)\n });\n\n if (this.pageName == \"dataRequest\") {\n const customerId = this.$route.params.customerId;\n this.getAllPackages(customerId).then(() => {\n this.scroll();\n });\n } else if (this.pageName == \"history\") {\n this.getHistoryList(this.customerId).then(() => {\n this.scroll();\n });\n } else if (this.pageName == \"represReports\") {\n this.$emit(\"changedData\");\n this.getRepresentativeReport(response => {\n this.scroll();\n this.$emit(\"changedData\", response.data);\n });\n } else if (this.pageName == \"invoice\") {\n this.getInvoiceList(this.customerId).then(() => {\n this.scroll();\n });\n } else if (this.pageName === \"usersRole\") {\n this.$emit(\"refreshUsersRole\", true);\n }\n },\n\n setPageSizes(selectedValue) {\n const selectedNumber = parseInt(selectedValue);\n this.pageSize = selectedNumber;\n },\n\n scroll() {\n const el = document.getElementById(\"content\");\n const topData = document.getElementById(this.pageName);\n el.scrollTo({\n top: topData.offsetTop,\n left: 0,\n behavior: \"smooth\"\n });\n }\n\n },\n watch: {\n pageSize() {\n this.setGeneralFilter({\n page: this.generalFilter.page,\n size: Number(this.pageSize)\n });\n this.setInvoiceFilter({\n page: this.generalFilter.page,\n size: Number(this.pageSize)\n });\n\n if (this.pageName === \"dataRequest\") {\n const customerId = this.$route.params.customerId;\n this.getAllPackages(customerId);\n } else if (this.pageName === \"history\") {\n this.getHistoryList(this.customerId);\n } else if (this.pageName === \"represReports\") {\n this.$emit(\"changedData\");\n this.getRepresentativeReport(response => {\n this.$emit(\"changedData\", response.data);\n });\n } else if (this.pageName === \"invoice\") {\n this.getInvoiceList(this.customerId);\n } else if (this.pageName == \"usersRole\") {\n this.$emit(\"refreshUsersRole\", true);\n }\n }\n\n },\n\n mounted() {\n this.customerId = this.$route.params.customerId;\n }\n\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/base/Pager.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");
|
|
1547
1547
|
|
|
1548
1548
|
/***/ }),
|
|
1549
1549
|
|
|
@@ -1567,7 +1567,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _com
|
|
|
1567
1567
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1568
1568
|
|
|
1569
1569
|
"use strict";
|
|
1570
|
-
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/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins */ \"./src/mixins/index.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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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: \"ScreenPrices\",\n components: {\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseIcon\"]\n },\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n props: {\n screenPriceList: Array,\n featureScreenPricesList: Array\n },\n\n data() {\n return {\n isLoading: false,\n activeIndex: null,\n localFeatureScreenPricesList: this.featureScreenPricesList\n };\n },\n\n computed: {\n sortedScreenPriceList: function () {\n const sortedList = [...this.screenPriceList];\n sortedList.sort((a, b) => a.order - b.order);\n return sortedList;\n }\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_1__[\"mapActions\"])([\"getScreenPrices\", \"getFeatureScreenPrices\"]),\n\n toggleAccordion(applicationId, platformId, researchId, index) {\n this.activeIndex = this.activeIndex === index ? null : index;\n const args = {\n applicationId: applicationId != null ? applicationId : 0,\n platformId: platformId != null ? platformId : 0,\n researchId: researchId != null ? researchId : 0\n };\n this.localFeatureScreenPricesList = [];\n\n if (this.activeIndex == index) {\n this.getScreenPrices(args).then(res => {\n this.$nextTick(() => {\n const screenPrice = res.filter(x => x.featureType == 2);\n const withoutScreenPrice = res.filter(x => x.featureType != 2);\n this.localFeatureScreenPricesList = withoutScreenPrice;\n this.newScreenPrice = screenPrice;\n });\n });\n }\n },\n\n splitVendorNames(vendorName) {\n let takeSlash = String(vendorName).indexOf(\"(\") > -1 ? String(vendorName).split(\"(\")[1] : \"\";\n let takeBetwwenSlashes = takeSlash.split(\")\")[0];\n let mergeVendorNames = null;\n\n if (takeSlash.indexOf(\"AKDE\") > -1) {\n mergeVendorNames = \" Aracı Kurum Dağılımı Eşanlı\";\n } else if (takeSlash.indexOf(\"AKD\") > -1) {\n mergeVendorNames = \" Aracı Kurum Dağılımı Günsonu\";\n } else if (takeBetwwenSlashes.indexOf(\"VAKD\") > -1) {\n mergeVendorNames = \" Aracı Kurum Dağılımı Günsonu\";\n } else {\n mergeVendorNames = vendorName;\n }\n\n return mergeVendorNames;\n },\n\n returnPriceTypeForScreenPrices(priceTypeNumber) {\n if (priceTypeNumber == 1) {\n return \"TL\";\n } else if (priceTypeNumber == 2) {\n return \"Dolar\";\n } else if (priceTypeNumber == 3) {\n return \"Euro\";\n }\n }\n\n },\n\n mounted() {}\n\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/base/ScreenPrices.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");
|
|
1570
|
+
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/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins */ \"./src/mixins/index.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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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: \"ScreenPrices\",\n components: {\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseIcon\"]\n },\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n props: {\n screenPriceList: Array,\n featureScreenPricesList: Array\n },\n\n data() {\n return {\n isLoading: false,\n activeIndex: null,\n localFeatureScreenPricesList: this.featureScreenPricesList\n };\n },\n\n computed: {\n sortedScreenPriceList: function () {\n const sortedList = [...this.screenPriceList];\n sortedList.sort((a, b) => a.order - b.order);\n return sortedList;\n }\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_1__[\"mapActions\"])([\"getScreenPrices\", \"getFeatureScreenPrices\"]),\n\n toggleAccordion(applicationId, platformId, researchId, index) {\n this.activeIndex = this.activeIndex === index ? null : index;\n const args = {\n applicationId: applicationId != null ? applicationId : 0,\n platformId: platformId != null ? platformId : 0,\n researchId: researchId != null ? researchId : 0\n };\n this.localFeatureScreenPricesList = [];\n\n if (this.activeIndex == index) {\n this.getScreenPrices(args).then(res => {\n this.$nextTick(() => {\n const screenPrice = res.filter(x => x.featureType == 2);\n const withoutScreenPrice = res.filter(x => x.featureType != 2);\n this.localFeatureScreenPricesList = withoutScreenPrice;\n this.newScreenPrice = screenPrice;\n });\n });\n }\n },\n\n splitVendorNames(vendorName) {\n let takeSlash = String(vendorName).indexOf(\"(\") > -1 ? String(vendorName).split(\"(\")[1] : \"\";\n let takeBetwwenSlashes = takeSlash.split(\")\")[0];\n let mergeVendorNames = null;\n\n if (takeSlash.indexOf(\"AKDE\") > -1) {\n mergeVendorNames = \" Aracı Kurum Dağılımı Eşanlı\";\n } else if (takeSlash.indexOf(\"AKD\") > -1) {\n mergeVendorNames = \" Aracı Kurum Dağılımı Günsonu\";\n } else if (takeBetwwenSlashes.indexOf(\"VAKD\") > -1) {\n mergeVendorNames = \" Aracı Kurum Dağılımı Günsonu\";\n } else {\n mergeVendorNames = vendorName;\n }\n\n return mergeVendorNames;\n },\n\n returnPriceTypeForScreenPrices(priceTypeNumber) {\n if (priceTypeNumber == 1) {\n return \"TL\";\n } else if (priceTypeNumber == 2) {\n return \"Dolar\";\n } else if (priceTypeNumber == 3) {\n return \"Euro\";\n }\n }\n\n },\n\n mounted() {}\n\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/base/ScreenPrices.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");
|
|
1571
1571
|
|
|
1572
1572
|
/***/ }),
|
|
1573
1573
|
|
|
@@ -1627,7 +1627,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _com
|
|
|
1627
1627
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1628
1628
|
|
|
1629
1629
|
"use strict";
|
|
1630
|
-
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/* harmony import */ var _PackageSettignsCreate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PackageSettignsCreate */ \"./src/components/customer/PackageSettignsCreate.vue\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"CardItem\",\n components: {\n PackageSettignsCreate: _PackageSettignsCreate__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseButton\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"]\n },\n props: {\n item: Object,\n currentTab: String,\n cssClass: String\n },\n\n data() {\n return {\n packageDetail: null,\n marketInfo: null,\n platformInfo: null,\n isPopupVisible: false,\n loadDetail: false,\n isTerminal: true,\n algoDetail: {},\n isOperationWarning: false,\n isRuleMessageWarning: false,\n operationMessage: \"\",\n researchDetail: {},\n mutableItemRuleMessage: \"\",\n isUpgraded: false,\n isCancelled: false,\n selectBoxesStatus: null,\n triggerReRender: 0\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getPlatformInfo\", \"getMarketInfo\"])\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPlatform\", \"getMarket\", \"getAlgorithmDetail\", \"getResearchDetail\", \"getCheckForPurchaseUpgrade\"]),\n\n errorMessage(response) {\n return this.$toast.error(response.data.message);\n },\n\n addCart() {\n let cusId = null;\n\n if (this.$route.query.isRecommended === undefined) {\n var _this$item, _this$item2, _this$item2$platform;\n\n cusId = this.$route.query.c;\n this.getCheckForPurchaseUpgrade({\n applicationId: (_this$item = this.item) === null || _this$item === void 0 ? void 0 : _this$item.applicationId,\n platformId: (_this$item2 = this.item) === null || _this$item2 === void 0 ? void 0 : (_this$item2$platform = _this$item2.platform) === null || _this$item2$platform === void 0 ? void 0 : _this$item2$platform.id\n }).then(response => {\n var
|
|
1630
|
+
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/* harmony import */ var _PackageSettignsCreate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PackageSettignsCreate */ \"./src/components/customer/PackageSettignsCreate.vue\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"CardItem\",\n components: {\n PackageSettignsCreate: _PackageSettignsCreate__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseButton\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"]\n },\n props: {\n item: Object,\n currentTab: String,\n cssClass: String\n },\n\n data() {\n return {\n packageDetail: null,\n marketInfo: null,\n platformInfo: null,\n isPopupVisible: false,\n loadDetail: false,\n isTerminal: true,\n algoDetail: {},\n isOperationWarning: false,\n isRuleMessageWarning: false,\n operationMessage: \"\",\n researchDetail: {},\n mutableItemRuleMessage: \"\",\n isUpgraded: false,\n isCancelled: false,\n selectBoxesStatus: null,\n triggerReRender: 0\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getPlatformInfo\", \"getMarketInfo\"])\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPlatform\", \"getMarket\", \"getAlgorithmDetail\", \"getResearchDetail\", \"getCheckForPurchaseUpgrade\"]),\n\n errorMessage(response) {\n return this.$toast.error(response.data.message);\n },\n\n addCart() {\n let cusId = null;\n\n if (this.$route.query.isRecommended === undefined) {\n var _this$item, _this$item2, _this$item2$platform;\n\n cusId = this.$route.query.c;\n this.getCheckForPurchaseUpgrade({\n applicationId: (_this$item = this.item) === null || _this$item === void 0 ? void 0 : _this$item.applicationId,\n platformId: (_this$item2 = this.item) === null || _this$item2 === void 0 ? void 0 : (_this$item2$platform = _this$item2.platform) === null || _this$item2$platform === void 0 ? void 0 : _this$item2$platform.id\n }).then(response => {\n if (response.isUpgrade) {\n var _response$purchaseDet, _response$purchaseDet2, _response$purchaseDet3, _response$purchaseDet4;\n\n this.isUpgraded = true;\n\n if (response.purchaseDetail != null && ((_response$purchaseDet = response.purchaseDetail) === null || _response$purchaseDet === void 0 ? void 0 : (_response$purchaseDet2 = _response$purchaseDet.packageStatus) === null || _response$purchaseDet2 === void 0 ? void 0 : _response$purchaseDet2.id) != 8) {\n this.isCancelled = false;\n } else if (response.purchaseDetail != null && ((_response$purchaseDet3 = response.purchaseDetail) === null || _response$purchaseDet3 === void 0 ? void 0 : (_response$purchaseDet4 = _response$purchaseDet3.packageStatus) === null || _response$purchaseDet4 === void 0 ? void 0 : _response$purchaseDet4.id) == 8) {\n this.isCancelled = true;\n }\n } else {\n this.isUpgraded = false;\n this.isCancelled = false;\n }\n\n this.loadDetail = true;\n this.triggerReRender++;\n this.handlePlatformInfo(cusId);\n });\n } else {\n this.handlePlatformInfo(cusId);\n }\n },\n\n handlePlatformInfo(cusId) {\n this.getPlatform([this.item.applicationId, cusId]).then(res => {\n this.platformInfo = res.data.find(o => o.id == this.item.id);\n\n if (this.item.ruleMessage != undefined) {\n this.mutableItemRuleMessage = this.item.ruleMessage[0];\n this.isRuleMessageWarning = true;\n }\n\n if (this.currentTab != \"Algo\" && this.currentTab != \"Research\") {\n this.handleMarketInfo(cusId);\n } else {\n if (this.currentTab == \"Algo\") {\n this.handleAlgorithmDetail(cusId);\n } else {\n this.handleResearchDetail();\n }\n }\n });\n },\n\n handleMarketInfo(cusId) {\n var _this$platformInfo;\n\n this.getMarket([this.item.applicationId, (_this$platformInfo = this.platformInfo) === null || _this$platformInfo === void 0 ? void 0 : _this$platformInfo.platformId, cusId]).then(response => {\n var _response$data;\n\n if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.error) === true) {\n this.errorMessage(response);\n } else {\n this.marketInfo = this.getMarketInfo;\n this.loadDetail = true;\n this.isPopupVisible = true;\n }\n });\n },\n\n handleAlgorithmDetail(cusId) {\n this.getAlgorithmDetail([this.item.id, cusId]).then(response => {\n var _response$data2;\n\n if ((response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.error) === true) {\n this.errorMessage(response);\n } else {\n var _response$data3, _response$data4, _response$data4$opera, _response$data5, _response$data5$opera;\n\n this.algoDetail = response.data;\n this.isTerminal = (_response$data3 = response.data) === null || _response$data3 === void 0 ? void 0 : _response$data3.isTerminal;\n this.isOperationWarning = (_response$data4 = response.data) === null || _response$data4 === void 0 ? void 0 : (_response$data4$opera = _response$data4.operationRule) === null || _response$data4$opera === void 0 ? void 0 : _response$data4$opera.isOperationWarning;\n this.operationMessage = (_response$data5 = response.data) === null || _response$data5 === void 0 ? void 0 : (_response$data5$opera = _response$data5.operationRule) === null || _response$data5$opera === void 0 ? void 0 : _response$data5$opera.operationMessage;\n this.loadDetail = true;\n this.isPopupVisible = true;\n }\n });\n },\n\n handleResearchDetail() {\n this.getResearchDetail([this.item.id]).then(response => {\n var _response$data6;\n\n if ((response === null || response === void 0 ? void 0 : (_response$data6 = response.data) === null || _response$data6 === void 0 ? void 0 : _response$data6.error) === true) {\n this.errorMessage(response);\n } else {\n this.researchDetail = response.data;\n this.loadDetail = true;\n this.isPopupVisible = true;\n }\n });\n },\n\n closePopup() {\n this.isPopupVisible = false;\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/CardItem.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");
|
|
1631
1631
|
|
|
1632
1632
|
/***/ }),
|
|
1633
1633
|
|
|
@@ -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: {\n code: -1,\n label: \"Seçiniz\"\n },\n selectedMonth: -1,\n selectedAppType: -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
|
|
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: {\n code: -1,\n label: \"Seçiniz\"\n },\n selectedMonth: -1,\n selectedAppType: -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 getServerSideDate() {\n return this.getUserInfo.date;\n },\n\n availableYears() {\n const currentYear = new Date().getFullYear();\n const previousYear = currentYear - 1;\n const nextYear = currentYear + 1;\n const splitDate = String(this.getServerSideDate).split(\"-\")[1];\n const splitMonth = String(splitDate).split(\"-\")[0];\n let currentMonth = parseInt(splitMonth);\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 this.ApplicationTypes.unshift({\n code: -1,\n label: \"Hepsi\"\n });\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {}\n });\n }\n });\n },\n\n applyFilters() {\n this.$emit(\"filterChangeResponse\", false);\n const filters = {\n page: 1,\n size: 5,\n filter: {}\n };\n\n if (this.selectedYear.code !== -1) {\n filters.filter.Year = parseInt(this.selectedYear.label);\n }\n\n if (this.selectedMonth !== -1) {\n filters.filter.Month = this.selectedMonth;\n }\n\n if (this.selectedAppType !== -1) {\n filters.filter.ApplicationTypes = this.selectedAppType.toString();\n }\n\n this.setInvoiceFilter(filters);\n this.getInvoiceList(this.customerId).then(() => {\n this.$emit(\"filterChangeResponse\", true);\n });\n },\n\n changeInvoiceYear(value) {\n this.selectedYear = value;\n this.applyFilters();\n },\n\n changeInvoiceMonth(value) {\n this.selectedMonth = value.code;\n this.applyFilters();\n },\n\n changeApplicationTypes(value) {\n this.selectedAppType = value === null || value === void 0 ? void 0 : value.code;\n this.applyFilters();\n },\n\n resetFilter(filterName) {\n delete this.getInvoiceFilter.filter[filterName];\n delete this.getInvoiceFilter[filterName];\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
|
|
|
@@ -1855,7 +1855,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
|
|
|
1855
1855
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1856
1856
|
|
|
1857
1857
|
"use strict";
|
|
1858
|
-
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/* harmony import */ var _utils_breadcrumb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/breadcrumb */ \"./src/utils/breadcrumb.js\");\n/* harmony import */ var _utils_tokenTools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/tokenTools */ \"./src/utils/tokenTools.js\");\n/* harmony import */ var _mixins_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../mixins/index */ \"./src/mixins/index.js\");\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"BuyDataPackage\",\n components: {\n PackageSlider: _components__WEBPACK_IMPORTED_MODULE_1__[\"PackageSlider\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"],\n CardItem: _components__WEBPACK_IMPORTED_MODULE_1__[\"CardItem\"]\n },\n mixins: [_mixins_index__WEBPACK_IMPORTED_MODULE_4__[\"default\"]],\n props: {\n memberType: {\n type: Number\n }\n },\n\n data() {\n return {\n recommendedPackages: null,\n currentTab: 1,\n profCurrentTab: null,\n algoCurrentTab: null,\n featureTypeId: null,\n esube: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_3__[\"getItem\"])(\"esube\"),\n cusId: null,\n overallLimit: 0,\n getActiveProductsLength: 0\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getRecommendedPackages\", \"customer\", \"apps\", \"allResearch\", \"profAlgoApps\", \"appsTab\", \"profAlgoTab\", \"getUserInfo\", \"allPackages\"]),\n\n customerId() {\n return this.$route.params.customerNumber;\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getRecommendedPackageList\", \"searchCustomer\", \"getApps\", \"getAllResearch\", \"getProfAlgoApps\", \"getAppsTab\", \"getProfAlgoTab\", \"getMember\", \"getAllPackages\", \"monthlyGetOverallLimit\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setProfAlgoApps\", \"setUserInfo\"]),\n\n tabClass(id, name = \"tab\", place = this.currentTab) {\n return [{\n active: place === id\n }, name];\n },\n\n errorMessage(response) {\n var _response$data;\n\n if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.error) === true) {\n return this.$toast.error(response.data.message);\n }\n },\n\n goBack() {\n var _this$$route, _this$$route$meta, _this$$route2, _this$$route2$meta;\n\n const goBack = this.
|
|
1858
|
+
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/* harmony import */ var _utils_breadcrumb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/breadcrumb */ \"./src/utils/breadcrumb.js\");\n/* harmony import */ var _utils_tokenTools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/tokenTools */ \"./src/utils/tokenTools.js\");\n/* harmony import */ var _mixins_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../mixins/index */ \"./src/mixins/index.js\");\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"BuyDataPackage\",\n components: {\n PackageSlider: _components__WEBPACK_IMPORTED_MODULE_1__[\"PackageSlider\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"],\n CardItem: _components__WEBPACK_IMPORTED_MODULE_1__[\"CardItem\"]\n },\n mixins: [_mixins_index__WEBPACK_IMPORTED_MODULE_4__[\"default\"]],\n props: {\n memberType: {\n type: Number\n }\n },\n\n data() {\n return {\n recommendedPackages: null,\n currentTab: 1,\n profCurrentTab: null,\n algoCurrentTab: null,\n featureTypeId: null,\n esube: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_3__[\"getItem\"])(\"esube\"),\n cusId: null,\n overallLimit: 0,\n getActiveProductsLength: 0\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getRecommendedPackages\", \"customer\", \"apps\", \"allResearch\", \"profAlgoApps\", \"appsTab\", \"profAlgoTab\", \"getUserInfo\", \"allPackages\"]),\n\n customerId() {\n return this.$route.params.customerNumber;\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getRecommendedPackageList\", \"searchCustomer\", \"getApps\", \"getAllResearch\", \"getProfAlgoApps\", \"getAppsTab\", \"getProfAlgoTab\", \"getMember\", \"getAllPackages\", \"monthlyGetOverallLimit\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setProfAlgoApps\", \"setUserInfo\"]),\n\n tabClass(id, name = \"tab\", place = this.currentTab) {\n return [{\n active: place === id\n }, name];\n },\n\n errorMessage(response) {\n var _response$data;\n\n if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.error) === true) {\n return this.$toast.error(response.data.message);\n }\n },\n\n goBack() {\n var _this$$route, _this$$route$meta, _this$$route2, _this$$route2$meta;\n\n const goBack = this.esube == \"yes\" ? this.$router.go(-1) : this.$router.push({\n name: (_this$$route = this.$route) === null || _this$$route === void 0 ? void 0 : (_this$$route$meta = _this$$route.meta) === null || _this$$route$meta === void 0 ? void 0 : _this$$route$meta.breadcrumb[1].url.name,\n params: (_this$$route2 = this.$route) === null || _this$$route2 === void 0 ? void 0 : (_this$$route2$meta = _this$$route2.meta) === null || _this$$route2$meta === void 0 ? void 0 : _this$$route2$meta.breadcrumb[1].url.params\n });\n return goBack;\n },\n\n changeTab(id, featureTypeId) {\n this.featureTypeId = featureTypeId;\n this.currentTab = id;\n this.setProfAlgoApps([]);\n const professionalScreen = 2;\n const algoScreen = 3;\n const researchScreen = 4;\n\n if (id === professionalScreen) {\n this.getProfAlgoTab(professionalScreen).then(res => {\n if (res) {\n this.profCurrentTab = this.profAlgoTab[0].id;\n this.getProfAlgoApps([this.profCurrentTab, this.featureTypeId, this.cusId]).then(response => {\n this.errorMessage(response);\n });\n }\n });\n } else if (id === algoScreen) {\n this.getProfAlgoTab(algoScreen).then(res => {\n if (res) {\n this.algoCurrentTab = this.profAlgoTab[0].id;\n this.getProfAlgoApps([this.algoCurrentTab, this.featureTypeId, this.cusId]).then(response => {\n this.errorMessage(response);\n });\n }\n });\n } else if (id === researchScreen) {\n this.getAllResearch().then(response => {\n this.errorMessage(response);\n });\n return;\n }\n },\n\n changeSubTab(id, name) {\n this[name] = id;\n this.getProfAlgoApps([id, this.featureTypeId, this.cusId]).then(response => {\n this.errorMessage(response);\n });\n },\n\n getRecommendedData() {\n this.getRecommendedPackageList(this.cusId).then(res => {\n if (res) {\n this.recommendedPackages = this.getRecommendedPackages;\n }\n });\n },\n\n getCustomer() {\n this.searchCustomer({\n customerNo: this.customerId,\n cusId: this.cusId\n }).then(res => {\n if (res && this.$route.query.isRecommended === undefined) {\n Object(_utils_breadcrumb__WEBPACK_IMPORTED_MODULE_2__[\"getBreadCrumbs\"])({\n breadcrumbs: [\"CustomerDetail\", \"BuyDataPackage\"],\n customer: this.customer,\n customerDetail: this.customerId,\n buyDataPackage: this.customerId,\n cusId: this.cusId\n });\n }\n });\n },\n\n getOverallLimitOnLoad() {\n this.monthlyGetOverallLimit().then(response => {\n if (response.status === 200) {\n this.overallLimit = response.data.overallLimit;\n }\n });\n }\n\n },\n\n mounted() {\n if (this.$route.query.isRecommended === undefined) {\n this.cusId = this.$route.query.c;\n } else {\n this.cusId = localStorage.getItem(\"userId\");\n }\n\n this.getAllPackages(this.cusId);\n this.$nextTick(() => {\n setTimeout(() => {\n const getActives = this.allPackages.data.filter(o => o.packageStatus.id == 2);\n this.getActiveProductsLength = getActives.length;\n }, 250);\n });\n\n if (this.memberType) {\n if (this.cusId) {\n let userIdAsNumber = parseInt(this.cusId);\n let payload = {\n id: userIdAsNumber\n };\n this.getMember(payload).then(response => {\n this.setUserInfo({ ...response.data.loginInfo,\n memberType: this.memberType\n });\n });\n }\n }\n\n this.getRecommendedData();\n\n if (this.esube != \"yes\") {\n this.getCustomer();\n }\n\n this.getApps(1);\n this.getAppsTab().then(response => {\n this.errorMessage(response);\n });\n this.getOverallLimitOnLoad();\n }\n\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/BuyDataPackage.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");
|
|
1859
1859
|
|
|
1860
1860
|
/***/ }),
|
|
1861
1861
|
|
|
@@ -1867,7 +1867,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
|
|
|
1867
1867
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1868
1868
|
|
|
1869
1869
|
"use strict";
|
|
1870
|
-
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/* harmony import */ var _components_customer_PackageSettigns_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/customer/PackageSettigns.vue */ \"./src/components/customer/PackageSettigns.vue\");\n/* harmony import */ var _utils_breadcrumb__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/breadcrumb */ \"./src/utils/breadcrumb.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ \"./src/constants/index.js\");\n/* harmony import */ var _utils_tokenTools__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/tokenTools */ \"./src/utils/tokenTools.js\");\n/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../mixins */ \"./src/mixins/index.js\");\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"Checkout\",\n components: {\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseButton\"],\n InfoArea: _components__WEBPACK_IMPORTED_MODULE_1__[\"InfoArea\"],\n PackageSettigns: _components_customer_PackageSettigns_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n CustomerInfo: _components__WEBPACK_IMPORTED_MODULE_1__[\"CustomerInfo\"]\n },\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_6__[\"default\"]],\n\n data() {\n return {\n getPaymentStatuses: [],\n summaryData: [],\n mergedDatasAfterSummaryPull: [],\n totalFundAmount: 0,\n totalCommissionAmount: 0,\n totalNextMonthFundAmount: 0,\n totalNextMonthCommissionAmount: 0,\n packageDetail: null,\n marketInfo: null,\n isPopupVisible: false,\n isWarningAllowed: false,\n totalPriceTl: [],\n totalPriceDollar: [],\n totalPriceEuro: [],\n totalPriceNextMonthTl: [],\n totalPriceNextMonthDollar: [],\n totalPriceNextMonthEuro: [],\n totalPrice: 0,\n totalPriceForeign: 0,\n isButtonClicked: true,\n esube: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_5__[\"getItem\"])(\"esube\"),\n IsRecommendationPackage: false,\n isUpgradedPurchase: true,\n showNextMonthRow: false,\n infoText: [\"Veri paketiniz iptal edilmemesi durumunda bir sonraki ay başında tekrar güncellenecektir.\", \"BES ve yatırım fonu büyüklüğü ve/veya komisyon şartı sağlandığı taktirde; o ay toplamda belirtilen ekran ücreti sizden alınmayacaktır.\", \"Faturalandırma sırasında ay sonu Merkez Bankası kuru dikkate alınacaktır.\"],\n customerId: null,\n haveCurrency: false,\n isRecomendedPackage: false\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"customer\", \"packageSummary\", \"getPackageInfo\", \"getDraftPackageDetails\", \"getMarketInfo\", \"getUserInfo\", \"recommendationSummary\", \"getFilterList\"]),\n\n currencySymbol() {\n return _constants__WEBPACK_IMPORTED_MODULE_4__[\"CurrencySymbol\"];\n },\n\n packageNumber() {\n return this.$route.params.packageNumber;\n },\n\n getUserNumber() {\n return this.customer.customerNo;\n },\n\n getCustomerId() {\n return this.customer.id;\n },\n\n getUserInfos() {\n return `${this.customer.name} ${this.customer.surName}`;\n },\n\n customerNumber() {\n return this.$route.params.customerNumber;\n },\n\n screenPrice() {\n var _this$summaryData, _this$summaryData$pri;\n\n if (((_this$summaryData = this.summaryData) === null || _this$summaryData === void 0 ? void 0 : (_this$summaryData$pri = _this$summaryData.price) === null || _this$summaryData$pri === void 0 ? void 0 : _this$summaryData$pri.prices) == null) {\n var _this$summaryData2, _this$summaryData2$ne;\n\n return (_this$summaryData2 = this.summaryData) === null || _this$summaryData2 === void 0 ? void 0 : (_this$summaryData2$ne = _this$summaryData2.nextMonthPrice) === null || _this$summaryData2$ne === void 0 ? void 0 : _this$summaryData2$ne.screenPrice;\n } else {\n var _this$summaryData3, _this$summaryData3$pr;\n\n return (_this$summaryData3 = this.summaryData) === null || _this$summaryData3 === void 0 ? void 0 : (_this$summaryData3$pr = _this$summaryData3.price) === null || _this$summaryData3$pr === void 0 ? void 0 : _this$summaryData3$pr.screenPrice;\n }\n },\n\n screenFund() {\n var _this$summaryData4, _this$summaryData4$pr;\n\n if (((_this$summaryData4 = this.summaryData) === null || _this$summaryData4 === void 0 ? void 0 : (_this$summaryData4$pr = _this$summaryData4.price) === null || _this$summaryData4$pr === void 0 ? void 0 : _this$summaryData4$pr.prices) == null) {\n var _this$summaryData$nex;\n\n return (_this$summaryData$nex = this.summaryData.nextMonthPrice) === null || _this$summaryData$nex === void 0 ? void 0 : _this$summaryData$nex.screenFund;\n } else {\n var _this$summaryData$pri2;\n\n return (_this$summaryData$pri2 = this.summaryData.price) === null || _this$summaryData$pri2 === void 0 ? void 0 : _this$summaryData$pri2.screenFund;\n }\n },\n\n screenCommission() {\n var _this$summaryData5, _this$summaryData5$pr;\n\n if (((_this$summaryData5 = this.summaryData) === null || _this$summaryData5 === void 0 ? void 0 : (_this$summaryData5$pr = _this$summaryData5.price) === null || _this$summaryData5$pr === void 0 ? void 0 : _this$summaryData5$pr.prices) == null) {\n var _this$summaryData6, _this$summaryData6$ne;\n\n return (_this$summaryData6 = this.summaryData) === null || _this$summaryData6 === void 0 ? void 0 : (_this$summaryData6$ne = _this$summaryData6.nextMonthPrice) === null || _this$summaryData6$ne === void 0 ? void 0 : _this$summaryData6$ne.screenCommission;\n } else {\n var _this$summaryData7, _this$summaryData7$pr;\n\n return (_this$summaryData7 = this.summaryData) === null || _this$summaryData7 === void 0 ? void 0 : (_this$summaryData7$pr = _this$summaryData7.price) === null || _this$summaryData7$pr === void 0 ? void 0 : _this$summaryData7$pr.screenCommission;\n }\n }\n\n },\n\n mounted() {\n this.customerId = this.$route.query.c === undefined ? localStorage.getItem(\"userCusId\") : this.getCustomerId;\n\n if (this.esube != \"yes\") {\n this.getCustomer();\n }\n\n this.getSummary();\n this.isPopupVisible = false;\n\n if (this.$route.query.isReco !== undefined && this.$route.query.isReco == \"yes\") {\n this.isRecomendedPackage = true;\n }\n\n this.isButtonClicked = false;\n this.isUpgradedPurchase = this.$route.params.isUpgradedPurchase == undefined ? false : this.$route.params.isUpgradedPurchase;\n this.getPaymentStatus();\n },\n\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPackageSummary\", \"getRecommendationSummary\", \"confirm\", \"searchCustomer\", \"getDraftPackageDetail\", \"getMarket\"]),\n\n getPaymentStatus() {\n const paymentStatuses = this.getFilterList.filter(o => {\n return o.name === \"PaymentStatus\";\n });\n if (paymentStatuses.length > 0) this.getPaymentStatuses = paymentStatuses[0].values;\n },\n\n goBack() {\n var _this$$route, _this$$route$meta, _this$$route2, _this$$route2$meta;\n\n const goBack = this.getUserInfo.memberType == \"3\" ? this.$router.go(-1) : this.$router.push({\n name: (_this$$route = this.$route) === null || _this$$route === void 0 ? void 0 : (_this$$route$meta = _this$$route.meta) === null || _this$$route$meta === void 0 ? void 0 : _this$$route$meta.breadcrumb[2].url.name,\n params: (_this$$route2 = this.$route) === null || _this$$route2 === void 0 ? void 0 : (_this$$route2$meta = _this$$route2.meta) === null || _this$$route2$meta === void 0 ? void 0 : _this$$route2$meta.breadcrumb[2].url.params\n });\n return goBack;\n },\n\n addCart(purchaseNo) {\n this.getDraftPackageDetail([purchaseNo, this.customerId]).then(() => {\n this.packageDetail = this.getDraftPackageDetails;\n this.getMarket([this.packageDetail.application.applicationId, this.packageDetail.platform.platformId, this.customerId]).then(() => {\n this.marketInfo = this.getMarketInfo;\n });\n this.isPopupVisible = true;\n });\n },\n\n closePopup() {\n if (this.esube != \"yes\") {\n this.getCustomer();\n }\n\n this.getSummary();\n this.isPopupVisible = false;\n },\n\n getCustomer() {\n this.searchCustomer({\n customerNo: this.customerNumber,\n cusId: this.customerId\n }).then(res => {\n if (res) {\n Object(_utils_breadcrumb__WEBPACK_IMPORTED_MODULE_3__[\"getBreadCrumbs\"])({\n breadcrumbs: [\"CustomerDetail\", \"BuyDataPackage\", \"Checkout\"],\n customer: this.customer,\n customerDetail: this.getUserNumber,\n buyDataPackage: this.getUserNumber,\n checkout: this.packageNumber,\n cusId: this.customerId\n });\n }\n });\n },\n\n async getSummary() {\n if (this.isRecoQueryDefinedAndYes()) {\n await this.getRecommendationSummaryFunc();\n } else {\n await this.getDraftPackageDetailSummary();\n }\n },\n\n isRecoQueryDefinedAndYes() {\n return this.$route.query.isReco !== undefined && this.$route.query.isReco === \"yes\";\n },\n\n async getRecommendationSummaryFunc() {\n const res = await this.getDraftPackageDetail(this.packageNumber);\n\n if (res) {\n this.processSummaryData(res.data);\n this.IsRecommendationPackage = true;\n }\n },\n\n async getDraftPackageDetailSummary() {\n const res = await this.getDraftPackageDetail([this.packageNumber]);\n\n if (res) {\n this.processSummaryData(res.data);\n }\n },\n\n processSummaryData(data) {\n var _this$summaryData8, _this$summaryData8$pa, _this$summaryData9, _this$summaryData9$pa, _this$summaryData10, _this$summaryData11, _this$summaryData12, _this$summaryData13;\n\n this.summaryData = data;\n const isWarningAllowed = (_this$summaryData8 = this.summaryData) === null || _this$summaryData8 === void 0 ? void 0 : (_this$summaryData8$pa = _this$summaryData8.package) === null || _this$summaryData8$pa === void 0 ? void 0 : _this$summaryData8$pa.filter(e => e.perspectiveFeature.name == \"Canlı Piyasa\" || e.perspectiveFeature.name == \"Prime\");\n const hasPriceVal = (_this$summaryData9 = this.summaryData) === null || _this$summaryData9 === void 0 ? void 0 : (_this$summaryData9$pa = _this$summaryData9.package) === null || _this$summaryData9$pa === void 0 ? void 0 : _this$summaryData9$pa.filter(e => e.perspectiveFeature.price != 0);\n this.isWarningAllowed = isWarningAllowed.length && hasPriceVal.length;\n this.totalFundAmount = (_this$summaryData10 = this.summaryData) === null || _this$summaryData10 === void 0 ? void 0 : _this$summaryData10.price.totalFundAmount;\n this.totalCommissionAmount = (_this$summaryData11 = this.summaryData) === null || _this$summaryData11 === void 0 ? void 0 : _this$summaryData11.price.totalCommissionAmount;\n this.totalNextMonthFundAmount = (_this$summaryData12 = this.summaryData) === null || _this$summaryData12 === void 0 ? void 0 : _this$summaryData12.nextMonthPrice.totalFundAmount;\n this.totalNextMonthCommissionAmount = (_this$summaryData13 = this.summaryData) === null || _this$summaryData13 === void 0 ? void 0 : _this$summaryData13.nextMonthPrice.totalCommissionAmount;\n this.totalPriceTl = this.getPriceByCurrencySymbol(\"tl\");\n this.totalPriceNextMonthTl = this.getNextMonthPriceByCurrencySymbol(\"tl\");\n this.totalPriceDollar = this.getPriceByCurrencySymbol(\"dolar\");\n this.totalPriceNextMonthDollar = this.getNextMonthPriceByCurrencySymbol(\"dolar\");\n this.totalPriceEuro = this.getPriceByCurrencySymbol(\"euro\");\n this.totalPriceNextMonthEuro = this.getNextMonthPriceByCurrencySymbol(\"euro\");\n this.doubleVendorAndMarketFeature();\n },\n\n getPriceByCurrencySymbol(symbol) {\n var _this$summaryData14, _this$summaryData14$p, _this$summaryData14$p2;\n\n return (_this$summaryData14 = this.summaryData) === null || _this$summaryData14 === void 0 ? void 0 : (_this$summaryData14$p = _this$summaryData14.price) === null || _this$summaryData14$p === void 0 ? void 0 : (_this$summaryData14$p2 = _this$summaryData14$p.prices) === null || _this$summaryData14$p2 === void 0 ? void 0 : _this$summaryData14$p2.filter(e => e.info === this.currencySymbol[symbol])[0];\n },\n\n getNextMonthPriceByCurrencySymbol(symbol) {\n var _this$summaryData15, _this$summaryData15$n, _this$summaryData15$n2;\n\n return (_this$summaryData15 = this.summaryData) === null || _this$summaryData15 === void 0 ? void 0 : (_this$summaryData15$n = _this$summaryData15.nextMonthPrice) === null || _this$summaryData15$n === void 0 ? void 0 : (_this$summaryData15$n2 = _this$summaryData15$n.prices) === null || _this$summaryData15$n2 === void 0 ? void 0 : _this$summaryData15$n2.filter(e => e.info === this.currencySymbol[symbol])[0];\n },\n\n totalPriceCalc() {\n var _this$totalPriceDolla, _this$totalPriceDolla2, _this$totalPriceEuro, _this$totalPriceEuro2, _this$totalPriceDolla3, _this$totalPriceEuro3, _this$totalPriceTl;\n\n let totalDollar = (_this$totalPriceDolla = this.totalPriceDollar) !== null && _this$totalPriceDolla !== void 0 && _this$totalPriceDolla.totalPrice ? \" + \" + this.formatPriceDollar((_this$totalPriceDolla2 = this.totalPriceDollar) === null || _this$totalPriceDolla2 === void 0 ? void 0 : _this$totalPriceDolla2.totalPrice) + \" Dolar\" : \"\";\n let totalEuro = (_this$totalPriceEuro = this.totalPriceEuro) !== null && _this$totalPriceEuro !== void 0 && _this$totalPriceEuro.totalPrice ? \" + \" + this.formatPriceEuro((_this$totalPriceEuro2 = this.totalPriceEuro) === null || _this$totalPriceEuro2 === void 0 ? void 0 : _this$totalPriceEuro2.totalPrice) + \" Euro\" : \"\";\n\n if (((_this$totalPriceDolla3 = this.totalPriceDollar) === null || _this$totalPriceDolla3 === void 0 ? void 0 : _this$totalPriceDolla3.totalPrice) !== undefined || ((_this$totalPriceEuro3 = this.totalPriceEuro) === null || _this$totalPriceEuro3 === void 0 ? void 0 : _this$totalPriceEuro3.totalPrice) !== undefined) {\n this.haveCurrency = true;\n }\n\n return `${((_this$totalPriceTl = this.totalPriceTl) === null || _this$totalPriceTl === void 0 ? void 0 : _this$totalPriceTl.totalPrice) !== undefined ? this.formatPrice(this.totalPriceTl.totalPrice) + \" TL\" : \"0 TL\"} ${totalDollar}${totalEuro}`;\n },\n\n totalPriceNextMonthCalc() {\n var _this$totalPriceNextM, _this$totalPriceNextM2, _this$totalPriceNextM3, _this$totalPriceNextM4, _this$totalPriceNextM5, _this$totalPriceNextM6;\n\n let totalDollar = (_this$totalPriceNextM = this.totalPriceNextMonthDollar) !== null && _this$totalPriceNextM !== void 0 && _this$totalPriceNextM.totalPrice ? \" + \" + this.formatPriceDollar((_this$totalPriceNextM2 = this.totalPriceNextMonthDollar) === null || _this$totalPriceNextM2 === void 0 ? void 0 : _this$totalPriceNextM2.totalPrice) + \" Dolar\" : \"\";\n let totalEuro = (_this$totalPriceNextM3 = this.totalPriceNextMonthEuro) !== null && _this$totalPriceNextM3 !== void 0 && _this$totalPriceNextM3.totalPrice ? \" + \" + this.formatPriceEuro((_this$totalPriceNextM4 = this.totalPriceNextMonthEuro) === null || _this$totalPriceNextM4 === void 0 ? void 0 : _this$totalPriceNextM4.totalPrice) + \" Euro\" : \"\";\n\n if (((_this$totalPriceNextM5 = this.totalPriceNextMonthDollar) === null || _this$totalPriceNextM5 === void 0 ? void 0 : _this$totalPriceNextM5.totalPrice) !== undefined || ((_this$totalPriceNextM6 = this.totalPriceNextMonthEuro) === null || _this$totalPriceNextM6 === void 0 ? void 0 : _this$totalPriceNextM6.totalPrice) !== undefined) {\n this.haveCurrency = true;\n }\n\n const tlTotal = this.totalPriceNextMonthTl && this.totalPriceNextMonthTl.totalPrice !== undefined ? this.formatPrice(this.totalPriceNextMonthTl.totalPrice) + \" TL\" : \"0 TL\";\n return `${tlTotal} ${totalDollar}${totalEuro}`;\n },\n\n doubleVendorAndMarketFeature() {\n this.mergedDatasAfterSummaryPull = [];\n this.summaryData.package.forEach(item => {\n if (item.marketFeature && item.perspectiveFeature) {\n this.mergedDatasAfterSummaryPull.push({\n marketFeature: {\n name: item.marketFeature.name\n },\n perspectiveFeature: {\n name: item.perspectiveFeature.name\n },\n endDate: item.endDate,\n dateSelection: item.dateSelection,\n totalFundAmount: item.marketFeature.fundAmount + item.perspectiveFeature.fundAmount,\n totalCommissionAmount: item.marketFeature.commissionAmount + item.perspectiveFeature.commissionAmount,\n totalPrice: item.marketFeature.price + item.perspectiveFeature.price\n });\n }\n\n if (item.marketFeature && item.vendorFeature && item.vendorFeature.name != \"Yok\") {\n this.mergedDatasAfterSummaryPull.push({\n marketFeature: {\n name: item.marketFeature.name\n },\n vendorFeature: {\n name: item.vendorFeature.name\n },\n endDate: item.endDate,\n dateSelection: item.dateSelection,\n totalFundAmount: item.marketFeature.fundAmount + item.vendorFeature.fundAmount,\n totalCommissionAmount: item.marketFeature.commissionAmount + item.vendorFeature.commissionAmount,\n totalPrice: item.marketFeature.price + item.vendorFeature.price\n });\n }\n });\n },\n\n confirmPackage() {\n this.isButtonClicked = true;\n const args = {\n purchaseId: Number(this.packageNumber),\n IsRecommendationPackage: this.IsRecommendationPackage,\n cusId: this.customerId\n };\n this.confirm(args).then(res => {\n if (res.error) {\n this.$toast.error(res.message);\n this.isButtonClicked = false;\n } else {\n this.$router.push({\n name: \"CustomerDetail\",\n params: {\n customerId: this.getCustomerId,\n customerNumber: this.$route.params.customerNumber\n }\n });\n }\n });\n }\n\n },\n watch: {\n summaryData(val) {\n const getDateSelection = val.package.filter(item => item.dateSelection.key == \"1\");\n\n if (getDateSelection.length > 0) {\n this.showNextMonthRow = true;\n } else {\n this.showNextMonthRow = false;\n }\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/Checkout.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");
|
|
1870
|
+
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/* harmony import */ var _components_customer_PackageSettigns_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/customer/PackageSettigns.vue */ \"./src/components/customer/PackageSettigns.vue\");\n/* harmony import */ var _utils_breadcrumb__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/breadcrumb */ \"./src/utils/breadcrumb.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ \"./src/constants/index.js\");\n/* harmony import */ var _utils_tokenTools__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/tokenTools */ \"./src/utils/tokenTools.js\");\n/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../mixins */ \"./src/mixins/index.js\");\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"Checkout\",\n components: {\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseButton\"],\n InfoArea: _components__WEBPACK_IMPORTED_MODULE_1__[\"InfoArea\"],\n PackageSettigns: _components_customer_PackageSettigns_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n CustomerInfo: _components__WEBPACK_IMPORTED_MODULE_1__[\"CustomerInfo\"]\n },\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_6__[\"default\"]],\n\n data() {\n return {\n getPaymentStatuses: [],\n summaryData: [],\n mergedDatasAfterSummaryPull: [],\n totalFundAmount: 0,\n totalCommissionAmount: 0,\n totalNextMonthFundAmount: 0,\n totalNextMonthCommissionAmount: 0,\n packageDetail: null,\n marketInfo: null,\n isPopupVisible: false,\n isWarningAllowed: false,\n totalPriceTl: [],\n totalPriceDollar: [],\n totalPriceEuro: [],\n totalPriceNextMonthTl: [],\n totalPriceNextMonthDollar: [],\n totalPriceNextMonthEuro: [],\n totalPrice: 0,\n totalPriceForeign: 0,\n isButtonClicked: true,\n esube: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_5__[\"getItem\"])(\"esube\"),\n IsRecommendationPackage: false,\n isUpgradedPurchase: true,\n showNextMonthRow: false,\n infoText: [\"Veri paketiniz iptal edilmemesi durumunda bir sonraki ay başında tekrar güncellenecektir.\", \"BES ve yatırım fonu büyüklüğü ve/veya komisyon şartı sağlandığı taktirde; o ay toplamda belirtilen ekran ücreti sizden alınmayacaktır.\", \"Faturalandırma sırasında ay sonu Merkez Bankası kuru dikkate alınacaktır.\"],\n customerId: null,\n haveCurrency: false,\n isRecomendedPackage: false\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"customer\", \"packageSummary\", \"getPackageInfo\", \"getDraftPackageDetails\", \"getMarketInfo\", \"getUserInfo\", \"recommendationSummary\", \"getFilterList\"]),\n\n currencySymbol() {\n return _constants__WEBPACK_IMPORTED_MODULE_4__[\"CurrencySymbol\"];\n },\n\n packageNumber() {\n return this.$route.params.packageNumber;\n },\n\n getUserNumber() {\n return this.customer.customerNo;\n },\n\n getCustomerId() {\n return this.customer.id;\n },\n\n getUserInfos() {\n return `${this.customer.name} ${this.customer.surName}`;\n },\n\n customerNumber() {\n return this.$route.params.customerNumber;\n },\n\n screenPrice() {\n var _this$summaryData, _this$summaryData$pri;\n\n if (((_this$summaryData = this.summaryData) === null || _this$summaryData === void 0 ? void 0 : (_this$summaryData$pri = _this$summaryData.price) === null || _this$summaryData$pri === void 0 ? void 0 : _this$summaryData$pri.prices) == null) {\n var _this$summaryData2, _this$summaryData2$ne;\n\n return (_this$summaryData2 = this.summaryData) === null || _this$summaryData2 === void 0 ? void 0 : (_this$summaryData2$ne = _this$summaryData2.nextMonthPrice) === null || _this$summaryData2$ne === void 0 ? void 0 : _this$summaryData2$ne.screenPrice;\n } else {\n var _this$summaryData3, _this$summaryData3$pr;\n\n return (_this$summaryData3 = this.summaryData) === null || _this$summaryData3 === void 0 ? void 0 : (_this$summaryData3$pr = _this$summaryData3.price) === null || _this$summaryData3$pr === void 0 ? void 0 : _this$summaryData3$pr.screenPrice;\n }\n },\n\n screenFund() {\n var _this$summaryData4, _this$summaryData4$pr;\n\n if (((_this$summaryData4 = this.summaryData) === null || _this$summaryData4 === void 0 ? void 0 : (_this$summaryData4$pr = _this$summaryData4.price) === null || _this$summaryData4$pr === void 0 ? void 0 : _this$summaryData4$pr.prices) == null) {\n var _this$summaryData$nex;\n\n return (_this$summaryData$nex = this.summaryData.nextMonthPrice) === null || _this$summaryData$nex === void 0 ? void 0 : _this$summaryData$nex.screenFund;\n } else {\n var _this$summaryData$pri2;\n\n return (_this$summaryData$pri2 = this.summaryData.price) === null || _this$summaryData$pri2 === void 0 ? void 0 : _this$summaryData$pri2.screenFund;\n }\n },\n\n screenCommission() {\n var _this$summaryData5, _this$summaryData5$pr;\n\n if (((_this$summaryData5 = this.summaryData) === null || _this$summaryData5 === void 0 ? void 0 : (_this$summaryData5$pr = _this$summaryData5.price) === null || _this$summaryData5$pr === void 0 ? void 0 : _this$summaryData5$pr.prices) == null) {\n var _this$summaryData6, _this$summaryData6$ne;\n\n return (_this$summaryData6 = this.summaryData) === null || _this$summaryData6 === void 0 ? void 0 : (_this$summaryData6$ne = _this$summaryData6.nextMonthPrice) === null || _this$summaryData6$ne === void 0 ? void 0 : _this$summaryData6$ne.screenCommission;\n } else {\n var _this$summaryData7, _this$summaryData7$pr;\n\n return (_this$summaryData7 = this.summaryData) === null || _this$summaryData7 === void 0 ? void 0 : (_this$summaryData7$pr = _this$summaryData7.price) === null || _this$summaryData7$pr === void 0 ? void 0 : _this$summaryData7$pr.screenCommission;\n }\n }\n\n },\n\n mounted() {\n this.customerId = this.$route.query.c === undefined ? localStorage.getItem(\"userCusId\") : this.getCustomerId;\n\n if (this.esube != \"yes\") {\n this.getCustomer();\n }\n\n this.getSummary();\n this.isPopupVisible = false;\n\n if (this.$route.query.isReco !== undefined && this.$route.query.isReco == \"yes\") {\n this.isRecomendedPackage = true;\n }\n\n this.isButtonClicked = false;\n this.isUpgradedPurchase = this.$route.params.isUpgradedPurchase == undefined ? false : this.$route.params.isUpgradedPurchase;\n this.getPaymentStatus();\n },\n\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPackageSummary\", \"getRecommendationSummary\", \"confirm\", \"searchCustomer\", \"getDraftPackageDetail\", \"getMarket\"]),\n\n getPaymentStatus() {\n const paymentStatuses = this.getFilterList.filter(o => {\n return o.name === \"PaymentStatus\";\n });\n if (paymentStatuses.length > 0) this.getPaymentStatuses = paymentStatuses[0].values;\n },\n\n goBack() {\n var _this$$route, _this$$route$meta, _this$$route2, _this$$route2$meta;\n\n const goBack = this.getUserInfo.memberType == \"3\" ? this.$router.go(-1) : this.$router.push({\n name: (_this$$route = this.$route) === null || _this$$route === void 0 ? void 0 : (_this$$route$meta = _this$$route.meta) === null || _this$$route$meta === void 0 ? void 0 : _this$$route$meta.breadcrumb[2].url.name,\n params: (_this$$route2 = this.$route) === null || _this$$route2 === void 0 ? void 0 : (_this$$route2$meta = _this$$route2.meta) === null || _this$$route2$meta === void 0 ? void 0 : _this$$route2$meta.breadcrumb[2].url.params\n });\n return goBack;\n },\n\n addCart(purchaseNo) {\n this.getDraftPackageDetail([purchaseNo, this.customerId]).then(() => {\n this.packageDetail = this.getDraftPackageDetails;\n this.getMarket([this.packageDetail.application.applicationId, this.packageDetail.platform.platformId, this.customerId]).then(() => {\n this.marketInfo = this.getMarketInfo;\n });\n this.isPopupVisible = true;\n });\n },\n\n closePopup() {\n if (this.esube != \"yes\") {\n this.getCustomer();\n }\n\n this.getSummary();\n this.isPopupVisible = false;\n },\n\n getCustomer() {\n this.searchCustomer({\n customerNo: this.customerNumber,\n cusId: this.customerId\n }).then(res => {\n if (res) {\n Object(_utils_breadcrumb__WEBPACK_IMPORTED_MODULE_3__[\"getBreadCrumbs\"])({\n breadcrumbs: [\"CustomerDetail\", \"BuyDataPackage\", \"Checkout\"],\n customer: this.customer,\n customerDetail: this.getUserNumber,\n buyDataPackage: this.getUserNumber,\n checkout: this.packageNumber,\n cusId: this.customerId\n });\n }\n });\n },\n\n async getSummary() {\n if (this.isRecoQueryDefinedAndYes()) {\n await this.getRecommendationSummaryFunc();\n } else {\n await this.getDraftPackageDetailSummary();\n }\n },\n\n isRecoQueryDefinedAndYes() {\n return this.$route.query.isReco !== undefined && this.$route.query.isReco === \"yes\";\n },\n\n async getRecommendationSummaryFunc() {\n const res = await this.getDraftPackageDetail(this.packageNumber);\n\n if (res) {\n this.processSummaryData(res.data);\n this.IsRecommendationPackage = true;\n }\n },\n\n async getDraftPackageDetailSummary() {\n const res = await this.getDraftPackageDetail([this.packageNumber]);\n\n if (res.data) {\n const redirectControl = res.data.packageStatus.id === 6;\n\n if (redirectControl && this.$router.history.current.name == \"Checkout\") {\n this.$router.push({\n name: \"CustomerDetail\",\n params: {\n customerId: this.getCustomerId,\n customerNumber: this.customerNumber\n }\n });\n }\n\n this.processSummaryData(res.data);\n }\n },\n\n processSummaryData(data) {\n var _this$summaryData8, _this$summaryData8$pa, _this$summaryData9, _this$summaryData9$pa, _this$summaryData10, _this$summaryData11, _this$summaryData12, _this$summaryData13;\n\n this.summaryData = data;\n const isWarningAllowed = (_this$summaryData8 = this.summaryData) === null || _this$summaryData8 === void 0 ? void 0 : (_this$summaryData8$pa = _this$summaryData8.package) === null || _this$summaryData8$pa === void 0 ? void 0 : _this$summaryData8$pa.filter(e => e.perspectiveFeature.name == \"Canlı Piyasa\" || e.perspectiveFeature.name == \"Prime\");\n const hasPriceVal = (_this$summaryData9 = this.summaryData) === null || _this$summaryData9 === void 0 ? void 0 : (_this$summaryData9$pa = _this$summaryData9.package) === null || _this$summaryData9$pa === void 0 ? void 0 : _this$summaryData9$pa.filter(e => e.perspectiveFeature.price != 0);\n this.isWarningAllowed = isWarningAllowed.length && hasPriceVal.length;\n this.totalFundAmount = (_this$summaryData10 = this.summaryData) === null || _this$summaryData10 === void 0 ? void 0 : _this$summaryData10.price.totalFundAmount;\n this.totalCommissionAmount = (_this$summaryData11 = this.summaryData) === null || _this$summaryData11 === void 0 ? void 0 : _this$summaryData11.price.totalCommissionAmount;\n this.totalNextMonthFundAmount = (_this$summaryData12 = this.summaryData) === null || _this$summaryData12 === void 0 ? void 0 : _this$summaryData12.nextMonthPrice.totalFundAmount;\n this.totalNextMonthCommissionAmount = (_this$summaryData13 = this.summaryData) === null || _this$summaryData13 === void 0 ? void 0 : _this$summaryData13.nextMonthPrice.totalCommissionAmount;\n this.totalPriceTl = this.getPriceByCurrencySymbol(\"tl\");\n this.totalPriceNextMonthTl = this.getNextMonthPriceByCurrencySymbol(\"tl\");\n this.totalPriceDollar = this.getPriceByCurrencySymbol(\"dolar\");\n this.totalPriceNextMonthDollar = this.getNextMonthPriceByCurrencySymbol(\"dolar\");\n this.totalPriceEuro = this.getPriceByCurrencySymbol(\"euro\");\n this.totalPriceNextMonthEuro = this.getNextMonthPriceByCurrencySymbol(\"euro\");\n this.doubleVendorAndMarketFeature();\n },\n\n getPriceByCurrencySymbol(symbol) {\n var _this$summaryData14, _this$summaryData14$p, _this$summaryData14$p2;\n\n return (_this$summaryData14 = this.summaryData) === null || _this$summaryData14 === void 0 ? void 0 : (_this$summaryData14$p = _this$summaryData14.price) === null || _this$summaryData14$p === void 0 ? void 0 : (_this$summaryData14$p2 = _this$summaryData14$p.prices) === null || _this$summaryData14$p2 === void 0 ? void 0 : _this$summaryData14$p2.filter(e => e.info === this.currencySymbol[symbol])[0];\n },\n\n getNextMonthPriceByCurrencySymbol(symbol) {\n var _this$summaryData15, _this$summaryData15$n, _this$summaryData15$n2;\n\n return (_this$summaryData15 = this.summaryData) === null || _this$summaryData15 === void 0 ? void 0 : (_this$summaryData15$n = _this$summaryData15.nextMonthPrice) === null || _this$summaryData15$n === void 0 ? void 0 : (_this$summaryData15$n2 = _this$summaryData15$n.prices) === null || _this$summaryData15$n2 === void 0 ? void 0 : _this$summaryData15$n2.filter(e => e.info === this.currencySymbol[symbol])[0];\n },\n\n totalPriceCalc() {\n var _this$totalPriceDolla, _this$totalPriceDolla2, _this$totalPriceEuro, _this$totalPriceEuro2, _this$totalPriceDolla3, _this$totalPriceEuro3, _this$totalPriceTl;\n\n let totalDollar = (_this$totalPriceDolla = this.totalPriceDollar) !== null && _this$totalPriceDolla !== void 0 && _this$totalPriceDolla.totalPrice ? \" + \" + this.formatPriceDollar((_this$totalPriceDolla2 = this.totalPriceDollar) === null || _this$totalPriceDolla2 === void 0 ? void 0 : _this$totalPriceDolla2.totalPrice) + \" Dolar\" : \"\";\n let totalEuro = (_this$totalPriceEuro = this.totalPriceEuro) !== null && _this$totalPriceEuro !== void 0 && _this$totalPriceEuro.totalPrice ? \" + \" + this.formatPriceEuro((_this$totalPriceEuro2 = this.totalPriceEuro) === null || _this$totalPriceEuro2 === void 0 ? void 0 : _this$totalPriceEuro2.totalPrice) + \" Euro\" : \"\";\n\n if (((_this$totalPriceDolla3 = this.totalPriceDollar) === null || _this$totalPriceDolla3 === void 0 ? void 0 : _this$totalPriceDolla3.totalPrice) !== undefined || ((_this$totalPriceEuro3 = this.totalPriceEuro) === null || _this$totalPriceEuro3 === void 0 ? void 0 : _this$totalPriceEuro3.totalPrice) !== undefined) {\n this.haveCurrency = true;\n }\n\n return `${((_this$totalPriceTl = this.totalPriceTl) === null || _this$totalPriceTl === void 0 ? void 0 : _this$totalPriceTl.totalPrice) !== undefined ? this.formatPrice(this.totalPriceTl.totalPrice) + \" TL\" : \"0 TL\"} ${totalDollar}${totalEuro}`;\n },\n\n totalPriceNextMonthCalc() {\n var _this$totalPriceNextM, _this$totalPriceNextM2, _this$totalPriceNextM3, _this$totalPriceNextM4, _this$totalPriceNextM5, _this$totalPriceNextM6;\n\n let totalDollar = (_this$totalPriceNextM = this.totalPriceNextMonthDollar) !== null && _this$totalPriceNextM !== void 0 && _this$totalPriceNextM.totalPrice ? \" + \" + this.formatPriceDollar((_this$totalPriceNextM2 = this.totalPriceNextMonthDollar) === null || _this$totalPriceNextM2 === void 0 ? void 0 : _this$totalPriceNextM2.totalPrice) + \" Dolar\" : \"\";\n let totalEuro = (_this$totalPriceNextM3 = this.totalPriceNextMonthEuro) !== null && _this$totalPriceNextM3 !== void 0 && _this$totalPriceNextM3.totalPrice ? \" + \" + this.formatPriceEuro((_this$totalPriceNextM4 = this.totalPriceNextMonthEuro) === null || _this$totalPriceNextM4 === void 0 ? void 0 : _this$totalPriceNextM4.totalPrice) + \" Euro\" : \"\";\n\n if (((_this$totalPriceNextM5 = this.totalPriceNextMonthDollar) === null || _this$totalPriceNextM5 === void 0 ? void 0 : _this$totalPriceNextM5.totalPrice) !== undefined || ((_this$totalPriceNextM6 = this.totalPriceNextMonthEuro) === null || _this$totalPriceNextM6 === void 0 ? void 0 : _this$totalPriceNextM6.totalPrice) !== undefined) {\n this.haveCurrency = true;\n }\n\n const tlTotal = this.totalPriceNextMonthTl && this.totalPriceNextMonthTl.totalPrice !== undefined ? this.formatPrice(this.totalPriceNextMonthTl.totalPrice) + \" TL\" : \"0 TL\";\n return `${tlTotal} ${totalDollar}${totalEuro}`;\n },\n\n doubleVendorAndMarketFeature() {\n this.mergedDatasAfterSummaryPull = [];\n this.summaryData.package.forEach(item => {\n if (item.marketFeature && item.perspectiveFeature) {\n this.mergedDatasAfterSummaryPull.push({\n marketFeature: {\n name: item.marketFeature.name\n },\n perspectiveFeature: {\n name: item.perspectiveFeature.name\n },\n endDate: item.endDate,\n dateSelection: item.dateSelection,\n totalFundAmount: item.marketFeature.fundAmount + item.perspectiveFeature.fundAmount,\n totalCommissionAmount: item.marketFeature.commissionAmount + item.perspectiveFeature.commissionAmount,\n totalPrice: item.marketFeature.price + item.perspectiveFeature.price\n });\n }\n\n if (item.marketFeature && item.vendorFeature && item.vendorFeature.name != \"Yok\") {\n this.mergedDatasAfterSummaryPull.push({\n marketFeature: {\n name: item.marketFeature.name\n },\n vendorFeature: {\n name: item.vendorFeature.name\n },\n endDate: item.endDate,\n dateSelection: item.dateSelection,\n totalFundAmount: item.marketFeature.fundAmount + item.vendorFeature.fundAmount,\n totalCommissionAmount: item.marketFeature.commissionAmount + item.vendorFeature.commissionAmount,\n totalPrice: item.marketFeature.price + item.vendorFeature.price\n });\n }\n });\n },\n\n confirmPackage() {\n this.isButtonClicked = true;\n const args = {\n purchaseId: Number(this.packageNumber),\n IsRecommendationPackage: this.IsRecommendationPackage,\n cusId: this.customerId\n };\n this.confirm(args).then(res => {\n if (res.error) {\n this.$toast.error(res.message);\n this.isButtonClicked = false;\n } else {\n this.$router.push({\n name: \"CustomerDetail\",\n params: {\n customerId: this.getCustomerId,\n customerNumber: this.$route.params.customerNumber\n }\n });\n }\n });\n }\n\n },\n watch: {\n summaryData(val) {\n const getDateSelection = val.package.filter(item => item.dateSelection.key == \"1\");\n\n if (getDateSelection.length > 0) {\n this.showNextMonthRow = true;\n } else {\n this.showNextMonthRow = false;\n }\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/Checkout.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");
|
|
1871
1871
|
|
|
1872
1872
|
/***/ }),
|
|
1873
1873
|
|
|
@@ -1879,7 +1879,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
|
|
|
1879
1879
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1880
1880
|
|
|
1881
1881
|
"use strict";
|
|
1882
|
-
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/* harmony import */ var _utils_breadcrumb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/breadcrumb */ \"./src/utils/breadcrumb.js\");\n/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../mixins */ \"./src/mixins/index.js\");\n/* harmony import */ var _components_base_ScreenPrices_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/base/ScreenPrices.vue */ \"./src/components/base/ScreenPrices.vue\");\n\n\n\n\n\n\nconst ListViewSkeleton = () => __webpack_require__.e(/*! import() */ 4).then(__webpack_require__.bind(null, /*! @/components/base/ListViewSkeleton */ \"./src/components/base/ListViewSkeleton.vue\"));\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"CustomerDetail\",\n components: {\n CustomerInfo: _components__WEBPACK_IMPORTED_MODULE_1__[\"CustomerInfo\"],\n DataRequestItem: _components__WEBPACK_IMPORTED_MODULE_1__[\"DataRequestItem\"],\n Pager: _components__WEBPACK_IMPORTED_MODULE_1__[\"Pager\"],\n FundCommissionRate: _components__WEBPACK_IMPORTED_MODULE_1__[\"FundCommissionRate\"],\n HistoryFilter: _components__WEBPACK_IMPORTED_MODULE_1__[\"HistoryFilter\"],\n DataHistoryItem: _components__WEBPACK_IMPORTED_MODULE_1__[\"DataHistoryItem\"],\n InvoiceFilter: _components__WEBPACK_IMPORTED_MODULE_1__[\"InvoiceFilter\"],\n DataInvoiceItem: _components__WEBPACK_IMPORTED_MODULE_1__[\"DataInvoiceItem\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"],\n InfoArea: _components__WEBPACK_IMPORTED_MODULE_1__[\"InfoArea\"],\n ScreenPrices: _components_base_ScreenPrices_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n ListViewSkeleton\n },\n\n mounted() {\n if (this.$route.params.customerId !== undefined) {\n this.cusId = this.$route.params.customerId;\n } else {\n this.cusId = this.veriDagitimModel.userId;\n this.cusNo = this.veriDagitimModel.customerId;\n }\n\n this.fillFilter();\n this.getAllPackages(this.cusId);\n this.getRecommendedData();\n this.fillFilter();\n\n if (!this.veriDagitimModel) {\n localStorage.setItem(\"userCusId\", this.cusId);\n this.setUserCustomerId(this.cusId);\n this.getCustomer();\n } else {\n this.getCustomer();\n this.handleCustomer(this.veriDagitimModel);\n localStorage.setItem(\"esube\", \"yes\");\n localStorage.setItem(\"userId\", this.cusId);\n localStorage.setItem(\"cusNo\", this.cusNo);\n\n if (this.cusId) {\n let userIdAsNumber = parseInt(this.cusId);\n let payload = {\n id: userIdAsNumber\n };\n this.getMember(payload).then(response => {\n this.setUserInfo({ ...response.data.loginInfo,\n memberType: this.memberType\n });\n });\n }\n }\n },\n\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n props: {\n veriDagitimModel: Object,\n memberType: {\n type: Number\n }\n },\n\n data() {\n return {\n recommendedPackages: null,\n getPaymentStatuses: [],\n currentCustomer: null,\n currentYearNumber: new Date().getFullYear(),\n currentMonthNumber: new Date().getMonth() + 1,\n countDown: 10,\n timerRunning: true,\n logsLoader: false,\n timerStatus: \"Yenileniyor\",\n screenPriceList: [],\n featureScreenPricesList: [],\n newScreenPrice: [],\n tabs: [{\n id: 0,\n text: \"Veri Paketlerim\"\n }, {\n id: 1,\n text: \"Veri Paketi Ekstrelerim\"\n }, {\n id: 3,\n text: \"Ekran Ücretleri\"\n }, {\n id: 4,\n text: \"Paket Talep Et\"\n }, {\n id: 2,\n text: \"Değişiklikler\"\n }],\n esube: localStorage.getItem(\"esube\"),\n customerPaymentStatusId: null,\n currentTab: 0,\n cusId: null,\n cusNo: null,\n isDataInvoiceLoaded: true,\n activeIndex: null,\n isActiveRow: false,\n isLoading: false,\n REQUESTED_PACKAGE_STATUS_ID: 6,\n SUCCESSFUL_INTEGRATION: true,\n UNSUCCESSFUL_INTEGRATION: false,\n EXCLUDED_APPLICATION_NAME: \"Foreks\"\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"apps\", \"profAlgoApps\", \"appsTab\", \"profAlgoTab\", \"fundAndCommissionRates\", \"customer\", \"allPackages\", \"getRecommendedPackages\", \"history\", \"historyList\", \"getFilterList\", \"invoiceList\", \"getHistoryFilter\", \"getUserInfo\"]),\n\n getUserType() {\n const REPRESENTATIVE_CODE = \"yes\";\n return this.esube === REPRESENTATIVE_CODE;\n },\n\n customerId() {\n if (this.$route.params.customerNumber) {\n return this.$route.params.customerNumber;\n } else {\n return this.veriDagitimModel.customerId;\n }\n },\n\n getCustomerPaymentStatusId() {\n if (this.esube == \"yes\") {\n return this.veriDagitimModel.loginInfo.paymentStatusId;\n } else {\n return this.customer.paymentStatusId;\n }\n },\n\n getAllPackagesData() {\n return this.allPackages;\n },\n\n isCompleted() {\n return this.fundAndCommissionRates.fundAmount >= this.fundAndCommissionRates.targetFundAmount || this.fundAndCommissionRates.commissionAmount >= this.fundAndCommissionRates.targetCommissionAmount;\n }\n\n },\n\n created() {\n if (this.veriDagitimModel) {\n localStorage.setItem(\"veri-dagitim-token\", this.veriDagitimModel.token);\n }\n },\n\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"handleCustomer\", \"searchCustomer\", \"getAllPackages\", \"getRecommendedPackageList\", \"getHistoryList\", \"getInvoiceList\", \"getScreenPrices\", \"getFeatureScreenPrices\", \"getApps\", \"getAppsTab\", \"getProfAlgoTab\", \"getAllResearch\", \"getProfAlgoApps\", \"getMember\", \"fillFilter\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setGeneralFilter\", \"setMemberType\", \"setUserInfo\", \"setUserCustomerId\", \"setInvoiceFilter\", \"setHistoryFilter\", \"setProfAlgoApps\"]),\n\n tabClass(id) {\n return [{\n active: this.currentTab === id\n }, \"tab\"];\n },\n\n changeTab(id) {\n const ctrId = this.$route.params.customerId;\n this.currentTab = id;\n this.setGeneralFilter({\n page: 1,\n size: 5,\n filter: {}\n });\n this.timerRunning = false;\n this.countDown = 0;\n\n if (this.currentTab == 0) {\n this.getAllPackages(ctrId);\n this.timerRunning = true;\n this.countDown = 10;\n } else if (this.currentTab == 1) {\n this.setInvoiceFilter({\n page: 1,\n size: 10,\n filter: {}\n });\n this.getInvoiceList(ctrId);\n } else if (this.currentTab === 2) {\n this.setHistoryFilter({\n page: 1,\n size: 1000,\n filter: {}\n });\n this.getHistoryList(ctrId);\n } else if (this.currentTab === 3) {\n this.screenPriceList = [];\n this.getFeatureScreenPrices().then(response => {\n response.forEach(element => {\n this.screenPriceList.push(element);\n });\n });\n } else if (this.currentTab === 4) {\n this.navigate();\n }\n },\n\n returnPriceTypeForScreenPrices(priceTypeNumber) {\n if (priceTypeNumber == 1) {\n return \"TL\";\n } else if (priceTypeNumber == 2) {\n return \"Dolar\";\n } else if (priceTypeNumber == 3) {\n return \"Euro\";\n }\n },\n\n navigate() {\n const params = {\n customerNumber: this.customerId,\n memberType: this.getUserType\n };\n const query = {};\n let cusId = this.$route.params.customerId;\n params.customerId = cusId !== undefined ? cusId : localStorage.getItem(\"userId\");\n query.c = params.customerId;\n query.m = params.memberType;\n this.$router.push({\n name: \"BuyDataPackage\",\n params,\n query\n });\n },\n\n getRecommendedData() {\n this.getRecommendedPackageList(this.cusId).then(res => {\n if (res) {\n this.recommendedPackages = this.getRecommendedPackages;\n }\n });\n },\n\n checkIsDataInvoiceFilterChangedAndLoaded(param) {\n this.isDataInvoiceLoaded = param;\n },\n\n getCustomer() {\n this.searchCustomer({\n customerNo: this.customerId,\n cusId: this.cusId\n }).then(res => {\n if (!res.statusCode) {\n Object(_utils_breadcrumb__WEBPACK_IMPORTED_MODULE_2__[\"getBreadCrumbs\"])({\n breadcrumbs: [\"CustomerDetail\"],\n customer: this.customer,\n customerDetail: this.customerId,\n cusId: this.cusId\n });\n const paymentStatuses = this.getFilterList.filter(o => {\n return o.name === \"PaymentStatus\";\n });\n if (paymentStatuses.length > 0) this.getPaymentStatuses = paymentStatuses[0].values;\n this.currentCustomer = this.customer;\n }\n });\n },\n\n toggleCountdown() {\n this.timerRunning = !this.timerRunning;\n\n if (!this.timerRunning) {\n this.timerStatus = \"Duraklatıldı\";\n } else {\n this.timerStatus = \"Yenileniyor.\";\n this.countDown = 10;\n }\n },\n\n timerChecker(isPopupOpened) {\n if (isPopupOpened) {\n this.timerRunning = false;\n } else {\n this.timerRunning = true;\n this.countDown = 10;\n }\n },\n\n subtitleRules(d) {\n let result = null;\n\n if (d.application != null && (d.application.id == 3 || d.application.id == 2)) {\n result = d.application.shortContent;\n } else if (d.research.length && d.application == null) {\n result = d.research[0].name;\n } else if (d.algorithm.length && d.platform == null && (d.application.id == 4 || d.application.id == 7)) {\n result = d.algorithm[0].name;\n } else {\n result = d.platform.name;\n }\n\n return result;\n },\n\n subtitleRulesInvoice(d) {\n var _d$platform, _d$platform2;\n\n let result = null;\n\n if (d.application != null && (d.application.applicationId == 3 || d.application.applicationId == 2)) {\n result = d.application.shortContent;\n } else if (d.research.length && d.application == null) {\n result = d.research[0].name;\n } else if ((!d.algorithm.length || d.algorithm.length) && (d.application.applicationId == 7 || d.application.applicationId == 4) && ((_d$platform = d.platform) === null || _d$platform === void 0 ? void 0 : _d$platform.platformId) == 1) {\n result = d.platform.name;\n } else if (d.algorithm.length && d.application.applicationId == 4 && ((_d$platform2 = d.platform) === null || _d$platform2 === void 0 ? void 0 : _d$platform2.platformId) != 2) {\n result = d.algorithm[0].name;\n } else if (d.algorithm.length && d.application.applicationId == 7 && d.platform == null) {\n result = d.algorithm[0].name;\n } else {\n result = d.platform.name;\n }\n\n return result;\n }\n\n },\n watch: {\n countDown: {\n handler(value) {\n if (this.currentTab == 0 && value >= -1) {\n if (this.timerRunning) {\n setTimeout(() => {\n this.countDown--;\n\n if (this.countDown === 0) {\n this.logsLoader = true;\n this.getAllPackages(this.$route.params.customerId);\n this.getRecommendedData();\n } else if (this.countDown === -1) {\n this.logsLoader = false;\n this.countDown = 10;\n }\n }, 1000);\n }\n }\n },\n\n immediate: true,\n deep: true\n },\n getAllPackagesData: {\n handler(value) {\n const allData = JSON.parse(JSON.stringify(value.data));\n const checkIsRequested = allData.filter(o => {\n var _o$application;\n\n return o.packageStatus.id === this.REQUESTED_PACKAGE_STATUS_ID && o.isSuccessfulIntegration === this.SUCCESSFUL_INTEGRATION && ((_o$application = o.application) === null || _o$application === void 0 ? void 0 : _o$application.name) !== this.EXCLUDED_APPLICATION_NAME;\n });\n const checkisSuccessfulIntegration = allData.filter(o => o.packageStatus.id === this.REQUESTED_PACKAGE_STATUS_ID && o.isSuccessfulIntegration === this.UNSUCCESSFUL_INTEGRATION);\n this.timerRunning = (checkIsRequested.length > 0 ? true : false) || (checkIsRequested.length === checkisSuccessfulIntegration.length ? false : true);\n },\n\n deep: true\n }\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/CustomerDetail.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");
|
|
1882
|
+
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/* harmony import */ var _utils_breadcrumb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/breadcrumb */ \"./src/utils/breadcrumb.js\");\n/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../mixins */ \"./src/mixins/index.js\");\n/* harmony import */ var _components_base_ScreenPrices_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/base/ScreenPrices.vue */ \"./src/components/base/ScreenPrices.vue\");\n\n\n\n\n\n\nconst ListViewSkeleton = () => __webpack_require__.e(/*! import() */ 4).then(__webpack_require__.bind(null, /*! @/components/base/ListViewSkeleton */ \"./src/components/base/ListViewSkeleton.vue\"));\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"CustomerDetail\",\n components: {\n CustomerInfo: _components__WEBPACK_IMPORTED_MODULE_1__[\"CustomerInfo\"],\n DataRequestItem: _components__WEBPACK_IMPORTED_MODULE_1__[\"DataRequestItem\"],\n Pager: _components__WEBPACK_IMPORTED_MODULE_1__[\"Pager\"],\n FundCommissionRate: _components__WEBPACK_IMPORTED_MODULE_1__[\"FundCommissionRate\"],\n HistoryFilter: _components__WEBPACK_IMPORTED_MODULE_1__[\"HistoryFilter\"],\n DataHistoryItem: _components__WEBPACK_IMPORTED_MODULE_1__[\"DataHistoryItem\"],\n InvoiceFilter: _components__WEBPACK_IMPORTED_MODULE_1__[\"InvoiceFilter\"],\n DataInvoiceItem: _components__WEBPACK_IMPORTED_MODULE_1__[\"DataInvoiceItem\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"],\n InfoArea: _components__WEBPACK_IMPORTED_MODULE_1__[\"InfoArea\"],\n ScreenPrices: _components_base_ScreenPrices_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n ListViewSkeleton\n },\n\n mounted() {\n if (this.$route.params.customerId !== undefined) {\n this.cusId = this.$route.params.customerId;\n } else {\n this.cusId = this.veriDagitimModel.userId;\n this.cusNo = this.veriDagitimModel.customerId;\n }\n\n this.fillFilter();\n this.getAllPackages(this.cusId);\n this.getRecommendedData();\n this.fillFilter();\n\n if (!this.veriDagitimModel) {\n localStorage.setItem(\"userCusId\", this.cusId);\n this.setUserCustomerId(this.cusId);\n this.getCustomer();\n } else {\n this.getCustomer();\n this.handleCustomer(this.veriDagitimModel);\n localStorage.setItem(\"esube\", \"yes\");\n localStorage.setItem(\"userId\", this.cusId);\n localStorage.setItem(\"cusNo\", this.cusNo);\n\n if (this.cusId) {\n let userIdAsNumber = parseInt(this.cusId);\n let payload = {\n id: userIdAsNumber\n };\n this.getMember(payload).then(response => {\n this.setUserInfo({ ...response.data.loginInfo,\n memberType: this.memberType\n });\n });\n }\n }\n },\n\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n props: {\n veriDagitimModel: Object,\n memberType: {\n type: Number\n }\n },\n\n data() {\n return {\n recommendedPackages: null,\n getPaymentStatuses: [],\n currentCustomer: null,\n currentYearNumber: new Date().getFullYear(),\n currentMonthNumber: new Date().getMonth() + 1,\n countDown: 10,\n timerRunning: true,\n logsLoader: false,\n timerStatus: \"Yenileniyor\",\n screenPriceList: [],\n featureScreenPricesList: [],\n newScreenPrice: [],\n tabs: [{\n id: 0,\n text: \"Veri Paketlerim\"\n }, {\n id: 1,\n text: \"Veri Paketi Ekstrelerim\"\n }, {\n id: 3,\n text: \"Ekran Ücretleri\"\n }, {\n id: 4,\n text: \"Paket Talep Et\"\n }, {\n id: 2,\n text: \"Değişiklikler\"\n }],\n esube: localStorage.getItem(\"esube\"),\n customerPaymentStatusId: null,\n currentTab: 0,\n cusId: null,\n cusNo: null,\n isDataInvoiceLoaded: true,\n activeIndex: null,\n isActiveRow: false,\n isLoading: false,\n REQUESTED_PACKAGE_STATUS_ID: 6,\n SUCCESSFUL_INTEGRATION: true,\n UNSUCCESSFUL_INTEGRATION: false,\n EXCLUDED_APPLICATION_NAME: \"Foreks\"\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"apps\", \"profAlgoApps\", \"appsTab\", \"profAlgoTab\", \"fundAndCommissionRates\", \"customer\", \"allPackages\", \"getRecommendedPackages\", \"history\", \"historyList\", \"getFilterList\", \"invoiceList\", \"getHistoryFilter\", \"getUserInfo\"]),\n\n getUserType() {\n const REPRESENTATIVE_CODE = \"yes\";\n return this.esube === REPRESENTATIVE_CODE;\n },\n\n customerId() {\n if (this.$route.params.customerNumber) {\n return this.$route.params.customerNumber;\n } else {\n return this.veriDagitimModel.customerId;\n }\n },\n\n getCustomerPaymentStatusId() {\n if (this.esube == \"yes\") {\n return this.veriDagitimModel.loginInfo.paymentStatusId;\n } else {\n return this.customer.paymentStatusId;\n }\n },\n\n getAllPackagesData() {\n return this.allPackages;\n },\n\n isCompleted() {\n return this.fundAndCommissionRates.fundAmount >= this.fundAndCommissionRates.targetFundAmount || this.fundAndCommissionRates.commissionAmount >= this.fundAndCommissionRates.targetCommissionAmount;\n }\n\n },\n\n created() {\n if (this.veriDagitimModel) {\n localStorage.setItem(\"veri-dagitim-token\", this.veriDagitimModel.token);\n }\n },\n\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"handleCustomer\", \"searchCustomer\", \"getAllPackages\", \"getRecommendedPackageList\", \"getHistoryList\", \"getInvoiceList\", \"getScreenPrices\", \"getFeatureScreenPrices\", \"getApps\", \"getAppsTab\", \"getProfAlgoTab\", \"getAllResearch\", \"getProfAlgoApps\", \"getMember\", \"fillFilter\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setGeneralFilter\", \"setMemberType\", \"setUserInfo\", \"setUserCustomerId\", \"setInvoiceFilter\", \"setHistoryFilter\", \"setProfAlgoApps\"]),\n\n tabClass(id) {\n return [{\n active: this.currentTab === id\n }, \"tab\"];\n },\n\n changeTab(id) {\n const ctrId = this.$route.params.customerId;\n this.currentTab = id;\n this.setGeneralFilter({\n page: 1,\n size: 5,\n filter: {}\n });\n this.timerRunning = false;\n this.countDown = 0;\n\n if (this.currentTab == 0) {\n this.getAllPackages(ctrId);\n this.timerRunning = true;\n this.countDown = 10;\n } else if (this.currentTab == 1) {\n this.setGeneralFilter({\n page: 1,\n size: 5,\n filter: {}\n });\n this.setInvoiceFilter({\n page: 1,\n size: 5,\n filter: {}\n });\n this.getInvoiceList(ctrId);\n } else if (this.currentTab === 2) {\n this.setHistoryFilter({\n page: 1,\n size: 1000,\n filter: {}\n });\n this.getHistoryList(ctrId);\n } else if (this.currentTab === 3) {\n this.screenPriceList = [];\n this.getFeatureScreenPrices().then(response => {\n response.forEach(element => {\n this.screenPriceList.push(element);\n });\n });\n } else if (this.currentTab === 4) {\n this.navigate();\n }\n },\n\n returnPriceTypeForScreenPrices(priceTypeNumber) {\n if (priceTypeNumber == 1) {\n return \"TL\";\n } else if (priceTypeNumber == 2) {\n return \"Dolar\";\n } else if (priceTypeNumber == 3) {\n return \"Euro\";\n }\n },\n\n navigate() {\n const params = {\n customerNumber: this.customerId,\n memberType: this.getUserType\n };\n const query = {};\n let cusId = this.$route.params.customerId;\n params.customerId = cusId !== undefined ? cusId : localStorage.getItem(\"userId\");\n query.c = params.customerId;\n query.m = params.memberType;\n this.$router.push({\n name: \"BuyDataPackage\",\n params,\n query\n });\n },\n\n getRecommendedData() {\n this.getRecommendedPackageList(this.cusId).then(res => {\n if (res) {\n this.recommendedPackages = this.getRecommendedPackages;\n }\n });\n },\n\n checkIsDataInvoiceFilterChangedAndLoaded(param) {\n this.isDataInvoiceLoaded = param;\n },\n\n getCustomer() {\n this.searchCustomer({\n customerNo: this.customerId,\n cusId: this.cusId\n }).then(res => {\n if (!res.statusCode) {\n Object(_utils_breadcrumb__WEBPACK_IMPORTED_MODULE_2__[\"getBreadCrumbs\"])({\n breadcrumbs: [\"CustomerDetail\"],\n customer: this.customer,\n customerDetail: this.customerId,\n cusId: this.cusId\n });\n const paymentStatuses = this.getFilterList.filter(o => {\n return o.name === \"PaymentStatus\";\n });\n if (paymentStatuses.length > 0) this.getPaymentStatuses = paymentStatuses[0].values;\n this.currentCustomer = this.customer;\n }\n });\n },\n\n toggleCountdown() {\n this.timerRunning = !this.timerRunning;\n\n if (!this.timerRunning) {\n this.timerStatus = \"Duraklatıldı\";\n } else {\n this.timerStatus = \"Yenileniyor.\";\n this.countDown = 10;\n }\n },\n\n timerChecker(isPopupOpened) {\n if (isPopupOpened) {\n this.timerRunning = false;\n } else {\n this.timerRunning = true;\n this.countDown = 10;\n }\n },\n\n subtitleRules(d) {\n let result = null;\n\n if (d.application != null && (d.application.id == 3 || d.application.id == 2)) {\n result = d.application.shortContent;\n } else if (d.research.length && d.application == null) {\n result = d.research[0].name;\n } else if (d.algorithm.length && d.platform == null && (d.application.id == 4 || d.application.id == 7)) {\n result = d.algorithm[0].name;\n } else {\n result = d.platform.name;\n }\n\n return result;\n },\n\n subtitleRulesInvoice(d) {\n var _d$platform, _d$platform2;\n\n let result = null;\n\n if (d.application != null && (d.application.applicationId == 3 || d.application.applicationId == 2)) {\n result = d.application.shortContent;\n } else if (d.research.length && d.application == null) {\n result = d.research[0].name;\n } else if ((!d.algorithm.length || d.algorithm.length) && (d.application.applicationId == 7 || d.application.applicationId == 4) && ((_d$platform = d.platform) === null || _d$platform === void 0 ? void 0 : _d$platform.platformId) == 1) {\n result = d.platform.name;\n } else if (d.algorithm.length && d.application.applicationId == 4 && ((_d$platform2 = d.platform) === null || _d$platform2 === void 0 ? void 0 : _d$platform2.platformId) != 2) {\n result = d.algorithm[0].name;\n } else if (d.algorithm.length && d.application.applicationId == 7 && d.platform == null) {\n result = d.algorithm[0].name;\n } else {\n result = d.platform.name;\n }\n\n return result;\n }\n\n },\n watch: {\n countDown: {\n handler(value) {\n if (this.currentTab == 0 && value >= -1) {\n if (this.timerRunning) {\n setTimeout(() => {\n this.countDown--;\n\n if (this.countDown === 0) {\n this.logsLoader = true;\n this.getAllPackages(this.$route.params.customerId);\n this.getRecommendedData();\n } else if (this.countDown === -1) {\n this.logsLoader = false;\n this.countDown = 10;\n }\n }, 1000);\n }\n }\n },\n\n immediate: true,\n deep: true\n },\n getAllPackagesData: {\n handler(value) {\n const allData = JSON.parse(JSON.stringify(value.data));\n const checkIsRequested = allData.filter(o => {\n var _o$application;\n\n return o.packageStatus.id === this.REQUESTED_PACKAGE_STATUS_ID && o.isSuccessfulIntegration === this.SUCCESSFUL_INTEGRATION && ((_o$application = o.application) === null || _o$application === void 0 ? void 0 : _o$application.name) !== this.EXCLUDED_APPLICATION_NAME;\n });\n const checkisSuccessfulIntegration = allData.filter(o => o.packageStatus.id === this.REQUESTED_PACKAGE_STATUS_ID && o.isSuccessfulIntegration === this.UNSUCCESSFUL_INTEGRATION);\n this.timerRunning = (checkIsRequested.length > 0 ? true : false) || (checkIsRequested.length === checkisSuccessfulIntegration.length ? false : true);\n },\n\n deep: true\n }\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/CustomerDetail.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");
|
|
1883
1883
|
|
|
1884
1884
|
/***/ }),
|
|
1885
1885
|
|
|
@@ -2119,7 +2119,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
2119
2119
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2120
2120
|
|
|
2121
2121
|
"use strict";
|
|
2122
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _vm.page.totalElements > 0\n ? _c(\"div\", { staticClass: \"pager\" }, [\n _c(\"div\", { staticClass: \"pager__size\" }, [\n _c(\"span\", [_vm._v(\"Sayfa Başına\")]),\n _c(\n \"select\",\n {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.pageSize,\n expression: \"pageSize\",\n },\n ],\n staticClass: \"pager__size-select\",\n attrs: { id: \"pager__size-select\" },\n on: {\n change: function ($event) {\n
|
|
2122
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _vm.page.totalElements > 0\n ? _c(\"div\", { staticClass: \"pager\" }, [\n _c(\"div\", { staticClass: \"pager__size\" }, [\n _c(\"span\", [_vm._v(\"Sayfa Başına\")]),\n _c(\n \"select\",\n {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.pageSize,\n expression: \"pageSize\",\n },\n ],\n staticClass: \"pager__size-select\",\n attrs: { id: \"pager__size-select\" },\n on: {\n change: [\n function ($event) {\n var $$selectedVal = Array.prototype.filter\n .call($event.target.options, function (o) {\n return o.selected\n })\n .map(function (o) {\n var val = \"_value\" in o ? o._value : o.value\n return val\n })\n _vm.pageSize = $event.target.multiple\n ? $$selectedVal\n : $$selectedVal[0]\n },\n function ($event) {\n return _vm.setPageSizes($event.target.value)\n },\n ],\n },\n },\n [\n _c(\"option\", { attrs: { value: \"5\" } }, [_vm._v(\"5\")]),\n _c(\"option\", { attrs: { value: \"10\" } }, [_vm._v(\"10\")]),\n _c(\"option\", { attrs: { value: \"20\" } }, [_vm._v(\"20\")]),\n ]\n ),\n _c(\"span\", [_vm._v(\"satır\")]),\n ]),\n _c(\"ul\", { staticClass: \"pager__items\" }, [\n _c(\"li\", { staticClass: \"pager__item-text\" }, [\n _c(\n \"a\",\n {\n class: { disabled: _vm.page.pageNumber === 1 },\n attrs: { id: \"controls-first-page\" },\n on: {\n click: function ($event) {\n return _vm.setPage(1)\n },\n },\n },\n [_c(\"base-icon\", { attrs: { name: \"controls-first-page\" } })],\n 1\n ),\n ]),\n _c(\"li\", { staticClass: \"pager__item-text\" }, [\n _c(\n \"a\",\n {\n class: { disabled: _vm.page.pageNumber === 1 },\n attrs: { id: \"controls-backward\" },\n on: {\n click: function ($event) {\n return _vm.setPage(_vm.page.pageNumber - 1)\n },\n },\n },\n [_c(\"base-icon\", { attrs: { name: \"controls-backward\" } })],\n 1\n ),\n ]),\n ]),\n _c(\n \"ul\",\n {\n staticClass: \"pager__items overflow-settings\",\n class: { disableScroll: _vm.page.totalPages <= 3 },\n },\n _vm._l(_vm.page.totalPages, function (n) {\n return _c(\n \"li\",\n {\n key: n,\n staticClass: \"pager__item-number\",\n class: { active: _vm.page.pageNumber === n },\n },\n [\n _c(\n \"span\",\n {\n attrs: { id: \"pager__item-number-\" + n },\n on: {\n click: function ($event) {\n return _vm.setPage(n)\n },\n },\n },\n [_vm._v(_vm._s(n))]\n ),\n ]\n )\n }),\n 0\n ),\n _c(\"ul\", { staticClass: \"pager__items\" }, [\n _c(\"li\", { staticClass: \"pager__item-text\" }, [\n _c(\n \"a\",\n {\n class: {\n disabled: _vm.page.pageNumber === _vm.page.totalPages,\n },\n attrs: { id: \"controls-forward\" },\n on: {\n click: function ($event) {\n return _vm.setPage(_vm.page.pageNumber + 1)\n },\n },\n },\n [_c(\"base-icon\", { attrs: { name: \"controls-forward\" } })],\n 1\n ),\n ]),\n _c(\"li\", { staticClass: \"pager__item-text\" }, [\n _c(\n \"a\",\n {\n class: {\n disabled: _vm.page.pageNumber === _vm.page.totalPages,\n },\n attrs: { id: \"controls-last-page\" },\n on: {\n click: function ($event) {\n return _vm.setPage(_vm.page.totalPages)\n },\n },\n },\n [_c(\"base-icon\", { attrs: { name: \"controls-last-page\" } })],\n 1\n ),\n ]),\n ]),\n ])\n : _vm._e()\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/base/Pager.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2236ad6782-vue-loader-template%22%7D!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
|
|
2123
2123
|
|
|
2124
2124
|
/***/ }),
|
|
2125
2125
|
|
|
@@ -2143,7 +2143,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
2143
2143
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2144
2144
|
|
|
2145
2145
|
"use strict";
|
|
2146
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n _vm._l(_vm.sortedScreenPriceList, function (item, index) {\n return _c(\"div\", { key: item.id, staticClass: \"accordion-wrapper\" }, [\n item.applicationShortContent ||\n item.researchName ||\n item.applicationName\n ? _c(\n \"div\",\n {\n class: [\n \"accordion-wrapper__row caption\",\n _vm.activeIndex ? \"active-\" + _vm.activeIndex : \"\",\n ],\n on: {\n click: function ($event) {\n return _vm.toggleAccordion(\n item.applicationId,\n item.platformId,\n item.researchId,\n index\n )\n },\n },\n },\n [\n _c(\n \"div\",\n {\n staticClass: \"accordion-title-wrapper\",\n class: { active: _vm.activeIndex },\n },\n [\n _c(\"div\", { staticClass: \"accordion-wrapper__row__cell\" }, [\n item.applicationShortContent != null &&\n item.applicationName != null\n ? _c(\"span\", [_vm._v(_vm._s(item.applicationName))])\n : _vm._e(),\n item.researchName != null\n ? _c(\"span\", [\n _vm._v(\" \" + _vm._s(item.researchName) + \" \"),\n ])\n : _vm._e(),\n item.applicationName != null &&\n item.applicationShortContent == null\n ? _c(\"span\", [\n _vm._v(\n _vm._s(item.applicationName) +\n \" \" +\n _vm._s(item.platformName)\n ),\n ])\n : _vm._e(),\n ]),\n _c(\n \"div\",\n {\n staticClass: \"accordion-wrapper__row__cell\",\n class: { hidden: _vm.activeIndex !== index },\n },\n [_vm._v(\" Ücret \")]\n ),\n _c(\n \"div\",\n {\n staticClass: \"accordion-wrapper__row__cell\",\n class: { hidden: _vm.activeIndex !== index },\n },\n [_vm._v(\" Gerekli Komisyon \")]\n ),\n _c(\n \"div\",\n {\n staticClass: \"accordion-wrapper__row__cell\",\n class: { hidden: _vm.activeIndex !== index },\n },\n [_vm._v(\" Gerekli Fon / Bes Büyüklüğü \")]\n ),\n _c(\"base-icon\", {\n staticClass: \"collapse-icon\",\n class: { active: _vm.activeIndex === index },\n attrs: { name: \"chevron-up\" },\n }),\n ],\n 1\n ),\n ]\n )\n : _vm._e(),\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.activeIndex === index,\n expression: \"activeIndex === index\",\n },\n ],\n staticClass: \"accordion-content\",\n },\n [\n _vm._l(\n _vm.localFeatureScreenPricesList,\n function (items, innerIndex) {\n return _c(\n \"div\",\n { key: items.id, staticClass: \"accordion-wrapper__row\" },\n [\n _c(\"div\", { staticClass: \"accordion-wrapper__row__cell\" }, [\n _c(\"span\", { staticClass: \"inner-texts index\" }, [\n _vm._v(_vm._s(innerIndex + 1)),\n ]),\n items.market\n ? _c(\"span\", { staticClass: \"inner-texts\" }, [\n _vm._v(\" \" + _vm._s(items.market.name) + \" \"),\n items.perspective\n ? _c(\"span\", { staticClass: \"inner-texts\" }, [\n _vm._v(\n \" \" + _vm._s(items.perspective.name) + \" \"\n ),\n ])\n : _vm._e(),\n items.vendor\n ? _c(\"span\", { staticClass: \"inner-texts\" }, [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.splitVendorNames(items.vendor.name)\n ) +\n \" \"\n ),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n items.algorithm\n ? _c(\"span\", { staticClass: \"inner-texts\" }, [\n _vm._v(\" \" + _vm._s(items.algorithm.name) + \" \"),\n ])\n : _vm._e(),\n items.research\n ? _c(\"span\", { staticClass: \"inner-texts\" }, [\n _vm._v(\" \" + _vm._s(items.research.name) + \" \"),\n ])\n : _vm._e(),\n items.foreignIndice\n ? _c(\"span\", { staticClass: \"inner-texts\" }, [\n _vm._v(\n \" \" + _vm._s(items.foreignIndice.name) + \" \"\n ),\n ])\n : _vm._e(),\n ]),\n _c(\"div\", { staticClass: \"accordion-wrapper__row__cell\" }, [\n items.price != 0\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceNoDecimal(\n items.price +\n (items.featureType == 3 ||\n items.featureType == 4\n ? _vm.newScreenPrice[0].price\n : 0)\n )\n ) +\n \" \" +\n _vm._s(\n _vm.returnPriceTypeForScreenPrices(\n items.priceType\n )\n ) +\n \" \"\n ),\n ])\n : _c(\"span\", [\n _vm._v(\n \" 0 \" +\n _vm._s(\n _vm.returnPriceTypeForScreenPrices(\n items.priceType\n )\n ) +\n \" \"\n ),\n ]),\n ]),\n _c(\"div\", { staticClass: \"accordion-wrapper__row__cell\" }, [\n items.commissionAmount != 0\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceNoDecimal(\n items.commissionAmount +\n (items.featureType == 3 ||\n items.featureType == 4\n ? _vm.newScreenPrice[0].commissionAmount\n : 0)\n )\n ) +\n \" TL \"\n ),\n ])\n : _c(\"span\", [_vm._v(\" 0 TL \")]),\n ]),\n _c(\"div\", { staticClass: \"accordion-wrapper__row__cell\" }, [\n items.fundAmount != 0\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceNoDecimal(\n items.fundAmount +\n (items.featureType == 3 ||\n items.featureType == 4\n ? _vm.newScreenPrice[0].fundAmount\n : 0)\n )\n ) +\n \" TL \"\n ),\n ])\n : _c(\"span\", [_vm._v(\" 0 TL \")]),\n ]),\n ]\n )\n }\n ),\n _vm.isLoading\n ? _c(\"base-icon\", {\n staticClass: \"loader-icon\",\n attrs: { name: \"loader\" },\n })\n : _vm._e(),\n ],\n 2\n ),\n ])\n }),\n 0\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/base/ScreenPrices.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2236ad6782-vue-loader-template%22%7D!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
|
|
2146
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n _vm._l(_vm.sortedScreenPriceList, function (item, index) {\n return _c(\"div\", { key: item.id, staticClass: \"accordion-wrapper\" }, [\n item.applicationShortContent ||\n item.researchName ||\n item.applicationName\n ? _c(\n \"div\",\n {\n class: [\n \"accordion-wrapper__row caption\",\n _vm.activeIndex ? \"active-\" + _vm.activeIndex : \"\",\n ],\n on: {\n click: function ($event) {\n return _vm.toggleAccordion(\n item.applicationId,\n item.platformId,\n item.researchId,\n index\n )\n },\n },\n },\n [\n _c(\n \"div\",\n {\n staticClass: \"accordion-title-wrapper\",\n class: { active: _vm.activeIndex },\n },\n [\n _c(\"div\", { staticClass: \"accordion-wrapper__row__cell\" }, [\n item.applicationShortContent != null &&\n item.applicationName != null\n ? _c(\"span\", [_vm._v(_vm._s(item.applicationName))])\n : _vm._e(),\n item.researchName != null\n ? _c(\"span\", [\n _vm._v(\" \" + _vm._s(item.researchName) + \" \"),\n ])\n : _vm._e(),\n item.applicationName != null &&\n item.applicationShortContent == null\n ? _c(\"span\", [\n _vm._v(\n _vm._s(item.applicationName) +\n \" \" +\n _vm._s(item.platformName)\n ),\n ])\n : _vm._e(),\n ]),\n _c(\n \"div\",\n {\n staticClass: \"accordion-wrapper__row__cell\",\n class: { hidden: _vm.activeIndex !== index },\n },\n [_vm._v(\" Ücret \")]\n ),\n _c(\n \"div\",\n {\n staticClass: \"accordion-wrapper__row__cell\",\n class: { hidden: _vm.activeIndex !== index },\n },\n [_vm._v(\" Gerekli Komisyon \")]\n ),\n _c(\n \"div\",\n {\n staticClass: \"accordion-wrapper__row__cell\",\n class: { hidden: _vm.activeIndex !== index },\n },\n [_vm._v(\" Gerekli Fon / Bes Büyüklüğü \")]\n ),\n _c(\"base-icon\", {\n staticClass: \"collapse-icon\",\n class: { active: _vm.activeIndex === index },\n attrs: { name: \"chevron-up\" },\n }),\n ],\n 1\n ),\n ]\n )\n : _vm._e(),\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.activeIndex === index,\n expression: \"activeIndex === index\",\n },\n ],\n staticClass: \"accordion-content\",\n },\n [\n _vm._l(\n _vm.localFeatureScreenPricesList,\n function (items, innerIndex) {\n return _c(\n \"div\",\n { key: items.id, staticClass: \"accordion-wrapper__row\" },\n [\n _c(\"div\", { staticClass: \"accordion-wrapper__row__cell\" }, [\n _c(\"span\", { staticClass: \"inner-texts index\" }, [\n _vm._v(_vm._s(innerIndex + 1)),\n ]),\n items.market\n ? _c(\"span\", { staticClass: \"inner-texts\" }, [\n _vm._v(\" \" + _vm._s(items.market.name) + \" \"),\n items.perspective &&\n items.market.name != items.perspective.name\n ? _c(\"span\", { staticClass: \"inner-texts\" }, [\n _vm._v(\n \" \" + _vm._s(items.perspective.name) + \" \"\n ),\n ])\n : _vm._e(),\n items.vendor\n ? _c(\"span\", { staticClass: \"inner-texts\" }, [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.splitVendorNames(items.vendor.name)\n ) +\n \" \"\n ),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n items.algorithm\n ? _c(\"span\", { staticClass: \"inner-texts\" }, [\n _vm._v(\" \" + _vm._s(items.algorithm.name) + \" \"),\n ])\n : _vm._e(),\n items.research\n ? _c(\"span\", { staticClass: \"inner-texts\" }, [\n _vm._v(\" \" + _vm._s(items.research.name) + \" \"),\n ])\n : _vm._e(),\n items.foreignIndice\n ? _c(\"span\", { staticClass: \"inner-texts\" }, [\n _vm._v(\n \" \" + _vm._s(items.foreignIndice.name) + \" \"\n ),\n ])\n : _vm._e(),\n ]),\n _c(\"div\", { staticClass: \"accordion-wrapper__row__cell\" }, [\n items.price != 0\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceNoDecimal(\n items.price +\n (items.featureType == 3 ||\n items.featureType == 4\n ? _vm.newScreenPrice[0].price\n : 0)\n )\n ) +\n \" \" +\n _vm._s(\n _vm.returnPriceTypeForScreenPrices(\n items.priceType\n )\n ) +\n \" \"\n ),\n ])\n : _c(\"span\", [\n _vm._v(\n \" 0 \" +\n _vm._s(\n _vm.returnPriceTypeForScreenPrices(\n items.priceType\n )\n ) +\n \" \"\n ),\n ]),\n ]),\n _c(\"div\", { staticClass: \"accordion-wrapper__row__cell\" }, [\n items.commissionAmount != 0\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceNoDecimal(\n items.commissionAmount +\n (items.featureType == 3 ||\n items.featureType == 4\n ? _vm.newScreenPrice[0].commissionAmount\n : 0)\n )\n ) +\n \" TL \"\n ),\n ])\n : _c(\"span\", [_vm._v(\" 0 TL \")]),\n ]),\n _c(\"div\", { staticClass: \"accordion-wrapper__row__cell\" }, [\n items.fundAmount != 0\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPriceNoDecimal(\n items.fundAmount +\n (items.featureType == 3 ||\n items.featureType == 4\n ? _vm.newScreenPrice[0].fundAmount\n : 0)\n )\n ) +\n \" TL \"\n ),\n ])\n : _c(\"span\", [_vm._v(\" 0 TL \")]),\n ]),\n ]\n )\n }\n ),\n _vm.isLoading\n ? _c(\"base-icon\", {\n staticClass: \"loader-icon\",\n attrs: { name: \"loader\" },\n })\n : _vm._e(),\n ],\n 2\n ),\n ])\n }),\n 0\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/base/ScreenPrices.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2236ad6782-vue-loader-template%22%7D!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
|
|
2147
2147
|
|
|
2148
2148
|
/***/ }),
|
|
2149
2149
|
|