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,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.1756209496808Btmi-4DJ.js";import{E as w}from"./el-text.1756209496808D5nCz4Fg.js";import{g as C}from"./payee-user.1756209496808CW2cI4Iz.js";const A={class:"dialog-footer"},y={__name:"clear_account",props:{showClearAccount:{type:Boolean,default:!1}},emits:["update:showClearAccount"],setup(y,{emit:g}){const x=y,j=a([]);e(()=>x.showClearAccount,a=>{console.log("props.showClearAccount",a),a&&X()});const k=a([]),V=g,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=_,g=n,x=w,X=c,B=s,D=h,N=b;return o(),l(N,{"model-value":y.showClearAccount,title:"日清结算",width:"700px",onClose:E},{footer:t(()=>[v("div",A,[u(D,{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(D,{onClick:E},{default:t(()=>e[4]||(e[4]=[f("取消")])),_:1,__:[4]})])]),default:t(()=>[u(B,null,{default:t(()=>[u(X,{label:"用户结算分组","label-width":"100px"},{default:t(()=>[u(g,{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(x,null,{default:t(()=>e[2]||(e[2]=[f("不选择分组默认为全部用户日切结算")])),_:1,__:[2]})]),_:1})]),_:1})]),_:1},8,["model-value"])}}};export{y as default};
|