From bc829a0037fba2e0a970a00333adb8d66db5b8e8 Mon Sep 17 00:00:00 2001
From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com>
Date: Fri, 10 Oct 2025 17:22:16 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=86=E5=8C=85=E7=BB=9F=E8=AE=A1=E6=8E=A5?=
=?UTF-8?q?=E5=8F=A3=E8=B0=83=E8=AF=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/synthesize-query/sub-count.js | 27 ++
.../detail/components/attMachine-card.vue | 120 +++-----
.../detail/components/card-count.vue | 77 ++++-
.../detail/components/personInfo-card.vue | 222 +++-----------
.../detail/components/subTeam-card.vue | 284 ++++++++++--------
.../sub-count/detail/index.vue | 33 +-
6 files changed, 359 insertions(+), 404 deletions(-)
diff --git a/src/api/synthesize-query/sub-count.js b/src/api/synthesize-query/sub-count.js
index 53a0427..f06b24a 100644
--- a/src/api/synthesize-query/sub-count.js
+++ b/src/api/synthesize-query/sub-count.js
@@ -17,3 +17,30 @@ export const getSubCountDetailCardStatisticsAPI = (data) => {
params: data,
})
}
+
+// 综合查询 获取分包统计详情 获取分包工程信息
+export const getSubCountDetailSubProjectInfoAPI = (data) => {
+ return request({
+ url: '/bmw/subStatistics/getSubProMsg',
+ method: 'GET',
+ params: data,
+ })
+}
+
+// 综合查询 获取分包统计详情 获取班组信息
+export const getSubCountDetailTeamInfoAPI = (data) => {
+ return request({
+ url: '/bmw/subStatistics/getSubTeamMsg',
+ method: 'GET',
+ params: data,
+ })
+}
+
+// 综合查询 获取分包统计详情 获取考勤机列表
+export const getSubCountDetailAttMachineListAPI = (data) => {
+ return request({
+ url: '/bmw/subStatistics/getSubDeviceMsg',
+ method: 'GET',
+ params: data,
+ })
+}
diff --git a/src/views/synthesize-query/sub-count/detail/components/attMachine-card.vue b/src/views/synthesize-query/sub-count/detail/components/attMachine-card.vue
index e46f9fc..90542a0 100644
--- a/src/views/synthesize-query/sub-count/detail/components/attMachine-card.vue
+++ b/src/views/synthesize-query/sub-count/detail/components/attMachine-card.vue
@@ -16,57 +16,46 @@
-
-
+
+
-
- {{ scope.row.entryExitStatus }}
+
+ 在用
@@ -77,63 +66,19 @@
diff --git a/src/views/synthesize-query/sub-count/detail/components/card-count.vue b/src/views/synthesize-query/sub-count/detail/components/card-count.vue
index 35445e1..6d1b36f 100644
--- a/src/views/synthesize-query/sub-count/detail/components/card-count.vue
+++ b/src/views/synthesize-query/sub-count/detail/components/card-count.vue
@@ -76,6 +76,10 @@ export default {
type: [String, Number],
default: null,
},
+ attMachineCount: {
+ type: [String, Number],
+ default: 0,
+ },
},
data() {
return {
@@ -84,7 +88,6 @@ export default {
{
type: 'subcontractor',
label: '标段工程/分包合同',
-
color: '#EF4444',
dotColor: '#EF4444',
dataKey: 'proNum',
@@ -92,7 +95,6 @@ export default {
{
type: 'team',
label: '施工班组',
-
color: '#3B82F6',
dotColor: '#3B82F6',
dataKey: 'teamNum',
@@ -100,7 +102,6 @@ export default {
{
type: 'entry',
label: '累计入场',
-
color: '#8B5CF6',
dotColor: '#8B5CF6',
dataKey: 'einNumHis',
@@ -109,7 +110,6 @@ export default {
{
type: 'attendance',
label: '累计考勤',
-
color: '#06B6D4',
dotColor: '#06B6D4',
dataKey: 'attNumHis',
@@ -117,7 +117,6 @@ export default {
{
type: 'wage',
label: '累计工资',
-
color: '#EC4899',
dotColor: '#EC4899', // 注意:图片中这个点的颜色是绿色
dataKey: 'salaryMoneyNum',
@@ -125,10 +124,9 @@ export default {
{
type: 'machine',
label: '考勤机',
-
color: '#10B981',
dotColor: '#10B981',
- dataKey: 'salaryMoneyNum',
+ value: 0,
},
],
}
@@ -141,6 +139,13 @@ export default {
},
immediate: true,
},
+ attMachineCount: {
+ handler(newVal) {
+ this.cardList[5].value = newVal
+ },
+
+ immediate: true,
+ },
},
methods: {
/**
@@ -162,9 +167,25 @@ export default {
einNumHis,
attNumHis,
salaryMoneyNum,
- } = res.data
- console.log(res, '卡片统计')
+ exitNum,
+ einNum,
+ exitUploadFile,
+ noExitUploadFile,
+ einTime,
+ exitTime,
+ yellowNum,
+ greenNum,
+ yellowThanSevenDayNum,
+
+ proRepairNum,
+ repairPersonNum,
+ repairNumHis,
+
+ payrollNum,
+ workerSalaryNum,
+ payrollWorkerTime,
+ } = res.data
// // 模拟API响应数据
const mockData = {
@@ -175,8 +196,44 @@ export default {
salaryMoneyNum,
}
+ // 出入场信息
+ const entryData = {
+ einNumHis,
+ einNum,
+ exitNum,
+ exitUploadFile,
+ noExitUploadFile,
+ einTime,
+ exitTime,
+ yellowNum,
+ greenNum,
+ yellowThanSevenDayNum,
+ }
+
+ // 考勤信息
+ const attendanceData = {
+ attNumHis,
+ proRepairNum,
+ repairPersonNum,
+ repairNumHis,
+ }
+
+ // 工资信息
+ const wageData = {
+ salaryMoneyNum,
+ payrollNum,
+ workerSalaryNum,
+ payrollWorkerTime,
+ }
+
// 更新卡片数据
this.updateCardData(mockData)
+ this.$emit(
+ 'initPersonData',
+ entryData,
+ attendanceData,
+ wageData,
+ )
// this.$emit('data-loaded', mockData)
} catch (error) {
@@ -192,7 +249,7 @@ export default {
updateCardData(data) {
this.cardList.forEach((card) => {
if (data.hasOwnProperty(card.dataKey)) {
- card.value = data[card.dataKey] || 0
+ card.value = data[card.dataKey]
}
})
},
diff --git a/src/views/synthesize-query/sub-count/detail/components/personInfo-card.vue b/src/views/synthesize-query/sub-count/detail/components/personInfo-card.vue
index 2bc4d67..793599f 100644
--- a/src/views/synthesize-query/sub-count/detail/components/personInfo-card.vue
+++ b/src/views/synthesize-query/sub-count/detail/components/personInfo-card.vue
@@ -19,15 +19,13 @@
累计入场人数
-
{{
- personData.entry.totalEntryCount
- }}
+
+ {{ entryData.einNumHis }}
+
累计出场人数
-
{{
- personData.entry.totalExitCount
- }}
+
{{ entryData.exitNum }}
离场人员工资结算确认单
@@ -36,68 +34,48 @@
已上传:
- {{
- personData.entry
- .salaryConfirmationUploaded
- }}
未上传:
- {{
- personData.entry
- .salaryConfirmationNotUploaded
- }}