|
@@ -830,7 +830,15 @@
|
|
|
if(d.giveBorrow != undefined && d.giveBorrow == "1")
|
|
|
xml +="<a href=\"${ctx}/workContractBorrow/workContractBorrow/updateGiveDate?id=" + d.borrowId + "&home=contract\" onclick=\"return confirmx('确认归还该合同信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-orange\"> 归还合同</a>";
|
|
|
}
|
|
|
- xml+="</div>"
|
|
|
+ //作废和删除
|
|
|
+ if (d.cancel != undefined && d.cancel == "1"){
|
|
|
+ xml += "<a href=\"${ctx}/workcontractinfo/workContractInfo/delete?id=" + d.id + "&contractState="+d.status+"\" onclick=\"return confirmx('确认要作废该合同信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 合同作废</a>";
|
|
|
+ }
|
|
|
+ if (d.cancelDel != undefined && d.cancelDel == "1"){
|
|
|
+ xml += "<a href=\"${ctx}/workcontractinfo/workContractInfo/deleteContract?id=" + d.id + "\" onclick=\"return confirmx('确认要删除该合同吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\"> 合同删除</a>";
|
|
|
+ }
|
|
|
+
|
|
|
+ xml+="</div>"
|
|
|
return xml;
|
|
|
|
|
|
}}
|
|
@@ -911,10 +919,31 @@
|
|
|
</c:choose>
|
|
|
</shiro:hasPermission>
|
|
|
<shiro:hasPermission name="workcontractrecord:workContractRecord:revert">,"giveBorrow": <c:choose><c:when test="${workContractInfo.borrowStatus == '5' && workContractInfo.giveStatus != '5'}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose></shiro:hasPermission>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fns:getUser().id == workContractInfo.createBy.id}">
|
|
|
+ <c:if test="${workContractInfo.cancelDelFalg && workContractInfo.contrractRecordStatus !=2 && workContractInfo.contrractRecordStatus !=5}">
|
|
|
+ <c:if test="${workContractInfo.contractState != 7 && workContractInfo.contractState !=4}">
|
|
|
+ ,"cancel":"1"
|
|
|
+ </c:if>
|
|
|
+ ,"cancelDel":"1"
|
|
|
+ </c:if>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <shiro:hasPermission name="workcontractinfo:workContractInfo:adminCancelDel">
|
|
|
+ <c:if test="${workContractInfo.cancelDelFalg && workContractInfo.contrractRecordStatus !=2 && workContractInfo.contrractRecordStatus !=5}">
|
|
|
+ <c:if test="${workContractInfo.contractState != 7 && workContractInfo.contractState !=4}">
|
|
|
+ ,"cancel":"1"
|
|
|
+ </c:if>
|
|
|
+ ,"cancelDel":"1"
|
|
|
+ </c:if>
|
|
|
+ </shiro:hasPermission>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
}
|
|
|
</c:forEach>
|
|
|
</c:if>
|
|
|
- ]
|
|
|
+
|
|
|
+ ]
|
|
|
// ,even: true
|
|
|
// ,height: 315
|
|
|
});
|