Commit 3bab88b8 by 杨北旺

更换订单详情表格展示

1 parent 163fe92c
......@@ -43,7 +43,14 @@
</template>
</div>
<div class="tableWrap">
<d2-table :tableParams="tableParams" :tableData="tableData" :hasNum="false" :hasPage="false"></d2-table>
<GLTable v-if="tableData.length" :tableParams="tableParams" :tableData="tableData" :hasNum="false" :hasPage="false">
<div slot="imgText" slot-scope="scope">
<img class="goods-img" :src="scope.scope.goodsImage">
<div class="goods-info">{{scope.scope.brandName}}</div>
<div class="goods-info" v-if="scope.scope.appearance">{{scope.scope.productName}}{{scope.scope.denomination}}</div>
<div class="goods-info" v-else>{{scope.scope.productName}}{{scope.scope.productName}}</div>
</div>
</GLTable>
</div>
<div class="price-box">
<div class="price-item">
......@@ -132,50 +139,48 @@ export default {
tableColumns: [
{
label: '商品信息',
prop:'appearance',
addHtml:'imgText'
// minWidth: '300',
formatter: cell => {
let str = cell.appearance == 2 ? `<div>${cell.productName}${cell.denomination}</div>` : `<div>${cell.productName}</div>`
return `<div class="goods">
<div class="goods-img">
<img src="${cell.goodsImage}" >
</div>
<div class="goods-info">
<div>${cell.brandName}</div>
${str}
</div>
</div>`
}
// formatter: cell => {
// let str = cell.appearance == 2 ? `<div>${cell.productName}${cell.denomination}</div>` : `<div>${cell.productName}</div>`
// return `<div class="goods">
// <div class="goods-img">
// <img src="${cell.goodsImage}" >
// </div>
// <div class="goods-info">
// <div>${cell.brandName}</div>
// ${str}
// </div>
// </div>`
// }
},
{
label: '充值账号',
// prop: 'rechargeNumber',
prop: 'rechargeNumber'
},
{
label: '商品形态',
prop: 'appearanceDesc'
// minWidth: '200'
},
{
label: '单价/元',
prop: 'orderPrices'
// minWidth: '200'
prop: 'orderPrices',
align:'right'
},
{
label: '数量',
// minWidth: '200',
formatter: () => {
return 1
}
},
{
label: '小计/元',
prop: 'orderPrices'
// minWidth: '200'
prop: 'orderPrices',
align:'right'
},
{
label: '订单状态',
// minWidth: '200',
formatter: cell => {
return cell.appearance == 1 ? this.statusEnum[cell.orderStatus] : this.qb_statusEnum[cell.orderStatus]
}
......@@ -185,7 +190,6 @@ export default {
}
},
mounted() {
console.log(this.$route, '11111111')
this.params = { orderCode: this.$route.query.orderCode }
this.thirdOrderCode = this.$route.query.thirdOrderCode
this.getDetail(this.params)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!