{"version":3,"sources":["webpack:///./src/mixins/embeddable/resource/defaultEmbeddableMixin.js","webpack:///./src/views/modules/production/ProductionOrder/ProductionBatchFlow.vue?1de6","webpack:///./src/services/modules/production/ProductionOrderBatch.service.js","webpack:///src/views/modules/production/ProductionOrder/ProductionBatchFlow.vue","webpack:///./src/views/modules/production/ProductionOrder/ProductionBatchFlow.vue?41df","webpack:///./src/views/modules/production/ProductionOrder/ProductionBatchFlow.vue","webpack:///./src/model/types/modules/production/StepActionType.js","webpack:///./src/model/types/modules/production/FlowStepGroupUserAccessType.js","webpack:///./src/mixins/page/pageFormEmbeddableMixin.js","webpack:///./src/views/modules/production/ProductionOrder/components/StepActionDialog.vue?6ed8","webpack:///src/views/modules/production/ProductionOrder/components/StepActionDialog.vue","webpack:///./src/views/modules/production/ProductionOrder/components/StepActionDialog.vue?c29d","webpack:///./src/views/modules/production/ProductionOrder/components/StepActionDialog.vue","webpack:///./src/model/types/modules/production/StatusProductionOrderType.js","webpack:///./src/mixins/embeddable/resource/formEmbeddableMixin.js"],"names":["mixins","functionsMixins","data","currentPage","CurrentPageEntity","userAuth","UserAuthEntity","pageEmbeddableLoaded","mountAgain","methods","onMountedDefault","this","mountedContinued","reload","setTimeout","getAssemble","path","type","crudGeneral","then","response","catch","error","console","log","render","_vm","_h","$createElement","_c","_self","attrs","stepCurrentId","on","onSubmitStepAction","dialogStepDetailId","$event","dialogStepDetailShow","_e","staticClass","_v","stepsFlowLoadingFinish","busy","staticStyle","statusProductionColor","StatusProductionOrderType","hasDone","statusBatch","style","_s","statusProduction","directives","name","rawName","modifiers","stepActionSetOperationStatus","getFlowByBatchId","maxHeightSteps","stepsFlow","length","_l","item","index","key","stepSequential","statusStep","StatusStepType","CURRENT","value","expression","class","PENDING","DONE","typeActionNotSequential","FlowStepNotSequenceActionType","EXECUTION_PARALLEL","FINAL_INSPECTION_SHIPPING","lastNonConformanceQtyFields","ui","formatZeroNumber","shotLastStart","undefined","_f","shotLastTimeOrNow","responsibleName","operator","openDialogStepDetail","productionOrderBatchStepId","originOrderForm","staticRenderFns","service","id","http","list","components","stepsAll","props","productionOrderBatchId","Number","default","required","enableChangeStatusOperation","Boolean","String","originStepForm","openModal","openDialogForm","watch","component","START","FINISH","RETURN","STOP","CANCEL_STOP","SET_RESPONSIBLE","START_EXECUTION","FINISH_EXECUTION","SET_GROUP_USER","SET_OPERATION_STATUS","FINISH_WITH_SUCCESS","FINISH_WITH_ERROR","text","returnMessage","contains","Type","getText","getReturnMessage","message","find","a","FULL","ONLY_VIEW","typeInput","Object","onSubmitDefault","enabledSubmit","sendingFormDefault","$emit","mountedPrepareEmbeddable","setValue","mountedContinuedEmbeddable","pageFormIsLoaded","setIsLoadingPage","command","v","form","setSending","fieldKey","setRedirect","newValue","oldValue","onSubmit","ref","generalErrors","title","okText","status","variant","showModal","resetModal","step","productionOrderCodeLabel","stepOptions","model","callback","$$v","$set","typeProductionReturnOptions","stopTypeOption","stopType","typeProductionStopOptions","typeStatusProductionOptions","operatorOptions","typeStatusProductionCommonOptions","groupUserOptions","groupUserId","addGroupUser","FlowStepGroupUserAccessType","addGroupSelected","pageDialogFormMixin","action","goProductionOrderBatchStepId","typeStopId","operationStatusId","operatorId","stopNote","groupUsers","originalGroupUserOptions","dialogId","mounted","setGroupUserAvailable","checked","el","push","indexRemove","splice","original","SCHEDULED","BEFORE_PRODUCTION","PRODUCTION","STOPPED_PRODUCTION","DONE_WITH_ERROR","t","defaultEmbeddableMixin","setFieldCustomized","responseErrorGeneral","general","errors","msgError","alert","warn","request","onMountedForm","getFieldValue","entity","fieldId","$refs","embeddable","fieldsCustomizable","entityField","field","fields","setFieldValue","pop"],"mappings":"4LAKe,QAEXA,OAAQ,CAACC,QACTC,KAHW,WAIP,MAAO,CACHC,YAAaC,OACbC,SAAUC,OACVC,sBAAqB,EACrBC,YAAY,IAGpBC,QAAQ,CAEJC,iBAFI,SAEaL,GAEbM,KAAKN,SAAWA,EAGhBM,KAAKC,oBAGTC,OAVI,WAUI,WAC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rI,IAAhB0I,EAA2B,CAE3B,IAAIC,EAAQD,EAAYE,OAAO7F,MAAK,SAAAC,GAAC,OAAIA,EAAEsF,UAAYA,UAEzCtI,IAAV2I,IAEAA,EAAMxJ,MAAQA,EACduJ,EAAYE,OAAO5B,KAAK2B,GACxBD,EAAYE,OAAOE","file":"js/chunk-47b73b44.69b57bf2.js","sourcesContent":["import functionsMixins from \"@/mixins/page/functionsMixins\";\r\nimport CurrentPageEntity from \"@/model/entities/resource/entity/CurrentPageEntity\";\r\nimport UserAuthEntity from \"@/model/entities/resource/entity/UserAuthEntity\";\r\nimport {crudGeneral} from \"@/services/resource/GeneralCRUD.service\";\r\n\r\nexport default {\r\n\r\n    mixins: [functionsMixins],\r\n    data() {\r\n        return {\r\n            currentPage: CurrentPageEntity,\r\n            userAuth: UserAuthEntity,\r\n            pageEmbeddableLoaded:false,\r\n            mountAgain: false,\r\n        }\r\n    },\r\n    methods:{\r\n\r\n        onMountedDefault(userAuth){\r\n\r\n            this.userAuth = userAuth\r\n\r\n            //Chama o mountedContinued interno\r\n            this.mountedContinued()\r\n        },\r\n\r\n        reload(){\r\n            this.mountAgain = true\r\n\r\n            setTimeout(()=>{\r\n                this.mountAgain = false\r\n            },200)\r\n\r\n        },\r\n\r\n        /*MONTAGEM SIMPLIFICADA Utilizado quando é necessário realizar a montagem para condicionar a exibição do formulário*/\r\n        async getAssemble(path,type){\r\n            await crudGeneral.getAssemble(path, type)\r\n                .then(response => {\r\n\r\n                    this.userAuth = response.data;\r\n                    this.currentPage = this.userAuth.currentPage\r\n\r\n\r\n                })\r\n                .catch(error => {\r\n                    console.log('Erro externo: ' + error)\r\n                });\r\n        }\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 _c('div',[_c('StepActionDialog',{attrs:{\"dialog-id\":\"modal-action-step-set-operation-status\",\"type\":\"set_operationStatus\",\"production-order-batch-step-id\":_vm.stepCurrentId},on:{\"onSubmit\":_vm.onSubmitStepAction}}),(_vm.dialogStepDetailShow)?_c('ProductionOrderStepDialog',{attrs:{\"production-order-batch-step-id\":_vm.dialogStepDetailId,\"only-view\":\"\"},on:{\"onClose\":function($event){_vm.dialogStepDetailShow = false}}}):_vm._e(),_c('b-card',{staticClass:\"mb-2\"},[_c('b-row',[_c('b-col',{attrs:{\"cols\":\"12\"}},[_c('b-card-title',[_vm._v(\"Status Operacional\")]),(!_vm.stepsFlowLoadingFinish || _vm.busy)?_c('div',[_c('div',{staticClass:\"container_loading_form_card\",staticStyle:{\"height\":\"30px\"}},[_c('div',{staticClass:\"gradient element-100\",staticStyle:{\"margin-top\":\"0px\",\"height\":\"30px\"}})])]):(_vm.statusProductionColor !== '' && !_vm.StatusProductionOrderType.hasDone(_vm.statusBatch))?_c('div',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover.ds500\",modifiers:{\"hover\":true,\"ds500\":true}}],staticClass:\"d-flex link link-shadow\",staticStyle:{\"border\":\"solid 1px\",\"padding\":\"10px\",\"border-radius\":\"5px\"},style:({'border-color':_vm.statusProductionColor}),attrs:{\"title\":\"Clique caso desejar alterar o status manualmente\"},on:{\"click\":_vm.stepActionSetOperationStatus}},[_c('span',{staticClass:\"badge badge-dot badge-dot-xl mr-2\",staticStyle:{\"margin-top\":\"2px\"},style:({'background-color': _vm.statusProductionColor})}),_c('div',{staticStyle:{\"font-size\":\"13px\"}},[_vm._v(\" \"+_vm._s(_vm.statusProduction))])]):(_vm.statusProductionColor !== '' && _vm.StatusProductionOrderType.hasDone(_vm.statusBatch))?_c('div',{staticClass:\"d-flex\",staticStyle:{\"border\":\"solid 1px\",\"padding\":\"10px\",\"border-radius\":\"5px\"},style:({'border-color':_vm.statusProductionColor})},[_c('span',{staticClass:\"badge badge-dot badge-dot-xl mr-2\",staticStyle:{\"margin-top\":\"2px\"},style:({'background-color': _vm.statusProductionColor})}),_c('div',{staticStyle:{\"font-size\":\"13px\"}},[_vm._v(\" \"+_vm._s(_vm.statusProduction))])]):_vm._e()],1)],1)],1),_c('b-card',[_c('b-row',[_c('b-col',{attrs:{\"cols\":\"8\"}},[_c('b-card-title',[_vm._v(\"Etapas\")])],1),_c('b-col',{staticClass:\"d-flex align-items-end justify-content-end\",attrs:{\"cols\":\"4\"}},[_c('t-button',{attrs:{\"outline-light\":\"\"},on:{\"click\":_vm.getFlowByBatchId}},[_c('b-icon-arrow-counterclockwise')],1)],1)],1),_c('div',{staticStyle:{\"overflow-x\":\"visible\"},style:({'max-height':_vm.maxHeightSteps !== '' ? _vm.maxHeightSteps : 'auto', 'overflow-y':_vm.maxHeightSteps !== '' ? 'auto' : 'visible'})},[(_vm.stepsFlowLoadingFinish && !_vm.busy && _vm.stepsFlow.length > 0)?_c('div',{staticClass:\"vertical-time-icons vertical-timeline vertical-timeline--animate vertical-timeline--one-column\"},_vm._l((_vm.stepsFlow),function(item,index){return _c('div',{key:index,staticClass:\"vertical-timeline-item vertical-timeline-element\"},[_c('div',[_c('div',{staticClass:\"vertical-timeline-element-icon bounce-in\"},[(item.stepSequential && item.statusStep !== _vm.StatusStepType.type.CURRENT)?_c('div',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:(\"Etapa sequêncial\"),expression:\"\\\"Etapa sequêncial\\\"\",modifiers:{\"hover\":true}}],staticClass:\"timeline-icon\",class:{\n                      'badge-border-gray':item.statusStep === _vm.StatusStepType.type.PENDING,\n                      'badge-border-green':item.statusStep === _vm.StatusStepType.type.DONE,\n                    }},[(item.statusStep === _vm.StatusStepType.type.DONE)?_c('b-icon-check-lg',{staticClass:\"badge-text-gray\"}):_vm._e()],1):(item.stepSequential && item.statusStep === _vm.StatusStepType.type.CURRENT)?_c('div',{staticClass:\"timeline-icon badge-border-blue\"},[_c('b-icon-pin',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:(\"Etapa sequêncial e atual no momento\"),expression:\"\\\"Etapa sequêncial e atual no momento\\\"\",modifiers:{\"hover\":true}}],staticClass:\"badge-text-blue\"})],1):(item.typeActionNotSequential === _vm.FlowStepNotSequenceActionType.type.EXECUTION_PARALLEL)?_c('div',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:(\"Etapa em paralelo\"),expression:\"\\\"Etapa em paralelo\\\"\",modifiers:{\"hover\":true}}],staticClass:\"timeline-icon badge-border-purple\"},[(item.statusStep === _vm.StatusStepType.type.DONE)?_c('b-icon-check-lg',{staticClass:\"badge-text-purple\"}):_vm._e()],1):(item.typeActionNotSequential === _vm.FlowStepNotSequenceActionType.type.FINAL_INSPECTION_SHIPPING)?_c('div',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:(\"Etapa de inspeção de expedição\"),expression:\"\\\"Etapa de inspeção de expedição\\\"\",modifiers:{\"hover\":true}}],staticClass:\"timeline-icon badge-border-green\"},[(item.statusStep === _vm.StatusStepType.type.DONE)?_c('b-icon-check-lg',{staticClass:\"badge-text-dark\"}):_vm._e()],1):_c('div',{staticClass:\"timeline-icon badge-border-dark\"},[(item.statusStep === _vm.StatusStepType.type.DONE)?_c('b-icon-check-lg',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:(\"Etapa de correção realizada\"),expression:\"\\\"Etapa de correção realizada\\\"\",modifiers:{\"hover\":true}}],staticClass:\"badge-text-dark\"}):(item.statusStep === _vm.StatusStepType.type.CURRENT)?_c('b-icon-pin',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:(\"Etapa de correção atual no momento\"),expression:\"\\\"Etapa de correção atual no momento\\\"\",modifiers:{\"hover\":true}}],staticClass:\"badge-text-dark\"}):_vm._e()],1)]),_c('div',{staticClass:\"vertical-timeline-element-content bounce-in\"},[_c('h4',{staticClass:\"timeline-title\"},[_vm._v(\" \"+_vm._s(item.name)+\" \"),(item.lastNonConformanceQtyFields > 0)?_c('span',{staticClass:\"badge badge-danger ml-2\"},[_vm._v(_vm._s(_vm.ui.formatZeroNumber(item.lastNonConformanceQtyFields, 2)))]):_vm._e()]),_c('p',[(item.shotLastStart !== '' && item.shotLastStart !== undefined && (item.statusStep === _vm.StatusStepType.type.DONE || item.statusStep === _vm.StatusStepType.type.CURRENT))?_c('span',[(item.statusStep === _vm.StatusStepType.type.DONE)?_c('b-icon-clock',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:(\"Tempo até a finalização da etapa\"),expression:\"\\\"Tempo até a finalização da etapa\\\"\",modifiers:{\"hover\":true}}],staticClass:\"mr-2\"}):(item.statusStep === _vm.StatusStepType.type.CURRENT)?_c('b-icon-clock',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:(\"Tempo desde o início até agora\"),expression:\"\\\"Tempo desde o início até agora\\\"\",modifiers:{\"hover\":true}}],staticClass:\"mr-2\"}):_vm._e(),_vm._v(\" \"+_vm._s(_vm._f(\"minuteOrHour\")(item.shotLastTimeOrNow))+\" \"),_c('br')],1):_vm._e(),_c('b-icon-people',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:(\"Grupo(s) responsável\"),expression:\"\\\"Grupo(s) responsável\\\"\",modifiers:{\"hover\":true}}],staticClass:\"mr-2\"}),_vm._v(\" \"+_vm._s(item.responsibleName)),_c('br'),(item.operator !== '' && item.operator !== undefined)?_c('span',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:(\"Operador responsável\"),expression:\"\\\"Operador responsável\\\"\",modifiers:{\"hover\":true}}]},[_c('b-icon-person',{staticClass:\"mr-2\"}),_vm._v(\" \"+_vm._s(item.operator)+\" \")],1):_vm._e()],1),_c('t-button',{attrs:{\"small\":\"\",\"outline-light\":\"\"},on:{\"click\":function($event){return _vm.openDialogStepDetail(item.productionOrderBatchStepId)}}},[_vm._v(\" Detalhar \")]),(item.statusStep === _vm.StatusStepType.type.CURRENT && _vm.originOrderForm)?_c('b-button',{staticClass:\"ml-2\",attrs:{\"to\":{path: '/' + _vm.currentPage.path + '-step/' + item.productionOrderBatchStepId},\"variant\":\"outline-primary\",\"size\":\"sm\",\"target\":\"_blank\"}},[_c('b-icon-box-arrow-up-right',{staticClass:\"mr-2\"}),_vm._v(\" Abrir \")],1):_vm._e()],1)])])}),0):(!_vm.stepsFlowLoadingFinish || _vm.busy)?_c('div',[_c('div',{staticClass:\"container_loading_form_card\"},[_c('div',{staticClass:\"gradient element-60\"}),_c('div',{staticClass:\"gradient element-80\"})])]):_c('t-msg',{staticClass:\"mt-2\",attrs:{\"info\":\"\"}},[_vm._v(\"Nenhuma etapa inserida nesta ordem!\")])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","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/order-batch\"\r\n\r\nclass service {\r\n\r\n    getFlowByBatchId(id) {\r\n        return http.list(path + \"/flow/\" + id)\r\n    }\r\n}\r\n\r\nexport default new service();\r\n\r\n\r\n","<template>\n  <div>\n\n    <StepActionDialog dialog-id=\"modal-action-step-set-operation-status\" @onSubmit=\"onSubmitStepAction\"\n                      type=\"set_operationStatus\"\n                      :production-order-batch-step-id=\"stepCurrentId\"/>\n\n    <ProductionOrderStepDialog :production-order-batch-step-id=\"dialogStepDetailId\"\n                                     only-view\n                                     @onClose=\"dialogStepDetailShow = false\" v-if=\"dialogStepDetailShow\"/>\n\n    <b-card class=\"mb-2\">\n\n      <b-row>\n        <b-col cols=\"12\">\n\n          <b-card-title>Status Operacional</b-card-title>\n\n          <div v-if=\"!stepsFlowLoadingFinish || busy\">\n            <div class=\"container_loading_form_card\" style=\"height: 30px\">\n              <div class=\"gradient element-100\" style=\"margin-top:0px; height: 30px\"></div>\n            </div>\n\n          </div>\n\n          <div v-else-if=\"statusProductionColor !== '' && !StatusProductionOrderType.hasDone(statusBatch)\"\n               class=\"d-flex link link-shadow\"\n               @click=\"stepActionSetOperationStatus\"\n               v-b-tooltip.hover.ds500 title=\"Clique caso desejar alterar o status manualmente\"\n               style=\"border: solid 1px; padding: 10px; border-radius: 5px\"\n               :style=\"{'border-color':statusProductionColor}\">\n\n            <span class=\"badge badge-dot badge-dot-xl mr-2\"\n                  style=\"margin-top:2px\"\n                  :style=\"{'background-color': statusProductionColor}\"></span>\n            <div style=\"font-size: 13px;\"> {{ statusProduction }}</div>\n\n          </div>\n\n          <div v-else-if=\"statusProductionColor !== '' && StatusProductionOrderType.hasDone(statusBatch)\"\n               class=\"d-flex\"\n               style=\"border: solid 1px; padding: 10px; border-radius: 5px\"\n               :style=\"{'border-color':statusProductionColor}\">\n\n            <span class=\"badge badge-dot badge-dot-xl mr-2\"\n                  style=\"margin-top:2px\"\n                  :style=\"{'background-color': statusProductionColor}\"></span>\n            <div style=\"font-size: 13px;\"> {{ statusProduction }}</div>\n\n          </div>\n\n\n        </b-col>\n\n\n      </b-row>\n\n    </b-card>\n\n    <b-card>\n\n      <b-row>\n\n        <b-col cols=\"8\">\n\n          <b-card-title>Etapas</b-card-title>\n\n        </b-col>\n\n        <b-col cols=\"4\" class=\"d-flex align-items-end justify-content-end\">\n          <t-button outline-light @click=\"getFlowByBatchId\">\n            <b-icon-arrow-counterclockwise/>\n          </t-button>\n        </b-col>\n\n      </b-row>\n\n\n      <div\n          style=\"overflow-x:visible\"\n          :style=\"{'max-height':maxHeightSteps !== '' ? maxHeightSteps : 'auto', 'overflow-y':maxHeightSteps !== '' ? 'auto' : 'visible'}\">\n\n        <div\n            v-if=\"stepsFlowLoadingFinish && !busy && stepsFlow.length > 0\"\n            class=\"vertical-time-icons vertical-timeline vertical-timeline--animate vertical-timeline--one-column\">\n\n          <div v-for=\"(item,index) in stepsFlow\" :key=\"index\"\n               class=\"vertical-timeline-item vertical-timeline-element\">\n\n            <div>\n\n              <div class=\"vertical-timeline-element-icon bounce-in\">\n\n                <div class=\"timeline-icon\"\n                     v-b-tooltip.hover='\"Etapa sequêncial\"'\n                     :class=\"{\n                        'badge-border-gray':item.statusStep === StatusStepType.type.PENDING,\n                        'badge-border-green':item.statusStep === StatusStepType.type.DONE,\n                      }\" v-if=\"item.stepSequential && item.statusStep !== StatusStepType.type.CURRENT\">\n                  <b-icon-check-lg class=\"badge-text-gray\" v-if=\"item.statusStep === StatusStepType.type.DONE\"/>\n\n                </div>\n\n                <div class=\"timeline-icon badge-border-blue\"\n                     v-else-if=\"item.stepSequential && item.statusStep === StatusStepType.type.CURRENT\">\n                  <b-icon-pin v-b-tooltip.hover='\"Etapa sequêncial e atual no momento\"' class=\"badge-text-blue\"/>\n\n                </div>\n\n                <div class=\"timeline-icon badge-border-purple\"\n                     v-b-tooltip.hover='\"Etapa em paralelo\"'\n                     v-else-if=\"item.typeActionNotSequential === FlowStepNotSequenceActionType.type.EXECUTION_PARALLEL\">\n                  <b-icon-check-lg class=\"badge-text-purple\" v-if=\"item.statusStep === StatusStepType.type.DONE\"/>\n                </div>\n\n                <div class=\"timeline-icon badge-border-green\"\n                     v-b-tooltip.hover='\"Etapa de inspeção de expedição\"'\n                     v-else-if=\"item.typeActionNotSequential === FlowStepNotSequenceActionType.type.FINAL_INSPECTION_SHIPPING\">\n                  <b-icon-check-lg class=\"badge-text-dark\" v-if=\"item.statusStep === StatusStepType.type.DONE\"/>\n                </div>\n\n                <div class=\"timeline-icon badge-border-dark\"\n                     v-else>\n                  <b-icon-check-lg v-b-tooltip.hover='\"Etapa de correção realizada\"' class=\"badge-text-dark\"\n                                   v-if=\"item.statusStep === StatusStepType.type.DONE\"/>\n                  <b-icon-pin v-b-tooltip.hover='\"Etapa de correção atual no momento\"' class=\"badge-text-dark\"\n                              v-else-if=\"item.statusStep === StatusStepType.type.CURRENT\"/>\n                </div>\n              </div>\n\n              <div class=\"vertical-timeline-element-content bounce-in\">\n\n                <h4 class=\"timeline-title\">\n                  {{ item.name }} <span class=\"badge badge-danger ml-2\"\n                                        v-if=\"item.lastNonConformanceQtyFields > 0\">{{\n                    ui.formatZeroNumber(item.lastNonConformanceQtyFields, 2)\n                  }}</span>\n                </h4>\n\n                <p>\n\n                        <span\n                            v-if=\"item.shotLastStart !== '' && item.shotLastStart !== undefined && (item.statusStep === StatusStepType.type.DONE || item.statusStep === StatusStepType.type.CURRENT)\">\n\n                          <b-icon-clock class=\"mr-2\" v-b-tooltip.hover='\"Tempo até a finalização da etapa\"'\n                                        v-if=\"item.statusStep === StatusStepType.type.DONE\"/>\n                          <b-icon-clock class=\"mr-2\" v-b-tooltip.hover='\"Tempo desde o início até agora\"'\n                                        v-else-if=\"item.statusStep === StatusStepType.type.CURRENT\"/>\n                          {{ item.shotLastTimeOrNow | minuteOrHour }}\n                          <!--(tempo percorrido até o momento ou até finalização se estiver finalizado) --><br/>\n                        </span>\n\n\n                  <b-icon-people class=\"mr-2\" v-b-tooltip.hover='\"Grupo(s) responsável\"'/>\n                  {{ item.responsibleName }}<br/>\n\n                  <span v-if=\"item.operator !== '' && item.operator !== undefined\"\n                        v-b-tooltip.hover='\"Operador responsável\"'>\n                          <b-icon-person class=\"mr-2\"/>\n                        {{ item.operator }}\n                        </span>\n\n                </p>\n\n                <t-button small outline-light @click=\"openDialogStepDetail(item.productionOrderBatchStepId)\">\n                  Detalhar\n                </t-button>\n\n                <b-button class=\"ml-2\" v-if=\"item.statusStep === StatusStepType.type.CURRENT && originOrderForm\"\n                          :to=\"{path: '/' + currentPage.path + '-step/' + item.productionOrderBatchStepId}\"\n                          variant=\"outline-primary\" size=\"sm\" target=\"_blank\">\n                  <b-icon-box-arrow-up-right class=\"mr-2\"/>\n                  Abrir\n                </b-button>\n\n\n              </div>\n\n            </div>\n\n\n          </div>\n\n        </div>\n\n        <div v-else-if=\"!stepsFlowLoadingFinish || busy\">\n          <div class=\"container_loading_form_card\">\n\n            <div class=\"gradient element-60\"></div>\n\n            <div class=\"gradient element-80\"></div>\n\n\n          </div>\n\n        </div>\n\n        <t-msg class=\"mt-2\" v-else info>Nenhuma etapa inserida nesta ordem!</t-msg>\n\n      </div>\n\n\n    </b-card>\n\n  </div>\n</template>\n<script>\nimport ui from \"@/assets/scripts/ui\";\nimport StatusStepType from \"@/model/types/modules/production/StatusStepType\";\nimport FlowStepNotSequenceActionType from \"@/model/types/modules/production/FlowStepNotSequenceActionType\";\nimport StatusProductionOrderType from \"@/model/types/modules/production/StatusProductionOrderType\";\nimport ProductionOrderBatchService from \"@/services/modules/production/ProductionOrderBatch.service\";\nimport ProductionOrderStepDialog\n  from \"@/views/modules/production/ProductionOrder/dialog/ProductionOrderStepDialog\";\nimport functionsMixins from \"@/mixins/page/functionsMixins\";\nimport StepActionDialog from \"@/views/modules/production/ProductionOrder/components/StepActionDialog\";\n\n\nexport default {\n  name: 'ProductionBatchFlow',\n  mixins: [functionsMixins],\n  components: {ProductionOrderStepDialog, StepActionDialog},\n  data() {\n    return {\n      ui,\n      StatusStepType,\n      FlowStepNotSequenceActionType,\n      StatusProductionOrderType,\n      stepsFlowLoadingFinish: false,\n      stepsFlow: [],\n      stepsAll: [],\n      stepCurrentId: 0,\n      dialogStepDetailShow: false,\n      dialogStepDetailId: 0,\n      statusProductionColor: \"\",\n      statusProduction: \"\",\n      statusBatch: 0,\n    }\n  },\n  props: {\n    productionOrderBatchId: {\n      type: Number,\n      default: 0,\n      required: true,\n    },\n    enableChangeStatusOperation: Boolean,\n    maxHeightSteps: {\n      type: String,\n      default: '',\n    },\n    currentPage: {},\n    busy: Boolean,\n    originOrderForm: Boolean,//Origem no cabeçalho da ordem de fabricação\n    originStepForm: Boolean,//Origem nas etapas da ordem de fabricação\n\n  },\n  async mounted() {\n\n    await this.getFlowByBatchId()\n\n\n  },\n  methods: {\n\n    async getFlowByBatchId() {\n\n      this.stepsFlowLoadingFinish = false\n\n      if (!this.busy && this.productionOrderBatchId > 0 && this.productionOrderBatchId !== null) {\n\n        await ProductionOrderBatchService.getFlowByBatchId(this.productionOrderBatchId).then((list) => {\n\n          this.stepsFlow = list\n\n          //1º Tentativa excluindo etapas em paralelo\n          const stepCurrentNotParallel = this.stepsFlow.find(a => a.statusStep === StatusStepType.type.CURRENT && a.typeActionNotSequential !== FlowStepNotSequenceActionType.type.EXECUTION_PARALLEL)\n\n          if (stepCurrentNotParallel !== null && stepCurrentNotParallel !== undefined) {\n            this.stepCurrentId = stepCurrentNotParallel.productionOrderBatchStepId\n            this.$emit('onGetStepCurrentId', this.stepCurrentId)\n          } else {\n\n            //2ª Tentativa qualquer etapa em andamento incluindo etapas em paralelo\n            const stepCurrentAny = this.stepsFlow.find(a => a.statusStep === StatusStepType.type.CURRENT)\n\n            if (stepCurrentAny !== null && stepCurrentAny !== undefined) {\n              this.stepCurrentId = stepCurrentAny.productionOrderBatchStepId\n              this.$emit('onGetStepCurrentId', this.stepCurrentId)\n            }\n\n\n          }\n\n          if (this.stepsFlow.length > 0) {\n\n            //Todas as etapas possuem o status operacional do lote e por tanto qualquer uma poderá obter os seguintes dados:\n            const stepFirst = this.stepsFlow[0]\n\n            this.statusProduction = stepFirst.statusProduction\n            this.statusProductionColor = stepFirst.statusProductionColor\n            this.statusBatch = stepFirst.statusBatch\n\n          }\n\n          this.stepsFlowLoadingFinish = true\n\n        }).catch(error => this.responseError(error))\n\n      }\n\n    },\n\n    async onSubmitStepAction() {\n\n      await this.getFlowByBatchId()\n      ui.toast(this, \"Status operacional alterado com sucesso!\")\n\n    },\n\n    openDialogStepDetail(id) {\n\n      this.dialogStepDetailShow = true\n      this.dialogStepDetailId = id\n      this.openModal('modal-production-order-step-detail')\n\n    },\n\n    stepActionSetOperationStatus() {\n\n      if (this.enableChangeStatusOperation) {\n        this.openDialogForm('modal-action-step-set-operation-status')\n      } else {\n        ui.msgError(this, 'Desculpe, você não possui acesso a alteração manual do status operacional')\n      }\n\n\n    }\n\n  },\n  watch: {\n    async productionOrderBatchId() {\n      await this.getFlowByBatchId()\n    },\n    async busy() {\n      await this.getFlowByBatchId()\n    }\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!./ProductionBatchFlow.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!./ProductionBatchFlow.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProductionBatchFlow.vue?vue&type=template&id=48ba00dc&\"\nimport script from \"./ProductionBatchFlow.vue?vue&type=script&lang=js&\"\nexport * from \"./ProductionBatchFlow.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\nconst type = {\r\n\r\n    START: 1,\r\n    FINISH: 2,\r\n    RETURN: 3,\r\n    STOP: 4,\r\n    CANCEL_STOP: 5,\r\n    SET_RESPONSIBLE: 6,\r\n    START_EXECUTION: 7,\r\n    FINISH_EXECUTION: 8,\r\n    SET_GROUP_USER: 9,\r\n    SET_OPERATION_STATUS: 10,\r\n    FINISH_WITH_SUCCESS: 20,\r\n    FINISH_WITH_ERROR: 90,\r\n}\r\n\r\nconst list = [\r\n    {\r\n        value: type.START,\r\n        text: \"Iniciar\",\r\n        returnMessage: 'iniciada'\r\n    },\r\n    {\r\n        value: type.FINISH,\r\n        text: \"Finalizar\",\r\n        returnMessage: 'finalizada'\r\n    },\r\n    {\r\n        value: type.RETURN,\r\n        text: \"Retornar\",\r\n        returnMessage: 'retornada'\r\n    },\r\n    {\r\n        value: type.STOP,\r\n        text: \"Parar\",\r\n        returnMessage: 'paralizada'\r\n    },\r\n    {\r\n        value: type.CANCEL_STOP,\r\n        text: \"Cancelar a paralização\",\r\n        returnMessage: 'cancelada paralização'\r\n    },\r\n    {\r\n        value: type.SET_RESPONSIBLE,\r\n        text: \"Responsabilizar\",\r\n        returnMessage: 'responsabilizada'\r\n    },\r\n    {\r\n        value: type.SET_GROUP_USER,\r\n        text: \"Responsabilizar\",\r\n        returnMessage: 'responsabilizada'\r\n    },\r\n    {\r\n        value: type.SET_OPERATION_STATUS,\r\n        text: \"Alterar Status Operacional\",\r\n        returnMessage: 'status operacional alterado'\r\n    },\r\n    {\r\n        value: type.START_EXECUTION,\r\n        text: \"Iniciar Execução\", /*??? acredito que neste contexto não seja utilizado*/\r\n        returnMessage: 'iniciada Execução'\r\n    },\r\n    {\r\n        value: type.FINISH_EXECUTION,\r\n        text: \"Finalizar Execução\", /*??? acredito que neste contexto não seja utilizado*/\r\n        returnMessage: 'finalizada Execução'\r\n    },\r\n    {\r\n        value: type.FINISH_WITH_ERROR,\r\n        text: \"Finalizar com erro\",\r\n        returnMessage: 'finalizada definitivamente'\r\n    },\r\n    {\r\n        value: type.FINISH_WITH_SUCCESS,\r\n        text: \"Finalizar com sucesso\",\r\n        returnMessage: 'finalizada definitivamente'\r\n    },\r\n]\r\n\r\nconst contains = function (type) {\r\n    return Type.contains(list, type)\r\n}\r\n\r\nconst getText = function (type) {\r\n    return Type.getText(list, type)\r\n}\r\n\r\nconst getReturnMessage = function(type){\r\n\r\n    const message = list.find(a => a.value === type).returnMessage\r\n\r\n    if(message !== undefined){\r\n        return message\r\n    }else{\r\n        return null\r\n    }\r\n\r\n}\r\n\r\nexport default {\r\n    type,\r\n    list,\r\n    contains,\r\n    getText,\r\n    getReturnMessage,\r\n}\r\n\r\n\r\n","import Type from \"@/model/types/Type\";\r\n\r\nconst type = {\r\n    FULL: 1,\r\n    ONLY_VIEW: 2,\r\n}\r\n\r\nconst list = [\r\n    {\r\n        value: type.FULL,\r\n        text: \"Responsável\",\r\n    },\r\n    {\r\n        value: type.ONLY_VIEW,\r\n        text: \"Visualização\",\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    contains,\r\n}","export default {\r\n    data() {\r\n        return {\r\n\r\n        }\r\n    },\r\n    props: {\r\n        value: {\r\n            type: Object,\r\n            required: true,\r\n        },\r\n    },\r\n    methods: {\r\n\r\n        async onSubmitDefault() {\r\n\r\n            if (this.enabledSubmit) {\r\n                await this.sendingFormDefault()\r\n            } else {\r\n                await this.$emit(\"beforeSubmit\")\r\n            }\r\n\r\n        },\r\n\r\n        mountedPrepareEmbeddable() {\r\n            this.setValue(this.value)\r\n        },\r\n        mountedContinuedEmbeddable() {\r\n            this.pageFormIsLoaded = true\r\n            this.setIsLoadingPage(false)\r\n            this.$emit(\"mounted\", this.userAuth, this.command)\r\n        },\r\n        setValue(v) {\r\n            this.form = v\r\n        },\r\n        async sendingFormDefault() {\r\n\r\n            await this.setSending(\r\n                this.form[this.fieldKey],\r\n                (response) => {\r\n                    this.setRedirect(this.currentPage.path, response[this.fieldKey], this.command, 0, \"\", true)\r\n                },\r\n            )\r\n        }\r\n    },\r\n    watch: {\r\n        value(v) {\r\n            this.setValue(v)\r\n        },\r\n        form(v) {\r\n            this.$emit(\"input\", v)\r\n        },\r\n        enabledSubmit: async function (newValue, oldValue) {\r\n            if (newValue && !oldValue) {\r\n                //Liberado para continuação\r\n\r\n                if(typeof this.onSubmit !== \"undefined\"){\r\n                    //Página possui sendingForm especifico\r\n                    await this.onSubmit()\r\n                }else{\r\n                    //Demais casos será padrão\r\n                    await this.sendingFormDefault()\r\n                }\r\n\r\n            }\r\n        }\r\n    }\r\n\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 _c('t-dialog-form',{ref:\"dialog_form\",attrs:{\"generalErrors\":_vm.generalErrors,\"title\":_vm.title,\"ok-text\":_vm.okText,\"id\":_vm.id,\"command\":_vm.command,\"status\":_vm.status,\"variant\":_vm.variant},on:{\"show\":_vm.showModal,\"hidden\":_vm.resetModal,\"onSubmit\":_vm.onSubmit}},[_c('table',{staticClass:\"mb-2 table-bordered table\"},[_c('thead',[_c('tr',[_c('td',[_vm._v(\"Ordem de Fabricação\")]),_c('td',[_vm._v(\"Etapa atual\")])])]),_c('tbody',[_c('tr',[_c('td',[_c('b',[_vm._v(_vm._s(_vm.step.productionOrderCodeLabel))])]),_c('td',[_c('b',[_vm._v(_vm._s(_vm.step.name))])])])])]),(_vm.type === 'return')?_c('div',[_c('t-input',{attrs:{\"required\":\"\",\"select\":\"\",\"options\":_vm.stepOptions,\"label\":\"Etapa desejada\"},model:{value:(_vm.form.goProductionOrderBatchStepId),callback:function ($$v) {_vm.$set(_vm.form, \"goProductionOrderBatchStepId\", $$v)},expression:\"form.goProductionOrderBatchStepId\"}}),_c('t-input',{attrs:{\"required\":\"\",\"select\":\"\",\"options\":_vm.typeProductionReturnOptions,\"label\":\"Motivo\"},model:{value:(_vm.form.typeStopId),callback:function ($$v) {_vm.$set(_vm.form, \"typeStopId\", $$v)},expression:\"form.typeStopId\"}}),_c('t-input',{attrs:{\"textarea\":\"\",\"label\":\"Descrição adicional\"},model:{value:(_vm.form.stopNote),callback:function ($$v) {_vm.$set(_vm.form, \"stopNote\", $$v)},expression:\"form.stopNote\"}})],1):(_vm.type === 'stop')?_c('div',[_c('t-input',{attrs:{\"stacked\":\"\",\"options\":_vm.stopTypeOption,\"radio\":\"\",\"required\":\"\"},model:{value:(_vm.stopType),callback:function ($$v) {_vm.stopType=$$v},expression:\"stopType\"}}),(_vm.stopType === 1)?_c('t-input',{attrs:{\"required\":\"\",\"select\":\"\",\"options\":_vm.typeProductionStopOptions,\"label\":\"Motivo\"},model:{value:(_vm.form.typeStopId),callback:function ($$v) {_vm.$set(_vm.form, \"typeStopId\", $$v)},expression:\"form.typeStopId\"}}):(_vm.stopType === 2)?_c('t-input',{attrs:{\"required\":\"\",\"select\":\"\",\"options\":_vm.typeStatusProductionOptions,\"label\":\"Status do Erro\"},model:{value:(_vm.form.operationStatusId),callback:function ($$v) {_vm.$set(_vm.form, \"operationStatusId\", $$v)},expression:\"form.operationStatusId\"}}):_vm._e(),_c('t-input',{attrs:{\"textarea\":\"\",\"label\":\"Descrição adicional\"},model:{value:(_vm.form.stopNote),callback:function ($$v) {_vm.$set(_vm.form, \"stopNote\", $$v)},expression:\"form.stopNote\"}})],1):(_vm.type === 'cancel_stop')?_c('div',{staticClass:\"p-3\"},[_c('h5',[_vm._v(\"Deseja continuar com a produção?\")])]):(_vm.type === 'set_responsible')?_c('div',[_c('t-input',{attrs:{\"required\":\"\",\"select\":\"\",\"options\":_vm.operatorOptions,\"label\":\"Operador responsável\"},model:{value:(_vm.form.operatorId),callback:function ($$v) {_vm.$set(_vm.form, \"operatorId\", $$v)},expression:\"form.operatorId\"}})],1):(_vm.type === 'set_operationStatus')?_c('div',[_c('t-input',{attrs:{\"required\":\"\",\"select\":\"\",\"options\":_vm.typeStatusProductionCommonOptions,\"label\":\"Status Operacional novo\"},model:{value:(_vm.form.operationStatusId),callback:function ($$v) {_vm.$set(_vm.form, \"operationStatusId\", $$v)},expression:\"form.operationStatusId\"}})],1):(_vm.type === 'set_groupUser')?_c('div',[_c('b-row',[_c('t-input',{attrs:{\"cols\":\"8\",\"select\":\"\",\"options\":_vm.groupUserOptions,\"label\":\"Grupo de Usuários\"},model:{value:(_vm.groupUserId),callback:function ($$v) {_vm.groupUserId=$$v},expression:\"groupUserId\"}}),_c('b-col',{attrs:{\"cols\":\"4\"}},[_c('t-button',{attrs:{\"outline-primary\":\"\",\"form-inline\":\"\"},on:{\"click\":_vm.addGroupUser}},[_vm._v(\"Adicionar\")])],1)],1),_c('b-list-group',_vm._l((_vm.form.groupUsers),function(item){return _c('b-list-group-item',{key:item.groupUserId,staticClass:\"m-0 p-0\"},[_c('b-row',{staticClass:\"d-flex align-items-center\"},[_c('div',{staticClass:\"col-10 d-flex align-items-center\"},[_c('b-row',[_c('div',{staticClass:\"col-12 pt-1\"},[_c('b',{staticClass:\"pl-2\"},[_vm._v(_vm._s(item.name))])]),_c('div',{staticClass:\"col-12\"},[_c('t-input',{attrs:{\"radio\":\"\",\"options\":_vm.FlowStepGroupUserAccessType.list},model:{value:(item.stepTypeAccess),callback:function ($$v) {_vm.$set(item, \"stepTypeAccess\", $$v)},expression:\"item.stepTypeAccess\"}})],1)])],1),_c('div',{staticClass:\"col-2\"},[_c('b-icon-trash',{staticClass:\"text-danger opacity-6 opacity-10-hover link\",on:{\"click\":function($event){return _vm.addGroupSelected(false, item.groupUserId)}}})],1)])],1)}),1)],1):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n\n  <t-dialog-form :generalErrors=\"generalErrors\" :title=\"title\" :ok-text=\"okText\" @show=\"showModal\" @hidden=\"resetModal\"\n                 :id=\"id\" :command=\"command\" :status=\"status\" :variant=\"variant\"\n                 ref=\"dialog_form\" @onSubmit=\"onSubmit\">\n\n\n    <table class=\"mb-2 table-bordered table\">\n      <thead>\n      <tr>\n        <td>Ordem de Fabricação</td>\n        <td>Etapa atual</td>\n      </tr>\n      </thead>\n      <tbody>\n      <tr>\n        <td><b>{{ step.productionOrderCodeLabel }}</b></td>\n        <td><b>{{ step.name }}</b></td>\n      </tr>\n      </tbody>\n    </table>\n\n\n    <div v-if=\"type === 'return'\">\n\n      <t-input v-model=\"form.goProductionOrderBatchStepId\" required select :options=\"stepOptions\"\n               label=\"Etapa desejada\"/>\n\n      <t-input v-model=\"form.typeStopId\" required select :options=\"typeProductionReturnOptions\" label=\"Motivo\"/>\n\n      <t-input v-model=\"form.stopNote\" textarea label=\"Descrição adicional\"/>\n\n    </div>\n\n\n\n\n    <div v-else-if=\"type === 'stop'\">\n\n      <t-input v-model=\"stopType\" stacked :options=\"stopTypeOption\" radio required/>\n\n      <t-input v-if=\"stopType === 1\" v-model=\"form.typeStopId\" required select :options=\"typeProductionStopOptions\"\n               label=\"Motivo\"/>\n\n      <t-input v-else-if=\"stopType === 2\" v-model=\"form.operationStatusId\" required select\n               :options=\"typeStatusProductionOptions\" label=\"Status do Erro\"/>\n\n\n      <t-input v-model=\"form.stopNote\" textarea label=\"Descrição adicional\"/>\n\n\n    </div>\n\n    <div v-else-if=\"type === 'cancel_stop'\" class=\"p-3\">\n\n      <h5>Deseja continuar com a produção?</h5>\n\n    </div>\n\n    <div v-else-if=\"type === 'set_responsible'\">\n\n      <t-input v-model=\"form.operatorId\" required select\n               :options=\"operatorOptions\" label=\"Operador responsável\"/>\n\n    </div>\n\n    <div v-else-if=\"type === 'set_operationStatus'\">\n\n\n      <t-input  v-model=\"form.operationStatusId\" required select\n               :options=\"typeStatusProductionCommonOptions\" label=\"Status Operacional novo\"/>\n\n\n    </div>\n\n    <div v-else-if=\"type === 'set_groupUser'\">\n\n\n      <b-row>\n\n        <t-input cols=\"8\" v-model=\"groupUserId\" select :options=\"groupUserOptions\"\n                 label=\"Grupo de Usuários\"/>\n\n        <b-col cols=\"4\">\n          <t-button outline-primary form-inline @click=\"addGroupUser\">Adicionar</t-button>\n\n        </b-col>\n\n      </b-row>\n\n      <b-list-group>\n\n        <b-list-group-item class=\"m-0 p-0\" v-for=\"item in form.groupUsers\" :key=\"item.groupUserId\">\n\n          <b-row class=\"d-flex align-items-center\">\n\n\n            <div class=\"col-10 d-flex align-items-center\">\n\n              <b-row>\n\n                <div class=\"col-12 pt-1\">\n\n                  <b class=\"pl-2\">{{ item.name }}</b>\n                </div>\n                <div class=\"col-12\">\n                  <t-input radio v-model=\"item.stepTypeAccess\" :options=\"FlowStepGroupUserAccessType.list\"/>\n\n                </div>\n\n              </b-row>\n\n\n            </div>\n\n\n            <div class=\"col-2\">\n\n              <b-icon-trash @click=\"addGroupSelected(false, item.groupUserId)\"\n                            class=\"text-danger opacity-6 opacity-10-hover link\"/>\n\n            </div>\n\n          </b-row>\n\n\n        </b-list-group-item>\n\n      </b-list-group>\n\n\n    </div>\n\n\n  </t-dialog-form>\n\n</template>\n<script>\nimport tDialogForm from \"@/components/template/dialog/t-dialog-form\";\nimport pageDialogFormMixin from \"@/mixins/page/pageDialogFormMixin\";\nimport ProductionOrderStepService from \"@/services/modules/production/ProductionOrderStep.service\";\nimport StepActionType from \"@/model/types/modules/production/StepActionType\";\nimport FlowStepGroupUserAccessType from \"@/model/types/modules/production/FlowStepGroupUserAccessType\";\nimport ui from \"@/assets/scripts/ui\";\n\nexport default {\n  name: \"StepActionDialog\",\n  components: {tDialogForm},\n  mixins: [pageDialogFormMixin],\n  data() {\n    return {\n      id: \"modal-action-step\",\n      title: \"\",\n      okText: \"\",\n      FlowStepGroupUserAccessType,\n      form: {\n        action: 0,\n        productionOrderBatchStepId: 0,\n        goProductionOrderBatchStepId: 0,\n        typeStopId: 0,\n        operationStatusId: 0,\n        operatorId: 0,\n        stopNote: \"\",\n        groupUsers: [],\n      },\n      step: {},\n      error: {//Campos que podem receber retorno de erro do backend\n        name: \"\",\n      },\n      stopType: 1, //1 = Parada temporária 2= Definitiva\n      variant: \"primary\",\n      stopTypeOption: [{value: 1, text: 'Parada temporaria'}, {value: 2, text: 'Finalização com erro'}, {\n        value: 3,\n        text: 'Finalização com sucesso'\n      }], /*Valido somente para o tipo 'stop'*/\n      groupUserId: 0,\n      operatorOptions: [],\n      stepOptions: [],\n      typeStatusProductionOptions: [],\n      typeStatusProductionCommonOptions: [],\n      typeProductionReturnOptions: [],\n      typeProductionStopOptions: [],\n      groupUserOptions: [],\n      originalGroupUserOptions: []\n    }\n  },\n  props: {\n    productionOrderBatchStepId: {\n      type: Number,\n      required: true,\n    },\n    dialogId:{\n      type:String,\n      default:\"\"\n    },\n    type: {\n      type: String,\n      default: \"return\", //return, stop, set_responsible\n    },\n  },\n  mounted() {\n\n    if (this.dialogId !== '') {\n      this.id = this.dialogId\n    }\n\n  },\n  methods: {\n\n    /*--------------------------------------------------------------------------*/\n    /*METODOS PARA DIALOGO DE GRUPO DE USUÁRIOS*/\n    setGroupUserAvailable() {\n\n      //Seta a informação inicial\n      if (this.form.groupUsers.length > 0) {\n\n        for (let item of this.form.groupUsers) {\n\n          //Tenta encontra item na listagem de grupos ativos\n          const group = this.groupUserOptions.find(a => a.value === item.groupUserId)\n\n          if (group) {\n\n            //Encontrado então seta o texto somente\n            item.name = group.text\n\n            //Remove da listagem\n            const indexRemove = this.groupUserOptions.findIndex(a => a.value === item.groupUserId)\n\n            if (indexRemove >= 0)\n              this.groupUserOptions.splice(indexRemove, 1)\n\n          } else {\n            //Remove, pois provavelmente não é mais válido o grupo que havia sido selecionado\n            this.addGroupSelected(false, item.groupUserId)\n          }\n\n        }\n\n      }\n\n    },\n\n    addGroupUser() {\n\n      if (this.groupUserId === 0) {\n        ui.msgError(this, 'Selecione o grupo que deseja selecionar')\n      } else {\n\n        this.addGroupSelected(true, this.groupUserId)\n        this.groupUserId = 0\n\n      }\n\n    },\n\n\n    addGroupSelected(checked, id) {\n\n      if (checked) {\n\n        const el = this.form.groupUsers.find(a => a.groupUserId === id)\n\n        //Não inserido anteriormente\n        if (el == null) {\n\n          //Encontra item na listagem\n          const item = this.groupUserOptions.find(a => a.value === id)\n\n          //Adiciona\n          this.form.groupUsers.push(\n              {\n                groupUserId: id,\n                name: item.text,\n                stepTypeAccess: FlowStepGroupUserAccessType.type.FULL\n              }\n          )\n\n          //Remove da listagem, pois já foi utilizado\n          const indexRemove = this.groupUserOptions.findIndex(a => a.value === id)\n\n          if (indexRemove >= 0)\n            this.groupUserOptions.splice(indexRemove, 1)\n\n        }\n\n      } else {\n        //Remover\n        const indexRemove = this.form.groupUsers.findIndex(a => a.groupUserId === id)\n\n        if (indexRemove >= 0) {\n\n          //Remove da listagem\n          this.form.groupUsers.splice(indexRemove, 1)\n\n          //Tenta encontrar para disponibilizar novamente para seleção\n          const original = this.originalGroupUserOptions.find(a => a.value === id)\n\n          //Encontrado na lista original, por tanto retorna para listagem disponivel\n          if (original) {\n            this.groupUserOptions.push(original)\n          }\n\n        }\n\n\n      }\n\n    },\n    /*--------------------------------------------------------------------------*/\n\n    //Declaro sempre localmente, pois poderá realizar operações diferentes do padrão como setar algum valor padrão vindo de fora e que seria limpo pelo resetModal de forma dinamica\n    async showModal() {\n\n      //Limpa os campos\n      this.resetModal()\n\n      this.form.productionOrderBatchStepId = this.productionOrderBatchStepId\n\n      if (this.type === 'return') {\n\n        this.title = \"Ação de Alteração de Etapa\"\n        this.okText = \"Alterar Etapa\"\n        this.form.action = StepActionType.type.RETURN\n        this.variant = \"warning\"\n\n      } else if (this.type === 'stop') {\n\n        this.title = \"Ação de Paralização de Produção\"\n        this.okText = \"Parar Produção\"\n        this.form.action = StepActionType.type.STOP\n        this.variant = \"danger\"\n\n      } else if (this.type === 'cancel_stop') {\n\n        this.title = \"Retorno de Produção\"\n        this.okText = \"Sim\"\n        this.form.action = StepActionType.type.CANCEL_STOP\n\n      } else if (this.type === 'set_responsible') {\n\n        this.title = \"Ação de Alterar Responsável\"\n        this.okText = \"Alterar Responsável\"\n        this.form.action = StepActionType.type.SET_RESPONSIBLE\n\n      } else if (this.type === 'set_groupUser') {\n\n        this.title = \"Ação de Alterar Grupo de Usuários\"\n        this.okText = \"Alterar Grupos de Responsáveis\"\n        this.form.action = StepActionType.type.SET_GROUP_USER\n\n      } else if (this.type === 'set_operationStatus') {\n\n        this.title = \"Ação de Alterar Status Operacional\"\n        this.okText = \"Alterar Status Operacional\"\n        this.form.action = StepActionType.type.SET_OPERATION_STATUS\n\n      } else {\n        alert('Tipo não especificado de ação')\n      }\n\n\n      //Setar alguma informações padrão por exemplo vindo de fora\n      await ProductionOrderStepService.selectStopProductionRelationList(this.form.productionOrderBatchStepId).then((list) => {\n\n        this.step = list.step //ctepCurrent\n        this.form.operatorId = this.step.operatorId\n        this.operatorOptions = list.operatorOptions\n        this.stepOptions = list.stepOptions\n        this.typeStatusProductionOptions = list.typeStatusProductionOptions /*Somente com finalização de erro*/\n        this.typeStatusProductionCommonOptions = list.typeStatusProductionCommonOptions /*Somente tipo comum*/\n        this.typeProductionReturnOptions = list.typeProductionReturnOptions\n        this.typeProductionStopOptions = list.typeProductionStopOptions\n        this.groupUserOptions = list.groupUserOptions\n        this.originalGroupUserOptions = this.groupUserOptions.slice()\n\n        this.form.groupUsers = this.step.groupUsers\n\n        this.setGroupUserAvailable()\n\n      })\n\n\n    },\n\n    async onSubmit() {\n\n      if (this.type === 'stop' && this.stopType === 2) {\n        //Neste caso troca a ação de Parada de Produção por finalização com erro\n        this.form.action = StepActionType.type.FINISH_WITH_ERROR\n      } else if (this.type === 'stop' && this.stopType === 3) {\n        this.form.action = StepActionType.type.FINISH_WITH_SUCCESS\n      }\n\n      if (this.form.action === StepActionType.type.SET_GROUP_USER && this.form.groupUsers.length === 0) {\n        ui.msgError(this, \"Selecione pelo menos 1(um) grupo de usuários para continuar.\")\n      } else {\n\n        //Retirna o nome, pois estava apresentando erro\n        for (let item of this.form.groupUsers) {\n          delete item.name\n        }\n\n        //Validações específicas da tela\n        await this.setInsertDialog(\"production/order-step/action\", () => {\n\n          //Marca para indicar qual ação foi realizada e em qual etapa\n          this.itemInserted.value = this.form.action\n          this.itemInserted.text = this.step.name\n\n          this.successInsert()\n\n        })\n\n\n      }\n\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!./StepActionDialog.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!./StepActionDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./StepActionDialog.vue?vue&type=template&id=49d8220a&\"\nimport script from \"./StepActionDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./StepActionDialog.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\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","/**UTILIZADO NAS TELAS ONDE USARAM O COMPONENTE*/\r\n\r\nimport defaultEmbeddableMixin from \"@/mixins/embeddable/resource/defaultEmbeddableMixin\";\r\nimport ui from \"@/assets/scripts/ui\";\r\n\r\nexport default {\r\n\r\n    mixins: [defaultEmbeddableMixin],\r\n    data() {\r\n        return {\r\n            command: 'insert',\r\n            pageFormIsLoaded: false,\r\n            enabledSubmit: false,\r\n            setFieldCustomized: [] //Utilizado para enviar uma customização de campos para ser setado de fora\r\n        }\r\n    },\r\n    methods: {\r\n\r\n        responseErrorGeneral(error) {\r\n\r\n            if (error.response) {\r\n\r\n                if (error.response.status === 500) {\r\n\r\n                    const general = error.response.data.general\r\n\r\n                    if (general && general.length > 0) {\r\n\r\n                        let errors = \"\"\r\n\r\n                        for (error of general) {\r\n                            errors += \" - \" + error\r\n                        }\r\n\r\n                        ui.msgError(this,errors)\r\n\r\n                    }\r\n\r\n\r\n                } else if (error.response.status === 400) {\r\n\r\n                    alert('Falha ao tentar enviar, por favor tente novamente ou informe nosso suporte técnico o seguinte erro: 400')\r\n                    console.warn(error.response);\r\n\r\n                }\r\n\r\n            } else if (error.request) {\r\n                // The request was made but no response was received\r\n                alert('Falha de conexão, verifique sua internet 4')\r\n                console.warn(error.request);\r\n            }\r\n\r\n        },\r\n\r\n        onMountedForm(userAuth, command) {\r\n\r\n            this.userAuth = userAuth\r\n            this.command = command\r\n\r\n            //Chama o mountedContinued interno\r\n            this.mountedContinued()\r\n\r\n        },\r\n\r\n        getFieldValue(entity, fieldId) {\r\n\r\n            if (this.$refs.embeddable && this.$refs.embeddable.fieldsCustomizable !== undefined) {\r\n\r\n                const entityField = this.$refs.embeddable.fieldsCustomizable.find(a => a.entity === entity)\r\n\r\n                if (entityField !== undefined) {\r\n\r\n                    let field = entityField.fields.find(a => a.fieldId === fieldId)\r\n                    if (field !== undefined)\r\n                        return field.value\r\n\r\n                }\r\n\r\n            }\r\n\r\n\r\n        },\r\n\r\n        /*ATENÇÃO ESTE AQUI É DIFERENTE POIS É ACESSADO VIA REFS INDIRETAMENTE*/\r\n        setFieldValue(entity, fieldId, value) {\r\n\r\n            if (this.$refs.embeddable && this.$refs.embeddable.fieldsCustomizable !== undefined) {\r\n\r\n                let entityField = this.$refs.embeddable.fieldsCustomizable.find(a => a.entity === entity)\r\n\r\n                if (entityField !== undefined) {\r\n\r\n                    let field = entityField.fields.find(a => a.fieldId === fieldId)\r\n\r\n                    if (field !== undefined) {\r\n\r\n                        field.value = value\r\n                        entityField.fields.push(field)\r\n                        entityField.fields.pop()\r\n\r\n                    }\r\n\r\n                }\r\n\r\n            }\r\n\r\n        },\r\n\r\n    }\r\n}"],"sourceRoot":""}