1 |
- import{_ as N,__tla as S}from"./SPuUploadImg-7c6bd56b.js";import{d as V,ag as c,Y as C,K as L,r as A,l as B,a as l,o as m,v as y,w as a,Z as H,D as j,f as e,n as s,t as u,at as h,P,O as z,A as K,E as X,i as Z,_ as q,__tla as F}from"./index-11e4820e.js";import{g as G,__tla as J}from"./index-85087f4c.js";import{f as O,__tla as Q}from"./formatTime-f6a2c881.js";import{c as o,D as n,__tla as W}from"./dict-4072dcec.js";import{u as $,__tla as aa}from"./useMessage-06ddf735.js";import{__tla as ea}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-8854a0f2.js";import{__tla as la}from"./index-4203485c.js";import{__tla as ta}from"./el-image-viewer-c4f5814f.js";let Y,ra=Promise.all([(()=>{try{return S}catch{}})(),(()=>{try{return F}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return ta}catch{}})()]).then(async()=>{Y=q(V({__name:"OrderBaseInfo",props:{id:c.number.def(void 0),isDetail:c.bool.def(!1),showPickUp:c.bool.def(!0),isDelivery:c.bool.def(!1)},setup(D,{expose:g}){const U=C(),E=L(()=>U.getMobile),I=D,r=A({logs:[]}),b=A(""),R=I.isDetail,T=I.id,v=async()=>{if(T){const i=await G(T);i||(x.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),close()),r.value=i,b.value=i.items[0].picUrl}};g({getDetail:v});const x=$();return B(async()=>{v()}),(i,k)=>{const d=K,_=X,p=Z,w=j,M=N;return l(R)?(m(),y(w,{key:0,ref:"formRef",model:l(r),"label-width":"120px",disabled:l(R)},{default:a(()=>[e(p,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u8BA2\u5355\u53F7",prop:"no"},{default:a(()=>[s(u(l(r).no),1)]),_:1})]),_:1}),e(_,{span:12},{default:a(()=>[e(d,{label:"\u603B\u91D1\u989D",prop:"categoryId"},{default:a(()=>[s(u(l(h)(l(r).payPrice))+"\u5143 ",1)]),_:1})]),_:1})]),_:1}),e(p,null,{default:a(()=>[D.isDelivery?P("",!0):(m(),y(_,{key:0,span:12},{default:a(()=>[e(d,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"brandId"},{default:a(()=>{var t;return[s(u((t=l(o)(l(n).TRADE_ORDER_TYPE,l(r).type))==null?void 0:t.label),1)]}),_:1})]),_:1})),e(_,{span:D.isDelivery?24:12},{default:a(()=>[e(d,{label:"\u72B6\u6001",prop:"brandId"},{default:a(()=>{var t;return[s(u((t=l(o)(l(n).TRADE_ORDER_STATUS,l(r).status))==null?void 0:t.label),1)]}),_:1})]),_:1},8,["span"])]),_:1}),e(p,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u5BA2\u6237\u540D\u79F0",prop:"brandId"},{default:a(()=>{var t,f;return[s(u((f=(t=l(r))==null?void 0:t.user)==null?void 0:f.nickname),1)]}),_:1})]),_:1}),e(_,{span:12},{default:a(()=>[e(d,{label:"\u914D\u9001\u65B9\u5F0F",prop:"keyword"},{default:a(()=>{var t;return[s(u((t=l(o)(l(n).TRADE_DELIVERY_TYPE,l(r).deliveryType))==null?void 0:t.label),1)]}),_:1})]),_:1})]),_:1}),e(p,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u6536\u8D27\u4EBA",prop:"brandId"},{default:a(()=>[s(u(l(r).receiverName),1)]),_:1})]),_:1}),e(_,{span:12},{default:a(()=>[e(d,{label:"\u6536\u8D27\u5730\u5740",prop:"keyword"},{default:a(()=>[s(u(l(r).receiverDetailAddress),1)]),_:1})]),_:1})]),_:1}),e(p,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u6536\u8D27\u4EBA\u8054\u7CFB\u7535\u8BDD",prop:"brandId"},{default:a(()=>[s(u(l(r).receiverMobile),1)]),_:1})]),_:1}),e(_,{span:12},{default:a(()=>[e(d,{label:"\u4E70\u5BB6\u7559\u8A00",prop:"brandId"},{default:a(()=>[s(u(l(r).userRemark),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model","disabled"])):(m(),y(w,{key:1,ref:"formRef",model:l(r),"label-width":"120px",disabled:l(R),class:H({"mobile-card":l(E)})},{default:a(()=>[l(E)?(m(),y(p,{key:0},{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u8BA2\u5355\u56FE\u7247",prop:"no"},{default:a(()=>[e(M,{modelValue:l(b),"onUpdate:modelValue":k[0]||(k[0]=t=>z(b)?b.value=t:null),disabled:!0},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):P("",!0),e(p,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u8BA2\u5355\u53F7",prop:"no"},{default:a(()=>[s(u(l(r).no),1)]),_:1})]),_:1}),e(_,{span:12},{default:a(()=>[e(d,{label:"\u603B\u91D1\u989D",prop:"categoryId"},{default:a(()=>[s(u(l(h)(l(r).payPrice))+"\u5143 ",1)]),_:1})]),_:1})]),_:1}),e(p,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"brandId"},{default:a(()=>{var t;return[s(u((t=l(o)(l(n).TRADE_ORDER_TYPE,l(r).type))==null?void 0:t.label),1)]}),_:1})]),_:1}),e(_,{span:12},{default:a(()=>[e(d,{label:"\u4E0B\u5355\u65F6\u95F4",prop:"keyword"},{default:a(()=>[s(u(l(r).createTime&&l(O)(l(r).createTime)),1)]),_:1})]),_:1})]),_:1}),e(p,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u5BA2\u6237\u540D\u79F0",prop:"brandId"},{default:a(()=>{var t,f;return[s(u((f=(t=l(r))==null?void 0:t.user)==null?void 0:f.nickname),1)]}),_:1})]),_:1}),e(_,{span:12},{default:a(()=>[e(d,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"keyword"},{default:a(()=>{var t;return[s(u((t=l(o)(l(n).PAY_CHANNEL_CODE,l(r).payChannelCode))==null?void 0:t.label),1)]}),_:1})]),_:1})]),_:1}),e(p,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u72B6\u6001",prop:"brandId"},{default:a(()=>{var t;return[s(u((t=l(o)(l(n).TRADE_ORDER_STATUS,l(r).status))==null?void 0:t.label),1)]}),_:1})]),_:1}),e(_,{span:12},{default:a(()=>[e(d,{label:"\u652F\u4ED8\u65F6\u95F4",prop:"keyword"},{default:a(()=>[s(u(l(r).payTime&&l(O)(l(r).payTime)),1)]),_:1})]),_:1})]),_:1}),e(p,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u8BA2\u5355\u6765\u6E90",prop:"brandId"},{default:a(()=>{var t;return[s(u((t=l(o)(l(n).TERMINAL,l(r).terminal))==null?void 0:t.label),1)]}),_:1})]),_:1}),e(_,{span:12},{default:a(()=>[e(d,{label:"\u914D\u9001\u65B9\u5F0F",prop:"keyword"},{default:a(()=>{var t;return[s(u((t=l(o)(l(n).TRADE_DELIVERY_TYPE,l(r).deliveryType))==null?void 0:t.label),1)]}),_:1})]),_:1})]),_:1}),e(p,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u6536\u8D27\u4EBA",prop:"brandId"},{default:a(()=>[s(u(l(r).receiverName),1)]),_:1})]),_:1}),e(_,{span:12},{default:a(()=>[e(d,{label:"\u6536\u8D27\u5730\u5740",prop:"keyword"},{default:a(()=>[s(u(l(r).receiverDetailAddress),1)]),_:1})]),_:1})]),_:1}),e(p,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u6536\u8D27\u4EBA\u8054\u7CFB\u7535\u8BDD",prop:"brandId"},{default:a(()=>[s(u(l(r).receiverMobile),1)]),_:1})]),_:1})]),_:1}),e(p,null,{default:a(()=>[e(_,{span:24},{default:a(()=>[e(d,{label:"\u4E70\u5BB6\u7559\u8A00",prop:"brandId"},{default:a(()=>[s(u(l(r).userRemark),1)]),_:1})]),_:1})]),_:1}),e(p,null,{default:a(()=>[e(_,{span:24},{default:a(()=>[e(d,{label:"\u5907\u6CE8:",prop:"brandId"},{default:a(()=>[s(u(l(r).remark),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model","disabled","class"]))}}}),[["__scopeId","data-v-8625439b"],["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/trade/order/components/OrderBaseInfo.vue"]])});export{ra as __tla,Y as default};
|