Commit 0350eda0 authored by 李苏's avatar 李苏 💬

rkd add a button for clear recommended storage locations ,but it is not achieved

parent 8a59a052
......@@ -13,6 +13,7 @@
<el-button @click="qxqr(ctx.basePage)" size='mini' type="primary">取消确认</el-button>
<el-button @click="sapgz(ctx.basePage)" size='mini' type="primary">SAP过账</el-button>
<el-button @click="tbshd(ctx.basePage)" size='mini' type="primary">同步送货单</el-button>
<el-button @click="qktjkw(ctx.basePage)" size='mini' type="primary">清空推荐库位</el-button>
</template>
</BasePage>
......@@ -177,7 +178,7 @@
type: 'input',
value: ''
},
],[
......@@ -220,6 +221,26 @@
ctx.DialogTitle='同步送货单'
ctx.showDialog=true
},
qktjkw(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
this.$confirm('是否继续该操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res=>{
this.$post('lxyl/rkgl/rktz/empty',{
id:ctx.singleItem.id
}).then(res=>{
if(res.success){
this.$success('操作成功')
ctx.refresh()
}
})
})
}else{
this.$warning('请选中一条数据')
}
},
sapgz(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
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