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