From b4f112c2354047af9dbde8eaff34a70fdc987964 Mon Sep 17 00:00:00 2001
From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com>
Date: Mon, 13 Oct 2025 16:36:07 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=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/project-count.js | 9 +
.../detail/components/personInfo-card.vue | 266 +++++++++++++++++-
.../project-count/detail/index.vue | 1 +
.../detail/components/personInfo-card.vue | 20 +-
.../synthesize-query/sub-count/index.vue | 14 +-
5 files changed, 291 insertions(+), 19 deletions(-)
diff --git a/src/api/synthesize-query/project-count.js b/src/api/synthesize-query/project-count.js
index b9cc339..512be3e 100644
--- a/src/api/synthesize-query/project-count.js
+++ b/src/api/synthesize-query/project-count.js
@@ -62,3 +62,12 @@ export const getProjectCountDetailAttMachineInfoAPI = (data) => {
params: data,
})
}
+
+// 综合查询 获取工程统计详情中补卡信息
+export const getProjectCountDetailRepairInfoAPI = (data) => {
+ return request({
+ url: '/bmw/proStatistics/getProRepairMsg',
+ method: 'GET',
+ params: data,
+ })
+}
diff --git a/src/views/synthesize-query/project-count/detail/components/personInfo-card.vue b/src/views/synthesize-query/project-count/detail/components/personInfo-card.vue
index 5b28f9f..66d29bd 100644
--- a/src/views/synthesize-query/project-count/detail/components/personInfo-card.vue
+++ b/src/views/synthesize-query/project-count/detail/components/personInfo-card.vue
@@ -102,6 +102,13 @@
累计补卡申请次数(次)
{{ attendanceData.repairNumHis }}
+
+
+ 查看
+
@@ -162,6 +169,7 @@
+
+
+
+ 导出
+
+
+
+
+
+ 待审核
+
+
+ 审核通过
+
+
+ 审核驳回
+
+
+
+
+
+ 详情
+
+
+
+
+
+
+
+
+
+
+
+ {{ proName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.originFileName }}
+
+
+
+ 下载
+
+
+
+
+
+
+
+
@@ -300,8 +475,11 @@ import TableModel from '@/components/TableModel/index.vue'
import {
getProjectCountDetailEntryInfoAPI,
getProjectCountDetailAttendanceInfoAPI,
+ getProjectCountDetailRepairInfoAPI,
} from '@/api/synthesize-query/project-count'
+import { getCardReplacementAuditDetailAPI } from '@/api/construction-person/attendance-manage/card-replacement-audit'
+
import {
getSubSelectListCommonFun,
getTeamSelectListCommonFun,
@@ -318,6 +496,10 @@ export default {
type: [String, Number],
default: '',
},
+ proName: {
+ type: String,
+ default: '',
+ },
entryData: {
type: Object,
default: () => {},
@@ -339,6 +521,16 @@ export default {
outerWidth: '90%',
minHeight: '90vh',
maxHeight: '90vh',
+ innerVisible: false,
+ innerTitle: '补卡详情',
+ innerWidth: '80%',
+ innerMinHeight: '70vh',
+ innerMaxHeight: '70vh',
+ },
+ tableData: [],
+ detailsParams: {
+ repairRemark: '',
+ fileList: [],
},
formLabel: [
@@ -455,8 +647,29 @@ export default {
{ t_props: 'teamName', t_label: '所属班组' },
],
+ formLabel_2: [
+ {
+ isShow: false, // 是否展示label
+ f_type: 'ipt',
+ f_label: '姓名',
+ f_model: 'applyUser',
+ },
+ ],
+
+ columnsList_2: [
+ { t_props: 'applyTime', t_label: '申请时间' },
+ { t_props: 'repairNum', t_label: '补卡人数' },
+ { t_props: 'repairDay', t_label: '补卡天数' },
+ { t_props: 'repairRemark', t_label: '补卡说明' },
+ { t_props: 'applyUser', t_label: '申请人' },
+ { t_slot: 'checkStatus', t_label: '审核状态' },
+ { t_props: 'checkUser', t_label: '审核人' },
+ { t_props: 'checkTime', t_label: '审核时间' },
+ ],
+
getProjectCountDetailEntryInfoAPI,
getProjectCountDetailAttendanceInfoAPI,
+ getProjectCountDetailRepairInfoAPI,
}
},
@@ -502,8 +715,9 @@ export default {
* 处理查看补卡申请点击事件
*/
handleViewCardReplacement() {
- this.$emit('view-card-replacement')
console.log('查看补卡申请')
+ this.dialogConfig.outerTitle = '补卡申请详情'
+ this.dialogConfig.outerVisible = true
},
// 导出
@@ -521,7 +735,7 @@ export default {
// 导出
onHandleExportAttendanceInfo(queryParams) {
this.download(
- '/bmw/workerLight/attExportByWorker',
+ '/bmw/proStatistics/exportProAttMsg',
// { ...queryParams },
{
// ...queryParams,
@@ -547,6 +761,11 @@ export default {
this.dialogConfig.outerVisible = false
},
+ // 关闭补卡申请详情弹框
+ handleCloseDialogInner() {
+ this.dialogConfig.innerVisible = false
+ },
+
// 查看人员详情
onHandleCheckUserName(workerId) {
this.dialogConfig.outerVisible = false
@@ -560,6 +779,20 @@ export default {
})
},
+ // 查看补卡申请详情
+ async onHandleViewCardReplacementDetail(query) {
+ // this.dialogConfig.outerTitle = '补卡申请详情'
+ // this.dialogConfig.outerVisible = true
+
+ const { data: res } = await getCardReplacementAuditDetailAPI({
+ id: query.id,
+ })
+ this.detailsParams.repairRemark = res.repairRemark
+ this.detailsParams.fileList = res.files
+ this.tableData = res.repairCardDetails
+ this.dialogConfig.innerVisible = true
+ },
+
/**
* 格式化货币显示
* @param {Number} value 金额
@@ -569,6 +802,24 @@ export default {
if (!value) return '0'
return `¥${value.toLocaleString()}`
},
+
+ onHandlePreviewFile(item) {
+ window.open(item.url, '_blank')
+ },
+ onHandleDownloadFile(item) {
+ window.open(item.url, '_blank')
+ },
+
+ // 导出
+ onHandleExportCardReplacementInfo(queryParams) {
+ this.download(
+ '/bmw/proStatistics/exportProRepairMsg',
+ {
+ proId: this.proId,
+ },
+ '补卡申请列表.xlsx',
+ )
+ },
},
}
@@ -743,6 +994,17 @@ export default {
}
}
+.view-more {
+ color: #3b82f6;
+ font-size: 14px;
+ cursor: pointer;
+ transition: color 0.3s ease;
+
+ &:hover {
+ color: #1d4ed8;
+ }
+}
+
// 响应式设计
@media (max-width: 1200px) {
.person-info-container {
diff --git a/src/views/synthesize-query/project-count/detail/index.vue b/src/views/synthesize-query/project-count/detail/index.vue
index 8eebea3..1e22ba9 100644
--- a/src/views/synthesize-query/project-count/detail/index.vue
+++ b/src/views/synthesize-query/project-count/detail/index.vue
@@ -21,6 +21,7 @@