diff --git a/src/pages/workbench/fwgl/approval_service_detail.vue b/src/pages/workbench/fwgl/approval_service_detail.vue
index a0f028599d80c2be4cfafc69de9a74e79f01c325..106cf1ca23d4559e9edd932ca3f59b0b48e86e09 100644
--- a/src/pages/workbench/fwgl/approval_service_detail.vue
+++ b/src/pages/workbench/fwgl/approval_service_detail.vue
@@ -53,7 +53,10 @@
>
审批结果:
-
+
- 提交
- 取消
+ 提交
+ 取消
@@ -97,13 +104,13 @@ export default {
serviceHeader,
infoList,
tableUm,
- processCard,
+ processCard
},
data() {
return {
form: {
result: "",
- option: "",
+ option: ""
},
id: "",
zd_table_arr: [],
@@ -116,20 +123,20 @@ export default {
min: 0,
max: 200,
message: "长度应小于200个字符",
- trigger: "blur",
- },
- ],
+ trigger: "blur"
+ }
+ ]
},
resultvalue: "",
resultoptions: [
{
label: "通过",
- value: 1,
+ value: 1
},
{
label: "不通过",
- value: -1,
- },
+ value: -1
+ }
],
approval_arr: [
[],
@@ -157,39 +164,39 @@ export default {
// },
// ]
// },
- ],
+ ]
],
header_arr: [
{
prop: "name",
label: "字段名称",
minWidth: "20%",
- align: "left",
+ align: "left"
},
{
prop: "field_type",
label: "字段编码",
width: "100px",
- align: "center",
+ align: "center"
},
{
prop: "show_type",
label: "字段类型",
width: "100px",
- align: "center",
+ align: "center"
},
{
prop: "descript",
label: "字段说明",
minWidth: "30%",
- align: "left",
+ align: "left"
},
{
prop: "example",
label: "字段示例数值",
width: "120px",
- align: "left",
- },
+ align: "left"
+ }
],
color_arr: ["#e15260", '"#ef9433', "#515fe7"],
service_header_arr: {
@@ -200,25 +207,25 @@ export default {
first: [
{
name: "服务类型",
- text: "",
+ text: ""
},
{
name: "服务领域",
- text: "",
+ text: ""
},
{
name: "审批状态",
text: "",
- color: "#ef9433",
- },
+ color: "#ef9433"
+ }
],
second: [
{
name: "申请时间",
- text: "",
- },
+ text: ""
+ }
],
- fixed: false,
+ fixed: false
},
service_arr: ["服务申请信息", "服务审批"],
now_service: 0,
@@ -229,86 +236,86 @@ export default {
title: "审批信息:",
prop: "title",
type: "solt",
- solt_name: "sp_card",
+ solt_name: "sp_card"
},
{
title: "一级审批:",
prop: "title",
type: "solt",
- solt_name: "sp_result",
- },
+ solt_name: "sp_result"
+ }
],
[
{
title: "审批信息:",
prop: "title",
type: "solt",
- solt_name: "sp_card",
+ solt_name: "sp_card"
},
{
title: "二级审批:",
prop: "title",
type: "solt",
- solt_name: "sp_result",
- },
- ],
+ solt_name: "sp_result"
+ }
+ ]
],
list_arr: [
{
title: "申请单位:",
- info: "",
+ info: ""
},
{
title: "申请人:",
- info: "",
+ info: ""
},
{
title: "申请人联系电话:",
- info: "",
+ info: ""
},
{
title: "业务系统名称:",
- info: "",
+ info: ""
},
{
title: "业务系统访问地址:",
- info: "",
+ info: ""
},
{
title: "场景描述:",
- info: "",
+ info: ""
},
{
title: "申请文件:",
info: "",
url: "",
- type: "down",
+ type: "down"
},
{
title: "申请内容:",
info: "",
type: "solt",
- solt_name: "zd_table",
+ solt_name: "zd_table"
},
{
title: "申请时长:",
- info: "",
+ info: ""
},
{
title: "申请规格:",
- info: "",
+ info: ""
},
{
title: "总价:",
- info: "",
- },
- ],
+ info: ""
+ }
+ ]
};
},
watch: {},
computed: {
...mapGetters(["level"]),
- ...mapState(["userInfo"]),
+ ...mapState(["userInfo"])
},
created() {
console.log(this.level);
@@ -334,7 +341,7 @@ export default {
});
},
onSubmit(formName) {
- this.$refs[formName].validate((valid) => {
+ this.$refs[formName].validate(valid => {
if (valid) {
this.set_approval();
} else {
@@ -351,18 +358,18 @@ export default {
.post("/apaas/service/v3/service/approval/applied/approval", {
apply_id: this.id,
state: this.form.result,
- message: this.form.option,
+ message: this.form.option
})
- .then((res) => {
+ .then(res => {
console.log(res);
if (res.data.success) {
this.$message.success("审批成功");
this.$router.back(-1);
} else {
- this.$message.error("审批失败");
+ this.$message.error("审批失败," + res.data.errMsg);
}
})
- .catch((res) => {
+ .catch(res => {
this.$message.error(res);
});
},
@@ -374,7 +381,7 @@ export default {
.get(
`/apaas/service/v3/service/approval/applied?apply_id=${this.$route.params.id}`
)
- .then((response) => {
+ .then(response => {
console.log(response.data.data);
if (!response.data.success) {
this.$message.error(response.data.errMsg);
@@ -487,7 +494,7 @@ export default {
// console.log(data)
if (data.data_service_type1 == 36) {
this.list_arr.splice(6, 2);
- this.service_arr = ["产品申请信息", "产品审批"]
+ this.service_arr = ["产品申请信息", "产品审批"];
}
this.id = data.service_apply_info.id;
if (data.service_apply_info.approval_status !== 0) {
@@ -503,7 +510,7 @@ export default {
this.servicead_arr[this.now_user].splice(0, 1);
}
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({
title: e.level == 1 ? "一级审批" : "二级审批",
result:
@@ -511,7 +518,7 @@ export default {
? "审批未通过"
: e.status == 0
? "审批中"
- : "审批通过",
+ : "审批通过"
});
if (e.status !== 0) {
this.approval_arr[this.now_user][
@@ -519,22 +526,22 @@ export default {
]["arr"] = [
{
title: "审批时间:",
- info: e.approval_time.split("+")[0].replace("T", " "),
+ info: e.approval_time.split("+")[0].replace("T", " ")
},
{
title: "审批单位:",
info: e.user_info.department_name
? e.user_info.department_name
- : "无",
+ : "无"
},
{
title: "审批人:",
- info: e.user_info.user_name,
+ info: e.user_info.user_name
},
{
title: "审批意见:",
- info: e.comments,
- },
+ info: e.comments
+ }
];
}
});
@@ -544,14 +551,14 @@ export default {
? JSON.parse(data.service_apply_info.res_fields)
: [];
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("请求失败");
});
- },
- },
+ }
+ }
};