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 bb4a639c
authored
Aug 24, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:完成UI改版
1 parent
c55d61e4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
660 additions
and
200 deletions
src/assets/css/public.scss
src/views/collection/index.vue
src/views/financial/index.vue
src/views/goods/index.vue
src/views/order/detail.vue
src/views/sale/detail.vue
src/assets/css/public.scss
View file @
bb4a639
...
...
@@ -157,12 +157,31 @@
display
:
flex
;
align-items
:
center
;
}
.flex_cc
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.flex_scb
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
}
.table_point
{
width
:
6px
;
height
:
6px
;
border-radius
:
50%
;
margin-right
:
8px
;
}
.loadingClass
{
.el-icon-loading
{
font-size
:
22px
;
}
.el-icon-loading
,
.el-loading-text
{
color
:
#fff
!
important
;
}
}
// .equity-wrap table {
// width: 98%;
// color: #666666;
...
...
src/views/collection/index.vue
View file @
bb4a639
...
...
@@ -23,47 +23,47 @@
</GLTable>
<!-- 批次界面弹窗 -->
<GLDialog
mode=
"big"
bigTitle=
"权益卡信息"
:visible
.
sync=
"batchdetailsVisible"
:before-close=
"detailClose"
>
<el-form
:inline=
"true"
:model=
"cardsInformationForm"
class=
"demo-form-inline detailFont"
label-width=
"
90
px"
>
<
el-row
>
<el-form-item
label=
"门店:"
class=
"
detailItem
"
>
<el-form
:inline=
"true"
:model=
"cardsInformationForm"
class=
"demo-form-inline detailFont"
label-width=
"
154
px"
>
<
div
class=
"form-wrap"
>
<el-form-item
label=
"门店:"
class=
"
fixedWidth
"
>
{{
cardsInformationForm
.
merchantName
}}
</el-form-item>
<el-form-item
label=
"权益卡名称:"
style=
"margin-left: 120px
"
>
<el-form-item
label=
"权益卡名称:"
class=
"fixedWidth
"
>
{{
cardsInformationForm
.
cardClassName
}}
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"生成日期:"
class=
"detailItem"
>
<el-form-item
label=
"生成日期:"
class=
"fixedWidth"
>
{{
date_format
(
cardsInformationForm
.
createdDate
,
'detail'
)
}}
</el-form-item>
<el-form-item
label=
"批次:"
style=
"margin-left: 120px"
>
</div>
<div
class=
"form-wrap"
>
<el-form-item
label=
"批次:"
class=
"fixedWidth"
>
{{
cardsInformationForm
.
batchNo
}}
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"生成张数:"
class=
"detailItem"
>
<el-form-item
label=
"生成张数:"
class=
"fixedWidth"
>
{{
cardsInformationForm
.
num
}}
</el-form-item>
<el-form-item
style=
"margin-left: 120px"
label=
"已激活:
"
>
{{
cardsInformationForm
.
recipientCount
||
'0'
}}
(
{{
ChangeDecimalToPercentage
(
this
.
cardsInformationForm
.
recipientCount
/
this
.
cardsInformationForm
.
num
)
}}
)
</el-form-item>
</
el-row
>
<el-form-item
label=
"已激活:"
class=
"fixedWidth
"
>
{{
cardsInformationForm
.
recipientCount
||
'0'
}}
(
{{
ChangeDecimalToPercentage
(
this
.
cardsInformationForm
.
recipientCount
/
this
.
cardsInformationForm
.
num
)
}}
)
</el-form-item>
</
div
>
</el-form>
<div
class=
"dialogtitleText"
style=
"margin-top: 0px; margin-left: 20px"
>
权益明细:
</div>
<div
class=
"contain equity-wrap"
style=
"margin: 0px 0px 0px 0px !important"
>
<el-form
:inline=
"true"
label-width=
"70px"
>
<!--
<el-row
style=
"align-items: center"
>
-->
<div
class=
"line"
></div>
<div
class=
"wrapper"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"batchPopupListSearch"
:formData=
"diasearchFormData"
@
handleOk=
"batchdetailSelect('select')"
@
handleRest=
"batchdetailSelect('reset')"
></GLCombiForm>
<div
class=
"flex_scb"
>
<span>
权益明细
</span>
<el-button
plain
size=
"small"
@
click=
"exportbatchdetail"
class=
"selectBtn"
>
导出
</el-button>
</div>
<!--
<el-form
:inline=
"true"
label-width=
"70px"
>
<el-form-item
label=
" 卡号:"
>
<el-input
v-model=
"batchPopupListSearch.cardNo"
placeholder=
"请输入权益卡号"
size=
"small"
class=
"formItem"
></el-input>
<el-input
v-model=
"batchPopupListSearch.cardNo"
placeholder=
"请输入权益卡号"
size=
"small"
class=
"formItem"
></el-input>
</el-form-item>
<el-form-item
label=
"账号:"
>
<el-input
v-model=
"batchPopupListSearch.mobile"
placeholder=
"请输入账号"
size=
"small"
class=
"formItem"
></el-input>
<el-input
v-model=
"batchPopupListSearch.mobile"
placeholder=
"请输入账号"
size=
"small"
class=
"formItem"
></el-input>
</el-form-item>
<el-form-item
size=
"small"
style=
"float: right; margin-right: 0px !important"
>
<el-button
plain
size=
"small"
@
click=
"batchdetailSelect('reset')"
class=
"selectBtn"
>
重置
</el-button>
<el-button
size=
"small"
@
click=
"batchdetailSelect('select')"
class=
"selectBtn"
>
搜索
</el-button>
<el-button
size=
"small"
@
click=
"exportbatchdetail"
class=
"selectBtn"
>
导出
</el-button>
</el-form-item>
<!--
</el-row>
-->
</el-form>
</el-form>
-->
<GLTable
ref=
"batchdetailPopupTable"
@
hook:mounted=
"setTabelHeight"
:tableParams=
"batchdetailPopupTable"
:getListApi=
"listMemberCard"
:searchForm=
"batchPopupListSearch"
:beforeSearchFn=
"beforebatchPopupListSearch"
:pageConf=
"datailPageConf"
></GLTable>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
...
...
@@ -434,7 +434,21 @@ export default {
num
:
''
,
recipientCount
:
''
},
colors
:
[
'#999999'
,
'#2CCA74'
]
colors
:
[
'#999999'
,
'#2CCA74'
],
diasearchFormData
:[
{
label
:
'卡号'
,
name
:
'cardNo'
,
type
:
'input'
,
isClear
:
true
},
{
label
:
'账号'
,
name
:
'mobile'
,
type
:
'input'
,
isClear
:
true
},
]
}
},
mounted
()
{
...
...
@@ -959,8 +973,30 @@ flex-wrap: nowrap;
border-bottom
:
1px
solid
#d8d8d8
;
height
:
28px
;
}
.detailItem
{
width
:
500px
;
.form-wrap
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
}
.fixedWidth
{
min-width
:
300px
;
}
.line
{
height
:
1px
;
background
:
#e5e5e5
;
}
.wrapper
{
padding-top
:
16px
;
}
.wrapper
.glsx-combi-formwrap
.glsx-combi-form
.el-form-item--small
{
width
:
30%
;
}
.flex_scb
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
box-sizing
:
border-box
;
margin-bottom
:
10px
;
}
.detailFont
{
font-size
:
14px
;
...
...
@@ -1024,6 +1060,7 @@ flex-wrap: nowrap;
align-items
:
center
;
justify-content
:
space-between
;
margin-bottom
:
10px
;
padding-right
:
0
!important
;
}
.btn-grounp
.title
{
font-size
:
16px
;
...
...
src/views/financial/index.vue
View file @
bb4a639
...
...
@@ -7,7 +7,8 @@
<div
class=
"balanceWrap"
>
<div
class=
"flex_sc"
>
<span
class=
"title"
>
账户余额
</span>
<i
@
click=
"getHwAccount(1)"
style=
"color:#5850FF;cursor: pointer"
class=
"el-icon-refresh-right"
></i>
<i
v-if=
"loading"
style=
"color:#5850FF"
class=
"el-icon-loading"
></i>
<i
v-else
@
click=
"getHwAccount(1)"
style=
"color:#5850FF;cursor: pointer"
class=
"el-icon-refresh-right"
></i>
</div>
<span
class=
"price"
>
{{
price
}}
元
</span>
</div>
...
...
src/views/goods/index.vue
View file @
bb4a639
<
template
>
<div
class=
"equity-wrap"
>
<GLButton
fn=
"新增商品"
size=
"small"
class=
"addGood"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"jump"
>
新增商品
</GLButton>
<div
class=
"find-wrap"
>
<GLCombiForm
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"pannel tableTopButton"
>
<div
class=
"out_wrap"
>
<div
class=
"choseRow flex_scb"
>
<div
class=
"wrap"
>
<div
class=
"choseItem"
:class=
"
{ active: currentIndex == index }" v-for="(item, index) in choseList" :key="index" @click="tabClick(index)">
{{
item
}}
</div>
</div>
<div
class=
"flex_sc"
>
<GLButton
fn=
"新增商品"
size=
"small"
type=
"primary"
@
click=
"jump"
>
新增商品
</GLButton>
<template
v-if=
"currentIndex == 1"
>
<GLButton
fn=
"下架商品"
plain
size=
"small"
@
click=
"batchOperation(2)"
>
批量下架
</GLButton>
</
template
>
<
template
v-if=
"currentIndex > 1"
>
<GLButton
fn=
"上架商品"
plain
size=
"small"
@
click=
"batchOperation(1)"
>
批量上架
</GLButton>
</
template
>
<
template
v-if=
"currentIndex == 2"
>
<GLButton
fn=
"删除商品"
size=
"small"
@
click=
"batchOperation(-1)"
>
批量删除
</GLButton>
</
template
>
</div>
</div>
</div>
<div
class=
"table_box"
>
<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"
>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope"
:buttonNum=
"3"
></GLTableButton>
</div>
</GLTable>
</div>
<!-- <div class="pannel tableTopButton">
<el-button plain size="small" @click="toggleAll">全选</el-button>
<GLButton fn="上架商品" size="small" @click="batchOperation(1)">上架</GLButton>
<GLButton fn="下架商品" size="small" @click="batchOperation(2)">下架</GLButton>
...
...
@@ -17,13 +48,11 @@
</div>
<div slot="table-btns" slot-scope="scope">
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
<!--
<GLButton
fn=
"编辑商品"
type=
"text"
@
click=
"jump(scope.scope)"
>
编辑
</GLButton>
<GLButton
fn=
"复制商品"
type=
"text"
@
click=
"copy(scope.scope)"
>
复制
</GLButton>
<el-button
type=
"text"
:disabled=
"!scope.scope.groupStatus || scope.scope.status != 1"
@
click=
"toCreateLine(scope.scope)"
>
生成商品短链
</el-button>
-->
</div>
</GLTable>
</div>
</div>
-->
</div>
<GLDialog
mode=
"mid"
title=
"商品短链"
:visible
.
sync=
"isVisible"
:before-close=
"handleClose"
:close-on-click-modal=
"false"
>
<div
class=
"con-wrap flex_cc"
>
<div
class=
"link flex_cc"
>
{{ shortLink }}
</div>
...
...
@@ -61,7 +90,7 @@ export default {
productName
:
''
,
supplier
:
''
,
productId
:
''
,
status
:
''
,
status
:
''
,
id
:
''
},
searchFormData
:
[
...
...
@@ -100,28 +129,28 @@ export default {
type
:
'input'
,
isClear
:
true
},
{
label
:
'商品状态'
,
name
:
'status'
,
type
:
'select'
,
optionList
:
[
{
label
:
'上架'
,
value
:
'1'
},
{
label
:
'下架'
,
value
:
'2'
},
{
label
:
'待上架'
,
value
:
'0'
}
],
optionId
:
'value'
,
optionLabel
:
'label'
,
isClear
:
true
},
//
{
//
label: '商品状态',
//
name: 'status',
//
type: 'select',
//
optionList: [
//
{
//
label: '上架',
//
value: '1'
//
},
//
{
//
label: '下架',
//
value: '2'
//
},
//
{
//
label: '待上架',
//
value: '0'
//
}
//
],
//
optionId: 'value',
//
optionLabel: 'label',
//
isClear: true
//
},
{
label
:
'商品ID'
,
name
:
'id'
,
...
...
@@ -215,9 +244,9 @@ export default {
{
label
:
'会员价/元'
,
width
:
150
,
align
:
'right'
,
align
:
'right'
,
prop
:
'salesPrice'
,
formatter
(
cell
){
formatter
(
cell
)
{
return
parseFloat
(
cell
.
salesPrice
).
toFixed
(
2
)
}
},
...
...
@@ -263,14 +292,35 @@ export default {
selectStatus
:
false
,
isVisible
:
false
,
shortLink
:
null
,
colors
:
[
'#FDB757'
,
'#2CCA74'
,
'#999999'
]
colors
:
[
'#FDB757'
,
'#2CCA74'
,
'#999999'
],
choseList
:
[
'全部'
,
'上架'
,
'待上架'
,
'下架'
],
currentIndex
:
0
}
},
mounted
()
{
this
.
getAllBrandList
()
},
methods
:
{
getGoodsListData
()
{},
tabClick
(
e
)
{
this
.
currentIndex
=
e
let
status
=
''
switch
(
e
)
{
case
1
:
status
=
1
break
case
2
:
status
=
0
break
case
3
:
status
=
2
break
default
:
status
=
''
break
}
this
.
searchForm
.
status
=
status
this
.
handleSearch
()
},
handleClose
()
{
this
.
isVisible
=
!
this
.
isVisible
},
...
...
@@ -378,7 +428,8 @@ export default {
handleReset
()
{
this
.
flag
=
false
this
.
searchForm
=
{}
this
.
handleSearch
()
this
.
tabClick
(
this
.
currentIndex
)
// this.handleSearch()
},
handleSearch
()
{
this
.
flag
=
false
...
...
@@ -449,8 +500,42 @@ export default {
}
.find-wrap
{
background
:
#ffffff
;
padding
:
20px
0
;
padding
:
20px
;
}
.out_wrap
{
position
:
relative
;
z-index
:
100
;
margin-bottom
:
-1px
;
}
.choseRow
{
display
:
flex
;
.choseItem
{
display
:
inline-block
;
box-sizing
:
border-box
;
padding
:
0
20px
;
height
:
40px
;
line-height
:
40px
;
cursor
:
pointer
;
border
:
1px
solid
#e5e5e5
;
margin-right
:
1px
;
border-radius
:
4px
4px
0
0
;
background
:
#fafafa
;
}
.active
{
color
:
#5850ff
;
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
;
}
.con-wrap
{
height
:
191px
;
.link
{
...
...
src/views/order/detail.vue
View file @
bb4a639
<
template
>
<div
class=
"layout"
>
<div
class=
"box topBox"
>
<!--
<back
/>
-->
<!--
<el-button
type=
"primary"
class=
"backBtn"
size=
"small"
@
click=
"$router.push('/order/index')"
>
返回
</el-button>
-->
<div
class=
"detail-container"
>
<div
class=
"wrapper flex_sca"
>
<div
class=
"label_text"
>
订单编号:
{{
detailInfo
.
orderCode
}}
</div>
<div
class=
"label_text"
>
下单时间:
{{
detailInfo
.
time
}}
</div>
<div
class=
"label_text"
>
海威订单号:
{{
thirdOrderCode
}}
</div>
</div>
<div
class=
"line"
></div>
<div
class=
"wrapper flex_ss"
>
<template
v-for=
"(item, index) in detailInfoObj"
>
<div
:key=
"index"
class=
"box_wrap"
>
<div
class=
"title"
>
{{
item
.
title
}}
</div>
<div
class=
"box_pannel"
>
<div
v-for=
"(i,ind) in item.list"
:key=
"ind"
class=
"row flex_sc"
:class=
"[index==2&&ind?'max':'']"
>
<div
class=
"tip flex_cc"
>
{{
i
.
label
}}
</div>
<div
v-if=
"i.format"
class=
"tipval flex_sc"
>
{{
i
.
format
(
detailInfo
)
}}
</div>
<div
v-else
class=
"tipval flex_sc"
>
{{
detailInfo
[
i
.
key
]
||
''
}}
</div>
</div>
</div>
</div>
</
template
>
</div>
<div
class=
"line"
></div>
<div
class=
"tableWrap"
>
<GLTable
v-if=
"tableData.length"
:tableParams=
"tableParams"
:tableData=
"tableData"
:hasNum=
"false"
:hasPage=
"false"
>
<div
class=
"flex_sc"
slot=
"imgText"
slot-scope=
"scope"
>
<img
class=
"imgicon"
:src=
"scope.scope.goodsImage"
>
<div
class=
""
>
<div
class=
"title"
>
{{scope.scope.brandName}}
</div>
<div
class=
"tip"
v-if=
"scope.scope.appearance"
>
{{scope.scope.productName}}{{scope.scope.denomination}}
</div>
<div
class=
"tip"
v-else
>
{{scope.scope.productName}}{{scope.scope.productName}}
</div>
</div>
</div>
</GLTable>
</div>
<div
class=
"totalWrap flex_scb"
>
<span
class=
"label"
>
合计
</span>
<div
v-if=
"detailInfo.orderPrices"
class=
"wrap"
>
<div
class=
"label tip"
>
<div
class=
"left"
>
商品总价:
</div>
<div
class=
"right"
>
¥{{ detailInfo.orderPrices }}
</div>
</div>
<div
style=
"margin:8px 0"
class=
"label tip"
>
<div
class=
"left"
>
优惠:
</div>
<div
class=
"right"
>
¥0.00
</div>
</div>
<div
class=
"label tip"
>
<div
class=
"left"
>
实收金额:
</div>
<div
class=
"right"
>
¥{{ detailInfo.orderPrices }}
</div>
</div>
</div>
</div>
<!-- <div class="box topBox">
<div class="grid">
<div class="grid-item">订单编号:{{ detailInfo.orderCode }}</div>
<div class="grid-item">下单时间: {{ detailInfo.time }}</div>
...
...
@@ -29,15 +77,6 @@
</div>
</template>
<template v-if="item.btn">
<!--
<div
class=
"grid-btn"
>
售后:
<template
v-if=
"detailInfo.openRefund == 0"
>
<el-button
type=
"primary"
@
click=
"openRefund"
size=
"small"
>
开启
</el-button>
</
template
>
<
template
v-else
>
<span>
已开启
</span>
</
template
>
</div>
-->
</template>
</div>
</template>
...
...
@@ -66,7 +105,7 @@
<div class="value money">¥{{ detailInfo.orderPrices }}</div>
</div>
</div>
</div>
</div>
-->
</div>
</template>
...
...
@@ -93,7 +132,7 @@ export default {
{
label
:
'付款金额'
,
format
(
cell
)
{
return
`
${
cell
.
orderPrices
}
元
`
return
`
${
cell
.
orderPrices
||
''
}${
cell
.
orderPrices
?
'元'
:
''
}
`
}
},
{
...
...
@@ -196,7 +235,15 @@ export default {
},
methods
:
{
getDetail
(
params
)
{
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'Loading...'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.5)'
,
customClass
:
'loadingClass'
})
this
.
$apis
.
orderApi
.
getOrderDetail
(
params
).
then
(({
code
,
data
})
=>
{
loading
.
close
()
if
(
code
==
0
)
{
data
.
payStatus
=
'已付款'
data
.
payType
=
'微信支付'
...
...
@@ -233,97 +280,194 @@ export default {
</
script
>
<
style
src=
"@a/css/tao.css"
></
style
>
<
style
lang=
"scss"
scoped
>
.price-box
{
margin-top
:
16px
;
//
margin-right
:
52px
;
float
:
right
;
}
.price-item
{
width
:
200px
;
font-size
:
14px
;
font-weight
:
400
;
color
:
#333333
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-bottom
:
14px
;
.label
{
width
:
80px
;
text-align
:
right
;
.detail-container
{
height
:
90vh
;
padding
:
0
20px
;
background
:
#fff
;
.wrapper{
padding
:
32px
0
;
}
.money
{
color
:
#eb4e4e
;
.flex_sca
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-around
;
}
}
.goods
{
display
:
flex
;
}
.goods-img
{
width
:
100px
!important
;
height
:
100px
!important
;
margin-right
:
10px
;
}
.goods-info
{
width
:
calc
(
100%
-
110px
);
}
.layout
{
background-color
:
#fff
;
.topBox
{
padding-top
:
32px
!important
;
.flex_ss
{
display
:
flex
;
}
.label_text
{
font-size
:
14px
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
20px
;
}
.line
{
height
:
1px
;
background
:
#e5e5e5
;
}
.box
{
position
:
relative
;
padding-top
:
20px
;
padding-left
:
52px
;
box-shadow
:
none
;
.top-grid-item
{
.item
{
.box_wrap
{
margin-right
:
38px
;
.title{
font-size
:
16px
;
font-weight
:
500
;
color
:
#333333
;
line-height
:
20px
;
margin-bottom
:
8px
;
}
.box_pannel
{
.row{
height
:
36px
;
}
.tip
{
width
:
118px
;
height
:
100%
;
background
:
#F4F6FC
;
border
:
1px
solid
#E5E5E5
;
font-size
:
14px
;
font-weight
:
400
;
color
:
#333333
;
margin-left
:
-30px
;
.label
{
//
width
:
71px
;
text-align
:
right
;
}
}
}
.grid-item
{
.item,
.grid-btn
{
.tipval
{
width
:
238px
;
height
:
100%
;
background
:
#FFFFFF
;
border
:
1px
solid
#E5E5E5
;
border-left
:
none
;
font-size
:
14px
;
font-weight
:
400
;
color
:
#333333
;
padding
:
0
12px
;
}
.max
{
height
:
108px
;
}
}
.backBtn
{
position
:
absolute
;
right
:
20px
;
top
:
20px
;
}
.tableWrap
{
margin-top
:
32px
;
.imgicon{
width
:
36px
;
height
:
36px
;
margin-right
:
8px
;
}
.grayRow
{
position
:
absolute
;
top
:
18px
;
left
:
0
;
width
:
100%
;
background-color
:
#f4f6fc
;
z-index
:
0
;
height
:
54px
;
.title
{
font-size
:
14px
;
font-weight
:
400
;
color
:
#666666
;
line-height
:
18px
;
}
.tip
{
font-size
:
10px
;
font-weight
:
400
;
color
:
#999999
;
}
.sub-title
{
position
:
relative
;
z-index
:
1
;
margin-bottom
:
40px
!important
;
}
.totalWrap
{
min-height
:
108px
;
padding
:
0
16px
;
background
:
#F9F9F9
;
.label{
font-size
:
14px
;
font-weight
:
500
;
color
:
#333333
;
font-weight
:
400
;
color
:
#666666
;
}
.tableWrap
{
margin-left
:
-32px
;
.tip
{
display
:
flex
;
.left{
width
:
90px
;
text-align
:
right
;
}
}
}
}
//
.price-box
{
//
margin-top
:
16px
;
//
//
margin-right
:
52px
;
//
float
:
right
;
//
}
//
.price-item
{
//
width
:
200px
;
//
font-size
:
14px
;
//
font-weight
:
400
;
//
color
:
#333333
;
//
display
:
flex
;
//
align-items
:
center
;
//
justify-content
:
space-between
;
//
margin-bottom
:
14px
;
//
.label
{
//
width
:
80px
;
//
text-align
:
right
;
//
}
//
.money
{
//
color
:
#eb4e4e
;
//
}
//
}
//
.goods
{
//
display
:
flex
;
//
}
//
.goods-img
{
//
width
:
100px
!important
;
//
height
:
100px
!important
;
//
margin-right
:
10px
;
//
}
//
.goods-info
{
//
width
:
calc
(
100%
-
110px
);
//
}
//
.layout
{
//
background-color
:
#fff
;
//
.topBox
{
//
padding-top
:
32px
!important
;
//
}
//
.box
{
//
position
:
relative
;
//
padding-top
:
20px
;
//
padding-left
:
52px
;
//
box-shadow
:
none
;
//
.top-grid-item
{
//
.item
{
//
font-size
:
14px
;
//
font-weight
:
400
;
//
color
:
#333333
;
//
margin-left
:
-30px
;
//
.label
{
//
//
width
:
71px
;
//
text-align
:
right
;
//
}
//
}
//
}
//
.grid-item
{
//
.item,
//
.grid-btn
{
//
font-size
:
14px
;
//
font-weight
:
400
;
//
color
:
#333333
;
//
}
//
}
//
.backBtn
{
//
position
:
absolute
;
//
right
:
20px
;
//
top
:
20px
;
//
}
//
.grayRow
{
//
position
:
absolute
;
//
top
:
18px
;
//
left
:
0
;
//
width
:
100%
;
//
background-color
:
#f4f6fc
;
//
z-index
:
0
;
//
height
:
54px
;
//
}
//
.sub-title
{
//
position
:
relative
;
//
z-index
:
1
;
//
margin-bottom
:
40px
!important
;
//
font-size
:
14px
;
//
font-weight
:
500
;
//
color
:
#333333
;
//
}
//
}
//
}
</
style
>
\ No newline at end of file
src/views/sale/detail.vue
View file @
bb4a639
<
template
>
<div
class=
"layout"
>
<div
class=
"sale-detail-container"
>
<div
class=
"wrapper"
>
<template
v-for=
"(item, index) in detailInfoObj"
>
<div
:key=
"index"
class=
"wrap"
>
<div
v-for=
"(i, ind) in item.list"
:key=
"ind"
class=
"info"
:class=
"
{ mb: !ind }">
<div
class=
"label"
>
{{
i
.
label
}}
</div>
<div
v-if=
"i.format"
class=
"value"
>
{{
i
.
format
(
detailInfo
)
}}
</div>
<div
v-else
class=
"value"
>
{{
detailInfo
[
i
.
key
]
||
''
}}
</div>
</div>
</div>
</
template
>
</div>
<div
class=
"line"
></div>
<div
class=
"wrapper"
>
<div
class=
"box_wrap"
>
<div
class=
"title"
>
售后描述
</div>
<div
class=
"box_pannel"
>
<div
class=
"h72 row flex_sc"
>
<div
class=
"tip flex_cc"
>
描述
</div>
<div
class=
"tipval flex_sc"
>
<div
class=
"img-box"
>
<el-image
class=
"img-describe"
:src=
"detailInfo.img"
:preview-src-list=
"[detailInfo.img]"
></el-image>
</div>
<!-- <div class="longText"> {{ detailInfo.reason }}</div> -->
</div>
</div>
<div
class=
"bottom_box"
>
{{ detailInfo.reason }}
</div>
</div>
</div>
<div
class=
"box_wrap"
>
<div
class=
"title"
>
售后商品
</div>
<div
class=
"box_pannel"
>
<div
class=
"h72 row flex_sc"
>
<div
class=
"tip flex_cc"
>
商品图片
</div>
<div
class=
"tipval flex_sc"
>
<div
class=
"img-box"
>
<el-image
class=
"img-describe"
:src=
"detailInfo.goodImg"
:preview-src-list=
"[detailInfo.goodImg]"
></el-image>
</div>
</div>
</div>
<div
class=
"row flex_sc"
>
<div
class=
"tip flex_cc"
>
商品品牌
</div>
<div
class=
"tipval flex_sc"
>
{{ detailInfo.brandName || '--'}}
</div>
</div>
<div
class=
"row flex_sc"
>
<div
class=
"tip flex_cc"
>
商品名称
</div>
<div
class=
"tipval flex_sc"
>
{{ detailInfo.productName || '--'}}
</div>
</div>
<div
class=
"row flex_sc"
>
<div
class=
"tip flex_cc"
>
类型
</div>
<div
class=
"tipval flex_sc"
>
{{ detailInfo.appearanceDesc }}
</div>
</div>
</div>
</div>
<div
class=
"box_wrap"
>
<div
class=
"title"
>
购买信息
</div>
<div
class=
"box_pannel"
>
<div
class=
"row flex_sc"
>
<div
class=
"tip flex_cc"
>
订单编号
</div>
<div
class=
"tipval flex_sc"
>
{{ detailInfo.orderCode }}
</div>
</div>
<div
class=
"row flex_sc"
>
<div
class=
"tip flex_cc"
>
购买数量/张
</div>
<div
class=
"tipval flex_sc"
>
1
</div>
</div>
<div
class=
"row flex_sc"
>
<div
class=
"tip flex_cc"
>
商品销售价/元
</div>
<div
class=
"tipval flex_sc"
>
{{ detailInfo.orderPrices }}
</div>
</div>
<div
class=
"row flex_sc"
>
<div
class=
"tip flex_cc"
>
实付金额/元
</div>
<div
class=
"tipval flex_sc"
>
{{ detailInfo.orderPrices }}
</div>
</div>
</div>
</div>
</div>
</div>
<!-- <div class="layout">
<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
...
...
@@ -90,50 +169,50 @@
</div>
</div>
</div>
</div>
</div>
-->
</template>
<
script
type=
'text/ecmascript-6'
>
export
default
{
name
:
''
,
data
()
{
data
()
{
return
{
detailInfo
:
{},
detailInfoObj
:
[
{
list
:
[
{
label
:
'售后编号'
,
label
:
'售后编号
:
'
,
key
:
'refundCode'
,
class
:
1
class
:
1
},
{
label
:
'申请人'
,
label
:
'申请人
:
'
,
key
:
'accountName'
}
,
}
]
},
{
list
:
[
{
label
:
'订单渠道'
,
label
:
'订单渠道
:
'
,
key
:
'channelName'
,
class
:
1
class
:
1
},
{
label
:
'申请时间'
,
format
(
cell
)
{
label
:
'申请时间
:
'
,
format
(
cell
)
{
return
cell
.
createDate
?
new
Date
(
cell
.
createDate
).
format
(
'yyyy-MM-dd hh:mm:ss'
)
:
''
}
}
,
]
,
}
]
},
{
list
:
[
{
label
:
'售后状态'
,
class
:
1
,
format
(
cell
)
{
label
:
'售后状态
:
'
,
class
:
1
,
format
(
cell
)
{
const
refundStatusList
=
{
1
:
'售后中'
,
2
:
'已拒绝'
,
...
...
@@ -141,16 +220,16 @@ export default {
}
return
`
${
refundStatusList
[
cell
.
refundStatus
]}
`
}
}
,
}
]
}
]
,
]
}
},
mounted
()
{
let
params
=
{
orderCode
:
this
.
$route
.
query
.
orderCode
}
this
.
getDetail
(
params
)
this
.
$nextTick
(()
=>
{
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'
...
...
@@ -160,22 +239,117 @@ export default {
// jump(){
// this.$router.push('/saleDetail')
// },
getDetail
(
params
)
{
getDetail
(
params
)
{
this
.
$apis
.
orderApi
.
getRefundDetail
(
params
).
then
(({
code
,
data
})
=>
{
if
(
code
==
0
)
{
console
.
log
(
data
,
'77777777777'
)
console
.
log
(
data
,
'77777777777'
)
// 测试私域环境访问不到图片,线上可以
// data.list[0].img=this.getHttpsImgUrl(data.list[0].img)
// data.list[0].goodImg=this.getHttpsImgUrl( data.list[0].goodImg)
this
.
detailInfo
=
data
.
list
[
0
]
}
}
})
}
,
}
}
}
</
script
>
<
style
src=
"@a/css/tao.css"
></
style
>
<
style
lang=
"scss"
scoped
>
.sale-detail-container
{
height
:
90vh
;
padding
:
0
20px
;
background
:
#fff
;
.wrapper
{
padding
:
32px
0
;
display
:
flex
;
}
.wrap
{
.info
{
display
:
flex
;
>
div
{
font-size
:
14px
;
font-weight
:
400
;
color
:
#333333
;
}
.label
{
width
:
154px
;
text-align
:
right
;
}
}
.mb
{
margin-bottom
:
20px
;
}
}
.line
{
height
:
1px
;
background
:
#e5e5e5
;
}
.box_wrap
{
margin-right
:
38px
;
.title
{
font-size
:
16px
;
font-weight
:
500
;
color
:
#333333
;
line-height
:
20px
;
margin-bottom
:
8px
;
}
.box_pannel
{
.row
{
height
:
36px
;
}
.tip
{
width
:
118px
;
height
:
100%
;
background
:
#f4f6fc
;
border
:
1px
solid
#e5e5e5
;
font-size
:
14px
;
font-weight
:
400
;
color
:
#333333
;
}
.tipval
{
width
:
238px
;
height
:
100%
;
background
:
#ffffff
;
border
:
1px
solid
#e5e5e5
;
border-left
:
none
;
font-size
:
14px
;
font-weight
:
400
;
color
:
#333333
;
padding
:
0
12px
;
.img-box
{
width
:
36px
;
height
:
36px
;
margin-right
:
8px
;
}
.img-describe
{
width
:
36px
;
height
:
36px
;
}
.longText
{
width
:
100%
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
.h72
{
height
:
72px
;
}
.max
{
height
:
108px
;
}
}
}
.bottom_box
{
width
:
357px
;
border
:
1px
solid
#e5e5e5
;
padding
:
12px
;
font-size
:
14px
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
21px
;
}
}
.flex
.info
{
margin-left
:
10px
;
width
:
calc
(
100%
-
110px
);
...
...
@@ -188,62 +362,62 @@ export default {
.layout
.box
.grid
.grid-item
.item
{
align-items
:
center
;
}
.layout
{
.topBox{
padding-top
:
32px
!important
;
.layout
{
.topBox
{
padding-top
:
32px
!important
;
}
.box
{
.box
{
position
:
relative
;
padding-top
:
20px
;
padding-left
:
52px
;
.top-grid-item
{
.item{
.top-grid-item
{
.item
{
font-size
:
14px
;
font-weight
:
400
;
color
:
#333333
;
.label{
color
:
#333333
;
.label
{
width
:
71px
;
text-align
:
right
;
}
.firstRow
{
.firstRow
{
margin-bottom
:
14px
;
}
}
}
.grid-item
{
.item{
font-size
:
14px
;
.grid-item
{
.item
{
font-size
:
14px
;
font-weight
:
400
;
color
:
#333333
;
.money
{
color
:
#EB4E4E
;
}
color
:
#333333
;
.money
{
color
:
#eb4e4e
;
}
}
}
.backBtn
{
.backBtn
{
position
:
absolute
;
right
:
20px
;
top
:
20px
;
}
.grayRow
{
.grayRow
{
position
:
absolute
;
top
:
0px
;
left
:
0
;
width
:
100%
;
background-color
:
#
F4F6FC
;
background-color
:
#
f4f6fc
;
z-index
:
0
;
height
:
54px
;
}
.sub-title
{
.sub-title
{
position
:
relative
;
z-index
:
1
;
margin-bottom
:
35px
!important
;
margin-bottom
:
35px
!important
;
font-size
:
14px
;
font-weight
:
500
;
color
:
#333333
;
}
.grid
{
.grid
{
padding
:
0
;
}
}
...
...
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