mirror of
https://gitee.com/java110/PropertyApp.git
synced 2026-02-23 21:36:39 +08:00
优化
This commit is contained in:
parent
060d03d305
commit
7a203c4e3b
@ -222,5 +222,15 @@ export default {
|
|||||||
second = '0' + second;
|
second = '0' + second;
|
||||||
}
|
}
|
||||||
return year + "-" + month + "-" + day + " " + hour + ":" + minute + ":" + second;
|
return year + "-" + month + "-" + day + " " + hour + ":" + minute + ":" + second;
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {Object} date日期 Y-m-d H:i:s
|
||||||
|
* @param {Object} days 天数
|
||||||
|
*/
|
||||||
|
decSomeDays: function(date, days){
|
||||||
|
let timestamp = new Date(date.replace(/-/g, '/')).getTime();
|
||||||
|
let decstamp = 60 * 60 * 24 * 1000 * days;
|
||||||
|
return this.formatDate(new Date(timestamp - decstamp));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">到期时间</view>
|
<view class="title">到期时间</view>
|
||||||
{{feeInfo.endTime}}
|
{{feeInfo.deadlineTime}}
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">费用标识</view>
|
<view class="title">费用标识</view>
|
||||||
@ -53,6 +53,7 @@
|
|||||||
queryFeeDetail
|
queryFeeDetail
|
||||||
} from '../../api/fee/fee.js';
|
} from '../../api/fee/fee.js';
|
||||||
import {getCurrentCommunity} from '../../api/community/community.js'
|
import {getCurrentCommunity} from '../../api/community/community.js'
|
||||||
|
import dateUtil from '../../lib/java110/utils/date.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -117,7 +118,12 @@
|
|||||||
}
|
}
|
||||||
let _fees = res.data.fees;
|
let _fees = res.data.fees;
|
||||||
_that.feeInfo = _fees[0];
|
_that.feeInfo = _fees[0];
|
||||||
|
// 周期费用 结束日期 -1 天; 其他不变
|
||||||
|
if(_that.feeInfo.feeFlag == '1003006'){
|
||||||
|
_that.feeInfo.deadlineTime = dateUtil.decSomeDays(_that.feeInfo.deadlineTime, 1);
|
||||||
|
}else{
|
||||||
|
_that.feeInfo.deadlineTime = dateUtil.formatDate(new Date(_that.feeInfo.deadlineTime.replace(/-/g, '/')));
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -154,7 +154,6 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let _that = this;
|
let _that = this;
|
||||||
_that.receivableAmount = 0.0;
|
|
||||||
let _objData = {
|
let _objData = {
|
||||||
payObjId: this.roomInfo.roomId,
|
payObjId: this.roomInfo.roomId,
|
||||||
payObjType: '3333',
|
payObjType: '3333',
|
||||||
@ -175,6 +174,7 @@
|
|||||||
_that.fees = [];
|
_that.fees = [];
|
||||||
})
|
})
|
||||||
.then(function(_fees) {
|
.then(function(_fees) {
|
||||||
|
_that.receivableAmount = 0.0;
|
||||||
_fees.forEach(function(_item) {
|
_fees.forEach(function(_item) {
|
||||||
_that.receivableAmount += _item.feePrice;
|
_that.receivableAmount += _item.feePrice;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user