import{u as x}from"./useInstance.233fbdde.js";import{c as b,a as D}from"./cash.dfea94a6.js";import{d as E,a6 as w,r as f,b as A,p as F,c as u,e as I,k as N,i as a,h as t,u as r,a2 as P,m as g,E as C,_ as R}from"./index.0308b213.js";const U=g("\u63D0\u4EA4"),M=g("\u53D6\u6D88"),O=E({props:{modelValue:{type:Boolean,default:!1},ids:{default:[]}},emits:["update:modelValue","onClose"],setup(k,{emit:d}){const l=k,{OpPlatform:h}=w(),{global:V}=x(),m=f(!1),p=f(),o=A({remark:""});F(()=>l.modelValue,e=>{console.log(l,"pr"),e&&(m.value=e)});const y=()=>{h.value==="agent"?b({ids:l.ids,remark:o.remark}).then(e=>{C({message:e.msg,type:"success"}),s()}):D({ids:l.ids,remark:o.remark}).then(e=>{C({message:e.msg,type:"success"}),s()})},s=()=>{d("update:modelValue",!1),d("onClose"),V.$resetForm(p.value,o)};return(e,n)=>{const B=u("el-input"),i=u("el-form-item"),_=u("el-button"),v=u("el-dialog");return I(),N(v,{modelValue:m.value,"onUpdate:modelValue":n[1]||(n[1]=c=>m.value=c),title:"\u7533\u8BF7\u63D0\u73B0\u64A4\u9500",width:"50%",onClose:s,"destroy-on-close":""},{default:a(()=>[t(r(P),{ref_key:"formRef",ref:p,model:r(o),"label-width":"140px"},{default:a(()=>[t(i,{label:"\u5907\u6CE8",prop:"remark"},{default:a(()=>[t(B,{modelValue:r(o).remark,"onUpdate:modelValue":n[0]||(n[0]=c=>r(o).remark=c),placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",type:"textarea",row:3},null,8,["modelValue"])]),_:1}),t(i,null,{default:a(()=>[t(_,{type:"primary",onClick:y},{default:a(()=>[U]),_:1}),t(_,{onClick:s},{default:a(()=>[M]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});const q=R(O,[["__scopeId","data-v-d2dc2c2d"]]);export{q as default};
