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 93d1c5e2
authored
Feb 07, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
众筹紧急需求
1 parent
5a6604a8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
116 additions
and
48 deletions
src/api/modules/common.js
src/api/modules/orderManage.js
src/views/orderManage/index.vue
src/views/seckillActivity/crowdFundList.vue
src/views/seckillActivity/dataBoard.vue
src/views/seckillActivity/editCrowdFund.vue
src/api/modules/common.js
View file @
93d1c5e
...
@@ -172,4 +172,16 @@ const getSuperMerchantApi = params => {
...
@@ -172,4 +172,16 @@ const getSuperMerchantApi = params => {
})
})
}
}
export
default
{
getMerchantGoodsListApi
,
getGoodsListApi
,
uploadImgApi
,
uploadMusicApi
,
uploadVideoApi
,
uploadFundingVideoApi
,
getMerchantList
,
getSimpleMerchantList
,
getZoneListApi
,
getClassifyListApi
,
pictureUpload
,
querylabeltree
,
getCrowdTreeListApi
,
getStaffFollowerListApi
,
getMerchantInfoApi
,
getSuperMerchantApi
}
/**众筹活动订单配置开关(SAAS)【控制众筹订单列表部分字段0:展示;1:隐藏;】 */
const
getCrowdfundingOrderConfig
=
(
params
=
{})
=>
{
params
.
method
=
'scrm.api.shopmall.crowd.funding.order.config'
params
.
requestType
=
0
//0:门店;1:运营版
return
http
({
url
:
'/rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getMerchantGoodsListApi
,
getGoodsListApi
,
uploadImgApi
,
uploadMusicApi
,
uploadVideoApi
,
uploadFundingVideoApi
,
getMerchantList
,
getSimpleMerchantList
,
getZoneListApi
,
getClassifyListApi
,
pictureUpload
,
querylabeltree
,
getCrowdTreeListApi
,
getStaffFollowerListApi
,
getMerchantInfoApi
,
getSuperMerchantApi
,
getCrowdfundingOrderConfig
}
src/api/modules/orderManage.js
View file @
93d1c5e
...
@@ -137,4 +137,16 @@ const checkMerchartApi = params => {
...
@@ -137,4 +137,16 @@ const checkMerchartApi = params => {
})
})
}
}
export
default
{
getListApi
,
getCountApi
,
getOrderDetailApi
,
orderExportApi
,
writeOffApi
,
crowdFundWriteOffApi
,
crowdFundRefundApi
,
addDeliveryApi
,
examineDetailApi
,
examineAllowApi
,
confirmReceiptGoodsApi
,
checkMerchartApi
}
/**营销状态设为已完结 */
const
finishOrderStatus
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.weapp.order.status.finish'
return
http
({
url
:
'/rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
export
default
{
getListApi
,
getCountApi
,
getOrderDetailApi
,
orderExportApi
,
writeOffApi
,
crowdFundWriteOffApi
,
crowdFundRefundApi
,
addDeliveryApi
,
examineDetailApi
,
examineAllowApi
,
confirmReceiptGoodsApi
,
checkMerchartApi
,
finishOrderStatus
}
src/views/orderManage/index.vue
View file @
93d1c5e
This diff is collapsed.
Click to expand it.
src/views/seckillActivity/crowdFundList.vue
View file @
93d1c5e
...
@@ -10,69 +10,100 @@
...
@@ -10,69 +10,100 @@
fn=
"新增众筹"
fn=
"新增众筹"
mode=
"el-button"
mode=
"el-button"
>
新建众筹
</GLButton>
-->
>
新建众筹
</GLButton>
-->
<el-button
:size=
"size"
<el-button
:size=
"size"
type=
"default"
type=
"default"
class=
"default-blue-btn"
class=
"default-blue-btn"
@
click=
"handleJump"
>
订单管理
</el-button>
@
click=
"handleJump"
>
订单管理
</el-button>
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:rowNumber=
"1"
:formObj=
"searchForm"
:formObj=
"searchForm"
:formData=
"searchFormData"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"flex m-b-10 w-100-percent"
>
<div
class=
"flex m-b-10 w-100-percent"
>
<span
class=
"table-title"
></span>
<span
class=
"table-title"
></span>
<el-button
:size=
"size"
<el-button
:size=
"size"
class=
"default-blue-btn"
class=
"default-blue-btn"
type=
"default"
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
@
click=
"handleExport"
>
导出
</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<single-gltable
ref=
"activity"
<single-gltable
ref=
"activity"
:getListApi=
"getListApi"
:getListApi=
"getListApi"
:noDataImg=
"url"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
@
setTableFinishFun=
"setTableFinishFun"
<div
slot=
"activityImg"
>
<div
slot=
"activityImg"
class=
"table-image"
class=
"table-image"
slot-scope=
"scope"
>
slot-scope=
"scope"
<el-popover
placement=
"top"
>
<el-popover
placement=
"top"
width=
"160"
width=
"160"
trigger=
"hover"
trigger=
"hover"
popper-class=
"table-popover-block"
>
popper-class=
"table-popover-block"
<img
class=
"table-popover-img"
>
:src=
"scope.scope.activityImg"
/>
<img
<img
class=
"img-60 pointer"
class=
"table-popover-img"
:src=
"scope.scope.activityImg"
/>
<img
class=
"img-60 pointer"
slot=
"reference"
slot=
"reference"
:src=
"scope.scope.activityImg"
/>
:src=
"scope.scope.activityImg"
/>
</el-popover>
</el-popover>
</div>
</div>
<div
slot=
"linkText"
<div
slot-scope=
"scope"
>
slot=
"linkText"
<p
class=
"cursor-pointer"
slot-scope=
"scope"
@
click=
"handleDetail(scope)"
>
{{
scope
.
scope
[
scope
.
prop
]
||
0
}}
</p>
>
<template
v-if=
"scope.scope.incrementFlag == 'Y'"
>
{{
scope
.
scope
[
scope
.
prop
]
||
0
}}
</
template
>
<
template
v-else
>
<p
class=
"cursor-pointer"
@
click=
"handleDetail(scope)"
>
{{
scope
.
scope
[
scope
.
prop
]
||
0
}}
</p>
</
template
>
</div>
</div>
<div
class=
"table-btns"
<div
class=
"table-btns"
slot=
"auth-button"
slot=
"auth-button"
slot-scope=
"scope"
>
slot-scope=
"scope"
<GLTableButton
:buttonList=
"tableButtonList"
>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
:buttonNum=
"3"
></GLTableButton>
</div>
</div>
</single-gltable>
</single-gltable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
<!-- 众筹分享 -->
<!-- 众筹分享 -->
<crowdFundingShare
:isShareVisible=
"isShareVisible"
<crowdFundingShare
:isShareVisible=
"isShareVisible"
:shareForm=
"shareForm"
:shareForm=
"shareForm"
@
handleShareClose=
"handleShareClose"
></crowdFundingShare>
@
handleShareClose=
"handleShareClose"
></crowdFundingShare>
</div>
</div>
</template>
</template>
...
@@ -84,7 +115,7 @@ import url from '@/assets/empty.png'
...
@@ -84,7 +115,7 @@ import url from '@/assets/empty.png'
import
{
exportFn
}
from
'@/common/constant'
import
{
exportFn
}
from
'@/common/constant'
export
default
{
export
default
{
name
:
'crowdFundList'
,
name
:
'crowdFundList'
,
data
()
{
data
()
{
return
{
return
{
size
:
'small'
,
size
:
'small'
,
url
:
url
,
url
:
url
,
...
@@ -376,16 +407,16 @@ export default {
...
@@ -376,16 +407,16 @@ export default {
singleGltable
:
GLTable
singleGltable
:
GLTable
},
},
mounted
()
{
mounted
()
{
this
.
getOptionsList
(
'searchFormData'
)
this
.
getOptionsList
(
'searchFormData'
)
},
},
methods
:
{
methods
:
{
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
return
params
return
params
},
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
this
.
tableSearchForm
=
this
.
getParams
()
this
.
tableSearchForm
=
this
.
getParams
()
// delete this.tableSearchForm.createDate
// delete this.tableSearchForm.createDate
...
@@ -393,13 +424,13 @@ export default {
...
@@ -393,13 +424,13 @@ export default {
})
})
},
},
handleJump
(
path
,
row
=
{})
{
handleJump
(
path
,
row
=
{})
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/orderManage/index'
path
:
'/orderManage/index'
})
})
},
},
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
,
fn
)
{
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
,
fn
)
{
this
.
$confirm
(
txt
,
title
,
{
this
.
$confirm
(
txt
,
title
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
...
@@ -425,16 +456,16 @@ export default {
...
@@ -425,16 +456,16 @@ export default {
},
},
//开始
//开始
start
(
item
)
{
start
(
item
)
{
this
.
startOrEndConfirm
(
'开始'
,
item
)
this
.
startOrEndConfirm
(
'开始'
,
item
)
},
},
//结束
//结束
end
(
item
)
{
end
(
item
)
{
this
.
startOrEndConfirm
(
'结束'
,
item
)
this
.
startOrEndConfirm
(
'结束'
,
item
)
},
},
startOrEndConfirm
(
txt
,
row
)
{
startOrEndConfirm
(
txt
,
row
)
{
var
title
=
txt
var
title
=
txt
var
params
=
{}
var
params
=
{}
params
.
id
=
row
.
id
params
.
id
=
row
.
id
...
@@ -447,21 +478,21 @@ export default {
...
@@ -447,21 +478,21 @@ export default {
},
},
//置顶
//置顶
topping
(
row
)
{
topping
(
row
)
{
var
params
=
{}
var
params
=
{}
params
.
id
=
row
.
id
params
.
id
=
row
.
id
this
.
secondConfirm
(
'删除'
,
'确定置顶此活动?'
,
'seckillActivity'
,
'topActivityApi'
,
params
)
this
.
secondConfirm
(
'删除'
,
'确定置顶此活动?'
,
'seckillActivity'
,
'topActivityApi'
,
params
)
},
},
//删除
//删除
del
(
row
)
{
del
(
row
)
{
var
params
=
{}
var
params
=
{}
params
.
id
=
row
.
id
params
.
id
=
row
.
id
this
.
secondConfirm
(
'删除'
,
'确定删除此活动?'
,
'seckillActivity'
,
'deleteActivityApi'
,
params
)
this
.
secondConfirm
(
'删除'
,
'确定删除此活动?'
,
'seckillActivity'
,
'deleteActivityApi'
,
params
)
},
},
// 1-新增;2-编辑
// 1-新增;2-编辑
handleEdit
(
addOrEdit
,
row
)
{
handleEdit
(
addOrEdit
,
row
)
{
var
txtObj
=
{
var
txtObj
=
{
add
:
'新建'
,
add
:
'新建'
,
edit
:
'编辑'
,
edit
:
'编辑'
,
...
@@ -485,7 +516,7 @@ export default {
...
@@ -485,7 +516,7 @@ export default {
// console.log(JSON.parse(JSON.stringify(option)))
// console.log(JSON.parse(JSON.stringify(option)))
// },
// },
// 明细
// 明细
handleDetail
({
prop
,
scope
})
{
handleDetail
({
prop
,
scope
})
{
let
data
=
{
let
data
=
{
viewAmount
:
{
viewAmount
:
{
type
:
1
,
type
:
1
,
...
@@ -511,25 +542,25 @@ export default {
...
@@ -511,25 +542,25 @@ export default {
})
})
},
},
handleExport
()
{
handleExport
()
{
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
this
.
$apis
.
seckillActivity
.
exportCrowdfundApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
seckillActivity
.
exportCrowdfundApi
(
params
).
then
(
res
=>
{
exportFn
(
res
)
exportFn
(
res
)
})
})
},
},
handleShare
(
row
)
{
handleShare
(
row
)
{
this
.
$apis
.
seckillActivity
.
getCrowdSharedApi
({
id
:
row
.
id
}).
then
(
res
=>
{
this
.
$apis
.
seckillActivity
.
getCrowdSharedApi
({
id
:
row
.
id
}).
then
(
res
=>
{
this
.
shareForm
=
res
this
.
shareForm
=
res
this
.
handleShareClose
()
this
.
handleShareClose
()
})
})
},
},
handleShareClose
()
{
handleShareClose
()
{
this
.
isShareVisible
=
!
this
.
isShareVisible
this
.
isShareVisible
=
!
this
.
isShareVisible
},
},
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
if
(
refreshSigle
)
{
if
(
refreshSigle
)
{
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
index
=
this
[
formName
].
findIndex
(
k
=>
k
.
name
==
refreshSigle
)
var
index
=
this
[
formName
].
findIndex
(
k
=>
k
.
name
==
refreshSigle
)
...
@@ -555,11 +586,11 @@ export default {
...
@@ -555,11 +586,11 @@ export default {
}
}
},
},
handleSearch
()
{
handleSearch
()
{
this
.
$refs
.
activity
.
refreshTable
()
this
.
$refs
.
activity
.
refreshTable
()
},
},
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
activityName
:
''
,
activityName
:
''
,
activityStatus
:
''
activityStatus
:
''
...
@@ -567,7 +598,7 @@ export default {
...
@@ -567,7 +598,7 @@ export default {
this
.
handleSearch
()
this
.
handleSearch
()
},
},
setTableFinishFun
()
{
setTableFinishFun
()
{
//接收到的数据为空
//接收到的数据为空
this
.
$refs
.
activity
.
data
.
length
?
(
this
.
$refs
.
activity
.
tableHeightValues
=
''
)
:
this
.
$refs
.
activity
.
setTableHeightFun
()
this
.
$refs
.
activity
.
data
.
length
?
(
this
.
$refs
.
activity
.
tableHeightValues
=
''
)
:
this
.
$refs
.
activity
.
setTableHeightFun
()
}
}
...
...
src/views/seckillActivity/dataBoard.vue
View file @
93d1c5e
This diff is collapsed.
Click to expand it.
src/views/seckillActivity/editCrowdFund.vue
View file @
93d1c5e
...
@@ -447,6 +447,7 @@ export default {
...
@@ -447,6 +447,7 @@ export default {
forwardTitle
:
''
,
forwardTitle
:
''
,
posterImg
:
''
,
posterImg
:
''
,
// 1-否,2-是
// 1-否,2-是
orderEndDays
:
30
,
//订单完结时间天数
selectCarNumberFlag
:
2
,
selectCarNumberFlag
:
2
,
selectVehicleTypeFlag
:
2
,
selectVehicleTypeFlag
:
2
,
selectPhoneNumberFlag
:
2
,
selectPhoneNumberFlag
:
2
,
...
@@ -642,6 +643,18 @@ export default {
...
@@ -642,6 +643,18 @@ export default {
addHtml
:
'goodsHtml'
addHtml
:
'goodsHtml'
},
},
{
{
label
:
'订单完结时间天数'
,
name
:
'orderEndDays'
,
type
:
'select'
,
optionList
:
[
{
confId
:
30
,
confName
:
'30天'
},
{
confId
:
60
,
confName
:
'60天'
},
{
confId
:
90
,
confName
:
'90天'
},
],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
},
{
label
:
'关联产品类目项'
,
label
:
'关联产品类目项'
,
name
:
'goodsCategory'
,
name
:
'goodsCategory'
,
type
:
'select'
,
type
:
'select'
,
...
...
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