|
@@ -667,8 +667,8 @@
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
|
<!-- 人员月度工时表 -->
|
|
<!-- 人员月度工时表 -->
|
|
- <el-table v-if="ins == 14" key="14" border :data="monthlyPersonnelList" highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;">
|
|
|
|
- <el-table-column prop="name" :label="$t('ren-yuan')" min-width="150">
|
|
|
|
|
|
+ <el-table v-if="ins == 14" key="14" border :data="monthlyPersonnelList" highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;">
|
|
|
|
+ <el-table-column align="center" prop="name" :label="$t('ren-yuan')" min-width="150">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
<span v-if="user.userNameNeedTranslate == '1'">
|
|
<span v-if="user.userNameNeedTranslate == '1'">
|
|
@@ -680,11 +680,29 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="jobNumber" :label="$t('Worknumber')" min-width="250"></el-table-column>
|
|
|
|
- <el-table-column prop="standardHours" :label="$t('biao-zhun-gong-shi')" min-width="250"></el-table-column>
|
|
|
|
- <el-table-column prop="workingTime" :label="$t('shi-ji-gong-shi')" min-width="250"></el-table-column>
|
|
|
|
- <el-table-column prop="leaveTime" :label="$t('qing-jia-gong-shi')" min-width="250"></el-table-column>
|
|
|
|
- <el-table-column prop="whether" :label="$t('shi-fou-man-zu-gong-shi')" min-width="250">
|
|
|
|
|
|
+ <el-table-column align="center" prop="jobNumber" :label="$t('Worknumber')" min-width="250"></el-table-column>
|
|
|
|
+ <el-table-column align="center" prop="standardHours" :label="$t('biao-zhun-gong-shi') + '(h)'" min-width="180">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ {{scope.row.standardHours | decimalPoint}}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column align="center" prop="workingTime" :label="$t('shi-ji-gong-shi') + '(h)'" min-width="180">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ {{scope.row.workingTime | decimalPoint}}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column align="center" prop="leaveTime" :label="$t('qing-jia-gong-shi') + '(h)'" min-width="180">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ {{scope.row.leaveTime | decimalPoint}}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column align="center" prop="whether" :label="$t('shi-fou-man-zu-gong-shi')" min-width="180">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
<span>{{scope.row.whether == 0 ? '否' : '是'}}</span>
|
|
<span>{{scope.row.whether == 0 ? '否' : '是'}}</span>
|
|
@@ -1027,6 +1045,23 @@ export default {
|
|
return intPartFormat + '.' + floatPart
|
|
return intPartFormat + '.' + floatPart
|
|
}
|
|
}
|
|
return intPartFormat + floatPart
|
|
return intPartFormat + floatPart
|
|
|
|
+ },
|
|
|
|
+ decimalPoint(value) {
|
|
|
|
+ var f = parseFloat(value);
|
|
|
|
+ if (isNaN(f)) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ var f = Math.round(f*100)/100;
|
|
|
|
+ var s = f.toString();
|
|
|
|
+ var rs = s.indexOf('.');
|
|
|
|
+ if (rs < 0) {
|
|
|
|
+ rs = s.length;
|
|
|
|
+ s += '.';
|
|
|
|
+ }
|
|
|
|
+ while (s.length <= rs + 2) {
|
|
|
|
+ s += '0';
|
|
|
|
+ }
|
|
|
|
+ return s;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|