|
@@ -14,9 +14,22 @@
|
|
@change="changeFilter"
|
|
@change="changeFilter"
|
|
>
|
|
>
|
|
</el-cascader>
|
|
</el-cascader>
|
|
- <el-select clearable multiple v-model="filterObj.serveTypeId" placeholder="请选择咨询销售" style="width: 230px; margin-right: 10px" @change="changeFilter">
|
|
|
|
|
|
+ <el-cascader
|
|
|
|
+ v-model="filterObj.serveTypeId"
|
|
|
|
+ placeholder="请选择销售"
|
|
|
|
+ style="width: 230px; margin-right: 10px"
|
|
|
|
+ :options="customSellerList"
|
|
|
|
+ :props="defaultSalesProps"
|
|
|
|
+ :show-all-levels="false"
|
|
|
|
+ collapse-tags
|
|
|
|
+ clearable
|
|
|
|
+ filterable
|
|
|
|
+ @change="changeFilter"
|
|
|
|
+ >
|
|
|
|
+ </el-cascader>
|
|
|
|
+ <!-- <el-select clearable multiple v-model="filterObj.serveTypeId" placeholder="请选择咨询销售" style="width: 230px; margin-right: 10px" @change="changeFilter">
|
|
<el-option v-for="item in customSellerList" :key="item.AdminId" :label="item.RealName" :value="item.AdminId"> </el-option>
|
|
<el-option v-for="item in customSellerList" :key="item.AdminId" :label="item.RealName" :value="item.AdminId"> </el-option>
|
|
- </el-select>
|
|
|
|
|
|
+ </el-select> -->
|
|
<el-select clearable v-model="filterObj.status" placeholder="客户状态" style="width: 230px; margin-right: 10px" @change="changeFilter">
|
|
<el-select clearable v-model="filterObj.status" placeholder="客户状态" style="width: 230px; margin-right: 10px" @change="changeFilter">
|
|
<el-option v-for="item in statusOptions" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
|
<el-option v-for="item in statusOptions" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
|
</el-select>
|
|
</el-select>
|
|
@@ -188,12 +201,22 @@ export default {
|
|
return item[item.length - 1];
|
|
return item[item.length - 1];
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ let SellerIds = [];
|
|
|
|
+ if (this.filterObj.serveTypeId && this.filterObj.serveTypeId.length) {
|
|
|
|
+ console.log(this.filterObj.serveTypeId);
|
|
|
|
+
|
|
|
|
+ SellerIds = this.filterObj.serveTypeId.map((item) => {
|
|
|
|
+ return item[item.length - 1];
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ console.log();
|
|
|
|
+
|
|
let baseUrl = process.env.API_ROOT + "/cygx/rai_serve/list";
|
|
let baseUrl = process.env.API_ROOT + "/cygx/rai_serve/list";
|
|
let token = localStorage.getItem("auth") || "";
|
|
let token = localStorage.getItem("auth") || "";
|
|
let paramStr = "";
|
|
let paramStr = "";
|
|
let parmsa = {
|
|
let parmsa = {
|
|
SellerId: salesArr.join(","),
|
|
SellerId: salesArr.join(","),
|
|
- ShareSellerId: this.filterObj.serveTypeId ? this.filterObj.serveTypeId.join(",") : "", //共享小时id
|
|
|
|
|
|
+ ShareSellerId: SellerIds.join(","), //共享小时id
|
|
ServeTypeId: this.filterObj.serviceType,
|
|
ServeTypeId: this.filterObj.serviceType,
|
|
TagType: this.tagType,
|
|
TagType: this.tagType,
|
|
TagId: this.tagId,
|
|
TagId: this.tagId,
|
|
@@ -263,11 +286,20 @@ export default {
|
|
return item[item.length - 1];
|
|
return item[item.length - 1];
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ let SellerIds = [];
|
|
|
|
+ if (this.filterObj.serveTypeId && this.filterObj.serveTypeId.length) {
|
|
|
|
+ console.log(this.filterObj.serveTypeId);
|
|
|
|
+
|
|
|
|
+ SellerIds = this.filterObj.serveTypeId.map((item) => {
|
|
|
|
+ return item[item.length - 1];
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ console.log();
|
|
const res = await dataMainInterface.getRaiServeList({
|
|
const res = await dataMainInterface.getRaiServeList({
|
|
PageSize: this.pageSize,
|
|
PageSize: this.pageSize,
|
|
CurrentIndex: this.page_no,
|
|
CurrentIndex: this.page_no,
|
|
SellerId: salesArr.join(","),
|
|
SellerId: salesArr.join(","),
|
|
- ShareSellerId: this.filterObj.serveTypeId ? this.filterObj.serveTypeId.join(",") : "", //共享小时id
|
|
|
|
|
|
+ ShareSellerId: SellerIds.join(","), //共享小时id
|
|
ServeTypeId: this.filterObj.serviceType,
|
|
ServeTypeId: this.filterObj.serviceType,
|
|
TagType: this.tagType,
|
|
TagType: this.tagType,
|
|
TagId: this.tagId,
|
|
TagId: this.tagId,
|