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