import{q as g,a4 as p,B as x,aC as k,r as u,o as w,K as B,H as a,t as e,v as C,aD as V,S as b}from"./index.d8ce26ef.js";const y=b("\u4FDD\u5B58"),h=g({__name:"finance-review",emits:["changeStatus"],setup(E,{emit:c}){const t=p({status:"",remark:""}),s=p({status:[{required:!0,trigger:"change",message:"\u9009\u62E9\u5BA1\u6838\u72B6\u6001"}],remark:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u5907\u6CE8"}]}),n=x(null),i=()=>{n.value.validate(m=>m&&c("changeStatus",t))};return k(()=>s.remark[0].required=t.status==="5"),(m,l)=>{const _=u("el-option"),d=u("el-select"),o=u("el-form-item"),f=u("el-input"),v=u("el-button");return w(),B(C(V),{ref_key:"formRef",ref:n,"label-width":"100px",size:"small",model:t,rules:s},{default:a(()=>[e(o,{label:"\u5BA1\u6279\u72B6\u6001",prop:"status","w-400px":""},{default:a(()=>[e(d,{"w-400px":"",modelValue:t.status,"onUpdate:modelValue":l[0]||(l[0]=r=>t.status=r)},{default:a(()=>[e(_,{label:"\u901A\u8FC7",value:"2"}),e(_,{label:"\u4E0D\u901A\u8FC7",value:"5"})]),_:1},8,["modelValue"])]),_:1}),e(o,{label:"\u5907\u6CE8",prop:"remark","w-400px":""},{default:a(()=>[e(f,{type:"textarea",modelValue:t.remark,"onUpdate:modelValue":l[1]||(l[1]=r=>t.remark=r)},null,8,["modelValue"])]),_:1}),e(o,{"w-full":"",flex:"","justify-end":""},{default:a(()=>[e(v,{type:"primary",onClick:i},{default:a(()=>[y]),_:1})]),_:1})]),_:1},8,["model","rules"])}}});export{h as default};
