{"version":3,"sources":["webpack:///./src/services/modules/production/ProcessFlowStep.service.js","webpack:///./src/services/modules/production/ProcessFlow.service.js","webpack:///./src/views/modules/production/ProductionOrder/ProductionOrderBulkActionItem.vue?20d1","webpack:///./src/views/modules/production/ProductionOrder/ProductionOrderBulkActionForm.vue?6104","webpack:///./src/views/modules/production/ProductionOrder/ProductionOrderBulkActionItem.vue?2bb9","webpack:///./src/model/types/modules/production/StatusBulkOrderActionType.js","webpack:///./src/services/modules/production/TypeProductionStop.service.js","webpack:///src/views/modules/production/ProductionOrder/ProductionOrderBulkActionItem.vue","webpack:///./src/views/modules/production/ProductionOrder/ProductionOrderBulkActionItem.vue?3417","webpack:///./src/views/modules/production/ProductionOrder/ProductionOrderBulkActionItem.vue","webpack:///src/views/modules/production/ProductionOrder/ProductionOrderBulkActionForm.vue","webpack:///./src/views/modules/production/ProductionOrder/ProductionOrderBulkActionForm.vue?b87b","webpack:///./src/views/modules/production/ProductionOrder/ProductionOrderBulkActionForm.vue","webpack:///./src/model/types/resource/StatusBulkActionType.js","webpack:///./src/components/template/theme/t-bulk-status-badge.vue?2299","webpack:///src/components/template/theme/t-bulk-status-badge.vue","webpack:///./src/components/template/theme/t-bulk-status-badge.vue?1924","webpack:///./src/components/template/theme/t-bulk-status-badge.vue","webpack:///./src/views/modules/production/ProductionOrder/components/ProductionStatusBadge.vue?ccac","webpack:///src/views/modules/production/ProductionOrder/components/ProductionStatusBadge.vue","webpack:///./src/views/modules/production/ProductionOrder/components/ProductionStatusBadge.vue?8fdc","webpack:///./src/views/modules/production/ProductionOrder/components/ProductionStatusBadge.vue","webpack:///./src/services/modules/production/TypeStatusProduction.service.js","webpack:///./src/model/types/modules/production/StatusProductionOrderType.js"],"names":["path","processFlowStepService","processFlowId","grouped","params","URLSearchParams","append","http","list","service","productId","render","_vm","this","_h","$createElement","_c","_self","attrs","command","currentPage","pageTitle","form","productionBulkActionNumber","singularTitle","status","generalErrors","checkErrorsComponent","t","name","pageFormIsLoaded","on","onSubmit","scopedSlots","_u","key","fn","statusBulkAction","StatusBulkActionType","type","PENDING","onWizardTabChange","props","staticClass","activeTabIndex","style","nativeOn","$event","prevTab","_v","_s","_e","directives","rawName","value","isLastStep","expression","nextTab","processFlowOptions","model","callback","$$v","$set","refreshItems","fieldKey","fieldNumber","logControl","bulkActionTotal","qtyTotal","qtyErrors","qtyValidated","PROCESSING","qtyProcessed","proxy","PROCESSED","staticRenderFns","placeholder","filteredDefault","filteredAdvanced","searchNotExposeQuery","clearSearch","StatusBulkOrderActionType","StatusProductionOrderType","onlyView","staticStyle","listCopyUtilized","copyActionExecute","copyAction","checkViewListTableDefault","pageListIsLoaded","request","content","fieldsOnlyView","fields","totalPages","totalElements","getPageNotExposeQuery","ref","item","productionOrderCodeLabel","statusBulkItemAction","ERROR","errorDescription","hasDone","statusOrder","listFinished","updateBulkItem","productionBulkActionItemId","listPendingUtilized","action","FINISH_WITH_ERROR","typeStatusProductionOptions","SET_OPERATION_STATUS","typeStatusProductionCommonOptions","CHANGE_STEP","stepOptions","typeProductionOptions","userAuth","validation","deleteBulkItem","NONE","FINISH_WITH_SUCCESS","REVERSE","REINSTALL","DELETE","text","listPendingNotFlow","listPendingWithFlow","listCopyNotFlow","listCopyWithFlow","contains","typeInput","Type","selectList","mixins","pageDefaultMixin","components","data","foreignKeyColumn","productionBulkActionId","foreignKey","error","fieldsNotReset","headerBulkAction","statusOptions","foreignNumber","Number","required","String","default","Boolean","computed","onForm","methods","afterGetPage","defaultForm","defaultFormList","mountedPrepare","mountedPrepareFormListDefault","mountedList","listIsLoaded","component","genKey","enableGeneralFields","qtyPending","qtyProcess","waitSeconds","listAnalysis","qtyProcessing","nextIndex","getTotals","DONE","DONE_WITH_ERROR","STOPPED_PRODUCTION","BEFORE_PRODUCTION","SCHEDULED","PRODUCTION","get","then","response"],"mappings":"oMAGMA,EAAO,+BAEPC,E,gGAEF,WAA+C,IAApCC,EAAoC,uDAApB,EAAGC,EAAiB,wDAEvCC,EAAS,IAAI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V,CACIvE,MAAOf,EAAKsI,mBACZhD,KAAM,UAEV,CACIvE,MAAOf,EAAKoI,KACZ9C,KAAM,cAEV,CACIvE,MAAOf,EAAKqI,gBACZ/C,KAAM,wBAKRK,EAAW,SAAUC,GACvB,OAAOC,OAAKF,SAAS1H,EAAM2H,IAGzB5B,EAAU,SAAS3E,GACrB,OAAOA,IAAMW,EAAKoI,MAAQ/I,IAAMW,EAAKqI,iBAG1B,QACXrI,OACA/B,OACA0H,WACA3B","file":"js/chunk-9bd2704e.159f7989.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 = \"production/process-flow-step\"\r\n\r\nclass processFlowStepService {\r\n\r\n selectList(processFlowId = 0, grouped = false) {\r\n\r\n let params = new URLSearchParams()\r\n\r\n if (processFlowId > 0)\r\n params.append(\"processFlowId\", processFlowId)\r\n\r\n if(grouped)\r\n params.append(\"grouped\", \"true\")\r\n\r\n return http.list(path + \"/selectList\", params);\r\n\r\n }\r\n\r\n}\r\n\r\nexport default new processFlowStepService();\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 = \"production/process-flow\"\r\n\r\nclass service {\r\n\r\n selectList(params) {\r\n\r\n return http.list(path + \"/selectList\", params);\r\n\r\n }\r\n\r\n findApplicableByProductId(productId){\r\n\r\n return http.list(path + \"/findApplicableByProductId/\"+productId);\r\n\r\n }\r\n\r\n}\r\n\r\nexport default new service();\r\n\r\n\r\n","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProductionOrderBulkActionItem.vue?vue&type=style&index=0&lang=css&\"","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:{\"card\":\"\",\"title\":_vm.command === 'insert' ? _vm.currentPage.pageTitle : _vm.currentPage.pageTitle + ' - Nº ' + _vm.form.productionBulkActionNumber,\"submit-text-not-default\":_vm.command !== 'delete',\"submit-text\":_vm.command === 'delete' ? _vm.currentPage.singularTitle : '',\"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:\"default\",fn:function(){return [(_vm.pageFormIsLoaded && _vm.form.statusBulkAction === _vm.StatusBulkActionType.type.PENDING)?_c('div',[_c('form-wizard',{attrs:{\"title\":\"\",\"start-index\":_vm.command === 'insert' ? 0 : 1,\"subtitle\":\"\"},on:{\"on-change\":_vm.onWizardTabChange},scopedSlots:_vm._u([{key:\"footer\",fn:function(props){return [_c('div',{staticClass:\"wizard-footer-left\"},[(props.activeTabIndex > 1)?_c('t-button',{style:(props.fillButtonStyle),attrs:{\"outline-primary\":\"\"},nativeOn:{\"click\":function($event){return props.prevTab()}}},[_c('b-icon-arrow-left',{staticClass:\"mr-2\"}),_vm._v(\" \"+_vm._s(_vm.t('go-back'))+\" \")],1):_vm._e()],1),(_vm.command === 'insert')?_c('div',{staticClass:\"wizard-footer-right\"},[_c('t-button',{attrs:{\"submit\":\"\",\"sending\":_vm.status === 'sending',\"primary\":\"\",\"text\":\"Enviar Dados em Massa\"}})],1):_c('div',{staticClass:\"wizard-footer-right\"},[_c('t-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!props.isLastStep),expression:\"!props.isLastStep\"}],style:(props.fillButtonStyle),attrs:{\"primary\":\"\"},nativeOn:{\"click\":function($event){return props.nextTab()}}},[_vm._v(_vm._s(_vm.t('next'))+\" \"),_c('b-icon-arrow-right',{staticClass:\"ml-2\"})],1),_c('t-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(props.isLastStep),expression:\"props.isLastStep\"}],attrs:{\"submit\":\"\",\"primary\":\"\",\"text\":\"Iniciar Processamento\"}})],1)]}}],null,false,2681148264)},[_c('tab-content',{attrs:{\"title\":\"Dados\"}},[_c('div',{staticClass:\"border-top pt-3\"},[_c('b-card-title',[_vm._v(\"Relação de Ordens de Fabricação\")]),_c('t-input',{attrs:{\"fixed\":_vm.command !== 'insert',\"options\":_vm.processFlowOptions,\"select\":\"\",\"placeholder\":\"Não\",\"label\":\"Deseja restringir a somente um fluxo de processos?\"},model:{value:(_vm.form.processFlowId),callback:function ($$v) {_vm.$set(_vm.form, \"processFlowId\", $$v)},expression:\"form.processFlowId\"}}),(_vm.command === 'insert')?_c('div',{staticClass:\"mt-3 pt-3 border-top\"},[_c('b-card-sub-title',[_vm._v(\"Informe as ordens que deseja realizar a ação em lote, sendo uma por linha \")]),_c('t-input',{attrs:{\"small\":\"\",\"required\":\"\",\"class-input\":\"h-min-200\",\"label\":\"Ordens de Fabricação\",\"max-length\":\"10000\",\"textarea\":\"\"},model:{value:(_vm.form.content),callback:function ($$v) {_vm.$set(_vm.form, \"content\", $$v)},expression:\"form.content\"}})],1):_c('div',{staticClass:\"p-5\"},[_c('t-msg',{attrs:{\"info\":\"\"}},[_vm._v(\"Dados enviados com sucesso! Verifique a guia Análise para detalhar as informações\")])],1)],1)]),_c('tab-content',{attrs:{\"title\":\"Análise\"}},[_c('div',{staticClass:\"border-top pt-3\"},[_c('b-card-title',[_vm._v(\"Verifique as ações desejadas\")]),(_vm.pageFormIsLoaded && !_vm.refreshItems && _vm.command !== 'insert')?_c('ProductionOrderBulkActionItem',{attrs:{\"placeholder\":\"Cód. da Ordem de Fabricação\",\"foreign-key\":_vm.form[_vm.fieldKey],\"foreign-number\":_vm.form[_vm.fieldNumber]}}):_vm._e()],1)]),_c('tab-content',{attrs:{\"title\":\"Resumo\"}},[_c('div',{staticClass:\"border-top pt-3\"},[_c('b-card-title',[_vm._v(\"Resumo\")]),(_vm.pageFormIsLoaded && _vm.command !== 'insert')?_c('b-row',[_c('t-input',{attrs:{\"cols\":\"6\",\"label\":\"Usuário\",\"fixed\":\"\"},model:{value:(_vm.form.logControl.createdUser),callback:function ($$v) {_vm.$set(_vm.form.logControl, \"createdUser\", $$v)},expression:\"form.logControl.createdUser\"}}),_c('t-input',{attrs:{\"cols\":\"6\",\"label\":\"Data Cadastro\",\"fixed\":\"\",\"datetime\":\"\"},model:{value:(_vm.form.logControl.createdDate),callback:function ($$v) {_vm.$set(_vm.form.logControl, \"createdDate\", $$v)},expression:\"form.logControl.createdDate\"}})],1):_vm._e(),_c('div',{staticClass:\"no-gutters row\"},[_c('div',{staticClass:\"col-sm-6 col-md-4 col-xl-4\"},[_c('div',{staticClass:\"card no-shadow rm-border bg-transparent widget-chart text-left\"},[_c('div',{staticClass:\"icon-wrapper rounded-circle\"},[_c('div',{staticClass:\"icon-wrapper-bg opacity-10 bg-warning d-flex align-items-center\"},[_c('i',{staticClass:\"pe-7s-info text-white\"})])]),_c('div',{staticClass:\"widget-chart-content\"},[_c('div',{staticClass:\"widget-subheading\"},[_vm._v(\"Qtd. Total\")]),_c('div',{staticClass:\"widget-numbers\"},[_vm._v(_vm._s(_vm.bulkActionTotal.qtyTotal))])])]),_c('div',{staticClass:\"divider m-0 d-md-none d-sm-block\"})]),_c('div',{staticClass:\"col-sm-6 col-md-4 col-xl-4\"},[_c('div',{staticClass:\"card no-shadow rm-border bg-transparent widget-chart text-left\"},[_c('div',{staticClass:\"icon-wrapper rounded-circle\"},[_c('div',{staticClass:\"icon-wrapper-bg opacity-9 bg-danger d-flex align-items-center\"},[_c('i',{staticClass:\"pe-7s-trash text-white\"})])]),_c('div',{staticClass:\"widget-chart-content\"},[_c('div',{staticClass:\"widget-subheading\"},[_vm._v(\"Qtd. Erros\")]),_c('div',{staticClass:\"widget-numbers\"},[_c('span',[_vm._v(_vm._s(_vm.bulkActionTotal.qtyErrors))])])])]),_c('div',{staticClass:\"divider m-0 d-md-none d-sm-block\"})]),_c('div',{staticClass:\"col-sm-12 col-md-4 col-xl-4\"},[_c('div',{staticClass:\"card no-shadow rm-border bg-transparent widget-chart text-left\"},[_c('div',{staticClass:\"icon-wrapper rounded-circle\"},[_c('div',{staticClass:\"icon-wrapper-bg opacity-9 bg-success d-flex align-items-center\"},[_c('i',{staticClass:\"pe-7s-check text-white\"})])]),_c('div',{staticClass:\"widget-chart-content\"},[_c('div',{staticClass:\"widget-subheading\"},[_vm._v(\"Qtd. Válido\")]),_c('div',{staticClass:\"widget-numbers text-success\"},[_c('span',[_vm._v(_vm._s(_vm.bulkActionTotal.qtyValidated))])])])])])])],1)])],1)],1):_c('div',[_c('b-card-title',[_vm._v(\"Dados Básicos\")]),(_vm.pageFormIsLoaded)?_c('b-row',[_c('t-input',{attrs:{\"cols\":\"4\",\"label\":\"Data Cadastro\",\"fixed\":\"\",\"datetime\":\"\"},model:{value:(_vm.form.logControl.createdDate),callback:function ($$v) {_vm.$set(_vm.form.logControl, \"createdDate\", $$v)},expression:\"form.logControl.createdDate\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"label\":\"InÃcio do Processamento\",\"fixed\":\"\",\"datetime\":\"\"},model:{value:(_vm.form.generalStartDate),callback:function ($$v) {_vm.$set(_vm.form, \"generalStartDate\", $$v)},expression:\"form.generalStartDate\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"label\":\"Término do Processamento\",\"fixed\":\"\",\"datetime\":\"\"},model:{value:(_vm.form.generalFinishDate),callback:function ($$v) {_vm.$set(_vm.form, \"generalFinishDate\", $$v)},expression:\"form.generalFinishDate\"}})],1):_vm._e(),(_vm.form.statusBulkAction === _vm.StatusBulkActionType.type.PROCESSING)?_c('div',[_c('h6',[_vm._v(\"Em processamento, por favor aguarde\")]),_c('b-progress',{attrs:{\"height\":\"2rem\",\"value\":_vm.bulkActionTotal.qtyProcessed,\"max\":_vm.bulkActionTotal.qtyValidated,\"show-progress\":\"\",\"animated\":\"\"}},[_c('b-progress-bar',{attrs:{\"value\":_vm.bulkActionTotal.qtyProcessed}},[_vm._v(_vm._s(_vm.bulkActionTotal.qtyProcessed)+\" / \"+_vm._s(_vm.bulkActionTotal.qtyValidated)+\" \")])],1)],1):_vm._e()],1)]},proxy:true},(_vm.pageFormIsLoaded && (_vm.form.statusBulkAction === _vm.StatusBulkActionType.type.PROCESSED))?{key:\"out-of-form\",fn:function(){return [_c('b-card',{staticClass:\"mt-3\"},[_c('b-card-title',[_vm._v(\"Itens desta ação em massa\")]),(_vm.pageFormIsLoaded && !_vm.refreshItems)?_c('ProductionOrderBulkActionItem',{attrs:{\"placeholder\":\"Cód. da Ordem de Fabricação\",\"only-view\":\"\",\"foreign-key\":_vm.form[_vm.fieldKey],\"foreign-number\":_vm.form[_vm.fieldNumber]}}):_vm._e()],1)]},proxy:true}:null],null,true)})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('b-row',[_c('b-col',{staticClass:\"ml-0 mr-0\",attrs:{\"cols\":\"12\"}},[_c('div',{staticClass:\"form-inline page-list-search\"},[_c('t-content-header-search-default',{attrs:{\"placeholder\":_vm.placeholder,\"filtered-default\":_vm.filteredDefault,\"filtered-advanced\":_vm.filteredAdvanced,\"search-form\":_vm.form},on:{\"searchChange\":function($event){return _vm.searchNotExposeQuery()},\"onClearSearch\":function($event){return _vm.clearSearch()}}},[_c('t-input',{attrs:{\"label\":\"Status Processamento do Item\",\"checkbox\":\"\",\"options\":_vm.StatusBulkActionType.list},model:{value:(_vm.form.statusBulkItemAction),callback:function ($$v) {_vm.$set(_vm.form, \"statusBulkItemAction\", $$v)},expression:\"form.statusBulkItemAction\"}}),_c('t-input',{attrs:{\"label\":\"Ação desejada\",\"checkbox\":\"\",\"options\":_vm.StatusBulkOrderActionType.list},model:{value:(_vm.form.action),callback:function ($$v) {_vm.$set(_vm.form, \"action\", $$v)},expression:\"form.action\"}}),_c('t-input-search',{attrs:{\"select\":\"\",\"options\":_vm.StatusProductionOrderType.list,\"label\":\"Status Ordem de Fabricação\"},model:{value:(_vm.form.statusOrder),callback:function ($$v) {_vm.$set(_vm.form, \"statusOrder\", $$v)},expression:\"form.statusOrder\"}})],1),(!_vm.onlyView)?_c('t-input',{staticClass:\"ml-2\",staticStyle:{\"margin-top\":\"-8px\"},attrs:{\"options\":_vm.listCopyUtilized,\"select\":\"\",\"hide-label\":\"\",\"placeholder\":\"Replicar ação desejada \"},on:{\"change\":function($event){return _vm.copyActionExecute()}},model:{value:(_vm.copyAction),callback:function ($$v) {_vm.copyAction=$$v},expression:\"copyAction\"}}):_vm._e()],1)])],1),_c('t-table',{staticClass:\"mt-2\",attrs:{\"show\":_vm.checkViewListTableDefault(),\"filtered\":_vm.filteredDefault || _vm.filteredAdvanced,\"busy\":!_vm.pageListIsLoaded,\"items\":_vm.request.content,\"fields\":_vm.onlyView ? _vm.fieldsOnlyView : _vm.fields,\"total-pages\":_vm.request.totalPages,\"total-elements\":_vm.request.totalElements,\"title-items\":\"Itens\",\"disable-actions-column\":\"\",\"link-primary-column\":\"productionOrderCodeLabel\",\"primary-key-column\":\"productionBulkActionItemId\"},on:{\"getPage\":_vm.getPageNotExposeQuery},scopedSlots:_vm._u([{key:\"first-column\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(item.productionOrderCodeLabel)+\" \")]}},{key:\"item(action)\",fn:function(ref){\nvar item = ref.item;\nreturn [(item.statusBulkItemAction === _vm.StatusBulkActionType.type.ERROR)?_c('div',[_vm._v(\" Erro: \"+_vm._s(item.errorDescription)+\" \")]):_c('div',[(_vm.StatusProductionOrderType.hasDone(item.statusOrder))?_c('t-input',{staticClass:\"list_items_bulk_action\",attrs:{\"radio\":\"\",\"hide-label\":\"\",\"fixed\":_vm.onlyView,\"options\":_vm.StatusBulkOrderActionType.listFinished},on:{\"click\":function($event){return _vm.updateBulkItem(item.productionBulkActionItemId)}},model:{value:(item.action),callback:function ($$v) {_vm.$set(item, \"action\", $$v)},expression:\"item.action\"}}):_c('div',[_c('t-input',{staticClass:\"list_items_bulk_action\",attrs:{\"radio\":\"\",\"hide-label\":\"\",\"fixed\":_vm.onlyView,\"options\":_vm.listPendingUtilized},on:{\"click\":function($event){return _vm.updateBulkItem(item.productionBulkActionItemId)}},model:{value:(item.action),callback:function ($$v) {_vm.$set(item, \"action\", $$v)},expression:\"item.action\"}}),(item.action === _vm.StatusBulkOrderActionType.type.FINISH_WITH_ERROR)?_c('div',{staticStyle:{\"max-width\":\"300px\"}},[_c('t-input',{attrs:{\"required\":\"\",\"select\":\"\",\"fixed\":_vm.onlyView,\"options\":_vm.typeStatusProductionOptions,\"label\":\"Status do Erro\"},on:{\"change\":function($event){return _vm.updateBulkItem(item.productionBulkActionItemId)}},model:{value:(item.operationStatusId),callback:function ($$v) {_vm.$set(item, \"operationStatusId\", $$v)},expression:\"item.operationStatusId\"}})],1):_vm._e(),(item.action === _vm.StatusBulkOrderActionType.type.SET_OPERATION_STATUS)?_c('div',{staticStyle:{\"max-width\":\"300px\"}},[_c('t-input',{attrs:{\"required\":\"\",\"select\":\"\",\"fixed\":_vm.onlyView,\"options\":_vm.typeStatusProductionCommonOptions,\"label\":\"Status Operacional\"},on:{\"change\":function($event){return _vm.updateBulkItem(item.productionBulkActionItemId)}},model:{value:(item.operationStatusId),callback:function ($$v) {_vm.$set(item, \"operationStatusId\", $$v)},expression:\"item.operationStatusId\"}})],1):(item.action === _vm.StatusBulkOrderActionType.type.CHANGE_STEP)?_c('div',{staticStyle:{\"max-width\":\"500px\"}},[_c('t-input',{attrs:{\"required\":\"\",\"select\":\"\",\"fixed\":_vm.onlyView,\"options\":_vm.stepOptions,\"label\":\"Etapa\"},on:{\"change\":function($event){return _vm.updateBulkItem(item.productionBulkActionItemId)}},model:{value:(item.processFlowStepId),callback:function ($$v) {_vm.$set(item, \"processFlowStepId\", $$v)},expression:\"item.processFlowStepId\"}}),_c('t-input',{attrs:{\"required\":\"\",\"select\":\"\",\"fixed\":_vm.onlyView,\"options\":_vm.typeProductionOptions,\"label\":\"Motivo\"},on:{\"change\":function($event){return _vm.updateBulkItem(item.productionBulkActionItemId)}},model:{value:(item.typeStopId),callback:function ($$v) {_vm.$set(item, \"typeStopId\", $$v)},expression:\"item.typeStopId\"}})],1):_vm._e()],1)],1)]}},{key:\"item(statusOrder)\",fn:function(ref){\nvar item = ref.item;\nreturn [(item.statusBulkItemAction !== _vm.StatusBulkActionType.type.ERROR)?_c('ProductionStatusBadge',{attrs:{\"status\":item.statusOrder}}):_vm._e()]}},(!_vm.onlyView)?{key:\"item(delete)\",fn:function(ref){\nvar item = ref.item;\nreturn [(_vm.userAuth.validation.validationDelete)?_c('b-button',{staticClass:\"opacity-3-hover\",attrs:{\"size\":\"sm\",\"variant\":\"outline\"},on:{\"click\":function($event){return _vm.deleteBulkItem(item.productionBulkActionItemId)}}},[_c('b-icon',{attrs:{\"icon\":\"trash\",\"variant\":\"danger\"}})],1):_vm._e()]}}:null,{key:\"item(statusBulkItemAction)\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('t-bulk-status-badge',{attrs:{\"status\":item.statusBulkItemAction}})]}}],null,true)})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Type from \"@/model/types/Type\";\r\n\r\n\r\n\r\nconst type = {\r\n NONE : 1,\r\n FINISH_WITH_SUCCESS : 2,\r\n FINISH_WITH_ERROR : 3,\r\n REVERSE : 4,\r\n CHANGE_STEP:5,\r\n REINSTALL:6,\r\n SET_OPERATION_STATUS:7,\r\n DELETE : 90,\r\n}\r\n\r\nconst list = [\r\n {\r\n value: type.NONE,\r\n text: \"Nenhuma\",\r\n },\r\n {\r\n value: type.CHANGE_STEP,\r\n text: \"Alterar Etapa\",\r\n },\r\n {\r\n value: type.FINISH_WITH_SUCCESS,\r\n text: \"Finalizar com sucesso\",\r\n },\r\n {\r\n value: type.FINISH_WITH_ERROR,\r\n text: \"Finalizar com erro\",\r\n },\r\n {\r\n value: type.REVERSE,\r\n text: \"Estornar finalização\",\r\n },\r\n {\r\n value: type.REINSTALL,\r\n text: \"Atualizar Fluxo\",\r\n },\r\n {\r\n value: type.SET_OPERATION_STATUS,\r\n text: \"Alterar Status Operacional\",\r\n },\r\n {\r\n value: type.DELETE,\r\n text: \"Excluir\",\r\n },\r\n\r\n]\r\n\r\n/*Listagem somente se OF estiver pendente sem Fluxo informado*/\r\nconst listPendingNotFlow = [\r\n {\r\n value: type.NONE,\r\n text: \"Nenhuma\",\r\n },\r\n {\r\n value: type.FINISH_WITH_SUCCESS,\r\n text: \"Finalizar com sucesso\",\r\n },\r\n {\r\n value: type.FINISH_WITH_ERROR,\r\n text: \"Finalizar com erro\",\r\n },\r\n {\r\n value: type.REINSTALL,\r\n text: \"Atualizar Fluxo\",\r\n },\r\n {\r\n value: type.SET_OPERATION_STATUS,\r\n text: \"Alterar Status Operacional\",\r\n },\r\n {\r\n value: type.DELETE,\r\n text: \"Excluir\",\r\n },\r\n\r\n]\r\n\r\n/*Listagem somente se OF estiver pendente com Fluxo informado*/\r\nconst listPendingWithFlow = [\r\n {\r\n value: type.NONE,\r\n text: \"Nenhuma\",\r\n },\r\n {\r\n value: type.CHANGE_STEP,\r\n text: \"Alterar Etapa\",\r\n },\r\n {\r\n value: type.FINISH_WITH_SUCCESS,\r\n text: \"Finalizar com sucesso\",\r\n },\r\n {\r\n value: type.FINISH_WITH_ERROR,\r\n text: \"Finalizar com erro\",\r\n },\r\n {\r\n value: type.REINSTALL,\r\n text: \"Atualizar Fluxo\",\r\n },\r\n {\r\n value: type.SET_OPERATION_STATUS,\r\n text: \"Alterar Status Operacional\",\r\n },\r\n {\r\n value: type.DELETE,\r\n text: \"Excluir\",\r\n },\r\n\r\n]\r\n\r\n\r\n\r\n/*Listagem somente se OF estiver finalizada*/\r\nconst listFinished = [\r\n {\r\n value: type.NONE,\r\n text: \"Nenhuma\",\r\n },\r\n {\r\n value: type.REVERSE,\r\n text: \"Estornar finalização\",\r\n },\r\n {\r\n value: type.DELETE,\r\n text: \"Excluir\",\r\n },\r\n\r\n]\r\n\r\n/*Listagem somente para replicar ações sem fluxo informado*/\r\nconst listCopyNotFlow = [\r\n {\r\n value: type.NONE,\r\n text: \"Limpar todas\",\r\n },\r\n {\r\n value: type.FINISH_WITH_SUCCESS,\r\n text: \"Finalizar todos com sucesso\",\r\n },\r\n {\r\n value: type.FINISH_WITH_ERROR,\r\n text: \"Finalizar todos com erro\",\r\n },\r\n {\r\n value: type.REVERSE,\r\n text: \"Estornar finalização de todas\",\r\n },\r\n {\r\n value: type.REINSTALL,\r\n text: \"Atualizar Fluxo de todas\",\r\n },\r\n {\r\n value: type.SET_OPERATION_STATUS,\r\n text: \"Alterar Status Operacional de todas\",\r\n },\r\n {\r\n value: type.DELETE,\r\n text: \"Excluir todas\",\r\n },\r\n\r\n]\r\n/*Listagem somente para replicar ações com fluxo informado*/\r\nconst listCopyWithFlow = [\r\n {\r\n value: type.NONE,\r\n text: \"Limpar todas\",\r\n },\r\n {\r\n value: type.CHANGE_STEP,\r\n text: \"Alterar Etapa\",\r\n },\r\n {\r\n value: type.FINISH_WITH_SUCCESS,\r\n text: \"Finalizar todos com sucesso\",\r\n },\r\n {\r\n value: type.FINISH_WITH_ERROR,\r\n text: \"Finalizar todos com erro\",\r\n },\r\n {\r\n value: type.REVERSE,\r\n text: \"Estornar finalização de todas\",\r\n },\r\n {\r\n value: type.REINSTALL,\r\n text: \"Atualizar Fluxo de todas\",\r\n },\r\n {\r\n value: type.SET_OPERATION_STATUS,\r\n text: \"Alterar Status Operacional de todas\",\r\n },\r\n {\r\n value: type.DELETE,\r\n text: \"Excluir todas\",\r\n },\r\n\r\n]\r\n\r\nconst contains = function (typeInput) {\r\n return Type.contains(list, typeInput)\r\n}\r\n\r\nexport default {\r\n type,\r\n list,\r\n listPendingNotFlow,\r\n listPendingWithFlow,\r\n listFinished,\r\n listCopyNotFlow,\r\n listCopyWithFlow,\r\n contains,\r\n}\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 = \"production/type-stop\"\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 selectLisTypeReturn(){\r\n\r\n let params = new URLSearchParams()\r\n params.append(\"stepReturnEnabled\",\"true\")\r\n\r\n return this.selectList(params)\r\n\r\n }\r\n\r\n selectLisTypeStop(){\r\n\r\n let params = new URLSearchParams()\r\n params.append(\"productionBlockEnabled\",\"true\")\r\n\r\n return this.selectList(params)\r\n\r\n }\r\n\r\n}\r\n\r\nexport default new service();\r\n\r\n\r\n","<template>\n\n <div>\n\n <b-row>\n\n <b-col cols=\"12\" class=\"ml-0 mr-0\">\n\n <div class=\"form-inline page-list-search\">\n\n <t-content-header-search-default @searchChange=\"searchNotExposeQuery()\"\n @onClearSearch=\"clearSearch()\"\n :placeholder=\"placeholder\"\n :filtered-default=\"filteredDefault\" :filtered-advanced=\"filteredAdvanced\"\n :search-form=\"form\">\n\n <t-input v-model=\"form.statusBulkItemAction\" label=\"Status Processamento do Item\" checkbox\n :options=\"StatusBulkActionType.list\"/>\n\n <t-input v-model=\"form.action\" label=\"Ação desejada\" checkbox\n :options=\"StatusBulkOrderActionType.list\"/>\n\n\n <t-input-search v-model=\"form.statusOrder\" select :options=\"StatusProductionOrderType.list\"\n label=\"Status Ordem de Fabricação\"/>\n\n </t-content-header-search-default>\n\n <t-input v-if=\"!onlyView\" class=\"ml-2\" style=\"margin-top:-8px;\" :options=\"listCopyUtilized\"\n @change=\"copyActionExecute()\" v-model=\"copyAction\" select hide-label\n placeholder=\"Replicar ação desejada \"/>\n\n </div>\n\n </b-col>\n\n </b-row>\n\n <t-table\n @getPage=\"getPageNotExposeQuery\"\n :show=\"checkViewListTableDefault()\"\n class=\"mt-2\"\n :filtered=\"filteredDefault || filteredAdvanced\"\n :busy=\"!pageListIsLoaded\"\n :items=\"request.content\"\n :fields=\"onlyView ? fieldsOnlyView : fields\"\n :total-pages=\"request.totalPages\"\n :total-elements=\"request.totalElements\"\n title-items=\"Itens\"\n disable-actions-column\n link-primary-column=\"productionOrderCodeLabel\"\n primary-key-column=\"productionBulkActionItemId\">\n\n <template #first-column=\"{item}\">\n {{ item.productionOrderCodeLabel }}\n </template>\n\n <template #item(action)=\"{item}\">\n\n <div v-if=\"item.statusBulkItemAction === StatusBulkActionType.type.ERROR\">\n\n Erro: {{ item.errorDescription }}\n\n </div>\n\n <div v-else>\n\n <t-input radio\n hide-label\n v-model=\"item.action\"\n class=\"list_items_bulk_action\"\n :fixed=\"onlyView\"\n @click=\"updateBulkItem(item.productionBulkActionItemId)\"\n v-if=\"StatusProductionOrderType.hasDone(item.statusOrder)\"\n :options=\"StatusBulkOrderActionType.listFinished\"/>\n\n <div v-else>\n\n <t-input radio\n hide-label\n v-model=\"item.action\"\n class=\"list_items_bulk_action\"\n :fixed=\"onlyView\"\n @click=\"updateBulkItem(item.productionBulkActionItemId)\"\n :options=\"listPendingUtilized\"/>\n\n\n <div style=\"max-width: 300px\" v-if=\"item.action === StatusBulkOrderActionType.type.FINISH_WITH_ERROR\">\n\n <t-input\n v-model=\"item.operationStatusId\" required select\n :fixed=\"onlyView\"\n @change=\"updateBulkItem(item.productionBulkActionItemId)\"\n :options=\"typeStatusProductionOptions\" label=\"Status do Erro\"/>\n\n </div>\n\n <div style=\"max-width: 300px\" v-if=\"item.action === StatusBulkOrderActionType.type.SET_OPERATION_STATUS\">\n\n <t-input\n v-model=\"item.operationStatusId\" required select\n :fixed=\"onlyView\"\n @change=\"updateBulkItem(item.productionBulkActionItemId)\"\n :options=\"typeStatusProductionCommonOptions\" label=\"Status Operacional\"/>\n\n </div>\n\n <div style=\"max-width: 500px\" v-else-if=\"item.action === StatusBulkOrderActionType.type.CHANGE_STEP\">\n\n <t-input v-model=\"item.processFlowStepId\" required select\n :fixed=\"onlyView\"\n @change=\"updateBulkItem(item.productionBulkActionItemId)\"\n :options=\"stepOptions\"\n label=\"Etapa\"/>\n\n\n <t-input v-model=\"item.typeStopId\" required select\n :fixed=\"onlyView\"\n @change=\"updateBulkItem(item.productionBulkActionItemId)\"\n :options=\"typeProductionOptions\"\n label=\"Motivo\"/>\n\n </div>\n\n\n </div>\n\n\n </div>\n\n\n </template>\n\n\n <template #item(statusOrder)=\"{item}\">\n <ProductionStatusBadge :status=\"item.statusOrder\"\n v-if=\"item.statusBulkItemAction !== StatusBulkActionType.type.ERROR\"/>\n\n </template>\n\n\n <template #item(delete)=\"{item}\" v-if=\"!onlyView\">\n <b-button\n v-if=\"userAuth.validation.validationDelete\"\n @click=\"deleteBulkItem(item.productionBulkActionItemId)\"\n class=\"opacity-3-hover\"\n size=\"sm\" variant=\"outline\">\n <b-icon icon=\"trash\" variant=\"danger\"></b-icon>\n </b-button>\n </template>\n\n <template #item(statusBulkItemAction)=\"{item}\">\n <t-bulk-status-badge :status=\"item.statusBulkItemAction\"/>\n </template>\n\n\n </t-table>\n\n\n </div>\n\n\n</template>\n<style>\n.list_items_bulk_action .custom-control.custom-control-inline.custom-radio:last-child {\n color: var(--red) !important;\n}\n\n.list_items_bulk_action .bg-fixed-normal {\n background-color: transparent !important;\n border-color: transparent !important;\n font-size: .88rem;\n}\n\n</style>\n<script>\nimport pageDefaultMixin from \"@/mixins/page/pageDefaultMixin\"\nimport pageFormMixin from \"@/mixins/page/pageFormMixin\"\nimport pageFormListMixin from \"@/mixins/page/pageFormListMixin\"\nimport pageListMixin from \"@/mixins/page/pageListMixin\";\nimport StatusBulkActionType from \"@/model/types/resource/StatusBulkActionType\";\nimport ProductionStatusBadge from \"@/views/modules/production/ProductionOrder/components/ProductionStatusBadge\";\nimport StatusBulkOrderActionType from \"@/model/types/modules/production/StatusBulkOrderActionType\";\nimport StatusProductionOrderType from \"@/model/types/modules/production/StatusProductionOrderType\";\nimport TypeStatusProductionService from \"@/services/modules/production/TypeStatusProduction.service\";\nimport tBulkStatusBadge from \"@/components/template/theme/t-bulk-status-badge\"\nimport ui from \"@/assets/scripts/ui\";\nimport {crudGeneral} from \"@/services/resource/GeneralCRUD.service\";\nimport ProcessFlowStepService from \"@/services/modules/production/ProcessFlowStep.service\";\nimport TypeProductionStopService from \"@/services/modules/production/TypeProductionStop.service\";\n\nexport default {\n mixins: [pageDefaultMixin, pageFormMixin, pageFormListMixin, pageListMixin],\n components: {ProductionStatusBadge, tBulkStatusBadge},\n name: 'ProductKit',\n data() {\n return {\n path: \"production/bulk-action-item\", //Utilizar somente quando fora do padrão\n foreignKeyColumn: \"productionBulkActionId\", //Utilizar quando usar Tabs com outros componentes\n StatusBulkOrderActionType,\n StatusBulkActionType,\n StatusProductionOrderType,\n fields: [\n {key: \"productionOrderCodeLabel\", label: \"Ordem Fabricação\", cols: \"3\"},\n {key: \"issueDate\", label: \"Data Emissão\", cols: \"2\", formatter: \"date\"},\n {key: \"statusOrder\", label: \"Status atual\", cols: \"5\"},\n {key: \"action\", label: \"Ação desejada\", cols: \"5\"},\n {key: \"delete\", label: \"\", cols: \"1\"},\n ],\n fieldsOnlyView: [\n {key: \"productionOrderCodeLabel\", label: \"Ordem Fabricação\", cols: \"3\"},\n {key: \"issueDate\", label: \"Data Emissão\", cols: \"2\", formatter: \"date\"},\n {key: \"action\", label: \"Ação realizada\", cols: \"5\"},\n {key: \"statusBulkItemAction\", label: \"Status Processamento\", cols: \"2\"},\n ],\n form: {\n productionBulkActionId: this.foreignKey,\n productionBulkActionItemId: 0,\n statusOrder:0,\n action:[],\n statusBulkItemAction: [],\n },\n error: {//Campos que podem receber retorno de erro do backend\n\n },\n fieldsNotReset: [//Marca os nomes de colunas que não devem ser resetados\n this.foreignKeyColumn,\n ],\n //--------------------------------------------------------------------------------------\n headerBulkAction: {},\n listCopyUtilized: [],\n listPendingUtilized: [],\n typeProductionOptions:[],\n stepOptions: [],\n copyAction: 0,\n typeStatusProductionOptions: [],\n typeStatusProductionCommonOptions:[],\n statusOptions: [{value: 1, text: 'Ativos'}, {value: 2, text: 'Inativos'}],\n //--------------------------------------------------------------------------------------\n }\n },\n props: {\n foreignNumber: {\n type: Number,\n required: true,\n },\n placeholder: {\n type: String,\n default: ''\n },\n onlyView: Boolean,\n },\n computed: {\n onForm() {\n return this.form\n }\n },\n methods: {\n\n afterGetPage() {\n\n\n for (let item of this.request.content) {\n\n if (item.statusBulkItemAction === StatusBulkActionType.type.ERROR) {\n item.class = 'alert-danger'\n }\n\n }\n\n },\n\n defaultForm() {\n\n //Preenche somente os campos que foram limpos após o reset\n this.defaultFormList()\n\n\n },\n\n mountedPrepare() {\n delete this.form.status\n this.pageFormIsLoaded = false\n this.mountedPrepareFormListDefault()\n\n },\n\n async mountedContinued() {\n\n\n //Leitura do objeto cabeçalho\n await crudGeneral.getById(this.path.replace('-item', ''), this.foreignNumber).then(async (response) => {\n this.headerBulkAction = response.data\n })\n\n //Verifica qual a listagem utilizar se for informado um fluxo ou não\n if (this.headerBulkAction.processFlowId > 0) {\n\n this.listCopyUtilized = StatusBulkOrderActionType.listCopyWithFlow\n this.listPendingUtilized = StatusBulkOrderActionType.listPendingWithFlow\n\n //Obtem a listagem de etapas de acordo com o fluxo informado\n await ProcessFlowStepService.selectList(this.headerBulkAction.processFlowId)\n .then(list => this.stepOptions = list)\n .catch(error => this.responseError(error))\n\n } else {\n this.listCopyUtilized = StatusBulkOrderActionType.listCopyNotFlow\n this.listPendingUtilized = StatusBulkOrderActionType.listPendingNotFlow\n }\n\n await TypeProductionStopService.selectLisTypeReturn()\n .then(list => this.typeProductionOptions = list)\n .catch(error => this.responseError(error))\n\n this.searchParams.append(this.foreignKeyColumn, this.foreignKey.toString())\n\n await TypeStatusProductionService.getStatusFinishError()\n .then(list => this.typeStatusProductionOptions = list)\n .catch(error => this.responseError(error))\n\n await TypeStatusProductionService.getCommon()\n .then(list => this.typeStatusProductionCommonOptions = list)\n .catch(error => this.responseError(error))\n\n\n\n this.pageFormIsLoaded = true\n\n await this.getPageNotExposeQuery()\n\n },\n\n async onSubmit() {\n\n //Não fazer nada neste caso\n\n\n },\n\n mountedList() {\n\n this.listIsLoaded = true\n\n },\n //--------------------------------------------------------------------------------------\n //InÃcio de métodos personalizados desta tela\n async copyActionExecute() {\n\n if (this.copyAction > 0) {\n\n const action = this.copyAction\n\n let option = this.listCopyUtilized.find(a => a.value === this.copyAction)\n let msg = \"Tem certeza que deseja selecionar a seguinte ação em massa em todos os registros?<br /><br /><b>\" + option.text + \"</b>\"\n\n\n if (this.copyAction === StatusBulkOrderActionType.type.NONE) {\n msg += \"<br /><br />Obs.: Esta opção irá limpar as escolhas e deixar todas as ordem com a opção 'Nenhuma' e assim você poderá realizar as escolhas novamente\"\n }else if (this.copyAction === StatusBulkOrderActionType.type.REVERSE) {\n msg += \"<br /><br />Obs.: Será aplicado somente em Ordens Finalizadas\"\n } else if (this.copyAction === StatusBulkOrderActionType.type.FINISH_WITH_SUCCESS) {\n msg += \"<br /><br />Obs.: Será aplicado somente em Ordens em andamento\"\n\n }else if(this.copyAction === StatusBulkOrderActionType.type.FINISH_WITH_ERROR){\n\n msg += \"<br /><em>Escolha o status de finalização com erro</em><br />\"\n\n for (const alternative of this.typeStatusProductionOptions) {\n\n msg += \"<div class=\\\"position-relative form-check\\\">\" +\n \"<label class=\\\"form-check-label\\\">\" +\n \"<input name=\\\"alternativeOperationStatus\\\" type=\\\"radio\\\" value='\" + alternative.value + \"' class=\\\"form-check-input\\\"> \" + alternative.text + \" </label>\" +\n \"</div>\"\n\n }\n\n msg += \"<br /><br />Obs.: Será aplicado somente em Ordens em andamento\"\n\n }else if(this.copyAction === StatusBulkOrderActionType.type.SET_OPERATION_STATUS){\n\n msg += \"<br /><em>Escolha o status operacional</em><br />\"\n\n for (const alternative of this.typeStatusProductionCommonOptions) {\n\n msg += \"<div class=\\\"position-relative form-check\\\">\" +\n \"<label class=\\\"form-check-label\\\">\" +\n \"<input name=\\\"alternativeOperationStatus\\\" type=\\\"radio\\\" value='\" + alternative.value + \"' class=\\\"form-check-input\\\"> \" + alternative.text + \" </label>\" +\n \"</div>\"\n\n }\n\n msg += \"<br /><br />Obs.: Será aplicado somente em Ordens em andamento\"\n\n } else if (this.copyAction === StatusBulkOrderActionType.type.CHANGE_STEP) {\n\n for (const alternative of this.stepOptions) {\n\n msg += \"<div class=\\\"position-relative form-check\\\">\" +\n \"<label class=\\\"form-check-label\\\">\" +\n \"<input name=\\\"alternativeStep\\\" type=\\\"radio\\\" value='\" + alternative.value + \"' class=\\\"form-check-input\\\"> \" + alternative.text + \" </label>\" +\n \"</div>\"\n\n }\n\n\n msg += \"<br /><b>Motivo</b><br />\"\n\n for (const alternative of this.typeProductionOptions) {\n\n msg += \"<div class=\\\"position-relative form-check\\\">\" +\n \"<label class=\\\"form-check-label\\\">\" +\n \"<input name=\\\"alternativeTypeStop\\\" type=\\\"radio\\\" value='\" + alternative.value + \"' class=\\\"form-check-input\\\"> \" + alternative.text + \" </label>\" +\n \"</div>\"\n\n }\n\n\n msg += \"<br /><br />Obs.: Será aplicado somente em Ordens em andamento\"\n\n\n }\n\n setTimeout(() => {\n this.copyAction = 0\n }, 100)\n\n await ui.msgConfirm(this, 'Seleção rápida', msg, async () => {\n\n if (action === StatusBulkOrderActionType.type.CHANGE_STEP) {\n\n const processFlowStepId = ui.getAlternativeNativeValue(\"alternativeStep\")\n const typeStopId = ui.getAlternativeNativeValue(\"alternativeTypeStop\")\n\n if (processFlowStepId === 0 || typeStopId === 0) {\n ui.msgError(this, 'Para continuar é necessário que você selecione qual a etapa deseja replicar e o motivo da alteração de etapa')\n } else {\n await this.copyActionExecuteContinued(action, 0 , processFlowStepId, typeStopId)\n }\n\n } else if(action === StatusBulkOrderActionType.type.FINISH_WITH_ERROR || action === StatusBulkOrderActionType.type.SET_OPERATION_STATUS){\n\n const operationStatusId = ui.getAlternativeNativeValue(\"alternativeOperationStatus\")\n\n if (operationStatusId === 0) {\n ui.msgError(this, 'Para continuar é necessário que você selecione qual o status operacional deseja replicar')\n } else {\n await this.copyActionExecuteContinued(action, operationStatusId)\n }\n\n } else {\n await this.copyActionExecuteContinued(action)\n }\n\n })\n\n }\n\n },\n\n async copyActionExecuteContinued(action, operationStatusId = 0, processFlowStepId = 0, typeStopId = 0) {\n\n await crudGeneral.get(this.path + \"/copyAction/?productionBulkActionId=\" + this.foreignKey + \"&action=\" + action+ \"&operationStatusId=\" + operationStatusId+ \"&processFlowStepId=\" + processFlowStepId + \"&typeStopId=\" + typeStopId).then(() => {\n\n ui.toast(this, \"Informação\", \"Ações replicadas com sucesso!\")\n this.getPageNotExposeQuery(this.pageNumber)\n\n }).catch(error => this.responseError(error))\n\n },\n\n async updateBulkItem(id) {\n\n if (!this.onlyView) {\n\n let obj = this.request.content.find(a => a.productionBulkActionItemId === id)\n\n if (obj !== null) {\n\n let operationStatusId = 0\n let processFlowStepId = 0\n let typeStopId = 0\n\n if (obj.action === StatusBulkOrderActionType.type.FINISH_WITH_ERROR) {\n\n operationStatusId = obj.operationStatusId\n\n if (operationStatusId === 0 || operationStatusId === undefined) {\n //Seleciona a primera opção por padrão dos status com erro\n operationStatusId = this.typeStatusProductionOptions[0].value\n obj.operationStatusId = operationStatusId\n }\n\n }else if (obj.action === StatusBulkOrderActionType.type.SET_OPERATION_STATUS) {\n\n operationStatusId = obj.operationStatusId\n\n if (operationStatusId === 0 || operationStatusId === undefined) {\n //Seleciona a primera opção por padrão dos status com erro\n operationStatusId = this.typeStatusProductionCommonOptions[0].value\n obj.operationStatusId = operationStatusId\n }\n\n }else if(obj.action === StatusBulkOrderActionType.type.CHANGE_STEP){\n\n processFlowStepId = obj.processFlowStepId\n typeStopId = obj.typeStopId\n\n if (processFlowStepId === 0 || processFlowStepId === undefined) {\n //Seleciona a primera opção por padrão das etapas do fluxo\n processFlowStepId = this.stepOptions[0].value\n obj.processFlowStepId = processFlowStepId\n }\n\n if (typeStopId === 0 || typeStopId === undefined) {\n //Seleciona a primera opção por padrão dos tipos de retorno motivo\n typeStopId = this.typeProductionOptions[0].value\n obj.typeStopId = typeStopId\n }\n\n }\n\n const update = {\n productionBulkActionId: this.foreignKey,\n productionBulkActionItemId: id,\n action: obj.action,\n statusBulkItemAction: StatusBulkActionType.type.PENDING,\n operationStatusId,\n processFlowStepId,\n typeStopId,\n status: 1,\n\n }\n\n await crudGeneral.update(this.path, update).then(() => {\n\n\n }).catch(error => alert(error))\n\n }\n\n }\n\n\n },\n\n async deleteBulkItem(id) {\n\n if (!this.onlyView) {\n\n ui.msgConfirmDelete(this, async () => {\n\n await crudGeneral.remove(this.path, id).then(() => {\n\n ui.toast(this, \"Informação\", \"Exclusão do item da ação em massa realizada com sucesso!\")\n this.getPageNotExposeQuery(this.pageNumber)\n\n }).catch(error => alert(error))\n }, 'Tem certeza que deseja remover este item desta ação em massa?')\n\n }\n\n\n }\n\n //--------------------------------------------------------------------------------------\n },\n async mounted() {\n\n this.mountedPrepare()\n\n await this.mountedFormList()\n\n await this.mountedContinued()\n\n },\n}\n</script>\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!./ProductionOrderBulkActionItem.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!./ProductionOrderBulkActionItem.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProductionOrderBulkActionItem.vue?vue&type=template&id=6273c02a&\"\nimport script from \"./ProductionOrderBulkActionItem.vue?vue&type=script&lang=js&\"\nexport * from \"./ProductionOrderBulkActionItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProductionOrderBulkActionItem.vue?vue&type=style&index=0&lang=css&\"\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","<template>\n\n <t-page>\n\n <t-page-form card\n :title=\"command === 'insert' ? currentPage.pageTitle : currentPage.pageTitle + ' - Nº ' + form.productionBulkActionNumber\"\n :submit-text-not-default=\"command !== 'delete'\"\n :submit-text=\"command === 'delete' ? currentPage.singularTitle : ''\"\n :command=\"command\" :status=\"status\" :generalErrors=\"generalErrors\" @onSubmit=\"onSubmit\"\n :check-errors-again=\"checkErrorsComponent\"\n :go-back-title=\"t('go-back-list')\" :go-back-to=\"currentPage.name\" :busy=\"!pageFormIsLoaded\">\n\n <template #default>\n\n <div v-if=\"pageFormIsLoaded && form.statusBulkAction === StatusBulkActionType.type.PENDING\">\n\n <form-wizard title=\"\" @on-change=\"onWizardTabChange\" :start-index=\"command === 'insert' ? 0 : 1\" subtitle=\"\">\n\n <tab-content title=\"Dados\">\n\n <div class=\"border-top pt-3\">\n <b-card-title>Relação de Ordens de Fabricação</b-card-title>\n\n <t-input v-model=\"form.processFlowId\"\n :fixed=\"command !== 'insert'\"\n :options=\"processFlowOptions\"\n select\n placeholder=\"Não\"\n label=\"Deseja restringir a somente um fluxo de processos?\"/>\n\n <div v-if=\"command === 'insert'\" class=\"mt-3 pt-3 border-top\">\n\n <b-card-sub-title>Informe as ordens que deseja realizar a ação em lote, sendo uma por linha\n </b-card-sub-title>\n\n <t-input v-model=\"form.content\" small=\"\" required class-input=\"h-min-200\" label=\"Ordens de Fabricação\"\n max-length=\"10000\" textarea/>\n\n </div>\n\n <div v-else class=\"p-5\">\n\n <t-msg info>Dados enviados com sucesso! Verifique a guia Análise para detalhar as informações</t-msg>\n\n </div>\n\n\n </div>\n\n\n </tab-content>\n\n <tab-content title=\"Análise\">\n\n <div class=\"border-top pt-3\">\n\n <b-card-title>Verifique as ações desejadas</b-card-title>\n\n <ProductionOrderBulkActionItem placeholder=\"Cód. da Ordem de Fabricação\"\n v-if=\"pageFormIsLoaded && !refreshItems && command !== 'insert'\"\n :foreign-key=\"form[fieldKey]\"\n :foreign-number=\"form[fieldNumber]\"/>\n\n </div>\n </tab-content>\n <tab-content title=\"Resumo\">\n\n <div class=\"border-top pt-3\">\n\n <b-card-title>Resumo</b-card-title>\n\n <b-row v-if=\"pageFormIsLoaded && command !== 'insert'\">\n <t-input cols=\"6\" v-model=\"form.logControl.createdUser\" label=\"Usuário\" fixed/>\n <t-input cols=\"6\" v-model=\"form.logControl.createdDate\" label=\"Data Cadastro\" fixed datetime/>\n </b-row>\n\n <div class=\"no-gutters row\">\n <div class=\"col-sm-6 col-md-4 col-xl-4\">\n <div class=\"card no-shadow rm-border bg-transparent widget-chart text-left\">\n <div class=\"icon-wrapper rounded-circle\">\n <div class=\"icon-wrapper-bg opacity-10 bg-warning d-flex align-items-center\">\n <i class=\"pe-7s-info text-white\"> </i>\n </div>\n\n\n </div>\n <div class=\"widget-chart-content\">\n <div class=\"widget-subheading\">Qtd. Total</div>\n <div class=\"widget-numbers\">{{ bulkActionTotal.qtyTotal }}</div>\n </div>\n </div>\n <div class=\"divider m-0 d-md-none d-sm-block\"></div>\n </div>\n <div class=\"col-sm-6 col-md-4 col-xl-4\">\n <div class=\"card no-shadow rm-border bg-transparent widget-chart text-left\">\n <div class=\"icon-wrapper rounded-circle\">\n <div class=\"icon-wrapper-bg opacity-9 bg-danger d-flex align-items-center\">\n <i class=\"pe-7s-trash text-white\"> </i>\n </div>\n\n </div>\n <div class=\"widget-chart-content\">\n <div class=\"widget-subheading\">Qtd. Erros</div>\n <div class=\"widget-numbers\"><span>{{ bulkActionTotal.qtyErrors }}</span></div>\n </div>\n </div>\n <div class=\"divider m-0 d-md-none d-sm-block\"></div>\n </div>\n <div class=\"col-sm-12 col-md-4 col-xl-4\">\n <div class=\"card no-shadow rm-border bg-transparent widget-chart text-left\">\n <div class=\"icon-wrapper rounded-circle\">\n <div class=\"icon-wrapper-bg opacity-9 bg-success d-flex align-items-center\">\n <i class=\"pe-7s-check text-white\"> </i>\n\n </div>\n </div>\n <div class=\"widget-chart-content\">\n <div class=\"widget-subheading\">Qtd. Válido</div>\n <div class=\"widget-numbers text-success\"><span>{{ bulkActionTotal.qtyValidated }}</span></div>\n </div>\n </div>\n </div>\n </div>\n\n\n </div>\n\n\n </tab-content>\n\n <template #footer=\"props\">\n\n <div class=\"wizard-footer-left\">\n <!--Não permite retornar para a etapa de dados para evitar complexidade de exibir as informações novamente-->\n <t-button outline-primary v-if=\"props.activeTabIndex > 1\" @click.native=\"props.prevTab()\"\n :style=\"props.fillButtonStyle\">\n <b-icon-arrow-left class=\"mr-2\"/>\n {{ t('go-back') }}\n </t-button>\n </div>\n\n\n <div class=\"wizard-footer-right\" v-if=\"command === 'insert'\">\n\n <t-button submit :sending=\"status === 'sending'\" primary text=\"Enviar Dados em Massa\"/>\n\n <!-- <wizard-button v-else class=\"wizard-footer-right finish-button\" :style=\"props.fillButtonStyle\"> {{props.isLastStep ? 'Done' : 'Next'}}</wizard-button>-->\n </div>\n\n <div class=\"wizard-footer-right\" v-else>\n\n\n <t-button v-show=\"!props.isLastStep\" primary @click.native=\"props.nextTab()\"\n :style=\"props.fillButtonStyle\">{{ t('next') }}\n <b-icon-arrow-right class=\"ml-2\"/>\n </t-button>\n\n <t-button v-show=\"props.isLastStep\" submit primary text=\"Iniciar Processamento\"/>\n\n <!-- <wizard-button v-else class=\"wizard-footer-right finish-button\" :style=\"props.fillButtonStyle\"> {{props.isLastStep ? 'Done' : 'Next'}}</wizard-button>-->\n </div>\n\n\n </template>\n\n </form-wizard>\n\n\n </div>\n\n <div v-else>\n\n <b-card-title>Dados Básicos</b-card-title>\n\n <b-row v-if=\"pageFormIsLoaded\">\n <t-input cols=\"4\" v-model=\"form.logControl.createdDate\" label=\"Data Cadastro\" fixed datetime/>\n <t-input cols=\"4\" v-model=\"form.generalStartDate\" label=\"InÃcio do Processamento\" fixed datetime/>\n <t-input cols=\"4\" v-model=\"form.generalFinishDate\" label=\"Término do Processamento\" fixed datetime/>\n </b-row>\n\n <div v-if=\"form.statusBulkAction === StatusBulkActionType.type.PROCESSING\">\n <h6>Em processamento, por favor aguarde</h6>\n <b-progress height=\"2rem\" :value=\"bulkActionTotal.qtyProcessed\" :max=\"bulkActionTotal.qtyValidated\"\n show-progress animated>\n <b-progress-bar :value=\"bulkActionTotal.qtyProcessed\">{{ bulkActionTotal.qtyProcessed }} /\n {{ bulkActionTotal.qtyValidated }}\n </b-progress-bar>\n </b-progress>\n </div>\n\n\n </div>\n\n </template>\n\n <template #out-of-form\n v-if=\"pageFormIsLoaded && (form.statusBulkAction === StatusBulkActionType.type.PROCESSED)\">\n\n <b-card class=\"mt-3\">\n\n <b-card-title>Itens desta ação em massa</b-card-title>\n\n <ProductionOrderBulkActionItem placeholder=\"Cód. da Ordem de Fabricação\"\n only-view\n v-if=\"pageFormIsLoaded && !refreshItems\" :foreign-key=\"form[fieldKey]\"\n :foreign-number=\"form[fieldNumber]\"/>\n\n </b-card>\n\n </template>\n\n\n </t-page-form>\n\n\n </t-page>\n\n</template>\n\n<script>\n\nimport pageDefaultMixin from \"@/mixins/page/pageDefaultMixin\"\nimport pageFormMixin from \"@/mixins/page/pageFormMixin\"\nimport StatusBulkActionType from \"@/model/types/resource/StatusBulkActionType\";\nimport ProductionOrderBulkActionItem from \"@/views/modules/production/ProductionOrder/ProductionOrderBulkActionItem\";\nimport ProcessFlowService from \"@/services/modules/production/ProcessFlow.service\";\nimport {crudGeneral} from \"@/services/resource/GeneralCRUD.service\";\n\nexport default {\n mixins: [pageDefaultMixin, pageFormMixin],\n name: 'ProductionOrderBulkActionForm',\n components: {ProductionOrderBulkActionItem},\n data() {\n return {\n StatusBulkActionType,\n path: \"production/bulk-action\",\n genKey: false, //Utilizar quando desejar gerar chave temporária\n enableGeneralFields: false,\n fieldKey: \"productionBulkActionId\",\n fieldNumber: \"productionBulkActionNumber\",\n form: {\n productionBulkActionId: 0,\n productionBulkActionNumber: 0,\n processFlowId: 0,\n content: \"\",\n statusBulkAction: StatusBulkActionType.type.PENDING,\n qtyPending: 0,\n qtyProcess: 0,\n status: 1,\n },\n error: {//Campos que podem receber retorno de erro do backend\n\n },\n //--------------------------------------------------------------------------------------\n //InÃcio de campos personalizados desta tela\n refreshItems: false,\n waitSeconds: 1,\n listAnalysis: [],\n processFlowOptions: [],\n bulkActionTotal: {\n qtyValidated: 0,\n qtyErrors: 0,\n qtyPending: 0,\n qtyProcessing: 0,\n qtyProcessed: 0,\n qtyTotal: 0,\n },\n //--------------------------------------------------------------------------------------\n }\n },\n methods: {\n\n mountedPrepare() {\n this.pageFormIsLoaded = false\n },\n async mountedContinued() {\n\n await ProcessFlowService.selectList().then((list) => {\n this.processFlowOptions = list\n }).catch(error => this.responseError(error))\n\n if (this.form.statusBulkAction === StatusBulkActionType.type.PROCESSING) {\n\n await this.getTotals()\n\n setTimeout(async () => {\n await this.processByPart()\n }, this.waitSeconds * 1000)\n\n }\n\n this.pageFormIsLoaded = true\n\n\n },\n async onSubmit() {\n\n await this.setSending(\n this.form.productionBulkActionId,\n async (response) => {\n await this.$router.push({path: '/production/bulk-action/' + response[this.fieldNumber]})\n await this.mountedAgain()\n },\n async (response) => {\n await this.$router.push({path: '/production/bulk-action/view/' + response[this.fieldNumber]})\n await this.mountedAgain()\n }, (response) => {\n this.setRedirect('/production/bulk-action/', response[this.fieldKey], this.command, 0, \"\", true)\n },\n )\n\n },\n //--------------------------------------------------------------------------------------\n //InÃcio de métodos personalizados desta tela\n async mountedAgain(refreshLoagin) {\n\n this.mountedPrepare(refreshLoagin)\n\n await this.mountedForm(true, false)\n\n await this.mountedContinued()\n\n },\n\n async processByPart() {\n\n await crudGeneral.get(this.path + \"/executeByPart/\" + this.form.productionBulkActionId).then(async (response) => {\n\n this.bulkActionTotal = response.data\n\n if (this.bulkActionTotal.qtyProcessing === 0) {\n\n //Execução finalizada\n await this.mountedAgain()\n\n } else {\n //Chama novamente caso não tenha finalizado\n setTimeout(async () => {\n await this.processByPart()\n }, this.waitSeconds * 2000)\n }\n\n }).catch(error => this.responseError(error))\n\n },\n\n onWizardTabChange(prevIndex, nextIndex) {\n\n if (nextIndex === 2) {\n this.getTotals()\n }\n\n },\n\n async getTotals() {\n\n await crudGeneral.get(this.path + \"/getTotals/\" + this.form.productionBulkActionId).then((response) => {\n this.bulkActionTotal = response.data\n\n }).catch(error => this.responseError(error))\n\n },\n //--------------------------------------------------------------------------------------\n\n },\n async mounted() {\n\n await this.mountedAgain()\n\n },\n\n}\n</script>\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!./ProductionOrderBulkActionForm.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!./ProductionOrderBulkActionForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProductionOrderBulkActionForm.vue?vue&type=template&id=3c6f2144&\"\nimport script from \"./ProductionOrderBulkActionForm.vue?vue&type=script&lang=js&\"\nexport * from \"./ProductionOrderBulkActionForm.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","import Type from \"@/model/types/Type\";\r\n\r\n\r\n\r\nconst type = {\r\n PENDING : 1,\r\n PROCESSING : 2,\r\n PROCESSED : 3,\r\n ERROR : 90,\r\n}\r\n\r\nconst list = [\r\n {\r\n value: type.PENDING,\r\n text: \"Pendente\",\r\n },\r\n {\r\n value: type.PROCESSING,\r\n text: \"Em processamento\",\r\n },\r\n {\r\n value: type.PROCESSED,\r\n text: \"Processado\",\r\n },\r\n {\r\n value: type.ERROR,\r\n text: \"Erro\",\r\n },\r\n\r\n]\r\n\r\nconst contains = function (typeInput) {\r\n return Type.contains(list, typeInput)\r\n}\r\n\r\nconst hasDone = function(t) {\r\n return t === type.DONE || t === type.DONE_WITH_ERROR\r\n}\r\n\r\nexport default {\r\n type,\r\n list,\r\n contains,\r\n hasDone\r\n}\r\n\r\n\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.status === _vm.StatusBulkActionType.type.PROCESSED)?_c('b-badge',{attrs:{\"variant\":\"success\"}},[_vm._v(\"Processado \")]):(_vm.status === _vm.StatusBulkActionType.type.ERROR)?_c('b-badge',{attrs:{\"variant\":\"danger\"}},[_vm._v(\"Erro \")]):(_vm.status === _vm.StatusBulkActionType.type.PROCESSING)?_c('b-badge',{attrs:{\"variant\":\"warning\"}},[_vm._v(\"Em processamento \")]):(_vm.status === _vm.StatusBulkActionType.type.PENDING)?_c('b-badge',{attrs:{\"variant\":\"light\"}},[_vm._v(\"Pendente \")]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <b-badge v-if=\"status === StatusBulkActionType.type.PROCESSED\"\n variant=\"success\">Processado\n </b-badge>\n <b-badge v-else-if=\"status === StatusBulkActionType.type.ERROR\"\n variant=\"danger\">Erro\n </b-badge>\n <b-badge v-else-if=\"status === StatusBulkActionType.type.PROCESSING\"\n variant=\"warning\">Em processamento\n </b-badge>\n <b-badge v-else-if=\"status === StatusBulkActionType.type.PENDING\"\n variant=\"light\">Pendente\n </b-badge>\n\n</template>\n<script>\nimport StatusBulkActionType from \"@/model/types/resource/StatusBulkActionType\";\n\nexport default {\n name: 't-bulk-status-badge',\n data() {\n return {\n StatusBulkActionType,\n }\n },\n props: {\n status: {\n type: Number,\n required: true,\n }\n }\n}\n</script>","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!./t-bulk-status-badge.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!./t-bulk-status-badge.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./t-bulk-status-badge.vue?vue&type=template&id=59b5764a&\"\nimport script from \"./t-bulk-status-badge.vue?vue&type=script&lang=js&\"\nexport * from \"./t-bulk-status-badge.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.status === _vm.StatusProductionOrderType.type.DONE)?_c('b-badge',{attrs:{\"variant\":\"success\"}},[_vm._v(\"Produzido \")]):(_vm.status === _vm.StatusProductionOrderType.type.DONE_WITH_ERROR)?_c('b-badge',{attrs:{\"variant\":\"danger\"}},[_vm._v(\"Finalizada com Erro \")]):(_vm.status === _vm.StatusProductionOrderType.type.STOPPED_PRODUCTION)?_c('b-badge',{attrs:{\"variant\":\"danger\"}},[_vm._v(\"Parada \")]):(_vm.status === _vm.StatusProductionOrderType.type.BEFORE_PRODUCTION)?_c('b-badge',{attrs:{\"variant\":\"warning\"}},[_vm._v(\"Aguardando programação \")]):(_vm.status === _vm.StatusProductionOrderType.type.SCHEDULED)?_c('b-badge',{attrs:{\"variant\":\"warning\"}},[_vm._v(\"Agendada \")]):(_vm.status === _vm.StatusProductionOrderType.type.PENDING)?_c('b-badge',{attrs:{\"variant\":\"light\"}},[_vm._v(\"Pendente \")]):(_vm.status === _vm.StatusProductionOrderType.type.PRODUCTION)?_c('b-badge',{attrs:{\"variant\":\"warning\"}},[_vm._v(\"Em andamento \")]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <b-badge v-if=\"status === StatusProductionOrderType.type.DONE\"\n variant=\"success\">Produzido\n </b-badge>\n <b-badge v-else-if=\"status === StatusProductionOrderType.type.DONE_WITH_ERROR\"\n variant=\"danger\">Finalizada com Erro\n </b-badge>\n <b-badge v-else-if=\"status === StatusProductionOrderType.type.STOPPED_PRODUCTION\"\n variant=\"danger\">Parada\n </b-badge>\n <b-badge v-else-if=\"status === StatusProductionOrderType.type.BEFORE_PRODUCTION\"\n variant=\"warning\">Aguardando programação\n </b-badge>\n <b-badge v-else-if=\"status === StatusProductionOrderType.type.SCHEDULED\"\n variant=\"warning\">Agendada\n </b-badge>\n <b-badge v-else-if=\"status === StatusProductionOrderType.type.PENDING\"\n variant=\"light\">Pendente\n </b-badge>\n <b-badge v-else-if=\"status === StatusProductionOrderType.type.PRODUCTION\"\n variant=\"warning\">Em andamento\n </b-badge>\n</template>\n<script>\nimport StatusProductionOrderType from \"@/model/types/modules/production/StatusProductionOrderType\";\n\nexport default {\n name: 'ProductionStatusBadge',\n data() {\n return {\n StatusProductionOrderType,\n }\n },\n props: {\n status: {\n type: Number,\n required: true,\n }\n }\n}\n</script>","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!./ProductionStatusBadge.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!./ProductionStatusBadge.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProductionStatusBadge.vue?vue&type=template&id=01a04554&\"\nimport script from \"./ProductionStatusBadge.vue?vue&type=script&lang=js&\"\nexport * from \"./ProductionStatusBadge.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","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 = \"production/type-status\"\r\n\r\nclass service {\r\n\r\n getStatusFinishSuccess() {\r\n return http.get(path + \"/statusFinishSuccess\").then(response => {\r\n return response.data\r\n });\r\n }\r\n\r\n getStatusFinishError() {\r\n\r\n let params = new URLSearchParams()\r\n params.append(\"typeOperation\",\"3\")\r\n\r\n return this.selectList(params)\r\n }\r\n\r\n getCommon() {\r\n\r\n let params = new URLSearchParams()\r\n params.append(\"typeOperation\",\"1\")\r\n\r\n return this.selectList(params)\r\n }\r\n\r\n selectList(params) {\r\n return http.list(path + \"/selectList\",params);\r\n }\r\n\r\n}\r\n\r\nexport default new service();\r\n\r\n\r\n","import Type from \"@/model/types/Type\";\r\n\r\nconst type = {\r\n PENDING : 1,\r\n SCHEDULED : 2,\r\n BEFORE_PRODUCTION : 3,\r\n PRODUCTION : 4,\r\n DONE : 10,\r\n STOPPED_PRODUCTION : 90,\r\n DONE_WITH_ERROR : 91,\r\n}\r\n\r\nconst list = [\r\n {\r\n value: type.PENDING,\r\n text: \"Pendente\",\r\n },\r\n {\r\n value: type.SCHEDULED,\r\n text: \"Programado\",\r\n },\r\n {\r\n value: type.BEFORE_PRODUCTION,\r\n text: \"Aguardando inÃcio\",\r\n },\r\n {\r\n value: type.PRODUCTION,\r\n text: \"Em andamento\",\r\n },\r\n {\r\n value: type.STOPPED_PRODUCTION,\r\n text: \"Parado\",\r\n },\r\n {\r\n value: type.DONE,\r\n text: \"Finalizado\",\r\n },\r\n {\r\n value: type.DONE_WITH_ERROR,\r\n text: \"Finalizado com erro\",\r\n },\r\n\r\n]\r\n\r\nconst contains = function (typeInput) {\r\n return Type.contains(list, typeInput)\r\n}\r\n\r\nconst hasDone = function(t) {\r\n return t === type.DONE || t === type.DONE_WITH_ERROR\r\n}\r\n\r\nexport default {\r\n type,\r\n list,\r\n contains,\r\n hasDone\r\n}\r\n\r\n\r\n"],"sourceRoot":""}