{"version":3,"sources":["webpack:///./src/modules/dispatches/components/FileList.vue?dd4c","webpack:///./node_modules/cache-loader/dist/cjs.js","webpack:///./src/modules/dispatches/components/FileList.vue?3d82","webpack:///./src/modules/dispatches/components/FileList.vue","webpack:///./node_modules/eslint-loader/index.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","cols","items","footerProps","scopedSlots","_u","key","fn","ref","item","_v","_s","_f","created_at","staticClass","register_realization_corrective_id","toString","name","get_dispatch_status","status","_e","gettingFilesBtnsType","id","fileSlug","staticRenderFns","FileList","GettingFile","BtnsTypes","DOWNLOAD","Slugs","REGISTER_REALIZATION","text","value","sortable","width","files","itemsPerPageOptions","Vue","__decorate","Prop","type","Array","default","Component","components","GettingFilesBtns","Table","ChipStatus","component","VBtn","months_local","dispatches_list_cols","align","is_visible","disabled","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"],"mappings":"oKAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,QAAQ,CAACE,MAAM,CAAC,QAAUN,EAAIO,KAAK,MAAQP,EAAIQ,MAAM,cAAgB,GAAG,eAAe,kCAAkC,eAAeR,EAAIS,aAAaC,YAAYV,EAAIW,GAAG,CAAC,CAACC,IAAI,kBAAkBC,GAAG,SAASC,GAC7T,IAAIC,EAAOD,EAAIC,KACf,MAAO,CAACf,EAAIgB,GAAG,IAAIhB,EAAIiB,GAAGjB,EAAIkB,GAAG,OAAPlB,CAAee,EAAKI,aAAa,QAAQ,CAACP,IAAI,YAAYC,GAAG,SAASC,GAChG,IAAIC,EAAOD,EAAIC,KACf,MAAO,CAACX,EAAG,KAAK,CAACgB,YA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AR,IAAQA,OAAR,EAAQA,EAAQoC,MACd,KAAKC,OAAiBC,gBACpB,OAAOC,OAAaC,QAEtB,KAAKH,OAAiBI,oBACpB,OAAOF,OAAaG,UAEtB,KAAKL,OAAiBM,SACpB,OAAOJ,OAAaK,MAEtB,KAAKP,OAAiBQ,SACpB,OAAON,OAAaO,SAEtB,QACE,OAAOP,OAAaQ,KAIpB,SAAUC,EAA2BhD,GACzC,IAAKA,EACH,MAAO,GAGT,cAAQA,QAAR,IAAQA,OAAR,EAAQA,EAAQoC,MACd,KAAKa,OAAuBC,SAC1B,OAAOX,OAAaC,QAEtB,KAAKS,OAAuBE,KAC1B,OAAOZ,OAAaG,UAEtB,KAAKO,OAAuBG,WAC1B,OAAOb,OAAaQ,IAEtB,KAAKE,OAAuBH,SAC1B,OAAOP,OAAaO,SAEtB,QACE,OAAOP,OAAaQ","file":"js/home504.4cba47d8.js","sourcesContent":["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,\"not_resizeble\":\"\",\"no-data-text\":\"Связанные документы отсутствуют\",\"footer-props\":_vm.footerProps},scopedSlots:_vm._u([{key:\"item.created_at\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(_vm._f(\"date\")(item.created_at))+\" \")]}},{key:\"item.name\",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.name)+\" \")]):_c('div',[_vm._v(\" \"+_vm._s(item.name)+\" \")])],1)]}},{key:\"item.status\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{staticClass:\"py-2\"},[(item.status)?_c('div',[_c('ChipStatus',{attrs:{\"status\":_vm.get_dispatch_status(item.status)}},[_vm._v(\" \"+_vm._s(item.status.name)+\" \")])],1):_vm._e()])]}},{key:\"item.events\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('GettingFilesBtns',{attrs:{\"type\":_vm.gettingFilesBtnsType,\"file-id\":item.id,\"file-name\":item.name,\"slug\":_vm.fileSlug}})]}}],null,true)},[_vm._v(\" > \")])],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\nimport { Component, Prop, Vue } from 'vue-property-decorator';\nimport { Table, ChipStatus, GettingFilesBtns } from '@/components';\nimport { TableCol } from '@/types';\nimport { GettingFile } from '@/enums';\nimport { itemsPerPageOptions } from '@/consts';\nimport { Dispatches } from '../types';\nimport { get_dispatch_status } from '../consts';\n\n@Component({\n components: {\n GettingFilesBtns,\n Table,\n ChipStatus,\n },\n})\nexport default class FileList extends Vue {\n @Prop({ type: Array, default: () => [] })\n files!: Dispatches.DispatchDetailedFile[];\n\n gettingFilesBtnsType = GettingFile.BtnsTypes.DOWNLOAD;\n fileSlug = GettingFile.Slugs.REGISTER_REALIZATION;\n\n get_dispatch_status = get_dispatch_status;\n\n cols: TableCol[] = [\n {\n text: 'Дата документа',\n value: 'created_at',\n sortable: false,\n width: '100px',\n },\n {\n text: 'Название документа',\n value: 'name',\n sortable: false,\n width: '300px',\n },\n {\n text: 'Действие',\n value: 'events',\n sortable: false,\n width: '50px',\n },\n ];\n\n get items() {\n return this.files || [];\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!./FileList.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!./FileList.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FileList.vue?vue&type=template&id=5b02e09f&\"\nimport script from \"./FileList.vue?vue&type=script&lang=ts&\"\nexport * from \"./FileList.vue?vue&type=script&lang=ts&\"\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 null,\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","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"],"sourceRoot":""}