2023-06-30 16:29:32 +08:00
|
|
|
<!--
|
|
|
|
* @Author: zwq
|
|
|
|
* @Date: 2021-11-18 14:16:25
|
|
|
|
* @LastEditors: zwq
|
2023-07-04 09:26:40 +08:00
|
|
|
* @LastEditTime: 2023-07-03 09:02:50
|
2023-06-30 16:29:32 +08:00
|
|
|
* @Description:
|
|
|
|
-->
|
|
|
|
<template>
|
2023-07-04 09:26:40 +08:00
|
|
|
<el-descriptions title="">
|
2023-06-30 16:29:32 +08:00
|
|
|
<el-descriptions-item label="标题">{{ dataInfo.title }}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="产品">{{ dataInfo.productName }}</el-descriptions-item>
|
2023-07-04 09:26:40 +08:00
|
|
|
<el-descriptions-item label="发生日期">{{
|
|
|
|
dataInfo.occurrenceDate | timeFormatter
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="配套产品/系统">{{
|
|
|
|
dataInfo.supportProducts
|
|
|
|
}}</el-descriptions-item>
|
2023-06-30 16:29:32 +08:00
|
|
|
<el-descriptions-item label="启动人">{{ dataInfo.userName }}</el-descriptions-item>
|
2023-07-04 09:26:40 +08:00
|
|
|
<el-descriptions-item label="8D类型">{{
|
|
|
|
eightDisciplineType[dataInfo.eightDisciplineType]
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
</el-descriptions>
|
2023-06-30 16:29:32 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import codeFilter from "@/filters/code-filter";
|
|
|
|
import { timeFormatter } from "@/filters/code-filter";
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
2023-07-04 09:26:40 +08:00
|
|
|
dataInfo: "",
|
|
|
|
eightDisciplineType: {
|
|
|
|
1: "客诉问题",
|
|
|
|
2: "重大质量问题",
|
|
|
|
0: "重复发生问题",
|
|
|
|
},
|
|
|
|
};
|
2023-06-30 16:29:32 +08:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
init(id) {
|
|
|
|
this.$nextTick(() => {
|
2023-07-04 09:26:40 +08:00
|
|
|
this.$http
|
|
|
|
.get(`/code/startEightDiscipline/${id}`)
|
|
|
|
.then(({ data: res }) => {
|
|
|
|
this.dataListLoading = false;
|
|
|
|
if (res.code !== 0) {
|
|
|
|
this.dataInfo = "";
|
|
|
|
return this.$message.error(res.msg);
|
|
|
|
}
|
|
|
|
this.dataInfo = res.data;
|
|
|
|
})
|
|
|
|
.catch(() => {});
|
2023-06-30 16:29:32 +08:00
|
|
|
});
|
|
|
|
},
|
2023-07-04 09:26:40 +08:00
|
|
|
},
|
|
|
|
};
|
2023-06-30 16:29:32 +08:00
|
|
|
</script>
|