import{u as w}from"./useInstance.233fbdde.js";import{f as b}from"./account.ac7c94ca.js";import{d as k,r as _,p as y,b as x,c as l,e as v,k as A,i as t,g as N,h as u,u as a,a2 as U,m as r,E as I}from"./index.0308b213.js";const M={style:{width:"100%","margin-bottom":"10px"}},R=r(" \u8BBE\u7F6E\u4FDD\u8BC1\u91D1\u4E3A\u6700\u7EC8\u4FDD\u8BC1\u91D1\uFF0C\u5982\u679C\u5546\u5BB6\u5DF2\u7ECF\u6709\u4FDD\u8BC1\u91D1\uFF0C\u518D\u6B21\u8BBE\u7F6E\u65F6\uFF0C\u4F1A\u6839\u636E\u8BBE\u7F6E\u91D1\u989D\u4E0E\u5DF2\u6709\u4FDD\u8BC1\u91D1\u6BD4\u8F83\uFF0C\u5B9E\u884C\u591A\u9000\u5C11\u8865\uFF0C\u53D8\u66F4\u5546\u5BB6\u8D26\u6237\u4F59\u989D\u3002\u8D26\u6237\u4F59\u989D\u4E0D\u8DB3\u65F6\uFF0C\u5219\u4FDD\u8BC1\u91D1\u8BBE\u7F6E\u5931\u8D25\uFF0C\u8D26\u6237\u4F59\u989D\u4E0D\u53D8\u66F4\u3002 "),T=r("\u63D0\u4EA4"),$=r("\u53D6\u6D88"),G=k({props:{modelValue:{type:Boolean,default:!1},ids:null},emits:["update:modelValue","onClose"],setup(c,{emit:m}){const D=c,n=_(!1);y(()=>D.modelValue,i=>{n.value=i});const{global:B}=w(),e=x({ids:[],deposit:0,remark:""}),C=_(),E=()=>{e.ids=D.ids,b(e).then(i=>{I({message:"\u8BBE\u7F6E\u4FDD\u8BC1\u91D1\u6210\u529F",type:"success"}),d()})},d=()=>{m("update:modelValue",!1),m("onClose"),B.$resetForm(C.value,e)};return(i,o)=>{const f=l("el-tag"),g=l("el-input-number"),p=l("el-form-item"),V=l("el-input"),F=l("el-button"),h=l("el-dialog");return v(),A(h,{modelValue:n.value,"onUpdate:modelValue":o[2]||(o[2]=s=>n.value=s),title:"\u8BBE\u7F6E\u4FDD\u8BC1\u91D1",width:"50%",onClose:d},{default:t(()=>[N("div",M,[u(f,{type:"warning",style:{width:"100%","white-space":"pre-line","word-wrap":"break-word","line-height":"1.4em",height:"fit-content",padding:"10px"}},{default:t(()=>[R]),_:1})]),u(a(U),{model:a(e),"label-width":"120px"},{default:t(()=>[u(p,{label:"\u6700\u7EC8\u4FDD\u8BC1\u91D1\u91D1\u989D",prop:"deposit"},{default:t(()=>[u(g,{modelValue:a(e).deposit,"onUpdate:modelValue":o[0]||(o[0]=s=>a(e).deposit=s),style:{width:"100%"}},null,8,["modelValue"])]),_:1}),u(p,{label:"\u5907\u6CE8",prop:"description"},{default:t(()=>[u(V,{type:"textarea",modelValue:a(e).remark,"onUpdate:modelValue":o[1]||(o[1]=s=>a(e).remark=s),rows:5},null,8,["modelValue"])]),_:1}),u(p,null,{default:t(()=>[u(F,{type:"primary",onClick:E},{default:t(()=>[T]),_:1}),u(F,{onClick:d},{default:t(()=>[$]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});export{G as _};
