From 7da285b6f9b3acea8936460818776280785b5447 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 3 Aug 2026 10:22:00 +0800 Subject: [PATCH 1/3] feat(wpm): manage files for individual outputs --- src/api/model/wpm.js | 6 ++ src/components/OutputMaterialFiles.vue | 105 ++++++++++++++++++++++++ src/views/wpm_bx/mlogbw_check.vue | 8 ++ src/views/wpm_bx/mlogbw_check_table.vue | 9 +- 4 files changed, 126 insertions(+), 2 deletions(-) create mode 100644 src/components/OutputMaterialFiles.vue diff --git a/src/api/model/wpm.js b/src/api/model/wpm.js index d17e14f8..382986cc 100644 --- a/src/api/model/wpm.js +++ b/src/api/model/wpm.js @@ -341,6 +341,12 @@ export default { }, mlogbw: { + files: { + name: "产出附件", + req: async function (id, data) { + return await http.put(`${config.API_URL}/wpm/mlogbw/${id}/files/`, data); + }, + }, list: { name: "列表", req: async function (data) { diff --git a/src/components/OutputMaterialFiles.vue b/src/components/OutputMaterialFiles.vue new file mode 100644 index 00000000..eaf8e543 --- /dev/null +++ b/src/components/OutputMaterialFiles.vue @@ -0,0 +1,105 @@ + + + diff --git a/src/views/wpm_bx/mlogbw_check.vue b/src/views/wpm_bx/mlogbw_check.vue index 58e26861..69a963a6 100644 --- a/src/views/wpm_bx/mlogbw_check.vue +++ b/src/views/wpm_bx/mlogbw_check.vue @@ -233,6 +233,11 @@ + + + + + diff --git a/src/views/pum/supplieraudit.vue b/src/views/pum/supplieraudit.vue index a3dda98b..d96e80cf 100644 --- a/src/views/pum/supplieraudit.vue +++ b/src/views/pum/supplieraudit.vue @@ -30,17 +30,23 @@ @@ -70,4 +76,4 @@ const exportCols = [ { header: "物料名称", key: "material_name", wch: 20 }, { header: "物料类别", key: "material_cate", wch: 20 }, ] - \ No newline at end of file + diff --git a/src/views/rpm/rfile.vue b/src/views/rpm/rfile.vue index bf78051a..df72048a 100644 --- a/src/views/rpm/rfile.vue +++ b/src/views/rpm/rfile.vue @@ -22,9 +22,13 @@