1 |
- require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/subPackages/repairprocessing-app/detail"],{"0f84":function(e,t,a){"use strict";a.r(t);var n=a("b9fd"),i=a("9f5a");for(var s in i)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(s);a("55fc"),a("38b2");var l=a("f0c5"),r=Object(l["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);t["default"]=r.exports},"301a":function(e,t,a){},"38b2":function(e,t,a){"use strict";var n=a("301a"),i=a.n(n);i.a},"498c":function(e,t,a){"use strict";(function(e,t){var n=a("4ea4");a("1416"),a("4a2a");n(a("66fd"));var i=n(a("0f84"));e.__webpack_require_UNI_MP_PLUGIN__=a,t(i.default)}).call(this,a("bc2e")["default"],a("543d")["createPage"])},"55fc":function(e,t,a){"use strict";var n=a("9d97"),i=a.n(n);i.a},"9d97":function(e,t,a){},"9f5a":function(e,t,a){"use strict";a.r(t);var n=a("c0bc"),i=a.n(n);for(var s in n)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(s);t["default"]=i.a},b9fd:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){}));var n=function(){var e=this.$createElement;this._self._c},i=[]},c0bc:function(e,t,a){"use strict";(function(e){var n=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(a("2eee")),s=n(a("448a")),l=n(a("c973")),r=a("7982"),o={components:{TelNum:function(){a.e("pages/subPackages/components/tel-number/index").then(function(){return resolve(a("17c5"))}.bind(null,a)).catch(a.oe)},vanRate:function(){a.e("common/vendor").then(function(){return resolve(a("ae8c"))}.bind(null,a)).catch(a.oe)}},data:function(){return{handleUserId2:"",userId2:"",dispatchUserId2:"",dic_key:["QUICK_SELECTION","REPAIR_STATUS"],dic_SelectList:{},detailId:"",handleUrlList:[],fileUrls:[],handleUrls:[],detailStatus:"1",explainAnnexList:[],processedAnnexList:[],stepActive:0,processSteps:[{id:1,status:1,text:"上报"},{id:2,status:1,text:"已受理"},{id:3,status:1,text:"已处理"},{id:4,status:0,text:"评价"}],evaluateVal:0,id:"",detail:{},fileUrlList:[],params:{id:"",handleUrl:"",handleTime:"",status:"processed"}}},onLoad:function(e){this.id=e.id,this.getByCodes()},methods:{getByCodes:function(){var e=this;return(0,l.default)(i.default.mark((function t(){var a;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,r.getByCodes)(JSON.stringify(e.dic_key));case 2:a=t.sent,e.dic_SelectList=e.$common.handleDicList(a),e.getDetailById();case 5:case"end":return t.stop()}}),t)})))()},onSelect:function(e){this.value=e.text,this.params.handleUserId=e.value+"-"+e.text,this.showPicker=!1},onConfirm:function(t){var a=this;this.params.id=this.id,this.params.handleTime=this.detail.handleTime;var n=[];this.handleUrlList&&this.handleUrlList.length>0&&(n=this.handleUrlList.map((function(e){return e.id}))),this.params.updatedBy=(0,r.getUserLocalStorageInfo)().user.id,this.params.handleUrl=n.join(","),(0,r.editRepair)(this.params).then((function(t){a.$showToast("结案成功"),e.navigateBack({})}))},getDetailById:function(){var e=this,t=this;(0,r.getRepairDispatchById)(t.id).then((function(a){if(console.log(a.data),a.data){var n=t.getItemJson(a.data);if(e.detail=n,null!=n.userId&&""!==n.userId){var i=n.userId.split("-");e.detail.phone=i[2],e.userId2=i[1]+"-"+i[2]}if(null!=n.dispatchUserId&&""!==n.dispatchUserId){var s=n.dispatchUserId.split("-");console.log(s),e.dispatchUserId2=s[1]+"-"+s[2]}if(null!=n.handleUserId&&""!==n.handleUserId){var l=n.handleUserId.split("-");console.log(l),e.handleUserId2=l[1]+"-"+l[2]}e.handleUrlList=n.handleUrlList,console.log("asodmqowndonq",e.handleUrlList),e.explainAnnexList=n.fileUrlViewList,e.detailStatus=n.status,e.params.remark=n.remark}}))},getItemJson:function(e){var t=this,a=e.fileUrl?e.fileUrl.split(","):[],n=[];null!==a&&a.length>0&&a.forEach((function(e){e=t.$constant.BASE_URI+"/wx/fileController/download/"+e,n.push(e)})),e.fileUrlViewList=n,e.handleTime||(e.handleTime=this.$common.transServDate(new Date));var i=e.handleUrl?e.handleUrl.split(","):[],s=[];switch(null!==i&&i.length>0&&i.forEach((function(e){s.push({url:t.$constant.BASE_URI+"/wx/fileController/download/"+e,isImage:!0})})),e.handleUrlList=s,console.log(e),e.serviceType=this.dic_SelectList.QUICK_SELECTION[e.serviceType-1].label,e.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}return e},afterRead:function(t){var a=this,n=t.detail.file;try{e.uploadFile({url:a.$constant.BASE_URI+"/wx/fileController/upload",filePath:n.url,name:"file",formData:{user:"test"},success:function(e){var t=JSON.parse(e.data),n=t.data;console.log(n[0]),a.handleUrlList.push({id:n[0],url:a.$constant.BASE_URI+"/FileController/download/"+n[0],isImage:!0}),a.handleUrlList=(0,s.default)(a.handleUrlList),a.$forceUpdate(),console.log(a.fileUrlList)},fail:function(e){}})}catch(i){}},beforeDelete:function(e,t){var a=this;return a.handleUrls.splice(t.index,1),function(e,n){var i=n.index;a.handleUrls[t.index].splice(i,1)}},uploadImg:function(e){var t=this,a=new FormData;a.append("file",e.file),console.log(a.get("file"));var n={headers:{"Content-Type":"multipart/form-data","MVVM-Key":String((new Date).getTime()),xx:"anything"}};return new Promise((function(e,i){axios.post("/smartParkH5Server/wx/fileController/upload",a,n).then((function(e){var a=e.data.data.substring(1,e.data.data.length);a=a.substring(0,a.length-1),t.handleUrls.push(t.$common.castEval(a))})).catch((function(e,t){i(e,t)}))}))}}};t.default=o}).call(this,a("543d")["default"])}},[["498c","common/runtime","common/vendor"]]]);
|