From b3283fe04bea0236efcd5c96db0876a19ae6a453 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E7=BA=A2=E5=85=B5?= <374362909@qq.com> Date: Tue, 3 Mar 2026 17:32:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E9=97=A8=E4=BC=9A=E8=AE=AE=E7=BA=AA?= =?UTF-8?q?=E8=A6=81111?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/purchase/purchasingfiles.ts | 35 +++++++++++++++++++ .../purchase/purchasingrequisition/add.vue | 21 +++++++---- 2 files changed, 49 insertions(+), 7 deletions(-) create mode 100644 src/api/purchase/purchasingfiles.ts diff --git a/src/api/purchase/purchasingfiles.ts b/src/api/purchase/purchasingfiles.ts new file mode 100644 index 0000000..53c29cf --- /dev/null +++ b/src/api/purchase/purchasingfiles.ts @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form to reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取文件类型列表 + */ +export function getFileTypes() { + return request({ + url: '/purchase/purchasingfiles/file-types', + method: 'get' + }); +} + +/** + * 获取 140 部门自行采购会议纪要文件类型 + */ +export function getDeptSelfMeetingFiletype() { + return '140'; +} \ No newline at end of file diff --git a/src/views/purchase/purchasingrequisition/add.vue b/src/views/purchase/purchasingrequisition/add.vue index 9d576cb..3cb4233 100644 --- a/src/views/purchase/purchasingrequisition/add.vue +++ b/src/views/purchase/purchasingrequisition/add.vue @@ -154,6 +154,11 @@ 下载《部门采购询价模版》模版 + + + + + @@ -621,6 +626,7 @@ const dataForm = reactive({ serviceInviteSelect: '', servicePublicSelectAuto: '', + deptSelfMeetingMinutes: '', // 部门自行采购会议纪要 // 学校统一采购字段 purchaseRequirement: '', meetingMinutes: '', @@ -681,7 +687,7 @@ const loading = ref(false); const helpDialogVisible = ref(false); // 文件类型映射(对应数据库 file_type 字段) -// 10:商务洽谈纪要 20:市场采购纪要 30:网上商城采购相关材料 40:可行性论证报告 50:会议记录 60:其他材料 70:单一来源专家论证表 90:进口产品专家论证表 100:政府采购意向表 110:履约验收单 120:采购需求表 130:招标文件 +// 10:商务洽谈纪要 20:市场采购纪要 30:网上商城采购相关材料 40:可行性论证报告 50:会议记录 60:其他材料 70:单一来源专家论证表 90:进口产品专家论证表 100:政府采购意向表 110:履约验收单 120:采购需求表 130:招标文件 140: 部门自行采购会议纪要 const FILE_TYPE_MAP: Record = { businessNegotiationTable: '10', // 商务洽谈纪要 marketPurchaseMinutes: '20', // 市场采购纪要 @@ -696,16 +702,17 @@ const FILE_TYPE_MAP: Record = { singleSourceProof: '70', // 单一来源专家论证表 importApplication: '90', // 进口产品申请表 governmentPurchaseIntent: '100', // 政府采购意向表 - // 需求文件相关 - 所有需求模板都应该是120(采购需求表) + // 需求文件相关 - 所有需求模板都应该是 120(采购需求表) serviceDirectSelect: '120', // 服务商城项目需求模板(直选)- 采购需求表 serviceInviteSelect: '120', // 服务商城项目需求模板(邀请比选)- 采购需求表 servicePublicSelect: '120', // 服务商城项目需求模板(公开比选)- 采购需求表 - servicePublicSelectAuto: '120', // 服务商城项目需求模板(公开比选-自动)- 采购需求表 + servicePublicSelectAuto: '120', // 服务商城项目需求模板(公开比选 - 自动)- 采购需求表 purchaseRequirementTemplate: '120', // 需求模板 - 采购需求表 - purchaseRequirement: '120', // 需求模板 - 采购需求表 - serviceInviteSelectSchool: '120', // 服务商城项目需求模板(邀请比选-学校)- 采购需求表 - servicePublicSelectSchoolAuto: '120', // 服务商城项目需求模板(公开比选-学校-自动)- 采购需求表 - servicePublicSelectSchool: '120', // 服务商城项目需求模板(公开比选-学校)- 采购需求表 +purchaseRequirement: '120', // 需求模板 - 采购需求表 + serviceInviteSelectSchool: '120', // 服务商城项目需求模板(邀请比选 - 学校)- 采购需求表 + servicePublicSelectSchoolAuto: '120', // 服务商城项目需求模板(公开比选 - 学校 - 自动)- 采购需求表 + servicePublicSelectSchool: '120', // 服务商城项目需求模板(公开比选 - 学校)- 采购需求表 + deptSelfMeetingMinutes: '140', // 部门自行采购会议纪要 }; // fileType -> 表单字段名数组(顺序与回填分配一致,同类型多字段时按此顺序分配)