|
|
@@ -108,26 +108,39 @@
|
|
|
<div class="item__txt">{{scope.row.serialNumber}}</div>
|
|
|
</div> -->
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="name" fixed label="项目名称" width="300">
|
|
|
+ <el-table-column prop="name" fixed label="项目名称" width="250">
|
|
|
<!-- <div class="item" slot-scope="scope">
|
|
|
<el-input size="mini" class="item__input" v-model="scope.row.name" @blur="save(scope.row)"></el-input>
|
|
|
<div class="item__txt">{{scope.row.name}}</div>
|
|
|
</div> -->
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="budgetRevenue" label="预算收入" width="200">
|
|
|
- <!-- <div class="item" slot-scope="scope">
|
|
|
- <el-input-number
|
|
|
- style="width:180px"
|
|
|
- size="mini"
|
|
|
- class="item__input"
|
|
|
- :precision="2" :step="0.1"
|
|
|
- v-model="scope.row.budgetRevenue"
|
|
|
- @blur="save(scope.row)">
|
|
|
- </el-input-number>
|
|
|
- <div class="item__txt">{{scope.row.budgetRevenue}}</div>
|
|
|
- </div> -->
|
|
|
+ <el-table-column label="预算修改明细" width="120">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-link
|
|
|
+ v-if="!scope.row.isSum&&scope.row.budgetRevenue!=scope.row.curBudgetRevenue"
|
|
|
+ type="primary"
|
|
|
+ @click="handleBudgetDetail(scope.row)">查看明细</el-link>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="accountName" label="账户名称" width="180">
|
|
|
+ <el-table-column prop="budgetRevenue" label="原预算收入" width="130">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{formaNum(scope.row.budgetRevenue)}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="curBudgetRevenue" label="当前预算收入" width="130">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.budgetRevenue<scope.row.curBudgetRevenue" style="color:#F56C6C">
|
|
|
+ {{formaNum(scope.row.curBudgetRevenue)}}
|
|
|
+ </span>
|
|
|
+ <span v-else-if="scope.row.budgetRevenue>scope.row.curBudgetRevenue" style="color:#67C23A">
|
|
|
+ {{formaNum(scope.row.curBudgetRevenue)}}
|
|
|
+ </span>
|
|
|
+ <span v-else >
|
|
|
+ {{formaNum(scope.row.curBudgetRevenue)}}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="accountName" label="账户名称" width="150">
|
|
|
<div class="item" slot-scope="scope">
|
|
|
<div v-if="!scope.row.isSum">
|
|
|
<el-input size="mini" class="item__input" v-model="scope.row.accountName" @blur="save(scope.row)"></el-input>
|
|
|
@@ -135,6 +148,11 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column prop="budgetRevenue" label="当月到账明细" width="120">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-link v-if="!scope.row.isSum" type="primary" @click="handleDetail(scope.row)">查看明细</el-link>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="curMonthReceived" label="本月到账资金" width="200">
|
|
|
<template slot="header">
|
|
|
<span>本月到账资金</span>
|
|
|
@@ -150,7 +168,9 @@
|
|
|
v-model="scope.row.curMonthReceived"
|
|
|
@blur="saveNum(scope.row)">
|
|
|
</el-input-number>
|
|
|
- <div class="item__txt">{{scope.row.curMonthReceived}}</div>
|
|
|
+ <div class="item__txt">
|
|
|
+ {{formaNum(scope.row.curMonthReceived)}}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="actualTotalRevenue" label="实际总收入" width="200">
|
|
|
@@ -162,7 +182,9 @@
|
|
|
:precision="2" :step="0.1"
|
|
|
v-model="scope.row.actualTotalRevenue"
|
|
|
@blur="save(scope.row)"></el-input-number>
|
|
|
- <div class="item__txt" v-if="!scope.row.isSum">{{scope.row.actualTotalRevenue}}</div>
|
|
|
+ <div class="item__txt" v-if="!scope.row.isSum">
|
|
|
+ {{formaNum(scope.row.actualTotalRevenue)}}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="accumulatedArrears" label="累计欠费" width="200">
|
|
|
@@ -174,7 +196,9 @@
|
|
|
:precision="2" :step="0.1"
|
|
|
v-model="scope.row.accumulatedArrears"
|
|
|
@blur="save(scope.row)"></el-input-number>
|
|
|
- <div class="item__txt" v-if="!scope.row.isSum">{{scope.row.accumulatedArrears}}</div>
|
|
|
+ <div class="item__txt" v-if="!scope.row.isSum">
|
|
|
+ {{formaNum(scope.row.accumulatedArrears)}}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="incomeTimeRange" label="收入时间区间" width="200">
|
|
|
@@ -226,6 +250,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column prop="chargePerson" label="责任人"></el-table-column>
|
|
|
<el-table-column prop="bak" label="备注" width="180">
|
|
|
<div class="item" slot-scope="scope">
|
|
|
<div v-if="!scope.row.isSum">
|
|
|
@@ -291,6 +316,18 @@
|
|
|
>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <incomeModifyRecord-list
|
|
|
+ v-if="showModal"
|
|
|
+ :businessKey="businessKey"
|
|
|
+ :title="modalTitle"
|
|
|
+ @close="onDetailModalClose"
|
|
|
+ ></incomeModifyRecord-list>
|
|
|
+ <budgetModifyRecord-list
|
|
|
+ v-if="showModal2"
|
|
|
+ :businessKey="businessKey"
|
|
|
+ :title="modalTitle2"
|
|
|
+ @close="onDetailModalClose2"
|
|
|
+ ></budgetModifyRecord-list>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -299,6 +336,8 @@
|
|
|
import templateInfoApi from "@/api/base/templateInfo";
|
|
|
import { getToken } from "@/utils/auth"; // get token from cookie
|
|
|
import permissionApi from "@/api/sys/permission";
|
|
|
+ import incomeModifyRecordList from "./incomeModifyRecord-list"
|
|
|
+ import budgetModifyRecordList from "./budgetModifyRecord-list"
|
|
|
|
|
|
export default {
|
|
|
name: 'baseFundIncomeInfoInfo',
|
|
|
@@ -321,9 +360,11 @@
|
|
|
direction: "",
|
|
|
pageSizeList: [10, 20, 30],
|
|
|
multipleSelection: [],
|
|
|
- modalTitle: "",
|
|
|
+ modalTitle: "",
|
|
|
+ modalTitle2: "",
|
|
|
businessKey: "",
|
|
|
showModal: false,
|
|
|
+ showModal2: false,
|
|
|
dialogFormVisible:false,
|
|
|
batchImportVisible: false,
|
|
|
batchImportVisible2:false,
|
|
|
@@ -375,6 +416,18 @@
|
|
|
|
|
|
};
|
|
|
},
|
|
|
+ computed:{
|
|
|
+ formaNum(){
|
|
|
+ return function(numer){
|
|
|
+ if(numer!=null){
|
|
|
+ return numer.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ numer;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
created(){
|
|
|
var self = this;
|
|
|
|
|
|
@@ -761,7 +814,31 @@
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- }
|
|
|
+ },
|
|
|
+ handleDetail(record){
|
|
|
+ var self = this;
|
|
|
+ self.modalTitle = "查看当月到账明细";
|
|
|
+ self.businessKey = record.id;
|
|
|
+ self.showModal = true;
|
|
|
+ },
|
|
|
+ handleBudgetDetail(record){
|
|
|
+ var self = this;
|
|
|
+ self.modalTitle2 = "查看预算修改明细";
|
|
|
+ self.businessKey = record.id;
|
|
|
+ self.showModal2 = true;
|
|
|
+ },
|
|
|
+ onDetailModalClose(refreshed) {
|
|
|
+ this.showModal = false;
|
|
|
+ if(refreshed) {
|
|
|
+ this.changePage(this.pageIndex);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onDetailModalClose2(refreshed) {
|
|
|
+ this.showModal2 = false;
|
|
|
+ if(refreshed) {
|
|
|
+ this.changePage(this.pageIndex);
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
},
|
|
|
mounted: function() {
|
|
|
@@ -781,6 +858,8 @@
|
|
|
});
|
|
|
},
|
|
|
components: {
|
|
|
+ "incomeModifyRecord-list":incomeModifyRecordList,
|
|
|
+ "budgetModifyRecord-list":budgetModifyRecordList
|
|
|
}
|
|
|
};
|
|
|
</script>
|