mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 21:59:12 +08:00
optimize dining
This commit is contained in:
parent
22c27d0921
commit
7efb40dcb5
@ -27,7 +27,7 @@
|
||||
</div>
|
||||
<div class="col-lg-1 padding-lr-0 ">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
@ -44,32 +44,61 @@
|
||||
</div>
|
||||
</div>
|
||||
<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">
|
||||
<thead>
|
||||
<tr>
|
||||
<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">
|
||||
备注
|
||||
@ -78,18 +107,15 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<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">
|
||||
{{item.goodsName}}
|
||||
</th>
|
||||
<th class="text-center">
|
||||
{{item.quantity}}
|
||||
</th>
|
||||
<td class="text-center">
|
||||
{{item.appointmentTime}}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
{{item.hours}}
|
||||
{{item.ownerName}}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
{{item.personName}}
|
||||
@ -97,9 +123,7 @@
|
||||
<td class="text-center">
|
||||
{{item.personTel}}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
{{item.createTime}}
|
||||
</td>
|
||||
<td class="text-center">{{item.orderId}}</td>
|
||||
<td class="text-center">
|
||||
{{item.remark}}
|
||||
</td>
|
||||
|
||||
@ -8,30 +8,30 @@
|
||||
data: {
|
||||
doDiningInfo: {
|
||||
reserveDinings: [],
|
||||
orders:[],
|
||||
orders: [],
|
||||
total: 0,
|
||||
records: 1,
|
||||
goodsId: '',
|
||||
moreCondition: false,
|
||||
qrCode: '',
|
||||
conditions: {
|
||||
goodsId: '',
|
||||
goodsName: '',
|
||||
|
||||
state: '',
|
||||
catalogId: '',
|
||||
startDate: '',
|
||||
endDate: '',
|
||||
ownerName: '',
|
||||
communityId: vc.getCurrentCommunity().communityId
|
||||
}
|
||||
}
|
||||
},
|
||||
_initMethod: function() {
|
||||
$that._listReserveDinings(1, 200);
|
||||
$that._initDate();
|
||||
|
||||
document.getElementById("qrCode").focus();
|
||||
// 心跳一直 保持 选中
|
||||
setInterval(function(){
|
||||
setInterval(function() {
|
||||
document.getElementById("qrCode").focus();
|
||||
},5000);
|
||||
}, 5000);
|
||||
vc.component._listReserveConfirms(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_initEvent: function() {
|
||||
@ -41,14 +41,20 @@
|
||||
|
||||
},
|
||||
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) {
|
||||
|
||||
$that.doDiningInfo.conditions.page = _page;
|
||||
$that.doDiningInfo.conditions.row = _rows;
|
||||
let param = {
|
||||
params: $that.doDiningInfo.conditions
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.apiGet('/reserve.listReserveGoods',
|
||||
param,
|
||||
@ -66,11 +72,10 @@
|
||||
document.getElementById("qrCode").focus();
|
||||
},
|
||||
_doDining: function() {
|
||||
|
||||
let _data = {
|
||||
communityId:vc.getCurrentCommunity().communityId,
|
||||
goodsId:$that.doDiningInfo.goodsId,
|
||||
qrCode:$that.doDiningInfo.qrCode
|
||||
communityId: vc.getCurrentCommunity().communityId,
|
||||
goodsId: $that.doDiningInfo.goodsId,
|
||||
qrCode: $that.doDiningInfo.qrCode
|
||||
}
|
||||
|
||||
vc.http.apiPost(
|
||||
@ -85,7 +90,7 @@
|
||||
vc.toast(_data.msg);
|
||||
return;
|
||||
}
|
||||
$that._listReserveConfirms(DEFAULT_PAGE,DEFAULT_ROWS);
|
||||
$that._listReserveConfirms(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
function(errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
@ -101,7 +106,7 @@
|
||||
params: $that.doDiningInfo.conditions
|
||||
};
|
||||
//发送get请求
|
||||
vc.http.apiGet('/reserveOrder.listReserveGoodsConfirmOrder',
|
||||
vc.http.apiGet('/owner.queryOwnerDining',
|
||||
param,
|
||||
function(json, res) {
|
||||
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);
|
||||
Loading…
Reference in New Issue
Block a user