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 da5c669f
authored
May 20, 2025
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复和UI调整
1 parent
9e022b2e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
100 additions
and
39 deletions
src/views/contentManager/packageConfig/addEquity.vue
src/views/contentManager/packageConfig/components/brandTree.vue
src/views/orderManage/components/detailDialog.vue
src/views/pointManagement/components/detailDialog.vue
src/views/pointManagement/pointExamine.vue
src/views/contentManager/packageConfig/addEquity.vue
View file @
da5c669
...
...
@@ -48,8 +48,8 @@
<
template
v-if=
"item.type == 'form'"
>
<div
class=
"config-item"
>
<div
class=
"config-title"
>
<div>
<i
class=
"el-icon-caret-bottom"
style=
"color: #b9bcc4;"
></i>
<div
@
click=
"switchBox(item.id)"
>
<i
class=
"el-icon-caret-bottom"
:class=
"
{ 'rotate-90': !item.isVisible }"
style="color: #b9bcc4;">
</i>
层级
{{
index
+
1
}}
</div>
<div>
...
...
@@ -58,17 +58,17 @@
<el-button
type=
"text"
:disabled=
"config.filter(i => i.type == 'form').length == 1"
@
click=
"deleteRow(index, item.id)"
>
删除
</el-button>
</div>
</div>
<div
class=
"config-content"
>
<div
class=
"config-content"
:class=
"
{ 'hide': !item.isVisible, 'show': item.isVisible }"
>
<el-form
:ref=
"`subFormRef$
{item.id}`" :model="form[`subForm${item.id}`]" :rules="rulesForm"
label-width="120px">
<el-form-item
label=
"素材标题:"
prop=
"materialTitle"
>
<el-input
type=
"text"
v-model=
"form[`subForm$
{item.id}`].materialTitle" placeholder="请输入"
<el-input
style=
"width: 432px;"
type=
"text"
v-model=
"form[`subForm$
{item.id}`].materialTitle" placeholder="请输入"
maxlength="10" show-word-limit>
</el-input>
<div
v-if=
"isCheck && !form[`subForm$
{item.id}`].materialTitle" class="error-tips">请输入素材标题
</div>
<div
class=
"tips"
>
显示在素材标题栏
</div>
</el-form-item>
<el-form-item
label=
"素材简称:"
prop=
"materialName"
>
<el-input
type=
"text"
v-model=
"form[`subForm$
{item.id}`].materialName" placeholder="请输入"
<el-input
style=
"width: 432px;"
type=
"text"
v-model=
"form[`subForm$
{item.id}`].materialName" placeholder="请输入"
maxlength="5" show-word-limit>
</el-input>
<div
v-if=
"isCheck && !form[`subForm$
{item.id}`].materialName" class="error-tips">请输入素材简称
</div>
<div
class=
"tips"
>
显示在文件夹
</div>
...
...
@@ -133,8 +133,8 @@
<
template
v-if=
"item.type == 'builtIn'"
>
<div
class=
"config-item"
>
<div
class=
"config-title"
>
<div>
<i
class=
"el-icon-caret-bottom"
style=
"color: #b9bcc4;"
></i>
<div
@
click=
"switchBox(item.id)"
>
<i
class=
"el-icon-caret-bottom"
:class=
"
{ 'rotate-90': !item.isVisible }"
style="color: #b9bcc4;">
</i>
层级
{{
index
+
1
}}
</div>
<div>
...
...
@@ -143,7 +143,7 @@
@
click=
"moveDown(index)"
>
下移
</el-button>
</div>
</div>
<div
class=
"config-content"
>
<div
class=
"config-content"
:class=
"
{ 'hide': !item.isVisible, 'show': item.isVisible }"
>
<el-form
:model=
"form[`subForm$
{item.id}`]" label-width="120px">
<el-form-item
label=
"(内置)素材标题:"
>
<div>
{{
item
.
title
}}
</div>
...
...
@@ -157,6 +157,7 @@
</
template
>
</div>
</div>
<div
v-if=
"isCheck && !formData.MaterialList.length"
class=
"error-tips"
>
请完善素材配置
</div>
</el-form-item>
</el-form>
<div
style=
"padding-bottom: 40px; text-align: center"
>
...
...
@@ -178,19 +179,22 @@
const
default_config
=
[
{
id
:
1
,
type
:
'form'
type
:
'form'
,
isVisible
:
true
},
{
id
:
2
,
type
:
'builtIn'
,
title
:
'历史录单记录'
,
valueKey
:
'history'
valueKey
:
'history'
,
isVisible
:
true
},
{
id
:
3
,
type
:
'builtIn'
,
title
:
'保险告知书'
,
valueKey
:
'notice'
valueKey
:
'notice'
,
isVisible
:
true
}
]
const
default_form
=
{
...
...
@@ -222,7 +226,8 @@ export default {
return
{
formData
:
{
isRelMerchant
:
''
,
isRelBrand
:
2
isRelBrand
:
2
,
MaterialList
:
[]
},
rules
:
{
brandList
:
[
...
...
@@ -256,10 +261,11 @@ export default {
{
required
:
true
,
validator
:
(
rule
,
value
,
callback
)
=>
{
const
{
MaterialList
}
=
this
.
formData
if
(
MaterialList
&&
MaterialList
.
length
!=
0
)
{
callback
()
}
else
{
if
(
!
isRelMerchant
)
callback
(
"请完善素材配置"
)
if
(
MaterialList
&&
MaterialList
.
length
==
0
)
{
callback
(
"请完善素材配置"
)
}
else
{
callback
()
}
},
trigger
:
"change"
}
...
...
@@ -268,9 +274,9 @@ export default {
brandVisible
:
false
,
brandData
:
[],
checkBrand
:
[],
defaultKeys
:
[],
defaultKeys
:
[],
// 回显数据
storeVisible
:
false
,
storeSelected
:
[],
storeSelected
:
[],
// 回显数据
storeData
:
[],
carSeriesVisible
:
false
,
form
:
deepClone
(
default_form
),
...
...
@@ -329,14 +335,13 @@ export default {
isPass
:
false
,
levelId
:
1
,
formInfo
:
null
,
levelOptionMapping
:
[
1
,
2
,
3
],
levelOptionMapping
:
[
1
,
2
,
3
],
// 互斥数组
seriesList
:
[],
brandTreeData
:
[],
key
:
new
Date
().
getTime
()
}
},
mounted
()
{
console
.
log
(
this
.
$route
.
query
)
this
.
getDetail
()
},
methods
:
{
...
...
@@ -363,6 +368,7 @@ export default {
this
.
brandClose
()
this
.
brandData
=
val
.
newList
this
.
checkBrand
=
val
.
checkList
if
(
val
.
checkList
.
length
>
0
)
this
.
$refs
.
basicForm
.
clearValidate
(
'brandList'
)
// 修改后,清空所有数据
this
.
config
=
deepClone
(
default_config
)
this
.
form
=
deepClone
(
default_form
)
...
...
@@ -383,10 +389,9 @@ export default {
return
}
this
.
storeVisible
=
true
// if () {
this
.
storeSelected
=
this
.
storeData
.
length
>
0
?
this
.
storeData
:
[]
// }
this
.
storeSelected
=
this
.
storeData
.
length
>
0
?
this
.
storeData
:
[]
},
// 品牌选择回调
handleRelateStoreConfirm
(
selectedData
)
{
console
.
log
(
selectedData
)
this
.
storeData
=
selectedData
...
...
@@ -397,6 +402,7 @@ export default {
handleRelateStoreClose
()
{
this
.
storeVisible
=
false
},
// 删除门店
delMerchant
(
row
)
{
console
.
log
(
row
)
const
filterArr
=
this
.
storeData
.
filter
(
i
=>
i
.
id
!==
row
.
id
)
...
...
@@ -441,7 +447,8 @@ export default {
addConfig
()
{
const
obj
=
{
id
:
new
Date
().
getTime
(),
type
:
'form'
type
:
'form'
,
isVisible
:
true
}
this
.
config
.
unshift
(
obj
)
this
.
$set
(
this
.
form
,
`subForm
${
obj
.
id
}
`
,
deepClone
(
this
.
subForm
))
...
...
@@ -527,6 +534,7 @@ export default {
}
if
(
arr
.
length
>
2
)
{
params
.
MaterialList
=
arr
this
.
formData
.
MaterialList
=
arr
this
.
isPass
=
true
}
if
(
this
.
isPass
)
console
.
log
(
params
,
'params'
)
...
...
@@ -558,6 +566,7 @@ export default {
name
:
"packageConfig"
})
},
// 上移下移
moveUp
(
targetIndex
)
{
console
.
log
(
targetIndex
)
if
(
targetIndex
>
0
)
{
...
...
@@ -626,6 +635,7 @@ export default {
// id: item.relBusinessId
// }
// })
// 品牌回显处理
console
.
log
(
this
.
checkBrand
)
let
checkList
=
[]
console
.
log
(
brandData
,
'brandData'
)
...
...
@@ -653,6 +663,7 @@ export default {
this
.
checkBrand
=
checkList
this
.
brandData
=
this
.
filterCheckList
(
deepClone
(
checkList
))
console
.
log
(
this
.
checkBrand
,
'checkBrand'
,
this
.
brandData
)
// 门店回显处理
if
(
isRelMerchant
==
2
)
{
this
.
storeData
=
storeData
.
map
(
i
=>
{
return
{
...
...
@@ -662,13 +673,15 @@ export default {
})
}
this
.
formData
.
isRelMerchant
=
isRelMerchant
// 配置回显
this
.
form
=
{}
let
_config
=
[]
const
_homeEntranceType
=
[]
materialInfoList
.
forEach
(
item
=>
{
const
obj
=
{
id
:
item
.
id
,
type
:
item
.
materialTitle
?
'form'
:
'builtIn'
type
:
item
.
materialTitle
?
'form'
:
'builtIn'
,
isVisible
:
true
}
if
(
item
.
materialType
==
1
)
{
obj
.
title
=
'历史录单记录'
...
...
@@ -719,10 +732,15 @@ export default {
});
}
});
// 过滤掉一级项中 id 存在于 childrenIds 中的项
return
checkList
.
filter
(
item
=>
!
childrenIds
.
has
(
item
.
id
));
},
switchBox
(
id
)
{
const
item
=
this
.
config
.
find
(
item
=>
item
.
id
===
id
);
if
(
item
)
{
item
.
isVisible
=
!
item
.
isVisible
;
// 直接修改原对象属性
}
},
}
}
</
script
>
...
...
@@ -779,17 +797,30 @@ export default {
font-size
:
12px
;
}
.error-tips
{
color
:
#f56c6c
;
font-size
:
12px
;
}
}
}
}
.error-tips
{
color
:
#f56c6c
;
font-size
:
12px
;
}
.pic-url
{
width
:
36px
;
height
:
36px
;
vertical-align
:
middle
;
}
.show
{
display
:
block
;
}
.hide
{
display
:
none
;
}
.rotate-90
{
transform
:
rotate
(
-90deg
);
transition
:
transform
0.3s
ease
;
/* 添加平滑过渡效果 */
}
.el-icon-caret-bottom
{
transition
:
transform
0.3s
ease
;
}
</
style
>
\ No newline at end of file
src/views/contentManager/packageConfig/components/brandTree.vue
View file @
da5c669
<
template
>
<d2-dialog
title=
"选择品牌"
:is-visible=
"dialogVisible"
class=
"brand-dialog"
width=
"
6
0%"
@
closeDialog=
"handleClose"
<d2-dialog
title=
"选择品牌"
:is-visible=
"dialogVisible"
class=
"brand-dialog"
width=
"
5
0%"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
<el-form
:inline=
"true"
size=
"mini"
class=
"demo-form-inline"
>
<el-form-item
label=
"品牌名称:"
>
...
...
@@ -172,8 +172,8 @@ export default {
background
:
#ffffff
;
height
:
324px
;
overflow-y
:
auto
;
width
:
600px
;
margin-right
:
20px
;
width
:
100%
;
//
margin-right
:
20px
;
.tree-title
{
display
:
flex
;
align-items
:
center
;
...
...
src/views/orderManage/components/detailDialog.vue
View file @
da5c669
...
...
@@ -135,7 +135,18 @@
class
=
"info-item"
>
<
span
class
=
"item-label"
>
{{
item
.
label
}}
:
<
/span
>
<
span
>
{{
detailInfo
[
item
.
name
]
||
"-"
}}
<
/span
>
<!--
<
span
>
{{
detailInfo
[
item
.
name
]
||
"-"
}}
<
/span> --
>
<
template
v
-
if
=
"item.tooltip"
>
<
template
v
-
if
=
"detailInfo[item.name]"
>
<
el
-
tooltip
class
=
"item"
effect
=
"dark"
:
content
=
"detailInfo[item.name]"
placement
=
"top-start"
>
<
span
class
=
"max-width"
>
{{
detailInfo
[
item
.
name
]
}}
<
/span
>
<
/el-tooltip
>
<
/template
>
<
template
v
-
else
><
span
>-<
/span></
template
>
<
/template
>
<
template
v
-
else
>
<
span
>
{{
detailInfo
[
item
.
name
]
||
"-"
}}
<
/span
>
<
/template
>
<
/div
>
<
block
v
-
for
=
"(item, index) in busiInfoAttrObj.dynamic"
...
...
@@ -369,7 +380,8 @@ export default {
fixed
:
[
{
label
:
"退款子项"
,
name
:
"refundSubOrderCode"
name
:
"refundSubOrderCode"
,
tooltip
:
true
}
,
{
label
:
"可退总价"
,
...
...
@@ -857,6 +869,14 @@ export default {
}
}
}
.
max
-
width
{
display
:
inline
-
block
;
white
-
space
:
nowrap
;
/* 禁止文本换行 */
overflow
:
hidden
;
/* 超出内容隐藏 */
text
-
overflow
:
ellipsis
;
/* 超出部分显示省略号 */
max
-
width
:
290
px
;
vertical
-
align
:
middle
;
}
<
/style
>
<
style
>
...
...
src/views/pointManagement/components/detailDialog.vue
View file @
da5c669
...
...
@@ -32,7 +32,9 @@
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"商品名称:"
>
{{
detailInfo
.
goodsName
?
detailInfo
.
goodsName
:
"-"
}}
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"detailInfo.goodsName"
placement=
"top-start"
>
<div
class=
"max-width"
>
{{
detailInfo
.
goodsName
?
detailInfo
.
goodsName
:
"-"
}}
</div>
</el-tooltip>
</el-form-item></el-col
>
...
...
@@ -66,7 +68,7 @@
<el-col
:span=
"8"
>
<el-form-item
:label=
"
detailInfo.failType == '退款' ? '退回积分' : '积分收益:'
detailInfo.failType == '退款' ? '退回积分
:
' : '积分收益:'
"
class=
"halfItem"
>
...
...
@@ -171,7 +173,9 @@
v-if=
"detailInfo.status == '已失效'"
>
<el-form-item
label=
"退款子订单信息:"
class=
"halfItem"
>
{{
detailInfo
.
refundSubOrderCode
?
detailInfo
.
refundSubOrderCode
:
"-"
}}
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"detailInfo.refundSubOrderCode"
placement=
"top-start"
>
<div
class=
"max-width"
>
{{
detailInfo
.
refundSubOrderCode
?
detailInfo
.
refundSubOrderCode
:
"-"
}}
</div>
</el-tooltip>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -531,6 +535,12 @@ export default {
justify-content
:
center
;
margin-top
:
20px
;
}
.max-width
{
white-space
:
nowrap
;
/* 禁止文本换行 */
overflow
:
hidden
;
/* 超出内容隐藏 */
text-overflow
:
ellipsis
;
/* 超出部分显示省略号 */
max-width
:
150px
;
}
</
style
>
<
style
>
...
...
src/views/pointManagement/pointExamine.vue
View file @
da5c669
...
...
@@ -152,7 +152,7 @@ export default {
)
{
callback
(
new
Error
(
"输入的积分超过当前订单最大积分"
))
}
else
if
(
value
>
=
this
.
refundForm
.
remainingScore
&&
value
>
this
.
refundForm
.
remainingScore
&&
this
.
refundForm
.
refundType
==
2
)
{
callback
(
new
Error
(
"输入的积分超过当前订单最大积分"
))
...
...
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