王总上门按摩后台代码
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/agent-pages-refund-detail.8...

1 line
16 KiB

2 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["agent-pages-refund-detail"],{"09a3":function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("5c47"),i("0506"),i("4626"),i("c223");var n=a(i("2634")),s=a(i("2fdc")),l=a(i("9b1b")),o=i("8f59"),r={components:{},data:function(){return{options:{},carType:{0:"公交/地铁",1:"出租车"},payType:{1:"微信支付",2:"余额支付",3:"支付宝支付"},statusType:{1:"退款申请中",2:"同意退款",3:"拒绝退款"},detail:{pay_type:0},lockTap:!1,popupInfo:{}}},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},over_time_text:function(){return(new Date).getTime()+1e3*this.detail.end_time}}),onLoad:function(t){var e=t.agent,i=void 0===e?0:e;t.agent=1*i,this.options=t,this.initIndex()},methods:(0,l.default)((0,l.default)((0,l.default)({},(0,o.mapActions)(["getConfigInfo","getCoachInfo"])),(0,o.mapMutations)(["updateTechnicianItem"])),{},{initIndex:function(){var t=arguments,e=this;return(0,s.default)((0,n.default)().mark((function i(){var a,s,l,o,r,c;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 s=e.options,l=s.id,o=s.agent,r=o?"agent":"admin",i.next=12,e.$api[r].refundOrderInfo({id:l});case 12:c=i.sent,e.$util.setNavigationBarColor({bg:e.primaryColor}),c.is_balance=1*c.balance>0?1:0,e.detail=c;case 16:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.initIndex(!0)},toConfirm:function(t){var e=this;return(0,s.default)((0,n.default)().mark((function i(){var a,s,l;return(0,n.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:a=e.detail,s=a.id,l=a.apply_price,e.popupInfo={id:s,type:t,apply_price:l,price:2==t?l:"",text:""},e.$refs.change_item.open();case 3:case"end":return i.stop()}}),i)})))()},confirmChangeOrder:function(){var t=this;return(0,s.default)((0,n.default)().mark((function e(){var i,a,s,l,o,r,c,u,d;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.popupInfo,a=i.type,s=i.price,l=i.apply_price,o=t.$util.pick(t.popupInfo,["id","price","text"]),r=/^(([0-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/,2!=a||s&&r.test(s)&&!(1*s>1*l)){e.next=6;break}return t.$util.showToast({title:s?r.test(s)?"退款金额不能大于可退款金额":"请输入正确的退款金额,最多保留2位小数":"请输入退款金额"}),e.abrupt("return");case 6:if(!t.lockTap){e.next=8;break}return e.abrupt("return");case 8:return t.lockTap=!0,t.$util.showLoading(),c=t.options.agent,u=c?"agent":"admin",d=2==a?"passRefund":"noPassRefund",e.prev=13,e.next=16,t.$api[u][d](o);case 16:t.$refs.change_item.close(),t.$util.showToast({title:"操作成功"}),t.lockTap=!1,t.updateTechnicianItem({key:"haveOperItem",val:!0}),t.initRefresh(),t.$util.back(),e.next=28;break;case 24:return e.prev=24,e.t0=e["catch"](13),setTimeout((function(){t.lockTap=!1,t.$util.hideAll()}),2e3),e.abrupt("return");case 28:case"end":return e.stop()}}),e,null,[[13,24]])})))()},toTel:function(){var t=this;return(0,s.default)((0,n.default)().mark((function e(){var i,a,s,l,o,r,c;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.detail,a=i.id,s=i.pay_type,l=t.options.agent,o=l?"agent":"admin",![2,3,4,5,6].includes(s)){e.next=10;break}return e.next=6,t.$api[o].getVirtualPhone({order_id:a});case 6:r=e.sent,t.$util.goUrl({url:r,openType:"call"}),e.next=12;break;case 10:c=7==s?"服务结束":"服务取消",t.$util.showToast({title:"".concat(c,"不能联系客户哦")});case 12:case"end":return e.stop()}}),e)})))()},toCopy:function(){var t=this.detail.address_i