项目管理成本修改

master
OathK1per 2021-12-31 17:32:36 +08:00
parent 0507b9cc39
commit a60b1d854c
3 changed files with 27 additions and 3 deletions

View File

@ -291,9 +291,23 @@ public class ProjectController extends BaseController {
return ResponseMsg.buildFailedMsg("业务项目不允许为空");
} else {
detail.setName(detail.getName2());
detail.setIsDiy(1);
}
} else {
detail.setName(detail.getName1());
if ("1".equals(detail.getName1())) {
detail.setName("人工费");
} else if ("2".equals(detail.getName1())) {
detail.setName("总部支撑人力费用");
} else if ("4".equals(detail.getName1())) {
detail.setName("人员差旅费");
} else if ("5".equals(detail.getName1())) {
detail.setName("业务费用");
} else if ("6".equals(detail.getName1())) {
detail.setName("商务及专项验收费用");
} else if ("7".equals(detail.getName1())) {
detail.setName("办公费用");
}
detail.setIsDiy(0);
}
detailList.add(detail);
}

View File

@ -40,6 +40,8 @@ public class ProjectBudgetCostProjectManageDetailBase {
private String name1;
@Transient
private String name2;
@Column(name = "is_diy")
private int isDiy;
/**
*
@ -164,4 +166,12 @@ public class ProjectBudgetCostProjectManageDetailBase {
public void setName2(String name2) {
this.name2 = name2;
}
public int getIsDiy() {
return isDiy;
}
public void setIsDiy(int isDiy) {
this.isDiy = isDiy;
}
}

View File

@ -508,7 +508,7 @@
</select>
</td>
<td>
<select style="width: 80px;float: left;" <#if costProjectManageDetail.type == 3 || costProjectManageDetail.name == "自定义">hidden="hidden"</#if> class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage am-modal-prompt-input-cost-project-manage-category">
<select <#if costProjectManageDetail.isDiy == 1>style="display:none"<#else>style="width: 80px;float: left;"</#if> class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage am-modal-prompt-input-cost-project-manage-category">
<#if costProjectManageDetail.type == 1>
<option value="1" <#if costProjectManageDetail.name == "人工费">selected</#if>>人工费</option>
<option value="2" <#if costProjectManageDetail.name == "总部支撑人力费用">selected</#if>>总部支撑人力费用</option>
@ -520,7 +520,7 @@
<option value="7" <#if costProjectManageDetail.name == "办公费用">selected</#if>>办公费用</option>
</#if>
</select>
<input <#if costProjectManageDetail.type == 3 || costProjectManageDetail.name == "自定义">type="text"<#else>type="hidden"</#if> class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage am-modal-prompt-input-cost-project-manage-category2" value="${costProjectManageDetail.name!}">
<input <#if costProjectManageDetail.isDiy == 1>type="text"<#else>type="hidden"</#if> class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage am-modal-prompt-input-cost-project-manage-category2" value="${costProjectManageDetail.name!}">
</td>
<td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage" value="${costProjectManageDetail.detail!}"></td>
<td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage" value="${costProjectManageDetail.unit!}"></td>