Explorar el Código

feat(query): 查询条件支持多选过滤

- 将维修工单查询的部门字段 deptId 改为 deptIdList 支持多值
- 将备件库存查询的类型字段 typeId 改为 typeIdList 支持多值
- 为树选择组件添加 multiple 和 allowClear 属性
dazhaxie hace 3 semanas
padre
commit
d03a9fdfdb

+ 1 - 1
src/views/repair/application-form/RepairForm.vue

@@ -429,7 +429,7 @@ export default {
       const no = this.$route.query.no
       const skipDeptDefault = no != null || this.searchType === 2
       this.queryParam = {
-        deptId: skipDeptDefault ? null : this.$store.getters.userInfo.deptId,
+        deptIdList: skipDeptDefault ? [] : [this.$store.getters.userInfo.deptId],
         searchStartTime: null,
         searchEndTime: null
       }

+ 1 - 1
src/views/store/storesparebom/SpareStoreBom.vue

@@ -17,7 +17,7 @@
               </a-col>
               <a-col :md="8" :sm="24">
                 <a-form-item label="类型">
-                  <a-tree-select style="width: 100%" :dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }" :treeData="spareTypeTreeData" :treeNodeFilterProp="'title'" :showSearch="true" v-model="queryParam.typeId" placeholder="请选择">
+                  <a-tree-select style="width: 100%" :dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }" :treeData="spareTypeTreeData" :treeNodeFilterProp="'title'" :showSearch="true" v-model="queryParam.typeIdList" multiple allowClear placeholder="请选择">
                   </a-tree-select>
                 </a-form-item>
               </a-col>