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 {