| | |
| | | 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: '主生产计划', |
| | |
| | | permitArr: [] |
| | | }) |
| | | } |
| | | this.table.toolbar.push({ |
| | | text: '下载Word', |
| | | disabled: false, |
| | | type: 'primary', |
| | | fun: this.downloadWord, |
| | | permitArr: ['03plan','04planed'], |
| | | }) |
| | | }, |
| | | methods: { |
| | | //下载word |
| | |
| | | const blob = response.data |
| | | const link = document.createElement('a') |
| | | link.href = URL.createObjectURL(blob) |
| | | link.download = '工艺文件.docx' |
| | | const disposition = response.headers["content-disposition"] |
| | | let temp = disposition.substring(disposition.lastIndexOf('=') + 1) |
| | | link.download = decodeURI(temp) |
| | | document.body.appendChild(link) |
| | | link.click() |
| | | window.setTimeout(function() { |
| | |
| | | } |
| | | }) |
| | | 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: '确定', |