1 |
- import{s,v as e,o as t,e as a,f as l,w as i,u as o,l as n,a8 as c,j as r,k as f,r as u,F as d,y as m,p as _,t as p,g as y,B as g,M as x,C as b,i as v,m as h,D as k,z as j}from"./index-9880b451.js";import{_ as w}from"./s-goods-item.f5d79fd7.js";import{_ as $}from"./s-empty.74111684.js";import{a as T,_ as C}from"./s-layout.dfc5b0b5.js";import{k as M,m as E,f as N}from"./useGoods.bdd1c2ea.js";import{A}from"./afterSale.a533f86e.js";import{_ as F}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css *//* empty css */import"./index.df38848e.js";const S=F({__name:"detail",setup(F){g((s=>({"0bd22388":o(B)})));const S=2*s.$platform.device.statusBarHeight,B=s.$url.css("/static/img/shop/order/order_bg.png"),D=e({id:0,info:{},loading:!1,active:0,list:[{title:"提交申请"},{title:"处理中"},{title:"完成"}]});const z=()=>{s.$helper.copyText(D.info.no)};async function G(s){D.loading=!0;const{code:e,data:t}=await A.getAfterSale(s);0===e?(D.info=t,M(D.info),[10].includes(D.info.status)?D.active=0:[20,30].includes(D.info.status)?D.active=1:([40,50].includes(D.info.status)||[61,62,63].includes(D.info.status))&&(D.active=2)):D.info=null}return t((e=>{e.id?(D.id=e.id,G(e.id)):s.$helper.toast("缺少订单信息,请检查")})),(e,t)=>{const g=b,M=v,F=n(h("s-goods-item"),w),B=k,H=n(h("s-empty"),$),I=n(h("su-fixed"),T),P=n(h("s-layout"),C);return a(),l(P,{title:"售后详情",navbar:!o(c.isEmpty)(D.info)&&D.loading?"inner":"normal"},{default:i((()=>[!o(c.isEmpty)(D.info)&&D.loading?(a(),l(M,{key:0,class:"content_box"},{default:i((()=>[r(M,{class:"steps-box ss-flex",style:m([{marginTop:"-"+Number(S+88)+"rpx",paddingTop:Number(S+88)+"rpx"}])},{default:i((()=>[r(M,{class:"ss-flex"},{default:i((()=>[(a(!0),f(d,null,u(D.list,((s,e)=>(a(),l(M,{class:"steps-item",key:e},{default:i((()=>[r(M,{class:"ss-flex"},{default:i((()=>[D.list.length-1===e&&[61,62,63].includes(D.info.status)?(a(),l(g,{key:0,class:"sicon-circleclose"})):(a(),l(g,{key:1,class:j(["sicon-circlecheck",D.active>=e?"activity-color":"info-color"])},null,8,["class"])),D.list.length-1!==e?(a(),l(M,{key:2,class:j(["line",D.active>=e?"activity-bg":"info-bg"])},null,8,["class"])):y("",!0)])),_:2},1024),r(M,{class:j(["steps-item-title",D.active>=e?"activity-color":"info-color"])},{default:i((()=>[_(p(s.title),1)])),_:2},1032,["class"])])),_:2},1024)))),128))])),_:1})])),_:1},8,["style"]),r(M,{class:"status-box ss-flex ss-col-center ss-row-between ss-m-x-20",onClick:t[0]||(t[0]=e=>o(s).$router.go("/pages/order/aftersale/log",{id:D.id}))},{default:i((()=>[r(M,{class:""},{default:i((()=>[r(M,{class:"status-text"},{default:i((()=>[_(p(o(E)(D.info)),1)])),_:1}),r(M,{class:"status-time"},{default:i((()=>[_(p(o(s).$helper.timeFormat(D.info.updateTime,"yyyy-mm-dd hh:MM:ss")),1)])),_:1})])),_:1}),r(g,{class:"ss-iconfont _icon-forward",style:{color:"#666"}})])),_:1}),r(M,{class:"aftersale-money ss-flex ss-col-center ss-row-between"},{default:i((()=>[r(M,{class:"aftersale-money--title"},{default:i((()=>[_("退款总额")])),_:1}),r(M,{class:"aftersale-money--num"},{default:i((()=>[_("¥"+p(o(N)(D.info.refundPrice)),1)])),_:1})])),_:1}),r(M,{class:"order-shop"},{default:i((()=>[r(F,{img:D.info.picUrl,title:D.info.spuName,titleWidth:480,skuText:D.info.properties.map((s=>s.valueName)).join(" "),num:D.info.count},null,8,["img","title","skuText","num"])])),_:1}),r(M,{class:"aftersale-content"},{default:i((()=>[r(M,{class:"aftersale-item ss-flex ss-col-center"},{default:i((()=>[r(M,{class:"item-title"},{default:i((()=>[_("服务单号:")])),_:1}),r(M,{class:"item-content ss-m-r-16"},{default:i((()=>[_(p(D.info.no),1)])),_:1}),r(B,{class:"ss-reset-button copy-btn",onClick:z},{default:i((()=>[_("复制")])),_:1})])),_:1}),r(M,{class:"aftersale-item ss-flex ss-col-center"},{default:i((()=>[r(M,{class:"item-title"},{default:i((()=>[_("申请时间:")])),_:1}),r(M,{class:"item-content"},{default:i((()=>[_(p(o(s).$helper.timeFormat(D.info.createTime,"yyyy-mm-dd hh:MM:ss")),1)])),_:1})])),_:1}),r(M,{class:"aftersale-item ss-flex ss-col-center"},{default:i((()=>[r(M,{class:"item-title"},{default:i((()=>[_("售后类型:")])),_:1}),r(M,{class:"item-content"},{default:i((()=>[_(p(10===D.info.way?"仅退款":"退款退货"),1)])),_:1})])),_:1}),r(M,{class:"aftersale-item ss-flex ss-col-center"},{default:i((()=>[r(M,{class:"item-title"},{default:i((()=>[_("申请原因:")])),_:1}),r(M,{class:"item-content"},{default:i((()=>[_(p(D.info.applyReason),1)])),_:1})])),_:1}),r(M,{class:"aftersale-item ss-flex ss-col-center"},{default:i((()=>[r(M,{class:"item-title"},{default:i((()=>[_("相关描述:")])),_:1}),r(M,{class:"item-content"},{default:i((()=>[_(p(D.info.applyDescription),1)])),_:1})])),_:1})])),_:1})])),_:1})):y("",!0),o(c.isEmpty)(D.info)&&D.loading?(a(),l(H,{key:1,icon:"/static/order-empty.png",text:"暂无该订单售后详情"})):y("",!0),o(c.isEmpty)(D.info)?y("",!0):(a(),l(I,{key:2,bottom:"",placeholder:"",bg:"bg-white"},{default:i((()=>[r(M,{class:"foot_box"},{default:i((()=>{var e,n;return[(null==(e=D.info.buttons)?void 0:e.includes("cancel"))?(a(),l(B,{key:0,class:"ss-reset-button btn",onClick:t[1]||(t[1]=s=>{return e=D.info.id,void x({title:"提示",content:"确定要取消此申请吗?",success:async function(s){if(!s.confirm)return;const{code:t}=await A.cancelAfterSale(e);0===t&&await G(e)}});var e})},{default:i((()=>[_(" 取消申请 ")])),_:1})):y("",!0),(null==(n=D.info.buttons)?void 0:n.includes("delivery"))?(a(),l(B,{key:1,class:"ss-reset-button btn",onClick:t[2]||(t[2]=e=>o(s).$router.go("/pages/order/aftersale/return-delivery",{id:D.info.id}))},{default:i((()=>[_(" 填写退货 ")])),_:1})):y("",!0),r(B,{class:"ss-reset-button contcat-btn btn",onClick:t[3]||(t[3]=e=>o(s).$router.go("/pages/chat/index"))},{default:i((()=>[_(" 联系客服 ")])),_:1})]})),_:1})])),_:1}))])),_:1},8,["navbar"])}}},[["__scopeId","data-v-21807cf7"]]);export{S as default};
|