Merge remote-tracking branch 'origin/master'

This commit is contained in:
92895 2020-11-26 09:13:13 +08:00
commit eb1fba2d7b
6 changed files with 65 additions and 49 deletions

View File

@ -1,4 +1,5 @@
<div id = "chooseUnitModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="chooseUnitModelLabel" aria-hidden="true" >
<div id="chooseUnitModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="chooseUnitModelLabel"
aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
@ -17,10 +18,13 @@
</div>
<div class="col-sm-5">
<div class="input-group">
<input placeholder="输入单元名称" type="text" v-model="chooseUnitInfo._currentUnitName" class="form-control form-control-sm">
<input placeholder="输入单元名称" type="text"
v-model="chooseUnitInfo._currentUnitName"
class="form-control form-control-sm">
<span class="input-group-append">
<button type="button" class="btn btn-sm btn-primary" v-on:click="queryUnits()">查询</button>
</span>
<button type="button" class="btn btn-sm btn-primary"
v-on:click="queryUnits()">查询</button>
</span>
</div>
</div>
</div>
@ -28,25 +32,26 @@
<table class="table table-striped">
<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>
<th class="text-center">操作</th>
<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>
<th class="text-center">操作</th>
</tr>
</thead>
<tbody>
<tr v-for="unit in chooseUnitInfo.units">
<td class="text-center">{{unit.unitId}}</td>
<td class="text-center">{{unit.unitNum}}</td>
<td class="text-center">{{unit.layerCount}}</td>
<td class="text-center">{{unit.lift}}</td>
<td class="text-center">{{unit.remark}}</td>
<td class="text-center">{{unit.unitId}}</td>
<td class="text-center">{{unit.unitNum}}</td>
<td class="text-center">{{unit.layerCount}}</td>
<td class="text-center">{{unit.lift == '1010'?'有':'无'}}</td>
<td class="text-center">{{unit.remark}}</td>
<td>
<button class="btn btn-primary btn-xs" v-on:click="chooseUnit(unit)">选择</button>
<button class="btn btn-primary btn-xs"
v-on:click="chooseUnit(unit)">选择</button>
</td>
</tr>
</tbody>
@ -59,4 +64,4 @@
</div>
</div>
</div>
</div>
</div>

View File

@ -1,52 +1,52 @@
(function(vc,vm){
(function (vc, vm) {
vc.extends({
data:{
deletePayFeeConfigDiscountInfo:{
data: {
deletePayFeeConfigDiscountInfo: {
}
},
_initMethod:function(){
_initMethod: function () {
},
_initEvent:function(){
vc.on('deletePayFeeConfigDiscount','openDeletePayFeeConfigDiscountModal',function(_params){
},
_initEvent: function () {
vc.on('deletePayFeeConfigDiscount', 'openDeletePayFeeConfigDiscountModal', function (_params) {
vc.component.deletePayFeeConfigDiscountInfo = _params;
$('#deletePayFeeConfigDiscountModel').modal('show');
});
},
methods:{
deletePayFeeConfigDiscount:function(){
vc.component.deletePayFeeConfigDiscountInfo.communityId=vc.getCurrentCommunity().communityId;
methods: {
deletePayFeeConfigDiscount: function () {
vc.component.deletePayFeeConfigDiscountInfo.communityId = vc.getCurrentCommunity().communityId;
vc.http.apiPost(
'payFeeConfigDiscount.deletePayFeeConfigDiscount',
'/payFeeConfigDiscount/deletePayFeeConfigDiscount',
JSON.stringify(vc.component.deletePayFeeConfigDiscountInfo),
{
emulateJSON:true
},
function(json,res){
emulateJSON: true
},
function (json, res) {
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
let _json = JSON.parse(json);
if (_json.code == 0) {
//关闭model
$('#deletePayFeeConfigDiscountModel').modal('hide');
vc.emit('payFeeConfigDiscountManage','listPayFeeConfigDiscount',{});
return ;
vc.emit('payFeeConfigDiscountManage', 'listPayFeeConfigDiscount', {});
return;
}
vc.message(_json.msg);
},
function(errInfo,error){
},
function (errInfo, error) {
console.log('请求失败处理');
vc.message(json);
});
});
},
closeDeletePayFeeConfigDiscountModel:function(){
closeDeletePayFeeConfigDiscountModel: function () {
$('#deletePayFeeConfigDiscountModel').modal('hide');
}
}
});
})(window.vc,window.vc.component);
})(window.vc, window.vc.component);

View File

@ -42,7 +42,7 @@
<div class="col-sm-4">
<div class="form-group">
<label class="col-form-label">电梯:</label>
<label class="">{{viewUnitInfo.lift}}</label>
<label class="">{{viewUnitInfo.lift == '1010'?'有':'无'}}</label>
</div>
</div>
<div class="col-sm-4">

View File

@ -23,6 +23,7 @@
<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>
<th class="text-center">操作</th>
</tr>
@ -31,8 +32,13 @@
<tr v-for="payFeeConfigDiscount in payFeeConfigDiscountManageInfo.payFeeConfigDiscounts">
<td class="text-center">{{payFeeConfigDiscount.configDiscountId}}</td>
<td class="text-center">{{payFeeConfigDiscountManageInfo.feeName}}</td>
<td class="text-center">{{payFeeConfigDiscount.discountId}}</td>
<td class="text-center">{{payFeeConfigDiscount.discountType}}</td>
<td class="text-center">{{payFeeConfigDiscount.discountName}}</td>
<td class="text-center">
<div v-for="(item,index) in payFeeConfigDiscount.feeDiscountSpecs">
{{item.specName}}{{item.specValue}}
</div>
</td>
<td class="text-center">{{payFeeConfigDiscount.discountType == '1001'?'优惠':'违约'}}</td>
<td class="text-center">
<div class="btn-group">
<button class="btn-white btn btn-xs"

View File

@ -36,14 +36,17 @@
methods: {
_listPayFeeConfigDiscounts: function (_page, _rows) {
vc.component.payFeeConfigDiscountManageInfo.conditions.page = _page;
vc.component.payFeeConfigDiscountManageInfo.conditions.row = _rows;
var param = {
params: vc.component.payFeeConfigDiscountManageInfo.conditions
let param = {
params: {
page:_page,
row:_rows,
configId:$that.payFeeConfigDiscountManageInfo.configId,
communityId:vc.getCurrentCommunity().communityId
}
};
//发送get请求
vc.http.apiGet('payFeeConfigDiscount.listPayFeeConfigDiscounts',
vc.http.apiGet('/payFeeConfigDiscount/queryPayFeeConfigDiscount',
param,
function (json, res) {
var _payFeeConfigDiscountManageInfo = JSON.parse(json);
@ -60,7 +63,9 @@
);
},
_openAddPayFeeConfigDiscountModal: function () {
vc.emit('addPayFeeConfigDiscount', 'openAddPayFeeConfigDiscountModal', {});
vc.emit('addPayFeeConfigDiscount', 'openAddPayFeeConfigDiscountModal', {
configId: $that.payFeeConfigDiscountManageInfo.configId
});
},
_openDeletePayFeeConfigDiscountModel: function (_payFeeConfigDiscount) {
vc.emit('deletePayFeeConfigDiscount', 'openDeletePayFeeConfigDiscountModal', _payFeeConfigDiscount);

View File

@ -30,8 +30,8 @@
var param = {
params: {
page: 1,
row: 10,
page: _page,
row: _rows,
communityId: vc.getCurrentCommunity().communityId
}
};