1 |
- import{_ as M}from"./SPuUploadImg-8bef2528.js";import{d as S,af as y,b as h,e as j,r as x,x as G,a as l,o as f,j as T,w as e,Z as B,H,i as a,m as u,t as p,k as v,c as D,l as i,aY as Y,P as Z,G as q,E as X,s as $}from"./index-df709923.js";import{g as z}from"./index-69e91744.js";import{f as N}from"./formatTime-c6262bd7.js";import{b as _,D as n,e as C}from"./dict-017bf708.js";import{u as F}from"./useMessage-89e9d1aa.js";import{_ as J}from"./_plugin-vue_export-helper-1b428a4d.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 K={class:"flex items-center"},Q={key:0,class:"points-red"},W={key:1,class:"points-green"},ee={class:"ml-3px"},ae={class:"flex items-center"},le={key:0,class:"points-red"},de={key:1,class:"points-green"},te={class:"ml-3px"},re=J(S({__name:"OrderBaseInfo",props:{id:y.number.def(void 0),isDetail:y.bool.def(!1),showPickUp:y.bool.def(!0),isDelivery:y.bool.def(!1)},setup(I,{expose:O}){const U=h(),k=j(()=>U.getMobile),E=I,d=x({logs:[]}),m=x(""),R=E.isDetail,g=E.id,w=async()=>{if(g){const c=await z(g);c||(V.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),close()),d.value=c,m.value=c.items[0].picUrl}};O({getDetail:w,formData:d});const V=F();return G(async()=>{w()}),(c,A)=>{const r=q,s=X,o=$,P=H,L=M;return l(R)?(f(),T(P,{key:0,ref:"formRef",model:l(d),"label-width":"120px",disabled:l(R)},{default:e(()=>[a(o,null,{default:e(()=>[a(s,{span:12},{default:e(()=>[a(r,{label:"\u8BA2\u5355\u53F7",prop:"no"},{default:e(()=>[u(p(l(d).no),1)]),_:1})]),_:1}),a(s,{span:12},{default:e(()=>[a(r,{label:"\u603B\u91D1\u989D",prop:"categoryId"},{default:e(()=>[v("div",K,[l(d).integralType===1?(f(),D("div",Q)):i("",!0),l(d).integralType===3?(f(),D("div",W)):i("",!0),v("span",ee,p(l(Y)(l(d).totalPrice)),1)])]),_:1})]),_:1})]),_:1}),a(o,null,{default:e(()=>[I.isDelivery?i("",!0):(f(),T(s,{key:0,span:12},{default:e(()=>[a(r,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"brandId"},{default:e(()=>{var t;return[u(p((t=l(_)(l(n).TRADE_ORDER_TYPE,l(d).type))==null?void 0:t.label),1)]}),_:1})]),_:1})),a(s,{span:I.isDelivery?24:12},{default:e(()=>[a(r,{label:"\u72B6\u6001",prop:"brandId"},{default:e(()=>{var t;return[u(p((t=l(_)(l(n).TRADE_ORDER_STATUS,l(d).status))==null?void 0:t.label),1)]}),_:1})]),_:1},8,["span"])]),_:1}),a(o,null,{default:e(()=>[a(s,{span:12},{default:e(()=>[a(r,{label:"\u5BA2\u6237\u540D\u79F0",prop:"brandId"},{default:e(()=>{var t,b;return[u(p((b=(t=l(d))==null?void 0:t.user)==null?void 0:b.username),1)]}),_:1})]),_:1}),a(s,{span:12},{default:e(()=>[a(r,{label:"\u914D\u9001\u65B9\u5F0F",prop:"keyword"},{default:e(()=>{var t;return[u(p((t=l(_)(l(n).TRADE_DELIVERY_TYPE,l(d).deliveryType))==null?void 0:t.label),1)]}),_:1})]),_:1})]),_:1}),a(o,null,{default:e(()=>[a(s,{span:12},{default:e(()=>[a(r,{label:"\u6536\u8D27\u4EBA",prop:"brandId"},{default:e(()=>[u(p(l(d).receiverName),1)]),_:1})]),_:1}),a(s,{span:12},{default:e(()=>[a(r,{label:"\u6536\u8D27\u5730\u5740",prop:"keyword"},{default:e(()=>[u(p(l(d).receiverDetailAddress),1)]),_:1})]),_:1})]),_:1}),a(o,null,{default:e(()=>[a(s,{span:12},{default:e(()=>[a(r,{label:"\u6536\u8D27\u4EBA\u8054\u7CFB\u7535\u8BDD",prop:"brandId"},{default:e(()=>[u(p(l(d).receiverMobile),1)]),_:1})]),_:1}),a(s,{span:12},{default:e(()=>[a(r,{label:"\u4E70\u5BB6\u7559\u8A00",prop:"brandId"},{default:e(()=>[u(p(l(d).userRemark),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model","disabled"])):(f(),T(P,{key:1,ref:"formRef",model:l(d),"label-width":"120px",disabled:l(R),class:B({"mobile-card":l(k)})},{default:e(()=>[l(k)?(f(),T(o,{key:0},{default:e(()=>[a(s,{span:12},{default:e(()=>[a(r,{label:"\u8BA2\u5355\u56FE\u7247",prop:"no"},{default:e(()=>[a(L,{modelValue:l(m),"onUpdate:modelValue":A[0]||(A[0]=t=>Z(m)?m.value=t:null),disabled:!0},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):i("",!0),a(o,null,{default:e(()=>[a(s,{span:12},{default:e(()=>[a(r,{label:"\u8BA2\u5355\u53F7",prop:"no"},{default:e(()=>[u(p(l(d).no),1)]),_:1})]),_:1}),a(s,{span:12},{default:e(()=>[a(r,{label:"\u603B\u91D1\u989D",prop:"categoryId"},{default:e(()=>[v("div",ae,[l(d).integralType===1?(f(),D("div",le)):i("",!0),l(d).integralType===3?(f(),D("div",de)):i("",!0),v("span",te,p(l(Y)(l(d).totalPrice)),1)])]),_:1})]),_:1})]),_:1}),a(o,null,{default:e(()=>[a(s,{span:12},{default:e(()=>[a(r,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"brandId"},{default:e(()=>{var t;return[u(p((t=l(_)(l(n).TRADE_ORDER_TYPE,l(d).type))==null?void 0:t.label),1)]}),_:1})]),_:1}),a(s,{span:12},{default:e(()=>[a(r,{label:"\u4E0B\u5355\u65F6\u95F4",prop:"keyword"},{default:e(()=>[u(p(l(d).createTime&&l(N)(l(d).createTime)),1)]),_:1})]),_:1})]),_:1}),a(o,null,{default:e(()=>[a(s,{span:12},{default:e(()=>[a(r,{label:"\u5BA2\u6237\u540D\u79F0",prop:"brandId"},{default:e(()=>{var t,b;return[u(p((b=(t=l(d))==null?void 0:t.user)==null?void 0:b.username),1)]}),_:1})]),_:1}),a(s,{span:12},{default:e(()=>[a(r,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"keyword"},{default:e(()=>[u(p(l(C)(l(n).INTEGRAL_TYPE,l(d).integralType)),1)]),_:1})]),_:1})]),_:1}),a(o,null,{default:e(()=>[a(s,{span:12},{default:e(()=>[a(r,{label:"\u72B6\u6001",prop:"brandId"},{default:e(()=>{var t;return[u(p((t=l(_)(l(n).TRADE_ORDER_STATUS,l(d).status))==null?void 0:t.label),1)]}),_:1})]),_:1}),a(s,{span:12},{default:e(()=>[a(r,{label:"\u652F\u4ED8\u65F6\u95F4",prop:"keyword"},{default:e(()=>[u(p(l(d).payTime&&l(N)(l(d).payTime)),1)]),_:1})]),_:1})]),_:1}),a(o,null,{default:e(()=>[a(s,{span:12},{default:e(()=>[a(r,{label:"\u8BA2\u5355\u6765\u6E90",prop:"brandId"},{default:e(()=>{var t;return[u(p((t=l(_)(l(n).TERMINAL,l(d).terminal))==null?void 0:t.label),1)]}),_:1})]),_:1}),a(s,{span:12},{default:e(()=>[a(r,{label:"\u914D\u9001\u65B9\u5F0F",prop:"keyword"},{default:e(()=>{var t;return[u(p((t=l(_)(l(n).TRADE_DELIVERY_TYPE,l(d).deliveryType))==null?void 0:t.label),1)]}),_:1})]),_:1})]),_:1}),a(o,null,{default:e(()=>[a(s,{span:12},{default:e(()=>[a(r,{label:"\u6536\u8D27\u4EBA",prop:"brandId"},{default:e(()=>[u(p(l(d).receiverName),1)]),_:1})]),_:1}),a(s,{span:12},{default:e(()=>[a(r,{label:"\u6536\u8D27\u5730\u5740",prop:"keyword"},{default:e(()=>[u(p(l(d).receiverDetailAddress),1)]),_:1})]),_:1})]),_:1}),a(o,null,{default:e(()=>[a(s,{span:12},{default:e(()=>[a(r,{label:"\u6536\u8D27\u4EBA\u8054\u7CFB\u7535\u8BDD",prop:"brandId"},{default:e(()=>[u(p(l(d).receiverMobile),1)]),_:1})]),_:1})]),_:1}),a(o,null,{default:e(()=>[a(s,{span:24},{default:e(()=>[a(r,{label:"\u4E70\u5BB6\u7559\u8A00",prop:"brandId"},{default:e(()=>[u(p(l(d).userRemark),1)]),_:1})]),_:1})]),_:1}),a(o,null,{default:e(()=>[a(s,{span:24},{default:e(()=>[a(r,{label:"\u5907\u6CE8",prop:"brandId"},{default:e(()=>[u(p(l(d).remark),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model","disabled","class"]))}}}),[["__scopeId","data-v-595bea57"]]);export{re as default};
|