From af99b20d36a01930696991a4f8dfca28d5e3e683 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Thu, 14 Dec 2023 19:11:25 +0800
Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=94=B6=E8=B4=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/BasicForm/src/BasicForm.vue | 2 +-
src/components/TableForm/src/TableForm.vue | 2 +-
.../purchasereturnRequestMain/index.vue | 243 +++++++++++++-----
.../purchasereturnRequestMain.data.ts | 51 ++--
4 files changed, 220 insertions(+), 78 deletions(-)
diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue
index 49fb9fdd8..02609d66a 100644
--- a/src/components/BasicForm/src/BasicForm.vue
+++ b/src/components/BasicForm/src/BasicForm.vue
@@ -472,7 +472,7 @@ const handleTableSelect = (row, column, event) => {
// 删除数据
const handleDeleteTable = (row, index) => {
- emit('handleDeleteTable', row)
+ emit('handleDeleteTable', row, index,formRef.value)
}
// 添加数据
const handleAddTable = () => {
diff --git a/src/components/TableForm/src/TableForm.vue b/src/components/TableForm/src/TableForm.vue
index e1f08af32..12d0190d2 100644
--- a/src/components/TableForm/src/TableForm.vue
+++ b/src/components/TableForm/src/TableForm.vue
@@ -399,7 +399,7 @@ const validateForm = () => {
}
// 删除数据
const handleDeleteTable = (row, index) => {
- emit('handleDeleteTable', row)
+ emit('handleDeleteTable', row, index)
}
// 添加数据
const handleAddTable = () => {
diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
index 3a96de847..5d51e2646 100644
--- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
@@ -1,18 +1,22 @@
-
+
-
-
+
+
@@ -27,13 +31,16 @@
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
-
+
{{ row.number }}
-
+
@@ -50,7 +57,7 @@
:apiUpdate="PurchasereturnRequestMainApi.updatePurchasereturnRequestMain"
:apiCreate="PurchasereturnRequestMainApi.createPurchasereturnRequestMain"
:isBusiness="true"
- :isShowButton="false"
+ :isShowButton="isShowButton"
@handleAddTable="handleAddTable"
@handleDeleteTable="handleDeleteTable"
@searchTableSuccess="searchTableSuccess"
@@ -73,18 +80,29 @@
/>
-
+