1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1bfc17da"],{"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"),o=n.n(r),c=(n("7f7f"),n("ac6a"),n("f20c")),s=n("5cab"),u=n("f499"),l=n.n(u),d=n("8982"),f="/industryParkApi",p="/wx/data",h="/wx/public",v="/wx/dictController";function m(t){return Object(d["a"])({url:f+p+"/listBizAll/"+t,method:"post"})}function g(t){return Object(d["a"])({url:f+h+"/listProjectAll",method:"post",data:t})}function X(t){return Object(d["a"])({url:f+v+"/getByCodes",method:"post",data:t})}function b(t){var e={codes:l()(t)};return new o.a(function(t,n){X(e).then(function(e){t(e)}).catch(function(t,e){n(t,e)})})}var _=n("3089"),y={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),b(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),b(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=[],m(s["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(s["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]?c["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 o.a(function(n,a){_["Dialog"].confirm({title:e,message:t}).then(function(t){n(t)}).catch(function(t){Object(_["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=y,k=n("2877"),w=Object(k["a"])(x,a,i,!1,null,"3fa5b905",null);e["a"]=w.exports},"0b64":function(t,e,n){var a=n("f772"),i=n("9003"),r=n("5168")("species");t.exports=function(t){var e;return i(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!i(e.prototype)||(e=void 0),a(e)&&(e=e[r],null===e&&(e=void 0))),void 0===e?Array:e}},"2d7d":function(t,e,n){t.exports=n("5037")},3383:function(t,e,n){},3780: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:"settleIn"},[n("van-tabs",{attrs:{"title-active-color":"#2A3980",color:"#2A3980","title-inactive-color":"#666666","line-width":"120px"},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[n("van-tab",{attrs:{title:"入驻情况"}},[n("div",{staticClass:"tabs-box"},[n("div",{staticClass:"part-1 white-box"},[n("div",{staticClass:"tips-list-box"},t._l(t.tipsList,function(e){return n("span",{key:e.name,class:t.tip==e.value&&"active",on:{click:function(n){return t.getTips(e)}}},[t._v(t._s(e.name))])}),0),n("div",{staticClass:"date-time-tool"},t._l(t.toolList,function(e){return n("div",{key:e.title,staticClass:"tool-item"},[n("span",{staticClass:"tool-color",style:"background-color:"+e.color}),n("span",{staticClass:"tool-title"},[t._v(t._s(e.title))])])}),0)]),n("div",{staticClass:"white-box part-2"},[n("div",{staticClass:"type-status-box"},t._l(t.typeList,function(e,a){return n("span",{staticClass:"type-item",style:t.type.get(e)},[t._v("\n "+t._s(a+1)+" #\n ")])}),0)])])]),n("van-tab",{attrs:{title:"进展更新"}},[n("div",{staticClass:"tabs-box"},[n("div",{staticClass:"top-add",on:{click:t.handleAdd}},[n("i",{staticClass:"iconfont icon-xinzeng"}),n("span",{staticClass:"txt"},[t._v("新增记录")])]),n("div",{staticClass:"part-3"},t._l(t.recordList,function(e){return n("div",{staticClass:"card-item white-card",on:{click:function(n){return t.getDetail(e)}}},[n("div",{staticClass:"card-left"},[n("p",{staticClass:"tit"},[t._v(t._s(e.companyName))]),n("p",{staticClass:"date"},[t._v("更新时间:"+t._s(e.updatedAt))])]),n("div",{staticClass:"card-right"},[n("span",{staticClass:"normal-tip yd z-bg"},[t._v(" "+t._s(e.stage))])])])}),0)])])],1)],1)},i=[],r=(n("ac6a"),n("386d"),n("2d7d")),o=n.n(r),c=n("06a8"),s=n("5cab"),u=n("7121"),l={mixins:[c["a"]],data:function(){return{active:0,list:[{title:"XXXXX企业名称 ",text:"意向楼盘XXXXXXXXX",time:"2021-10-1 13:40",type:"1"},{title:"XXXXX企业名称 ",text:"",time:"2021-10-1 13:40",type:"2"},{title:"XXXXX企业名称 ",text:"意向楼盘XXXXXXXXX",time:"2021-10-1 13:40",type:"1"},{title:"XXXXX企业名称 ",text:"",time:"2021-10-1 13:40",type:"2"},{title:"XXXXX企业名称 ",text:"意向楼盘XXXXXXXXX",time:"2021-10-1 13:40",type:"1"},{title:"XXXXX企业名称 ",text:"",time:"2021-10-1 13:40",type:"2"},{title:"XXXXX企业名称 ",text:"意向楼盘XXXXXXXXX",time:"2021-10-1 13:40",type:"1"},{title:"XXXXX企业名称 ",text:"",time:"2021-10-1 13:40",type:"2"},{title:"XXXXX企业名称 ",text:"意向楼盘XXXXXXXXX",time:"2021-10-1 13:40",type:"1"},{title:"XXXXX企业名称 ",text:"",time:"2021-10-1 13:40",type:"2"},{title:"XXXXX企业名称 ",text:"意向楼盘XXXXXXXXX",time:"2021-10-1 13:40",type:"1"}],toolList:[{color:"#C7C7C7",title:"已租"},{color:"#976CEB",title:"空置"},{color:"#FFDF99",title:"在途"},{color:"#E5D8FF",title:"待交付"},{color:"#F7F7F7",title:"临时房"}],tipsList:[{name:"独栋",value:"1"},{name:"孵化楼",value:"2"},{name:"商铺",value:"3"},{name:"水广场",value:"4"}],tip:"1",typeList:["1","2","3","4","5","2","4","5","2","2","3","4","5","2"],type:new o.a([["1","background:#C7C7C7;color:#FFF"],["2","background:#976CEB;color:#FFF"],["3","background:#FFDF99;color:#333"],["4","background:#E5D8FF;color:#333"],["5","background:#F7F7F7;color:#333"]]),userId:"",dc_key:["progressStage"],tipList:[],search:{createdBy:""},recordList:[]}},mounted:function(){var t=this;this.userId=s["a"].currUser().truename,this.initDict(this.dc_key).then(function(e){t.tipList=t.dc_map.progressStage,t.getData()})},methods:{getTips:function(t){this.tip=t.value},getData:function(){var t=this;this.search.createdBy=this.userId,Object(u["d"])(this.search).then(function(e){t.recordList=e,t.recordList.forEach(function(e){e.updatedAt=t.$common.transServDate(e.updatedAt),e.stage=t.tipList[e.stage]})}).catch(function(){})},getDetail:function(t){this.$router.push({path:"/merchants-app/detail",query:{companyName:t.companyName}})},handleAdd:function(){this.$router.push({path:"/merchants-app/add",query:{id:"",isAdd:"2"}})}}},d=l,f=(n("7b67"),n("2877")),p=Object(f["a"])(d,a,i,!1,null,"e2996566",null);e["default"]=p.exports},"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,o){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=o(n,t,this);if(e.done)return e.value;var c=a(t),s=String(this),u=c.lastIndex;i(u,0)||(c.lastIndex=0);var l=r(c,s);return i(c.lastIndex,u)||(c.lastIndex=u),null===l?-1:l.index}]})},4517:function(t,e,n){var a=n("a22a");t.exports=function(t,e){var n=[];return a(t,!1,n.push,n,e),n}},5037:function(t,e,n){n("c207"),n("1654"),n("6c1c"),n("837d"),n("5cb6"),n("fe1e"),n("7554"),t.exports=n("584a").Map},"57b1":function(t,e,n){var a=n("d864"),i=n("335c"),r=n("241e"),o=n("b447"),c=n("bfac");t.exports=function(t,e){var n=1==t,s=2==t,u=3==t,l=4==t,d=6==t,f=5==t||d,p=e||c;return function(e,c,h){for(var v,m,g=r(e),X=i(g),b=a(c,h,3),_=o(X.length),y=0,x=n?p(e,_):s?p(e,0):void 0;_>y;y++)if((f||y in X)&&(v=X[y],m=b(v,y,g),t))if(n)x[y]=m;else if(m)switch(t){case 3:return!0;case 5:return v;case 6:return y;case 2:x.push(v)}else if(l)return!1;return d?-1:u||l?l:x}}},"5aee":function(t,e,n){"use strict";var a=n("d9f6").f,i=n("a159"),r=n("5c95"),o=n("d864"),c=n("1173"),s=n("a22a"),u=n("30f1"),l=n("50ed"),d=n("4c95"),f=n("8e60"),p=n("ebfd").fastKey,h=n("9f79"),v=f?"_s":"size",m=function(t,e){var n,a=p(e);if("F"!==a)return t._i[a];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,u){var l=t(function(t,a){c(t,l,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[v]=0,void 0!=a&&s(a,n,t[u],t)});return r(l.prototype,{clear:function(){for(var t=h(this,e),n=t._i,a=t._f;a;a=a.n)a.r=!0,a.p&&(a.p=a.p.n=void 0),delete n[a.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var n=h(this,e),a=m(n,t);if(a){var i=a.n,r=a.p;delete n._i[a.i],a.r=!0,r&&(r.n=i),i&&(i.p=r),n._f==a&&(n._f=i),n._l==a&&(n._l=r),n[v]--}return!!a},forEach:function(t){h(this,e);var n,a=o(t,arguments.length>1?arguments[1]:void 0,3);while(n=n?n.n:this._f){a(n.v,n.k,this);while(n&&n.r)n=n.p}},has:function(t){return!!m(h(this,e),t)}}),f&&a(l.prototype,"size",{get:function(){return h(this,e)[v]}}),l},def:function(t,e,n){var a,i,r=m(t,e);return r?r.v=n:(t._l=r={i:i=p(e,!0),k:e,v:n,p:a=t._l,n:void 0,r:!1},t._f||(t._f=r),a&&(a.n=r),t[v]++,"F"!==i&&(t._i[i]=r)),t},getEntry:m,setStrong:function(t,e,n){u(t,e,function(t,n){this._t=h(t,e),this._k=n,this._l=void 0},function(){var t=this,e=t._k,n=t._l;while(n&&n.r)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?l(0,"keys"==e?n.k:"values"==e?n.v:[n.k,n.v]):(t._t=void 0,l(1))},n?"entries":"values",!n,!0),d(e)}}},"5cb6":function(t,e,n){var a=n("63b6");a(a.P+a.R,"Map",{toJSON:n("f228")("Map")})},"68f7":function(t,e,n){"use strict";var a=n("63b6"),i=n("79aa"),r=n("d864"),o=n("a22a");t.exports=function(t){a(a.S,t,{from:function(t){var e,n,a,c,s=arguments[1];return i(this),e=void 0!==s,e&&i(s),void 0==t?new this:(n=[],e?(a=0,c=r(s,arguments[2],2),o(t,!1,function(t){n.push(c(t,a++))})):o(t,!1,n.push,n),new this(n))}})}},7075:function(t,e,n){"use strict";var a=n("63b6");t.exports=function(t){a(a.S,t,{of:function(){var t=arguments.length,e=new Array(t);while(t--)e[t]=arguments[t];return new this(e)}})}},7121:function(t,e,n){"use strict";n.d(e,"d",function(){return o}),n.d(e,"c",function(){return c}),n.d(e,"b",function(){return s}),n.d(e,"a",function(){return u}),n.d(e,"e",function(){return l});var a=n("8982"),i="/industryParkApi",r="/wx/parkProgressRecord";function o(t){return Object(a["a"])({url:i+r+"/listGroup",method:"post",data:t})}function c(t){return Object(a["a"])({url:i+r+"/list",method:"post",data:t})}function s(t){return Object(a["a"])({url:i+r+"/getRecordById?id="+t,method:"get"})}function u(t){return Object(a["a"])({url:i+r+"/add",method:"post",data:t})}function l(t){return Object(a["a"])({url:i+r+"/remove",method:"post",data:t})}},7554:function(t,e,n){n("68f7")("Map")},"7b67":function(t,e,n){"use strict";var a=n("3383"),i=n.n(a);i.a},"7f7f":function(t,e,n){var a=n("86cc").f,i=Function.prototype,r=/^\s*function ([^ (]*)/,o="name";o in i||n("9e1e")&&a(i,o,{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(t){return""}}})},"837d":function(t,e,n){"use strict";var a=n("5aee"),i=n("9f79"),r="Map";t.exports=n("ada4")(r,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=a.getEntry(i(this,r),t);return e&&e.v},set:function(t,e){return a.def(i(this,r),0===t?0:t,e)}},a,!0)},"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 p}),n.d(e,"b",function(){return h});var a=n("795b"),i=n.n(a),r=n("bc3a"),o=n.n(r),c=n("4328"),s=n.n(c),u=n("4360"),l=n("5cab"),d=n("a18c"),f=n("3089");function p(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:s.a.stringify(t.data)};return e&&(n.data=t.data),t.headers&&(n.headers=t.headers),new i.a(function(e,a){o()(n).then(function(t){if(t&&t.data&&200===t.status){var n=t.data;switch(n.errno){case 501:Object(f["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(f["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(f["Toast"])(e),a(e,n)})})}function h(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){o.a.defaults.withCredentials=!0,o()(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(f["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(f["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(f["Toast"])(e),a(e,n)})})}},"9f79":function(t,e,n){var a=n("f772");t.exports=function(t,e){if(!a(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},ada4:function(t,e,n){"use strict";var a=n("e53d"),i=n("63b6"),r=n("ebfd"),o=n("294c"),c=n("35e8"),s=n("5c95"),u=n("a22a"),l=n("1173"),d=n("f772"),f=n("45f2"),p=n("d9f6").f,h=n("57b1")(0),v=n("8e60");t.exports=function(t,e,n,m,g,X){var b=a[t],_=b,y=g?"set":"add",x=_&&_.prototype,k={};return v&&"function"==typeof _&&(X||x.forEach&&!o(function(){(new _).entries().next()}))?(_=e(function(e,n){l(e,_,t,"_c"),e._c=new b,void 0!=n&&u(n,g,e[y],e)}),h("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in x&&(!X||"clear"!=t)&&c(_.prototype,t,function(n,a){if(l(this,_,t),!e&&X&&!d(n))return"get"==t&&void 0;var i=this._c[t](0===n?0:n,a);return e?this:i})}),X||p(_.prototype,"size",{get:function(){return this._c.size}})):(_=m.getConstructor(e,t,g,y),s(_.prototype,n),r.NEED=!0),f(_,t),k[t]=_,i(i.G+i.W+i.F,k),X||m.setStrong(_,t,g),_}},aed7:function(t,e,n){t.exports=n.p+"assets/img/no-result.b05bdcd3.jpg"},bfac:function(t,e,n){var a=n("0b64");t.exports=function(t,e){return new(a(t))(e)}},ebfd:function(t,e,n){var a=n("62a0")("meta"),i=n("f772"),r=n("07e3"),o=n("d9f6").f,c=0,s=Object.isExtensible||function(){return!0},u=!n("294c")(function(){return s(Object.preventExtensions({}))}),l=function(t){o(t,a,{value:{i:"O"+ ++c,w:{}}})},d=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!r(t,a)){if(!s(t))return"F";if(!e)return"E";l(t)}return t[a].i},f=function(t,e){if(!r(t,a)){if(!s(t))return!0;if(!e)return!1;l(t)}return t[a].w},p=function(t){return u&&h.NEED&&s(t)&&!r(t,a)&&l(t),t},h=t.exports={KEY:a,NEED:!1,fastKey:d,getWeak:f,onFreeze:p}},f228:function(t,e,n){var a=n("40c3"),i=n("4517");t.exports=function(t){return function(){if(a(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},fe1e:function(t,e,n){n("7075")("Map")}}]);
|