From 62678f54bbc7a64dc3cdad5d086e17de6383c003 Mon Sep 17 00:00:00 2001
From: Mr.Shi <1878285526@qq.com>
Date: 星期二, 22 八月 2023 15:04:57 +0800
Subject: [PATCH] Merge branch 'master' of ssh://139.186.142.91:29418/productDev/dmMes
---
screen_standard/src/components/AppLayout.vue | 2
/dev/null | 16 --------
screen_standard/src/utils/api.js | 20 +++++++++-
screen_standard/src/views/process.vue | 57 ++++++++++++++--------------
4 files changed, 47 insertions(+), 48 deletions(-)
diff --git a/screen_standard/src/components/AppLayout.vue b/screen_standard/src/components/AppLayout.vue
index 1a38866..2a37f1b 100644
--- a/screen_standard/src/components/AppLayout.vue
+++ b/screen_standard/src/components/AppLayout.vue
@@ -53,7 +53,7 @@
<script setup>
import { getAssets } from '@/utils'
-import { getDepartmentList } from '@/utils/apis.js'
+import { getDepartmentList } from '@/utils/api.js'
import { reactive, toRefs, onMounted, computed } from 'vue';
import { useCounterStore } from '@/stores/counter.js'
import { RouterView, useRoute, useRouter } from 'vue-router'
diff --git a/screen_standard/src/utils/api.js b/screen_standard/src/utils/api.js
index ca6fc0e..681924e 100644
--- a/screen_standard/src/utils/api.js
+++ b/screen_standard/src/utils/api.js
@@ -1,8 +1,8 @@
import axiosInstance from './request';
// 鍛樺伐浜у搧缁熻TOP10
-export function getTop (companyId, departId) {
- return axiosInstance.get(`statistics/userProduceTop/${companyId}/${departId}`)
+export function getTop (companyId, departId, params) {
+ return axiosInstance.get(`statistics/userProduceTop/${companyId}/${departId}`, { params })
}
// 鎴愬搧璁″垝-瀹炴椂浠撳簱浣欓噺缁熻
@@ -38,4 +38,20 @@
// 杩�7澶╀笉鑹搧鍒嗗竷-涓嶈壇鍝佹暟閲�-鎸変笉鑹」缁熻
export function getUnqualifiedCateData (companyId, departId, procedureId) {
return axiosInstance.get(`statistics/getUnqualifiedCateData/${companyId}/${departId}?procedureId=${procedureId}`)
+}
+
+
+// 鏁版嵁缁熻-鎴愬搧璁″垝锛屾墽琛屼腑銆佸欢鏈熻鍒掓暟銆佷粖鏃ョ敓浜т汉鏁般�佷粖鏃ョ敓浜ц澶囨暟銆佷粖鏃ヤ笉鑹搧
+export function getProcedurePlansList (companyId, departId, params) {
+ return axiosInstance.get(`statistics/getProcedurePlansList/${companyId}/${departId}`, {params} )
+}
+
+// 鏌ヨ浼佷笟鍏ㄩ儴鍏徃閮ㄩ棬
+export function getDepartmentList (companyId) {
+ return axiosInstance.get(`statistics/getDepartmentList/${companyId}`)
+}
+
+// 鏁版嵁缁熻-鎴愬搧璁″垝锛屾墽琛屼腑銆佸欢鏈熻鍒掓暟銆佷粖鏃ョ敓浜т汉鏁般�佷粖鏃ョ敓浜ц澶囨暟銆佷粖鏃ヤ笉鑹搧
+export function getProcedurePlanData (companyId, departId, params) {
+ return axiosInstance.get(`statistics/getProcedurePlanData/${companyId}/${departId}`, {params} )
}
\ No newline at end of file
diff --git a/screen_standard/src/utils/apis.js b/screen_standard/src/utils/apis.js
deleted file mode 100644
index 907344a..0000000
--- a/screen_standard/src/utils/apis.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import axiosInstance from './request';
-
-// 鏌ヨ浼佷笟鍏ㄩ儴鍏徃閮ㄩ棬
-export function getDepartmentList (companyId) {
- return axiosInstance.get(`statistics/getDepartmentList/${companyId}`)
-}
-
-// 鏁版嵁缁熻-鎴愬搧璁″垝锛屾墽琛屼腑銆佸欢鏈熻鍒掓暟銆佷粖鏃ョ敓浜т汉鏁般�佷粖鏃ョ敓浜ц澶囨暟銆佷粖鏃ヤ笉鑹搧
-export function getProcedurePlanData (companyId, departId, params) {
- return axiosInstance.get(`statistics/getProcedurePlanData/${companyId}/${departId}`, {params} )
-}
-
-// 鍛樺伐浜у搧缁熻TOP10
-export function getTop (companyId, departId, params) {
- return axiosInstance.get(`statistics/userProduceTop/${companyId}/${departId}`, {params})
-}
\ No newline at end of file
diff --git a/screen_standard/src/views/process.vue b/screen_standard/src/views/process.vue
index ac48cf4..88ae7a3 100644
--- a/screen_standard/src/views/process.vue
+++ b/screen_standard/src/views/process.vue
@@ -17,13 +17,13 @@
<div ref="planContainer" class="scroll_container">
<div v-for="(item, index) in listData" :key="item.id" class="scroll_item"
:class="index % 2 == 0 ? 'scroll_item scroll_item_bg1' : 'scroll_item scroll_item_bg2'">
- <div class="scroll_item_row">{{ item.name }}</div>
- <div class="scroll_item_row">1</div>
- <div class="scroll_item_row">2</div>
- <div class="scroll_item_row">3</div>
- <div class="scroll_item_row">4</div>
- <div class="scroll_item_row">4</div>
- <div class="scroll_item_row">4</div>
+ <div class="scroll_item_row">{{ item.materialName }}</div>
+ <div class="scroll_item_row">{{ item.materialCode }}</div>
+ <div class="scroll_item_row">{{ item.num }}</div>
+ <div class="scroll_item_row">{{ item.qualifiedNum }}</div>
+ <div class="scroll_item_row">{{ item.unqualifiedNum }}</div>
+ <div class="scroll_item_row">{{ item.undoneNum }}</div>
+ <div class="scroll_item_row">{{ item.unqualifiedRate }}%</div>
</div>
</div>
</div>
@@ -81,15 +81,15 @@
</div>
<div @mouseenter="handleMouseEnterReport" @mouseleave="handleMouseLeaveReport" class="tablel_container">
<div ref="reportLogContainer" class="scroll_container">
- <div v-for="(item, index) in listData" :key="item.id" class="scroll_item"
+ <div v-for="(item, index) in reportListData" :key="item.id" class="scroll_item"
:class="index % 2 == 0 ? 'scroll_item scroll_item_bg1' : 'scroll_item scroll_item_bg2'">
- <div class="scroll_item_row">{{ item.name }}</div>
- <div class="scroll_item_row">1</div>
- <div class="scroll_item_row">2</div>
- <div class="scroll_item_row">3</div>
- <div class="scroll_item_row">4</div>
- <div class="scroll_item_row">4</div>
- <div class="scroll_item_row">4</div>
+ <div class="scroll_item_row">{{ item.userName }}</div>
+ <div class="scroll_item_row">{{ item.materialName }}</div>
+ <div class="scroll_item_row">{{ item.materialCode }}</div>
+ <div class="scroll_item_row">{{ item.createTime }}</div>
+ <div class="scroll_item_row">{{ item.qualifiedNum }}</div>
+ <div class="scroll_item_row">{{ item.unqualifiedNum }}</div>
+ <div class="scroll_item_row">{{ item.unqualifiedRate }}%</div>
</div>
</div>
</div>
@@ -108,7 +108,7 @@
<script setup>
import { reactive, ref, toRefs, onMounted, onBeforeUnmount, onUnmounted, nextTick } from 'vue'
-import { getProcedurePlanData, getTop } from '@/utils/apis.js'
+import { getProcedurePlanData, getTop, getProcedurePlansList, getRecordLogPage } from '@/utils/api.js'
import { useCounterStore } from '@/stores/counter.js'
import { useRoute } from 'vue-router'
import * as echarts from 'echarts'
@@ -119,18 +119,8 @@
let planContainer = ref(null)
let reportLogContainer = ref(null)
const data = reactive({
- listData: [
- { name: 'dom绗竴涓�' },
- { name: 'dom绗簩涓�' },
- { name: 'dom绗笁涓�' },
- { name: 'dom绗洓涓�' },
- { name: 'dom绗簲涓�' },
- { name: 'dom绗叚涓�' },
- { name: 'dom绗竷涓�' },
- { name: 'dom绗叓涓�' },
- { name: 'dom绗節涓�' },
- { name: 'dom绗崄涓�' },
- ],
+ listData: [],
+ reportListData: [],
top1: [],
top2: [],
baseNum: 0,
@@ -202,7 +192,16 @@
}
}
})
-
+ // 宸ュ簭璁″垝杩涘害鏌ヨ
+ getProcedurePlansList(enterprise.companyId, enterprise.departId, { procedureId: route.query.procedureId })
+ .then(res => {
+ data.listData = res
+ })
+ // 鎶ュ伐鏃ュ織鍒嗛〉鏌ヨ
+ getRecordLogPage(enterprise.companyId, enterprise.departId, { capacity: 9999, page: 1, model: { procedureId: route.query.procedureId } })
+ .then(res => {
+ data.reportListData = res.records
+ })
}
function handleMouseEnter() {
--
Gitblit v1.9.3