import{D as W,G as q,H as N,C as I,F as L}from"./element-plus.fcb5dc91.js";import{P as O}from"./index.94abbaf6.js";import{r as C}from"./index.fbf661f7.js";import{d as A,a0 as w,s as k,w as M,o as m,M as v,O as r,a as S,W as l,u as n,T as p,U as _,c as g,V as y,a7 as U,S as G}from"./@vue.a7a54728.js";function K(e){return C.get({url:"/finance.master_worker_case_out_log/lists",params:e})}function P(e){return C.post({url:"/finance.master_worker_case_out_log/edit",params:e})}const T={class:"pr-8"},Q=A({__name:"review_worker_case_out",props:{show:{type:Boolean,required:!0},dictData:{type:Object,default:()=>({})},data:w({id:"",change_amount:""}),value:{type:[Number,String],required:!0}},emits:["update:show","confirm"],setup(e,{emit:V}){const d=k(),c=e,f=V,o=w({review_status:"",remark:""}),i=k(),b={review_status:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}]},h=async()=>{var a,t;await((a=d.value)==null?void 0:a.validate());const s={review_status:o.review_status,remark:o.remark,id:c.data.id,sn:c.data.sn};await P(s),(t=i.value)==null||t.close(),f("success")},B=()=>{var s;f("update:show",!1),(s=d.value)==null||s.resetFields()};return M(()=>c.show,s=>{var a,t;s?(a=i.value)==null||a.open():(t=i.value)==null||t.close()}),(s,a)=>{const t=W,E=q,x=N,R=I,D=L;return m(),v(O,{ref_key:"popupRef",ref:i,title:"\u5BA1\u6279",width:"500px",onConfirm:h,async:!0,onClose:B},{default:r(()=>[S("div",T,[l(D,{ref_key:"formRef",ref:d,model:n(o),"label-width":"120px",rules:b},{default:r(()=>[l(t,{label:"\u91D1\u989D"},{default:r(()=>[p("\xA5 "+_(e.data.change_amount),1)]),_:1}),l(t,{label:"\u5E08\u5085"},{default:r(()=>[p(_(e.data.masterWorker?e.data.masterWorker.nickname+" / "+e.data.masterWorker.worker_number:""),1)]),_:1}),l(t,{label:"\u5BA1\u6279\u72B6\u6001",required:"",prop:"review_status"},{default:r(()=>[l(x,{modelValue:n(o).review_status,"onUpdate:modelValue":a[0]||(a[0]=u=>n(o).review_status=u)},{default:r(()=>[(m(!0),g(y,null,U(e.dictData.audit_state,(u,F)=>(m(),g(y,{key:F},[parseInt(u.value)!==0?(m(),v(E,{key:0,label:parseInt(u.value)},{default:r(()=>[p(_(u.name),1)]),_:2},1032,["label"])):G("",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1}),l(t,{label:"\u5907\u6CE8",prop:"remark"},{default:r(()=>[l(R,{modelValue:n(o).remark,"onUpdate:modelValue":a[1]||(a[1]=u=>n(o).remark=u),type:"textarea",rows:4},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])])]),_:1},512)}}});export{Q as _,K as a};
