|
@@ -1,5 +1,6 @@
|
|
|
<template>
|
|
|
<div class="DetailsSetmeal">
|
|
|
+ <v-select v-show="false" ref="payType" code="PAY_PROCUCT_TYPE" placeholder="支付方式"></v-select>
|
|
|
<a-modal
|
|
|
class="DetailsSetmealModal"
|
|
|
title="套餐购买详情"
|
|
@@ -27,7 +28,7 @@
|
|
|
</a-col>
|
|
|
<a-col :span="8" class="item-cont">
|
|
|
<p class="item-label">销售合作商:</p>
|
|
|
- <p class="item-main">{{ detailsData.orderBundle.useStoreName || '--' }}</p>
|
|
|
+ <p class="item-main">{{ detailsData.dataSourceName || '--' }}</p>
|
|
|
</a-col>
|
|
|
<a-col :span="8" class="item-cont">
|
|
|
<p class="item-label">套餐名称:</p>
|
|
@@ -47,7 +48,7 @@
|
|
|
</a-col>
|
|
|
<a-col :span="8" class="item-cont">
|
|
|
<p class="item-label">支付方式:</p>
|
|
|
- <p class="item-main">{{ detailsData.orderBundle.payType || '--' }}</p>
|
|
|
+ <p class="item-main">{{ $refs.payType.getNameByCode(detailsData.paymentDetailList[0].payType) }}</p>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
<a-tabs type="card">
|
|
@@ -73,6 +74,10 @@
|
|
|
:dataSource="recordData"
|
|
|
:pagination="false"
|
|
|
bordered>
|
|
|
+ <!-- 车牌号 -->
|
|
|
+ <span slot="vehicleNumber" slot-scope="text, record">{{ record.orderBundle.vehicleNumber || '--' }}</span>
|
|
|
+ <!-- 服务门店 -->
|
|
|
+ <span slot="dataSourceName" slot-scope="text, record">{{ record.orderBundle.dataSourceName || '--' }}</span>
|
|
|
</a-table>
|
|
|
</a-tab-pane>
|
|
|
</a-tabs>
|
|
@@ -109,12 +114,12 @@ export default {
|
|
|
],
|
|
|
recordColumns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: 60, align: 'center' },
|
|
|
- { title: '使用时间', dataIndex: 'orderNo', width: 100, align: 'center' },
|
|
|
- { title: '车牌号', dataIndex: 'orderTime', width: 100, align: 'center' },
|
|
|
- { title: '服务内容', dataIndex: 'orderTimes', width: 100, align: 'center' },
|
|
|
- { title: '服务门店', dataIndex: 'orderTimess', width: 100, align: 'center' },
|
|
|
- { title: '使用数量', dataIndex: 'orderTimesss', width: 100, align: 'center' },
|
|
|
- { title: '工单', dataIndex: 'orderTimessss', width: 100, align: 'center' }
|
|
|
+ { title: '使用时间', dataIndex: 'createDate', width: 100, align: 'center' },
|
|
|
+ { title: '车牌号', scopedSlots: { customRender: 'vehicleNumber' }, width: 100, align: 'center' },
|
|
|
+ { title: '服务内容', dataIndex: 'itemName', width: 100, align: 'center' },
|
|
|
+ { title: '服务门店', scopedSlots: { customRender: 'dataSourceName' }, width: 100, align: 'center' },
|
|
|
+ { title: '使用数量', dataIndex: 'times', width: 100, align: 'center' },
|
|
|
+ { title: '工单', dataIndex: 'orderBundle.number', width: 100, align: 'center' }
|
|
|
],
|
|
|
setMealData: [], // 套餐内容
|
|
|
recordData: [], // 使用记录
|
|
@@ -146,17 +151,14 @@ export default {
|
|
|
customerBundleUseHistory({ id: id }).then(res => {
|
|
|
console.log(res)
|
|
|
if (res.status == 200) {
|
|
|
- // this.recordData = res.data.customerBundleItemList
|
|
|
- const recordData = []
|
|
|
if (res.data.customerBundleItemList && res.data.customerBundleItemList.length > 0) {
|
|
|
res.data.customerBundleItemList.map((item, index) => {
|
|
|
- recordData.push({
|
|
|
- no: index + 1
|
|
|
-
|
|
|
- })
|
|
|
+ item.no = index + 1
|
|
|
})
|
|
|
+ this.recordData = res.data.customerBundleItemList
|
|
|
+ } else {
|
|
|
+ this.recordData = []
|
|
|
}
|
|
|
- this.recordData = recordData
|
|
|
} else {
|
|
|
this.recordData = []
|
|
|
}
|