detail.js 7.0 KB

12
  1. require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/subPackages/repairDispatch-app/detail"],{160:function(e,t,n){"use strict";(function(e,t){var a=n(4);n(26),n(27);a(n(25));var i=a(n(161));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},161:function(e,t,n){"use strict";n.r(t);var a=n(162),i=n(164);for(var s in i)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(s);n(166),n(168);var r,o=n(46),c=Object(o["default"])(i["default"],a["render"],a["staticRenderFns"],!1,null,null,null,!1,a["components"],r);c.options.__file="pages/subPackages/repairDispatch-app/detail.vue",t["default"]=c.exports},162:function(e,t,n){"use strict";n.r(t);var a=n(163);n.d(t,"render",(function(){return a["render"]})),n.d(t,"staticRenderFns",(function(){return a["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return a["recyclableRender"]})),n.d(t,"components",(function(){return a["components"]}))},163:function(e,t,n){"use strict";var a;n.r(t),n.d(t,"render",(function(){return i})),n.d(t,"staticRenderFns",(function(){return r})),n.d(t,"recyclableRender",(function(){return s})),n.d(t,"components",(function(){return a}));try{a={uniEasyinput:function(){return n.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(n.bind(null,472))}}}catch(o){if(-1===o.message.indexOf("Cannot find module")||-1===o.message.indexOf(".vue"))throw o;console.error(o.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){return e.onSelect(t)},e.e1=function(t){e.showPicker=!1})},s=!1,r=[];i._withStripped=!0},164:function(e,t,n){"use strict";n.r(t);var a=n(165),i=n.n(a);for(var s in a)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(s);t["default"]=i.a},165:function(e,t,n){"use strict";(function(e){var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(29)),s=a(n(32)),r=n(67),o=function(){n.e("common/vendor").then(function(){return resolve(n(479))}.bind(null,n)).catch(n.oe)},c=function(){n.e("common/vendor").then(function(){return resolve(n(486))}.bind(null,n)).catch(n.oe)},u=function(){n.e("pages/subPackages/components/tel-number/index").then(function(){return resolve(n(443))}.bind(null,n)).catch(n.oe)},l={components:{TelNum:u,vanPopup:o,vanRate:c},data:function(){return{dic_key:["QUICK_SELECTION","REPAIR_STATUS"],dic_SelectList:{},detailId:"",value:"",showPicker:!1,columns:[],detailStatus:"unAcceptance",explainAnnexList:[{type:"image",url:""}],processedAnnexList:[{type:"image",url:""}],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:[],pingParams:{id:"",evaluateNum:"",score:""},userId2:"",params:{id:"",status:"acceptance",dispatchUserId:(0,r.getUserLocalStorageInfo)().user.id+"-"+(0,r.getUserLocalStorageInfo)().user.truename+"-"+(0,r.getUserLocalStorageInfo)().user.phone,dispatchTime:this.$common.transServDate(new Date),handleUserId:"",remark:""}}},onLoad:function(e){var t=this;console.log(e),this.id=e.id,this.getByCodes(),(0,r.getDispatchToPerson)({groupId:""}).then((function(e){t.columns=e.data}))},methods:{lookLookpng:function(t,n){console.log(t),e.previewImage({urls:t,longPressActions:{itemList:["发送给朋友","保存图片","收藏"],success:function(e){console.log(e)},fail:function(e){console.log(e)}}})},openPicker:function(){this.showPicker=!0},closePicker:function(){this.showPicker=!1},getByCodes:function(){var e=this;return(0,s.default)(i.default.mark((function t(){var n;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:n=t.sent,e.dic_SelectList=e.$common.handleDicList(n),e.getDetailById();case 5:case"end":return t.stop()}}),t)})))()},onSelect:function(e){var t=e.detail.value;this.value=t.text,this.params.handleUserId=t.value+"-"+t.text,this.showPicker=!1},onPinConfirm:function(t){var n=this;this.pingParams.evaluateNum=this.pingParams.evaluateNum+1,this.pingParams.score=this.pingParams.score+this.evaluateVal,this.pingParams.status="evaluated",(0,r.editRepair)(this.pingParams).then((function(t){n.$showToast("评价成功"),e.navigateBack({})}))},onConfirm:function(){var t=this,n=this;null!=n.params.handleUserId&&""!==n.params.handleUserId?(this.params.id=n.id,n.params.updatedBy=(0,r.getUserLocalStorageInfo)().user.id,(0,r.editRepair)(n.params).then((function(n){t.$showToast("派单成功"),e.navigateBack({})}))):this.$showToast("请选择处理人")},open:function(t,n){var a=this,i=a.detail.fileUrlViewList.map((function(e){return e.url}));e.previewImage({urls:i})},getDetailById:function(){var e=this,t=this;(0,r.getRepairDispatchById)(t.id).then((function(n){if(n.data){var a=t.getItemJson(n.data);if(e.detail=a,e.explainAnnexList=a.fileUrlViewList,e.processedAnnexList=a.handleUrlList,e.detailStatus=a.status,e.params.handleUserId=a.handleUserId,e.value=a.dispatchUserId,null!=a.handleUserId&&""!==a.handleUserId){var i=a.handleUserId.split("-");e.value=i[1]+"-"+i[2]}if(null!=a.userId&&""!==a.userId){var s=a.userId.split("-");e.userId2=s[1]+"-"+s[2]}e.params.remark=a.remark,e.pingParams={id:a.id,evaluateNum:a.evaluateNum,score:a.score}}}))},getRate:function(e){this.evaluateVal=e},getItemJson:function(e){var t=this;switch(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}var n=e.fileUrl?e.fileUrl.split(","):[];console.log("files你到底是干嘛的",n);var a=[];null!==n&&n.length>0&&n.forEach((function(e){e=t.$constant.BASE_URI+"/wx/fileController/download/"+e,a.push(e)})),e.fileUrlViewList=a;var i=e.handleUrl?e.handleUrl.split(","):[];console.log(i);var s=[];return null!==i&&i.length>0&&i.forEach((function(e){if(e.url){var t={type:"image",url:e.url};s.push(t)}})),e.handleUrlList=s,console.log(e),e},quickSelect:function(e){this.quickSleced.val&&this.quickSleced.val===e.val?this.quickSleced={}:this.quickSleced=e},afterRead:function(e){console.log(e)}}};t.default=l}).call(this,n(2)["default"])},166:function(e,t,n){"use strict";n.r(t);var a=n(167),i=n.n(a);for(var s in a)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(s);t["default"]=i.a},167:function(e,t,n){},168:function(e,t,n){"use strict";n.r(t);var a=n(169),i=n.n(a);for(var s in a)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(s);t["default"]=i.a},169:function(e,t,n){}},[[160,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/subPackages/repairDispatch-app/detail.js.map