Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6baa96cc
authored
Jul 02, 2026
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'saas+v5.8.3' of
http://192.168.3.233:8090/glsx/gl_tape
into saas+v5.8.3
2 parents
d6e1bd25
d791ce33
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
200 additions
and
21 deletions
components/AiAssistantBall/AiAssistantBall.vue
components/HomeFrame/components/CustomerSide/index.vue
components/HomeFrame/components/ReceptionCenter/index.vue
components/OrderPopup/components/SkuGoodsList.vue
components/OrderPopup/components/SkuPopup.vue
env.js
pages/boutique/tool/components/CreateOrder.vue
pages/common/actuvityDetail.vue
pages/common/customerPages/addFiles.vue
pages/common/customerPages/detailFiles.vue
pages/common/prelearnBridge.vue
utils/recordManager/RecordService.js
components/AiAssistantBall/AiAssistantBall.vue
View file @
6baa96c
...
...
@@ -233,6 +233,7 @@ import {
shouldShowDailyGuide
,
markDailyGuideShown
}
from
'@/utils/aiAssistant/AiAssistantPref.js'
import
{
storageApi
}
from
'@/utils/cache'
import
RecordService
from
'@/utils/recordManager/RecordService.js'
import
{
getAiStreamSession
}
from
'@/utils/aiAssistant/aiStreamSession.js'
import
{
TransportType
}
from
'@/utils/socket'
...
...
@@ -609,6 +610,7 @@ export default {
'info'
,
`encode
${
this
.
encodeCostMs
}
ms, request POST /api/audio/chat session=
${
sessionId
}
`
)
const
userInfo
=
storageApi
.
getUserInfo
()
||
{}
let
res
const
tReqStart
=
Date
.
now
()
try
{
...
...
@@ -621,7 +623,8 @@ export default {
audio
:
audioBase64
,
sample_rate
:
16000
,
sample_width
:
2
,
channels
:
1
channels
:
1
,
phone
:
userInfo
.
phone
||
''
},
onTask
:
(
task
)
=>
{
this
.
helpAnswerAbort
=
()
=>
{
...
...
components/HomeFrame/components/CustomerSide/index.vue
View file @
6baa96c
...
...
@@ -58,7 +58,7 @@
<view
class=
"customer-item-body"
@
click=
"handleGoCustomerDetail(item)"
>
<view
class=
"customer-item-row customer-item-row--name"
>
<view
class=
"customer-item-name-left"
>
<text
class=
"customer-item-name"
>
{{
formatName
(
item
.
customerName
)
}}
</text>
<text
class=
"customer-item-name"
>
{{
item
.
customerName
}}
</text>
<view
v-if=
"item.carSeriesName"
class=
"customer-item-car-tag"
>
<text
class=
"customer-item-car-text"
>
{{
item
.
carSeriesName
}}
</text>
</view>
...
...
components/HomeFrame/components/ReceptionCenter/index.vue
View file @
6baa96c
...
...
@@ -154,7 +154,7 @@ export default {
tabIndex
:
0
,
typeList
:
Object
.
freeze
([
{
tabName
:
'接待复盘'
},
{
tabName
:
'客户预录'
},
//
{ tabName: '客户预录' },
]),
showInfo
:
false
,
customerId
:
''
,
...
...
components/OrderPopup/components/SkuGoodsList.vue
View file @
6baa96c
...
...
@@ -443,8 +443,22 @@ export default {
chooseList
.
map
((
item
,
ind
)
=>
{
if
(
item
.
goodsFlag
==
2
&&
item
.
multipleSpecificationsGoods
.
id
==
goodsList
[
index
].
multipleSpecificationsGoods
.
id
)
addIndex
=
ind
})
const
parentMsg
=
goodsList
[
index
].
multipleSpecificationsGoods
const
marketingFlag
=
goodsList
[
index
].
marketingFlag
??
parentMsg
.
marketingFlag
const
activityId
=
goodsList
[
index
].
activityId
??
parentMsg
.
activityId
const
selectedGoods
=
goodsArr
[
0
]
if
(
marketingFlag
!=
null
&&
marketingFlag
!==
''
)
{
goodsList
[
index
].
marketingFlag
=
goodsList
[
index
].
marketingFlag
??
marketingFlag
parentMsg
.
marketingFlag
=
parentMsg
.
marketingFlag
??
marketingFlag
selectedGoods
.
marketingFlag
=
selectedGoods
.
marketingFlag
??
marketingFlag
}
if
(
activityId
!=
null
&&
activityId
!==
''
)
{
goodsList
[
index
].
activityId
=
goodsList
[
index
].
activityId
??
activityId
parentMsg
.
activityId
=
parentMsg
.
activityId
??
activityId
selectedGoods
.
activityId
=
selectedGoods
.
activityId
??
activityId
}
goodsList
[
index
].
active
=
true
goodsList
[
index
].
multipleSpecificationsGoods
.
goods
=
goodsArr
[
0
]
goodsList
[
index
].
multipleSpecificationsGoods
.
goods
=
selectedGoods
goodsList
[
index
].
multipleSpecificationsGoods
.
goods
.
goodsId
=
goodsList
[
index
].
multipleSpecificationsGoods
.
goods
.
merchantGoodsId
goodsList
[
index
].
multipleSpecificationsGoods
.
goods
.
specificationStr
=
goodsList
[
index
].
multipleSpecificationsGoods
.
goods
.
specificationData
.
replace
(
/;~;/g
,
'/'
)
snapshotOriginalPrice
(
goodsList
[
index
].
multipleSpecificationsGoods
.
goods
)
...
...
components/OrderPopup/components/SkuPopup.vue
View file @
6baa96c
...
...
@@ -102,18 +102,30 @@ export default {
title
:
'请勾选商品'
,
icon
:
'none'
,
})
let
{
baseGoodsName
,
id
,
specificationGoodsMap
,
specificationList
,
skuGoodsList
}
=
data
.
multipleSpecificationsGoods
let
{
baseGoodsName
,
id
,
specificationGoodsMap
,
specificationList
,
skuGoodsList
,
marketingFlag
:
msgMarketingFlag
,
activityId
:
msgActivityId
}
=
data
.
multipleSpecificationsGoods
let
goods
=
skuGoodsList
.
find
(
e
=>
e
.
goodsId
==
currentId
)
const
marketingFlag
=
data
.
marketingFlag
??
msgMarketingFlag
const
activityId
=
data
.
activityId
??
msgActivityId
if
(
marketingFlag
!=
null
&&
marketingFlag
!==
''
&&
(
goods
.
marketingFlag
==
null
||
goods
.
marketingFlag
===
''
))
{
goods
.
marketingFlag
=
marketingFlag
}
if
(
activityId
!=
null
&&
activityId
!==
''
&&
(
goods
.
activityId
==
null
||
goods
.
activityId
===
''
))
{
goods
.
activityId
=
activityId
}
this
.
$emit
(
'onConfirm'
,
{
count
:
1
,
goods
:
null
,
goodsFlag
:
2
,
isFlag
:
true
,
marketingFlag
,
activityId
,
multipleSpecificationsGoods
:
{
baseGoodsName
,
id
,
specificationGoodsMap
,
specificationList
,
marketingFlag
,
activityId
,
goods
}
})
...
...
env.js
View file @
6baa96c
...
...
@@ -95,6 +95,15 @@ const venusUsedcarH5CarInfoBaseUrl = {
prod
:
'https://aus.glsx.com.cn/venus-usedcar-h5/vehicle-list'
}[
target
[
index
]]
/** 套餐话术预学习 WebView H5(与 target / index 一致:0 本地 1 开发 2 测试 3 生产 4 预发布) */
const
prelearnH5Url
=
{
ip
:
'https://single-pages.test.glsx.com.cn/prelearning.html'
,
dev
:
'https://single-pages.test.glsx.com.cn/prelearning.html'
,
uat
:
'https://single-pages.test.glsx.com.cn/prelearning.html'
,
beta
:
'https://single-pages.test.glsx.com.cn/prelearning.html'
,
prod
:
'https://single-pages.glsx.com.cn/prelearning.html'
}[
target
[
index
]]
const
djSecretKey
=
{
ip
:
{
appKey
:
'48e5e13229b82c1b4e6e8c96151f0637'
,
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
dev
:
{
...
...
@@ -200,5 +209,6 @@ module.exports = {
signSecretKey
,
evaluationDomain
,
venusUsedcarH5BaseUrl
,
venusUsedcarH5CarInfoBaseUrl
venusUsedcarH5CarInfoBaseUrl
,
prelearnH5Url
}
pages/boutique/tool/components/CreateOrder.vue
View file @
6baa96c
...
...
@@ -778,6 +778,7 @@ export default {
this
.
$set
(
this
.
orderObj
,
_typeValue
.
key
,
chooseContent
)
}
snapshotOrderItemsOriginalPrice
(
this
.
orderObj
[
_typeValue
.
key
])
this
.
enrichOrderItemsMarketingFields
(
this
.
orderObj
[
_typeValue
.
key
])
// 商品类,需计算总价
setTimeout
(()
=>
{
this
.
changeTotalPrice
()
...
...
@@ -1808,16 +1809,118 @@ export default {
},
buildSubOrderGoodsFlags
(
orderItem
,
goods
)
{
if
(
!
[
'createWithPay'
,
'supplementOrder'
].
includes
(
this
.
orderCreateType
))
return
{}
const
catalogMatch
=
this
.
resolveCatalogMatch
(
orderItem
,
goods
)
let
marketingFlag
=
getSubmitMarketingFlag
(
orderItem
,
goods
)
if
(
marketingFlag
!==
1
&&
catalogMatch
)
{
marketingFlag
=
getSubmitMarketingFlag
(
catalogMatch
)
}
const
flags
=
{
marketingFlag
:
getSubmitMarketingFlag
(
orderItem
,
goods
)
,
marketingFlag
,
modifyFlag
:
getSubmitModifyFlag
(
goods
)
}
const
activityId
=
getSubmitActivityId
(
orderItem
,
goods
)
if
(
activityId
!=
null
&&
activityId
!==
''
)
{
flags
.
activityId
=
activityId
if
(
marketingFlag
===
1
)
{
let
activityId
=
getSubmitActivityId
(
orderItem
,
goods
)
if
((
activityId
==
null
||
activityId
===
''
)
&&
catalogMatch
)
{
activityId
=
getActivityId
(
catalogMatch
)
if
((
activityId
==
null
||
activityId
===
''
)
&&
orderItem
.
goodsFlag
==
3
&&
goods
?.
merchantGoodsId
)
{
const
pkgGoods
=
catalogMatch
.
packageGoods
?.
goodsList
?.
find
(
g
=>
g
.
merchantGoodsId
==
goods
.
merchantGoodsId
)
activityId
=
pkgGoods
?.
activityId
}
}
if
(
activityId
!=
null
&&
activityId
!==
''
)
{
flags
.
activityId
=
activityId
}
}
return
flags
},
resolveCatalogMatch
(
orderItem
,
goods
)
{
if
(
!
orderItem
)
return
undefined
if
(
orderItem
.
goodsFlag
==
1
)
{
const
g
=
goods
??
orderItem
.
goods
return
this
.
findCatalogGoodsMatch
({
merchantGoodsId
:
g
?.
merchantGoodsId
,
goodsId
:
g
?.
goodsId
??
g
?.
merchantGoodsId
})
}
if
(
orderItem
.
goodsFlag
==
2
)
{
const
id
=
orderItem
.
multipleSpecificationsGoods
?.
id
??
orderItem
.
multipleSpecificationsGoods
?.
merchantGoodsId
return
this
.
findCatalogGoodsMatch
({
merchantGoodsId
:
id
,
goodsId
:
id
})
}
if
(
orderItem
.
goodsFlag
==
3
&&
orderItem
.
packageGoods
)
{
return
this
.
findCatalogGoodsMatch
({
packageGoods
:
orderItem
.
packageGoods
})
}
return
undefined
},
enrichOrderItemsMarketingFields
(
items
)
{
if
(
!
Array
.
isArray
(
items
))
return
items
.
forEach
(
item
=>
{
const
catalogMatch
=
this
.
resolveCatalogMatch
(
item
)
if
(
!
catalogMatch
)
return
const
catalogMarketingFlag
=
getMarketingFlag
(
catalogMatch
)
const
catalogActivityId
=
getActivityId
(
catalogMatch
)
if
(
catalogMarketingFlag
!=
null
&&
catalogMarketingFlag
!==
''
&&
(
item
.
marketingFlag
==
null
||
item
.
marketingFlag
===
''
))
{
item
.
marketingFlag
=
catalogMarketingFlag
}
if
(
catalogActivityId
!=
null
&&
catalogActivityId
!==
''
&&
(
item
.
activityId
==
null
||
item
.
activityId
===
''
))
{
item
.
activityId
=
catalogActivityId
}
if
(
item
.
goodsFlag
==
1
&&
item
.
goods
)
{
if
(
catalogMarketingFlag
!=
null
&&
catalogMarketingFlag
!==
''
&&
(
item
.
goods
.
marketingFlag
==
null
||
item
.
goods
.
marketingFlag
===
''
))
{
item
.
goods
.
marketingFlag
=
catalogMarketingFlag
}
if
(
catalogActivityId
!=
null
&&
catalogActivityId
!==
''
&&
(
item
.
goods
.
activityId
==
null
||
item
.
goods
.
activityId
===
''
))
{
item
.
goods
.
activityId
=
catalogActivityId
}
}
if
(
item
.
goodsFlag
==
2
&&
item
.
multipleSpecificationsGoods
)
{
const
msg
=
item
.
multipleSpecificationsGoods
if
(
catalogMarketingFlag
!=
null
&&
catalogMarketingFlag
!==
''
&&
(
msg
.
marketingFlag
==
null
||
msg
.
marketingFlag
===
''
))
{
msg
.
marketingFlag
=
catalogMarketingFlag
}
if
(
catalogActivityId
!=
null
&&
catalogActivityId
!==
''
&&
(
msg
.
activityId
==
null
||
msg
.
activityId
===
''
))
{
msg
.
activityId
=
catalogActivityId
}
if
(
msg
.
goods
)
{
if
(
catalogMarketingFlag
!=
null
&&
catalogMarketingFlag
!==
''
&&
(
msg
.
goods
.
marketingFlag
==
null
||
msg
.
goods
.
marketingFlag
===
''
))
{
msg
.
goods
.
marketingFlag
=
catalogMarketingFlag
}
if
(
catalogActivityId
!=
null
&&
catalogActivityId
!==
''
&&
(
msg
.
goods
.
activityId
==
null
||
msg
.
goods
.
activityId
===
''
))
{
msg
.
goods
.
activityId
=
catalogActivityId
}
}
}
if
(
item
.
goodsFlag
==
3
&&
item
.
packageGoods
)
{
if
(
catalogMarketingFlag
!=
null
&&
catalogMarketingFlag
!==
''
&&
(
item
.
packageGoods
.
marketingFlag
==
null
||
item
.
packageGoods
.
marketingFlag
===
''
))
{
item
.
packageGoods
.
marketingFlag
=
catalogMarketingFlag
}
if
(
catalogActivityId
!=
null
&&
catalogActivityId
!==
''
&&
(
item
.
packageGoods
.
activityId
==
null
||
item
.
packageGoods
.
activityId
===
''
))
{
item
.
packageGoods
.
activityId
=
catalogActivityId
}
item
.
packageGoods
.
goodsList
?.
forEach
(
g
=>
{
const
catalogGoods
=
catalogMatch
.
packageGoods
?.
goodsList
?.
find
(
cg
=>
cg
.
merchantGoodsId
==
g
.
merchantGoodsId
)
if
(
!
catalogGoods
)
return
if
(
catalogGoods
.
marketingFlag
!=
null
&&
catalogGoods
.
marketingFlag
!==
''
&&
(
g
.
marketingFlag
==
null
||
g
.
marketingFlag
===
''
))
{
g
.
marketingFlag
=
catalogGoods
.
marketingFlag
}
if
(
catalogGoods
.
activityId
!=
null
&&
catalogGoods
.
activityId
!==
''
&&
(
g
.
activityId
==
null
||
g
.
activityId
===
''
))
{
g
.
activityId
=
catalogGoods
.
activityId
}
})
}
})
},
findCatalogGoodsMatch
({
merchantGoodsId
,
goodsId
,
packageGoods
}
=
{})
{
const
list
=
this
.
goodsList
||
[]
return
list
.
find
(
item
=>
{
...
...
pages/common/actuvityDetail.vue
View file @
6baa96c
...
...
@@ -118,7 +118,16 @@ export default {
activityId
:
this
.
goodsInfo
.
activityId
,
activityProductId
:
this
.
goodsInfo
.
productId
})
console
.
log
(
'getPrelearnScriptBoardAPI**前置*'
,
res
)
console
.
log
(
'[actuvityDetail] getPrelearnScriptBoardAPI 查询状态结果 res:'
,
res
)
const
staffLearnStatus
=
Number
(
res
?.
staffLearnStatus
)
if
(
staffLearnStatus
===
1
||
staffLearnStatus
===
2
)
{
uni
.
showToast
({
title
:
'案例学习已完成'
,
icon
:
'none'
})
return
}
const
{
aiStatus
}
=
res
||
{}
if
(
aiStatus
!==
PRELEARN_AI_STATUS
.
READY
)
{
...
...
pages/common/customerPages/addFiles.vue
View file @
6baa96c
...
...
@@ -133,7 +133,7 @@
/>
<employee
ref="
trafficSourceVisible
"
title="
流量来源
"
title="
销售顾问
"
employeeType="
default
"
:salesPropsUuid="
customerInfo
.
userId
"
@select="
handleSelect
(
$event
,
'trafficSourceVisible'
)
"
...
...
@@ -197,7 +197,7 @@ const phoneRex = /^[1]([3-9])[0-9]{9}$/,
dateUnlimited
:
true
}
,
{
label
:
'
流量来源
'
,
label
:
'
销售顾问
'
,
valueKey
:
'employeeName'
,
key
:
'userId'
,
type
:
'select'
,
...
...
@@ -278,7 +278,8 @@ export default {
console
.
log
(
'getCustomerGroupInfoAPI***'
,
res
)
}
,
initForm
()
{
const
{
sceneType
}
=
uni
.
$storage
.
get
(
"userInfo"
)
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
)
||
{
}
const
{
sceneType
,
name
,
uuid
}
=
userInfo
default_customerForm
[
0
].
maxlength
=
sceneType
==
1
?
20
:
50
this
.
$store
.
dispatch
(
"clearCustomerInfo"
)
this
.
$store
.
dispatch
(
"clearHistory"
)
...
...
@@ -295,8 +296,8 @@ export default {
employeeName
:
''
,
userId
:
''
,
merchantName
:
''
,
sellerName
:
''
,
sellerUserId
:
''
,
sellerName
:
name
||
''
,
sellerUserId
:
uuid
||
''
,
inviteDate
:
''
,
filingDate
:
dayjs
().
format
(
'YYYY-MM-DD'
)
}
...
...
pages/common/customerPages/detailFiles.vue
View file @
6baa96c
...
...
@@ -179,7 +179,7 @@
</template>
</view>
<view
class=
"btns flex"
>
<view
class=
"btn cancel"
@
click=
"submitCustomerProfileAPI
"
>
提交
</view>
<view
:class=
"['btn', 'cancel', { disabled: isRequiredFormIncomplete }]"
@
click=
"handleSubmitClick
"
>
提交
</view>
<
template
v-if=
"sceneType != 7"
>
<view
:class=
"['btn',
{ disabled: isStartReceptionDisabled }]" @click="startReception">开始接待
</view>
</
template
>
...
...
@@ -275,7 +275,7 @@ const phoneRex = /^[1]([3-9])[0-9]{9}$/,
// popKey: 'receptionSceneVisible'
// },
{
label
:
'
流量来源
'
,
label
:
'
销售顾问
'
,
valueKey
:
'employeeName'
,
key
:
'userId'
,
type
:
'readonly'
,
...
...
@@ -380,7 +380,12 @@ export default {
const
{
sceneType
}
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
return
sceneType
},
isRequiredFormIncomplete
()
{
const
{
customerForm
,
customerInfo
}
=
this
return
customerForm
.
some
(
e
=>
e
.
required
&&
!
customerInfo
[
e
.
key
])
},
isStartReceptionDisabled
()
{
if
(
this
.
isRequiredFormIncomplete
)
return
true
return
[
2
,
3
,
4
].
includes
(
Number
(
this
.
customerInfo
.
customerStatus
))
}
},
...
...
@@ -724,9 +729,26 @@ export default {
animationDuration
:
100
})
},
handleSubmitClick
()
{
if
(
this
.
isRequiredFormIncomplete
)
{
uni
.
showToast
({
title
:
'必填表单项不能为空'
,
icon
:
'none'
})
return
}
this
.
submitCustomerProfileAPI
()
},
async
startReception
()
{
const
{
sceneType
,
customerInfo
}
=
this
if
(
sceneType
==
7
)
return
// 二手车无接待功能
if
(
this
.
isRequiredFormIncomplete
)
{
uni
.
showToast
({
title
:
'必填表单项不能为空'
,
icon
:
'none'
})
return
}
if
(
this
.
isStartReceptionDisabled
)
return
const
submitted
=
await
this
.
submitCustomerProfileAPI
({
fromReception
:
true
})
if
(
!
submitted
)
return
...
...
@@ -1199,6 +1221,11 @@ export default {
background
:
#dae9ff
;
color
:
#2c66f7
;
}
.cancel.disabled
{
background
:
rgba
(
218
,
233
,
255
,
0.6
);
color
:
rgba
(
44
,
102
,
247
,
0.6
);
background-image
:
none
;
}
.disabled
{
background-image
:
linear-gradient
(
0deg
,
#2c66f799
0%
,
#48a6ff99
100%
);
}
...
...
pages/common/prelearnBridge.vue
View file @
6baa96c
...
...
@@ -49,6 +49,7 @@
<
script
>
import
StudyPopup
from
'@/components/StudyPopup.vue'
import
PreBackPopup
from
'@/components/PreStudy/PreBackPopup.vue'
import
{
prelearnH5Url
}
from
'@/env.js'
export
default
{
name
:
'PrelearnBridge'
,
...
...
@@ -138,8 +139,7 @@ export default {
},
},
onLoad
(
options
)
{
const
defaultUrl
=
'https://single-pages.test.glsx.com.cn/prelearning.html'
this
.
webviewUrl
=
options
.
url
?
decodeURIComponent
(
options
.
url
)
:
defaultUrl
this
.
webviewUrl
=
prelearnH5Url
if
(
options
.
prelearnData
)
{
try
{
const
prelearnData
=
JSON
.
parse
(
decodeURIComponent
(
options
.
prelearnData
))
...
...
utils/recordManager/RecordService.js
View file @
6baa96c
...
...
@@ -309,7 +309,7 @@ class RecordService {
const useWs = !!wsBase
const transport = useWs ? TransportType.WEBSOCKET : TransportType.HTTP
// HTTP 服务端固定为 /health(可在 AiAssistantBall 内按需覆盖)
const httpBaseUrl = 'https://lightmodification.
test.
glsx.com.cn'
const httpBaseUrl = 'https://lightmodification.glsx.com.cn'
const client = new NativeChannelClient(
useWs ? { transport } : { transport, baseUrl: httpBaseUrl }
...
...
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