OrderProduct-11caa93b.js 5.9 KB

1
  1. import{d as M,ah as b,b as j,e as q,r as G,z as X,o as p,c as n,j as h,w as l,a as t,a0 as $,l as U,F as D,C as B,J as H,i as a,m as r,t as s,a_ as i,dA as I,k as y,I as Q,E as W,s as Y,_ as Z,K as aa,L as la,__tla as ea}from"./index-20ebf448.js";import{a as ta,E as ra,__tla as sa}from"./el-descriptions-item-e2956d75.js";import{_ as _a,__tla as da}from"./DictTag.vue_vue_type_script_lang-b806e4b8.js";import{_ as oa,__tla as ia}from"./SPuUploadImg-ddbcde97.js";import{h as ua,__tla as fa}from"./index-f2d10317.js";import{D as pa,__tla as ca}from"./dict-11f81c64.js";import{u as na,__tla as ma}from"./useMessage-30c4ae17.js";import{_ as ba}from"./_plugin-vue_export-helper-1b428a4d.js";import"./color-6e929987.js";import{__tla as ha}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-4c57c0b6.js";import{__tla as ya}from"./index-a4ee0efc.js";import{__tla as wa}from"./el-image-viewer-b5599f30.js";let R,Pa=Promise.all([(()=>{try{return ea}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return ha}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"],R=ba(M({__name:"OrderProduct",props:{id:b.number.def(void 0),showPickUp:b.bool.def(!0),isDelivery:b.bool.def(!1)},setup(k){const T=j(),m=q(()=>T.getMobile),A=k,o=G({logs:[]}),E=A.id,F=na();return X(async()=>{(async()=>{if(E){const c=await ua(E);c||(F.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),close()),o.value=c}})()}),(c,ga)=>{const d=Q,_=W,u=Y,S=H,C=Z,N=oa,f=aa,O=_a,V=la,z=ra,J=ta;return p(),n(D,null,[k.isDelivery?U("",!0):(p(),h(S,{key:0,ref:"formRef",model:t(o),"label-width":"120px",disabled:c.isDetail,class:$({"mobile-card":t(m)}),border:!0},{default:l(()=>[a(u,null,{default:l(()=>[a(_,{span:12},{default:l(()=>[a(d,{label:"\u5546\u54C1\u603B\u989D"},{default:l(()=>[r(s(t(i)(t(o).totalPrice))+" \u5143 ",1)]),_:1})]),_:1}),a(_,{span:12},{default:l(()=>[a(d,{label:"\u5E94\u4ED8\u91D1\u989D"},{default:l(()=>[r(s(t(i)(t(o).payPrice))+" \u5143 ",1)]),_:1})]),_:1})]),_:1}),a(u,null,{default:l(()=>[a(_,{span:12},{default:l(()=>[a(d,{label:"\u4F63\u91D1\u62B5\u6263"},{default:l(()=>[r(s(t(I)(t(o).payIntegral))+" \u5143 ",1)]),_:1})]),_:1}),a(_,{span:12},{default:l(()=>[a(d,{label:"\u8FD0\u8D39\u91D1\u989D"},{default:l(()=>[r(s(t(i)(t(o).deliveryPrice))+" \u5143 ",1)]),_:1})]),_:1})]),_:1}),a(u,null,{default:l(()=>[a(_,{span:24},{default:l(()=>[a(d,{label:"\u6D88\u8D39\u5206\u62B5\u6263"},{default:l(()=>[r(s(t(I)(t(o).payConsumptionPoints))+" \u5143 ",1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model","disabled","class"])),t(m)?U("",!0):(p(),n("p",w,"\u5546\u54C1\u5217\u8868")),t(m)?(p(),n("div",P,[(p(!0),n(D,null,B(t(o).items,(e,K)=>(p(),h(S,{ref_for:!0,ref:"formRef",model:t(o),"label-width":"120px",border:!0,key:e.id,class:"mobile-card"},{default:l(()=>[y("div",g,[a(C,{icon:"ep:list"}),r(" \u5546\u54C1"+s(K+1),1)]),a(u,null,{default:l(()=>[a(_,{span:12},{default:l(()=>[a(d,{label:"\u5546\u54C1\u56FE\u7247"},{default:l(()=>[a(N,{modelValue:e.picUrl,"onUpdate:modelValue":L=>e.picUrl=L,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(u,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(i)(e.price)+"\u5143"),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),a(u,null,{default:l(()=>[a(_,{span:12},{default:l(()=>[a(d,{label:"\u5E02\u573A\u4EF7"},{default:l(()=>[r(s(t(i)(e.price))+" \u5143 ",1)]),_:2},1024)]),_:2},1024),a(_,{span:12},{default:l(()=>[a(d,{label:"\u6570\u91CF",style:{color:"red"}},{default:l(()=>[r(s(e.count),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),a(u,null,{default:l(()=>[a(_,{span:12},{default:l(()=>[a(d,{label:"\u5C0F\u8BA1"},{default:l(()=>[r(s(t(i)(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(),h(J,{key:3,width:"100"},{default:l(()=>[a(z,{labelClassName:"no-colon"},{default:l(()=>[a(u,{width:"100%"},{default:l(()=>[a(_,{span:24},{default:l(()=>[a(V,{data:t(o).items,border:""},{default:l(()=>[a(f,{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(f,{label:"\u5546\u54C1\u540D\u79F0",prop:"spuName",width:"150"},{default:l(({row:e})=>[r(s(e.spuName),1)]),_:1}),a(f,{label:"\u5546\u54C1\u6761\u7801",width:"100"},{default:l(({row:e})=>[r(s(e.spuId),1)]),_:1}),a(f,{label:"\u9500\u552E\u4EF7",prop:"price",width:"100"},{default:l(({row:e})=>[r(s(e.highPrecisionPrice?(e.highPrecisionPrice/100).toFixed(6):t(i)(e.price)+"\u5143"),1)]),_:1}),a(f,{label:"\u5E02\u573A\u4EF7",prop:"price",width:"100"},{default:l(({row:e})=>[r(s(t(i)(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})=>[r(s(t(i)(e.payPrice))+"\u5143",1)]),_:1}),a(f,{label:"\u5907\u6CE8",prop:"afterSaleStatus"},{default:l(({row:e})=>[a(O,{type:t(pa).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-c54f53cc"]])});export{Pa as __tla,R as default};