This commit is contained in:
ds 2024-11-02 09:09:37 +08:00
parent eb78f504ee
commit 590ada2db7
2 changed files with 64 additions and 13 deletions

View File

@ -589,7 +589,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <!-- <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="群发方式" prop="sendWay"> <el-form-item label="群发方式" prop="sendWay">
<div style="display: flex"> <div style="display: flex">
@ -603,20 +603,46 @@
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row> -->
<el-row>
<el-col :span="24"> <el-form-item label="活动奖品" prop="senfGift">
<el-form-item label="群发礼品" prop="senfGift"> <div style="display: flex">
<el-checkbox-group v-model="form1.senfGift"> <div style="width: 15%">
<el-checkbox label="积分"></el-checkbox> <el-checkbox-group v-model="form1.senfGift">
<el-checkbox label="优惠券"></el-checkbox> <div style="display: flex; font-size: 14px;">
<el-checkbox label="积分"></el-checkbox>
</div>
<div style="display: flex; font-size: 14px;margin: 15px 0;align-items: center">
<el-checkbox label="优惠券"></el-checkbox>
</div>
</el-checkbox-group> </el-checkbox-group>
</el-form-item> </div>
</el-col> <div style="width: 85%">
</el-row> <div style="display: flex; font-size: 14px;">
<el-input style="width: 100%; margin-left: 30px;" v-model="form1.points">
<template slot="append">积分</template>
</el-input>
</div>
<div style="font-size: 14px;margin: 20px 0;display: flex;align-items: center">
<el-select v-model="form1.couponId" style="margin-left: 30px;width: 50%" >
<el-option
v-for="(item1,index1) in couponList"
:key="index1"
:label="item1.name"
:value="item1.id"></el-option>
</el-select>
<el-input style="width: 40%; margin-left: 10px;" v-model="form1.couponTotal">
<template slot="append"></template>
</el-input>
</div>
</div>
</div>
</el-form-item>
<el-row>
<!-- <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="短信模板" prop="messageId" v-if="title != '修改会员'"> <el-form-item label="短信模板" prop="messageId" v-if="title != '修改会员'">
<el-select v-model="form1.messageId" placeholder="请选择短信模板名称" style="width: 100%"> <el-select v-model="form1.messageId" placeholder="请选择短信模板名称" style="width: 100%">
@ -625,7 +651,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row> -->
<el-form-item label="群发会员数量"> <el-form-item label="群发会员数量">
{{ form1.sendUserNum }} {{ form1.sendUserNum }}
</el-form-item> </el-form-item>
@ -739,6 +765,7 @@ import {getListApi} from "@/api/setting/message";
import {addUserMassSend} from "@/api/userGroup/userMassSend"; import {addUserMassSend} from "@/api/userGroup/userMassSend";
import {deleteUserMassSendRecord, listUserMassSendRecord} from "@/api/userGroup/userMassSendRecord"; import {deleteUserMassSendRecord, listUserMassSendRecord} from "@/api/userGroup/userMassSendRecord";
import {listUserLabel} from "@/api/staff/user/userlabel"; import {listUserLabel} from "@/api/staff/user/userlabel";
import {getCardCouponNum} from "@/api/EventMarketing/cardCoupon";
export default { export default {
name: "MemberIndex", name: "MemberIndex",
@ -776,6 +803,8 @@ export default {
} }
], ],
//
couponList:[],
addMember: [], addMember: [],
// //
balance: '', balance: '',
@ -907,8 +936,14 @@ export default {
this.getConfig(); this.getConfig();
this.getUserList(); this.getUserList();
this.getMessageList() this.getMessageList()
this.getCardCoupon()
}, },
methods: { methods: {
getCardCoupon(){
getCardCouponNum({status:1}).then(res => {
this.couponList = res.data
})
},
handleAvatarSuccess(res, file) { handleAvatarSuccess(res, file) {
this.imageUrl = URL.createObjectURL(file.raw); this.imageUrl = URL.createObjectURL(file.raw);
}, },

View File

@ -80,6 +80,22 @@ public class UserMassSend extends BaseEntity implements Serializable {
* 群发礼品0积分1优惠券2成长值 * 群发礼品0积分1优惠券2成长值
*/ */
private String senfGift; private String senfGift;
/**
* 赠送积分
*/
private Integer points;
/**
* 优惠券ID
*/
private Integer couponId;
/**
* 赠送优惠券张数
*/
private Integer couponTotal;
/** /**
* 短信模板id * 短信模板id
*/ */