+
+
-
@@ -36,8 +36,24 @@ export default {
return {
page: "产量",
period: "日",
+ currentsStyles: '',
};
},
+ // watch: {
+ // page(val) {
+ // if (val === '产量') {
+ // console.log(val)
+ // this.currentsStyles =
+ // 'height: calc(100% + 38px)'
+ // console.log(this.currentsStyles)
+ // } else {
+ // console.log(val)
+ // this.currentsStyles = 'height:100%+38px'
+ // console.log(this.currentsStyles)
+ // }
+ // immediate: true
+ // }
+ // }
// mounted() {
// document.body.style.minHeight = "1024px";
// document.body.style.minWidth = "1550px";
@@ -54,9 +70,9 @@ export default {
padding: 16px;
background: url(../../assets/images/copilot-bg.png) 0 0 / 100% 100% no-repeat;
position: absolute;
- height: calc(100% + 38px);
left: -16px;
- top: -8px;
+ /* top: -8px; */
+ /* height: calc(100% + 38px); */
width: calc(100% + 30px);
z-index: 1001;
color: #fff;
@@ -65,6 +81,12 @@ export default {
gap: 8px;
}
+.produce{
+ height: calc(100% + 38px);
+}
+.other {
+ height: calc(100% + 240px);
+}
.copilot-footer {
/** position: absolute;
bottom: 10px; **/
diff --git a/src/views/copilot/efficiency/components/ChipOee.vue b/src/views/copilot/efficiency/components/ChipOee.vue
index 6d5bc28..f4e623c 100644
--- a/src/views/copilot/efficiency/components/ChipOee.vue
+++ b/src/views/copilot/efficiency/components/ChipOee.vue
@@ -88,7 +88,7 @@ export default {
function getTemplate(period, dataList) {
const year = new Date().getFullYear();
const month = new Date().getMonth() + 1;
- console.log('11111', dataList);
+ // console.log('11111', dataList);
return period == "日" || period == "周"
? [
{
@@ -110,4 +110,6 @@ function getTemplate(period, dataList) {
}
-
+
diff --git a/src/views/copilot/efficiency/components/StdRate.vue b/src/views/copilot/efficiency/components/StdRate.vue
index fe4cc09..233c7b5 100644
--- a/src/views/copilot/efficiency/components/StdRate.vue
+++ b/src/views/copilot/efficiency/components/StdRate.vue
@@ -1,7 +1,7 @@
@@ -11,7 +11,7 @@
-
@@ -28,21 +28,68 @@ export default {
default: "日",
},
},
+ computed: {
+ cities() {
+ console.log('ztl', this.$store.getters.copilot.efficiency.stdRate)
+ // let getterName = "";
+ // switch (this.dataSource) {
+ // case "标准组件产出":
+ // getterName = "stdOutput";
+ // break;
+ // case "芯片产出":
+ // getterName = "chipOutput";
+ // break;
+ // case "BIPV产出":
+ // getterName = "bipvOutput";
+ // break;
+ // }
+ const _cities = [
+ { name: "瑞昌", target: 0, total: 0, current: 0, componentYield: 0, goodNumber:0,},
+ { name: "邯郸", target: 0, total: 0, current: 0, componentYield: 0, goodNumber: 0, },
+ { name: "株洲", target: 0, previous: 0, current: 0, componentYield: 0, goodNumber: 0, },
+ { name: "佳木斯", target: 0, previous: 0, current: 0, componentYield: 0, goodNumber: 0, },
+ { name: "成都", target: 0, previous: 0, current: 0, componentYield: 0, goodNumber: 0, },
+ { name: "凯盛光伏", target: 0, previous: 0, current: 0, componentYield: 0, goodNumber: 0, },
+ { name: "蚌埠", target: 0, previous: 0, current: 0, componentYield: 0, goodNumber: 0, },
+ ]
+ if (this.$store.getters.copilot?.efficiency.stdRate?.previous) {
+ this.$store.getters.copilot?.efficiency.stdRate?.previous.forEach(
+ (v, idx) => {
+ _cities[idx].previous = v ?? 0;
+ }
+ );
+ }
+ if (this.$store.getters.copilot?.efficiency.stdRate?.target) {
+ this.$store.getters.copilot?.efficiency.stdRate?.target.forEach(
+ (v, idx) => {
+ _cities[idx].target = v ?? 0;
+ }
+ )
+ }
+ if (this.$store.getters.copilot?.efficiency.stdRate?.current) {
+ this.$store.getters.copilot?.efficiency.stdRate?.current.forEach(
+ (v, idx) => {
+ _cities[idx].current = v ?? 0;
+ }
+ );
+ }
+ // 删掉凯盛光伏
+ // _cities.splice(4, 1);
+ return _cities;
+ },
+ },
data() {
return {
- cities: [
- { name: "瑞昌", target: 100, total: 200, thisYear: 20 },
- { name: "邯郸", target: 200, total: 300, thisYear: 20 },
- { name: "株洲", target: 300, total: 400, thisYear: 20 },
- { name: "佳木斯", target: 400, total: 500, thisYear: 20 },
- { name: "成都", target: 500, total: 600, thisYear: 20 },
- { name: "凯盛光伏", target: 400, total: 500, thisYear: 20 },
- { name: "蚌埠", target: 500, total: 600, thisYear: 20 },
- ],
+ // cities: [
+ // { name: "瑞昌", target: 100, total: 200, current: 20 },
+ // { name: "邯郸", target: 200, total: 300, current: 20 },
+ // { name: "株洲", target: 300, total: 400, current: 20 },
+ // { name: "佳木斯", target: 400, total: 500, current: 20 },
+ // { name: "成都", target: 500, total: 600, current: 20 },
+ // { name: "凯盛光伏", target: 400, total: 500, current: 20 },
+ // { name: "蚌埠", target: 500, total: 600, current: 20 },
+ // ],
};
- },
- computed: {
-
},
methods: {},
};
@@ -50,13 +97,22 @@ export default {
diff --git a/src/views/copilot/efficiency/components/sub/bar/BarChartBase.vue b/src/views/copilot/efficiency/components/sub/bar/BarChartBase.vue
index 5369183..2dd1df8 100644
--- a/src/views/copilot/efficiency/components/sub/bar/BarChartBase.vue
+++ b/src/views/copilot/efficiency/components/sub/bar/BarChartBase.vue
@@ -1,8 +1,8 @@
-
diff --git a/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue b/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue
index 6f95c2e..dfc1be2 100644
--- a/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue
+++ b/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue
@@ -1,44 +1,36 @@
- {{ item.label }}
+ {{ item.label }}
-
+
diff --git a/src/views/copilot/efficiency/components/sub/chip/ChipRateItem.vue b/src/views/copilot/efficiency/components/sub/chip/ChipRateItem.vue
index 70b9fe2..f4b1592 100644
--- a/src/views/copilot/efficiency/components/sub/chip/ChipRateItem.vue
+++ b/src/views/copilot/efficiency/components/sub/chip/ChipRateItem.vue
@@ -10,7 +10,9 @@
+
+
{{ lgd.value }}
@@ -57,7 +59,7 @@ export default {
},
valueTuple() {
const getter = this.chipRate;
- console.log(getter)
+ // console.log(getter)
if (this.period === "日" || this.period === "周") {
return [
getter.previous[this.factoryId],
@@ -109,11 +111,11 @@ export default {
this.period == "月"
? `${year - 1}年${month}月良率`
: `${year - 1}年良率`,
- value: (this.valueTuple[0] * 100).toFixed(0) + "%",
+ value: isNaN((this.valueTuple[0] * 100).toFixed(0)) ? 0 + "%" : (this.valueTuple[0] * 100).toFixed(0) + "%"
},
{
label: this.period == "月" ? `${month}月良率` : `${year}年良率`,
- value: (this.valueTuple[1] * 100).toFixed(0) + "%",
+ value: isNaN((this.valueTuple[1] * 100).toFixed(0)) ? 0 + "%" : (this.valueTuple[1] * 100).toFixed(0) + "%"
},
];
},
@@ -123,6 +125,7 @@ export default {
},
watch: {
period() {
+ console.log(this.$store.getters.copilot.efficiency)
this.initOptions(this.options);
},
factoryId() {
@@ -142,24 +145,29 @@ export default {
-l
diff --git a/src/views/copilot/energy/index.vue b/src/views/copilot/energy/index.vue
index 504ea5f..eeb3b64 100644
--- a/src/views/copilot/energy/index.vue
+++ b/src/views/copilot/energy/index.vue
@@ -1,25 +1,29 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -29,7 +33,6 @@ import StockMonitorVue from "./components/StockMonitor.vue";
import ElecCostVue from "./components/ElecCost.vue";
import NatGasVue from "./components/NatGas.vue";
import WaterCostVue from "./components/WaterCost.vue";
-
export default {
name: "EnergyCopilot",
components: {
@@ -46,7 +49,9 @@ export default {
},
},
data() {
- return {};
+ return {
+ stockDOData:[],
+ };
},
watch: {
period: {
@@ -56,13 +61,21 @@ export default {
immediate: true,
},
},
+
methods: {
fetchData(period = "日") {
- console.log(`效率驾驶舱,获取${period}数据`);
+ // console.log(this.width);
+ // console.log('sidebar', this.$store.getters.sidebar);
+ console.log(`综合驾驶舱,获取${period}数据`);
+ // this.getData(this.period)
this.$store.dispatch("copilot/initCopilot", {
period,
- source: "comprehensive",
+ source: "energy",
});
+ // this.$store.dispatch("copilot/initCopilot", {
+ // period,
+ // source: "comprehensive",
+ // });
},
},
};
@@ -71,13 +84,19 @@ export default {
diff --git a/src/views/copilot/energy/options/monitorOptions.js b/src/views/copilot/energy/options/monitorOptions.js
index b391b9e..51dc2b8 100644
--- a/src/views/copilot/energy/options/monitorOptions.js
+++ b/src/views/copilot/energy/options/monitorOptions.js
@@ -1,19 +1,16 @@
/*
* @Author: zhp
* @Date: 2024-05-07 10:25:10
- * @LastEditTime: 2024-05-08 10:30:06
+ * @LastEditTime: 2024-05-16 13:35:50
* @LastEditors: zhp
* @Description:
*/
export default function ({
- single = false,
+ // single = false,
colors = ['#2760FF', '#5996F7', '#8BC566', '#11FAF0','#F3C000'],
titleValue,
subtitle,
dataList,
- previousSum,
- currentSum,
- targetSum,
}) {
return {
grid: {
@@ -26,7 +23,7 @@ export default function ({
// tooltip: {},
title: {
text: titleValue,
- left: "49%",
+ left: "47%",
top: "39%",
textAlign: "center",
textStyle: {
@@ -50,8 +47,8 @@ export default function ({
{
name: 'Access From',
type: 'pie',
- // center: ['50%', '40%'],
- radius: ['60%', '90%'],
+ center: ['50%', '50%'],
+ radius: ['50%', '80%'],
avoidLabelOverlap: false,
labelLine: {
show: false
@@ -62,7 +59,6 @@ export default function ({
data: dataList && dataList.length > 0 && dataList.map((item, index) => ({
name:item.name,
value: item.value,
-
itemStyle:{
color:{
type: 'linear',
diff --git a/src/views/copilot/factoryData/assets/images/bipv.png b/src/views/copilot/factoryData/assets/images/bipv.png
new file mode 100644
index 0000000..42ca506
Binary files /dev/null and b/src/views/copilot/factoryData/assets/images/bipv.png differ
diff --git a/src/views/copilot/factoryData/assets/images/chip.png b/src/views/copilot/factoryData/assets/images/chip.png
new file mode 100644
index 0000000..64ada6f
Binary files /dev/null and b/src/views/copilot/factoryData/assets/images/chip.png differ
diff --git a/src/views/copilot/factoryData/assets/images/fto.png b/src/views/copilot/factoryData/assets/images/fto.png
new file mode 100644
index 0000000..c7e520c
Binary files /dev/null and b/src/views/copilot/factoryData/assets/images/fto.png differ
diff --git a/src/views/copilot/factoryData/assets/images/std.png b/src/views/copilot/factoryData/assets/images/std.png
new file mode 100644
index 0000000..c206420
Binary files /dev/null and b/src/views/copilot/factoryData/assets/images/std.png differ
diff --git a/src/views/copilot/factoryData/components/Container.vue b/src/views/copilot/factoryData/components/Container.vue
new file mode 100644
index 0000000..59349a7
--- /dev/null
+++ b/src/views/copilot/factoryData/components/Container.vue
@@ -0,0 +1,232 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ title }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/copilot/factoryData/components/ContainerIcon.vue b/src/views/copilot/factoryData/components/ContainerIcon.vue
new file mode 100644
index 0000000..6518242
--- /dev/null
+++ b/src/views/copilot/factoryData/components/ContainerIcon.vue
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/copilot/factoryData/components/Energy.vue b/src/views/copilot/factoryData/components/Energy.vue
new file mode 100644
index 0000000..5339644
--- /dev/null
+++ b/src/views/copilot/factoryData/components/Energy.vue
@@ -0,0 +1,371 @@
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
diff --git a/src/views/copilot/factoryData/components/Order.vue b/src/views/copilot/factoryData/components/Order.vue
new file mode 100644
index 0000000..5515fe4
--- /dev/null
+++ b/src/views/copilot/factoryData/components/Order.vue
@@ -0,0 +1,77 @@
+
+
+
+
diff --git a/src/views/copilot/factoryData/components/ProdMonitor.vue b/src/views/copilot/factoryData/components/ProdMonitor.vue
new file mode 100644
index 0000000..432648b
--- /dev/null
+++ b/src/views/copilot/factoryData/components/ProdMonitor.vue
@@ -0,0 +1,272 @@
+
+
+
+
+
+
+
+ 玻璃类型
+ FTO投入
+
+
+ 投入数量
+ 8391222
+
+
+
+
+
+
+
+
+
+ 玻璃类型
+ 标准组检产量
+
+
+ 良品数量
+ 740
+
+
+
+
+
+
+ 生产数量
+ 783
+
+
+ 良品率
+ 96%
+
+
+
+
+
+
+
+
+
+
+
+ 玻璃类型
+ 芯片产量
+
+
+ 良品数量
+ 740
+
+
+
+
+
+
+ 生产数量
+ 783
+
+
+ 良品率
+ 96%
+
+
+
+
+
+
+
+
+
+
+
+ 玻璃类型
+ BIPV产量
+
+
+ 良品数量
+ 740
+
+
+
+
+
+
+ 生产数量
+ 783
+
+
+ 良品率
+ 96%
+
+
+
+
+
+
+
+
diff --git a/src/views/copilot/factoryData/components/Store.vue b/src/views/copilot/factoryData/components/Store.vue
new file mode 100644
index 0000000..5b169ff
--- /dev/null
+++ b/src/views/copilot/factoryData/components/Store.vue
@@ -0,0 +1,170 @@
+
+
+
+
+
diff --git a/src/views/copilot/factoryData/index.vue b/src/views/copilot/factoryData/index.vue
new file mode 100644
index 0000000..c0c0d1d
--- /dev/null
+++ b/src/views/copilot/factoryData/index.vue
@@ -0,0 +1,186 @@
+
+
+
+
+
diff --git a/src/views/copilot/yield/components/FtoInvest.vue b/src/views/copilot/yield/components/FtoInvest.vue
index 8463fa5..bcda714 100644
--- a/src/views/copilot/yield/components/FtoInvest.vue
+++ b/src/views/copilot/yield/components/FtoInvest.vue
@@ -65,6 +65,7 @@ export default {
},
series() {
const { ftoInvest } = this.$store.getters.copilot.yield;
+ console.log('ftoInvest', this.$store.getters.copilot.yield);
let dataList = null;
switch (this.period) {
diff --git a/src/views/copilot/yield/components/sub/city/CityData.vue b/src/views/copilot/yield/components/sub/city/CityData.vue
index dca4e9c..fd75193 100644
--- a/src/views/copilot/yield/components/sub/city/CityData.vue
+++ b/src/views/copilot/yield/components/sub/city/CityData.vue
@@ -1,8 +1,8 @@
-
@@ -72,6 +72,7 @@ export default {
);
},
cities() {
+ // console.log('ztl')
let getterName = "";
switch (this.dataSource) {
case "标准组件产出":
diff --git a/src/views/copilot/yield/components/sub/ring/DoubleRingChart.vue b/src/views/copilot/yield/components/sub/ring/DoubleRingChart.vue
index 1f75104..d54e268 100644
--- a/src/views/copilot/yield/components/sub/ring/DoubleRingChart.vue
+++ b/src/views/copilot/yield/components/sub/ring/DoubleRingChart.vue
@@ -7,7 +7,9 @@