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();