From f984aeb49e7d2c8c7e4eab793bd89fb16e7488c1 Mon Sep 17 00:00:00 2001 From: LiJianZhao Date: Sat, 17 May 2025 11:40:36 +0800 Subject: [PATCH] dev --- .../inventory/purchase/AddOrder.vue | 10 ++- src/components/inventory/purchase/Upload.vue | 73 ++++++++++++++++--- src/views/inventory/inventory.vue | 34 ++++++++- 3 files changed, 103 insertions(+), 14 deletions(-) diff --git a/src/components/inventory/purchase/AddOrder.vue b/src/components/inventory/purchase/AddOrder.vue index e9be5ef..f70177d 100644 --- a/src/components/inventory/purchase/AddOrder.vue +++ b/src/components/inventory/purchase/AddOrder.vue @@ -414,12 +414,20 @@ const removeTableRow = (row: any) => { table_list.value.splice(index, 1); } } -const init = () => { +const init = (orderInfo: any,goodList: any) => { isShow.value = true getSupplierList() getManagerUserList() getUserInfo() + if (orderInfo){ + inventory_order_data.value = orderInfo + } + if (goodList){ + table_list.value = goodList + } + getTotalPrice() + } const managerUserList: any = ref([]) const getManagerUserList = () => { diff --git a/src/components/inventory/purchase/Upload.vue b/src/components/inventory/purchase/Upload.vue index 1687685..6ac27ad 100644 --- a/src/components/inventory/purchase/Upload.vue +++ b/src/components/inventory/purchase/Upload.vue @@ -1,5 +1,5 @@