{"version":3,"sources":["webpack:///./node_modules/eslint-loader/index.js","webpack:///./src/modules/dispatches/components/ReturnList.vue?96f9","webpack:///./src/modules/dispatches/components/ReturnList.vue?9f89","webpack:///./node_modules/cache-loader/dist/cjs.js","webpack:///./src/modules/dispatches/components/ReturnList.vue?7d0a","webpack:///./src/modules/dispatches/components/ReturnList.vue","webpack:///./src/modules/dispatches/components/ReturnList.vue?533e"],"names":["months_local","itemsPerPageOptions","dispatches_list_cols","text","align","value","width","sortable","is_visible","disabled","get_dispatch_status","status","slug","DispatchStatuses","SENT_AND_SIGNED","ChipStatuses","SUCCESS","SENT_AND_NOT_SIGNED","LIGHTEN_2","REJECTED","ERROR","NOT_SENT","CANCELED","NEW","get_dispatch_return_status","DispatchReturnStatuses","ACCEPTED","SENT","REGISTERED","render","_vm","this","_h","$createElement","_c","_self","attrs","cols","items","footerProps","scopedSlots","_u","key","fn","ref","item","_v","_s","number","class","$style","nomenclatureText","nomenclature","return_type","name","return_reason","_f","return_date","return_status","_e","returned_at","staticClass","register_realization_corrective_id","toString","register_realization_corrective_number","register_realization_corrective_status","staticRenderFns","ReturnList","returns","map","index","Vue","__decorate","Prop","type","Array","default","Component","components","Table","ChipStatus","injectStyles","context","locals","component","VBtn","module","exports"],"mappings":"2JAAA,oEAAO,IAAMA,EAAuC,CAClD,EAAG,SACH,EAAG,UACH,EAAG,OACH,EAAG,SACH,EAAG,MACD,EAAC,OACD,EAAC,OACD,EAAC,SACD,EAAC,WACD,GAAE,UACF,GAAE,SACF,GAAE,WAGOC,EAAsB,CACjC,GACA,GACA,GACA,M,oCAlBF,uMAGaC,EAAsC,CACjD,CACEC,KAAM,GACNC,MAAO,QACPC,MAAO,SACPC,MAAO,OACPC,UAAU,EACVC,YAAY,EACZC,UAAU,GAEZ,CACEN,KAAM,IACNE,MAAO,KACPC,MAAO,OACPC,UAAU,EACVC,YAAY,GAEd,CACEL,KAAM,eACNE,MAAO,qBACPC,MAAO,QACPC,UAAU,EACVC,YAAY,GAE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ACVD,MAAO,SAET,CACEH,KAAM,kBACNE,MAAO,gBACPE,UAAU,EACVD,MAAO,SAET,CACEH,KAAM,6BACNE,MAAO,cACPE,UAAU,EACVD,MAAO,SAET,CACEH,KAAM,8BACNE,MAAO,yCACPE,UAAU,EACVD,MAAO,SAET,CACEH,KAAM,0BACNE,MAAO,yCACPE,UAAU,EACVD,MAAO,UAIX,EAAAI,oBAAsBA,yBACtB,EAAAc,2BAA6BA,gCA9E/B,EAA+B,0CAgF7B,WACE,OAAOO,KAAKqC,QAAQC,KAAI,SAACxB,EAAMyB,GAAP,uBAAoBtB,OAAQsB,EAAQ,GAAMzB,QAjFvC,uBAoF7B,WACE,MAAO,CACL5C,gCAtFyB,GAASsE,QAEtCC,gBADCC,eAAK,CAAEC,KAAMC,MAAOC,QAAS,iBAAM,OACpC,8BAFmBT,EAAU,gBAN9BU,eAAU,CACTC,WAAY,CACVC,aACAC,sBAGiBb,WCrFoZ,I,yDCQza,SAASc,EAAcC,GAErBnD,KAAK,UAAa,aAAOoD,QAAU,aAMrC,IAAIC,EAAY,eACd,EACAvD,EACAqC,GACA,EACAe,EACA,KACA,MAIa,aAAAG,EAAiB,QAKhC,IAAkBA,EAAW,CAACC,OAAA,Q,qBC/B9BC,EAAOC,QAAU,CAAC,gBAAgB,iCAAiC,UAAU,2BAA2B,UAAU,2BAA2B,iBAAmB,oCAAoC,iBAAmB","file":"js/home512.28037b49.js","sourcesContent":["import { SimpleEnumType, TableCol, OptionalCol } from '@/types';\nimport { DispatchStatuses, DispatchReturnStatuses } from '@/enums/statuses/dispatches';\nimport { ChipStatuses } from '@/enums';\n\nexport const dispatches_list_cols: OptionalCol[] = [\n {\n text: '',\n align: 'start',\n value: 'select',\n width: '67px',\n sortable: false,\n is_visible: false,\n disabled: true,\n },\n {\n text: '№',\n value: 'id',\n width: '50px',\n sortable: false,\n is_visible: false,\n },\n {\n text: '№ реализации',\n value: 'number_realization',\n width: '100px',\n sortable: true,\n is_visible: false,\n },\n {\n text: 'Дата',\n value: 'created_at',\n width: '100px',\n sortable: true,\n is_visible: false,\n },\n {\n text: 'Дата обновления',\n value: 'updated_at',\n width: '150px',\n is_visible: false,\n },\n {\n text: 'Организация',\n value: 'organization',\n width: '100px',\n sortable: true,\n is_visible: false,\n },\n {\n text: 'Договор',\n value: 'contract',\n width: '100px',\n sortable: true,\n is_visible: false,\n },\n {\n text: 'Сумма документа',\n value: 'amount_contract',\n width: '100px',\n sortable: true,\n is_visible: false,\n },\n {\n text: 'Статус согласования с ЭДО',\n value: 'status',\n width: '100px',\n sortable: false,\n is_visible: false,\n },\n];\n\nexport function get_dispatch_status(status: SimpleEnumType) {\n if (!status) {\n return '';\n }\n\n switch (status?.slug) {\n case DispatchStatuses.SENT_AND_SIGNED:\n return ChipStatuses.SUCCESS;\n\n case DispatchStatuses.SENT_AND_NOT_SIGNED:\n return ChipStatuses.LIGHTEN_2;\n\n case DispatchStatuses.REJECTED:\n return ChipStatuses.ERROR;\n\n case DispatchStatuses.NOT_SENT:\n return ChipStatuses.CANCELED;\n\n default:\n return ChipStatuses.NEW;\n }\n}\n\nexport function get_dispatch_return_status(status: SimpleEnumType) {\n if (!status) {\n return '';\n }\n\n switch (status?.slug) {\n case DispatchReturnStatuses.ACCEPTED:\n return ChipStatuses.SUCCESS;\n\n case DispatchReturnStatuses.SENT:\n return ChipStatuses.LIGHTEN_2;\n\n case DispatchReturnStatuses.REGISTERED:\n return ChipStatuses.NEW;\n\n case DispatchReturnStatuses.CANCELED:\n return ChipStatuses.CANCELED;\n\n default:\n return ChipStatuses.NEW;\n }\n}\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!./ReturnList.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!./ReturnList.vue?vue&type=style&index=0&module=true&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('Table',{attrs:{\"headers\":_vm.cols,\"items\":_vm.items,\"no-data-text\":\"Товары, удовлетворяющие выбранным параметрам, отсутствуют\",\"footer-props\":_vm.footerProps},scopedSlots:_vm._u([{key:\"item.number\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(item.number)+\" \")]}},{key:\"item.nomenclature\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('span',{class:[_vm.$style.nomenclatureText, 'overflow-text']},[_vm._v(\" \"+_vm._s(item.nomenclature)+\" \")])]}},{key:\"item.return_type\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(item.return_type.name)+\" \")]}},{key:\"item.return_reason\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(item.return_reason.name)+\" \")]}},{key:\"item.return_date\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(_vm._f(\"date\")(item.return_date))+\" \")]}},{key:\"item.return_status\",fn:function(ref){\nvar item = ref.item;\nreturn [(item.return_status)?_c('ChipStatus',{attrs:{\"status\":_vm.get_dispatch_return_status(item.return_status)}},[_vm._v(\" \"+_vm._s(item.return_status.name)+\" \")]):_vm._e()]}},{key:\"item.returned_at\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(_vm._f(\"date\")(item.returned_at))+\" \")]}},{key:\"item.register_realization_corrective_number\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{staticClass:\"py-2\"},[(item.register_realization_corrective_id)?_c('v-btn',{staticClass:\"ml-n4\",attrs:{\"to\":item.register_realization_corrective_id.toString(),\"append\":\"\",\"text\":\"\"}},[_vm._v(\" \"+_vm._s(item.register_realization_corrective_number)+\" \")]):_c('div',[_vm._v(\" \"+_vm._s(item.register_realization_corrective_number)+\" \")])],1)]}},{key:\"item.register_realization_corrective_status\",fn:function(ref){\nvar item = ref.item;\nreturn [(item.register_realization_corrective_status)?_c('ChipStatus',{class:_vm.$style.status,attrs:{\"status\":_vm.get_dispatch_status(item.register_realization_corrective_status)}},[_vm._v(\" \"+_vm._s(item.register_realization_corrective_status.name)+\" \")]):_vm._e()]}}],null,true)})],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\nimport { Component, Prop, Vue } from 'vue-property-decorator';\nimport { Table, ChipStatus } from '@/components';\nimport { itemsPerPageOptions } from '@/consts';\nimport { Dispatches } from '../types';\nimport { get_dispatch_status, get_dispatch_return_status } from '../consts';\n\n@Component({\n components: {\n Table,\n ChipStatus,\n },\n})\nexport default class ReturnList extends Vue {\n @Prop({ type: Array, default: () => [] })\n returns!: Dispatches.DispatchReturn[];\n\n cols = [\n {\n text: '№',\n align: 'start',\n value: 'number',\n width: '74px',\n sortable: true,\n },\n {\n text: 'Код товара',\n align: 'start',\n value: 'product_code',\n width: '110px',\n sortable: false,\n },\n {\n text: 'Номенклатура',\n align: 'start',\n value: 'nomenclature',\n width: '350px',\n sortable: false,\n },\n {\n text: 'Серийный номер',\n align: 'start',\n value: 'serial_number',\n width: '225px',\n sortable: false,\n },\n {\n text: 'Вид возврата',\n value: 'return_type',\n sortable: false,\n width: '200px',\n },\n {\n text: 'Дата возврата',\n value: 'return_date',\n sortable: false,\n width: '120px',\n },\n {\n text: 'Причина возврата',\n value: 'return_reason',\n sortable: false,\n width: '260px',\n },\n {\n text: 'Статус возврата',\n value: 'return_status',\n sortable: false,\n width: '160px',\n },\n {\n text: 'Дата согласования возврата',\n value: 'returned_at',\n sortable: false,\n width: '160px',\n },\n {\n text: 'Корректировочная реализация',\n value: 'register_realization_corrective_number',\n sortable: false,\n width: '160px',\n },\n {\n text: 'Статус подписания в ЭДО',\n value: 'register_realization_corrective_status',\n sortable: false,\n width: '200px',\n },\n ];\n\n get_dispatch_status = get_dispatch_status;\n get_dispatch_return_status = get_dispatch_return_status;\n\n get items() {\n return this.returns.map((item, index) => ({ number: index + 1, ...item }));\n }\n\n get footerProps() {\n return {\n itemsPerPageOptions,\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!./ReturnList.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!./ReturnList.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ReturnList.vue?vue&type=template&id=2a144316&\"\nimport script from \"./ReturnList.vue?vue&type=script&lang=ts&\"\nexport * from \"./ReturnList.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ReturnList.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';\ninstallComponents(component, {VBtn})\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"v-application\":\"ReturnList_v-application_10q95\",\"text-h1\":\"ReturnList_text-h1_2stWG\",\"text-h2\":\"ReturnList_text-h2_2bSLG\",\"nomenclatureName\":\"ReturnList_nomenclatureName_1334G\",\"nomenclatureText\":\"ReturnList_nomenclatureText_2BNAF\"};"],"sourceRoot":""}