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 6ccef2ea
authored
Dec 02, 2021
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/glsx-web/sso-equity
2 parents
b3d3712e
0c2fc005
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
268 additions
and
84 deletions
src/assets/css/public.scss
src/views/financial/index.vue
src/views/gas/index.vue
src/views/goods/index.vue
src/views/sale/detail.vue
src/views/sale/index.vue
src/assets/css/public.scss
View file @
6ccef2e
.equity-wrap
.contain
{
background
:
#FFFFFF
;
margin
:
2
0px
20px
20px
40px
;
margin
:
0px
20px
20px
40px
;
padding
:
20px
;
box-shadow
:
0
1px
5px
0
rgba
(
38
,
38
,
38
,
0
.10
);
}
...
...
src/views/financial/index.vue
View file @
6ccef2e
...
...
@@ -8,15 +8,18 @@
<div
class=
"balanceWrap"
>
<span>
账户余额
</span>
<div>
<span>
{{
price
}}
</span>
<span>
{{
price
}}
</span>
<span
class=
"yuan"
>
元
</span>
</div>
</div>
<el-button
class=
"special-btn"
>
刷新余额
</el-button>
<div
class=
"statusBtnWrap"
>
<el-button
class=
"refreshBtn"
v-if=
"loading"
:loading=
"loading"
></el-button>
<el-button
class=
"special-btn"
@
click=
"getHwAccount(1)"
v-else
>
刷新余额
</el-button>
<!--
<div
class=
"statusBtnWrap"
>
<div>
刷新状态
</div>
<el-button
icon=
"el-icon-refresh"
class=
"refreshBtn"
></el-button>
</div>
</div>
-->
</div>
<el-form
:inline=
"true"
style=
"width: 100%"
:model=
"searchForm"
label-width=
"70px"
label-position=
"right"
>
<el-row
style=
"display: flex; align-items: center"
>
...
...
@@ -70,6 +73,7 @@ export default {
mixins
:
[
orderMixin
,
searchMixin
],
data
()
{
return
{
loading
:
false
,
size
:
'small'
,
pickerOptions
:
{
disabledDate
(
time
)
{
...
...
@@ -163,7 +167,7 @@ export default {
{
label
:
'下单时间'
,
prop
:
'orderDate'
,
width
:
95
,
width
:
95
,
formatter
(
cell
)
{
return
cell
.
orderDate
?
new
Date
(
cell
.
orderDate
).
format
(
'yyyy-MM-dd hh:mm:ss'
)
:
'- -'
}
...
...
@@ -189,10 +193,21 @@ export default {
resolve
()
})
},
getHwAccount
()
{
this
.
$apis
.
orderApi
.
getHwAccount
().
then
(
res
=>
{
this
.
price
=
res
})
getHwAccount
(
type
)
{
if
(
type
)
{
// this.price=0
this
.
loading
=
true
}
this
.
$apis
.
orderApi
.
getHwAccount
()
.
then
(
res
=>
{
this
.
loading
=
false
this
.
price
=
res
})
.
catch
(
err
=>
{
this
.
loading
=
false
console
.
log
(
err
)
})
},
exportExcel
()
{
this
.
$apis
.
orderApi
.
exportBalanceList
(
this
.
searchObj
).
then
(({
code
,
data
,
message
})
=>
{
...
...
@@ -262,16 +277,13 @@ export default {
width
:
100%
;
align-items
:
center
;
margin-bottom
:
10px
;
.imgWrap{
.imgWrap
{
width
:
52px
;
height
:
52px
;
}
.special-btn
{
padding
:
8px
15px
;
}
.balanceWrap
{
margin-left
:
10px
;
margin-left
:
10px
;
>
span
{
height
:
20px
;
font-size
:
14px
;
...
...
@@ -280,43 +292,48 @@ export default {
line-height
:
20px
;
}
>
div
{
height
:
30px
;
font-size
:
22px
;
font-weight
:
500
;
color
:
#333333
;
line-height
:
30px
;
.yuan{
height
:
20px
;
font-size
:
14px
;
.yuan
{
height
:
20px
;
font-size
:
14px
;
font-weight
:
500
;
color
:
#333333
;
line-height
:
20px
;
font-weight
:
500
;
color
:
#333333
;
line-height
:
20px
;
}
}
}
.special-btn
{
margin-left
:
32px
;
.special-btn
{
margin-left
:
32px
;
padding
:
8px
20px
;
}
.statusBtnWrap
{
text-align
:
center
;
margin-left
:
30px
;
padding-bottom
:
20px
;
.refreshBtn{
width
:
88px
;
padding
:
8px
20px
;
}
>
div
{
height
:
20px
;
font-size
:
14px
;
font-weight
:
400
;
color
:
#000000
;
line-height
:
20px
;
}
.refreshBtn
{
margin-left
:
32px
;
width
:
88px
;
padding
:
8px
20px
;
}
//
.statusBtnWrap
{
//
text-align
:
center
;
//
margin-left
:
30px
;
//
padding-bottom
:
20px
;
//
.refreshBtn
{
//
width
:
88px
;
//
padding
:
8px
20px
;
//
}
//
>
div
{
//
height
:
20px
;
//
font-size
:
14px
;
//
font-weight
:
400
;
//
color
:
#000000
;
//
line-height
:
20px
;
//
}
//
}
}
}
</
style
>
src/views/gas/index.vue
View file @
6ccef2e
<
template
>
<div
class=
"container"
>
<
!--
<
div
class=
"container"
>
<div
class=
"box"
>
<div
class=
"layout"
>
<div
class=
"search-box"
>
...
...
@@ -43,32 +43,80 @@
</div>
</div>
</div>
</div>
</div>
-->
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap contain"
>
<el-form
:inline=
"true"
style=
"width: 100%"
:model=
"searchForm"
label-width=
"90px"
label-position=
"right"
>
<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-form-item>
<el-form-item
size=
"small"
label=
"加油供应商"
>
<el-select
size=
"small"
:value=
"'团油'"
placeholder=
"请选择"
>
<!--
<el-option
v-for=
"item in appereanceList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
-->
<el-option
label=
"团油"
value=
"团油"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"加油订单号"
>
<el-input
v-model=
"searchForm.orderId"
placeholder=
"请输入"
size=
"small"
></el-input>
</el-form-item>
</el-row>
<el-row
>
<el-form-item
label=
"加油用户"
>
<el-input
v-model=
"searchForm.phone"
placeholder=
"请输入"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
label=
"订单状态"
>
<el-select
v-model=
"searchForm.orderStatus"
placeholder=
"请选择"
size=
"small"
>
<el-option
v-for=
"item in statusList"
:key=
"item.id"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item
size=
"small"
style=
"float: right"
>
<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>
<GLTable
v-if=
"flag"
ref=
"table"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
></GLTable>
</div>
</div>
</
template
>
<
script
type=
'text/ecmascript-6'
>
import
{
searchMixin
}
from
'@/mixins'
//
import { searchMixin } from '@/mixins'
export
default
{
name
:
''
,
mixins
:
[
searchMixin
],
//
mixins: [searchMixin],
data
()
{
return
{
size
:
'small'
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
}
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
flag
:
true
,
searchForm
:{},
searchFormTable
:
{},
statusList
:
[
{
id
:
1
,
label
:
'已支付'
,
value
:
1
},
{
id
:
2
,
label
:
'退款申请中'
,
value
:
4
},
{
id
:
3
,
label
:
'已退款'
,
value
:
5
},
{
id
:
4
,
label
:
'退款失败'
,
value
:
6
}
...
...
@@ -80,11 +128,11 @@ export default {
{
label
:
'加油时间'
,
prop
:
'orderTime'
,
minWidth
:
'200
'
width
:
'95
'
},
{
label
:
'供应商'
,
minWidth
:
'200'
,
formatter
:
cell
=>
{
return
'团油'
}
...
...
@@ -92,62 +140,108 @@ export default {
{
label
:
'加油油站'
,
prop
:
'gasName'
,
minWidth
:
'20
0'
width
:
'15
0'
},
{
label
:
'油号'
,
minWidth
:
'200'
,
prop
:
'oilName'
},
{
label
:
'加油升数(L)'
,
prop
:
'litre'
,
minWidth
:
'2
00'
width
:
'1
00'
},
{
label
:
'实付金额'
,
prop
:
'amountPay'
,
minWidth
:
'2
00'
width
:
'1
00'
},
{
label
:
'订单总额'
,
prop
:
'amountGun'
,
minWidth
:
'2
00'
width
:
'1
00'
},
{
label
:
'优惠金额'
,
prop
:
'amountDiscounts'
,
minWidth
:
'2
00'
width
:
'1
00'
},
{
label
:
'订单状态'
,
prop
:
'orderStatusName'
,
minWidth
:
'2
00'
width
:
'1
00'
},
{
label
:
'用户信息'
,
prop
:
'phone'
,
minWidth
:
'20
0'
width
:
'12
0'
},
{
label
:
'供应商订单号'
,
prop
:
'orderId'
,
minWidth
:
'200'
width
:
'220'
}
]
}
}
},
watch
:
{
date
(
n
)
{
let
[
beginTime
,
endTime
]
=
n
this
.
searchObj
.
beginTime
=
beginTime
||
''
this
.
searchObj
.
endTime
=
endTime
||
''
}
},
//
watch: {
//
date(n) {
//
let [beginTime, endTime] = n
//
this.searchObj.beginTime = beginTime || ''
//
this.searchObj.endTime = endTime || ''
//
}
//
},
mounted
()
{},
methods
:
{}
methods
:
{
beforeSearchFn
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
searchFormTable
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
this
.
searchFormTable
.
daterange
)
{
this
.
searchFormTable
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
this
.
searchFormTable
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
}
else
{
if
(
this
.
searchFormTable
.
beginTime
)
delete
this
.
searchFormTable
.
beginTime
&&
delete
this
.
searchFormTable
.
endTime
}
delete
this
.
searchFormTable
.
daterange
resolve
()
})
},
setTableFinishFun
()
{
// 接收到的数据为空
if
(
!
this
.
$refs
.
table
.
data
.
length
)
{
this
.
$refs
.
table
.
setTableHeightFun
()
}
},
handleReset
()
{
this
.
flag
=
false
this
.
searchForm
=
{}
this
.
$nextTick
(()
=>
{
this
.
flag
=
true
})
},
handleSearch
()
{
this
.
$refs
.
table
.
refreshTable
()
},
}
}
</
script
>
<
style
src=
"@a/css/tao.css/"
></
style
>
<
style
lang=
"scss"
scoped
>
.el-form-item
{
margin-bottom
:
15px
;
}
.el-range-editor.is-active
,
.el-range-editor.is-active
:hover
{
border-color
:
#5850ff
;
width
:
215px
;
}
.el-range-editor--small.el-input__inner
{
width
:
215px
;
}
/
deep
/
.contain
.el-input--small
.el-input__inner
{
width
:
215px
;
}
</
style
>
src/views/goods/index.vue
View file @
6ccef2e
...
...
@@ -352,6 +352,7 @@ export default {
.addGood
{
margin-left
:
40px
;
padding
:
8px
16px
;
margin-bottom
:
20px
;
}
/
deep
/
.contain
.el-input--small
.el-input__inner
{
width
:
215px
;
...
...
src/views/sale/detail.vue
View file @
6ccef2e
<
template
>
<div
class=
"layout"
>
<div
class=
"box
"
>
<div
class=
"box
topBox"
>
<!--
<back
/>
-->
<el-button
type=
"primary"
class=
"backBtn"
size=
"small"
@
click=
"$router.go(-1)"
>
返回
</el-button>
<div
class=
"grid"
>
<template
v-for=
"(item,index) in detailInfoObj"
>
<div
class=
"grid-item"
class=
"grid-item
top-grid-item
"
:key=
"index"
>
<template
v-for=
"(i,ind) in item.list"
>
...
...
@@ -13,8 +14,8 @@
class=
"item"
:key=
"ind"
>
<div
class=
"label"
>
{{
i
.
label
}}
:
</div>
<div
class=
"value"
>
<div
class=
"label"
:class=
"
{firstRow:i.class}"
>
{{
i
.
label
}}
:
</div>
<div
class=
"value"
:class=
"
{firstRow:i.class}"
>
<template
v-if=
"i.format"
>
{{
i
.
format
(
detailInfo
)
}}
</
template
>
...
...
@@ -28,7 +29,8 @@
</template>
</div>
</div>
<div
class=
"box"
>
<div
class=
"box"
id=
"bottomBox"
>
<div
class=
"grayRow"
></div>
<div
class=
"grid"
>
<div
class=
"grid-item"
>
<div
class=
"sub-title"
>
售后描述
</div>
...
...
@@ -53,7 +55,7 @@
</el-image>
<div
class=
"info"
>
<div
class=
"item"
>
<div
class=
"label"
>
品牌:
</div>
<div
class=
"label"
>
商品
品牌:
</div>
<div
class=
"value"
>
{{detailInfo.brandName}}
</div>
</div>
<div
class=
"item"
>
...
...
@@ -69,21 +71,21 @@
</div>
<div
class=
"grid-item"
>
<div
class=
"sub-title"
>
购买信息
</div>
<div
class=
"item"
>
<div
class=
"label"
>
商品销售价
:
</div>
<div
class=
"value"
>
{{detailInfo.order
Prices
}}
</div>
<div
class=
"item"
>
<div
class=
"label"
>
订单编号
:
</div>
<div
class=
"value"
>
{{detailInfo.order
Code
}}
</div>
</div>
<div
class=
"item"
>
<div
class=
"label"
>
实付金额
:
</div>
<div
class=
"value"
>
{{detailInfo.orderPrices}}
</div>
<div
class=
"item"
>
<div
class=
"label"
>
购买数量
:
</div>
<div
class=
"value"
>
1张
</div>
</div>
<div
class=
"item"
>
<div
class=
"label"
>
购买数量
:
</div>
<div
class=
"value
"
>
1
</div>
<div
class=
"label"
>
商品销售价
:
</div>
<div
class=
"value
money"
>
{{detailInfo.orderPrices}}元
</div>
</div>
<div
class=
"item"
>
<div
class=
"label"
>
订单编号
:
</div>
<div
class=
"value
"
>
{{detailInfo.orderCode}}
</div>
<div
class=
"label"
>
实付金额
:
</div>
<div
class=
"value
money"
>
{{detailInfo.orderPrices}}元
</div>
</div>
</div>
</div>
...
...
@@ -102,7 +104,8 @@ export default {
list
:
[
{
label
:
'售后编号'
,
key
:
'refundCode'
key
:
'refundCode'
,
class
:
1
},
{
label
:
'申请人'
,
...
...
@@ -114,7 +117,8 @@ export default {
list
:
[
{
label
:
'订单渠道'
,
key
:
'channelName'
key
:
'channelName'
,
class
:
1
},
{
label
:
'申请时间'
,
...
...
@@ -128,6 +132,7 @@ export default {
list
:
[
{
label
:
'售后状态'
,
class
:
1
,
format
(
cell
)
{
const
refundStatusList
=
{
1
:
'售后中'
,
...
...
@@ -145,6 +150,11 @@ export default {
mounted
()
{
let
params
=
{
orderCode
:
this
.
$route
.
query
.
orderCode
}
this
.
getDetail
(
params
)
this
.
$nextTick
(()
=>
{
let
clientHeight
=
document
.
documentElement
.
clientHeight
let
offsettop
=
document
.
getElementById
(
'bottomBox'
).
offsetTop
document
.
getElementById
(
'bottomBox'
).
style
.
minHeight
=
clientHeight
-
offsettop
-
120
+
'px'
})
},
methods
:
{
// jump(){
...
...
@@ -162,7 +172,7 @@ export default {
}
</
script
>
<
style
src=
"@a/css/tao.css"
></
style
>
<
style
scoped
>
<
style
lang=
"scss"
scoped
>
.flex
.info
{
margin-left
:
10px
;
width
:
calc
(
100%
-
110px
);
...
...
@@ -175,4 +185,66 @@ export default {
.layout
.box
.grid
.grid-item
.item
{
align-items
:
center
;
}
.layout
{
margin
:
0
20px
0
40px
;
width
:
auto
;
.topBox{
padding-top
:
32px
!important
;
}
.box
{
position
:
relative
;
padding-top
:
20px
;
padding-left
:
52px
;
.top-grid-item{
.item{
font-size
:
14px
;
font-weight
:
400
;
color
:
#333333
;
.label{
width
:
71px
;
text-align
:
right
;
}
.firstRow
{
margin-bottom
:
14px
;
}
}
}
.grid-item
{
.item{
font-size
:
14px
;
font-weight
:
400
;
color
:
#333333
;
.money{
color
:
#EB4E4E
;
}
}
}
.backBtn
{
position
:
absolute
;
right
:
20px
;
top
:
20px
;
}
.grayRow
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
background-color
:
#F4F6FC
;
z-index
:
0
;
height
:
54px
;
}
.sub-title
{
position
:
relative
;
z-index
:
1
;
margin-bottom
:
35px
!important
;
font-size
:
14px
;
font-weight
:
500
;
color
:
#333333
;
}
.grid
{
padding
:
0
;
}
}
}
</
style
>
\ No newline at end of file
src/views/sale/index.vue
View file @
6ccef2e
...
...
@@ -298,7 +298,7 @@ export default {
{
label
:
'售后时间'
,
minWidth
:
'100'
,
sortable
:
true
,
//
sortable: true,
formatter
:
cell
=>
{
return
cell
.
createDate
?
new
Date
(
cell
.
createDate
).
format
(
'yyyy-MM-dd hh:mm:ss'
)
:
'- -'
}
...
...
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