AfterSaleTabs-a89d16c2.js 5.7 KB

1
  1. import{d as B,h as E,r as c,o as l,c as G,f as u,aY as J,a,w as i,g as w,v as r,n as v,P as s,x as K,O as g,F as L,W as M,X as N,C as Q,I as Z,_ as $,__tla as aa}from"./index-11e4820e.js";import{_ as ta,__tla as ea}from"./ContentWrap-694014d4.js";import{_ as la,__tla as ra}from"./SPuUploadImg-7c6bd56b.js";import{_ as sa,__tla as oa}from"./Dialog-bbfaf85c.js";import _a,{__tla as ca}from"./AfterSaleBaseInfo-fc4b7326.js";import ua,{__tla as ia}from"./AfterSaleLog-11f837f5.js";import na,{__tla as ma}from"./AfterSaleRetrun-14028fad.js";import pa,{__tla as ya}from"./AfterSaleInfo-b2f71f07.js";import fa,{__tla as da}from"./AfterSaleSpuInfo-1accc158.js";import{a as ha,r as va,b as ba,c as ka,__tla as wa}from"./index-63b1dc70.js";import Da,{__tla as Ta}from"./AfterSaleDisagreeForm-754cafe9.js";import{u as ga,__tla as ja}from"./useMessage-06ddf735.js";import{__tla as Va}from"./ContentWrap.vue_vue_type_script_setup_true_lang-11f85821.js";import{__tla as xa}from"./el-card-919c14be.js";import{__tla as Ca}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-8854a0f2.js";import{__tla as Ua}from"./index-4203485c.js";import{__tla as Sa}from"./el-image-viewer-c4f5814f.js";import{__tla as Aa}from"./dict-4072dcec.js";import{__tla as Ra}from"./el-descriptions-item-4246212b.js";import{__tla as Fa}from"./el-timeline-item-52f21599.js";import{__tla as Ia}from"./formatTime-f6a2c881.js";import{__tla as Pa}from"./el-image-17e8bc54.js";let A,Xa=Promise.all([(()=>{try{return aa}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Pa}catch{}})()]).then(async()=>{let j,V,x,C;j={class:"left"},V={class:"right"},x=w("div",{style:{clear:"both"}},null,-1),C={class:"dialog-footer"},A=$(B({__name:"AfterSaleTabs",emits:["success"],setup(za,{expose:R,emit:F}){const{t:b}=E(),I=c(!1),o=c("info"),m=c(!1),D=c(""),n=c(!1),y=c("view"),t=c({}),k=c("picUrl");R({open:async(e,_)=>{k.value=_.picUrl,t.value=_,y.value=e,D.value=b("action."+e),e=="view"&&(D.value="\u67E5\u770B"),e=="view"?n.value=!0:(n.value=!1,o.value="info"),m.value=!0}});const T=F,p=ga(),U=c(),P=async()=>{var e;(e=U.value)==null||e.open(t.value)},X=async()=>{try{const e=await p.confirm("\u662F\u5426\u540C\u610F\u552E\u540E\uFF1F");await ha(t.value.id),console.log(e),e=="confirm"&&S()}catch{}},z=async()=>{try{await p.confirm("\u662F\u5426\u786E\u8BA4\u6536\u8D27\uFF1F"),await va(t.value.id),p.success(b("common.success")),m.value=!1,T("success")}catch{}},H=async()=>{try{await p.confirm("\u662F\u5426\u62D2\u7EDD\u6536\u8D27\uFF1F"),await ba(t.value.id),p.success(b("common.success")),m.value=!1,T("success")}catch{}},S=async()=>{try{await p.confirm("\u662F\u5426\u786E\u8BA4\u9000\u6B3E\uFF1F"),await ka(t.value.id),p.success(b("common.success")),m.value=!1,T("success")}catch{}};return(e,_)=>{const O=la,f=M,W=N,Y=ta,d=Q,q=Z;return l(),G(L,null,[u(sa,{title:a(D),modelValue:a(m),"onUpdate:modelValue":_[2]||(_[2]=h=>g(m)?m.value=h:null),width:"70%"},J({default:i(()=>[K((l(),r(Y,{style:{"max-height":"550px","min-height":"550px","overflow-y":"auto",border:"none"}},{default:i(()=>[w("div",j,[u(O,{modelValue:a(k),"onUpdate:modelValue":_[0]||(_[0]=h=>g(k)?k.value=h:null),disabled:!0},null,8,["modelValue"]),u(W,{modelValue:a(o),"onUpdate:modelValue":_[1]||(_[1]=h=>g(o)?o.value=h:null),"tab-position":"left",class:"child-tabs"},{default:i(()=>[u(f,{label:"\u8BA2\u5355\u4FE1\u606F",name:"info"}),u(f,{label:"\u5546\u54C1\u4FE1\u606F",name:"spu"}),u(f,{label:"\u552E\u540E\u4FE1\u606F",name:"afterinfo"}),u(f,{label:"\u9000\u6B3E\u72B6\u6001",name:"return"}),u(f,{label:"\u552E\u540E\u65E5\u5FD7",name:"afterlog"})]),_:1},8,["modelValue"])]),w("div",V,[a(o)=="info"?(l(),r(_a,{key:0,obj:a(t),isDetail:a(n),openType:a(y)},null,8,["obj","isDetail","openType"])):s("",!0),a(o)=="spu"?(l(),r(fa,{key:1,obj:a(t),isDetail:a(n),openType:a(y)},null,8,["obj","isDetail","openType"])):s("",!0),a(o)=="afterinfo"?(l(),r(pa,{key:2,obj:a(t),isDetail:a(n),openType:a(y)},null,8,["obj","isDetail","openType"])):s("",!0),a(o)=="return"?(l(),r(na,{key:3,obj:a(t),isDetail:a(n),openType:a(y)},null,8,["obj","isDetail","openType"])):s("",!0),a(o)=="afterlog"?(l(),r(ua,{key:4,obj:a(t),isDetail:a(n),openType:a(y)},null,8,["obj","isDetail","openType"])):s("",!0)]),x]),_:1})),[[q,a(I)]])]),_:2},[a(n)||a(t).status!=10&&a(t).status!=30&&a(t).status!=40?void 0:{name:"footer",fn:i(()=>[w("div",C,[a(t).status===10?(l(),r(d,{key:0,type:"primary",onClick:P},{default:i(()=>[v(" \u62D2\u7EDD\u552E\u540E ")]),_:1})):s("",!0),a(t).status===10?(l(),r(d,{key:1,type:"primary",onClick:X},{default:i(()=>[v("\u540C\u610F\u552E\u540E")]),_:1})):s("",!0),a(t).status===30?(l(),r(d,{key:2,type:"primary",onClick:z},{default:i(()=>[v(" \u786E\u8BA4\u6536\u8D27 ")]),_:1})):s("",!0),a(t).status===30?(l(),r(d,{key:3,type:"primary",onClick:H},{default:i(()=>[v("\u62D2\u7EDD\u6536\u8D27")]),_:1})):s("",!0),a(t).status===40?(l(),r(d,{key:4,type:"primary",onClick:S},{default:i(()=>[v("\u786E\u8BA4\u9000\u6B3E")]),_:1})):s("",!0)])]),key:"0"}]),1032,["title","modelValue"]),u(Da,{ref_key:"updateAuditReasonFormRef",ref:U,onSuccess:e.getDetail},null,8,["onSuccess"])],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/trade/afterSale/AfterSaleTabs.vue"]])});export{Xa as __tla,A as default};