OrderMobileIndex-6b403618.js 5.4 KB

1
  1. import{d as M,M as P,u as j,r as i,y as z,z as F,h as w,C as B,a as t,o as l,k as o,w as m,j as y,i as a,Q as L,a6 as Q,R as s,l as T,A as U,ay as V,q as W,L as X,__tla as Y}from"./index-abaca7e8.js";import{_ as Z,__tla as $}from"./ContentWrap.vue_vue_type_script_setup_true_lang-9818245e.js";import{g as G,u as H,__tla as J}from"./index-e692387c.js";import K,{__tla as tt}from"./OrderBaseInfo-c994e165.js";import at,{__tla as et}from"./OrderProduct-c7149302.js";import rt,{__tla as _t}from"./OrderComment-768849eb.js";import lt,{__tla as ot}from"./OrderService-2e53494d.js";import{A as st,__tla as nt}from"./AfterSale-ad2e0ae0.js";import ct,{__tla as it}from"./OrderLogistics-9f2d888f.js";import mt,{__tla as ut}from"./orderPay-a11ae6a2.js";import ft,{__tla as yt}from"./OrderLogs-dd575d64.js";import{u as dt,__tla as pt}from"./useMessage-7c79d01b.js";import{_ as ht}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as vt}from"./el-card-ff5a526a.js";import{__tla as gt}from"./SPuUploadImg-9b494588.js";import{__tla as kt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-8933ee1b.js";import{__tla as bt}from"./index-1a54edc6.js";import{__tla as wt}from"./el-image-viewer-45c4debe.js";import{__tla as Bt}from"./formatTime-0c1ba065.js";import{__tla as Tt}from"./dict-885a7988.js";import{__tla as Rt}from"./el-descriptions-item-ebc9da6a.js";import{__tla as Et}from"./DictTag.vue_vue_type_script_lang-c84a7172.js";import"./color-6e929987.js";import{__tla as Nt}from"./el-image-56fee7ab.js";import{__tla as xt}from"./index.vue_vue_type_script_setup_true_lang-f7ebf07b.js";import{__tla as St}from"./index-e37a1056.js";import{__tla as It}from"./index-e93f6059.js";import{__tla as Ct}from"./el-timeline-item-0fa6c9de.js";import{__tla as Ot}from"./index-03d9a273.js";let R,qt=Promise.all([(()=>{try{return Y}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return yt}catch{}})(),(()=>{try{return pt}catch{}})(),(()=>{try{return vt}catch{}})(),(()=>{try{return gt}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Tt}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return Nt}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return St}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return Ot}catch{}})()]).then(async()=>{let d,p,h;d={class:"top",style:{position:"relative",overflow:"hidden"}},p={class:"bottom"},h={class:"bottom-button"},R=ht(M({name:"ProductSpuForm",__name:"OrderMobileIndex",emits:["success"],setup(At,{emit:E}){const N=P(),{push:x}=j(),{t:u}=U(),v=dt(),f=i(!1),e=i("info"),r=i(0);r.value=N.params.id;const g=i(null),k=i(""),S=E,I=async()=>{const{value:n}=await V.prompt("\u8BF7\u8F93\u5165\u5907\u6CE8","\u5907\u6CE8",{inputValue:k,confirmButtonText:u("common.ok"),cancelButtonText:u("common.cancel")});try{await H({id:r.value,remark:n}),v.success(u("common.updateSuccess")),g.value.getDetail(),S("success",!0)}finally{f.value=!1}},C=()=>{x({name:"Order"})};return z(async()=>{await(async n=>{if(n){const c=await G(n);c||(v.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),close()),k.value=c.remark}})(r.value),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"}),F(()=>{document.getElementsByTagName("section")[1].style.width="auto",document.getElementsByTagName("section")[1].style.padding="20px",document.getElementsByTagName("section")[1].style.background="var(--el-color-white)"}),(n,c)=>{const _=w("van-tab"),O=w("van-tabs"),b=W,q=Z,A=X;return B((l(),o(q,{style:{"overflow-y":"auto"},class:"ContentWrap"},{default:m(()=>[y("div",d,[a(O,{active:t(e),"onUpdate:active":c[0]||(c[0]=D=>L(e)?e.value=D:null)},{default:m(()=>[a(_,{title:"\u57FA\u672C\u4FE1\u606F",name:"info"}),a(_,{title:"\u5546\u54C1",name:"product"}),a(_,{title:"\u8BC4\u4EF7",name:"comment"}),a(_,{title:"\u5BA2\u670D",name:"service"}),a(_,{title:"\u552E\u540E",name:"afterSale"}),a(_,{title:"\u7269\u6D41",name:"logistics"}),a(_,{title:"\u652F\u4ED8",name:"pay"}),a(_,{title:"\u65E5\u5FD7",name:"logs"})]),_:1},8,["active"])]),y("div",p,[B(a(K,{ref_key:"baseInfoRef",ref:g,"is-detail":!1,id:t(r)},null,8,["id"]),[[Q,t(e)=="info"]]),t(e)=="product"?(l(),o(at,{key:0,ref:"infoRef",id:t(r)},null,8,["id"])):s("",!0),t(e)=="comment"?(l(),o(rt,{key:1,ref:"infoRef",id:t(r)},null,8,["id"])):s("",!0),t(e)=="service"?(l(),o(lt,{key:2,ref:"infoRef",id:t(r)},null,8,["id"])):s("",!0),t(e)=="afterSale"?(l(),o(st,{key:3,orderId:t(r),openSource:"Order"},null,8,["orderId"])):s("",!0),t(e)=="logistics"?(l(),o(ct,{key:4,ref:"infoRef",id:t(r)},null,8,["id"])):s("",!0),t(e)=="pay"?(l(),o(mt,{key:5,ref:"infoRef",id:t(r)},null,8,["id"])):s("",!0),t(e)=="logs"?(l(),o(ft,{key:6,ref:"infoRef",id:t(r)},null,8,["id"])):s("",!0)]),y("div",h,[a(b,{onClick:C},{default:m(()=>[T("\u8FD4 \u56DE")]),_:1}),a(b,{disabled:t(f),type:"primary",onClick:I},{default:m(()=>[T("\u5907 \u6CE8")]),_:1},8,["disabled"])])]),_:1})),[[A,t(f)]])}}}),[["__scopeId","data-v-a76abe47"]])});export{qt as __tla,R as default};