Commit 3bab88b8 by 杨北旺

更换订单详情表格展示

1 parent 163fe92c
...@@ -43,7 +43,14 @@ ...@@ -43,7 +43,14 @@
</template> </template>
</div> </div>
<div class="tableWrap"> <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>
<div class="price-box"> <div class="price-box">
<div class="price-item"> <div class="price-item">
...@@ -132,50 +139,48 @@ export default { ...@@ -132,50 +139,48 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '商品信息', label: '商品信息',
prop:'appearance',
addHtml:'imgText'
// minWidth: '300', // minWidth: '300',
formatter: cell => { // formatter: cell => {
let str = cell.appearance == 2 ? `<div>${cell.productName}${cell.denomination}</div>` : `<div>${cell.productName}</div>` // let str = cell.appearance == 2 ? `<div>${cell.productName}${cell.denomination}</div>` : `<div>${cell.productName}</div>`
return `<div class="goods"> // return `<div class="goods">
<div class="goods-img"> // <div class="goods-img">
<img src="${cell.goodsImage}" > // <img src="${cell.goodsImage}" >
</div> // </div>
<div class="goods-info"> // <div class="goods-info">
<div>${cell.brandName}</div> // <div>${cell.brandName}</div>
${str} // ${str}
</div> // </div>
</div>` // </div>`
} // }
}, },
{ {
label: '充值账号', label: '充值账号',
// prop: 'rechargeNumber',
prop: 'rechargeNumber' prop: 'rechargeNumber'
}, },
{ {
label: '商品形态', label: '商品形态',
prop: 'appearanceDesc' prop: 'appearanceDesc'
// minWidth: '200'
}, },
{ {
label: '单价/元', label: '单价/元',
prop: 'orderPrices' prop: 'orderPrices',
// minWidth: '200' align:'right'
}, },
{ {
label: '数量', label: '数量',
// minWidth: '200',
formatter: () => { formatter: () => {
return 1 return 1
} }
}, },
{ {
label: '小计/元', label: '小计/元',
prop: 'orderPrices' prop: 'orderPrices',
// minWidth: '200' align:'right'
}, },
{ {
label: '订单状态', label: '订单状态',
// minWidth: '200',
formatter: cell => { formatter: cell => {
return cell.appearance == 1 ? this.statusEnum[cell.orderStatus] : this.qb_statusEnum[cell.orderStatus] return cell.appearance == 1 ? this.statusEnum[cell.orderStatus] : this.qb_statusEnum[cell.orderStatus]
} }
...@@ -185,7 +190,6 @@ export default { ...@@ -185,7 +190,6 @@ export default {
} }
}, },
mounted() { mounted() {
console.log(this.$route, '11111111')
this.params = { orderCode: this.$route.query.orderCode } this.params = { orderCode: this.$route.query.orderCode }
this.thirdOrderCode = this.$route.query.thirdOrderCode this.thirdOrderCode = this.$route.query.thirdOrderCode
this.getDetail(this.params) 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!