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

(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_info,e=t.address,i=t.address_info,a="".concat(e).concat(i);this.$util.goUrl({url:a,openType:"copy"})},toMap:function(t){var 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:return a=e.detail[t],s=a.address,l=a.address_info,o=void 0===l?"":l,r=a.lat,c=a.lng,i.next=3,e.$util.checkAuth({type:"userLocation"});case 3:return i.next=5,uni.getLocation({type:"gcj02"});case 5:return i.next=7,uni.openLocation({latitude:1*r,longitude:1*c,name:o?"".concat(s," ").concat(o):s,scale:28});case 7:case"end":return i.stop()}}),i)})))()}})};e.default=r},"1b20":function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.avatar.coath[data-v-e584aba6]{width:%?94?%;height:%?94?%}',""]),t.exports=e},"2bb5":function(t,e,i){"use strict";i.r(e);var a=i("09a3"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},"3fd4":function(t,e,i){"use strict";var a=i("eb47"),n=i.n(a);n.a},ad90:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.detail.id?i("v-uni-view",{staticClass:"order-pages"},[i("v-uni-view",{staticClass:"item-child flex-center pd-lg fill-base f-paragraph c-base",staticStyle:{height:"200rpx"},style:{background:t.primaryColor}},[i("v-uni-view",{staticClass:"flex-1 flex-y-baseline f-md-title"},[t._v(t._s(t.statusType[t.detail.status])),2==t.detail.status?i("v-uni-view",{staticClass:"f-desc ml-md"},[t._v("退款金额¥"+t._s(t.detail.refund_price))]):t._e()],1)],1),i("v-uni-view",{staticClass:"item-child mt-md ml-lg mr-lg pd-lg fill-base radius-16"},[i("v-uni-view",{staticClass:"flex-between pb-lg"},[i("v-uni-view",{staticClass:"f-paragraph c-title max-380 ellipsis"},[t._v("服务内容")])],1),t._l(t.detail.order_goods,(function(e,a){return i("v-uni-view",{key:a,staticClass:"flex-center",class:[{"mb-lg":a!=t.detail.order_goods.length-1}]},[i("v-uni-view",{staticClass:"avatar lg radius-16"},[i("v-uni-view",{staticClass:"h5-image avatar lg radius-16",style:{backgroundImage:"url('"+e.goods_cover+"')"}})],1),i("v-uni-view",{staticClass:"flex-1 ml-md"},[i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"f-mini-title c-title text-bold max-380 ellipsis"},[t._v(t._s(e.goods_name))]),i("v-uni-view",{staticClass:"c-paragraph"},[t._v("x"+t._s(e.num))])],1),1*e.material_price>0?i("v-uni-view",{staticClass:"f-caption c-caption"},[t._v("物料费:¥"+t._s(e.material_price))]):t._e(),i("v-uni-view",{staticClass:"f-caption mt-md",staticStyle:{color:"#777"}},[t._v("服务时长 "+t._s(e.time_long)+"分钟")]),i("v-uni-view",{staticClass:"f-paragraph c-warning text-bold mt-sm"},[t._v("¥"+t._s(e.goods_price))])],1)],1)}))],2),t.detail.store_id?i("v-uni-view",{staticClass:"store-info mt-md ml-lg mr-lg pd-lg fill-base radius-16"},[i("v-uni-view",{staticClass:"f-mini-title c-title text-bold pb-md"},[t._v(t._s(t.detail.store_info.title))]),i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"flex-y-center",staticStyle:{color:"#303030"}},[i("i",{staticClass:"iconfont icondizhi1 mr-sm"}),i("v-uni-view",{staticClass:"c-title flex-1 mr-md"},[i("span",[t._v(t._s(t.detail.store_info.address||"暂未设置门店地址"))]),t.detail.store_info.address?i("span",{staticClass:"copy-btn span radius-5 f-icontext ml-sm",style:{color:t.primaryColor,borderColor:t.primaryColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$util.goUrl({url:t.detail.store_info.address,openType:"copy"})}}},[t._v("复制")]):t._e()])],1),i("v-uni-view",{staticClass:"flex-center"},[i("v-uni-view",{staticClass:"item-icon rel flex-center radius-16",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$util.goUrl({url:t.detail.store_info.phone,openType:"call"})}}},[i("v-uni-view",{staticClass:"item-icon radius-16 abs",style:{background:t.primaryColor}}),i("i",{staticClass:"iconfont icondadianhua_1",style:{color:t.primaryColor}})],1),t.detail.store_info.address?i("v-uni-view",{staticClass:"item-icon rel flex-center radius-16 ml-md",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toMap("store_info")}}},[i("v-uni-view",{staticClass:"item-icon radius-16 abs",style:{background:t.primaryColor}}),i("i",{staticClass:"iconfont icondizhi_1",style:{color:t.primaryColor}})],1):t._e()],1)],1)],1):t._e(),i("v-uni-view",{staticClass:"order-agent-info store-info mt-md ml-lg mr-lg pd-lg fill-base f-paragraph radius-16"},[i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-image",{staticClass:"coach-img radius",attrs:{mode:"aspectFill",src:t.detail.coach_info.work_img}}),i("v-uni-view",{staticClass:"f-title text-bold max-450 ellipsis"},[t._v(t._s(t.detail.coach_info?t.detail.coach_info.coach_name:""))])],1),i("v-uni-view",{staticClass:"flex-center mt-lg"},[i("v-uni-view",{staticClass:"title"},[t._v("下单人")]),i("v-uni-view",{staticClass:"text flex-1 ellipsis"},[t._v(t._s(t.detail.address_info.user_name))])],1),i("v-uni-view",{staticClass:"flex-center mt-lg"},[i("v-uni-view",{staticClass:"title"},[t._v("联系方式")]),i("v-uni-view",{staticClass:"text flex-1 flex-between"},[i("v-uni-view",[t._v(t._s(t.detail.address_info.mobile.substring(0,3))+"****"+t._s(t.detail.address_info.mobile.substring(7,11)))]),i("v-uni-view",{staticClass:"item-icon rel flex-center radius-16",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toTel.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"item-icon radius-16 abs",style:{background:t.primaryColor}}),i("i",{staticClass:"iconfont icondadianhua_1",style:{color:t.primaryColor}})],1)],1)],1),t.detail.store_id?t._e():i("v-uni-view",{staticClass:"flex-warp mt-lg"},[i("v-uni-view",{staticClass:"title"},[t._v("服务地址")]),i("v-uni-view",{staticClass:"text flex-1 flex-between"},[i("v-uni-view",{staticStyle:{"max-width":"350rpx"}},[i("span",[t._v(t._s(""+t.detail.address_info.address+t.detail.address_info.address_info))]),i("span",{staticClass:"copy-btn fill radius-5 f-icontext ml-sm",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toCopy.apply(void 0,arguments)}}},[t._v("复制")])]),i("v-uni-view",{staticClass:"item-icon rel flex-center radius-16",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toMap("address_info")}}},[i("v-uni-view",{staticClass:"item-icon radius-16 abs",style:{background:t.primaryColor}}),i("i",{staticClass:"iconfont icondizhi_1",style:{color:t.primaryColor}})],1)],1)],1),i("v-uni-view",{staticClass:"flex-between mt-lg pt-lg b-1px-t"},[i("v-uni-view",{staticClass:"title"}),i("v-uni-view",{staticClass:"flex-y-baseline f-paragraph c-black text-bold"},[t._v("总计:"),i("v-uni-view",{staticClass:"c-warning"},[t._v("¥"+t._s(t.detail.apply_price))]),1*t.detail.car_price>0?i("v-uni-view",{staticClass:"flex-y-center ml-md"},[t._v("含车费:"),i("v-uni-view",{staticClass:"f-icontext"},[t._v("¥")]),t._v(t._s(t.detail.car_price))],1):t._e()],1)],1)],1),i("v-uni-view",{staticClass:"order-agent-info mt-md ml-lg mr-lg pd-lg fill-base radius-16"},[i("v-uni-view",{staticClass:"flex-center"},[i("v-uni-view",{staticClass:"title"},[t._v("退款单号")]),i("v-uni-view",{staticClass:"text flex-1"},[i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"max-350 ellipsis"},[t._v(t._s(t.detail.order_code))]),i("v-uni-view",{staticClass:"copy-btn flex-center radius-5 f-icontext",style:{color:t.primaryColor,borderColor:t.primaryColor},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$util.goUrl({url:""+t.detail.order_code,openType:"copy"})}}},[t._v("复制")])],1)],1)],1),t.detail.out_refund_no?i("v-uni-view",{staticClass:"flex-center mt-lg"},[i("v-uni-view",{staticClass:"title"},[t._v("微信退款单号")]),i("v-uni-view",{staticClass:"text flex-1"},[i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"max-350 ellipsis"},[t._v(t._s(t.detail.out_refund_no))]),i("v-uni-view",{staticClass:"copy-btn flex-center radius-5 f-icontext",style:{color:t.primaryColor,borderColor:t.primaryColor},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$util.goUrl({url:""+t.detail.out_refund_no,openType:"copy"})}}},[t._v("复制")])],1)],1)],1):t._e(),i("v-uni-view",{staticClass:"flex-center mt-lg"},[i("v-uni-view",{staticClass:"title"},[t._v("提交日期")]),i("v-uni-view",{staticClass:"text flex-1 ellipsis"},[t._v(t._s(t.detail.create_time))])],1),1!=t.detail.status?i("v-uni-view",{staticClass:"flex-center mt-lg"},[i("v-uni-view",{staticClass:"title"},[t._v("审核日期")]),i("v-uni-view",{staticClass:"text flex-1 ellipsis"},[t._v(t._s(t.detail.refund_time))])],1):t._e(),i("v-uni-view",{staticClass:"mt-lg"},[i("v-uni-view",{staticClass:"title"},[t._v("退款原因")]),i("v-uni-view",{staticClass:"text mt-sm"},[t._v(t._s(t.detail.text))])],1),t.detail.imgs&&t.detail.imgs.length>0?i("v-uni-view",{staticClass:"flex-column"},[i("v-uni-view",{staticClass:"title"},[t._v("上传图片")]),i("v-uni-view",{staticClass:"flex-warp"},[t._l(t.detail.imgs,(function(e,a){return[i("v-uni-image",{key:a+"_0",staticClass:"refund-img mt-md mr-md radius-10",attrs:{src:e},on:{click:function(i){if(!i.type.indexOf("key")&&t._k(i.keyCode,"top",void 0,i.key,void 0))return null;arguments[0]=i=t.$handleEvent(i),t.previewImage(e,t.detail.imgs)}}})]}))],2)],1):t._e()],1),i("v-uni-view",{staticClass:"space-max-footer"}),1==t.detail.status?i("fix-bottom-button",{attrs:{text:[{text:"拒绝退款",type:"cancel"},{text:"同意退款",type:"confirm"}],bgColor:"#fff",classType:2},on:{cancel:function(e){arguments[0]=e=t.$handleEvent(e),t.toConfirm(3)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.toConfirm(2)}}}):t._e(),i("uni-popup",{ref:"change_item",attrs:{type:"center",custom:!0}},[i("v-uni-view",{staticClass:"common-popup-content fill-base pd-lg radius-34"},[i("v-uni-view",{staticClass:"title"},[t._v("温馨提示")]),i("v-uni-view",{staticClass:"desc"},[t._v("你确认要操作"+t._s(t.statusType[t.popupInfo.type])+"吗?")]),2==t.popupInfo.type?i("v-uni-view",{staticClass:"mt-lg"},[i("v-uni-input",{staticClass:"input flex-y-center pl-lg pr-lg f-sm-title c-title radius-16",attrs:{type:"digit","placeholder-class":"c-placeholder",placeholder:"请输入退款金额"},model:{value:t.popupInfo.price,callback:function(e){t.$set(t.popupInfo,"price",e)},expression:"popupInfo.price"}}),i("v-uni-view",{staticClass:"f-desc c-caption mt-md"},[i("v-uni-view",{staticClass:"flex-y-center"},[t._v("实际可退款金额"),i("v-uni-view",{staticClass:"ml-sm c-warning"},[t._v("¥"+t._s(t.popupInfo.apply_price))])],1),i("v-uni-view",[t._v("退款金额不能大于可退款金额")])],1)],1):t._e(),i("v-uni-view",{staticClass:"button"},[i("v-uni-view",{staticClass:"item-child",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$refs.change_item.close()}}},[t._v("取消")]),i("v-uni-view",{staticClass:"item-child c-base",style:{background:t.primaryColor,color:"#fff"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.confirmChangeOrder.apply(void 0,arguments)}}},[t._v("确定")])],1)],1)],1)],1):t._e()},n=[]},eb47:function(t,e,i){var a=i("1b20");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("59188cf0",a,!0,{sourceMap:!1,shadowMode:!1})},fd65:function(t,e,i){"use strict";i.r(e);var a=i("ad90"),n=i("2bb5");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("3fd4");var l=i("828b"),o=Object(l["a"])(n["default"],a["b"],a["c"],!1,null,"e584aba6",null,!1,a["a"],void 0);e["default"]=o.exports}}]);