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