From 8c3e48d3898f0f90f47b4a910e1c1632511521e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Tue, 19 Dec 2023 17:25:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E6=A0=BC=E8=BD=AC=E9=9A=94=E7=A6=BB?= =?UTF-8?q?=20=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventorymoveRequestMain/index.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue index 14f3179de..978cfb3fa 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue @@ -142,8 +142,26 @@ const { tableObject, tableMethods } = useTable({ } fromInventoryStatus.value = 'SCRAP' toInventoryStatus.value = "HOLD" +} else { + console.log(146 , fromInventoryStatus.value) + fromInventoryStatus.value = null } +// 修改 tableform 属性 +InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => { + if(item.field == 'fromPackingNumber') { + if (fromInventoryStatus.value) { + item.tableForm.searchCondition = [{ + key: 'inventoryStatus', + value: fromInventoryStatus.value, + isMainValue: false + }] + } else { + delete item.tableForm.searchCondition + } + } +}) + // 字段设置 更新主列表字段 const updataTableColumns = (val) => { tableColumns.value = val