From 774e6e650b6235a9e34dfecab65c4322c1767714 Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期五, 01 十二月 2023 16:48:15 +0800
Subject: [PATCH] feat: 库存管理 查询条件梳理

---
 admin-web/src/views/stock/inventorycount/inventorytask/index.vue |   29 ++++++++++++++++-------------
 1 files changed, 16 insertions(+), 13 deletions(-)

diff --git a/admin-web/src/views/stock/inventorycount/inventorytask/index.vue b/admin-web/src/views/stock/inventorycount/inventorytask/index.vue
index b315b68..1d3c0ad 100644
--- a/admin-web/src/views/stock/inventorycount/inventorytask/index.vue
+++ b/admin-web/src/views/stock/inventorycount/inventorytask/index.vue
@@ -41,7 +41,6 @@
 import edit from './edit';
 import inventory from './inventory';
 import detail from './detail';
-import {selectTenantWarehouse} from '@/api/baseSetting/finsystenant';
 import myImport from '@/views/components/myImport';
 import {getBaseUrl} from '@/utils/base';
 import {inventoryDel, inventoryListApi} from '@/api/stock/inventory';
@@ -72,12 +71,27 @@
           defaultValue: '',
         },
         {
+          type: 'cascader',
+          dataIndex: 'agencyId',
+          label: '鏈烘瀯',
+          placeholder: '璇烽�夋嫨',
+          optionsConfig: {url: '/pc/fin/sys/tenant/select/tree_fin_tenant', props: null},
+          cascader: [{key:'warehouseId',queryKey: 'agencyId'}],
+          defaultValue: '',
+          options: [],
+        },
+        {
           type: 'select',
           dataIndex: 'warehouseId',
-          label: '鐩樼偣浠撳簱',
+          label: '浠撳簱',
           placeholder: '璇烽�夋嫨',
           defaultValue: '',
           options: [],
+          optionsConfig: {
+            label: 'warehouseName',
+            value: 'id',
+            url: SettingIplatform.apiBaseURL + '/pc/base/warehouse/select/tenant_warehouse'
+          },
         },
         {
           type: 'date-picker',
@@ -296,17 +310,6 @@
     ...mapGetters(['userInfo']),
   },
   created() {
-    selectTenantWarehouse({agencyId: this.userInfo.tenantId}).then((res) => {
-      this.items.forEach((v) => {
-        if (v.label == '鐩樼偣浠撳簱') {
-          v.options = res.map((item) => {
-            item.label = item.warehouseName;
-            item.value = item.id;
-            return item;
-          });
-        }
-      });
-    });
   },
   methods: {
     //瀵煎叆

--
Gitblit v1.9.1