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