/* empty css             *//* empty css                   *//* empty css                     *//* empty css                  *//* empty css                 */import{a as e}from"./index-3cdca181.js";/* empty css                 *//* empty css                   */import{d as a,m as s,U as r,x as l,W as t,f as m,o,l as i,w as p,e as d,a as u,b as n,a4 as f,a2 as c,a3 as j,S as v,Y as y,$ as b,_ as x}from"./index-2b50ecca.js";import"./http-aa208300.js";/* empty css                   */const _={class:"flex flex-row justify-between"},g={class:"w-full"},k={class:"flex justify-end"},w=x(a({__name:"note",props:{primary:null|Object},emits:["close"],setup(a,{emit:x}){const w=a,h=s(),V=s(!1),U=r({remark:[{required:!1,message:"请输入备注",trigger:"blur"}]}),Y=s({});return w.primary&&(Y.value.remark=w.primary.remark,Y.value.id=w.primary.id),l((()=>{})),(a,s)=>{const r=c,l=j,w=v,q=y,z=b;return t((o(),i(q,{model:m(Y),"label-width":"130px",ref_key:"ruleForm",ref:h,rules:m(U),class:"pr-4"},{default:p((()=>[d("div",_,[d("div",g,[u(l,{label:"备注",prop:"remark"},{default:p((()=>[u(r,{modelValue:m(Y).remark,"onUpdate:modelValue":s[0]||(s[0]=e=>m(Y).remark=e),placeholder:"请填写备注",rows:5,type:"textarea"},null,8,["modelValue"])])),_:1})])]),d("div",k,[u(w,{type:"primary",size:"default",onClick:s[1]||(s[1]=a=>{var s;(s=m(h))&&s.validate((a=>{a?e(Y.value).then((e=>{f.success(e.message),V.value=!1,x("close")})):V.value=!1})).then((()=>{}))})},{default:p((()=>[n("确定")])),_:1})])])),_:1},8,["model","rules"])),[[z,m(V)]])}}}),[["__scopeId","data-v-a12802b7"]]);export{w as default};
