approval-pending.21ddaaec.js 2.0 KB

1
  1. import{_ as C,d as w,a7 as i,af as V,E as b,a9 as F,x as o,o as d,N as _,K as a,y as e,u as c,a as h,aE as D,W as q}from"./index.1417328f.js";import A from"./img-upload.23218332.js";const U=q("\u4FDD\u5B58"),N=w({__name:"approval-pending",props:{returnType:{type:String,required:!0}},emits:["changeStatus"],setup(f,{emit:g}){const 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"),E=o("el-select"),n=o("el-form-item"),k=o("el-input"),B=o("el-button");return d(),_(c(D),{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(E,{"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)?(d(),_(n,{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})):h("v-if",!0),e(n,{label:"\u5907\u6CE8",prop:"remark","w-400px":""},{default:a(()=>[e(k,{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]),_:1})]),_:1})]),_:1},8,["model","rules"])}}});var I=C(N,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/InvoiceSales/refund/components/approval-process/approval-pending.vue"]]);export{I as default};