Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pda-ui
Project
Project
Details
Activity
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
pda
pda-ui
Commits
fe05001d
Commit
fe05001d
authored
May 31, 2024
by
zhuli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 提交排班高级查询,编排单数量
parent
16b0bf6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
45 deletions
+37
-45
multi.vue
src/views/mes/cal/team/calTeamSelect/multi.vue
+35
-45
index.vue
src/views/mes/pro/arrange/index.vue
+2
-0
No files found.
src/views/mes/cal/team/calTeamSelect/multi.vue
View file @
fe05001d
<
template
>
<el-dialog
title=
"工作单元选择"
v-if=
"showFlag"
:visible
.
sync=
"showFlag"
:modal=
false
width=
"80%"
>
<!--
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"班组编号"
prop=
"teamCode"
>
<el-dialog
title=
"工作单元选择"
v-if=
"showFlag"
:visible
.
sync=
"showFlag"
:modal=
false
width=
"80%"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"工作单元编号"
label-width=
"300rpx"
prop=
"workunitCode"
>
<el-input
v-model=
"queryParams.
team
Code"
placeholder=
"请输入
班组
编号"
v-model=
"queryParams.
workunit
Code"
placeholder=
"请输入
工作单元
编号"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"
班组名称"
prop=
"team
Name"
>
<el-form-item
label=
"
工作单元名称"
label-width=
"300rpx"
prop=
"workunit
Name"
>
<el-input
v-model=
"queryParams.
team
Name"
placeholder=
"请输入
班组
名称"
v-model=
"queryParams.
workunit
Name"
placeholder=
"请输入
工作单元
名称"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
...
...
@@ -26,12 +21,12 @@
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
-->
</el-form>
<el-table
v-loading=
"loading"
:data=
"
team
List"
@
selection-change=
"handleSelectionChange"
height=
"600px"
>
<el-table
v-loading=
"loading"
:data=
"
workunit
List"
@
selection-change=
"handleSelectionChange"
height=
"600px"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"工作单元ID"
width=
"100"
align=
"center"
prop=
"workunitId"
>
<el-table-column
label=
"工作单元ID"
width=
"100"
align=
"center"
prop=
"workunitId"
>
</el-table-column>
<el-table-column
label=
"工作单元编码"
align=
"center"
prop=
"workunitCode"
/>
<el-table-column
label=
"工作单元名称"
align=
"center"
prop=
"workunitName"
/>
...
...
@@ -39,32 +34,27 @@
<el-table-column
label=
"更新时间"
align=
"center"
prop=
"updateTime"
/>
</el-table>
<pagination
v-show=
"total>0"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"confirmSelect"
>
确 定
</el-button>
<el-button
@
click=
"showFlag=
false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"confirmSelect"
>
确 定
</el-button>
<el-button
@
click=
"showFlag =
false"
>
取 消
</el-button>
</div>
</el-dialog>
</
template
>
<
script
>
import
{
listTeam
}
from
"@/api/mes/cal/team"
;
import
{
listTeam
}
from
"@/api/mes/cal/team"
;
export
default
{
name
:
"TeamSelect"
,
data
()
{
return
{
showFlag
:
false
,
showFlag
:
false
,
// 遮罩层
loading
:
true
,
// 选中数组
ids
:
[],
selectedRows
:[],
selectedRows
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
...
...
@@ -74,7 +64,7 @@ export default {
// 总条数
total
:
0
,
// 班组表格数据
team
List
:
[],
workunit
List
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
...
...
@@ -83,8 +73,8 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
team
Code
:
null
,
team
Name
:
null
,
workunit
Code
:
null
,
workunit
Name
:
null
,
planId
:
this
.
$attrs
.
planId
||
null
},
};
...
...
@@ -100,11 +90,11 @@ export default {
},
methods
:
{
/** 查询
班组
列表 */
/** 查询
工作单元
列表 */
getList
()
{
this
.
loading
=
true
;
listTeam
(
this
.
queryParams
).
then
(
response
=>
{
this
.
team
List
=
response
.
rows
;
this
.
workunit
List
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
});
...
...
@@ -121,21 +111,21 @@ export default {
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
teamId
)
this
.
ids
=
selection
.
map
(
item
=>
item
.
teamId
)
;
this
.
selectedRows
=
selection
;
},
//确定选中
confirmSelect
(){
if
(
this
.
selectedRows
==
null
||
this
.
selectedRows
.
size
==
0
)
{
this
.
$notify
({
title
:
'提示'
,
type
:
'warning'
,
message
:
'请至少选择一条数据!'
});
return
;
}
this
.
$emit
(
'onSelected'
,
this
.
selectedRows
);
this
.
showFlag
=
false
;
confirmSelect
()
{
if
(
this
.
selectedRows
==
null
||
this
.
selectedRows
.
size
==
0
)
{
this
.
$notify
({
title
:
'提示'
,
type
:
'warning'
,
message
:
'请至少选择一条数据!'
});
return
;
}
this
.
$emit
(
'onSelected'
,
this
.
selectedRows
);
this
.
showFlag
=
false
;
}
}
};
...
...
src/views/mes/pro/arrange/index.vue
View file @
fe05001d
...
...
@@ -116,6 +116,8 @@
>
</
template
>
</el-table-column>
<el-table-column
label=
"数量"
align=
"center"
prop=
"quantity"
>
</el-table-column>
<el-table-column
label=
"创建人"
align=
"center"
prop=
"createBy"
/>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
/>
<!-- <el-table-column label="序号" align="center" prop="arrangeSort"/>-->
...
...
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