1 |
- import{d as j,af as g,b as G,e as M,r as O,x as z,o as i,c as r,j as v,w as a,a as l,Z as C,l as p,F as T,A as H,H as J,i as e,k as d,t as o,aY as f,dG as L,m,G as Y,E as Z,s as q,_ as B,I as K,J as Q}from"./index-df709923.js";import{a as W,E as X}from"./el-descriptions-item-cc479a39.js";import{_ as $}from"./DictTag.vue_vue_type_script_lang-6753827b.js";import{_ as ee}from"./SPuUploadImg-8bef2528.js";import{h as ae}from"./index-69e91744.js";import{D as le}from"./dict-017bf708.js";import{u as se}from"./useMessage-89e9d1aa.js";import{_ as te}from"./_plugin-vue_export-helper-1b428a4d.js";import"./color-6e929987.js";import"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-2a8cd6e4.js";import"./index-54511734.js";import"./el-image-viewer-90ad41b7.js";const ie={class:"flex items-center"},re={key:0,class:"points-red"},de={key:1,class:"points-green"},pe={class:"ml-3px"},oe={class:"flex items-center"},ne={key:0,class:"points-red"},ce={key:1,class:"points-green"},ue={class:"ml-3px"},fe={key:1,style:{"margin-bottom":"5px","font-weight":"bold",color:"#909399","font-size":"16px"}},me={key:2},_e={class:"mobile-card-title"},ye={class:"flex items-center"},be={key:0,class:"points-red"},ge={key:1,class:"points-green"},ve={class:"ml-3px"},xe={class:"flex items-center"},he={key:0,class:"points-red"},we={key:1,class:"points-green"},ke={class:"ml-3px"},Te={class:"flex items-center"},Pe={key:0,class:"points-red"},Re={key:1,class:"points-green"},Se={class:"ml-3px"},Ue={style:{height:"56px",margin:"0 auto","text-align":"center"}},De=["src"],Ee={class:"flex items-center"},Ie={key:0,class:"points-red"},Ae={key:1,class:"points-green"},Ne={class:"ml-3px"},Fe={class:"flex items-center"},Ve={key:0,class:"points-red"},je={key:1,class:"points-green"},Ge={class:"ml-3px"},Me={class:"flex items-center"},Oe={key:0,class:"points-red"},ze={key:1,class:"points-green"},Ce={class:"ml-3px"},He=te(j({__name:"OrderProduct",props:{id:g.number.def(void 0),showPickUp:g.bool.def(!0),isDelivery:g.bool.def(!1)},setup(x){const P=G(),b=M(()=>P.getMobile),R=x,t=O({logs:[]}),h=R.id,S=se();return z(async()=>{(async()=>{if(h){const y=await ae(h);y||(S.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),close()),t.value=y}})()}),(y,w)=>{const c=Y,n=Z,_=q,k=J,U=B,D=ee,u=K,E=$,I=Q,A=X,N=W;return i(),r(T,null,[x.isDelivery?p("",!0):(i(),v(k,{key:0,ref:"formRef",model:l(t),"label-width":"120px",disabled:y.isDetail,class:C({"mobile-card":l(b)}),border:!0},{default:a(()=>[e(_,null,{default:a(()=>[e(n,{span:12},{default:a(()=>[e(c,{label:"\u5546\u54C1\u603B\u989D"},{default:a(()=>[d("div",ie,[l(t).integralType===1?(i(),r("div",re)):p("",!0),l(t).integralType===3?(i(),r("div",de)):p("",!0),d("span",pe,o(l(f)(l(t).totalPrice)),1)])]),_:1})]),_:1}),e(n,{span:12},{default:a(()=>[e(c,{label:"\u5E94\u4ED8\u91D1\u989D"},{default:a(()=>[d("div",oe,[l(t).integralType===1?(i(),r("div",ne)):p("",!0),l(t).integralType===3?(i(),r("div",ce)):p("",!0),d("span",ue,o(l(L)(l(t).payIntegral)),1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","disabled","class"])),l(b)?p("",!0):(i(),r("p",fe,"\u5546\u54C1\u5217\u8868")),l(b)?(i(),r("div",me,[(i(!0),r(T,null,H(l(t).items,(s,F)=>(i(),v(k,{ref_for:!0,ref:"formRef",model:l(t),"label-width":"120px",border:!0,key:s.id,class:"mobile-card"},{default:a(()=>[d("div",_e,[e(U,{icon:"ep:list"}),m(" \u5546\u54C1"+o(F+1),1)]),e(_,null,{default:a(()=>[e(n,{span:12},{default:a(()=>[e(c,{label:"\u5546\u54C1\u56FE\u7247"},{default:a(()=>[e(D,{modelValue:s.picUrl,"onUpdate:modelValue":V=>s.picUrl=V,disabled:!0},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024),e(n,{span:12},{default:a(()=>[e(c,{label:"\u5546\u54C1\u540D\u79F0"},{default:a(()=>[m(o(s.spuName),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),e(_,null,{default:a(()=>[e(n,{span:12},{default:a(()=>[e(c,{label:"\u5546\u54C1\u6761\u7801"},{default:a(()=>[m(o(s.spuId),1)]),_:2},1024)]),_:2},1024),e(n,{span:12},{default:a(()=>[e(c,{label:"\u9500\u552E\u4EF7"},{default:a(()=>[d("div",ye,[l(t).integralType===1?(i(),r("div",be)):p("",!0),l(t).integralType===3?(i(),r("div",ge)):p("",!0),d("span",ve,o(s.highPrecisionPrice?(s.highPrecisionPrice/100).toFixed(6):l(f)(s.price)),1)])]),_:2},1024)]),_:2},1024)]),_:2},1024),e(_,null,{default:a(()=>[e(n,{span:12},{default:a(()=>[e(c,{label:"\u5E02\u573A\u4EF7"},{default:a(()=>[d("div",xe,[l(t).integralType===1?(i(),r("div",he)):p("",!0),l(t).integralType===3?(i(),r("div",we)):p("",!0),d("span",ke,o(l(f)(s.price)),1)])]),_:2},1024)]),_:2},1024),e(n,{span:12},{default:a(()=>[e(c,{label:"\u6570\u91CF",style:{color:"red"}},{default:a(()=>[m(o(s.count),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),e(_,null,{default:a(()=>[e(n,{span:12},{default:a(()=>[e(c,{label:"\u5C0F\u8BA1"},{default:a(()=>[d("div",Te,[l(t).integralType===1?(i(),r("div",Pe)):p("",!0),l(t).integralType===3?(i(),r("div",Re)):p("",!0),d("span",Se,o(l(f)(s.price*s.count)),1)])]),_:2},1024)]),_:2},1024),e(n,{span:12},{default:a(()=>[e(c,{label:"\u5907\u6CE8"},{default:a(()=>w[0]||(w[0]=[m(" \u65E0 ")])),_:1})]),_:1})]),_:2},1024)]),_:2},1032,["model"]))),128))])):(i(),v(N,{key:3,width:"100"},{default:a(()=>[e(A,{labelClassName:"no-colon"},{default:a(()=>[e(_,{width:"100%"},{default:a(()=>[e(n,{span:24},{default:a(()=>[e(I,{data:l(t).items,border:""},{default:a(()=>[e(u,{label:"\u5546\u54C1\u56FE\u7247",width:"100"},{default:a(({row:s})=>[d("div",Ue,[d("img",{src:s.picUrl,style:{"max-width":"100%","max-height":"100%"}},null,8,De)])]),_:1}),e(u,{label:"\u5546\u54C1\u540D\u79F0",prop:"spuName",width:"150"},{default:a(({row:s})=>[m(o(s.spuName),1)]),_:1}),e(u,{label:"\u5546\u54C1\u6761\u7801",width:"100"},{default:a(({row:s})=>[m(o(s.spuId),1)]),_:1}),e(u,{label:"\u9500\u552E\u4EF7",prop:"price",width:"100"},{default:a(({row:s})=>[d("div",Ee,[l(t).integralType===1?(i(),r("div",Ie)):p("",!0),l(t).integralType===3?(i(),r("div",Ae)):p("",!0),d("span",Ne,o(l(f)(s.price)),1)])]),_:1}),e(u,{label:"\u5E02\u573A\u4EF7",prop:"price",width:"100"},{default:a(({row:s})=>[d("div",Fe,[l(t).integralType===1?(i(),r("div",Ve)):p("",!0),l(t).integralType===3?(i(),r("div",je)):p("",!0),d("span",Ge,o(l(f)(s.price)),1)])]),_:1}),e(u,{label:"\u6570\u91CF",prop:"count",width:"100"}),e(u,{label:"\u5C0F\u8BA1",prop:"payPrice",width:"100"},{default:a(({row:s})=>[d("div",Me,[l(t).integralType===1?(i(),r("div",Oe)):p("",!0),l(t).integralType===3?(i(),r("div",ze)):p("",!0),d("span",Ce,o(l(f)(s.price*s.count)),1)])]),_:1}),e(u,{label:"\u5907\u6CE8",prop:"afterSaleStatus"},{default:a(({row:s})=>[e(E,{type:l(le).TRADE_ORDER_ITEM_AFTER_SALE_STATUS,value:s.afterSaleStatus},null,8,["type","value"])]),_:1})]),_:1},8,["data"])]),_:1})]),_:1})]),_:1})]),_:1}))],64)}}}),[["__scopeId","data-v-bf4ba2a5"]]);export{He as default};
|