mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
eb1fba2d7b
@ -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-dialog modal-lg">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
@ -17,10 +18,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-sm-5">
|
<div class="col-sm-5">
|
||||||
<div class="input-group">
|
<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">
|
<span class="input-group-append">
|
||||||
<button type="button" class="btn btn-sm btn-primary" v-on:click="queryUnits()">查询</button>
|
<button type="button" class="btn btn-sm btn-primary"
|
||||||
</span>
|
v-on:click="queryUnits()">查询</button>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -28,25 +32,26 @@
|
|||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-center">单元ID</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>
|
<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>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="unit in chooseUnitInfo.units">
|
<tr v-for="unit in chooseUnitInfo.units">
|
||||||
<td class="text-center">{{unit.unitId}}</td>
|
<td class="text-center">{{unit.unitId}}</td>
|
||||||
<td class="text-center">{{unit.unitNum}}</td>
|
<td class="text-center">{{unit.unitNum}}</td>
|
||||||
<td class="text-center">{{unit.layerCount}}</td>
|
<td class="text-center">{{unit.layerCount}}</td>
|
||||||
<td class="text-center">{{unit.lift}}</td>
|
<td class="text-center">{{unit.lift == '1010'?'有':'无'}}</td>
|
||||||
<td class="text-center">{{unit.remark}}</td>
|
<td class="text-center">{{unit.remark}}</td>
|
||||||
|
|
||||||
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@ -1,52 +1,52 @@
|
|||||||
(function(vc,vm){
|
(function (vc, vm) {
|
||||||
|
|
||||||
vc.extends({
|
vc.extends({
|
||||||
data:{
|
data: {
|
||||||
deletePayFeeConfigDiscountInfo:{
|
deletePayFeeConfigDiscountInfo: {
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_initMethod:function(){
|
_initMethod: function () {
|
||||||
|
|
||||||
},
|
},
|
||||||
_initEvent:function(){
|
_initEvent: function () {
|
||||||
vc.on('deletePayFeeConfigDiscount','openDeletePayFeeConfigDiscountModal',function(_params){
|
vc.on('deletePayFeeConfigDiscount', 'openDeletePayFeeConfigDiscountModal', function (_params) {
|
||||||
|
|
||||||
vc.component.deletePayFeeConfigDiscountInfo = _params;
|
vc.component.deletePayFeeConfigDiscountInfo = _params;
|
||||||
$('#deletePayFeeConfigDiscountModel').modal('show');
|
$('#deletePayFeeConfigDiscountModel').modal('show');
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods:{
|
methods: {
|
||||||
deletePayFeeConfigDiscount:function(){
|
deletePayFeeConfigDiscount: function () {
|
||||||
vc.component.deletePayFeeConfigDiscountInfo.communityId=vc.getCurrentCommunity().communityId;
|
vc.component.deletePayFeeConfigDiscountInfo.communityId = vc.getCurrentCommunity().communityId;
|
||||||
vc.http.apiPost(
|
vc.http.apiPost(
|
||||||
'payFeeConfigDiscount.deletePayFeeConfigDiscount',
|
'/payFeeConfigDiscount/deletePayFeeConfigDiscount',
|
||||||
JSON.stringify(vc.component.deletePayFeeConfigDiscountInfo),
|
JSON.stringify(vc.component.deletePayFeeConfigDiscountInfo),
|
||||||
{
|
{
|
||||||
emulateJSON:true
|
emulateJSON: true
|
||||||
},
|
},
|
||||||
function(json,res){
|
function (json, res) {
|
||||||
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
|
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
|
||||||
let _json = JSON.parse(json);
|
let _json = JSON.parse(json);
|
||||||
if (_json.code == 0) {
|
if (_json.code == 0) {
|
||||||
//关闭model
|
//关闭model
|
||||||
$('#deletePayFeeConfigDiscountModel').modal('hide');
|
$('#deletePayFeeConfigDiscountModel').modal('hide');
|
||||||
vc.emit('payFeeConfigDiscountManage','listPayFeeConfigDiscount',{});
|
vc.emit('payFeeConfigDiscountManage', 'listPayFeeConfigDiscount', {});
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
vc.message(_json.msg);
|
vc.message(_json.msg);
|
||||||
},
|
},
|
||||||
function(errInfo,error){
|
function (errInfo, error) {
|
||||||
console.log('请求失败处理');
|
console.log('请求失败处理');
|
||||||
vc.message(json);
|
vc.message(json);
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
closeDeletePayFeeConfigDiscountModel:function(){
|
closeDeletePayFeeConfigDiscountModel: function () {
|
||||||
$('#deletePayFeeConfigDiscountModel').modal('hide');
|
$('#deletePayFeeConfigDiscountModel').modal('hide');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
})(window.vc,window.vc.component);
|
})(window.vc, window.vc.component);
|
||||||
|
|||||||
@ -42,7 +42,7 @@
|
|||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-form-label">电梯:</label>
|
<label class="col-form-label">电梯:</label>
|
||||||
<label class="">{{viewUnitInfo.lift}}</label>
|
<label class="">{{viewUnitInfo.lift == '1010'?'有':'无'}}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
|
|||||||
@ -23,6 +23,7 @@
|
|||||||
<th class="text-center">费用折扣ID</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>
|
||||||
<th class="text-center">折扣类型</th>
|
<th class="text-center">折扣类型</th>
|
||||||
<th class="text-center">操作</th>
|
<th class="text-center">操作</th>
|
||||||
</tr>
|
</tr>
|
||||||
@ -31,8 +32,13 @@
|
|||||||
<tr v-for="payFeeConfigDiscount in payFeeConfigDiscountManageInfo.payFeeConfigDiscounts">
|
<tr v-for="payFeeConfigDiscount in payFeeConfigDiscountManageInfo.payFeeConfigDiscounts">
|
||||||
<td class="text-center">{{payFeeConfigDiscount.configDiscountId}}</td>
|
<td class="text-center">{{payFeeConfigDiscount.configDiscountId}}</td>
|
||||||
<td class="text-center">{{payFeeConfigDiscountManageInfo.feeName}}</td>
|
<td class="text-center">{{payFeeConfigDiscountManageInfo.feeName}}</td>
|
||||||
<td class="text-center">{{payFeeConfigDiscount.discountId}}</td>
|
<td class="text-center">{{payFeeConfigDiscount.discountName}}</td>
|
||||||
<td class="text-center">{{payFeeConfigDiscount.discountType}}</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">
|
<td class="text-center">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button class="btn-white btn btn-xs"
|
<button class="btn-white btn btn-xs"
|
||||||
|
|||||||
@ -36,14 +36,17 @@
|
|||||||
methods: {
|
methods: {
|
||||||
_listPayFeeConfigDiscounts: function (_page, _rows) {
|
_listPayFeeConfigDiscounts: function (_page, _rows) {
|
||||||
|
|
||||||
vc.component.payFeeConfigDiscountManageInfo.conditions.page = _page;
|
let param = {
|
||||||
vc.component.payFeeConfigDiscountManageInfo.conditions.row = _rows;
|
params: {
|
||||||
var param = {
|
page:_page,
|
||||||
params: vc.component.payFeeConfigDiscountManageInfo.conditions
|
row:_rows,
|
||||||
|
configId:$that.payFeeConfigDiscountManageInfo.configId,
|
||||||
|
communityId:vc.getCurrentCommunity().communityId
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
//发送get请求
|
//发送get请求
|
||||||
vc.http.apiGet('payFeeConfigDiscount.listPayFeeConfigDiscounts',
|
vc.http.apiGet('/payFeeConfigDiscount/queryPayFeeConfigDiscount',
|
||||||
param,
|
param,
|
||||||
function (json, res) {
|
function (json, res) {
|
||||||
var _payFeeConfigDiscountManageInfo = JSON.parse(json);
|
var _payFeeConfigDiscountManageInfo = JSON.parse(json);
|
||||||
@ -60,7 +63,9 @@
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
_openAddPayFeeConfigDiscountModal: function () {
|
_openAddPayFeeConfigDiscountModal: function () {
|
||||||
vc.emit('addPayFeeConfigDiscount', 'openAddPayFeeConfigDiscountModal', {});
|
vc.emit('addPayFeeConfigDiscount', 'openAddPayFeeConfigDiscountModal', {
|
||||||
|
configId: $that.payFeeConfigDiscountManageInfo.configId
|
||||||
|
});
|
||||||
},
|
},
|
||||||
_openDeletePayFeeConfigDiscountModel: function (_payFeeConfigDiscount) {
|
_openDeletePayFeeConfigDiscountModel: function (_payFeeConfigDiscount) {
|
||||||
vc.emit('deletePayFeeConfigDiscount', 'openDeletePayFeeConfigDiscountModal', _payFeeConfigDiscount);
|
vc.emit('deletePayFeeConfigDiscount', 'openDeletePayFeeConfigDiscountModal', _payFeeConfigDiscount);
|
||||||
|
|||||||
@ -30,8 +30,8 @@
|
|||||||
|
|
||||||
var param = {
|
var param = {
|
||||||
params: {
|
params: {
|
||||||
page: 1,
|
page: _page,
|
||||||
row: 10,
|
row: _rows,
|
||||||
communityId: vc.getCurrentCommunity().communityId
|
communityId: vc.getCurrentCommunity().communityId
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user