Browse Source

Merge branch 'master' of http://47.100.37.243:10080/wutt/manHourHousekeeper into master

seyason 3 years ago
parent
commit
90071e3545

+ 2 - 0
fhKeeper/formulahousekeeper/timesheet/src/permissions.js

@@ -46,6 +46,7 @@ const StringUtil = {
         reportOvertime : false, // 加班情况统计表 //
         reportOvertime : false, // 加班情况统计表 //
         reportCost: false, // 查看加班成本 //
         reportCost: false, // 查看加班成本 //
         reportCostWarning: false, // 工时成本预警表 //
         reportCostWarning: false, // 工时成本预警表 //
+        reportPhaseCost: false, // 查看阶段成本 //
 
 
         // 请假模块
         // 请假模块
         leaveFil : false, // 请假填报 // 
         leaveFil : false, // 请假填报 // 
@@ -127,6 +128,7 @@ const StringUtil = {
         arr[i] == '查看加班成本' ? obj.reportCost = true : ''
         arr[i] == '查看加班成本' ? obj.reportCost = true : ''
         arr[i] == '下拨成本预算' ? obj.projectAllocate = true : ''
         arr[i] == '下拨成本预算' ? obj.projectAllocate = true : ''
         arr[i] == '工时成本预警表' ? obj.reportCostWarning = true : ''
         arr[i] == '工时成本预警表' ? obj.reportCostWarning = true : ''
+        arr[i] == '查看阶段成本' ? obj.reportPhaseCost = true : ''
     }
     }
 
 
     return obj
     return obj

+ 1 - 1
fhKeeper/formulahousekeeper/timesheet/src/views/corpreport/list.vue

@@ -273,7 +273,7 @@
                 <el-table-column v-for="item in stages" :label="item" min-width="150" :key="item" align="right" show-overflow-tooltip="true" >
                 <el-table-column v-for="item in stages" :label="item" min-width="150" :key="item" align="right" show-overflow-tooltip="true" >
                   <template slot-scope="scope" >
                   <template slot-scope="scope" >
                     {{scope.row.stageCostList.filter(s=>s.stageName == item).length == 0?'0':scope.row.stageCostList.filter(s=>s.stageName == item)[0].workingTime.toFixed(1)}}h
                     {{scope.row.stageCostList.filter(s=>s.stageName == item).length == 0?'0':scope.row.stageCostList.filter(s=>s.stageName == item)[0].workingTime.toFixed(1)}}h
-                    /¥{{scope.row.stageCostList.filter(s=>s.stageName == item).length == 0?'0':scope.row.stageCostList.filter(s=>s.stageName == item)[0].cost.toFixed(1)}}
+                    <span v-if="permissions.reportPhaseCost">/¥{{scope.row.stageCostList.filter(s=>s.stageName == item).length == 0?'0':scope.row.stageCostList.filter(s=>s.stageName == item)[0].cost.toFixed(1)}}</span>
                   </template>
                   </template>
                  
                  
                 </el-table-column>
                 </el-table-column>