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
fa06a92e
Commit
fa06a92e
authored
Sep 03, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加筛选条件
parent
8bad332a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
54 deletions
+69
-54
index.vue
src/views/ccgl/ckgl/dbckd/top/index.vue
+7
-0
index.vue
src/views/ccgl/kngl/bzzy/top/index.vue
+62
-54
No files found.
src/views/ccgl/ckgl/dbckd/top/index.vue
View file @
fa06a92e
...
...
@@ -173,6 +173,13 @@
typeConfig
:
{
src
:
'lxyl/ckgl/dbck/init/zt'
}
},
{
label
:
'物料信息'
,
prop
:
'wlxxInfo'
,
span
:
5
,
type
:
'input'
,
value
:
''
}]
],
/* 默认启停用 */
...
...
src/views/ccgl/kngl/bzzy/top/index.vue
View file @
fa06a92e
...
...
@@ -6,13 +6,15 @@
}" addRename='装包' :power='power' @getRow='getRow' class="min_full" style="height: 100%;" :config="config">
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<!--
<zb
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='装包'"
/>
-->
<cb
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='调整'"
/>
<!--
<zb
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='装包'"
/>
-->
<cb
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='调整'"
/>
</
template
>
<
template
#
toolbar=
"ctx"
>
<el-button
v-if=
"ctx.basePage.powerObj['22']"
@
click=
"mpwc(ctx.basePage)"
size=
'mini'
type=
"primary"
>
完成
</el-button>
<el-button
v-if=
"ctx.basePage.powerObj['22']"
@
click=
"qxwc(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消完成
</el-button>
<el-button
v-if=
"ctx.basePage.powerObj['22']"
@
click=
"mpwc(ctx.basePage)"
size=
'mini'
type=
"primary"
>
完成
</el-button>
<el-button
v-if=
"ctx.basePage.powerObj['22']"
@
click=
"qxwc(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消完成
</el-button>
</
template
>
</BasePage>
...
...
@@ -45,8 +47,7 @@
/* 基本配置*/
url
:
'lxyl/rkgl/bzzy'
,
// addUrl:'lxyl/rkgl/bzdj/install',
tableTitle
:
[
{
tableTitle
:
[{
title
:
"状态"
,
field
:
"zt"
,
"transform"
:
{
...
...
@@ -80,11 +81,11 @@
{
title
:
"单据来源"
,
field
:
"djly"
,
"transform"
:
{
"url"
:
"lxyl/rkgl/bzzy/init/djly"
,
"label"
:
"name"
,
"value"
:
"id"
},
"transform"
:
{
"url"
:
"lxyl/rkgl/bzzy/init/djly"
,
"label"
:
"name"
,
"value"
:
"id"
},
width
:
80
},
{
...
...
@@ -97,7 +98,7 @@
title
:
"维护人"
,
field
:
"whr"
,
fieldType
:
"ftString"
,
width
:
120
width
:
120
},
{
title
:
"维护时间"
,
...
...
@@ -118,31 +119,38 @@
},
],
queryParams
:
[
[{
label
:
'日期'
,
startProp
:
"start"
,
endProp
:
"end"
,
[{
label
:
'日期'
,
startProp
:
"start"
,
endProp
:
"end"
,
span
:
8
,
type
:
'RelDaterangeV2'
,
startValue
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
endValue
:
new
Date
().
getTime
(),
},
{
label
:
'唯一码'
,
prop
:
'packCode'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
{
label
:
'入库单号'
,
prop
:
'rktzDjid'
,
span
:
6
,
type
:
'input'
,
value
:
''
}
],
[{
label
:
'物料信息'
,
prop
:
'wlxxInfo'
,
span
:
8
,
type
:
'RelDaterangeV2'
,
startValue
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
endValue
:
new
Date
().
getTime
(),
},
{
label
:
'唯一码'
,
prop
:
'packCode'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
{
label
:
'入库单号'
,
prop
:
'rktzDjid'
,
span
:
6
,
type
:
'input'
,
value
:
''
}
]
}]
],
/* 默认启停用 */
...
...
@@ -151,34 +159,34 @@
},
methods
:
{
qxwc
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$post
(
'lxyl/rkgl/bzzy/cancelComplete'
,{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
qxwc
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$post
(
'lxyl/rkgl/bzzy/cancelComplete'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
}
else
{
}
else
{
this
.
warning
(
'请选中一条数据'
)
}
},
mpwc
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$post
(
'lxyl/rkgl/bzzy/complete'
,{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
mpwc
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$post
(
'lxyl/rkgl/bzzy/complete'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
}
else
{
}
else
{
this
.
warning
(
'请选中一条数据'
)
}
...
...
@@ -191,12 +199,12 @@
// ctx.DialogTitle='装包'
// ctx.showDialog=true
// },
cb
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
ctx
.
DialogWidth
=
'50vw'
ctx
.
DialogTitle
=
'调整'
ctx
.
showDialog
=
true
}
else
{
cb
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
ctx
.
DialogWidth
=
'50vw'
ctx
.
DialogTitle
=
'调整'
ctx
.
showDialog
=
true
}
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