2025-08-29 17:20:14 +08:00
|
|
|
import{r as a,D as e,m as l,e as o,w as t,N as u,bo as s,bp as c,bW as n,aY as r,g as d,c as p,a7 as i,a8 as m,bX as _,O as f,l as v,an as h,aX as b}from"./index.17564591406745lmpCs6q.js";import{E as w}from"./el-text.1756459140674dopA6ZEH.js";import{g as C}from"./payee-user.1756459140674Fz0b5Ipi.js";const A={class:"dialog-footer"},y={__name:"clear_account",props:{showClearAccount:{type:Boolean,default:!1}},emits:["update:showClearAccount"],setup(y,{emit:x}){const g=y,j=a([]);e(()=>g.showClearAccount,a=>{a&&U()});const k=a([]),V=x,E=()=>{V("update:showClearAccount",!1)},U=async()=>{k.value=[],(await C({})).data.forEach(a=>{k.value.push({label:a.name,value:a.id})})};return(a,e)=>{const C=_,x=n,g=w,U=c,X=s,B=h,D=b;return o(),l(D,{"model-value":y.showClearAccount,title:"日清结算",width:"700px",onClose:E},{footer:t(()=>[v("div",A,[u(B,{type:"primary",onClick:e[1]||(e[1]=a=>(V("update:showClearAccount",!1),void(j.value.length>0?V("clearAccount",2,j.value):V("clearAccount",1,j.value))))},{default:t(()=>e[3]||(e[3]=[f("日切结算")])),_:1,__:[3]}),u(B,{onClick:E},{default:t(()=>e[4]||(e[4]=[f("取消")])),_:1,__:[4]})])]),default:t(()=>[u(X,null,{default:t(()=>[u(U,{label:"用户结算分组","label-width":"100px"},{default:t(()=>[u(x,{modelValue:d(j),"onUpdate:modelValue":e[0]||(e[0]=a=>r(j)?j.value=a:null),placeholder:"结算分组",clearable:""},{default:t(()=>[(o(!0),p(i,null,m(d(k),a=>(o(),l(C,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),u(g,null,{default:t(()=>e[2]||(e[2]=[f("不选择分组默认为全部用户日切结算")])),_:1,__:[2]})]),_:1})]),_:1})]),_:1},8,["model-value"])}}};export{y as default};
|