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 d3fb0471
authored
Jul 03, 2026
by
岑成威
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'hotfix_v5.8.3.2' of 192.168.3.233:glsx/gl_tape into hotfix_v5.8.3.2
2 parents
f9ecc239
a4ee5825
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
459 additions
and
20 deletions
components/Entrance.vue
components/HomeFrame/components/CustomerSide/ListSkeleton.vue
components/HomeFrame/components/CustomerSide/index.vue
components/HomeFrame/index.vue
pages/boutique/components/CouponPop.vue
pages/boutique/invitation.vue
pages/boutique/tool/components/CreateOrder.vue
pages/boutique/tool/components/DefeatOrder.vue
pages/common/customerPages/addFiles.vue
pages/common/customerPages/detailFiles.vue
components/Entrance.vue
View file @
d3fb047
...
@@ -218,7 +218,6 @@ export default {
...
@@ -218,7 +218,6 @@ export default {
page
:
'/pages/common/serviceDetail/index'
,
page
:
'/pages/common/serviceDetail/index'
,
eventCode
:
'app_service_center'
,
eventCode
:
'app_service_center'
,
sceneType
:
[
1
],
sceneType
:
[
1
],
showOnActivityTab
:
true
,
pageDirect
:
true
,
pageDirect
:
true
,
noInterception
:
true
noInterception
:
true
},
},
...
...
components/HomeFrame/components/CustomerSide/ListSkeleton.vue
0 → 100644
View file @
d3fb047
<
template
>
<view
class=
"list-skeleton"
>
<view
v-for=
"groupIndex in groupCount"
:key=
"'skeleton-group-' + groupIndex"
class=
"list-skeleton__group"
>
<view
class=
"list-skeleton__count"
>
<view
class=
"list-skeleton__block list-skeleton__count-left"
></view>
<view
class=
"list-skeleton__block list-skeleton__count-right"
></view>
</view>
<view
v-for=
"itemIndex in itemCount"
:key=
"'skeleton-item-' + groupIndex + '-' + itemIndex"
class=
"list-skeleton__item"
>
<view
class=
"list-skeleton__block list-skeleton__avatar"
></view>
<view
class=
"list-skeleton__body"
>
<view
class=
"list-skeleton__block list-skeleton__line list-skeleton__line--name"
></view>
<view
class=
"list-skeleton__block list-skeleton__line list-skeleton__line--meta"
></view>
<view
class=
"list-skeleton__block list-skeleton__line list-skeleton__line--group"
></view>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
name
:
'ListSkeleton'
,
props
:
{
groupCount
:
{
type
:
Number
,
default
:
2
},
itemCount
:
{
type
:
Number
,
default
:
2
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
$
card-shadow-space
:
4px
;
$
content-h-gap
:
12px
;
$
item-side-margin
:
$
content-h-gap
-
$
card-shadow-space
;
@keyframes
list-skeleton-shimmer
{
0
%
{
background-position
:
200%
0
;
}
100
%
{
background-position
:
-200%
0
;
}
}
.list-skeleton
{
&__group
{
margin-bottom
:
8px
;
&:last-child
{
margin-bottom
:
0
;
}
}
&
__block
{
border-radius
:
4px
;
background
:
linear-gradient
(
90deg
,
#F0F2F5
25%
,
#E4E8ED
50%
,
#F0F2F5
75%
);
background-size
:
200%
100%
;
animation
:
list-skeleton-shimmer
1.4s
ease-in-out
infinite
;
}
&
__count
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
padding
:
8px
12px
;
margin
:
0
$
item-side-margin
8px
;
border-radius
:
10px
;
background
:
rgba
(
44
,
102
,
247
,
0.03
);
box-sizing
:
border-box
;
min-height
:
32px
;
}
&
__count-left
{
width
:
120px
;
height
:
14px
;
}
&
__count-right
{
width
:
56px
;
height
:
14px
;
}
&
__item
{
display
:
flex
;
align-items
:
flex-start
;
gap
:
8px
;
padding
:
10px
12px
;
margin
:
0
$
item-side-margin
8px
;
background
:
#FFFFFF
;
border-radius
:
8px
;
box-shadow
:
0
2px
4px
rgba
(
44
,
102
,
247
,
0.06
);
box-sizing
:
border-box
;
}
&
__avatar
{
width
:
32px
;
height
:
32px
;
border-radius
:
50%
;
flex-shrink
:
0
;
}
&
__body
{
flex
:
1
;
min-width
:
0
;
display
:
flex
;
flex-direction
:
column
;
gap
:
8px
;
padding-top
:
2px
;
}
&
__line
{
height
:
14px
;
&--name
{
width
:
72%
;
}
&
--meta
{
width
:
55%
;
}
&
--group
{
width
:
40%
;
}
}
}
</
style
>
components/HomeFrame/components/CustomerSide/index.vue
View file @
d3fb047
<
template
>
<
template
>
<view
:class=
"['container-right',
{ 'container-right--page': type === 'in' }]">
<view
:class=
"['container-right',
{ 'container-right--page': type === 'in' }]">
<view
class=
"customer-header"
>
<view
:class=
"['customer-header',
{ 'customer-header--gradient': enableHeaderGradient }]"
:style="enableHeaderGradient ? headerStyle : undefined"
>
<!-- 左 -->
<!-- 左 -->
<view
class=
"header-left"
>
<view
class=
"header-left"
>
<image
<image
v-if=
"showHeaderIcon"
class=
"header-left-icon"
class=
"header-left-icon"
:src=
"require('@/assets/images/common/icon-file-custom.png')"
:src=
"require('@/assets/images/common/icon-file-custom.png')"
mode=
"aspectFit"
mode=
"aspectFit"
...
@@ -28,6 +32,19 @@
...
@@ -28,6 +32,19 @@
</view>
</view>
<scroll-view
class=
"customer-list"
scroll-y
show-scrollbar=
"false"
>
<scroll-view
class=
"customer-list"
scroll-y
show-scrollbar=
"false"
>
<view
class=
"customer-list-inner"
>
<view
class=
"customer-list-inner"
>
<!-- 加载骨架屏 -->
<ListSkeleton
v-if=
"loading"
/>
<!-- 空状态 -->
<view
v-else-if=
"isEmpty"
class=
"customer-empty"
>
<image
class=
"customer-empty-icon"
:src=
"require('@/assets/images/common/noData.webp')"
mode=
"aspectFit"
/>
<text
class=
"customer-empty-text"
>
暂无客户档案
</text>
</view>
<!-- 客户列表 -->
<template
v-else
>
<view
<view
v-for=
"group in customerProfile"
v-for=
"group in customerProfile"
:key=
"group.date"
:key=
"group.date"
...
@@ -90,14 +107,20 @@
...
@@ -90,14 +107,20 @@
</view>
</view>
</view>
</view>
</view>
</view>
</template>
</view>
</view>
</scroll-view>
</scroll-view>
</view>
</view>
</template>
</template>
<
script
>
<
script
>
import
ListSkeleton
from
'./ListSkeleton.vue'
export
default
{
export
default
{
name
:
'CustomerSide'
,
name
:
'CustomerSide'
,
components
:
{
ListSkeleton
},
props
:
{
props
:
{
type
:
{
type
:
{
type
:
String
,
type
:
String
,
...
@@ -106,6 +129,45 @@ export default {
...
@@ -106,6 +129,45 @@ export default {
customerProfile
:
{
customerProfile
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[]
},
loading
:
{
type
:
Boolean
,
default
:
false
},
showHeaderIcon
:
{
type
:
Boolean
,
default
:
true
},
enableHeaderGradient
:
{
type
:
Boolean
,
default
:
false
},
headerGradient
:
{
type
:
Object
,
default
:
null
}
},
computed
:
{
isEmpty
()
{
if
(
!
this
.
customerProfile
.
length
)
return
true
return
!
this
.
customerProfile
.
some
(
group
=>
(
group
.
customerProfileInfoDTOS
||
[]).
length
>
0
)
},
headerStyle
()
{
if
(
!
this
.
enableHeaderGradient
)
return
{}
const
{
afterGradient
=
'linear-gradient(0deg, #94c2ff00 0%, #5294ff 100%)'
,
beforeGradient
=
'linear-gradient(-44.4deg, #94c2ff00 0%, #5294ff 100%)'
,
afterOpacity
=
0.15
,
beforeOpacity
=
0.6
}
=
this
.
headerGradient
||
{}
return
{
'--header-gradient-after'
:
afterGradient
,
'--header-gradient-before'
:
beforeGradient
,
'--header-gradient-after-opacity'
:
afterOpacity
,
'--header-gradient-before-opacity'
:
beforeOpacity
}
}
}
},
},
methods
:
{
methods
:
{
...
@@ -190,6 +252,10 @@ export default {
...
@@ -190,6 +252,10 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
$
card-shadow-space
:
4px
;
$
content-h-gap
:
12px
;
$
item-side-margin
:
$
content-h-gap
-
$
card-shadow-space
;
.container-right
{
.container-right
{
flex
:
1
;
flex
:
1
;
min-width
:
0
;
min-width
:
0
;
...
@@ -210,9 +276,46 @@ export default {
...
@@ -210,9 +276,46 @@ export default {
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
padding
:
toRpx
(
8
)
0
toRpx
(
28
)
0
;
padding
:
toRpx
(
36
)
12px
toRpx
(
28
)
;
border-bottom
:
1px
solid
#F5F7FA
;
border-bottom
:
1px
solid
#F5F7FA
;
margin-top
:
toRpx
(
28
);
&--gradient
{
position
:
relative
;
&::after
{
content
:
''
;
position
:
absolute
;
left
:
0
;
top
:
0
;
z-index
:
0
;
width
:
100%
;
height
:
100%
;
background
:
var
(
--header-gradient-after
,
linear-gradient
(
0deg
,
#94c2ff00
0%
,
#5294ff
100%
));
opacity
:
var
(
--header-gradient-after-opacity
,
0.15
);
pointer-events
:
none
;
}
&
::before
{
content
:
''
;
position
:
absolute
;
left
:
toMinusRpx
(
20
);
top
:
toMinusRpx
(
28
);
z-index
:
0
;
width
:
toRpx
(
136
);
height
:
toRpx
(
136
);
opacity
:
var
(
--header-gradient-before-opacity
,
0.6
);
background
:
var
(
--header-gradient-before
,
linear-gradient
(
-44.4deg
,
#94c2ff00
0%
,
#5294ff
100%
));
filter
:
blur
(
toRpx
(
24
));
pointer-events
:
none
;
}
.header-left
,
.header-right
{
position
:
relative
;
z-index
:
1
;
}
}
.header-left
{
.header-left
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -241,7 +344,7 @@ export default {
...
@@ -241,7 +344,7 @@ export default {
height
:
32px
;
height
:
32px
;
border-radius
:
8px
;
border-radius
:
8px
;
border
:
1px
solid
rgba
(
44
,
102
,
247
,
0.10
);
border
:
1px
solid
rgba
(
44
,
102
,
247
,
0.10
);
background
-color
:
#F2F2F2
;
background
:
rgba
(
44
,
102
,
247
,
0.05
)
;
.header-right-icon
{
.header-right-icon
{
width
:
16px
;
width
:
16px
;
...
@@ -272,8 +375,32 @@ export default {
...
@@ -272,8 +375,32 @@ export default {
}
}
.customer-list-inner
{
.customer-list-inner
{
padding
:
12px
4px
4px
;
//
阴影绘制空间放在
inner,避免
scroll-view
裁剪左右
box-shadow
padding
:
12px
$
card-shadow-space
calc
(
4px
+
#{$
card-shadow-space
}
);
box-sizing
:
border-box
;
box-sizing
:
border-box
;
min-height
:
100
%;
}
.customer-empty
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
padding
:
48px
12px
;
min-height
:
200px
;
box-sizing
:
border-box
;
.customer-empty-icon
{
width
:
120px
;
height
:
120px
;
}
.customer-empty-text
{
margin-top
:
8px
;
font-size
:
14px
;
line-height
:
20px
;
color
:
#999EA8
;
}
}
}
.customer-day-group
{
.customer-day-group
{
...
@@ -289,7 +416,7 @@ export default {
...
@@ -289,7 +416,7 @@ export default {
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
padding
:
8px
12px
;
padding
:
8px
12px
;
margin
-bottom
:
8px
;
margin
:
0
$
item-side-margin
8px
;
border-radius
:
10px
;
border-radius
:
10px
;
background
:
rgba
(
44
,
102
,
247
,
0.05
);
background
:
rgba
(
44
,
102
,
247
,
0.05
);
box-sizing
:
border-box
;
box-sizing
:
border-box
;
...
@@ -345,7 +472,7 @@ export default {
...
@@ -345,7 +472,7 @@ export default {
align-items
:
flex-start
;
align-items
:
flex-start
;
gap
:
8px
;
gap
:
8px
;
padding
:
10px
12px
;
padding
:
10px
12px
;
margin
-bottom
:
8px
;
margin
:
0
$
item-side-margin
8px
;
background
:
#FFFFFF
;
background
:
#FFFFFF
;
border-radius
:
8px
;
border-radius
:
8px
;
box-shadow
:
0
2px
4px
rgba
(
44
,
102
,
247
,
0.10
);
box-shadow
:
0
2px
4px
rgba
(
44
,
102
,
247
,
0.10
);
...
...
components/HomeFrame/index.vue
View file @
d3fb047
...
@@ -94,10 +94,15 @@
...
@@ -94,10 +94,15 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"content-right box-class scene1-box-shadow"
>
<view
class=
"content-right box-class scene1-box-shadow content-right-customer"
>
<view
class=
"common-title"
>
服务中心
</view>
<view
class=
"content-right-customer-inner"
>
<view
class=
"content-box"
>
<CustomerSide
<MessageIndex
class=
"message-box"
ref=
"messageRef"
/>
:customerProfile=
"customerProfileList"
:loading=
"customerProfileLoading"
enable-header-gradient
:showHeaderIcon=
"false"
:headerGradient=
"customerHeaderGradient"
/>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -110,7 +115,10 @@
...
@@ -110,7 +115,10 @@
@
entranceClick=
"entranceClick"
@
entranceClick=
"entranceClick"
/>
/>
<view
class=
"line"
></view>
<view
class=
"line"
></view>
<CustomerSide
:customerProfile=
"customerProfileList"
/>
<CustomerSide
:customerProfile=
"customerProfileList"
:loading=
"customerProfileLoading"
/>
</view>
</view>
</view>
</view>
<!-- 挖掘潜客机会 -->
<!-- 挖掘潜客机会 -->
...
@@ -386,7 +394,14 @@ export default {
...
@@ -386,7 +394,14 @@ export default {
}),
}),
activityProductList
:
[],
activityProductList
:
[],
prelearnData
:
{},
prelearnData
:
{},
customerProfileList
:
[]
customerProfileList
:
[],
customerProfileLoading
:
true
,
customerHeaderGradient
:
Object
.
freeze
({
afterGradient
:
'linear-gradient(0deg, #94c2ff00 0%, #5294ff 100%)'
,
beforeGradient
:
'linear-gradient(-44.4deg, #94c2ff00 0%, #5294ff 100%)'
,
afterOpacity
:
0.15
,
beforeOpacity
:
0.6
})
}
}
},
},
beforeDestroy
()
{
beforeDestroy
()
{
...
@@ -760,7 +775,8 @@ export default {
...
@@ -760,7 +775,8 @@ export default {
}
}
},
},
/**
/**
* 查询当前进行中的营销活动商品列表
* @function 营销活动:
* @desc 查询当前进行中的营销活动商品列表
*/
*/
async
getActivityProductList
()
{
async
getActivityProductList
()
{
const
{
shopMerchantId
:
merchantId
}
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
const
{
shopMerchantId
:
merchantId
}
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
...
@@ -783,22 +799,27 @@ export default {
...
@@ -783,22 +799,27 @@ export default {
},
},
/**
/**
* 查询客户建档分页查询-月按天分组
* @function 客户档案:
* @desc 查询客户建档分页查询-月按天分组
*/
*/
async
getCustomerProfileGroupInfo
()
{
async
getCustomerProfileGroupInfo
()
{
const
{
shopMerchantId
:
merchantId
}
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
const
{
shopMerchantId
:
merchantId
}
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
if
(
!
merchantId
)
{
if
(
!
merchantId
)
{
this
.
customerProfileList
=
[]
this
.
customerProfileList
=
[]
this
.
customerProfileLoading
=
false
return
return
}
}
this
.
customerProfileLoading
=
true
try
{
try
{
const
res
=
await
uni
.
$api
.
customerApi
.
getCustomerProfileGroupInfoAPI
({
merchantId
})
const
res
=
await
uni
.
$api
.
customerApi
.
getCustomerProfileGroupInfoAPI
({
merchantId
})
console
.
log
(
'getCustomerProfile
ListInfo***'
)
console
.
log
(
'getCustomerProfile
GroupInfo***'
,
res
)
this
.
customerProfileList
=
Array
.
isArray
(
res
)
?
res
:
[]
this
.
customerProfileList
=
Array
.
isArray
(
res
)
?
res
:
[]
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
error
(
'查询客户建档分组信息失败:'
,
error
)
console
.
error
(
'查询客户建档分组信息失败:'
,
error
)
this
.
customerProfileList
=
[]
this
.
customerProfileList
=
[]
}
finally
{
this
.
customerProfileLoading
=
false
}
}
},
},
/**
/**
...
@@ -1404,6 +1425,35 @@ export default {
...
@@ -1404,6 +1425,35 @@ export default {
flex
:
1
;
flex
:
1
;
min-height
:
0
;
min-height
:
0
;
//
transform
:
translateY
(
toMinusRpx
(
32
));
//
transform
:
translateY
(
toMinusRpx
(
32
));
.content-left
{
flex
:
1
1
0
;
min-width
:
0
;
width
:
auto
;
}
.content-right-customer
{
flex
:
0
1
toRpx
(
720
);
min-width
:
toRpx
(
320
);
max-width
:
40%
;
width
:
auto
;
height
:
calc
(
100%
-
16px
);
min-height
:
0
;
box-sizing
:
border-box
;
padding
:
0
0
16px
;
display
:
flex
;
flex-direction
:
column
;
overflow
:
hidden
;
.content-right-customer-inner
{
margin-top
:
-10px
;
}
&
-inner
{
flex
:
1
;
min-height
:
0
;
overflow
:
hidden
;
}
}
.tab-container
{
.tab-container
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
...
...
pages/boutique/components/CouponPop.vue
View file @
d3fb047
...
@@ -420,6 +420,17 @@ export default {
...
@@ -420,6 +420,17 @@ export default {
this
.
pageParams
.
customerQr
=
''
this
.
pageParams
.
customerQr
=
''
this
.
$refs
.
couponPopup
.
open
()
this
.
$refs
.
couponPopup
.
open
()
this
.
customerType
=
customerType
this
.
customerType
=
customerType
if
(
customerInfo
.
inviteRecordId
)
{
this
.
customerInfo
=
customerInfo
this
.
pageParams
.
carInfo
=
{
carChildsBrandId
:
customerInfo
.
carChildsBrandId
,
carChildsBrandName
:
customerInfo
.
carChildsBrandName
,
carBrandId
:
customerInfo
.
carBrandId
,
carBrand
:
customerInfo
.
carBrand
,
id
:
customerInfo
.
carSeriesId
,
name
:
customerInfo
.
carSeriesName
}
}
if
(
customerInfo
.
customerCouponId
)
{
if
(
customerInfo
.
customerCouponId
)
{
try
{
try
{
uni
.
showLoading
({
uni
.
showLoading
({
...
@@ -443,8 +454,6 @@ export default {
...
@@ -443,8 +454,6 @@ export default {
if
(
data
)
{
if
(
data
)
{
this
.
pageParams
.
customerCouponId
=
customerInfo
.
customerCouponId
this
.
pageParams
.
customerCouponId
=
customerInfo
.
customerCouponId
this
.
pageParams
.
customerQr
=
data
this
.
pageParams
.
customerQr
=
data
if
(
customerInfo
.
inviteRecordId
)
this
.
customerInfo
=
customerInfo
}
else
throw
'生成小程序码失败,请重试!'
}
else
throw
'生成小程序码失败,请重试!'
}
else
throw
message
}
else
throw
message
...
...
pages/boutique/invitation.vue
View file @
d3fb047
...
@@ -245,6 +245,7 @@ export default {
...
@@ -245,6 +245,7 @@ export default {
this
.
$refs
.
invitationCanvas
.
clearBoard
()
this
.
$refs
.
invitationCanvas
.
clearBoard
()
},
},
openDetail
(
e
)
{
openDetail
(
e
)
{
console
.
log
(
'openDetail**e**'
,
e
);
this
.
couponPopupRef
.
open
(
0
,
{
this
.
couponPopupRef
.
open
(
0
,
{
...
e
,
...
e
,
phoneNumber
:
e
.
customerPhone
,
phoneNumber
:
e
.
customerPhone
,
...
...
pages/boutique/tool/components/CreateOrder.vue
View file @
d3fb047
...
@@ -245,6 +245,11 @@ export default {
...
@@ -245,6 +245,11 @@ export default {
},
},
useMinPriceApproval
()
{
useMinPriceApproval
()
{
return
shouldUseMinPriceApproval
(
this
.
orderObj
.
orderTypeCode
)
return
shouldUseMinPriceApproval
(
this
.
orderObj
.
orderTypeCode
)
},
// 轻改场景 + 新建工单:隐藏场景名称表单项(仅展示层)
hideSceneNameField
()
{
const
{
sceneType
}
=
this
.
userInfo
||
{}
return
sceneType
==
1
&&
this
.
orderCreateType
===
'createWithPay'
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -266,6 +271,9 @@ export default {
...
@@ -266,6 +271,9 @@ export default {
}
else
{
}
else
{
item
.
hidden
=
item
.
_originHidden
item
.
hidden
=
item
.
_originHidden
}
}
if
(
item
.
value
===
'baseSceneCode'
&&
this
.
hideSceneNameField
)
{
item
.
hidden
=
true
}
})
})
})
})
this
.
formList
=
list
this
.
formList
=
list
...
...
pages/boutique/tool/components/DefeatOrder.vue
View file @
d3fb047
...
@@ -291,6 +291,11 @@ export default {
...
@@ -291,6 +291,11 @@ export default {
showPayTips
()
{
showPayTips
()
{
if
(
this
.
orderObj
.
payeeType
==
0
&&
this
.
orderObj
.
selectPayType
==
7
)
return
true
if
(
this
.
orderObj
.
payeeType
==
0
&&
this
.
orderObj
.
selectPayType
==
7
)
return
true
else
return
false
else
return
false
},
// 轻改场景:隐藏场景名称表单项(仅展示层)
hideSceneNameField
()
{
const
{
sceneType
}
=
this
.
userInfo
||
{}
return
sceneType
==
1
}
}
},
},
onload
(
options
)
{
onload
(
options
)
{
...
@@ -332,6 +337,9 @@ export default {
...
@@ -332,6 +337,9 @@ export default {
}
else
{
}
else
{
item
.
hidden
=
item
.
_originHidden
item
.
hidden
=
item
.
_originHidden
}
}
if
(
item
.
value
===
'baseSceneCode'
&&
this
.
hideSceneNameField
)
{
item
.
hidden
=
true
}
})
})
})
})
this
.
formList
=
list
this
.
formList
=
list
...
...
pages/common/customerPages/addFiles.vue
View file @
d3fb047
...
@@ -50,6 +50,14 @@
...
@@ -50,6 +50,14 @@
<
/view
>
<
/view
>
<
/picker
>
<
/picker
>
<
/template
>
<
/template
>
<
template
v
-
else
-
if
=
"i.type == 'radio'"
>
<
radio
-
group
class
=
"radio-group flex"
@
change
=
"radioChange($event, i)"
>
<
label
class
=
"radio-item flex"
v
-
for
=
"item in i.radioList"
:
key
=
"item.value"
>
<
radio
style
=
"transform: scale(0.7)"
:
value
=
"item.value"
:
checked
=
"customerInfo[i.key] == item.value"
/>
<
view
class
=
"radio-name"
>
{{
item
.
name
}}
<
/view
>
<
/label
>
<
/radio-group
>
<
/template
>
<
template
v
-
else
>
<
template
v
-
else
>
<
view
<
view
:
class
=
"
[
'select flex'
,
{
placeholderStyle
:
!
customerInfo
[
i
.
valueKey
]
}
]
"
:
class
=
"
[
'select flex'
,
{
placeholderStyle
:
!
customerInfo
[
i
.
valueKey
]
}
]
"
...
@@ -104,6 +112,14 @@
...
@@ -104,6 +112,14 @@
<
/view
>
<
/view
>
<
/picker
>
<
/picker
>
<
/template
>
<
/template
>
<
template
v
-
else
-
if
=
"i.type == 'radio'"
>
<
radio
-
group
class
=
"radio-group flex"
@
change
=
"radioChange($event, i)"
>
<
label
class
=
"radio-item flex"
v
-
for
=
"item in i.radioList"
:
key
=
"item.value"
>
<
radio
style
=
"transform: scale(0.7)"
:
value
=
"item.value"
:
checked
=
"customerInfo[i.key] == item.value"
/>
<
view
class
=
"radio-name"
>
{{
item
.
name
}}
<
/view
>
<
/label
>
<
/radio-group
>
<
/template
>
<
template
v
-
else
>
<
template
v
-
else
>
<
view
<
view
:
class
=
"
[
'select flex'
,
{
placeholderStyle
:
!
customerInfo
[
i
.
valueKey
]
}
]
"
:
class
=
"
[
'select flex'
,
{
placeholderStyle
:
!
customerInfo
[
i
.
valueKey
]
}
]
"
...
@@ -207,6 +223,17 @@ const phoneRex = /^[1]([3-9])[0-9]{9}$/,
...
@@ -207,6 +223,17 @@ const phoneRex = /^[1]([3-9])[0-9]{9}$/,
}
}
],
],
default_optionalForm
=
[{
default_optionalForm
=
[{
label
:
'性别'
,
valueKey
:
'customerSex'
,
key
:
'customerSex'
,
type
:
'radio'
,
current
:
'1'
,
radioList
:
[
{
value
:
'1'
,
name
:
'男'
}
,
{
value
:
'2'
,
name
:
'女'
}
]
}
,
{
label
:
'车架号'
,
label
:
'车架号'
,
valueKey
:
'standNo'
,
valueKey
:
'standNo'
,
key
:
'standNo'
,
key
:
'standNo'
,
...
@@ -288,6 +315,7 @@ export default {
...
@@ -288,6 +315,7 @@ export default {
this
.
customerInfo
=
{
this
.
customerInfo
=
{
customerName
:
''
,
customerName
:
''
,
customerPhone
:
''
,
customerPhone
:
''
,
customerSex
:
'1'
,
carTypeName
:
''
,
carTypeName
:
''
,
carChildsBrandId
:
''
,
carChildsBrandId
:
''
,
carChildsBrandName
:
''
,
carChildsBrandName
:
''
,
...
@@ -312,6 +340,9 @@ export default {
...
@@ -312,6 +340,9 @@ export default {
if
(
res
.
inviteDate
)
res
.
inviteDate
=
dayjs
(
res
.
inviteDate
).
format
(
"YYYY-MM-DD"
)
if
(
res
.
inviteDate
)
res
.
inviteDate
=
dayjs
(
res
.
inviteDate
).
format
(
"YYYY-MM-DD"
)
if
(
res
.
filingDate
)
res
.
filingDate
=
dayjs
(
res
.
filingDate
).
format
(
"YYYY-MM-DD"
)
if
(
res
.
filingDate
)
res
.
filingDate
=
dayjs
(
res
.
filingDate
).
format
(
"YYYY-MM-DD"
)
this
.
customerInfo
=
res
this
.
customerInfo
=
res
if
(
!
this
.
customerInfo
.
customerSex
)
{
this
.
customerInfo
.
customerSex
=
'1'
}
if
(
!
this
.
customerInfo
.
filingDate
)
{
if
(
!
this
.
customerInfo
.
filingDate
)
{
this
.
customerInfo
.
filingDate
=
dayjs
().
format
(
'YYYY-MM-DD'
)
this
.
customerInfo
.
filingDate
=
dayjs
().
format
(
'YYYY-MM-DD'
)
}
}
...
@@ -367,6 +398,9 @@ export default {
...
@@ -367,6 +398,9 @@ export default {
getDatePickerEnd
(
field
)
{
getDatePickerEnd
(
field
)
{
return
field
.
dateUnlimited
?
'2099-12-31'
:
this
.
endDate
return
field
.
dateUnlimited
?
'2099-12-31'
:
this
.
endDate
}
,
}
,
radioChange
(
e
,
field
)
{
this
.
customerInfo
[
field
.
key
]
=
e
.
detail
.
value
}
,
bindDateChange
(
e
,
valueKey
)
{
bindDateChange
(
e
,
valueKey
)
{
const
value
=
e
.
detail
.
value
const
value
=
e
.
detail
.
value
this
.
customerInfo
[
valueKey
]
=
value
this
.
customerInfo
[
valueKey
]
=
value
...
@@ -503,6 +537,7 @@ export default {
...
@@ -503,6 +537,7 @@ export default {
baseSceneCode
:
'100101'
,
baseSceneCode
:
'100101'
,
customerName
:
params
.
customerName
,
customerName
:
params
.
customerName
,
customerPhone
:
params
.
customerPhone
,
customerPhone
:
params
.
customerPhone
,
customerSex
:
params
.
customerSex
,
carBrand
:
params
.
carBrand
,
carBrand
:
params
.
carBrand
,
carBrandId
:
params
.
carBrandId
,
carBrandId
:
params
.
carBrandId
,
carChildsBrandId
:
params
.
carTypeId
,
carChildsBrandId
:
params
.
carTypeId
,
...
@@ -707,6 +742,19 @@ export default {
...
@@ -707,6 +742,19 @@ export default {
.
error
{
.
error
{
border
:
toRpx
(
2
)
solid
#
f24724
!
important
;
border
:
toRpx
(
2
)
solid
#
f24724
!
important
;
}
}
.
radio
-
group
{
width
:
toRpx
(
738
);
height
:
toRpx
(
76
);
align
-
items
:
center
;
gap
:
toRpx
(
48
);
}
.
radio
-
item
{
align
-
items
:
center
;
}
.
radio
-
name
{
color
:
#
333333
;
font
-
size
:
toRpx
(
28
);
}
}
}
.
btns
{
.
btns
{
justify
-
content
:
center
;
justify
-
content
:
center
;
...
...
pages/common/customerPages/detailFiles.vue
View file @
d3fb047
...
@@ -77,6 +77,14 @@
...
@@ -77,6 +77,14 @@
</view>
</view>
</picker>
</picker>
</
template
>
</
template
>
<
template
v-else-if=
"i.type == 'radio'"
>
<radio-group
class=
"radio-group flex"
@
change=
"radioChange($event, i)"
>
<label
class=
"radio-item flex"
v-for=
"item in i.radioList"
:key=
"item.value"
>
<radio
style=
"transform: scale(0.7)"
:value=
"item.value"
:checked=
"customerInfo[i.key] == item.value"
/>
<view
class=
"radio-name"
>
{{
item
.
name
}}
</view>
</label>
</radio-group>
</
template
>
<
template
v-else
>
<
template
v-else
>
<view
<view
:class=
"['select flex',
{ placeholderStyle: !customerInfo[i.valueKey] }]"
:class=
"['select flex',
{ placeholderStyle: !customerInfo[i.valueKey] }]"
...
@@ -126,6 +134,14 @@
...
@@ -126,6 +134,14 @@
</view>
</view>
</picker>
</picker>
</
template
>
</
template
>
<
template
v-else-if=
"i.type == 'radio'"
>
<radio-group
class=
"radio-group flex"
@
change=
"radioChange($event, i)"
>
<label
class=
"radio-item flex"
v-for=
"item in i.radioList"
:key=
"item.value"
>
<radio
style=
"transform: scale(0.7)"
:value=
"item.value"
:checked=
"customerInfo[i.key] == item.value"
/>
<view
class=
"radio-name"
>
{{
item
.
name
}}
</view>
</label>
</radio-group>
</
template
>
<
template
v-else
>
<
template
v-else
>
<view
<view
:class=
"['select flex',
{ placeholderStyle: !customerInfo[i.valueKey] }]"
:class=
"['select flex',
{ placeholderStyle: !customerInfo[i.valueKey] }]"
...
@@ -282,8 +298,19 @@ const phoneRex = /^[1]([3-9])[0-9]{9}$/,
...
@@ -282,8 +298,19 @@ const phoneRex = /^[1]([3-9])[0-9]{9}$/,
type
:
'readonly'
,
type
:
'readonly'
,
required
:
true
,
required
:
true
,
merchantNameKey
:
'merchantName'
merchantNameKey
:
'merchantName'
},{
label
:
'性别'
,
valueKey
:
'customerSex'
,
key
:
'customerSex'
,
type
:
'radio'
,
current
:
'1'
,
radioList
:
[
{
value
:
'1'
,
name
:
'男'
},
{
value
:
'2'
,
name
:
'女'
}
]
}],
}],
default_optionalForm
=
[{
default_optionalForm
=
[
{
label
:
'车架号'
,
label
:
'车架号'
,
valueKey
:
'standNo'
,
valueKey
:
'standNo'
,
key
:
'standNo'
,
key
:
'standNo'
,
...
@@ -512,6 +539,7 @@ export default {
...
@@ -512,6 +539,7 @@ export default {
const
requestParams
=
{
const
requestParams
=
{
id
:
this
.
customerInfo
.
id
,
id
:
this
.
customerInfo
.
id
,
customerName
:
this
.
customerInfo
.
customerName
,
customerName
:
this
.
customerInfo
.
customerName
,
customerSex
:
this
.
customerInfo
.
customerSex
,
carBrand
:
this
.
customerInfo
.
carBrand
,
carBrand
:
this
.
customerInfo
.
carBrand
,
carBrandId
:
this
.
customerInfo
.
carBrandId
,
carBrandId
:
this
.
customerInfo
.
carBrandId
,
carChildsBrandName
:
this
.
customerInfo
.
carChildsBrandName
,
carChildsBrandName
:
this
.
customerInfo
.
carChildsBrandName
,
...
@@ -676,6 +704,7 @@ export default {
...
@@ -676,6 +704,7 @@ export default {
this
.
customerInfo
=
{
this
.
customerInfo
=
{
customerName
:
''
,
customerName
:
''
,
customerPhone
:
''
,
customerPhone
:
''
,
customerSex
:
'1'
,
carBrand
:
''
,
carBrand
:
''
,
carBrandId
:
''
,
carBrandId
:
''
,
carSeriesName
:
''
,
carSeriesName
:
''
,
...
@@ -709,6 +738,9 @@ export default {
...
@@ -709,6 +738,9 @@ export default {
if
(
res
.
inviteDate
)
res
.
inviteDate
=
dayjs
(
res
.
inviteDate
).
format
(
"YYYY-MM-DD"
)
if
(
res
.
inviteDate
)
res
.
inviteDate
=
dayjs
(
res
.
inviteDate
).
format
(
"YYYY-MM-DD"
)
// 合并而非整对象替换,保留 initForm 中已声明的响应式字段(如 contact_name)
// 合并而非整对象替换,保留 initForm 中已声明的响应式字段(如 contact_name)
Object
.
assign
(
this
.
customerInfo
,
res
)
Object
.
assign
(
this
.
customerInfo
,
res
)
if
(
!
this
.
customerInfo
.
customerSex
)
{
this
.
customerInfo
.
customerSex
=
'1'
}
if
(
!
this
.
customerInfo
.
createdDate
)
{
if
(
!
this
.
customerInfo
.
createdDate
)
{
this
.
customerInfo
.
createdDate
=
dayjs
().
format
(
'YYYY-MM-DD'
)
this
.
customerInfo
.
createdDate
=
dayjs
().
format
(
'YYYY-MM-DD'
)
}
}
...
@@ -855,6 +887,9 @@ export default {
...
@@ -855,6 +887,9 @@ export default {
this
.
syncInviteDateFromDelivery
()
this
.
syncInviteDateFromDelivery
()
}
}
},
},
radioChange
(
e
,
field
)
{
this
.
customerInfo
[
field
.
key
]
=
e
.
detail
.
value
},
inputBlur
(
e
,
val
)
{
inputBlur
(
e
,
val
)
{
const
standNoVal
=
this
.
customerInfo
.
standNo
const
standNoVal
=
this
.
customerInfo
.
standNo
if
(
val
.
key
===
'standNo'
&&
standNoVal
)
{
if
(
val
.
key
===
'standNo'
&&
standNoVal
)
{
...
@@ -1180,6 +1215,19 @@ export default {
...
@@ -1180,6 +1215,19 @@ export default {
.error
{
.error
{
border
:
toRpx
(
2
)
solid
#f24724
!important
;
border
:
toRpx
(
2
)
solid
#f24724
!important
;
}
}
.radio-group
{
width
:
toRpx
(
738
);
height
:
toRpx
(
76
);
align-items
:
center
;
gap
:
toRpx
(
48
);
}
.radio-item
{
align-items
:
center
;
}
.radio-name
{
color
:
#333333
;
font-size
:
toRpx
(
28
);
}
.input--readonly
{
.input--readonly
{
color
:
#666666
;
color
:
#666666
;
background
:
#f5f7fa
;
background
:
#f5f7fa
;
...
...
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