| | |
| | | :page="page" :tableLoading="tableLoading"> |
| | | <template slot="action" slot-scope="{ row }"> |
| | | <el-button type="text" @click="edit(row)">编辑</el-button> |
| | | <el-button type="text" style="color: red;" @click="del(row)">删除</el-button> |
| | | </template> |
| | | </lims-table> |
| | | </div> |
| | |
| | | import limsTable from '@/components/Table/lims-table.vue' |
| | | import AddRecord from './component/AddRecord.vue'; |
| | | import { |
| | | getPageAcceptance, getAcceptanceDetails, exportFeStandardSubstanceAcceptance, updateAcceptance, addAcceptance |
| | | getPageAcceptance, deleteAcceptance, exportFeStandardSubstanceAcceptance |
| | | } from '@/api/cnas/resourceDemand/standardMaterialAccept/standardMaterialAccept' |
| | | export default { |
| | | components: { |
| | |
| | | this.page.size = page.limit |
| | | this.getTableData() |
| | | }, |
| | | del(row) { |
| | | this.$confirm('是否确定删除', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | deleteAcceptance(row.id).then(res => { |
| | | if (res.code == 200) { |
| | | this.$message.success("删除成功") |
| | | this.getTableData(); |
| | | } |
| | | }) |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |