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