|
@@ -9,23 +9,48 @@
|
|
|
<div style="font-size: 1.5vh;">
|
|
|
<div style="display: flex;margin: 5% 5% 0;justify-content: space-around;">
|
|
|
<div style="width: 50%;width: 60%;">
|
|
|
- 在库待加工件数
|
|
|
+ 年度产量
|
|
|
</div>
|
|
|
<div style="font-size: 2vh;width: 40%;">
|
|
|
- 328
|
|
|
+ {{machines.yearCount}}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="display: flex;justify-content: space-around;margin: 5%">
|
|
|
<div style="width: 60%;">
|
|
|
- 在库已加工件数
|
|
|
+ 月度产量
|
|
|
</div>
|
|
|
<div style="font-size: 2vh;width: 40%;">
|
|
|
- 328
|
|
|
+ {{machines.monthCount}}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
+<script>
|
|
|
+import taskMgrApi from "@/api/runManageCenter/taskMgr";
|
|
|
+
|
|
|
+export default {
|
|
|
+
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ machines: {}
|
|
|
+ };
|
|
|
+ },
|
|
|
+ async created() {
|
|
|
+ await this.fetchMachineData(); // 初始化时获取数据
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ async fetchMachineData() {
|
|
|
+ taskMgrApi.chfTwoDatasProductAndMes().then(response => {
|
|
|
+ const res = response.data;
|
|
|
+ if (res.isSuccess) {
|
|
|
+ this.machines = response.data.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
<style scoped>
|
|
|
.production-condition {
|
|
|
height: 50%;
|