bug
This commit is contained in:
parent
8952d5ca31
commit
87f9377e74
@ -23,10 +23,10 @@ public interface LJUserMapper extends BaseMapper<LJUser> {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据店铺id查询所有会员信息
|
* 根据店铺id查询所有会员信息
|
||||||
* @param storeId
|
* @param chainStoreId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public List<LJUserVo> queryUserList(@Param("storeId") int storeId);
|
public List<LJUserVo> queryUserList(@Param("chainStoreId") int chainStoreId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据手机号和连锁店id查询会员信息
|
* 根据手机号和连锁店id查询会员信息
|
||||||
|
@ -156,9 +156,9 @@
|
|||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
<select id="queryUserList" resultType="com.fuint.business.userManager.vo.LJUserVo" parameterType="int">
|
<select id="queryUserList" resultType="com.fuint.business.userManager.vo.LJUserVo" parameterType="int">
|
||||||
<include refid="selectUser"></include>
|
<include refid="selectUserAndBalance"></include>
|
||||||
<where>
|
<where>
|
||||||
mi.storeId = #{storeId}
|
mub.chain_store_id = #{chainStoreId}
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
<select id="userNum" resultType="java.lang.Integer">
|
<select id="userNum" resultType="java.lang.Integer">
|
||||||
|
@ -82,8 +82,8 @@ public class LJUserServiceImpl extends ServiceImpl<LJUserMapper, LJUser> impleme
|
|||||||
@Override
|
@Override
|
||||||
public List<LJUserVo> selectUsersList() {
|
public List<LJUserVo> selectUsersList() {
|
||||||
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||||
Integer storeId = nowAccountInfo.getStoreId();
|
LJStore store = storeService.selectStoreByStoreId(nowAccountInfo.getStoreId());
|
||||||
List<LJUserVo> list = baseMapper.queryUserList(storeId);
|
List<LJUserVo> list = baseMapper.queryUserList(store.getChainStoreId());
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,9 +70,9 @@ export function delUser(id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//下载示例文件
|
//下载示例文件
|
||||||
export function exportUsers() {
|
export function queryUsers() {
|
||||||
return request({
|
return request({
|
||||||
url: '/excel/export',
|
url: '/business/userManager/user/userList',
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -146,7 +146,7 @@
|
|||||||
<template slot-scope="props">
|
<template slot-scope="props">
|
||||||
<el-form label-position="left" class="demo-table-expand" style="margin-left: 20px">
|
<el-form label-position="left" class="demo-table-expand" style="margin-left: 20px">
|
||||||
<el-form-item label="用户信息">
|
<el-form-item label="用户信息">
|
||||||
<span>{{ props.row.userId ? queryUser(props.row.userId):"--" }}</span>
|
<span>{{ props.row.userId ? queryUser(userList,props.row.userId):"--" }}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="收银员">
|
<el-form-item label="收银员">
|
||||||
<span>{{ queryStaf(staffList,props.row.staffId) }}</span>
|
<span>{{ queryStaf(staffList,props.row.staffId) }}</span>
|
||||||
@ -262,7 +262,7 @@
|
|||||||
import {getDicts} from "@/api/dict/data";
|
import {getDicts} from "@/api/dict/data";
|
||||||
import {getOilNameList, getOilNumGun } from "@/api/cashier/oilnumgun";
|
import {getOilNameList, getOilNumGun } from "@/api/cashier/oilnumgun";
|
||||||
import {listOilOrder, oilOrderInfo, orderStatisticsApi} from "@/api/cashier/oilorder";
|
import {listOilOrder, oilOrderInfo, orderStatisticsApi} from "@/api/cashier/oilorder";
|
||||||
import {getUser} from "@/api/cashier/user/user";
|
import {getUser, queryUsers} from "@/api/cashier/user/user";
|
||||||
import {oilNumberList, oilNumbers} from "@/api/cashier/oilnumber";
|
import {oilNumberList, oilNumbers} from "@/api/cashier/oilnumber";
|
||||||
import {getOilGuns, getOilNumberGun} from "@/api/cashier/oilGuns";
|
import {getOilGuns, getOilNumberGun} from "@/api/cashier/oilGuns";
|
||||||
|
|
||||||
@ -270,6 +270,8 @@
|
|||||||
name: "order_Cashier",
|
name: "order_Cashier",
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
|
// 会员信息
|
||||||
|
userName:"",
|
||||||
oilOrder:{},
|
oilOrder:{},
|
||||||
// 退款密码
|
// 退款密码
|
||||||
password:"",
|
password:"",
|
||||||
@ -298,6 +300,8 @@
|
|||||||
total:0,
|
total:0,
|
||||||
// 油枪列表
|
// 油枪列表
|
||||||
oilGunList:[],
|
oilGunList:[],
|
||||||
|
// 用户列表
|
||||||
|
userList:[],
|
||||||
|
|
||||||
orderStatistics: {
|
orderStatistics: {
|
||||||
numberOfOilPens:'0',
|
numberOfOilPens:'0',
|
||||||
@ -317,12 +321,17 @@
|
|||||||
this.getList();
|
this.getList();
|
||||||
this.getPayType();
|
this.getPayType();
|
||||||
this.getOilGunList();
|
this.getOilGunList();
|
||||||
|
this.getUserList();
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
getUserList(){
|
||||||
|
queryUsers().then(res => {
|
||||||
|
this.userList = res.data
|
||||||
|
})
|
||||||
|
},
|
||||||
// 获取油枪信息
|
// 获取油枪信息
|
||||||
getOilGunList(){
|
getOilGunList(){
|
||||||
getOilNumberGun().then(res => {
|
getOilNumberGun().then(res => {
|
||||||
console.log(res)
|
|
||||||
res.data.forEach(item => {
|
res.data.forEach(item => {
|
||||||
if (item.oilGunList.length>0){
|
if (item.oilGunList.length>0){
|
||||||
item.oilGunList.forEach(i => {
|
item.oilGunList.forEach(i => {
|
||||||
@ -380,14 +389,13 @@
|
|||||||
return name;
|
return name;
|
||||||
},
|
},
|
||||||
// 根据id查询会员信息
|
// 根据id查询会员信息
|
||||||
async queryUser(id){
|
queryUser(list,id){
|
||||||
let result = "";
|
list.forEach(item => {
|
||||||
if (id!=null && id!=""){
|
if (item.id == id){
|
||||||
let data = await getUser(id);
|
this.userName = item.name + "|" + item.mobile
|
||||||
result = data.data.name + "|" + data.data.mobile
|
}
|
||||||
}
|
})
|
||||||
console.log(result)
|
return this.userName;
|
||||||
return result.toString();
|
|
||||||
},
|
},
|
||||||
getVal(list,val){
|
getVal(list,val){
|
||||||
let name = "";
|
let name = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user