From c37a64e9e7071eedfaab1290c7a680d96703ad20 Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Wed, 18 Dec 2024 14:49:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A3=85=E5=A4=87=E5=B1=9E=E6=80=A7=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/cart/index.vue | 6 ++++ src/views/user/goodsManagement/index.vue | 38 +++++++++++------------- 2 files changed, 24 insertions(+), 20 deletions(-) diff --git a/src/views/cart/index.vue b/src/views/cart/index.vue index 173bbf0..6b71af9 100644 --- a/src/views/cart/index.vue +++ b/src/views/cart/index.vue @@ -742,6 +742,12 @@ const handleViewWord = async (index: any) => { }, 1000); } +// 下载合同为 Word 文件 +const submitBtn = () => { + window.location.href = wordUrl.value +} + + // 获取收货地址 const getReceiptGoodsAddress = async () => { const res: any = await getAddressListApi({}) diff --git a/src/views/user/goodsManagement/index.vue b/src/views/user/goodsManagement/index.vue index f6fe081..bd40dd6 100644 --- a/src/views/user/goodsManagement/index.vue +++ b/src/views/user/goodsManagement/index.vue @@ -1036,6 +1036,14 @@ const onPreviewImg = (fileUrl: any) => { previewDialogImageUrl.value = fileUrl previewDialogVisible.value = true } +// 计算所有装备 +const chunkedItems = computed(() => { + let result = []; + for (let i = 0; i < propertyNames.value.length; i += 2) { + result.push(propertyNames.value.slice(i, i + 2)); + } + return result; +})