Browse Source

fix:343【库存盘点-报损报溢】除关键字跟状态搜索可行,其他条件搜索无效

mlchen 5 days ago
parent
commit
4147e9bf8a

+ 8 - 4
src/views/warehouseManagement/stocktaking/reportLoss/components/reportloss-search.vue

@@ -62,6 +62,7 @@
         <el-form-item label="报损报溢人员:">
           <el-select
             filterable
+            clearable
             class="w100"
             size="small"
             v-model="where.executorId"
@@ -170,6 +171,7 @@
     },
     created() {
       this.getFactoryList();
+      this.getTreeData();
     },
     methods: {
       async nodeClick(id, data) {
@@ -179,6 +181,7 @@
         }
         this.where.executorName = '';
         this.where.executorId = '';
+        this.userList = [];
         if (id) {
           let userData = await warehouseDefinition.getUserPage({
             groupId: id,
@@ -189,12 +192,12 @@
         }
       },
       async getTreeData(val) {
-        this.where.targetWarehouse = '';
-        this.where.sourceWarehouse = '';
+        this.where.warehouseId = '';
+        this.warehouseList = [];
         try {
           this.treeLoading = true;
           let res = await storageApi.getWarehouseTrees({
-            factoriesId: val
+            factoryId: val
           });
           this.treeLoading = false;
           if (res?.code === '0') {
@@ -216,12 +219,13 @@
       },
       /* 搜索 */
       search() {
-        console.log(this.where);
         this.$emit('search', this.where);
       },
       /*  重置 */
       reset() {
         this.where = { ...this.defaultWhere };
+        this.userList = [];
+        this.getTreeData();
         this.search();
       }
     }

+ 3 - 3
vue.config.js

@@ -2,7 +2,7 @@
  * @Author: mlchen 374826075@qq.com
  * @Date: 2026-07-21 09:26:11
  * @LastEditors: mlchen 374826075@qq.com
- * @LastEditTime: 2026-10-10 15:17:10
+ * @LastEditTime: 2026-10-14 16:10:16
  * @FilePath: /kd-aiot-frontend-wms/vue.config.js
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -43,8 +43,8 @@ module.exports = {
         // target: 'http://124.71.68.31:50001',
         // target: 'http://192.168.1.132:18086',
         // target: 'http://192.168.1.105:18086', //开发
-        // target: 'http://localhost:18090', //开发
-        target: 'http://192.168.1.251:18086', //测试
+        target: 'http://localhost:18086', //开发
+        // target: 'http://192.168.1.251:18086', //测试
         // target: 'http://192.168.1.116:18086',
 
         // target: 'http://192.168.1.116:18086',