2 lines
1.4 KiB
JavaScript
2 lines
1.4 KiB
JavaScript
import{_ as v}from"./index.vue_vue_type_script_setup_true_lang.b077f234.js";import{m,aT as b,p as r,q as i,x as u,t,v as p,G as C,u as o,i as w,A as y,b6 as F,J as V,b7 as x}from"./.pnpm.1b0299fb.js";import{u as D}from"./usePaging.00aa976d.js";import{u as E}from"./useDictOptions.e9843f63.js";import{a as S}from"./store_order.645a0384.js";import"./lodash.c3b66c05.js";import"./index.689cfa31.js";import"./@vueuse.72d44d91.js";import"./@vue.9d708d7c.js";const B={key:0,class:"flex mt-4 justify-end"},P=m({name:"deliverTable"}),U=m({...P,setup(T,{expose:c}){const d=b({order_id:"",pay_type:""});E("");const{pager:e,getLists:l,resetParams:k,resetPage:N}=D({fetchFun:S,params:d});return c({getLists:l}),(_,n)=>{const s=F,f=V,g=x,h=v;return r(),i("div",null,[u("div",null,[t(g,{data:o(e).lists,onSelectionChange:_.handleSelectionChange},{default:p(()=>[t(s,{label:"\u8BA2\u5355\u53F7",prop:"id","show-overflow-tooltip":""}),t(s,{label:"\u5546\u54C1\u4FE1\u606F",prop:"status","show-overflow-tooltip":"",width:"400"},{default:p(({row:a})=>[t(f,{src:a.image,class:"w-16 h-16","preview-teleported":!0},null,8,["src"]),u("div",null,C(a.store_name),1)]),_:1}),t(s,{label:"\u53D1\u8D27\u65F6\u95F4",prop:"id","show-overflow-tooltip":""})]),_:1},8,["data","onSelectionChange"])]),o(e).lists.length<o(e).count?(r(),i("div",B,[t(h,{modelValue:o(e),"onUpdate:modelValue":n[0]||(n[0]=a=>w(e)?e.value=a:null),onChange:o(l)},null,8,["modelValue","onChange"])])):y("",!0)])}}});export{U as default};
|