综合查询页面完善
This commit is contained in:
parent
518796643e
commit
9a9b0ca429
|
|
@ -114,6 +114,14 @@ export default {
|
||||||
type: [Number, String],
|
type: [Number, String],
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
subId: {
|
||||||
|
type: [Number, String],
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
|
proId: {
|
||||||
|
type: [Number, String],
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -125,6 +133,8 @@ export default {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
workerId: this.workerId,
|
workerId: this.workerId,
|
||||||
|
subId: this.subId,
|
||||||
|
proId: this.proId,
|
||||||
},
|
},
|
||||||
attInfoData: [],
|
attInfoData: [],
|
||||||
columnData: [
|
columnData: [
|
||||||
|
|
@ -200,13 +210,13 @@ export default {
|
||||||
},
|
},
|
||||||
// 导出
|
// 导出
|
||||||
handleExport() {
|
handleExport() {
|
||||||
// this.download(
|
this.download(
|
||||||
// '/bmw/workerLight/attExportByWorker',
|
'/bmw/workerStatistics/exportWorkerEinDayRecordDetail',
|
||||||
// {
|
{
|
||||||
// ...this.attInfoQueryParams,
|
workerId: this.workerId,
|
||||||
// },
|
},
|
||||||
// '考勤信息.xlsx',
|
'考勤信息.xlsx',
|
||||||
// )
|
)
|
||||||
},
|
},
|
||||||
// 获取考勤信息
|
// 获取考勤信息
|
||||||
async getAttInfoData() {
|
async getAttInfoData() {
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,14 @@ export default {
|
||||||
type: [Number, String],
|
type: [Number, String],
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
subId: {
|
||||||
|
type: [Number, String],
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
|
proId: {
|
||||||
|
type: [Number, String],
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -115,6 +123,8 @@ export default {
|
||||||
async getPersonCountDetail() {
|
async getPersonCountDetail() {
|
||||||
const res = await getPersonCountDetailAPI({
|
const res = await getPersonCountDetailAPI({
|
||||||
workerId: this.workerId,
|
workerId: this.workerId,
|
||||||
|
subId: this.subId,
|
||||||
|
proId: this.proId,
|
||||||
})
|
})
|
||||||
|
|
||||||
const personInfo = res.data
|
const personInfo = res.data
|
||||||
|
|
|
||||||
|
|
@ -7,13 +7,15 @@
|
||||||
|
|
||||||
<IdCard
|
<IdCard
|
||||||
:workerId="workerId"
|
:workerId="workerId"
|
||||||
|
:subId="subId"
|
||||||
|
:proId="proId"
|
||||||
@initPersonDetailsData="initPersonDetailsData"
|
@initPersonDetailsData="initPersonDetailsData"
|
||||||
/>
|
/>
|
||||||
<EntryExit :bmWorkerEinProRecordList="bmWorkerEinProRecordList" />
|
<EntryExit :bmWorkerEinProRecordList="bmWorkerEinProRecordList" />
|
||||||
<Contract :bmWorkerContractList="bmWorkerContractList" />
|
<Contract :bmWorkerContractList="bmWorkerContractList" />
|
||||||
<WageCard :bmWorkerWageCard="bmWorkerWageCard" />
|
<WageCard :bmWorkerWageCard="bmWorkerWageCard" />
|
||||||
<AttInfo :workerId="workerId" />
|
<AttInfo :subId="subId" :proId="proId" :workerId="workerId" />
|
||||||
<WageInfo :workerId="workerId" />
|
<WageInfo :subId="subId" :proId="proId" :workerId="workerId" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -39,6 +41,14 @@ export default {
|
||||||
type: [Number, String],
|
type: [Number, String],
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
subId: {
|
||||||
|
type: [Number, String],
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
|
proId: {
|
||||||
|
type: [Number, String],
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,14 @@ export default {
|
||||||
type: [Number, String],
|
type: [Number, String],
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
subId: {
|
||||||
|
type: [Number, String],
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
|
proId: {
|
||||||
|
type: [Number, String],
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -79,6 +87,8 @@ export default {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
workerId: this.workerId,
|
workerId: this.workerId,
|
||||||
|
subId: this.subId,
|
||||||
|
proId: this.proId,
|
||||||
},
|
},
|
||||||
columnData: [
|
columnData: [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<PersonDetails :workerId="workerId" />
|
<PersonDetails :workerId="workerId" :subId="subId" :proId="proId" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -14,13 +14,17 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
workerId: null,
|
workerId: null,
|
||||||
|
subId: null,
|
||||||
|
proId: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
$route: {
|
$route: {
|
||||||
handler(newVal) {
|
handler(newVal) {
|
||||||
const { workerId } = newVal.query
|
const { workerId, subId, proId } = newVal.query
|
||||||
this.workerId = workerId
|
this.workerId = workerId
|
||||||
|
this.subId = subId
|
||||||
|
this.proId = proId
|
||||||
},
|
},
|
||||||
immediate: true,
|
immediate: true,
|
||||||
deep: true,
|
deep: true,
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,17 @@
|
||||||
:columnsList="columnsList"
|
:columnsList="columnsList"
|
||||||
:request-api="getPersonCountListAPI"
|
:request-api="getPersonCountListAPI"
|
||||||
>
|
>
|
||||||
|
<template slot="btn" slot-scope="{ queryParams }">
|
||||||
|
<el-button
|
||||||
|
plain
|
||||||
|
size="mini"
|
||||||
|
type="success"
|
||||||
|
icon="el-icon-download"
|
||||||
|
@click="onHandleExport(queryParams)"
|
||||||
|
>
|
||||||
|
导出
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
<template slot="handle" slot-scope="{ data }">
|
<template slot="handle" slot-scope="{ data }">
|
||||||
<el-button
|
<el-button
|
||||||
plain
|
plain
|
||||||
|
|
@ -49,9 +60,22 @@ export default {
|
||||||
name: 'PersonCountDetail',
|
name: 'PersonCountDetail',
|
||||||
query: {
|
query: {
|
||||||
workerId: data.workerId,
|
workerId: data.workerId,
|
||||||
|
subId: '',
|
||||||
|
proId: '',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 导出
|
||||||
|
onHandleExport(queryParams) {
|
||||||
|
// this.download(
|
||||||
|
// '/bmw/workerStatistics/exportWorkerList',
|
||||||
|
// {
|
||||||
|
// ...queryParams,
|
||||||
|
// },
|
||||||
|
// '人员统计.xlsx',
|
||||||
|
// )
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -541,7 +541,17 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
// 查看人员详情
|
// 查看人员详情
|
||||||
onHandleCheckUserName(workerId) {},
|
onHandleCheckUserName(workerId) {
|
||||||
|
this.dialogConfig.outerVisible = false
|
||||||
|
this.$router.push({
|
||||||
|
name: 'PersonCountDetail',
|
||||||
|
query: {
|
||||||
|
workerId,
|
||||||
|
proId: this.proId,
|
||||||
|
subId: '',
|
||||||
|
},
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 格式化货币显示
|
* 格式化货币显示
|
||||||
|
|
|
||||||
|
|
@ -541,7 +541,17 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
// 查看人员详情
|
// 查看人员详情
|
||||||
onHandleCheckUserName(workerId) {},
|
onHandleCheckUserName(workerId) {
|
||||||
|
this.dialogConfig.outerVisible = false
|
||||||
|
this.$router.push({
|
||||||
|
name: 'PersonCountDetail',
|
||||||
|
query: {
|
||||||
|
workerId,
|
||||||
|
subId: this.subId,
|
||||||
|
proId: '',
|
||||||
|
},
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 格式化货币显示
|
* 格式化货币显示
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue