| | |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | searchInfoType: 'date', |
| | | formatter: this.formatDutyDate, |
| | | }, |
| | | { |
| | |
| | | permitArr: [], |
| | | }) |
| | | } |
| | | this.table.toolbar.push({ |
| | | text: '下载工艺文件', |
| | | disabled: false, |
| | | type: 'primary', |
| | | fun: this.downloadWord, |
| | | permitArr: ['03plan','04planed'], |
| | | }) |
| | | this.table.toolbar.push({ |
| | | text: '下载排产单', |
| | | disabled: false, |
| | | type: 'primary', |
| | | permitArr: [], |
| | | fun: this.downloadProductionScheduling, |
| | | }) |
| | | if(this.permissions.plan_download_process_file){ |
| | | this.table.toolbar.push({ |
| | | text: '下载工艺文件', |
| | | disabled: false, |
| | | type: 'primary', |
| | | fun: this.downloadWord, |
| | | permitArr: ['03plan','04planed'], |
| | | }) |
| | | } |
| | | if(this.permissions.plan_download_product_file){ |
| | | this.table.toolbar.push({ |
| | | text: '下载排产单', |
| | | disabled: false, |
| | | type: 'primary', |
| | | permitArr: [], |
| | | fun: this.downloadProductionScheduling, |
| | | }) |
| | | } |
| | | this.table.toolbar.push({ |
| | | text: '关联订单', |
| | | disabled: false, |
| | |
| | | this.$message.error("请选择一条数据") |
| | | return |
| | | } |
| | | downloadProduct({ids: ids}).then(res=>{ |
| | | downloadProduct(ids).then(res=>{ |
| | | if(res.status===200){ |
| | | transform(res) |
| | | } |