From d01af540b961aaaa17f68e70374f78a6695219cc Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 17 十一月 2025 10:25:32 +0800
Subject: [PATCH] fix: bug
---
src/views/EmploymentManage/CheckReceiveTaskDetail.vue | 25 +++++++++++++++++++++++--
1 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/src/views/EmploymentManage/CheckReceiveTaskDetail.vue b/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
index c0e74fa..af6c3d5 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,20 @@
detailBtn: {
emits: {
onClick: (role) => openDialog(role, true),
+ },
+ },
+ acceptanceBtn: {
+ emits: {
+ onClick: (role) => openDialog(role),
+ },
+ extraProps: {
+ hide: (row: API.GetCheckReceiveTaskQueryResultItem) =>
+ !(
+ (row.checkReceiveStatus === EnumTaskCheckReceiveStatus.WaitCheckReceive ||
+ row.checkReceiveStatus === EnumTaskCheckReceiveStatus.WaitSubmit) &&
+ row.checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.Submit) &&
+ taskInfo.value?.isInternal
+ ),
},
},
};
@@ -105,6 +117,8 @@
const BaseState = {
loading: true,
checkReceiveMethods: [] as any as EnumTaskCheckReceiveMethod[],
+
+ isInternal: false,
};
const state = reactive({ ...BaseState });
@@ -141,6 +155,7 @@
showLoading: !state.loading,
});
state.checkReceiveMethods = res.objectData?.checkReceiveMethods;
+ state.isInternal = res.objectData?.isInternal;
return res;
} catch (error) {}
},
@@ -166,6 +181,10 @@
handleEdit({
id: row.id,
checkReceiveMethods: state.checkReceiveMethods,
+ isInternal: state.isInternal,
+ tabType: state.checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.CheckIn)
+ ? 'signRecord'
+ : '',
isDetail,
});
}
@@ -174,7 +193,9 @@
defaultFormParams: {
id: '',
checkReceiveMethods: [] as any as EnumTaskCheckReceiveMethod[],
+ isInternal: false,
isDetail: false,
+ tabType: '',
},
});
--
Gitblit v1.9.1