项目管理成本修改
parent
0507b9cc39
commit
a60b1d854c
|
@ -291,9 +291,23 @@ public class ProjectController extends BaseController {
|
||||||
return ResponseMsg.buildFailedMsg("业务项目不允许为空");
|
return ResponseMsg.buildFailedMsg("业务项目不允许为空");
|
||||||
} else {
|
} else {
|
||||||
detail.setName(detail.getName2());
|
detail.setName(detail.getName2());
|
||||||
|
detail.setIsDiy(1);
|
||||||
}
|
}
|
||||||
} else {
|
} 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);
|
detailList.add(detail);
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,8 @@ public class ProjectBudgetCostProjectManageDetailBase {
|
||||||
private String name1;
|
private String name1;
|
||||||
@Transient
|
@Transient
|
||||||
private String name2;
|
private String name2;
|
||||||
|
@Column(name = "is_diy")
|
||||||
|
private int isDiy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否可以被删除,有些项是默认的不可删除,用于页面判断是否显示删除按钮
|
* 是否可以被删除,有些项是默认的不可删除,用于页面判断是否显示删除按钮
|
||||||
|
@ -164,4 +166,12 @@ public class ProjectBudgetCostProjectManageDetailBase {
|
||||||
public void setName2(String name2) {
|
public void setName2(String name2) {
|
||||||
this.name2 = name2;
|
this.name2 = name2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getIsDiy() {
|
||||||
|
return isDiy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIsDiy(int isDiy) {
|
||||||
|
this.isDiy = isDiy;
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -508,7 +508,7 @@
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
<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>
|
<#if costProjectManageDetail.type == 1>
|
||||||
<option value="1" <#if costProjectManageDetail.name == "人工费">selected</#if>>人工费</option>
|
<option value="1" <#if costProjectManageDetail.name == "人工费">selected</#if>>人工费</option>
|
||||||
<option value="2" <#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>
|
<option value="7" <#if costProjectManageDetail.name == "办公费用">selected</#if>>办公费用</option>
|
||||||
</#if>
|
</#if>
|
||||||
</select>
|
</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>
|
||||||
<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.detail!}"></td>
|
||||||
<td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage" value="${costProjectManageDetail.unit!}"></td>
|
<td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage" value="${costProjectManageDetail.unit!}"></td>
|
||||||
|
|
Loading…
Reference in New Issue