Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
77b1cf7c
Commit
77b1cf7c
authored
Oct 12, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of
http://git.mes123.com/zhouyx/mes-ui
into product
parents
440e1f1f
1b066382
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1872 additions
and
1873 deletions
+1872
-1873
default.vue
layouts/default.vue
+1
-3
excute.vue
pages/aps/aps/components/excute.vue
+483
-490
index.vue
pages/aps/plan/index.vue
+736
-773
index.vue
pages/mesPlan/index.vue
+18
-18
orderlist.vue
pages/produce/orderlist.vue
+4
-4
index.vue
pages/workflow/flow/index.vue
+522
-483
design.vue
pages/workflow/process/design.vue
+108
-102
No files found.
layouts/default.vue
View file @
77b1cf7c
...
...
@@ -85,9 +85,7 @@ export default {
// const openNames = getSiderSubmenu(path, menuSider);
// this.$store.commit("admin/menu/setOpenNames", openNames);
}
else
{
this
.
$Message
.
error
(
"加载产品树失败!"
);
}
}
});
},
toMenu
(
list
)
{
...
...
pages/aps/aps/components/excute.vue
View file @
77b1cf7c
This diff is collapsed.
Click to expand it.
pages/aps/plan/index.vue
View file @
77b1cf7c
This diff is collapsed.
Click to expand it.
pages/mesPlan/index.vue
View file @
77b1cf7c
...
...
@@ -297,11 +297,11 @@ export default {
type
:
"date"
},
{
key
:
"creator
UserId
"
,
key
:
"creator"
,
title
:
this
.
$t
(
"creatorUserId"
),
align
:
"left"
,
high
:
true
,
type
:
"user"
//
type: "user"
},
{
key
:
"creationTime"
,
...
...
@@ -310,22 +310,22 @@ export default {
high
:
true
,
width
:
180
},
{
key
:
"lastModifierUserId"
,
title
:
this
.
$t
(
"lastModifierUserId"
),
hide
:
true
,
align
:
"left"
,
high
:
true
,
type
:
"user"
},
{
key
:
"lastModificationTime"
,
title
:
this
.
$t
(
"lastModificationTime"
),
hide
:
true
,
align
:
"center"
,
high
:
true
,
width
:
180
},
//
{
//
key: "lastModifierUserId",
//
title: this.$t("lastModifierUserId"),
//
hide: true,
//
align: "left",
//
high: true,
//
type: "user"
//
},
//
{
//
key: "lastModificationTime",
//
title: this.$t("lastModificationTime"),
//
hide: true,
//
align: "center",
//
high: true,
//
width: 180
//
},
{
title
:
"操作"
,
key
:
"action"
,
...
...
pages/produce/orderlist.vue
View file @
77b1cf7c
...
...
@@ -366,10 +366,10 @@ export default {
overflow: hidden;
border: #cacbd0 dashed 1px;
img {
// width: 90px;
// height: 90px;
}
//
img {
// width: 90px;
// height: 90px;
//
}
}
.row {
...
...
pages/workflow/flow/index.vue
View file @
77b1cf7c
This diff is collapsed.
Click to expand it.
pages/workflow/process/design.vue
View file @
77b1cf7c
<
template
>
<div
class=
"Design"
>
<div
class=
"Design"
>
<Timeline>
<TimelineItem
v-for=
"(node,i) in nodes"
:key=
"node.id"
>
<Badge
:count=
"i+1"
type=
"primary"
slot=
"dot"
></Badge>
<div
class=
"node"
@
click=
"edit(node.id,i)"
>
<div
class=
"title"
>
<a>
{{
node
.
name
}}
(
<state
code=
"workflow.form.audit.type"
:value=
"node.operation"
/>
)
<Icon
type=
"md-build"
/>
<Icon
v-if=
"node.isFixed"
type=
"ios-lock"
color=
"orange"
title=
"人员固定"
/>
</a>
</div>
<div
v-if=
"node.userIds&&node.userIds.length>0"
>
审批人:
<User
v-for=
"(item,j) in node.userIds"
:value=
"item"
class=
"ml10"
:key=
"j"
/>
</div>
<div
v-if=
"node.roleList&&node.roleList.length>0"
>
审批角色:
<span
v-for=
"(role,k) in node.roleList"
class=
"mr10"
>
{{
role
.
name
}}
(
{{
role
.
userIdList
.
length
}}
)
</span>
</div>
</div>
</TimelineItem>
<TimelineItem
v-for=
"(node,i) in nodes"
:key=
"node.id"
>
<Badge
:count=
"i+1"
type=
"primary"
slot=
"dot"
></Badge>
<div
class=
"node"
@
click=
"edit(node.id,i)"
>
<div
class=
"title"
>
<a>
{{
node
.
name
}}
(
<state
code=
"workflow.form.audit.type"
:value=
"node.operation"
/>
)
<Icon
type=
"md-build"
/>
<Icon
v-if=
"node.isFixed"
type=
"ios-lock"
color=
"orange"
title=
"人员固定"
/>
</a>
</div>
<div
v-if=
"node.userIds&&node.userIds.length>0"
>
审批人:
<User
v-for=
"(item,j) in node.userIds"
:value=
"item"
class=
"ml10"
:key=
"j"
/>
</div>
<div
v-if=
"node.roleList&&node.roleList.length>0"
>
审批角色:
<span
v-for=
"(role,k) in node.roleList"
class=
"mr10"
>
{{
role
.
name
}}
(
{{
role
.
userIdList
.
length
}}
)
</span>
</div>
</div>
</TimelineItem>
</Timeline>
<Modal
v-model=
"editModal"
title=
"编辑"
footer-hide
width=
"800"
>
<Edit
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"addOk"
/>
<Edit
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"addOk"
/>
</Modal>
<Modal
v-model=
"startModal"
title=
"开始节点编辑"
footer-hide
width=
"800"
>
<StartEdit
:eid=
"startId"
@
on-close=
"cancel"
@
on-ok=
"addOk"
/>
<StartEdit
:eid=
"startId"
@
on-close=
"cancel"
@
on-ok=
"addOk"
/>
</Modal>
</div>
</div>
</
template
>
<
script
>
import
Api
from
'./api'
import
Edit
from
'./node'
import
StartEdit
from
'./node/start'
export
default
{
name
:
'Design'
,
data
()
{
return
{
editModal
:
false
,
entity
:
{},
nodes
:
[],
curId
:
0
,
startId
:
0
,
startModal
:
false
}
},
components
:
{
Edit
,
StartEdit
},
props
:
{
eid
:
String
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
mounted
(){
this
.
load
(
this
.
eid
)
},
methods
:
{
load
(
v
)
{
alert
(
v
)
Api
.
detail
({
id
:
v
}).
then
((
r
)
=>
{
this
.
nodes
=
r
.
result
.
nodes
// this.$emit('on-load')
})
name
:
'Design'
,
data
()
{
return
{
editModal
:
false
,
entity
:
{},
nodes
:
[],
curId
:
0
,
startId
:
0
,
startModal
:
false
}
},
edit
(
id
,
i
)
{
if
(
i
==
0
)
{
this
.
startModal
=
true
this
.
startId
=
id
;
}
else
{
this
.
editModal
=
true
this
.
curId
=
id
}
components
:
{
Edit
,
StartEdit
},
handleClose
()
{
this
.
$emit
(
'on-close'
)
props
:
{
eid
:
String
},
cancel
()
{
this
.
editModal
=
false
this
.
startModal
=
false
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
addOk
()
{
this
.
curId
=
0
this
.
editModal
=
false
this
.
startId
=
0
this
.
startModal
=
false
this
.
load
(
this
.
eid
)
mounted
()
{
this
.
load
(
this
.
eid
)
},
l
(
key
)
{
key
=
'instance'
+
'.'
+
key
return
this
.
$t
(
key
)
}
},
watch
:
{
eid
(
v
)
{
if
(
v
!=
0
)
{
this
.
load
(
v
)
}
methods
:
{
load
(
v
)
{
//alert(v)
Api
.
detail
({
id
:
v
}).
then
((
r
)
=>
{
this
.
nodes
=
r
.
result
.
nodes
// this.$emit('on-load')
})
},
edit
(
id
,
i
)
{
if
(
i
==
0
)
{
this
.
startModal
=
true
this
.
startId
=
id
;
}
else
{
this
.
editModal
=
true
this
.
curId
=
id
}
},
handleClose
()
{
this
.
$emit
(
'on-close'
)
},
cancel
()
{
this
.
editModal
=
false
this
.
startModal
=
false
},
addOk
()
{
this
.
curId
=
0
this
.
editModal
=
false
this
.
startId
=
0
this
.
startModal
=
false
this
.
load
(
this
.
eid
)
},
l
(
key
)
{
key
=
'instance'
+
'.'
+
key
return
this
.
$t
(
key
)
}
},
watch
:
{
eid
(
v
)
{
if
(
v
!=
0
)
{
this
.
load
(
v
)
}
}
}
}
}
</
script
>
<
style
lang=
"less"
>
.Design {
background: white;
padding: 20px 50px;
.node {
.title {
font-size: 14px;
font-weight: bold;
.auditedTime {
font-size: 12px;
color: #ddd;
}
background: white;
padding: 20px 50px;
.node {
.title {
font-size: 14px;
font-weight: bold;
.auditedTime {
font-size: 12px;
color: #ddd;
}
}
}
}
}
</
style
>
\ No newline at end of file
</
style
>
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