Commit 42bd33c4 authored by 李苏's avatar 李苏 💬

取消关闭接口

parent 657430ec
...@@ -159,20 +159,29 @@ ...@@ -159,20 +159,29 @@
}, },
qxgb(ctx) { qxgb(ctx) {
if (ctx.singleItem && ctx.singleItem.id) { if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续操作, 是否继续?', '提示', { this.$prompt('请输入取消关闭原因', '', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' }).then(({
}).then(res => { value
this.$post('wms/rkgl/sjtz/unclose/sjtzmx', { }) => {
id: ctx.singleItem.id if (value) {
}).then(res => { this.$post('wms/rkgl/sjtz/batchUnClose/sjtzmx', {
if (res.success) { datas:[{
this.$success('操作成功') id: ctx.singleItem.id
ctx.refresh() }],
} gbyy:value
}) }).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
} else {
this.$warning('请输入关闭原因')
}
}) })
} else { } else {
this.$warning('请选中一条数据') this.$warning('请选中一条数据')
} }
......
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