| | |
| | | </template> |
| | | </el-table-column> |
| | | <!-- 操作按钮 --> |
| | | <el-table-column align="center" fixed="right" label="操作" min-width="240"> |
| | | <el-table-column align="center" fixed="right" label="操作" min-width="260"> |
| | | <template slot-scope="scope"> |
| | | <el-button :disabled="scope.row.status === 1" size="small" type="text" |
| | | @click="handleForm('edit', scope.row)">编辑</el-button> |
| | |
| | | // 导出 |
| | | handleOut() { |
| | | this.outLoading = true |
| | | rawAllExport({ ...this.entity }).then(res => { |
| | | let params = {} |
| | | if (this.multipleSelection.length > 0) { |
| | | params.ids = this.multipleSelection.map(item => item.id).join(','); |
| | | } else { |
| | | params = {...this.entity} |
| | | } |
| | | rawAllExport(params).then(res => { |
| | | this.outLoading = false |
| | | const blob = new Blob([res], { type: 'application/octet-stream' }); |
| | | this.$download.saveAs(blob, '原材料检测信息导出.xlsx'); |
| | |
| | | // 切换下单tab表格 |
| | | handleTab(m) { |
| | | this.tabIndex = m; |
| | | this.multipleSelection = [] |
| | | this.refreshTable() |
| | | }, |
| | | // 表格选择方法 |
| | |
| | | }, |
| | | // 导出记录 |
| | | downLoad() { |
| | | const params = { ...this.entity, state: this.tabList[this.tabIndex].value } |
| | | let params = {} |
| | | if (this.multipleSelection.length > 0) { |
| | | params.ids = this.multipleSelection.map(item => item.id).join(','); |
| | | } else { |
| | | params = { ...this.entity, state: this.tabList[this.tabIndex].value } |
| | | } |
| | | rawAllInsOrderExport({ ...params }).then(res => { |
| | | const blob = new Blob([res], { type: 'application/octet-stream' }); |
| | | this.$download.saveAs(blob, '委托检测信息导出.xlsx'); |
| | |
| | | }, |
| | | handleTab(i) { |
| | | this.tabIndex = i; |
| | | this.multipleSelection = [] |
| | | this.refreshTable() |
| | | }, |
| | | // 查看检验数据 |