优化合同详情功能

This commit is contained in:
Your Name 2023-04-29 05:36:49 +08:00
parent b727499539
commit 0a0343ebf5
5 changed files with 34 additions and 8 deletions

View File

@ -148,7 +148,14 @@
<div> 注意: 应收结束时间 “-” 表示未到应收时间 或 收费已结束</div>
<div>应收金额为-1 一般为费用项公式设置出错请检查</div>
</div>
<div class="col-sm-8">
<div class="col-sm-2">
<span>
<span>
<vc:i18n name="欠费小计:" namespace="contractDetailRoomFee"></vc:i18n>
</span>{{contractDetailRoomFeeInfo.totalAmount}}
</span>
</div>
<div class="col-sm-6">
<vc:create namespace="contractDetailFee" path="frame/paginationPlus"></vc:create>
</div>
</div>

View File

@ -10,7 +10,8 @@
rooms: [],
contractId: '',
roomNum: '',
allOweFeeAmount: '0'
allOweFeeAmount: '0',
totalAmount:0,
}
},
_initMethod: function () {
@ -50,6 +51,11 @@
total: _feeConfigInfo.records,
currentPage: _page
});
let _totalAmount = 0.0;
_feeConfigInfo.fees.forEach(item => {
_totalAmount += parseFloat(item.amountOwed);
})
$that.contractDetailFeeInfo.totalAmount = _totalAmount.toFixed(2);
$that.$forceUpdate();
},
function() {

View File

@ -163,7 +163,16 @@
<div> 注意: 应收结束时间 “-” 表示未到应收时间 或 收费已结束</div>
<div>应收金额为-1 一般为费用项公式设置出错请检查</div>
</div>
<div class="col-sm-8">
<div class="col-sm-2">
<span>
<span>
<span>
<vc:i18n name="欠费小计" namespace="contractDetailRoomFee"></vc:i18n>
</span>
</span>{{contractDetailRoomFeeInfo.totalAmount}}
</span>
</div>
<div class="col-sm-6">
<vc:create namespace="contractDetailRoomFee" path="frame/paginationPlus"></vc:create>
</div>
</div>

View File

@ -14,7 +14,8 @@
payObjs:[],
payerObjIds: [],
ownerId:'',
state:'2008001'
state:'2008001',
totalAmount:0,
}
},
_initMethod: function () {
@ -57,6 +58,11 @@
total: _feeConfigInfo.records,
currentPage: _page
});
let _totalAmount = 0.0;
_feeConfigInfo.fees.forEach(item => {
_totalAmount += parseFloat(item.amountOwed);
})
$that.contractDetailRoomFeeInfo.totalAmount = _totalAmount.toFixed(2);
$that.$forceUpdate();
},
function() {

View File

@ -162,10 +162,8 @@
</div>
<div>
<span>
<span>
<vc:i18n name="单价" namespace="simplifyRoomFee"></vc:i18n>
</span>
</span>{{fee.squarePrice}}
<vc:i18n name="单价:" namespace="simplifyRoomFee"></vc:i18n>
</span>{{fee.squarePrice}}
</div>
<div>
<span>