Browse Source

yshop1.9.9版本,优化了公众号配置,后台新增订单分类搜索与优化了商品显示等,修复#I19S9R问题

master
hupeng 5 years ago
parent
commit
c493b3fc68
  1. 35
      src/views/shop/order/index.vue

35
src/views/shop/order/index.vue

@ -16,6 +16,14 @@
:value="item.value" :value="item.value"
/> />
</el-select> </el-select>
<el-select v-model="orderType" clearable placeholder="订单类型" class="filter-item" style="width: 130px">
<el-option
v-for="item in typeOptions"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="toQuery">搜索</el-button> <el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="toQuery">搜索</el-button>
<!-- 新增 --> <!-- 新增 -->
</div> </div>
@ -36,14 +44,6 @@
<el-table-column prop="realName" label="用户姓名" /> <el-table-column prop="realName" label="用户姓名" />
<el-table-column prop="cartInfoList" width="300" label="商品信息"> <el-table-column prop="cartInfoList" width="300" label="商品信息">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="(item,index) in scope.row.cartInfoList">
<span><img
style="width: 30px;height: 30px;margin:0;cursor: pointer;"
:src="item.cartInfoMap.productInfo.image"
></span>
<span>{{ item.cartInfoMap.productInfo.storeName }}</span>
<span> | {{ item.cartInfoMap.truePrice }}×{{ item.cartInfoMap.cartNum }}</span>
</div>
<div v-for="(item,index) in scope.row.cartInfoList" v-if="item.cartInfoMap.productInfo.attrInfo"> <div v-for="(item,index) in scope.row.cartInfoList" v-if="item.cartInfoMap.productInfo.attrInfo">
<span> <span>
<img <img
@ -54,6 +54,14 @@
<span>{{ item.cartInfoMap.productInfo.storeName }}&nbsp;{{ item.cartInfoMap.productInfo.attrInfo.suk }}</span> <span>{{ item.cartInfoMap.productInfo.storeName }}&nbsp;{{ item.cartInfoMap.productInfo.attrInfo.suk }}</span>
<span> | {{ item.cartInfoMap.truePrice }}×{{ item.cartInfoMap.cartNum }}</span> <span> | {{ item.cartInfoMap.truePrice }}×{{ item.cartInfoMap.cartNum }}</span>
</div> </div>
<div v-else v-for="(item,index) in scope.row.cartInfoList">
<span><img
style="width: 30px;height: 30px;margin:0;cursor: pointer;"
:src="item.cartInfoMap.productInfo.image"
></span>
<span>{{ item.cartInfoMap.productInfo.storeName }}</span>
<span> | {{ item.cartInfoMap.truePrice }}×{{ item.cartInfoMap.cartNum }}</span>
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="payPrice" label="实际支付" /> <el-table-column prop="payPrice" label="实际支付" />
@ -166,7 +174,7 @@ export default {
mixins: [initData], mixins: [initData],
data() { data() {
return { return {
delLoading: false, status, delLoading: false, status, orderType: '0',
queryTypeOptions: [ queryTypeOptions: [
{ key: 'orderId', display_name: '订单号' }, { key: 'orderId', display_name: '订单号' },
{ key: 'realName', display_name: '用户姓名' }, { key: 'realName', display_name: '用户姓名' },
@ -182,6 +190,13 @@ export default {
{ value: '-1', label: '退款中' }, { value: '-1', label: '退款中' },
{ value: '-2', label: '已退款' }, { value: '-2', label: '已退款' },
{ value: '-4', label: '已删除' } { value: '-4', label: '已删除' }
],
typeOptions: [
{ value: '0', label: '所有订单' },
{ value: '1', label: '普通订单' },
{ value: '2', label: '拼团订单' },
{ value: '3', label: '秒杀订单' },
{ value: '4', label: '砍价订单' }
] ]
} }
}, },
@ -196,7 +211,7 @@ export default {
beforeInit() { beforeInit() {
this.url = 'api/yxStoreOrder' this.url = 'api/yxStoreOrder'
const sort = 'id,desc' const sort = 'id,desc'
this.params = { page: this.page, size: this.size, sort: sort, orderStatus: this.status } this.params = { page: this.page, size: this.size, sort: sort, orderStatus: this.status, orderType: this.orderType }
const query = this.query const query = this.query
const type = query.type const type = query.type
const value = query.value const value = query.value

Loading…
Cancel
Save