This commit is contained in:
cun-nan 2024-03-15 10:44:21 +08:00
parent b4a01817ca
commit a3a532faaf
10 changed files with 40 additions and 27 deletions

View File

@ -986,9 +986,10 @@ export default {
validityOne: null,
validityTwo:null,
validity:row.validity,
giftCardDetail: row.useInstructions , //
giftCardDetail: row.cardDetail, //
giftCardTime: row.validity, //
giftCardTotal: 1 //
giftCardTotal: 1, //
instruction: row.useInstructions, //使
}
this.tableDatas.push(data)
@ -1011,14 +1012,15 @@ export default {
goodsTotal: "", //
vouchersId:row.id, //id
giftCardName:row.name, //
giftCardType: row.type, //
giftCardType: row.discountType, //
timeType: row.timeType,
validityZero: row.validityZero,
validityOne: row.validityOne,
validityTwo:row.validityTwo,
giftCardDetail: "满"+ row.satisfiedAmount+"减 "+row.discountAmount+"元" , //
giftCardTime: "", //
giftCardTotal: 1//
giftCardTotal: 1,//
instruction: row.instruction,//使
}
// this.form.tableDatas.push(data)

View File

@ -785,9 +785,10 @@ export default {
validityOne: null,
validityTwo:null,
validity:row.validity,
giftCardDetail: row.useInstructions , //
giftCardDetail: row.cardDetail , //
giftCardTime: row.validity, //
giftCardTotal: 1 //
giftCardTotal: 1, //
instruction: row.useInstructions, //使
}
this.tableDatas.push(data)
@ -810,14 +811,15 @@ export default {
goodsTotal: "", //
vouchersId:row.id, //id
giftCardName:row.name, //
giftCardType: row.type, //
giftCardType: row.discountType, //
timeType: row.timeType,
validityZero: row.validityZero,
validityOne: row.validityOne,
validityTwo:row.validityTwo,
giftCardDetail: "满"+ row.satisfiedAmount+"减 "+row.discountAmount+"元" , //
giftCardTime: "", //
giftCardTotal: 1//
giftCardTotal: 1,//
instruction: row.instruction,//使
}
this.form.tableDatas.push(data)

View File

@ -943,9 +943,10 @@ export default {
validityOne: null,
validityTwo:null,
validity:row.validity,
giftCardDetail: row.useInstructions , //
giftCardDetail: row.cardDetail , //
giftCardTime: row.validity, //
giftCardTotal: 1 //
giftCardTotal: 1 , //
instruction: row.useInstructions, //使
}
this.ruleForm.dlist.push(data)
@ -979,14 +980,15 @@ export default {
goodsTotal: "", //
vouchersId:row.id, //id
giftCardName:row.name, //
giftCardType: row.type, //
giftCardType: row.discountType, //
timeType: row.timeType,
validityZero: row.validityZero,
validityOne: row.validityOne,
validityTwo:row.validityTwo,
giftCardDetail: "满"+ row.satisfiedAmount+"减 "+row.discountAmount+"元" , //
giftCardTime: "", //
giftCardTotal: 1//
giftCardTotal: 1,//
instruction: row.instruction,//使
}
this.ruleForm.xylist.push(data)
this.$message.success("新增成功")
@ -1008,14 +1010,15 @@ export default {
goodsTotal: "", //
vouchersId:row.id, //id
giftCardName:row.name, //
giftCardType: row.type, //
giftCardType: row.discountType, //
timeType: row.timeType,
validityZero: row.validityZero,
validityOne: row.validityOne,
validityTwo:row.validityTwo,
giftCardDetail: "满"+ row.satisfiedAmount+"减 "+row.discountAmount+"元" , //
giftCardTime: "", //
giftCardTotal: 1//
giftCardTotal: 1,//
instruction: row.instruction,//使
}
console.log(data)
this.ruleForm.ylist.push(data)

View File

@ -194,8 +194,8 @@
</el-form-item>
<el-form-item label="卡券有效期" prop="validity">
<el-input-number :min="1" placeholder="请输入卡券有效期" v-model="form.validity">
<template slot="append"></template>
</el-input-number>
<span style="margin-left: 10px"></span>
<!-- <div style="width: 217px">
<el-input type="number" placeholder="请输入卡券有效期" v-model="form.validity">
<template slot="append"></template>

View File

@ -75,7 +75,8 @@
</el-table-column>
<el-table-column label="优惠金额" align="center" prop="discountAmount" >
<template slot-scope="scope">
<el-tag effect="plain" >{{scope.row.discountAmount}}</el-tag>
<span v-if="scope.row.discountType == 0"> <el-tag effect="plain" >{{scope.row.discountAmount}}</el-tag> </span>
<span v-if="scope.row.discountType == 1"> <el-tag effect="plain" >{{scope.row.specialDiscount}}</el-tag> </span>
</template>
</el-table-column>
<el-table-column label="有效期" align="center" prop="validity" >

View File

@ -501,6 +501,7 @@ export default {
})
} else {
this.auditPrem = []
this.form.auditPrem = ""
}
},
getAuditPrem(){

View File

@ -328,8 +328,8 @@
label="券类型"
width="80">
<template slot-scope="scope">
<span v-if="scope.row.giftCardType == 0" >油品</span>
<!-- <span v-if="scope.row.giftCardType == 1" >洗车</span>-->
<span v-if="scope.row.giftCardType == 0" >满减</span>
<span v-if="scope.row.giftCardType == 1" >折扣</span>
<!-- <span v-if="scope.row.giftCardType == 2" >通用券</span>-->
</template>
</el-table-column>
@ -626,8 +626,8 @@
label="券类型"
width="100">
<template slot-scope="scope">
<span v-if="scope.row.type == 0" >油品</span>
<!-- <span v-if="scope.row.type == 1" >洗车</span>-->
<span v-if="scope.row.discountType == 0" >满减</span>
<span v-if="scope.row.discountType == 1" >折扣</span>
<!-- <span v-if="scope.row.type == 2" >通用券</span>-->
</template>
</el-table-column>
@ -950,9 +950,10 @@ export default {
validityOne: null,
validityTwo:null,
validity:row.validity,
giftCardDetail: row.useInstructions , //
giftCardDetail: row.cardDetail , //
giftCardTime: row.validity, //
giftCardTotal: 1 //
giftCardTotal: 1 , //
instruction: row.useInstructions, //使
}
this.tableDatas.push(data)
@ -972,14 +973,15 @@ export default {
activeGift: 1, //1 2
vouchersId:row.id, //id
giftCardName:row.name, //
giftCardType: row.type, //
giftCardType: row.discountType, //
timeType: row.timeType,
validityZero: row.validityZero,
validityOne: row.validityOne,
validityTwo:row.validityTwo,
giftCardDetail: "满"+ row.satisfiedAmount+"减 "+row.discountAmount+"元" , //
giftCardTime: "", //
giftCardTotal: 1//
giftCardTotal: 1,//
instruction: row.instruction,//使
}
this.tableDatas1.push(data)

View File

@ -1,5 +1,6 @@
package com.fuint.business.member.controller;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fuint.business.member.entity.LJStaff;
@ -148,6 +149,8 @@ public class LJStaffController extends BaseController {
*/
@PutMapping
public ResponseObject edit(@Validated @RequestBody LJStaff staff){
if (ObjectUtil.isEmpty(staff.getAuditPrem()))
mtStaffService.lambdaUpdate().eq(LJStaff::getId,staff.getId()).set(LJStaff::getAuditPrem,null).update();
return getSuccessResult(mtStaffService.updateStaff(staff));
}

View File

@ -133,9 +133,6 @@
<if test="user.chainStoreId != null and user.chainStoreId != ''">
and mub.chain_store_id = #{user.chainStoreId}
</if>
<if test="user.storeId != null and user.storeId != ''">
and mub.store_id = #{user.storeId}
</if>
<if test="user.mobile != null and user.mobile != ''">
and mu.mobile like concat('%', #{user.mobile}, '%')
</if>

View File

@ -147,11 +147,13 @@ public class LJUserServiceImpl extends ServiceImpl<LJUserMapper, LJUser> impleme
// Double refuelMoney = baseMapper.selectSumByStore(storeId, "refuel_money");
QueryWrapper queryWrapper = new QueryWrapper<>();
queryWrapper.eq("chain_store_id",chainStoreId);
queryWrapper.apply(true, "TO_DAYS(NOW())-TO_DAYS(create_time) = 0");
// Integer addNum = baseMapper.selectCount(queryWrapper);
Integer addNum = userBalanceMapper.selectCount(queryWrapper);
QueryWrapper queryWrapper1 = new QueryWrapper<>();
queryWrapper1.eq("chain_store_id",chainStoreId);
queryWrapper1.apply(true, "TO_DAYS(NOW())-TO_DAYS(create_time) = 1");
// Integer yesterdayAddNum = baseMapper.selectCount(queryWrapper1);