From 78b2eccf1af230f6ffc8ac4d622fdcbd721572fa Mon Sep 17 00:00:00 2001 From: andy <1042025947@qq.com> Date: Sat, 7 Nov 2026 09:49:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=87=AA=E4=B8=BB=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index.vue | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index d451b0c..5312e94 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -64,7 +64,7 @@
- 自主查询 + 自主查询
勾选自主查询后,可自行输入查询格式统一的物料编码或物料名称 @@ -73,11 +73,12 @@
- + 按编码 按名称 - + m.materialCode !== item.materialCode); }, clearSelection() { - this.selectedMaterials = []; + if(this.useAutonomous){ + this.selectedMaterials = ""; + }else{ + this.selectedMaterials = []; + } this.materialOptions = []; this.queryParams.materialCode = "" this.queryParams.materialName = "" @@ -365,9 +385,9 @@ export default { //使用自主查询 if(this.useAutonomous){ if(this.searchMode === 'code'){ - this.queryParams.materialCode = this.selectedMaterials.join(',') + this.queryParams.materialCode = this.selectedMaterials }else{ - this.queryParams.materialName = this.selectedMaterials.join(',') + this.queryParams.materialName = this.selectedMaterials } this.queryParams.pageNum = 0 this.getList();