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.
1 lines
9.1 KiB
1 lines
9.1 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["agent/pages/order/detail"],{7009:function(e,t,n){"use strict";var i=n("ba52"),a=n.n(i);a.a},b95c:function(e,t,n){"use strict";n.r(t);var i=n("e341"),a=n("be61");for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);n("7009");var o=n("828b"),c=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=c.exports},ba52:function(e,t,n){},be61:function(e,t,n){"use strict";n.r(t);var i=n("e477"),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},ce07:function(e,t,n){"use strict";(function(e,t){var i=n("47a9");n("7043");i(n("3240"));var a=i(n("b95c"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},e341: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,t=e.$createElement,n=(e._self._c,e.detail.id?e.__map(e.detail.order_goods,(function(t,n){var i=e.__get_orig(t),a=e.detail.order_goods.length;return{$orig:i,g0:a}})):null),i=e.detail.id?e.detail.address_info.mobile.substring(0,3):null,a=e.detail.id?e.detail.address_info.mobile.substring(7,11):null,r=e.detail.id?[2,3,4,5,6,8].includes(e.detail.pay_type):null,o=e.detail.id&&r&&e.detail.is_add&&8!=e.detail.pay_type?e.$t("action."+e.technicianStatusOperType[3===e.detail.pay_type&&(e.detail.is_add||e.detail.store_id)?5:e.detail.pay_type]):null,c=!e.detail.id||!r||e.detail.is_add&&8!=e.detail.pay_type?null:e.$t("action.transferOrder"),u=!e.detail.id||!r||e.detail.is_add&&8!=e.detail.pay_type?null:e.$t("action."+e.technicianStatusOperType[3===e.detail.pay_type&&(e.detail.is_add||e.detail.store_id)?5:8==e.detail.pay_type?-1:e.detail.pay_type]),l=e.detail.id?e.$t("action."+e.technicianStatusOperType[e.popupInfo.type]):null;e._isMounted||(e.e0=function(t){return t.stopPropagation(),e.$util.goUrl({url:e.detail.store_info.address,openType:"copy"})},e.e1=function(t){return t.stopPropagation(),e.$util.goUrl({url:e.detail.store_info.phone,openType:"call"})},e.e2=function(t){return t.stopPropagation(),e.$util.goUrl({openType:"copy",url:e.detail.order_code})},e.e3=function(t){return e.$util.goUrl({url:"/agent/pages/order/change?id="+e.options.id+"&agent="+e.options.agent})},e.e4=function(t){return t.stopPropagation(),e.$refs.change_item.close()}),e.$mp.data=Object.assign({},{$root:{l0:n,g1:i,g2:a,g3:r,m0:o,m1:c,m2:u,m3:l}})},a=[]},e477:function(e,t,n){"use strict";(function(e){var i=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("7eb4")),r=i(n("ee10")),o=i(n("7ca3")),c=n("8f59");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={components:{timeline:function(){n.e("components/timeline").then(function(){return resolve(n("29ac"))}.bind(null,n)).catch(n.oe)}},data:function(){return{options:{},statusType:{"-1":"已取消",1:"待支付",2:"待服务",3:this.$t("action.attendantName")+"接单",4:this.$t("action.attendantName")+"出发",5:this.$t("action.attendantName")+"到达",6:"服务中",7:"已完成",8:"待转单"},technicianStatusOperType:{"-1":"agreeRefund",2:"orderTaking",3:"setOut",4:"arrive",5:"startService",6:"serviceCompletion"},carType:{0:"公交/地铁",1:"出租车"},payType:{1:"微信支付",2:"余额支付",3:"支付宝支付"},lineList:[],base_service:[{pay_type:3,title:this.$t("action.attendantName")+"接单",time:"receiving_time",icon:"iconjishijiedan"},{pay_type:4,title:this.$t("action.attendantName")+"出发",time:"serout_time",icon:"iconjishichufa"},{pay_type:5,title:this.$t("action.attendantName")+"到达",time:"arrive_time",icon:"iconjishidaoda"},{pay_type:6,title:"开始服务",time:"start_service_time",icon:"iconjishifuwu"},{pay_type:7,title:"服务完成",time:"order_end_time",icon:"iconjishiwancheng"},{pay_type:7,title:"签字确认",time:"sign_time",icon:""}],base_bell:[{pay_type:3,title:this.$t("action.attendantName")+"接单",time:"receiving_time",icon:"iconjishijiedan"},{pay_type:6,title:"开始服务",time:"start_service_time",icon:"iconjishifuwu"},{pay_type:7,title:"服务完成",time:"order_end_time",icon:"iconjishiwancheng"}],detail:{pay_type:0},check_label:[],coach_refund_text:"",lockTap:!1,popupInfo:{title:"",type:"",param:{},imgs:[],location:{lat:0,lng:0,address:""}}}},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},userInfo:function(e){return e.user.userInfo},haveOperItem:function(e){return e.technician.haveOperItem},over_time_text:function(){return(new Date).getTime()+1e3*this.detail.end_time}}),onLoad:function(e){var t=e.agent,n=void 0===t?0:t;e.agent=1*n,this.options=e,this.initIndex()},onShow:function(){this.haveOperItem&&(this.$util.back(),this.updateTechnicianItem({key:"haveOperItem",val:!1}))},methods:l(l(l({},(0,c.mapActions)(["getConfigInfo","getCoachInfo"])),(0,c.mapMutations)(["updateTechnicianItem"])),{},{initIndex:function(){var e=arguments,t=this;return(0,r.default)(a.default.mark((function n(){var i,r,o,c,u,l,s,d,p,f,_;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=e.length>0&&void 0!==e[0]&&e[0],t.configInfo.id&&!i){n.next=4;break}return n.next=4,t.getConfigInfo();case 4:return r=t.options,o=r.id,c=r.agent,u=c?"agent":"admin",n.next=8,t.$api[u].orderInfo({id:o});case 8:l=n.sent,t.$util.setNavigationBarColor({bg:t.primaryColor}),l.is_balance=1*l.balance>0?1:0,l.pay_type,l.time_long,l.start_service_time,s=l.is_add,d=void 0===s?0:s,p=l.store_id,f=void 0===p?0:p,_=t.$util.deepCopy(d||f?t.base_bell:t.base_service),f&&_.push({pay_type:7,title:"签字确认",time:"sign_time",icon:""}),t.lineList=_,t.detail=l;case 16:case"end":return n.stop()}}),n)})))()},initRefresh:function(){this.initIndex(!0)},countEnd:function(){var e=this;this.$util.log("倒计时完了"),setTimeout((function(){e.initRefresh(),e.$util.back()}),1e3)},toConfirm:function(){var e=this;return(0,r.default)(a.default.mark((function t(){var n,i,r,o,c,u,l,s,d,p,f;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=e.detail,i=n.id,r=n.pay_type,o=n.is_add,c=void 0===o?0:o,u=n.store_id,l=void 0===u?0:u,s=n.true_car_price,d=n.true_service_price,p=3===r&&(c||l)?5:r,f=(1*s+1*d).toFixed(2),e.popupInfo={order_id:i,type:8==r?-1:p,refund_price:f},e.$refs.change_item.open();case 5:case"end":return t.stop()}}),t)})))()},confirmChangeOrder:function(){var e=this;return(0,r.default)(a.default.mark((function t(){var n,i,r,o,c;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.$util.deepCopy(e.popupInfo),n.type=n.type+1,i=n.type,delete n.index,r={"-1":"退款成功",3:"接单成功",4:"已成功出发",5:"已成功到达",6:"已开始服务",7:"服务已完成"},e.activeIndex,!e.lockTap){t.next=8;break}return t.abrupt("return");case 8:return e.lockTap=!0,e.$util.showLoading(),o=e.options.agent,c=o?"agent":"admin",t.prev=12,t.next=15,e.$api[c].adminUpdateOrder(n);case 15:e.$refs.change_item.close(),e.$util.showToast({title:r[i]}),e.lockTap=!1,e.updateTechnicianItem({key:"haveOperItem",val:!0}),e.initRefresh(),e.$util.back(),t.next=27;break;case 23:return t.prev=23,t.t0=t["catch"](12),setTimeout((function(){e.lockTap=!1,e.$util.hideAll()}),2e3),t.abrupt("return");case 27:case"end":return t.stop()}}),t,null,[[12,23]])})))()},toTel:function(){var e=this;return(0,r.default)(a.default.mark((function t(){var n,i,r,o,c,u,l;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.detail,i=n.id,r=n.pay_type,o=e.options.agent,c=o?"agent":"admin",![2,3,4,5,6].includes(r)){t.next=10;break}return t.next=6,e.$api[c].getVirtualPhone({order_id:i});case 6:u=t.sent,e.$util.goUrl({url:u,openType:"call"}),t.next=12;break;case 10:l=7==r?"服务结束":"服务取消",e.$util.showToast({title:"".concat(l,"不能联系客户哦")});case 12:case"end":return t.stop()}}),t)})))()},toCopy:function(){var e=this.detail.address_info,t=e.address,n=e.address_info,i="".concat(t).concat(n);this.$util.goUrl({url:i,openType:"copy"})},toMap:function(t){var n=this;return(0,r.default)(a.default.mark((function i(){var r,o,c,u,l,s;return a.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return r=n.detail[t],o=r.address,c=r.address_info,u=void 0===c?"":c,l=r.lat,s=r.lng,i.next=3,n.$util.checkAuth({type:"userLocation"});case 3:return i.next=5,e.getLocation({type:"gcj02"});case 5:return i.next=7,e.openLocation({latitude:1*l,longitude:1*s,name:u?"".concat(o," ").concat(u):o,scale:28});case 7:case"end":return i.stop()}}),i)})))()}})};t.default=s}).call(this,n("df3c")["default"])}},[["ce07","common/runtime","common/vendor"]]]); |