|
@@ -16,7 +16,7 @@
|
|
<i class="iconfont firerock-iconbaobiao"></i>
|
|
<i class="iconfont firerock-iconbaobiao"></i>
|
|
<span>项目报表服务</span>
|
|
<span>项目报表服务</span>
|
|
</template>
|
|
</template>
|
|
- <el-menu-item index="1-1"><p @click="ssl(0)">项目报表</p></el-menu-item>
|
|
|
|
|
|
+ <el-menu-item index="1-1" ><p @click="ssl(0)">项目报表</p></el-menu-item>
|
|
<el-menu-item index="1-2" v-if="permissions.reportTask"><p @click="ssl(1)">项目任务报表</p></el-menu-item>
|
|
<el-menu-item index="1-2" v-if="permissions.reportTask"><p @click="ssl(1)">项目任务报表</p></el-menu-item>
|
|
<el-menu-item index="1-3" v-if="permissions.reportCostOf"><p @click="ssl(2)">项目成本报表</p></el-menu-item>
|
|
<el-menu-item index="1-3" v-if="permissions.reportCostOf"><p @click="ssl(2)">项目成本报表</p></el-menu-item>
|
|
<el-menu-item index="1-4" v-if="permissions.reportCostWarning"><p @click="ssl(7)">工时成本预警表</p></el-menu-item>
|
|
<el-menu-item index="1-4" v-if="permissions.reportCostWarning"><p @click="ssl(7)">工时成本预警表</p></el-menu-item>
|
|
@@ -41,7 +41,7 @@
|
|
<div ref="staff" style="margin: 5px 0px 0px 200px; width: 84%">
|
|
<div ref="staff" style="margin: 5px 0px 0px 200px; width: 84%">
|
|
<div class="staff">
|
|
<div class="staff">
|
|
<!--项目报表 -->
|
|
<!--项目报表 -->
|
|
- <el-table v-if="ins == 0" :key="ins" border :data="list" highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;">
|
|
|
|
|
|
+ <el-table v-if="ins == 0" :key="ins" border :data="list0" highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;">
|
|
<el-table-column prop="projectCode" label="项目编号" width="120"></el-table-column>
|
|
<el-table-column prop="projectCode" label="项目编号" width="120"></el-table-column>
|
|
<el-table-column prop="projectName" label="项目名称" >
|
|
<el-table-column prop="projectName" label="项目名称" >
|
|
<template slot-scope="scope" >
|
|
<template slot-scope="scope" >
|
|
@@ -81,7 +81,7 @@
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
|
<!-- 项目任务报表 -->
|
|
<!-- 项目任务报表 -->
|
|
- <el-table v-if="ins == 1" :key="ins" border :data="list" highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;">
|
|
|
|
|
|
+ <el-table v-if="ins == 1" :key="ins" border :data="list1" highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;">
|
|
<el-table-column prop="project_code" label="项目编号" width="120"></el-table-column>
|
|
<el-table-column prop="project_code" label="项目编号" width="120"></el-table-column>
|
|
<el-table-column prop="project_name" label="项目名称" width="200">
|
|
<el-table-column prop="project_name" label="项目名称" width="200">
|
|
<template slot-scope="scope" >
|
|
<template slot-scope="scope" >
|
|
@@ -121,7 +121,7 @@
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
|
<!--项目成本报表 -->
|
|
<!--项目成本报表 -->
|
|
- <el-table v-if="ins == 2" :key="ins" border :data="list" highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;">
|
|
|
|
|
|
+ <el-table v-if="ins == 2" :key="ins" border :data="list2" highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;">
|
|
<el-table-column prop="projectCode" label="项目编号" width="120"></el-table-column>
|
|
<el-table-column prop="projectCode" label="项目编号" width="120"></el-table-column>
|
|
<el-table-column prop="projectName" label="项目名称" >
|
|
<el-table-column prop="projectName" label="项目名称" >
|
|
<template slot-scope="scope" >
|
|
<template slot-scope="scope" >
|
|
@@ -161,7 +161,7 @@
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
|
<!--项目收支平衡表 -->
|
|
<!--项目收支平衡表 -->
|
|
- <el-table v-if="ins == 3" :key="ins" border :data="list" highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;">
|
|
|
|
|
|
+ <el-table v-if="ins == 3" :key="ins" border :data="list3" highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;">
|
|
<el-table-column prop="projectCode" label="项目编号" width="120"></el-table-column>
|
|
<el-table-column prop="projectCode" label="项目编号" width="120"></el-table-column>
|
|
<el-table-column prop="projectName" label="项目名称" >
|
|
<el-table-column prop="projectName" label="项目名称" >
|
|
<template slot-scope="scope" >
|
|
<template slot-scope="scope" >
|
|
@@ -210,7 +210,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
<!--客户项目报表 -->
|
|
<!--客户项目报表 -->
|
|
- <el-table v-if="ins == 4" border :data="list" :key="ins"
|
|
|
|
|
|
+ <el-table v-if="ins == 4" border :data="list4" :key="ins"
|
|
highlight-current-row v-loading="listLoading" :height="tableHeight"
|
|
highlight-current-row v-loading="listLoading" :height="tableHeight"
|
|
style="width: 100%;">
|
|
style="width: 100%;">
|
|
<el-table-column prop="customerName" label="客户名称" ></el-table-column>
|
|
<el-table-column prop="customerName" label="客户名称" ></el-table-column>
|
|
@@ -261,7 +261,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
<!--项目阶段汇总工时报表 -->
|
|
<!--项目阶段汇总工时报表 -->
|
|
- <el-table v-if="ins == 5" border :data="list" :key="ins"
|
|
|
|
|
|
+ <el-table v-if="ins == 5" border :data="list5" :key="ins"
|
|
highlight-current-row v-loading="listLoading" :height="tableHeight"
|
|
highlight-current-row v-loading="listLoading" :height="tableHeight"
|
|
style="width: 100%;">
|
|
style="width: 100%;">
|
|
<el-table-column prop="projectCode" label="项目编号" width="120" fixed ></el-table-column>
|
|
<el-table-column prop="projectCode" label="项目编号" width="120" fixed ></el-table-column>
|
|
@@ -502,7 +502,11 @@ export default {
|
|
importanceList:[{id:1,label:'正常'},{id:2,label:'紧急'},{id:3,label:'重要'},{id:4,label:'重要且紧急'}],
|
|
importanceList:[{id:1,label:'正常'},{id:2,label:'紧急'},{id:3,label:'重要'},{id:4,label:'重要且紧急'}],
|
|
listLoading:false,
|
|
listLoading:false,
|
|
tableHeight:0,
|
|
tableHeight:0,
|
|
- list:[],
|
|
|
|
|
|
+ list1:[],
|
|
|
|
+ list2: [],
|
|
|
|
+ list3: [],
|
|
|
|
+ list4: [],
|
|
|
|
+ list5: [],
|
|
total:0,
|
|
total:0,
|
|
users: [], // 人员信息
|
|
users: [], // 人员信息
|
|
displayTable: false,
|
|
displayTable: false,
|
|
@@ -526,7 +530,7 @@ export default {
|
|
dialogVisibleDetails: false,
|
|
dialogVisibleDetails: false,
|
|
detailsList: [],
|
|
detailsList: [],
|
|
baseCostList: [],
|
|
baseCostList: [],
|
|
- baseCostColumns: []
|
|
|
|
|
|
+ baseCostColumns: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
@@ -675,6 +679,7 @@ export default {
|
|
this.overTime()
|
|
this.overTime()
|
|
} else if (this.ins == 7) {
|
|
} else if (this.ins == 7) {
|
|
this.getBaseCost()
|
|
this.getBaseCost()
|
|
|
|
+ this.$refs.eltable7.doLayout()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
exportExcel() {
|
|
exportExcel() {
|
|
@@ -749,7 +754,7 @@ export default {
|
|
},
|
|
},
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
- this.list = res.data.records;
|
|
|
|
|
|
+ this.list4 = res.data.records;
|
|
this.total = res.data.total;
|
|
this.total = res.data.total;
|
|
this.listLoading = false;
|
|
this.listLoading = false;
|
|
} else {
|
|
} else {
|
|
@@ -774,7 +779,7 @@ export default {
|
|
},
|
|
},
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
- this.list = res.data.records;
|
|
|
|
|
|
+ this.list3 = res.data.records;
|
|
this.total = res.data.total;
|
|
this.total = res.data.total;
|
|
this.listLoading = false;
|
|
this.listLoading = false;
|
|
} else {
|
|
} else {
|
|
@@ -831,8 +836,9 @@ export default {
|
|
},
|
|
},
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
- this.list = res.data.records;
|
|
|
|
|
|
+ this.list2 = res.data.records;
|
|
this.total = res.data.total;
|
|
this.total = res.data.total;
|
|
|
|
+ this.$forceUpdate()
|
|
this.listLoading = false;
|
|
this.listLoading = false;
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -856,7 +862,7 @@ export default {
|
|
},
|
|
},
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
- this.list = res.data.records;
|
|
|
|
|
|
+ this.list1 = res.data.records;
|
|
this.total = res.data.total;
|
|
this.total = res.data.total;
|
|
this.listLoading = false;
|
|
this.listLoading = false;
|
|
} else {
|
|
} else {
|
|
@@ -882,7 +888,7 @@ export default {
|
|
},
|
|
},
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
- this.list = res.data.records;
|
|
|
|
|
|
+ this.list5 = res.data.records;
|
|
console.log(this.list);
|
|
console.log(this.list);
|
|
this.total = res.data.total;
|
|
this.total = res.data.total;
|
|
this.stages = res.data.stages;
|
|
this.stages = res.data.stages;
|
|
@@ -964,7 +970,7 @@ export default {
|
|
},
|
|
},
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
- this.list = res.data.records;
|
|
|
|
|
|
+ this.list0 = res.data.records;
|
|
this.total = res.data.total;
|
|
this.total = res.data.total;
|
|
this.proList = res.data.records
|
|
this.proList = res.data.records
|
|
this.listLoading = false;
|
|
this.listLoading = false;
|