您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

2 行
8.0KB

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