1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-15e15187"],{"06a8":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div")},n=[],s=a("795b"),r=a.n(s),o=(a("7f7f"),a("ac6a"),a("f20c")),c=a("5cab"),l=a("f499"),u=a.n(l),d=a("8982"),f="/industryParkApi",m="/wx/data",p="/wx/public",h="/wx/dictController";function v(t){return Object(d["a"])({url:f+m+"/listBizAll/"+t,method:"post"})}function b(t){return Object(d["a"])({url:f+p+"/listProjectAll",method:"post",data:t})}function g(t){return Object(d["a"])({url:f+h+"/getByCodes",method:"post",data:t})}function _(t){var e={codes:u()(t)};return new r.a(function(t,a){g(e).then(function(e){t(e)}).catch(function(t,e){a(t,e)})})}var C=a("3089"),D={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),_(t).then(function(t){t.data&&e.dc_key.forEach(function(a){var i=e.getDictValue(t.data,a,!0);e.dc_data[a]=i,e.dc_map[a]=e.$common.transDcMap(i);var n=e.getDictValue(t.data,a,!1);e.dc_data_no_all[a]=n,e.dc_map_no_all[a]=e.$common.transDcMap(n)})})},initDict2:function(t){var e=this;return t||(t=e.dc_key),_(t).then(function(t){t.data&&e.dc_key.forEach(function(a){var i=e.getDictValue(t.data,a,!1);e.dc_data[a]=i,e.dc_map[a]=e.$common.transDcMap(i);var n=e.getDictValue(t.data,a,!1);e.dc_data_no_all[a]=n,e.dc_map_no_all[a]=e.$common.transDcMap(n)})})},initBiz:function(){var t=this;return this.BizData=[],v(c["a"].uid()).then(function(e){e.data&&e.data.forEach(function(e){var a={label:e.businessName,value:e.id};t.BizData.push(a),t.BizMap[e.id]=e.businessName})}).catch(function(){})},initProjectData:function(){var t=this;return this.ProjectData=[],b(c["a"].uid()).then(function(e){e.data&&e.data.forEach(function(e){var a={label:e.name,value:e.id};t.ProjectData.push(a),t.ProjectMap[a.value]=e})}).catch(function(){})},pagination:function(t){var e=this.currentPage,a=this.pageSize,i=e*a-a,n=e*a;return t.slice(i,n)},getDictValue:function(t,e,a){var i=t[e]?o["a"].castEval(t[e].dictValue):[],n=[];if(i.forEach(function(t){var e={id:t.id,isSearch:t.isSearch,label:t.label,value:t.value,active:!1};n.push(e)}),a){var s={label:"全部",value:"",active:!0};n.unshift(s)}return n},confirm:function(t,e){return new r.a(function(a,i){C["Dialog"].confirm({title:e,message:t}).then(function(t){a(t)}).catch(function(t){Object(C["Toast"])("已取消"),i(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 a=e.indexOf(t);e.splice(a,1)},noImg:function(){var t=event.srcElement;t.src=a("aed7"),t.onerror=null}}},T=D,w=a("2877"),k=Object(w["a"])(T,i,n,!1,null,"3fa5b905",null);e["a"]=k.exports},"0a0d":function(t,e,a){t.exports=a("e829")},"0a90":function(t,e,a){var i=a("63b6"),n=a("10ff");i(i.G+i.F*(parseFloat!=n),{parseFloat:n})},"10ff":function(t,e,a){var i=a("e53d").parseFloat,n=a("a1ce").trim;t.exports=1/i(a("e692")+"-0")!==-1/0?function(t){var e=n(String(t),3),a=i(e);return 0===a&&"-"==e.charAt(0)?-0:a}:i},"2f37":function(t,e,a){var i=a("63b6");i(i.S,"Date",{now:function(){return(new Date).getTime()}})},"402e":function(t,e,a){"use strict";var i=a("8f9d"),n=a.n(i);n.a},"59ad":function(t,e,a){t.exports=a("7be7")},"5d6b":function(t,e,a){var i=a("e53d").parseInt,n=a("a1ce").trim,s=a("e692"),r=/^[-+]?0[xX]/;t.exports=8!==i(s+"08")||22!==i(s+"0x16")?function(t,e){var a=n(String(t),3);return i(a,e>>>0||(r.test(a)?16:10))}:i},7445:function(t,e,a){var i=a("63b6"),n=a("5d6b");i(i.G+i.F*(parseInt!=n),{parseInt:n})},"7be7":function(t,e,a){a("0a90"),t.exports=a("584a").parseFloat},"7f7f":function(t,e,a){var i=a("86cc").f,n=Function.prototype,s=/^\s*function ([^ (]*)/,r="name";r in n||a("9e1e")&&i(n,r,{configurable:!0,get:function(){try{return(""+this).match(s)[1]}catch(t){return""}}})},8982:function(t,e,a){"use strict";a.d(e,"a",function(){return m}),a.d(e,"b",function(){return p});var i=a("795b"),n=a.n(i),s=a("bc3a"),r=a.n(s),o=a("4328"),c=a.n(o),l=a("4360"),u=a("5cab"),d=a("a18c"),f=a("3089");function m(t,e){t.headers||(t.headers={}),t.headers&&u["a"].getToken()&&(t.headers["RC-Token"]=u["a"].getToken());var a={method:t.method,url:t.url,data:c.a.stringify(t.data)};return e&&(a.data=t.data),t.headers&&(a.headers=t.headers),new n.a(function(e,i){r()(a).then(function(t){if(t&&t.data&&200===t.status){var a=t.data;switch(a.errno){case 501:Object(f["Toast"])(a.errmsg),setTimeout(function(){l["a"].dispatch("user/logout").then(function(){d["a"].push("/login")})},1500),i(a.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"])(a.errmsg),i(a.errmsg);break}e(a)}else console.log(t),i(t)}).catch(function(e,a){console.log(t.url+" fail",e,a),Object(f["Toast"])(e),i(e,a)})})}function p(t){t.headers||(t.headers={}),t.headers&&u["a"].getToken()&&(t.headers["RC-Token"]=u["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 n.a(function(a,i){r.a.defaults.withCredentials=!0,r()(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(){l["a"].dispatch("user/logout").then(function(){d["a"].push("/login")})},1500),i(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),i(e.errmsg);break}a(e)}else console.log(t),i(t)}).catch(function(e,a){console.log(t.url+" fail",e,a),Object(f["Toast"])(e),i(e,a)})})}},"8f9d":function(t,e,a){},a1ce:function(t,e,a){var i=a("63b6"),n=a("25eb"),s=a("294c"),r=a("e692"),o="["+r+"]",c="
",l=RegExp("^"+o+o+"*"),u=RegExp(o+o+"*$"),d=function(t,e,a){var n={},o=s(function(){return!!r[t]()||c[t]()!=c}),l=n[t]=o?e(f):r[t];a&&(n[a]=l),i(i.P+i.F*o,"String",n)},f=d.trim=function(t,e){return t=String(n(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(u,"")),t};t.exports=d},ad68:function(t,e,a){"use strict";a.d(e,"a",function(){return c});var i=a("e814"),n=a.n(i),s=a("59ad"),r=a.n(s);a("6b54"),a("a481"),a("0a0d");function o(t){return t<10?"0"+t:t}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"slash",a="";console.log(t.constructor),t.constructor===Date?a=t:(a=(r()(t)+946684800).toString(),-1!=a.indexOf("-")||-1!=a.indexOf("/")||-1!=a.indexOf(":")?(a=a.replace(/-/g,"/"),a=new Date(a)):10==a.length?a=new Date(1e3*n()(a)):13==a.length&&(a=new Date(n()(a))));var i=a.getFullYear(),s=a.getMonth()+1,c=a.getDate(),l=a.getHours(),u=a.getMinutes(),d=a.getSeconds(),f=new Date,m=Math.floor(f-a),p=Math.floor(m/60),h=Math.floor(p/60),v=Math.floor(h/24),b=Math.floor(v/30),g=(Math.floor(b/12),(new Date).getFullYear()),_=new Date;_=new Date(_.getFullYear(),_.getMonth(),_.getDate());var C=new Date(a);C=new Date(C.getFullYear(),C.getMonth(),C.getDate());var D=(C-_)/1e3/60/60/24;switch(e){case"horizontal":return i+"-"+o(s)+"-"+o(c)+" "+o(l)+":"+o(u)+":"+o(d);case"day":return i+"-"+o(s)+"-"+o(c);case"minute":var T="";return g===i?D<-1?T=o(s)+"-"+o(c)+" "+o(l)+":"+o(u):D<0?T="昨天 "+o(l)+":"+o(u):0==D&&(T=o(l)+":"+o(u)):T=i+"-"+o(s)+"-"+o(c)+" "+o(l)+":"+o(u),T;case"second":var w="";return g===i?D<-1?w=o(s)+"-"+o(c)+" "+o(l)+":"+o(u)+":"+o(d):D<0?w="昨天 "+o(l)+":"+o(u)+":"+o(d):0==D&&(w=o(l)+":"+o(u)+":"+o(d)):w=i+"-"+o(s)+"-"+o(c)+" "+o(l)+":"+o(u)+":"+o(d),w;case"spot":var k="";return k=i+"."+o(s)+"."+o(c)+" "+o(l)+":"+o(u)+":"+o(d),k;case"date":var x="";return x=i+"."+o(s)+"."+o(c),x;case"time":var y="";return y=o(l)+":"+o(u),y;case"dateTime":var O="";return O=i+"-"+o(s)+"-"+o(c)+" "+o(l)+":"+o(u),O;case"bvcTime":return o(l)+":"+o(u)+":"+o(d)+" "+o(c)+"/"+o(s)+"/"+i;default:return i+"/"+o(s)+"/"+o(c)+" "+o(l)+":"+o(u)+":"+o(d)}}},aed7:function(t,e,a){t.exports=a.p+"assets/img/no-result.b05bdcd3.jpg"},b9e9:function(t,e,a){a("7445"),t.exports=a("584a").parseInt},c518:function(t,e,a){"use strict";a.d(e,"d",function(){return r}),a.d(e,"c",function(){return o}),a.d(e,"b",function(){return c}),a.d(e,"a",function(){return l});var i=a("8982"),n="/industryParkApi",s="/wx/userRelation";function r(t){return Object(i["a"])({url:n+s+"/getUserRelation",method:"post",data:t})}function o(t){return Object(i["a"])({url:n+s+"/getUserMain",method:"post",data:t})}function c(t){return Object(i["a"])({url:n+s+"/getBizMainList",method:"post",data:t})}function l(t){return Object(i["a"])({url:n+s+"/getUserMainApp",method:"post",data:t})}},cba7:function(t,e,a){"use strict";a.d(e,"d",function(){return r}),a.d(e,"c",function(){return o}),a.d(e,"b",function(){return c}),a.d(e,"a",function(){return l});var i=a("8982"),n="/industryParkApi",s="/wx/meetingAppoint";function r(t){return Object(i["a"])({url:n+s+"/getMeetingAppointListApp",method:"post",data:t})}function o(t){return Object(i["a"])({url:n+s+"/meetingAppointDetail",method:"post",data:t})}function c(t){return Object(i["a"])({url:n+s+"/confirmAudit",method:"post",data:t})}function l(t){return Object(i["a"])({url:n+s+"/cancelAppoint",method:"post",data:t})}},e19a: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("div",{staticClass:"detail"},[a("div",{staticClass:"white-box top-box"},[t._v("当前企业:"+t._s(t.bizInfo))]),a("div",{staticClass:"white-box part-1"},[t._m(0),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("会议室名称")]),a("p",{staticClass:"tit"},[t._v(t._s(t.roomDetial.roomName?t.roomDetial.roomName:""))])]),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("会议室位置")]),a("p",{staticClass:"tit"},[t._v(t._s(t.roomDetial.position))])]),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("座位数")]),a("p",{staticClass:"tit"},[t._v(t._s(t.roomDetial.seatNumber))])]),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("配套")]),a("p",{staticClass:"tit"},[t._v(t._s(t.roomDetial.match))])]),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("收费标准")]),a("p",{staticClass:"tit"},[t._v(t._s(t.roomDetial.charges))])]),a("div",{staticClass:"cell-item flex-item"},[a("p",{staticClass:"label"},[t._v("预约电话")]),a("p",{staticClass:"tit tel-box"},[a("span",[t._v(t._s(t.roomDetial.appointPhone))]),a("TelNum",{attrs:{num:t.roomDetial.appointPhone,showTel:!1}})],1)])]),a("div",{staticClass:"white-box part-2"},[t._m(1),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("使用时间")]),a("p",{staticClass:"tit"},[t._v("\n "+t._s(t.oderDetial.useTime)+" 至 "+t._s(t.dc_map.timeSlot[t.oderDetial.timeSlot])+"\n ")])]),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("会议主题")]),a("p",{staticClass:"tit"},[t._v(t._s(t.oderDetial.subject))])]),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("参会人数")]),a("p",{staticClass:"tit"},[t._v(t._s(t.oderDetial.peopleNumber))])]),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("联系人")]),a("p",{staticClass:"tit"},[t._v(t._s(t.oderDetial.contacts))])]),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("联系电话")]),a("p",{staticClass:"tit"},[t._v(t._s(t.oderDetial.phone))])]),a("div",{staticClass:"block-cell-item"},[a("p",{staticClass:"label"},[t._v("备注")]),a("div",{staticClass:"tit"},[a("div",{staticClass:"textarea"},[t._v("\n "+t._s(t.oderDetial.remarks)+"\n ")])])])]),a("div",{staticClass:"white-box part-3 form-part"},[t._m(2),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("审核结果")]),a("div",{staticClass:"tit"},[a("van-radio-group",{attrs:{disabled:t.readOnlyType},model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}},[a("van-radio",{attrs:{name:"1","checked-color":"#976CEB"}},[t._v("通过")]),a("van-radio",{attrs:{name:"2","checked-color":"#976CEB"}},[t._v("取消")])],1)],1)]),t._m(3),a("van-field",{staticClass:"textarea-item input-item-warp",attrs:{disabled:t.readOnlyType,autosize:"",readonly:1==t.radio,type:"textarea",placeholder:"请填写"},model:{value:t.reason,callback:function(e){t.reason=e},expression:"reason"}})],1),t.readOnlyType?t._e():a("div",{staticClass:"repair-bottom bottom-button"},[a("button",{staticClass:"btn",on:{click:t.submitFrom}},[t._v("提交")])]),a("van-popup",{attrs:{position:"bottom"},model:{value:t.showStartPicker,callback:function(e){t.showStartPicker=e},expression:"showStartPicker"}},[a("van-datetime-picker",{attrs:{type:"date",title:"选择开始时间"},on:{confirm:t.startTimeConfirml,cancel:t.startTimeCancel},model:{value:t.startTime,callback:function(e){t.startTime=e},expression:"startTime"}})],1),a("van-popup",{attrs:{position:"bottom"},model:{value:t.showEndPicker,callback:function(e){t.showEndPicker=e},expression:"showEndPicker"}},[a("van-datetime-picker",{attrs:{type:"date",title:"选择结束时间"},on:{confirm:t.endTimeConfirml,cancel:t.endTimeCancel},model:{value:t.endTime,callback:function(e){t.endTime=e},expression:"endTime"}})],1)],1)},n=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-item-tit"},[a("div",{staticClass:"tit"},[t._v("会议室信息")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-item-tit"},[a("div",{staticClass:"tit"},[t._v("会议预约")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-item-tit"},[a("div",{staticClass:"tit"},[t._v("审核结果")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-item-tit"},[a("div",{staticClass:"tit"},[t._v("取消原因")])])}],s=a("3089"),r=a("5cab"),o=a("06a8"),c=a("ad68"),l=a("f7eb"),u=a("c518"),d=a("cba7"),f={mixins:[o["a"]],components:{TelNum:l["a"]},data:function(){return{active:"",dc_key:["timeSlot"],currUser:{},bizInfo:{},roomDetial:{},oderDetial:{},appointId:"",readOnlyType:!1,lotInfo:{},seatList:[],num:-1,radio:"1",showStartPicker:!1,showEndPicker:!1,startTime:"",formatStartTime:"",endTime:"",formatEndTime:"",dateList:[{date:"8/1",typeList:["1","3","4"]},{date:"8/2",typeList:["1","2","4"]},{date:"8/3",typeList:["4","2","1"]}],reason:"",timeList:["9:00-12:00","13:00-18:00","18:00-22:00"]}},mounted:function(){var t=this;this.currUser=r["a"].currUser(),this.appointId=this.$route.params.id,this.readOnlyType=this.$route.params.readOnlyType,this.getBizMain(),this.initDict(this.dc_key).then(function(e){t.getOrderDetail()})},methods:{getBizMain:function(){var t=this,e={userId:this.currUser.id};Object(u["a"])(e).then(function(e){200==e.key&&(t.bizInfo=e.data)})},getOrderDetail:function(){var t=this,e={id:this.appointId};Object(d["c"])(e).then(function(e){200==e.key&&(t.roomDetial=e.data.roomDetial,t.oderDetial=e.data.oderDetial,t.radio="5"==t.oderDetial.state?"2":"1",t.reason=t.oderDetial.cancelReason)})},submitFrom:function(){var t=this,e={id:this.appointId,confirmType:this.radio,reason:this.reason,userId:this.currUser.id};if(2==this.radio&&!this.reason)return Object(s["Toast"])("请填写取消原因!"),!1;Object(d["b"])(e).then(function(e){console.log("获取提交详情_:",e),200==e.key&&(Object(s["Toast"])("审核成功!"),t.goNavigator("meetingRoom-app"))})},startTimeCancel:function(){this.showStartPicker=!1},startTimeConfirml:function(t){this.formatStartTime=Object(c["a"])(t,"day"),this.showStartPicker=!1},endTimeCancel:function(){this.showEndPicker=!1},endTimeConfirml:function(t){this.formatEndTime=Object(c["a"])(t,"day"),this.showEndPicker=!1}}},m=f,p=(a("402e"),a("2877")),h=Object(p["a"])(m,i,n,!1,null,"383cc93d",null);e["default"]=h.exports},e692:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},e814:function(t,e,a){t.exports=a("b9e9")},e829:function(t,e,a){a("2f37"),t.exports=a("584a").Date.now}}]);
|