|
|
|
@ -5,10 +5,10 @@ |
|
|
|
|
<el-input v-model="searchForm.memberName" placeholder="会员名称" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item> |
|
|
|
|
<el-select v-model="searchForm.carTypeId" placeholder="选择车型" clearable filterable> |
|
|
|
|
<el-option label="小车" value="1001" /> |
|
|
|
|
<el-option label="摩托车" value="1002" /> |
|
|
|
|
</el-select> |
|
|
|
|
<el-radio-group v-model="searchForm.carTypeId" @change="searchList"> |
|
|
|
|
<el-radio label="1001">小车</el-radio> |
|
|
|
|
<el-radio label="1002">摩托车</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item> |
|
|
|
|
<el-button @click="searchList">查询</el-button> |
|
|
|
@ -29,7 +29,7 @@ |
|
|
|
|
<el-tag v-else type="danger">年</el-tag> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="使用方式" align="center" prop="typeName" /> |
|
|
|
|
<el-table-column label="使用方式" align="center" prop="useTypeName" /> |
|
|
|
|
<el-table-column label="操作" width="160"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
<el-button type="primary" link @click="editVip(row)">修改</el-button> |
|
|
|
@ -45,7 +45,7 @@ |
|
|
|
|
@pagination="getList" |
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
<el-dialog title="会员详情" v-model="showDialog" width="500px"> |
|
|
|
|
<el-dialog title="会员详情" v-model="showDialog" width="500px" :close-on-click-modal="false"> |
|
|
|
|
<el-form :model="form" ref="formRef" :rules="rules" label-width="80px"> |
|
|
|
|
<el-form-item label="会员名称" prop="memberName"> |
|
|
|
|
<el-input v-model="form.memberName" /> |
|
|
|
@ -77,8 +77,8 @@ |
|
|
|
|
<el-radio :label="3">年</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="使用方式" prop="type"> |
|
|
|
|
<el-checkbox-group v-model="form.type"> |
|
|
|
|
<el-form-item label="使用方式" prop="useTypes"> |
|
|
|
|
<el-checkbox-group v-model="form.useTypes"> |
|
|
|
|
<el-checkbox :label="1"> 用户购买 </el-checkbox> |
|
|
|
|
<el-checkbox :label="2"> 客服赠送 </el-checkbox> |
|
|
|
|
</el-checkbox-group> |
|
|
|
@ -99,8 +99,8 @@ |
|
|
|
|
import { getVipTypeList, addVipType, updateVipType, deleteVipType } from '@/api/xjapplet/vip' |
|
|
|
|
const message = useMessage() |
|
|
|
|
const searchForm = ref({ |
|
|
|
|
memberName: '', |
|
|
|
|
carTypeId: undefined, |
|
|
|
|
memberName: undefined, |
|
|
|
|
carTypeId: '1001', |
|
|
|
|
pageNo: 1, |
|
|
|
|
pageSize: 50 |
|
|
|
|
}) |
|
|
|
@ -129,13 +129,13 @@ function getList() { |
|
|
|
|
const showDialog = ref(false) |
|
|
|
|
const form = ref({ |
|
|
|
|
memberName: '', |
|
|
|
|
carTypeId: '', |
|
|
|
|
carTypeId: undefined, |
|
|
|
|
subjects: [], |
|
|
|
|
price: '', |
|
|
|
|
discount: '', |
|
|
|
|
duration: '', |
|
|
|
|
unit: 1, |
|
|
|
|
type: [1] |
|
|
|
|
useTypes: [1] |
|
|
|
|
}) |
|
|
|
|
const rules = ref({ |
|
|
|
|
memberName: [{ required: true, message: '请输入会员名称', trigger: 'blur' }], |
|
|
|
@ -148,6 +148,7 @@ const rules = ref({ |
|
|
|
|
|
|
|
|
|
function addVip() { |
|
|
|
|
showDialog.value = true |
|
|
|
|
form.value.carTypeId = searchForm.value.carTypeId |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function editVip(row) { |
|
|
|
|