{"version":3,"sources":["webpack:///./src/modules/commercial-offers/views/CommercialOfferDetail.vue?92f7","webpack:///./src/modules/commercial-offers/views/CommercialOfferDetail.vue?e522","webpack:///./src/modules/commercial-offers/views/CommercialOfferDetail.vue?6dcd","webpack:///./node_modules/cache-loader/dist/cjs.js","webpack:///./src/modules/commercial-offers/views/CommercialOfferDetail.vue?0f9c","webpack:///./src/modules/commercial-offers/views/CommercialOfferDetail.vue"],"names":["module","exports","render","_vm","this","_h","$createElement","_c","_self","attrs","go_to_offers","scopedSlots","_u","key","fn","_v","proxy","_s","current_offer","number","staticClass","$style","commentTooltip","has_template","ref","on","_g","_b","download_offer","print_offer","edit_handler","delete_handler","class","card","delivery","deliveryGrid","deliveryRow","_f","created_at","products_count","amount_with_discount","client_name","client_contact_full_name","client_contact_phone","client_contact_email","cols","users","products_cols","products","index","item","price","amount","discount","_e","$event","delete_offer_modal","dialogTitle","delete_offer","model","value","callback","$$v","expression","is_download","export_offer_dialog","export_offer","staticRenderFns","state","commercial_offers_store","actions","mutations","CommercialOfferDetail","text","width","sortable","align","get_commercial_offer_by_id","$route","params","id","CLEAR_NEW_OFFER","limit","get_pagination_limit","ColsStorage","COMMERCIAL_OFFERS_TEMPLATES","UPD_PAGINATION_FIELD","name","CommercialOffers","Pages","COMMERCIAL_OFFERS","$router","push","EDIT_OFFER","delete_commercial_offer","code","ResponseStatuses","Success","UPDATED","get_offers_templates","payload","templates","download_offers","data","CREATED","download_file","items","path","window","open","Vue","__decorate","Watch","Component","components","PageTitle","Table","BackBtn","SimpleDialog","ExportOfferDialog","injectStyles","context","locals","component","VBtn","VCard","VIcon","VTooltip"],"mappings":"yGAAA,oE,qBCCAA,EAAOC,QAAU,CAAC,gBAAgB,4CAA4C,UAAU,sCAAsC,UAAU,sCAAsC,KAAO,mCAAmC,YAAc,0CAA0C,SAAW,uCAAuC,aAAe,2CAA2C,YAAc,0CAA0C,aAAe,2CAA2C,YAAc,0CAA0C,eAAiB,+C,yCCDvjB,IAAIC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EC,GAAI5E,KAAK0E,OAAOC,OAAOC,QAnHC,4BAwHxC,WACE5E,KAAKoD,oBAAqB,IAzHY,mFA4HxC,oHACqBc,EAAQwB,wBAAwB1F,KAAK0E,OAAOC,OAAOC,IADxE,OACQe,EADR,OAGMA,IAASC,QAAiBC,QAAQC,SACpC9F,KAAKuF,QAAQC,KAAK,CAAEL,KAAMC,sBAAiBC,MAAMC,oBAJrD,gDA5HwC,qFAoIxC,WACEtF,KAAK4D,aAAc,EACnBM,EAAQ6B,qBAAqB,QAC7B/F,KAAK6D,qBAAsB,IAvIW,yBA0IxC,WACEK,EAAQ6B,qBAAqB,QAC7B/F,KAAK6D,qBAAsB,IA5IW,mFA+IxC,WAAmBL,GAAnB,gGAIQwC,EAAwD,CAC5DpB,GAAI5E,KAAK0E,OAAOC,OAAOC,GACvBqB,UAAW,CAACzC,EAAMyC,YANtB,SASqB/B,EAAQgC,gBAAgBF,GAT7C,OASQG,EATR,OAWMA,EAAKR,OAASC,QAAiBC,QAAQO,UACrC5C,EAAMI,YACRyC,eAAcF,EAAKA,KAAKG,MAAM,GAAGC,MAEjCC,OAAOC,KAAKN,EAAKA,KAAKG,MAAM,GAAGC,KAAM,UAEvCvG,KAAK6D,qBAAsB,GAjB/B,gDA/IwC,+DAAS6C,QAYjDC,gBADCC,eAAM,wBACP,2CAZmBxC,EAAqB,gBATzCyC,eAAU,CACTC,WAAY,CACVC,iBACAC,aACAC,eACAC,aAAc,kBAAM,6CACpBC,kBAAmB,kBAAM,8CAGR/C,WC7N+Z,I,6FCQpb,SAASgD,EAAcC,GAErBrH,KAAK,UAAa,aAAOsH,QAAU,aAMrC,IAAIC,EAAY,eACd,EACAzH,EACAiE,GACA,EACAqD,EACA,KACA,MAIa,aAAAG,EAAiB,QAQhC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,QAAA,KAAMC,QAAA,KAAMC,WAAA","file":"js/home296.35826ca2.js","sourcesContent":["export { default } from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-0-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-0-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-0-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-0-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CommercialOfferDetail.vue?vue&type=style&index=0&module=true&lang=scss&\"; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-0-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-0-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-0-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-0-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CommercialOfferDetail.vue?vue&type=style&index=0&module=true&lang=scss&\"","// extracted by mini-css-extract-plugin\nmodule.exports = {\"v-application\":\"CommercialOfferDetail_v-application_2NiFC\",\"text-h1\":\"CommercialOfferDetail_text-h1_3LExD\",\"text-h2\":\"CommercialOfferDetail_text-h2_2mpcV\",\"card\":\"CommercialOfferDetail_card_PsKRq\",\"dialogTitle\":\"CommercialOfferDetail_dialogTitle_3hoWc\",\"delivery\":\"CommercialOfferDetail_delivery_2vEC0\",\"deliveryItem\":\"CommercialOfferDetail_deliveryItem_mz_pz\",\"deliveryTop\":\"CommercialOfferDetail_deliveryTop_dQpuN\",\"deliveryGrid\":\"CommercialOfferDetail_deliveryGrid_2l5MA\",\"deliveryRow\":\"CommercialOfferDetail_deliveryRow_4cTwn\",\"commentTooltip\":\"CommercialOfferDetail_commentTooltip_1JVVz\"};","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('BackBtn',{attrs:{\"go_to\":_vm.go_to_offers},scopedSlots:_vm._u([{key:\"btn-text\",fn:function(){return [_vm._v(\" Назад \")]},proxy:true}])}),_c('PageTitle',{attrs:{\"hide_btns\":\"\"},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(\" Коммерческое предложение № \"+_vm._s(_vm.current_offer.number)+\" \")]},proxy:true}])}),_c('div',{staticClass:\"d-flex justify-space-between align-center mb-6\"},[_c('v-tooltip',{attrs:{\"color\":\"primary darken-3\",\"right\":\"\",\"open-delay\":300,\"content-class\":_vm.$style.commentTooltip,\"disabled\":_vm.has_template},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-btn',{attrs:{\"text\":\"\",\"color\":\"accent darken-4\",\"disabled\":!_vm.has_template},on:{\"click\":_vm.download_offer}},[_c('v-icon',{staticClass:\"mr-2\"},[_vm._v(\"mdi-tray-arrow-down\")]),_vm._v(\" Скачать \")],1),_c('v-btn',{attrs:{\"text\":\"\",\"color\":\"accent darken-4\",\"disabled\":!_vm.has_template},on:{\"click\":_vm.print_offer}},[_c('v-icon',{staticClass:\"mr-2\"},[_vm._v(\"mdi-printer-outline\")]),_vm._v(\" Печать \")],1)],1)]}}])},[_c('span',[_vm._v(\"Для формирования КП необходимо создать шаблон. Перейдите во вкладку \\\"Шаблоны КП\\\" для его создания.\")])]),_c('div',[_c('v-btn',{attrs:{\"text\":\"\",\"color\":\"primary darken-4\"},on:{\"click\":_vm.edit_handler}},[_c('v-icon',{staticClass:\"mr-2\"},[_vm._v(\"mdi-pencil-outline\")]),_vm._v(\" Редактировать \")],1),_c('v-btn',{attrs:{\"text\":\"\",\"color\":\"primary darken-4\"},on:{\"click\":_vm.delete_handler}},[_c('v-icon',{staticClass:\"mr-2\"},[_vm._v(\"mdi-delete-outline\")]),_vm._v(\" Удалить \")],1)],1)],1),_c('v-card',{class:_vm.$style.card},[_c('div',{staticClass:\"text-h4 mb-6\"},[_vm._v(\"Основная информация\")]),_c('div',{class:_vm.$style.delivery},[_c('div',{staticClass:\"mb-6\"},[_c('div',{class:_vm.$style.deliveryGrid},[_c('div',{class:_vm.$style.deliveryRow},[_c('div',[_vm._v(\"№ КП\")]),_c('div',[_vm._v(_vm._s(_vm.current_offer.number))])]),_c('div',{class:_vm.$style.deliveryRow},[_c('div',[_vm._v(\"Дата формирования КП\")]),_c('div',[_vm._v(_vm._s(_vm._f(\"date\")(_vm.current_offer.created_at)))])]),_c('div',{class:_vm.$style.deliveryRow},[_c('div',[_vm._v(\"Количество товаров\")]),_c('div',[_vm._v(_vm._s(_vm.current_offer.products_count))])]),_c('div',{class:_vm.$style.deliveryRow},[_c('div',[_vm._v(\"Итоговая стоимость\")]),_c('div',[_vm._v(_vm._s(_vm._f(\"currency_rub\")(_vm.current_offer.amount_with_discount)))])]),_c('div',{class:_vm.$style.deliveryRow},[_c('div',[_vm._v(\"Клиент\")]),_c('div',[_vm._v(_vm._s(_vm.current_offer.client_name))])]),_c('div',{class:_vm.$style.deliveryRow},[_c('div',[_vm._v(\"ФИО конт. лица\")]),_c('div',[_vm._v(_vm._s(_vm.current_offer.client_contact_full_name))])]),_c('div',{class:_vm.$style.deliveryRow},[_c('div',[_vm._v(\"Телефон конт. лица\")]),_c('div',[_vm._v(_vm._s(_vm.current_offer.client_contact_phone))])]),_c('div',{class:_vm.$style.deliveryRow},[_c('div',[_vm._v(\"E-mail конт. лица\")]),_c('div',[_vm._v(_vm._s(_vm.current_offer.client_contact_email))])])])])]),_c('div',{staticClass:\"text-h4 mb-6\"},[_vm._v(\"Контакты менеджеров\")]),_c('Table',{staticClass:\"mb-6\",attrs:{\"headers\":_vm.cols,\"items\":_vm.current_offer.users,\"not_resizeble\":\"\"}}),_c('div',{staticClass:\"text-h4 mb-6\"},[_vm._v(\"Список товаров\")]),_c('Table',{attrs:{\"headers\":_vm.products_cols,\"items\":_vm.current_offer.products,\"not_resizeble\":\"\"},scopedSlots:_vm._u([{key:\"item.index\",fn:function(ref){\nvar index = ref.index;\nreturn [_c('td',[_vm._v(\" \"+_vm._s(index + 1)+\" \")])]}},{key:\"item.price\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',[_vm._v(\" \"+_vm._s(_vm._f(\"currency_rub\")(item.price))+\" \")])]}},{key:\"item.amount\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',[_vm._v(\" \"+_vm._s(_vm._f(\"currency_rub\")(item.amount))+\" \")])]}},{key:\"item.amount_with_discount\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',[_vm._v(\" \"+_vm._s(_vm._f(\"currency_rub\")(item.amount_with_discount))+\" \")])]}},{key:\"item.unit\",fn:function(){return [_c('td',[_c('span',[_vm._v(\"шт.\")])])]},proxy:true},{key:\"item.discount\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',[(item.discount > 0)?_c('span',[_vm._v(_vm._s(item.discount)+\" %\")]):_vm._e()])]}}],null,true)})],1),_c('SimpleDialog',{attrs:{\"max-width\":\"564\",\"bts_align\":\"center\"},on:{\"close\":function($event){_vm.delete_offer_modal = false}},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_c('div',{class:_vm.$style.dialogTitle},[_vm._v(\" Удаление коммерческого предложения \")])]},proxy:true},{key:\"text\",fn:function(){return [_c('span',{staticClass:\"d-flex justify-center\"},[_vm._v(\"Вы действительно хотите удалить коммерческое предложение?\")])]},proxy:true},{key:\"actions\",fn:function(){return [_c('td',{staticClass:\"py-2\"},[_c('v-btn',{staticClass:\"mr-2\",attrs:{\"color\":\"accent darken-4\",\"depressed\":\"\"},on:{\"click\":_vm.delete_offer}},[_vm._v(\" Удалить \")]),_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":function($event){_vm.delete_offer_modal = false}}},[_vm._v(\" Отменить \")])],1)]},proxy:true}]),model:{value:(_vm.delete_offer_modal),callback:function ($$v) {_vm.delete_offer_modal=$$v},expression:\"delete_offer_modal\"}}),_c('ExportOfferDialog',{attrs:{\"is_download\":_vm.is_download},on:{\"close\":function($event){_vm.export_offer_dialog = false},\"export_offer\":_vm.export_offer},model:{value:(_vm.export_offer_dialog),callback:function ($$v) {_vm.export_offer_dialog=$$v},expression:\"export_offer_dialog\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Watch } from 'vue-property-decorator';\nimport { PageTitle, Table, BackBtn } from '@/components';\nimport { TableCol } from '@/types';\nimport { commercial_offers_store } from '@/store';\nimport { ResponseStatuses, ColsStorage } from '@/enums';\nimport { get_pagination_limit, download_file } from '@/utils';\nimport { CommercialOffers, DownloadOffers } from '../types';\n\nconst { state, actions, mutations } = commercial_offers_store;\n\n@Component({\n components: {\n PageTitle,\n Table,\n BackBtn,\n SimpleDialog: () => import('@/components/dialogs/simple/SimpleDialog.vue'),\n ExportOfferDialog: () => import('../components/formed-offers/ExportOfferDialog.vue'),\n },\n})\nexport default class CommercialOfferDetail extends Vue {\n mounted() {\n actions.get_commercial_offer_by_id(this.$route.params.id);\n }\n\n destroyed() {\n mutations.CLEAR_NEW_OFFER();\n }\n\n export_offer_dialog = false;\n\n @Watch('export_offer_dialog')\n update_pagintion_limit() {\n const limit = get_pagination_limit(ColsStorage.COMMERCIAL_OFFERS_TEMPLATES);\n\n if (!this.export_offer_dialog) {\n mutations.UPD_PAGINATION_FIELD({ key: 'limit', value: limit });\n\n this.is_download = false;\n }\n }\n\n cols: TableCol[] = [\n {\n text: 'Менеджер',\n value: 'full_name',\n width: '250px',\n sortable: false,\n },\n {\n text: 'Телефон',\n value: 'phone',\n width: '250px',\n sortable: false,\n },\n {\n text: 'e-mail',\n value: 'email',\n width: '250px',\n sortable: false,\n },\n {\n text: 'Должность',\n value: 'job_title',\n width: '250px',\n sortable: false,\n },\n ];\n\n products_cols: TableCol[] = [\n {\n text: '№',\n value: 'index',\n sortable: false,\n },\n {\n text: 'Название',\n value: 'nomenclature',\n sortable: false,\n },\n {\n text: 'Описание',\n value: 'description',\n sortable: false,\n },\n {\n text: 'Кол-во',\n value: 'quantity',\n sortable: false,\n },\n {\n text: 'ЕД. изм.',\n value: 'unit',\n sortable: false,\n },\n {\n text: 'Цена',\n value: 'client_price',\n align: 'start',\n sortable: false,\n },\n {\n text: 'Стоимость',\n value: 'amount',\n align: 'start',\n sortable: false,\n },\n {\n text: '% скидки',\n value: 'discount',\n align: 'start',\n sortable: false,\n },\n ];\n\n delete_offer_modal = false;\n\n is_download = false;\n\n get current_offer() {\n return state.current_offer;\n }\n\n get go_to_offers() {\n return { name: CommercialOffers.Pages.COMMERCIAL_OFFERS };\n }\n\n get has_template() {\n return state.current_offer.has_template;\n }\n\n edit_handler() {\n if (this.$route.params.id) {\n this.$router.push({\n name: CommercialOffers.Pages.EDIT_OFFER,\n params: { id: this.$route.params.id },\n });\n }\n }\n\n delete_handler() {\n this.delete_offer_modal = true;\n }\n\n async delete_offer() {\n const code = await actions.delete_commercial_offer(this.$route.params.id);\n\n if (code === ResponseStatuses.Success.UPDATED) {\n this.$router.push({ name: CommercialOffers.Pages.COMMERCIAL_OFFERS });\n }\n }\n\n download_offer() {\n this.is_download = true;\n actions.get_offers_templates(999999);\n this.export_offer_dialog = true;\n }\n\n print_offer() {\n actions.get_offers_templates(999999);\n this.export_offer_dialog = true;\n }\n\n async export_offer(value: {\n templates: number;\n is_download: boolean;\n }) {\n const payload: { id: number | string; templates: number[] } = {\n id: this.$route.params.id,\n templates: [value.templates],\n };\n\n const data = await actions.download_offers(payload) as DownloadOffers;\n\n if (data.code === ResponseStatuses.Success.CREATED) {\n if (value.is_download) {\n download_file(data.data.items[0].path);\n } else {\n window.open(data.data.items[0].path, '_blank');\n }\n this.export_offer_dialog = false;\n }\n }\n}\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CommercialOfferDetail.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CommercialOfferDetail.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CommercialOfferDetail.vue?vue&type=template&id=e21b47b4&\"\nimport script from \"./CommercialOfferDetail.vue?vue&type=script&lang=ts&\"\nexport * from \"./CommercialOfferDetail.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CommercialOfferDetail.vue?vue&type=style&index=0&module=true&lang=scss&\"\n\n\n\n\nfunction injectStyles (context) {\n \n this[\"$style\"] = (style0.locals || style0)\n\n}\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n injectStyles,\n null,\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VTooltip } from 'vuetify/lib/components/VTooltip';\ninstallComponents(component, {VBtn,VCard,VIcon,VTooltip})\n"],"sourceRoot":""}