You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
7.9KB

  1. import{r as v,E as te,y as ae,x as le,a as S,$ as V,B as ne,o as oe,b as m,c as i,d as b,L as $,j as _,f as l,h as t,e as c,F as L,H as G,t as u,i as n,k as ue,s as se}from"./index-dd5fae99.js";import{b as U}from"./renewalProjectTreasury-fd1e2d66.js";import{r as re}from"./renewalProjectCapitalDeclare-e1231fa5.js";import{c as ie}from"./contractRecord-8df6539a.js";const me={class:""},pe={class:"flex justify-around"},de={class:"flex justify-center items-center mt-10"},ce={class:"dialog-footer"},fe=ue({name:"projectTreasuryDetail"}),ge=Object.assign(fe,{setup(ye){const F=v(),{statusOptions:A,statusGjOptions:R,projectTypeOptions:H}=te.dictStore.globalDicts||{},I=v(),Y=ae(),g=le(),M=v(0),k=v(!1),{proxy:P}=se(),W=S([{label:"项目名称",key:"projectName",prop:"projectName"},{label:"项目类型",key:"projectType",prop:"projectType",minWidth:"80",render:o=>V("span",H[o.projectType]||"-")},{label:"批复总金额(万元)",key:"approvalAmount",prop:"approvalAmount"},{label:"累计年度投资资金",key:"annualAccumulateAmountList",slot:"annualAccumulateAmountList"},{label:"项目状态",key:"status",prop:"status",render:o=>{var e,p,w,r,x,d,T,C;return[V("span",{class:["dot mr-4",`bg-${((e=A[o.status])==null?void 0:e.color)||((p=R[o.status])==null?void 0:p.color)}`]}),V("span",{class:`text-${((w=A[o.status])==null?void 0:w.color)||((r=R[o.status])==null?void 0:r.color)}`},o.status&&((x=A[o.stage])!=null&&x.name)?`${(d=A[o.stage])==null?void 0:d.name}-${(T=A[o.status])==null?void 0:T.name}`:((C=R[o.status])==null?void 0:C.name)||"-")]}}]),D=v([]),j=S({}),h=S({auditOpinion:[{required:!0,message:"请填写审核意见",trigger:"blur"}]}),z=async o=>{o&&await o.validate(async(e,p)=>{e?(await U({projectRenewalId:g.query.projectRenewalId*1,result:!1,auditOpinion:j.auditOpinion}),j.auditOpinion=void 0,P.$message.success("审核意见提交成功!"),k.value=!1,N(),Y.push({name:"renewalProjectTreasury"})):console.log("error submit!",p)})},J=()=>{P.$messageBox.confirm("确认审核通过吗?","提示!",{type:"warning"}).then(async()=>{await U({projectRenewalId:g.query.projectRenewalId*1,result:!0}),P.$message.success("审核通过!"),N(),Y.push({name:"renewalProjectTreasury"})})},O=v(""),s=v({}),N=async()=>{const o=await re(g.query.projectRenewalId);s.value=o.data,D.value=[{...o.data}],Q(D.value[0].projectId)},K=[{label:"付款笔数",key:"number",slot:"number"},{label:"付款计划",key:"planAmount",slot:"planAmount"},{label:"付款比例(%)",key:"ratio",slot:"ratio"},{label:"付款金额(万元)",key:"paymentAmount",slot:"paymentAmount"},{label:"预计付款时间",key:"paymentTime",slot:"paymentTime"},{label:"实际支付金额(万元)",key:"actualPaymentAmount",slot:"actualPaymentAmount",width:180}],B=v(),Q=async o=>{var p;const e=await ie(o);B.value=((p=e==null?void 0:e.data)==null?void 0:p.payments)||[]};return ne(g,o=>{O.value=g.meta.title},{immediate:!0,deep:!0}),oe(()=>{N()}),(o,e)=>{const p=m("el-alert"),w=m("table-list"),r=m("el-descriptions-item"),x=m("el-descriptions"),d=m("el-button"),T=m("el-card"),C=m("el-input"),X=m("el-form-item"),Z=m("el-form"),ee=m("el-dialog");return i(),b("div",me,[s.value.approvalStatus==="NOT_PASS"?(i(),$(p,{key:0,title:"审核不通过",type:"error",description:`审核意见:${s.value.auditOpinion}`,"show-icon":""},null,8,["description"])):_("",!0),l(T,{class:"box-card"},{header:t(()=>e[7]||(e[7]=[c("div",{class:"card-header"},[c("span",null,"申报信息")],-1)])),default:t(()=>{var f,q;return[c("div",pe,[e[8]||(e[8]=c("div",{class:"flex-shrink-0 text-14"},"关联项目:",-1)),l(w,{ref_key:"tableListRef",ref:F,column:W,data:D.value,total:M.value,height:200,pagination:!1,class:"flex-1"},{annualAccumulateAmountList:t(({scope:a})=>[(i(!0),b(L,null,G(a.row.annualAccumulateAmountList,(y,E)=>(i(),b("p",{key:E},u(E+1)+"、"+u(y.projectYear)+"年投资"+u(y.annualAmount)+"万元",1))),128))]),_:1},8,["column","data","total"])]),e[14]||(e[14]=c("p",{class:"font-bold mb-8"},"支付信息",-1)),l(w,{ref_key:"tableListRef",ref:F,column:K,data:B.value,pagination:!1,"empty-temp":!1,class:"mb-16"},{number:t(({scope:a})=>[c("span",null,"第"+u(a.$index+1)+"笔",1)]),planAmount:t(({scope:a})=>[n(u(a.row.planAmount),1)]),ratio:t(({scope:a})=>[n(u(a.row.ratio),1)]),paymentAmount:t(({scope:a})=>[n(u(a.row.paymentAmount),1)]),paymentTime:t(({scope:a})=>[n(u(a.row.paymentTime),1)]),actualPaymentAmount:t(({scope:a})=>[n(u(a.row.actualPaymentAmount),1)]),_:1},8,["data"]),(q=(f=s.value.annualAccumulateAmountList)==null?void 0:f.filter((a,y)=>y!==0&&a.projectYear!==s.value.projectYear))!=null&&q.length?(i(),b(L,{key:0},[e[9]||(e[9]=c("p",{class:"font-bold mt-20"},"历史续建资金信息",-1)),(i(!0),b(L,null,G(s.value.annualAccumulateAmountList.filter((a,y)=>y!==0&&a.projectYear!==s.value.projectYear),(a,y)=>(i(),$(x,{key:y,class:"mt-20",column:2,border:""},{default:t(()=>[l(r,{label:"预算年度",span:"1",width:"250px"},{default:t(()=>[n(u(a.projectYear),1)]),_:2},1024),l(r,{label:`${a.projectYear}年支付金额(万元)`,width:"250px"},{default:t(()=>[n(u(a.annualAmount),1)]),_:2},1032,["label"]),l(r,{label:"自有金额(万元)"},{default:t(()=>[n(u(a.haveAmount),1)]),_:2},1024),l(r,{label:"政府投资-本级财政资金(万元)"},{default:t(()=>[n(u(a.govOwnFinanceAmount),1)]),_:2},1024),l(r,{label:"政府投资-上级补助资金(万元)"},{default:t(()=>[n(u(a.govSuperiorFinanceAmount),1)]),_:2},1024),l(r,{label:"银行贷款(万元)"},{default:t(()=>[n(u(a.bankLendingAmount),1)]),_:2},1024),l(r,{label:"其他(万元)",span:"2"},{default:t(()=>[n(u(a.otherAmount),1)]),_:2},1024)]),_:2},1024))),128))],64)):_("",!0),l(x,{class:"mt-20",title:"申报续建资金信息",column:2,border:""},{default:t(()=>[l(r,{label:"预算年度",span:"1",width:"250px"},{default:t(()=>[n(u(s.value.projectYear),1)]),_:1}),l(r,{label:"下一年度支付金额(万元)",width:"250px"},{default:t(()=>[n(u(s.value.annualPaymentAmount),1)]),_:1}),l(r,{label:"自有金额(万元)"},{default:t(()=>[n(u(s.value.haveAmount),1)]),_:1}),l(r,{label:"政府投资-本级财政资金(万元)"},{default:t(()=>[n(u(s.value.govOwnFinanceAmount),1)]),_:1}),l(r,{label:"政府投资-上级补助资金(万元)"},{default:t(()=>[n(u(s.value.govSuperiorFinanceAmount),1)]),_:1}),l(r,{label:"银行贷款(万元)"},{default:t(()=>[n(u(s.value.bankLendingAmount),1)]),_:1}),l(r,{label:"其他(万元)",span:"2"},{default:t(()=>[n(u(s.value.otherAmount),1)]),_:1})]),_:1}),c("div",de,[O.value=="续建项目资金库详情"&&s.value.approvalStatus==="NOT_PASS"?(i(),$(d,{key:0,class:"mr-20",type:"primary",onClick:e[0]||(e[0]=a=>o.$router.push({name:"storeRenewalCapitalDeclare",query:{id:s.value.id}}))},{default:t(()=>e[10]||(e[10]=[n("重新申报")])),_:1})):_("",!0),s.value.approvalStatus==="PENDING"?(i(),b(L,{key:1},[O.value!=="续建项目资金库详情"?(i(),$(d,{key:0,class:"mr-20",type:"primary",onClick:J},{default:t(()=>e[11]||(e[11]=[n("通过")])),_:1})):_("",!0),O.value!=="续建项目资金库详情"?(i(),$(d,{key:1,class:"mr-20",type:"danger",onClick:e[1]||(e[1]=a=>k.value=!0)},{default:t(()=>e[12]||(e[12]=[n("不通过")])),_:1})):_("",!0)],64)):_("",!0),l(d,{plain:"",onClick:e[2]||(e[2]=a=>o.$router.go(-1))},{default:t(()=>e[13]||(e[13]=[n("返回")])),_:1})])]}),_:1}),l(ee,{modelValue:k.value,"onUpdate:modelValue":e[6]||(e[6]=f=>k.value=f),title:"不通过"},{footer:t(()=>[c("span",ce,[l(d,{type:"primary",onClick:e[4]||(e[4]=f=>z(I.value))},{default:t(()=>e[15]||(e[15]=[n(" 提交 ")])),_:1}),l(d,{onClick:e[5]||(e[5]=f=>k.value=!1)},{default:t(()=>e[16]||(e[16]=[n("关闭")])),_:1})])]),default:t(()=>[l(Z,{ref_key:"ruleFormRef",ref:I,model:j,rules:h,"status-icon":""},{default:t(()=>[l(X,{label:"审核意见","label-width":"auto",prop:"auditOpinion"},{default:t(()=>[l(C,{modelValue:j.auditOpinion,"onUpdate:modelValue":e[3]||(e[3]=f=>j.auditOpinion=f),maxlength:"200",placeholder:"请输入","show-word-limit":"",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])])}}});export{ge as default};