|
@@ -23,6 +23,9 @@
|
|
<div class="lableCon" v-for="item in nowBaseList" :key="item.id">
|
|
<div class="lableCon" v-for="item in nowBaseList" :key="item.id">
|
|
<div><span class="gray_label">{{item.baseName}}:</span></div>
|
|
<div><span class="gray_label">{{item.baseName}}:</span></div>
|
|
<div><span style="padding-right:20px;float:right;">¥{{item.baseAmount==null?'-':item.baseAmount | numberToCurrency}}</span></div>
|
|
<div><span style="padding-right:20px;float:right;">¥{{item.baseAmount==null?'-':item.baseAmount | numberToCurrency}}</span></div>
|
|
|
|
+ <div>
|
|
|
|
+ <span style="padding-right:15px;float:right;">剩余 <span :style="item.baseAmount * 0.9 < item.realCost ? 'color:red;' : ''">¥{{(item.baseAmount - item.realCost) | numberToCurrency}}</span></span>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div style="height:24px">
|
|
<div style="height:24px">
|
|
<!-- <el-link style="float:right;margin-right:10px" @click="addCostAdd" size="small" v-if="permissions.projectAllocate" type="primary">下拨成本预算</el-link> -->
|
|
<!-- <el-link style="float:right;margin-right:10px" @click="addCostAdd" size="small" v-if="permissions.projectAllocate" type="primary">下拨成本预算</el-link> -->
|
|
@@ -35,9 +38,9 @@
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
<div class="box">
|
|
<div class="box">
|
|
<el-table :data="addList" :loading="ListLoading" :default-sort="{prop:'indate',order:'descending'}">
|
|
<el-table :data="addList" :loading="ListLoading" :default-sort="{prop:'indate',order:'descending'}">
|
|
- <el-table-column v-for="item in addListColumns" :key="item.id" :label="item.name" align="right" header-align="center">
|
|
|
|
|
|
+ <el-table-column v-for="item in addListColumns" :key="item.id" :label="item.name" align="right" header-align="right">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span>¥{{itemListFilter(scope.row.addItemList,item.id) | numberToCurrency}}</span>
|
|
|
|
|
|
+ <span style="margin-right: 20px;">¥{{itemListFilter(scope.row.addItemList,item.id) | numberToCurrency}}</span>
|
|
<!-- <span style="margin-right:30px">{{itemListFilter(scope.row.addItemList,item.id) == false ? '¥' + (itemListFilter(scope.row.addItemList,item.id) | numberToCurrency) : '-'}}</span> -->
|
|
<!-- <span style="margin-right:30px">{{itemListFilter(scope.row.addItemList,item.id) == false ? '¥' + (itemListFilter(scope.row.addItemList,item.id) | numberToCurrency) : '-'}}</span> -->
|
|
<!-- <span style="margin-right:30px">{{itemListFilter(scope.row.addItemList,item.id) == false ? '-' : '¥' + itemListFilter(scope.row.addItemList,item.id) | numberToCurrency}}</span> -->
|
|
<!-- <span style="margin-right:30px">{{itemListFilter(scope.row.addItemList,item.id) == false ? '-' : '¥' + itemListFilter(scope.row.addItemList,item.id) | numberToCurrency}}</span> -->
|
|
</template>
|
|
</template>
|
|
@@ -374,6 +377,14 @@
|
|
});
|
|
});
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ refreshPage(){
|
|
|
|
+ this.curProjectId = parseInt(this.$route.params.id);
|
|
|
|
+ this.getProjectBaseData(this.curProjectId)
|
|
|
|
+ this.getAddList()
|
|
|
|
+ this.getNowBase()
|
|
|
|
+ this.getProjectInfo()
|
|
|
|
+ }
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
let height = window.innerHeight;
|
|
let height = window.innerHeight;
|
|
@@ -387,7 +398,7 @@
|
|
this.curProjectId = parseInt(this.$route.params.id);
|
|
this.curProjectId = parseInt(this.$route.params.id);
|
|
// var _this = this;
|
|
// var _this = this;
|
|
// var that = this
|
|
// var that = this
|
|
- console.log("mounted",this.$route.params)
|
|
|
|
|
|
+ console.log("mounted")
|
|
// window.addEventListener("resize", function() {
|
|
// window.addEventListener("resize", function() {
|
|
// // _this.profitChart.resize();
|
|
// // _this.profitChart.resize();
|
|
// // that.profitChart.resize();
|
|
// // that.profitChart.resize();
|
|
@@ -425,6 +436,10 @@
|
|
width: 25%;
|
|
width: 25%;
|
|
display: inline-block;
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
+.lableCon div:nth-child(3){
|
|
|
|
+ width: 24%;
|
|
|
|
+ display: inline-block;
|
|
|
|
+}
|
|
.gray_label {
|
|
.gray_label {
|
|
color: #999;
|
|
color: #999;
|
|
}
|
|
}
|