From 6cfff55d44314e88fefd6e3adb290ec16b303f89 Mon Sep 17 00:00:00 2001 From: 黎星凯 <13949086503@163.com> Date: 星期五, 05 一月 2024 10:42:53 +0800 Subject: [PATCH] 1、供产品导数据临时用(用户,机构,部门,仓库,库管员 可删) 2、选择库管员增加过滤参数 --- admin-web/src/views/stock/inventorycount/inventorytask/index.vue | 31 +++++++++++++++++-------------- 1 files changed, 17 insertions(+), 14 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..5359ad8 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: { //瀵煎叆 @@ -362,7 +365,7 @@ // 鏌ヨtable鍒楄〃 search(pageNum) { if (pageNum != undefined) { - this.$refs.myTable.search(pageNum); + this.$refs.myTable.search({pageNum}); } else { this.$refs.myTable.search(); } -- Gitblit v1.9.1