1 |
- import{_ as C,__tla as S}from"./SPuUploadImg-4b5016f1.js";import{d as V,af as c,X as L,J as M,r as h,k as j,a as l,o as m,q as y,w as a,Y as q,C as z,f as e,m as u,t as p,as as w,O as P,N as B,z as H,E as J,i as X,__tla as F}from"./index-2eab2d23.js";import{g as G,__tla as K}from"./index-3562b2a3.js";import{f as Y,__tla as Q}from"./formatTime-41155543.js";import{c as o,D as f,__tla as W}from"./dict-1ad71b6f.js";import{u as Z,__tla as $}from"./useMessage-171aa63e.js";import{_ as aa}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ea}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-4db00aa5.js";import{__tla as la}from"./index-d3f876ab.js";import{__tla as ta}from"./el-image-viewer-5d14bc77.js";let g,ra=Promise.all([(()=>{try{return S}catch{}})(),(()=>{try{return F}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return ta}catch{}})()]).then(async()=>{g=aa(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:O}){const N=L(),E=M(()=>N.getMobile),I=D,r=h({logs:[]}),b=h(""),R=I.isDetail,T=I.id,k=async()=>{if(T){const i=await G(T);i||(U.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),close()),r.value=i,b.value=i.items[0].picUrl}};O({getDetail:k});const U=Z();return j(async()=>{k()}),(i,v)=>{const d=H,_=J,s=X,A=z,x=C;return l(R)?(m(),y(A,{key:0,ref:"formRef",model:l(r),"label-width":"120px",disabled:l(R)},{default:a(()=>[e(s,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u8BA2\u5355\u53F7",prop:"no"},{default:a(()=>[u(p(l(r).no),1)]),_:1})]),_:1}),e(_,{span:12},{default:a(()=>[e(d,{label:"\u603B\u91D1\u989D",prop:"categoryId"},{default:a(()=>[u(p(l(w)(l(r).payPrice))+"\u5143 ",1)]),_:1})]),_:1})]),_:1}),e(s,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[u(p((t=l(o)(l(f).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[u(p((t=l(o)(l(f).TRADE_ORDER_STATUS,l(r).status))==null?void 0:t.label),1)]}),_:1})]),_:1},8,["span"])]),_:1}),e(s,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u5BA2\u6237\u540D\u79F0",prop:"brandId"},{default:a(()=>{var t,n;return[u(p((n=(t=l(r))==null?void 0:t.user)==null?void 0:n.nickname),1)]}),_:1})]),_:1}),e(_,{span:12},{default:a(()=>[e(d,{label:"\u914D\u9001\u65B9\u5F0F",prop:"keyword"},{default:a(()=>{var t;return[u(p((t=l(o)(l(f).TRADE_DELIVERY_TYPE,l(r).deliveryType))==null?void 0:t.label),1)]}),_:1})]),_:1})]),_:1}),e(s,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u6536\u8D27\u4EBA",prop:"brandId"},{default:a(()=>[u(p(l(r).receiverName),1)]),_:1})]),_:1}),e(_,{span:12},{default:a(()=>[e(d,{label:"\u6536\u8D27\u5730\u5740",prop:"keyword"},{default:a(()=>[u(p(l(r).receiverDetailAddress),1)]),_:1})]),_:1})]),_:1}),e(s,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u6536\u8D27\u4EBA\u8054\u7CFB\u7535\u8BDD",prop:"brandId"},{default:a(()=>[u(p(l(r).receiverMobile),1)]),_:1})]),_:1}),e(_,{span:12},{default:a(()=>[e(d,{label:"\u4E70\u5BB6\u7559\u8A00",prop:"brandId"},{default:a(()=>[u(p(l(r).userRemark),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model","disabled"])):(m(),y(A,{key:1,ref:"formRef",model:l(r),"label-width":"120px",disabled:l(R),class:q({"mobile-card":l(E)})},{default:a(()=>[l(E)?(m(),y(s,{key:0},{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u8BA2\u5355\u56FE\u7247",prop:"no"},{default:a(()=>[e(x,{modelValue:l(b),"onUpdate:modelValue":v[0]||(v[0]=t=>B(b)?b.value=t:null),disabled:!0},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):P("",!0),e(s,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u8BA2\u5355\u53F7",prop:"no"},{default:a(()=>[u(p(l(r).no),1)]),_:1})]),_:1}),e(_,{span:12},{default:a(()=>[e(d,{label:"\u603B\u91D1\u989D",prop:"categoryId"},{default:a(()=>[u(p(l(w)(l(r).payPrice))+"\u5143 ",1)]),_:1})]),_:1})]),_:1}),e(s,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"brandId"},{default:a(()=>{var t;return[u(p((t=l(o)(l(f).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(()=>[u(p(l(r).createTime&&l(Y)(l(r).createTime)),1)]),_:1})]),_:1})]),_:1}),e(s,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u5BA2\u6237\u540D\u79F0",prop:"brandId"},{default:a(()=>{var t,n;return[u(p((n=(t=l(r))==null?void 0:t.user)==null?void 0:n.nickname),1)]}),_:1})]),_:1}),e(_,{span:12},{default:a(()=>[e(d,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"keyword"},{default:a(()=>{var t;return[u(p((t=l(o)(l(f).PAY_CHANNEL_CODE,l(r).payChannelCode))==null?void 0:t.label),1)]}),_:1})]),_:1})]),_:1}),e(s,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u72B6\u6001",prop:"brandId"},{default:a(()=>{var t;return[u(p((t=l(o)(l(f).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(()=>[u(p(l(r).payTime&&l(Y)(l(r).payTime)),1)]),_:1})]),_:1})]),_:1}),e(s,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u8BA2\u5355\u6765\u6E90",prop:"brandId"},{default:a(()=>{var t;return[u(p((t=l(o)(l(f).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[u(p((t=l(o)(l(f).TRADE_DELIVERY_TYPE,l(r).deliveryType))==null?void 0:t.label),1)]}),_:1})]),_:1})]),_:1}),e(s,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u6536\u8D27\u4EBA",prop:"brandId"},{default:a(()=>[u(p(l(r).receiverName),1)]),_:1})]),_:1}),e(_,{span:12},{default:a(()=>[e(d,{label:"\u6536\u8D27\u5730\u5740",prop:"keyword"},{default:a(()=>[u(p(l(r).receiverDetailAddress),1)]),_:1})]),_:1})]),_:1}),e(s,null,{default:a(()=>[e(_,{span:12},{default:a(()=>[e(d,{label:"\u6536\u8D27\u4EBA\u8054\u7CFB\u7535\u8BDD",prop:"brandId"},{default:a(()=>[u(p(l(r).receiverMobile),1)]),_:1})]),_:1})]),_:1}),e(s,null,{default:a(()=>[e(_,{span:24},{default:a(()=>[e(d,{label:"\u4E70\u5BB6\u7559\u8A00",prop:"brandId"},{default:a(()=>[u(p(l(r).userRemark),1)]),_:1})]),_:1})]),_:1}),e(s,null,{default:a(()=>[e(_,{span:24},{default:a(()=>[e(d,{label:"\u5907\u6CE8:",prop:"brandId"},{default:a(()=>[u(p(l(r).remark),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model","disabled","class"]))}}}),[["__scopeId","data-v-da821103"]])});export{ra as __tla,g as default};
|