2 lines
1.7 KiB
JavaScript
2 lines
1.7 KiB
JavaScript
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,bX as n,aY as r,g as d,c as p,a7 as i,a8 as m,bY as _,O as f,l as v,an as h,aX as b}from"./index.1756813928779C3A0h-BU.js";import{E as w}from"./el-text.1756813928779i47SG0f_.js";import{g as C}from"./payee-user.1756813928779DYePqEGA.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,V=a([]);e(()=>g.showClearAccount,a=>{a&&X()});const j=a([]),k=x,E=()=>{k("update:showClearAccount",!1)},X=async()=>{j.value=[],(await C({})).data.forEach(a=>{j.value.push({label:a.name,value:a.id})})};return(a,e)=>{const C=_,x=n,g=w,X=c,Y=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=>(k("update:showClearAccount",!1),void(V.value.length>0?k("clearAccount",2,V.value):k("clearAccount",1,V.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(Y,null,{default:t(()=>[u(X,{label:"用户结算分组","label-width":"100px"},{default:t(()=>[u(x,{modelValue:d(V),"onUpdate:modelValue":e[0]||(e[0]=a=>r(V)?V.value=a:null),placeholder:"结算分组",clearable:""},{default:t(()=>[(o(!0),p(i,null,m(d(j),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};
|