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
10c17ff7
Commit
10c17ff7
authored
May 19, 2024
by
周毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
库位增加 锁定、解锁、冻结、解冻
parent
01f6a95e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
92 additions
and
9 deletions
+92
-9
index.vue
src/views/ccgl/jcsj/kwgl/index.vue
+92
-9
No files found.
src/views/ccgl/jcsj/kwgl/index.vue
View file @
10c17ff7
...
@@ -10,7 +10,11 @@
...
@@ -10,7 +10,11 @@
<ImportButton
@
success=
"()=>
{
<ImportButton
@
success=
"()=>
{
ctx.basePage.refresh()
ctx.basePage.refresh()
}" :url="'lxyl/jcsj/kw/import'" />
}" :url="'lxyl/jcsj/kw/import'" />
<el-button
style=
"margin-left: 10px;"
@
click=
"qkkw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
清空库位
</el-button>
<el-button
style=
"margin-left: 10px;"
@
click=
"qkkw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
清空
</el-button>
<el-button
style=
"margin-left: 10px;"
@
click=
"lock(ctx.basePage)"
size=
'mini'
type=
"primary"
>
锁定
</el-button>
<el-button
style=
"margin-left: 10px;"
@
click=
"unlock(ctx.basePage)"
size=
'mini'
type=
"primary"
>
解锁
</el-button>
<el-button
style=
"margin-left: 10px;"
@
click=
"freeze(ctx.basePage)"
size=
'mini'
type=
"primary"
>
冻结
</el-button>
<el-button
style=
"margin-left: 10px;"
@
click=
"unfreeze(ctx.basePage)"
size=
'mini'
type=
"primary"
>
解冻
</el-button>
<el-button
style=
"margin-left: 10px;"
@
click=
"ckxq(ctx.basePage)"
size=
'mini'
type=
"primary"
>
查看详情
</el-button>
<el-button
style=
"margin-left: 10px;"
@
click=
"ckxq(ctx.basePage)"
size=
'mini'
type=
"primary"
>
查看详情
</el-button>
<!--
<el-button
style=
"margin-left: 10px;"
@
click=
"kwbg(ctx.basePage)"
size=
'mini'
<!--
<el-button
style=
"margin-left: 10px;"
@
click=
"kwbg(ctx.basePage)"
size=
'mini'
type=
"primary"
>
库位变更
</el-button>
-->
type=
"primary"
>
库位变更
</el-button>
-->
...
@@ -52,7 +56,7 @@
...
@@ -52,7 +56,7 @@
{
{
title
:
"仓库"
,
title
:
"仓库"
,
field
:
"ckName"
,
field
:
"ckName"
,
with
:
120
,
wi
d
th
:
120
,
},
},
{
{
title
:
"库区"
,
title
:
"库区"
,
...
@@ -88,7 +92,7 @@
...
@@ -88,7 +92,7 @@
},
},
{
{
title
:
"外
层
库位"
,
title
:
"外
侧
库位"
,
field
:
"wcKwCode"
,
field
:
"wcKwCode"
,
width
:
120
,
width
:
120
,
},
},
...
@@ -97,11 +101,6 @@
...
@@ -97,11 +101,6 @@
field
:
"abc"
,
field
:
"abc"
,
width
:
170
width
:
170
},
},
{
title
:
"停用日期"
,
field
:
"tyrq"
,
fieldType
:
'ftDate'
},
{
{
title
:
"备注"
,
title
:
"备注"
,
field
:
"bz"
,
field
:
"bz"
,
...
@@ -199,7 +198,7 @@
...
@@ -199,7 +198,7 @@
},
]
},
]
],
],
/* 默认启停用 */
/* 默认启停用 */
showqt
:
true
,
//
showqt: true,
}
}
}
}
...
@@ -238,6 +237,90 @@
...
@@ -238,6 +237,90 @@
}
}
},
},
lock
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'wms/jcsj/kw/lock'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
unlock
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'wms/jcsj/kw/unlock'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
freeze
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'wms/jcsj/kw/freeze'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
unfreeze
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'wms/jcsj/kw/unfreeze'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
ckxq
(
ctx
)
{
ckxq
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
ctx
.
DialogWidth
=
'80vw'
ctx
.
DialogWidth
=
'80vw'
...
...
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