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 @@