Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Chatopera OpenSource
/
ferry_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
037d9634
authored
Jul 24, 2020
by
Mr. Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加工单优先级。
parent
df95094c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
81 additions
and
6 deletions
src/views/process/list/all.vue
src/views/process/list/create.vue
src/views/process/list/handle.vue
src/views/process/list/my-create.vue
src/views/process/list/related.vue
src/views/process/list/upcoming.vue
src/views/process/list/all.vue
View file @
037d9634
...
...
@@ -31,6 +31,19 @@
<span
v-if=
"scope.row.is_end===0"
>
{{
scope
.
row
.
principals
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"优先级"
:show-overflow-tooltip=
"true"
width=
"120"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.priority===2"
>
<el-tag
type=
"warning"
>
紧急
</el-tag>
</span>
<span
v-else-if=
"scope.row.priority===3"
>
<el-tag
type=
"danger"
>
非常紧急
</el-tag>
</span>
<span
v-else
>
<el-tag
type=
"success"
>
正常
</el-tag>
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"是否结束"
:show-overflow-tooltip=
"true"
width=
"80"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-tag
v-if=
"scope.row.is_end===0"
size=
"mini"
type=
"success"
>
否
</el-tag>
...
...
src/views/process/list/create.vue
View file @
037d9634
...
...
@@ -22,9 +22,16 @@
</div>
<div
class=
"text item"
>
<el-form
ref=
"ruleForm"
:model=
"ruleForm"
:rules=
"rules"
label-width=
"100px"
>
<el-form-item
label=
"标题
"
prop=
"title"
style=
"margin-bottom: 0
"
>
<el-form-item
label=
"标题
:"
prop=
"title"
style=
"margin-bottom: 13px
"
>
<el-input
v-model=
"ruleForm.title"
size=
"small"
/>
</el-form-item>
<el-form-item
label=
"优先级:"
prop=
"priority"
style=
"margin-bottom: 0"
>
<el-radio-group
v-model=
"ruleForm.priority"
size=
"small"
>
<el-radio
:label=
"1"
>
正常
</el-radio>
<el-radio
:label=
"2"
>
紧急
</el-radio>
<el-radio
:label=
"3"
>
非常紧急
</el-radio>
</el-radio-group>
</el-form-item>
</el-form>
</div>
</el-card>
...
...
@@ -80,6 +87,7 @@ export default {
processStructureValue
:
{},
ruleForm
:
{
title
:
''
,
priority
:
1
,
process
:
''
,
classify
:
''
,
state
:
[],
...
...
@@ -95,6 +103,9 @@ export default {
rules
:
{
title
:
[
{
required
:
true
,
message
:
'请输入工单标题'
,
trigger
:
'blur'
}
],
priority
:
[
{
required
:
true
,
message
:
'请选择工单优先级'
,
trigger
:
'blur'
}
]
},
remoteFunc
:
{
...
...
@@ -166,6 +177,7 @@ export default {
Promise
.
all
(
promiseList
).
then
(
values
=>
{
this
.
ruleForm
.
source
=
this
.
processStructureValue
.
nodes
[
this
.
active
].
id
this
.
ruleForm
.
tpls
.
form_data
=
values
console
.
log
(
this
.
ruleForm
)
createWorkOrder
(
this
.
ruleForm
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
$router
.
push
({
path
:
'/process/upcoming'
})
...
...
src/views/process/list/handle.vue
View file @
037d9634
...
...
@@ -31,8 +31,19 @@
</div>
<div
class=
"text item"
>
<el-form
label-width=
"100px"
>
<el-form-item
label=
"标题: "
style=
"margin-bottom: 0"
>
<span>
{{ workOrderTitle }}
</span>
<el-form-item
label=
"标题:"
style=
"margin-bottom: 5px"
>
<span>
{{ processStructureValue.workOrder.title }}
</span>
</el-form-item>
<el-form-item
label=
"优先级:"
style=
"margin-bottom: 0"
>
<span
v-if=
"processStructureValue.workOrder.priority===2"
>
<el-tag
type=
"warning"
>
紧急
</el-tag>
</span>
<span
v-else-if=
"processStructureValue.workOrder.priority===3"
>
<el-tag
type=
"danger"
>
非常紧急
</el-tag>
</span>
<span
v-else
>
<el-tag
type=
"success"
>
正常
</el-tag>
</span>
</el-form-item>
</el-form>
</div>
...
...
@@ -126,9 +137,10 @@ export default {
alertMessage
:
''
,
nodeStepList
:
[],
circulationHistoryList
:
[],
workOrderTitle
:
''
,
activeIndex
:
0
,
processStructureValue
:
{},
processStructureValue
:
{
workOrder
:
{
title
:
''
}
},
ruleForm
:
{
title
:
''
,
process
:
''
,
...
...
@@ -164,7 +176,6 @@ export default {
workOrderId
:
this
.
$route
.
query
.
workOrderId
}).
then
(
response
=>
{
this
.
processStructureValue
=
response
.
data
this
.
workOrderTitle
=
this
.
processStructureValue
.
workOrder
.
title
this
.
circulationHistoryList
=
this
.
processStructureValue
.
circulationHistory
// 获取当前展示节点列表
...
...
src/views/process/list/my-create.vue
View file @
037d9634
...
...
@@ -31,6 +31,19 @@
<span
v-if=
"scope.row.is_end===0"
>
{{
scope
.
row
.
principals
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"优先级"
:show-overflow-tooltip=
"true"
width=
"120"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.priority===2"
>
<el-tag
type=
"warning"
>
紧急
</el-tag>
</span>
<span
v-else-if=
"scope.row.priority===3"
>
<el-tag
type=
"danger"
>
非常紧急
</el-tag>
</span>
<span
v-else
>
<el-tag
type=
"success"
>
正常
</el-tag>
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"是否结束"
:show-overflow-tooltip=
"true"
width=
"80"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-tag
v-if=
"scope.row.is_end===0"
size=
"mini"
type=
"success"
>
否
</el-tag>
...
...
src/views/process/list/related.vue
View file @
037d9634
...
...
@@ -31,6 +31,19 @@
<span
v-if=
"scope.row.is_end===0"
>
{{
scope
.
row
.
principals
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"优先级"
:show-overflow-tooltip=
"true"
width=
"120"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.priority===2"
>
<el-tag
type=
"warning"
>
紧急
</el-tag>
</span>
<span
v-else-if=
"scope.row.priority===3"
>
<el-tag
type=
"danger"
>
非常紧急
</el-tag>
</span>
<span
v-else
>
<el-tag
type=
"success"
>
正常
</el-tag>
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"是否结束"
:show-overflow-tooltip=
"true"
width=
"80"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-tag
v-if=
"scope.row.is_end===0"
size=
"mini"
type=
"success"
>
否
</el-tag>
...
...
src/views/process/list/upcoming.vue
View file @
037d9634
...
...
@@ -31,6 +31,19 @@
<span
v-if=
"scope.row.is_end===0"
>
{{
scope
.
row
.
principals
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"优先级"
:show-overflow-tooltip=
"true"
width=
"120"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.priority===2"
>
<el-tag
type=
"warning"
>
紧急
</el-tag>
</span>
<span
v-else-if=
"scope.row.priority===3"
>
<el-tag
type=
"danger"
>
非常紧急
</el-tag>
</span>
<span
v-else
>
<el-tag
type=
"success"
>
正常
</el-tag>
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"是否结束"
:show-overflow-tooltip=
"true"
width=
"80"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-tag
v-if=
"scope.row.is_end===0"
size=
"mini"
type=
"success"
>
否
</el-tag>
...
...
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