2 lines
1.7 KiB
JavaScript
2 lines
1.7 KiB
JavaScript
import{m as d,r as y,aT as L,p as i,q as p,x as r,L as V,u as t,y as B,v as _,t as o,G as E,i as P,A as k,J as D,b6 as F,b7 as T,b8 as N}from"./.pnpm.1b0299fb.js";import{_ as S}from"./index.vue_vue_type_script_setup_true_lang.b077f234.js";import{u as q}from"./usePaging.00aa976d.js";import{u as A}from"./useDictOptions.e9843f63.js";import{b as I}from"./purchase_order.5befcc51.js";import"./lodash.c3b66c05.js";import"./index.689cfa31.js";import"./@vueuse.72d44d91.js";import"./@vue.9d708d7c.js";const j={class:"flex items-center"},G={key:0,class:"flex mt-4 justify-end"},J=d({name:"storeTable"}),ee=d({...J,emits:["change"],setup(O,{expose:f,emit:g}){const h=g,c=y([]),v=a=>{c.value=a,h("change",c.value)},m=L({oid:"",pay_type:""});A("");const{pager:e,getLists:n,resetParams:R,resetPage:U}=q({fetchFun:I,params:m});return f({getList:a=>{m.oid=a.oid,n()},getLists:n}),(a,u)=>{const b=D,s=F,w=T,C=S,x=N;return i(),p("div",null,[r("div",null,[V((i(),B(w,{data:t(e).lists,onSelectionChange:v},{default:_(()=>[o(s,{label:"\u5546\u54C1\u4FE1\u606F",prop:"store_name","show-overflow-tooltip":"",width:"400"},{default:_(({row:l})=>[r("div",j,[o(b,{src:l.image,class:"w-16 h-16 mr-2","preview-teleported":!0},null,8,["src"]),r("div",null,E(l.store_name),1)])]),_:1}),o(s,{label:"\u89C4\u683C",prop:"store_info","show-overflow-tooltip":""}),o(s,{label:"\u6570\u91CF",prop:"cart_num","show-overflow-tooltip":""}),o(s,{label:"\u5408\u8BA1",prop:"total_price","show-overflow-tooltip":""})]),_:1},8,["data"])),[[x,t(e).loading]])]),t(e).lists.length<t(e).count?(i(),p("div",G,[o(C,{modelValue:t(e),"onUpdate:modelValue":u[0]||(u[0]=l=>P(e)?e.value=l:null),onChange:t(n)},null,8,["modelValue","onChange"])])):k("",!0)])}}});export{ee as default};
|