AfterSaleTabs-2ec59183.js 5.6 KB

1
  1. import{d as E,h as G,r as c,o as e,c as H,f as i,aY as J,a,w as n,g as D,v as l,n as b,P as r,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-f8a6e22a.js";import{_ as ta,__tla as ea}from"./ContentWrap-e223a216.js";import{_ as la,__tla as ra}from"./SPuUploadImg-169ef0df.js";import{_ as sa,__tla as oa}from"./Dialog-15e28602.js";import _a,{__tla as ca}from"./AfterSaleBaseInfo-30859e29.js";import ia,{__tla as na}from"./AfterSaleLog-c52c49c6.js";import ua,{__tla as ma}from"./AfterSaleRetrun-86b57adb.js";import pa,{__tla as ya}from"./AfterSaleInfo-9919d2c0.js";import fa,{__tla as da}from"./AfterSaleSpuInfo-ae99a104.js";import{a as ha,r as va,b as ba,c as ka,__tla as wa}from"./index-960b2d7f.js";import Da,{__tla as Ta}from"./AfterSaleDisagreeForm-a8342da4.js";import{u as ga,__tla as ja}from"./useMessage-37562b67.js";import{__tla as Va}from"./el-card-187464e6.js";import{__tla as xa}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-7a091e48.js";import{__tla as Ca}from"./index-62752b63.js";import{__tla as Ua}from"./el-image-viewer-eff6402d.js";import{__tla as Sa}from"./dict-2e0d3678.js";import{__tla as Aa}from"./el-descriptions-item-eab4befe.js";import{__tla as za}from"./el-timeline-item-6a97c3c2.js";import{__tla as Fa}from"./formatTime-44167d08.js";import{__tla as Ia}from"./el-image-3429d956.js";let S,Pa=Promise.all([(()=>{try{return aa}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return na}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 za}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ia}catch{}})()]).then(async()=>{let j,V,x,C;j={class:"left"},V={class:"right"},x=D("div",{style:{clear:"both"}},null,-1),C={class:"dialog-footer"},S=$(E({__name:"AfterSaleTabs",emits:["success"],setup(Ra,{expose:A,emit:z}){const{t:f}=G(),F=c(!1),s=c("info"),u=c(!1),T=c(""),m=c(!1),y=c("view"),t=c({}),k=c("picUrl");A({open:async(o,_)=>{k.value=_.picUrl,t.value=_,y.value=o,T.value=f("action."+o),o=="view"&&(T.value="\u67E5\u770B"),o=="view"?m.value=!0:(m.value=!1,s.value="info"),u.value=!0}});const w=z,p=ga(),U=c(),I=async()=>{var o;(o=U.value)==null||o.open(t)},P=async()=>{try{await p.confirm("\u662F\u5426\u540C\u610F\u552E\u540E\uFF1F"),await ha(t.id),p.success(f("common.success")),u.value=!1,w("success")}catch{}},R=async()=>{try{await p.confirm("\u662F\u5426\u786E\u8BA4\u6536\u8D27\uFF1F"),await va(t.id),p.success(f("common.success")),u.value=!1,w("success")}catch{}},O=async()=>{try{await p.confirm("\u662F\u5426\u62D2\u7EDD\u6536\u8D27\uFF1F"),await ba(t.id),p.success(f("common.success")),u.value=!1,w("success")}catch{}},W=async()=>{try{await p.confirm("\u662F\u5426\u786E\u8BA4\u9000\u6B3E\uFF1F"),await ka(t.id),p.success(f("common.success")),u.value=!1,w("success")}catch{}};return(o,_)=>{const X=la,d=M,Y=N,q=ta,h=Q,B=Z;return e(),H(L,null,[i(sa,{title:a(T),modelValue:a(u),"onUpdate:modelValue":_[2]||(_[2]=v=>g(u)?u.value=v:null),width:"70%"},J({default:n(()=>[K((e(),l(q,{style:{"max-height":"550px","min-height":"550px","overflow-y":"auto",border:"none"}},{default:n(()=>[D("div",j,[i(X,{modelValue:a(k),"onUpdate:modelValue":_[0]||(_[0]=v=>g(k)?k.value=v:null),disabled:!0},null,8,["modelValue"]),i(Y,{modelValue:a(s),"onUpdate:modelValue":_[1]||(_[1]=v=>g(s)?s.value=v:null),"tab-position":"left",class:"child-tabs"},{default:n(()=>[i(d,{label:"\u8BA2\u5355\u4FE1\u606F",name:"info"}),i(d,{label:"\u5546\u54C1\u4FE1\u606F",name:"spu"}),i(d,{label:"\u552E\u540E\u4FE1\u606F",name:"afterinfo"}),i(d,{label:"\u9000\u6B3E\u72B6\u6001",name:"return"}),i(d,{label:"\u552E\u540E\u65E5\u5FD7",name:"afterlog"})]),_:1},8,["modelValue"])]),D("div",V,[a(s)=="info"?(e(),l(_a,{key:0,obj:a(t),isDetail:a(m),openType:a(y)},null,8,["obj","isDetail","openType"])):r("",!0),a(s)=="spu"?(e(),l(fa,{key:1,obj:a(t),isDetail:a(m),openType:a(y)},null,8,["obj","isDetail","openType"])):r("",!0),a(s)=="afterinfo"?(e(),l(pa,{key:2,obj:a(t),isDetail:a(m),openType:a(y)},null,8,["obj","isDetail","openType"])):r("",!0),a(s)=="return"?(e(),l(ua,{key:3,obj:a(t),isDetail:a(m),openType:a(y)},null,8,["obj","isDetail","openType"])):r("",!0),a(s)=="afterlog"?(e(),l(ia,{key:4,obj:a(t),isDetail:a(m),openType:a(y)},null,8,["obj","isDetail","openType"])):r("",!0)]),x]),_:1})),[[B,a(F)]])]),_:2},[a(m)||a(t).status!=10&&a(t).status!=30&&a(t).status!=40?void 0:{name:"footer",fn:n(()=>[D("div",C,[a(t).status===10?(e(),l(h,{key:0,type:"primary",onClick:I},{default:n(()=>[b(" \u62D2\u7EDD\u552E\u540E ")]),_:1})):r("",!0),a(t).status===10?(e(),l(h,{key:1,type:"primary",onClick:P},{default:n(()=>[b("\u540C\u610F\u552E\u540E")]),_:1})):r("",!0),a(t).status===30?(e(),l(h,{key:2,type:"primary",onClick:R},{default:n(()=>[b(" \u786E\u8BA4\u6536\u8D27 ")]),_:1})):r("",!0),a(t).status===30?(e(),l(h,{key:3,type:"primary",onClick:O},{default:n(()=>[b("\u62D2\u7EDD\u6536\u8D27")]),_:1})):r("",!0),a(t).status===40?(e(),l(h,{key:4,type:"primary",onClick:W},{default:n(()=>[b("\u786E\u8BA4\u9000\u6B3E")]),_:1})):r("",!0)])]),key:"0"}]),1032,["title","modelValue"]),i(Da,{ref_key:"updateAuditReasonFormRef",ref:U,onSuccess:o.getDetail},null,8,["onSuccess"])],64)}}}),[["__file","D:/zhongxing/mall-newfeifan-zx-admin/src/views/mall/trade/afterSale/AfterSaleTabs.vue"]])});export{Pa as __tla,S as default};