From 851c6e7f3a25cba32b2d0e69126bf3360c37ab29 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 13 十一月 2025 17:13:22 +0800
Subject: [PATCH] fix: bug
---
src/views/EmploymentManage/CheckReceiveTaskDetail.vue | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/src/views/EmploymentManage/CheckReceiveTaskDetail.vue b/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
index c0e74fa..b3bba2b 100644
--- a/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
+++ b/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
@@ -59,13 +59,11 @@
ProFormCol,
ProFormColItem,
ProFormItemV2,
- ProTableQueryFilterBar,
} from '@bole-core/components';
import * as taskCheckReceiveServices from '@/services/api/taskCheckReceive';
import * as taskServices from '@/services/api/task';
import { useQuery } from '@tanstack/vue-query';
import { OrderUtils } from '@/utils';
-import { EnumBillingMethodUnitText, EnumBillingMethod, EnumBillingMethodText } from '@/constants';
import dayjs from 'dayjs';
import CheckManageDialog from './components/CheckManageDialog.vue';
import ManualCheckManageDialog from './components/ManualCheckManageDialog.vue';
@@ -78,6 +76,19 @@
detailBtn: {
emits: {
onClick: (role) => openDialog(role, true),
+ },
+ },
+ acceptanceBtn: {
+ emits: {
+ onClick: (role) => openDialog(role),
+ },
+ extraProps: {
+ hide: (row: API.GetCheckReceiveTaskQueryResultItem) =>
+ !(
+ row.checkReceiveStatus === EnumTaskCheckReceiveStatus.WaitCheckReceive &&
+ row.checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.Submit) &&
+ taskInfo.value?.isInternal
+ ),
},
},
};
@@ -105,6 +116,8 @@
const BaseState = {
loading: true,
checkReceiveMethods: [] as any as EnumTaskCheckReceiveMethod[],
+
+ isInternal: false,
};
const state = reactive({ ...BaseState });
@@ -141,6 +154,7 @@
showLoading: !state.loading,
});
state.checkReceiveMethods = res.objectData?.checkReceiveMethods;
+ state.isInternal = res.objectData?.isInternal;
return res;
} catch (error) {}
},
@@ -166,6 +180,7 @@
handleEdit({
id: row.id,
checkReceiveMethods: state.checkReceiveMethods,
+ isInternal: state.isInternal,
isDetail,
});
}
@@ -174,6 +189,7 @@
defaultFormParams: {
id: '',
checkReceiveMethods: [] as any as EnumTaskCheckReceiveMethod[],
+ isInternal: false,
isDetail: false,
},
});
--
Gitblit v1.9.1