Commit bb4a639c by 杨北旺

style:完成UI改版

1 parent c55d61e4
...@@ -157,12 +157,31 @@ ...@@ -157,12 +157,31 @@
display: flex; display: flex;
align-items: center; 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{ .table_point{
width: 6px; width: 6px;
height: 6px; height: 6px;
border-radius: 50%; border-radius: 50%;
margin-right: 8px; margin-right: 8px;
} }
.loadingClass{
.el-icon-loading{
font-size: 22px;
}
.el-icon-loading,
.el-loading-text{
color: #fff!important;
}
}
// .equity-wrap table { // .equity-wrap table {
// width: 98%; // width: 98%;
// color: #666666; // color: #666666;
......
...@@ -23,47 +23,47 @@ ...@@ -23,47 +23,47 @@
</GLTable> </GLTable>
<!-- 批次界面弹窗 --> <!-- 批次界面弹窗 -->
<GLDialog mode="big" bigTitle="权益卡信息" :visible.sync="batchdetailsVisible" :before-close="detailClose"> <GLDialog mode="big" bigTitle="权益卡信息" :visible.sync="batchdetailsVisible" :before-close="detailClose">
<el-form :inline="true" :model="cardsInformationForm" class="demo-form-inline detailFont" label-width="90px"> <el-form :inline="true" :model="cardsInformationForm" class="demo-form-inline detailFont" label-width="154px">
<el-row> <div class="form-wrap">
<el-form-item label="门店:" class="detailItem"> <el-form-item label="门店:" class="fixedWidth">
{{ cardsInformationForm.merchantName }} {{ cardsInformationForm.merchantName }}
</el-form-item> </el-form-item>
<el-form-item label="权益卡名称:" style="margin-left: 120px"> <el-form-item label="权益卡名称:" class="fixedWidth">
{{ cardsInformationForm.cardClassName }} {{ cardsInformationForm.cardClassName }}
</el-form-item> </el-form-item>
</el-row> <el-form-item label="生成日期:" class="fixedWidth">
<el-row>
<el-form-item label="生成日期:" class="detailItem">
{{ date_format(cardsInformationForm.createdDate, 'detail') }} {{ date_format(cardsInformationForm.createdDate, 'detail') }}
</el-form-item> </el-form-item>
<el-form-item label="批次:" style="margin-left: 120px"> </div>
<div class="form-wrap">
<el-form-item label="批次:" class="fixedWidth">
{{ cardsInformationForm.batchNo }} {{ cardsInformationForm.batchNo }}
</el-form-item> </el-form-item>
</el-row> <el-form-item label="生成张数:" class="fixedWidth">
<el-row>
<el-form-item label="生成张数:" class="detailItem">
{{ cardsInformationForm.num }} {{ cardsInformationForm.num }}
</el-form-item> </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-form-item label="已激活:" class="fixedWidth">{{ cardsInformationForm.recipientCount || '0' }}({{ ChangeDecimalToPercentage(this.cardsInformationForm.recipientCount / this.cardsInformationForm.num) }})</el-form-item>
</el-row> </div>
</el-form> </el-form>
<div class="dialogtitleText" style="margin-top: 0px; margin-left: 20px">权益明细:</div> <div class="line"></div>
<div class="contain equity-wrap" style="margin: 0px 0px 0px 0px !important"> <div class="wrapper">
<el-form :inline="true" label-width="70px"> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="batchPopupListSearch" :formData="diasearchFormData" @handleOk="batchdetailSelect('select')" @handleRest="batchdetailSelect('reset')"></GLCombiForm>
<!-- <el-row style="align-items: center"> --> <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-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>
<el-form-item label="账号:"> <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>
<el-form-item size="small" style="float: right; margin-right: 0px !important"> <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 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="batchdetailSelect('select')" class="selectBtn">搜索</el-button>
<el-button size="small" @click="exportbatchdetail" class="selectBtn">导出</el-button>
</el-form-item> </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> <GLTable ref="batchdetailPopupTable" @hook:mounted="setTabelHeight" :tableParams="batchdetailPopupTable" :getListApi="listMemberCard" :searchForm="batchPopupListSearch" :beforeSearchFn="beforebatchPopupListSearch" :pageConf="datailPageConf"></GLTable>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
...@@ -434,7 +434,21 @@ export default { ...@@ -434,7 +434,21 @@ export default {
num: '', num: '',
recipientCount: '' recipientCount: ''
}, },
colors: ['#999999','#2CCA74'] colors: ['#999999','#2CCA74'],
diasearchFormData:[
{
label: '卡号',
name: 'cardNo',
type: 'input',
isClear: true
},
{
label: '账号',
name: 'mobile',
type: 'input',
isClear: true
},
]
} }
}, },
mounted() { mounted() {
...@@ -959,8 +973,30 @@ flex-wrap: nowrap; ...@@ -959,8 +973,30 @@ flex-wrap: nowrap;
border-bottom: 1px solid #d8d8d8; border-bottom: 1px solid #d8d8d8;
height: 28px; height: 28px;
} }
.detailItem { .form-wrap {
width: 500px; 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 { .detailFont {
font-size: 14px; font-size: 14px;
...@@ -1024,6 +1060,7 @@ flex-wrap: nowrap; ...@@ -1024,6 +1060,7 @@ flex-wrap: nowrap;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
margin-bottom: 10px; margin-bottom: 10px;
padding-right: 0 !important;
} }
.btn-grounp .title{ .btn-grounp .title{
font-size: 16px; font-size: 16px;
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
<div class="balanceWrap"> <div class="balanceWrap">
<div class="flex_sc"> <div class="flex_sc">
<span class="title">账户余额</span> <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> </div>
<span class="price">{{ price }}元</span> <span class="price">{{ price }}元</span>
</div> </div>
......
<template> <template>
<div class="equity-wrap"> <div class="equity-wrap">
<GLButton fn="新增商品" size="small" class="addGood" type="primary" icon="el-icon-plus" @click="jump">新增商品</GLButton>
<div class="find-wrap"> <div class="find-wrap">
<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="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> <el-button plain size="small" @click="toggleAll">全选</el-button>
<GLButton fn="上架商品" size="small" @click="batchOperation(1)">上架</GLButton> <GLButton fn="上架商品" size="small" @click="batchOperation(1)">上架</GLButton>
<GLButton fn="下架商品" size="small" @click="batchOperation(2)">下架</GLButton> <GLButton fn="下架商品" size="small" @click="batchOperation(2)">下架</GLButton>
...@@ -17,13 +48,11 @@ ...@@ -17,13 +48,11 @@
</div> </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="copy(scope.scope)">复制</GLButton>
<el-button type="text" :disabled="!scope.scope.groupStatus || scope.scope.status != 1" @click="toCreateLine(scope.scope)">生成商品短链</el-button> -->
</div> </div>
</GLTable> </GLTable>
</div> </div> -->
</div> </div>
<GLDialog mode="mid" title="商品短链" :visible.sync="isVisible" :before-close="handleClose" :close-on-click-modal="false"> <GLDialog mode="mid" title="商品短链" :visible.sync="isVisible" :before-close="handleClose" :close-on-click-modal="false">
<div class="con-wrap flex_cc"> <div class="con-wrap flex_cc">
<div class="link flex_cc">{{ shortLink }}</div> <div class="link flex_cc">{{ shortLink }}</div>
...@@ -61,7 +90,7 @@ export default { ...@@ -61,7 +90,7 @@ export default {
productName: '', productName: '',
supplier: '', supplier: '',
productId: '', productId: '',
status: '', status:'',
id: '' id: ''
}, },
searchFormData: [ searchFormData: [
...@@ -100,28 +129,28 @@ export default { ...@@ -100,28 +129,28 @@ export default {
type: 'input', type: 'input',
isClear: true isClear: true
}, },
{ // {
label: '商品状态', // label: '商品状态',
name: 'status', // name: 'status',
type: 'select', // type: 'select',
optionList: [ // optionList: [
{ // {
label: '上架', // label: '上架',
value: '1' // value: '1'
}, // },
{ // {
label: '下架', // label: '下架',
value: '2' // value: '2'
}, // },
{ // {
label: '待上架', // label: '待上架',
value: '0' // value: '0'
} // }
], // ],
optionId: 'value', // optionId: 'value',
optionLabel: 'label', // optionLabel: 'label',
isClear: true // isClear: true
}, // },
{ {
label: '商品ID', label: '商品ID',
name: 'id', name: 'id',
...@@ -215,9 +244,9 @@ export default { ...@@ -215,9 +244,9 @@ export default {
{ {
label: '会员价/元', label: '会员价/元',
width: 150, width: 150,
align:'right', align: 'right',
prop: 'salesPrice', prop: 'salesPrice',
formatter(cell){ formatter(cell) {
return parseFloat(cell.salesPrice).toFixed(2) return parseFloat(cell.salesPrice).toFixed(2)
} }
}, },
...@@ -263,14 +292,35 @@ export default { ...@@ -263,14 +292,35 @@ export default {
selectStatus: false, selectStatus: false,
isVisible: false, isVisible: false,
shortLink: null, shortLink: null,
colors: ['#FDB757', '#2CCA74', '#999999'] colors: ['#FDB757', '#2CCA74', '#999999'],
choseList: ['全部', '上架', '待上架', '下架'],
currentIndex: 0
} }
}, },
mounted() { mounted() {
this.getAllBrandList() this.getAllBrandList()
}, },
methods: { 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() { handleClose() {
this.isVisible = !this.isVisible this.isVisible = !this.isVisible
}, },
...@@ -378,7 +428,8 @@ export default { ...@@ -378,7 +428,8 @@ export default {
handleReset() { handleReset() {
this.flag = false this.flag = false
this.searchForm = {} this.searchForm = {}
this.handleSearch() this.tabClick(this.currentIndex)
// this.handleSearch()
}, },
handleSearch() { handleSearch() {
this.flag = false this.flag = false
...@@ -449,8 +500,42 @@ export default { ...@@ -449,8 +500,42 @@ export default {
} }
.find-wrap { .find-wrap {
background: #ffffff; 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 { .con-wrap {
height: 191px; height: 191px;
.link { .link {
......
<template> <template>
<div class="layout"> <div class="detail-container">
<div class="box topBox"> <div class="wrapper flex_sca">
<!-- <back /> --> <div class="label_text">订单编号:{{ detailInfo.orderCode }}</div>
<!-- <el-button type="primary" class="backBtn" size="small" @click="$router.push('/order/index')">返回</el-button> --> <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">
<div class="grid-item">订单编号:{{ detailInfo.orderCode }}</div> <div class="grid-item">订单编号:{{ detailInfo.orderCode }}</div>
<div class="grid-item">下单时间: {{ detailInfo.time }}</div> <div class="grid-item">下单时间: {{ detailInfo.time }}</div>
...@@ -29,15 +77,6 @@ ...@@ -29,15 +77,6 @@
</div> </div>
</template> </template>
<template v-if="item.btn"> <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> </template>
</div> </div>
</template> </template>
...@@ -66,7 +105,7 @@ ...@@ -66,7 +105,7 @@
<div class="value money">¥{{ detailInfo.orderPrices }}</div> <div class="value money">¥{{ detailInfo.orderPrices }}</div>
</div> </div>
</div> </div>
</div> </div> -->
</div> </div>
</template> </template>
...@@ -93,7 +132,7 @@ export default { ...@@ -93,7 +132,7 @@ export default {
{ {
label: '付款金额', label: '付款金额',
format(cell) { format(cell) {
return `${cell.orderPrices}元` return `${cell.orderPrices || ''}${cell.orderPrices?'元':''}`
} }
}, },
{ {
...@@ -196,7 +235,15 @@ export default { ...@@ -196,7 +235,15 @@ export default {
}, },
methods: { methods: {
getDetail(params) { 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 }) => { this.$apis.orderApi.getOrderDetail(params).then(({ code, data }) => {
loading.close()
if (code == 0) { if (code == 0) {
data.payStatus = '已付款' data.payStatus = '已付款'
data.payType = '微信支付' data.payType = '微信支付'
...@@ -233,97 +280,194 @@ export default { ...@@ -233,97 +280,194 @@ export default {
</script> </script>
<style src="@a/css/tao.css"></style> <style src="@a/css/tao.css"></style>
<style lang="scss" scoped> <style lang="scss" scoped>
.price-box { .detail-container{
margin-top: 16px; height: 90vh;
// margin-right: 52px; padding: 0 20px;
float: right; background: #fff;
} .wrapper{
.price-item { padding: 32px 0;
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 { .flex_sca{
color: #eb4e4e; display: flex;
align-items: center;
justify-content: space-around;
} }
} .flex_ss{
display: flex;
.goods { }
display: flex; .label_text{
} font-size: 14px;
.goods-img { font-weight: 400;
width: 100px !important; color: #333333;
height: 100px !important; line-height: 20px;
margin-right: 10px; }
} .line{
.goods-info { height: 1px;
width: calc(100% - 110px); background: #e5e5e5;
}
.layout {
background-color: #fff;
.topBox {
padding-top: 32px !important;
} }
.box { .box_wrap{
position: relative; margin-right: 38px;
padding-top: 20px; .title{
padding-left: 52px; font-size: 16px;
box-shadow: none; font-weight: 500;
.top-grid-item { color: #333333;
.item { 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-size: 14px;
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
margin-left: -30px;
.label {
// width: 71px;
text-align: right;
}
} }
} .tipval{
.grid-item { width: 238px;
.item, height: 100%;
.grid-btn { background: #FFFFFF;
border: 1px solid #E5E5E5;
border-left: none;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
padding:0 12px;
}
.max{
height: 108px;
} }
} }
.backBtn { }
position: absolute; .tableWrap {
right: 20px; margin-top: 32px;
top: 20px; .imgicon{
width: 36px;
height: 36px;
margin-right: 8px;
} }
.grayRow { .title{
position: absolute; font-size: 14px;
top: 18px; font-weight: 400;
left: 0; color: #666666;
width: 100%; line-height: 18px;
background-color: #f4f6fc; }
z-index: 0; .tip{
height: 54px; font-size: 10px;
font-weight: 400;
color: #999999;
} }
.sub-title { }
position: relative; .totalWrap{
z-index: 1; min-height: 108px;
margin-bottom: 40px !important; padding: 0 16px;
background: #F9F9F9;
.label{
font-size: 14px; font-size: 14px;
font-weight: 400;
font-weight: 500; color: #666666;
color: #333333;
} }
.tableWrap { .tip{
margin-left: -32px; 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> </style>
\ No newline at end of file \ No newline at end of file
<template> <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" > <div class="box topBox" >
<!-- <back /> -->
<!-- <el-button type="primary" class="backBtn" size="small" @click="$router.go(-1)">返回</el-button> -->
<div class="grid"> <div class="grid">
<template v-for="(item,index) in detailInfoObj"> <template v-for="(item,index) in detailInfoObj">
<div <div
...@@ -90,50 +169,50 @@ ...@@ -90,50 +169,50 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div> -->
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
export default { export default {
name: '', name: '',
data () { data() {
return { return {
detailInfo: {}, detailInfo: {},
detailInfoObj: [ detailInfoObj: [
{ {
list: [ list: [
{ {
label: '售后编号', label: '售后编号:',
key: 'refundCode', key: 'refundCode',
class:1 class: 1
}, },
{ {
label: '申请人', label: '申请人:',
key: 'accountName' key: 'accountName'
}, }
] ]
}, },
{ {
list: [ list: [
{ {
label: '订单渠道', label: '订单渠道:',
key: 'channelName', key: 'channelName',
class:1 class: 1
}, },
{ {
label: '申请时间', label: '申请时间:',
format (cell) { format(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') : ''
} }
}, }
], ]
}, },
{ {
list: [ list: [
{ {
label: '售后状态', label: '售后状态:',
class:1, class: 1,
format (cell) { format(cell) {
const refundStatusList = { const refundStatusList = {
1: '售后中', 1: '售后中',
2: '已拒绝', 2: '已拒绝',
...@@ -141,16 +220,16 @@ export default { ...@@ -141,16 +220,16 @@ export default {
} }
return `${refundStatusList[cell.refundStatus]}` return `${refundStatusList[cell.refundStatus]}`
} }
}, }
] ]
} }
], ]
} }
}, },
mounted () { mounted() {
let params = { orderCode: this.$route.query.orderCode } let params = { orderCode: this.$route.query.orderCode }
this.getDetail(params) this.getDetail(params)
this.$nextTick(() => { this.$nextTick(() => {
let clientHeight = document.documentElement.clientHeight let clientHeight = document.documentElement.clientHeight
let offsettop = document.getElementById('bottomBox').offsetTop let offsettop = document.getElementById('bottomBox').offsetTop
document.getElementById('bottomBox').style.minHeight = clientHeight - offsettop - 120 + 'px' document.getElementById('bottomBox').style.minHeight = clientHeight - offsettop - 120 + 'px'
...@@ -160,22 +239,117 @@ export default { ...@@ -160,22 +239,117 @@ export default {
// jump(){ // jump(){
// this.$router.push('/saleDetail') // this.$router.push('/saleDetail')
// }, // },
getDetail (params) { getDetail(params) {
this.$apis.orderApi.getRefundDetail(params).then(({ code, data }) => { this.$apis.orderApi.getRefundDetail(params).then(({ code, data }) => {
if (code == 0) { if (code == 0) {
console.log(data,'77777777777') console.log(data, '77777777777')
// 测试私域环境访问不到图片,线上可以 // 测试私域环境访问不到图片,线上可以
// data.list[0].img=this.getHttpsImgUrl(data.list[0].img) // data.list[0].img=this.getHttpsImgUrl(data.list[0].img)
// data.list[0].goodImg=this.getHttpsImgUrl( data.list[0].goodImg) // data.list[0].goodImg=this.getHttpsImgUrl( data.list[0].goodImg)
this.detailInfo = data.list[0] this.detailInfo = data.list[0]
} }
}) })
}, }
} }
} }
</script> </script>
<style src="@a/css/tao.css"></style> <style src="@a/css/tao.css"></style>
<style lang="scss" scoped> <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 { .flex .info {
margin-left: 10px; margin-left: 10px;
width: calc(100% - 110px); width: calc(100% - 110px);
...@@ -188,62 +362,62 @@ export default { ...@@ -188,62 +362,62 @@ export default {
.layout .box .grid .grid-item .item { .layout .box .grid .grid-item .item {
align-items: center; align-items: center;
} }
.layout{ .layout {
.topBox{ .topBox {
padding-top: 32px!important; padding-top: 32px !important;
} }
.box{ .box {
position: relative; position: relative;
padding-top: 20px; padding-top: 20px;
padding-left: 52px; padding-left: 52px;
.top-grid-item{ .top-grid-item {
.item{ .item {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
.label{ .label {
width: 71px; width: 71px;
text-align: right; text-align: right;
} }
.firstRow{ .firstRow {
margin-bottom: 14px; margin-bottom: 14px;
} }
} }
} }
.grid-item{ .grid-item {
.item{ .item {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
.money{ .money {
color: #EB4E4E; color: #eb4e4e;
} }
} }
} }
.backBtn{ .backBtn {
position: absolute; position: absolute;
right: 20px; right: 20px;
top: 20px; top: 20px;
} }
.grayRow{ .grayRow {
position: absolute; position: absolute;
top: 0px; top: 0px;
left: 0; left: 0;
width: 100%; width: 100%;
background-color: #F4F6FC; background-color: #f4f6fc;
z-index: 0; z-index: 0;
height: 54px; height: 54px;
} }
.sub-title{ .sub-title {
position: relative; position: relative;
z-index: 1; z-index: 1;
margin-bottom: 35px!important; margin-bottom: 35px !important;
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
} }
.grid{ .grid {
padding: 0; padding: 0;
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!