{"version":3,"sources":["webpack:///./node_modules/eslint-loader/index.js","webpack:///./node_modules/core-js/modules/es.number.parse-int.js","webpack:///./src/modules/projects/components/detail-page/ProjectProducts.vue?6e0e","webpack:///./node_modules/cache-loader/dist/cjs.js","webpack:///./src/modules/projects/components/detail-page/ProjectProducts.vue?b68d","webpack:///./src/modules/projects/components/detail-page/ProjectProducts.vue","webpack:///./src/modules/projects/components/detail-page/ProjectProducts.vue?1ab9","webpack:///./src/modules/projects/components/detail-page/ProjectProducts.vue?1d97","webpack:///./node_modules/core-js/internals/number-parse-int.js"],"names":["ServerPaginationMixin","rawValue","localStorage","getItem","localStorageKey","value","Number","parseInt","isNaN","setItem","toString","storageItemsPerPage","getStorageItemsPerPage","tableOptions","itemsPerPage","itemsPerPageExists","itemsPerPageOptions","getTableOptions","tableOptionsEqual","page","setStorageItemsPerPage","setTableOptions","fetchItems","a","b","sortBy","sortDesc","mustSort","multiSort","groupBy","groupDesc","serverPaginationLoading","footerItemsPerPageOptions","push","sort","includes","getLoading","Vue","Component","$","target","stat","forced","months_local","1","2","3","4","5","6","7","8","9","10","11","12","render","_vm","this","_h","$createElement","_c","_self","class","$style","card","staticClass","attrs","cols_default","cols_storage_name","on","$event","_l","header","idx","key","updated_cols","items","footerProps","serverItemsLength","scopedSlots","_u","fn","ref","item","textWrap","_v","_s","nomenclature","_f","price_rub","client_price","desired_price","agreed_price","date_agreed_price","history","length","show_history_price_modal","close_history_price_modal","proxy","history_cols","product_history","model","callback","$$v","show_history_modal","expression","staticRenderFns","projects_store","modules","detail_pages","state","actions","mutations","ProjectProducts","ColsStorage","PROJECT_DETAIL_PRODUCTS_COLS","text","sortable","width","cols","PaginationItemsPerPage","PROJECT_PRODUCTS","products_loading","id","$route","params","get_products_by_id","table_options","SET_TABLE_OPTIONS","storageCols","JSON","parse","restoreItemsPerPage","saved_cols","filteredCols","stringify","products","global_store","is_clear_locale_storage","pagination_props","total_items","Mixins","__decorate","Watch","components","Table","ResizeCols","ClearLocalStorage","SimpleDialog","injectStyles","context","locals","component","VBtn","VCard","module","exports","global","fails","uncurryThis","trim","whitespaces","$parseInt","Symbol","ITERATOR","iterator","hex","exec","FORCED","Object","string","radix","S"],"mappings":"sVAKqBA,EAAqB,wLAOxC,WACE,IAAMC,EAAWC,aAAaC,QAAQ,KAAKC,iBACrCC,EAAQJ,EAAWK,OAAOC,SAASN,EAAU,IAAM,KAEzD,OAAOI,IAAUC,OAAOE,MAAMH,GAASA,EAAQ,OAXT,oCAcxC,SAAuBA,GACrBH,aAAaO,QAAQ,KAAKL,gBAAiBC,EAAMK,cAfX,iCAkBxC,WACE,IAAMC,EAAsB,KAAKC,yBAEjC,KAAKC,aAAaC,aAAeH,GAAuB,KAAKI,mBAAmBJ,GAC5EA,EACAK,OAAoB,KAvBc,wBA0BxC,WACE,OAAO,KAAKC,mBA3B0B,IA8BxC,SAAiBZ,GAGV,KAAKa,kBAAkBb,EAAO,KAAKQ,gBAClC,KAAKA,aAAaC,eAAiBT,EAAMS,eAC3CT,EAAMc,KAAO,EACb,KAAKC,uBAAuBf,EAAMS,eAEpC,KAAKO,gBAAgBhB,GACrB,KAAKiB,gBAvC+B,4BA2CxC,WACE,KAAKT,aAAaM,KAAO,EACzB,KAAKG,eA7CiC,+BAgDxC,SAAkBC,EAAiBC,GACjC,OAAOD,EAAEJ,OAASK,EAAEL,MACfI,EAAET,eAAiBU,EAAEV,cACrBS,EAAEE,SAAWD,EAAEC,QACfF,EAAEG,WAAaF,EAAEE,UACjBH,EAAEI,WAAaH,EAAEG,UACjBJ,EAAEK,YAAcJ,EAAEI,WAClBL,EAAEM,UAAYL,EAAEK,SAChBN,EAAEO,YAAcN,EAAEM,YAxDe,uBA2DxC,WACE,MAAO,CACL,qBAAsB,KAAKC,wBAC3B,yBAA0B,KAAKA,wBAC/Bf,oBAAqB,KAAKgB,6BA/DU,qCAmExC,WACE,IAAM3B,EAAQ,eAAIW,QAMlB,OAJK,KAAKD,mBAAmB,KAAKF,aAAaC,gBAC7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rC,KAAK+C,oBAAqB,IA9JM,uCAiKlC,WACE/C,KAAK+C,oBAAqB,IAlKM,6BAgLlC,WACE,OAAOM,EAAM6B,iBAAiBC,gBAjLE,GAASC,eAAO9I,SAElD+I,gBADCC,eAAM,4BACP,4CAFmB9B,EAAe,gBARnC5E,eAAU,CACT2G,WAAY,CACVC,aACAC,WAAY,kBAAM,6CAClBC,kBAAmB,kBAAM,6CACzBC,aAAc,kBAAM,iDAGHnC,WCnI2a,I,qECQhc,SAASoC,EAAcC,GAErB7F,KAAK,UAAa,aAAO8F,QAAU,aAMrC,IAAIC,EAAY,eACd,EACAjG,EACAmD,GACA,EACA2C,EACA,KACA,MAIa,aAAAG,EAAiB,QAMhC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,QAAA,Q,kCCjCnC,oE,qBCCAC,EAAOC,QAAU,CAAC,gBAAgB,sCAAsC,UAAU,gCAAgC,UAAU,gCAAgC,KAAO,6BAA6B,SAAW,mC,qBCD3M,IAAIC,EAAS,EAAQ,QACjBC,EAAQ,EAAQ,QAChBC,EAAc,EAAQ,QACtBtJ,EAAW,EAAQ,QACnBuJ,EAAO,EAAQ,QAA4BA,KAC3CC,EAAc,EAAQ,QAEtBC,EAAYL,EAAOvJ,SACnB6J,EAASN,EAAOM,OAChBC,EAAWD,GAAUA,EAAOE,SAC5BC,EAAM,YACNC,EAAOR,EAAYO,EAAIC,MACvBC,EAA2C,IAAlCN,EAAUD,EAAc,OAAmD,KAApCC,EAAUD,EAAc,SAEtEG,IAAaN,GAAM,WAAcI,EAAUO,OAAOL,OAIxDT,EAAOC,QAAUY,EAAS,SAAkBE,EAAQC,GAClD,IAAIC,EAAIZ,EAAKvJ,EAASiK,IACtB,OAAOR,EAAUU,EAAID,IAAU,IAAOJ,EAAKD,EAAKM,GAAK,GAAK,MACxDV","file":"js/home1216.bfc9fa39.js","sourcesContent":["export const months_local: Record = {\n 1: 'Январь',\n 2: 'Февраль',\n 3: 'Март',\n 4: 'Апрель',\n 5: 'Май',\n 6: 'Июнь',\n 7: 'Июль',\n 8: 'Август',\n 9: 'Сентябрь',\n 10: 'Октябрь',\n 11: 'Ноябрь',\n 12: 'Декабрь',\n};\n\nexport const itemsPerPageOptions = [\n 10,\n 25,\n 50,\n 100,\n];\n","var $ = require('../internals/export');\nvar parseInt = require('../internals/number-parse-int');\n\n// `Number.parseInt` method\n// https://tc39.es/ecma262/#sec-number.parseint\n// eslint-disable-next-line es/no-number-parseint -- required for testing\n$({ target: 'Number', stat: true, forced: Number.parseInt != parseInt }, {\n parseInt: parseInt\n});\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-card',{class:_vm.$style.card},[_c('div',{staticClass:\"d-flex mb-4\"},[_c('ClearLocalStorage',{attrs:{\"default_cols\":_vm.cols_default,\"storage_name\":_vm.cols_storage_name,\"cols_list\":_vm.cols_default},on:{\"update:cols_list\":function($event){_vm.cols_default=$event}}})],1),_vm._l((_vm.updated_cols),function(header,idx){return _c('ResizeCols',{key:idx,attrs:{\"header\":header,\"storage_name\":_vm.cols_storage_name}})}),_c('Table',{attrs:{\"headers\":_vm.updated_cols,\"items\":_vm.items,\"no-data-text\":\"Продукты, удовлетворяющие выбранным параметрам, отсутствуют\",\"loading\":_vm.serverPaginationLoading,\"options\":_vm.tableOptions,\"footerProps\":_vm.footerProps,\"server-items-length\":_vm.serverItemsLength,\"disable-sort\":_vm.serverPaginationLoading},on:{\"update:options\":function($event){_vm.tableOptions=$event}},scopedSlots:_vm._u([{key:\"item.nomenclature\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{staticClass:\"py-2\",class:_vm.$style.textWrap},[_vm._v(\" \"+_vm._s(item.nomenclature)+\" \")])]}},{key:\"item.price_rub\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{staticClass:\"py-2\"},[_vm._v(\" \"+_vm._s(_vm._f(\"currency_rub\")(item.price_rub))+\" \")])]}},{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.desired_price\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{staticClass:\"py-2\"},[_vm._v(\" \"+_vm._s(_vm._f(\"currency_rub\")(item.desired_price))+\" \")])]}},{key:\"item.agreed_price\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{staticClass:\"py-2\"},[_vm._v(\" \"+_vm._s(_vm._f(\"currency_rub\")(item.agreed_price))+\" \")])]}},{key:\"item.date_agreed_price\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{staticClass:\"py-2\"},[_vm._v(\" \"+_vm._s(_vm._f(\"date\")(item.date_agreed_price))+\" \")])]}},{key:\"item.action\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{staticClass:\"py-2\"},[_c('tr',[_c('v-btn',{attrs:{\"text\":\"\",\"outlined\":\"\",\"disabled\":!item.history.length,\"title\":\"Удалить\"},on:{\"click\":function($event){return _vm.show_history_price_modal(item)}}},[_vm._v(\" История изменения \")])],1)])]}}],null,true)})],2),_c('SimpleDialog',{attrs:{\"max-width\":\"1100\"},on:{\"close\":_vm.close_history_price_modal},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(\" История изменения \")]},proxy:true},{key:\"text\",fn:function(){return [_c('Table',{attrs:{\"headers\":_vm.history_cols,\"items\":_vm.product_history,\"hide-default-footer\":\"\",\"not_resizeble\":true},scopedSlots:_vm._u([{key:\"item.agreed_price\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{staticClass:\"py-2\"},[_vm._v(\" \"+_vm._s(_vm._f(\"currency_rub\")(item.agreed_price))+\" \")])]}},{key:\"item.date_agreed_price\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{staticClass:\"py-2\"},[_vm._v(\" \"+_vm._s(_vm._f(\"date\")(item.date_agreed_price))+\" \")])]}}],null,true)})]},proxy:true},{key:\"actions\",fn:function(){return [_c('v-btn',{staticClass:\"d-none\"})]},proxy:true}]),model:{value:(_vm.show_history_modal),callback:function ($$v) {_vm.show_history_modal=$$v},expression:\"show_history_modal\"}})],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\nimport { Component, Mixins, Watch } from 'vue-property-decorator';\nimport { Table } from '@/components';\nimport { TableCol } from '@/types';\nimport { ColsStorage, PaginationItemsPerPage } from '@/enums';\nimport { projects_store, global_store } from '@/store';\nimport ServerPaginationMixin from '@/mixins/ServerPaginationMixin';\nimport { Projects } from '../../types';\n\nconst { state, actions, mutations } = projects_store.modules.detail_pages;\n\n@Component({\n components: {\n Table,\n ResizeCols: () => import('@/components/resize-cols/ResizeCols.vue'),\n ClearLocalStorage: () => import('@/components/clear-local-storage/ClearLocalStorage.vue'),\n SimpleDialog: () => import('@/components/dialogs/simple/SimpleDialog.vue'),\n },\n})\nexport default class ProjectProducts extends Mixins(ServerPaginationMixin) {\n @Watch('is_clear_locale_storage')\n on_clear_storage_change(value: boolean) {\n if (value) {\n const storageCols = localStorage.getItem(this.cols_storage_name);\n\n if (storageCols) {\n this.updated_cols = JSON.parse(storageCols);\n }\n }\n }\n\n async mounted() {\n this.restoreItemsPerPage();\n await this.fetchItems();\n\n const saved_cols = localStorage.getItem(this.cols_storage_name);\n\n if (saved_cols) {\n this.updated_cols = JSON.parse(saved_cols as string);\n } else {\n const filteredCols = this.cols;\n\n localStorage.setItem(this.cols_storage_name, JSON.stringify(filteredCols));\n\n this.updated_cols = filteredCols;\n }\n }\n\n show_history_modal = false;\n\n cols_storage_name = ColsStorage.PROJECT_DETAIL_PRODUCTS_COLS;\n\n history_cols: TableCol[] = [\n {\n text: 'Код товара',\n value: 'product_code',\n sortable: false,\n width: '100px',\n },\n {\n text: 'Согласованная цена',\n value: 'agreed_price',\n sortable: false,\n width: '100px',\n },\n {\n text: 'Дата обновления цены',\n value: 'date_agreed_price',\n sortable: false,\n width: '150px',\n },\n {\n text: 'Согласованное количество',\n value: 'agreed_quantity',\n sortable: false,\n width: '100px',\n },\n {\n text: 'Заказано',\n value: 'shipped_quantity',\n sortable: false,\n width: '100px',\n },\n ]\n\n cols: TableCol[] = [\n {\n text: 'Код товара',\n value: 'product_code',\n sortable: true,\n width: '250px',\n },\n {\n text: 'Номенклатура',\n value: 'nomenclature',\n sortable: true,\n width: '250px',\n },\n {\n text: 'Цена из каталога',\n value: 'price_rub',\n sortable: true,\n width: '250px',\n },\n {\n text: 'Цена для клиента',\n value: 'client_price',\n sortable: true,\n width: '250px',\n },\n {\n text: 'Запрашиваемая цена',\n value: 'desired_price',\n sortable: true,\n width: '250px',\n },\n {\n text: 'Согласованная цена',\n value: 'agreed_price',\n sortable: true,\n width: '250px',\n },\n {\n text: 'Дата обновления цены',\n value: 'date_agreed_price',\n sortable: false,\n width: '250px',\n },\n {\n text: 'Количество',\n value: 'quantity',\n sortable: false,\n width: '250px',\n },\n {\n text: 'Согласованное количество',\n value: 'agreed_quantity',\n sortable: true,\n width: '250px',\n },\n {\n text: 'Заказано',\n value: 'shipped_quantity',\n sortable: false,\n width: '250px',\n },\n {\n text: 'Количество доступных для оформления',\n value: 'available_quantity',\n sortable: false,\n width: '250px',\n },\n {\n text: 'Действие',\n value: 'action',\n sortable: false,\n width: '350px',\n },\n ]\n\n cols_default: TableCol[] = [...this.cols];\n\n updated_cols: TableCol[] = []\n\n product_history: Projects.HistoryPrice[] = [];\n\n get items() {\n return state.products;\n }\n\n get is_clear_locale_storage() {\n return global_store.state.is_clear_locale_storage;\n }\n\n show_history_price_modal(item: Projects.Product) {\n this.product_history = item.history;\n\n this.show_history_modal = true;\n }\n\n close_history_price_modal() {\n this.show_history_modal = false;\n }\n\n localStorageKey = PaginationItemsPerPage.PROJECT_PRODUCTS\n getLoading = () => state.products_loading\n fetchItems = async () => {\n const { id } = this.$route.params;\n\n await actions.get_products_by_id(id);\n }\n\n getTableOptions = () => state.table_options\n setTableOptions = mutations.SET_TABLE_OPTIONS\n\n get serverItemsLength() {\n return state.pagination_props.total_items;\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!./ProjectProducts.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!./ProjectProducts.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ProjectProducts.vue?vue&type=template&id=27a9047c&\"\nimport script from \"./ProjectProducts.vue?vue&type=script&lang=ts&\"\nexport * from \"./ProjectProducts.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ProjectProducts.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';\ninstallComponents(component, {VBtn,VCard})\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!./ProjectProducts.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!./ProjectProducts.vue?vue&type=style&index=0&module=true&lang=scss&\"","// extracted by mini-css-extract-plugin\nmodule.exports = {\"v-application\":\"ProjectProducts_v-application_3nwXp\",\"text-h1\":\"ProjectProducts_text-h1_1DcKW\",\"text-h2\":\"ProjectProducts_text-h2_30L9y\",\"card\":\"ProjectProducts_card_1HohC\",\"textWrap\":\"ProjectProducts_textWrap_Ij8TL\"};","var global = require('../internals/global');\nvar fails = require('../internals/fails');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar trim = require('../internals/string-trim').trim;\nvar whitespaces = require('../internals/whitespaces');\n\nvar $parseInt = global.parseInt;\nvar Symbol = global.Symbol;\nvar ITERATOR = Symbol && Symbol.iterator;\nvar hex = /^[+-]?0x/i;\nvar exec = uncurryThis(hex.exec);\nvar FORCED = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22\n // MS Edge 18- broken with boxed symbols\n || (ITERATOR && !fails(function () { $parseInt(Object(ITERATOR)); }));\n\n// `parseInt` method\n// https://tc39.es/ecma262/#sec-parseint-string-radix\nmodule.exports = FORCED ? function parseInt(string, radix) {\n var S = trim(toString(string));\n return $parseInt(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));\n} : $parseInt;\n"],"sourceRoot":""}