1 |
- import{d as R,u as D,N as F,r as S,z as I,A as J,h as j,D as O,a as t,o as a,k as s,w as l,j as h,i as _,R as U,S as r,l as p,B as W,az as $,s as G,M as L,_ as V,__tla as Y}from"./index-2f799233.js";import{_ as Z,__tla as H}from"./ContentWrap-9da801df.js";import K,{__tla as Q}from"./AfterSaleBaseInfo-9e8a5925.js";import X,{__tla as tt}from"./AfterSaleLog-09b774b4.js";import et,{__tla as at}from"./AfterSaleRetrun-a233d58c.js";import st,{__tla as rt}from"./AfterSaleInfo-5d227178.js";import ot,{__tla as nt}from"./AfterSaleSpuInfo-7cc80a57.js";import{f as lt,c as ct,e as _t,r as it,d as mt,__tla as ut}from"./index-8cb2149a.js";import{u as yt,__tla as pt}from"./useMessage-e567ad40.js";import{__tla as dt}from"./el-card-c64c83d1.js";import{__tla as ft}from"./dict-20c916e2.js";import{__tla as bt}from"./el-descriptions-item-0a78cef7.js";import{__tla as ht}from"./el-timeline-item-e925b025.js";import{__tla as Tt}from"./formatTime-2157894c.js";import{__tla as gt}from"./el-image-4d26fa76.js";import{__tla as wt}from"./el-image-viewer-8e9e3571.js";import{__tla as kt}from"./index-5f6db4a5.js";let B,vt=Promise.all([(()=>{try{return Y}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return pt}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return ft}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return ht}catch{}})(),(()=>{try{return Tt}catch{}})(),(()=>{try{return gt}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return kt}catch{}})()]).then(async()=>{let T,g;T={class:"top",style:{position:"relative",overflow:"hidden"}},g={class:"bottom"},B=V(R({name:"ProductSpuForm",__name:"AfterSaleMobileTab",emits:["success"],setup(St,{emit:N}){const o=yt(),{push:i}=D(),w=F(),m=w.query.type,e=JSON.parse(w.query.obj),{t:c}=W(),d=S(!1),n=S("info"),f=N,q=async()=>{const{value:b}=await $.prompt("\u8BF7\u8F93\u5165\u62D2\u7EDD\u539F\u56E0","\u62D2\u7EDD\u9000\u8D27",{confirmButtonText:c("common.ok"),cancelButtonText:c("common.cancel"),inputPattern:/^[\s\S]*.*\S[\s\S]*$/,inputErrorMessage:"\u62D2\u7EDD\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"});try{await lt({id:e.id,auditReason:b}),o.success(c("common.updateSuccess")),f("success",!0),i({name:"AfterSale",query:{openType:"tobedone"}})}finally{d.value=!1}},A=async()=>{try{const b=await o.confirm("\u662F\u5426\u540C\u610F\u552E\u540E\uFF1F");await ct(e.id),console.log(e),b=="confirm"&&e.way==10?k():i({name:"AfterSale",query:{openType:"tobedone"}})}catch{}},k=async()=>{try{await o.confirm("\u662F\u5426\u786E\u8BA4\u9000\u6B3E\uFF1F"),await _t(e.id),o.success(c("common.success")),f("success"),i({name:"AfterSale",query:{openType:"tobedone"}})}catch{}},E=async()=>{try{await o.confirm("\u662F\u5426\u786E\u8BA4\u6536\u8D27\uFF1F"),await it(e.id),o.success(c("common.success")),f("success"),i({name:"AfterSale",query:{openType:"tobedone"}})}catch{}},x=async()=>{try{await o.confirm("\u662F\u5426\u62D2\u7EDD\u6536\u8D27\uFF1F"),await mt(e.id),o.success(c("common.success")),f("success"),i({name:"AfterSale",query:{openType:"tobedone"}})}catch{}};return I(()=>{document.getElementsByTagName("section")[1].style.padding="0px",document.getElementsByTagName("section")[1].style.width="100%",document.getElementsByTagName("section")[1].style.background="#f5f7f9",document.getElementsByTagName("section")[1].querySelector("div").style.border="none"}),J(()=>{document.getElementsByTagName("section")[1].style.width="auto",document.getElementsByTagName("section")[1].style.padding="20px",document.getElementsByTagName("section")[1].style.background="var(--el-color-white)"}),(b,v)=>{const u=j("van-tab"),C=j("van-tabs"),y=G,z=Z,M=L;return O((a(),s(z,{style:{"overflow-y":"auto"},class:"ContentWrap"},{default:l(()=>[h("div",T,[_(C,{active:t(n),"onUpdate:active":v[0]||(v[0]=P=>U(n)?n.value=P:null)},{default:l(()=>[_(u,{title:"\u8BA2\u5355\u4FE1\u606F",name:"info"}),_(u,{title:"\u5546\u54C1\u4FE1\u606F",name:"spu"}),_(u,{title:"\u552E\u540E\u4FE1\u606F",name:"afterinfo"}),_(u,{title:"\u9000\u6B3E\u72B6\u6001",name:"return"}),_(u,{title:"\u552E\u540E\u65E5\u5FD7",name:"afterlog"})]),_:1},8,["active"])]),h("div",null,[t(n)=="info"?(a(),s(K,{key:0,obj:t(e),openType:t(m)},null,8,["obj","openType"])):r("",!0),t(n)=="spu"?(a(),s(ot,{key:1,obj:t(e),openType:t(m)},null,8,["obj","openType"])):r("",!0),t(n)=="afterinfo"?(a(),s(st,{key:2,obj:t(e),openType:t(m)},null,8,["obj","openType"])):r("",!0),t(n)=="return"?(a(),s(et,{key:3,obj:t(e),openType:t(m)},null,8,["obj","openType"])):r("",!0),t(n)=="afterlog"?(a(),s(X,{key:4,obj:t(e),openType:t(m)},null,8,["obj","openType"])):r("",!0)]),h("div",g,[t(e).status===10?(a(),s(y,{key:0,disabled:t(d),type:"danger",onClick:q},{default:l(()=>[p("\u62D2\u7EDD\u552E\u540E")]),_:1},8,["disabled"])):r("",!0),t(e).status===10?(a(),s(y,{key:1,disabled:t(d),type:"primary",onClick:A},{default:l(()=>[p("\u540C\u610F\u552E\u540E")]),_:1},8,["disabled"])):r("",!0),t(e).status===30?(a(),s(y,{key:2,type:"danger",onClick:x},{default:l(()=>[p("\u62D2\u7EDD\u6536\u8D27")]),_:1})):r("",!0),t(e).status===30?(a(),s(y,{key:3,type:"primary",onClick:E},{default:l(()=>[p(" \u786E\u8BA4\u6536\u8D27 ")]),_:1})):r("",!0),t(e).status===40?(a(),s(y,{key:4,type:"primary",onClick:k,style:{width:"100%"}},{default:l(()=>[p("\u786E\u8BA4\u9000\u6B3E")]),_:1})):r("",!0)])]),_:1})),[[M,t(d)]])}}}),[["__scopeId","data-v-d75a3d72"],["__file","D:/zx/mall-newfeifan-zx-business/src/views/mall/trade/afterSale/AfterSaleMobileTab.vue"]])});export{vt as __tla,B as default};
|