From a1efea27641aab6953774a8188e32006ac8c63dd Mon Sep 17 00:00:00 2001
From: "LAPTOP-R6EHHS26\\86155" <2217640373@qq.com>
Date: Wed, 20 Dec 2023 18:05:52 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9C=8B=E6=9D=BF=E7=BB=9F?=
=?UTF-8?q?=E8=AE=A1=E7=BB=B4=E5=BA=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/kanban/quality.js | 4 +-
src/views/kanban/dailyoutput/index.vue | 1 +
src/views/kanban/quality/kanban1.vue | 54 +++++++++++++++++++-------
src/views/kanban/quality/kanban2.vue | 48 ++++++++++++++++++-----
src/views/kanban/quality/kanban3.vue | 48 +++++++++++++++++------
5 files changed, 119 insertions(+), 36 deletions(-)
diff --git a/src/api/kanban/quality.js b/src/api/kanban/quality.js
index 404ab96..4e9d7c0 100644
--- a/src/api/kanban/quality.js
+++ b/src/api/kanban/quality.js
@@ -11,8 +11,8 @@ export function getBoardFactory(data) {
export function getDictData(data) {
return request({
url: '/quality/qcInterface/getDictData',
- method: 'post',
- data: data
+ method: 'get',
+ params: data
});
}
// 来料--订单异常信息
diff --git a/src/views/kanban/dailyoutput/index.vue b/src/views/kanban/dailyoutput/index.vue
index 90fdfdf..0fde936 100644
--- a/src/views/kanban/dailyoutput/index.vue
+++ b/src/views/kanban/dailyoutput/index.vue
@@ -226,6 +226,7 @@ export default {
colorlist: ["#005aff", "#f8b551"],
datetime: null,
time1: null,
+ RefreshTime:null,
};
},
created() {},
diff --git a/src/views/kanban/quality/kanban1.vue b/src/views/kanban/quality/kanban1.vue
index b6c56bd..79668a1 100644
--- a/src/views/kanban/quality/kanban1.vue
+++ b/src/views/kanban/quality/kanban1.vue
@@ -22,13 +22,13 @@
-
+
+
+
@@ -176,9 +176,10 @@ import {
getProMonthNoOk,
getLineDayNoOk,
getMonthOfYearContrast,
+ getDictData,
} from "@/api/kanban/quality";
import {
- getDeviceRefreshTime,
+ getDeviceRefreshTime,
} from "@/api/kanban/equipment";
import * as echarts from "echarts";
import moment from "moment";
@@ -224,6 +225,8 @@ export default {
Statistics: {},
Qualitylist: [],
seriesmyChart5: [],
+ dictDatatype: [],
+ RefreshTime: null,
};
},
created() { },
@@ -256,8 +259,8 @@ export default {
if (response.data) {
_this.getLineList = response.data;
_this.selectxt = _this.getLineList[0].parentName;
- this.getdatalist()
- this.initChart1()
+
+ this.getDictData()
this.getDeviceRefreshTime()
}
});
@@ -275,10 +278,27 @@ export default {
}
});
},
+ getDictData() {
+ const _this = this;
+ getDictData(
+ {
+ dictType: 'static_dims',
+ }
+ ).then((response) => {
+ if (response) {
+ console.log(response)
+ this.dictDatatype = response
+ _this.selectxtclasses = _this.dictDatatype[0].ymdType;
+ this.getDeviceRefreshTime()
+ this.getdatalist()
+ this.initChart1()
+ }
+ });
+ },
getdatalist() {
const _this = this;
getProduceStaticInfo({
- ymdType: '统计维度',
+ ymdType: moment().format(_this.selectxtclasses),
typeCode: 'material',
factoryCode: 'ds_' + _this.selectxt,
}).then((response) => {
@@ -298,7 +318,7 @@ export default {
});
getCheckProjectsPie({
typeCode: 'produce',
- ymdType: moment().format('DD'),
+ ymdType: moment().format(_this.selectxtclasses),
factoryCode: 'ds_' + _this.selectxt,
}).then((response) => {
if (response) {
@@ -1707,7 +1727,15 @@ export default {
this.getdatalist()
this.initChart1()
},
-
+ selectline2() {
+ const _this = this;
+ this.optionDatalist1 = [];
+ this.optionDatalist2 = [];
+ this.optionDatalist3 = [];
+ this.optionDatalist4 = [];
+ this.getdatalist()
+ this.initChart1()
+ },
//左侧第一个选择类型下拉框 回调函数
},
};
diff --git a/src/views/kanban/quality/kanban2.vue b/src/views/kanban/quality/kanban2.vue
index 3903e14..277c299 100644
--- a/src/views/kanban/quality/kanban2.vue
+++ b/src/views/kanban/quality/kanban2.vue
@@ -22,6 +22,13 @@
+
+
+
@@ -161,7 +168,7 @@ import {
getCheckProjectsPie,
getSupplierBadTOP5,
getSupplierNoOkList,
- getSupplierTaskList,
+ getDictData,
} from "@/api/kanban/quality";
import {
getDeviceRefreshTime,
@@ -234,7 +241,8 @@ export default {
}
],
-
+ RefreshTime:null,
+ dictDatatype:[],
};
},
created() { },
@@ -268,8 +276,7 @@ export default {
if (response.data) {
_this.getLineList = response.data;
_this.selectxt = _this.getLineList[0].parentName;
- _this.getdatalist()
- _this.getDeviceRefreshTime()
+ _this.getDictData()
}
});
},
@@ -285,10 +292,26 @@ export default {
}
});
},
+ getDictData() {
+ const _this = this;
+ getDictData(
+ {
+ dictType: 'static_dims',
+ }
+ ).then((response) => {
+ if (response) {
+ console.log(response)
+ this.dictDatatype = response
+ _this.selectxtclasses = _this.dictDatatype[0].ymdType;
+ _this.getdatalist()
+ _this.getDeviceRefreshTime()
+ }
+ });
+ },
getdatalist() {
const _this = this;
getOverallInfo({
- ymdType: '统计维度',
+ ymdType: moment().format(_this.selectxtclasses),
typeCode: 'material',
factoryCode: 'ds_' + _this.selectxt,
}).then((response) => {
@@ -297,7 +320,7 @@ export default {
}
});
getCheckProjectsPie({
- ymdType: '统计维度',
+ ymdType: moment().format(_this.selectxtclasses),
typeCode: 'material',
factoryCode: 'ds_' + _this.selectxt,
}).then((response) => {
@@ -313,7 +336,7 @@ export default {
}
});
getSupplierBadTOP5({
- ymdType: '统计维度',
+ ymdType: moment().format(_this.selectxtclasses),
typeCode: 'material',
factoryCode: 'ds_' + _this.selectxt,
}).then((response) => {
@@ -336,7 +359,7 @@ export default {
});
this.orderdetail = []
getSupplierNoOkList({
- ymdType: '统计维度',
+ ymdType: moment().format(_this.selectxtclasses),
typeCode: 'material',
factoryCode: 'ds_' + _this.selectxt,
}).then((response) => {
@@ -964,7 +987,14 @@ export default {
this.optionDatalist4 = [];
_this.getdatalist(_this.selectxt)
},
-
+ selectline2() {
+ const _this = this;
+ this.optionDatalist1 = [];
+ this.optionDatalist2 = [];
+ this.optionDatalist3 = [];
+ this.optionDatalist4 = [];
+ _this.getdatalist(_this.selectxt)
+ },
//左侧第一个选择类型下拉框 回调函数
},
};
diff --git a/src/views/kanban/quality/kanban3.vue b/src/views/kanban/quality/kanban3.vue
index a860075..95d62ec 100644
--- a/src/views/kanban/quality/kanban3.vue
+++ b/src/views/kanban/quality/kanban3.vue
@@ -120,10 +120,11 @@