瀏覽代碼

2022.5.10 15:24

山水共长天一色 3 年之前
父節點
當前提交
67f72754eb
共有 1 個文件被更改,包括 18 次插入3 次删除
  1. 18 3
      fhKeeper/formulahousekeeper/timesheet/src/views/project/CostBaseline.vue

+ 18 - 3
fhKeeper/formulahousekeeper/timesheet/src/views/project/CostBaseline.vue

@@ -23,6 +23,9 @@
                             <div class="lableCon" v-for="item in nowBaseList" :key="item.id">
                                 <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:15px;float:right;">剩余 <span :style="item.baseAmount * 0.9 < item.realCost ? 'color:red;' : ''">¥{{(item.baseAmount - item.realCost) | numberToCurrency}}</span></span>
+                                </div>
                             </div>
                             <div style="height:24px">
                             <!-- <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">
                     <div class="box">
                         <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">
-                                    <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> -->
                                 </template>
@@ -374,6 +377,14 @@
                     });
                 });
             },
+
+            refreshPage(){
+                this.curProjectId = parseInt(this.$route.params.id);
+            this.getProjectBaseData(this.curProjectId)
+            this.getAddList()
+            this.getNowBase()
+            this.getProjectInfo()
+            }
         },
         created() {
             let height = window.innerHeight;
@@ -387,7 +398,7 @@
             this.curProjectId = parseInt(this.$route.params.id);
             // var _this = this;
             // var that = this
-            console.log("mounted",this.$route.params)
+            console.log("mounted")
             // window.addEventListener("resize", function() {
             //     // _this.profitChart.resize();
             //     // that.profitChart.resize(); 
@@ -425,6 +436,10 @@
     width: 25%;
     display: inline-block;
 }
+.lableCon div:nth-child(3){
+    width: 24%;
+    display: inline-block;
+}
 .gray_label {
     color: #999;
 }