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; +})