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
c28f88f3
Commit
c28f88f3
authored
Jul 15, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wlxxInfo/zlh
parent
5ea26693
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
41 deletions
+58
-41
index.vue
src/views/ccgl/zlgl/kcyhd/top/index.vue
+58
-41
No files found.
src/views/ccgl/zlgl/kcyhd/top/index.vue
View file @
c28f88f3
<
template
>
<BasePage
ref=
"basePage"
:power=
'power'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<BasePage
ref=
"basePage"
:power=
'power'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Add
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='新增'"
/>
<Xzgw
@
saveGw=
'saveGw'
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='选择工位'"
/>
<Xzgw
@
saveGw=
'saveGw'
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='选择工位'"
/>
</
template
>
<
template
#
toolbar=
"ctx"
>
<el-button
v-if=
"ctx.basePage.powerObj['01']"
@
click=
"showAdd(ctx.basePage)"
size=
'mini'
type=
"primary"
>
新增
</el-button>
<!--
<el-button
@
click=
"cxjyrw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
创建检验任务
</el-button>
-->
<el-button
v-if=
"ctx.basePage.powerObj['21']"
@
click=
"cjxjrw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
创建下架任务
</el-button>
<el-button
v-if=
"ctx.basePage.powerObj['01']"
@
click=
"showAdd(ctx.basePage)"
size=
'mini'
type=
"primary"
>
新增
</el-button>
<!--
<el-button
@
click=
"cxjyrw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
创建检验任务
</el-button>
-->
<el-button
v-if=
"ctx.basePage.powerObj['21']"
@
click=
"cjxjrw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
创建下架任务
</el-button>
</
template
>
...
...
@@ -123,6 +125,21 @@
type
:
'input'
,
value
:
''
}
],
[{
label
:
'物料'
,
prop
:
'wlxxInfo'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
{
label
:
'指令号'
,
prop
:
'zlh'
,
span
:
6
,
type
:
'input'
,
value
:
''
}
]
],
...
...
@@ -141,32 +158,32 @@
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
},
/* cxjyrw(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续操作, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('lxyl/ukcyhd/genJyd', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
})
} else {
this.$warning('请选中一条数据')
}
/* cxjyrw(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续操作, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('lxyl/ukcyhd/genJyd', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
})
} else {
this.$warning('请选中一条数据')
}
}, */
saveGw
(
form
){
let
ctx
=
this
.
$refs
.
basePage
}, */
saveGw
(
form
)
{
let
ctx
=
this
.
$refs
.
basePage
this
.
$post
(
'lxyl/ukcyhd/genXjrw'
,
{
id
:
ctx
.
singleItem
.
id
,
gwid
:
form
.
gwid
gwid
:
form
.
gwid
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
...
...
@@ -179,20 +196,20 @@
ctx
.
DialogTitle
=
'选择工位'
ctx
.
DialogWidth
=
'40vw'
ctx
.
showDialog
=
true
/* this.$confirm('是否继续操作, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('lxyl/ukcyhd/genXjrw', {
id: ctx.singleItem.id
/* this.$confirm('是否继续操作, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
}) */
this.$post('lxyl/ukcyhd/genXjrw', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
}) */
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
...
...
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