From 5886bc93e19475e68651b5883670c84bae536430 Mon Sep 17 00:00:00 2001
From: FCD <2453864257@qq.com>
Date: Mon, 8 Dec 2025 11:25:12 +0800
Subject: [PATCH] =?UTF-8?q?=E7=99=BD=E5=9D=AF=E6=A3=80=E9=AA=8C=E5=90=8E?=
=?UTF-8?q?=E5=8F=B0=E6=8A=A5=E8=A1=A8=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/quality/report/bpDefect/index.vue | 10 +++---
.../quality/report/bpDefectItem/index.vue | 29 ++++++++---------
.../quality/report/bpDefectItemPC/index.vue | 31 ++++++++-----------
3 files changed, 31 insertions(+), 39 deletions(-)
diff --git a/src/views/quality/report/bpDefect/index.vue b/src/views/quality/report/bpDefect/index.vue
index d9c26fe..fd21edd 100644
--- a/src/views/quality/report/bpDefect/index.vue
+++ b/src/views/quality/report/bpDefect/index.vue
@@ -32,11 +32,11 @@
-
+
-
+
-
+
@@ -126,7 +126,7 @@ export default {
return
}
- this.loading = true;
+ this.loading = false;
//获取Table表头
getMonthOfDateTitle(this.queryParams).then(response => {
this.showTitles = [];
@@ -139,7 +139,7 @@ export default {
});
//获取Table数据
getMonthOfDataDefect(this.queryParams).then(response => {
- this.hourProList = response;
+ this.hourProList = response.data;
this.loading = false;
});
diff --git a/src/views/quality/report/bpDefectItem/index.vue b/src/views/quality/report/bpDefectItem/index.vue
index abf5451..f30406e 100644
--- a/src/views/quality/report/bpDefectItem/index.vue
+++ b/src/views/quality/report/bpDefectItem/index.vue
@@ -38,14 +38,14 @@
- {{form.materialName}}
+ 白坯
{{form.sampleQty}}
- {{form.workCenter}}
+ 白坯车间
{{form.noOkQty}}
- {{form.noOkNumRate}}
- {{form.okNumRate}}
+ {{form.noOkRate}}%
+ {{form.okRate}}%
@@ -59,7 +59,7 @@
-
+
@@ -252,17 +252,14 @@ export default {
},
async getTbody(){
this.loading=true
- this.$nextTick(()=>{
- this.$refs.tables.doLayout()//对table进行重新布局
- })
- let _this = this
+ let _this = this
getDefectItemLine(this.queryParams).then(response => {
- _this.form = response;
- _this.getEcharts(response.supplierCodes,response.columns1,response.columns2)
+ console.log(response.data)
+ _this.form = response.data;
+ _this.getEcharts(response.data.xData,response.data.yDataLeft,response.data.yDataRight)
});
},
- getEcharts(xData,yDataLeft,yDdataRight){
- var _this=this
+ getEcharts(xData,yDataLeft,yDataRight){
var chartDom = document.getElementById('echartss');
var myChart = echarts.init(chartDom);
var option;
@@ -320,12 +317,12 @@ export default {
name: '累计不良率',
type: 'line',
yAxisIndex: 1,
- data: yDdataRight //[15, 25, 33, 38, 40]
+ data: yDataRight //[15, 25, 33, 38, 40]
}
]
};
- option && myChart.setOption(option);
+ option && myChart.setOption(option);
},
// 生成表头序号
@@ -339,4 +336,4 @@ export default {
.my-description-item1 {
width: 200px; /* 或者你想要的任何宽度 */
}
-
\ No newline at end of file
+
diff --git a/src/views/quality/report/bpDefectItemPC/index.vue b/src/views/quality/report/bpDefectItemPC/index.vue
index a256178..b9d8fc4 100644
--- a/src/views/quality/report/bpDefectItemPC/index.vue
+++ b/src/views/quality/report/bpDefectItemPC/index.vue
@@ -34,18 +34,18 @@
- {{form.column080090}} 年 {{form.column090100}}月 黑蚊香白坯性能不良排列图
+ {{queryParams.yearMonthDate}} 黑蚊香白坯性能不良排列图
- {{form.materialName}}
+ 白坯
{{form.sampleQty}}
- {{form.workCenter}}
+ 白坯车间
{{form.noOkQty}}
- {{form.noOkNumRate}}
- {{form.okNumRate}}
+ {{form.noOkRate}}
+ {{form.okRate}}
@@ -59,7 +59,7 @@
-
+
@@ -246,22 +246,17 @@ export default {
handleClick(){
- this.$nextTick(()=>{
- this.$refs.tables.doLayout()//对table进行重新布局
- })
+
},
async getTbody(){
this.loading=true
- this.$nextTick(()=>{
- this.$refs.tables.doLayout()//对table进行重新布局
- })
- let _this = this
+ let _this = this
getDefectItemLinePC(this.queryParams).then(response => {
_this.form = response;
- _this.getEcharts(response.supplierCodes,response.columns1,response.columns2)
+ _this.getEcharts(response.xData,response.yDataLeft, response.yDataRight)
});
},
- getEcharts(xData,yDataLeft,yDdataRight){
+ getEcharts(xData,yDataLeft,yDataRight){
var _this=this
var chartDom = document.getElementById('echartss');
var myChart = echarts.init(chartDom);
@@ -320,12 +315,12 @@ export default {
name: '累计不良率',
type: 'line',
yAxisIndex: 1,
- data: yDdataRight //[15, 25, 33, 38, 40]
+ data: yDataRight //[15, 25, 33, 38, 40]
}
]
};
- option && myChart.setOption(option);
+ option && myChart.setOption(option);
},
// 生成表头序号
@@ -339,4 +334,4 @@ export default {
.my-description-item1 {
width: 200px; /* 或者你想要的任何宽度 */
}
-
\ No newline at end of file
+