Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-link
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 e034093b
authored
Apr 06, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'V3.7.4-0404' into 'master'
V3.7.4 0404 See merge request
!5
2 parents
f838d605
97576e30
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
134 additions
and
84 deletions
src/api/modules/common.js
src/api/modules/seckillActivity.js
src/main.js
src/setup/qiankun.js
src/views/activityLink/editActivity.vue
src/api/modules/common.js
View file @
e034093
...
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-23 14:46:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 202
2-12-18 14:49:23
* @LastEditTime: 202
3-03-31 14:41:09
* @FilePath: \live\src\api\modules\common.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -77,6 +77,17 @@ const uploadFundingVideoApi = params => {
noSignAttr
:
[
'file'
]
})
}
/**众筹活动订单配置开关(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
{
pictureUpload
,
getMerchantStaff
,
...
...
@@ -84,5 +95,6 @@ export default {
uploadImgApi
,
uploadMusicApi
,
uploadVideoApi
,
uploadFundingVideoApi
uploadFundingVideoApi
,
getCrowdfundingOrderConfig
}
src/api/modules/seckillActivity.js
View file @
e034093
...
...
@@ -159,6 +159,16 @@ const getLiveListApi = params => {
sign
:
true
})
}
/**支付商户管理-下拉列表 */
const
getPayMerchatListApi
=
params
=>
{
params
.
method
=
'entmicro.api.payment.pageListPayment'
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
/**定金收款账户下拉列表 */
const
getPayListApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.activity.payment.account.list'
...
...
@@ -249,4 +259,4 @@ const liveroomOverview = params => {
sign
:
true
})
}
export
default
{
getPayListApi
,
liveroomDetailexport
,
liveroomDetailpage
,
liveroomOverview
,
getActivityPageApi
,
getCrowdfundListApi
,
exportCrowdfundApi
,
getBrowseListApi
,
exportBrowseApi
,
toggleStatusApi
,
deleteActivityApi
,
topActivityApi
,
getSharedApi
,
addOrUpdateActivityApi
,
getActivityDetailApi
,
getCrowdSharedApi
,
getLiveListApi
,
getRankListApi
,
exportRankListApi
,
getDataBoardApi
,
getVisitorListApi
,
getSharedListApi
,
getDailyOrderQuantityStatistics
,
exportDailyOrderQuantityStatistics
}
export
default
{
getPay
MerchatListApi
,
getPay
ListApi
,
liveroomDetailexport
,
liveroomDetailpage
,
liveroomOverview
,
getActivityPageApi
,
getCrowdfundListApi
,
exportCrowdfundApi
,
getBrowseListApi
,
exportBrowseApi
,
toggleStatusApi
,
deleteActivityApi
,
topActivityApi
,
getSharedApi
,
addOrUpdateActivityApi
,
getActivityDetailApi
,
getCrowdSharedApi
,
getLiveListApi
,
getRankListApi
,
exportRankListApi
,
getDataBoardApi
,
getVisitorListApi
,
getSharedListApi
,
getDailyOrderQuantityStatistics
,
exportDailyOrderQuantityStatistics
}
src/main.js
View file @
e034093
...
...
@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-03-
24 17:46:01
* @LastEditTime: 2023-03-
31 14:19:14
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
import
Vue
from
'vue'
...
...
src/setup/qiankun.js
View file @
e034093
...
...
@@ -27,7 +27,7 @@ export async function bootstrap({ history, common, messenger, globalState }) {
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
Vue
.
use
(
GLButton
,
{
permissions
:
globalState
.
permissions
||
[
'1-1-1-1'
,
'2-1-1-1'
,
'3-1-1-1'
]
})
...
...
src/views/activityLink/editActivity.vue
View file @
e034093
...
...
@@ -337,6 +337,16 @@
</el-tabs>
</div>
</
template
>
<!-- 收款模式 -->
<div
slot=
"paymentModel"
class=
"paymentModelSlot"
>
<el-radio-group
v-model=
"editForm.paymentModel"
>
<el-radio
:disabled=
"isDisabled"
:label=
"1"
>
广联收定金和尾款
</el-radio>
<el-radio
:disabled=
"isDisabled"
:label=
"2"
>
广联收定金门店收尾款
</el-radio>
<el-radio
:disabled=
"isDisabled"
:label=
"3"
>
广联收定金门店收全款退定金
</el-radio>
<el-radio
:disabled=
"isDisabled"
:label=
"4"
>
门店收定金和尾款
</el-radio>
<el-radio
:disabled=
"isDisabled"
:label=
"5"
>
服务商收定金门店收尾款
</el-radio>
</el-radio-group>
</div>
</glsx-combi-form>
</div>
<GLFooter>
...
...
@@ -346,9 +356,9 @@
<el-button
v-if=
"routeInfo.addOrEdit != 'detail' && step == 3"
type=
"primary"
@
click=
"handleConfirm"
size=
"medium"
:loading=
"loading"
>
提交
</el-button>
</GLFooter>
<!-- 展示 -->
<GLDialog
bigTitle=
"预览"
mode=
"big"
:visible
.
sync=
"wechatVisible"
@
onOk=
"handleWechat"
@
onCancel=
"handleWechat"
>
<
!-- <
GLDialog bigTitle="预览" mode="big" :visible.sync="wechatVisible" @onOk="handleWechat" @onCancel="handleWechat">
<crowdEditWechat ref="crowdEditWechat" :editForm="editForm" :countDownObj="countDownObj"></crowdEditWechat>
</GLDialog>
</GLDialog>
-->
<select-gift-dialog
:merchantId=
"editForm.merchantId"
v-if=
"isSelectGiftVisible"
:isSelectGiftVisible=
"isSelectGiftVisible"
:selectedGiftList=
"selectedMealList"
@
handleGiftConfirm=
"handleGiftConfirm"
@
handleGiftClose=
"handleGiftClose"
></select-gift-dialog>
<select-goods-dialog
v-if=
"isSelectGoodsVisible"
:isSelectGoodsVisible=
"isSelectGoodsVisible"
:selectedGoodsLists=
"selectedGoodsList"
@
handleGoodsConfirm=
"handleGoodsConfirm"
@
handleGoodsClose=
"handleGoodsClose"
></select-goods-dialog>
<select-store
v-if=
"relateStoreVisible"
ref=
"relateStore"
:dialogVisible=
"relateStoreVisible"
:storeSelected=
"selectedList"
:merchantInfo=
"editForm.merchantId"
@
handleRelateStoreConfirm=
"handleRelateStoreConfirm"
@
handleRelateStoreClose=
"handleRelateStoreClose"
></select-store>
...
...
@@ -359,7 +369,7 @@
<
script
>
import
{
limitPrice
,
giftPackage
}
from
'@/common/constant'
import
{
utils
}
from
'glsx-common'
import
crowdEditWechat
from
'./crowdEditWechat.vue'
//
import crowdEditWechat from './crowdEditWechat.vue'
import
selectStore
from
'./components/selectStore'
import
selectGiftDialog
from
'./components/selectGiftDialog.vue'
import
selectGoodsDialog
from
'./components/selectGoodsDialog.vue'
...
...
@@ -423,7 +433,6 @@ const orderShow = ['service', 'cash', 'discount', 'exchange']
export
default
{
name
:
'editActivity'
,
components
:
{
crowdEditWechat
,
selectStore
,
selectGiftDialog
,
selectGoodsDialog
,
...
...
@@ -570,23 +579,11 @@ export default {
noteTouchVisitorCount
:
''
,
noteTouchOrderCount
:
''
,
noteTouchConversionRate
:
''
}
// formDescribeFirst: '',
// formDescribeSecond: '',
// formDescribeThird: '',
// showAvatarNicknameFlag: 1
// liveFlag: false,
// liveBroadcastRoomId: '',
// groupQrCode: '',
// floatingMaskDiagram: ''
// liveBroadcastRoomCover: '',
// liveBroadcastRoomEndCover: '',
// employeeRegistrationLinkFlag: 2,
// reservationInstallContactsName: '',
// reservationInstallContactsPhone: '',
// targetStock: '',
// paymentAccountId: '',
// paymentModel: 1
},
paymentAccountSource
:
'1'
,
paymentAccountId
:
''
,
payMannerId
:
''
,
paymentModel
:
1
},
reportFlag
:
'1'
,
//商品列表
...
...
@@ -616,9 +613,9 @@ export default {
editRule
:
{
merchantId
:
[{
required
:
true
,
message
:
'请选择商户'
,
trigger
:
'change'
}],
activityName
:
[{
required
:
true
,
message
:
'请输入活动名称'
,
trigger
:
'change'
}],
playingCustomer
:
[{
required
:
true
,
message
:
'请输入面向客户群'
,
trigger
:
'blur'
}],
playingDiscountContent
:
[{
required
:
true
,
message
:
'请输入折扣内容'
,
trigger
:
'blur'
}],
playingCouponDescription
:
[{
required
:
true
,
message
:
'请输入送券描述'
,
trigger
:
'blur'
}],
//
playingCustomer: [{ required: true, message: '请输入面向客户群', trigger: 'blur' }],
//
playingDiscountContent: [{ required: true, message: '请输入折扣内容', trigger: 'blur' }],
//
playingCouponDescription: [{ required: true, message: '请输入送券描述', trigger: 'blur' }],
pageStyle
:
[{
required
:
true
,
message
:
'请选择页面样式'
,
trigger
:
'change'
}],
goodsList
:
[{
required
:
true
,
message
:
'请选择平台福利'
,
trigger
:
'change'
}],
// promotion: [{ required: true, message: '请输入活动宣传语', trigger: 'change' }],
...
...
@@ -1124,19 +1121,62 @@ export default {
name
:
''
,
addHtml
:
'reportConfigure'
,
tips
:
'可自定义战报内容'
},
// {
// label: '账户类型',
// name: 'paymentAccountSource',
// type: 'radio',
// optionId: 'confId',
// optionLabel: 'confName',
// optionList: [
// {
// confId: '1',
// confName: '广联'
// },
// {
// confId: '2',
// confName: '服务商'
// }
// ],
// isDisabled: false,
// handleRadioChange: (value, targetItem) => {
// this.editForm.paymentAccountId = ''
// this.configEditFormData.find(item => item.name == 'paymentAccountId').optionList = value == '1' ? this.baseData.payList : this.baseData.payMerchatList
// }
// },
{
label
:
'定金收款账户'
,
name
:
'paymentAccountId'
,
type
:
'select'
,
tips
:
'定金收款账户只包含定金需要支付的目标账户'
,
optionId
:
'id'
,
optionLabel
:
'accountName'
,
isHide
:
this
.
loginstatus
?
true
:
false
,
optionList
:
[]
},
{
label
:
'收款模式'
,
name
:
'paymentModel'
,
isHide
:
this
.
loginstatus
?
true
:
false
,
addHtml
:
'paymentModel'
}
],
defaultImgObj
:
Object
.
freeze
({
COVER_LIVE
:
'https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/COVER_LIVE.gif'
,
COVER_REPLAY
:
'https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/COVER_REPLAY.gif'
}),
defaultFloatingMaskDiagram
:
'https://wx.glsx.com.cn/upload/biz/ba63349f-8e9e-4e80-be3b-45cc38dcf13f.gif'
defaultFloatingMaskDiagram
:
'https://wx.glsx.com.cn/upload/biz/ba63349f-8e9e-4e80-be3b-45cc38dcf13f.gif'
,
baseData
:
{
payList
:
[],
payMerchatList
:
[]
}
}
},
mounted
()
{
// this.getCrowdfundingOrderConfig()
this
.
couponTemplate
()
this
.
routeInfo
=
this
.
$route
.
query
this
.
routeInfo
.
addOrEdit
!=
'add'
&&
this
.
getInfo
()
this
.
routeInfo
.
addOrEdit
!=
'add'
?
this
.
getInfo
()
:
this
.
getPayList
()
const
id
=
this
.
routeInfo
.
id
const
detailDisableList
=
[
'markingEditFormData'
]
const
disableObj
=
{
...
...
@@ -1249,9 +1289,9 @@ export default {
this
.
editForm
.
goodsStock
=
this
.
maxStock
}
},
'editForm.activityTime'
(
newValue
)
{
newValue
&&
newValue
.
length
&&
this
.
countDown
()
},
//
'editForm.activityTime'(newValue) {
//
newValue && newValue.length && this.countDown()
//
},
'editForm.expiresType'
(
newValue
)
{
let
idx
=
this
.
projuctEditFormData
.
findIndex
(
val
=>
val
.
name
==
'activityTime'
)
this
.
projuctEditFormData
[
idx
].
isHide
=
newValue
==
0
?
false
:
true
...
...
@@ -1300,6 +1340,16 @@ export default {
// }
},
methods
:
{
// async getCrowdfundingOrderConfig() {
// const res = await this.$apis.common.getCrowdfundingOrderConfig(),
// filterList = ['paymentModel', 'employeeRegistrationLinkFlag']
// this.configEditFormData.map(e => {
// if (filterList.includes(e.name)) e.isHide = res == 1
// })
// this.formDescribeCheckList.map(e => {
// if (e.value == 'selectPhoneNumberFlag') e.show = res != 1
// })
// },
//获取优惠券模板
couponTemplate
()
{
this
.
$apis
.
giftBag
.
couponTemplate
({
pageSize
:
10000
,
pageNum
:
1
}).
then
(
res
=>
{
...
...
@@ -1475,43 +1525,28 @@ export default {
endTime
:
activityStatus
==
1
?
startTime
:
activityStatus
==
2
?
endTime
:
endTime
}
},
countDown
()
{
if
(
this
.
editForm
.
activityTime
&&
this
.
editForm
.
activityTime
.
length
)
{
let
{
activityStatus
,
startTime
,
endTime
}
=
this
.
findCountDownTime
()
let
lefttime
=
parseInt
((
endTime
.
getTime
()
-
startTime
.
getTime
())
/
1000
)
let
d
=
parseInt
(
lefttime
/
(
24
*
60
*
60
))
let
h
=
parseInt
((
lefttime
/
(
60
*
60
))
%
24
)
let
m
=
parseInt
((
lefttime
/
60
)
%
60
)
let
s
=
parseInt
(
lefttime
%
60
)
h
=
this
.
addZero
(
h
)
m
=
this
.
addZero
(
m
)
s
=
this
.
addZero
(
s
)
let
typeTxt
=
{
1
:
'距离活动开始'
,
2
:
'距离活动结束'
,
3
:
'活动倒计时'
}[
activityStatus
]
if
(
this
.
time
)
clearTimeout
(
this
.
time
)
this
.
time
=
setTimeout
(()
=>
{
if
(
d
>
0
)
d
=
this
.
addZero
(
d
)
this
.
countDownObj
=
{
typeTxt
:
typeTxt
,
d
:
d
,
h
:
h
,
m
:
m
,
s
:
s
}
this
.
countDown
()
},
1
*
1000
)
}
else
{
this
.
countDownObj
=
{
typeTxt
:
'距离活动开始'
,
d
:
''
,
h
:
''
,
m
:
''
,
s
:
''
}
}
getPayMerchatList
()
{
// this.$apis.seckillActivity.getPayMerchatListApi({ pageNum: 1, pageSize: 9999 }).then(res => {
// res.list.forEach(item => {
// item.id = item.payMannerId
// item.accountName = item.mchName
// })
// this.baseData.payMerchatList = res.list
// this.configEditFormData.find(item => item.name == 'paymentAccountId').optionList = this.editForm.paymentAccountSource == 1 ? this.baseData.payList : this.baseData.payMerchatList
// this.$nextTick(() => {
// this.editStatus = false
// })
// })
this
.
configEditFormData
.
find
(
item
=>
item
.
name
==
'paymentAccountId'
).
optionList
=
this
.
baseData
.
payList
},
// 定金收款账户
getPayList
()
{
this
.
$apis
.
seckillActivity
.
getPayListApi
({}).
then
(
res
=>
{
this
.
baseData
.
payList
=
res
this
.
editForm
.
paymentAccountSource
=
this
.
editForm
.
paymentAccountSource
||
'1'
this
.
editForm
.
paymentAccountId
=
this
.
editForm
.
paymentAccountId
||
this
.
editForm
.
payMannerId
||
res
.
find
(
item
=>
item
.
isDefault
==
'Y'
)?.
id
this
.
getPayMerchatList
()
})
},
handleRelateModelClose
()
{
this
.
relateModelVisible
=
!
this
.
relateModelVisible
...
...
@@ -1865,6 +1900,8 @@ export default {
noteTouchConversionRate
:
''
}
}
// 定金收款账户
this
.
editForm
.
paymentAccountSource
=
this
.
editForm
.
paymentAccountSource
+
''
// 标杆门店总产值/元(已结束战报)
if
(
this
.
editForm
.
activityActionReport
.
signMerchantProduceCount
)
{
this
.
editForm
.
activityActionReport
.
signMerchantProduceCount
=
(
info
.
activityActionReport
.
signMerchantProduceCount
/
10000
).
toFixed
(
2
)
...
...
@@ -1873,7 +1910,7 @@ export default {
if
(
this
.
editForm
.
activityActionReport
.
noteTouchConversionRate
)
{
this
.
editForm
.
activityActionReport
.
noteTouchConversionRate
=
(
info
.
activityActionReport
.
noteTouchConversionRate
/
100
).
toFixed
(
2
)
}
//
this.getPayList()
this
.
getPayList
()
this
.
$nextTick
(()
=>
{
this
.
editStatus
=
false
})
...
...
@@ -2009,18 +2046,9 @@ export default {
let
val
=
param
.
activityActionReport
.
noteTouchOrderCount
/
param
.
activityActionReport
.
noteTouchVisitorCount
param
.
activityActionReport
.
noteTouchConversionRate
=
(
val
*
10000
).
toFixed
(
0
)
}
//直播
// if (param.liveFlag) {
// if (!param.floatingMaskDiagram) param.floatingMaskDiagram = this.defaultFloatingMaskDiagram
// if (!param.liveBroadcastRoomCover) param.liveBroadcastRoomCover = this.defaultImgObj.COVER_LIVE
// if (!param.liveBroadcastRoomEndCover) param.liveBroadcastRoomEndCover = this.defaultImgObj.COVER_REPLAY
// } else {
// let resetAttr = this.liveEditFormData.map(item => item.name)
// resetAttr.forEach(item => {
// param[item] = ''
// })
// }
// delete param.liveFlag
// 定金收款账户
param
.
payMannerId
=
param
.
paymentAccountSource
==
1
?
''
:
param
.
paymentAccountId
param
.
paymentAccountId
=
param
.
paymentAccountSource
==
1
?
param
.
paymentAccountId
:
''
return
param
},
// 服务说明
...
...
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