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