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 0dfdb937
authored
Jul 12, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式修改
1 parent
1fdd4e09
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
51 deletions
src/views/goods/add.vue
src/views/goods/components/brandCascader.vue
src/views/goods/add.vue
View file @
0dfdb93
<
template
>
<div
class=
"container"
>
<glsx-combi-form
:isInline=
"false"
class=
"glsx-combi-form"
ref=
"baseInfoRef"
labelWidth=
"154px"
defaultWidth=
"432px"
:formObj
.
sync=
"formObj"
:formData=
"formData"
:formRules=
"myRule"
>
<div
slot=
"selectGoodsSlot"
>
<el-button
v-if=
"!disabled"
class=
"el-icon-plus"
size=
"small"
@
click=
"openGoodsDialog"
>
{{
formObj
.
smartcarlifeInfoId
?
'重新选择'
:
'选择商品'
}}
</el-button>
</div>
<div
slot=
"goodsInfoSlot"
class=
"goods-wrap"
>
<glsx-combi-form
:isInline=
"false"
ref=
"goodsInfoRef"
labelWidth=
"154px"
defaultWidth=
"432px"
:formObj
.
sync=
"formObj"
:formData=
"goodsFormData"
:formRules=
"goodsRule"
>
<div
slot=
"uploadSlot"
>
<glsx-preview
:picOptions=
"posterOptions"
:imageUrlArr=
"formObj.coverList"
@
change=
"changeChannelImg"
></glsx-preview>
</div>
</glsx-combi-form>
</div>
<div
slot=
"paymentSlot"
>
<el-radio-group
:disabled=
"disabled"
v-model=
"formObj.paymentType"
>
<el-radio
:label=
"1"
>
全款
</el-radio>
<el-radio
:label=
"2"
>
定金+尾款
</el-radio>
</el-radio-group>
<div
class=
"money-wrap"
v-if=
"formObj.paymentType == 2"
>
<label
class=
"label"
for=
""
>
定金金额/元:
</label>
<el-input
:disabled=
"disabled"
v-model=
"formObj.depositPrice"
></el-input>
<div
class=
"goods-ctnr"
>
<div
class=
"container"
>
<glsx-combi-form
:isInline=
"false"
class=
"glsx-combi-form"
ref=
"baseInfoRef"
labelWidth=
"154px"
defaultWidth=
"432px"
:formObj
.
sync=
"formObj"
:formData=
"formData"
:formRules=
"myRule"
>
<div
slot=
"selectGoodsSlot"
>
<el-button
:class=
"['el-icon-plus',
{'disabled-class':disabled}]" size="small" @click="openGoodsDialog">
{{
formObj
.
smartcarlifeInfoId
?
'重新选择'
:
'选择商品'
}}
</el-button>
</div>
</div>
<div
slot=
"saleStoreSlot"
>
<el-button
v-if=
"!disabled"
class=
"el-icon-plus"
size=
"small"
@
click=
"closeDialog"
>
选择门店
</el-button>
<GLTable
class=
"selected-table"
:hasPage=
"false"
ref=
"selectedRef"
:tableParams=
"selectedtableParams"
:tableData=
"merchantRequestList"
>
<div
slot=
"activityPriceSlot"
slot-scope=
"scope"
>
<el-input
:disabled=
"disabled"
placeholder=
"请输入"
v-model=
"scope.scope.activityPrice"
/>
</div>
<div
slot=
"retainagePriceSlot"
slot-scope=
"scope"
>
{{
retainagePriceFn
(
scope
.
scope
.
activityPrice
)
}}
</div>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
v-if=
"!disabled"
type=
"text"
@
click=
"handleDel(scope.scope)"
>
删除
</el-button>
<div
slot=
"goodsInfoSlot"
class=
"goods-wrap"
>
<glsx-combi-form
:isInline=
"false"
ref=
"goodsInfoRef"
labelWidth=
"154px"
defaultWidth=
"432px"
:formObj
.
sync=
"formObj"
:formData=
"goodsFormData"
:formRules=
"goodsRule"
>
<div
slot=
"uploadSlot"
>
<glsx-preview
:picOptions=
"posterOptions"
:imageUrlArr=
"formObj.coverList"
@
change=
"changeChannelImg"
></glsx-preview>
</div>
</glsx-combi-form>
</div>
<div
slot=
"paymentSlot"
>
<el-radio-group
:disabled=
"disabled"
v-model=
"formObj.paymentType"
>
<el-radio
:label=
"1"
>
全款
</el-radio>
<el-radio
:label=
"2"
>
定金+尾款
</el-radio>
</el-radio-group>
<div
class=
"money-wrap"
v-if=
"formObj.paymentType == 2"
>
<label
class=
"label"
for=
""
>
定金金额/元:
</label>
<el-input
:disabled=
"disabled"
v-model=
"formObj.depositPrice"
></el-input>
</div>
</GLTable>
</div>
<div
slot=
"carSeriesSlot"
>
<el-radio-group
:disabled=
"disabled"
v-model=
"formObj.vehicleSeriesType"
>
<el-radio
:label=
"1"
>
全部
</el-radio>
<el-radio
:label=
"2"
>
部分
</el-radio>
</el-radio-group>
<div
v-if=
"formObj.vehicleSeriesType == 2"
>
<el-button
type=
"default"
v-if=
"!disabled"
class=
"el-icon-plus"
@
click=
"handleCarSeriesClose"
>
选择车系
</el-button>
<div
class=
"car-series-wrap"
v-if=
"vehicleSeriesRequestList && vehicleSeriesRequestList.length"
>
<div
class=
"car-series-item"
v-for=
"item in vehicleSeriesRequestList"
:key=
"item.vehicleSeriesId"
>
{{
item
.
vehicleSeriesName
}}
</div>
</div>
<div
slot=
"saleStoreSlot"
>
<el-button
v-if=
"!disabled"
class=
"el-icon-plus"
size=
"small"
@
click=
"closeDialog"
>
选择门店
</el-button>
<template
v-if=
"merchantRequestList && merchantRequestList.length"
>
<GLTable
class=
"selected-table"
:hasPage=
"false"
ref=
"selectedRef"
:tableParams=
"selectedtableParams"
:tableData=
"merchantRequestList"
>
<div
slot=
"activityPriceSlot"
slot-scope=
"scope"
>
<el-input
:disabled=
"disabled"
placeholder=
"请输入"
v-model=
"scope.scope.activityPrice"
/>
</div>
<div
slot=
"retainagePriceSlot"
slot-scope=
"scope"
>
{{
retainagePriceFn
(
scope
.
scope
.
activityPrice
)
}}
</div>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
v-if=
"!disabled"
type=
"text"
@
click=
"handleDel(scope.scope)"
>
删除
</el-button>
</div>
</GLTable>
</
template
>
</div>
<div
slot=
"carSeriesSlot"
>
<el-radio-group
:disabled=
"disabled"
v-model=
"formObj.vehicleSeriesType"
>
<el-radio
:label=
"1"
>
全部
</el-radio>
<el-radio
:label=
"2"
>
部分
</el-radio>
</el-radio-group>
<div
v-if=
"formObj.vehicleSeriesType == 2"
>
<el-button
type=
"default"
v-if=
"!disabled"
class=
"el-icon-plus"
@
click=
"handleCarSeriesClose"
>
选择车系
</el-button>
<div
class=
"car-series-wrap"
v-if=
"vehicleSeriesRequestList && vehicleSeriesRequestList.length"
>
<div
class=
"car-series-item"
v-for=
"item in vehicleSeriesRequestList"
:key=
"item.vehicleSeriesId"
>
{{ item.vehicleSeriesName }}
</div>
</div>
</div>
</div>
</div
>
<div
slot=
"categorySlot"
>
<
brandCascader
:listTree=
"categoryData"
:defaultProps=
"defaultProps"
@
clickItem=
"selectCategory"
:curInfo=
"curCategoryInfo"
class=
"category-class"
></brandCascader
>
</
div
>
</
glsx-combi-form
>
<GLFooter>
<div
slot=
"categorySlot"
>
<brandCascader
:disabled=
"disabled"
:listTree=
"categoryData"
:defaultProps=
"defaultProps"
@
clickItem=
"selectCategory"
:curInfo=
"curCategoryInfo"
class=
"category-class"
></brandCascader
>
<
/div
>
</
glsx-combi-form
>
</
div
>
<GLFooter
style=
"margin-top: 16px;"
>
<el-button
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleSave"
>
确定
</el-button>
</GLFooter>
...
...
@@ -286,6 +290,7 @@ export default {
}
},
openGoodsDialog
(){
if
(
this
.
disabled
)
return
this
.
goodsVisible
=
true
},
handleGoodsClose
(){
...
...
@@ -419,6 +424,10 @@ export default {
<
style
scoped
lang=
"scss"
>
.container
{
background-color
:
#fff
;
.disabled-class{
cursor
:
not-allowed
;
color
:
#666666
;
}
.goods-wrap
{
padding
:
20px
20px
1px
;
width
:
866px
;
...
...
src/views/goods/components/brandCascader.vue
View file @
0dfdb93
<
template
>
<div>
<div
class=
"select-input-box
"
ref=
"cascaderRef"
@
click=
"switchBrand"
>
<div
:class=
"['select-input-box',
{'disabled-calss': disabled}]
" ref="cascaderRef" @click="switchBrand">
<div
class=
"selectd-name"
>
{{
curBrand
[
defaultProps
.
label
]
}}
<span
v-if=
"curBrand[defaultProps.label]"
>
{{
curBrand
[
defaultProps
.
label
]
}}
</span>
<span
v-else
:class=
"['default-tip',
{'disabled-calss': disabled}]">请选择
</span>
</div>
<div>
<i
v-show=
"!brandTree"
class=
"el-icon-arrow-up"
style=
"color:#909399"
></i>
...
...
@@ -48,6 +49,10 @@ export default {
// }
// }
// },
disabled
:{
type
:
Boolean
,
default
:
false
},
value
:
{
type
:
String
},
...
...
@@ -155,6 +160,15 @@ export default {
color
:
#666666
;
}
}
.disabled-calss
{
background-color
:
#f5f7fa
;
border-color
:
#e4e7ed
;
color
:
#c0c4cc
!important
;
cursor
:
not-allowed
;
}
.default-tip
{
color
:
#c0c4cc
!important
;
}
.tree-box
{
margin-top
:
10px
;
padding
:
10px
;
...
...
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