1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0790f2aa"],{"06a8":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div")},s=[],n=a("795b"),c=a.n(n),r=(a("7f7f"),a("ac6a"),a("f20c")),o=a("5cab"),l=a("f499"),u=a.n(l),d=a("8982"),h="/industryParkApi",p="/wx/data",f="/wx/public",m="/wx/dictController";function v(t){return Object(d["a"])({url:h+p+"/listBizAll/"+t,method:"post"})}function b(t){return Object(d["a"])({url:h+f+"/listProjectAll",method:"post",data:t})}function g(t){return Object(d["a"])({url:h+m+"/getByCodes",method:"post",data:t})}function _(t){var e={codes:u()(t)};return new c.a(function(t,a){g(e).then(function(e){t(e)}).catch(function(t,e){a(t,e)})})}var C=a("3089"),k={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 s=e.getDictValue(t.data,a,!1);e.dc_data_no_all[a]=s,e.dc_map_no_all[a]=e.$common.transDcMap(s)})})},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 s=e.getDictValue(t.data,a,!1);e.dc_data_no_all[a]=s,e.dc_map_no_all[a]=e.$common.transDcMap(s)})})},initBiz:function(){var t=this;return this.BizData=[],v(o["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(o["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,s=e*a;return t.slice(i,s)},getDictValue:function(t,e,a){var i=t[e]?r["a"].castEval(t[e].dictValue):[],s=[];if(i.forEach(function(t){var e={id:t.id,isSearch:t.isSearch,label:t.label,value:t.value,active:!1};s.push(e)}),a){var n={label:"全部",value:"",active:!0};s.unshift(n)}return s},confirm:function(t,e){return new c.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}}},x=k,w=a("2877"),y=Object(w["a"])(x,i,s,!1,null,"3fa5b905",null);e["a"]=y.exports},"0fb3":function(t,e,a){t.exports=a.p+"assets/img/shuibiao.a21c14a3.jpeg"},"1a2b":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:"repair-detail-box"},[a("div",{class:["repair-content","unAcceptance"===t.detailStatus?"fixed-page-content":"page-content"]},[a("div",{staticClass:"white-box page-1"},[a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("当前企业")]),a("p",{staticClass:"tit"},[t._v(t._s(t.detail.companyName))])]),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("您是想")]),a("div",{staticClass:"tit"},[t._v(t._s("1"===t.detail.type?"报事":"咨询"))])]),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("快捷选择")]),a("div",{staticClass:"tit"},[t._v(t._s(t.detail.serviceType))])]),a("div",{staticClass:"block-cell-item"},[a("p",{staticClass:"label"},[t._v("报事报修描述")]),a("div",{staticClass:"tit"},[a("div",{staticClass:"textarea"},[t._v(t._s(t.detail.description))])])])]),a("div",{staticClass:"white-box page-2"},[a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("位置")]),a("div",{staticClass:"tit"},[t._v(t._s("1"===t.detail.position?"室内":"公区"))])]),a("div",{staticClass:"block-cell-item"},[a("p",{staticClass:"label"},[t._v("补充说明")]),a("div",{staticClass:"tit"},[a("ul",{staticClass:"annex-list-box"},t._l(t.explainAnnexList,function(e,i){return a("li",{key:i,staticClass:"annex-item",on:{click:function(e){return t.open(t.detail.fileUrlViewList,i)}}},["image"===e.type?a("img",{attrs:{src:e.url,alt:""}}):t._e(),"video"===e.type?a("video",{attrs:{src:e.url,width:"100%",height:"100%"}}):t._e()])}),0)])]),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.detail.userId))]),a("TelNum",{attrs:{num:t.detail.phone,showTel:!1}})],1)]),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("报事时间")]),a("p",{staticClass:"tit"},[t._v(t._s(t.detail.createdAt))])])]),a("div",{staticClass:"white-box page-3 form-part"},[t._m(0),a("div",{staticClass:"block-cell-item"},[a("p",{staticClass:"label"},[t._v("处理进展")]),a("div",{staticClass:"tit"},[a("van-steps",{attrs:{active:t.stepActive,"active-color":"#2A3980"}},t._l(t.processSteps,function(e,i){return a("van-step",{key:i},[t._v(t._s(e.label)+"\n\t\t\t\t\t\t\t")])}),1)],1)]),a("van-field",{staticClass:"input-item picker-item",attrs:{readonly:"",clickable:"",value:t.value,"input-align":"right",label:"处理人",placeholder:"请选择"},on:{click:function(e){t.showPicker=!0}},scopedSlots:t._u([{key:"button",fn:function(){return[a("i",{staticClass:"iconfont icon-zuo"})]},proxy:!0}])}),a("van-popup",{attrs:{position:"bottom"},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}},[a("van-picker",{staticClass:"picker-box",attrs:{"show-toolbar":"",columns:t.columns},on:{confirm:function(e){return t.onSelect(e)},cancel:function(e){t.showPicker=!1}}})],1),t._m(1),a("div",{staticClass:"custom-textarea-box"},[a("van-field",{attrs:{autosize:"",type:"textarea",placeholder:"请填写","show-word-limit":"",readonly:"unAcceptance"!==t.detail.status},model:{value:t.params.remark,callback:function(e){t.$set(t.params,"remark",e)},expression:"params.remark"}})],1)],1),"processed"===t.detailStatus&&"true"===t.detail.isUser?a("div",{staticClass:"white-box page-4",staticStyle:{"padding-bottom":"120px"}},[t._m(2),a("div",{staticClass:"custom-white-box-content"},[a("div",{staticClass:"evaluate-box"},[a("p",{staticClass:"evaluate-left"},[t._v("您对本次服务的评价")]),a("div",{staticClass:"evaluate-right"},[a("van-rate",{attrs:{color:"#ffd21e"},model:{value:t.evaluateVal,callback:function(e){t.evaluateVal=e},expression:"evaluateVal"}})],1)])])]):t._e()]),"processed"===t.detailStatus&&"true"===t.detail.isUser?a("div",{staticClass:"repair-bottom bottom-button"},[a("button",{staticClass:"btn",on:{click:t.onPinConfirm}},[t._v("评价提交")])]):t._e(),"unAcceptance"===t.detail.status?a("div",{staticClass:"repair-bottom bottom-button"},[a("button",{staticClass:"btn",on:{click:t.onConfirm}},[t._v("派单")])]):t._e()])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-item-tit"},[a("p",{staticClass:"tit"},[t._v("处理情况")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-item-tit"},[a("p",{staticClass:"tit"},[t._v("备注")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-item-tit"},[a("p",{staticClass:"tit"},[t._v("服务评价")])])}],n=(a("a481"),a("ac6a"),a("28a5"),a("f7eb")),c=a("b48a"),r=a("06a8"),o=(a("3a06"),a("3089")),l=a("5cab"),u={components:{TelNum:n["a"]},data:function(){return{dc_key:["QUICK_SELECTION","REPAIR_STATUS"],detailId:"",value:"",showPicker:!1,columns:[],detailStatus:"unAcceptance",explainAnnexList:[{type:"image",url:a("0fb3")}],processedAnnexList:[{type:"image",url:a("0fb3")}],stepActive:0,processSteps:[{id:1,status:1,label:"上报"},{id:2,status:1,label:"已受理"},{id:3,status:1,label:"已处理"},{id:4,status:0,label:"评价"}],evaluateVal:0,id:"",detail:{},fileUrlList:[],pingParams:{id:"",evaluateNum:"",score:""},params:{id:"",status:"acceptance",dispatchUserId:l["a"].currUser().id+"-"+l["a"].currUser().truename+"-"+l["a"].currUser().phone,dispatchTime:this.$common.transServDate(new Date),handleUserId:"",remark:""}}},mixins:[r["a"]],mounted:function(){var t=this;this.id=this.$route.params.id,this.initDict(this.dc_key).then(function(e){t.getDetailById()}),Object(c["d"])({groupId:"870261874875170816"}).then(function(e){t.columns=e.data})},methods:{onSelect:function(t){this.value=t.text,this.params.handleUserId=t.value+"-"+t.text,this.showPicker=!1},onPinConfirm:function(t){var e=this;this.pingParams.evaluateNum=this.pingParams.evaluateNum+1,this.pingParams.score=this.pingParams.score+this.evaluateVal,this.pingParams.status="evaluated",Object(c["b"])(this.pingParams).then(function(t){o["Toast"].success("评价成功"),e.$router.push({path:"/repairDispatch-app"})})},onConfirm:function(t){var e=this;null!=this.params.handleUserId&&""!==this.params.handleUserId?(this.params.id=this.id,Object(c["b"])(this.params).then(function(t){o["Toast"].success("派单成功"),e.$router.push({path:"/repairDispatch-app"})})):o["Toast"].success("请选择处理人")},open:function(t,e){Object(o["ImagePreview"])({images:t,startPosition:e,closeable:!0,className:"image-repairDispatch-box"})},getDetailById:function(){var t=this,e=this;Object(c["c"])({id:e.id}).then(function(a){if(console.log(a.data),a.data){var i=e.getItemJson(a.data);if(t.detail=i,t.explainAnnexList=i.fileUrlList,t.processedAnnexList=i.handleUrlList,t.detailStatus=i.status,t.params.handleUserId=i.handleUserId,null!=i.handleUserId&&""!==i.handleUserId){var s=i.handleUserId.split("-");t.value=s[1]+"-"+s[2]}t.params.remark=i.remark,t.pingParams={id:i.id,evaluateNum:i.evaluateNum,score:i.score}}})},getItemJson:function(t){var e=this;if(t.releaseTime=this.$common.transDate(t.releaseTime),t.createdAt=this.$common.transDate(t.createdAt),t.serviceType=this.dc_map.QUICK_SELECTION[t.serviceType],t.userId){var a=t.userId.split("-");t.phone=a[2],t.userId=a[1]+"-"+a[2],t.isUser="false",a[0]===l["a"].currUser().id&&(t.isUser="true")}switch(t.handleUserId&&(t.handlePhone=t.handleUserId.split("-")[1]),t.handleTime=this.$common.transDate(t.handleTime),t.status){case"unAcceptance":this.stepActive=0;break;case"acceptance":this.stepActive=1;break;case"evaluated":this.stepActive=3;break;case"processed":this.stepActive=2;break}var i=this.$common.castEval(t.fileUrl),s=[],n=[];null!==i&&i.length>0&&i.forEach(function(t){if(t.url){var a={type:"image",url:e.$common.replaceThumbnail(t.url)};n.push(t.url.replace("/server","/industryParkApi")),s.push(a)}}),t.fileUrlViewList=n,t.fileUrlList=s;var c=this.$common.castEval(t.handleUrl),r=[];return null!==c&&c.length>0&&c.forEach(function(t){if(t.url){var e={type:"image",url:t.url.replace("/server","/industryParkApi")};r.push(e)}}),t.handleUrlList=r,t},quickSelect:function(t){this.quickSleced.val&&this.quickSleced.val===t.val?this.quickSleced={}:this.quickSleced=t},afterRead:function(t){console.log(t)}}},d=u,h=(a("93ed"),a("a3f7"),a("2877")),p=Object(h["a"])(d,i,s,!1,null,"1d2135e1",null);e["default"]=p.exports},"28a5":function(t,e,a){"use strict";var i=a("aae3"),s=a("cb7c"),n=a("ebd6"),c=a("0390"),r=a("9def"),o=a("5f1b"),l=a("520a"),u=a("79e5"),d=Math.min,h=[].push,p="split",f="length",m="lastIndex",v=4294967295,b=!u(function(){RegExp(v,"y")});a("214f")("split",2,function(t,e,a,u){var g;return g="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[f]||2!="ab"[p](/(?:ab)*/)[f]||4!="."[p](/(.?)(.?)/)[f]||"."[p](/()()/)[f]>1||""[p](/.?/)[f]?function(t,e){var s=String(this);if(void 0===t&&0===e)return[];if(!i(t))return a.call(s,t,e);var n,c,r,o=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,p=void 0===e?v:e>>>0,b=new RegExp(t.source,u+"g");while(n=l.call(b,s)){if(c=b[m],c>d&&(o.push(s.slice(d,n.index)),n[f]>1&&n.index<s[f]&&h.apply(o,n.slice(1)),r=n[0][f],d=c,o[f]>=p))break;b[m]===n.index&&b[m]++}return d===s[f]?!r&&b.test("")||o.push(""):o.push(s.slice(d)),o[f]>p?o.slice(0,p):o}:"0"[p](void 0,0)[f]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,i){var s=t(this),n=void 0==a?void 0:a[e];return void 0!==n?n.call(a,s,i):g.call(String(s),a,i)},function(t,e){var i=u(g,t,this,e,g!==a);if(i.done)return i.value;var l=s(t),h=String(this),p=n(l,RegExp),f=l.unicode,m=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(b?"y":"g"),_=new p(b?l:"^(?:"+l.source+")",m),C=void 0===e?v:e>>>0;if(0===C)return[];if(0===h.length)return null===o(_,h)?[h]:[];var k=0,x=0,w=[];while(x<h.length){_.lastIndex=b?x:0;var y,I=o(_,b?h:h.slice(x));if(null===I||(y=d(r(_.lastIndex+(b?0:x)),h.length))===k)x=c(h,x,f);else{if(w.push(h.slice(k,x)),w.length===C)return w;for(var P=1;P<=I.length-1;P++)if(w.push(I[P]),w.length===C)return w;x=k=y}}return w.push(h.slice(k)),w}]})},"3a06":function(t,e,a){"use strict";a.d(e,"a",function(){return c}),a.d(e,"e",function(){return r}),a.d(e,"c",function(){return o}),a.d(e,"b",function(){return l}),a.d(e,"d",function(){return u});var i=a("8982"),s="/industryParkApi",n="/wx/roadShow";function c(t){return Object(i["a"])({url:s+n+"/add",method:"post",data:t})}function r(t){return Object(i["a"])({url:s+n+"/list",method:"post",data:t})}function o(t){return Object(i["a"])({url:s+n+"/getById",method:"post",data:t})}function l(t){return Object(i["a"])({url:s+n+"/edit",method:"post",data:t})}function u(t){return Object(i["a"])({url:s+n+"/getCompanyById",method:"post",data:t})}},"7f7f":function(t,e,a){var i=a("86cc").f,s=Function.prototype,n=/^\s*function ([^ (]*)/,c="name";c in s||a("9e1e")&&i(s,c,{configurable:!0,get:function(){try{return(""+this).match(n)[1]}catch(t){return""}}})},8982:function(t,e,a){"use strict";a.d(e,"a",function(){return p}),a.d(e,"b",function(){return f});var i=a("795b"),s=a.n(i),n=a("bc3a"),c=a.n(n),r=a("4328"),o=a.n(r),l=a("4360"),u=a("5cab"),d=a("a18c"),h=a("3089");function p(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:o.a.stringify(t.data)};return e&&(a.data=t.data),t.headers&&(a.headers=t.headers),new s.a(function(e,i){c()(a).then(function(t){if(t&&t.data&&200===t.status){var a=t.data;switch(a.errno){case 501:Object(h["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(h["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(h["Toast"])(e),i(e,a)})})}function f(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 s.a(function(a,i){c.a.defaults.withCredentials=!0,c()(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(){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(h["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(h["Toast"])(e),i(e,a)})})}},"93ed":function(t,e,a){"use strict";var i=a("971d"),s=a.n(i);s.a},"971d":function(t,e,a){},a3f7:function(t,e,a){"use strict";var i=a("df0d"),s=a.n(i);s.a},aed7:function(t,e,a){t.exports=a.p+"assets/img/no-result.b05bdcd3.jpg"},b48a:function(t,e,a){"use strict";a.d(e,"a",function(){return c}),a.d(e,"e",function(){return r}),a.d(e,"c",function(){return o}),a.d(e,"b",function(){return l}),a.d(e,"d",function(){return u});var i=a("8982"),s="/industryParkApi",n="/wx/repair";function c(t){return Object(i["a"])({url:s+n+"/add",method:"post",data:t})}function r(t){return Object(i["a"])({url:s+n+"/list",method:"post",data:t})}function o(t){return Object(i["a"])({url:s+n+"/getById",method:"post",data:t})}function l(t){return Object(i["a"])({url:s+n+"/edit",method:"post",data:t})}function u(t){return Object(i["a"])({url:s+n+"/getDispatchToPerson",method:"post",data:t})}},df0d:function(t,e,a){}}]);
|