Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-activity-center
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 8bb3aa03
authored
Feb 09, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' into v3.5.0-0227
2 parents
14f3cb60
8a903384
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
603 additions
and
436 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 @
8bb3aa0
...
@@ -173,4 +173,17 @@ const getMerchantStaff = params => {
...
@@ -173,4 +173,17 @@ const getMerchantStaff = params => {
})
})
}
}
export
default
{
getMerchantGoodsListApi
,
getGoodsListApi
,
uploadImgApi
,
uploadMusicApi
,
uploadVideoApi
,
uploadFundingVideoApi
,
getMerchantList
,
getSimpleMerchantList
,
getZoneListApi
,
getClassifyListApi
,
pictureUpload
,
querylabeltree
,
getCrowdTreeListApi
,
getStaffFollowerListApi
,
getMerchantInfoApi
,
getMerchantStaff
}
/**众筹活动订单配置开关(SAAS)【控制众筹订单列表部分字段0:展示;1:隐藏;】 */
const
getCrowdfundingOrderConfig
=
(
params
=
{})
=>
{
params
.
method
=
'scrm.api.shopmall.crowd.funding.order.config'
params
.
requestType
=
1
//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
,
getMerchantStaff
,
getCrowdfundingOrderConfig
}
src/api/modules/orderManage.js
View file @
8bb3aa0
...
@@ -199,4 +199,16 @@ const importCrowdFundingOrder = params => {
...
@@ -199,4 +199,16 @@ const importCrowdFundingOrder = params => {
})
})
}
}
export
default
{
getInstallInfo
,
orderVerfication
,
signerOrder
,
getListApi
,
getCountApi
,
getOrderDetailApi
,
orderExportApi
,
writeOffApi
,
crowdFundWriteOffApi
,
crowdFundRefundApi
,
addDeliveryApi
,
examineDetailApi
,
examineAllowApi
,
confirmReceiptGoodsApi
,
updateOrderType
,
batchRefundOrder
,
importCrowdFundingOrder
}
/**营销状态设为已完结 */
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
{
getInstallInfo
,
orderVerfication
,
signerOrder
,
getListApi
,
getCountApi
,
getOrderDetailApi
,
orderExportApi
,
writeOffApi
,
crowdFundWriteOffApi
,
crowdFundRefundApi
,
addDeliveryApi
,
examineDetailApi
,
examineAllowApi
,
confirmReceiptGoodsApi
,
updateOrderType
,
batchRefundOrder
,
importCrowdFundingOrder
,
finishOrderStatus
}
src/views/orderManage/index.vue
View file @
8bb3aa0
...
@@ -57,147 +57,158 @@
...
@@ -57,147 +57,158 @@
:disabled=
"selectList.length == 0"
:disabled=
"selectList.length == 0"
>
批量退款
</el-button>
>
批量退款
</el-button>
</div>
</div>
<GLTable
<
template
v-if=
"showTable"
>
ref=
"allOrderRef"
<GLTable
:getListApi=
"getListApi"
ref=
"allOrderRef"
:noDataImg=
"url"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:noDataImg=
"url"
:tableParams=
"tableParams"
:searchForm=
"tableSearchForm"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
:beforeSearchFn=
"beforeSearchFn"
:pageConf=
"pageConf"
@
setTableFinishFun=
"setTableFinishFun"
:beforeSearchFn=
"beforeSearchFn"
@
selectionTable=
"selectionTable"
@
setTableFinishFun=
"setTableFinishFun"
>
@
selectionTable=
"selectionTable"
<div
slot=
"weChatName"
class=
"flex-align"
slot-scope=
"scope"
>
>
<img
<div
v-if=
"scope.scope.weChatImageUrl"
slot=
"weChatName"
class=
"img-36 pointer img-circle"
class=
"flex-align"
:src=
"scope.scope.weChatImageUrl"
slot-scope=
"scope"
/>
<span
class=
"m-l-10"
>
{{ scope.scope.weChatName }}
</span>
<span
v-if=
"!scope.scope.shareAvatar && !scope.scope.weChatName"
>
-
</span>
</div>
<
template
slot=
"vinNo"
slot-scope=
"scope"
>
{{
Array
.
isArray
(
scope
.
scope
.
vinNo
)
?
scope
.
scope
.
vinNo
[
0
]
:
scope
.
scope
.
vinNo
}}
<el-popover
popper-class=
"order-table-popover"
placement=
"right-start"
trigger=
"click"
>
>
<p
v-for=
"(item, index) in scope.scope.vinNo"
:key=
"index"
>
{{
item
}}
</p>
<span
class=
"car-no"
slot=
"reference"
v-show=
"Array.isArray(scope.scope.vinNo)"
>
...(
{{
scope
.
scope
.
vinNo
.
length
-
1
}}
)
</span>
</el-popover>
</
template
>
<div
slot=
"orderStatus"
slot-scope=
"scope"
>
<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>
</div>
<div
slot=
"shareStaffName"
class=
"table-image"
slot-scope=
"scope"
>
<div>
<img
<img
v-if=
"scope.scope.
shareStaff
ImageUrl"
v-if=
"scope.scope.
weChat
ImageUrl"
class=
"img-36 pointer img-circle"
class=
"img-36 pointer img-circle"
style=
"vertical-align: middle"
:src=
"scope.scope.weChatImageUrl"
slot=
"reference"
:src=
"scope.scope.shareStaffImageUrl"
/>
/>
<span
class=
"m-l-10"
>
<span
class=
"m-l-10"
>
{{
scope
.
scope
.
weChatName
}}
</span>
<span>
{{ scope.scope.shareStaffName }}
</span>
<span
v-if=
"!scope.scope.shareAvatar && !scope.scope.weChatName"
>
-
</span>
<span
</div>
class=
"txt-green"
<template
v-if=
"scope.scope.shareStaffSource == 1"
slot=
"vinNo"
>
@个微
</span>
slot-scope=
"scope"
<span
>
class=
"txt-orange"
{{
Array
.
isArray
(
scope
.
scope
.
vinNo
)
?
scope
.
scope
.
vinNo
[
0
]
:
scope
.
scope
.
vinNo
}}
v-if=
"scope.scope.shareStaffSource == 2"
<el-popover
>
@企微
</span>
popper-class=
"order-table-popover"
placement=
"right-start"
trigger=
"click"
>
<p
v-for=
"(item, index) in scope.scope.vinNo"
:key=
"index"
>
{{
item
}}
</p>
<span
<span
class=
"txt-blue"
class=
"car-no"
v-if=
"scope.scope.shareStaffSource == 3"
slot=
"reference"
>
@员工
</span>
v-show=
"Array.isArray(scope.scope.vinNo)"
</span>
>
...(
{{
scope
.
scope
.
vinNo
.
length
-
1
}}
)
</span>
</el-popover>
</
template
>
<div
slot=
"orderStatus"
slot-scope=
"scope"
>
<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>
</div>
</div>
<span
v-if=
"!scope.scope.shareStaffImageUrl && !scope.scope.shareStaffName"
>
-
</span>
<div
</div>
slot=
"shareStaffName"
<div
class=
"table-image"
slot=
"assignName"
slot-scope=
"scope"
slot-scope=
"scope"
>
>
<div>
<div
class=
"flex-align"
>
<
template
v-if=
"scope.scope.assignStaffName"
>
<img
class=
"img-36 pointer img-circle"
v-if=
"scope.scope.assignStaffImageUrl"
:src=
"scope.scope.assignStaffImageUrl"
/>
<span
class=
"m-l-10"
>
<span>
{{
scope
.
scope
.
assignStaffName
}}
</span>
</span>
</
template
>
<
template
v-else-if=
"scope.scope.shareStaffName"
>
<img
<img
class=
"img-36 pointer img-circle"
v-if=
"scope.scope.shareStaffImageUrl"
v-if=
"scope.scope.shareStaffImageUrl"
class=
"img-36 pointer img-circle"
style=
"vertical-align: middle"
slot=
"reference"
:src=
"scope.scope.shareStaffImageUrl"
:src=
"scope.scope.shareStaffImageUrl"
/>
/>
<span
class=
"m-l-10"
>
<span
class=
"m-l-10"
>
<span>
{{ scope.scope.shareStaffName }}
</span>
<span>
{{ scope.scope.shareStaffName }}
</span>
<span
class=
"txt-green"
v-if=
"scope.scope.shareStaffSource == 1"
>
@个微
</span>
<span
class=
"txt-orange"
v-if=
"scope.scope.shareStaffSource == 2"
>
@企微
</span>
<span
class=
"txt-blue"
v-if=
"scope.scope.shareStaffSource == 3"
>
@员工
</span>
</span>
</span>
</div>
<span
v-if=
"!scope.scope.shareStaffImageUrl && !scope.scope.shareStaffName"
>
-
</span>
</div>
<div
slot=
"assignName"
slot-scope=
"scope"
>
<div
class=
"flex-align"
>
<
template
v-if=
"scope.scope.assignStaffName"
>
<img
class=
"img-36 pointer img-circle"
v-if=
"scope.scope.assignStaffImageUrl"
:src=
"scope.scope.assignStaffImageUrl"
/>
<span
class=
"m-l-10"
>
<span>
{{
scope
.
scope
.
assignStaffName
}}
</span>
</span>
</
template
>
<
template
v-else-if=
"scope.scope.shareStaffName"
>
<img
class=
"img-36 pointer img-circle"
v-if=
"scope.scope.shareStaffImageUrl"
:src=
"scope.scope.shareStaffImageUrl"
/>
<span
class=
"m-l-10"
>
<span>
{{
scope
.
scope
.
shareStaffName
}}
</span>
</span>
</
template
>
<
template
v-else
>
<span>
{{
scope
.
scope
.
assignStaffName
||
scope
.
scope
.
shareStaffName
||
'-'
}}
</span>
</
template
>
<span
@
click=
"handlerAssign(scope.scope)"
class=
"assignLabel"
>
指派
</span>
</div>
</div>
<div
slot=
"orderType"
slot-scope=
"scope"
>
<el-switch
:value=
"scope.scope.orderType == 1 ? true : false"
class=
"switchStyle"
@
change=
"changeOrderType(scope.scope)"
active-text=
"是"
inactive-text=
"否"
></el-switch>
</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
>
</
template
>
<
template
v-else
>
<span>
{{ baseData.marketingStatusList.map(item => item.confId).includes(scope.scope.marketingStatus + '') ? baseData.marketingStatusList.find(item => item.confId == scope.scope.marketingStatus).confName : '-' }}
</span>
<span>
{{
scope
.
scope
.
assignStaffName
||
scope
.
scope
.
shareStaffName
||
'-'
}}
</span>
</
template
>
<span
@
click=
"handlerAssign(scope.scope)"
class=
"assignLabel"
>
指派
</span>
</div>
</div>
</div>
<div
<div
class=
"table-btns"
slot=
"orderType"
slot=
"auth-button"
slot-scope=
"scope"
slot-scope=
"scope"
>
>
<el-switch
<GLTableButton
:value=
"scope.scope.orderType == 1 ? true : false"
:buttonList=
"tableButtonList"
class=
"switchStyle"
:buttonItem=
"scope.scope"
@
change=
"changeOrderType(scope.scope)"
:buttonNum=
"3"
active-text=
"是"
></GLTableButton>
inactive-text=
"否"
</div>
></el-switch>
</GLTable>
</div>
</template>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
</div>
</GLTable>
</div>
</div>
<!-- 表格区域 - 全部订单/售后订单 - end -->
<!-- 表格区域 - 全部订单/售后订单 - end -->
</div>
</div>
...
@@ -798,6 +809,15 @@ export default {
...
@@ -798,6 +809,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'
}
}
],
],
// 快递信息
// 快递信息
...
@@ -991,7 +1011,22 @@ export default {
...
@@ -991,7 +1011,22 @@ export default {
listeners
:
{
listeners
:
{
click
:
this
.
handleWriteOffApproval
click
:
this
.
handleWriteOffApproval
}
}
}
},
{
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
)
}
}
},
],
],
// 表格
// 表格
getListApi
:
this
.
$apis
.
orderManage
.
getListApi
,
getListApi
:
this
.
$apis
.
orderManage
.
getListApi
,
...
@@ -1005,192 +1040,7 @@ export default {
...
@@ -1005,192 +1040,7 @@ export default {
},
},
listName
:
'list'
,
listName
:
'list'
,
tableOption
:
true
,
tableOption
:
true
,
tableColumns
:
[
tableColumns
:
[]
{
label
:
'客户名称'
,
prop
:
'customerName'
,
width
:
160
,
formatter
:
cellValue
=>
{
return
cellValue
.
customerName
||
'-'
}
},
{
label
:
'手机号'
,
prop
:
'customerPhone'
,
width
:
160
,
formatter
:
cellValue
=>
{
return
cellValue
.
customerPhone
||
'-'
}
},
{
label
:
'其他'
,
prop
:
'otherInformation'
,
width
:
210
},
{
label
:
'微信名称'
,
prop
:
'weChatName'
,
addHtml
:
'weChatName'
,
width
:
210
},
{
label
:
'推荐人'
,
prop
:
'shareStaffName'
,
width
:
210
,
addHtml
:
'shareStaffName'
},
{
label
:
'指派人'
,
prop
:
'assignName'
,
width
:
210
,
addHtml
:
'assignName'
},
{
label
:
'推荐人手机号'
,
prop
:
'shareStaffPhone'
,
width
:
160
,
formatter
:
cellValue
=>
{
return
cellValue
.
shareStaffPhone
||
'-'
}
},
{
label
:
'订单时间'
,
prop
:
'createdDate'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
return
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
},
{
label
:
'支付时间'
,
prop
:
'payDate'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
return
cellValue
.
payDate
?
dayjs
(
cellValue
.
payDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
}
},
{
label
:
'核销时间'
,
prop
:
'verificationDate'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
return
cellValue
.
verificationDate
?
dayjs
(
cellValue
.
verificationDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
}
},
{
label
:
'车架号'
,
prop
:
'vinNo'
,
width
:
130
,
addHtml
:
'vinNo'
},
{
label
:
'订单状态'
,
prop
:
'orderStatus'
,
addHtml
:
'orderStatus'
,
width
:
160
},
{
label
:
'业务场景'
,
prop
:
'businessType'
,
width
:
120
,
formatter
:
cellValue
=>
{
let
type
=
cellValue
.
businessType
if
(
type
)
{
return
businessType
.
find
(
item
=>
item
.
optionId
==
type
).
optionLabel
}
else
{
return
'-'
}
}
},
{
label
:
'线下订单'
,
prop
:
'isOffline'
,
width
:
120
,
formatter
:
cellValue
=>
{
return
cellValue
.
isOffline
==
1
?
'否'
:
cellValue
.
isOffline
==
0
?
'是'
:
'-'
}
},
{
label
:
'商品名称'
,
prop
:
''
,
width
:
'120'
,
formatter
:
cellValue
=>
{
return
cellValue
.
orderGoods
.
length
?
cellValue
.
orderGoods
.
map
(
item
=>
item
.
goodsName
).
join
(
','
)
:
'-'
}
},
{
label
:
'支付定金/元'
,
prop
:
'payPrice'
,
width
:
'120'
,
formatter
:
cellValue
=>
{
return
cellValue
.
payPrice
||
'0'
}
},
{
label
:
'活动名称'
,
prop
:
'activityName'
,
width
:
'120'
},
{
label
:
'门店信息'
,
prop
:
'merchantName'
,
line
:
1
,
width
:
280
},
{
label
:
'订单类型'
,
prop
:
'orderSource'
,
width
:
'100'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
orderSourceList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
orderSource
+
''
)
?
this
.
baseData
.
orderSourceList
.
find
(
item
=>
item
.
confId
==
cellValue
.
orderSource
).
confName
:
'-'
}
},
{
label
:
'测试单'
,
prop
:
'orderType'
,
width
:
'100'
,
addHtml
:
'orderType'
},
{
label
:
'退款类型'
,
prop
:
'afterSaleType'
,
width
:
100
,
formatter
:
cellValue
=>
{
return
{
1
:
'退订单'
,
2
:
'退定金'
}[
cellValue
.
afterSaleType
]
||
'-'
}
},
{
label
:
'售后状态'
,
prop
:
'afterSaleStatus'
,
width
:
'100'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
afterSaleStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
afterSaleStatus
+
''
)
?
this
.
baseData
.
afterSaleStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
afterSaleStatus
).
confName
:
'-'
}
},
{
label
:
'结算方式'
,
prop
:
'deliveryType'
,
width
:
'100'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
deliveryTypeList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
deliveryType
+
''
)
?
this
.
baseData
.
deliveryTypeList
.
find
(
item
=>
item
.
confId
==
cellValue
.
deliveryType
).
confName
:
'-'
}
},
{
label
:
'订单编号'
,
prop
:
'orderCode'
,
width
:
'180'
},
{
label
:
'商户订单号'
,
prop
:
'outTradeNo'
,
width
:
'160'
,
formatter
:
cellValue
=>
{
return
cellValue
.
outTradeNo
||
'-'
}
}
]
},
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
// 基本数据
// 基本数据
...
@@ -1224,7 +1074,13 @@ export default {
...
@@ -1224,7 +1074,13 @@ export default {
{
confId
:
'0'
,
confName
:
'是'
},
{
confId
:
'0'
,
confName
:
'是'
},
{
confId
:
'1'
,
confName
:
'否'
}
{
confId
:
'1'
,
confName
:
'否'
}
],
],
businessTypeList
:
utils
.
deepClone
(
businessType
)
businessTypeList
:
utils
.
deepClone
(
businessType
),
marketingStatusList
:
[
{
confId
:
'1'
,
confName
:
'已完结(自动)'
},
{
confId
:
'2'
,
confName
:
'已完结(手动)'
},
{
confId
:
'3'
,
confName
:
'未完结'
},
{
confId
:
'4'
,
confName
:
'已取消'
}
]
},
},
requestSourceList
:
[
'全部订单'
,
'已付款'
,
'未付款'
,
'已退款'
,
'售后订单'
,
'待审批'
],
requestSourceList
:
[
'全部订单'
,
'已付款'
,
'未付款'
,
'已退款'
,
'售后订单'
,
'待审批'
],
batchRefundVisible
:
false
,
batchRefundVisible
:
false
,
...
@@ -1273,17 +1129,235 @@ export default {
...
@@ -1273,17 +1129,235 @@ export default {
file
:
{
file
:
{
fileName
:
''
,
fileName
:
''
,
fileType
:
''
fileType
:
''
}
},
showTable
:
false
//显示隐藏表格
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getCrowdfundingOrderConfig
()
this
.
getCrowdfundingParams
()
this
.
getCrowdfundingParams
()
// this.getCount()
// this.getCount()
this
.
getOptionsList
(
'searchFormData'
)
this
.
getOptionsList
(
'searchFormData'
)
},
},
methods
:
{
methods
:
{
async
getCrowdfundingOrderConfig
()
{
let
tableColumns
=
[
{
label
:
'客户名称'
,
prop
:
'customerName'
,
width
:
160
,
formatter
:
cellValue
=>
{
return
cellValue
.
customerName
||
'-'
}
},
{
label
:
'手机号'
,
prop
:
'customerPhone'
,
width
:
160
,
formatter
:
cellValue
=>
{
return
cellValue
.
customerPhone
||
'-'
}
},
{
label
:
'其他'
,
prop
:
'otherInformation'
,
width
:
210
},
{
label
:
'微信名称'
,
prop
:
'weChatName'
,
addHtml
:
'weChatName'
,
width
:
210
},
{
label
:
'推荐人'
,
prop
:
'shareStaffName'
,
width
:
210
,
addHtml
:
'shareStaffName'
},
{
label
:
'推荐人ID'
,
prop
:
'shareStaffId'
,
name
:
'shareStaffId'
,
width
:
210
,
},
{
label
:
'指派人'
,
prop
:
'assignName'
,
width
:
210
,
addHtml
:
'assignName'
},
{
label
:
'推荐人手机号'
,
prop
:
'shareStaffPhone'
,
width
:
160
,
formatter
:
cellValue
=>
{
return
cellValue
.
shareStaffPhone
||
'-'
}
},
{
label
:
'订单时间'
,
prop
:
'createdDate'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
return
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
},
{
label
:
'支付时间'
,
prop
:
'payDate'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
return
cellValue
.
payDate
?
dayjs
(
cellValue
.
payDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
}
},
{
label
:
'核销时间'
,
prop
:
'verificationDate'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
return
cellValue
.
verificationDate
?
dayjs
(
cellValue
.
verificationDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
}
},
{
label
:
'车架号'
,
prop
:
'vinNo'
,
width
:
130
,
addHtml
:
'vinNo'
},
{
label
:
'订单状态'
,
prop
:
'orderStatus'
,
addHtml
:
'orderStatus'
,
width
:
160
},
{
label
:
'业务场景'
,
prop
:
'businessType'
,
width
:
120
,
formatter
:
cellValue
=>
{
let
type
=
cellValue
.
businessType
if
(
type
)
{
return
businessType
.
find
(
item
=>
item
.
optionId
==
type
).
optionLabel
}
else
{
return
'-'
}
}
},
{
label
:
'线下订单'
,
prop
:
'isOffline'
,
width
:
120
,
formatter
:
cellValue
=>
{
return
cellValue
.
isOffline
==
1
?
'否'
:
cellValue
.
isOffline
==
0
?
'是'
:
'-'
}
},
{
label
:
'商品名称'
,
prop
:
''
,
width
:
'120'
,
formatter
:
cellValue
=>
{
return
cellValue
.
orderGoods
.
length
?
cellValue
.
orderGoods
.
map
(
item
=>
item
.
goodsName
).
join
(
','
)
:
'-'
}
},
{
label
:
'支付定金/元'
,
prop
:
'payPrice'
,
width
:
'120'
,
formatter
:
cellValue
=>
{
return
cellValue
.
payPrice
||
'0'
}
},
{
label
:
'活动名称'
,
prop
:
'activityName'
,
width
:
'120'
},
{
label
:
'门店信息'
,
prop
:
'merchantName'
,
line
:
1
,
width
:
280
},
{
label
:
'订单类型'
,
prop
:
'orderSource'
,
width
:
'100'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
orderSourceList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
orderSource
+
''
)
?
this
.
baseData
.
orderSourceList
.
find
(
item
=>
item
.
confId
==
cellValue
.
orderSource
).
confName
:
'-'
}
},
{
label
:
'测试单'
,
prop
:
'orderType'
,
width
:
'100'
,
addHtml
:
'orderType'
},
{
label
:
'退款类型'
,
prop
:
'afterSaleType'
,
width
:
100
,
formatter
:
cellValue
=>
{
return
{
1
:
'退订单'
,
2
:
'退定金'
}[
cellValue
.
afterSaleType
]
||
'-'
}
},
{
label
:
'营销状态'
,
name
:
'marketingStatus'
,
width
:
180
,
addHtml
:
'marketingStatus'
,
},
{
label
:
'售后状态'
,
prop
:
'afterSaleStatus'
,
width
:
'100'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
afterSaleStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
afterSaleStatus
+
''
)
?
this
.
baseData
.
afterSaleStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
afterSaleStatus
).
confName
:
'-'
}
},
{
label
:
'结算方式'
,
prop
:
'deliveryType'
,
width
:
'100'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
deliveryTypeList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
deliveryType
+
''
)
?
this
.
baseData
.
deliveryTypeList
.
find
(
item
=>
item
.
confId
==
cellValue
.
deliveryType
).
confName
:
'-'
}
},
{
label
:
'订单编号'
,
prop
:
'orderCode'
,
width
:
'180'
},
{
label
:
'商户订单号'
,
prop
:
'outTradeNo'
,
width
:
'160'
,
formatter
:
cellValue
=>
{
return
cellValue
.
outTradeNo
||
'-'
}
}
]
try
{
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
(),
filterList
=
[
'customerPhone'
,
'otherInformation'
,
'shareStaffName'
,
'assignName'
,
'shareStaffPhone'
,
'verificationDate'
,
'vinNo'
,
'afterSaleStatus'
]
if
(
res
==
1
)
{
for
(
let
i
=
0
;
i
<
tableColumns
.
length
;
i
++
)
{
if
(
filterList
.
includes
(
tableColumns
[
i
].
prop
))
{
tableColumns
.
splice
(
i
,
1
)
i
--
}
}
}
}
catch
(
error
)
{
console
.
log
(
error
)
}
this
.
tableParams
.
tableColumns
=
tableColumns
this
.
showTable
=
true
},
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
this
.
searchForm
.
createDate
?.
length
)
{
if
(
this
.
searchForm
.
createDate
?.
length
)
{
...
...
src/views/seckillActivity/crowdFundList.vue
View file @
8bb3aa0
...
@@ -22,7 +22,12 @@
...
@@ -22,7 +22,12 @@
</el-popover>
</el-popover>
</div>
</div>
<div
slot=
"linkText"
slot-scope=
"scope"
>
<div
slot=
"linkText"
slot-scope=
"scope"
>
<p
class=
"cursor-pointer"
@
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"
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>
...
...
src/views/seckillActivity/dataBoard.vue
View file @
8bb3aa0
...
@@ -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
:rowNumber=
"1"
ref=
"dataRef"
:formObj=
"searchForm"
:rowNumber=
"1"
:formData=
"searchFormData"
:formObj=
"searchForm"
@
handleOk=
"handleSearch"
></GLCombiForm>
:formData=
"searchFormData"
@
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
placement=
"top"
class=
"tips"
width=
"260"
placement=
"top"
trigger=
"hover"
width=
"260"
:content=
"item.tips"
>
trigger=
"hover"
<img
slot=
"reference"
:content=
"item.tips"
class=
"tips-icon"
>
src=
"@/components/glsx-combi-form/images/icon-tip.png"
/>
<img
slot=
"reference"
class=
"tips-icon"
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,83 +46,112 @@
...
@@ -39,83 +46,112 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"data-board-box"
>
<!-- 可配置显示隐藏 👇 -->
<p
class=
"edit-title"
>
员工排行榜
</p>
<
template
v-if=
"showTable"
>
<div
class=
"p-20"
>
<div
class=
"data-board-box"
>
<GLCombiForm
ref=
"rankRef"
<p
class=
"edit-title"
>
员工排行榜
</p>
:rowNumber=
"1"
<div
class=
"p-20"
>
:formObj=
"searchRankForm"
<GLCombiForm
:formData=
"searchFormRankData"
ref=
"rankRef"
@
handleOk=
"handleSearchRank"
:rowNumber=
"1"
@
handleRest=
"handleReset"
></GLCombiForm>
:formObj=
"searchRankForm"
<div
class=
"flex m-b-10 w-100-percent"
>
:formData=
"searchFormRankData"
<span
class=
"table-title"
></span>
@
handleOk=
"handleSearchRank"
<el-button
:size=
"size"
@
handleRest=
"handleReset"
class=
"default-blue-btn"
></GLCombiForm>
type=
"default"
<div
class=
"flex m-b-10 w-100-percent"
>
@
click=
"handleExport('rank')"
>
导出
</el-button>
<span
class=
"table-title"
></span>
</div>
<el-button
<GLTable
ref=
"dataTableRef"
:size=
"size"
:getListApi=
"getListApi"
class=
"default-blue-btn"
:noDataImg=
"url"
type=
"default"
:searchForm=
"tableSearchForm"
@
click=
"handleExport('rank')"
:tableParams=
"tableParams"
>
导出
</el-button>
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
:hasNum=
"false"
>
<div
slot=
"shareName"
class=
"flex-align"
slot-scope=
"scope"
>
<
template
v-if=
"scope.scope.shareAvatar"
>
<el-popover
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
<img
class=
"table-popover-img"
:src=
"scope.scope.shareAvatar"
/>
<img
class=
"img-36 pointer"
slot=
"reference"
:src=
"scope.scope.shareAvatar"
/>
</el-popover>
</
template
>
<span
class=
"m-l-10"
>
{{ scope.scope.shareName }}
</span>
<span
class=
"m-l-10"
>
{{ scope.scope.sharePhone || '' }}
</span>
</div>
</div>
</GLTable>
<GLTable
ref=
"dataTableRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
:hasNum=
"false"
>
<div
slot=
"shareName"
class=
"flex-align"
slot-scope=
"scope"
>
<template
v-if=
"scope.scope.shareAvatar"
>
<el-popover
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
<img
class=
"table-popover-img"
:src=
"scope.scope.shareAvatar"
/>
<img
class=
"img-36 pointer"
slot=
"reference"
:src=
"scope.scope.shareAvatar"
/>
</el-popover>
</
template
>
<span
class=
"m-l-10"
>
{{ scope.scope.shareName }}
</span>
<span
class=
"m-l-10"
>
{{ scope.scope.sharePhone || '' }}
</span>
</div>
</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
class=
"default-blue-btn"
:size=
"size"
type=
"default"
class=
"default-blue-btn"
@
click=
"handleExport('dailyOrders')"
>
导出
</el-button>
type=
"default"
@
click=
"handleExport('dailyOrders')"
>
导出
</el-button>
</div>
</div>
<el-table
v-if=
"DailyOrderQuantityList.length"
<el-table
:data=
"DailyOrderQuantityListFormat"
v-if=
"DailyOrderQuantityList.length"
style=
"width: 100%"
>
:data=
"DailyOrderQuantityListFormat"
<el-table-column
:formatter=
"formatterHeader"
style=
"width: 100%"
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
:key=
"index"
v-for=
"(item, index) in DailyOrderQuantityList"
:prop=
"item"
:key=
"index"
:label=
"item.day"
>
:prop=
"item"
: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
fixed=
"right"
:formatter=
"formatterEnd"
label=
"总计"
></el-table-column>
fixed=
"right"
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,32 +177,41 @@
...
@@ -141,32 +177,41 @@
单
单
</span>
</span>
</span>
</span>
<el-button
:size=
"size"
<el-button
class=
"default-blue-btn"
:size=
"size"
type=
"default"
class=
"default-blue-btn"
@
click=
"handleExport('liveData')"
>
导出
</el-button>
type=
"default"
@
click=
"handleExport('liveData')"
>
导出
</el-button>
</div>
</div>
<!-- :searchForm="tableSearchForm" -->
<!-- :searchForm="tableSearchForm" -->
<GLTable
ref=
"dataTableRefDetailPage"
<GLTable
:getListApi=
"getLiveDetailPage"
ref=
"dataTableRefDetailPage"
:noDataImg=
"url"
:getListApi=
"getLiveDetailPage"
:tableParams=
"liveTableParams"
:noDataImg=
"url"
:searchForm=
"LiveTableSearchForm"
:tableParams=
"liveTableParams"
:pageConf=
"pageConf"
:searchForm=
"LiveTableSearchForm"
:beforeSearchFn=
"beforeSearchFn"
>
:pageConf=
"pageConf"
<div
slot=
"weChatName"
:beforeSearchFn=
"beforeSearchFn"
class=
"flex-align"
>
slot-scope=
"scope"
>
<div
<img
v-if=
"scope.scope.avatar"
slot=
"weChatName"
class=
"img-36 pointer img-circle"
class=
"flex-align"
:src=
"scope.scope.avatar"
/>
slot-scope=
"scope"
>
<img
v-if=
"scope.scope.avatar"
class=
"img-36 pointer img-circle"
: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>
<div
slot=
"orderStatus"
<div
slot-scope=
"scope"
>
slot=
"orderStatus"
<span
slot-scope=
"scope"
:class=
"['table-circle', 'm-r-8', scope.scope.orderStatus == '已下单' ? 'back-green' : 'back-grey']"
></span>
>
<span
:class=
"['table-circle', 'm-r-8', scope.scope.orderStatus == '已下单' ? 'back-green' : 'back-grey']"
></span>
<span>
{{ scope.scope.orderStatus ? scope.scope.orderStatus : '-' }}
</span>
<span>
{{ scope.scope.orderStatus ? scope.scope.orderStatus : '-' }}
</span>
</div>
</div>
</GLTable>
</GLTable>
...
@@ -198,7 +243,7 @@ const dataList = [
...
@@ -198,7 +243,7 @@ const dataList = [
export
default
{
export
default
{
name
:
'ScrmMicroMarketingDataBoard'
,
name
:
'ScrmMicroMarketingDataBoard'
,
data
()
{
data
()
{
return
{
return
{
url
,
url
,
dataList
,
dataList
,
...
@@ -341,24 +386,26 @@ export default {
...
@@ -341,24 +386,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 +413,11 @@ export default {
...
@@ -366,7 +413,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,14 +428,14 @@ export default {
...
@@ -377,14 +428,14 @@ export default {
})
})
.
catch
(
err
=>
{
})
.
catch
(
err
=>
{
})
},
},
handleReset
()
{
handleReset
()
{
this
.
searchRankForm
=
this
.
$options
.
data
.
call
(
this
).
searchRankForm
this
.
searchRankForm
=
this
.
$options
.
data
.
call
(
this
).
searchRankForm
console
.
log
(
'handleReset'
)
console
.
log
(
'handleReset'
)
this
.
handleSearchRank
()
this
.
handleSearchRank
()
// this.$refs.rankRef.refreshTable()
// this.$refs.rankRef.refreshTable()
// this.handleSearch()
// this.handleSearch()
},
},
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
=>
{
...
@@ -394,7 +445,7 @@ export default {
...
@@ -394,7 +445,7 @@ export default {
// 直播间数据统计
// 直播间数据统计
// this.getLiveBroadcastRoomDataStatistics()
// this.getLiveBroadcastRoomDataStatistics()
},
},
getDailyOrderQuantityStatistics
()
{
getDailyOrderQuantityStatistics
()
{
this
.
$apis
.
seckillActivity
this
.
$apis
.
seckillActivity
.
getDailyOrderQuantityStatistics
({
id
:
this
.
activityId
})
.
getDailyOrderQuantityStatistics
({
id
:
this
.
activityId
})
.
then
(
result
=>
{
.
then
(
result
=>
{
...
@@ -416,20 +467,20 @@ export default {
...
@@ -416,20 +467,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
=>
{
...
@@ -449,20 +500,20 @@ export default {
...
@@ -449,20 +500,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 @
8bb3aa0
...
@@ -1205,6 +1205,7 @@ export default {
...
@@ -1205,6 +1205,7 @@ export default {
selectVehicleTypeFlag
:
2
,
selectVehicleTypeFlag
:
2
,
selectPhoneNumberFlag
:
2
,
selectPhoneNumberFlag
:
2
,
businessType
:
2
,
//业务场景
businessType
:
2
,
//业务场景
orderEndDays
:
30
,
//订单完结时间天数
formDescribeCheck
:
[
'selectCarNumberFlag'
,
'selectVehicleTypeFlag'
,
'selectPhoneNumberFlag'
],
formDescribeCheck
:
[
'selectCarNumberFlag'
,
'selectVehicleTypeFlag'
,
'selectPhoneNumberFlag'
],
activityServices
:
[],
activityServices
:
[],
activityCommoditys
:
[],
activityCommoditys
:
[],
...
@@ -1393,6 +1394,18 @@ export default {
...
@@ -1393,6 +1394,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'
,
...
@@ -2109,7 +2122,7 @@ export default {
...
@@ -2109,7 +2122,7 @@ export default {
// this.$refs.configEditFormRef.$refs.activityDetailTextBox[0].forbidEdit()
// this.$refs.configEditFormRef.$refs.activityDetailTextBox[0].forbidEdit()
this
.
isDisabled
=
this
.
routeInfo
.
addOrEdit
!=
'add'
this
.
isDisabled
=
this
.
routeInfo
.
addOrEdit
!=
'add'
this
.
editFormData
.
map
(
item
=>
{
this
.
editFormData
.
map
(
item
=>
{
if
(
!
[
'activityName'
,
'activityImg'
,
'promotion'
].
includes
(
item
.
name
))
this
.
changeFormAttr
(
'editFormData'
,
'isDisabled'
,
[
item
.
label
],
true
)
if
(
!
[
'activityName'
,
'activityImg'
,
'promotion'
,
'orderEndDays'
].
includes
(
item
.
name
))
this
.
changeFormAttr
(
'editFormData'
,
'isDisabled'
,
[
item
.
label
],
true
)
})
})
this
.
changeFormAttr
(
'configEditFormData'
,
'isDisabled'
,
[
'账户类型'
,
'定金收款账户'
],
true
)
this
.
changeFormAttr
(
'configEditFormData'
,
'isDisabled'
,
[
'账户类型'
,
'定金收款账户'
],
true
)
}
}
...
@@ -2774,7 +2787,6 @@ export default {
...
@@ -2774,7 +2787,6 @@ export default {
})
})
},
},
getCouponInfoParams
()
{
getCouponInfoParams
()
{
var
_this
=
this
var
_this
=
this
var
param
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
var
param
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
...
...
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