import{_ as C}from"./index.vue_vue_type_script_setup_true_lang.7b224fce.js";import{O as g,w as E,Q as k}from"./element-plus.8c800afc.js";import{u as B}from"./usePaging.6a6670f9.js";import{u as x}from"./useDictOptions.080d297e.js";import{c as V}from"./opurchaseclass.ade5f034.js";import{u as F}from"./vue-router.886c5f5a.js";import{_ as R}from"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.a6d8a90d.js";import{d,Z as N,r as c,o as m,c as O,U as t,L as n,R as P,u as a,a as T,j as $,K as j,Q as q,n as L}from"./@vue.18505fe0.js";const Q={class:"flex mt-4 justify-end"},U=d({name:"subOrder"}),Y=d({...U,setup(I,{expose:f}){const _=F(),w=N({id:_.query.id}),{pager:l,getLists:i,resetParams:K,resetPage:S}=B({fetchFun:V,params:w});f({getLists:i});const{dictData:D}=x("pay_type,auditing_type"),u=c(!1),r=c(null),b=async p=>{var o,e;u.value=!0,await L(),(o=r.value)==null||o.open("edit"),(e=r.value)==null||e.getDetail(p)};return(p,o)=>{const e=g,v=E,h=k,y=C;return m(),O("div",null,[t(h,{data:a(l).lists,border:"",style:{width:"100%"}},{default:n(()=>[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:n(({row:s})=>[t(v,{type:"primary",onClick:Z=>b(s),link:""},{default:n(()=>[P("\u8BE6\u60C5")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),T("div",Q,[t(y,{modelValue:a(l),"onUpdate:modelValue":o[0]||(o[0]=s=>$(l)?l.value=s:null),onChange:a(i)},null,8,["modelValue","onChange"])]),a(u)?(m(),j(R,{key:0,ref_key:"detailRef",ref:r,dictData:a(D),onClose:o[1]||(o[1]=s=>u.value=!1)},null,8,["dictData"])):q("",!0)])}}});export{Y as _};
