webpackJsonp([1],{"5e79":function(e,t){},"7/Sj":function(e,t){},CwSZ:function(e,t,r){"use strict";varo=r("p8xL"),n=r("XgCd"),a={brackets:function(e){returne+"[]"},indices:function(e,t){returne+"["+t+"]"},repeat:function(e){returne}},i=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,serializeDate:function(e){returni.call(e)},skipNulls:!1,strictNullHandling:!1},c=functione(t,r,n,a,i,c,l,u,p,d,f,h){varg=t;if("function"==typeofl)g=l(r,g);elseif(ginstanceofDate)g=d(g);elseif(null===g){if(a)returnc&&!h?c(r,s.encoder):r;g=""}if("string"==typeofg||"number"==typeofg||"boolean"==typeofg||o.isBuffer(g))returnc?[f(h?r:c(r,s.encoder))+"="+f(c(g,s.encoder))]:[f(r)+"="+f(String(g))];vary,m=[];if(void0===g)returnm;if(Array.isArray(l))y=l;else{varv=Object.keys(g);y=u?v.sort(u):v}for(varb=0;b<y.length;++b){varw=y[b];i&&null===g[w]||(m=Array.isArray(g)?m.concat(e(g[w],n(r,w),n,a,i,c,l,u,p,d,f,h)):m.concat(e(g[w],r+(p?"."+w:"["+w+"]"),n,a,i,c,l,u,p,d,f,h)))}returnm};e.exports=function(e,t){varr=e,i=t?o.assign({},t):{};if(null!==i.encoder&&void0!==i.encoder&&"function"!=typeofi.encoder)thrownewTypeError("Encoder has to be a function.");varl=void0===i.delimiter?s.delimiter:i.delimiter,u="boolean"==typeofi.strictNullHandling?i.strictNullHandling:s.strictNullHandling,p="boolean"==typeofi.skipNulls?i.skipNulls:s.skipNulls,d="boolean"==typeofi.encode?i.encode:s.encode,f="function"==typeofi.encoder?i.encoder:s.encoder,h="function"==typeofi.sort?i.sort:null,g=void0!==i.allowDots&&i.allowDots,y="function"==typeofi.serializeDate?i.serializeDate:s.serializeDate,m="boolean"==typeofi.encodeValuesOnly?i.encodeValuesOnly:s.encodeValuesOnly;if(void0===i.format)i.format=n.default;elseif(!Object.prototype.hasOwnProperty.call(n.formatters,i.format))thrownewTypeError("Unknown format option provided.");varv,b,w=n.formatters[i.format];"function"==typeofi.filter?r=(b=i.filter)("",r):Array.isArray(i.filter)&&(v=b=i.filter);varD,O=[];if("object"!=typeofr||null===r)return"";D=i.arrayFormatina?i.arrayFormat:"indices"ini?i.indices?"indices":"repeat":"indices";varx=a[D];v||(v=Object.keys(r)),h&&v.sort(h);for(varj=0;j<v.length;++j){varC=v[j];p&&null===r[C]||(O=O.concat(c(r[C],C,x,u,p,d?f:null,b,h,g,y,w,m)))}vark=O.join(l),I=!0===i.addQueryPrefix?"?":"";returnk.length>0?I+k:""}},DDCP:function(e,t,r){"use strict";varo=r("p8xL"),n=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:o.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},i=function(e,t,r){if(e){varo=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,i=/(\[[^[\]]*])/.exec(o),s=i?o.slice(0,i.index):o,c=[];if(s){if(!r.plainObjects&&n.call(Object.prototype,s)&&!r.allowPrototypes)return;c.push(s)}for(varl=0;null!==(i=a.exec(o))&&l<r.depth;){if(l+=1,!r.plainObjects&&n.call(Object.prototype,i[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(i[1])}returni&&c.push("["+o.slice(i.index)+"]"),function(e,t,r){for(varo=t,n=e.length-1;n>=0;--n){vara,i=e[n];if("[]"===i)a=(a=[]).concat(o);else{a=r.plainObjects?Object.create(null):{};vars="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,c=parseInt(s,10);!isNaN(c)&&i!==s&&String(c)===s&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(a=[])[c]=o:a[s]=o}o=a}returno}(c,t,r)}};e.exports=function(e,t){varr=t?o.assign({},t):{};if(null!==r.decoder&&void0!==r.decoder&&"function"!=typeofr.decoder)thrownewTypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"==typeofr.delimiter||o.isRegExp(r.delimiter)?r.delimiter:a.delimiter,r.depth="number"==typeofr.depth?r.depth:a.depth,r.arrayLimit="number"==typeofr.arrayLimit?r.arrayLimit:a.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeofr.decoder?r.decoder:a.decoder,r.allowDots="boolean"==typeofr.allowDots?r.allowDots:a.allowDots,r.plainObjects="boolean"==typeofr.plainObjects?r.plainObjects:a.plainObjects,r.allowPrototypes="boolean"==typeofr.allowPrototypes?r.allowPrototypes:a.allowPrototypes,r.parameterLimit="number"==typeofr.parameterLimit?r.parameterLimit:a.parameterLimit,r.strictNullHandling="boolean"==typeofr.strictNullHandling?r.strictNullHandling:a.strictNullHandling,""===e||null===e||void0===e)returnr.plainObjects?Object.create(null):{};for(vars="string"==typeofe?function(e,t){for(varr={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void0:t.parameterLimit,s=o.split(t.delimiter,i),c=0;c<s.length;++c){varl,u,p=s[c],d=p.indexOf("]="),f=-1===d?p.indexOf("="):d+1;-1===f?(l=t.decoder(p,a.decoder),u=t.strictNullHandling?null:""):(l=t.decoder(p.slice(0,f),a.decoder),u=t.decoder(p.slice(f+1),a.decoder)),n.call(r,l)?r[l]=[].concat(r[l]).concat(u):r[l]=u}returnr}(e,r):e,c=r.plainObjects?Object.create(null):{},l=Object.keys(s),u=0;u<l.length;++u){varp=l[u],d=i(p,s[p],r);c=o.merge(c,d,r)}returno.compact(c)}},XgCd:function(e,t,r){"use strict";varo=String.prototype.replace,n=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){returno.call(e,n,"+")},RFC3986:function(e){returne}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},YPWR:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});varo=r("mvHQ"),n=r.n(o),a=r("//Fk"),i=r.n(a),s=r("lRwf"),c=r.n(s),l=r("mw3O"),u=r.n(l),p=r("l6IN");c.a.axios.defaults.timeout=19e3;vard=window.location.origin;-1!=d.indexOf("localhost")&&(d="http://www.gicdev.com"),c.a.axios.interceptors.request.use(function(e){returne},function(e){returnp.Message.error({message:"请求超时!"}),i.a.resolve(e)}),c.a.axios.interceptors.response.use(function(e){returne.status&&200==e.status&&"401"==e.data.errorCode?(p.Message.error({message:e.data.message}),void(window.location.href=d+"/gic-web/#/")):e},function(e){return504==e.response.status||404==e.response.status?p.Message.error({message:"服务异常⊙﹏⊙∥"}):(e.response.status,window.location.href=d+"/gic-web/#/"),i.a.resolve(e)});varf=function(e,t){returnt.requestProject="gic-web",c.a.axios({method:"get",url:""+d+e,data:{},params:t,headers:{"content-type":"application/x-www-form-urlencoded"}})},h=function(e){vart=window.location.origin;if(t.indexOf("localhost")&&(t="http://gicdev.demogic.com"),0!=e.errorCode){if(401==e.errorCode)returnwindow.location.href=t+"/gic-web/#/",!1;p.Message.error({duration:1e3,message:e.message})}},g={name:"store-tree-select",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",storeVisible:!1,storeGroupIds:[],storeData:[],defaultProps:{children:"children",label:"storeGroupName"}}},methods:{loadData:function(e,t,r){e.hasOwnProperty("storeId")||e.hasOwnProperty("loaded")||(e.loaded=!0,this.getStoreData(e))},checkStore:function(e){this.storeGroupIds=this.$refs.storeTree.getCheckedNodes(),this.$emit("checkStoreGroupIds",this.$refs.storeTree.getCheckedNodes())},treeData:function(e){returne.filter(function(t){varr=e.filter(function(e){returnt.groupId==e.parentId});returnr.length>0&&(t.children=r),0==t.groupId})},getStoreData:function(e){vart=this,r={storeGroupId:e.storeGroupId,recursionStr:!0,hasPage:!1};f("/api-admin/store-list",r).then(function(t){varr=t.data;0!=r.errorCode?h(r):r.result&&r.result.list.length&&r.result.list.forEach(function(t){t.storeGroupName=t.storeName,t.storeGroupIds=t.storeId,e.children.push(t)})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getStoreGroup:function(){vare=this;f("/api-admin/store-group-list",{}).then(function(t){varr=t.data;0!=r.errorCode?h(r):r.result&&r.result.length&&(e.storeData=r.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getStoreGroup()}},y={render:function(){vare=this,t=e.$createElement,r=e._self._c||t;returnr("el-popover",{staticStyle:{"min-width":"232px"},attrs:{placement:"bottom"},model:{value:e.storeVisible,callback:function(t){e.storeVisible=t},expression:"storeVisible"}},[r("div",{staticClass:"select-tree-wrap"},[r("el-tree",{ref:"storeTree",attrs:{data:e.storeData,"node-key":"storeGroupId","show-checkbox":"",props:e.defaultProps},on:{"node-click":e.loadData,"node-expand":e.loadData,check:e.checkStore}})],1),e._v(" "),r("div",{staticClass:"flex-column item-cell-select inline-block m-l-10",attrs:{slot:"reference"},slot:"reference"},[r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"350px"}},[e.storeGroupIds.length?e._e():r("span",{staticClass:"font-14 color-c0c4cc p-l-10",staticStyle:{display:"inline-block","line-height":"32px",color:"#c0c4cc"}},[e._v("请选择门店分组")]),e._v(" "),r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"330px"}},[r("span",[e._l(e.storeGroupIds,function(t,o){return[r("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.storeGroupName||t.storeName))])])]})],2)])])])])])},staticRenderFns:[]};varm={name:"index",components:{storeTreeSelect:r("VU/8")(g,y,!1,function(e){r("5e79")},"data-v-1a03b88e",null).exports},data:function(){vare=this;return{projectName:"haoban-manage-web",contentHeight:"0px",choiceDate:[],choiceDateCopy:[],pickerOptions:{onPick:function(t){varr=t.maxDate,o=t.minDate;e.choiceDateCopy=[o.getTime()],r&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){varr=e.choiceDateCopy[0]-2592e6,o=e.choiceDateCopy[0]+2592e6;returnt.getTime()<r||t.getTime()>o||t.getTime()>Date.now()-864e4}returnt.getTime()>Date.now()-864e4}},storeGroupIds:[],enterpriseId:""}},methods:{exportData:function(){returnthis.choiceDate&&this.choiceDate.length?this.storeGroupIds.length?voidthis.postExportData():(this.$message.error({duration:1e3,message:"请选择门店分组"}),!1):(this.$message.error({duration:1e3,message:"请选择日期区间"}),!1)},postExportData:function(){vare=this,t=[],r=[];e.storeGroupIds.forEach(function(e){e.hasOwnProperty("storeId")?t.push(e.storeId):r.push(e.storeGroupId)});varo,n,a={enterpriseId:e.enterpriseId,startDate:e.choiceDate[0],endDate:e.choiceDate[1],storeIds:t.join(","),groupIds:r.join(",")};(o="/haoban-app-sign-old-web/sign/export-sign-list",n=a,n.requestProject="gic-web",c.a.axios({method:"post",url:""+d+o,data:u.a.stringify(n),responseType:"blob",headers:{"content-type":"application/x-www-form-urlencoded"}})).then(function(t){if(!t.data)returnh("暂无数据"),!1;varr=newBlob([t.data],{type:"application/vnd.ms-excel"}),o=e.choiceDate[0].replace(/-/g,"")+"-"+e.choiceDate[1].replace(/-/g,"")+"签到报表.xlsx",n=document.createElement("a");n.download=o,n.style.display="none",n.href=URL.createObjectURL(r),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeDate:function(e){e?this.choiceDateCopy=JSON.parse(n()(this.choiceDate)):(this.choiceDateCopy=[],this.choiceDate=[])},checkStoreGroupIds:function(e){this.storeGroupIds=e},getUserInfo:function(){vare=this;f("/api-auth/get-login-user-info",{}).then(function(t){varr=t.data;0!=r.errorCode?h(r):e.enterpriseId=r.result.enterpriseId}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getUserInfo()}},v={render:function(){vare=this,t=e.$createElement,r=e._self._c||t;returnr("div",{staticClass:"sign-contain"},[r("div",{staticClass:"sign-content border-box"},[r("div",[r("el-date-picker",{attrs:{"picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.choiceDate,callback:function(t){e.choiceDate=t},expression:"choiceDate"}})],1),e._v(" "),r("div",{staticClass:"m-t-20"},[r("store-tree-select",{on:{checkStoreGroupIds:e.checkStoreGroupIds}})],1),e._v(" "),r("div",{staticClass:"m-t-20"},[r("el-button",{attrs:{type:"primary"},on:{click:e.exportData}},[e._v("导 出")])],1)])])},staticRenderFns:[]};varb=r("VU/8")(m,v,!1,function(e){r("7/Sj")},"data-v-7eb5db46",null);t.default=b.exports},mvHQ:function(e,t,r){e.exports={default:r("qkKv"),__esModule:!0}},mw3O:function(e,t,r){"use strict";varo=r("CwSZ"),n=r("DDCP"),a=r("XgCd");e.exports={formats:a,parse:n,stringify:o}},p8xL:function(e,t,r){"use strict";varo=Object.prototype.hasOwnProperty,n=function(){for(vare=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());returne}();t.arrayToObject=function(e,t){for(varr=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void0!==e[o]&&(r[o]=e[o]);returnr},t.merge=function(e,r,n){if(!r)returne;if("object"!=typeofr){if(Array.isArray(e))e.push(r);else{if("object"!=typeofe)return[e,r];(n.plainObjects||n.allowPrototypes||!o.call(Object.prototype,r))&&(e[r]=!0)}returne}if("object"!=typeofe)return[e].concat(r);vara=e;returnArray.isArray(e)&&!Array.isArray(r)&&(a=t.arrayToObject(e,n)),Array.isArray(e)&&Array.isArray(r)?(r.forEach(function(r,a){o.call(e,a)?e[a]&&"object"==typeofe[a]?e[a]=t.merge(e[a],r,n):e.push(r):e[a]=r}),e):Object.keys(r).reduce(function(e,a){vari=r[a];returno.call(e,a)?e[a]=t.merge(e[a],i,n):e[a]=i,e},a)},t.assign=function(e,t){returnObject.keys(t).reduce(function(e,r){returne[r]=t[r],e},e)},t.decode=function(e){try{returndecodeURIComponent(e.replace(/\+/g," "))}catch(t){returne}},t.encode=function(e){if(0===e.length)returne;for(vart="string"==typeofe?e:String(e),r="",o=0;o<t.length;++o){vara=t.charCodeAt(o);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?r+=t.charAt(o):a<128?r+=n[a]:a<2048?r+=n[192|a>>6]+n[128|63&a]:a<55296||a>=57344?r+=n[224|a>>12]+n[128|a>>6&63]+n[128|63&a]:(o+=1,a=65536+((1023&a)<<10|1023&t.charCodeAt(o)),r+=n[240|a>>18]+n[128|a>>12&63]+n[128|a>>6&63]+n[128|63&a])}returnr},t.compact=function(e){for(vart=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(varn=t[o],a=n.obj[n.prop],i=Object.keys(a),s=0;s<i.length;++s){varc=i[s],l=a[c];"object"==typeofl&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:a,prop:c}),r.push(l))}returnfunction(e){for(vart;e.length;){varr=e.pop();if(t=r.obj[r.prop],Array.isArray(t)){for(varo=[],n=0;n<t.length;++n)void0!==t[n]&&o.push(t[n]);r.obj[r.prop]=o}}returnt}(t)},t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isBuffer=function(e){returnnull!==e&&void0!==e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}},qkKv:function(e,t,r){varo=r("FeBl"),n=o.JSON||(o.JSON={stringify:JSON.stringify});e.exports=function(e){returnn.stringify.apply(n,arguments)}}});
webpackJsonp([1],{CwSZ:function(e,t,r){"use strict";varo=r("p8xL"),n=r("XgCd"),a={brackets:function(e){returne+"[]"},indices:function(e,t){returne+"["+t+"]"},repeat:function(e){returne}},i=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,serializeDate:function(e){returni.call(e)},skipNulls:!1,strictNullHandling:!1},c=functione(t,r,n,a,i,c,l,u,p,d,f,h){varg=t;if("function"==typeofl)g=l(r,g);elseif(ginstanceofDate)g=d(g);elseif(null===g){if(a)returnc&&!h?c(r,s.encoder):r;g=""}if("string"==typeofg||"number"==typeofg||"boolean"==typeofg||o.isBuffer(g))returnc?[f(h?r:c(r,s.encoder))+"="+f(c(g,s.encoder))]:[f(r)+"="+f(String(g))];vary,m=[];if(void0===g)returnm;if(Array.isArray(l))y=l;else{varv=Object.keys(g);y=u?v.sort(u):v}for(varb=0;b<y.length;++b){varw=y[b];i&&null===g[w]||(m=Array.isArray(g)?m.concat(e(g[w],n(r,w),n,a,i,c,l,u,p,d,f,h)):m.concat(e(g[w],r+(p?"."+w:"["+w+"]"),n,a,i,c,l,u,p,d,f,h)))}returnm};e.exports=function(e,t){varr=e,i=t?o.assign({},t):{};if(null!==i.encoder&&void0!==i.encoder&&"function"!=typeofi.encoder)thrownewTypeError("Encoder has to be a function.");varl=void0===i.delimiter?s.delimiter:i.delimiter,u="boolean"==typeofi.strictNullHandling?i.strictNullHandling:s.strictNullHandling,p="boolean"==typeofi.skipNulls?i.skipNulls:s.skipNulls,d="boolean"==typeofi.encode?i.encode:s.encode,f="function"==typeofi.encoder?i.encoder:s.encoder,h="function"==typeofi.sort?i.sort:null,g=void0!==i.allowDots&&i.allowDots,y="function"==typeofi.serializeDate?i.serializeDate:s.serializeDate,m="boolean"==typeofi.encodeValuesOnly?i.encodeValuesOnly:s.encodeValuesOnly;if(void0===i.format)i.format=n.default;elseif(!Object.prototype.hasOwnProperty.call(n.formatters,i.format))thrownewTypeError("Unknown format option provided.");varv,b,w=n.formatters[i.format];"function"==typeofi.filter?r=(b=i.filter)("",r):Array.isArray(i.filter)&&(v=b=i.filter);varD,O=[];if("object"!=typeofr||null===r)return"";D=i.arrayFormatina?i.arrayFormat:"indices"ini?i.indices?"indices":"repeat":"indices";varx=a[D];v||(v=Object.keys(r)),h&&v.sort(h);for(varj=0;j<v.length;++j){varC=v[j];p&&null===r[C]||(O=O.concat(c(r[C],C,x,u,p,d?f:null,b,h,g,y,w,m)))}vark=O.join(l),I=!0===i.addQueryPrefix?"?":"";returnk.length>0?I+k:""}},DDCP:function(e,t,r){"use strict";varo=r("p8xL"),n=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:o.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},i=function(e,t,r){if(e){varo=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,i=/(\[[^[\]]*])/.exec(o),s=i?o.slice(0,i.index):o,c=[];if(s){if(!r.plainObjects&&n.call(Object.prototype,s)&&!r.allowPrototypes)return;c.push(s)}for(varl=0;null!==(i=a.exec(o))&&l<r.depth;){if(l+=1,!r.plainObjects&&n.call(Object.prototype,i[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(i[1])}returni&&c.push("["+o.slice(i.index)+"]"),function(e,t,r){for(varo=t,n=e.length-1;n>=0;--n){vara,i=e[n];if("[]"===i)a=(a=[]).concat(o);else{a=r.plainObjects?Object.create(null):{};vars="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,c=parseInt(s,10);!isNaN(c)&&i!==s&&String(c)===s&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(a=[])[c]=o:a[s]=o}o=a}returno}(c,t,r)}};e.exports=function(e,t){varr=t?o.assign({},t):{};if(null!==r.decoder&&void0!==r.decoder&&"function"!=typeofr.decoder)thrownewTypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"==typeofr.delimiter||o.isRegExp(r.delimiter)?r.delimiter:a.delimiter,r.depth="number"==typeofr.depth?r.depth:a.depth,r.arrayLimit="number"==typeofr.arrayLimit?r.arrayLimit:a.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeofr.decoder?r.decoder:a.decoder,r.allowDots="boolean"==typeofr.allowDots?r.allowDots:a.allowDots,r.plainObjects="boolean"==typeofr.plainObjects?r.plainObjects:a.plainObjects,r.allowPrototypes="boolean"==typeofr.allowPrototypes?r.allowPrototypes:a.allowPrototypes,r.parameterLimit="number"==typeofr.parameterLimit?r.parameterLimit:a.parameterLimit,r.strictNullHandling="boolean"==typeofr.strictNullHandling?r.strictNullHandling:a.strictNullHandling,""===e||null===e||void0===e)returnr.plainObjects?Object.create(null):{};for(vars="string"==typeofe?function(e,t){for(varr={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void0:t.parameterLimit,s=o.split(t.delimiter,i),c=0;c<s.length;++c){varl,u,p=s[c],d=p.indexOf("]="),f=-1===d?p.indexOf("="):d+1;-1===f?(l=t.decoder(p,a.decoder),u=t.strictNullHandling?null:""):(l=t.decoder(p.slice(0,f),a.decoder),u=t.decoder(p.slice(f+1),a.decoder)),n.call(r,l)?r[l]=[].concat(r[l]).concat(u):r[l]=u}returnr}(e,r):e,c=r.plainObjects?Object.create(null):{},l=Object.keys(s),u=0;u<l.length;++u){varp=l[u],d=i(p,s[p],r);c=o.merge(c,d,r)}returno.compact(c)}},OAyR:function(e,t){},XgCd:function(e,t,r){"use strict";varo=String.prototype.replace,n=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){returno.call(e,n,"+")},RFC3986:function(e){returne}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},YPWR:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});varo=r("mvHQ"),n=r.n(o),a=r("//Fk"),i=r.n(a),s=r("lRwf"),c=r.n(s),l=r("mw3O"),u=r.n(l),p=r("l6IN");c.a.axios.defaults.timeout=19e3;vard=window.location.origin;-1!=d.indexOf("localhost")&&(d="http://www.gicdev.com"),c.a.axios.interceptors.request.use(function(e){returne},function(e){returnp.Message.error({message:"请求超时!"}),i.a.resolve(e)}),c.a.axios.interceptors.response.use(function(e){returne.status&&200==e.status&&"401"==e.data.errorCode?(p.Message.error({message:e.data.message}),void(window.location.href=d+"/gic-web/#/")):e},function(e){return504==e.response.status||404==e.response.status?p.Message.error({message:"服务异常⊙﹏⊙∥"}):(e.response.status,window.location.href=d+"/gic-web/#/"),i.a.resolve(e)});varf=function(e,t){returnt.requestProject="gic-web",c.a.axios({method:"get",url:""+d+e,data:{},params:t,headers:{"content-type":"application/x-www-form-urlencoded"}})},h=function(e){vart=window.location.origin;if(t.indexOf("localhost")&&(t="http://gicdev.demogic.com"),0!=e.errorCode){if(401==e.errorCode)returnwindow.location.href=t+"/gic-web/#/",!1;p.Message.error({duration:1e3,message:e.message})}},g={name:"store-tree-select",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",storeVisible:!1,storeGroupIds:[],storeData:[],defaultProps:{children:"children",label:"storeGroupName"}}},methods:{loadData:function(e,t,r){e.hasOwnProperty("storeId")||e.hasOwnProperty("loaded")||(e.loaded=!0,this.getStoreData(e))},checkStore:function(e){this.storeGroupIds=this.$refs.storeTree.getCheckedNodes(),this.$emit("checkStoreGroupIds",this.$refs.storeTree.getCheckedNodes())},treeData:function(e){returne.filter(function(t){varr=e.filter(function(e){returnt.groupId==e.parentId});returnr.length>0&&(t.children=r),0==t.groupId})},getStoreData:function(e){vart=this,r={storeGroupId:e.storeGroupId,recursionStr:!0,hasPage:!1};f("/api-admin/store-list",r).then(function(t){varr=t.data;0!=r.errorCode?h(r):r.result&&r.result.list.length&&r.result.list.forEach(function(t){t.storeGroupName=t.storeName,t.storeGroupIds=t.storeId,e.children.push(t)})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getStoreGroup:function(){vare=this;f("/api-admin/store-group-list",{}).then(function(t){varr=t.data;0!=r.errorCode?h(r):r.result&&r.result.length&&(e.storeData=r.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getStoreGroup()}},y={render:function(){vare=this,t=e.$createElement,r=e._self._c||t;returnr("el-popover",{staticStyle:{"min-width":"232px"},attrs:{placement:"bottom"},model:{value:e.storeVisible,callback:function(t){e.storeVisible=t},expression:"storeVisible"}},[r("div",{staticClass:"select-tree-wrap"},[r("el-tree",{ref:"storeTree",attrs:{data:e.storeData,"node-key":"storeGroupId","show-checkbox":"",props:e.defaultProps},on:{"node-click":e.loadData,"node-expand":e.loadData,check:e.checkStore}})],1),e._v(" "),r("div",{staticClass:"flex-column item-cell-select inline-block m-l-10",attrs:{slot:"reference"},slot:"reference"},[r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"350px"}},[e.storeGroupIds.length?e._e():r("span",{staticClass:"font-14 color-c0c4cc p-l-10",staticStyle:{display:"inline-block","line-height":"32px",color:"#c0c4cc"}},[e._v("请选择门店分组")]),e._v(" "),r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"330px"}},[r("span",[e._l(e.storeGroupIds,function(t,o){return[r("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.storeGroupName||t.storeName))])])]})],2)])])])])])},staticRenderFns:[]};varm={name:"index",components:{storeTreeSelect:r("VU/8")(g,y,!1,function(e){r("fAo+")},"data-v-2873c388",null).exports},data:function(){vare=this;return{projectName:"haoban-manage-web",contentHeight:"0px",choiceDate:[],choiceDateCopy:[],pickerOptions:{onPick:function(t){varr=t.maxDate,o=t.minDate;e.choiceDateCopy=[o.getTime()],r&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){varr=e.choiceDateCopy[0]-2592e6,o=e.choiceDateCopy[0]+2592e6;returnt.getTime()<r||t.getTime()>o||t.getTime()>Date.now()-864e4}returnt.getTime()>Date.now()-864e4}},storeGroupIds:[],enterpriseId:""}},methods:{exportData:function(){returnthis.choiceDate.length?this.storeGroupIds.length?voidthis.postExportData():(this.$message.error({duration:1e3,message:"请选择门店分组"}),!1):(this.$message.error({duration:1e3,message:"请选择日期区间"}),!1)},postExportData:function(){vare=this,t=[],r=[];e.storeGroupIds.forEach(function(e){e.hasOwnProperty("storeId")?t.push(e.storeId):r.push(e.storeGroupId)});varo,n,a={enterpriseId:e.enterpriseId,startDate:e.choiceDate[0],endDate:e.choiceDate[1],storeIds:t.join(","),groupIds:r.join(",")};(o="/haoban-app-sign-old-web/sign/export-sign-list",n=a,n.requestProject="gic-web",c.a.axios({method:"post",url:""+d+o,data:u.a.stringify(n),responseType:"blob",headers:{"content-type":"application/x-www-form-urlencoded"}})).then(function(t){if(!t.data)returnh("暂无数据"),!1;varr=newBlob([t.data],{type:"application/vnd.ms-excel"}),o=e.choiceDate[0].replace(/-/g,"")+"-"+e.choiceDate[1].replace(/-/g,"")+"签到报表.xlsx",n=document.createElement("a");n.download=o,n.style.display="none",n.href=URL.createObjectURL(r),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeDate:function(e){e?this.choiceDateCopy=JSON.parse(n()(this.choiceDate)):(this.choiceDateCopy=[],this.choiceDate=[])},checkStoreGroupIds:function(e){this.storeGroupIds=e},getUserInfo:function(){vare=this;f("/api-auth/get-login-user-info",{}).then(function(t){varr=t.data;0!=r.errorCode?h(r):e.enterpriseId=r.result.enterpriseId}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getUserInfo()}},v={render:function(){vare=this,t=e.$createElement,r=e._self._c||t;returnr("div",{staticClass:"sign-contain"},[r("div",{staticClass:"sign-content border-box"},[r("div",[r("el-date-picker",{attrs:{"picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.choiceDate,callback:function(t){e.choiceDate=t},expression:"choiceDate"}})],1),e._v(" "),r("div",{staticClass:"m-t-20"},[r("store-tree-select",{on:{checkStoreGroupIds:e.checkStoreGroupIds}})],1),e._v(" "),r("div",{staticClass:"m-t-20"},[r("el-button",{attrs:{type:"primary"},on:{click:e.exportData}},[e._v("导 出")])],1)])])},staticRenderFns:[]};varb=r("VU/8")(m,v,!1,function(e){r("OAyR")},"data-v-b96bde1e",null);t.default=b.exports},"fAo+":function(e,t){},mvHQ:function(e,t,r){e.exports={default:r("qkKv"),__esModule:!0}},mw3O:function(e,t,r){"use strict";varo=r("CwSZ"),n=r("DDCP"),a=r("XgCd");e.exports={formats:a,parse:n,stringify:o}},p8xL:function(e,t,r){"use strict";varo=Object.prototype.hasOwnProperty,n=function(){for(vare=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());returne}();t.arrayToObject=function(e,t){for(varr=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void0!==e[o]&&(r[o]=e[o]);returnr},t.merge=function(e,r,n){if(!r)returne;if("object"!=typeofr){if(Array.isArray(e))e.push(r);else{if("object"!=typeofe)return[e,r];(n.plainObjects||n.allowPrototypes||!o.call(Object.prototype,r))&&(e[r]=!0)}returne}if("object"!=typeofe)return[e].concat(r);vara=e;returnArray.isArray(e)&&!Array.isArray(r)&&(a=t.arrayToObject(e,n)),Array.isArray(e)&&Array.isArray(r)?(r.forEach(function(r,a){o.call(e,a)?e[a]&&"object"==typeofe[a]?e[a]=t.merge(e[a],r,n):e.push(r):e[a]=r}),e):Object.keys(r).reduce(function(e,a){vari=r[a];returno.call(e,a)?e[a]=t.merge(e[a],i,n):e[a]=i,e},a)},t.assign=function(e,t){returnObject.keys(t).reduce(function(e,r){returne[r]=t[r],e},e)},t.decode=function(e){try{returndecodeURIComponent(e.replace(/\+/g," "))}catch(t){returne}},t.encode=function(e){if(0===e.length)returne;for(vart="string"==typeofe?e:String(e),r="",o=0;o<t.length;++o){vara=t.charCodeAt(o);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?r+=t.charAt(o):a<128?r+=n[a]:a<2048?r+=n[192|a>>6]+n[128|63&a]:a<55296||a>=57344?r+=n[224|a>>12]+n[128|a>>6&63]+n[128|63&a]:(o+=1,a=65536+((1023&a)<<10|1023&t.charCodeAt(o)),r+=n[240|a>>18]+n[128|a>>12&63]+n[128|a>>6&63]+n[128|63&a])}returnr},t.compact=function(e){for(vart=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(varn=t[o],a=n.obj[n.prop],i=Object.keys(a),s=0;s<i.length;++s){varc=i[s],l=a[c];"object"==typeofl&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:a,prop:c}),r.push(l))}returnfunction(e){for(vart;e.length;){varr=e.pop();if(t=r.obj[r.prop],Array.isArray(t)){for(varo=[],n=0;n<t.length;++n)void0!==t[n]&&o.push(t[n]);r.obj[r.prop]=o}}returnt}(t)},t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isBuffer=function(e){returnnull!==e&&void0!==e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}},qkKv:function(e,t,r){varo=r("FeBl"),n=o.JSON||(o.JSON={stringify:JSON.stringify});e.exports=function(e){returnn.stringify.apply(n,arguments)}}});