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 line
26 KiB
1 line
26 KiB
2 months ago
|
webpackJsonp([33],{"E/Gp":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("Xxa5"),i=a.n(r),s=a("mvHQ"),l=a.n(s),n=a("exGp"),o=a.n(n),_=a("Dd8w"),c=a.n(_),m=a("PJh5"),d=a.n(m),u=a("NYxO"),p={data:function(){return{navTitle:"",carType:{0:"公交/地铁",1:"出租车"},payType:{1:"微信支付",2:"余额支付",3:"支付宝支付"},statusType:{"-1":"已取消",1:"待支付",2:"待服务",3:this.$t("action.attendantName")+"接单",4:this.$t("action.attendantName")+"出发",5:this.$t("action.attendantName")+"到达",6:"服务中",7:"已完成",8:"待转单"},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")+"到达",img:"arrive_img",time:"arrive_time",icon:"iconjishidaoda"},{pay_type:6,title:"开始服务",time:"start_service_time",icon:"iconjishifuwu"},{pay_type:7,title:"服务完成",img:"end_img",time:"order_end_time",icon:"iconjishiwancheng"},{pay_type:7,title:"签字确认",img:"sign_img",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:"服务完成",img:"end_img",time:"order_end_time",icon:"iconjishiwancheng"}],subForm:{},upRecord:{},showDialog:{label:!1,file:!1},labelList:[],fileForm:{record_url:""},loading:!1,pickerOptions:{disabledDate:function(t){return t.getTime()>1e3*(d()(d()(Date.now()).format("YYYY-MM-DD")).unix()+86400-1)}},searchForm:{page:1,limit:10,start_time:"",end_time:""},tableData:[],total:0}},created:function(){var t=this.$route.query.id;this.getDetail(t)},computed:c()({},Object(u.d)({routesItem:function(t){return t.routes}})),methods:{getDetail:function(t){var e=this;return o()(i.a.mark(function a(){var r,s,n,o,_,c;return i.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e.$api.shop.orderInfo({id:t});case 2:if(r=a.sent,s=r.code,n=r.data,200===s){a.next=7;break}return a.abrupt("return");case 7:if(n.is_balance=1*n.balance>0?1:0,o=n.coach_refund_text,n.coach_refund_text=o&&o.length>0?o.replace(/\n/g,"<br>"):"没有填写原因哦",n.dispatch_record.map(function(t){t.text=0===t.now_coach_id?t.text.replace(/\n/g,"<br>"):""}),n.service_recording.map(function(t){t.record_url=t.link}),_=JSON.parse(l()(n.is_add||n.store_id?e.base_bell:e.base_service)),n.store_id&&_.push({pay_type:7,title:"签字确认",time:"sign_time",icon:""}),e.lineList=_,e.subForm=n,e.getUpRecord(t),c=e.routesItem.auth.virtual,void 0!==c&&c){a.next=20;break}return a.abrupt("return");case 20:e.getTableDataList();case 21:case"end":return a.stop()}},a,e)}))()},getUpRecord:function(t){var e=this;return o()(i.a.mark(function a(){var r,s,l;return i.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e.$api.shop.orderUpRecord({order_id:t});case 2:if(r=a.sent,s=r.code,l=r.data,200===s){a.next=7;break}return a.abrupt("return");case 7:e.upRecord=l;case 8:case"end":return a.stop()}},a,e)}))()},handleSizeChange:function(t){this.searchForm.limit=t,this.handleCurrentChange(1)},handleCurrentChange:function(t){this.searchForm.page=t,this.getTableDataList()},getTableDataList:function(t){var e=this;t&&(this.searchForm.page=1),this.loading=!0;var a=JSON.parse(l()(this.searchForm));a.order_id=this.subForm.id;var r=a.start_time;r&&r.length>0?(a.start_time=r[0]/1e3,a.end_time=r[1]/1e3):(a.start_time="",a.end_time=""),this.$api.system.phoneRecordList(a).then(function(t){e.loading=!1,200===t.code&&(e.tableData=t.data.data,e.total=t.data.total)})},toShowDialog:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o()(i.a.mark(function r(){var s,l,n,o;return i.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:r.t0=t,r.next="label"===r.t0?3:"file"===r.t0?10:12;break;case 3:return s=e.subForm.user_id,r.next=6,e.$api.shop.userLabel
|