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 23becde8
authored
Aug 09, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
众筹,订单管理
1 parent
8b3c0343
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
190 additions
and
74 deletions
src/api/modules/common.js
src/api/modules/orderManage.js
src/api/modules/seckillActivity.js
src/assets/css/public.scss
src/views/orderManage/index.vue
src/views/orderManage/orderDetail.vue
src/views/seckillActivity/crowdFundList.vue
src/views/seckillActivity/editCrowdFund.vue
src/views/seckillActivity/index.vue
src/api/modules/common.js
View file @
23becde
...
@@ -55,6 +55,17 @@ const uploadVideoApi = params => {
...
@@ -55,6 +55,17 @@ const uploadVideoApi = params => {
})
})
}
}
const
uploadFundingVideoApi
=
params
=>
{
params
.
method
=
'scrm.api.carlife.crowd.funding.uploadVideo'
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
noSignAttr
:
[
'file'
]
})
}
const
getMerchantList
=
params
=>
{
const
getMerchantList
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
merchant.listWithPageByCurMerchant`
params
.
method
=
`
${
defaultPath
}
merchant.listWithPageByCurMerchant`
return
http
({
return
http
({
...
@@ -150,4 +161,4 @@ const getMerchantInfoApi = params => {
...
@@ -150,4 +161,4 @@ const getMerchantInfoApi = params => {
})
})
}
}
export
default
{
getMerchantGoodsListApi
,
getGoodsListApi
,
uploadImgApi
,
uploadMusicApi
,
uploadVideoApi
,
getMerchantList
,
getSimpleMerchantList
,
getZoneListApi
,
getClassifyListApi
,
pictureUpload
,
querylabeltree
,
getCrowdTreeListApi
,
getStaffFollowerListApi
,
getMerchantInfoApi
}
export
default
{
getMerchantGoodsListApi
,
getGoodsListApi
,
uploadImgApi
,
uploadMusicApi
,
uploadVideoApi
,
uploadFundingVideoApi
,
getMerchantList
,
getSimpleMerchantList
,
getZoneListApi
,
getClassifyListApi
,
pictureUpload
,
querylabeltree
,
getCrowdTreeListApi
,
getStaffFollowerListApi
,
getMerchantInfoApi
}
src/api/modules/orderManage.js
View file @
23becde
...
@@ -54,6 +54,31 @@ const writeOffApi = params => {
...
@@ -54,6 +54,31 @@ const writeOffApi = params => {
})
})
}
}
// 众筹-订单核销
const
crowdFundWriteOffApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.crowd.funding.order.verfication'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
// 众筹-退款
const
crowdFundRefundApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.crowd.funding.order.refund'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
// 快递信息
// 快递信息
const
addDeliveryApi
=
params
=>
{
const
addDeliveryApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
order.addDelivery`
params
.
method
=
`
${
defaultPath
}
order.addDelivery`
...
@@ -101,4 +126,4 @@ const confirmReceiptGoodsApi = params => {
...
@@ -101,4 +126,4 @@ const confirmReceiptGoodsApi = params => {
})
})
}
}
export
default
{
getListApi
,
getCountApi
,
getOrderDetailApi
,
orderExportApi
,
writeOffApi
,
addDeliveryApi
,
examineDetailApi
,
examineAllowApi
,
confirmReceiptGoodsApi
}
export
default
{
getListApi
,
getCountApi
,
getOrderDetailApi
,
orderExportApi
,
writeOffApi
,
crowdFundWriteOffApi
,
crowdFundRefundApi
,
addDeliveryApi
,
examineDetailApi
,
examineAllowApi
,
confirmReceiptGoodsApi
}
src/api/modules/seckillActivity.js
View file @
23becde
...
@@ -24,6 +24,17 @@ const getCrowdfundListApi = params => {
...
@@ -24,6 +24,17 @@ const getCrowdfundListApi = params => {
})
})
}
}
// 众筹-导出
const
exportCrowdfundApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.crowdfunding.activity.export'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
//分页浏览明细
//分页浏览明细
const
getBrowseListApi
=
params
=>
{
const
getBrowseListApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.customer.browse.records'
params
.
method
=
'scrm.api.shopmall.customer.browse.records'
...
@@ -127,4 +138,4 @@ const getCrowdSharedApi = params => {
...
@@ -127,4 +138,4 @@ const getCrowdSharedApi = params => {
})
})
}
}
export
default
{
getActivityPageApi
,
getCrowdfundListApi
,
getBrowseListApi
,
exportBrowseApi
,
toggleStatusApi
,
deleteActivityApi
,
topActivityApi
,
getSharedApi
,
addOrUpdateActivityApi
,
getActivityDetailApi
,
getCrowdSharedApi
}
export
default
{
getActivityPageApi
,
getCrowdfundListApi
,
exportCrowdfundApi
,
getBrowseListApi
,
exportBrowseApi
,
toggleStatusApi
,
deleteActivityApi
,
topActivityApi
,
getSharedApi
,
addOrUpdateActivityApi
,
getActivityDetailApi
,
getCrowdSharedApi
}
src/assets/css/public.scss
View file @
23becde
...
@@ -120,7 +120,7 @@ html {
...
@@ -120,7 +120,7 @@ html {
.marketing
.edit-container
{
.marketing
.edit-container
{
// margin-bottom: 84px;
// margin-bottom: 84px;
// min-height: calc(100vh - 156px);
// min-height: calc(100vh - 156px);
margin-bottom
:
16px
;
margin-bottom
:
16px
;
}
}
.marketing
.approval-container
{
.marketing
.approval-container
{
...
@@ -221,6 +221,10 @@ html {
...
@@ -221,6 +221,10 @@ html {
transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
}
}
.img-circle
{
border-radius
:
50%
;
}
.marketing
.pointer
{
.marketing
.pointer
{
cursor
:
pointer
;
cursor
:
pointer
;
}
}
...
@@ -300,7 +304,7 @@ html {
...
@@ -300,7 +304,7 @@ html {
}
}
.marketing
.m-l-10
{
.marketing
.m-l-10
{
margin-left
:
10px
;
margin-left
:
10px
;
}
}
.marketing
.m-l-20
{
.marketing
.m-l-20
{
...
@@ -338,6 +342,14 @@ html {
...
@@ -338,6 +342,14 @@ html {
background-color
:
#999999
;
background-color
:
#999999
;
}
}
.marketing
.txt-green
{
color
:
#61CC43
;
}
.marketing
.txt-orange
{
color
:
#FB8F28
;
}
.marketing
.txt-blue
{
.marketing
.txt-blue
{
color
:
#5850ff
;
color
:
#5850ff
;
}
}
...
@@ -583,7 +595,7 @@ html {
...
@@ -583,7 +595,7 @@ html {
font-weight
:
400
;
font-weight
:
400
;
}
}
.marketing
.mt-10
{
.marketing
.mt-10
{
margin-top
:
10px
;
margin-top
:
10px
;
}
}
.el-tooltip__popper.is-light
{
.el-tooltip__popper.is-light
{
background
:
#ffffff
;
background
:
#ffffff
;
...
...
src/views/orderManage/index.vue
View file @
23becde
...
@@ -26,12 +26,10 @@
...
@@ -26,12 +26,10 @@
<!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<GLTable
ref=
"allOrderRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"allOrderRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"shareName"
class=
"flex-align"
slot-scope=
"scope"
>
<div
slot=
"weChatName"
class=
"flex-align"
slot-scope=
"scope"
>
<el-popover
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
<img
v-if=
"scope.scope.weChatImageUrl"
class=
"img-36 pointer img-circle"
:src=
"scope.scope.weChatImageUrl"
/>
<img
class=
"table-popover-img"
:src=
"scope.scope.shareAvatar"
/>
<span
class=
"m-l-10"
>
{{
scope
.
scope
.
weChatName
}}
</span>
<img
class=
"img-36 pointer"
slot=
"reference"
:src=
"scope.scope.shareAvatar"
/>
<span
v-if=
"!scope.scope.shareAvatar && !scope.scope.weChatName"
>
-
</span>
</el-popover>
<span
class=
"m-l-10"
>
{{
scope
.
scope
.
shareName
}}
</span>
</div>
</div>
<template
slot=
"vinNo"
slot-scope=
"scope"
>
<template
slot=
"vinNo"
slot-scope=
"scope"
>
{{
Array
.
isArray
(
scope
.
scope
.
vinNo
)
?
scope
.
scope
.
vinNo
[
0
]
:
scope
.
scope
.
vinNo
}}
{{
Array
.
isArray
(
scope
.
scope
.
vinNo
)
?
scope
.
scope
.
vinNo
[
0
]
:
scope
.
scope
.
vinNo
}}
...
@@ -44,12 +42,16 @@
...
@@ -44,12 +42,16 @@
<span
:class=
"['table-circle', 'm-r-8', [2, 10, 22].includes(scope.scope.orderStatus) ? 'back-green' : [9].includes(scope.scope.orderStatus) ? 'back-blue' : [1, 21, 6].includes(scope.scope.orderStatus) ? 'back-orange' : 'back-grey']"
></span>
<span
:class=
"['table-circle', 'm-r-8', [2, 10, 22].includes(scope.scope.orderStatus) ? 'back-green' : [9].includes(scope.scope.orderStatus) ? 'back-blue' : [1, 21, 6].includes(scope.scope.orderStatus) ? 'back-orange' : 'back-grey']"
></span>
<span>
{{ baseData.orderStatusList.map(item => item.confId).includes(scope.scope.orderStatus + '') ? baseData.orderStatusList.find(item => item.confId == scope.scope.orderStatus).confName : '-' }}
</span>
<span>
{{ baseData.orderStatusList.map(item => item.confId).includes(scope.scope.orderStatus + '') ? baseData.orderStatusList.find(item => item.confId == scope.scope.orderStatus).confName : '-' }}
</span>
</div>
</div>
<div
slot=
"shareStaffImageUrl"
class=
"table-image"
slot-scope=
"scope"
>
<div
slot=
"shareStaffName"
class=
"table-image"
slot-scope=
"scope"
>
<el-popover
v-if=
"scope.scope.shareStaffImageUrl"
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
<div>
<img
class=
"table-popover-img"
:src=
"scope.scope.shareStaffImageUrl"
/>
<img
v-if=
"scope.scope.shareStaffImageUrl"
class=
"img-36 pointer img-circle"
style=
"vertical-align: middle"
slot=
"reference"
:src=
"scope.scope.shareStaffImageUrl"
/>
<img
class=
"img-60 pointer"
slot=
"reference"
:src=
"scope.scope.shareStaffImageUrl"
/>
<span
class=
"m-l-10"
>
</el-popover>
<span>
{{ scope.scope.shareStaffName }}
</span>
<span
v-else
>
-
</span>
<span
class=
"txt-green"
v-if=
"scope.scope.shareStaffType == 1"
>
@微信
</span>
<span
class=
"txt-orange"
v-if=
"scope.scope.shareStaffType == 2"
>
@企微
</span>
</span>
</div>
<span
v-if=
"!scope.scope.shareStaffImageUrl && !scope.scope.shareStaffName"
>
-
</span>
</div>
</div>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
...
@@ -150,7 +152,8 @@ export default {
...
@@ -150,7 +152,8 @@ export default {
deliveryType
:
''
,
deliveryType
:
''
,
vin
:
''
,
vin
:
''
,
shareStaffName
:
''
,
shareStaffName
:
''
,
shareStaffType
:
''
shareStaffType
:
''
,
activityName
:
''
},
},
tableSearchForm
:
{},
tableSearchForm
:
{},
statisticsInfo
:
{
statisticsInfo
:
{
...
@@ -297,6 +300,13 @@ export default {
...
@@ -297,6 +300,13 @@ export default {
optionId
:
'confId'
,
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionLabel
:
'confName'
,
optionsName
:
'shareStaffTypeList'
optionsName
:
'shareStaffTypeList'
},
{
label
:
'活动名称'
,
name
:
'activityName'
,
labelWidth
:
56
,
type
:
'input'
,
maxlength
:
100
}
}
],
],
// 快递信息
// 快递信息
...
@@ -406,10 +416,12 @@ export default {
...
@@ -406,10 +416,12 @@ export default {
fn
:
'退款'
fn
:
'退款'
},
},
condition
:
row
=>
{
condition
:
row
=>
{
return
row
.
deliveryType
==
1
&&
row
.
orderStatus
==
21
&&
row
.
orderSource
==
4
return
row
.
orderSource
==
4
&&
[
2
,
6
,
21
].
includes
(
+
row
.
orderStatus
)
},
},
listeners
:
{
listeners
:
{
// click: this.handleWriteOff
click
:
row
=>
{
this
.
secondConfirm
(
'退款'
,
'请确定是否发起退款?'
,
'orderManage'
,
'crowdFundRefundApi'
,
{
orderCode
:
row
.
orderCode
})
}
}
}
},
},
{
{
...
@@ -497,11 +509,6 @@ export default {
...
@@ -497,11 +509,6 @@ export default {
}
}
},
},
{
{
label
:
'微信名称'
,
prop
:
'shareName'
,
addHtml
:
'shareName'
},
{
label
:
'支付时间'
,
label
:
'支付时间'
,
prop
:
'payDate'
,
prop
:
'payDate'
,
width
:
'180'
,
width
:
'180'
,
...
@@ -518,6 +525,12 @@ export default {
...
@@ -518,6 +525,12 @@ export default {
}
}
},
},
{
{
label
:
'微信名称'
,
prop
:
'weChatName'
,
addHtml
:
'weChatName'
,
width
:
300
},
{
label
:
'客户名称'
,
label
:
'客户名称'
,
prop
:
'customerName'
,
prop
:
'customerName'
,
line
:
2
,
line
:
2
,
...
@@ -537,7 +550,7 @@ export default {
...
@@ -537,7 +550,7 @@ export default {
{
{
label
:
'车架号'
,
label
:
'车架号'
,
prop
:
'vinNo'
,
prop
:
'vinNo'
,
width
:
1
2
0
,
width
:
1
3
0
,
addHtml
:
'vinNo'
addHtml
:
'vinNo'
},
},
{
{
...
@@ -549,26 +562,19 @@ export default {
...
@@ -549,26 +562,19 @@ export default {
{
{
label
:
'推荐人'
,
label
:
'推荐人'
,
prop
:
'shareStaffName'
,
prop
:
'shareStaffName'
,
width
:
'180'
,
width
:
360
,
formatter
:
cellValue
=>
{
addHtml
:
'shareStaffName'
return
cellValue
.
shareStaffName
?
cellValue
.
shareStaffName
+
(
cellValue
.
shareStaffPhone
?
'+'
+
cellValue
.
shareStaffPhone
:
''
)
:
'-'
}
},
},
{
{
label
:
'头像'
,
label
:
'推荐人手机号'
,
prop
:
'shareStaffImageUrl'
,
prop
:
'shareStaffPhone'
,
addHtml
:
'shareStaffImageUrl'
width
:
130
,
},
{
label
:
'推荐人类型'
,
prop
:
'shareStaffType'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
this
.
baseData
.
shareStaffTypeList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
shareStaffType
+
''
)
?
this
.
baseData
.
shareStaffTypeList
.
find
(
item
=>
item
.
confId
==
cellValue
.
shareStaffType
).
confName
:
'-'
return
cellValue
.
shareStaffPhone
||
'-'
}
}
},
},
{
{
label
:
'支付总价'
,
label
:
'支付总价
/元
'
,
prop
:
'payPrice'
,
prop
:
'payPrice'
,
width
:
'120'
,
width
:
'120'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
...
@@ -576,6 +582,19 @@ export default {
...
@@ -576,6 +582,19 @@ export default {
}
}
},
},
{
{
label
:
'活动名称'
,
prop
:
'activityName'
,
width
:
'120'
},
{
label
:
'商品名称'
,
prop
:
''
,
width
:
'120'
,
formatter
:
cellValue
=>
{
return
cellValue
.
orderGoods
.
length
?
cellValue
.
orderGoods
.
map
(
item
=>
item
.
goodsName
).
join
(
','
)
:
'-'
}
},
{
label
:
'门店信息'
,
label
:
'门店信息'
,
prop
:
'merchantName'
,
prop
:
'merchantName'
,
line
:
1
,
line
:
1
,
...
@@ -788,7 +807,7 @@ export default {
...
@@ -788,7 +807,7 @@ export default {
handleWriteOff
(
row
)
{
handleWriteOff
(
row
)
{
if
(
row
.
orderSource
==
4
)
{
if
(
row
.
orderSource
==
4
)
{
this
.
secondConfirm
(
'订单核销'
,
'请确定是否核销此订单?'
,
'
classifyList'
,
'deleteClassify
Api'
,
{
orderCode
:
row
.
orderCode
})
this
.
secondConfirm
(
'订单核销'
,
'请确定是否核销此订单?'
,
'
orderManage'
,
'crowdFundWriteOff
Api'
,
{
orderCode
:
row
.
orderCode
})
return
true
return
true
}
}
this
.
isWriteOffVisible
=
!
this
.
isWriteOffVisible
this
.
isWriteOffVisible
=
!
this
.
isWriteOffVisible
...
@@ -923,7 +942,8 @@ export default {
...
@@ -923,7 +942,8 @@ export default {
deliveryType
:
''
,
deliveryType
:
''
,
vin
:
''
,
vin
:
''
,
shareStaffName
:
''
,
shareStaffName
:
''
,
shareStaffType
:
''
shareStaffType
:
''
,
activityName
:
''
}
}
this
.
handleSearch
()
this
.
handleSearch
()
}
}
...
...
src/views/orderManage/orderDetail.vue
View file @
23becde
...
@@ -144,11 +144,19 @@ export default {
...
@@ -144,11 +144,19 @@ export default {
label
:
'其他信息'
,
label
:
'其他信息'
,
name
:
'formDescribe'
,
name
:
'formDescribe'
,
contentName
:
'formContent'
,
contentName
:
'formContent'
,
attrList
:
[
'First'
,
'Second'
,
'Third'
]
attrList
:
[
'First'
,
'Second'
]
},
},
{
{
label
:
'微信名称'
,
label
:
'微信名称'
,
name
:
''
name
:
'weChatName'
},
{
label
:
'活动名称'
,
name
:
'activityName'
},
{
label
:
'商品名称'
,
name
:
'goodsName'
}
}
],
],
// 售后信息
// 售后信息
...
@@ -252,6 +260,8 @@ export default {
...
@@ -252,6 +260,8 @@ export default {
// 其他信息
// 其他信息
var
formDescribeObj
=
this
.
detailFormData
.
find
(
item
=>
item
.
name
==
'formDescribe'
)
var
formDescribeObj
=
this
.
detailFormData
.
find
(
item
=>
item
.
name
==
'formDescribe'
)
this
.
detailForm
[
formDescribeObj
.
name
]
=
''
this
.
detailForm
[
formDescribeObj
.
name
]
=
''
this
.
detailForm
[
formDescribeObj
.
name
]
=
this
.
detailForm
.
plateNo
?
'车牌号:'
+
this
.
detailForm
.
plateNo
+
' '
:
''
this
.
detailForm
[
formDescribeObj
.
name
]
+=
this
.
detailForm
.
vehicleType
?
'品牌车型:'
+
this
.
detailForm
.
vehicleType
+
' '
:
''
formDescribeObj
.
attrList
.
forEach
(
item
=>
{
formDescribeObj
.
attrList
.
forEach
(
item
=>
{
let
label
=
this
.
detailForm
[
formDescribeObj
.
name
+
item
]
let
label
=
this
.
detailForm
[
formDescribeObj
.
name
+
item
]
let
value
=
this
.
detailForm
[
formDescribeObj
.
contentName
+
item
]
let
value
=
this
.
detailForm
[
formDescribeObj
.
contentName
+
item
]
...
@@ -259,6 +269,8 @@ export default {
...
@@ -259,6 +269,8 @@ export default {
this
.
detailForm
[
formDescribeObj
.
name
]
+=
label
+
':'
+
value
+
' '
this
.
detailForm
[
formDescribeObj
.
name
]
+=
label
+
':'
+
value
+
' '
}
}
})
})
// 商品名称
this
.
detailForm
.
goodsName
=
this
.
detailForm
.
orderGoods
.
length
?
this
.
detailForm
.
orderGoods
.
map
(
item
=>
item
.
goodsName
).
join
(
','
)
:
'-'
this
.
formToRow
(
'detailFormData'
)
this
.
formToRow
(
'detailFormData'
)
})
})
},
},
...
...
src/views/seckillActivity/crowdFundList.vue
View file @
23becde
...
@@ -8,6 +8,11 @@
...
@@ -8,6 +8,11 @@
<div
class=
"container"
>
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"flex m-b-10 w-100-percent"
>
<span
class=
"table-title"
></span>
<el-button
:size=
"size"
class=
"default-blue-btn"
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"activity"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"activity"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"activityImg"
class=
"table-image"
slot-scope=
"scope"
>
<div
slot=
"activityImg"
class=
"table-image"
slot-scope=
"scope"
>
...
@@ -34,6 +39,7 @@
...
@@ -34,6 +39,7 @@
import
shareDialog
from
'../productGroup/components/shareDialog'
import
shareDialog
from
'../productGroup/components/shareDialog'
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
{
exportFn
}
from
'@/common/constant'
export
default
{
export
default
{
name
:
'crowdFundList'
,
name
:
'crowdFundList'
,
data
()
{
data
()
{
...
@@ -202,6 +208,10 @@ export default {
...
@@ -202,6 +208,10 @@ export default {
}
}
},
},
{
{
label
:
'粉丝'
,
prop
:
'fansAmount'
},
{
label
:
'分享'
,
label
:
'分享'
,
prop
:
'shareAmount'
prop
:
'shareAmount'
},
},
...
@@ -218,7 +228,7 @@ export default {
...
@@ -218,7 +228,7 @@ export default {
}
}
},
},
{
{
label
:
'
剩余
库存'
,
label
:
'库存'
,
prop
:
'goodsStock'
,
prop
:
'goodsStock'
,
width
:
110
width
:
110
},
},
...
@@ -372,15 +382,12 @@ export default {
...
@@ -372,15 +382,12 @@ export default {
})
})
},
},
//新增活动
handleExport
()
{
// addActivity() {
var
params
=
this
.
getParams
()
// this.$router.push('/seckillActivity/editCrowdFund/1')
this
.
$apis
.
seckillActivity
.
exportCrowdfundApi
(
params
).
then
(
res
=>
{
// },
exportFn
(
res
)
})
// // addOrEdit:1-新增;2-编辑;3-查看
},
// handleEdit(addOrEdit, row) {
// this.$router.push('/seckillActivity/editCrowdFund/' + addOrEdit + '/' + row.id)
// },
handleShare
(
row
)
{
handleShare
(
row
)
{
this
.
$apis
.
seckillActivity
.
getCrowdSharedApi
({
id
:
row
.
id
}).
then
(
res
=>
{
this
.
$apis
.
seckillActivity
.
getCrowdSharedApi
({
id
:
row
.
id
}).
then
(
res
=>
{
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
23becde
...
@@ -123,7 +123,7 @@
...
@@ -123,7 +123,7 @@
<div
slot=
"posterImg"
class=
"edit-tips m-t-8"
>
建议尺寸640*1008
</div>
<div
slot=
"posterImg"
class=
"edit-tips m-t-8"
>
建议尺寸640*1008
</div>
<div
class=
"form-describe-box"
slot=
"formDescribe"
>
<div
class=
"form-describe-box"
slot=
"formDescribe"
>
<el-checkbox-group
v-model=
"editForm.formDescribeCheck"
>
<el-checkbox-group
v-model=
"editForm.formDescribeCheck"
>
<el-checkbox
v-for=
"(item, index) in formDescribeCheckList"
:label=
"item.
name"
:key=
"index"
>
{{ item.name
}}
</el-checkbox>
<el-checkbox
v-for=
"(item, index) in formDescribeCheckList"
:label=
"item.
value"
:key=
"index"
>
{{ item.label
}}
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
<div
v-for=
"(item, index) in formDescribeList"
:key=
"index"
class=
"form-describe flex-default"
>
<div
v-for=
"(item, index) in formDescribeList"
:key=
"index"
class=
"form-describe flex-default"
>
<el-input
class=
"describe-input"
v-model=
"item.value"
placeholder=
"请输入"
maxlength=
"20"
></el-input>
<el-input
class=
"describe-input"
v-model=
"item.value"
placeholder=
"请输入"
maxlength=
"20"
></el-input>
...
@@ -150,8 +150,8 @@
...
@@ -150,8 +150,8 @@
<img
:src=
"editForm.activityBigImg || require('@/assets/seckillActivity/icon-default.png')"
/>
<img
:src=
"editForm.activityBigImg || require('@/assets/seckillActivity/icon-default.png')"
/>
<img
class=
"wechat-customer"
src=
"@/assets/seckillActivity/crowd-customer.png"
/>
<img
class=
"wechat-customer"
src=
"@/assets/seckillActivity/crowd-customer.png"
/>
<div
class=
"w-100-percent txt-center"
>
<div
class=
"w-100-percent txt-center"
>
<video
v-if=
"editForm.activityVideo
s
.length"
class=
"wechat-video"
controls
>
<video
v-if=
"editForm.activityVideo
List
.length"
class=
"wechat-video"
controls
>
<source
:src=
"editForm.activityVideo
s
[0]"
type=
"video/mp4"
/>
<source
:src=
"editForm.activityVideo
List
[0]"
type=
"video/mp4"
/>
</video>
</video>
</div>
</div>
<div
class=
"wechat-block"
>
<div
class=
"wechat-block"
>
...
@@ -264,12 +264,16 @@ export default {
...
@@ -264,12 +264,16 @@ export default {
activityAddressDetailName
:
''
,
activityAddressDetailName
:
''
,
activityBigImg
:
''
,
activityBigImg
:
''
,
activityVideos
:
[],
activityVideos
:
[],
activityVideoList
:
[],
activityDetail
:
''
,
activityDetail
:
''
,
fictitiousGroupQuantity
:
''
,
fictitiousGroupQuantity
:
''
,
fictitiousLadderQuantity
:
30
,
fictitiousLadderQuantity
:
30
,
fictitiousViewQuantity
:
''
,
fictitiousViewQuantity
:
''
,
forwardTitle
:
''
,
forwardTitle
:
''
,
posterImg
:
''
,
posterImg
:
''
,
// 1-否,2-是
selectCarNumberFlag
:
1
,
selectVehicleTypeFlag
:
1
,
formDescribeCheck
:
[]
formDescribeCheck
:
[]
// formDescribeFirst: '',
// formDescribeFirst: '',
// formDescribeSecond: '',
// formDescribeSecond: '',
...
@@ -349,12 +353,12 @@ export default {
...
@@ -349,12 +353,12 @@ export default {
// 表单设置
// 表单设置
formDescribeCheckList
:
[
formDescribeCheckList
:
[
{
{
name
:
'车牌号'
,
label
:
'车牌号'
,
value
:
''
value
:
'
selectCarNumberFlag
'
},
},
{
{
name
:
'品牌车型'
,
label
:
'品牌车型'
,
value
:
''
value
:
'
selectVehicleTypeFlag
'
}
}
],
],
describeNum
:
2
,
describeNum
:
2
,
...
@@ -575,7 +579,7 @@ export default {
...
@@ -575,7 +579,7 @@ export default {
},
},
{
{
label
:
'活动视频'
,
label
:
'活动视频'
,
name
:
'activityVideo
s
'
,
name
:
'activityVideo
List
'
,
type
:
'upload'
,
type
:
'upload'
,
uploadType
:
'video'
,
uploadType
:
'video'
,
suffixSlot
:
'activityVideos'
,
suffixSlot
:
'activityVideos'
,
...
@@ -587,9 +591,14 @@ export default {
...
@@ -587,9 +591,14 @@ export default {
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
loading
=
true
this
.
loading
=
true
this
.
$apis
.
common
this
.
$apis
.
common
.
uploadVideoApi
({
file
:
base64
})
.
upload
Funding
VideoApi
({
file
:
base64
})
.
then
(
res
=>
{
.
then
(
res
=>
{
this
.
editForm
[
targetItem
.
name
].
push
(
res
)
this
.
editForm
[
targetItem
.
name
].
push
(
res
.
vediourl
)
this
.
editForm
.
activityVideos
.
push
({
activityVideo
:
res
.
vediourl
,
activityVideoCoverImage
:
res
.
imgUrl
,
activityVideoTime
:
res
.
lengthInTime
})
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
...
@@ -652,13 +661,6 @@ export default {
...
@@ -652,13 +661,6 @@ export default {
label
:
'表单设置'
,
label
:
'表单设置'
,
name
:
'formDescribe'
,
name
:
'formDescribe'
,
addHtml
:
'formDescribe'
addHtml
:
'formDescribe'
},
{
label
:
'视频号链接'
,
name
:
''
,
width
:
'474px'
,
type
:
'input'
,
maxlength
:
300
}
}
]
]
}
}
...
@@ -1106,9 +1108,10 @@ export default {
...
@@ -1106,9 +1108,10 @@ export default {
if
(
info
.
activityAddressProvinceName
||
info
.
activityAddressCityName
)
{
if
(
info
.
activityAddressProvinceName
||
info
.
activityAddressCityName
)
{
this
.
$refs
.
configEditFormRef
.
$refs
.
provinceForm
[
0
].
init
(
info
.
activityAddressProvinceName
,
info
.
activityAddressCityName
)
this
.
$refs
.
configEditFormRef
.
$refs
.
provinceForm
[
0
].
init
(
info
.
activityAddressProvinceName
,
info
.
activityAddressCityName
)
}
}
this
.
editForm
.
activityVideoList
=
[]
// 活动视频
// 活动视频
if
(
info
.
activityVideos
&&
info
.
activityVideos
.
length
)
{
if
(
info
.
activityVideos
&&
info
.
activityVideos
.
length
)
{
this
.
editForm
.
activityVideo
s
=
info
.
activityVideos
.
map
(
item
=>
item
.
activityVideo
)
this
.
editForm
.
activityVideo
List
=
info
.
activityVideos
.
map
(
item
=>
item
.
activityVideo
)
}
}
// 活动详情
// 活动详情
if
(
info
.
activityDetail
)
{
if
(
info
.
activityDetail
)
{
...
@@ -1131,6 +1134,15 @@ export default {
...
@@ -1131,6 +1134,15 @@ export default {
}
}
}
}
// 表单设置
// 表单设置
this
.
editForm
.
formDescribeCheck
=
[]
this
.
editForm
.
selectCarNumberFlag
=
this
.
editForm
.
selectCarNumberFlag
||
1
this
.
editForm
.
selectVehicleTypeFlag
=
this
.
editForm
.
selectVehicleTypeFlag
||
1
var
checkList
=
[
'selectCarNumberFlag'
,
'selectVehicleTypeFlag'
]
checkList
.
forEach
(
item
=>
{
if
(
this
.
editForm
[
item
]
==
2
)
{
this
.
editForm
.
formDescribeCheck
.
push
(
item
)
}
})
this
.
formDescribeList
=
[]
this
.
formDescribeList
=
[]
Object
.
values
(
this
.
describeIdxToAttr
).
forEach
((
item
,
index
)
=>
{
Object
.
values
(
this
.
describeIdxToAttr
).
forEach
((
item
,
index
)
=>
{
if
(
this
.
editForm
[
'formDescribe'
+
item
])
{
if
(
this
.
editForm
[
'formDescribe'
+
item
])
{
...
@@ -1193,6 +1205,8 @@ export default {
...
@@ -1193,6 +1205,8 @@ export default {
param
.
specificationDetailList
.
push
(
obj
)
param
.
specificationDetailList
.
push
(
obj
)
})
})
}
}
// 视频
delete
param
.
activityVideoList
// 预估销量
// 预估销量
if
(
this
.
editForm
.
predictVolume
)
{
if
(
this
.
editForm
.
predictVolume
)
{
param
.
predictVolume
=
(
this
.
editForm
.
predictVolume
*
100
).
toFixed
(
0
)
param
.
predictVolume
=
(
this
.
editForm
.
predictVolume
*
100
).
toFixed
(
0
)
...
@@ -1202,6 +1216,10 @@ export default {
...
@@ -1202,6 +1216,10 @@ export default {
param
.
activityDetail
=
encodeURIComponent
(
this
.
editForm
.
activityDetail
)
param
.
activityDetail
=
encodeURIComponent
(
this
.
editForm
.
activityDetail
)
}
}
// 表单设置
// 表单设置
// 1-否,2-是
param
.
selectCarNumberFlag
=
param
.
formDescribeCheck
.
findIndex
(
item
=>
item
==
'selectCarNumberFlag'
)
!=
-
1
?
2
:
1
param
.
selectVehicleTypeFlag
=
param
.
formDescribeCheck
.
findIndex
(
item
=>
item
==
'selectVehicleTypeFlag'
)
!=
-
1
?
2
:
1
delete
param
.
formDescribeCheck
Object
.
values
(
this
.
describeIdxToAttr
).
forEach
((
item
,
idx
)
=>
{
Object
.
values
(
this
.
describeIdxToAttr
).
forEach
((
item
,
idx
)
=>
{
param
[
'formDescribe'
+
item
]
=
this
.
formDescribeList
.
length
>
idx
?
this
.
formDescribeList
[
idx
].
value
:
''
param
[
'formDescribe'
+
item
]
=
this
.
formDescribeList
.
length
>
idx
?
this
.
formDescribeList
[
idx
].
value
:
''
})
})
...
...
src/views/seckillActivity/index.vue
View file @
23becde
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<
template
>
<
template
>
<div
class=
"marketing"
>
<div
class=
"marketing"
>
<div
class=
"m-b-20"
>
<div
class=
"m-b-20"
>
<GLButton
:size=
"size"
type=
"primary"
class=
"el-icon-plus
"
@
click=
"addActivity()"
fn=
"新增秒杀活动"
mode=
"el-button"
>
新增秒杀活动
</GLButton>
<GLButton
:size=
"size"
class=
"default-blue-btn el-icon-plus"
type=
"default
"
@
click=
"addActivity()"
fn=
"新增秒杀活动"
mode=
"el-button"
>
新增秒杀活动
</GLButton>
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
...
...
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