Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-tools
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 58f9d33e
authored
Mar 27, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.26.0' into 'master'
上线合并 See merge request
!20
2 parents
7377cb44
7854a3a1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
7 deletions
src/utils/util.js
src/views/activityLink/components/MarketingContent.vue
src/views/activityLink/components/MarketingGift.vue
src/views/activityLink/components/Process.vue
src/utils/util.js
View file @
58f9d33
...
...
@@ -126,4 +126,12 @@ util.isShowBtn = function(value, permissions) {
}
return
isShowStatus
}
util
.
accMul
=
(
arg1
,
arg2
)
=>
{
var
m
=
0
,
s1
=
arg1
.
toString
(),
s2
=
arg2
.
toString
()
if
(
s1
.
split
(
'.'
)[
1
])
m
+=
s1
.
split
(
'.'
)[
1
].
length
if
(
s2
.
split
(
'.'
)[
1
])
m
+=
s2
.
split
(
'.'
)[
1
].
length
return
(
Number
(
s1
.
replace
(
'.'
,
''
))
*
Number
(
s2
.
replace
(
'.'
,
''
)))
/
Math
.
pow
(
10
,
m
)
}
export
default
util
src/views/activityLink/components/MarketingContent.vue
View file @
58f9d33
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-29 21:24:27
* @LastEditors:
yangming yangming
@didihu.com.cn
* @LastEditTime: 202
3-10-16 14:03:4
2
* @LastEditors:
前端 qianduan01
@didihu.com.cn
* @LastEditTime: 202
4-03-25 11:42:2
2
* @FilePath: \scrm-micro-link\src\views\activityLink\components\MarketingContent.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
...
...
@@ -473,6 +473,7 @@ export default {
delete
param
.
activityPrice
delete
param
.
giftId
delete
param
.
serviceMerchantPackageConfigDTOS
delete
param
.
equityServices
return
param
},
handleSave
()
{
...
...
src/views/activityLink/components/MarketingGift.vue
View file @
58f9d33
...
...
@@ -106,6 +106,7 @@
import
gift
from
'@/mixins/gift'
import
marketing
from
'@/mixins/marketing'
import
{
openTab
}
from
'@/utils/index'
import
util
from
'@/utils/util'
import
{
mapActions
,
mapMutations
,
mapState
}
from
'vuex'
export
default
{
mixins
:
[
gift
,
marketing
],
...
...
@@ -202,7 +203,12 @@ export default {
}
this
.
init
()
this
.
$nextTick
(
async
()
=>
{
if
(
info
.
serviceMerchantPackageConfigDTOS
)
this
.
selectedCarList
=
info
.
serviceMerchantPackageConfigDTOS
if
(
info
.
serviceMerchantPackageConfigDTOS
)
{
this
.
selectedCarList
=
info
.
serviceMerchantPackageConfigDTOS
this
.
selectedCarList
.
forEach
(
i
=>
{
i
.
packageAmount
=
i
.
packageAmount
/
100
})
}
let
activityCoupon
=
info
.
activityCouponBaseInfoDTOS
||
info
.
couponList
||
info
.
couponItemList
if
(
activityCoupon
&&
activityCoupon
.
length
)
{
...
...
@@ -345,13 +351,13 @@ export default {
return
{
couponId
:
item
.
id
,
couponAmount
:
1
,
couponAnticipatedCost
:
item
.
denomination
||
item
.
anticipatedCost
||
item
.
couponAnticipatedCost
couponAnticipatedCost
:
item
.
denomination
||
item
.
anticipatedCost
||
item
.
couponAnticipatedCost
||
0
}
})
const
serviceMerchantPackageConfigDTOS
=
selectedCarList
.
map
(
i
=>
{
return
{
packageCode
:
i
.
packageCode
,
packageAmount
:
i
.
packageAmount
packageAmount
:
util
.
accMul
(
i
.
packageAmount
,
100
)
}
})
console
.
log
(
this
.
selectedCarList
,
'selectedCarList'
)
...
...
src/views/activityLink/components/Process.vue
View file @
58f9d33
...
...
@@ -166,7 +166,7 @@ export default {
params
.
activityAddressDetailName
=
params
.
merchantAddress
params
=
{
...
params
,
...
this
.
addProperties
(
params
)
}
params
.
activityBigImg
=
url
params
=
this
.
deleteKeys
(
params
,
[
'activityActionReport'
,
'couponList'
,
'superMarketingCouponRelRequestList'
])
params
=
this
.
deleteKeys
(
params
,
[
'activityActionReport'
,
'couponList'
,])
params
.
startTime
=
params
.
starttime
.
replace
(
/
\/
/g
,
'-'
)
params
.
endTime
=
params
.
endtime
.
replace
(
/
\/
/g
,
'-'
)
}
...
...
@@ -198,7 +198,8 @@ export default {
return
{
...
obj
,
marketingType
:
5
,
// 膨胀金
couponCreateRequests
:
obj
.
superMarketingCouponRelRequestList
// serviceMerchantPackageConfigDTOS: obj.superMarketingCouponRelRequestList,
packagecode
:
obj
.
equityServices
}
}
},
...
...
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