/* empty css             *//* empty css                   *//* empty css                     *//* empty css                  *//* empty css                 */import{a as e}from"./index-347eb72e.js";/* empty css                   */import{d as a,m as s,X as r,x as l,Z as t,f as m,o,l as i,w as p,e as u,a as d,b as n,a7 as f,a5 as c,a6 as j,W as v,a0 as y,a2 as b,_ as x}from"./index-41bf27b7.js";import"./http-e55ef919.js";/* empty css                   */const _={class:"flex flex-row justify-between"},k={class:"w-full"},g={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),C=r({remark:[{required:!1,message:"请输入备注",trigger:"blur"}]}),W=s({});return w.primary&&(W.value.remark=w.primary.remark,W.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(W),"label-width":"130px",ref_key:"ruleForm",ref:h,rules:m(C),class:"pr-4"},{default:p((()=>[u("div",_,[u("div",k,[d(l,{label:"备注",prop:"remark"},{default:p((()=>[d(r,{modelValue:m(W).remark,"onUpdate:modelValue":s[0]||(s[0]=e=>m(W).remark=e),placeholder:"请填写备注",rows:5,type:"textarea"},null,8,["modelValue"])])),_:1})])]),u("div",g,[d(w,{type:"primary",size:"default",onClick:s[1]||(s[1]=a=>{var s;(s=m(h))&&s.validate((a=>{a?e(W.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-c0f84dfc"]]);export{w as default};
