From 9e65c07c4d300c898943f5b5f56d61b23c9915ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Thu, 4 Dec 2025 10:05:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(wms):=20=E6=B7=BB=E5=8A=A0=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E6=94=B6=E8=B4=A7=E6=A8=A1=E6=9D=BF=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=B9=B6=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增下载模板按钮及对应方法 - 调整代码缩进和格式以提高可读性 - 移除多余的空格和注释 --- klp-ui/src/views/wms/receive/detail/index.vue | 27 +++++++++++++------ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/klp-ui/src/views/wms/receive/detail/index.vue b/klp-ui/src/views/wms/receive/detail/index.vue index 2e8e06ff..c4ae28f7 100644 --- a/klp-ui/src/views/wms/receive/detail/index.vue +++ b/klp-ui/src/views/wms/receive/detail/index.vue @@ -34,7 +34,10 @@ 刷新 导入 - 打印 + 模板 + 打印 @@ -81,7 +84,8 @@ - + @@ -146,11 +150,11 @@ import ImportGuide from "@/views/wms/receive/components/ImportGuide.vue"; import ActualWarehouseSelect from "@/components/KLPService/ActualWarehouseSelect"; import CoilNo from "@/components/KLPService/Renderer/CoilNo.vue"; import Printer from "../components/Printer.vue"; - +import { getConfigKey } from '@/api/system/config' export default { name: "DeliveryWaybill", - components: { + components: { MemoInput, ImportGuide, ActualWarehouseSelect, @@ -224,7 +228,7 @@ export default { // 导入弹窗 importDialogVisible: false, - // 确认收货表单参数 + // 确认收货表单参数 receiptModalVisible: false, receiptForm: { currentCoilNo: null, @@ -402,7 +406,7 @@ export default { ...this.queryParams }, `deliveryWaybill_${new Date().getTime()}.xlsx`) }, - // 打开收货弹窗 + // 打开收货弹窗 openReceiptModal(row) { this.loading = true // 打开确认收货弹窗 @@ -441,6 +445,13 @@ export default { this.form = {}; this.$refs.form.resetFields(); this.buttonLoading = false; + }, + // 下载模板文件 + downloadTemplate() { + // 从系统参数中中读取id,然后下载 + getConfigKey('file.template.receive').then(res => { + this.$download.oss(res.msg); + }) } } };