{"version":3,"sources":["webpack:///./src/services/modules/production/ProcessFlow.service.js","webpack:///./src/services/modules/product/Material.service.js","webpack:///./src/model/entities/modules/production/ProductionOrderEntity.js","webpack:///./src/views/modules/general/PrintLabelDialog.vue?8144","webpack:///./src/services/modules/general/Label.service.js","webpack:///src/views/modules/general/PrintLabelDialog.vue","webpack:///./src/views/modules/general/PrintLabelDialog.vue?ddd2","webpack:///./src/views/modules/general/PrintLabelDialog.vue","webpack:///./src/views/custom/polimix/production/PolimixProductionOrderForm.vue?d858","webpack:///./src/views/modules/production/ProductionOrder/embeddable/ProductionOrderFormUniqueBatchEmbeddable.vue?e467","webpack:///./src/services/modules/production/ProductionOrder.service.js","webpack:///src/views/modules/production/ProductionOrder/embeddable/ProductionOrderFormUniqueBatchEmbeddable.vue","webpack:///./src/views/modules/production/ProductionOrder/embeddable/ProductionOrderFormUniqueBatchEmbeddable.vue?59fa","webpack:///./src/views/modules/production/ProductionOrder/embeddable/ProductionOrderFormUniqueBatchEmbeddable.vue","webpack:///./src/mixins/embeddable/production/productionOrderFormEmbeddableMixin.js","webpack:///./src/services/modules/production/Lot.service.js","webpack:///./src/views/modules/production/ProductionOrder/dialog/ProductionOrderChangeCodeLabelDialog.vue?1799","webpack:///src/views/modules/production/ProductionOrder/dialog/ProductionOrderChangeCodeLabelDialog.vue","webpack:///./src/views/modules/production/ProductionOrder/dialog/ProductionOrderChangeCodeLabelDialog.vue?d601","webpack:///./src/views/modules/production/ProductionOrder/dialog/ProductionOrderChangeCodeLabelDialog.vue","webpack:///src/views/custom/polimix/production/PolimixProductionOrderForm.vue","webpack:///./src/views/custom/polimix/production/PolimixProductionOrderForm.vue?c3d7","webpack:///./src/views/custom/polimix/production/PolimixProductionOrderForm.vue"],"names":["path","service","params","http","list","productId","productionOrderId","productionOrderCodeLabel","companyId","typeOrigin","quantityManually","priorityId","processFlowId","deadline","ui","currentDate","note","statusOrder","originList","actionInsertType","goProcessFlowStepId","typeStopId","batchList","productionOrderBatchId","lotId","typeNonConformanceId","batchNumber","producedWeight","requestQuantity","producedQuantity","batchType","viewReportId","pdfReportId","statusBatch","render","_vm","this","_h","$createElement","_c","_self","ref","attrs","generalErrors","title","okText","id","command","status","variant","disablePrint","on","showModal","resetModal","onSubmit","headerTitle","length","_v","_s","_e","printerOptions","model","value","form","callback","$$v","$set","expression","disableQuantity","text","_t","staticRenderFns","labelId","URLSearchParams","set","post","name","components","mixins","pageDialogFormMixin","data","printerId","quantity","error","label","printerDefault","props","type","String","default","Boolean","Number","required","foreignKeyColumn","mounted","methods","component","mountAgain","enabledSubmit","reportId","primaryKey","onMountedForm","onBeforeSubmit","$event","reload","onLastCreated","scopedSlots","_u","key","fn","onSubmitChangeCode","onSubmitPrint","openDialogForm","proxy","relationAccessSubValidation","staticClass","staticStyle","editCodeLabel","inputFixedCodeLabel","lotOptions","setGroupProductByLot","msgProducedWeight","validatedProducedWeight","getLotByIssueDate","isUpdate","unitOptions","checkProducedWeight","productFind","modelOptions","materialOptions","onChangeMaterial","typeNonConformanceOptions","materialId","materialOffSpec","modalActionType","modalActionStepId","onSubmitStepAction","processFlowApplicableOptions","submitExternal","checkErrorsComponent","t","currentPage","pageFormIsLoaded","undefined","buttonDownloadPdf","downloadPdfFinish","downloadPdf","StatusProductionOrderType","hasDone","getRenderRule","openModalActionStep","confirmReinstall","directives","rawName","reverseFinish","confirmReverse","class","disableTypeOrigin","typesOrigin","salesOptions","disableProduct","disableQuantityManually","disableDeadline","groupStockProductLocationOptions","processFlowOptions","fieldsCustomizable","userAuth","entityFieldCustomized","pageId","fieldKey","actionInsertTypeOptions","stepsAll","typeProductionReturnOptions","logControl","updatedUser","setStepCurrentId","get","issueDate","groupProductId","pageDefaultMixin","StatusStepType","FlowStepNotSequenceActionType","enableGeneralFields","userId","processFlowStepItems","processFlowStepFields","prioritiesTypeOptions","stepCurrentId","Object","mountedPrepare","mountedPrepareEmbeddable","goPath","codSuccess","returnMessage","action","StepActionType","watch","ProductionOrderFormUniqueBatchEmbeddable","formEmbeddableMixin","ProductionOrderEntity","date","productionOrderFormEmbeddableMixin","modelId","unitId","groupProduct","lotList","stockOffSpec","validationProducedWeightMin","validationProducedWeightMax","group","console","log"],"mappings":"0JAGMA,EAAO,0BAEPC,E,gGAEF,SAAWC,GAEP,OAAOC,OAAKC,KAAKJ,EAAO,cAAeE,K,uCAI3C,SAA0BG,GAEtB,OAAOF,OAAKC,KAAKJ,EAAO,8BAA8BK,O,KAM/C,WAAIJ,G,4EClBbD,EAAO,mBAEPC,E,gGAEF,SAAWC,GACP,OAAOC,OAAKC,KAAKJ,EAAO,cAAeE,O,KAMhC,WAAID,G,oGCTf,aAEI,OAFU,uBAEH,CACHK,kBAAmB,EACnBC,yBAA0B,GAC1BC,UAAW,EACXC,WAAY,EACZJ,UAAW,EACXK,iBAAkB,EAClBC,WAAY,EACZC,cAAe,EACfC,SAAUC,OAAGC,cACbC,KAAM,GACNC,YAAa,EACbC,WAAY,GACZC,iBAAiB,KACjBC,oBAAoB,EACpBC,WAAW,EAEXC,UAAW,CACP,CACIC,uBAAwB,EACxBC,MAAO,EACPC,qBAAqB,EACrBC,YAAa,EACbC,eAAgB,EAChBC,gBAAiB,EACjBC,iBAAkB,EAClBC,UAAW,EACXC,aAAc,EACdlB,SAAUC,OAAGC,cACbiB,YAAa,EACbC,YAAa,O,oCCrCjC,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,gBAAgB,CAACE,IAAI,cAAcC,MAAM,CAAC,cAAgBP,EAAIQ,cAAc,MAAQR,EAAIS,MAAM,UAAUT,EAAIU,OAAO,GAAKV,EAAIW,GAAG,QAAUX,EAAIY,QAAQ,OAASZ,EAAIa,OAAO,QAAUb,EAAIc,QAAQ,kBAAkBd,EAAIe,cAAcC,GAAG,CAAC,KAAOhB,EAAIiB,UAAU,OAASjB,EAAIkB,WAAW,SAAWlB,EAAImB,WAAW,C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AAoB,MAUjC,QArZF,WAqZA,wJAEA,mBAFA,+CC1iBiZ,ICO7Y,EAAY,eACd,EACAvF,EACAqC,GACA,EACA,KACA,KACA,MAIa,e","file":"js/chunk-6acda3dc.a4bb8112.js","sourcesContent":["import http from '../../config/http-common';\r\n\r\n//Usado somente se for realmente necessário algo fora do padrão GeneralCRUD.service.js\r\nconst path = \"production/process-flow\"\r\n\r\nclass service {\r\n\r\n    selectList(params) {\r\n\r\n        return http.list(path + \"/selectList\", params);\r\n\r\n    }\r\n\r\n    findApplicableByProductId(productId){\r\n\r\n        return http.list(path + \"/findApplicableByProductId/\"+productId);\r\n\r\n    }\r\n\r\n}\r\n\r\nexport default new service();\r\n\r\n\r\n","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 ui from \"@/assets/scripts/ui\";\r\n\r\nexport default class {\r\n    /*SEGUIR EXATAMENTE ESTE PADRÃO CHAMANDO form: new XXX(), POIS SE MUDAR DARÁ ERRO COM OBJETO NÃO SENDO ALTERADO A CADA INCLUSÃO*/\r\n\r\n    constructor() {\r\n\r\n        return {\r\n            productionOrderId: 0,\r\n            productionOrderCodeLabel: \"\",\r\n            companyId: 0,\r\n            typeOrigin: 0,\r\n            productId: 0,\r\n            quantityManually: 0,\r\n            priorityId: 0,\r\n            processFlowId: 0,\r\n            deadline: ui.currentDate(),\r\n            note: \"\",\r\n            statusOrder: 0,\r\n            originList: [],\r\n            actionInsertType:null,\r\n            goProcessFlowStepId:0,\r\n            typeStopId:0,\r\n            /*Padrão lote único, por tanto somente 1 objeto*/\r\n            batchList: [\r\n                {\r\n                    productionOrderBatchId: 0,\r\n                    lotId: 0,\r\n                    typeNonConformanceId:0,\r\n                    batchNumber: 1,\r\n                    producedWeight: 0,\r\n                    requestQuantity: 0,\r\n                    producedQuantity: 0, /*todo quando estiver na última etapa antes da finalização e caso o valor produzido não tenha sido informado, deverá exigir para finalizar a OP*/\r\n                    batchType: 1,\r\n                    viewReportId: 0,\r\n                    deadline: ui.currentDate(),\r\n                    pdfReportId: 0,\r\n                    statusBatch: 1,\r\n\r\n                }\r\n            ]\r\n        }\r\n\r\n    }\r\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('t-dialog-form',{ref:\"dialog_form\",attrs:{\"generalErrors\":_vm.generalErrors,\"title\":_vm.title,\"ok-text\":_vm.okText,\"id\":_vm.id,\"command\":_vm.command,\"status\":_vm.status,\"variant\":_vm.variant,\"disabled-submit\":_vm.disablePrint},on:{\"show\":_vm.showModal,\"hidden\":_vm.resetModal,\"onSubmit\":_vm.onSubmit}},[(_vm.headerTitle.length > 0)?_c('b-card-title',[_vm._v(_vm._s(_vm.headerTitle))]):_vm._e(),_c('t-input',{attrs:{\"select\":\"\",\"required\":\"\",\"options\":_vm.printerOptions,\"label\":\"Impressora\"},model:{value:(_vm.form.printerId),callback:function ($$v) {_vm.$set(_vm.form, \"printerId\", $$v)},expression:\"form.printerId\"}}),(!_vm.disableQuantity)?_c('t-input',{attrs:{\"options\":[{value: 1, text: '1'}, {value: 2, text: '2'}, {value: 3, text: '3'}, {value: 4, text: '4'}, {value: 5, text: '5'}],\"radio\":\"\",\"only-numbers\":\"\",\"number\":\"\",\"required\":\"\",\"label\":\"Qtd. Cópias\"},model:{value:(_vm.form.quantity),callback:function ($$v) {_vm.$set(_vm.form, \"quantity\", $$v)},expression:\"form.quantity\"}}):_vm._e(),_vm._t(\"default\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import http from '../../config/http-common';\r\n\r\n//Usado somente se for realmente necessário algo fora do padrão GeneralCRUD.service.js\r\nconst path = \"general/label\"\r\n\r\nclass service {\r\n\r\n    mount(labelId) {\r\n\r\n        let params = new URLSearchParams()\r\n        params.set(\"labelId\", labelId)\r\n\r\n        return http.list(path + \"/selectRelationList\",params)\r\n    }\r\n\r\n    print(form) {\r\n\r\n        return http.post(path + \"/print\",form)\r\n    }\r\n\r\n}\r\n\r\nexport default new service();\r\n\r\n\r\n","<template>\n\n  <t-dialog-form :generalErrors=\"generalErrors\" :title=\"title\" :ok-text=\"okText\" @show=\"showModal\" @hidden=\"resetModal\"\n                 :id=\"id\" :command=\"command\" :status=\"status\" :variant=\"variant\"\n                 :disabled-submit=\"disablePrint\"\n                 ref=\"dialog_form\" @onSubmit=\"onSubmit\">\n\n\n    <b-card-title v-if=\"headerTitle.length > 0\">{{ headerTitle }}</b-card-title>\n\n    <t-input v-model=\"form.printerId\" select required :options=\"printerOptions\" label=\"Impressora\"/>\n\n    <t-input v-model=\"form.quantity\"\n             :options=\"[{value: 1, text: '1'}, {value: 2, text: '2'}, {value: 3, text: '3'}, {value: 4, text: '4'}, {value: 5, text: '5'}]\"\n             radio v-if=\"!disableQuantity\" only-numbers number required label=\"Qtd. Cópias\"/>\n\n    <slot>\n\n\n    </slot>\n\n  </t-dialog-form>\n\n</template>\n<script>\nimport tDialogForm from \"@/components/template/dialog/t-dialog-form\";\nimport pageDialogFormMixin from \"@/mixins/page/pageDialogFormMixin\";\nimport LabelService from \"@/services/modules/general/Label.service\";\n\n\nexport default {\n  name: \"PrintLabelDialog\",\n  components: {tDialogForm},\n  mixins: [pageDialogFormMixin],\n  data() {\n    return {\n      id: \"modal-print-label\",\n      title: \"\",\n      okText: \"Imprimir\",\n      form: {\n        labelId: 0,\n        printerId: 0,\n        quantity: 1,\n        list: \"\",//Será feita conversão para envio json encoded\n      },\n      error: {//Campos que podem receber retorno de erro do backend\n        name: \"\",\n      },\n      variant: \"primary\",\n      label: {},\n      printerDefault: {},\n      printerOptions: [],\n\n    }\n  },\n  props: {\n    headerTitle: { //Titulo da\n      type: String,\n      default: \"\",\n    },\n    disableQuantity: Boolean,\n    disablePrint: Boolean,\n    labelId: {\n      type: Number,\n      required: true,\n    },\n    list: [],//Recebe sempre um array\n    foreignKeyColumn: {/*Declarado sempre pontualmente em cada Dialog, pois poderá ser fixo ou vindo de props*/\n      type: String,\n      default: \"\",\n      required: false,\n    },\n  },\n  mounted() {\n    this.id += '-' + this.labelId\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      //Limpa os campos\n      this.resetModal()\n\n      this.form.labelId = this.labelId\n\n      //Setar alguma informações padrão por exemplo vindo de fora\n      await LabelService.mount(this.labelId).then((response) => {\n\n        this.label = response.label\n        this.printerDefault = response.printerDefault\n        this.printerOptions = response.printerOptions\n\n        if (this.printerDefault !== null) {\n          this.form.printerId = this.printerDefault.printerId\n        }\n\n        this.form.quantity = 1\n        this.title = 'Imprimir: ' + this.label.name\n\n      }).catch(error => alert(error))\n\n    },\n\n    async onSubmit() {\n\n      if (this.foreignKeyColumn === '' || this.foreignKey === 0)\n        alert('Montagem de Impressão incorreta!')\n\n      this.form[this.foreignKeyColumn] = this.foreignKey\n\n      if (this.list) {\n\n        if (this.list.length > 0) {\n          //Converte objeto para envio como uma string, pois poderá existir diversas formas de envio de listas de etiquetas\n          this.form.list = JSON.stringify(this.list)\n        }\n\n      } else {\n        this.form.list = \"\"\n      }\n\n      this.status = \"sending\"\n\n      await LabelService.print(this.form).then(() => {\n\n        this.itemInserted.value = this.primaryKey\n        this.itemInserted.text = this.label.name\n\n        this.successInsert()\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!./PrintLabelDialog.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!./PrintLabelDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PrintLabelDialog.vue?vue&type=template&id=29cf69ae&\"\nimport script from \"./PrintLabelDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./PrintLabelDialog.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.mountAgain)?_c('ProductionOrderFormUniqueBatchEmbeddable',{ref:\"embeddable\",attrs:{\"enabled-submit\":_vm.enabledSubmit,\"button-download-pdf\":{reportId:this.form.batchList[0].pdfReportId,primaryKey: this.form.productionOrderId, name:this.form.productionOrderCodeLabel},\"disable-product\":\"\",\"disable-quantity-manually\":\"\",\"disable-deadline\":\"\",\"disable-type-origin\":\"\"},on:{\"mounted\":_vm.onMountedForm,\"beforeSubmit\":_vm.onBeforeSubmit,\"reload\":function($event){return _vm.reload()},\"onLastCreated\":_vm.onLastCreated},scopedSlots:_vm._u([{key:\"title-buttons\",fn:function(){return [_c('ProductionOrderChangeCodeLabelDialog',{attrs:{\"primary-key\":_vm.form.productionOrderId,\"production-order-code-label\":_vm.form.productionOrderCodeLabel},on:{\"onSubmit\":_vm.onSubmitChangeCode}}),_c('PrintLabelDialog',{attrs:{\"label-id\":1,\"header-title\":'Ordem de Fabricação: ' + _vm.form.productionOrderCodeLabel,\"foreignKey\":_vm.form.productionOrderId,\"foreign-key-column\":\"productionOrderId\"},on:{\"onSubmit\":_vm.onSubmitPrint}}),(_vm.command !== 'insert')?_c('t-button',{on:{\"click\":function($event){return _vm.openDialogForm('modal-print-label-1')}}},[_c('b-icon-printer'),_vm._v(\" Etiqueta \")],1):_vm._e()]},proxy:true},{key:\"header\",fn:function(){return [(_vm.command==='insert' && !_vm.relationAccessSubValidation('sub-production-order-change-code'))?_c('b-row',[_c('t-input',{attrs:{\"label\":\"Cód. Produção\",\"fixed\":\"\",\"cols\":\"6\",\"highlight\":\"\"},model:{value:(_vm.form.productionOrderCodeLabel),callback:function ($$v) {_vm.$set(_vm.form, \"productionOrderCodeLabel\", $$v)},expression:\"form.productionOrderCodeLabel\"}}),_c('t-input',{attrs:{\"options\":_vm.lotOptions,\"select\":\"\",\"cols\":\"6\",\"label\":\"Lote\",\"required\":\"\"},on:{\"change\":function($event){return _vm.setGroupProductByLot()}},model:{value:(_vm.form.batchList[0].lotId),callback:function ($$v) {_vm.$set(_vm.form.batchList[0], \"lotId\", $$v)},expression:\"form.batchList[0].lotId\"}})],1):_c('b-row',[_c('b-col',{attrs:{\"cols\":\"6\"}},[_c('div',{staticClass:\"d-flex\",staticStyle:{\"justify-content\":\"space-between\"}},[_c('div',[_vm._v(\"Cód. Produção\")]),(_vm.relationAccessSubValidation('sub-production-order-change-code'))?_c('a',{on:{\"click\":_vm.editCodeLabel}},[_vm._v(\"Alterar código?\")]):_vm._e()]),_c('t-input',{attrs:{\"not-row\":\"\",\"label\":\"Cód. Produção\",\"required\":!_vm.inputFixedCodeLabel,\"hide-label\":\"\",\"fixed\":_vm.inputFixedCodeLabel,\"highlight\":\"\"},model:{value:(_vm.form.productionOrderCodeLabel),callback:function ($$v) {_vm.$set(_vm.form, \"productionOrderCodeLabel\", $$v)},expression:\"form.productionOrderCodeLabel\"}})],1),_c('t-input',{attrs:{\"cols\":\"6\",\"options\":_vm.lotOptions,\"select\":\"\",\"label\":\"Lote\",\"required\":\"\"},on:{\"change\":function($event){return _vm.setGroupProductByLot()}},model:{value:(_vm.form.batchList[0].lotId),callback:function ($$v) {_vm.$set(_vm.form.batchList[0], \"lotId\", $$v)},expression:\"form.batchList[0].lotId\"}})],1),_c('b-row',[_c('t-input',{attrs:{\"cols\":\"6\",\"required\":\"\",\"number\":\"\",\"label\":\"Peso Total (Kg)\",\"help\":\"Peso Total do Bag ou Caixa de EVA\",\"small\":_vm.msgProducedWeight},on:{\"focusout\":function($event){return _vm.validatedProducedWeight()}},model:{value:(_vm.form.batchList[0].producedWeight),callback:function ($$v) {_vm.$set(_vm.form.batchList[0], \"producedWeight\", $$v)},expression:\"form.batchList[0].producedWeight\"}}),_c('t-input',{attrs:{\"cols\":\"6\",\"required\":\"\",\"disabled\":!_vm.relationAccessSubValidation('sub-production-order-change-issue-date'),\"date\":\"\",\"label\":\"Data Produzido\"},on:{\"change\":_vm.getLotByIssueDate},model:{value:(_vm.form.issueDate),callback:function ($$v) {_vm.$set(_vm.form, \"issueDate\", $$v)},expression:\"form.issueDate\"}})],1),_c('b-row',[_c('t-input',{attrs:{\"cols\":\"4\",\"fixed\":_vm.isUpdate(),\"options\":_vm.unitOptions,\"select\":\"\",\"help\":\"Embalagem não poderá ser trocada após a inclusão, devido a consistência no fluxo de processos\",\"label\":\"Embalagem\",\"required\":\"\"},on:{\"change\":function($event){return _vm.checkProducedWeight()}},model:{value:(_vm.productFind.unitId),callback:function ($$v) {_vm.$set(_vm.productFind, \"unitId\", $$v)},expression:\"productFind.unitId\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"fixed\":_vm.isUpdate(),\"options\":_vm.modelOptions,\"select\":\"\",\"help\":\"Tipo não poderá ser trocada após a inclusão, devido a consistência no fluxo de processos\",\"label\":\"Tipo\",\"required\":\"\"},model:{value:(_vm.productFind.modelId),callback:function ($$v) {_vm.$set(_vm.productFind, \"modelId\", $$v)},expression:\"productFind.modelId\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"fixed\":_vm.isUpdate(),\"options\":_vm.materialOptions,\"select\":\"\",\"help\":\"Material não poderá ser trocada após a inclusão, devido a consistência no fluxo de processos\",\"label\":\"Material\",\"required\":\"\"},on:{\"change\":_vm.onChangeMaterial},model:{value:(_vm.productFind.materialId),callback:function ($$v) {_vm.$set(_vm.productFind, \"materialId\", $$v)},expression:\"productFind.materialId\"}})],1),_c('t-input',{attrs:{\"options\":_vm.typeNonConformanceOptions,\"select\":\"\",\"help\":\"Indique se existe alguma restrição na ordem de fabricação\",\"required\":_vm.productFind.materialId === _vm.materialOffSpec,\"label\":\"Tipo Não Conformidade\"},model:{value:(_vm.form.batchList[0].typeNonConformanceId),callback:function ($$v) {_vm.$set(_vm.form.batchList[0], \"typeNonConformanceId\", $$v)},expression:\"form.batchList[0].typeNonConformanceId\"}})]},proxy:true}],null,false,1339567545),model:{value:(_vm.form),callback:function ($$v) {_vm.form=$$v},expression:\"form\"}}):_vm._e()}\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-page',[_c('StepActionDialog',{attrs:{\"type\":_vm.modalActionType,\"production-order-batch-step-id\":_vm.modalActionStepId},on:{\"onSubmit\":_vm.onSubmitStepAction}}),_c('b-modal',{attrs:{\"title\":\"Escolha de Fluxo-Processo\",\"id\":\"modal-choice-process-flow\",\"no-close-on-esc\":\"\",\"no-close-on-backdrop\":\"\",\"ok-title\":\"Escolher\",\"ok-only\":\"\"},on:{\"ok\":_vm.onSubmit}},[_c('div',[_c('h4',[_vm._v(\"Fluxo desejado\")]),_c('t-input',{attrs:{\"radio\":\"\",\"stacked\":\"\",\"label\":\"Fluxo-Processo\",\"hide-label\":\"\",\"options\":_vm.processFlowApplicableOptions},model:{value:(_vm.form.processFlowId),callback:function ($$v) {_vm.$set(_vm.form, \"processFlowId\", $$v)},expression:\"form.processFlowId\"}})],1),_c('t-msg',{attrs:{\"info\":\"\"}},[_vm._v(\"Foram encontrados mais que um fluxo-processo de acordo com o produto informado. Desta forma, será necessário selecionar qual o fluxo desejado para ser aplicado a esta Ordem de Fabricação. \")])],1),_c('t-page-form',{attrs:{\"submit-text\":'Ordem Fabricação',\"title\":'Ordem de Fabricação',\"command\":_vm.command,\"status\":_vm.status,\"generalErrors\":_vm.generalErrors,\"submit-external\":_vm.submitExternal,\"check-errors-again\":_vm.checkErrorsComponent,\"go-back-title\":_vm.t('go-back-list'),\"go-back-to\":_vm.currentPage.name,\"busy\":!_vm.pageFormIsLoaded},on:{\"onSubmit\":_vm.onSubmit},scopedSlots:_vm._u([{key:\"title-buttons\",fn:function(ref){\nvar status = ref.status;\nreturn [_vm._t(\"title-buttons\",null,{\"status\":status}),(_vm.command !== 'insert' && _vm.buttonDownloadPdf !== undefined && _vm.buttonDownloadPdf !== null)?_c('t-button',{attrs:{\"sending\":_vm.downloadPdfFinish,\"enable-loader\":\"\"},on:{\"click\":function($event){return _vm.downloadPdf()}}},[_c('b-icon-file-earmark-pdf'),_vm._v(\" PDF \")],1):_vm._e(),(_vm.command !== 'insert' && !_vm.StatusProductionOrderType.hasDone(_vm.form.statusOrder) && (\n              _vm.getRenderRule('sub-production-step-enable-return') ||\n              _vm.getRenderRule('sub-production-step-enable-stop') ||\n              _vm.relationAccessSubValidation('sub-production-order-reinstall')))?_c('t-dropdown',{attrs:{\"variant\":\"outline-primary\",\"icon-settings\":\"\"},scopedSlots:_vm._u([{key:\"button-content\",fn:function(){return [_c('b-icon',{attrs:{\"icon\":\"gear-fill\",\"aria-hidden\":\"true\"}}),_vm._v(\" Ações \")]},proxy:true}],null,true)},[(_vm.getRenderRule('sub-production-step-enable-return'))?_c('b-dropdown-item',{on:{\"click\":function($event){return _vm.openModalActionStep('return')}}},[_vm._v(\"Alterar Etapa \")]):_vm._e(),(_vm.getRenderRule('sub-production-step-enable-stop'))?_c('b-dropdown-item',{on:{\"click\":function($event){return _vm.openModalActionStep('stop')}}},[_vm._v(\"Parar Produção \")]):_vm._e(),(_vm.relationAccessSubValidation('sub-production-order-reinstall'))?_c('b-dropdown-item',{on:{\"click\":function($event){return _vm.confirmReinstall()}}},[_vm._v(\"Atualizar Fluxo \")]):_vm._e()],1):_vm._e(),_c('t-button',{directives:[{name:\"show\",rawName:\"v-show\",value:((_vm.command === 'update' || _vm.command === 'view') && _vm.StatusProductionOrderType.hasDone(_vm.form.statusOrder)),expression:\"(command === 'update' || command === 'view') && StatusProductionOrderType.hasDone(form.statusOrder)\"}],attrs:{\"outline-danger\":\"\",\"sending\":_vm.reverseFinish,\"enable-loader\":\"\",\"title\":!_vm.relationAccessSubValidation('sub-production-order-reverse-finish') ? 'Perfil de acesso não habilitado para estorno de finalização' : '',\"disabled\":!_vm.relationAccessSubValidation('sub-production-order-reverse-finish')},on:{\"click\":function($event){return _vm.confirmReverse()}}},[_c('b-icon-clipboard-x',{staticClass:\"mr-1\"}),_vm._v(\" Estornar \")],1)]}},{key:\"default\",fn:function(ref){\n              var status = ref.status;\nreturn [_c('b-row',[_c('b-col',{class:{'col-12':_vm.command === 'insert','col-lg-9':_vm.command !== 'insert','col-md-8':_vm.command !== 'insert','col-sm-12':_vm.command !== 'insert'}},[_c('b-card',[_c('t-input',{attrs:{\"hidden\":\"\"},model:{value:(_vm.form.productionOrderId),callback:function ($$v) {_vm.$set(_vm.form, \"productionOrderId\", $$v)},expression:\"form.productionOrderId\"}}),_vm._t(\"default\",function(){return [(_vm.command !== 'insert')?_c('b-card-title',[_vm._v(\"Dados Básicos\")]):_vm._e(),_vm._t(\"header\",null,{\"status\":status}),(!_vm.disableTypeOrigin)?_c('div',[_c('t-input',{attrs:{\"options\":_vm.typesOrigin,\"label\":\"Tipo de Origem\",\"radio\":\"\"},model:{value:(_vm.form.typeOrigin),callback:function ($$v) {_vm.$set(_vm.form, \"typeOrigin\", $$v)},expression:\"form.typeOrigin\"}}),_c('t-input',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.form.typeOrigin === 1),expression:\"form.typeOrigin === 1\"}],attrs:{\"options\":_vm.salesOptions,\"label\":\"Venda\",\"select\":\"\",\"required\":_vm.form.typeOrigin === 1},model:{value:(_vm.form.saleId),callback:function ($$v) {_vm.$set(_vm.form, \"saleId\", $$v)},expression:\"form.saleId\"}})],1):_vm._e(),(!_vm.disableProduct)?_c('t-input-product',{attrs:{\"required\":\"\"},model:{value:(_vm.form.productId),callback:function ($$v) {_vm.$set(_vm.form, \"productId\", $$v)},expression:\"form.productId\"}}):_vm._e(),_vm._t(\"after-product\",null,{\"status\":status}),(!_vm.disableQuantityManually)?_c('t-input',{attrs:{\"number\":\"\",\"label\":\"Quantidade\",\"required\":\"\"},model:{value:(_vm.form.quantityManually),callback:function ($$v) {_vm.$set(_vm.form, \"quantityManually\", $$v)},expression:\"form.quantityManually\"}}):_vm._e(),(!_vm.disableDeadline)?_c('t-input',{attrs:{\"label\":\"Prazo de Produção\",\"date\":\"\",\"required\":\"\"},model:{value:(_vm.form.deadline),callback:function ($$v) {_vm.$set(_vm.form, \"deadline\", $$v)},expression:\"form.deadline\"}}):_vm._e(),_c('b-row',[_c('t-input',{attrs:{\"options\":_vm.groupStockProductLocationOptions,\"select\":\"\",\"label\":\"Entrada no Estoque\",\"cols\":\"6\",\"required\":\"\"},model:{value:(_vm.form.stockPlaceProductInsideId),callback:function ($$v) {_vm.$set(_vm.form, \"stockPlaceProductInsideId\", $$v)},expression:\"form.stockPlaceProductInsideId\"}}),(_vm.command === 'insert')?_c('t-input',{attrs:{\"cols\":\"6\",\"fixed\":\"\",\"options\":_vm.processFlowOptions,\"select\":\"\",\"label\":\"Fluxo será aplicado\",\"required\":\"\"},model:{value:(_vm.form.processFlowId),callback:function ($$v) {_vm.$set(_vm.form, \"processFlowId\", $$v)},expression:\"form.processFlowId\"}}):_c('t-input',{attrs:{\"cols\":\"6\",\"fixed\":\"\",\"options\":_vm.processFlowOptions,\"select\":\"\",\"label\":\"Fluxo aplicado\",\"help\":\"Caso desejar alterar o fluxo-processo será necessário excluir e inserir novamente a OP\",\"required\":\"\"},model:{value:(_vm.form.processFlowId),callback:function ($$v) {_vm.$set(_vm.form, \"processFlowId\", $$v)},expression:\"form.processFlowId\"}})],1),_vm._t(\"before-fields\",null,{\"status\":status}),(_vm.fieldsCustomizable.length > 0)?_c('div',[_c('t-page-form-field-customized',{ref:\"fieldsGeneral\",attrs:{\"command\":_vm.command,\"status\":status,\"user-auth\":_vm.userAuth,\"fields-customizable\":_vm.entityFieldCustomized('page'),\"primary-key\":_vm.form.productId,\"foreign-key\":_vm.currentPage.pageId,\"busy\":!_vm.pageFormIsLoaded,\"primary-key-column\":_vm.fieldKey,\"foreign-key-column\":\"pageId\"}})],1):_vm._e(),_vm._t(\"before-note\",null,{\"status\":status}),_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\"}}),(_vm.command === 'insert' && _vm.relationAccessSubValidation('sub-production-order-actions-insert'))?_c('t-form-card',{attrs:{\"title\":\"Ações especiais de inclusão\"}},[_c('t-input',{attrs:{\"options\":_vm.actionInsertTypeOptions,\"label\":\"Ação especial\",\"hide-label\":\"\",\"stacked\":\"\",\"radio\":\"\"},model:{value:(_vm.form.actionInsertType),callback:function ($$v) {_vm.$set(_vm.form, \"actionInsertType\", $$v)},expression:\"form.actionInsertType\"}}),(_vm.form.actionInsertType === 2)?_c('div',{staticClass:\"alert alert-warning mt-1\"},[_c('b-row',[_c('t-input',{attrs:{\"select\":\"\",\"options\":_vm.stepsAll,\"cols\":\"6\",\"label\":\"Etapa desejada\",\"required\":\"\"},model:{value:(_vm.form.goProcessFlowStepId),callback:function ($$v) {_vm.$set(_vm.form, \"goProcessFlowStepId\", $$v)},expression:\"form.goProcessFlowStepId\"}}),_c('t-input',{attrs:{\"select\":\"\",\"options\":_vm.typeProductionReturnOptions,\"cols\":\"6\",\"label\":\"Motivo\",\"required\":\"\"},model:{value:(_vm.form.typeStopId),callback:function ($$v) {_vm.$set(_vm.form, \"typeStopId\", $$v)},expression:\"form.typeStopId\"}})],1)],1):_vm._e(),_c('div',{staticClass:\"mt-2\"},[(_vm.form.actionInsertType > 0)?_c('a',{on:{\"click\":function($event){_vm.form.actionInsertType = null}}},[_vm._v(\"Limpar Ação Especial\")]):_vm._e()])],1):_vm._e()]},{\"status\":status})],2),(_vm.command !== 'insert' && _vm.pageFormIsLoaded)?_c('b-card',{staticClass:\"mt-2\"},[_c('b-card-title',[_vm._v(\"Responsável Cadastro\")]),_c('b-row',[_c('t-input',{attrs:{\"cols\":\"6\",\"label\":\"Criado por\",\"fixed\":\"\"},model:{value:(_vm.form.logControl.createdUser),callback:function ($$v) {_vm.$set(_vm.form.logControl, \"createdUser\", $$v)},expression:\"form.logControl.createdUser\"}}),_c('t-input',{attrs:{\"cols\":\"6\",\"label\":\"Data Criação\",\"fixed\":\"\",\"datetime\":\"\"},model:{value:(_vm.form.logControl.createdDate),callback:function ($$v) {_vm.$set(_vm.form.logControl, \"createdDate\", $$v)},expression:\"form.logControl.createdDate\"}})],1),(_vm.form.logControl.updatedUser !== null)?_c('b-row',[_c('t-input',{attrs:{\"cols\":\"6\",\"label\":\"Alterado por\",\"fixed\":\"\"},model:{value:(_vm.form.logControl.updatedUser),callback:function ($$v) {_vm.$set(_vm.form.logControl, \"updatedUser\", $$v)},expression:\"form.logControl.updatedUser\"}}),_c('t-input',{attrs:{\"cols\":\"6\",\"label\":\"Data Alterado\",\"fixed\":\"\",\"datetime\":\"\"},model:{value:(_vm.form.logControl.updatedDate),callback:function ($$v) {_vm.$set(_vm.form.logControl, \"updatedDate\", $$v)},expression:\"form.logControl.updatedDate\"}})],1):_vm._e()],1):_vm._e()],1),(_vm.command !== 'insert')?_c('b-col',{staticClass:\"col-lg-3 col-md-4 col-sm-12\"},[_c('ProductionBatchFlow',{attrs:{\"busy\":!_vm.pageFormIsLoaded,\"origin-order-form\":\"\",\"current-page\":_vm.currentPage,\"enable-change-status-operation\":_vm.getRenderRule('sub-production-step-change-operation-status'),\"production-order-batch-id\":_vm.form.batchList[0].productionOrderBatchId},on:{\"onGetStepCurrentId\":_vm.setStepCurrentId}})],1):_vm._e()],1)]}},{key:\"out-of-form\",fn:function(){return [_vm._t(\"out-of-form\")]},proxy:true}],null,true)}),_c('div')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import http from '../../config/http-common';\r\n\r\n//Usado somente se for realmente necessário algo fora do padrão GeneralCRUD.service.js\r\nconst path = \"production/order\"\r\n\r\nclass service {\r\n\r\n    changeCodeLabel(form) {\r\n        return http.post(path + \"/changeCodeLabel\", form)\r\n    }\r\n\r\n    reverse(id) {\r\n        return http.get(path + \"/reverse-finish/\" + id)\r\n    }\r\n\r\n    reinstall(id) {\r\n        return http.get(path + \"/reinstall/\" + id)\r\n    }\r\n\r\n\r\n    consistenceLotByIssueDateAndGroupProduct(lotId, issueDate, groupProductId) {\r\n\r\n        return http.get(path + \"/consistenceLotByIssueDateAndGroupProduct/?lotId=\" + lotId + \"&issueDate=\" + issueDate + \"&groupProductId=\" + groupProductId)\r\n\r\n    }\r\n}\r\n\r\nexport default new service();\r\n\r\n\r\n","<template>\n\n  <t-page>\n\n\n    <StepActionDialog @onSubmit=\"onSubmitStepAction\" :type=\"modalActionType\"\n                      :production-order-batch-step-id=\"modalActionStepId\"/>\n\n    <b-modal title=\"Escolha de Fluxo-Processo\" id=\"modal-choice-process-flow\" no-close-on-esc no-close-on-backdrop\n             @ok=\"onSubmit\" ok-title=\"Escolher\" ok-only>\n\n\n      <div>\n\n        <h4>Fluxo desejado</h4>\n\n        <t-input radio stacked label=\"Fluxo-Processo\" hide-label :options=\"processFlowApplicableOptions\"\n                 v-model=\"form.processFlowId\"/>\n\n      </div>\n\n      <t-msg info>Foram encontrados mais que um fluxo-processo de acordo com o produto informado. Desta forma, será\n        necessário selecionar qual o fluxo desejado para ser aplicado a esta Ordem de Fabricação.\n      </t-msg>\n\n\n    </b-modal>\n\n    <!--    <t-page-report\n\n            v-if=\"form.batchList && form.batchList[0].viewReportId > 0 && command === 'view' && pageFormIsLoaded\"\n            :go-back-title=\"t('go-back-list')\" :go-back-to=\"currentPage.name\"\n            :title=\"currentPage.singularTitle + ' - #' + form.productionOrderCodeLabel\"\n            primary-key-column=\"productionOrderId\"\n            :primary-key=\"form.productionOrderId\"\n            :reportId=\"form.batchList[0].viewReportId\"\n        >\n\n          <template #title-buttons=\"{status}\">\n            <slot name=\"title-buttons\" :status=\"status\"></slot>\n          </template>\n\n        </t-page-report>-->\n\n    <t-page-form :submit-text=\"'Ordem Fabricação'\"\n                 :title=\"'Ordem de Fabricação'\"\n                 :command=\"command\" :status=\"status\" :generalErrors=\"generalErrors\" @onSubmit=\"onSubmit\"\n                 :submit-external=\"submitExternal\"\n                 :check-errors-again=\"checkErrorsComponent\"\n                 :go-back-title=\"t('go-back-list')\" :go-back-to=\"currentPage.name\" :busy=\"!pageFormIsLoaded\">\n\n\n      <template #title-buttons=\"{status}\">\n\n        <slot name=\"title-buttons\" :status=\"status\"></slot>\n\n        <t-button\n            @click=\"downloadPdf()\"\n            :sending=\"downloadPdfFinish\"\n            enable-loader\n            v-if=\"command !== 'insert' && buttonDownloadPdf !== undefined && buttonDownloadPdf !== null\">\n          <b-icon-file-earmark-pdf></b-icon-file-earmark-pdf>\n          PDF\n        </t-button>\n\n\n        <t-dropdown\n            v-if=\"command !== 'insert' && !StatusProductionOrderType.hasDone(form.statusOrder) && (\n                getRenderRule('sub-production-step-enable-return') ||\n                getRenderRule('sub-production-step-enable-stop') ||\n                relationAccessSubValidation('sub-production-order-reinstall'))\"\n            variant=\"outline-primary\" icon-settings>\n\n          <template #button-content>\n            <b-icon icon=\"gear-fill\" aria-hidden=\"true\"></b-icon>\n            Ações\n          </template>\n\n          <b-dropdown-item @click=\"openModalActionStep('return')\"\n                           v-if=\"getRenderRule('sub-production-step-enable-return')\">Alterar Etapa\n          </b-dropdown-item>\n          <b-dropdown-item @click=\"openModalActionStep('stop')\"\n                           v-if=\"getRenderRule('sub-production-step-enable-stop')\">Parar Produção\n          </b-dropdown-item>\n\n          <b-dropdown-item @click=\"confirmReinstall()\"\n                           v-if=\"relationAccessSubValidation('sub-production-order-reinstall')\">Atualizar Fluxo\n          </b-dropdown-item>\n\n        </t-dropdown>\n\n\n        <t-button @click=\"confirmReverse()\"\n                  outline-danger\n                  v-show=\"(command === 'update' || command === 'view') && StatusProductionOrderType.hasDone(form.statusOrder)\"\n                  :sending=\"reverseFinish\"\n                  enable-loader\n                  :title=\"!relationAccessSubValidation('sub-production-order-reverse-finish') ? 'Perfil de acesso não habilitado para estorno de finalização' : ''\"\n                  :disabled=\"!relationAccessSubValidation('sub-production-order-reverse-finish')\">\n          <b-icon-clipboard-x class=\"mr-1\"></b-icon-clipboard-x>\n          Estornar\n        </t-button>\n\n      </template>\n\n\n      <template #default=\"{status}\">\n\n        <b-row>\n\n          <b-col\n              :class=\"{'col-12':command === 'insert','col-lg-9':command !== 'insert','col-md-8':command !== 'insert','col-sm-12':command !== 'insert'}\">\n\n            <b-card>\n\n              <t-input v-model=\"form.productionOrderId\" hidden/>\n\n              <slot :status=\"status\">\n\n                <b-card-title v-if=\"command !== 'insert'\">Dados Básicos</b-card-title>\n\n                <slot name=\"header\" :status=\"status\"></slot>\n\n                <div v-if=\"!disableTypeOrigin\">\n\n                  <t-input v-model=\"form.typeOrigin\" :options=\"typesOrigin\" label=\"Tipo de Origem\" radio/>\n\n                  <t-input v-model=\"form.saleId\" v-show=\"form.typeOrigin === 1\" :options=\"salesOptions\" label=\"Venda\"\n                           select\n                           :required=\"form.typeOrigin === 1\"/>\n\n                </div>\n\n                <t-input-product v-if=\"!disableProduct\" v-model=\"form.productId\" required/>\n\n                <slot name=\"after-product\" :status=\"status\"></slot>\n\n                <t-input v-if=\"!disableQuantityManually\" v-model=\"form.quantityManually\" number label=\"Quantidade\"\n                         required/>\n\n                <t-input v-if=\"!disableDeadline\" v-model=\"form.deadline\" label=\"Prazo de Produção\" date required/>\n\n                <b-row>\n\n                  <t-input v-model=\"form.stockPlaceProductInsideId\" :options=\"groupStockProductLocationOptions\" select\n                           label=\"Entrada no Estoque\" cols=\"6\" required/>\n\n\n                  <t-input cols=\"6\" v-if=\"command === 'insert'\" v-model=\"form.processFlowId\" fixed\n                           :options=\"processFlowOptions\"\n                           select\n                           label=\"Fluxo será aplicado\" required/>\n\n                  <t-input cols=\"6\" v-else v-model=\"form.processFlowId\" fixed :options=\"processFlowOptions\"\n                           select\n                           label=\"Fluxo aplicado\"\n                           help=\"Caso desejar alterar o fluxo-processo será necessário excluir e inserir novamente a OP\"\n                           required/>\n\n                </b-row>\n\n\n                <slot name=\"before-fields\" :status=\"status\"></slot>\n\n                <!--ATENÇÃO NÃO ESQUECER DE UTILIZAR template #default=\"{status} para funcionamento correto-->\n                <div v-if=\"fieldsCustomizable.length > 0\">\n\n\n                  <t-page-form-field-customized\n                      ref=\"fieldsGeneral\"\n                      :command=\"command\" :status=\"status\" :user-auth=\"userAuth\"\n                      :fields-customizable=\"entityFieldCustomized('page')\"\n                      :primary-key=\"form.productId\" :foreign-key=\"currentPage.pageId\" :busy=\"!pageFormIsLoaded\"\n                      :primary-key-column=\"fieldKey\" foreign-key-column=\"pageId\"\n                  />\n\n                </div>\n\n                <slot name=\"before-note\" :status=\"status\"></slot>\n\n                <t-input v-model=\"form.note\" label=\"Observações\" max-length=\"500\" textarea/>\n\n\n                <t-form-card title=\"Ações especiais de inclusão\"\n                             v-if=\"command === 'insert' && relationAccessSubValidation('sub-production-order-actions-insert')\">\n\n                  <t-input v-model=\"form.actionInsertType\" :options=\"actionInsertTypeOptions\" label=\"Ação especial\"\n                           hide-label\n                           stacked radio/>\n\n                  <div class=\"alert alert-warning mt-1\" v-if=\"form.actionInsertType === 2\">\n\n                    <b-row>\n\n                      <t-input select\n                               v-model=\"form.goProcessFlowStepId\" :options=\"stepsAll\" cols=\"6\" label=\"Etapa desejada\"\n                               required/>\n\n                      <t-input select\n                               v-model=\"form.typeStopId\" :options=\"typeProductionReturnOptions\" cols=\"6\" label=\"Motivo\"\n                               required/>\n\n                    </b-row>\n\n\n                  </div>\n\n                  <div class=\"mt-2\">\n                    <a @click=\"form.actionInsertType = null\" v-if=\"form.actionInsertType > 0\">Limpar Ação Especial</a>\n                  </div>\n\n                </t-form-card>\n\n              </slot>\n\n            </b-card>\n\n            <b-card class=\"mt-2\" v-if=\"command !== 'insert' && pageFormIsLoaded\">\n\n              <b-card-title>Responsável Cadastro</b-card-title>\n\n              <b-row>\n\n                <t-input cols=\"6\" v-model=\"form.logControl.createdUser\" label=\"Criado por\" fixed/>\n                <t-input cols=\"6\" v-model=\"form.logControl.createdDate\" label=\"Data Criação\" fixed datetime/>\n\n              </b-row>\n\n              <b-row v-if=\"form.logControl.updatedUser !== null\">\n\n                <t-input cols=\"6\" v-model=\"form.logControl.updatedUser\" label=\"Alterado por\" fixed/>\n                <t-input cols=\"6\" v-model=\"form.logControl.updatedDate\" label=\"Data Alterado\" fixed datetime/>\n\n              </b-row>\n\n            </b-card>\n\n          </b-col>\n\n          <b-col class=\"col-lg-3 col-md-4 col-sm-12\" v-if=\"command !== 'insert'\">\n\n            <ProductionBatchFlow\n                @onGetStepCurrentId=\"setStepCurrentId\"\n                :busy=\"!pageFormIsLoaded\"\n                origin-order-form\n                :current-page=\"currentPage\"\n                :enable-change-status-operation=\"getRenderRule('sub-production-step-change-operation-status')\"\n                :production-order-batch-id=\"form.batchList[0].productionOrderBatchId\"/>\n\n          </b-col>\n\n        </b-row>\n\n\n      </template>\n\n      <template #out-of-form>\n        <slot name=\"out-of-form\"></slot>\n      </template>\n\n    </t-page-form>\n\n    <div>\n\n\n    </div>\n\n\n  </t-page>\n\n</template>\n\n<script>\n\nimport pageDefaultMixin from \"@/mixins/page/pageDefaultMixin\"\nimport pageFormMixin from \"@/mixins/page/pageFormMixin\"\nimport pageFormEmbeddableMixin from \"@/mixins/page/pageFormEmbeddableMixin\";\nimport http from \"@/services/config/http-common\";\nimport StatusProductionOrderType from \"@/model/types/modules/production/StatusProductionOrderType\";\nimport ProcessFlowService from \"@/services/modules/production/ProcessFlow.service\";\nimport StatusStepType from \"@/model/types/modules/production/StatusStepType\";\nimport FlowStepNotSequenceActionType from \"@/model/types/modules/production/FlowStepNotSequenceActionType\";\nimport ui from \"@/assets/scripts/ui\";\nimport StepActionDialog from \"@/views/modules/production/ProductionOrder/components/StepActionDialog\";\nimport StepActionType from \"@/model/types/modules/production/StepActionType\";\nimport ProductionOrderService from \"@/services/modules/production/ProductionOrder.service\";\nimport ProductionBatchFlow from \"@/views/modules/production/ProductionOrder/ProductionBatchFlow\";\n\nexport default {\n  mixins: [pageDefaultMixin, pageFormMixin, pageFormEmbeddableMixin],\n  components: {ProductionBatchFlow, StepActionDialog},\n  name: 'ProductionOrderFormUniqueBatchEmbeddable',\n\n  data() {\n    return {\n      ui,\n      StatusStepType,\n      FlowStepNotSequenceActionType,\n      StatusProductionOrderType,\n      path: \"production/order\", //Utilizar somente quando fora do padrão\n      enableGeneralFields: true,\n      fieldKey: \"productionOrderId\",\n      /*FORM DECLARADO NO MIXIM PARA VIR DE FORA COM OS CAMPOS PADRÕES JUNTOS COM OS CUSTOMIZADOS*/\n      error: {//Campos que podem receber retorno de erro do backend\n        userId: \"\",\n        name: \"\",\n      },\n      //--------------------------------------------------------------------------------------\n      //Início de campos personalizados desta tela\n      processFlowStepItems: [],\n      processFlowStepFields: [\n        {key: \"name\", label: \"Produto\"},\n        {key: \"deadlineType\", label: \"Cálculo de Prazo\"},\n        {key: \"deadlineMinutes\", label: \"Tempo estimado\"},\n        {key: \"note\", label: \"Obs.\"},\n      ],\n      typesOrigin: [{value: 1, text: \"Vendas\", disabled: true}, {value: 2, text: \"Manual\"}],\n      salesOptions: [],\n      groupStockProductLocationOptions: [],\n      prioritiesTypeOptions: [\n        {text: 'Normal', value: 1},\n        {text: 'Crítica', value: 2},\n        {text: 'Urgente', value: 3},\n      ],\n      actionInsertTypeOptions: [\n        {value: 1, text: \"Finalizar automaticamente com sucesso\"},\n        /*{ ATENÇÃO OPÇÃO DESABILIDADE POR INCONSISTENCIA, UMA VEZ QUE SOMENTE PODEREMOS ESPECIFICAR QUAL ETAPA DEPOIS DO FLUXO ESTAR DEFINIDO. DESTA FORMA PARA CORREÇÃO. DEVERÁ TER O FORMATO WIZARD, ONDE A ÚLTIMA ETAPA SÃO AÇÕES ESPECIAIS, JÁ COM AS INFORMAÇÕES DENIFICADAS, PODEREMOS ESPECIFICAR QUAL ETAPA DESEJADA\n          value: 2,\n          text: \"Especificar etapa atual inicial\"\n        }*/],\n\n      typeProductionReturnOptions: [],\n      processFlowApplicableOptions: [],\n      processFlowOptions: [],\n      modalActionType: '',\n      modalActionStepId: 0,\n      downloadPdfFinish: false,\n      reverseFinish: false,\n      stepCurrentId: 0,\n      //--------------------------------------------------------------------------------------\n    }\n  },\n  props: {\n    disableTypeOrigin: Boolean,\n    disableProduct: Boolean,\n    disableQuantityManually: Boolean,\n    disableDeadline: Boolean,\n    buttonDownloadPdf: Object\n  },\n  methods: {\n\n    mountedPrepare() {\n\n      this.mountedPrepareEmbeddable()\n    },\n    async mountedContinued() {\n\n      if (this.isUpdate() && StatusProductionOrderType.hasDone(this.form.statusOrder)) {\n        this.command = 'view'\n      }\n\n      await this.getRelationList()\n\n      await this.mountedContinuedEmbeddable() //Deixar sempre no final\n\n    },\n\n\n    //--------------------------------------------------------------------------------------\n    //Início de métodos personalizados desta tela\n    async onSubmit() {\n\n      if (this.command === 'delete') {\n        await this.sendingFormDefault()\n      } else {\n\n        //Trava para verificação de regras em objetos Embeddable\n        if (this.enabledSubmit) {\n\n          if (this.form.processFlowId === 0) {\n\n            await this.setProcessFlowByProductId()\n\n          } else {\n\n            await this.sendingFormDefault()\n\n          }\n\n        } else {\n          await this.$emit(\"beforeSubmit\")\n        }\n\n      }\n\n\n    },\n\n    async confirmReverse() {\n\n      ui.msgConfirm(this, 'ESTORNO DA FINALIZAÇÃO', '<span class=\"text-danger\">Tem certeza que deseja realizar o estorno da finalização desta Ordem de Fabricação <b>' + this.form.productionOrderCodeLabel + '</b>?<br /><br />Obs.: Irá retornar para última etapa sequêncial finalizada.</span>', async () => {\n\n        this.reverseFinish = true\n\n        await ProductionOrderService.reverse(this.form.productionOrderId).then(async () => {\n\n          await this.goPath(this.userAuth.currentPage.path, {\n            codSuccess: 100,\n            returnMessage: 'Ordem de Fabricação ' + this.form.productionOrderCodeLabel + ' foi estornada a finalização com sucesso!'\n          })\n\n        }).catch(error => ui.generalResponseError(this,error))\n\n        this.reverseFinish = false\n\n      })\n\n    },\n\n    async setProcessFlowByProductId() {\n\n      //Após validações especificas de clientes, aqui serão feitas as validações comuns a todas as contas\n\n      await ProcessFlowService.findApplicableByProductId(this.form.productId).then(async (list) => {\n\n        if (list == null || list.length === 0) {\n\n          ui.msgError(this, \"Nenhum fluxo de processo encontrado para este produto. Preencha todas as informações do produto para uma nova tentativa de encontrar o fluxo correto\")\n\n        } else if (list.length === 1) {\n\n          this.form.processFlowId = list[0].value //Primeira opção é padrão\n\n          //Continua, pois foi encontrado apenas 1 fluxo\n          await this.sendingFormDefault()\n\n        } else {\n          //Deverá escolher\n          this.processFlowApplicableOptions = list\n          this.form.processFlowId = list[0].value //Primeira opção é padrão\n\n          this.openDialogForm('modal-choice-process-flow')\n\n        }\n\n      }).catch(error => this.responseError(error))\n\n    },\n\n    async getRelationList() {\n\n      await http.list(this.path + \"/selectRelationList?processFlowId=\" + this.form.processFlowId).then((list) => {\n        this.groupStockProductLocationOptions = list.groupStockProductLocationOptions\n        this.stepsAll = list.stepsAll\n        this.typeProductionReturnOptions = list.typeProductionReturnOptions\n        this.processFlowOptions = list.processFlowOptions\n\n        //Enviar somente se for criação\n        if(this.isInsert())\n        this.$emit(\"onLastCreated\", list.lastCreated)\n\n      }).catch(error => this.responseError(error))\n    },\n\n\n    setStepCurrentId(id) {\n      this.stepCurrentId = id\n    },\n\n    openModalActionStep(type) {\n\n      if (this.stepCurrentId > 0) {\n\n        this.modalActionType = type\n        this.modalActionStepId = this.stepCurrentId\n        this.openDialogForm('modal-action-step')\n\n      } else {\n        ui.msgError(this, \"Desculpe não foi encontrada etapa atual em andamento para realização de ação especial.\")\n      }\n\n    },\n\n    onSubmitStepAction(action) {\n\n      this.goPath(this.currentPage.path, {\n        codSuccess: 100,\n        returnMessage: 'Etapa ' + action.text + ' ' + StepActionType.getReturnMessage(action.value) + ' com sucesso!'\n      })\n    },\n\n    async downloadPdf() {\n\n      this.downloadPdfFinish = true\n\n      setTimeout(async () => {\n\n        await this.downloadReport(this.buttonDownloadPdf.reportId, this.buttonDownloadPdf.primaryKey, this.buttonDownloadPdf.name)\n\n        this.downloadPdfFinish = false\n\n      }, 100)\n\n    },\n\n    async confirmReinstall(){\n\n      await ui.msgConfirm(this, 'Confirmação', \"<b>Deseja atualizar o fluxo de processos desta Ordem de Fabricação?</b><br /><br />Utilize esta opção quando atualizar o fluxo e precisar replicar nas ordens em andamento desejadas. Outra forma é utilizando a Ação em Massa, onde é possível realizar este procedimento em várias Ordens de uma só vez.\", async () => {\n\n        ProductionOrderService.reinstall(this.form.productionOrderId).then(async () => {\n\n          await this.goPath(this.userAuth.currentPage.path, {\n            codSuccess: 100,\n            returnMessage: 'Ordem de Fabricação ' + this.form.productionOrderCodeLabel + ' com fluxo atualizado com sucesso!'\n          })\n\n        }).catch(error => this.responseErrorGeneral(error))\n\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  watch: {\n    /*'form.processFlowId': {\n      handler: async function (after,before) {\n        if (after !== undefined && after > 0 && after !== before){\n          await this.getRelationList()\n        }\n      },\n      deep: true\n    }*/\n  }\n\n}\n</script>","import mod from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProductionOrderFormUniqueBatchEmbeddable.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!./ProductionOrderFormUniqueBatchEmbeddable.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProductionOrderFormUniqueBatchEmbeddable.vue?vue&type=template&id=afe7ad02&\"\nimport script from \"./ProductionOrderFormUniqueBatchEmbeddable.vue?vue&type=script&lang=js&\"\nexport * from \"./ProductionOrderFormUniqueBatchEmbeddable.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 formEmbeddableMixin from \"@/mixins/embeddable/resource/formEmbeddableMixin\";\r\nimport ProductionOrderFormUniqueBatchEmbeddable from \"@/views/modules/production/ProductionOrder/embeddable/ProductionOrderFormUniqueBatchEmbeddable\";\r\nimport ProductionOrderEntity from \"@/model/entities/modules/production/ProductionOrderEntity\";\r\n\r\n\r\nexport default {\r\n    components: {ProductionOrderFormUniqueBatchEmbeddable},\r\n    mixins: [formEmbeddableMixin],\r\n    data() {\r\n        return {\r\n            path: \"production/order\", //Override somente de front-end, por tanto irá utilizar o mesmo path que o original da página 56\r\n            form: new ProductionOrderEntity()\r\n        }\r\n\r\n    },\r\n    /*created(){\r\n        this.form =\r\n    },*/\r\n    methods: {\r\n\r\n\r\n    }\r\n}","import http from '../../config/http-common';\r\n\r\n//Usado somente se for realmente necessário algo fora do padrão GeneralCRUD.service.js\r\nconst path = \"production/lot\"\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    getLotsByDateProduced(date) {\r\n\r\n        let params = new URLSearchParams()\r\n        params.set(\"producedDate\", date)\r\n        return http.list(path + \"/selectItemsToProductionByDate\", params)\r\n    }\r\n}\r\n\r\nexport default new service();\r\n\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('t-dialog-form',{ref:\"dialog_form\",attrs:{\"generalErrors\":_vm.generalErrors,\"title\":_vm.title,\"ok-text\":_vm.okText,\"id\":_vm.id,\"command\":_vm.command,\"status\":_vm.status,\"variant\":_vm.variant},on:{\"show\":_vm.showModal,\"hidden\":_vm.resetModal,\"onSubmit\":_vm.onSubmit}},[_c('b-card-title',[_vm._v(\"Informe o novo código desejado\")]),_c('t-input',{attrs:{\"required\":\"\",\"label\":\"Cód. de Fabricação\"},model:{value:(_vm.form.productionOrderCodeLabel),callback:function ($$v) {_vm.$set(_vm.form, \"productionOrderCodeLabel\", $$v)},expression:\"form.productionOrderCodeLabel\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n\n  <t-dialog-form :generalErrors=\"generalErrors\" :title=\"title\" :ok-text=\"okText\" @show=\"showModal\" @hidden=\"resetModal\"\n                 :id=\"id\" :command=\"command\" :status=\"status\" :variant=\"variant\"\n                 ref=\"dialog_form\" @onSubmit=\"onSubmit\">\n\n\n    <b-card-title>Informe o novo código desejado</b-card-title>\n\n    <t-input v-model=\"form.productionOrderCodeLabel\" required  label=\"Cód. de Fabricação\"/>\n\n\n  </t-dialog-form>\n\n</template>\n<script>\nimport tDialogForm from \"@/components/template/dialog/t-dialog-form\";\nimport pageDialogFormMixin from \"@/mixins/page/pageDialogFormMixin\";\nimport ProductionOrderService from \"@/services/modules/production/ProductionOrder.service\";\n\n\nexport default {\n  name: \"ProductionOrderChangeCodeLabelDialog\",\n  components: {tDialogForm},\n  mixins: [pageDialogFormMixin],\n  data() {\n    return {\n      id: \"modal-production-order-change-code-label\",\n      title: \"Alteração de Código de Produção\",\n      okText: \"Alterar Código\",\n      form: {\n        productionOrderId: 0,\n        productionOrderCodeLabel: \"\",\n      },\n      error: {//Campos que podem receber retorno de erro do backend\n        name: \"\",\n      },\n      variant: \"primary\",\n\n    }\n  },\n  props: {\n    productionOrderCodeLabel: {\n      type: String,\n      required: true,\n    },\n    foreignKeyColumn: {/*Declarado sempre pontualmente em cada Dialog, pois poderá ser fixo ou vindo de props*/\n      type: String,\n      default: \"\",\n      required: false,\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      //Limpa os campos\n      this.resetModal()\n\n      this.form.productionOrderId = this.primaryKey\n      this.form.productionOrderCodeLabel = this.productionOrderCodeLabel\n\n    },\n\n    async onSubmit() {\n\n      this.status = \"sending\"\n\n      await ProductionOrderService.changeCodeLabel(this.form).then(() => {\n\n        this.itemInserted.value = this.primaryKey\n        this.itemInserted.text = this.productionOrderCodeLabel\n\n        this.successInsert()\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!./ProductionOrderChangeCodeLabelDialog.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!./ProductionOrderChangeCodeLabelDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProductionOrderChangeCodeLabelDialog.vue?vue&type=template&id=2ae4b002&\"\nimport script from \"./ProductionOrderChangeCodeLabelDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./ProductionOrderChangeCodeLabelDialog.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  <!--  onMountedDefault SEM PARENTESES POIS IRÁ ENVIAR PARÂMETRO DINAMICO  -->\n  <ProductionOrderFormUniqueBatchEmbeddable\n      @mounted=\"onMountedForm\"\n      @beforeSubmit=\"onBeforeSubmit\"\n      @reload=\"reload()\"\n      @onLastCreated=\"onLastCreated\"\n      ref=\"embeddable\"\n      v-model=\"form\"\n      v-if=\"!mountAgain\"\n      :enabled-submit=\"enabledSubmit\"\n      :button-download-pdf=\"{reportId:this.form.batchList[0].pdfReportId,primaryKey: this.form.productionOrderId, name:this.form.productionOrderCodeLabel}\"\n      disable-product\n      disable-quantity-manually\n      disable-deadline\n      disable-type-origin>\n\n    <template #title-buttons>\n\n      <ProductionOrderChangeCodeLabelDialog\n          @onSubmit=\"onSubmitChangeCode\"\n          :primary-key=\"form.productionOrderId\" :production-order-code-label=\"form.productionOrderCodeLabel\"/>\n\n      <PrintLabelDialog\n          @onSubmit=\"onSubmitPrint\" :label-id=\"1\"\n          :header-title=\"'Ordem de Fabricação: ' + form.productionOrderCodeLabel\"\n          :foreignKey=\"form.productionOrderId\" foreign-key-column=\"productionOrderId\"/>\n\n      <t-button @click=\"openDialogForm('modal-print-label-1')\" v-if=\"command !== 'insert'\">\n        <b-icon-printer></b-icon-printer>\n        Etiqueta\n      </t-button>\n\n\n    </template>\n\n    <template #header>\n\n      <b-row v-if=\"command==='insert' && !relationAccessSubValidation('sub-production-order-change-code')\">\n\n\n        <t-input v-model=\"form.productionOrderCodeLabel\"\n                 label=\"Cód. Produção\" fixed\n                 cols=\"6\"\n                 highlight/>\n\n        <t-input\n            @change=\"setGroupProductByLot()\" v-model=\"form.batchList[0].lotId\"\n            :options=\"lotOptions\"\n            select\n            cols=\"6\"\n            label=\"Lote\" required/>\n\n      </b-row>\n\n      <b-row v-else>\n\n        <b-col cols=\"6\">\n\n          <div class=\"d-flex\" style=\"justify-content: space-between\">\n\n            <div>Cód. Produção</div>\n\n            <a @click=\"editCodeLabel\" v-if=\"relationAccessSubValidation('sub-production-order-change-code')\">Alterar\n              código?</a>\n\n          </div>\n\n          <t-input not-row v-model=\"form.productionOrderCodeLabel\"\n                   label=\"Cód. Produção\" :required=\"!inputFixedCodeLabel\" hide-label :fixed=\"inputFixedCodeLabel\"\n                   highlight/>\n\n        </b-col>\n\n        <t-input cols=\"6\" @change=\"setGroupProductByLot()\" v-model=\"form.batchList[0].lotId\" :options=\"lotOptions\"\n                 select\n                 label=\"Lote\" required/>\n\n\n      </b-row>\n\n      <b-row>\n\n\n        <t-input cols=\"6\" v-model=\"form.batchList[0].producedWeight\" required number\n                 label=\"Peso Total (Kg)\" @focusout=\"validatedProducedWeight()\"\n                 help=\"Peso Total do Bag ou Caixa de EVA\" :small=\"msgProducedWeight\"/>\n\n\n        <t-input cols=\"6\" v-model=\"form.issueDate\"\n                 required\n                 :disabled=\"!relationAccessSubValidation('sub-production-order-change-issue-date')\"\n                 @change=\"getLotByIssueDate\" date label=\"Data Produzido\"/>\n\n      </b-row>\n\n      <b-row>\n\n        <!-- Remove a opção de escolha da unide de Sacaria individal, pois a mesma não poderá ser produzida -->\n\n        <t-input cols=\"4\" v-model=\"productFind.unitId\" @change=\"checkProducedWeight()\" :fixed=\"isUpdate()\"\n                 :options=\"unitOptions\"\n                 select\n                 help=\"Embalagem não poderá ser trocada após a inclusão, devido a consistência no fluxo de processos\"\n                 label=\"Embalagem\" required/>\n\n        <t-input cols=\"4\" v-model=\"productFind.modelId\" :fixed=\"isUpdate()\" :options=\"modelOptions\"\n                 select help=\"Tipo não poderá ser trocada após a inclusão, devido a consistência no fluxo de processos\"\n                 label=\"Tipo\" required/>\n\n        <t-input cols=\"4\" v-model=\"productFind.materialId\" @change=\"onChangeMaterial\" :fixed=\"isUpdate()\"\n                 :options=\"materialOptions\"\n                 select\n                 help=\"Material não poderá ser trocada após a inclusão, devido a consistência no fluxo de processos\"\n                 label=\"Material\" required/>\n\n\n      </b-row>\n\n      <t-input v-model=\"form.batchList[0].typeNonConformanceId\" :options=\"typeNonConformanceOptions\"\n               select help=\"Indique se existe alguma restrição na ordem de fabricação\"\n               :required=\"productFind.materialId === materialOffSpec\"\n               label=\"Tipo Não Conformidade\"/>\n\n\n    </template>\n\n  </ProductionOrderFormUniqueBatchEmbeddable>\n\n\n</template>\n<script>\nimport productionOrderFormEmbeddableMixin from \"@/mixins/embeddable/production/productionOrderFormEmbeddableMixin\";\n\nimport TypeNonConformanceService from \"@/services/modules/production/TypeNonConformance.service\";\nimport UnitService from \"@/services/modules/product/Unit.service\";\nimport ModelService from \"@/services/modules/product/Model.service\";\nimport MaterialService from \"@/services/modules/product/Material.service\";\nimport ProductService from \"@/services/modules/product/Product.service\";\nimport ProductionOrderService from \"@/services/modules/production/ProductionOrder.service\";\nimport LotService from \"@/services/modules/production/Lot.service\";\nimport ui from \"@/assets/scripts/ui\";\nimport PrintLabelDialog from \"@/views/modules/general/PrintLabelDialog\";\nimport ProductionOrderChangeCodeLabelDialog\n  from \"@/views/modules/production/ProductionOrder/dialog/ProductionOrderChangeCodeLabelDialog\";\nimport StatusProductionOrderType from \"@/model/types/modules/production/StatusProductionOrderType\";\n\n\nexport default {\n  name: 'PolimixProductionOrderForm',\n  components: {PrintLabelDialog, ProductionOrderChangeCodeLabelDialog},\n  mixins: [productionOrderFormEmbeddableMixin],\n  data() {\n    return {\n      StatusProductionOrderType,\n      //--------------------------------------------------------------------------------------\n      //Início de campos personalizados desta tela\n      inputFixedCodeLabel: true,\n      productFind: { /*Campos utilizados para buscar produto*/\n        groupProductId: 0,\n        modelId: 0,\n        unitId: 0,\n        materialId: 0,\n        groupProduct: \"\",\n      },\n      lotList: [],//Listagem com todos os atributos necessários\n      lotOptions: [], //Listagem para select\n      modelOptions: [],\n      unitOptions: [],\n      materialOptions: [],\n      typeNonConformanceOptions: [],\n      materialOffSpec: 17, //Id do material considerado off-spec na Polimix\n      stockOffSpec: 6, //id stockPlaceProductInsideId para off-spec na Polimix\n      msgProducedWeight: \"\",\n      validationProducedWeightMin: 0,\n      validationProducedWeightMax: 0,\n      //--------------------------------------------------------------------------------------\n    }\n  },\n  methods: {\n\n    mountedPrepare() {\n\n    },\n\n    async mountedContinued() {\n\n      //Informações padrões de inclusão, porém poderá haver mudanças depois lendo a última OF inserida\n      if (this.isInsert()) {\n\n        this.form.companyId = 2\n        this.form.issueDate = ui.currentDate();\n        this.form.stockPlaceProductInsideId = 1\n        this.form.batchList[0].producedQuantity = 1\n        this.setFieldValue(\"page\", 120, ui.currentHour())\n\n      } else {\n\n        /*Para Polimix deverá setar os campos abaixo pelo produto*/\n        if (this.form.productId > 0) {\n          await this.getResumeProduct(this.form.productId);\n        }\n\n      }\n\n      await TypeNonConformanceService.selectList().then((response) => {\n        this.typeNonConformanceOptions = response\n      }).catch(error => this.responseError(error))\n\n      await UnitService.selectList().then((response) => {\n        this.unitOptions = response\n      }).catch(error => this.responseError(error))\n\n      await ModelService.selectList().then((response) => {\n        this.modelOptions = response\n      }).catch(error => this.responseError(error))\n\n      await MaterialService.selectList().then((response) => {\n        this.materialOptions = response\n      }).catch(error => this.responseError(error))\n\n      await this.getLotByIssueDate()\n\n\n    },\n    //--------------------------------------------------------------------------------------\n    //Início de métodos personalizados desta tela\n    async getResumeProduct(productId) {\n\n      await ProductService.getResume('id', productId)\n          .then(resume => {\n\n            this.productFind.groupProductId = resume.groupProductId\n            this.productFind.modelId = resume.modelId\n            this.productFind.unitId = resume.unitId\n            this.productFind.modelId = resume.modelId\n            this.productFind.materialId = resume.materialId\n\n            this.checkProducedWeight()\n\n          })\n\n    },\n\n    async onLastCreated(v) {\n\n      if (this.isInsert()) {\n\n        if (v !== null) {\n\n          //Setar valores conforme último lote lançado que não implequem em valores novos\n          if (v.productId !== null && v.productId > 0)\n            await this.getResumeProduct(v.productId)\n\n\n          //Último produto inserido do tipo off-spec, por tanto já deixará setado o local de estoque para off-spec id 6\n          if (this.productFind.materialId === this.materialOffSpec) {\n            this.form.stockPlaceProductInsideId = this.stockOffSpec\n          }\n\n\n          if (v.fieldsCustomized !== null && v.fieldsCustomized.length > 0) {\n\n            //Silo Pó\n            const fieldSiloPo = v.fieldsCustomized.find(item => item.fieldId === 121)\n            const fieldSiloPeletizado = v.fieldsCustomized.find(item => item.fieldId === 122)\n\n            if (fieldSiloPo !== null && fieldSiloPo !== undefined)\n              this.setFieldValue(\"page\", 121, fieldSiloPo.integerValue)\n\n            if (fieldSiloPeletizado !== null && fieldSiloPeletizado !== undefined)\n              this.setFieldValue(\"page\", 122, fieldSiloPeletizado.integerValue)\n\n          }\n\n        }\n\n      }\n\n\n    },\n\n    editCodeLabel() {\n\n      if (this.relationAccessSubValidation('sub-production-order-change-code')) {\n        this.inputFixedCodeLabel = !this.inputFixedCodeLabel\n      }\n\n    },\n\n    async onSubmitPrint() {\n\n      await this.goPath(this.userAuth.currentPage.path, {\n        codSuccess: 100,\n        returnMessage: 'Impressão enviada com sucesso!'\n      })\n\n    },\n\n    async onSubmitChangeCode() {\n\n      await this.goPath(this.userAuth.currentPage.path, {\n        codSuccess: 100,\n        returnMessage: 'Código alterado com sucesso!'\n      })\n\n    },\n    async checkConsistenceLot() {\n\n      if (this.isDelete()) {\n        return true\n      } else {\n\n        let success = false\n\n\n        if (this.productFind.groupProductId === 0) {\n          ui.msgError(this, \"Verifique a seleção do lote se está correta e todas as informações foram preenchidas antes de continuar\")\n        } else {\n\n          await ProductionOrderService.consistenceLotByIssueDateAndGroupProduct(this.form.batchList[0].lotId, this.form.issueDate, this.productFind.groupProductId).then(() => {\n\n            //IMPLEMENTAR MÉTODO NO BACK-END\n\n            success = true\n          }).catch(error => this.responseErrorGeneral(error))\n        }\n\n\n        return success\n\n      }\n\n    },\n    async onBeforeSubmit() {\n\n      if (this.command !== 'delete') {\n\n        const checkProduct = await this.findProductByPolimixParams()\n        const checkLot = await this.checkConsistenceLot()\n\n        /*PRODUTOS DO TIPO SACARIA, SERÃO ALTERADOS PARA 20 UNIDADES AUTOMATICAMENTE*/\n        if (this.form.productId === 61 || this.form.productId === 65 || this.form.productId === 103 || this.form.productId === 107) {\n          this.form.batchList[0].producedQuantity = 20\n        }\n\n        //Libera a continuidade sem nenhuma condição especial\n        if (checkProduct && checkLot) {\n          this.enabledSubmit = true\n        }\n\n      } else {\n        this.enabledSubmit = true\n      }\n\n\n    },\n    async getLotByIssueDate() {\n\n\n      await LotService.getLotsByDateProduced(this.form.issueDate).then((response) => {\n\n        //Listagem com todos os dados necessários para montagem\n        this.lotList = response\n        this.lotOptions = []\n\n        if (this.lotList.length === 0) {\n          ui.msgError(this, \"Nenhum lote programado para a data atual informe a Qualidade para possibilitar a inclusão de novos bags\", () => {\n            this.goPath(this.userAuth.currentPage.path)\n          })\n        }\n\n        //Monstagem das options para escolha do lote\n        for (const item of this.lotList) {\n\n          const lot = {\n            value: item.lotId,\n            text: item.lotCodeLabel,\n          }\n\n          this.lotOptions.push(lot)\n\n        }\n\n        if (this.lotList.length === 1) {\n          this.setGroupProductByLot(this.lotList[0].lotId)\n        }\n\n\n      }).catch(error => this.responseError(error))\n\n    },\n\n    setGroupProductByLot() {\n\n      const lotId = this.form.batchList[0].lotId\n\n      this.productFind.groupProductId = 0\n      this.productFind.groupProduct = \"\"\n\n\n      if (lotId > 0) {\n\n        const group = this.lotList.find(a => a.lotId === lotId)\n\n        if (group !== undefined) {\n          this.productFind.groupProductId = group.groupProductId\n          this.productFind.groupProduct = group.groupProduct\n        }\n\n      }\n\n    },\n\n    async findProductByPolimixParams() {\n\n      let success = false\n      let params = new URLSearchParams()\n      params.set(\"groupProductId\", this.productFind.groupProductId)\n      params.set(\"unitId\", this.productFind.unitId)\n      params.set(\"modelId\", this.productFind.modelId)\n      params.set(\"materialId\", this.productFind.materialId)\n\n      await ProductService.selectList(params).then((options) => {\n\n        if (options !== null) {\n\n          if (options.length === 1) {\n            this.form.productId = options[0].value\n            success = true\n          } else if (options.length === 0) {\n            ui.msgError(this, \"Produto relacionado ao grupo, unidade de medida e embalagem (un. medida) não foi encontrado e não será possível continuar. Verifique com a Qualidade se algum modelo/produto foram alterados\")\n          } else {\n            ui.msgError(this, \"Inconsistência com mais que um produto relacionado ao grupo, unidade de medida e embalagem (un. medida) e não será possível continuar. Verifique com a Qualidade se algum modelo/produto foram alterados\")\n          }\n        }\n\n      }).catch(error => this.responseError(error))\n\n      return success\n\n    },\n\n    async onChangeMaterial(value) {\n      if (value === this.materialOffSpec) {\n        this.form.stockPlaceProductInsideId = this.stockOffSpec //Armazenamento de off-spec\n      }\n\n    },\n\n    validatedProducedWeight() {\n\n      const producedWeight = this.form.batchList[0].producedWeight\n\n      if (producedWeight > 0 && this.validationProducedWeightMin > 0 && this.validationProducedWeightMax > 0 && (producedWeight < this.validationProducedWeightMin || producedWeight > this.validationProducedWeightMax)) {\n        ui.msgError(this, 'Peso total informado incorreto: <br /><b>' + this.msgProducedWeight + '</b><br /><br />Você poderá continuar, porém verifique se tem certeza antes.', null, 'Peso total fora do padrão.')\n      }\n\n    },\n\n    checkProducedWeight() {\n\n      this.msgProducedWeight = \"\"\n      this.validationProducedWeightMin = 0\n      this.validationProducedWeightMax = 0\n\n      console.log(this.productFind.modelId, this.productFind.unitId)\n\n      if (this.productFind.modelId === 67) {\n        //Pó\n\n        this.msgProducedWeight = \"Pó\"\n\n        if (this.productFind.unitId === 6) {\n          //Big Bag\n          this.msgProducedWeight = \"Peso total para Big Bag \" + this.msgProducedWeight + \": 100 à 700 (Kg)\"\n          this.validationProducedWeightMin = 100\n          this.validationProducedWeightMax = 700\n        } else if (this.productFind.unitId === 10) {\n          //Mini Bag\n          this.msgProducedWeight = \"Peso total para Mini Bag \" + this.msgProducedWeight + \": 100 à 400 (Kg)\"\n          this.validationProducedWeightMin = 100\n          this.validationProducedWeightMax = 400\n        } else if (this.productFind.unitId === 11) {\n          //Caixa de EVA 5Kg\n          this.msgProducedWeight = \"Peso total para EVA 05Kg \" + this.msgProducedWeight + \": 200 (Kg)\"\n          this.validationProducedWeightMin = 200\n          this.validationProducedWeightMax = 200\n        } else if (this.productFind.unitId === 9) {\n          //Caixa de EVA 10Kg\n          this.msgProducedWeight = \"Peso total para EVA 10Kg \" + this.msgProducedWeight + \": 200 (Kg)\"\n          this.validationProducedWeightMin = 200\n          this.validationProducedWeightMax = 200\n        } else if (this.productFind.unitId === 19) {\n          //Caixa de EVA 11Kg\n          this.msgProducedWeight = \"Peso total para EVA 11Kg \" + this.msgProducedWeight + \": 220 (Kg)\"\n          this.validationProducedWeightMin = 220\n          this.validationProducedWeightMax = 220\n        } else if (this.productFind.unitId === 7) {\n          //Sacaria de 25Kg\n          this.msgProducedWeight = \"Peso total para Sacaria 25Kg \" + this.msgProducedWeight + \": 500 (Kg)\"\n          this.validationProducedWeightMin = 500\n          this.validationProducedWeightMax = 500\n        } else {\n          this.msgProducedWeight = \"\"\n        }\n\n      } else if (this.productFind.modelId === 72) {\n        //Peletizado\n\n        this.msgProducedWeight = \"Peletizado\"\n\n        if (this.productFind.unitId === 6) {\n          //Big Bag\n          this.msgProducedWeight = \"Peso total para Big Bag \" + this.msgProducedWeight + \": 600 à 1300 (Kg)\"\n          this.validationProducedWeightMin = 600\n          this.validationProducedWeightMax = 1300\n        } else if (this.productFind.unitId === 10) {\n          //Mini Bag\n          this.msgProducedWeight = \"Peso total para Mini Bag \" + this.msgProducedWeight + \": 100 à 700 (Kg)\"\n          this.validationProducedWeightMin = 100\n          this.validationProducedWeightMax = 700\n        } else if (this.productFind.unitId === 11) {\n          //Caixa de EVA 5Kg\n          this.msgProducedWeight = \"Peso total para EVA 05Kg \" + this.msgProducedWeight + \": 200 (Kg)\"\n          this.validationProducedWeightMin = 200\n          this.validationProducedWeightMax = 200\n        } else if (this.productFind.unitId === 9) {\n          //Caixa de EVA 10Kg\n          this.msgProducedWeight = \"Peso total para EVA 10Kg \" + this.msgProducedWeight + \": 200 (Kg)\"\n          this.validationProducedWeightMin = 200\n          this.validationProducedWeightMax = 200\n        } else if (this.productFind.unitId === 19) {\n          //Caixa de EVA 11Kg\n          this.msgProducedWeight = \"Peso total para EVA 11Kg \" + this.msgProducedWeight + \": 220 (Kg)\"\n          this.validationProducedWeightMin = 220\n          this.validationProducedWeightMax = 220\n        } else if (this.productFind.unitId === 7) {\n          //Sacaria de 25Kg\n          this.msgProducedWeight = \"Peso total para Sacaria 25Kg \" + this.msgProducedWeight + \": 500 (Kg)\"\n          this.validationProducedWeightMin = 500\n          this.validationProducedWeightMax = 500\n        } else {\n          this.msgProducedWeight = \"\"\n        }\n\n      }\n\n    },\n\n    //--------------------------------------------------------------------------------------\n\n  },\n  async mounted() {\n\n    this.mountedPrepare()\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!./PolimixProductionOrderForm.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!./PolimixProductionOrderForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PolimixProductionOrderForm.vue?vue&type=template&id=753efe34&\"\nimport script from \"./PolimixProductionOrderForm.vue?vue&type=script&lang=js&\"\nexport * from \"./PolimixProductionOrderForm.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}