From 744be39480bc95cc55e36b94bffabaf844100544 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:30:07 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E9=87=87=E8=B4=AD=E7=94=B3=E8=AF=B7?=
=?UTF-8?q?=E8=A1=A8=E5=8D=95=E6=B7=BB=E5=8A=A0=E9=83=A8=E9=97=A8=E8=87=AA?=
=?UTF-8?q?=E8=A1=8C=E9=87=87=E8=B4=AD=E4=BC=9A=E8=AE=AE=E7=BA=AA=E8=A6=81?=
=?UTF-8?q?=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 新增 FILE_TYPE_MAP.deptSelfMeetingMinutes('140') 文件类型
- 添加 deptSelfMeetingMinutes 表单字段
- 部门自行采购且预算金额<2000 元时显示必填上传组件
- 新增 purchasingfiles.ts API 文件
---
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 -> 表单字段名数组(顺序与回填分配一致,同类型多字段时按此顺序分配)