mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 18:11:00 +08:00
租客租房记录
This commit is contained in:
parent
b88f893307
commit
88be2abe09
@ -45,17 +45,17 @@
|
||||
<td class="text-center">{{fee.startTime}}</td>
|
||||
<td class="text-center">{{_getEndTime(fee)}}</td>
|
||||
<td class="text-center">{{_getDeadlineTime(fee)}}</td>
|
||||
<td class="text-center" v-if="fee.feeTypeCd == '888800010015' || fee.feeTypeCd == '888800010016' ">
|
||||
<td class="text-center" v-if="fee.feeTypeCd == '888800010015' || fee.feeTypeCd == '888800010016' " :title="_simplifyCarGetFeeOwnerInfo(fee.feeAttrs)">
|
||||
<div>上期度数:{{fee.preDegrees}}</div>
|
||||
<div>本期度数:{{fee.curDegrees}} </div>
|
||||
<div>单价:{{fee.squarePrice}} </div>
|
||||
<div>附加费:{{fee.additionalAmount}}</div>
|
||||
</td>
|
||||
<td class="text-center" width="150" v-else-if="fee.feeTypeCd == '888800010017'">
|
||||
<td class="text-center" width="150" v-else-if="fee.feeTypeCd == '888800010017'" :title="_simplifyCarGetFeeOwnerInfo(fee.feeAttrs)">
|
||||
<div>算法:{{_getAttrValue(fee.feeAttrs,'390005')}}</div>
|
||||
<div>用量:{{_getAttrValue(fee.feeAttrs,'390003')}}</div>
|
||||
</td>
|
||||
<td class="text-center" v-else>
|
||||
<td class="text-center" v-else :title="_simplifyCarGetFeeOwnerInfo(fee.feeAttrs)">
|
||||
<div>单价:{{fee.squarePrice}}</div>
|
||||
<div>固定费:{{fee.additionalAmount}}</div>
|
||||
</td>
|
||||
|
||||
@ -190,8 +190,16 @@
|
||||
num: '',
|
||||
parkingName: ''
|
||||
}
|
||||
},
|
||||
_simplifyCarGetFeeOwnerInfo: function (attrs) {
|
||||
|
||||
let ownerName = $that._getAttrValue(attrs, '390008');
|
||||
let ownerLink = $that._getAttrValue(attrs, '390009');
|
||||
|
||||
return '业主:'+ownerName + ',电话:' + ownerLink;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
@ -71,22 +71,22 @@
|
||||
<td class="text-center">{{fee.startTime}}</td>
|
||||
<td class="text-center">{{_getEndTime(fee)}}</td>
|
||||
<td class="text-center">{{_getDeadlineTime(fee)}}</td>
|
||||
<td class="text-center" v-if="fee.computingFormula == '5005'">
|
||||
<td class="text-center" v-if="fee.computingFormula == '5005'" :title="_simplifyRoomGetFeeOwnerInfo(fee.feeAttrs)">
|
||||
<div>上期度数:{{fee.preDegrees}}</div>
|
||||
<div>本期度数:{{fee.curDegrees}} </div>
|
||||
<div>单价:{{fee.squarePrice}} </div>
|
||||
<div>附加费:{{fee.additionalAmount}}</div>
|
||||
</td>
|
||||
<td class="text-center" v-else-if="fee.computingFormula == '6006'">
|
||||
<td class="text-center" v-else-if="fee.computingFormula == '6006'" :title="_simplifyRoomGetFeeOwnerInfo(fee.feeAttrs)">
|
||||
<div>用量:{{_getAttrValue(fee.feeAttrs,'390006')}}</div>
|
||||
<div>单价:{{fee.squarePrice}} </div>
|
||||
<div>附加费:{{fee.additionalAmount}}</div>
|
||||
</td>
|
||||
<td class="text-center" width="150" v-else-if="fee.feeTypeCd == '888800010017'">
|
||||
<td class="text-center" width="150" v-else-if="fee.feeTypeCd == '888800010017'" :title="_simplifyRoomGetFeeOwnerInfo(fee.feeAttrs)">
|
||||
<div>算法:{{_getAttrValue(fee.feeAttrs,'390005')}}</div>
|
||||
<div>用量:{{_getAttrValue(fee.feeAttrs,'390003')}}</div>
|
||||
</td>
|
||||
<td class="text-center" v-else>
|
||||
<td class="text-center" v-else :title="_simplifyRoomGetFeeOwnerInfo(fee.feeAttrs)">
|
||||
<div>单价:{{fee.squarePrice}}</div>
|
||||
<div v-if="fee.feeFlag == '1003006'">附加费:{{fee.additionalAmount}}</div>
|
||||
<div v-else>固定费:{{fee.additionalAmount}}</div>
|
||||
|
||||
@ -120,7 +120,7 @@
|
||||
if (_fee.state == '2009001') {
|
||||
return "-";
|
||||
}
|
||||
return vc.dateSub(_fee.deadlineTime,_fee.feeFlag);
|
||||
return vc.dateSub(_fee.deadlineTime, _fee.feeFlag);
|
||||
},
|
||||
_getEndTime: function (_fee) {
|
||||
if (_fee.state == '2009001') {
|
||||
@ -197,6 +197,13 @@
|
||||
},
|
||||
_changeSimplifyRoomConfigId: function () {
|
||||
vc.emit('simplifyRoomFee', 'notify', {});
|
||||
},
|
||||
_simplifyRoomGetFeeOwnerInfo: function (attrs) {
|
||||
|
||||
let ownerName = $that._getAttrValue(attrs, '390008');
|
||||
let ownerLink = $that._getAttrValue(attrs, '390009');
|
||||
|
||||
return '业主:'+ownerName + ',电话:' + ownerLink;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,38 @@
|
||||
<div>
|
||||
<div>
|
||||
<table class="footable table table-stripped toggle-arrow-tiny" style="margin-top:10px" data-page-size="10">
|
||||
<thead>
|
||||
<tr>
|
||||
<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>
|
||||
<th class="text-center">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="owner in simplifyShopsHireLogInfo.owners">
|
||||
<td class="text-center">{{owner.name}}</td>
|
||||
<td class="text-center">{{owner.link}}</td>
|
||||
<td class="text-center">{{owner.startTime}}</td>
|
||||
<td class="text-center">{{owner.endTime}}</td>
|
||||
<td class="text-center">{{owner.createTime}}</td>
|
||||
<td class="text-center">
|
||||
<div class="btn-group">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_openOwnerFee(owner)">查看费用
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="row">
|
||||
<div class="col-sm-12 float-right">
|
||||
<vc:create namespace="simplifyShopsHireLog" path="frame/paginationPlus"></vc:create>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <vc:create path="property/editMachineTranslate"></vc:create> -->
|
||||
</div>
|
||||
@ -0,0 +1,77 @@
|
||||
(function (vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
data: {
|
||||
simplifyShopsHireLogInfo: {
|
||||
owners: [],
|
||||
ownerId: '',
|
||||
roomId: ''
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
|
||||
},
|
||||
_initEvent: function () {
|
||||
//切换 至费用页面
|
||||
vc.on('simplifyShopsHireLog', 'switch', function (_param) {
|
||||
if(_param.roomId == ''){
|
||||
return
|
||||
}
|
||||
$that.clearSimplifyShopsHireLogInfo();
|
||||
vc.copyObject(_param, $that.simplifyShopsHireLogInfo)
|
||||
$that._listSimplifyShopsHireLog(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('simplifyShopsHireLog', 'listMachineTranslate', function () {
|
||||
$that._listSimplifyShopsHireLog(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('simplifyShopsHireLog','paginationPlus', 'page_event',
|
||||
function (_currentPage) {
|
||||
$that._listSimplifyShopsHireLog(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_listSimplifyShopsHireLog: function (_page, _row) {
|
||||
|
||||
let param = {
|
||||
params: {
|
||||
page: _page,
|
||||
row: _row,
|
||||
communityId: vc.getCurrentCommunity().communityId,
|
||||
roomId: $that.simplifyShopsHireLogInfo.roomId
|
||||
}
|
||||
}
|
||||
|
||||
//发送get请求
|
||||
vc.http.apiGet('/ownerApi/queryShopsHireLog',
|
||||
param,
|
||||
function (json, res) {
|
||||
var _ownerManageInfo = JSON.parse(json);
|
||||
vc.component.simplifyShopsHireLogInfo.total = _ownerManageInfo.total;
|
||||
vc.component.simplifyShopsHireLogInfo.records = _ownerManageInfo.records;
|
||||
vc.component.simplifyShopsHireLogInfo.owners = _ownerManageInfo.data;
|
||||
vc.emit('simplifyShopsHireLog','paginationPlus', 'init', {
|
||||
total: vc.component.simplifyShopsHireLogInfo.records,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
|
||||
},
|
||||
_openOwnerFee: function (_owner) {
|
||||
vc.emit('editMachineTranslate', 'openEditMachineTranslateModal', _owner);
|
||||
},
|
||||
clearSimplifyShopsHireLogInfo: function () {
|
||||
$that.simplifyShopsHireLogInfo = {
|
||||
owners: [],
|
||||
ownerId: '',
|
||||
roomId: ''
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
})(window.vc);
|
||||
@ -179,6 +179,10 @@
|
||||
<a class="nav-link" v-bind:class="{active:simplifyAcceptanceInfo._currentTab == 'simplifyFeeReceipt'}"
|
||||
v-on:click="changeTab('simplifyFeeReceipt')">补打收据</a>
|
||||
</li>
|
||||
<li class="nav-item" v-if="simplifyAcceptanceInfo.roomType == '2020602'">
|
||||
<a class="nav-link" v-bind:class="{active:simplifyAcceptanceInfo._currentTab == 'simplifyShopsHireLog'}"
|
||||
v-on:click="changeTab('simplifyShopsHireLog')">出租记录</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@ -209,7 +213,9 @@
|
||||
<div v-if="simplifyAcceptanceInfo._currentTab == 'simplifyFeeReceipt'">
|
||||
<vc:create path="property/simplifyFeeReceipt"></vc:create>
|
||||
</div>
|
||||
|
||||
<div v-if="simplifyAcceptanceInfo._currentTab == 'simplifyShopsHireLog'">
|
||||
<vc:create path="property/simplifyShopsHireLog"></vc:create>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user