Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
sso-equity
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 7bca709a
authored
Dec 10, 2021
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
f9082d39
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
50 additions
and
114 deletions
src/assets/css/tao.css
src/views/collection/index.vue
src/views/eManagement/index.vue
src/views/goods/index.vue
src/views/list/index.vue
src/views/rightsCard/index.vue
src/assets/css/tao.css
View file @
7bca709
...
@@ -232,7 +232,6 @@ img {
...
@@ -232,7 +232,6 @@ img {
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
}
}
.tableBox
{
.tableBox
{
margin-right
:
20px
;
padding
:
20px
20px
10px
20px
;
padding
:
20px
20px
10px
20px
;
border
:
0
;
border
:
0
;
outline
:
0
;
outline
:
0
;
...
...
src/views/collection/index.vue
View file @
7bca709
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<el-dialog
title=
""
:visible
.
sync=
"batchdetailsVisible"
width=
"1200px"
:before-close=
"detailClose"
>
<el-dialog
title=
""
:visible
.
sync=
"batchdetailsVisible"
width=
"1200px"
:before-close=
"detailClose"
>
<div
class=
"baseinformation"
><span
class=
"titleText"
>
权益卡信息
</span></div>
<div
class=
"baseinformation"
><span
class=
"titleText"
>
权益卡信息
</span></div>
<el-form
:inline=
"true"
:model=
"cardsInformationForm"
class=
"demo-form-inline detailFont"
label-width=
"90px"
style=
"margin-left: 52px"
>
<el-form
:inline=
"true"
:model=
"cardsInformationForm"
class=
"demo-form-inline detailFont"
label-width=
"90px"
style=
"margin-left: 52px"
>
<el-row>
<el-row
style=
"margin-top:32px"
>
<el-form-item
label=
"门店:"
class=
"detailItem"
>
<el-form-item
label=
"门店:"
class=
"detailItem"
>
{{
cardsInformationForm
.
merchantName
}}
{{
cardsInformationForm
.
merchantName
}}
</el-form-item>
</el-form-item>
...
@@ -894,9 +894,7 @@ h2 {
...
@@ -894,9 +894,7 @@ h2 {
background
:
#Fff
;
background
:
#Fff
;
color
:
#5850FF
;
color
:
#5850FF
;
}
}
.tap
{
}
.equity-wrap
.contain
{
.equity-wrap
.contain
{
background
:
#ffffff
;
background
:
#ffffff
;
margin
:
0px
20px
20px
40px
;
margin
:
0px
20px
20px
40px
;
...
...
src/views/eManagement/index.vue
View file @
7bca709
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap contain"
>
<div
class=
"equity-wrap contain"
>
<el-form
:inline=
"true"
style=
"width: 100%"
:model=
"searchForm"
label-width=
"70px"
label-position=
"right"
>
<el-form
:inline=
"true"
style=
"width: 100%"
:model=
"searchForm"
label-width=
"70px"
label-position=
"right"
>
<el-row
style=
"display:
flex;align-items:
center"
>
<el-row
style=
"display:
flex; align-items:
center"
>
<el-form-item
size=
"small"
label=
"加油日期"
>
<el-form-item
size=
"small"
label=
"加油日期"
>
<el-date-picker
size=
"small"
v-model=
"searchForm.daterange"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions ||
{}">
</el-date-picker>
<el-date-picker
size=
"small"
v-model=
"searchForm.daterange"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions ||
{}">
</el-date-picker>
</el-form-item>
</el-form-item>
...
@@ -20,8 +20,8 @@
...
@@ -20,8 +20,8 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
style=
"float: right"
>
<el-form-item
size=
"small"
style=
"float: right"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
</el-form>
</el-form>
...
@@ -55,7 +55,7 @@ export default {
...
@@ -55,7 +55,7 @@ export default {
}
}
},
},
searchForm
:
{
searchForm
:
{
orderId
:
''
orderId
:
''
},
},
searchFormTable
:
{},
searchFormTable
:
{},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
...
@@ -88,8 +88,7 @@ export default {
...
@@ -88,8 +88,7 @@ export default {
},
},
{
{
label
:
'用户信息'
,
label
:
'用户信息'
,
prop
:
'phone'
,
prop
:
'phone'
},
},
{
{
label
:
'订单里程'
,
label
:
'订单里程'
,
...
@@ -100,23 +99,19 @@ export default {
...
@@ -100,23 +99,19 @@ export default {
},
},
{
{
label
:
'实付金额'
,
label
:
'实付金额'
,
prop
:
'price'
,
prop
:
'price'
},
},
{
{
label
:
'订单总额'
,
label
:
'订单总额'
,
prop
:
'income'
,
prop
:
'income'
},
},
{
{
label
:
'订单号'
,
label
:
'订单号'
,
prop
:
'orderId'
,
prop
:
'orderId'
},
},
{
{
label
:
'司机工号'
,
label
:
'司机工号'
,
prop
:
'driverId'
,
prop
:
'driverId'
},
},
{
{
...
@@ -124,8 +119,7 @@ export default {
...
@@ -124,8 +119,7 @@ export default {
prop
:
'status'
,
prop
:
'status'
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
[
'已结算'
,
'待结算'
,
'已失效'
][
cell
.
orderStatus
]
return
[
'已结算'
,
'待结算'
,
'已失效'
][
cell
.
orderStatus
]
},
}
}
}
]
]
}
}
...
...
src/views/goods/index.vue
View file @
7bca709
<
template
>
<
template
>
<!--
<div
class=
"container"
>
<div
class=
"layout"
>
<div
class=
"operationBox"
>
<div>
<el-button
size=
"small"
type=
"primary"
@
click=
"jump"
>
新增商品
</el-button>
<div
class=
"table-custom btnGroup operationBtn"
>
<el-button-group>
<el-button
size=
"small"
type=
"primary"
@
click=
"toggleAll"
>
全选
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"batchOperation(1)"
>
上架
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"batchOperation(2)"
>
下架
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"batchOperation(-1)"
>
删除
</el-button>
</el-button-group>
</div>
</div>
</div>
<div
class=
"tableBox"
>
<div
class=
"search-box"
>
<div
class=
"top"
>
<div
class=
"item"
>
商品名称:
<div
class=
"input"
>
<el-input
v-model=
"searchObj.productName"
placeholder=
""
size=
"small"
class=
"formItem"
></el-input>
</div>
</div>
<div
class=
"item"
>
商品ID:
<div
class=
"input"
>
<el-input
v-model=
"searchObj.id"
placeholder=
""
size=
"small"
class=
"formItem"
></el-input>
</div>
</div>
<div
class=
"item"
>
商品编码:
<div
class=
"input"
>
<el-input
v-model=
"searchObj.productId"
placeholder=
""
size=
"small"
class=
"formItem"
></el-input>
</div>
</div>
<div
class=
"item"
>
提供方:
<el-select
size=
"small"
v-model=
"searchObj.supplier"
class=
"formItem"
>
<el-option
v-for=
"item in supplierList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
<div
class=
"item"
>
商品状态:
<el-select
size=
"small"
v-model=
"searchObj.status"
class=
"formItem"
>
<el-option
v-for=
"item in statusList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
<div
class=
"item"
>
品牌名称:
<el-select
size=
"small"
v-model=
"searchObj.brandName"
filterable
class=
"formItem"
>
<el-option
v-for=
"item in goodsBrandList"
:key=
"item.id"
:label=
"item.brandName"
:value=
"item.brandName"
></el-option>
</el-select>
</div>
<div
class=
"item"
style=
"margin-left: auto"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"search"
>
查询
</el-button>
<el-button
size=
"small"
type=
"default"
@
click=
"reset"
>
重置
</el-button>
</div>
</div>
</div>
<div
class=
"tableCtn"
>
<div
class=
"Tips"
>
该商品的历史总销量,订单发生退款、换货历史销量均不变
</div>
<GLTable
v-if=
"flag"
ref=
"table"
:searchForm=
"searchObj"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:pageConf=
"pageConf"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<el-button
type=
"text"
@
click=
"jump(scope.scope)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"copy(scope.scope)"
>
复制
</el-button>
</span>
</GLTable>
</div>
</div>
</div>
</div>
-->
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap"
>
<el-button
class=
"addGood"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"jump"
>
新增商品
</el-button>
<el-button
class=
"addGood"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"jump"
>
新增商品
</el-button>
<div
class=
"equity-wrap contain"
>
<div
class=
"equity-wrap contain"
>
...
...
src/views/list/index.vue
View file @
7bca709
<
template
>
<
template
>
<div
class=
"list"
>
<div
class=
"equity-wrap"
>
<div
class=
"tableTitle"
>
汽车权益
</div>
<div
class=
"equity-wrap contain"
>
<div
class=
"equity-wrap contain"
>
<div
class=
"equity-title"
>
商品权益
</div>
<div
class=
"tableBox"
style=
"margin-top: 16px"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"addEquity(1)"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"addEquity(1)"
>
<i
class=
"el-icon-plus"
></i>
<i
class=
"el-icon-plus"
></i>
<span
style=
"margin-left: 8px"
>
添加汽车权益
</span>
<span
style=
"margin-left: 8px"
>
添加汽车权益
</span>
...
@@ -23,11 +22,13 @@
...
@@ -23,11 +22,13 @@
</GLTable>
</GLTable>
</div>
</div>
</div>
</div>
<div
class=
"tableBox secondBox"
>
<div
class=
"tableTitle"
>
商品权益
</div>
<div
class=
"equity-wrap secondBox"
>
<div
class=
"equity-wrap contain"
>
<div
class=
"tagsCtn"
>
<div
class=
"tagsCtn"
>
<div
class=
"tags-box"
>
<div
class=
"tags-box"
>
<template
v-for=
"(item, index) in tags"
>
<template
v-for=
"(item, index) in tags"
>
<el-tag
:key=
"index"
effect=
"dark"
:type=
"item.active ? '' : 'info'"
@
click
.
native=
"changeGoodsCategory(
{ id: item.id, index })" :ref="`tag-${index}`" @dblclick.native="showInput(index, item.goodsCategory)"
class="tags
">
<el-tag
:key=
"index"
effect=
"dark"
:type=
"item.active ? '' : 'info'"
@
click
.
native=
"changeGoodsCategory(
{ id: item.id, index })" :ref="`tag-${index}`" @dblclick.native="showInput(index, item.goodsCategory)"
:class="{'tags':true , 'tag-active':tags[index].active}
">
<i
class=
"del el-icon-error"
@
click
.
stop=
"categoryDelete(item.id)"
></i>
<i
class=
"del el-icon-error"
@
click
.
stop=
"categoryDelete(item.id)"
></i>
{{
item
.
goodsCategory
}}
{{
item
.
goodsCategory
}}
<el-input
class=
"input-tag"
v-model=
"inputValue"
:ref=
"`tag-input-$
{index}`" size="small" @keyup.enter.native="changeTagName({ id: item.id, index })" @blur="changeTagName({ id: item.id, index })">
</el-input>
<el-input
class=
"input-tag"
v-model=
"inputValue"
:ref=
"`tag-input-$
{index}`" size="small" @keyup.enter.native="changeTagName({ id: item.id, index })" @blur="changeTagName({ id: item.id, index })">
</el-input>
...
@@ -37,10 +38,10 @@
...
@@ -37,10 +38,10 @@
<el-input
class=
"input-new-tag"
v-if=
"inputVisible"
v-model=
"tagInputValue"
ref=
"saveTagInput"
size=
"small"
@
keyup
.
enter
.
native=
"handleInputConfirm"
@
blur=
"handleInputConfirm"
maxlength=
"8"
></el-input>
<el-input
class=
"input-new-tag"
v-if=
"inputVisible"
v-model=
"tagInputValue"
ref=
"saveTagInput"
size=
"small"
@
keyup
.
enter
.
native=
"handleInputConfirm"
@
blur=
"handleInputConfirm"
maxlength=
"8"
></el-input>
<el-button
class=
"addTag"
size=
"small"
@
click=
"showAddInput"
v-else
>
<el-button
class=
"addTag"
size=
"small"
@
click=
"showAddInput"
v-else
>
<i
class=
"el-icon-plus"
></i>
<i
class=
"el-icon-plus"
></i>
<span
style=
"margin-left: 8px;
margin-top:
18px"
>
添加分类
</span>
<span
style=
"margin-left: 8px;
margin-top:
18px"
>
添加分类
</span>
</el-button>
</el-button>
</div>
</div>
<el-button
type=
"primary"
size=
"small"
@
click=
"addEquity(2)"
style=
"margin-top:20px"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"addEquity(2)"
style=
"margin-top:
20px"
>
<i
class=
"el-icon-plus"
></i>
<i
class=
"el-icon-plus"
></i>
<span
style=
"margin-left: 8px"
>
添加门店权益
</span>
<span
style=
"margin-left: 8px"
>
添加门店权益
</span>
</el-button>
</el-button>
...
@@ -63,6 +64,7 @@
...
@@ -63,6 +64,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<equity-dialog
:show
.
sync=
"showDialog"
:type=
"dialogType"
:isEdit
.
sync=
"isEdit"
></equity-dialog>
<equity-dialog
:show
.
sync=
"showDialog"
:type=
"dialogType"
:isEdit
.
sync=
"isEdit"
></equity-dialog>
</div>
</div>
</template>
</template>
...
@@ -266,7 +268,10 @@ export default {
...
@@ -266,7 +268,10 @@ export default {
height
:
45px
;
height
:
45px
;
}
}
.secondBox
{
.secondBox
{
margin-top
:
50px
;
margin-top
:
20px
;
}
.tableTitle
{
margin
:
20px
40px
;
}
}
.el-table__fixed-right-patch
{
.el-table__fixed-right-patch
{
position
:
absolute
;
position
:
absolute
;
...
@@ -286,4 +291,14 @@ export default {
...
@@ -286,4 +291,14 @@ export default {
.list
{
.list
{
box-shadow
:
initial
;
box-shadow
:
initial
;
}
}
.tags-box
.tag-active
{
background
:
#5850FF
!important
;
color
:
#fff
;
}
.tags-box
.el-tag
.del
{
position
:
absolute
;
right
:
-6px
;
top
:
-6px
;
color
:
#5850FF
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/rightsCard/index.vue
View file @
7bca709
<!-- -->
<!-- -->
<
template
>
<
template
>
<div
style=
"margin-top:30px"
>
<div
style=
"margin-top:
30px"
>
<div
class=
"button"
>
<div
class=
"button"
>
<el-button
type=
"primary"
@
click=
"addCard('true')"
size=
"small"
style=
"width: 128px"
>
<el-button
type=
"primary"
@
click=
"addCard('true')"
size=
"small"
style=
"width: 128px"
>
<i
class=
"el-icon-plus"
></i>
<i
class=
"el-icon-plus"
></i>
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
</div>
</div>
</el-dialog>
</el-dialog>
<!-- 新建权益卡弹窗 -->
<!-- 新建权益卡弹窗 -->
<el-dialog
title=
""
:visible
.
sync=
"dialogVisible"
width=
"958px
"
>
<el-dialog
title=
""
v-if=
"dialogVisible"
:visible
.
sync=
"dialogVisible"
width=
"958px"
:before-close=
"closeDialog
"
>
<div
class=
"baseinformation"
><span
class=
"titleText"
>
基本信息
</span></div>
<div
class=
"baseinformation"
><span
class=
"titleText"
>
基本信息
</span></div>
<el-form
class=
"dialogForm"
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"auto"
label-position=
"left"
>
<el-form
class=
"dialogForm"
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"auto"
label-position=
"left"
>
<!-- 基础表单 -->
<!-- 基础表单 -->
...
@@ -299,6 +299,15 @@ export default {
...
@@ -299,6 +299,15 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
closeDialog
()
{
this
.
value
=
false
this
.
dialogVisible
=
false
this
.
effectiveNum
=
''
this
.
isAdd
=
false
this
.
inputSwitch
=
true
console
.
log
(
this
.
isAdd
)
this
.
disableSelect
=
false
},
extension
(
row
)
{
extension
(
row
)
{
console
.
log
(
row
)
console
.
log
(
row
)
this
.
$apis
.
equityApi
this
.
$apis
.
equityApi
...
@@ -420,14 +429,6 @@ export default {
...
@@ -420,14 +429,6 @@ export default {
// 禁用门店框
// 禁用门店框
this
.
disableSelect
=
true
this
.
disableSelect
=
true
// 改变高亮
// var imageSrc = row.backgroundImage
// console.log(imageSrc)
// var imageId = this.product.filter(item => item.src == ruleForm.backgroundImage)[0].id
// console.log(imageId)
// var imgItem = document.getElementById(imageId)
// console.log(imgItem)
// imgItem.style.background = "rgb(255, 173, 134)"
},
},
//复制
//复制
copy
(
row
)
{
copy
(
row
)
{
...
@@ -447,12 +448,12 @@ export default {
...
@@ -447,12 +448,12 @@ export default {
}
}
},
},
addCard
(
cd
)
{
addCard
(
cd
)
{
this
.
ruleForm
=
{}
this
.
submitBtn
=
false
this
.
submitBtn
=
false
this
.
generateOptions
=
[]
this
.
generateOptions
=
[]
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
this
.
isAdd
=
cd
this
.
isAdd
=
cd
console
.
log
(
this
.
isAdd
)
console
.
log
(
this
.
isAdd
)
this
.
ruleForm
=
{}
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
clearStyle
()
this
.
clearStyle
()
},
20
)
},
20
)
...
@@ -467,14 +468,14 @@ export default {
...
@@ -467,14 +468,14 @@ export default {
// var secondImgStyle = document.getElementById('secondImg')
// var secondImgStyle = document.getElementById('secondImg')
// var thirdImgStyle = document.getElementById('thirdImg')
// var thirdImgStyle = document.getElementById('thirdImg')
// var forthImgStyle = document.getElementById('forthImg')
// var forthImgStyle = document.getElementById('forthImg')
firstImgStyle
.
style
.
background
=
'rgb(240, 240, 240)'
},
},
//change imageStyle
//change imageStyle
changeStyle
(
cd
,
src
)
{
changeStyle
(
cd
,
src
)
{
console
.
log
(
src
)
console
.
log
(
src
)
this
.
clearStyle
()
this
.
clearStyle
()
var
imgItem
=
document
.
getElementById
(
cd
)
var
imgItem
=
document
.
getElementById
(
cd
)
imgItem
.
style
.
background
=
'rgb(255, 173, 134)'
imgItem
.
style
.
background
=
'#5850ff'
this
.
$set
(
this
.
ruleForm
,
'backgroundImage'
,
src
)
this
.
ruleForm
.
backgroundImage
=
src
this
.
ruleForm
.
backgroundImage
=
src
this
.
$refs
.
ruleForm
.
validateField
(
'backgroundImage'
)
this
.
$refs
.
ruleForm
.
validateField
(
'backgroundImage'
)
console
.
log
(
this
.
ruleForm
)
console
.
log
(
this
.
ruleForm
)
...
@@ -512,6 +513,7 @@ export default {
...
@@ -512,6 +513,7 @@ export default {
this
.
ruleForm
.
tryNum
=
''
this
.
ruleForm
.
tryNum
=
''
this
.
ruleForm
.
tryAble
=
'0'
this
.
ruleForm
.
tryAble
=
'0'
}
}
console
.
log
(
this
.
ruleForm
,
'????????????'
)
this
.
$refs
[
formName
].
validate
(
valid
=>
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
// var params = this.ruleForm
// var params = this.ruleForm
...
@@ -638,6 +640,7 @@ export default {
...
@@ -638,6 +640,7 @@ export default {
.buttonCtn
{
.buttonCtn
{
text-align
:
center
;
text-align
:
center
;
margin-top
:
12px
;
margin-top
:
12px
;
padding-bottom
:
1px
;
}
}
.carEquCtn
{
.carEquCtn
{
background
:
#f0f0f0
;
background
:
#f0f0f0
;
...
@@ -654,10 +657,9 @@ export default {
...
@@ -654,10 +657,9 @@ export default {
height
:
100px
;
height
:
100px
;
}
}
.imgCtn
{
.imgCtn
{
background
:
rgb
(
240
,
240
,
240
);
width
:
300px
;
width
:
300px
;
text-align
:
center
;
text-align
:
center
;
padding
:
10
px
;
padding
:
3
px
;
height
:
100px
;
height
:
100px
;
margin-right
:
20px
;
margin-right
:
20px
;
}
}
...
...
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