Skip to content

Commit 88be2ab

Browse files
committed
租客租房记录
1 parent b88f893 commit 88be2ab

7 files changed

Lines changed: 145 additions & 9 deletions

File tree

public/components/property/simplifyCarFee/simplifyCarFee.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@
4545
<td class="text-center">{{fee.startTime}}</td>
4646
<td class="text-center">{{_getEndTime(fee)}}</td>
4747
<td class="text-center">{{_getDeadlineTime(fee)}}</td>
48-
<td class="text-center" v-if="fee.feeTypeCd == '888800010015' || fee.feeTypeCd == '888800010016' ">
48+
<td class="text-center" v-if="fee.feeTypeCd == '888800010015' || fee.feeTypeCd == '888800010016' " :title="_simplifyCarGetFeeOwnerInfo(fee.feeAttrs)">
4949
<div>上期度数:{{fee.preDegrees}}</div>
5050
<div>本期度数:{{fee.curDegrees}} </div>
5151
<div>单价:{{fee.squarePrice}} </div>
5252
<div>附加费:{{fee.additionalAmount}}</div>
5353
</td>
54-
<td class="text-center" width="150" v-else-if="fee.feeTypeCd == '888800010017'">
54+
<td class="text-center" width="150" v-else-if="fee.feeTypeCd == '888800010017'" :title="_simplifyCarGetFeeOwnerInfo(fee.feeAttrs)">
5555
<div>算法:{{_getAttrValue(fee.feeAttrs,'390005')}}</div>
5656
<div>用量:{{_getAttrValue(fee.feeAttrs,'390003')}}</div>
5757
</td>
58-
<td class="text-center" v-else>
58+
<td class="text-center" v-else :title="_simplifyCarGetFeeOwnerInfo(fee.feeAttrs)">
5959
<div>单价:{{fee.squarePrice}}</div>
6060
<div>固定费:{{fee.additionalAmount}}</div>
6161
</td>

public/components/property/simplifyCarFee/simplifyCarFee.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,16 @@
190190
num: '',
191191
parkingName: ''
192192
}
193+
},
194+
_simplifyCarGetFeeOwnerInfo: function (attrs) {
195+
196+
let ownerName = $that._getAttrValue(attrs, '390008');
197+
let ownerLink = $that._getAttrValue(attrs, '390009');
198+
199+
return '业主:'+ownerName + ',电话:' + ownerLink;
193200
}
194201

202+
195203
}
196204

197205
});

public/components/property/simplifyRoomFee/simplifyRoomFee.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,22 +71,22 @@
7171
<td class="text-center">{{fee.startTime}}</td>
7272
<td class="text-center">{{_getEndTime(fee)}}</td>
7373
<td class="text-center">{{_getDeadlineTime(fee)}}</td>
74-
<td class="text-center" v-if="fee.computingFormula == '5005'">
74+
<td class="text-center" v-if="fee.computingFormula == '5005'" :title="_simplifyRoomGetFeeOwnerInfo(fee.feeAttrs)">
7575
<div>上期度数:{{fee.preDegrees}}</div>
7676
<div>本期度数:{{fee.curDegrees}} </div>
7777
<div>单价:{{fee.squarePrice}} </div>
7878
<div>附加费:{{fee.additionalAmount}}</div>
7979
</td>
80-
<td class="text-center" v-else-if="fee.computingFormula == '6006'">
80+
<td class="text-center" v-else-if="fee.computingFormula == '6006'" :title="_simplifyRoomGetFeeOwnerInfo(fee.feeAttrs)">
8181
<div>用量:{{_getAttrValue(fee.feeAttrs,'390006')}}</div>
8282
<div>单价:{{fee.squarePrice}} </div>
8383
<div>附加费:{{fee.additionalAmount}}</div>
8484
</td>
85-
<td class="text-center" width="150" v-else-if="fee.feeTypeCd == '888800010017'">
85+
<td class="text-center" width="150" v-else-if="fee.feeTypeCd == '888800010017'" :title="_simplifyRoomGetFeeOwnerInfo(fee.feeAttrs)">
8686
<div>算法:{{_getAttrValue(fee.feeAttrs,'390005')}}</div>
8787
<div>用量:{{_getAttrValue(fee.feeAttrs,'390003')}}</div>
8888
</td>
89-
<td class="text-center" v-else>
89+
<td class="text-center" v-else :title="_simplifyRoomGetFeeOwnerInfo(fee.feeAttrs)">
9090
<div>单价:{{fee.squarePrice}}</div>
9191
<div v-if="fee.feeFlag == '1003006'">附加费:{{fee.additionalAmount}}</div>
9292
<div v-else>固定费:{{fee.additionalAmount}}</div>

public/components/property/simplifyRoomFee/simplifyRoomFee.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
if (_fee.state == '2009001') {
121121
return "-";
122122
}
123-
return vc.dateSub(_fee.deadlineTime,_fee.feeFlag);
123+
return vc.dateSub(_fee.deadlineTime, _fee.feeFlag);
124124
},
125125
_getEndTime: function (_fee) {
126126
if (_fee.state == '2009001') {
@@ -197,6 +197,13 @@
197197
},
198198
_changeSimplifyRoomConfigId: function () {
199199
vc.emit('simplifyRoomFee', 'notify', {});
200+
},
201+
_simplifyRoomGetFeeOwnerInfo: function (attrs) {
202+
203+
let ownerName = $that._getAttrValue(attrs, '390008');
204+
let ownerLink = $that._getAttrValue(attrs, '390009');
205+
206+
return '业主:'+ownerName + ',电话:' + ownerLink;
200207
}
201208

202209

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<div>
2+
<div>
3+
<table class="footable table table-stripped toggle-arrow-tiny" style="margin-top:10px" data-page-size="10">
4+
<thead>
5+
<tr>
6+
<th class="text-center">租客名称</th>
7+
<th class="text-center">租客电话</th>
8+
<th class="text-center">起租时间</th>
9+
<th class="text-center">截租时间</th>
10+
<th class="text-center">创建时间</th>
11+
<th class="text-center">操作</th>
12+
</tr>
13+
</thead>
14+
<tbody>
15+
<tr v-for="owner in simplifyShopsHireLogInfo.owners">
16+
<td class="text-center">{{owner.name}}</td>
17+
<td class="text-center">{{owner.link}}</td>
18+
<td class="text-center">{{owner.startTime}}</td>
19+
<td class="text-center">{{owner.endTime}}</td>
20+
<td class="text-center">{{owner.createTime}}</td>
21+
<td class="text-center">
22+
<div class="btn-group">
23+
<button class="btn-white btn btn-xs"
24+
v-on:click="_openOwnerFee(owner)">查看费用
25+
</button>
26+
</div>
27+
</td>
28+
</tr>
29+
</tbody>
30+
</table>
31+
<div class="row">
32+
<div class="col-sm-12 float-right">
33+
<vc:create namespace="simplifyShopsHireLog" path="frame/paginationPlus"></vc:create>
34+
</div>
35+
</div>
36+
</div>
37+
<!-- <vc:create path="property/editMachineTranslate"></vc:create> -->
38+
</div>
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
(function (vc) {
2+
var DEFAULT_PAGE = 1;
3+
var DEFAULT_ROWS = 10;
4+
vc.extends({
5+
data: {
6+
simplifyShopsHireLogInfo: {
7+
owners: [],
8+
ownerId: '',
9+
roomId: ''
10+
}
11+
},
12+
_initMethod: function () {
13+
14+
},
15+
_initEvent: function () {
16+
//切换 至费用页面
17+
vc.on('simplifyShopsHireLog', 'switch', function (_param) {
18+
if(_param.roomId == ''){
19+
return
20+
}
21+
$that.clearSimplifyShopsHireLogInfo();
22+
vc.copyObject(_param, $that.simplifyShopsHireLogInfo)
23+
$that._listSimplifyShopsHireLog(DEFAULT_PAGE, DEFAULT_ROWS);
24+
});
25+
vc.on('simplifyShopsHireLog', 'listMachineTranslate', function () {
26+
$that._listSimplifyShopsHireLog(DEFAULT_PAGE, DEFAULT_ROWS);
27+
});
28+
vc.on('simplifyShopsHireLog','paginationPlus', 'page_event',
29+
function (_currentPage) {
30+
$that._listSimplifyShopsHireLog(_currentPage, DEFAULT_ROWS);
31+
});
32+
},
33+
methods: {
34+
_listSimplifyShopsHireLog: function (_page, _row) {
35+
36+
let param = {
37+
params: {
38+
page: _page,
39+
row: _row,
40+
communityId: vc.getCurrentCommunity().communityId,
41+
roomId: $that.simplifyShopsHireLogInfo.roomId
42+
}
43+
}
44+
45+
//发送get请求
46+
vc.http.apiGet('/ownerApi/queryShopsHireLog',
47+
param,
48+
function (json, res) {
49+
var _ownerManageInfo = JSON.parse(json);
50+
vc.component.simplifyShopsHireLogInfo.total = _ownerManageInfo.total;
51+
vc.component.simplifyShopsHireLogInfo.records = _ownerManageInfo.records;
52+
vc.component.simplifyShopsHireLogInfo.owners = _ownerManageInfo.data;
53+
vc.emit('simplifyShopsHireLog','paginationPlus', 'init', {
54+
total: vc.component.simplifyShopsHireLogInfo.records,
55+
currentPage: _page
56+
});
57+
}, function (errInfo, error) {
58+
console.log('请求失败处理');
59+
}
60+
);
61+
62+
},
63+
_openOwnerFee: function (_owner) {
64+
vc.emit('editMachineTranslate', 'openEditMachineTranslateModal', _owner);
65+
},
66+
clearSimplifyShopsHireLogInfo: function () {
67+
$that.simplifyShopsHireLogInfo = {
68+
owners: [],
69+
ownerId: '',
70+
roomId: ''
71+
}
72+
}
73+
74+
}
75+
76+
});
77+
})(window.vc);

public/pages/property/simplifyAcceptance/simplifyAcceptance.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@
179179
<a class="nav-link" v-bind:class="{active:simplifyAcceptanceInfo._currentTab == 'simplifyFeeReceipt'}"
180180
v-on:click="changeTab('simplifyFeeReceipt')">补打收据</a>
181181
</li>
182+
<li class="nav-item" v-if="simplifyAcceptanceInfo.roomType == '2020602'">
183+
<a class="nav-link" v-bind:class="{active:simplifyAcceptanceInfo._currentTab == 'simplifyShopsHireLog'}"
184+
v-on:click="changeTab('simplifyShopsHireLog')">出租记录</a>
185+
</li>
182186
</ul>
183187
</div>
184188

@@ -209,7 +213,9 @@
209213
<div v-if="simplifyAcceptanceInfo._currentTab == 'simplifyFeeReceipt'">
210214
<vc:create path="property/simplifyFeeReceipt"></vc:create>
211215
</div>
212-
216+
<div v-if="simplifyAcceptanceInfo._currentTab == 'simplifyShopsHireLog'">
217+
<vc:create path="property/simplifyShopsHireLog"></vc:create>
218+
</div>
213219

214220
</div>
215221

0 commit comments

Comments
 (0)