feat: 批量去除 vo

This commit is contained in:
xingyu4j
2025-06-15 15:33:18 +08:00
parent 96c4ee974a
commit 93a02573d7
64 changed files with 240 additions and 251 deletions

View File

@@ -30,7 +30,7 @@ const tempStartUserSelectAssignees = ref({}); // 历史发起人选择审批人
const activityNodes = ref<BpmProcessInstanceApi.ApprovalNodeInfo[]>([]); // 审批节点信息
const processDefinitionId = ref('');
const formData = ref<BpmOALeaveApi.LeaveVO>();
const formData = ref<BpmOALeaveApi.Leave>();
const getTitle = computed(() => {
return formData.value?.id
? $t('ui.actionTitle.edit', ['请假'])
@@ -70,7 +70,7 @@ async function onSubmit() {
}
// 提交表单
const data = (await formApi.getValues()) as BpmOALeaveApi.LeaveVO;
const data = (await formApi.getValues()) as BpmOALeaveApi.Leave;
// 审批相关:设置指定审批人
if (startUserSelectTasks.value?.length > 0) {
@@ -78,7 +78,7 @@ async function onSubmit() {
}
// 格式化开始时间和结束时间的值
const submitData: BpmOALeaveApi.LeaveVO = {
const submitData: BpmOALeaveApi.Leave = {
...data,
startTime: Number(data.startTime),
endTime: Number(data.endTime),
@@ -112,10 +112,10 @@ async function onDraft() {
return;
}
const data = (await formApi.getValues()) as BpmOALeaveApi.LeaveVO;
const data = (await formApi.getValues()) as BpmOALeaveApi.Leave;
// 格式化开始时间和结束时间的值
const submitData: BpmOALeaveApi.LeaveVO = {
const submitData: BpmOALeaveApi.Leave = {
...data,
startTime: Number(data.startTime),
endTime: Number(data.endTime),

View File

@@ -14,7 +14,7 @@ const props = defineProps<{
id: string;
}>();
const datailLoading = ref(false);
const detailData = ref<BpmOALeaveApi.LeaveVO>();
const detailData = ref<BpmOALeaveApi.Leave>();
const { query } = useRoute();
const queryId = computed(() => query.id as string);

View File

@@ -41,7 +41,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
refresh: { code: 'query' },
search: true,
},
} as VxeTableGridOptions<BpmOALeaveApi.LeaveVO>,
} as VxeTableGridOptions<BpmOALeaveApi.Leave>,
});
/** 创建请假 */
@@ -55,7 +55,7 @@ function handleCreate() {
}
/** 查看请假详情 */
function handleDetail(row: BpmOALeaveApi.LeaveVO) {
function handleDetail(row: BpmOALeaveApi.Leave) {
router.push({
name: 'OALeaveDetail',
query: { id: row.id },
@@ -63,7 +63,7 @@ function handleDetail(row: BpmOALeaveApi.LeaveVO) {
}
/** 取消请假 */
function handleCancel(row: BpmOALeaveApi.LeaveVO) {
function handleCancel(row: BpmOALeaveApi.Leave) {
prompt({
async beforeClose(scope) {
if (scope.isConfirm) {
@@ -96,7 +96,7 @@ function handleCancel(row: BpmOALeaveApi.LeaveVO) {
}
/** 审批进度 */
function handleProgress(row: BpmOALeaveApi.LeaveVO) {
function handleProgress(row: BpmOALeaveApi.Leave) {
router.push({
name: 'BpmProcessInstanceDetail',
query: { id: row.processInstanceId },