|
|
@@ -77,6 +77,26 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="直播归属销售" prop="bindCompanyUserId" label-width="110px">
|
|
|
+ <el-select
|
|
|
+ v-model="queryParams.bindCompanyUserId"
|
|
|
+ placeholder="请选择直播归属销售"
|
|
|
+ filterable
|
|
|
+ remote
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ style="width: 220px"
|
|
|
+ :remote-method="loadBindCompanyUserOptions"
|
|
|
+ :loading="bindCompanyUserLoading"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bindCompanyUserList"
|
|
|
+ :key="item.userId"
|
|
|
+ :label="`${item.nickName}-${item.userName}`"
|
|
|
+ :value="item.userId"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="注册时间" prop="createTime">
|
|
|
<el-date-picker v-model="createTime" size="small" style="width: 230px" value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" @change="change"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
@@ -126,6 +146,7 @@
|
|
|
<dict-tag :options="userOptions" :value="scope.row.status"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="直播归属销售" align="center" prop="bindCompanyUserNickName" min-width="140" />
|
|
|
<el-table-column label="用户备注" align="center" prop="remark" />
|
|
|
<!-- 会员等级 -->
|
|
|
<el-table-column label="会员等级" align="center" prop="level" width="100">
|
|
|
@@ -295,6 +316,7 @@
|
|
|
<script>
|
|
|
import { listUser, getUser, delUser, addUser, updateUser, exportUser, addPoint,checkIsSales } from "@/api/his/user";
|
|
|
import { getCompanyUserList, changeCompanyUser, getCompanyList } from '@/api/company/companyUser';
|
|
|
+import { getAllUserListLimit } from "@/api/store/user";
|
|
|
import userDetails from '../../components/his/userDetails.vue';
|
|
|
import userDetailsByNew from './userDetails.vue';
|
|
|
|
|
|
@@ -321,6 +343,8 @@ export default {
|
|
|
companyUserNickName: null,
|
|
|
companyOptions: [],
|
|
|
companyUserOptions: [],
|
|
|
+ bindCompanyUserList: [],
|
|
|
+ bindCompanyUserLoading: false,
|
|
|
show:{
|
|
|
title:"用户详情",
|
|
|
open:false,
|
|
|
@@ -375,7 +399,8 @@ export default {
|
|
|
isBuy:null,
|
|
|
source:null,
|
|
|
companyName: null,
|
|
|
- userId: null
|
|
|
+ userId: null,
|
|
|
+ bindCompanyUserId: null
|
|
|
},
|
|
|
// 表单参数
|
|
|
form: {},
|
|
|
@@ -417,6 +442,7 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.getList();
|
|
|
+ this.loadBindCompanyUserOptions();
|
|
|
this.getDicts("sys_user_status").then(response => {
|
|
|
this.userOptions = response.data;
|
|
|
});
|
|
|
@@ -432,6 +458,20 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ /** 加载直播归属销售选项 */
|
|
|
+ loadBindCompanyUserOptions(keywords) {
|
|
|
+ this.bindCompanyUserLoading = true;
|
|
|
+ getAllUserListLimit({
|
|
|
+ keywords: keywords || undefined
|
|
|
+ }).then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.bindCompanyUserList = res.data || [];
|
|
|
+ }
|
|
|
+ this.bindCompanyUserLoading = false;
|
|
|
+ }).catch(() => {
|
|
|
+ this.bindCompanyUserLoading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
/** 检查是否为销售并提交 */
|
|
|
async checkAndSubmit() {
|
|
|
this.submitLoading = true;
|