1 |
- import{d as G,ah as h,Z as M,L as C,r as H,l as Q,o as p,c as n,x as b,w as l,a as t,a0 as Z,Q as S,F as U,v as j,G as $,g as a,n as r,t as s,a$ as o,dG as J,h as y,B as K,E as W,j as X,H as Y,I as aa,q as la,_ as ea,__tla as ta}from"./index-52b99925.js";import{a as ra,E as sa,__tla as _a}from"./el-descriptions-item-a6736d0e.js";import{_ as da,__tla as ia}from"./DictTag-559e7235.js";import{_ as oa,__tla as ua}from"./SPuUploadImg-ebf109cd.js";import{f as fa,__tla as pa}from"./index-e4080718.js";import{D as ca,__tla as na}from"./dict-954b1420.js";import{u as ma,__tla as ha}from"./useMessage-c41e583e.js";import"./color-6e929987.js";import{__tla as ba}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-9a220cc6.js";import{__tla as ya}from"./index-2375ba8a.js";import{__tla as wa}from"./el-image-viewer-8d62bae1.js";let k,Pa=Promise.all([(()=>{try{return ta}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return wa}catch{}})()]).then(async()=>{let w,P,g,v,x;w={key:1,style:{"margin-bottom":"5px","font-weight":"bold",color:"#909399","font-size":"16px"}},P={key:2},g={class:"mobile-card-title"},v={style:{height:"56px",margin:"0 auto","text-align":"center"}},x=["src"],k=ea(G({__name:"OrderProduct",props:{id:h.number.def(void 0),showPickUp:h.bool.def(!0),isDelivery:h.bool.def(!1)},setup(D){const R=M(),m=C(()=>R.getMobile),A=D,i=H({logs:[]}),E=A.id,N=ma();return Q(async()=>{(async()=>{if(E){const c=await fa(E);c||(N.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),close()),i.value=c}})()}),(c,ga)=>{const d=K,_=W,f=X,I=$,T=la,F=oa,u=Y,L=da,V=aa,z=sa,O=ra;return p(),n(U,null,[D.isDelivery?S("",!0):(p(),b(I,{key:0,ref:"formRef",model:t(i),"label-width":"120px",disabled:c.isDetail,class:Z({"mobile-card":t(m)}),border:!0},{default:l(()=>[a(f,null,{default:l(()=>[a(_,{span:12},{default:l(()=>[a(d,{label:"\u5546\u54C1\u603B\u989D"},{default:l(()=>[r(s(t(o)(t(i).totalPrice))+" \u5143 ",1)]),_:1})]),_:1}),a(_,{span:12},{default:l(()=>[a(d,{label:"\u5E94\u4ED8\u91D1\u989D"},{default:l(()=>[r(s(t(o)(t(i).payPrice))+" \u5143 ",1)]),_:1})]),_:1})]),_:1}),a(f,null,{default:l(()=>[a(_,{span:12},{default:l(()=>[a(d,{label:"\u79EF\u5206\u62B5\u6263"},{default:l(()=>[r(s(t(J)(t(i).payIntegral))+" \u5143 ",1)]),_:1})]),_:1}),a(_,{span:12},{default:l(()=>[a(d,{label:"\u8FD0\u8D39\u91D1\u989D"},{default:l(()=>[r(s(t(o)(t(i).deliveryPrice))+" \u5143 ",1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model","disabled","class"])),t(m)?S("",!0):(p(),n("p",w,"\u5546\u54C1\u5217\u8868")),t(m)?(p(),n("div",P,[(p(!0),n(U,null,j(t(i).items,(e,q)=>(p(),b(I,{ref_for:!0,ref:"formRef",model:t(i),"label-width":"120px",border:!0,key:e.id,class:"mobile-card"},{default:l(()=>[y("div",g,[a(T,{icon:"ep:list"}),r(" \u5546\u54C1"+s(q+1),1)]),a(f,null,{default:l(()=>[a(_,{span:12},{default:l(()=>[a(d,{label:"\u5546\u54C1\u56FE\u7247"},{default:l(()=>[a(F,{modelValue:e.picUrl,"onUpdate:modelValue":B=>e.picUrl=B,disabled:!0},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024),a(_,{span:12},{default:l(()=>[a(d,{label:"\u5546\u54C1\u540D\u79F0"},{default:l(()=>[r(s(e.spuName),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),a(f,null,{default:l(()=>[a(_,{span:12},{default:l(()=>[a(d,{label:"\u5546\u54C1\u6761\u7801"},{default:l(()=>[r(s(e.spuId),1)]),_:2},1024)]),_:2},1024),a(_,{span:12},{default:l(()=>[a(d,{label:"\u9500\u552E\u4EF7"},{default:l(()=>[r(s(e.highPrecisionPrice?(e.highPrecisionPrice/100).toFixed(6):t(o)(e.price)+"\u5143"),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),a(f,null,{default:l(()=>[a(_,{span:12},{default:l(()=>[a(d,{label:"\u5E02\u573A\u4EF7"},{default:l(()=>[r(s(t(o)(e.price))+" \u5143 ",1)]),_:2},1024)]),_:2},1024),a(_,{span:12},{default:l(()=>[a(d,{label:"\u6570\u91CF"},{default:l(()=>[r(s(e.count),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),a(f,null,{default:l(()=>[a(_,{span:12},{default:l(()=>[a(d,{label:"\u5C0F\u8BA1"},{default:l(()=>[r(s(t(o)(e.payPrice))+" \u5143 ",1)]),_:2},1024)]),_:2},1024),a(_,{span:12},{default:l(()=>[a(d,{label:"\u5907\u6CE8"},{default:l(()=>[r(" \u65E0 ")]),_:1})]),_:1})]),_:2},1024)]),_:2},1032,["model"]))),128))])):(p(),b(O,{key:3,width:"100"},{default:l(()=>[a(z,{labelClassName:"no-colon"},{default:l(()=>[a(f,{width:"100%"},{default:l(()=>[a(_,{span:24},{default:l(()=>[a(V,{data:t(i).items,border:""},{default:l(()=>[a(u,{label:"\u5546\u54C1\u56FE\u7247",width:"100"},{default:l(({row:e})=>[y("div",v,[y("img",{src:e.picUrl,style:{"max-width":"100%","max-height":"100%"}},null,8,x)])]),_:1}),a(u,{label:"\u5546\u54C1\u540D\u79F0",prop:"spuName",width:"150"},{default:l(({row:e})=>[r(s(e.spuName),1)]),_:1}),a(u,{label:"\u5546\u54C1\u6761\u7801",width:"100"},{default:l(({row:e})=>[r(s(e.spuId),1)]),_:1}),a(u,{label:"\u9500\u552E\u4EF7",prop:"price",width:"100"},{default:l(({row:e})=>[r(s(e.highPrecisionPrice?(e.highPrecisionPrice/100).toFixed(6):t(o)(e.price)+"\u5143"),1)]),_:1}),a(u,{label:"\u5E02\u573A\u4EF7",prop:"price",width:"100"},{default:l(({row:e})=>[r(s(t(o)(e.price))+"\u5143",1)]),_:1}),a(u,{label:"\u6570\u91CF",prop:"count",width:"100"}),a(u,{label:"\u5C0F\u8BA1",prop:"payPrice",width:"100"},{default:l(({row:e})=>[r(s(t(o)(e.payPrice))+"\u5143",1)]),_:1}),a(u,{label:"\u5907\u6CE8",prop:"afterSaleStatus"},{default:l(({row:e})=>[a(L,{type:t(ca).TRADE_ORDER_ITEM_AFTER_SALE_STATUS,value:e.afterSaleStatus},null,8,["type","value"])]),_:1})]),_:1},8,["data"])]),_:1})]),_:1})]),_:1})]),_:1}))],64)}}}),[["__scopeId","data-v-a58ad298"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/trade/order/components/OrderProduct.vue"]])});export{Pa as __tla,k as default};
|