From 3f34fd0de2fb28cfecd8854f976fc084258f2153 Mon Sep 17 00:00:00 2001 From: git_rabbit Date: Fri, 26 Dec 2025 15:03:43 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E7=89=A9=E6=96=99=E7=AE=A1=E7=90=86):?= =?UTF-8?q?=20=E9=87=8D=E6=9E=84=E7=89=A9=E6=96=99=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E8=8E=B7=E5=8F=96=E6=8E=A5=E5=8F=A3=E5=B9=B6?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将接口函数名称从getMmMaterialCategoryName改为getMmMaterialCategoryOptions以更准确描述功能 - 修改接口请求方式从get到post并更新对应路径 - 优化Vue组件中选项列表的代码格式 - 更新组件中调用新接口函数 --- .../productionMaterial/mmmaterial.js | 10 ++-- .../productionMaterial/MmMaterial.vue | 49 ++++++++++++------- 2 files changed, 36 insertions(+), 23 deletions(-) diff --git a/src/api/materialManagement/productionMaterial/mmmaterial.js b/src/api/materialManagement/productionMaterial/mmmaterial.js index d7ef79c..c96a960 100644 --- a/src/api/materialManagement/productionMaterial/mmmaterial.js +++ b/src/api/materialManagement/productionMaterial/mmmaterial.js @@ -58,11 +58,11 @@ export function delMmMaterial(pid) { /** * 获取物料分类名称下拉列表 - */ -export function getMmMaterialCategoryName(query) { + */ +export function getMmMaterialCategoryOptions(query) { return request({ - url: 'mes/productionMaterial/MmMaterialCategoryName/list', - method: 'get', - params: query + url: 'mes/productionMaterial/MmMaterial/GetMmMaterialCategoryOptions', + method: 'post', + data: query }) } diff --git a/src/views/materialManagement/productionMaterial/MmMaterial.vue b/src/views/materialManagement/productionMaterial/MmMaterial.vue index 7f9aced..cfdc0b8 100644 --- a/src/views/materialManagement/productionMaterial/MmMaterial.vue +++ b/src/views/materialManagement/productionMaterial/MmMaterial.vue @@ -200,7 +200,14 @@