处理数据

This commit is contained in:
13405411873 2024-09-21 11:17:25 +08:00
parent 314fdca580
commit b49079e40e
4 changed files with 40 additions and 22 deletions

View File

@ -490,7 +490,7 @@ public class CardValueServiceImpl extends ServiceImpl<CardValueMapper, CardValue
//获取本油站消费有礼活动列表
IPage page = selectAll(new Page(1, 20), cardValue);
List<CardValueVO> cardValueAppletVOList = page.getRecords();
List<CardValueAppletVO> appletVOList = cardValueAppletVOList.stream().map(s -> {
return cardValueAppletVOList.stream().map(s -> {
CardValueAppletVO cardValueAppletVO = new CardValueAppletVO();
//活动时间
if (s.getActiveTime().equals("1")){
@ -523,7 +523,6 @@ public class CardValueServiceImpl extends ServiceImpl<CardValueMapper, CardValue
s.getRechargeBalance()+"元,赠送金额为:"+s.getGiftBalance()+"元,赠送券:"+card+"");
return cardValueAppletVO;
}).collect(Collectors.toList());
return appletVOList;
}
/**

View File

@ -385,7 +385,7 @@
left join mt_user_balance mub on mu.id = mub.mt_user_id
<where>
mu.mobile like concat('%',#{mobile},'%') and
mub.store_id = #{storeId}
mub.store_id = #{storeId} and mub.user_status = '0'
</where>
</select>
</mapper>

View File

@ -57,6 +57,7 @@
"screenfull": "5.0.2",
"sortablejs": "1.10.2",
"vue": "2.6.12",
"vue-clipboard2": "^0.3.3",
"vue-count-to": "1.0.13",
"vue-cropper": "0.5.5",
"vue-meta": "2.4.0",

View File

@ -7,40 +7,37 @@
<div class="d-s">
<img src="./imgs/new_user.png" style="width: 28px;height: 28px;margin-right: 10px">
<div>
<div style="font-weight: bold">{{chooseVipUser.name}}</div>
<div style="font-weight: bold">{{chooseVipUser.name||'匿名'}}</div>
<div class="d-s">
<span>{{chooseVipUser.mobile}}</span>
<img src="./imgs/fz.png" style="width: 17px;height: 17px;margin: 0px 10px">
<img src="./imgs/fz.png" @click="copyToClipboard(chooseVipUser.mobile)" style="width: 17px;height: 17px;margin: 0px 10px">
<img src="./imgs/vipicon.png" style="width: 23px;height: 19px;">
</div>
</div>
</div>
<div class="d-s">
<div style="font-size: 12px;margin-right: 5px">储值卡1000.000 </div>
<div style="font-size: 12px;margin-right: 5px">储值卡{{chooseVipUser.cardBalance}} </div>
<div style="font-size: 12px">囤油卡1000.000</div>
</div>
</div>
<div class="d-s">
<div class="an_bor" @click="addMemberRecharge()">会员充值</div>
<div class="an_bor">重置会员</div>
<div class="an_bor" @click="restVipUser">重置会员</div>
<div class="an_bor" @click="addFreeTicket()" >赠送优惠券</div>
</div>
</div>
<div class="o-top" v-if="!userInfo">
<div class="left_input">
<!-- <input type="text" v-model = "userMobile" @input="getUser()" placeholder="请输入会员手机号">-->
<!-- <i class="el-icon-search" @click="getUser()"></i>-->
<el-autocomplete
v-model="userMobile"
style="width: 95%;margin: 15px "
:fetch-suggestions="getUser"
placeholder="请输入会员手机号"
v-model="state"
:fetch-suggestions="querySearchAsync"
placeholder="请输入内容"
@select="handleSelect"
>
<template slot-scope="{ item }">
<div class="name">{{ item.name }}</div>
<div class="name" @click="chooseUser(item)">{{ item.name+" "+item.mobile }}</div>
</template>
</el-autocomplete>
</div>
@ -435,6 +432,9 @@ import refuelingAmount from './newHomeComponents/refuelingAmount.vue'
import { cashRegisterList, cashRegisterGoodsList } from '@/api/newHome/newHome.js'
import {QRCodeByStoreId} from "@/api/staff/qrcode";
import {userListByPhone} from "@/api/cashier/user";
import Vue from 'vue';
import { VueClipboard } from 'vue-clipboard2';
export default {
data() {
return {
@ -592,11 +592,6 @@ export default {
},
computed: {
chooseUser(data){
//
this.userInfo = true
this.chooseVipUser = data
},
getGoodsItem() {
if (this.oilGunClearing.amount && this.oilGunClearing.amount !== undefined) {
//
@ -629,11 +624,34 @@ export default {
},
methods: {
copyToClipboard(textToCopy) {
VueClipboard(textToCopy).then(() => {
this.$message.success("复制成功")
//
}, () => {
console.log('复制失败');
//
});
},
restVipUser(){
this.userInfo = false
this.chooseVipUser = {}
},
chooseUser(data){
if (data){
//
this.userInfo = true
this.chooseVipUser = data
console.log(this.chooseVipUser,598)
}
},
//
getUser(){
userListByPhone({mobile:this.userMobile}).then( response => {
getUser(queryString, cb){
userListByPhone({mobile:queryString}).then( response => {
if (response.data){
this.vipUserList = response.data
cb(response.data)
console.log(response.data,608)
}else {
this.$modal.msgError("会员信息不存在")