chunk-087a5cee.875cf252.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-087a5cee"],{"06a8":function(t,a,e){"use strict";var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div")},s=[],n=e("795b"),c=e.n(n),l=(e("7f7f"),e("ac6a"),e("f20c")),r=e("5cab"),o=e("f499"),d=e.n(o),u=e("8982"),h="/industryParkApi",p="/wx/data",f="/wx/public",v="/wx/dictController";function m(t){return Object(u["a"])({url:h+p+"/listBizAll/"+t,method:"post"})}function g(t){return Object(u["a"])({url:h+f+"/listProjectAll",method:"post",data:t})}function b(t){return Object(u["a"])({url:h+v+"/getByCodes",method:"post",data:t})}function _(t){var a={codes:d()(t)};return new c.a(function(t,e){b(a).then(function(a){t(a)}).catch(function(t,a){e(t,a)})})}var C=e("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 a=this;return t||(t=a.dc_key),_(t).then(function(t){t.data&&a.dc_key.forEach(function(e){var i=a.getDictValue(t.data,e,!0);a.dc_data[e]=i,a.dc_map[e]=a.$common.transDcMap(i);var s=a.getDictValue(t.data,e,!1);a.dc_data_no_all[e]=s,a.dc_map_no_all[e]=a.$common.transDcMap(s)})})},initDict2:function(t){var a=this;return t||(t=a.dc_key),_(t).then(function(t){t.data&&a.dc_key.forEach(function(e){var i=a.getDictValue(t.data,e,!1);a.dc_data[e]=i,a.dc_map[e]=a.$common.transDcMap(i);var s=a.getDictValue(t.data,e,!1);a.dc_data_no_all[e]=s,a.dc_map_no_all[e]=a.$common.transDcMap(s)})})},initBiz:function(){var t=this;return this.BizData=[],m(r["a"].uid()).then(function(a){a.data&&a.data.forEach(function(a){var e={label:a.businessName,value:a.id};t.BizData.push(e),t.BizMap[a.id]=a.businessName})}).catch(function(){})},initProjectData:function(){var t=this;return this.ProjectData=[],g(r["a"].uid()).then(function(a){a.data&&a.data.forEach(function(a){var e={label:a.name,value:a.id};t.ProjectData.push(e),t.ProjectMap[e.value]=a})}).catch(function(){})},pagination:function(t){var a=this.currentPage,e=this.pageSize,i=a*e-e,s=a*e;return t.slice(i,s)},getDictValue:function(t,a,e){var i=t[a]?l["a"].castEval(t[a].dictValue):[],s=[];if(i.forEach(function(t){var a={id:t.id,isSearch:t.isSearch,label:t.label,value:t.value,active:!1};s.push(a)}),e){var n={label:"全部",value:"",active:!0};s.unshift(n)}return s},confirm:function(t,a){return new c.a(function(e,i){C["Dialog"].confirm({title:a,message:t}).then(function(t){e(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,a=this;console.log("loadBottom"),setTimeout(function(){a.getData(),t.$refs.loadmore.onBottomLoaded()},500)},imgPreview:function(t){this.dialogImageUrl="/industryParkApi/wx/img/viewImg/"+t,this.dialogImageVisible=!0},imgRemove:function(t,a){var e=a.indexOf(t);a.splice(e,1)},noImg:function(){var t=event.srcElement;t.src=e("aed7"),t.onerror=null}}},y=x,k=e("2877"),T=Object(k["a"])(y,i,s,!1,null,"3fa5b905",null);a["a"]=T.exports},"0fb3":function(t,a,e){t.exports=e.p+"assets/img/shuibiao.a21c14a3.jpeg"},"28a5":function(t,a,e){"use strict";var i=e("aae3"),s=e("cb7c"),n=e("ebd6"),c=e("0390"),l=e("9def"),r=e("5f1b"),o=e("520a"),d=e("79e5"),u=Math.min,h=[].push,p="split",f="length",v="lastIndex",m=4294967295,g=!d(function(){RegExp(m,"y")});e("214f")("split",2,function(t,a,e,d){var b;return b="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,a){var s=String(this);if(void 0===t&&0===a)return[];if(!i(t))return e.call(s,t,a);var n,c,l,r=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,p=void 0===a?m:a>>>0,g=new RegExp(t.source,d+"g");while(n=o.call(g,s)){if(c=g[v],c>u&&(r.push(s.slice(u,n.index)),n[f]>1&&n.index<s[f]&&h.apply(r,n.slice(1)),l=n[0][f],u=c,r[f]>=p))break;g[v]===n.index&&g[v]++}return u===s[f]?!l&&g.test("")||r.push(""):r.push(s.slice(u)),r[f]>p?r.slice(0,p):r}:"0"[p](void 0,0)[f]?function(t,a){return void 0===t&&0===a?[]:e.call(this,t,a)}:e,[function(e,i){var s=t(this),n=void 0==e?void 0:e[a];return void 0!==n?n.call(e,s,i):b.call(String(s),e,i)},function(t,a){var i=d(b,t,this,a,b!==e);if(i.done)return i.value;var o=s(t),h=String(this),p=n(o,RegExp),f=o.unicode,v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(g?"y":"g"),_=new p(g?o:"^(?:"+o.source+")",v),C=void 0===a?m:a>>>0;if(0===C)return[];if(0===h.length)return null===r(_,h)?[h]:[];var x=0,y=0,k=[];while(y<h.length){_.lastIndex=g?y:0;var T,I=r(_,g?h:h.slice(y));if(null===I||(T=u(l(_.lastIndex+(g?0:y)),h.length))===x)y=c(h,y,f);else{if(k.push(h.slice(x,y)),k.length===C)return k;for(var w=1;w<=I.length-1;w++)if(k.push(I[w]),k.length===C)return k;y=x=T}}return k.push(h.slice(x)),k}]})},"3d7b":function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"repair-detail-box"},[e("div",{class:["repair-content","unAcceptance"===t.detailStatus?"fixed-page-content":"page-content"]},[e("div",{staticClass:"white-box page-1"},[e("div",{staticClass:"cell-item"},[e("p",{staticClass:"label"},[t._v("当前企业")]),e("p",{staticClass:"tit"},[t._v(t._s(t.detail.companyName))])]),e("div",{staticClass:"cell-item"},[e("p",{staticClass:"label"},[t._v("您是想")]),e("div",{staticClass:"tit"},[t._v(t._s("1"===t.detail.type?"报事":"咨询"))])]),e("div",{staticClass:"cell-item"},[e("p",{staticClass:"label"},[t._v("快捷选择")]),e("div",{staticClass:"tit"},[t._v(t._s(t.detail.serviceType))])]),e("div",{staticClass:"block-cell-item"},[e("p",{staticClass:"label"},[t._v("报事报修描述")]),e("div",{staticClass:"tit"},[e("div",{staticClass:"textarea"},[t._v(t._s(t.detail.description))])])])]),e("div",{staticClass:"white-box page-2"},[e("div",{staticClass:"cell-item"},[e("p",{staticClass:"label"},[t._v("位置")]),e("div",{staticClass:"tit"},[t._v(t._s("1"===t.detail.position?"室内":"公区"))])]),e("div",{staticClass:"block-cell-item"},[e("p",{staticClass:"label"},[t._v("补充说明")]),e("div",{staticClass:"tit"},[e("ul",{staticClass:"annex-list-box"},t._l(t.explainAnnexList,function(a,i){return e("li",{key:i,staticClass:"annex-item"},["image"===a.type?e("img",{attrs:{src:a.url,alt:""}}):t._e(),"video"===a.type?e("video",{attrs:{src:a.url,width:"100%",height:"100%"}}):t._e()])}),0)])]),e("div",{staticClass:"cell-item flex-item"},[e("p",{staticClass:"label"},[t._v("报事人")]),e("p",{staticClass:"tit tel-box"},[e("span",[t._v(t._s(t.detail.userId))]),e("TelNum",{attrs:{num:t.detail.phone,showTel:!1}})],1)]),e("div",{staticClass:"cell-item"},[e("p",{staticClass:"label"},[t._v("报事时间")]),e("p",{staticClass:"tit"},[t._v(t._s(t.detail.createdAt))])])]),e("div",{staticClass:"white-box page-3 form-part",staticStyle:{"padding-bottom":"120px"}},[t._m(0),e("div",{staticClass:"block-cell-item"},[e("p",{staticClass:"label"},[t._v("处理进展")]),e("div",{staticClass:"tit"},[e("van-steps",{attrs:{active:t.stepActive,"active-color":"#2A3980"}},t._l(t.processSteps,function(a,i){return e("van-step",{key:i},[t._v(t._s(a.label)+"\n\t\t\t\t\t\t\t")])}),1)],1)]),e("div",{staticClass:"cell-item"},[e("p",{staticClass:"label"},[t._v("派单人")]),e("p",{staticClass:"tit"},[t._v(t._s(t.detail.dispatchUserId))])]),e("div",{staticClass:"cell-item"},[e("p",{staticClass:"label"},[t._v("派单时间")]),e("p",{staticClass:"tit"},[t._v(t._s(t.detail.dispatchTime))])]),e("div",{staticClass:"block-cell-item"},[e("p",{staticClass:"label"},[t._v("备注")]),e("div",{staticClass:"tit"},[e("div",{staticClass:"textarea"},[t._v(t._s(t.detail.remark))])])]),e("div",{staticClass:"block-cell-item"},[t._m(1),"acceptance"===t.detail.status?e("div",{staticClass:"tit"},[e("van-uploader",{attrs:{multiple:!0,"max-count":6,"after-read":t.afterRead},model:{value:t.handleUrlList,callback:function(a){t.handleUrlList=a},expression:"handleUrlList"}})],1):e("div",{staticClass:"tit"},[e("ul",{staticClass:"annex-list-box"},t._l(t.processedAnnexList,function(a,i){return e("li",{key:i,staticClass:"annex-item"},["image"===a.type?e("img",{attrs:{src:a.url,alt:""}}):t._e(),"video"===a.type?e("video",{attrs:{src:a.url,width:"100%",height:"100%"}}):t._e()])}),0)])]),e("div",{staticClass:"cell-item"},[e("p",{staticClass:"label"},[t._v("结案人")]),e("p",{staticClass:"tit"},[t._v(t._s(t.detail.handleUserId))])]),e("div",{staticClass:"cell-item"},[e("p",{staticClass:"label"},[t._v("结案时间")]),e("p",{staticClass:"tit"},[t._v(t._s(t.detail.handleTime))])])])]),"acceptance"===t.detail.status?e("div",{staticClass:"repair-bottom bottom-button"},[e("button",{staticClass:"btn",on:{click:t.onConfirm}},[t._v("提交")])]):t._e()])},s=[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"custom-item-tit"},[e("p",{staticClass:"tit"},[t._v("处理情况")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("p",{staticClass:"label"},[t._v("\n\t\t\t\t\t\t处理后拍照"),e("span",{staticClass:"tips"},[t._v("(支持图片/视频上传限20M内,最多6张)")])])}],n=e("795b"),c=e.n(n),l=(e("a481"),e("ac6a"),e("28a5"),e("f499")),r=e.n(l),o=e("f7eb"),d=e("b48a"),u=e("06a8"),h=e("3089"),p=(e("5cab"),e("bc3a")),f=e.n(p),v={components:{TelNum:o["a"]},data:function(){return{dc_key:["QUICK_SELECTION","REPAIR_STATUS"],detailId:"",handleUrlList:[],fileUrls:[],handleUrls:[],detailStatus:"1",explainAnnexList:[{type:"image",url:e("0fb3")}],processedAnnexList:[{type:"image",url:e("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:[],params:{id:"",handleUrl:"",handleTime:"",status:"processed"}}},mixins:[u["a"]],mounted:function(){var t=this;this.id=this.$route.params.id,this.initDict(this.dc_key).then(function(a){t.getDetailById()})},methods:{onSelect:function(t){this.value=t.text,this.params.handleUserId=t.value+"-"+t.text,this.showPicker=!1},onConfirm:function(t){var a=this;this.params.id=this.id,this.params.handleTime=this.detail.handleTime,this.params.handleUrl=r()(this.handleUrls),Object(d["b"])(this.params).then(function(t){h["Toast"].success("结案成功"),a.$router.push({path:"/repairprocessing-app"})})},getDetailById:function(){var t=this,a=this;Object(d["c"])({id:a.id}).then(function(e){if(console.log(e.data),e.data){var i=a.getItemJson(e.data);if(t.detail=i,t.explainAnnexList=i.fileUrlList,t.processedAnnexList=i.handleUrlList,t.detailStatus=i.status,i.userId){var s=i.userId.split("-");t.detail.userId=s[1]+"-"+s[2]}if(i.dispatchUserId){var n=i.dispatchUserId.split("-");t.detail.dispatchUserId=n[1]+"-"+n[2]}if(i.handleUserId){var c=i.handleUserId.split("-");t.detail.handleUserId=c[1]+"-"+c[2]}t.params.remark=i.remark}})},getItemJson:function(t){switch(t.releaseTime=this.$common.transDate(t.releaseTime),t.dispatchTime=this.$common.transServDate(t.dispatchTime),t.createdAt=this.$common.transDate(t.createdAt),t.serviceType=this.dc_map.QUICK_SELECTION[t.serviceType],t.userId&&(t.phone=t.userId.split("-")[1]),t.handleUserId&&(t.handlePhone=t.handleUserId.split("-")[1]),t.handleTime||(t.handleTime=this.$common.transServDate(new Date)),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 a=this.$common.castEval(t.fileUrl),e=[];null!==a&&a.length>0&&a.forEach(function(t){if(t.url){var a={type:"image",url:t.url.replace("/server","/industryParkApi")};e.push(a)}}),t.fileUrlList=e;var i=this.$common.castEval(t.handleUrl),s=[];return null!==i&&i.length>0&&i.forEach(function(t){if(t.url){var a={type:"image",url:t.url.replace("/server","/industryParkApi")};s.push(a)}}),t.handleUrlList=s,t},afterRead:function(t){var a=this;t instanceof Array?t.map(function(t){a.uploadImg(t)}):this.uploadImg(t)},beforeDelete:function(t,a){var e=this;return e.handleUrls.splice(a.index,1),function(t,i){var s=i.index;e.handleUrls[a.index].splice(s,1)}},uploadImg:function(t){var a=this,e=new FormData;e.append("file",t.file),console.log(e.get("file"));var i={headers:{"Content-Type":"multipart/form-data","MVVM-Key":String((new Date).getTime()),xx:"anything"}};return new c.a(function(t,s){f.a.post("/industryParkApi/wx/fileController/upload",e,i).then(function(t){var e=t.data.data.substring(1,t.data.data.length);e=e.substring(0,e.length-1),a.handleUrls.push(a.$common.castEval(e))}).catch(function(t,a){s(t,a)})})}}},m=v,g=(e("e90c"),e("2877")),b=Object(g["a"])(m,i,s,!1,null,"0189353c",null);a["default"]=b.exports},"7f7f":function(t,a,e){var i=e("86cc").f,s=Function.prototype,n=/^\s*function ([^ (]*)/,c="name";c in s||e("9e1e")&&i(s,c,{configurable:!0,get:function(){try{return(""+this).match(n)[1]}catch(t){return""}}})},"80f3":function(t,a,e){},8982:function(t,a,e){"use strict";e.d(a,"a",function(){return p}),e.d(a,"b",function(){return f});var i=e("795b"),s=e.n(i),n=e("bc3a"),c=e.n(n),l=e("4328"),r=e.n(l),o=e("4360"),d=e("5cab"),u=e("a18c"),h=e("3089");function p(t,a){t.headers||(t.headers={}),t.headers&&d["a"].getToken()&&(t.headers["RC-Token"]=d["a"].getToken());var e={method:t.method,url:t.url,data:r.a.stringify(t.data)};return a&&(e.data=t.data),t.headers&&(e.headers=t.headers),new s.a(function(a,i){c()(e).then(function(t){if(t&&t.data&&200===t.status){var e=t.data;switch(e.errno){case 501:Object(h["Toast"])(e.errmsg),setTimeout(function(){o["a"].dispatch("user/logout").then(function(){u["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(a,e){console.log(t.url+" fail",a,e),Object(h["Toast"])(a),i(a,e)})})}function f(t){t.headers||(t.headers={}),t.headers&&d["a"].getToken()&&(t.headers["RC-Token"]=d["a"].getToken());var a={method:t.method,url:t.url};return a.data=t.data,t.headers&&(a.headers=t.headers,a.headers["MVVM-Key"]=String((new Date).getTime()),a.headers["xx"]="anything",a.headers["Content-Type"]="application/json;charset=UTF-8"),console.log("request: ",t),new s.a(function(e,i){c.a.defaults.withCredentials=!0,c()(a).then(function(t){if(console.log("response:",t),t&&t.data&&200===t.status){var a=t.data;switch(a.errno){case 501:Object(h["Toast"])(a.errmsg),setTimeout(function(){o["a"].dispatch("user/logout").then(function(){u["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(a,e){console.log(t.url+" fail",a,e),Object(h["Toast"])(a),i(a,e)})})}},aed7:function(t,a,e){t.exports=e.p+"assets/img/no-result.b05bdcd3.jpg"},b48a:function(t,a,e){"use strict";e.d(a,"a",function(){return c}),e.d(a,"e",function(){return l}),e.d(a,"c",function(){return r}),e.d(a,"b",function(){return o}),e.d(a,"d",function(){return d});var i=e("8982"),s="/industryParkApi",n="/wx/repair";function c(t){return Object(i["a"])({url:s+n+"/add",method:"post",data:t})}function l(t){return Object(i["a"])({url:s+n+"/list",method:"post",data:t})}function r(t){return Object(i["a"])({url:s+n+"/getById",method:"post",data:t})}function o(t){return Object(i["a"])({url:s+n+"/edit",method:"post",data:t})}function d(t){return Object(i["a"])({url:s+n+"/getDispatchToPerson",method:"post",data:t})}},e90c:function(t,a,e){"use strict";var i=e("80f3"),s=e.n(i);s.a}}]);