mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
优化代码
This commit is contained in:
parent
883302428c
commit
9acd79e26f
@ -49,7 +49,8 @@
|
||||
|
||||
},
|
||||
_initEvent: function () {
|
||||
vc.on('addContract', 'openAddContractModal', function () {
|
||||
vc.on('addContract', 'openAddContractModal', function (_param) {
|
||||
vc.copyObject(_param,$that.addContractInfo);
|
||||
$('#addContractModel').modal('show');
|
||||
});
|
||||
$('#addContractModel').on('show.bs.modal', function (e) {
|
||||
|
||||
@ -53,13 +53,13 @@
|
||||
class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<!-- <div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">代理商分账比率</label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="addRentingConfigInfo.proxySeparateRate" type="text" placeholder="必填,请填写代理商分账比率"
|
||||
class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">物业分账比率</label>
|
||||
<div class="col-sm-10">
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
serviceOwnerRate: '',
|
||||
serviceTenantRate: '',
|
||||
adminSeparateRate: '',
|
||||
proxySeparateRate: '',
|
||||
proxySeparateRate: '0',
|
||||
propertySeparateRate: '',
|
||||
|
||||
}
|
||||
|
||||
@ -53,13 +53,13 @@
|
||||
class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<!-- <div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">代理商分账比率</label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="editRentingConfigInfo.proxySeparateRate" type="text" placeholder="必填,请填写代理商分账比率"
|
||||
class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">物业分账比率</label>
|
||||
<div class="col-sm-10">
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
serviceOwnerRate: '',
|
||||
serviceTenantRate: '',
|
||||
adminSeparateRate: '',
|
||||
proxySeparateRate: '',
|
||||
proxySeparateRate: '0',
|
||||
propertySeparateRate: '',
|
||||
|
||||
}
|
||||
|
||||
@ -93,7 +93,6 @@
|
||||
userRoleName: '',
|
||||
payPrice: 0.0,
|
||||
state: ''
|
||||
|
||||
};
|
||||
},
|
||||
_viewQr: function (_url) {
|
||||
|
||||
@ -65,7 +65,6 @@
|
||||
<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>
|
||||
|
||||
@ -81,7 +80,6 @@
|
||||
<td class="text-center">{{rentingConfig.serviceOwnerRate}}</td>
|
||||
<td class="text-center">{{rentingConfig.serviceTenantRate}}</td>
|
||||
<td class="text-center">{{rentingConfig.adminSeparateRate}}</td>
|
||||
<td class="text-center">{{rentingConfig.proxySeparateRate}}</td>
|
||||
<td class="text-center">{{rentingConfig.propertySeparateRate}}</td>
|
||||
<td class="text-center">
|
||||
<div class="btn-group">
|
||||
|
||||
@ -96,7 +96,7 @@
|
||||
|
||||
<div class="btn-group" v-if="rentingPool.state == '4'">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_openRentingPayModel(rentingPool,'owner')">申请合同</button>
|
||||
v-on:click="_applyContract(rentingPool)">申请合同</button>
|
||||
</div>
|
||||
|
||||
<div class="btn-group">
|
||||
@ -134,5 +134,6 @@
|
||||
<vc:create path="admin/editRentingPool"></vc:create>
|
||||
<vc:create path="admin/deleteRentingPool"></vc:create>
|
||||
<vc:create path="admin/rentingPay"></vc:create>
|
||||
<vc:create path="admin/addContract" callBackListener="" callBackFunction=""></vc:create>
|
||||
|
||||
</div>
|
||||
@ -17,7 +17,7 @@
|
||||
paymentType: '',
|
||||
ownerName: '',
|
||||
communityId: vc.getCurrentCommunity().communityId,
|
||||
state:'1,2,3,4,5,7'
|
||||
state: '1,2,3,4,5,7'
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -59,6 +59,33 @@
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
_listRentingFlow: function (_rentingPool, _callBack) {
|
||||
var param = {
|
||||
params: {
|
||||
page: 1,
|
||||
row: 1,
|
||||
communityId: _rentingPool.communityId,
|
||||
rentingId: _rentingPool.rentingId,
|
||||
state: '4004'
|
||||
}
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.apiGet('/rentingPoolFlow/queryRentingPoolFlow',
|
||||
param,
|
||||
function (json, res) {
|
||||
let _rentingPoolFlow = JSON.parse(json);
|
||||
if (_rentingPoolFlow.total < 1) {
|
||||
vc.total('未找到租房者信息');
|
||||
return;
|
||||
}
|
||||
_callBack(_rentingPoolFlow.data[0]);
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_openAddRentingPoolModal: function () {
|
||||
vc.emit('addRentingPool', 'openAddRentingPoolModal', {});
|
||||
},
|
||||
@ -79,9 +106,30 @@
|
||||
vc.component.rentingPoolManageInfo.moreCondition = true;
|
||||
}
|
||||
},
|
||||
_openRentingPayModel:function(_rentingPool,_userRole){
|
||||
_openRentingPayModel: function (_rentingPool, _userRole) {
|
||||
_rentingPool.userRole = _userRole;
|
||||
vc.emit('rentingPay', 'openRentingPayModal',_rentingPool);
|
||||
vc.emit('rentingPay', 'openRentingPayModal', _rentingPool);
|
||||
},
|
||||
_applyContract: function (_rentingPool) { //申请合同
|
||||
let _loginUser = vc.getData('/nav/getUserInfo');
|
||||
$that._listRentingFlow(_rentingPool,function(_flow){
|
||||
vc.emit('addContract', 'openAddContractModal', {
|
||||
contractName: _rentingPool.roomName + "租房合同",
|
||||
partyA: _rentingPool.ownerName,
|
||||
aContacts: _rentingPool.ownerName,
|
||||
aLink: _rentingPool.ownerTel,
|
||||
roomId: _rentingPool.roomId,
|
||||
ownerName: _rentingPool.ownerName,
|
||||
link: _rentingPool.ownerTel,
|
||||
objId: _rentingPool.roomId,
|
||||
allNum: _rentingPool.roomName,
|
||||
partyB:_flow.useName,
|
||||
bContacts:_flow.useName,
|
||||
bLink:_flow.userTel,
|
||||
operator: _loginUser.name
|
||||
})
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user