2 lines
1.6 KiB
JavaScript
2 lines
1.6 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,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.ZfD0KPCP.js";import{E as w}from"./el-text.8O7bSRLl.js";import{g as C}from"./payee-user.DjeMsTF2.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&&X()});const k=a([]),V=x,E=()=>{V("update:showClearAccount",!1)},X=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,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=>(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(Y,null,{default:t(()=>[u(X,{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};
|