Commit 55ccc793 authored by 李苏's avatar 李苏 💬

jhd新增按钮推荐

parent 7defc3d0
......@@ -4,7 +4,7 @@
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">直接入库</el-button> -->
<el-button @click="jhtj(ctx.basePage)" size='mini' type="primary">拣货推荐</el-button>
<!-- <ImportButton @success="()=>{
ctx.basePage.refresh()
}" :url="'wms/ckgl/jhtz/import'" /> -->
......@@ -187,6 +187,26 @@
},
methods: {
jhtj(ctx){
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续操作, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('lxyl/rkgl/jhtz/calcJhtzqd ', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.onlyRefresh()
}
})
})
} else {
this.$warning('请选中一条数据')
}
},
getRow(val){
this.$emit('getRow',val)
}
......
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