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 f0cd6f72
authored
Sep 23, 2025
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
套餐推荐配置提交
1 parent
f8c96dc9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
78 additions
and
14 deletions
src/api/contentManager.js
src/views/contentManager/packageConfig/components/addDialog.vue
src/views/contentManager/packageConfig/components/packageRecommend.vue
src/views/contentManager/packageConfig/edit.vue
src/api/contentManager.js
View file @
f0cd6f7
...
@@ -430,3 +430,14 @@ export function mapDistricts(data) {
...
@@ -430,3 +430,14 @@ export function mapDistricts(data) {
// data.method = `merchants.api.merchantCommon.getCarbrandTree`
// data.method = `merchants.api.merchantCommon.getCarbrandTree`
// return request(data, "post")
// return request(data, "post")
// }
// }
/**轻改套餐推荐配置详情 */
export
function
packageRecommendDetail
(
data
)
{
data
.
method
=
`
${
path2
}
receptionMaterialRecommendPackageConfig.getByMerchantId`
return
request
(
data
,
"post"
)
}
/**保存轻改套餐推荐配置数据 */
export
function
updatePackageRecommend
(
data
)
{
data
.
method
=
`
${
path2
}
receptionMaterialRecommendPackageConfig.updateBatch`
return
request
(
data
,
"post"
)
}
\ No newline at end of file
\ No newline at end of file
src/views/contentManager/packageConfig/components/addDialog.vue
View file @
f0cd6f7
...
@@ -20,8 +20,8 @@
...
@@ -20,8 +20,8 @@
<div
class=
"dialog-title"
>
<div
class=
"dialog-title"
>
{{
{{
cloneId
cloneId
?
"将该门店下所有车型的所有素材
数据(不包含客户案例)
,复制或替换到指定门店"
?
"将该门店下所有车型的所有素材
和套餐推荐数据(不包含客户案例)
,复制或替换到指定门店"
:
"请选择新增门店,新增门店的素材会复用默认门店的素材,可自定义修改"
:
"请选择新增门店,新增门店的
套餐配置和
素材会复用默认门店的素材,可自定义修改"
}}
}}
</div>
</div>
<el-select
<el-select
...
...
src/views/contentManager/packageConfig/components/packageRecommend.vue
0 → 100644
View file @
f0cd6f7
This diff is collapsed.
Click to expand it.
src/views/contentManager/packageConfig/edit.vue
View file @
f0cd6f7
<
template
>
<
template
>
<d2-container
class=
"edit-content"
v-loading=
"loading
"
>
<d2-container
class=
"edit-content"
ref=
"edit-content
"
>
<div
class=
"edit-content-header"
>
<div
class=
"edit-content-header"
>
<div
class=
"top"
>
<label>
上架门店:
</label>
<label>
上架门店:
</label>
<span>
{{
query
.
merchantName
}}
{{
query
.
merchantId
}}
</span>
<span>
{{
query
.
merchantName
}}
{{
query
.
merchantId
}}
</span>
</div>
</div>
<div
class=
"box"
></div>
<div
class=
"page-top-tab"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"tabClick"
>
<el-tab-pane
label=
"素材配置"
name=
"material"
></el-tab-pane>
<el-tab-pane
label=
"套餐推荐设置"
class=
"package-item"
name=
"package"
></el-tab-pane>
</el-tabs>
</div>
</div>
<div
v-if=
"activeName == 'package'"
>
<package-recommend
:pageQuery=
"query"
></package-recommend>
</div>
<div
v-show=
"activeName == 'material'"
class=
"material-form"
v-loading=
"loading"
>
<div
class=
"content-form"
>
<div
class=
"content-form"
>
<div
class=
"content-info"
>
<div
class=
"content-info"
>
<div
class=
"title"
>
<div
class=
"line"
></div>
<span>
素材配置
</span>
</div>
<div
class=
"info-form-main"
>
<div
class=
"info-form-main"
>
<div
class=
"add-brand"
>
<div
class=
"add-brand"
>
<el-button
<el-button
...
@@ -455,13 +464,14 @@
...
@@ -455,13 +464,14 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"footer
"
>
<div
class=
"footer"
v-if=
"!loading
"
>
<el-button
type=
"primary"
@
click=
"handleSave"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"handleSave"
>
提交
</el-button>
<el-button
type=
"primary"
plain
@
click=
"handleReset"
>
重置
</el-button>
<el-button
type=
"primary"
plain
@
click=
"handleReset"
>
重置
</el-button>
<el-button
class=
"width_100 cancel-btn"
@
click=
"handleCancel"
<el-button
class=
"width_100 cancel-btn"
@
click=
"handleCancel"
>
取消
</el-button
>
取消
</el-button
>
>
</div>
</div>
</div>
<el-dialog
<el-dialog
class=
"case-dialog"
class=
"case-dialog"
:visible
.
sync=
"dialogVisible"
:visible
.
sync=
"dialogVisible"
...
@@ -617,6 +627,7 @@ import TabPane from "../components/tabs/tab-pane"
...
@@ -617,6 +627,7 @@ import TabPane from "../components/tabs/tab-pane"
import
draggable
from
"vuedraggable"
import
draggable
from
"vuedraggable"
import
addBrand
from
"./components/addBrand"
import
addBrand
from
"./components/addBrand"
import
{
deepClone
}
from
"@/common/util"
import
{
deepClone
}
from
"@/common/util"
import
packageRecommend
from
"./components/packageRecommend.vue"
const
PACKAGE
=
{
const
PACKAGE
=
{
1
:
{
1
:
{
tips
:
"每个类目最大支持上传20个套餐,每个套餐车型展示图*1,选购卡样式*1,详图*1"
,
tips
:
"每个类目最大支持上传20个套餐,每个套餐车型展示图*1,选购卡样式*1,详图*1"
,
...
@@ -651,10 +662,12 @@ export default {
...
@@ -651,10 +662,12 @@ export default {
TabPane
,
TabPane
,
Tabs
,
Tabs
,
addBrand
,
addBrand
,
draggable
draggable
,
packageRecommend
},
},
data
()
{
data
()
{
return
{
return
{
activeName
:
'material'
,
imgSrc
:
imgSrc
:
"https://img02.glsx.com.cn/weapp/resource/saas/app/material/case.jpg"
,
"https://img02.glsx.com.cn/weapp/resource/saas/app/material/case.jpg"
,
dialogVisible
:
false
,
dialogVisible
:
false
,
...
@@ -755,9 +768,24 @@ export default {
...
@@ -755,9 +768,24 @@ export default {
(
item
)
=>
item
.
category
===
this
.
caseName
(
item
)
=>
item
.
category
===
this
.
caseName
)
)
this
.
childCaseName
=
this
.
caseInfo
[
i
]?.
children
&&
this
.
caseInfo
[
i
]?.
children
[
0
]?.
category
||
''
this
.
childCaseName
=
this
.
caseInfo
[
i
]?.
children
&&
this
.
caseInfo
[
i
]?.
children
[
0
]?.
category
||
''
},
activeName
(
val
)
{
if
(
val
==
'material'
)
{
this
.
materialDetail
(
this
.
merchantId
)
this
.
getBrand
()
}
}
}
},
},
methods
:
{
methods
:
{
tabClick
()
{
if
(
this
.
loading
)
return
setTimeout
(()
=>
{
// 将页面滚动回顶部
if
(
this
.
$refs
[
'edit-content'
]
&&
this
.
$refs
[
'edit-content'
].
$refs
[
'component'
]
&&
this
.
$refs
[
'edit-content'
].
$refs
[
'component'
].
$el
)
{
this
.
$refs
[
'edit-content'
].
$refs
[
'component'
].
$el
.
scrollTop
=
0
}
})
},
handleInput
(
row
,
val
)
{
handleInput
(
row
,
val
)
{
var
reg
=
/^
(\.
*
)(\d
+
)(\.?)(\d{0,2})
.*$/g
var
reg
=
/^
(\.
*
)(\d
+
)(\.?)(\d{0,2})
.*$/g
if
(
reg
.
test
(
row
[
val
]))
{
if
(
reg
.
test
(
row
[
val
]))
{
...
@@ -1647,21 +1675,33 @@ export default {
...
@@ -1647,21 +1675,33 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.edit-content-header
{
.edit-content-header
{
height
:
52px
;
position
:
sticky
;
top
:
0
;
left
:
0
;
opacity
:
1
;
opacity
:
1
;
background
:
#ffffff
;
padding
:
15px
20px
;
box-sizing
:
border-box
;
color
:
#333333
;
color
:
#333333
;
font-size
:
16px
;
font-size
:
16px
;
margin-bottom
:
16px
;
font-weight
:
700
;
font-weight
:
700
;
z-index
:
120
;
.top
{
box-sizing
:
border-box
;
padding
:
15px
20px
;
background
:
#ffffff
;
}
.box
{
height
:
16px
;
width
:
100%
;
background
:
#F0F2F5
;
}
label
{
label
{
color
:
#666666
;
color
:
#666666
;
font-size
:
16px
;
font-size
:
16px
;
font-weight
:
50
;
font-weight
:
50
;
}
}
}
}
.material-form
{
min-height
:
64vh
;
}
.content-form
{
.content-form
{
.content-info
{
.content-info
{
background
:
#fff
;
background
:
#fff
;
...
@@ -1827,6 +1867,19 @@ export default {
...
@@ -1827,6 +1867,19 @@ export default {
::v-deep.d2-container-full
{
::v-deep.d2-container-full
{
bottom
:
60px
!important
;
bottom
:
60px
!important
;
}
}
.page-top-tab
{
::v-deep
.el-tabs__header
{
margin
:
0
;
.el-tabs__nav-scroll{
background
:
#ffffff
;
.el-tabs__nav{
height
:
38px
;
margin-left
:
22px
;
padding
:
2px
;
}
}
}
}
}
}
.preImg
{
.preImg
{
text-align
:
center
;
text-align
:
center
;
...
...
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