优化业务受理页面

This commit is contained in:
java110 2020-11-21 17:02:42 +08:00
parent 67b06dc9af
commit 80d06874a1
9 changed files with 116 additions and 8 deletions

View File

@ -23,6 +23,7 @@
_initEvent: function () {
//切换 至费用页面
vc.on('simplifyCarFee', 'switch', function (_param) {
$that.clearSimplifyCarFeeInfo();
vc.copyObject(_param, $that.simplifyCarFeeInfo)
$that._listOwnerCar()
.then((data) => {
@ -166,7 +167,23 @@
$that.simplifyCarFeeInfo.num = _car.num;
$that.simplifyCarFeeInfo.parkingName = _car.areaNum + '停车场' + _car.num + '停车位';
$that._listSimplifyCarFee();
},
clearSimplifyCarFeeInfo: function () {
$that.simplifyCarFeeInfo = {
fees: [],
ownerCars: [],
ownerId: '',
name: '',
carNum: '',
carId: '',
total: 0,
records: 1,
areaNum: '',
num: '',
parkingName: ''
}
}
}
});

View File

@ -6,7 +6,7 @@
simplifyOwnerAccessContolInfo: {
machineTranslates: [],
ownerId: '',
roomId:''
roomId: ''
}
},
_initMethod: function () {
@ -15,6 +15,7 @@
_initEvent: function () {
//切换 至费用页面
vc.on('simplifyOwnerAccessContol', 'switch', function (_param) {
$that.clearSimplifyOwnerAccessContolInfo();
vc.copyObject(_param, $that.simplifyOwnerAccessContolInfo)
$that._listSimplifyOwnerAccessContol(DEFAULT_PAGE, DEFAULT_ROWS);
});
@ -28,7 +29,7 @@
row: _row,
communityId: vc.getCurrentCommunity().communityId,
objId: $that.simplifyOwnerAccessContolInfo.ownerId,
typeCd:'8899'
typeCd: '8899'
}
}
@ -54,6 +55,14 @@
_openEditMachineTranslateModel: function (_machineTranslate) {
vc.emit('editMachineTranslate', 'openEditMachineTranslateModal', _machineTranslate);
},
clearSimplifyOwnerAccessContolInfo: function () {
$that.simplifyOwnerAccessContolInfo = {
machineTranslates: [],
ownerId: '',
roomId: ''
}
}
}
});

View File

@ -14,6 +14,7 @@
_initEvent: function () {
//切换 至费用页面
vc.on('simplifyOwnerCar', 'switch', function (_param) {
$that.clearSimplifyOwnerCarInfo();
vc.copyObject(_param, $that.simplifyOwnerCarInfo)
$that._listSimplifyOwnerCar(DEFAULT_PAGE, DEFAULT_ROWS);
});
@ -74,7 +75,14 @@
},
_addCarParkingSpace: function (_car) {
vc.jumpToPage('/admin.html#/pages/property/carAddParkingSpace?carId=' + _car.carId);
},
clearSimplifyOwnerCarInfo: function () {
$that.simplifyOwnerCarInfo = {
ownerCars: [],
ownerId: ''
}
}
}
});

View File

@ -6,7 +6,7 @@
simplifyOwnerComplaintInfo: {
complaints: [],
ownerId: '',
roomId:''
roomId: ''
}
},
_initMethod: function () {
@ -15,6 +15,7 @@
_initEvent: function () {
//切换 至费用页面
vc.on('simplifyOwnerComplaint', 'switch', function (_param) {
$that.clearSimplifyOwnerComplaintInfo();
vc.copyObject(_param, $that.simplifyOwnerComplaintInfo)
$that._listSimplifyOwnerComplaint(DEFAULT_PAGE, DEFAULT_ROWS);
});
@ -77,7 +78,15 @@
},
_openComplaintDetailModel: function (_complaint) {
vc.emit('complaintDetail', 'openComplaintDetailModal', _complaint);
},
clearSimplifyOwnerComplaintInfo: function () {
$that.simplifyOwnerComplaintInfo = {
complaints: [],
ownerId: '',
roomId: ''
}
}
}
});

View File

@ -14,6 +14,7 @@
_initEvent: function () {
//切换 至费用页面
vc.on('simplifyOwnerMember', 'switch', function (_param) {
$that.clearSimplifyOwnerMemberInfo();
vc.copyObject(_param, $that.simplifyOwnerMemberInfo)
$that._listSimplifyOwnerMember(DEFAULT_PAGE, DEFAULT_ROWS);
@ -45,8 +46,8 @@
console.log('请求失败处理');
});
},
openAddMemberModel(){
vc.emit('addOwner','openAddOwnerModal',vc.component.simplifyOwnerMemberInfo.ownerId
openAddMemberModel() {
vc.emit('addOwner', 'openAddOwnerModal', vc.component.simplifyOwnerMemberInfo.ownerId
);
},
_openDeleteOwnerModel: function (_member) {
@ -57,6 +58,13 @@
_member.ownerId = vc.component.simplifyOwnerMemberInfo.ownerId;
vc.emit('editOwner', 'openEditOwnerModal', _member);
},
clearSimplifyOwnerMemberInfo: function () {
$that.simplifyOwnerMemberInfo = {
members: [],
ownerId: ''
}
}
}
});

View File

@ -6,7 +6,7 @@
simplifyOwnerRepairInfo: {
repairs: [],
ownerId: '',
roomId:''
roomId: ''
}
},
_initMethod: function () {
@ -15,6 +15,7 @@
_initEvent: function () {
//切换 至费用页面
vc.on('simplifyOwnerRepair', 'switch', function (_param) {
$that.clearSimplifyOwnerRepairInfo();
vc.copyObject(_param, $that.simplifyOwnerRepairInfo)
$that._listSimplifyOwnerRepair(DEFAULT_PAGE, DEFAULT_ROWS);
});
@ -52,7 +53,15 @@
},
_openRepairDetail: function (_repairPool) {
vc.jumpToPage('/admin.html#/pages/property/ownerRepairDetail?repairId=' + _repairPool.repairId)
},
clearSimplifyOwnerRepairInfo: function () {
$that.simplifyOwnerRepairInfo = {
repairs: [],
ownerId: '',
roomId: ''
}
}
}
});

View File

@ -16,6 +16,8 @@
_initEvent: function () {
//切换 至费用页面
vc.on('simplifyOwnerTransactionCar', 'switch', function (_param) {
$that.clearSimplifyOwnerTransactionCarInfo();
vc.copyObject(_param, $that.simplifyOwnerTransactionCarInfo)
$that._listTransactionOwnerCar()
.then((data) => {
@ -107,7 +109,16 @@
return;
}
$that._listSimplifyOwnerTransactionCar();
},
clearSimplifyOwnerTransactionCarInfo: function () {
$that.simplifyOwnerTransactionCarInfo = {
machineTranslates: [],
ownerId: '',
carId: '',
ownerCars: []
}
}
}
});

View File

@ -23,6 +23,7 @@
_initEvent: function () {
//切换 至费用页面
vc.on('simplifyRoomFee', 'switch', function (_param) {
$that.clearSimplifyRoomFeeInfo();
vc.copyObject(_param,$that.simplifyRoomFeeInfo)
$that._listSimplifyRoomFee(DEFAULT_PAGE,DEFAULT_ROWS);
});
@ -134,6 +135,20 @@
feeId:_fee.feeId
});
},
clearSimplifyRoomFeeInfo:function(){
$that. simplifyRoomFeeInfo= {
fees: [],
roomId:'',
roomName:'',
name:'',
roomName:'',
floorNum:'',
unitNum:'',
roomNum:'',
}
}
}
});
})(window.vc);

View File

@ -126,8 +126,30 @@
},
_clearData: function () {
$that.simplifyAcceptanceInfo.roomId = '';
$that.simplifyAcceptanceInfo.ownerId = '';
let _searchType = $that.simplifyAcceptanceInfo.searchType;
let _searchValue = $that.simplifyAcceptanceInfo.searchValue;
let _searchPlaceholder = $that.simplifyAcceptanceInfo.searchPlaceholder;
$that.simplifyAcceptanceInfo = {
searchType: _searchType,
searchValue: _searchValue,
searchPlaceholder: _searchPlaceholder,
ownerPhoto: '',
_currentTab: 'simplifyRoomFee',
roomId: '',
ownerId: '',
name: '',
idCard: '',
link: '',
createTime: '',
apartmentName: '',
floorNum: '',
unitNum: '',
roomNum: '',
builtUpArea: '',
feeCoefficient: '',
stateName: '',
roomName: ''
}
}
}