Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 85b777a1
authored
Aug 21, 2023
by
ext.wangyuman1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
详情
1 parent
4501d8d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
8 deletions
vue3-lw-pc/src/api/customer/index.js
vue3-lw-pc/src/views/customerManage/customer/detail.vue
vue3-lw-pc/src/api/customer/index.js
View file @
85b777a
...
...
@@ -304,3 +304,18 @@ export function orderDetail(id) {
url
:
order
+
'/'
+
id
,
})
}
// 移动端-全部字段信息
export
function
getProperties
()
{
return
request
({
url
:
getway
+
'/substitute/customer/order/property/properties'
,
})
}
// 获取与外部联系人会话列表
export
function
chatList
(
params
)
{
return
request
({
url
:
getway
+
'/chat/msg/selectFullSearchChatList'
,
params
,
})
}
vue3-lw-pc/src/views/customerManage/customer/detail.vue
View file @
85b777a
...
...
@@ -7,23 +7,36 @@
v-if=
"dialogVisible"
:before-close=
"handleClose"
>
<div
class=
"g-card"
>
<div
class=
"title"
>
订单信息
</div>
</div>
<div
class=
"g-card"
>
<div
class=
"title"
>
商品信息
</div>
<div
class=
"g-card"
v-for=
"(item, index) in detailList"
:key=
"index"
>
<div
class=
"title"
>
{{
item
.
name
}}
</div>
<div
class=
"content"
>
<div
class=
"content-item"
v-for=
"(obj, i) in item.properties"
:key=
"i"
>
<template
v-if=
"obj.type !== 7"
>
<span>
{{
obj
.
name
}}
</span>
<span>
{{
query
[
obj
.
code
]
}}
</span>
</
template
>
<
template
v-else
>
<!-- 附件 -->
</
template
>
</div>
</div>
</div>
<!-- <div class="g-card">
<div class="title">商品信息</div>
</div> -->
</el-dialog>
</div>
</template>
<
script
>
import
{
orderDetail
}
from
'@/api/customer'
import
{
orderDetail
,
getProperties
}
from
'@/api/customer'
export
default
{
data
()
{
return
{
dialogVisible
:
false
,
ruleForm
:
{},
detailList
:
[],
query
:
{},
}
},
props
:
{
...
...
@@ -43,19 +56,32 @@ export default {
if
(
!
val
)
{
this
.
ruleForm
=
{}
}
else
{
this
.
orderDetail
(
this
.
id
)
this
.
getDetail
(
this
.
id
)
this
.
getProperties
()
}
},
},
},
created
()
{
// this.getDetail()
},
methods
:
{
// 点击×按钮
handleClose
()
{
this
.
$emit
(
'close'
,
false
)
},
orderDetail
(
id
)
{
// 获取全部属性
getProperties
(
id
)
{
getProperties
(
id
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
query
=
res
.
data
})
},
// 获取详情
getDetail
()
{
orderDetail
(
id
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
detailList
=
res
.
data
})
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment