Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-discover
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 a4556505
authored
Jul 27, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/saas/scrm-micro-discover
into xuyl_v3.13.1_backup
2 parents
9691e78b
db4ca2ce
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
198 additions
and
116 deletions
src/components/glsx-combi-form/index.vue
src/config/index.js
src/views/case/add.vue
src/views/case/components/selectCarSeriesDialog.vue
src/views/case/index.vue
src/views/channel/add.vue
src/views/goods/add.vue
src/views/goods/components/brandCascader.vue
src/views/goods/components/selectGoods.vue
src/views/goods/index.vue
src/views/store/add.vue
src/views/store/components/selectCarDialog.vue
src/views/store/edit.vue
src/components/glsx-combi-form/index.vue
View file @
a455650
<!-- 搜索 -->
<!-- 搜索 -->
<
template
>
<
template
>
<div
:class=
"['glsx-combi-form', isEdit ? 'gl-form-page' : '']"
>
<div
:class=
"['glsx-combi-form', isEdit ? 'gl-form-page' : '']"
>
<el-form
:ref=
"formRef"
:inline=
"isInline"
:model=
"formObj"
:rules=
"formRules"
size=
"small"
class=
"glsx-combi-form-block"
>
<el-form
@
submit
.
native
.
prevent
:ref=
"formRef"
:inline=
"isInline"
:model=
"formObj"
:rules=
"formRules"
size=
"small"
class=
"glsx-combi-form-block"
>
<template
v-for=
"(item, index) in formData"
>
<template
v-for=
"(item, index) in formData"
>
<el-form-item
v-if=
"!item.isHide"
:key=
"index"
:id=
"item.name"
:labelWidth=
"isEdit ? '154px' : labelWidth"
:class=
"[
{ 'no-label': !item.label, isBlock: isBlock }, { textBox: item.type == 'textBox' }]" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name">
<el-form-item
v-if=
"!item.isHide"
:key=
"index"
:id=
"item.name"
:labelWidth=
"isEdit ? '154px' : labelWidth"
:class=
"[
{ 'no-label': !item.label, isBlock: isBlock }, { textBox: item.type == 'textBox' }]" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name">
<span
v-if=
"!item.isHide && item.tips"
class=
"tips-block"
slot=
"label"
>
<span
v-if=
"!item.isHide && item.tips"
class=
"tips-block"
slot=
"label"
>
...
...
src/config/index.js
View file @
a455650
...
@@ -17,8 +17,8 @@ export const fetchConfig = function (isEnv = true) {
...
@@ -17,8 +17,8 @@ export const fetchConfig = function (isEnv = true) {
// Object.assign(request, { timeout })
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// return Promise.resolve(cfg)
// }
// }
return
new
Http
().
get
(
'https://oss-config.dev.glsx.com.cn/mock/63b39b3e606e962c5e174afb/discover/config'
)
//
return new Http().get('https://oss-config.dev.glsx.com.cn/mock/63b39b3e606e962c5e174afb/discover/config')
//
return new Http().get('https://oss-config.glsx.com.cn/mock/63c12a6b28a427953783403e/discover/config')
return
new
Http
().
get
(
'https://oss-config.glsx.com.cn/mock/63c12a6b28a427953783403e/discover/config'
)
}
}
export
const
config
=
{
export
const
config
=
{
...
...
src/views/case/add.vue
View file @
a455650
...
@@ -8,11 +8,11 @@
...
@@ -8,11 +8,11 @@
<div
class=
"text-tip"
style=
"margin: 0;"
>
建议尺寸:272*364
</div>
<div
class=
"text-tip"
style=
"margin: 0;"
>
建议尺寸:272*364
</div>
</div>
</div>
<div
slot=
"selectBrandSlot"
>
<div
slot=
"selectBrandSlot"
>
<el-radio-group
v-model=
"formObj.
b
randType"
>
<el-radio-group
v-model=
"formObj.
applyB
randType"
>
<el-radio
:label=
"
1
"
>
全部品牌
</el-radio>
<el-radio
:label=
"
0
"
>
全部品牌
</el-radio>
<el-radio
:label=
"
2
"
>
部分品牌
</el-radio>
<el-radio
:label=
"
1
"
>
部分品牌
</el-radio>
</el-radio-group>
</el-radio-group>
<div
v-if=
"formObj.
brandType == 2
"
>
<div
v-if=
"formObj.
applyBrandType == 1
"
>
<el-button
class=
"el-icon-plus"
size=
"small"
@
click=
"openBrandDialog"
>
选择品牌
</el-button>
<el-button
class=
"el-icon-plus"
size=
"small"
@
click=
"openBrandDialog"
>
选择品牌
</el-button>
<div
class=
"brand-wrap"
v-if=
"brandList && brandList.length"
>
<div
class=
"brand-wrap"
v-if=
"brandList && brandList.length"
>
<div
class=
"brand-item"
v-for=
"item in brandList"
:key=
"item.id"
>
{{
item
.
name
}}
</div>
<div
class=
"brand-item"
v-for=
"item in brandList"
:key=
"item.id"
>
{{
item
.
name
}}
</div>
...
@@ -47,7 +47,7 @@ export default {
...
@@ -47,7 +47,7 @@ export default {
caseName
:
''
,
caseName
:
''
,
coverUrl
:
''
,
coverUrl
:
''
,
introduction
:
''
,
introduction
:
''
,
brandType
:
1
,
applyBrandType
:
0
,
videoCoverArr
:
[]
videoCoverArr
:
[]
},
},
brandList
:
[],
brandList
:
[],
...
@@ -69,7 +69,7 @@ export default {
...
@@ -69,7 +69,7 @@ export default {
},
trigger
:
'change'
}],
},
trigger
:
'change'
}],
introduction
:
[{
required
:
true
,
message
:
'请输入宣传文案'
,
trigger
:
'change'
}],
introduction
:
[{
required
:
true
,
message
:
'请输入宣传文案'
,
trigger
:
'change'
}],
brand
:
[{
required
:
true
,
validator
:
(
rule
,
value
,
callback
)
=>
{
brand
:
[{
required
:
true
,
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
formObj
.
brandType
==
2
&&
!
this
.
brandList
?.
length
)
{
if
(
this
.
formObj
.
applyBrandType
==
1
&&
!
this
.
brandList
?.
length
)
{
callback
(
new
Error
(
`请选择品牌`
))
callback
(
new
Error
(
`请选择品牌`
))
}
else
{
}
else
{
callback
()
callback
()
...
@@ -152,13 +152,12 @@ export default {
...
@@ -152,13 +152,12 @@ export default {
if
(
valid
){
if
(
valid
){
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
formObj
))
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
formObj
))
params
.
coverUrl
=
this
.
formObj
.
videoCoverArr
[
0
]
params
.
coverUrl
=
this
.
formObj
.
videoCoverArr
[
0
]
if
(
params
.
brandType
==
2
){
if
(
params
.
applyBrandType
==
1
){
params
.
brandList
=
this
.
brandList
.
map
(
item
=>
{
params
.
brandList
=
this
.
brandList
.
map
(
item
=>
{
return
{
brandId
:
item
.
id
,
brandName
:
item
.
name
}
return
{
brandId
:
item
.
id
,
brandName
:
item
.
name
}
})
})
}
}
delete
params
.
videoCoverArr
delete
params
.
videoCoverArr
delete
params
.
brandType
if
(
!
params
.
id
)
delete
params
.
id
if
(
!
params
.
id
)
delete
params
.
id
this
.
$apis
.
case
.
addCaseApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
case
.
addCaseApi
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
...
@@ -182,12 +181,11 @@ export default {
...
@@ -182,12 +181,11 @@ export default {
this
.
$apis
.
case
.
getCaseDetailApi
({
id
:
this
.
$route
.
query
.
id
}).
then
(
res
=>
{
this
.
$apis
.
case
.
getCaseDetailApi
({
id
:
this
.
$route
.
query
.
id
}).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
){
if
(
res
){
const
attrList
=
[
'id'
,
'mediaId'
,
'caseName'
,
'introduction'
]
const
attrList
=
[
'id'
,
'mediaId'
,
'caseName'
,
'introduction'
,
'applyBrandType'
]
attrList
.
forEach
(
key
=>
{
attrList
.
forEach
(
key
=>
{
this
.
formObj
[
key
]
=
res
[
key
]
this
.
formObj
[
key
]
=
res
[
key
]
})
})
this
.
formObj
.
videoCoverArr
=
[
res
.
coverUrl
]
this
.
formObj
.
videoCoverArr
=
[
res
.
coverUrl
]
this
.
formObj
.
brandType
=
res
.
brandList
?.
length
>
0
?
2
:
1
this
.
brandList
=
res
.
brandList
.
map
(
item
=>
({
id
:
item
.
brandId
,
name
:
item
.
brandName
}))
||
[]
this
.
brandList
=
res
.
brandList
.
map
(
item
=>
({
id
:
item
.
brandId
,
name
:
item
.
brandName
}))
||
[]
}
}
})
})
...
...
src/views/case/components/selectCarSeriesDialog.vue
View file @
a455650
...
@@ -6,8 +6,13 @@
...
@@ -6,8 +6,13 @@
:close-on-click-modal=
"false"
:close-on-click-modal=
"false"
@
onOk=
"handleConfirm"
@
onOk=
"handleConfirm"
@
onCancel=
"handleClose"
>
@
onCancel=
"handleClose"
>
<div
class=
"search-wrap"
>
<el-input
size=
"small"
placeholder=
"请输入搜索关键字"
v-model=
"curbrandName"
>
<i
slot=
"suffix"
class=
"el-input__icon el-icon-search"
></i>
</el-input>
</div>
<el-checkbox-group
v-model=
"checkedList"
>
<el-checkbox-group
v-model=
"checkedList"
>
<el-checkbox
v-for=
"item in
carSeries
List"
:key=
"item.id"
:label=
"item.id"
>
{{
item
.
name
}}
</el-checkbox>
<el-checkbox
v-for=
"item in
filterBrand
List"
:key=
"item.id"
:label=
"item.id"
>
{{
item
.
name
}}
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
</GLDialog>
</GLDialog>
</
template
>
</
template
>
...
@@ -16,8 +21,10 @@ export default {
...
@@ -16,8 +21,10 @@ export default {
name
:
'selectCarSeriesDialog'
,
name
:
'selectCarSeriesDialog'
,
data
()
{
data
()
{
return
{
return
{
curbrandName
:
''
,
checkedList
:[],
checkedList
:[],
carSeriesList
:
[]
carSeriesList
:
[],
filterBrandList
:
[]
}
}
},
},
props
:
{
props
:
{
...
@@ -29,6 +36,14 @@ export default {
...
@@ -29,6 +36,14 @@ export default {
type
:
Array
type
:
Array
}
}
},
},
watch
:{
curbrandName
:{
handler
(
nVal
,
oVal
){
this
.
filterBrandList
=
this
.
carSeriesList
.
filter
(
item
=>
item
.
name
.
indexOf
(
nVal
)
>-
1
)
},
deep
:
true
}
},
created
(){
created
(){
this
.
checkedList
=
this
?.
listData
.
map
(
item
=>
item
.
id
)
this
.
checkedList
=
this
?.
listData
.
map
(
item
=>
item
.
id
)
this
.
getCarSeriesList
()
this
.
getCarSeriesList
()
...
@@ -40,7 +55,7 @@ export default {
...
@@ -40,7 +55,7 @@ export default {
getCarSeriesList
(){
getCarSeriesList
(){
this
.
$apis
.
case
.
getCarSeriesApi
({}).
then
(
res
=>
{
this
.
$apis
.
case
.
getCarSeriesApi
({}).
then
(
res
=>
{
if
(
res
?.
length
){
if
(
res
?.
length
){
console
.
log
(
res
)
this
.
filterBrandList
=
res
this
.
carSeriesList
=
res
this
.
carSeriesList
=
res
}
}
})
})
...
@@ -64,4 +79,13 @@ export default {
...
@@ -64,4 +79,13 @@ export default {
height
:
32px
;
height
:
32px
;
line-height
:
32px
;
line-height
:
32px
;
}
}
.search-wrap
{
margin-bottom
:
12px
;
/deep/
.el-input
{
&,
.el-input__inner{
height
:
36px
;
width
:
432px
;
}
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/case/index.vue
View file @
a455650
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
</el-popover>
</el-popover>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<span
v-if=
"!scope.scope.brandList || !scope.scope.brandList.length"
>
--
</span>
<span
v-if=
"!scope.scope.brandList || !scope.scope.brandList.length"
>
{{
scope
.
scope
.
applyBrandType
==
1
?
'--'
:
'全部'
}}
</span>
<span
v-else
>
{{
filterBrand
(
scope
.
scope
).
join
(
'、'
)
}}
</span>
<span
v-else
>
{{
filterBrand
(
scope
.
scope
).
join
(
'、'
)
}}
</span>
</
template
>
</
template
>
</div>
</div>
...
@@ -213,6 +213,7 @@
...
@@ -213,6 +213,7 @@
this
.
$apis
.
case
.
delCaseApi
({
id
}).
then
(
res
=>
{
this
.
$apis
.
case
.
delCaseApi
({
id
}).
then
(
res
=>
{
if
(
res
){
if
(
res
){
this
.
$message
.
success
(
'删除成功'
)
this
.
$message
.
success
(
'删除成功'
)
this
.
handleSearch
()
}
}
})
})
}
}
...
...
src/views/channel/add.vue
View file @
a455650
...
@@ -5,10 +5,10 @@
...
@@ -5,10 +5,10 @@
<div
class=
"channel-content gl-form-page"
>
<div
class=
"channel-content gl-form-page"
>
<el-form
ref=
"ruleForm1"
:model=
"channelForm"
label-width=
"154px"
size=
"small"
:rules=
"rules"
>
<el-form
ref=
"ruleForm1"
:model=
"channelForm"
label-width=
"154px"
size=
"small"
:rules=
"rules"
>
<el-form-item
label=
"频道名称:"
prop=
"channelName"
>
<el-form-item
label=
"频道名称:"
prop=
"channelName"
>
<el-input
v-model=
"channelForm.channelName"
maxlength=
"
20
"
show-word-limit
></el-input>
<el-input
v-model=
"channelForm.channelName"
maxlength=
"
6
"
show-word-limit
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"频道子名称:"
prop=
"channelChildName"
>
<el-form-item
label=
"频道子名称:"
prop=
"channelChildName"
>
<el-input
v-model=
"channelForm.channelChildName"
maxlength=
"
20
"
show-word-limit
></el-input>
<el-input
v-model=
"channelForm.channelChildName"
maxlength=
"
12
"
show-word-limit
></el-input>
</el-form-item>
</el-form-item>
<span
v-if=
"channelForm.channelType == 1"
>
<span
v-if=
"channelForm.channelType == 1"
>
<el-form-item
label=
"频道主题:"
prop=
"channelStyle"
>
<el-form-item
label=
"频道主题:"
prop=
"channelStyle"
>
...
...
src/views/goods/add.vue
View file @
a455650
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
</div>
</div>
</div>
</div>
<div
slot=
"categorySlot"
>
<div
slot=
"categorySlot"
>
<brandCascader
:disabled=
"disabled"
@
clickItem=
"selectCategory"
class=
"category-class"
></brandCascader>
<brandCascader
:
curInfo=
"curCategoryInfo"
:
disabled=
"disabled"
@
clickItem=
"selectCategory"
class=
"category-class"
></brandCascader>
</div>
</div>
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
<el-button
v-if=
"!disabled"
type=
"primary"
@
click=
"handleSave"
>
确定
</el-button>
<el-button
v-if=
"!disabled"
type=
"primary"
@
click=
"handleSave"
>
确定
</el-button>
</GLFooter>
</GLFooter>
<selectCarDialog
v-if=
"carDialogVisible"
:echoData=
"vehicleSeriesRequestList"
@
handleClose=
"handleCarSeriesClose"
@
handleConfirm=
"handleConfirm"
:dialogVisible=
"carDialogVisible"
></selectCarDialog>
<selectCarDialog
v-if=
"carDialogVisible"
:echoData=
"vehicleSeriesRequestList"
@
handleClose=
"handleCarSeriesClose"
@
handleConfirm=
"handleConfirm"
:dialogVisible=
"carDialogVisible"
></selectCarDialog>
<selectGoods
v-if=
"goodsVisible"
:
dialogVisible=
"goodsVisible"
:goodsInfo=
"formObj
"
@
handleGoodsConfirm=
"handleGoodsConfirm"
@
handleGoodsClose=
"handleGoodsClose"
></selectGoods>
<selectGoods
v-if=
"goodsVisible"
:
routeInfo=
"routeInfo"
:dialogVisible=
"goodsVisible
"
@
handleGoodsConfirm=
"handleGoodsConfirm"
@
handleGoodsClose=
"handleGoodsClose"
></selectGoods>
<selectMerchantDialog
@
confirmDialog=
"confirmDialog"
@
closeDialog=
"closeDialog"
:goodsId=
"formObj.smartcarlifeInfoId"
:selectedList=
"merchantRequestList"
v-if=
"merchantDialogVisible"
:isVisible=
"merchantDialogVisible"
></selectMerchantDialog>
<selectMerchantDialog
@
confirmDialog=
"confirmDialog"
@
closeDialog=
"closeDialog"
:goodsId=
"formObj.smartcarlifeInfoId"
:selectedList=
"merchantRequestList"
v-if=
"merchantDialogVisible"
:isVisible=
"merchantDialogVisible"
></selectMerchantDialog>
</div>
</div>
</template>
</template>
...
@@ -125,10 +125,12 @@ export default {
...
@@ -125,10 +125,12 @@ export default {
merchantDialogVisible
:
false
,
merchantDialogVisible
:
false
,
disabled
:
false
,
disabled
:
false
,
goodsInfo
:
{},
goodsInfo
:
{},
routeInfo
:
{},
defaultProps
:{
defaultProps
:{
children
:
'categoryName'
,
children
:
'categoryName'
,
label
:
'childs'
label
:
'childs'
},
},
curCategoryInfo
:{},
posterOptions
:
{
posterOptions
:
{
width
:
'104px'
,
width
:
'104px'
,
height
:
'104px'
,
height
:
'104px'
,
...
@@ -210,6 +212,7 @@ export default {
...
@@ -210,6 +212,7 @@ export default {
}
else
{
}
else
{
callback
()
callback
()
}
}
this
.
validateField
(
'saleStore'
)
},
},
trigger
:
'change'
trigger
:
'change'
}],
}],
...
@@ -217,11 +220,19 @@ export default {
...
@@ -217,11 +220,19 @@ export default {
required
:
true
,
required
:
true
,
validator
:
(
rule
,
value
,
callback
)
=>
{
validator
:
(
rule
,
value
,
callback
)
=>
{
const
target
=
this
.
merchantRequestList
.
find
(
item
=>
!
item
.
activityPrice
)
const
target
=
this
.
merchantRequestList
.
find
(
item
=>
!
item
.
activityPrice
)
const
hasNegTarget
=
this
.
merchantRequestList
.
find
(
item
=>
{
let
activityPrice
=
item
.
activityPrice
||
0
let
depositPrice
=
this
.
formObj
.
depositPrice
||
0
return
+
activityPrice
<
+
depositPrice
})
if
(
!
this
.
merchantRequestList
.
length
){
if
(
!
this
.
merchantRequestList
.
length
){
callback
(
new
Error
(
'请选择门店'
))
callback
(
new
Error
(
'请选择门店'
))
}
else
if
(
target
){
}
else
if
(
target
){
callback
(
new
Error
(
'请输入门店活动价'
))
callback
(
new
Error
(
'请输入门店活动价'
))
}
else
if
(
this
.
formObj
.
paymentType
==
2
&&
hasNegTarget
){
callback
(
new
Error
(
'活动价不能小于定金'
))
}
else
{
}
else
{
console
.
log
(
this
.
formObj
.
paymentType
,
hasNegTarget
)
callback
()
callback
()
}
}
},
},
...
@@ -312,6 +323,15 @@ export default {
...
@@ -312,6 +323,15 @@ export default {
}
}
},
},
methods
:{
methods
:{
validateField
(
field
){
if
(
Array
.
isArray
(
field
)){
field
.
forEach
(
item
=>
{
this
.
$refs
.
baseInfoRef
.
$refs
.
formRef
.
validateField
(
item
)
})
}
else
{
this
.
$refs
.
baseInfoRef
.
$refs
.
formRef
.
validateField
(
field
)
}
},
retainagePriceFn
(
price
){
retainagePriceFn
(
price
){
let
depositPrice
=
this
.
formObj
.
paymentType
==
1
?
0
:
this
.
formObj
.
depositPrice
let
depositPrice
=
this
.
formObj
.
paymentType
==
1
?
0
:
this
.
formObj
.
depositPrice
if
(
this
.
formObj
.
paymentType
==
1
)
return
'--'
if
(
this
.
formObj
.
paymentType
==
1
)
return
'--'
...
@@ -335,6 +355,7 @@ export default {
...
@@ -335,6 +355,7 @@ export default {
retailPrice
=
retailPrice
?
Number
(
Number
(
retailPrice
/
100
).
toFixed
(
2
))
:
0
retailPrice
=
retailPrice
?
Number
(
Number
(
retailPrice
/
100
).
toFixed
(
2
))
:
0
this
.
formObj
=
{...
this
.
formObj
,
smartcarlifeInfoId
,
goodsName
,
goodsImage
,
coverList
:
[
goodsImage
],
minSellPrice
,
retailPrice
}
this
.
formObj
=
{...
this
.
formObj
,
smartcarlifeInfoId
,
goodsName
,
goodsImage
,
coverList
:
[
goodsImage
],
minSellPrice
,
retailPrice
}
this
.
handleGoodsClose
()
this
.
handleGoodsClose
()
this
.
validateField
([
'selectGoodsName'
,
'goodsInfoName'
])
},
},
handleCarSeriesClose
(){
handleCarSeriesClose
(){
this
.
carDialogVisible
=
!
this
.
carDialogVisible
this
.
carDialogVisible
=
!
this
.
carDialogVisible
...
@@ -358,10 +379,12 @@ export default {
...
@@ -358,10 +379,12 @@ export default {
}
}
})
})
this
.
handleCarSeriesClose
()
this
.
handleCarSeriesClose
()
this
.
validateField
(
'carSeriesName'
)
},
},
confirmDialog
(
e
){
confirmDialog
(
e
){
this
.
merchantRequestList
=
e
||
[]
this
.
merchantRequestList
=
e
||
[]
this
.
closeDialog
()
this
.
closeDialog
()
this
.
validateField
(
'saleStore'
)
},
},
closeDialog
(){
closeDialog
(){
if
(
!
this
.
merchantDialogVisible
&&
!
this
.
formObj
.
smartcarlifeInfoId
){
if
(
!
this
.
merchantDialogVisible
&&
!
this
.
formObj
.
smartcarlifeInfoId
){
...
@@ -372,11 +395,11 @@ export default {
...
@@ -372,11 +395,11 @@ export default {
handleDel
(
row
)
{
handleDel
(
row
)
{
const
idx
=
this
.
merchantRequestList
.
findIndex
(
item
=>
item
.
id
==
row
.
id
)
const
idx
=
this
.
merchantRequestList
.
findIndex
(
item
=>
item
.
id
==
row
.
id
)
this
.
merchantRequestList
.
splice
(
idx
,
1
)
this
.
merchantRequestList
.
splice
(
idx
,
1
)
// this.validateGoods()
},
},
selectCategory
(
e
){
selectCategory
(
e
){
this
.
formObj
.
associationClassifyFirstId
=
e
?.
parent
?.
id
this
.
formObj
.
associationClassifyFirstId
=
e
?.
parent
?.
id
this
.
formObj
.
associationClassifySecondId
=
e
?.
data
?.
id
this
.
formObj
.
associationClassifySecondId
=
e
?.
data
?.
id
this
.
validateField
(
'categoryName'
)
},
},
getParams
(){
getParams
(){
let
obj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
formObj
))
let
obj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
formObj
))
...
...
src/views/goods/components/brandCascader.vue
View file @
a455650
...
@@ -76,6 +76,7 @@ export default {
...
@@ -76,6 +76,7 @@ export default {
'curInfo.id'
:{
'curInfo.id'
:{
handler
(
nVal
,
oVal
){
handler
(
nVal
,
oVal
){
if
(
this
.
curBrand
.
id
==
nVal
)
return
this
.
curBrand
=
this
.
curInfo
this
.
curBrand
=
this
.
curInfo
},
},
deep
:
true
deep
:
true
...
@@ -116,6 +117,7 @@ export default {
...
@@ -116,6 +117,7 @@ export default {
},
},
// 显示隐藏
// 显示隐藏
switchBrand
()
{
switchBrand
()
{
if
(
this
.
disabled
)
return
let
distance
=
0
let
distance
=
0
try
{
try
{
distance
=
window
.
innerHeight
-
this
.
$refs
.
cascaderRef
.
getBoundingClientRect
().
y
-
this
.
$refs
.
cascaderRef
.
getBoundingClientRect
().
height
distance
=
window
.
innerHeight
-
this
.
$refs
.
cascaderRef
.
getBoundingClientRect
().
y
-
this
.
$refs
.
cascaderRef
.
getBoundingClientRect
().
height
...
...
src/views/goods/components/selectGoods.vue
View file @
a455650
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
:close-on-click-modal=
"false"
:close-on-click-modal=
"false"
@
onOk=
"handleConfirm"
@
onOk=
"handleConfirm"
@
onCancel=
"handleClose"
>
@
onCancel=
"handleClose"
>
<
!--
<
glsx-combi-form
ref=
"showSearch"
<glsx-combi-form
ref=
"showSearch"
labelWidth=
"105px"
labelWidth=
"105px"
:formObj=
"searchForm"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
:formData=
"searchFormData"
>
...
@@ -16,15 +16,14 @@
...
@@ -16,15 +16,14 @@
type=
"primary"
type=
"primary"
@
click=
"resetTable"
>
查询
</el-button>
@
click=
"resetTable"
>
查询
</el-button>
</span>
</span>
</glsx-combi-form>
-->
</glsx-combi-form>
<GLTable
ref=
"
store
Ref"
<GLTable
ref=
"
goods
Ref"
:noDataImg=
"url"
:noDataImg=
"url"
:tableTotal=
"total"
:searchForm=
"searchForm"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:pageConf=
"pageConf"
@
refreshTable=
"getList"
@
refreshTable=
"getList"
:
tableData=
"storeList"
:
getListApi=
"getListApi"
:hasNum=
"false"
:hasNum=
"false"
:setTableFinishFun=
"setTableFinishFun"
>
:setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"radioHtml"
<div
slot=
"radioHtml"
...
@@ -53,36 +52,30 @@ export default {
...
@@ -53,36 +52,30 @@ export default {
return
{
return
{
url
:
url
,
url
:
url
,
searchForm
:
{
searchForm
:
{
goodsName
:
''
,
configurationUpgradeGoodsId
:
''
},
},
// getListApi: this.$apis.common.getMerchantList,
total
:
0
,
total
:
0
,
storeList
:
[],
storeList
:
[],
heightBox
:
200
,
heightBox
:
200
,
curInfo
:
{},
curInfo
:
{},
// 搜索
// 搜索
// searchFormData: [
searchFormData
:
[
// {
{
// label: '商户名称',
label
:
'商品名称'
,
// name: 'merchantName',
name
:
'goodsName'
,
// type: 'input',
type
:
'input'
,
// placeholder: '请输入商户名称',
placeholder
:
'请输入商品名称'
,
// width: '300px',
width
:
'300px'
,
// labelWidth: '10px'
labelWidth
:
'10px'
,
// },
isClear
:
true
// {
}
// label: '商户ID',
],
// name: 'merchantId',
// type: 'input',
// inputType: 'number',
// placeholder: '请输入商户ID',
// width: '300px',
// labelWidth: '10px'
// }
// ],
pageConfig
:
{
pageConfig
:
{
pageSize
:
10
,
pageSize
:
10
,
currentPage
:
1
pageNum
:
1
},
},
getListApi
:
this
.
$apis
.
goods
.
getCarlifeGoodsApi
,
tableParams
:
{
tableParams
:
{
listName
:
'list'
,
listName
:
'list'
,
tableColumns
:
[
tableColumns
:
[
...
@@ -108,7 +101,7 @@ export default {
...
@@ -108,7 +101,7 @@ export default {
}
}
]
]
},
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'
currentPage
'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'
pageNum
'
,
totalCount
:
'total'
},
baseData
:
{}
baseData
:
{}
}
}
},
},
...
@@ -118,6 +111,10 @@ export default {
...
@@ -118,6 +111,10 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
routeInfo
:
{
type
:
Object
,
default
:
()
=>
{}
},
storeSearchForm
:
{
storeSearchForm
:
{
type
:
Object
type
:
Object
},
},
...
@@ -127,47 +124,28 @@ export default {
...
@@ -127,47 +124,28 @@ export default {
}
}
},
},
created
()
{
created
()
{
let
{
smartcarlifeInfoId
,
goodsName
,
coverList
,
goodsImage
,
minSellPrice
,
retailPrice
}
=
this
.
goodsInfo
||
{}
// let { smartcarlifeInfoId, goodsName, coverList, goodsImage, minSellPrice, retailPrice } = this.goodsInfo || {}
this
.
curInfo
=
{
// this.curInfo = {
id
:
smartcarlifeInfoId
,
// id: smartcarlifeInfoId,
goodsName
,
// goodsName,
goodsImage
:
coverList
?.[
0
]
||
''
,
// goodsImage: coverList?.[0] || '',
minSellPrice
:
minSellPrice
?
Number
(
Number
(
minSellPrice
*
10
*
10
).
toFixed
(
0
))
:
0
,
// minSellPrice: minSellPrice ? Number(Number(minSellPrice*10*10).toFixed(0)) : 0,
retailPrice
:
retailPrice
?
Number
(
Number
(
retailPrice
*
10
*
10
).
toFixed
(
0
))
:
0
,
// retailPrice: retailPrice ? Number(Number(retailPrice*10*10).toFixed(0)) : 0,
}
// }
this
.
searchForm
.
configurationUpgradeGoodsId
=
this
.
routeInfo
.
type
==
2
?
this
.
routeInfo
.
id
:
''
},
},
mounted
()
{
mounted
()
{
let
clientHeight
=
document
.
documentElement
.
clientHeight
let
clientHeight
=
document
.
documentElement
.
clientHeight
this
.
heightBox
=
clientHeight
-
0.15
*
clientHeight
-
425
this
.
heightBox
=
clientHeight
-
0.15
*
clientHeight
-
425
this
.
getList
()
},
},
methods
:
{
methods
:
{
getList
(
pageCon
)
{
pageCon
&&
(
this
.
pageConfig
=
pageCon
)
var
params
=
{
merchantId
:
this
.
merchantId
,
...
this
.
searchForm
,
...
this
.
pageConfig
// merchantId: '44209390',
}
this
.
$apis
.
goods
.
getCarlifeGoodsApi
(
params
).
then
(
res
=>
{
this
.
storeList
=
res
.
list
this
.
total
=
res
.
total
let
nowIndex
=
this
.
pageConfig
.
pageSize
*
(
this
.
pageConfig
.
currentPage
-
1
)
this
.
storeList
.
forEach
((
item
,
index
)
=>
{
item
.
idx
=
index
+
1
+
nowIndex
})
})
},
resetTable
()
{
resetTable
()
{
this
.
$refs
.
storeRef
.
page
.
currentPage
=
1
this
.
$refs
.
goodsRef
.
refreshTable
()
this
.
getList
()
},
},
setTableFinishFun
()
{
setTableFinishFun
()
{
this
.
$refs
.
staff
Ref
.
tableHeightValues
=
'460px'
this
.
$refs
.
goods
Ref
.
tableHeightValues
=
'460px'
},
},
handleClick
(
item
)
{
handleClick
(
item
)
{
...
@@ -185,7 +163,15 @@ export default {
...
@@ -185,7 +163,15 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
/
deep
/
.glsx-combi-form
.el-form
{
.el-form-item{
margin-right
:
12px
!important
;
}
.el-button
{
margin-top
:
1px
;
}
}
.select-store
{
.select-store
{
.storeDailog
{
.storeDailog
{
width
:
500px
;
width
:
500px
;
...
...
src/views/goods/index.vue
View file @
a455650
...
@@ -175,6 +175,7 @@
...
@@ -175,6 +175,7 @@
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'商品名称'
,
label
:
'商品名称'
,
width
:
150
,
prop
:
'goodsName'
prop
:
'goodsName'
},
},
{
{
...
@@ -183,12 +184,14 @@
...
@@ -183,12 +184,14 @@
},
},
{
{
label
:
'收款方式'
,
label
:
'收款方式'
,
width
:
120
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
paymentType
==
1
?
'全款'
:
'定金+尾款'
return
cellValue
.
paymentType
==
1
?
'全款'
:
'定金+尾款'
}
}
},
},
{
{
label
:
'定金(元)'
,
label
:
'定金(元)'
,
width
:
120
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
depositPrice
?
Number
((
Number
(
cellValue
.
depositPrice
)
/
100
).
toFixed
(
2
))
:
'--'
return
cellValue
.
depositPrice
?
Number
((
Number
(
cellValue
.
depositPrice
)
/
100
).
toFixed
(
2
))
:
'--'
}
}
...
@@ -200,6 +203,7 @@
...
@@ -200,6 +203,7 @@
},
},
{
{
label
:
'分类'
,
label
:
'分类'
,
width
:
150
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
`
${
cellValue
.
associationClassifyFirstName
||
''
}
-
${
cellValue
.
associationClassifySecondName
||
''
}
`
return
`
${
cellValue
.
associationClassifyFirstName
||
''
}
-
${
cellValue
.
associationClassifySecondName
||
''
}
`
}
}
...
@@ -220,6 +224,7 @@
...
@@ -220,6 +224,7 @@
},
},
{
{
label
:
'操作人'
,
label
:
'操作人'
,
width
:
120
,
prop
:
'operator'
,
prop
:
'operator'
,
},
},
]
]
...
@@ -284,8 +289,8 @@
...
@@ -284,8 +289,8 @@
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableSearchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableSearchForm
))
if
(
this
.
tableSearchForm
.
createDate
.
length
)
{
if
(
this
.
tableSearchForm
.
createDate
.
length
)
{
params
.
createdDateStrat
=
new
Date
(
this
.
tableSearchForm
.
createDate
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
params
.
startCreatedDate
=
new
Date
(
this
.
tableSearchForm
.
createDate
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
params
.
createdDateEnd
=
new
Date
(
this
.
tableSearchForm
.
createDate
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
params
.
endCreatedDate
=
new
Date
(
this
.
tableSearchForm
.
createDate
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
}
}
return
params
return
params
},
},
...
...
src/views/store/add.vue
View file @
a455650
...
@@ -66,7 +66,8 @@ export default {
...
@@ -66,7 +66,8 @@ export default {
{
{
label
:
'主营品牌车系'
,
label
:
'主营品牌车系'
,
name
:
'carId'
,
name
:
'carId'
,
addHtml
:
'carSeriesHtml'
addHtml
:
'carSeriesHtml'
,
isHide
:
true
},
},
],
],
selectedList
:
[],
selectedList
:
[],
...
@@ -146,6 +147,10 @@ export default {
...
@@ -146,6 +147,10 @@ export default {
this
.
editForm
.
channelIds
=
[]
this
.
editForm
.
channelIds
=
[]
res
.
forEach
(
item
=>
{
res
.
forEach
(
item
=>
{
this
.
editForm
.
channelIds
.
push
(
item
.
channelId
)
this
.
editForm
.
channelIds
.
push
(
item
.
channelId
)
if
(
item
.
channelId
==
5
)
{
const
_target
=
this
.
editFormData
.
find
(
item
=>
item
.
name
==
'carId'
)
_target
.
isHide
=
false
}
})
})
})
})
},
},
...
@@ -163,7 +168,7 @@ export default {
...
@@ -163,7 +168,7 @@ export default {
merchantId
:
this
.
editForm
.
merchantId
,
merchantId
:
this
.
editForm
.
merchantId
,
merchantName
:
this
.
editForm
.
merchantName
,
merchantName
:
this
.
editForm
.
merchantName
,
channelIds
:
this
.
editForm
.
channelIds
,
channelIds
:
this
.
editForm
.
channelIds
,
vehicleSeriesRequests
:
this
.
editForm
.
vehicleSeriesRequests
vehicleSeriesRequests
:
this
.
editForm
?.
channelIds
?.
includes
(
5
)
?
this
.
editForm
.
vehicleSeriesRequests
:
[]
}
}
this
.
loading
=
true
this
.
loading
=
true
this
.
$apis
.
store
.
configMerchant
(
params
).
then
(
res
=>
{
this
.
$apis
.
store
.
configMerchant
(
params
).
then
(
res
=>
{
...
@@ -181,7 +186,13 @@ export default {
...
@@ -181,7 +186,13 @@ export default {
})
})
},
},
handleCheckedChannelChange
(
val
)
{
handleCheckedChannelChange
(
val
)
{
// console.log(this.editForm.channelIds)
const
_target
=
this
.
editFormData
.
find
(
item
=>
item
.
name
==
'carId'
)
if
(
val
?.
includes
(
5
)){
_target
.
isHide
=
false
}
else
{
_target
.
isHide
=
true
this
.
editForm
.
vehicleSeriesRequests
=
[]
}
},
},
//选择车系
//选择车系
handleCarSeriesClose
(){
handleCarSeriesClose
(){
...
...
src/views/store/components/selectCarDialog.vue
View file @
a455650
...
@@ -6,12 +6,17 @@
...
@@ -6,12 +6,17 @@
:close-on-click-modal=
"false"
:close-on-click-modal=
"false"
@
onOk=
"handleConfirm"
@
onOk=
"handleConfirm"
@
onCancel=
"handleClose"
>
@
onCancel=
"handleClose"
>
<div
class=
"search-wrap"
>
<el-input
size=
"small"
placeholder=
"请输入搜索关键字"
v-model=
"curbrandName"
>
<i
slot=
"suffix"
class=
"el-input__icon el-icon-search"
></i>
</el-input>
</div>
<div
v-if=
"loading"
class=
"loading-wrap"
>
<div
v-if=
"loading"
class=
"loading-wrap"
>
<img
class=
"loading-img"
:src=
"url"
alt=
""
>
<img
class=
"loading-img"
:src=
"url"
alt=
""
>
</div>
</div>
<div
class=
"car-container"
v-else
>
<div
class=
"car-container"
v-else
>
<div
class=
"wrap"
>
<div
class=
"wrap"
>
<div
class=
"item son-brand-wrap"
v-for=
"(item, index) in
carSeriesData
"
:key=
"item.id"
>
<div
class=
"item son-brand-wrap"
v-for=
"(item, index) in
filterBrandList
"
:key=
"item.id"
>
<el-checkbox
v-if=
"!singleChoice"
:disabled=
"!(item.childs && item.childs.length)"
:indeterminate=
"isIndeterminate(item, 1)"
:value=
"isChecked(item, 1)"
@
change=
"changeBrandStatus($event, item, index)"
></el-checkbox>
<el-checkbox
v-if=
"!singleChoice"
:disabled=
"!(item.childs && item.childs.length)"
:indeterminate=
"isIndeterminate(item, 1)"
:value=
"isChecked(item, 1)"
@
change=
"changeBrandStatus($event, item, index)"
></el-checkbox>
<span
:class=
"['son-brand-label',
{'curItem' : curBrandInfo.id==item.id}]" @click="showSonBrandList(item)">
<span
:class=
"['son-brand-label',
{'curItem' : curBrandInfo.id==item.id}]" @click="showSonBrandList(item)">
{{
item
.
name
}}
{{
item
.
name
}}
...
@@ -43,7 +48,9 @@
...
@@ -43,7 +48,9 @@
return
{
return
{
url
,
url
,
loading
:
true
,
loading
:
true
,
curbrandName
:
''
,
carSeriesData
:
[],
carSeriesData
:
[],
filterBrandList
:
[],
sonBrandList
:
[],
sonBrandList
:
[],
carSeriesList
:
[],
carSeriesList
:
[],
selectdData
:
{},
selectdData
:
{},
...
@@ -55,7 +62,7 @@
...
@@ -55,7 +62,7 @@
id
:
''
,
id
:
''
,
name
:
''
name
:
''
},
},
isClearData
:
true
isClearData
:
true
//品牌为单选的时候,是否需要清空数据
}
}
},
},
computed
:{
computed
:{
...
@@ -74,6 +81,16 @@
...
@@ -74,6 +81,16 @@
default
:
()
=>
[]
default
:
()
=>
[]
},
},
},
},
watch
:{
curbrandName
:{
handler
(
nVal
,
oVal
){
this
.
sonBrandList
=
[]
this
.
carSeriesList
=
[]
this
.
filterBrandList
=
this
.
carSeriesData
.
filter
(
item
=>
item
.
name
.
indexOf
(
nVal
)
>-
1
)
},
deep
:
true
}
},
created
(){
created
(){
this
.
echoDataFn
()
this
.
echoDataFn
()
},
},
...
@@ -102,6 +119,16 @@
...
@@ -102,6 +119,16 @@
this
.
selectdData
=
obj
this
.
selectdData
=
obj
},
},
changeBrandStatus
(
e
,
row
,
idx
){
changeBrandStatus
(
e
,
row
,
idx
){
this
.
curBrandInfo
=
{
id
:
row
.
id
,
name
:
row
.
name
}
this
.
sonBrandList
=
row
?.
childs
||
[]
this
.
curSonBrandInfo
=
{
id
:
row
?.
childs
?.[
0
]?.
id
,
name
:
row
?.
childs
?.[
0
]?.
name
}
this
.
carSeriesList
=
row
?.
childs
?.[
0
]?.
childs
||
[]
const
{
id
:
rootId
,
name
:
rootName
}
=
row
const
{
id
:
rootId
,
name
:
rootName
}
=
row
if
(
this
.
selectdData
[
rootId
]){
if
(
this
.
selectdData
[
rootId
]){
this
.
$delete
(
this
.
selectdData
,
rootId
)
this
.
$delete
(
this
.
selectdData
,
rootId
)
...
@@ -123,6 +150,11 @@
...
@@ -123,6 +150,11 @@
this
.
selectdData
=
{}
this
.
selectdData
=
{}
this
.
isClearData
=
false
this
.
isClearData
=
false
}
}
this
.
curSonBrandInfo
=
{
id
:
row
.
id
,
name
:
row
.
name
}
this
.
carSeriesList
=
row
?.
childs
const
{
id
:
rootId
,
name
:
rootName
}
=
this
.
curBrandInfo
const
{
id
:
rootId
,
name
:
rootName
}
=
this
.
curBrandInfo
if
(
this
.
selectdData
[
rootId
]){
if
(
this
.
selectdData
[
rootId
]){
if
(
this
.
selectdData
[
rootId
][
row
.
id
]){
if
(
this
.
selectdData
[
rootId
][
row
.
id
]){
...
@@ -173,8 +205,12 @@
...
@@ -173,8 +205,12 @@
id
:
row
.
id
,
id
:
row
.
id
,
name
:
row
.
name
name
:
row
.
name
}
}
this
.
curSonBrandInfo
=
{
id
:
row
?.
childs
?.[
0
]?.
id
,
name
:
row
?.
childs
?.[
0
]?.
name
}
this
.
sonBrandList
=
row
?.
childs
||
[]
this
.
sonBrandList
=
row
?.
childs
||
[]
this
.
carSeriesList
=
[]
this
.
carSeriesList
=
row
?.
childs
?.[
0
]?.
childs
||
[]
},
},
showCarSeriesList
(
row
){
showCarSeriesList
(
row
){
if
(
row
.
id
==
this
.
curSonBrandInfo
.
id
)
return
if
(
row
.
id
==
this
.
curSonBrandInfo
.
id
)
return
...
@@ -215,6 +251,7 @@
...
@@ -215,6 +251,7 @@
this
.
$apis
.
case
.
getCarSeriesApi
({
needCarSeries
:
true
}).
then
(
res
=>
{
this
.
$apis
.
case
.
getCarSeriesApi
({
needCarSeries
:
true
}).
then
(
res
=>
{
if
(
res
?.
length
){
if
(
res
?.
length
){
this
.
carSeriesData
=
res
this
.
carSeriesData
=
res
this
.
filterBrandList
=
res
}
}
}).
finally
(
end
=>
{
}).
finally
(
end
=>
{
this
.
loading
=
false
this
.
loading
=
false
...
@@ -231,8 +268,16 @@
...
@@ -231,8 +268,16 @@
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
.search-wrap
{
margin-bottom
:
12px
;
.el-input
{
&,
.el-input__inner{
height
:
36px
;
width
:
432px
;
}
}
}
.loading-wrap
{
.loading-wrap
{
height
:
200px
;
height
:
200px
;
width
:
100%
;
width
:
100%
;
...
...
src/views/store/edit.vue
View file @
a455650
...
@@ -29,24 +29,6 @@
...
@@ -29,24 +29,6 @@
<span
:class=
"['status', scope.scope.goodsStatus==1 ? 'success-status': 'error-status']"
></span>
<span
:class=
"['status', scope.scope.goodsStatus==1 ? 'success-status': 'error-status']"
></span>
<span>
{{
scope
.
scope
.
goodsStatus
==
1
?
'上架'
:
'下架'
}}
</span>
<span>
{{
scope
.
scope
.
goodsStatus
==
1
?
'上架'
:
'下架'
}}
</span>
</div>
</div>
<div
slot=
"merchantPriceSlot"
slot-scope=
"scope"
>
<template
v-if=
"scope.scope.merchantList && scope.scope.merchantList.length > 1"
>
<span>
{{
filterData
(
scope
.
scope
).
slice
(
0
,
1
).
join
(
'、'
)
}}
</span>
<el-popover
placement=
"top"
width=
"400"
trigger=
"hover"
>
<div
v-for=
"(item,index) in filterData(scope.scope)"
:key=
"index"
>
{{
item
}}
</div>
<span
class=
"more-info"
slot=
"reference"
>
...[
{{
scope
.
scope
.
merchantList
.
length
}}
]
</span>
</el-popover>
</
template
>
<
template
v-else
>
<span
v-if=
"!scope.scope.merchantList || !scope.scope.merchantList.length"
>
--
</span>
<span
v-else
>
{{
filterData
(
scope
.
scope
).
join
(
'、'
)
}}
</span>
</
template
>
</div>
<template
slot=
"activityLink"
slot-scope=
"scope"
>
<template
slot=
"activityLink"
slot-scope=
"scope"
>
<span
class=
"relink"
>
{{
scope
.
scope
.
activityName
}}
</span>
<span
class=
"relink"
>
{{
scope
.
scope
.
activityName
}}
</span>
</
template
>
</
template
>
...
@@ -148,12 +130,6 @@ export default {
...
@@ -148,12 +130,6 @@ export default {
filter
:
'1,2,3,4,5'
filter
:
'1,2,3,4,5'
},
},
{
{
label
:
'商户名称'
,
name
:
'merchantName'
,
type
:
'input'
,
filter
:
'5'
},
{
label
:
'商品分类'
,
label
:
'商品分类'
,
name
:
'goodsCategory'
,
name
:
'goodsCategory'
,
addHtml
:
'categorySlot'
,
addHtml
:
'categorySlot'
,
...
@@ -234,6 +210,7 @@ export default {
...
@@ -234,6 +210,7 @@ export default {
},
},
{
{
label
:
'商品名称'
,
label
:
'商品名称'
,
width
:
200
,
prop
:
'goodsName'
,
prop
:
'goodsName'
,
filter
:
'5'
filter
:
'5'
},
},
...
@@ -244,6 +221,7 @@ export default {
...
@@ -244,6 +221,7 @@ export default {
},
},
{
{
label
:
'收款方式'
,
label
:
'收款方式'
,
width
:
120
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
paymentType
==
1
?
'全款'
:
'定金+尾款'
return
cellValue
.
paymentType
==
1
?
'全款'
:
'定金+尾款'
},
},
...
@@ -251,6 +229,7 @@ export default {
...
@@ -251,6 +229,7 @@ export default {
},
},
{
{
label
:
'定金(元)'
,
label
:
'定金(元)'
,
width
:
120
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
depositPrice
?
Number
((
Number
(
cellValue
.
depositPrice
)
/
100
).
toFixed
(
2
))
:
'--'
return
cellValue
.
depositPrice
?
Number
((
Number
(
cellValue
.
depositPrice
)
/
100
).
toFixed
(
2
))
:
'--'
},
},
...
@@ -258,12 +237,16 @@ export default {
...
@@ -258,12 +237,16 @@ export default {
},
},
{
{
label
:
'门店活动价(元)'
,
label
:
'门店活动价(元)'
,
width
:
200
,
width
:
150
,
addHtml
:
'merchantPriceSlot'
,
formatter
:
cellValue
=>
{
let
item
=
cellValue
.
merchantList
&&
cellValue
.
merchantList
[
0
]
?
cellValue
.
merchantList
[
0
]
:
{}
return
item
.
activityPrice
?
Number
((
Number
(
item
.
activityPrice
)
/
100
).
toFixed
(
2
))
:
0
},
filter
:
'5'
filter
:
'5'
},
},
{
{
label
:
'分类'
,
label
:
'分类'
,
width
:
150
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
`
${
cellValue
.
associationClassifyFirstName
||
''
}
-
${
cellValue
.
associationClassifySecondName
||
''
}
`
return
`
${
cellValue
.
associationClassifyFirstName
||
''
}
-
${
cellValue
.
associationClassifySecondName
||
''
}
`
},
},
...
@@ -301,6 +284,7 @@ export default {
...
@@ -301,6 +284,7 @@ export default {
},
},
{
{
label
:
'操作人'
,
label
:
'操作人'
,
width
:
120
,
prop
:
'operator'
,
prop
:
'operator'
,
filter
:
'5'
filter
:
'5'
},
},
...
@@ -374,6 +358,9 @@ export default {
...
@@ -374,6 +358,9 @@ export default {
const
{
associationClassifyFirstId
,
associationClassifySecondId
}
=
this
.
ClassifyInfo
const
{
associationClassifyFirstId
,
associationClassifySecondId
}
=
this
.
ClassifyInfo
this
.
searchForm
.
associationClassifyFirstId
=
associationClassifyFirstId
this
.
searchForm
.
associationClassifyFirstId
=
associationClassifyFirstId
this
.
searchForm
.
associationClassifySecondId
=
associationClassifySecondId
this
.
searchForm
.
associationClassifySecondId
=
associationClassifySecondId
this
.
searchForm
.
startCreatedDate
=
this
.
searchForm
.
createdDate
?
this
.
searchForm
.
createdDate
+
' 00:00:00'
:
''
this
.
searchForm
.
endCreatedDate
=
this
.
searchForm
.
createdDate
?
this
.
searchForm
.
createdDate
+
' 23:59:59'
:
''
delete
this
.
searchForm
.
createdDate
}
}
// delete this.searchForm.createDate
// delete this.searchForm.createDate
resolve
()
resolve
()
...
...
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