Commit 36deb26d authored by jingnan's avatar jingnan 👀

指令标识维护增加报废按钮

parent 9425812b
...@@ -147,16 +147,22 @@ ...@@ -147,16 +147,22 @@
<el-table-column <el-table-column
fixed="right" fixed="right"
label="操作" label="操作"
width="120" width="180"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="danger" type="danger"
size="small" size="mini"
@click.native.prevent="close(scope.row)" @click.native.prevent="close(scope.row)"
> >
强制关闭 强制关闭
</el-button> </el-button>
<el-button
size="mini"
@click.native.prevent="scrap(scope.row)"
>
作废
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -742,6 +748,23 @@ export default { ...@@ -742,6 +748,23 @@ export default {
.catch((err) => console.error(err)) .catch((err) => console.error(err))
.finally(() => {}) .finally(() => {})
}, },
scrap(row) {
this.aoLoading = true
post('/ExtProcessPlan/cancel?aoId=' + row.id, {},)
.then((res) => {
if (res.message.includes('成功')) {
this.getTableData(this.nodeData, this.level)
} else {
this.$message({
showClose: true,
message: res.message,
type: 'error'
})
}
})
.catch((err) => console.error(err))
.finally(() => {})
},
/** /**
* 表一多选框 * 表一多选框
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment