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
0c6a1d1e
Commit
0c6a1d1e
authored
Apr 28, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.local.topsunit.com/mes/mes-ui
into dev
parents
ef3c7be1
6fdc2180
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
12 deletions
+32
-12
index.vue
src/views/mes/cal/plan/index.vue
+3
-2
team.vue
src/views/mes/cal/plan/team.vue
+18
-7
multi.vue
src/views/mes/cal/team/calTeamSelect/multi.vue
+11
-3
No files found.
src/views/mes/cal/plan/index.vue
View file @
0c6a1d1e
...
...
@@ -234,8 +234,8 @@
<
el
-
tab
-
pane
label
=
"班次"
>
<
Shift
v
-
if
=
"open"
ref
=
"shiftTab"
:
planId
=
"form.planId"
:
shiftType
=
"form.shiftType"
:
optType
=
"optType"
><
/Shift
>
<
/el-tab-pane
>
<
el
-
tab
-
pane
v
-
if
=
"open
&&optType !== 'add'
"
label
=
"工作单元"
>
<
Team
v
-
if
=
"open
&&optType !== 'add'
"
ref
=
"teamTab"
:
planId
=
"form.planId"
:
form
=
"form"
:
calendarType
=
"form.calendarType"
:
optType
=
"optType"
><
/Team
>
<
el
-
tab
-
pane
v
-
if
=
"open"
label
=
"工作单元"
>
<
Team
v
-
if
=
"open"
ref
=
"teamTab"
:
planId
=
"form.planId"
:
form
=
"form"
:
calendarType
=
"form.calendarType"
:
optType
=
"optType"
><
/Team
>
<
/el-tab-pane
>
<
/el-tabs
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
...
...
@@ -415,6 +415,7 @@ export default {
}
else
{
let
params
=
Object
.
assign
({
}
,
this
.
form
)
params
.
calShifts
=
this
.
$refs
.
shiftTab
.
shiftList
params
.
calWorkunits
=
this
.
$refs
.
teamTab
.
teamList
addCalplan
(
params
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
...
...
src/views/mes/cal/plan/team.vue
View file @
0c6a1d1e
...
...
@@ -4,7 +4,7 @@
<span>
工作单元
</span>
<el-button
style=
"float: right;"
v-if=
"optType !='view'"
@
click=
"handleAdd"
type=
"primary"
>
新增
</el-button>
</div>
<el-table
v-loading=
"loading"
:data=
"teamList"
>
<el-table
v-loading=
"loading"
:data=
"teamList"
max-height=
"570px"
>
<el-table-column
label=
"工作单元ID"
align=
"center"
prop=
"workunitId"
>
</el-table-column>
<el-table-column
label=
"工作单元编码"
align=
"center"
prop=
"workunitCode"
/>
...
...
@@ -15,20 +15,20 @@
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
@
click=
"handleDelete(scope.row
, scope.$index
)"
v-hasPermi=
"['mes:cal:calplan:edit']"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
<pagination
v-show=
"total>0"
v-show=
"total>0
&&planId
"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getTeamList"
/>
<TeamSelect
ref=
"teamSelect"
@
onSelected=
"onTeamSelected"
></TeamSelect>
<TeamSelect
ref=
"teamSelect"
@
onSelected=
"onTeamSelected"
:planId=
"planId"
></TeamSelect>
</div>
</template>
...
...
@@ -47,7 +47,7 @@ export default {
data
(){
return
{
// 遮罩层
loading
:
tru
e
,
loading
:
fals
e
,
//班组表格数据
teamList
:[],
// 班组成员表格数据
...
...
@@ -56,7 +56,7 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
planId
:
this
.
planId
planId
:
this
.
planId
||
''
},
total
:
0
}
...
...
@@ -66,6 +66,9 @@ export default {
},
methods
:{
getTeamList
(){
if
(
!
this
.
planId
)
{
return
}
this
.
loading
=
true
;
listPlanteam
(
this
.
queryParams
).
then
(
response
=>
{
this
.
teamList
=
response
.
rows
;
...
...
@@ -87,12 +90,20 @@ export default {
planCode
:
this
.
form
.
planCode
,
}
});
if
(
!
this
.
planId
)
{
this
.
teamList
.
push
(...
rows
)
return
}
addPlanteam
(
data
).
then
(
response
=>
{
this
.
getTeamList
();
});
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
handleDelete
(
row
,
index
)
{
if
(
!
this
.
planId
)
{
this
.
teamList
.
splice
(
index
,
1
)
return
}
const
recordIds
=
row
.
id
this
.
$modal
.
confirm
(
'是否确认删除工作单元?'
).
then
(
function
()
{
return
delPlanteam
(
recordIds
);
...
...
src/views/mes/cal/team/calTeamSelect/multi.vue
View file @
0c6a1d1e
...
...
@@ -29,9 +29,9 @@
</el-form>
-->
<el-table
v-loading=
"loading"
:data=
"teamList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"teamList"
@
selection-change=
"handleSelectionChange"
height=
"600px"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"工作单元ID"
width=
"
8
0"
align=
"center"
prop=
"workunitId"
>
<el-table-column
label=
"工作单元ID"
width=
"
10
0"
align=
"center"
prop=
"workunitId"
>
</el-table-column>
<el-table-column
label=
"工作单元编码"
align=
"center"
prop=
"workunitCode"
/>
<el-table-column
label=
"工作单元名称"
align=
"center"
prop=
"workunitName"
/>
...
...
@@ -85,11 +85,19 @@ export default {
pageSize
:
10
,
teamCode
:
null
,
teamName
:
null
,
planId
:
this
.
$attrs
.
planId
||
null
},
};
},
watch
:
{
showFlag
:
{
handler
()
{
this
.
getList
();
}
}
},
created
()
{
this
.
getList
();
},
methods
:
{
/** 查询班组列表 */
...
...
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