{"version":3,"sources":["webpack:///./src/views/modules/production/Lot/LotForm.vue?1be2","webpack:///src/views/modules/production/Lot/LotForm.vue","webpack:///./src/views/modules/production/Lot/LotForm.vue?edf9","webpack:///./src/views/modules/production/Lot/LotForm.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","currentPage","singularTitle","t","pageTitle","command","status","generalErrors","checkErrorsComponent","name","pageFormIsLoaded","on","onSubmit","scopedSlots","_u","key","fn","ref","model","value","form","callback","$$v","$set","expression","groupProductOptions","error","groupProductId","userAuth","entityFieldCustomized","lotId","pageId","fieldKey","staticRenderFns","mixins","pageDefaultMixin","data","path","genKey","enableGeneralFields","lotCodeLabel","producedDate","producedDateEnd","note","methods","mountedPrepare","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACA,EAAG,cAAc,CAACE,MAAM,CAAC,KAAO,GAAG,cAAcN,EAAIO,YAAYC,cAAc,MAAQR,EAAIS,EAAE,WAAWT,EAAIO,YAAYG,UAAU,QAAUV,EAAIW,QAAQ,OAASX,EAAIY,OAAO,cAAgBZ,EAAIa,cAAc,qBAAqBb,EAAIc,qBAAqB,gBAAgBd,EAAIS,EAAE,gBAAgB,aAAaT,EAAIO,YAAYQ,KAAK,MAAQf,EAAIgB,kBAAkBC,GAAG,CAAC,SAAWjB,EAAIkB,UAAUC,YAAYnB,EAAIoB,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,SAASC,GAC3hB,IAAIX,EAASW,EAAIX,OACjB,MAAO,CAACR,EAAG,UAAU,CAACE,MAAM,CAAC,OAAS,IAAIkB,MAAM,CAACC,MAAOzB,EAAI0B,KAAU,MAAEC,SAAS,SAAUC,GAAM5B,EAAI6B,KAAK7B,EAAI0B,KAAM,QAASE,IAAME,WAAW,gBAAgB1B,EAAG,QAAQ,CAACA,EAAG,UAAU,CAACE,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AAC,MAAQ,cAAc,aAAa,MAAM,SAAW,IAAIkB,MAAM,CAACC,MAAOzB,EAAI0B,KAAS,KAAEC,SAAS,SAAUC,GAAM5B,EAAI6B,KAAK7B,EAAI0B,KAAM,OAAQE,IAAME,WAAW,eAAe1B,EAAG,iBAAiB,CAACoB,MAAM,CAACC,MAAOzB,EAAI0B,KAAW,OAAEC,SAAS,SAAUC,GAAM5B,EAAI6B,KAAK7B,EAAI0B,KAAM,SAAUE,IAAME,WAAW,yBAAyB,IAC5iES,EAAkB,G,4DCyDtB,GACEC,OAAQ,CAACC,EAAX,aACE1B,KAAM,UACN2B,KAHF,WAII,MAAO,CACLC,KAAM,GACNC,QAAQ,EACRC,qBAAqB,EACrBP,SAAU,QACVZ,KAAM,CACJU,MAAO,EACPU,aAAc,GACdb,eAAgB,EAChBc,aAAc,GACdC,gBAAiB,GACjBC,KAAM,GACNrC,OAAQ,GAEVoB,MAAO,CACLjB,KAAM,IAIRgB,oBAAqB,KAIzBmB,QAAS,CAEPC,eAFJ,aAMI,iBANJ,WAMA,wKAEA,+CACA,2BACA,gDAJA,OAMA,sBANA,8CASI,SAfJ,WAeA,wKAEA,sBAFA,+CAYE,QAtDF,WAsDA,+JAEA,mBAFA,SAIA,qBAJA,uBAMA,qBANA,+CClH8X,I,YCO1XC,EAAY,eACd,EACArD,EACAwC,GACA,EACA,KACA,KACA,MAIa,aAAAa,E","file":"js/chunk-2d2169c7.6adb887a.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('t-page',[_c('t-page-form',{attrs:{\"card\":\"\",\"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:\"default\",fn:function(ref){\nvar status = ref.status;\nreturn [_c('t-input',{attrs:{\"hidden\":\"\"},model:{value:(_vm.form.lotId),callback:function ($$v) {_vm.$set(_vm.form, \"lotId\", $$v)},expression:\"form.lotId\"}}),_c('b-row',[_c('t-input',{attrs:{\"cols\":\"4\",\"fixed\":\"\",\"label\":\"Código do Lote\",\"help\":\"Código gerado automáticamente após a inclusão\"},model:{value:(_vm.form.lotCodeLabel),callback:function ($$v) {_vm.$set(_vm.form, \"lotCodeLabel\", $$v)},expression:\"form.lotCodeLabel\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"fixed-except-insert\":\"\",\"date\":\"\",\"date-now\":\"\",\"required\":\"\",\"label\":\"Data de Produção Inicial\"},model:{value:(_vm.form.producedDate),callback:function ($$v) {_vm.$set(_vm.form, \"producedDate\", $$v)},expression:\"form.producedDate\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"fixed-except-insert\":\"\",\"date\":\"\",\"date-now\":\"\",\"required\":\"\",\"label\":\"Data de Produção Final\"},model:{value:(_vm.form.producedDateEnd),callback:function ($$v) {_vm.$set(_vm.form, \"producedDateEnd\", $$v)},expression:\"form.producedDateEnd\"}})],1),_c('t-input',{attrs:{\"options\":_vm.groupProductOptions,\"add-error\":_vm.error.groupProductId,\"label\":\"Restringir para grupo de produtos\",\"help\":\"Selecione um grupo de produtos se desejar restringir este lote para ser vinculado somente podendo ser utilizado em um grupo específico.\",\"select\":\"\"},model:{value:(_vm.form.groupProductId),callback:function ($$v) {_vm.$set(_vm.form, \"groupProductId\", $$v)},expression:\"form.groupProductId\"}}),_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.lotId,\"foreign-key\":_vm.currentPage.pageId,\"busy\":!_vm.pageFormIsLoaded,\"primary-key-column\":_vm.fieldKey,\"foreign-key-column\":\"pageId\"}}),_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)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n\n  <t-page>\n\n    <t-page-form card :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      <template #default=\"{status}\">\n\n        <t-input v-model=\"form.lotId\" hidden/>\n\n        <b-row>\n\n          <t-input v-model=\"form.lotCodeLabel\" cols=\"4\" fixed label=\"Código do Lote\"\n                   help=\"Código gerado automáticamente após a inclusão\"/>\n\n          <t-input v-model=\"form.producedDate\" cols=\"4\" fixed-except-insert date date-now required label=\"Data de Produção Inicial\"/>\n\n          <t-input v-model=\"form.producedDateEnd\" cols=\"4\" fixed-except-insert date date-now required label=\"Data de Produção Final\"/>\n\n        </b-row>\n\n        <t-input v-model=\"form.groupProductId\"\n                 :options=\"groupProductOptions\"\n                 :add-error=\"error.groupProductId\"\n                 label=\"Restringir para grupo de produtos\"\n                 help=\"Selecione um grupo de produtos se desejar restringir este lote para ser vinculado somente podendo ser utilizado em um grupo específico.\"\n                 select/>\n\n\n        <!--ATENÇÃO NÃO ESQUECER DE UTILIZAR template #default=\"{status} para funcionamento correto-->\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.lotId\" :foreign-key=\"currentPage.pageId\" :busy=\"!pageFormIsLoaded\"\n            :primary-key-column=\"fieldKey\" foreign-key-column=\"pageId\"\n        />\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      </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 groupProductService from \"@/services/modules/product/GroupProduct.service\";\n\nexport default {\n  mixins: [pageDefaultMixin, pageFormMixin],\n  name: 'LotForm',\n  data() {\n    return {\n      path: \"\", //Utilizar somente quando fora do padrão\n      genKey: false, //Utilizar quando desejar gerar chave temporária\n      enableGeneralFields: true,\n      fieldKey: \"lotId\",\n      form: {\n        lotId: 0,\n        lotCodeLabel: \"\",\n        groupProductId: 0,\n        producedDate: \"\",\n        producedDateEnd: \"\",\n        note: \"\",\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      groupProductOptions: [],\n      //--------------------------------------------------------------------------------------\n    }\n  },\n  methods: {\n\n    mountedPrepare() {\n\n\n    },\n    async mountedContinued() {\n\n      await groupProductService.selectList(\"grouped\").then((list) => {\n        this.groupProductOptions = list\n      }).catch(error => this.responseError(error))\n\n      this.pageFormIsLoaded = true\n\n    },\n    async onSubmit() {\n\n      await this.setSendingDefault()\n\n    },\n    //--------------------------------------------------------------------------------------\n    //Início de métodos personalizados desta tela\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!./LotForm.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!./LotForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./LotForm.vue?vue&type=template&id=1adbf57a&\"\nimport script from \"./LotForm.vue?vue&type=script&lang=js&\"\nexport * from \"./LotForm.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":""}