Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
cd3ec77c
Commit
cd3ec77c
authored
Mar 01, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增部门客户列表
parent
d222c314
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
9 deletions
+38
-9
customer.js
src/api/ecw/customer.js
+20
-0
index.vue
src/views/ecw/customer/index.vue
+18
-9
No files found.
src/api/ecw/customer.js
View file @
cd3ec77c
...
...
@@ -51,6 +51,16 @@ export function getCustomerPage(query) {
params
:
query
})
}
/**
* 获得部门客户
* */
export
function
getCustomerDeptPage
(
query
){
return
request
({
url
:
'
/ecw/customer/deptPage
'
,
method
:
'
get
'
,
params
:
query
})
}
// 获得客户下拉
export
function
getCustomerSelect
(
query
)
{
...
...
@@ -350,3 +360,13 @@ export function testEnterToOpenSea(customerId) {
params
:
{
customerId
}
})
}
/**
* 获取常用提货网点
* */
export
function
getServiceNetwork
(){
return
request
({
url
:
'
/ecw/node/list
'
,
method
:
'
get
'
,
})
}
src/views/ecw/customer/index.vue
View file @
cd3ec77c
...
...
@@ -77,11 +77,11 @@
v-hasPermi=
"['ecw:customer:export']"
>
{{
$t
(
'
导出
'
)
}}
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
size=
"mini"
:loading=
"exportLoading"
<el-button
v-if=
"$route.path === '/customer/customer'"
type=
"primary"
plain
size=
"mini"
:loading=
"exportLoading"
v-hasPermi=
"['ecw:customer:transport']"
>
{{
$t
(
'
设为空运客户
'
)
}}
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
size=
"mini"
:loading=
"exportLoading"
<el-button
v-if=
"$route.path === '/customer/customer'"
type=
"primary"
plain
size=
"mini"
:loading=
"exportLoading"
v-hasPermi=
"['ecw:customer:transport']"
>
{{
$t
(
'
设为非空运客户
'
)
}}
</el-button>
</el-col>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
...
...
@@ -514,7 +514,7 @@
<
script
>
import
{
createCustomer
,
updateCustomer
,
deleteCustomer
,
getCustomer
,
getCustomerPage
,
exportCustomerExcel
,
testEnterToOpenSea
getCustomerPage
,
exportCustomerExcel
,
testEnterToOpenSea
,
getCustomerDeptPage
}
from
"
@/api/ecw/customer
"
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
{
CommonStatusEnum
}
from
'
@/utils/constants
'
...
...
@@ -633,17 +633,26 @@ export default {
},
/** 查询列表 */
getList
()
{
console
.
log
(
this
.
$route
.
path
,
'
path
'
)
this
.
loading
=
true
;
// 处理查询参数
let
params
=
{...
this
.
queryParams
};
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
'
createTime
'
,
false
);
// 执行查询
getCustomerPage
(
params
).
then
(
response
=>
{
switch
(
this
.
$route
.
path
){
case
'
/customer/customer
'
:
getCustomerPage
(
params
).
then
(
this
.
setData
);
break
;
case
'
/customer/department-customers
'
:
getCustomerDeptPage
(
params
).
then
(
this
.
setData
);
}
},
setData
(
response
){
console
.
log
(
response
,
'
response
'
)
this
.
list
=
response
.
data
.
list
;
this
.
total
=
response
.
data
.
total
;
this
.
loading
=
false
;
});
},
/** 取消按钮 */
cancel
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment