{"version":3,"sources":["webpack:///./src/views/order/lastMile/uploadOrder.vue?0e0d","webpack:///./src/views/order/lastMile/uploadOrder.vue?5a61","webpack:///src/views/order/lastMile/uploadOrder.vue","webpack:///./src/views/order/lastMile/uploadOrder.vue?de03","webpack:///./src/views/order/lastMile/uploadOrder.vue","webpack:///./node_modules/core-js/modules/es.array.some.js","webpack:///./src/libs/fun.js","webpack:///./src/views/order/lastMile/uploadOrder.vue?e6af","webpack:///./src/@core/directives/permission/permission.js","webpack:///./src/@core/directives/permission/index.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","name","_v","_s","$t","temList","on","selTem","scopedSlots","_u","key","fn","option","codeDescription","model","value","callback","$$v","template","expression","style","disabled","downTem","$event","$refs","refInputEl","click","ref","inputRenderer","fileName","directives","rawName","items","fields","isBusy","proxy","scope","item","progressMax","progressNow","slice","_e","progressStatus","toFixed","staticRenderFns","components","BBreadcrumb","BBreadcrumbItem","BRow","BCol","BCard","BCardHeader","BCardTitle","BCardBody","vSelect","BFormGroup","BButton","BTable","ToastificationContent","BProgress","BProgressBar","BBadge","BSpinner","permission","data","windowHeight","document","documentElement","clientHeight","cardHei","cardHei1","down","type","cursor","computed","style1","style2","watch","val","beforeRouteEnter","next","from","vm","getProcessStatus1","created","mounted","getProcessStatus","window","onresize","fullHeight","timer","setInterval","setTimeout","queryUpload","destroyed","clearInterval","methods","file","fd","append","$http","post","res","code","component","props","title","message","icon","variant","get","d","codeName","open","url","then","info","taskName","output","$","$some","some","arrayMethodIsStrict","STRICT_METHOD","target","proto","forced","callbackfn","arguments","length","undefined","debounce","t","delay","args","clearTimeout","apply","checkPermission","el","binding","userData","JSON","parse","localStorage","getItem","arr","buttonPermissions","map","i","push","id","roles","Array","Error","permissionRoles","hasPermission","role","includes","parentNode","removeChild","inserted","update","install","Vue","directive","use"],"mappings":"yIAAA,W,yCCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ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ACTF,EAAgBC,EAAIC,KCrClBuB,EAAU,SAASC,GACvBA,EAAIC,UAAU,aAAcrG,IAG1BwB,OAAO4E,MACT5E,OAAO,cAAgBxB,EACvBoG,IAAIE,IAAIH,IAGVnG,EAAWmG,QAAUA,EACNnG","file":"js/chunk-bcf1275e.68a2c8b2.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./uploadOrder.vue?vue&type=style&index=0&id=2b6133cd&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',[_c('div',{staticClass:\"breadcrumb-top\"},[_c('b-breadcrumb',{},[_c('b-breadcrumb-item',{attrs:{\"to\":{ name: 'dashboard' }}},[_c('feather-icon',{attrs:{\"icon\":\"HomeIcon\",\"size\":\"16\"}})],1),_c('b-breadcrumb-item',[_vm._v(\" \"+_vm._s(_vm.$t('Delivery Order'))+\" \")]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.$t('Upload Order'))+\" \")])],1)],1),_c('b-row',[_c('b-col',{staticClass:\"ll-padding\",attrs:{\"lg\":\"3\"}},[_c('b-card',{staticClass:\"ll-card1\"},[_c('b-card-body',[_c('b-form-group',{attrs:{\"label\":_vm.$t('Order Template To Upload'),\"label-for\":\"s\"}},[_c('v-select',{attrs:{\"options\":_vm.temList,\"label\":\"codeDescription\"},on:{\"input\":_vm.selTem},scopedSlots:_vm._u([{key:\"option\",fn:function(option){return [_vm._v(\" \"+_vm._s(option.codeDescription == 'LMD' ? 'Last Mile Delivery' : 'Cross Border Service')+\" Template \")]}},{key:\"selected-option\",fn:function(option){return [_vm._v(\" \"+_vm._s(option.codeDescription == 'LMD' ? 'Last Mile Delivery' : 'Cross Border Service')+\" Template \")]}}]),model:{value:(_vm.template),callback:function ($$v) {_vm.template=$$v},expression:\"template\"}})],1),_c('div',{staticClass:\"ll-btnBox\"},[_c('b-button',{style:(_vm.cursor),attrs:{\"variant\":\"outline-secondary\",\"disabled\":_vm.disabled},on:{\"click\":_vm.downTem}},[_c('span',{staticClass:\"ll-text\"},[_vm._v(_vm._s(_vm.$t('Download template')))])])],1),_c('div',{staticClass:\"ll-btnBox\"},[_c('b-button',{style:(_vm.cursor),attrs:{\"variant\":\"outline-secondary\",\"disabled\":_vm.disabled},on:{\"click\":function($event){return _vm.$refs.refInputEl.click()}}},[_c('input',{ref:\"refInputEl\",staticClass:\"d-none\",attrs:{\"type\":\"file\",\"accept\":\".xlsx\"},on:{\"input\":function($event){return _vm.inputRenderer($event)}}}),_c('span',{staticClass:\"d-none d-sm-inline\"},[_vm._v(_vm._s(_vm.$t('Upload order')))])]),_c('span',[_vm._v(_vm._s(_vm.fileName))])],1),_c('div',[_c('strong',[_vm._v(\"Latest Template Version:\")]),_c('ul',[_c('li',[_vm._v(\"Last Mile Delivery Template: VERSION:1.6(Oct 2024)\")]),_c('li',[_vm._v(\"Cross Border Service Template: VERSION:1.1\")])])])],1)],1)],1),_c('b-col',{attrs:{\"lg\":\"9\"}},[_c('b-card',{staticClass:\"ll-card1\"},[_c('b-card-header',[_c('b-card-title',[_vm._v(_vm._s(_vm.$t('Last 10 Upload Record')))])],1),_c('b-card-body',[_c('b-table',{directives:[{name:\"permission\",rawName:\"v-permission\",value:([146]),expression:\"[146]\"}],staticClass:\"ll-table\",attrs:{\"items\":_vm.items,\"fields\":_vm.fields,\"borderless\":false,\"hover\":true,\"sticky-header\":true,\"busy\":_vm.isBusy},scopedSlots:_vm._u([{key:\"table-busy\",fn:function(){return [_c('div',{staticClass:\"text-center my-2\"},[_c('b-spinner',{staticClass:\"align-middle\"})],1)]},proxy:true},{key:\"cell(id)\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.item.progressMax - scope.item.progressNow))])]}},{key:\"cell(input)\",fn:function(scope){return [_c('b-button',{staticClass:\"btn-icon\",attrs:{\"variant\":\"flat-info\",\"href\":scope.value.slice(13, -2)}},[_c('feather-icon',{attrs:{\"icon\":\"ArrowDownIcon\"}})],1)]}},{key:\"cell(output)\",fn:function(scope){return [(scope.value !== null && scope.value !== '')?_c('b-button',{staticClass:\"btn-icon\",attrs:{\"variant\":\"flat-info\",\"href\":scope.value}},[_c('feather-icon',{attrs:{\"icon\":\"ArrowDownIcon\"}})],1):_vm._e()]}},{key:\"cell(progressNow)\",fn:function(scope){return [_c('b-progress',{key:\"info\",staticClass:\"progress-bar-info\",attrs:{\"max\":scope.item.progressMax,\"variant\":(scope.item.progressStatus === 'success') ? 'info': 'danger'}},[_c('b-progress-bar',{attrs:{\"value\":scope.item.progressNow,\"variant\":\"info\",\"label\":((((scope.item.progressNow/scope.item.progressMax) * 100).toFixed(2)) + \"%\")}})],1)]}}])})],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\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!./uploadOrder.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!./uploadOrder.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./uploadOrder.vue?vue&type=template&id=2b6133cd&scoped=true&\"\nimport script from \"./uploadOrder.vue?vue&type=script&lang=js&\"\nexport * from \"./uploadOrder.vue?vue&type=script&lang=js&\"\nimport style0 from \"./uploadOrder.vue?vue&type=style&index=0&id=2b6133cd&scoped=true&lang=css&\"\nimport style1 from \"./uploadOrder.vue?vue&type=style&index=1&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 \"2b6133cd\",\n null\n \n)\n\nexport default component.exports","'use strict';\nvar $ = require('../internals/export');\nvar $some = require('../internals/array-iteration').some;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar STRICT_METHOD = arrayMethodIsStrict('some');\n\n// `Array.prototype.some` method\n// https://tc39.es/ecma262/#sec-array.prototype.some\n$({ target: 'Array', proto: true, forced: !STRICT_METHOD }, {\n some: function some(callbackfn /* , thisArg */) {\n return $some(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","//防抖函数\r\nexport const debounce = (fn, t) => {\r\n const delay = t || 500\r\n let timer\r\n return function () {\r\n const args = arguments\r\n if (timer) clearTimeout(timer)\r\n timer = setTimeout(() => {\r\n timer = null\r\n fn.apply(this, args)\r\n }, delay)\r\n }\r\n}\r\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./uploadOrder.vue?vue&type=style&index=1&lang=css&\"","// import store from '@/store'\r\n\r\nfunction checkPermission(el, binding) {\r\n const { value } = binding\r\n // const roles = store.getters && store.getters.roles\r\n const userData = JSON.parse(localStorage.getItem('userInfo'))\r\n const arr = []\r\n const nameArr = []\r\n userData.buttonPermissions.map(i=>{\r\n arr.push(i.id)\r\n arr.push(i.name)\r\n })\r\n\r\n const roles = arr\r\n // console.log(arr)\r\n if (value && value instanceof Array) {\r\n if (value.length > 0) {\r\n const permissionRoles = value\r\n\r\n const hasPermission = roles.some(role => {\r\n return permissionRoles.includes(role)\r\n })\r\n\r\n if (!hasPermission) {\r\n el.parentNode && el.parentNode.removeChild(el)\r\n // alert(\"You don't have access to this page!\");\r\n }\r\n return hasPermission\r\n }\r\n } else {\r\n throw new Error(`need roles! Like v-permission=\"['admin','editor']\"`)\r\n }\r\n}\r\n\r\nexport default {\r\n inserted(el, binding) {\r\n checkPermission(el, binding)\r\n },\r\n update(el, binding) {\r\n checkPermission(el, binding)\r\n }\r\n}\r\n","import permission from './permission'\r\n\r\nconst install = function(Vue) {\r\n Vue.directive('permission', permission)\r\n}\r\n\r\nif (window.Vue) {\r\n window['permission'] = permission\r\n Vue.use(install); // eslint-disable-line\r\n}\r\n\r\npermission.install = install\r\nexport default permission\r\n"],"sourceRoot":""}