| | |
| | | <!-- <el-table-column label="仪器名称" min-width="150" prop="unitName"></el-table-column>--> |
| | | <!-- <el-table-column label="型号" min-width="100" prop="address"></el-table-column>--> |
| | | <el-table-column label="配件" min-width="150" prop="parts"></el-table-column> |
| | | <el-table-column label="编号" min-width="100" prop="number"></el-table-column> |
| | | <el-table-column label="编号" min-width="100"> |
| | | <template v-slot="scope">{{ scope.row.number || clickNodeVal.managementNumber || '-' }}</template> |
| | | </el-table-column> |
| | | <el-table-column label="报废理由" min-width="150" prop="reasonsForScrap"></el-table-column> |
| | | <!-- 操作按钮 --> |
| | | <el-table-column align="center" fixed="right" label="操作" min-width="120"> |
| | | <template #default="scope"> |
| | | <el-button :disabled="scope.row.ratifyStatus === 1" size="small" link type="primary" |
| | | <el-button :disabled="scope.row.isFinish === 1" size="small" link type="primary" |
| | | @click="handleForm(scope.row.scrappedId)">操作</el-button> |
| | | <el-button size="small" link type="primary" @click="handleDownOne(scope.row.scrappedId)">导出</el-button> |
| | | <el-button size="small" link type="danger" |
| | | <el-button :disabled="scope.row.isFinish === 1" size="small" link type="danger" |
| | | @click="deleteFun(scope.row.scrappedId)">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-pagination :current-page="1" :page-size="pagination1.size" :page-sizes="[10, 20, 30, 50, 100]" |
| | | <el-pagination :current-page="pagination1.current" :page-size="pagination1.size" :page-sizes="[10, 20, 30, 50, 100]" |
| | | :total="pagination1.total" layout="->,total, sizes, prev, pager, next, jumper" |
| | | @size-change="handleSizeChange1" @current-change="handleCurrentChange1" background> |
| | | </el-pagination> |
| | |
| | | exportDeviceScrapped, |
| | | delDeviceScrapped, |
| | | } from '@/api/cnas/resourceDemand/device.js' |
| | | import { saveBlobOrShowError } from '@/utils/saveBlob' |
| | | export default { |
| | | name: "equipment-scrap", |
| | | // import 引入的组件需要注入到对象中才能使用 |
| | |
| | | this.outLoading = true |
| | | exportDeviceScrapped({ scrappedId: id }).then(res => { |
| | | this.outLoading = false |
| | | const blob = new Blob([res], { type: 'application/octet-stream' }); |
| | | this.$download.saveAs(blob, '仪器设备报废申请表.doc') |
| | | saveBlobOrShowError(res, '仪器设备报废申请表.doc', 'application/msword') |
| | | }).catch(() => { |
| | | this.outLoading = false |
| | | }) |
| | | }, |
| | | // 删除 |