1、客户关联会员;2、营销活动下加上是否重复参与字段

This commit is contained in:
zhaotianfeng 2024-09-20 15:39:19 +08:00
parent ba4d3db00d
commit 3572d75cbf
3 changed files with 108 additions and 53 deletions

View File

@ -51,3 +51,11 @@ export function exportLevelExcel(params) {
responseType: 'blob'
})
}
// 查询所有会员
export function getLevelAll(params) {
return request({
url: '/member/level/all',
method: 'get',
params,
})
}

View File

@ -69,6 +69,16 @@
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="2">
<el-col :span="12">
<el-form-item label="选择会员" prop="memberLevelId">
<el-select v-model="formData.memberLevelId" placeholder="请选择会员">
<el-option v-for="(item,index) in levelList" :key="item.id"
:label="item.name" :value="item.id" />
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="联系地址" prop="address">
@ -144,6 +154,7 @@
</template>
<script>
import {getLevelAll} from '@/api/member/level';
import * as CustomerMainApi from '@/api/base/customer';
import { getServicePackageList } from "@/api/system/servicePackage";
import ImageUpload from '@/components/ImageUpload';
@ -158,8 +169,28 @@ export default {
Editor,
FileUpload
},
created() {
},
mounted() {
//
getLevelAll().then(
res => {
if (res.code==0)
{
this.levelList = res.data
}
else {
this.$modal.msgError(res.msg)
}
}
)
},
data() {
return {
//
levelList:[],
//
dialogTitle: "",
//
@ -176,6 +207,7 @@ export default {
serviceList: [],
//
formData: {
memberLevelId: undefined,
id: undefined,
userId: undefined,
typeCode: '01',
@ -219,6 +251,9 @@ export default {
inviterType: [
{ required: true, message: '请选择注册方式', trigger: 'change' },
],
memberLevelId:[
{ required: true, message: '请选择会员', trigger: 'change' },
],
},
//
sexDictDatas: getDictDatas(DICT_TYPE.DICT_SYS_USER_SEX),

View File

@ -77,6 +77,17 @@
</el-switch>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="是否重复参与" prop="isParticipate">
<el-switch
v-model="formData.isParticipate"
active-color="#13ce66"
inactive-color="#ff4949"
active-value="1"
inactive-value="0">
</el-switch>
</el-form-item>
</el-col>
<el-col :span="24">
@ -120,6 +131,7 @@ export default {
isRechRule: '0',
isPack:'0',
isCoupon:'0',
isParticipate:'0'
},
//
formRules: {},