4c2c9627 by lihua

fix: 空间审批问题

1 parent 3b595223
......@@ -144,6 +144,7 @@ const passDialogBtnClick = (btn, info) => {
passDialogInfo.value.visible = false;
getDetail();
updateDetailStatus.value = true;
productSpaceStore.setIsRefresh(true);
approvalProcessRef.value?.renderProcessNodes();
} else {
proxy.$ElMessage.error('审批失败');
......@@ -272,6 +273,7 @@ const btnClick = (btn: any) => {
ElMessage.success('该审批流程撤销成功!');
getDetail();
updateDetailStatus.value = true;
productSpaceStore.setIsRefresh(true);
approvalProcessRef.value?.renderProcessNodes();
} else {
ElMessage.error('该审批流程撤销失败!');
......
......@@ -140,7 +140,7 @@ const newCreate = () => {
const handleDataClick = (item) => {
let approveState = item.bizApproveState;
if (approveState == 'A' || approveState == 'Y') { //通过或审批中,点进去是详情
if (approveState == 'A') { //审批中,点进去是详情;审批通过的也可以修改吧
router.push({
name: 'productSpaceDetail',
query: {
......@@ -151,9 +151,9 @@ const handleDataClick = (item) => {
return;
}
const staffGuid = item.createUserId || '';
let currentStaffGuid = userData.tenantGuid;
let currentStaffGuid = userData.userGuid;
// 如果是驳回等状态,是自己创建的可以编辑。
if ((approveState == 'C' || approveState == 'E' || approveState == 'R')) {
if ((approveState == 'C' || approveState == 'E' || approveState == 'R' || approveState == 'Y')) {
router.push({
name: staffGuid == currentStaffGuid ? 'productSpaceEdit' : 'productSpaceDetail',
query: {
......
......@@ -157,6 +157,10 @@ const getTableBtns = (row) => {
btnsArr.push({ label: "重新提交", value: "edit" })
}
}
/** 此处添加一下审批通过之后,可以重新编辑提交 */
if (approveState == 'Y' && bizApproveState != 'D' && !row.nodeId && staffGuid == currentStaffGuid) {
btnsArr.push({ label: "编辑", value: "edit" })
}
isShowCancel && btnsArr.push({ label: "撤销", value: "revoke" })
flowState === 3 && btnsArr.push({ label: "删除", value: "delete" })
}
......@@ -259,7 +263,7 @@ const tableBtnClick = (scope, btn) => {
name: 'productSpaceDetail',
query: {
guid: row.guid,
name: row.connectorName
name: row.spaceName
}
});
} else if (type === 'pass') {
......@@ -454,4 +458,8 @@ const rejectDialogBtnClick = (btn, info) => {
.container_wrap {
padding: 0px 16px;
}
.tools_btns {
padding-bottom: 8px;
}
</style>
\ No newline at end of file
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!