From f98a16608bdc9d3993842c7d8a038aed163ed039 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期二, 21 十月 2025 15:44:54 +0800
Subject: [PATCH] fix: bug
---
src/views/EmploymentManage/CheckReceiveTaskDetail.vue | 20 ++++++++++++++------
1 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/src/views/EmploymentManage/CheckReceiveTaskDetail.vue b/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
index 303d615..b56f43e 100644
--- a/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
+++ b/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
@@ -90,7 +90,8 @@
},
extraProps: {
hide: (row: API.GetCheckReceiveTaskQueryResultItem) =>
- row.checkReceiveStatus === EnumTaskCheckReceiveStatus.Completed,
+ row.checkReceiveStatus === EnumTaskCheckReceiveStatus.Completed ||
+ state.checkReceiveMethod === EnumTaskCheckReceiveMethod.CheckIn,
},
},
{
@@ -122,6 +123,7 @@
const BaseState = {
loading: true,
+ checkReceiveMethod: '' as any as EnumTaskCheckReceiveMethod,
};
const state = reactive({ ...BaseState });
@@ -157,6 +159,7 @@
let res = await taskCheckReceiveServices.getCheckReceiveTask(params, {
showLoading: !state.loading,
});
+ state.checkReceiveMethod = res.objectData?.checkReceiveMethod;
return res;
} catch (error) {}
},
@@ -173,10 +176,16 @@
);
function openDialog(row: API.GetCheckReceiveTaskQueryResultItem, isDetail = false) {
- handleEdit({
- id: row.id,
- isDetail,
- });
+ if (state.checkReceiveMethod === EnumTaskCheckReceiveMethod.CheckIn) {
+ handleManualEdit({
+ id: row.id,
+ });
+ } else {
+ handleEdit({
+ id: row.id,
+ isDetail,
+ });
+ }
}
const { dialogProps, handleEdit } = useFormDialog({
@@ -189,7 +198,6 @@
const { dialogProps: dialogManualProps, handleEdit: handleManualEdit } = useFormDialog({
defaultFormParams: {
id: '',
- isDetail: false,
},
});
</script>
--
Gitblit v1.9.1