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