{"version":3,"sources":["webpack:///./src/modules/projects/components/new-project/CompetitorTable.vue?6546","webpack:///./src/modules/projects/components/new-project/CompetitorTable.vue?e741","webpack:///./node_modules/cache-loader/dist/cjs.js","webpack:///./src/modules/projects/components/new-project/CompetitorTable.vue?ad70","webpack:///./src/modules/projects/components/new-project/CompetitorTable.vue","webpack:///./src/modules/projects/components/new-project/CompetitorTable.vue?7f45"],"names":["module","exports","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_v","class","$style","itemsRow","item","model","value","callback","$$v","name","expression","product_name","quantity","client_price","itemW100","comment","is_valid","on","add_item","cols","competitors","scopedSlots","_u","key","fn","ref","_s","_f","$event","remove_item","staticRenderFns","state","projects_store","mutations","CompetitorTable","text","width","sortable","trim","new_competitor","ADD_COMPETITORS","item_to_remove","REMOVE_COMPETITOR","Vue","Component","components","Table","TextField","Textarea","injectStyles","context","locals","component","VBtn","VCol","VIcon","VRow"],"mappings":"+FACAA,EAAOC,QAAU,CAAC,gBAAgB,sCAAsC,UAAU,gCAAgC,UAAU,gCAAgC,SAAW,iCAAiC,WAAa,mCAAmC,KAAO,6BAA6B,KAAO,6BAA6B,kBAAoB,0CAA0C,eAAiB,uCAAuC,SAAW,iCAAiC,QAAU,kC,yCCD5e,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,QAAQ,CAACE,YAAY,QAAQ,CAACF,EAAG,QAAQ,CAACG,MAAM,CAAC,KAAO,KAAK,GAAK,KAAK,GAAK,MAAM,CAACH,EAAG,KAAK,CAACE,YAAY,gBAAgB,CAACN,EAAIQ,GAAG,wCAAwCJ,EAAG,MAAM,CAACK,MAAM,CAACT,EAAIU,OAAOC,WAAW,CAACP,EAAG,YAAY,CAACK,MAAMT,EAAIU,OAAOE,KAAKL,MAAM,CAAC,MAAQ,0BAA0B,MAAQ,IAAIM,MAAM,CAACC,MAAOd,EAAQ,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AEZ,CACEF,KAAM,wBACN7B,MAAO,eACP8B,MAAO,QACPC,UAAU,GAEZ,CACEF,KAAM,aACN7B,MAAO,WACP8B,MAAO,QACPC,UAAU,GAEZ,CACEF,KAAM,0BACN7B,MAAO,eACP8B,MAAO,QACPC,UAAU,GAEZ,CACEF,KAAM,cACN7B,MAAO,UACP8B,MAAO,QACPC,UAAU,GAEZ,CACEF,KAAM,WACN7B,MAAO,UACP8B,MAAO,QACPC,UAAU,IA1ChB,EAAoC,gDA8ClC,WACE,OAAON,EAAMX,cA/CmB,oBAkDlC,WACE,MACuB,KAArB3B,KAAKgB,KAAK6B,QACsB,KAA7B7C,KAAKkB,aAAa2B,QACA,OAAlB7C,KAAKmB,UACmB,KAAxBnB,KAAKsB,QAAQuB,QACgB,KAA7B7C,KAAKoB,aAAayB,SAxDS,sBA4DlC,WACE,IAAMC,EAAuC,CAC3C9B,KAAMhB,KAAKgB,KACXE,aAAclB,KAAKkB,aACnBC,SAAUnB,KAAKmB,SACfC,aAAcpB,KAAKoB,aACnBE,QAAStB,KAAKsB,SAGhBkB,EAAUO,gBAAgB,CAACD,IAE3B9C,KAAKgB,KAAO,GACZhB,KAAKkB,aAAe,GACpBlB,KAAKmB,SAAW,KAChBnB,KAAKoB,aAAe,GACpBpB,KAAKsB,QAAU,KA3EiB,yBA8ElC,SAAY0B,GACVR,EAAUS,kBAAkBD,OA/EI,GAASE,QAAxBT,EAAe,gBAPnCU,eAAU,CACTC,WAAY,CACVC,aACAC,iBACAC,oBAGiBd,WC1H2a,I,6FCQhc,SAASe,EAAcC,GAErBzD,KAAK,UAAa,aAAO0D,QAAU,aAMrC,IAAIC,EAAY,eACd,EACA7D,EACAuC,GACA,EACAmB,EACA,KACA,MAIa,aAAAG,EAAiB,QAQhC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,OAAA,KAAKC,QAAA,KAAMC,OAAA,Q,kCCnC9C","file":"js/home1196.2a7964a2.js","sourcesContent":["// extracted by mini-css-extract-plugin\nmodule.exports = {\"v-application\":\"CompetitorTable_v-application_ikPPz\",\"text-h1\":\"CompetitorTable_text-h1_1LjNm\",\"text-h2\":\"CompetitorTable_text-h2_3y_Bz\",\"itemsRow\":\"CompetitorTable_itemsRow_1eBXN\",\"itemsTitle\":\"CompetitorTable_itemsTitle_2l7YA\",\"item\":\"CompetitorTable_item_2uQ5F\",\"wide\":\"CompetitorTable_wide_shyE7\",\"itemThreePartsRow\":\"CompetitorTable_itemThreePartsRow_1FDKI\",\"itemThreeParts\":\"CompetitorTable_itemThreeParts_Mb_gb\",\"itemW100\":\"CompetitorTable_itemW100_21PhP\",\"comment\":\"CompetitorTable_comment_356JX\"};","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-row',{staticClass:\"mt-6\"},[_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"12\",\"lg\":\"8\"}},[_c('h3',{staticClass:\"text-h3 mb-6\"},[_vm._v(\"Информация о конкурентах в проекте\")]),_c('div',{class:[_vm.$style.itemsRow]},[_c('TextField',{class:_vm.$style.item,attrs:{\"label\":\"Наименование конкурента\",\"dense\":\"\"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:\"name\"}}),_c('TextField',{class:_vm.$style.item,attrs:{\"label\":\"Наименование продукта\",\"dense\":\"\"},model:{value:(_vm.product_name),callback:function ($$v) {_vm.product_name=$$v},expression:\"product_name\"}})],1),_c('div',{class:[_vm.$style.itemsRow]},[_c('TextField',{class:_vm.$style.item,attrs:{\"label\":\"Количество\",\"hide_btns\":\"\",\"type\":\"number\",\"min\":0,\"dense\":\"\"},model:{value:(_vm.quantity),callback:function ($$v) {_vm.quantity=$$v},expression:\"quantity\"}}),_c('TextField',{class:_vm.$style.item,attrs:{\"label\":\"Цена для клиента за ед.\",\"hide_btns\":\"\",\"type\":\"number\",\"min\":0,\"dense\":\"\"},model:{value:(_vm.client_price),callback:function ($$v) {_vm.client_price=$$v},expression:\"client_price\"}})],1),_c('div',{class:[_vm.$style.itemsRow]},[_c('Textarea',{class:[_vm.$style.item, _vm.$style.itemW100],attrs:{\"label\":\"Комментарий\",\"dense\":\"\",\"counter\":1000,\"maxlength\":1000,\"rows\":1},model:{value:(_vm.comment),callback:function ($$v) {_vm.comment=$$v},expression:\"comment\"}})],1),_c('div',{class:[_vm.$style.itemsRow]},[_c('v-btn',{attrs:{\"color\":\"accent darken-4\",\"depressed\":\"\",\"disabled\":!_vm.is_valid},on:{\"click\":_vm.add_item}},[_vm._v(\" Добавить \")])],1)]),_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('Table',{attrs:{\"headers\":_vm.cols,\"items\":_vm.competitors,\"not_resizeble\":true},scopedSlots:_vm._u([{key:\"item.client_price\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{staticClass:\"py-2\"},[_vm._v(\" \"+_vm._s(_vm._f(\"currency_rub\")(item.client_price))+\" \")])]}},{key:\"item.comment\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{staticClass:\"py-2 overflow-text\",class:_vm.$style.comment},[_vm._v(\" \"+_vm._s(item.comment)+\" \")])]}},{key:\"item.actions\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{staticClass:\"py-2\"},[_c('tr',[_c('v-btn',{attrs:{\"icon\":\"\",\"color\":\"secondary darken-4\",\"title\":\"Удалить\"},on:{\"click\":function($event){return _vm.remove_item(item)}}},[_c('v-icon',[_vm._v(\"mdi-delete-outline\")])],1)],1)])]}}],null,true)})],1)],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\nimport {\n Component, Vue,\n} from 'vue-property-decorator';\nimport { TableCol } from '@/types';\nimport { Table, TextField, Textarea } from '@/components';\nimport { projects_store } from '@/store';\nimport { Projects } from '../../types';\n\nconst { state, mutations } = projects_store;\n\n@Component({\n components: {\n Table,\n TextField,\n Textarea,\n },\n})\nexport default class CompetitorTable extends Vue {\n name = '';\n product_name = '';\n client_price = '';\n quantity = null;\n comment = '';\n\n cols: TableCol[] = [\n {\n text: 'Наименование конкурента',\n value: 'name',\n width: '200px',\n sortable: false,\n },\n {\n text: 'Наименование продукта',\n value: 'product_name',\n width: '200px',\n sortable: false,\n },\n {\n text: 'Количество',\n value: 'quantity',\n width: '100px',\n sortable: false,\n },\n {\n text: 'Цена для клиента за ед.',\n value: 'client_price',\n width: '100px',\n sortable: false,\n },\n {\n text: 'Комментарий',\n value: 'comment',\n width: '450px',\n sortable: false,\n },\n {\n text: 'Действие',\n value: 'actions',\n width: '100px',\n sortable: false,\n },\n ]\n\n get competitors() {\n return state.competitors;\n }\n\n get is_valid(): boolean {\n return (\n this.name.trim() !== ''\n && this.product_name.trim() !== ''\n && this.quantity !== null\n && this.comment.trim() !== ''\n && this.client_price.trim() !== ''\n );\n }\n\n add_item() {\n const new_competitor: Projects.Competitors = {\n name: this.name,\n product_name: this.product_name,\n quantity: this.quantity,\n client_price: this.client_price,\n comment: this.comment,\n };\n\n mutations.ADD_COMPETITORS([new_competitor]);\n\n this.name = '';\n this.product_name = '';\n this.quantity = null;\n this.client_price = '';\n this.comment = '';\n }\n\n remove_item(item_to_remove: Projects.Competitors) {\n mutations.REMOVE_COMPETITOR(item_to_remove);\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!./CompetitorTable.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!./CompetitorTable.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CompetitorTable.vue?vue&type=template&id=7165f378&\"\nimport script from \"./CompetitorTable.vue?vue&type=script&lang=ts&\"\nexport * from \"./CompetitorTable.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CompetitorTable.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 { VCol } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VCol,VIcon,VRow})\n","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!./CompetitorTable.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!./CompetitorTable.vue?vue&type=style&index=0&module=true&lang=scss&\""],"sourceRoot":""}