Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lxyl-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
lxyl-vue
Commits
615c16a1
Commit
615c16a1
authored
Aug 08, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
relaseSapModifyAndGzsl 销售交货单,释放sap权限调整
parent
f852c474
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
22 deletions
+37
-22
index.vue
src/views/ccgl/jcsj/xsjhd/index.vue
+37
-22
No files found.
src/views/ccgl/jcsj/xsjhd/index.vue
View file @
615c16a1
...
...
@@ -4,6 +4,7 @@
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Tbjhd
: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
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
...
...
@@ -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['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['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>
</
template
>
...
...
@@ -23,6 +25,7 @@
// import Edit from './edit.vue'
import
Tbjhd
from
'./tbjhd.vue'
import
Ckbg
from
'./ckbg.vue'
import
Sfsap
from
'./sfsap.vue'
export
default
{
data
()
{
return
{
...
...
@@ -32,7 +35,7 @@
/* 手动控制删除 */
delButton
:
true
,
/* 手动控制编辑按钮权限 */
editButton
:
tru
e
,
editButton
:
fals
e
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
true
,
/* 是否开启工作流按钮 */
...
...
@@ -286,26 +289,37 @@
}
},
sfsap
(
ctx
)
{
let
list
=
ctx
.
$refs
.
TablePager
.
selectedList
||
[]
if
(
list
.
length
>
0
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'/lxyl/ckgl/usofh/ReleaseSapModifyPermission'
,
{
ids
:
list
.
map
(
item
=>
item
.
id
)
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
// sfsap(ctx) {
// let list = ctx.$refs.TablePager.selectedList || []
// if (list.length > 0) {
// this.$confirm('是否继续操作, 是否继续?', '提示', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// }).then(res => {
// this.$post('/lxyl/ckgl/usofh/ReleaseSapModifyPermission', {
// ids: list.map(item => item.id)
// }).then(res => {
// if (res.success) {
// this.$success('操作成功')
// ctx.refresh()
// }
// })
// })
// } else {
// this.$warning('请至少勾选一条数据')
// }
// },
newSfsap
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
ctx
.
DialogTitle
=
'释放SAP修改权限'
ctx
.
DialogWidth
=
'30vw'
ctx
.
showDialog
=
true
}
else
{
this
.
$warning
(
'请至少勾选一条数据'
)
}
},
gb
(
ctx
)
{
let
list
=
ctx
.
$refs
.
TablePager
.
selectedList
||
[]
...
...
@@ -420,7 +434,8 @@
components
:
{
// Edit,
Tbjhd
,
Ckbg
Ckbg
,
Sfsap
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment