提交代码

This commit is contained in:
java110 2020-09-12 19:29:33 +08:00
parent f6163f49be
commit ca75cd5e9b
5 changed files with 65 additions and 18 deletions

View File

@ -128,10 +128,6 @@
errInfo: "格式错误"
},
],
});
},
saveRentingConfigInfo: function () {

View File

@ -16,7 +16,7 @@
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
<thead>
<tr>
<th class="text-center">租房ID</th>
<th class="text-center">房屋</th>
<th class="text-center">出租标题</th>
<th class="text-center">租金</th>
<th class="text-center">预付类型</th>
@ -29,7 +29,7 @@
</thead>
<tbody>
<tr v-for="rentingPool in rentingPoolManageInfo.rentingPools">
<td class="text-center">{{rentingPool.rentingId}}</td>
<td class="text-center">{{rentingPool.roomName}}</td>
<td class="text-center">{{rentingPool.rentingTitle}}</td>
<td class="text-center">{{rentingPool.price}}</td>
<td class="text-center">{{rentingPool.paymentType}}</td>

View File

@ -16,8 +16,7 @@
rentingTitle: '',
paymentType: '',
ownerName: '',
state:'0'
state: '0'
}
}
},
@ -29,9 +28,9 @@
vc.on('rentingPoolManage', 'listRentingPool', function (_param) {
vc.component._listRentingPools(DEFAULT_PAGE, DEFAULT_ROWS);
});
vc.on('rentingAuditManage','audit',function(_auditInfo){
})
vc.on('rentingAuditManage', 'audit', function (_auditInfo) {
$that._auditRenting(_auditInfo);
});
vc.on('pagination', 'page_event', function (_currentPage) {
vc.component._listRentingPools(_currentPage, DEFAULT_ROWS);
});
@ -63,7 +62,8 @@
}
);
},
_openAuditModal: function () {
_openAuditModal: function (_renting) {
$that.rentingPoolManageInfo.rentingId = _renting.rentingId;
vc.emit('audit', 'openAuditModal', {});
},
_openEditRentingPoolModel: function (_rentingPool) {
@ -82,6 +82,54 @@
} else {
vc.component.rentingPoolManageInfo.moreCondition = true;
}
},
_auditRenting: function (_auditInfo) {
let _user = vc.getData('/nav/getUserInfo');
let _userRole = 4; // 运营团队
if (_user.storeTypeCd == '800900000002') {
_userRole = 3;
}
let _state = "2002";
if (_auditInfo.state == '1200') {
_state = "3003";//代理商审核失败
}
let _audtiInfo = {
userRole: _userRole,
state: _state,
context: _auditInfo.remark,
rentingId: $that.rentingPoolManageInfo.rentingId
}
//发送get请求
vc.http.apiPost(
'/renting/auditRenting',
JSON.stringify(_audtiInfo),
{
emulateJSON: true
},
function (json, res) {
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
let _json = JSON.parse(json);
if (_json.code == 0) {
//关闭model
$('#addRentingConfigModel').modal('hide');
$that._listRentingPools(DEFAULT_PAGE, DEFAULT_ROWS);
return;
}
vc.message(_json.msg);
},
function (errInfo, error) {
console.log('请求失败处理');
vc.message(errInfo);
});
}

View File

@ -58,7 +58,7 @@
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
<thead>
<tr>
<th class="text-center">租房ID</th>
<th class="text-center">房屋</th>
<th class="text-center">出租标题</th>
<th class="text-center">租金</th>
<th class="text-center">预付类型</th>
@ -66,6 +66,7 @@
<th class="text-center">出租配置</th>
<th class="text-center">业主名称</th>
<th class="text-center">业主电话</th>
<th class="text-center">状态</th>
<th class="text-center">操作</th>
@ -73,14 +74,15 @@
</thead>
<tbody>
<tr v-for="rentingPool in rentingPoolManageInfo.rentingPools">
<td class="text-center">{{rentingPool.rentingId}}</td>
<td class="text-center">{{rentingPool.roomName}}</td>
<td class="text-center">{{rentingPool.rentingTitle}}</td>
<td class="text-center">{{rentingPool.price}}</td>
<td class="text-center">{{rentingPool.paymentType}}</td>
<td class="text-center">{{rentingPool.checkInDate}}</td>
<td class="text-center">{{rentingPool.rentingConfigId}}</td>
<td class="text-center">{{rentingPool.paymentTypeName}}</td>
<td class="text-center">{{rentingPool.checkIn == '1001'?'立即入住':'预约入住'}}</td>
<td class="text-center">{{rentingPool.rentingType=='3344'?'整租':'合租'}}</td>
<td class="text-center">{{rentingPool.ownerName}}</td>
<td class="text-center">{{rentingPool.ownerTel}}</td>
<td class="text-center">{{rentingPool.stateName}}</td>
<td class="text-center">
<div class="btn-group">
<button class="btn-white btn btn-xs"

View File

@ -16,7 +16,8 @@
rentingTitle: '',
paymentType: '',
ownerName: '',
communityId: vc.getCurrentCommunity().communityId,
state:'1,2,3,4,5'
}
}
},