Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 a5be9559
authored
Feb 14, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' into v3.5.0
2 parents
fb046a46
5de550a1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
242 additions
and
149 deletions
src/views/orderManage/index.vue
src/views/orderManage/orderDetail.vue
src/views/productGroup/components/crowdFundingShareDialog.vue
src/views/seckillActivity/crowdFundList.vue
src/views/seckillActivity/editCrowdFund.vue
src/views/orderManage/index.vue
View file @
a5be955
...
@@ -1023,8 +1023,8 @@ export default {
...
@@ -1023,8 +1023,8 @@ export default {
]
]
try
{
try
{
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
(),
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
(),
filterTableList
=
[
'customerPhone'
,
'otherInformation'
,
'
shareStaffName'
,
'
assignName'
,
'shareStaffPhone'
,
'verificationDate'
,
'vinNo'
,
'afterSaleStatus'
],
filterTableList
=
[
'customerPhone'
,
'otherInformation'
,
'assignName'
,
'shareStaffPhone'
,
'verificationDate'
,
'vinNo'
,
'afterSaleStatus'
],
filterFormList
=
[
'afterSaleStatuses'
,
'vin'
,
'shareStaff
Name'
,
'shareStaff
Source'
,
'customerPhone'
,
'shareStaffPhone'
]
filterFormList
=
[
'afterSaleStatuses'
,
'vin'
,
'shareStaffSource'
,
'customerPhone'
,
'shareStaffPhone'
]
if
(
res
==
1
)
{
if
(
res
==
1
)
{
for
(
let
i
=
0
;
i
<
tableColumns
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
tableColumns
.
length
;
i
++
)
{
if
(
filterTableList
.
includes
(
tableColumns
[
i
].
prop
))
{
if
(
filterTableList
.
includes
(
tableColumns
[
i
].
prop
))
{
...
...
src/views/orderManage/orderDetail.vue
View file @
a5be955
...
@@ -227,7 +227,7 @@ export default {
...
@@ -227,7 +227,7 @@ export default {
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
()
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
()
let
hideStatus
=
res
==
1
let
hideStatus
=
res
==
1
if
(
hideStatus
)
{
if
(
hideStatus
)
{
const
filterFormList
=
[
'customerPhone'
,
'shareStaff
Name'
,
'shareStaff
TypeName'
,
'vin'
,
'shipAddress'
]
const
filterFormList
=
[
'customerPhone'
,
'shareStaffTypeName'
,
'vin'
,
'shipAddress'
]
for
(
let
i
=
0
;
i
<
detailFormData
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
detailFormData
.
length
;
i
++
)
{
if
(
filterFormList
.
includes
(
detailFormData
[
i
].
name
))
{
if
(
filterFormList
.
includes
(
detailFormData
[
i
].
name
))
{
detailFormData
.
splice
(
i
,
1
)
detailFormData
.
splice
(
i
,
1
)
...
...
src/views/productGroup/components/crowdFundingShareDialog.vue
View file @
a5be955
<!-- 众筹分享弹窗 -->
<!-- 众筹分享弹窗 -->
<
template
>
<
template
>
<GLDialog
title=
"分享"
mode=
"mid"
okText=
"关闭"
:visible
.
sync=
"isShareVisible"
:before-close=
"handleShareClose"
:hasFooter=
"false"
>
<GLDialog
title=
"分享"
mode=
"mid"
okText=
"关闭"
:visible
.
sync=
"isShareVisible"
:before-close=
"handleShareClose"
:hasFooter=
"false"
>
<div
class=
"share-dialog"
>
<div
class=
"share-dialog"
>
<div>
<div>
<img
style=
"width: 220px; height: 310px;"
:src=
"shareForm.posterUrl"
/>
<img
<el-button
style=
"display: block;margin-top: 12px;margin-left: 65px;"
:size=
"size"
type=
"primary"
@
click=
"handleSaveImg(shareForm.posterUrl)"
>
下载海报
</el-button>
style=
"width: 220px; height: 310px;"
:src=
"shareForm.posterUrl"
/>
<el-button
style=
"display: block;margin-top: 12px;margin-left: 65px;"
:size=
"size"
type=
"primary"
@
click=
"handleSaveImg(shareForm.posterUrl)"
>
下载海报
</el-button>
</div>
</div>
<div>
<div>
<div
class=
"code"
>
<div
class=
"code"
>
<div
class=
"activity-code"
>
<div
class=
"activity-code"
>
<div
class=
"code-img"
>
<div
class=
"code-img"
>
<img
style=
"width: 146px; height: 146px;"
:src=
"shareForm.qrCodeUrl"
/>
<img
style=
"width: 146px; height: 146px;"
:src=
"shareForm.qrCodeUrl"
/>
</div>
<div>
<p
class=
"code-text"
>
活动二维码
</p>
<el-button
style=
"margin-top: 17px;"
:size=
"size"
type=
"primary"
@
click=
"handleSaveImg(shareForm.qrCodeUrl, '活动二维码')"
>
下载二维码
</el-button>
</div>
</div>
</div>
<div>
<div
<p
class=
"code-text"
>
活动二维码
</p>
class=
"activity-code"
<el-button
style=
"margin-top: 17px;"
:size=
"size"
type=
"primary"
@
click=
"handleSaveImg(shareForm.qrCodeUrl, '活动二维码')"
>
下载二维码
</el-button>
style=
"margin-top: 14px;"
</div>
v-if=
"!hideStatus"
</div>
>
<div
class=
"activity-code"
style=
"margin-top: 14px;"
>
<div
class=
"code-img"
>
<div
class=
"code-img"
>
<img
<img
style=
"width: 146px; height: 146px;"
:src=
"shareForm.staffLoginQrCodeUrl"
/>
style=
"width: 146px; height: 146px;"
</div>
:src=
"shareForm.staffLoginQrCodeUrl"
<div>
/>
<p
class=
"code-text"
>
员工注册码
</p>
</div>
<el-button
style=
"margin-top: 17px;"
:size=
"size"
type=
"primary"
@
click=
"handleSaveImg(shareForm.staffLoginQrCodeUrl, '员工注册码')"
>
下载注册码
</el-button>
<div>
<p
class=
"code-text"
>
员工注册码
</p>
<el-button
style=
"margin-top: 17px;"
:size=
"size"
type=
"primary"
@
click=
"handleSaveImg(shareForm.staffLoginQrCodeUrl, '员工注册码')"
>
下载注册码
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"page-route"
>
<div
class=
"page-route"
>
<div>
<div>
<span
class=
"share-txt"
>
H5短链接:
</span>
<span
class=
"share-txt"
>
H5短链接:
</span>
<span
class=
"copy"
@
click=
"handleSaveTxt(shareForm.linkUrl)"
>
复制
</span>
<span
<span
class=
"copy"
style=
"margin-left: 10px;width: 75px;"
@
click=
"handleSaveTxt(shareForm.originallinkUrl)"
>
复制群发链接
</span>
class=
"copy"
@
click=
"handleSaveTxt(shareForm.linkUrl)"
>
复制
</span>
<span
class=
"copy"
style=
"margin-left: 10px;width: 75px;"
@
click=
"handleSaveTxt(shareForm.originallinkUrl)"
>
复制群发链接
</span>
</div>
</div>
<p
class=
"link"
style=
"margin-bottom: 16px;"
>
{{
shareForm
.
linkUrl
}}
</p>
<p
<div>
class=
"link"
<span
class=
"share-txt"
>
员工注册码链接:
</span>
style=
"margin-bottom: 16px;"
<span
class=
"copy"
@
click=
"handleSaveTxt(shareForm.staffLoginLinkUrl)"
>
复制
</span>
>
{{
shareForm
.
linkUrl
}}
</p>
</div>
<template
v-if=
"!hideStatus"
>
<p
class=
"link"
style=
"margin-bottom: 16px;"
>
{{
shareForm
.
staffLoginLinkUrl
}}
</p>
<div>
<span
class=
"share-txt"
>
员工注册码链接:
</span>
<span
class=
"copy"
@
click=
"handleSaveTxt(shareForm.staffLoginLinkUrl)"
>
复制
</span>
</div>
<p
class=
"link"
style=
"margin-bottom: 16px;"
>
{{
shareForm
.
staffLoginLinkUrl
}}
</p>
</
template
>
<div>
<div>
<span
class=
"share-txt"
>
活动ID:
</span>
<span
class=
"share-txt"
>
活动ID:
</span>
<span
class=
"copy"
@
click=
"handleSaveTxt(shareForm.id)"
>
复制
</span>
<span
class=
"copy"
@
click=
"handleSaveTxt(shareForm.id)"
>
复制
</span>
</div>
</div>
<p
class=
"link"
>
{{ shareForm.id }}
</p>
<p
class=
"link"
>
{{ shareForm.id }}
</p>
</div>
</div>
...
@@ -53,7 +109,7 @@
...
@@ -53,7 +109,7 @@
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'crowdFundingShare'
,
name
:
'crowdFundingShare'
,
data
()
{
data
()
{
return
{}
return
{}
},
},
...
@@ -68,10 +124,10 @@ export default {
...
@@ -68,10 +124,10 @@ export default {
}
}
},
},
mounted
()
{
},
mounted
()
{
},
methods
:
{
methods
:
{
handleSaveImg
(
url
,
downloadTxt
=
'海报'
)
{
handleSaveImg
(
url
,
downloadTxt
=
'海报'
)
{
var
alink
=
document
.
createElement
(
'a'
)
var
alink
=
document
.
createElement
(
'a'
)
alink
.
href
=
url
alink
.
href
=
url
alink
.
setAttribute
(
'target'
,
'_blank'
)
alink
.
setAttribute
(
'target'
,
'_blank'
)
...
@@ -79,7 +135,7 @@ export default {
...
@@ -79,7 +135,7 @@ export default {
alink
.
click
()
alink
.
click
()
alink
.
remove
()
alink
.
remove
()
},
},
handleSaveTxt
(
txt
)
{
handleSaveTxt
(
txt
)
{
this
.
$message
({
this
.
$message
({
message
:
'复制成功'
,
message
:
'复制成功'
,
type
:
'success'
,
type
:
'success'
,
...
@@ -92,7 +148,7 @@ export default {
...
@@ -92,7 +148,7 @@ export default {
document
.
execCommand
(
'Copy'
)
document
.
execCommand
(
'Copy'
)
document
.
body
.
removeChild
(
input
)
document
.
body
.
removeChild
(
input
)
},
},
handleShareClose
()
{
handleShareClose
()
{
this
.
$emit
(
'handleShareClose'
)
this
.
$emit
(
'handleShareClose'
)
}
}
}
}
...
@@ -104,13 +160,13 @@ export default {
...
@@ -104,13 +160,13 @@ export default {
}
}
.share-dialog
.code
{
.share-dialog
.code
{
height
:
310px
;
height
:
310px
;
border-left
:
1px
dashed
#
DCDFE
6
;
border-left
:
1px
dashed
#
dcdfe
6
;
margin-left
:
20px
;
margin-left
:
20px
;
}
}
.share-dialog
.code
.code-img
{
.share-dialog
.code
.code-img
{
width
:
146px
;
width
:
146px
;
height
:
146px
;
height
:
146px
;
border
:
1px
solid
#
E8E8EA
;
border
:
1px
solid
#
e8e8ea
;
margin-left
:
20px
;
margin-left
:
20px
;
margin-right
:
36px
;
margin-right
:
36px
;
}
}
...
@@ -125,14 +181,14 @@ export default {
...
@@ -125,14 +181,14 @@ export default {
}
}
.page-route
{
.page-route
{
margin-top
:
20px
;
margin-top
:
20px
;
background
:
#
F4F6FC
;
background
:
#
f4f6fc
;
padding
:
20px
;
padding
:
20px
;
}
}
.page-route
.link
{
.page-route
.link
{
width
:
492px
;
width
:
492px
;
font-family
:
PingFangSC-Medium
;
font-family
:
PingFangSC-Medium
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#5850
FF
;
color
:
#5850
ff
;
line-height
:
20px
;
line-height
:
20px
;
}
}
.page-route
.share-txt
{
.page-route
.share-txt
{
...
@@ -143,11 +199,11 @@ export default {
...
@@ -143,11 +199,11 @@ export default {
.page-route
.copy
{
.page-route
.copy
{
width
:
40px
;
width
:
40px
;
height
:
20px
;
height
:
20px
;
background
:
#5850
FF
;
background
:
#5850
ff
;
border-radius
:
2px
;
border-radius
:
2px
;
font-family
:
PingFangSC-Regular
;
font-family
:
PingFangSC-Regular
;
font-size
:
12px
;
font-size
:
12px
;
color
:
#
FFFFFF
;
color
:
#
ffffff
;
display
:
inline-block
;
display
:
inline-block
;
line-height
:
20px
;
line-height
:
20px
;
text-align
:
center
;
text-align
:
center
;
...
...
src/views/seckillActivity/crowdFundList.vue
View file @
a5be955
...
@@ -115,6 +115,7 @@
...
@@ -115,6 +115,7 @@
:isShareVisible=
"isShareVisible"
:isShareVisible=
"isShareVisible"
:shareForm=
"shareForm"
:shareForm=
"shareForm"
@
handleShareClose=
"handleShareClose"
@
handleShareClose=
"handleShareClose"
:hideStatus=
"hideStatus"
></crowdFundingShare>
></crowdFundingShare>
</div>
</div>
</template>
</template>
...
@@ -291,110 +292,7 @@ export default {
...
@@ -291,110 +292,7 @@ export default {
tableParams
:
{
tableParams
:
{
listName
:
'list'
,
listName
:
'list'
,
tableOption
:
true
,
tableOption
:
true
,
tableColumns
:
[
tableColumns
:
[]
{
label
:
'活动名称'
,
prop
:
'activityName'
,
width
:
220
},
{
label
:
'浏览量(次)'
,
prop
:
'viewAmount'
,
addHtml
:
'linkText'
,
width
:
140
},
{
label
:
'访客'
,
prop
:
'fansAmount'
,
addHtml
:
'linkText'
},
{
label
:
'分享'
,
prop
:
'shareAmount'
,
addHtml
:
'linkText'
},
{
label
:
'销量'
,
prop
:
'saleAmount'
},
{
label
:
'门店'
,
prop
:
'merchantName'
,
width
:
220
,
fixed
:
'left'
},
{
label
:
'缩略图'
,
prop
:
'activityImg'
,
addHtml
:
'activityImg'
},
{
label
:
'收款模式'
,
prop
:
'payMentModel'
,
width
:
220
,
formatter
:
cellValue
=>
{
const
model
=
{
1
:
'广联收定金和尾款'
,
2
:
'广联收定金门店收尾款'
,
3
:
'广联收定金门店收全款退定金'
,
4
:
'门店收定金和尾款'
,
5
:
'服务商收定金门店收尾款'
}
return
model
[
cellValue
.
paymentModel
]
||
'--'
}
},
{
label
:
'进账'
,
prop
:
'income'
,
formatter
:
cellValue
=>
{
return
cellValue
.
income
?
(
cellValue
.
income
/
100
).
toFixed
(
2
)
:
'--'
}
},
{
label
:
'出账'
,
prop
:
'expenditure'
,
formatter
:
cellValue
=>
{
return
cellValue
.
expenditure
?
(
cellValue
.
expenditure
/
100
).
toFixed
(
2
)
:
'--'
}
},
{
label
:
'盈利'
,
prop
:
'profit'
,
formatter
:
cellValue
=>
{
return
cellValue
.
profit
?
(
cellValue
.
profit
/
100
).
toFixed
(
2
)
:
'--'
}
},
{
label
:
'秒杀价/元'
,
prop
:
'activityPrice'
,
name
:
'activityPrice'
,
width
:
140
,
addHtml
:
'joinText'
},
{
label
:
'库存'
,
prop
:
'goodsStock'
,
width
:
110
,
addHtml
:
'joinText'
},
{
label
:
'创建日期'
,
name
:
'createdDate'
,
width
:
200
,
formatter
:
cellValue
=>
{
return
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
},
{
label
:
'活动状态'
,
name
:
'activityStatus'
,
width
:
110
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
statusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
activityStatus
).
confName
}
}
]
},
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
baseData
:
{
baseData
:
{
...
@@ -429,8 +327,147 @@ export default {
...
@@ -429,8 +327,147 @@ export default {
methods
:
{
methods
:
{
async
getCrowdfundingOrderConfig
()
{
async
getCrowdfundingOrderConfig
()
{
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
()
let
tableColumns
=
[
this
.
hideStatus
=
res
==
1
// {
// label: '序号',
// // prop: 'activityImg',
// addHtml: 'tableNum',
// fixed: 'left',
// width: 70
// },
{
label
:
'浏览量(次)'
,
prop
:
'viewAmount'
,
addHtml
:
'linkText'
,
width
:
140
},
{
label
:
'访客'
,
prop
:
'fansAmount'
,
addHtml
:
'linkText'
},
{
label
:
'分享'
,
prop
:
'shareAmount'
,
addHtml
:
'linkText'
},
{
label
:
'销量'
,
prop
:
'saleAmount'
},
{
label
:
'活动名称'
,
prop
:
'activityName'
,
width
:
220
,
fixed
:
'left'
},
{
label
:
'门店'
,
prop
:
'merchantName'
,
width
:
220
,
fixed
:
'left'
},
{
label
:
'缩略图'
,
prop
:
'activityImg'
,
addHtml
:
'activityImg'
},
{
label
:
'收款模式'
,
prop
:
'paymentModel'
,
width
:
220
,
formatter
:
cellValue
=>
{
const
model
=
{
1
:
'广联收定金和尾款'
,
2
:
'广联收定金门店收尾款'
,
3
:
'广联收定金门店收全款退定金'
,
4
:
'门店收定金和尾款'
,
5
:
'服务商收定金门店收尾款'
}
return
model
[
cellValue
.
paymentModel
]
||
'--'
}
},
{
label
:
'进账'
,
prop
:
'income'
,
formatter
:
cellValue
=>
{
return
cellValue
.
income
?
(
cellValue
.
income
/
100
).
toFixed
(
2
)
:
'--'
}
},
{
label
:
'出账'
,
prop
:
'expenditure'
,
formatter
:
cellValue
=>
{
return
cellValue
.
expenditure
?
(
cellValue
.
expenditure
/
100
).
toFixed
(
2
)
:
'--'
}
},
{
label
:
'盈利'
,
prop
:
'profit'
,
formatter
:
cellValue
=>
{
return
cellValue
.
profit
?
(
cellValue
.
profit
/
100
).
toFixed
(
2
)
:
'--'
}
},
{
label
:
'退单数'
,
prop
:
'chargebackNumber'
},
{
label
:
'核销数'
,
prop
:
'verificationNumber'
},
{
label
:
'定金(元)'
,
name
:
'activityPrice'
,
width
:
140
,
formatter
:
cellValue
=>
{
return
(
cellValue
.
activityPrice
/
100
).
toFixed
(
2
)
}
},
{
label
:
'众筹价(元)'
,
name
:
'crowdFundingPrice'
,
width
:
140
,
formatter
:
cellValue
=>
{
return
(
cellValue
.
crowdFundingPrice
/
100
).
toFixed
(
2
)
}
},
{
label
:
'库存'
,
prop
:
'goodsStock'
,
width
:
110
},
{
label
:
'创建日期'
,
name
:
'createdDate'
,
width
:
200
,
formatter
:
cellValue
=>
{
return
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
},
{
label
:
'活动状态'
,
name
:
'activityStatus'
,
width
:
110
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
statusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
activityStatus
).
confName
}
}
]
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
(),
filterTableList
=
[
'paymentModel'
],
hideStatus
=
res
==
1
if
(
hideStatus
)
{
for
(
let
i
=
0
;
i
<
tableColumns
.
length
;
i
++
)
{
if
(
filterTableList
.
includes
(
tableColumns
[
i
].
prop
))
{
tableColumns
.
splice
(
i
,
1
)
i
--
}
}
}
this
.
hideStatus
=
hideStatus
this
.
tableParams
.
tableColumns
=
tableColumns
},
},
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
a5be955
This diff is collapsed.
Click to expand it.
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