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 4c19ca24
authored
Feb 09, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' into 'v3.5.0'
合并3.4.2 See merge request
!425
2 parents
24193971
7016aaa6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
396 additions
and
202 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 @
4c19ca2
...
@@ -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 @
4c19ca2
...
@@ -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 @
4c19ca2
...
@@ -65,6 +65,7 @@
...
@@ -65,6 +65,7 @@
</div>
</div>
<!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<div
class=
"order-manage-table"
>
<div
class=
"order-manage-table"
>
<template
v-if=
"showTable"
>
<GLTable
<GLTable
ref=
"allOrderRef"
ref=
"allOrderRef"
:getListApi=
"getListApi"
:getListApi=
"getListApi"
...
@@ -180,6 +181,15 @@
...
@@ -180,6 +181,15 @@
</div>
</div>
</div>
</div>
<div
<div
slot=
"marketingStatus"
slot-scope=
"scope"
>
<
template
v-if=
"scope.scope.marketingStatus"
>
<span
:class=
"['table-circle', 'm-r-8', [1, 2].includes(scope.scope.marketingStatus) ? 'back-green' : 'back-grey']"
></span>
</
template
>
<span>
{{ baseData.marketingStatusList.map(item => item.confId).includes(scope.scope.marketingStatus + '') ? baseData.marketingStatusList.find(item => item.confId == scope.scope.marketingStatus).confName : '-' }}
</span>
</div>
<div
class=
"table-btns"
class=
"table-btns"
slot=
"auth-button"
slot=
"auth-button"
slot-scope=
"scope"
slot-scope=
"scope"
...
@@ -191,7 +201,9 @@
...
@@ -191,7 +201,9 @@
></GLTableButton>
></GLTableButton>
</div>
</div>
</GLTable>
</GLTable>
</template>
</div>
</div>
<!-- 表格区域 - 全部订单/售后订单 - end -->
<!-- 表格区域 - 全部订单/售后订单 - end -->
</div>
</div>
<!-- 快递信息 -->
<!-- 快递信息 -->
...
@@ -496,6 +508,7 @@ export default {
...
@@ -496,6 +508,7 @@ export default {
// type: 'input',
// type: 'input',
// maxlength: 100
// maxlength: 100
// },
// },
// {
// {
// label: '推荐人类型',
// label: '推荐人类型',
// name: 'shareStaffSource',
// name: 'shareStaffSource',
...
@@ -550,6 +563,15 @@ export default {
...
@@ -550,6 +563,15 @@ export default {
optionId
:
'optionId'
,
optionId
:
'optionId'
,
optionLabel
:
'optionLabel'
,
optionLabel
:
'optionLabel'
,
optionsName
:
'businessTypeList'
optionsName
:
'businessTypeList'
},
{
label
:
'营销状态'
,
name
:
'marketingStatus'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'marketingStatusList'
}
}
],
],
// 快递信息
// 快递信息
...
@@ -722,6 +744,21 @@ export default {
...
@@ -722,6 +744,21 @@ export default {
listeners
:
{
listeners
:
{
click
:
this
.
handleReceiving
click
:
this
.
handleReceiving
}
}
},
{
type
:
'el-button'
,
name
:
'设为已完结'
,
attrs
:
{
type
:
'text'
},
condition
:
row
=>
{
return
row
.
marketingStatus
&&
row
.
marketingStatus
==
3
},
listeners
:
{
click
:
row
=>
{
this
.
secondConfirm
(
'设为已完结'
,
'请确定将此订单营销状态设为已完结?'
,
'orderManage'
,
'finishOrderStatus'
,
{
subOrderCode
:
row
.
orderCode
},
false
)
}
}
}
}
],
],
// 表格
// 表格
...
@@ -729,7 +766,66 @@ export default {
...
@@ -729,7 +766,66 @@ export default {
tableParams
:
{
tableParams
:
{
listName
:
'list'
,
listName
:
'list'
,
tableOption
:
true
,
tableOption
:
true
,
tableColumns
:
[
tableColumns
:
[]
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
// 基本数据
baseData
:
{
searchOrderStatusList
:
orderManageStatusList
.
filter
(
item
=>
[
'1'
,
'3'
,
'21'
,
'22'
,
'6'
,
'9'
].
includes
(
item
.
confId
)),
searchAfterSaleStatusList
:
afterSaleStatusList
.
filter
(
item
=>
[
'1'
,
'6'
,
'7'
].
includes
(
item
.
confId
)),
orderStatusList
:
orderManageStatusList
,
afterSaleStatusList
:
afterSaleStatusList
,
orderSourceList
:
orderSourceList
,
deliveryTypeList
:
deliveryTypeList
,
refundTypeList
:
[
{
confId
:
'1'
,
confName
:
'退款退货'
},
{
confId
:
'2'
,
confName
:
'我要退款(无需退货)'
},
{
confId
:
'3'
,
confName
:
'众筹订单退款'
}
],
shareStaffSourceList
:
[
{
confId
:
'1'
,
confName
:
'个微'
},
{
confId
:
'2'
,
confName
:
'企微'
},
{
confId
:
'3'
,
confName
:
'员工'
}
],
testSheetTypeList
:
[
{
confId
:
'0'
,
confName
:
'否'
},
{
confId
:
'1'
,
confName
:
'是'
}
],
isOffSheetTypeList
:
[
{
confId
:
'0'
,
confName
:
'是'
},
{
confId
:
'1'
,
confName
:
'否'
}
],
businessTypeList
:
utils
.
deepClone
(
businessType
),
marketingStatusList
:
[
{
confId
:
'1'
,
confName
:
'已完结(自动)'
},
{
confId
:
'2'
,
confName
:
'已完结(手动)'
},
{
confId
:
'3'
,
confName
:
'未完结'
},
{
confId
:
'4'
,
confName
:
'已取消'
}
],
},
showTable
:
false
}
},
created
()
{
// this.checkMerchant()
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
this
.
merchantModel
=
this
.
$globalState
.
session
.
merchantModel
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
if
(
this
.
merchantModel
==
2
&&
this
.
accountLevel
==
4
)
{
this
.
initParams
()
}
}
},
mounted
()
{
this
.
getCrowdfundingOrderConfig
()
// this.getCount()
this
.
getOptionsList
(
'searchFormData'
)
},
methods
:
{
async
getCrowdfundingOrderConfig
()
{
let
tableColumns
=
[
{
{
label
:
'客户名称'
,
label
:
'客户名称'
,
prop
:
'customerName'
,
prop
:
'customerName'
,
...
@@ -738,45 +834,51 @@ export default {
...
@@ -738,45 +834,51 @@ export default {
return
cellValue
.
customerName
||
'-'
return
cellValue
.
customerName
||
'-'
}
}
},
},
//
{
{
//
label: '手机号',
label
:
'手机号'
,
//
prop: 'customerPhone',
prop
:
'customerPhone'
,
//
width: 160,
width
:
160
,
//
formatter: cellValue => {
formatter
:
cellValue
=>
{
//
return cellValue.customerPhone || '-'
return
cellValue
.
customerPhone
||
'-'
//
}
}
//
},
},
//
{
{
//
label: '其他',
label
:
'其他'
,
//
prop: 'otherInformation',
prop
:
'otherInformation'
,
//
width: 210
width
:
210
//
},
},
{
{
label
:
'微信名称'
,
label
:
'微信名称'
,
prop
:
'weChatName'
,
prop
:
'weChatName'
,
addHtml
:
'weChatName'
,
addHtml
:
'weChatName'
,
width
:
210
width
:
210
},
},
// {
{
// label: '推荐人',
label
:
'推荐人'
,
// prop: 'shareStaffName',
prop
:
'shareStaffName'
,
// width: 210,
width
:
210
,
// addHtml: 'shareStaffName'
addHtml
:
'shareStaffName'
// },
},
// {
{
// label: '指派人',
label
:
'推荐人ID'
,
// prop: 'assignName',
name
:
'shareStaffId'
,
// width: 210,
prop
:
'shareStaffId'
,
// addHtml: 'assignName'
width
:
210
,
// },
},
// {
{
// label: '推荐人手机号',
label
:
'指派人'
,
// prop: 'shareStaffPhone',
prop
:
'assignName'
,
// width: 160,
width
:
210
,
// formatter: cellValue => {
addHtml
:
'assignName'
// return cellValue.shareStaffPhone || '-'
},
// }
{
// },
label
:
'推荐人手机号'
,
prop
:
'shareStaffPhone'
,
width
:
160
,
formatter
:
cellValue
=>
{
return
cellValue
.
shareStaffPhone
||
'-'
}
},
{
{
label
:
'订单时间'
,
label
:
'订单时间'
,
prop
:
'createdDate'
,
prop
:
'createdDate'
,
...
@@ -793,20 +895,20 @@ export default {
...
@@ -793,20 +895,20 @@ export default {
return
cellValue
.
payDate
?
dayjs
(
cellValue
.
payDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
return
cellValue
.
payDate
?
dayjs
(
cellValue
.
payDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
}
}
},
},
//
{
{
//
label: '核销时间',
label
:
'核销时间'
,
//
prop: 'verificationDate',
prop
:
'verificationDate'
,
//
width: '180',
width
:
'180'
,
//
formatter: cellValue => {
formatter
:
cellValue
=>
{
//
return cellValue.verificationDate ? dayjs(cellValue.verificationDate).format('YYYY-MM-DD HH:mm:ss') : '-'
return
cellValue
.
verificationDate
?
dayjs
(
cellValue
.
verificationDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
//
}
}
//
},
},
//
{
{
//
label: '车架号',
label
:
'车架号'
,
//
prop: 'vinNo',
prop
:
'vinNo'
,
//
width: 130,
width
:
130
,
//
addHtml: 'vinNo'
addHtml
:
'vinNo'
//
},
},
{
{
label
:
'订单状态'
,
label
:
'订单状态'
,
prop
:
'orderStatus'
,
prop
:
'orderStatus'
,
...
@@ -836,7 +938,7 @@ export default {
...
@@ -836,7 +938,7 @@ export default {
}
}
},
},
{
{
label
:
'支付总价
/元'
,
label
:
'支付定金
/元'
,
prop
:
'payPrice'
,
prop
:
'payPrice'
,
width
:
'120'
,
width
:
'120'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
...
@@ -880,6 +982,12 @@ export default {
...
@@ -880,6 +982,12 @@ export default {
}
}
},
},
{
{
label
:
'营销状态'
,
name
:
'marketingStatus'
,
width
:
180
,
addHtml
:
'marketingStatus'
,
},
{
label
:
'售后状态'
,
label
:
'售后状态'
,
prop
:
'afterSaleStatus'
,
prop
:
'afterSaleStatus'
,
width
:
'100'
,
width
:
'100'
,
...
@@ -909,55 +1017,23 @@ export default {
...
@@ -909,55 +1017,23 @@ export default {
}
}
}
}
]
]
},
try
{
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
(),
// 基本数据
filterList
=
[
'customerPhone'
,
'otherInformation'
,
'shareStaffName'
,
'assignName'
,
'shareStaffPhone'
,
'verificationDate'
,
'vinNo'
,
'afterSaleStatus'
]
baseData
:
{
if
(
res
==
1
)
{
searchOrderStatusList
:
orderManageStatusList
.
filter
(
item
=>
[
'1'
,
'3'
,
'21'
,
'22'
,
'6'
,
'9'
].
includes
(
item
.
confId
)),
for
(
let
i
=
0
;
i
<
tableColumns
.
length
;
i
++
)
{
searchAfterSaleStatusList
:
afterSaleStatusList
.
filter
(
item
=>
[
'1'
,
'6'
,
'7'
].
includes
(
item
.
confId
)),
if
(
filterList
.
includes
(
tableColumns
[
i
].
prop
))
{
orderStatusList
:
orderManageStatusList
,
tableColumns
.
splice
(
i
,
1
)
afterSaleStatusList
:
afterSaleStatusList
,
i
--
orderSourceList
:
orderSourceList
,
deliveryTypeList
:
deliveryTypeList
,
refundTypeList
:
[
{
confId
:
'1'
,
confName
:
'退款退货'
},
{
confId
:
'2'
,
confName
:
'我要退款(无需退货)'
},
{
confId
:
'3'
,
confName
:
'众筹订单退款'
}
],
shareStaffSourceList
:
[
{
confId
:
'1'
,
confName
:
'个微'
},
{
confId
:
'2'
,
confName
:
'企微'
},
{
confId
:
'3'
,
confName
:
'员工'
}
],
testSheetTypeList
:
[
{
confId
:
'0'
,
confName
:
'否'
},
{
confId
:
'1'
,
confName
:
'是'
}
],
isOffSheetTypeList
:
[
{
confId
:
'0'
,
confName
:
'是'
},
{
confId
:
'1'
,
confName
:
'否'
}
],
businessTypeList
:
utils
.
deepClone
(
businessType
)
}
}
}
}
},
created
()
{
// this.checkMerchant()
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
this
.
merchantModel
=
this
.
$globalState
.
session
.
merchantModel
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
if
(
this
.
merchantModel
==
2
&&
this
.
accountLevel
==
4
)
{
this
.
initParams
()
}
}
}
catch
(
error
)
{
console
.
log
(
error
)
}
}
this
.
tableParams
.
tableColumns
=
tableColumns
this
.
showTable
=
true
},
},
mounted
()
{
// this.getCount()
this
.
getOptionsList
(
'searchFormData'
)
},
methods
:
{
initParams
()
{
initParams
()
{
const
cell
=
{
const
cell
=
{
label
:
'线下订单'
,
label
:
'线下订单'
,
...
...
src/views/seckillActivity/crowdFundList.vue
View file @
4c19ca2
...
@@ -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 @
4c19ca2
...
@@ -3,33 +3,40 @@
...
@@ -3,33 +3,40 @@
<div
class=
"data-board-box"
>
<div
class=
"data-board-box"
>
<p
class=
"edit-title"
>
数据看板
</p>
<p
class=
"edit-title"
>
数据看板
</p>
<div
class=
"p-20"
>
<div
class=
"p-20"
>
<GLCombiForm
ref=
"dataRef"
<GLCombiForm
ref=
"dataRef"
:rowNumber=
"1"
:rowNumber=
"1"
:formObj=
"searchForm"
:formObj=
"searchForm"
:formData=
"searchFormData"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
></GLCombiForm>
@
handleOk=
"handleSearch"
></GLCombiForm>
<div
class=
"data-view"
>
<div
class=
"data-view"
>
<template
v-for=
"(item, index) in dataList"
>
<template
v-for=
"(item, index) in dataList"
>
<div
:key=
"index"
<div
class=
"item"
>
:key=
"index"
class=
"item"
>
<div
class=
"name"
>
<div
class=
"name"
>
{{
item
.
name
}}
{{
item
.
name
}}
<el-popover
class=
"tips"
<el-popover
class=
"tips"
placement=
"top"
placement=
"top"
width=
"260"
width=
"260"
trigger=
"hover"
trigger=
"hover"
:content=
"item.tips"
>
:content=
"item.tips"
<img
slot=
"reference"
>
<img
slot=
"reference"
class=
"tips-icon"
class=
"tips-icon"
src=
"@/components/glsx-combi-form/images/icon-tip.png"
/>
src=
"@/components/glsx-combi-form/images/icon-tip.png"
/>
</el-popover>
</el-popover>
</div>
</div>
<div
class=
"value"
>
{{
dataBoard
[
item
.
key
]
||
0
}}
</div>
<div
class=
"value"
>
{{
dataBoard
[
item
.
key
]
||
0
}}
</div>
<template
v-if=
"item.half"
>
<template
v-if=
"item.half"
>
<div
class=
"half"
>
<div
class=
"half"
>
日环比:
日环比:
<div
<div
:class=
"['icon',
{ up: dataBoard[item.half] > 0 }, { down: dataBoard[item.half]
< 0
}]"
>
:class=
"['icon',
{ up: dataBoard[item.half] > 0 }, { down: dataBoard[item.half]
< 0
}]"
>
</div>
</div>
<span
class=
"num"
>
{{
Math
.
abs
(
dataBoard
[
item
.
half
]).
toFixed
(
2
)
||
0
}}
%
</span>
<span
class=
"num"
>
{{
Math
.
abs
(
dataBoard
[
item
.
half
]).
toFixed
(
2
)
||
0
}}
%
</span>
</div>
</div>
...
@@ -39,23 +46,30 @@
...
@@ -39,23 +46,30 @@
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 可配置显示隐藏 👇 -->
<
template
v-if=
"showTable"
>
<div
class=
"data-board-box"
>
<div
class=
"data-board-box"
>
<p
class=
"edit-title"
>
员工排行榜
</p>
<p
class=
"edit-title"
>
员工排行榜
</p>
<div
class=
"p-20"
>
<div
class=
"p-20"
>
<GLCombiForm
ref=
"rankRef"
<GLCombiForm
ref=
"rankRef"
:rowNumber=
"1"
:rowNumber=
"1"
:formObj=
"searchRankForm"
:formObj=
"searchRankForm"
:formData=
"searchFormRankData"
:formData=
"searchFormRankData"
@
handleOk=
"handleSearchRank"
@
handleOk=
"handleSearchRank"
@
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('rank')"
>
导出
</el-button>
@
click=
"handleExport('rank')"
>
导出
</el-button>
</div>
</div>
<GLTable
ref=
"dataTableRef"
<GLTable
ref=
"dataTableRef"
:getListApi=
"getListApi"
:getListApi=
"getListApi"
:noDataImg=
"url"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:searchForm=
"tableSearchForm"
...
@@ -63,20 +77,29 @@
...
@@ -63,20 +77,29 @@
:pageConf=
"pageConf"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
@
setTableFinishFun=
"setTableFinishFun"
:hasNum=
"false"
>
:hasNum=
"false"
<div
slot=
"shareName"
>
<div
slot=
"shareName"
class=
"flex-align"
class=
"flex-align"
slot-scope=
"scope"
>
slot-scope=
"scope"
>
<template
v-if=
"scope.scope.shareAvatar"
>
<template
v-if=
"scope.scope.shareAvatar"
>
<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.shareAvatar"
/>
<img
<img
class=
"img-36 pointer"
class=
"table-popover-img"
:src=
"scope.scope.shareAvatar"
/>
<img
class=
"img-36 pointer"
slot=
"reference"
slot=
"reference"
:src=
"scope.scope.shareAvatar"
/>
:src=
"scope.scope.shareAvatar"
/>
</el-popover>
</el-popover>
</
template
>
</
template
>
<span
class=
"m-l-10"
>
{{ scope.scope.shareName }}
</span>
<span
class=
"m-l-10"
>
{{ scope.scope.shareName }}
</span>
...
@@ -85,37 +108,50 @@
...
@@ -85,37 +108,50 @@
</GLTable>
</GLTable>
</div>
</div>
</div>
</div>
</template>
<div
class=
"data-board-box"
>
<div
class=
"data-board-box"
>
<p
class=
"edit-title"
>
每日订单量统计
</p>
<p
class=
"edit-title"
>
每日订单量统计
</p>
<div
class=
"p-20"
>
<div
class=
"p-20"
>
<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('dailyOrders')"
>
导出
</el-button>
@
click=
"handleExport('dailyOrders')"
>
导出
</el-button>
</div>
</div>
<el-table
v-if=
"DailyOrderQuantityList.length"
<el-table
v-if=
"DailyOrderQuantityList.length"
:data=
"DailyOrderQuantityListFormat"
:data=
"DailyOrderQuantityListFormat"
style=
"width: 100%"
>
style=
"width: 100%"
<el-table-column
:formatter=
"formatterHeader"
>
label=
""
></el-table-column>
<el-table-column
:formatter=
"formatterHeader"
label=
""
></el-table-column>
<!-- width="140px" -->
<!-- width="140px" -->
<el-table-column
v-for=
"(item, index) in DailyOrderQuantityList"
<el-table-column
v-for=
"(item, index) in DailyOrderQuantityList"
:key=
"index"
:key=
"index"
:prop=
"item"
:prop=
"item"
:label=
"item.day"
>
:label=
"item.day"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
$index
?
item
.
currentOrderQuantity
:
item
.
specificDate
}}
</span>
<span>
{{
scope
.
$index
?
item
.
currentOrderQuantity
:
item
.
specificDate
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:formatter=
"formatterEnd"
<el-table-column
:formatter=
"formatterEnd"
fixed=
"right"
fixed=
"right"
label=
"总计"
></el-table-column>
label=
"总计"
></el-table-column>
</el-table>
</el-table>
<div
v-else
>
<div
v-else
>
<img
src=
"url"
<img
alt=
""
/>
src=
"url"
alt=
""
/>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -141,25 +177,33 @@
...
@@ -141,25 +177,33 @@
单
单
</span>
</span>
</span>
</span>
<el-button
:size=
"size"
<el-button
:size=
"size"
class=
"default-blue-btn"
class=
"default-blue-btn"
type=
"default"
type=
"default"
@
click=
"handleExport('liveData')"
>
导出
</el-button>
@
click=
"handleExport('liveData')"
>
导出
</el-button>
</div>
</div>
<!-- :searchForm="tableSearchForm" -->
<!-- :searchForm="tableSearchForm" -->
<GLTable
ref=
"dataTableRefDetailPage"
<GLTable
ref=
"dataTableRefDetailPage"
:getListApi=
"getLiveDetailPage"
:getListApi=
"getLiveDetailPage"
:noDataImg=
"url"
:noDataImg=
"url"
:tableParams=
"liveTableParams"
:tableParams=
"liveTableParams"
:searchForm=
"LiveTableSearchForm"
:searchForm=
"LiveTableSearchForm"
:pageConf=
"pageConf"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
:beforeSearchFn=
"beforeSearchFn"
<div
slot=
"weChatName"
>
<div
slot=
"weChatName"
class=
"flex-align"
class=
"flex-align"
slot-scope=
"scope"
>
slot-scope=
"scope"
<img
v-if=
"scope.scope.avatar"
>
<img
v-if=
"scope.scope.avatar"
class=
"img-36 pointer img-circle"
class=
"img-36 pointer img-circle"
:src=
"scope.scope.avatar"
/>
:src=
"scope.scope.avatar"
/>
<span
class=
"m-l-10"
>
{{ scope.scope.nickname }}
</span>
<span
class=
"m-l-10"
>
{{ scope.scope.nickname }}
</span>
<span
v-if=
"!scope.scope.avatar && !scope.scope.nickname"
>
-
</span>
<span
v-if=
"!scope.scope.avatar && !scope.scope.nickname"
>
-
</span>
</div>
</div>
...
@@ -198,7 +242,7 @@ const dataList = [
...
@@ -198,7 +242,7 @@ const dataList = [
export
default
{
export
default
{
name
:
'ScrmMicroMarketingDataBoard'
,
name
:
'ScrmMicroMarketingDataBoard'
,
data
()
{
data
()
{
return
{
return
{
url
,
url
,
dataList
,
dataList
,
...
@@ -341,24 +385,26 @@ export default {
...
@@ -341,24 +385,26 @@ export default {
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
dataBoard
:
{},
dataBoard
:
{},
activityId
:
''
,
activityId
:
''
,
liveInfo
:
{}
liveInfo
:
{},
showTable
:
false
}
}
},
},
computed
:
{
computed
:
{
LiveTableSearchForm
()
{
LiveTableSearchForm
()
{
return
{
return
{
activityId
:
this
.
activityId
activityId
:
this
.
activityId
}
}
}
}
},
},
created
()
{
created
()
{
this
.
activityId
=
this
.
$route
.
query
.
activityId
this
.
activityId
=
this
.
$route
.
query
.
activityId
// 获取每日订单量统计
// 获取每日订单量统计
this
.
getDailyOrderQuantityStatistics
()
this
.
getDailyOrderQuantityStatistics
()
this
.
getDataBoardApi
()
this
.
getDataBoardApi
()
this
.
getLiveData
()
this
.
getLiveData
()
this
.
getCrowdfundingOrderConfig
()
},
},
mounted
()
{
mounted
()
{
let
[
dataResetBtn
]
=
this
.
$refs
.
dataRef
.
$el
.
getElementsByClassName
(
'el-button--default'
)
let
[
dataResetBtn
]
=
this
.
$refs
.
dataRef
.
$el
.
getElementsByClassName
(
'el-button--default'
)
// [rankResetBtn] = this.$refs.rankRef.$el.getElementsByClassName('el-button--default')
// [rankResetBtn] = this.$refs.rankRef.$el.getElementsByClassName('el-button--default')
if
(
dataResetBtn
)
dataResetBtn
.
style
.
display
=
'none'
if
(
dataResetBtn
)
dataResetBtn
.
style
.
display
=
'none'
...
@@ -366,7 +412,11 @@ export default {
...
@@ -366,7 +412,11 @@ export default {
},
},
methods
:
{
methods
:
{
getLiveData
()
{
async
getCrowdfundingOrderConfig
()
{
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
()
this
.
showTable
=
res
!=
1
},
getLiveData
()
{
this
.
$apis
.
seckillActivity
this
.
$apis
.
seckillActivity
.
liveroomOverview
({
activityId
:
this
.
activityId
})
.
liveroomOverview
({
activityId
:
this
.
activityId
})
.
then
(
result
=>
{
.
then
(
result
=>
{
...
@@ -377,7 +427,7 @@ export default {
...
@@ -377,7 +427,7 @@ export default {
})
})
.
catch
(
err
=>
{
})
.
catch
(
err
=>
{
})
},
},
getDataBoardApi
()
{
getDataBoardApi
()
{
// { activityId } = this.$route.query,
// { activityId } = this.$route.query,
let
{
statDate
}
=
this
.
searchForm
let
{
statDate
}
=
this
.
searchForm
this
.
$apis
.
seckillActivity
.
getDataBoardApi
({
activityId
:
this
.
activityId
,
statDimension
:
dayjs
(
statDate
).
format
(
'YYYY-MM-DD'
)
}).
then
(
res
=>
{
this
.
$apis
.
seckillActivity
.
getDataBoardApi
({
activityId
:
this
.
activityId
,
statDimension
:
dayjs
(
statDate
).
format
(
'YYYY-MM-DD'
)
}).
then
(
res
=>
{
...
@@ -387,12 +437,12 @@ export default {
...
@@ -387,12 +437,12 @@ export default {
// 直播间数据统计
// 直播间数据统计
// this.getLiveBroadcastRoomDataStatistics()
// this.getLiveBroadcastRoomDataStatistics()
},
},
handleReset
()
{
handleReset
()
{
this
.
searchRankForm
=
this
.
$options
.
data
.
call
(
this
).
searchRankForm
this
.
searchRankForm
=
this
.
$options
.
data
.
call
(
this
).
searchRankForm
// this.$refs.rankRef.refreshTable()
// this.$refs.rankRef.refreshTable()
// this.handleSearch()
// this.handleSearch()
},
},
getDailyOrderQuantityStatistics
()
{
getDailyOrderQuantityStatistics
()
{
this
.
$apis
.
seckillActivity
this
.
$apis
.
seckillActivity
.
getDailyOrderQuantityStatistics
({
id
:
this
.
activityId
})
.
getDailyOrderQuantityStatistics
({
id
:
this
.
activityId
})
.
then
(
result
=>
{
.
then
(
result
=>
{
...
@@ -414,20 +464,20 @@ export default {
...
@@ -414,20 +464,20 @@ export default {
console
.
log
(
err
)
console
.
log
(
err
)
})
})
},
},
getParams
()
{
getParams
()
{
let
{
activityId
}
=
this
.
$route
.
query
,
let
{
activityId
}
=
this
.
$route
.
query
,
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchRankForm
))
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchRankForm
))
console
.
log
(
params
)
console
.
log
(
params
)
params
.
activityId
=
activityId
params
.
activityId
=
activityId
return
params
return
params
},
},
handleSearch
()
{
handleSearch
()
{
this
.
getDataBoardApi
()
this
.
getDataBoardApi
()
},
},
handleSearchRank
()
{
handleSearchRank
()
{
this
.
$refs
.
dataTableRef
.
refreshTable
()
this
.
$refs
.
dataTableRef
.
refreshTable
()
},
},
handleExport
(
name
)
{
handleExport
(
name
)
{
if
(
name
==
'rank'
)
{
if
(
name
==
'rank'
)
{
let
params
=
this
.
getParams
()
let
params
=
this
.
getParams
()
this
.
$apis
.
seckillActivity
.
exportRankListApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
seckillActivity
.
exportRankListApi
(
params
).
then
(
res
=>
{
...
@@ -446,20 +496,20 @@ export default {
...
@@ -446,20 +496,20 @@ export default {
}
}
},
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
this
.
tableSearchForm
=
this
.
getParams
()
this
.
tableSearchForm
=
this
.
getParams
()
resolve
()
resolve
()
})
})
},
},
setTableFinishFun
()
{
setTableFinishFun
()
{
//接收到的数据为空
//接收到的数据为空
this
.
$refs
.
dataTableRef
.
data
.
length
?
(
this
.
$refs
.
dataTableRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
dataTableRef
.
setTableHeightFun
()
this
.
$refs
.
dataTableRef
.
data
.
length
?
(
this
.
$refs
.
dataTableRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
dataTableRef
.
setTableHeightFun
()
},
},
formatterHeader
(
row
,
column
,
cellValue
,
index
)
{
formatterHeader
(
row
,
column
,
cellValue
,
index
)
{
return
index
==
0
?
'活动日期'
:
'订单量'
return
index
==
0
?
'活动日期'
:
'订单量'
},
},
formatterEnd
(
row
,
column
,
cellValue
,
index
)
{
formatterEnd
(
row
,
column
,
cellValue
,
index
)
{
return
index
==
1
?
this
.
totalCount
:
''
return
index
==
1
?
this
.
totalCount
:
''
}
}
}
}
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
4c19ca2
...
@@ -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