王总上门按摩后台代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
shangmenanmo/public/h6/static/js/technician-pages-order-list...

1 lines
24 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["technician-pages-order-list"],{"0918":function(e,t,n){"use strict";n.r(t);var i=n("436a"),a=n("516d");for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);var o=n("828b"),s=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"bb5b0fbc",null,!1,i["a"],void 0);t["default"]=s.exports},"436a":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var i=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view",{staticClass:"recorder"})},a=[]},"516d":function(e,t,n){"use strict";n.r(t);var i=n("9772"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=a.a},"6e6c":function(e,t,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("c223"),n("e966"),n("5c47"),n("a1c1"),n("4626"),n("dd2b"),n("aa9c"),n("bd06");var a=i(n("5de6")),r=i(n("9b1b")),o=i(n("2634")),s=i(n("2fdc")),c=n("8f59"),l=i(n("0918")),u={components:{MumuRecorder:l.default},data:function(){return{options:{},activeIndex:0,tabList:[{title:"待接单",id:2,number:0},{title:"待服务",id:5,number:0},{title:"服务中",id:6,number:0},{title:"已完成",id:7,number:0}],statusType:{2:"待接单",3:"已接单",4:"已出发",5:"已到达",6:"服务中",7:"已完成",8:"待转单"},param:{page:1,pay_type:0},list:{data:[]},loading:!0,index:-1,coach_refund_text:"",lockTap:!1,popupInfo:{title:"",index:"",type:"",param:{},imgs:[],location:{lat:0,lng:0,address:""}},unix_list:[]}},computed:(0,c.mapState)({primaryColor:function(e){return e.config.configInfo.primaryColor},subColor:function(e){return e.config.configInfo.subColor},configInfo:function(e){return e.config.configInfo},recorder:function(e){return e.order.recorder},recorder_status:function(e){return e.order.recorder_status},recorder_order_id:function(e){return e.order.recorder_order_id}}),onLoad:function(e){var t=this;return(0,s.default)((0,o.default)().mark((function n(){var i,a;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:t.options=e,i=e.tab,a=void 0===i?0:i,t.activeIndex=a,t.initIndex();case 4:case"end":return n.stop()}}),n)})))()},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:(0,r.default)((0,r.default)((0,r.default)({},(0,c.mapActions)(["getConfigInfo","getCoachInfo","toPlayAudio"])),(0,c.mapMutations)(["updateOrderItem"])),{},{initIndex:function(){var e=arguments,t=this;return(0,s.default)((0,o.default)().mark((function n(){var i;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=e.length>0&&void 0!==e[0]&&e[0],i||!t.$jweixin.isWechat()){n.next=5;break}return n.next=4,t.$jweixin.initJssdk();case 4:t.$jweixin.wxReady((function(){t.$jweixin.hideOptionMenu()}));case 5:if(t.configInfo.id&&!i){n.next=8;break}return n.next=8,t.getConfigInfo();case 8:return n.next=10,t.getList();case 10:if(t.$util.setNavigationBarColor({bg:t.primaryColor}),!i){n.next=13;break}return n.abrupt("return");case 13:case"end":return n.stop()}}),n)})))()},initRefresh:function(){uni.pageScrollTo({duration:0,scrollTop:0}),this.param.page=1,this.initIndex(!0)},getList:function(){var e=arguments,t=this;return(0,s.default)((0,o.default)().mark((function n(){var i,a,r,s,c,l;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=e.length>0&&void 0!==e[0]&&e[0],a=t.list,r=t.param,s=t.tabList,c=t.activeIndex,r.pay_type=s[c].id,n.next=5,t.$api.technician.orderList(r);case 5:l=n.sent,i||(1==t.param.page||(l.data=a.data.concat(l.data)),t.list=l),t.tabList[0].number=l.agent_order_count,t.tabList[1].number=l.wait_order_count,t.tabList[2].number=l.service_order_count,t.loading=!1,t.$util.hideAll();case 12:case"end":return n.stop()}}),n)})))()},handerTabChange:function(e){this.activeIndex=e,this.$util.showLoading(),this.param.page=1,this.getList()},handlerOnChanger:function(){var e=this;return(0,s.default)((0,o.default)().mark((function t(){var n;return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=e.recorder_status,e.duration_time,n?e.$refs.recorder.stop():e.$refs.recorder.start(),e.updateOrderItem({key:"recorder_status",val:!n});case 3:case"end":return t.stop()}}),t)})))()},handlerOnEnd:function(){var e=this;return(0,s.default)((0,o.default)().mark((function t(){return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$refs.recorder.stop(),setTimeout((function(){e.handlerOnSave()}),200),e.updateOrderItem({key:"recorder_status",val:!1});case 3:case"end":return t.stop()}}),t)})))()},handlerOnSave:function(){var e=arguments,t=this;return(0,s.default)((0,o.default)().mark((function n(){var i,a,r,s,c,l,u;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.length>0&&void 0!==e[0]?e[0]:{},"",a=parseInt((new Date).getTime()/1e3),r="服务过程录音-".concat(a,".mp3"),s=t.recorder.localUrl,i=s,n.next=8,t.$api.base.uploadFile({filePath:i,formData:{type:"audio",name:r}});case 8:return c=n.sent,l=c.attachment_path,u=t.recorder_order_id,n.next=13,t.$api.technician.recordingAdd({order_id:u,link:l});case 13:t.updateOrderItem({key:"recorder_order_id",val:0}),t.$refs.recorder.chunks=[];case 15:case"end":return n.stop()}}),n)})))()},handlerSuccess:function(e){this.updateOrderItem({key:"recorder",val:e})},handlerError:function(e){switch(e){case"101":uni.showModal({content:"当前浏览器版本较低,请更换浏览器使用,推荐在微信中打开。"});break;case"201":uni.showModal({content:"麦克风权限被拒绝,请刷新页面后授权麦克风权限。"});break;default:uni.showModal({content:"未知错误,请刷新页面重试"});break}},toCountDownEnd:function(e){var t=this.recorder_status,n=this.recorder_order_id;n==e&&t&&this.handlerOnEnd()},toRefuse:function(e){var t=this;return(0,s.default)((0,o.default)().mark((function n(){return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:t.index=e,t.coach_refund_text="",t.$refs.refuse_item.open();case 3:case"end":return n.stop()}}),n)})))()},confirmRefuse:function(){var e=this;return(0,s.default)((0,o.default)().mark((function t(){var n,i;return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.coach_refund_text,n=n.length>0?n.replace(/(^\s*)|(\s*$)/g,""):"",0!=n.length){t.next=5;break}return e.$util.showToast({title:"请输入拒单原因"}),t.abrupt("return");case 5:e.coach_refund_text=e.coach_refund_text.substring(0,200),i=e.index,e.toConfirm(i,-1);case 8:case"end":return t.stop()}}),t)})))()},toGetLocation:function(){var e=this;return(0,s.default)((0,o.default)().mark((function t(){var n,i,a,r,s,c,l,u,d,f,p,v,h,_,m,g,w,b;return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.popupInfo,i=n.lat,a=void 0===i?0:i,r=n.lng,s=void 0===r?0:r,c=n.address,l=void 0===c?"":c,!(a&&s&&l)){t.next=3;break}return t.abrupt("return");case 3:if(!e.$jweixin.isWechat()){t.next=25;break}return e.$util.showLoading(),t.next=7,e.$jweixin.wxReady2();case 7:return t.next=9,e.$jweixin.getWxLocation();case 9:if(u=t.sent,d=u.latitude,f=void 0===d?0:d,p=u.longitude,v=void 0===p?0:p,f){t.next=18;break}return e.$util.hideAll(),e.$util.showToast({title:"请授权定位当前地址"}),t.abrupt("return");case 18:if(!f||!v){t.next=25;break}return h="".concat(f,",").concat(v),t.next=22,e.$api.base.getMapInfo({location:h});case 22:_=t.sent,m=JSON.parse(_),g=m.status,w=m.result,0==g&&(e.$util.hideAll(),b=w.address,e.popupInfo.location={lat:f,lng:v,address:b});case 25:case"end":return t.stop()}}),t)})))()},imgUpload:function(e){var t=e.imagelist,n=e.imgtype;this.popupInfo[n]=t},confirmOper:function(){var e=this.$util.deepCopy(this.popupInfo),t=e.index,n=e.type,i=e.param,a=e.imgs,r=e.location,o=r.lat,s=void 0===o?0:o,c=r.lng,l=void 0===c?0:c,u=r.address,d=void 0===u?"":u;if([5,7].includes(n)&&0===a.length)this.$util.showToast({title:"请先拍照"});else if(s||l||d){if([5,7].includes(n)){var f=a[0].path;r.path=f}this.toConfirmUpdate(t,n,i,r)}else this.$util.showToast({title:"请先获取当前定位地址"})},toConfirm:function(e,t){var n=this;return(0,s.default)((0,o.default)().mark((function i(){var a,r,s,c;return(0,o.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a=n.list.data[e].id,r={order_id:a,type:t},-1==t&&(r.coach_refund_text=n.coach_refund_text),![4,5,7].includes(t)){i.next=12;break}return s={4:"确认出发",5:"确认到达",7:"确认完成"},c=s[t],n.popupInfo=Object.assign({},n.popupInfo,{title:c,index:e,type:t,param:r,imgs:[],location:{lat:0,lng:0,address:""}}),i.next=9,n.toGetLocation();case 9:n.$refs.oper_item.open(),i.next=13;break;case 12:n.toConfirmUpdate(e,t,r);case 13:case"end":return i.stop()}}),i)})))()},toConfirmUpdate:function(e,t,n){var i=arguments,r=this;return(0,s.default)((0,o.default)().mark((function s(){var c,l,u,d,f,p,v,h,_,m,g,w,b,x,C,y,k,$,I,E,T,O,P,L,R;return(0,o.default)().wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(c=i.length>3&&void 0!==i[3]?i[3]:{},[4,5,7].includes(t)&&(l=c.lat,u=c.lng,d=c.address,f=c.path,4===t&&(n.serout_lat=l,n.serout_lng=u,n.serout_address=d),5==t&&(n.arrive_img=f,n.arr_lat=l,n.arr_lng=u,n.arr_address=d),7==t&&(n.end_img=f,n.end_lat=l,n.end_lng=u,n.end_address=d)),p={"-1":"已拒绝接单",3:"接单成功",4:"已成功出发",5:"已成功到达",6:"已开始服务",7:"服务已完成"},!r.lockTap){o.next=5;break}return o.abrupt("return");case 5:if(r.lockTap=!0,r.$util.showLoading(),v=r.configInfo,h=v.plugAuth,_=v.service_recording_show,m=h.recording,g=r.recorder_order_id,w=r.recorder_status,b=!0,6!==t||!g||!w){o.next=19;break}return o.next=14,uni.showModal({title:"提示",content:"已有开始的服务还未结束录音,请确认是否完成录音并开始新的服务?"});case 14:x=o.sent,C=(0,a.default)(x,2),C[0],y=C[1].confirm,y?r.handlerOnEnd():b=!1;case 19:if(b){o.next=23;break}return r.lockTap=!1,r.$util.hideAll(),o.abrupt("return");case 23:return k=n.order_id,o.prev=24,o.next=27,r.$api.technician.updateOrder(n);case 27:if(-1==t&&r.$refs.refuse_item.close(),[4,5,7].includes(t)&&r.$refs.oper_item.close(),r.$util.showToast({title:p[t]}),4!=t&&5!=t){o.next=34;break}r.list.data[e].pay_type=t,o.next=38;break;case 34:if(r.list.data.splice(e,1),7!=t){o.next=38;break}return o.next=38,r.getCoachInfo();case 38:if(r.lockTap=!1,r.$util.hideAll(),6!=t){o.next=57;break}if(r.toPlayAudio({key:"service_start_recording"}),!m||!_){o.next=50;break}return o.next=45,uni.showModal({title:"提示",content:"服务过程将自动录音,直至服务结束!",showCancel:!1,confirmText:"知道了"});case 45:$=o.sent,I=(0,a.default)($,2),I[0],E=I[1].confirm,E&&(r.handlerOnChanger(),r.updateOrderItem({key:"recorder_order_id",val:k}));case 50:return o.next=52,r.$api.technician.orderInfo({id:k});case 52:T=o.sent,O=T.time_long,P=T.start_service_time,L=r.$util.DateToUnix(P)+60*O,r.unix_list.push({id:k,time_long:O,start_service_time:P,start_service_time_unix:L});case 57:return 7==t&&(g==k&&w&&r.handlerOnEnd(),R=r.unix_list.findIndex((function(e){return e.id==k})),-1!==R&&r.unix_list.splice(R,1)),o.next=60,r.getList(!0);case 60:o.next=66;break;case 62:return o.prev=62,o.t0=o["catch"](24),setTimeout((function(){r.lockTap=!1,r.$util.hideAll()}),2e3),o.abrupt("return");case 66:case"end":return o.stop()}}),s,null,[[24,62]])})))()},toShield:function(e){this.index=e,this.$refs.shield_item.open()},confirmShield:function(){var e=this;return(0,s.default)((0,o.default)().mark((function t(){var n,i;return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.index,!e.lockTap){t.next=3;break}return t.abrupt("return");case 3:return e.lockTap=!0,e.$util.showLoading(),i=e.list.data[n].user_id,t.prev=6,t.next=9,e.$api.technician.shieldUserAdd({user_id:i});case 9:e.lockTap=!1,e.$util.hideAll(),e.$refs.shield_item.close(),e.$util.showToast({title:"屏蔽成功"}),e.initRefresh(),t.next=19;break;case 16:t.prev=16,t.t0=t["catch"](6),setTimeout((function(){e.lockTap=!1,e.$util.hideAll()}),2e3);case 19:case"end":return t.stop()}}),t,null,[[6,16]])})))()},toTel:function(e){var t=this;return(0,s.default)((0,o.default)().mark((function n(){var i,a;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=t.list.data[e].id,n.next=3,t.$api.technician.getVirtualPhone({order_id:i});case 3:a=n.sent,t.$util.goUrl({url:a,openType:"call"});case 5:case"end":return n.stop()}}),n)})))()},goDetail:function(e){var t=this.list.data[e].id,n="/technician/pages/order/detail?id=".concat(t);this.$util.goUrl({url:n})}})};t.default=u},9772:function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("5ef2"),n("bf0f"),n("2797"),n("aa9c"),n("18f7"),n("de6c"),n("dc89"),n("2425"),n("c9b5"),n("ab80"),n("dd2b"),n("e838");var i={data:function(){return{isUserMedia:!1,stream:null,audio:null,recorder:null,chunks:[],startTime:0}},mounted:function(){if(-1===origin.indexOf("https"))throw this.$emit("error","100"),"请在 https 环境中使用本插件。";if(!navigator.mediaDevices||!window.MediaRecorder)throw this.$emit("error","101"),"当前浏览器不支持";this.getRecorderManager()},methods:{getRecorderManager:function(){var e=this;this.audio=document.createElement("audio"),navigator.mediaDevices.getUserMedia({audio:!0}).then((function(t){e.isUserMedia=!0,t.getTracks().forEach((function(e){e.stop()}))})).catch((function(t){e.onErrorHandler(t)}))},start:function(){var e=this;if(!this.isUserMedia)return console.log("设备不支持");navigator.mediaDevices.getUserMedia({audio:!0}).then((function(t){e.startTime=(new Date).getTime(),e.stream=t,e.recorder=new MediaRecorder(t),e.recorder.ondataavailable=e.getRecordingData,e.recorder.onstop=e.saveRecordingData,e.recorder.start()})).catch((function(t){e.onErrorHandler(t)}))},stop:function(){this.recorder.stop(),this.stream.getTracks().forEach((function(e){e.stop()}))},getRecordingData:function(e){this.chunks.push(e.data)},saveRecordingData:function(){var e=new Blob(this.chunks,{type:"audio/mpeg"}),t=URL.createObjectURL(e),n=(new Date).getTime(),i=(n-this.startTime).toString().split("");i.splice(i.length-2),i.splice(i.length-1,0,"."),i=parseFloat(i.join(""));var a={data:e,duration:i,localUrl:t};this.$emit("success",a)},onErrorHandler:function(e){if(console.log(e,"========onErrorHandler"),"NotAllowedError"===e.name)throw this.$emit("error","201"),"用户拒绝了当前的浏览器实例的访问请求";if("NotReadableError"===e.name)throw this.$emit("error","101"),"当前浏览器不支持";throw this.$emit("error","500"),"调用失败,原因不详"}},destroyed:function(){this.stop()},clear:function(){}};t.default=i},dd1a:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var i={mumuRecorder:n("0918").default},a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"order-pages"},[n("v-uni-view",{staticClass:"fix",staticStyle:{top:"-100%",left:"-100%"}},e._l(e.unix_list,(function(t,i){return n("min-countdown",{key:i,attrs:{targetTime:1e3*t.start_service_time_unix,isPlay:!0},on:{end:function(n){arguments[0]=n=e.$handleEvent(n),e.toCountDownEnd(t.id)}}})})),1),n("fixed",[n("tab",{attrs:{list:e.tabList,activeIndex:1*e.activeIndex,activeColor:e.primaryColor,width:100/e.tabList.length+"%",height:"100rpx"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.handerTabChange.apply(void 0,arguments)}}}),n("v-uni-view",{staticClass:"b-1px-b"})],1),e._l(e.list.data,(function(t,i){return n("v-uni-view",{key:i,staticClass:"item-child mt-md ml-lg mr-lg pd-lg fill-base radius-16 rel",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.goDetail(i)}}},[t.is_add?n("v-uni-view",[n("v-uni-view",{staticClass:"bell-tag flex-center f-icontext c-base abs",style:{background:e.primaryColor}},[e._v("加钟服务")]),n("v-uni-view",{staticClass:"space-md"})],1):e._e(),n("v-uni-view",{staticClass:"flex-between pb-lg",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.goShop(i)}}},[n("v-uni-view",{staticClass:"f-paragraph c-title max-500 ellipsis"},[e._v("订单号:"+e._s(t.order_code))]),n("v-uni-view",{staticClass:"f-caption text-bold",style:{color:2==t.pay_type?e.primaryColor:[3,4,5].includes(t.pay_type)?e.subColor:6==t.pay_type?"#11C95E":"#333"}},[e._v(e._s(e.statusType[t.pay_type]))])],1),e._l(t.order_goods,(function(i,a){return n("v-uni-view",{key:a,staticClass:"flex-center mb-lg"},[n("v-uni-view",{staticClass:"avatar lg radius-16"},[n("v-uni-view",{staticClass:"h5-image avatar lg radius-16",style:{backgroundImage:"url('"+i.goods_cover+"')"}})],1),n("v-uni-view",{staticClass:"flex-1 ml-md"},[n("v-uni-view",{staticClass:"flex-between"},[n("v-uni-view",{staticClass:"f-mini-title c-title text-bold ellipsis",class:[{"max-300":i.refund_num>0},{"max-450":0==i.refund_num}]},[e._v(e._s(i.goods_name))]),i.refund_num>0?n("v-uni-view",{staticClass:"f-caption c-warning"},[e._v("已退x"+e._s(i.refund_num))]):e._e()],1),n("v-uni-view",{staticClass:"f-caption c-caption mt-md"},[e._v("服务时间:"+e._s(t.start_time))]),n("v-uni-view",{staticClass:"flex-between"},[n("v-uni-view",{staticClass:"flex-y-baseline f-caption c-warning"},[e._v("¥"),n("v-uni-view",{staticClass:"f-title text-bold"},[e._v(e._s(i.price))])],1),n("v-uni-view",{staticClass:"c-paragraph"},[e._v("x"+e._s(i.num))])],1)],1)],1)})),n("v-uni-view",{staticClass:"flex-between pt-lg b-1px-t"},[n("v-uni-view",{staticClass:"flex-y-center f-desc c-title"},[e._v("总计:"),n("v-uni-view",{staticClass:"f-paragraph c-warning text-bold"},[e._v("¥"+e._s(t.pay_price))])],1),n("v-uni-view",{staticClass:"flex-warp"},[2==t.pay_type?[n("v-uni-button",{staticClass:"clear-btn order",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.toRefuse(i)}}},[e._v("拒绝接单")]),n("v-uni-button",{staticClass:"clear-btn order",style:{color:"#fff",background:e.primaryColor,borderColor:e.primaryColor},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.toConfirm(i,3)}}},[e._v("确认接单")])]:e._e(),[3,4,5].includes(t.pay_type)?[n("v-uni-button",{staticClass:"clear-btn order",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.toTel(i)}}},[e._v("联系客户")]),n("v-uni-button",{staticClass:"clear-btn order",style:{color:"#fff",background:e.primaryColor,borderColor:e.primaryColor},on:{click:function(n){n.stopPropagation(),arguments[0]=n=e.$handleEvent(n),e.toConfirm(i,t.is_add||t.store_id?6:1*t.pay_type+1)}}},[e._v(e._s(t.is_add||t.store_id?"开始服务":3==t.pay_type?"已出发":4==t.pay_type?"拍照确认到达":"开始服务"))])]:e._e(),6==t.pay_type?[n("v-uni-button",{staticClass:"clear-btn order",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.toTel(i)}}},[e._v("联系客户")]),n("v-uni-button",{staticClass:"clear-btn order",style:{color:"#fff",background:e.primaryColor,borderColor:e.primaryColor},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.toConfirm(i,7)}}},[e._v("拍照完成服务")])]:e._e(),7==t.pay_type?[t.can_shield?n("v-uni-button",{staticClass:"clear-btn order",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.toShield(i)}}},[e._v("屏蔽Ta")]):e._e(),t.is_add||t.label_time?e._e():n("v-uni-button",{staticClass:"clear-btn order",style:{color:"#fff",background:e.primaryColor,borderColor:e.primaryColor},on:{click:function(n){n.stopPropagation(),arguments[0]=n=e.$handleEvent(n),e.$util.goUrl({url:"/technician/pages/order/label?id="+t.id+"&uid="+t.user_id})}}},[e._v("评价客户")])]:e._e()],2)],1)],2)})),e.loading?n("load-more",{attrs:{noMore:e.list.current_page>=e.list.last_page&&e.list.data.length>0,loading:e.loading}}):e._e(),!e.loading&&e.list.data.length<=0&&1==e.list.current_page?n("abnor"):e._e(),n("v-uni-view",{staticClass:"space-footer"}),n("uni-popup",{ref:"refuse_item",attrs:{type:"center",custom:!0}},[n("v-uni-view",{staticClass:"common-popup-content fill-base pd-lg radius-34"},[n("v-uni-view",{staticClass:"title"},[e._v("拒绝接单")]),n("v-uni-view",{staticClass:"desc"},[e._v("请确认是否拒接接单")]),n("v-uni-textarea",{staticClass:"pd-lg textarea f-desc c-title mt-lg radius-20",attrs:{maxlength:"200",placeholder:"请输入拒单原因","placeholder-class":"f-desc c-caption"},model:{value:e.coach_refund_text,callback:function(t){e.coach_refund_text=t},expression:"coach_refund_text"}}),n("v-uni-view",{staticClass:"flex-center mt-md",staticStyle:{width:"540rpx"}},[n("v-uni-view",{staticClass:"flex-1"}),n("v-uni-view",[e._v(e._s(e.coach_refund_text.length>200?200:e.coach_refund_text.length)+"/200")])],1),n("v-uni-view",{staticClass:"button"},[n("v-uni-view",{staticClass:"item-child",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.$refs.refuse_item.close()}}},[e._v("取消")]),n("v-uni-view",{staticClass:"item-child c-base",style:{background:e.primaryColor,color:"#fff"},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.confirmRefuse.apply(void 0,arguments)}}},[e._v("确定")])],1)],1)],1),n("uni-popup",{ref:"oper_item",attrs:{type:"center",custom:!0}},[n("v-uni-view",{staticClass:"common-popup-content fill-base pd-lg radius-34"},[n("v-uni-view",{staticClass:"title"},[e._v(e._s(e.popupInfo.title))]),n("v-uni-view",{staticClass:"space-md"}),4!==e.popupInfo.type?n("v-uni-view",{staticClass:"flex-warp mt-md",staticStyle:{width:"100%"}},[n("v-uni-view",[e._v("拍照打卡:")]),n("v-uni-view",{staticClass:"flex-1"},[n("upload",{attrs:{imagelist:e.popupInfo.imgs,filetype:"picture",imgtype:"imgs",text:"拍摄图片",imgsize:1,sourceType:2},on:{upload:function(t){arguments[0]=t=e.$handleEvent(t),e.imgUpload.apply(void 0,arguments)},del:function(t){arguments[0]=t=e.$handleEvent(t),e.imgUpload.apply(void 0,arguments)}}})],1)],1):e._e(),n("v-uni-view",{staticClass:"flex-warp mt-md",staticStyle:{width:"100%"}},[n("v-uni-view",[e._v("当前地点:")]),n("v-uni-view",{staticClass:"flex-1",class:[{"c-title":e.popupInfo.location.address},{"c-caption":!e.popupInfo.location.address}],on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.toGetLocation.apply(void 0,arguments)}}},[e._v(e._s(e.popupInfo.location.address||"点击获取定位"))])],1),n("v-uni-view",{staticClass:"button"},[n("v-uni-view",{staticClass:"item-child",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.$refs.oper_item.close()}}},[e._v("取消")]),n("v-uni-view",{staticClass:"item-child c-base",style:{background:e.primaryColor,color:"#fff"},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.confirmOper.apply(void 0,arguments)}}},[e._v("确定")])],1)],1)],1),n("uni-popup",{ref:"shield_item",attrs:{type:"center",custom:!0}},[n("v-uni-view",{staticClass:"common-popup-content fill-base pd-lg radius-34"},[n("v-uni-view",{staticClass:"title"},[e._v("温馨提示")]),n("v-uni-view",{staticClass:"desc"},[e._v("屏蔽客户之后,该客户将不能在列表看到您的信息,会影响你的接单,可以在"+e._s(e.$t("action.attendantName"))+"端 -\n\t\t\t\t屏蔽客户页面移除屏蔽客户,确认屏蔽吗?")]),n("v-uni-view",{staticClass:"button"},[n("v-uni-view",{staticClass:"item-child",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.$refs.shield_item.close()}}},[e._v("我再想想")]),n("v-uni-view",{staticClass:"item-child c-base",style:{background:e.primaryColor,color:"#fff"},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.confirmShield.apply(void 0,arguments)}}},[e._v("确定")])],1)],1)],1),e.configInfo.plugAuth.recording&&e.configInfo.service_recording_show?[n("mumu-recorder",{ref:"recorder",on:{success:function(t){arguments[0]=t=e.$handleEvent(t),e.handlerSuccess.apply(void 0,arguments)},error:function(t){arguments[0]=t=e.$handleEvent(t),e.handlerError.apply(void 0,arguments)}}})]:e._e()],2)},r=[]},e271:function(e,t,n){"use strict";n.r(t);var i=n("6e6c"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=a.a},f885:function(e,t,n){"use strict";n.r(t);var i=n("dd1a"),a=n("e271");for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);var o=n("828b"),s=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"1764e1b5",null,!1,i["a"],void 0);t["default"]=s.exports}}]);