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