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 f3f86acf
authored
Jul 02, 2026
by
岑成威
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'saas+v5.8.3' of 192.168.3.233:glsx/gl_tape into saas+v5.8.3
2 parents
2d771de6
586eb745
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
196 additions
and
45 deletions
components/FinishStep.vue
components/HomeFrame/components/CustomerSide/index.vue
components/HomeFrame/index.vue
env.js
pages/boutique/components/Reception.vue
pages/boutique/index.vue
pages/common/customerPages/detailFiles.vue
pages/common/dailyNewspaper/NegotiationDetail/components/CustomerDrawer.vue
pages/common/dailyNewspaper/NegotiationDetail/edit.vue
pages/common/prelearnBridge.vue
components/FinishStep.vue
View file @
f3f86ac
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
:key=
"index"
:key=
"index"
>
>
<view
:class=
"['label',
{ required: i.required }]">
{{
i
.
label
}}
</view>
<view
:class=
"['label',
{ required: i.required }]">
{{
i
.
label
}}
</view>
<view
:class=
"['value',
{ error: showError(i.key)
&&
i.required }, { disabled:
customerType == 0 || i.disabled
}]">
<view
:class=
"['value',
{ error: showError(i.key)
&&
i.required }, { disabled:
isFieldDisabled(i)
}]">
<template
v-if=
"i.type == 'input'"
>
<template
v-if=
"i.type == 'input'"
>
<input
<input
:type=
"i.inputType"
:type=
"i.inputType"
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
v-model=
"formData[i.key]"
v-model=
"formData[i.key]"
class=
"input"
class=
"input"
:placeholder=
"i.placeholder"
:placeholder=
"i.placeholder"
:disabled=
"
customerType == 0
"
:disabled=
"
isFieldDisabled(i)
"
@
input=
"inputCustomer"
@
input=
"inputCustomer"
placeholder-style=
"color:#c9c9c9;"
placeholder-style=
"color:#c9c9c9;"
/>
/>
...
@@ -252,10 +252,15 @@ export default {
...
@@ -252,10 +252,15 @@ export default {
if
(
key
==
'phoneNumber'
&&
this
.
formData
[
key
])
flag
=
!
phoneRex
.
test
(
this
.
formData
[
key
])
if
(
key
==
'phoneNumber'
&&
this
.
formData
[
key
])
flag
=
!
phoneRex
.
test
(
this
.
formData
[
key
])
return
this
.
errorTip
&&
flag
return
this
.
errorTip
&&
flag
},
},
showPopup
({
popKey
,
disabled
})
{
isFieldDisabled
(
field
)
{
let
{
customerType
}
=
this
if
(
this
.
customerType
==
0
)
return
true
if
(
customerType
==
0
||
disabled
)
return
if
(
field
.
disabled
)
return
true
this
.
$refs
[
popKey
].
open
();
if
(
this
.
formData
.
profilePrefilled
&&
field
.
key
===
'carModel'
)
return
true
return
false
},
showPopup
(
field
)
{
if
(
this
.
isFieldDisabled
(
field
))
return
this
.
$refs
[
field
.
popKey
].
open
();
},
},
// 取消
// 取消
cancel
()
{
cancel
()
{
...
@@ -310,6 +315,7 @@ export default {
...
@@ -310,6 +315,7 @@ export default {
}
}
},
},
success
(
receptionStatus
)
{
success
(
receptionStatus
)
{
this
.
$store
.
dispatch
(
'setCustomerInfo'
,
this
.
formData
)
this
.
$refs
.
successRef
.
open
();
this
.
$refs
.
successRef
.
open
();
this
.
$emit
(
'submit'
,
receptionStatus
)
this
.
$emit
(
'submit'
,
receptionStatus
)
},
},
...
@@ -342,6 +348,8 @@ export default {
...
@@ -342,6 +348,8 @@ export default {
this
.
$emit
(
'back'
)
this
.
$emit
(
'back'
)
return
return
}
}
}
else
if
(
customerInfo
.
profilePrefilled
)
{
step
=
1
}
}
if
(
step
==
2
&&
!
this
.
check
())
{
if
(
step
==
2
&&
!
this
.
check
())
{
this
.
errorTip
=
true
this
.
errorTip
=
true
...
...
components/HomeFrame/components/CustomerSide/index.vue
View file @
f3f86ac
...
@@ -421,7 +421,11 @@ export default {
...
@@ -421,7 +421,11 @@ export default {
line-height
:
22px
;
line-height
:
22px
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#1A1A2E
;
color
:
#1A1A2E
;
flex-shrink
:
0
;
min-width
:
0
;
flex
:
1
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
.customer-item-car-tag
{
.customer-item-car-tag
{
...
...
components/HomeFrame/index.vue
View file @
f3f86ac
...
@@ -396,7 +396,6 @@ export default {
...
@@ -396,7 +396,6 @@ export default {
uni
.
$off
(
'levelStudyPopup'
)
uni
.
$off
(
'levelStudyPopup'
)
uni
.
$off
(
'pageBack'
)
uni
.
$off
(
'pageBack'
)
uni
.
$off
(
'refreshCustomerProfileGroupInfo'
)
uni
.
$off
(
'refreshCustomerProfileGroupInfo'
)
uni
.
$off
(
'startReceptionFromCustomerDetail'
)
},
},
async
mounted
()
{
async
mounted
()
{
console
.
log
(
'sessionId**'
,
uni
.
$storage
.
get
(
'sessionId'
))
console
.
log
(
'sessionId**'
,
uni
.
$storage
.
get
(
'sessionId'
))
...
@@ -499,9 +498,6 @@ export default {
...
@@ -499,9 +498,6 @@ export default {
uni
.
$on
(
'refreshCustomerProfileGroupInfo'
,
()
=>
{
uni
.
$on
(
'refreshCustomerProfileGroupInfo'
,
()
=>
{
this
.
getCustomerProfileGroupInfo
()
this
.
getCustomerProfileGroupInfo
()
})
})
uni
.
$on
(
'startReceptionFromCustomerDetail'
,
()
=>
{
this
.
start
()
})
/**
/**
* 获取员工场景小分类
* 获取员工场景小分类
*/
*/
...
...
env.js
View file @
f3f86ac
...
@@ -95,6 +95,15 @@ const venusUsedcarH5CarInfoBaseUrl = {
...
@@ -95,6 +95,15 @@ const venusUsedcarH5CarInfoBaseUrl = {
prod
:
'https://aus.glsx.com.cn/venus-usedcar-h5/vehicle-list'
prod
:
'https://aus.glsx.com.cn/venus-usedcar-h5/vehicle-list'
}[
target
[
index
]]
}[
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
=
{
const
djSecretKey
=
{
ip
:
{
appKey
:
'48e5e13229b82c1b4e6e8c96151f0637'
,
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
ip
:
{
appKey
:
'48e5e13229b82c1b4e6e8c96151f0637'
,
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
dev
:
{
dev
:
{
...
@@ -200,5 +209,6 @@ module.exports = {
...
@@ -200,5 +209,6 @@ module.exports = {
signSecretKey
,
signSecretKey
,
evaluationDomain
,
evaluationDomain
,
venusUsedcarH5BaseUrl
,
venusUsedcarH5BaseUrl
,
venusUsedcarH5CarInfoBaseUrl
venusUsedcarH5CarInfoBaseUrl
,
prelearnH5Url
}
}
pages/boutique/components/Reception.vue
View file @
f3f86ac
...
@@ -223,11 +223,9 @@ export default {
...
@@ -223,11 +223,9 @@ export default {
},
},
/**是否有选装项目 */
/**是否有选装项目 */
hasOptionals
()
{
hasOptionals
()
{
let
flag
=
false
if
(
!
this
.
show
||
!
this
.
currentCarId
)
return
false
if
(
this
.
show
)
{
const
optionals
=
this
.
boutiqueMediaConfig
?.[
this
.
currentCarId
]?.
optionals
flag
=
this
.
boutiqueMediaConfig
[
this
.
currentCarId
].
optionals
&&
this
.
boutiqueMediaConfig
[
this
.
currentCarId
].
optionals
.
length
return
!!
(
optionals
&&
optionals
.
length
)
}
return
flag
},
},
carList
()
{
carList
()
{
return
this
.
$store
.
state
.
user
.
boutiqueCarList
return
this
.
$store
.
state
.
user
.
boutiqueCarList
...
...
pages/boutique/index.vue
View file @
f3f86ac
...
@@ -175,7 +175,9 @@ export default {
...
@@ -175,7 +175,9 @@ export default {
}
}
]),
]),
loadComplete
:
false
,
loadComplete
:
false
,
requested
:
false
requested
:
false
,
profileReceptionCustomer
:
null
,
profileReceptionProcessing
:
false
}
}
},
},
onBackPress
(
options
)
{
onBackPress
(
options
)
{
...
@@ -195,6 +197,10 @@ export default {
...
@@ -195,6 +197,10 @@ export default {
this
.
requested
=
true
this
.
requested
=
true
this
.
$refs
.
home
.
updateApp
(
true
)
this
.
$refs
.
home
.
updateApp
(
true
)
this
.
getMerchantCarBrand
()
this
.
getMerchantCarBrand
()
uni
.
$on
(
'startProfileReception'
,
this
.
handleProfileReception
)
},
onUnload
()
{
uni
.
$off
(
'startProfileReception'
,
this
.
handleProfileReception
)
},
},
async
onShow
()
{
async
onShow
()
{
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
)
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
)
...
@@ -208,6 +214,7 @@ export default {
...
@@ -208,6 +214,7 @@ export default {
}
}
if
(
this
.
requested
&&
!
this
.
id
)
this
.
$refs
.
home
.
updateApp
()
if
(
this
.
requested
&&
!
this
.
id
)
this
.
$refs
.
home
.
updateApp
()
this
.
getBoutiquePackageList
()
//套餐列表
this
.
getBoutiquePackageList
()
//套餐列表
this
.
tryStartPendingProfileReception
()
},
},
computed
:
{
computed
:
{
},
},
...
@@ -362,6 +369,7 @@ export default {
...
@@ -362,6 +369,7 @@ export default {
this
.
currentCarId
=
''
this
.
currentCarId
=
''
this
.
bannerAutoplay
=
true
this
.
bannerAutoplay
=
true
this
.
customerType
=
-
1
this
.
customerType
=
-
1
this
.
profileReceptionCustomer
=
null
this
.
clearHistory
();
this
.
clearHistory
();
this
.
recording
=
false
this
.
recording
=
false
this
.
setReceptionStatus
(
-
1
);
this
.
setReceptionStatus
(
-
1
);
...
@@ -369,12 +377,73 @@ export default {
...
@@ -369,12 +377,73 @@ export default {
if
(
this
.
requested
)
this
.
$refs
.
home
.
updateApp
()
if
(
this
.
requested
)
this
.
$refs
.
home
.
updateApp
()
this
.
getBoutiquePackageList
()
//套餐列表
this
.
getBoutiquePackageList
()
//套餐列表
},
},
handleProfileReception
(
customer
)
{
const
pendingCustomer
=
customer
||
uni
.
$storage
.
get
(
'pendingProfileReception'
)
if
(
!
pendingCustomer
||
this
.
profileReceptionProcessing
)
return
this
.
profileReceptionProcessing
=
true
uni
.
$storage
.
rm
(
'pendingProfileReception'
)
this
.
$nextTick
(
async
()
=>
{
try
{
await
this
.
startReceptionFromProfile
(
pendingCustomer
)
}
finally
{
this
.
profileReceptionProcessing
=
false
}
})
},
tryStartPendingProfileReception
()
{
let
customer
=
''
try
{
customer
=
uni
.
$storage
.
get
(
'pendingProfileReception'
)
}
catch
(
e
)
{
return
}
if
(
!
customer
)
return
this
.
handleProfileReception
()
},
waitForHomeRef
(
retry
=
20
)
{
return
new
Promise
(
resolve
=>
{
const
check
=
(
count
)
=>
{
if
(
this
.
$refs
.
home
)
resolve
(
true
)
else
if
(
count
>=
retry
)
resolve
(
false
)
else
setTimeout
(()
=>
check
(
count
+
1
),
50
)
}
check
(
0
)
})
},
async
startReceptionFromProfile
(
customer
)
{
if
(
!
customer
)
return
const
homeReady
=
await
this
.
waitForHomeRef
()
if
(
!
homeReady
)
{
uni
.
$storage
.
set
(
'pendingProfileReception'
,
customer
)
uni
.
showToast
({
title
:
'页面未就绪,请重试'
,
icon
:
'none'
})
return
}
if
(
!
this
.
moduleList
.
length
)
{
await
this
.
getSoure
()
}
uni
.
$track
.
add
({
eventCode
:
'app_reception_begins'
})
const
isReturnCustomer
=
!!
customer
.
customerCouponId
this
.
customerType
=
isReturnCustomer
?
0
:
1
this
.
clearHistory
()
this
.
jumpPage
()
this
.
fillReceptionCustomer
(
customer
)
const
flag
=
await
this
.
start
(
false
)
if
(
!
flag
)
return
this
.
recording
=
true
setTimeout
(()
=>
{
this
.
setReceptionStatus
(
1
)
},
1000
)
},
async
start
(
before
=
true
)
{
async
start
(
before
=
true
)
{
const
isPermision
=
await
this
.
$refs
.
home
.
isPermission
()
const
isPermision
=
await
this
.
$refs
.
home
.
isPermission
()
if
(
!
isPermision
)
return
false
if
(
!
isPermision
)
return
false
uni
.
$logger
.
local
.
info
(
'〖接待管理Recorder〗 == 开始接待 '
)
uni
.
$logger
.
local
.
info
(
'〖接待管理Recorder〗 == 开始接待 '
)
if
(
before
)
this
.
clearHistory
();
if
(
before
)
this
.
clearHistory
();
this
.
$refs
.
home
.
startAudio
(
false
)
const
started
=
await
this
.
$refs
.
home
.
startAudio
(
false
)
if
(
!
started
)
return
false
this
.
recording
=
true
this
.
recording
=
true
return
true
return
true
},
},
...
@@ -382,9 +451,9 @@ export default {
...
@@ -382,9 +451,9 @@ export default {
let
{
carBannerList
}
=
this
,
let
{
carBannerList
}
=
this
,
carIndex
=
carBannerList
.
findIndex
(
e
=>
e
.
carModelId
==
this
.
defaultCarId
)
carIndex
=
carBannerList
.
findIndex
(
e
=>
e
.
carModelId
==
this
.
defaultCarId
)
if
(
carBannerList
.
length
==
1
||
carIndex
<
0
)
carIndex
=
0
//只有一个车型或者默认车型没有时
if
(
carBannerList
.
length
==
1
||
carIndex
<
0
)
carIndex
=
0
//只有一个车型或者默认车型没有时
this
.
id
=
id
?
id
:
this
.
moduleList
[
0
].
id
this
.
id
=
id
||
(
this
.
moduleList
[
0
]
&&
this
.
moduleList
[
0
].
id
)
||
1
this
.
tabId
=
1
this
.
tabId
=
1
this
.
currentCarId
=
carBannerList
[
carIndex
]
.
carModelId
this
.
currentCarId
=
carBannerList
[
carIndex
]
?.
carModelId
||
''
this
.
type
=
"edit"
this
.
type
=
"edit"
},
},
clearHistory
()
{
clearHistory
()
{
...
@@ -402,17 +471,29 @@ export default {
...
@@ -402,17 +471,29 @@ export default {
if
(
!
flag
)
return
if
(
!
flag
)
return
this
.
customerType
=
index
this
.
customerType
=
index
if
(
index
==
0
)
{
if
(
index
==
0
)
{
this
.
profileReceptionCustomer
=
null
const
{
id
}
=
moduleList
[
2
]
const
{
id
}
=
moduleList
[
2
]
this
.
jumpPage
(
id
)
this
.
jumpPage
(
id
)
}
else
{
this
.
jumpPage
()
if
(
this
.
profileReceptionCustomer
)
{
this
.
fillReceptionCustomer
(
this
.
profileReceptionCustomer
)
this
.
profileReceptionCustomer
=
null
}
}
}
else
this
.
jumpPage
()
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
setReceptionStatus
(
1
);
this
.
setReceptionStatus
(
1
);
},
1000
);
},
1000
);
},
},
async
done
(
e
)
{
async
done
(
e
)
{
this
.
$refs
.
home
.
finishRef
.
close
();
this
.
$refs
.
home
.
finishRef
.
close
();
if
(
this
.
recording
)
await
this
.
$refs
.
home
.
stopAudio
();
if
(
this
.
recording
)
{
if
(
e
!==
undefined
&&
e
!==
null
&&
e
!==
-
1
)
{
this
.
setReceptionStatus
(
e
)
}
this
.
$refs
.
home
.
updateCustomerInfo
(
this
.
$store
.
state
.
user
.
customerInfo
)
await
this
.
$refs
.
home
.
stopAudio
();
}
this
.
recording
=
false
this
.
recording
=
false
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
id
=
""
;
this
.
id
=
""
;
...
@@ -420,26 +501,20 @@ export default {
...
@@ -420,26 +501,20 @@ export default {
this
.
currentCarId
=
''
this
.
currentCarId
=
''
this
.
bannerAutoplay
=
true
this
.
bannerAutoplay
=
true
this
.
customerType
=
-
1
this
.
customerType
=
-
1
this
.
profileReceptionCustomer
=
null
this
.
$store
.
dispatch
(
"clearHistory"
)
this
.
$store
.
dispatch
(
"clearHistory"
)
this
.
$store
.
dispatch
(
'clearReceptionTrack'
)
this
.
$store
.
dispatch
(
'clearReceptionTrack'
)
this
.
getBoutiquePackageList
()
//套餐列表
this
.
getBoutiquePackageList
()
//套餐列表
this
.
setReceptionStatus
(
-
1
);
this
.
setReceptionStatus
(
-
1
);
},
1500
);
},
1500
);
},
},
/**客户邀约接待 */
fillReceptionCustomer
(
customer
)
{
reception
(
customer
)
{
this
.
$nextTick
(()
=>
{
this
.
currentCarId
=
''
uni
.
$logger
.
local
.
info
(
'index-reception:客户接待回填〗 == '
+
JSON
.
stringify
(
customer
))
this
.
$nextTick
(
async
()
=>
{
this
.
$store
.
dispatch
(
'setCustomerInfo'
,
customer
)
let
{
customerType
}
=
this
this
.
$nextTick
(()
=>
{
if
(
customerType
==
-
1
)
{
const
flag
=
await
this
.
start
(
false
)
if
(
!
flag
)
return
}
//开始接待
this
.
customerType
=
0
this
.
jumpPage
()
uni
.
$logger
.
local
.
info
(
'index-reception:回店客户〗 == '
+
JSON
.
stringify
(
customer
))
this
.
$refs
.
home
.
updateCustomerInfo
(
customer
)
this
.
$refs
.
home
.
updateCustomerInfo
(
customer
)
this
.
$nextTick
(()
=>
this
.
$store
.
dispatch
(
'setCustomerInfo'
,
customer
)
)
}
)
let
{
carBannerList
}
=
this
,
let
{
carBannerList
}
=
this
,
currentCarId
=
''
,
currentCarId
=
''
,
carIndex
=
carBannerList
.
findIndex
(
e
=>
e
.
carModelId
==
this
.
defaultCarId
)
carIndex
=
carBannerList
.
findIndex
(
e
=>
e
.
carModelId
==
this
.
defaultCarId
)
...
@@ -452,6 +527,19 @@ export default {
...
@@ -452,6 +527,19 @@ export default {
this
.
currentCarId
=
currentCarId
this
.
currentCarId
=
currentCarId
})
})
},
},
/**客户邀约接待 */
reception
(
customer
)
{
this
.
$nextTick
(
async
()
=>
{
let
{
customerType
}
=
this
if
(
customerType
==
-
1
)
{
const
flag
=
await
this
.
start
(
false
)
if
(
!
flag
)
return
}
//开始接待
this
.
customerType
=
0
this
.
jumpPage
()
this
.
fillReceptionCustomer
(
customer
)
})
},
swiperChange
(
e
)
{
swiperChange
(
e
)
{
this
.
currentIndex
=
e
.
detail
.
current
this
.
currentIndex
=
e
.
detail
.
current
this
.
bannerTabId
=
`car-banner-
${
e
.
detail
.
current
}
`
this
.
bannerTabId
=
`car-banner-
${
e
.
detail
.
current
}
`
...
...
pages/common/customerPages/detailFiles.vue
View file @
f3f86ac
...
@@ -232,6 +232,7 @@ import dayjs from 'dayjs'
...
@@ -232,6 +232,7 @@ import dayjs from 'dayjs'
import
ReceptionSence
from
'@/components/HomeFrame/components/ReceptionCenter/ReceptionSence.vue'
import
ReceptionSence
from
'@/components/HomeFrame/components/ReceptionCenter/ReceptionSence.vue'
import
Employee
from
'@/components/Employee.vue'
import
Employee
from
'@/components/Employee.vue'
import
{
validateVin
,
formatVinInput
}
from
'@/utils/vinVaildate'
import
{
validateVin
,
formatVinInput
}
from
'@/utils/vinVaildate'
import
RecordService
from
'@/utils/recordManager/RecordService'
const
phoneRex
=
/^
[
1
]([
3-9
])[
0-9
]{9}
$/
,
const
phoneRex
=
/^
[
1
]([
3-9
])[
0-9
]{9}
$/
,
default_customerForm
=
[{
default_customerForm
=
[{
label
:
'车主姓名'
,
label
:
'车主姓名'
,
...
@@ -327,7 +328,7 @@ const phoneRex = /^[1]([3-9])[0-9]{9}$/,
...
@@ -327,7 +328,7 @@ const phoneRex = /^[1]([3-9])[0-9]{9}$/,
placeholder
:
'请选择群成员'
placeholder
:
'请选择群成员'
},
},
{
{
label
:
'备注'
,
label
:
'
订单
备注'
,
valueKey
:
'remark'
,
valueKey
:
'remark'
,
key
:
'remark'
,
key
:
'remark'
,
type
:
'input'
,
type
:
'input'
,
...
@@ -719,7 +720,7 @@ export default {
...
@@ -719,7 +720,7 @@ export default {
}
}
this
.
syncInviteDateFromDelivery
()
this
.
syncInviteDateFromDelivery
()
this
.
syncDisplayInfo
(
this
.
customerInfo
)
this
.
syncDisplayInfo
(
this
.
customerInfo
)
console
.
log
(
'
findVisitsInfo
**customerInfo*'
,
this
.
customerInfo
)
console
.
log
(
'
客户详情
**customerInfo*'
,
this
.
customerInfo
)
await
this
.
getCustomerGroupInfo
()
await
this
.
getCustomerGroupInfo
()
},
},
backPage
()
{
backPage
()
{
...
@@ -739,8 +740,45 @@ export default {
...
@@ -739,8 +740,45 @@ export default {
}
}
this
.
submitCustomerProfileAPI
()
this
.
submitCustomerProfileAPI
()
},
},
buildReceptionCustomer
()
{
const
item
=
this
.
customerInfo
const
{
customerInviteRecordDTO
=
{}
}
=
item
const
{
customerCouponId
,
customerCoupon
=
{}
}
=
customerInviteRecordDTO
console
.
log
(
'跳转开始接待**item*'
,
item
);
console
.
log
(
'跳转开始接待**customerInviteRecordDTO*'
,
customerCoupon
.
createdDate
);
console
.
log
(
'跳转开始接待**customerCouponId*'
,
customerCouponId
);
// let customer = {
// customerName: item.customerName,
// carModel: item.carSeriesName || '',
// phoneNumber: item.customerPhone,
// salesUuid: item.userId,
// staffName: item.employeeName,
// receiveCouponDate: item.receiveCouponDate,
// customerCouponId: item.customerCouponId,
// carSeriesId: item.carSeriesId || '',
// carBrand: item.carChildsBrandName || '',
// carBrandId: item.carChildsBrandId || '',
// oneCarBrand: item.carBrand || '',
// oneCarBrandId: item.carBrandId || ''
// }
return
{
customerName
:
item
.
customerName
,
carModel
:
item
.
carSeriesName
||
item
.
carChildsBrandName
||
''
,
phoneNumber
:
item
.
customerPhone
,
salesUuid
:
item
.
userId
,
staffName
:
item
.
employeeName
,
carSeriesId
:
item
.
carSeriesId
||
''
,
carBrand
:
item
.
carChildsBrandName
||
''
,
carBrandId
:
item
.
carChildsBrandId
||
''
,
oneCarBrand
:
item
.
carBrand
||
''
,
oneCarBrandId
:
item
.
carBrandId
||
''
,
receiveCouponDate
:
customerCoupon
.
createdDate
,
customerCouponId
,
profilePrefilled
:
true
}
},
async
startReception
()
{
async
startReception
()
{
const
{
sceneType
,
customerInfo
}
=
this
const
{
sceneType
}
=
this
if
(
sceneType
==
7
)
return
// 二手车无接待功能
if
(
sceneType
==
7
)
return
// 二手车无接待功能
if
(
this
.
isRequiredFormIncomplete
)
{
if
(
this
.
isRequiredFormIncomplete
)
{
uni
.
showToast
({
uni
.
showToast
({
...
@@ -750,14 +788,19 @@ export default {
...
@@ -750,14 +788,19 @@ export default {
return
return
}
}
if
(
this
.
isStartReceptionDisabled
)
return
if
(
this
.
isStartReceptionDisabled
)
return
const
recordService
=
RecordService
.
getInstance
()
const
hasPermission
=
await
recordService
.
isPermission
()
if
(
!
hasPermission
)
return
const
submitted
=
await
this
.
submitCustomerProfileAPI
({
fromReception
:
true
})
const
submitted
=
await
this
.
submitCustomerProfileAPI
({
fromReception
:
true
})
if
(
!
submitted
)
return
if
(
!
submitted
)
return
const
customer
=
this
.
buildReceptionCustomer
()
uni
.
$storage
.
set
(
'pendingProfileReception'
,
customer
)
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
,
delta
:
1
,
animationType
:
'pop-out'
,
animationType
:
'pop-out'
,
animationDuration
:
100
,
animationDuration
:
100
,
success
:
()
=>
{
success
:
()
=>
{
uni
.
$emit
(
'start
ReceptionFromCustomerDetail'
)
uni
.
$emit
(
'start
ProfileReception'
,
customer
)
}
}
})
})
},
},
...
...
pages/common/dailyNewspaper/NegotiationDetail/components/CustomerDrawer.vue
View file @
f3f86ac
...
@@ -233,7 +233,7 @@ export default {
...
@@ -233,7 +233,7 @@ export default {
position
:
absolute
;
position
:
absolute
;
height
:
100%
;
height
:
100%
;
top
:
0
;
top
:
0
;
righ
t
:
0
;
lef
t
:
0
;
padding
:
0
toRpx
(
48
);
padding
:
0
toRpx
(
48
);
font-weight
:
400
;
font-weight
:
400
;
color
:
#1a1a1a
;
color
:
#1a1a1a
;
...
...
pages/common/dailyNewspaper/NegotiationDetail/edit.vue
View file @
f3f86ac
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<view
class=
"sprite-icon icon-negotiation-detail-count"
></view>
<view
class=
"sprite-icon icon-negotiation-detail-count"
></view>
今日待接待客户数
<text
class=
"text-primary"
>
{{
customerCount
}}
</text>
今日待接待客户数
<text
class=
"text-primary"
>
{{
customerCount
}}
</text>
</view>
</view>
<view
class=
"fixed-btn flex"
@
click=
"
$refs.CustomerDrawer.open()
"
>
<view
class=
"fixed-btn flex"
@
click=
"
openCustomerDrawer
"
>
查看客户
查看客户
<uni-icons
type=
"right"
size=
"12"
color=
"#2C66F7"
></uni-icons>
<uni-icons
type=
"right"
size=
"12"
color=
"#2C66F7"
></uni-icons>
</view>
</view>
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<
template
v-if=
"i.children.length"
>
<
template
v-if=
"i.children.length"
>
<Table
:columns=
"i.children[0]"
:data=
"i.children"
titleKey=
"label"
tableStyle=
"padding-right:32rpx"
<Table
:columns=
"i.children[0]"
:data=
"i.children"
titleKey=
"label"
tableStyle=
"padding-right:32rpx"
customTable
cornerText=
"序号"
LeftWidth=
"104rpx"
@
rowClick=
"handleRowClick"
:tableIndex=
"index"
customTable
cornerText=
"序号"
LeftWidth=
"104rpx"
@
rowClick=
"handleRowClick"
:tableIndex=
"index"
hasFooter
@
clickAdd=
"addItem(index)"
:maxLength=
"i.rules.maxLength"
>
hasFooter
@
clickAdd=
"addItem(index)"
:maxLength=
"i.rules.maxLength"
:disabled=
"!saveBtn"
>
<template
v-slot:customCell=
"
{ row, colIndex }">
<template
v-slot:customCell=
"
{ row, colIndex }">
<text>
{{
formatValue
(
row
[
colIndex
].
value
)
}}
</text>
<text>
{{
formatValue
(
row
[
colIndex
].
value
)
}}
</text>
<template
v-if=
"row[colIndex].unit && formatValue(row[colIndex].value) != '-'"
>
<template
v-if=
"row[colIndex].unit && formatValue(row[colIndex].value) != '-'"
>
...
@@ -201,6 +201,10 @@ export default {
...
@@ -201,6 +201,10 @@ export default {
this
.
$emit
(
'maxLengthError'
,
error
)
this
.
$emit
(
'maxLengthError'
,
error
)
}
}
},
},
openCustomerDrawer
(){
if
(
!
this
.
saveBtn
)
return
this
.
$refs
.
CustomerDrawer
.
open
()
}
}
}
}
}
</
script
>
</
script
>
...
...
pages/common/prelearnBridge.vue
View file @
f3f86ac
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
<
script
>
<
script
>
import
StudyPopup
from
'@/components/StudyPopup.vue'
import
StudyPopup
from
'@/components/StudyPopup.vue'
import
PreBackPopup
from
'@/components/PreStudy/PreBackPopup.vue'
import
PreBackPopup
from
'@/components/PreStudy/PreBackPopup.vue'
import
{
prelearnH5Url
}
from
'@/env.js'
export
default
{
export
default
{
name
:
'PrelearnBridge'
,
name
:
'PrelearnBridge'
,
...
@@ -138,8 +139,7 @@ export default {
...
@@ -138,8 +139,7 @@ export default {
},
},
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
const
defaultUrl
=
'https://single-pages.test.glsx.com.cn/prelearning.html'
this
.
webviewUrl
=
prelearnH5Url
this
.
webviewUrl
=
options
.
url
?
decodeURIComponent
(
options
.
url
)
:
defaultUrl
if
(
options
.
prelearnData
)
{
if
(
options
.
prelearnData
)
{
try
{
try
{
const
prelearnData
=
JSON
.
parse
(
decodeURIComponent
(
options
.
prelearnData
))
const
prelearnData
=
JSON
.
parse
(
decodeURIComponent
(
options
.
prelearnData
))
...
...
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