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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
5 deletions
src/views/goods/add.vue
src/views/goods/components/brandCascader.vue
src/views/goods/add.vue
View file @
0dfdb93
<
template
>
<
template
>
<div
class=
"goods-ctnr"
>
<div
class=
"container"
>
<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"
>
<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"
>
<div
slot=
"selectGoodsSlot"
>
<el-button
v-if=
"!disabled"
class=
"el-icon-plus
"
size=
"small"
@
click=
"openGoodsDialog"
>
{{
formObj
.
smartcarlifeInfoId
?
'重新选择'
:
'选择商品'
}}
</el-button>
<el-button
:class=
"['el-icon-plus',
{'disabled-class':disabled}]
" size="small" @click="openGoodsDialog">
{{
formObj
.
smartcarlifeInfoId
?
'重新选择'
:
'选择商品'
}}
</el-button>
</div>
</div>
<div
slot=
"goodsInfoSlot"
class=
"goods-wrap"
>
<div
slot=
"goodsInfoSlot"
class=
"goods-wrap"
>
<glsx-combi-form
:isInline=
"false"
ref=
"goodsInfoRef"
labelWidth=
"154px"
defaultWidth=
"432px"
:formObj
.
sync=
"formObj"
:formData=
"goodsFormData"
:formRules=
"goodsRule"
>
<glsx-combi-form
:isInline=
"false"
ref=
"goodsInfoRef"
labelWidth=
"154px"
defaultWidth=
"432px"
:formObj
.
sync=
"formObj"
:formData=
"goodsFormData"
:formRules=
"goodsRule"
>
...
@@ -23,6 +24,7 @@
...
@@ -23,6 +24,7 @@
</div>
</div>
<div
slot=
"saleStoreSlot"
>
<div
slot=
"saleStoreSlot"
>
<el-button
v-if=
"!disabled"
class=
"el-icon-plus"
size=
"small"
@
click=
"closeDialog"
>
选择门店
</el-button>
<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"
>
<GLTable
class=
"selected-table"
:hasPage=
"false"
ref=
"selectedRef"
:tableParams=
"selectedtableParams"
:tableData=
"merchantRequestList"
>
<div
slot=
"activityPriceSlot"
slot-scope=
"scope"
>
<div
slot=
"activityPriceSlot"
slot-scope=
"scope"
>
<el-input
:disabled=
"disabled"
placeholder=
"请输入"
v-model=
"scope.scope.activityPrice"
/>
<el-input
:disabled=
"disabled"
placeholder=
"请输入"
v-model=
"scope.scope.activityPrice"
/>
...
@@ -34,6 +36,7 @@
...
@@ -34,6 +36,7 @@
<el-button
v-if=
"!disabled"
type=
"text"
@
click=
"handleDel(scope.scope)"
>
删除
</el-button>
<el-button
v-if=
"!disabled"
type=
"text"
@
click=
"handleDel(scope.scope)"
>
删除
</el-button>
</div>
</div>
</GLTable>
</GLTable>
</
template
>
</div>
</div>
<div
slot=
"carSeriesSlot"
>
<div
slot=
"carSeriesSlot"
>
<el-radio-group
:disabled=
"disabled"
v-model=
"formObj.vehicleSeriesType"
>
<el-radio-group
:disabled=
"disabled"
v-model=
"formObj.vehicleSeriesType"
>
...
@@ -48,10 +51,11 @@
...
@@ -48,10 +51,11 @@
</div>
</div>
</div>
</div>
<div
slot=
"categorySlot"
>
<div
slot=
"categorySlot"
>
<brandCascader
:listTree=
"categoryData"
:defaultProps=
"defaultProps"
@
clickItem=
"selectCategory"
:curInfo=
"curCategoryInfo"
class=
"category-class"
></brandCascader>
<brandCascader
:disabled=
"disabled"
:listTree=
"categoryData"
:defaultProps=
"defaultProps"
@
clickItem=
"selectCategory"
:curInfo=
"curCategoryInfo"
class=
"category-class"
></brandCascader>
</div>
</div>
</glsx-combi-form>
</glsx-combi-form>
<GLFooter>
</div>
<GLFooter
style=
"margin-top: 16px;"
>
<el-button
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleSave"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"handleSave"
>
确定
</el-button>
</GLFooter>
</GLFooter>
...
@@ -286,6 +290,7 @@ export default {
...
@@ -286,6 +290,7 @@ export default {
}
}
},
},
openGoodsDialog
(){
openGoodsDialog
(){
if
(
this
.
disabled
)
return
this
.
goodsVisible
=
true
this
.
goodsVisible
=
true
},
},
handleGoodsClose
(){
handleGoodsClose
(){
...
@@ -419,6 +424,10 @@ export default {
...
@@ -419,6 +424,10 @@ export default {
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.container
{
.container
{
background-color
:
#fff
;
background-color
:
#fff
;
.disabled-class{
cursor
:
not-allowed
;
color
:
#666666
;
}
.goods-wrap
{
.goods-wrap
{
padding
:
20px
20px
1px
;
padding
:
20px
20px
1px
;
width
:
866px
;
width
:
866px
;
...
...
src/views/goods/components/brandCascader.vue
View file @
0dfdb93
<
template
>
<
template
>
<div>
<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"
>
<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>
<div>
<div>
<i
v-show=
"!brandTree"
class=
"el-icon-arrow-up"
style=
"color:#909399"
></i>
<i
v-show=
"!brandTree"
class=
"el-icon-arrow-up"
style=
"color:#909399"
></i>
...
@@ -48,6 +49,10 @@ export default {
...
@@ -48,6 +49,10 @@ export default {
// }
// }
// }
// }
// },
// },
disabled
:{
type
:
Boolean
,
default
:
false
},
value
:
{
value
:
{
type
:
String
type
:
String
},
},
...
@@ -155,6 +160,15 @@ export default {
...
@@ -155,6 +160,15 @@ export default {
color
:
#666666
;
color
:
#666666
;
}
}
}
}
.disabled-calss
{
background-color
:
#f5f7fa
;
border-color
:
#e4e7ed
;
color
:
#c0c4cc
!important
;
cursor
:
not-allowed
;
}
.default-tip
{
color
:
#c0c4cc
!important
;
}
.tree-box
{
.tree-box
{
margin-top
:
10px
;
margin-top
:
10px
;
padding
:
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