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
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
58 additions
and
122 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 {
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
}
.tableBox
{
margin-right
:
20px
;
padding
:
20px
20px
10px
20px
;
border
:
0
;
outline
:
0
;
...
...
src/views/collection/index.vue
View file @
7bca709
...
...
@@ -36,7 +36,7 @@
<el-dialog
title=
""
:visible
.
sync=
"batchdetailsVisible"
width=
"1200px"
:before-close=
"detailClose"
>
<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-row>
<el-row
style=
"margin-top:32px"
>
<el-form-item
label=
"门店:"
class=
"detailItem"
>
{{
cardsInformationForm
.
merchantName
}}
</el-form-item>
...
...
@@ -894,9 +894,7 @@ h2 {
background
:
#Fff
;
color
:
#5850FF
;
}
.tap
{
}
.equity-wrap
.contain
{
background
:
#ffffff
;
margin
:
0px
20px
20px
40px
;
...
...
src/views/eManagement/index.vue
View file @
7bca709
...
...
@@ -2,9 +2,9 @@
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap contain"
>
<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-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
label=
"订单号"
>
<el-input
v-model=
"searchForm.orderId"
placeholder=
"请输入"
size=
"small"
clearable
></el-input>
...
...
@@ -20,8 +20,8 @@
</el-select>
</el-form-item>
<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"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-row>
</el-form>
...
...
@@ -55,7 +55,7 @@ export default {
}
},
searchForm
:
{
orderId
:
''
orderId
:
''
},
searchFormTable
:
{},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
...
...
@@ -88,35 +88,30 @@ export default {
},
{
label
:
'用户信息'
,
prop
:
'phone'
,
prop
:
'phone'
},
{
label
:
'订单里程'
,
formatter
:
cell
=>
{
return
`
${
cell
.
distance
}
km`
}
},
{
label
:
'实付金额'
,
prop
:
'price'
,
prop
:
'price'
},
{
label
:
'订单总额'
,
prop
:
'income'
,
prop
:
'income'
},
{
label
:
'订单号'
,
prop
:
'orderId'
,
prop
:
'orderId'
},
{
label
:
'司机工号'
,
prop
:
'driverId'
,
prop
:
'driverId'
},
{
...
...
@@ -124,8 +119,7 @@ export default {
prop
:
'status'
,
formatter
:
cell
=>
{
return
[
'已结算'
,
'待结算'
,
'已失效'
][
cell
.
orderStatus
]
},
}
}
]
}
...
...
src/views/goods/index.vue
View file @
7bca709
<
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"
>
<el-button
class=
"addGood"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"jump"
>
新增商品
</el-button>
<div
class=
"equity-wrap contain"
>
...
...
src/views/list/index.vue
View file @
7bca709
<
template
>
<div
class=
"list"
>
<div
class=
"equity-wrap"
>
<div
class=
"tableTitle"
>
汽车权益
</div>
<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)"
>
<i
class=
"el-icon-plus"
></i>
<span
style=
"margin-left: 8px"
>
添加汽车权益
</span>
...
...
@@ -22,12 +21,14 @@
</span>
</GLTable>
</div>
</div>
<div
class=
"tableBox secondBox"
>
</div>
<div
class=
"tableTitle"
>
商品权益
</div>
<div
class=
"equity-wrap secondBox"
>
<div
class=
"equity-wrap contain"
>
<div
class=
"tagsCtn"
>
<div
class=
"tags-box"
>
<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>
{{
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>
...
...
@@ -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-button
class=
"addTag"
size=
"small"
@
click=
"showAddInput"
v-else
>
<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>
</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>
<span
style=
"margin-left: 8px"
>
添加门店权益
</span>
</el-button>
...
...
@@ -63,6 +64,7 @@
</div>
</div>
</div>
<equity-dialog
:show
.
sync=
"showDialog"
:type=
"dialogType"
:isEdit
.
sync=
"isEdit"
></equity-dialog>
</div>
</template>
...
...
@@ -266,7 +268,10 @@ export default {
height
:
45px
;
}
.secondBox
{
margin-top
:
50px
;
margin-top
:
20px
;
}
.tableTitle
{
margin
:
20px
40px
;
}
.el-table__fixed-right-patch
{
position
:
absolute
;
...
...
@@ -286,4 +291,14 @@ export default {
.list
{
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
>
\ No newline at end of file
src/views/rightsCard/index.vue
View file @
7bca709
<!-- -->
<
template
>
<div
style=
"margin-top:30px"
>
<div
style=
"margin-top:
30px"
>
<div
class=
"button"
>
<el-button
type=
"primary"
@
click=
"addCard('true')"
size=
"small"
style=
"width: 128px"
>
<i
class=
"el-icon-plus"
></i>
...
...
@@ -51,7 +51,7 @@
</div>
</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>
<el-form
class=
"dialogForm"
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"auto"
label-position=
"left"
>
<!-- 基础表单 -->
...
...
@@ -98,11 +98,11 @@
<el-form-item
label=
"试用设置:"
prop=
""
>
<el-switch
v-model=
"value"
active-color=
""
inactive-color=
"#d3d3d3"
></el-switch>
</el-form-item>
<el-form-item
label=
"试用时长:"
:prop=
"value == false ? '' : 'tryNum'"
v-show=
"value"
>
<el-input-number
v-model=
"tryNum"
controls-position=
"right"
size=
"mini"
:disabled=
"!hasTryNum"
:min=
"1"
:max=
"100"
></el-input-number>
天试用
<span
class=
"codeTxt2"
>
设置后将生成试用链接和二维码可用于推广
</span>
</el-form-item>
<el-form-item
label=
"试用时长:"
:prop=
"value == false ? '' : 'tryNum'"
v-show=
"value"
>
<el-input-number
v-model=
"tryNum"
controls-position=
"right"
size=
"mini"
:disabled=
"!hasTryNum"
:min=
"1"
:max=
"100"
></el-input-number>
天试用
<span
class=
"codeTxt2"
>
设置后将生成试用链接和二维码可用于推广
</span>
</el-form-item>
</div>
<div
class=
"buttonCtn"
>
<el-form-item>
...
...
@@ -299,6 +299,15 @@ export default {
}
},
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
)
{
console
.
log
(
row
)
this
.
$apis
.
equityApi
...
...
@@ -420,14 +429,6 @@ export default {
// 禁用门店框
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
)
{
...
...
@@ -447,12 +448,12 @@ export default {
}
},
addCard
(
cd
)
{
this
.
ruleForm
=
{}
this
.
submitBtn
=
false
this
.
generateOptions
=
[]
this
.
dialogVisible
=
true
this
.
isAdd
=
cd
console
.
log
(
this
.
isAdd
)
this
.
ruleForm
=
{}
setTimeout
(()
=>
{
this
.
clearStyle
()
},
20
)
...
...
@@ -467,14 +468,14 @@ export default {
// var secondImgStyle = document.getElementById('secondImg')
// var thirdImgStyle = document.getElementById('thirdImg')
// var forthImgStyle = document.getElementById('forthImg')
firstImgStyle
.
style
.
background
=
'rgb(240, 240, 240)'
},
//change imageStyle
changeStyle
(
cd
,
src
)
{
console
.
log
(
src
)
this
.
clearStyle
()
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
.
$refs
.
ruleForm
.
validateField
(
'backgroundImage'
)
console
.
log
(
this
.
ruleForm
)
...
...
@@ -512,6 +513,7 @@ export default {
this
.
ruleForm
.
tryNum
=
''
this
.
ruleForm
.
tryAble
=
'0'
}
console
.
log
(
this
.
ruleForm
,
'????????????'
)
this
.
$refs
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
// var params = this.ruleForm
...
...
@@ -638,6 +640,7 @@ export default {
.buttonCtn
{
text-align
:
center
;
margin-top
:
12px
;
padding-bottom
:
1px
;
}
.carEquCtn
{
background
:
#f0f0f0
;
...
...
@@ -654,10 +657,9 @@ export default {
height
:
100px
;
}
.imgCtn
{
background
:
rgb
(
240
,
240
,
240
);
width
:
300px
;
text-align
:
center
;
padding
:
10
px
;
padding
:
3
px
;
height
:
100px
;
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