import{_ as h}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{M as w,b,N as g}from"./element-plus.4a7d92a3.js";import{u as v}from"./usePaging.6a6670f9.js";import{d as C}from"./beforehand_order.b7e0355d.js";import{d as u,Z as E,o as p,c as x,U as e,L as n,u as a,a as F,K as B,j as V,Q as y}from"./@vue.18505fe0.js";const D={class:"flex mt-4 justify-end"},k=u({name:"subOrder"}),K=u({...k,props:["order_id"],setup(i,{expose:m}){const d=E({id:i.order_id}),{pager:t,getLists:s,resetParams:P,resetPage:L}=v({fetchFun:C,params:d});return m({getLists:s}),(j,r)=>{const o=w,c=b,_=g,f=h;return p(),x("div",null,[e(_,{data:a(t).lists,border:"",style:{width:"100%","margin-top":"10px"}},{default:n(()=>[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:n(({row:l})=>[e(c,{style:{width:"50px",height:"50px"},src:l.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"]),F("div",D,[a(t).lists?(p(),B(f,{key:0,modelValue:a(t),"onUpdate:modelValue":r[0]||(r[0]=l=>V(t)?t.value=l:null),onChange:a(s)},null,8,["modelValue","onChange"])):y("",!0)])])}}});export{K as _};
