From 79607cc4942d45121c1d2674452450983b9f7a14 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Sun, 28 Sep 2025 18:18:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E8=A1=A8=E4=B8=80=E5=86=8C=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/three-and-one.js | 46 ++++++ .../synthesize-query/three-and-one/config.js | 3 +- .../detail/components/header-info.vue | 48 +++++- .../detail/components/three-one-table.vue | 24 ++- .../synthesize-query/three-and-one/index.vue | 20 +++ .../month-detail/components/att-details.vue | 137 +++++++++++------ .../month-detail/components/header-info.vue | 129 ++++++++++++++-- .../month-detail/components/nameList.vue | 140 ++++++++++-------- .../components/three-one-table.vue | 10 +- .../month-detail/components/wage-info.vue | 126 ++++++++-------- .../month-detail/components/wage-pay.vue | 93 ++++++------ .../three-and-one/month-detail/index.vue | 2 +- 12 files changed, 532 insertions(+), 246 deletions(-) diff --git a/src/api/synthesize-query/three-and-one.js b/src/api/synthesize-query/three-and-one.js index f92c4fd..8ee542e 100644 --- a/src/api/synthesize-query/three-and-one.js +++ b/src/api/synthesize-query/three-and-one.js @@ -1,4 +1,5 @@ import request from '@/utils/request' +import requestFormData from '@/utils/request_formdata' // 综合查询 获取三表一册列表 export const getThreeAndOneListAPI = (data) => { @@ -44,3 +45,48 @@ export const getThreeAndOneMonthlyRosterListAPI = (data) => { params: data, }) } + +// 综合查询 导出三表一册单月农民工实名制工资信息报审表 +export const exportThreeAndOneMonthlySalaryApprovalListAPI = (data) => { + return request({ + url: '/bmw/pmProject/getUserSalaryApprovalList', + method: 'GET', + params: data, + }) +} + +// 综合查询 导出三表一册单月分包人员考勤明细表 +export const exportThreeAndOneMonthlyAttDetailsListAPI = (data) => { + return request({ + url: '/bmw/pmProject/getUserAttendanceList', + method: 'GET', + params: data, + }) +} + +// 综合查询 导出三表一册单月农名工工资支付表 +export const exportThreeAndOneMonthlyWagePaymentListAPI = (data) => { + return request({ + url: '/bmw/pmProject/getUserWagePayList', + method: 'GET', + params: data, + }) +} + +// 综合查询 三表一册封档操作 +export const updateProMonthTableAPI = (data) => { + return request({ + url: '/bmw/pmProject/updateProMonthTable', + method: 'POST', + data, + }) +} + +// 综合查询 三表一册回单上传操作 +export const uploadProMonthTableRefundAPI = (data) => { + return requestFormData({ + url: '/bmw/pmProject/updateProMonthTableRefund ', + method: 'POST', + data, + }) +} diff --git a/src/views/synthesize-query/three-and-one/config.js b/src/views/synthesize-query/three-and-one/config.js index 79fe0fe..36cb47b 100644 --- a/src/views/synthesize-query/three-and-one/config.js +++ b/src/views/synthesize-query/three-and-one/config.js @@ -10,6 +10,7 @@ export const formLabel = [ f_type: 'sel', f_label: '工程状态', f_model: 'proStatus', + f_selList: [], }, ] @@ -25,5 +26,5 @@ export const columnsList = [ { t_props: 'teamNum', t_label: '发放班组数量' }, { t_props: 'payNum', t_label: '发放人员人次' }, { t_props: 'netSalary', t_label: '实发工资' }, - { t_props: 'proStatus', t_label: '状态' }, + { t_slot: 'proStatus', t_label: '状态' }, ] diff --git a/src/views/synthesize-query/three-and-one/detail/components/header-info.vue b/src/views/synthesize-query/three-and-one/detail/components/header-info.vue index 3bd67b5..b6d89a3 100644 --- a/src/views/synthesize-query/three-and-one/detail/components/header-info.vue +++ b/src/views/synthesize-query/three-and-one/detail/components/header-info.vue @@ -48,8 +48,23 @@ item.valueKey === 'currentStatus', }" > - - {{ projectInfo[item.valueKey] }} + + + + + @@ -62,6 +77,7 @@ import { getThreeAndOneProjectDetailAPI } from '@/api/synthesize-query/three-and-one' export default { name: 'HeaderInfo', + dicts: ['project_status', 'project_type'], props: { projectId: { type: [Number, String], @@ -83,32 +99,26 @@ export default { labelList: [ { label: '当前状态', - value: '在建', valueKey: 'proStatus', }, { label: '工程类型', - value: '基建线路', valueKey: 'proType', }, { label: '电压等级', - value: '220kV', valueKey: 'volLevel', }, { label: '计划开工时间', - value: '2025-02-01', valueKey: 'startTime', }, { label: '计划完工时间', - value: '2025-11-30', valueKey: 'endTime', }, { label: '工程地址', - value: '广东省-东莞市', valueKey: 'proAddress', }, ], @@ -144,6 +154,28 @@ export default { console.log(res, 'res工程详情') }, + + // 初始化工程类型 + initProType(data) { + if (typeof data === 'string') { + return this.dict.type.project_type.find( + (item) => item.value == data, + ).label + } + + return data || '' + }, + + // 初始化工程状态 + initProStatus(data) { + if (typeof data === 'string') { + return this.dict.type.project_status.find( + (item) => item.value == data, + ).label + } + + return data || '' + }, }, } diff --git a/src/views/synthesize-query/three-and-one/detail/components/three-one-table.vue b/src/views/synthesize-query/three-and-one/detail/components/three-one-table.vue index 2c0143b..b1042eb 100644 --- a/src/views/synthesize-query/three-and-one/detail/components/three-one-table.vue +++ b/src/views/synthesize-query/three-and-one/detail/components/three-one-table.vue @@ -138,7 +138,7 @@ @@ -161,6 +161,13 @@ + + @@ -182,8 +189,14 @@ export default { }, data() { return { + total: 0, // 分包信息数据 threeOneData: [], + threeOneQueryParams: { + pageNum: 1, + pageSize: 10, + proId: '', + }, columnsList: [ { @@ -298,10 +311,12 @@ export default { // 获取三表一册每月数据 async getThreeAndOneMonthlyData() { - const res = await getThreeAndOneMonthlyDataAPI({ - proId: this.projectId, - }) + this.threeOneQueryParams.proId = this.projectId + const res = await getThreeAndOneMonthlyDataAPI( + this.threeOneQueryParams, + ) this.threeOneData = res.rows + this.total = res.total }, }, } @@ -339,6 +354,7 @@ export default { border-radius: 12px; box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); margin-top: 20px; + padding-bottom: 20px; overflow: hidden; .section-header { diff --git a/src/views/synthesize-query/three-and-one/index.vue b/src/views/synthesize-query/three-and-one/index.vue index 9385c76..08df7be 100644 --- a/src/views/synthesize-query/three-and-one/index.vue +++ b/src/views/synthesize-query/three-and-one/index.vue @@ -21,6 +21,12 @@ + +