import{_ as E,d as C,Q as i,aa as V,n as b,S as F,r as o,o as d,A as _,y as a,h as e,a as D,H as A,i as h,cd as q}from"./index.js";import S from"./img-upload.c8744f.js";const U=C({__name:"approval-pending",props:{returnType:{type:String,required:!0}},emits:["changeStatus"],setup(f,{emit:c}){const g=c,v=f,t=i({return_img:"",status:"",remark:""}),l=i({return_img:[{required:!0,trigger:"change",message:"\u8BF7\u4E0A\u4F20\u9000\u6B3E\u56DE\u6267"}],status:[{required:!0,trigger:"change",message:"\u9009\u62E9\u5BA1\u6838\u72B6\u6001"}],remark:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u5907\u6CE8"}]}),x=V(()=>v.returnType!=="2"),s=b(null),y=()=>{s.value.validate(p=>p&&g("changeStatus",t))};return F(()=>{l.remark[0].required=t.status==="2"}),(p,u)=>{const m=o("el-option"),k=o("el-select"),n=o("el-form-item"),w=o("el-input"),B=o("el-button");return d(),_(h(q),{ref_key:"formRef",ref:s,"label-width":"100px",size:"small",model:t,rules:l},{default:a(()=>[e(n,{label:"\u5BA1\u6279\u72B6\u6001",prop:"status","w-400px":""},{default:a(()=>[e(k,{"w-400px":"",modelValue:t.status,"onUpdate:modelValue":u[0]||(u[0]=r=>t.status=r)},{default:a(()=>[e(m,{label:"\u901A\u8FC7",value:"1"}),e(m,{label:"\u4E0D\u901A\u8FC7",value:"2"})]),_:1},8,["modelValue"])]),_:1}),x.value?(d(),_(n,{key:0,label:"\u9000\u6B3E\u56DE\u6267",prop:"return_img","w-480px":""},{default:a(()=>[e(S,{onChange:u[1]||(u[1]=r=>t.return_img=r)})]),_:1})):D("v-if",!0),e(n,{label:"\u5907\u6CE8",prop:"remark","w-400px":""},{default:a(()=>[e(w,{type:"textarea",modelValue:t.remark,"onUpdate:modelValue":u[2]||(u[2]=r=>t.remark=r)},null,8,["modelValue"])]),_:1}),e(n,{"w-full":"",flex:"","justify-end":""},{default:a(()=>[e(B,{type:"primary",onClick:y},{default:a(()=>u[3]||(u[3]=[A("\u4FDD\u5B58")])),_:1})]),_:1})]),_:1},8,["model","rules"])}}});var P=E(U,[["__file","D:/work/jiesuan/settle-vue3/src/views/InvoiceSales/refund/components/approval-process/approval-pending.vue"]]);export{P as default};
