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 98294072
authored
Aug 25, 2023
by
ext.wangyuman1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
订单
1 parent
3bf04bd4
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
573 additions
and
80 deletions
vue3-lw-pc/src/views/customerManage/customer/chatList.vue
vue3-lw-pc/src/views/customerManage/customer/chatListClassTab.vue
vue3-lw-pc/src/views/customerManage/customer/detail.vue
vue3-lw-pc/src/views/customerManage/customer/infoTab.vue
vue3-lw-pc/src/views/drainageCode/components/IdentityAttachment.vue
vue3-lw-pc/src/views/salesCenter/orderInfo/add.vue
vue3-lw-pc/src/views/salesCenter/orderInfo/index.vue
vue3-lw-pc/src/views/customerManage/customer/chatList.vue
0 → 100644
View file @
9829407
<
template
>
<div
class=
"takecontent"
>
<ul>
<li
v-for=
"(item, index) in data"
:key=
"index"
>
<div
:class=
"['mb10', queryChat.fromId === item.fromId && 'ar']"
>
<span
:class=
"['', queryChat.fromId === item.fromId && 'fr']"
style=
"color: #4e5969"
>
{{
item
.
name
}}
</span>
<span
:style=
"
{ color: item.action == 'send' ? '#86909C' : '#999', margin: '0 8px' }">
{{
item
.
msgTime
}}
</span>
</div>
<div
:class=
"['', queryChat.fromId === item.fromId && 'ar']"
>
<img
:class=
"['image', queryChat.fromId === item.fromId && 'fr']"
:src=
"item.avatar || '@/assets/image/profile.jpg'"
/>
<ChatContent
:queryChat=
"queryChat"
:message=
"item"
></ChatContent>
</div>
</li>
</ul>
</div>
</
template
>
<
script
>
import
ChatContent
from
'@/components/ChatContent'
export
default
{
components
:
{
ChatContent
,
},
props
:
{
data
:
{
type
:
Array
,
defluat
:
()
=>
[],
},
queryChat
:
{
type
:
Object
,
default
:
()
=>
({}),
},
},
mounted
()
{},
data
()
{
return
{}
},
methods
:
{},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.image
{
width
:
40px
;
height
:
40px
;
vertical-align
:
top
;
box-shadow
:
0px
6px
8px
0px
rgba
(
78
,
89
,
105
,
0.3
);
border-radius
:
8px
8px
8px
8px
;
border
:
1px
solid
var
(
--border-white
);
background
:
var
(
--bg-white
);
}
.shabowbox
{
position
:
fixed
;
width
:
100%
;
height
:
100%
;
background
:
var
(
--bg-black-6
);
left
:
0
;
top
:
0
;
z-index
:
2000
;
}
.shabowboxvidoe
{
position
:
fixed
;
width
:
800px
;
height
:
475px
;
left
:
50%
;
margin-left
:
-400px
;
top
:
50%
;
margin-top
:
-235px
;
z-index
:
2001
;
background
:
var
(
--bg-white
);
}
.shabowboxaudio
{
height
:
125px
;
padding
:
12px
;
}
.close
{
position
:
fixed
;
width
:
50px
;
height
:
50px
;
right
:
10px
;
z-index
:
2012
;
top
:
10px
;
text-align
:
center
;
line-height
:
50px
;
font-size
:
20px
;
color
:
var
(
--font-white
,
#fff
);
cursor
:
pointer
;
font-size
:
43px
;
}
.takecontent
{
border-radius
:
3px
;
background-color
:
var
(
--bg-black-9
);
position
:
relative
;
text-align
:
left
;
height
:
100%
;
width
:
100%
;
overflow-y
:
scroll
;
::-webkit-scrollbar
{
display
:
none
;
}
ul
li
{
padding
:
10px
;
}
}
</
style
>
vue3-lw-pc/src/views/customerManage/customer/chatListClassTab.vue
0 → 100644
View file @
9829407
<
template
>
<div
class=
"chatListClassTab"
v-loading=
"loading"
>
<!--
<el-date-picker
v-model=
"dateRange"
type=
"daterange"
format=
"YYYY-MM-DD"
value-format=
"YYYY-MM-DD"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
@
change=
"getList(1)"
></el-date-picker>
-->
<div
class=
"list"
>
<template
v-if=
"list.length"
>
<chatList
:queryChat=
"queryChat"
v-if=
"'all,image,video,link,'.includes(type)"
:data=
"list"
></chatList>
<el-table
v-else-if=
"type == 'file'"
:data=
"list"
stripe
style=
"width: 100%"
:header-cell-style=
"
{ background: '#fff' }"
>
<!--
<el-table-column
prop=
"msgtype"
label=
"类型"
>
</el-table-column>
-->
<el-table-column
label=
"名称"
>
<template
#
default=
"
{ row }">
{{
JSON
.
parse
(
row
.
contact
).
filename
}}
</
template
>
</el-table-column>
<el-table-column
label=
"大小"
>
<
template
#
default=
"{ row }"
>
{{
filterSize
(
JSON
.
parse
(
row
.
contact
).
filesize
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"来源"
>
<
template
#
default=
"{ row }"
>
{{
row
.
name
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"发送时间"
>
<
template
#
default=
"{ row }"
>
{{
row
.
msgTime
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"action"
label=
"操作"
>
<
template
#
default=
"{ row }"
>
<el-button
text
@
click=
"downloadFile(row)"
>
下载
</el-button>
</
template
>
</el-table-column>
</el-table>
<el-table
v-else-if=
"'voice,meeting_voice_call'.includes(type)"
:data=
"list"
stripe
:header-cell-style=
"{ background: '#fff' }"
>
<el-table-column
prop=
"date"
label=
"发起人"
>
<
template
#
default=
"{ row }"
>
{{
row
.
name
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"通话时间"
>
<
template
#
default=
"{ row }"
>
{{
row
.
msgTime
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"address"
label=
"时长"
min-width=
"50"
>
<
template
#
default=
"{ row }"
>
<span
v-if=
"row.msgType == 'voice'"
>
{{
JSON
.
parse
(
row
.
contact
).
play_length
}}
s
</span>
<span
v-else
>
{{
setDate
(
JSON
.
parse
(
row
.
contact
).
endtime
,
row
.
msgTime
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"msgType"
label=
"类型"
>
<
template
#
default=
"{ row }"
>
{{
row
.
msgType
===
'voice'
?
'语音消息'
:
'语音通话'
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"address"
min-width=
"80"
label=
"操作"
>
<
template
#
default=
"{ row }"
>
<!--
<el-button
text
@
click=
"voiceLook(JSON.parse(row.contact))"
>
查看
</el-button
>
-->
<!--
<AudioPlayer
:audio-list=
"[JSON.parse(row.contact).attachment]"
ref=
"AudioPlayer"
/>
-->
<voice
:amrUrl=
"JSON.parse(row.contact)['attachment']"
></voice>
<!--
<audio
controls
>
<source
:src=
"JSON.parse(row.contact).attachment"
type=
"audio/mpeg"
/>
</audio>
-->
</
template
>
</el-table-column>
</el-table>
</template>
<el-empty
v-else
:image-size=
"100"
></el-empty>
</div>
<el-pagination
v-if=
"total"
layout=
"prev, pager, next"
v-model:current-page=
"currentPage"
@
current-change=
"getList"
:total=
"total"
/>
</div>
</template>
<
script
>
import
chatList
from
'./chatList.vue'
import
*
as
api
from
'@/api/conversation/content.js'
import
Voice
from
'@/components/Voice'
import
{
download
}
from
'@/api/common.js'
import
{
diffDate
}
from
'@/utils/index'
import
{
parseTime
}
from
'@/utils/common'
export
default
{
name
:
''
,
components
:
{
chatList
,
Voice
},
props
:
{
// 消息收发者
queryChat
:
{
type
:
Object
,
default
:
()
=>
({}),
},
// 消息类型
type
:
{
type
:
[
String
,
Number
],
default
:
0
,
},
},
data
()
{
return
{
loading
:
false
,
currentPage
:
1
,
// dateRange: [],
list
:
[],
total
:
0
,
}
},
computed
:
{},
watch
:
{
queryChat
()
{
this
.
getList
(
1
)
},
type
()
{
this
.
getList
(
1
)
},
},
created
()
{
this
.
getList
(
1
)
},
mounted
()
{},
methods
:
{
setDate
(
start
,
end
)
{
return
diffDate
(
end
,
parseTime
(
start
))
},
getList
(
page
)
{
// if (!this.queryChat.fromId) {
// return //没有选择人
// }
this
.
loading
=
true
console
.
log
(
this
.
type
)
let
query
=
{
msgType
:
this
.
type
==
'all'
?
''
:
this
.
type
,
pageSize
:
'10'
,
orderByColumn
:
't.msg_time'
,
isAsc
:
'desc'
,
}
// if (this.dateRange) {
// query.beginTime = this.dateRange[0]
// query.endTime = this.dateRange[1]
// } else {
// query.beginTime = ''
// query.endTime = ''
// }
page
&&
(
query
.
pageNum
=
this
.
currentPage
=
page
)
Object
.
assign
(
query
,
this
.
queryChat
)
api
.
getChatList
(
query
)
.
then
((
res
)
=>
{
this
.
total
=
~~
res
.
total
this
.
list
=
res
.
rows
this
.
loading
=
false
})
.
catch
((
err
)
=>
{
this
.
loading
=
false
})
},
filterSize
(
size
)
{
if
(
!
size
)
return
''
if
(
size
<
pow1024
(
1
))
return
size
+
' B'
if
(
size
<
pow1024
(
2
))
return
(
size
/
pow1024
(
1
)).
toFixed
(
2
)
+
' KB'
if
(
size
<
pow1024
(
3
))
return
(
size
/
pow1024
(
2
)).
toFixed
(
2
)
+
' MB'
if
(
size
<
pow1024
(
4
))
return
(
size
/
pow1024
(
3
)).
toFixed
(
2
)
+
' GB'
return
(
size
/
pow1024
(
4
)).
toFixed
(
2
)
+
' TB'
function
pow1024
(
num
)
{
return
Math
.
pow
(
1024
,
num
)
}
},
downloadFile
(
row
)
{
this
.
$confirm
(
'是否确认下载该文件?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
})
.
then
((
response
)
=>
{
this
.
downloadNet
(
JSON
.
parse
(
row
.
contact
).
attachment
,
JSON
.
parse
(
row
.
contact
).
filename
)
})
.
catch
(
function
()
{})
},
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.list
{
height
:
calc
(
100vh
-
370px
);
margin-top
:
10px
;
background
:
var
(
--bg-white
);
overflow-y
:
scroll
;
border-bottom
:
1px
solid
var
(
--border-black-10
);
color
:
var
(
--font-black-6
);
text-align
:
center
;
::-webkit-scrollbar
{
display
:
none
;
}
}
.chatListClassTab
{
padding
:
10px
10px
0
;
background
:
var
(
--bg-white
);
text-align
:
left
;
}
</
style
>
vue3-lw-pc/src/views/customerManage/customer/detail.vue
View file @
9829407
...
@@ -12,11 +12,23 @@
...
@@ -12,11 +12,23 @@
<div
class=
"content"
>
<div
class=
"content"
>
<div
class=
"content-item"
v-for=
"(obj, i) in item.properties"
:key=
"i"
>
<div
class=
"content-item"
v-for=
"(obj, i) in item.properties"
:key=
"i"
>
<template
v-if=
"obj.type !== 7"
>
<template
v-if=
"obj.type !== 7"
>
<span>
{{
obj
.
name
}}
</span>
<span>
{{
obj
.
name
}}
:
</span>
<span>
{{
query
[
obj
.
code
]
}}
</span>
<span>
{{
obj
.
actualValue
}}
</span>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<!-- 附件 -->
<!-- 附件 -->
<span>
{{
obj
.
name
}}
:
</span>
<template
v-for=
"(item2, j) in dealValue(obj.actualValue)"
:key=
"j"
>
<!-- 图片 -->
<el-image
:src=
"obj.actualValue"
fit=
"contain"
class=
"imgsize"
v-if=
"item2 && chargeType(item2)"
></el-image>
<!-- 文件/doc/xls/pdf -->
<a
:href=
"obj.actualValue"
v-else
>
{{
obj
.
actualValue
}}
</a>
</
template
>
</template>
</template>
</div>
</div>
</div>
</div>
...
@@ -66,19 +78,36 @@ export default {
...
@@ -66,19 +78,36 @@ export default {
// this.getDetail()
// this.getDetail()
},
},
methods
:
{
methods
:
{
dealValue
(
val
)
{
let
url
=
[]
if
(
val
)
{
url
=
val
.
split
(
','
)
}
return
url
},
chargeType
(
val
)
{
if
(
val
)
{
let
url
=
val
.
split
(
'.'
)
if
([
'jpg'
,
'jpeg'
,
'png'
].
includes
(
url
[
url
.
length
-
1
]))
{
return
true
}
else
{
return
false
}
}
},
// 点击×按钮
// 点击×按钮
handleClose
()
{
handleClose
()
{
this
.
$emit
(
'close'
,
false
)
this
.
$emit
(
'close'
,
false
)
},
},
// 获取全部属性
// 获取全部属性
getProperties
(
id
)
{
getProperties
()
{
getProperties
(
id
).
then
((
res
)
=>
{
getProperties
().
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
this
.
query
=
res
.
data
this
.
query
=
res
.
data
})
})
},
},
// 获取详情
// 获取详情
getDetail
()
{
getDetail
(
id
)
{
orderDetail
(
id
).
then
((
res
)
=>
{
orderDetail
(
id
).
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
this
.
detailList
=
res
.
data
this
.
detailList
=
res
.
data
...
@@ -88,4 +117,18 @@ export default {
...
@@ -88,4 +117,18 @@ export default {
}
}
</
script
>
</
script
>
<
style
></
style
>
<
style
lang=
"scss"
scoped
>
.g-card
{
.title
{
font-size
:
16px
;
margin-bottom
:
16px
;
}
.content-item
{
line-height
:
34px
;
}
}
.imgsize
{
width
:
120px
;
height
:
120px
;
}
</
style
>
vue3-lw-pc/src/views/customerManage/customer/infoTab.vue
View file @
9829407
...
@@ -13,6 +13,7 @@ import { dictTrackState } from '@/utils/dictionary'
...
@@ -13,6 +13,7 @@ import { dictTrackState } from '@/utils/dictionary'
import
record
from
'./record'
import
record
from
'./record'
import
RecordTable
from
'./record-table'
import
RecordTable
from
'./record-table'
import
Detail
from
'./detail'
import
Detail
from
'./detail'
import
chatListClassTab
from
'./chatListClassTab.vue'
export
default
{
export
default
{
name
:
''
,
name
:
''
,
props
:
{
props
:
{
...
@@ -34,6 +35,7 @@ export default {
...
@@ -34,6 +35,7 @@ export default {
record
,
record
,
RecordTable
,
RecordTable
,
Detail
,
Detail
,
chatListClassTab
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -65,6 +67,15 @@ export default {
...
@@ -65,6 +67,15 @@ export default {
list
:
[],
list
:
[],
visible
:
false
,
visible
:
false
,
orderId
:
undefined
,
orderId
:
undefined
,
chatTab
:
[
{
checked
:
true
,
lable
:
'全部'
,
type
:
'all'
},
{
checked
:
false
,
lable
:
'图片&视频'
,
type
:
'image,video'
},
{
checked
:
false
,
lable
:
'文件'
,
type
:
'file'
},
{
checked
:
false
,
lable
:
'链接'
,
type
:
'link'
},
{
checked
:
false
,
lable
:
'语音'
,
type
:
'voice,meeting_voice_call'
},
],
queryChat
:
{},
tabType
:
'all'
,
}
}
},
},
computed
:
{},
computed
:
{},
...
@@ -83,6 +94,7 @@ export default {
...
@@ -83,6 +94,7 @@ export default {
this
.
userId
?
this
.
getCustomerInfoByUserId
()
:
this
.
getSummary
()
this
.
userId
?
this
.
getCustomerInfoByUserId
()
:
this
.
getSummary
()
this
.
getOrderStatus
()
this
.
getOrderStatus
()
this
.
getList
()
this
.
getList
()
this
.
getChatList
()
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
...
@@ -114,6 +126,9 @@ export default {
...
@@ -114,6 +126,9 @@ export default {
this
.
orderStateList
=
res
.
data
this
.
orderStateList
=
res
.
data
})
})
},
},
getChatList
()
{
this
.
queryChat
=
{
fromId
:
this
.
userId
,
toList
:
this
.
$route
.
query
.
externalUserid
}
},
setList
(
key
)
{
setList
(
key
)
{
let
order
=
0
let
order
=
0
this
.
stage
.
forEach
((
dd
,
index
)
=>
{
this
.
stage
.
forEach
((
dd
,
index
)
=>
{
...
@@ -266,6 +281,16 @@ export default {
...
@@ -266,6 +281,16 @@ export default {
this
.
visible
=
true
this
.
visible
=
true
this
.
orderId
=
id
this
.
orderId
=
id
},
},
chatTabClick
(
i
,
type
)
{
this
.
tabType
=
type
this
.
chatTab
=
this
.
chatTab
.
map
((
item
,
j
)
=>
{
item
.
checked
=
false
if
(
i
===
j
)
{
item
.
checked
=
true
}
return
item
})
},
},
},
}
}
</
script
>
</
script
>
...
@@ -497,7 +522,7 @@ export default {
...
@@ -497,7 +522,7 @@ export default {
<el-form-item
label-width=
"0"
>
<el-form-item
label-width=
"0"
>
<el-button
type=
"primary"
@
click=
"search"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"search"
>
查询
</el-button>
<el-button
@
click=
"resetFn"
>
清空
</el-button>
<el-button
@
click=
"resetFn"
>
清空
</el-button>
<
el-button
@
click=
"getDetail(id)"
>
详情
</el-button
>
<
!-- <el-button @click="getDetail('1694259619920498688')">详情</el-button> --
>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-table
<el-table
...
@@ -570,7 +595,19 @@ export default {
...
@@ -570,7 +595,19 @@ export default {
/>
/>
<Detail
:visible=
"visible"
@
close=
"visible = false"
:id=
"orderId"
/>
<Detail
:visible=
"visible"
@
close=
"visible = false"
:id=
"orderId"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"会话"
name=
"fourth"
>
</el-tab-pane>
<el-tab-pane
label=
"会话"
name=
"fourth"
>
<div
class=
"flex track-tab-wrap mb15"
>
<div
:class=
"['track-tab', item.checked && 'active']"
v-for=
"(item, i) in chatTab"
:key=
"i"
@
click=
"chatTabClick(i, item.type)"
>
{{ item.lable }}
</div>
</div>
<chatListClassTab
:queryChat=
"queryChat"
:type=
"tabType"
></chatListClassTab>
</el-tab-pane>
</el-tabs>
</el-tabs>
<!-- <div class="left">
<!-- <div class="left">
...
@@ -659,6 +696,25 @@ export default {
...
@@ -659,6 +696,25 @@ export default {
</template>
</template>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.track-tab-wrap
{
.track-tab
{
background
:
var
(
--bg-black-8
);
border-radius
:
50px
;
padding
:
5px
10px
;
cursor
:
pointer
;
&
+
.track-tab
{
margin-left
:
30px
;
}
&
.active
{
background
:
var
(
--color
);
color
:
var
(
--font-white
,
#fff
);
}
}
}
.content-box
{
width
:
80%
;
border
:
1px
solid
var
(
--bg-black-8
);
}
.code-image
{
.code-image
{
width
:
50px
;
width
:
50px
;
height
:
50px
;
height
:
50px
;
...
...
vue3-lw-pc/src/views/drainageCode/components/IdentityAttachment.vue
View file @
9829407
<
template
>
<
template
>
<div>
<div>
<el-form-item
:label=
"lableOne"
required
style=
"margin-right: 200px !important;"
:error=
"templateInfo"
>
<el-form-item
<div
v-if=
"showModle"
style=
"margin-bottom: 10px;"
>
:label=
"lableOne"
required
style=
"margin-right: 200px !important"
:error=
"templateInfo"
>
<div
v-if=
"showModle"
style=
"margin-bottom: 10px"
>
<el-button
type=
"primary"
@
click=
"welcomVisible = true"
>
从模板库中选择
</el-button>
<el-button
type=
"primary"
@
click=
"welcomVisible = true"
>
从模板库中选择
</el-button>
</div>
</div>
<TextareaExtend
<TextareaExtend
...
@@ -19,7 +24,11 @@
...
@@ -19,7 +24,11 @@
<template
#
label
>
<template
#
label
>
<div
class=
"title"
v-if=
"otherType !== 3"
>
<div
class=
"title"
v-if=
"otherType !== 3"
>
{{
titleTwo
}}
{{
titleTwo
}}
<el-popover
trigger=
"hover"
:content=
"'最多添加' + maxlength + '个素材'"
placement=
"top-start"
>
<el-popover
trigger=
"hover"
:content=
"'最多添加' + maxlength + '个素材'"
placement=
"top-start"
>
<template
#
reference
>
<template
#
reference
>
<el-icon-QuestionFilled
class=
"el-icon-QuestionFilled"
></el-icon-QuestionFilled>
<el-icon-QuestionFilled
class=
"el-icon-QuestionFilled"
></el-icon-QuestionFilled>
</
template
>
</
template
>
...
@@ -28,10 +37,18 @@
...
@@ -28,10 +37,18 @@
</template>
</template>
<div>
<div>
<div>
<div>
<div
style=
"text-align: left
;
"
class=
"flex"
>
<div
style=
"text-align: left"
class=
"flex"
>
<el-popover
<el-popover
trigger=
"hover"
trigger=
"hover"
:content=
"'最多添加' + maxlength + '个' + fontType + ',如需修改请删除已有' + fontType + '后重新尝试'"
:content=
"
'最多添加' +
maxlength +
'个' +
fontType +
',如需修改请删除已有' +
fontType +
'后重新尝试'
"
placement=
"top-start"
placement=
"top-start"
:disabled=
"talkList.length < maxlength"
:disabled=
"talkList.length < maxlength"
>
>
...
@@ -74,7 +91,15 @@
...
@@ -74,7 +91,15 @@
</el-popover>
</el-popover>
<el-popover
<el-popover
trigger=
"hover"
trigger=
"hover"
:content=
"'最多添加' + maxlength + '个' + fontType + ',如需修改请删除已有' + fontType + '后重新尝试'"
:content=
"
'最多添加' +
maxlength +
'个' +
fontType +
',如需修改请删除已有' +
fontType +
'后重新尝试'
"
placement=
"top-start"
placement=
"top-start"
:disabled=
"talkList.length < maxlength"
:disabled=
"talkList.length < maxlength"
>
>
...
@@ -94,8 +119,13 @@
...
@@ -94,8 +119,13 @@
</div>
</div>
</el-form-item>
</el-form-item>
<div
style=
"margin-top: 10px; margin-left: 150px;"
v-show=
"talkList.length"
>
<div
style=
"margin-top: 10px; margin-left: 150px"
v-show=
"talkList.length"
>
<DragTable
:tableData2=
"talkList"
@
setData=
"setData"
@
getEdit=
"getEdit"
:dargAble=
"[2].includes(moduleType)"
/>
<DragTable
:tableData2=
"talkList"
@
setData=
"setData"
@
getEdit=
"getEdit"
:dargAble=
"[2].includes(moduleType)"
/>
</div>
</div>
<!-- <el-col :span="8" class="g-card" style="margin-top: 20px; padding: 20px;" v-if="showPhone">
<!-- <el-col :span="8" class="g-card" style="margin-top: 20px; padding: 20px;" v-if="showPhone">
<PreviewInPhone :list="talkList" :templateInfo="talkForm.templateInfo" :liveUrl="liveUrl" />
<PreviewInPhone :list="talkList" :templateInfo="talkForm.templateInfo" :liveUrl="liveUrl" />
...
@@ -148,17 +178,17 @@
...
@@ -148,17 +178,17 @@
</template>
</template>
<
script
>
<
script
>
import
PreviewInPhone
from
'@/components/ContentCenter/PreviewInPhone'
import
PreviewInPhone
from
'@/components/ContentCenter/PreviewInPhone'
import
{
getTree
}
from
'@/api/material'
import
{
getTree
}
from
'@/api/material'
import
{
lexicalAdd
,
lexicalDetail
}
from
'@/api/contentCenter/scriptCenter'
import
{
lexicalAdd
,
lexicalDetail
}
from
'@/api/contentCenter/scriptCenter'
import
{
templateAdd
,
templateDetail
}
from
'@/api/contentCenter/modleCenter'
import
{
templateAdd
,
templateDetail
}
from
'@/api/contentCenter/modleCenter'
import
DragTable
from
'@/components/DragTable'
import
DragTable
from
'@/components/DragTable'
import
MaterialCenter
from
'@/components/ContentCenter/MaterialCenter'
import
MaterialCenter
from
'@/components/ContentCenter/MaterialCenter'
import
{
string
}
from
'clipboard'
import
{
string
}
from
'clipboard'
import
{
getPosterInfo
}
from
'@/api/material/poster'
import
{
getPosterInfo
}
from
'@/api/material/poster'
import
TemplateLibrary
from
'@/components/ContentCenter/TemplateLibrary'
import
TemplateLibrary
from
'@/components/ContentCenter/TemplateLibrary'
import
MessageContentForm
from
'@/components/MessageContentForm'
import
MessageContentForm
from
'@/components/MessageContentForm'
export
default
{
export
default
{
name
:
'add-material'
,
name
:
'add-material'
,
components
:
{
components
:
{
PreviewInPhone
,
PreviewInPhone
,
...
@@ -166,7 +196,7 @@
...
@@ -166,7 +196,7 @@
MaterialCenter
,
MaterialCenter
,
getPosterInfo
,
getPosterInfo
,
TemplateLibrary
,
TemplateLibrary
,
MessageContentForm
MessageContentForm
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -186,22 +216,22 @@
...
@@ -186,22 +216,22 @@
children
:
'children'
,
children
:
'children'
,
label
:
'name'
,
label
:
'name'
,
value
:
'id'
,
value
:
'id'
,
emitPath
:
false
emitPath
:
false
,
},
},
mobForm
:
{
mobForm
:
{
welcomeMsg
:
''
,
welcomeMsg
:
''
,
materialMsgList
:
[],
materialMsgList
:
[],
userIds
:
''
,
userIds
:
''
,
userNames
:
''
userNames
:
''
,
},
},
form
:
{
form
:
{
weMaterialImgAoList
:
[]
weMaterialImgAoList
:
[],
},
},
talkForm
:
{},
// 话术表单
talkForm
:
{},
// 话术表单
treeData
:
[{}],
// 树
treeData
:
[{}],
// 树
talkRules
:
Object
.
freeze
({
talkRules
:
Object
.
freeze
({
categoryId
:
[{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'change'
}],
categoryId
:
[{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'change'
}],
talkTitle
:
[{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}]
talkTitle
:
[{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}],
}),
}),
type
:
undefined
,
type
:
undefined
,
dialogVisible
:
false
,
// 新建素材表格对话框显隐
dialogVisible
:
false
,
// 新建素材表格对话框显隐
...
@@ -214,7 +244,7 @@
...
@@ -214,7 +244,7 @@
welcomVisible
:
false
,
welcomVisible
:
false
,
fontType
:
''
,
fontType
:
''
,
maxlength
:
9
,
maxlength
:
9
,
libraryLoading
:
false
libraryLoading
:
false
,
}
}
},
},
props
:
{
props
:
{
...
@@ -223,88 +253,88 @@
...
@@ -223,88 +253,88 @@
default
:
()
=>
{
default
:
()
=>
{
return
{
return
{
templateInfo
:
''
,
templateInfo
:
''
,
attachments
:
[]
attachments
:
[],
}
}
}
},
},
},
// 最多上传的素材数
// 最多上传的素材数
maxlengthTwo
:
{
maxlengthTwo
:
{
type
:
Number
,
type
:
Number
,
default
:
9
default
:
9
,
},
},
// 查询会话详情的id
// 查询会话详情的id
talkId
:
{
talkId
:
{
type
:
string
,
type
:
string
,
default
:
null
default
:
null
,
},
},
// 查询模板中心详情的id
// 查询模板中心详情的id
modelId
:
{
modelId
:
{
type
:
string
,
type
:
string
,
default
:
null
default
:
null
,
},
},
// 话术类形 0企业话术1客服话术
// 话术类形 0企业话术1客服话术
talkType
:
{
talkType
:
{
type
:
string
,
type
:
string
,
default
:
null
default
:
null
,
},
},
// 1欢迎语 2群发 3sop
// 1欢迎语 2群发 3sop
templateType
:
{
templateType
:
{
type
:
Number
,
type
:
Number
,
default
:
1
default
:
1
,
},
},
// 1:活码欢迎语;2:员工欢迎语;3:入群欢迎语
// 1:活码欢迎语;2:员工欢迎语;3:入群欢迎语
tplType
:
{
tplType
:
{
type
:
String
,
type
:
String
,
default
:
null
default
:
null
,
},
},
// 模块类型 1:素材;2:话术;3:模板;4:其他模块
// 模块类型 1:素材;2:话术;3:模板;4:其他模块
moduleType
:
{
moduleType
:
{
type
:
Number
,
type
:
Number
,
default
:
4
default
:
4
,
},
},
// 是否为欢迎语模板
// 是否为欢迎语模板
iswelcom
:
{
iswelcom
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
,
},
},
// 是否显示模板库
// 是否显示模板库
showModle
:
{
showModle
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
,
},
},
// 1.员工活码;2:企微营销;3:企业动态;4:门店活码
// 1.员工活码;2:企微营销;3:企业动态;4:门店活码
otherType
:
{
otherType
:
{
type
:
Number
,
type
:
Number
,
default
:
null
default
:
null
,
},
},
// 是否显示手机
// 是否显示手机
showPhone
:
{
showPhone
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
,
},
},
// 直播链接
// 直播链接
liveUrl
:
{
liveUrl
:
{
type
:
String
,
type
:
String
,
default
:
null
default
:
null
,
},
},
// 是否显示提交取消按钮
// 是否显示提交取消按钮
showFooter
:
{
showFooter
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
,
}
},
},
},
watch
:
{
watch
:
{
talkForm
:
{
talkForm
:
{
handler
(
val
)
{
handler
(
val
)
{
this
.
changeInfo
(
val
.
templateInfo
)
this
.
changeInfo
(
val
.
templateInfo
)
},
},
deep
:
true
deep
:
true
,
},
},
maxlengthTwo
:
{
maxlengthTwo
:
{
handler
(
val
)
{
handler
(
val
)
{
this
.
maxlength
=
val
this
.
maxlength
=
val
},
},
immediate
:
true
immediate
:
true
,
},
},
baseData
(
val
)
{
baseData
(
val
)
{
if
(
val
.
templateInfo
)
{
if
(
val
.
templateInfo
)
{
...
@@ -324,7 +354,7 @@
...
@@ -324,7 +354,7 @@
this
.
getDeatil
(
val
)
this
.
getDeatil
(
val
)
}
}
},
},
immediate
:
true
immediate
:
true
,
},
},
modelId
:
{
modelId
:
{
handler
(
val
)
{
handler
(
val
)
{
...
@@ -332,8 +362,8 @@
...
@@ -332,8 +362,8 @@
this
.
getTelDeatil
(
val
)
this
.
getTelDeatil
(
val
)
}
}
},
},
immediate
:
true
immediate
:
true
,
}
},
},
},
methods
:
{
methods
:
{
changeInfo
(
val
)
{
changeInfo
(
val
)
{
...
@@ -492,7 +522,7 @@
...
@@ -492,7 +522,7 @@
arr
=
this
.
talkForm
.
userIds
.
split
(
','
).
map
((
dd
,
index
)
=>
{
arr
=
this
.
talkForm
.
userIds
.
split
(
','
).
map
((
dd
,
index
)
=>
{
return
{
return
{
userId
:
dd
,
userId
:
dd
,
name
:
this
.
talkForm
.
userNames
.
split
(
','
)[
index
]
name
:
this
.
talkForm
.
userNames
.
split
(
','
)[
index
],
}
}
})
})
}
}
...
@@ -505,7 +535,7 @@
...
@@ -505,7 +535,7 @@
arr
=
this
.
talkForm
.
userIds
.
split
(
','
).
map
((
dd
,
index
)
=>
{
arr
=
this
.
talkForm
.
userIds
.
split
(
','
).
map
((
dd
,
index
)
=>
{
return
{
return
{
userId
:
dd
,
userId
:
dd
,
name
:
this
.
talkForm
.
userNames
.
split
(
','
)[
index
]
name
:
this
.
talkForm
.
userNames
.
split
(
','
)[
index
],
}
}
})
})
}
}
...
@@ -520,7 +550,7 @@
...
@@ -520,7 +550,7 @@
names
.
push
(
d
.
name
)
names
.
push
(
d
.
name
)
return
{
return
{
userId
:
d
.
userId
,
userId
:
d
.
userId
,
name
:
d
.
name
name
:
d
.
name
,
}
}
})
})
this
.
users
=
selectedUserList
this
.
users
=
selectedUserList
...
@@ -599,8 +629,8 @@
...
@@ -599,8 +629,8 @@
parentId
:
'0'
,
parentId
:
'0'
,
hasParent
:
false
,
hasParent
:
false
,
hasChildren
:
true
,
hasChildren
:
true
,
children
:
data
||
[]
children
:
data
||
[],
}
},
]
]
})
})
},
},
...
@@ -809,7 +839,7 @@
...
@@ -809,7 +839,7 @@
this
.
dealOtherModleType
(
talkForm
)
this
.
dealOtherModleType
(
talkForm
)
}
}
this
.
$emit
(
'update'
,
talkForm
)
this
.
$emit
(
'update'
,
talkForm
)
}
},
},
},
mounted
()
{
mounted
()
{
if
(
this
.
$route
.
query
.
categoryId
)
{
if
(
this
.
$route
.
query
.
categoryId
)
{
...
@@ -835,12 +865,12 @@
...
@@ -835,12 +865,12 @@
}
else
{
}
else
{
this
.
fontType
=
'素材'
this
.
fontType
=
'素材'
}
}
}
},
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
::v-deep
.ql-editor
{
::v-deep
.ql-editor
{
min-height
:
200px
;
min-height
:
200px
;
.ql-container
{
.ql-container
{
.ql-snow
{
.ql-snow
{
...
@@ -849,31 +879,31 @@
...
@@ -849,31 +879,31 @@
}
}
}
}
}
}
}
}
::v-deep
.el-button.is-disabled
{
::v-deep
.el-button.is-disabled
{
color
:
var
(
--font-white
,
#fff
);
color
:
var
(
--font-white
,
#fff
);
background-color
:
var
(
--bg-black-8
);
background-color
:
var
(
--bg-black-8
);
border-color
:
var
(
--border-black-8
);
border-color
:
var
(
--border-black-8
);
}
}
::v-deep
.el-dropdown
[
disabled
]
{
::v-deep
.el-dropdown
[
disabled
]
{
color
:
var
(
--font-white
,
#fff
);
color
:
var
(
--font-white
,
#fff
);
background-color
:
var
(
--bg-black-8
);
background-color
:
var
(
--bg-black-8
);
border-color
:
var
(
--border-black-8
);
border-color
:
var
(
--border-black-8
);
}
}
.footer
{
.footer
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.footerColor
{
.footerColor
{
font-weight
:
500
;
font-weight
:
500
;
font-size
:
18px
;
font-size
:
18px
;
color
:
var
(
--color
);
color
:
var
(
--color
);
margin
:
0
4px
;
margin
:
0
4px
;
}
}
.radius
{
.radius
{
border-radius
:
4px
;
border-radius
:
4px
;
}
}
.boxClass
{
.boxClass
{
padding
:
20px
10px
0
0
;
padding
:
20px
10px
0
0
;
}
}
</
style
>
</
style
>
vue3-lw-pc/src/views/salesCenter/orderInfo/add.vue
View file @
9829407
...
@@ -21,11 +21,11 @@
...
@@ -21,11 +21,11 @@
placeholder=
"请输入字段名称"
placeholder=
"请输入字段名称"
maxlength=
"10"
maxlength=
"10"
show-word-limit
show-word-limit
:disabled=
"ruleForm.fixed"
:disabled=
"ruleForm.fixed
|| id
"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"字段类型:"
prop=
"type"
>
<el-form-item
label=
"字段类型:"
prop=
"type"
>
<el-select
v-model=
"ruleForm.type"
:disabled=
"ruleForm.fixed"
>
<el-select
v-model=
"ruleForm.type"
:disabled=
"ruleForm.fixed
|| id
"
>
<el-option
<el-option
:label=
"item.value"
:label=
"item.value"
:value=
"item.key"
:value=
"item.key"
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<el-form-item
label=
"是否必填:"
prop=
"required"
>
<el-form-item
label=
"是否必填:"
prop=
"required"
>
<el-radio-group
v-model=
"ruleForm.required"
>
<el-radio-group
v-model=
"ruleForm.required"
:disabled=
"id"
>
<el-radio
:label=
"1"
>
是
</el-radio>
<el-radio
:label=
"1"
>
是
</el-radio>
<el-radio
:label=
"0"
>
否
</el-radio>
<el-radio
:label=
"0"
>
否
</el-radio>
</el-radio-group>
</el-radio-group>
...
@@ -126,6 +126,7 @@ export default {
...
@@ -126,6 +126,7 @@ export default {
toTime
:
0
,
toTime
:
0
,
}
}
this
.
$refs
[
'ruleForm'
].
resetFields
()
this
.
$refs
[
'ruleForm'
].
resetFields
()
this
.
id
=
0
}
}
},
},
},
},
...
@@ -182,6 +183,7 @@ export default {
...
@@ -182,6 +183,7 @@ export default {
this
.
ruleForm
.
catalogueId
=
this
.
catalogueId
this
.
ruleForm
.
catalogueId
=
this
.
catalogueId
if
(
this
.
id
)
{
if
(
this
.
id
)
{
this
.
ruleForm
.
id
=
this
.
id
this
.
ruleForm
.
id
=
this
.
id
delete
this
.
ruleForm
.
typeStr
}
}
;(
this
.
id
?
update
:
add
)(
this
.
ruleForm
).
then
((
res
)
=>
{
;(
this
.
id
?
update
:
add
)(
this
.
ruleForm
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
...
...
vue3-lw-pc/src/views/salesCenter/orderInfo/index.vue
View file @
9829407
...
@@ -247,7 +247,7 @@ export default {
...
@@ -247,7 +247,7 @@ export default {
// 新建字段提交
// 新建字段提交
this
.
getList
()
this
.
getList
()
}
}
this
.
visible
=
val
this
.
visible
=
false
},
},
add
(
id
)
{
add
(
id
)
{
this
.
visible
=
true
this
.
visible
=
true
...
...
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