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
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
208 additions
and
92 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,6 +57,7 @@
...
@@ -57,6 +57,7 @@
:disabled=
"selectList.length == 0"
:disabled=
"selectList.length == 0"
>
批量退款
</el-button>
>
批量退款
</el-button>
</div>
</div>
<
template
v-if=
"showTable"
>
<GLTable
<GLTable
ref=
"allOrderRef"
ref=
"allOrderRef"
:getListApi=
"getListApi"
:getListApi=
"getListApi"
...
@@ -187,6 +188,15 @@
...
@@ -187,6 +188,15 @@
></el-switch>
></el-switch>
</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"
...
@@ -198,6 +208,7 @@
...
@@ -198,6 +208,7 @@
></GLTableButton>
></GLTableButton>
</div>
</div>
</GLTable>
</GLTable>
</template>
</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,8 +1040,111 @@ export default {
...
@@ -1005,8 +1040,111 @@ export default {
},
},
listName
:
'list'
,
listName
:
'list'
,
tableOption
:
true
,
tableOption
:
true
,
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
:
'众筹订单退款'
}
],
// shareStaffTypeList: [
// { 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
:
'已取消'
}
]
},
requestSourceList
:
[
'全部订单'
,
'已付款'
,
'未付款'
,
'已退款'
,
'售后订单'
,
'待审批'
],
batchRefundVisible
:
false
,
refundVisible
:
false
,
refundParams
:
{},
selectList
:
[],
refundTips
:
true
,
selectTableParams
:
{
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'客户信息'
,
prop
:
'customerName'
,
width
:
160
,
formatter
:
cellValue
=>
{
return
cellValue
.
customerName
||
'-'
}
},
{
label
:
'推荐人'
,
prop
:
'shareStaffName'
,
width
:
210
,
addHtml
:
'shareStaffName'
},
{
label
:
'支付定金/元'
,
prop
:
'payPrice'
,
width
:
'120'
,
formatter
:
cellValue
=>
{
return
cellValue
.
payPrice
||
'0'
}
},
{
label
:
'门店'
,
prop
:
'merchantName'
,
line
:
1
,
width
:
280
},
{
label
:
'活动名称'
,
prop
:
'activityName'
,
}
]
},
importVisible
:
false
,
file
:
{
fileName
:
''
,
fileType
:
''
},
showTable
:
false
//显示隐藏表格
}
},
mounted
()
{
this
.
getCrowdfundingOrderConfig
()
this
.
getCrowdfundingParams
()
// this.getCount()
this
.
getOptionsList
(
'searchFormData'
)
},
methods
:
{
async
getCrowdfundingOrderConfig
()
{
let
tableColumns
=
[
{
label
:
'客户名称'
,
label
:
'客户名称'
,
prop
:
'customerName'
,
prop
:
'customerName'
,
width
:
160
,
width
:
160
,
...
@@ -1040,6 +1178,12 @@ export default {
...
@@ -1040,6 +1178,12 @@ export default {
addHtml
:
'shareStaffName'
addHtml
:
'shareStaffName'
},
},
{
{
label
:
'推荐人ID'
,
prop
:
'shareStaffId'
,
name
:
'shareStaffId'
,
width
:
210
,
},
{
label
:
'指派人'
,
label
:
'指派人'
,
prop
:
'assignName'
,
prop
:
'assignName'
,
width
:
210
,
width
:
210
,
...
@@ -1162,6 +1306,12 @@ export default {
...
@@ -1162,6 +1306,12 @@ export default {
}
}
},
},
{
{
label
:
'营销状态'
,
name
:
'marketingStatus'
,
width
:
180
,
addHtml
:
'marketingStatus'
,
},
{
label
:
'售后状态'
,
label
:
'售后状态'
,
prop
:
'afterSaleStatus'
,
prop
:
'afterSaleStatus'
,
width
:
'100'
,
width
:
'100'
,
...
@@ -1191,99 +1341,23 @@ export default {
...
@@ -1191,99 +1341,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
:
'众筹订单退款'
}
],
// shareStaffTypeList: [
// { 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
)
},
requestSourceList
:
[
'全部订单'
,
'已付款'
,
'未付款'
,
'已退款'
,
'售后订单'
,
'待审批'
],
batchRefundVisible
:
false
,
refundVisible
:
false
,
refundParams
:
{},
selectList
:
[],
refundTips
:
true
,
selectTableParams
:
{
tableColumns
:
[
{
label
:
'客户信息'
,
prop
:
'customerName'
,
width
:
160
,
formatter
:
cellValue
=>
{
return
cellValue
.
customerName
||
'-'
}
},
{
label
:
'推荐人'
,
prop
:
'shareStaffName'
,
width
:
210
,
addHtml
:
'shareStaffName'
},
{
label
:
'支付定金/元'
,
prop
:
'payPrice'
,
width
:
'120'
,
formatter
:
cellValue
=>
{
return
cellValue
.
payPrice
||
'0'
}
}
},
{
label
:
'门店'
,
prop
:
'merchantName'
,
line
:
1
,
width
:
280
},
{
label
:
'活动名称'
,
prop
:
'activityName'
,
}
}
]
},
importVisible
:
false
,
file
:
{
fileName
:
''
,
fileType
:
''
}
}
}
catch
(
error
)
{
console
.
log
(
error
)
}
}
this
.
tableParams
.
tableColumns
=
tableColumns
this
.
showTable
=
true
},
},
mounted
()
{
this
.
getCrowdfundingParams
()
// this.getCount()
this
.
getOptionsList
(
'searchFormData'
)
},
methods
:
{
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"
>
<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>
<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
This diff is collapsed.
Click to expand it.
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