OrderProduct-a45d81df.js 6.6 KB

1
  1. import{d as M,ap as g,y as C,e as O,r as j,b as z,o as i,c as d,A as v,B as a,a as l,aa as B,E as p,F as T,P as G,U as J,f as e,C as r,D as o,dD as f,dN as L,G as m,S as W,J as q,M as H,_ as K,V as Q,W as X}from"./index-39d329c4.js";import{a as Y,E as Z}from"./el-descriptions-item-a2a4aeac.js";import{_ as $}from"./DictTag.vue_vue_type_script_lang-b95bb985.js";import{_ as ee}from"./SPuUploadImg-9f0e4322.js";import{f as ae}from"./index-d1c9b307.js";import{D as le}from"./dict-0856c143.js";import{u as se}from"./useMessage-47346882.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-94e6c5c2.js";import"./index-0c406c8d.js";import"./el-image-viewer-b66eac2e.js";const ie={class:"flex items-center"},de={key:0,class:"points-red"},re={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"},De={key:1,class:"points-green"},Se={class:"ml-3px"},Ue={style:{height:"56px",margin:"0 auto","text-align":"center"}},Ee=["src"],Re={class:"flex items-center"},Ae={key:0,class:"points-red"},Ne={key:1,class:"points-green"},Ie={class:"ml-3px"},Ve={class:"flex items-center"},Fe={key:0,class:"points-red"},Me={key:1,class:"points-green"},Ce={class:"ml-3px"},Oe={class:"flex items-center"},je={key:0,class:"points-red"},ze={key:1,class:"points-green"},Be={class:"ml-3px"},Ge=te(M({__name:"OrderProduct",props:{id:g.number.def(void 0),showPickUp:g.bool.def(!0),isDelivery:g.bool.def(!1)},setup(x){const P=C(),b=O(()=>P.getMobile),D=x,t=j({logs:[]}),h=D.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=W,n=q,_=H,k=J,U=K,E=ee,u=Q,R=$,A=X,N=Z,I=Y;return i(),d(T,null,[x.isDelivery?p("",!0):(i(),v(k,{key:0,ref:"formRef",model:l(t),"label-width":"120px",disabled:y.isDetail,class:B({"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(()=>[r("div",ie,[l(t).integralType===1?(i(),d("div",de)):p("",!0),l(t).integralType===3?(i(),d("div",re)):p("",!0),r("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(()=>[r("div",oe,[l(t).integralType===1?(i(),d("div",ne)):p("",!0),l(t).integralType===3?(i(),d("div",ce)):p("",!0),r("span",ue,o(l(L)(l(t).payIntegral)),1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","disabled","class"])),l(b)?p("",!0):(i(),d("p",fe,"\u5546\u54C1\u5217\u8868")),l(b)?(i(),d("div",me,[(i(!0),d(T,null,G(l(t).items,(s,V)=>(i(),v(k,{ref_for:!0,ref:"formRef",model:l(t),"label-width":"120px",border:!0,key:s.id,class:"mobile-card"},{default:a(()=>[r("div",_e,[e(U,{icon:"ep:list"}),m(" \u5546\u54C1"+o(V+1),1)]),e(_,null,{default:a(()=>[e(n,{span:12},{default:a(()=>[e(c,{label:"\u5546\u54C1\u56FE\u7247"},{default:a(()=>[e(E,{modelValue:s.picUrl,"onUpdate:modelValue":F=>s.picUrl=F,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(()=>[r("div",ye,[l(t).integralType===1?(i(),d("div",be)):p("",!0),l(t).integralType===3?(i(),d("div",ge)):p("",!0),r("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(()=>[r("div",xe,[l(t).integralType===1?(i(),d("div",he)):p("",!0),l(t).integralType===3?(i(),d("div",we)):p("",!0),r("span",ke,o(l(f)(s.price)),1)])]),_:2},1024)]),_:2},1024),e(n,{span:12},{default:a(()=>[e(c,{label:"\u6570\u91CF"},{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(()=>[r("div",Te,[l(t).integralType===1?(i(),d("div",Pe)):p("",!0),l(t).integralType===3?(i(),d("div",De)):p("",!0),r("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(I,{key:3,width:"100"},{default:a(()=>[e(N,{labelClassName:"no-colon"},{default:a(()=>[e(_,{width:"100%"},{default:a(()=>[e(n,{span:24},{default:a(()=>[e(A,{data:l(t).items,border:""},{default:a(()=>[e(u,{label:"\u5546\u54C1\u56FE\u7247",width:"100"},{default:a(({row:s})=>[r("div",Ue,[r("img",{src:s.picUrl,style:{"max-width":"100%","max-height":"100%"}},null,8,Ee)])]),_: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})=>[r("div",Re,[l(t).integralType===1?(i(),d("div",Ae)):p("",!0),l(t).integralType===3?(i(),d("div",Ne)):p("",!0),r("span",Ie,o(l(f)(s.price)),1)])]),_:1}),e(u,{label:"\u5E02\u573A\u4EF7",prop:"price",width:"100"},{default:a(({row:s})=>[r("div",Ve,[l(t).integralType===1?(i(),d("div",Fe)):p("",!0),l(t).integralType===3?(i(),d("div",Me)):p("",!0),r("span",Ce,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})=>[r("div",Oe,[l(t).integralType===1?(i(),d("div",je)):p("",!0),l(t).integralType===3?(i(),d("div",ze)):p("",!0),r("span",Be,o(l(f)(s.price*s.count)),1)])]),_:1}),e(u,{label:"\u5907\u6CE8",prop:"afterSaleStatus"},{default:a(({row:s})=>[e(R,{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-b7b5436d"]]);export{Ge as default};