From a90edc11d3d266682ae54d4a92f0ddff5a39894f Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Wed, 10 Dec 2025 16:28:35 +0800 Subject: [PATCH] =?UTF-8?q?2025-12-10=20=E9=94=80=E5=94=AE=E6=8A=A5?= =?UTF-8?q?=E4=BB=B7=E9=A1=B5=E9=9D=A2=E7=9A=84=E2=80=9C=E6=9D=A1=E7=9B=AE?= =?UTF-8?q?=E6=98=8E=E7=BB=86=E2=80=9D=E9=A1=B5=E7=AD=BE=E9=87=8C=E7=9A=84?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=AF=B9=E8=AF=9D=E6=A1=86=EF=BC=8C=E9=87=8C?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E2=80=9C=E6=9D=90=E6=96=99=E2=80=9D=E5=92=8C?= =?UTF-8?q?=E2=80=9C=E5=B7=A5=E8=89=BA=E2=80=9D=E9=A1=B5=E7=AD=BE=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=B8=80=E4=B8=AA=E3=80=90=E5=AF=BC=E5=87=BA=E3=80=91?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../quote/detail/primary/quoteDetailBom.vue | 42 ++++++++++++++++--- .../detail/primary/quoteDetailRouting.vue | 39 ++++++++++++++--- 2 files changed, 70 insertions(+), 11 deletions(-) diff --git a/src/views/modules/quote/detail/primary/quoteDetailBom.vue b/src/views/modules/quote/detail/primary/quoteDetailBom.vue index dcf021b..e15caa1 100644 --- a/src/views/modules/quote/detail/primary/quoteDetailBom.vue +++ b/src/views/modules/quote/detail/primary/quoteDetailBom.vue @@ -260,7 +260,9 @@ export default { engChgLevel: null, }, recalculateCost: false, // 切换版本后是否重新计算成本 - changeLoading:false + changeLoading:false, + // 导出相关 + exportName: '报价材料信息' + this.dayjs().format('YYYYMMDDHHmmss'), } }, methods: { @@ -464,6 +466,22 @@ export default { } this.$router.push(params) } + }, + // 导出相关方法 + exportFields() { + let json = "{" + this.columns.forEach((item, index) => { + if (index === this.columns.length - 1) { + json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + } else { + json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + "," + } + }) + json += "}" + return eval("(" + json + ")") + }, + createExportData() { + return this.dataList; } }, created() { @@ -484,11 +502,23 @@ export default {