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