mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
优化访
This commit is contained in:
parent
a99209bc19
commit
5525366346
@ -34,6 +34,7 @@
|
||||
_initEvent: function() {
|
||||
vc.on('addMeterWater', 'openAddMeterWaterModal', function(_param) {
|
||||
console.log('params :', _param);
|
||||
vc.component.clearAddMeterWaterInfo();
|
||||
if (_param.hasOwnProperty("objType")) {
|
||||
$that.addMeterWaterInfo.objType = _param.objType;
|
||||
}
|
||||
|
||||
@ -37,6 +37,7 @@
|
||||
},
|
||||
_initEvent: function() {
|
||||
vc.on('addProxyFee', 'openAddProxyFeeModal', function(_param) {
|
||||
vc.component.clearAddProxyFeeInfo();
|
||||
if (_param.hasOwnProperty("objType")) {
|
||||
$that.addProxyFeeInfo.objType = _param.objType;
|
||||
}
|
||||
|
||||
@ -80,8 +80,8 @@
|
||||
}
|
||||
});
|
||||
|
||||
vc.initDate('editFeeMaxEndTime', function(_endTime) {
|
||||
$that.editFeeInfo.maxEndTime = _endTime;
|
||||
vc.initDate('editFeeMaxEndTime', function(_maxEndTime) {
|
||||
$that.editFeeInfo.maxEndTime = _maxEndTime;
|
||||
let start = Date.parse(new Date($that.editFeeInfo.startTime))
|
||||
let end = Date.parse(new Date($that.editFeeInfo.maxEndTime))
|
||||
if (start - end >= 0) {
|
||||
|
||||
@ -246,7 +246,7 @@
|
||||
},
|
||||
_changeFeeTypeCdX: function(_feeTypeCd) {
|
||||
// 押金默认开始时间为当前时间,结束时间+1月
|
||||
if(_feeTypeCd == '888800010006'){
|
||||
if (_feeTypeCd == '888800010006') {
|
||||
$that.roomCreateFeeAddInfo.startTime = vc.dateFormat(new Date());
|
||||
$that.roomCreateFeeAddInfo.endTime = vc.addMonthDate(new Date(), 1);
|
||||
}
|
||||
@ -288,7 +288,7 @@
|
||||
},
|
||||
_roomCreateFeeAddIfOnceFee(_configId) {
|
||||
// 当费用类型不是押金或者收费项目没有结束时间时, 将结束时间清空
|
||||
if($that.roomCreateFeeAddInfo.feeTypeCd != '888800010006' || $that.roomCreateFeeAddInfo.feeFlag == '1003006'){
|
||||
if ($that.roomCreateFeeAddInfo.feeTypeCd != '888800010006' || $that.roomCreateFeeAddInfo.feeFlag == '1003006') {
|
||||
$that.roomCreateFeeAddInfo.endTime = '';
|
||||
}
|
||||
$that.roomCreateFeeAddInfo.feeConfigs.forEach(item => {
|
||||
|
||||
@ -107,6 +107,7 @@
|
||||
function(json, res) {
|
||||
let listRoomData = JSON.parse(json);
|
||||
if (listRoomData.total < 1) {
|
||||
vc.toast('未找到房屋');
|
||||
return;
|
||||
}
|
||||
listRoomData.rooms.forEach(_room => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user