Commit 70855877 authored by yujinyao's avatar yujinyao

客户列表搜索部门

parent a4082526
...@@ -42,6 +42,13 @@ export function listSimpleDepts() { ...@@ -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) { export function addDept(data) {
return request({ return request({
......
...@@ -233,6 +233,7 @@ export default { ...@@ -233,6 +233,7 @@ export default {
} }
}, },
created() { created() {
this.init()
// this.resetCustomerFollowForm() // this.resetCustomerFollowForm()
listServiceUser().then(r => { listServiceUser().then(r => {
// console.log( r.data,'r.data跟进业务') // console.log( r.data,'r.data跟进业务')
......
...@@ -1391,7 +1391,7 @@ import AreaCodeSelector from "@/components/AreaCodeSelector/index.vue"; ...@@ -1391,7 +1391,7 @@ import AreaCodeSelector from "@/components/AreaCodeSelector/index.vue";
import { getCustomerSelect } from "@/api/ecw/customer"; import { getCustomerSelect } from "@/api/ecw/customer";
import { getProductTypeList } from "@/api/ecw/productType"; import { getProductTypeList } from "@/api/ecw/productType";
import { getProductList } from "@/api/ecw/product"; import { getProductList } from "@/api/ecw/product";
import {listSimpleDepts} from "@/api/system/dept"; import { listMySimpleDepts } from "@/api/system/dept";
export default { export default {
name: "EcwCustomerIndex", name: "EcwCustomerIndex",
components: { components: {
...@@ -1662,7 +1662,7 @@ export default { ...@@ -1662,7 +1662,7 @@ export default {
competitorListAll().then((r) => { competitorListAll().then((r) => {
this.competitorList = r.data; this.competitorList = r.data;
}) })
listSimpleDepts().then(response => { listMySimpleDepts().then(response => {
this.deptList = response.data this.deptList = response.data
}) })
}, },
......
...@@ -685,7 +685,7 @@ import { getNodeList } from "@/api/ecw/node"; ...@@ -685,7 +685,7 @@ import { getNodeList } from "@/api/ecw/node";
import { getCustomerSelect } from "@/api/ecw/customer"; import { getCustomerSelect } from "@/api/ecw/customer";
import { getProductTypeList } from "@/api/ecw/productType"; import { getProductTypeList } from "@/api/ecw/productType";
import { getProductList } from "@/api/ecw/product"; import { getProductList } from "@/api/ecw/product";
import { listMySimpleDepts } from "@/api/system/dept";
export default { export default {
name: "EcwCustomerconfirmIndex", name: "EcwCustomerconfirmIndex",
activated() { activated() {
...@@ -855,7 +855,7 @@ export default { ...@@ -855,7 +855,7 @@ export default {
competitorListAll().then((r) => { competitorListAll().then((r) => {
this.competitorList = r.data; this.competitorList = r.data;
}) })
listSimpleDepts().then(response => { listMySimpleDepts().then(response => {
this.deptList = response.data this.deptList = response.data
}) })
}, },
...@@ -883,8 +883,8 @@ export default { ...@@ -883,8 +883,8 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
// 处理查询参数 // 处理查询参数
let params = {...this.queryParams}; let params = {...this.queryParams, ...this.combinedQueryParams};
this.addBeginAndEndTime(params, this.dateRangeCreateTime, 'createTime', false); // this.addBeginAndEndTime(params, this.dateRangeCreateTime, 'createTime', false);
// 执行查询 // 执行查询
getWaitForConfirmList(params).then(response => { getWaitForConfirmList(params).then(response => {
this.list = response.data.list; this.list = response.data.list;
......
...@@ -492,7 +492,7 @@ import { getNodeList } from "@/api/ecw/node"; ...@@ -492,7 +492,7 @@ import { getNodeList } from "@/api/ecw/node";
import { getCustomerSelect } from "@/api/ecw/customer"; import { getCustomerSelect } from "@/api/ecw/customer";
import { getProductTypeList } from "@/api/ecw/productType"; import { getProductTypeList } from "@/api/ecw/productType";
import { getProductList } from "@/api/ecw/product"; import { getProductList } from "@/api/ecw/product";
import {listSimpleDepts} from "@/api/system/dept"; import { listMySimpleDepts } from "@/api/system/dept";
export default { export default {
name: "EcwCustomertobeassignedIndex", name: "EcwCustomertobeassignedIndex",
...@@ -619,7 +619,7 @@ export default { ...@@ -619,7 +619,7 @@ export default {
competitorListAll().then((r) => { competitorListAll().then((r) => {
this.competitorList = r.data; this.competitorList = r.data;
}) })
listSimpleDepts().then(response => { listMySimpleDepts().then(response => {
this.deptList = response.data this.deptList = response.data
}) })
}, },
...@@ -635,7 +635,7 @@ export default { ...@@ -635,7 +635,7 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
// 处理查询参数 // 处理查询参数
let params = {...this.queryParams}; let params = {...this.queryParams, ...this.combinedQueryParams};
this.addBeginAndEndTime(params, this.dateRangeCreateTime, 'createTime', false); this.addBeginAndEndTime(params, this.dateRangeCreateTime, 'createTime', false);
// 执行查询 // 执行查询
getCustomerToBeAssigned(params).then(response => { getCustomerToBeAssigned(params).then(response => {
......
...@@ -869,7 +869,7 @@ export default { ...@@ -869,7 +869,7 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
// 处理查询参数 // 处理查询参数
let params = { ...this.queryParams }; let params = { ...this.queryParams, ...this.combinedQueryParams };
this.addBeginAndEndTime( this.addBeginAndEndTime(
params, params,
this.dateRangeCreateTime, this.dateRangeCreateTime,
......
...@@ -684,7 +684,7 @@ import { getNodeList } from "@/api/ecw/node"; ...@@ -684,7 +684,7 @@ import { getNodeList } from "@/api/ecw/node";
import { getCustomerSelect } from "@/api/ecw/customer"; import { getCustomerSelect } from "@/api/ecw/customer";
import { getProductTypeList } from "@/api/ecw/productType"; import { getProductTypeList } from "@/api/ecw/productType";
import { getProductList } from "@/api/ecw/product"; import { getProductList } from "@/api/ecw/product";
import {listSimpleDepts} from "@/api/system/dept"; import { listMySimpleDepts } from "@/api/system/dept";
export default { export default {
name: "EcwOceancustomerIndex", name: "EcwOceancustomerIndex",
activated() { activated() {
...@@ -851,7 +851,7 @@ export default { ...@@ -851,7 +851,7 @@ export default {
competitorListAll().then((r) => { competitorListAll().then((r) => {
this.competitorList = r.data; this.competitorList = r.data;
}) })
listSimpleDepts().then(response => { listMySimpleDepts().then(response => {
this.deptList = response.data this.deptList = response.data
}) })
}, },
...@@ -921,7 +921,7 @@ export default { ...@@ -921,7 +921,7 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
// 处理查询参数 // 处理查询参数
let params = { ...this.queryParams }; let params = { ...this.queryParams, ...this.combinedQueryParams };
this.addBeginAndEndTime(params, this.dateRangeCreateTime, "createTime"); this.addBeginAndEndTime(params, this.dateRangeCreateTime, "createTime");
// 执行查询 // 执行查询
getPublicList(params).then((response) => { 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