OrderProduct-93cf0391.js 5.3 KB

1
  1. import{d as C,ap as b,y as M,e as G,r as J,b as O,o as _,c,A as h,B as l,a as t,aa as B,E as x,F as D,P as L,U as W,f as a,G as d,D as s,dD as u,dN as S,C as w,S as j,J as q,M as K,_ as H,V as Q,W as X}from"./index-b9299550.js";import{a as Y,E as Z}from"./el-descriptions-item-d52ce73b.js";import{_ as $}from"./DictTag.vue_vue_type_script_lang-128aab57.js";import{_ as aa}from"./SPuUploadImg-b6a12c80.js";import{f as la}from"./index-b4aba202.js";import{D as ea}from"./dict-fc5218c3.js";import{u as ta}from"./useMessage-903d430d.js";import{_ as da}from"./_plugin-vue_export-helper-1b428a4d.js";import"./color-6e929987.js";import"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-cc5a2c9f.js";import"./index-8605fb4b.js";import"./el-image-viewer-498779d9.js";const sa={key:1,style:{"margin-bottom":"5px","font-weight":"bold",color:"#909399","font-size":"16px"}},ra={key:2},ia={class:"mobile-card-title"},oa={style:{height:"56px",margin:"0 auto","text-align":"center"}},ua=["src"],pa=da(C({__name:"OrderProduct",props:{id:b.number.def(void 0),showPickUp:b.bool.def(!0),isDelivery:b.bool.def(!1)},setup(y){const U=M(),m=G(()=>U.getMobile),E=y,o=J({logs:[]}),P=E.id,k=ta();return O(async()=>{(async()=>{if(P){const n=await la(P);n||(k.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),close()),o.value=n}})()}),(n,g)=>{const i=j,r=q,p=K,v=W,A=H,N=aa,f=Q,R=$,T=X,I=Z,V=Y;return _(),c(D,null,[y.isDelivery?x("",!0):(_(),h(v,{key:0,ref:"formRef",model:t(o),"label-width":"120px",disabled:n.isDetail,class:B({"mobile-card":t(m)}),border:!0},{default:l(()=>[a(p,null,{default:l(()=>[a(r,{span:12},{default:l(()=>[a(i,{label:"\u5546\u54C1\u603B\u989D"},{default:l(()=>[d(s(t(u)(t(o).totalPrice))+" \u5143 ",1)]),_:1})]),_:1}),a(r,{span:12},{default:l(()=>[a(i,{label:"\u5E94\u4ED8\u91D1\u989D"},{default:l(()=>[d(s(t(u)(t(o).payPrice))+" \u5143 ",1)]),_:1})]),_:1})]),_:1}),a(p,null,{default:l(()=>[a(r,{span:12},{default:l(()=>[a(i,{label:"\u4F63\u91D1\u62B5\u6263"},{default:l(()=>[d(s(t(S)(t(o).payIntegral))+" \u5143 ",1)]),_:1})]),_:1}),a(r,{span:12},{default:l(()=>[a(i,{label:"\u8FD0\u8D39\u91D1\u989D"},{default:l(()=>[d(s(t(u)(t(o).deliveryPrice))+" \u5143 ",1)]),_:1})]),_:1})]),_:1}),a(p,null,{default:l(()=>[a(r,{span:24},{default:l(()=>[a(i,{label:"\u6D88\u8D39\u5206\u62B5\u6263"},{default:l(()=>[d(s(t(S)(t(o).payConsumptionPoints))+" \u5143 ",1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model","disabled","class"])),t(m)?x("",!0):(_(),c("p",sa,"\u5546\u54C1\u5217\u8868")),t(m)?(_(),c("div",ra,[(_(!0),c(D,null,L(t(o).items,(e,F)=>(_(),h(v,{ref_for:!0,ref:"formRef",model:t(o),"label-width":"120px",border:!0,key:e.id,class:"mobile-card"},{default:l(()=>[w("div",ia,[a(A,{icon:"ep:list"}),d(" \u5546\u54C1"+s(F+1),1)]),a(p,null,{default:l(()=>[a(r,{span:12},{default:l(()=>[a(i,{label:"\u5546\u54C1\u56FE\u7247"},{default:l(()=>[a(N,{modelValue:e.picUrl,"onUpdate:modelValue":z=>e.picUrl=z,disabled:!0},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024),a(r,{span:12},{default:l(()=>[a(i,{label:"\u5546\u54C1\u540D\u79F0"},{default:l(()=>[d(s(e.spuName),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),a(p,null,{default:l(()=>[a(r,{span:12},{default:l(()=>[a(i,{label:"\u5546\u54C1\u6761\u7801"},{default:l(()=>[d(s(e.spuId),1)]),_:2},1024)]),_:2},1024),a(r,{span:12},{default:l(()=>[a(i,{label:"\u9500\u552E\u4EF7"},{default:l(()=>[d(s(e.highPrecisionPrice?(e.highPrecisionPrice/100).toFixed(6):t(u)(e.price)+"\u5143"),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),a(p,null,{default:l(()=>[a(r,{span:12},{default:l(()=>[a(i,{label:"\u5E02\u573A\u4EF7"},{default:l(()=>[d(s(t(u)(e.price))+" \u5143 ",1)]),_:2},1024)]),_:2},1024),a(r,{span:12},{default:l(()=>[a(i,{label:"\u6570\u91CF"},{default:l(()=>[d(s(e.count),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),a(p,null,{default:l(()=>[a(r,{span:12},{default:l(()=>[a(i,{label:"\u5C0F\u8BA1"},{default:l(()=>[d(s(t(u)(e.payPrice))+" \u5143 ",1)]),_:2},1024)]),_:2},1024),a(r,{span:12},{default:l(()=>[a(i,{label:"\u5907\u6CE8"},{default:l(()=>g[0]||(g[0]=[d(" \u65E0 ")])),_:1})]),_:1})]),_:2},1024)]),_:2},1032,["model"]))),128))])):(_(),h(V,{key:3,width:"100"},{default:l(()=>[a(I,{labelClassName:"no-colon"},{default:l(()=>[a(p,{width:"100%"},{default:l(()=>[a(r,{span:24},{default:l(()=>[a(T,{data:t(o).items,border:""},{default:l(()=>[a(f,{label:"\u5546\u54C1\u56FE\u7247",width:"100"},{default:l(({row:e})=>[w("div",oa,[w("img",{src:e.picUrl,style:{"max-width":"100%","max-height":"100%"}},null,8,ua)])]),_:1}),a(f,{label:"\u5546\u54C1\u540D\u79F0",prop:"spuName",width:"150"},{default:l(({row:e})=>[d(s(e.spuName),1)]),_:1}),a(f,{label:"\u5546\u54C1\u6761\u7801",width:"100"},{default:l(({row:e})=>[d(s(e.spuId),1)]),_:1}),a(f,{label:"\u9500\u552E\u4EF7",prop:"price",width:"100"},{default:l(({row:e})=>[d(s(e.highPrecisionPrice?(e.highPrecisionPrice/100).toFixed(6):t(u)(e.price)+"\u5143"),1)]),_:1}),a(f,{label:"\u5E02\u573A\u4EF7",prop:"price",width:"100"},{default:l(({row:e})=>[d(s(t(u)(e.price))+"\u5143",1)]),_:1}),a(f,{label:"\u6570\u91CF",prop:"count",width:"100"}),a(f,{label:"\u5C0F\u8BA1",prop:"payPrice",width:"100"},{default:l(({row:e})=>[d(s(t(u)(e.payPrice))+"\u5143",1)]),_:1}),a(f,{label:"\u5907\u6CE8",prop:"afterSaleStatus"},{default:l(({row:e})=>[a(R,{type:t(ea).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-f5e9cd09"]]);export{pa as default};