osmanli-veri-dagitim 2.1.37-dev → 2.1.38-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.
|
@@ -1675,7 +1675,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n//\n//\n//\n//\n//\n//\n//\n/
|
|
|
1675
1675
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1676
1676
|
|
|
1677
1677
|
"use strict";
|
|
1678
|
-
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 _mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins */ \"./src/mixins/index.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../constants */ \"./src/constants/index.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _utils_tokenTools__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils/tokenTools */ \"./src/utils/tokenTools.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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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: \"DataInvoiceItem\",\n props: {\n dataItem: Object\n },\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n components: {\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseIcon\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseButton\"],\n InfoArea: _components__WEBPACK_IMPORTED_MODULE_0__[\"InfoArea\"]\n },\n\n data() {\n return {\n isActive: false,\n isButtonsDisabled: false,\n purchaseTypes: {\n prev: 1,\n next: 2\n },\n esube: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_4__[\"getItem\"])(\"esube\"),\n pricesText: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_4__[\"getItem\"])(\"esube\") == \"yes\" ? \"\" : \"Fiyatlar\",\n isActivatedAccordion: false\n };\n },\n\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_3__[\"mapActions\"])([\"movePurchaseDates\"]),\n\n getTime(dateTime, formatType) {\n if (dateTime) {\n let stringDateTime = String(dateTime);\n let generateMomentDate = this.$moment(new Date(stringDateTime)).format(formatType);\n return generateMomentDate;\n } else {\n return \"-\";\n }\n },\n\n setRowForPrev(purchaseId) {\n this.setRowForPurchase(purchaseId, this.purchaseTypes.prev);\n },\n\n setRowForNext(purchaseId) {\n this.setRowForPurchase(purchaseId, this.purchaseTypes.next);\n },\n\n setRowForPurchase(purchaseId, purchaseMoveType) {\n this.isButtonsDisabled = true;\n this.movePurchaseDates({\n purchaseId: purchaseId,\n purchaseMoveType: purchaseMoveType\n }).then(response => {\n if (response.error) {\n this.$toast.error(response.message);\n } else {\n this.$toast.success(\"Durum güncellendi.\");\n this.closeModal(String(purchaseId));\n }\n\n this.isButtonsDisabled = false;\n });\n },\n\n showModal(modalId) {\n this.$modal.show(modalId);\n },\n\n closeModal(modalId) {\n this.$modal.hide(modalId);\n },\n\n accordionToggle() {\n this.isActivatedAccordion = !this.isActivatedAccordion;\n }\n\n },\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_3__[\"mapGetters\"])([\"getUserInfo\", \"fundAndCommissionRates\"]),\n\n currencySymbol() {\n return _constants__WEBPACK_IMPORTED_MODULE_2__[\"CurrencySymbol\"];\n },\n\n totalPriceTl() {\n var _this$dataItem, _this$dataItem$price, _this$dataItem$price$;\n\n return (_this$dataItem = this.dataItem) === null || _this$dataItem === void 0 ? void 0 : (_this$dataItem$price = _this$dataItem.price) === null || _this$dataItem$price === void 0 ? void 0 : (_this$dataItem$price$ = _this$dataItem$price.prices) === null || _this$dataItem$price$ === void 0 ? void 0 : _this$dataItem$price$.filter(e => e.info === this.currencySymbol.tl)[0].totalPrice;\n },\n\n totalPriceDollar() {\n var _this$dataItem2, _this$dataItem2$price, _this$dataItem2$price2;\n\n return (_this$dataItem2 = this.dataItem) === null || _this$dataItem2 === void 0 ? void 0 : (_this$dataItem2$price = _this$dataItem2.price) === null || _this$dataItem2$price === void 0 ? void 0 : (_this$dataItem2$price2 = _this$dataItem2$price.prices) === null || _this$dataItem2$price2 === void 0 ? void 0 : _this$dataItem2$price2.filter(e => e.info === this.currencySymbol.dolar)[0];\n },\n\n totalPriceEuro() {\n var _this$dataItem3, _this$dataItem3$price, _this$dataItem3$price2;\n\n return (_this$dataItem3 = this.dataItem) === null || _this$dataItem3 === void 0 ? void 0 : (_this$dataItem3$price = _this$dataItem3.price) === null || _this$dataItem3$price === void 0 ? void 0 : (_this$dataItem3$price2 = _this$dataItem3$price.prices) === null || _this$dataItem3$price2 === void 0 ? void 0 : _this$dataItem3$price2.filter(e => e.info === this.currencySymbol.euro)[0];\n },\n\n totalPriceCalc() {\n var _this$totalPriceDolla, _this$totalPriceEuro;\n\n let totalDollar = this.totalPriceDollar ? \" + $\" + this.formatPriceDollar((_this$totalPriceDolla = this.totalPriceDollar) === null || _this$totalPriceDolla === void 0 ? void 0 : _this$totalPriceDolla.totalPrice) : \"\";\n let totalEuro = this.totalPriceEuro ? \" + €\" + this.formatPriceEuro((_this$totalPriceEuro = this.totalPriceEuro) === null || _this$totalPriceEuro === void 0 ? void 0 : _this$totalPriceEuro.totalPrice) : \"\";\n return this.formatPrice(this.totalPriceTl) + \" TL\" + totalDollar + totalEuro;\n },\n\n screenPrice() {\n var _this$dataItem4, _this$dataItem4$price;\n\n if (((_this$dataItem4 = this.dataItem) === null || _this$dataItem4 === void 0 ? void 0 : (_this$dataItem4$price = _this$dataItem4.price) === null || _this$dataItem4$price === void 0 ? void 0 : _this$dataItem4$price.prices) == null) {\n var _this$dataItem5, _this$dataItem5$nextM;\n\n return (_this$dataItem5 = this.dataItem) === null || _this$dataItem5 === void 0 ? void 0 : (_this$dataItem5$nextM = _this$dataItem5.nextMonthPrice) === null || _this$dataItem5$nextM === void 0 ? void 0 : _this$dataItem5$nextM.screenPrice;\n } else {\n var _this$dataItem6, _this$dataItem6$price;\n\n return (_this$dataItem6 = this.dataItem) === null || _this$dataItem6 === void 0 ? void 0 : (_this$dataItem6$price = _this$dataItem6.price) === null || _this$dataItem6$price === void 0 ? void 0 : _this$dataItem6$price.screenPrice;\n }\n },\n\n getUserType() {\n const REPRESENTATIVE_CODE = 3;\n const userType = this.getUserInfo.memberType;\n return userType && userType === REPRESENTATIVE_CODE;\n },\n\n mergedPackagesNames() {\n var _this$dataItem$foreig, _this$dataItem$algori, _this$dataItem$resear, _this$dataItem$packag;\n\n const list = [];\n const platform = (_this$dataItem$foreig = this.dataItem.foreignIndice) === null || _this$dataItem$foreig === void 0 ? void 0 : _this$dataItem$foreig.map(i => i === null || i === void 0 ? void 0 : i.name);\n const algorithm = (_this$dataItem$algori = this.dataItem.algorithm) === null || _this$dataItem$algori === void 0 ? void 0 : _this$dataItem$algori.map(i => i === null || i === void 0 ? void 0 : i.name);\n const researchList = (_this$dataItem$resear = this.dataItem.research) === null || _this$dataItem$resear === void 0 ? void 0 : _this$dataItem$resear.map(i => i === null || i === void 0 ? void 0 : i.name);\n const marketFeature = ((_this$dataItem$packag = this.dataItem.package) === null || _this$dataItem$packag === void 0 ? void 0 : _this$dataItem$packag.map(i => {\n var _i$marketFeature;\n\n return i === null || i === void 0 ? void 0 : (_i$marketFeature = i.marketFeature) === null || _i$marketFeature === void 0 ? void 0 : _i$marketFeature.name;\n })) || [];\n const filteredMarketFeature = marketFeature.filter(name => name !== undefined);\n const filteredAlgorithm = algorithm.filter(name => name !== undefined);\n const filteredPlatform = platform.filter(name => name !== undefined);\n const filteredResearchList = researchList.filter(name => name !== undefined);\n\n if (filteredMarketFeature.length > 0) {\n list.push(...filteredMarketFeature);\n }\n\n if (filteredPlatform.length > 0) {\n list.push(...filteredPlatform);\n }\n\n if (filteredResearchList.length > 0) {\n list.push(...filteredResearchList);\n }\n\n if (filteredAlgorithm.length > 0) {\n list.push(...filteredAlgorithm);\n }\n\n return list;\n },\n\n mergedForTableData() {\n var _this$dataItem$foreig2, _this$dataItem$resear2, _this$dataItem$algori2;\n\n const list = [];\n const platform = (_this$dataItem$foreig2 = this.dataItem.foreignIndice) === null || _this$dataItem$foreig2 === void 0 ? void 0 : _this$dataItem$foreig2.map(i => i);\n const researchList = (_this$dataItem$resear2 = this.dataItem.research) === null || _this$dataItem$resear2 === void 0 ? void 0 : _this$dataItem$resear2.map(i => i);\n const algorithList = (_this$dataItem$algori2 = this.dataItem.algorithm) === null || _this$dataItem$algori2 === void 0 ? void 0 : _this$dataItem$algori2.map(i => i);\n\n const processPackageItem = item => {\n var _item$perspectiveFeat, _item$perspectiveFeat2, _item$perspectiveFeat3, _item$vendorFeature, _item$vendorFeature2, _item$vendorFeature3;\n\n const createLicenceFeature = (name, price, priceInfo) => {\n let currencySymbol = \"\";\n\n if (priceInfo === \"₺\") {\n currencySymbol = \"TL\";\n } else if (priceInfo === \"€\") {\n currencySymbol = \"Euro\";\n } else if (priceInfo === \"$\") {\n currencySymbol = \"Dolar\";\n }\n\n if (name !== null && name !== undefined && price !== null && price !== undefined && currencySymbol !== null && currencySymbol !== undefined) {\n list.push({\n name,\n startDate: item.startDate,\n endDate: item.endDate,\n price: `${price} ${currencySymbol}`\n });\n }\n };\n\n const perspectiveFeatureName = (_item$perspectiveFeat = item.perspectiveFeature) === null || _item$perspectiveFeat === void 0 ? void 0 : _item$perspectiveFeat.name;\n const perspectiveFeaturePrice = (_item$perspectiveFeat2 = item.perspectiveFeature) === null || _item$perspectiveFeat2 === void 0 ? void 0 : _item$perspectiveFeat2.price;\n const perspectiveFeatureInfo = (_item$perspectiveFeat3 = item.perspectiveFeature) === null || _item$perspectiveFeat3 === void 0 ? void 0 : _item$perspectiveFeat3.priceInfo;\n\n if (perspectiveFeatureName !== null && perspectiveFeatureName !== undefined && perspectiveFeaturePrice !== null && perspectiveFeaturePrice !== undefined) {\n var _item$marketFeature;\n\n createLicenceFeature(((_item$marketFeature = item.marketFeature) === null || _item$marketFeature === void 0 ? void 0 : _item$marketFeature.name) + \" \" + perspectiveFeatureName, perspectiveFeaturePrice, perspectiveFeatureInfo);\n }\n\n const vendorFeatureName = (_item$vendorFeature = item.vendorFeature) === null || _item$vendorFeature === void 0 ? void 0 : _item$vendorFeature.name;\n const vendorFeaturePrice = (_item$vendorFeature2 = item.vendorFeature) === null || _item$vendorFeature2 === void 0 ? void 0 : _item$vendorFeature2.price;\n const vendorFeatureInfo = (_item$vendorFeature3 = item.vendorFeature) === null || _item$vendorFeature3 === void 0 ? void 0 : _item$vendorFeature3.priceInfo;\n\n if (vendorFeatureName !== null && vendorFeatureName !== undefined && vendorFeatureName !== \"Yok\" && vendorFeaturePrice !== null && vendorFeaturePrice !== undefined) {\n var _item$marketFeature2;\n\n createLicenceFeature(((_item$marketFeature2 = item.marketFeature) === null || _item$marketFeature2 === void 0 ? void 0 : _item$marketFeature2.name) + \" \" + vendorFeatureName, vendorFeaturePrice, vendorFeatureInfo);\n }\n };\n\n let multipleLicenceFeatures = [];\n\n if (this.dataItem.package.length > 0) {\n this.dataItem.package.forEach(processPackageItem);\n }\n\n list.push(...multipleLicenceFeatures);\n\n if (platform.length > 0) {\n list.push(...platform);\n }\n\n if (researchList.length > 0) {\n list.push(...researchList);\n }\n\n if (algorithList.length > 0) {\n list.push(...algorithList);\n }\n\n return list;\n },\n\n isCompleted() {\n return parseInt(this.fundAndCommissionRates.fundAmount) >= this.fundAndCommissionRates.price.totalFundAmount || parseInt(this.fundAndCommissionRates.commissionAmount) >= this.fundAndCommissionRates.price.totalCommissionAmount;\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/DataInvoiceItem.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");
|
|
1678
|
+
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 _mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins */ \"./src/mixins/index.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../constants */ \"./src/constants/index.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _utils_tokenTools__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils/tokenTools */ \"./src/utils/tokenTools.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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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: \"DataInvoiceItem\",\n props: {\n dataItem: Object\n },\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n components: {\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseIcon\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_0__[\"BaseButton\"],\n InfoArea: _components__WEBPACK_IMPORTED_MODULE_0__[\"InfoArea\"]\n },\n\n data() {\n return {\n isActive: false,\n isButtonsDisabled: false,\n purchaseTypes: {\n prev: 1,\n next: 2\n },\n esube: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_4__[\"getItem\"])(\"esube\"),\n pricesText: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_4__[\"getItem\"])(\"esube\") == \"yes\" ? \"\" : \"Fiyatlar\",\n isActivatedAccordion: false\n };\n },\n\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_3__[\"mapActions\"])([\"movePurchaseDates\"]),\n\n getTime(dateTime, formatType) {\n if (dateTime) {\n let stringDateTime = String(dateTime);\n let generateMomentDate = this.$moment(new Date(stringDateTime)).format(formatType);\n return generateMomentDate;\n } else {\n return \"-\";\n }\n },\n\n setRowForPrev(purchaseId) {\n this.setRowForPurchase(purchaseId, this.purchaseTypes.prev);\n },\n\n setRowForNext(purchaseId) {\n this.setRowForPurchase(purchaseId, this.purchaseTypes.next);\n },\n\n setRowForPurchase(purchaseId, purchaseMoveType) {\n this.isButtonsDisabled = true;\n this.movePurchaseDates({\n purchaseId: purchaseId,\n purchaseMoveType: purchaseMoveType\n }).then(response => {\n if (response.error) {\n this.$toast.error(response.message);\n } else {\n this.$toast.success(\"Durum güncellendi.\");\n this.closeModal(String(purchaseId));\n }\n\n this.isButtonsDisabled = false;\n });\n },\n\n showModal(modalId) {\n this.$modal.show(modalId);\n },\n\n closeModal(modalId) {\n this.$modal.hide(modalId);\n },\n\n accordionToggle() {\n this.isActivatedAccordion = !this.isActivatedAccordion;\n }\n\n },\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_3__[\"mapGetters\"])([\"getUserInfo\", \"fundAndCommissionRates\"]),\n\n currencySymbol() {\n return _constants__WEBPACK_IMPORTED_MODULE_2__[\"CurrencySymbol\"];\n },\n\n totalPriceTl() {\n var _this$dataItem, _this$dataItem$price, _this$dataItem$price$;\n\n return (_this$dataItem = this.dataItem) === null || _this$dataItem === void 0 ? void 0 : (_this$dataItem$price = _this$dataItem.price) === null || _this$dataItem$price === void 0 ? void 0 : (_this$dataItem$price$ = _this$dataItem$price.prices) === null || _this$dataItem$price$ === void 0 ? void 0 : _this$dataItem$price$.filter(e => e.info === this.currencySymbol.tl)[0].totalPrice;\n },\n\n totalPriceDollar() {\n var _this$dataItem2, _this$dataItem2$price, _this$dataItem2$price2;\n\n return (_this$dataItem2 = this.dataItem) === null || _this$dataItem2 === void 0 ? void 0 : (_this$dataItem2$price = _this$dataItem2.price) === null || _this$dataItem2$price === void 0 ? void 0 : (_this$dataItem2$price2 = _this$dataItem2$price.prices) === null || _this$dataItem2$price2 === void 0 ? void 0 : _this$dataItem2$price2.filter(e => e.info === this.currencySymbol.dolar)[0];\n },\n\n totalPriceEuro() {\n var _this$dataItem3, _this$dataItem3$price, _this$dataItem3$price2;\n\n return (_this$dataItem3 = this.dataItem) === null || _this$dataItem3 === void 0 ? void 0 : (_this$dataItem3$price = _this$dataItem3.price) === null || _this$dataItem3$price === void 0 ? void 0 : (_this$dataItem3$price2 = _this$dataItem3$price.prices) === null || _this$dataItem3$price2 === void 0 ? void 0 : _this$dataItem3$price2.filter(e => e.info === this.currencySymbol.euro)[0];\n },\n\n totalPriceCalc() {\n var _this$totalPriceDolla, _this$totalPriceEuro;\n\n let totalDollar = this.totalPriceDollar ? \" + $\" + this.formatPriceDollar((_this$totalPriceDolla = this.totalPriceDollar) === null || _this$totalPriceDolla === void 0 ? void 0 : _this$totalPriceDolla.totalPrice) : \"\";\n let totalEuro = this.totalPriceEuro ? \" + €\" + this.formatPriceEuro((_this$totalPriceEuro = this.totalPriceEuro) === null || _this$totalPriceEuro === void 0 ? void 0 : _this$totalPriceEuro.totalPrice) : \"\";\n return this.formatPrice(this.totalPriceTl) + \" TL\" + totalDollar + totalEuro;\n },\n\n screenPrice() {\n var _this$dataItem4, _this$dataItem4$price;\n\n if (((_this$dataItem4 = this.dataItem) === null || _this$dataItem4 === void 0 ? void 0 : (_this$dataItem4$price = _this$dataItem4.price) === null || _this$dataItem4$price === void 0 ? void 0 : _this$dataItem4$price.prices) == null) {\n var _this$dataItem5, _this$dataItem5$nextM;\n\n return (_this$dataItem5 = this.dataItem) === null || _this$dataItem5 === void 0 ? void 0 : (_this$dataItem5$nextM = _this$dataItem5.nextMonthPrice) === null || _this$dataItem5$nextM === void 0 ? void 0 : _this$dataItem5$nextM.screenPrice;\n } else {\n var _this$dataItem6, _this$dataItem6$price;\n\n return (_this$dataItem6 = this.dataItem) === null || _this$dataItem6 === void 0 ? void 0 : (_this$dataItem6$price = _this$dataItem6.price) === null || _this$dataItem6$price === void 0 ? void 0 : _this$dataItem6$price.screenPrice;\n }\n },\n\n getUserType() {\n const REPRESENTATIVE_CODE = 3;\n const userType = this.getUserInfo.memberType;\n return userType && userType === REPRESENTATIVE_CODE;\n },\n\n mergedPackagesNames() {\n var _this$dataItem$foreig, _this$dataItem$algori, _this$dataItem$resear, _this$dataItem$packag;\n\n const list = [];\n const platform = (_this$dataItem$foreig = this.dataItem.foreignIndice) === null || _this$dataItem$foreig === void 0 ? void 0 : _this$dataItem$foreig.map(i => i === null || i === void 0 ? void 0 : i.name);\n const algorithm = (_this$dataItem$algori = this.dataItem.algorithm) === null || _this$dataItem$algori === void 0 ? void 0 : _this$dataItem$algori.map(i => i === null || i === void 0 ? void 0 : i.name);\n const researchList = (_this$dataItem$resear = this.dataItem.research) === null || _this$dataItem$resear === void 0 ? void 0 : _this$dataItem$resear.map(i => i === null || i === void 0 ? void 0 : i.name);\n const marketFeature = ((_this$dataItem$packag = this.dataItem.package) === null || _this$dataItem$packag === void 0 ? void 0 : _this$dataItem$packag.map(i => {\n var _i$marketFeature;\n\n return i === null || i === void 0 ? void 0 : (_i$marketFeature = i.marketFeature) === null || _i$marketFeature === void 0 ? void 0 : _i$marketFeature.name;\n })) || [];\n const filteredMarketFeature = marketFeature.filter(name => name !== undefined);\n const filteredAlgorithm = algorithm.filter(name => name !== undefined);\n const filteredPlatform = platform.filter(name => name !== undefined);\n const filteredResearchList = researchList.filter(name => name !== undefined);\n\n if (filteredMarketFeature.length > 0) {\n list.push(...filteredMarketFeature);\n }\n\n if (filteredPlatform.length > 0) {\n list.push(...filteredPlatform);\n }\n\n if (filteredResearchList.length > 0) {\n list.push(...filteredResearchList);\n }\n\n if (filteredAlgorithm.length > 0) {\n list.push(...filteredAlgorithm);\n }\n\n return list;\n },\n\n mergedForTableData() {\n var _this$dataItem$foreig2, _this$dataItem$resear2, _this$dataItem$algori2;\n\n const list = [];\n\n const processPackageItem = item => {\n const createLicenceFeature = (name, price, priceInfo) => {\n let currencySymbol = \"\";\n\n if (priceInfo === \"₺\") {\n currencySymbol = \"TL\";\n } else if (priceInfo === \"€\") {\n currencySymbol = \"Euro\";\n } else if (priceInfo === \"$\") {\n currencySymbol = \"Dolar\";\n }\n\n if (name !== null && name !== undefined && price !== null && price !== undefined && currencySymbol !== null && currencySymbol !== undefined) {\n list.push({\n name,\n startDate: item.startDate,\n endDate: item.endDate,\n price: `${price} ${currencySymbol}`\n });\n }\n };\n\n const processFeature = feature => {\n var _item$feature, _item$feature2, _item$feature3;\n\n const featureName = (_item$feature = item[feature]) === null || _item$feature === void 0 ? void 0 : _item$feature.name;\n const featurePrice = (_item$feature2 = item[feature]) === null || _item$feature2 === void 0 ? void 0 : _item$feature2.price;\n const featureInfo = (_item$feature3 = item[feature]) === null || _item$feature3 === void 0 ? void 0 : _item$feature3.priceInfo;\n\n if (featureName !== null && featureName !== undefined && featurePrice !== null && featurePrice !== undefined && featureName !== \"Yok\") {\n var _item$marketFeature;\n\n createLicenceFeature(((_item$marketFeature = item.marketFeature) === null || _item$marketFeature === void 0 ? void 0 : _item$marketFeature.name) + \" \" + featureName, featurePrice, featureInfo);\n }\n };\n\n processFeature(\"perspectiveFeature\");\n processFeature(\"vendorFeature\");\n };\n\n let multipleLicenceFeatures = [];\n\n if (this.dataItem.package.length > 0) {\n this.dataItem.package.forEach(processPackageItem);\n }\n\n list.push(...multipleLicenceFeatures);\n\n const addToListIfNotEmpty = dataList => {\n if (dataList.length > 0) {\n list.push(...dataList);\n }\n };\n\n addToListIfNotEmpty((_this$dataItem$foreig2 = this.dataItem.foreignIndice) === null || _this$dataItem$foreig2 === void 0 ? void 0 : _this$dataItem$foreig2.map(i => i));\n addToListIfNotEmpty((_this$dataItem$resear2 = this.dataItem.research) === null || _this$dataItem$resear2 === void 0 ? void 0 : _this$dataItem$resear2.map(i => i));\n addToListIfNotEmpty((_this$dataItem$algori2 = this.dataItem.algorithm) === null || _this$dataItem$algori2 === void 0 ? void 0 : _this$dataItem$algori2.map(i => i));\n return list;\n },\n\n isCompleted() {\n return parseInt(this.fundAndCommissionRates.fundAmount) >= this.fundAndCommissionRates.price.totalFundAmount || parseInt(this.fundAndCommissionRates.commissionAmount) >= this.fundAndCommissionRates.price.totalCommissionAmount;\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/DataInvoiceItem.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");
|
|
1679
1679
|
|
|
1680
1680
|
/***/ }),
|
|
1681
1681
|
|
|
@@ -1687,7 +1687,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _com
|
|
|
1687
1687
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1688
1688
|
|
|
1689
1689
|
"use strict";
|
|
1690
|
-
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 _PackageSettigns__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PackageSettigns */ \"./src/components/customer/PackageSettigns.vue\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../constants */ \"./src/constants/index.js\");\n/* harmony import */ var _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base/InfoArea.vue */ \"./src/components/base/InfoArea.vue\");\n/* harmony import */ var _mixins___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../mixins/ */ \"./src/mixins/index.js\");\n/* harmony import */ var _utils_tokenTools__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils/tokenTools */ \"./src/utils/tokenTools.js\");\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"DataRequestItem\",\n mixins: [_mixins___WEBPACK_IMPORTED_MODULE_5__[\"default\"]],\n components: {\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseButton\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"],\n PackageSettigns: _PackageSettigns__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n InfoArea: _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n },\n props: {\n dataItem: Object\n },\n\n data() {\n return {\n packageDetail: null,\n marketInfo: null,\n isPopupVisible: false,\n infoText: \"Fatura dönemi içerisinde, iptal edilen lisanslar hemen iptal edilse bile ücretlendirme yansımaktadır ve iptal edilen lisanlar ay sonuna kadar kullanılabilmektedir.\",\n cusId: null,\n userType: null,\n isActive: false,\n pricesText: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_6__[\"getItem\"])(\"esube\") == \"yes\" ? \"\" : \"Fiyatlar\"\n };\n },\n\n mounted() {\n if (this.$route.params.customerId !== undefined) {\n this.cusId = this.$route.params.customerId;\n }\n\n let selectedFilter = {};\n\n if (this.generalFilter.filter !== undefined && this.generalFilter.filter !== {}) {\n selectedFilter = this.generalFilter.filter;\n }\n\n this.setGeneralFilter({\n page: 1,\n size: 5,\n filter: selectedFilter\n });\n this.userType = this.getUserType;\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getPackageInfo\", \"getMarketInfo\", \"purchaseChangeStartDate\", \"generalFilter\", \"getUserInfo\"]),\n\n currencySymbol() {\n return _constants__WEBPACK_IMPORTED_MODULE_3__[\"CurrencySymbol\"];\n },\n\n getDataItemId() {\n return String(this.dataItem.id);\n },\n\n getSelectedPacks() {\n return [...this.dataItem.research.map(d => d.researchFeature.name), ...this.dataItem.foreignIndice.map(d => d.foreignIndiceFeature.name), ...this.dataItem.algorithm.map(d => d.algorithmFeature.name)];\n },\n\n getSelectedTerminalNumber() {\n return this.dataItem.algorithm.map(d => d.terminalNumber);\n },\n\n totalPriceDollar() {\n var _this$dataItem, _this$dataItem$price, _this$dataItem$price$;\n\n return (_this$dataItem = this.dataItem) === null || _this$dataItem === void 0 ? void 0 : (_this$dataItem$price = _this$dataItem.price) === null || _this$dataItem$price === void 0 ? void 0 : (_this$dataItem$price$ = _this$dataItem$price.prices) === null || _this$dataItem$price$ === void 0 ? void 0 : _this$dataItem$price$.filter(e => e.info === this.currencySymbol.dolar)[0];\n },\n\n totalPriceTl() {\n var _this$dataItem2, _this$dataItem2$price;\n\n let turkishLiraList = [];\n const pricesToCheck = (_this$dataItem2 = this.dataItem) === null || _this$dataItem2 === void 0 ? void 0 : (_this$dataItem2$price = _this$dataItem2.price) === null || _this$dataItem2$price === void 0 ? void 0 : _this$dataItem2$price.prices;\n\n if (pricesToCheck != null) {\n pricesToCheck.forEach(key => {\n if ((key === null || key === void 0 ? void 0 : key.info) === \"₺\" && key != undefined) {\n turkishLiraList.push(key.totalPrice);\n }\n });\n }\n\n return turkishLiraList.reduce((a, c) => a + c, 0);\n },\n\n totalPriceEuro() {\n var _this$dataItem3, _this$dataItem3$price, _this$dataItem3$price2;\n\n return (_this$dataItem3 = this.dataItem) === null || _this$dataItem3 === void 0 ? void 0 : (_this$dataItem3$price = _this$dataItem3.price) === null || _this$dataItem3$price === void 0 ? void 0 : (_this$dataItem3$price2 = _this$dataItem3$price.prices) === null || _this$dataItem3$price2 === void 0 ? void 0 : _this$dataItem3$price2.filter(e => e.info === this.currencySymbol.euro)[0];\n },\n\n totalPriceCalc() {\n var _this$totalPriceDolla, _this$totalPriceEuro;\n\n let totalDollar = this.totalPriceDollar != null ? \" + $\" + this.formatPriceDollar((_this$totalPriceDolla = this.totalPriceDollar) === null || _this$totalPriceDolla === void 0 ? void 0 : _this$totalPriceDolla.totalPrice) : \"\";\n let totalEuro = this.totalPriceEuro != null ? \" + €\" + this.formatPriceEuro((_this$totalPriceEuro = this.totalPriceEuro) === null || _this$totalPriceEuro === void 0 ? void 0 : _this$totalPriceEuro.totalPrice) : \"\";\n return this.formatPrice(this.totalPriceTl) + \" TL\" + totalDollar + totalEuro;\n },\n\n mergedPackagesNames() {\n var _this$dataItem$foreig, _this$dataItem$algori, _this$dataItem$resear, _this$dataItem$packag;\n\n const list = [];\n const platform = (_this$dataItem$foreig = this.dataItem.foreignIndice) === null || _this$dataItem$foreig === void 0 ? void 0 : _this$dataItem$foreig.map(i => i === null || i === void 0 ? void 0 : i.name);\n const algorithm = (_this$dataItem$algori = this.dataItem.algorithm) === null || _this$dataItem$algori === void 0 ? void 0 : _this$dataItem$algori.map(i => i === null || i === void 0 ? void 0 : i.name);\n const researchList = (_this$dataItem$resear = this.dataItem.research) === null || _this$dataItem$resear === void 0 ? void 0 : _this$dataItem$resear.map(i => i === null || i === void 0 ? void 0 : i.name);\n const marketFeature = ((_this$dataItem$packag = this.dataItem.package) === null || _this$dataItem$packag === void 0 ? void 0 : _this$dataItem$packag.map(i => {\n var _i$marketFeature;\n\n return i === null || i === void 0 ? void 0 : (_i$marketFeature = i.marketFeature) === null || _i$marketFeature === void 0 ? void 0 : _i$marketFeature.name;\n })) || [];\n const filteredMarketFeature = marketFeature.filter(name => name !== undefined);\n const filteredAlgorithm = algorithm.filter(name => name !== undefined);\n const filteredPlatform = platform.filter(name => name !== undefined);\n const filteredResearchList = researchList.filter(name => name !== undefined);\n\n if (filteredMarketFeature.length > 0) {\n list.push(...filteredMarketFeature);\n }\n\n if (filteredPlatform.length > 0) {\n list.push(...filteredPlatform);\n }\n\n if (filteredResearchList.length > 0) {\n list.push(...filteredResearchList);\n }\n\n if (filteredAlgorithm.length > 0) {\n list.push(...filteredAlgorithm);\n }\n\n return list;\n },\n\n mergedForTableData() {\n var _this$dataItem$foreig2, _this$dataItem$resear2, _this$dataItem$algori2;\n\n const list = [];\n let multipleLicenceFeatures = [];\n const platform = (_this$dataItem$foreig2 = this.dataItem.foreignIndice) === null || _this$dataItem$foreig2 === void 0 ? void 0 : _this$dataItem$foreig2.map(i => i);\n const researchList = (_this$dataItem$resear2 = this.dataItem.research) === null || _this$dataItem$resear2 === void 0 ? void 0 : _this$dataItem$resear2.map(i => i);\n const algorithList = (_this$dataItem$algori2 = this.dataItem.algorithm) === null || _this$dataItem$algori2 === void 0 ? void 0 : _this$dataItem$algori2.map(i => i);\n\n const processPackageItem = item => {\n var _item$perspectiveFeat, _item$perspectiveFeat2, _item$perspectiveFeat3, _item$vendorFeature, _item$vendorFeature2, _item$vendorFeature3;\n\n const createLicenceFeature = (name, price, priceInfo) => {\n let currencySymbol = \"\";\n\n if (priceInfo === \"₺\") {\n currencySymbol = \"TL\";\n } else if (priceInfo === \"€\") {\n currencySymbol = \"Euro\";\n } else if (priceInfo === \"$\") {\n currencySymbol = \"Dolar\";\n }\n\n if (name !== undefined && price !== undefined && currencySymbol !== undefined) {\n multipleLicenceFeatures.push({\n name,\n startDate: item.startDate,\n endDate: item.endDate,\n totalPrice: `${price} ${currencySymbol}`\n });\n }\n };\n\n const perspectiveFeatureName = (_item$perspectiveFeat = item.perspectiveFeature) === null || _item$perspectiveFeat === void 0 ? void 0 : _item$perspectiveFeat.name;\n const perspectiveFeaturePrice = (_item$perspectiveFeat2 = item.perspectiveFeature) === null || _item$perspectiveFeat2 === void 0 ? void 0 : _item$perspectiveFeat2.price;\n const perspectiveFeatureInfo = (_item$perspectiveFeat3 = item.perspectiveFeature) === null || _item$perspectiveFeat3 === void 0 ? void 0 : _item$perspectiveFeat3.info;\n\n if (perspectiveFeatureName !== undefined && perspectiveFeaturePrice !== undefined) {\n var _item$marketFeature;\n\n createLicenceFeature(((_item$marketFeature = item.marketFeature) === null || _item$marketFeature === void 0 ? void 0 : _item$marketFeature.name) + \" \" + perspectiveFeatureName, perspectiveFeaturePrice, perspectiveFeatureInfo);\n }\n\n const vendorFeatureName = (_item$vendorFeature = item.vendorFeature) === null || _item$vendorFeature === void 0 ? void 0 : _item$vendorFeature.name;\n const vendorFeaturePrice = (_item$vendorFeature2 = item.vendorFeature) === null || _item$vendorFeature2 === void 0 ? void 0 : _item$vendorFeature2.price;\n const vendorFeatureInfo = (_item$vendorFeature3 = item.vendorFeature) === null || _item$vendorFeature3 === void 0 ? void 0 : _item$vendorFeature3.info;\n\n if (vendorFeatureName !== undefined && vendorFeatureName !== \"Yok\" && vendorFeaturePrice !== undefined) {\n var _item$marketFeature2;\n\n createLicenceFeature(((_item$marketFeature2 = item.marketFeature) === null || _item$marketFeature2 === void 0 ? void 0 : _item$marketFeature2.name) + \" \" + vendorFeatureName, vendorFeaturePrice, vendorFeatureInfo);\n }\n };\n\n if (this.dataItem.package.length > 0) {\n this.dataItem.package.forEach(processPackageItem);\n }\n\n const filteredPlatform = platform.filter(name => name !== undefined);\n const filteredResearchList = researchList.filter(name => name !== undefined);\n const filteredAlgoList = algorithList.filter(name => name !== undefined);\n list.push(...multipleLicenceFeatures);\n\n if (filteredPlatform.length > 0) {\n list.push(...filteredPlatform);\n }\n\n if (filteredResearchList.length > 0) {\n list.push(...filteredResearchList);\n }\n\n if (filteredAlgoList.length > 0) {\n list.push(...filteredAlgoList);\n }\n\n return list;\n },\n\n getUserType() {\n return this.getUserInfo.memberType;\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPackageDetail\", \"getDraftPackageDetail\", \"getMarket\", \"getPlatform\", \"cancelPackage\", \"getAllPackages\", \"getPurchaseChangeStartDate\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setGeneralFilter\"]),\n\n addCart(dataItemId) {\n if (this.$route.name == \"CustomerDetail\" || this.$route.name == \"OvdHome\") {\n this.getPackageDetail([dataItemId, this.cusId]).then(() => {\n this.packageDetail = this.getPackageInfo;\n this.getMarket([this.packageDetail.application.applicationId, this.packageDetail.platform.platformId, this.cusId]).then(() => {\n this.marketInfo = this.getMarketInfo;\n });\n this.isPopupVisible = true;\n this.$emit(\"checkIsPopupOpen\", true);\n });\n } else {\n this.getDraftPackageDetail([dataItemId, this.cusId]).then(() => {\n this.packageDetail = this.getPackageInfo;\n this.getMarket([this.packageDetail.application.applicationId, this.packageDetail.platform.platformId, this.cusId]).then(() => {\n this.marketInfo = this.getMarketInfo;\n });\n this.isPopupVisible = true;\n this.$emit(\"checkIsPopupOpen\", true);\n });\n }\n },\n\n cancel(purchaseId) {\n this.cancelPackage(purchaseId).then(res => {\n if (res.data === true) {\n this.getAllPackages(this.cusId);\n this.$toast.success(\"İptal Edildi\");\n this.closeModal();\n }\n });\n },\n\n closePopup() {\n this.isPopupVisible = false;\n this.$emit(\"checkIsPopupOpen\", false);\n },\n\n showModal(packageStatus) {\n if (packageStatus === 5) {\n this.$toast.error(\"Paketiniz zaten pasif durumdadır.\");\n } else {\n this.$modal.show(packageStatus);\n }\n },\n\n closeModal() {\n this.$emit(\"checkIsPopupOpen\", false);\n this.$modal.hide(this.getDataItemId);\n },\n\n changeStartDate(val) {\n const args = {\n PurchaseNumber: this.dataItem.purchaseNo,\n DateSelection: val,\n cusId: this.cusId\n };\n this.getPurchaseChangeStartDate(args).then(res => {\n if (res !== null && res !== void 0 && res.error) {\n this.$toast.error(res.message);\n } else {\n this.$toast.success(\"Başarıyla güncelleme yapıldı.\");\n this.getAllPackages(this.cusId);\n }\n });\n },\n\n getTime(dateTime, formatType) {\n let stringDateTime = String(dateTime);\n let generateMomentDate = this.$moment(new Date(stringDateTime)).format(formatType);\n return generateMomentDate;\n },\n\n accordionToggle() {\n this.isActive = !this.isActive;\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/DataRequestItem.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");
|
|
1690
|
+
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 _PackageSettigns__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PackageSettigns */ \"./src/components/customer/PackageSettigns.vue\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../constants */ \"./src/constants/index.js\");\n/* harmony import */ var _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base/InfoArea.vue */ \"./src/components/base/InfoArea.vue\");\n/* harmony import */ var _mixins___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../mixins/ */ \"./src/mixins/index.js\");\n/* harmony import */ var _utils_tokenTools__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils/tokenTools */ \"./src/utils/tokenTools.js\");\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"DataRequestItem\",\n mixins: [_mixins___WEBPACK_IMPORTED_MODULE_5__[\"default\"]],\n components: {\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseButton\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"],\n PackageSettigns: _PackageSettigns__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n InfoArea: _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n },\n props: {\n dataItem: Object\n },\n\n data() {\n return {\n packageDetail: null,\n marketInfo: null,\n isPopupVisible: false,\n infoText: \"Fatura dönemi içerisinde, iptal edilen lisanslar hemen iptal edilse bile ücretlendirme yansımaktadır ve iptal edilen lisanlar ay sonuna kadar kullanılabilmektedir.\",\n cusId: null,\n userType: null,\n isActive: false,\n pricesText: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_6__[\"getItem\"])(\"esube\") == \"yes\" ? \"\" : \"Fiyatlar\"\n };\n },\n\n mounted() {\n if (this.$route.params.customerId !== undefined) {\n this.cusId = this.$route.params.customerId;\n }\n\n let selectedFilter = {};\n\n if (this.generalFilter.filter !== undefined && this.generalFilter.filter !== {}) {\n selectedFilter = this.generalFilter.filter;\n }\n\n this.setGeneralFilter({\n page: 1,\n size: 5,\n filter: selectedFilter\n });\n this.userType = this.getUserType;\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getPackageInfo\", \"getMarketInfo\", \"purchaseChangeStartDate\", \"generalFilter\", \"getUserInfo\"]),\n\n currencySymbol() {\n return _constants__WEBPACK_IMPORTED_MODULE_3__[\"CurrencySymbol\"];\n },\n\n getDataItemId() {\n return String(this.dataItem.id);\n },\n\n getSelectedPacks() {\n return [...this.dataItem.research.map(d => d.researchFeature.name), ...this.dataItem.foreignIndice.map(d => d.foreignIndiceFeature.name), ...this.dataItem.algorithm.map(d => d.algorithmFeature.name)];\n },\n\n getSelectedTerminalNumber() {\n return this.dataItem.algorithm.map(d => d.terminalNumber);\n },\n\n totalPriceDollar() {\n var _this$dataItem, _this$dataItem$price, _this$dataItem$price$;\n\n return (_this$dataItem = this.dataItem) === null || _this$dataItem === void 0 ? void 0 : (_this$dataItem$price = _this$dataItem.price) === null || _this$dataItem$price === void 0 ? void 0 : (_this$dataItem$price$ = _this$dataItem$price.prices) === null || _this$dataItem$price$ === void 0 ? void 0 : _this$dataItem$price$.filter(e => e.info === this.currencySymbol.dolar)[0];\n },\n\n totalPriceTl() {\n var _this$dataItem2, _this$dataItem2$price;\n\n let turkishLiraList = [];\n const pricesToCheck = (_this$dataItem2 = this.dataItem) === null || _this$dataItem2 === void 0 ? void 0 : (_this$dataItem2$price = _this$dataItem2.price) === null || _this$dataItem2$price === void 0 ? void 0 : _this$dataItem2$price.prices;\n\n if (pricesToCheck != null) {\n pricesToCheck.forEach(key => {\n if ((key === null || key === void 0 ? void 0 : key.info) === \"₺\" && key != undefined) {\n turkishLiraList.push(key.totalPrice);\n }\n });\n }\n\n return turkishLiraList.reduce((a, c) => a + c, 0);\n },\n\n totalPriceEuro() {\n var _this$dataItem3, _this$dataItem3$price, _this$dataItem3$price2;\n\n return (_this$dataItem3 = this.dataItem) === null || _this$dataItem3 === void 0 ? void 0 : (_this$dataItem3$price = _this$dataItem3.price) === null || _this$dataItem3$price === void 0 ? void 0 : (_this$dataItem3$price2 = _this$dataItem3$price.prices) === null || _this$dataItem3$price2 === void 0 ? void 0 : _this$dataItem3$price2.filter(e => e.info === this.currencySymbol.euro)[0];\n },\n\n totalPriceCalc() {\n var _this$totalPriceDolla, _this$totalPriceEuro;\n\n let totalDollar = this.totalPriceDollar != null ? \" + $\" + this.formatPriceDollar((_this$totalPriceDolla = this.totalPriceDollar) === null || _this$totalPriceDolla === void 0 ? void 0 : _this$totalPriceDolla.totalPrice) : \"\";\n let totalEuro = this.totalPriceEuro != null ? \" + €\" + this.formatPriceEuro((_this$totalPriceEuro = this.totalPriceEuro) === null || _this$totalPriceEuro === void 0 ? void 0 : _this$totalPriceEuro.totalPrice) : \"\";\n return this.formatPrice(this.totalPriceTl) + \" TL\" + totalDollar + totalEuro;\n },\n\n mergedPackagesNames() {\n var _this$dataItem$foreig, _this$dataItem$algori, _this$dataItem$resear, _this$dataItem$packag;\n\n const list = [];\n const platform = (_this$dataItem$foreig = this.dataItem.foreignIndice) === null || _this$dataItem$foreig === void 0 ? void 0 : _this$dataItem$foreig.map(i => i === null || i === void 0 ? void 0 : i.name);\n const algorithm = (_this$dataItem$algori = this.dataItem.algorithm) === null || _this$dataItem$algori === void 0 ? void 0 : _this$dataItem$algori.map(i => i === null || i === void 0 ? void 0 : i.name);\n const researchList = (_this$dataItem$resear = this.dataItem.research) === null || _this$dataItem$resear === void 0 ? void 0 : _this$dataItem$resear.map(i => i === null || i === void 0 ? void 0 : i.name);\n const marketFeature = ((_this$dataItem$packag = this.dataItem.package) === null || _this$dataItem$packag === void 0 ? void 0 : _this$dataItem$packag.map(i => {\n var _i$marketFeature;\n\n return i === null || i === void 0 ? void 0 : (_i$marketFeature = i.marketFeature) === null || _i$marketFeature === void 0 ? void 0 : _i$marketFeature.name;\n })) || [];\n const filteredMarketFeature = marketFeature.filter(name => name !== undefined);\n const filteredAlgorithm = algorithm.filter(name => name !== undefined);\n const filteredPlatform = platform.filter(name => name !== undefined);\n const filteredResearchList = researchList.filter(name => name !== undefined);\n\n if (filteredMarketFeature.length > 0) {\n list.push(...filteredMarketFeature);\n }\n\n if (filteredPlatform.length > 0) {\n list.push(...filteredPlatform);\n }\n\n if (filteredResearchList.length > 0) {\n list.push(...filteredResearchList);\n }\n\n if (filteredAlgorithm.length > 0) {\n list.push(...filteredAlgorithm);\n }\n\n return list;\n },\n\n mergedForTableData() {\n var _this$dataItem$foreig2, _this$dataItem$resear2, _this$dataItem$algori2;\n\n const list = [];\n let multipleLicenceFeatures = [];\n\n const processPackageItem = item => {\n const createLicenceFeature = (name, price, priceInfo) => {\n let currencySymbol = \"\";\n\n if (priceInfo === \"₺\") {\n currencySymbol = \"TL\";\n } else if (priceInfo === \"€\") {\n currencySymbol = \"Euro\";\n } else if (priceInfo === \"$\") {\n currencySymbol = \"Dolar\";\n }\n\n if (name !== undefined && price !== undefined && currencySymbol !== undefined) {\n multipleLicenceFeatures.push({\n name,\n startDate: item.startDate,\n endDate: item.endDate,\n totalPrice: `${price} ${currencySymbol}`\n });\n }\n };\n\n const processFeature = feature => {\n var _item$feature, _item$feature2, _item$feature3;\n\n const featureName = (_item$feature = item[feature]) === null || _item$feature === void 0 ? void 0 : _item$feature.name;\n const featurePrice = (_item$feature2 = item[feature]) === null || _item$feature2 === void 0 ? void 0 : _item$feature2.price;\n const featureInfo = (_item$feature3 = item[feature]) === null || _item$feature3 === void 0 ? void 0 : _item$feature3.info;\n\n if (featureName !== undefined && featurePrice !== undefined && featureName != \"Yok\") {\n var _item$marketFeature;\n\n createLicenceFeature(((_item$marketFeature = item.marketFeature) === null || _item$marketFeature === void 0 ? void 0 : _item$marketFeature.name) + \" \" + featureName, featurePrice, featureInfo);\n }\n };\n\n processFeature(\"perspectiveFeature\");\n processFeature(\"vendorFeature\");\n };\n\n if (this.dataItem.package.length > 0) {\n this.dataItem.package.forEach(processPackageItem);\n }\n\n const filterUndefined = arr => arr.filter(item => item !== undefined);\n\n const filteredPlatform = filterUndefined((_this$dataItem$foreig2 = this.dataItem.foreignIndice) === null || _this$dataItem$foreig2 === void 0 ? void 0 : _this$dataItem$foreig2.map(i => i));\n const filteredResearchList = filterUndefined((_this$dataItem$resear2 = this.dataItem.research) === null || _this$dataItem$resear2 === void 0 ? void 0 : _this$dataItem$resear2.map(i => i));\n const filteredAlgoList = filterUndefined((_this$dataItem$algori2 = this.dataItem.algorithm) === null || _this$dataItem$algori2 === void 0 ? void 0 : _this$dataItem$algori2.map(i => i));\n list.push(...multipleLicenceFeatures, ...filteredPlatform, ...filteredResearchList, ...filteredAlgoList);\n return list;\n },\n\n getUserType() {\n return this.getUserInfo.memberType;\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPackageDetail\", \"getDraftPackageDetail\", \"getMarket\", \"getPlatform\", \"cancelPackage\", \"getAllPackages\", \"getPurchaseChangeStartDate\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setGeneralFilter\"]),\n\n addCart(dataItemId) {\n if (this.$route.name == \"CustomerDetail\" || this.$route.name == \"OvdHome\") {\n this.getPackageDetail([dataItemId, this.cusId]).then(() => {\n this.packageDetail = this.getPackageInfo;\n this.getMarket([this.packageDetail.application.applicationId, this.packageDetail.platform.platformId, this.cusId]).then(() => {\n this.marketInfo = this.getMarketInfo;\n });\n this.isPopupVisible = true;\n this.$emit(\"checkIsPopupOpen\", true);\n });\n } else {\n this.getDraftPackageDetail([dataItemId, this.cusId]).then(() => {\n this.packageDetail = this.getPackageInfo;\n this.getMarket([this.packageDetail.application.applicationId, this.packageDetail.platform.platformId, this.cusId]).then(() => {\n this.marketInfo = this.getMarketInfo;\n });\n this.isPopupVisible = true;\n this.$emit(\"checkIsPopupOpen\", true);\n });\n }\n },\n\n cancel(purchaseId) {\n this.cancelPackage(purchaseId).then(res => {\n if (res.data === true) {\n this.getAllPackages(this.cusId);\n this.$toast.success(\"İptal Edildi\");\n this.closeModal();\n }\n });\n },\n\n closePopup() {\n this.isPopupVisible = false;\n this.$emit(\"checkIsPopupOpen\", false);\n },\n\n showModal(packageStatus) {\n if (packageStatus === 5) {\n this.$toast.error(\"Paketiniz zaten pasif durumdadır.\");\n } else {\n this.$modal.show(packageStatus);\n }\n },\n\n closeModal() {\n this.$emit(\"checkIsPopupOpen\", false);\n this.$modal.hide(this.getDataItemId);\n },\n\n changeStartDate(val) {\n const args = {\n PurchaseNumber: this.dataItem.purchaseNo,\n DateSelection: val,\n cusId: this.cusId\n };\n this.getPurchaseChangeStartDate(args).then(res => {\n if (res !== null && res !== void 0 && res.error) {\n this.$toast.error(res.message);\n } else {\n this.$toast.success(\"Başarıyla güncelleme yapıldı.\");\n this.getAllPackages(this.cusId);\n }\n });\n },\n\n getTime(dateTime, formatType) {\n let stringDateTime = String(dateTime);\n let generateMomentDate = this.$moment(new Date(stringDateTime)).format(formatType);\n return generateMomentDate;\n },\n\n accordionToggle() {\n this.isActive = !this.isActive;\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/DataRequestItem.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");
|
|
1691
1691
|
|
|
1692
1692
|
/***/ }),
|
|
1693
1693
|
|
|
@@ -1747,7 +1747,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
|
|
|
1747
1747
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1748
1748
|
|
|
1749
1749
|
"use strict";
|
|
1750
|
-
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 _PackageSettingCreateType_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PackageSettingCreateType.vue */ \"./src/components/customer/PackageSettingCreateType.vue\");\n/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins */ \"./src/mixins/index.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base/InfoArea.vue */ \"./src/components/base/InfoArea.vue\");\n/* harmony import */ var _base_Faq_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../base/Faq.vue */ \"./src/components/base/Faq.vue\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../constants */ \"./src/constants/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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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: \"PackageSettingCreate\",\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n components: {\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_3__[\"BaseButton\"],\n PopupRight: _components__WEBPACK_IMPORTED_MODULE_3__[\"PopupRight\"],\n PackageSettingCreateType: _PackageSettingCreateType_vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n AccordionResearch: _components__WEBPACK_IMPORTED_MODULE_3__[\"AccordionResearch\"],\n AccordionForeign: _components__WEBPACK_IMPORTED_MODULE_3__[\"AccordionForeign\"],\n AccordionAlgoServer: _components__WEBPACK_IMPORTED_MODULE_3__[\"AccordionAlgoServer\"],\n BaseInput: _components__WEBPACK_IMPORTED_MODULE_3__[\"BaseInput\"],\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_3__[\"BaseSelect\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_3__[\"BaseIcon\"],\n InfoArea: _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n Faq: _base_Faq_vue__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n },\n props: {\n dataItem: Object,\n platformInfo: Object,\n marketInfo: Array,\n isPopupVisible: Boolean,\n currentTab: String,\n isTerminal: Boolean,\n algoDetail: Object,\n isOperationWarning: Boolean,\n operationMessage: String,\n researchDetail: Object,\n isRuleMessageWarning: Boolean,\n mutableItemRuleMessage: String,\n isUpgraded: Boolean,\n startDates: Number\n },\n\n data() {\n return {\n fund: 0,\n commission: 0,\n bottomFund: 0,\n bottomCommission: 0,\n totalPrice: 0,\n startDateSelection: -1,\n selectData: [],\n research: [],\n foreign: [],\n algoServer: [],\n researchData: [],\n foreignData: [],\n algoServerData: [],\n args: {},\n argsAlgo: {},\n argsResearch: {},\n terminalNumber: null,\n isOperationWarningVal: this.isOperationWarning,\n isButtonClicked: false,\n itemRuleMessage: this.mutableItemRuleMessage,\n warningMessage: false,\n recommendedPackageChecker: false,\n infoText: [\"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.\", \"Karma Lisans paketinde derinlik bilgisi bulunmamaktadır.\"],\n startDate: [{\n label: \"Seçiniz\",\n code: -1\n }, {\n label: \"Hemen\",\n code: 0\n }, {\n label: \"Ay Başında\",\n code: 1\n }],\n cusId: null,\n showSections: true,\n triggerSelectbox: 0\n };\n },\n\n mounted() {\n this.searchCustomer();\n const cusId = this.$route.params.customerId !== undefined ? this.$route.params.customerId : null;\n\n if (this.currentTab != \"Algo\" && this.currentTab != \"Research\") {\n var _this$dataItem, _this$dataItem2, _this$dataItem3, _this$dataItem3$platf, _this$dataItem4;\n\n this.getResearch([(_this$dataItem = this.dataItem) === null || _this$dataItem === void 0 ? void 0 : _this$dataItem.applicationId, cusId]).then(res => {\n let details = {};\n details = res.data;\n this.research.push({\n id: 1,\n active: false,\n title: \"Araştırma ve Diğer Uygulamalar\",\n details\n });\n });\n this.getForeign([(_this$dataItem2 = this.dataItem) === null || _this$dataItem2 === void 0 ? void 0 : _this$dataItem2.applicationId, (_this$dataItem3 = this.dataItem) === null || _this$dataItem3 === void 0 ? void 0 : (_this$dataItem3$platf = _this$dataItem3.platform) === null || _this$dataItem3$platf === void 0 ? void 0 : _this$dataItem3$platf.id, cusId]).then(res => {\n let details = {};\n details = res.data;\n this.foreign.push({\n id: 2,\n active: false,\n title: \"Yabancı Endeksler\",\n details\n });\n });\n this.getAlgoServer([(_this$dataItem4 = this.dataItem) === null || _this$dataItem4 === void 0 ? void 0 : _this$dataItem4.applicationId, cusId]).then(res => {\n let details = {};\n details = res.data;\n this.algoServer.push({\n id: 3,\n active: false,\n title: \"Algoritmalar\",\n details\n });\n });\n }\n\n this.setSelectedResearch([]);\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\n this.$nextTick(() => {\n if (this.setSelectboxList == 0 || this.setSelectboxList == 1) {\n const returnAsArrray = this.startDate.filter(option => {\n if (option.code == this.setSelectboxList) {\n return option;\n }\n });\n this.startDate = returnAsArrray;\n this.changeStartDate(returnAsArrray[0]);\n }\n });\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"customer\", \"getResearchInfo\", \"getForeignInfo\", \"getAlgoServerInfo\", \"getSelectedResearchInfo\", \"getSelectedForeignInfo\", \"getSelectedAlgoServerInfo\", \"getAlgorithmDetailInfo\", \"allPackages\"]),\n\n calculateTotalFundRate() {\n let result;\n\n if (this.currentTab === \"Research\") {\n result = this.formatPrice(this.researchFund());\n } else if (this.currentTab === \"Algo\") {\n result = this.formatPrice(this.algoServerFund());\n } else {\n result = this.formatPrice(this.bottomFund + this.foreignFund() + this.researchFund() + this.algoServerFund());\n }\n\n return result;\n },\n\n calculateTotalComissionRate() {\n let result;\n\n if (this.currentTab === \"Research\" && this.currentTab) {\n result = this.formatPrice(this.researchCommission());\n } else if (this.currentTab === \"Algo\") {\n result = this.formatPrice(this.algoServerCommission());\n } else {\n result = this.formatPrice(this.bottomCommission + this.foreignCommission() + this.researchCommission() + this.algoServerCommission());\n }\n\n return result;\n },\n\n calculateTotalPrice() {\n return this.dataItem.price + this.totalPrice + this.researchTotal() + this.foraignTurkishLiraTotal() + this.algoServerTotal();\n },\n\n calculateTotalDollarForeignPrice() {\n return \" + \" + this.formatPriceDollar(this.foraignDollarTotal()) + \" Dolar \";\n },\n\n calculateTotalEuroForeignPrice() {\n return \" + \" + this.formatPriceEuro(this.foraignEuroTotal()) + \" Euro\";\n },\n\n calculateTotalTurkishLiraForeignPrice() {\n return \" + \" + this.formatPrice(this.foraignTurkishLiraTotal()) + \"TL\";\n },\n\n getUserNumber() {\n return this.customer.customerNo;\n },\n\n setSelectboxList() {\n return this.startDates;\n },\n\n getPackageStatuses() {\n return this.allPackages.data.filter(o => o.packageStatus.id === 8);\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setSelectedResearch\", \"setSelectedForeign\", \"setSelectedAlgoServer\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"createPackage\", \"getResearch\", \"getForeign\", \"getAlgoServer\", \"algorithmCreate\", \"researchCreate\", \"createRecommendationPackage\", \"searchCustomerBefore\"]),\n\n modalNo() {\n this.setDefaultValues();\n },\n\n modalHide() {\n document.getElementById(\"operation-warning\").remove();\n },\n\n checkSpesificWarning(param) {\n this.warningMessage = param;\n },\n\n setDefaultValues() {\n this.bottomCommission = 0;\n this.totalPrice = 0;\n this.bottomFund = 0;\n this.showSections = false;\n this.$emit(\"close\");\n },\n\n searchCustomer() {\n this.searchCustomerBefore({\n SearchValue: this.getUserNumber\n });\n },\n\n researchFund() {\n if (this.currentTab == \"Research\") {\n var _this$dataItem5;\n\n return ((_this$dataItem5 = this.dataItem) === null || _this$dataItem5 === void 0 ? void 0 : _this$dataItem5.fundAmount) || 0;\n } else {\n return this.getSelectedResearchInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.fundAmount) || 0) + totald;\n }, 0);\n }\n },\n\n foreignFund() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.fundAmount) || 0) + totald;\n }, 0);\n },\n\n algoServerFund() {\n if (this.currentTab == \"Algo\") {\n var _this$dataItem6;\n\n return ((_this$dataItem6 = this.dataItem) === null || _this$dataItem6 === void 0 ? void 0 : _this$dataItem6.fundAmount) || 0;\n } else {\n return this.getSelectedAlgoServerInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.fundAmount) || 0) + totald;\n }, 0);\n }\n },\n\n // Commission calc\n researchCommission() {\n if (this.currentTab == \"Research\") {\n var _this$dataItem7;\n\n return ((_this$dataItem7 = this.dataItem) === null || _this$dataItem7 === void 0 ? void 0 : _this$dataItem7.commissionAmount) || 0;\n } else {\n return this.getSelectedResearchInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.commissionAmount) || 0) + totald;\n }, 0);\n }\n },\n\n foreignCommission() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.commissionAmount) || 0) + totald;\n }, 0);\n },\n\n algoServerCommission() {\n if (this.currentTab == \"Algo\") {\n var _this$dataItem8;\n\n return ((_this$dataItem8 = this.dataItem) === null || _this$dataItem8 === void 0 ? void 0 : _this$dataItem8.commissionAmount) || 0;\n } else {\n return this.getSelectedAlgoServerInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.commissionAmount) || 0) + totald;\n }, 0);\n }\n },\n\n // Total calc\n researchTotal() {\n return this.getSelectedResearchInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n }, 0);\n },\n\n foraignTurkishLiraTotal() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n if (item.priceInfo === \"₺\") {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n } else {\n return 0 + totald;\n }\n }, 0);\n },\n\n foraignDollarTotal() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n if (item.priceInfo === \"$\") {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n } else {\n return 0 + totald;\n }\n }, 0);\n },\n\n foraignEuroTotal() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n if (item.priceInfo === \"€\") {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n } else {\n return 0 + totald;\n }\n }, 0);\n },\n\n algoServerTotal() {\n return this.getSelectedAlgoServerInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n }, 0);\n },\n\n changeSelected(data) {\n this.selectData = data;\n },\n\n changeStartDate(value) {\n this.startDateSelection = value.code;\n },\n\n errorMessage(res) {\n if (res.statusCode === _constants__WEBPACK_IMPORTED_MODULE_6__[\"statuses\"].INTERNAL_SERVER_ERROR) {\n this.$toast.error(res.message);\n } else if (res.errorCode === _constants__WEBPACK_IMPORTED_MODULE_6__[\"statuses\"].NOT_ACCEPTABLE) {\n this.$toast.error(res.result.data[0].errors[0]);\n } else {\n this.$toast.error(\"Beklenmedik bir hata oluştu\");\n }\n\n this.isButtonClicked = false;\n },\n\n submitShow() {\n var _this$dataItem9, _this$dataItem10, _this$dataItem11, _this$dataItem12, _this$dataItem12$plat;\n\n this.isButtonClicked = true;\n this.cusId = this.$route.query.c;\n const packageData = this.mapPackageData(this.selectData);\n const getEveryDateSelection = packageData.filter(o => o.dateSelection == -1);\n const getResearchDateSelection = this.getSelectedResearchInfo.filter(o => o.dateSelection === -1);\n const getForeignDateSelection = this.getSelectedForeignInfo.filter(o => o.dateSelection === -1);\n const getSelectedAlgoServerInfo = this.getSelectedAlgoServerInfo.filter(o => o.dateSelection === -1);\n this.researchData = this.mapArrays(this.getSelectedResearchInfo, \"researchId\", \"dateSelection\");\n this.foreignData = this.mapArrays(this.getSelectedForeignInfo, \"foreignIndiceId\", \"dateSelection\");\n this.algoServerData = this.mapArrays(this.getSelectedAlgoServerInfo, \"algorithmAndServerId\", \"dateSelection\");\n\n if (this.showSections && this.$route.query.isRecommended != \"1\" && (getEveryDateSelection.length > 0 || getResearchDateSelection.length > 0 || getForeignDateSelection.length > 0 || getSelectedAlgoServerInfo.length > 0)) {\n this.$toast.error(\"Başlangıç zamanı seçiniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n this.argsAlgo = {\n customerId: this.customer.id,\n dateSelection: this.startDateSelection,\n applicationId: ((_this$dataItem9 = this.dataItem) === null || _this$dataItem9 === void 0 ? void 0 : _this$dataItem9.applicationId) || null,\n algorithmId: this.dataItem.id,\n terminalNumber: this.isTerminal ? \"\" : this.terminalNumber,\n cusId: Number(this.customer.id)\n };\n this.argsResearch = {\n customerId: this.customer.id,\n dateSelection: this.startDateSelection,\n applicationId: ((_this$dataItem10 = this.dataItem) === null || _this$dataItem10 === void 0 ? void 0 : _this$dataItem10.applicationId) || null,\n researchId: this.dataItem.id,\n cusId: Number(this.customer.id)\n };\n const recommendedPackageArgs = {\n recommendationPackageId: this.dataItem.id,\n\n /*recommendationPackageNo: this.dataItem.recommendationPackageNo,*/\n customerId: Number(this.customer.id),\n purchaseNumber: \"\",\n applicationId: ((_this$dataItem11 = this.dataItem) === null || _this$dataItem11 === void 0 ? void 0 : _this$dataItem11.applicationId) || null,\n platformId: ((_this$dataItem12 = this.dataItem) === null || _this$dataItem12 === void 0 ? void 0 : (_this$dataItem12$plat = _this$dataItem12.platform) === null || _this$dataItem12$plat === void 0 ? void 0 : _this$dataItem12$plat.id) || null,\n features: packageData,\n research: this.researchData,\n foreignIndice: this.foreignData,\n algorithmAndServer: this.algoServerData,\n dateSelection: 0\n };\n\n if (this.$route.query.isRecommended == \"1\") {\n if (this.recommendedPackageChecker) {\n this.$toast.error(\"Lisans Seçiniz\");\n this.isButtonClicked = false;\n return;\n } else {\n this.createRecommendationPackage(recommendedPackageArgs).then(() => {\n this.$router.push({\n name: \"RecommendedPackages\"\n });\n });\n }\n } else if (this.isRecommendedUndefined && this.currentTab !== \"Algo\" && this.currentTab !== \"Research\") {\n this.pureCreate(packageData);\n } else if (this.isRecommendedUndefined && this.currentTab === \"Algo\") {\n this.createAlgo(this.argsAlgo);\n } else if (this.isRecommendedUndefined && this.currentTab === \"Research\") {\n this.createResearch(this.argsResearch);\n }\n },\n\n mapArrays(arrayList, keyItem, dateSelection) {\n const mappedArray = arrayList.map(key => {\n return {\n [keyItem]: key.id || null,\n [dateSelection]: key.dateSelection || 0\n };\n });\n return mappedArray;\n },\n\n mapPackageData(packageData) {\n const resultData = packageData.map(item => {\n var _item$marketFeature, _item$perspectiveFeat, _item$vendorFeature, _item$vendorFeature2, _item$vendorFeature3;\n\n return {\n marketId: (item === null || item === void 0 ? void 0 : (_item$marketFeature = item.marketFeature) === null || _item$marketFeature === void 0 ? void 0 : _item$marketFeature.id) || null,\n perspectiveId: (item === null || item === void 0 ? void 0 : (_item$perspectiveFeat = item.perspectiveFeature) === null || _item$perspectiveFeat === void 0 ? void 0 : _item$perspectiveFeat.id) || null,\n vendorId: (item === null || item === void 0 ? void 0 : (_item$vendorFeature = item.vendorFeature) === null || _item$vendorFeature === void 0 ? void 0 : _item$vendorFeature.id) === undefined || (item === null || item === void 0 ? void 0 : (_item$vendorFeature2 = item.vendorFeature) === null || _item$vendorFeature2 === void 0 ? void 0 : _item$vendorFeature2.id) === null ? null : item === null || item === void 0 ? void 0 : (_item$vendorFeature3 = item.vendorFeature) === null || _item$vendorFeature3 === void 0 ? void 0 : _item$vendorFeature3.id,\n dateSelection: this.$route.query.isRecommended === undefined ? item.dateSelection : 0\n };\n });\n return resultData;\n },\n\n isRecommendedUndefined() {\n return this.$route.query.isRecommended === undefined;\n },\n\n pureCreate(packageData) {\n var _this$dataItem13, _this$dataItem14, _this$dataItem14$plat;\n\n this.args = {\n customerId: this.customer.id,\n purchaseNumber: \"\",\n applicationId: ((_this$dataItem13 = this.dataItem) === null || _this$dataItem13 === void 0 ? void 0 : _this$dataItem13.applicationId) || null,\n applicationFeatureId: this.dataItem.id,\n platformFeatureId: this.dataItem.id,\n platformId: ((_this$dataItem14 = this.dataItem) === null || _this$dataItem14 === void 0 ? void 0 : (_this$dataItem14$plat = _this$dataItem14.platform) === null || _this$dataItem14$plat === void 0 ? void 0 : _this$dataItem14$plat.id) || null,\n features: packageData,\n research: this.researchData,\n foreignIndice: this.foreignData,\n algorithmAndServer: this.algoServerData,\n cusId: Number(this.cusId)\n };\n this.createPackage(this.args).then(res => {\n if (res.error) {\n this.errorMessage(res);\n } else {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: res.purchaseId,\n isUpgradedPurchase: res.isUpgradedPurchase,\n customerNumber: this.customer.customerNo ? this.customer.customerNo : this.$route.query.c\n },\n query: {\n c: this.$route.query.c\n }\n });\n this.setSelectedResearch([]);\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\n }\n });\n },\n\n createAlgo() {\n if (this.startDateSelection == -1) {\n this.$toast.error(\"Başlangıç zamanı seçiniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n if (this.isTerminal === false && this.terminalNumber === null) {\n this.$toast.error(\"Terminal Numarası Giriniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n this.algorithmCreate(this.argsAlgo).then(res => {\n if (res.error) {\n this.$toast.error(res.message);\n } else {\n if (!res.isExternalTerminal) {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: res.purchaseId,\n isUpgradedPurchase: res.purchaseNo,\n customerNumber: this.customer.customerNo ? this.customer.customerNo : this.$route.query.c\n },\n query: {\n c: this.$route.query.c\n }\n });\n } else {\n this.$router.push({\n name: \"CustomerDetail\",\n params: {\n customerId: this.$route.query.c,\n customerNumber: this.$route.params.customerNumber\n },\n query: {\n c: this.$route.query.c\n }\n });\n }\n }\n });\n },\n\n createResearch() {\n if (this.startDateSelection == -1) {\n this.$toast.error(\"Başlangıç zamanı seçiniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n if (this.isTerminal === false && this.terminalNumber === null) {\n this.$toast.error(\"Terminal Numarası Giriniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n this.researchCreate(this.argsResearch).then(res => {\n if (res.error) {\n this.errorMessage(res);\n } else {\n if (!res.isExternalTerminal) {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: res.purchaseId,\n isUpgradedPurchase: res.purchaseNo,\n customerNumber: this.customer.customerNo ? this.customer.customerNo : this.$route.query.c\n },\n query: {\n c: this.$route.query.c\n }\n });\n } else {\n this.$router.push({\n name: \"CustomerDetail\",\n params: {\n customerId: this.$route.query.c,\n customerNumber: this.customer.customerNo ? this.customer.customerNo : this.$route.query.c\n },\n query: {\n c: this.$route.query.c\n }\n });\n }\n }\n });\n },\n\n calculatePrice(items) {\n this.bottomFund = items.reduce((totald, item) => {\n var _item$marketFeature2, _item$perspectiveFeat2, _item$vendorFeature4;\n\n return ((item === null || item === void 0 ? void 0 : (_item$marketFeature2 = item.marketFeature) === null || _item$marketFeature2 === void 0 ? void 0 : _item$marketFeature2.fundAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$perspectiveFeat2 = item.perspectiveFeature) === null || _item$perspectiveFeat2 === void 0 ? void 0 : _item$perspectiveFeat2.fundAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$vendorFeature4 = item.vendorFeature) === null || _item$vendorFeature4 === void 0 ? void 0 : _item$vendorFeature4.fundAmount) || 0) + totald;\n }, this.dataItem.fundAmount);\n this.bottomCommission = items.reduce((totald, item) => {\n var _item$marketFeature3, _item$perspectiveFeat3, _item$vendorFeature5;\n\n return ((item === null || item === void 0 ? void 0 : (_item$marketFeature3 = item.marketFeature) === null || _item$marketFeature3 === void 0 ? void 0 : _item$marketFeature3.commissionAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$perspectiveFeat3 = item.perspectiveFeature) === null || _item$perspectiveFeat3 === void 0 ? void 0 : _item$perspectiveFeat3.commissionAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$vendorFeature5 = item.vendorFeature) === null || _item$vendorFeature5 === void 0 ? void 0 : _item$vendorFeature5.commissionAmount) || 0) + totald;\n }, this.dataItem.commissionAmount); // eslint-disable-next-line no-unused-vars\n\n const totalPrice = items.reduce((totald, item) => {\n var _item$perspectiveFeat4, _item$vendorFeature6;\n\n return (\n /*(item?.marketFeature?.price || 0) +\n (item?.platformFeature?.price || 0)*/\n +((item === null || item === void 0 ? void 0 : (_item$perspectiveFeat4 = item.perspectiveFeature) === null || _item$perspectiveFeat4 === void 0 ? void 0 : _item$perspectiveFeat4.price) || 0) + ((item === null || item === void 0 ? void 0 : (_item$vendorFeature6 = item.vendorFeature) === null || _item$vendorFeature6 === void 0 ? void 0 : _item$vendorFeature6.price) || 0) + totald\n );\n }, 0);\n this.totalPrice = totalPrice;\n }\n\n },\n watch: {\n selectData: {\n handler(newVal) {\n this.calculatePrice(newVal);\n\n if (this.$route.query.isRecommended != undefined && newVal.length == 0) {\n this.recommendedPackageChecker = true;\n } else if (this.$route.query.isRecommended != undefined && newVal.length != 0) {\n this.recommendedPackageChecker = false;\n }\n },\n\n deep: true,\n immediate: true\n },\n isUpgraded: {\n handler(val) {\n if (val) {\n this.showSections = false;\n } else {\n this.showSections = true;\n }\n },\n\n deep: true,\n immediate: true\n },\n startDates: {\n handler(val) {\n if (val == 0 || val == 1) {\n const returnAsArrray = this.startDate.filter(option => option.code == val);\n this.startDate = returnAsArrray;\n this.changeStartDate(returnAsArrray[0]);\n }\n },\n\n deep: true,\n immediate: true\n }\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/PackageSettignsCreate.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");
|
|
1750
|
+
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 _PackageSettingCreateType_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PackageSettingCreateType.vue */ \"./src/components/customer/PackageSettingCreateType.vue\");\n/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins */ \"./src/mixins/index.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base/InfoArea.vue */ \"./src/components/base/InfoArea.vue\");\n/* harmony import */ var _base_Faq_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../base/Faq.vue */ \"./src/components/base/Faq.vue\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../constants */ \"./src/constants/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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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: \"PackageSettingCreate\",\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n components: {\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_3__[\"BaseButton\"],\n PopupRight: _components__WEBPACK_IMPORTED_MODULE_3__[\"PopupRight\"],\n PackageSettingCreateType: _PackageSettingCreateType_vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n AccordionResearch: _components__WEBPACK_IMPORTED_MODULE_3__[\"AccordionResearch\"],\n AccordionForeign: _components__WEBPACK_IMPORTED_MODULE_3__[\"AccordionForeign\"],\n AccordionAlgoServer: _components__WEBPACK_IMPORTED_MODULE_3__[\"AccordionAlgoServer\"],\n BaseInput: _components__WEBPACK_IMPORTED_MODULE_3__[\"BaseInput\"],\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_3__[\"BaseSelect\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_3__[\"BaseIcon\"],\n InfoArea: _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n Faq: _base_Faq_vue__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n },\n props: {\n dataItem: Object,\n platformInfo: Object,\n marketInfo: Array,\n isPopupVisible: Boolean,\n currentTab: String,\n isTerminal: Boolean,\n algoDetail: Object,\n isOperationWarning: Boolean,\n operationMessage: String,\n researchDetail: Object,\n isRuleMessageWarning: Boolean,\n mutableItemRuleMessage: String,\n isUpgraded: Boolean,\n startDates: Number\n },\n\n data() {\n return {\n fund: 0,\n commission: 0,\n bottomFund: 0,\n bottomCommission: 0,\n totalPrice: 0,\n startDateSelection: -1,\n selectData: [],\n research: [],\n foreign: [],\n algoServer: [],\n researchData: [],\n foreignData: [],\n algoServerData: [],\n args: {},\n argsAlgo: {},\n argsResearch: {},\n terminalNumber: null,\n isOperationWarningVal: this.isOperationWarning,\n isButtonClicked: false,\n itemRuleMessage: this.mutableItemRuleMessage,\n warningMessage: false,\n recommendedPackageChecker: false,\n infoText: [\"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.\", \"Karma Lisans paketinde derinlik bilgisi bulunmamaktadır.\"],\n startDate: [{\n label: \"Seçiniz\",\n code: -1\n }, {\n label: \"Hemen\",\n code: 0\n }, {\n label: \"Ay Başında\",\n code: 1\n }],\n cusId: null,\n showSections: true,\n triggerSelectbox: 0\n };\n },\n\n mounted() {\n this.searchCustomer();\n const cusId = this.$route.params.customerId !== undefined ? this.$route.params.customerId : null;\n\n if (this.currentTab != \"Algo\" && this.currentTab != \"Research\") {\n var _this$dataItem, _this$dataItem2, _this$dataItem3, _this$dataItem3$platf, _this$dataItem4;\n\n this.getResearch([(_this$dataItem = this.dataItem) === null || _this$dataItem === void 0 ? void 0 : _this$dataItem.applicationId, cusId]).then(res => {\n let details = {};\n details = res.data;\n this.research.push({\n id: 1,\n active: false,\n title: \"Araştırma ve Diğer Uygulamalar\",\n details\n });\n });\n this.getForeign([(_this$dataItem2 = this.dataItem) === null || _this$dataItem2 === void 0 ? void 0 : _this$dataItem2.applicationId, (_this$dataItem3 = this.dataItem) === null || _this$dataItem3 === void 0 ? void 0 : (_this$dataItem3$platf = _this$dataItem3.platform) === null || _this$dataItem3$platf === void 0 ? void 0 : _this$dataItem3$platf.id, cusId]).then(res => {\n let details = {};\n details = res.data;\n this.foreign.push({\n id: 2,\n active: false,\n title: \"Yabancı Endeksler\",\n details\n });\n });\n this.getAlgoServer([(_this$dataItem4 = this.dataItem) === null || _this$dataItem4 === void 0 ? void 0 : _this$dataItem4.applicationId, cusId]).then(res => {\n let details = {};\n details = res.data;\n this.algoServer.push({\n id: 3,\n active: false,\n title: \"Algoritmalar\",\n details\n });\n });\n }\n\n this.setSelectedResearch([]);\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\n this.$nextTick(() => {\n if (this.setSelectboxList == 0 || this.setSelectboxList == 1) {\n const returnAsArrray = this.startDate.filter(option => {\n if (option.code == this.setSelectboxList) {\n return option;\n }\n });\n this.startDate = returnAsArrray;\n this.changeStartDate(returnAsArrray[0]);\n }\n });\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"customer\", \"getResearchInfo\", \"getForeignInfo\", \"getAlgoServerInfo\", \"getSelectedResearchInfo\", \"getSelectedForeignInfo\", \"getSelectedAlgoServerInfo\", \"getAlgorithmDetailInfo\", \"allPackages\"]),\n\n calculateTotalFundRate() {\n let result;\n\n if (this.currentTab === \"Research\") {\n result = this.formatPrice(this.researchFund());\n } else if (this.currentTab === \"Algo\") {\n result = this.formatPrice(this.algoServerFund());\n } else {\n result = this.formatPrice(this.bottomFund + this.foreignFund() + this.researchFund() + this.algoServerFund());\n }\n\n return result;\n },\n\n calculateTotalComissionRate() {\n let result;\n\n if (this.currentTab === \"Research\" && this.currentTab) {\n result = this.formatPrice(this.researchCommission());\n } else if (this.currentTab === \"Algo\") {\n result = this.formatPrice(this.algoServerCommission());\n } else {\n result = this.formatPrice(this.bottomCommission + this.foreignCommission() + this.researchCommission() + this.algoServerCommission());\n }\n\n return result;\n },\n\n calculateTotalPrice() {\n return this.dataItem.price + this.totalPrice + this.researchTotal() + this.foraignTurkishLiraTotal() + this.algoServerTotal();\n },\n\n calculateTotalDollarForeignPrice() {\n return \" + \" + this.formatPriceDollar(this.foraignDollarTotal()) + \" Dolar \";\n },\n\n calculateTotalEuroForeignPrice() {\n return \" + \" + this.formatPriceEuro(this.foraignEuroTotal()) + \" Euro\";\n },\n\n calculateTotalTurkishLiraForeignPrice() {\n return \" + \" + this.formatPrice(this.foraignTurkishLiraTotal()) + \"TL\";\n },\n\n getUserNumber() {\n return this.customer.customerNo;\n },\n\n setSelectboxList() {\n return this.startDates;\n },\n\n getPackageStatuses() {\n return this.allPackages.data.filter(o => o.packageStatus.id === 8);\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setSelectedResearch\", \"setSelectedForeign\", \"setSelectedAlgoServer\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"createPackage\", \"getResearch\", \"getForeign\", \"getAlgoServer\", \"algorithmCreate\", \"researchCreate\", \"createRecommendationPackage\", \"searchCustomerBefore\"]),\n\n modalNo() {\n this.setDefaultValues();\n },\n\n modalHide() {\n document.getElementById(\"operation-warning\").remove();\n },\n\n checkSpesificWarning(param) {\n this.warningMessage = param;\n },\n\n setDefaultValues() {\n this.bottomCommission = 0;\n this.totalPrice = 0;\n this.bottomFund = 0;\n this.showSections = false;\n this.$emit(\"close\");\n },\n\n searchCustomer() {\n this.searchCustomerBefore({\n SearchValue: this.getUserNumber\n });\n },\n\n researchFund() {\n if (this.currentTab == \"Research\") {\n var _this$dataItem5;\n\n return ((_this$dataItem5 = this.dataItem) === null || _this$dataItem5 === void 0 ? void 0 : _this$dataItem5.fundAmount) || 0;\n } else {\n return this.getSelectedResearchInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.fundAmount) || 0) + totald;\n }, 0);\n }\n },\n\n foreignFund() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.fundAmount) || 0) + totald;\n }, 0);\n },\n\n algoServerFund() {\n if (this.currentTab == \"Algo\") {\n var _this$dataItem6;\n\n return ((_this$dataItem6 = this.dataItem) === null || _this$dataItem6 === void 0 ? void 0 : _this$dataItem6.fundAmount) || 0;\n } else {\n return this.getSelectedAlgoServerInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.fundAmount) || 0) + totald;\n }, 0);\n }\n },\n\n // Commission calc\n researchCommission() {\n if (this.currentTab == \"Research\") {\n var _this$dataItem7;\n\n return ((_this$dataItem7 = this.dataItem) === null || _this$dataItem7 === void 0 ? void 0 : _this$dataItem7.commissionAmount) || 0;\n } else {\n return this.getSelectedResearchInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.commissionAmount) || 0) + totald;\n }, 0);\n }\n },\n\n foreignCommission() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.commissionAmount) || 0) + totald;\n }, 0);\n },\n\n algoServerCommission() {\n if (this.currentTab == \"Algo\") {\n var _this$dataItem8;\n\n return ((_this$dataItem8 = this.dataItem) === null || _this$dataItem8 === void 0 ? void 0 : _this$dataItem8.commissionAmount) || 0;\n } else {\n return this.getSelectedAlgoServerInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.commissionAmount) || 0) + totald;\n }, 0);\n }\n },\n\n // Total calc\n researchTotal() {\n return this.getSelectedResearchInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n }, 0);\n },\n\n foraignTurkishLiraTotal() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n if (item.priceInfo === \"₺\") {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n } else {\n return 0 + totald;\n }\n }, 0);\n },\n\n foraignDollarTotal() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n if (item.priceInfo === \"$\") {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n } else {\n return 0 + totald;\n }\n }, 0);\n },\n\n foraignEuroTotal() {\n return this.getSelectedForeignInfo.reduce((totald, item) => {\n if (item.priceInfo === \"€\") {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n } else {\n return 0 + totald;\n }\n }, 0);\n },\n\n algoServerTotal() {\n return this.getSelectedAlgoServerInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.price) || 0) + totald;\n }, 0);\n },\n\n changeSelected(data) {\n this.selectData = data;\n },\n\n changeStartDate(value) {\n this.startDateSelection = value.code;\n },\n\n errorMessage(res) {\n if (res.statusCode === _constants__WEBPACK_IMPORTED_MODULE_6__[\"statuses\"].INTERNAL_SERVER_ERROR) {\n this.$toast.error(res.message);\n } else if (res.errorCode === _constants__WEBPACK_IMPORTED_MODULE_6__[\"statuses\"].NOT_ACCEPTABLE) {\n this.$toast.error(res.result.data[0].errors[0]);\n } else {\n this.$toast.error(\"Beklenmedik bir hata oluştu\");\n }\n\n this.isButtonClicked = false;\n },\n\n submitShow() {\n var _this$dataItem9, _this$dataItem10, _this$dataItem11, _this$dataItem12, _this$dataItem12$plat;\n\n this.isButtonClicked = true;\n this.cusId = this.$route.query.c;\n const packageData = this.mapPackageData(this.selectData);\n const getEveryDateSelection = packageData.filter(o => o.dateSelection == -1);\n const getResearchDateSelection = this.getSelectedResearchInfo.filter(o => o.dateSelection === -1);\n const getForeignDateSelection = this.getSelectedForeignInfo.filter(o => o.dateSelection === -1);\n const getSelectedAlgoServerInfo = this.getSelectedAlgoServerInfo.filter(o => o.dateSelection === -1);\n this.researchData = this.mapArrays(this.getSelectedResearchInfo, \"researchId\", \"dateSelection\");\n this.foreignData = this.mapArrays(this.getSelectedForeignInfo, \"foreignIndiceId\", \"dateSelection\");\n this.algoServerData = this.mapArrays(this.getSelectedAlgoServerInfo, \"algorithmAndServerId\", \"dateSelection\");\n\n if (this.showSections && this.$route.query.isRecommended != \"1\" && (getEveryDateSelection.length > 0 || getResearchDateSelection.length > 0 || getForeignDateSelection.length > 0 || getSelectedAlgoServerInfo.length > 0)) {\n this.$toast.error(\"Başlangıç zamanı seçiniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n this.argsAlgo = {\n customerId: this.customer.id,\n dateSelection: this.startDateSelection,\n applicationId: ((_this$dataItem9 = this.dataItem) === null || _this$dataItem9 === void 0 ? void 0 : _this$dataItem9.applicationId) || null,\n algorithmId: this.dataItem.id,\n terminalNumber: this.isTerminal ? \"\" : this.terminalNumber,\n cusId: Number(this.customer.id)\n };\n this.argsResearch = {\n customerId: this.customer.id,\n dateSelection: this.startDateSelection,\n applicationId: ((_this$dataItem10 = this.dataItem) === null || _this$dataItem10 === void 0 ? void 0 : _this$dataItem10.applicationId) || null,\n researchId: this.dataItem.id,\n cusId: Number(this.customer.id)\n };\n const recommendedPackageArgs = {\n recommendationPackageId: this.dataItem.id,\n\n /*recommendationPackageNo: this.dataItem.recommendationPackageNo,*/\n customerId: Number(this.customer.id),\n purchaseNumber: \"\",\n applicationId: ((_this$dataItem11 = this.dataItem) === null || _this$dataItem11 === void 0 ? void 0 : _this$dataItem11.applicationId) || null,\n platformId: ((_this$dataItem12 = this.dataItem) === null || _this$dataItem12 === void 0 ? void 0 : (_this$dataItem12$plat = _this$dataItem12.platform) === null || _this$dataItem12$plat === void 0 ? void 0 : _this$dataItem12$plat.id) || null,\n features: packageData,\n research: this.researchData,\n foreignIndice: this.foreignData,\n algorithmAndServer: this.algoServerData,\n dateSelection: 0\n };\n\n if (this.$route.query.isRecommended == \"1\") {\n if (this.recommendedPackageChecker) {\n this.$toast.error(\"Lisans Seçiniz\");\n this.isButtonClicked = false;\n return;\n } else {\n this.createRecommendationPackage(recommendedPackageArgs).then(() => {\n this.$router.push({\n name: \"RecommendedPackages\"\n });\n });\n }\n } else if (this.isRecommendedUndefined && this.currentTab !== \"Algo\" && this.currentTab !== \"Research\") {\n this.pureCreate(packageData);\n } else if (this.isRecommendedUndefined && this.currentTab === \"Algo\") {\n this.createAlgo(this.argsAlgo);\n } else if (this.isRecommendedUndefined && this.currentTab === \"Research\") {\n this.createResearch(this.argsResearch);\n }\n },\n\n mapArrays(arrayList, keyItem, dateSelection) {\n const mappedArray = arrayList.map(key => {\n return {\n [keyItem]: key.id || null,\n [dateSelection]: key.dateSelection || 0\n };\n });\n return mappedArray;\n },\n\n mapPackageData(packageData) {\n const resultData = packageData.map(item => {\n var _item$marketFeature, _item$perspectiveFeat, _item$vendorFeature, _item$vendorFeature2, _item$vendorFeature3;\n\n return {\n marketId: (item === null || item === void 0 ? void 0 : (_item$marketFeature = item.marketFeature) === null || _item$marketFeature === void 0 ? void 0 : _item$marketFeature.id) || null,\n perspectiveId: (item === null || item === void 0 ? void 0 : (_item$perspectiveFeat = item.perspectiveFeature) === null || _item$perspectiveFeat === void 0 ? void 0 : _item$perspectiveFeat.id) || null,\n vendorId: (item === null || item === void 0 ? void 0 : (_item$vendorFeature = item.vendorFeature) === null || _item$vendorFeature === void 0 ? void 0 : _item$vendorFeature.id) === undefined || (item === null || item === void 0 ? void 0 : (_item$vendorFeature2 = item.vendorFeature) === null || _item$vendorFeature2 === void 0 ? void 0 : _item$vendorFeature2.id) === null ? null : item === null || item === void 0 ? void 0 : (_item$vendorFeature3 = item.vendorFeature) === null || _item$vendorFeature3 === void 0 ? void 0 : _item$vendorFeature3.id,\n dateSelection: this.$route.query.isRecommended === undefined ? item.dateSelection : 0\n };\n });\n return resultData;\n },\n\n isRecommendedUndefined() {\n return this.$route.query.isRecommended === undefined;\n },\n\n pureCreate(packageData) {\n var _this$dataItem13, _this$dataItem14, _this$dataItem14$plat;\n\n this.args = {\n customerId: this.customer.id,\n purchaseNumber: \"\",\n applicationId: ((_this$dataItem13 = this.dataItem) === null || _this$dataItem13 === void 0 ? void 0 : _this$dataItem13.applicationId) || null,\n applicationFeatureId: this.dataItem.id,\n platformFeatureId: this.dataItem.id,\n platformId: ((_this$dataItem14 = this.dataItem) === null || _this$dataItem14 === void 0 ? void 0 : (_this$dataItem14$plat = _this$dataItem14.platform) === null || _this$dataItem14$plat === void 0 ? void 0 : _this$dataItem14$plat.id) || null,\n features: packageData,\n research: this.researchData,\n foreignIndice: this.foreignData,\n algorithmAndServer: this.algoServerData,\n cusId: Number(this.cusId)\n };\n this.createPackage(this.args).then(res => {\n if (res.error) {\n this.errorMessage(res);\n } else {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: res.purchaseId,\n isUpgradedPurchase: res.isUpgradedPurchase,\n customerNumber: this.customer.customerNo ? this.customer.customerNo : this.$route.query.c\n },\n query: {\n c: this.$route.query.c\n }\n });\n this.setSelectedResearch([]);\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\n }\n });\n },\n\n createAlgo() {\n if (this.startDateSelection == -1) {\n this.$toast.error(\"Başlangıç zamanı seçiniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n if (this.isTerminal === false && this.terminalNumber === null) {\n this.$toast.error(\"Terminal Numarası Giriniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n this.algorithmCreate(this.argsAlgo).then(res => {\n if (res.error) {\n this.$toast.error(res.message);\n } else {\n if (!res.isExternalTerminal) {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: res.purchaseId,\n isUpgradedPurchase: res.purchaseNo,\n customerNumber: this.customer.customerNo ? this.customer.customerNo : this.$route.query.c\n },\n query: {\n c: this.$route.query.c\n }\n });\n } else {\n this.$router.push({\n name: \"CustomerDetail\",\n params: {\n customerId: this.$route.query.c,\n customerNumber: this.$route.params.customerNumber\n },\n query: {\n c: this.$route.query.c\n }\n });\n }\n }\n });\n },\n\n createResearch() {\n if (this.startDateSelection == -1) {\n this.$toast.error(\"Başlangıç zamanı seçiniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n if (this.isTerminal === false && this.terminalNumber === null) {\n this.$toast.error(\"Terminal Numarası Giriniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n this.researchCreate(this.argsResearch).then(res => {\n if (res.error) {\n this.errorMessage(res);\n } else {\n if (!res.isExternalTerminal) {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: res.purchaseId,\n isUpgradedPurchase: res.purchaseNo,\n customerNumber: this.customer.customerNo ? this.customer.customerNo : this.$route.query.c\n },\n query: {\n c: this.$route.query.c\n }\n });\n } else {\n this.$router.push({\n name: \"CustomerDetail\",\n params: {\n customerId: this.$route.query.c,\n customerNumber: this.customer.customerNo ? this.customer.customerNo : this.$route.query.c\n },\n query: {\n c: this.$route.query.c\n }\n });\n }\n }\n });\n },\n\n calculatePrice(items) {\n this.bottomFund = items.reduce((totald, item) => {\n var _item$marketFeature2, _item$perspectiveFeat2, _item$vendorFeature4;\n\n return ((item === null || item === void 0 ? void 0 : (_item$marketFeature2 = item.marketFeature) === null || _item$marketFeature2 === void 0 ? void 0 : _item$marketFeature2.fundAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$perspectiveFeat2 = item.perspectiveFeature) === null || _item$perspectiveFeat2 === void 0 ? void 0 : _item$perspectiveFeat2.fundAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$vendorFeature4 = item.vendorFeature) === null || _item$vendorFeature4 === void 0 ? void 0 : _item$vendorFeature4.fundAmount) || 0) + totald;\n }, this.dataItem.fundAmount);\n this.bottomCommission = items.reduce((totald, item) => {\n var _item$marketFeature3, _item$perspectiveFeat3, _item$vendorFeature5;\n\n return ((item === null || item === void 0 ? void 0 : (_item$marketFeature3 = item.marketFeature) === null || _item$marketFeature3 === void 0 ? void 0 : _item$marketFeature3.commissionAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$perspectiveFeat3 = item.perspectiveFeature) === null || _item$perspectiveFeat3 === void 0 ? void 0 : _item$perspectiveFeat3.commissionAmount) || 0) + ((item === null || item === void 0 ? void 0 : (_item$vendorFeature5 = item.vendorFeature) === null || _item$vendorFeature5 === void 0 ? void 0 : _item$vendorFeature5.commissionAmount) || 0) + totald;\n }, this.dataItem.commissionAmount); // eslint-disable-next-line no-unused-vars\n\n const totalPrice = items.reduce((totald, item) => {\n var _item$perspectiveFeat4, _item$vendorFeature6;\n\n return (\n /*(item?.marketFeature?.price || 0) +\n (item?.platformFeature?.price || 0)*/\n +((item === null || item === void 0 ? void 0 : (_item$perspectiveFeat4 = item.perspectiveFeature) === null || _item$perspectiveFeat4 === void 0 ? void 0 : _item$perspectiveFeat4.price) || 0) + ((item === null || item === void 0 ? void 0 : (_item$vendorFeature6 = item.vendorFeature) === null || _item$vendorFeature6 === void 0 ? void 0 : _item$vendorFeature6.price) || 0) + totald\n );\n }, 0);\n this.totalPrice = totalPrice;\n }\n\n },\n watch: {\n selectData: {\n handler(newVal) {\n this.calculatePrice(newVal);\n\n if (this.$route.query.isRecommended != undefined && newVal.length == 0) {\n this.recommendedPackageChecker = true;\n } else if (this.$route.query.isRecommended != undefined && newVal.length != 0) {\n this.recommendedPackageChecker = false;\n }\n },\n\n deep: true,\n immediate: true\n },\n isUpgraded: {\n handler(val) {\n if (val) {\n this.showSections = false;\n } else {\n this.showSections = true;\n }\n },\n\n deep: true,\n immediate: true\n },\n startDates: {\n handler(val) {\n if (val == 0 || val == 1) {\n const returnAsArrray = this.startDate.filter(option => option.code == val);\n this.startDate = returnAsArrray;\n this.changeStartDate(returnAsArrray[0]);\n }\n },\n\n deep: true,\n immediate: true\n }\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/PackageSettignsCreate.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");
|
|
1751
1751
|
|
|
1752
1752
|
/***/ }),
|
|
1753
1753
|
|
|
@@ -1759,7 +1759,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
|
|
|
1759
1759
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1760
1760
|
|
|
1761
1761
|
"use strict";
|
|
1762
|
-
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 _PackageSettingSelect_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PackageSettingSelect.vue */ \"./src/components/customer/PackageSettingSelect.vue\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _utils_tokenTools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils/tokenTools */ \"./src/utils/tokenTools.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/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"PackageSettingType\",\n components: {\n PackageSettingSelect: _PackageSettingSelect_vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_2__[\"BaseSelect\"]\n },\n props: {\n dataItem: Object,\n platformInfo: Object,\n selectData: Array,\n item: Object,\n isResponsive: Boolean\n },\n\n data() {\n return {\n isHighlighted: false,\n perspectiveData: [],\n distributionData: [],\n packageFeatureSelected: {},\n isPerspectiveShow: false,\n isDistributionShow: false,\n uuid: new Date().getTime(),\n selectedMarketID: null,\n defaultPerspectiveID: null,\n defaultDistrubitionID: null,\n cusId: null,\n showSelectbox: false,\n currentDate: new Date(),\n esube: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_3__[\"getItem\"])(\"esube\"),\n startDateSelection: -1,\n overallLimit: 0,\n startDate: [{\n label: \"Seçiniz\",\n code: -1\n }, {\n label: \"Hemen\",\n code: 0\n }, {\n label: \"Ay Başında\",\n code: 1\n }]\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getPerspectiveInfo\", \"getDistributionInfo\", \"getUserInfo\", \"getOverallLimit\", \"customerBefore\", \"allPackages\"]),\n\n itemParse() {\n return JSON.stringify(this.item);\n },\n\n getMemberType() {\n return this.getUserInfo.memberType;\n },\n\n isUserRegisteredBeforeTwentieth() {\n var _this$customerBefore$;\n\n const accountOpeningDate = (_this$customerBefore$ = this.customerBefore.customers[0]) === null || _this$customerBefore$ === void 0 ? void 0 : _this$customerBefore$.accountOpeningDate;\n const registrationDate = this.parseDate(accountOpeningDate);\n const getLastDayOfMonth = this.parseDateCheckLastDay(registrationDate);\n\n if (registrationDate.getFullYear() === this.currentDate.getFullYear() && registrationDate.getMonth() === this.currentDate.getMonth() && registrationDate.getDate() >= 20 && getLastDayOfMonth) {\n return true;\n }\n\n return false;\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPerspective\", \"getDistribution\", \"monthlyGetOverallLimit\"]),\n\n getOverallLimitOnLoad() {\n this.monthlyGetOverallLimit().then(response => {\n if (response.status === 200) {\n this.overallLimit = response.data.overallLimit;\n }\n });\n },\n\n loadPerspectiveSelect(e) {\n const dataValue = JSON.parse(e.target.getAttribute(\"data-value\"));\n this.isHighlighted = false;\n if (this.isPerspectiveShow) this.isPerspectiveShow = false;\n if (this.isDistributionShow) this.isDistributionShow = false;\n\n if (e.target.checked) {\n this.isHighlighted = true;\n this.showSelectbox = true;\n this.getPerspective([this.dataItem.applicationId, this.dataItem.platform.id, e.target.value, this.cusId]).then(data => {\n if (this.getPerspectiveInfo.length > 0) {\n this.perspectiveData = data;\n this.selectedMarketID = e.target.value;\n this.defaultPerspectiveID = null;\n this.defaultDistrubitionID = null;\n this.isPerspectiveShow = true;\n this.loadDistributionSelect();\n this.fillData(dataValue, this.perspectiveData[0]);\n this.checkSelectedData();\n } else {\n this.fillData(dataValue, null);\n this.checkSelectedData();\n }\n });\n\n if (dataValue.name === \"Hisse + VİOP\") {\n this.$emit(\"showSpesificWarning\", true);\n }\n } else {\n this.showSelectbox = false;\n\n if (dataValue.name === \"Hisse + VİOP\") {\n this.$emit(\"showSpesificWarning\", false);\n }\n\n this.$emit(\"update\", this.selectData.filter(item => {\n var _item$marketFeature;\n\n return (item === null || item === void 0 ? void 0 : (_item$marketFeature = item.marketFeature) === null || _item$marketFeature === void 0 ? void 0 : _item$marketFeature.id) !== dataValue.id;\n }));\n }\n },\n\n loadDistributionSelect() {\n this.getDistribution([this.dataItem.applicationId, this.dataItem.platform.id, this.selectedMarketID, this.cusId]).then(data => {\n if (this.getDistributionInfo.length > 0) {\n this.distributionData = data;\n this.isDistributionShow = true;\n this.packageFeatureSelected.vendorFeature = this.distributionData[0];\n }\n });\n },\n\n changeStartDate(value) {\n this.startDateSelection = value.code;\n this.packageFeatureSelected.dateSelection = value.code;\n this.checkSelectedData();\n },\n\n changePerspective(value) {\n this.uuid = new Date().getTime();\n this.packageFeatureSelected.perspectiveFeature = value;\n this.checkSelectedData();\n },\n\n changeDistribution(value) {\n this.packageFeatureSelected.vendorFeature = value;\n this.defaultDistrubitionID = value.id;\n this.checkSelectedData();\n },\n\n fillData(marketFeature, perspectiveFeature, vendorFeature = {}) {\n this.packageFeatureSelected.packageId = this.dataItem.id;\n this.packageFeatureSelected.marketFeature = marketFeature;\n this.packageFeatureSelected.platformFeature = this.platformInfo;\n this.packageFeatureSelected.perspectiveFeature = perspectiveFeature;\n this.packageFeatureSelected.vendorFeature = vendorFeature;\n this.packageFeatureSelected.dateSelection = this.startDateSelection;\n },\n\n parseDate(dateString) {\n const [day, month, year, time] = dateString.split(/\\/|\\s/);\n const [hours, minutes, seconds] = time.split(\":\");\n return new Date(`${year}-${month}-${day}T${hours}:${minutes}:${seconds}`);\n },\n\n parseDateCheckLastDay(dateString) {\n const year = dateString.getFullYear(),\n month = dateString.getMonth(),\n day = this.currentDate.getDate(),\n getLastDate = new Date(year, month + 1, -1).getDate();\n return day === getLastDate;\n },\n\n checkSelectedData() {\n const findData = this.selectData.find(item => {\n var _item$marketFeature2;\n\n return (item === null || item === void 0 ? void 0 : (_item$marketFeature2 = item.marketFeature) === null || _item$marketFeature2 === void 0 ? void 0 : _item$marketFeature2.id) === this.packageFeatureSelected.marketFeature.id;\n });\n\n if (findData) {\n const newData = { ...findData,\n ...this.packageFeatureSelected\n };\n const lastData = this.selectData.map(item => {\n if (item.marketFeature.id === newData.marketFeature.id) {\n return newData;\n }\n\n return item;\n });\n this.$emit(\"update\", lastData);\n } else {\n this.selectData.push(this.packageFeatureSelected);\n this.$emit(\"update\", this.selectData);\n }\n },\n\n setStartDates(listType, startDateSelections) {\n if (listType == -1) {\n this.startDate = [{\n label: \"Seçiniz\",\n code: -1\n }, {\n label: \"Hemen\",\n code: 0\n }, {\n label: \"Ay Başında\",\n code: 1\n }];\n } else if (listType == 0) {\n this.startDate = [{\n label: \"Hemen\",\n code: 0\n }];\n } else if (listType == 1) {\n this.startDate = [{\n label: \"Ay Başında\",\n code: 1\n }];\n }\n\n this.startDateSelection = startDateSelections;\n }\n\n },\n\n mounted() {\n if (this.$route.params.customerId !== undefined) {\n this.cusId = this.$route.params.customerId;\n }\n },\n\n watch: {\n customerBefore(val) {\n if (val && !val.error) {\n var _val$customers$;\n\n const overall = parseInt(val === null || val === void 0 ? void 0 : (_val$customers$ = val.customers[0]) === null || _val$customers$ === void 0 ? void 0 : _val$customers$.overall);\n\n if ((this.item.applicationId == 3 || this.item.applicationId == 2) && this.item.marketId == 3) {\n if (this.currentDate.getDate() >= 20 && this.esube == \"yes\" && this.isUserRegisteredBeforeTwentieth && overall > this.overallLimit) {\n this.setStartDates(1, 1);\n } else if (this.esube == \"yes\" && this.currentDate.getDate() <= 20 && !this.isUserRegisteredBeforeTwentieth && overall > this.overallLimit) {\n this.setStartDates(-1, -1);\n }\n } else {\n this.setStartDates(-1, -1);\n }\n }\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/PackageSettingCreateType.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");
|
|
1762
|
+
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 _PackageSettingSelect_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PackageSettingSelect.vue */ \"./src/components/customer/PackageSettingSelect.vue\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _utils_tokenTools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils/tokenTools */ \"./src/utils/tokenTools.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/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"PackageSettingType\",\n components: {\n PackageSettingSelect: _PackageSettingSelect_vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_2__[\"BaseSelect\"]\n },\n props: {\n dataItem: Object,\n platformInfo: Object,\n selectData: Array,\n item: Object,\n isResponsive: Boolean\n },\n\n data() {\n return {\n isHighlighted: false,\n perspectiveData: [],\n distributionData: [],\n packageFeatureSelected: {},\n isPerspectiveShow: false,\n isDistributionShow: false,\n uuid: new Date().getTime(),\n selectedMarketID: null,\n defaultPerspectiveID: null,\n defaultDistrubitionID: null,\n cusId: null,\n showSelectbox: false,\n currentDate: new Date(),\n esube: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_3__[\"getItem\"])(\"esube\"),\n startDateSelection: -1,\n overallLimit: 0,\n startDate: [{\n label: \"Seçiniz\",\n code: -1\n }, {\n label: \"Hemen\",\n code: 0\n }, {\n label: \"Ay Başında\",\n code: 1\n }]\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getPerspectiveInfo\", \"getDistributionInfo\", \"getUserInfo\", \"getOverallLimit\", \"customerBefore\", \"allPackages\"]),\n\n itemParse() {\n return JSON.stringify(this.item);\n },\n\n getMemberType() {\n return this.getUserInfo.memberType;\n },\n\n isUserRegisteredBeforeTwentieth() {\n var _this$customerBefore$;\n\n const accountOpeningDate = (_this$customerBefore$ = this.customerBefore.customers[0]) === null || _this$customerBefore$ === void 0 ? void 0 : _this$customerBefore$.accountOpeningDate;\n const registrationDate = this.parseDate(accountOpeningDate);\n const getLastDayOfMonth = this.parseDateCheckLastDay(registrationDate);\n\n if (registrationDate.getFullYear() === this.currentDate.getFullYear() && registrationDate.getMonth() === this.currentDate.getMonth() && registrationDate.getDate() >= 20 && !getLastDayOfMonth) {\n return true;\n }\n\n return false;\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPerspective\", \"getDistribution\", \"monthlyGetOverallLimit\"]),\n\n getOverallLimitOnLoad() {\n this.monthlyGetOverallLimit().then(response => {\n if (response.status === 200) {\n this.overallLimit = response.data.overallLimit;\n }\n });\n },\n\n loadPerspectiveSelect(e) {\n const dataValue = JSON.parse(e.target.getAttribute(\"data-value\"));\n this.isHighlighted = false;\n if (this.isPerspectiveShow) this.isPerspectiveShow = false;\n if (this.isDistributionShow) this.isDistributionShow = false;\n\n if (e.target.checked) {\n this.isHighlighted = true;\n this.showSelectbox = true;\n this.getPerspective([this.dataItem.applicationId, this.dataItem.platform.id, e.target.value, this.cusId]).then(data => {\n if (this.getPerspectiveInfo.length > 0) {\n this.perspectiveData = data;\n this.selectedMarketID = e.target.value;\n this.defaultPerspectiveID = null;\n this.defaultDistrubitionID = null;\n this.isPerspectiveShow = true;\n this.loadDistributionSelect();\n this.fillData(dataValue, this.perspectiveData[0]);\n this.checkSelectedData();\n } else {\n this.fillData(dataValue, null);\n this.checkSelectedData();\n }\n });\n\n if (dataValue.name === \"Hisse + VİOP\") {\n this.$emit(\"showSpesificWarning\", true);\n }\n } else {\n this.showSelectbox = false;\n\n if (dataValue.name === \"Hisse + VİOP\") {\n this.$emit(\"showSpesificWarning\", false);\n }\n\n this.$emit(\"update\", this.selectData.filter(item => {\n var _item$marketFeature;\n\n return (item === null || item === void 0 ? void 0 : (_item$marketFeature = item.marketFeature) === null || _item$marketFeature === void 0 ? void 0 : _item$marketFeature.id) !== dataValue.id;\n }));\n }\n },\n\n loadDistributionSelect() {\n this.getDistribution([this.dataItem.applicationId, this.dataItem.platform.id, this.selectedMarketID, this.cusId]).then(data => {\n if (this.getDistributionInfo.length > 0) {\n this.distributionData = data;\n this.isDistributionShow = true;\n this.packageFeatureSelected.vendorFeature = this.distributionData[0];\n }\n });\n },\n\n changeStartDate(value) {\n this.startDateSelection = value.code;\n this.packageFeatureSelected.dateSelection = value.code;\n this.checkSelectedData();\n },\n\n changePerspective(value) {\n this.uuid = new Date().getTime();\n this.packageFeatureSelected.perspectiveFeature = value;\n this.checkSelectedData();\n },\n\n changeDistribution(value) {\n this.packageFeatureSelected.vendorFeature = value;\n this.defaultDistrubitionID = value.id;\n this.checkSelectedData();\n },\n\n fillData(marketFeature, perspectiveFeature, vendorFeature = {}) {\n this.packageFeatureSelected.packageId = this.dataItem.id;\n this.packageFeatureSelected.marketFeature = marketFeature;\n this.packageFeatureSelected.platformFeature = this.platformInfo;\n this.packageFeatureSelected.perspectiveFeature = perspectiveFeature;\n this.packageFeatureSelected.vendorFeature = vendorFeature;\n this.packageFeatureSelected.dateSelection = this.startDateSelection;\n },\n\n parseDate(dateString) {\n const [day, month, year, time] = dateString.split(/\\/|\\s/);\n const [hours, minutes, seconds] = time.split(\":\");\n return new Date(`${year}-${month}-${day}T${hours}:${minutes}:${seconds}`);\n },\n\n parseDateCheckLastDay(dateString) {\n const year = dateString.getFullYear(),\n month = dateString.getMonth(),\n day = this.currentDate.getDate(),\n getLastDate = new Date(year, month + 1, -1).getDate();\n return day === getLastDate;\n },\n\n checkSelectedData() {\n const findData = this.selectData.find(item => {\n var _item$marketFeature2;\n\n return (item === null || item === void 0 ? void 0 : (_item$marketFeature2 = item.marketFeature) === null || _item$marketFeature2 === void 0 ? void 0 : _item$marketFeature2.id) === this.packageFeatureSelected.marketFeature.id;\n });\n\n if (findData) {\n const newData = { ...findData,\n ...this.packageFeatureSelected\n };\n const lastData = this.selectData.map(item => {\n if (item.marketFeature.id === newData.marketFeature.id) {\n return newData;\n }\n\n return item;\n });\n this.$emit(\"update\", lastData);\n } else {\n this.selectData.push(this.packageFeatureSelected);\n this.$emit(\"update\", this.selectData);\n }\n },\n\n setStartDates(listType, startDateSelections) {\n if (listType == -1) {\n this.startDate = [{\n label: \"Seçiniz\",\n code: -1\n }, {\n label: \"Hemen\",\n code: 0\n }, {\n label: \"Ay Başında\",\n code: 1\n }];\n } else if (listType == 0) {\n this.startDate = [{\n label: \"Hemen\",\n code: 0\n }];\n } else if (listType == 1) {\n this.startDate = [{\n label: \"Ay Başında\",\n code: 1\n }];\n }\n\n this.startDateSelection = startDateSelections;\n }\n\n },\n\n mounted() {\n if (this.$route.params.customerId !== undefined) {\n this.cusId = this.$route.params.customerId;\n }\n },\n\n watch: {\n customerBefore(val) {\n if (val && !val.error) {\n var _val$customers$;\n\n const overall = parseInt(val === null || val === void 0 ? void 0 : (_val$customers$ = val.customers[0]) === null || _val$customers$ === void 0 ? void 0 : _val$customers$.overall);\n\n if ((this.item.applicationId == 3 || this.item.applicationId == 2) && this.item.marketId == 3) {\n if (this.currentDate.getDate() >= 20 && this.esube == \"yes\" && this.isUserRegisteredBeforeTwentieth && overall > this.overallLimit) {\n this.setStartDates(1, 1);\n } else if (this.esube == \"yes\" && this.currentDate.getDate() < 20 && !this.isUserRegisteredBeforeTwentieth && overall > this.overallLimit) {\n this.setStartDates(-1, -1);\n }\n } else {\n this.setStartDates(-1, -1);\n }\n }\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/PackageSettingCreateType.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");
|
|
1763
1763
|
|
|
1764
1764
|
/***/ }),
|
|
1765
1765
|
|
|
@@ -1795,7 +1795,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
|
|
|
1795
1795
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1796
1796
|
|
|
1797
1797
|
"use strict";
|
|
1798
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue_carousel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-carousel */ \"./node_modules/vue-carousel/dist/vue-carousel.min.js\");\n/* harmony import */ var vue_carousel__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue_carousel__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _mixins___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/ */ \"./src/mixins/index.js\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"PackageSlider\",\n mixins: [_mixins___WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n props: {\n packages: Array,\n isDisplay: {\n type: Boolean,\n default: false\n }\n },\n components: {\n Carousel: vue_carousel__WEBPACK_IMPORTED_MODULE_0__[\"Carousel\"],\n Slide: vue_carousel__WEBPACK_IMPORTED_MODULE_0__[\"Slide\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseButton\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"]\n },\n\n data() {\n return {\n isDisplayed: undefined,\n price: [],\n overallLimit: null
|
|
1798
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue_carousel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-carousel */ \"./node_modules/vue-carousel/dist/vue-carousel.min.js\");\n/* harmony import */ var vue_carousel__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue_carousel__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _mixins___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/ */ \"./src/mixins/index.js\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"PackageSlider\",\n mixins: [_mixins___WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n props: {\n packages: Array,\n isDisplay: {\n type: Boolean,\n default: false\n }\n },\n components: {\n Carousel: vue_carousel__WEBPACK_IMPORTED_MODULE_0__[\"Carousel\"],\n Slide: vue_carousel__WEBPACK_IMPORTED_MODULE_0__[\"Slide\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseButton\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"]\n },\n\n data() {\n return {\n isDisplayed: undefined,\n price: [],\n overallLimit: null\n };\n },\n\n created() {\n this.isDisplayed = this.isDisplay;\n },\n\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_2__[\"mapActions\"])([\"createPackage\", \"monthlyGetOverallLimit\"]),\n\n changeSliderStatus() {\n this.isDisplayed = !this.isDisplayed;\n },\n\n purchase(val) {\n const args = {\n dateSelection: 0,\n IsRecommendationPackage: true,\n PurchaseId: val\n };\n this.createPackage(args).then(res => {\n if (res.error) {\n this.$toast.error(res.message);\n } else {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: res.purchaseId,\n isUpgradedPurchase: res.isUpgradedPurchase,\n customerNumber: this.customer.customerNo ? this.customer.customerNo : this.$route.query.c\n },\n query: {\n c: this.$route.query.c\n }\n });\n }\n });\n },\n\n getOverallLimitOnLoad() {\n this.monthlyGetOverallLimit().then(response => {\n if (response.status === 200) {\n this.overallLimit = this.formatPrice(response.data.overallLimit);\n }\n });\n }\n\n },\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_2__[\"mapGetters\"])([\"customer\", \"getUserInfo\", \"allPackages\"]),\n\n getAllCanceledPackageStatus() {\n return this.allPackages.data.filter(o => o.packageStatus.id == 8);\n },\n\n checkHasPrices() {\n return this.packages;\n }\n\n },\n\n mounted() {\n this.getOverallLimitOnLoad();\n }\n\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/PackageSlider.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");
|
|
1799
1799
|
|
|
1800
1800
|
/***/ }),
|
|
1801
1801
|
|
|
@@ -2263,7 +2263,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
2263
2263
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2264
2264
|
|
|
2265
2265
|
"use strict";
|
|
2266
|
-
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 { staticClass: \"data-request-item\" },\n [\n _c(\"div\", { staticClass: \"data-request-item__top\" }, [\n _c(\n \"div\",\n {\n staticClass: \"left\",\n class: _vm.getSelectedTerminalNumber.length >= 1 ? \"flex-04\" : \"\",\n },\n [\n _c(\n \"div\",\n { staticClass: \"section section-0\" },\n [\n _vm.dataItem && _vm.dataItem.imageUrl\n ? _c(\"img\", {\n attrs: {\n alt: \"product image\",\n src: _vm.dataItem.imageUrl,\n },\n })\n : _c(\"base-icon\", { attrs: { name: \"no-image\" } }),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"section section-main\" }, [\n _c(\"div\", { staticClass: \"section section-1\" }, [\n _c(\"h5\", [_vm._v(_vm._s(_vm.dataItem.title))]),\n _c(\"span\", [_vm._v(_vm._s(_vm.dataItem.subtitle))]),\n ]),\n ]),\n ]\n ),\n _c(\"div\", { staticClass: \"right\" }, [\n _vm.getSelectedTerminalNumber.length > 0 &&\n !_vm.getSelectedTerminalNumber.includes(null)\n ? _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", [_vm._v(\"Terminal No\")]),\n _c(\"span\", [\n _vm._v(_vm._s(_vm.getSelectedTerminalNumber.toString())),\n ]),\n ])\n : _vm._e(),\n _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Paket No\")]),\n _c(\"span\", [_vm._v(_vm._s(_vm.dataItem.purchaseNo))]),\n ]),\n !_vm.dataItem.package.length && _vm.dataItem.startDate\n ? _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Başlangıç Tarihi\")]),\n _c(\"span\", [\n _vm._v(\n _vm._s(_vm.getTime(_vm.dataItem.startDate, \"DD/MM/YYYY\"))\n ),\n ]),\n ])\n : _vm._e(),\n !_vm.dataItem.package.length && _vm.dataItem.endDate\n ? _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Bitiş Tarihi\")]),\n _c(\"span\", [\n _vm._v(\n _vm._s(_vm.getTime(_vm.dataItem.endDate, \"DD/MM/YYYY\"))\n ),\n ]),\n ])\n : _vm._e(),\n _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Talep Tarihi\")]),\n _vm.dataItem.requestDate\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.getTime(_vm.dataItem.requestDate, \"DD/MM/YYYY\")\n ) +\n \" \"\n ),\n ])\n : _c(\"span\", [_vm._v(\"-\")]),\n ]),\n _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Düzenleme Tarihi\")]),\n _vm.dataItem.updatedAt\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.getTime(_vm.dataItem.updatedAt, \"DD/MM/YYYY\")\n ) +\n \" \"\n ),\n ])\n : _c(\"span\", [_vm._v(\"-\")]),\n ]),\n ]),\n _vm.dataItem.packageStatus.id !== 6 &&\n _vm.dataItem.packageStatus.id !== 8\n ? _c(\"div\", { staticClass: \"right for-button\" }, [\n _c(\"div\", { staticClass: \"col\" }, [\n _vm.dataItem.packageStatus.id !== 8\n ? _c(\n \"div\",\n {\n staticClass: \"button-area\",\n class: {\n \"d-none\": _vm.dataItem.packageStatus.id === 6,\n },\n attrs: { id: \"button-area-\" + _vm.dataItem.purchaseNo },\n },\n [\n _c(\"base-icon\", { attrs: { name: \"gear\" } }),\n _c(\"span\", { staticClass: \"text\" }, [\n _vm._v(\"Düzenle\"),\n ]),\n _c(\"div\", { staticClass: \"dropdown\" }, [\n (_vm.dataItem.packageType === 1) &\n (_vm.dataItem.packageStatus.id !== 6)\n ? _c(\n \"div\",\n {\n staticClass: \"dropdown-item\",\n attrs: {\n id: \"dropdown-item-1-\" + _vm.dataItem.id,\n },\n on: {\n click: function ($event) {\n return _vm.addCart(_vm.dataItem.id)\n },\n },\n },\n [\n _c(\n \"span\",\n { staticClass: \"dropdown-item__text\" },\n [_vm._v(\"Lisans Ekle/Çıkar\")]\n ),\n ]\n )\n : _vm._e(),\n _vm.dataItem.packageStatus.id == 2\n ? _c(\n \"div\",\n {\n staticClass: \"dropdown-item\",\n attrs: {\n id: \"dropdown-item-2-\" + _vm.dataItem.id,\n },\n on: {\n click: function ($event) {\n return _vm.showModal(_vm.getDataItemId)\n },\n },\n },\n [\n _c(\n \"span\",\n { staticClass: \"dropdown-item__text\" },\n [_vm._v(\"İptal Et\")]\n ),\n ]\n )\n : _vm._e(),\n ]),\n ],\n 1\n )\n : _vm._e(),\n ]),\n ])\n : _vm._e(),\n ]),\n _c(\"div\", { staticClass: \"data-request-item__middle\" }, [\n _c(\"div\", { staticClass: \"left\" }, [\n _c(\"div\", { staticClass: \"item\" }, [\n _c(\"span\", [_vm._v(\"Bes Yatırım Fonu:\")]),\n _c(\"strong\", [\n _vm._v(\n _vm._s(\n _vm.formatPrice(_vm.dataItem.price.totalFundAmount) || 0\n ) + \" TL\"\n ),\n ]),\n ]),\n _vm._m(0),\n _c(\"div\", { staticClass: \"item\" }, [\n _c(\"span\", [_vm._v(\"Komisyon:\")]),\n _c(\"strong\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(_vm.dataItem.price.totalCommissionAmount) ||\n 0\n ) +\n \" TL \"\n ),\n ]),\n ]),\n ]),\n _c(\"div\", { staticClass: \"right\" }, [\n !_vm.dataItem.isSuccessfulIntegration\n ? _c(\"div\", { staticClass: \"item integration-warning\" }, [\n _c(\"div\", { staticClass: \"tag tooltip\" }, [\n _c(\"div\", { staticClass: \"tooltiptext\" }, [\n _c(\"div\", { staticClass: \"texts\" }, [\n _vm._v(\n \" \" +\n _vm._s(_vm.dataItem.productName) +\n \" sisteminden kaynaklı bir hata alınmaktadır. Lütfen daha sonra tekrar deneyiniz. \"\n ),\n ]),\n ]),\n _c(\n \"span\",\n { staticClass: \"text\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"bell-fill\" },\n }),\n ],\n 1\n ),\n ]),\n ])\n : _vm._e(),\n _c(\"div\", { staticClass: \"item\" }, [\n _c(\"h3\", { staticClass: \"data-request-item__price\" }, [\n _c(\"span\", { staticClass: \"data-request-item__price__text\" }, [\n _vm._v(\"Paket Tutarı:\"),\n ]),\n _vm._v(\" \" + _vm._s(_vm.totalPriceCalc || 0) + \" \"),\n ]),\n ]),\n _c(\"div\", { staticClass: \"item\" }, [\n _c(\"span\", { staticClass: \"data-request-item__status\" }, [\n _c(\"span\", { staticClass: \"data-request-item__status__text\" }, [\n _vm._v(\"Paket Durumu:\"),\n ]),\n _c(\n \"span\",\n {\n staticClass: \"data-request-item__status__stat\",\n class: [\n \"request\",\n {\n active: _vm.dataItem.packageStatus.id == 2 ? true : \"\",\n passive: _vm.dataItem.packageStatus.id == 8 ? true : \"\",\n },\n ],\n },\n [_vm._v(_vm._s(_vm.dataItem.packageStatus.name))]\n ),\n ]),\n ]),\n ]),\n ]),\n _vm.dataItem.package.length\n ? _c(\"div\", { staticClass: \"data-request-item__bottom\" }, [\n _c(\"div\", { staticClass: \"left package-container\" }, [\n _c(\n \"div\",\n { staticClass: \"item\" },\n [\n _c(\"strong\", [_vm._v(\"Paketler:\")]),\n _vm._l(_vm.mergedPackagesNames, function (item, index) {\n return _c(\"span\", { key: item.id, staticClass: \"items\" }, [\n _vm._v(\" \" + _vm._s(item) + \" \"),\n index != _vm.mergedPackagesNames.length - 1\n ? _c(\"span\", { staticClass: \"seperator\" })\n : _vm._e(),\n ])\n }),\n ],\n 2\n ),\n ]),\n _c(\n \"div\",\n { staticClass: \"right\", on: { click: _vm.accordionToggle } },\n [\n _c(\"base-icon\", {\n class: [\"toggle\", { active: _vm.isActive }],\n attrs: { name: \"arrow-green\" },\n }),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"data-request-item__bottom__packages\" }, [\n _c(\n \"div\",\n { class: [\"accordion-wrapper\", _vm.isActive ? \"active\" : \"\"] },\n [\n _c(\n \"div\",\n {\n class: [\n \"accordion-wrapper__row caption\",\n _vm.isActive ? \"active\" : \"\",\n ],\n },\n [\n _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell caption\" },\n [_vm._v(\"Paket Adı:\")]\n ),\n _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell caption\" },\n [_vm._v(\" Başlangıç Tarihi: \")]\n ),\n _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell caption\" },\n [_vm._v(\" Bitiş Tarihi: \")]\n ),\n _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell caption\" },\n [_vm._v(\" \" + _vm._s(_vm.pricesText) + \" \")]\n ),\n ]\n ),\n _c(\n \"div\",\n { staticClass: \"accordion-content active\" },\n _vm._l(_vm.mergedForTableData, function (item) {\n return _c(\n \"div\",\n {\n key: item.name,\n staticClass: \"accordion-wrapper__row\",\n },\n [\n _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell\" },\n [\n typeof item == \"object\"\n ? _c(\"span\", [\n item.name\n ? _c(\"span\", [_vm._v(_vm._s(item.name))])\n : _vm._e(),\n ])\n : _c(\"span\", [_vm._v(_vm._s(item))]),\n ]\n ),\n item.startDate\n ? _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell\" },\n [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.getTime(\n item.startDate,\n \"DD/MM/YYYY\"\n )\n ) +\n \" \"\n ),\n ]\n )\n : _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell\" },\n [_vm._v(\"-\")]\n ),\n item.endDate\n ? _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell\" },\n [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.getTime(item.endDate, \"DD/MM/YYYY\")\n ) +\n \" \"\n ),\n ]\n )\n : _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell\" },\n [_vm._v(\"-\")]\n ),\n item.totalPrice\n ? _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell\" },\n [_vm._v(\" \" + _vm._s(item.totalPrice) + \" \")]\n )\n : _vm._e(),\n item.price\n ? _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell\" },\n [\n _vm._v(\" \" + _vm._s(item.price) + \" \"),\n item.info == \"₺\"\n ? _c(\"span\", [_vm._v(\"TL\")])\n : item.info == \"€\"\n ? _c(\"span\", [_vm._v(\"Euro\")])\n : item.info == \"$\"\n ? _c(\"span\", [_vm._v(\"Dolar\")])\n : _vm._e(),\n ]\n )\n : _vm._e(),\n !item.totalPrice && !item.price\n ? _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell\" },\n [_vm._v(\" - \")]\n )\n : _vm._e(),\n ]\n )\n }),\n 0\n ),\n ]\n ),\n ]),\n ])\n : _vm._e(),\n _vm.packageDetail\n ? [\n _c(\"package-settigns\", {\n attrs: {\n dataItem: _vm.packageDetail,\n marketInfo: _vm.marketInfo,\n isPopupVisible: _vm.isPopupVisible,\n },\n on: { close: _vm.closePopup },\n }),\n ]\n : _vm._e(),\n _c(\n \"modal\",\n {\n staticClass: \"cancel-modal\",\n attrs: { height: \"auto\", adaptive: true, name: _vm.getDataItemId },\n },\n [\n _c(\"div\", { staticClass: \"modal-heading\" }, [\n _c(\"div\", { staticClass: \"modal-title\" }, [\n _c(\"h5\", [_vm._v(\"Paketi İptal Etmek İstiyor musunuz?\")]),\n ]),\n _c(\n \"a\",\n {\n on: {\n click: function ($event) {\n return _vm.closeModal()\n },\n },\n },\n [\n _c(\"base-icon\", {\n staticClass: \"close\",\n attrs: { name: \"close-circle\" },\n }),\n ],\n 1\n ),\n ]),\n _c(\n \"div\",\n { staticClass: \"modal-body\" },\n [\n _c(\"div\", { staticClass: \"modal-body__top\" }, [\n _c(\n \"div\",\n { staticClass: \"modal-body__image\" },\n [\n _vm.dataItem && _vm.dataItem.imageUrl\n ? _c(\"img\", {\n staticClass: \"image\",\n attrs: {\n alt: \"product image\",\n src: _vm.dataItem.imageUrl,\n },\n })\n : _c(\"base-icon\", {\n staticClass: \"image\",\n attrs: { name: \"no-image\" },\n }),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"modal-body__info\" }, [\n _vm.dataItem.productName\n ? _c(\"h3\", { staticClass: \"title\" }, [\n _vm._v(\" \" + _vm._s(_vm.dataItem.productName) + \" \"),\n ])\n : _vm._e(),\n _c(\"p\", { staticClass: \"modal-body__info-platform\" }, [\n _vm.dataItem.platform && _vm.dataItem.platform.name\n ? _c(\"span\", [_vm._v(_vm._s(_vm.dataItem.platform.name))])\n : _vm._e(),\n ]),\n _c(\"div\", { staticClass: \"modal-body__info_bes\" }, [\n _c(\"span\", { staticClass: \"m-text-grayscale-80\" }, [\n _vm._v(\"BES / Yatırım Fonu:\"),\n ]),\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(_vm.dataItem.price.totalFundAmount)\n ) +\n \" TL \"\n ),\n _c(\"span\", { staticClass: \"m-text-grayscale-80\" }, [\n _vm._v(\"veya Komisyon:\"),\n ]),\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n _vm.dataItem.price.totalCommissionAmount\n )\n ) +\n \" TL \"\n ),\n ]),\n _c(\n \"p\",\n { staticClass: \"modal-body__info_price\" },\n [\n _vm.totalPriceCalc !== 0\n ? [_vm._v(_vm._s(_vm.totalPriceCalc))]\n : [_vm._v(\"Ücretsiz\")],\n ],\n 2\n ),\n ]),\n ]),\n _c(\"info-area\", { attrs: { infoText: _vm.infoText } }),\n ],\n 1\n ),\n _c(\n \"div\",\n { staticClass: \"modal-bottom\" },\n [\n _c(\n \"base-button\",\n {\n on: {\n click: function ($event) {\n return _vm.cancel(_vm.dataItem.id)\n },\n },\n },\n [_vm._v(\"İptal Et\")]\n ),\n ],\n 1\n ),\n ]\n ),\n ],\n 2\n )\n}\nvar staticRenderFns = [\n function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"item\" }, [_c(\"span\", [_vm._v(\"veya\")])])\n },\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/DataRequestItem.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");
|
|
2266
|
+
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 { staticClass: \"data-request-item\" },\n [\n _c(\"div\", { staticClass: \"data-request-item__top\" }, [\n _c(\n \"div\",\n {\n staticClass: \"left\",\n class: _vm.getSelectedTerminalNumber.length >= 1 ? \"flex-04\" : \"\",\n },\n [\n _c(\n \"div\",\n { staticClass: \"section section-0\" },\n [\n _vm.dataItem && _vm.dataItem.imageUrl\n ? _c(\"img\", {\n attrs: {\n alt: \"product image\",\n src: _vm.dataItem.imageUrl,\n },\n })\n : _c(\"base-icon\", { attrs: { name: \"no-image\" } }),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"section section-main\" }, [\n _c(\"div\", { staticClass: \"section section-1\" }, [\n _c(\"h5\", [_vm._v(_vm._s(_vm.dataItem.title))]),\n _c(\"span\", [_vm._v(_vm._s(_vm.dataItem.subtitle))]),\n ]),\n ]),\n ]\n ),\n _c(\"div\", { staticClass: \"right\" }, [\n _vm.getSelectedTerminalNumber.length > 0 &&\n !_vm.getSelectedTerminalNumber.includes(null)\n ? _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", [_vm._v(\"Terminal No\")]),\n _c(\"span\", [\n _vm._v(_vm._s(_vm.getSelectedTerminalNumber.toString())),\n ]),\n ])\n : _vm._e(),\n _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Paket No\")]),\n _c(\"span\", [_vm._v(_vm._s(_vm.dataItem.purchaseNo))]),\n ]),\n !_vm.dataItem.package.length && _vm.dataItem.startDate\n ? _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Başlangıç Tarihi\")]),\n _c(\"span\", [\n _vm._v(\n _vm._s(_vm.getTime(_vm.dataItem.startDate, \"DD/MM/YYYY\"))\n ),\n ]),\n ])\n : _vm._e(),\n !_vm.dataItem.package.length && _vm.dataItem.endDate\n ? _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Bitiş Tarihi\")]),\n _c(\"span\", [\n _vm._v(\n _vm._s(_vm.getTime(_vm.dataItem.endDate, \"DD/MM/YYYY\"))\n ),\n ]),\n ])\n : _vm._e(),\n _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Talep Tarihi\")]),\n _vm.dataItem.requestDate\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.getTime(_vm.dataItem.requestDate, \"DD/MM/YYYY\")\n ) +\n \" \"\n ),\n ])\n : _c(\"span\", [_vm._v(\"-\")]),\n ]),\n _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Düzenleme Tarihi\")]),\n _vm.dataItem.updatedAt\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.getTime(_vm.dataItem.updatedAt, \"DD/MM/YYYY\")\n ) +\n \" \"\n ),\n ])\n : _c(\"span\", [_vm._v(\"-\")]),\n ]),\n ]),\n _vm.dataItem.packageStatus.id !== 6 &&\n _vm.dataItem.packageStatus.id !== 8\n ? _c(\"div\", { staticClass: \"right for-button\" }, [\n _c(\"div\", { staticClass: \"col\" }, [\n _vm.dataItem.packageStatus.id !== 8\n ? _c(\n \"div\",\n {\n staticClass: \"button-area\",\n class: {\n \"d-none\": _vm.dataItem.packageStatus.id === 6,\n },\n attrs: { id: \"button-area-\" + _vm.dataItem.purchaseNo },\n },\n [\n _c(\"base-icon\", { attrs: { name: \"gear\" } }),\n _c(\"span\", { staticClass: \"text\" }, [\n _vm._v(\"Düzenle\"),\n ]),\n _c(\"div\", { staticClass: \"dropdown\" }, [\n (_vm.dataItem.packageType === 1) &\n (_vm.dataItem.packageStatus.id !== 6)\n ? _c(\n \"div\",\n {\n staticClass: \"dropdown-item\",\n attrs: {\n id: \"dropdown-item-1-\" + _vm.dataItem.id,\n },\n on: {\n click: function ($event) {\n return _vm.addCart(_vm.dataItem.id)\n },\n },\n },\n [\n _c(\n \"span\",\n { staticClass: \"dropdown-item__text\" },\n [_vm._v(\"Lisans Ekle/Çıkar\")]\n ),\n ]\n )\n : _vm._e(),\n _vm.dataItem.packageStatus.id == 2\n ? _c(\n \"div\",\n {\n staticClass: \"dropdown-item\",\n attrs: {\n id: \"dropdown-item-2-\" + _vm.dataItem.id,\n },\n on: {\n click: function ($event) {\n return _vm.showModal(_vm.getDataItemId)\n },\n },\n },\n [\n _c(\n \"span\",\n { staticClass: \"dropdown-item__text\" },\n [_vm._v(\"İptal Et\")]\n ),\n ]\n )\n : _vm._e(),\n ]),\n ],\n 1\n )\n : _vm._e(),\n ]),\n ])\n : _c(\"div\", { staticClass: \"right for-button\" }),\n ]),\n _c(\"div\", { staticClass: \"data-request-item__middle\" }, [\n _c(\"div\", { staticClass: \"left\" }, [\n _c(\"div\", { staticClass: \"item\" }, [\n _c(\"span\", [_vm._v(\"Bes Yatırım Fonu:\")]),\n _c(\"strong\", [\n _vm._v(\n _vm._s(\n _vm.formatPrice(_vm.dataItem.price.totalFundAmount) || 0\n ) + \" TL\"\n ),\n ]),\n ]),\n _vm._m(0),\n _c(\"div\", { staticClass: \"item\" }, [\n _c(\"span\", [_vm._v(\"Komisyon:\")]),\n _c(\"strong\", [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(_vm.dataItem.price.totalCommissionAmount) ||\n 0\n ) +\n \" TL \"\n ),\n ]),\n ]),\n ]),\n _c(\"div\", { staticClass: \"right\" }, [\n !_vm.dataItem.isSuccessfulIntegration\n ? _c(\"div\", { staticClass: \"item integration-warning\" }, [\n _c(\"div\", { staticClass: \"tag tooltip\" }, [\n _c(\"div\", { staticClass: \"tooltiptext\" }, [\n _c(\"div\", { staticClass: \"texts\" }, [\n _vm._v(\n \" \" +\n _vm._s(_vm.dataItem.productName) +\n \" sisteminden kaynaklı bir hata alınmaktadır. Lütfen daha sonra tekrar deneyiniz. \"\n ),\n ]),\n ]),\n _c(\n \"span\",\n { staticClass: \"text\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"bell-fill\" },\n }),\n ],\n 1\n ),\n ]),\n ])\n : _vm._e(),\n _c(\"div\", { staticClass: \"item\" }, [\n _c(\"h3\", { staticClass: \"data-request-item__price\" }, [\n _c(\"span\", { staticClass: \"data-request-item__price__text\" }, [\n _vm._v(\"Paket Tutarı:\"),\n ]),\n _vm._v(\" \" + _vm._s(_vm.totalPriceCalc || 0) + \" \"),\n ]),\n ]),\n _c(\"div\", { staticClass: \"item\" }, [\n _c(\"span\", { staticClass: \"data-request-item__status\" }, [\n _c(\"span\", { staticClass: \"data-request-item__status__text\" }, [\n _vm._v(\"Paket Durumu:\"),\n ]),\n _c(\n \"span\",\n {\n staticClass: \"data-request-item__status__stat\",\n class: [\n \"request\",\n {\n active: _vm.dataItem.packageStatus.id == 2 ? true : \"\",\n passive: _vm.dataItem.packageStatus.id == 8 ? true : \"\",\n },\n ],\n },\n [_vm._v(_vm._s(_vm.dataItem.packageStatus.name))]\n ),\n ]),\n ]),\n ]),\n ]),\n _vm.dataItem.package.length\n ? _c(\"div\", { staticClass: \"data-request-item__bottom\" }, [\n _c(\"div\", { staticClass: \"left package-container\" }, [\n _c(\n \"div\",\n { staticClass: \"item\" },\n [\n _c(\"strong\", [_vm._v(\"Paketler:\")]),\n _vm._l(_vm.mergedPackagesNames, function (item, index) {\n return _c(\"span\", { key: item.id, staticClass: \"items\" }, [\n _vm._v(\" \" + _vm._s(item) + \" \"),\n index != _vm.mergedPackagesNames.length - 1\n ? _c(\"span\", { staticClass: \"seperator\" })\n : _vm._e(),\n ])\n }),\n ],\n 2\n ),\n ]),\n _c(\n \"div\",\n { staticClass: \"right\", on: { click: _vm.accordionToggle } },\n [\n _c(\"base-icon\", {\n class: [\"toggle\", { active: _vm.isActive }],\n attrs: { name: \"arrow-green\" },\n }),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"data-request-item__bottom__packages\" }, [\n _c(\n \"div\",\n { class: [\"accordion-wrapper\", _vm.isActive ? \"active\" : \"\"] },\n [\n _c(\n \"div\",\n {\n class: [\n \"accordion-wrapper__row caption\",\n _vm.isActive ? \"active\" : \"\",\n ],\n },\n [\n _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell caption\" },\n [_vm._v(\"Paket Adı:\")]\n ),\n _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell caption\" },\n [_vm._v(\" Başlangıç Tarihi: \")]\n ),\n _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell caption\" },\n [_vm._v(\" Bitiş Tarihi: \")]\n ),\n _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell caption\" },\n [_vm._v(\" \" + _vm._s(_vm.pricesText) + \" \")]\n ),\n ]\n ),\n _c(\n \"div\",\n { staticClass: \"accordion-content active\" },\n _vm._l(_vm.mergedForTableData, function (item) {\n return _c(\n \"div\",\n {\n key: item.name,\n staticClass: \"accordion-wrapper__row\",\n },\n [\n _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell\" },\n [\n typeof item == \"object\"\n ? _c(\"span\", [\n item.name\n ? _c(\"span\", [_vm._v(_vm._s(item.name))])\n : _vm._e(),\n ])\n : _c(\"span\", [_vm._v(_vm._s(item))]),\n ]\n ),\n item.startDate\n ? _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell\" },\n [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.getTime(\n item.startDate,\n \"DD/MM/YYYY\"\n )\n ) +\n \" \"\n ),\n ]\n )\n : _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell\" },\n [_vm._v(\"-\")]\n ),\n item.endDate\n ? _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell\" },\n [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.getTime(item.endDate, \"DD/MM/YYYY\")\n ) +\n \" \"\n ),\n ]\n )\n : _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell\" },\n [_vm._v(\"-\")]\n ),\n item.totalPrice\n ? _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell\" },\n [_vm._v(\" \" + _vm._s(item.totalPrice) + \" \")]\n )\n : _vm._e(),\n item.price\n ? _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell\" },\n [\n _vm._v(\" \" + _vm._s(item.price) + \" \"),\n item.info == \"₺\"\n ? _c(\"span\", [_vm._v(\"TL\")])\n : item.info == \"€\"\n ? _c(\"span\", [_vm._v(\"Euro\")])\n : item.info == \"$\"\n ? _c(\"span\", [_vm._v(\"Dolar\")])\n : _vm._e(),\n ]\n )\n : _vm._e(),\n !item.totalPrice && !item.price\n ? _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell\" },\n [_vm._v(\" - \")]\n )\n : _vm._e(),\n ]\n )\n }),\n 0\n ),\n ]\n ),\n ]),\n ])\n : _vm._e(),\n _vm.packageDetail\n ? [\n _c(\"package-settigns\", {\n attrs: {\n dataItem: _vm.packageDetail,\n marketInfo: _vm.marketInfo,\n isPopupVisible: _vm.isPopupVisible,\n },\n on: { close: _vm.closePopup },\n }),\n ]\n : _vm._e(),\n _c(\n \"modal\",\n {\n staticClass: \"cancel-modal\",\n attrs: { height: \"auto\", adaptive: true, name: _vm.getDataItemId },\n },\n [\n _c(\"div\", { staticClass: \"modal-heading\" }, [\n _c(\"div\", { staticClass: \"modal-title\" }, [\n _c(\"h5\", [_vm._v(\"Paketi İptal Etmek İstiyor musunuz?\")]),\n ]),\n _c(\n \"a\",\n {\n on: {\n click: function ($event) {\n return _vm.closeModal()\n },\n },\n },\n [\n _c(\"base-icon\", {\n staticClass: \"close\",\n attrs: { name: \"close-circle\" },\n }),\n ],\n 1\n ),\n ]),\n _c(\n \"div\",\n { staticClass: \"modal-body\" },\n [\n _c(\"div\", { staticClass: \"modal-body__top\" }, [\n _c(\n \"div\",\n { staticClass: \"modal-body__image\" },\n [\n _vm.dataItem && _vm.dataItem.imageUrl\n ? _c(\"img\", {\n staticClass: \"image\",\n attrs: {\n alt: \"product image\",\n src: _vm.dataItem.imageUrl,\n },\n })\n : _c(\"base-icon\", {\n staticClass: \"image\",\n attrs: { name: \"no-image\" },\n }),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"modal-body__info\" }, [\n _vm.dataItem.productName\n ? _c(\"h3\", { staticClass: \"title\" }, [\n _vm._v(\" \" + _vm._s(_vm.dataItem.productName) + \" \"),\n ])\n : _vm._e(),\n _c(\"p\", { staticClass: \"modal-body__info-platform\" }, [\n _vm.dataItem.platform && _vm.dataItem.platform.name\n ? _c(\"span\", [_vm._v(_vm._s(_vm.dataItem.platform.name))])\n : _vm._e(),\n ]),\n _c(\"div\", { staticClass: \"modal-body__info_bes\" }, [\n _c(\"span\", { staticClass: \"m-text-grayscale-80\" }, [\n _vm._v(\"BES / Yatırım Fonu:\"),\n ]),\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(_vm.dataItem.price.totalFundAmount)\n ) +\n \" TL \"\n ),\n _c(\"span\", { staticClass: \"m-text-grayscale-80\" }, [\n _vm._v(\"veya Komisyon:\"),\n ]),\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(\n _vm.dataItem.price.totalCommissionAmount\n )\n ) +\n \" TL \"\n ),\n ]),\n _c(\n \"p\",\n { staticClass: \"modal-body__info_price\" },\n [\n _vm.totalPriceCalc !== 0\n ? [_vm._v(_vm._s(_vm.totalPriceCalc))]\n : [_vm._v(\"Ücretsiz\")],\n ],\n 2\n ),\n ]),\n ]),\n _c(\"info-area\", { attrs: { infoText: _vm.infoText } }),\n ],\n 1\n ),\n _c(\n \"div\",\n { staticClass: \"modal-bottom\" },\n [\n _c(\n \"base-button\",\n {\n on: {\n click: function ($event) {\n return _vm.cancel(_vm.dataItem.id)\n },\n },\n },\n [_vm._v(\"İptal Et\")]\n ),\n ],\n 1\n ),\n ]\n ),\n ],\n 2\n )\n}\nvar staticRenderFns = [\n function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"item\" }, [_c(\"span\", [_vm._v(\"veya\")])])\n },\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/DataRequestItem.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");
|
|
2267
2267
|
|
|
2268
2268
|
/***/ }),
|
|
2269
2269
|
|
|
@@ -2371,7 +2371,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
2371
2371
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2372
2372
|
|
|
2373
2373
|
"use strict";
|
|
2374
|
-
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 { staticClass: \"package-slider\" },\n [\n _c(\"div\", { staticClass: \"package-slider__head\" }, [\n _c(\"label\", { staticClass: \"switch\" }, [\n _c(\"input\", {\n attrs: { type: \"checkbox\", id: \"switch-input\" },\n domProps: { checked: _vm.isDisplayed && \"checked\" },\n on: { click: _vm.changeSliderStatus },\n }),\n _c(\"span\", {\n staticClass: \"switch-slider\",\n attrs: { id: \"switch-slider\" },\n }),\n ]),\n _c(\"h4\", { staticClass: \"package-slider__title\" }, [\n _vm._v(\"En Çok Kullanılan Paketleri Göster\"),\n ]),\n ]),\n _vm.isDisplayed\n ? _c(\n \"carousel\",\n {\n attrs: {\n perPageCustom: [\n [320, 1],\n [1025, 2],\n ],\n mouseDrag: true,\n paginationActiveColor: \"#2c2c30\",\n paginationColor: \"#bebec3\",\n },\n },\n _vm._l(_vm.packages, function (pg) {\n return _c(\"slide\", { key: pg.id }, [\n _vm._v(\" \" + _vm._s(_vm.checkHasPrice(pg.price.prices)) + \" \"),\n _c(\"div\", { staticClass: \"package-item\" }, [\n _c(\n \"div\",\n { staticClass: \"package-item__image\" },\n [\n pg && pg.imageUrl\n ? _c(\"img\", {\n staticClass: \"image\",\n attrs: { alt: \"product image\", src: pg.imageUrl },\n })\n : _c(\"base-icon\", {\n staticClass: \"image\",\n attrs: { name: \"no-image\" },\n }),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"package-item__info\" }, [\n _c(\"div\", { staticClass: \"title\" }, [\n pg.productName\n ? _c(\"h6\", [\n _vm._v(\" \" + _vm._s(pg.productName) + \" \"),\n pg.platform && pg.platform.name\n ? _c(\"span\", { staticClass: \"lighter\" }, [\n _vm._v(\"/ \" + _vm._s(pg.platform.name)),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n ]),\n pg && pg.type\n ? _c(\"div\", { staticClass: \"description\" }, [\n _c(\"span\", [_vm._v(_vm._s(pg.type))]),\n ])\n : _vm._e(),\n _c(\"div\", { staticClass: \"description\" }, [\n pg.vendorFeature && pg.vendorFeature.name\n ? _c(\"span\", [_vm._v(_vm._s(pg.vendorFeature.name))])\n : _vm._e(),\n pg.marketFeature && pg.marketFeature.name\n ? _c(\"span\", [\n _vm._v(\", \" + _vm._s(pg.marketFeature.name)),\n ])\n : _vm._e(),\n pg.perspectiveFeature && pg.perspectiveFeature.name\n ? _c(\"span\", [\n _vm._v(\", \" + _vm._s(pg.perspectiveFeature.name)),\n ])\n : _vm._e(),\n ]),\n _c(\"div\", { staticClass: \"description\" }, [\n _c(\"span\", [\n _vm._v(\" BES / Yatırım Fonu: \"),\n _c(\"span\", { staticClass: \"price\" }, [\n _vm._v(\n _vm._s(_vm.formatPrice(pg.price.totalFundAmount)) +\n \" TL\"\n ),\n ]),\n ]),\n ]),\n _c(\"div\", { staticClass: \"description\" }, [\n _c(\"span\", [\n _vm._v(\" Komisyon: \"),\n _c(\"span\", { staticClass: \"price\" }, [\n _vm._v(\n _vm._s(\n _vm.formatPrice(pg.price.totalCommissionAmount)\n ) + \" TL\"\n ),\n ]),\n ]),\n ]),\n _vm.showOverallText\n ? _c(\"div\", { staticClass: \"description\" }, [\n _c(\"span\", [\n _vm._v(\" Asgari Portföy Büyüklüğü: \"),\n _c(\"span\", { staticClass: \"price\" }, [\n _vm._v(_vm._s(_vm.overall) + \" TL\"),\n ]),\n ]),\n ])\n : _vm._e(),\n ]),\n _c(\n \"div\",\n {\n staticClass: \"package-item__price\",\n class: !pg.isEnabled ? \"h100\" : \"\",\n },\n [\n pg.price.prices.length > 0\n ? _c(\"div\", { staticClass: \"price\" }, [\n _c(\n \"ul\",\n _vm._l(pg.price.prices, function (item, index) {\n return _c(\"li\", { key: index }, [\n item.info && item.info != \"₺\"\n ? _c(\"span\", { staticClass: \"has-price\" }, [\n _vm._v(\" \" + _vm._s(item.info) + \" \"),\n ])\n : _vm._e(),\n item.totalPrice\n ? _c(\"span\", { staticClass: \"has-price\" }, [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(item.totalPrice)\n ) +\n \" \"\n ),\n ])\n : _c(\"span\", [_vm._v(\"Ücretsiz\")]),\n item.totalPrice != 0 &&\n item.info &&\n item.info == \"₺\"\n ? _c(\"span\", { staticClass: \"has-price\" }, [\n _vm._v(\"TL\"),\n ])\n : _vm._e(),\n index != pg.price.prices.length - 1\n ? _c(\"span\", [_vm._v(\"+\")])\n : _vm._e(),\n ])\n }),\n 0\n ),\n ])\n : _vm._e(),\n _vm._l(pg.package, function (item) {\n return _c(\n \"ul\",\n { key: item.id, staticClass: \"features\" },\n [\n item.marketFeature\n ? _c(\"li\", [\n item.perspectiveFeature\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n item.perspectiveFeature.name\n ) +\n \" : \"\n ),\n _c(\"span\", { staticClass: \"inline\" }, [\n _vm._v(\n _vm._s(\n item.perspectiveFeature.cost\n ) + \" TL\"\n ),\n ]),\n ])\n : _vm._e(),\n item.vendorFeature\n ? _c(\"span\", [\n _vm._v(\" AKD : \"),\n _c(\"span\", { staticClass: \"inline\" }, [\n _vm._v(\n _vm._s(item.vendorFeature.name)\n ),\n ]),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n ]\n )\n }),\n pg.isEnabled\n ? _c(\n \"div\",\n { staticClass: \"buy\" },\n [\n _c(\n \"base-button\",\n {\n on: {\n click: function ($event) {\n return _vm.purchase(\n pg.package[0].applicationFeature.id\n )\n },\n },\n },\n [_vm._v(\"Talep Et\")]\n ),\n ],\n 1\n )\n : _c(\"div\", { staticClass: \"buy\" }, [\n _c(\"div\", { staticClass: \"tag tooltip\" }, [\n _c(\"div\", { staticClass: \"tooltiptext\" }, [\n _c(\"div\", { staticClass: \"texts\" }, [\n _c(\"span\", { staticClass: \"text\" }, [\n _vm._v(\n ' Yükseltme işlemleri yalnızca \"Paket Talep Et\" üzerinden yapılabilir. '\n ),\n ]),\n ]),\n _c(\"div\", { staticClass: \"triangle-down\" }),\n ]),\n _c(\n \"span\",\n { staticClass: \"text\" },\n [\n _vm._v(\" Talep Et \"),\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"warn-yellow\" },\n }),\n ],\n 1\n ),\n ]),\n ]),\n ],\n 2\n ),\n ]),\n ])\n }),\n 1\n )\n : _vm._e(),\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/PackageSlider.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");
|
|
2374
|
+
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 { staticClass: \"package-slider\" },\n [\n _c(\"div\", { staticClass: \"package-slider__head\" }, [\n _c(\"label\", { staticClass: \"switch\" }, [\n _c(\"input\", {\n attrs: { type: \"checkbox\", id: \"switch-input\" },\n domProps: { checked: _vm.isDisplayed && \"checked\" },\n on: { click: _vm.changeSliderStatus },\n }),\n _c(\"span\", {\n staticClass: \"switch-slider\",\n attrs: { id: \"switch-slider\" },\n }),\n ]),\n _c(\"h4\", { staticClass: \"package-slider__title\" }, [\n _vm._v(\"En Çok Kullanılan Paketleri Göster\"),\n ]),\n ]),\n _vm.isDisplayed\n ? _c(\n \"carousel\",\n {\n attrs: {\n perPageCustom: [\n [320, 1],\n [1025, 2],\n ],\n mouseDrag: true,\n paginationActiveColor: \"#2c2c30\",\n paginationColor: \"#bebec3\",\n },\n },\n _vm._l(_vm.packages, function (pg) {\n return _c(\"slide\", { key: pg.id }, [\n _c(\"div\", { staticClass: \"package-item\" }, [\n _c(\n \"div\",\n { staticClass: \"package-item__image\" },\n [\n pg && pg.imageUrl\n ? _c(\"img\", {\n staticClass: \"image\",\n attrs: { alt: \"product image\", src: pg.imageUrl },\n })\n : _c(\"base-icon\", {\n staticClass: \"image\",\n attrs: { name: \"no-image\" },\n }),\n ],\n 1\n ),\n _c(\n \"div\",\n { staticClass: \"package-item__info\" },\n [\n _c(\"div\", { staticClass: \"title\" }, [\n pg.productName\n ? _c(\"h6\", [\n _vm._v(\" \" + _vm._s(pg.productName) + \" \"),\n pg.platform && pg.platform.name\n ? _c(\"span\", { staticClass: \"lighter\" }, [\n _vm._v(\"/ \" + _vm._s(pg.platform.name)),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n ]),\n pg && pg.type\n ? _c(\"div\", { staticClass: \"description\" }, [\n _c(\"span\", [_vm._v(_vm._s(pg.type))]),\n ])\n : _vm._e(),\n _c(\"div\", { staticClass: \"description\" }, [\n pg.vendorFeature && pg.vendorFeature.name\n ? _c(\"span\", [_vm._v(_vm._s(pg.vendorFeature.name))])\n : _vm._e(),\n pg.marketFeature && pg.marketFeature.name\n ? _c(\"span\", [\n _vm._v(\", \" + _vm._s(pg.marketFeature.name)),\n ])\n : _vm._e(),\n pg.perspectiveFeature && pg.perspectiveFeature.name\n ? _c(\"span\", [\n _vm._v(\", \" + _vm._s(pg.perspectiveFeature.name)),\n ])\n : _vm._e(),\n ]),\n _c(\"div\", { staticClass: \"description\" }, [\n _c(\"span\", [\n _vm._v(\" BES / Yatırım Fonu: \"),\n _c(\"span\", { staticClass: \"price\" }, [\n _vm._v(\n _vm._s(\n _vm.formatPrice(pg.price.totalFundAmount)\n ) + \" TL\"\n ),\n ]),\n ]),\n ]),\n _c(\"div\", { staticClass: \"description\" }, [\n _c(\"span\", [\n _vm._v(\" Komisyon: \"),\n _c(\"span\", { staticClass: \"price\" }, [\n _vm._v(\n _vm._s(\n _vm.formatPrice(pg.price.totalCommissionAmount)\n ) + \" TL\"\n ),\n ]),\n ]),\n ]),\n _vm._l(pg.price.prices, function (item, index) {\n return _c(\n \"div\",\n { key: index, staticClass: \"description\" },\n [\n _vm.getAllCanceledPackageStatus.length > 0 &&\n item.totalPrice == 0\n ? _c(\"span\", [\n _vm._v(\" Asgari Portföy Büyüklüğü: \"),\n _c(\"span\", { staticClass: \"price\" }, [\n _vm._v(_vm._s(_vm.overallLimit) + \" TL\"),\n ]),\n ])\n : _vm._e(),\n ]\n )\n }),\n ],\n 2\n ),\n _c(\n \"div\",\n {\n staticClass: \"package-item__price\",\n class: !pg.isEnabled ? \"h100\" : \"\",\n },\n [\n pg.price.prices.length > 0\n ? _c(\"div\", { staticClass: \"price\" }, [\n _c(\n \"ul\",\n _vm._l(pg.price.prices, function (item, index) {\n return _c(\"li\", { key: index }, [\n item.info && item.info != \"₺\"\n ? _c(\"span\", { staticClass: \"has-price\" }, [\n _vm._v(\" \" + _vm._s(item.info) + \" \"),\n ])\n : _vm._e(),\n item.totalPrice\n ? _c(\"span\", { staticClass: \"has-price\" }, [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.formatPrice(item.totalPrice)\n ) +\n \" \"\n ),\n ])\n : _c(\"span\", [_vm._v(\"Ücretsiz\")]),\n item.totalPrice != 0 &&\n item.info &&\n item.info == \"₺\"\n ? _c(\"span\", { staticClass: \"has-price\" }, [\n _vm._v(\"TL\"),\n ])\n : _vm._e(),\n index != pg.price.prices.length - 1\n ? _c(\"span\", [_vm._v(\"+\")])\n : _vm._e(),\n ])\n }),\n 0\n ),\n ])\n : _vm._e(),\n _vm._l(pg.package, function (item) {\n return _c(\n \"ul\",\n { key: item.id, staticClass: \"features\" },\n [\n item.marketFeature\n ? _c(\"li\", [\n item.perspectiveFeature\n ? _c(\"span\", [\n _vm._v(\n \" \" +\n _vm._s(\n item.perspectiveFeature.name\n ) +\n \" : \"\n ),\n _c(\"span\", { staticClass: \"inline\" }, [\n _vm._v(\n _vm._s(\n item.perspectiveFeature.cost\n ) + \" TL\"\n ),\n ]),\n ])\n : _vm._e(),\n item.vendorFeature\n ? _c(\"span\", [\n _c(\"span\", { staticClass: \"inline\" }, [\n _vm._v(\n _vm._s(item.vendorFeature.name) +\n \" :\"\n ),\n ]),\n _c(\"span\", { staticClass: \"inline\" }, [\n _vm._v(\n _vm._s(item.vendorFeature.cost) +\n \" TL\"\n ),\n ]),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n ]\n )\n }),\n pg.isEnabled\n ? _c(\n \"div\",\n { staticClass: \"buy\" },\n [\n _c(\n \"base-button\",\n {\n on: {\n click: function ($event) {\n return _vm.purchase(\n pg.package[0].applicationFeature.id\n )\n },\n },\n },\n [_vm._v(\"Talep Et\")]\n ),\n ],\n 1\n )\n : _c(\"div\", { staticClass: \"buy\" }, [\n _c(\"div\", { staticClass: \"tag tooltip\" }, [\n _c(\"div\", { staticClass: \"tooltiptext\" }, [\n _c(\"div\", { staticClass: \"texts\" }, [\n _c(\"span\", { staticClass: \"text\" }, [\n _vm._v(\n ' Yükseltme işlemleri yalnızca \"Paket Talep Et\" üzerinden yapılabilir. '\n ),\n ]),\n ]),\n _c(\"div\", { staticClass: \"triangle-down\" }),\n ]),\n _c(\n \"span\",\n { staticClass: \"text\" },\n [\n _vm._v(\" Talep Et \"),\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"warn-yellow\" },\n }),\n ],\n 1\n ),\n ]),\n ]),\n ],\n 2\n ),\n ]),\n ])\n }),\n 1\n )\n : _vm._e(),\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/PackageSlider.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");
|
|
2375
2375
|
|
|
2376
2376
|
/***/ }),
|
|
2377
2377
|
|
|
@@ -3779,7 +3779,7 @@ eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../.
|
|
|
3779
3779
|
/*! no static exports found */
|
|
3780
3780
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3781
3781
|
|
|
3782
|
-
eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \".filter[data-v-240386f8] {\\n display: flex;\\n justify-content: flex-end;\\n flex-wrap: wrap;\\n align-items: center;\\n}\\n@media (max-width: 917px) {\\n.filter[data-v-240386f8] {\\n width: 100%;\\n flex-flow: column;\\n align-items: unset;\\n}\\n}\\n.filter .filter-selectbox[data-v-240386f8] {\\n margin-right: 10px;\\n}\\n.filter .filter-selectbox[data-v-240386f8]:first-child .v-select.veri-dagitim-selectbox,\\n .filter .filter-selectbox[data-v-240386f8]:first-child \\n.v-select.veri-dagitim-selectbox\\n.vs__dropdown-toggle,\\n .filter .filter-selectbox[data-v-240386f8]:nth-child(2) .v-select.veri-dagitim-selectbox,\\n .filter .filter-selectbox[data-v-240386f8]:nth-child(2) \\n.v-select.veri-dagitim-selectbox\\n.vs__dropdown-toggle {\\n width: 120px;\\n min-width: 120px;\\n}\\n.filter .filter-selectbox[data-v-240386f8] .v-select.veri-dagitim-selectbox .vs__dropdown-toggle {\\n height: 48px;\\n}\\n.filter .filter-selectbox[data-v-240386f8] .v-select.veri-dagitim-selectbox .vs__selected-options {\\n font-size: 14px !important;\\n}\\n.filter .filter-selectbox[data-v-240386f8] .v-select.veri-dagitim-selectbox .vs__search {\\n padding: 0px;\\n}\\n.filter .filter-selectbox[data-v-240386f8] .form-control-label {\\n display: block;\\n font-size: 12px;\\n color: var(--color-primary-black-metallic);\\n top: 0px;\\n background: transparent;\\n font-weight: 500;\\n margin: 0px 0px 5px 0px;\\n padding: 0px;\\n}\\n.filter .filter-selectbox[data-v-240386f8]:last-child {\\n margin-right: 0px;\\n min-width:
|
|
3782
|
+
eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \".filter[data-v-240386f8] {\\n display: flex;\\n justify-content: flex-end;\\n flex-wrap: wrap;\\n align-items: center;\\n}\\n@media (max-width: 917px) {\\n.filter[data-v-240386f8] {\\n width: 100%;\\n flex-flow: column;\\n align-items: unset;\\n}\\n}\\n.filter .filter-selectbox[data-v-240386f8] {\\n margin-right: 10px;\\n}\\n.filter .filter-selectbox[data-v-240386f8]:first-child .v-select.veri-dagitim-selectbox,\\n .filter .filter-selectbox[data-v-240386f8]:first-child \\n.v-select.veri-dagitim-selectbox\\n.vs__dropdown-toggle,\\n .filter .filter-selectbox[data-v-240386f8]:nth-child(2) .v-select.veri-dagitim-selectbox,\\n .filter .filter-selectbox[data-v-240386f8]:nth-child(2) \\n.v-select.veri-dagitim-selectbox\\n.vs__dropdown-toggle {\\n width: 120px;\\n min-width: 120px;\\n}\\n.filter .filter-selectbox[data-v-240386f8] .v-select.veri-dagitim-selectbox .vs__dropdown-toggle {\\n height: 48px;\\n}\\n.filter .filter-selectbox[data-v-240386f8] .v-select.veri-dagitim-selectbox .vs__selected-options {\\n font-size: 14px !important;\\n}\\n.filter .filter-selectbox[data-v-240386f8] .v-select.veri-dagitim-selectbox .vs__search {\\n padding: 0px;\\n}\\n.filter .filter-selectbox[data-v-240386f8] .form-control-label {\\n display: block;\\n font-size: 12px;\\n color: var(--color-primary-black-metallic);\\n top: 0px;\\n background: transparent;\\n font-weight: 500;\\n margin: 0px 0px 5px 0px;\\n padding: 0px;\\n}\\n.filter .filter-selectbox[data-v-240386f8]:last-child {\\n margin-right: 0px;\\n min-width: 280px;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/InvoiceFilter.vue?./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
|
|
3783
3783
|
|
|
3784
3784
|
/***/ }),
|
|
3785
3785
|
|