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