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