mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
优化代码
This commit is contained in:
parent
9a74fabd6a
commit
7461c2016e
@ -1,116 +1,99 @@
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="ibox ">
|
||||
<div class="ibox-title">
|
||||
<h5>
|
||||
<span><vc:i18n name="查询条件" namespace="couponDetailManage"></vc:i18n></span>
|
||||
</h5>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<input type="text" :placeholder="vc.i18n('请输入优惠券','couponDetailManage')" v-model="couponDetailManageInfo.conditions.poolId" class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<input type="text" :placeholder="vc.i18n('请输入店铺ID','couponDetailManage')" v-model="couponDetailManageInfo.conditions.shopId" class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryCouponDetailMethod()">
|
||||
<i class="glyphicon glyphicon-search"></i> <span><vc:i18n name="查询" namespace="couponDetailManage"></vc:i18n></span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="ibox ">
|
||||
<div class="ibox-title">
|
||||
<h5>
|
||||
<span>
|
||||
<vc:i18n name="查询条件" namespace="couponDetailManage"></vc:i18n>
|
||||
</span>
|
||||
</h5>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<input type="text" :placeholder="vc.i18n('请输入优惠券','couponDetailManage')"
|
||||
v-model="couponDetailManageInfo.conditions.poolId" class=" form-control">
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<input type="text" :placeholder="vc.i18n('请输入店铺ID','couponDetailManage')"
|
||||
v-model="couponDetailManageInfo.conditions.shopId" class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryCouponDetailMethod()">
|
||||
<i class="glyphicon glyphicon-search"></i> <span>
|
||||
<vc:i18n name="查询" namespace="couponDetailManage"></vc:i18n>
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="ibox">
|
||||
<div class="ibox-title">
|
||||
<h5>
|
||||
<span><vc:i18n name="商家购买记录表信息" namespace="couponDetailManage"></vc:i18n></span>
|
||||
</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
|
||||
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">
|
||||
<span><vc:i18n name="商家购买记录表ID" namespace="couponDetailManage"></vc:i18n></span>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<span><vc:i18n name="店铺" namespace="couponDetailManage"></vc:i18n></span>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<span><vc:i18n name="优惠券名称" namespace="couponDetailManage"></vc:i18n></span>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<span><vc:i18n name="面值" namespace="couponDetailManage"></vc:i18n></span>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<span><vc:i18n name="购买价格" namespace="couponDetailManage"></vc:i18n></span>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<span><vc:i18n name="付款金额" namespace="couponDetailManage"></vc:i18n></span>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<span><vc:i18n name="购买数量" namespace="couponDetailManage"></vc:i18n></span>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<span><vc:i18n name="有效期" namespace="couponDetailManage"></vc:i18n></span>
|
||||
</th>
|
||||
<!-- <th class="text-center"><span><vc:i18n name="操作" namespace="couponDetailManage"></vc:i18n></span></th> -->
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="couponDetail in couponDetailManageInfo.couponDetails">
|
||||
<td class="text-center">{{couponDetail.detailId}}</td>
|
||||
<td class="text-center">{{couponDetail.shopName}}</td>
|
||||
<td class="text-center">{{couponDetail.couponName}}</td>
|
||||
<td class="text-center">{{couponDetail.actualPrice}}</td>
|
||||
<td class="text-center">{{couponDetail.buyPrice}}</td>
|
||||
<td class="text-center">{{couponDetail.amount}}</td>
|
||||
<td class="text-center">{{couponDetail.buyCount}}</td>
|
||||
<td class="text-center">{{couponDetail.validityDay}}</td>
|
||||
<!-- <td class="text-center">
|
||||
<div class="btn-group">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_openEditCouponDetailModel(couponDetail)"><span><vc:i18n name="修改" namespace="couponDetailManage"></vc:i18n></span></button>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_openDeleteCouponDetailModel(couponDetail)"><span><vc:i18n name="删除" namespace="couponDetailManage"></vc:i18n></span></button>
|
||||
</div>
|
||||
</td> -->
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
<ul class="pagination float-right"></ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<!-- 分页 -->
|
||||
<vc:create path="frame/pagination"></vc:create>
|
||||
</div>
|
||||
<div class="ibox">
|
||||
<div class="ibox-title">
|
||||
<h5>
|
||||
<vc:i18n name="商家购买记录" namespace="couponDetailManage"></vc:i18n>
|
||||
</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
|
||||
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="商家购买记录表ID" namespace="couponDetailManage"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="店铺" namespace="couponDetailManage"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="优惠券名称" namespace="couponDetailManage"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="面值" namespace="couponDetailManage"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="购买价格" namespace="couponDetailManage"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="付款金额" namespace="couponDetailManage"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="购买数量" namespace="couponDetailManage"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="有效期" namespace="couponDetailManage"></vc:i18n>
|
||||
</th>
|
||||
<!-- <th class="text-center"><span><vc:i18n name="操作" namespace="couponDetailManage"></vc:i18n></span></th> -->
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="couponDetail in couponDetailManageInfo.couponDetails">
|
||||
<td class="text-center">{{couponDetail.detailId}}</td>
|
||||
<td class="text-center">{{couponDetail.shopName}}</td>
|
||||
<td class="text-center">{{couponDetail.couponName}}</td>
|
||||
<td class="text-center">{{couponDetail.actualPrice}}</td>
|
||||
<td class="text-center">{{couponDetail.buyPrice}}</td>
|
||||
<td class="text-center">{{couponDetail.amount}}</td>
|
||||
<td class="text-center">{{couponDetail.buyCount}}</td>
|
||||
<td class="text-center">{{couponDetail.validityDay}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- 分页 -->
|
||||
<vc:create path="frame/pagination"></vc:create>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@ -119,4 +102,4 @@
|
||||
<vc:create path="admin/editCouponDetail"></vc:create>
|
||||
<vc:create path="admin/deleteCouponDetail"></vc:create>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@ -2,7 +2,7 @@
|
||||
<div class="ibox ">
|
||||
<div class="ibox-title">
|
||||
<h5>
|
||||
<vc:i18n name="查询条件" namespace="storeOrderCartReturnManage"></vc:i18n>
|
||||
<vc:i18n name="查询条件" namespace="storeOrderCartReturn"></vc:i18n>
|
||||
</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
</div>
|
||||
@ -11,29 +11,29 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-2">
|
||||
<div class="form-group">
|
||||
<input type="text" :placeholder="vc.i18n('订单编号','storeOrderCartReturnManage')"
|
||||
v-model="storeOrderCartReturnManageInfo.conditions.cartId" class=" form-control">
|
||||
<input type="text" :placeholder="vc.i18n('订单编号','storeOrderCartReturn')"
|
||||
v-model="storeOrderCartReturnInfo.conditions.cartId" class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<div class="form-group">
|
||||
<select class="custom-select" v-model="storeOrderCartReturnManageInfo.conditions.state">
|
||||
<option value="">{{vc.i18n('请选择状态','storeOrderCartReturnManage')}}</option>
|
||||
<option value="5005">{{vc.i18n('申请退款','storeOrderCartReturnManage')}}</option>
|
||||
<option value="6006">{{vc.i18n('退货成功','storeOrderCartReturnManage')}}</option>
|
||||
<option value="7007">{{vc.i18n('已退款','storeOrderCartReturnManage')}}</option>
|
||||
<select class="custom-select" v-model="storeOrderCartReturnInfo.conditions.state">
|
||||
<option value="">{{vc.i18n('请选择状态','storeOrderCartReturn')}}</option>
|
||||
<option value="5005">{{vc.i18n('申请退款','storeOrderCartReturn')}}</option>
|
||||
<option value="6006">{{vc.i18n('退货成功','storeOrderCartReturn')}}</option>
|
||||
<option value="7007">{{vc.i18n('已退款','storeOrderCartReturn')}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<div class="form-group">
|
||||
<input type="text" :placeholder="vc.i18n('请输入商品名称','storeOrderCartReturnManage')"
|
||||
v-model="storeOrderCartReturnManageInfo.conditions.prodName" class=" form-control">
|
||||
<input type="text" :placeholder="vc.i18n('请输入商品名称','storeOrderCartReturn')"
|
||||
v-model="storeOrderCartReturnInfo.conditions.prodName" class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryOrdersMethod()">
|
||||
<vc:i18n name="查询" namespace="storeOrderCartReturnManage"></vc:i18n>
|
||||
<vc:i18n name="查询" namespace="storeOrderCartReturn"></vc:i18n>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@ -44,7 +44,7 @@
|
||||
<div class="ibox">
|
||||
<div class="ibox-title">
|
||||
<h5>
|
||||
<vc:i18n name="退货订单" namespace="storeOrderCartReturnManage"></vc:i18n>
|
||||
<vc:i18n name="退货订单" namespace="storeOrderCartReturn"></vc:i18n>
|
||||
</h5>
|
||||
<div class="ibox-tools" style="top:10px;"></div>
|
||||
</div>
|
||||
@ -53,33 +53,33 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="订单号" namespace="storeOrderCartReturnManage"></vc:i18n>
|
||||
<vc:i18n name="订单号" namespace="storeOrderCartReturn"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="商品名称" namespace="storeOrderCartReturnManage"></vc:i18n>
|
||||
<vc:i18n name="商品名称" namespace="storeOrderCartReturn"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="商品规格" namespace="storeOrderCartReturnManage"></vc:i18n>
|
||||
<vc:i18n name="商品规格" namespace="storeOrderCartReturn"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="用户名称" namespace="storeOrderCartReturnManage"></vc:i18n>
|
||||
<vc:i18n name="用户名称" namespace="storeOrderCartReturn"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="退款金额" namespace="storeOrderCartReturnManage"></vc:i18n>
|
||||
<vc:i18n name="退款金额" namespace="storeOrderCartReturn"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="订单状态" namespace="storeOrderCartReturnManage"></vc:i18n>
|
||||
<vc:i18n name="订单状态" namespace="storeOrderCartReturn"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="退款原因" namespace="storeOrderCartReturnManage"></vc:i18n>
|
||||
<vc:i18n name="退款原因" namespace="storeOrderCartReturn"></vc:i18n>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<vc:i18n name="申请时间" namespace="storeOrderCartReturnManage"></vc:i18n>
|
||||
<vc:i18n name="申请时间" namespace="storeOrderCartReturn"></vc:i18n>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="order in storeOrderCartReturnManageInfo.orderCarts">
|
||||
<tr v-for="order in storeOrderCartReturnInfo.orderCarts">
|
||||
<td class="text-center">{{order.cartId}}</td>
|
||||
<td class="text-center">{{order.prodName}}</td>
|
||||
<td class="text-center">{{order.specValue}}</td>
|
||||
@ -4,7 +4,7 @@
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
data: {
|
||||
storeOrderCartReturnManageInfo: {
|
||||
storeOrderCartReturnInfo: {
|
||||
orderCarts: [],
|
||||
total: 0,
|
||||
records: 1,
|
||||
@ -12,7 +12,8 @@
|
||||
conditions: {
|
||||
cartId: '',
|
||||
state: '',
|
||||
prodName: ''
|
||||
prodName: '',
|
||||
mallApiCode:'queryStoreOrderCartReturnBmoImpl'
|
||||
},
|
||||
curOrderCart: {}
|
||||
}
|
||||
@ -21,10 +22,10 @@
|
||||
$that._listOrders(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_initEvent: function() {
|
||||
vc.on('storeOrderCartReturnManage', 'goBack', function(_param) {
|
||||
$that.storeOrderCartReturnManageInfo.orderDetail = false;
|
||||
vc.on('storeOrderCartReturn', 'goBack', function(_param) {
|
||||
$that.storeOrderCartReturnInfo.orderDetail = false;
|
||||
});
|
||||
vc.on('storeOrderCartReturnManage', 'list', function() {
|
||||
vc.on('storeOrderCartReturn', 'list', function() {
|
||||
$that._listOrders(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('pagination', 'page_event', function(_currentPage) {
|
||||
@ -33,21 +34,21 @@
|
||||
},
|
||||
methods: {
|
||||
_listOrders: function(_page, _rows) {
|
||||
$that.storeOrderCartReturnManageInfo.conditions.page = _page;
|
||||
$that.storeOrderCartReturnManageInfo.conditions.row = _rows;
|
||||
$that.storeOrderCartReturnInfo.conditions.page = _page;
|
||||
$that.storeOrderCartReturnInfo.conditions.row = _rows;
|
||||
let param = {
|
||||
params: $that.storeOrderCartReturnManageInfo.conditions
|
||||
params: $that.storeOrderCartReturnInfo.conditions
|
||||
};
|
||||
//发送get请求
|
||||
vc.http.apiGet('/storeOrderCartReturn/queryStoreOrderCartReturn',
|
||||
vc.http.apiGet('/mall.getAdminMallOpenApi',
|
||||
param,
|
||||
function(json, res) {
|
||||
let _json = JSON.parse(json);
|
||||
$that.storeOrderCartReturnManageInfo.total = _json.total;
|
||||
$that.storeOrderCartReturnManageInfo.records = _json.records;
|
||||
$that.storeOrderCartReturnManageInfo.orderCarts = _json.data;
|
||||
$that.storeOrderCartReturnInfo.total = _json.total;
|
||||
$that.storeOrderCartReturnInfo.records = _json.records;
|
||||
$that.storeOrderCartReturnInfo.orderCarts = _json.data;
|
||||
|
||||
let _orderCarts = $that.storeOrderCartReturnManageInfo.orderCarts;
|
||||
let _orderCarts = $that.storeOrderCartReturnInfo.orderCarts;
|
||||
|
||||
_orderCarts.forEach(item => {
|
||||
let _productSpecDetails = item.productSpecDetails;
|
||||
@ -60,8 +61,8 @@
|
||||
});
|
||||
|
||||
vc.emit('pagination', 'init', {
|
||||
total: $that.storeOrderCartReturnManageInfo.records,
|
||||
dataCount: $that.storeOrderCartReturnManageInfo.total,
|
||||
total: $that.storeOrderCartReturnInfo.records,
|
||||
dataCount: $that.storeOrderCartReturnInfo.total,
|
||||
currentPage: _page
|
||||
});
|
||||
},
|
||||
Loading…
Reference in New Issue
Block a user