{"version":3,"sources":["webpack:///./src/modules/repairs/components/repair-detail/MainInfo.vue?e907","webpack:///./src/modules/repairs/components/repair-detail/MainInfo.vue?a466","webpack:///./src/modules/repairs/components/repair-detail/MainInfo.vue?a4b0","webpack:///./node_modules/cache-loader/dist/cjs.js","webpack:///./src/modules/repairs/components/repair-detail/MainInfo.vue?bf7b","webpack:///./src/modules/repairs/components/repair-detail/MainInfo.vue"],"names":["module","exports","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","main_info_cols","repair_details","scopedSlots","_u","key","fn","_v","proxy","_s","_f","item_field","client_cols","client_info","_l","col","i","slot_name","field","ref","item","domProps","text","staticRenderFns","state","repairs_store","modules","repairs_info","InfoTab","single_slot_name","status","get_repair_chip_status","client","repair","name","Vue","Component","components","Tabs","Table","VerticalTable","injectStyles","context","locals","component","VCol","VRow"],"mappings":"qGACAA,EAAOC,QAAU,CAAC,gBAAgB,+BAA+B,UAAU,yBAAyB,UAAU,yBAAyB,MAAQ,uBAAuB,SAAW,0BAA0B,KAAO,sBAAsB,UAAY,6B,kCCDpP,oE,yCCAA,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,QAAQ,CAACE,YAAY,uBAAuB,CAACF,EAAG,QAAQ,CAACG,MAAM,CAAC,KAAO,KAAK,GAAK,KAAK,GAAK,MAAM,CAACH,EAAG,gBAAgB,CAACG,MAAM,CAAC,KAAOP,EAAIQ,eAAe,WAAaR,EAAIS,gBAAgBC,YAAYV,EAAIW,GAAG,CAAC,CAACC,IAAI,cAAcC,GAAG,WAAW,MAAO,CAACb,EAAIc,GAAG,uBAAuBC,OAAM,GAAM,CAACH,IAAI,sBAAsBC,GAAG,WAAW,MAAO,CAACT,EAAG,KAAK,CAACA,EAAG,QAAQ,CAACJ,EAAIc,GAAG,yBAAyBC,OAAM,GAAM,CAACH,IAAI,uBAAuBC,GAAG,WAAW,M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B,EAAIoB,YAAYO,EAAKF,QAAQ,KAAKrB,EAAG,MAAMA,EAAG,QAAQ,CAACwB,SAAS,CAAC,UAAY5B,EAAIgB,GAAGW,EAAKE,kBAAiB,MAAK,MAAS,IAAI,IACnKC,EAAkB,G,gJCkGdC,EAAUC,OAAcC,QAAQC,aAAhCH,MASaI,EAAO,wDAA5B,iD,0BACE,EAAAX,UAAYY,OACZ,EAAA5B,eAAiBA,oBACjB,EAAAW,YAAcA,iBAHhB,EAA4B,mDAK1B,WACE,OAAOY,EAAMtB,iBANW,wBAW1B,SAAWgB,GACT,OAAOxB,KAAKQ,eAAiBR,KAAKQ,eAAegB,GAAS,KAZlC,oCAe1B,WACE,wCAAYxB,KAAKQ,gBAAjB,IAAiC4B,OAAQpC,KAAKqC,uBAAuBrC,KAAKQ,oBAhBlD,uBAmB1B,WACE,OAAOR,KAAKQ,eAAiBR,KAAKQ,eAAe8B,OAAS,OApBlC,oCAuB1B,SAAuBC,GACrB,OAAKA,GACEA,EAAOH,OAASG,EAAOH,OAAOI,KADjB,OAxBI,GAASC,QAAhBP,EAAO,gBAP3BQ,eAAU,CACTC,WAAY,CACVC,YACAC,aACAC,yBAGiBZ,WC9Goa,I,qECQzb,SAASa,EAAcC,GAErBhD,KAAK,UAAa,aAAOiD,QAAU,aAMrC,IAAIC,EAAY,eACd,EACApD,EACA+B,GACA,EACAkB,EACA,KACA,MAIa,aAAAG,EAAiB,QAMhC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,OAAA","file":"js/chunk-33ccba7f.74d584a7.js","sourcesContent":["// extracted by mini-css-extract-plugin\nmodule.exports = {\"v-application\":\"MainInfo_v-application_3-Z6y\",\"text-h1\":\"MainInfo_text-h1_1R6S0\",\"text-h2\":\"MainInfo_text-h2_E9CUb\",\"table\":\"MainInfo_table_IfxXT\",\"tableRow\":\"MainInfo_tableRow_1hdyq\",\"cell\":\"MainInfo_cell_2-X7t\",\"smallText\":\"MainInfo_smallText_AKb13\"};","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!./MainInfo.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!./MainInfo.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('v-row',{staticClass:\"mt-1 mb-4 pl-4 pr-4\"},[_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"12\",\"lg\":\"8\"}},[_c('VerticalTable',{attrs:{\"cols\":_vm.main_info_cols,\"items_info\":_vm.repair_details},scopedSlots:_vm._u([{key:\"table-title\",fn:function(){return [_vm._v(\" Основные данные \")]},proxy:true},{key:\"text-item-create_at\",fn:function(){return [_c('td',[_c('small',[_vm._v(\" Дата создания \")])])]},proxy:true},{key:\"field-item-create_at\",fn:function(){return [_c('td',[_vm._v(\" \"+_vm._s(_vm._f(\"date\")(_vm.item_field('create_at')))+\" \")])]},proxy:true},{key:\"text-item-accepted_at\",fn:function(){return [_c('td',[_c('small',[_vm._v(\" Дата согласования \")])])]},proxy:true},{key:\"field-item-accepted_at\",fn:function(){return [_c('td',[_vm._v(\" \"+_vm._s(_vm._f(\"date\")(_vm.item_field('accepted_at')))+\" \")])]},proxy:true},{key:\"field-item-serial_number\",fn:function(){return [_c('td',[_vm._v(\" \"+_vm._s(_vm.item_field('serial_number') || '—')+\" \")])]},proxy:true},{key:\"field-item-nomenclature\",fn:function(){return [_c('td',[_vm._v(\" \"+_vm._s(_vm.item_field('nomenclature') || 'Товар не найден')+\" \")])]},proxy:true}])})],1),_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"12\",\"lg\":\"4\"}},[_c('VerticalTable',{attrs:{\"cols\":_vm.client_cols,\"items_info\":_vm.client_info,\"single_cell_render\":\"\"},scopedSlots:_vm._u([{key:\"table-title\",fn:function(){return [_vm._v(\" Клиент \")]},proxy:true},_vm._l((_vm.client_cols),function(col,i){return {key:_vm.slot_name(col.field),fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{key:i},[_vm._v(\" \"+_vm._s(_vm.client_info[item.field])+\" \"),_c('br'),_c('small',{domProps:{\"innerHTML\":_vm._s(item.text)}})])]}}})],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\nimport { Component, Vue } from 'vue-property-decorator';\nimport {\n Tabs,\n Table,\n VerticalTable,\n} from '@/components';\nimport { single_slot_name } from '@/utils';\nimport { repairs_store } from '@/store';\nimport { Repairs } from '../../types';\nimport { main_info_cols, client_cols } from '../../consts';\n\nconst { state } = repairs_store.modules.repairs_info;\n\n@Component({\n components: {\n Tabs,\n Table,\n VerticalTable,\n },\n})\nexport default class InfoTab extends Vue {\n slot_name = single_slot_name;\n main_info_cols = main_info_cols;\n client_cols = client_cols;\n\n get repair_details() {\n return state.repair_details;\n // MOCK\n // return this.repairs.find((i) => i.id === +this.current_id);\n }\n\n item_field(field: keyof Repairs.DetailedInfo) {\n return this.repair_details ? this.repair_details[field] : '';\n }\n\n get repair_details_for_table() {\n return { ...this.repair_details, status: this.get_repair_chip_status(this.repair_details) };\n }\n\n get client_info() {\n return this.repair_details ? this.repair_details.client : null;\n }\n\n get_repair_chip_status(repair: Repairs.DetailedInfo | null) {\n if (!repair) return '';\n return repair.status ? repair.status.name : '';\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!./MainInfo.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!./MainInfo.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./MainInfo.vue?vue&type=template&id=5877f7c4&\"\nimport script from \"./MainInfo.vue?vue&type=script&lang=ts&\"\nexport * from \"./MainInfo.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./MainInfo.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 { VCol } from 'vuetify/lib/components/VGrid';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VCol,VRow})\n"],"sourceRoot":""}