%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/projetos/radar.ongrace.com.br/
Upload File :
Create Path :
Current File : /var/www/projetos/radar.ongrace.com.br/9.js.map

{"version":3,"sources":["webpack:///./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack:///./resources/js/components/Products.vue?197d","webpack:///./resources/js/components/Products.vue?3d1f","webpack:///./resources/js/components/Products.vue?24bf","webpack:///./resources/js/components/Products.vue?f29f","webpack:///./resources/js/components/Products.vue?addd","webpack:///resources/js/components/Products.vue","webpack:///./resources/js/components/Products.vue"],"names":["normalizeComponent","scriptExports","render","staticRenderFns","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","this","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","call","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","exports","content","module","i","transform","undefined","locals","push","component","_vm","_h","$createElement","_c","_self","staticClass","domProps","_s","productList","total","_v","$tc","attrs","on","getProducts","model","value","filters","callback","$$v","$set","expression","_l","store","company","id","name","brand","staticStyle","directives","rawName","$t","$event","type","indexOf","_k","keyCode","key","apply","arguments","target","composing","q","load","_m","addNew","data","page","sortField","sortOrder","onPageChange","onSort","scopedSlots","_u","fn","props","row","productable","_f","avg_fee","feeCheck","transactionsLink","fee","can","editProduct","_e","deleteProduct","modalNewActive","productForm","errors","has","get","submitForm"],"mappings":"wFAMe,SAASA,EACtBC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,GAGA,IAqBIC,EArBAC,EAAmC,mBAAlBT,EACjBA,EAAcS,QACdT,EAsDJ,GAnDIC,IACFQ,EAAQR,OAASA,EACjBQ,EAAQP,gBAAkBA,EAC1BO,EAAQC,WAAY,GAIlBP,IACFM,EAAQE,YAAa,GAInBN,IACFI,EAAQG,SAAW,UAAYP,GAI7BC,GACFE,EAAO,SAAUK,IAEfA,EACEA,GACCC,KAAKC,QAAU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C,EAAnC9B,KAA0C+B,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAACE,YAAY,iBAAiB,CAACF,EAAG,IAAI,CAACE,YAAY,qBGW5U,EACA,KACA,WACA,MAIa,UAAAN,E","file":"9.js","sourcesContent":["/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n  scriptExports,\n  render,\n  staticRenderFns,\n  functionalTemplate,\n  injectStyles,\n  scopeId,\n  moduleIdentifier, /* server only */\n  shadowMode /* vue-cli only */\n) {\n  // Vue.extend constructor export interop\n  var options = typeof scriptExports === 'function'\n    ? scriptExports.options\n    : scriptExports\n\n  // render functions\n  if (render) {\n    options.render = render\n    options.staticRenderFns = staticRenderFns\n    options._compiled = true\n  }\n\n  // functional template\n  if (functionalTemplate) {\n    options.functional = true\n  }\n\n  // scopedId\n  if (scopeId) {\n    options._scopeId = 'data-v-' + scopeId\n  }\n\n  var hook\n  if (moduleIdentifier) { // server build\n    hook = function (context) {\n      // 2.3 injection\n      context =\n        context || // cached call\n        (this.$vnode && this.$vnode.ssrContext) || // stateful\n        (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n      // 2.2 with runInNewContext: true\n      if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n        context = __VUE_SSR_CONTEXT__\n      }\n      // inject component styles\n      if (injectStyles) {\n        injectStyles.call(this, context)\n      }\n      // register component module identifier for async chunk inferrence\n      if (context && context._registeredComponents) {\n        context._registeredComponents.add(moduleIdentifier)\n      }\n    }\n    // used by ssr in case component is cached and beforeCreate\n    // never gets called\n    options._ssrRegister = hook\n  } else if (injectStyles) {\n    hook = shadowMode\n      ? function () {\n        injectStyles.call(\n          this,\n          (options.functional ? this.parent : this).$root.$options.shadowRoot\n        )\n      }\n      : injectStyles\n  }\n\n  if (hook) {\n    if (options.functional) {\n      // for template-only hot-reload because in that case the render fn doesn't\n      // go through the normalizer\n      options._injectStyles = hook\n      // register for functional component in vue file\n      var originalRender = options.render\n      options.render = function renderWithStyleInjection (h, context) {\n        hook.call(context)\n        return originalRender(h, context)\n      }\n    } else {\n      // inject component registration as beforeCreate hook\n      var existing = options.beforeCreate\n      options.beforeCreate = existing\n        ? [].concat(existing, hook)\n        : [hook]\n    }\n  }\n\n  return {\n    exports: scriptExports,\n    options: options\n  }\n}\n","\nvar content = require(\"!!../../../node_modules/css-loader/index.js??ref--6-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-2!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Products.vue?vue&type=style&index=0&id=56d3a4f2&scoped=true&lang=css&\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../node_modules/css-loader/index.js??ref--6-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-2!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Products.vue?vue&type=style&index=0&id=56d3a4f2&scoped=true&lang=css&\", function() {\n\t\tvar newContent = require(\"!!../../../node_modules/css-loader/index.js??ref--6-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-2!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Products.vue?vue&type=style&index=0&id=56d3a4f2&scoped=true&lang=css&\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","export * from \"-!../../../node_modules/style-loader/index.js!../../../node_modules/css-loader/index.js??ref--6-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-2!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Products.vue?vue&type=style&index=0&id=56d3a4f2&scoped=true&lang=css&\"","exports = module.exports = require(\"../../../node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \".product .label[data-v-56d3a4f2]{font-size:9px}\", \"\"]);\n\n// exports\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container is-fluid\"},[_c('nav',{staticClass:\"level\"},[_c('div',{staticClass:\"level-left\"},[_c('div',{staticClass:\"level-item\"},[_c('p',{staticClass:\"subtitle is-5\"},[_c('strong',{domProps:{\"textContent\":_vm._s(_vm.productList.total)}}),_vm._v(\"\\n                        \"+_vm._s(_vm.$tc(\"product\", _vm.productList.total))+\"\\n                    \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"level-right\"},[_c('p',{staticClass:\"level-item\"},[_c('b-select',{attrs:{\"placeholder\":_vm.$tc('company')},on:{\"input\":_vm.getProducts},model:{value:(_vm.filters.company),callback:function ($$v) {_vm.$set(_vm.filters, \"company\", $$v)},expression:\"filters.company\"}},[_c('option',{attrs:{\"value\":\"\"}},[_vm._v(_vm._s(_vm.$tc('company')))]),_vm._v(\" \"),_vm._l((_vm.$root.store.companyList),function(company){return _c('option',{domProps:{\"value\":company.id}},[_vm._v(_vm._s(company.name))])})],2)],1),_vm._v(\" \"),_c('p',{staticClass:\"level-item\"},[_c('b-select',{attrs:{\"placeholder\":_vm.$tc('brand')},on:{\"input\":_vm.getProducts},model:{value:(_vm.filters.brand),callback:function ($$v) {_vm.$set(_vm.filters, \"brand\", $$v)},expression:\"filters.brand\"}},[_c('option',{attrs:{\"value\":\"\"}},[_vm._v(_vm._s(_vm.$tc('brand')))]),_vm._v(\" \"),_vm._l((_vm.$root.store.brandList),function(brand){return _c('option',{domProps:{\"value\":brand.id}},[_vm._v(_vm._s(brand.name))])})],2)],1),_vm._v(\" \"),_c('div',{staticClass:\"level-item\",staticStyle:{\"z-index\":\"0\"}},[_c('div',{staticClass:\"field has-addons\"},[_c('p',{staticClass:\"control\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.q),expression:\"q\"},{name:\"focus\",rawName:\"v-focus\"}],staticClass:\"input\",attrs:{\"type\":\"text\",\"placeholder\":_vm.$t('query')},domProps:{\"value\":(_vm.q)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.getProducts.apply(null, arguments)},\"input\":function($event){if($event.target.composing){ return; }_vm.q=$event.target.value}}})]),_vm._v(\" \"),_c('p',{staticClass:\"control\"},[_c('button',{staticClass:\"button\",on:{\"click\":_vm.getProducts}},[_vm._v(\"\\n                                \"+_vm._s(_vm.$t(\"search\"))+\"\\n                            \")])])])]),_vm._v(\" \"),_c('p',{staticClass:\"level-item\"},[_c('a',{staticClass:\"button\",on:{\"click\":_vm.load}},[_vm._m(0)])]),_vm._v(\" \"),_c('p',{staticClass:\"level-item\"},[_c('a',{staticClass:\"button is-success\",on:{\"click\":_vm.addNew}},[_vm._m(1),_vm._v(\" \"),_c('span',[_vm._v(_vm._s(_vm.$t(\"add\")))])])])])]),_vm._v(\" \"),_c('b-table',{attrs:{\"data\":_vm.productList.data,\"total\":_vm.productList.total,\"paginated\":\"\",\"striped\":\"\",\"backend-pagination\":\"\",\"backend-sorting\":\"\",\"per-page\":\"15\",\"current-page\":_vm.page,\"default-sort\":\"name\",\"aria-next-label\":_vm.$t('nextPage'),\"aria-previous-label\":_vm.$t('previousPage'),\"aria-page-label\":_vm.$t('page'),\"aria-current-label\":_vm.$t('currentPage'),\"default-sort-direction\":\"asc\",\"default-sort\":[_vm.sortField, _vm.sortOrder]},on:{\"update:currentPage\":function($event){_vm.page=$event},\"update:current-page\":function($event){_vm.page=$event},\"page-change\":_vm.onPageChange,\"sort\":_vm.onSort},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_c('b-table-column',{attrs:{\"field\":\"id\",\"label\":\"ID\",\"width\":\"40\",\"sortable\":\"\",\"numeric\":\"\"}},[_vm._v(\"\\n                    \"+_vm._s(props.row.id)+\"\\n                \")]),_vm._v(\" \"),_c('b-table-column',{attrs:{\"field\":\"\",\"label\":_vm.$tc('company')}},[_vm._v(\"\\n                    \"+_vm._s(props.row.productable.name)+\"\\n                \")]),_vm._v(\" \"),_c('b-table-column',{attrs:{\"field\":\"brand_id\",\"label\":_vm.$tc('brand'),\"sortable\":\"\"}},[_vm._v(\"\\n                    \"+_vm._s(props.row.brand.name)+\"\\n                \")]),_vm._v(\" \"),_c('b-table-column',{attrs:{\"field\":\"name\",\"label\":_vm.$tc('product')}},[_vm._v(\"\\n                    \"+_vm._s(props.row.name)+\"\\n                \")]),_vm._v(\" \"),_c('b-table-column',{attrs:{\"field\":\"avg_fee\",\"label\":_vm.$tc('avg_fee'),\"numeric\":\"\",\"sortable\":\"\"}},[_vm._v(\"\\n                    \"+_vm._s(_vm._f(\"toBrl\")(props.row.avg_fee))+\"%\\n\\n                    \"),(_vm.feeCheck(props.row))?_c('b-icon',{attrs:{\"icon\":\"stop\",\"type\":\"is-danger\",\"size\":\"is-small\"}}):_c('b-icon',{attrs:{\"icon\":\"check\",\"type\":\"is-success\",\"size\":\"is-small\"}}),_vm._v(\" \"),_c('router-link',{attrs:{\"to\":_vm.transactionsLink(props.row)}},[_c('b-icon',{attrs:{\"icon\":\"link\",\"type\":\"is-alert\",\"size\":\"is-small\"}})],1)],1),_vm._v(\" \"),_c('b-table-column',{attrs:{\"field\":\"fee\",\"label\":_vm.$tc('fee'),\"numeric\":\"\",\"sortable\":\"\"}},[_vm._v(\"\\n                    \"+_vm._s(_vm._f(\"toBrl\")(props.row.fee))+\"%\\n                \")]),_vm._v(\" \"),_c('b-table-column',{attrs:{\"field\":\"\",\"label\":\"\",\"width\":\"120\",\"numeric\":\"\"}},[(_vm.can('editProduct'))?_c('b-button',{attrs:{\"type\":\"is-warning is-small\",\"icon-left\":\"pencil\"},on:{\"click\":function($event){return _vm.editProduct(props.row)}}}):_vm._e(),_vm._v(\" \"),(_vm.can('deleteProduct'))?_c('b-button',{attrs:{\"type\":\"is-danger is-small\",\"icon-left\":\"delete\"},on:{\"click\":function($event){return _vm.deleteProduct(props.row)}}}):_vm._e()],1)]}}])}),_vm._v(\" \"),_c('b-modal',{attrs:{\"active\":_vm.modalNewActive,\"has-modal-card\":\"\",\"trap-focus\":\"\",\"destroy-on-hide\":true,\"aria-role\":\"dialog\",\"aria-modal\":\"\"},on:{\"update:active\":function($event){_vm.modalNewActive=$event}}},[_c('div',{staticClass:\"modal-card\"},[_c('header',{staticClass:\"modal-card-head\"},[(_vm.productForm.data.id !== '')?_c('p',{staticClass:\"modal-card-title\"},[_vm._v(\"\\n                        \"+_vm._s(_vm.$t(\"edit\"))+\"\\n                    \")]):_c('p',{staticClass:\"modal-card-title\"},[_vm._v(_vm._s(_vm.$t(\"add\")))])]),_vm._v(\" \"),_c('section',{staticClass:\"modal-card-body\"},[_c('b-field',{attrs:{\"label\":_vm.$tc('company'),\"type\":_vm.productForm.errors.has('company_id') ? 'is-danger' : '',\"message\":_vm.productForm.errors.get('company_id')}},[_c('b-select',{attrs:{\"placeholder\":_vm.$tc('company', 1),\"icon\":\"earth\"},model:{value:(_vm.productForm.data.company_id),callback:function ($$v) {_vm.$set(_vm.productForm.data, \"company_id\", $$v)},expression:\"productForm.data.company_id\"}},_vm._l((_vm.$root.store.companyList),function(company){return _c('option',{domProps:{\"value\":company.id}},[_vm._v(_vm._s(company.name))])}),0)],1),_vm._v(\" \"),_c('b-field',{attrs:{\"label\":_vm.$tc('brand'),\"type\":_vm.productForm.errors.has('brand_id') ? 'is-danger' : '',\"message\":_vm.productForm.errors.get('brand_id')}},[_c('b-select',{attrs:{\"placeholder\":_vm.$tc('brand', 1),\"icon\":\"earth\"},model:{value:(_vm.productForm.data.brand_id),callback:function ($$v) {_vm.$set(_vm.productForm.data, \"brand_id\", $$v)},expression:\"productForm.data.brand_id\"}},_vm._l((_vm.$root.store.brandList),function(brand){return _c('option',{domProps:{\"value\":brand.id}},[_vm._v(_vm._s(brand.name))])}),0)],1),_vm._v(\" \"),_c('b-field',{attrs:{\"label\":_vm.$tc('product'),\"type\":_vm.productForm.errors.has('name') ? 'is-danger' : '',\"message\":_vm.productForm.errors.get('name')}},[_c('b-input',{model:{value:(_vm.productForm.data.name),callback:function ($$v) {_vm.$set(_vm.productForm.data, \"name\", $$v)},expression:\"productForm.data.name\"}})],1),_vm._v(\" \"),_c('b-field',{attrs:{\"label\":_vm.$tc('fee'),\"type\":_vm.productForm.errors.has('fee') ? 'is-danger' : '',\"message\":_vm.productForm.errors.get('fee')}},[_c('b-numberinput',{attrs:{\"step\":\"0.01\",\"aria-minus-label\":\"Decrement by 0.01\",\"aria-plus-label\":\"Increment by 0.01\"},model:{value:(_vm.productForm.data.fee),callback:function ($$v) {_vm.$set(_vm.productForm.data, \"fee\", $$v)},expression:\"productForm.data.fee\"}})],1)],1),_vm._v(\" \"),_c('footer',{staticClass:\"modal-card-foot\"},[_c('button',{staticClass:\"button is-success\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.submitForm}},[_vm._v(\"\\n                        \"+_vm._s(_vm.$tc(\"save\"))+\"\\n                    \")]),_vm._v(\" \"),_c('button',{staticClass:\"button\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){_vm.modalNewActive = false}}},[_vm._v(\"\\n                        \"+_vm._s(_vm.$tc(\"cancel\"))+\"\\n                    \")])])])])],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"icon is-small\"},[_c('i',{staticClass:\"fas fa-sync-alt\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"icon is-small\"},[_c('i',{staticClass:\"fas fa-plus\"})])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Products.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Products.vue?vue&type=script&lang=js&\"","<template>\n    <div class=\"container is-fluid\">\n        <!-- Main container -->\n        <nav class=\"level\">\n            <!-- Left side -->\n            <div class=\"level-left\">\n                <div class=\"level-item\">\n                    <p class=\"subtitle is-5\">\n                        <strong v-text=\"productList.total\"></strong>\n                        {{ $tc(\"product\", productList.total) }}\n                    </p>\n                </div>\n            </div>\n            <!-- Right side -->\n            <div class=\"level-right\">\n\n                <p class=\"level-item\">\n                    <b-select \n                        :placeholder=\"$tc('company')\" \n                        v-model='filters.company'\n                        @input=\"getProducts\"\n                        >\n                        <option value=\"\">{{ $tc('company') }}</option>\n                        <option v-for=\"company in $root.store.companyList\" :value=\"company.id\">{{ company.name }}</option>\n                    </b-select>\n                </p>\n\n                <p class=\"level-item\">\n                    <b-select \n                        :placeholder=\"$tc('brand')\" \n                        v-model='filters.brand'\n                        @input=\"getProducts\"\n                        >\n                        <option value=\"\">{{ $tc('brand') }}</option>\n                        <option v-for=\"brand in $root.store.brandList\" :value=\"brand.id\">{{ brand.name }}</option>\n                    </b-select>\n                </p>\n\n                <div class=\"level-item\" style=\"z-index: 0\">\n                    <div class=\"field has-addons\">\n                        <p class=\"control\">\n                            <input\n                                class=\"input\"\n                                v-model=\"q\"\n                                type=\"text\"\n                                :placeholder=\"$t('query')\"\n                                v-focus\n                                @keyup.enter=\"getProducts\"\n                            />\n                        </p>\n                        <p class=\"control\">\n                            <button class=\"button\" @click=\"getProducts\">\n                                {{ $t(\"search\") }}\n                            </button>\n                        </p>\n                    </div>\n                </div>\n\n                <p class=\"level-item\">\n                    <a class=\"button\" @click=\"load\">\n                        <span class=\"icon is-small\">\n                            <i class=\"fas fa-sync-alt\"></i>\n                        </span>\n                    </a>\n                </p>\n                <p class=\"level-item\">\n                    <a class=\"button is-success\" @click=\"addNew\">\n                        <span class=\"icon is-small\">\n                            <i class=\"fas fa-plus\"></i>\n                        </span>\n                        <span>{{ $t(\"add\") }}</span>\n                    </a>\n                </p>\n            </div>\n        </nav>\n\n        <b-table\n            :data=\"productList.data\"\n            :total=\"productList.total\"\n            paginated\n            striped\n            backend-pagination\n            backend-sorting\n            per-page=\"15\"\n            :current-page.sync=\"page\"\n            default-sort=\"name\"\n            :aria-next-label=\"$t('nextPage')\"\n            :aria-previous-label=\"$t('previousPage')\"\n            :aria-page-label=\"$t('page')\"\n            :aria-current-label=\"$t('currentPage')\"\n            default-sort-direction=\"asc\"\n            :default-sort=\"[sortField, sortOrder]\"\n            @page-change=\"onPageChange\"\n            @sort=\"onSort\"\n        >\n            <template slot-scope=\"props\">\n\n                <b-table-column\n                    field=\"id\"\n                    label=\"ID\"\n                    width=\"40\"\n                    sortable\n                    numeric\n                >\n                    {{ props.row.id }}\n                </b-table-column>\n\n                <!--\n\n                <b-table-column field=\"name\" :label=\"$tc('contract')\">\n\n                    <span v-if=\"props.row.name.productable_type=='App\\\\Models\\\\Company'\">\n                        {{ $t(\"Company\") }}\n                    </span>\n\n                    <span v-if=\"props.row.name.productable_type=='App\\\\Models\\\\Account'\">\n                        {{ $t(\"Account\") }}\n                    </span>\n\n                </b-table-column>\n\n                -->\n\n                <b-table-column field=\"\" :label=\"$tc('company')\">\n                    {{ props.row.productable.name }}\n                </b-table-column>\n\n                <b-table-column field=\"brand_id\" :label=\"$tc('brand')\" sortable>\n                    {{ props.row.brand.name }}\n                </b-table-column>\n\n                <b-table-column field=\"name\" :label=\"$tc('product')\">\n                    {{ props.row.name }}\n                </b-table-column>\n\n                <b-table-column field=\"avg_fee\" :label=\"$tc('avg_fee')\" numeric sortable>\n                    {{ props.row.avg_fee  | toBrl}}%\n\n                    <b-icon\n                        v-if=\"feeCheck(props.row)\"\n                        icon=\"stop\"\n                        type=\"is-danger\"\n                        size=\"is-small\"\n                    >\n                    </b-icon>\n                    <b-icon\n                        v-else\n                        icon=\"check\"\n                        type=\"is-success\"\n                        size=\"is-small\"\n                    >\n                    </b-icon>\n\n                    <router-link :to=\"transactionsLink(props.row)\">\n                        <b-icon\n                            icon=\"link\"\n                            type=\"is-alert\"\n                            size=\"is-small\"\n                        >\n                        </b-icon>\n                    </router-link\n>\n\n\n                </b-table-column>\n\n                <b-table-column field=\"fee\" :label=\"$tc('fee')\" numeric sortable>\n                    {{ props.row.fee  | toBrl}}%\n                </b-table-column>\n\n                <b-table-column field=\"\" label=\"\" width=\"120\" numeric >\n                    <b-button\n                        v-if=\"can('editProduct')\"\n                        @click=\"editProduct(props.row)\"\n                        type=\"is-warning is-small\"\n                        icon-left=\"pencil\"\n                    />\n                    <b-button\n                        v-if=\"can('deleteProduct')\"\n                        @click=\"deleteProduct(props.row)\"\n                        type=\"is-danger is-small\"\n                        icon-left=\"delete\"\n                    />\n                </b-table-column>\n\n            </template>\n        </b-table>\n\n        <b-modal\n            :active.sync=\"modalNewActive\"\n            has-modal-card\n            trap-focus\n            :destroy-on-hide=\"true\"\n            aria-role=\"dialog\"\n            aria-modal\n        >\n            <div class=\"modal-card\">\n                <header class=\"modal-card-head\">\n                    <p\n                        class=\"modal-card-title\"\n                        v-if=\"productForm.data.id !== ''\"\n                    >\n                        {{ $t(\"edit\") }}\n                    </p>\n                    <p class=\"modal-card-title\" v-else>{{ $t(\"add\") }}</p>\n                </header>\n\n                <section class=\"modal-card-body\">\n\n                    <b-field\n                        :label=\"$tc('company')\"\n                        :type=\"\n                            productForm.errors.has('company_id') ? 'is-danger' : ''\n                        \"\n                        :message=\"productForm.errors.get('company_id')\">\n                        <b-select\n                            :placeholder=\"$tc('company', 1)\"\n                            icon=\"earth\"\n                            v-model=\"productForm.data.company_id\"\n                        >\n                            <option\n                                v-for=\"company in $root.store.companyList\"\n                                :value=\"company.id\"\n                                >{{ company.name }}</option\n                            >\n                        </b-select>\n                    </b-field>\n\n                    <b-field\n                        :label=\"$tc('brand')\"\n                        :type=\"\n                            productForm.errors.has('brand_id') ? 'is-danger' : ''\n                        \"\n                        :message=\"productForm.errors.get('brand_id')\">\n                        <b-select\n                            :placeholder=\"$tc('brand', 1)\"\n                            icon=\"earth\"\n                            v-model=\"productForm.data.brand_id\"\n                        >\n                            <option\n                                v-for=\"brand in $root.store.brandList\"\n                                :value=\"brand.id\"\n                                >{{ brand.name }}</option\n                            >\n                        </b-select>\n                    </b-field>\n\n                    <b-field\n                        :label=\"$tc('product')\"\n                        :type=\"\n                            productForm.errors.has('name') ? 'is-danger' : ''\n                        \"\n                        :message=\"productForm.errors.get('name')\"\n                    >\n                        <b-input v-model=\"productForm.data.name\"></b-input>\n                    </b-field>\n\n                    <b-field \n                        :label=\"$tc('fee')\"\n                        :type=\"productForm.errors.has('fee') ? 'is-danger' : ''\"\n                        :message=\"productForm.errors.get('fee')\">\n                        <b-numberinput v-model=\"productForm.data.fee\" step=\"0.01\" aria-minus-label=\"Decrement by 0.01\" aria-plus-label=\"Increment by 0.01\">\n                        </b-numberinput>\n                    </b-field>       \n\n\n                </section>\n\n                <footer class=\"modal-card-foot\">\n                    <button\n                        @click=\"submitForm\"\n                        type=\"button\"\n                        class=\"button is-success\"\n                    >\n                        {{ $tc(\"save\") }}\n                    </button>\n\n                    <button\n                        class=\"button\"\n                        type=\"button\"\n                        @click=\"modalNewActive = false\"\n                    >\n                        {{ $tc(\"cancel\") }}\n                    </button>\n                </footer>\n            </div>\n        </b-modal>\n    </div>\n</template>\n<script>\nimport mixin_general from \"./../mixins/general\";\n\nexport default {\n\n    mixins: [mixin_general],\n\n    i18n: {\n        messages: {\n            en: {\n                fee: \"Fee\",\n                avg_fee: \"Average Transactions Fee\"\n            },\n            pt: {\n                fee: \"Taxa contratada\",\n                avg_fee: \"Taxa Média das transações\"\n            },\n        },\n    },\n    mounted() {\n        this.load();\n    },\n    data() {\n        return {\n            productList: [],\n            q: \"\",\n            sortField: \"name\",\n            sortOrder: \"asc\",\n            page: 1,\n            modalNewActive: false,\n            roles: ['superadmin', 'admin', 'manager'],\n            filters: {\n                brand: \"\",\n                company: \"\",\n            },\n            productForm: new Form({\n                id: \"\",\n                name: \"\",\n                fee: \"\",\n                brand_id: \"\",\n                company_id: \"\",\n            }),\n        };\n    },\n    methods: {\n        load() {\n            queue.push(this, [\"getProducts\"]);\n        },\n\n        getProducts() {\n            var self = this;\n            return new Promise(function(resolve, reject) {\n                axios\n                    .get(\"/api/products\", {\n                        headers: {\n                            Authorization:\n                                \"Bearer \" + store.state.auth.access_token,\n                        },\n                        params: {\n                            page: self.page,\n                            paginate: true,\n                            q: self.q,\n                            sortBy: self.sortField,\n                            sortDirection: self.sortOrder,\n                            with: \"productable, brand\",\n                            company_id: self.filters.company,\n                            brand_id: self.filters.brand,\n                        },\n                    })\n                    .then((response) => {\n                        self.productList = response.data;\n                        resolve();\n                    });\n            });\n        },\n\n        onPageChange(page) {\n            this.page = page;\n            this.load();\n        },\n\n        onSort(field, order) {\n            this.sortField = field;\n            this.sortOrder = order;\n            this.load();\n        },\n\n        editProduct(item) {\n            console.log(item);\n            item.company_id = item.productable.id;\n            this.productForm.fill(item);\n            this.modalNewActive = true;\n        },\n\n        deleteProduct(item) {\n            var self = this;\n\n            if (confirm(this.$tc(\"sure\"))) {\n                axios\n                    .delete(\"api/products/\" + item.id, {\n                        headers: {\n                            Authorization:\n                                \"Bearer \" + store.state.auth.access_token,\n                        },\n                    })\n                    .then((response) => {\n                        //alert(this.$tc(\"success\"))\n                        self.load();\n                    });\n            }\n        },\n\n        addNew() {\n            this.productForm.reset();\n            this.modalNewActive = true;\n        },\n\n        submitForm() {\n            var self = this;\n\n            if(parseInt(self.productForm.data.id) > 0) {\n\n                self.productForm\n                    .put(\"/api/products/\"+self.productForm.data.id)\n                    .then((data) => {\n                        console.log(data);\n                        if (data.id > 0) {\n                            //alert(this.$tc(\"saved\"));\n                            self.productForm.reset();\n                            self.getProducts();\n                            self.load();\n                            self.modalNewActive = false;\n                        }\n                    })\n                    .catch((error) => {\n                        console.log(\"error\", error);\n                        if(error.errors) {\n                            $.each(error.errors, function(index, val) {\n                                $.each(val, function(idx, msg) {\n                                    self.$root.danger(msg);\n                                });\n                            });\n                        }\n                    });\n\n            } else {\n\n                self.productForm\n                    .post(\"/api/products\")\n                    .then((data) => {\n                        console.log(data);\n                        if (data.id > 0) {\n                            //alert(this.$tc(\"saved\"));\n                            self.productForm.reset();\n                            self.getProducts();\n                            self.load();\n                            self.modalNewActive = false;\n                        }\n                    })\n                    .catch((error) => {\n                        console.log(\"error\", error);\n                        if(error.errors) {\n                            $.each(error.errors, function(index, val) {\n                                $.each(val, function(idx, msg) {\n                                    self.$root.danger(msg);\n                                });\n                            });\n                        }\n                    });\n\n            }\n        },\n\n        feeCheck(row) {\n            if(row) {\n                if(row.avg_fee > row.fee) {\n                    return true;\n                } else {\n                    return false;\n                }\n            }\n        },\n\n        transactionsLink(row) {\n            if(row) {\n                return 'transactions?product_id='+row.id\n            }\n        }\n \n    },\n    \n    computed: {\n    },\n};\n</script>\n\n<style scoped>\n\n    .product .label {\n        font-size: 9px;\n    }\n    \n</style>","import { render, staticRenderFns } from \"./Products.vue?vue&type=template&id=56d3a4f2&scoped=true&\"\nimport script from \"./Products.vue?vue&type=script&lang=js&\"\nexport * from \"./Products.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Products.vue?vue&type=style&index=0&id=56d3a4f2&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"56d3a4f2\",\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}

Zerion Mini Shell 1.0