合并概算表

master
OathK1per 2022-11-04 10:41:56 +08:00
parent 13e80bf8c2
commit bdad08ba7d
5 changed files with 71 additions and 63 deletions

View File

@ -163,12 +163,16 @@ public class ProjectController extends BaseController {
response.setHeader("Content-Type", "application/vnd.ms-excel");
ServletOutputStream outputStream = response.getOutputStream();
ExportExcelUtils exportExcelUtils = new ExportExcelUtils();
String[] headers0 = {"部门名称", "项目编号", "项目名称", "项目类型", "项目计划开始时间", "项目计划结束时间", "垫资模式", "合作对象", "垫资利息", "垫资峰值", "合同金额", "项目毛利", "项目毛利率", "华智产品金额", "汇智产品金额", "华三产品金额", "其他产品金额", "项目把握度", "行业场景应用", "项目解决方案", "客户名称", "最终用户名称", "价值及风险"};
String[] columns0 = {"deptName", "projectNo", "name", "typeDesc", "startDate", "endDate", "underwrittenModeStr", "collaborator", "advanceInterestAmountRound", "advancePeakAmountRound", "contractRound", "grossProfitRound", "grossProfitMarginRound", "huazhiRound", "huizhiRound", "huasanRound", "ziguangRound", "certaintyStr", "industryScenario", "resolvePlanStr", "customer", "terminalCustomer", "valueRisk"};
String[] headers0 = {"部门名称", "项目编号", "项目名称", "项目类型", "项目计划开始时间", "项目计划结束时间", "垫资模式", "合作对象", "垫资利息", "垫资峰值", "合同金额",
"项目毛利", "项目毛利率", "华智产品金额", "汇智产品金额", "华三产品金额", "其他产品金额", "项目把握度", "行业场景应用", "项目解决方案", "客户名称", "最终用户名称",
"价值及风险", "项目负责人", "预计合同签订时间", "项目计划招标时间", "是否二次合作", "直签", "主合同收款条款", "主合同具体解决方案", "计收计划"};
String[] columns0 = {"deptName", "projectNo", "name", "typeDesc", "startDate", "endDate", "underwrittenModeStr", "collaborator", "advanceInterestAmountRound", "advancePeakAmountRound", "contractRound",
"grossProfitRound", "grossProfitMarginRound", "huazhiRound", "huizhiRound", "huasanRound", "ziguangRound", "certaintyStr", "industryScenario", "resolvePlanStr", "customer", "terminalCustomer",
"valueRisk", "principal", "contractTime", "bidsTime", "isSecondStr", "signTypeStr", "mainContractCollectionTerms", "mainContractResolvePlan", "calculationCollection"};
exportExcelUtils.exportProjectExcel(headers0, columns0, project, "yyyy-MM-dd", 0, "项目立项(概算)基本信息", outputStream);
String[] headers1 = {"项目负责人", "预计合同签订时间", "项目计划招标时间", "是否二次合作", "直签", "主合同收款条款", "主合同具体解决方案", "计收计划"};
String[] columns1 = {"principal", "contractTime", "bidsTime", "isSecondStr", "signTypeStr", "mainContractCollectionTerms", "mainContractResolvePlan", "calculationCollection"};
exportExcelUtils.exportProjectExcel(headers1, columns1, project, "yyyy-MM-dd", 0, "项目立项(概算)其他信息", outputStream);
// String[] headers1 = {"项目负责人", "预计合同签订时间", "项目计划招标时间", "是否二次合作", "直签", "主合同收款条款", "主合同具体解决方案", "计收计划"};
// String[] columns1 = {"principal", "contractTime", "bidsTime", "isSecondStr", "signTypeStr", "mainContractCollectionTerms", "mainContractResolvePlan", "calculationCollection"};
// exportExcelUtils.exportProjectExcel(headers1, columns1, project, "yyyy-MM-dd", 0, "项目立项(概算)其他信息", outputStream);
BudgetBean budgetBean = projectBudgetService.getBudget(project);
if (project.getStatus() < 5) {
exportExcelUtils.end(outputStream);
@ -1116,8 +1120,12 @@ public class ProjectController extends BaseController {
response.setHeader("Content-Type", "application/vnd.ms-excel");
ServletOutputStream outputStream = response.getOutputStream();
ExportExcelUtils exportExcelUtils = new ExportExcelUtils();
String[] headers0 = {"部门名称", "项目编号", "项目名称", "项目类型", "项目计划开始时间", "项目计划结束时间", "垫资模式", "合作对象", "垫资利息", "垫资峰值", "合同金额", "项目毛利", "项目毛利率", "华智产品金额", "汇智产品金额", "华三产品金额", "其他产品金额", "项目把握度", "行业场景应用", "项目解决方案", "客户名称", "最终用户名称", "价值及风险"};
String[] columns0 = {"deptName", "projectNo", "name", "typeDesc", "startDate", "endDate", "underwrittenModeStr", "collaborator", "advanceInterestAmountRound", "advancePeakAmountRound", "contractRound", "grossProfitRound", "grossProfitMarginRound", "huazhiRound", "huizhiRound", "huasanRound", "ziguangRound", "certaintyStr", "industryScenario", "resolvePlanStr", "customer", "terminalCustomer", "valueRisk"};
String[] headers0 = {"部门名称", "项目编号", "项目名称", "项目类型", "项目计划开始时间", "项目计划结束时间", "垫资模式", "合作对象", "垫资利息", "垫资峰值",
"合同金额", "项目毛利", "项目毛利率", "华智产品金额", "汇智产品金额", "华三产品金额", "其他产品金额", "项目把握度", "行业场景应用", "项目解决方案",
"客户名称", "最终用户名称", "价值及风险", "项目负责人", "预计合同签订时间", "项目计划招标时间", "是否二次合作", "直签", "主合同收款条款", "主合同具体解决方案", "计收计划"};
String[] columns0 = {"deptName", "projectNo", "name", "typeDesc", "startDate", "endDate", "underwrittenModeStr", "collaborator", "advanceInterestAmountRound", "advancePeakAmountRound",
"contractRound", "grossProfitRound", "grossProfitMarginRound", "huazhiRound", "huizhiRound", "huasanRound", "ziguangRound", "certaintyStr", "industryScenario", "resolvePlanStr",
"customer", "terminalCustomer", "valueRisk", "principal", "contractTime", "bidsTime", "isSecondStr", "signTypeStr", "mainContractCollectionTerms", "mainContractResolvePlan", "calculationCollection"};
exportExcelUtils.exportProjectExcel(headers0, columns0, project, "yyyy-MM-dd", 0, "项目立项(概算)基本信息", outputStream);
exportExcelUtils.end(outputStream);

View File

@ -152,9 +152,9 @@
<div class="am-tabs palm-tabs outer" data-am-tabs>
<ul class="am-tabs-nav am-nav am-nav-tabs palm-tabs-nav">
<li id="jiben" <#if check==1>class="am-active"</#if>><a href="#tab1">项目立项(概算)基本信息</a></li>
<#if project.status==1 || project.status==5 || project.status==10 || project.status==15>
<li><a href="#tab2">项目立项(概算)其他信息</a></li>
</#if>
<#-- <#if project.status==1 || project.status==5 || project.status==10 || project.status==15>-->
<#-- <li><a href="#tab2">项目立项(概算)其他信息</a></li>-->
<#-- </#if>-->
<#if project.status==5 || project.status==10 || project.status==15>
<li><a href="#tab3">项目预算信息</a></li>
</#if>
@ -321,26 +321,26 @@
>${project.valueRisk!}</textarea>
</td>
</tr>
</table>
<!--endprint-->
</div>
<!--验证表单元素validate end-->
<div class="am-tab-panel am-fade am-in" id="tab2">
<div class="am-u-sm-12 am-u-md-12" style="padding:0 1.6rem 1.6rem 1rem;margin:0;">
<div class="am-btn-toolbar" style="padding-left:.5rem;">
<div class="am-btn-group am-btn-group-xs">
<button type="button" class="am-btn am-btn-default" onclick="location.href='${base}/project/estimateSecondExport?id=${project.id!}'">
<span class="am-icon-archive"></span> 导出
</button>
</div>
</div>
</div>
<#-- </table>-->
<#-- <!--endprint&ndash;&gt;-->
<#-- </div>-->
<#-- <!--验证表单元素validate end&ndash;&gt;-->
<#-- <div class="am-tab-panel am-fade am-in" id="tab2">-->
<#-- <div class="am-u-sm-12 am-u-md-12" style="padding:0 1.6rem 1.6rem 1rem;margin:0;">-->
<#-- <div class="am-btn-toolbar" style="padding-left:.5rem;">-->
<#-- <div class="am-btn-group am-btn-group-xs">-->
<#-- <button type="button" class="am-btn am-btn-default" onclick="location.href='${base}/project/estimateSecondExport?id=${project.id!}'">-->
<#-- <span class="am-icon-archive"></span> 导出-->
<#-- </button>-->
<#-- </div>-->
<#-- </div>-->
<#-- </div>-->
<table id="myTable" class="am-table am-table-bordered">
<tr class="am-text-nowrap">
<th class="table-title" colspan="6" style="text-align: center">项目立项(概算)其他信息</th>
<input type="hidden" style="border-style:none;" name="id" id="id" value="${id!}"/>
</tr>
<#-- <table id="myTable" class="am-table am-table-bordered">-->
<#-- <tr class="am-text-nowrap">-->
<#-- <th class="table-title" colspan="6" style="text-align: center">项目立项(概算)其他信息</th>-->
<#-- <input type="hidden" style="border-style:none;" name="id" id="id" value="${id!}"/>-->
<#-- </tr>-->
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="font-size: 15px">项目负责人:</span></th>
<td class="table-title" colspan="1" ><input readonly value="${project.principal!}"/></td>

View File

@ -83,7 +83,7 @@
<div class="am-tabs palm-tabs" data-am-tabs>
<ul class="am-tabs-nav am-nav am-nav-tabs palm-tabs-nav">
<li class="am-active"><a href="#tab1">项目立项(概算)基本信息</a></li>
<li><a href="#tab2">项目立项(概算)其他信息</a></li>
<#-- <li><a href="#tab2">项目立项(概算)其他信息</a></li>-->
<li><a href="#tab3">收入明细表</a></li>
<li><a href="#tab8">收款计划表</a></li>
<li><a href="#tab4">采购成本明细表</a></li>
@ -321,15 +321,15 @@
>${project.valueRisk!}</textarea>
</td>
</tr>
</table>
</div>
<!--验证表单元素validate end-->
<div class="am-tab-panel am-fade am-in" id="tab2">
<table id="myTable" class="am-table am-table-bordered">
<tr class="am-text-nowrap">
<th class="table-title" colspan="6" style="text-align: center">项目立项(概算)其他信息</th>
<input type="hidden" style="border-style:none;" name="id" id="id" value="${id!}"/>
</tr>
<#-- </table>-->
<#-- </div>-->
<#-- <!--验证表单元素validate end&ndash;&gt;-->
<#-- <div class="am-tab-panel am-fade am-in" id="tab2">-->
<#-- <table id="myTable" class="am-table am-table-bordered">-->
<#-- <tr class="am-text-nowrap">-->
<#-- <th class="table-title" colspan="6" style="text-align: center">项目立项(概算)其他信息</th>-->
<#-- <input type="hidden" style="border-style:none;" name="id" id="id" value="${id!}"/>-->
<#-- </tr>-->
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目负责人:</span></th>
<td class="table-title" colspan="1" >

View File

@ -40,7 +40,7 @@
<div class="am-tabs am-margin" data-am-tabs>
<ul class="am-tabs-nav am-nav am-nav-tabs">
<li class="am-active"><a href="#tab1">项目立项(概算)基本信息</a></li>
<li><a href="#tab2">项目立项(概算)其他信息</a></li>
<#-- <li><a href="#tab2">项目立项(概算)其他信息</a></li>-->
</ul>
<div class="am-tabs-bd">
<div class="am-tab-panel am-fade am-in am-active" id="tab1">
@ -243,18 +243,18 @@
></textarea>
</td>
</tr>
</table>
</div>
<!--验证表单元素validate end-->
</div>
<#-- </table>-->
<#-- </div>-->
<#-- <!--验证表单元素validate end&ndash;&gt;-->
<#-- </div>-->
<div class="am-tabs-bd">
<div class="am-tab-panel am-fade am-in" id="tab2">
<table id="myTable" class="am-table am-table-bordered">
<tr class="am-text-nowrap">
<th class="table-title" colspan="6" style="text-align: center">项目立项(概算)其他信息</th>
<input type="hidden" style="border-style:none;" name="id" id="id" value="${id!}"/>
</tr>
<#-- <div class="am-tabs-bd">-->
<#-- <div class="am-tab-panel am-fade am-in" id="tab2">-->
<#-- <table id="myTable" class="am-table am-table-bordered">-->
<#-- <tr class="am-text-nowrap">-->
<#-- <th class="table-title" colspan="6" style="text-align: center">项目立项(概算)其他信息</th>-->
<#-- <input type="hidden" style="border-style:none;" name="id" id="id" value="${id!}"/>-->
<#-- </tr>-->
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目负责人:</span></th>
<td class="table-title" colspan="1" >

View File

@ -45,7 +45,7 @@
<div class="am-tabs am-margin" data-am-tabs>
<ul class="am-tabs-nav am-nav am-nav-tabs">
<li class="am-active"><a href="#tab1">项目立项(概算)基本信息</a></li>
<li><a href="#tab2">项目立项(概算)其他信息</a></li>
<#-- <li><a href="#tab2">项目立项(概算)其他信息</a></li>-->
</ul>
<div class="am-tabs-bd">
<div class="am-tab-panel am-fade am-in am-active" id="tab1">
@ -276,19 +276,19 @@
>${project.valueRisk!}</textarea>
</td>
</tr>
</table>
<#-- </table>-->
</div>
<!--验证表单元素validate end-->
</div>
<#-- </div>-->
<#-- <!--验证表单元素validate end&ndash;&gt;-->
<#-- </div>-->
<div class="am-tabs-bd">
<div class="am-tab-panel am-fade am-in" id="tab2">
<table id="myTable" class="am-table am-table-bordered">
<tr class="am-text-nowrap">
<th class="table-title" colspan="6" style="text-align: center">项目立项(概算)其他信息</th>
<input type="hidden" style="border-style:none;" name="id" id="id" value="${id!}"/>
</tr>
<#-- <div class="am-tabs-bd">-->
<#-- <div class="am-tab-panel am-fade am-in" id="tab2">-->
<#-- <table id="myTable" class="am-table am-table-bordered">-->
<#-- <tr class="am-text-nowrap">-->
<#-- <th class="table-title" colspan="6" style="text-align: center">项目立项(概算)其他信息</th>-->
<#-- <input type="hidden" style="border-style:none;" name="id" id="id" value="${id!}"/>-->
<#-- </tr>-->
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目负责人:</span></th>
<td class="table-title" colspan="1" >