Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d004a2f9
authored
Jan 11, 2025
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
权益提单优化需求开发
1 parent
10c83f18
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
9 deletions
packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml
packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxss
packageEquity/pages/carEquity/components/ShadeTip/ShadeTip.js
packageEquity/pages/carEquity/components/ShadeTip/ShadeTip.wxml
packageEquity/pages/carEquity/components/ShadeTip/ShadeTip.wxss
packageEquity/pages/carEquity/components/constant/secondStepData.js
packageEquity/pages/carEquity/serviceInfo/serviceInfo.js
packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml
View file @
d004a2f
...
@@ -294,12 +294,12 @@
...
@@ -294,12 +294,12 @@
bind:delete="handleDeleteImg"
bind:delete="handleDeleteImg"
data-attr="invoice"
data-attr="invoice"
></van-uploader>
></van-uploader>
<view class="label">行驶证</view>
<view class="label">行驶证
或车辆合格证
</view>
<view class="flex">
<view class="flex">
<van-uploader
<van-uploader
class="driveFront"
class="driveFront"
file-list="{{ imgObj.driveFront }}"
file-list="{{ imgObj.driveFront }}"
upload-text="行驶证主页"
upload-text="行驶证主页
/车辆合格证
"
max-count="1"
max-count="1"
deletable
deletable
preview-size="var(--fontSize192)"
preview-size="var(--fontSize192)"
...
@@ -310,7 +310,7 @@
...
@@ -310,7 +310,7 @@
<van-uploader
<van-uploader
class="driveBack"
class="driveBack"
file-list="{{ imgObj.driveBack }}"
file-list="{{ imgObj.driveBack }}"
upload-text="行驶证副页"
upload-text="行驶证副页
/车辆合格证
"
max-count="1"
max-count="1"
deletable
deletable
preview-size="var(--fontSize192)"
preview-size="var(--fontSize192)"
...
...
packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxss
View file @
d004a2f
...
@@ -301,7 +301,7 @@
...
@@ -301,7 +301,7 @@
}
}
.upload .van-uploader__upload-text {
.upload .van-uploader__upload-text {
font-size: var(--fontSize2
2
) !important;
font-size: var(--fontSize2
0
) !important;
color: #9B9B9E !important;
color: #9B9B9E !important;
}
}
...
...
packageEquity/pages/carEquity/components/ShadeTip/ShadeTip.js
View file @
d004a2f
...
@@ -39,6 +39,8 @@ Component({
...
@@ -39,6 +39,8 @@ Component({
*/
*/
methods
:
{
methods
:
{
handleClick
()
{
handleClick
()
{
// 信息确认直接关闭弹窗
if
(
this
.
data
.
type
==
'warning'
)
return
this
.
triggerEvent
(
'close'
,
{
type
:
'warning'
})
this
.
triggerEvent
(
'click'
)
this
.
triggerEvent
(
'click'
)
},
},
handleClose
()
{
handleClose
()
{
...
...
packageEquity/pages/carEquity/components/ShadeTip/ShadeTip.wxml
View file @
d004a2f
...
@@ -3,8 +3,9 @@
...
@@ -3,8 +3,9 @@
<view class="bg" bindtap="handleShow" />
<view class="bg" bindtap="handleShow" />
<view class="content">
<view class="content">
<image wx:if="{{type == 'error'}}" class="icon" src="../../../image/icon-error.png" show-menu-by-longpress="{{true}}"></image>
<image wx:if="{{type == 'error'}}" class="icon" src="../../../image/icon-error.png" show-menu-by-longpress="{{true}}"></image>
<image wx:if="{{type == 'warning'}}" class="icon" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/order_warning.png" mode="" show-menu-by-longpress="{{true}}"/>
<image wx:else class="icon" src="../../../image/icon-success.png" show-menu-by-longpress="{{true}}"></image>
<image wx:else class="icon" src="../../../image/icon-success.png" show-menu-by-longpress="{{true}}"></image>
<view class="title">{{title}}</view>
<view class="title
{{type == 'warning' ? 'warning_title' : ''}}
">{{title}}</view>
<view class="tipTxt">{{tipTxt}}</view>
<view class="tipTxt">{{tipTxt}}</view>
<view class="btn" bindtap="handleClick">{{btnTxt}}</view>
<view class="btn" bindtap="handleClick">{{btnTxt}}</view>
</view>
</view>
...
...
packageEquity/pages/carEquity/components/ShadeTip/ShadeTip.wxss
View file @
d004a2f
...
@@ -49,6 +49,13 @@
...
@@ -49,6 +49,13 @@
color: #347BFF;
color: #347BFF;
}
}
.warning_title {
text-align: center;
font-weight: 600;
font-size: var(--fontSize48);
color: #292D33;
}
.tipTxt {
.tipTxt {
font-size: 14px;
font-size: 14px;
color: #9B9B9E;
color: #9B9B9E;
...
...
packageEquity/pages/carEquity/components/constant/secondStepData.js
View file @
d004a2f
...
@@ -582,7 +582,11 @@ const secondObj = {
...
@@ -582,7 +582,11 @@ const secondObj = {
name
:
'effectiveDate'
,
name
:
'effectiveDate'
,
type
:
'pickerTime'
,
type
:
'pickerTime'
,
start
:
Util
.
tsFormatTime
(
new
Date
(
new
Date
().
setDate
(
new
Date
(
new
Date
()).
getDate
()
+
1
)),
'Y-M-D'
),
start
:
Util
.
tsFormatTime
(
new
Date
(
new
Date
().
setDate
(
new
Date
(
new
Date
()).
getDate
()
+
1
)),
'Y-M-D'
),
haveArrow
:
true
haveArrow
:
true
,
isShowObj
:
{
attr
:
'allWarrantyFlag'
,
list
:
[
'0'
]
}
// .toLocaleDateString().replace('/','-')
// .toLocaleDateString().replace('/','-')
},
},
// {
// {
...
...
packageEquity/pages/carEquity/serviceInfo/serviceInfo.js
View file @
d004a2f
...
@@ -14,6 +14,12 @@ const errorObj = {
...
@@ -14,6 +14,12 @@ const errorObj = {
tipTxt
:
''
,
tipTxt
:
''
,
btnTxt
:
'重新提单'
btnTxt
:
'重新提单'
}
}
const
warningObj
=
{
type
:
'warning'
,
title
:
'信息确认'
,
tipTxt
:
''
,
btnTxt
:
'继续出单'
}
Page
({
Page
({
/**
/**
* 页面的初始数据
* 页面的初始数据
...
@@ -195,9 +201,12 @@ Page({
...
@@ -195,9 +201,12 @@ Page({
data
?.
goodInfoList
?.
forEach
(
val
=>
{
data
?.
goodInfoList
?.
forEach
(
val
=>
{
if
(
val
.
printType
==
2
&&
!
[
'YB0001'
,
'YB0002'
,
'YB0003'
].
includes
(
val
.
itemsCode
))
val
.
displacementPowerFlag
=
val
.
displacementPowerFlag
||
0
// 默认是选中排量
if
(
val
.
printType
==
2
&&
!
[
'YB0001'
,
'YB0002'
,
'YB0003'
].
includes
(
val
.
itemsCode
))
val
.
displacementPowerFlag
=
val
.
displacementPowerFlag
||
0
// 默认是选中排量
})
})
// 判断购买商品是否全部是延保allWarrantyFlag
const
allWarrantyFlag
=
data
?.
goodInfoList
?.
some
(
v
=>
v
.
printType
!=
2
)
this
.
setData
({
this
.
setData
({
serviceInfo
:
data
,
serviceInfo
:
data
,
[
'serviceInfo.attachmentList'
]:
data
?.
attachmentList
||
[],
[
'serviceInfo.attachmentList'
]:
data
?.
attachmentList
||
[],
[
'serviceInfo.allWarrantyFlag'
]:
!
allWarrantyFlag
?
1
:
0
,
// 0 显示生效日期 1不显示
step
:
data
.
mode
?
'second'
:
'first'
step
:
data
.
mode
?
'second'
:
'first'
})
})
this
.
dealTireObj
()
this
.
dealTireObj
()
...
@@ -304,6 +313,10 @@ Page({
...
@@ -304,6 +313,10 @@ Page({
// 0草稿,1提单
// 0草稿,1提单
params
.
operationType
=
typeObj
[
type
]
params
.
operationType
=
typeObj
[
type
]
params
.
addOnsFlag
=
serviceInfo
.
addOnsFlag
==
2
?
0
:
1
params
.
addOnsFlag
=
serviceInfo
.
addOnsFlag
==
2
?
0
:
1
if
(
params
?.
allWarrantyFlag
==
1
)
{
// 全部为延保商品 不传生效日期
delete
params
.
effectiveDate
}
delete
params
.
allWarrantyFlag
console
.
log
(
params
,
'调接口---'
)
console
.
log
(
params
,
'调接口---'
)
this
.
setData
({
this
.
setData
({
isAsk
:
true
isAsk
:
true
...
@@ -394,7 +407,7 @@ Page({
...
@@ -394,7 +407,7 @@ Page({
}
else
{
}
else
{
this
.
setData
({
this
.
setData
({
[
'conSecondObj.vin'
]:
serviceInfo
.
vin
,
[
'conSecondObj.vin'
]:
serviceInfo
.
vin
,
dialogObj
:
JSON
.
parse
(
JSON
.
stringify
(
errorObj
)),
dialogObj
:
res
?.
message
?.
includes
(
'该车架已经购买过'
)
?
JSON
.
parse
(
JSON
.
stringify
(
warningObj
))
:
JSON
.
parse
(
JSON
.
stringify
(
errorObj
)),
[
'dialogObj.tipTxt'
]:
res
.
message
,
[
'dialogObj.tipTxt'
]:
res
.
message
,
isDialogShow
:
true
,
isDialogShow
:
true
,
e
:
{}
e
:
{}
...
@@ -402,7 +415,7 @@ Page({
...
@@ -402,7 +415,7 @@ Page({
}
}
}
else
{
}
else
{
this
.
setData
({
this
.
setData
({
dialogObj
:
JSON
.
parse
(
JSON
.
stringify
(
errorObj
)),
dialogObj
:
res
?.
message
?.
includes
(
'该车架已经购买过'
)
?
JSON
.
parse
(
JSON
.
stringify
(
warningObj
))
:
JSON
.
parse
(
JSON
.
stringify
(
errorObj
)),
[
'dialogObj.tipTxt'
]:
res
.
message
,
[
'dialogObj.tipTxt'
]:
res
.
message
,
isDialogShow
:
true
,
isDialogShow
:
true
,
e
:
{}
e
:
{}
...
@@ -413,11 +426,13 @@ Page({
...
@@ -413,11 +426,13 @@ Page({
},
},
handleSecondConfirm
(
e
)
{
handleSecondConfirm
(
e
)
{
console
.
log
(
e
)
console
.
log
(
e
)
let
{
serviceInfo
,
conSecondObj
,
isAsk
}
=
this
.
data
let
{
serviceInfo
,
conSecondObj
,
isAsk
,
noCheckVinFlag
}
=
this
.
data
if
(
isAsk
)
{
if
(
isAsk
)
{
return
true
return
true
}
}
if
(
e
.
detail
?.
type
==
'confirm'
)
{
if
(
e
.
detail
?.
type
==
'confirm'
)
{
// 校验过车架号重复后,不再做确认,直接提交表单
if
(
noCheckVinFlag
)
return
this
.
confirm
(
e
)
this
.
setData
({
this
.
setData
({
secFormData
:
{
secFormData
:
{
carVin
:
serviceInfo
.
vin
carVin
:
serviceInfo
.
vin
...
@@ -455,6 +470,7 @@ Page({
...
@@ -455,6 +470,7 @@ Page({
this
.
setData
({
this
.
setData
({
isDialogShow
:
false
isDialogShow
:
false
})
})
if
(
e
.
detail
?.
type
==
'warning'
)
return
this
.
setData
({
noCheckVinFlag
:
true
})
wx
.
$router
.
reLaunch
(
'packageEquity.equityPage'
,
{
tabIndex
:
2
})
wx
.
$router
.
reLaunch
(
'packageEquity.equityPage'
,
{
tabIndex
:
2
})
},
},
...
...
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