2 lines
5.2 KiB
JavaScript
2 lines
5.2 KiB
JavaScript
import{C as j,D as K,J as M,K as q,w as J,F as Q,L as Z,M as z,b as G,N as H,O as W}from"./element-plus.78e68aed.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.3c4454b7.js";import{u as Y}from"./usePaging.6a6670f9.js";import{u as ee}from"./useDictOptions.6344d4d1.js";import{a as oe}from"./store_order.d15a1cf2.js";import{d as B,s as C,r as y,Z as te,o as s,c,U as e,L as a,u as t,T as g,a9 as D,K as F,R as b,M as le,a as h,S as ae,j as re,Q as se,n as ne}from"./@vue.18505fe0.js";import"./lodash.60201f64.js";import"./index.bbf57713.js";import"./edit.vue_vue_type_script_setup_true_name_storeOrderEdit_lang.7d67bade.js";import{_ as pe}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.07bb5ad5.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.e34f1810.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./moment.40bc58bf.js";import"./orderInfo.vue_vue_type_script_setup_true_name_orderInfo_lang.9da74b07.js";import"./storeTable.vue_vue_type_script_setup_true_name_storeTable_lang.bc479954.js";import"./orderTable.vue_vue_type_script_setup_true_name_orderTable_lang.62dc9e43.js";import"./deliverTable.vue_vue_type_script_setup_true_name_deliverTable_lang.4dc5ffe4.js";const ie={class:"mt-4"},ue={class:"truncate text-[12px]"},me={class:"flex mt-4 justify-end"},ce=B({name:"storeOrderLists"}),ao=B({...ce,setup(de){C();const d=C();y(!1);const _=y(!1),n=te({order_id:"",pay_type:""}),k=y([]),x=i=>{k.value=i.map(({id:l})=>l)},{dictData:V}=ee("pay_type"),{pager:p,getLists:f,resetParams:S,resetPage:L}=Y({fetchFun:oe,params:n}),A=async i=>{var l,u;_.value=!0,await ne(),(l=d.value)==null||l.open(),(u=d.value)==null||u.getDetail(i)};return f(),(i,l)=>{const u=j,v=K,N=M,R=q,w=J,T=Q,E=Z,r=z,I=G,O=H,P=X,U=W;return s(),c("div",null,[e(E,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(T,{class:"mb-[-16px]",model:t(n),inline:""},{default:a(()=>[e(v,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:a(()=>[e(u,{class:"w-[280px]",modelValue:t(n).order_id,"onUpdate:modelValue":l[0]||(l[0]=o=>t(n).order_id=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(v,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type"},{default:a(()=>[e(R,{class:"w-[280px]",modelValue:t(n).pay_type,"onUpdate:modelValue":l[1]||(l[1]=o=>t(n).pay_type=o),placeholder:"\u8BF7\u9009\u62E9\u652F\u4ED8\u65B9\u5F0F"},{default:a(()=>[(s(!0),c(g,null,D(t(V).pay_type,o=>(s(),F(N,{label:o.name,value:o.value,key:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(v,null,{default:a(()=>[e(w,{type:"primary",onClick:t(L)},{default:a(()=>[b("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(w,{onClick:t(S)},{default:a(()=>[b("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),le((s(),F(E,{class:"!border-none",shadow:"never"},{default:a(()=>[h("div",ie,[e(O,{data:t(p).lists,onSelectionChange:x},{default:a(()=>[e(r,{type:"selection",width:"55"}),e(r,{label:"\u8BA2\u5355ID",prop:"id","show-overflow-tooltip":""}),e(r,{label:"\u8BA2\u5355\u53F7",prop:"order_id","show-overflow-tooltip":""}),e(r,{label:"\u5546\u54C1\u4FE1\u606F",prop:"order_id","min-width":"150","show-overflow-tooltip":""},{default:a(({row:o})=>[(s(!0),c(g,null,D(o.product,(m,$)=>(s(),c("div",{class:"flex items-center mb-2",key:$},[e(I,{class:"w-[30px] h-[30px] mr-2 flex-shrink-0",src:m.image,fit:"cover","preview-src-list":[m.image]},null,8,["src","preview-src-list"]),h("p",ue,ae(m.store_name),1)]))),128))]),_:1}),e(r,{label:"\u7528\u6237",prop:"nickname","show-overflow-tooltip":""}),e(r,{label:"\u5B9E\u9645\u652F\u4ED8\u91D1\u989D",prop:"pay_price","show-overflow-tooltip":""}),e(r,{label:"\u652F\u4ED8\u65F6\u95F4",prop:"pay_time","show-overflow-tooltip":""}),e(r,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type","show-overflow-tooltip":""}),e(r,{label:"\u8BA2\u5355\u72B6\u6001",prop:"status_name","show-overflow-tooltip":""}),e(r,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:o})=>[e(w,{type:"primary",link:"",onClick:m=>A(o)},{default:a(()=>[b("\u8BE6\u60C5")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),h("div",me,[e(P,{modelValue:t(p),"onUpdate:modelValue":l[2]||(l[2]=o=>re(p)?p.value=o:null),onChange:t(f)},null,8,["modelValue","onChange"])])]),_:1})),[[U,t(p).loading]]),t(_)?(s(),F(pe,{key:0,ref_key:"detailsRef",ref:d,onSuccess:t(f),onClose:l[3]||(l[3]=o=>_.value=!1)},null,8,["onSuccess"])):se("",!0)])}}});export{ao as default};
|