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
970079b6
Commit
970079b6
authored
Jun 15, 2022
by
dcy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
佣金详情,佣金列表页面布局
parent
69ddd604
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1169 additions
and
276 deletions
+1169
-276
customerCommission.js
src/api/ecw/customerCommission.js
+55
-0
index.js
src/router/index.js
+13
-1
dict.js
src/utils/dict.js
+1
-0
index.vue
src/views/ecw/customerCommission/index.vue
+348
-0
customSelectorsDictionary.vue
.../ecw/customerCommissionInfo/customSelectorsDictionary.vue
+33
-0
index.vue
src/views/ecw/customerCommissionInfo/index.vue
+161
-262
index.vue
src/views/ecw/messageLeave/index.vue
+72
-13
index.vue
src/views/ecw/oceanCustomer/index.vue
+486
-0
No files found.
src/api/ecw/customerCommission.js
0 → 100644
View file @
970079b6
import
request
from
'
@/utils/request
'
// 创建客户佣金类型
export
function
createCustomerCommission
(
data
)
{
return
request
({
url
:
'
/ecw/customer-commission/create
'
,
method
:
'
post
'
,
data
:
data
})
}
// 更新客户佣金类型
export
function
updateCustomerCommission
(
data
)
{
return
request
({
url
:
'
/ecw/customer-commission/update
'
,
method
:
'
put
'
,
data
:
data
})
}
// 删除客户佣金类型
export
function
deleteCustomerCommission
(
id
)
{
return
request
({
url
:
'
/ecw/customer-commission/delete?id=
'
+
id
,
method
:
'
delete
'
})
}
// 获得客户佣金类型
export
function
getCustomerCommission
(
id
)
{
return
request
({
url
:
'
/ecw/customer-commission/get?id=
'
+
id
,
method
:
'
get
'
})
}
// 获得客户佣金类型分页
export
function
getCustomerCommissionPage
(
query
)
{
return
request
({
url
:
'
/ecw/customer-commission/page
'
,
method
:
'
get
'
,
params
:
query
})
}
// 导出客户佣金类型 Excel
export
function
exportCustomerCommissionExcel
(
query
)
{
return
request
({
url
:
'
/ecw/customer-commission/export-excel
'
,
method
:
'
get
'
,
params
:
query
,
responseType
:
'
blob
'
})
}
src/router/index.js
View file @
970079b6
...
@@ -216,7 +216,19 @@ export const constantRoutes = [
...
@@ -216,7 +216,19 @@ export const constantRoutes = [
meta
:
{
title
:
'
货架设置
'
,
activeMenu
:
'
/warehouse/shelf
'
}
meta
:
{
title
:
'
货架设置
'
,
activeMenu
:
'
/warehouse/shelf
'
}
}
}
]
]
}
},
{
path
:
'
/customer
'
,
component
:
Layout
,
hidden
:
true
,
redirect
:
'
noredirect
'
,
children
:
[{
path
:
'
/customerCommissionInfo/:dictId(
\\
d+)
'
,
component
:
(
resolve
)
=>
require
([
'
@/views/ecw/customerCommissionInfo/index
'
],
resolve
),
name
:
'
customerCommissionInfo
'
,
meta
:
{
title
:
'
佣金详情
'
,
icon
:
''
,
activeMenu
:
'
/customer/customerCommissionInfo
'
}
}]
},
]
]
// 防止连续点击多次路由报错
// 防止连续点击多次路由报错
...
...
src/utils/dict.js
View file @
970079b6
...
@@ -86,6 +86,7 @@ export const DICT_TYPE = {
...
@@ -86,6 +86,7 @@ export const DICT_TYPE = {
AREA_CODE
:
'
area_code
'
,
// 区号
AREA_CODE
:
'
area_code
'
,
// 区号
SOCIAL
:
'
customer_social_tools
'
,
// 社交软件
SOCIAL
:
'
customer_social_tools
'
,
// 社交软件
IS_DEFAULT
:
'
is_default
'
,
// 默认联系人
IS_DEFAULT
:
'
is_default
'
,
// 默认联系人
COMMISSION_PRODUCT_APPROVAL
:
'
commission_product_approval
'
//佣金备案
}
}
...
...
src/views/ecw/customerCommission/index.vue
0 → 100644
View file @
970079b6
This diff is collapsed.
Click to expand it.
src/views/ecw/customerCommissionInfo/customSelectorsDictionary.vue
0 → 100644
View file @
970079b6
<
template
>
<el-select
v-if=
"options"
v-model=
"selectVal"
placeholder=
"请选择"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</
template
>
<
script
>
export
default
{
name
:
"
customSelectorsDictionary
"
,
props
:{
options
:
Array
,
value
:
String
},
data
(){
return
{
selectVal
:
''
}
},
watch
:{
selectVal
(
val
){
this
.
$emit
(
'
input
'
,
val
)
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
src/views/ecw/customerCommissionInfo/index.vue
View file @
970079b6
This diff is collapsed.
Click to expand it.
src/views/ecw/messageLeave/index.vue
View file @
970079b6
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['ecw:message-leave:update']"
>
修改
</el-button>
v-hasPermi=
"['ecw:message-leave:update']"
>
查看
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['ecw:message-leave:delete']"
>
删除
</el-button>
v-hasPermi=
"['ecw:message-leave:delete']"
>
删除
</el-button>
</
template
>
</
template
>
...
@@ -119,13 +119,55 @@
...
@@ -119,13 +119,55 @@
<el-button
@
click=
"cancel"
>
取 消
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
<!-- 留言详情-->
<el-dialog
title=
"留言详情"
:visible.sync=
"leavingShow"
width=
"500px"
append-to-body
>
<el-row
class=
"el-row-leaving"
:gutter=
"10"
>
<el-col
:span=
"4"
>
客户编号:
</el-col><el-col
:span=
"12"
>
{{}}
</el-col>
</el-row>
<el-row
class=
"el-row-leaving"
:gutter=
"10"
>
<el-col
:span=
"4"
>
姓名:
</el-col><el-col
:span=
"12"
>
{{messageVal.name ? messageVal.name : ''}}
</el-col>
</el-row>
<el-row
class=
"el-row-leaving"
:gutter=
"10"
>
<el-col
:span=
"4"
>
联系方式:
</el-col><el-col
:span=
"12"
>
{{messageVal.phone}}
</el-col>
</el-row>
<el-row
class=
"el-row-leaving"
:gutter=
"10"
>
<el-col
:span=
"4"
>
当前状态:
</el-col><el-col
:span=
"12"
>
{{messageVal.status === 1 ? '待回复' : '已回复'}}
</el-col>
</el-row>
<el-row
class=
"el-row-leaving"
:gutter=
"10"
>
<el-col
:span=
"4"
>
订单编号:
</el-col><el-col
:span=
"12"
>
{{messageVal.orderCode}}
</el-col>
</el-row>
<el-row
class=
"el-row-leaving"
:gutter=
"10"
>
<el-col
:span=
"4"
>
留言类型:
</el-col><el-col
:span=
"12"
>
{{messageVal.type === 1 ? '咨询':'建议'}}
</el-col>
</el-row>
<div
style=
"background-color:#cccccc;padding:10px 20px;"
>
<el-row
class=
"el-row-leaving"
:gutter=
"10"
>
<el-col
:span=
"4"
>
{{messageVal.type === 1 ? '咨询':'建议'}}时间:
</el-col><el-col
:span=
"12"
>
{{parseTime(messageVal.createTime)}}
</el-col>
</el-row>
<el-row
class=
"el-row-leaving"
:gutter=
"10"
>
<el-col
:span=
"4"
>
{{messageVal.type === 1 ? '咨询':'建议'}}类容:
</el-col><el-col
:span=
"12"
>
{{messageVal.content}}
</el-col>
</el-row>
</div>
<div
style=
"background-color:#f6f6f6;padding:10px 20px;margin-top: 20px;"
>
<el-row
v-if=
"messageVal.status === 2"
class=
"el-row-leaving"
:gutter=
"10"
>
<el-col
:span=
"4"
>
回复人:
</el-col><el-col
:span=
"12"
>
{{messageVal.replyUserId}}
</el-col>
</el-row>
<el-row
v-if=
"messageVal.status === 2"
class=
"el-row-leaving"
:gutter=
"10"
>
<el-col
:span=
"4"
>
回复时间:
</el-col><el-col
:span=
"12"
>
{{parseTime(messageVal.replyTime)}}
</el-col>
</el-row>
<el-row
class=
"el-row-leaving"
:gutter=
"10"
>
<el-col
:span=
"4"
>
回复类容:
</el-col><el-col
:span=
"12"
><el-input
type=
"textarea"
v-model=
"messageVal.replyContent"
:disabled=
"messageVal.status === 2"
></el-input></el-col><el-col
:span=
"4"
><el-button
v-if=
"messageVal.status === 1"
@
click=
"replyFn"
>
回复
</el-button></el-col>
</el-row>
</div>
<div
slot=
"footer"
style=
"text-align: center;"
>
<el-button
type=
"primary"
@
click=
"leavingShow = false;"
>
关 闭
</el-button>
</div>
</el-dialog>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
createMessageLeave
,
replyMessageLeave
,
updateReply
,
deleteMessageLeave
,
getMessageLeave
,
getMessageLeavePage
,
exportMessageLeaveExcel
}
from
"
@/api/ecw/messageLeave
"
import
{
createMessageLeave
,
replyMessageLeave
,
updateReply
,
deleteMessageLeave
,
getMessageLeave
,
getMessageLeavePage
,
exportMessageLeaveExcel
}
from
"
@/api/ecw/messageLeave
"
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
export
default
{
export
default
{
name
:
"
MessageLeave
"
,
name
:
"
MessageLeave
"
,
components
:
{
components
:
{
...
@@ -133,6 +175,7 @@ export default {
...
@@ -133,6 +175,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
leavingShow
:
false
,
//留言详请弹窗
// 遮罩层
// 遮罩层
loading
:
true
,
loading
:
true
,
// 导出遮罩层
// 导出遮罩层
...
@@ -160,6 +203,19 @@ export default {
...
@@ -160,6 +203,19 @@ export default {
},
},
// 表单参数
// 表单参数
form
:
{},
form
:
{},
messageVal
:{
content
:
""
,
createTime
:
""
,
id
:
undefined
,
name
:
""
,
orderCode
:
""
,
phone
:
""
,
replyContent
:
""
,
replyTime
:
""
,
replyUserId
:
undefined
,
status
:
0
,
type
:
0
},
// 表单校验
// 表单校验
rules
:
{
rules
:
{
}
}
...
@@ -226,8 +282,8 @@ export default {
...
@@ -226,8 +282,8 @@ export default {
const
id
=
row
.
id
;
const
id
=
row
.
id
;
getMessageLeave
(
id
).
then
(
response
=>
{
getMessageLeave
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
messageVal
=
response
.
data
;
this
.
title
=
"
修改留言
"
;
this
.
leavingShow
=
true
;
});
});
},
},
/** 提交按钮 */
/** 提交按钮 */
...
@@ -236,15 +292,6 @@ export default {
...
@@ -236,15 +292,6 @@ export default {
if
(
!
valid
)
{
if
(
!
valid
)
{
return
;
return
;
}
}
// 修改的提交
if
(
this
.
form
.
id
!=
null
)
{
replyMessageLeave
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
return
;
}
// 添加的提交
// 添加的提交
createMessageLeave
(
this
.
form
).
then
(
response
=>
{
createMessageLeave
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"
新增成功
"
);
this
.
$modal
.
msgSuccess
(
"
新增成功
"
);
...
@@ -278,7 +325,19 @@ export default {
...
@@ -278,7 +325,19 @@ export default {
this
.
$download
.
excel
(
response
,
'
${table.classComment}.xls
'
);
this
.
$download
.
excel
(
response
,
'
${table.classComment}.xls
'
);
this
.
exportLoading
=
false
;
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}).
catch
(()
=>
{});
},
replyFn
(){
replyMessageLeave
({
id
:
this
.
messageVal
.
id
,
replyContent
:
this
.
messageVal
.
replyContent
,}).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"
修改成功
"
);
this
.
leavingShow
=
false
;
this
.
getList
();
});
}
}
}
}
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
.el-row-leaving
{
margin-bottom
:
10px
;
}
</
style
>
src/views/ecw/oceanCustomer/index.vue
0 → 100644
View file @
970079b6
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