项目状态和审核状态控制按钮显示
parent
88ea30e46d
commit
2879417e56
|
@ -208,7 +208,8 @@
|
|||
</button>
|
||||
</#if>
|
||||
<#--<@shiro.hasPermission name="PROJECT_EDIT">-->
|
||||
<#--概算状态 并且概算审批状态为草稿和不通过-->
|
||||
|
||||
<#-- 项目等于概算状态、概算审核为草稿和不通过状态-->
|
||||
<#if list.status==1 && (list.approveStatusEstimate==0 || list.approveStatusEstimate==3)>
|
||||
<button type="button"
|
||||
class="am-btn am-btn-default am-btn-xs am-text-secondary"
|
||||
|
@ -219,7 +220,7 @@
|
|||
|
||||
<#-- </@shiro.hasPermission>
|
||||
<@shiro.hasPermission name="PROJECT_EDIT">-->
|
||||
<#-- 概算审核通过、预算审批不等于待审核、 结算审批未通过-->
|
||||
<#-- 概算审核等于通过状态、预算审核不等于待审核状态、 决算审核不等于通过状态-->
|
||||
<#if list.approveStatusEstimate=2 && list.approveStatusBudget!=1 && list.approveStatusFinal!=2 >
|
||||
<button type="button"
|
||||
class="am-btn am-btn-default am-btn-xs am-text-secondary"
|
||||
|
@ -229,8 +230,8 @@
|
|||
</#if>
|
||||
<#-- </@shiro.hasPermission>-->
|
||||
|
||||
<#-- 预算审核通过 并且结算审核不等于审批状态 决算审批未通过 才可以发起结算-->
|
||||
<#if list.approveStatusBudget=2 && list.approveStatusSettle !=1 && list.approveStatusFinal !=2>
|
||||
<#-- 项目等于预算状态、预算审核等于通过状态 -->
|
||||
<#if list.status==5 && list.approveStatusBudget=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
|
||||
|
@ -238,8 +239,8 @@
|
|||
</button>
|
||||
</#if>
|
||||
|
||||
<#-- 除了审核通过都能编辑结算表-->
|
||||
<#if list.approveStatusBudget=2 && list.approveStatusSettle !=1 && list.approveStatusFinal !=2>
|
||||
<#-- 项目等于结算状态、结算审核不等于待审核状态-->
|
||||
<#if list.status==10 && list.approveStatusSettle!=1>
|
||||
<button type="button"
|
||||
class="am-btn am-btn-default am-btn-xs am-text-secondary"
|
||||
onclick="location.href='${base}/project/settle/edit?id=${list.id}'"><span
|
||||
|
@ -247,8 +248,8 @@
|
|||
</button>
|
||||
</#if>
|
||||
|
||||
<#-- 项目为结算状态 并且结算审批通过 或者 结算审批不通过 才能发起决算-->
|
||||
<#if (list.status== 10 && list.approveStatusSettle== 2) || (list.status== 15 && list.approveStatusFinal== 0) || (list.status== 15 && list.approveStatusFinal== 3)>
|
||||
<#-- 项目等于结算状态、结算审核等于通过状态 -->
|
||||
<#if list.status== 10 && list.approveStatusSettle==2 >
|
||||
<button type="button"
|
||||
class="am-btn am-btn-default am-btn-xs am-text-secondary"
|
||||
onclick="location.href='${base}/project/final/add?id=${list.id}'"><span
|
||||
|
@ -256,11 +257,14 @@
|
|||
</button>
|
||||
</#if>
|
||||
|
||||
<button type="button"
|
||||
class="am-btn am-btn-default am-btn-xs am-text-secondary"
|
||||
onclick="location.href='${base}/project/final/edit?id=${list.id}'"><span
|
||||
class="am-icon-pencil-square-o"></span>编辑决算
|
||||
</button>
|
||||
<#-- 项目等于决算状态、决算审核不等于待审核状态、 决算审核不等于通过状态-->
|
||||
<#if list.status== 15 && list.approveStatusFinal!=1 && list.approveStatusFinal!=2 >
|
||||
<button type="button"
|
||||
class="am-btn am-btn-default am-btn-xs am-text-secondary"
|
||||
onclick="location.href='${base}/project/final/edit?id=${list.id}'"><span
|
||||
class="am-icon-pencil-square-o"></span>编辑决算
|
||||
</button>
|
||||
</#if>
|
||||
|
||||
<button type="button"
|
||||
class="am-btn am-btn-default am-btn-xs am-text-secondary"
|
||||
|
|
Loading…
Reference in New Issue