import{q as x,r as o,o as B,K as b,H as u,p as h,t as e,v as t,S as v}from"./index.10c3f8e5.js";import{u as V}from"./use-review-process.41795506.js";const w={flex:"","flex-col":"",style:{width:"50%"}},y=v("\u63D0\u4EA4\u5BA1\u6838\u7ED3\u679C"),R=x({__name:"approval-pending",emits:["changeStatus"],setup(A,{emit:c}){const s={fail:"3",success:"2"},{formData:l,formRules:p,formRef:_,handleChangeStatus:f}=V({callback:()=>c("changeStatus",l),failStatus:s.fail,requiredRemark:!0});return(E,a)=>{const r=o("el-option"),d=o("el-select"),m=o("el-form-item"),i=o("el-input"),C=o("el-button"),k=o("el-form");return B(),b(k,{inline:"",rules:t(p),model:t(l),ref_key:"formRef",ref:_,"label-width":"100px",flex:"","justify-between":""},{default:u(()=>[h("div",w,[e(m,{label:"\u5BA1\u6838\u72B6\u6001",prop:"status"},{default:u(()=>[e(d,{placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001",modelValue:t(l).status,"onUpdate:modelValue":a[0]||(a[0]=n=>t(l).status=n)},{default:u(()=>[e(r,{value:s.success,label:"\u901A\u8FC7"},null,8,["value"]),e(r,{value:s.fail,label:"\u4E0D\u901A\u8FC7"},null,8,["value"])]),_:1},8,["modelValue"])]),_:1}),e(m,{label:"\u5907\u6CE8",prop:"remark"},{default:u(()=>[e(i,{type:"textarea",maxlength:2e3,rows:5,placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",modelValue:t(l).remark,"onUpdate:modelValue":a[1]||(a[1]=n=>t(l).remark=n)},null,8,["modelValue"])]),_:1})]),e(C,{type:"primary",onClick:t(f)},{default:u(()=>[y]),_:1},8,["onClick"])]),_:1},8,["rules","model"])}}});export{R as default};
