|
@@ -306,34 +306,39 @@
|
|
|
<el-table v-if="ins == 7" :key="8" border :data="mealApplicationList" highlight-current-row v-loading="listLoading" :height="+tableHeight - 1" style="width: 100%;">
|
|
<el-table v-if="ins == 7" :key="8" border :data="mealApplicationList" highlight-current-row v-loading="listLoading" :height="+tableHeight - 1" style="width: 100%;">
|
|
|
<el-table-column align="center" prop="departmentCascade" label="部门名称" min-width="150" fixed="left">
|
|
<el-table-column align="center" prop="departmentCascade" label="部门名称" min-width="150" fixed="left">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- {{scope.row.departmentCascade}}
|
|
|
|
|
|
|
+ {{scope.row.departmentName}}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="name" label="人员" min-width="100" fixed="left"></el-table-column>
|
|
<el-table-column align="center" prop="name" label="人员" min-width="100" fixed="left"></el-table-column>
|
|
|
- <el-table-column v-for="(item, index) in personWorkHoursWagesHead" :key="index" :label="item" align="center" min-width="150">
|
|
|
|
|
|
|
+ <el-table-column v-for="(item, index) in personMealHead" :key="index" :label="item" align="center" min-width="150">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <div v-for="(items, indexs) in scope.row.personWorkHoursWages" :key="indexs" :class="`${scope.row.departmentCascade== '小计' ? '' : 'colorText'}`">
|
|
|
|
|
- <div v-if="items.crateDate == item" @click.stop="showReportDetail(scope.row,item,0)">
|
|
|
|
|
- <div style="color: black;" v-if="items.planWorkTime">平均 {{items.planWorkTime}}分钟 {{items.planCost}}元</div>
|
|
|
|
|
- <!-- <div @click.stop="showReportDetail(scope.row,item,0)" v-if="items.workTime>0">已填 {{items.workTime}}分钟 {{items.cost}}元 </div>{{items.leave}}
|
|
|
|
|
- <div style="color: green;" @click.stop="showTempReportDetail(scope.row,item,0)" v-if="items.tempWorkTime>0||items.tempCost>0">临时报工 {{items.tempWorkTime}}分钟 {{items.tempCost}}元</div> -->
|
|
|
|
|
- <div v-if="items.workTime>0">已填 {{items.workTime}}分钟 {{items.cost}}元 </div>{{items.leave}}
|
|
|
|
|
- <div style="color: green;" v-if="items.tempWorkTime>0||items.tempCost>0">临时报工 {{items.tempWorkTime}}分钟 {{items.tempCost}}元</div>
|
|
|
|
|
- <div style="color: red;" v-if="items.surplusTime">剩余 {{items.surplusTime}}分钟 {{items.surplusCost}}元</div>
|
|
|
|
|
|
|
+ <div v-for="(items, indexs) in scope.row.personList" :key="indexs" >
|
|
|
|
|
+ <div v-if="items.date == item">
|
|
|
|
|
+ <div v-if = "items.userId !== '0' " :style="textColorStyle(items.status)">
|
|
|
|
|
+ {{items.statusString || '暂无状态' }}
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div v-if = "items.userId === '0' && items.applyAmount > 0" style = "color: #ff0000; ">
|
|
|
|
|
+ <div>
|
|
|
|
|
+ 报餐人数:{{items.applyAmount}}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div>
|
|
|
|
|
+ 就餐人数:{{items.getMeal}}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div>
|
|
|
|
|
+ 漏餐人数:{{items.overLine}}
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="totalResult" label="合计" min-width="180">
|
|
<el-table-column align="center" prop="totalResult" label="合计" min-width="180">
|
|
|
<template slot-scope="scope" >
|
|
<template slot-scope="scope" >
|
|
|
- <div @click="showReportDetail(scope.row,item,1)">
|
|
|
|
|
- <div style="color: black;">{{scope.row.totalPlanResult | formatStr('平均') }}</div>
|
|
|
|
|
- <!-- <div style="color: #02a7f0;" @click="showReportDetail(scope.row,item,1)"> {{scope.row.totalResult | formatStr('已填')}}</div>
|
|
|
|
|
- <div style="color: green;" @click="showTempReportDetail(scope.row,item,1)">{{scope.row.totalTempResult | formatStr('临时报工')}}</div> -->
|
|
|
|
|
- <div style="color: #02a7f0;" > {{scope.row.totalResult | formatStr('已填')}}</div>
|
|
|
|
|
- <div style="color: green;" >{{scope.row.totalTempResult | formatStr('临时报工')}}</div>
|
|
|
|
|
- <div style="color: red;">{{scope.row.totalSurplusResult | formatStr('剩余') }}</div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div style="color: #02a7f0;" > 报餐次数:{{scope.row.totalApplication}}</div>
|
|
|
|
|
+ <div style="color: red;"> 就餐次数:{{scope.row.totalGetMeal }}</div>
|
|
|
|
|
+ <div style="color: green;" > 缺餐次数:{{scope.row.totalOverLine}}</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -734,6 +739,7 @@ export default {
|
|
|
{ name: '饿哇噶', id: 1 },
|
|
{ name: '饿哇噶', id: 1 },
|
|
|
{ name: '第三方', id: 2}
|
|
{ name: '第三方', id: 2}
|
|
|
],
|
|
],
|
|
|
|
|
+ personMealHead:[],
|
|
|
|
|
|
|
|
//筛选项
|
|
//筛选项
|
|
|
productId:"",
|
|
productId:"",
|
|
@@ -751,7 +757,20 @@ export default {
|
|
|
exportTargetUserId:null,
|
|
exportTargetUserId:null,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
- computed: {},
|
|
|
|
|
|
|
+ computed: {
|
|
|
|
|
+ textColorStyle() {
|
|
|
|
|
+ return (status) => {
|
|
|
|
|
+ const colorMap = {
|
|
|
|
|
+ 0: { color: '#ff0000' },
|
|
|
|
|
+ 1: { color: '#0000ff' },
|
|
|
|
|
+ 2: { color: '#ff0000' },
|
|
|
|
|
+ 3: { color: '#0000ff' },
|
|
|
|
|
+ };
|
|
|
|
|
+ return colorMap[status] || { color: '#333333' }; // 默认颜色
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
watch: {},
|
|
watch: {},
|
|
|
created() {
|
|
created() {
|
|
|
let height = window.innerHeight;
|
|
let height = window.innerHeight;
|
|
@@ -1367,6 +1386,9 @@ export default {
|
|
|
res => {
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
|
console.log(res.data)
|
|
console.log(res.data)
|
|
|
|
|
+ this.mealApplicationList = res.data.records
|
|
|
|
|
+ this.personMealHead = res.data.header
|
|
|
|
|
+ this.total=res.data.total
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
this.$message({
|
|
this.$message({
|
|
@@ -1628,6 +1650,15 @@ export default {
|
|
|
url += "/exportPlanDataWithUserId";
|
|
url += "/exportPlanDataWithUserId";
|
|
|
sl.userId=this.exportTargetUserId
|
|
sl.userId=this.exportTargetUserId
|
|
|
}
|
|
}
|
|
|
|
|
+ }
|
|
|
|
|
+ else if (this.ins == 7) {
|
|
|
|
|
+ console.log("---------------------------------")
|
|
|
|
|
+ fName = '就餐数据表_' + '.xlsx';
|
|
|
|
|
+ sl.startDate=this.rangeDatas[0];
|
|
|
|
|
+ sl.endDate=this.rangeDatas[1];
|
|
|
|
|
+ url += "/exportMealStatistic";
|
|
|
|
|
+ sl.deptIds=deptArr.join(',');
|
|
|
|
|
+ console.log("---------------------------------" +url)
|
|
|
}
|
|
}
|
|
|
this.http.post(url, sl,
|
|
this.http.post(url, sl,
|
|
|
res => {
|
|
res => {
|