Commit c5527e71 by caoyanzhi

update: dist

parent 4dc423de
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/welfare/favicon2.ico><link rel=stylesheet href=/welfare/static/css/index.css><link href=https://cdn.bootcss.com/element-ui/2.12.0/theme-chalk/index.css rel=stylesheet><link href=//at.alicdn.com/t/font_1434755_89ndzcq2ndm.css rel=stylesheet><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_1418963_hrpaaxicjis.css><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_1393418_z4h4445tiwe.css><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_2349215_zw94rco4ss.css><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_1418963_8ssgac9p1n7.css><script src=//at.alicdn.com/t/font_1418963_8ssgac9p1n7.js></script><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.58.3.css><script src=//at.alicdn.com/t/font_1418963_hrpaaxicjis.js></script><link href=/welfare/css/card-package.7a79b96b.css rel=prefetch><link href=/welfare/css/card-package~gic-card.223f94e1.css rel=prefetch><link href=/welfare/css/chunk-1006d6d9.76456cba.css rel=prefetch><link href=/welfare/css/chunk-14ee1b04.6cbaa722.css rel=prefetch><link href=/welfare/css/chunk-28cb370c.c4067039.css rel=prefetch><link href=/welfare/css/chunk-3dcea544.9e122310.css rel=prefetch><link href=/welfare/css/chunk-3deefcb9.439cdc24.css rel=prefetch><link href=/welfare/css/chunk-40634738.8686880a.css rel=prefetch><link href=/welfare/css/chunk-474caa97.19a10178.css rel=prefetch><link href=/welfare/css/chunk-6b67a942.46b9efb2.css rel=prefetch><link href=/welfare/css/chunk-77938c7c.367d6373.css rel=prefetch><link href=/welfare/css/chunk-9829e680.b4f49a30.css rel=prefetch><link href=/welfare/css/chunk-f803170c.9190ad7d.css rel=prefetch><link href=/welfare/css/gic-card.57fa2b6d.css rel=prefetch><link href=/welfare/js/card-package.2b85d58a.js rel=prefetch><link href=/welfare/js/card-package~gic-card.4895a963.js rel=prefetch><link href=/welfare/js/chunk-0d4ebdfa.76549112.js rel=prefetch><link href=/welfare/js/chunk-1006d6d9.1e5b3f8e.js rel=prefetch><link href=/welfare/js/chunk-14ee1b04.f135893a.js rel=prefetch><link href=/welfare/js/chunk-28cb370c.bd44da33.js rel=prefetch><link href=/welfare/js/chunk-34bff564.a5054948.js rel=prefetch><link href=/welfare/js/chunk-3dcea544.c17b6993.js rel=prefetch><link href=/welfare/js/chunk-3deefcb9.b5829a10.js rel=prefetch><link href=/welfare/js/chunk-40634738.a2de9b40.js rel=prefetch><link href=/welfare/js/chunk-474caa97.4c5f1cad.js rel=prefetch><link href=/welfare/js/chunk-6287d3af.1650b788.js rel=prefetch><link href=/welfare/js/chunk-6b67a942.2f5d1f69.js rel=prefetch><link href=/welfare/js/chunk-77938c7c.fd9d8606.js rel=prefetch><link href=/welfare/js/chunk-9829e680.19abf178.js rel=prefetch><link href=/welfare/js/chunk-bb542da4.f8772c2c.js rel=prefetch><link href=/welfare/js/chunk-f803170c.62835622.js rel=prefetch><link href=/welfare/js/gic-card.fe07ae1f.js rel=prefetch><link href=/welfare/css/app.1531f837.css rel=preload as=style><link href=/welfare/js/app.38f86bdb.js rel=preload as=script><link href=/welfare/js/chunk-vendors.e1d4da3a.js rel=preload as=script><link href=/welfare/css/app.1531f837.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue-router/3.0.3/vue-router.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/base.1.0.0.17.js></script><script src=//web-1251519181.file.myqcloud.com/components/layout.1.2.59.js></script><script src=//web-1251519181.file.myqcloud.com/components/input.2.0.20.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-select.1.1.84.js></script><script src=//web-1251519181.file.myqcloud.com/components/goods-selector.1.0.51.js></script><script src=//web-1251519181.file.myqcloud.com/components/card-select.1.0.34.js></script><script src=//web-1251519181.file.myqcloud.com/components/link-tools.2.1.21.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-data.1.1.1.js></script><script src=//web-1251519181.file.myqcloud.com/components/integral-select.1.0.26.js></script><script src=//web-1251519181.file.myqcloud.com/components/rule-engine.1.0.86.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.10.js></script><script src=//web-1251519181.file.myqcloud.com/components/perm-button.1.0.1.js></script><script src=//web-1251519181.file.myqcloud.com/components/steps.1.0.1.js></script><script src=//web-1251519181.file.myqcloud.com/components/upload-picture.1.0.6.js></script><script src=//web-1251519181.file.myqcloud.com/components/upload-file.1.0.6.js></script><script src=//web-1251519181.file.myqcloud.com/components/app-info.1.0.5.js></script><script src=//web-1251519181.file.myqcloud.com/components/preview-img.1.0.3.js></script><script src=//web-1251519181.file.myqcloud.com/components/delete.1.1.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/input-number.1.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/welfare-selector.0.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/acc-group-select.1.0.5.js></script><script src=//web-1251519181.file.myqcloud.com/components/editor.1.1.13.js></script><script src=/welfare/js/chunk-vendors.e1d4da3a.js></script><script src=/welfare/js/app.38f86bdb.js></script></body></html> <!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/welfare/favicon2.ico><link rel=stylesheet href=/welfare/static/css/index.css><link href=https://cdn.bootcss.com/element-ui/2.12.0/theme-chalk/index.css rel=stylesheet><link href=//at.alicdn.com/t/font_1434755_89ndzcq2ndm.css rel=stylesheet><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_1418963_hrpaaxicjis.css><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_1393418_z4h4445tiwe.css><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_2349215_zw94rco4ss.css><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_1418963_8ssgac9p1n7.css><script src=//at.alicdn.com/t/font_1418963_8ssgac9p1n7.js></script><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.58.3.css><script src=//at.alicdn.com/t/font_1418963_hrpaaxicjis.js></script><link href=/welfare/css/card-package.7a79b96b.css rel=prefetch><link href=/welfare/css/card-package~gic-card.223f94e1.css rel=prefetch><link href=/welfare/css/chunk-09efd3db.439cdc24.css rel=prefetch><link href=/welfare/css/chunk-1006d6d9.76456cba.css rel=prefetch><link href=/welfare/css/chunk-14ee1b04.6cbaa722.css rel=prefetch><link href=/welfare/css/chunk-28cb370c.c4067039.css rel=prefetch><link href=/welfare/css/chunk-3da56340.367d6373.css rel=prefetch><link href=/welfare/css/chunk-3dcea544.9e122310.css rel=prefetch><link href=/welfare/css/chunk-40634738.8686880a.css rel=prefetch><link href=/welfare/css/chunk-474caa97.19a10178.css rel=prefetch><link href=/welfare/css/chunk-47f8737e.b4f49a30.css rel=prefetch><link href=/welfare/css/chunk-61f8141c.46b9efb2.css rel=prefetch><link href=/welfare/css/chunk-f803170c.9190ad7d.css rel=prefetch><link href=/welfare/css/gic-card.57fa2b6d.css rel=prefetch><link href=/welfare/js/card-package.026766fb.js rel=prefetch><link href=/welfare/js/card-package~gic-card.c7e303ef.js rel=prefetch><link href=/welfare/js/chunk-09efd3db.c29e7453.js rel=prefetch><link href=/welfare/js/chunk-0d4ebdfa.e178b8db.js rel=prefetch><link href=/welfare/js/chunk-1006d6d9.748aa352.js rel=prefetch><link href=/welfare/js/chunk-14ee1b04.c4258226.js rel=prefetch><link href=/welfare/js/chunk-28cb370c.082ccef3.js rel=prefetch><link href=/welfare/js/chunk-34bff564.25d8bf94.js rel=prefetch><link href=/welfare/js/chunk-350bdb36.b89aee58.js rel=prefetch><link href=/welfare/js/chunk-3da56340.21faa2c7.js rel=prefetch><link href=/welfare/js/chunk-3dcea544.0ee04761.js rel=prefetch><link href=/welfare/js/chunk-40634738.20f0e58f.js rel=prefetch><link href=/welfare/js/chunk-474caa97.a34130f8.js rel=prefetch><link href=/welfare/js/chunk-47f8737e.b31f7bd2.js rel=prefetch><link href=/welfare/js/chunk-61f8141c.9c5c75e4.js rel=prefetch><link href=/welfare/js/chunk-6287d3af.32a6c603.js rel=prefetch><link href=/welfare/js/chunk-f803170c.527ed0ea.js rel=prefetch><link href=/welfare/js/gic-card.924cdf6e.js rel=prefetch><link href=/welfare/css/app.1531f837.css rel=preload as=style><link href=/welfare/js/app.f1913f08.js rel=preload as=script><link href=/welfare/js/chunk-vendors.4a0b36ab.js rel=preload as=script><link href=/welfare/css/app.1531f837.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue-router/3.0.3/vue-router.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/base.1.0.0.17.js></script><script src=//web-1251519181.file.myqcloud.com/components/layout.1.2.59.js></script><script src=//web-1251519181.file.myqcloud.com/components/input.2.0.20.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-select.1.1.84.js></script><script src=//web-1251519181.file.myqcloud.com/components/goods-selector.1.0.51.js></script><script src=//web-1251519181.file.myqcloud.com/components/card-select.1.0.34.js></script><script src=//web-1251519181.file.myqcloud.com/components/link-tools.2.1.21.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-data.1.1.1.js></script><script src=//web-1251519181.file.myqcloud.com/components/integral-select.1.0.26.js></script><script src=//web-1251519181.file.myqcloud.com/components/rule-engine.1.0.86.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.10.js></script><script src=//web-1251519181.file.myqcloud.com/components/perm-button.1.0.1.js></script><script src=//web-1251519181.file.myqcloud.com/components/steps.1.0.1.js></script><script src=//web-1251519181.file.myqcloud.com/components/upload-picture.1.0.6.js></script><script src=//web-1251519181.file.myqcloud.com/components/upload-file.1.0.6.js></script><script src=//web-1251519181.file.myqcloud.com/components/app-info.1.0.5.js></script><script src=//web-1251519181.file.myqcloud.com/components/preview-img.1.0.3.js></script><script src=//web-1251519181.file.myqcloud.com/components/delete.1.1.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/input-number.1.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/welfare-selector.0.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/acc-group-select.1.0.5.js></script><script src=//web-1251519181.file.myqcloud.com/components/editor.1.1.13.js></script><script src=/welfare/js/chunk-vendors.4a0b36ab.js></script><script src=/welfare/js/app.f1913f08.js></script></body></html>
\ No newline at end of file \ No newline at end of file
(function(e){function t(t){for(var r,a,o=t[0],u=t[1],s=t[2],l=0,d=[];l<o.length;l++)a=o[l],Object.prototype.hasOwnProperty.call(c,a)&&c[a]&&d.push(c[a][0]),c[a]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);p&&p(t);while(d.length)d.shift()();return i.push.apply(i,s||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],r=!0,a=1;a<n.length;a++){var o=n[a];0!==c[o]&&(r=!1)}r&&(i.splice(t--,1),e=u(u.s=n[0]))}return e}var r={},a={app:0},c={app:0},i=[];function o(e){return u.p+"js/"+({"card-package~gic-card":"card-package~gic-card","card-package":"card-package","gic-card":"gic-card"}[e]||e)+"."+{"card-package~gic-card":"4895a963","card-package":"2b85d58a","gic-card":"fe07ae1f","chunk-0d4ebdfa":"76549112","chunk-1006d6d9":"1e5b3f8e","chunk-14ee1b04":"f135893a","chunk-28cb370c":"bd44da33","chunk-34bff564":"a5054948","chunk-3dcea544":"c17b6993","chunk-3deefcb9":"b5829a10","chunk-40634738":"a2de9b40","chunk-474caa97":"4c5f1cad","chunk-6287d3af":"1650b788","chunk-6b67a942":"2f5d1f69","chunk-77938c7c":"fd9d8606","chunk-9829e680":"19abf178","chunk-bb542da4":"f8772c2c","chunk-f803170c":"62835622"}[e]+".js"}function u(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,u),n.l=!0,n.exports}u.e=function(e){var t=[],n={"card-package~gic-card":1,"card-package":1,"gic-card":1,"chunk-1006d6d9":1,"chunk-14ee1b04":1,"chunk-28cb370c":1,"chunk-3dcea544":1,"chunk-3deefcb9":1,"chunk-40634738":1,"chunk-474caa97":1,"chunk-6b67a942":1,"chunk-77938c7c":1,"chunk-9829e680":1,"chunk-f803170c":1};a[e]?t.push(a[e]):0!==a[e]&&n[e]&&t.push(a[e]=new Promise((function(t,n){for(var r="css/"+({"card-package~gic-card":"card-package~gic-card","card-package":"card-package","gic-card":"gic-card"}[e]||e)+"."+{"card-package~gic-card":"223f94e1","card-package":"7a79b96b","gic-card":"57fa2b6d","chunk-0d4ebdfa":"31d6cfe0","chunk-1006d6d9":"76456cba","chunk-14ee1b04":"6cbaa722","chunk-28cb370c":"c4067039","chunk-34bff564":"31d6cfe0","chunk-3dcea544":"9e122310","chunk-3deefcb9":"439cdc24","chunk-40634738":"8686880a","chunk-474caa97":"19a10178","chunk-6287d3af":"31d6cfe0","chunk-6b67a942":"46b9efb2","chunk-77938c7c":"367d6373","chunk-9829e680":"b4f49a30","chunk-bb542da4":"31d6cfe0","chunk-f803170c":"9190ad7d"}[e]+".css",c=u.p+r,i=document.getElementsByTagName("link"),o=0;o<i.length;o++){var s=i[o],l=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(l===r||l===c))return t()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){s=d[o],l=s.getAttribute("data-href");if(l===r||l===c)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var r=t&&t.target&&t.target.src||c,i=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=r,delete a[e],p.parentNode.removeChild(p),n(i)},p.href=c;var f=document.getElementsByTagName("head")[0];f.appendChild(p)})).then((function(){a[e]=0})));var r=c[e];if(0!==r)if(r)t.push(r[2]);else{var i=new Promise((function(t,n){r=c[e]=[t,n]}));t.push(r[2]=i);var s,l=document.createElement("script");l.charset="utf-8",l.timeout=120,u.nc&&l.setAttribute("nonce",u.nc),l.src=o(e);var d=new Error;s=function(t){l.onerror=l.onload=null,clearTimeout(p);var n=c[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",d.name="ChunkLoadError",d.type=r,d.request=a,n[1](d)}c[e]=void 0}};var p=setTimeout((function(){s({type:"timeout",target:l})}),12e4);l.onerror=l.onload=s,document.head.appendChild(l)}return Promise.all(t)},u.m=e,u.c=r,u.d=function(e,t,n){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)u.d(n,r,function(t){return e[t]}.bind(null,r));return n},u.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="/welfare/",u.oe=function(e){throw e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var d=0;d<s.length;d++)t(s[d]);var p=l;i.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"0ae1":function(e,t,n){e.exports=n.p+"img/app.ab4c23ff.svg"},1921:function(e,t,n){},"1f99":function(e,t,n){},2934:function(e,t,n){"use strict";n("8e6e"),n("ac6a"),n("456d");var r=n("ade3"),a=n("71f6"),c=n("f121");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={loginUserMenu:"/login-user-menu",loginUserMenuOfApp:"/login-user-menu-of-app"},s={getSubappList:"/area/member-cards",getAppList:"/stock/application-list",getStockList:{url:"/stock/stock-list",method:"post",useFormData:!0},getStockActivityStatistics:"/stock/activity-statistics",getRelationId:"/gift/get-gift-id",virtualUploadLog:{url:"/gift/vir-card-log-page",method:"post"},virtualErrorPage:"/gift/vir-card-error-page",getWelfareAppList:"/gift/get-welfare-application-list"},l={getAppInfo:{url:"/enterprise-serve-info",alertError:!1},getMallShopList:"/outer/all-mall-shop",activityList:"/activity/list-marketing-page",getActivityInfo:"/activity/get-marketing-activity"};s=Object(a["a"])(s,c["f"]),u=Object(a["a"])(u,c["b"]),l=Object(a["a"])(l,c["d"]),t["a"]=o(o(o({},u),l),s);c["d"]},"3ba8":function(e,t,n){},4360:function(e,t,n){"use strict";n("96cf");var r=n("1da1"),a=(n("7514"),n("20d6"),n("8bbf")),c=n.n(a),i=n("5880"),o=n.n(i),u=n("cf45");c.a.use(o.a),t["a"]=new o.a.Store({state:{lock:!1,loading:!1,defaultAreaId:"",currentAreaName:"",currentAreaId:"",deleteFlag:!1,areaSubList:[],moduleCode:"welfare",project:"",menu:{},extraHideLeft:"",mainHeight:0,routePath:[],showCornerCanUseApp:!1},mutations:{updateShowCornerCanUseApp:function(e,t){e.showCornerCanUseApp=t},updateRoutePath:function(e,t){e.routePath=t},updateMainHeight:function(e,t){e.mainHeight=t},updateLock:function(e,t){e.lock=t},updateAreaName:function(e,t){var n=t.areaId,r=t.areaName,a=e.areaSubList.findIndex((function(e){return e.areaId===n}));-1!==a&&(e.areaSubList[a].areaName=r,e.currentAreaId===n&&(e.currentAreaName=r))},setSubAppList:function(e,t){e.areaSubList=t},setDefaultSubAppId:function(e,t){},setCurrentSubApp:function(e,t){var n=e.areaSubList.find((function(e){return e.areaId===t}))||{};Object(u["b"])(e.moduleCode,"set",t),e.currentAreaId=n.areaId||"",e.currentAreaName=n.areaName||"",e.deleteFlag=n.deleteFlag||!1},setProject:function(e,t){e.project=t||""},updateExtraHideLeft:function(e,t){e.extraHideLeft=t||""}},actions:{setDefaultAppId:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.commit("setDefaultSubAppId",n);case 1:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},plugins:[]})},"4c57":function(e,t,n){e.exports=n.p+"img/w-real-gifts.a8edb5c6.svg"},"56d7":function(e,t,n){"use strict";n.r(t);n("7f7f"),n("ac6a"),n("456d"),n("cadf"),n("551c"),n("f751"),n("097d"),n("1f99"),n("88ed"),n("6861");var r=n("5c96"),a=n.n(r),c=n("cebe"),i=n.n(c),o=n("8bbf"),u=n.n(o),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dm-reset",attrs:{id:"app"}},[n("router-view")],1)},l=[],d=(n("28a5"),{name:"App",data:function(){return{isRouterAlive:!0}},mounted:function(){this.$store.commit("updateMainHeight",document.body.offsetHeight-180)},watch:{$route:{handler:function(e){e.path.split("/")[1]&&this.$store.commit("setProject",window.location.pathname.split("/")[2])},deep:!0,immediate:!0}}}),p=d,f=n("2877"),h=Object(f["a"])(p,s,l,!1,null,null,null),m=h.exports,g=n("a18c"),b=n("d046"),v=(n("6c7b"),n("c5f6"),n("ed08")),y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"¥",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=Number(e);return isNaN(a)?e:"".concat(r?t:"").concat(Object(v["d"])(a,n))},w={amountFormat:y},k={computed:{currentAreaId:function(){return this.$store.state.currentAreaId},currentAreaIds:function(){return this.$store.state.currentAreaId?[this.$store.state.currentAreaId]:[]},currentAreaDelete:function(){return this.$store.state.delete_flag}}},O=n("4360"),j=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("dm-perm-button",{attrs:{"perm-tip":e.permTip,"perm-tip-placement":e.permTipPlacement,size:e.size,type:e.type,plain:e.plain,round:e.round,loading:e.loading,disabled:e.disabled,icon:e.icon,autofocus:e.autofocus,"native-type":e.nativeType},nativeOn:{click:function(t){return e.handleClick(t)}}},[e._t("default")],2)},C=[],S={name:"MkButton",props:{effect:{type:String,default:"dark"},delayTimes:{type:Number,default:300},permTipPlacement:{type:String,default:"top"},size:String,type:String,plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},icon:String,autofocus:{type:Boolean,default:!1},nativeType:{type:String,default:"button"},option:{type:Object,default:function(){return{}}}},data:function(){return{permTip:"",disabled:!1}},mounted:function(){return this.option.perm?(this.permTip="您无该操作权限,请联系超管!",void(this.disabled=!0)):this.option.deleteFlag?(this.disabled=!0,void(this.permTip=this.option.deleteRemark||"域已被删除")):void 0},methods:{handleClick:function(){this.disabled||this.$emit("click")}}},x=S,P=Object(f["a"])(x,j,C,!1,null,null,null),A=P.exports,I=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"member-info",style:"height:"+e.height+"px"},[n("dm-preview-img",{staticClass:"img",attrs:{img:e.memberImage,width:e.width,height:e.height}}),n("p",{class:e.hidePhone?"pt10":""},[e._v(e._s(e.memberName||"--"))]),e.hidePhone?e._e():n("p",{class:e.memberPhone?"":"hide"},[e._v(e._s(e.showPhoneTip?"手机号码:":"")+e._s(e.memberPhone||"--"))])],1)},_=[],L={name:"Memberinfo",props:{memberName:{type:String},memberImage:{type:String},memberPhone:{type:String},showPhoneTip:{type:Boolean,default:!1},width:{type:[String,Number],default:40},height:{type:[String,Number],default:40},hidePhone:{type:Boolean,default:!1}},data:function(){return{}}},E=L,D=(n("89c4"),Object(f["a"])(E,I,_,!1,null,"e0d88100",null)),$=D.exports,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-image",{attrs:{src:e.src,fit:e.fit,lazy:e.lazy,"scroll-container":e.scrollContainer,"preview-src-list":e.previewSrcList,"z-index":e.zIndex},on:{click:e.viewClick},scopedSlots:e._u([{key:"error",fn:function(){return[e._t("error")]},proxy:!0}],null,!0)})},U=[],M={name:"DmElImageView",props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},previewSrcList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3}},methods:{viewClick:function(){this.$emit("click"),document.body.style=""}}},T=M,F=Object(f["a"])(T,N,U,!1,null,null,null),H=F.exports,B={gicCardFormAdd:"gicCardFormAdd",gicCardFormCopy:"gicCardFormCopy",gicCardFormInfo:"gicCardFormInfo",gicCardFormEdit:"gicCardFormEdit",gicCardFormDel:"gicCardFormDel",gicCardGroupBtn:"gicCardGroupBtn",gicCardMemberGetExport:"gicCardMemberGetExport",gicCardGiveLogExport:"gicCardGiveLogExport",gicCardGroupSendForm:"gicCardGroupSendForm",gicCardGroupSendInfo:"gicCardGroupSendInfo",gicCardGroupSendInfoLog:"gicCardGroupSendInfoLog",gicCardStopGroupSend:"gicCardStopGroupSend",gicCardSyncStock:"gicCardSyncStock",gicCardDestory:"gicCardDestory",gicCardDestoryExport:"gicCardDestoryExport",gicAddPackage:"gicAddPackage",gicEditPackage:"gicEditPackage",gicDeletePackage:"gicDeletePackage",gicSyncStockPack:"gicSyncStockPack",gicAdjustStockPack:"gicAdjustStockPack",gicCardShelfLogExportBtn:"gicCardShelfLogExportBtn"},R=(n("a481"),n("96cf"),n("1da1")),G=(n("5df3"),n("b775")),z="",V=[],W=[],q={},J=K();function K(){var e=window.location.origin;return(e.indexOf("localhost")>=0||e.indexOf("192.168")>=0)&&(e="https://four.gicdev.com"),e}function Y(){return Object(G["a"])({url:"/gic-auth-web/get-login-user-info"})}function Q(){var e=Object(G["a"])({url:"/gic-auth-web/login-user-menu"}).then((function(e){W=ee(e.result||[])})),t=Object(G["a"])({url:"/gic-auth-web/login-user-operation-item"}).then((function(e){q=te(e.result||[])}));return Promise.all([e,t])}function X(e){return Z.apply(this,arguments)}function Z(){return Z=Object(R["a"])(regeneratorRuntime.mark((function e(t){var n,r,a,c,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n="",e.next=3,Object(G["a"])({url:"/gic-auth-web/get-app-by-code"},{menuCode:t}).then((function(e){n=e.result}));case 3:return r={menu:["/gic-auth-web/login-user-menu-of-app","/gic-auth-web/login-collaborator-menu-of-app"],opera:["/gic-auth-web/login-user-operation-item-of-app","/gic-auth-web/login-collaborator-operation-item"]},a=0,e.next=7,Object(G["a"])({url:"/application-center-web/business/cooperation-application/find-list"}).then((function(e){var t=e.result||[];t.some((function(e){return e.applicationId==n}))&&(a=1)}));case 7:return c=Object(G["a"])({url:r.menu[a]},{appId:n}).then((function(e){W=ee(e.result||[]),O["a"].commit("updateRoutePath",e.result?e.result[0].children:[])})),i=Object(G["a"])({url:r.opera[a]},{appId:n}).then((function(e){q=te(e.result||[])})),e.abrupt("return",Promise.all([c,i]));case 10:case"end":return e.stop()}}),e)}))),Z.apply(this,arguments)}function ee(e){var t=[];return e.forEach((function(e){e.projectUrlForWeb==z&&e.menuUrl&&t.push(e.menuUrl),Array.isArray(e.children)&&(t=t.concat(ee(e.children)))})),t}function te(e){var t={};return e.forEach((function(e){t[e.menuCode]=!0})),t}function ne(e){var t=[];return e.forEach((function(e){Array.isArray(e.children)&&(t=t.concat(ne(e.children))),t.push(e.path)})),t}function re(e,t,n){var r=W.some((function(t){return t.indexOf("/#")>=0?t=="/#".concat(e.path):t==e.path}));if(r)return Object.assign(i.a.defaults.headers.common,{route:e.path}),n();V.some((function(t){return t==e.path}))||0==W.length?window.location.href="".concat(J,"/damo-system/no-access"):(Object.assign(i.a.defaults.headers.common,{route:W[0]}),n(W[0]))}function ae(e){return!!q[e]}var ce=function(e){var t=e.projectPath,n=e.isApp,r=e.writeRoute,a=e.router,c=e.routes,o=e.createApp,s=e.menuCode,l=u.a.prototype.$loading({lock:!0,customClass:"medium"});z=t,window.addEventListener("load",Object(R["a"])(regeneratorRuntime.mark((function e(){var u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(u=window.location.pathname,-1!=u.indexOf("/login")){e.next=11;break}return e.next=4,Y().then((function(e){var n=e.result||{},r=n.enterpriseId;Object.assign(i.a.defaults.headers.common,{sign:r,project:t.replace(/^\//,""),route:u.replace(t,"")})}));case 4:if(!n){e.next=9;break}return e.next=7,X(s);case 7:e.next=11;break;case 9:return e.next=11,Q();case 11:Array.isArray(r)&&(W=W.concat(r)),Array.isArray(c)&&(V=ne(c)),a.beforeEach(re),"function"==typeof o&&(l.close(),o());case 15:case"end":return e.stop()}}),e)}))))};u.a.use(a.a),i.a.defaults.withCredentials=!0,u.a.prototype.axios=i.a,u.a.config.productionTip=!1,Object.keys(w).map((function(e){return u.a.filter(e,w[e])})),u.a.mixin(k),u.a.component("mk-button",A),u.a.component(H.name,H),u.a.component("member-info",$),u.a.prototype.axios.interceptors.request.use((function(e){return e.headers["isControl"]=!0,e})),u.a.prototype.$tips=Object(v["b"])(r["Message"],1500),u.a.prototype.$itemCode=B,u.a.prototype.$itemPerm=ae,u.a.config.devtools=!1,window.Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},ce({router:g["a"],routes:b["a"],projectPath:"/welfare",writeRoute:["/index"],menuCode:"welfare",isApp:!0,createApp:function(){new u.a({router:g["a"],store:O["a"],render:function(e){return e(m)}}).$mount("#app")}})},5880:function(e,t){e.exports=Vuex},6389:function(e,t){e.exports=VueRouter},6861:function(e,t,n){},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n("ac6a"),n("456d");var r=n("b775");function a(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var a=e[n];"string"===typeof a&&(a={url:a}),a.url="".concat(t).concat(a.url),e[n]=function(e,t){return Object(r["a"])(a,e,t)}})),e}},"87d1":function(e,t,n){"use strict";n("f8f5")},"88ed":function(e,t,n){},"89c4":function(e,t,n){"use strict";n("3ba8")},"8bbf":function(e,t){e.exports=Vue},"903e":function(e,t,n){e.exports=n.p+"img/w-gic-card.d0646eb3.svg"},"961e":function(e,t,n){"use strict";n("b021")},a18c:function(e,t,n){"use strict";var r=n("6389"),a=n.n(r),c=n("d046"),i=new a.a({mode:"history",base:"/welfare/",routes:c["a"],scrollBehavior:function(e,t,n){if(n&&e.meta.keepAlive)return n;document.documentElement.scrollTop=0}});t["a"]=i},b021:function(e,t,n){},b775:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n("a481"),n("ac6a"),n("456d");var r=n("cebe"),a=n.n(r),c=n("4328"),i=n.n(c),o=n("5c96"),u=n("f121");function s(e){switch(e){case 404:window.location.href=u["e"]+"/damo-system/404";break;case 403:window.location.href=u["e"]+"/damo-system/403";break;case 500:window.location.href=u["e"]+"/damo-system/500";break}}a.a.defaults.baseURL=u["e"];var l=function(e,t,n){if(t=Object.assign({},t),e=Object.assign({},e),e.rest){delete e.rest;var r=e.url;Object.keys(n).map((function(e){r=r.replace("{".concat(e,"}"),n[e])})),e.url=r}var c=void 0===e.alertError||e.alertError;delete e.alertError;var l={url:"",params:"",data:"",method:"get",useFormData:!1,useIntercept:!0,headers:{}};if(l=Object.assign(l,e),e.export)l.params=t.listParams,l.data=t.excel;else if(e.file){var d=new FormData;Object.keys(t).forEach((function(e){d.append(e,t[e])})),l.data=d}else switch(l.useFormData&&(t=i.a.stringify(t)),l.method.toLowerCase()){case"get":l.params=t;break;case"post":l.data=t;break;default:l.data=t;break}return new Promise((function(e,t){a()(l).then((function(n){var r=n.data;if("6666"==r.code){var a=window.location.origin;(a.indexOf("localhost")>=0||a.indexOf("192.168")>=0)&&(a="https://four.gicdev.com"),window.location.href="".concat(a,"/damo-system/login")}if(l.useIntercept&&r.code!=u["a"])return c&&Object(o["Message"])({message:(r.message||"数据加载失败").slice(0,300),type:"warning"}),t(r);e(r)})).catch((function(e){e&&s(e.response.status),Object(o["Message"])({message:(e.response.data.message||"数据加载失败").slice(0,300),type:"warning"}),t(e)}))}))}},bf71:function(e,t,n){e.exports=n.p+"img/more.1d0456f8.svg"},cebe:function(e,t){e.exports=axios},cf45:function(e,t,n){"use strict";n.d(t,"e",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return h})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return g}));n("8e6e"),n("ac6a"),n("456d"),n("c5f6"),n("20d6"),n("28a5"),n("6762"),n("2fdb");var r=n("ade3"),a=n("5c96"),c=n("4360"),i=n("f121"),o=n("4328"),u=n.n(o);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=i["c"],p=function(e,t,n,r){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i="top-icon",o=c.dangerouslyUseHTMLString,u=void 0===o||o,s=c.title,d=void 0===s?"":s,p=c.showClose,f=void 0!==p&&p,h=c.confirmButtonText,m=void 0===h?"确认":h,g=c.cancelButtonText,b=void 0===g?"取消":g,v=c.distinguishCancelAndClose,y=void 0!==v&&v;d&&(i+=" show-title"),a["MessageBox"].confirm(e,d,{customClass:i,showClose:f,dangerouslyUseHTMLString:u,confirmButtonText:m,cancelButtonText:b,distinguishCancelAndClose:y,type:"warning"}).then((function(){t&&t(n)})).catch((function(e){r&&r(l(l({},n),{},{action:e}))}))},f=function(e){var t=e.config,n=e.listParams,r=e.fieldList,a=e.path,i=e.pathName,o=e.query,s={},p=l({},t),f=r.filter((function(e){return t.fields.includes(e.value)}))||[],h=u.a.stringify(o);return p.sensKeys=f.filter((function(e){return e.sensKey})).map((function(e){return e.value})),p.fieldKeys=f.map((function(e){return e.value})),p.fieldNames=f.map((function(e){return e.label})),p.dataUrl="".concat(d.api,"/welfare").concat(a).concat(h?"?"+h:""),p.dataContent=i,delete p.fields,s.excel=p,"wechat"==c["a"].state.project?n.wechatId=c["a"].state.currentAreaId:n.memberCardId=c["a"].state.currentAreaId,s.listParams=n,s},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"get",n=arguments.length>2?arguments[2]:void 0,r=window.localStorage.getItem("welfare-ct-id")||"{}";if(r=JSON.parse(r),"get"===t)return r[e];"set"===t&&(r[e]=n,window.localStorage.setItem("welfare-ct-id",JSON.stringify(r)))},m=function(e,t){var n=e?new Date(e):new Date;return 1==t&&(n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0)),2==t&&(n.setHours(23),n.setMinutes(59),n.setSeconds(59),n.setMilliseconds(999)),n.getTime()},g=function(e){isNaN(e)||(e=Number(e));var t=new Date(e),n=t.getHours();n>=10&&(n="0"+n);var r=t.getMinutes();r>=10&&(r="0"+r);var a=t.getSeconds();return a>=10&&(a="0"+a),n+":"+r+":"+a}},d046:function(e,t,n){"use strict";n.d(t,"a",(function(){return G}));var r=n("2909"),a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("dm-layout",{class:{"hide-left":!e.showLeft},attrs:{"is-app":"","first-menu-code":e.menuCode,"force-show-aside":e.showLeft}},[n("div",{attrs:{slot:"maside"},slot:"maside"},[e.project.includes("card")?n("el-dropdown",{staticClass:"m-title",attrs:{"hide-on-click":!1}},[n("div",{staticClass:"el-dropdown-link"},[n("div",[n("p",{staticClass:"ellipsis"},[e._v(e._s(e.currentAreaName||"未选择域"))]),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})])]),n("el-dropdown-menu",{staticClass:"m-title-menu",attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.areaSubList,(function(t,r){return n("el-dropdown-item",{key:t.areaId+"-"+r,class:{checked:t.areaId===e.currentAreaId}},[n("dl",{on:{click:function(n){return e.setCurrentApp(t)}}},[n("dd",[n("span",[e._v(e._s(t.areaName))]),t.deleteFlag?n("el-tag",{staticClass:"ml5",attrs:{effect:"plain",type:"info"}},[e._v("已删除")]):e._e()],1)]),n("i",{staticClass:"el-icon-check select-icon"})])})),1)],1):e._e(),n("aside-menu",{ref:"asideMenu"})],1),n("div",{attrs:{slot:"bread"},slot:"bread"},[n("app-info",{attrs:{code:e.moduleCode}})],1)]),n("el-dialog",{attrs:{visible:e.noAreaWarnVisible&&e.project.includes("card"),"append-to-body":"",width:"500px","close-on-press-escape":!1,"close-on-click-modal":!0,"show-close":!1,"lock-scroll":""}},[n("div",{staticClass:"text-center"},[n("p",{staticClass:"gray02 fz16",staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[n("i",{staticClass:"el-icon-warning fz30 mr5 warning-color"}),e._v("暂无资源权限")]),n("p",{staticClass:"fz13 gray03 mt20"},[e._v("没有资源权限,如:可操作的会员卡、服务号等,请联系管理员进行配置")])]),n("span",{attrs:{slot:"footer"},slot:"footer"},[n("div",{staticClass:"text-center pb20"},[n("el-button",{on:{click:function(t){return e.$router.push("/index")}}},[e._v("返回首页")])],1)])]),n("switch-page")],1)},c=[],i=(n("8e6e"),n("ac6a"),n("456d"),n("ade3")),o=(n("6762"),n("2fdb"),n("96cf"),n("1da1")),u=(n("28a5"),n("5880")),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-menu",{ref:"asideMenu",attrs:{"default-active":e.activeIndex},on:{select:e.handleSelect}},[e._l(e.menu,(function(t){return[0!=t.isShow&&Array.isArray(t.children)&&t.children.filter((function(e){return e.isShow})).length>0?n("el-submenu",{key:t.menuId,attrs:{"popper-class":"dm-menu-submenu",index:""+t.menuId}},[n("template",{slot:"title"},[n("i",{class:["menu-icon",t.iconUrl]}),n("span",{staticClass:"menu-text"},[e._v(e._s(t.menuName))])]),e._l(t.children,(function(r){return[0!=r.isShow?n("el-menu-item",{key:r.menuId,attrs:{index:t.menuId+"-"+r.menuId}},[n("i",{class:["menu-icon",r.iconUrl]}),n("span",{staticClass:"menu-text",attrs:{slot:"title"},slot:"title"},[e._v(e._s(r.menuName))])]):e._e()]}))],2):0!=t.isShow?n("el-menu-item",{key:t.menuId,attrs:{index:""+t.menuId}},[n("i",{class:["menu-icon",t.iconUrl]}),n("span",{staticClass:"menu-text",attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.menuName))])]):e._e()]}))],2)},l=[];n("7514"),n("a481");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={name:"AsideMenu",data:function(){return{menuFlat:[],parentdIds:[],activeIndex:""}},methods:{flat:function(e){var t=this;e.forEach((function(e){t.menuFlat.push(e),Array.isArray(e.children)&&e.children.length>0&&t.flat(e.children)}))},handleSelect:function(e){var t=this,n=window.location.pathname;n=n.split("/")[1],n="/".concat(n);var r=e.split("-"),a=r.length>1?r[1]:r[0],c=this.menuFlat.filter((function(e){return e.menuId==a}))[0]||{},i=c.menuUrl||"",o=c.projectUrlForWeb;if(r.length>1){var u=c.children||[];u[0]&&u[0].menuUrl&&(i=u[0].menuUrl,o=u[0].projectUrlForWeb)}this.menu.map((function(e){Array.isArray(e.children)&&e.children.length>0&&e.menuId!=r[0]&&e.children.some((function(e){return e.isShow}))&&t.$refs.asideMenu.close("".concat(e.menuId))})),n===o?this.$router.push(i.replace("/#","")):window.location.href="".concat(o).concat(i)},getActiveIndex:function(){var e=this,t=this.menu.find((function(t){if(!t.children||!t.children.filter((function(e){return e.isShow})).length)return t.menuUrl===e.$route.path||t.menuUrl===e.$route.meta.path;var n=t.children.find((function(t){return t.menuUrl===e.$route.path||t.menuUrl===e.$route.meta.path}));return!!n||void 0}));if(t)if(t.children&&t.children.filter((function(e){return e.isShow})).length){var n=t.children.find((function(t){return t.menuUrl===e.$route.path||t.menuUrl===e.$route.meta.path}));this.activeIndex="".concat(t.menuId,"-").concat(n.menuId)}else this.activeIndex="".concat(t.menuId)}},computed:p(p({},Object(u["mapState"])(["routePath","menuCode","project"])),{},{menu:function(){var e=this.project;if(""==e||"index"==e)return[];var t=e.includes("card")?"card":"gift",n=this.routePath.filter((function(e){return e.menuCode.includes(t)}));return n||[]}}),watch:{menu:{handler:function(){this.flat(this.menu.slice()),this.getActiveIndex()},deep:!0,immediate:!0},"$route.path":{handler:function(){this.getActiveIndex()}}}},h=f,m=n("2877"),g=Object(m["a"])(h,s,l,!1,null,null,null),b=g.exports,v=function(){var e=this,t=e.$createElement,r=e._self._c||t;return""!=e.project&&"index"!=e.project?r("div",{staticClass:"switch-page"},[r("el-popover",{attrs:{placement:"left-end","open-delay":"200",width:"143",trigger:"hover","popper-class":"sw-page-pop"}},[r("div",[r("ul",{staticClass:"toggle"},[r("li",{directives:[{name:"show",rawName:"v-show",value:!e.project.includes("gift"),expression:"!project.includes('gift')"}]},[r("router-link",{attrs:{to:"/gift-manage/real-gift"}},[r("img",{attrs:{src:n("4c57"),width:"16"}}),e._v("礼品")])],1),r("li",{directives:[{name:"show",rawName:"v-show",value:!e.project.includes("card"),expression:"!project.includes('card')"}]},[r("router-link",{attrs:{to:"/gic-card/list"}},[r("img",{attrs:{src:n("903e"),width:"16"}}),e._v("卡券")])],1)])]),r("div",{staticClass:"s-icon mb10",attrs:{slot:"reference"},slot:"reference"},[r("img",{attrs:{src:n("bf71"),width:"30",height:"30"}})])]),r("el-popover",{attrs:{"open-delay":"200",placement:"left-end",width:"365",trigger:"hover","popper-class":"sw-page-pop"},on:{hide:e.close},model:{value:e.showCanUseApp,callback:function(t){e.showCanUseApp=t},expression:"showCanUseApp"}},[r("div",{staticClass:"pl15"},[r("div",{staticClass:"text-right"},[r("i",{staticClass:"el-dialog__close el-icon el-icon-close mr10 cursor",on:{click:e.close}})]),r("ul",{staticClass:"app-list"},[e._l(e.appList,(function(t,n){return r("li",{key:n,on:{click:function(n){return e.goLink(t)}}},[r("div",[r("img",{attrs:{src:t.iconUrl,draggable:"false"}}),r("p",{staticClass:"ellipsis-100",attrs:{title:t.appName}},[e._v(e._s(t.appName))])])])})),0==e.appList.length?r("div",{staticClass:"empty_block"}):e._e()],2)]),r("div",{staticClass:"s-icon",attrs:{slot:"reference"},slot:"reference"},[r("img",{attrs:{src:n("0ae1"),width:"30",height:"30"}})])])],1):e._e()},y=[],w=n("2934"),k=w["a"].getWelfareAppList,O={name:"SwitchPage",data:function(){return{showCanUseApp:!1,appList:[]}},mounted:function(){this.getAppList()},methods:{close:function(){this.showCanUseApp=!1,this.$store.commit("updateShowCornerCanUseApp",!1)},getAppList:function(){var e=this;k().then((function(t){e.appList=t.result||[]}))},goLink:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:localStorage.setItem("appApplicationId",t.applicationId),window.open(t.authorizeUrl,"_blank","noopener");case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},computed:{project:function(){return this.$store.state.project},showCornerCanUseApp:function(){return this.$store.state.showCornerCanUseApp}},watch:{showCornerCanUseApp:function(e){e&&(this.showCanUseApp=!0)}}},j=O,C=(n("f602"),n("87d1"),Object(m["a"])(j,v,y,!1,null,"c66389e8",null)),S=C.exports,x=n("ed08"),P=n("cf45");function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _=w["a"].getSubappList,L={name:"Layout",components:{asideMenu:b,switchPage:S},data:function(){return{noAreaWarnVisible:!1}},mounted:function(){this.init()},methods:{handleSubApp:function(e){var t=e.type,n=e.areaId,r=e.reason;this.addSubResVisible=!0,this.$refs.addSubRes.setData({type:t,areaId:n,reason:r})},addSubApp:function(){this.subAppDialogVisible=!0},setCurrentApp:function(e){var t=e.areaId;this.$router.push("/"+this.$route.path.split("/")[1]),this.$store.commit("setCurrentSubApp",t)},init:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,n,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.moduleCode,e.next=3,_();case 3:if(n=e.sent,this.$store.commit("setSubAppList",n.result.result||[]),!this.areaSubList.length){e.next=20;break}if(e.prev=6,r=this.$route.query.areaId||"",!r||!this.areaSubList.map((function(e){return e.areaId})).includes(r)){e.next=11;break}return this.$store.commit("setCurrentSubApp",r),e.abrupt("return");case 11:a=Object(P["b"])(t),a&&this.areaSubList.some((function(e){return e.areaId==a}))?this.$store.commit("setCurrentSubApp",a):this.$store.commit("setCurrentSubApp",this.areaSubList[0].areaId),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](6),this.$store.commit("setCurrentSubApp",this.areaSubList[0].areaId);case 18:e.next=21;break;case 20:this.noAreaWarnVisible=!0;case 21:case"end":return e.stop()}}),e,this,[[6,15]])})));function t(){return e.apply(this,arguments)}return t}()},computed:I(I({},Object(u["mapState"])(["default_areaId","currentAreaName","currentAreaId","areaSubList","project","menu","extraHideLeft","appInfo","lock","moduleCode"])),{},{showLeft:function(){return!(""==this.project||"index"==this.project)}}),watch:{currentAreaId:function(e,t){Object(x["h"])()}}},E=L,D=(n("961e"),Object(m["a"])(E,a,c,!1,null,"7f0f39b3",null)),$=D.exports,N=[{path:"/gic-card",component:$,redirect:"/gic-card/list",children:[{path:"list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"ea75"))}},{path:"member-get",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"3d96"))},meta:{path:"/gic-card/list"}},{path:"stock-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"7e3b"))},meta:{path:"/gic-card/list"}},{path:"stock-upload-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"ac7c"))}},{path:"send-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"6106"))}},{path:"add",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"b2c7"))},meta:{type:"add",path:"/gic-card/list"}},{path:"edit",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"b2c7"))},meta:{type:"edit",path:"/gic-card/list"}},{path:"copy",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"b2c7"))},meta:{type:"copy",path:"/gic-card/list"}},{path:"info",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"903ea"))},meta:{type:"info",path:"/gic-card/list"}},{path:"info-edit",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"903ea"))},meta:{type:"edit",path:"/gic-card/list"}},{path:"destory-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"e2d0"))}}]}],U=[{path:"/card-package",component:$,redirect:"/card-package/list",children:[{path:"list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"3c64"))}},{path:"add",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"0c0e"))},meta:{type:"add",path:"/card-package/list"}},{path:"edit",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"0c0e"))},meta:{type:"edit",path:"/card-package/list"}},{path:"send-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"b79b"))}},{path:"stock-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"af2d"))},meta:{path:"/card-package/list"}}]}],M=[{path:"/gift-manage",component:$,redirect:"/gift-manage/real-gift",children:[{path:"real-gift",component:function(){return n.e("chunk-3dcea544").then(n.bind(null,"e6de"))}},{path:"real-gift-detail",component:function(){return n.e("chunk-9829e680").then(n.bind(null,"ffec"))},meta:{path:"/gift-manage/real-gift"}},{path:"real-stock-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"e9f5"))},meta:{path:"/gift-manage/list"}}]}],T=[{path:"/gift-manage",component:$,redirect:"/gift-manage/virtual-gift",children:[{path:"virtual-gift",component:function(){return n.e("chunk-1006d6d9").then(n.bind(null,"f011"))}},{path:"virtual-gift-detail",component:function(){return n.e("chunk-14ee1b04").then(n.bind(null,"a0f2"))},meta:{path:"/gift-manage/virtual-gift"}},{path:"virtual-stock-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"1672"))},meta:{path:"/gift-manage/list"}}]}],F=[{path:"/gift-manage",component:$,redirect:"/gift-manage/stock-record",children:[{path:"stock-record",component:function(){return n.e("chunk-3deefcb9").then(n.bind(null,"bf73"))}}]},{path:"/setting",component:$,redirect:"/setting/sales-return-setting",children:[{path:"sales-return-setting",component:function(){return n.e("chunk-6287d3af").then(n.bind(null,"fa56"))}},{path:"address-lib-list",component:function(){return n.e("chunk-0d4ebdfa").then(n.bind(null,"48c3"))}},{path:"address-lib-add",component:function(){return n.e("chunk-34bff564").then(n.bind(null,"f283"))},meta:{type:"add",path:"/settinge/address-lib-list"}},{path:"address-lib-edit",component:function(){return n.e("chunk-34bff564").then(n.bind(null,"f283"))},meta:{type:"edit",path:"/settinge/address-lib-list"}},{path:"pickup-list",component:function(){return n.e("chunk-28cb370c").then(n.bind(null,"e54f"))}},{path:"pickup-add",component:function(){return n.e("chunk-40634738").then(n.bind(null,"1420"))},meta:{type:"add",path:"/setting/pickup-list"}},{path:"pickup-edit",component:function(){return n.e("chunk-40634738").then(n.bind(null,"1420"))},meta:{type:"edit",path:"/setting/pickup-list"}}]},{path:"/card-setting",component:$,redirect:"/setting/sales-return-setting",children:[{path:"custom",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"a0f4"))}}]}],H=[{path:"/gift-performance",component:$,redirect:"//gift-performance/delivery",children:[{path:"delivery",component:function(){return n.e("chunk-6b67a942").then(n.bind(null,"1e5b"))}},{path:"delivery-detail",component:function(){return n.e("chunk-474caa97").then(n.bind(null,"de2d"))},meta:{path:"/gift-performance/delivery"}},{path:"refund",component:function(){return n.e("chunk-77938c7c").then(n.bind(null,"7211"))}},{path:"record",component:function(){return n.e("chunk-bb542da4").then(n.bind(null,"0035"))}}]}],B=[].concat(Object(r["a"])(N),Object(r["a"])(U),Object(r["a"])(M),Object(r["a"])(T),Object(r["a"])(F),Object(r["a"])(H)),R=[{path:"/",component:$,redirect:"/gic-card/list",children:[{path:"/index",component:function(){return n.e("chunk-f803170c").then(n.bind(null,"1e4b"))}}]},{path:"*",redirect:"/index"}],G=[].concat(R,Object(r["a"])(B))},ed08:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return f})),n.d(t,"c",(function(){return h})),n.d(t,"f",(function(){return m}));n("8e6e"),n("2909"),n("5df3"),n("4f7f"),n("34ef"),n("28a5"),n("386d"),n("4917"),n("3b2b");var r=n("ade3"),a=(n("53ca"),n("456d"),n("ac6a"),n("a481"),n("6b54"),n("a18c"));function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var o=function(e,t){var n,r=t||200;return function(){var t=this,a=arguments;n&&clearTimeout(n),n=setTimeout((function(){n=null,e.apply(t,a)}),r)}},u=function(e,t){var n=null,r=new Date;return function(){var a=new Date,c=a-r,i=arguments,o=this;c>=t?(n&&clearTimeout(n),e.apply(o,i),r=a):n||(n=setTimeout((function(){e.apply(o,i),r=new Date}),t-c))}},s=function(e){return e*=1,e<10?"0"+e:e},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd-HH-mm-ss",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return n?{y:"",h:""}:"";"number"!==typeof e&&"string"!==typeof e||(e=new Date(e));try{if("string"===typeof e)return n?{y:e,h:""}:e;var r=t.indexOf("yyyy")>=0?s(e.getFullYear()):"",a=t.indexOf("MM")>=0?"-"+s(e.getMonth()+1):"",c=t.indexOf("dd")>=0?"-"+s(e.getDate()):"",i=t.indexOf("HH")>=0?" "+s(e.getHours()):"",o=t.indexOf("mm")>=0?":"+s(e.getMinutes()):"",u=t.indexOf("ss")>=0?":"+s(e.getSeconds()):"";return n?{y:r+a+c,h:i+o+u}:r+a+c+i+o+u}catch(l){return n?{y:e,h:""}:e}},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;try{t>0&&(e=e.toFixed(t))}catch(a){return e}var n=e.toString(),r=n.indexOf(".")>-1?/(\d)(?=(\d{3})+\.)/g:/(\d)(?=(?:\d{3})+$)/g;return n.replace(r,"$1,")},p=function(e){return e?'<p class="cell-time">'.concat(l(e,"yyyy-MM-dd-HH-mm-ss",!0).y,'</p>\n <p class="cell-time">').concat(l(e,"yyyy-MM-dd-HH-mm-ss",!0).h,"</p>\n "):"--"},f=function(){var e=a["a"].app._route,t=i({},e.query);delete t.areaId;var n=i(i({},t),{},{timestamp:(new Date).getTime()});a["a"].push({path:e.fullPath,query:n})},h=function(e){return JSON.parse(JSON.stringify(e))},m=function(e){return""===e||null==e}},f121:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"f",(function(){return u}));var r="0000";function a(){var e=window.location.origin;return(e.indexOf("localhost")>=0||e.indexOf("192.168")>=0)&&(e="https://four.gicdev.com"),e}t["c"]={api:window.location.protocol+"//"+window.location.host||""};var c=a(),i=("four.gicdev.com"===window.location.host||window.location.origin,"/api-marketing"),o="/gic-auth-web",u="/api-welfare"},f602:function(e,t,n){"use strict";n("1921")},f8f5:function(e,t,n){}}); (function(e){function t(t){for(var r,a,o=t[0],u=t[1],s=t[2],d=0,l=[];d<o.length;d++)a=o[d],Object.prototype.hasOwnProperty.call(c,a)&&c[a]&&l.push(c[a][0]),c[a]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);p&&p(t);while(l.length)l.shift()();return i.push.apply(i,s||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],r=!0,a=1;a<n.length;a++){var o=n[a];0!==c[o]&&(r=!1)}r&&(i.splice(t--,1),e=u(u.s=n[0]))}return e}var r={},a={app:0},c={app:0},i=[];function o(e){return u.p+"js/"+({"card-package~gic-card":"card-package~gic-card","card-package":"card-package","gic-card":"gic-card"}[e]||e)+"."+{"card-package~gic-card":"c7e303ef","card-package":"026766fb","gic-card":"924cdf6e","chunk-09efd3db":"c29e7453","chunk-0d4ebdfa":"e178b8db","chunk-1006d6d9":"748aa352","chunk-14ee1b04":"c4258226","chunk-28cb370c":"082ccef3","chunk-34bff564":"25d8bf94","chunk-350bdb36":"b89aee58","chunk-3da56340":"21faa2c7","chunk-3dcea544":"0ee04761","chunk-40634738":"20f0e58f","chunk-474caa97":"a34130f8","chunk-47f8737e":"b31f7bd2","chunk-61f8141c":"9c5c75e4","chunk-6287d3af":"32a6c603","chunk-f803170c":"527ed0ea"}[e]+".js"}function u(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,u),n.l=!0,n.exports}u.e=function(e){var t=[],n={"card-package~gic-card":1,"card-package":1,"gic-card":1,"chunk-09efd3db":1,"chunk-1006d6d9":1,"chunk-14ee1b04":1,"chunk-28cb370c":1,"chunk-3da56340":1,"chunk-3dcea544":1,"chunk-40634738":1,"chunk-474caa97":1,"chunk-47f8737e":1,"chunk-61f8141c":1,"chunk-f803170c":1};a[e]?t.push(a[e]):0!==a[e]&&n[e]&&t.push(a[e]=new Promise((function(t,n){for(var r="css/"+({"card-package~gic-card":"card-package~gic-card","card-package":"card-package","gic-card":"gic-card"}[e]||e)+"."+{"card-package~gic-card":"223f94e1","card-package":"7a79b96b","gic-card":"57fa2b6d","chunk-09efd3db":"439cdc24","chunk-0d4ebdfa":"31d6cfe0","chunk-1006d6d9":"76456cba","chunk-14ee1b04":"6cbaa722","chunk-28cb370c":"c4067039","chunk-34bff564":"31d6cfe0","chunk-350bdb36":"31d6cfe0","chunk-3da56340":"367d6373","chunk-3dcea544":"9e122310","chunk-40634738":"8686880a","chunk-474caa97":"19a10178","chunk-47f8737e":"b4f49a30","chunk-61f8141c":"46b9efb2","chunk-6287d3af":"31d6cfe0","chunk-f803170c":"9190ad7d"}[e]+".css",c=u.p+r,i=document.getElementsByTagName("link"),o=0;o<i.length;o++){var s=i[o],d=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(d===r||d===c))return t()}var l=document.getElementsByTagName("style");for(o=0;o<l.length;o++){s=l[o],d=s.getAttribute("data-href");if(d===r||d===c)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var r=t&&t.target&&t.target.src||c,i=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=r,delete a[e],p.parentNode.removeChild(p),n(i)},p.href=c;var f=document.getElementsByTagName("head")[0];f.appendChild(p)})).then((function(){a[e]=0})));var r=c[e];if(0!==r)if(r)t.push(r[2]);else{var i=new Promise((function(t,n){r=c[e]=[t,n]}));t.push(r[2]=i);var s,d=document.createElement("script");d.charset="utf-8",d.timeout=120,u.nc&&d.setAttribute("nonce",u.nc),d.src=o(e);var l=new Error;s=function(t){d.onerror=d.onload=null,clearTimeout(p);var n=c[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",l.name="ChunkLoadError",l.type=r,l.request=a,n[1](l)}c[e]=void 0}};var p=setTimeout((function(){s({type:"timeout",target:d})}),12e4);d.onerror=d.onload=s,document.head.appendChild(d)}return Promise.all(t)},u.m=e,u.c=r,u.d=function(e,t,n){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)u.d(n,r,function(t){return e[t]}.bind(null,r));return n},u.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="/welfare/",u.oe=function(e){throw e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],d=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var p=d;i.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"0ae1":function(e,t,n){e.exports=n.p+"img/app.ab4c23ff.svg"},1921:function(e,t,n){},"1f99":function(e,t,n){},2934:function(e,t,n){"use strict";n("8e6e"),n("ac6a"),n("456d");var r=n("ade3"),a=n("71f6"),c=n("f121");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={loginUserMenu:"/login-user-menu",loginUserMenuOfApp:"/login-user-menu-of-app"},s={getSubappList:"/area/member-cards",getAppList:"/stock/application-list",getStockList:{url:"/stock/stock-list",method:"post",useFormData:!0},getStockActivityStatistics:"/stock/activity-statistics",getRelationId:"/gift/get-gift-id",virtualUploadLog:{url:"/gift/vir-card-log-page",method:"post"},virtualErrorPage:"/gift/vir-card-error-page",getWelfareAppList:"/gift/get-welfare-application-list"},d={getAppInfo:{url:"/enterprise-serve-info",alertError:!1},getMallShopList:"/outer/all-mall-shop",activityList:"/activity/list-marketing-page",getActivityInfo:"/activity/get-marketing-activity"};s=Object(a["a"])(s,c["f"]),u=Object(a["a"])(u,c["b"]),d=Object(a["a"])(d,c["d"]),t["a"]=o(o(o({},u),d),s);c["d"]},"3ba8":function(e,t,n){},4360:function(e,t,n){"use strict";n("96cf");var r=n("1da1"),a=(n("7514"),n("20d6"),n("8bbf")),c=n.n(a),i=n("5880"),o=n.n(i),u=n("cf45");c.a.use(o.a),t["a"]=new o.a.Store({state:{lock:!1,loading:!1,defaultAreaId:"",currentAreaName:"",currentAreaId:"",deleteFlag:!1,areaSubList:[],moduleCode:"welfare",project:"",menu:{},extraHideLeft:"",mainHeight:0,routePath:[],showCornerCanUseApp:!1},mutations:{updateShowCornerCanUseApp:function(e,t){e.showCornerCanUseApp=t},updateRoutePath:function(e,t){e.routePath=t},updateMainHeight:function(e,t){e.mainHeight=t},updateLock:function(e,t){e.lock=t},updateAreaName:function(e,t){var n=t.areaId,r=t.areaName,a=e.areaSubList.findIndex((function(e){return e.areaId===n}));-1!==a&&(e.areaSubList[a].areaName=r,e.currentAreaId===n&&(e.currentAreaName=r))},setSubAppList:function(e,t){e.areaSubList=t},setDefaultSubAppId:function(e,t){},setCurrentSubApp:function(e,t){var n=e.areaSubList.find((function(e){return e.areaId===t}))||{};Object(u["b"])(e.moduleCode,"set",t),e.currentAreaId=n.areaId||"",e.currentAreaName=n.areaName||"",e.deleteFlag=n.deleteFlag||!1},setProject:function(e,t){e.project=t||""},updateExtraHideLeft:function(e,t){e.extraHideLeft=t||""}},actions:{setDefaultAppId:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.commit("setDefaultSubAppId",n);case 1:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},plugins:[]})},"4c57":function(e,t,n){e.exports=n.p+"img/w-real-gifts.a8edb5c6.svg"},"56d7":function(e,t,n){"use strict";n.r(t);n("7f7f"),n("ac6a"),n("456d"),n("cadf"),n("551c"),n("f751"),n("097d"),n("1f99"),n("88ed"),n("6861");var r=n("5c96"),a=n.n(r),c=n("cebe"),i=n.n(c),o=n("8bbf"),u=n.n(o),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dm-reset",attrs:{id:"app"}},[n("router-view")],1)},d=[],l=(n("28a5"),{name:"App",data:function(){return{isRouterAlive:!0}},mounted:function(){this.$store.commit("updateMainHeight",document.body.offsetHeight-180)},watch:{$route:{handler:function(e){e.path.split("/")[1]&&this.$store.commit("setProject",window.location.pathname.split("/")[2])},deep:!0,immediate:!0}}}),p=l,f=n("2877"),h=Object(f["a"])(p,s,d,!1,null,null,null),m=h.exports,g=n("a18c"),b=n("d046"),v=(n("6c7b"),n("c5f6"),n("ed08")),y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"¥",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=Number(e);return isNaN(a)?e:"".concat(r?t:"").concat(Object(v["d"])(a,n))},w={amountFormat:y},k={computed:{currentAreaId:function(){return this.$store.state.currentAreaId},currentAreaIds:function(){return this.$store.state.currentAreaId?[this.$store.state.currentAreaId]:[]},currentAreaDelete:function(){return this.$store.state.delete_flag}}},O=n("4360"),j=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("dm-perm-button",{attrs:{"perm-tip":e.permTip,"perm-tip-placement":e.permTipPlacement,size:e.size,type:e.type,plain:e.plain,round:e.round,loading:e.loading,disabled:e.disabled,icon:e.icon,autofocus:e.autofocus,"native-type":e.nativeType},nativeOn:{click:function(t){return e.handleClick(t)}}},[e._t("default")],2)},C=[],S={name:"MkButton",props:{effect:{type:String,default:"dark"},delayTimes:{type:Number,default:300},permTipPlacement:{type:String,default:"top"},size:String,type:String,plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},icon:String,autofocus:{type:Boolean,default:!1},nativeType:{type:String,default:"button"},option:{type:Object,default:function(){return{}}}},data:function(){return{permTip:"",disabled:!1}},mounted:function(){return this.option.perm?(this.permTip="您无该操作权限,请联系超管!",void(this.disabled=!0)):this.option.deleteFlag?(this.disabled=!0,void(this.permTip=this.option.deleteRemark||"域已被删除")):void 0},methods:{handleClick:function(){this.disabled||this.$emit("click")}}},x=S,P=Object(f["a"])(x,j,C,!1,null,null,null),A=P.exports,I=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"member-info",style:"height:"+e.height+"px"},[n("dm-preview-img",{staticClass:"img",attrs:{img:e.memberImage,width:e.width,height:e.height}}),n("p",{class:e.hidePhone?"pt10":""},[e._v(e._s(e.memberName||"--"))]),e.hidePhone?e._e():n("p",{class:e.memberPhone?"":"hide"},[e._v(e._s(e.showPhoneTip?"手机号码:":"")+e._s(e.memberPhone||"--"))])],1)},_=[],L={name:"Memberinfo",props:{memberName:{type:String},memberImage:{type:String},memberPhone:{type:String},showPhoneTip:{type:Boolean,default:!1},width:{type:[String,Number],default:40},height:{type:[String,Number],default:40},hidePhone:{type:Boolean,default:!1}},data:function(){return{}}},E=L,D=(n("89c4"),Object(f["a"])(E,I,_,!1,null,"e0d88100",null)),$=D.exports,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-image",{attrs:{src:e.src,fit:e.fit,lazy:e.lazy,"scroll-container":e.scrollContainer,"preview-src-list":e.previewSrcList,"z-index":e.zIndex},on:{click:e.viewClick},scopedSlots:e._u([{key:"error",fn:function(){return[e._t("error")]},proxy:!0}],null,!0)})},U=[],M={name:"DmElImageView",props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},previewSrcList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3}},methods:{viewClick:function(){this.$emit("click"),document.body.style=""}}},T=M,F=Object(f["a"])(T,N,U,!1,null,null,null),H=F.exports,B={gicCardFormAdd:"gicCardFormAdd",gicCardFormCopy:"gicCardFormCopy",gicCardFormInfo:"gicCardFormInfo",gicCardFormEdit:"gicCardFormEdit",gicCardFormDel:"gicCardFormDel",gicCardGroupBtn:"gicCardGroupBtn",gicCardMemberGetExport:"gicCardMemberGetExport",gicCardGiveLogExport:"gicCardGiveLogExport",gicCardGroupSendForm:"gicCardGroupSendForm",gicCardGroupSendInfo:"gicCardGroupSendInfo",gicCardGroupSendInfoLog:"gicCardGroupSendInfoLog",gicCardStopGroupSend:"gicCardStopGroupSend",gicCardSyncStock:"gicCardSyncStock",gicCardDestory:"gicCardDestory",gicCardDestoryExport:"gicCardDestoryExport",gicAddPackage:"gicAddPackage",gicEditPackage:"gicEditPackage",gicDeletePackage:"gicDeletePackage",gicSyncStockPack:"gicSyncStockPack",gicAdjustStockPack:"gicAdjustStockPack",gicCardShelfLogExportBtn:"gicCardShelfLogExportBtn"},R=(n("a481"),n("96cf"),n("1da1")),G=(n("5df3"),n("b775")),z="",V=[],W=[],q={},J=K();function K(){var e=window.location.origin;return(e.indexOf("localhost")>=0||e.indexOf("192.168")>=0)&&(e="https://four.gicdev.com"),e}function Y(){return Object(G["a"])({url:"/gic-auth-web/get-login-user-info"})}function Q(){var e=Object(G["a"])({url:"/gic-auth-web/login-user-menu"}).then((function(e){W=ee(e.result||[])})),t=Object(G["a"])({url:"/gic-auth-web/login-user-operation-item"}).then((function(e){q=te(e.result||[])}));return Promise.all([e,t])}function X(e){return Z.apply(this,arguments)}function Z(){return Z=Object(R["a"])(regeneratorRuntime.mark((function e(t){var n,r,a,c,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n="",e.next=3,Object(G["a"])({url:"/gic-auth-web/get-app-by-code"},{menuCode:t}).then((function(e){n=e.result}));case 3:return r={menu:["/gic-auth-web/login-user-menu-of-app","/gic-auth-web/login-collaborator-menu-of-app"],opera:["/gic-auth-web/login-user-operation-item-of-app","/gic-auth-web/login-collaborator-operation-item"]},a=0,e.next=7,Object(G["a"])({url:"/application-center-web/business/cooperation-application/find-list"}).then((function(e){var t=e.result||[];t.some((function(e){return e.applicationId==n}))&&(a=1)}));case 7:return c=Object(G["a"])({url:r.menu[a]},{appId:n}).then((function(e){W=ee(e.result||[]),O["a"].commit("updateRoutePath",e.result?e.result[0].children:[])})),i=Object(G["a"])({url:r.opera[a]},{appId:n}).then((function(e){q=te(e.result||[])})),e.abrupt("return",Promise.all([c,i]));case 10:case"end":return e.stop()}}),e)}))),Z.apply(this,arguments)}function ee(e){var t=[];return e.forEach((function(e){e.projectUrlForWeb==z&&e.menuUrl&&t.push(e.menuUrl),Array.isArray(e.children)&&(t=t.concat(ee(e.children)))})),t}function te(e){var t={};return e.forEach((function(e){t[e.menuCode]=!0})),t}function ne(e){var t=[];return e.forEach((function(e){Array.isArray(e.children)&&(t=t.concat(ne(e.children))),t.push(e.path)})),t}function re(e,t,n){var r=W.some((function(t){return t.indexOf("/#")>=0?t=="/#".concat(e.path):t==e.path}));if(r)return Object.assign(i.a.defaults.headers.common,{route:e.path}),n();V.some((function(t){return t==e.path}))||0==W.length?window.location.href="".concat(J,"/damo-system/no-access"):(Object.assign(i.a.defaults.headers.common,{route:W[0]}),n(W[0]))}function ae(e){return!!q[e]}var ce=function(e){var t=e.projectPath,n=e.isApp,r=e.writeRoute,a=e.router,c=e.routes,o=e.createApp,s=e.menuCode,d=u.a.prototype.$loading({lock:!0,customClass:"medium"});z=t,window.addEventListener("load",Object(R["a"])(regeneratorRuntime.mark((function e(){var u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(u=window.location.pathname,-1!=u.indexOf("/login")){e.next=11;break}return e.next=4,Y().then((function(e){var n=e.result||{},r=n.enterpriseId;Object.assign(i.a.defaults.headers.common,{sign:r,project:t.replace(/^\//,""),route:u.replace(t,"")})}));case 4:if(!n){e.next=9;break}return e.next=7,X(s);case 7:e.next=11;break;case 9:return e.next=11,Q();case 11:Array.isArray(r)&&(W=W.concat(r)),Array.isArray(c)&&(V=ne(c)),a.beforeEach(re),"function"==typeof o&&(d.close(),o());case 15:case"end":return e.stop()}}),e)}))))};u.a.use(a.a),i.a.defaults.withCredentials=!0,u.a.prototype.axios=i.a,u.a.config.productionTip=!1,Object.keys(w).map((function(e){return u.a.filter(e,w[e])})),u.a.mixin(k),u.a.component("mk-button",A),u.a.component(H.name,H),u.a.component("member-info",$),u.a.prototype.axios.interceptors.request.use((function(e){return e.headers["isControl"]=!0,e})),u.a.prototype.$tips=Object(v["b"])(r["Message"],1500),u.a.prototype.$itemCode=B,u.a.prototype.$itemPerm=ae,u.a.config.devtools=!1,window.Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},ce({router:g["a"],routes:b["a"],projectPath:"/welfare",writeRoute:["/index"],menuCode:"welfare",isApp:!0,createApp:function(){new u.a({router:g["a"],store:O["a"],render:function(e){return e(m)}}).$mount("#app")}})},5880:function(e,t){e.exports=Vuex},6389:function(e,t){e.exports=VueRouter},6861:function(e,t,n){},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n("ac6a"),n("456d");var r=n("b775");function a(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var a=e[n];"string"===typeof a&&(a={url:a}),a.url="".concat(t).concat(a.url),e[n]=function(e,t){return Object(r["a"])(a,e,t)}})),e}},"87d1":function(e,t,n){"use strict";n("f8f5")},"88ed":function(e,t,n){},"89c4":function(e,t,n){"use strict";n("3ba8")},"8bbf":function(e,t){e.exports=Vue},"903e":function(e,t,n){e.exports=n.p+"img/w-gic-card.d0646eb3.svg"},"961e":function(e,t,n){"use strict";n("b021")},a18c:function(e,t,n){"use strict";var r=n("6389"),a=n.n(r),c=n("d046"),i=new a.a({mode:"history",base:"/welfare/",routes:c["a"],scrollBehavior:function(e,t,n){if(n&&e.meta.keepAlive)return n;document.documentElement.scrollTop=0}});t["a"]=i},b021:function(e,t,n){},b775:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));n("a481"),n("ac6a"),n("456d");var r=n("cebe"),a=n.n(r),c=n("4328"),i=n.n(c),o=n("5c96"),u=n("f121");function s(e){switch(e){case 404:window.location.href=u["e"]+"/damo-system/404";break;case 403:window.location.href=u["e"]+"/damo-system/403";break;case 500:window.location.href=u["e"]+"/damo-system/500";break}}a.a.defaults.baseURL=u["e"];var d=function(e,t,n){if(t=Object.assign({},t),e=Object.assign({},e),e.rest){delete e.rest;var r=e.url;Object.keys(n).map((function(e){r=r.replace("{".concat(e,"}"),n[e])})),e.url=r}var c=void 0===e.alertError||e.alertError;delete e.alertError;var d={url:"",params:"",data:"",method:"get",useFormData:!1,useIntercept:!0,headers:{}};if(d=Object.assign(d,e),e.export)d.params=t.listParams,d.data=t.excel;else if(e.file){var l=new FormData;Object.keys(t).forEach((function(e){l.append(e,t[e])})),d.data=l}else switch(d.useFormData&&(t=i.a.stringify(t)),d.method.toLowerCase()){case"get":d.params=t;break;case"post":d.data=t;break;default:d.data=t;break}return new Promise((function(e,t){a()(d).then((function(n){var r=n.data;if("6666"==r.code){var a=window.location.origin;(a.indexOf("localhost")>=0||a.indexOf("192.168")>=0)&&(a="https://four.gicdev.com"),window.location.href="".concat(a,"/damo-system/login")}if(d.useIntercept&&r.code!=u["a"])return c&&Object(o["Message"])({message:(r.message||"数据加载失败").slice(0,300),type:"warning"}),t(r);e(r)})).catch((function(e){e&&s(e.response.status),Object(o["Message"])({message:(e.response.data.message||"数据加载失败").slice(0,300),type:"warning"}),t(e)}))}))}},bf71:function(e,t,n){e.exports=n.p+"img/more.1d0456f8.svg"},cebe:function(e,t){e.exports=axios},cf45:function(e,t,n){"use strict";n.d(t,"e",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return h})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return g}));n("8e6e"),n("ac6a"),n("456d"),n("c5f6"),n("20d6"),n("28a5"),n("6762"),n("2fdb");var r=n("ade3"),a=n("5c96"),c=n("4360"),i=n("f121"),o=n("4328"),u=n.n(o);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=i["c"],p=function(e,t,n,r){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i="top-icon",o=c.dangerouslyUseHTMLString,u=void 0===o||o,s=c.title,l=void 0===s?"":s,p=c.showClose,f=void 0!==p&&p,h=c.confirmButtonText,m=void 0===h?"确认":h,g=c.cancelButtonText,b=void 0===g?"取消":g,v=c.distinguishCancelAndClose,y=void 0!==v&&v;l&&(i+=" show-title"),a["MessageBox"].confirm(e,l,{customClass:i,showClose:f,dangerouslyUseHTMLString:u,confirmButtonText:m,cancelButtonText:b,distinguishCancelAndClose:y,type:"warning"}).then((function(){t&&t(n)})).catch((function(e){r&&r(d(d({},n),{},{action:e}))}))},f=function(e){var t=e.config,n=e.listParams,r=e.fieldList,a=e.path,i=e.pathName,o=e.query,s={},p=d({},t),f=r.filter((function(e){return t.fields.includes(e.value)}))||[],h=u.a.stringify(o);return p.sensKeys=f.filter((function(e){return e.sensKey})).map((function(e){return e.value})),p.fieldKeys=f.map((function(e){return e.value})),p.fieldNames=f.map((function(e){return e.label})),p.dataUrl="".concat(l.api,"/welfare").concat(a).concat(h?"?"+h:""),p.dataContent=i,delete p.fields,s.excel=p,"wechat"==c["a"].state.project?n.wechatId=c["a"].state.currentAreaId:n.memberCardId=c["a"].state.currentAreaId,s.listParams=n,s},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"get",n=arguments.length>2?arguments[2]:void 0,r=window.localStorage.getItem("welfare-ct-id")||"{}";if(r=JSON.parse(r),"get"===t)return r[e];"set"===t&&(r[e]=n,window.localStorage.setItem("welfare-ct-id",JSON.stringify(r)))},m=function(e,t){var n=e?new Date(e):new Date;return 1==t&&(n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0)),2==t&&(n.setHours(23),n.setMinutes(59),n.setSeconds(59),n.setMilliseconds(999)),n.getTime()},g=function(e){isNaN(e)||(e=Number(e));var t=new Date(e),n=t.getHours();n>=10&&(n="0"+n);var r=t.getMinutes();r>=10&&(r="0"+r);var a=t.getSeconds();return a>=10&&(a="0"+a),n+":"+r+":"+a}},d046:function(e,t,n){"use strict";n.d(t,"a",(function(){return G}));var r=n("2909"),a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("dm-layout",{class:{"hide-left":!e.showLeft},attrs:{"is-app":"","first-menu-code":e.menuCode,"force-show-aside":e.showLeft}},[n("div",{attrs:{slot:"maside"},slot:"maside"},[e.project.includes("card")?n("el-dropdown",{staticClass:"m-title",attrs:{"hide-on-click":!1}},[n("div",{staticClass:"el-dropdown-link"},[n("div",[n("p",{staticClass:"ellipsis"},[e._v(e._s(e.currentAreaName||"未选择域"))]),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})])]),n("el-dropdown-menu",{staticClass:"m-title-menu",attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.areaSubList,(function(t,r){return n("el-dropdown-item",{key:t.areaId+"-"+r,class:{checked:t.areaId===e.currentAreaId}},[n("dl",{on:{click:function(n){return e.setCurrentApp(t)}}},[n("dd",[n("span",[e._v(e._s(t.areaName))]),t.deleteFlag?n("el-tag",{staticClass:"ml5",attrs:{effect:"plain",type:"info"}},[e._v("已删除")]):e._e()],1)]),n("i",{staticClass:"el-icon-check select-icon"})])})),1)],1):e._e(),n("aside-menu",{ref:"asideMenu"})],1),n("div",{attrs:{slot:"bread"},slot:"bread"},[n("app-info",{attrs:{code:e.moduleCode}})],1)]),n("el-dialog",{attrs:{visible:e.noAreaWarnVisible&&e.project.includes("card"),"append-to-body":"",width:"500px","close-on-press-escape":!1,"close-on-click-modal":!0,"show-close":!1,"lock-scroll":""}},[n("div",{staticClass:"text-center"},[n("p",{staticClass:"gray02 fz16",staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[n("i",{staticClass:"el-icon-warning fz30 mr5 warning-color"}),e._v("暂无资源权限")]),n("p",{staticClass:"fz13 gray03 mt20"},[e._v("没有资源权限,如:可操作的会员卡、服务号等,请联系管理员进行配置")])]),n("span",{attrs:{slot:"footer"},slot:"footer"},[n("div",{staticClass:"text-center pb20"},[n("el-button",{on:{click:function(t){return e.$router.push("/index")}}},[e._v("返回首页")])],1)])]),n("switch-page")],1)},c=[],i=(n("8e6e"),n("ac6a"),n("456d"),n("ade3")),o=(n("6762"),n("2fdb"),n("96cf"),n("1da1")),u=(n("28a5"),n("5880")),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-menu",{ref:"asideMenu",attrs:{"default-active":e.activeIndex},on:{select:e.handleSelect}},[e._l(e.menu,(function(t){return[0!=t.isShow&&Array.isArray(t.children)&&t.children.filter((function(e){return e.isShow})).length>0?n("el-submenu",{key:t.menuId,attrs:{"popper-class":"dm-menu-submenu",index:""+t.menuId}},[n("template",{slot:"title"},[n("i",{class:["menu-icon",t.iconUrl]}),n("span",{staticClass:"menu-text"},[e._v(e._s(t.menuName))])]),e._l(t.children,(function(r){return[0!=r.isShow?n("el-menu-item",{key:r.menuId,attrs:{index:t.menuId+"-"+r.menuId}},[n("i",{class:["menu-icon",r.iconUrl]}),n("span",{staticClass:"menu-text",attrs:{slot:"title"},slot:"title"},[e._v(e._s(r.menuName))])]):e._e()]}))],2):0!=t.isShow?n("el-menu-item",{key:t.menuId,attrs:{index:""+t.menuId}},[n("i",{class:["menu-icon",t.iconUrl]}),n("span",{staticClass:"menu-text",attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.menuName))])]):e._e()]}))],2)},d=[];n("7514"),n("a481");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={name:"AsideMenu",data:function(){return{menuFlat:[],parentdIds:[],activeIndex:""}},methods:{flat:function(e){var t=this;e.forEach((function(e){t.menuFlat.push(e),Array.isArray(e.children)&&e.children.length>0&&t.flat(e.children)}))},handleSelect:function(e){var t=this,n=window.location.pathname;n=n.split("/")[1],n="/".concat(n);var r=e.split("-"),a=r.length>1?r[1]:r[0],c=this.menuFlat.filter((function(e){return e.menuId==a}))[0]||{},i=c.menuUrl||"",o=c.projectUrlForWeb;if(r.length>1){var u=c.children||[];u[0]&&u[0].menuUrl&&(i=u[0].menuUrl,o=u[0].projectUrlForWeb)}this.menu.map((function(e){Array.isArray(e.children)&&e.children.length>0&&e.menuId!=r[0]&&e.children.some((function(e){return e.isShow}))&&t.$refs.asideMenu.close("".concat(e.menuId))})),n===o?this.$router.push(i.replace("/#","")):window.location.href="".concat(o).concat(i)},getActiveIndex:function(){var e=this,t=this.menu.find((function(t){if(!t.children||!t.children.filter((function(e){return e.isShow})).length)return t.menuUrl===e.$route.path||t.menuUrl===e.$route.meta.path;var n=t.children.find((function(t){return t.menuUrl===e.$route.path||t.menuUrl===e.$route.meta.path}));return!!n||void 0}));if(t)if(t.children&&t.children.filter((function(e){return e.isShow})).length){var n=t.children.find((function(t){return t.menuUrl===e.$route.path||t.menuUrl===e.$route.meta.path}));this.activeIndex="".concat(t.menuId,"-").concat(n.menuId)}else this.activeIndex="".concat(t.menuId)}},computed:p(p({},Object(u["mapState"])(["routePath","menuCode","project"])),{},{menu:function(){var e=this.project;if(""==e||"index"==e)return[];var t=e.includes("card")?"card":"gift",n=this.routePath.filter((function(e){return e.menuCode.includes(t)}));return n||[]}}),watch:{menu:{handler:function(){this.flat(this.menu.slice()),this.getActiveIndex()},deep:!0,immediate:!0},"$route.path":{handler:function(){this.getActiveIndex()}}}},h=f,m=n("2877"),g=Object(m["a"])(h,s,d,!1,null,null,null),b=g.exports,v=function(){var e=this,t=e.$createElement,r=e._self._c||t;return""!=e.project&&"index"!=e.project?r("div",{staticClass:"switch-page"},[r("el-popover",{attrs:{placement:"left-end","open-delay":"200",width:"143",trigger:"hover","popper-class":"sw-page-pop"}},[r("div",[r("ul",{staticClass:"toggle"},[r("li",{directives:[{name:"show",rawName:"v-show",value:!e.project.includes("gift"),expression:"!project.includes('gift')"}]},[r("router-link",{attrs:{to:"/gift-manage/real-gift"}},[r("img",{attrs:{src:n("4c57"),width:"16"}}),e._v("礼品")])],1),r("li",{directives:[{name:"show",rawName:"v-show",value:!e.project.includes("card"),expression:"!project.includes('card')"}]},[r("router-link",{attrs:{to:"/gic-card/list"}},[r("img",{attrs:{src:n("903e"),width:"16"}}),e._v("卡券")])],1)])]),r("div",{staticClass:"s-icon mb10",attrs:{slot:"reference"},slot:"reference"},[r("img",{attrs:{src:n("bf71"),width:"30",height:"30"}})])]),r("el-popover",{attrs:{"open-delay":"200",placement:"left-end",width:"365",trigger:"hover","popper-class":"sw-page-pop"},on:{hide:e.close},model:{value:e.showCanUseApp,callback:function(t){e.showCanUseApp=t},expression:"showCanUseApp"}},[r("div",{staticClass:"pl15"},[r("div",{staticClass:"text-right"},[r("i",{staticClass:"el-dialog__close el-icon el-icon-close mr10 cursor",on:{click:e.close}})]),r("ul",{staticClass:"app-list"},[e._l(e.appList,(function(t,n){return r("li",{key:n,on:{click:function(n){return e.goLink(t)}}},[r("div",[r("img",{attrs:{src:t.iconUrl,draggable:"false"}}),r("p",{staticClass:"ellipsis-100",attrs:{title:t.appName}},[e._v(e._s(t.appName))])])])})),0==e.appList.length?r("div",{staticClass:"empty_block"}):e._e()],2)]),r("div",{staticClass:"s-icon",attrs:{slot:"reference"},slot:"reference"},[r("img",{attrs:{src:n("0ae1"),width:"30",height:"30"}})])])],1):e._e()},y=[],w=n("2934"),k=w["a"].getWelfareAppList,O={name:"SwitchPage",data:function(){return{showCanUseApp:!1,appList:[]}},mounted:function(){this.getAppList()},methods:{close:function(){this.showCanUseApp=!1,this.$store.commit("updateShowCornerCanUseApp",!1)},getAppList:function(){var e=this;k().then((function(t){e.appList=t.result||[]}))},goLink:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:localStorage.setItem("appApplicationId",t.applicationId),window.open(t.authorizeUrl,"_blank","noopener");case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},computed:{project:function(){return this.$store.state.project},showCornerCanUseApp:function(){return this.$store.state.showCornerCanUseApp}},watch:{showCornerCanUseApp:function(e){e&&(this.showCanUseApp=!0)}}},j=O,C=(n("f602"),n("87d1"),Object(m["a"])(j,v,y,!1,null,"c66389e8",null)),S=C.exports,x=n("ed08"),P=n("cf45");function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _=w["a"].getSubappList,L={name:"Layout",components:{asideMenu:b,switchPage:S},data:function(){return{noAreaWarnVisible:!1}},mounted:function(){this.init()},methods:{handleSubApp:function(e){var t=e.type,n=e.areaId,r=e.reason;this.addSubResVisible=!0,this.$refs.addSubRes.setData({type:t,areaId:n,reason:r})},addSubApp:function(){this.subAppDialogVisible=!0},setCurrentApp:function(e){var t=e.areaId;this.$router.push("/"+this.$route.path.split("/")[1]),this.$store.commit("setCurrentSubApp",t)},init:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,n,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.moduleCode,e.next=3,_();case 3:if(n=e.sent,this.$store.commit("setSubAppList",n.result.result||[]),!this.areaSubList.length){e.next=20;break}if(e.prev=6,r=this.$route.query.areaId||"",!r||!this.areaSubList.map((function(e){return e.areaId})).includes(r)){e.next=11;break}return this.$store.commit("setCurrentSubApp",r),e.abrupt("return");case 11:a=Object(P["b"])(t),a&&this.areaSubList.some((function(e){return e.areaId==a}))?this.$store.commit("setCurrentSubApp",a):this.$store.commit("setCurrentSubApp",this.areaSubList[0].areaId),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](6),this.$store.commit("setCurrentSubApp",this.areaSubList[0].areaId);case 18:e.next=21;break;case 20:this.noAreaWarnVisible=!0;case 21:case"end":return e.stop()}}),e,this,[[6,15]])})));function t(){return e.apply(this,arguments)}return t}()},computed:I(I({},Object(u["mapState"])(["default_areaId","currentAreaName","currentAreaId","areaSubList","project","menu","extraHideLeft","appInfo","lock","moduleCode"])),{},{showLeft:function(){return!(""==this.project||"index"==this.project)}}),watch:{currentAreaId:function(e,t){Object(x["h"])()}}},E=L,D=(n("961e"),Object(m["a"])(E,a,c,!1,null,"7f0f39b3",null)),$=D.exports,N=[{path:"/gic-card",component:$,redirect:"/gic-card/list",children:[{path:"list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"ea75"))}},{path:"member-get",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"3d96"))},meta:{path:"/gic-card/list"}},{path:"stock-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"7e3b"))},meta:{path:"/gic-card/list"}},{path:"stock-upload-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"ac7c"))}},{path:"send-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"6106"))}},{path:"add",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"b2c7"))},meta:{type:"add",path:"/gic-card/list"}},{path:"edit",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"b2c7"))},meta:{type:"edit",path:"/gic-card/list"}},{path:"copy",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"b2c7"))},meta:{type:"copy",path:"/gic-card/list"}},{path:"info",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"903ea"))},meta:{type:"info",path:"/gic-card/list"}},{path:"info-edit",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"903ea"))},meta:{type:"edit",path:"/gic-card/list"}},{path:"destory-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"e2d0"))}}]}],U=[{path:"/card-package",component:$,redirect:"/card-package/list",children:[{path:"list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"3c64"))}},{path:"add",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"0c0e"))},meta:{type:"add",path:"/card-package/list"}},{path:"edit",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"0c0e"))},meta:{type:"edit",path:"/card-package/list"}},{path:"send-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"b79b"))}},{path:"stock-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"af2d"))},meta:{path:"/card-package/list"}}]}],M=[{path:"/gift-manage",component:$,redirect:"/gift-manage/real-gift",children:[{path:"real-gift",component:function(){return n.e("chunk-3dcea544").then(n.bind(null,"e6de"))}},{path:"real-gift-detail",component:function(){return n.e("chunk-47f8737e").then(n.bind(null,"ffec"))},meta:{path:"/gift-manage/real-gift"}},{path:"real-stock-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"e9f5"))},meta:{path:"/gift-manage/list"}}]}],T=[{path:"/gift-manage",component:$,redirect:"/gift-manage/virtual-gift",children:[{path:"virtual-gift",component:function(){return n.e("chunk-1006d6d9").then(n.bind(null,"f011"))}},{path:"virtual-gift-detail",component:function(){return n.e("chunk-14ee1b04").then(n.bind(null,"a0f2"))},meta:{path:"/gift-manage/virtual-gift"}},{path:"virtual-stock-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"1672"))},meta:{path:"/gift-manage/list"}}]}],F=[{path:"/gift-manage",component:$,redirect:"/gift-manage/stock-record",children:[{path:"stock-record",component:function(){return n.e("chunk-09efd3db").then(n.bind(null,"bf73"))}}]},{path:"/setting",component:$,redirect:"/setting/sales-return-setting",children:[{path:"sales-return-setting",component:function(){return n.e("chunk-6287d3af").then(n.bind(null,"fa56"))}},{path:"address-lib-list",component:function(){return n.e("chunk-0d4ebdfa").then(n.bind(null,"48c3"))}},{path:"address-lib-add",component:function(){return n.e("chunk-34bff564").then(n.bind(null,"f283"))},meta:{type:"add",path:"/settinge/address-lib-list"}},{path:"address-lib-edit",component:function(){return n.e("chunk-34bff564").then(n.bind(null,"f283"))},meta:{type:"edit",path:"/settinge/address-lib-list"}},{path:"pickup-list",component:function(){return n.e("chunk-28cb370c").then(n.bind(null,"e54f"))}},{path:"pickup-add",component:function(){return n.e("chunk-40634738").then(n.bind(null,"1420"))},meta:{type:"add",path:"/setting/pickup-list"}},{path:"pickup-edit",component:function(){return n.e("chunk-40634738").then(n.bind(null,"1420"))},meta:{type:"edit",path:"/setting/pickup-list"}}]},{path:"/card-setting",component:$,redirect:"/setting/sales-return-setting",children:[{path:"custom",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"a0f4"))}}]}],H=[{path:"/gift-performance",component:$,redirect:"//gift-performance/delivery",children:[{path:"delivery",component:function(){return n.e("chunk-61f8141c").then(n.bind(null,"1e5b"))}},{path:"delivery-detail",component:function(){return n.e("chunk-474caa97").then(n.bind(null,"de2d"))},meta:{path:"/gift-performance/delivery"}},{path:"refund",component:function(){return n.e("chunk-3da56340").then(n.bind(null,"7211"))}},{path:"record",component:function(){return n.e("chunk-350bdb36").then(n.bind(null,"0035"))}}]}],B=[].concat(Object(r["a"])(N),Object(r["a"])(U),Object(r["a"])(M),Object(r["a"])(T),Object(r["a"])(F),Object(r["a"])(H)),R=[{path:"/",component:$,redirect:"/gic-card/list",children:[{path:"/index",component:function(){return n.e("chunk-f803170c").then(n.bind(null,"1e4b"))}}]},{path:"*",redirect:"/index"}],G=[].concat(R,Object(r["a"])(B))},ed08:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return l})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return f})),n.d(t,"c",(function(){return h})),n.d(t,"f",(function(){return m}));n("8e6e"),n("2909"),n("5df3"),n("4f7f"),n("34ef"),n("28a5"),n("386d"),n("4917"),n("3b2b");var r=n("ade3"),a=(n("53ca"),n("456d"),n("ac6a"),n("a481"),n("6b54"),n("a18c"));function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var o=function(e,t){var n,r=t||200;return function(){var t=this,a=arguments;n&&clearTimeout(n),n=setTimeout((function(){n=null,e.apply(t,a)}),r)}},u=function(e,t){var n=null,r=new Date;return function(){var a=new Date,c=a-r,i=arguments,o=this;c>=t?(n&&clearTimeout(n),e.apply(o,i),r=a):n||(n=setTimeout((function(){e.apply(o,i),r=new Date}),t-c))}},s=function(e){return e*=1,e<10?"0"+e:e},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd-HH-mm-ss",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return n?{y:"",h:""}:"";"number"!==typeof e&&"string"!==typeof e||(e=new Date(e));try{if("string"===typeof e)return n?{y:e,h:""}:e;var r=t.indexOf("yyyy")>=0?s(e.getFullYear()):"",a=t.indexOf("MM")>=0?"-"+s(e.getMonth()+1):"",c=t.indexOf("dd")>=0?"-"+s(e.getDate()):"",i=t.indexOf("HH")>=0?" "+s(e.getHours()):"",o=t.indexOf("mm")>=0?":"+s(e.getMinutes()):"",u=t.indexOf("ss")>=0?":"+s(e.getSeconds()):"";return n?{y:r+a+c,h:i+o+u}:r+a+c+i+o+u}catch(d){return n?{y:e,h:""}:e}},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;try{t>0&&(e=e.toFixed(t))}catch(a){return e}var n=e.toString(),r=n.indexOf(".")>-1?/(\d)(?=(\d{3})+\.)/g:/(\d)(?=(?:\d{3})+$)/g;return n.replace(r,"$1,")},p=function(e){return e?'<p class="cell-time">'.concat(d(e,"yyyy-MM-dd-HH-mm-ss",!0).y,'</p>\n <p class="cell-time">').concat(d(e,"yyyy-MM-dd-HH-mm-ss",!0).h,"</p>\n "):"--"},f=function(){var e=a["a"].app._route,t=i({},e.query);delete t.areaId;var n=i(i({},t),{},{timestamp:(new Date).getTime()});a["a"].push({path:e.fullPath,query:n})},h=function(e){return JSON.parse(JSON.stringify(e))},m=function(e){return""===e||null==e}},f121:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"f",(function(){return u}));var r="0000";function a(){var e=window.location.origin;return(e.indexOf("localhost")>=0||e.indexOf("192.168")>=0)&&(e="https://four.gicdev.com"),e}t["c"]={api:window.location.protocol+"//"+window.location.host||""};var c=a(),i=("four.gicdev.com"===window.location.host||window.location.origin,"/api-marketing"),o="/gic-auth-web",u="/api-welfare"},f602:function(e,t,n){"use strict";n("1921")},f8f5:function(e,t,n){}});
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3deefcb9"],{4855:function(t,e,a){"use strict";a("efc6")},"9fdf":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"p20"},[a("div",{staticClass:"pb20 clearfix flex-center"},[a("el-input",{staticClass:"mr10 w260",attrs:{clearable:"",placeholder:"请输入福利id"},on:{change:t.refresh},model:{value:t.listParams.search,callback:function(e){t.$set(t.listParams,"search",e)},expression:"listParams.search"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),a("el-input",{staticClass:"mr10 w260",attrs:{clearable:"",placeholder:"请输入操作人姓名搜索"},on:{change:t.refresh},model:{value:t.listParams.creatorName,callback:function(e){t.$set(t.listParams,"creatorName",e)},expression:"listParams.creatorName"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),a("el-date-picker",{staticClass:"w350 mr10",attrs:{type:"daterange","range-separator":"~","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.refresh},model:{value:t.dateTime,callback:function(e){t.dateTime=e},expression:"dateTime"}})],1),a("el-table",{staticStyle:{width:"100%"},attrs:{"tooltip-effect":"dark",data:t.tableList}},[a("el-table-column",{attrs:{label:"上传时间",prop:"createTime","min-width":"200px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{domProps:{innerHTML:t._s(t.listTime(e.row.createTime))}})]}}])}),a("el-table-column",{attrs:{prop:"creatorName",label:"操作人","min-width":"180px"}}),a("el-table-column",{attrs:{prop:"fileName",label:"文件名称","min-width":"200px"}}),a("el-table-column",{attrs:{prop:"giftName",label:"福利名称","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.goDetail(e.row)}}},[t._v(t._s(e.row.giftName||"--"))])]}}])}),a("el-table-column",{attrs:{label:"上传结果","min-width":"180px"},scopedSlots:t._u([{key:"default",fn:function(e){return[1===e.row.statusFlag?a("div",[t._v("\n 成功"),a("span",{staticClass:"success-color"},[t._v(t._s(e.row.successNum))]),t._v("条,失败"),a("span",{staticClass:"danger-color"},[t._v(t._s(e.row.errorNum))]),t._v("条\n ")]):0===e.row.statusFlag?a("div",{staticClass:"state-point state-point-loading"},[t._v("上传中")]):a("div",{staticClass:"state-point state-point-error"},[t._v("上传失败")])]}}])}),a("el-table-column",{attrs:{label:"操作",width:"130px"},scopedSlots:t._u([{key:"default",fn:function(e){return[2===e.row.statusFlag?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.uploadReview(e.row)}}},[t._v("重新上传")]):t._e(),1===e.row.statusFlag&&0!==e.row.errorNum?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.showDetail(e.row)}}},[t._v("查看失败原因")]):t._e()]}}])})],1),a("div",{staticClass:"clearfix"},[t.tableList.length?a("dm-pagination",{staticClass:"fr mb0",attrs:{background:"","current-page":t.listParams.currentPage,"page-sizes":[20,40,60,80],"page-size":t.listParams.pageSize,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1),a("detail",{attrs:{"dialog-visible":t.dialogVisible,id:t.uploadLogId},on:{"update:dialogVisible":function(e){t.dialogVisible=e},"update:dialog-visible":function(e){t.dialogVisible=e}}})],1)},r=[],s=(a("8e6e"),a("ac6a"),a("456d"),a("ade3")),n=(a("c5f6"),a("fab6")),l=a("ed08"),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"查看详情",visible:t.dialogVisible,width:"500px"},on:{"update:visible":function(e){t.dialogVisible=e},closed:t.closed}},[a("div",[a("el-table",{staticClass:"el-table-list-mini-empty",attrs:{"tooltip-effect":"dark",data:t.tableList,"max-height":"450px"}},[a("el-table-column",{attrs:{prop:"errorMsg",label:"错误信息"}})],1),a("div",{staticClass:"clearfix"},[t.tableList.length?a("dm-pagination",{staticClass:"fr mb0",attrs:{small:"",background:"","current-page":t.listParams.currentPage,"page-sizes":[20,40,60,80],"page-size":t.listParams.pageSize,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.closed}},[t._v("关 闭")])],1)])},c=[],u=a("2934");function d(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function p(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?d(Object(a),!0).forEach((function(e){Object(s["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var g=u["a"].virtualErrorPage,f={name:"StockUploadRecordDetail",mixins:[n["c"]],props:{id:{type:[String,Number],required:!0},dialogVisible:{type:Boolean,default:!1}},data:function(){return{loading:!0,listParams:{id:"",key:"",currentPage:1,pageSize:20},total:0,tableList:[]}},methods:{closed:function(){this.$emit("update:dialogVisible",!1),this.loading=!1,this.tableList=[],this.listParams.currentPage=1,this.listParams.pageSize=20},getTableList:function(){var t=this,e=p(p({},this.listParams),{},{id:this.id});this.loading=!0,g(e).then((function(e){t.loading=!1;var a=e.result;t.tableList=a.result||[],t.total=a.totalCount,0===t.tableList.length&&1!==t.listParams.currentPage&&(t.listParams.currentPage-=1,t.getTableList())})).catch((function(){t.loading=!1}))}},watch:{dialogVisible:function(t){t&&this.getTableList()}}},h=f,m=a("2877"),b=Object(m["a"])(h,o,c,!1,null,null,null),v=b.exports;function P(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function y(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?P(Object(a),!0).forEach((function(e){Object(s["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):P(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var w=u["a"].virtualUploadLog,O={name:"StockRecord",components:{Detail:v},mixins:[n["c"],n["a"]],props:{type:{type:[Number,String],required:!0},queryParams:{type:Object,default:function(){}}},data:function(){return{loading:!1,dateTime:[new Date-6048e5,new Date],listParams:{source:this.type,search:"",creatorName:"",startTime:"",endTime:"",currentPage:1,pageSize:20},listParams2:{currentPage:1,pageSize:20},total:0,tableList:[],dialogVisible:!1,totalError:"",uploadLogId:""}},mounted:function(){this.getTableList()},methods:{listTime:l["g"],getTableList:function(){var t=this;if(!this.loading){this.formatterTimeFunc("startTime","endTime","yyyy-MM-dd","dateTime"),this.loading=!0;var e=y(y({},this.listParams),this.queryParams);w(e).then((function(e){t.loading=!1;var a=e.result;t.tableList=a.result||[],t.total=a.totalCount,0===t.tableList.length&&1!==t.listParams.currentPage&&(t.listParams.currentPage-=1,t.getTableList())})).finally((function(){t.loading=!1}))}},showDetail:function(t){var e=t.uploadLogId;this.uploadLogId=e,this.dialogVisible=!0},goDetail:function(t){0===t.source?this.$router.push({path:"/gift-manage/virtual-gift-detail",query:{giftId:t.giftId}}):this.$router.push({path:"/gic-card/info",query:{id:t.giftId}})},uploadReview:function(t){0===t.source?this.$router.push({path:"/gift-manage/virtual-gift",query:{giftId:t.giftId}}):this.$router.push({path:"/gic-card/list",query:{couponId:t.giftId}})}}},_=O,x=(a("4855"),Object(m["a"])(_,i,r,!1,null,"b43f3084",null));e["a"]=x.exports},bf73:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("stock-record",{attrs:{type:"0"}})},r=[],s=a("9fdf"),n={name:"StockRecord",components:{stockRecord:s["a"]},created:function(){this.$emit("updateBread",[{breadName:"福利中心"},{breadName:"礼品管理"},{breadName:"库存上传记录"}])}},l=n,o=a("2877"),c=Object(o["a"])(l,i,r,!1,null,null,null);e["default"]=c.exports},efc6:function(t,e,a){},fab6:function(t,e,a){"use strict";a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return s})),a.d(e,"b",(function(){return n}));var i=a("ed08"),r={methods:{refresh:function(){this.listParams.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.listParams.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.listParams.currentPage=t,this.getTableList()}}},s={methods:{formatterTimeFunc:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"startTime",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"endTime",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"yyyy-MM-dd",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"dateTime";this[r]?(this.listParams[t]=Object(i["e"])(this[r][0],a),this.listParams[e]=Object(i["e"])(this[r][1],a)):this.listParams[t]=this.listParams[e]=""}}},n={methods:{mainHeight:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.$store.state.mainHeight-52-t}}}}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-09efd3db"],{4855:function(t,e,a){"use strict";a("efc6")},"9fdf":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"p20"},[a("div",{staticClass:"pb20 clearfix flex-center"},[a("el-input",{staticClass:"mr10 w260",attrs:{clearable:"",placeholder:"请输入福利id"},on:{change:t.refresh},model:{value:t.listParams.search,callback:function(e){t.$set(t.listParams,"search",e)},expression:"listParams.search"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),a("el-input",{staticClass:"mr10 w260",attrs:{clearable:"",placeholder:"请输入操作人姓名搜索"},on:{change:t.refresh},model:{value:t.listParams.creatorName,callback:function(e){t.$set(t.listParams,"creatorName",e)},expression:"listParams.creatorName"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),a("el-date-picker",{staticClass:"w350 mr10",attrs:{type:"daterange","range-separator":"~","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.refresh},model:{value:t.dateTime,callback:function(e){t.dateTime=e},expression:"dateTime"}})],1),a("el-table",{staticStyle:{width:"100%"},attrs:{"tooltip-effect":"dark",data:t.tableList}},[a("el-table-column",{attrs:{label:"上传时间",prop:"createTime","min-width":"200px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{domProps:{innerHTML:t._s(t.listTime(e.row.createTime))}})]}}])}),a("el-table-column",{attrs:{prop:"creatorName",label:"操作人","min-width":"180px"}}),a("el-table-column",{attrs:{prop:"fileName",label:"文件名称","min-width":"200px"}}),a("el-table-column",{attrs:{prop:"giftName",label:"福利名称","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.goDetail(e.row)}}},[t._v(t._s(e.row.giftName||"--"))])]}}])}),a("el-table-column",{attrs:{label:"上传结果","min-width":"180px"},scopedSlots:t._u([{key:"default",fn:function(e){return[1===e.row.statusFlag?a("div",[t._v("\n 成功"),a("span",{staticClass:"success-color"},[t._v(t._s(e.row.successNum))]),t._v("条,失败"),a("span",{staticClass:"danger-color"},[t._v(t._s(e.row.errorNum))]),t._v("条\n ")]):0===e.row.statusFlag?a("div",{staticClass:"state-point state-point-loading"},[t._v("上传中")]):a("div",{staticClass:"state-point state-point-error"},[t._v("上传失败")])]}}])}),a("el-table-column",{attrs:{label:"操作",width:"130px"},scopedSlots:t._u([{key:"default",fn:function(e){return[2===e.row.statusFlag?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.uploadReview(e.row)}}},[t._v("重新上传")]):t._e(),1===e.row.statusFlag&&0!==e.row.errorNum?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.showDetail(e.row)}}},[t._v("查看失败原因")]):t._e()]}}])})],1),a("div",{staticClass:"clearfix"},[t.tableList.length?a("dm-pagination",{staticClass:"fr mb0",attrs:{background:"","current-page":t.listParams.currentPage,"page-sizes":[20,40,60,80],"page-size":t.listParams.pageSize,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1),a("detail",{attrs:{"dialog-visible":t.dialogVisible,id:t.uploadLogId},on:{"update:dialogVisible":function(e){t.dialogVisible=e},"update:dialog-visible":function(e){t.dialogVisible=e}}})],1)},r=[],s=(a("8e6e"),a("ac6a"),a("456d"),a("ade3")),n=(a("c5f6"),a("fab6")),l=a("ed08"),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"查看详情",visible:t.dialogVisible,width:"500px"},on:{"update:visible":function(e){t.dialogVisible=e},closed:t.closed}},[a("div",[a("el-table",{staticClass:"el-table-list-mini-empty",attrs:{"tooltip-effect":"dark",data:t.tableList,"max-height":"450px"}},[a("el-table-column",{attrs:{prop:"errorMsg",label:"错误信息"}})],1),a("div",{staticClass:"clearfix"},[t.tableList.length?a("dm-pagination",{staticClass:"fr mb0",attrs:{small:"",background:"","current-page":t.listParams.currentPage,"page-sizes":[20,40,60,80],"page-size":t.listParams.pageSize,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.closed}},[t._v("关 闭")])],1)])},c=[],u=a("2934");function d(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function p(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?d(Object(a),!0).forEach((function(e){Object(s["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var g=u["a"].virtualErrorPage,f={name:"StockUploadRecordDetail",mixins:[n["c"]],props:{id:{type:[String,Number],required:!0},dialogVisible:{type:Boolean,default:!1}},data:function(){return{loading:!0,listParams:{id:"",key:"",currentPage:1,pageSize:20},total:0,tableList:[]}},methods:{closed:function(){this.$emit("update:dialogVisible",!1),this.loading=!1,this.tableList=[],this.listParams.currentPage=1,this.listParams.pageSize=20},getTableList:function(){var t=this,e=p(p({},this.listParams),{},{id:this.id});this.loading=!0,g(e).then((function(e){t.loading=!1;var a=e.result;t.tableList=a.result||[],t.total=a.totalCount,0===t.tableList.length&&1!==t.listParams.currentPage&&(t.listParams.currentPage-=1,t.getTableList())})).catch((function(){t.loading=!1}))}},watch:{dialogVisible:function(t){t&&this.getTableList()}}},h=f,m=a("2877"),b=Object(m["a"])(h,o,c,!1,null,null,null),v=b.exports;function P(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function y(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?P(Object(a),!0).forEach((function(e){Object(s["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):P(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var w=u["a"].virtualUploadLog,O={name:"StockRecord",components:{Detail:v},mixins:[n["c"],n["a"]],props:{type:{type:[Number,String],required:!0},queryParams:{type:Object,default:function(){}}},data:function(){return{loading:!1,dateTime:[new Date-6048e5,new Date],listParams:{source:this.type,search:"",creatorName:"",startTime:"",endTime:"",currentPage:1,pageSize:20},listParams2:{currentPage:1,pageSize:20},total:0,tableList:[],dialogVisible:!1,totalError:"",uploadLogId:""}},mounted:function(){this.getTableList()},methods:{listTime:l["g"],getTableList:function(){var t=this;if(!this.loading){this.formatterTimeFunc("startTime","endTime","yyyy-MM-dd","dateTime"),this.loading=!0;var e=y(y({},this.listParams),this.queryParams);w(e).then((function(e){t.loading=!1;var a=e.result;t.tableList=a.result||[],t.total=a.totalCount,0===t.tableList.length&&1!==t.listParams.currentPage&&(t.listParams.currentPage-=1,t.getTableList())})).finally((function(){t.loading=!1}))}},showDetail:function(t){var e=t.uploadLogId;this.uploadLogId=e,this.dialogVisible=!0},goDetail:function(t){0===t.source?this.$router.push({path:"/gift-manage/virtual-gift-detail",query:{giftId:t.giftId}}):this.$router.push({path:"/gic-card/info",query:{id:t.giftId}})},uploadReview:function(t){0===t.source?this.$router.push({path:"/gift-manage/virtual-gift",query:{giftId:t.giftId}}):this.$router.push({path:"/gic-card/list",query:{couponId:t.giftId}})}}},_=O,x=(a("4855"),Object(m["a"])(_,i,r,!1,null,"b43f3084",null));e["a"]=x.exports},bf73:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("stock-record",{attrs:{type:"0"}})},r=[],s=a("9fdf"),n={name:"StockRecord",components:{stockRecord:s["a"]},created:function(){this.$emit("updateBread",[{breadName:"福利中心"},{breadName:"礼品管理"},{breadName:"库存上传记录"}])}},l=n,o=a("2877"),c=Object(o["a"])(l,i,r,!1,null,null,null);e["default"]=c.exports},efc6:function(t,e,a){},fab6:function(t,e,a){"use strict";a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return s})),a.d(e,"b",(function(){return n}));var i=a("ed08"),r={methods:{refresh:function(){this.listParams.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.listParams.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.listParams.currentPage=t,this.getTableList()}}},s={methods:{formatterTimeFunc:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"startTime",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"endTime",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"yyyy-MM-dd",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"dateTime";this[r]?(this.listParams[t]=Object(i["e"])(this[r][0],a),this.listParams[e]=Object(i["e"])(this[r][1],a)):this.listParams[t]=this.listParams[e]=""}}},n={methods:{mainHeight:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.$store.state.mainHeight-52-t}}}}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bb542da4"],{"0035":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"p20"},[a("header",[a("el-select",{attrs:{clas:"w160",placeholder:"请选择来源",clearable:""},on:{change:e.handleSearch},model:{value:e.query.appCode,callback:function(t){e.$set(e.query,"appCode",t)},expression:"query.appCode"}},e._l(e.appList,(function(e){return a("el-option",{key:e.appCode,attrs:{label:e.appName,value:e.appCode}})})),1),a("el-select",{staticClass:"w160 ml10",attrs:{placeholder:"配货方式",clearable:""},on:{change:e.handleSearch},model:{value:e.query.deliveryType,callback:function(t){e.$set(e.query,"deliveryType",t)},expression:"query.deliveryType"}},[a("el-option",{attrs:{label:"物流发货",value:1}}),a("el-option",{attrs:{label:"门店自提",value:2}}),a("el-option",{attrs:{label:"文本券码",value:3}})],1),a("el-select",{staticClass:"w160 ml10",attrs:{placeholder:"履约状态",clearable:""},on:{change:e.handleSearch},model:{value:e.query.orderFlag,callback:function(t){e.$set(e.query,"orderFlag",t)},expression:"query.orderFlag"}},[a("el-option",{attrs:{label:"待履约",value:0}}),a("el-option",{attrs:{label:"已履约",value:1}}),a("el-option",{attrs:{label:"已关闭",value:2}})],1),a("el-input",{staticClass:"w360 ml10",attrs:{placeholder:"请输入关键词搜索",clearable:""},on:{change:e.handleSearch},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch(t)}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}},[a("el-select",{staticStyle:{width:"160px"},attrs:{slot:"prepend"},on:{change:e.handleSearchTypeChange},slot:"prepend",model:{value:e.searchType,callback:function(t){e.searchType=t},expression:"searchType"}},[a("el-option",{attrs:{label:"礼品名称",value:"giftName"}}),a("el-option",{attrs:{label:"礼品编码",value:"giftNo"}}),a("el-option",{attrs:{label:"sku编码",value:"giftSkuCode"}}),a("el-option",{attrs:{label:"会员姓名",value:"memberName"}}),a("el-option",{attrs:{label:"会员卡号",value:"memberCardNo"}}),a("el-option",{attrs:{label:"履约单号",value:"orderId"}})],1)],1),a("div",{staticClass:"clearfix mt20",staticStyle:{"margin-top":"20px"}},[a("el-date-picker",{staticClass:"w400 fl",attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},on:{change:e.handleSearch},model:{value:e.daterange,callback:function(t){e.daterange=t},expression:"daterange"}}),a("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:function(t){e.exportConfig.exportVisible=!0}}},[e._v("导出")])],1)],1),a("el-table",{staticClass:"mt20",attrs:{data:e.list}},[a("el-table-column",{attrs:{label:"礼品信息",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("div",{staticClass:"goods-info"},[a("img",{staticClass:"imgs-style",attrs:{src:r.giftImgUrl,alt:""}}),a("div",{staticClass:"goods-text"},[a("div",{staticClass:"goods-text-name"},[e._v("\n "+e._s(r.giftName)+"\n ")]),a("div",{staticClass:"goods-text-info"},[r.giftSkuStrand?a("div",e._l(JSON.parse(r.giftSkuStrand||"[]"),(function(t,r){return a("span",{key:r},[e._v(e._s(t.specStandardName)+":"+e._s(t.specStandardValueName)+"   ")])})),0):a("span",[e._v("- -")]),a("div",[e._v("SKU编码:"+e._s(r.giftSkuCode))])])])])]}}])}),a("el-table-column",{attrs:{label:"数量",prop:"exchangeQuantity"}}),a("el-table-column",{attrs:{label:"创建时间",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(e._f("formatDate")(r.createTime)))]),a("p",[e._v(e._s(e._f("formatDate")(r.createTime,"time")))])]}}])}),a("el-table-column",{attrs:{label:"履约单号",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[e._v("\n "+e._s(r.orderId)+"\n "),a("el-popover",{attrs:{placement:"bottom-end",width:"300",trigger:"hover"}},[a("i",{staticClass:"iconfont-welfare4 icon-gengduo2",attrs:{slot:"reference"},slot:"reference"}),a("div",[e._v("\n 应用单号:"+e._s(r.businessId)+"\n ")]),1==r.orderFlag&&1==r.giftType?a("div",{staticClass:"mt10"},[a("span",[e._v("发货单号:")]),a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.linkToDetail(r.deliveryOrderId)}}},[e._v(e._s(r.deliveryOrderId))])],1):e._e(),1==r.orderFlag&&2==r.giftType?a("div",{staticClass:"mt10",domProps:{innerHTML:e._s(r.deliveryInfo)}}):0==r.orderFlag?a("div",{staticClass:"mt10"},[a("span",{staticStyle:{display:"flex"}},[a("span",{staticStyle:{"flex-shrink":"0"}},[e._v("备注:")]),a("span",[e._v(e._s(r.waitReason))])])]):2==r.orderFlag?a("div",{staticClass:"mt10"},[a("span",[e._v("关闭时间: "+e._s(e._f("formatDate")(r.updateTime,"dateTime")))])]):e._e()])]}}])}),a("el-table-column",{attrs:{label:"会员信息"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.memberName||"--"))]),a("p",[e._v(e._s(r.memberCardNo||"--"))])]}}])}),a("el-table-column",{attrs:{label:"来源"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.appName||"--"))]),a("p",[e._v(e._s(r.activityName||"--"))])]}}])}),a("el-table-column",{attrs:{label:"履约状态"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[0==r.orderFlag?a("span",{staticClass:"state-point state-point-warning"},[e._v("待履约")]):1==r.orderFlag?a("span",{staticClass:"state-point state-point-success"},[e._v("已履约")]):2==r.orderFlag?a("span",{staticClass:"state-point state-point-default"},[e._v("已关闭")]):e._e()]}}])})],1),a("dm-pagination",{staticClass:"text-right",attrs:{background:"",layout:"total, sizes, prev, pager, next","current-page":e.pager.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pager.pageSize,total:e.pager.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}),a("dm-export-data",{ref:"exportData",attrs:{visible:e.exportConfig.exportVisible,"sens-value":!0,fields:e.exportConfig.fields,label:e.exportConfig.label,value:e.exportConfig.value,"sens-key":e.exportConfig.sensKey},on:{"update:visible":function(t){return e.$set(e.exportConfig,"exportVisible",t)},export:e.handleExport}})],1)},n=[],s=(a("8e6e"),a("ac6a"),a("456d"),a("3835")),l=(a("6b54"),a("f576"),a("ade3")),o=(a("96cf"),a("1da1")),i=a("2072"),u=a("cf45");function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function p(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?c(Object(a),!0).forEach((function(t){Object(l["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var d=i["a"].getPerformanceList,f=i["a"].exportPerformanceData,g=i["a"].getApplicationList,h=[{label:"福利ID",value:"giftId",sensKey:!1},{label:"礼品名称",value:"giftName",sensKey:!1},{label:"礼品编码",value:"giftCode",sensKey:!1},{label:"SKU编码",value:"giftSkuCode",sensKey:!1},{label:"SKU名称",value:"giftSkuStandard",sensKey:!1},{label:"数量",value:"refundQuantity",sensKey:!1},{label:"发货单号",value:"deliveryId",sensKey:!1},{label:"退货单号",value:"refundId",sensKey:!1},{label:"会员姓名",value:"memberName",sensKey:!0},{label:"会员手机号",value:"memberPhone",sensKey:!0},{label:"来源应用",value:"appName",sensKey:!1},{label:"来源活动",value:"activityName",sensKey:!1},{label:"发货单号",value:"deliveryOrderId",sensKey:!1},{label:"发放文本内容",value:"deliveryInfo",sensKey:!1},{label:"创建时间",value:"createTime",sensKey:!1},{label:"关闭时间",value:"updateTime",sensKey:!1}],v={name:"PerformanceRecord",data:function(){return{loading:!1,pager:{currentPage:1,pageSize:20,totalCount:0},list:[],searchType:"orderId",searchValue:"",query:{deliveryType:"",appCode:"",startTime:"",endTime:"",orderFlag:""},exportConfig:{exportVisible:!1,fields:h,sensKey:"sensKey",label:"label",value:"value"},appList:[]}},created:function(){this.$emit("updateBread",[{breadName:"福利中心"},{breadName:"履约管理"},{breadName:"履约记录"}]);var e=Date.now();this.query.endTime=this.$options.filters["formatDate"](e)+" 23:59:59",this.query.startTime=this.$options.filters["formatDate"](e-2592e6)+" 00:00:00",this.getApplicationList(),this.getList()},methods:{getList:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,a,r,n,s,o,i,u=this,c=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=c.length>0&&void 0!==c[0]?c[0]:"desc",r=p(p({},this.query),{},(t={pageNum:this.pager.currentPage,pageSize:this.pager.pageSize},Object(l["a"])(t,this.searchType,this.searchValue),Object(l["a"])(t,"deliveryFlag",this.type),Object(l["a"])(t,"sort",a),t)),this.loading=!0,e.next=5,d(r).finally((function(){return u.loading=!1}));case 5:n=e.sent,s=n.result,o=s.result,i=s.totalCount,this.list=o||[],this.pager.totalCount=i;case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getApplicationList:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,g();case 2:t=e.sent,a=t.result,this.appList=a||[];case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSearch:function(){this.pager.currentPage=1,this.getList()},handleSizeChange:function(e){this.pager.currentPage=1,this.pager.pageSize=e,this.getList()},handleCurrentChange:function(e){this.pager.currentPage=e,this.getList()},handleExport:function(e){var t=this,a=p(p({},this.query),{},Object(l["a"])({},this.searchType,this.searchValue)),r=Object(u["a"])({config:e,listParams:a,fieldList:this.exportConfig.fields,path:this.$route.path,pathName:"福利中心-履约管理-退货单"});f(r).then((function(e){t.$refs.exportData.applyReport(!0,e.result)})).catch((function(e){t.$refs.exportData.applyReport()}))},linkToDetail:function(e){window.open("/welfare/gift-performance/delivery-detail?deliveryId=".concat(e))},handleSearchTypeChange:function(){this.searchValue="",this.handleSearch()}},filters:{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"date";if(!e)return"--";var a=[],r=[];return e=new Date(e),a.push(e.getFullYear()),a.push((e.getMonth()+1).toString().padStart(2,"0")),a.push(e.getDate().toString().padStart(2,"0")),r.push(e.getHours().toString().padStart(2,"0")),r.push(e.getMinutes().toString().padStart(2,"0")),r.push(e.getSeconds().toString().padStart(2,"0")),{date:a.join("-"),time:r.join(":"),dateTime:a.join("-")+" "+r.join(":")}[t]}},computed:{daterange:{get:function(){return[this.query.startTime,this.query.endTime]},set:function(e){var t=e||["",""],a=Object(s["a"])(t,2);this.query.startTime=a[0],this.query.endTime=a[1]}}}},y=v,b=a("2877"),m=Object(b["a"])(y,r,n,!1,null,"7a8dc8ba",null);t["default"]=m.exports},2072:function(e,t,a){"use strict";a("8e6e"),a("ac6a"),a("456d");var r=a("ade3"),n=a("71f6"),s=a("f121");function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?l(Object(a),!0).forEach((function(t){Object(r["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var i={getDelivery:{url:"/delivery-order/get-page-list",method:"post"},getPerformanceList:{url:"/order/get-page-list",method:"post"},getApplicationList:"/stock/application-list",getRefund:{url:"/refund-order/get-page-list",method:"post"},exportRefundData:{url:"/refund-order/order-export",method:"post"},exportDeliveryData:{url:"/delivery-order/order-export",method:"post"},exportPerformanceData:{url:"/order/order-export",method:"post"},getLogisticsInfo:{url:"/logistics/get-logistics-info",method:"post"},handleRefundOrder:{url:"/refund-order/process-refund-order",method:"post",useFormData:!0},getDeliveryDetail:{url:"/delivery-order/get-delivery-detail",method:"post",useFormData:!0},delivering:{url:"/delivery-order/delivering",method:"post"},closeOrder:{url:"/delivery-order/close",method:"post",useFormData:!0}};i=Object(n["a"])(i,s["f"]),t["a"]=o({},i)},"2e08":function(e,t,a){var r=a("9def"),n=a("9744"),s=a("be13");e.exports=function(e,t,a,l){var o=String(s(e)),i=o.length,u=void 0===a?" ":String(a),c=r(t);if(c<=i||""==u)return o;var p=c-i,d=n.call(u,Math.ceil(p/u.length));return d.length>p&&(d=d.slice(0,p)),l?d+o:o+d}},3393:function(e,t){function a(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var a=[],r=!0,n=!1,s=void 0;try{for(var l,o=e[Symbol.iterator]();!(r=(l=o.next()).done);r=!0)if(a.push(l.value),t&&a.length===t)break}catch(i){n=!0,s=i}finally{try{r||null==o["return"]||o["return"]()}finally{if(n)throw s}}return a}}e.exports=a,e.exports["default"]=e.exports,e.exports.__esModule=!0},3835:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var r=a("82ea"),n=a("3393"),s=a("a3f3"),l=a("7e0a");function o(e,t){return r(e)||n(e,t)||s(e,t)||l()}},"7e0a":function(e,t){function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=a,e.exports["default"]=e.exports,e.exports.__esModule=!0},"82ea":function(e,t){function a(e){if(Array.isArray(e))return e}e.exports=a,e.exports["default"]=e.exports,e.exports.__esModule=!0},9744:function(e,t,a){"use strict";var r=a("4588"),n=a("be13");e.exports=function(e){var t=String(n(this)),a="",s=r(e);if(s<0||s==1/0)throw RangeError("Count can't be negative");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(a+=t);return a}},f576:function(e,t,a){"use strict";var r=a("5ca1"),n=a("2e08"),s=a("a25f"),l=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(s);r(r.P+r.F*l,"String",{padStart:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0,!0)}})}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-350bdb36"],{"0035":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"p20"},[a("header",[a("el-select",{attrs:{clas:"w160",placeholder:"请选择来源",clearable:""},on:{change:e.handleSearch},model:{value:e.query.appCode,callback:function(t){e.$set(e.query,"appCode",t)},expression:"query.appCode"}},e._l(e.appList,(function(e){return a("el-option",{key:e.appCode,attrs:{label:e.appName,value:e.appCode}})})),1),a("el-select",{staticClass:"w160 ml10",attrs:{placeholder:"配货方式",clearable:""},on:{change:e.handleSearch},model:{value:e.query.deliveryType,callback:function(t){e.$set(e.query,"deliveryType",t)},expression:"query.deliveryType"}},[a("el-option",{attrs:{label:"物流发货",value:1}}),a("el-option",{attrs:{label:"门店自提",value:2}}),a("el-option",{attrs:{label:"文本券码",value:3}})],1),a("el-select",{staticClass:"w160 ml10",attrs:{placeholder:"履约状态",clearable:""},on:{change:e.handleSearch},model:{value:e.query.orderFlag,callback:function(t){e.$set(e.query,"orderFlag",t)},expression:"query.orderFlag"}},[a("el-option",{attrs:{label:"待履约",value:0}}),a("el-option",{attrs:{label:"已履约",value:1}}),a("el-option",{attrs:{label:"已关闭",value:2}})],1),a("el-input",{staticClass:"w360 ml10",attrs:{placeholder:"请输入关键词搜索",clearable:""},on:{change:e.handleSearch},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch(t)}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}},[a("el-select",{staticStyle:{width:"160px"},attrs:{slot:"prepend"},on:{change:e.handleSearchTypeChange},slot:"prepend",model:{value:e.searchType,callback:function(t){e.searchType=t},expression:"searchType"}},[a("el-option",{attrs:{label:"礼品名称",value:"giftName"}}),a("el-option",{attrs:{label:"礼品编码",value:"giftNo"}}),a("el-option",{attrs:{label:"sku编码",value:"giftSkuCode"}}),a("el-option",{attrs:{label:"会员姓名",value:"memberName"}}),a("el-option",{attrs:{label:"会员卡号",value:"memberCardNo"}}),a("el-option",{attrs:{label:"履约单号",value:"orderId"}})],1)],1),a("div",{staticClass:"clearfix mt20",staticStyle:{"margin-top":"20px"}},[a("el-date-picker",{staticClass:"w400 fl",attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},on:{change:e.handleSearch},model:{value:e.daterange,callback:function(t){e.daterange=t},expression:"daterange"}}),a("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:function(t){e.exportConfig.exportVisible=!0}}},[e._v("导出")])],1)],1),a("el-table",{staticClass:"mt20",attrs:{data:e.list}},[a("el-table-column",{attrs:{label:"礼品信息",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("div",{staticClass:"goods-info"},[a("img",{staticClass:"imgs-style",attrs:{src:r.giftImgUrl,alt:""}}),a("div",{staticClass:"goods-text"},[a("div",{staticClass:"goods-text-name"},[e._v("\n "+e._s(r.giftName)+"\n ")]),a("div",{staticClass:"goods-text-info"},[r.giftSkuStrand?a("div",e._l(JSON.parse(r.giftSkuStrand||"[]"),(function(t,r){return a("span",{key:r},[e._v(e._s(t.specStandardName)+":"+e._s(t.specStandardValueName)+"   ")])})),0):a("span",[e._v("- -")]),a("div",[e._v("SKU编码:"+e._s(r.giftSkuCode))])])])])]}}])}),a("el-table-column",{attrs:{label:"数量",prop:"exchangeQuantity"}}),a("el-table-column",{attrs:{label:"创建时间",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(e._f("formatDate")(r.createTime)))]),a("p",[e._v(e._s(e._f("formatDate")(r.createTime,"time")))])]}}])}),a("el-table-column",{attrs:{label:"履约单号",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[e._v("\n "+e._s(r.orderId)+"\n "),a("el-popover",{attrs:{placement:"bottom-end",width:"300",trigger:"hover"}},[a("i",{staticClass:"iconfont-welfare4 icon-gengduo2",attrs:{slot:"reference"},slot:"reference"}),a("div",[e._v("\n 应用单号:"+e._s(r.businessId)+"\n ")]),1==r.orderFlag&&1==r.giftType?a("div",{staticClass:"mt10"},[a("span",[e._v("发货单号:")]),a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.linkToDetail(r.deliveryOrderId)}}},[e._v(e._s(r.deliveryOrderId))])],1):e._e(),1==r.orderFlag&&2==r.giftType?a("div",{staticClass:"mt10",domProps:{innerHTML:e._s(r.deliveryInfo)}}):0==r.orderFlag?a("div",{staticClass:"mt10"},[a("span",{staticStyle:{display:"flex"}},[a("span",{staticStyle:{"flex-shrink":"0"}},[e._v("备注:")]),a("span",[e._v(e._s(r.waitReason))])])]):2==r.orderFlag?a("div",{staticClass:"mt10"},[a("span",[e._v("关闭时间: "+e._s(e._f("formatDate")(r.updateTime,"dateTime")))])]):e._e()])]}}])}),a("el-table-column",{attrs:{label:"会员信息"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.memberName||"--"))]),a("p",[e._v(e._s(r.memberCardNo||"--"))])]}}])}),a("el-table-column",{attrs:{label:"来源"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.appName||"--"))]),a("p",[e._v(e._s(r.activityName||"--"))])]}}])}),a("el-table-column",{attrs:{label:"履约状态"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[0==r.orderFlag?a("span",{staticClass:"state-point state-point-warning"},[e._v("待履约")]):1==r.orderFlag?a("span",{staticClass:"state-point state-point-success"},[e._v("已履约")]):2==r.orderFlag?a("span",{staticClass:"state-point state-point-default"},[e._v("已关闭")]):e._e()]}}])})],1),a("dm-pagination",{staticClass:"text-right",attrs:{background:"",layout:"total, sizes, prev, pager, next","current-page":e.pager.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pager.pageSize,total:e.pager.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}),a("dm-export-data",{ref:"exportData",attrs:{visible:e.exportConfig.exportVisible,"sens-value":!0,fields:e.exportConfig.fields,label:e.exportConfig.label,value:e.exportConfig.value,"sens-key":e.exportConfig.sensKey},on:{"update:visible":function(t){return e.$set(e.exportConfig,"exportVisible",t)},export:e.handleExport}})],1)},n=[],l=(a("8e6e"),a("ac6a"),a("456d"),a("3835")),s=(a("6b54"),a("f576"),a("ade3")),i=(a("96cf"),a("1da1")),o=a("2072"),c=a("cf45");function u(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function p(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?u(Object(a),!0).forEach((function(t){Object(s["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var d=o["a"].getPerformanceList,f=o["a"].exportPerformanceData,g=o["a"].getApplicationList,h=[{label:"福利ID",value:"giftId",sensKey:!1},{label:"礼品名称",value:"giftName",sensKey:!1},{label:"礼品编码",value:"giftCode",sensKey:!1},{label:"SKU编码",value:"giftSkuCode",sensKey:!1},{label:"SKU名称",value:"giftSkuStandard",sensKey:!1},{label:"数量",value:"refundQuantity",sensKey:!1},{label:"发货单号",value:"deliveryId",sensKey:!1},{label:"退货单号",value:"refundId",sensKey:!1},{label:"会员姓名",value:"memberName",sensKey:!0},{label:"会员手机号",value:"memberPhone",sensKey:!0},{label:"来源应用",value:"appName",sensKey:!1},{label:"来源活动",value:"activityName",sensKey:!1},{label:"发货单号",value:"deliveryOrderId",sensKey:!1},{label:"发放文本内容",value:"deliveryInfo",sensKey:!1},{label:"创建时间",value:"createTime",sensKey:!1},{label:"关闭时间",value:"updateTime",sensKey:!1}],v={name:"PerformanceRecord",data:function(){return{loading:!1,pager:{currentPage:1,pageSize:20,totalCount:0},list:[],searchType:"orderId",searchValue:"",query:{deliveryType:"",appCode:"",startTime:"",endTime:"",orderFlag:""},exportConfig:{exportVisible:!1,fields:h,sensKey:"sensKey",label:"label",value:"value"},appList:[]}},created:function(){this.$emit("updateBread",[{breadName:"福利中心"},{breadName:"履约管理"},{breadName:"履约记录"}]);var e=Date.now();this.query.endTime=this.$options.filters["formatDate"](e)+" 23:59:59",this.query.startTime=this.$options.filters["formatDate"](e-2592e6)+" 00:00:00",this.getApplicationList(),this.getList()},methods:{getList:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,a,r,n,l,i,o,c=this,u=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=u.length>0&&void 0!==u[0]?u[0]:"desc",r=p(p({},this.query),{},(t={pageNum:this.pager.currentPage,pageSize:this.pager.pageSize},Object(s["a"])(t,this.searchType,this.searchValue),Object(s["a"])(t,"deliveryFlag",this.type),Object(s["a"])(t,"sort",a),t)),this.loading=!0,e.next=5,d(r).finally((function(){return c.loading=!1}));case 5:n=e.sent,l=n.result,i=l.result,o=l.totalCount,this.list=i||[],this.pager.totalCount=o;case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getApplicationList:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,g();case 2:t=e.sent,a=t.result,this.appList=a||[];case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSearch:function(){this.pager.currentPage=1,this.getList()},handleSizeChange:function(e){this.pager.currentPage=1,this.pager.pageSize=e,this.getList()},handleCurrentChange:function(e){this.pager.currentPage=e,this.getList()},handleExport:function(e){var t=this,a=p(p({},this.query),{},Object(s["a"])({},this.searchType,this.searchValue)),r=Object(c["a"])({config:e,listParams:a,fieldList:this.exportConfig.fields,path:this.$route.path,pathName:"福利中心-履约管理-退货单"});f(r).then((function(e){t.$refs.exportData.applyReport(!0,e.result)})).catch((function(e){t.$refs.exportData.applyReport()}))},linkToDetail:function(e){window.open("/welfare/gift-performance/delivery-detail?deliveryId=".concat(e))},handleSearchTypeChange:function(){this.searchValue="",this.handleSearch()}},filters:{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"date";if(!e)return"--";var a=[],r=[];return e=new Date(e),a.push(e.getFullYear()),a.push((e.getMonth()+1).toString().padStart(2,"0")),a.push(e.getDate().toString().padStart(2,"0")),r.push(e.getHours().toString().padStart(2,"0")),r.push(e.getMinutes().toString().padStart(2,"0")),r.push(e.getSeconds().toString().padStart(2,"0")),{date:a.join("-"),time:r.join(":"),dateTime:a.join("-")+" "+r.join(":")}[t]}},computed:{daterange:{get:function(){return[this.query.startTime,this.query.endTime]},set:function(e){var t=e||["",""],a=Object(l["a"])(t,2);this.query.startTime=a[0],this.query.endTime=a[1]}}}},y=v,b=a("2877"),m=Object(b["a"])(y,r,n,!1,null,"7a8dc8ba",null);t["default"]=m.exports},2072:function(e,t,a){"use strict";a("8e6e"),a("ac6a"),a("456d");var r=a("ade3"),n=a("71f6"),l=a("f121");function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function i(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?s(Object(a),!0).forEach((function(t){Object(r["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var o={getDelivery:{url:"/delivery-order/get-page-list",method:"post"},getPerformanceList:{url:"/order/get-page-list",method:"post"},getApplicationList:"/stock/application-list",getRefund:{url:"/refund-order/get-page-list",method:"post"},exportRefundData:{url:"/refund-order/order-export",method:"post"},exportDeliveryData:{url:"/delivery-order/order-export",method:"post"},exportPerformanceData:{url:"/order/order-export",method:"post"},getLogisticsInfo:{url:"/logistics/get-logistics-info",method:"post"},handleRefundOrder:{url:"/refund-order/process-refund-order",method:"post",useFormData:!0},getDeliveryDetail:{url:"/delivery-order/get-delivery-detail",method:"post",useFormData:!0},delivering:{url:"/delivery-order/delivering",method:"post"},closeOrder:{url:"/delivery-order/close",method:"post",useFormData:!0}};o=Object(n["a"])(o,l["f"]),t["a"]=i({},o)},"2e08":function(e,t,a){var r=a("9def"),n=a("9744"),l=a("be13");e.exports=function(e,t,a,s){var i=String(l(e)),o=i.length,c=void 0===a?" ":String(a),u=r(t);if(u<=o||""==c)return i;var p=u-o,d=n.call(c,Math.ceil(p/c.length));return d.length>p&&(d=d.slice(0,p)),s?d+i:i+d}},3835:function(e,t,a){"use strict";function r(e){if(Array.isArray(e))return e}function n(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var a=[],r=!0,n=!1,l=void 0;try{for(var s,i=e[Symbol.iterator]();!(r=(s=i.next()).done);r=!0)if(a.push(s.value),t&&a.length===t)break}catch(o){n=!0,l=o}finally{try{r||null==i["return"]||i["return"]()}finally{if(n)throw l}}return a}}a.d(t,"a",(function(){return i}));var l=a("06c5");function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,t){return r(e)||n(e,t)||Object(l["a"])(e,t)||s()}},9744:function(e,t,a){"use strict";var r=a("4588"),n=a("be13");e.exports=function(e){var t=String(n(this)),a="",l=r(e);if(l<0||l==1/0)throw RangeError("Count can't be negative");for(;l>0;(l>>>=1)&&(t+=t))1&l&&(a+=t);return a}},f576:function(e,t,a){"use strict";var r=a("5ca1"),n=a("2e08"),l=a("a25f"),s=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(l);r(r.P+r.F*s,"String",{padStart:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0,!0)}})}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3da56340"],{2072:function(e,t,a){"use strict";a("8e6e"),a("ac6a"),a("456d");var r=a("ade3"),s=a("71f6"),n=a("f121");function i(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?i(Object(a),!0).forEach((function(t){Object(r["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):i(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var l={getDelivery:{url:"/delivery-order/get-page-list",method:"post"},getPerformanceList:{url:"/order/get-page-list",method:"post"},getApplicationList:"/stock/application-list",getRefund:{url:"/refund-order/get-page-list",method:"post"},exportRefundData:{url:"/refund-order/order-export",method:"post"},exportDeliveryData:{url:"/delivery-order/order-export",method:"post"},exportPerformanceData:{url:"/order/order-export",method:"post"},getLogisticsInfo:{url:"/logistics/get-logistics-info",method:"post"},handleRefundOrder:{url:"/refund-order/process-refund-order",method:"post",useFormData:!0},getDeliveryDetail:{url:"/delivery-order/get-delivery-detail",method:"post",useFormData:!0},delivering:{url:"/delivery-order/delivering",method:"post"},closeOrder:{url:"/delivery-order/close",method:"post",useFormData:!0}};l=Object(s["a"])(l,n["f"]),t["a"]=o({},l)},"2e08":function(e,t,a){var r=a("9def"),s=a("9744"),n=a("be13");e.exports=function(e,t,a,i){var o=String(n(e)),l=o.length,c=void 0===a?" ":String(a),u=r(t);if(u<=l||""==c)return o;var d=u-l,p=s.call(c,Math.ceil(d/c.length));return p.length>d&&(p=p.slice(0,d)),i?p+o:o+p}},"32cf":function(e,t,a){},3835:function(e,t,a){"use strict";function r(e){if(Array.isArray(e))return e}function s(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var a=[],r=!0,s=!1,n=void 0;try{for(var i,o=e[Symbol.iterator]();!(r=(i=o.next()).done);r=!0)if(a.push(i.value),t&&a.length===t)break}catch(l){s=!0,n=l}finally{try{r||null==o["return"]||o["return"]()}finally{if(s)throw n}}return a}}a.d(t,"a",(function(){return o}));var n=a("06c5");function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){return r(e)||s(e,t)||Object(n["a"])(e,t)||i()}},7211:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"p20"},[a("header",[a("el-select",{staticClass:"w160",attrs:{placeholder:"所有应用来源",clearable:""},on:{change:e.handleSearch},model:{value:e.query.appCode,callback:function(t){e.$set(e.query,"appCode",t)},expression:"query.appCode"}},e._l(e.appList,(function(e){return a("el-option",{key:e.appCode,attrs:{label:e.appName,value:e.appCode}})})),1),a("el-select",{staticClass:"w160 ml10",attrs:{placeholder:"所有处理状态",clearable:""},on:{change:e.handleChangeRefundFlag},model:{value:e.query.refundFlag,callback:function(t){e.$set(e.query,"refundFlag",t)},expression:"query.refundFlag"}},e._l(e.refundFlagMap,(function(e,t){return a("el-option",{key:t,attrs:{label:e,value:parseInt(t)}})})),1),a("el-input",{staticClass:"w360 ml10",attrs:{placeholder:"请输入关键词搜索",clearable:""},on:{change:e.handleSearch},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch(t)}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}},[a("el-select",{staticClass:"w160",attrs:{slot:"prepend"},on:{change:e.handleSearchTypeChange},slot:"prepend",model:{value:e.searchType,callback:function(t){e.searchType=t},expression:"searchType"}},[a("el-option",{attrs:{label:"退货单号",value:"refundId"}}),a("el-option",{attrs:{label:"商品名称",value:"giftName"}}),a("el-option",{attrs:{label:"礼品编码",value:"giftCode"}}),a("el-option",{attrs:{label:"sku编码",value:"giftSkuCode"}}),a("el-option",{attrs:{label:"发货单号",value:"deliveryId"}}),a("el-option",{attrs:{label:"会员手机号",value:"memberPhone"}}),a("el-option",{attrs:{label:"会员姓名",value:"memberName"}}),a("el-option",{attrs:{label:"会员卡号",value:"memberCardNo"}}),a("el-option",{attrs:{label:"履约单号",value:"orderId"}}),a("el-option",{attrs:{label:"退货物流号",value:"refundLogisticsNo"}})],1)],1),a("el-date-picker",{staticClass:"w400 ml10",attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},on:{change:e.handleSearch},model:{value:e.daterange,callback:function(t){e.daterange=t},expression:"daterange"}}),a("div",{staticClass:"mt20"},[a("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:function(t){e.exportConfig.exportVisible=!0}}},[e._v("导出")])],1)],1),a("el-table",{staticClass:"mt20",attrs:{data:e.list},on:{"sort-change":e.handleSortChange}},[a("el-table-column",{attrs:{label:"礼品",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("div",{staticClass:"goods-info"},[a("img",{staticClass:"imgs-style",attrs:{src:r.giftImageUrl,alt:""}}),a("div",{staticClass:"goods-text"},[a("div",{staticClass:"goods-text-name"},[e._v("\n "+e._s(r.giftName)+"\n ")]),a("div",{staticClass:"goods-text-info"},[r.giftSkuStandard?a("div",e._l(JSON.parse(r.giftSkuStandard||"[]"),(function(t,r){return a("span",{key:r},[e._v(e._s(t.specStandardName)+":"+e._s(t.specStandardValueName)+"   ")])})),0):a("span",[e._v("- -")]),a("div",[e._v("SKU编码:"+e._s(r.giftSkuCode))])])])])]}}])}),a("el-table-column",{attrs:{label:"申请时间",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(e._f("formatDate")(r.createTime)))]),a("p",[e._v(e._s(e._f("formatDate")(r.createTime,"time")))])]}}])}),a("el-table-column",{attrs:{label:"申请数量",prop:"refundQuantity"}}),a("el-table-column",{attrs:{label:"退货单号",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[e._v("\n "+e._s(r.refundId)+"\n "),a("el-popover",{attrs:{placement:"bottom-end",width:"300",trigger:"hover"}},[a("i",{staticClass:"iconfont-welfare4 icon-gengduo2",attrs:{slot:"reference"},slot:"reference"}),a("div",{staticClass:"performance-order-info"},[a("div",[a("span",[e._v("退货单来源:")]),a("span",[e._v(e._s(r.appName))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("履约单号:")]),a("span",[e._v(e._s(r.orderId))])]),0!==r.refundFlag||r.refundLogisticsNo?0===r.refundFlag&&r.refundLogisticsNo?[a("div",{staticClass:"mt10"},[a("span",[e._v("寄回时间:")]),a("span",[e._v(e._s(e._f("formatDate")(r.deliveryTime,"dateTime")))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("退货原因:")]),a("span",[e._v(e._s(r.refundReason))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("退货说明:")]),a("span",[e._v(e._s(r.refundRemark))])])]:1===r.refundFlag?[a("div",{staticClass:"mt10"},[a("span",[e._v("操作人:")]),a("span",[e._v(e._s(r.refundUserName))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("操作时间:")]),a("span",[e._v(e._s(e._f("formatDate")(r.processTime,"dateTime")))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("退货原因:")]),a("span",[e._v(e._s(r.refundReason))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("退货说明:")]),a("span",[e._v(e._s(r.refundRemark))])])]:2===r.refundFlag?[a("div",{staticClass:"mt10"},[a("span",[e._v("操作人:")]),a("span",[e._v(e._s(r.refundUserName))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("操作时间:")]),a("span",[e._v(e._s(e._f("formatDate")(r.processTime,"dateTime")))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("拒绝原因:")]),a("span",[e._v(e._s(r.refuseReason))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("退货原因:")]),a("span",[e._v(e._s(r.refundReason))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("退货说明:")]),a("span",[e._v(e._s(r.refundRemark))])])]:3===r.refundFlag?[a("div",{staticClass:"mt10"},[a("span",[e._v("关闭时间:")]),a("span",[e._v(e._s(e._f("formatDate")(r.cancelTime,"dateTime")))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("关闭原因:")]),a("span",[e._v(e._s(r.cancelReason))])])]:e._e():[a("div",{staticClass:"mt10"},[a("span",[e._v("退货原因:")]),a("span",[e._v(e._s(r.refundReason))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("退货说明:")]),a("span",[e._v(e._s(r.refundRemark))])])]],2)])]}}])}),a("el-table-column",{attrs:{label:"会员信息"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.memberName||"--"))]),a("p",[e._v(e._s(r.memberCardNo||"--"))])]}}])}),a("el-table-column",{attrs:{label:"寄回状态"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[r.refundLogisticsNo?[a("div",{staticClass:"state-point state-point-success"},[e._v("已寄回")]),a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.openDialog("logisticsDialog",r)}}},[e._v("查看物流")])],1)]:[a("span",{staticClass:"state-point state-point-warning"},[e._v("待寄回")])]]}}])}),a("el-table-column",{attrs:{label:"操作",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[0==r.refundFlag&&r.refundLogisticsNo?[a("div",[a("dm-delete",{attrs:{tips:"确认同意收货?"},on:{confirm:function(t){return e.handleReceive(r,1)}}},[a("el-button",{attrs:{type:"text"}},[e._v("同意收货")])],1),a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.openDialog("refuseDialog",r)}}},[e._v("拒绝收货")])],1)]:e._e(),0!=r.refundFlag&&r.refundLogisticsNo?[a("span",[e._v(e._s(e.refundStatus[r.refundFlag]))])]:e._e()]}}])})],1),a("dm-pagination",{staticClass:"text-right",attrs:{background:"",layout:"total, sizes, prev, pager, next","current-page":e.pager.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pager.pageSize,total:e.pager.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}),a("dm-export-data",{ref:"exportData",attrs:{visible:e.exportConfig.exportVisible,"sens-value":!0,fields:e.exportConfig.fields,label:e.exportConfig.label,value:e.exportConfig.value,"sens-key":e.exportConfig.sensKey},on:{"update:visible":function(t){return e.$set(e.exportConfig,"exportVisible",t)},export:e.handleExport}}),a("el-dialog",{attrs:{visible:e.refuseDialog.visible,title:"拒绝收货",width:"500px"},on:{"update:visible":function(t){return e.$set(e.refuseDialog,"visible",t)},close:function(t){return e.$refs.refuseForm.resetFields()}}},[a("el-form",{ref:"refuseForm",attrs:{model:e.refuseDialog.form,rules:e.refuseDialog.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"原因备注",prop:"reason"}},[a("dm-input",{attrs:{type:"textarea",maxlength:240,rows:5,"show-word-limit":""},model:{value:e.refuseDialog.form.reason,callback:function(t){e.$set(e.refuseDialog.form,"reason",t)},expression:"refuseDialog.form.reason"}})],1)],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.refuseDialog.visible=!1}}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleReceive(e.row,0)}}},[e._v("确认")])],1)],1),a("el-dialog",{attrs:{title:"物流详情",visible:e.logisticsDialog.visible,width:"800px"},on:{"update:visible":function(t){return e.$set(e.logisticsDialog,"visible",t)}}},[a("div",{staticClass:"logistics-info"},[a("div",[a("span",{staticClass:"key"},[e._v("快递公司:")]),a("span",[e._v(e._s(e.logisticsDialog.logisticsCompanyName||"--"))])]),a("div",[a("span",{staticClass:"key"},[e._v("快递单号:")]),a("span",[e._v(e._s(e.logisticsDialog.logisticCode||"--"))]),a("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.logisticsDialog.logisticCode,expression:"logisticsDialog.logisticCode",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.onError,expression:"onError",arg:"error"}],staticClass:"ml15",attrs:{type:"text"}},[e._v("复制")])],1)]),e.logisticsDialog.logisticsList.length>0?a("div",{staticClass:"logistics-step"},[a("h3",[e._v("派送中")]),a("el-timeline",{staticClass:"hollow logistics-list"},e._l(e.logisticsDialog.logisticsList,(function(t,r){return a("el-timeline-item",{key:r,attrs:{color:0===r?"":"#c0c4cc"}},[a("div",{staticClass:"logistics-line-step"},[a("span",{staticClass:"time"},[e._v(e._s(t.acceptTime||"--"))]),a("p",{staticClass:"content"},[e._v(e._s(t.acceptStation))])])])})),1)],1):a("div",{staticClass:"empty_block"})])],1)},s=[],n=(a("8e6e"),a("ac6a"),a("456d"),a("3835")),i=(a("6b54"),a("f576"),a("ade3")),o=(a("96cf"),a("1da1")),l=(a("c5f6"),a("2072")),c=a("cf45");function u(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?u(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var p=l["a"].getRefund,f=l["a"].getApplicationList,g=l["a"].exportRefundData,v=l["a"].handleRefundOrder,m=l["a"].getLogisticsInfo,h={0:"待处理",1:"同意退货",2:"拒绝退货",3:"已关闭"},b={1:"已同意",2:"已拒绝",3:"已关闭"},y=[{label:"福利ID",value:"giftId",sensKey:!1},{label:"礼品名称",value:"giftName",sensKey:!1},{label:"礼品编码",value:"giftCode",sensKey:!1},{label:"SKU编码",value:"giftSkuCode",sensKey:!1},{label:"SKU名称",value:"giftSkuStandard",sensKey:!1},{label:"数量",value:"refundQuantity",sensKey:!1},{label:"创建时间",value:"createTime",sensKey:!1},{label:"发货时间",value:"deliveryTime",sensKey:!1},{label:"履约单号",value:"orderId",sensKey:!1},{label:"发货单号",value:"deliveryId",sensKey:!1},{label:"退货单号",value:"refundId",sensKey:!1},{label:"退货处理状态",value:"refundFlag",sensKey:!1},{label:"会员姓名",value:"memberName",sensKey:!0},{label:"会员手机号",value:"memberPhone",sensKey:!0},{label:"收货人姓名",value:"deliveryConsigneeName",sensKey:!0},{label:"收货人手机号",value:"deliveryConsigneePhone",sensKey:!0},{label:"收货人省",value:"deliveryProvinceName",sensKey:!1},{label:"收货人市",value:"deliveryCityName",sensKey:!1},{label:"收货人区",value:"deliveryCountyName",sensKey:!1},{label:"收货人详细地址",value:"deliveryConsigneeAddress",sensKey:!0},{label:"收货人地址",value:"deliveryConsigneeArea",sensKey:!1},{label:"来源应用",value:"appName",sensKey:!1},{label:"来源活动",value:"activityName",sensKey:!1},{label:"退货物流公司",value:"refundCompanyName",sensKey:!1},{label:"退货物流单号",value:"refundLogisticsNo",sensKey:!1},{label:"退货原因",value:"refundReason",sensKey:!1}],_={name:"DeliveryList",props:{type:[String,Number]},data:function(){return{loading:!1,pager:{currentPage:1,pageSize:20,totalCount:0},refundFlagMap:h,refundStatus:b,list:[],appList:[],searchType:"refundId",searchValue:"",query:{refundFlag:"",appCode:"",startTime:"",endTime:""},row:{},exportConfig:{exportVisible:!1,fields:y,sensKey:"sensKey",label:"label",value:"value"},refuseDialog:{visible:!1,form:{reason:""},rules:{reason:[{required:!0,message:"请填写原因备注",trigger:"blur"}]}},logisticsDialog:{visible:!1,logisticsList:[]}}},created:function(){this.$emit("updateBread",[{breadName:"福利中心"},{breadName:"履约管理"},{breadName:"退货单"}]);var e=Date.now();this.query.endTime=this.$options.filters["formatDate"](e)+" 23:59:59",this.query.startTime=this.$options.filters["formatDate"](e-2592e6)+" 00:00:00",this.getApplicationList(),this.handleChangeRefundFlag()},methods:{getList:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,a,r,s,n,o,l,c=this,u=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=u.length>0&&void 0!==u[0]?u[0]:"desc",this.loading=!0,r=d(d({},this.query),{},(t={pageNum:this.pager.currentPage,pageSize:this.pager.pageSize},Object(i["a"])(t,this.searchType,this.searchValue),Object(i["a"])(t,"sort",a),t)),e.next=5,p(r).finally((function(){return c.loading=!1}));case 5:s=e.sent,n=s.result,o=n.result,l=n.totalCount,this.list=o||[],this.pager.totalCount=l;case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getApplicationList:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f();case 2:t=e.sent,a=t.result,this.appList=a||[];case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSearch:function(){this.pager.currentPage=1,this.getList()},handleSizeChange:function(e){this.pager.currentPage=1,this.pager.pageSize=e,this.getList()},handleCurrentChange:function(e){this.pager.currentPage=e,this.getList()},handleSortChange:function(e){e.column,e.prop;var t=e.order,a={descending:"desc",ascending:"asc"};this.getList(a[t])},openDialog:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,a){var r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this[t].visible=!0,this.row=a,"logisticsDialog"!=t){e.next=11;break}return e.next=5,m({companyCode:a.refundId,logisticsNo:a.refundLogisticsNo});case 5:r=e.sent,s=r.result,this.logisticsDialog.logisticsList=s.traces||[],this.logisticsDialog.logisticsList.reverse(),this.logisticsDialog.logisticsCompanyName=s.logisticsCompanyName,this.logisticsDialog.logisticCode=s.logisticCode;case 11:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}(),handleExport:function(e){var t=this,a=d(d({},this.query),{},Object(i["a"])({},this.searchType,this.searchValue)),r=Object(c["a"])({config:e,listParams:a,fieldList:this.exportConfig.fields,path:this.$route.path,pathName:"福利中心-履约管理-退货单"});g(r).then((function(e){t.$refs.exportData.applyReport(!0,e.result)})).catch((function(e){t.$refs.exportData.applyReport()}))},handleReceive:function(e,t){var a=this,r={refundId:e.refundId,processFlag:t,refuseReason:""};t?v(r).then((function(){a.getList()})):(r.refuseReason=this.refuseDialog.form.reason,this.$refs.refuseForm.validate(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t){e.next=5;break}return e.next=3,v(r);case 3:a.refuseDialog.visible=!1,a.getList();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()))},handleChangeRefundFlag:function(){var e;e=0===this.query.refundFlag?"asc":"desc",this.pager.currentPage=1,this.getList(e)},onCopy:function(e){this.$message.success("复制成功")},onError:function(e){this.$message.error("复制失败")},handleSearchTypeChange:function(){this.searchValue="",this.handleSearch()}},filters:{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"date";if(!e)return"--";var a=[],r=[];return e=new Date(e),a.push(e.getFullYear()),a.push((e.getMonth()+1).toString().padStart(2,"0")),a.push(e.getDate().toString().padStart(2,"0")),r.push(e.getHours().toString().padStart(2,"0")),r.push(e.getMinutes().toString().padStart(2,"0")),r.push(e.getSeconds().toString().padStart(2,"0")),{date:a.join("-"),time:r.join(":"),dateTime:a.join("-")+" "+r.join(":")}[t]}},computed:{daterange:{get:function(){return[this.query.startTime,this.query.endTime]},set:function(e){var t=e||["",""],a=Object(n["a"])(t,2);this.query.startTime=a[0],this.query.endTime=a[1]}}}},C=_,w=(a("edd3"),a("2877")),S=Object(w["a"])(C,r,s,!1,null,"5d2c77a9",null);t["default"]=S.exports},9744:function(e,t,a){"use strict";var r=a("4588"),s=a("be13");e.exports=function(e){var t=String(s(this)),a="",n=r(e);if(n<0||n==1/0)throw RangeError("Count can't be negative");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(a+=t);return a}},edd3:function(e,t,a){"use strict";a("32cf")},f576:function(e,t,a){"use strict";var r=a("5ca1"),s=a("2e08"),n=a("a25f"),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(n);r(r.P+r.F*i,"String",{padStart:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0,!0)}})}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6b67a942"],{"036e":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{visible:e.visible,title:"物流发货",width:"510px"},on:{"update:visible":function(t){e.visible=t},closed:function(t){return e.$emit("close")}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"收货信息"}},[i("p",[e._v(e._s(e.data.consignee)+" "+e._s(e.data.consigneePhone))]),i("p",[e._v(e._s(e.data.consigneeAddress))])]),i("el-form-item",{attrs:{label:"物流公司",prop:"logisticsCompanyCode"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.form.logisticsCompanyCode,callback:function(t){e.$set(e.form,"logisticsCompanyCode",t)},expression:"form.logisticsCompanyCode"}},[i("el-option",{attrs:{label:"顺丰速递",value:"SF"}}),i("el-option",{attrs:{label:"中通快递",value:"STO"}})],1)],1),i("el-form-item",{attrs:{label:"物流单号",prop:"logisticCode"}},[i("dm-input-phone",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入"},model:{value:e.form.logisticCode,callback:function(t){e.$set(e.form,"logisticCode",t)},expression:"form.logisticCode"}})],1)],1),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v("确认")])],1)],1)},n=[],s=(i("96cf"),i("1da1")),r=i("2072"),o=r["a"].delivering,l={props:{data:Object},data:function(){return{visible:!1,successCount:0,failedCount:0,form:{logisticsCompanyCode:"",logisticCode:""},rules:{logisticsCompanyCode:[{required:!0,message:"请选择物流公司",trigger:"blur"}],logisticCode:[{required:!0,message:"请填写物流单号",trigger:"blur"}]},loading:!1}},mounted:function(){this.visible=!0},methods:{handleConfirm:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,i,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$refs.form.validate();case 2:if(t=e.sent,!t){e.next=11;break}return i={SF:"顺丰速递",STO:"中通快递"},this.loading=!0,e.next=8,o({companyName:i[this.form.logisticsCompanyCode],companyCode:this.form.logisticsCompanyCode,logisticsNo:this.form.logisticCode,deliveryId:this.data.deliveryId}).finally((function(){return a.loading=!1}));case 8:this.visible=!1,this.$message.success("发货成功"),this.$emit("refresh");case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},c=l,u=i("2877"),d=Object(u["a"])(c,a,n,!1,null,null,null);t["a"]=d.exports},1746:function(e,t,i){},"1e5b":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-tabs",{staticClass:"p20",model:{value:e.activeIndex,callback:function(t){e.activeIndex=t},expression:"activeIndex"}},[i("el-tab-pane",{attrs:{label:"全部",name:""}},[i("delivery-list",{attrs:{type:""}})],1),i("el-tab-pane",{attrs:{label:"待发货("+e.count+")",name:0}},[i("delivery-list",{attrs:{type:0},on:{count:e.setCount}})],1),i("el-tab-pane",{attrs:{label:"已发货",name:1}},[i("delivery-list",{attrs:{type:1}})],1)],1)},n=[],s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("header",[i("el-select",{staticClass:"w160",attrs:{placeholder:"所有应用来源",clearable:""},on:{change:e.handleSearch},model:{value:e.query.appCode,callback:function(t){e.$set(e.query,"appCode",t)},expression:"query.appCode"}},e._l(e.appList,(function(e){return i("el-option",{key:e.appCode,attrs:{label:e.appName,value:e.appCode}})})),1),i("el-select",{staticClass:"w160 ml10",attrs:{placeholder:"所有配货方式",clearable:""},on:{change:e.handleSearch},model:{value:e.query.deliveryType,callback:function(t){e.$set(e.query,"deliveryType",t)},expression:"query.deliveryType"}},[i("el-option",{attrs:{label:"物流发货",value:1}}),i("el-option",{attrs:{label:"门店自提",value:2}})],1),i("el-input",{staticClass:"w360 ml10",attrs:{placeholder:"请输入关键词进行搜索",clearable:""},on:{change:e.handleSearch},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch(t)}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}},[i("el-select",{staticStyle:{width:"140px"},attrs:{slot:"prepend"},on:{change:e.handleSearchTypeChange},slot:"prepend",model:{value:e.searchType,callback:function(t){e.searchType=t},expression:"searchType"}},[i("el-option",{attrs:{label:"商品名称",value:"giftName"}}),i("el-option",{attrs:{label:"礼品编码",value:"giftCode"}}),i("el-option",{attrs:{label:"sku编码",value:"giftSkuCode"}}),i("el-option",{attrs:{label:"发货单号",value:"deliveryId"}}),i("el-option",{attrs:{label:"收件人手机号",value:"consigneePhone"}}),i("el-option",{attrs:{label:"会员姓名",value:"memberName"}}),i("el-option",{attrs:{label:"会员卡号",value:"memberCardNo"}}),i("el-option",{attrs:{label:"履约单号",value:"orderId"}})],1)],1),i("el-date-picker",{staticClass:"w400 ml10",attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},on:{change:e.handleSearch},model:{value:e.daterange,callback:function(t){e.daterange=t},expression:"daterange"}}),i("div",{staticClass:"mt20"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.openDialog("BulkDelivery")}}},[e._v("批量发货")]),i("el-button",{attrs:{icon:"el-icon-download"},on:{click:function(t){e.exportConfig.exportVisible=!0}}},[e._v("导出")])],1)],1),i("el-table",{staticClass:"mt20",attrs:{data:e.list},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{label:"商品",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{staticClass:"goods-info"},[i("img",{staticClass:"imgs-style",attrs:{src:a.giftImgUrl,alt:""}}),i("div",{staticClass:"goods-text"},[i("div",{staticClass:"goods-text-name"},[e._v("\n "+e._s(a.giftName)+"\n ")]),i("div",{staticClass:"goods-text-info"},[a.giftSkuStrand?i("div",e._l(JSON.parse(a.giftSkuStrand||"[]"),(function(t,a){return i("span",{key:a},[e._v(e._s(t.specStandardName)+":"+e._s(t.specStandardValueName)+"   ")])})),0):i("span",[e._v("- -")]),i("div",[e._v("SKU编码:"+e._s(a.giftSkuCode))])])])])]}}])}),i("el-table-column",{attrs:{label:"创建时间",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("p",[e._v(e._s(e._f("formatDate")(a.createTime)))]),i("p",[e._v(e._s(e._f("formatDate")(a.createTime,"time")))])]}}])}),i("el-table-column",{attrs:{label:"数量",prop:"exchangeQuantity"}}),i("el-table-column",{attrs:{label:"发货单号",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.linkToDetail(a)}}},[e._v(e._s(a.deliveryId))]),i("el-popover",{attrs:{placement:"bottom-end",width:"300",trigger:"hover"}},[i("i",{staticClass:"iconfont-welfare4 icon-gengduo2 ml5",attrs:{slot:"reference"},slot:"reference"}),i("div",{staticClass:"performance-order-info"},[i("div",[i("span",[e._v("发货单来源:")]),i("span",[e._v(e._s(a.appName))])]),i("div",{staticClass:"mt10"},[i("span",[e._v("履约单号:")]),i("span",[e._v(e._s(a.orderId))])]),1===a.deliveryType&&0===a.deliveryFlag?[i("div",{staticClass:"mt10"},[i("span",[e._v("收货信息:")]),i("span",[e._v(e._s(a.consignee)+" "+e._s(a.consigneePhone)+" "+e._s(a.consigneeAddress))])])]:1===a.deliveryType&&1===a.deliveryFlag?[i("div",{staticClass:"mt10"},[i("span",[e._v("完成时间:")]),i("span",[e._v(e._s(e._f("formatDate")(a.deliveryTime,"dateTime")))])]),i("div",{staticClass:"mt10"},[i("span",[e._v("收货信息:")]),i("span",[e._v(e._s(a.consignee)+" "+e._s(a.consigneePhone)+" "+e._s(a.consigneeAddress))])])]:2===a.deliveryType&&0===a.deliveryFlag?[i("div",{staticClass:"mt10"},[i("span",[e._v("自提信息:")]),i("span",[e._v(e._s(a.consignee)+" "+e._s(a.consigneePhone))])]),i("div",{staticClass:"mt10"},[i("span",[e._v("自提时间:")]),i("span",[e._v(e._s(e._f("formatDate")(a.pickUpStopTime,"dateTime")))])]),i("div",{staticClass:"mt10"},[i("span",[e._v("自提地址:")]),i("span",[e._v(e._s(a.pickUpStartTime)+" - "+e._s(a.pickUpStopTime))])])]:2===a.deliveryType&&1===a.deliveryFlag?[i("div",{staticClass:"mt10"},[i("span",[e._v("自提信息:")]),i("span",[e._v(e._s(a.consignee)+" "+e._s(a.consigneePhone))])]),i("div",{staticClass:"mt10"},[i("span",[e._v("完成时间:")]),i("span",[e._v(e._s(e._f("formatDate")(a.deliveryTime,"dateTime")))])]),i("div",{staticClass:"mt10"},[i("span",[e._v("核销门店:")]),i("span",[e._v(e._s(a.pickUpPointName))])]),i("div",{staticClass:"mt10"},[i("span",[e._v("操作人:")]),i("span",[e._v(e._s(a.pickUpPointName))])])]:2===a.deliveryFlag?[i("div",{staticClass:"mt10"},[i("span",[e._v("关闭时间:")]),i("span",[e._v(e._s(e._f("formatDate")(a.cancelTime,"dateTime")))])]),i("div",{staticClass:"mt10"},[i("span",[e._v("关闭原因:")]),i("span",[e._v(e._s(a.cancelReason))])])]:e._e()],2)])]}}])}),i("el-table-column",{attrs:{label:"会员信息"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("p",[e._v(e._s(a.memberName||"--"))]),i("p",[e._v(e._s(a.memberCardNo||"--"))])]}}])}),i("el-table-column",{attrs:{label:"发货单状态",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[1===a.deliveryType&&0===a.deliveryFlag?[i("span",{staticClass:"state-point state-point-warning"},[e._v("待发货")]),i("p",[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.openDialog("LogisticsDelivery",a)}}},[e._v("物流发货")]),i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.openDialog("CancelOrder",a)}}},[e._v("关闭发货单")])],1)]:1===a.deliveryType&&1===a.deliveryFlag?[i("span",{staticClass:"state-point state-point-success"},[e._v("已发货")]),i("p",[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.openDialog("LogisticsInfo",a)}}},[e._v("查看物流")]),i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.linkToDetail(a)}}},[e._v("查看详情")])],1)]:2===a.deliveryType&&0===a.deliveryFlag?[i("span",{staticClass:"state-point state-point-warning"},[e._v("待核销")]),i("p",[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.openDialog("WriteOff",a)}}},[e._v("自提核销")]),i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.openDialog("CancelOrder",a)}}},[e._v("关闭发货单")])],1)]:2===a.deliveryType&&1===a.deliveryFlag?[i("span",{staticClass:"state-point state-point-success"},[e._v("已核销")]),i("p",[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.linkToDetail(a)}}},[e._v("查看详情")])],1)]:2===a.deliveryFlag?[i("span",{staticClass:"state-point state-point-default"},[e._v("已关闭")]),i("p",[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.linkToDetail(a)}}},[e._v("查看详情")])],1)]:e._e()]}}])})],1),i("dm-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total, sizes, prev, pager, next","current-page":e.pager.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pager.pageSize,total:e.pager.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}),i(e.activeDialog,{tag:"component",attrs:{data:e.row},on:{close:function(t){e.activeDialog=""},refresh:e.getList}}),i("dm-export-data",{ref:"exportData",attrs:{visible:e.exportConfig.exportVisible,"sens-value":!0,fields:e.exportConfig.fields,label:e.exportConfig.label,value:e.exportConfig.value,"sens-key":e.exportConfig.sensKey},on:{"update:visible":function(t){return e.$set(e.exportConfig,"exportVisible",t)},export:e.handleExport}})],1)},r=[],o=(i("8e6e"),i("ac6a"),i("456d"),i("3835")),l=(i("6b54"),i("f576"),i("ade3")),c=(i("96cf"),i("1da1")),u=(i("c5f6"),i("2072")),d=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-dialog",{attrs:{visible:e.visible,title:"批量发货",width:"510px"},on:{"update:visible":function(t){e.visible=t},closed:function(t){return e.$emit("close")}}},[i("div",{staticStyle:{display:"flex",position:"relative"}},[i("span",{staticStyle:{"flex-shrink":"0","margin-top":"10px"}},[i("span",{staticStyle:{color:"#FF5152","margin-right":"5px"}},[e._v("*")]),e._v("导入文件:")]),i("dm-upload-file",{staticClass:"ml10 upload",staticStyle:{display:"inline-block"},attrs:{action:"/api-welfare/delivery-order/batch-delivering","file-list":e.fileList,"on-success":e.onSuccess,limit:1,accept:".xls,.xlsx","with-credentials":"",headers:e.uploadHeader}},[i("span",{attrs:{slot:"tip"},slot:"tip"}),i("el-button",{attrs:{icon:"iconfont-components4 icon-cp-shangc upload-icon"}},[e._v("上传")])],1),i("el-button",{staticClass:"ml20",staticStyle:{position:"absolute",right:"20px",top:"10px"},attrs:{type:"text"},on:{click:e.downloadFile}},[e._v("下载批量发货的模版")])],1),i("div",{staticClass:"mt10",staticStyle:{"margin-left":"90px"}},[e._v("\n 成功"),i("span",{staticStyle:{color:"#2f54eb"}},[e._v(e._s(e.successCount))]),e._v("条,失败"),i("span",{staticStyle:{color:"#F5222d"}},[e._v(e._s(e.failedCount))]),e._v("条\n "),i("el-button",{staticClass:"ml10",attrs:{type:"text"},on:{click:function(t){e.errorInfoDialog.visible=!0}}},[e._v("查看详情")])],1),i("el-divider"),i("div",{staticStyle:{color:"#909399","font-size":"12px"}},[e._v("1.填入需要发货的发货单号、物流公司名称、物流公司编码、物流单号;")]),i("div",{staticStyle:{color:"#909399","font-size":"12px","margin-top":"8px"}},[e._v("2.仅支持.xlsx .xls的文件导入,最多1000条信息,文件大小不超过2M;")]),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v("确认")])],1)],1),i("el-dialog",{attrs:{visible:e.errorInfoDialog.visible,title:"上传信息",width:"510px"},on:{"update:visible":function(t){return e.$set(e.errorInfoDialog,"visible",t)}}},[i("ul",e._l(e.errorInfos,(function(t,a){return i("li",{key:a,staticStyle:{display:"flex"}},[i("span",[e._v("第"+e._s(t.line)+"行")]),i("span",{staticClass:"ml10"},[e._v(e._s(t.errorMsg))])])})),0),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.errorInfoDialog.visible=!1}}},[e._v("关闭")])],1)])],1)},p=[],f=i("cebe"),v=i.n(f);function g(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,a)}return i}function h(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?g(Object(i),!0).forEach((function(t){Object(l["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):g(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var m={data:function(){return{visible:!1,successCount:0,failedCount:0,uploadHeader:{isControl:!0},fileList:[],errorInfoDialog:{visible:!1},errorInfos:[]}},mounted:function(){var e=v.a.defaults.headers.common;this.uploadHeader=h(h({},this.uploadHeader),{},{project:e.project,route:e.route,sign:e.sign}),this.visible=!0},methods:{downloadFile:function(){var e="/welfare";location.href="".concat(e,"/static/批量发货模板.xlsx")},handleConfirm:function(){this.visible=!1},onSuccess:function(e,t){this.fileList.push(t);var i=e.result;this.successCount=i.success,this.failedCount=i.failure,this.errorInfos=i.errorInfos||[],this.$emit("refresh")}}},y=m,b=(i("4d9e"),i("2877")),_=Object(b["a"])(y,d,p,!1,null,"25f84e59",null),C=_.exports,x=i("2dd3"),w=i("036e"),S=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{visible:e.visible,title:"物流发货",width:"780px"},on:{"update:visible":function(t){e.visible=t},closed:function(t){return e.$emit("close")}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("div",[e._v("收货信息:"+e._s(e.data.consignee)+" "+e._s(e.data.consigneePhone)+" "+e._s(e.data.consigneeAddress))]),i("div",{staticClass:"mt20"},[i("span",[e._v("\n 物流公司:\n "),e.isEditing?i("el-select",{staticClass:"w160",attrs:{placeholder:"请选择"},model:{value:e.logisticsCompanyCode,callback:function(t){e.logisticsCompanyCode=t},expression:"logisticsCompanyCode"}},[i("el-option",{attrs:{label:"顺丰速递",value:"SF"}}),i("el-option",{attrs:{label:"中通快递",value:"STO"}})],1):i("span",[e._v(e._s(e.data.logisticsCompanyName))])],1),i("span",{staticClass:"ml120"},[e._v("\n 物流单号:\n "),e.isEditing?i("dm-input-phone",{staticClass:"w160",attrs:{placeholder:"请输入",clearable:""},model:{value:e.logisticsNo,callback:function(t){e.logisticsNo=t},expression:"logisticsNo"}}):i("span",[e._v(e._s(e.data.logisticsNo))])],1),0==e.logisticsList.length?[e.isEditing?i("div",{staticClass:"fr pt10"},[i("el-button",{attrs:{type:"text"},on:{click:e.handleSave}},[e._v("保存")]),i("el-button",{attrs:{type:"text"},on:{click:function(t){e.isEditing=!1}}},[e._v("取消")])],1):i("div",{staticClass:"fr"},[i("el-button",{attrs:{type:"text"},on:{click:e.handleEdit}},[e._v("编辑")])],1)]:e._e()],2),e.logisticsList.length>0?i("div",{staticClass:"logistics-step"},[i("h3",[e._v("派送中")]),i("el-timeline",{staticClass:"hollow logistics-list"},e._l(e.logisticsList,(function(t,a){return i("el-timeline-item",{key:a,attrs:{color:0===a?"":"#c0c4cc"}},[i("div",{staticClass:"logistics-line-step"},[i("span",{staticClass:"time"},[e._v(e._s(t.acceptTime||"--"))]),i("p",{staticClass:"content"},[e._v(e._s(t.acceptStation))])])])})),1)],1):i("div",[i("el-divider"),i("div",{staticClass:"empty_block"})],1)]),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v("确认")])],1)])},O=[],k=u["a"].delivering,j=u["a"].getLogisticsInfo,D={props:{data:Object},data:function(){return{visible:!1,logisticsList:[],logisticsCompanyCode:"",logisticsNo:"",isEditing:!1,loading:!1}},mounted:function(){this.visible=!0,this.getLogisticsInfo()},methods:{handleConfirm:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={SF:"顺丰速递",STO:"中通快递"},this.loading=!0,e.next=4,k({companyName:t[this.logisticsCompanyCode],companyCode:this.logisticsCompanyCode,logisticsNo:this.logisticsNo,deliveryId:this.data.deliveryId}).finally((function(){return i.loading=!1}));case 4:this.visible=!1,this.$emit("refresh");case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleEdit:function(){this.isEditing=!0,this.logisticsCompanyCode=this.data.logisticsCompanyCode,this.logisticsNo=this.data.logisticsNo},getLogisticsInfo:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t,i,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,j({companyCode:this.data.logisticsCompanyCode,logisticsNo:this.data.logisticsNo}).finally((function(){return a.loading=!1}));case 3:t=e.sent,i=t.result,this.logisticsList=i.traces||[],this.logisticsList.reverse();case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},T=D,P=(i("8538"),Object(b["a"])(T,S,O,!1,null,"c46fc112",null)),I=P.exports,N=i("c673"),L=i("cf45");function $(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,a)}return i}function E(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?$(Object(i),!0).forEach((function(t){Object(l["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):$(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var F=u["a"].getDelivery,K=u["a"].getApplicationList,R=u["a"].exportDeliveryData,q=[{label:"福利ID",value:"giftId",sensKey:!1},{label:"礼品名称",value:"giftName",sensKey:!1},{label:"礼品编码",value:"giftCode",sensKey:!1},{label:"SKU编码",value:"giftSkuCode",sensKey:!1},{label:"SKU名称",value:"giftSkuStandard",sensKey:!1},{label:"数量",value:"refundQuantity",sensKey:!1},{label:"发货单号",value:"deliveryId",sensKey:!1},{label:"退货单号",value:"refundId",sensKey:!1},{label:"会员姓名",value:"memberName",sensKey:!0},{label:"会员手机号",value:"memberPhone",sensKey:!0},{label:"来源应用",value:"appName",sensKey:!1},{label:"来源活动",value:"activityName",sensKey:!1},{label:"发货单号",value:"deliveryOrderId",sensKey:!1},{label:"发放文本内容",value:"deliveryInfo",sensKey:!1},{label:"创建时间",value:"createTime",sensKey:!1},{label:"关闭时间",value:"updateTime",sensKey:!1}],z={name:"DeliveryList",components:{BulkDelivery:C,CancelOrder:x["a"],LogisticsDelivery:w["a"],LogisticsInfo:I,WriteOff:N["a"]},props:{type:[String,Number]},data:function(){return{pager:{currentPage:1,pageSize:20,totalCount:0},list:[],appList:[],searchType:"deliveryId",searchValue:"",query:{deliveryType:"",appCode:"",startTime:"",endTime:""},activeDialog:"",row:{},exportConfig:{exportVisible:!1,fields:q,sensKey:"sensKey",label:"label",value:"value"},loading:!1}},created:function(){this.getApplicationList();var e="desc";if(0===this.type)e="asc";else{var t=Date.now();this.query.endTime=this.$options.filters["formatDate"](t)+" 23:59:59",this.query.startTime=this.$options.filters["formatDate"](t-2592e6)+" 00:00:00"}this.getList(e)},methods:{getList:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t,i,a,n,s,r,o,c=this,u=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=u.length>0&&void 0!==u[0]?u[0]:"desc",a=E(E({},this.query),{},(t={pageNum:this.pager.currentPage,pageSize:this.pager.pageSize},Object(l["a"])(t,this.searchType,this.searchValue),Object(l["a"])(t,"deliveryFlag",this.type),Object(l["a"])(t,"sort",i),t)),this.loading=!0,e.next=5,F(a).finally((function(){return c.loading=!1}));case 5:n=e.sent,s=n.result,r=s.result,o=s.totalCount,this.list=r||[],this.pager.totalCount=o,0===this.type&&this.$emit("count",o);case 12:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getApplicationList:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,K();case 2:t=e.sent,i=t.result,this.appList=i||[];case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSearch:function(){this.pager.currentPage=1,this.getList()},handleSizeChange:function(e){this.pager.currentPage=1,this.pager.pageSize=e,this.getList()},handleCurrentChange:function(e){this.pager.currentPage=e,this.getList()},handleSortChange:function(e){e.column,e.prop;var t=e.order,i={descending:"desc",ascending:"asc"};this.getList(i[t])},openDialog:function(e,t){this.row=t,this.activeDialog=e},linkToDetail:function(e){this.$router.push({path:"/gift-performance/delivery-detail",query:{deliveryId:e.deliveryId}})},handleExport:function(e){var t=this,i=E(E({},this.query),{},Object(l["a"])({},this.searchType,this.searchValue)),a=Object(L["a"])({config:e,listParams:i,fieldList:this.exportConfig.fields,path:this.$route.path,pathName:"福利中心-履约管理-退货单"});R(a).then((function(e){t.$refs.exportData.applyReport(!0,e.result)})).catch((function(e){t.$refs.exportData.applyReport()}))},handleSearchTypeChange:function(){this.searchValue="",this.handleSearch()}},filters:{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"date";if(!e)return"--";var i=[],a=[];return e=new Date(e),i.push(e.getFullYear()),i.push((e.getMonth()+1).toString().padStart(2,"0")),i.push(e.getDate().toString().padStart(2,"0")),a.push(e.getHours().toString().padStart(2,"0")),a.push(e.getMinutes().toString().padStart(2,"0")),a.push(e.getSeconds().toString().padStart(2,"0")),{date:i.join("-"),time:a.join(":"),dateTime:i.join("-")+" "+a.join(":")}[t]}},computed:{daterange:{get:function(){return[this.query.startTime,this.query.endTime]},set:function(e){var t=e||["",""],i=Object(o["a"])(t,2);this.query.startTime=i[0],this.query.endTime=i[1]}}}},V=z,M=(i("7753"),Object(b["a"])(V,s,r,!1,null,"97e42e02",null)),A=M.exports,U={name:"Delivery",components:{deliveryList:A},data:function(){return{activeIndex:"",count:0}},mounted:function(){this.$emit("updateBread",[{breadName:"福利中心"},{breadName:"履约管理"},{breadName:"发货单"}])},methods:{setCount:function(e){this.count=e}}},H=U,B=Object(b["a"])(H,a,n,!1,null,null,null);t["default"]=B.exports},2072:function(e,t,i){"use strict";i("8e6e"),i("ac6a"),i("456d");var a=i("ade3"),n=i("71f6"),s=i("f121");function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,a)}return i}function o(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach((function(t){Object(a["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var l={getDelivery:{url:"/delivery-order/get-page-list",method:"post"},getPerformanceList:{url:"/order/get-page-list",method:"post"},getApplicationList:"/stock/application-list",getRefund:{url:"/refund-order/get-page-list",method:"post"},exportRefundData:{url:"/refund-order/order-export",method:"post"},exportDeliveryData:{url:"/delivery-order/order-export",method:"post"},exportPerformanceData:{url:"/order/order-export",method:"post"},getLogisticsInfo:{url:"/logistics/get-logistics-info",method:"post"},handleRefundOrder:{url:"/refund-order/process-refund-order",method:"post",useFormData:!0},getDeliveryDetail:{url:"/delivery-order/get-delivery-detail",method:"post",useFormData:!0},delivering:{url:"/delivery-order/delivering",method:"post"},closeOrder:{url:"/delivery-order/close",method:"post",useFormData:!0}};l=Object(n["a"])(l,s["f"]),t["a"]=o({},l)},26214:function(e,t,i){},"2dd3":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{visible:e.visible,title:"关闭发货单",width:"510px"},on:{"update:visible":function(t){e.visible=t},closed:function(t){return e.$emit("close")}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("div",{staticStyle:{display:"flex","align-items":"center","margin-left":"10px"}},[i("i",{staticClass:"el-icon-warning"}),i("div",{staticClass:"ml20",staticStyle:{"font-size":"16px",color:"#303133"}},[e._v("确认关闭发货单吗?")])]),i("div",{staticStyle:{"margin-left":"50px",color:"#303133","margin-top":"10px"}},[e._v("将恢复礼品的库存,若存在销售单请至商城应用查看退款。")]),i("dm-input",{staticClass:"mt20",attrs:{type:"textarea",placeholder:"请输入关闭原因(必填)",maxlength:50,rows:5,"show-word-limit":""},model:{value:e.reason,callback:function(t){e.reason=t},expression:"reason"}})],1),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v("确认")])],1)])},n=[],s=(i("96cf"),i("1da1")),r=i("2072"),o=r["a"].closeOrder,l={props:{data:Object},data:function(){return{visible:!1,reason:"",loading:!1}},mounted:function(){this.visible=!0},methods:{handleConfirm:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.reason){e.next=8;break}return this.loading=!0,e.next=4,o({deliveryId:this.data.deliveryId,desc:this.reason}).finally((function(){return t.loading=!1}));case 4:this.visible=!1,this.$emit("refresh"),e.next=9;break;case 8:this.$message.warning("请填写关闭原因");case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},c=l,u=(i("573b"),i("2877")),d=Object(u["a"])(c,a,n,!1,null,"3af8fe50",null);t["a"]=d.exports},"2e08":function(e,t,i){var a=i("9def"),n=i("9744"),s=i("be13");e.exports=function(e,t,i,r){var o=String(s(e)),l=o.length,c=void 0===i?" ":String(i),u=a(t);if(u<=l||""==c)return o;var d=u-l,p=n.call(c,Math.ceil(d/c.length));return p.length>d&&(p=p.slice(0,d)),r?p+o:o+p}},3393:function(e,t){function i(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var i=[],a=!0,n=!1,s=void 0;try{for(var r,o=e[Symbol.iterator]();!(a=(r=o.next()).done);a=!0)if(i.push(r.value),t&&i.length===t)break}catch(l){n=!0,s=l}finally{try{a||null==o["return"]||o["return"]()}finally{if(n)throw s}}return i}}e.exports=i,e.exports["default"]=e.exports,e.exports.__esModule=!0},3835:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var a=i("82ea"),n=i("3393"),s=i("a3f3"),r=i("7e0a");function o(e,t){return a(e)||n(e,t)||s(e,t)||r()}},"4d9e":function(e,t,i){"use strict";i("e310")},5077:function(e,t,i){"use strict";i("c746")},"573b":function(e,t,i){"use strict";i("6dfc")},"6dfc":function(e,t,i){},7753:function(e,t,i){"use strict";i("1746")},"7e0a":function(e,t){function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=i,e.exports["default"]=e.exports,e.exports.__esModule=!0},"82ea":function(e,t){function i(e){if(Array.isArray(e))return e}e.exports=i,e.exports["default"]=e.exports,e.exports.__esModule=!0},8538:function(e,t,i){"use strict";i("26214")},9744:function(e,t,i){"use strict";var a=i("4588"),n=i("be13");e.exports=function(e){var t=String(n(this)),i="",s=a(e);if(s<0||s==1/0)throw RangeError("Count can't be negative");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(i+=t);return i}},c673:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{visible:e.visible,title:"自提核销",width:"500px"},on:{"update:visible":function(t){e.visible=t},closed:function(t){return e.$emit("close")}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"write-off"},[i("span",[e._v("请确认买家出示的提货码")]),i("span",{staticClass:"code"},[e._v(e._s(e.data.writeOffCode))]),i("span",{staticClass:"mt25"},[e._v("确认无误后,将商品交付给买家,确认核销后发货单完成")])]),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v("核销")])],1)])},n=[],s=(i("96cf"),i("1da1")),r=i("2072"),o=r["a"].delivering,l={props:{data:Object},data:function(){return{visible:!1,loading:!1}},mounted:function(){this.visible=!0},methods:{handleConfirm:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,o({deliveryId:this.data.deliveryId}).finally((function(){return t.loading=!1}));case 3:this.visible=!1,this.$emit("refresh");case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},c=l,u=(i("5077"),i("2877")),d=Object(u["a"])(c,a,n,!1,null,"5539a2cd",null);t["a"]=d.exports},c746:function(e,t,i){},e310:function(e,t,i){},f576:function(e,t,i){"use strict";var a=i("5ca1"),n=i("2e08"),s=i("a25f"),r=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(s);a(a.P+a.F*r,"String",{padStart:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0,!0)}})}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-61f8141c"],{"036e":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{visible:e.visible,title:"物流发货",width:"510px"},on:{"update:visible":function(t){e.visible=t},closed:function(t){return e.$emit("close")}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"收货信息"}},[i("p",[e._v(e._s(e.data.consignee)+" "+e._s(e.data.consigneePhone))]),i("p",[e._v(e._s(e.data.consigneeAddress))])]),i("el-form-item",{attrs:{label:"物流公司",prop:"logisticsCompanyCode"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.form.logisticsCompanyCode,callback:function(t){e.$set(e.form,"logisticsCompanyCode",t)},expression:"form.logisticsCompanyCode"}},[i("el-option",{attrs:{label:"顺丰速递",value:"SF"}}),i("el-option",{attrs:{label:"中通快递",value:"STO"}})],1)],1),i("el-form-item",{attrs:{label:"物流单号",prop:"logisticCode"}},[i("dm-input-phone",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入"},model:{value:e.form.logisticCode,callback:function(t){e.$set(e.form,"logisticCode",t)},expression:"form.logisticCode"}})],1)],1),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v("确认")])],1)],1)},n=[],s=(i("96cf"),i("1da1")),r=i("2072"),o=r["a"].delivering,l={props:{data:Object},data:function(){return{visible:!1,successCount:0,failedCount:0,form:{logisticsCompanyCode:"",logisticCode:""},rules:{logisticsCompanyCode:[{required:!0,message:"请选择物流公司",trigger:"blur"}],logisticCode:[{required:!0,message:"请填写物流单号",trigger:"blur"}]},loading:!1}},mounted:function(){this.visible=!0},methods:{handleConfirm:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,i,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$refs.form.validate();case 2:if(t=e.sent,!t){e.next=11;break}return i={SF:"顺丰速递",STO:"中通快递"},this.loading=!0,e.next=8,o({companyName:i[this.form.logisticsCompanyCode],companyCode:this.form.logisticsCompanyCode,logisticsNo:this.form.logisticCode,deliveryId:this.data.deliveryId}).finally((function(){return a.loading=!1}));case 8:this.visible=!1,this.$message.success("发货成功"),this.$emit("refresh");case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},c=l,u=i("2877"),d=Object(u["a"])(c,a,n,!1,null,null,null);t["a"]=d.exports},1746:function(e,t,i){},"1e5b":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-tabs",{staticClass:"p20",model:{value:e.activeIndex,callback:function(t){e.activeIndex=t},expression:"activeIndex"}},[i("el-tab-pane",{attrs:{label:"全部",name:""}},[i("delivery-list",{attrs:{type:""}})],1),i("el-tab-pane",{attrs:{label:"待发货("+e.count+")",name:0}},[i("delivery-list",{attrs:{type:0},on:{count:e.setCount}})],1),i("el-tab-pane",{attrs:{label:"已发货",name:1}},[i("delivery-list",{attrs:{type:1}})],1)],1)},n=[],s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("header",[i("el-select",{staticClass:"w160",attrs:{placeholder:"所有应用来源",clearable:""},on:{change:e.handleSearch},model:{value:e.query.appCode,callback:function(t){e.$set(e.query,"appCode",t)},expression:"query.appCode"}},e._l(e.appList,(function(e){return i("el-option",{key:e.appCode,attrs:{label:e.appName,value:e.appCode}})})),1),i("el-select",{staticClass:"w160 ml10",attrs:{placeholder:"所有配货方式",clearable:""},on:{change:e.handleSearch},model:{value:e.query.deliveryType,callback:function(t){e.$set(e.query,"deliveryType",t)},expression:"query.deliveryType"}},[i("el-option",{attrs:{label:"物流发货",value:1}}),i("el-option",{attrs:{label:"门店自提",value:2}})],1),i("el-input",{staticClass:"w360 ml10",attrs:{placeholder:"请输入关键词进行搜索",clearable:""},on:{change:e.handleSearch},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch(t)}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}},[i("el-select",{staticStyle:{width:"140px"},attrs:{slot:"prepend"},on:{change:e.handleSearchTypeChange},slot:"prepend",model:{value:e.searchType,callback:function(t){e.searchType=t},expression:"searchType"}},[i("el-option",{attrs:{label:"商品名称",value:"giftName"}}),i("el-option",{attrs:{label:"礼品编码",value:"giftCode"}}),i("el-option",{attrs:{label:"sku编码",value:"giftSkuCode"}}),i("el-option",{attrs:{label:"发货单号",value:"deliveryId"}}),i("el-option",{attrs:{label:"收件人手机号",value:"consigneePhone"}}),i("el-option",{attrs:{label:"会员姓名",value:"memberName"}}),i("el-option",{attrs:{label:"会员卡号",value:"memberCardNo"}}),i("el-option",{attrs:{label:"履约单号",value:"orderId"}})],1)],1),i("el-date-picker",{staticClass:"w400 ml10",attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},on:{change:e.handleSearch},model:{value:e.daterange,callback:function(t){e.daterange=t},expression:"daterange"}}),i("div",{staticClass:"mt20"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.openDialog("BulkDelivery")}}},[e._v("批量发货")]),i("el-button",{attrs:{icon:"el-icon-download"},on:{click:function(t){e.exportConfig.exportVisible=!0}}},[e._v("导出")])],1)],1),i("el-table",{staticClass:"mt20",attrs:{data:e.list},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{label:"商品",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{staticClass:"goods-info"},[i("img",{staticClass:"imgs-style",attrs:{src:a.giftImgUrl,alt:""}}),i("div",{staticClass:"goods-text"},[i("div",{staticClass:"goods-text-name"},[e._v("\n "+e._s(a.giftName)+"\n ")]),i("div",{staticClass:"goods-text-info"},[a.giftSkuStrand?i("div",e._l(JSON.parse(a.giftSkuStrand||"[]"),(function(t,a){return i("span",{key:a},[e._v(e._s(t.specStandardName)+":"+e._s(t.specStandardValueName)+"   ")])})),0):i("span",[e._v("- -")]),i("div",[e._v("SKU编码:"+e._s(a.giftSkuCode))])])])])]}}])}),i("el-table-column",{attrs:{label:"创建时间",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("p",[e._v(e._s(e._f("formatDate")(a.createTime)))]),i("p",[e._v(e._s(e._f("formatDate")(a.createTime,"time")))])]}}])}),i("el-table-column",{attrs:{label:"数量",prop:"exchangeQuantity"}}),i("el-table-column",{attrs:{label:"发货单号",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.linkToDetail(a)}}},[e._v(e._s(a.deliveryId))]),i("el-popover",{attrs:{placement:"bottom-end",width:"300",trigger:"hover"}},[i("i",{staticClass:"iconfont-welfare4 icon-gengduo2 ml5",attrs:{slot:"reference"},slot:"reference"}),i("div",{staticClass:"performance-order-info"},[i("div",[i("span",[e._v("发货单来源:")]),i("span",[e._v(e._s(a.appName))])]),i("div",{staticClass:"mt10"},[i("span",[e._v("履约单号:")]),i("span",[e._v(e._s(a.orderId))])]),1===a.deliveryType&&0===a.deliveryFlag?[i("div",{staticClass:"mt10"},[i("span",[e._v("收货信息:")]),i("span",[e._v(e._s(a.consignee)+" "+e._s(a.consigneePhone)+" "+e._s(a.consigneeAddress))])])]:1===a.deliveryType&&1===a.deliveryFlag?[i("div",{staticClass:"mt10"},[i("span",[e._v("完成时间:")]),i("span",[e._v(e._s(e._f("formatDate")(a.deliveryTime,"dateTime")))])]),i("div",{staticClass:"mt10"},[i("span",[e._v("收货信息:")]),i("span",[e._v(e._s(a.consignee)+" "+e._s(a.consigneePhone)+" "+e._s(a.consigneeAddress))])])]:2===a.deliveryType&&0===a.deliveryFlag?[i("div",{staticClass:"mt10"},[i("span",[e._v("自提信息:")]),i("span",[e._v(e._s(a.consignee)+" "+e._s(a.consigneePhone))])]),i("div",{staticClass:"mt10"},[i("span",[e._v("自提时间:")]),i("span",[e._v(e._s(e._f("formatDate")(a.pickUpStopTime,"dateTime")))])]),i("div",{staticClass:"mt10"},[i("span",[e._v("自提地址:")]),i("span",[e._v(e._s(a.pickUpStartTime)+" - "+e._s(a.pickUpStopTime))])])]:2===a.deliveryType&&1===a.deliveryFlag?[i("div",{staticClass:"mt10"},[i("span",[e._v("自提信息:")]),i("span",[e._v(e._s(a.consignee)+" "+e._s(a.consigneePhone))])]),i("div",{staticClass:"mt10"},[i("span",[e._v("完成时间:")]),i("span",[e._v(e._s(e._f("formatDate")(a.deliveryTime,"dateTime")))])]),i("div",{staticClass:"mt10"},[i("span",[e._v("核销门店:")]),i("span",[e._v(e._s(a.pickUpPointName))])]),i("div",{staticClass:"mt10"},[i("span",[e._v("操作人:")]),i("span",[e._v(e._s(a.pickUpPointName))])])]:2===a.deliveryFlag?[i("div",{staticClass:"mt10"},[i("span",[e._v("关闭时间:")]),i("span",[e._v(e._s(e._f("formatDate")(a.cancelTime,"dateTime")))])]),i("div",{staticClass:"mt10"},[i("span",[e._v("关闭原因:")]),i("span",[e._v(e._s(a.cancelReason))])])]:e._e()],2)])]}}])}),i("el-table-column",{attrs:{label:"会员信息"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("p",[e._v(e._s(a.memberName||"--"))]),i("p",[e._v(e._s(a.memberCardNo||"--"))])]}}])}),i("el-table-column",{attrs:{label:"发货单状态",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[1===a.deliveryType&&0===a.deliveryFlag?[i("span",{staticClass:"state-point state-point-warning"},[e._v("待发货")]),i("p",[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.openDialog("LogisticsDelivery",a)}}},[e._v("物流发货")]),i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.openDialog("CancelOrder",a)}}},[e._v("关闭发货单")])],1)]:1===a.deliveryType&&1===a.deliveryFlag?[i("span",{staticClass:"state-point state-point-success"},[e._v("已发货")]),i("p",[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.openDialog("LogisticsInfo",a)}}},[e._v("查看物流")]),i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.linkToDetail(a)}}},[e._v("查看详情")])],1)]:2===a.deliveryType&&0===a.deliveryFlag?[i("span",{staticClass:"state-point state-point-warning"},[e._v("待核销")]),i("p",[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.openDialog("WriteOff",a)}}},[e._v("自提核销")]),i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.openDialog("CancelOrder",a)}}},[e._v("关闭发货单")])],1)]:2===a.deliveryType&&1===a.deliveryFlag?[i("span",{staticClass:"state-point state-point-success"},[e._v("已核销")]),i("p",[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.linkToDetail(a)}}},[e._v("查看详情")])],1)]:2===a.deliveryFlag?[i("span",{staticClass:"state-point state-point-default"},[e._v("已关闭")]),i("p",[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.linkToDetail(a)}}},[e._v("查看详情")])],1)]:e._e()]}}])})],1),i("dm-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total, sizes, prev, pager, next","current-page":e.pager.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pager.pageSize,total:e.pager.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}),i(e.activeDialog,{tag:"component",attrs:{data:e.row},on:{close:function(t){e.activeDialog=""},refresh:e.getList}}),i("dm-export-data",{ref:"exportData",attrs:{visible:e.exportConfig.exportVisible,"sens-value":!0,fields:e.exportConfig.fields,label:e.exportConfig.label,value:e.exportConfig.value,"sens-key":e.exportConfig.sensKey},on:{"update:visible":function(t){return e.$set(e.exportConfig,"exportVisible",t)},export:e.handleExport}})],1)},r=[],o=(i("8e6e"),i("ac6a"),i("456d"),i("3835")),l=(i("6b54"),i("f576"),i("ade3")),c=(i("96cf"),i("1da1")),u=(i("c5f6"),i("2072")),d=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-dialog",{attrs:{visible:e.visible,title:"批量发货",width:"510px"},on:{"update:visible":function(t){e.visible=t},closed:function(t){return e.$emit("close")}}},[i("div",{staticStyle:{display:"flex",position:"relative"}},[i("span",{staticStyle:{"flex-shrink":"0","margin-top":"10px"}},[i("span",{staticStyle:{color:"#FF5152","margin-right":"5px"}},[e._v("*")]),e._v("导入文件:")]),i("dm-upload-file",{staticClass:"ml10 upload",staticStyle:{display:"inline-block"},attrs:{action:"/api-welfare/delivery-order/batch-delivering","file-list":e.fileList,"on-success":e.onSuccess,limit:1,accept:".xls,.xlsx","with-credentials":"",headers:e.uploadHeader}},[i("span",{attrs:{slot:"tip"},slot:"tip"}),i("el-button",{attrs:{icon:"iconfont-components4 icon-cp-shangc upload-icon"}},[e._v("上传")])],1),i("el-button",{staticClass:"ml20",staticStyle:{position:"absolute",right:"20px",top:"10px"},attrs:{type:"text"},on:{click:e.downloadFile}},[e._v("下载批量发货的模版")])],1),i("div",{staticClass:"mt10",staticStyle:{"margin-left":"90px"}},[e._v("\n 成功"),i("span",{staticStyle:{color:"#2f54eb"}},[e._v(e._s(e.successCount))]),e._v("条,失败"),i("span",{staticStyle:{color:"#F5222d"}},[e._v(e._s(e.failedCount))]),e._v("条\n "),i("el-button",{staticClass:"ml10",attrs:{type:"text"},on:{click:function(t){e.errorInfoDialog.visible=!0}}},[e._v("查看详情")])],1),i("el-divider"),i("div",{staticStyle:{color:"#909399","font-size":"12px"}},[e._v("1.填入需要发货的发货单号、物流公司名称、物流公司编码、物流单号;")]),i("div",{staticStyle:{color:"#909399","font-size":"12px","margin-top":"8px"}},[e._v("2.仅支持.xlsx .xls的文件导入,最多1000条信息,文件大小不超过2M;")]),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v("确认")])],1)],1),i("el-dialog",{attrs:{visible:e.errorInfoDialog.visible,title:"上传信息",width:"510px"},on:{"update:visible":function(t){return e.$set(e.errorInfoDialog,"visible",t)}}},[i("ul",e._l(e.errorInfos,(function(t,a){return i("li",{key:a,staticStyle:{display:"flex"}},[i("span",[e._v("第"+e._s(t.line)+"行")]),i("span",{staticClass:"ml10"},[e._v(e._s(t.errorMsg))])])})),0),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.errorInfoDialog.visible=!1}}},[e._v("关闭")])],1)])],1)},p=[],v=i("cebe"),f=i.n(v);function g(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,a)}return i}function h(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?g(Object(i),!0).forEach((function(t){Object(l["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):g(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var m={data:function(){return{visible:!1,successCount:0,failedCount:0,uploadHeader:{isControl:!0},fileList:[],errorInfoDialog:{visible:!1},errorInfos:[]}},mounted:function(){var e=f.a.defaults.headers.common;this.uploadHeader=h(h({},this.uploadHeader),{},{project:e.project,route:e.route,sign:e.sign}),this.visible=!0},methods:{downloadFile:function(){var e="/welfare";location.href="".concat(e,"/static/批量发货模板.xlsx")},handleConfirm:function(){this.visible=!1},onSuccess:function(e,t){this.fileList.push(t);var i=e.result;this.successCount=i.success,this.failedCount=i.failure,this.errorInfos=i.errorInfos||[],this.$emit("refresh")}}},y=m,b=(i("4d9e"),i("2877")),_=Object(b["a"])(y,d,p,!1,null,"25f84e59",null),C=_.exports,x=i("2dd3"),w=i("036e"),S=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{visible:e.visible,title:"物流发货",width:"780px"},on:{"update:visible":function(t){e.visible=t},closed:function(t){return e.$emit("close")}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("div",[e._v("收货信息:"+e._s(e.data.consignee)+" "+e._s(e.data.consigneePhone)+" "+e._s(e.data.consigneeAddress))]),i("div",{staticClass:"mt20"},[i("span",[e._v("\n 物流公司:\n "),e.isEditing?i("el-select",{staticClass:"w160",attrs:{placeholder:"请选择"},model:{value:e.logisticsCompanyCode,callback:function(t){e.logisticsCompanyCode=t},expression:"logisticsCompanyCode"}},[i("el-option",{attrs:{label:"顺丰速递",value:"SF"}}),i("el-option",{attrs:{label:"中通快递",value:"STO"}})],1):i("span",[e._v(e._s(e.data.logisticsCompanyName))])],1),i("span",{staticClass:"ml120"},[e._v("\n 物流单号:\n "),e.isEditing?i("dm-input-phone",{staticClass:"w160",attrs:{placeholder:"请输入",clearable:""},model:{value:e.logisticsNo,callback:function(t){e.logisticsNo=t},expression:"logisticsNo"}}):i("span",[e._v(e._s(e.data.logisticsNo))])],1),0==e.logisticsList.length?[e.isEditing?i("div",{staticClass:"fr pt10"},[i("el-button",{attrs:{type:"text"},on:{click:e.handleSave}},[e._v("保存")]),i("el-button",{attrs:{type:"text"},on:{click:function(t){e.isEditing=!1}}},[e._v("取消")])],1):i("div",{staticClass:"fr"},[i("el-button",{attrs:{type:"text"},on:{click:e.handleEdit}},[e._v("编辑")])],1)]:e._e()],2),e.logisticsList.length>0?i("div",{staticClass:"logistics-step"},[i("h3",[e._v("派送中")]),i("el-timeline",{staticClass:"hollow logistics-list"},e._l(e.logisticsList,(function(t,a){return i("el-timeline-item",{key:a,attrs:{color:0===a?"":"#c0c4cc"}},[i("div",{staticClass:"logistics-line-step"},[i("span",{staticClass:"time"},[e._v(e._s(t.acceptTime||"--"))]),i("p",{staticClass:"content"},[e._v(e._s(t.acceptStation))])])])})),1)],1):i("div",[i("el-divider"),i("div",{staticClass:"empty_block"})],1)]),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v("确认")])],1)])},O=[],k=u["a"].delivering,j=u["a"].getLogisticsInfo,D={props:{data:Object},data:function(){return{visible:!1,logisticsList:[],logisticsCompanyCode:"",logisticsNo:"",isEditing:!1,loading:!1}},mounted:function(){this.visible=!0,this.getLogisticsInfo()},methods:{handleConfirm:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={SF:"顺丰速递",STO:"中通快递"},this.loading=!0,e.next=4,k({companyName:t[this.logisticsCompanyCode],companyCode:this.logisticsCompanyCode,logisticsNo:this.logisticsNo,deliveryId:this.data.deliveryId}).finally((function(){return i.loading=!1}));case 4:this.visible=!1,this.$emit("refresh");case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleEdit:function(){this.isEditing=!0,this.logisticsCompanyCode=this.data.logisticsCompanyCode,this.logisticsNo=this.data.logisticsNo},getLogisticsInfo:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t,i,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,j({companyCode:this.data.logisticsCompanyCode,logisticsNo:this.data.logisticsNo}).finally((function(){return a.loading=!1}));case 3:t=e.sent,i=t.result,this.logisticsList=i.traces||[],this.logisticsList.reverse();case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},T=D,P=(i("8538"),Object(b["a"])(T,S,O,!1,null,"c46fc112",null)),I=P.exports,N=i("c673"),L=i("cf45");function $(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,a)}return i}function E(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?$(Object(i),!0).forEach((function(t){Object(l["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):$(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var F=u["a"].getDelivery,K=u["a"].getApplicationList,R=u["a"].exportDeliveryData,q=[{label:"福利ID",value:"giftId",sensKey:!1},{label:"礼品名称",value:"giftName",sensKey:!1},{label:"礼品编码",value:"giftCode",sensKey:!1},{label:"SKU编码",value:"giftSkuCode",sensKey:!1},{label:"SKU名称",value:"giftSkuStandard",sensKey:!1},{label:"数量",value:"refundQuantity",sensKey:!1},{label:"发货单号",value:"deliveryId",sensKey:!1},{label:"退货单号",value:"refundId",sensKey:!1},{label:"会员姓名",value:"memberName",sensKey:!0},{label:"会员手机号",value:"memberPhone",sensKey:!0},{label:"来源应用",value:"appName",sensKey:!1},{label:"来源活动",value:"activityName",sensKey:!1},{label:"发货单号",value:"deliveryOrderId",sensKey:!1},{label:"发放文本内容",value:"deliveryInfo",sensKey:!1},{label:"创建时间",value:"createTime",sensKey:!1},{label:"关闭时间",value:"updateTime",sensKey:!1}],z={name:"DeliveryList",components:{BulkDelivery:C,CancelOrder:x["a"],LogisticsDelivery:w["a"],LogisticsInfo:I,WriteOff:N["a"]},props:{type:[String,Number]},data:function(){return{pager:{currentPage:1,pageSize:20,totalCount:0},list:[],appList:[],searchType:"deliveryId",searchValue:"",query:{deliveryType:"",appCode:"",startTime:"",endTime:""},activeDialog:"",row:{},exportConfig:{exportVisible:!1,fields:q,sensKey:"sensKey",label:"label",value:"value"},loading:!1}},created:function(){this.getApplicationList();var e="desc";if(0===this.type)e="asc";else{var t=Date.now();this.query.endTime=this.$options.filters["formatDate"](t)+" 23:59:59",this.query.startTime=this.$options.filters["formatDate"](t-2592e6)+" 00:00:00"}this.getList(e)},methods:{getList:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t,i,a,n,s,r,o,c=this,u=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=u.length>0&&void 0!==u[0]?u[0]:"desc",a=E(E({},this.query),{},(t={pageNum:this.pager.currentPage,pageSize:this.pager.pageSize},Object(l["a"])(t,this.searchType,this.searchValue),Object(l["a"])(t,"deliveryFlag",this.type),Object(l["a"])(t,"sort",i),t)),this.loading=!0,e.next=5,F(a).finally((function(){return c.loading=!1}));case 5:n=e.sent,s=n.result,r=s.result,o=s.totalCount,this.list=r||[],this.pager.totalCount=o,0===this.type&&this.$emit("count",o);case 12:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getApplicationList:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,K();case 2:t=e.sent,i=t.result,this.appList=i||[];case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSearch:function(){this.pager.currentPage=1,this.getList()},handleSizeChange:function(e){this.pager.currentPage=1,this.pager.pageSize=e,this.getList()},handleCurrentChange:function(e){this.pager.currentPage=e,this.getList()},handleSortChange:function(e){e.column,e.prop;var t=e.order,i={descending:"desc",ascending:"asc"};this.getList(i[t])},openDialog:function(e,t){this.row=t,this.activeDialog=e},linkToDetail:function(e){this.$router.push({path:"/gift-performance/delivery-detail",query:{deliveryId:e.deliveryId}})},handleExport:function(e){var t=this,i=E(E({},this.query),{},Object(l["a"])({},this.searchType,this.searchValue)),a=Object(L["a"])({config:e,listParams:i,fieldList:this.exportConfig.fields,path:this.$route.path,pathName:"福利中心-履约管理-退货单"});R(a).then((function(e){t.$refs.exportData.applyReport(!0,e.result)})).catch((function(e){t.$refs.exportData.applyReport()}))},handleSearchTypeChange:function(){this.searchValue="",this.handleSearch()}},filters:{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"date";if(!e)return"--";var i=[],a=[];return e=new Date(e),i.push(e.getFullYear()),i.push((e.getMonth()+1).toString().padStart(2,"0")),i.push(e.getDate().toString().padStart(2,"0")),a.push(e.getHours().toString().padStart(2,"0")),a.push(e.getMinutes().toString().padStart(2,"0")),a.push(e.getSeconds().toString().padStart(2,"0")),{date:i.join("-"),time:a.join(":"),dateTime:i.join("-")+" "+a.join(":")}[t]}},computed:{daterange:{get:function(){return[this.query.startTime,this.query.endTime]},set:function(e){var t=e||["",""],i=Object(o["a"])(t,2);this.query.startTime=i[0],this.query.endTime=i[1]}}}},V=z,A=(i("7753"),Object(b["a"])(V,s,r,!1,null,"97e42e02",null)),U=A.exports,M={name:"Delivery",components:{deliveryList:U},data:function(){return{activeIndex:"",count:0}},mounted:function(){this.$emit("updateBread",[{breadName:"福利中心"},{breadName:"履约管理"},{breadName:"发货单"}])},methods:{setCount:function(e){this.count=e}}},H=M,B=Object(b["a"])(H,a,n,!1,null,null,null);t["default"]=B.exports},2072:function(e,t,i){"use strict";i("8e6e"),i("ac6a"),i("456d");var a=i("ade3"),n=i("71f6"),s=i("f121");function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,a)}return i}function o(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach((function(t){Object(a["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var l={getDelivery:{url:"/delivery-order/get-page-list",method:"post"},getPerformanceList:{url:"/order/get-page-list",method:"post"},getApplicationList:"/stock/application-list",getRefund:{url:"/refund-order/get-page-list",method:"post"},exportRefundData:{url:"/refund-order/order-export",method:"post"},exportDeliveryData:{url:"/delivery-order/order-export",method:"post"},exportPerformanceData:{url:"/order/order-export",method:"post"},getLogisticsInfo:{url:"/logistics/get-logistics-info",method:"post"},handleRefundOrder:{url:"/refund-order/process-refund-order",method:"post",useFormData:!0},getDeliveryDetail:{url:"/delivery-order/get-delivery-detail",method:"post",useFormData:!0},delivering:{url:"/delivery-order/delivering",method:"post"},closeOrder:{url:"/delivery-order/close",method:"post",useFormData:!0}};l=Object(n["a"])(l,s["f"]),t["a"]=o({},l)},26214:function(e,t,i){},"2dd3":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{visible:e.visible,title:"关闭发货单",width:"510px"},on:{"update:visible":function(t){e.visible=t},closed:function(t){return e.$emit("close")}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("div",{staticStyle:{display:"flex","align-items":"center","margin-left":"10px"}},[i("i",{staticClass:"el-icon-warning"}),i("div",{staticClass:"ml20",staticStyle:{"font-size":"16px",color:"#303133"}},[e._v("确认关闭发货单吗?")])]),i("div",{staticStyle:{"margin-left":"50px",color:"#303133","margin-top":"10px"}},[e._v("将恢复礼品的库存,若存在销售单请至商城应用查看退款。")]),i("dm-input",{staticClass:"mt20",attrs:{type:"textarea",placeholder:"请输入关闭原因(必填)",maxlength:50,rows:5,"show-word-limit":""},model:{value:e.reason,callback:function(t){e.reason=t},expression:"reason"}})],1),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v("确认")])],1)])},n=[],s=(i("96cf"),i("1da1")),r=i("2072"),o=r["a"].closeOrder,l={props:{data:Object},data:function(){return{visible:!1,reason:"",loading:!1}},mounted:function(){this.visible=!0},methods:{handleConfirm:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.reason){e.next=8;break}return this.loading=!0,e.next=4,o({deliveryId:this.data.deliveryId,desc:this.reason}).finally((function(){return t.loading=!1}));case 4:this.visible=!1,this.$emit("refresh"),e.next=9;break;case 8:this.$message.warning("请填写关闭原因");case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},c=l,u=(i("573b"),i("2877")),d=Object(u["a"])(c,a,n,!1,null,"3af8fe50",null);t["a"]=d.exports},"2e08":function(e,t,i){var a=i("9def"),n=i("9744"),s=i("be13");e.exports=function(e,t,i,r){var o=String(s(e)),l=o.length,c=void 0===i?" ":String(i),u=a(t);if(u<=l||""==c)return o;var d=u-l,p=n.call(c,Math.ceil(d/c.length));return p.length>d&&(p=p.slice(0,d)),r?p+o:o+p}},3835:function(e,t,i){"use strict";function a(e){if(Array.isArray(e))return e}function n(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var i=[],a=!0,n=!1,s=void 0;try{for(var r,o=e[Symbol.iterator]();!(a=(r=o.next()).done);a=!0)if(i.push(r.value),t&&i.length===t)break}catch(l){n=!0,s=l}finally{try{a||null==o["return"]||o["return"]()}finally{if(n)throw s}}return i}}i.d(t,"a",(function(){return o}));var s=i("06c5");function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){return a(e)||n(e,t)||Object(s["a"])(e,t)||r()}},"4d9e":function(e,t,i){"use strict";i("e310")},5077:function(e,t,i){"use strict";i("c746")},"573b":function(e,t,i){"use strict";i("6dfc")},"6dfc":function(e,t,i){},7753:function(e,t,i){"use strict";i("1746")},8538:function(e,t,i){"use strict";i("26214")},9744:function(e,t,i){"use strict";var a=i("4588"),n=i("be13");e.exports=function(e){var t=String(n(this)),i="",s=a(e);if(s<0||s==1/0)throw RangeError("Count can't be negative");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(i+=t);return i}},c673:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{visible:e.visible,title:"自提核销",width:"500px"},on:{"update:visible":function(t){e.visible=t},closed:function(t){return e.$emit("close")}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"write-off"},[i("span",[e._v("请确认买家出示的提货码")]),i("span",{staticClass:"code"},[e._v(e._s(e.data.writeOffCode))]),i("span",{staticClass:"mt25"},[e._v("确认无误后,将商品交付给买家,确认核销后发货单完成")])]),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v("核销")])],1)])},n=[],s=(i("96cf"),i("1da1")),r=i("2072"),o=r["a"].delivering,l={props:{data:Object},data:function(){return{visible:!1,loading:!1}},mounted:function(){this.visible=!0},methods:{handleConfirm:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,o({deliveryId:this.data.deliveryId}).finally((function(){return t.loading=!1}));case 3:this.visible=!1,this.$emit("refresh");case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},c=l,u=(i("5077"),i("2877")),d=Object(u["a"])(c,a,n,!1,null,"5539a2cd",null);t["a"]=d.exports},c746:function(e,t,i){},e310:function(e,t,i){},f576:function(e,t,i){"use strict";var a=i("5ca1"),n=i("2e08"),s=i("a25f"),r=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(s);a(a.P+a.F*r,"String",{padStart:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0,!0)}})}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-77938c7c"],{2072:function(e,t,a){"use strict";a("8e6e"),a("ac6a"),a("456d");var r=a("ade3"),s=a("71f6"),n=a("f121");function i(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?i(Object(a),!0).forEach((function(t){Object(r["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):i(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var l={getDelivery:{url:"/delivery-order/get-page-list",method:"post"},getPerformanceList:{url:"/order/get-page-list",method:"post"},getApplicationList:"/stock/application-list",getRefund:{url:"/refund-order/get-page-list",method:"post"},exportRefundData:{url:"/refund-order/order-export",method:"post"},exportDeliveryData:{url:"/delivery-order/order-export",method:"post"},exportPerformanceData:{url:"/order/order-export",method:"post"},getLogisticsInfo:{url:"/logistics/get-logistics-info",method:"post"},handleRefundOrder:{url:"/refund-order/process-refund-order",method:"post",useFormData:!0},getDeliveryDetail:{url:"/delivery-order/get-delivery-detail",method:"post",useFormData:!0},delivering:{url:"/delivery-order/delivering",method:"post"},closeOrder:{url:"/delivery-order/close",method:"post",useFormData:!0}};l=Object(s["a"])(l,n["f"]),t["a"]=o({},l)},"2e08":function(e,t,a){var r=a("9def"),s=a("9744"),n=a("be13");e.exports=function(e,t,a,i){var o=String(n(e)),l=o.length,u=void 0===a?" ":String(a),c=r(t);if(c<=l||""==u)return o;var d=c-l,p=s.call(u,Math.ceil(d/u.length));return p.length>d&&(p=p.slice(0,d)),i?p+o:o+p}},"32cf":function(e,t,a){},3393:function(e,t){function a(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var a=[],r=!0,s=!1,n=void 0;try{for(var i,o=e[Symbol.iterator]();!(r=(i=o.next()).done);r=!0)if(a.push(i.value),t&&a.length===t)break}catch(l){s=!0,n=l}finally{try{r||null==o["return"]||o["return"]()}finally{if(s)throw n}}return a}}e.exports=a,e.exports["default"]=e.exports,e.exports.__esModule=!0},3835:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var r=a("82ea"),s=a("3393"),n=a("a3f3"),i=a("7e0a");function o(e,t){return r(e)||s(e,t)||n(e,t)||i()}},7211:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"p20"},[a("header",[a("el-select",{staticClass:"w160",attrs:{placeholder:"所有应用来源",clearable:""},on:{change:e.handleSearch},model:{value:e.query.appCode,callback:function(t){e.$set(e.query,"appCode",t)},expression:"query.appCode"}},e._l(e.appList,(function(e){return a("el-option",{key:e.appCode,attrs:{label:e.appName,value:e.appCode}})})),1),a("el-select",{staticClass:"w160 ml10",attrs:{placeholder:"所有处理状态",clearable:""},on:{change:e.handleChangeRefundFlag},model:{value:e.query.refundFlag,callback:function(t){e.$set(e.query,"refundFlag",t)},expression:"query.refundFlag"}},e._l(e.refundFlagMap,(function(e,t){return a("el-option",{key:t,attrs:{label:e,value:parseInt(t)}})})),1),a("el-input",{staticClass:"w360 ml10",attrs:{placeholder:"请输入关键词搜索",clearable:""},on:{change:e.handleSearch},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch(t)}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}},[a("el-select",{staticClass:"w160",attrs:{slot:"prepend"},on:{change:e.handleSearchTypeChange},slot:"prepend",model:{value:e.searchType,callback:function(t){e.searchType=t},expression:"searchType"}},[a("el-option",{attrs:{label:"退货单号",value:"refundId"}}),a("el-option",{attrs:{label:"商品名称",value:"giftName"}}),a("el-option",{attrs:{label:"礼品编码",value:"giftCode"}}),a("el-option",{attrs:{label:"sku编码",value:"giftSkuCode"}}),a("el-option",{attrs:{label:"发货单号",value:"deliveryId"}}),a("el-option",{attrs:{label:"会员手机号",value:"memberPhone"}}),a("el-option",{attrs:{label:"会员姓名",value:"memberName"}}),a("el-option",{attrs:{label:"会员卡号",value:"memberCardNo"}}),a("el-option",{attrs:{label:"履约单号",value:"orderId"}}),a("el-option",{attrs:{label:"退货物流号",value:"refundLogisticsNo"}})],1)],1),a("el-date-picker",{staticClass:"w400 ml10",attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},on:{change:e.handleSearch},model:{value:e.daterange,callback:function(t){e.daterange=t},expression:"daterange"}}),a("div",{staticClass:"mt20"},[a("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:function(t){e.exportConfig.exportVisible=!0}}},[e._v("导出")])],1)],1),a("el-table",{staticClass:"mt20",attrs:{data:e.list},on:{"sort-change":e.handleSortChange}},[a("el-table-column",{attrs:{label:"礼品",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("div",{staticClass:"goods-info"},[a("img",{staticClass:"imgs-style",attrs:{src:r.giftImageUrl,alt:""}}),a("div",{staticClass:"goods-text"},[a("div",{staticClass:"goods-text-name"},[e._v("\n "+e._s(r.giftName)+"\n ")]),a("div",{staticClass:"goods-text-info"},[r.giftSkuStandard?a("div",e._l(JSON.parse(r.giftSkuStandard||"[]"),(function(t,r){return a("span",{key:r},[e._v(e._s(t.specStandardName)+":"+e._s(t.specStandardValueName)+"   ")])})),0):a("span",[e._v("- -")]),a("div",[e._v("SKU编码:"+e._s(r.giftSkuCode))])])])])]}}])}),a("el-table-column",{attrs:{label:"申请时间",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(e._f("formatDate")(r.createTime)))]),a("p",[e._v(e._s(e._f("formatDate")(r.createTime,"time")))])]}}])}),a("el-table-column",{attrs:{label:"申请数量",prop:"refundQuantity"}}),a("el-table-column",{attrs:{label:"退货单号",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[e._v("\n "+e._s(r.refundId)+"\n "),a("el-popover",{attrs:{placement:"bottom-end",width:"300",trigger:"hover"}},[a("i",{staticClass:"iconfont-welfare4 icon-gengduo2",attrs:{slot:"reference"},slot:"reference"}),a("div",{staticClass:"performance-order-info"},[a("div",[a("span",[e._v("退货单来源:")]),a("span",[e._v(e._s(r.appName))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("履约单号:")]),a("span",[e._v(e._s(r.orderId))])]),0!==r.refundFlag||r.refundLogisticsNo?0===r.refundFlag&&r.refundLogisticsNo?[a("div",{staticClass:"mt10"},[a("span",[e._v("寄回时间:")]),a("span",[e._v(e._s(e._f("formatDate")(r.deliveryTime,"dateTime")))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("退货原因:")]),a("span",[e._v(e._s(r.refundReason))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("退货说明:")]),a("span",[e._v(e._s(r.refundRemark))])])]:1===r.refundFlag?[a("div",{staticClass:"mt10"},[a("span",[e._v("操作人:")]),a("span",[e._v(e._s(r.refundUserName))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("操作时间:")]),a("span",[e._v(e._s(e._f("formatDate")(r.processTime,"dateTime")))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("退货原因:")]),a("span",[e._v(e._s(r.refundReason))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("退货说明:")]),a("span",[e._v(e._s(r.refundRemark))])])]:2===r.refundFlag?[a("div",{staticClass:"mt10"},[a("span",[e._v("操作人:")]),a("span",[e._v(e._s(r.refundUserName))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("操作时间:")]),a("span",[e._v(e._s(e._f("formatDate")(r.processTime,"dateTime")))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("拒绝原因:")]),a("span",[e._v(e._s(r.refuseReason))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("退货原因:")]),a("span",[e._v(e._s(r.refundReason))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("退货说明:")]),a("span",[e._v(e._s(r.refundRemark))])])]:3===r.refundFlag?[a("div",{staticClass:"mt10"},[a("span",[e._v("关闭时间:")]),a("span",[e._v(e._s(e._f("formatDate")(r.cancelTime,"dateTime")))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("关闭原因:")]),a("span",[e._v(e._s(r.cancelReason))])])]:e._e():[a("div",{staticClass:"mt10"},[a("span",[e._v("退货原因:")]),a("span",[e._v(e._s(r.refundReason))])]),a("div",{staticClass:"mt10"},[a("span",[e._v("退货说明:")]),a("span",[e._v(e._s(r.refundRemark))])])]],2)])]}}])}),a("el-table-column",{attrs:{label:"会员信息"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.memberName||"--"))]),a("p",[e._v(e._s(r.memberCardNo||"--"))])]}}])}),a("el-table-column",{attrs:{label:"寄回状态"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[r.refundLogisticsNo?[a("div",{staticClass:"state-point state-point-success"},[e._v("已寄回")]),a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.openDialog("logisticsDialog",r)}}},[e._v("查看物流")])],1)]:[a("span",{staticClass:"state-point state-point-warning"},[e._v("待寄回")])]]}}])}),a("el-table-column",{attrs:{label:"操作",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[0==r.refundFlag&&r.refundLogisticsNo?[a("div",[a("dm-delete",{attrs:{tips:"确认同意收货?"},on:{confirm:function(t){return e.handleReceive(r,1)}}},[a("el-button",{attrs:{type:"text"}},[e._v("同意收货")])],1),a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.openDialog("refuseDialog",r)}}},[e._v("拒绝收货")])],1)]:e._e(),0!=r.refundFlag&&r.refundLogisticsNo?[a("span",[e._v(e._s(e.refundStatus[r.refundFlag]))])]:e._e()]}}])})],1),a("dm-pagination",{staticClass:"text-right",attrs:{background:"",layout:"total, sizes, prev, pager, next","current-page":e.pager.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pager.pageSize,total:e.pager.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}),a("dm-export-data",{ref:"exportData",attrs:{visible:e.exportConfig.exportVisible,"sens-value":!0,fields:e.exportConfig.fields,label:e.exportConfig.label,value:e.exportConfig.value,"sens-key":e.exportConfig.sensKey},on:{"update:visible":function(t){return e.$set(e.exportConfig,"exportVisible",t)},export:e.handleExport}}),a("el-dialog",{attrs:{visible:e.refuseDialog.visible,title:"拒绝收货",width:"500px"},on:{"update:visible":function(t){return e.$set(e.refuseDialog,"visible",t)},close:function(t){return e.$refs.refuseForm.resetFields()}}},[a("el-form",{ref:"refuseForm",attrs:{model:e.refuseDialog.form,rules:e.refuseDialog.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"原因备注",prop:"reason"}},[a("dm-input",{attrs:{type:"textarea",maxlength:240,rows:5,"show-word-limit":""},model:{value:e.refuseDialog.form.reason,callback:function(t){e.$set(e.refuseDialog.form,"reason",t)},expression:"refuseDialog.form.reason"}})],1)],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.refuseDialog.visible=!1}}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleReceive(e.row,0)}}},[e._v("确认")])],1)],1),a("el-dialog",{attrs:{title:"物流详情",visible:e.logisticsDialog.visible,width:"800px"},on:{"update:visible":function(t){return e.$set(e.logisticsDialog,"visible",t)}}},[a("div",{staticClass:"logistics-info"},[a("div",[a("span",{staticClass:"key"},[e._v("快递公司:")]),a("span",[e._v(e._s(e.logisticsDialog.logisticsCompanyName||"--"))])]),a("div",[a("span",{staticClass:"key"},[e._v("快递单号:")]),a("span",[e._v(e._s(e.logisticsDialog.logisticCode||"--"))]),a("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.logisticsDialog.logisticCode,expression:"logisticsDialog.logisticCode",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.onError,expression:"onError",arg:"error"}],staticClass:"ml15",attrs:{type:"text"}},[e._v("复制")])],1)]),e.logisticsDialog.logisticsList.length>0?a("div",{staticClass:"logistics-step"},[a("h3",[e._v("派送中")]),a("el-timeline",{staticClass:"hollow logistics-list"},e._l(e.logisticsDialog.logisticsList,(function(t,r){return a("el-timeline-item",{key:r,attrs:{color:0===r?"":"#c0c4cc"}},[a("div",{staticClass:"logistics-line-step"},[a("span",{staticClass:"time"},[e._v(e._s(t.acceptTime||"--"))]),a("p",{staticClass:"content"},[e._v(e._s(t.acceptStation))])])])})),1)],1):a("div",{staticClass:"empty_block"})])],1)},s=[],n=(a("8e6e"),a("ac6a"),a("456d"),a("3835")),i=(a("6b54"),a("f576"),a("ade3")),o=(a("96cf"),a("1da1")),l=(a("c5f6"),a("2072")),u=a("cf45");function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?c(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var p=l["a"].getRefund,f=l["a"].getApplicationList,g=l["a"].exportRefundData,v=l["a"].handleRefundOrder,m=l["a"].getLogisticsInfo,h={0:"待处理",1:"同意退货",2:"拒绝退货",3:"已关闭"},b={1:"已同意",2:"已拒绝",3:"已关闭"},y=[{label:"福利ID",value:"giftId",sensKey:!1},{label:"礼品名称",value:"giftName",sensKey:!1},{label:"礼品编码",value:"giftCode",sensKey:!1},{label:"SKU编码",value:"giftSkuCode",sensKey:!1},{label:"SKU名称",value:"giftSkuStandard",sensKey:!1},{label:"数量",value:"refundQuantity",sensKey:!1},{label:"创建时间",value:"createTime",sensKey:!1},{label:"发货时间",value:"deliveryTime",sensKey:!1},{label:"履约单号",value:"orderId",sensKey:!1},{label:"发货单号",value:"deliveryId",sensKey:!1},{label:"退货单号",value:"refundId",sensKey:!1},{label:"退货处理状态",value:"refundFlag",sensKey:!1},{label:"会员姓名",value:"memberName",sensKey:!0},{label:"会员手机号",value:"memberPhone",sensKey:!0},{label:"收货人姓名",value:"deliveryConsigneeName",sensKey:!0},{label:"收货人手机号",value:"deliveryConsigneePhone",sensKey:!0},{label:"收货人省",value:"deliveryProvinceName",sensKey:!1},{label:"收货人市",value:"deliveryCityName",sensKey:!1},{label:"收货人区",value:"deliveryCountyName",sensKey:!1},{label:"收货人详细地址",value:"deliveryConsigneeAddress",sensKey:!0},{label:"收货人地址",value:"deliveryConsigneeArea",sensKey:!1},{label:"来源应用",value:"appName",sensKey:!1},{label:"来源活动",value:"activityName",sensKey:!1},{label:"退货物流公司",value:"refundCompanyName",sensKey:!1},{label:"退货物流单号",value:"refundLogisticsNo",sensKey:!1},{label:"退货原因",value:"refundReason",sensKey:!1}],_={name:"DeliveryList",props:{type:[String,Number]},data:function(){return{loading:!1,pager:{currentPage:1,pageSize:20,totalCount:0},refundFlagMap:h,refundStatus:b,list:[],appList:[],searchType:"refundId",searchValue:"",query:{refundFlag:"",appCode:"",startTime:"",endTime:""},row:{},exportConfig:{exportVisible:!1,fields:y,sensKey:"sensKey",label:"label",value:"value"},refuseDialog:{visible:!1,form:{reason:""},rules:{reason:[{required:!0,message:"请填写原因备注",trigger:"blur"}]}},logisticsDialog:{visible:!1,logisticsList:[]}}},created:function(){this.$emit("updateBread",[{breadName:"福利中心"},{breadName:"履约管理"},{breadName:"退货单"}]);var e=Date.now();this.query.endTime=this.$options.filters["formatDate"](e)+" 23:59:59",this.query.startTime=this.$options.filters["formatDate"](e-2592e6)+" 00:00:00",this.getApplicationList(),this.handleChangeRefundFlag()},methods:{getList:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,a,r,s,n,o,l,u=this,c=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=c.length>0&&void 0!==c[0]?c[0]:"desc",this.loading=!0,r=d(d({},this.query),{},(t={pageNum:this.pager.currentPage,pageSize:this.pager.pageSize},Object(i["a"])(t,this.searchType,this.searchValue),Object(i["a"])(t,"sort",a),t)),e.next=5,p(r).finally((function(){return u.loading=!1}));case 5:s=e.sent,n=s.result,o=n.result,l=n.totalCount,this.list=o||[],this.pager.totalCount=l;case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getApplicationList:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f();case 2:t=e.sent,a=t.result,this.appList=a||[];case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSearch:function(){this.pager.currentPage=1,this.getList()},handleSizeChange:function(e){this.pager.currentPage=1,this.pager.pageSize=e,this.getList()},handleCurrentChange:function(e){this.pager.currentPage=e,this.getList()},handleSortChange:function(e){e.column,e.prop;var t=e.order,a={descending:"desc",ascending:"asc"};this.getList(a[t])},openDialog:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,a){var r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this[t].visible=!0,this.row=a,"logisticsDialog"!=t){e.next=11;break}return e.next=5,m({companyCode:a.refundId,logisticsNo:a.refundLogisticsNo});case 5:r=e.sent,s=r.result,this.logisticsDialog.logisticsList=s.traces||[],this.logisticsDialog.logisticsList.reverse(),this.logisticsDialog.logisticsCompanyName=s.logisticsCompanyName,this.logisticsDialog.logisticCode=s.logisticCode;case 11:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}(),handleExport:function(e){var t=this,a=d(d({},this.query),{},Object(i["a"])({},this.searchType,this.searchValue)),r=Object(u["a"])({config:e,listParams:a,fieldList:this.exportConfig.fields,path:this.$route.path,pathName:"福利中心-履约管理-退货单"});g(r).then((function(e){t.$refs.exportData.applyReport(!0,e.result)})).catch((function(e){t.$refs.exportData.applyReport()}))},handleReceive:function(e,t){var a=this,r={refundId:e.refundId,processFlag:t,refuseReason:""};t?v(r).then((function(){a.getList()})):(r.refuseReason=this.refuseDialog.form.reason,this.$refs.refuseForm.validate(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t){e.next=5;break}return e.next=3,v(r);case 3:a.refuseDialog.visible=!1,a.getList();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()))},handleChangeRefundFlag:function(){var e;e=0===this.query.refundFlag?"asc":"desc",this.pager.currentPage=1,this.getList(e)},onCopy:function(e){this.$message.success("复制成功")},onError:function(e){this.$message.error("复制失败")},handleSearchTypeChange:function(){this.searchValue="",this.handleSearch()}},filters:{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"date";if(!e)return"--";var a=[],r=[];return e=new Date(e),a.push(e.getFullYear()),a.push((e.getMonth()+1).toString().padStart(2,"0")),a.push(e.getDate().toString().padStart(2,"0")),r.push(e.getHours().toString().padStart(2,"0")),r.push(e.getMinutes().toString().padStart(2,"0")),r.push(e.getSeconds().toString().padStart(2,"0")),{date:a.join("-"),time:r.join(":"),dateTime:a.join("-")+" "+r.join(":")}[t]}},computed:{daterange:{get:function(){return[this.query.startTime,this.query.endTime]},set:function(e){var t=e||["",""],a=Object(n["a"])(t,2);this.query.startTime=a[0],this.query.endTime=a[1]}}}},C=_,x=(a("edd3"),a("2877")),w=Object(x["a"])(C,r,s,!1,null,"5d2c77a9",null);t["default"]=w.exports},"7e0a":function(e,t){function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=a,e.exports["default"]=e.exports,e.exports.__esModule=!0},"82ea":function(e,t){function a(e){if(Array.isArray(e))return e}e.exports=a,e.exports["default"]=e.exports,e.exports.__esModule=!0},9744:function(e,t,a){"use strict";var r=a("4588"),s=a("be13");e.exports=function(e){var t=String(s(this)),a="",n=r(e);if(n<0||n==1/0)throw RangeError("Count can't be negative");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(a+=t);return a}},edd3:function(e,t,a){"use strict";a("32cf")},f576:function(e,t,a){"use strict";var r=a("5ca1"),s=a("2e08"),n=a("a25f"),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(n);r(r.P+r.F*i,"String",{padStart:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0,!0)}})}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment