Commit 403acf6e authored by 李苏's avatar 李苏 💬

库位调整单wcs接口

parent f414c88f
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<template #toolbar="ctx"> <template #toolbar="ctx">
<el-button @click="doConfirm(ctx.basePage)" size='mini' type="primary">确认</el-button> <el-button @click="doConfirm(ctx.basePage)" size='mini' type="primary">确认</el-button>
<el-button @click="cancelConfirm(ctx.basePage)" size='mini' type="primary">取消确认</el-button> <el-button @click="cancelConfirm(ctx.basePage)" size='mini' type="primary">取消确认</el-button>
<el-button @click="wcsxjrw(ctx.basePage)" size='mini' type="primary">wcs下架任务</el-button>
</template> </template>
</BasePage> </BasePage>
...@@ -106,6 +107,25 @@ ...@@ -106,6 +107,25 @@
} }
}, },
methods: { methods: {
wcsxjrw(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
this.$confirm('是否继续操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res=>{
this.$post('kcgl/kwtz/genXjrw',{
id:ctx.singleItem.id
}).then(res=>{
if(res.success){
ctx.refresh()
}
})
})
}else{
this.$warning('请选中一条数据')
}
},
doConfirm(ctx){ doConfirm(ctx){
if(ctx.singleItem&&ctx.singleItem.id){ if(ctx.singleItem&&ctx.singleItem.id){
this.$confirm('是否继续操作?', '提示', { this.$confirm('是否继续操作?', '提示', {
......
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