From 445a8b10d725ef1e3deda1e5fc5c91df730b3c1b Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期日, 19 十月 2025 21:31:52 +0800
Subject: [PATCH] fix: s
---
src/views/EmploymentManage/CheckReceiveTaskDetail.vue | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/src/views/EmploymentManage/CheckReceiveTaskDetail.vue b/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
index 303d615..509e21c 100644
--- a/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
+++ b/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
@@ -122,6 +122,7 @@
const BaseState = {
loading: true,
+ checkReceiveMethod: '' as any as EnumTaskCheckReceiveMethod,
};
const state = reactive({ ...BaseState });
@@ -157,6 +158,7 @@
let res = await taskCheckReceiveServices.getCheckReceiveTask(params, {
showLoading: !state.loading,
});
+ state.checkReceiveMethod = res.objectData?.checkReceiveMethod;
return res;
} catch (error) {}
},
@@ -173,10 +175,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 +197,6 @@
const { dialogProps: dialogManualProps, handleEdit: handleManualEdit } = useFormDialog({
defaultFormParams: {
id: '',
- isDetail: false,
},
});
</script>
--
Gitblit v1.9.1