From 73147b139f12f9443d1aaae11f80b583a428ef4f Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Fri, 5 Jul 2024 11:33:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B6=E5=93=81=E8=BF=94=E4=BF=AE=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=20=E6=96=B0=E5=A2=9E=E6=97=B6=E7=9A=84=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=98=8E=E7=BB=86=E9=87=8C=E9=9D=A2=E7=9A=84=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=B2=A1=E6=9C=89=E5=88=A0=E9=99=A4=E6=8C=89=E9=92=AE?= =?UTF-8?q?=EF=BC=8C=E4=B9=9F=E6=B2=A1=E6=9C=89=E6=89=B9=E9=87=8F=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E6=8C=89=E9=92=AE,=E5=BB=BA=E5=B7=A5=E5=BA=8F?= =?UTF-8?q?=E6=8A=A5=E4=BA=A7=E7=94=B3=E8=AF=B7=E6=97=B6=EF=BC=8C=E4=B8=8D?= =?UTF-8?q?=E5=BA=94=E8=AF=A5=E6=9C=89=E4=B8=8A=E6=AC=A1=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E7=9A=84=E6=98=8E=E7=BB=86=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TableForm/src/TableForm.vue | 1 + .../processproduction/processproductionRequest/index.vue | 1 + .../productrepair/productrepairRequestMain/index.vue | 6 +++++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/TableForm/src/TableForm.vue b/src/components/TableForm/src/TableForm.vue index 28db8d9a7..88439dd30 100644 --- a/src/components/TableForm/src/TableForm.vue +++ b/src/components/TableForm/src/TableForm.vue @@ -551,6 +551,7 @@ const tableSelectionChange = (val) => { } const handleSelectionDelete = () => { emit('tableSelectionDelete', deleteTableData.value) + TableBaseComponents_Ref.value.clearSelection() nextTick(() => { deleteTableData.value.forEach((row) => { TableBaseComponents_Ref.value!.toggleRowSelection(row, false) diff --git a/src/views/wms/productionManage/processproduction/processproductionRequest/index.vue b/src/views/wms/productionManage/processproduction/processproductionRequest/index.vue index e62b08b73..fe2a491bb 100644 --- a/src/views/wms/productionManage/processproduction/processproductionRequest/index.vue +++ b/src/views/wms/productionManage/processproduction/processproductionRequest/index.vue @@ -292,6 +292,7 @@ const handleHandle = async (id: number) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + tableData.value = [] // 重置明细数据 basicFormRef.value.open(type, row) } diff --git a/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue b/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue index 5f291b7e7..a6ba77156 100644 --- a/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue +++ b/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue @@ -56,6 +56,8 @@ @searchTableSuccess="searchTableSuccess" @submitForm="submitForm" @buttonOperationClick="buttonOperationClick" + :isShowReduceButtonSelection="true" +@tableSelectionDelete="tableSelectionDelete" /> @@ -686,7 +688,9 @@ const tableFormButton = async (val , row) => { await getDetailListBom() } } - +const tableSelectionDelete = (selection) => { + tableData.value = tableData.value.filter(item => !selection.includes(item)) +} /** 初始化 **/ onMounted(async () => { getList()