import{_ as g}from"./index.vue_vue_type_script_setup_true_lang.120de7ce.js";import{O as E,w as k,Q as B}from"./element-plus.bccb9376.js";import{u as x}from"./usePaging.6a6670f9.js";import{u as V}from"./useDictOptions.f22931fb.js";import{c as F}from"./opurchaseclass.4d142976.js";import{u as R}from"./vue-router.101084e3.js";import{_ as N}from"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.625d2131.js";import{d,Z as O,r as p,af as P,o as u,c as $,U as e,L as r,R as T,u as t,a as j,K as m,j as q,Q as c}from"./@vue.18505fe0.js";const L={class:"flex mt-4 justify-end"},Q=d({name:"subOrder"}),X=d({...Q,setup(U,{expose:_}){const f=R(),b=O({id:f.query.id,is_mer:2}),{pager:a,getLists:n,resetParams:I,resetPage:K}=x({fetchFun:F,params:b});_({getLists:n});const{dictData:w}=V("pay_type,auditing_type"),i=p(!1),D=p(null);return(S,l)=>{const o=E,h=k,v=P("router-link"),y=B,C=g;return u(),$("div",null,[e(y,{data:t(a).lists,border:"",style:{width:"100%"}},{default:r(()=>[e(o,{prop:"id",label:"ID",width:"120"}),e(o,{label:"\u5355\u636E\u7F16\u53F7",prop:"number","show-overflow-tooltip":""}),e(o,{label:"\u5355\u636E\u91D1\u989D",prop:"total","show-overflow-tooltip":""}),e(o,{label:"\u62B5\u6263\u91D1\u989D",prop:"deduction_price","show-overflow-tooltip":""}),e(o,{label:"\u5B9E\u9645\u91D1\u989D",prop:"actual","show-overflow-tooltip":""}),e(o,{label:"\u5B9E\u6536\u91D1\u989D",prop:"money","show-overflow-tooltip":""}),e(o,{label:"\u5355\u636E\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(o,{label:"\u64CD\u4F5C",fixed:"right"},{default:r(({row:s})=>[e(v,{to:`/opurchase/detail?id=${s.id}`},{default:r(()=>[e(h,{type:"primary",link:""},{default:r(()=>[T("\u8BE6\u60C5")]),_:1})]),_:2},1032,["to"])]),_:1})]),_:1},8,["data"]),j("div",L,[t(a).lists?(u(),m(C,{key:0,modelValue:t(a),"onUpdate:modelValue":l[0]||(l[0]=s=>q(a)?a.value=s:null),onChange:t(n)},null,8,["modelValue","onChange"])):c("",!0)]),t(i)?(u(),m(N,{key:0,ref_key:"detailRef",ref:D,dictData:t(w),onClose:l[1]||(l[1]=s=>i.value=!1)},null,8,["dictData"])):c("",!0)])}}});export{X as _};
