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 3920ec25
authored
Nov 30, 2021
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
4f175558
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
183 additions
and
149 deletions
package-lock.json
package.json
src/api/modules/equityApi.js
src/assets/css/tao.css
src/views/collection/index.vue
src/views/list/index.vue
src/views/order/detail.vue
src/views/rightsCard/index.vue
package-lock.json
View file @
3920ec2
...
@@ -3571,7 +3571,7 @@
...
@@ -3571,7 +3571,7 @@
},
},
"charenc"
:
{
"charenc"
:
{
"version"
:
"0.0.2"
,
"version"
:
"0.0.2"
,
"resolved"
:
"https://registry.npm
js.org/charenc/-
/charenc-0.0.2.tgz"
,
"resolved"
:
"https://registry.npm
.taobao.org/charenc/download
/charenc-0.0.2.tgz"
,
"integrity"
:
"sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc="
"integrity"
:
"sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc="
},
},
"check-types"
:
{
"check-types"
:
{
...
@@ -4386,7 +4386,7 @@
...
@@ -4386,7 +4386,7 @@
},
},
"crypt"
:
{
"crypt"
:
{
"version"
:
"0.0.2"
,
"version"
:
"0.0.2"
,
"resolved"
:
"https://registry.npm
js.org/crypt/-
/crypt-0.0.2.tgz"
,
"resolved"
:
"https://registry.npm
.taobao.org/crypt/download
/crypt-0.0.2.tgz"
,
"integrity"
:
"sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs="
"integrity"
:
"sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs="
},
},
"crypto-browserify"
:
{
"crypto-browserify"
:
{
...
@@ -6356,21 +6356,14 @@
...
@@ -6356,21 +6356,14 @@
}
}
},
},
"glsx-components"
:
{
"glsx-components"
:
{
"version"
:
"1.
1.8
"
,
"version"
:
"1.
2.3
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-components/-/glsx-components-1.
1.8
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/glsx-components/-/glsx-components-1.
2.3
.tgz"
,
"integrity"
:
"sha512-
jjo1EY6tknpi5depW9u4xD70TAUs+6Vyzsi3PJf0v3aONA6nILKxK7Yu5jRiz//CG/H7S+Fd6AnYVnJ+QoQFjQ
=="
,
"integrity"
:
"sha512-
WMMIfbWjbmtLYLNZFftl7MOG877shwirrGQyl2fhMdlcTEVKjJVtMgNLo2BjgWSPVu9b0SvDdhk1d7JuTns/tg
=="
,
"requires"
:
{
"requires"
:
{
"core-js"
:
"^3.6.5"
,
"core-js"
:
"^3.6.5"
,
"element-ui"
:
"^2.15.6"
,
"element-ui"
:
"^2.15.6"
,
"glsx-common"
:
"^1.3.2"
,
"glsx-common"
:
"^1.3.2"
,
"vue"
:
"^2.6.11"
"vue"
:
"^2.6.11"
},
"dependencies"
:
{
"core-js"
:
{
"version"
:
"3.19.1"
,
"resolved"
:
"https://registry.npmjs.org/core-js/-/core-js-3.19.1.tgz"
,
"integrity"
:
"sha512-Tnc7E9iKd/b/ff7GFbhwPVzJzPztGrChB8X8GLqoYGdEOG8IpLnK1xPyo3ZoO3HsK6TodJS58VGPOxA+hLHQMg=="
}
}
}
},
},
"glsx-vue-components"
:
{
"glsx-vue-components"
:
{
...
@@ -11127,7 +11120,7 @@
...
@@ -11127,7 +11120,7 @@
},
},
"sha1"
:
{
"sha1"
:
{
"version"
:
"1.1.1"
,
"version"
:
"1.1.1"
,
"resolved"
:
"https://registry.npm
js.org/sha1/-
/sha1-1.1.1.tgz"
,
"resolved"
:
"https://registry.npm
.taobao.org/sha1/download
/sha1-1.1.1.tgz"
,
"integrity"
:
"sha1-rdqnqTFo85PxnrKxUJFhjicA+Eg="
,
"integrity"
:
"sha1-rdqnqTFo85PxnrKxUJFhjicA+Eg="
,
"requires"
:
{
"requires"
:
{
"charenc"
:
">= 0.0.1"
,
"charenc"
:
">= 0.0.1"
,
...
...
package.json
View file @
3920ec2
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
"el-tree-transfer"
:
"^2.4.7"
,
"el-tree-transfer"
:
"^2.4.7"
,
"element-ui"
:
"^2.15.6"
,
"element-ui"
:
"^2.15.6"
,
"glsx-common"
:
"^1.4.9"
,
"glsx-common"
:
"^1.4.9"
,
"glsx-components"
:
"^1.
1.8
"
,
"glsx-components"
:
"^1.
2.3
"
,
"glsx-vue-components"
:
"^1.0.15"
,
"glsx-vue-components"
:
"^1.0.15"
,
"jquery"
:
"^3.6.0"
,
"jquery"
:
"^3.6.0"
,
"vue"
:
"^2.6.14"
,
"vue"
:
"^2.6.14"
,
...
...
src/api/modules/equityApi.js
View file @
3920ec2
...
@@ -4,7 +4,6 @@ const getEquityCardList = params => {
...
@@ -4,7 +4,6 @@ const getEquityCardList = params => {
params
.
method
=
'scrm.api.equity.card.class.list.with.page'
params
.
method
=
'scrm.api.equity.card.class.list.with.page'
return
http
({
return
http
({
data
:
params
,
data
:
params
,
returnAll
:
true
})
})
}
}
/*新增权益卡*/
/*新增权益卡*/
...
...
src/assets/css/tao.css
View file @
3920ec2
...
@@ -10,11 +10,12 @@ img {
...
@@ -10,11 +10,12 @@ img {
.layout
{
.layout
{
padding-bottom
:
20px
;
padding-bottom
:
20px
;
margin
:
10px
;
width
:
100%
;
width
:
100%
;
overflow
:
hidden
;
}
}
.layout
.search-box
{
.layout
.search-box
{
width
:
1160px
;
display
:
-webkit-box
;
display
:
-webkit-box
;
display
:
-ms-flexbox
;
display
:
-ms-flexbox
;
display
:
flex
;
display
:
flex
;
...
@@ -47,7 +48,7 @@ img {
...
@@ -47,7 +48,7 @@ img {
-ms-flex-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
;
align-items
:
center
;
font-size
:
14px
;
font-size
:
14px
;
margin
:
0
30px
16px
0
;
margin
:
20px
35px
0
0
;
}
}
.layout
.search-box
.bottom
{
.layout
.search-box
.bottom
{
margin-right
:
auto
;
margin-right
:
auto
;
...
@@ -84,7 +85,6 @@ img {
...
@@ -84,7 +85,6 @@ img {
-webkit-box-shadow
:
0
4px
20px
0
rgba
(
0
,
0
,
0
,
0.1
);
-webkit-box-shadow
:
0
4px
20px
0
rgba
(
0
,
0
,
0
,
0.1
);
box-shadow
:
0
4px
20px
0
rgba
(
0
,
0
,
0
,
0.1
);
box-shadow
:
0
4px
20px
0
rgba
(
0
,
0
,
0
,
0.1
);
padding
:
20px
;
padding
:
20px
;
margin
:
0
;
margin
:
0
;
padding
:
16px
20px
14px
20px
;
padding
:
16px
20px
14px
20px
;
border
:
0
;
border
:
0
;
...
@@ -95,7 +95,6 @@ img {
...
@@ -95,7 +95,6 @@ img {
background
:
#fff
;
background
:
#fff
;
-webkit-box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
-webkit-box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
width
:
1160px
;
}
}
.layout
.box
.title
{
.layout
.box
.title
{
...
@@ -236,8 +235,7 @@ img {
...
@@ -236,8 +235,7 @@ img {
}
}
.tableBox
{
.tableBox
{
margin
:
0
;
margin
:
0
;
margin-top
:
20px
;
padding
:
20px
20px
10px
20px
;
padding
:
16px
20px
14px
20px
;
border
:
0
;
border
:
0
;
outline
:
0
;
outline
:
0
;
font-size
:
100%
;
font-size
:
100%
;
...
@@ -246,11 +244,35 @@ img {
...
@@ -246,11 +244,35 @@ img {
background
:
#fff
;
background
:
#fff
;
-webkit-box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
-webkit-box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
width
:
1160px
;
}
}
.operationBtn
{
.operationBtn
{
margin-right
:
3
0px
;
margin-right
:
4
0px
;
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
margin-left
:
40px
;
}
.selectBtn
{
width
:
68px
;
}
.selectWidth
{
width
:
215px
;
}
.el-input--small
.el-input__inner
{
height
:
32px
;
line-height
:
32px
;
width
:
215px
;
}
.el-range-editor.el-input__inner
{
display
:
-webkit-inline-box
;
display
:
-ms-inline-flexbox
;
display
:
inline-flex
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
;
padding
:
3px
10px
;
width
:
215px
;
}
.el-button
+
.el-button
{
margin-left
:
20px
;
}
}
/*# sourceMappingURL=tao.css.map */
/*# sourceMappingURL=tao.css.map */
\ No newline at end of file
\ No newline at end of file
src/views/collection/index.vue
View file @
3920ec2
...
@@ -5,12 +5,13 @@
...
@@ -5,12 +5,13 @@
<el-tab-pane
label=
"批次管理"
name=
"first"
>
<el-tab-pane
label=
"批次管理"
name=
"first"
>
<div
class=
"layout"
>
<div
class=
"layout"
>
<div
class=
"tableBox"
>
<div
class=
"tableBox"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"dialogVisible = true"
>
批量生成权益卡
</el-button>
<div
class=
"search-box"
>
<div
class=
"search-box"
>
<div
class=
"top"
>
<div
class=
"top"
>
<div
class=
"item"
>
<div
class=
"item"
>
生成日期
:
添加时间
:
<div
class=
"input"
>
<div
class=
"input"
>
<el-date-picker
class=
"datapicker"
v-model=
"batchDate"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
size=
"small"
value-format=
"yyyy-MM-dd"
style=
"width: 220px
"
></el-date-picker>
<el-date-picker
size=
"small"
class=
"datapicker"
v-model=
"batchDate"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd
"
></el-date-picker>
</div>
</div>
</div>
</div>
<div
class=
"item"
>
<div
class=
"item"
>
...
@@ -26,8 +27,8 @@
...
@@ -26,8 +27,8 @@
</el-select>
</el-select>
</div>
</div>
<div
class=
"item"
style=
"margin-left: auto"
>
<div
class=
"item"
style=
"margin-left: auto"
>
<el-button
type=
"primary"
size=
"small"
icon=
"el-icon-search"
@
click=
"selectCollectionTable"
>
搜索
</el-button>
<el-button
plain
size=
"small"
@
click=
"selectCollectionTable('reset')"
class=
"selectBtn"
>
重置
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"
dialogVisible = true"
>
批量生成权益卡
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"
selectCollectionTable('select')"
class=
"selectBtn "
>
搜索
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -158,7 +159,7 @@
...
@@ -158,7 +159,7 @@
<div
class=
"item"
>
<div
class=
"item"
>
生成日期:
生成日期:
<div
class=
"input"
>
<div
class=
"input"
>
<el-date-picker
v-model=
"colletionDate"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
size=
"small"
value-format=
"yyyy-MM-dd"
style=
"width: 220px"
></el-date-picker>
<el-date-picker
v-model=
"colletionDate"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
size=
"small"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</div>
</div>
</div>
</div>
<div
class=
"item"
>
<div
class=
"item"
>
...
@@ -175,15 +176,16 @@
...
@@ -175,15 +176,16 @@
<el-input
v-model=
"collectionListSearch.sn"
placeholder=
"请输入设备SN"
size=
"small"
class=
"formItem"
></el-input>
<el-input
v-model=
"collectionListSearch.sn"
placeholder=
"请输入设备SN"
size=
"small"
class=
"formItem"
></el-input>
</div>
</div>
</div>
</div>
<div
class=
"item"
>
<div
class=
"item"
style=
"margin-left: 27px"
>
账号:
账号:
<div
class=
"input"
>
<div
class=
"input"
>
<el-input
v-model=
"collectionListSearch.mobile"
placeholder=
"请输入账号"
size=
"small"
class=
"formItem"
></el-input>
<el-input
v-model=
"collectionListSearch.mobile"
placeholder=
"请输入账号"
size=
"small"
class=
"formItem"
></el-input>
</div>
</div>
</div>
</div>
<div
class=
"item"
style=
"margin-left: auto"
>
<div
class=
"item"
style=
"margin-left: auto"
>
<el-button
size=
"small"
:id=
"collectionTableParams.btnId"
type=
"primary"
icon=
"el-icon-search"
@
click=
"collectionSelect"
>
搜索
</el-button>
<el-button
class=
"selectBtn"
size=
"small"
@
click=
"collectionSelect('reset')"
>
重置
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportCollection"
>
导出
</el-button>
<el-button
class=
"selectBtn"
size=
"small"
type=
"primary"
@
click=
"collectionSelect('select')"
style=
""
>
搜索
</el-button>
<el-button
class=
"selectBtn"
type=
"primary"
size=
"small"
@
click=
"exportCollection"
>
导出
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -288,6 +290,7 @@ export default {
...
@@ -288,6 +290,7 @@ export default {
}
}
},
},
{
{
width
:
'95'
,
label
:
'生成时间'
,
label
:
'生成时间'
,
prop
:
'createdDate'
,
prop
:
'createdDate'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
...
@@ -408,6 +411,7 @@ export default {
...
@@ -408,6 +411,7 @@ export default {
}
}
},
},
{
{
width
:
'95'
,
label
:
'生成时间'
,
label
:
'生成时间'
,
prop
:
'createdDate'
,
prop
:
'createdDate'
,
minWidth
:
'200'
,
minWidth
:
'200'
,
...
@@ -416,6 +420,7 @@ export default {
...
@@ -416,6 +420,7 @@ export default {
}
}
},
},
{
{
width
:
'95'
,
label
:
'有效时间'
,
label
:
'有效时间'
,
prop
:
'validitDate'
,
prop
:
'validitDate'
,
minWidth
:
'200'
,
minWidth
:
'200'
,
...
@@ -487,16 +492,36 @@ export default {
...
@@ -487,16 +492,36 @@ export default {
})
})
},
},
// 批次界面搜索
// 批次界面搜索
selectCollectionTable
()
{
selectCollectionTable
(
e
)
{
this
.
$apis
.
equityApi
.
getEquityCardBatchList
(
this
.
batchListSearch
).
then
(
res
=>
{
if
(
e
==
'reset'
)
{
this
.
$refs
.
batchDetailTable
.
refreshTable
()
this
.
batchDate
=
''
})
this
.
selectBatchId
=
''
this
.
batchListSearch
.
merchantName
=
''
this
.
$apis
.
equityApi
.
getEquityCardBatchList
(
this
.
batchListSearch
).
then
(
res
=>
{
this
.
$refs
.
batchDetailTable
.
refreshTable
()
})
}
else
if
(
e
==
'select'
)
{
this
.
$apis
.
equityApi
.
getEquityCardBatchList
(
this
.
batchListSearch
).
then
(
res
=>
{
this
.
$refs
.
batchDetailTable
.
refreshTable
()
})
}
},
},
// 领用界面搜索
// 领用界面搜索
collectionSelect
()
{
collectionSelect
(
e
)
{
this
.
$apis
.
equityApi
.
getEquityCardCollectionList
(
this
.
batchListSearch
).
then
(
res
=>
{
if
(
e
==
'reset'
)
{
this
.
$refs
.
collectionTable
.
refreshTable
()
this
.
collectionListSearch
.
merchantName
=
''
})
this
.
collectionListSearch
.
sn
=
''
this
.
collectionListSearch
.
startTime
=
''
this
.
collectionListSearch
.
endTime
=
''
this
.
collectionListSearch
.
mobile
=
''
this
.
$apis
.
equityApi
.
getEquityCardCollectionList
(
this
.
batchListSearch
).
then
(
res
=>
{
this
.
$refs
.
collectionTable
.
refreshTable
()
})
}
else
if
(
e
==
'select'
)
{
this
.
$apis
.
equityApi
.
getEquityCardCollectionList
(
this
.
batchListSearch
).
then
(
res
=>
{
this
.
$refs
.
collectionTable
.
refreshTable
()
})
}
},
},
// 批次详情界面搜索
// 批次详情界面搜索
batchdetailSelect
()
{
batchdetailSelect
()
{
...
@@ -818,9 +843,6 @@ h2 {
...
@@ -818,9 +843,6 @@ h2 {
margin-left
:
19.5%
;
margin-left
:
19.5%
;
margin-top
:
20px
;
margin-top
:
20px
;
}
}
.tableCtn
{
margin-top
:
10px
;
}
.Input
{
.Input
{
margin-left
:
10px
;
margin-left
:
10px
;
}
}
...
@@ -890,18 +912,6 @@ h2 {
...
@@ -890,18 +912,6 @@ h2 {
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
padding
:
10px
;
padding
:
10px
;
}
}
.container
{
width
:
1160px
;
height
:
100%
;
background
:
#f4f5fa
;
padding
:
0
20px
20px
40px
;
position
:
absolute
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
top
:
0
;
left
:
0
;
overflow-y
:
auto
;
}
.followForm
{
.followForm
{
background
:
#fff
;
background
:
#fff
;
padding
:
10px
;
padding
:
10px
;
...
@@ -924,6 +934,21 @@ h2 {
...
@@ -924,6 +934,21 @@ h2 {
.datapicker
{
.datapicker
{
width
:
220px
;
width
:
220px
;
}
}
.el-tabs__item
{
padding
:
0
20px
;
height
:
40px
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
line-height
:
40px
;
display
:
inline-block
;
list-style
:
none
;
font-size
:
14px
;
font-weight
:
500
;
color
:
#303133
;
position
:
relative
;
width
:
180px
;
text-align
:
center
;
}
</
style
>
</
style
>
<
style
src=
"@a/css/tao.css"
></
style
>
<
style
src=
"@a/css/tao.css"
></
style
>
src/views/list/index.vue
View file @
3920ec2
<
template
>
<
template
>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"layout"
>
<div
class=
"layout"
>
<div
class=
"box"
>
<div
class=
"equity-title"
>
商品权益
</div>
<div
class=
"equity-title"
>
汽车权益
</div>
<div
class=
"tableBox"
style=
"margin-top:16px"
>
<div
class=
"add-box"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"addEquity(1)"
><i
class=
"el-icon-plus"
></i><span
style=
"margin-left: 8px"
>
添加汽车权益
</span></el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"addEquity(1)"
>
添加
</el-button>
<div
class=
"tableCtn noneOperation"
>
</div>
<GLTable
ref=
"carTable"
:tableParams=
"carTableParams"
:tableData=
"carTableData"
:pageConf=
"cardsDatail"
height=
"320px"
>
<div
class=
"table-box"
>
<GLTable
ref=
"carTable"
:tableParams=
"carTableParams"
:tableData=
"carTableData"
:hasPage=
"false"
:hasNum=
"false"
>
<div
slot=
"mainPageFlag"
slot-scope=
"scope"
>
<div
slot=
"mainPageFlag"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"carsDisplay(scope.scope)"
>
{{
scope
.
scope
.
mainPageFlag
==
1
?
'取消首页展示'
:
'首页展示'
}}
</el-button>
<el-button
type=
"text"
@
click=
"carsDisplay(scope.scope)"
>
{{
scope
.
scope
.
mainPageFlag
==
1
?
'取消首页展示'
:
'首页展示'
}}
</el-button>
</div>
</div>
...
@@ -22,8 +20,8 @@
...
@@ -22,8 +20,8 @@
</GLTable>
</GLTable>
</div>
</div>
</div>
</div>
<div
class=
"
b
ox"
>
<div
class=
"
tableBox secondB
ox"
>
<
div
class=
"equity-title"
>
商品权益
</div
>
<
el-button
type=
"primary"
size=
"small"
@
click=
"addEquity(2)"
><i
class=
"el-icon-plus"
></i><span
style=
"margin-left: 8px"
>
添加门店权益
</span></el-button
>
<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)">
<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)">
...
@@ -33,13 +31,11 @@
...
@@ -33,13 +31,11 @@
</el-tag>
</el-tag>
</
template
>
</
template
>
<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>
<el-button
class=
"addTag"
size=
"small"
@
click=
"showAddInput"
v-else
><i
class=
"el-icon-plus"
></i><span
style=
"margin-left: 8px"
>
添加分类
</span></el-button>
</div>
<div
class=
"add-box"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"addEquity(2)"
>
添加
</el-button>
</div>
</div>
<div
class=
"table-box"
>
<GLTable
ref=
"carTable"
:tableParams=
"goodsTableParams"
:tableData=
"goodsTableData"
:hasPage=
"false"
:hasNum=
"false"
>
<div
class=
"tableCtn"
>
<GLTable
ref=
"carTable"
:tableParams=
"goodsTableParams"
:tableData=
"goodsTableData"
:pageConf=
"goodsDatail"
>
<div
slot=
"mainPageFlag"
slot-scope=
"scope"
>
<div
slot=
"mainPageFlag"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"goodsDisplay(scope.scope)"
>
{{ scope.scope.mainPageFlag == 1 ? '取消首页展示' : '首页展示' }}
</el-button>
<el-button
type=
"text"
@
click=
"goodsDisplay(scope.scope)"
>
{{ scope.scope.mainPageFlag == 1 ? '取消首页展示' : '首页展示' }}
</el-button>
</div>
</div>
...
@@ -50,13 +46,13 @@
...
@@ -50,13 +46,13 @@
<el-button
type=
"text"
@
click=
"editEquity(scope.scope, 2)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"editEquity(scope.scope, 2)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"updateShelves(scope.scope, 'goods')"
>
{{ scope.scope.status == 0 ? '上架' : '下架' }}
</el-button>
<el-button
type=
"text"
@
click=
"updateShelves(scope.scope, 'goods')"
>
{{ scope.scope.status == 0 ? '上架' : '下架' }}
</el-button>
<el-button
type=
"text"
@
click=
"setTop(scope.scope.id, 'goods')"
>
置顶
</el-button>
<el-button
type=
"text"
@
click=
"setTop(scope.scope.id, 'goods')"
>
置顶
</el-button>
<el-button
type=
"text"
@
click=
"deletEquity(scope.scope.id)"
:disabled=
"scope.scope.status == 0 ? false: true"
>
删除
</el-button>
<el-button
type=
"text"
@
click=
"deletEquity(scope.scope.id)"
:disabled=
"scope.scope.status == 0 ? false
: true"
>
删除
</el-button>
</span>
</span>
</GLTable>
</GLTable>
</div>
</div>
</div>
</div>
<equity-dialog
:show
.
sync=
"showDialog"
:type=
"dialogType"
:isEdit
.
sync=
"isEdit"
></equity-dialog>
</div>
</div>
<equity-dialog
:show
.
sync=
"showDialog"
:type=
"dialogType"
:isEdit
.
sync=
"isEdit"
></equity-dialog>
</div>
</div>
</template>
</template>
...
@@ -67,6 +63,8 @@ export default {
...
@@ -67,6 +63,8 @@ export default {
mixins
:
[
carMixin
,
goodsMixin
],
mixins
:
[
carMixin
,
goodsMixin
],
data
()
{
data
()
{
return
{
return
{
goodsDatail
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
cardsDatail
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
showDialog
:
false
,
showDialog
:
false
,
isEdit
:
false
,
isEdit
:
false
,
dialogType
:
1
,
dialogType
:
1
,
...
@@ -170,14 +168,16 @@ export default {
...
@@ -170,14 +168,16 @@ export default {
<
style
src=
"@a/css/tao.css"
></
style
>
<
style
src=
"@a/css/tao.css"
></
style
>
<
style
>
<
style
>
.equity-title
{
.equity-title
{
height
:
44px
;
font-size
:
16px
;
line-height
:
44px
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
background-color
:
rgb
(
242
,
242
,
242
);
font-weight
:
500
;
padding-left
:
40px
;
color
:
#333333
;
line-height
:
28px
;
}
}
.add-box
,
.tags-box
{
.tags-box
{
padding
:
20px
0
10px
;
padding
:
20px
0
10px
;
background
:
#F4F6FC
;
border-radius
:
4px
;
}
}
.el-tag
+
.el-tag
{
.el-tag
+
.el-tag
{
margin-left
:
10px
;
margin-left
:
10px
;
...
@@ -237,19 +237,13 @@ export default {
...
@@ -237,19 +237,13 @@ export default {
.tableBtn
{
.tableBtn
{
width
:
40px
;
width
:
40px
;
}
}
.box
{
.noneOperation
{
margin
:
0
;
padding
:
0
;
border
:
0
;
outline
:
0
;
font-size
:
100%
;
vertical-align
:
baseline
;
background
:
transparent
;
background
:
#fff
;
padding
:
10px
;
}
.tableCtn
{
margin-top
:
20px
;
margin-top
:
20px
;
}
}
.fixedHeight
{
height
:
45px
;
}
.secondBox
{
margin-top
:
50px
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/order/detail.vue
View file @
3920ec2
...
@@ -171,7 +171,6 @@ export default {
...
@@ -171,7 +171,6 @@ export default {
}
}
]
]
},
},
params
:
{}
}
}
},
},
mounted
()
{
mounted
()
{
...
...
src/views/rightsCard/index.vue
View file @
3920ec2
<!-- -->
<!-- -->
<
template
>
<
template
>
<div
class=
"contianer"
>
<div
class=
"contianer"
>
<div
class=
"topline"
>
<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"
>
新建权益卡
</el-button>
<i
class=
"el-icon-plus"
></i>
<span
style=
"margin-left: 8px"
>
新建权益卡
</span>
</el-button>
</div>
<div
class=
"tableBox"
style=
"margin-left: 20px; margin-top:20px"
>
<div
class=
"topline"
>
<div
class=
"selectStore"
>
搜索门店
</div>
<el-select
size=
"small"
v-model=
"searchForm.merchantName"
filterable
remote
reserve-keyword
placeholder=
"请输入门店名称"
:remote-method=
"remoteMethod"
:loading=
"loading"
clearable
style=
"margin-left: 10px"
>
<el-option
v-for=
"(item, index) in options"
:key=
"index"
:label=
"item.merchantName"
:value=
"item.merchantName"
></el-option>
</el-select>
<div
class=
"operationBtn"
>
<el-button
plain
size=
"small"
class=
"selectBtn"
@
click=
"selectStore('reset')"
>
重置
</el-button>
<el-button
type=
"primary"
size=
"small"
style=
"margin-left: 20px"
class=
"selectBtn"
@
click=
"selectStore('select')"
>
搜索
</el-button>
</div>
</div>
</div>
<el-select
size=
"small"
v-model=
"searchForm.merchantName"
filterable
remote
reserve-keyword
placeholder=
"请输入关联门店"
:remote-method=
"remoteMethod"
:loading=
"loading"
clearable
>
<div
class=
"tableCtn"
>
<el-option
v-for=
"(item, index) in options"
:key=
"index"
:label=
"item.merchantName"
:value=
"item.merchantName"
></el-option>
<GLTable
ref=
"recordTable"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
>
</el-select>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<!--
<el-select
<el-button
type=
"text"
@
click=
"edit(scope.scope)"
class=
"tableBtn"
size=
"small"
>
编辑
</el-button>
v-model=
"searchForm.merchantName"
<el-button
type=
"text"
:disabled=
"scope.scope.tryAble == 0 ? true : false"
@
click=
"extension(scope.scope)"
class=
"tableBtn"
size=
"small"
>
推广
</el-button>
filterable
<el-button
type=
"text"
@
click=
"copy(scope.scope)"
class=
"tableBtn"
size=
"small"
>
复制
</el-button>
placeholder=
"请选择门店"
</span>
>
</GLTable>
<el-option
v-for=
"(item,index) in storeOptions"
:key=
"index"
:label=
"item.name"
:value=
"item.name"
>
</el-option>
</el-select>
-->
<div
class=
"buttonContainer"
>
<el-button
:id=
"tableParams.btnId"
type=
"primary"
icon=
"el-icon-search"
size=
"small"
>
搜索
</el-button>
</div>
</div>
</div>
</div>
<div
class=
"tableCtn"
>
<d2-table
ref=
"recordTable"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<el-button
type=
"text"
@
click=
"edit(scope.scope)"
class=
"tableBtn"
size=
"small"
>
编辑
</el-button>
<el-button
type=
"text"
:disabled=
"scope.scope.tryAble == 0 ? true : false"
@
click=
"extension(scope.scope)"
class=
"tableBtn"
size=
"small"
>
推广
</el-button>
<el-button
type=
"text"
@
click=
"copy(scope.scope)"
class=
"tableBtn"
size=
"small"
>
复制
</el-button>
</span>
</d2-table>
</div>
<!-- 推广弹窗 -->
<!-- 推广弹窗 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"isVisible"
:before-close=
"handleClose"
:close-on-click-modal=
"false"
width=
"580px"
>
<el-dialog
:title=
"title"
:visible
.
sync=
"isVisible"
:before-close=
"handleClose"
:close-on-click-modal=
"false"
width=
"580px"
>
<el-form
:model=
"editForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"68px"
>
<el-form
:model=
"editForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"68px"
>
...
@@ -66,8 +59,8 @@
...
@@ -66,8 +59,8 @@
<!-- 基础表单 -->
<!-- 基础表单 -->
<div
class=
"baseinformation"
><span
class=
"titleText"
>
基本信息
</span></div>
<div
class=
"baseinformation"
><span
class=
"titleText"
>
基本信息
</span></div>
<div
class=
"form"
>
<div
class=
"form"
>
<el-form-item
label=
"名称:"
prop=
"cardClassName"
style=
"width: 30%"
id=
"name"
>
<el-form-item
label=
"名称:"
prop=
"cardClassName"
id=
"name"
>
<el-input
v-model=
"ruleForm.cardClassName"
maxlength=
"15"
type=
"text"
size=
"
mini
"
></el-input>
<el-input
v-model=
"ruleForm.cardClassName"
maxlength=
"15"
type=
"text"
size=
"
small"
class=
"dialogInput
"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"卡片样式:"
prop=
"backgroundImage"
>
<el-form-item
label=
"卡片样式:"
prop=
"backgroundImage"
>
<div
class=
"imageList"
>
<div
class=
"imageList"
>
...
@@ -77,7 +70,7 @@
...
@@ -77,7 +70,7 @@
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"渠道门店:"
prop=
"merchantName"
>
<el-form-item
label=
"渠道门店:"
prop=
"merchantName"
>
<el-select
v-model=
"ruleForm.merchantName"
filterable
remote
reserve-keyword
placeholder=
"请输入
关联门店
"
:remote-method=
"generateRemoteMethod"
:loading=
"loading"
:disabled=
"disableSelect"
>
<el-select
v-model=
"ruleForm.merchantName"
filterable
remote
reserve-keyword
placeholder=
"请输入
门店名称
"
:remote-method=
"generateRemoteMethod"
:loading=
"loading"
:disabled=
"disableSelect"
>
<el-option
v-for=
"(item, index) in generateOptions"
:key=
"index"
:label=
"item.merchantName"
:value=
"item.merchantName"
></el-option>
<el-option
v-for=
"(item, index) in generateOptions"
:key=
"index"
:label=
"item.merchantName"
:value=
"item.merchantName"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -89,21 +82,6 @@
...
@@ -89,21 +82,6 @@
<el-input-number
v-model=
"effectiveNum"
controls-position=
"right"
:min=
"1"
:max=
"999"
id=
"month"
:disabled=
"ruleForm.effectiveType !== '2'"
size=
"mini"
change=
""
></el-input-number>
<el-input-number
v-model=
"effectiveNum"
controls-position=
"right"
:min=
"1"
:max=
"999"
id=
"month"
:disabled=
"ruleForm.effectiveType !== '2'"
size=
"mini"
change=
""
></el-input-number>
天内有效
天内有效
</el-radio>
</el-radio>
<!--
<el-radio
label=
""
@
change=
"e => controlSwitch(e, 'data')"
>
<el-date-picker
v-model=
"data"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:disabled=
"dataSwitch"
size=
"mini"
>
</el-date-picker>
</el-radio>
-->
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<el-form-item
label=
"权益商品编码:"
prop=
""
>
<el-form-item
label=
"权益商品编码:"
prop=
""
>
...
@@ -165,6 +143,7 @@ function date_format(date) {
...
@@ -165,6 +143,7 @@ function date_format(date) {
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
hasTryNum
:
''
,
hasTryNum
:
''
,
value
:
false
,
value
:
false
,
downloadFilename
:
''
,
downloadFilename
:
''
,
...
@@ -517,6 +496,19 @@ export default {
...
@@ -517,6 +496,19 @@ export default {
this
.
ruleForm
.
effectiveNum
=
this
.
effectiveNum
this
.
ruleForm
.
effectiveNum
=
this
.
effectiveNum
}
}
},
},
//门店搜索
selectStore
(
e
)
{
if
(
e
==
'reset'
)
{
this
.
searchForm
.
merchantName
=
''
this
.
$apis
.
equityApi
.
getEquityCardList
(
this
.
searchForm
).
then
(
res
=>
{
this
.
$refs
.
recordTable
.
refreshTable
()
})
}
else
if
(
e
==
'select'
)
{
this
.
$apis
.
equityApi
.
getEquityCardList
(
this
.
searchForm
).
then
(
res
=>
{
this
.
$refs
.
recordTable
.
refreshTable
()
})
}
},
//提交验证
//提交验证
submitForm
(
formName
)
{
submitForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
...
@@ -541,6 +533,7 @@ export default {
...
@@ -541,6 +533,7 @@ export default {
console
.
log
(
apiName
)
console
.
log
(
apiName
)
//请求是否成功
//请求是否成功
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
value
=
false
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
this
.
effectiveNum
=
''
this
.
effectiveNum
=
''
this
.
isAdd
=
false
this
.
isAdd
=
false
...
@@ -581,6 +574,7 @@ export default {
...
@@ -581,6 +574,7 @@ export default {
})
})
},
},
resetForm
(
formName
)
{
resetForm
(
formName
)
{
this
.
value
=
false
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
this
.
effectiveNum
=
''
this
.
effectiveNum
=
''
this
.
isAdd
=
false
this
.
isAdd
=
false
...
@@ -593,6 +587,7 @@ export default {
...
@@ -593,6 +587,7 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
src=
"@a/css/tao.css/"
></
style
>
<
style
>
<
style
>
*
{
*
{
padding
:
0
;
padding
:
0
;
...
@@ -671,10 +666,10 @@ export default {
...
@@ -671,10 +666,10 @@ export default {
}
}
.imgCtn
{
.imgCtn
{
background
:
rgb
(
240
,
240
,
240
);
background
:
rgb
(
240
,
240
,
240
);
width
:
17
0px
;
width
:
30
0px
;
text-align
:
center
;
text-align
:
center
;
padding
:
10px
;
padding
:
10px
;
height
:
8
0px
;
height
:
10
0px
;
margin-right
:
20px
;
margin-right
:
20px
;
}
}
.imgBg
{
.imgBg
{
...
@@ -683,14 +678,11 @@ export default {
...
@@ -683,14 +678,11 @@ export default {
.topline
{
.topline
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
margin-left
:
20px
;
text-align
:
center
;
margin-top
:
20px
;
align-items
:
center
;
}
}
.button
{
.button
{
margin-right
:
40px
;
margin-left
:
20px
;
}
.buttonContainer
{
margin-left
:
40px
;
}
}
/* .el-dialog__headerbtn {
/* .el-dialog__headerbtn {
display: none;
display: none;
...
@@ -726,11 +718,21 @@ export default {
...
@@ -726,11 +718,21 @@ export default {
color
:
#8c939d
;
color
:
#8c939d
;
}
}
.lineCtn
{
.lineCtn
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
}
}
.tableBtn
{
.tableBtn
{
width
:
40px
;
width
:
40px
;
}
}
.selectStore
{
font-size
:
14px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#4c4c4c
;
line-height
:
20px
;
}
.dialogInput
{
width
:
320px
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
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