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 | 24 ++++++++++++++++++++----
1 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/src/views/EmploymentManage/CheckReceiveTaskDetail.vue b/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
index a16ce8b..509e21c 100644
--- a/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
+++ b/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
@@ -48,6 +48,7 @@
</ProTableV2>
</AppContainer>
<CheckManageDialog v-bind="dialogProps" />
+ <ManualCheckManageDialog v-bind="dialogManualProps" />
</LoadingLayout>
</template>
@@ -72,6 +73,7 @@
import { EnumBillingMethodUnitText } from '@/constants';
import dayjs from 'dayjs';
import CheckManageDialog from './components/CheckManageDialog.vue';
+import ManualCheckManageDialog from './components/ManualCheckManageDialog.vue';
defineOptions({
name: 'CheckReceiveTaskDetail',
@@ -120,6 +122,7 @@
const BaseState = {
loading: true,
+ checkReceiveMethod: '' as any as EnumTaskCheckReceiveMethod,
};
const state = reactive({ ...BaseState });
@@ -155,6 +158,7 @@
let res = await taskCheckReceiveServices.getCheckReceiveTask(params, {
showLoading: !state.loading,
});
+ state.checkReceiveMethod = res.objectData?.checkReceiveMethod;
return res;
} catch (error) {}
},
@@ -171,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({
@@ -183,4 +193,10 @@
isDetail: false,
},
});
+
+const { dialogProps: dialogManualProps, handleEdit: handleManualEdit } = useFormDialog({
+ defaultFormParams: {
+ id: '',
+ },
+});
</script>
--
Gitblit v1.9.1