Commit 40958fe9 by zhouzy

1

1 parent 1684e086
......@@ -84,7 +84,8 @@ export default {
this.$apis.goodsEquityManageApi.getGoodsList({ goodsCategoryId,pageSize: this.$refs.goodsTable.page.pageSize, pageNum: this.$refs.goodsTable.page.pageNum }).then(({ data }) => {
if (!callBack) {
this.goodsTableData = data.list || []
console.log(data,'data');
console.log(data.total,'data');
this.tableTotal = data.total
} else {
return callBack(data.list)
}
......
<template>
<div class="equity-wrap list">
<div class="container">
<div class="list">
<div class="equity-wrap contain">
<div class="equity-title">商品权益</div>
<div class="tableBox" style="margin-top: 16px">
<el-button type="primary" size="small" @click="addEquity(1)">
......@@ -46,7 +46,7 @@
</div>
<div class="noneOperation">
<GLTable ref="goodsTable" :tableParams="goodsTableParams" :tableData="goodsTableData" :pageConf="goodsDatail" >
<GLTable ref="goodsTable" :tableParams="goodsTableParams" :tableData="goodsTableData" :tableTotal="tableTotal">
<div slot="mainPageFlag" slot-scope="scope">
<el-button type="text" @click="goodsDisplay(scope.scope)">{{ scope.scope.mainPageFlag == 1 ? '取消首页展示' : '首页展示' }}</el-button>
</div>
......@@ -76,7 +76,7 @@ export default {
return {
getCardListApi: this.$apis.carEquityManageApi.getCarList,
getGoodListApi: this.$apis.goodsEquityManageApi.getGoodsList,
goodsDatail: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'data.total' },
tableTotal: '',
cardsDatail: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'data.total' },
showDialog: false,
isEdit: false,
......@@ -85,8 +85,8 @@ export default {
}
},
mounted() {
this.$refs.goodsTable.tableHeightValues = '320'
this.$refs.carTable.tableHeightValues = '320'
this.$refs.goodsTable.tableHeightValues = '500'
this.$refs.carTable.tableHeightValues = '500'
this.init()
},
methods: {
......@@ -279,9 +279,12 @@ border-radius: 4px;
flex-direction: row;
margin-top: 18px;
}
.list .container{
.list .contain{
background: #F4F5FA;
margin: 0px 20px 20px 40px;
padding: 20px;
}
.list{
box-shadow: initial;
}
</style>
\ No newline at end of file
......@@ -38,10 +38,12 @@
</div>
<GLTable v-if="flag" ref="table" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<span slot="goodsMsg" slot-scope="scope">
<div>订单编号:{{ scope.scope.orderCode }}</div>
<div>{{ scope.scope.brandName }}</div>
<div>{{ scope.scope.appearance == 2 ? scope.scope.productName + scope.scope.denomination : scope.scope.productName }}</div>
</span>
<span slot="orderNum" slot-scope="scope">
<div>{{ scope.scope.orderCode }}</div>
</span>
<span slot="priceAmount" slot-scope="scope">
<div>{{ scope.scope.salePrices }}元</div>
<div>{{ scope.scope.goodsQuality }}张</div>
......@@ -86,15 +88,14 @@ export default {
tableColumns: [
{
label: '商品信息',
width: '280',
width: '100',
align: 'left',
addHtml: 'goodsMsg'
// formatter: (cell) => {
// let str = cell.appearance == 2 ? `${cell.productName}${cell.denomination}` : `${cell.productName}`
// return `订单编号:${cell.orderCode}
// ${cell.brandName}
// ${str}`
// }
},
{
label: '订单编号',
width: '280',
addHtml: 'orderNum'
},
{
label: '订单门店',
......
......@@ -37,23 +37,23 @@
<GLTable v-if="flag" ref="table" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<span slot="desc" slot-scope="scope">
<div class="refund-box">
售后编号:{{ scope.scope.refundCode }}
<div class="refund-img-box">
<img :src="scope.scope.img" alt="" />
</div>
<div>{{ scope.scope.reason }}</div>
</div>
</span>
<span slot="number" slot-scope="scope">
<div class="refund-box">售后编号:{{ scope.scope.refundCode }}</div>
</span>
<span slot="goodMsg" slot-scope="scope">
<div class="refund-box">
<div class="refund-title">订单编号:{{ scope.scope.orderCode }}</div>
<div class="mb10">{{ scope.scope.brandName }}</div>
<div>{{ scope.scope.productName }}</div>
</div>
</span>
<span slot="priceAmount" slot-scope="scope">
<div class="refund-box">
<div class="refund-title">订单门店:{{ scope.scope.merchantName }}</div>
<div class="mb10">{{ scope.scope.orderPrices }}元</div>
<div>{{ scope.scope.goodsQuality }}张</div>
</div>
......@@ -65,6 +65,16 @@
<span slot="auth-button" slot-scope="scope" :data="scope.scope">
<el-button type="text" @click="jump(scope.scope, 'sale')" size="small">查看详情</el-button>
</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>
</div>
</div>
......@@ -98,42 +108,34 @@ export default {
{
label: '售后描述',
minWidth: '300',
minWidth: '150',
align: 'left',
addHtml: 'desc'
// formatter: cell => {
// return `<div class="refund-box">
// 售后编号:${cell.refundCode}
// <div class="refund-img-box">
// <img src="${cell.img}">
// </div>
// ${cell.reason}
// </div>`
// }
},
{
label: '商品信息',
label: '售后编号',
minWidth: '300',
addHtml: 'number'
},
{
label: '商品信息',
minWidth: '150',
addHtml: 'goodMsg'
// formatter: cell => {
// return `<div class="refund-box">
// <div class="refund-title">订单编号:${cell.orderCode}</div>
// <div>${cell.brandName}</div>
// <div>${cell.productName}</div>
// </div>`
// }
},
{
label: '订单编号',
minWidth: '300',
addHtml: 'orderNum'
},
{
label: '价格/数量',
minWidth: '300',
addHtml: 'priceAmount'
// formatter: cell => {
// return `<div class="refund-box">
// <div class="refund-title">订单门店:${cell.merchantName}</div>
// <div>${cell.orderPrices}元</div>
// <div>${cell.goodsQuality}张</div>
// </div>`
// }
},
{
label: '订单渠道',
minWidth: '300',
addHtml: 'stores'
},
{
label: '实收金额',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!