import{u as e}from"./useFormEdit-098e87f9-1780912037814v=1.0.0.js";import{u as a,b as o}from"./fundDisbursementPool-71e837bf-1780912037814v=1.0.0.js";import{d as t,r as i,s as l,W as s,a as r,b as d,c as n,w as u,k as f,e as p,j as m,f as _,H as c,E as v,_ as b}from"./index-d052b22f-1780912037814v=1.0.0.js";import"./tabs-f13d13c5-1780912037814v=1.0.0.js";const h={class:"btns"},j=b(t({__name:"infoCheck",props:{visible:{type:Boolean,default:!1},info:{default:{project_transfer_order_id:""}},api:{}},emits:["update:visible","close","handleSubmitCheck","reset"],setup(t,{expose:b,emit:j}){e();const g=i(),k=i({audit_opinion:""}),x=t,y=j,w=l({get:()=>x.visible,set:e=>{y("close")}});s((()=>x.info),(()=>{if(x.info.project_transfer_order_id){let{audit_opinion:e}=x.info;k.value.audit_opinion=e}}),{deep:!0,immediate:!0});const C=e=>{y("close"),y("update:visible",!1),null==e||e.resetFields()};return b({formRef:g}),(e,t)=>{const i=r("el-input"),l=r("el-form-item"),s=r("el-form"),b=r("el-button"),j=r("el-dialog");return d(),n(j,{width:"550px",title:"信息核实",modelValue:_(w),"onUpdate:modelValue":t[3]||(t[3]=e=>c(w)?w.value=e:null),onClose:t[4]||(t[4]=e=>C(g.value)),align:"center"},{footer:u((()=>[f("div",h,[p(b,{onClick:t[1]||(t[1]=e=>C(g.value))},{default:u((()=>t[5]||(t[5]=[m("取消")]))),_:1}),p(b,{type:"primary",onClick:t[2]||(t[2]=e=>(async e=>{e.validate((async(e,t)=>{if(e){let e,t={...k.value};x.info.project_transfer_order_id?(t.project_transfer_order_id=x.info.project_transfer_order_id,e=await a(t)):e=await o(t);let{code:i,data:l,message:s}=e;200==i?(v.success(x.info.project_transfer_order_id?"更新成功":"新增成功"),y("reset"),y("handleSubmitCheck",!0),y("close"),y("update:visible",!1)):(y("handleSubmitCheck",!1),v({type:"error",message:s}))}}))})(g.value))},{default:u((()=>t[6]||(t[6]=[m("提交")]))),_:1})])])),default:u((()=>[p(s,{"label-width":"100px",model:k.value,ref_key:"formRef",ref:g},{default:u((()=>[p(l,{label:"项目佐证材料审核意见",prop:"audit_opinion",rules:{required:!0,message:"请输入意见",trigger:"blur"}},{default:u((()=>[p(i,{modelValue:k.value.audit_opinion,"onUpdate:modelValue":t[0]||(t[0]=e=>k.value.audit_opinion=e),modelModifiers:{trim:!0},maxlength:"500",autosize:{minRows:9,maxRows:12},type:"textarea",placeholder:"请输入意见"},null,8,["modelValue"])])),_:1})])),_:1},8,["model"])])),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-b99f8828"]]);export{j as default};
