王总上门按摩后台代码
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
16 KiB

5 months ago
webpackJsonp([14],{"9wSi":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("aFK5"),r=a.n(n),i=a("mvHQ"),o=a.n(i),l=a("Dd8w"),s=a.n(l),c=a("Xxa5"),d=a.n(c),m=a("exGp"),_=a.n(m),p=a("PJh5"),u=a.n(p),h=a("NYxO"),v={data:function(){return{loading:!1,downloadLoading:!1,print:!1,pickerOptions:{disabledDate:function(e){return e.getTime()>1e3*(u()(u()(Date.now()).format("YYYY-MM-DD")).unix()+86400-1)}},base_channel:[],statusOptions:[{label:"全部订单",value:0},{label:"待服务",value:2},{label:this.$t("action.attendantName")+"接单",value:3},{label:this.$t("action.attendantName")+"出发",value:4},{label:this.$t("action.attendantName")+"到达",value:5},{label:"服务中",value:6},{label:"已完成",value:7}],coachTypeList:[{id:0,title:"全部"+this.$t("action.attendantName")},{id:1,title:"入驻"+this.$t("action.attendantName")},{id:2,title:"非入驻"+this.$t("action.attendantName")}],serviceTypeList:[{id:0,title:"全部服务"},{id:2,title:"上门服务"},{id:1,title:"到店服务"}],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:"已完成"},printTableData:[],searchForm:{page:1,limit:10,goods_name:"",coach_name:"",is_channel:1,channel_name:"",channel_cate_id:0,order_code:"",mobile:"",start_time:"",end_time:"",pay_type:0,is_coach:0,is_store:0},tableData:[],total:0,order_price:0}},created:function(){var e=this;return _()(d.a.mark(function t(){return d.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getBaseInfo();case 2:e.getTableDataList();case 3:case"end":return t.stop()}},t,e)}))()},computed:s()({},Object(h.d)({routesItem:function(e){return e.routes}})),methods:{getBaseInfo:function(){var e=this;return _()(d.a.mark(function t(){var a,n;return d.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$api.channel.cateSelect();case 2:a=t.sent,(n=a.data).unshift({id:0,title:"全部"}),e.base_channel=n;case 6:case"end":return t.stop()}},t,e)}))()},resetForm:function(e){this.$refs[e].resetFields(),this.getTableDataList(1)},handleSizeChange:function(e){this.searchForm.limit=e,this.handleCurrentChange(1)},handleCurrentChange:function(e){this.searchForm.page=e,this.getTableDataList()},getTableDataList:function(e){var t=this;e&&(this.searchForm.page=1),this.loading=!0;var a=JSON.parse(o()(this.searchForm)),n=a.start_time;n&&n.length>0?(a.start_time=n[0]/1e3,a.end_time=n[1]/1e3):(a.start_time="",a.end_time=""),this.$api.shop.orderList(a).then(function(e){if(t.loading=!1,200===e.code){var a=e.data,n=a.data,r=a.total,i=a.order_price;n.map(function(e){e.is_balance=1*e.balance>0?1:0,e.refund_price=1*e.refund_price>0?e.refund_price:""}),t.tableData=n,t.total=r,t.order_price=i;var o=n.map(function(e){e.goods_text="",e.order_goods.map(function(t){e.goods_text+=t.goods_name+" 数量:x"+t.num+";"});var a=1===e.car_type?"全程"+e.distance+",车费"+e.car_price+" ":"";return e.car_text=e.store_id?"":""+t.carType[e.car_type]+a+" ",[e.id,e.goods_text,e.user_name,e.mobile,e.coach_name,e.channel_name,e.channel,e.coach_id?"入驻"+t.$t("action.attendantName"):"非入驻"+t.$t("action.attendantName"),e.store_id?"到店服务":"上门服务",u()(1e3*e.start_time).format("YYYY-MM-DD HH:mm:ss"),e.car_text,e.init_service_price,e.pay_price,e.refund_price,e.order_code,e.transaction_id,e.admin_name,u()(1e3*e.create_time).format("YYYY-MM-DD HH:mm:ss"),t.payType[e.pay_model],t.statusType[e.pay_type]]});t.printTableData=[["ID","服务项目信息","下单人","下单手机号",t.$t("action.attendantName"),"渠道商","渠道",t.$t("action.attendantName")+"类型","服务方式","服务开始时间","出行费用","服务项目费用","实收金额","退款金额","系统订单号","付款订单号","代理商","下单时间","支付方式","状态"],o]}})},toExportExcel:function(){var e=this;this.downloadLoading=!0