1
lzhe
2025-07-08 561224d0c6ea8767766a8114ce15c98e31b6a0d9
src/views/flowmgr/programexport.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2025-06-20 20:48:17
 * @LastEditors: gaoshp
 * @LastEditTime: 2025-07-07 22:55:12
 * @LastEditTime: 2025-07-08 20:46:33
 * @FilePath: /mdmweb/src/views/flowmgr/programexport.vue
-->
<template>
@@ -27,7 +27,7 @@
    import NProgress from 'nprogress';
    import { exportBlobPost } from '@/api/common';
    import { getToken } from '@/utils/auth';
    import { downloadXls } from '@/utils/util';
    import { downloadFile } from '@/utils/util';
    export default {
    name: 'programexport',
    data() {
@@ -65,11 +65,11 @@
                column: [
                    {
                        label: '图号',
                        prop: 'partNo',
                        prop: 'drawingNo',
                    },
                    {
                        label: '图号版次',
                        prop: 'partNoEdition',
                        prop: 'drawingNoEdition',
                    },
                    {
                        label: '工序名称',
@@ -177,7 +177,9 @@
                    {},
                    {ids: this.selection.map(item => item.id)},
                ).then(res => {
                    downloadXls(res.data, `导出机床回传程序${this.$dayjs().format('YYYY-MM-DD HH:mm:ss')}.xlsx`);
                    let name = res.headers['content-disposition'].split('filename=')[1]
                    console.log(res.headers['content-disposition'].split('filename=')[1]);
                    downloadFile(res.data, `导出DNC-${name}`);
                    NProgress.done();
                });
            });