{"version":3,"sources":["webpack:///./src/services/modules/admin/Company.service.js","webpack:///./src/services/modules/checklist/TypeChecklistItem.service.js","webpack:///./src/views/modules/business/PriceListForm.vue?6d7b","webpack:///src/views/modules/business/PriceListForm.vue","webpack:///./src/views/modules/business/PriceListForm.vue?efc1","webpack:///./src/views/modules/business/PriceListForm.vue"],"names":["path","companyService","params","http","list","companyId","get","URLSearchParams","set","service","render","_vm","this","_h","$createElement","_c","_self","attrs","currentPage","singularTitle","t","pageTitle","command","status","generalErrors","checkErrorsComponent","name","pageFormIsLoaded","on","onSubmit","model","value","form","callback","$$v","$set","expression","error","enableAllCompanies","_e","companyOptions","onCompanyResume","staticClass","typeChecklistItemList","viewFieldsPageTypeChecklistItems","scopedSlots","_u","key","fn","ref","item","_v","_s","unit","forceUpdateList","directives","rawName","unitOtherExpense","detailOtherExpense","$event","_f","defaultCompanyExpense","defaultOtherExpense","defaultInvoiceTax","proxy","staticRenderFns","mixins","pageDefaultMixin","data","genKey","fieldKey","priceListId","note","pathologies","checklistItems","pathologiesList","viewFieldsPagePathologies","methods","mountedPrepare","$forceUpdate","component"],"mappings":"oMAGMA,EAAO,gBAEPC,E,gGAEF,SAAWC,GACP,OAAOC,OAAKC,KAAKJ,EAAO,cAAcE,K,uBAG1C,SAAUG,GACN,OAAOF,OAAKG,IAAIN,EAAO,WAAaK,K,6BAGxC,WACI,IAAIH,EAAS,IAAIK,gBAEjB,OADAL,EAAOM,IAAI,SAAU,KACdL,OAAKC,KAAKJ,EAAO,aAAaE,O,KAO9B,WAAID,G,oHCtBbD,EAAO,sBAEPS,E,gGAEF,SAAWP,GACP,OAAOC,OAAKC,KAAKJ,EAAO,cAAcE,K,yBAG1C,WACI,IAAIA,EAAS,IAAIK,gBAEjB,OADAL,EAAOM,IAAI,SAAU,KACdL,OAAKC,KAAKJ,EAAO,yBAAyBE,O,KAM1C,WAAIO,G,yCCpBnB,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAA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428ec.js","sourcesContent":["import http from '../../config/http-common';\r\n\r\n//Usado somente se for realmente necessário algo fora do padrão GeneralCRUD.service.js\r\nconst path = \"admin/company\"\r\n\r\nclass companyService {\r\n\r\n selectList(params) {\r\n return http.list(path + \"/selectList\",params);\r\n }\r\n\r\n getResume(companyId) {\r\n return http.get(path + '/resume/' + companyId);\r\n }\r\n\r\n getAllCompanies() {\r\n let params = new URLSearchParams()\r\n params.set(\"status\", \"1\")\r\n return http.list(path + \"/selectAll\",params);\r\n }\r\n\r\n\r\n\r\n}\r\n\r\nexport default new companyService();\r\n\r\n\r\n","import http from '../../config/http-common';\r\n\r\n//Usado somente se for realmente necessário algo fora do padrão GeneralCRUD.service.js\r\nconst path = \"checklist/type-item\"\r\n\r\nclass service {\r\n\r\n selectList(params) {\r\n return http.list(path + \"/selectList\",params);\r\n }\r\n\r\n getAllItems() {\r\n let params = new URLSearchParams()\r\n params.set(\"status\", \"1\")\r\n return http.list(path + \"/selectAllResponseList\",params);\r\n }\r\n\r\n\r\n}\r\n\r\nexport default new service();\r\n\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('t-page',[_c('t-page-form',{attrs:{\"tabs\":\"\",\"submit-text\":_vm.currentPage.singularTitle,\"title\":_vm.t('form-of')+_vm.currentPage.pageTitle,\"command\":_vm.command,\"status\":_vm.status,\"generalErrors\":_vm.generalErrors,\"check-errors-again\":_vm.checkErrorsComponent,\"go-back-title\":_vm.t('go-back-list'),\"go-back-to\":_vm.currentPage.name,\"busy\":!_vm.pageFormIsLoaded},on:{\"onSubmit\":_vm.onSubmit}},[_c('t-form-tab',{attrs:{\"title\":\"Dados Básicos\",\"active\":\"\"}},[_c('t-input',{attrs:{\"hidden\":\"\"},model:{value:(_vm.form.priceListId),callback:function ($$v) {_vm.$set(_vm.form, \"priceListId\", $$v)},expression:\"form.priceListId\"}}),_c('t-input',{attrs:{\"add-error\":_vm.error.name,\"label\":\"Tabela de Preços\",\"required\":\"\"},model:{value:(_vm.form.name),callback:function ($$v) {_vm.$set(_vm.form, \"name\", $$v)},expression:\"form.name\"}}),(!_vm.form.enableAllCompanies)?_c('t-input',{attrs:{\"options\":_vm.companyOptions,\"first-default\":\"\",\"required\":!_vm.form.enableAllCompanies,\"label\":\"Empresa\",\"select\":\"\"},on:{\"change\":_vm.onCompanyResume},model:{value:(_vm.form.companyId),callback:function ($$v) {_vm.$set(_vm.form, \"companyId\", $$v)},expression:\"form.companyId\"}}):_vm._e(),_c('t-input',{attrs:{\"label\":\"Observações\",\"max-length\":\"500\",\"textarea\":\"\"},model:{value:(_vm.form.note),callback:function ($$v) {_vm.$set(_vm.form, \"note\", $$v)},expression:\"form.note\"}}),_c('t-input-status',{staticClass:\"mb-2\",model:{value:(_vm.form.status),callback:function ($$v) {_vm.$set(_vm.form, \"status\", $$v)},expression:\"form.status\"}})],1),_c('t-form-tab',{attrs:{\"title\":\"Itens\",\"hash\":\"items\"}},[_c('t-table',{staticClass:\"mb-2\",attrs:{\"items\":_vm.typeChecklistItemList,\"fields\":_vm.viewFieldsPageTypeChecklistItems,\"enable-pagination\":\"\",\"disable-search\":['unitOtherExpense','defaultInvoiceTax','defaultCompanyExpense'],\"enable-search\":\"\",\"title-items\":\"itens\",\"table-bordered\":\"\",\"table-striped\":\"\",\"disable-actions-column\":\"\",\"primary-key-column\":\"typeChecklistItemId\"},scopedSlots:_vm._u([{key:\"first-column\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(item.name)+\" \"),(item.unit !== '')?_c('span',[_vm._v(\"(\"+_vm._s(item.unit)+\")\")]):_vm._e()]}},{key:\"item(unitPrice)\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('t-input',{attrs:{\"placeholder\":\"R$ Venda\",\"highlight\":\"\",\"hide-label\":\"\",\"money\":\"\"},on:{\"focusout\":_vm.forceUpdateList},model:{value:(item.unitPrice),callback:function ($$v) {_vm.$set(item, \"unitPrice\", $$v)},expression:\"item.unitPrice\"}})]}},{key:\"item(unitCostLabor)\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('t-input',{attrs:{\"placeholder\":\"R$ Mão de Obra\",\"hide-label\":\"\",\"money\":\"\"},on:{\"focusout\":_vm.forceUpdateList},model:{value:(item.unitCostLabor),callback:function ($$v) {_vm.$set(item, \"unitCostLabor\", $$v)},expression:\"item.unitCostLabor\"}})]}},{key:\"item(unitCostMaterial)\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('t-input',{attrs:{\"placeholder\":\"R$ Material\",\"hide-label\":\"\",\"money\":\"\"},on:{\"focusout\":_vm.forceUpdateList},model:{value:(item.unitCostMaterial),callback:function ($$v) {_vm.$set(item, \"unitCostMaterial\", $$v)},expression:\"item.unitCostMaterial\"}})]}},{key:\"item(unitOtherExpense)\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(item.unitOtherExpense > 0 || item.detailOtherExpense),expression:\"item.unitOtherExpense > 0 || item.detailOtherExpense\"}]},[_c('t-input',{attrs:{\"placeholder\":\"% BDI\",\"hide-label\":\"\",\"percent\":\"\"},on:{\"focusout\":_vm.forceUpdateList},model:{value:(item.unitOtherExpense),callback:function ($$v) {_vm.$set(item, \"unitOtherExpense\", $$v)},expression:\"item.unitOtherExpense\"}}),_c('b-link',{on:{\"click\":function($event){return _vm.detailOtherExpense(item,false)}}},[_vm._v(\"Retornar Padrão\")])],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(item.unitOtherExpense === 0),expression:\"item.unitOtherExpense === 0\"}]},[_c('div',[_vm._v(_vm._s(_vm._f(\"percent\")(_vm.defaultCompanyExpense.defaultOtherExpense)))]),_c('b-link',{on:{\"click\":function($event){return _vm.detailOtherExpense(item,true)}}},[_vm._v(\"Especificar\")])],1)]}},{key:\"item(defaultInvoiceTax)\",fn:function(){return [_c('div',[_vm._v(_vm._s(_vm._f(\"percent\")(_vm.defaultCompanyExpense.defaultInvoiceTax)))])]},proxy:true},{key:\"item(defaultCompanyExpense)\",fn:function(){return [_c('div',[_vm._v(_vm._s(_vm._f(\"percent\")(_vm.defaultCompanyExpense.defaultCompanyExpense)))])]},proxy:true}])})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PriceListForm.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PriceListForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PriceListForm.vue?vue&type=template&id=844a8e10&\"\nimport script from \"./PriceListForm.vue?vue&type=script&lang=js&\"\nexport * from \"./PriceListForm.vue?vue&type=script&lang=js&\"\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"],"sourceRoot":""}