流程详情展示
parent
ab7c794dcb
commit
1227a12ad1
|
@ -150,6 +150,7 @@ public class ProcessController {
|
||||||
model.addAttribute("cooperationType", Enumerable.of(CooperationType.class, project.getCooperateType()).getDescription());
|
model.addAttribute("cooperationType", Enumerable.of(CooperationType.class, project.getCooperateType()).getDescription());
|
||||||
List<ProcessAttachment> attachments = JSONArray.parseArray(process.getAttachmentUri(), ProcessAttachment.class);
|
List<ProcessAttachment> attachments = JSONArray.parseArray(process.getAttachmentUri(), ProcessAttachment.class);
|
||||||
model.addAttribute("attachments", attachments);
|
model.addAttribute("attachments", attachments);
|
||||||
|
model.addAttribute("isPrepaid", isPrepaid(project));
|
||||||
|
|
||||||
if (process.getProcessType() != null) {
|
if (process.getProcessType() != null) {
|
||||||
switch (process.getProcessType()) {
|
switch (process.getProcessType()) {
|
||||||
|
@ -216,13 +217,13 @@ public class ProcessController {
|
||||||
|
|
||||||
// FIXME 垫资
|
// FIXME 垫资
|
||||||
// 是否垫资
|
// 是否垫资
|
||||||
public final String isPrepaid = "是";
|
public String isPrepaid;
|
||||||
|
|
||||||
// 垫资金额
|
// 垫资金额
|
||||||
public final String repaidAmount = "50000元";
|
public final String repaidAmount = "50000元";
|
||||||
|
|
||||||
// 预算毛利率
|
// 预算毛利率
|
||||||
public final String budgetGrossMargin = "3.9%";
|
public BigDecimal budgetGrossMargin;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
@ -234,9 +235,11 @@ public class ProcessController {
|
||||||
// 可以在对应表数据查询 是否存在再启用
|
// 可以在对应表数据查询 是否存在再启用
|
||||||
List<ProjectBudgetIncomeDetail> incomeDetails = projectBudgetService.getBudgetIncomeDetail(project);
|
List<ProjectBudgetIncomeDetail> incomeDetails = projectBudgetService.getBudgetIncomeDetail(project);
|
||||||
return ProjectReturnValue.builder()
|
return ProjectReturnValue.builder()
|
||||||
|
.isPrepaid(isPrepaid(project))
|
||||||
.projectId(project.getId())
|
.projectId(project.getId())
|
||||||
.incomeDetails(incomeDetails)
|
.incomeDetails(incomeDetails)
|
||||||
.projectName(project.getName())
|
.projectName(project.getName())
|
||||||
|
.budgetGrossMargin(project.getGrossProfitMargin())
|
||||||
.projectNo(project.getProjectNo())
|
.projectNo(project.getProjectNo())
|
||||||
.applyPersonName(admin.getRealName())
|
.applyPersonName(admin.getRealName())
|
||||||
.contractAmount(project.getContractAmount())
|
.contractAmount(project.getContractAmount())
|
||||||
|
@ -246,6 +249,10 @@ public class ProcessController {
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static String isPrepaid(Project project) {
|
||||||
|
return project.getUnderwrittenMode() == 2 || project.getUnderwrittenMode() == 3 ? "是" : "否";
|
||||||
|
}
|
||||||
|
|
||||||
// 销售合同流程
|
// 销售合同流程
|
||||||
|
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
|
|
@ -131,38 +131,32 @@
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<el-form-item label="税率">
|
<el-form-item label="税率">
|
||||||
<span>${process.taxRate}</span>
|
<span>${process.taxRate}%</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="是否垫资">
|
<el-form-item label="是否垫资">
|
||||||
<span>${process.isPrepaid}</span>
|
<span>${isPrepaid}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="垫资金额">
|
<el-form-item label="垫资金额">
|
||||||
<span>${process.repaidAmount}</span>
|
<span>${project.repaidAmount}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="预算毛利率">
|
<el-form-item label="预算毛利率">
|
||||||
<span>${process.budgetGrossMargin}</span>
|
<span>${project.grossProfitMargin}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<el-form-item label="收款条件">
|
<el-form-item label="收款条件">
|
||||||
<el-input type="textarea" disabled :autosize="{ minRows: 3, maxRows: 10}" cols="90" maxlength="5000" show-word-limit
|
<div>${contract.paymentTerms}</div>
|
||||||
placeholder="请输入收款条件(限制5000字)">
|
|
||||||
${process.paymentTerms}
|
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<el-form-item label="备注">
|
<el-form-item label="备注">
|
||||||
<el-input type="textarea" :autosize="{ minRows: 3, maxRows: 10}" maxlength="5000" show-word-limit
|
<div>${process.remark}</div>
|
||||||
placeholder="请输入备注(限制5000字)" cols="90">
|
|
||||||
${process.remark}
|
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,9 @@
|
||||||
.el-upload-list__item-name [class^="el-icon"] {
|
.el-upload-list__item-name [class^="el-icon"] {
|
||||||
height: unset;
|
height: unset;
|
||||||
}
|
}
|
||||||
|
.el-checkbox{
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="admin-content" id="app">
|
<div class="admin-content" id="app">
|
||||||
|
|
Loading…
Reference in New Issue