Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 ed0c0b60
authored
Mar 18, 2026
by
Jaxon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 嘀加上架 - 运营确认与查看 - 流量方模块 - UI对齐
1 parent
78ed6e9b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
143 additions
and
50 deletions
src/views/goods/shelfManage/components/trafficSource/components/detail/index.vue
src/views/goods/shelfManage/components/trafficSource/components/modify/index.vue
src/views/goods/shelfManage/components/trafficSource/data.js
src/views/goods/shelfManage/components/trafficSource/index.vue
src/views/goods/shelfManage/components/trafficSource/components/detail/index.vue
View file @
ed0c0b6
...
...
@@ -59,6 +59,6 @@ export default {
<
style
scoped
lang=
"scss"
>
.detail-wrapper
{
padding
-top
:
20px
;
padding
:
20px
;
}
</
style
>
src/views/goods/shelfManage/components/trafficSource/components/modify/index.vue
View file @
ed0c0b6
...
...
@@ -3,27 +3,35 @@
<div
class=
"modify-wrapper"
>
<glsx-combi-form
ref=
"trafficFromRef"
class=
"edit-form-container"
default-width=
"314px"
:form-data=
"schema"
:form-obj=
"trafficForm"
:form-rules=
"rules"
label-width=
"250px"
>
default-width=
"100%"
label-width=
"208px"
>
<template
#
merchantId=
"scope"
>
<div>
<el-select
v-model=
"trafficForm[scope.scope.name]"
disabled
:placeholder=
"scope.scope.placeholder"
style=
"width: 314px"
>
<el-option
v-for=
"subItem in scope.scope.optionList"
:key=
"subItem[scope.scope.optionId]"
:label=
"subItem[scope.scope.optionLabel]"
:value=
"subItem[scope.scope.optionId]"
>
</el-option>
</el-select>
<div
class=
"merchant-wrapper"
>
<div
class=
"select-wrapper"
>
<el-select
v-model=
"trafficForm[scope.scope.name]"
disabled
:placeholder=
"scope.scope.placeholder"
>
<el-option
v-for=
"subItem in scope.scope.optionList"
:key=
"subItem[scope.scope.optionId]"
:label=
"subItem[scope.scope.optionLabel]"
:value=
"subItem[scope.scope.optionId]"
>
</el-option>
</el-select>
</div>
<div
class=
"actions-wrapper"
>
<el-button
type=
"text"
>
新建
</el-button>
</div>
</div>
</
template
>
</glsx-combi-form>
</div>
</div>
</template>
<
script
>
...
...
@@ -95,7 +103,21 @@ export default {
<
style
lang=
"scss"
scoped
>
.modify-wrapper
{
padding-top
:
20px
;
padding
:
20px
;
.merchant-wrapper
{
display
:
flex
;
overflow
:
hidden
;
.select-wrapper
{
flex
:
1
;
}
>
::v-deep
.actions-wrapper
{
flex-shrink
:
0
;
.el-button
{
padding
:
0
12px
;
}
}
}
}
.shop-merchant-info
{
.add-mer-btn
{
...
...
src/views/goods/shelfManage/components/trafficSource/data.js
View file @
ed0c0b6
...
...
@@ -50,17 +50,17 @@ export const ShopMerchantInfoFormRules = {
],
};
// TODO: 修改this
export
const
ShopMerchantFormData
=
[
{
label
:
"流量方信息"
,
name
:
"merchantId"
,
addHtml
:
"merchantId"
,
style
:
{
width
:
"calc( 50% - 30px )"
},
placeholder
:
"请选择流量方信息"
,
optionList
:
[],
optionId
:
"merchantId"
,
optionLabel
:
"merchantName"
,
style
:
{
width
:
"50%"
},
optionsName
:
"merchantList"
,
searchKey
:
"merchantIdName"
,
},
...
...
@@ -68,7 +68,8 @@ export const ShopMerchantFormData = [
label
:
"集团(上级商户)"
,
name
:
"parentMerchantName"
,
type
:
"input"
,
style
:
{
width
:
"calc( 50% - 30px )"
},
style
:
{
width
:
"50%"
},
placeholder
:
"选择流量方后自动获取"
,
isDisabled
:
true
,
},
...
...
@@ -76,8 +77,9 @@ export const ShopMerchantFormData = [
label
:
"业务模式"
,
name
:
"businessMode"
,
type
:
"select"
,
style
:
{
width
:
"calc( 50% - 30px )"
},
optionList
:
businessModeList
,
style
:
{
width
:
"50%"
},
optionId
:
"confId"
,
optionLabel
:
"confName"
,
optionsName
:
"businessModeList"
,
...
...
@@ -86,8 +88,9 @@ export const ShopMerchantFormData = [
label
:
"签约主体"
,
name
:
"contractingMerchantId"
,
type
:
"select"
,
style
:
{
width
:
"calc( 50% - 30px )"
},
optionList
:
[],
style
:
{
width
:
"50%"
},
optionId
:
"merchantId"
,
optionLabel
:
"merchantName"
,
optionsName
:
"contractMerList"
,
...
...
@@ -96,9 +99,10 @@ export const ShopMerchantFormData = [
label
:
"业务场景"
,
name
:
"sceneType"
,
type
:
"select"
,
style
:
{
width
:
"calc( 50% - 30px )"
},
isDisabled
:
true
,
optionList
:
sceneCodeList
,
style
:
{
width
:
"50%"
},
optionId
:
"confId"
,
optionLabel
:
"confValue"
,
optionsName
:
"sceneCodeList"
,
...
...
@@ -107,24 +111,27 @@ export const ShopMerchantFormData = [
label
:
"园区店"
,
name
:
"yqMerchantId"
,
type
:
"select"
,
style
:
{
width
:
"calc( 50% - 30px )"
},
optionList
:
[],
optionId
:
"merchantId"
,
optionLabel
:
"merchantName"
,
style
:
{
width
:
"50%"
},
optionsName
:
"yqMerchantList"
,
},
{
style
:
{
width
:
"50%"
},
label
:
"预估流量/月"
,
name
:
"estimatedFlow"
,
type
:
"input"
,
style
:
{
width
:
"calc( 50% - 30px )"
},
maxlength
:
6
,
},
{
label
:
"预估转化率"
,
name
:
"estimatedUpgradeRate"
,
type
:
"input"
,
style
:
{
width
:
"calc( 50% - 30px )"
},
style
:
{
width
:
"50%"
},
maxlength
:
6
,
append
:
"%"
,
},
...
...
@@ -132,37 +139,41 @@ export const ShopMerchantFormData = [
label
:
"运营模式"
,
name
:
"operationMode"
,
type
:
"select"
,
style
:
{
width
:
"calc( 50% - 30px )"
},
optionList
:
operationModeList
,
optionId
:
"confId"
,
optionLabel
:
"confName"
,
optionsName
:
"operationModeList"
,
style
:
{
width
:
"50%"
},
},
{
label
:
"服务商"
,
name
:
"partnerMerchantId"
,
type
:
"select"
,
style
:
{
width
:
"calc( 50% - 30px )"
},
isDisabled
:
false
,
optionList
:
[],
optionId
:
"merchantId"
,
optionLabel
:
"merchantName"
,
optionsName
:
"partnerMerchantList"
,
style
:
{
width
:
"50%"
},
},
{
label
:
"上级服务商"
,
name
:
"parentPartnerMerchantName"
,
style
:
{
width
:
"50%"
},
type
:
"input"
,
style
:
{
width
:
"calc( 50% - 30px )"
},
maxlength
:
50
,
},
{
label
:
"一线阳光是否开启线上积分"
,
name
:
"firstLineSunshineOnlinePointsFlag"
,
type
:
"select"
,
style
:
{
width
:
"calc( 50% - 30px )"
},
optionList
:
onlinePointsEnabledList
,
optionId
:
"confId"
,
style
:
{
width
:
"50%"
},
optionLabel
:
"confName"
,
optionsName
:
"onlinePointsEnabledList"
,
},
...
...
@@ -170,7 +181,7 @@ export const ShopMerchantFormData = [
label
:
"一线阳光2是否开启线上积分"
,
name
:
"firstLineSunshine2OnlinePointsFlag"
,
type
:
"select"
,
style
:
{
width
:
"
calc( 50% - 30px )
"
},
style
:
{
width
:
"
50%
"
},
optionList
:
onlinePointsEnabledList
,
optionId
:
"confId"
,
optionLabel
:
"confName"
,
...
...
src/views/goods/shelfManage/components/trafficSource/index.vue
View file @
ed0c0b6
<
template
>
<div
class=
"edit-page traffic-source-wrapper"
>
<div
class=
"title"
>
<span>
流量方信息
</span>
<div
class=
"title-wrapper"
>
<span
class=
"title"
>
流量方信息
</span>
<div
class=
"select-wrapper"
>
<RemoteSelect
v-model=
"tabsActive"
class=
"tab-select"
:fetch-api=
"getTrafficOptions"
placeholder=
"请输入相关名称以搜索"
value-key=
"id"
:option-props=
"(subItem) => (
{
label: `${subItem.merchantName}`,
})"
:multiple="false"
:collapse-tags="false" />
</div>
<!-- TODO: 虚拟化滚动 -->
<el-select
v-model=
"tabsActive"
<!--
<el-select
v-model=
"tabsActive"
class=
"tab-select"
filterable
:loading=
"tabs.loading"
placeholder=
"请选择流量方"
:popper-append-to-body=
"false"
remote
:remote-method=
"handleSearchTrafficSource"
>
<el-option
v-for=
"item in merchantList"
:key=
"item.id"
...
...
@@ -17,9 +26,31 @@
:value=
"item.id"
>
<span>
{{
item
.
merchantName
}}
</span>
</el-option>
</el-select>
</el-select>
-->
<div
class=
"actions-wrapper"
>
<el-button
v-if=
"mode === VIEW_MODE.VIEW"
plain
>
<span
class=
"el-icon-plus"
></span>
新增
</el-button>
</div>
</div>
<div
class=
"content"
>
<div
class=
"content-wrapper"
>
<div
class=
"actions-wrapper"
>
<el-button
v-if=
"mode === VIEW_MODE.VIEW"
plain
style=
"width:160px"
type=
"primary"
@
click=
"handleChangeMode"
>
编辑
</el-button>
<el-button
v-else
style=
"width:160px"
type=
"primary"
@
click=
"handleChangeMode"
>
保存
</el-button>
</div>
<div
class=
"tabs-wrapper"
>
<Detail
v-if=
"mode === VIEW_MODE.VIEW"
:schema=
"trafficFromSchema"
...
...
@@ -32,10 +63,6 @@
:traffic-form=
"currentTraffic"
/>
</div>
<el-button
@
click=
"handleChangeMode"
>
编辑
</el-button>
</div>
</div>
...
...
@@ -46,6 +73,8 @@ import { getPlatformMerchantList } from "@api/index";
import
{
getServiceList
,
getyqMerchantList
,
serviceGetMerchantList
}
from
"@api/merchant"
;
import
{
uniqBy
}
from
"lodash-es"
;
import
{
mapActions
}
from
"vuex"
;
import
{
getBusisDetailBasic
as
getBusinessDetailBasicApi
}
from
"@/api/shelfManage.js"
;
import
RemoteSelect
from
"@/components/remoteSearchSelect/index.vue"
;
import
{
VIEW_MODE
}
from
"../../constant/baseData.js"
;
import
Detail
from
"./components/detail/index.vue"
;
import
Modify
from
"./components/modify/index.vue"
;
...
...
@@ -56,6 +85,7 @@ export default {
components
:
{
Modify
,
Detail
,
RemoteSelect
,
},
props
:
{
shelveId
:
{
...
...
@@ -93,7 +123,7 @@ export default {
computed
:
{
tabsActive
:
{
get
()
{
return
this
.
tabs
.
active
||
(
this
.
merchantList
.
length
?
this
.
merchantList
?.[
0
]?.
id
:
undefined
);
return
this
.
tabs
.
active
||
(
this
.
merchantList
.
length
?
this
.
merchantList
?.[
0
]?.
id
:
""
);
},
set
(
val
)
{
this
.
tabs
.
active
=
val
;
...
...
@@ -119,13 +149,19 @@ export default {
handleSearchTrafficSource
()
{},
handleRemoveTraffic
()
{},
getTrafficOptions
()
{
},
async
getTraffic
(
trafficId
)
{
this
.
currentTraffic
=
{
id
:
2885
,
businessCode
:
"CG202505272007551640"
,
merchantId
:
44218028
,
merchantName
:
"xiejq4S店-20"
,
parentMerchantId
:
44212538
,
parentMerchantName
:
"xiejq单店001"
,
businessMode
:
1
,
contractingMerchantId
:
44211442
,
contractingMerchantName
:
"旧市长"
,
sceneType
:
0
,
yqMerchantId
:
44218107
,
yqMerchantName
:
"鸿蒙园区店"
,
estimatedFlow
:
50
,
estimatedUpgradeRate
:
60
,
operationMode
:
0
,
partnerMerchantId
:
44212541
,
partnerMerchantName
:
"xiejq服务商-更新2"
,
parentPartnerMerchantId
:
null
,
parentPartnerMerchantName
:
"上级服务商信息01"
,
settleRuleId
:
4968
,
divisionRuleId
:
4928
,
reconciliationRuleId
:
3574
,
firstLineSunshineOnlinePointsFlag
:
"N"
,
firstLineSunshine2OnlinePointsFlag
:
"N"
,
createdBy
:
"glsadmin"
,
createdDate
:
1748347675000
,
updatedBy
:
"glsadmin"
,
updatedDate
:
1748347675000
,
deletedFlag
:
"N"
,
businessCodes
:
null
,
realityShopUserType
:
null
,
merchantTypeSame
:
true
,
isHuawei
:
null
};
// this.traffic = {};
},
async
initData
()
{
const
{
createBusinessApproveMerchantList
}
=
await
this
.
getBusinessDetailBasic
({
id
:
this
.
shelveId
});
this
.
merchantList
=
createBusinessApproveMerchantList
||
[];
const
res
=
await
getBusinessDetailBasicApi
({
id
:
this
.
shelveId
});
console
.
log
(
"initData"
,
res
);
// const { createBusinessApproveMerchantList } = await this.getBusinessDetailBasic({ id: this.shelveId });
// this.merchantList = createBusinessApproveMerchantList || [];
},
async
initOptionsList
()
{
...
...
@@ -206,12 +242,36 @@ export default {
</
script
>
<
style
scoped
lang=
"scss"
>
::v-deep
.tab-select
{
margin-left
:
20px
;
.el-select-dropdown__item
{
.traffic-source-wrapper
{
.title-wrapper
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
padding-right
:
20px
;
border-bottom
:
1px
solid
#e5e5e5
;
>
.title
{
border-bottom
:
0
;
}
.select-wrapper
{
flex-shrink
:
0
;
flex
:
1
;
::v-deep
.tab-select
{
width
:
280px
;
.el-select-dropdown__item
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
}
}
}
>
.actions-wrapper
{
flex-shrink
:
0
;
}
}
.content-wrapper
{
>
.actions-wrapper
{
margin-top
:
20px
;
text-align
:
center
;
}
}
}
</
style
>
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