{"version":3,"sources":["webpack:///./src/model/types/resource/TriggerEventType.js","webpack:///./src/services/modules/product/Material.service.js","webpack:///./src/model/types/modules/production/FlowStepNotSequenceActionType.js","webpack:///./src/services/modules/production/TypeNonConformance.service.js","webpack:///./src/model/types/modules/production/FlowStepGroupUserAccessType.js","webpack:///./src/views/modules/production/ProcessFlow/ProcessFlowForm.vue?922a","webpack:///./src/views/modules/production/ProcessFlow/ProcessFlowStep.vue?c9ae","webpack:///./src/views/modules/production/ProcessFlow/ProcessFlowStepField.vue?b846","webpack:///src/views/modules/production/ProcessFlow/ProcessFlowStepField.vue","webpack:///./src/views/modules/production/ProcessFlow/ProcessFlowStepField.vue?03c5","webpack:///./src/views/modules/production/ProcessFlow/ProcessFlowStepField.vue","webpack:///./src/views/modules/production/ProcessFlow/ProcessFlowStepDialog.vue?db54","webpack:///src/views/modules/production/ProcessFlow/ProcessFlowStepDialog.vue","webpack:///./src/views/modules/production/ProcessFlow/ProcessFlowStepDialog.vue?c150","webpack:///./src/views/modules/production/ProcessFlow/ProcessFlowStepDialog.vue","webpack:///./src/views/modules/production/ProcessFlow/ProcessFlowStepRule.vue?3827","webpack:///./src/views/modules/production/ProcessFlow/ProcessFlowStepRuleDialog.vue?c581","webpack:///./src/model/types/resource/FieldConditionType.js","webpack:///./src/model/types/modules/production/FlowStepRuleAnalysisType.js","webpack:///./src/components/template/page/t-editor.vue?b46e","webpack:///src/components/template/page/t-editor.vue","webpack:///./src/components/template/page/t-editor.vue?c76a","webpack:///./src/components/template/page/t-editor.vue","webpack:///src/views/modules/production/ProcessFlow/ProcessFlowStepRuleDialog.vue","webpack:///./src/views/modules/production/ProcessFlow/ProcessFlowStepRuleDialog.vue?93f5","webpack:///./src/views/modules/production/ProcessFlow/ProcessFlowStepRuleDialog.vue","webpack:///src/views/modules/production/ProcessFlow/ProcessFlowStepRule.vue","webpack:///./src/views/modules/production/ProcessFlow/ProcessFlowStepRule.vue?be72","webpack:///./src/views/modules/production/ProcessFlow/ProcessFlowStepRule.vue","webpack:///src/views/modules/production/ProcessFlow/ProcessFlowStep.vue","webpack:///./src/views/modules/production/ProcessFlow/ProcessFlowStep.vue?db29","webpack:///./src/views/modules/production/ProcessFlow/ProcessFlowStep.vue","webpack:///src/views/modules/production/ProcessFlow/ProcessFlowForm.vue","webpack:///./src/views/modules/production/ProcessFlow/ProcessFlowForm.vue?a443","webpack:///./src/views/modules/production/ProcessFlow/ProcessFlowForm.vue","webpack:///./src/components/template/form/list/t-form-list-trigger.vue?0556","webpack:///./src/model/types/resource/TriggerActionType.js","webpack:///src/components/template/form/list/t-form-list-trigger.vue","webpack:///./src/components/template/form/list/t-form-list-trigger.vue?5b0d","webpack:///./src/components/template/form/list/t-form-list-trigger.vue","webpack:///./src/services/modules/production/TypeStatusProduction.service.js","webpack:///./src/model/types/modules/production/FlowStepRuleActionType.js","webpack:///./src/model/types/resource/MaskMinuteType.js"],"names":["type","CREATED","READ","UPDATED","DELETED","INITIATED","FINISHED","CHANGE_STATUS","list","value","text","typeList","FORM","STEP","STATUS","contains","typeInput","Type","listByType","itemType","filter","a","path","service","params","http","EXECUTION_PARALLEL","RETURN_SPECIFIC_STEP","DELEGATE_RULES","FINAL_INSPECTION_SHIPPING","FULL","ONLY_VIEW","render","_vm","this","_h","$createElement","_c","_self","attrs","currentPage","singularTitle","t","pageTitle","command","status","generalErrors","checkErrorsComponent","name","pageFormIsLoaded","on","onSubmit","scopedSlots","_u","key","fn","isUpdate","_v","_e","form","processFlowId","proxy","model","callback","$$v","$set","expression","error","staticClass","directives","rawName","availableAllGroups","_l","family","groupId","_s","groupLabel","item","groupsProduct","find","groupProductId","$event","addSelected","availableAllModels","models","modelId","availableAllMaterials","materials","materialId","availableAllUnits","units","unitId","staticRenderFns","formDuplicate","origin","formDuplicateError","onFlowDuplicated","ref","foreignKey","processFlowStepId","onProcessFlowStepDialog","modalFieldName","getList","modalField","modalFieldProcessFlowStepId","modalRuleName","modalRule","modalRuleProcessFlowStepId","modalTriggerName","modalTrigger","modalTriggerProcessFlowStepId","TriggerEventType","items","fields","userAuth","listFormIsLoaded","listIsLoaded","onStepReadItem","onItemDeleteDefault","orderList","doneStep","modifiers","finishAutomaticallyDeadline","typeActionNotSequential","FlowStepNotSequenceActionType","startStep","endStep","goStep","statusOperational","statusDone","validation","openDialogDuplicate","openModalField","qtdFields","staticStyle","openModalRule","qtdRules","openModalTrigger","qtdTriggers","openStepInsert","primaryKeyColumn","foreignKeyColumn","processFlowStepFieldId","error_fieldCustomizable","onItemReadDefault","cancelUpdatedField","fillTypeOptions","fillType","calculationTag","mixins","pageDefaultMixin","components","data","fieldCustomizable","props","typeImage","Boolean","methods","defaultForm","defaultFormField","mountedPrepare","mountedPrepareFormListDefault","mountedList","component","busy","id","showModal","resetModal","stepSequential","otherStepsSerial","startProcessFlowStepId","endProcessFlowStepId","otherStepsAll","goProcessFlowStepId","deadlineTypeOptions","deadlineType","deadlineFixedMinutes","deadlineRegex","typeStatusProductionOptions","operationStatusId","responsibleTypeOptions","responsibleType","operatorOptions","operatorId","groupUserOptions","groupUserId","addGroupUser","FlowStepGroupUserAccessType","addGroupSelected","finishAutomaticallyEnable","pageDialogFormMixin","MaskMinuteType","departmentId","specialType","negationType","startAutomatically","enableCopyOtherStep","finishAutomaticallyTypeMaskMinute","note","groupUsers","fieldsNotReset","departmentOptions","originalGroupUserOptions","specialTypeOptions","negationTypeOptions","setGroupUserAvailable","length","ui","checked","el","push","indexRemove","splice","original","processFlowStepRuleId","onProcessFlowStepRuleDialog","openStepRuleReadItem","index","groupProduct","typeActionRule","FlowStepRuleActionType","GO_TO_STEP","FINISH_WITH_ERROR","statusProduction","CHANGE_STATUS_OPERATIONAL","BLOCK","requiredTypeNonConformance","typeNonConformanceId","typeNonConformance","typeApplication","typeAnalysis","condition","processFlowStepRuleFieldId","ConditionType","getConditionRuleName","analysisStatusProduction","openStepRuleInsert","groupProductOptions","checkOptions","stepOptions","typeStatusProductionErrorOptions","INFO","ALTERNATIVES","alternatives","addAlternative","typeStatusProductionAllOptions","FlowStepRuleAnalysisType","OPERATION_STATUS","analysisOperationStatusId","class","typeCondition","NOT_USE","getConditionTypes","var","VarType","BOOLEAN","INTEGER","InputType","isList","SELECT_COLOR","options","typeConditionOptions","enableFinalValue","DOUBLE","decimalPrecision","DATE","STRING","mask","typeApplicationOptions","typeNonConformanceOptions","BIGGER","BIGGER_OR_EQUAL","LESS","LESS_OR_EQUAL","EQUAL","NOT_EQUAL","IN","NOT_IN","typeBoolean","typeString","referenceValueIntegerInitial","undefined","referenceValueIntegerFinal","convertNumber","referenceValueDoubleInitial","referenceValueDoubleFinal","referenceValueBoolean","referenceValueString","convertDateBR","referenceValueDateInitial","referenceValueDateFinal","FIELD","required","disabled","smallToolbar","innerValue","default","String","small","mounted","setValue","v","watch","$emit","notChangeOperationStatus","question","info","conditions","typeVar","setTimeout","codeGeneratorPrefix","formDuplicateShow","changeName","computed","onForm","defaultFormList","openDialogForm","tFormList","ProcessFlowStepDialog","ProcessFlowStepField","ProcessFlowStepRule","tFormListTrigger","TDialogDuplicate","TypeStatusProduction","enableFields","enableRulers","enableTriggers","findDoneStep","newItems","genKey","fieldKey","unitOptions","modelOptions","materialsOptions","selectGroup","pathTrigger","foreignKeyColumnTrigger","typeTrigger","triggerEventTypeName","paramName","typeTriggerList","typeTriggerActionId","TriggerAction","SEND_MAIL","GENERATE_LABEL_AND_SEND_PRINTER_DEFAULT","labelList","STOCK_PRODUCT_IN","STOCK_PRODUCT_OUT","stockProductLocationList","GENERATE_REPORT_QUALITY","technicalReportList","onButtonSubmitText","cancelUpdatedList","REMOVE_NON_CONFORMANCE","Number","listParams","append","get","then","response","URLSearchParams","selectList","getText","MINUTE","HOUR","DAY","WEEK","MONTH","YEAR"],"mappings":"0IAGMA,EAAO,CACTC,QAAS,EACTC,KAAM,EACNC,QAAS,EACTC,QAAS,EACTC,UAAW,EACXC,SAAU,EACVC,cAAe,GAGbC,EAAO,CACT,CACIC,MAAOT,EAAKC,QACZS,KAAM,W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,CACID,MAAOT,EAAKiP,KACZvO,KAAM,iCAEV,CACID,MAAOT,EAAKkP,aACZxO,KAAM,wBAIRK,EAAW,SAAUf,GACvB,OAAOiB,OAAKF,SAASP,EAAMR,IAGzB0W,EAAU,SAAU1W,GACtB,OAAOiB,OAAKyV,QAAQlW,EAAMR,IAGf,QACXA,OACAQ,OACAO,WACA2V,Y,kCCnDJ,gBAEM1W,EAAO,CACT2W,OAAQ,EACRC,KAAM,EACNC,IAAK,EACLC,KAAM,EACNC,MAAO,EACPC,KAAM,GAGJxW,EAAO,CACT,CACIC,MAAOT,EAAK2W,OACZjW,KAAM,UAEV,CACID,MAAOT,EAAK4W,KACZlW,KAAM,QAEV,CACID,MAAOT,EAAK6W,IACZnW,KAAM,OAEV,CACID,MAAOT,EAAK8W,KACZpW,KAAM,UAEV,CACID,MAAOT,EAAK+W,MACZrW,KAAM,OAEV,CACID,MAAOT,EAAKgX,KACZtW,KAAM,QAKRK,EAAW,SAAUC,GACvB,OAAOC,OAAKF,SAASP,EAAMQ,IAGhB,QACXhB,OACAQ,OACAO","file":"js/chunk-37a3fb8a.afe5ffa3.js","sourcesContent":["import Type from \"@/model/types/Type\";\r\n\r\n\r\nconst type = {\r\n CREATED: 1,\r\n READ: 2,\r\n UPDATED: 3,\r\n DELETED: 4,\r\n INITIATED: 5,\r\n FINISHED: 6,\r\n CHANGE_STATUS: 7,\r\n}\r\n\r\nconst list = [\r\n {\r\n value: type.CREATED,\r\n text: \"Incluir\",\r\n },\r\n {\r\n value: type.READ,\r\n text: \"Ler\",\r\n\r\n },\r\n {\r\n value: type.UPDATED,\r\n text: \"Atualizar\",\r\n\r\n },\r\n {\r\n value: type.DELETED,\r\n text: \"Excluir\",\r\n\r\n },\r\n {\r\n value: type.INITIATED,\r\n text: \"Iniciar etapa\",\r\n\r\n },\r\n {\r\n value: type.FINISHED,\r\n text: \"Finalizar etapa\",\r\n },\r\n {\r\n value: type.CHANGE_STATUS,\r\n text: \"Mudança de Status\",\r\n\r\n }\r\n\r\n]\r\n\r\nconst typeList = {\r\n FORM: \"form\",\r\n STEP: \"step\",\r\n STATUS: \"status\",\r\n}\r\n\r\nconst contains = function (typeInput) {\r\n return Type.contains(list, typeInput)\r\n}\r\n\r\nconst listByType = function (itemType) {\r\n\r\n if (itemType === typeList.FORM) {\r\n return list.filter(a => a.value === type.CREATED || a.value === type.READ || a.value === type.UPDATED || a.value === type.DELETED)\r\n } else if (itemType === typeList.STEP) {\r\n return list.filter(a => a.value === type.INITIATED || a.value === type.CHANGE_STATUS)\r\n } else if (itemType === typeList.STATUS) {\r\n return list.filter(a => a.value === type.CHANGE_STATUS)\r\n }\r\n}\r\n\r\nexport default {\r\n type,\r\n list,\r\n contains,\r\n typeList,\r\n listByType,\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 = \"product/material\"\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\r\n}\r\n\r\nexport default new service();\r\n\r\n","import Type from \"@/model/types/Type\";\r\n\r\nconst type = {\r\n EXECUTION_PARALLEL: 4,\r\n/* RETURN_STEP_ORIGIN: 1,\r\n RETURN_NEXT_STEP_ORIGIN: 2,NÃO IMPLEMENTADOS NO BACK-END*/\r\n RETURN_SPECIFIC_STEP: 3,\r\n DELEGATE_RULES: 5,\r\n FINAL_INSPECTION_SHIPPING: 6,\r\n}\r\nconst list = [\r\n {\r\n value: type.EXECUTION_PARALLEL,\r\n text: \"Etapa em paralelo\",\r\n },\r\n /*{\r\n NÃO IMPLEMENTADOS NO BACK-END\r\n value: type.RETURN_STEP_ORIGIN,\r\n text: \"Retornar para mesma etapa de origem\",\r\n },\r\n {\r\n value: type.RETURN_NEXT_STEP_ORIGIN,\r\n text: \"Retornar para próxima etapa em relação a origem\",\r\n },*/\r\n {\r\n value: type.RETURN_SPECIFIC_STEP,\r\n text: \"Retornar para etapa especÃfica\",\r\n },\r\n {\r\n value: type.DELEGATE_RULES,\r\n text: \"Definir posteriormente pelas regras\",\r\n },\r\n {\r\n value: type.FINAL_INSPECTION_SHIPPING,\r\n text: \"Inspeção Final para Expedição\",\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}","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-non-conformance\"\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}\r\n\r\nexport default new service();","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}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('t-page',[_c('t-page-form',{attrs:{\"tabs\":\"\",\"submit-text\":_vm.currentPage.singularTitle,\"title\":_vm.t('form-of')+_vm.currentPage.pageTitle,\"command\":_vm.command,\"status\":_vm.status,\"generalErrors\":_vm.generalErrors,\"check-errors-again\":_vm.checkErrorsComponent,\"go-back-title\":_vm.t('go-back-list'),\"go-back-to\":_vm.currentPage.name,\"busy\":!_vm.pageFormIsLoaded},on:{\"onSubmit\":_vm.onSubmit},scopedSlots:_vm._u([{key:\"out-of-form\",fn:function(){return [_c('t-form-tab',{attrs:{\"title\":\"Etapas do Processo\",\"hash\":\"step\",\"lazy\":\"\"}},[(_vm.isUpdate())?_c('t-msg',{attrs:{\"info\":\"\"}},[_vm._v(\"Atualizações no fluxo de etapas serão aplicadas somente a novas Ordens de Fabricação ou para Ordens em Andamento que desejar aplicar a ação 'Atualizar Fluxo de Processo'. \")]):_vm._e(),_c('ProcessFlowStep',{attrs:{\"foreign-key\":_vm.form.processFlowId}})],1)]},proxy:true}])},[_c('t-input',{attrs:{\"hidden\":\"\"},model:{value:(_vm.form.processFlowId),callback:function ($$v) {_vm.$set(_vm.form, \"processFlowId\", $$v)},expression:\"form.processFlowId\"}}),_c('t-form-tab',{attrs:{\"title\":\"Dados Básicos\"}},[_c('t-form-card',{attrs:{\"title\":\"Denominação\",\"icon-info-square\":\"\"}},[_c('t-input',{attrs:{\"add-error\":_vm.error.name,\"label\":\"Nome\",\"required\":\"\"},model:{value:(_vm.form.name),callback:function ($$v) {_vm.$set(_vm.form, \"name\", $$v)},expression:\"form.name\"}}),_c('t-input',{attrs:{\"label\":\"Observações\",\"max-length\":\"500\",\"textarea\":\"\"},model:{value:(_vm.form.note),callback:function ($$v) {_vm.$set(_vm.form, \"note\", $$v)},expression:\"form.note\"}}),_c('t-input-status',{model:{value:(_vm.form.status),callback:function ($$v) {_vm.$set(_vm.form, \"status\", $$v)},expression:\"form.status\"}})],1),_c('t-form-card',{attrs:{\"title\":\"Grupos de produtos\",\"icon-folder\":\"\"}},[_c('b-form-checkbox',{staticClass:\"col-sm-12 ml-2\",attrs:{\"switch\":\"\"},model:{value:(_vm.form.availableAllGroups),callback:function ($$v) {_vm.$set(_vm.form, \"availableAllGroups\", $$v)},expression:\"form.availableAllGroups\"}},[_vm._v(\" Disponibilizar este Fluxo-Processo a todos os grupos de produtos? \"),_c('t-help',{attrs:{\"title\":\"Você poderá especificar quais os grupos podem utilizar, basta desmarcar esta opção e selecionar os grupos de produtos desejados.\"}})],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.form.availableAllGroups),expression:\"!form.availableAllGroups\"}],staticClass:\"mt-2\"},_vm._l((_vm.groupProductOptions),function(family){return _c('div',{key:family.groupId,staticClass:\"pb-2 mb-2 border-bottom\"},[_c('h6',{staticClass:\"mb-0\"},[_c('b',[_vm._v(_vm._s(family.groupLabel))])]),_vm._l((family.options),function(item){return _c('b-form-checkbox',{key:item.value,staticClass:\"ml-3\",attrs:{\"checked\":_vm.form.groupsProduct.find(function (a) { return a.groupProductId === item.value; }) != null},on:{\"change\":function($event){return _vm.addSelected($event,item.value,'groupProductId',_vm.form.groupsProduct)}}},[_vm._v(\" \"+_vm._s(item.text)+\" \")])})],2)}),0)],1),_c('t-form-card',{attrs:{\"title\":\"Modelos\",\"icon-folder\":\"\"}},[_c('b-form-checkbox',{staticClass:\"col-sm-12 ml-2\",attrs:{\"switch\":\"\"},model:{value:(_vm.form.availableAllModels),callback:function ($$v) {_vm.$set(_vm.form, \"availableAllModels\", $$v)},expression:\"form.availableAllModels\"}},[_vm._v(\" Disponibilizar este Fluxo-Processo a todos os modelos? \"),_c('t-help',{attrs:{\"title\":\"Você poderá especificar quais os modelos, basta desmarcar esta opção e selecionar os modelos desejadas.\"}})],1),(!_vm.form.availableAllModels)?_c('div',{staticClass:\"mt-2\"},_vm._l((_vm.modelOptions),function(item){return _c('b-form-checkbox',{key:item.value,staticClass:\"ml-3\",attrs:{\"checked\":_vm.form.models.find(function (a) { return a.modelId === item.value; }) != null},on:{\"change\":function($event){return _vm.addSelected($event,item.value,'modelId',_vm.form.models)}}},[_vm._v(\" \"+_vm._s(item.text)+\" \")])}),1):_vm._e()],1),_c('t-form-card',{attrs:{\"title\":\"Materiais\",\"icon-folder\":\"\"}},[_c('b-form-checkbox',{staticClass:\"col-sm-12 ml-2\",attrs:{\"switch\":\"\"},model:{value:(_vm.form.availableAllMaterials),callback:function ($$v) {_vm.$set(_vm.form, \"availableAllMaterials\", $$v)},expression:\"form.availableAllMaterials\"}},[_vm._v(\" Disponibilizar este Fluxo-Processo a todos os materiais? \"),_c('t-help',{attrs:{\"title\":\"Você poderá especificar quais os materiais, basta desmarcar esta opção e selecionar os materiais desejados.\"}})],1),(!_vm.form.availableAllMaterials)?_c('div',{staticClass:\"mt-2\"},_vm._l((_vm.materialsOptions),function(item){return _c('b-form-checkbox',{key:item.value,staticClass:\"ml-3\",attrs:{\"checked\":_vm.form.materials.find(function (a) { return a.materialId === item.value; }) != null},on:{\"change\":function($event){return _vm.addSelected($event,item.value,'materialId',_vm.form.materials)}}},[_vm._v(\" \"+_vm._s(item.text)+\" \")])}),1):_vm._e()],1),_c('t-form-card',{attrs:{\"title\":\"Embalagens\",\"icon-folder\":\"\"}},[_c('b-form-checkbox',{staticClass:\"col-sm-12 ml-2\",attrs:{\"switch\":\"\"},model:{value:(_vm.form.availableAllUnits),callback:function ($$v) {_vm.$set(_vm.form, \"availableAllUnits\", $$v)},expression:\"form.availableAllUnits\"}},[_vm._v(\" Disponibilizar este Fluxo-Processo a todas as embalagens? \"),_c('t-help',{attrs:{\"title\":\"Você poderá especificar quais as emabalgens, basta desmarcar esta opção e selecionar as embalagens desejadas.\"}})],1),(!_vm.form.availableAllUnits)?_c('div',{staticClass:\"mt-2\"},_vm._l((_vm.unitOptions),function(item){return _c('b-form-checkbox',{key:item.value,staticClass:\"ml-3\",attrs:{\"checked\":_vm.form.units.find(function (a) { return a.unitId === item.value; }) != null},on:{\"change\":function($event){return _vm.addSelected($event,item.value,'unitId',_vm.form.units)}}},[_vm._v(\" \"+_vm._s(item.text)+\" \")])}),1):_vm._e()],1)],1)],1)],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',[(_vm.formDuplicateShow)?_c('t-dialog-duplicate',{attrs:{\"origin\":_vm.formDuplicate.origin,\"path-server\":_vm.currentPage.path,\"form-error\":_vm.formDuplicateError,\"title\":_vm.currentPage.singularTitle},on:{\"onSubmit\":_vm.onFlowDuplicated},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar status = ref.status;\nreturn [_c('t-input',{attrs:{\"hide-label\":\"\",\"status\":status,\"hidden\":\"\"},model:{value:(_vm.formDuplicate.processFlowId),callback:function ($$v) {_vm.$set(_vm.formDuplicate, \"processFlowId\", $$v)},expression:\"formDuplicate.processFlowId\"}}),_c('t-input',{attrs:{\"hide-label\":\"\",\"status\":status,\"hidden\":\"\"},model:{value:(_vm.formDuplicate.processFlowStepId),callback:function ($$v) {_vm.$set(_vm.formDuplicate, \"processFlowStepId\", $$v)},expression:\"formDuplicate.processFlowStepId\"}}),_c('t-input',{attrs:{\"label\":\"Nome da nova Etapa\",\"status\":status,\"add-error\":_vm.formDuplicateError.name,\"required\":\"\"},model:{value:(_vm.formDuplicate.changeName),callback:function ($$v) {_vm.$set(_vm.formDuplicate, \"changeName\", $$v)},expression:\"formDuplicate.changeName\"}}),_c('t-input',{attrs:{\"label\":\"Duplicar campos\",\"status\":status,\"checked\":\"\"},model:{value:(_vm.formDuplicate.enableFields),callback:function ($$v) {_vm.$set(_vm.formDuplicate, \"enableFields\", $$v)},expression:\"formDuplicate.enableFields\"}}),_c('t-input',{attrs:{\"label\":\"Duplicar regras\",\"status\":status,\"checked\":\"\"},model:{value:(_vm.formDuplicate.enableRulers),callback:function ($$v) {_vm.$set(_vm.formDuplicate, \"enableRulers\", $$v)},expression:\"formDuplicate.enableRulers\"}}),_c('t-input',{attrs:{\"label\":\"Duplicar gatilhos\",\"status\":status,\"checked\":\"\"},model:{value:(_vm.formDuplicate.enableTriggers),callback:function ($$v) {_vm.$set(_vm.formDuplicate, \"enableTriggers\", $$v)},expression:\"formDuplicate.enableTriggers\"}})]}}],null,false,1386041736),model:{value:(_vm.formDuplicate),callback:function ($$v) {_vm.formDuplicate=$$v},expression:\"formDuplicate\"}}):_vm._e(),_c('ProcessFlowStepDialog',{attrs:{\"command\":_vm.command,\"foreign-key\":_vm.foreignKey,\"primary-key\":_vm.form.processFlowStepId},on:{\"onSubmit\":_vm.onProcessFlowStepDialog}}),_c('b-modal',{attrs:{\"no-close-on-backdrop\":\"\",\"no-close-on-esc\":\"\",\"size\":\"lg\",\"id\":\"modal-process-flow-step-field\",\"hide-footer\":\"\",\"title\":'Campos etapa: ' + _vm.modalFieldName},on:{\"hidden\":_vm.getList},model:{value:(_vm.modalField),callback:function ($$v) {_vm.modalField=$$v},expression:\"modalField\"}},[(_vm.modalField)?_c('ProcessFlowStepField',{attrs:{\"foreign-key\":_vm.modalFieldProcessFlowStepId}}):_vm._e()],1),_c('b-modal',{attrs:{\"no-close-on-backdrop\":\"\",\"no-close-on-esc\":\"\",\"size\":\"lg\",\"id\":\"modal-process-flow-step-trigger\",\"hide-footer\":\"\",\"title\":'Regras etapa: ' + _vm.modalRuleName},on:{\"hidden\":_vm.getList},model:{value:(_vm.modalRule),callback:function ($$v) {_vm.modalRule=$$v},expression:\"modalRule\"}},[(_vm.modalRule)?_c('ProcessFlowStepRule',{attrs:{\"foreign-key\":_vm.modalRuleProcessFlowStepId}}):_vm._e()],1),_c('b-modal',{attrs:{\"no-close-on-backdrop\":\"\",\"no-close-on-esc\":\"\",\"size\":\"lg\",\"id\":\"modal-process-flow-step-trigger\",\"hide-footer\":\"\",\"title\":'Gatilhos etapa: ' + _vm.modalTriggerName},on:{\"hidden\":_vm.getList},model:{value:(_vm.modalTrigger),callback:function ($$v) {_vm.modalTrigger=$$v},expression:\"modalTrigger\"}},[(_vm.modalTrigger)?_c('t-form-list-trigger',{attrs:{\"primary-key-column\":\"processFlowStepTriggerId\",\"foreign-key-column-trigger\":\"processFlowStepId\",\"path-trigger\":\"production/process-flow-step-trigger\",\"foreign-key\":_vm.modalTriggerProcessFlowStepId,\"type-trigger\":_vm.TriggerEventType.typeList.STEP}}):_vm._e()],1),_c('t-form-list',{attrs:{\"generalErrors\":_vm.generalErrors,\"sortable\":\"\",\"sortable-check-column\":\"stepSequential\",\"items\":_vm.items,\"fields\":_vm.fields,\"command\":_vm.command,\"user-auth\":_vm.userAuth,\"status\":_vm.status,\"busy\":!_vm.pageFormIsLoaded,\"busy-form\":!_vm.listFormIsLoaded,\"busy-list\":!_vm.listIsLoaded,\"path\":_vm.path,\"primary-key-column\":\"processFlowStepId\",\"foreign-key-column\":\"processFlowId\",\"primary-key\":_vm.form.processFlowStepId,\"foreign-key\":_vm.foreignKey},on:{\"onChangeOrder\":_vm.getList,\"onItemRead\":_vm.onStepReadItem,\"onItemDelete\":_vm.onItemDeleteDefault},scopedSlots:_vm._u([{key:\"item(orderList)\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(item.stepSequential),expression:\"item.stepSequential\"}],staticClass:\"badge badge-pill badge-light bg-light\"},[_vm._v(_vm._s(item.orderList))])]}},{key:\"item(name)\",fn:function(ref){\nvar item = ref.item;\nreturn [(item.stepSequential)?_c('div',[(_vm.doneStep.processFlowStepId === item.processFlowStepId)?_c('div',[_c('b-icon-check-circle-fill',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:('Etapa de finalização'),expression:\"'Etapa de finalização'\",modifiers:{\"hover\":true}}],staticClass:\"text-success\"}),_vm._v(\" \"+_vm._s(item.name)+\" \"),(item.finishAutomaticallyEnable)?_c('b-icon-clock',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:('Finalização automatica após '+ item.finishAutomaticallyDeadline + ' minutos'),expression:\"'Finalização automatica após '+ item.finishAutomaticallyDeadline + ' minutos'\",modifiers:{\"hover\":true}}]}):_vm._e()],1):_c('div',[_c('b-icon-arrow-down-circle-fill',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:('Etapa sequêncial'),expression:\"'Etapa sequêncial'\",modifiers:{\"hover\":true}}]}),_vm._v(\" \"+_vm._s(item.name)+\" \"),(item.finishAutomaticallyEnable)?_c('b-icon-clock',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:('Finalização automatica após '+ item.finishAutomaticallyDeadline + ' minutos'),expression:\"'Finalização automatica após '+ item.finishAutomaticallyDeadline + ' minutos'\",modifiers:{\"hover\":true}}]}):_vm._e()],1)]):_c('div',[(item.typeActionNotSequential === _vm.FlowStepNotSequenceActionType.type.EXECUTION_PARALLEL)?_c('div',[_c('b-icon-menu-button-fill',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:('Etapa em paralelo'),expression:\"'Etapa em paralelo'\",modifiers:{\"hover\":true}}]}),_vm._v(\" \"+_vm._s(item.name)+\" \"),_c('div',{staticClass:\"pl-3\"},[_c('small',[_vm._v(\"Durante\")]),_vm._v(\" \"),_c('b',[_vm._v(_vm._s(item.startStep))]),_vm._v(\" \"),_c('br'),_c('small',[_vm._v(\"Até\")]),_vm._v(\" \"),_c('b',[_vm._v(_vm._s(item.endStep))])])],1):_vm._e(),(item.typeActionNotSequential === _vm.FlowStepNotSequenceActionType.type.FINAL_INSPECTION_SHIPPING)?_c('div',[_c('b-icon-shield-fill-check',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:('Inspeção final para expedições do produtos'),expression:\"'Inspeção final para expedições do produtos'\",modifiers:{\"hover\":true}}]}),_vm._v(\" \"+_vm._s(item.name)+\" \"),_c('br'),_c('small',[_vm._v(\"Etapa executada quando for expedido ao cliente\")])],1):_c('div',[_c('b-icon-arrow-up-right-circle-fill',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:('Etapa com acionamento somente de forma especial'),expression:\"'Etapa com acionamento somente de forma especial'\",modifiers:{\"hover\":true}}]}),_vm._v(\" \"+_vm._s(item.name)+\" \"),_c('b-icon-arrow-right'),(item.typeActionNotSequential === _vm.FlowStepNotSequenceActionType.type.DELEGATE_RULES)?_c('span',{staticClass:\"pl-1\"},[_c('b',[_vm._v(\" Definido pelas regras \")])]):_c('span',{staticClass:\"pl-1\"},[_c('b',[_vm._v(_vm._s(item.goStep))])]),(item.finishAutomaticallyEnable)?_c('b-icon-clock',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:('Finalização automatica após '+ item.finishAutomaticallyDeadline + ' minutos'),expression:\"'Finalização automatica após '+ item.finishAutomaticallyDeadline + ' minutos'\",modifiers:{\"hover\":true}}]}):_vm._e()],1)])]}},{key:\"item(statusOperational)\",fn:function(ref){\nvar item = ref.item;\nreturn [(_vm.doneStep.processFlowStepId === item.processFlowStepId)?_c('div',[_vm._v(\" \"+_vm._s(item.statusOperational)+\" \"),_c('b-icon-arrow-right'),_c('span',{staticClass:\"pl-1\"},[_c('b',[_vm._v(_vm._s(_vm.statusDone.name))])])],1):_c('div',[_vm._v(_vm._s(item.statusOperational))])]}},{key:\"append-default-buttons\",fn:function(ref){\nvar item = ref.item;\nreturn [(_vm.userAuth.validation.validationCreate)?_c('b-button',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover.ds500\",modifiers:{\"hover\":true,\"ds500\":true}}],staticClass:\"opacity-6-hover\",attrs:{\"size\":\"sm\",\"variant\":\"outline\",\"title\":\"Duplicar etapa\"},on:{\"click\":function($event){return _vm.openDialogDuplicate(item.processFlowStepId, item.name)}}},[_c('b-icon-files',{attrs:{\"variant\":\"primary\"}})],1):_vm._e()]}},{key:\"list-buttons\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('b-button-group',{staticClass:\"mr-4\",attrs:{\"size\":\"sm\"}},[_c('t-button',{staticClass:\"pr-2\",attrs:{\"small\":\"\"},on:{\"click\":function($event){return _vm.openModalField(item.processFlowStepId, item.name)}}},[_c('b-icon-card-text'),_vm._v(\" Campos \"),(item.qtdFields > 0)?_c('div',{staticClass:\"mr-1 badge badge-sm badge-pill bg-warning text-black-50\",staticStyle:{\"right\":\"-3px\",\"top\":\"-7px\"}},[_vm._v(_vm._s(item.qtdFields)+\" \")]):_vm._e()],1),_c('t-button',{attrs:{\"small\":\"\"},on:{\"click\":function($event){return _vm.openModalRule(item.processFlowStepId, item.name)}}},[_c('b-icon-shield-exclamation'),_vm._v(\" Regras \"),(item.qtdRules > 0)?_c('div',{staticClass:\"mr-1 badge badge-sm badge-pill bg-warning text-black-50\",staticStyle:{\"right\":\"-3px\",\"top\":\"-7px\"}},[_vm._v(_vm._s(item.qtdRules)+\" \")]):_vm._e()],1),_c('t-button',{attrs:{\"small\":\"\"},on:{\"click\":function($event){return _vm.openModalTrigger(item.processFlowStepId, item.name)}}},[_c('b-icon-bezier2'),_vm._v(\" Gatilhos \"),(item.qtdTriggers > 0)?_c('div',{staticClass:\"mr-1 badge badge-sm badge-pill bg-warning text-black-50\",staticStyle:{\"right\":\"-3px\",\"top\":\"-7px\"}},[_vm._v(_vm._s(item.qtdTriggers)+\" \")]):_vm._e()],1)],1)]}}])},[_c('div',{staticClass:\"ml-1 mb-3\"},[_c('t-button',{on:{\"click\":_vm.openStepInsert}},[_c('b-icon-node-plus'),_vm._v(\" \"+_vm._s(_vm.t('insert') + ' Etapa')+\" \")],1)],1)])],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('t-page-form-field-customizable',{attrs:{\"btn-submit-primary\":\"\",\"command\":_vm.command,\"status\":_vm.status,\"path\":_vm.path,\"primaryKeyColumn\":_vm.primaryKeyColumn,\"foreign-key-column\":_vm.foreignKeyColumn,\"primary-key\":_vm.form.processFlowStepFieldId,\"foreign-key\":_vm.form.processFlowStepId,\"items\":_vm.items,\"user-auth\":_vm.userAuth,\"busy\":!_vm.pageFormIsLoaded,\"busy-form\":!_vm.listFormIsLoaded,\"busy-list\":!_vm.listIsLoaded,\"error-field\":_vm.error_fieldCustomizable,\"general-errors\":_vm.generalErrors},on:{\"onSubmit\":_vm.onSubmit,\"onItemRead\":_vm.onItemReadDefault,\"onItemDelete\":_vm.onItemDeleteDefault,\"onCancelUpdatedList\":_vm.cancelUpdatedField,\"onRequestList\":_vm.getList},scopedSlots:_vm._u([{key:\"form-row-top\",fn:function(){return [_c('b-row',[_c('t-input',{attrs:{\"label\":\"Tipo de Preenchimento\",\"required\":\"\",\"select-common\":\"\",\"options\":_vm.fillTypeOptions,\"cols\":\"6\",\"add-error\":_vm.error.fillType},model:{value:(_vm.form.fillType),callback:function ($$v) {_vm.$set(_vm.form, \"fillType\", $$v)},expression:\"form.fillType\"}}),_c('t-input',{attrs:{\"label\":\"Tag para Fórmulas\",\"only-letters\":\"\",\"upper\":\"\",\"help\":\"Utilize para aplicação de fórmulas de cálculo\",\"cols\":\"6\",\"add-error\":_vm.error.calculationTag},model:{value:(_vm.form.calculationTag),callback:function ($$v) {_vm.$set(_vm.form, \"calculationTag\", $$v)},expression:\"form.calculationTag\"}})],1)]},proxy:true}]),model:{value:(_vm.form.fieldCustomizable),callback:function ($$v) {_vm.$set(_vm.form, \"fieldCustomizable\", $$v)},expression:\"form.fieldCustomizable\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n\n <div>\n\n <t-page-form-field-customizable\n btn-submit-primary\n v-model=\"form.fieldCustomizable\" :command=\"command\" :status=\"status\"\n :path=\"path\" :primaryKeyColumn=\"primaryKeyColumn\" :foreign-key-column=\"foreignKeyColumn\"\n :primary-key=\"form.processFlowStepFieldId\" :foreign-key=\"form.processFlowStepId\"\n :items=\"items\" :user-auth=\"userAuth\"\n :busy=\"!pageFormIsLoaded\" :busy-form=\"!listFormIsLoaded\" :busy-list=\"!listIsLoaded\"\n :error-field=\"error_fieldCustomizable\" :general-errors=\"generalErrors\"\n @onSubmit=\"onSubmit\" @onItemRead=\"onItemReadDefault\" @onItemDelete=\"onItemDeleteDefault\"\n @onCancelUpdatedList=\"cancelUpdatedField\" @onRequestList=\"getList\">\n\n <template #form-row-top>\n\n <b-row>\n <t-input label=\"Tipo de Preenchimento\" v-model=\"form.fillType\" required select-common\n :options=\"fillTypeOptions\" cols=\"6\" :add-error=\"error.fillType\"/>\n\n <t-input label=\"Tag para Fórmulas\" v-model=\"form.calculationTag\" only-letters upper\n help=\"Utilize para aplicação de fórmulas de cálculo\" cols=\"6\" :add-error=\"error.calculationTag\"/>\n </b-row>\n\n\n </template>\n\n </t-page-form-field-customizable>\n\n </div>\n\n\n</template>\n<script>\nimport pageDefaultMixin from \"@/mixins/page/pageDefaultMixin\"\nimport pageFormMixin from \"@/mixins/page/pageFormMixin\"\nimport pageFormListMixin from \"@/mixins/page/pageFormListMixin\";\nimport pageFormFieldMixin from \"@/mixins/page/pageFormFieldMixin\";\n\n\nimport tPageFormFieldCustomizable from \"@/components/template/page/t-page-form-field-customizable\";\n\nexport default {\n mixins: [pageDefaultMixin, pageFormMixin, pageFormListMixin, pageFormFieldMixin],\n components: {tPageFormFieldCustomizable},\n name: 'ProcessFlowStepField',\n data() {\n return {\n path: \"production/process-flow-step-field\", //Utilizar somente quando fora do padrão\n primaryKeyColumn: \"processFlowStepFieldId\",\n foreignKeyColumn: \"processFlowStepId\", //Utilizar quando usar Tabs com outros componentes\n form: {\n processFlowStepId: this.foreignKey,\n processFlowStepFieldId: 0,\n fieldCustomizable: {},\n fillType: 1,\n calculationTag: \"\",\n },\n //--------------------------------------------------------------------------------------\n //InÃcio de campos personalizados desta tela\n fillTypeOptions: [\n {value: \"1\", text: \"Novo valor a cada Ordem Produção\"},\n {value: \"2\", text: \"Traz do histórico/processo, operador NÃO edita\"},\n {value: \"3\", text: \"Traz do histórico/processo, operador PODERà editar\"},\n ],\n error: {//Campos que podem receber retorno de erro do backend\n fillType: \"\",\n calculationTag: \"\",\n },\n\n //--------------------------------------------------------------------------------------\n }\n },\n props: {\n typeImage: Boolean,\n },\n methods: {\n\n defaultForm() {\n\n //Preenche somente os campos que foram limpos após o reset\n this.defaultFormField()\n\n\n },\n\n mountedPrepare() {\n\n this.defaultForm()\n this.mountedPrepareFormListDefault()\n\n },\n\n async mountedContinued() {\n\n await this.getList()\n\n },\n\n async onSubmit() {\n\n await this.setSendingFormListDefault(this.form.processFlowStepFieldId)\n\n },\n\n mountedList() {\n\n // Manipulação da listagem após carregando\n //--------------------------------------\n\n //--------------------------------------\n\n this.listIsLoaded = true\n\n },\n //--------------------------------------------------------------------------------------\n //InÃcio de métodos personalizados desta tela\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!./ProcessFlowStepField.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!./ProcessFlowStepField.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProcessFlowStepField.vue?vue&type=template&id=355aabb8&\"\nimport script from \"./ProcessFlowStepField.vue?vue&type=script&lang=js&\"\nexport * from \"./ProcessFlowStepField.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 _c('t-dialog-form',{ref:\"dialog_form\",attrs:{\"generalErrors\":_vm.generalErrors,\"large\":\"\",\"title\":_vm.t(_vm.command) + ' Etapa',\"ok-text\":_vm.t(_vm.command) + ' Etapa',\"busy\":_vm.busy,\"id\":_vm.id,\"status\":_vm.status,\"command\":_vm.command},on:{\"show\":_vm.showModal,\"hidden\":_vm.resetModal,\"onSubmit\":_vm.onSubmit}},[_c('t-input',{attrs:{\"hidden\":\"\"},model:{value:(_vm.form.processFlowStepId),callback:function ($$v) {_vm.$set(_vm.form, \"processFlowStepId\", $$v)},expression:\"form.processFlowStepId\"}}),_c('b-row',[_c('b-col',{attrs:{\"cols\":\"6\"}},[_c('div',{staticClass:\"d-flex\",staticStyle:{\"justify-content\":\"space-between\"}},[_c('div',[_vm._v(\"Etapa\")])]),_c('t-input',{attrs:{\"hide-label\":\"\",\"add-error\":_vm.error.name,\"label\":\"Etapa\",\"required\":\"\"},model:{value:(_vm.form.name),callback:function ($$v) {_vm.$set(_vm.form, \"name\", $$v)},expression:\"form.name\"}})],1),_c('t-input',{attrs:{\"cols\":\"6\",\"label\":\"Observação\"},model:{value:(_vm.form.note),callback:function ($$v) {_vm.$set(_vm.form, \"note\", $$v)},expression:\"form.note\"}})],1),(!_vm.form.stepSequential)?_c('b-row',{staticClass:\"bg-warning-alert\"},[_c('div',{staticClass:\"col-12 font-italic\"},[_c('small',[_vm._v(\"Opções para etapa não sequencial\")])]),_c('b-col',{attrs:{\"cols\":\"6\"}},[_c('t-input',{attrs:{\"select-common\":\"\",\"options\":_vm.FlowStepNotSequenceActionType.list,\"add-error\":_vm.error.typeActionNotSequential,\"label\":\"Tipo não sequêncial\",\"required\":\"\"},model:{value:(_vm.form.typeActionNotSequential),callback:function ($$v) {_vm.$set(_vm.form, \"typeActionNotSequential\", $$v)},expression:\"form.typeActionNotSequential\"}})],1),(_vm.form.typeActionNotSequential === _vm.FlowStepNotSequenceActionType.type.EXECUTION_PARALLEL)?_c('b-col',{attrs:{\"cols\":\"3\"}},[_c('t-input',{attrs:{\"select-common\":\"\",\"options\":_vm.otherStepsSerial,\"add-error\":_vm.error.startProcessFlowStepId,\"label\":\"Finalizar durante\",\"help\":\"Etapa que deverá estar em andamento ou finalizada para que esta etapa em paralelo possa ser executada\",\"required\":\"\"},model:{value:(_vm.form.startProcessFlowStepId),callback:function ($$v) {_vm.$set(_vm.form, \"startProcessFlowStepId\", $$v)},expression:\"form.startProcessFlowStepId\"}})],1):_vm._e(),(_vm.form.typeActionNotSequential === _vm.FlowStepNotSequenceActionType.type.EXECUTION_PARALLEL)?_c('b-col',{attrs:{\"cols\":\"3\"}},[_c('t-input',{attrs:{\"select-common\":\"\",\"options\":_vm.otherStepsSerial,\"add-error\":_vm.error.endProcessFlowStepId,\"label\":\"Finalizar antes\",\"help\":\"Etapa máxima que não poderá ser finalizada antes que esta etapa em paralelo esteja concluÃda\",\"required\":\"\"},model:{value:(_vm.form.endProcessFlowStepId),callback:function ($$v) {_vm.$set(_vm.form, \"endProcessFlowStepId\", $$v)},expression:\"form.endProcessFlowStepId\"}})],1):_vm._e(),(_vm.form.typeActionNotSequential === _vm.FlowStepNotSequenceActionType.type.RETURN_SPECIFIC_STEP)?_c('b-col',{attrs:{\"cols\":\"6\"}},[_c('t-input',{attrs:{\"select-common\":\"\",\"options\":_vm.otherStepsAll,\"add-error\":_vm.error.goProcessFlowStepId,\"label\":\"Etapa desejada\",\"required\":\"\"},model:{value:(_vm.form.goProcessFlowStepId),callback:function ($$v) {_vm.$set(_vm.form, \"goProcessFlowStepId\", $$v)},expression:\"form.goProcessFlowStepId\"}})],1):_vm._e()],1):_vm._e(),_c('b-row',[_c('t-input',{attrs:{\"radio\":\"\",\"cols\":\"4\",\"options\":_vm.deadlineTypeOptions,\"add-error\":_vm.error.deadlineType,\"label\":\"Cálculo do Tempo\",\"required\":\"\"},model:{value:(_vm.form.deadlineType),callback:function ($$v) {_vm.$set(_vm.form, \"deadlineType\", $$v)},expression:\"form.deadlineType\"}}),_c('t-input',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.form.deadlineType === 1),expression:\"form.deadlineType === 1\"}],attrs:{\"cols\":\"8\",\"number\":\"\",\"add-error\":_vm.error.deadlineFixedMinutes,\"label\":\"Tempo fixo em minutos fixo\",\"help\":\"Valor fixo em minutos independente da quantidade de peças\",\"required\":_vm.form.deadlineType === 1},model:{value:(_vm.form.deadlineFixedMinutes),callback:function ($$v) {_vm.$set(_vm.form, \"deadlineFixedMinutes\", $$v)},expression:\"form.deadlineFixedMinutes\"}}),_c('t-input',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.form.deadlineType === 2),expression:\"form.deadlineType === 2\"}],attrs:{\"cols\":\"8\",\"add-error\":_vm.error.deadlineRegex,\"label\":\"Fórmula com base na quantidade\",\"help\":\"Resultado será em minutos. Utilize a variáveis de sistema: [QUANTITY_PIECES] e também as tags dos campos no padrão {TAG}. Exemplo: ([QUANTITY_PIECES]*1) + ([QUANTITY_PIECES]*{TEMPO_VULCANIZACAO})\",\"required\":_vm.form.deadlineType === 2},model:{value:(_vm.form.deadlineRegex),callback:function ($$v) {_vm.$set(_vm.form, \"deadlineRegex\", $$v)},expression:\"form.deadlineRegex\"}})],1),_c('t-input',{attrs:{\"select-common\":\"\",\"required\":\"\",\"options\":_vm.typeStatusProductionOptions,\"add-error\":_vm.error.operationStatusId,\"label\":\"Status Operacional\",\"help\":\"Informe qual o status operacional da Ordem de Fabricação quando esta etapa estiver em andamento.\"},model:{value:(_vm.form.operationStatusId),callback:function ($$v) {_vm.$set(_vm.form, \"operationStatusId\", $$v)},expression:\"form.operationStatusId\"}}),_c('t-input',{attrs:{\"radio\":\"\",\"options\":_vm.responsibleTypeOptions,\"add-error\":_vm.error.responsibleType,\"label\":\"Tipo de Responsável\",\"required\":\"\"},model:{value:(_vm.form.responsibleType),callback:function ($$v) {_vm.$set(_vm.form, \"responsibleType\", $$v)},expression:\"form.responsibleType\"}}),_c('t-input',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.form.responsibleType === 1),expression:\"form.responsibleType === 1\"}],attrs:{\"select\":\"\",\"options\":_vm.operatorOptions,\"add-error\":_vm.error.operatorId,\"label\":\"Operador\",\"required\":_vm.form.responsibleType === 1},model:{value:(_vm.form.operatorId),callback:function ($$v) {_vm.$set(_vm.form, \"operatorId\", $$v)},expression:\"form.operatorId\"}}),_c('b-row',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.form.responsibleType === 2),expression:\"form.responsibleType === 2\"}]},[_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',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.form.responsibleType === 2),expression:\"form.responsibleType === 2\"}]},_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-6 d-flex align-items-center\"},[_c('b',{staticClass:\"pl-2\"},[_vm._v(_vm._s(item.name))])]),_c('t-input',{attrs:{\"radio\":\"\",\"cols\":\"5\",\"options\":_vm.FlowStepGroupUserAccessType.list},model:{value:(item.stepTypeAccess),callback:function ($$v) {_vm.$set(item, \"stepTypeAccess\", $$v)},expression:\"item.stepTypeAccess\"}}),_c('div',{staticClass:\"col-1\"},[_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),_c('b-card',{attrs:{\"title\":\"Configurações Adicionais\"}},[_c('b-row',[_c('b-col',{attrs:{\"cols\":\"6\"}},[_c('b-form-checkbox',{attrs:{\"switch\":\"\"},model:{value:(_vm.form.startAutomatically),callback:function ($$v) {_vm.$set(_vm.form, \"startAutomatically\", $$v)},expression:\"form.startAutomatically\"}},[_vm._v(\" InÃcio automático? \"),_c('t-help',{attrs:{\"title\":\"Deixe esta opção marcada indicando que quando chegar o momento desta etapa a mesma será iniciada automaticamente para o operador relacionado, caso contrário o operador deverá realizar o inÃcio manual.\"}})],1),_c('b-form-checkbox',{attrs:{\"switch\":\"\"},model:{value:(_vm.form.stepSequential),callback:function ($$v) {_vm.$set(_vm.form, \"stepSequential\", $$v)},expression:\"form.stepSequential\"}},[_vm._v(\" Sequenciável? \"),_c('t-help',{attrs:{\"title\":\"Deixe esta opção marcada indicando que é uma etapa continua ou desmarque a etapa e desta forma somente poderá ser acessada via Ação Especial.\"}})],1),_c('b-form-checkbox',{attrs:{\"switch\":\"\"},model:{value:(_vm.form.enableCopyOtherStep),callback:function ($$v) {_vm.$set(_vm.form, \"enableCopyOtherStep\", $$v)},expression:\"form.enableCopyOtherStep\"}},[_vm._v(\" Permite copiar dados? \"),_c('t-help',{attrs:{\"title\":\"Deixe esta opção marcada indicando que é uma etapa que pode ter os dados copiados de outra Ordem de Fabricação.\"}})],1)],1),_c('b-col',{attrs:{\"cols\":\"6\"}},[_c('b-form-checkbox',{attrs:{\"switch\":\"\"},model:{value:(_vm.form.finishAutomaticallyEnable),callback:function ($$v) {_vm.$set(_vm.form, \"finishAutomaticallyEnable\", $$v)},expression:\"form.finishAutomaticallyEnable\"}},[_vm._v(\" Finalizar automaticamente (minutos)? \"),_c('t-help',{attrs:{\"title\":\"Marque esta opção se deseja finalizar a etapa automaticamente após o inÃcio da etapa, send o prazo em MINUTOS.\"}})],1),_c('t-input',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.form.finishAutomaticallyEnable),expression:\"form.finishAutomaticallyEnable\"}],attrs:{\"disabled\":!_vm.form.finishAutomaticallyEnable,\"required\":_vm.form.finishAutomaticallyEnable,\"placeholder\":\"Prazo em minutos após inicio\",\"label\":\"Após quantos minutos?\",\"hide-label\":\"\"},model:{value:(_vm.form.finishAutomaticallyDeadline),callback:function ($$v) {_vm.$set(_vm.form, \"finishAutomaticallyDeadline\", $$v)},expression:\"form.finishAutomaticallyDeadline\"}})],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n\n <t-dialog-form :generalErrors=\"generalErrors\" large :title=\"t(command) + ' Etapa'\"\n :ok-text=\"t(command) + ' Etapa'\" @show=\"showModal\" @hidden=\"resetModal\" :busy=\"busy\" :id=\"id\"\n :status=\"status\" :command=\"command\"\n ref=\"dialog_form\" @onSubmit=\"onSubmit\">\n\n\n <t-input v-model=\"form.processFlowStepId\" hidden/>\n\n <b-row>\n\n <b-col cols=\"6\">\n\n <div class=\"d-flex\" style=\"justify-content: space-between\">\n\n <div>Etapa</div>\n\n\n </div>\n\n <t-input v-model=\"form.name\" hide-label :add-error=\"error.name\" label=\"Etapa\"\n required/>\n\n </b-col>\n\n <t-input cols=\"6\" v-model=\"form.note\" label=\"Observação\"/>\n\n </b-row>\n\n\n <b-row class=\"bg-warning-alert\" v-if=\"!form.stepSequential\">\n\n <div class=\"col-12 font-italic\"><small>Opções para etapa não sequencial</small></div>\n\n <b-col cols=\"6\">\n\n <t-input select-common\n v-model=\"form.typeActionNotSequential\" :options=\"FlowStepNotSequenceActionType.list\"\n :add-error=\"error.typeActionNotSequential\" label=\"Tipo não sequêncial\"\n required/>\n\n </b-col>\n\n <b-col cols=\"3\" v-if=\"form.typeActionNotSequential === FlowStepNotSequenceActionType.type.EXECUTION_PARALLEL\">\n\n <t-input select-common\n v-model=\"form.startProcessFlowStepId\" :options=\"otherStepsSerial\"\n :add-error=\"error.startProcessFlowStepId\" label=\"Finalizar durante\"\n help=\"Etapa que deverá estar em andamento ou finalizada para que esta etapa em paralelo possa ser executada\"\n required/>\n\n </b-col>\n\n <b-col cols=\"3\" v-if=\"form.typeActionNotSequential === FlowStepNotSequenceActionType.type.EXECUTION_PARALLEL\">\n\n <t-input select-common\n v-model=\"form.endProcessFlowStepId\" :options=\"otherStepsSerial\"\n :add-error=\"error.endProcessFlowStepId\" label=\"Finalizar antes\"\n help=\"Etapa máxima que não poderá ser finalizada antes que esta etapa em paralelo esteja concluÃda\"\n required/>\n\n </b-col>\n\n <b-col cols=\"6\" v-if=\"form.typeActionNotSequential === FlowStepNotSequenceActionType.type.RETURN_SPECIFIC_STEP\">\n\n <t-input select-common\n v-model=\"form.goProcessFlowStepId\" :options=\"otherStepsAll\"\n :add-error=\"error.goProcessFlowStepId\" label=\"Etapa desejada\"\n required/>\n\n </b-col>\n\n </b-row>\n\n <b-row>\n\n\n <t-input radio cols=\"4\" v-model=\"form.deadlineType\" :options=\"deadlineTypeOptions\"\n :add-error=\"error.deadlineType\" label=\"Cálculo do Tempo\"\n required/>\n\n <t-input v-show=\"form.deadlineType === 1\" cols=\"8\" number v-model=\"form.deadlineFixedMinutes\"\n :add-error=\"error.deadlineFixedMinutes\"\n label=\"Tempo fixo em minutos fixo\"\n help=\"Valor fixo em minutos independente da quantidade de peças\"\n :required=\"form.deadlineType === 1\"/>\n\n\n <t-input v-show=\"form.deadlineType === 2\" cols=\"8\" v-model=\"form.deadlineRegex\" :add-error=\"error.deadlineRegex\"\n label=\"Fórmula com base na quantidade\"\n help=\"Resultado será em minutos. Utilize a variáveis de sistema: [QUANTITY_PIECES] e também as tags dos campos no padrão {TAG}. Exemplo: ([QUANTITY_PIECES]*1) + ([QUANTITY_PIECES]*{TEMPO_VULCANIZACAO})\"\n :required=\"form.deadlineType === 2\"/>\n\n\n </b-row>\n\n\n <t-input select-common required v-model=\"form.operationStatusId\" :options=\"typeStatusProductionOptions\"\n :add-error=\"error.operationStatusId\" label=\"Status Operacional\"\n help=\"Informe qual o status operacional da Ordem de Fabricação quando esta etapa estiver em andamento.\"/>\n\n\n <!-- <t-input select-common required v-model=\"form.specialType\" cols=\"4\" :options=\"specialTypeOptions\"\n :add-error=\"error.specialType\" label=\"Etapa tipo especial\"\n help=\"Utilizado para ações especiais com conteúdo relacionado a setores produtivos relacionados\"/>\n\n <t-input select-common required v-model=\"form.negationType\" cols=\"4\" :options=\"negationTypeOptions\"\n :add-error=\"error.negationType\" label=\"Etapa permite lançar perda\"\n help=\"Utilizado para habilitar lançamento de perdas na Ordem de Produção\"/>-->\n\n\n <t-input radio v-model=\"form.responsibleType\" :options=\"responsibleTypeOptions\"\n :add-error=\"error.responsibleType\" label=\"Tipo de Responsável\"\n required/>\n\n\n <t-input v-show=\"form.responsibleType === 1\" select :options=\"operatorOptions\" v-model=\"form.operatorId\"\n :add-error=\"error.operatorId\"\n label=\"Operador\" :required=\"form.responsibleType === 1\"/>\n\n\n <b-row v-show=\"form.responsibleType === 2\">\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\n <b-list-group v-show=\"form.responsibleType === 2\">\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 <div class=\"col-6 d-flex align-items-center\">\n\n <b class=\"pl-2\">{{ item.name }}</b>\n\n </div>\n\n <t-input radio cols=\"5\" v-model=\"item.stepTypeAccess\" :options=\"FlowStepGroupUserAccessType.list\"/>\n\n <div class=\"col-1\">\n\n <b-icon-trash @click=\"addGroupSelected(false, item.groupUserId)\" 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 <b-card title=\"Configurações Adicionais\">\n\n <b-row>\n\n\n <b-col cols=\"6\">\n\n\n <b-form-checkbox v-model=\"form.startAutomatically\" switch>\n InÃcio automático?\n <t-help\n title=\"Deixe esta opção marcada indicando que quando chegar o momento desta etapa a mesma será iniciada automaticamente para o operador relacionado, caso contrário o operador deverá realizar o inÃcio manual.\"/>\n </b-form-checkbox>\n\n\n <b-form-checkbox v-model=\"form.stepSequential\" switch>\n Sequenciável?\n <t-help\n title=\"Deixe esta opção marcada indicando que é uma etapa continua ou desmarque a etapa e desta forma somente poderá ser acessada via Ação Especial.\"/>\n </b-form-checkbox>\n\n <b-form-checkbox v-model=\"form.enableCopyOtherStep\" switch>\n Permite copiar dados?\n <t-help\n title=\"Deixe esta opção marcada indicando que é uma etapa que pode ter os dados copiados de outra Ordem de Fabricação.\"/>\n </b-form-checkbox>\n\n </b-col>\n\n <b-col cols=\"6\">\n\n <b-form-checkbox v-model=\"form.finishAutomaticallyEnable\" switch>\n Finalizar automaticamente (minutos)?\n <t-help\n title=\"Marque esta opção se deseja finalizar a etapa automaticamente após o inÃcio da etapa, send o prazo em MINUTOS.\"/>\n </b-form-checkbox>\n\n\n <t-input :disabled=\"!form.finishAutomaticallyEnable\" v-show=\"form.finishAutomaticallyEnable\"\n :required=\"form.finishAutomaticallyEnable\"\n v-model=\"form.finishAutomaticallyDeadline\" placeholder=\"Prazo em minutos após inicio\"\n label=\"Após quantos minutos?\" hide-label/>\n\n\n </b-col>\n\n </b-row>\n\n\n </b-card>\n\n\n </t-dialog-form>\n\n\n</template>\n<script>\nimport tDialogForm from \"@/components/template/dialog/t-dialog-form\";\nimport pageDialogFormMixin from \"@/mixins/page/pageDialogFormMixin\";\nimport http from \"@/services/config/http-common\";\nimport MaskMinuteType from \"@/model/types/resource/MaskMinuteType\";\nimport FlowStepNotSequenceActionType from \"@/model/types/modules/production/FlowStepNotSequenceActionType\";\nimport FlowStepGroupUserAccessType from \"@/model/types/modules/production/FlowStepGroupUserAccessType\";\nimport ui from \"@/assets/scripts/ui\";\n\n\nexport default {\n name: 'ProcessFlowStepDialog',\n components: {tDialogForm},\n mixins: [pageDialogFormMixin],\n data() {\n return {\n MaskMinuteType,\n FlowStepNotSequenceActionType,\n FlowStepGroupUserAccessType,\n id: \"modal-process-flow-step\",\n path: \"production/process-flow-step\", //Utilizar somente quando fora do padrão\n primaryKeyColumn: \"processFlowStepId\",\n foreignKeyColumn: \"processFlowId\", //Utilizar quando usar Tabs com outros componentes\n form: {\n processFlowStepId: this.processFlowStepId,\n processFlowId: this.foreignKey,\n operationStatusId: 0,\n stepSequential: true,\n responsibleType: 2,\n departmentId: 0,\n operatorId: 0,\n deadlineType: 1,\n deadlineFixedMinutes: 0,\n deadlineRegex: \"\",\n specialType: 1,\n negationType: 1,\n startAutomatically: false,\n enableCopyOtherStep: false,\n finishAutomaticallyEnable: false,\n finishAutomaticallyTypeMaskMinute: MaskMinuteType.type.MINUTE,\n finishAutomaticallyDeadline: 0,\n typeActionNotSequential: FlowStepNotSequenceActionType.type.RETURN_NEXT_STEP_ORIGIN,\n goProcessFlowStepId: 0,\n startProcessFlowStepId: 0,\n endProcessFlowStepId: 0,\n name: \"\",\n note: \"\",\n status: 1,\n groupUsers: [],\n },\n error: {//Campos que podem receber retorno de erro do backend\n name: \"\",\n responsibleType: \"\",\n departmentId: \"\",\n operatorId: \"\",\n deadlineType: \"\",\n deadlineFixedMinutes: \"\",\n deadlineRegex: \"\",\n specialType: \"\",\n negationType: \"\",\n typeActionNotSequential: \"\",\n goProcessFlowStepId: \"\",\n startProcessFlowStepId: \"\",\n endProcessFlowStepId: \"\",\n },\n fieldsNotReset: [//Marca os nomes de colunas que não devem ser resetados\n this.foreignKeyColumn,\n ],\n //--------------------------------------------------------------------------------------\n //InÃcio de campos personalizados desta tela\n groupUserId: 0,\n operatorOptions: [],\n departmentOptions: [],\n originalGroupUserOptions:[],//Armazena a listagem original sem manipulação\n groupUserOptions: [],\n typeStatusProductionOptions: [],\n otherStepsAll: [],\n otherStepsSerial: [],\n\n responsibleTypeOptions: [{value: 2, text: \"Grupo de Usuários\"}, {value: 1, text: \"Operador especÃfico\"}],\n deadlineTypeOptions: [{value: 1, text: \"Fixo\"}, {value: 2, text: \"Fórmula\"}],\n specialTypeOptions: [{value: 1, text: \"Não\"}, {value: 2, text: \"Matéria-Prima\"}, {\n value: 3,\n text: \"Componentes\"\n }, {value: 4, text: \"Produção\"}],\n negationTypeOptions: [{value: 1, text: \"Não\"}, {value: 2, text: \"Sim, qualquer tipo de perda\"}, {\n value: 3,\n text: \"Sim, somente quantidade de peças\"\n }, {value: 4, text: \"Sim, matéria-prima\"}, {value: 5, text: \"Sim, componentes\"}],\n\n }\n },\n methods: {\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\n this.busy = true\n\n //Limpa os campos\n this.resetModal()\n\n //Setar alguma informações padrão por exemplo vindo de fora\n this.originalGroupUserOptions = []\n this.form.processFlowStepId = this.primaryKey\n this.form.processFlowId = this.foreignKey\n this.form.stepSequential = true\n this.form.responsibleType = 2\n this.form.deadlineType = 1\n this.form.specialType = 1\n this.form.negationType = 1\n this.form.status = 1\n this.form.groupUsers = []\n\n //Coreção para atualização de chave\n setTimeout(async () => {\n\n await http.list(this.path + \"/selectRelationList?processFlowId=\" + this.foreignKey + \"&processFlowStepId=\" + this.form.processFlowStepId).then((list) => {\n\n this.operatorOptions = list.operatorOptions\n this.departmentOptions = list.departmentOptions\n this.typeStatusProductionOptions = list.typeStatusProductionOptions\n this.otherStepsAll = list.otherStepsAll\n this.otherStepsSerial = list.otherStepsSerial\n this.groupUserOptions = list.groupUserOptions\n this.originalGroupUserOptions = this.groupUserOptions.slice()\n\n }).catch(error => this.responseError(error))\n\n await this.readModal(false)\n\n this.setGroupUserAvailable()\n\n this.busy = false\n\n }, 50)\n\n\n },\n\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 async onSubmit() {\n\n if(this.form.responsibleType === 2 && this.form.groupUsers.length === 0){\n ui.msgError(this,\"Selecione pelo menos 1(um) grupo de usuários ou altere a responsabilidade para operador especÃfico.\")\n }else{\n //Validações especÃficas da tela\n await this.setSubmitDialogDefault()\n }\n\n },\n\n //--------------------------------------------------------------------------------------\n //InÃcio de métodos personalizados desta tela\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 },\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!./ProcessFlowStepDialog.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!./ProcessFlowStepDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProcessFlowStepDialog.vue?vue&type=template&id=1fc7eaf2&\"\nimport script from \"./ProcessFlowStepDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./ProcessFlowStepDialog.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 _c('div',[(_vm.formDuplicateShow)?_c('t-dialog-duplicate',{attrs:{\"origin\":_vm.formDuplicate.origin,\"path-server\":_vm.currentPage.path,\"form-error\":_vm.formDuplicateError,\"dialog-id\":\"modal-duplicate-rule\",\"title\":_vm.currentPage.singularTitle},on:{\"onSubmit\":_vm.onFlowDuplicated},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar status = ref.status;\nreturn [_c('t-input',{attrs:{\"hide-label\":\"\",\"status\":status,\"hidden\":\"\"},model:{value:(_vm.formDuplicate.processFlowStepId),callback:function ($$v) {_vm.$set(_vm.formDuplicate, \"processFlowStepId\", $$v)},expression:\"formDuplicate.processFlowStepId\"}}),_c('t-input',{attrs:{\"hide-label\":\"\",\"status\":status,\"hidden\":\"\"},model:{value:(_vm.formDuplicate.processFlowStepRuleId),callback:function ($$v) {_vm.$set(_vm.formDuplicate, \"processFlowStepRuleId\", $$v)},expression:\"formDuplicate.processFlowStepRuleId\"}}),_c('t-input',{attrs:{\"label\":\"Nome da nova Regra\",\"status\":status,\"add-error\":_vm.formDuplicateError.name,\"required\":\"\"},model:{value:(_vm.formDuplicate.changeName),callback:function ($$v) {_vm.$set(_vm.formDuplicate, \"changeName\", $$v)},expression:\"formDuplicate.changeName\"}})]}}],null,false,518460898),model:{value:(_vm.formDuplicate),callback:function ($$v) {_vm.formDuplicate=$$v},expression:\"formDuplicate\"}}):_vm._e(),_c('ProcessFlowStepRuleDialog',{attrs:{\"command\":_vm.command,\"foreign-key\":_vm.foreignKey,\"primary-key\":_vm.form.processFlowStepRuleId},on:{\"onSubmit\":_vm.onProcessFlowStepRuleDialog}}),_c('t-form-list',{attrs:{\"sortable\":\"\",\"hide-header\":\"\",\"generalErrors\":_vm.generalErrors,\"items\":_vm.items,\"fields\":_vm.fields,\"command\":_vm.command,\"user-auth\":_vm.userAuth,\"status\":_vm.status,\"busy\":!_vm.pageFormIsLoaded,\"busy-form\":!_vm.listFormIsLoaded,\"busy-list\":!_vm.listIsLoaded,\"path\":_vm.path,\"primary-key-column\":\"processFlowStepRuleId\",\"primary-key\":_vm.form.processFlowStepRuleId,\"foreign-key-column\":_vm.foreignKeyColumn,\"foreign-key\":_vm.foreignKey},on:{\"onSubmit\":_vm.onSubmit,\"onItemRead\":_vm.openStepRuleReadItem,\"onItemDelete\":_vm.onItemDeleteDefault},scopedSlots:_vm._u([{key:\"list-content\",fn:function(ref){\nvar item = ref.item;\nvar index = ref.index;\nreturn [_c('b-col',{attrs:{\"cols\":\"12\"}},[_c('span',{staticClass:\"badge badge-pill badge-light bg-light\"},[_vm._v(_vm._s(++index)+\"ª Prioridade\")]),_c('br'),_c('b-row',{staticClass:\"mt-1\"},[_c('b-col',{attrs:{\"cols\":\"6\"}},[_c('h5',[_vm._v(_vm._s(item.name))]),(item.groupProductId > 0)?_c('h6',[_vm._v(\"Aplicável grupo: \"+_vm._s(item.groupProduct))]):_vm._e()]),_c('b-col',{staticClass:\"text-right\",attrs:{\"cols\":\"6\"}},[(item.typeActionRule === _vm.FlowStepRuleActionType.type.GO_TO_STEP)?_c('span',[_c('b',[_vm._v(\" Ir para etapa: \"+_vm._s(item.goStep))]),_c('br')]):(item.typeActionRule === _vm.FlowStepRuleActionType.type.FINISH_WITH_ERROR)?_c('span',[_c('b',[_vm._v(\"Finalizar com erro: \"+_vm._s(item.statusProduction))]),_c('br')]):(item.typeActionRule === _vm.FlowStepRuleActionType.type.CHANGE_STATUS_OPERATIONAL)?_c('span',[_c('b',[_vm._v(\"Alterar status: \"+_vm._s(item.statusProduction))]),_c('br')]):(item.typeActionRule === _vm.FlowStepRuleActionType.type.BLOCK)?_c('span',[_c('b',[_vm._v(\"Bloquear e não permitir avançar\")]),_c('br')]):_vm._e(),(item.requiredTypeNonConformance)?_c('span',[_vm._v(\"Exigir escolha de não conformidade pelo operador\"),_c('br')]):(!item.requiredTypeNonConformance && item.typeNonConformanceId !== null && item.typeNonConformanceId > 0)?_c('span',[_vm._v(\" Aplicar não conformidade automaticamente: \"),_c('b',[_vm._v(\" \"+_vm._s(item.typeNonConformance))])]):_vm._e()])],1)],1)]}},{key:\"append-default-buttons\",fn:function(ref){\nvar item = ref.item;\nreturn [(_vm.userAuth.validation.validationCreate)?_c('b-button',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover.ds500\",modifiers:{\"hover\":true,\"ds500\":true}}],staticClass:\"opacity-6-hover\",attrs:{\"size\":\"sm\",\"variant\":\"outline\",\"title\":\"Duplicar regra\"},on:{\"click\":function($event){return _vm.openDialogDuplicate(item.processFlowStepRuleId, item.name)}}},[_c('b-icon-files',{attrs:{\"variant\":\"primary\"}})],1):_vm._e()]}},{key:\"list-footer\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('b-card',{staticClass:\"bg-transparent mt-0 pt-0\",attrs:{\"body-class\":\"mt-0 pt-0\"}},[_c('div',{staticClass:\"pt-1 pl-3 alert alert-warning\",staticStyle:{\"border-bottom-right-radius\":\"0px\",\"border-bottom-left-radius\":\"0px\",\"margin-bottom\":\"-3px\",\"padding-bottom\":\"5px\"}},[(item.typeApplication === 1)?_c('div',[_c('b-icon-ui-checks'),_vm._v(\" Aplicar quando \"),_c('b',[_vm._v(\"todos\")]),_vm._v(\" critérios forem atingidos: \")],1):_c('div',[_c('b-icon-ui-checks-grid'),_vm._v(\" Aplicar quando \"),_c('b',[_vm._v(\"qualquer\")]),_vm._v(\" critério for atingido: \")],1)]),(item.typeAnalysis === 1)?_c('b-list-group',_vm._l((item.conditions),function(condition){return _c('b-list-group-item',{key:condition.processFlowStepRuleFieldId},[_vm._v(\" \"+_vm._s(_vm.ConditionType.getConditionRuleName(condition))+\" \")])}),1):_c('b-list-group',[_c('b-list-group-item',[_vm._v(\" Status operacional for igual a: \"),_c('b',[_vm._v(_vm._s(item.analysisStatusProduction))])])],1)],1)]}}])},[_c('t-button',{staticClass:\"ml-1 mb-2\",on:{\"click\":_vm.openStepRuleInsert}},[_vm._v(_vm._s(_vm.t('insert'))+\" \"+_vm._s(_vm.currentPage.singularTitle))])],1)],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('t-dialog-form',{ref:\"dialog_form\",attrs:{\"generalErrors\":_vm.generalErrors,\"large\":\"\",\"title\":_vm.t(_vm.command) + ' Regra',\"ok-text\":_vm.t(_vm.command) + ' Regra',\"busy\":_vm.busy,\"id\":_vm.id,\"status\":_vm.status,\"command\":_vm.command},on:{\"show\":_vm.showModal,\"hidden\":_vm.resetModal,\"onSubmit\":_vm.onSubmit}},[_c('t-input',{attrs:{\"hidden\":\"\"},model:{value:(_vm.form.processFlowStepRuleId),callback:function ($$v) {_vm.$set(_vm.form, \"processFlowStepRuleId\", $$v)},expression:\"form.processFlowStepRuleId\"}}),_c('b-row',[_c('t-input',{attrs:{\"cols\":\"6\",\"add-error\":_vm.error.name,\"label\":\"Nome da Regra\",\"required\":\"\"},model:{value:(_vm.form.name),callback:function ($$v) {_vm.$set(_vm.form, \"name\", $$v)},expression:\"form.name\"}}),_c('t-input',{attrs:{\"cols\":\"6\",\"options\":_vm.groupProductOptions,\"placeholder\":\"Aplicando em Todos\",\"label\":\"Restringir grupo de produtos\",\"help\":\"Utilize se desejar restringir esta regra para algum grupo de produtos especÃficos.\",\"select\":\"\"},model:{value:(_vm.form.groupProductId),callback:function ($$v) {_vm.$set(_vm.form, \"groupProductId\", $$v)},expression:\"form.groupProductId\"}})],1),_c('b-row',[_c('t-input',{attrs:{\"select-common\":\"\",\"options\":_vm.FlowStepRuleActionType.list,\"cols\":\"6\",\"add-error\":_vm.error.typeActionRule,\"label\":\"Ação\",\"required\":\"\"},on:{\"change\":_vm.checkOptions},model:{value:(_vm.form.typeActionRule),callback:function ($$v) {_vm.$set(_vm.form, \"typeActionRule\", $$v)},expression:\"form.typeActionRule\"}}),_c('t-input',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.form.typeActionRule === 1),expression:\"form.typeActionRule === 1\"}],attrs:{\"select-common\":\"\",\"required\":_vm.form.typeActionRule === 1,\"cols\":\"6\",\"options\":_vm.stepOptions,\"add-error\":_vm.error.goProcessFlowStepId,\"label\":\"Etapa\",\"help\":\"Informe qual a etapa deseja que seja direcionado.\"},model:{value:(_vm.form.goProcessFlowStepId),callback:function ($$v) {_vm.$set(_vm.form, \"goProcessFlowStepId\", $$v)},expression:\"form.goProcessFlowStepId\"}}),_c('t-input',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.form.typeActionRule === 2),expression:\"form.typeActionRule === 2\"}],attrs:{\"select-common\":\"\",\"required\":_vm.form.typeActionRule === 2,\"cols\":\"6\",\"options\":_vm.typeStatusProductionErrorOptions,\"add-error\":_vm.error.operationStatusId,\"label\":\"Status Operacional de Erro\",\"help\":\"Informe qual o status operacional de erro será aplicado.\"},model:{value:(_vm.form.operationStatusId),callback:function ($$v) {_vm.$set(_vm.form, \"operationStatusId\", $$v)},expression:\"form.operationStatusId\"}}),_c('b-col',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.form.typeActionRule === _vm.FlowStepRuleActionType.type.INFO),expression:\"form.typeActionRule === FlowStepRuleActionType.type.INFO\"}],staticClass:\"mb-2\",attrs:{\"cols\":\"12\"}},[_vm._v(\" Texto com orientações: \"),_c('t-editor',{attrs:{\"required\":_vm.form.typeActionRule === _vm.FlowStepRuleActionType.type.INFO,\"small\":\"\"},model:{value:(_vm.form.info),callback:function ($$v) {_vm.$set(_vm.form, \"info\", $$v)},expression:\"form.info\"}})],1),(_vm.form.typeActionRule === _vm.FlowStepRuleActionType.type.ALTERNATIVES)?_c('b-col',{ref:\"container_options\",staticClass:\"mb-2\",attrs:{\"cols\":\"12\"}},[_c('b-row',{staticClass:\"alert-warning p-2\"},[_c('b-col',{attrs:{\"cols\":\"12\"}},[_c('t-input',{attrs:{\"required\":\"\",\"label\":\"Pergunta aos operadores\",\"help\":\"Informe qual a pergunta deseja realizar aos operadores.\"},model:{value:(_vm.form.question),callback:function ($$v) {_vm.$set(_vm.form, \"question\", $$v)},expression:\"form.question\"}}),_vm._l((_vm.form.alternatives),function(item,index){return _c('div',{key:item.value},[_c('b-row',[_c('t-input',{staticClass:\"input-type-list-option-focus\",attrs:{\"cols\":\"6\",\"label\":'Opção '+ (++index),\"required\":_vm.form.typeActionRule === _vm.FlowStepRuleActionType.type.ALTERNATIVES && index < 3},model:{value:(item.text),callback:function ($$v) {_vm.$set(item, \"text\", $$v)},expression:\"item.text\"}}),_c('t-input',{attrs:{\"select\":\"\",\"cols\":\"6\",\"options\":_vm.stepOptions,\"label\":\"Etapa desta alternativa\",\"help\":\"Informe qual a etapa deseja que seja direcionado, caso esta alternativa seja escolhida.\"},model:{value:(item.goProcessFlowStepId),callback:function ($$v) {_vm.$set(item, \"goProcessFlowStepId\", $$v)},expression:\"item.goProcessFlowStepId\"}})],1)],1)}),_c('t-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.form.alternatives.length <= 20),expression:\"form.alternatives.length <= 20\"}],attrs:{\"small\":\"\",\"outline-primary\":\"\",\"icon-plus\":\"\",\"text\":\"Adicionar alternativa\"},on:{\"click\":_vm.addAlternative}})],2)],1)],1):_vm._e(),_c('b-col',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.form.typeActionRule === 3),expression:\"form.typeActionRule === 3\"}],attrs:{\"cols\":\"6\"}},[_c('t-input',{attrs:{\"select-common\":\"\",\"required\":_vm.form.typeActionRule === 3,\"options\":_vm.typeStatusProductionAllOptions,\"add-error\":_vm.error.operationStatusId,\"label\":\"Status Operacional\",\"help\":\"Informe qual o status operacional deseja alterar.\"},model:{value:(_vm.form.operationStatusId),callback:function ($$v) {_vm.$set(_vm.form, \"operationStatusId\", $$v)},expression:\"form.operationStatusId\"}}),_c('b-form-checkbox',{attrs:{\"switch\":\"\"},model:{value:(_vm.form.notChangeOperationStatus),callback:function ($$v) {_vm.$set(_vm.form, \"notChangeOperationStatus\", $$v)},expression:\"form.notChangeOperationStatus\"}},[_c('small',[_vm._v(\"Bloquear e não permitir alterar?\")]),_c('t-help',{attrs:{\"title\":\"Caso desejar que não seja mais alterado o status operacional, poderá deixar marcado este campo.\"}})],1)],1)],1),_c('t-input',{attrs:{\"label\":\"Tipo de Análise\",\"options\":_vm.FlowStepRuleAnalysisType.list,\"radio\":\"\",\"required\":\"\"},model:{value:(_vm.form.typeAnalysis),callback:function ($$v) {_vm.$set(_vm.form, \"typeAnalysis\", $$v)},expression:\"form.typeAnalysis\"}}),(_vm.form.typeAnalysis === _vm.FlowStepRuleAnalysisType.type.OPERATION_STATUS)?_c('t-input',{attrs:{\"select-common\":\"\",\"required\":\"\",\"options\":_vm.typeStatusProductionAllOptions,\"add-error\":_vm.error.analysisOperationStatusId,\"label\":\"Aplicar regra quando o Status Operacional for igual\",\"help\":\"Utilize o comparativo por status operacional, quando desejar aplicar a regra somente-se a etapa estiver com o status operacional determinado.\"},model:{value:(_vm.form.analysisOperationStatusId),callback:function ($$v) {_vm.$set(_vm.form, \"analysisOperationStatusId\", $$v)},expression:\"form.analysisOperationStatusId\"}}):_c('b-card',[_c('b-card-title',[_vm._v(\"Critérios\")]),_c('div',{staticClass:\"table-responsive\"},[_c('table',{staticClass:\"mb-0 table\"},[_c('thead',[_c('tr',[_c('th',[_vm._v(\"Campo\")]),_c('th',[_vm._v(\"Condição\")]),_c('th',[_vm._v(\"Valor\")])])]),_c('tbody',_vm._l((_vm.conditions),function(condition){return _c('tr',{key:condition.processFlowStepFieldId,class:{'bg-light':condition.typeCondition===_vm.ConditionType.type.NOT_USE}},[_c('td',{staticClass:\"col-4\"},[_vm._v(_vm._s(condition.name))]),_c('td',{staticClass:\"col-4\"},[_c('t-input',{attrs:{\"select-common\":\"\",\"options\":_vm.getConditionTypes(condition.var,condition.type)},model:{value:(condition.typeCondition),callback:function ($$v) {_vm.$set(condition, \"typeCondition\", $$v)},expression:\"condition.typeCondition\"}})],1),_c('td',{staticClass:\"col-4\"},[(condition.typeCondition!==_vm.ConditionType.type.NOT_USE)?_c('div',[(condition.var === _vm.VarType.type.BOOLEAN)?_c('div',[_c('t-input',{attrs:{\"cols\":\"10\",\"checked\":\"\"},model:{value:(condition.referenceValueBoolean),callback:function ($$v) {_vm.$set(condition, \"referenceValueBoolean\", $$v)},expression:\"condition.referenceValueBoolean\"}})],1):(condition.var === _vm.VarType.type.INTEGER)?_c('div',[(_vm.InputType.isList(condition.type))?_c('div',[_c('t-input',{attrs:{\"cols\":\"11\",\"hide-label\":\"\",\"label\":\"Listagem\",\"required\":\"\",\"select-colors\":condition.type === _vm.InputType.type.SELECT_COLOR,\"select-common\":\"\",\"options\":condition.options},model:{value:(condition.referenceValueIntegerInitial),callback:function ($$v) {_vm.$set(condition, \"referenceValueIntegerInitial\", $$v)},expression:\"condition.referenceValueIntegerInitial\"}})],1):_c('div',[(condition.typeCondition > 0 && _vm.typeConditionOptions.find(function (value) { return value.value === condition.typeCondition; }).enableFinalValue)?_c('div',{staticClass:\"d-flex\"},[_c('b-col',{staticClass:\"mr-0 pr-0\",attrs:{\"cols\":\"6\"}},[_c('t-input',{attrs:{\"number\":\"\",\"not-row\":\"\",\"required\":\"\",\"placeholder\":\"Inicial\",\"label\":\"Valor Inicial\",\"hide-label\":\"\",\"accept-zero\":\"\"},model:{value:(condition.referenceValueIntegerInitial),callback:function ($$v) {_vm.$set(condition, \"referenceValueIntegerInitial\", $$v)},expression:\"condition.referenceValueIntegerInitial\"}})],1),_c('b-col',{staticClass:\"ml-0 pl-1 mr-0 pr-0\",attrs:{\"cols\":\"6\"}},[_c('t-input',{attrs:{\"number\":\"\",\"not-row\":\"\",\"required\":\"\",\"placeholder\":\"Final\",\"label\":\"Valor Final\",\"hide-label\":\"\",\"accept-zero\":\"\"},model:{value:(condition.referenceValueIntegerFinal),callback:function ($$v) {_vm.$set(condition, \"referenceValueIntegerFinal\", $$v)},expression:\"condition.referenceValueIntegerFinal\"}})],1)],1):_c('div',[_c('t-input',{attrs:{\"cols\":\"10\",\"number\":\"\",\"required\":\"\",\"label\":\"Valor\",\"hide-label\":\"\"},model:{value:(condition.referenceValueIntegerInitial),callback:function ($$v) {_vm.$set(condition, \"referenceValueIntegerInitial\", $$v)},expression:\"condition.referenceValueIntegerInitial\"}})],1)])]):(condition.var === _vm.VarType.type.DOUBLE)?_c('div',[(condition.typeCondition > 0 && _vm.typeConditionOptions.find(function (value) { return value.value === condition.typeCondition; }).enableFinalValue)?_c('div',{staticClass:\"d-flex\"},[_c('b-col',{staticClass:\"mr-0 pr-0\",attrs:{\"cols\":\"6\"}},[_c('t-input',{attrs:{\"not-row\":\"\",\"number\":\"\",\"required\":\"\",\"placeholder\":\"Inicial\",\"label\":\"Valor Inicial\",\"hide-label\":\"\",\"accept-zero\":\"\",\"decimals\":condition.decimalPrecision},model:{value:(condition.referenceValueDoubleInitial),callback:function ($$v) {_vm.$set(condition, \"referenceValueDoubleInitial\", $$v)},expression:\"condition.referenceValueDoubleInitial\"}})],1),_c('b-col',{staticClass:\"ml-0 pl-1 mr-0 pr-0\",attrs:{\"cols\":\"6\"}},[_c('t-input',{attrs:{\"cols\":\"6\",\"not-row\":\"\",\"number\":\"\",\"required\":\"\",\"placeholder\":\"Final\",\"label\":\"Valor Final\",\"hide-label\":\"\",\"accept-zero\":\"\",\"decimals\":condition.decimalPrecision},model:{value:(condition.referenceValueDoubleFinal),callback:function ($$v) {_vm.$set(condition, \"referenceValueDoubleFinal\", $$v)},expression:\"condition.referenceValueDoubleFinal\"}})],1)],1):_c('div',[_c('t-input',{attrs:{\"cols\":\"11\",\"number\":\"\",\"required\":\"\",\"decimals\":condition.decimalPrecision,\"label\":\"Valor\",\"hide-label\":\"\"},model:{value:(condition.referenceValueDoubleInitial),callback:function ($$v) {_vm.$set(condition, \"referenceValueDoubleInitial\", $$v)},expression:\"condition.referenceValueDoubleInitial\"}})],1)]):(condition.var === _vm.VarType.type.DATE)?_c('div',[(condition.typeCondition > 0 && _vm.typeConditionOptions.find(function (value) { return value.value === condition.typeCondition; }).enableFinalValue)?_c('div',{staticClass:\"d-flex\"},[_c('b-col',{staticClass:\"mr-0 pr-0\",attrs:{\"cols\":\"6\"}},[_c('t-input',{attrs:{\"not-row\":\"\",\"required\":\"\",\"placeholder\":\"Inicial\",\"label\":\"Data Inicial\",\"hide-label\":\"\",\"date\":\"\",\"date-remove-calendar\":\"\"},model:{value:(condition.referenceValueDateInitial),callback:function ($$v) {_vm.$set(condition, \"referenceValueDateInitial\", $$v)},expression:\"condition.referenceValueDateInitial\"}})],1),_c('b-col',{staticClass:\"ml-0 pl-1 mr-0 pr-0\",attrs:{\"cols\":\"6\"}},[_c('t-input',{attrs:{\"cols\":\"6\",\"not-row\":\"\",\"required\":\"\",\"placeholder\":\"Final\",\"label\":\"Data Final\",\"hide-label\":\"\",\"date\":\"\",\"date-remove-calendar\":\"\"},model:{value:(condition.referenceValueDateFinal),callback:function ($$v) {_vm.$set(condition, \"referenceValueDateFinal\", $$v)},expression:\"condition.referenceValueDateFinal\"}})],1)],1):_c('div',[_c('t-input',{attrs:{\"cols\":\"11\",\"required\":\"\",\"label\":\"Data\",\"hide-label\":\"\",\"date\":\"\",\"date-remove-calendar\":\"\"},model:{value:(condition.referenceValueDateInitial),callback:function ($$v) {_vm.$set(condition, \"referenceValueDateInitial\", $$v)},expression:\"condition.referenceValueDateInitial\"}})],1)]):(condition.var === _vm.VarType.type.STRING)?_c('div',[_c('t-input',{attrs:{\"cols\":\"11\",\"required\":\"\",\"label\":\"Conteúdo\",\"placeholder\":\"Conteúdo\",\"hide-label\":\"\",\"cep\":condition.mask === 'zipcode',\"cnpj\":condition.mask === 'br_cnpj',\"cpf\":condition.mask === 'br_cpf',\"email\":condition.mask === 'email',\"color-reduced\":condition.mask === 'color',\"upper\":condition.mask === 'upper',\"lower-reduced\":condition.mask === 'lower'},model:{value:(condition.referenceValueString),callback:function ($$v) {_vm.$set(condition, \"referenceValueString\", $$v)},expression:\"condition.referenceValueString\"}})],1):_vm._e()]):_c('div',{staticClass:\"text-center\"})])])}),0)])]),_c('t-input',{attrs:{\"radio\":\"\",\"options\":_vm.typeApplicationOptions,\"add-error\":_vm.error.typeApplication,\"label\":\"Tipo de Aplicação\",\"required\":\"\"},model:{value:(_vm.form.typeApplication),callback:function ($$v) {_vm.$set(_vm.form, \"typeApplication\", $$v)},expression:\"form.typeApplication\"}})],1),_c('b-card',{staticClass:\"alert-warning\"},[_c('b-row',[_c('b-col',[_c('b-form-checkbox',{attrs:{\"switch\":\"\"},model:{value:(_vm.form.requiredTypeNonConformance),callback:function ($$v) {_vm.$set(_vm.form, \"requiredTypeNonConformance\", $$v)},expression:\"form.requiredTypeNonConformance\"}},[_c('b',[_vm._v(\"Exigir escolha de tipo de não conformidade geral?\")]),_c('t-help',{attrs:{\"title\":\"Caso deixar marcado, será exibido no momento da aplicação desta regra que o operador escolha qual o tipo de não conformidade geral se aplica no caso. Caso deixar desmarcado, poderá selecionar um tipo automatico para aplicação, sem necessidade de escolha do operador.\"}})],1),_c('t-input',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.form.requiredTypeNonConformance),expression:\"!form.requiredTypeNonConformance\"}],attrs:{\"options\":_vm.typeNonConformanceOptions,\"select\":\"\",\"help\":\"Caso selecionar alguma opção e esta regra for aplicada o sistema irá aplicar este tipo de Não Conformidade automaticamente na Ordem de Fabricação.\",\"placeholder\":\"Não\",\"label\":\"Aplicar não conformidade automaticamente\"},model:{value:(_vm.form.typeNonConformanceId),callback:function ($$v) {_vm.$set(_vm.form, \"typeNonConformanceId\", $$v)},expression:\"form.typeNonConformanceId\"}})],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Type from \"@/model/types/Type\";\r\nimport VarType from \"@/model/types/resource/VarType\"\r\nimport InputType from \"@/model/types/resource/InputType\"\r\nimport ui from \"@/assets/scripts/ui\"\r\n\r\n\r\nconst type = {\r\n NOT_USE: 99,\r\n BIGGER: 1,\r\n BIGGER_OR_EQUAL: 2,\r\n LESS: 3,\r\n LESS_OR_EQUAL: 4,\r\n EQUAL: 5,\r\n NOT_EQUAL: 6,\r\n IN: 7,\r\n NOT_IN: 8,\r\n}\r\n\r\nconst list = [\r\n {\r\n value: type.NOT_USE,\r\n text: \"Não utilizar\",\r\n typeBoolean: true,\r\n typeString: true,\r\n typeList: true,\r\n enableFinalValue: false\r\n },\r\n {\r\n value: type.BIGGER,\r\n text: \"é maior que\",\r\n typeBoolean: false,\r\n typeString: false,\r\n typeList: false,\r\n enableFinalValue: false\r\n },\r\n {\r\n value: type.BIGGER_OR_EQUAL,\r\n text: \"é maior ou igual que\",\r\n typeBoolean: false,\r\n typeString: false,\r\n typeList: false,\r\n enableFinalValue: false\r\n },\r\n {\r\n value: type.LESS,\r\n text: \"é menor que\",\r\n typeBoolean: false,\r\n typeString: false,\r\n typeList: false,\r\n enableFinalValue: false\r\n },\r\n {\r\n value: type.LESS_OR_EQUAL,\r\n text: \"é menor ou igual que\",\r\n typeBoolean: false,\r\n typeString: false,\r\n typeList: false,\r\n enableFinalValue: false\r\n },\r\n {\r\n value: type.EQUAL,\r\n text: \"é igual a\",\r\n typeBoolean: true,\r\n typeString: true,\r\n typeList: true,\r\n enableFinalValue: false\r\n },\r\n {\r\n value: type.NOT_EQUAL,\r\n text: \"é diferente de\",\r\n typeBoolean: false,\r\n typeString: true,\r\n typeList: true,\r\n enableFinalValue: false\r\n },\r\n {\r\n value: type.IN,\r\n text: \"está entre\",\r\n typeBoolean: false,\r\n typeString: false,\r\n typeList: false,\r\n enableFinalValue: true\r\n },\r\n {\r\n value: type.NOT_IN,\r\n text: \"não está entre\",\r\n typeBoolean: false,\r\n typeString: false,\r\n typeList: false,\r\n enableFinalValue: true\r\n }\r\n]\r\n\r\nconst contains = function (typeInput) {\r\n return Type.contains(list, typeInput)\r\n}\r\n\r\nconst getConditionRuleName = function (condition) {\r\n\r\n\r\n const typeCondition = list.find(a => a.value === condition.typeCondition)\r\n\r\n\r\n let text = \"'\" + condition.name + \"'\" + ' ' + typeCondition.text\r\n\r\n if (condition.var === VarType.type.INTEGER) {\r\n\r\n\r\n if (InputType.isList(condition.type)) {\r\n\r\n const item = condition.options.find(a => a.value === condition.referenceValueIntegerInitial)\r\n\r\n if(item !== undefined){\r\n text += ' \\'' +item.text + '\\''\r\n }\r\n\r\n } else {\r\n\r\n\r\n text += ' ' + condition.referenceValueIntegerInitial\r\n\r\n if (typeCondition.enableFinalValue) {\r\n text += ' a ' + condition.referenceValueIntegerFinal\r\n }\r\n\r\n }\r\n\r\n } else if (condition.var === VarType.type.DOUBLE) {\r\n\r\n text += ' ' + ui.convertNumber(condition.referenceValueDoubleInitial, condition.decimalPrecision, \"pt-br\")\r\n\r\n if (typeCondition.enableFinalValue) {\r\n text += ' a ' + ui.convertNumber(condition.referenceValueDoubleFinal, condition.decimalPrecision, \"pt-br\")\r\n }\r\n\r\n } else if (condition.var === VarType.type.BOOLEAN) {\r\n\r\n if (condition.referenceValueBoolean) {\r\n text += ' selecionado'\r\n } else {\r\n text += ' não selecionado'\r\n }\r\n } else if (condition.var === VarType.type.STRING) {\r\n\r\n text += ' ' + condition.referenceValueString\r\n\r\n } else if (condition.var === VarType.type.DATE) {\r\n\r\n text += ' ' + ui.convertDateBR(condition.referenceValueDateInitial)\r\n\r\n if (typeCondition.enableFinalValue) {\r\n text += ' a ' + ui.convertDateBR(condition.referenceValueDateFinal)\r\n }\r\n\r\n }\r\n\r\n return text\r\n\r\n}\r\n\r\nexport default {\r\n type,\r\n list,\r\n contains,\r\n getConditionRuleName\r\n}","import Type from \"@/model/types/Type\";\r\n\r\nconst type = {\r\n FIELD: 1,\r\n OPERATION_STATUS: 2,\r\n}\r\n\r\nconst list = [\r\n {\r\n value: type.FIELD,\r\n text: \"Critérios por Campos\",\r\n },\r\n {\r\n value: type.OPERATION_STATUS,\r\n text: \"Comparação de Status Operacional\",\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}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('vue-editor',{class:{'form-disabled':_vm.status === 'sending'},attrs:{\"required\":_vm.required,\"disabled\":_vm.status === 'sending' || _vm.disabled,\"id\":\"editor-sm\",\"editorToolbar\":_vm.smallToolbar},model:{value:(_vm.innerValue),callback:function ($$v) {_vm.innerValue=$$v},expression:\"innerValue\"}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <vue-editor\n :required=\"required\"\n :disabled=\"status === 'sending' || disabled\"\n id=\"editor-sm\"\n :editorToolbar=\"smallToolbar\"\n :class=\"{'form-disabled':status === 'sending'}\"\n v-model=\"innerValue\">\n </vue-editor>\n</template>\n<script>\nimport {VueEditor} from \"vue2-editor\";\n\nexport default {\n /*todo: falta implementar outros tamanhos e tratar a questão das imagens assim como já ocorre em Comment, além disso implementar required que por enquanto será feito via back-end ou diretamente*/\n name: 't-editor',\n components: {VueEditor},\n data() {\n return {\n innerValue: \"\",\n smallToolbar: [\n [{color: []},\"bold\", \"italic\", \"underline\"],\n [{ list: \"ordered\" }, { list: \"bullet\" }],\n [\"blockquote\",\"link\"]\n ],\n }\n },\n props: {\n value: {\n type: null,\n default: \"\"\n },\n disabled: Boolean,\n required: {\n type: Boolean,\n default: false\n },\n status: {\n type: String,\n default: \"\",\n },\n command: {\n type: String,\n default: \"insert\",\n },\n small:Boolean,\n },\n mounted() {\n this.setValue(this.value)\n },\n methods: {\n setValue(v) {\n this.innerValue = v\n }\n },\n watch: {\n\n value(v) {\n this.setValue(v)\n },\n innerValue(value) {\n this.$emit(\"input\", value)\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-editor.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-editor.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./t-editor.vue?vue&type=template&id=1755cd0e&\"\nimport script from \"./t-editor.vue?vue&type=script&lang=js&\"\nexport * from \"./t-editor.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","<template>\n\n <t-dialog-form :generalErrors=\"generalErrors\" large :title=\"t(command) + ' Regra'\"\n :ok-text=\"t(command) + ' Regra'\"\n @show=\"showModal\" @hidden=\"resetModal\" :busy=\"busy\" :id=\"id\"\n :status=\"status\" :command=\"command\"\n ref=\"dialog_form\" @onSubmit=\"onSubmit\">\n\n\n <t-input v-model=\"form.processFlowStepRuleId\" hidden/>\n\n\n <b-row>\n <t-input cols=\"6\" v-model=\"form.name\" :add-error=\"error.name\" label=\"Nome da Regra\"\n required/>\n\n <t-input cols=\"6\" v-model=\"form.groupProductId\"\n :options=\"groupProductOptions\"\n placeholder=\"Aplicando em Todos\"\n label=\"Restringir grupo de produtos\"\n help=\"Utilize se desejar restringir esta regra para algum grupo de produtos especÃficos.\"\n select/>\n\n </b-row>\n\n <b-row>\n\n <t-input v-model=\"form.typeActionRule\" select-common :options=\"FlowStepRuleActionType.list\" cols=\"6\"\n @change=\"checkOptions\"\n :add-error=\"error.typeActionRule\" label=\"Ação\"\n required/>\n\n <t-input select-common v-show=\"form.typeActionRule === 1\" :required=\"form.typeActionRule === 1\"\n v-model=\"form.goProcessFlowStepId\" cols=\"6\"\n :options=\"stepOptions\"\n :add-error=\"error.goProcessFlowStepId\" label=\"Etapa\"\n help=\"Informe qual a etapa deseja que seja direcionado.\"/>\n\n <t-input select-common v-show=\"form.typeActionRule === 2\" :required=\"form.typeActionRule === 2\"\n v-model=\"form.operationStatusId\" cols=\"6\"\n :options=\"typeStatusProductionErrorOptions\"\n :add-error=\"error.operationStatusId\" label=\"Status Operacional de Erro\"\n help=\"Informe qual o status operacional de erro será aplicado.\"/>\n\n\n <b-col v-show=\"form.typeActionRule === FlowStepRuleActionType.type.INFO\" cols=\"12\" class=\"mb-2\">\n Texto com orientações:\n\n <t-editor :required=\"form.typeActionRule === FlowStepRuleActionType.type.INFO\" small v-model=\"form.info\"/>\n\n </b-col>\n\n\n <b-col v-if=\"form.typeActionRule === FlowStepRuleActionType.type.ALTERNATIVES\" ref=\"container_options\" cols=\"12\"\n class=\"mb-2\">\n\n <b-row class=\"alert-warning p-2\">\n\n <b-col cols=\"12\">\n\n <t-input\n required\n v-model=\"form.question\"\n label=\"Pergunta aos operadores\"\n help=\"Informe qual a pergunta deseja realizar aos operadores.\"/>\n\n\n <div v-for=\"(item,index) in form.alternatives\" :key=\"item.value\">\n\n <b-row>\n\n <t-input\n class=\"input-type-list-option-focus\"\n cols=\"6\"\n :label=\"'Opção '+ (++index)\" v-model=\"item.text\"\n :required=\"form.typeActionRule === FlowStepRuleActionType.type.ALTERNATIVES && index < 3\"/>\n\n <t-input select\n v-model=\"item.goProcessFlowStepId\" cols=\"6\"\n :options=\"stepOptions\"\n label=\"Etapa desta alternativa\"\n help=\"Informe qual a etapa deseja que seja direcionado, caso esta alternativa seja escolhida.\"/>\n\n </b-row>\n\n\n </div>\n\n <t-button v-show=\"form.alternatives.length <= 20\" small outline-primary icon-plus\n @click=\"addAlternative\" text=\"Adicionar alternativa\"/>\n\n </b-col>\n\n\n </b-row>\n\n\n </b-col>\n\n\n <b-col v-show=\"form.typeActionRule === 3\" cols=\"6\">\n\n <t-input select-common :required=\"form.typeActionRule === 3\"\n v-model=\"form.operationStatusId\"\n :options=\"typeStatusProductionAllOptions\"\n :add-error=\"error.operationStatusId\" label=\"Status Operacional\"\n help=\"Informe qual o status operacional deseja alterar.\"/>\n\n <b-form-checkbox v-model=\"form.notChangeOperationStatus\" switch>\n <small>Bloquear e não permitir alterar?</small>\n <t-help\n title=\"Caso desejar que não seja mais alterado o status operacional, poderá deixar marcado este campo.\"/>\n </b-form-checkbox>\n\n </b-col>\n\n\n </b-row>\n\n\n <t-input v-model=\"form.typeAnalysis\" label=\"Tipo de Análise\" :options=\"FlowStepRuleAnalysisType.list\" radio\n required/>\n\n\n <t-input select-common v-if=\"form.typeAnalysis === FlowStepRuleAnalysisType.type.OPERATION_STATUS\"\n required\n v-model=\"form.analysisOperationStatusId\"\n :options=\"typeStatusProductionAllOptions\"\n :add-error=\"error.analysisOperationStatusId\" label=\"Aplicar regra quando o Status Operacional for igual\"\n help=\"Utilize o comparativo por status operacional, quando desejar aplicar a regra somente-se a etapa estiver com o status operacional determinado.\"/>\n\n <b-card v-else>\n\n <b-card-title>Critérios</b-card-title>\n\n <div class=\"table-responsive\">\n <table class=\"mb-0 table\">\n <thead>\n <tr>\n <th>Campo</th>\n <th>Condição</th>\n <th>Valor</th>\n </tr>\n </thead>\n <tbody>\n\n <tr v-for=\"(condition) in conditions\" :key=\"condition.processFlowStepFieldId\"\n :class=\"{'bg-light':condition.typeCondition===ConditionType.type.NOT_USE}\">\n <td class=\"col-4\">{{ condition.name }}</td>\n <td class=\"col-4\">\n <t-input select-common v-model=\"condition.typeCondition\"\n :options=\"getConditionTypes(condition.var,condition.type)\"\n />\n </td>\n <td class=\"col-4\">\n\n <div v-if=\"condition.typeCondition!==ConditionType.type.NOT_USE\">\n\n <div v-if=\"condition.var === VarType.type.BOOLEAN\">\n\n <t-input cols=\"10\" checked v-model=\"condition.referenceValueBoolean\"/>\n\n </div>\n\n <div v-else-if=\"condition.var === VarType.type.INTEGER\">\n\n <div v-if=\"InputType.isList(condition.type)\">\n\n <t-input cols=\"11\" hide-label label=\"Listagem\" required\n v-model=\"condition.referenceValueIntegerInitial\"\n :select-colors=\"condition.type === InputType.type.SELECT_COLOR\" select-common\n :options=\"condition.options\"/>\n\n </div>\n\n <div v-else>\n\n <div class=\"d-flex\"\n v-if=\"condition.typeCondition > 0 && typeConditionOptions.find(value => value.value === condition.typeCondition).enableFinalValue\">\n\n <b-col cols=\"6\" class=\"mr-0 pr-0\">\n <t-input number not-row required placeholder=\"Inicial\"\n label=\"Valor Inicial\" hide-label\n accept-zero\n v-model=\"condition.referenceValueIntegerInitial\"/>\n </b-col>\n\n <b-col cols=\"6\" class=\"ml-0 pl-1 mr-0 pr-0\">\n <t-input number not-row required placeholder=\"Final\"\n label=\"Valor Final\" hide-label\n accept-zero\n v-model=\"condition.referenceValueIntegerFinal\"/>\n </b-col>\n\n\n </div>\n\n <div v-else>\n <t-input cols=\"10\" number required v-model=\"condition.referenceValueIntegerInitial\"\n label=\"Valor\" hide-label/>\n </div>\n\n </div>\n\n\n </div>\n\n <div v-else-if=\"condition.var === VarType.type.DOUBLE\">\n\n <div class=\"d-flex\"\n v-if=\"condition.typeCondition > 0 && typeConditionOptions.find(value => value.value === condition.typeCondition).enableFinalValue\">\n\n <b-col cols=\"6\" class=\"mr-0 pr-0\">\n <t-input not-row number required placeholder=\"Inicial\"\n label=\"Valor Inicial\" hide-label\n accept-zero\n v-model=\"condition.referenceValueDoubleInitial\"\n :decimals=\"condition.decimalPrecision\"\n />\n\n </b-col>\n <b-col cols=\"6\" class=\"ml-0 pl-1 mr-0 pr-0\">\n <t-input cols=\"6\" not-row number required placeholder=\"Final\"\n label=\"Valor Final\" hide-label\n accept-zero\n v-model=\"condition.referenceValueDoubleFinal\"\n :decimals=\"condition.decimalPrecision\"\n />\n </b-col>\n\n </div>\n\n <div v-else>\n <t-input cols=\"11\" number required v-model=\"condition.referenceValueDoubleInitial\"\n :decimals=\"condition.decimalPrecision\" label=\"Valor\" hide-label\n />\n </div>\n\n </div>\n\n <div v-else-if=\"condition.var === VarType.type.DATE\">\n\n <div class=\"d-flex\"\n v-if=\"condition.typeCondition > 0 && typeConditionOptions.find(value => value.value === condition.typeCondition).enableFinalValue\">\n\n <b-col cols=\"6\" class=\"mr-0 pr-0\">\n <t-input not-row required placeholder=\"Inicial\"\n label=\"Data Inicial\" hide-label\n v-model=\"condition.referenceValueDateInitial\"\n date date-remove-calendar\n />\n </b-col>\n <b-col cols=\"6\" class=\"ml-0 pl-1 mr-0 pr-0\">\n <t-input cols=\"6\" not-row required placeholder=\"Final\"\n label=\"Data Final\" hide-label\n v-model=\"condition.referenceValueDateFinal\"\n date date-remove-calendar\n />\n </b-col>\n\n </div>\n\n <div v-else>\n\n <t-input cols=\"11\" required v-model=\"condition.referenceValueDateInitial\"\n label=\"Data\" hide-label date date-remove-calendar\n />\n </div>\n\n </div>\n\n <div v-else-if=\"condition.var === VarType.type.STRING\">\n\n <!--todo deixar todos os tipos de mascaras dinamicos-->\n <t-input cols=\"11\" required v-model=\"condition.referenceValueString\"\n label=\"Conteúdo\" placeholder=\"Conteúdo\" hide-label\n :cep=\"condition.mask === 'zipcode'\"\n :cnpj=\"condition.mask === 'br_cnpj'\"\n :cpf=\"condition.mask === 'br_cpf'\"\n :email=\"condition.mask === 'email'\"\n :color-reduced=\"condition.mask === 'color'\"\n :upper=\"condition.mask === 'upper'\"\n :lower-reduced=\"condition.mask === 'lower'\"\n />\n\n </div>\n\n </div>\n\n <div v-else class=\"text-center\">\n\n </div>\n\n </td>\n\n </tr>\n\n </tbody>\n\n </table>\n\n </div>\n\n <t-input radio v-model=\"form.typeApplication\" :options=\"typeApplicationOptions\"\n :add-error=\"error.typeApplication\" label=\"Tipo de Aplicação\"\n required/>\n\n\n </b-card>\n\n\n<b-card class=\"alert-warning\">\n\n <b-row>\n\n <b-col>\n\n <b-form-checkbox v-model=\"form.requiredTypeNonConformance\" switch>\n <b>Exigir escolha de tipo de não conformidade geral?</b>\n <t-help\n title=\"Caso deixar marcado, será exibido no momento da aplicação desta regra que o operador escolha qual o tipo de não conformidade geral se aplica no caso. Caso deixar desmarcado, poderá selecionar um tipo automatico para aplicação, sem necessidade de escolha do operador.\"/>\n </b-form-checkbox>\n\n <t-input v-model=\"form.typeNonConformanceId\" v-show=\"!form.requiredTypeNonConformance\"\n :options=\"typeNonConformanceOptions\"\n select\n help=\"Caso selecionar alguma opção e esta regra for aplicada o sistema irá aplicar este tipo de Não Conformidade automaticamente na Ordem de Fabricação.\"\n placeholder=\"Não\"\n label=\"Aplicar não conformidade automaticamente\"/>\n\n </b-col>\n\n\n\n\n </b-row>\n\n</b-card>\n\n\n\n\n\n\n\n\n\n\n </t-dialog-form>\n\n\n</template>\n<script>\nimport tDialogForm from \"@/components/template/dialog/t-dialog-form\";\nimport pageDialogFormMixin from \"@/mixins/page/pageDialogFormMixin\";\nimport http from \"@/services/config/http-common\";\nimport InputType from \"@/model/types/resource/InputType\";\nimport VarType from \"@/model/types/resource/VarType\";\nimport ConditionType from \"@/model/types/resource/FieldConditionType\";\nimport ui from \"@/assets/scripts/ui\";\nimport groupProductService from \"@/services/modules/product/GroupProduct.service\";\nimport FlowStepRuleAnalysisType from \"@/model/types/modules/production/FlowStepRuleAnalysisType\";\nimport FlowStepRuleActionType from \"@/model/types/modules/production/FlowStepRuleActionType\";\nimport tEditor from \"@/components/template/page/t-editor\";\nimport TypeNonConformanceService from \"@/services/modules/production/TypeNonConformance.service\";\n\nexport default {\n name: 'ProcessFlowStepRuleDialog',\n components: {tEditor, tDialogForm},\n mixins: [pageDialogFormMixin],\n data() {\n return {\n InputType,\n VarType,\n ConditionType,\n FlowStepRuleAnalysisType,\n FlowStepRuleActionType,\n id: \"modal-process-flow-step-rule\",\n path: \"production/process-flow-step-rule\", //Utilizar somente quando fora do padrão\n primaryKeyColumn: \"processFlowStepRuleId\",\n foreignKeyColumn: \"processFlowId\", //Utilizar quando usar Tabs com outros componentes\n form: {\n processFlowStepRuleId: this.processFlowStepRuleId,\n processFlowStepId: this.foreignKey,\n operationStatusId: 0,\n analysisOperationStatusId: 0,\n goProcessFlowStepId: 0,\n requiredTypeNonConformance: false,\n typeNonConformanceId: 0,\n groupProductId: 0,\n typeAnalysis: 1,\n typeActionRule: 1,\n typeApplication: 1,\n notChangeOperationStatus: false,\n question: \"\",\n info: \"\",\n name: \"\",\n note: \"\",\n status: 1,\n conditions: [],\n alternatives: [],\n },\n error: {//Campos que podem receber retorno de erro do backend\n name: \"\",\n info: \"\",\n operationStatusId: \"\",\n goProcessFlowStepId: \"\",\n typeActionRule: \"\",\n typeApplication: \"\",\n },\n fieldsNotReset: [//Marca os nomes de colunas que não devem ser resetados\n this.foreignKeyColumn,\n ],\n //--------------------------------------------------------------------------------------\n //InÃcio de campos personalizados desta tela\n\n groupProductOptions: [],\n typeNonConformanceOptions: [],\n conditions: [\n /*{\n processFlowStepId: 1,\n name: \"Teste 123\",\n typeCondition: 99,\n var: 2,\n decimalPrecision:0,\n referenceValueBoolean: false,\n referenceValueIntegerInitial: 0,\n referenceValueIntegerFinal: 0,\n referenceValueDoubleInitial: 0.0,\n referenceValueDoubleFinal: 0.0\n },\n {\n processFlowStepId: 2,\n name: \"Teste 456\",\n typeCondition: 99,\n var: 2,\n decimalPrecision:0,\n referenceValueBoolean: false,\n referenceValueDoubleInitial: 0.0,\n referenceValueDoubleFinal: 0.0\n }*/],\n stepOptions: [],\n typeStatusProductionAllOptions: [],\n typeStatusProductionErrorOptions: [],\n typeApplicationOptions: [{value: 1, text: \"Todos critérios atingidos\"}, {\n value: 2,\n text: \"Qualquer critério for atingido\"\n }],\n typeConditionOptions: ConditionType.list,\n\n }\n },\n methods: {\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\n this.busy = true\n\n //Limpa os campos\n this.resetModal()\n\n\n //Limpa listagem de campos com critérios\n this.conditions = []\n\n\n //Setar alguma informações padrão por exemplo vindo de fora\n this.form.processFlowStepRuleId = this.primaryKey\n this.form.processFlowStepId = this.foreignKey\n this.form.typeAnalysis = 1\n this.form.typeActionRule = 1\n this.form.typeApplication = 1\n this.form.requiredTypeNonConformance = false\n this.form.typeNonConformanceId = 0\n this.form.status = 1\n\n await http.list(this.path + \"/selectRelationList/?processFlowStepId=\" + this.foreignKey + \"&processFlowStepRuleId=\" + this.form.processFlowStepRuleId).then((list) => {\n\n this.stepOptions = list.stepOptions\n this.typeStatusProductionAllOptions = list.typeStatusProductionAllOptions\n this.typeStatusProductionErrorOptions = list.typeStatusProductionErrorOptions\n this.conditions = list.conditions\n\n }).catch(error => this.responseError(error))\n\n await groupProductService.selectList(\"grouped\").then((list) => {\n this.groupProductOptions = list\n }).catch(error => this.responseError(error))\n\n await TypeNonConformanceService.selectList().then((response) => {\n this.typeNonConformanceOptions = response\n }).catch(error => this.responseError(error))\n\n await this.readModal(false)\n\n\n this.busy = false\n\n },\n\n async onSubmit() {\n\n let qtdConditionApply = 0\n this.form.conditions = this.conditions\n\n this.generalErrors = []\n\n for (const condition of this.conditions) {\n\n if (condition.typeCondition !== ConditionType.type.NOT_USE) {\n\n const typeCondition = ConditionType.list.find(value => value.value === condition.typeCondition)\n\n if (typeCondition.enableFinalValue) {\n\n if (condition.var === this.VarType.type.INTEGER) {\n\n if (condition.referenceValueIntegerInitial > condition.referenceValueIntegerFinal) {\n this.generalErrors.push(condition.name + \" não poderá ter valor final inferior ao inicial\")\n }\n\n } else if (condition.var === this.VarType.type.DOUBLE) {\n\n if (condition.referenceValueDoubleInitial > condition.referenceValueDoubleFinal) {\n this.generalErrors.push(condition.name + \" não poderá ter valor final inferior ao inicial\")\n }\n\n }\n\n }\n\n qtdConditionApply++\n\n }\n\n }\n\n if (this.generalErrors.length > 0)\n return false;\n\n if (qtdConditionApply === 0 && this.form.typeAnalysis === FlowStepRuleAnalysisType.type.FIELD) {\n ui.msgError(this, \"Informe ao menos uma condição para inserir a regra.\")\n } else {\n await this.setSubmitDialogDefault()\n }\n\n },\n\n //--------------------------------------------------------------------------------------\n //InÃcio de métodos personalizados desta tela\n getConditionTypes(typeVar, typeInput) {\n\n if (typeVar === VarType.type.BOOLEAN) {\n return this.typeConditionOptions.filter(a => a.typeBoolean)\n } else if (typeVar === VarType.type.STRING) {\n return this.typeConditionOptions.filter(a => a.typeString)\n } else if (InputType.isList(typeInput)) {\n return this.typeConditionOptions.filter(a => a.typeList)\n } else {\n return this.typeConditionOptions\n }\n\n },\n\n checkOptions() {\n\n if (this.form.typeActionRule === FlowStepRuleActionType.type.ALTERNATIVES && this.form.alternatives.length === 0) {\n\n this.form.alternatives.push({value: 1, text: \"Sim\", goProcessFlowStepId: 0})\n this.form.alternatives.push({value: 2, text: \"Não\", goProcessFlowStepId: 0})\n\n }\n },\n\n addAlternative() {\n\n const length_old = (this.form.alternatives.length)\n const length = length_old + 1;\n this.form.alternatives.push({value: length, text: \"\"})\n\n setTimeout(() => {\n this.$refs.container_options.getElementsByClassName('input-type-list-option-focus')[length_old].getElementsByTagName('input')[0].focus()\n }, 100)\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!./ProcessFlowStepRuleDialog.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!./ProcessFlowStepRuleDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProcessFlowStepRuleDialog.vue?vue&type=template&id=211aced2&\"\nimport script from \"./ProcessFlowStepRuleDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./ProcessFlowStepRuleDialog.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","<template>\n\n <div>\n\n <t-dialog-duplicate v-if=\"formDuplicateShow\" :origin=\"formDuplicate.origin\" :path-server=\"currentPage.path\" :form-error=\"formDuplicateError\"\n dialog-id=\"modal-duplicate-rule\"\n v-model=\"formDuplicate\" :title=\"currentPage.singularTitle\" @onSubmit=\"onFlowDuplicated\">\n\n <template #default=\"{status}\">\n <t-input hide-label :status=\"status\" v-model=\"formDuplicate.processFlowStepId\" hidden/>\n <t-input hide-label :status=\"status\" v-model=\"formDuplicate.processFlowStepRuleId\" hidden/>\n <t-input label=\"Nome da nova Regra\" :status=\"status\" :add-error=\"formDuplicateError.name\"\n v-model=\"formDuplicate.changeName\" required/>\n\n </template>\n </t-dialog-duplicate>\n\n <ProcessFlowStepRuleDialog :command=\"command\"\n :foreign-key=\"foreignKey\"\n :primary-key=\"form.processFlowStepRuleId\"\n @onSubmit=\"onProcessFlowStepRuleDialog\"/>\n\n <t-form-list\n sortable hide-header\n :generalErrors=\"generalErrors\"\n :items=\"items\" :fields=\"fields\" :command=\"command\" :user-auth=\"userAuth\" :status=\"status\"\n :busy=\"!pageFormIsLoaded\" :busy-form=\"!listFormIsLoaded\" :busy-list=\"!listIsLoaded\" :path=\"path\"\n primary-key-column=\"processFlowStepRuleId\" :primary-key=\"form.processFlowStepRuleId\"\n :foreign-key-column=\"foreignKeyColumn\" :foreign-key=\"foreignKey\"\n @onSubmit=\"onSubmit\" @onItemRead=\"openStepRuleReadItem\" @onItemDelete=\"onItemDeleteDefault\">\n\n\n <!-- <template #item(orderList)=\"{item}\">\n <span class=\"badge badge-pill badge-light bg-light\">{{ item.orderList }} º</span>\n </template>-->\n\n <template #list-content=\"{item,index}\">\n\n <b-col cols=\"12\">\n\n <span class=\"badge badge-pill badge-light bg-light\">{{ ++index }}ª Prioridade</span><br/>\n\n <b-row class=\"mt-1\">\n\n <b-col cols=\"6\">\n <h5>{{ item.name }}</h5>\n <h6 v-if=\"item.groupProductId > 0\">Aplicável grupo: {{ item.groupProduct }}</h6>\n </b-col>\n\n\n <b-col cols=\"6\" class=\"text-right\">\n <span v-if=\"item.typeActionRule === FlowStepRuleActionType.type.GO_TO_STEP\"><b> Ir para etapa: {{\n item.goStep\n }}</b><br /></span>\n <span v-else-if=\"item.typeActionRule === FlowStepRuleActionType.type.FINISH_WITH_ERROR\"><b>Finalizar com erro: {{\n item.statusProduction\n }}</b><br /></span>\n <span v-else-if=\"item.typeActionRule === FlowStepRuleActionType.type.CHANGE_STATUS_OPERATIONAL\"><b>Alterar status: {{\n item.statusProduction\n }}</b><br /></span>\n <span v-else-if=\"item.typeActionRule === FlowStepRuleActionType.type.BLOCK\"><b>Bloquear e não permitir avançar</b><br /></span>\n\n\n <span v-if=\"item.requiredTypeNonConformance\">Exigir escolha de não conformidade pelo operador<br /></span>\n\n <span v-else-if=\"!item.requiredTypeNonConformance && item.typeNonConformanceId !== null && item.typeNonConformanceId > 0\"> Aplicar não conformidade automaticamente: <b> {{\n item.typeNonConformance\n }}</b></span>\n\n </b-col>\n\n </b-row>\n\n\n </b-col>\n\n\n </template>\n\n <template #append-default-buttons=\"{item}\">\n <b-button @click=\"openDialogDuplicate(item.processFlowStepRuleId, item.name)\"\n class=\"opacity-6-hover\"\n v-if=\"userAuth.validation.validationCreate\" size=\"sm\" variant=\"outline\" v-b-tooltip.hover.ds500\n title=\"Duplicar regra\">\n <b-icon-files variant=\"primary\"/>\n </b-button>\n </template>\n\n\n <template #list-footer=\"{item}\">\n\n <b-card class=\"bg-transparent mt-0 pt-0\" body-class=\"mt-0 pt-0\">\n\n <div class=\"pt-1 pl-3 alert alert-warning\"\n style=\"border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; margin-bottom: -3px; padding-bottom: 5px\">\n <div v-if=\"item.typeApplication === 1\">\n\n <b-icon-ui-checks/>\n Aplicar quando <b>todos</b> critérios forem atingidos:\n </div>\n <div v-else>\n <b-icon-ui-checks-grid/>\n Aplicar quando <b>qualquer</b> critério for atingido:\n </div>\n </div>\n\n\n <b-list-group v-if=\"item.typeAnalysis === 1\">\n\n\n <b-list-group-item v-for=\"condition in item.conditions\" :key=\"condition.processFlowStepRuleFieldId\">\n\n {{ ConditionType.getConditionRuleName(condition) }}\n </b-list-group-item>\n\n </b-list-group>\n\n <b-list-group v-else>\n\n <b-list-group-item>\n\n Status operacional for igual a: <b>{{ item.analysisStatusProduction }}</b>\n\n </b-list-group-item>\n\n </b-list-group>\n\n\n </b-card>\n\n </template>\n\n <t-button class=\"ml-1 mb-2\" @click=\"openStepRuleInsert\">{{t('insert')}} {{currentPage.singularTitle}}</t-button>\n\n\n </t-form-list>\n\n </div>\n\n\n</template>\n<script>\nimport pageDefaultMixin from \"@/mixins/page/pageDefaultMixin\"\nimport pageFormMixin from \"@/mixins/page/pageFormMixin\"\nimport pageFormListMixin from \"@/mixins/page/pageFormListMixin\"\nimport tFormList from \"@/components/template/form/list/t-form-list\"\nimport ProcessFlowStepRuleDialog from \"@/views/modules/production/ProcessFlow/ProcessFlowStepRuleDialog\";\nimport VarType from \"@/model/types/resource/VarType\";\nimport ConditionType from \"@/model/types/resource/FieldConditionType\";\nimport InputType from \"@/model/types/resource/InputType\";\nimport FlowStepRuleActionType from \"@/model/types/modules/production/FlowStepRuleActionType\";\nimport ui from \"@/assets/scripts/ui\";\nimport TDialogDuplicate from \"@/components/template/dialog/t-dialog-duplicate\";\n\nexport default {\n mixins: [pageDefaultMixin, pageFormMixin, pageFormListMixin],\n components: {tFormList, ProcessFlowStepRuleDialog, TDialogDuplicate},\n name: 'ProcessFlowStepRule',\n data() {\n return {\n InputType,\n VarType,\n ConditionType,\n FlowStepRuleActionType,\n path: \"production/process-flow-step-rule\", //Utilizar somente quando fora do padrão\n foreignKeyColumn: \"processFlowStepId\", //Utilizar quando usar Tabs com outros componentes\n fields: [\n {keyRead: \"processFlowStepRuleId\", keyDelete: \"processFlowStepRuleId\"},\n ],\n form: {\n processFlowStepId: this.foreignKey,\n processFlowStepRuleId: 0,\n },\n error: {//Campos que podem receber retorno de erro do backend\n name: \"\",\n codeGeneratorPrefix: \"\",\n },\n fieldsNotReset: [//Marca os nomes de colunas que não devem ser resetados\n this.foreignKeyColumn,\n ],\n //--------------------------------------------------------------------------------------\n formDuplicateShow: false,\n formDuplicate: {\n processFlowStepId: 0,\n processFlowStepRuleId: 0,\n changeName: \"\",\n origin: \"\",\n },\n formDuplicateError: {\n name: \"\",\n }\n //--------------------------------------------------------------------------------------\n }\n },\n computed: {\n onForm() {\n return this.form\n }\n },\n methods: {\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\n this.defaultForm()\n this.mountedPrepareFormListDefault()\n\n },\n\n async mountedContinued() {\n\n await this.getList()\n\n this.listIsLoaded = true\n\n },\n\n async onSubmit() {\n\n await this.setSendingFormListDefault(this.form.processFlowStepRuleId)\n\n },\n\n mountedList() {\n\n this.listIsLoaded = true\n\n },\n //--------------------------------------------------------------------------------------\n //InÃcio de métodos personalizados desta tela\n openStepRuleInsert() {\n\n this.form.processFlowStepRuleId = 0\n this.command = 'insert'\n\n setTimeout(() => {\n this.openDialogForm('modal-process-flow-step-rule')\n }, 200)\n\n },\n openStepRuleReadItem(id) {\n\n this.form.processFlowStepRuleId = id\n this.command = 'update'\n\n setTimeout(() => {\n this.openDialogForm('modal-process-flow-step-rule')\n }, 200)\n\n\n },\n\n async onProcessFlowStepRuleDialog() {\n\n //Atualiza a listagem\n await this.getList()\n\n },\n\n openDialogDuplicate(id, origin) {\n\n this.formDuplicateShow = true\n this.formDuplicate.processFlowStepId = this.foreignKey\n this.formDuplicate.processFlowStepRuleId = id\n this.formDuplicate.origin = origin\n this.formDuplicate.changeName = \"\"\n\n this.openDialogForm('modal-duplicate-rule')\n\n },\n\n onFlowDuplicated(item) {\n\n this.formDuplicate.changeName = \"\"\n\n ui.toast(this, \"Duplicada\", \"Nova regra <b>\" + item.name + \"</b> duplicada com sucesso!\", \"success\", \"b-toaster-top-center\", true)\n\n this.getList()\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!./ProcessFlowStepRule.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!./ProcessFlowStepRule.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProcessFlowStepRule.vue?vue&type=template&id=779d0fe9&\"\nimport script from \"./ProcessFlowStepRule.vue?vue&type=script&lang=js&\"\nexport * from \"./ProcessFlowStepRule.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","<template>\n\n <div>\n\n <t-dialog-duplicate v-if=\"formDuplicateShow\" :origin=\"formDuplicate.origin\" :path-server=\"currentPage.path\" :form-error=\"formDuplicateError\"\n v-model=\"formDuplicate\" :title=\"currentPage.singularTitle\" @onSubmit=\"onFlowDuplicated\">\n\n <template #default=\"{status}\">\n <t-input hide-label :status=\"status\" v-model=\"formDuplicate.processFlowId\" hidden/>\n <t-input hide-label :status=\"status\" v-model=\"formDuplicate.processFlowStepId\" hidden/>\n <t-input label=\"Nome da nova Etapa\" :status=\"status\" :add-error=\"formDuplicateError.name\"\n v-model=\"formDuplicate.changeName\" required/>\n <t-input label=\"Duplicar campos\" :status=\"status\" v-model=\"formDuplicate.enableFields\" checked/>\n <t-input label=\"Duplicar regras\" :status=\"status\" v-model=\"formDuplicate.enableRulers\" checked/>\n <t-input label=\"Duplicar gatilhos\" :status=\"status\" v-model=\"formDuplicate.enableTriggers\" checked/>\n\n\n </template>\n </t-dialog-duplicate>\n\n <ProcessFlowStepDialog :command=\"command\"\n :foreign-key=\"foreignKey\"\n :primary-key=\"form.processFlowStepId\"\n @onSubmit=\"onProcessFlowStepDialog\"/>\n\n <b-modal @hidden=\"getList\" no-close-on-backdrop no-close-on-esc size=\"lg\" v-model=\"modalField\"\n id=\"modal-process-flow-step-field\"\n hide-footer\n :title=\"'Campos etapa: ' + modalFieldName\">\n <ProcessFlowStepField v-if=\"modalField\" :foreign-key=\"modalFieldProcessFlowStepId\"/>\n </b-modal>\n\n <b-modal @hidden=\"getList\" no-close-on-backdrop no-close-on-esc size=\"lg\" v-model=\"modalRule\"\n id=\"modal-process-flow-step-trigger\"\n hide-footer\n :title=\"'Regras etapa: ' + modalRuleName \">\n <ProcessFlowStepRule v-if=\"modalRule\" :foreign-key=\"modalRuleProcessFlowStepId\"/>\n </b-modal>\n\n <b-modal @hidden=\"getList\" no-close-on-backdrop no-close-on-esc size=\"lg\" v-model=\"modalTrigger\"\n id=\"modal-process-flow-step-trigger\"\n hide-footer\n :title=\"'Gatilhos etapa: ' + modalTriggerName\">\n\n <t-form-list-trigger v-if=\"modalTrigger\" primary-key-column=\"processFlowStepTriggerId\"\n foreign-key-column-trigger=\"processFlowStepId\"\n path-trigger=\"production/process-flow-step-trigger\"\n :foreign-key=\"modalTriggerProcessFlowStepId\"\n :type-trigger=\"TriggerEventType.typeList.STEP\"/>\n </b-modal>\n\n <t-form-list :generalErrors=\"generalErrors\" sortable sortable-check-column=\"stepSequential\" :items=\"items\"\n :fields=\"fields\" :command=\"command\" :user-auth=\"userAuth\" :status=\"status\"\n :busy=\"!pageFormIsLoaded\" :busy-form=\"!listFormIsLoaded\" :busy-list=\"!listIsLoaded\" :path=\"path\"\n primary-key-column=\"processFlowStepId\" foreign-key-column=\"processFlowId\"\n :primary-key=\"form.processFlowStepId\" :foreign-key=\"foreignKey\"\n @onChangeOrder=\"getList\"\n @onItemRead=\"onStepReadItem\"\n @onItemDelete=\"onItemDeleteDefault\">\n\n <div class=\"ml-1 mb-3\">\n\n <t-button @click=\"openStepInsert\">\n <b-icon-node-plus/>\n {{ t('insert') + ' Etapa' }}\n </t-button>\n\n </div>\n\n <template #item(orderList)=\"{item}\">\n <span class=\"badge badge-pill badge-light bg-light\" v-show=\"item.stepSequential\">{{ item.orderList }}</span>\n </template>\n\n <template #item(name)=\"{item}\">\n\n\n <div v-if=\"item.stepSequential\">\n\n <div v-if=\"doneStep.processFlowStepId === item.processFlowStepId\">\n <b-icon-check-circle-fill class=\"text-success\" v-b-tooltip.hover=\"'Etapa de finalização'\"/>\n {{ item.name }}\n <b-icon-clock\n v-b-tooltip.hover=\"'Finalização automatica após '+ item.finishAutomaticallyDeadline + ' minutos'\"\n v-if=\"item.finishAutomaticallyEnable\"/>\n </div>\n <div v-else>\n <b-icon-arrow-down-circle-fill v-b-tooltip.hover=\"'Etapa sequêncial'\"/>\n {{ item.name }}\n <b-icon-clock\n v-b-tooltip.hover=\"'Finalização automatica após '+ item.finishAutomaticallyDeadline + ' minutos'\"\n v-if=\"item.finishAutomaticallyEnable\"/>\n </div>\n\n\n </div>\n\n <div v-else>\n\n <div v-if=\"item.typeActionNotSequential === FlowStepNotSequenceActionType.type.EXECUTION_PARALLEL\">\n\n <b-icon-menu-button-fill v-b-tooltip.hover=\"'Etapa em paralelo'\"/>\n {{ item.name }}\n\n <div class=\"pl-3\">\n <small>Durante</small> <b>{{ item.startStep }}</b> <br/>\n <small>Até</small> <b>{{ item.endStep }}</b>\n </div>\n\n\n </div>\n\n <div v-if=\"item.typeActionNotSequential === FlowStepNotSequenceActionType.type.FINAL_INSPECTION_SHIPPING\">\n\n <b-icon-shield-fill-check v-b-tooltip.hover=\"'Inspeção final para expedições do produtos'\"/>\n {{ item.name }}\n <br />\n <small>Etapa executada quando for expedido ao cliente</small>\n\n\n </div>\n\n <div v-else>\n\n <b-icon-arrow-up-right-circle-fill v-b-tooltip.hover=\"'Etapa com acionamento somente de forma especial'\"/>\n {{ item.name }}\n <b-icon-arrow-right/>\n <span class=\"pl-1\"\n v-if=\"item.typeActionNotSequential === FlowStepNotSequenceActionType.type.DELEGATE_RULES\"><b> Definido pelas regras </b></span>\n <span class=\"pl-1\" v-else><b>{{ item.goStep }}</b></span>\n\n <b-icon-clock\n v-b-tooltip.hover=\"'Finalização automatica após '+ item.finishAutomaticallyDeadline + ' minutos'\"\n v-if=\"item.finishAutomaticallyEnable\"/>\n\n </div>\n\n\n </div>\n\n\n </template>\n\n <template #item(statusOperational)=\"{item}\">\n\n <div v-if=\"doneStep.processFlowStepId === item.processFlowStepId\">\n {{ item.statusOperational }}\n <b-icon-arrow-right/>\n <span class=\"pl-1\"><b>{{ statusDone.name }}</b></span>\n </div>\n <div v-else>{{ item.statusOperational }}</div>\n\n\n </template>\n\n <template #append-default-buttons=\"{item}\">\n <b-button @click=\"openDialogDuplicate(item.processFlowStepId, item.name)\"\n class=\"opacity-6-hover\"\n v-if=\"userAuth.validation.validationCreate\" size=\"sm\" variant=\"outline\" v-b-tooltip.hover.ds500\n title=\"Duplicar etapa\">\n <b-icon-files variant=\"primary\"/>\n </b-button>\n </template>\n\n\n <template #list-buttons=\"{item}\">\n\n <b-button-group size=\"sm\" class=\"mr-4\">\n <t-button small @click=\"openModalField(item.processFlowStepId, item.name)\" class=\"pr-2\">\n <b-icon-card-text></b-icon-card-text>\n Campos\n <div class=\"mr-1 badge badge-sm badge-pill bg-warning text-black-50\" style=\"right: -3px; top:-7px;\"\n v-if=\"item.qtdFields > 0\">{{ item.qtdFields }}\n </div>\n\n </t-button>\n <t-button small @click=\"openModalRule(item.processFlowStepId, item.name)\">\n <b-icon-shield-exclamation></b-icon-shield-exclamation>\n Regras\n <div class=\"mr-1 badge badge-sm badge-pill bg-warning text-black-50\" style=\"right: -3px; top:-7px;\"\n v-if=\"item.qtdRules > 0\">{{ item.qtdRules }}\n </div>\n </t-button>\n <t-button small @click=\"openModalTrigger(item.processFlowStepId, item.name)\">\n <b-icon-bezier2></b-icon-bezier2>\n Gatilhos\n <div class=\"mr-1 badge badge-sm badge-pill bg-warning text-black-50\" style=\"right: -3px; top:-7px;\"\n v-if=\"item.qtdTriggers > 0\">{{ item.qtdTriggers }}\n </div>\n </t-button>\n </b-button-group>\n\n\n </template>\n\n </t-form-list>\n\n </div>\n\n</template>\n<script>\nimport pageDefaultMixin from \"@/mixins/page/pageDefaultMixin\"\nimport pageFormMixin from \"@/mixins/page/pageFormMixin\"\nimport pageFormListMixin from \"@/mixins/page/pageFormListMixin\"\nimport ProcessFlowStepField from \"@/views/modules/production/ProcessFlow/ProcessFlowStepField\";\nimport tFormList from \"@/components/template/form/list/t-form-list\"\n\nimport ProcessFlowStepDialog from \"@/views/modules/production/ProcessFlow/ProcessFlowStepDialog\";\nimport ProcessFlowStepRule from \"@/views/modules/production/ProcessFlow/ProcessFlowStepRule\";\n\nimport tFormListTrigger from \"@/components/template/form/list/t-form-list-trigger\"\n\nimport TriggerEventType from \"@/model/types/resource/TriggerEventType\";\nimport TypeStatusProductionService from \"@/services/modules/production/TypeStatusProduction.service\";\n\nimport FlowStepNotSequenceActionType from \"@/model/types/modules/production/FlowStepNotSequenceActionType\";\nimport ui from \"@/assets/scripts/ui\";\nimport TDialogDuplicate from \"@/components/template/dialog/t-dialog-duplicate\";\n\n\nexport default {\n mixins: [pageDefaultMixin, pageFormMixin, pageFormListMixin],\n components: {\n tFormList,\n ProcessFlowStepDialog,\n ProcessFlowStepField,\n ProcessFlowStepRule,\n tFormListTrigger,\n TDialogDuplicate\n },\n name: 'ProcessFlowStep',\n data() {\n return {\n FlowStepNotSequenceActionType,\n TriggerEventType,\n TypeStatusProduction: TypeStatusProductionService,\n path: \"production/process-flow-step\", //Utilizar somente quando fora do padrão\n foreignKeyColumn: \"processFlowId\", //Utilizar quando usar Tabs com outros componentes\n statusDone: {},\n fields: [\n {keyRead: \"processFlowStepId\", keyDelete: \"processFlowStepId\"},\n {key: \"orderList\", label: \"#\", cols: \"1\",},\n {key: \"name\", label: \"Etapa\", cols: \"3\"},\n {key: \"statusOperational\", label: \"Status\", cols: \"3\"},\n {key: \"responsibleName\", label: \"Resp.\", cols: \"3\"},\n\n ],\n form: {\n processFlowStepId: 0,\n processFlowId: this.foreignKey,\n },\n //--------------------------------------------------------------------------------------\n //InÃcio de campos personalizados desta tela\n doneStep: {},\n modalField: false,\n modalFieldName: \"\",\n modalFieldProcessFlowStepId: 0,\n modalRule: false,\n modalRuleName: \"\",\n modalRuleProcessFlowStepId: 0,\n modalTrigger: false,\n modalTriggerName: \"\",\n modalTriggerProcessFlowStepId: 0,\n formDuplicateShow: false,\n formDuplicate: {\n processFlowId: 0,\n processFlowStepId: 0,\n changeName: \"\",\n enableFields: true,\n enableRulers: true,\n enableTriggers: true,\n origin: \"\",\n },\n formDuplicateError: {\n name: \"\",\n }\n //--------------------------------------------------------------------------------------\n }\n },\n methods: {\n\n defaultForm() {\n\n\n },\n\n mountedPrepare() {\n\n this.mountedPrepareFormListDefault()\n\n },\n\n async mountedContinued() {\n\n await TypeStatusProductionService.getStatusFinishSuccess()\n .then(statusDone => this.statusDone = statusDone)\n .catch(error => this.responseError(error))\n\n await this.getList()\n\n },\n\n async onSubmit() {\n\n\n },\n\n mountedList() {\n\n // Manipulação da listagem após carregando\n //--------------------------------------\n let newItems = []\n let findDoneStep = {}\n this.doneStep = {}\n\n\n for (let item of this.items) {\n if (!item.stepSequential) {\n if (item.typeActionNotSequential === FlowStepNotSequenceActionType.type.EXECUTION_PARALLEL) {\n item.class = \"bg-focus-light\"\n } else if (item.typeActionNotSequential === FlowStepNotSequenceActionType.type.FINAL_INSPECTION_SHIPPING) {\n item.class = \"bg-info-light\"\n } else {\n item.class = \"bg-light\"\n\n }\n\n } else {\n findDoneStep = item\n }\n newItems.push(item)\n }\n\n if (findDoneStep !== null) {\n this.doneStep = findDoneStep\n newItems.find(a => a.processFlowStepId === findDoneStep.processFlowStepId).class = \"bg-success-light\"\n }\n\n\n this.items = newItems\n //--------------------------------------\n\n this.listIsLoaded = true\n\n },\n //--------------------------------------------------------------------------------------\n //InÃcio de métodos personalizados desta tela\n async onProcessFlowStepDialog() {\n\n //Atualiza a listagem\n await this.getList()\n\n },\n openStepInsert() {\n this.form.processFlowStepId = 0\n this.command = 'insert'\n this.openDialogForm('modal-process-flow-step')\n },\n onStepReadItem(id) {\n this.form.processFlowStepId = id\n this.command = 'update'\n this.openDialogForm('modal-process-flow-step')\n },\n openModalField(id, name) {\n this.modalField = true\n this.modalFieldName = name\n this.modalFieldProcessFlowStepId = id\n },\n openModalTrigger(id, name) {\n this.modalTrigger = true\n this.modalTriggerName = name\n this.modalTriggerProcessFlowStepId = id\n },\n openModalRule(id, name) {\n\n this.modalRule = true\n this.modalRuleName = name\n this.modalRuleProcessFlowStepId = id\n\n },\n openDialogDuplicate(id, origin) {\n\n this.formDuplicateShow = true\n this.formDuplicate.processFlowId = this.foreignKey\n this.formDuplicate.processFlowStepId = id\n this.formDuplicate.origin = origin\n this.formDuplicate.changeName = \"\"\n\n this.openDialogForm('modal-duplicate')\n\n },\n\n onFlowDuplicated(item) {\n\n this.formDuplicate.changeName = \"\"\n\n ui.toast(this, \"Duplicada\", \"Nova etapa <b>\" + item.name + \"</b> duplicada com sucesso!\", \"success\", \"b-toaster-top-center\", true)\n\n this.getList()\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!./ProcessFlowStep.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!./ProcessFlowStep.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProcessFlowStep.vue?vue&type=template&id=3b888d4d&\"\nimport script from \"./ProcessFlowStep.vue?vue&type=script&lang=js&\"\nexport * from \"./ProcessFlowStep.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","<template>\n\n <t-page>\n\n <t-page-form tabs :submit-text=\"currentPage.singularTitle\"\n :title=\"t('form-of')+currentPage.pageTitle\"\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 <t-input v-model=\"form.processFlowId\" hidden/>\n\n\n\n <t-form-tab title=\"Dados Básicos\">\n\n <t-form-card title=\"Denominação\" icon-info-square>\n\n <t-input v-model=\"form.name\" :add-error=\"error.name\" label=\"Nome\" required/>\n\n <t-input v-model=\"form.note\" label=\"Observações\" max-length=\"500\" textarea/>\n\n <t-input-status v-model=\"form.status\"/>\n\n </t-form-card>\n\n <t-form-card title=\"Grupos de produtos\" icon-folder>\n\n <b-form-checkbox class=\"col-sm-12 ml-2\" v-model=\"form.availableAllGroups\" switch>\n Disponibilizar este Fluxo-Processo a todos os grupos de produtos?\n <t-help\n title=\"Você poderá especificar quais os grupos podem utilizar, basta desmarcar esta opção e selecionar os grupos de produtos desejados.\"/>\n </b-form-checkbox>\n\n <div v-show=\"!form.availableAllGroups\" class=\"mt-2\">\n <div v-for=\"family in groupProductOptions\" :key=\"family.groupId\" class=\"pb-2 mb-2 border-bottom\">\n\n <h6 class=\"mb-0\"><b>{{ family.groupLabel }}</b></h6>\n\n <b-form-checkbox class=\"ml-3\" v-for=\"item in family.options\" :key=\"item.value\"\n :checked=\"form.groupsProduct.find(a => a.groupProductId === item.value) != null\"\n @change=\"addSelected($event,item.value,'groupProductId',form.groupsProduct)\">\n {{ item.text }}\n </b-form-checkbox>\n\n </div>\n\n </div>\n\n </t-form-card>\n\n <t-form-card title=\"Modelos\" icon-folder>\n\n <b-form-checkbox class=\"col-sm-12 ml-2\" v-model=\"form.availableAllModels\" switch>\n Disponibilizar este Fluxo-Processo a todos os modelos?\n <t-help\n title=\"Você poderá especificar quais os modelos, basta desmarcar esta opção e selecionar os modelos desejadas.\"/>\n </b-form-checkbox>\n\n <div v-if=\"!form.availableAllModels\" class=\"mt-2\">\n\n <b-form-checkbox class=\"ml-3\" v-for=\"item in modelOptions\" :key=\"item.value\"\n :checked=\"form.models.find(a => a.modelId === item.value) != null\"\n @change=\"addSelected($event,item.value,'modelId',form.models)\">\n {{ item.text }}\n </b-form-checkbox>\n\n </div>\n\n </t-form-card>\n\n <t-form-card title=\"Materiais\" icon-folder>\n\n <b-form-checkbox class=\"col-sm-12 ml-2\" v-model=\"form.availableAllMaterials\" switch>\n Disponibilizar este Fluxo-Processo a todos os materiais?\n <t-help\n title=\"Você poderá especificar quais os materiais, basta desmarcar esta opção e selecionar os materiais desejados.\"/>\n </b-form-checkbox>\n\n <div v-if=\"!form.availableAllMaterials\" class=\"mt-2\">\n\n <b-form-checkbox class=\"ml-3\" v-for=\"item in materialsOptions\" :key=\"item.value\"\n :checked=\"form.materials.find(a => a.materialId === item.value) != null\"\n @change=\"addSelected($event,item.value,'materialId',form.materials)\">\n {{ item.text }}\n </b-form-checkbox>\n\n </div>\n\n </t-form-card>\n\n <t-form-card title=\"Embalagens\" icon-folder>\n\n <b-form-checkbox class=\"col-sm-12 ml-2\" v-model=\"form.availableAllUnits\" switch>\n Disponibilizar este Fluxo-Processo a todas as embalagens?\n <t-help\n title=\"Você poderá especificar quais as emabalgens, basta desmarcar esta opção e selecionar as embalagens desejadas.\"/>\n </b-form-checkbox>\n\n <div v-if=\"!form.availableAllUnits\" class=\"mt-2\">\n\n <b-form-checkbox class=\"ml-3\" v-for=\"item in unitOptions\" :key=\"item.value\"\n :checked=\"form.units.find(a => a.unitId === item.value) != null\"\n @change=\"addSelected($event,item.value,'unitId',form.units)\">\n {{ item.text }}\n </b-form-checkbox>\n\n </div>\n\n\n </t-form-card>\n\n </t-form-tab>\n\n <template #out-of-form>\n\n <t-form-tab title=\"Etapas do Processo\" hash=\"step\" lazy>\n\n <t-msg v-if=\"isUpdate()\" info>Atualizações no fluxo de etapas serão aplicadas somente a novas Ordens de\n Fabricação ou para Ordens em Andamento que desejar aplicar a ação 'Atualizar Fluxo de Processo'.\n </t-msg>\n\n <ProcessFlowStep :foreign-key=\"form.processFlowId\"/>\n\n </t-form-tab>\n\n <!-- <t-form-tab title=\"Tipos de Rejeição\" lazy>\n <ProcessFlowTypeRule :foreign-key=\"form.processFlowId\"/>\n </t-form-tab>-->\n\n </template>\n\n </t-page-form>\n\n </t-page>\n\n</template>\n\n<script>\n\nimport pageDefaultMixin from \"@/mixins/page/pageDefaultMixin\"\nimport pageFormMixin from \"@/mixins/page/pageFormMixin\"\nimport ProcessFlowStep from \"@/views/modules/production/ProcessFlow/ProcessFlowStep\";\n/*import ProcessFlowTypeRule from \"@/views/modules/production/ProcessFlowTypeRule\";*/\n\n\nimport groupProductService from \"@/services/modules/product/GroupProduct.service\";\nimport ui from \"@/assets/scripts/ui\";\nimport unitService from \"@/services/modules/product/Unit.service\";\nimport modelService from \"@/services/modules/product/Model.service\";\nimport materialService from \"@/services/modules/product/Material.service\";\n\nexport default {\n mixins: [pageDefaultMixin, pageFormMixin],\n name: 'ProcessFlowForm',\n components: {ProcessFlowStep, /*ProcessFlowTypeRule*/},\n data() {\n return {\n path: \"\", //Utilizar somente quando fora do padrão\n genKey: true, //Utilizar quando desejar gerar chave temporária\n fieldKey: \"processFlowId\",\n form: {\n processFlowId: 0,\n name: \"\",\n note: \"\",\n availableAllGroups: true,\n availableAllModels: true,\n availableAllMaterials: true,\n availableAllUnits: true,\n groupsProduct: [],\n models: [],\n materials:[],\n units: [],\n status: 1\n },\n error: {//Campos que podem receber retorno de erro do backend\n name: \"\"\n },\n //--------------------------------------------------------------------------------------\n //InÃcio de campos personalizados desta tela\n unitOptions: [],\n modelOptions: [],\n materialsOptions: [],\n groupProductOptions: [],\n //--------------------------------------------------------------------------------------\n }\n },\n methods: {\n\n mountedPrepare() {\n\n },\n async mountedContinued() {\n\n await unitService.selectList().then((response) => {\n this.unitOptions = response\n }).catch(error => this.responseError(error))\n\n await modelService.selectList().then((list) => {\n this.modelOptions = list\n }).catch(error => this.responseError(error))\n\n await materialService.selectList().then((list) => {\n this.materialsOptions = list\n }).catch(error => this.responseError(error))\n\n await groupProductService.selectList(\"grouped\").then((list) => {\n this.groupProductOptions = list\n\n //Injeta campo checked\n for (let group of this.groupProductOptions) {\n for (let item of group.options) {\n item.checked = false\n }\n }\n\n }).catch(error => this.responseError(error))\n\n\n this.pageFormIsLoaded = true\n\n\n },\n async onSubmit() {\n\n if (!this.form.availableAllGroups && this.form.groupsProduct.length === 0) {\n ui.msgError(this, \"Você marcou a opção de especificar grupos para este Fluxo-Processo, porém não selecionou nenhum grupo. Desmarque a opção ou selecione pelo menos um grupo antes de continuar.\")\n } else {\n\n if (!this.form.availableAllGroups && this.form.groupsProduct.length === 0) {\n ui.msgError(this, \"Você marcou a opção de especificar emabalagens para este Fluxo-Processo, porém não selecionou nenhuma embalagem. Desmarque a opção ou selecione pelo menos uma embalgem antes de continuar.\")\n } else {\n await this.setSendingDefault()\n }\n\n }\n\n },\n //--------------------------------------------------------------------------------------\n //InÃcio de métodos personalizados desta tela\n addSelected(checked, id, primaryKey, array){\n\n if (checked) {\n //Adicionar\n const el = array.find(a => a[primaryKey] === id)\n if (el == null)\n array.push({[primaryKey]: id})\n } else {\n //Remover\n const indexRemove = array.findIndex(a => a[primaryKey] === id)\n\n if (indexRemove >= 0)\n array.splice(indexRemove, 1)\n\n }\n\n },\n\n\n\n selectGroup(checked, array) {\n\n for (const el of array) {\n this.addGroupSelected(checked, el.value)\n }\n\n },\n\n\n //--------------------------------------------------------------------------------------\n\n },\n async mounted() {\n\n this.mountedPrepare()\n\n await this.mountedForm(true, false)\n\n await this.mountedContinued()\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!./ProcessFlowForm.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!./ProcessFlowForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProcessFlowForm.vue?vue&type=template&id=ed2a7de2&\"\nimport script from \"./ProcessFlowForm.vue?vue&type=script&lang=js&\"\nexport * from \"./ProcessFlowForm.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 _c('div',[_c('t-form-list',{attrs:{\"sortable\":\"\",\"hide-header\":\"\",\"generalErrors\":_vm.generalErrors,\"items\":_vm.items,\"fields\":_vm.fields,\"command\":_vm.command,\"user-auth\":_vm.userAuth,\"status\":_vm.status,\"busy\":!_vm.pageFormIsLoaded,\"busy-form\":!_vm.listFormIsLoaded,\"busy-list\":!_vm.listIsLoaded,\"path\":_vm.pathTrigger,\"primary-key-column\":_vm.primaryKeyColumn,\"primary-key\":_vm.form[_vm.primaryKeyColumn],\"foreign-key-column\":_vm.foreignKeyColumnTrigger,\"foreign-key\":_vm.foreignKey},on:{\"onSubmit\":_vm.onSubmit,\"onItemRead\":_vm.onItemReadDefault,\"onItemDelete\":_vm.onItemDeleteDefault},scopedSlots:_vm._u([{key:\"list-content\",fn:function(ref){\nvar item = ref.item;\nvar index = ref.index;\nreturn [_c('b-col',{attrs:{\"cols\":\"12\"}},[_c('span',{staticClass:\"badge badge-pill badge-light bg-light\"},[_vm._v(_vm._s(++index)+\"ª Prioridade\")]),_c('br'),_c('b-row',{staticClass:\"mt-1\"},[_c('b-col',{attrs:{\"cols\":\"12\"}},[_c('h5',[_vm._v(_vm._s(item.typeTrigger))]),_vm._v(\" Quando: \"),_c('b',[_vm._v(_vm._s(item.triggerEventTypeName))]),_vm._v(\" qual: \"),_c('b',[_vm._v(_vm._s(item.paramName))]),_c('br')])],1)],1)]}}])},[_c('t-input',{attrs:{\"hidden\":\"\"},model:{value:(_vm.form[_vm.primaryKeyColumn]),callback:function ($$v) {_vm.$set(_vm.form, _vm.primaryKeyColumn, $$v)},expression:\"form[primaryKeyColumn]\"}}),_c('b-col',{staticClass:\"mb-2\",attrs:{\"cols\":\"12\"}},[_c('b-row',[_c('t-input',{attrs:{\"cols\":\"6\",\"select-common\":\"\",\"options\":_vm.typeTriggerList,\"add-error\":_vm.error.typeTriggerActionId,\"label\":\"Tipo de Gatilho\",\"required\":\"\"},model:{value:(_vm.form.typeTriggerActionId),callback:function ($$v) {_vm.$set(_vm.form, \"typeTriggerActionId\", $$v)},expression:\"form.typeTriggerActionId\"}}),_c('t-input',{attrs:{\"cols\":\"6\",\"select-common\":\"\",\"options\":_vm.TriggerEventType.listByType(_vm.typeTrigger),\"label\":\"Quando acionar\",\"required\":\"\"},model:{value:(_vm.form.triggerEventType),callback:function ($$v) {_vm.$set(_vm.form, \"triggerEventType\", $$v)},expression:\"form.triggerEventType\"}})],1),(_vm.form.typeTriggerActionId === _vm.TriggerAction.type.SEND_MAIL)?_c('t-input',{attrs:{\"required\":\"\",\"email-multiple\":\"\",\"label\":\"E-mail(s) para envio\"},model:{value:(_vm.form.paramString1),callback:function ($$v) {_vm.$set(_vm.form, \"paramString1\", $$v)},expression:\"form.paramString1\"}}):_vm._e(),(_vm.form.typeTriggerActionId === _vm.TriggerAction.type.GENERATE_LABEL_AND_SEND_PRINTER_DEFAULT)?_c('t-input',{attrs:{\"required\":\"\",\"select-common\":\"\",\"options\":_vm.labelList,\"label\":\"Layout de Etiqueta\"},model:{value:(_vm.form.paramInteger1),callback:function ($$v) {_vm.$set(_vm.form, \"paramInteger1\", $$v)},expression:\"form.paramInteger1\"}}):_vm._e(),(_vm.form.typeTriggerActionId === _vm.TriggerAction.type.STOCK_PRODUCT_IN || _vm.form.typeTriggerActionId === _vm.TriggerAction.type.STOCK_PRODUCT_OUT)?_c('t-input',{attrs:{\"required\":\"\",\"select-common\":\"\",\"options\":_vm.stockProductLocationList,\"label\":\"Estoque de Produto\"},model:{value:(_vm.form.paramInteger1),callback:function ($$v) {_vm.$set(_vm.form, \"paramInteger1\", $$v)},expression:\"form.paramInteger1\"}}):_vm._e(),(_vm.form.typeTriggerActionId === _vm.TriggerAction.type.GENERATE_REPORT_QUALITY)?_c('t-input',{attrs:{\"required\":\"\",\"select-common\":\"\",\"options\":_vm.technicalReportList,\"label\":\"Laudo de Qualidade\"},model:{value:(_vm.form.paramInteger1),callback:function ($$v) {_vm.$set(_vm.form, \"paramInteger1\", $$v)},expression:\"form.paramInteger1\"}}):_vm._e(),_c('t-button',{attrs:{\"sending\":_vm.status === 'sending',\"text\":_vm.onButtonSubmitText(_vm.command),\"primary\":\"\",\"submit\":\"\"}}),(_vm.command === 'update')?_c('b-link',{staticClass:\"ml-2 text-focus\",on:{\"click\":function($event){return _vm.cancelUpdatedList()}}},[_vm._v(\" \"+_vm._s(_vm.t('go-back'))+\" \")]):_vm._e()],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Type from \"@/model/types/Type\";\r\n\r\n\r\nconst type = {\r\n SEND_MAIL: 1,\r\n GENERATE_LABEL_AND_SEND_PRINTER_DEFAULT: 2,\r\n STOCK_PRODUCT_IN: 3,\r\n STOCK_PRODUCT_OUT: 4,\r\n GENERATE_REPORT_QUALITY: 5,\r\n REMOVE_NON_CONFORMANCE: 6,\r\n}\r\n\r\nconst list = [\r\n {\r\n value: type.SEND_MAIL,\r\n text: \"Envio de e-mail\",\r\n },\r\n {\r\n value: type.GENERATE_LABEL_AND_SEND_PRINTER_DEFAULT,\r\n text: \"Emissão e impressão de etiqueta\",\r\n\r\n },\r\n {\r\n value: type.STOCK_PRODUCT_IN,\r\n text: \"Entrada mp estoque de produto\",\r\n\r\n },\r\n {\r\n value: type.STOCK_PRODUCT_OUT,\r\n text: \"SaÃda no estoque de produto\",\r\n\r\n },\r\n {\r\n value: type.GENERATE_REPORT_QUALITY,\r\n text: \"Emissão de laudo de qualidade\",\r\n\r\n },\r\n {\r\n value: type.REMOVE_NON_CONFORMANCE,\r\n text: \"Remover tipo de conformidade geral\",\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\n\r\nexport default {\r\n type,\r\n list,\r\n contains,\r\n}","<template>\n\n <div>\n\n\n\n <t-form-list sortable hide-header\n :generalErrors=\"generalErrors\"\n :items=\"items\" :fields=\"fields\" :command=\"command\" :user-auth=\"userAuth\" :status=\"status\"\n :busy=\"!pageFormIsLoaded\" :busy-form=\"!listFormIsLoaded\" :busy-list=\"!listIsLoaded\" :path=\"pathTrigger\"\n :primary-key-column=\"primaryKeyColumn\" :primary-key=\"form[primaryKeyColumn]\"\n :foreign-key-column=\"foreignKeyColumnTrigger\" :foreign-key=\"foreignKey\"\n @onSubmit=\"onSubmit\" @onItemRead=\"onItemReadDefault\" @onItemDelete=\"onItemDeleteDefault\">\n\n\n <t-input v-model=\"form[primaryKeyColumn]\" hidden />\n\n <b-col cols=\"12\" class=\"mb-2\">\n\n <b-row>\n\n <t-input cols=\"6\" select-common v-model=\"form.typeTriggerActionId\" :options=\"typeTriggerList\"\n :add-error=\"error.typeTriggerActionId\" label=\"Tipo de Gatilho\"\n required/>\n\n\n <t-input cols=\"6\" select-common v-model=\"form.triggerEventType\"\n :options=\"TriggerEventType.listByType(typeTrigger)\"\n label=\"Quando acionar\"\n required/>\n\n\n </b-row>\n\n\n <t-input v-if=\"form.typeTriggerActionId === TriggerAction.type.SEND_MAIL\" required email-multiple v-model=\"form.paramString1\"\n label=\"E-mail(s) para envio\"/>\n\n <t-input v-if=\"form.typeTriggerActionId === TriggerAction.type.GENERATE_LABEL_AND_SEND_PRINTER_DEFAULT\" required select-common :options=\"labelList\"\n v-model=\"form.paramInteger1\"\n label=\"Layout de Etiqueta\"/>\n\n <t-input v-if=\"form.typeTriggerActionId === TriggerAction.type.STOCK_PRODUCT_IN || form.typeTriggerActionId === TriggerAction.type.STOCK_PRODUCT_OUT\" required select-common :options=\"stockProductLocationList\"\n v-model=\"form.paramInteger1\"\n label=\"Estoque de Produto\"/>\n\n <t-input v-if=\"form.typeTriggerActionId === TriggerAction.type.GENERATE_REPORT_QUALITY\" required select-common :options=\"technicalReportList\"\n v-model=\"form.paramInteger1\"\n label=\"Laudo de Qualidade\"/>\n\n\n <t-button :sending=\"status === 'sending'\" :text=\"onButtonSubmitText(command)\" primary submit/>\n\n <b-link class=\"ml-2 text-focus\" v-if=\"command === 'update'\" @click=\"cancelUpdatedList()\">\n {{ t('go-back') }}\n </b-link>\n\n\n </b-col>\n\n <template #list-content=\"{item,index}\">\n\n <b-col cols=\"12\">\n\n <span class=\"badge badge-pill badge-light bg-light\">{{ ++index }}ª Prioridade</span><br/>\n\n <b-row class=\"mt-1\">\n\n <b-col cols=\"12\">\n <h5>{{ item.typeTrigger }}</h5>\n\n Quando: <b>{{ item.triggerEventTypeName }}</b> qual: <b>{{ item.paramName }}</b><br/>\n\n </b-col>\n\n\n </b-row>\n\n </b-col>\n\n\n </template>\n\n </t-form-list>\n\n </div>\n\n\n</template>\n<script>\nimport pageDefaultMixin from \"@/mixins/page/pageDefaultMixin\"\nimport pageFormMixin from \"@/mixins/page/pageFormMixin\"\nimport pageFormListMixin from \"@/mixins/page/pageFormListMixin\"\nimport tFormList from \"@/components/template/form/list/t-form-list\"\nimport TriggerAction from \"@/model/types/resource/TriggerActionType\";\nimport TriggerEventType from \"@/model/types/resource/TriggerEventType\";\n\nimport http from \"@/services/config/http-common\";\n\nexport default {\n mixins: [pageDefaultMixin, pageFormMixin, pageFormListMixin],\n components: {tFormList},\n name: 't-form-list-trigger',\n data() {\n return {\n TriggerAction,\n TriggerEventType,\n fields: [{keyRead: this.primaryKeyColumn, keyDelete: this.primaryKeyColumn}],\n form: {\n [this.foreignKeyColumnTrigger]: this.foreignKey,\n [this.primaryKeyColumn]: 0,\n typeTriggerActionId: 0,\n triggerEventType: 0,\n paramInteger1: 0,\n paramInteger2: 0,\n paramInteger3: 0,\n paramString1: \"\",\n paramString2: \"\",\n status: 1,\n //--------------------------------------------------------------------------\n },\n error: {//Campos que podem receber retorno de erro do backend\n name: \"\",\n typeTriggerActionId: \"\",\n },\n fieldsNotReset: [//Marca os nomes de colunas que não devem ser resetados\n this.foreignKeyColumn,\n ],\n //--------------------------------------------------------------------------------------\n typeTriggerList: [],\n labelList: [],\n technicalReportList: [],\n stockProductLocationList: [],\n //--------------------------------------------------------------------------------------\n }\n },\n props: {\n typeTrigger: {//Criado o nome com sufixo do componente para não conflitar com campo type que possa ser utilizado\n type: String,\n required: true,\n },\n pathTrigger: {//Criado o nome com sufixo do componente para não conflitar com campo path já existente\n type: String,\n required: true,\n },\n foreignKeyColumnTrigger: {//Criado o nome com sufixo do componente para não conflitar com campo foreignKeyColumn já existente\n type: String,\n required: true,\n },\n primaryKeyColumn: {\n type: String,\n required: true,\n },\n foreignKey: {\n type: Number,\n required: true,\n },\n },\n methods: {\n\n defaultForm() {\n\n //Preenche somente os campos que foram limpos após o reset\n this.defaultFormList()\n\n },\n\n mountedPrepare() {\n\n //Especifica campos vindo do componente externo\n this.path = this.pathTrigger\n this.foreignKeyColumn = this.foreignKeyColumnTrigger\n\n this.defaultForm()\n this.mountedPrepareFormListDefault()\n this.listParams.append(\"typeTrigger\", this.typeTrigger)\n },\n\n async mountedContinued() {\n\n await http.list(this.pathTrigger + \"/selectRelationList\").then((response) => {\n\n this.typeTriggerList = response.typeTriggerList\n this.labelList = response.labelList\n this.technicalReportList = response.technicalReportList\n this.stockProductLocationList = response.stockProductLocationList\n\n }).catch(error => this.responseError(error))\n\n await this.getList()\n\n },\n\n async onSubmit() {\n\n await this.setSendingFormListDefault(this.form.processFlowStepTriggerId)\n\n },\n\n mountedList() {\n\n\n this.listIsLoaded = true\n\n },\n //--------------------------------------------------------------------------------------\n //InÃcio de métodos personalizados desta tela\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!./t-form-list-trigger.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-form-list-trigger.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./t-form-list-trigger.vue?vue&type=template&id=b3fcfb2e&\"\nimport script from \"./t-form-list-trigger.vue?vue&type=script&lang=js&\"\nexport * from \"./t-form-list-trigger.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\r\n GO_TO_STEP: 1,\r\n FINISH_WITH_ERROR: 2,\r\n CHANGE_STATUS_OPERATIONAL: 3,\r\n BLOCK: 4,\r\n INFO: 5,\r\n ALTERNATIVES: 6,\r\n}\r\n\r\nconst list = [\r\n {\r\n value: type.GO_TO_STEP,\r\n text: \"Ir para etapa de correção\",\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.CHANGE_STATUS_OPERATIONAL,\r\n text: \"Alterar status operacional\",\r\n },\r\n {\r\n value: type.BLOCK,\r\n text: \"Bloquear e não permitir avançar\",\r\n },\r\n {\r\n value: type.INFO,\r\n text: \"Informar apenas, sem bloquear\",\r\n },\r\n {\r\n value: type.ALTERNATIVES,\r\n text: \"Exibir alternativas\",\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\nexport default {\r\n type,\r\n list,\r\n contains,\r\n getText,\r\n}\r\n\r\n\r\n","import Type from \"@/model/types/Type\";\r\n\r\nconst type = {\r\n MINUTE: 1,\r\n HOUR: 2,\r\n DAY: 3,\r\n WEEK: 4,\r\n MONTH: 5,\r\n YEAR: 6,\r\n}\r\n\r\nconst list = [\r\n {\r\n value: type.MINUTE,\r\n text: \"Minuto\",\r\n },\r\n {\r\n value: type.HOUR,\r\n text: \"Hora\",\r\n },\r\n {\r\n value: type.DAY,\r\n text: \"Dia\",\r\n },\r\n {\r\n value: type.WEEK,\r\n text: \"Semana\",\r\n },\r\n {\r\n value: type.MONTH,\r\n text: \"Mês\",\r\n },\r\n {\r\n value: type.YEAR,\r\n text: \"Ano\",\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}"],"sourceRoot":""}