Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
49d8016b
Commit
49d8016b
authored
Aug 05, 2021
by
张洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改审批失败的提示语
parent
aeac645c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
66 deletions
+73
-66
src/pages/workbench/fwgl/approval_service_detail.vue
src/pages/workbench/fwgl/approval_service_detail.vue
+73
-66
No files found.
src/pages/workbench/fwgl/approval_service_detail.vue
View file @
49d8016b
...
@@ -53,7 +53,10 @@
...
@@ -53,7 +53,10 @@
>
>
<el-form-item
prop=
"result"
>
<el-form-item
prop=
"result"
>
<p
class=
"formname"
>
审批结果:
</p>
<p
class=
"formname"
>
审批结果:
</p>
<el-select
v-model=
"form.result"
placeholder=
"请选择"
>
<el-select
v-model=
"form.result"
placeholder=
"请选择"
>
<el-option
<el-option
v-for=
"item in resultoptions"
v-for=
"item in resultoptions"
:key=
"item.value"
:key=
"item.value"
...
@@ -71,10 +74,14 @@
...
@@ -71,10 +74,14 @@
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
class=
"btnsty"
>
<el-form-item
class=
"btnsty"
>
<el-button
@
click=
"onSubmit('form')"
class=
"right"
<el-button
>
提交
</el-button
@
click=
"onSubmit('form')"
>
class=
"right"
<el-button
class=
"right"
@
click=
"backpage"
>
取消
</el-button>
>
提交
</el-button>
<el-button
class=
"right"
@
click=
"backpage"
>
取消
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
@@ -97,13 +104,13 @@ export default {
...
@@ -97,13 +104,13 @@ export default {
serviceHeader
,
serviceHeader
,
infoList
,
infoList
,
tableUm
,
tableUm
,
processCard
,
processCard
},
},
data
()
{
data
()
{
return
{
return
{
form
:
{
form
:
{
result
:
""
,
result
:
""
,
option
:
""
,
option
:
""
},
},
id
:
""
,
id
:
""
,
zd_table_arr
:
[],
zd_table_arr
:
[],
...
@@ -116,20 +123,20 @@ export default {
...
@@ -116,20 +123,20 @@ export default {
min
:
0
,
min
:
0
,
max
:
200
,
max
:
200
,
message
:
"
长度应小于200个字符
"
,
message
:
"
长度应小于200个字符
"
,
trigger
:
"
blur
"
,
trigger
:
"
blur
"
}
,
}
]
,
]
},
},
resultvalue
:
""
,
resultvalue
:
""
,
resultoptions
:
[
resultoptions
:
[
{
{
label
:
"
通过
"
,
label
:
"
通过
"
,
value
:
1
,
value
:
1
},
},
{
{
label
:
"
不通过
"
,
label
:
"
不通过
"
,
value
:
-
1
,
value
:
-
1
}
,
}
],
],
approval_arr
:
[
approval_arr
:
[
[],
[],
...
@@ -157,39 +164,39 @@ export default {
...
@@ -157,39 +164,39 @@ export default {
// },
// },
// ]
// ]
// },
// },
]
,
]
],
],
header_arr
:
[
header_arr
:
[
{
{
prop
:
"
name
"
,
prop
:
"
name
"
,
label
:
"
字段名称
"
,
label
:
"
字段名称
"
,
minWidth
:
"
20%
"
,
minWidth
:
"
20%
"
,
align
:
"
left
"
,
align
:
"
left
"
},
},
{
{
prop
:
"
field_type
"
,
prop
:
"
field_type
"
,
label
:
"
字段编码
"
,
label
:
"
字段编码
"
,
width
:
"
100px
"
,
width
:
"
100px
"
,
align
:
"
center
"
,
align
:
"
center
"
},
},
{
{
prop
:
"
show_type
"
,
prop
:
"
show_type
"
,
label
:
"
字段类型
"
,
label
:
"
字段类型
"
,
width
:
"
100px
"
,
width
:
"
100px
"
,
align
:
"
center
"
,
align
:
"
center
"
},
},
{
{
prop
:
"
descript
"
,
prop
:
"
descript
"
,
label
:
"
字段说明
"
,
label
:
"
字段说明
"
,
minWidth
:
"
30%
"
,
minWidth
:
"
30%
"
,
align
:
"
left
"
,
align
:
"
left
"
},
},
{
{
prop
:
"
example
"
,
prop
:
"
example
"
,
label
:
"
字段示例数值
"
,
label
:
"
字段示例数值
"
,
width
:
"
120px
"
,
width
:
"
120px
"
,
align
:
"
left
"
,
align
:
"
left
"
}
,
}
],
],
color_arr
:
[
"
#e15260
"
,
'
"#ef9433
'
,
"
#515fe7
"
],
color_arr
:
[
"
#e15260
"
,
'
"#ef9433
'
,
"
#515fe7
"
],
service_header_arr
:
{
service_header_arr
:
{
...
@@ -200,25 +207,25 @@ export default {
...
@@ -200,25 +207,25 @@ export default {
first
:
[
first
:
[
{
{
name
:
"
服务类型
"
,
name
:
"
服务类型
"
,
text
:
""
,
text
:
""
},
},
{
{
name
:
"
服务领域
"
,
name
:
"
服务领域
"
,
text
:
""
,
text
:
""
},
},
{
{
name
:
"
审批状态
"
,
name
:
"
审批状态
"
,
text
:
""
,
text
:
""
,
color
:
"
#ef9433
"
,
color
:
"
#ef9433
"
}
,
}
],
],
second
:
[
second
:
[
{
{
name
:
"
申请时间
"
,
name
:
"
申请时间
"
,
text
:
""
,
text
:
""
}
,
}
],
],
fixed
:
false
,
fixed
:
false
},
},
service_arr
:
[
"
服务申请信息
"
,
"
服务审批
"
],
service_arr
:
[
"
服务申请信息
"
,
"
服务审批
"
],
now_service
:
0
,
now_service
:
0
,
...
@@ -229,86 +236,86 @@ export default {
...
@@ -229,86 +236,86 @@ export default {
title
:
"
审批信息:
"
,
title
:
"
审批信息:
"
,
prop
:
"
title
"
,
prop
:
"
title
"
,
type
:
"
solt
"
,
type
:
"
solt
"
,
solt_name
:
"
sp_card
"
,
solt_name
:
"
sp_card
"
},
},
{
{
title
:
"
一级审批:
"
,
title
:
"
一级审批:
"
,
prop
:
"
title
"
,
prop
:
"
title
"
,
type
:
"
solt
"
,
type
:
"
solt
"
,
solt_name
:
"
sp_result
"
,
solt_name
:
"
sp_result
"
}
,
}
],
],
[
[
{
{
title
:
"
审批信息:
"
,
title
:
"
审批信息:
"
,
prop
:
"
title
"
,
prop
:
"
title
"
,
type
:
"
solt
"
,
type
:
"
solt
"
,
solt_name
:
"
sp_card
"
,
solt_name
:
"
sp_card
"
},
},
{
{
title
:
"
二级审批:
"
,
title
:
"
二级审批:
"
,
prop
:
"
title
"
,
prop
:
"
title
"
,
type
:
"
solt
"
,
type
:
"
solt
"
,
solt_name
:
"
sp_result
"
,
solt_name
:
"
sp_result
"
}
,
}
]
,
]
],
],
list_arr
:
[
list_arr
:
[
{
{
title
:
"
申请单位:
"
,
title
:
"
申请单位:
"
,
info
:
""
,
info
:
""
},
},
{
{
title
:
"
申请人:
"
,
title
:
"
申请人:
"
,
info
:
""
,
info
:
""
},
},
{
{
title
:
"
申请人联系电话:
"
,
title
:
"
申请人联系电话:
"
,
info
:
""
,
info
:
""
},
},
{
{
title
:
"
业务系统名称:
"
,
title
:
"
业务系统名称:
"
,
info
:
""
,
info
:
""
},
},
{
{
title
:
"
业务系统访问地址:
"
,
title
:
"
业务系统访问地址:
"
,
info
:
""
,
info
:
""
},
},
{
{
title
:
"
场景描述:
"
,
title
:
"
场景描述:
"
,
info
:
""
,
info
:
""
},
},
{
{
title
:
"
申请文件:
"
,
title
:
"
申请文件:
"
,
info
:
""
,
info
:
""
,
url
:
""
,
url
:
""
,
type
:
"
down
"
,
type
:
"
down
"
},
},
{
{
title
:
"
申请内容:
"
,
title
:
"
申请内容:
"
,
info
:
""
,
info
:
""
,
type
:
"
solt
"
,
type
:
"
solt
"
,
solt_name
:
"
zd_table
"
,
solt_name
:
"
zd_table
"
},
},
{
{
title
:
"
申请时长:
"
,
title
:
"
申请时长:
"
,
info
:
""
,
info
:
""
},
},
{
{
title
:
"
申请规格:
"
,
title
:
"
申请规格:
"
,
info
:
""
,
info
:
""
},
},
{
{
title
:
"
总价:
"
,
title
:
"
总价:
"
,
info
:
""
,
info
:
""
}
,
}
]
,
]
};
};
},
},
watch
:
{},
watch
:
{},
computed
:
{
computed
:
{
...
mapGetters
([
"
level
"
]),
...
mapGetters
([
"
level
"
]),
...
mapState
([
"
userInfo
"
])
,
...
mapState
([
"
userInfo
"
])
},
},
created
()
{
created
()
{
console
.
log
(
this
.
level
);
console
.
log
(
this
.
level
);
...
@@ -334,7 +341,7 @@ export default {
...
@@ -334,7 +341,7 @@ export default {
});
});
},
},
onSubmit
(
formName
)
{
onSubmit
(
formName
)
{
this
.
$refs
[
formName
].
validate
(
(
valid
)
=>
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
set_approval
();
this
.
set_approval
();
}
else
{
}
else
{
...
@@ -351,18 +358,18 @@ export default {
...
@@ -351,18 +358,18 @@ export default {
.
post
(
"
/apaas/service/v3/service/approval/applied/approval
"
,
{
.
post
(
"
/apaas/service/v3/service/approval/applied/approval
"
,
{
apply_id
:
this
.
id
,
apply_id
:
this
.
id
,
state
:
this
.
form
.
result
,
state
:
this
.
form
.
result
,
message
:
this
.
form
.
option
,
message
:
this
.
form
.
option
})
})
.
then
(
(
res
)
=>
{
.
then
(
res
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
if
(
res
.
data
.
success
)
{
if
(
res
.
data
.
success
)
{
this
.
$message
.
success
(
"
审批成功
"
);
this
.
$message
.
success
(
"
审批成功
"
);
this
.
$router
.
back
(
-
1
);
this
.
$router
.
back
(
-
1
);
}
else
{
}
else
{
this
.
$message
.
error
(
"
审批失败
"
);
this
.
$message
.
error
(
"
审批失败
,
"
+
res
.
data
.
errMsg
);
}
}
})
})
.
catch
(
(
res
)
=>
{
.
catch
(
res
=>
{
this
.
$message
.
error
(
res
);
this
.
$message
.
error
(
res
);
});
});
},
},
...
@@ -374,7 +381,7 @@ export default {
...
@@ -374,7 +381,7 @@ export default {
.
get
(
.
get
(
`/apaas/service/v3/service/approval/applied?apply_id=
${
this
.
$route
.
params
.
id
}
`
`/apaas/service/v3/service/approval/applied?apply_id=
${
this
.
$route
.
params
.
id
}
`
)
)
.
then
(
(
response
)
=>
{
.
then
(
response
=>
{
console
.
log
(
response
.
data
.
data
);
console
.
log
(
response
.
data
.
data
);
if
(
!
response
.
data
.
success
)
{
if
(
!
response
.
data
.
success
)
{
this
.
$message
.
error
(
response
.
data
.
errMsg
);
this
.
$message
.
error
(
response
.
data
.
errMsg
);
...
@@ -487,7 +494,7 @@ export default {
...
@@ -487,7 +494,7 @@ export default {
// console.log(data)
// console.log(data)
if
(
data
.
data_service_type1
==
36
)
{
if
(
data
.
data_service_type1
==
36
)
{
this
.
list_arr
.
splice
(
6
,
2
);
this
.
list_arr
.
splice
(
6
,
2
);
this
.
service_arr
=
[
"
产品申请信息
"
,
"
产品审批
"
]
this
.
service_arr
=
[
"
产品申请信息
"
,
"
产品审批
"
]
;
}
}
this
.
id
=
data
.
service_apply_info
.
id
;
this
.
id
=
data
.
service_apply_info
.
id
;
if
(
data
.
service_apply_info
.
approval_status
!==
0
)
{
if
(
data
.
service_apply_info
.
approval_status
!==
0
)
{
...
@@ -503,7 +510,7 @@ export default {
...
@@ -503,7 +510,7 @@ export default {
this
.
servicead_arr
[
this
.
now_user
].
splice
(
0
,
1
);
this
.
servicead_arr
[
this
.
now_user
].
splice
(
0
,
1
);
}
}
if
(
data
.
service_apply_info
.
approval_process
)
{
if
(
data
.
service_apply_info
.
approval_process
)
{
data
.
service_apply_info
.
approval_process
.
forEach
(
(
e
)
=>
{
data
.
service_apply_info
.
approval_process
.
forEach
(
e
=>
{
this
.
approval_arr
[
this
.
now_user
].
push
({
this
.
approval_arr
[
this
.
now_user
].
push
({
title
:
e
.
level
==
1
?
"
一级审批
"
:
"
二级审批
"
,
title
:
e
.
level
==
1
?
"
一级审批
"
:
"
二级审批
"
,
result
:
result
:
...
@@ -511,7 +518,7 @@ export default {
...
@@ -511,7 +518,7 @@ export default {
?
"
审批未通过
"
?
"
审批未通过
"
:
e
.
status
==
0
:
e
.
status
==
0
?
"
审批中
"
?
"
审批中
"
:
"
审批通过
"
,
:
"
审批通过
"
});
});
if
(
e
.
status
!==
0
)
{
if
(
e
.
status
!==
0
)
{
this
.
approval_arr
[
this
.
now_user
][
this
.
approval_arr
[
this
.
now_user
][
...
@@ -519,22 +526,22 @@ export default {
...
@@ -519,22 +526,22 @@ export default {
][
"
arr
"
]
=
[
][
"
arr
"
]
=
[
{
{
title
:
"
审批时间:
"
,
title
:
"
审批时间:
"
,
info
:
e
.
approval_time
.
split
(
"
+
"
)[
0
].
replace
(
"
T
"
,
"
"
)
,
info
:
e
.
approval_time
.
split
(
"
+
"
)[
0
].
replace
(
"
T
"
,
"
"
)
},
},
{
{
title
:
"
审批单位:
"
,
title
:
"
审批单位:
"
,
info
:
e
.
user_info
.
department_name
info
:
e
.
user_info
.
department_name
?
e
.
user_info
.
department_name
?
e
.
user_info
.
department_name
:
"
无
"
,
:
"
无
"
},
},
{
{
title
:
"
审批人:
"
,
title
:
"
审批人:
"
,
info
:
e
.
user_info
.
user_name
,
info
:
e
.
user_info
.
user_name
},
},
{
{
title
:
"
审批意见:
"
,
title
:
"
审批意见:
"
,
info
:
e
.
comments
,
info
:
e
.
comments
}
,
}
];
];
}
}
});
});
...
@@ -544,14 +551,14 @@ export default {
...
@@ -544,14 +551,14 @@ export default {
?
JSON
.
parse
(
data
.
service_apply_info
.
res_fields
)
?
JSON
.
parse
(
data
.
service_apply_info
.
res_fields
)
:
[];
:
[];
if
(
data
.
data_service_type1
!=
5
)
{
if
(
data
.
data_service_type1
!=
5
)
{
this
.
list_arr
.
splice
(
7
,
1
)
this
.
list_arr
.
splice
(
7
,
1
)
;
}
}
})
})
.
catch
(
function
(
response
)
{
.
catch
(
function
(
response
)
{
this
.
$message
.
error
(
"
请求失败
"
);
this
.
$message
.
error
(
"
请求失败
"
);
});
});
}
,
}
}
,
}
};
};
</
script
>
</
script
>
...
...
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