|
@@ -36,7 +36,7 @@
|
|
|
<el-menu-item index="1-12" v-if="permissions.reportPersonnel || permissions.reportResponsible" @click="ssl(11)"><p>{{ $t('statisticsofpersonnelhours') }}</p></el-menu-item>
|
|
|
<el-menu-item index="1-15" v-if="permissions.reportMonthlyPersonnel || permissions.reportResponsiblePersonnel" @click="ssl(14)"><p>{{ $t('ren-yuan-yue-du-gong-shi-biao') }}</p></el-menu-item>
|
|
|
<el-menu-item index="1-16" v-if="permissions.reportAllDepartmentParticipation || permissions.reportResponsibleDepartmentParticipation" @click="ssl(15)"><p>{{ $t('bumenchanyuqingkuang') }}</p></el-menu-item>
|
|
|
- <el-menu-item index="1-17" v-if="permissions.reportPhaseHours || permissions.reportStageWorkingTime" @click="ssl(16)"><p>项目各分组与阶段工时表</p></el-menu-item>
|
|
|
+ <el-menu-item index="1-17" v-if="permissions.reportPhaseHours || permissions.reportStageWorkingTime" @click="ssl(16)"><p>{{ $t('xiang-mu-ge-fen-zu-yu-jie-duan-gong-shi-biao') }}</p></el-menu-item>
|
|
|
<!-- <el-menu-item index="1-12"><p @click="ssl(11)">人员工时统计表</p></el-menu-item> -->
|
|
|
</el-submenu>
|
|
|
</el-menu>
|
|
@@ -512,12 +512,14 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="jobNumber" :label="$t('Worknumber')" width="150"></el-table-column>
|
|
|
- <el-table-column prop="unPublic" :label="$t('ordinaryprojecthours')" min-width="160" align="right">
|
|
|
+ <!-- <el-table-column prop="unPublic" :label="$t('ordinaryprojecthours')" min-width="160" align="right"> -->
|
|
|
+ <el-table-column prop="unPublic" :label="$t('zheng-shi-xiang-mu-gong-shi')" min-width="160" align="right">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{scope.row.unPublic == null? 0 + 'h' : scope.row.unPublic.toFixed(1) + 'h'}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="isPublic" :label="$t('publicprojecthours')" min-width="160" align="right">
|
|
|
+ <!-- <el-table-column prop="isPublic" :label="$t('publicprojecthours')" min-width="160" align="right"> -->
|
|
|
+ <el-table-column prop="isPublic" :label="$t('fei-xiang-mu-gong-shi')" min-width="160" align="right">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{scope.row.isPublic == null? 0 + 'h' : scope.row.isPublic.toFixed(1) + 'h'}}</span>
|
|
|
</template>
|
|
@@ -529,7 +531,8 @@
|
|
|
<span>{{scope.row.workingTime == null? 0 + 'h' : scope.row.workingTime.toFixed(1) + 'h'}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="proportion" :label="$t('publicprojecthourszan')" min-width="130" align="right">
|
|
|
+ <el-table-column prop="proportion" :label="$t('fei-xiang-mu-gong-shi-zhan-bi')" min-width="160" align="right">
|
|
|
+ <!-- <el-table-column prop="proportion" :label="$t('publicprojecthourszan')" min-width="160" align="right"> -->
|
|
|
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -773,20 +776,20 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" prop="deptHeadCount" :label="'部门人数'" min-width="150"></el-table-column>
|
|
|
+ <el-table-column align="center" prop="deptHeadCount" :label="$t('bu-men-ren-shu')" min-width="150"></el-table-column>
|
|
|
<el-table-column align="center" prop="projectCount" :label="$t('can-yu-de-xiang-mu-de-shu-liang')" min-width="150"></el-table-column>
|
|
|
- <el-table-column align="center" prop="centerCount" :label="this.user.timeType.customDegreeName + '数量'" min-width="150"></el-table-column>
|
|
|
+ <el-table-column align="center" prop="centerCount" :label="this.user.timeType.customDegreeName + $t('shu-liang')" min-width="150"></el-table-column>
|
|
|
<el-table-column align="center" prop="peopleCount" :label="$t('can-yu-ren-ci')" min-width="150"></el-table-column>
|
|
|
<el-table-column align="center" prop="tripCount" :label="$t('chu-cha-de-tian-shu')" min-width="150"></el-table-column>
|
|
|
- <el-table-column align="center" prop="tripPeopleCount" :label="'出差人数'" min-width="150"></el-table-column>
|
|
|
+ <el-table-column align="center" prop="tripPeopleCount" :label="$t('chu-cha-ren-shu')" min-width="150"></el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
<!-- 项目各分组与阶段工时表 -->
|
|
|
<el-table v-if="ins == 16" key="16" border :data="groupingItemsArr" highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;">
|
|
|
- <el-table-column align="center" prop="projectCode" label="项目编号" min-width="150"></el-table-column>
|
|
|
- <el-table-column align="center" prop="projectName" label="项目名称" min-width="150"></el-table-column>
|
|
|
- <el-table-column align="center" prop="groupName" label="任务分组" min-width="150"></el-table-column>
|
|
|
- <el-table-column align="center" prop="workingTime" label="分组合计工时" min-width="150"></el-table-column>
|
|
|
+ <el-table-column align="center" prop="projectCode" :label="$t('Itemno')" min-width="150"></el-table-column>
|
|
|
+ <el-table-column align="center" prop="projectName" :label="$t('headerTop.projectName')" min-width="150"></el-table-column>
|
|
|
+ <el-table-column align="center" prop="groupName" :label="$t('other.taskGroup')" min-width="150"></el-table-column>
|
|
|
+ <el-table-column align="center" prop="workingTime" :label="$t('fen-zu-he-ji-gong-shi')" min-width="150"></el-table-column>
|
|
|
<el-table-column align="center" :label="item" min-width="150" v-for="(item, index) in groupingItemsArrTitle" :key="index">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
@@ -972,29 +975,29 @@
|
|
|
</el-table>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <el-dialog title="按季度导出" :visible.sync="byQuarterDialog" width="500px">
|
|
|
+ <el-dialog :title="$t('an-ji-du-dao-chu')" :visible.sync="byQuarterDialog" width="500px">
|
|
|
<el-form>
|
|
|
- <el-form-item label="选择年份">
|
|
|
+ <el-form-item :label="$t('xuan-ze-nian-fen')">
|
|
|
<el-date-picker
|
|
|
v-model="quarterParameter.year"
|
|
|
type="year"
|
|
|
value-format="yyyy"
|
|
|
:clearable="false"
|
|
|
style="width:200px"
|
|
|
- placeholder="选择年">
|
|
|
+ :placeholder="$t('xuan-ze-nian')">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="选择季度">
|
|
|
+ <el-form-item :label="$t('xuan-ze-ji-du')">
|
|
|
<el-select v-model="quarterParameter.quarter" style="width:200px">
|
|
|
- <el-option label="第一季度" :value="1"></el-option>
|
|
|
- <el-option label="第二季度" :value="2"></el-option>
|
|
|
- <el-option label="第三季度" :value="3"></el-option>
|
|
|
- <el-option label="第四季度" :value="4"></el-option>
|
|
|
+ <el-option :label="$t('di-yi-ji-du')" :value="1"></el-option>
|
|
|
+ <el-option :label="$t('di-er-ji-du')" :value="2"></el-option>
|
|
|
+ <el-option :label="$t('di-san-ji-du')" :value="3"></el-option>
|
|
|
+ <el-option :label="$t('di-si-ji-du')" :value="4"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer" style="text-align: center;">
|
|
|
- <el-button @click.native="quarterExport" :loading="exportLoading" type="primary">导出</el-button>
|
|
|
+ <el-button @click.native="quarterExport" :loading="exportLoading" type="primary">{{ $t('export.export') }}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</section>
|
|
@@ -1063,13 +1066,13 @@ export default {
|
|
|
this.$t('pojectbalancesheetincomestatement'),this.$t('customerprojectprofitstatement'),this.$t('projectphasetimesheet'),
|
|
|
this.$t('statisticsofovertimework'),this.$t('timecostearlywarningtable'),this.$t('personneltimeallocationtable'),
|
|
|
this.$t('statisticsofstafffillingintimerate'),this.$t('dailyreporttobereviewedstatistics'),this.$t('statisticsofpersonnelhours'),this.$t('taskgrouptimesheet'),this.$t('projectcostbaselinetable'),
|
|
|
- this.$t('ren-yuan-yue-du-gong-shi-biao'), this.$t('bumenchanyuqingkuang'), '各分组与阶段工时表'],
|
|
|
+ this.$t('ren-yuan-yue-du-gong-shi-biao'), this.$t('bumenchanyuqingkuang'), this.$t('ge-fen-zu-yu-jie-duan-gong-shi-biao')],
|
|
|
|
|
|
shuzArr: [this.$t('projectreport'),this.$t('projectTaskReport'),this.$t('projectcoststatement'),
|
|
|
this.$t('projectbalancesheet'),this.$t('customerprojectincomestatement'),this.$t('projectphasetimesheet'),
|
|
|
this.$t('statisticsofovertimework'),this.$t('timecostearlywarningtable'),this.$t('personneltimeallocationtable'),
|
|
|
this.$t('employeereporttimelinessrate'),this.$t('dailyreporttobereviewedstatistics'),this.$t('statisticsofpersonnelhours'),this.$t('taskgrouptimesheet'),this.$t('projectcostbaselinetable'),
|
|
|
- this.$t('ren-yuan-yue-du-gong-shi-biao'), this.$t('bumenchanyuqingkuang'), '各分组与阶段工时表'],
|
|
|
+ this.$t('ren-yuan-yue-du-gong-shi-biao'), this.$t('bumenchanyuqingkuang'), this.$t('ge-fen-zu-yu-jie-duan-gong-shi-biao')],
|
|
|
|
|
|
ins: 10000,
|
|
|
user: JSON.parse(sessionStorage.user),
|
|
@@ -1262,7 +1265,7 @@ export default {
|
|
|
getUserList() {
|
|
|
console.log(this.shuzArr[this.ins])
|
|
|
this.http.post('/user/getUserListByRole', {
|
|
|
- tableName: this.shuzArr[this.ins] || '加班情况统计表'
|
|
|
+ tableName: this.shuzArr[this.ins] || this.$t('statisticsofovertimework')
|
|
|
},
|
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
@@ -1572,7 +1575,7 @@ export default {
|
|
|
sl.month = this.monthPersonnel + '-01'
|
|
|
sl.departmentId = this.departmentIdArray.length > 0 ? this.departmentIdArray[this.departmentIdArray.length - 1] : ''
|
|
|
} else if(this.ins == 16) {
|
|
|
- fName = '各分组阶段工时表' + '.xls'
|
|
|
+ fName = this.$t('ge-fen-zu-jie-duan-gong-shi-biao') + '.xls'
|
|
|
url += "/exportProjectGroupAndCategoryWorkTime"
|
|
|
sl.startDate = this.rangeDatas[0]
|
|
|
sl.endDate = this.rangeDatas[1]
|
|
@@ -1610,7 +1613,7 @@ export default {
|
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
|
var filePath = res.data;
|
|
|
- var fName = this.$t('personnelfillingtimelyratestatistics') + '(' + this.quarterParameter.year + '第' + this.quarterParameter.quarter + '季度).xls'
|
|
|
+ var fName = this.$t('personnelfillingtimelyratestatistics') + '(' + this.quarterParameter.year + this.$t('di') + this.quarterParameter.quarter + '季度).xls'
|
|
|
const a = document.createElement('a'); // 创建a标签
|
|
|
a.setAttribute('download', fName);// download属性
|
|
|
a.setAttribute('href', filePath);// href链接
|