Commit 615c16a1 authored by 李苏's avatar 李苏 💬

relaseSapModifyAndGzsl 销售交货单,释放sap权限调整

parent f852c474
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Tbjhd :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='同步交货单'" /> <Tbjhd :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='同步交货单'" />
<Ckbg :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='仓库变更'" /> <Ckbg :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='仓库变更'" />
<Sfsap :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='释放SAP修改权限'" />
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
...@@ -12,7 +13,8 @@ ...@@ -12,7 +13,8 @@
<el-button v-if="ctx.basePage.powerObj['22']" @click="qxqr(ctx.basePage)" size='mini' type="primary">取消确认</el-button> <el-button v-if="ctx.basePage.powerObj['22']" @click="qxqr(ctx.basePage)" size='mini' type="primary">取消确认</el-button>
<el-button v-if="ctx.basePage.powerObj['23']" @click="sapgz(ctx.basePage)" size='mini' type="primary">SAP过账</el-button> <el-button v-if="ctx.basePage.powerObj['23']" @click="sapgz(ctx.basePage)" size='mini' type="primary">SAP过账</el-button>
<el-button v-if="ctx.basePage.powerObj['24']" @click="gb(ctx.basePage)" size='mini' type="primary">关闭</el-button> <el-button v-if="ctx.basePage.powerObj['24']" @click="gb(ctx.basePage)" size='mini' type="primary">关闭</el-button>
<el-button v-if="ctx.basePage.powerObj['25']" @click="sfsap(ctx.basePage)" size='mini' type="primary">释放SAP修改权限</el-button> <!-- <el-button v-if="ctx.basePage.powerObj['25']" @click="sfsap(ctx.basePage)" size='mini' type="primary">释放SAP修改权限</el-button> -->
<el-button v-if="ctx.basePage.powerObj['25']" @click="newSfsap(ctx.basePage)" size='mini' type="primary">释放SAP修改权限</el-button>
<el-button v-if="ctx.basePage.powerObj['26']" @click="ckbg(ctx.basePage)" size='mini' type="primary">仓库变更</el-button> <el-button v-if="ctx.basePage.powerObj['26']" @click="ckbg(ctx.basePage)" size='mini' type="primary">仓库变更</el-button>
</template> </template>
...@@ -23,6 +25,7 @@ ...@@ -23,6 +25,7 @@
// import Edit from './edit.vue' // import Edit from './edit.vue'
import Tbjhd from './tbjhd.vue' import Tbjhd from './tbjhd.vue'
import Ckbg from './ckbg.vue' import Ckbg from './ckbg.vue'
import Sfsap from './sfsap.vue'
export default { export default {
data() { data() {
return { return {
...@@ -32,7 +35,7 @@ ...@@ -32,7 +35,7 @@
/* 手动控制删除 */ /* 手动控制删除 */
delButton: true, delButton: true,
/* 手动控制编辑按钮权限 */ /* 手动控制编辑按钮权限 */
editButton: true, editButton: false,
/* 是否渲染右侧操作按钮 */ /* 是否渲染右侧操作按钮 */
operateButtons: true, operateButtons: true,
/* 是否开启工作流按钮 */ /* 是否开启工作流按钮 */
...@@ -286,26 +289,37 @@ ...@@ -286,26 +289,37 @@
} }
}, },
sfsap(ctx) { // sfsap(ctx) {
let list = ctx.$refs.TablePager.selectedList || [] // let list = ctx.$refs.TablePager.selectedList || []
if (list.length > 0) { // if (list.length > 0) {
this.$confirm('是否继续操作, 是否继续?', '提示', { // this.$confirm('是否继续操作, 是否继续?', '提示', {
confirmButtonText: '确定', // confirmButtonText: '确定',
cancelButtonText: '取消', // cancelButtonText: '取消',
type: 'warning' // type: 'warning'
}).then(res => { // }).then(res => {
this.$post('/lxyl/ckgl/usofh/ReleaseSapModifyPermission', { // this.$post('/lxyl/ckgl/usofh/ReleaseSapModifyPermission', {
ids: list.map(item => item.id) // ids: list.map(item => item.id)
}).then(res => { // }).then(res => {
if (res.success) { // if (res.success) {
this.$success('操作成功') // this.$success('操作成功')
ctx.refresh() // ctx.refresh()
} // }
}) // })
}) // })
} else { // } else {
this.$warning('请至少勾选一条数据') // this.$warning('请至少勾选一条数据')
// }
// },
newSfsap(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
ctx.DialogTitle = '释放SAP修改权限'
ctx.DialogWidth = '30vw'
ctx.showDialog = true
}else{
this.$warning('请至少勾选一条数据')
} }
}, },
gb(ctx) { gb(ctx) {
let list = ctx.$refs.TablePager.selectedList || [] let list = ctx.$refs.TablePager.selectedList || []
...@@ -420,7 +434,8 @@ ...@@ -420,7 +434,8 @@
components: { components: {
// Edit, // Edit,
Tbjhd, Tbjhd,
Ckbg Ckbg,
Sfsap
} }
} }
......
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