chunk-f6bea916.8ff9ba2d.js 26 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f6bea916"],{"06a8":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div")},i=[],r=n("795b"),s=n.n(r),o=(n("7f7f"),n("ac6a"),n("f20c")),c=n("5cab"),u=n("f499"),l=n.n(u),d=n("8982"),h="/industryParkApi",f="/wx/data",v="/wx/public",m="/wx/dictController";function p(t){return Object(d["a"])({url:h+f+"/listBizAll/"+t,method:"post"})}function g(t){return Object(d["a"])({url:h+v+"/listProjectAll",method:"post",data:t})}function b(t){return Object(d["a"])({url:h+m+"/getByCodes",method:"post",data:t})}function D(t){var e={codes:l()(t)};return new s.a(function(t,n){b(e).then(function(e){t(e)}).catch(function(t,e){n(t,e)})})}var w=n("3089"),x={name:"BaseData",data:function(){return{currentPage:1,totalSize:0,pageSize:10,InitialLoading:!0,allLoaded:!1,bottomStatus:"",StaffData:[],StaffMap:{},BizData:[],BizMap:{},UserProject:[],ProjectData:[],ProjectMap:{},dialogImageUrl:"",dialogImageVisible:!1,dc_map:{},dc_data:{},dc_map_no_all:{},dc_data_no_all:{}}},mounted:function(){},methods:{initDict:function(t){var e=this;return t||(t=e.dc_key),D(t).then(function(t){t.data&&e.dc_key.forEach(function(n){var a=e.getDictValue(t.data,n,!0);e.dc_data[n]=a,e.dc_map[n]=e.$common.transDcMap(a);var i=e.getDictValue(t.data,n,!1);e.dc_data_no_all[n]=i,e.dc_map_no_all[n]=e.$common.transDcMap(i)})})},initDict2:function(t){var e=this;return t||(t=e.dc_key),D(t).then(function(t){t.data&&e.dc_key.forEach(function(n){var a=e.getDictValue(t.data,n,!1);e.dc_data[n]=a,e.dc_map[n]=e.$common.transDcMap(a);var i=e.getDictValue(t.data,n,!1);e.dc_data_no_all[n]=i,e.dc_map_no_all[n]=e.$common.transDcMap(i)})})},initBiz:function(){var t=this;return this.BizData=[],p(c["a"].uid()).then(function(e){e.data&&e.data.forEach(function(e){var n={label:e.businessName,value:e.id};t.BizData.push(n),t.BizMap[e.id]=e.businessName})}).catch(function(){})},initProjectData:function(){var t=this;return this.ProjectData=[],g(c["a"].uid()).then(function(e){e.data&&e.data.forEach(function(e){var n={label:e.name,value:e.id};t.ProjectData.push(n),t.ProjectMap[n.value]=e})}).catch(function(){})},pagination:function(t){var e=this.currentPage,n=this.pageSize,a=e*n-n,i=e*n;return t.slice(a,i)},getDictValue:function(t,e,n){var a=t[e]?o["a"].castEval(t[e].dictValue):[],i=[];if(a.forEach(function(t){var e={id:t.id,isSearch:t.isSearch,label:t.label,value:t.value,active:!1};i.push(e)}),n){var r={label:"全部",value:"",active:!0};i.unshift(r)}return i},confirm:function(t,e){return new s.a(function(n,a){w["Dialog"].confirm({title:e,message:t}).then(function(t){n(t)}).catch(function(t){Object(w["Toast"])("已取消"),a(t)})})},handleBottomChange:function(t){console.log("handleBottomChange:"+t),this.bottomStatus=t,"drop"===this.bottomStatus&&this.currentPage++},loadBottom:function(){var t=this,e=this;console.log("loadBottom"),setTimeout(function(){e.getData(),t.$refs.loadmore.onBottomLoaded()},500)},imgPreview:function(t){this.dialogImageUrl="/industryParkApi/wx/img/viewImg/"+t,this.dialogImageVisible=!0},imgRemove:function(t,e){var n=e.indexOf(t);e.splice(n,1)},noImg:function(){var t=event.srcElement;t.src=n("aed7"),t.onerror=null}}},$=x,_=n("2877"),S=Object(_["a"])($,a,i,!1,null,"3fa5b905",null);e["a"]=S.exports},"0cac":function(t,e,n){"use strict";n.d(e,"b",function(){return s}),n.d(e,"a",function(){return o});var a=n("8982"),i="/industryParkApi",r="/wx/parkVisitor";function s(t){return Object(a["a"])({url:i+r+"/list",method:"post",data:t})}function o(t){return Object(a["a"])({url:i+r+"/batchStatusUpdate",method:"post",data:t})}},"20fd":function(t,e,n){"use strict";var a=n("d9f6"),i=n("aebd");t.exports=function(t,e,n){e in t?a.f(t,e,i(0,n)):t[e]=n}},"28a5":function(t,e,n){"use strict";var a=n("aae3"),i=n("cb7c"),r=n("ebd6"),s=n("0390"),o=n("9def"),c=n("5f1b"),u=n("520a"),l=n("79e5"),d=Math.min,h=[].push,f="split",v="length",m="lastIndex",p=4294967295,g=!l(function(){RegExp(p,"y")});n("214f")("split",2,function(t,e,n,l){var b;return b="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[v]||2!="ab"[f](/(?:ab)*/)[v]||4!="."[f](/(.?)(.?)/)[v]||"."[f](/()()/)[v]>1||""[f](/.?/)[v]?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!a(t))return n.call(i,t,e);var r,s,o,c=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,f=void 0===e?p:e>>>0,g=new RegExp(t.source,l+"g");while(r=u.call(g,i)){if(s=g[m],s>d&&(c.push(i.slice(d,r.index)),r[v]>1&&r.index<i[v]&&h.apply(c,r.slice(1)),o=r[0][v],d=s,c[v]>=f))break;g[m]===r.index&&g[m]++}return d===i[v]?!o&&g.test("")||c.push(""):c.push(i.slice(d)),c[v]>f?c.slice(0,f):c}:"0"[f](void 0,0)[v]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,a){var i=t(this),r=void 0==n?void 0:n[e];return void 0!==r?r.call(n,i,a):b.call(String(i),n,a)},function(t,e){var a=l(b,t,this,e,b!==n);if(a.done)return a.value;var u=i(t),h=String(this),f=r(u,RegExp),v=u.unicode,m=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(g?"y":"g"),D=new f(g?u:"^(?:"+u.source+")",m),w=void 0===e?p:e>>>0;if(0===w)return[];if(0===h.length)return null===c(D,h)?[h]:[];var x=0,$=0,_=[];while($<h.length){D.lastIndex=g?$:0;var S,k=c(D,g?h:h.slice($));if(null===k||(S=d(o(D.lastIndex+(g?0:$)),h.length))===x)$=s(h,$,v);else{if(_.push(h.slice(x,$)),_.length===w)return _;for(var y=1;y<=k.length-1;y++)if(_.push(k[y]),_.length===w)return _;$=x=S}}return _.push(h.slice(x)),_}]})},"386d":function(t,e,n){"use strict";var a=n("cb7c"),i=n("83a1"),r=n("5f1b");n("214f")("search",1,function(t,e,n,s){return[function(n){var a=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,a):new RegExp(n)[e](String(a))},function(t){var e=s(n,t,this);if(e.done)return e.value;var o=a(t),c=String(this),u=o.lastIndex;i(u,0)||(o.lastIndex=0);var l=r(o,c);return i(o.lastIndex,u)||(o.lastIndex=u),null===l?-1:l.index}]})},"4dc0":function(t,e,n){},"549b":function(t,e,n){"use strict";var a=n("d864"),i=n("63b6"),r=n("241e"),s=n("b0dc"),o=n("3702"),c=n("b447"),u=n("20fd"),l=n("7cd6");i(i.S+i.F*!n("4ee1")(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,d,h=r(t),f="function"==typeof this?this:Array,v=arguments.length,m=v>1?arguments[1]:void 0,p=void 0!==m,g=0,b=l(h);if(p&&(m=a(m,v>2?arguments[2]:void 0,2)),void 0==b||f==Array&&o(b))for(e=c(h.length),n=new f(e);e>g;g++)u(n,g,p?m(h[g],g):h[g]);else for(d=b.call(h),n=new f;!(i=d.next()).done;g++)u(n,g,p?s(d,m,[i.value,g],!0):i.value);return n.length=g,n}})},"54a1":function(t,e,n){n("6c1c"),n("1654"),t.exports=n("95d5")},"5a0c":function(t,e,n){!function(e,n){t.exports=n()}(0,function(){"use strict";var t=1e3,e=6e4,n=36e5,a="millisecond",i="second",r="minute",s="hour",o="day",c="week",u="month",l="quarter",d="year",h="date",f="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},g=function(t,e,n){var a=String(t);return!a||a.length>=e?t:""+Array(e+1-a.length).join(n)+t},b={s:g,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),a=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+g(a,2,"0")+":"+g(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var a=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(a,u),r=n-i<0,s=e.clone().add(a+(r?-1:1),u);return+(-(a+(n-i)/(r?i-s:s-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:d,w:c,d:o,D:h,h:s,m:r,s:i,ms:a,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},D="en",w={};w[D]=p;var x=function(t){return t instanceof k},$=function t(e,n,a){var i;if(!e)return D;if("string"==typeof e){var r=e.toLowerCase();w[r]&&(i=r),n&&(w[r]=n,i=r);var s=e.split("-");if(!i&&s.length>1)return t(s[0])}else{var o=e.name;w[o]=e,i=o}return!a&&i&&(D=i),i||!a&&D},_=function(t,e){if(x(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new k(n)},S=b;S.l=$,S.i=x,S.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function p(t){this.$L=$(t.locale,null,!0),this.parse(t)}var g=p.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(S.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var a=e.match(v);if(a){var i=a[2]-1||0,r=(a[7]||"0").substring(0,3);return n?new Date(Date.UTC(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,r)):new Date(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,r)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(t,e){var n=_(t);return this.startOf(e)<=n&&n<=this.endOf(e)},g.isAfter=function(t,e){return _(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<_(t)},g.$g=function(t,e,n){return S.u(t)?this[e]:this.set(n,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var n=this,a=!!S.u(e)||e,l=S.p(t),f=function(t,e){var i=S.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return a?i:i.endOf(o)},v=function(t,e){return S.w(n.toDate()[t].apply(n.toDate("s"),(a?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,p=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(l){case d:return a?f(1,0):f(31,11);case u:return a?f(1,p):f(0,p+1);case c:var D=this.$locale().weekStart||0,w=(m<D?m+7:m)-D;return f(a?g-w:g+(6-w),p);case o:case h:return v(b+"Hours",0);case s:return v(b+"Minutes",1);case r:return v(b+"Seconds",2);case i:return v(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var n,c=S.p(t),l="set"+(this.$u?"UTC":""),f=(n={},n[o]=l+"Date",n[h]=l+"Date",n[u]=l+"Month",n[d]=l+"FullYear",n[s]=l+"Hours",n[r]=l+"Minutes",n[i]=l+"Seconds",n[a]=l+"Milliseconds",n)[c],v=c===o?this.$D+(e-this.$W):e;if(c===u||c===d){var m=this.clone().set(h,1);m.$d[f](v),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](v);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[S.p(t)]()},g.add=function(a,l){var h,f=this;a=Number(a);var v=S.p(l),m=function(t){var e=_(f);return S.w(e.date(e.date()+Math.round(t*a)),f)};if(v===u)return this.set(u,this.$M+a);if(v===d)return this.set(d,this.$y+a);if(v===o)return m(1);if(v===c)return m(7);var p=(h={},h[r]=e,h[s]=n,h[i]=t,h)[v]||1,g=this.$d.getTime()+a*p;return S.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var a=t||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),r=this.$H,s=this.$m,o=this.$M,c=n.weekdays,u=n.months,l=function(t,n,i,r){return t&&(t[n]||t(e,a))||i[n].slice(0,r)},d=function(t){return S.s(r%12||12,t,"0")},h=n.meridiem||function(t,e,n){var a=t<12?"AM":"PM";return n?a.toLowerCase():a},v={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:S.s(o+1,2,"0"),MMM:l(n.monthsShort,o,u,3),MMMM:l(u,o),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,c,2),ddd:l(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(r),HH:S.s(r,2,"0"),h:d(1),hh:d(2),a:h(r,s,!0),A:h(r,s,!1),m:String(s),mm:S.s(s,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:i};return a.replace(m,function(t,e){return e||v[t]||i.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(a,h,f){var v,m=S.p(h),p=_(a),g=(p.utcOffset()-this.utcOffset())*e,b=this-p,D=S.m(this,p);return D=(v={},v[d]=D/12,v[u]=D,v[l]=D/3,v[c]=(b-g)/6048e5,v[o]=(b-g)/864e5,v[s]=b/n,v[r]=b/e,v[i]=b/t,v)[m]||b,f?D:S.a(D)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return w[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),a=$(t,e,!0);return a&&(n.$L=a),n},g.clone=function(){return S.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},p}(),y=k.prototype;return _.prototype=y,[["$ms",a],["$s",i],["$m",r],["$H",s],["$W",o],["$M",u],["$y",d],["$D",h]].forEach(function(t){y[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),_.extend=function(t,e){return t.$i||(t(e,k,_),t.$i=!0),_},_.locale=$,_.isDayjs=x,_.unix=function(t){return _(1e3*t)},_.en=w[D],_.Ls=w,_.p={},_})},"75fc":function(t,e,n){"use strict";var a=n("a745"),i=n.n(a);function r(t){if(i()(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}var s=n("774e"),o=n.n(s),c=n("c8bb"),u=n.n(c);function l(t){if(u()(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return o()(t)}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function h(t){return r(t)||l(t)||d()}n.d(e,"a",function(){return h})},"774e":function(t,e,n){t.exports=n("d2d5")},"7f7f":function(t,e,n){var a=n("86cc").f,i=Function.prototype,r=/^\s*function ([^ (]*)/,s="name";s in i||n("9e1e")&&a(i,s,{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(t){return""}}})},"83a1":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},8982:function(t,e,n){"use strict";n.d(e,"a",function(){return f}),n.d(e,"b",function(){return v});var a=n("795b"),i=n.n(a),r=n("bc3a"),s=n.n(r),o=n("4328"),c=n.n(o),u=n("4360"),l=n("5cab"),d=n("a18c"),h=n("3089");function f(t,e){t.headers||(t.headers={}),t.headers&&l["a"].getToken()&&(t.headers["RC-Token"]=l["a"].getToken());var n={method:t.method,url:t.url,data:c.a.stringify(t.data)};return e&&(n.data=t.data),t.headers&&(n.headers=t.headers),new i.a(function(e,a){s()(n).then(function(t){if(t&&t.data&&200===t.status){var n=t.data;switch(n.errno){case 501:Object(h["Toast"])(n.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){d["a"].push("/login")})},1500),a(n.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(h["Toast"])(n.errmsg),a(n.errmsg);break}e(n)}else console.log(t),a(t)}).catch(function(e,n){console.log(t.url+" fail",e,n),Object(h["Toast"])(e),a(e,n)})})}function v(t){t.headers||(t.headers={}),t.headers&&l["a"].getToken()&&(t.headers["RC-Token"]=l["a"].getToken());var e={method:t.method,url:t.url};return e.data=t.data,t.headers&&(e.headers=t.headers,e.headers["MVVM-Key"]=String((new Date).getTime()),e.headers["xx"]="anything",e.headers["Content-Type"]="application/json;charset=UTF-8"),console.log("request: ",t),new i.a(function(n,a){s.a.defaults.withCredentials=!0,s()(e).then(function(t){if(console.log("response:",t),t&&t.data&&200===t.status){var e=t.data;switch(e.errno){case 501:Object(h["Toast"])(e.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){d["a"].push("/login")})},1500),a(e.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(h["Toast"])(e.errmsg),a(e.errmsg);break}n(e)}else console.log(t),a(t)}).catch(function(e,n){console.log(t.url+" fail",e,n),Object(h["Toast"])(e),a(e,n)})})}},"95d5":function(t,e,n){var a=n("40c3"),i=n("5168")("iterator"),r=n("481b");t.exports=n("584a").isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||r.hasOwnProperty(a(e))}},aed7:function(t,e,n){t.exports=n.p+"assets/img/no-result.b05bdcd3.jpg"},bc08:function(t,e,n){"use strict";var a=n("4dc0"),i=n.n(a);i.a},c289:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"commodity"},[n("div",{staticClass:"part-1 white-box"},[n("div",{staticClass:"right-text"},[n("span",{on:{click:t.chooseMore}},[t._v("批量操作 ")])]),n("div",{staticClass:"search-box"},[n("div",{staticClass:"search-input-box"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.search.remark,expression:"search.remark"}],attrs:{type:"text",placeholder:"名称模糊"},domProps:{value:t.search.remark},on:{input:function(e){e.target.composing||t.$set(t.search,"remark",e.target.value)}}})]),n("div",{staticClass:"search-icon-box"},[n("i",{staticClass:"iconfont icon-sousuo",on:{click:t.onDownRefresh}})])])]),n("div",{staticClass:"part-2"},[n("van-tabs",{attrs:{color:"rgb(67, 149, 255)","title-active-color":"rgb(67, 149, 255)"},on:{change:t.tabsChange},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[n("div",{staticClass:"menuBox"},[n("van-dropdown-menu",[n("van-dropdown-item",{attrs:{options:t.option1},on:{change:t.onDownRefresh},model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}}),n("van-dropdown-item",{attrs:{options:t.option2},on:{change:t.onDownRefresh},model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}})],1),n("div",{staticClass:"iptBox"},[n("van-field",{attrs:{"right-icon":"calendar-o",placeholder:"开始日期",readonly:"",clearable:""},on:{click:t.showStart},model:{value:t.startTime,callback:function(e){t.startTime=e},expression:"startTime"}}),n("van-field",{attrs:{clearable:"","right-icon":"calendar-o",placeholder:"结束日期",readonly:""},on:{click:t.showEnd},model:{value:t.endTime,callback:function(e){t.endTime=e},expression:"endTime"}})],1)],1),t._l(t.ruyuanStatus,function(e,a){return n("van-tab",{attrs:{title:e.label,name:e.value}},[n("van-pull-refresh",{directives:[{name:"show",rawName:"v-show",value:0!==t.listData.length,expression:"listData.length!==0"}],on:{refresh:t.onDownRefresh},model:{value:t.isDownLoading,callback:function(e){t.isDownLoading=e},expression:"isDownLoading"}},[n("van-list",{attrs:{error:t.error,finished:t.upFinished,"immediate-check":!1,offset:10,"finished-text":"加载完成"},on:{"update:error":function(e){t.error=e},load:t.onLoadList},model:{value:t.isUpLoading,callback:function(e){t.isUpLoading=e},expression:"isUpLoading"}},t._l(t.listData,function(e,a){return n("div",{key:a,staticClass:"ListItem",on:{click:function(n){return n.stopPropagation(),t.goNavigator("visitor-app-detail",{item:e},"push")}}},[n("p",[n("span",[t._v("来访时间:"+t._s(t.formatTimeTwo(e.reserveEndTime,"Y-M-D")))]),n("span",{staticClass:"secendSpan"},[t._v("姓名:"+t._s(e.visitorName))])]),n("p",[n("span",[t._v("联系电话:"+t._s(e.applicantPhone))]),n("span",{staticClass:"secendSpan"},[t._v("来访目的:"+t._s(e.visitorGoal))])]),n("p",[n("span",[t._v("来访目的地:"+t._s(e.visitorGoalAddress))]),n("span",{staticClass:"secendSpan"},[t._v("来访人数:"+t._s(e.visitorNum)+"人")])]),n("p",[n("span",[t._v("来源地:"+t._s(e.destination))]),n("van-checkbox-group",{directives:[{name:"show",rawName:"v-show",value:t.isBatch,expression:"isBatch"}],model:{value:t.result,callback:function(e){t.result=e},expression:"result"}},[n("van-cell-group",[n("van-cell",{attrs:{clickable:"",title:"可选"},on:{click:function(e){return e.stopPropagation(),t.toggle(a)}},scopedSlots:t._u([{key:"right-icon",fn:function(){return[n("van-checkbox",{ref:"checkboxes",refInFor:!0,attrs:{name:e,shape:"square"}})]},proxy:!0}],null,!0)})],1)],1)],1),n("div",{staticClass:"reason"},[n("div",{staticClass:"reasonName"},[t._v("具体是由:")]),n("div",[t._v("\n "+t._s(e.visitReason)+"\n ")])]),n("div",{staticClass:"lastaBtnBox"},["1"==e.status||"4"==e.status?n("button",{on:{click:function(n){return n.stopPropagation(),t.updateStat(e,"2")}}},[t._v("同意")]):t._e(),"1"==e.status||"2"==e.status?n("button",{on:{click:function(n){return n.stopPropagation(),t.updateStat(e,"4")}}},[t._v("拒绝")]):t._e()])])}),0)],1)],1)})],2)],1),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isBatch,expression:"isBatch"}],staticClass:"bottom-meun"},["1"==t.activeName||"2"==t.activeName?n("div",{staticClass:"menu-left",on:{click:function(e){return e.stopPropagation(),t.updataBatch(4)}}},[t._v("拒绝")]):t._e(),"1"==t.activeName||"4"==t.activeName?n("div",{staticClass:"menu-right",on:{click:function(e){return e.stopPropagation(),t.updataBatch(2)}}},[t._v("通过")]):t._e()]),n("van-popup",{style:{height:"45%"},attrs:{position:"bottom"},model:{value:t.showStartTime,callback:function(e){t.showStartTime=e},expression:"showStartTime"}},[n("van-datetime-picker",{attrs:{type:"date",title:"选择年月日","min-date":t.minDate,"max-date":t.maxDate},on:{confirm:t.selectStartTime,cancel:function(e){t.showStartTime=!1}},model:{value:t.currentDate,callback:function(e){t.currentDate=e},expression:"currentDate"}})],1),n("van-popup",{style:{height:"45%"},attrs:{position:"bottom"},model:{value:t.showEndTime,callback:function(e){t.showEndTime=e},expression:"showEndTime"}},[n("van-datetime-picker",{attrs:{type:"date",title:"选择年月日","min-date":t.minDate,"max-date":t.maxDate},on:{confirm:t.selectEndTime,cancel:function(e){t.selectEndTime=!1}},model:{value:t.currentDate,callback:function(e){t.currentDate=e},expression:"currentDate"}})],1)],1)},i=[],r=(n("a481"),n("7f7f"),n("75fc")),s=(n("28a5"),n("386d"),n("ac6a"),n("06a8")),o=n("0cac"),c=(n("3089"),{name:"Index",mixins:[s["a"]],data:function(){return{isBatch:!1,checked:!0,showStartTime:!1,showEndTime:!1,active:"1",dc_key:["RUYUAN_STATUS","visitorGoal2","visitorGoal","LF_MDD"],ruStatus:[],search:{remark:"",pageNum:1,pageSize:30},listData:[],activeName:"1",ruyuanStatus:[{value:"1",label:"待审核"},{value:"2",label:"已通过"},{value:"4",label:"已拒绝"}],value1:"",value2:"",option1:[{text:"来访目的",value:"来访目的"}],option2:[{text:"来访目的地",value:"来访目的地"}],minDate:new Date(2020,0,1),maxDate:new Date(2025,10,1),currentDate:new Date,startTime:"",endTime:"",result:[],checkInfo:[],pageSize:30,pageIndex:1,isDownLoading:!1,isUpLoading:!1,upFinished:!1,offset:100}},mounted:function(){var t=this;this.initDict(this.dc_key).then(function(e){var n=[];t.dc_data.visitorGoal2.forEach(function(t){""==t.value&&(t.label="来访目的");var e={text:t.label,value:t.value};n.push(e)}),t.option1=n;var a=[];t.dc_data.LF_MDD.forEach(function(t){""==t.value&&(t.label="来访目的地");var e={text:t.label,value:t.value};a.push(e)}),t.option2=a,t.getData()})},methods:{getData:function(){var t=this,e=this;e.search.pageNum=e.pageIndex,e.search.pageSize=e.pageSize,e.search.status=e.activeName,e.search.visitorGoal=e.value1,e.search.visitorGoalAddress=e.value2,e.search.reserveStartTime=e.startTime,e.search.reserveEndTime=e.endTime,e.search.visitorType="1",Object(o["b"])(e.search).then(function(n){var a=n.data.rows||[];a.forEach(function(n){if(n.visitorGoalAddress=t.dc_map.LF_MDD[n.visitorGoalAddress],n.visitorGoal){var a=n.visitorGoal.split(","),i=[];a.forEach(function(t){i.push(e.dc_map.visitorGoal2[t])}),n.visitorGoal=i.join(",")}var r=n.destination?t.$common.castEval(n.destination):[];r.length>0?n.destination=r[0]+"-"+r[1]+"-"+r[2]:n.destination=""}),null!=a&&0!=a.length?(a.length<e.pageSize&&(e.upFinished=!0),a.length==n.data.total&&(e.upFinished=!0),1==e.pageIndex?e.listData=a:e.listData=[].concat(Object(r["a"])(e.listData),Object(r["a"])(a))):e.upFinished=!0}).catch(function(t){}).finally(function(){e.isDownLoading=!1,e.isUpLoading=!1})},onChangeGroup:function(t){console.log(t,"change")},updateStat:function(t,e){var n=[];n.push(t.id),this.confirmBatchSubmit(n,e)},updataBatch:function(t){this.confirmBatchSubmit(this.checkInfo,t)},tabsChange:function(){var t=this;t.search.status=t.activeName,t.pageIndex=1,t.listData=[],t.upFinished=!1,t.getData()},confirmBatchSubmit:function(t,e){var n=this,a=this,i={ids:t.join(","),status:e};Object(o["a"])(i).then(function(t){a.listData=[],a.getData(),n.$toast("审核成功"),a.checkInfo=[]}).catch(function(t){n.$toast("异常")})},onDownRefresh:function(){var t=this;t.pageIndex=1,t.listData=[],t.upFinished=!1,t.getData()},onLoadList:function(){var t=this;t.pageIndex++,t.isUpLoading=!0,t.getData()},showStart:function(){this.showStartTime=!0},selectStartTime:function(t){var e=n("5a0c");this.startTime=e(t).format("YYYY-MM-DD"),this.onDownRefresh(),this.showStartTime=!1},showEnd:function(t){this.showEndTime=!0},selectEndTime:function(t){var e=n("5a0c");this.endTime=e(t).format("YYYY-MM-DD"),this.onDownRefresh(),this.showEndTime=!1},chooseMore:function(){this.isBatch=!this.isBatch},toggle:function(t){this.$refs.checkboxes[t].toggle();var e=this.$refs.checkboxes[t]._props.name.id;if(this.checkInfo.indexOf(e)>-1)for(var n=0;n<this.checkInfo.length;n++)this.checkInfo[n]==e&&this.checkInfo.splice(n,1);else this.checkInfo.push(e);console.log(this.checkInfo)},formatTimeTwo:function(t,e){if(void 0!=t){var n=function(t){return t<10?"0"+t:t};(/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)||navigator.userAgent.indexOf("Safari")>-1)&&(t=String(t).replace(/\-/g,"/"));var a="";a=-1!=t.indexOf("-")||-1!=t.indexOf("/")?new Date(t):new Date(JSON.parse(t));var i=a.getFullYear(),r=a.getMonth()+1,s=(t=a.getDate(),a.getHours()),o=a.getMinutes(),c=a.getSeconds(),u="";switch(e){case"Y-M-D hh:mm:ss":u=i+"-"+n(r)+"-"+n(t)+" "+n(s)+":"+n(o)+":"+n(c);break;case"Y-M-D":u=i+"-"+n(r)+"-"+n(t);break;case"M-D hh:mm:ss":u=n(r)+"-"+n(t)+" "+n(s)+":"+n(o)+":"+n(c);break;case"M-D hh:mm":u=n(r)+"-"+n(t)+" "+n(s)+":"+n(o);break;case"hh:mm:ss":u=n(s)+":"+n(o)+":"+n(c);break;case"hh:mm":u=n(s)+":"+n(o);break}return u}}}}),u=c,l=(n("bc08"),n("2877")),d=Object(l["a"])(u,a,i,!1,null,null,null);e["default"]=d.exports},c8bb:function(t,e,n){t.exports=n("54a1")},d2d5:function(t,e,n){n("1654"),n("549b"),t.exports=n("584a").Array.from}}]);