osmanli-veri-dagitim 2.1.77-dev → 2.1.79-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.
- package/dist/OsmanliPackage.common.js +10 -10
- package/dist/OsmanliPackage.umd.js +10 -10
- package/dist/OsmanliPackage.umd.min.js +10 -10
- package/package.json +1 -1
|
@@ -1627,7 +1627,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _com
|
|
|
1627
1627
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1628
1628
|
|
|
1629
1629
|
"use strict";
|
|
1630
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _PackageSettignsCreate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PackageSettignsCreate */ \"./src/components/customer/PackageSettignsCreate.vue\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"CardItem\",\n components: {\n PackageSettignsCreate: _PackageSettignsCreate__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseButton\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"]\n },\n props: {\n item: Object,\n currentTab: String,\n cssClass: String\n },\n\n data() {\n return {\n packageDetail: null,\n marketInfo: null,\n platformInfo: null,\n isPopupVisible: false,\n loadDetail: false,\n isTerminal: true,\n algoDetail: {},\n isOperationWarning: false,\n isRuleMessageWarning: false,\n operationMessage: \"\",\n researchDetail: {},\n mutableItemRuleMessage: \"\",\n isUpgraded: false,\n isCancelled: false,\n selectBoxesStatus: null,\n triggerReRender: 0\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getPlatformInfo\", \"getMarketInfo\"])\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPlatform\", \"getMarket\", \"getAlgorithmDetail\", \"getResearchDetail\", \"getCheckForPurchaseUpgrade\"]),\n\n errorMessage(response) {\n return this.$toast.error(response.data.message);\n },\n\n addCart() {\n let cusId = null;\n\n if (this.$route.query.isRecommended === undefined) {\n var _this$item, _this$item2, _this$item2$platform;\n\n cusId = this.$route.query.c;\n this.getCheckForPurchaseUpgrade({\n applicationId: (_this$item = this.item) === null || _this$item === void 0 ? void 0 : _this$item.applicationId,\n platformId: (_this$item2 = this.item) === null || _this$item2 === void 0 ? void 0 : (_this$item2$platform = _this$item2.platform) === null || _this$item2$platform === void 0 ? void 0 : _this$item2$platform.id\n }).then(response => {\n var _this$item3, _this$item4;\n\n const getCancelledStatus = response.purchaseDetail != null ? response.purchaseDetail.packageStatus.id == 8 && ((_this$item3 = this.item) === null || _this$item3 === void 0 ? void 0 : _this$item3.applicationId) == response.purchaseDetail.application.applicationId : false;\n this.isUpgraded = response.isUpgrade ? ((_this$
|
|
1630
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _PackageSettignsCreate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PackageSettignsCreate */ \"./src/components/customer/PackageSettignsCreate.vue\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"CardItem\",\n components: {\n PackageSettignsCreate: _PackageSettignsCreate__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseButton\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"]\n },\n props: {\n item: Object,\n currentTab: String,\n cssClass: String\n },\n\n data() {\n return {\n packageDetail: null,\n marketInfo: null,\n platformInfo: null,\n isPopupVisible: false,\n loadDetail: false,\n isTerminal: true,\n algoDetail: {},\n isOperationWarning: false,\n isRuleMessageWarning: false,\n operationMessage: \"\",\n researchDetail: {},\n mutableItemRuleMessage: \"\",\n isUpgraded: false,\n isCancelled: false,\n selectBoxesStatus: null,\n triggerReRender: 0\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getPlatformInfo\", \"getMarketInfo\"])\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPlatform\", \"getMarket\", \"getAlgorithmDetail\", \"getResearchDetail\", \"getCheckForPurchaseUpgrade\"]),\n\n errorMessage(response) {\n return this.$toast.error(response.data.message);\n },\n\n addCart() {\n let cusId = null;\n\n if (this.$route.query.isRecommended === undefined) {\n var _this$item, _this$item2, _this$item2$platform;\n\n cusId = this.$route.query.c;\n this.getCheckForPurchaseUpgrade({\n applicationId: (_this$item = this.item) === null || _this$item === void 0 ? void 0 : _this$item.applicationId,\n platformId: (_this$item2 = this.item) === null || _this$item2 === void 0 ? void 0 : (_this$item2$platform = _this$item2.platform) === null || _this$item2$platform === void 0 ? void 0 : _this$item2$platform.id\n }).then(response => {\n var _this$item3, _this$item4, _this$item5;\n\n const getCancelledStatus = response.purchaseDetail != null ? response.purchaseDetail.packageStatus.id == 8 && ((_this$item3 = this.item) === null || _this$item3 === void 0 ? void 0 : _this$item3.applicationId) == response.purchaseDetail.application.applicationId && ((_this$item4 = this.item) === null || _this$item4 === void 0 ? void 0 : _this$item4.platform.id) == response.purchaseDetail.platform.platformId : false;\n console.log(this.item);\n this.isUpgraded = response.isUpgrade ? ((_this$item5 = this.item) === null || _this$item5 === void 0 ? void 0 : _this$item5.applicationId) == response.purchaseDetail.application.applicationId : response.isUpgrade;\n this.isCancelled = getCancelledStatus;\n this.selectBoxesStatus = this.isUpgraded ? response.purchaseDetail.dateSelection : -1;\n this.loadDetail = true;\n this.triggerReRender++;\n this.handlePlatformInfo(cusId);\n });\n } else {\n this.handlePlatformInfo(cusId);\n }\n },\n\n handlePlatformInfo(cusId) {\n this.getPlatform([this.item.applicationId, cusId]).then(res => {\n this.platformInfo = res.data.find(o => o.id == this.item.id);\n\n if (this.item.ruleMessage != undefined) {\n this.mutableItemRuleMessage = this.item.ruleMessage[0];\n this.isRuleMessageWarning = true;\n }\n\n if (this.currentTab != \"Algo\" && this.currentTab != \"Research\") {\n this.handleMarketInfo(cusId);\n } else {\n if (this.currentTab == \"Algo\") {\n this.handleAlgorithmDetail(cusId);\n } else {\n this.handleResearchDetail();\n }\n }\n });\n },\n\n handleMarketInfo(cusId) {\n var _this$platformInfo;\n\n this.getMarket([this.item.applicationId, (_this$platformInfo = this.platformInfo) === null || _this$platformInfo === void 0 ? void 0 : _this$platformInfo.platformId, cusId]).then(response => {\n var _response$data;\n\n if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.error) === true) {\n this.errorMessage(response);\n } else {\n this.marketInfo = this.getMarketInfo;\n this.loadDetail = true;\n this.isPopupVisible = true;\n }\n });\n },\n\n handleAlgorithmDetail(cusId) {\n this.getAlgorithmDetail([this.item.id, cusId]).then(response => {\n var _response$data2;\n\n if ((response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.error) === true) {\n this.errorMessage(response);\n } else {\n var _response$data3, _response$data4, _response$data4$opera, _response$data5, _response$data5$opera;\n\n this.algoDetail = response.data;\n this.isTerminal = (_response$data3 = response.data) === null || _response$data3 === void 0 ? void 0 : _response$data3.isTerminal;\n this.isOperationWarning = (_response$data4 = response.data) === null || _response$data4 === void 0 ? void 0 : (_response$data4$opera = _response$data4.operationRule) === null || _response$data4$opera === void 0 ? void 0 : _response$data4$opera.isOperationWarning;\n this.operationMessage = (_response$data5 = response.data) === null || _response$data5 === void 0 ? void 0 : (_response$data5$opera = _response$data5.operationRule) === null || _response$data5$opera === void 0 ? void 0 : _response$data5$opera.operationMessage;\n this.loadDetail = true;\n this.isPopupVisible = true;\n }\n });\n },\n\n handleResearchDetail() {\n this.getResearchDetail([this.item.id]).then(response => {\n var _response$data6;\n\n if ((response === null || response === void 0 ? void 0 : (_response$data6 = response.data) === null || _response$data6 === void 0 ? void 0 : _response$data6.error) === true) {\n this.errorMessage(response);\n } else {\n this.researchDetail = response.data;\n this.loadDetail = true;\n this.isPopupVisible = true;\n }\n });\n },\n\n closePopup() {\n this.isPopupVisible = false;\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/CardItem.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
|
|
1631
1631
|
|
|
1632
1632
|
/***/ }),
|
|
1633
1633
|
|
|
@@ -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//\n//\n//\n//\n//\n//\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: \"Fiyat\",\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");
|
|
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//\n//\n//\n//\n//\n//\n//\n//\n//\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: \"Fiyat\",\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
|
|
|
@@ -1723,7 +1723,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
|
|
|
1723
1723
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1724
1724
|
|
|
1725
1725
|
"use strict";
|
|
1726
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"InvoiceFilter\",\n components: {\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseSelect\"]\n },\n props: {\n currentYearNumber: String,\n currentMonthNumber: String\n },\n\n data() {\n return {\n ApplicationTypes: [],\n selectedYear: {\n code: 1,\n label:
|
|
1726
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"InvoiceFilter\",\n components: {\n BaseSelect: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseSelect\"]\n },\n props: {\n currentYearNumber: String,\n currentMonthNumber: String\n },\n\n data() {\n return {\n ApplicationTypes: [],\n selectedYear: {\n code: -1,\n label: \"Seçiniz\"\n },\n selectedMonth: -1,\n selectedAppType: -1,\n customerId: null\n };\n },\n\n mounted() {\n this.customerId = this.$route.params.customerId;\n this.getFilter();\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getFilterList\", \"getInvoiceFilter\", \"getUserInfo\"]),\n\n getUserType() {\n const REPRESENTATIVE_CODE = 3;\n const userType = this.getUserInfo.memberType;\n return userType && userType === REPRESENTATIVE_CODE;\n },\n\n availableYears() {\n const currentYear = new Date().getFullYear();\n const previousYear = currentYear - 1;\n const nextYear = currentYear + 1;\n var currentMonth = this.selectedMonth;\n\n if (currentMonth >= 0 && currentMonth <= 9) {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 0,\n label: previousYear\n }, {\n code: 1,\n label: currentYear\n }];\n } else if (currentMonth >= 10 && currentMonth <= 12) {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 1,\n label: currentYear\n }, {\n code: 2,\n label: nextYear\n }];\n } else {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 0,\n label: previousYear\n }, {\n code: 1,\n label: currentYear\n }];\n }\n },\n\n availableMonths() {\n return [{\n code: -1,\n label: \"Seçiniz\"\n }, {\n code: 1,\n label: \"Ocak\"\n }, {\n code: 2,\n label: \"Şubat\"\n }, {\n code: 3,\n label: \"Mart\"\n }, {\n code: 4,\n label: \"Nisan\"\n }, {\n code: 5,\n label: \"Mayıs\"\n }, {\n code: 6,\n label: \"Haziran\"\n }, {\n code: 7,\n label: \"Temmuz\"\n }, {\n code: 8,\n label: \"Ağustos\"\n }, {\n code: 9,\n label: \"Eylül\"\n }, {\n code: 10,\n label: \"Ekim\"\n }, {\n code: 11,\n label: \"Kasım\"\n }, {\n code: 12,\n label: \"Aralık\"\n }];\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"fillFilter\", \"getInvoiceList\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setInvoiceFilter\"]),\n\n getFilter() {\n this.fillFilter().then(res => {\n if (res.data) {\n const ApplicationTypesList = this.getFilterList.filter(o => o.name === \"ApplicationTypes\");\n if (ApplicationTypesList.length > 0) this.ApplicationTypes = ApplicationTypesList[0].values;\n this.ApplicationTypes.unshift({\n code: -1,\n label: \"Hepsi\"\n });\n this.setInvoiceFilter({\n page: 1,\n size: 10,\n filter: {}\n });\n }\n });\n },\n\n applyFilters() {\n this.$emit(\"filterChangeResponse\", false);\n const filters = {\n page: 1,\n size: 10,\n filter: {}\n };\n\n if (this.selectedYear.code !== -1) {\n filters.filter.Year = parseInt(this.selectedYear.label);\n }\n\n if (this.selectedMonth !== -1) {\n filters.filter.Month = this.selectedMonth;\n }\n\n if (this.selectedAppType !== -1) {\n filters.filter.ApplicationTypes = this.selectedAppType.toString();\n }\n\n this.setInvoiceFilter(filters);\n this.getInvoiceList(this.customerId).then(() => {\n this.$emit(\"filterChangeResponse\", true);\n });\n },\n\n changeInvoiceYear(value) {\n this.selectedYear = value;\n this.applyFilters();\n },\n\n changeInvoiceMonth(value) {\n this.selectedMonth = value.code;\n this.applyFilters();\n },\n\n changeApplicationTypes(value) {\n this.selectedAppType = value === null || value === void 0 ? void 0 : value.code;\n this.applyFilters();\n },\n\n resetFilter(filterName) {\n delete this.getInvoiceFilter.filter[filterName];\n delete this.getInvoiceFilter[filterName];\n }\n\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/InvoiceFilter.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
|
|
1727
1727
|
|
|
1728
1728
|
/***/ }),
|
|
1729
1729
|
|
|
@@ -1735,7 +1735,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
|
|
|
1735
1735
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1736
1736
|
|
|
1737
1737
|
"use strict";
|
|
1738
|
-
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 _PackageSettingType_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PackageSettingType.vue */ \"./src/components/customer/PackageSettingType.vue\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _mixins___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/ */ \"./src/mixins/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 _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../constants */ \"./src/constants/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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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: \"PackageSettigns\",\n mixins: [_mixins___WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n components: {\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_2__[\"BaseButton\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_2__[\"BaseIcon\"],\n PopupRight: _components__WEBPACK_IMPORTED_MODULE_2__[\"PopupRight\"],\n PackageSettingType: _PackageSettingType_vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n AccordionResearch: _components__WEBPACK_IMPORTED_MODULE_2__[\"AccordionResearch\"],\n AccordionForeign: _components__WEBPACK_IMPORTED_MODULE_2__[\"AccordionForeign\"],\n AccordionAlgoServer: _components__WEBPACK_IMPORTED_MODULE_2__[\"AccordionAlgoServer\"],\n InfoArea: _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n },\n props: {\n dataItem: Object,\n marketInfo: Array,\n isPopupVisible: Boolean\n },\n\n data() {\n return {\n isResponsive: false,\n fund: 0,\n commission: 0,\n topPrice: 0,\n bottomFund: 0,\n bottomCommission: 0,\n totalPrice: 0,\n startDateSelection: this.dataItem.dateSelection,\n selectData: [],\n research: [],\n foreign: [],\n algoServer: [],\n isButtonClicked: false,\n warningMessage: false,\n esube: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_6__[\"getItem\"])(\"esube\"),\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 };\n },\n\n created() {\n this.handleWidth();\n window.addEventListener(\"resize\", this.handleWidth());\n },\n\n mounted() {\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\n this.setSelectedResearch([]);\n this.cusId = this.$route.params.customerId !== undefined ? this.$route.params.customerId : null;\n\n if (this.$route.name === \"Checkout\") {\n this.cusId = this.$route.query.c !== undefined ? this.$route.query.c : this.$route.params.customerId;\n this.startDateSelection = this.dataItem.dateSelection;\n }\n\n this.sumFundCommission();\n this.getForeign([this.dataItem.application.applicationId, this.dataItem.platform.platformId, this.cusId]).then(res => {\n let details = {};\n details = res.data;\n\n if (this.getDraftPackageDetails.foreignIndice) {\n this.getDraftPackageDetails.foreignIndice.forEach((element, index) => {\n if (element.foreignIndiceFeature.id == details[index].id) {\n details[index].dateSelection = Number(element.dateSelection.key);\n }\n });\n }\n\n this.foreign.push({\n id: 2,\n active: false,\n title: \"Yabancı Endeksler\",\n details\n });\n });\n this.getResearch([this.dataItem.application.applicationId, this.cusId]).then(res => {\n let details = {};\n details = res.data;\n\n if (this.getDraftPackageDetails.research) {\n this.getDraftPackageDetails.research.forEach((element, index) => {\n if (element.researchFeature.id == details[index].id) {\n details[index].dateSelection = Number(element.dateSelection.key);\n }\n });\n }\n\n this.research = [{\n id: 1,\n active: false,\n title: \"Araştırma ve Diğer Uygulamalar\",\n details\n }];\n });\n this.$nextTick(() => {\n this.getAlgoServer([this.dataItem.application.applicationId, this.cusId]).then(res => {\n let details = {};\n details = res.data;\n\n if (this.getDraftPackageDetails.algorithm) {\n this.getDraftPackageDetails.algorithm.forEach((element, index) => {\n if (element.algorithmFeature.id == details[index].id) {\n details[index].dateSelection = Number(element.dateSelection.key);\n }\n });\n }\n\n this.algoServer.push({\n id: 3,\n active: false,\n title: \"Algoritmalar\",\n details\n });\n });\n });\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getSelectedAlgoServerInfo\", \"customer\", \"getResearchInfo\", \"getSelectedForeignInfo\", \"getForeignInfo\", \"getAlgoServerInfo\", \"getSelectedResearchInfo\", \"getPackageInfo\", \"getDraftPackageDetails\", \"getUserInfo\"]),\n\n getMemberType() {\n return this.getUserInfo.memberType;\n },\n\n currencySymbol() {\n return _constants__WEBPACK_IMPORTED_MODULE_5__[\"CurrencySymbol\"];\n },\n\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 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 getStartDateSelection() {\n return this.dataItem.dateSelection;\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 researchFund() {\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 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 return this.getSelectedAlgoServerInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.fundAmount) || 0) + totald;\n }, 0);\n },\n\n researchCommission() {\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 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 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 algoServerCommission() {\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 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 totalPriceEuro() {\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.euro)[0];\n },\n\n totalPriceTl() {\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.tl)[0].totalPrice;\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)} Dolar` : \"\"}`;\n let totalEuro = `${this.totalPriceEuro ? ` + ${this.formatPriceEuro((_this$totalPriceEuro = this.totalPriceEuro) === null || _this$totalPriceEuro === void 0 ? void 0 : _this$totalPriceEuro.totalPrice)} Euro` : \"\"}`;\n return this.formatPrice(this.totalPriceTl) + this.currencySymbol.tl + totalDollar + totalEuro;\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getForeign\", \"getAllPackages\", \"getDraftPackageDetail\", \"getResearch\", \"updatePackage\", \"getAlgoServer\", \"createPackage\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setSelectedForeign\", \"setSelectedAlgoServer\", \"setSelectedResearch\"]),\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.selectData = [];\n this.startDateSelection = this.startDate[0].code;\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\n this.setSelectedResearch([]);\n this.$emit(\"close\");\n },\n\n handleWidth() {\n let w = window.innerWidth;\n this.isResponsive = w <= 640;\n },\n\n sumFundCommission() {\n this.fund = this.dataItem.price.totalFundAmount;\n this.commission = this.dataItem.price.totalCommissionAmount;\n this.topPrice = this.totalPriceCalc;\n this.totalPrice = this.topPrice;\n },\n\n changeSelected(data) {\n this.selectData = data;\n },\n\n async submitShow() {\n this.isButtonClicked = true;\n const packageData = this.buildPackageData();\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 getSelectedAlgoSvInfo = this.getSelectedAlgoServerInfo.filter(o => o.dateSelection == -1);\n\n if (getEveryDateSelection.length > 0 || getResearchDateSelection.length > 0 || getForeignDateSelection.length > 0 || getSelectedAlgoSvInfo.length > 0) {\n this.$toast.error(\"Başlangıç zamanı seçiniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n const researchData = this.buildResearchData();\n const foreignData = this.buildForeignData();\n const algoServerData = this.buildAlgoServerData();\n const args = this.buildArgsObject(packageData, researchData, foreignData, algoServerData);\n const actionName = this.getActionName();\n const sendAction = await this[actionName](args);\n\n if (sendAction.error) {\n this.handleError(sendAction);\n } else {\n this.handleSuccess(sendAction, actionName);\n this.args = {};\n }\n\n this.isButtonClicked = false;\n },\n\n buildPackageData() {\n return this.selectData.map(item => {\n var _this$dataItem4, _this$dataItem4$appli, _this$dataItem5, _this$dataItem5$platf, _item$marketFeature, _item$perspectiveFeat, _item$vendorFeature, _item$vendorFeature2, _item$vendorFeature3;\n\n return {\n applicationId: (_this$dataItem4 = this.dataItem) === null || _this$dataItem4 === void 0 ? void 0 : (_this$dataItem4$appli = _this$dataItem4.application) === null || _this$dataItem4$appli === void 0 ? void 0 : _this$dataItem4$appli.id,\n platformId: ((_this$dataItem5 = this.dataItem) === null || _this$dataItem5 === void 0 ? void 0 : (_this$dataItem5$platf = _this$dataItem5.platform) === null || _this$dataItem5$platf === void 0 ? void 0 : _this$dataItem5$platf.id) || null,\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: item.dateSelection\n };\n });\n },\n\n buildResearchData() {\n return this.getSelectedResearchInfo.map(item => ({\n applicationId: this.dataItem.application.id || null,\n researchId: item.id || null,\n dateSelection: item.dateSelection\n }));\n },\n\n buildForeignData() {\n return this.getSelectedForeignInfo.map(item => ({\n applicationId: this.dataItem.application.id,\n foreignIndiceId: item.id || null,\n dateSelection: item.dateSelection\n }));\n },\n\n buildAlgoServerData() {\n return this.getSelectedAlgoServerInfo.map(item => ({\n applicationId: this.dataItem.application.id,\n algorithmAndServerId: item.id || null,\n dateSelection: item.dateSelection\n }));\n },\n\n buildArgsObject(packageData, researchData, foreignData, algoServerData) {\n var _this$dataItem6, _this$dataItem6$appli, _this$dataItem7, _this$dataItem7$platf, _this$dataItem8, _this$dataItem9, _this$dataItem9$platf;\n\n return {\n customerId: this.customer.id,\n purchaseId: this.dataItem.id,\n purchaseNumber: this.dataItem.purchaseNo.toString(),\n applicationId: ((_this$dataItem6 = this.dataItem) === null || _this$dataItem6 === void 0 ? void 0 : (_this$dataItem6$appli = _this$dataItem6.application) === null || _this$dataItem6$appli === void 0 ? void 0 : _this$dataItem6$appli.applicationId) || null,\n platformId: ((_this$dataItem7 = this.dataItem) === null || _this$dataItem7 === void 0 ? void 0 : (_this$dataItem7$platf = _this$dataItem7.platform) === null || _this$dataItem7$platf === void 0 ? void 0 : _this$dataItem7$platf.platformId) || null,\n applicationFeatureId: ((_this$dataItem8 = this.dataItem) === null || _this$dataItem8 === void 0 ? void 0 : _this$dataItem8.application.id) || null,\n platformFeatureId: (_this$dataItem9 = this.dataItem) === null || _this$dataItem9 === void 0 ? void 0 : (_this$dataItem9$platf = _this$dataItem9.platform) === null || _this$dataItem9$platf === void 0 ? void 0 : _this$dataItem9$platf.id,\n features: packageData,\n research: researchData,\n foreignIndice: foreignData,\n algorithmAndServer: algoServerData,\n cusId: this.cusId\n };\n },\n\n getActionName() {\n return this.dataItem.packageStatus.id === 2 ? \"updatePackage\" : \"createPackage\";\n },\n\n handleError(res) {\n if (res.result !== undefined && res.result !== null) {\n this.$toast.error(res.result.data[0].errors[0]);\n } else {\n this.$toast.error(res.message);\n }\n\n this.isButtonClicked = false;\n },\n\n handleSuccess(res, actionName) {\n if (actionName === \"updatePackage\") {\n this.handleUpdatePackageSuccess(res);\n } else {\n this.handleCreatePackageSuccess(res);\n }\n },\n\n async handleUpdatePackageSuccess() {\n const response = await this.getDraftPackageDetail([this.dataItem.id, this.cusId]);\n\n if (response && this.$route.name != \"Checkout\") {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: response.data.id,\n customerNumber: this.getMemberType == 3 ? localStorage.getItem(\"userId\") : this.$route.params.customerNumber\n },\n query: {\n c: this.getMemberType == 3 ? localStorage.getItem(\"userId\") : this.$route.query.c,\n timeStamp: new Date()\n }\n });\n } else {\n this.$emit(\"close\");\n this.isButtonClicked = false;\n }\n },\n\n handleCreatePackageSuccess(res) {\n if (this.$route.name === \"Checkout\") {\n this.$router.replace({\n params: {\n packageNumber: String(res.purchaseId),\n customerNumber: this.$route.params.customerNumber\n },\n query: {\n c: this.$route.query.c\n }\n });\n setTimeout(() => {\n this.$emit(\"close\");\n }, 300);\n } else {\n this.$emit(\"close\");\n this.getAllPackages(this.cusId);\n }\n\n this.setSelectedResearch([]);\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\n },\n\n calculatePrice(items) {\n var _this$dataItem$applic, _this$dataItem$applic2;\n\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$applic = this.dataItem.application) === null || _this$dataItem$applic === void 0 ? void 0 : _this$dataItem$applic.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$applic2 = this.dataItem.application) === null || _this$dataItem$applic2 === void 0 ? void 0 : _this$dataItem$applic2.commissionAmount);\n const total = 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 = total + this.dataItem.application.price;\n },\n\n calculateTotalPrice() {\n return this.dataItem.price + this.totalPrice + this.researchTotal() + this.foraignTurkishLiraTotal() + this.algoServerTotal();\n }\n\n },\n watch: {\n selectData: {\n handler(newVal) {\n this.calculatePrice(newVal);\n },\n\n deep: true,\n immediate: true\n }\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/PackageSettigns.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");
|
|
1738
|
+
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 _PackageSettingType_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PackageSettingType.vue */ \"./src/components/customer/PackageSettingType.vue\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _mixins___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/ */ \"./src/mixins/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 _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../constants */ \"./src/constants/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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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: \"PackageSettigns\",\n mixins: [_mixins___WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n components: {\n BaseButton: _components__WEBPACK_IMPORTED_MODULE_2__[\"BaseButton\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_2__[\"BaseIcon\"],\n PopupRight: _components__WEBPACK_IMPORTED_MODULE_2__[\"PopupRight\"],\n PackageSettingType: _PackageSettingType_vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n AccordionResearch: _components__WEBPACK_IMPORTED_MODULE_2__[\"AccordionResearch\"],\n AccordionForeign: _components__WEBPACK_IMPORTED_MODULE_2__[\"AccordionForeign\"],\n AccordionAlgoServer: _components__WEBPACK_IMPORTED_MODULE_2__[\"AccordionAlgoServer\"],\n InfoArea: _base_InfoArea_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n },\n props: {\n dataItem: Object,\n marketInfo: Array,\n isPopupVisible: Boolean\n },\n\n data() {\n return {\n isResponsive: false,\n fund: 0,\n commission: 0,\n topPrice: 0,\n bottomFund: 0,\n bottomCommission: 0,\n totalPrice: 0,\n startDateSelection: this.dataItem.dateSelection,\n selectData: [],\n research: [],\n foreign: [],\n algoServer: [],\n isButtonClicked: false,\n warningMessage: false,\n esube: Object(_utils_tokenTools__WEBPACK_IMPORTED_MODULE_6__[\"getItem\"])(\"esube\"),\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 };\n },\n\n created() {\n this.handleWidth();\n window.addEventListener(\"resize\", this.handleWidth());\n },\n\n mounted() {\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\n this.setSelectedResearch([]);\n this.cusId = this.$route.params.customerId !== undefined ? this.$route.params.customerId : null;\n\n if (this.$route.name === \"Checkout\") {\n this.cusId = this.$route.query.c !== undefined ? this.$route.query.c : this.$route.params.customerId;\n this.startDateSelection = this.dataItem.dateSelection;\n }\n\n this.sumFundCommission();\n this.getForeign([this.dataItem.application.applicationId, this.dataItem.platform.platformId, this.cusId]).then(res => {\n let details = {};\n details = res.data;\n\n if (this.getDraftPackageDetails.foreignIndice) {\n this.getDraftPackageDetails.foreignIndice.forEach((element, index) => {\n if (element.foreignIndiceFeature.id == details[index].id) {\n details[index].dateSelection = Number(element.dateSelection.key);\n }\n });\n }\n\n this.foreign.push({\n id: 2,\n active: false,\n title: \"Yabancı Endeksler\",\n details\n });\n });\n this.getResearch([this.dataItem.application.applicationId, this.cusId]).then(res => {\n let details = {};\n details = res.data;\n\n if (this.getDraftPackageDetails.research) {\n this.getDraftPackageDetails.research.forEach((element, index) => {\n if (element.researchFeature.id == details[index].id) {\n details[index].dateSelection = Number(element.dateSelection.key);\n }\n });\n }\n\n this.research = [{\n id: 1,\n active: false,\n title: \"Araştırma ve Diğer Uygulamalar\",\n details\n }];\n });\n this.getAlgoServer([this.dataItem.application.applicationId, this.cusId]).then(res => {\n let details = {};\n details = res.data;\n\n if (this.getDraftPackageDetails.algorithm) {\n this.getDraftPackageDetails.algorithm.forEach((element, index) => {\n var _details$index;\n\n if (element.algorithmFeature.id == ((_details$index = details[index]) === null || _details$index === void 0 ? void 0 : _details$index.id)) {\n details[index].dateSelection = Number(element.dateSelection.key);\n }\n });\n }\n\n this.algoServer.push({\n id: 3,\n active: false,\n title: \"Algoritmalar\",\n details\n });\n });\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"getSelectedAlgoServerInfo\", \"customer\", \"getResearchInfo\", \"getSelectedForeignInfo\", \"getForeignInfo\", \"getAlgoServerInfo\", \"getSelectedResearchInfo\", \"getPackageInfo\", \"getDraftPackageDetails\", \"getUserInfo\"]),\n\n getMemberType() {\n return this.getUserInfo.memberType;\n },\n\n currencySymbol() {\n return _constants__WEBPACK_IMPORTED_MODULE_5__[\"CurrencySymbol\"];\n },\n\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 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 getStartDateSelection() {\n return this.dataItem.dateSelection;\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 researchFund() {\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 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 return this.getSelectedAlgoServerInfo.reduce((totald, item) => {\n return ((item === null || item === void 0 ? void 0 : item.fundAmount) || 0) + totald;\n }, 0);\n },\n\n researchCommission() {\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 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 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 algoServerCommission() {\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 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 totalPriceEuro() {\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.euro)[0];\n },\n\n totalPriceTl() {\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.tl)[0].totalPrice;\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)} Dolar` : \"\"}`;\n let totalEuro = `${this.totalPriceEuro ? ` + ${this.formatPriceEuro((_this$totalPriceEuro = this.totalPriceEuro) === null || _this$totalPriceEuro === void 0 ? void 0 : _this$totalPriceEuro.totalPrice)} Euro` : \"\"}`;\n return this.formatPrice(this.totalPriceTl) + this.currencySymbol.tl + totalDollar + totalEuro;\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getForeign\", \"getAllPackages\", \"getDraftPackageDetail\", \"getResearch\", \"updatePackage\", \"getAlgoServer\", \"createPackage\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setSelectedForeign\", \"setSelectedAlgoServer\", \"setSelectedResearch\"]),\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.selectData = [];\n this.startDateSelection = this.startDate[0].code;\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\n this.setSelectedResearch([]);\n this.$emit(\"close\");\n },\n\n handleWidth() {\n let w = window.innerWidth;\n this.isResponsive = w <= 640;\n },\n\n sumFundCommission() {\n this.fund = this.dataItem.price.totalFundAmount;\n this.commission = this.dataItem.price.totalCommissionAmount;\n this.topPrice = this.totalPriceCalc;\n this.totalPrice = this.topPrice;\n },\n\n changeSelected(data) {\n this.selectData = data;\n },\n\n async submitShow() {\n this.isButtonClicked = true;\n const packageData = this.buildPackageData();\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 getSelectedAlgoSvInfo = this.getSelectedAlgoServerInfo.filter(o => o.dateSelection == -1);\n\n if (getEveryDateSelection.length > 0 || getResearchDateSelection.length > 0 || getForeignDateSelection.length > 0 || getSelectedAlgoSvInfo.length > 0) {\n this.$toast.error(\"Başlangıç zamanı seçiniz.\");\n this.isButtonClicked = false;\n return;\n }\n\n const researchData = this.buildResearchData();\n const foreignData = this.buildForeignData();\n const algoServerData = this.buildAlgoServerData();\n const args = this.buildArgsObject(packageData, researchData, foreignData, algoServerData);\n const actionName = this.getActionName();\n const sendAction = await this[actionName](args);\n\n if (sendAction.error) {\n this.handleError(sendAction);\n } else {\n this.handleSuccess(sendAction, actionName);\n this.args = {};\n }\n\n this.isButtonClicked = false;\n },\n\n buildPackageData() {\n return this.selectData.map(item => {\n var _this$dataItem4, _this$dataItem4$appli, _this$dataItem5, _this$dataItem5$platf, _item$marketFeature, _item$perspectiveFeat, _item$vendorFeature, _item$vendorFeature2, _item$vendorFeature3;\n\n return {\n applicationId: (_this$dataItem4 = this.dataItem) === null || _this$dataItem4 === void 0 ? void 0 : (_this$dataItem4$appli = _this$dataItem4.application) === null || _this$dataItem4$appli === void 0 ? void 0 : _this$dataItem4$appli.id,\n platformId: ((_this$dataItem5 = this.dataItem) === null || _this$dataItem5 === void 0 ? void 0 : (_this$dataItem5$platf = _this$dataItem5.platform) === null || _this$dataItem5$platf === void 0 ? void 0 : _this$dataItem5$platf.id) || null,\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: item.dateSelection\n };\n });\n },\n\n buildResearchData() {\n return this.getSelectedResearchInfo.map(item => ({\n applicationId: this.dataItem.application.id || null,\n researchId: item.id || null,\n dateSelection: item.dateSelection\n }));\n },\n\n buildForeignData() {\n return this.getSelectedForeignInfo.map(item => ({\n applicationId: this.dataItem.application.id,\n foreignIndiceId: item.id || null,\n dateSelection: item.dateSelection\n }));\n },\n\n buildAlgoServerData() {\n return this.getSelectedAlgoServerInfo.map(item => ({\n applicationId: this.dataItem.application.id,\n algorithmAndServerId: item.id || null,\n dateSelection: item.dateSelection\n }));\n },\n\n buildArgsObject(packageData, researchData, foreignData, algoServerData) {\n var _this$dataItem6, _this$dataItem6$appli, _this$dataItem7, _this$dataItem7$platf, _this$dataItem8, _this$dataItem9, _this$dataItem9$platf;\n\n return {\n customerId: this.customer.id,\n purchaseId: this.dataItem.id,\n purchaseNumber: this.dataItem.purchaseNo.toString(),\n applicationId: ((_this$dataItem6 = this.dataItem) === null || _this$dataItem6 === void 0 ? void 0 : (_this$dataItem6$appli = _this$dataItem6.application) === null || _this$dataItem6$appli === void 0 ? void 0 : _this$dataItem6$appli.applicationId) || null,\n platformId: ((_this$dataItem7 = this.dataItem) === null || _this$dataItem7 === void 0 ? void 0 : (_this$dataItem7$platf = _this$dataItem7.platform) === null || _this$dataItem7$platf === void 0 ? void 0 : _this$dataItem7$platf.platformId) || null,\n applicationFeatureId: ((_this$dataItem8 = this.dataItem) === null || _this$dataItem8 === void 0 ? void 0 : _this$dataItem8.application.id) || null,\n platformFeatureId: (_this$dataItem9 = this.dataItem) === null || _this$dataItem9 === void 0 ? void 0 : (_this$dataItem9$platf = _this$dataItem9.platform) === null || _this$dataItem9$platf === void 0 ? void 0 : _this$dataItem9$platf.id,\n features: packageData,\n research: researchData,\n foreignIndice: foreignData,\n algorithmAndServer: algoServerData,\n cusId: this.cusId\n };\n },\n\n getActionName() {\n return this.dataItem.packageStatus.id === 2 ? \"updatePackage\" : \"createPackage\";\n },\n\n handleError(res) {\n if (res.result !== undefined && res.result !== null) {\n this.$toast.error(res.result.data[0].errors[0]);\n } else {\n this.$toast.error(res.message);\n }\n\n this.isButtonClicked = false;\n },\n\n handleSuccess(res, actionName) {\n if (actionName === \"updatePackage\") {\n this.handleUpdatePackageSuccess(res);\n } else {\n this.handleCreatePackageSuccess(res);\n }\n },\n\n async handleUpdatePackageSuccess() {\n const response = await this.getDraftPackageDetail([this.dataItem.id, this.cusId]);\n\n if (response && this.$route.name != \"Checkout\") {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: response.data.id,\n customerNumber: this.getMemberType == 3 ? localStorage.getItem(\"userId\") : this.$route.params.customerNumber\n },\n query: {\n c: this.getMemberType == 3 ? localStorage.getItem(\"userId\") : this.$route.query.c,\n timeStamp: new Date()\n }\n });\n } else {\n this.$emit(\"close\");\n this.isButtonClicked = false;\n }\n },\n\n handleCreatePackageSuccess(res) {\n if (this.$route.name === \"Checkout\") {\n this.$router.replace({\n params: {\n packageNumber: String(res.purchaseId),\n customerNumber: this.$route.params.customerNumber\n },\n query: {\n c: this.$route.query.c\n }\n });\n setTimeout(() => {\n this.$emit(\"close\");\n }, 300);\n } else {\n this.$emit(\"close\");\n this.getAllPackages(this.cusId);\n }\n\n this.setSelectedResearch([]);\n this.setSelectedForeign([]);\n this.setSelectedAlgoServer([]);\n },\n\n calculatePrice(items) {\n var _this$dataItem$applic, _this$dataItem$applic2;\n\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$applic = this.dataItem.application) === null || _this$dataItem$applic === void 0 ? void 0 : _this$dataItem$applic.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$applic2 = this.dataItem.application) === null || _this$dataItem$applic2 === void 0 ? void 0 : _this$dataItem$applic2.commissionAmount);\n const total = 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 = total + this.dataItem.application.price;\n },\n\n calculateTotalPrice() {\n return this.dataItem.price + this.totalPrice + this.researchTotal() + this.foraignTurkishLiraTotal() + this.algoServerTotal();\n }\n\n },\n watch: {\n selectData: {\n handler(newVal) {\n this.calculatePrice(newVal);\n },\n\n deep: true,\n immediate: true\n }\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/PackageSettigns.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");
|
|
1739
1739
|
|
|
1740
1740
|
/***/ }),
|
|
1741
1741
|
|
|
@@ -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/* 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 isCancelled: 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 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 setSelectboxList() {\n return this.startDates;\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\"]),\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 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 getCustomerNumber() {\n return this.customer.customerNo ? this.customer.customerNo : this.$route.query.c;\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 this.isButtonClicked = false;\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.validateStartDate()) return;\n if (this.validateTerminalNumber()) return;\n this.researchCreate(this.argsResearch).then(res => {\n if (res.error) {\n this.errorMessage(res);\n this.isButtonClicked = false;\n } else {\n this.navigateToDestination(res);\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 navigateToDestination(res) {\n if (!res.isExternalTerminal) {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: res.purchaseId,\n isUpgradedPurchase: res.purchaseNo,\n customerNumber: this.getCustomerNumber()\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.getCustomerNumber()\n },\n query: {\n c: this.$route.query.c\n }\n });\n }\n },\n\n validateTerminalNumber() {\n if (!this.isTerminal && this.terminalNumber === null) {\n this.$toast.error(\"Terminal Numarası Giriniz.\");\n this.isButtonClicked = false;\n return true;\n }\n\n return false;\n },\n\n validateStartDate() {\n if (this.startDateSelection == -1) {\n this.$toast.error(\"Başlangıç zamanı seçiniz.\");\n this.isButtonClicked = false;\n return true;\n }\n\n return false;\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/* 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 isCancelled: 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 overallLimit: 0,\n cusId: null,\n showSections: true,\n triggerSelectbox: 0\n };\n },\n\n mounted() {\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 this.getOverallLimitOnLoad();\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 setSelectboxList() {\n return this.startDates;\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\", \"monthlyGetOverallLimit\"]),\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 getOverallLimitOnLoad() {\n this.monthlyGetOverallLimit().then(response => {\n if (response.status === 200) {\n this.overallLimit = response.data.overallLimit;\n }\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 getCustomerNumber() {\n return this.customer.customerNo ? this.customer.customerNo : this.$route.query.c;\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 this.isButtonClicked = false;\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.validateStartDate()) return;\n if (this.validateTerminalNumber()) return;\n this.researchCreate(this.argsResearch).then(res => {\n if (res.error) {\n this.errorMessage(res);\n this.isButtonClicked = false;\n } else {\n this.navigateToDestination(res);\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 navigateToDestination(res) {\n if (!res.isExternalTerminal) {\n this.$router.push({\n name: \"Checkout\",\n params: {\n packageNumber: res.purchaseId,\n isUpgradedPurchase: res.purchaseNo,\n customerNumber: this.getCustomerNumber()\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.getCustomerNumber()\n },\n query: {\n c: this.$route.query.c\n }\n });\n }\n },\n\n validateTerminalNumber() {\n if (!this.isTerminal && this.terminalNumber === null) {\n this.$toast.error(\"Terminal Numarası Giriniz.\");\n this.isButtonClicked = false;\n return true;\n }\n\n return false;\n },\n\n validateStartDate() {\n if (this.startDateSelection == -1) {\n this.$toast.error(\"Başlangıç zamanı seçiniz.\");\n this.isButtonClicked = false;\n return true;\n }\n\n return false;\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\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 paranthesisText: null,\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\", \"customer\"]),\n\n itemParse() {\n return JSON.stringify(this.item);\n },\n\n getMemberType() {\n return this.getUserInfo.memberType;\n },\n\n isUserRegisteredBeforeTwentieth() {\n const accountOpeningDate = this.customer.accountOpeningDate;\n const registrationDate = this.parseDate(accountOpeningDate);\n const getLastDayOfMonth = this.parseDateCheckLastDay(registrationDate);\n return registrationDate.getFullYear() === this.currentDate.getFullYear() && registrationDate.getMonth() === this.currentDate.getMonth() && registrationDate.getDate() >= 20 && !getLastDayOfMonth;\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPerspective\", \"getDistribution\", \"monthlyGetOverallLimit\"]),\n\n seperateParanthesisFromTitle(title) {\n const getParanthesis = String(title).split(\"(\");\n\n if (getParanthesis.length > 1) {\n this.paranthesisText = `${\"\" + getParanthesis[1].replace(\")\", \"\")}`;\n }\n\n return getParanthesis[0];\n },\n\n getOverallLimitOnLoad() {\n this.monthlyGetOverallLimit().then(response => {\n if (response.status === 200) {\n this.overallLimit = response.data.overallLimit;\n }\n });\n },\n\n 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 if (this.esube == \"yes\" && this.customer.overall != undefined) {\n this.setProductRule(this.customer);\n }\n\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 setProductRule(val) {\n if (val && !val.error) {\n const overall = parseInt(val === null || val === void 0 ? void 0 : val.overall);\n\n if ((this.item.applicationId == 3 || this.item.applicationId == 2) && this.currentDate.getDate() >= 20 && this.item.marketId != 3) {\n this.setStartDates(-1, 1);\n } else if ((this.item.applicationId == 3 || this.item.applicationId == 2) && this.item.marketId == 3) {\n if (this.currentDate.getDate() >= 20 && this.isUserRegisteredBeforeTwentieth && overall > this.overallLimit) {\n this.setStartDates(-1, 0);\n } else if (this.currentDate.getDate() >= 20 && (!this.isUserRegisteredBeforeTwentieth || this.isUserRegisteredBeforeTwentieth) && (overall > this.overallLimit || overall < this.overallLimit)) {\n this.setStartDates(-1, 1);\n } else if (this.currentDate.getDate() < 20 && !this.isUserRegisteredBeforeTwentieth && overall > this.overallLimit) {\n this.setStartDates(-1, -1);\n }\n } else if ((this.item.applicationId == 3 || this.item.applicationId == 2) && this.item.marketId == 1 && this.item.marketId == 2) {\n if (this.currentDate.getDate() >= 20 && this.isUserRegisteredBeforeTwentieth && overall > this.overallLimit) {\n this.setStartDates(-1, 1);\n } else if (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 mounted() {\n if (this.$route.params.customerId !== undefined) {\n this.cusId = this.$route.params.customerId;\n }\n\n this.getOverallLimitOnLoad();\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\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 overallLimit: Number\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 paranthesisText: null,\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\", \"customer\"]),\n\n itemParse() {\n return JSON.stringify(this.item);\n },\n\n getMemberType() {\n return this.getUserInfo.memberType;\n },\n\n isUserRegisteredBeforeTwentieth() {\n const accountOpeningDate = this.customer.accountOpeningDate;\n const registrationDate = this.parseDate(accountOpeningDate);\n const getLastDayOfMonth = this.parseDateCheckLastDay(registrationDate);\n return registrationDate.getFullYear() === this.currentDate.getFullYear() && registrationDate.getMonth() === this.currentDate.getMonth() && registrationDate.getDate() >= 20 && !getLastDayOfMonth;\n }\n\n },\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"getPerspective\", \"getDistribution\", \"monthlyGetOverallLimit\"]),\n\n seperateParanthesisFromTitle(title) {\n const getParanthesis = String(title).split(\"(\");\n\n if (getParanthesis.length > 1) {\n this.paranthesisText = `${\"\" + getParanthesis[1].replace(\")\", \"\")}`;\n }\n\n return getParanthesis[0];\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 if (this.esube == \"yes\" && this.customer.overall != undefined) {\n this.setProductRule(this.customer);\n }\n\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 setProductRule(val) {\n if (val && !val.error) {\n const overall = parseInt(val === null || val === void 0 ? void 0 : val.overall);\n\n if ((this.item.applicationId == 3 || this.item.applicationId == 2) && this.currentDate.getDate() >= 20 && this.item.marketId != 3) {\n this.setStartDates(-1, 1);\n } else if ((this.item.applicationId == 3 || this.item.applicationId == 2) && this.item.marketId == 3) {\n if (this.currentDate.getDate() >= 20 && this.isUserRegisteredBeforeTwentieth && overall > this.overallLimit) {\n this.setStartDates(-1, 0);\n } else if (this.currentDate.getDate() >= 20 && (!this.isUserRegisteredBeforeTwentieth || this.isUserRegisteredBeforeTwentieth) && (overall > this.overallLimit || overall < this.overallLimit)) {\n this.setStartDates(-1, 1);\n } else if (this.currentDate.getDate() < 20 && !this.isUserRegisteredBeforeTwentieth && overall > this.overallLimit) {\n this.setStartDates(-1, -1);\n }\n } else if ((this.item.applicationId == 3 || this.item.applicationId == 2) && this.item.marketId == 1 && this.item.marketId == 2) {\n if (this.currentDate.getDate() >= 20 && this.isUserRegisteredBeforeTwentieth && overall > this.overallLimit) {\n this.setStartDates(-1, 1);\n } else if (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 mounted() {\n if (this.$route.params.customerId !== undefined) {\n this.cusId = this.$route.params.customerId;\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
|
|
|
@@ -1879,7 +1879,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex
|
|
|
1879
1879
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1880
1880
|
|
|
1881
1881
|
"use strict";
|
|
1882
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _utils_breadcrumb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/breadcrumb */ \"./src/utils/breadcrumb.js\");\n/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../mixins */ \"./src/mixins/index.js\");\n/* harmony import */ var _components_base_ScreenPrices_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/base/ScreenPrices.vue */ \"./src/components/base/ScreenPrices.vue\");\n\n\n\n\n\n\nconst ListViewSkeleton = () => __webpack_require__.e(/*! import() */ 4).then(__webpack_require__.bind(null, /*! @/components/base/ListViewSkeleton */ \"./src/components/base/ListViewSkeleton.vue\"));\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"CustomerDetail\",\n components: {\n CustomerInfo: _components__WEBPACK_IMPORTED_MODULE_1__[\"CustomerInfo\"],\n DataRequestItem: _components__WEBPACK_IMPORTED_MODULE_1__[\"DataRequestItem\"],\n Pager: _components__WEBPACK_IMPORTED_MODULE_1__[\"Pager\"],\n FundCommissionRate: _components__WEBPACK_IMPORTED_MODULE_1__[\"FundCommissionRate\"],\n HistoryFilter: _components__WEBPACK_IMPORTED_MODULE_1__[\"HistoryFilter\"],\n DataHistoryItem: _components__WEBPACK_IMPORTED_MODULE_1__[\"DataHistoryItem\"],\n InvoiceFilter: _components__WEBPACK_IMPORTED_MODULE_1__[\"InvoiceFilter\"],\n DataInvoiceItem: _components__WEBPACK_IMPORTED_MODULE_1__[\"DataInvoiceItem\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"],\n InfoArea: _components__WEBPACK_IMPORTED_MODULE_1__[\"InfoArea\"],\n ScreenPrices: _components_base_ScreenPrices_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n ListViewSkeleton\n },\n\n mounted() {\n if (this.$route.params.customerId !== undefined) {\n this.cusId = this.$route.params.customerId;\n } else {\n this.cusId = this.veriDagitimModel.userId;\n this.cusNo = this.veriDagitimModel.customerId;\n }\n\n this.fillFilter();\n this.getAllPackages(this.cusId);\n this.getRecommendedData();\n this.fillFilter();\n\n if (!this.veriDagitimModel) {\n localStorage.setItem(\"userCusId\", this.cusId);\n this.setUserCustomerId(this.cusId);\n this.getCustomer();\n } else {\n this.getCustomer();\n this.handleCustomer(this.veriDagitimModel);\n localStorage.setItem(\"esube\", \"yes\");\n localStorage.setItem(\"userId\", this.cusId);\n localStorage.setItem(\"cusNo\", this.cusNo);\n\n if (this.cusId) {\n let userIdAsNumber = parseInt(this.cusId);\n let payload = {\n id: userIdAsNumber\n };\n this.getMember(payload).then(response => {\n this.setUserInfo({ ...response.data.loginInfo,\n memberType: this.memberType\n });\n });\n }\n }\n },\n\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n props: {\n veriDagitimModel: Object,\n memberType: {\n type: Number\n }\n },\n\n data() {\n return {\n recommendedPackages: null,\n getPaymentStatuses: [],\n currentCustomer: null,\n currentYearNumber: new Date().getFullYear(),\n currentMonthNumber: new Date().getMonth() + 1,\n countDown: 10,\n timerRunning: true,\n logsLoader: false,\n timerStatus: \"Yenileniyor\",\n screenPriceList: [],\n featureScreenPricesList: [],\n newScreenPrice: [],\n tabs: [{\n id: 0,\n text: \"Veri Paketlerim\"\n }, {\n id: 1,\n text: \"Veri Paketi Ekstrelerim\"\n }, {\n id: 3,\n text: \"Ekran Ücretleri\"\n }, {\n id: 4,\n text: \"Paket Talep Et\"\n }, {\n id: 2,\n text: \"Değişiklikler\"\n }],\n esube: localStorage.getItem(\"esube\"),\n currentTab: 0,\n cusId: null,\n cusNo: null,\n isDataInvoiceLoaded: true,\n activeIndex: null,\n isActiveRow: false,\n isLoading: false,\n REQUESTED_PACKAGE_STATUS_ID: 6,\n SUCCESSFUL_INTEGRATION: true,\n UNSUCCESSFUL_INTEGRATION: false,\n EXCLUDED_APPLICATION_NAME: \"Foreks\"\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"apps\", \"profAlgoApps\", \"appsTab\", \"profAlgoTab\", \"fundAndCommissionRates\", \"customer\", \"allPackages\", \"getRecommendedPackages\", \"history\", \"historyList\", \"getFilterList\", \"invoiceList\", \"getHistoryFilter\", \"getUserInfo\"]),\n\n getUserType() {\n const REPRESENTATIVE_CODE = \"yes\";\n return this.esube === REPRESENTATIVE_CODE;\n },\n\n customerId() {\n if (this.$route.params.customerNumber) {\n return this.$route.params.customerNumber;\n } else {\n return this.veriDagitimModel.customerId;\n }\n },\n\n getAllPackagesData() {\n return this.allPackages;\n },\n\n isCompleted() {\n return this.fundAndCommissionRates.fundAmount >= this.fundAndCommissionRates.targetFundAmount || this.fundAndCommissionRates.commissionAmount >= this.fundAndCommissionRates.targetCommissionAmount;\n }\n\n },\n\n created() {\n if (this.veriDagitimModel) {\n localStorage.setItem(\"veri-dagitim-token\", this.veriDagitimModel.token);\n }\n },\n\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"handleCustomer\", \"searchCustomer\", \"getAllPackages\", \"getRecommendedPackageList\", \"getHistoryList\", \"getInvoiceList\", \"getScreenPrices\", \"getFeatureScreenPrices\", \"getApps\", \"getAppsTab\", \"getProfAlgoTab\", \"getAllResearch\", \"getProfAlgoApps\", \"getMember\", \"fillFilter\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setGeneralFilter\", \"setMemberType\", \"setUserInfo\", \"setUserCustomerId\", \"setInvoiceFilter\", \"setHistoryFilter\", \"setProfAlgoApps\"]),\n\n tabClass(id) {\n return [{\n active: this.currentTab === id\n }, \"tab\"];\n },\n\n changeTab(id) {\n const ctrId = this.$route.params.customerId;\n this.currentTab = id;\n this.setGeneralFilter({\n page: 1,\n size: 5,\n filter: {}\n });\n this.timerRunning = false;\n this.countDown = 0;\n\n if (this.currentTab == 0) {\n this.getAllPackages(ctrId);\n this.timerRunning = true;\n this.countDown = 10;\n } else if (this.currentTab == 1) {\n this.setInvoiceFilter({\n page: 1,\n size: 10,\n filter: {\n Year: this.currentYearNumber\n }\n });\n this.getInvoiceList(ctrId);\n } else if (this.currentTab === 2) {\n this.setHistoryFilter({\n page: 1,\n size: 1000,\n filter: {}\n });\n this.getHistoryList(ctrId);\n } else if (this.currentTab === 3) {\n this.screenPriceList = [];\n this.getFeatureScreenPrices().then(response => {\n response.forEach(element => {\n this.screenPriceList.push(element);\n });\n });\n } else if (this.currentTab === 4) {\n this.navigate();\n }\n },\n\n returnPriceTypeForScreenPrices(priceTypeNumber) {\n if (priceTypeNumber == 1) {\n return \"TL\";\n } else if (priceTypeNumber == 2) {\n return \"Dolar\";\n } else if (priceTypeNumber == 3) {\n return \"Euro\";\n }\n },\n\n navigate() {\n const params = {\n customerNumber: this.customerId,\n memberType: this.getUserType\n };\n const query = {};\n let cusId = this.$route.params.customerId;\n params.customerId = cusId !== undefined ? cusId : localStorage.getItem(\"userId\");\n query.c = params.customerId;\n query.m = params.memberType;\n this.$router.push({\n name: \"BuyDataPackage\",\n params,\n query\n });\n },\n\n getRecommendedData() {\n this.getRecommendedPackageList(this.cusId).then(res => {\n if (res) {\n this.recommendedPackages = this.getRecommendedPackages;\n }\n });\n },\n\n checkIsDataInvoiceFilterChangedAndLoaded(param) {\n this.isDataInvoiceLoaded = param;\n },\n\n getCustomer() {\n this.searchCustomer({\n customerNo: this.customerId,\n cusId: this.cusId\n }).then(res => {\n if (!res.statusCode) {\n Object(_utils_breadcrumb__WEBPACK_IMPORTED_MODULE_2__[\"getBreadCrumbs\"])({\n breadcrumbs: [\"CustomerDetail\"],\n customer: this.customer,\n customerDetail: this.customerId,\n cusId: this.cusId\n });\n const paymentStatuses = this.getFilterList.filter(o => {\n return o.name === \"PaymentStatus\";\n });\n if (paymentStatuses.length > 0) this.getPaymentStatuses = paymentStatuses[0].values;\n this.currentCustomer = this.customer;\n }\n });\n },\n\n toggleCountdown() {\n this.timerRunning = !this.timerRunning;\n\n if (!this.timerRunning) {\n this.timerStatus = \"Duraklatıldı\";\n } else {\n this.timerStatus = \"Yenileniyor.\";\n this.countDown = 10;\n }\n },\n\n timerChecker(isPopupOpened) {\n if (isPopupOpened) {\n this.timerRunning = false;\n } else {\n this.timerRunning = true;\n this.countDown = 10;\n }\n },\n\n subtitleRules(d) {\n let result = null;\n\n if (d.application != null && (d.application.id == 3 || d.application.id == 2)) {\n result = d.application.shortContent;\n } else if (d.research.length && d.application == null) {\n result = d.research[0].name;\n } else if (d.algorithm.length && d.platform == null && (d.application.id == 4 || d.application.id == 7)) {\n result = d.algorithm[0].name;\n } else {\n result = d.platform.name;\n }\n\n return result;\n },\n\n subtitleRulesInvoice(d) {\n var _d$platform, _d$platform2;\n\n let result = null;\n\n if (d.application != null && (d.application.applicationId == 3 || d.application.applicationId == 2)) {\n result = d.application.shortContent;\n } else if (d.research.length && d.application == null) {\n result = d.research[0].name;\n } else if ((!d.algorithm.length || d.algorithm.length) && (d.application.applicationId == 7 || d.application.applicationId == 4) && ((_d$platform = d.platform) === null || _d$platform === void 0 ? void 0 : _d$platform.platformId) == 1) {\n result = d.platform.name;\n } else if (d.algorithm.length && d.application.applicationId == 4 && ((_d$platform2 = d.platform) === null || _d$platform2 === void 0 ? void 0 : _d$platform2.platformId) != 2) {\n result = d.algorithm[0].name;\n } else if (d.algorithm.length && d.application.applicationId == 7 && d.platform == null) {\n result = d.algorithm[0].name;\n } else {\n result = d.platform.name;\n }\n\n return result;\n }\n\n },\n watch: {\n countDown: {\n handler(value) {\n if (this.currentTab == 0 && value >= -1) {\n if (this.timerRunning) {\n setTimeout(() => {\n this.countDown--;\n\n if (this.countDown === 0) {\n this.logsLoader = true;\n this.getAllPackages(this.$route.params.customerId);\n this.getRecommendedData();\n } else if (this.countDown === -1) {\n this.logsLoader = false;\n this.countDown = 10;\n }\n }, 1000);\n }\n }\n },\n\n immediate: true,\n deep: true\n },\n getAllPackagesData: {\n handler(value) {\n const allData = JSON.parse(JSON.stringify(value.data));\n const checkIsRequested = allData.filter(o => {\n var _o$application;\n\n return o.packageStatus.id === this.REQUESTED_PACKAGE_STATUS_ID && o.isSuccessfulIntegration === this.SUCCESSFUL_INTEGRATION && ((_o$application = o.application) === null || _o$application === void 0 ? void 0 : _o$application.name) !== this.EXCLUDED_APPLICATION_NAME;\n });\n const checkisSuccessfulIntegration = allData.filter(o => o.packageStatus.id === this.REQUESTED_PACKAGE_STATUS_ID && o.isSuccessfulIntegration === this.UNSUCCESSFUL_INTEGRATION);\n this.timerRunning = (checkIsRequested.length > 0 ? true : false) || (checkIsRequested.length === checkisSuccessfulIntegration.length ? false : true);\n },\n\n deep: true\n }\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/CustomerDetail.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
|
|
1882
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components */ \"./src/components/index.js\");\n/* harmony import */ var _utils_breadcrumb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/breadcrumb */ \"./src/utils/breadcrumb.js\");\n/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../mixins */ \"./src/mixins/index.js\");\n/* harmony import */ var _components_base_ScreenPrices_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/base/ScreenPrices.vue */ \"./src/components/base/ScreenPrices.vue\");\n\n\n\n\n\n\nconst ListViewSkeleton = () => __webpack_require__.e(/*! import() */ 4).then(__webpack_require__.bind(null, /*! @/components/base/ListViewSkeleton */ \"./src/components/base/ListViewSkeleton.vue\"));\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"CustomerDetail\",\n components: {\n CustomerInfo: _components__WEBPACK_IMPORTED_MODULE_1__[\"CustomerInfo\"],\n DataRequestItem: _components__WEBPACK_IMPORTED_MODULE_1__[\"DataRequestItem\"],\n Pager: _components__WEBPACK_IMPORTED_MODULE_1__[\"Pager\"],\n FundCommissionRate: _components__WEBPACK_IMPORTED_MODULE_1__[\"FundCommissionRate\"],\n HistoryFilter: _components__WEBPACK_IMPORTED_MODULE_1__[\"HistoryFilter\"],\n DataHistoryItem: _components__WEBPACK_IMPORTED_MODULE_1__[\"DataHistoryItem\"],\n InvoiceFilter: _components__WEBPACK_IMPORTED_MODULE_1__[\"InvoiceFilter\"],\n DataInvoiceItem: _components__WEBPACK_IMPORTED_MODULE_1__[\"DataInvoiceItem\"],\n BaseIcon: _components__WEBPACK_IMPORTED_MODULE_1__[\"BaseIcon\"],\n InfoArea: _components__WEBPACK_IMPORTED_MODULE_1__[\"InfoArea\"],\n ScreenPrices: _components_base_ScreenPrices_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n ListViewSkeleton\n },\n\n mounted() {\n if (this.$route.params.customerId !== undefined) {\n this.cusId = this.$route.params.customerId;\n } else {\n this.cusId = this.veriDagitimModel.userId;\n this.cusNo = this.veriDagitimModel.customerId;\n }\n\n this.fillFilter();\n this.getAllPackages(this.cusId);\n this.getRecommendedData();\n this.fillFilter();\n\n if (!this.veriDagitimModel) {\n localStorage.setItem(\"userCusId\", this.cusId);\n this.setUserCustomerId(this.cusId);\n this.getCustomer();\n } else {\n this.getCustomer();\n this.handleCustomer(this.veriDagitimModel);\n localStorage.setItem(\"esube\", \"yes\");\n localStorage.setItem(\"userId\", this.cusId);\n localStorage.setItem(\"cusNo\", this.cusNo);\n\n if (this.cusId) {\n let userIdAsNumber = parseInt(this.cusId);\n let payload = {\n id: userIdAsNumber\n };\n this.getMember(payload).then(response => {\n this.setUserInfo({ ...response.data.loginInfo,\n memberType: this.memberType\n });\n });\n }\n }\n },\n\n mixins: [_mixins__WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n props: {\n veriDagitimModel: Object,\n memberType: {\n type: Number\n }\n },\n\n data() {\n return {\n recommendedPackages: null,\n getPaymentStatuses: [],\n currentCustomer: null,\n currentYearNumber: new Date().getFullYear(),\n currentMonthNumber: new Date().getMonth() + 1,\n countDown: 10,\n timerRunning: true,\n logsLoader: false,\n timerStatus: \"Yenileniyor\",\n screenPriceList: [],\n featureScreenPricesList: [],\n newScreenPrice: [],\n tabs: [{\n id: 0,\n text: \"Veri Paketlerim\"\n }, {\n id: 1,\n text: \"Veri Paketi Ekstrelerim\"\n }, {\n id: 3,\n text: \"Ekran Ücretleri\"\n }, {\n id: 4,\n text: \"Paket Talep Et\"\n }, {\n id: 2,\n text: \"Değişiklikler\"\n }],\n esube: localStorage.getItem(\"esube\"),\n customerPaymentStatusId: null,\n currentTab: 0,\n cusId: null,\n cusNo: null,\n isDataInvoiceLoaded: true,\n activeIndex: null,\n isActiveRow: false,\n isLoading: false,\n REQUESTED_PACKAGE_STATUS_ID: 6,\n SUCCESSFUL_INTEGRATION: true,\n UNSUCCESSFUL_INTEGRATION: false,\n EXCLUDED_APPLICATION_NAME: \"Foreks\"\n };\n },\n\n computed: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])([\"apps\", \"profAlgoApps\", \"appsTab\", \"profAlgoTab\", \"fundAndCommissionRates\", \"customer\", \"allPackages\", \"getRecommendedPackages\", \"history\", \"historyList\", \"getFilterList\", \"invoiceList\", \"getHistoryFilter\", \"getUserInfo\"]),\n\n getUserType() {\n const REPRESENTATIVE_CODE = \"yes\";\n return this.esube === REPRESENTATIVE_CODE;\n },\n\n customerId() {\n if (this.$route.params.customerNumber) {\n return this.$route.params.customerNumber;\n } else {\n return this.veriDagitimModel.customerId;\n }\n },\n\n getCustomerPaymentStatusId() {\n if (this.esube == \"yes\") {\n return this.veriDagitimModel.loginInfo.paymentStatusId;\n } else {\n return this.customer.paymentStatusId;\n }\n },\n\n getAllPackagesData() {\n return this.allPackages;\n },\n\n isCompleted() {\n return this.fundAndCommissionRates.fundAmount >= this.fundAndCommissionRates.targetFundAmount || this.fundAndCommissionRates.commissionAmount >= this.fundAndCommissionRates.targetCommissionAmount;\n }\n\n },\n\n created() {\n if (this.veriDagitimModel) {\n localStorage.setItem(\"veri-dagitim-token\", this.veriDagitimModel.token);\n }\n },\n\n methods: { ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])([\"handleCustomer\", \"searchCustomer\", \"getAllPackages\", \"getRecommendedPackageList\", \"getHistoryList\", \"getInvoiceList\", \"getScreenPrices\", \"getFeatureScreenPrices\", \"getApps\", \"getAppsTab\", \"getProfAlgoTab\", \"getAllResearch\", \"getProfAlgoApps\", \"getMember\", \"fillFilter\"]),\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])([\"setGeneralFilter\", \"setMemberType\", \"setUserInfo\", \"setUserCustomerId\", \"setInvoiceFilter\", \"setHistoryFilter\", \"setProfAlgoApps\"]),\n\n tabClass(id) {\n return [{\n active: this.currentTab === id\n }, \"tab\"];\n },\n\n changeTab(id) {\n const ctrId = this.$route.params.customerId;\n this.currentTab = id;\n this.setGeneralFilter({\n page: 1,\n size: 5,\n filter: {}\n });\n this.timerRunning = false;\n this.countDown = 0;\n\n if (this.currentTab == 0) {\n this.getAllPackages(ctrId);\n this.timerRunning = true;\n this.countDown = 10;\n } else if (this.currentTab == 1) {\n this.setInvoiceFilter({\n page: 1,\n size: 10,\n filter: {}\n });\n this.getInvoiceList(ctrId);\n } else if (this.currentTab === 2) {\n this.setHistoryFilter({\n page: 1,\n size: 1000,\n filter: {}\n });\n this.getHistoryList(ctrId);\n } else if (this.currentTab === 3) {\n this.screenPriceList = [];\n this.getFeatureScreenPrices().then(response => {\n response.forEach(element => {\n this.screenPriceList.push(element);\n });\n });\n } else if (this.currentTab === 4) {\n this.navigate();\n }\n },\n\n returnPriceTypeForScreenPrices(priceTypeNumber) {\n if (priceTypeNumber == 1) {\n return \"TL\";\n } else if (priceTypeNumber == 2) {\n return \"Dolar\";\n } else if (priceTypeNumber == 3) {\n return \"Euro\";\n }\n },\n\n navigate() {\n const params = {\n customerNumber: this.customerId,\n memberType: this.getUserType\n };\n const query = {};\n let cusId = this.$route.params.customerId;\n params.customerId = cusId !== undefined ? cusId : localStorage.getItem(\"userId\");\n query.c = params.customerId;\n query.m = params.memberType;\n this.$router.push({\n name: \"BuyDataPackage\",\n params,\n query\n });\n },\n\n getRecommendedData() {\n this.getRecommendedPackageList(this.cusId).then(res => {\n if (res) {\n this.recommendedPackages = this.getRecommendedPackages;\n }\n });\n },\n\n checkIsDataInvoiceFilterChangedAndLoaded(param) {\n this.isDataInvoiceLoaded = param;\n },\n\n getCustomer() {\n this.searchCustomer({\n customerNo: this.customerId,\n cusId: this.cusId\n }).then(res => {\n if (!res.statusCode) {\n Object(_utils_breadcrumb__WEBPACK_IMPORTED_MODULE_2__[\"getBreadCrumbs\"])({\n breadcrumbs: [\"CustomerDetail\"],\n customer: this.customer,\n customerDetail: this.customerId,\n cusId: this.cusId\n });\n const paymentStatuses = this.getFilterList.filter(o => {\n return o.name === \"PaymentStatus\";\n });\n if (paymentStatuses.length > 0) this.getPaymentStatuses = paymentStatuses[0].values;\n this.currentCustomer = this.customer;\n }\n });\n },\n\n toggleCountdown() {\n this.timerRunning = !this.timerRunning;\n\n if (!this.timerRunning) {\n this.timerStatus = \"Duraklatıldı\";\n } else {\n this.timerStatus = \"Yenileniyor.\";\n this.countDown = 10;\n }\n },\n\n timerChecker(isPopupOpened) {\n if (isPopupOpened) {\n this.timerRunning = false;\n } else {\n this.timerRunning = true;\n this.countDown = 10;\n }\n },\n\n subtitleRules(d) {\n let result = null;\n\n if (d.application != null && (d.application.id == 3 || d.application.id == 2)) {\n result = d.application.shortContent;\n } else if (d.research.length && d.application == null) {\n result = d.research[0].name;\n } else if (d.algorithm.length && d.platform == null && (d.application.id == 4 || d.application.id == 7)) {\n result = d.algorithm[0].name;\n } else {\n result = d.platform.name;\n }\n\n return result;\n },\n\n subtitleRulesInvoice(d) {\n var _d$platform, _d$platform2;\n\n let result = null;\n\n if (d.application != null && (d.application.applicationId == 3 || d.application.applicationId == 2)) {\n result = d.application.shortContent;\n } else if (d.research.length && d.application == null) {\n result = d.research[0].name;\n } else if ((!d.algorithm.length || d.algorithm.length) && (d.application.applicationId == 7 || d.application.applicationId == 4) && ((_d$platform = d.platform) === null || _d$platform === void 0 ? void 0 : _d$platform.platformId) == 1) {\n result = d.platform.name;\n } else if (d.algorithm.length && d.application.applicationId == 4 && ((_d$platform2 = d.platform) === null || _d$platform2 === void 0 ? void 0 : _d$platform2.platformId) != 2) {\n result = d.algorithm[0].name;\n } else if (d.algorithm.length && d.application.applicationId == 7 && d.platform == null) {\n result = d.algorithm[0].name;\n } else {\n result = d.platform.name;\n }\n\n return result;\n }\n\n },\n watch: {\n countDown: {\n handler(value) {\n if (this.currentTab == 0 && value >= -1) {\n if (this.timerRunning) {\n setTimeout(() => {\n this.countDown--;\n\n if (this.countDown === 0) {\n this.logsLoader = true;\n this.getAllPackages(this.$route.params.customerId);\n this.getRecommendedData();\n } else if (this.countDown === -1) {\n this.logsLoader = false;\n this.countDown = 10;\n }\n }, 1000);\n }\n }\n },\n\n immediate: true,\n deep: true\n },\n getAllPackagesData: {\n handler(value) {\n const allData = JSON.parse(JSON.stringify(value.data));\n const checkIsRequested = allData.filter(o => {\n var _o$application;\n\n return o.packageStatus.id === this.REQUESTED_PACKAGE_STATUS_ID && o.isSuccessfulIntegration === this.SUCCESSFUL_INTEGRATION && ((_o$application = o.application) === null || _o$application === void 0 ? void 0 : _o$application.name) !== this.EXCLUDED_APPLICATION_NAME;\n });\n const checkisSuccessfulIntegration = allData.filter(o => o.packageStatus.id === this.REQUESTED_PACKAGE_STATUS_ID && o.isSuccessfulIntegration === this.UNSUCCESSFUL_INTEGRATION);\n this.timerRunning = (checkIsRequested.length > 0 ? true : false) || (checkIsRequested.length === checkisSuccessfulIntegration.length ? false : true);\n },\n\n deep: true\n }\n }\n});\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/CustomerDetail.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options");
|
|
1883
1883
|
|
|
1884
1884
|
/***/ }),
|
|
1885
1885
|
|
|
@@ -2251,7 +2251,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
2251
2251
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2252
2252
|
|
|
2253
2253
|
"use strict";
|
|
2254
|
-
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: \"invoice-item-container\" },\n [\n _c(\n \"div\",\n { staticClass: \"invoice-item\", class: { active: _vm.isActive } },\n [\n _c(\"div\", { staticClass: \"invoice-item__top\" }, [\n _c(\"div\", { staticClass: \"left flex-09\" }, [\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 : _vm.dataItem && _vm.dataItem.application.imageUrl\n ? _c(\"img\", {\n attrs: {\n alt: \"product image\",\n src: _vm.dataItem.application.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 _c(\"div\", { staticClass: \"right\" }, [\n _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 _vm.esube == \"no\"\n ? _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Ödeme Durumu\")]),\n _vm.dataItem.paymentStatus == \"0\"\n ? _c(\"span\", [\n _vm._v(\n \"Limit altında müşteri, üstünde temsilci(Varsayılan)\"\n ),\n ])\n : _vm._e(),\n _vm.dataItem.paymentStatus == \"1\"\n ? _c(\"span\", [_vm._v(\"Müşteri\")])\n : _vm._e(),\n _vm.dataItem.paymentStatus == \"2\"\n ? _c(\"span\", [_vm._v(\"Temsilci\")])\n : _vm._e(),\n ])\n : _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Ödeme Durumu\")]),\n _vm.dataItem.paymentStatus == \"0\" &&\n _vm.isCompleted &&\n _vm.invoiceList.data.length\n ? _c(\"span\", [_vm._v(\"Ücretsiz\")])\n : _vm._e(),\n _vm.dataItem.paymentStatus == \"0\" &&\n !_vm.isCompleted &&\n _vm.invoiceList.data.length\n ? _c(\"span\", [_vm._v(\"Tahsil Edildi\")])\n : _vm._e(),\n _vm.dataItem.paymentStatus == \"1\"\n ? _c(\"span\", [_vm._v(\"Tahsil Edildi\")])\n : _vm._e(),\n _vm.dataItem.paymentStatus == \"2\"\n ? _c(\"span\", [_vm._v(\"Ücretsiz\")])\n : _vm._e(),\n ]),\n _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Toplam Tutar\")]),\n _vm.dataItem.updatedAt\n ? _c(\"span\", [_vm._v(_vm._s(_vm.totalPriceCalc.toString()))])\n : _vm._e(),\n ]),\n ]),\n _vm.dataItem.packageStatus\n ? _c(\"div\", { staticClass: \"right for-button\" }, [\n _vm.dataItem.packageStatus.id !== 6 &&\n _vm.dataItem.packageStatus.id !== 8\n ? _c(\"div\", { staticClass: \"col\" }, [\n _vm.dataItem.packageStatus &&\n _vm.getUserInfo.memberType == 1\n ? _c(\"div\", [\n _vm.dataItem.packageStatus.id == 2\n ? _c(\n \"div\",\n {\n staticClass:\n \"invoice-item__bottom buttons\",\n },\n [\n _c(\n \"base-button\",\n {\n staticClass: \"set-buttons\",\n class: !_vm.isButtonsDisabled\n ? \"\"\n : \"disabled\",\n on: {\n click: function ($event) {\n _vm.showModal(\n String(_vm.dataItem.id)\n )\n },\n },\n },\n [_vm._v(\"İşlemler\")]\n ),\n ],\n 1\n )\n : _vm._e(),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n ]),\n _vm.dataItem.package\n ? _c(\"div\", { staticClass: \"invoice-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, 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.isActivatedAccordion }],\n attrs: { name: \"arrow-green\" },\n }),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"invoice-item__bottom__packages\" }, [\n _c(\n \"div\",\n {\n class: [\n \"accordion-wrapper\",\n _vm.isActivatedAccordion ? \"active\" : \"\",\n ],\n },\n [\n _c(\n \"div\",\n {\n class: [\n \"accordion-wrapper__row caption\",\n _vm.isActivatedAccordion ? \"active\" : \"\",\n ],\n },\n [\n _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell caption\",\n },\n [_vm._v(\"Paket Adı\")]\n ),\n _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell caption\",\n },\n [_vm._v(\" Başlangıç Tarihi \")]\n ),\n _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell caption\",\n },\n [_vm._v(\" Bitiş Tarihi \")]\n ),\n _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell caption\",\n },\n [_c(\"span\", [_vm._v(_vm._s(_vm.pricesText))])]\n ),\n ]\n ),\n _c(\n \"div\",\n { staticClass: \"accordion-content active\" },\n [\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 {\n staticClass: \"accordion-wrapper__row__cell\",\n },\n [\n typeof item == \"object\"\n ? _c(\"span\", [\n item.name\n ? _c(\"span\", [\n _vm._v(_vm._s(item.name)),\n ])\n : _vm._e(),\n ])\n : _c(\"span\", [_vm._v(_vm._s(item))]),\n ]\n ),\n item.startDate\n ? _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\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 {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [_vm._v(\"-\")]\n ),\n item.endDate\n ? _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.getTime(\n item.endDate,\n \"DD/MM/YYYY\"\n )\n ) +\n \" \"\n ),\n ]\n )\n : _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [_vm._v(\"-\")]\n ),\n item.price\n ? _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [\n _vm._v(\" \" + _vm._s(item.price) + \" \"),\n item.info == \"₺\"\n ? _c(\"span\", [_vm._v(\"TL\")])\n : _vm._e(),\n item.info == \"€\"\n ? _c(\"span\", [_vm._v(\"Euro\")])\n : _vm._e(),\n item.info == \"$\"\n ? _c(\"span\", [_vm._v(\"Dolar\")])\n : _vm._e(),\n ]\n )\n : _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [_vm._v(\"-\")]\n ),\n ]\n )\n }),\n _c(\"div\", { staticClass: \"accordion-wrapper__row\" }, [\n _vm._m(0),\n _c(\"div\", {\n staticClass: \"accordion-wrapper__row__cell\",\n }),\n _c(\"div\", {\n staticClass: \"accordion-wrapper__row__cell\",\n }),\n _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell\" },\n [_vm._v(\" \" + _vm._s(_vm.screenPrice) + \" TL \")]\n ),\n ]),\n ],\n 2\n ),\n ]\n ),\n ]),\n ])\n : _vm._e(),\n ]\n ),\n _c(\n \"modal\",\n {\n staticClass: \"cancel-modal\",\n attrs: {\n height: \"auto\",\n adaptive: true,\n name: String(_vm.dataItem.id),\n },\n },\n [\n _c(\"div\", { staticClass: \"modal-heading\" }, [\n _c(\"div\", { staticClass: \"modal-title\" }, [\n _c(\"h5\", [\n _vm._v(\n \"Seçilen lisansı aşağıdaki şekilde yönlendirebilirsiniz.\"\n ),\n ]),\n ]),\n _c(\n \"a\",\n {\n on: {\n click: function ($event) {\n _vm.closeModal(String(_vm.dataItem.id))\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(\"div\", { staticClass: \"modal-body__info\" }, [\n _vm.dataItem.productName != null\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.application != null &&\n (_vm.dataItem.application.applicationId == 3 ||\n _vm.dataItem.application.applicationId == 2)\n ? _c(\"span\", [\n _vm._v(_vm._s(_vm.dataItem.application.shortContent)),\n ])\n : _vm.dataItem.research.length &&\n _vm.dataItem.application == null\n ? _c(\"span\", [\n _vm._v(\n \" \" + _vm._s(_vm.dataItem.research[0].name) + \" \"\n ),\n ])\n : _vm.dataItem.algorithm.length &&\n (_vm.dataItem.application.applicationId == 4 ||\n _vm.dataItem.application.applicationId == 7)\n ? _c(\"span\", [\n _vm._v(\n \" \" + _vm._s(_vm.dataItem.algorithm[0].name) + \" \"\n ),\n ])\n : _c(\"span\", [\n _vm._v(\n \" \" + _vm._s(_vm.dataItem.platform.name) + \" \"\n ),\n ]),\n ]),\n _c(\n \"p\",\n { staticClass: \"modal-body__info_price\" },\n [\n _vm.totalPriceCalc != \"0₺\" &&\n _vm.totalPriceCalc != \"0€\" &&\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\", {\n attrs: { infoText: \"Uyarı: Yapılan işlemler geri alınamaz.\" },\n }),\n ],\n 1\n ),\n _c(\n \"div\",\n { staticClass: \"modal-bottom\" },\n [\n _c(\n \"base-button\",\n {\n staticClass: \"set-buttons back\",\n class: !_vm.isButtonsDisabled ? \"\" : \"disabled\",\n on: {\n click: function ($event) {\n return _vm.setRowForPrev(_vm.dataItem.id)\n },\n },\n },\n [_vm._v(\"Geri Al\")]\n ),\n _c(\n \"base-button\",\n {\n staticClass: \"set-buttons\",\n class: !_vm.isButtonsDisabled ? \"\" : \"disabled\",\n on: {\n click: function ($event) {\n return _vm.setRowForNext(_vm.dataItem.id)\n },\n },\n },\n [_vm._v(\"İleri Al\")]\n ),\n ],\n 1\n ),\n ]\n ),\n ],\n 1\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: \"accordion-wrapper__row__cell\" }, [\n _c(\"span\", { staticClass: \"screen-price\" }, [_vm._v(\"Ekran Ücreti\")]),\n ])\n },\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/DataInvoiceItem.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");
|
|
2254
|
+
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: \"invoice-item-container\" },\n [\n _c(\n \"div\",\n { staticClass: \"invoice-item\", class: { active: _vm.isActive } },\n [\n _c(\"div\", { staticClass: \"invoice-item__top\" }, [\n _c(\"div\", { staticClass: \"left flex-09\" }, [\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 : _vm.dataItem && _vm.dataItem.application.imageUrl\n ? _c(\"img\", {\n attrs: {\n alt: \"product image\",\n src: _vm.dataItem.application.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 _c(\"div\", { staticClass: \"right\" }, [\n _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Bitiş Tarihi\")]),\n _vm.dataItem.endDate\n ? _c(\"span\", [\n _vm._v(\n _vm._s(_vm.getTime(_vm.dataItem.endDate, \"DD/MM/YYYY\"))\n ),\n ])\n : _c(\"span\", [_vm._v(\"-\")]),\n ]),\n _vm.esube == \"no\"\n ? _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Ödeme Durumu\")]),\n _vm.dataItem.paymentStatus == \"0\"\n ? _c(\"span\", [\n _vm._v(\n \"Limit altında müşteri, üstünde temsilci(Varsayılan)\"\n ),\n ])\n : _vm._e(),\n _vm.dataItem.paymentStatus == \"1\"\n ? _c(\"span\", [_vm._v(\"Müşteri\")])\n : _vm._e(),\n _vm.dataItem.paymentStatus == \"2\"\n ? _c(\"span\", [_vm._v(\"Temsilci\")])\n : _vm._e(),\n ])\n : _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Ödeme Durumu\")]),\n _vm.dataItem.paymentStatus == \"0\" &&\n _vm.isCompleted &&\n _vm.invoiceList.data.length\n ? _c(\"span\", [_vm._v(\"Ücretsiz\")])\n : _vm._e(),\n _vm.dataItem.paymentStatus == \"0\" &&\n !_vm.isCompleted &&\n _vm.invoiceList.data.length\n ? _c(\"span\", [_vm._v(\"Tahsil Edildi\")])\n : _vm._e(),\n _vm.dataItem.paymentStatus == \"1\"\n ? _c(\"span\", [_vm._v(\"Tahsil Edildi\")])\n : _vm._e(),\n _vm.dataItem.paymentStatus == \"2\"\n ? _c(\"span\", [_vm._v(\"Ücretsiz\")])\n : _vm._e(),\n ]),\n _c(\"div\", { staticClass: \"col\" }, [\n _c(\"h6\", { staticClass: \"bold\" }, [_vm._v(\"Toplam Tutar\")]),\n _vm.dataItem.updatedAt\n ? _c(\"span\", [_vm._v(_vm._s(_vm.totalPriceCalc.toString()))])\n : _vm._e(),\n ]),\n ]),\n _vm.dataItem.packageStatus\n ? _c(\"div\", { staticClass: \"right for-button\" }, [\n _vm.dataItem.packageStatus.id !== 6 &&\n _vm.dataItem.packageStatus.id !== 8\n ? _c(\"div\", { staticClass: \"col\" }, [\n _vm.dataItem.packageStatus &&\n _vm.getUserInfo.memberType == 1\n ? _c(\"div\", [\n _vm.dataItem.packageStatus.id == 2\n ? _c(\n \"div\",\n {\n staticClass:\n \"invoice-item__bottom buttons\",\n },\n [\n _c(\n \"base-button\",\n {\n staticClass: \"set-buttons\",\n class: !_vm.isButtonsDisabled\n ? \"\"\n : \"disabled\",\n on: {\n click: function ($event) {\n _vm.showModal(\n String(_vm.dataItem.id)\n )\n },\n },\n },\n [_vm._v(\"İşlemler\")]\n ),\n ],\n 1\n )\n : _vm._e(),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n ])\n : _vm._e(),\n ]),\n _vm.dataItem.package\n ? _c(\"div\", { staticClass: \"invoice-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, 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.isActivatedAccordion }],\n attrs: { name: \"arrow-green\" },\n }),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"invoice-item__bottom__packages\" }, [\n _c(\n \"div\",\n {\n class: [\n \"accordion-wrapper\",\n _vm.isActivatedAccordion ? \"active\" : \"\",\n ],\n },\n [\n _c(\n \"div\",\n {\n class: [\n \"accordion-wrapper__row caption\",\n _vm.isActivatedAccordion ? \"active\" : \"\",\n ],\n },\n [\n _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell caption\",\n },\n [_vm._v(\"Paket Adı\")]\n ),\n _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell caption\",\n },\n [_vm._v(\" Başlangıç Tarihi \")]\n ),\n _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell caption\",\n },\n [_vm._v(\" Bitiş Tarihi \")]\n ),\n _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell caption\",\n },\n [_c(\"span\", [_vm._v(_vm._s(_vm.pricesText))])]\n ),\n ]\n ),\n _c(\n \"div\",\n { staticClass: \"accordion-content active\" },\n [\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 {\n staticClass: \"accordion-wrapper__row__cell\",\n },\n [\n typeof item == \"object\"\n ? _c(\"span\", [\n item.name\n ? _c(\"span\", [\n _vm._v(_vm._s(item.name)),\n ])\n : _vm._e(),\n ])\n : _c(\"span\", [_vm._v(_vm._s(item))]),\n ]\n ),\n item.startDate\n ? _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\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 {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [_vm._v(\"-\")]\n ),\n item.endDate\n ? _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.getTime(\n item.endDate,\n \"DD/MM/YYYY\"\n )\n ) +\n \" \"\n ),\n ]\n )\n : _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [_vm._v(\"-\")]\n ),\n item.price\n ? _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [\n _vm._v(\" \" + _vm._s(item.price) + \" \"),\n item.info == \"₺\"\n ? _c(\"span\", [_vm._v(\"TL\")])\n : _vm._e(),\n item.info == \"€\"\n ? _c(\"span\", [_vm._v(\"Euro\")])\n : _vm._e(),\n item.info == \"$\"\n ? _c(\"span\", [_vm._v(\"Dolar\")])\n : _vm._e(),\n ]\n )\n : _c(\n \"div\",\n {\n staticClass:\n \"accordion-wrapper__row__cell\",\n },\n [_vm._v(\"-\")]\n ),\n ]\n )\n }),\n _c(\"div\", { staticClass: \"accordion-wrapper__row\" }, [\n _vm._m(0),\n _c(\"div\", {\n staticClass: \"accordion-wrapper__row__cell\",\n }),\n _c(\"div\", {\n staticClass: \"accordion-wrapper__row__cell\",\n }),\n _c(\n \"div\",\n { staticClass: \"accordion-wrapper__row__cell\" },\n [_vm._v(\" \" + _vm._s(_vm.screenPrice) + \" TL \")]\n ),\n ]),\n ],\n 2\n ),\n ]\n ),\n ]),\n ])\n : _vm._e(),\n ]\n ),\n _c(\n \"modal\",\n {\n staticClass: \"cancel-modal\",\n attrs: {\n height: \"auto\",\n adaptive: true,\n name: String(_vm.dataItem.id),\n },\n },\n [\n _c(\"div\", { staticClass: \"modal-heading\" }, [\n _c(\"div\", { staticClass: \"modal-title\" }, [\n _c(\"h5\", [\n _vm._v(\n \"Seçilen lisansı aşağıdaki şekilde yönlendirebilirsiniz.\"\n ),\n ]),\n ]),\n _c(\n \"a\",\n {\n on: {\n click: function ($event) {\n _vm.closeModal(String(_vm.dataItem.id))\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(\"div\", { staticClass: \"modal-body__info\" }, [\n _vm.dataItem.productName != null\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.application != null &&\n (_vm.dataItem.application.applicationId == 3 ||\n _vm.dataItem.application.applicationId == 2)\n ? _c(\"span\", [\n _vm._v(_vm._s(_vm.dataItem.application.shortContent)),\n ])\n : _vm.dataItem.research.length &&\n _vm.dataItem.application == null\n ? _c(\"span\", [\n _vm._v(\n \" \" + _vm._s(_vm.dataItem.research[0].name) + \" \"\n ),\n ])\n : _vm.dataItem.algorithm.length &&\n (_vm.dataItem.application.applicationId == 4 ||\n _vm.dataItem.application.applicationId == 7)\n ? _c(\"span\", [\n _vm._v(\n \" \" + _vm._s(_vm.dataItem.algorithm[0].name) + \" \"\n ),\n ])\n : _c(\"span\", [\n _vm._v(\n \" \" + _vm._s(_vm.dataItem.platform.name) + \" \"\n ),\n ]),\n ]),\n _c(\n \"p\",\n { staticClass: \"modal-body__info_price\" },\n [\n _vm.totalPriceCalc != \"0₺\" &&\n _vm.totalPriceCalc != \"0€\" &&\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\", {\n attrs: { infoText: \"Uyarı: Yapılan işlemler geri alınamaz.\" },\n }),\n ],\n 1\n ),\n _c(\n \"div\",\n { staticClass: \"modal-bottom\" },\n [\n _c(\n \"base-button\",\n {\n staticClass: \"set-buttons back\",\n class: !_vm.isButtonsDisabled ? \"\" : \"disabled\",\n on: {\n click: function ($event) {\n return _vm.setRowForPrev(_vm.dataItem.id)\n },\n },\n },\n [_vm._v(\"Geri Al\")]\n ),\n _c(\n \"base-button\",\n {\n staticClass: \"set-buttons\",\n class: !_vm.isButtonsDisabled ? \"\" : \"disabled\",\n on: {\n click: function ($event) {\n return _vm.setRowForNext(_vm.dataItem.id)\n },\n },\n },\n [_vm._v(\"İleri Al\")]\n ),\n ],\n 1\n ),\n ]\n ),\n ],\n 1\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: \"accordion-wrapper__row__cell\" }, [\n _c(\"span\", { staticClass: \"screen-price\" }, [_vm._v(\"Ekran Ücreti\")]),\n ])\n },\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/DataInvoiceItem.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");
|
|
2255
2255
|
|
|
2256
2256
|
/***/ }),
|
|
2257
2257
|
|
|
@@ -2323,7 +2323,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
2323
2323
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2324
2324
|
|
|
2325
2325
|
"use strict";
|
|
2326
|
-
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 \"popup-right\",\n {\n attrs: { title: \"Paket Ayarları\", isPopupVisible: _vm.isPopupVisible },\n on: { close: _vm.setDefaultValues },\n },\n [\n _c(\n \"div\",\n {\n staticClass: \"package-settings\",\n class:\n _vm.$route.query.isRecommended === undefined &&\n (_vm.currentTab == \"Algo\" || _vm.currentTab == \"Research\")\n ? \"package_sizes\"\n : \"\",\n },\n [\n _c(\n \"div\",\n { staticClass: \"package-settings__top m-flex m-items-center\" },\n [\n _c(\n \"div\",\n { staticClass: \"package-settings__image\" },\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: \"package-settings__info\" }, [\n _c(\"h3\", [_vm._v(_vm._s(_vm.dataItem.name))]),\n _c(\"p\", { staticClass: \"package-settings__info-platform\" }, [\n _c(\"span\", [_vm._v(_vm._s(_vm.dataItem.subtitle))]),\n ]),\n ]),\n ]\n ),\n _vm.currentTab == \"Algo\"\n ? _c(\"div\", { staticClass: \"terminal-area\" }, [\n !_vm.isTerminal\n ? _c(\n \"div\",\n [\n _c(\"p\", { staticClass: \"text\" }, [\n _vm._v(\n \" Sistemde terminaliniz bulunmamaktadır. Lütfen öncelikle terminal alınız ya da Bireysel Ekranınıza \"\n ),\n _vm.dataItem.name\n ? _c(\"span\", [_vm._v(_vm._s(_vm.dataItem.name))])\n : _vm._e(),\n _vm.dataItem.platform && _vm.dataItem.platform.name\n ? _c(\"span\", [\n _vm._v(\n \"- \" + _vm._s(_vm.dataItem.platform.name)\n ),\n ])\n : _vm.dataItem.algorithm &&\n _vm.dataItem.algorithm.name\n ? _c(\"span\", [\n _vm._v(\n \"- \" + _vm._s(_vm.dataItem.algorithm.name)\n ),\n ])\n : _vm.dataItem.application &&\n _vm.dataItem.application.name\n ? _c(\"span\", [\n _vm._v(\n \"- \" + _vm._s(_vm.dataItem.application.name)\n ),\n ])\n : _vm._e(),\n _vm._v(\n \" tanımlamak için kullanıcı adınızı aşağıdaki ilgili alana giriniz. \"\n ),\n ]),\n _c(\"base-input\", {\n attrs: {\n inputType: \"text\",\n id: \"terminal\",\n placeholder: \"Bireysel Kullanıcı Adı\",\n noSpace: true,\n },\n model: {\n value: _vm.terminalNumber,\n callback: function ($$v) {\n _vm.terminalNumber = $$v\n },\n expression: \"terminalNumber\",\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n ])\n : _vm._e(),\n !_vm.showSections\n ? _c(\"div\", { staticClass: \"warning-area\" }, [\n _c(\"h5\", [_vm._v(\"Uyarı\")]),\n _c(\"div\", { staticClass: \"row-area\" }, [\n _c(\"p\", { staticClass: \"row\" }, [\n _c(\n \"span\",\n { staticClass: \"icon-area\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"info\" },\n }),\n ],\n 1\n ),\n _vm.isCancelled\n ? _c(\"span\", { staticClass: \"text\" }, [\n _vm._v(\n \" İptal ettiğiniz paketiniz bulunmaktadır, Onayladığınız takdirde mevcut paketinizdeki tüm lisanslar otomatik olarak aktif edilecektir. Lisans Ekleme/Çıkarma işlemlerini paket aktif olduktan sonra düzenleme ekranından yapabilirsiniz. \"\n ),\n ])\n : _c(\"span\", { staticClass: \"text\" }, [\n _vm._v(\n \" Paket yükseltme işlemi yapmaktasınız. Mevcut paketinizdeki tüm lisanslar otomatik olarak yükseltilecektir. Lisans Ekleme/Çıkarma işlemlerini paketi aldıktan sonra yapabilirsiniz. \"\n ),\n ]),\n ]),\n ]),\n ])\n : _vm._e(),\n _vm.currentTab == \"Algo\" && _vm.algoDetail.ruleMessage\n ? _c(\"div\", { staticClass: \"warning-area\" }, [\n _c(\"h5\", [_vm._v(\"Uyarılar\")]),\n _c(\n \"div\",\n { staticClass: \"row-area\" },\n _vm._l(_vm.algoDetail.ruleMessage, function (message) {\n return _c(\"p\", { key: message.id, staticClass: \"row\" }, [\n _c(\n \"span\",\n { staticClass: \"icon-area\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"info\" },\n }),\n ],\n 1\n ),\n _c(\"span\", { staticClass: \"text\" }, [\n _vm._v(_vm._s(message)),\n ]),\n ])\n }),\n 0\n ),\n ])\n : _vm._e(),\n _vm.currentTab == \"Algo\" && _vm.algoDetail.faqs\n ? _c(\n \"div\",\n { staticClass: \"faq-area\" },\n [\n _c(\"h5\", [_vm._v(\"Sıkça Sorulan Sorular\")]),\n _c(\"faq\", { attrs: { data: _vm.algoDetail.faqs } }),\n ],\n 1\n )\n : _vm._e(),\n _vm.currentTab == \"Research\" && _vm.researchDetail.ruleMessage\n ? _c(\"div\", { staticClass: \"warning-area\" }, [\n _c(\"h5\", [_vm._v(\"Uyarılar\")]),\n _c(\n \"div\",\n { staticClass: \"row-area\" },\n _vm._l(_vm.researchDetail.ruleMessage, function (message) {\n return _c(\"p\", { key: message.id, staticClass: \"row\" }, [\n _c(\n \"span\",\n { staticClass: \"icon-area\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"info\" },\n }),\n ],\n 1\n ),\n _c(\"span\", { staticClass: \"text\" }, [\n _vm._v(_vm._s(message)),\n ]),\n ])\n }),\n 0\n ),\n ])\n : _vm._e(),\n _vm.currentTab != \"Algo\" && _vm.currentTab != \"Research\"\n ? _c(\n \"div\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.showSections,\n expression: \"showSections\",\n },\n ],\n staticClass: \"package-settings__lisans\",\n },\n [\n _c(\n \"div\",\n { staticClass: \"package-settings__lisans__information\" },\n [\n _c(\"h5\", { attrs: { id: \"lisans\" } }, [\n _vm._v(\"Lisans Bilgileri\"),\n ]),\n _c(\"div\", { staticClass: \"market-table\" }, [\n _c(\n \"table\",\n {\n staticClass: \"table\",\n attrs: { \"aria-describedby\": \"lisans\" },\n },\n [\n _c(\"thead\", [\n _c(\"tr\", [\n _c(\"th\", { attrs: { scope: \"col\" } }),\n _c(\n \"th\",\n {\n staticClass: \"text-left\",\n attrs: { scope: \"col\" },\n },\n [_vm._v(\"Piyasa\")]\n ),\n _c(\n \"th\",\n {\n staticClass: \"text-left\",\n attrs: { scope: \"col\" },\n },\n [_vm._v(\"Derinlik\")]\n ),\n _c(\n \"th\",\n {\n staticClass: \"text-left\",\n attrs: { scope: \"col\" },\n },\n [_vm._v(\"Aracı Kurum Dağılımı\")]\n ),\n _vm.$route.query.isRecommended != \"1\"\n ? _c(\n \"th\",\n {\n staticClass: \"text-left\",\n attrs: { scope: \"col\" },\n },\n [_vm._v(\" Başlangıç Zamanı \")]\n )\n : _vm._e(),\n ]),\n ]),\n _c(\n \"tbody\",\n _vm._l(_vm.marketInfo, function (item) {\n return _c(\"package-setting-create-type\", {\n key: item.id,\n attrs: {\n item: item,\n dataItem: _vm.dataItem,\n platformInfo: _vm.platformInfo,\n selectData: _vm.selectData,\n isResponsive: false,\n },\n on: {\n update: _vm.changeSelected,\n showSpesificWarning:\n _vm.checkSpesificWarning,\n },\n })\n }),\n 1\n ),\n ]\n ),\n ]),\n _c(\n \"div\",\n { staticClass: \"market-table-responsive\" },\n _vm._l(_vm.marketInfo, function (item) {\n return _c(\"package-setting-create-type\", {\n key: item.id,\n attrs: {\n item: item,\n dataItem: _vm.dataItem,\n platformInfo: _vm.platformInfo,\n selectData: _vm.selectData,\n isResponsive: true,\n },\n on: {\n update: _vm.changeSelected,\n showSpesificWarning: _vm.checkSpesificWarning,\n },\n })\n }),\n 1\n ),\n _vm.warningMessage\n ? _c(\n \"div\",\n { staticClass: \"info-container\" },\n [\n _c(\"info-area\", {\n attrs: {\n infoText: _vm.infoText[1],\n typeWarning: true,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n ]\n ),\n _c(\"div\", { staticClass: \"accordion-container\" }, [\n _vm.research.length > 0 &&\n _vm.research[0].details &&\n _vm.research[0].details.length > 0\n ? _c(\n \"div\",\n [\n _c(\"accordion-research\", {\n attrs: {\n id: \"accordion-research\",\n content: _vm.research,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n _vm.foreign.length > 0 &&\n _vm.foreign[0].details &&\n _vm.foreign[0].details.length > 0\n ? _c(\n \"div\",\n [\n _c(\"accordion-foreign\", {\n attrs: {\n id: \"accordion-foreign\",\n content: _vm.foreign,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n _vm.algoServer.length > 0 &&\n _vm.algoServer[0].details &&\n _vm.algoServer[0].details.length > 0\n ? _c(\n \"div\",\n [\n _c(\"accordion-algo-server\", {\n attrs: {\n id: \"accordion-algo-server\",\n content: _vm.algoServer,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n ]),\n ]\n )\n : _vm._e(),\n this.isRuleMessageWarning\n ? _c(\"div\", { staticClass: \"warning-area\" }, [\n _c(\"h5\", [_vm._v(\"Uyarılar\")]),\n _c(\"div\", { staticClass: \"row-area\" }, [\n _c(\"p\", { staticClass: \"row\" }, [\n _c(\n \"span\",\n { staticClass: \"icon-area\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"info\" },\n }),\n ],\n 1\n ),\n _c(\"span\", { staticClass: \"text\" }, [\n _vm._v(_vm._s(this.itemRuleMessage)),\n ]),\n ]),\n ]),\n ])\n : _vm._e(),\n ]\n ),\n _c(\n \"div\",\n { staticClass: \"package-settings__bottom m-flex m-items-center\" },\n [\n _c(\"div\", { staticClass: \"package-settings__bottom-right\" }, [\n _c(\"p\", [\n _c(\"span\", { staticClass: \"m-text-grayscale-80\" }, [\n _vm._v(\"BES / Yatırım Fonu:\"),\n ]),\n _vm._v(\" \" + _vm._s(_vm.calculateTotalFundRate) + \" TL \"),\n ]),\n _c(\"p\", [\n _c(\"span\", { staticClass: \"m-text-grayscale-80\" }, [\n _vm._v(\"Komisyon:\"),\n ]),\n _vm._v(\" \" + _vm._s(_vm.calculateTotalComissionRate) + \" TL \"),\n ]),\n ]),\n _c(\n \"div\",\n {\n staticClass: \"package-settings__bottom-left\",\n class:\n _vm.$route.query.isRecommended === undefined &&\n (_vm.currentTab == \"Algo\" || _vm.currentTab == \"Research\")\n ? \"package_sizes\"\n : \"\",\n },\n [\n _c(\"div\", { staticClass: \"package-settings__price m-flex\" }, [\n _c(\"span\", [_vm._v(\"Toplam Tutar:\")]),\n _c(\"h2\", [\n _vm._v(\n _vm._s(_vm.formatPrice(_vm.calculateTotalPrice)) + \" TL\"\n ),\n ]),\n _vm.foreign.length > 0 &&\n _vm.foreign[0].details &&\n _vm.foreign[0].details.length > 0 &&\n this.foraignDollarTotal()\n ? _c(\"h2\", [\n _vm._v(\n \" \" + _vm._s(_vm.calculateTotalDollarForeignPrice) + \" \"\n ),\n ])\n : _vm._e(),\n _vm.foreign.length > 0 &&\n _vm.foreign[0].details &&\n _vm.foreign[0].details.length > 0 &&\n this.foraignEuroTotal()\n ? _c(\"h2\", [\n _vm._v(\n \" \" + _vm._s(_vm.calculateTotalEuroForeignPrice) + \" \"\n ),\n ])\n : _vm._e(),\n ]),\n _c(\n \"div\",\n {\n staticClass:\n \"package-settings__bottom-action m-flex m-items-center\",\n class:\n _vm.$route.query.isRecommended === undefined &&\n (_vm.currentTab == \"Algo\" || _vm.currentTab == \"Research\")\n ? \"package_sizes\"\n : \"\",\n },\n [\n _vm.$route.query.isRecommended === undefined &&\n (_vm.currentTab == \"Algo\" || _vm.currentTab == \"Research\")\n ? _c(\"base-select\", {\n staticClass: \"start-date-select\",\n attrs: {\n fieldLabel: \"Başlangıç Zamanı\",\n options: _vm.startDate,\n id: \"startTime\",\n selectedId: _vm.startDateSelection,\n placeholder: \"Seçiniz\",\n },\n on: { change: _vm.changeStartDate },\n })\n : _vm._e(),\n _c(\n \"base-button\",\n {\n class: { \"button-disabled\": _vm.isButtonClicked },\n attrs: { id: \"create-submit-btn\" },\n on: { click: _vm.submitShow },\n },\n [_vm._v(\"Onayla\")]\n ),\n ],\n 1\n ),\n ]\n ),\n ]\n ),\n _c(\n \"div\",\n { staticClass: \"info-container\" },\n [\n _c(\"info-area\", {\n attrs: { infoText: _vm.infoText[0], typeWarning: true },\n }),\n ],\n 1\n ),\n this.isOperationWarningVal === true\n ? _c(\n \"div\",\n {\n staticClass: \"modal-area\",\n attrs: { name: \"operation-warning\", id: \"operation-warning\" },\n },\n [\n _c(\"div\", { staticClass: \"modal-area__inner\" }, [\n _c(\"div\", { staticClass: \"modal-heading\" }, [\n _c(\"div\", { staticClass: \"modal-title\" }, [\n _c(\"h5\", [_vm._v(\"Bu işlemi onaylıyor musunuz?\")]),\n ]),\n _c(\n \"a\",\n {\n attrs: { id: \"close-operation-warning\" },\n on: {\n click: function ($event) {\n return _vm.modalNo()\n },\n },\n },\n [\n _c(\"base-icon\", {\n staticClass: \"close\",\n attrs: { name: \"close\" },\n }),\n ],\n 1\n ),\n ]),\n _c(\"div\", { staticClass: \"modal-body\" }, [\n _c(\"span\", [_vm._v(_vm._s(_vm.operationMessage))]),\n ]),\n _c(\n \"div\",\n { staticClass: \"modal-bottom\" },\n [\n _c(\n \"base-button\",\n {\n staticClass: \"no\",\n on: {\n click: function ($event) {\n return _vm.modalNo()\n },\n },\n },\n [_vm._v(\"Hayır\")]\n ),\n _c(\n \"base-button\",\n {\n staticClass: \"hide\",\n on: {\n click: function ($event) {\n return _vm.modalHide()\n },\n },\n },\n [_vm._v(\"Evet\")]\n ),\n ],\n 1\n ),\n ]),\n ]\n )\n : _vm._e(),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/PackageSettignsCreate.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");
|
|
2326
|
+
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 \"popup-right\",\n {\n attrs: { title: \"Paket Ayarları\", isPopupVisible: _vm.isPopupVisible },\n on: { close: _vm.setDefaultValues },\n },\n [\n _c(\n \"div\",\n {\n staticClass: \"package-settings\",\n class:\n _vm.$route.query.isRecommended === undefined &&\n (_vm.currentTab == \"Algo\" || _vm.currentTab == \"Research\")\n ? \"package_sizes\"\n : \"\",\n },\n [\n _c(\n \"div\",\n { staticClass: \"package-settings__top m-flex m-items-center\" },\n [\n _c(\n \"div\",\n { staticClass: \"package-settings__image\" },\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: \"package-settings__info\" }, [\n _c(\"h3\", [_vm._v(_vm._s(_vm.dataItem.name))]),\n _c(\"p\", { staticClass: \"package-settings__info-platform\" }, [\n _c(\"span\", [_vm._v(_vm._s(_vm.dataItem.subtitle))]),\n ]),\n ]),\n ]\n ),\n _vm.currentTab == \"Algo\"\n ? _c(\"div\", { staticClass: \"terminal-area\" }, [\n !_vm.isTerminal\n ? _c(\n \"div\",\n [\n _c(\"p\", { staticClass: \"text\" }, [\n _vm._v(\n \" Sistemde terminaliniz bulunmamaktadır. Lütfen öncelikle terminal alınız ya da Bireysel Ekranınıza \"\n ),\n _vm.dataItem.name\n ? _c(\"span\", [_vm._v(_vm._s(_vm.dataItem.name))])\n : _vm._e(),\n _vm.dataItem.platform && _vm.dataItem.platform.name\n ? _c(\"span\", [\n _vm._v(\n \"- \" + _vm._s(_vm.dataItem.platform.name)\n ),\n ])\n : _vm.dataItem.algorithm &&\n _vm.dataItem.algorithm.name\n ? _c(\"span\", [\n _vm._v(\n \"- \" + _vm._s(_vm.dataItem.algorithm.name)\n ),\n ])\n : _vm.dataItem.application &&\n _vm.dataItem.application.name\n ? _c(\"span\", [\n _vm._v(\n \"- \" + _vm._s(_vm.dataItem.application.name)\n ),\n ])\n : _vm._e(),\n _vm._v(\n \" tanımlamak için kullanıcı adınızı aşağıdaki ilgili alana giriniz. \"\n ),\n ]),\n _c(\"base-input\", {\n attrs: {\n inputType: \"text\",\n id: \"terminal\",\n placeholder: \"Bireysel Kullanıcı Adı\",\n noSpace: true,\n },\n model: {\n value: _vm.terminalNumber,\n callback: function ($$v) {\n _vm.terminalNumber = $$v\n },\n expression: \"terminalNumber\",\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n ])\n : _vm._e(),\n !_vm.showSections\n ? _c(\"div\", { staticClass: \"warning-area\" }, [\n _c(\"h5\", [_vm._v(\"Uyarı\")]),\n _c(\"div\", { staticClass: \"row-area\" }, [\n _c(\"p\", { staticClass: \"row\" }, [\n _c(\n \"span\",\n { staticClass: \"icon-area\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"info\" },\n }),\n ],\n 1\n ),\n _vm.isCancelled\n ? _c(\"span\", { staticClass: \"text\" }, [\n _vm._v(\n \" İptal ettiğiniz paketiniz bulunmaktadır, Onayladığınız takdirde mevcut paketinizdeki tüm lisanslar otomatik olarak aktif edilecektir. Lisans Ekleme/Çıkarma işlemlerini paket aktif olduktan sonra düzenleme ekranından yapabilirsiniz. \"\n ),\n ])\n : _c(\"span\", { staticClass: \"text\" }, [\n _vm._v(\n \" Paket yükseltme işlemi yapmaktasınız. Mevcut paketinizdeki tüm lisanslar otomatik olarak yükseltilecektir. Lisans Ekleme/Çıkarma işlemlerini paketi aldıktan sonra yapabilirsiniz. \"\n ),\n ]),\n ]),\n ]),\n ])\n : _vm._e(),\n _vm.currentTab == \"Algo\" && _vm.algoDetail.ruleMessage\n ? _c(\"div\", { staticClass: \"warning-area\" }, [\n _c(\"h5\", [_vm._v(\"Uyarılar\")]),\n _c(\n \"div\",\n { staticClass: \"row-area\" },\n _vm._l(_vm.algoDetail.ruleMessage, function (message) {\n return _c(\"p\", { key: message.id, staticClass: \"row\" }, [\n _c(\n \"span\",\n { staticClass: \"icon-area\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"info\" },\n }),\n ],\n 1\n ),\n _c(\"span\", { staticClass: \"text\" }, [\n _vm._v(_vm._s(message)),\n ]),\n ])\n }),\n 0\n ),\n ])\n : _vm._e(),\n _vm.currentTab == \"Algo\" && _vm.algoDetail.faqs\n ? _c(\n \"div\",\n { staticClass: \"faq-area\" },\n [\n _c(\"h5\", [_vm._v(\"Sıkça Sorulan Sorular\")]),\n _c(\"faq\", { attrs: { data: _vm.algoDetail.faqs } }),\n ],\n 1\n )\n : _vm._e(),\n _vm.currentTab == \"Research\" && _vm.researchDetail.ruleMessage\n ? _c(\"div\", { staticClass: \"warning-area\" }, [\n _c(\"h5\", [_vm._v(\"Uyarılar\")]),\n _c(\n \"div\",\n { staticClass: \"row-area\" },\n _vm._l(_vm.researchDetail.ruleMessage, function (message) {\n return _c(\"p\", { key: message.id, staticClass: \"row\" }, [\n _c(\n \"span\",\n { staticClass: \"icon-area\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"info\" },\n }),\n ],\n 1\n ),\n _c(\"span\", { staticClass: \"text\" }, [\n _vm._v(_vm._s(message)),\n ]),\n ])\n }),\n 0\n ),\n ])\n : _vm._e(),\n _vm.currentTab != \"Algo\" && _vm.currentTab != \"Research\"\n ? _c(\n \"div\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.showSections,\n expression: \"showSections\",\n },\n ],\n staticClass: \"package-settings__lisans\",\n },\n [\n _c(\n \"div\",\n { staticClass: \"package-settings__lisans__information\" },\n [\n _c(\"h5\", { attrs: { id: \"lisans\" } }, [\n _vm._v(\"Lisans Bilgileri\"),\n ]),\n _c(\"div\", { staticClass: \"market-table\" }, [\n _c(\n \"table\",\n {\n staticClass: \"table\",\n attrs: { \"aria-describedby\": \"lisans\" },\n },\n [\n _c(\"thead\", [\n _c(\"tr\", [\n _c(\"th\", { attrs: { scope: \"col\" } }),\n _c(\n \"th\",\n {\n staticClass: \"text-left\",\n attrs: { scope: \"col\" },\n },\n [_vm._v(\"Piyasa\")]\n ),\n _c(\n \"th\",\n {\n staticClass: \"text-left\",\n attrs: { scope: \"col\" },\n },\n [_vm._v(\"Derinlik\")]\n ),\n _c(\n \"th\",\n {\n staticClass: \"text-left\",\n attrs: { scope: \"col\" },\n },\n [_vm._v(\"Aracı Kurum Dağılımı\")]\n ),\n _vm.$route.query.isRecommended != \"1\"\n ? _c(\n \"th\",\n {\n staticClass: \"text-left\",\n attrs: { scope: \"col\" },\n },\n [_vm._v(\" Başlangıç Zamanı \")]\n )\n : _vm._e(),\n ]),\n ]),\n _c(\n \"tbody\",\n _vm._l(_vm.marketInfo, function (item) {\n return _c(\"package-setting-create-type\", {\n key: item.id,\n attrs: {\n item: item,\n dataItem: _vm.dataItem,\n platformInfo: _vm.platformInfo,\n selectData: _vm.selectData,\n isResponsive: false,\n overallLimit: _vm.overallLimit,\n },\n on: {\n update: _vm.changeSelected,\n showSpesificWarning:\n _vm.checkSpesificWarning,\n },\n })\n }),\n 1\n ),\n ]\n ),\n ]),\n _c(\n \"div\",\n { staticClass: \"market-table-responsive\" },\n _vm._l(_vm.marketInfo, function (item) {\n return _c(\"package-setting-create-type\", {\n key: item.id,\n attrs: {\n item: item,\n dataItem: _vm.dataItem,\n platformInfo: _vm.platformInfo,\n selectData: _vm.selectData,\n isResponsive: true,\n overallLimit: _vm.overallLimit,\n },\n on: {\n update: _vm.changeSelected,\n showSpesificWarning: _vm.checkSpesificWarning,\n },\n })\n }),\n 1\n ),\n _vm.warningMessage\n ? _c(\n \"div\",\n { staticClass: \"info-container\" },\n [\n _c(\"info-area\", {\n attrs: {\n infoText: _vm.infoText[1],\n typeWarning: true,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n ]\n ),\n _c(\"div\", { staticClass: \"accordion-container\" }, [\n _vm.research.length > 0 &&\n _vm.research[0].details &&\n _vm.research[0].details.length > 0\n ? _c(\n \"div\",\n [\n _c(\"accordion-research\", {\n attrs: {\n id: \"accordion-research\",\n content: _vm.research,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n _vm.foreign.length > 0 &&\n _vm.foreign[0].details &&\n _vm.foreign[0].details.length > 0\n ? _c(\n \"div\",\n [\n _c(\"accordion-foreign\", {\n attrs: {\n id: \"accordion-foreign\",\n content: _vm.foreign,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n _vm.algoServer.length > 0 &&\n _vm.algoServer[0].details &&\n _vm.algoServer[0].details.length > 0\n ? _c(\n \"div\",\n [\n _c(\"accordion-algo-server\", {\n attrs: {\n id: \"accordion-algo-server\",\n content: _vm.algoServer,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n ]),\n ]\n )\n : _vm._e(),\n this.isRuleMessageWarning\n ? _c(\"div\", { staticClass: \"warning-area\" }, [\n _c(\"h5\", [_vm._v(\"Uyarılar\")]),\n _c(\"div\", { staticClass: \"row-area\" }, [\n _c(\"p\", { staticClass: \"row\" }, [\n _c(\n \"span\",\n { staticClass: \"icon-area\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"info\" },\n }),\n ],\n 1\n ),\n _c(\"span\", { staticClass: \"text\" }, [\n _vm._v(_vm._s(this.itemRuleMessage)),\n ]),\n ]),\n ]),\n ])\n : _vm._e(),\n ]\n ),\n _c(\n \"div\",\n { staticClass: \"package-settings__bottom m-flex m-items-center\" },\n [\n _c(\"div\", { staticClass: \"package-settings__bottom-right\" }, [\n _c(\"p\", [\n _c(\"span\", { staticClass: \"m-text-grayscale-80\" }, [\n _vm._v(\"BES / Yatırım Fonu:\"),\n ]),\n _vm._v(\" \" + _vm._s(_vm.calculateTotalFundRate) + \" TL \"),\n ]),\n _c(\"p\", [\n _c(\"span\", { staticClass: \"m-text-grayscale-80\" }, [\n _vm._v(\"Komisyon:\"),\n ]),\n _vm._v(\" \" + _vm._s(_vm.calculateTotalComissionRate) + \" TL \"),\n ]),\n ]),\n _c(\n \"div\",\n {\n staticClass: \"package-settings__bottom-left\",\n class:\n _vm.$route.query.isRecommended === undefined &&\n (_vm.currentTab == \"Algo\" || _vm.currentTab == \"Research\")\n ? \"package_sizes\"\n : \"\",\n },\n [\n _c(\"div\", { staticClass: \"package-settings__price m-flex\" }, [\n _c(\"span\", [_vm._v(\"Toplam Tutar:\")]),\n _c(\"h2\", [\n _vm._v(\n _vm._s(_vm.formatPrice(_vm.calculateTotalPrice)) + \" TL\"\n ),\n ]),\n _vm.foreign.length > 0 &&\n _vm.foreign[0].details &&\n _vm.foreign[0].details.length > 0 &&\n this.foraignDollarTotal()\n ? _c(\"h2\", [\n _vm._v(\n \" \" + _vm._s(_vm.calculateTotalDollarForeignPrice) + \" \"\n ),\n ])\n : _vm._e(),\n _vm.foreign.length > 0 &&\n _vm.foreign[0].details &&\n _vm.foreign[0].details.length > 0 &&\n this.foraignEuroTotal()\n ? _c(\"h2\", [\n _vm._v(\n \" \" + _vm._s(_vm.calculateTotalEuroForeignPrice) + \" \"\n ),\n ])\n : _vm._e(),\n ]),\n _c(\n \"div\",\n {\n staticClass:\n \"package-settings__bottom-action m-flex m-items-center\",\n class:\n _vm.$route.query.isRecommended === undefined &&\n (_vm.currentTab == \"Algo\" || _vm.currentTab == \"Research\")\n ? \"package_sizes\"\n : \"\",\n },\n [\n _vm.$route.query.isRecommended === undefined &&\n (_vm.currentTab == \"Algo\" || _vm.currentTab == \"Research\")\n ? _c(\"base-select\", {\n staticClass: \"start-date-select\",\n attrs: {\n fieldLabel: \"Başlangıç Zamanı\",\n options: _vm.startDate,\n id: \"startTime\",\n selectedId: _vm.startDateSelection,\n placeholder: \"Seçiniz\",\n },\n on: { change: _vm.changeStartDate },\n })\n : _vm._e(),\n _c(\n \"base-button\",\n {\n class: { \"button-disabled\": _vm.isButtonClicked },\n attrs: { id: \"create-submit-btn\" },\n on: { click: _vm.submitShow },\n },\n [_vm._v(\"Onayla\")]\n ),\n ],\n 1\n ),\n ]\n ),\n ]\n ),\n _c(\n \"div\",\n { staticClass: \"info-container\" },\n [\n _c(\"info-area\", {\n attrs: { infoText: _vm.infoText[0], typeWarning: true },\n }),\n ],\n 1\n ),\n this.isOperationWarningVal === true\n ? _c(\n \"div\",\n {\n staticClass: \"modal-area\",\n attrs: { name: \"operation-warning\", id: \"operation-warning\" },\n },\n [\n _c(\"div\", { staticClass: \"modal-area__inner\" }, [\n _c(\"div\", { staticClass: \"modal-heading\" }, [\n _c(\"div\", { staticClass: \"modal-title\" }, [\n _c(\"h5\", [_vm._v(\"Bu işlemi onaylıyor musunuz?\")]),\n ]),\n _c(\n \"a\",\n {\n attrs: { id: \"close-operation-warning\" },\n on: {\n click: function ($event) {\n return _vm.modalNo()\n },\n },\n },\n [\n _c(\"base-icon\", {\n staticClass: \"close\",\n attrs: { name: \"close\" },\n }),\n ],\n 1\n ),\n ]),\n _c(\"div\", { staticClass: \"modal-body\" }, [\n _c(\"span\", [_vm._v(_vm._s(_vm.operationMessage))]),\n ]),\n _c(\n \"div\",\n { staticClass: \"modal-bottom\" },\n [\n _c(\n \"base-button\",\n {\n staticClass: \"no\",\n on: {\n click: function ($event) {\n return _vm.modalNo()\n },\n },\n },\n [_vm._v(\"Hayır\")]\n ),\n _c(\n \"base-button\",\n {\n staticClass: \"hide\",\n on: {\n click: function ($event) {\n return _vm.modalHide()\n },\n },\n },\n [_vm._v(\"Evet\")]\n ),\n ],\n 1\n ),\n ]),\n ]\n )\n : _vm._e(),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/components/customer/PackageSettignsCreate.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");
|
|
2327
2327
|
|
|
2328
2328
|
/***/ }),
|
|
2329
2329
|
|
|
@@ -2455,7 +2455,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
2455
2455
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2456
2456
|
|
|
2457
2457
|
"use strict";
|
|
2458
|
-
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: \"customer-detail\" },\n [\n _c(\"customer-info\", {\n attrs: {\n customerNumber: _vm.customerId,\n currentCustomer: _vm.customer,\n getPaymentStatuses: _vm.getPaymentStatuses,\n },\n }),\n _c(\"div\", { staticClass: \"tab-layout\" }, [\n _c(\n \"div\",\n { staticClass: \"tabs custom-container\" },\n _vm._l(_vm.tabs, function (tab) {\n return _c(\n \"div\",\n {\n key: tab.id,\n class: _vm.tabClass(tab.id),\n attrs: { id: \"tab-\" + tab.id },\n on: {\n click: function ($event) {\n return _vm.changeTab(tab.id)\n },\n },\n },\n [_c(\"h6\", [_vm._v(_vm._s(tab.text))])]\n )\n }),\n 0\n ),\n _c(\"div\", { staticClass: \"tab-content\" }, [\n _vm.currentTab === 0\n ? _c(\"div\", { staticClass: \"data-types\" }, [\n _vm.cusId\n ? _c(\n \"div\",\n [\n _c(\"fund-commission-rate\", {\n attrs: { customerId: parseInt(_vm.cusId, 0) },\n }),\n ],\n 1\n )\n : _vm._e(),\n _c(\n \"div\",\n {\n staticClass: \"data-requests custom-container\",\n attrs: { id: \"dataRequest\" },\n },\n [\n _c(\"div\", { staticClass: \"data-requests-timer\" }, [\n _c(\n \"div\",\n { staticClass: \"info-row\" },\n [\n _c(\"info-area\", {\n attrs: {\n infoText:\n \"Lisans iptallerinin, içerisinde bulunulan ayın son gününe kadar gerçekleştirilmesi gerekmektedir. Tanımlı veri paketinizin iptal edilmemesi durumunda, mevcut paketiniz her ay başında tekrar güncellenecektir.\",\n typeWarning: true,\n },\n }),\n ],\n 1\n ),\n _vm.timerRunning\n ? _c(\"div\", { staticClass: \"timer-status\" }, [\n _c(\"span\", [\n _vm._v(\n _vm._s(_vm.countDown) +\n \" saniye içerisinde güncellenecektir.\"\n ),\n ]),\n ])\n : _vm._e(),\n ]),\n _vm.logsLoader\n ? _c(\"list-view-skeleton\", {\n attrs: { \"line-count\": 10 },\n })\n : _vm._l(_vm.allPackages.data, function (d) {\n return _c(\"data-request-item\", {\n key: d.id,\n attrs: {\n dataItem: Object.assign(\n {},\n {\n title:\n d.research.length && d.application == null\n ? d.research[0].name\n : d.application.name,\n subtitle: _vm.subtitleRules(d),\n imageUrl: d.imageUrl,\n },\n d\n ),\n },\n on: {\n checkIsPopupOpen: function ($event) {\n return _vm.timerChecker($event)\n },\n },\n })\n }),\n _vm.allPackages.page\n ? _c(\"Pager\", {\n attrs: {\n pageName: \"dataRequest\",\n page: _vm.allPackages.page,\n },\n })\n : _vm._e(),\n ],\n 2\n ),\n ])\n : _vm._e(),\n _vm.currentTab === 1\n ? _c(\n \"div\",\n { staticClass: \"invoice-area\", attrs: { id: \"invoice\" } },\n [\n _c(\n \"div\",\n { staticClass: \"top-area custom-container\" },\n [\n _c(\"InvoiceFilter\", {\n attrs: {\n currentYearNumber: String(this.currentYearNumber),\n currentMonthNumber: String(this.currentMonthNumber),\n },\n on: {\n filterChangeResponse:\n _vm.checkIsDataInvoiceFilterChangedAndLoaded,\n },\n }),\n ],\n 1\n ),\n _c(\n \"div\",\n { staticClass: \"table-area custom-container\" },\n [\n _vm.esube == \"yes\"\n ? _c(\"div\", { staticClass: \"warning-area\" }, [\n _vm.customer.paymentStatusId == 1 &&\n !_vm.isCompleted &&\n _vm.invoiceList.data.length > 0\n ? _c(\n \"div\",\n { staticClass: \"warning-texts\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"warn-yellow\" },\n }),\n _c(\"span\", [\n _vm._v(\n \"Komisyon ya da BES/FON şartı sağlanmadığı için ekran ücreti tahsil edilmiştir.\"\n ),\n ]),\n ],\n 1\n )\n : _vm._e(),\n _vm.customer.paymentStatusId == 1 &&\n _vm.isCompleted &&\n _vm.invoiceList.data.length > 0\n ? _c(\n \"div\",\n { staticClass: \"warning-texts\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"warn-yellow\" },\n }),\n _vm._v(\n \" Komisyon ya da BES/FON şartı sağlandığı için ekran ücreti tahsil edilmemiştir. \"\n ),\n ],\n 1\n )\n : _vm._e(),\n ])\n : _c(\"div\", { staticClass: \"warning-area\" }, [\n _vm.customer.paymentStatusId == 2 &&\n _vm.isCompleted &&\n _vm.invoiceList.data.length > 0\n ? _c(\n \"div\",\n { staticClass: \"warning-texts\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"warn-yellow\" },\n }),\n _c(\"span\", [_vm._v(\"Masraf ödeme durumu\")]),\n _c(\"span\", [\n _vm._v(\"“Her zaman temsilci”\"),\n ]),\n _vm._v(\n \" olması sebepli ekran ücreti temsilcinize yansıtılmıştır. \"\n ),\n ],\n 1\n )\n : _vm._e(),\n _vm.customer.paymentStatusId == 0 &&\n !_vm.isCompleted &&\n _vm.invoiceList.data.length > 0\n ? _c(\n \"div\",\n { staticClass: \"warning-texts\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"warn-yellow\" },\n }),\n _c(\"span\", [_vm._v(\"Komisyon\")]),\n _vm._v(\" ya da \"),\n _c(\"span\", [_vm._v(\"BES/FON\")]),\n _vm._v(\n \" şartı sağlanmadığı için ekran ücreti tahsil edilmiştir. \"\n ),\n ],\n 1\n )\n : _vm._e(),\n _vm.customer.paymentStatusId == 1 &&\n _vm.isCompleted &&\n _vm.invoiceList.data.length > 0\n ? _c(\n \"div\",\n { staticClass: \"warning-texts\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"warn-yellow\" },\n }),\n _c(\"span\", [\n _vm._v(\"Masraf Ödeme durumunuz\"),\n ]),\n _c(\"span\", [_vm._v(\"“Her zaman müşteri”\")]),\n _vm._v(\n \" olması sebepli ekran ücreti tarafınıza yansıtılmıştır. \"\n ),\n ],\n 1\n )\n : _vm._e(),\n _vm.customer.paymentStatusId == 0 &&\n _vm.isCompleted &&\n _vm.invoiceList.data.length > 0\n ? _c(\n \"div\",\n { staticClass: \"warning-texts\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"warn-yellow\" },\n }),\n _c(\"span\", [_vm._v(\"Komisyon\")]),\n _vm._v(\" ya da \"),\n _c(\"span\", [_vm._v(\"BES/FON\")]),\n _vm._v(\n \" şartı sağlandığı için ekran ücreti tahsil edilmemiştir. \"\n ),\n ],\n 1\n )\n : _vm._e(),\n ]),\n !_vm.isDataInvoiceLoaded\n ? _c(\"base-icon\", {\n staticClass: \"loader-icon\",\n attrs: { name: \"loader\" },\n })\n : _vm._l(_vm.invoiceList.data, function (d) {\n return _c(\"data-invoice-item\", {\n key: d.id,\n attrs: {\n dataItem: Object.assign(\n {},\n {\n title:\n d.productName != null\n ? d.productName\n : d.research[0].name,\n subtitle: _vm.subtitleRulesInvoice(d),\n imageUrl: d.imageUrl,\n },\n d\n ),\n },\n })\n }),\n _vm.invoiceList.page\n ? _c(\"Pager\", {\n attrs: {\n pageName: \"invoice\",\n page: _vm.invoiceList.page,\n },\n })\n : _vm._e(),\n ],\n 2\n ),\n ]\n )\n : _vm._e(),\n _vm.currentTab === 2\n ? _c(\n \"div\",\n {\n staticClass: \"history-area custom-container\",\n attrs: { id: \"history\" },\n },\n [\n _c(\n \"div\",\n { staticClass: \"top-area\" },\n [_c(\"h3\", [_vm._v(\"Değişiklikler\")]), _c(\"history-filter\")],\n 1\n ),\n _c(\"div\", { staticClass: \"history-table-container\" }, [\n _c(\"div\", { staticClass: \"history-table\" }, [\n _c(\n \"div\",\n { staticClass: \"table-area\" },\n [\n _vm._m(0),\n _vm._l(_vm.historyList.data, function (d) {\n return _c(\"data-history-item\", {\n key: d.id,\n attrs: { dataItem: d },\n })\n }),\n ],\n 2\n ),\n ]),\n ]),\n ]\n )\n : _vm._e(),\n _vm.currentTab === 3\n ? _c(\n \"div\",\n {\n staticClass: \"screen-prices custom-container\",\n attrs: { id: \"screen-prices\" },\n },\n [\n _c(\"screen-prices\", {\n attrs: {\n screenPriceList: _vm.screenPriceList,\n featureScreenPricesList: _vm.featureScreenPricesList,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n ]),\n ]),\n ],\n 1\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: \"main-title-area\" }, [\n _c(\"div\", { staticClass: \"left\" }, [\n _c(\"span\", { staticClass: \"title\" }, [_vm._v(\"İşlem Tarihi\")]),\n ]),\n _c(\"div\", { staticClass: \"right\" }, [\n _c(\"span\", { staticClass: \"title\" }, [_vm._v(\"Değişiklik Bilgileri\")]),\n ]),\n ])\n },\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/CustomerDetail.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");
|
|
2458
|
+
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: \"customer-detail\" },\n [\n _c(\"customer-info\", {\n attrs: {\n customerNumber: _vm.customerId,\n currentCustomer: _vm.customer,\n getPaymentStatuses: _vm.getPaymentStatuses,\n },\n }),\n _c(\"div\", { staticClass: \"tab-layout\" }, [\n _c(\n \"div\",\n { staticClass: \"tabs custom-container\" },\n _vm._l(_vm.tabs, function (tab) {\n return _c(\n \"div\",\n {\n key: tab.id,\n class: _vm.tabClass(tab.id),\n attrs: { id: \"tab-\" + tab.id },\n on: {\n click: function ($event) {\n return _vm.changeTab(tab.id)\n },\n },\n },\n [_c(\"h6\", [_vm._v(_vm._s(tab.text))])]\n )\n }),\n 0\n ),\n _c(\"div\", { staticClass: \"tab-content\" }, [\n _vm.currentTab === 0\n ? _c(\"div\", { staticClass: \"data-types\" }, [\n _vm.cusId\n ? _c(\n \"div\",\n [\n _c(\"fund-commission-rate\", {\n attrs: { customerId: parseInt(_vm.cusId, 0) },\n }),\n ],\n 1\n )\n : _vm._e(),\n _c(\n \"div\",\n {\n staticClass: \"data-requests custom-container\",\n attrs: { id: \"dataRequest\" },\n },\n [\n _c(\"div\", { staticClass: \"data-requests-timer\" }, [\n _c(\n \"div\",\n { staticClass: \"info-row\" },\n [\n _c(\"info-area\", {\n attrs: {\n infoText:\n \"Lisans iptallerinin, içerisinde bulunulan ayın son gününe kadar gerçekleştirilmesi gerekmektedir. Tanımlı veri paketinizin iptal edilmemesi durumunda, mevcut paketiniz her ay başında tekrar güncellenecektir.\",\n typeWarning: true,\n },\n }),\n ],\n 1\n ),\n _vm.timerRunning\n ? _c(\"div\", { staticClass: \"timer-status\" }, [\n _c(\"span\", [\n _vm._v(\n _vm._s(_vm.countDown) +\n \" saniye içerisinde güncellenecektir.\"\n ),\n ]),\n ])\n : _vm._e(),\n ]),\n _vm.logsLoader\n ? _c(\"list-view-skeleton\", {\n attrs: { \"line-count\": 10 },\n })\n : _vm._l(_vm.allPackages.data, function (d) {\n return _c(\"data-request-item\", {\n key: d.id,\n attrs: {\n dataItem: Object.assign(\n {},\n {\n title:\n d.research.length && d.application == null\n ? d.research[0].name\n : d.application.name,\n subtitle: _vm.subtitleRules(d),\n imageUrl: d.imageUrl,\n },\n d\n ),\n },\n on: {\n checkIsPopupOpen: function ($event) {\n return _vm.timerChecker($event)\n },\n },\n })\n }),\n _vm.allPackages.page\n ? _c(\"Pager\", {\n attrs: {\n pageName: \"dataRequest\",\n page: _vm.allPackages.page,\n },\n })\n : _vm._e(),\n ],\n 2\n ),\n ])\n : _vm._e(),\n _vm.currentTab === 1\n ? _c(\n \"div\",\n { staticClass: \"invoice-area\", attrs: { id: \"invoice\" } },\n [\n _c(\n \"div\",\n { staticClass: \"top-area custom-container\" },\n [\n _c(\"InvoiceFilter\", {\n attrs: {\n currentYearNumber: String(this.currentYearNumber),\n currentMonthNumber: String(this.currentMonthNumber),\n },\n on: {\n filterChangeResponse:\n _vm.checkIsDataInvoiceFilterChangedAndLoaded,\n },\n }),\n ],\n 1\n ),\n _c(\n \"div\",\n { staticClass: \"table-area custom-container\" },\n [\n _vm._v(\n \" \" + _vm._s(_vm.getCustomerPaymentStatusId) + \" \"\n ),\n _vm.esube == \"yes\"\n ? _c(\"div\", { staticClass: \"warning-area\" }, [\n _vm.getCustomerPaymentStatusId == 1 &&\n !_vm.isCompleted &&\n _vm.invoiceList.data.length > 0\n ? _c(\n \"div\",\n { staticClass: \"warning-texts\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"warn-yellow\" },\n }),\n _c(\"span\", [\n _vm._v(\n \"Komisyon ya da BES/FON şartı sağlanmadığı için ekran ücreti tahsil edilmiştir.\"\n ),\n ]),\n ],\n 1\n )\n : _vm._e(),\n _vm.getCustomerPaymentStatusId == 1 &&\n _vm.isCompleted &&\n _vm.invoiceList.data.length > 0\n ? _c(\n \"div\",\n { staticClass: \"warning-texts\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"warn-yellow\" },\n }),\n _vm._v(\n \" Komisyon ya da BES/FON şartı sağlandığı için ekran ücreti tahsil edilmemiştir. \"\n ),\n ],\n 1\n )\n : _vm._e(),\n ])\n : _c(\"div\", { staticClass: \"warning-area\" }, [\n _vm.getCustomerPaymentStatusId == 2 &&\n _vm.isCompleted &&\n _vm.invoiceList.data.length > 0\n ? _c(\n \"div\",\n { staticClass: \"warning-texts\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"warn-yellow\" },\n }),\n _c(\"span\", [_vm._v(\"Masraf ödeme durumu\")]),\n _c(\"span\", [\n _vm._v(\"“Her zaman temsilci”\"),\n ]),\n _vm._v(\n \" olması sebepli ekran ücreti temsilcinize yansıtılmıştır. \"\n ),\n ],\n 1\n )\n : _vm._e(),\n _vm.getCustomerPaymentStatusId == 0 &&\n !_vm.isCompleted &&\n _vm.invoiceList.data.length > 0\n ? _c(\n \"div\",\n { staticClass: \"warning-texts\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"warn-yellow\" },\n }),\n _c(\"span\", [_vm._v(\"Komisyon\")]),\n _vm._v(\" ya da \"),\n _c(\"span\", [_vm._v(\"BES/FON\")]),\n _vm._v(\n \" şartı sağlanmadığı için ekran ücreti tahsil edilmiştir. \"\n ),\n ],\n 1\n )\n : _vm._e(),\n _vm.getCustomerPaymentStatusId == 1 &&\n _vm.isCompleted &&\n _vm.invoiceList.data.length > 0\n ? _c(\n \"div\",\n { staticClass: \"warning-texts\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"warn-yellow\" },\n }),\n _c(\"span\", [\n _vm._v(\"Masraf Ödeme durumunuz\"),\n ]),\n _c(\"span\", [_vm._v(\"“Her zaman müşteri”\")]),\n _vm._v(\n \" olması sebepli ekran ücreti tarafınıza yansıtılmıştır. \"\n ),\n ],\n 1\n )\n : _vm._e(),\n _vm.getCustomerPaymentStatusId == 0 &&\n _vm.isCompleted &&\n _vm.invoiceList.data.length > 0\n ? _c(\n \"div\",\n { staticClass: \"warning-texts\" },\n [\n _c(\"base-icon\", {\n staticClass: \"icon\",\n attrs: { name: \"warn-yellow\" },\n }),\n _c(\"span\", [_vm._v(\"Komisyon\")]),\n _vm._v(\" ya da \"),\n _c(\"span\", [_vm._v(\"BES/FON\")]),\n _vm._v(\n \" şartı sağlandığı için ekran ücreti tahsil edilmemiştir. \"\n ),\n ],\n 1\n )\n : _vm._e(),\n ]),\n !_vm.isDataInvoiceLoaded\n ? _c(\"base-icon\", {\n staticClass: \"loader-icon\",\n attrs: { name: \"loader\" },\n })\n : _vm._l(_vm.invoiceList.data, function (d) {\n return _c(\"data-invoice-item\", {\n key: d.id,\n attrs: {\n dataItem: Object.assign(\n {},\n {\n title:\n d.productName != null\n ? d.productName\n : d.research[0].name,\n subtitle: _vm.subtitleRulesInvoice(d),\n imageUrl: d.imageUrl,\n },\n d\n ),\n },\n })\n }),\n _vm.invoiceList.page\n ? _c(\"Pager\", {\n attrs: {\n pageName: \"invoice\",\n page: _vm.invoiceList.page,\n },\n })\n : _vm._e(),\n ],\n 2\n ),\n ]\n )\n : _vm._e(),\n _vm.currentTab === 2\n ? _c(\n \"div\",\n {\n staticClass: \"history-area custom-container\",\n attrs: { id: \"history\" },\n },\n [\n _c(\n \"div\",\n { staticClass: \"top-area\" },\n [_c(\"h3\", [_vm._v(\"Değişiklikler\")]), _c(\"history-filter\")],\n 1\n ),\n _c(\"div\", { staticClass: \"history-table-container\" }, [\n _c(\"div\", { staticClass: \"history-table\" }, [\n _c(\n \"div\",\n { staticClass: \"table-area\" },\n [\n _vm._m(0),\n _vm._l(_vm.historyList.data, function (d) {\n return _c(\"data-history-item\", {\n key: d.id,\n attrs: { dataItem: d },\n })\n }),\n ],\n 2\n ),\n ]),\n ]),\n ]\n )\n : _vm._e(),\n _vm.currentTab === 3\n ? _c(\n \"div\",\n {\n staticClass: \"screen-prices custom-container\",\n attrs: { id: \"screen-prices\" },\n },\n [\n _c(\"screen-prices\", {\n attrs: {\n screenPriceList: _vm.screenPriceList,\n featureScreenPricesList: _vm.featureScreenPricesList,\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n ]),\n ]),\n ],\n 1\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: \"main-title-area\" }, [\n _c(\"div\", { staticClass: \"left\" }, [\n _c(\"span\", { staticClass: \"title\" }, [_vm._v(\"İşlem Tarihi\")]),\n ]),\n _c(\"div\", { staticClass: \"right\" }, [\n _c(\"span\", { staticClass: \"title\" }, [_vm._v(\"Değişiklik Bilgileri\")]),\n ]),\n ])\n },\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://OsmanliPackage/./src/views/CustomerDetail.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");
|
|
2459
2459
|
|
|
2460
2460
|
/***/ }),
|
|
2461
2461
|
|