From 605f6bd3ed028ffb05061a7cfe932b2e6ed017ef Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期一, 08 一月 2024 12:24:41 +0800 Subject: [PATCH] 销售订单-下载word修改 --- src/views/plan/customerorder/index.vue | 17 +++++++++-------- src/api/plan/customerorder.js | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/api/plan/customerorder.js b/src/api/plan/customerorder.js index 2bec0db..452c5aa 100644 --- a/src/api/plan/customerorder.js +++ b/src/api/plan/customerorder.js @@ -401,7 +401,7 @@ return request({ url: '/mes/plan/customerOrder/package', method: 'post', - params: data, + data: data, responseType: 'blob' }) } diff --git a/src/views/plan/customerorder/index.vue b/src/views/plan/customerorder/index.vue index fe3aa84..1351e4d 100644 --- a/src/views/plan/customerorder/index.vue +++ b/src/views/plan/customerorder/index.vue @@ -855,6 +855,13 @@ permitArr: [] }) } + this.table.toolbar.push({ + text: '涓嬭浇Word', + disabled: false, + type: 'primary', + fun: this.downloadWord, + permitArr: ['03plan','04planed'], + }) if (this.permissions.customerorder_create_masterplan) { this.table.toolbar.push({ text: '涓荤敓浜ц鍒�', @@ -863,13 +870,6 @@ permitArr: [] }) } - this.table.toolbar.push({ - text: '涓嬭浇Word', - disabled: false, - type: 'primary', - fun: this.downloadWord, - permitArr: ['03plan','04planed'], - }) }, methods: { //涓嬭浇word @@ -1037,7 +1037,8 @@ } }) if (flag) { - checkOA(this.multipleSelection.map((e) => e.id)).then((res) => { + + checkOA(this.multipleSelection.map((e) => e.id),{}).then((res) => { if (!res.data.data.success) { this.$confirm(`${res.data.data.message}`, '鎻愮ず', { confirmButtonText: '纭畾', -- Gitblit v1.9.3