|
@@ -266,9 +266,15 @@ func (this *SealApprovalCommon) Detail() {
|
|
for _, approvalRecord := range approvalRecordList {
|
|
for _, approvalRecord := range approvalRecordList {
|
|
//如果当前节点正好是该节点,同时审批单状态是待审批状态,然后当前账号又有权限,该账号也正是审批人,那么允许审批操作
|
|
//如果当前节点正好是该节点,同时审批单状态是待审批状态,然后当前账号又有权限,该账号也正是审批人,那么允许审批操作
|
|
if contractApprovalInfo.CurrNodeId == approvalRecord.NodeId && contractApprovalInfo.Status == "待审批" {
|
|
if contractApprovalInfo.CurrNodeId == approvalRecord.NodeId && contractApprovalInfo.Status == "待审批" {
|
|
|
|
+ //审核权限
|
|
if this.AdminWx.AdminId == approvalRecord.ApproveUserId && approvalRecord.NodeType == "check" {
|
|
if this.AdminWx.AdminId == approvalRecord.ApproveUserId && approvalRecord.NodeType == "check" {
|
|
sealOpButton.Approval = true
|
|
sealOpButton.Approval = true
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //合规在审批过程中具有 部分修改权限
|
|
|
|
+ if this.AdminWx.AdminId == approvalRecord.ApproveUserId && this.AdminWx.RoleTypeCode == utils.ROLE_TYPE_CODE_COMPLIANCE && approvalRecord.NodeType == "check" {
|
|
|
|
+ sealOpButton.CheckEdit = true
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if tmpFlowNodeList, ok := flowNodeMap[approvalRecord.NodeId]; ok {
|
|
if tmpFlowNodeList, ok := flowNodeMap[approvalRecord.NodeId]; ok {
|
|
flowNodeMap[approvalRecord.NodeId] = append(tmpFlowNodeList, *approvalRecord)
|
|
flowNodeMap[approvalRecord.NodeId] = append(tmpFlowNodeList, *approvalRecord)
|
|
@@ -289,6 +295,13 @@ func (this *SealApprovalCommon) Detail() {
|
|
if (this.AdminWx.RoleTypeCode == utils.ROLE_TYPE_CODE_COMPLIANCE || this.AdminWx.AdminId == sealInfo.UserId) && sealInfo.Status == "已审批" {
|
|
if (this.AdminWx.RoleTypeCode == utils.ROLE_TYPE_CODE_COMPLIANCE || this.AdminWx.AdminId == sealInfo.UserId) && sealInfo.Status == "已审批" {
|
|
sealOpButton.Invalid = true
|
|
sealOpButton.Invalid = true
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //编辑权限
|
|
|
|
+ editStatus := []string{"已驳回", "待提交", "已撤回"}
|
|
|
|
+ if this.AdminWx.RoleTypeCode == utils.ROLE_TYPE_CODE_COMPLIANCE && strings.Contains(strings.Join(editStatus, ","), sealInfo.Status) {
|
|
|
|
+ sealOpButton.Edit = true
|
|
|
|
+ }
|
|
|
|
+
|
|
resp := sealResp.SealDetailResp{
|
|
resp := sealResp.SealDetailResp{
|
|
SealDetail: sealDetail,
|
|
SealDetail: sealDetail,
|
|
FlowNodeList: flowNodeListResp,
|
|
FlowNodeList: flowNodeListResp,
|