import{_ as g}from"./index.vue_vue_type_script_setup_true_lang.d6032bc4.js";import{w as E,G as F,b as C,H as v}from"./element-plus.8e273e86.js";import{u as B}from"./usePaging.f8c888e4.js";import{b as x}from"./warehouse_product_return.66155022.js";import{i as y}from"./beforehand_order.9a0d8fd3.js";import{d as m,Z as k,o as i,c as V,U as e,L as n,R as P,u,a as R,K as L,j as N,Q as D}from"./@vue.76ce7aa3.js";const T={class:"flex mt-4 justify-end"},j=m({name:"subOrder"}),Q=m({...j,setup(I,{expose:d}){const r=k({bhoid:"",return_type:2}),{pager:t,getLists:p,resetParams:O,resetPage:S}=B({fetchFun:x,params:r});function c(a){r.bhoid=a.id,p()}const _=()=>{y({id:r.bhoid}).then(a=>{a.url!=""&&window.open(a.url,"_blank")})};return d({getList:c}),(a,l)=>{const f=E,o=F,b=C,w=v,h=g;return i(),V("div",null,[e(f,{type:"primary",onClick:_},{default:n(()=>l[1]||(l[1]=[P(" \u5BFC\u51FA\u9000\u4F9B\u5E94\u5546\u5355 ")])),_:1}),e(w,{data:u(t).lists,border:"",style:{width:"100%","margin-top":"10px"}},{default:n(()=>[e(o,{prop:"id",label:"ID",width:"60"}),e(o,{label:"\u5546\u54C1\u56FE\u7247",prop:"image",width:"120"},{default:n(({row:s})=>[e(b,{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:"\u9000\u4F9B\u5E94\u5546\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),e(o,{label:"\u9000\u4F9B\u5E94\u5546\u4EF7",prop:"price","show-overflow-tooltip":""}),e(o,{label:"\u9000\u4F9B\u5E94\u5546\u603B\u4EF7",prop:"total_price","show-overflow-tooltip":""}),e(o,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""})]),_:1},8,["data"]),R("div",T,[u(t).lists?(i(),L(h,{key:0,modelValue:u(t),"onUpdate:modelValue":l[0]||(l[0]=s=>N(t)?t.value=s:null),onChange:u(p)},null,8,["modelValue","onChange"])):D("",!0)])])}}});export{Q as _};
