{"version":3,"sources":["webpack:///./src/modules/dispatches/components/ProductList.vue?be25","webpack:///./node_modules/eslint-loader/index.js","webpack:///./src/modules/dispatches/components/ProductList.vue?c2d5","webpack:///./src/modules/dispatches/components/ProductList.vue?4d3f","webpack:///./node_modules/cache-loader/dist/cjs.js","webpack:///./src/modules/dispatches/components/ProductList.vue?abb1","webpack:///./src/modules/dispatches/components/ProductList.vue","webpack:///./src/modules/dispatches/components/ReturnDispatchDialog.vue?29e9","webpack:///./src/modules/dispatches/components/ReturnDispatchDialog.vue?0e18","webpack:///./src/modules/dispatches/components/ReturnDispatchDialog.vue?a205","webpack:///./src/modules/dispatches/components/ReturnDispatchDialog.vue?ddba","webpack:///./src/modules/dispatches/components/ReturnDispatchDialog.vue"],"names":["months_local","1","2","3","4","5","6","7","8","9","10","11","12","itemsPerPageOptions","module","exports","render","_vm","this","_h","$createElement","_c","_self","class","$style","table","attrs","cols","items","expanded","footerProps","on","$event","snackbar","row_click_handler","scopedSlots","_u","key","fn","ref","item","nomenclatureText","textWrap","_v","_s","nomenclature","_f","price","number","total_price","sum_nds","nds","serial_numbers","length","stopPropagation","expand_clicked","is_expanded","_e","headers","staticClass","_l","serial_number","i","serial_number_is_selected","id","toggle_children","checkboxText","inline","serialNumberText","model","value","callback","$$v","selected_items_model","expression","return_dispatch_dialog","clear_selected","selected_serial_numbers_count","selected_sum","open_dialog","return_type","open_document_dialog","documents_dialog","dialogTitle","documents_dialog_title","proxy","documnet","path","name","tableDesc","border","total_weight","total_volume","staticRenderFns","state","dispatches_store","actions","ProductList","text","align","width","sortable","find","filter","push","documents_data_dialog","selected","val","JSON","parse","stringify","reduce","sum","products","map","index","some","product_id","children_length","selected_children","dispatch_details","product","selected_product","serial_numbers_index","findIndex","product_index","splice","Orders","Pages","ORDER_DETAIL","params","is_qualitative","DispatchType","RETURN_OF_QUALITY_PRODUCT","RETURN_OF_DEFECTIVE_PRODUCT","$route","get_dispatch_by_id","get_dispatch_return","order_id","$router","Vue","__decorate","Prop","type","Array","default","Boolean","Component","components","Table","Snackbar","ReturnDispatchDialog","DownloadBtn","SimpleDialog","injectStyles","context","locals","component","VBtn","VIcon","_b","close_dialog","title","form","form_is_valid","product_code","v","is_require","require_message","dispatch_reason","set_reason_type","$set","toggle_other_reason","general_view_photo","box_photo","file_key","files","other_photos","add_files","$delete","loading","send_return","$attrs","return_serial_numbers","return_prod","forEach","reason_type","fill","$emit","serial_number_index","file","form_data","FormData","append","other_reason","toString","DispatchReason","OTHER","file_index","send_dispatch_return","code","ResponseStatuses","Success","UPDATED","evt","Mixins","ValidateMixin","String","required","TextField","Select","FileInput","VChip","VCol","VFileInput","VForm","VRow"],"mappings":"mJAAA,oE,kCCAA,oEAAO,IAAMA,EAAuC,CAClDC,EAAG,SACHC,EAAG,UACHC,EAAG,OACHC,EAAG,SACHC,EAAG,MACHC,EAAG,OACHC,EAAG,OACHC,EAAG,SACHC,EAAG,WACHC,GAAI,UACJC,GAAI,SACJC,GAAI,WAGOC,EAAsB,CACjC,GACA,GACA,GACA,M,uBClBFC,EAAOC,QAAU,CAAC,gBAAgB,kCAAkC,UAAU,4BAA4B,UAAU,4BAA4B,SAAW,6BAA6B,iBAAmB,qCAAqC,iBAAmB,qCAAqC,aAAe,iCAAiC,OAAS,2BAA2B,iBAAmB,qCAAqC,YAAc,gCAAgC,UAAY,8BAA8B,OAAS,2BAA2B,MAAQ,4B,2CCDxjB,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,QAAQ,CAACE,MAAMN,EAAIO,OAAOC,MAAMC,MAAM,CAAC,QAAUT,EAAIU,KAAK,MAAQV,EAAIW,MAAM,SAAWX,EAAIY,SAAS,cAAc,GAAG,eAAe,4DAA4D,eAAgB,EAAK,eAAeZ,EAAIa,aAAaC,GAAG,CAAC,kBAAkB,SAASC,GAAQf,EAAIY,SAASG,GAAQ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ugin/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!./ProductList.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!./ProductList.vue?vue&type=style&index=0&module=true&lang=scss&\"","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","// extracted by mini-css-extract-plugin\nmodule.exports = {\"v-application\":\"ProductList_v-application_CWDIJ\",\"text-h1\":\"ProductList_text-h1_2JMlc\",\"text-h2\":\"ProductList_text-h2_25DZh\",\"textWrap\":\"ProductList_textWrap_1EWcT\",\"nomenclatureName\":\"ProductList_nomenclatureName_1poE0\",\"nomenclatureText\":\"ProductList_nomenclatureText_11jCQ\",\"checkboxText\":\"ProductList_checkboxText_3p3VY\",\"inline\":\"ProductList_inline_Hqvlj\",\"serialNumberText\":\"ProductList_serialNumberText_3akH9\",\"dialogTitle\":\"ProductList_dialogTitle_2nVxc\",\"tableDesc\":\"ProductList_tableDesc_3_wDN\",\"border\":\"ProductList_border_2oRur\",\"table\":\"ProductList_table_A0GtO\"};","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('Table',{class:_vm.$style.table,attrs:{\"headers\":_vm.cols,\"items\":_vm.items,\"expanded\":_vm.expanded,\"show-expand\":\"\",\"no-data-text\":\"Товары, удовлетворяющие выбранным параметрам, отсутствуют\",\"not_resizeble\":true,\"footer-props\":_vm.footerProps},on:{\"update:expanded\":function($event){_vm.expanded=$event},\"item-selected\":function($event){_vm.snackbar = true},\"click:row\":_vm.row_click_handler},scopedSlots:_vm._u([{key:\"item.nomenclature\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('span',{class:[_vm.$style.nomenclatureText, _vm.$style.textWrap]},[_vm._v(\" \"+_vm._s(item.nomenclature)+\" \")])]}},{key:\"item.price\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(_vm._f(\"currency_rub_rounded\")(item.price))+\" \")]}},{key:\"item.number\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(item.number)+\" \")]}},{key:\"item.total_price\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(_vm._f(\"currency_rub_rounded\")(item.total_price))+\" \")]}},{key:\"item.sum_nds\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(_vm._f(\"currency_rub_rounded\")(item.sum_nds))+\" \")]}},{key:\"item.nds\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(item.nds)+\"% \")]}},{key:\"item.data-table-expand\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('div',[(item.serial_numbers.length > 0)?_c('v-btn',{attrs:{\"icon\":\"\",\"color\":\"black\",\"small\":\"\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.expand_clicked(item)}}},[(!_vm.is_expanded(item))?_c('v-icon',[_vm._v(\" mdi-chevron-down \")]):_vm._e(),(_vm.is_expanded(item))?_c('v-icon',[_vm._v(\" mdi-chevron-up \")]):_vm._e()],1):_vm._e()],1)]}},{key:\"expanded-item\",fn:function(ref){\nvar headers = ref.headers;\nvar item = ref.item;\nreturn [(_vm.showSelect)?_c('td',{staticClass:\"pl-8\",attrs:{\"colspan\":headers.length}},_vm._l((item.serial_numbers),function(serial_number,i){return _c('div',{key:i,staticClass:\"mb-4 expanded-sticky\",attrs:{\"input-value\":_vm.serial_number_is_selected(serial_number.id),\"hide-details\":\"\"},on:{\"change\":function($event){return _vm.toggle_children(serial_number, item)}}},[[_c('div',{staticClass:\"ml-2\"},[_vm._v(\" Серийный номер: \"),_c('span',{class:_vm.$style.checkboxText},[_vm._v(\" \"+_vm._s(serial_number.number)+\" \")])])]],2)}),0):_c('td',{attrs:{\"colspan\":headers.length}},_vm._l((item.serial_numbers),function(serial_number,i){return _c('div',{key:i,staticClass:\"my-4 expanded-sticky\"},[_c('div',{staticClass:\"ml-2\",class:_vm.$style.inline},[_c('span',{class:_vm.$style.serialNumberText},[_vm._v(\" Серийный номер: \")]),_vm._v(\" \"+_vm._s(serial_number.number)+\" \")])])}),0)]}}],null,true),model:{value:(_vm.selected_items_model),callback:function ($$v) {_vm.selected_items_model=$$v},expression:\"selected_items_model\"}}),(!_vm.return_dispatch_dialog)?_c('Snackbar',{model:{value:(_vm.snackbar),callback:function ($$v) {_vm.snackbar=$$v},expression:\"snackbar\"}},[_c('v-btn',{staticClass:\"mr-2\",attrs:{\"icon\":\"\",\"small\":\"\",\"color\":\"#fff\",\"title\":\"Отменить\"},on:{\"click\":_vm.clear_selected}},[_c('v-icon',[_vm._v(\"mdi-close\")])],1),_c('span',{staticClass:\"mr-3\"},[_vm._v(\" Выбрано товаров: \"+_vm._s(_vm.selected_serial_numbers_count)+\" \")]),_c('span',[_vm._v(\"Итого на сумму: \"+_vm._s(_vm.selected_sum))]),_c('v-btn',{staticClass:\"ml-auto\",attrs:{\"text\":\"\"},on:{\"click\":function($event){return _vm.open_dialog(true)}}},[_c('v-icon',{staticClass:\"mr-3\"},[_vm._v(\"mdi-close-box-outline\")]),_c('span',[_vm._v(\" Возврат качественных товаров \")])],1),_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":function($event){return _vm.open_dialog(false)}}},[_c('v-icon',{staticClass:\"mr-3\"},[_vm._v(\"mdi-close-box-outline\")]),_c('span',[_vm._v(\" Возврат некачественных товаров \")])],1)],1):_vm._e(),(_vm.return_dispatch_dialog)?_c('ReturnDispatchDialog',{attrs:{\"return_type\":_vm.return_type,\"return_prod\":_vm.selected_items_model},on:{\"close\":function($event){_vm.return_dispatch_dialog = false},\"sent\":_vm.open_document_dialog},model:{value:(_vm.return_dispatch_dialog),callback:function ($$v) {_vm.return_dispatch_dialog=$$v},expression:\"return_dispatch_dialog\"}}):_vm._e(),_c('SimpleDialog',{attrs:{\"max-width\":\"700\",\"center_text\":\"\",\"center_title\":\"\",\"bts_align\":\"center\"},on:{\"close\":function($event){_vm.documents_dialog = false}},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_c('div',{class:_vm.$style.dialogTitle},[_c('div',[_vm._v(\" \"+_vm._s(_vm.documents_dialog_title)+\" \")]),_c('div',[_vm._v(\" оформлен \")])])]},proxy:true},{key:\"text\",fn:function(){return [_c('div',{staticClass:\"mb-4\"},[_vm._v(\"Отправлен запрос на корректировку реализации\")]),_vm._l((_vm.documents_data_dialog),function(documnet,i){return _c('DownloadBtn',{key:i,staticClass:\"mb-4\",attrs:{\"src\":documnet.path},scopedSlots:_vm._u([{key:\"text\",fn:function(){return [_vm._v(\" \"+_vm._s(documnet.name)+\" \")]},proxy:true}],null,true)})})]},proxy:true}]),model:{value:(_vm.documents_dialog),callback:function ($$v) {_vm.documents_dialog=$$v},expression:\"documents_dialog\"}}),_c('div',{staticClass:\"mt-6\",class:_vm.$style.tableDesc},[_c('div',{class:_vm.$style.border},[_vm._v(\"Общий вес: \"),_c('span',{staticClass:\"font-weight-bold\"},[_vm._v(_vm._s(_vm.total_weight))])]),_c('div',[_vm._v(\"Общий объем: \"),_c('span',{staticClass:\"font-weight-bold\"},[_vm._v(_vm._s(_vm.total_volume))])])])],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\nimport { Component, Prop, Mixins } from 'vue-property-decorator';\nimport ValidateMixin from '@/mixins/validate';\nimport { TextField, Select, FileInput } from '@/components';\nimport { dispatch_reason, ResponseStatuses } from '@/enums';\nimport { dispatches_store } from '@/store';\nimport { DispatchType, DispatchReason } from '@/enums/dispatches/index';\nimport { Dispatches } from '../types';\n\nconst { actions } = dispatches_store;\n\ninterface ReturnSerialNumber extends Dispatches.SerialNumber {\n product_code: string | null;\n nomenclature: string | null;\n reason_type: string;\n other_reason?: string | null;\n general_view_photo: string | File;\n box_photo: string | File;\n other_photos: File[];\n}\n\n@Component({\n components: {\n TextField,\n Select,\n FileInput,\n SimpleDialog: () => import('@/components/dialogs/simple/SimpleDialog.vue'),\n },\n})\nexport default class ReturnDispatchDialog extends Mixins(ValidateMixin) {\n @Prop({ type: String, default: '', required: true })\n return_type!: DispatchType;\n\n @Prop({ type: Array, default: () => [] })\n return_prod!: Dispatches.Product[];\n\n dispatch_reason = dispatch_reason;\n form_is_valid = false;\n toggle_other_reason = 0;\n loading = false;\n file_key= 0;\n\n get serial_numbers() {\n const return_serial_numbers: ReturnSerialNumber[] = [];\n\n this.return_prod.forEach(({ product_code, nomenclature, serial_numbers }) => {\n serial_numbers.forEach((item) =>\n return_serial_numbers.push({\n ...item,\n product_code,\n nomenclature,\n reason_type: '',\n general_view_photo: '',\n box_photo: '',\n other_photos: [],\n }));\n });\n\n return return_serial_numbers;\n }\n\n get other_reasons() {\n return new Array(this.serial_numbers.length).fill(false);\n }\n\n get is_qualitative() {\n return this.return_type === DispatchType.RETURN_OF_QUALITY_PRODUCT;\n }\n\n get title() {\n return `Возврат ${this.is_qualitative ? '' : 'не'}качественных товаров`;\n }\n\n close_dialog() {\n this.$emit('close');\n }\n\n add_files(serial_number_index: number, files: File[]) {\n const serial_number = this.serial_numbers[serial_number_index];\n\n for (let index = 0; index < files.length; index++) {\n if (!serial_number.other_photos.some((file) => file.name === files[index].name)) {\n serial_number.other_photos.push(files[index]);\n }\n }\n this.file_key++;\n }\n\n async send_return() {\n const { id } = this.$route.params;\n const form_data = new FormData();\n\n form_data.append('register_realization_return_type', this.return_type);\n\n this.serial_numbers.forEach(\n ({\n id, reason_type, general_view_photo, box_photo, other_photos, other_reason,\n }, i) => {\n form_data.append(`items[${i}][serial_number_id]`, id.toString());\n form_data.append(`items[${i}][reason_type]`, this.is_qualitative ? reason_type : DispatchReason.OTHER);\n form_data.append(`items[${i}][general_view_photo]`, general_view_photo);\n form_data.append(`items[${i}][box_photo]`, box_photo);\n if (other_reason) form_data.append(`items[${i}][other_reason]`, other_reason);\n\n other_photos.forEach((file, file_index) => {\n form_data.append(`items[${i}][other_photos][${file_index}]`, file);\n });\n },\n );\n\n this.loading = true;\n const code = await actions.send_dispatch_return({ id, form_data });\n\n this.loading = false;\n\n if (ResponseStatuses.Success.UPDATED === code) {\n this.$emit('sent', this.is_qualitative);\n this.$emit('close');\n }\n }\n\n set_reason_type(evt: string, item: ReturnSerialNumber) {\n if (evt === DispatchReason.OTHER) {\n this.$set(item, 'other_reason', '');\n } else if ('other_reason' in item) {\n this.$delete(item, 'other_reason');\n }\n this.toggle_other_reason++;\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!./ProductList.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!./ProductList.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ProductList.vue?vue&type=template&id=99c2adf2&\"\nimport script from \"./ProductList.vue?vue&type=script&lang=ts&\"\nexport * from \"./ProductList.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ProductList.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 { VIcon } from 'vuetify/lib/components/VIcon';\ninstallComponents(component, {VBtn,VIcon})\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"v-application\":\"ReturnDispatchDialog_v-application_37FgB\",\"text-h1\":\"ReturnDispatchDialog_text-h1_3u99h\",\"text-h2\":\"ReturnDispatchDialog_text-h2__kePn\",\"form\":\"ReturnDispatchDialog_form_2m1ve\",\"files\":\"ReturnDispatchDialog_files_1VNWN\"};","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!./ReturnDispatchDialog.vue?vue&type=style&index=0&lang=scss&module=true&\"; 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!./ReturnDispatchDialog.vue?vue&type=style&index=0&lang=scss&module=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('SimpleDialog',_vm._b({attrs:{\"max-width\":\"800\"},on:{\"close\":_vm.close_dialog,\"click:outside\":_vm.close_dialog},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.title)+\" \")]},proxy:true},{key:\"text\",fn:function(){return [_c('v-form',{class:_vm.$style.form,model:{value:(_vm.form_is_valid),callback:function ($$v) {_vm.form_is_valid=$$v},expression:\"form_is_valid\"}},[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_vm._v(\" Для оформления возврата качественных товаров укажите причину возврата и прикрепите фото у каждого товара. \")])],1),_vm._l((_vm.serial_numbers),function(item,i){return _c('div',{key:i},[_c('v-row',[_c('v-col',[_c('TextField',{attrs:{\"label\":\"Номенклатура:\",\"value\":item.nomenclature,\"disabled\":\"\",\"readonly\":\"\",\"hide-details\":\"\"}})],1)],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"2\"}},[_c('TextField',{attrs:{\"label\":\"Код товара:\",\"disabled\":\"\",\"readonly\":\"\",\"hide-details\":\"\",\"value\":item.product_code}})],1),_c('v-col',{attrs:{\"cols\":\"5\"}},[_c('TextField',{attrs:{\"label\":\"Серийный номер:\",\"value\":item.number,\"disabled\":\"\",\"readonly\":\"\",\"hide-details\":\"\"}})],1)],1),(_vm.is_qualitative)?_c('v-row',[_c('v-col',{attrs:{\"cols\":\"6\"}},[_c('Select',{attrs:{\"rules\":[function (v) { return _vm.is_require(v) || _vm.require_message; }],\"label\":\"Причина*\",\"hide-details\":\"\",\"items\":_vm.dispatch_reason},on:{\"change\":function($event){return _vm.set_reason_type($event, item)}},model:{value:(item.reason_type),callback:function ($$v) {_vm.$set(item, \"reason_type\", $$v)},expression:\"item.reason_type\"}})],1)],1):_vm._e(),(_vm.toggle_other_reason && 'other_reason' in item || !_vm.is_qualitative)?_c('v-row',[_c('v-col',[_c('TextField',{attrs:{\"require\":\"\",\"hide-details\":\"\",\"rules\":[function (v) { return _vm.is_require(v) || _vm.require_message; }],\"label\":\"Комментарий\"},model:{value:(item.other_reason),callback:function ($$v) {_vm.$set(item, \"other_reason\", $$v)},expression:\"item.other_reason\"}})],1)],1):_vm._e(),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"6\"}},[_c('FileInput',{attrs:{\"rules\":[function (v) { return _vm.is_require(v) || _vm.require_message; }],\"label\":\"Прикрепите фото общего вида товара*\",\"require\":\"\",\"accept\":\".png, .jpeg\",\"hide-details\":\"\"},on:{\"change\":function($event){item.general_view_photo = $event}}})],1),_c('v-col',{attrs:{\"cols\":\"6\"}},[_c('FileInput',{attrs:{\"rules\":[function (v) { return _vm.is_require(v) || _vm.require_message; }],\"label\":\"Прикрепите фото коробки*\",\"require\":\"\",\"accept\":\".png, .jpeg\",\"hide-details\":\"\"},on:{\"change\":function($event){item.box_photo = $event}}})],1)],1),_c('v-row',[_c('v-col',[_c('v-file-input',{key:_vm.file_key,class:['text-field', _vm.$style.files],attrs:{\"value\":item.other_photos,\"multiple\":\"\",\"label\":\"Прикрепить еще фото\",\"accept\":\".png, .jpeg\",\"error-messages\":item.other_photos.length > 5 && 'Максимум 5 файлов'},on:{\"change\":function($event){return _vm.add_files(i, $event)},\"click:clear\":function($event){item.other_photos = []}},scopedSlots:_vm._u([{key:\"selection\",fn:function(ref){\nvar index = ref.index;\nvar text = ref.text;\nreturn [_c('v-chip',{attrs:{\"close\":\"\"},on:{\"click:close\":function($event){_vm.$delete(item.other_photos, index), _vm.file_key++}}},[_vm._v(\" \"+_vm._s(text)+\" \")])]}}],null,true)})],1)],1)],1)})],2)]},proxy:true},{key:\"actions\",fn:function(){return [_c('v-btn',{attrs:{\"depressed\":\"\",\"color\":\"accent darken-4\",\"disabled\":!_vm.form_is_valid,\"loading\":_vm.loading},on:{\"click\":_vm.send_return}},[_vm._v(\" Оформить возврат \")]),_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":_vm.close_dialog}},[_vm._v(\" Отменить \")])]},proxy:true}])},'SimpleDialog',_vm.$attrs,false))}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","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!./ReturnDispatchDialog.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!./ReturnDispatchDialog.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ReturnDispatchDialog.vue?vue&type=template&id=ef6efe94&\"\nimport script from \"./ReturnDispatchDialog.vue?vue&type=script&lang=ts&\"\nexport * from \"./ReturnDispatchDialog.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ReturnDispatchDialog.vue?vue&type=style&index=0&lang=scss&module=true&\"\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 { VChip } from 'vuetify/lib/components/VChip';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VFileInput } from 'vuetify/lib/components/VFileInput';\nimport { VForm } from 'vuetify/lib/components/VForm';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VChip,VCol,VFileInput,VForm,VRow})\n"],"sourceRoot":""}