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 b4cce47b
authored
Aug 19, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:表格状态更换
1 parent
2534f676
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
374 additions
and
223 deletions
src/assets/css/public.scss
src/views/collection/index.vue
src/views/eManagement/index.vue
src/views/financial/index.vue
src/views/gas/index.vue
src/views/goods/index.vue
src/views/order/index.vue
src/views/rightsCard/cardDetail.vue
src/views/rightsCard/index.vue
src/views/sale/index.vue
src/assets/css/public.scss
View file @
b4cce47
...
@@ -147,7 +147,22 @@
...
@@ -147,7 +147,22 @@
padding
:
0
15px
;
padding
:
0
15px
;
padding-bottom
:
10px
;
padding-bottom
:
10px
;
}
}
.gl-form-page
.form
.el-input-number
{
width
:
136px
;
.el-input
{
width
:
100%
;
}
}
.flex_sc
{
display
:
flex
;
align-items
:
center
;
}
.table_point
{
width
:
6px
;
height
:
6px
;
border-radius
:
50%
;
margin-right
:
8px
;
}
// .equity-wrap table {
// .equity-wrap table {
// width: 98%;
// width: 98%;
// color: #666666;
// color: #666666;
...
...
src/views/collection/index.vue
View file @
b4cce47
...
@@ -70,7 +70,9 @@
...
@@ -70,7 +70,9 @@
</GLDialog>
</GLDialog>
<!-- 批量生成权益卡弹窗 -->
<!-- 批量生成权益卡弹窗 -->
<GLDialog
mode=
"mid"
title=
"批量生成权益卡"
:visible
.
sync=
"dialogVisible"
:before-close=
"handleClose"
>
<GLDialog
mode=
"mid"
title=
"批量生成权益卡"
:visible
.
sync=
"dialogVisible"
:before-close=
"handleClose"
>
<el-form
:inline=
"true"
:model=
"generateRightCardsForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"154px"
class=
"addCardsForm"
>
<!-- gl-form-page -->
<div
class=
""
>
<el-form
:inline=
"true"
:model=
"generateRightCardsForm"
:rules=
"rules"
label-width=
"154px"
ref=
"ruleForm"
class=
"addCardsForm"
>
<div
class=
"form"
>
<div
class=
"form"
>
<el-row>
<el-row>
<el-form-item
label=
"关联门店:"
prop=
"merchantName"
>
<el-form-item
label=
"关联门店:"
prop=
"merchantName"
>
...
@@ -94,6 +96,7 @@
...
@@ -94,6 +96,7 @@
</el-row>
</el-row>
</div>
</div>
</el-form>
</el-form>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"cancelGenerate"
>
取 消
</el-button>
<el-button
size=
"small"
@
click=
"cancelGenerate"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"generateCards('ruleForm')"
>
确 定
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"generateCards('ruleForm')"
>
确 定
</el-button>
...
@@ -112,7 +115,12 @@
...
@@ -112,7 +115,12 @@
<div
class=
"pannel tableTopButton"
>
<div
class=
"pannel tableTopButton"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportCollection"
>
导出
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportCollection"
>
导出
</el-button>
</div>
</div>
<GLTable
ref=
"collectionTable"
:searchForm=
"collectionListSearch"
:tableParams=
"collectionTableParams"
:getListApi=
"listRequisitionMemberCard"
:beforeSearchFn=
"changeCollectionDataFormat"
:pageConf=
"pageConf"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
<GLTable
ref=
"collectionTable"
:searchForm=
"collectionListSearch"
:tableParams=
"collectionTableParams"
:getListApi=
"listRequisitionMemberCard"
:beforeSearchFn=
"changeCollectionDataFormat"
:pageConf=
"pageConf"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
class=
"flex_sc"
slot=
"colorStatus"
slot-scope=
"scope"
>
<div
class=
"table_point"
:style=
"
{ background: colors[scope.scope.status] }">
</div>
<span>
{{
[
'未激活'
,
'已激活'
][
scope
.
scope
.
status
]
}}
</span>
</div>
</GLTable>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</div>
...
@@ -400,7 +408,8 @@ export default {
...
@@ -400,7 +408,8 @@ export default {
0
:
'未激活'
0
:
'未激活'
}[
cellValue
.
status
]
}[
cellValue
.
status
]
},
},
minWidth
:
'200'
minWidth
:
'200'
,
addHtml
:
'colorStatus'
}
}
]
]
},
},
...
@@ -425,7 +434,8 @@ export default {
...
@@ -425,7 +434,8 @@ export default {
batchNo
:
''
,
batchNo
:
''
,
num
:
''
,
num
:
''
,
recipientCount
:
''
recipientCount
:
''
}
},
colors
:
[
'#999999'
,
'#2CCA74'
]
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -982,12 +992,12 @@ flex-wrap: nowrap;
...
@@ -982,12 +992,12 @@ flex-wrap: nowrap;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
font-weight
:
500
;
}
}
.batchDialog
.el-dialog__body
{
/*
.batchDialog .el-dialog__body {
padding: 0px 0px;
padding: 0px 0px;
color: #606266;
color: #606266;
font-size: 14px;
font-size: 14px;
word-break: break-all;
word-break: break-all;
}
}
*/
.batchDialog
.el-dialog__footer
{
.batchDialog
.el-dialog__footer
{
padding
:
16px
20px
;
padding
:
16px
20px
;
-webkit-box-sizing
:
border-box
;
-webkit-box-sizing
:
border-box
;
...
@@ -996,9 +1006,7 @@ flex-wrap: nowrap;
...
@@ -996,9 +1006,7 @@ flex-wrap: nowrap;
text-align
:
center
;
text-align
:
center
;
}
}
.addCardsForm
.el-input--small
.el-input__inner
{
.addCardsForm
.el-input--small
.el-input__inner
{
height
:
32px
;
width
:
248px
;
line-height
:
32px
;
width
:
432px
;
}
}
.equity-wrap
.tapItem
{
.equity-wrap
.tapItem
{
margin
:
0px
;
margin
:
0px
;
...
...
src/views/eManagement/index.vue
View file @
b4cce47
...
@@ -2,7 +2,12 @@
...
@@ -2,7 +2,12 @@
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap"
>
<div
class=
"find_wrap"
>
<div
class=
"find_wrap"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLTable
ref=
"table"
:noDataImg=
"url"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
></GLTable>
<GLTable
ref=
"table"
:noDataImg=
"url"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<div
class=
"flex_sc"
slot=
"colorStatus"
slot-scope=
"scope"
>
<div
class=
"table_point"
:style=
"
{'background':colors[scope.scope.orderStatus]}">
</div>
<span>
{{
[
'已结算'
,
'待结算'
,
'已失效'
][
scope
.
scope
.
orderStatus
]
}}
</span>
</div>
</GLTable>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -105,11 +110,13 @@ export default {
...
@@ -105,11 +110,13 @@ export default {
},
},
{
{
label
:
'实付金额'
,
label
:
'实付金额'
,
prop
:
'price'
prop
:
'price'
,
align
:
'right'
},
},
{
{
label
:
'订单总额'
,
label
:
'订单总额'
,
prop
:
'income'
prop
:
'income'
,
align
:
'right'
},
},
{
{
label
:
'订单号'
,
label
:
'订单号'
,
...
@@ -125,10 +132,12 @@ export default {
...
@@ -125,10 +132,12 @@ export default {
prop
:
'status'
,
prop
:
'status'
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
[
'已结算'
,
'待结算'
,
'已失效'
][
cell
.
orderStatus
]
return
[
'已结算'
,
'待结算'
,
'已失效'
][
cell
.
orderStatus
]
}
},
addHtml
:
'colorStatus'
}
}
]
]
}
},
colors
:[
'#2CCA74'
,
'#FDB757'
,
'#999999'
],
}
}
},
},
...
...
src/views/financial/index.vue
View file @
b4cce47
...
@@ -21,6 +21,11 @@
...
@@ -21,6 +21,11 @@
<template
slot=
"custom"
>
<template
slot=
"custom"
>
<div
class=
"table-custom exportBtn"
></div>
<div
class=
"table-custom exportBtn"
></div>
</
template
>
</
template
>
<div
class=
"flex_sc"
slot=
"colorStatus"
slot-scope=
"scope"
>
<div
class=
"table_point"
:style=
"{ background:scope.scope.appearance==2?colors2[scope.scope.orderStatus]:colors1[scope.scope.orderStatus] }"
></div>
<span
v-if=
"scope.scope.appearance==2"
>
{{ qb_statusEnum[scope.scope.orderStatus] }}
</span>
<span
v-else
>
{{ statusEnum[scope.scope.orderStatus] }}
</span>
</div>
</GLTable>
</GLTable>
</div>
</div>
</div>
</div>
...
@@ -216,9 +221,10 @@ export default {
...
@@ -216,9 +221,10 @@ export default {
{
{
label
:
'订单状态'
,
label
:
'订单状态'
,
width
:
120
,
width
:
120
,
formatter
:
cell
=>
{
// formatter: cell => {
return
cell
.
appearance
==
1
?
this
.
statusEnum
[
cell
.
orderStatus
]
:
this
.
qb_statusEnum
[
cell
.
orderStatus
]
// return cell.appearance == 1 ? this.statusEnum[cell.orderStatus] : this.qb_statusEnum[cell.orderStatus]
}
// },
addHtml
:
'colorStatus'
},
},
{
{
label
:
'下单时间'
,
label
:
'下单时间'
,
...
@@ -229,6 +235,20 @@ export default {
...
@@ -229,6 +235,20 @@ export default {
}
}
}
}
]
]
},
colors1
:{
0
:
'#999999'
,
1
:
'#2CCA74'
,
2
:
'#FDB757'
,
3
:
'#2CCA74'
,
4
:
'#5850FF'
,
5
:
'#EB4E4E'
,
6
:
'#2CCA74'
,
},
colors2
:{
3
:
'#2CCA74'
,
6
:
'#EB4E4E'
,
2
:
'#5850FF'
,
}
}
}
}
},
},
...
...
src/views/gas/index.vue
View file @
b4cce47
...
@@ -2,7 +2,12 @@
...
@@ -2,7 +2,12 @@
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap contain"
>
<div
class=
"equity-wrap contain"
>
<GLCombiForm
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLTable
v-if=
"flag"
ref=
"table"
:noDataImg=
"url"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
></GLTable>
<GLTable
v-if=
"flag"
ref=
"table"
:noDataImg=
"url"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<div
class=
"flex_sc"
slot=
"colorStatus"
slot-scope=
"scope"
>
<div
class=
"table_point"
:style=
"
{ background: colors[scope.scope.orderStatusName]}">
</div>
<span>
{{
scope
.
scope
.
orderStatusName
}}
</span>
</div>
</GLTable>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -161,7 +166,7 @@ export default {
...
@@ -161,7 +166,7 @@ export default {
{
{
label
:
'加油时间'
,
label
:
'加油时间'
,
prop
:
'orderTime'
,
prop
:
'orderTime'
,
width
:
180
,
width
:
180
},
},
{
{
label
:
'供应商'
,
label
:
'供应商'
,
...
@@ -204,7 +209,8 @@ export default {
...
@@ -204,7 +209,8 @@ export default {
{
{
label
:
'订单状态'
,
label
:
'订单状态'
,
prop
:
'orderStatusName'
,
prop
:
'orderStatusName'
,
width
:
'100'
width
:
'100'
,
addHtml
:
'colorStatus'
},
},
{
{
label
:
'用户信息'
,
label
:
'用户信息'
,
...
@@ -217,6 +223,12 @@ export default {
...
@@ -217,6 +223,12 @@ export default {
width
:
'230'
width
:
'230'
}
}
]
]
},
colors
:
{
'已支付'
:
'#2CCA74'
,
'退款申请中'
:
'#5850FF'
,
'已退款'
:
'#2CCA74'
,
'退款失败'
:
'#EB4E4E'
}
}
}
}
},
},
...
...
src/views/goods/index.vue
View file @
b4cce47
...
@@ -11,6 +11,10 @@
...
@@ -11,6 +11,10 @@
</div>
</div>
<div
class=
"table_wrap"
>
<div
class=
"table_wrap"
>
<GLTable
ref=
"table"
:pageConf=
"pageConf"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
>
<GLTable
ref=
"table"
:pageConf=
"pageConf"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
>
<div
class=
"flex_sc"
slot=
"colorStatus"
slot-scope=
"scope"
>
<div
class=
"table_point"
:style=
"
{ background: colors[scope.scope.status] }">
</div>
<span>
{{
[
'待上架'
,
'上架'
,
'下架'
][
scope
.
scope
.
status
]
}}
</span>
</div>
<div
slot=
"table-btns"
slot-scope=
"scope"
>
<div
slot=
"table-btns"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope"
:buttonNum=
"3"
></GLTableButton>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope"
:buttonNum=
"3"
></GLTableButton>
<!--
<GLButton
fn=
"编辑商品"
type=
"text"
@
click=
"jump(scope.scope)"
>
编辑
</GLButton>
<!--
<GLButton
fn=
"编辑商品"
type=
"text"
@
click=
"jump(scope.scope)"
>
编辑
</GLButton>
...
@@ -197,7 +201,7 @@ export default {
...
@@ -197,7 +201,7 @@ export default {
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'提供方'
,
label
:
'提供方'
,
width
:
150
,
width
:
150
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
'海威'
return
'海威'
}
}
...
@@ -239,9 +243,10 @@ export default {
...
@@ -239,9 +243,10 @@ export default {
{
{
label
:
'商品状态'
,
label
:
'商品状态'
,
width
:
110
,
width
:
110
,
formatter
:
cell
=>
{
addHtml
:
'colorStatus'
return
[
'待上架'
,
'上架'
,
'下架'
][
cell
.
status
]
// formatter: cell => {
}
// return ['待上架', '上架', '下架'][cell.status]
// }
},
},
{
{
label
:
'操作'
,
label
:
'操作'
,
...
@@ -254,7 +259,8 @@ export default {
...
@@ -254,7 +259,8 @@ export default {
goodsBrandList
:
[],
goodsBrandList
:
[],
selectStatus
:
false
,
selectStatus
:
false
,
isVisible
:
false
,
isVisible
:
false
,
shortLink
:
null
shortLink
:
null
,
colors
:
[
'#FDB757'
,
'#2CCA74'
,
'#999999'
]
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -438,9 +444,9 @@ export default {
...
@@ -438,9 +444,9 @@ export default {
.addGood
{
.addGood
{
margin-bottom
:
16px
;
margin-bottom
:
16px
;
}
}
.find-wrap
{
.find-wrap
{
background
:
#ffffff
;
background
:
#ffffff
;
padding
:
20px
0
;
padding
:
20px
0
;
}
}
.con-wrap
{
.con-wrap
{
height
:
191px
;
height
:
191px
;
...
@@ -458,7 +464,7 @@ export default {
...
@@ -458,7 +464,7 @@ export default {
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
}
}
.el-button
+
.el-button
{
.el-button
+
.el-button
{
margin-left
:
8px
;
margin-left
:
8px
;
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/order/index.vue
View file @
b4cce47
...
@@ -5,35 +5,43 @@
...
@@ -5,35 +5,43 @@
<div
class=
"tableTopButton"
>
<div
class=
"tableTopButton"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
</div>
</div>
<div
class=
"choseRow"
>
<div
class=
"out_wrap"
>
<div
class=
"choseRow flex_sc"
>
<div
class=
"choseItem"
:class=
"
{ active: currentIndex == index }" v-for="(item, index) in choseList" :key="index" @click="tabClick(index)">
<div
class=
"choseItem"
:class=
"
{ active: currentIndex == index }" v-for="(item, index) in choseList" :key="index" @click="tabClick(index)">
{{
item
}}
{{
item
}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"table_box"
>
<GLTable
v-if=
"flag"
:noDataImg=
"url"
ref=
"table"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
v-if=
"flag"
:noDataImg=
"url"
ref=
"table"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<span
slot=
"goodsMsg"
slot-scope=
"scope"
>
<span
slot=
"goodsMsg"
slot-scope=
"scope"
>
<div
>
{{
scope
.
scope
.
brandName
}}
</div>
<div
class=
"mb4"
>
{{
scope
.
scope
.
brandName
}}
</div>
<div
>
{{
scope
.
scope
.
appearance
==
2
?
scope
.
scope
.
productName
+
scope
.
scope
.
denomination
:
scope
.
scope
.
productName
}}
</div>
<div
class=
"min-text"
>
{{
scope
.
scope
.
appearance
==
2
?
scope
.
scope
.
productName
+
scope
.
scope
.
denomination
:
scope
.
scope
.
productName
}}
</div>
</span>
</span>
<span
slot=
"orderNum"
slot-scope=
"scope"
>
<!--
<span
slot=
"orderNum"
slot-scope=
"scope"
>
<div>
{{
scope
.
scope
.
orderCode
}}
</div>
<div>
{{
scope
.
scope
.
orderCode
}}
</div>
</span>
</span>
-->
<span
slot=
"priceAmount"
slot-scope=
"scope"
>
<!--
<span
slot=
"priceAmount"
slot-scope=
"scope"
>
<div>
{{
scope
.
scope
.
salePrices
}}
元
</div>
<div>
{{
scope
.
scope
.
salePrices
}}
元
</div>
<div>
{{
scope
.
scope
.
goodsQuality
}}
张
</div>
<div>
{{
scope
.
scope
.
goodsQuality
}}
张
</div>
<div></div>
<div></div>
</span>
</span>
-->
.
<span
slot=
"userInfo"
slot-scope=
"scope"
>
<span
slot=
"userInfo"
slot-scope=
"scope"
>
<div
>
{{
scope
.
scope
.
accountName
}}
</div>
<div
class=
"mb4"
>
{{
scope
.
scope
.
accountName
}}
</div>
<div
>
{{
scope
.
scope
.
mobile
}}
</div>
<div
class=
"min-text"
>
{{
scope
.
scope
.
mobile
}}
</div>
</span>
</span>
<div
class=
"flex_sc"
slot=
"colorStatus"
slot-scope=
"scope"
>
<div
class=
"table_point"
:style=
"
{ background: scope.scope.appearance == 2 ? colors2[scope.scope.orderStatus] : colors1[scope.scope.orderStatus] }">
</div>
<span
v-if=
"scope.scope.appearance == 2"
>
{{
qb_statusEnum
[
scope
.
scope
.
orderStatus
]
}}
</span>
<span
v-else
>
{{
statusEnum
[
scope
.
scope
.
orderStatus
]
}}
</span>
</div>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<GLButton
fn=
"查看订单详情"
type=
"text"
@
click=
"jump(scope.scope, 'order')"
>
查看详情
</GLButton>
<GLButton
fn=
"查看订单详情"
type=
"text"
@
click=
"jump(scope.scope, 'order')"
>
查看详情
</GLButton>
</span>
</span>
</GLTable>
</GLTable>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
...
@@ -134,26 +142,30 @@ export default {
...
@@ -134,26 +142,30 @@ export default {
// }
// }
},
},
{
{
label
:
'价格/数量'
,
label
:
'价格/元'
,
addHtml
:
'priceAmount'
,
width
:
110
,
width
:
'150'
align
:
'right'
,
// formatter(cell) {
prop
:
'salePrices'
// return `${cell.salePrices}元
},
// ${cell.goodsQuality}张`
{
// }
label
:
'数量/张'
,
width
:
110
,
align
:
'right'
,
prop
:
'goodsQuality'
},
},
{
{
label
:
'实收金额'
,
label
:
'实收金额'
,
prop
:
'orderPrices'
,
prop
:
'orderPrices'
,
width
:
'110'
,
width
:
'110'
,
align
:
'right'
align
:
'right'
},
},
{
{
label
:
'订单状态'
,
label
:
'订单状态'
,
width
:
'110'
,
width
:
'110'
,
formatter
:
cell
=>
{
addHtml
:
'colorStatus'
return
cell
.
appearance
==
1
?
this
.
statusEnum
[
cell
.
orderStatus
]
:
this
.
qb_statusEnum
[
cell
.
orderStatus
]
// formatter: cell => {
}
// return cell.appearance == 1 ? this.statusEnum[cell.orderStatus] : this.qb_statusEnum[cell.orderStatus]
// }
},
},
{
{
label
:
'下单时间'
,
label
:
'下单时间'
,
...
@@ -176,7 +188,7 @@ export default {
...
@@ -176,7 +188,7 @@ export default {
{
{
label
:
'订单编号'
,
label
:
'订单编号'
,
width
:
'280'
,
width
:
'280'
,
addHtml
:
'orderNum
'
prop
:
'orderCode
'
},
},
{
{
label
:
'海威订单号'
,
label
:
'海威订单号'
,
...
@@ -190,6 +202,20 @@ export default {
...
@@ -190,6 +202,20 @@ export default {
addHtml
:
'auth-button'
addHtml
:
'auth-button'
}
}
]
]
},
colors1
:
{
0
:
'#999999'
,
1
:
'#2CCA74'
,
2
:
'#FDB757'
,
3
:
'#2CCA74'
,
4
:
'#5850FF'
,
5
:
'#EB4E4E'
,
6
:
'#2CCA74'
},
colors2
:
{
3
:
'#2CCA74'
,
6
:
'#EB4E4E'
,
2
:
'#5850FF'
}
}
}
}
},
},
...
@@ -317,24 +343,46 @@ export default {
...
@@ -317,24 +343,46 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.equity-wrap
.contain
{
.equity-wrap
.contain
{
.out_wrap
{
position
:
relative
;
z-index
:
100
;
margin-bottom
:
-1px
;
}
.choseRow
{
.choseRow
{
display
:
flex
;
display
:
flex
;
height
:
34px
;
.choseItem
{
.choseItem
{
display
:
inline-block
;
box-sizing
:
border-box
;
padding
:
0
20px
;
height
:
40px
;
line-height
:
40px
;
cursor
:
pointer
;
cursor
:
pointer
;
width
:
120px
;
border
:
1px
solid
#e5e5e5
;
height
:
34px
;
margin-right
:
1px
;
line-height
:
34px
;
border-radius
:
4px
4px
0
0
;
text-align
:
center
;
background
:
#fafafa
;
font-size
:
14px
;
font-weight
:
400
;
color
:
#333333
;
}
}
.active
{
.active
{
color
:
#5850ff
;
color
:
#5850ff
;
background-color
:
#f4f6fc
;
background-color
:
white
;
font-weight
:
600
;
border-bottom
:
none
;
}
}
}
}
.table_box
{
border
:
1px
solid
#e5e5e5
;
box-sizing
:
border-box
;
padding
:
16px
20px
;
border-radius
:
0
4px
4px
4px
;
}
.mb4
{
margin-bottom
:
4px
;
}
.min-text
{
font-size
:
10px
;
color
:
#999
;
font-weight
:
400
;
}
}
}
//
.el-form-item
{
//
.el-form-item
{
//
margin-bottom
:
15px
;
//
margin-bottom
:
15px
;
...
...
src/views/rightsCard/cardDetail.vue
View file @
b4cce47
<
template
>
<
template
>
<div>
<div>
<!-- 领卡用户明细 -->
<!-- 领卡用户明细 -->
<GLDialog
mode=
'big'
:hasFooter=
"false"
:close-on-click-modal=
"false"
bigTitle=
"领卡用户明细"
:visible
.
sync=
"isVisible"
@
close=
"handleReset()"
>
<GLDialog
mode=
"big"
:hasFooter=
"false"
:close-on-click-modal=
"false"
bigTitle=
"领卡用户明细"
:visible
.
sync=
"isVisible"
@
close=
"handleReset()"
>
<div
class=
"contain equity-wrap"
style=
"margin: 20px 0px 20px 0px !important"
>
<div
class=
"contain equity-wrap"
style=
"margin: 20px 0px 20px 0px !important"
>
<glsx-combi-form
ref=
"showSearch"
labelWidth=
"120px"
defaultWidth=
"215px"
:formObj=
"batchListSearch"
:formData=
"userDetailForm"
>
<glsx-combi-form
ref=
"showSearch"
labelWidth=
"120px"
defaultWidth=
"215px"
:formObj=
"batchListSearch"
:formData=
"userDetailForm"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<span
slot=
"footer"
class=
"footer-btns"
></span>
</span>
</glsx-combi-form>
</glsx-combi-form>
<div
style=
"padding:
0 20px 20px"
>
<div
style=
"padding:
0 20px 20px"
>
<div
style=
"float: right; margin-right: 0;margin-bottom:10px;
"
>
<div
style=
"float: right; margin-right: 0; margin-bottom: 10px
"
>
<el-button
plain
size=
"small"
@
click=
"handleReset('reset')"
>
重置
</el-button>
<el-button
plain
size=
"small"
@
click=
"handleReset('reset')"
>
重置
</el-button>
<el-button
size=
"small"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"handleExport"
class=
"selectBtn"
>
导出
</el-button>
<el-button
size=
"small"
@
click=
"handleExport"
class=
"selectBtn"
>
导出
</el-button>
</div>
</div>
<GLTable
ref=
"userDetailTable"
:hasNum=
"false"
@
hook:mounted=
"setTabelHeight"
:searchForm=
"searchForm"
:tableParams=
"batchTableParams"
:getListApi=
"getListApi"
:pageConf=
"batchPageConf"
:noDataImg=
"url"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"userDetailTable"
:hasNum=
"false"
@
hook:mounted=
"setTabelHeight"
:searchForm=
"searchForm"
:tableParams=
"batchTableParams"
:getListApi=
"getListApi"
:pageConf=
"batchPageConf"
:noDataImg=
"url"
:beforeSearchFn=
"beforeSearchFn"
>
<div
slot=
"status"
slot-scope=
"scope"
>
<div
class=
"flex_sc"
slot=
"status"
slot-scope=
"scope"
>
<p
:style=
"
{color:scope.scope.status==1 ? '#2CCA74': '#CCC'}">
{{
setStatusVal
(
scope
.
scope
.
status
)
}}
</p>
<div
class=
"table_point"
:style=
"
{ background: colors[scope.scope.status] }">
</div>
<span
:style=
"
{color:scope.scope.status==1 ? '#2CCA74': '#CCC'}">
{{
setStatusVal
(
scope
.
scope
.
status
)
}}
</span>
</div>
</div>
<!--
<div
slot=
"status"
slot-scope=
"scope"
>
<p
:style=
"
{color:scope.scope.status==1 ? '#2CCA74': '#CCC'}">
{{
setStatusVal
(
scope
.
scope
.
status
)
}}
</p>
</div>
-->
</GLTable>
</GLTable>
</div>
</div>
</div>
</div>
...
@@ -78,17 +81,17 @@ const activeTypeList = [
...
@@ -78,17 +81,17 @@ const activeTypeList = [
{
{
confId
:
12
,
confId
:
12
,
confName
:
'无忧服务'
confName
:
'无忧服务'
},
}
];
]
export
default
{
export
default
{
name
:
'detailDialog'
,
name
:
'detailDialog'
,
data
()
{
data
()
{
return
{
return
{
url
,
url
,
cardClassId
:
''
,
cardClassId
:
''
,
tableData
:
[],
tableData
:
[],
isVisible
:
false
,
isVisible
:
false
,
getListApi
:
this
.
$apis
.
equityApi
.
getcardRecordList
,
getListApi
:
this
.
$apis
.
equityApi
.
getcardRecordList
,
// editRuleUser:{
// editRuleUser:{
// mobile:[
// mobile:[
// {
// {
...
@@ -99,16 +102,16 @@ export default {
...
@@ -99,16 +102,16 @@ export default {
// }
// }
// ]
// ]
// },
// },
batchListSearch
:
{
batchListSearch
:
{
mobile
:
''
,
//手机号
mobile
:
''
,
//手机号
merchantName
:
''
,
//开通门店
merchantName
:
''
,
//开通门店
activeType
:
''
,
//开通方式
activeType
:
''
,
//开通方式
status
:
''
,
// 状态
status
:
''
,
// 状态
activeTime
:
[],
// 开通日期
activeTime
:
[],
// 开通日期
memberType
:
''
memberType
:
''
},
},
searchForm
:
{},
searchForm
:
{},
baseData
:
{
baseData
:
{
activeTypeList
:
[
activeTypeList
:
[
{
{
confId
:
1
,
confId
:
1
,
...
@@ -149,11 +152,11 @@ export default {
...
@@ -149,11 +152,11 @@ export default {
{
{
confId
:
12
,
confId
:
12
,
confName
:
'购买数字化权益赠送'
confName
:
'购买数字化权益赠送'
},
}
],
]
},
},
userDetailForm
:[
userDetailForm
:
[
{
{
label
:
'用户信息'
,
label
:
'用户信息'
,
name
:
'mobile'
,
name
:
'mobile'
,
...
@@ -225,9 +228,9 @@ export default {
...
@@ -225,9 +228,9 @@ export default {
label
:
'开通日期'
,
label
:
'开通日期'
,
name
:
'activeTime'
,
name
:
'activeTime'
,
type
:
'datePicker'
,
type
:
'datePicker'
,
valueFormat
:
'yyyy-MM-dd'
,
valueFormat
:
'yyyy-MM-dd'
,
pickerOptions
:
'beforeRangePickerOptions'
pickerOptions
:
'beforeRangePickerOptions'
}
,
}
],
],
batchTableParams
:
{
batchTableParams
:
{
listName
:
'list'
,
listName
:
'list'
,
...
@@ -242,7 +245,7 @@ export default {
...
@@ -242,7 +245,7 @@ export default {
label
:
'会员类型'
,
label
:
'会员类型'
,
prop
:
'memberType'
,
prop
:
'memberType'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
memberType
==
1
?
'正式会员'
:
'试用会员'
return
cellValue
.
memberType
==
1
?
'正式会员'
:
'试用会员'
}
}
},
},
{
{
...
@@ -257,9 +260,9 @@ export default {
...
@@ -257,9 +260,9 @@ export default {
line
:
1
,
line
:
1
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
// return cellValue.activeTypeDescList || "-"
// return cellValue.activeTypeDescList || "-"
if
(
cellValue
.
activeTypeDescList
&&
Array
.
isArray
(
cellValue
.
activeTypeDescList
)
&&
cellValue
.
activeTypeDescList
.
length
>
0
)
{
if
(
cellValue
.
activeTypeDescList
&&
Array
.
isArray
(
cellValue
.
activeTypeDescList
)
&&
cellValue
.
activeTypeDescList
.
length
>
0
)
{
return
cellValue
.
activeTypeDescList
.
join
(
'+'
)
return
cellValue
.
activeTypeDescList
.
join
(
'+'
)
}
else
{
}
else
{
return
'-'
return
'-'
}
}
}
}
...
@@ -274,45 +277,45 @@ export default {
...
@@ -274,45 +277,45 @@ export default {
prop
:
'activeTime'
,
prop
:
'activeTime'
,
width
:
200
,
width
:
200
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
activeTime
)
{
if
(
cellValue
.
activeTime
)
{
const
dateArr
=
cellValue
.
activeTime
.
split
(
' '
)
const
dateArr
=
cellValue
.
activeTime
.
split
(
' '
)
return
cellValue
.
activeTime
.
split
(
' '
)[
0
]
return
cellValue
.
activeTime
.
split
(
' '
)[
0
]
}
else
{
}
else
{
return
'-'
return
'-'
}
}
}
}
}
}
]
]
},
},
batchPageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
}
batchPageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
colors
:
[
''
,
'#2CCA74'
,
'#999999'
]
}
}
},
},
mounted
()
{
mounted
()
{},
},
methods
:
{
methods
:
{
show
(
row
){
show
(
row
)
{
this
.
isVisible
=
!
this
.
isVisible
this
.
isVisible
=
!
this
.
isVisible
this
.
cardClassId
=
row
.
id
this
.
cardClassId
=
row
.
id
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
userDetailTable
.
refreshTable
()
this
.
$refs
.
userDetailTable
.
refreshTable
()
})
})
},
},
setStatusVal
(
status
){
setStatusVal
(
status
)
{
return
{
1
:
'生效中'
,
2
:
'已失效'
}[
status
]
return
{
1
:
'生效中'
,
2
:
'已失效'
}[
status
]
},
},
setTabelHeight
()
{
setTabelHeight
()
{
this
.
$refs
.
userDetailTable
.
tableHeightValues
=
'328'
this
.
$refs
.
userDetailTable
.
tableHeightValues
=
'328'
},
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
searchForm
=
{
...
this
.
setParams
()
}
this
.
searchForm
=
{
...
this
.
setParams
()
}
console
.
log
(
this
.
searchForm
,
this
.
batchListSearch
,
'参数'
)
console
.
log
(
this
.
searchForm
,
this
.
batchListSearch
,
'参数'
)
resolve
()
resolve
()
})
})
},
},
setParams
(){
setParams
()
{
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
batchListSearch
))
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
batchListSearch
))
if
(
Array
.
isArray
(
params
.
activeTime
)
&&
params
.
activeTime
.
length
>
0
)
{
if
(
Array
.
isArray
(
params
.
activeTime
)
&&
params
.
activeTime
.
length
>
0
)
{
params
.
startTime
=
params
.
activeTime
[
0
]
+
' 00:00:00'
params
.
startTime
=
params
.
activeTime
[
0
]
+
' 00:00:00'
params
.
endTime
=
params
.
activeTime
[
1
]
+
' 23:59:59'
params
.
endTime
=
params
.
activeTime
[
1
]
+
' 23:59:59'
}
}
...
@@ -322,10 +325,10 @@ export default {
...
@@ -322,10 +325,10 @@ export default {
delete
params
.
activeTime
delete
params
.
activeTime
delete
params
.
mobile
delete
params
.
mobile
console
.
log
(
params
)
console
.
log
(
params
)
return
params
;
return
params
},
},
handleExport
(){
handleExport
()
{
const
parmas
=
{
...
this
.
setParams
()
}
const
parmas
=
{
...
this
.
setParams
()
}
this
.
$apis
.
equityApi
.
exportcardRecordList
(
parmas
).
then
(({
code
,
data
,
message
})
=>
{
this
.
$apis
.
equityApi
.
exportcardRecordList
(
parmas
).
then
(({
code
,
data
,
message
})
=>
{
if
(
code
==
0
)
{
if
(
code
==
0
)
{
var
a
=
document
.
createElement
(
'a'
)
var
a
=
document
.
createElement
(
'a'
)
...
@@ -339,19 +342,19 @@ export default {
...
@@ -339,19 +342,19 @@ export default {
}
}
})
})
},
},
handleSearch
(){
handleSearch
()
{
this
.
$refs
.
userDetailTable
.
refreshTable
()
this
.
$refs
.
userDetailTable
.
refreshTable
()
},
},
handleReset
(
type
){
handleReset
(
type
)
{
this
.
batchListSearch
=
{
this
.
batchListSearch
=
{
mobile
:
''
,
mobile
:
''
,
merchantName
:
''
,
merchantName
:
''
,
activeType
:
''
,
activeType
:
''
,
status
:
''
,
status
:
''
,
activeTime
:
[],
activeTime
:
[],
memberType
:
''
memberType
:
''
}
}
if
(
type
===
'reset'
)
{
if
(
type
===
'reset'
)
{
this
.
handleSearch
()
this
.
handleSearch
()
}
}
}
}
...
@@ -359,15 +362,15 @@ export default {
...
@@ -359,15 +362,15 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
/
deep
/
.user-detail-dialog
{
/
deep
/
.user-detail-dialog
{
.el-form-item{
.el-form-item
{
margin-right
:
0
;
margin-right
:
0
;
}
}
.el-input--small
.el-input__inner
{
.el-input--small
.el-input__inner
{
width
:
215px
;
width
:
215px
;
}
}
.el-table__row
{
.el-table__row
{
.el-table__cell{
.el-table__cell
{
padding
:
9px
0
;
padding
:
9px
0
;
}
}
}
}
...
...
src/views/rightsCard/index.vue
View file @
b4cce47
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
<div
slot=
"recipientCount"
slot-scope=
"scope"
>
<div
slot=
"recipientCount"
slot-scope=
"scope"
>
<p
class=
"cursor-pointer"
style=
"color: #5850ff"
@
click=
"handleDetail(scope.scope)"
>
{{
scope
.
scope
.
recipientCount
}}
</p>
<p
class=
"cursor-pointer"
style=
"color: #5850ff"
@
click=
"handleDetail(scope.scope)"
>
{{
scope
.
scope
.
recipientCount
}}
</p>
</div>
</div>
<div
class=
"flex_sc"
slot=
"colorStatus"
>
<div
class=
"table_point"
:style=
"
{ background: '#2CCA74' }">
</div>
<span>
上架
</span>
</div>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<!--
<GLButton
fn=
"权益卡管理编辑"
type=
"text"
@
click=
"edit(scope.scope)"
class=
"tableBtn"
size=
"small"
>
编辑
</GLButton>
<!--
<GLButton
fn=
"权益卡管理编辑"
type=
"text"
@
click=
"edit(scope.scope)"
class=
"tableBtn"
size=
"small"
>
编辑
</GLButton>
<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"
:disabled=
"scope.scope.tryAble == 0 ? true : false"
@
click=
"extension(scope.scope)"
class=
"tableBtn"
size=
"small"
>
推广
</el-button>
...
@@ -46,6 +50,7 @@
...
@@ -46,6 +50,7 @@
</GLDialog>
</GLDialog>
<!-- 新建权益卡弹窗 -->
<!-- 新建权益卡弹窗 -->
<GLDialog
mode=
"big"
bigTitle=
"基本信息"
v-if=
"dialogVisible"
:visible
.
sync=
"dialogVisible"
:before-close=
"closeDialog"
>
<GLDialog
mode=
"big"
bigTitle=
"基本信息"
v-if=
"dialogVisible"
:visible
.
sync=
"dialogVisible"
:before-close=
"closeDialog"
>
<div
class=
"gl-form-page"
>
<el-form
class=
"dialogForm"
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"154px"
>
<el-form
class=
"dialogForm"
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"154px"
>
<!-- 基础表单 -->
<!-- 基础表单 -->
<div
class=
"form"
>
<div
class=
"form"
>
...
@@ -97,9 +102,10 @@
...
@@ -97,9 +102,10 @@
</el-form-item>
</el-form-item>
</div>
</div>
</el-form>
</el-form>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"resetForm('ruleForm')"
>
取消
</el-button>
<el-button
size=
"small"
@
click=
"resetForm('ruleForm')"
>
取消
</el-button>
<el-button
size=
"small"
:disabled=
"submitBtn"
type=
"primary"
@
click=
"submitForm('ruleForm')"
>
提交
</el-button>
<el-button
size=
"small"
:disabled=
"submitBtn"
type=
"primary"
@
click=
"submitForm('ruleForm')"
>
提交
</el-button>
</span>
</span>
</GLDialog>
</GLDialog>
<detail-dialog
ref=
"detailDetailRef"
></detail-dialog>
<detail-dialog
ref=
"detailDetailRef"
></detail-dialog>
...
@@ -265,20 +271,20 @@ export default {
...
@@ -265,20 +271,20 @@ export default {
{
{
label
:
'权益卡名称'
,
label
:
'权益卡名称'
,
prop
:
'cardClassName'
,
prop
:
'cardClassName'
,
width
:
200
,
width
:
200
,
line
:
1
line
:
1
},
},
{
{
label
:
'门店名称'
,
label
:
'门店名称'
,
prop
:
'merchantName'
,
prop
:
'merchantName'
,
width
:
200
,
width
:
200
,
line
:
1
line
:
1
},
},
{
{
label
:
'有效期'
,
label
:
'有效期'
,
prop
:
'effectiveType'
,
prop
:
'effectiveType'
,
width
:
200
,
width
:
200
,
line
:
1
,
line
:
1
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
effectiveType
==
1
)
{
if
(
cellValue
.
effectiveType
==
1
)
{
return
'长期有效'
return
'长期有效'
...
@@ -290,7 +296,7 @@ export default {
...
@@ -290,7 +296,7 @@ export default {
{
{
label
:
'售价'
,
label
:
'售价'
,
prop
:
'price'
,
prop
:
'price'
,
align
:
'right'
,
align
:
'right'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
price
==
null
)
{
if
(
cellValue
.
price
==
null
)
{
return
'39.9'
+
'元'
return
'39.9'
+
'元'
...
@@ -307,9 +313,10 @@ export default {
...
@@ -307,9 +313,10 @@ export default {
{
{
label
:
'状态'
,
label
:
'状态'
,
prop
:
'status'
,
prop
:
'status'
,
formatter
:
cellValue
=>
{
addHtml
:
'colorStatus'
return
'正常'
// formatter: cellValue => {
}
// return '正常'
// }
},
},
{
{
label
:
'创建时间'
,
label
:
'创建时间'
,
...
@@ -321,7 +328,7 @@ export default {
...
@@ -321,7 +328,7 @@ export default {
},
},
{
{
label
:
'操作'
,
label
:
'操作'
,
width
:
150
,
width
:
150
,
fixed
:
'right'
,
fixed
:
'right'
,
addHtml
:
'auth-button'
addHtml
:
'auth-button'
}
}
...
@@ -775,7 +782,13 @@ export default {
...
@@ -775,7 +782,13 @@ export default {
cursor
:
pointer
;
cursor
:
pointer
;
margin-right
:
20px
;
margin-right
:
20px
;
}
}
.el-button
+
.el-button
{
.el-button
+
.el-button
{
margin-left
:
8px
!important
;
margin-left
:
8px
!important
;
}
}
.gl-form-page
.form
.el-input-number
{
width
:
136px
;
.el-input
{
width
:
100%
;
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/sale/index.vue
View file @
b4cce47
<
template
>
<
template
>
<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=
"85px"
label-position=
"right"
>
<el-row
style=
"display: flex; align-items: center;margin-bottom:2px"
>
<el-form-item
label=
"售后编号"
size=
"small"
>
<el-input
v-model=
"searchForm.refundCode"
placeholder=
"请输入"
size=
"small"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"订单编号"
size=
"small"
>
<el-input
v-model=
"searchForm.orderCode"
placeholder=
"请输入"
size=
"small"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"商品名称"
size=
"small"
>
<el-input
v-model=
"searchForm.productName"
placeholder=
"请输入"
size=
"small"
clearable
></el-input>
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"门店名称"
size=
"small"
>
<el-input
v-model=
"searchForm.merchantName"
placeholder=
"请输入"
size=
"small"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"用户信息"
size=
"small"
>
<el-input
v-model=
"searchForm.userInfo"
placeholder=
"请输入姓名或手机号"
size=
"small"
clearable
></el-input>
</el-form-item>
<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-form-item>
<el-form-item
size=
"small"
class=
"fr-mr0"
>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-row>
</el-form>
-->
<GLCombiForm
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"choseRow"
>
<div
class=
"out_wrap"
>
<div
class=
"choseRow flex_sc"
>
<div
class=
"choseItem"
:class=
"
{ active: currentIndex == index }" v-for="(item, index) in choseList" :key="index" @click="tabClick(index)">
<div
class=
"choseItem"
:class=
"
{ active: currentIndex == index }" v-for="(item, index) in choseList" :key="index" @click="tabClick(index)">
{{
item
}}
{{
item
}}
</div>
</div>
</div>
</div>
<!-- :noDataImg="url" -->
</div>
<div
class=
"table_border"
>
<GLTable
v-if=
"flag"
:noDataImg=
"url"
ref=
"table"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
v-if=
"flag"
:noDataImg=
"url"
ref=
"table"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<span
slot=
"desc"
slot-scope=
"scope"
>
<span
slot=
"desc"
slot-scope=
"scope"
>
<div
class=
"refund-box"
>
<el-popover
placement=
"bottom"
width=
"240"
trigger=
"click"
>
<img
:src=
"scope.scope.img"
style=
"width: 200px; height: 200px"
/>
<img
:src=
"scope.scope.img"
style=
"width: 36px; height: 36px"
slot=
"reference"
/>
</el-popover>
<!--
<div
class=
"flex_sc refund-box"
>
<div
class=
"refund-img-box"
>
<div
class=
"refund-img-box"
>
<!-- getHttpsImgUrl(scope.scope.img) -->
<img
:src=
"scope.scope.img"
alt=
""
/>
<img
:src=
"scope.scope.img"
alt=
""
/>
</div>
</div>
<div>
{{
scope
.
scope
.
reason
}}
</div>
</div>
-->
</div>
</span>
<span
slot=
"number"
slot-scope=
"scope"
>
<div
class=
"refund-box"
>
{{
scope
.
scope
.
refundCode
}}
</div>
</span>
</span>
<span
slot=
"goodMsg"
slot-scope=
"scope"
>
<span
slot=
"goodMsg"
slot-scope=
"scope"
>
<div
class=
"refund-box"
>
<div
v-if=
"scope.scope.brandName || scope.scope.productName"
class=
"refund-box"
>
<div
class=
"mb10"
>
{{
scope
.
scope
.
brandName
}}
</div>
<div
class=
"mb4"
>
{{
scope
.
scope
.
brandName
}}
</div>
<div>
{{
scope
.
scope
.
productName
}}
</div>
<div
class=
"min-text"
>
{{
scope
.
scope
.
productName
}}
</div>
</div>
</span>
<span
slot=
"priceAmount"
slot-scope=
"scope"
>
<div
class=
"refund-box"
>
<div
class=
"mb10"
>
{{
scope
.
scope
.
orderPrices
}}
元
</div>
<div>
{{
scope
.
scope
.
goodsQuality
}}
张
</div>
</div>
</div>
<div
v-else
>
--
</div>
</span>
</span>
<span
slot=
"userInfo"
slot-scope=
"scope"
>
<span
slot=
"userInfo"
slot-scope=
"scope"
>
<div
>
{{
scope
.
scope
.
accountName
}}
</div>
<div
class=
"mb4"
>
{{
scope
.
scope
.
accountName
}}
</div>
<div
>
{{
scope
.
scope
.
mobile
}}
</div>
<div
class=
"min-text"
>
{{
scope
.
scope
.
mobile
}}
</div>
</span>
</span>
<div
class=
"flex_sc"
slot=
"colorStatus"
slot-scope=
"scope"
>
<div
class=
"table_point"
:style=
"
{ background: colors[scope.scope.refundStatus] }">
</div>
<span>
{{
refundStatusList
[
scope
.
scope
.
refundStatus
]
}}
</span>
</div>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<GLButton
fn=
"查看售后详情"
type=
"text"
@
click=
"jump(scope.scope, 'sale')"
>
查看详情
</GLButton>
<GLButton
fn=
"查看售后详情"
type=
"text"
@
click=
"jump(scope.scope, 'sale')"
>
查看详情
</GLButton>
</span>
</span>
<span
slot=
"orderNum"
slot-scope=
"scope"
>
<div
class=
"refund-box"
>
<div
class=
"refund-title"
>
{{
scope
.
scope
.
orderCode
}}
</div>
</div>
</span>
<span
slot=
"stores"
slot-scope=
"scope"
>
<div
class=
"refund-box"
>
<div
class=
"refund-title"
>
{{
scope
.
scope
.
merchantName
}}
</div>
</div>
</span>
</GLTable>
</GLTable>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
// type='text/ecmascript-6'
// type='text/ecmascript-6'
...
@@ -162,57 +125,73 @@ export default {
...
@@ -162,57 +125,73 @@ export default {
getListApi
:
this
.
$apis
.
orderApi
.
getRefundList
,
getListApi
:
this
.
$apis
.
orderApi
.
getRefundList
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'售后描述'
,
label
:
'售后图片'
,
minWidth
:
'150'
,
width
:
100
,
align
:
'left'
,
addHtml
:
'desc'
addHtml
:
'desc'
},
},
{
{
label
:
'售后描述'
,
width
:
300
,
line
:
1
,
prop
:
'reason'
},
{
label
:
'售后编号'
,
label
:
'售后编号'
,
minWidth
:
'300
'
,
prop
:
'refundCode
'
,
addHtml
:
'number'
width
:
300
},
},
{
{
label
:
'商品信息'
,
label
:
'商品信息'
,
minWidth
:
'150'
,
minWidth
:
200
,
addHtml
:
'goodMsg'
addHtml
:
'goodMsg'
},
},
{
{
label
:
'订单编号'
,
label
:
'订单编号'
,
minWidth
:
'300'
,
width
:
250
,
addHtml
:
'orderNum'
prop
:
'orderCode'
},
{
label
:
'价格/元'
,
width
:
110
,
align
:
'right'
,
prop
:
'orderPrices'
},
},
{
{
label
:
'价格/数量'
,
label
:
'数量/张'
,
minWidth
:
'300'
,
width
:
110
,
addHtml
:
'priceAmount'
align
:
'right'
,
prop
:
'goodsQuality'
},
},
{
{
label
:
'订单渠道'
,
label
:
'订单渠道'
,
minWidth
:
'300'
,
width
:
250
,
addHtml
:
'stores'
line
:
1
,
prop
:
'merchantName'
},
},
{
{
label
:
'实收金额'
,
label
:
'实收金额'
,
width
:
120
,
align
:
'right'
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
`
${
cell
.
orderPrices
}
元`
return
`
${
cell
.
orderPrices
}
元`
}
}
},
},
{
{
label
:
'售后状态'
,
label
:
'售后状态'
,
formatter
:
cell
=>
{
width
:
120
,
const
refundStatusList
=
{
addHtml
:
'colorStatus'
1
:
'售后中'
,
// formatter: cell => {
2
:
'已拒绝'
,
// const refundStatusList = {
3
:
'退款成功'
// 1: '售后中',
}
// 2: '已拒绝',
return
`
${
refundStatusList
[
cell
.
refundStatus
]}
`
// 3: '退款成功'
}
// }
// return `${refundStatusList[cell.refundStatus]}`
// }
},
},
{
{
label
:
'售后时间'
,
label
:
'售后时间'
,
minWidth
:
'100'
,
width
:
180
,
// sortable: true,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
cell
.
createDate
?
new
Date
(
cell
.
createDate
).
format
(
'yyyy-MM-dd hh:mm:ss'
)
:
'- -'
return
cell
.
createDate
?
new
Date
(
cell
.
createDate
).
format
(
'yyyy-MM-dd hh:mm:ss'
)
:
'- -'
}
}
...
@@ -229,6 +208,16 @@ export default {
...
@@ -229,6 +208,16 @@ export default {
addHtml
:
'auth-button'
addHtml
:
'auth-button'
}
}
]
]
},
refundStatusList
:
{
1
:
'售后中'
,
2
:
'已拒绝'
,
3
:
'退款成功'
},
colors
:
{
1
:
'#5850FF'
,
2
:
'#999999'
,
3
:
'#2CCA74'
}
}
}
}
},
},
...
@@ -344,37 +333,65 @@ export default {
...
@@ -344,37 +333,65 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.equity-wrap
.contain
{
.equity-wrap
.contain
{
padding
:
20px
;
.out_wrap
{
position
:
relative
;
z-index
:
100
;
margin-bottom
:
-1px
;
}
.choseRow
{
.choseRow
{
display
:
flex
;
margin-top
:
5px
;
height
:
34px
;
.choseItem
{
.choseItem
{
width
:
120px
;
display
:
inline-block
;
height
:
34px
;
box-sizing
:
border-box
;
line-height
:
34px
;
padding
:
0
20px
;
text-align
:
center
;
height
:
40px
;
font-size
:
14px
;
line-height
:
40px
;
font-weight
:
400
;
color
:
#333333
;
cursor
:
pointer
;
cursor
:
pointer
;
border
:
1px
solid
#e5e5e5
;
margin-right
:
1px
;
border-radius
:
4px
4px
0
0
;
background
:
#fafafa
;
}
}
.active
{
.active
{
color
:
#5850ff
;
color
:
#5850ff
;
background-color
:
#f4f6fc
;
background-color
:
white
;
font-weight
:
600
;
border-bottom
:
none
;
}
}
}
}
.refund-img-box
{
.refund-img-box
{
width
:
100px
;
width
:
36px
;
height
:
100px
;
height
:
36px
;
margin-right
:
8px
;
>
img
{
>
img
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
}
}
margin-bottom
:
10px
;
}
}
.refund-title
{
.refund-title
{
margin-bottom
:
10px
;
margin-bottom
:
10px
;
}
}
.table_border
{
border
:
1px
solid
#e5e5e5
;
box-sizing
:
border-box
;
padding
:
16px
20px
;
border-radius
:
0
4px
4px
4px
;
}
.hide-text
{
width
:
156px
;
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
cursor
:
pointer
;
}
.mb4
{
margin-bottom
:
4px
;
}
.min-text
{
font-size
:
10px
;
color
:
#999
;
font-weight
:
400
;
}
}
}
.el-form-item
{
.el-form-item
{
margin-bottom
:
15px
;
margin-bottom
:
15px
;
...
...
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