{"version":3,"sources":["webpack:///./src/modules/repairs/views/EditMainInfo.vue?2a60","webpack:///./src/modules/repairs/views/EditMainInfo.vue?5d04","webpack:///./src/modules/repairs/views/EditMainInfo.vue?6804","webpack:///./node_modules/cache-loader/dist/cjs.js","webpack:///./src/modules/repairs/views/EditMainInfo.vue?9a48","webpack:///./src/modules/repairs/views/EditMainInfo.vue"],"names":["module","exports","render","_vm","this","_h","$createElement","_c","_self","attrs","scopedSlots","_u","key","fn","_v","proxy","class","$style","card","is_valid","on","save_repair","go_back","staticRenderFns","repairs_store","modules","new_repair","state","actions","EditMainInfo","id","$route","params","repairs_info","get_repair_by_id","upd_field","repair_details","client","serial_number","nomenclature","organization_id","expired_date","edit_new_repair","success","$router","push","name","Repairs","Pages","REPAIR_DETAIL","client_id","operation_type_id","value","mutations","UPD_NEW_REPAIR_KEY","Vue","Component","components","PageTitle","RepairMainInnfo","injectStyles","context","locals","component","VBtn","VCard"],"mappings":"4GAAA,oE,qBCCAA,EAAOC,QAAU,CAAC,gBAAgB,mCAAmC,UAAU,6BAA6B,UAAU,6BAA6B,SAAW,8BAA8B,WAAa,gCAAgC,KAAO,0BAA0B,KAAO,0BAA0B,kBAAoB,uCAAuC,eAAiB,oCAAoC,KAAO,0BAA0B,aAAe,kCAAkC,gBAAkB,qCAAqC,gBAAkB,uC,yCCDtjB,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,YAAY,CAACE,MAAM,CAAC,UAAY,IAAIC,YAAYP,EAAIQ,GAAG,CAAC,CAACC,IAAI,QAAQC,GAAG,WAAW,MAAO,CAACV,EAAIW,GAAG,iDAAiDC,OAAM,OAAUR,EAAG,SAAS,CAACS,MAAMb,EAAIc,OAAOC,MAAM,CAACX,EAAG,mBAAmBA,EAAG,MAAM,CAACA,EAAG,QAAQ,CAACE,MAAM,CAAC,MAAQ,uB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AAUrC,EAA8BwC,GACtC5B,OAAcC,QAAQC,WAAW2B,UAAUC,mBAAmB,CAAE1C,MAAKwC,cA9CxC,GAASG,QAArB1B,EAAY,gBANhC2B,eAAU,CACTC,WAAY,CACVC,iBACAC,iCAGiB9B,WC9CsZ,I,qECQ3a,SAAS+B,EAAcC,GAErBzD,KAAK,UAAa,aAAO0D,QAAU,aAMrC,IAAIC,EAAY,eACd,EACA7D,EACAqB,GACA,EACAqC,EACA,KACA,MAIa,aAAAG,EAAiB,QAMhC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,QAAA","file":"js/home1360.715cf221.js","sourcesContent":["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!./EditMainInfo.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!./EditMainInfo.vue?vue&type=style&index=0&module=true&lang=scss&\"","// extracted by mini-css-extract-plugin\nmodule.exports = {\"v-application\":\"EditMainInfo_v-application_3Ybys\",\"text-h1\":\"EditMainInfo_text-h1_3FYyH\",\"text-h2\":\"EditMainInfo_text-h2_3aNwc\",\"itemsRow\":\"EditMainInfo_itemsRow_22hRz\",\"itemsTitle\":\"EditMainInfo_itemsTitle_1KxuI\",\"item\":\"EditMainInfo_item_1qfrw\",\"wide\":\"EditMainInfo_wide_17hLd\",\"itemThreePartsRow\":\"EditMainInfo_itemThreePartsRow_3jdVe\",\"itemThreeParts\":\"EditMainInfo_itemThreeParts_2xYm_\",\"card\":\"EditMainInfo_card_3mvED\",\"btnNewRepair\":\"EditMainInfo_btnNewRepair_35u6S\",\"searchNewRepair\":\"EditMainInfo_searchNewRepair_3IM-k\",\"selectNewRepair\":\"EditMainInfo_selectNewRepair_3CqCR\"};","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('PageTitle',{attrs:{\"hide_btns\":\"\"},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(\"Редактирование основных данных заказ-наряда\")]},proxy:true}])}),_c('v-card',{class:_vm.$style.card},[_c('RepairMainInnfo'),_c('div',[_c('v-btn',{attrs:{\"color\":\"accent darken-4 mr-2\",\"depressed\":\"\",\"disabled\":!_vm.is_valid()},on:{\"click\":_vm.save_repair}},[_vm._v(\" Сохранить \")]),_c('v-btn',{attrs:{\"text\":\"\",\"to\":_vm.go_back}},[_vm._v(\" Отменить \")])],1)],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\nimport {\n Component, Vue,\n} from 'vue-property-decorator';\nimport { PageTitle } from '@/components';\nimport { repairs_store } from '@/store';\nimport { Repairs } from '../types';\nimport RepairMainInnfo from '../components/new-repair/RepairMainInfo.vue';\n\nconst { state, actions } = repairs_store.modules.new_repair;\n\n@Component({\n components: {\n PageTitle,\n RepairMainInnfo,\n },\n})\nexport default class EditMainInfo extends Vue {\n async mounted() {\n const { id } = this.$route.params;\n\n await repairs_store.modules.repairs_info.actions.get_repair_by_id(id);\n this.upd_field('client_id', this.repair_details.client?.id);\n this.upd_field('serial_number', this.repair_details.serial_number);\n this.upd_field('nomenclature', this.repair_details.nomenclature);\n this.upd_field('organization_id', this.repair_details.organization_id);\n this.upd_field('expired_date', this.repair_details.expired_date);\n }\n\n get repair_details() {\n return repairs_store.modules.repairs_info.state.repair_details;\n }\n\n get new_repair() {\n return state.new_repair;\n }\n\n async save_repair() {\n const { id } = this.$route.params;\n\n const success = await actions.edit_new_repair(id);\n\n if (success) {\n this.$router.push({\n name: Repairs.Pages.REPAIR_DETAIL,\n });\n }\n }\n\n is_valid() {\n return this.new_repair.client_id\n && this.new_repair.serial_number\n && this.new_repair.organization_id\n && this.new_repair.nomenclature\n && this.new_repair.expired_date\n && this.new_repair.operation_type_id;\n }\n\n get go_back() {\n return { name: Repairs.Pages.REPAIR_DETAIL };\n }\n\n upd_field(key: keyof Repairs.NewRepair, value: unknown) {\n repairs_store.modules.new_repair.mutations.UPD_NEW_REPAIR_KEY({ key, value });\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!./EditMainInfo.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!./EditMainInfo.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./EditMainInfo.vue?vue&type=template&id=5586011e&\"\nimport script from \"./EditMainInfo.vue?vue&type=script&lang=ts&\"\nexport * from \"./EditMainInfo.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./EditMainInfo.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"],"sourceRoot":""}