+
@@ -87,8 +89,8 @@
- {{ safetyInspectionDetail?.verificationResult }}
+ {{
+ safetyInspectionDetail?.verificationResult }}
@@ -140,14 +142,14 @@ const get = async () => {
if (res.data && res.code === 200) {
safetyInspectionDetail.value = res.data;
- if (res.data.rectificationFileList) {
- const checkFileRes = await listByIds(res.data.inspectionFile.split(','));
- checkFileList.value = checkFileRes.data;
- }
- if (res.data.rectificationFile) {
- const rectificationFileRes = await listByIds(res.data.rectificationFile.split(','));
- rectificationFileList.value = rectificationFileRes.data;
- }
+ // if (res.data.inspectionImgFileList) {
+ // const checkFileRes = await listByIds(res.data.inspectionFile.split(','));
+ // checkFileList.value = checkFileRes.data;
+ // }
+ // if (res.data.rectificationImgFile) {
+ // const rectificationFileRes = await listByIds(res.data.rectificationFile.split(','));
+ // rectificationFileList.value = rectificationFileRes.data;
+ // }
}
};
@@ -223,6 +225,7 @@ watch(
z-index: 10;
width: 105px;
height: 105px;
+
img {
width: 105px;
}
diff --git a/src/views/quality/qualityInspection/index.vue b/src/views/quality/qualityInspection/index.vue
index c069a3a..820bc08 100644
--- a/src/views/quality/qualityInspection/index.vue
+++ b/src/views/quality/qualityInspection/index.vue
@@ -1,17 +1,20 @@
-
+
-
+
-
+
@@ -27,7 +30,8 @@
- 新增
+ 新增
- 删除
+ 删除
- 导出
+ 导出
@@ -87,7 +85,7 @@
-->
-
+
-
+
详情
-
+
+ 整改
+
+
+ 复查
+
+
删除
-
+
@@ -121,23 +131,20 @@
-
+
-
+
-
+
@@ -167,7 +174,30 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 确 定
+
+
@@ -175,6 +205,7 @@
+
+ -->
+
diff --git a/src/views/project/projectUser/index.vue b/src/views/project/projectUser/index.vue
index 6e101c3..14142e8 100644
--- a/src/views/project/projectUser/index.vue
+++ b/src/views/project/projectUser/index.vue
@@ -430,7 +430,14 @@
{{ '退场时间:' + item.entryDate }}
-
退场文件:退场文件:
{{ itm }}
备注:{{ item.remark }}
@@ -1060,7 +1067,7 @@ const submitForm = () => {
const handleJoinBlacklist = async (row?: ConstructionUserVO) => {
await proxy?.$modal.confirm('确认要将该员工加入黑名单吗?').finally(() => (loading.value = false));
await addConstructionBlacklist({
- userId: row.id,
+ userId: row.sysUserId,
projectId: currentProject.value?.id
});
proxy?.$modal.msgSuccess('加入成功');
From 371c599bdfbc7e7a9ab6cf88ee5d364a48542dfe Mon Sep 17 00:00:00 2001
From: Teo <2642673902@qq.com>
Date: Mon, 15 Sep 2025 19:42:35 +0800
Subject: [PATCH 4/6] =?UTF-8?q?=E5=90=88=E8=A7=84=E6=80=A7=E6=89=8B?=
=?UTF-8?q?=E7=BB=AD=E5=A2=9E=E5=8A=A0=E7=8A=B6=E6=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../formalitiesAreConsolidated/index.vue | 27 ++++++++++++++++++-
1 file changed, 26 insertions(+), 1 deletion(-)
diff --git a/src/views/formalities/formalitiesAreConsolidated/index.vue b/src/views/formalities/formalitiesAreConsolidated/index.vue
index fad4d4a..43938b3 100644
--- a/src/views/formalities/formalitiesAreConsolidated/index.vue
+++ b/src/views/formalities/formalitiesAreConsolidated/index.vue
@@ -67,6 +67,17 @@
+
@@ -235,6 +249,7 @@
+
@@ -539,6 +554,16 @@ const handleUpdateStatus = async (row?: FormalitiesAreConsolidatedVO) => {
updateStatusVisible.value = true;
};
+const handleDelete = async (row?: any) => {
+ const _ids = row?.id || ids.value;
+ await proxy?.$modal.confirm('是否确认删除数据项?').finally(() => (fileLoading.value = false));
+ fileLoading.value = true;
+
+ await delFormalitiesAreConsolidated(_ids);
+ proxy?.$modal.msgSuccess('删除成功');
+ await getList();
+};
+
const submitStatus = async () => {
statusFormRef.value?.validate(async (valid: boolean) => {
if (valid) {
From 0b6dcc98e83f91017e0a2fee941861efb4853897 Mon Sep 17 00:00:00 2001
From: taoge1020
Date: Mon, 15 Sep 2025 20:09:56 +0800
Subject: [PATCH 5/6] =?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../formalitiesAreConsolidated/index.vue | 11 +-
src/views/project/attendance/index.vue | 28 +-
.../busSalaryDetails/component/detail.vue | 102 ++++
.../busSalaryDetails/component/edit.vue | 146 +++++
.../busSalaryDetails/component/model.ts | 57 ++
src/views/project/busSalaryDetails/index.vue | 563 ++++++++++++++++++
6 files changed, 903 insertions(+), 4 deletions(-)
create mode 100644 src/views/project/busSalaryDetails/component/detail.vue
create mode 100644 src/views/project/busSalaryDetails/component/edit.vue
create mode 100644 src/views/project/busSalaryDetails/component/model.ts
create mode 100644 src/views/project/busSalaryDetails/index.vue
diff --git a/src/views/formalities/formalitiesAreConsolidated/index.vue b/src/views/formalities/formalitiesAreConsolidated/index.vue
index fad4d4a..2e693de 100644
--- a/src/views/formalities/formalitiesAreConsolidated/index.vue
+++ b/src/views/formalities/formalitiesAreConsolidated/index.vue
@@ -82,11 +82,18 @@
-
+
- {{ scope.row.formalitiesName }}
+ {{ scope.row.formalitiesName }}
diff --git a/src/views/project/attendance/index.vue b/src/views/project/attendance/index.vue
index 9d79f7f..b99239a 100644
--- a/src/views/project/attendance/index.vue
+++ b/src/views/project/attendance/index.vue
@@ -31,6 +31,7 @@
搜索
重置
+ 导出
@@ -234,6 +235,17 @@ const dialog = reactive({
details: false,
title: ''
});
+const now = new Date();
+
+// 获取年份(4位数字)
+const year = now.getFullYear();
+
+// 获取月份(注意:getMonth() 返回 0-11,需要 +1 转换为 1-12)
+const month = now.getMonth() + 1;
+
+// 格式化月份为两位数(不足两位补0),拼接成年月字符串
+const currentYearMonth = `${year}-${month.toString().padStart(2, '0')}`;
+
const echartsOption = ref({});
const initFormData: AttendanceForm = {
id: undefined,
@@ -260,7 +272,7 @@ const data = reactive>({
pageNum: 1,
pageSize: 10,
userName: undefined,
- clockDate: undefined,
+ clockDate: currentYearMonth,
clockStatus: undefined,
commuter: undefined,
projectId: currentProject.value?.id,
@@ -454,7 +466,19 @@ const init = () => {
handleQuery();
});
};
-
+const onExport = () => {
+ try {
+ console.log(queryParams.value.clockDate);
+ proxy?.download(
+ 'project/attendance/exportList',
+ { projectId: currentProject.value?.id, clockDate: queryParams.value.clockDate },
+ `考勤列表_${queryParams.value.clockDate}.xlsx`
+ );
+ } catch (error) {
+ ElMessage.error('导出失败,请重试');
+ console.error('文件导出错误:', error);
+ }
+};
//监听项目id刷新数据
const listeningProject = watch(
() => currentProject.value?.id,
diff --git a/src/views/project/busSalaryDetails/component/detail.vue b/src/views/project/busSalaryDetails/component/detail.vue
new file mode 100644
index 0000000..db5d506
--- /dev/null
+++ b/src/views/project/busSalaryDetails/component/detail.vue
@@ -0,0 +1,102 @@
+
+
+
+
+
+ 员工工资考核记录详情
+
+
+
+
+
+ {{ scope.row.dateOfIssue + '-' + scope.row.working_date }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/project/busSalaryDetails/component/edit.vue b/src/views/project/busSalaryDetails/component/edit.vue
new file mode 100644
index 0000000..0d08744
--- /dev/null
+++ b/src/views/project/busSalaryDetails/component/edit.vue
@@ -0,0 +1,146 @@
+
+
+
+
+
+
+ {{ (!formData.id || formData.id == 0 ? '添加' : '修改') + '员工工资考核记录' }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/project/busSalaryDetails/component/model.ts b/src/views/project/busSalaryDetails/component/model.ts
new file mode 100644
index 0000000..70b95a1
--- /dev/null
+++ b/src/views/project/busSalaryDetails/component/model.ts
@@ -0,0 +1,57 @@
+export interface BusSalaryDetailsTableColumns {
+ id:number
+ sfzNumber:string; // 身份证
+ name:string; // 户名
+ account:string; // 账户
+ sumDuration:number; // 当月总时长
+ salary:number; // 薪水(天)
+ dateOfIssue:string; // 发放年月
+ lister:string; // 制表人
+ createdAt:string; // 创建时间
+}
+
+
+export interface BusSalaryDetailsInfoData {
+ id:number|undefined; // 主键ID
+ sfzNumber:string|undefined; // 身份证
+ name:string|undefined; // 户名
+ account:string|undefined; // 账户
+ sumDuration:number|undefined; // 当月总时长
+ salary:number|undefined; // 薪水(天)
+ projectId:number|undefined; // 项目id
+ teamId:number|undefined; // 班组id
+ projectName:string|undefined; // 项目名称
+ teamName:string|undefined; // 班组名称
+ dateOfIssue:string|undefined; // 发放年月
+ lister:string|undefined; // 制表人
+ createdAt:string|undefined; // 创建时间
+ updatedAt:string|undefined; // 更新时间
+ deletedAt:string|undefined; // 删除时间
+}
+
+
+export interface BusSalaryDetailsTableDataState {
+ ids:any[];
+ tableData: {
+ data: Array;
+ total: number;
+ loading: boolean;
+ param: {
+ pageNum: number;
+ pageSize: number;
+ id: number|undefined;
+ sfzNumber: string|undefined;
+ projectId: number|undefined;
+ teamId: number|undefined;
+ dateRange: string[];
+ };
+ };
+}
+
+
+export interface BusSalaryDetailsEditState{
+ loading:boolean;
+ isShowDialog: boolean;
+ formData:BusSalaryDetailsInfoData;
+ rules: object;
+}
\ No newline at end of file
diff --git a/src/views/project/busSalaryDetails/index.vue b/src/views/project/busSalaryDetails/index.vue
new file mode 100644
index 0000000..227cbdb
--- /dev/null
+++ b/src/views/project/busSalaryDetails/index.vue
@@ -0,0 +1,563 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+ 批量删除
+
+ 导出员工工资表
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (Number(scope.row.sumDuration) * Number(scope.row.salary)).toFixed(2) }}
+
+
+
+
+ {{ scope.row.createdAt }}
+
+
+
+
+ 详情
+ 导出工资表
+ 删除
+
+
+
+
+
+
+
+
+
+
From 41623c7facab50af35d3091b09c43c7c661b4b4a Mon Sep 17 00:00:00 2001
From: taoge1020
Date: Tue, 16 Sep 2025 09:03:48 +0800
Subject: [PATCH 6/6] 2
---
.env.development | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.env.development b/.env.development
index c17e50e..6f45dfa 100644
--- a/.env.development
+++ b/.env.development
@@ -15,7 +15,7 @@ VITE_APP_BASE_API = 'http://192.168.110.149:8899'
# 罗成
# VITE_APP_BASE_API = 'http://192.168.110.188:8899'
# 朱银
-VITE_APP_BASE_API = 'http://192.168.110.149:8899'
+# VITE_APP_BASE_API = 'http://192.168.110.149:8899'
#曾涛
# VITE_APP_BASE_API = 'http://192.168.110.171:8899'
# 屈展航