mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
优化代码
This commit is contained in:
parent
29d2389061
commit
d1abb47776
@ -184,8 +184,8 @@
|
||||
<span class="col-md-1 margin-left">
|
||||
<div class="row"><b>大计</b></div>
|
||||
</span>
|
||||
<span class="col-md-2" v-for="(item,index) in listOweFeeInfo.fees[0].itemTotalOweAmounts">
|
||||
<div>{{item.configName}}: {{item.totalOweAmount}}元</div>
|
||||
<span class="col-md-2" v-for="(item,index) in listOweFeeInfo.feeConfigNames">
|
||||
<div>{{item.configName}}: {{_getFeeOweAllTotalAmount(item)}}元</div>
|
||||
</span>
|
||||
<span class="col-md-2">
|
||||
<div>合计: {{listOweFeeInfo.fees[0].totalOweAmount}}元</div>
|
||||
|
||||
@ -250,6 +250,22 @@
|
||||
_openChooseFloorMethod: function () {
|
||||
vc.emit('searchFloor', 'openSearchFloorModel', {});
|
||||
},
|
||||
_getFeeOweAllTotalAmount: function (_item) {
|
||||
let _value = 0;
|
||||
let _itemTotalOweAmounts = $that.listOweFeeInfo.fees[0].itemTotalOweAmounts;
|
||||
if (!$that.listOweFeeInfo.fees[0] || !$that.listOweFeeInfo.fees[0].itemTotalOweAmounts) {
|
||||
return _value;
|
||||
}
|
||||
|
||||
_itemTotalOweAmounts.forEach(item => {
|
||||
if (_item.configName == item.configName) {
|
||||
_value = item.totalOweAmount;
|
||||
}
|
||||
})
|
||||
|
||||
return _value;
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user