OrderProduct-8727b70b.js 5.4 KB

1
  1. import{d as C,af as b,b as G,e as H,r as J,x as M,o as _,c,j as h,w as l,a as t,Z as O,l as v,F as k,A as j,H as z,i as a,m as d,t as s,aY as u,dG as E,k as w,G as L,E as Y,s as W,_ as q,I as B,J as K}from"./index-34852970.js";import{a as Q,E as X}from"./el-descriptions-item-f0646587.js";import{_ as $}from"./DictTag.vue_vue_type_script_lang-7acc703f.js";import{_ as aa}from"./SPuUploadImg-9bce0c7f.js";import{h as la}from"./index-da2349de.js";import{D as ea}from"./dict-5c28424e.js";import{u as ta}from"./useMessage-f6294882.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-5fc738be.js";import"./index-69e629ed.js";import"./el-image-viewer-619778cc.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 R=G(),m=H(()=>R.getMobile),S=y,o=J({logs:[]}),P=S.id,U=ta();return M(async()=>{(async()=>{if(P){const n=await la(P);n||(U.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),close()),o.value=n}})()}),(n,g)=>{const i=L,r=Y,p=W,x=z,D=q,I=aa,f=B,A=$,F=K,N=X,T=Q;return _(),c(k,null,[y.isDelivery?v("",!0):(_(),h(x,{key:0,ref:"formRef",model:t(o),"label-width":"120px",disabled:n.isDetail,class:O({"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(E)(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(E)(t(o).payConsumptionPoints))+" \u5143 ",1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model","disabled","class"])),t(m)?v("",!0):(_(),c("p",sa,"\u5546\u54C1\u5217\u8868")),t(m)?(_(),c("div",ra,[(_(!0),c(k,null,j(t(o).items,(e,V)=>(_(),h(x,{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(D,{icon:"ep:list"}),d(" \u5546\u54C1"+s(V+1),1)]),a(p,null,{default:l(()=>[a(r,{span:12},{default:l(()=>[a(i,{label:"\u5546\u54C1\u56FE\u7247"},{default:l(()=>[a(I,{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",style:{color:"red"}},{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(T,{key:3,width:"100"},{default:l(()=>[a(N,{labelClassName:"no-colon"},{default:l(()=>[a(p,{width:"100%"},{default:l(()=>[a(r,{span:24},{default:l(()=>[a(F,{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(A,{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-e403d711"]]);export{pa as default};