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 37d57431
authored
Jun 14, 2023
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
关联尾款切商品 定金尾款金额显示修改
1 parent
9b79a6c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
packageCrowdFunding/components/PickerSelect/PickerSelect.js
packageCrowdFunding/pages/balanceNote/balanceNote.wxml
packageCrowdFunding/components/PickerSelect/PickerSelect.js
View file @
37d5743
...
...
@@ -30,6 +30,10 @@ Component({
popupHeight
:
{
type
:
String
,
value
:
'60%'
},
goodsNumber
:
{
type
:
Number
,
value
:
1
}
},
...
...
@@ -57,7 +61,7 @@ Component({
this
.
setData
({
optionList
})
},
confirm
()
{
let
{
optionList
,
orderInfo
,
pickerObj
,
title
,
isAdditionRecordOrder
}
=
this
.
data
let
{
optionList
,
orderInfo
,
pickerObj
,
title
,
isAdditionRecordOrder
,
goodsNumber
}
=
this
.
data
let
arr
=
optionList
?.
filter
(
v
=>
v
.
active
)
||
[]
if
(
!
arr
.
length
)
{
return
wx
.
showToast
({
...
...
@@ -71,10 +75,10 @@ Component({
orderInfo
[
pickerObj
.
optionName
]
=
arr
[
0
][
pickerObj
.
optionName
]
||
''
if
(
pickerObj
.
flag
)
{
// 商品带出金额
// 定金金额
orderInfo
[
'depositPrice'
]
=
`¥
${
this
.
priceFilter
(
arr
[
0
]?.
activityPrice
/
100
||
0
)}
`
orderInfo
[
'depositPrice'
]
=
`¥
${
this
.
priceFilter
(
arr
[
0
]?.
activityPrice
*
goodsNumber
/
100
||
0
)}
`
// 尾款金额 = 众筹价 - 定金金额
orderInfo['tailPayment'] = `
¥
$
{
this
.
priceFilter
((
arr
[
0
]?.
crowdFundingPrice
-
arr
[
0
]?.
activityPrice
)
/
100
||
0
)}
`
orderInfo['crowdFundingPrice'] = `
¥
$
{
this
.
priceFilter
(
arr
[
0
]?.
crowdFundingPrice
/
100
||
0
)}
`
orderInfo['tailPayment'] = `
¥
$
{
this
.
priceFilter
((
arr
[
0
]?.
crowdFundingPrice
-
arr
[
0
]?.
activityPrice
)
*
goodsNumber
/
100
||
0
)}
`
orderInfo['crowdFundingPrice'] = `
¥
$
{
this
.
priceFilter
(
arr
[
0
]?.
crowdFundingPrice
*
goodsNumber
/
100
||
0
)}
`
// 筛选交易流水号 补录用订单总价 关联尾款单(有定金支付时间 用尾款 没有支付时间 用订单总价)
if (isAdditionRecordOrder) {
// orderInfo['tailPayment'] = `
¥
$
{
this
.
priceFilter
(
arr
[
0
]?.
crowdFundingPrice
/
100
||
0
)}
`
...
...
packageCrowdFunding/pages/balanceNote/balanceNote.wxml
View file @
37d5743
...
...
@@ -61,6 +61,7 @@
pickerObj="{{pickerObj}}"
orderInfo="{{orderInfo}}"
isAdditionRecordOrder="{{!orderInfo.payedDate}}"
goodsNumber="{{orderInfo.goodsNumber}}"
/>
<remark-popup wx:if="{{showRemark}}"
title="备注"
...
...
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