供应商评价

This commit is contained in:
‘huanghaiixia’
2025-12-19 14:37:49 +08:00
parent 5496c041ee
commit 754f44f55d
8 changed files with 539 additions and 49 deletions

View File

@ -111,7 +111,7 @@
const visibleFlowRecordModal = ref(false);
const [registerModal, { openModal }] = useModal();
const formName='供应商评价';
const [registerTable, { reload, }] = useTable({
const [registerTable, { reload, clearSelectedRowKeys }] = useTable({
title: '' || (formName + '列表'),
api: getLngScorePage,
rowKey: 'id',
@ -128,6 +128,7 @@
return { ...params, FormId: formIdComputedRef.value, PK: 'id' };
},
afterFetch: (res) => {
clearSelectedRowKeys()
tableRef.value.setToolBarWidth();
},
@ -152,14 +153,15 @@
if (!actionButtonConfig?.value.some(element => element.code == 'view')) {
return;
}
const { processId, taskIds, schemaId } = record.workflowData || {};
const { processId, taskIds, schemaId,status } = record.workflowData || {};
if (taskIds && taskIds.length) {
router.push({
path: '/flow/' + schemaId + '/' + (processId || '') + '/approveFlow',
query: {
taskId: taskIds[0],
formName: formName,
formId:currentRoute.value.meta.formId
formId:currentRoute.value.meta.formId,
id: record.id
}
});
} else if (schemaId && !taskIds && processId) {
@ -169,18 +171,33 @@
readonly: 1,
taskId: '',
formName: formName,
formId:currentRoute.value.meta.formId
formId:currentRoute.value.meta.formId,
id: record.id,
status
}
});
} else {
router.push({
path: '/form/ScoreSupplier/' + record.id + '/viewForm',
query: {
formPath: 'supplier/ScoreSupplier',
formName: formName,
formId:currentRoute.value.meta.formId
}
});
if (schemaIdComputedRef.value) {
router.push({
path: '/flow/' + schemaIdComputedRef.value + '/0/createFlow',
query: {
formPath: 'supplier/ScoreSupplier',
formName: formName,
formId:currentRoute.value.meta.formId,
type:'edit',
id: record.id,
disabled: 1,
}
});
}
// router.push({
// path: '/form/ScoreSupplier/' + record.id + '/viewForm',
// query: {
// formPath: 'supplier/ScoreSupplier',
// formName: formName,
// formId:currentRoute.value.meta.formId
// }
// });
}
}
@ -211,15 +228,27 @@
}
function handleEdit(record: Recordable) {
router.push({
path: '/form/ScoreSupplier/' + record.id + '/updateForm',
query: {
if (schemaIdComputedRef.value) {
router.push({
path: '/flow/' + schemaIdComputedRef.value + '/0/createFlow',
query: {
formPath: 'supplier/ScoreSupplier',
formName: formName,
formId:currentRoute.value.meta.formId
}
});
formId:currentRoute.value.meta.formId,
type:'edit',
id: record.id
}
});
} else {
router.push({
path: '/form/ScoreSupplier/' + record.id + '/updateForm',
query: {
formPath: 'supplier/ScoreSupplier',
formName: formName,
formId:currentRoute.value.meta.formId
}
});
}
}
function handleDelete(record: Recordable) {
deleteList([record.id]);