import{_ as g}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{M as b,b as v,N as C}from"./element-plus.4a7d92a3.js";import{u as E}from"./usePaging.6a6670f9.js";import{d as x}from"./beforehand_order.66936935.js";import{d,r as F,Z as B,o as i,c as V,U as e,L as m,u as a,a as y,K as D,j as k,Q as L}from"./@vue.18505fe0.js";const N={class:"flex mt-4 justify-end"},P=d({name:"subOrder"}),Q=d({...P,setup(j,{expose:c}){const r=F({id:0}),n=B({id:r.value.id}),{pager:t,getLists:u,resetParams:I,resetPage:O}=E({fetchFun:x,params:n});function _(l){r.value.id=l,n.id=l,u()}return c({getList:_}),(l,p)=>{const o=b,f=v,h=C,w=g;return i(),V("div",null,[e(h,{data:a(t).lists,border:"",style:{width:"100%","margin-top":"10px"}},{default:m(()=>[e(o,{prop:"id",label:"ID",width:"60"}),e(o,{label:"\u4F9B\u5E94\u5546",prop:"supplier_name","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u56FE\u7247",prop:"image",width:"120"},{default:m(({row:s})=>[e(f,{style:{width:"50px",height:"50px"},src:s.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(o,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","show-overflow-tooltip":""}),e(o,{label:"\u5355\u4F4D",prop:"unit_name","show-overflow-tooltip":""}),e(o,{label:"\u5165\u5E93\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),e(o,{label:"\u91C7\u8D2D\u4EF7",prop:"purchase","show-overflow-tooltip":""}),e(o,{label:"\u603B\u4EF7",prop:"total_price","show-overflow-tooltip":""})]),_:1},8,["data"]),y("div",N,[a(t).lists?(i(),D(w,{key:0,modelValue:a(t),"onUpdate:modelValue":p[0]||(p[0]=s=>k(t)?t.value=s:null),onChange:a(u)},null,8,["modelValue","onChange"])):L("",!0)])])}}});export{Q as _};
