From c571c78788410d3d3a2df10299bd14a6ed28b54c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E7=BA=A2=E5=85=B5?= <374362909@qq.com> Date: Sat, 7 Mar 2026 13:03:45 +0800 Subject: [PATCH] =?UTF-8?q?feat(purchase):=20=E6=89=80=E6=9C=89=E6=A8=A1?= =?UTF-8?q?=E7=89=88=E4=B8=8B=E8=BD=BD=E6=8C=89=E9=92=AE=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将所有硬编码的模版名称替换为动态获取 - 模版名称从后台API获取,支持后台维护后前端自动更新 - 统一格式为:下载《{模版名称}》模版 - 保留后备名称确保兼容性 --- .../purchase/purchasingrequisition/add.vue | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/views/purchase/purchasingrequisition/add.vue b/src/views/purchase/purchasingrequisition/add.vue index 80300c6..5cb63da 100644 --- a/src/views/purchase/purchasingrequisition/add.vue +++ b/src/views/purchase/purchasingrequisition/add.vue @@ -240,7 +240,7 @@ :limit="1" :file-type="['doc', 'docx', 'pdf', 'jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp']" :data="{ fileType: FILE_TYPE_MAP.serviceDirectSelect }" - upload-file-url="/purchase/purchasingfiles/upload" +upload-file-url="/purchase/purchasingfiles/upload" :disabled="flowFieldDisabled('serviceDirectSelect')" /> 下载《服务商城项目需求模板(直选)》模版 + >下载《{{ getTemplateName('direct_select') }}》模版 @@ -278,7 +278,7 @@ size="small" @click="downloadTemplate('public_select')" style="margin-top: 8px; display: inline-block" - >下载《服务商城项目需求模板(公开比选)》模版 + >下载《{{ getTemplateName('public_select') }}》模版 @@ -300,7 +300,7 @@ size="small" @click="downloadTemplate('purchase_requirement')" style="margin-top: 8px; display: inline-block" - >下载《需求模板》模版 + >下载《{{ getTemplateName('purchase_requirement') }}》模版 @@ -329,7 +329,7 @@ size="small" @click="downloadTemplate('invite_select')" style="margin-top: 8px; display: inline-block" - >下载《服务商城项目需求模板(邀请比选)》模版 + >下载《{{ getTemplateName('invite_select') }}》模版 @@ -350,7 +350,7 @@ size="small" @click="downloadTemplate('public_select')" style="margin-top: 8px; display: inline-block" - >下载《服务商城项目需求模板(公开比选)》模版 + >下载《{{ getTemplateName('public_select') }}》模版 @@ -480,7 +480,7 @@ size="small" @click="downloadTemplate('feasibility_report')" style="margin-top: 8px; display: inline-block" - >下载《项目可行性论证报告模板.doc》 + >下载《{{ getTemplateName('feasibility_report') }}》模版 @@ -514,7 +514,7 @@ size="small" @click="downloadTemplate('single_source')" style="margin-top: 8px; display: inline-block" - >下载《单一来源论专家证附件.docx》 + >下载《{{ getTemplateName('single_source') }}》模版 @@ -547,7 +547,7 @@ size="small" @click="downloadTemplate('import_application')" style="margin-top: 8px; display: inline-block" - >下载《进口产品申请及专家论证意见表.doc》 + >下载《{{ getTemplateName('import_application') }}》模版 @@ -596,7 +596,7 @@ size="small" @click="downloadTemplate('invite_select')" style="margin-top: 8px; display: inline-block" - >下载《服务商城项目需求模板(邀请比选)》模版 + >下载《{{ getTemplateName('invite_select') }}》模版 @@ -635,7 +635,7 @@ size="small" @click="downloadTemplate('public_select')" style="margin-top: 8px; display: inline-block" - >下载《服务商城项目需求模板(公开比选)》模版 + >下载《{{ getTemplateName('public_select') }}》模版