mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 18:11:00 +08:00
optimize dining
This commit is contained in:
parent
22c27d0921
commit
7efb40dcb5
@ -27,7 +27,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-lg-1 padding-lr-0 ">
|
<div class="col-lg-1 padding-lr-0 ">
|
||||||
<button type="button" class="form-control btn btn-primary" @click="_doDining()">
|
<button type="button" class="form-control btn btn-primary" @click="_doDining()">
|
||||||
<span><vc:i18n name="就餐" namespace="simplifyAcceptance"></vc:i18n></span>
|
<vc:i18n name="就餐" namespace="simplifyAcceptance"></vc:i18n>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -44,32 +44,61 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ibox-content">
|
<div class="ibox-content">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-2">
|
||||||
|
<div class="form-group input-group">
|
||||||
|
<input type="text" :placeholder="vc.i18n('请选择开始时间','doDining')" v-model="doDiningInfo.conditions.startDate" class=" form-control startDate">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-2">
|
||||||
|
<div class="form-group input-group">
|
||||||
|
<input type="text" :placeholder="vc.i18n('请选择结束时间','doDining')" v-model="doDiningInfo.conditions.endDate" class=" form-control endDate">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-2">
|
||||||
|
<div class="form-group">
|
||||||
|
<input type="text" :placeholder="vc.i18n('请输入业主名称','doDining')" v-model="doDiningInfo.conditions.nameLike" class=" form-control">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-2">
|
||||||
|
<div class="form-group">
|
||||||
|
<input type="text" :placeholder="vc.i18n('请输入就餐人','doDining')" v-model="doDiningInfo.conditions.nameLike" class=" form-control">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-2">
|
||||||
|
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryData()">
|
||||||
|
<i class="glyphicon glyphicon-search"></i> <span>
|
||||||
|
<vc:i18n name="查询"></vc:i18n>
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
<button type="button" class="btn btn-white btn-sm" v-on:click="_exportExcel()">
|
||||||
|
<i class="glyphicon glyphicon-search"></i> <span>
|
||||||
|
<vc:i18n name="导出"></vc:i18n>
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
|
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-center">
|
<th class="text-center">
|
||||||
订单编号
|
就餐时间
|
||||||
</th>
|
</th>
|
||||||
|
|
||||||
<th class="text-center">
|
<th class="text-center">
|
||||||
商品
|
商品
|
||||||
</th>
|
</th>
|
||||||
<th class="text-center">
|
<th class="text-center">
|
||||||
核销数量
|
业主
|
||||||
</th>
|
|
||||||
<th class="text-center">
|
|
||||||
就餐日期
|
|
||||||
</th>
|
|
||||||
<th class="text-center">
|
|
||||||
就餐时间
|
|
||||||
</th>
|
</th>
|
||||||
<th class="text-center">
|
<th class="text-center">
|
||||||
就餐人
|
就餐人
|
||||||
</th>
|
</th>
|
||||||
<th class="text-center">
|
<th class="text-center">
|
||||||
就餐人电话
|
就餐电话
|
||||||
</th>
|
</th>
|
||||||
<th class="text-center">
|
<th class="text-center">
|
||||||
核销时间
|
订单编号
|
||||||
</th>
|
</th>
|
||||||
<th class="text-center">
|
<th class="text-center">
|
||||||
备注
|
备注
|
||||||
@ -78,18 +107,15 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="item in doDiningInfo.orders">
|
<tr v-for="item in doDiningInfo.orders">
|
||||||
<td class="text-center">{{item.orderId}}</td>
|
<td class="text-center">
|
||||||
|
{{item.createTime}}
|
||||||
|
</td>
|
||||||
|
|
||||||
<th class="text-center">
|
<th class="text-center">
|
||||||
{{item.goodsName}}
|
{{item.goodsName}}
|
||||||
</th>
|
</th>
|
||||||
<th class="text-center">
|
|
||||||
{{item.quantity}}
|
|
||||||
</th>
|
|
||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
{{item.appointmentTime}}
|
{{item.ownerName}}
|
||||||
</td>
|
|
||||||
<td class="text-center">
|
|
||||||
{{item.hours}}
|
|
||||||
</td>
|
</td>
|
||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
{{item.personName}}
|
{{item.personName}}
|
||||||
@ -97,9 +123,7 @@
|
|||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
{{item.personTel}}
|
{{item.personTel}}
|
||||||
</td>
|
</td>
|
||||||
<td class="text-center">
|
<td class="text-center">{{item.orderId}}</td>
|
||||||
{{item.createTime}}
|
|
||||||
</td>
|
|
||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
{{item.remark}}
|
{{item.remark}}
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@ -8,30 +8,30 @@
|
|||||||
data: {
|
data: {
|
||||||
doDiningInfo: {
|
doDiningInfo: {
|
||||||
reserveDinings: [],
|
reserveDinings: [],
|
||||||
orders:[],
|
orders: [],
|
||||||
total: 0,
|
total: 0,
|
||||||
records: 1,
|
records: 1,
|
||||||
goodsId: '',
|
goodsId: '',
|
||||||
moreCondition: false,
|
moreCondition: false,
|
||||||
qrCode: '',
|
qrCode: '',
|
||||||
conditions: {
|
conditions: {
|
||||||
goodsId: '',
|
|
||||||
goodsName: '',
|
goodsName: '',
|
||||||
|
startDate: '',
|
||||||
state: '',
|
endDate: '',
|
||||||
catalogId: '',
|
ownerName: '',
|
||||||
communityId: vc.getCurrentCommunity().communityId
|
communityId: vc.getCurrentCommunity().communityId
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_initMethod: function() {
|
_initMethod: function() {
|
||||||
$that._listReserveDinings(1, 200);
|
$that._listReserveDinings(1, 200);
|
||||||
|
$that._initDate();
|
||||||
|
|
||||||
document.getElementById("qrCode").focus();
|
document.getElementById("qrCode").focus();
|
||||||
// 心跳一直 保持 选中
|
// 心跳一直 保持 选中
|
||||||
setInterval(function(){
|
setInterval(function() {
|
||||||
document.getElementById("qrCode").focus();
|
document.getElementById("qrCode").focus();
|
||||||
},5000);
|
}, 5000);
|
||||||
vc.component._listReserveConfirms(DEFAULT_PAGE, DEFAULT_ROWS);
|
vc.component._listReserveConfirms(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||||
},
|
},
|
||||||
_initEvent: function() {
|
_initEvent: function() {
|
||||||
@ -41,14 +41,20 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
_initDate: function() {
|
||||||
|
vc.initDate('startDate', function(_value) {
|
||||||
|
$that.doDiningInfo.conditions.startDate = _value;
|
||||||
|
});
|
||||||
|
vc.initDate('endDate', function(_value) {
|
||||||
|
$that.doDiningInfo.conditions.endDate = _value;
|
||||||
|
});
|
||||||
|
},
|
||||||
_listReserveDinings: function(_page, _rows) {
|
_listReserveDinings: function(_page, _rows) {
|
||||||
|
|
||||||
$that.doDiningInfo.conditions.page = _page;
|
$that.doDiningInfo.conditions.page = _page;
|
||||||
$that.doDiningInfo.conditions.row = _rows;
|
$that.doDiningInfo.conditions.row = _rows;
|
||||||
let param = {
|
let param = {
|
||||||
params: $that.doDiningInfo.conditions
|
params: $that.doDiningInfo.conditions
|
||||||
};
|
};
|
||||||
|
|
||||||
//发送get请求
|
//发送get请求
|
||||||
vc.http.apiGet('/reserve.listReserveGoods',
|
vc.http.apiGet('/reserve.listReserveGoods',
|
||||||
param,
|
param,
|
||||||
@ -66,11 +72,10 @@
|
|||||||
document.getElementById("qrCode").focus();
|
document.getElementById("qrCode").focus();
|
||||||
},
|
},
|
||||||
_doDining: function() {
|
_doDining: function() {
|
||||||
|
|
||||||
let _data = {
|
let _data = {
|
||||||
communityId:vc.getCurrentCommunity().communityId,
|
communityId: vc.getCurrentCommunity().communityId,
|
||||||
goodsId:$that.doDiningInfo.goodsId,
|
goodsId: $that.doDiningInfo.goodsId,
|
||||||
qrCode:$that.doDiningInfo.qrCode
|
qrCode: $that.doDiningInfo.qrCode
|
||||||
}
|
}
|
||||||
|
|
||||||
vc.http.apiPost(
|
vc.http.apiPost(
|
||||||
@ -85,7 +90,7 @@
|
|||||||
vc.toast(_data.msg);
|
vc.toast(_data.msg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$that._listReserveConfirms(DEFAULT_PAGE,DEFAULT_ROWS);
|
$that._listReserveConfirms(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||||
},
|
},
|
||||||
function(errInfo, error) {
|
function(errInfo, error) {
|
||||||
console.log('请求失败处理');
|
console.log('请求失败处理');
|
||||||
@ -101,7 +106,7 @@
|
|||||||
params: $that.doDiningInfo.conditions
|
params: $that.doDiningInfo.conditions
|
||||||
};
|
};
|
||||||
//发送get请求
|
//发送get请求
|
||||||
vc.http.apiGet('/reserveOrder.listReserveGoodsConfirmOrder',
|
vc.http.apiGet('/owner.queryOwnerDining',
|
||||||
param,
|
param,
|
||||||
function(json, res) {
|
function(json, res) {
|
||||||
let _doDiningInfo = JSON.parse(json);
|
let _doDiningInfo = JSON.parse(json);
|
||||||
@ -118,6 +123,29 @@
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
_queryData: function() {
|
||||||
|
$that._listReserveConfirms(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||||
|
},
|
||||||
|
_exportExcel: function() {
|
||||||
|
//vc.jumpToPage('/callComponent/exportReportFee/exportData?pagePath=reportFeeSummary&' + vc.objToGetParam($that.reportFeeSummaryInfo.conditions));
|
||||||
|
$that.doDiningInfo.conditions.communityId = vc.getCurrentCommunity().communityId;
|
||||||
|
$that.doDiningInfo.conditions.pagePath = 'doDining';
|
||||||
|
let param = {
|
||||||
|
params: $that.doDiningInfo.conditions
|
||||||
|
};
|
||||||
|
//发送get请求
|
||||||
|
vc.http.apiGet('/export.exportData', param,
|
||||||
|
function(json, res) {
|
||||||
|
let _json = JSON.parse(json);
|
||||||
|
vc.toast(_json.msg);
|
||||||
|
if (_json.code == 0) {
|
||||||
|
vc.jumpToPage('/#/pages/property/downloadTempFile?tab=下载中心')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
function(errInfo, error) {
|
||||||
|
console.log('请求失败处理');
|
||||||
|
});
|
||||||
|
},
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})(window.vc);
|
})(window.vc);
|
||||||
Loading…
Reference in New Issue
Block a user