王总上门按摩后台代码
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/h5/static/js/agent-pages-order-list.6485...

1 line
11 KiB

5 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["agent-pages-order-list"],{"143f":function(t,e,i){"use strict";i.r(e);var a=i("c00f"),n=i("e663");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);var r=i("828b"),o=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"9612e876",null,!1,a["a"],void 0);e["default"]=o.exports},b1a1:function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("c223"),i("dd2b");var n=a(i("2634")),s=a(i("2fdc")),r=a(i("9b1b")),o=i("8f59"),l={components:{},data:function(){return{isLoad:!1,options:{},activeIndex:0,tabList:[],tabOrderList:[{title:"全部",id:0},{title:"待服务",id:2,number:0},{title:this.$t("action.attendantName")+"接单",id:3,number:0},{title:this.$t("action.attendantName")+"出发",id:4,number:0},{title:this.$t("action.attendantName")+"到达",id:5,number:0},{title:"服务中",id:6,number:0},{title:"已完成",id:7,number:0}],tabBellList:[{title:"全部",id:0},{title:"待服务",id:2,number:0},{title:this.$t("action.attendantName")+"接单",id:3,number:0},{title:"服务中",id:6,number:0},{title:"已完成",id:7,number:0}],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",8:"transferOrder"},param:{page:1,pay_type:0,order_code:""},list:{data:[]},loading:!0,index:-1,lockTap:!1,popupInfo:{title:"",index:"",type:"",param:{},imgs:[],location:{lat:0,lng:0,address:""}}}},computed:(0,o.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo}}),onLoad:function(t){var e=t.agent,i=void 0===e?0:e,a=t.bell,n=void 0===a?0:a,s=t.tab,r=void 0===s?0:s;t.agent=1*i,t.bell=1*n,this.options=t,uni.setNavigationBarTitle({title:8==r?"拒单管理":1==n?"加钟管理":"订单管理"}),this.tabList=8==r?[]:1==n?this.tabBellList:this.tabOrderList,this.activeIndex=r,this.initIndex()},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,o.mapActions)(["getConfigInfo"])),(0,o.mapMutations)(["updateTechnicianItem"])),{},{initIndex:function(){var t=arguments,e=this;return(0,s.default)((0,n.default)().mark((function i(){var a;return(0,n.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a=t.length>0&&void 0!==t[0]&&t[0],a||!e.$jweixin.isWechat()){i.next=5;break}return i.next=4,e.$jweixin.initJssdk();case 4:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 5:if(e.configInfo.id&&!a){i.next=8;break}return i.next=8,e.getConfigInfo();case 8:return i.next=10,e.getList();case 10:e.isLoad=!0,e.$util.setNavigationBarColor({bg:e.primaryColor});case 12:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.param.page=1,this.initIndex(!0)},toSearch:function(t){this.param.page=1,this.param.order_code=t,this.getList()},getList:function(){var t=arguments,e=this;return(0,s.default)((0,n.default)().mark((function i(){var a,s,r,o,l,c,u,d,p,f,v,g,h,m;return(0,n.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=t.length>0&&void 0!==t[0]&&t[0],s=e.list,r=e.param,o=e.tabList,l=e.activeIndex,c=e.options,u=c.tab,d=void 0===u?0:u,p=c.bell,f=void 0===p?0:p,v=c.agent,g=void 0===v?0:v,h=g?"agent":"admin",r.pay_type=8==d?8:o[l].id,8!=d&&(r.is_add=f),i.next=8,e.$api[h].orderList(r);case 8:m=i.sent,a||(1==e.param.page||(m.data=s.data.concat(m.data)),e.list=m),e.loading=!1,e.$util.hideAll();case 12:case"end":return i.stop()}}),i