Commit 97554818 by YG8999

bug修复

parent b715ea96
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<el-table-column label="手机号" align="center" prop="phone" /> <el-table-column label="手机号" align="center" prop="phone" />
<el-table-column label="角色类型" align="center" prop="roleType" > <el-table-column label="角色类型" align="center" prop="roleType" >
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.consumer_role_type" :value="scope.row.roleType"/> <dict-tag :options="dict.type.wechat_role_type" :value="scope.row.roleType"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="性别" align="center" prop="sex"> <el-table-column label="性别" align="center" prop="sex">
...@@ -156,7 +156,7 @@ import { listConsumer, getConsumer, delConsumer, addConsumer, updateConsumer } f ...@@ -156,7 +156,7 @@ import { listConsumer, getConsumer, delConsumer, addConsumer, updateConsumer } f
export default { export default {
name: "Consumer", name: "Consumer",
dicts: ['sys_user_sex','consumer_role_type'], dicts: ['sys_user_sex','wechat_role_type'],
data() { data() {
return { return {
// 遮罩层 // 遮罩层
......
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="px">
<el-form-item label="用户昵称" prop="nickName"> <el-form-item label="用户昵称" prop="nickName">
<el-input <el-input
v-model="queryParams.nickName" v-model="queryParams.nickName"
...@@ -17,30 +17,36 @@ ...@@ -17,30 +17,36 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<!-- <el-form-item label="会员性别" prop="gender">--> <el-form-item label="会员性别" prop="sex">
<el-select
v-model="queryParams.sex"
placeholder="会员性别"
clearable
>
<el-option
v-for="dict in dict.type.sys_user_sex"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<!-- <el-form-item label="充值余额" prop="amount">-->
<!-- <el-input--> <!-- <el-input-->
<!-- v-model="queryParams.gender"--> <!-- v-model="queryParams.amount"-->
<!-- placeholder="请输入会员性别"--> <!-- placeholder="请输入充值余额"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="赠送余额" prop="freeAmount">-->
<!-- <el-input-->
<!-- v-model="queryParams.freeAmount"-->
<!-- placeholder="请输入赠送余额"-->
<!-- clearable--> <!-- clearable-->
<!-- @keyup.enter.native="handleQuery"--> <!-- @keyup.enter.native="handleQuery"-->
<!-- />--> <!-- />-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item label="充值余额" prop="amount">
<el-input
v-model="queryParams.amount"
placeholder="请输入充值余额"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="赠送余额" prop="freeAmount">
<el-input
v-model="queryParams.freeAmount"
placeholder="请输入赠送余额"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<!-- <el-form-item label="消费次数" prop="totalTimes">--> <!-- <el-form-item label="消费次数" prop="totalTimes">-->
<!-- <el-input--> <!-- <el-input-->
<!-- v-model="queryParams.totalTimes"--> <!-- v-model="queryParams.totalTimes"-->
...@@ -125,9 +131,9 @@ ...@@ -125,9 +131,9 @@
<dict-tag :options="dict.type.wechat_role_type" :value="scope.row.roleType"/> <dict-tag :options="dict.type.wechat_role_type" :value="scope.row.roleType"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="会员性别" align="center" prop="gender"> <el-table-column label="会员性别" align="center" prop="sex">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.sys_user_sex" :value="scope.row.gender"/> <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.sex"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="详细地址" align="center" prop="addres" /> <el-table-column label="详细地址" align="center" prop="addres" />
...@@ -265,7 +271,7 @@ export default { ...@@ -265,7 +271,7 @@ export default {
phone: null, phone: null,
level: null, level: null,
roleType: null, roleType: null,
gender: null, sex: null,
amount: null, amount: null,
freeAmount: null, freeAmount: null,
totalTimes: null, totalTimes: null,
......
...@@ -79,29 +79,41 @@ ...@@ -79,29 +79,41 @@
<el-form-item label="订单状态" prop="status"> <el-form-item label="订单状态" prop="status">
<el-select v-model="queryParams.status" placeholder="请选择订单状态" clearable> <el-select v-model="queryParams.status" placeholder="请选择订单状态" clearable>
<el-option <el-option
v-for="dict in dict.type.store_order_status" v-for="dict in dict.type.order_status_admin"
:key="dict.value" :key="dict.value"
:label="dict.label" :label="dict.label"
:value="dict.value" :value="dict.value"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="开始时间" prop="startDate"> <el-form-item label="下单时间">
<el-date-picker clearable <el-date-picker
v-model="queryParams.startDate" v-model="dateValue"
type="date" type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="请选择开始时间"> :default-time="['00:00:00', '23:59:59']">
</el-date-picker>
</el-form-item>
<el-form-item label="结束时间" prop="endDate">
<el-date-picker clearable
v-model="queryParams.endDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择结束时间">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<!-- <el-form-item label="开始时间" prop="startDate">-->
<!-- <el-date-picker clearable-->
<!-- v-model="queryParams.startDate"-->
<!-- type="date"-->
<!-- value-format="yyyy-MM-dd"-->
<!-- placeholder="请选择开始时间">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="结束时间" prop="endDate">-->
<!-- <el-date-picker clearable-->
<!-- v-model="queryParams.endDate"-->
<!-- type="date"-->
<!-- value-format="yyyy-MM-dd"-->
<!-- placeholder="请选择结束时间">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
...@@ -238,7 +250,7 @@ ...@@ -238,7 +250,7 @@
</el-table-column> </el-table-column>
<el-table-column label="订单状态" align="center" prop="status"> <el-table-column label="订单状态" align="center" prop="status">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.store_order_status" :value="scope.row.status"/> <dict-tag :options="dict.type.order_status_admin" :value="scope.row.status"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="下单时间" align="center" prop="createTime" width="150"> <el-table-column label="下单时间" align="center" prop="createTime" width="150">
...@@ -395,7 +407,7 @@ import {queryCouponList} from "@/api/system/consumerCoupon"; ...@@ -395,7 +407,7 @@ import {queryCouponList} from "@/api/system/consumerCoupon";
export default { export default {
name: "Order", name: "Order",
dicts: ['store_order_type', 'store_coupon_type', 'store_is_use_coupon', 'store_order_status','store_pay_ways','order_pay_status'], dicts: ['store_order_type', 'store_coupon_type', 'store_is_use_coupon', 'store_order_status','store_pay_ways','order_pay_status','order_status_admin'],
data() { data() {
return { return {
// 遮罩层 // 遮罩层
...@@ -426,6 +438,7 @@ export default { ...@@ -426,6 +438,7 @@ export default {
title: "", title: "",
// 是否显示弹出层 // 是否显示弹出层
open: false, open: false,
dateValue: null,
// 查询参数 // 查询参数
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
...@@ -515,6 +528,11 @@ export default { ...@@ -515,6 +528,11 @@ export default {
}, },
/** 查询订单列表 */ /** 查询订单列表 */
getList() { getList() {
// console.log(this.dateValue)
if (this.dateValue && this.dateValue.length > 0) {
this.queryParams.startDate = this.dateValue[0];
this.queryParams.endDate = this.dateValue[1];
}
this.loading = true; this.loading = true;
listOrder(this.queryParams).then(response => { listOrder(this.queryParams).then(response => {
this.orderList = response.rows; this.orderList = response.rows;
...@@ -568,6 +586,7 @@ export default { ...@@ -568,6 +586,7 @@ export default {
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
this.resetForm("queryForm"); this.resetForm("queryForm");
this.dateValue = null;
this.handleQuery(); this.handleQuery();
}, },
// 多选框选中数据 // 多选框选中数据
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment