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
eec7eac2
Commit
eec7eac2
authored
Mar 26, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户操作日志
parent
044ec1e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
216 additions
and
0 deletions
+216
-0
customer.js
src/api/ecw/customer.js
+16
-0
dict.js
src/utils/dict.js
+1
-0
customerLog.vue
src/views/ecw/customer/customerLog.vue
+199
-0
No files found.
src/api/ecw/customer.js
View file @
eec7eac2
...
...
@@ -379,3 +379,19 @@ export function changeCustomerAir(data){
})
}
//获得客户日志
export
function
getCustomerOperatelogPage
(
params
){
return
request
({
url
:
'
/customer/operate-log/page
'
,
method
:
'
get
'
,
params
})
}
// 获得客户日志详情
export
function
getCustomerOperatelog
(
params
){
return
request
({
url
:
'
customer/operate-log/get
'
,
method
:
'
get
'
,
params
})
}
src/utils/dict.js
View file @
eec7eac2
...
...
@@ -151,6 +151,7 @@ export const DICT_TYPE = {
CUSTOMER_CREDIT_RULE_TYPE
:
'
customer_credit_rule_type
'
,
CUSTOMER_LEVEL_RULE_TYPE
:
'
customer_level_rule_type
'
,
CUSTOMER_ESOURCE_TYPE
:
'
customer_resource_type
'
,
//客户资源类型
CUSTOMER_OPERATE_TYPE
:
'
customer_operate_type
'
,
// order
ORDER_TYPE
:
'
order_type
'
,
// 订单类型
PRODUCT_RECORD_ATTRIBUTE
:
'
product_record_attribute
'
,
//产品备案属性
...
...
src/views/ecw/customer/customerLog.vue
0 → 100644
View file @
eec7eac2
<
template
>
<div
style=
"padding: 20px"
>
<el-card
:title=
"'客户操作日志'"
>
<el-descriptions
border
:column=
"3"
>
<el-descriptions-item
label=
"订单编号"
><el-input
v-model=
"queryForm.orderNo"
></el-input></el-descriptions-item>
<el-descriptions-item
label=
"操作人"
><el-input
v-model=
"queryForm.operator"
></el-input></el-descriptions-item>
<el-descriptions-item
label=
"老客户经理"
><el-input
v-model=
"queryForm.oldCustomerService"
></el-input></el-descriptions-item>
<el-descriptions-item
label=
"客户编号"
><el-input
v-model=
"queryForm.number"
></el-input></el-descriptions-item>
<el-descriptions-item
label=
"新客户经理"
><el-input
v-model=
"queryForm.newCustomerService"
></el-input></el-descriptions-item>
<el-descriptions-item
label=
"客户名称"
><el-input
v-model=
"queryForm.name"
></el-input></el-descriptions-item>
<el-descriptions-item
label=
"新的预计进入公海的时间"
>
<el-date-picker
v-model=
"newEstimateEnterOpenSeaTimeArr"
type=
"datetimerange"
value-format=
"yyyy-MM-dd HH:mm:ss"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
>
</el-date-picker>
</el-descriptions-item>
<el-descriptions-item
label=
"老的预计进入公海的时间"
>
<el-date-picker
v-model=
"newEstimateEnterOpenSeaTimeArr"
type=
"datetimerange"
value-format=
"yyyy-MM-dd HH:mm:ss"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
>
</el-date-picker>
</el-descriptions-item>
<el-descriptions-item>
<el-button
@
click=
"getList"
>
搜索
</el-button>
<el-button
@
click=
"initialize"
>
重置
</el-button>
</el-descriptions-item>
</el-descriptions>
</el-card>
<el-table
style=
"margin-top: 30px"
:data=
"list"
>
<el-table-column
label=
"订单编号"
prop=
"orderNo"
></el-table-column>
<el-table-column
label=
"客户编号"
prop=
"number"
></el-table-column>
<el-table-column
label=
"客户名称"
prop=
"name"
></el-table-column>
<el-table-column
label=
"新客户经理"
prop=
"newCustomerService"
>
<template
v-slot=
"
{row}">
{{
row
.
newCustomerService
?
row
.
newCustomerService
:
'
/
'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"老客户经理"
prop=
"oldCustomerService"
>
<
template
v-slot=
"{row}"
>
{{
row
.
oldCustomerService
?
row
.
oldCustomerService
:
'
/
'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作类型"
>
<
template
v-slot=
"{row}"
>
<dict-tag
:type=
"DICT_TYPE.CUSTOMER_OPERATE_TYPE"
:value=
"row.operateType"
></dict-tag>
</
template
>
</el-table-column>
<el-table-column
label=
"操作人"
prop=
"operator"
>
<
template
v-slot=
"{row}"
>
{{
operatorFn
(
row
.
operator
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"新的预计入公海时间"
>
<
template
v-slot=
"{row}"
>
{{
parseTime
(
row
.
newEstimateEnterOpenSeaTime
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"老的预计入公海时间"
>
<
template
v-slot=
"{row}"
>
{{
parseTime
(
row
.
oldEstimateEnterOpenSeaTime
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
>
<
template
v-slot=
"{row}"
>
<el-button
type=
"text"
@
click=
"getCustomerLog(row.id)"
>
详情
</el-button>
</
template
>
</el-table-column>
</el-table>
<pagination
v-show=
"total > 0"
:total=
"total"
:page.sync=
"queryForm.page"
:limit.sync=
"queryForm.rows"
@
pagination=
"getList"
/>
<el-dialog
title=
"客户日志"
:visible.sync=
"show"
>
<el-form>
<el-form-item
label=
"订单编号:"
>
{{dataLog.dataLog ? dataLog.dataLog :'/'}}
</el-form-item>
<el-form-item
label=
"客户编号:"
>
{{dataLog.number}}
</el-form-item>
<el-form-item
label=
"客户名称:"
>
{{dataLog.name}}
</el-form-item>
<el-form-item
label=
"新客户经理:"
>
{{dataLog.newEstimateEnterOpenSeaTime ? dataLog.newEstimateEnterOpenSeaTime : '/'}}
</el-form-item>
<el-form-item
label=
"老客户经理:"
>
{{dataLog.oldEstimateEnterOpenSeaTime ? dataLog.oldEstimateEnterOpenSeaTime : '/'}}
</el-form-item>
<el-form-item
label=
"操作类型:"
>
<dict-tag
:type=
"DICT_TYPE.CUSTOMER_OPERATE_TYPE"
:value=
"dataLog.operateType"
></dict-tag>
</el-form-item>
<el-form-item
label=
"操作人:"
>
{{operatorFn(dataLog.operator)}}
</el-form-item>
<el-form-item
label=
"新预计进入公海时间:"
>
{{parseTime(dataLog.newEstimateEnterOpenSeaTime)}}
</el-form-item>
<el-form-item
label=
"老的预计进入公海时间:"
>
{{parseTime(dataLog.oldEstimateEnterOpenSeaTime)}}
</el-form-item>
<el-form-item
label=
"更新json:"
>
{{dataLog.updateBody}}
</el-form-item>
</el-form>
</el-dialog>
</div>
</template>
<
script
>
import
{
getCustomerOperatelog
,
getCustomerOperatelogPage
}
from
"
@/api/ecw/customer
"
;
import
{
parseTime
}
from
"
../../../utils/ruoyi
"
;
import
Template
from
"
@/views/cms/template/index.vue
"
;
import
{
DICT_TYPE
}
from
"
@/utils/dict
"
;
import
{
listAllSimpl
}
from
"
@/api/system/user
"
;
export
default
{
name
:
"
customerLog
"
,
computed
:
{
DICT_TYPE
()
{
return
DICT_TYPE
},
operatorFn
(){
return
(
val
)
=>
{
return
this
.
allSimplList
.
find
(
item
=>
item
.
id
==
val
)?.
nickname
}
}
},
components
:
{
Template
},
created
()
{
this
.
initialize
()
this
.
getList
()
listAllSimpl
().
then
(
r
=>
{
this
.
allSimplList
=
r
.
data
})
},
data
(){
return
{
queryForm
:{},
newEstimateEnterOpenSeaTimeArr
:[],
oldEstimateEnterOpenSeaTimeArr
:[],
list
:[],
total
:
0
,
show
:
false
,
allSimplList
:[],
dataLog
:{}
}
},
methods
:{
parseTime
,
initialize
(){
this
.
queryForm
=
{
page
:
1
,
rows
:
10
,
name
:
null
,
oldCustomerService
:
null
,
newCustomerService
:
null
,
operateType
:
null
,
operator
:
null
,
orderNo
:
null
,
newEstimateEnterOpenSeaTime
:
null
,
beginNewEstimateEnterOpenSeaTime
:
null
,
beginOldEstimateEnterOpenSeaTime
:
null
,
endNewEstimateEnterOpenSeaTime
:
null
,
endOldEstimateEnterOpenSeaTime
:
null
,
}
},
getList
(){
this
.
queryForm
.
beginNewEstimateEnterOpenSeaTime
=
this
.
newEstimateEnterOpenSeaTimeArr
[
0
]
||
''
this
.
queryForm
.
endNewEstimateEnterOpenSeaTime
=
this
.
newEstimateEnterOpenSeaTimeArr
[
1
]
||
''
this
.
beginOldEstimateEnterOpenSeaTime
=
this
.
oldEstimateEnterOpenSeaTimeArr
[
0
]
||
''
this
.
endOldEstimateEnterOpenSeaTime
=
this
.
oldEstimateEnterOpenSeaTimeArr
[
1
]
||
''
getCustomerOperatelogPage
(
this
.
queryForm
).
then
(
r
=>
{
this
.
list
=
r
.
data
.
list
;
this
.
total
=
r
.
data
.
total
;
})
},
getCustomerLog
(
val
){
getCustomerOperatelog
({
id
:
val
}).
then
(
r
=>
{
this
.
dataLog
=
r
.
data
this
.
show
=
true
;
})
}
}
}
</
script
>
<
style
scoped
>
</
style
>
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