待我审批的项目
parent
f1670578cc
commit
57db8d6bf3
|
@ -386,11 +386,12 @@ public class ProjectController extends BaseController {
|
|||
* @return
|
||||
*/
|
||||
@RequestMapping("/approve")
|
||||
public String approve(@RequestParam("id") int id, Map<String, Object> model) {
|
||||
public String approve(@RequestParam("id") int id, @RequestParam String listFrom, Map<String, Object> model) {
|
||||
Project project = projectService.getProject(id);
|
||||
EstimateBean estimateBean = projectEstimateService.getEstimate(project);
|
||||
model.put("estimateBean", estimateBean);
|
||||
model.put("project", project);
|
||||
model.put("listFrom", listFrom);
|
||||
BudgetBean budgetBean = projectBudgetService.getBudget(project);
|
||||
//预算主页面数据
|
||||
model.put("budgetBean", budgetBean);
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
<div class="am-tabs-bd">
|
||||
<div class="am-tab-panel am-fade am-in am-active" id="tab1">
|
||||
<input name="id" id="id" type="hidden" value="${project.id}"/>
|
||||
<input name="listFrom" id="listFrom" type="hidden" value="${listFrom}"/>
|
||||
<input name="projectContributionProfitRateThreshold"
|
||||
id="projectContributionProfitRateThreshold" type="hidden"
|
||||
value="${project.projectContributionProfitRateThreshold}"/>
|
||||
|
@ -2096,26 +2097,12 @@
|
|||
success: function (data) {
|
||||
if (data.status == 0) {
|
||||
alert(data.msg);
|
||||
window.location.href = '${base}/project/list';
|
||||
var listFrom = $("#listFrom").val();
|
||||
window.location.href = '${base}/project/' + listFrom;
|
||||
} else if (data.status == 1) {
|
||||
alert(data.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
|
@ -212,7 +212,7 @@
|
|||
<#-- </@shiro.hasPermission>
|
||||
<@shiro.hasPermission name="PROJECT_EDIT">-->
|
||||
<#-- 概算审核通过 并且预算审批状态为草稿和不通过 -->
|
||||
<#if list.approveStatusEstimate=2 && (list.approveStatusBudget==0 || list.approveStatusBudget==3) >
|
||||
<#if list.approveStatusEstimate=2 && (list.approveStatusBudget==-1 || list.approveStatusBudget==0 || list.approveStatusBudget==3) >
|
||||
<button type="button"
|
||||
class="am-btn am-btn-default am-btn-xs am-text-secondary"
|
||||
onclick="location.href='${base}/project/budgetEdit?id=${list.id}'"><span
|
||||
|
@ -222,7 +222,7 @@
|
|||
<#-- </@shiro.hasPermission>-->
|
||||
|
||||
<#-- 预算审核通过 并且结算审核不等于审批状态 决算审批未通过 才可以发起结算-->
|
||||
<#if list.approveStatusBudget=2 && list.approveStatusSettle!=1 && list.approveStatusFinal !=2>
|
||||
<#if list.approveStatusBudget=2 && list.approveStatusSettle !=1 && list.approveStatusFinal !=2>
|
||||
<button type="button"
|
||||
class="am-btn am-btn-default am-btn-xs am-text-secondary"
|
||||
onclick="location.href='${base}/project/settle/add?id=${list.id}'"><span
|
||||
|
@ -249,7 +249,7 @@
|
|||
<#if adminId==list.approveId>
|
||||
<button type="button"
|
||||
class="am-btn am-btn-default am-btn-xs am-text-secondary"
|
||||
onclick="location.href='${base}/project/approve?id=${list.id}'"><span
|
||||
onclick="location.href='${base}/project/approve?listFrom=list&id=${list.id}'"><span
|
||||
class="am-icon-pencil-square-o"></span>审核
|
||||
</button>
|
||||
</#if>
|
||||
|
|
|
@ -64,11 +64,10 @@
|
|||
<div class="am-u-sm-10">
|
||||
<select data-am-selected id="status" name="status">
|
||||
<option value="-1">全部</option>
|
||||
<option value="1" <#if status?? && status='1'>selected</#if>>项目创建</option>
|
||||
<option value="5" <#if status?? && status='5'>selected</#if>>概算完成</option>
|
||||
<option value="10" <#if status?? && status='10'>selected</#if>>预算完成</option>
|
||||
<option value="15" <#if status?? && status='15'>selected</#if>>结算中</option>
|
||||
<option value="20" <#if status?? && status='20'>selected</#if>>决算完成</option>
|
||||
<option value="1" <#if status?? && status='1'>selected</#if>>项目创建(概算)</option>
|
||||
<option value="5" <#if status?? && status='5'>selected</#if>>预算</option>
|
||||
<option value="10" <#if status?? && status='10'>selected</#if>>结算</option>
|
||||
<option value="15" <#if status?? && status='15'>selected</#if>>决算</option>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
|
@ -194,20 +193,24 @@
|
|||
<td>
|
||||
<div class="am-btn-toolbar">
|
||||
<div class="am-btn-group am-btn-group-xs">
|
||||
<#--<@shiro.hasPermission name="PROJECT_EDIT">
|
||||
<button type="button"
|
||||
class="am-btn am-btn-default am-btn-xs am-text-secondary"
|
||||
onclick="location.href='${base}/project/edit?id=${list.id}'"><span
|
||||
class="am-icon-pencil-square-o"></span>编辑
|
||||
</button>
|
||||
</@shiro.hasPermission>
|
||||
<@shiro.hasPermission name="PROJECT_EDIT">
|
||||
<button type="button"
|
||||
class="am-btn am-btn-default am-btn-xs am-text-secondary"
|
||||
onclick="location.href='${base}/project/budgetEdit?id=${list.id}'"><span
|
||||
class="am-icon-pencil-square-o"></span>填写预算表
|
||||
</button>
|
||||
</@shiro.hasPermission>-->
|
||||
<button type="button"
|
||||
class="am-btn am-btn-default am-btn-xs am-text-secondary"
|
||||
onclick="location.href='${base}/project/detail?id=${list.id}'"><span
|
||||
class="am-icon-pencil-square-o"></span>查看
|
||||
</button>
|
||||
|
||||
<button type="button"
|
||||
class="am-btn am-btn-default am-btn-xs am-text-secondary"
|
||||
onclick="location.href='${base}/project/approve?listFrom=listApprove&id=${list.id}'"><span
|
||||
class="am-icon-pencil-square-o"></span>审核
|
||||
</button>
|
||||
|
||||
<button type="button"
|
||||
class="am-btn am-btn-default am-btn-xs am-text-secondary"
|
||||
onclick="location.href='${base}/project/taskRecords/${list.id?c}'"><span
|
||||
class="am-icon-pencil-square-o"></span>查看审核流程
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
@ -292,19 +295,3 @@
|
|||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue