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 @@ ...@@ -13,6 +13,7 @@
<el-button @click="qxqr(ctx.basePage)" size='mini' type="primary">取消确认</el-button> <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="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="tbshd(ctx.basePage)" size='mini' type="primary">同步送货单</el-button>
<el-button @click="qktjkw(ctx.basePage)" size='mini' type="primary">清空推荐库位</el-button>
</template> </template>
</BasePage> </BasePage>
...@@ -177,7 +178,7 @@ ...@@ -177,7 +178,7 @@
type: 'input', type: 'input',
value: '' value: ''
}, },
],[ ],[
...@@ -220,6 +221,26 @@ ...@@ -220,6 +221,26 @@
ctx.DialogTitle='同步送货单' ctx.DialogTitle='同步送货单'
ctx.showDialog=true 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){ sapgz(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