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
527f8dd6
Commit
527f8dd6
authored
May 31, 2022
by
yanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature: 添加客户和联系人
parent
e68b7c5e
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
884 additions
and
0 deletions
+884
-0
customer.js
src/api/ecw/customer.js
+54
-0
customerContacts.js
src/api/ecw/customerContacts.js
+54
-0
dict.js
src/utils/dict.js
+8
-0
index.vue
src/views/ecw/customer/index.vue
+485
-0
index.vue
src/views/ecw/customerContacts/index.vue
+283
-0
No files found.
src/api/ecw/customer.js
0 → 100644
View file @
527f8dd6
import
request
from
'
@/utils/request
'
// 创建客户
export
function
createCustomer
(
data
)
{
return
request
({
url
:
'
/ecw/customer/create
'
,
method
:
'
post
'
,
data
:
data
})
}
// 更新客户
export
function
updateCustomer
(
data
)
{
return
request
({
url
:
'
/ecw/customer/update
'
,
method
:
'
put
'
,
data
:
data
})
}
// 删除客户
export
function
deleteCustomer
(
id
)
{
return
request
({
url
:
'
/ecw/customer/delete?id=
'
+
id
,
method
:
'
delete
'
})
}
// 获得客户
export
function
getCustomer
(
id
)
{
return
request
({
url
:
'
/ecw/customer/get?id=
'
+
id
,
method
:
'
get
'
})
}
// 获得客户分页
export
function
getCustomerPage
(
query
)
{
return
request
({
url
:
'
/ecw/customer/page
'
,
method
:
'
get
'
,
params
:
query
})
}
// 导出客户 Excel
export
function
exportCustomerExcel
(
query
)
{
return
request
({
url
:
'
/ecw/customer/export-excel
'
,
method
:
'
get
'
,
params
:
query
,
responseType
:
'
blob
'
})
}
src/api/ecw/customerContacts.js
0 → 100644
View file @
527f8dd6
import
request
from
'
@/utils/request
'
// 创建客户联系人
export
function
createCustomerContacts
(
data
)
{
return
request
({
url
:
'
/ecw/customer-contacts/create
'
,
method
:
'
post
'
,
data
:
data
})
}
// 更新客户联系人
export
function
updateCustomerContacts
(
data
)
{
return
request
({
url
:
'
/ecw/customer-contacts/update
'
,
method
:
'
put
'
,
data
:
data
})
}
// 删除客户联系人
export
function
deleteCustomerContacts
(
id
)
{
return
request
({
url
:
'
/ecw/customer-contacts/delete?id=
'
+
id
,
method
:
'
delete
'
})
}
// 获得客户联系人
export
function
getCustomerContacts
(
id
)
{
return
request
({
url
:
'
/ecw/customer-contacts/get?id=
'
+
id
,
method
:
'
get
'
})
}
// 获得客户联系人分页
export
function
getCustomerContactsPage
(
query
)
{
return
request
({
url
:
'
/ecw/customer-contacts/page
'
,
method
:
'
get
'
,
params
:
query
})
}
// 导出客户联系人 Excel
export
function
exportCustomerContactsExcel
(
query
)
{
return
request
({
url
:
'
/ecw/customer-contacts/export-excel
'
,
method
:
'
get
'
,
params
:
query
,
responseType
:
'
blob
'
})
}
src/utils/dict.js
View file @
527f8dd6
...
@@ -64,6 +64,14 @@ export const DICT_TYPE = {
...
@@ -64,6 +64,14 @@ export const DICT_TYPE = {
ECW_TRANSPORT_TYPE
:
'
transport_type
'
,
//货运方式
ECW_TRANSPORT_TYPE
:
'
transport_type
'
,
//货运方式
ECW_CHARGE_TYPE
:
'
warehouse_charge_type
'
,
//仓储收费方式
ECW_CHARGE_TYPE
:
'
warehouse_charge_type
'
,
//仓储收费方式
ECW_SHELF_TYPE
:
'
shelf_type
'
,
//货架类型
ECW_SHELF_TYPE
:
'
shelf_type
'
,
//货架类型
//--------ecw---------
CUSTOMER_STATUS
:
'
customer_status
'
,
CUSTOMER_SOURCE
:
'
customer_source
'
,
CUSTOMER_BALANCE
:
'
customer_balance
'
,
CUSTOMER_TYPE
:
'
customer_type
'
,
CUSTOMER_LEVEL
:
'
customer_level
'
}
}
/**
/**
...
...
src/views/ecw/customer/index.vue
0 → 100644
View file @
527f8dd6
This diff is collapsed.
Click to expand it.
src/views/ecw/customerContacts/index.vue
0 → 100644
View file @
527f8dd6
This diff is collapsed.
Click to expand it.
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