|
@@ -13,13 +13,17 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="标签">
|
|
|
<el-select v-model="formParams.labelId" placeholder="请选择">
|
|
|
- <el-option v-for="(item, index) in tipsList" :key="index" :label="item.labelName"
|
|
|
- :value="item.buyerLabelId" />
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in tipsList" :key="index" :label="item.labelName"
|
|
|
+ :value="item.buyerLabelId"
|
|
|
+ />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="最近消费时间">
|
|
|
- <el-date-picker v-model="formParams.dates" type="daterange" range-separator="至" start-placeholder="开始时间"
|
|
|
- end-placeholder="结束时间" value-format="yyyy-MM-dd" />
|
|
|
+ <el-date-picker
|
|
|
+ v-model="formParams.dates" type="daterange" range-separator="至" start-placeholder="开始时间"
|
|
|
+ end-placeholder="结束时间" value-format="yyyy-MM-dd"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-form-item label="累计消费金额">
|
|
@@ -31,12 +35,16 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-form-item label="购买次数">
|
|
|
- <el-input v-model="formParams.minBuyers" maxlength="9" oninput="value=value.replace(/[^\d]/g,'')"
|
|
|
- placeholder="请输入最小值" />
|
|
|
+ <el-input
|
|
|
+ v-model="formParams.minBuyers" maxlength="9" oninput="value=value.replace(/[^\d]/g,'')"
|
|
|
+ placeholder="请输入最小值"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="-">
|
|
|
- <el-input v-model="formParams.maxBuyers" maxlength="9" oninput="value=value.replace(/[^\d]/g,'')"
|
|
|
- placeholder="请输入最大值" />
|
|
|
+ <el-input
|
|
|
+ v-model="formParams.maxBuyers" maxlength="9" oninput="value=value.replace(/[^\d]/g,'')"
|
|
|
+ placeholder="请输入最大值"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-form-item>
|
|
|
|
|
@@ -50,8 +58,10 @@
|
|
|
<!-- 表格 -->
|
|
|
<div class="content_table">
|
|
|
<div class="table">
|
|
|
- <el-table :data="tableData" border :header-cell-style="{ background: '#EEF3FF', color: '#333333' }"
|
|
|
- style="width: 100%">
|
|
|
+ <el-table
|
|
|
+ :data="tableData" border :header-cell-style="{ background: '#EEF3FF', color: '#333333' }"
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
<el-table-column prop="name" label="客户昵称" />
|
|
|
<el-table-column prop="phone" label="手机号" />
|
|
|
<el-table-column prop="memberLevelName" label="会员等级" />
|
|
@@ -68,10 +78,14 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="time" label="最近消费时间" />
|
|
|
<el-table-column prop="createTime" label="注册时间" />
|
|
|
- <el-table-column :formatter="row => row.registerIp ? row.registerIp : '-'" label="注册IP"
|
|
|
- show-overflow-tooltip />
|
|
|
- <el-table-column :formatter="row => row.lastLoginIp ? row.lastLoginIp : '-'" prop="time" label="最后登录IP"
|
|
|
- show-overflow-tooltip />
|
|
|
+ <el-table-column
|
|
|
+ :formatter="row => row.registerIp ? row.registerIp : '-'" label="注册IP"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ :formatter="row => row.lastLoginIp ? row.lastLoginIp : '-'" prop="time" label="最后登录IP"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
<el-table-column label="操作" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" @click.native.prevent="details(scope.row)">详情</el-button>
|
|
@@ -86,9 +100,11 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<div class="fenye">
|
|
|
- <el-pagination :current-page="currentPage" :page-sizes="[10, 20, 50, 100]" :page-size="10"
|
|
|
+ <el-pagination
|
|
|
+ :current-page="currentPage" :page-sizes="[10, 20, 50, 100]" :page-size="10"
|
|
|
layout="total, sizes, prev, pager, next, jumper" :total="total" @size-change="handleSizeChange"
|
|
|
- @current-change="handleCurrentChange" />
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -113,17 +129,22 @@
|
|
|
<el-checkbox-group v-model="checkList">
|
|
|
<el-checkbox v-for="(item, index) in tipsList" :key="index" class="checkBoxStyle" :label="item.buyerLabelId">
|
|
|
{{
|
|
|
- item.labelName }}
|
|
|
+ item.labelName }}
|
|
|
</el-checkbox>
|
|
|
</el-checkbox-group>
|
|
|
</div>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="addFormDialog = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="saveTips">确定</el-button>
|
|
|
- </span>
|
|
|
+ <template #footer>
|
|
|
+ <span class="dialog-footer">
|
|
|
+ <el-button @click="addFormDialog = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="saveTips">确定</el-button>
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
</el-dialog>
|
|
|
- <el-dialog title="修改会员积分" :visible.sync="editIntegral" width="30%" center :close-on-click-modal="false"
|
|
|
- @close="credit = 0">
|
|
|
+ <el-dialog
|
|
|
+ title="修改会员积分" :visible.sync="editIntegral" width="30%" center
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ @close="credit = 0"
|
|
|
+ >
|
|
|
<el-form label-width="100px">
|
|
|
<el-form-item label="修改积分">
|
|
|
<el-radio-group v-model="updateWay" @change="changeWayRadio">
|
|
@@ -139,72 +160,84 @@
|
|
|
<span>提示 : 在原有积分上增加或减少</span>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="editIntegral = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="saveIntegral">确定</el-button>
|
|
|
- </span>
|
|
|
+ <template #footer>
|
|
|
+ <span class="dialog-footer">
|
|
|
+ <el-button @click="editIntegral = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="saveIntegral">确定</el-button>
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 指定关系 -->
|
|
|
- <el-dialog title="选择关系" :visible.sync="appointDialog" width="40%" center :close-on-click-modal="false"
|
|
|
- @close="appintClose">
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-form label-width="120px" :model="appintForm" :rules="rules" ref="ruleForm">
|
|
|
- <div class="lable-list">
|
|
|
- <div class="lable-item">
|
|
|
- <el-form-item label="加盟商名称:" prop="name">
|
|
|
- <el-input v-model="appintForm.name" placeholder="请输入名称"></el-input>
|
|
|
- </el-form-item>
|
|
|
+ <el-dialog
|
|
|
+ title="选择关系" :visible.sync="appointDialog" width="40%" center
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ @close="appintClose"
|
|
|
+ >
|
|
|
+ <template #footer>
|
|
|
+ <span class="dialog-footer">
|
|
|
+ <el-form ref="ruleForm" label-width="120px" :model="appintForm" :rules="rules">
|
|
|
+ <div class="lable-list">
|
|
|
+ <div class="lable-item">
|
|
|
+ <el-form-item label="加盟商名称:" prop="name">
|
|
|
+ <el-input v-model="appintForm.name" placeholder="请输入名称"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
+ <div class="lable-item">
|
|
|
+ <el-form-item label="加盟商电话:" prop="phone">
|
|
|
+ <el-input v-model="appintForm.phone" placeholder="请输入电话"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="lable-item">
|
|
|
- <el-form-item label="加盟商电话:" prop="phone">
|
|
|
- <el-input v-model="appintForm.phone" placeholder="请输入电话"></el-input>
|
|
|
- </el-form-item>
|
|
|
+ <div class="lable-list">
|
|
|
+ <div class="lable-item">
|
|
|
+ <el-form-item label="请选择区域:" prop="area">
|
|
|
+ <!-- <el-cascader :props="{checkStrictly: true}" ref="cascaderRef" @change="handleCascaderChange"></el-cascader> -->
|
|
|
+ <el-cascader ref="cascaderRef" :props="areaData" @change="handleCascaderChange"></el-cascader>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
+ <div class="lable-item">
|
|
|
+ <el-form-item label="详细地址:" prop="address">
|
|
|
+ <el-input v-model="appintForm.address" placeholder="请输入详细地址"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="lable-list">
|
|
|
- <div class="lable-item">
|
|
|
- <el-form-item label="请选择区域:" prop="area">
|
|
|
- <!-- <el-cascader :props="{checkStrictly: true}" ref="cascaderRef" @change="handleCascaderChange"></el-cascader> -->
|
|
|
- <el-cascader :props="areaData" ref="cascaderRef" @change="handleCascaderChange"></el-cascader>
|
|
|
- </el-form-item>
|
|
|
- </div>
|
|
|
- <div class="lable-item">
|
|
|
- <el-form-item label="详细地址:" prop="address">
|
|
|
- <el-input v-model="appintForm.address" placeholder="请输入详细地址"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="lable-list">
|
|
|
- <div class="lable-item">
|
|
|
- <el-form-item label="店长名称:" prop="chargePersonName">
|
|
|
- <el-input v-model="appintForm.chargePersonName" placeholder="请输入店长名称"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </div>
|
|
|
- <div class="lable-item" v-if="appintForm.type == 5">
|
|
|
- <el-form-item label="选择小区:" prop="communityId">
|
|
|
- <el-select v-model="communityId" placeholder="请选择">
|
|
|
- <el-option v-for="item in communityList" :key="item.id" :label="item.communityName" :value="item.id">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
+ <div class="lable-list">
|
|
|
+ <div class="lable-item">
|
|
|
+ <el-form-item label="店长名称:" prop="chargePersonName">
|
|
|
+ <el-input v-model="appintForm.chargePersonName" placeholder="请输入店长名称"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
+ <div v-if="appintForm.type == 5" class="lable-item">
|
|
|
+ <el-form-item label="选择小区:" prop="communityId">
|
|
|
+ <el-select v-model="communityId" placeholder="请选择">
|
|
|
+ <el-option
|
|
|
+ v-for="item in communityList" :key="item.id" :label="item.communityName"
|
|
|
+ :value="item.id"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <el-form-item label="选择指定关系:" prop="type">
|
|
|
- <template>
|
|
|
- <el-radio v-model="appintForm.type" :label="1">团长</el-radio>
|
|
|
- <el-radio v-model="appintForm.type" :label="2">合伙人</el-radio>
|
|
|
- <el-radio v-model="appintForm.type" :label="3">加盟商</el-radio>
|
|
|
- <el-radio v-model="appintForm.type" :label="4">区代理</el-radio>
|
|
|
- <el-radio v-model="appintForm.type" :label="5">小区</el-radio>
|
|
|
- </template>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- <el-button @click="appintCan">取消</el-button>
|
|
|
- <el-button type="primary" @click="appintDetermine">确定</el-button>
|
|
|
- </span>
|
|
|
+ <el-form-item label="选择指定关系:" prop="type">
|
|
|
+ <template>
|
|
|
+ <el-radio v-model="appintForm.type" :label="1">团长</el-radio>
|
|
|
+ <el-radio v-model="appintForm.type" :label="2">合伙人</el-radio>
|
|
|
+ <el-radio v-model="appintForm.type" :label="3">加盟商</el-radio>
|
|
|
+ <el-radio v-model="appintForm.type" :label="4">区代理</el-radio>
|
|
|
+ <el-radio v-model="appintForm.type" :label="5">小区</el-radio>
|
|
|
+ </template>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <el-button @click="appintCan">取消</el-button>
|
|
|
+ <el-button type="primary" @click="appintDetermine">确定</el-button>
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
</el-dialog>
|
|
|
- <member-details ref="memberDetails" @reset="reset" />
|
|
|
+
|
|
|
+ <!-- 用户详情 -->
|
|
|
+ <UserDetails ref="UserDetails" @success="getList" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -219,11 +252,13 @@ import {
|
|
|
appointUserRelationship
|
|
|
} from '@/api/customerMage'
|
|
|
import { getProvinceList, getChildAreaList, getCommunityList } from '@/api/address'
|
|
|
-// import { getSelect } from '../../../api/renovation'
|
|
|
-import memberDetails from './details'
|
|
|
-// import { constants } from 'fs';
|
|
|
+import UserDetails from './components/UserDetails'
|
|
|
+
|
|
|
export default {
|
|
|
- components: { memberDetails },
|
|
|
+ name: 'MemberList',
|
|
|
+ components: {
|
|
|
+ UserDetails
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
showMore: false,
|
|
@@ -263,15 +298,15 @@ export default {
|
|
|
label: 'name',
|
|
|
value: 'id',
|
|
|
lazyLoad(node, resolve) {
|
|
|
- const { level, value } = node;
|
|
|
+ const { level, value } = node
|
|
|
if (level === 0) {
|
|
|
- getProvinceList().then(res => {
|
|
|
+ getProvinceList().then((res) => {
|
|
|
resolve(res.data)
|
|
|
- console.log(res);
|
|
|
+ console.log(res)
|
|
|
})
|
|
|
} else if (level != 0) {
|
|
|
- getChildAreaList(value).then(res => {
|
|
|
- resolve(res.data.map(item => {
|
|
|
+ getChildAreaList(value).then((res) => {
|
|
|
+ resolve(res.data.map((item) => {
|
|
|
item.leaf = level === 3
|
|
|
return item
|
|
|
}))
|
|
@@ -279,22 +314,22 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- //
|
|
|
- cityId: "",
|
|
|
+ //
|
|
|
+ cityId: '',
|
|
|
appintForm: {
|
|
|
userId: null,
|
|
|
area: null,
|
|
|
type: '',
|
|
|
- name: "",
|
|
|
- phone: "",
|
|
|
- address: "",
|
|
|
- chargePersonName: ""
|
|
|
+ name: '',
|
|
|
+ phone: '',
|
|
|
+ address: '',
|
|
|
+ chargePersonName: ''
|
|
|
},
|
|
|
|
|
|
// 小区数据
|
|
|
communityList: [],
|
|
|
// 小区的id
|
|
|
- communityId: "",
|
|
|
+ communityId: '',
|
|
|
|
|
|
// 指定关系正则校验
|
|
|
rules: {
|
|
@@ -316,18 +351,18 @@ export default {
|
|
|
],
|
|
|
type: [
|
|
|
{ required: true, message: '请选择你需要指定的关系', trigger: 'change' }
|
|
|
- ],
|
|
|
+ ]
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- this.getAll(this.formParams)
|
|
|
+ this.getList()
|
|
|
this.getSelect({ labelName: '' })
|
|
|
},
|
|
|
methods: {
|
|
|
/**
|
|
|
- * 导出
|
|
|
- */
|
|
|
+ * 导出
|
|
|
+ */
|
|
|
|
|
|
async handleExport() {
|
|
|
this.$message({
|
|
@@ -339,7 +374,7 @@ export default {
|
|
|
if (!res) {
|
|
|
return
|
|
|
}
|
|
|
- const blob = new Blob([res], { type: 'application/vnd.ms-excel' })
|
|
|
+ const blob = new Blob([ res ], { type: 'application/vnd.ms-excel' })
|
|
|
const fileName = '用户列表.xls'
|
|
|
if ('download' in document.createElement('a')) {
|
|
|
// 非IE下载
|
|
@@ -358,17 +393,17 @@ export default {
|
|
|
},
|
|
|
handleSizeChange(val) {
|
|
|
this.formParams.pageSize = val
|
|
|
- this.getAll(this.formParams)
|
|
|
+ this.getList()
|
|
|
},
|
|
|
handleCurrentChange(val) {
|
|
|
this.formParams.page = val
|
|
|
- this.getAll(this.formParams)
|
|
|
+ this.getList()
|
|
|
},
|
|
|
// 查询
|
|
|
search() {
|
|
|
this.total = 1
|
|
|
this.formParams.page = 1
|
|
|
- this.getAll(this.formParams)
|
|
|
+ this.getList()
|
|
|
},
|
|
|
// 查询标签
|
|
|
searchTips() {
|
|
@@ -394,7 +429,7 @@ export default {
|
|
|
credit: this.credit
|
|
|
})
|
|
|
if (res.code === '') {
|
|
|
- this.getAll(this.formParams)
|
|
|
+ this.getList()
|
|
|
this.editIntegral = false
|
|
|
this.$message.success('修改积分成功')
|
|
|
}
|
|
@@ -426,12 +461,12 @@ export default {
|
|
|
async handleCascaderChange() {
|
|
|
const checkedNode = this.$refs.cascaderRef.getCheckedNodes()
|
|
|
const nodeData = checkedNode[0].data
|
|
|
- let res = await getChildAreaList(nodeData.id)
|
|
|
+ const res = await getChildAreaList(nodeData.id)
|
|
|
if (res.data.length == 0) {
|
|
|
- let res2 = await getCommunityList({ cityId: nodeData.id })
|
|
|
+ const res2 = await getCommunityList({ cityId: nodeData.id })
|
|
|
this.communityList = res2.data
|
|
|
}
|
|
|
- console.log(res);
|
|
|
+ console.log(res)
|
|
|
|
|
|
this.appintForm.area = nodeData.id
|
|
|
},
|
|
@@ -442,29 +477,29 @@ export default {
|
|
|
// 指定关系确认
|
|
|
async appintDetermine() {
|
|
|
// 先进行校验
|
|
|
- this.$refs['ruleForm'].validate(async (valid) => {
|
|
|
+ this.$refs.ruleForm.validate(async (valid) => {
|
|
|
if (valid) {
|
|
|
- if(this.appintForm.type == 5 && this.communityId == ""){
|
|
|
- this.$message.error("请选择小区,如没有小区的话,是该区域没有小区,请选择有区域的小区");
|
|
|
+ if (this.appintForm.type == 5 && this.communityId == '') {
|
|
|
+ this.$message.error('请选择小区,如没有小区的话,是该区域没有小区,请选择有区域的小区')
|
|
|
return
|
|
|
}
|
|
|
- if(this.appintForm.type == 5 && this.communityId != ""){
|
|
|
- this.appintForm.communityId = this.communityId;
|
|
|
+ if (this.appintForm.type == 5 && this.communityId != '') {
|
|
|
+ this.appintForm.communityId = this.communityId
|
|
|
}
|
|
|
- let res = await appointUserRelationship(this.appintForm);
|
|
|
- if(res.code == ""){
|
|
|
+ const res = await appointUserRelationship(this.appintForm)
|
|
|
+ if (res.code == '') {
|
|
|
this.$message({
|
|
|
- message: "添加成功",
|
|
|
+ message: '添加成功',
|
|
|
type: res.message
|
|
|
- });
|
|
|
- this.appointDialog = false;
|
|
|
- this.search();
|
|
|
+ })
|
|
|
+ this.appointDialog = false
|
|
|
+ this.search()
|
|
|
}
|
|
|
} else {
|
|
|
- console.log('error submit!!');
|
|
|
- return false;
|
|
|
+ console.log('error submit!!')
|
|
|
+ return false
|
|
|
}
|
|
|
- });
|
|
|
+ })
|
|
|
|
|
|
// if (this.appintForm.region == null && this.appintForm.isType != '3') {
|
|
|
// this.$message.error("请选择区域");
|
|
@@ -476,24 +511,24 @@ export default {
|
|
|
// this.appointDialog = false
|
|
|
// }
|
|
|
// 重新获取数据
|
|
|
- this.getAll(this.formParams)
|
|
|
+ this.getList()
|
|
|
},
|
|
|
// 弹窗关闭 把数据重置
|
|
|
appintClose() {
|
|
|
this.appintForm = {
|
|
|
userId: null,
|
|
|
area: null,
|
|
|
- type: "",
|
|
|
- name: "",
|
|
|
- phone: "",
|
|
|
- address: "",
|
|
|
- chargePersonName: "",
|
|
|
- communityId:""
|
|
|
+ type: '',
|
|
|
+ name: '',
|
|
|
+ phone: '',
|
|
|
+ address: '',
|
|
|
+ chargePersonName: '',
|
|
|
+ communityId: ''
|
|
|
}
|
|
|
- this.communityId = ""
|
|
|
+ this.communityId = ''
|
|
|
this.communityList = []
|
|
|
- this.$refs.cascaderRef.inputValue = ""
|
|
|
- this.$refs['ruleForm'].resetFields();
|
|
|
+ this.$refs.cascaderRef.inputValue = ''
|
|
|
+ this.$refs.ruleForm.resetFields()
|
|
|
},
|
|
|
// 加入黑名单
|
|
|
addBlackList(row) {
|
|
@@ -522,7 +557,7 @@ export default {
|
|
|
type: 'success',
|
|
|
message: '成功!'
|
|
|
})
|
|
|
- this.getAll(this.formParams)
|
|
|
+ this.getList()
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
@@ -535,7 +570,7 @@ export default {
|
|
|
type: 'success',
|
|
|
message: '成功!'
|
|
|
})
|
|
|
- this.getAll(this.formParams)
|
|
|
+ this.getList()
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -567,7 +602,7 @@ export default {
|
|
|
page: 1,
|
|
|
pageSize: 10
|
|
|
}
|
|
|
- this.getAll(this.formParams)
|
|
|
+ this.getList()
|
|
|
},
|
|
|
// 打标签
|
|
|
makeTag(row) {
|
|
@@ -581,13 +616,11 @@ export default {
|
|
|
// name: 'customerDetails',
|
|
|
// params: { buyerUserId: row.buyerUserId, orderFormid: row.orderFormid }
|
|
|
// })
|
|
|
- this.$refs.memberDetails.checkList = row.labelIds
|
|
|
- console.log(this.$refs.memberDetails);
|
|
|
- this.$refs.memberDetails.getUser({ buyerUserId: row.buyerUserId, orderFormid: row.orderFormid })
|
|
|
+ this.$refs.UserDetails && this.$refs.UserDetails.handleOpen(row)
|
|
|
},
|
|
|
// 初始化查询所有数据
|
|
|
- async getAll(formParams) {
|
|
|
- const res = await customerMageGetAll(formParams)
|
|
|
+ async getList() {
|
|
|
+ const res = await customerMageGetAll(this.formParams)
|
|
|
this.tableData = res.data.list
|
|
|
this.total = res.data.total
|
|
|
},
|
|
@@ -597,7 +630,7 @@ export default {
|
|
|
this.tipsList = res.data
|
|
|
},
|
|
|
reset() {
|
|
|
- this.getAll(this.formParams)
|
|
|
+ this.getList()
|
|
|
},
|
|
|
checkMinMoney(e) {
|
|
|
this.formParams.minMoney = e.match(/^\d*(\.?\d{0,2})/g)[0] || null
|
|
@@ -613,24 +646,24 @@ export default {
|
|
|
@import url("../../../styles/elDialog.scss");
|
|
|
|
|
|
.custom_page {
|
|
|
- padding: 20px;
|
|
|
+ padding: 20px;
|
|
|
}
|
|
|
|
|
|
.checkBoxStyle {
|
|
|
- margin-bottom: 20px;
|
|
|
+ margin-bottom: 20px;
|
|
|
}
|
|
|
|
|
|
.lable-list {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
|
|
|
- .lable-item {
|
|
|
- // flex: 1;
|
|
|
- width: 50%;
|
|
|
- }
|
|
|
+ .lable-item {
|
|
|
+ // flex: 1;
|
|
|
+ width: 50%;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
::v-deep .el-cascader {
|
|
|
- width: 100%
|
|
|
+ width: 100%
|
|
|
}
|
|
|
</style>
|