Commit 70855877 authored by yujinyao's avatar yujinyao

客户列表搜索部门

parent a4082526
......@@ -42,6 +42,13 @@ export function listSimpleDepts() {
})
}
export function listMySimpleDepts() {
return request({
url: '/system/dept/list-my-and-under-simple',
method: 'get'
})
}
// 新增部门
export function addDept(data) {
return request({
......
......@@ -233,6 +233,7 @@ export default {
}
},
created() {
this.init()
// this.resetCustomerFollowForm()
listServiceUser().then(r => {
// console.log( r.data,'r.data跟进业务')
......
......@@ -1391,7 +1391,7 @@ import AreaCodeSelector from "@/components/AreaCodeSelector/index.vue";
import { getCustomerSelect } from "@/api/ecw/customer";
import { getProductTypeList } from "@/api/ecw/productType";
import { getProductList } from "@/api/ecw/product";
import {listSimpleDepts} from "@/api/system/dept";
import { listMySimpleDepts } from "@/api/system/dept";
export default {
name: "EcwCustomerIndex",
components: {
......@@ -1662,7 +1662,7 @@ export default {
competitorListAll().then((r) => {
this.competitorList = r.data;
})
listSimpleDepts().then(response => {
listMySimpleDepts().then(response => {
this.deptList = response.data
})
},
......
......@@ -685,7 +685,7 @@ import { getNodeList } from "@/api/ecw/node";
import { getCustomerSelect } from "@/api/ecw/customer";
import { getProductTypeList } from "@/api/ecw/productType";
import { getProductList } from "@/api/ecw/product";
import { listMySimpleDepts } from "@/api/system/dept";
export default {
name: "EcwCustomerconfirmIndex",
activated() {
......@@ -855,7 +855,7 @@ export default {
competitorListAll().then((r) => {
this.competitorList = r.data;
})
listSimpleDepts().then(response => {
listMySimpleDepts().then(response => {
this.deptList = response.data
})
},
......@@ -883,8 +883,8 @@ export default {
getList() {
this.loading = true;
// 处理查询参数
let params = {...this.queryParams};
this.addBeginAndEndTime(params, this.dateRangeCreateTime, 'createTime', false);
let params = {...this.queryParams, ...this.combinedQueryParams};
// this.addBeginAndEndTime(params, this.dateRangeCreateTime, 'createTime', false);
// 执行查询
getWaitForConfirmList(params).then(response => {
this.list = response.data.list;
......
......@@ -492,7 +492,7 @@ import { getNodeList } from "@/api/ecw/node";
import { getCustomerSelect } from "@/api/ecw/customer";
import { getProductTypeList } from "@/api/ecw/productType";
import { getProductList } from "@/api/ecw/product";
import {listSimpleDepts} from "@/api/system/dept";
import { listMySimpleDepts } from "@/api/system/dept";
export default {
name: "EcwCustomertobeassignedIndex",
......@@ -619,7 +619,7 @@ export default {
competitorListAll().then((r) => {
this.competitorList = r.data;
})
listSimpleDepts().then(response => {
listMySimpleDepts().then(response => {
this.deptList = response.data
})
},
......@@ -635,7 +635,7 @@ export default {
getList() {
this.loading = true;
// 处理查询参数
let params = {...this.queryParams};
let params = {...this.queryParams, ...this.combinedQueryParams};
this.addBeginAndEndTime(params, this.dateRangeCreateTime, 'createTime', false);
// 执行查询
getCustomerToBeAssigned(params).then(response => {
......
......@@ -869,7 +869,7 @@ export default {
getList() {
this.loading = true;
// 处理查询参数
let params = { ...this.queryParams };
let params = { ...this.queryParams, ...this.combinedQueryParams };
this.addBeginAndEndTime(
params,
this.dateRangeCreateTime,
......
......@@ -684,7 +684,7 @@ import { getNodeList } from "@/api/ecw/node";
import { getCustomerSelect } from "@/api/ecw/customer";
import { getProductTypeList } from "@/api/ecw/productType";
import { getProductList } from "@/api/ecw/product";
import {listSimpleDepts} from "@/api/system/dept";
import { listMySimpleDepts } from "@/api/system/dept";
export default {
name: "EcwOceancustomerIndex",
activated() {
......@@ -851,7 +851,7 @@ export default {
competitorListAll().then((r) => {
this.competitorList = r.data;
})
listSimpleDepts().then(response => {
listMySimpleDepts().then(response => {
this.deptList = response.data
})
},
......@@ -921,7 +921,7 @@ export default {
getList() {
this.loading = true;
// 处理查询参数
let params = { ...this.queryParams };
let params = { ...this.queryParams, ...this.combinedQueryParams };
this.addBeginAndEndTime(params, this.dateRangeCreateTime, "createTime");
// 执行查询
getPublicList(params).then((response) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment