优化访

This commit is contained in:
java110 2022-07-13 17:21:30 +08:00
parent a99209bc19
commit 5525366346
5 changed files with 7 additions and 4 deletions

View File

@ -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;
}

View File

@ -37,6 +37,7 @@
},
_initEvent: function() {
vc.on('addProxyFee', 'openAddProxyFeeModal', function(_param) {
vc.component.clearAddProxyFeeInfo();
if (_param.hasOwnProperty("objType")) {
$that.addProxyFeeInfo.objType = _param.objType;
}

View File

@ -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) {

View File

@ -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 => {

View File

@ -107,6 +107,7 @@
function(json, res) {
let listRoomData = JSON.parse(json);
if (listRoomData.total < 1) {
vc.toast('未找到房屋');
return;
}
listRoomData.rooms.forEach(_room => {