fix
This commit is contained in:
@@ -292,6 +292,9 @@
|
||||
<!-- 合同弹窗 -->
|
||||
<ContractDialog ref="contractDialogRef" @refresh="getDataList" />
|
||||
|
||||
<!-- 补充材料弹窗 -->
|
||||
<SupplementFilesDialog ref="supplementFilesDialogRef" @refresh="getDataList" />
|
||||
|
||||
<!-- 招标文件审核弹窗 -->
|
||||
<!-- <DocAuditDialog ref="docAuditDialogRef" @refresh="getDataList" />-->
|
||||
|
||||
@@ -405,6 +408,7 @@ const FlowCommentTimeline = defineAsyncComponent(() => import('/@/views/jsonflow
|
||||
const FileArchiveDialog = defineAsyncComponent(() => import('./FileArchiveDialog.vue'));
|
||||
const UpdateFilesDialog = defineAsyncComponent(() => import('./UpdateFilesDialog.vue'));
|
||||
const ContractDialog = defineAsyncComponent(() => import('./contract/ContractDialog.vue'));
|
||||
const SupplementFilesDialog = defineAsyncComponent(() => import('./SupplementFilesDialog.vue'));
|
||||
// const DocAuditDialog = defineAsyncComponent(() => import('./docAudit/DocAuditDialog.vue'));
|
||||
|
||||
// 字典数据和品目树数据
|
||||
@@ -436,6 +440,7 @@ const implementFormRef = ref();
|
||||
const fileArchiveDialogRef = ref();
|
||||
const updateFilesDialogRef = ref();
|
||||
const contractDialogRef = ref();
|
||||
const supplementFilesDialogRef = ref();
|
||||
|
||||
/** 采购代表弹窗 */
|
||||
const representorDialogVisible = ref(false);
|
||||
@@ -712,6 +717,18 @@ const getActionMenuItems = (row: any) => {
|
||||
icon: DocumentChecked,
|
||||
visible: () => isCompleted,
|
||||
},
|
||||
{
|
||||
command: 'supplementFiles',
|
||||
label: '补充材料',
|
||||
icon: Upload,
|
||||
visible: () => isCompleted && row?.purchaseMode === '1' && row?.purchaseChannel === '1' && hasAuth('purchase_supplement'),
|
||||
},
|
||||
{
|
||||
command: 'submitSupplementFiles',
|
||||
label: '提交补充材料',
|
||||
icon: Upload,
|
||||
visible: () => isCompleted && row?.purchaseMode === '1' && row?.purchaseChannel === '1' && row?.supplementFlowStatus === '-1' && hasAuth('purchase_supplement'),
|
||||
},
|
||||
// {
|
||||
// command: 'downloadFileApply',
|
||||
// label: '下载文件审批表',
|
||||
@@ -773,6 +790,12 @@ const handleMoreCommand = (command: string, row: any) => {
|
||||
case 'contract':
|
||||
handleContract(row);
|
||||
break;
|
||||
case 'supplementFiles':
|
||||
handleSupplementFiles(row);
|
||||
break;
|
||||
case 'submitSupplementFiles':
|
||||
handleSubmitSupplementFiles(row);
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -801,6 +824,26 @@ const handleContract = async (row: any) => {
|
||||
}
|
||||
};
|
||||
|
||||
/** 补充材料 */
|
||||
const handleSupplementFiles = (row: any) => {
|
||||
const id = row?.id ?? row?.purchaseId;
|
||||
if (!id) {
|
||||
useMessage().warning('无法获取采购申请ID');
|
||||
return;
|
||||
}
|
||||
supplementFilesDialogRef.value?.open(String(id));
|
||||
};
|
||||
|
||||
/** 提交补充材料 */
|
||||
const handleSubmitSupplementFiles = async (row: any) => {
|
||||
const id = row?.id ?? row?.purchaseId;
|
||||
if (!id) {
|
||||
useMessage().warning('无法获取采购申请ID');
|
||||
return;
|
||||
}
|
||||
supplementFilesDialogRef.value?.open(String(id));
|
||||
};
|
||||
|
||||
/** 下载审批表 */
|
||||
const handleDownloadApply = (row: any) => {
|
||||
const id = row?.id ?? row?.purchaseId;
|
||||
|
||||
Reference in New Issue
Block a user