{"version":3,"sources":["webpack:///./src/views/modules/stock/ExpeditionOrderForm.vue?1fed","webpack:///src/views/modules/stock/ExpeditionOrderForm.vue","webpack:///./src/views/modules/stock/ExpeditionOrderForm.vue?0222","webpack:///./src/views/modules/stock/ExpeditionOrderForm.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","currentPage","singularTitle","t","pageTitle","command","status","generalErrors","checkErrorsComponent","name","pageFormIsLoaded","on","onSubmit","scopedSlots","_u","key","fn","printItemsOptions","length","form","expeditionId","onSubmitPrint","staticClass","_v","$event","selectAllItemsToPrint","_l","item","index","originCodeLabel","model","value","callback","$$v","$set","expression","openDialogPrintLabel","_e","relationAccessSubValidation","downloadReport","expeditionNumber","directives","rawName","finishedDate","undefined","reverseFinish","confirmReverse","proxy","ref","fieldKey","error","originInvoiceCode","customerId","typeExpeditionStatusOptions","companyOptions","relationAccessPageGeneral","staticRenderFns","mixins","pageDefaultMixin","components","data","path","genKey","companyId","expeditionStatusId","issueDate","note","methods","mountedPrepare","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACA,EAAG,cAAc,CAACE,MAAM,CAAC,KAAO,GAAG,cAAcN,EAAIO,YAAYC,cAAc,MAAQR,EAAIS,EAAE,WAAWT,EAAIO,YAAYG,UAAU,QAAUV,EAAIW,QAAQ,OAASX,EAAIY,OAAO,cAAgBZ,EAAIa,cAAc,qBAAqBb,EAAIc,qBAAqB,gBAAgBd,EAAIS,EAAE,gBAAgB,aAAaT,EAAIO,YAAYQ,KAAK,MAAQf,EAAIgB,kBAAkBC,GAAG,CAAC,SAAWjB,EAAIkB,UAAUC,YAAYnB,EAAIoB,GAAG,CAAC,CAACC,IAAI,gBAAgBC,GAAG,WAAW,MAAO,CAAClB,EAAG,mBAAmB,CAACE,MAAM,CAAC,WAAW,EAAE,gBAA+C,IAA/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,GAEV4C,MAAO,CACLC,kBAAmB,GACnBC,WAAY,IAIdC,4BAA6B,GAC7BC,eAAgB,GAChBrC,kBAAmB,GACnB4B,eAAN,IAIEsB,QAAS,CAEPC,eAFJ,aAMI,iBANJ,WAMA,wKAEA,4DACA,4DACA,qCACA,gDALA,OAQA,sBARA,8CAYI,SAlBJ,WAkBA,wKAEA,qOAEA,KAFA,gCAGA,sBAHA,6BAKA,yEALA,kGAQA,gDAVA,8CAkBI,qBApCJ,WAoCA,wKAGA,kGAEA,uBAFA,uBAIA,GAJA,IAIA,0CAGA,GACA,0CACA,kCACA,UAGA,6BAbA,8BAmBA,2CAGA,gDAzBA,8CA8BI,cAlEJ,WAkEA,wJAEA,8EAFA,8CAMI3C,sBAxEJ,SAwEA,0BAEA,wBAFA,IAEA,0CACA,WAHA,gCAQI,eAhFJ,WAgFA,wJAEA,2YAEA,mBAFA,SAIA,+LAEA,sCACA,eACA,mFAJA,4CAOA,8DAXA,OAaA,mBAbA,4CAFA,+CAwBE,QAzIF,WAyIA,+JAEA,mBAFA,SAIA,qBAJA,uBAMA,qBANA,+CC9R2X,I,YCOvX4C,EAAY,eACd,EACA5E,EACA+D,GACA,EACA,KACA,KACA,MAIa,aAAAa,E","file":"js/chunk-2d22e165.68cba529.js","sourcesContent":["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},scopedSlots:_vm._u([{key:\"title-buttons\",fn:function(){return [_c('PrintLabelDialog',{attrs:{\"label-id\":2,\"disable-print\":_vm.printItemsOptions.length===0,\"list\":_vm.printItemsOptions,\"foreignKey\":_vm.form.expeditionId,\"foreign-key-column\":\"expeditionId\"},on:{\"onSubmit\":_vm.onSubmitPrint}},[(_vm.printItemsOptions.length > 0)?_c('table',{staticClass:\"table table-hover\"},[_c('thead',[_c('th',[_vm._v(\" Selecione os bags para impressão \"),_c('div',[_c('small',[_vm._v(\"Marcar: \"),_c('a',{staticClass:\"link-black\",on:{\"click\":function($event){return _vm.selectAllItemsToPrint(true)}}},[_vm._v(\"Todos\")]),_vm._v(\" / \"),_c('a',{staticClass:\"link-black\",on:{\"click\":function($event){return _vm.selectAllItemsToPrint(false)}}},[_vm._v(\"Nenhum\")])])])])]),_c('tbody',_vm._l((_vm.printItemsOptions),function(item,index){return _c('tr',{key:index},[_c('td',{staticClass:\"d-flex\"},[_c('t-input',{attrs:{\"checked\":\"\",\"label\":item.originCodeLabel},model:{value:(item.value),callback:function ($$v) {_vm.$set(item, \"value\", $$v)},expression:\"item.value\"}})],1)])}),0)]):_c('t-msg',{attrs:{\"danger\":\"\"}},[_vm._v(\"Nenhum bag inserido pela guia Produtos, insira antes de realizar a impressão\")])],1),(_vm.command !== 'insert')?_c('t-button',{on:{\"click\":function($event){return _vm.openDialogPrintLabel()}}},[_c('b-icon-printer'),_vm._v(\" Etiqueta Expedição \")],1):_vm._e(),((_vm.command === 'update' || _vm.command === 'view'))?_c('t-button',{attrs:{\"disabled\":!_vm.relationAccessSubValidation('sub-polimix-expedition-quality-report')},on:{\"click\":function($event){return _vm.downloadReport(7, _vm.form.expeditionId, 'LAUDO_QUALIDADE_' + _vm.form.expeditionNumber)}}},[_c('b-icon-file-earmark-check'),_vm._v(\" Laudo de Qualidade \")],1):_vm._e(),_c('t-button',{directives:[{name:\"show\",rawName:\"v-show\",value:((_vm.command === 'update' || _vm.command === 'view') && (_vm.form.finishedDate !== '' && _vm.form.finishedDate !== undefined)),expression:\"(command === 'update' || command === 'view') && (form.finishedDate !== '' && form.finishedDate !== undefined)\"}],attrs:{\"outline-danger\":\"\",\"sending\":_vm.reverseFinish,\"enable-loader\":\"\",\"title\":!_vm.relationAccessSubValidation('sub-expedition-reverse-finish') ? 'Perfil de acesso não habilitado para estorno de finalização' : '',\"disabled\":!_vm.relationAccessSubValidation('sub-expedition-reverse-finish')},on:{\"click\":function($event){return _vm.confirmReverse()}}},[_c('b-icon-clipboard-x',{staticClass:\"mr-1\"}),_vm._v(\" Estornar \")],1)]},proxy:true},{key:\"default\",fn:function(ref){\nvar status = ref.status;\nreturn [_c('t-input',{attrs:{\"hidden\":\"\"},model:{value:(_vm.form[_vm.fieldKey]),callback:function ($$v) {_vm.$set(_vm.form, _vm.fieldKey, $$v)},expression:\"form[fieldKey]\"}}),_c('t-form-tab',{attrs:{\"title\":\"Dados Básicos\"}},[_c('b-row',[_c('t-input',{attrs:{\"lpad\":\"3\",\"cols\":\"3\",\"label\":\"Cód. Expedição\",\"fixed\":\"\"},model:{value:(_vm.form.expeditionNumber),callback:function ($$v) {_vm.$set(_vm.form, \"expeditionNumber\", $$v)},expression:\"form.expeditionNumber\"}}),_c('t-input',{attrs:{\"add-error\":_vm.error.originInvoiceCode,\"cols\":\"3\",\"label\":\"Nota Fiscal\"},model:{value:(_vm.form.originInvoiceCode),callback:function ($$v) {_vm.$set(_vm.form, \"originInvoiceCode\", $$v)},expression:\"form.originInvoiceCode\"}}),_c('b-col',{attrs:{\"cols\":\"6\"}},[_c('t-input-person',{attrs:{\"customer\":\"\",\"status\":status,\"command\":_vm.command,\"required\":\"\",\"add-error\":_vm.error.customerId},model:{value:(_vm.form.customerId),callback:function ($$v) {_vm.$set(_vm.form, \"customerId\", $$v)},expression:\"form.customerId\"}})],1)],1),_c('b-row',[_c('t-input',{attrs:{\"required\":\"\",\"cols\":\"3\",\"options\":_vm.typeExpeditionStatusOptions,\"select\":\"\",\"first-default\":\"\",\"label\":\"Status Expedição\"},model:{value:(_vm.form.expeditionStatusId),callback:function ($$v) {_vm.$set(_vm.form, \"expeditionStatusId\", $$v)},expression:\"form.expeditionStatusId\"}}),_c('t-input',{attrs:{\"options\":_vm.companyOptions,\"cols\":\"3\",\"required\":\"\",\"label\":\"Empresa\",\"select\":\"\"},model:{value:(_vm.form.companyId),callback:function ($$v) {_vm.$set(_vm.form, \"companyId\", $$v)},expression:\"form.companyId\"}}),_c('t-input',{attrs:{\"required\":\"\",\"cols\":\"3\",\"date\":\"\",\"date-now\":\"\",\"label\":\"Data de Emissão\"},model:{value:(_vm.form.issueDate),callback:function ($$v) {_vm.$set(_vm.form, \"issueDate\", $$v)},expression:\"form.issueDate\"}}),_c('t-input',{attrs:{\"fixed\":\"\",\"cols\":\"3\",\"datetime\":\"\",\"label\":\"Data Finalizada\"},model:{value:(_vm.form.finishedDate),callback:function ($$v) {_vm.$set(_vm.form, \"finishedDate\", $$v)},expression:\"form.finishedDate\"}})],1),_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)]}},{key:\"out-of-form\",fn:function(){return [_c('t-form-tab',{attrs:{\"title\":\"Produtos\",\"hash\":\"product\",\"disabled\":!_vm.relationAccessPageGeneral('stock-expedition-order-product'),\"lazy\":\"\"}},[_c('ExpeditionOrderItem',{attrs:{\"foreign-key\":_vm.form.expeditionId}})],1)]},proxy:true}])})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./ExpeditionOrderForm.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!./ExpeditionOrderForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ExpeditionOrderForm.vue?vue&type=template&id=56a8d3cd&\"\nimport script from \"./ExpeditionOrderForm.vue?vue&type=script&lang=js&\"\nexport * from \"./ExpeditionOrderForm.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":""}