From 5f034da78a75c7dbd2c2d6389aabd0058fa59e04 Mon Sep 17 00:00:00 2001 From: OathK1per Date: Thu, 11 Aug 2022 16:22:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A6=82=E7=AE=97=E9=A2=84?= =?UTF-8?q?=E7=AE=97=E8=A1=A8=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/palmte/work/model/Project.java | 54 ++- .../templates/admin/project_approve.ftl | 274 +++++++++++-- .../templates/admin/project_budget_edit.ftl | 368 ++++++++++++++---- .../templates/admin/project_estimate_add.ftl | 109 +++++- .../templates/admin/project_estimate_edit.ftl | 350 +++++++++++++---- 5 files changed, 927 insertions(+), 228 deletions(-) diff --git a/src/main/java/cn/palmte/work/model/Project.java b/src/main/java/cn/palmte/work/model/Project.java index ea689df..1dbdc4c 100644 --- a/src/main/java/cn/palmte/work/model/Project.java +++ b/src/main/java/cn/palmte/work/model/Project.java @@ -1,6 +1,7 @@ package cn.palmte.work.model; import cn.palmte.work.bean.ApproveStatusEnum; +import org.hibernate.annotations.CollectionId; import org.hibernate.annotations.GenericGenerator; import top.jfunc.common.datetime.DatetimeUtils; @@ -185,43 +186,52 @@ public class Project { @Transient private String underwrittenModeDesc; - @Transient + @Column(name = "certainty") private String certainty; - @Transient + @Column(name = "gross_profit") private BigDecimal grossProfit; - @Transient + @Column(name = "gross_profit_margin") private BigDecimal grossProfitMargin; - @Transient + @Column(name = "huizhi_product_amount") private BigDecimal huizhiProductAmount; - @Transient + @Column(name = "huasan_product_amount") private BigDecimal huasanProductAmount; - @Transient + @Column(name = "principal") private String principal; - @Transient + @Column(name = "contract_time") private Date contractTime; - @Transient + @Column(name = "bids_time") private Date bidsTime; + @Column(name = "is_second") + private int isSecond; + @Transient private String isSecondStr; + @Column(name = "sign_type") + private int signType; + @Transient private String signTypeStr; + @Column(name = "resolve_plan") + private int resolvePlan; + @Transient private String resolvePlanStr; - @Transient + @Column(name = "main_contract_resolve_plan") private String mainContractResolvePlan; - @Transient + @Column(name = "calculation_collection") private String CalculationCollection; @Transient @@ -688,4 +698,28 @@ public class Project { public void setZiguangRound(String ziguangRound) { this.ziguangRound = ziguangRound; } + + public int getIsSecond() { + return isSecond; + } + + public void setIsSecond(int isSecond) { + this.isSecond = isSecond; + } + + public int getSignType() { + return signType; + } + + public void setSignType(int signType) { + this.signType = signType; + } + + public int getResolvePlan() { + return resolvePlan; + } + + public void setResolvePlan(int resolvePlan) { + this.resolvePlan = resolvePlan; + } } diff --git a/src/main/resources/templates/admin/project_approve.ftl b/src/main/resources/templates/admin/project_approve.ftl index 037feb0..08f41e0 100644 --- a/src/main/resources/templates/admin/project_approve.ftl +++ b/src/main/resources/templates/admin/project_approve.ftl @@ -144,27 +144,12 @@
-
-
*
-
- -
-
-
-
-
*
-
- -
-
-
-
*
<#----> - +
@@ -174,7 +159,7 @@
<#----> - +
@@ -182,32 +167,94 @@
*
- - <#if (project.type) =1> - - <#elseif (project.type) =2> - - <#elseif (project.type) =3> - - - + + <#if (project.type) =1> + + <#elseif (project.type) =2> + + <#elseif (project.type) =3> + + +
+ +
+
*
+
+ +
+
+
+ +
+
*
+
+ +
+
+
+
*
- - <#if (project.underwrittenMode) =1> - - <#elseif (project.underwrittenMode) =2> - - <#elseif (project.underwrittenMode) =3> - - <#elseif (project.underwrittenMode) =4> - - - + + <#if (project.underwrittenMode) =1> + + <#elseif (project.underwrittenMode) =2> + + <#elseif (project.underwrittenMode) =3> + + <#elseif (project.underwrittenMode) =4> + + + +
+
+
+ +
+
*
+
+ +
+ +
+ + +
+ +
+
+
+
+
+
+
+ +
+
*
+
+ + <#if (project.certainty) =1> + + <#elseif (project.certainty) =2> + + <#elseif (project.certainty) =3> + + + +
+
+
+ +
+
*
+
+
@@ -217,7 +264,7 @@
<#-- --> - +
@@ -227,7 +274,7 @@
<#----> - +
@@ -252,13 +299,23 @@
+
-
*
+
*
- +
+ +
+
*
+
+ +
+
+
+
@@ -266,6 +323,23 @@
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+
@@ -273,6 +347,7 @@
+
*
@@ -281,6 +356,7 @@
+
*
@@ -293,7 +369,123 @@
+
+
+
+
*
+
+ +
+
+
+ +
+
*
+
+
+ + +
+
+
+
+
+
*
+
+
+ + +
+
+
+
+ +
+
*
+
+ + <#if (project.isSecond!) =1> + + <#elseif (project.isSecond!) =2> + + + +
+
+
+ +
+
*
+
+ + <#if (project.signType!) =1> + + + +
+
+
+ +
+
*
+
+ + <#if (project.resolvePlan!) =1> + + <#elseif (project.resolvePlan!) =2> + + <#elseif (project.resolvePlan!) =3> + + + +
+
+
+ +
+
*
+
+ +
+
+
+
+
*
+
+ +
+
+
+ +
+
*
+
+ +
+
+
+ +
+
*
+
+ +
+
+
+ +
+
*
+
+ +
+
+
+
+
<#--
--> <#--
--> <#-- <#if (project.status==1 || project.status==5 || project.status==10 || project.status==15) && project.approveStatusEstimate == 1>--> diff --git a/src/main/resources/templates/admin/project_budget_edit.ftl b/src/main/resources/templates/admin/project_budget_edit.ftl index adbb786..8b40075 100644 --- a/src/main/resources/templates/admin/project_budget_edit.ftl +++ b/src/main/resources/templates/admin/project_budget_edit.ftl @@ -60,7 +60,39 @@
*部门名称
- ${project.deptName} + ${project.deptName!} +
+
+
+ +
+
*项目编号
+
+ +
+
+
+ +
+
*项目名称
+
+ +
+
+
+ +
+
*项目类型
+
+
@@ -92,37 +124,6 @@
-
-
*项目编号
-
- -
-
-
- -
-
*项目名称
-
- -
-
-
- -
-
*项目类型
-
- -
-
-
*垫资模式
@@ -136,6 +137,51 @@
+
+
*合作对象
+
+ +
+ +
+ + +
+ +
+
+
+
+
+
+
+ +
+
*项目把握度
+
+ +
+
+
+ +
+
*行业场景应用
+
+ +
+
+
+
*客户名称
@@ -145,6 +191,7 @@
+
*终端客户名称
@@ -154,24 +201,7 @@
-<#--
--> -<#--
*垫资利息
--> -<#--
--> -<#-- -<#-- name="advanceInterestAmount" placeholder="单位(元)" maxlength="20"--> -<#-- value="${Utils.format(project.advanceInterestAmount)}" required />--> -<#--
--> -<#--
--> -<#--
--> -<#--
--> -<#--
*垫资峰值
--> -<#--
--> -<#-- -<#-- name="advancePeakAmount" placeholder="单位(元)" maxlength="20"--> -<#-- value="${Utils.format(project.advancePeakAmount)}" required />--> -<#--
--> -<#--
--> -<#--
--> +
*合同金额
@@ -181,15 +211,27 @@
+
-
*行业场景应用
+
*项目毛利
- +
+ +
+
*项目毛利率
+
+ +
+
+
+
华智产品金额
@@ -199,6 +241,27 @@
+ +
+
汇智产品金额
+
+ +
+
+
+ +
+
华三产品金额
+
+ +
+
+
+
其他产品金额
@@ -208,16 +271,7 @@
-
-
*主合同收款条款
-
- -
-
-
+
*价值及风险
@@ -233,8 +287,132 @@
-<#--
--> -<#--
--> +
+
+ +
+
*项目负责人
+
+ +
+
+
+ +
+
*预计合同签订时间
+
+
+ + +
+
+
+
+
+
*项目计划招标时间
+
+
+ + +
+
+
+
+ +
+
*是否二次合作
+
+ +
+
+
+ +
+
*签单方式
+
+ +
+
+
+ +
+
*项目解决方案
+
+ +
+
+
+ +
+
*垫资利息
+
+ +
+
+
+
+
*垫资峰值
+
+ +
+
+
+ +
+
*主合同收款条款
+
+ +
+
+
+ +
+
*主合同具体解决方案
+
+ +
+
+
+ +
+
*计收计划
+
+ +
+
+
+
+
<#-- 收入--> <#-- --> <#-- --> @@ -396,6 +574,7 @@ + @@ -417,6 +596,7 @@ + @@ -431,6 +611,7 @@ + @@ -461,6 +642,7 @@ + @@ -498,6 +680,7 @@ + @@ -513,6 +696,7 @@ + @@ -607,6 +791,9 @@
税率(%) 含税总金额(元) 不含税金额(元)税金(元) 操作
税率(%) 含税总金额(元) 不含税金额(元)税金(元) 操作
+
+ 备注:本表展示不含税金额 +
-<#--
--> -<#--
*垫资利息
--> -<#--
--> -<#-- -<#-- name="advanceInterestAmount" placeholder="单位(元)" maxlength="16"--> -<#-- value="" required />--> -<#--
--> -<#--
--> -<#--
--> -<#--
--> -<#--
*垫资峰值
--> -<#--
--> -<#-- -<#-- name="advancePeakAmount" placeholder="单位(元)" maxlength="16"--> -<#-- value="" required />--> -<#--
--> -<#--
--> -<#--
-->
*合同金额
@@ -265,6 +247,95 @@
+
+
*项目负责人
+
+ +
+
+
+ +
+
*预计合同签订时间
+
+
+ + +
+
+
+
+
+
*项目计划招标时间
+
+
+ + +
+
+
+
+ +
+
*是否二次合作
+
+ +
+
+
+ +
+
*签单方式
+
+ +
+
+
+ +
+
*项目解决方案
+
+ +
+
+
+ +
+
*垫资利息
+
+ +
+
+
+
+
*垫资峰值
+
+ +
+
+
+
*主合同收款条款
@@ -538,6 +609,8 @@ <#--
--> <#-- <#--
--> +
+
diff --git a/src/main/resources/templates/admin/project_estimate_edit.ftl b/src/main/resources/templates/admin/project_estimate_edit.ftl index 1bfd53f..089a4aa 100644 --- a/src/main/resources/templates/admin/project_estimate_edit.ftl +++ b/src/main/resources/templates/admin/project_estimate_edit.ftl @@ -35,6 +35,38 @@
+
+
*项目编号
+
+ +
+
+
+ +
+
*项目名称
+
+ +
+
+
+ +
+
*项目类型
+
+ +
+
+
+
*项目计划开始时间
@@ -62,37 +94,6 @@
-
-
*项目编号
-
- -
-
-
- -
-
*项目名称
-
- -
-
-
- -
-
*项目类型
-
- -
-
-
*垫资模式
@@ -107,85 +108,140 @@
-
*客户名称
+
*合作对象
- + +
+ +
+ + +
+ +
+
+
+
+
-
+
-
*终端客户名称
+
*项目把握度
- -
-
-
-<#--
--> -<#--
*垫资利息
--> -<#--
--> -<#-- -<#-- name="advanceInterestAmount" placeholder="单位(元)" maxlength="16"--> -<#-- value="${Utils.format(project.advanceInterestAmount)}" required />--> -<#--
--> -<#--
--> -<#--
--> -<#--
--> -<#--
*垫资峰值
--> -<#--
--> -<#-- -<#-- name="advancePeakAmount" placeholder="单位(元)" maxlength="16"--> -<#-- value="${Utils.format(project.advancePeakAmount)}" required />--> -<#--
--> -<#--
--> -<#--
--> -
-
*合同金额
-
- +
+
*行业场景应用
+ name="industryScenario" placeholder="请输入行业场景应用" maxlength="20" + value="${project.industryScenario!}" required/>
+
-
<#--*-->华智产品金额
+
*客户名称
+
+ +
+
+
+ +
+
*终端客户名称
+
+ +
+
+
+ +
+
*合同金额
+
+ +
+
+
+ +
+
*项目毛利
+
+ +
+
+
+ +
+
*项目毛利率
+
+ +
+
+
+ +
+
华智产品金额
+ name="huazhiProductAmount" placeholder="单位(元)" maxlength="20" + value="${Utils.format(project.huazhiProductAmount, "0.00")}" />
+
-
<#--*-->其他产品金额
+
汇智产品金额
+
+ +
+
+
+ +
+
华三产品金额
+
+ +
+
+
+ +
+
其他产品金额
-
-
-
-
-
*主合同收款条款
-
- + name="ziguangOtherAmount" placeholder="单位(元)" maxlength="20" + value="${Utils.format(project.ziguangOtherAmount, "0.00")}" />
+
*价值及风险
@@ -196,9 +252,137 @@
+
+ +
+
+ +
+
*项目负责人
+
+ +
+
+
+ +
+
*预计合同签订时间
+
+
+ + +
+
+
+
+
+
*项目计划招标时间
+
+
+ + +
+
+
+
+ +
+
*是否二次合作
+
+ +
+
+
+ +
+
*签单方式
+
+ +
+
+
+ +
+
*项目解决方案
+
+ +
+
+
+ +
+
*垫资利息
+
+ +
+
+
+
+
*垫资峰值
+
+ +
+
+
+ +
+
*主合同收款条款
+
+ +
+
+
+ +
+
*主合同具体解决方案
+
+ +
+
+
+ +
+
*计收计划
+
+ +
+
+
+
+
<#--
--> <#--
--> <#-- 收入-->