feat:订单详情里面,学费记录,期数倒序
This commit is contained in:
@@ -80,6 +80,8 @@ export interface Order {
|
||||
address?: string;
|
||||
//是否申请退租,1为申请,2为取消
|
||||
isRefund?:number;
|
||||
|
||||
currPeriods?:number;//当前期数
|
||||
}
|
||||
|
||||
export interface OrderPay {
|
||||
@@ -113,6 +115,8 @@ export interface OrderPay {
|
||||
|
||||
//关联订单(即内部订单)
|
||||
rentOrderNo?:string;
|
||||
|
||||
currPeriods?:number;//当前期数
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -313,6 +313,16 @@
|
||||
>续费该设备</a-button>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<template v-if="column.key === 'currPeriods'">
|
||||
<view v-if="record.orderSource === 10" >
|
||||
<span>一次性购买</span>
|
||||
</view>
|
||||
<view v-else>
|
||||
<span>第{{ record.currPeriods }}期</span>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
</template>
|
||||
|
||||
</a-table>
|
||||
@@ -571,24 +581,24 @@ const tableRef2 = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||
const columns2 = ref<ColumnItem[]>([
|
||||
{
|
||||
title: '当前期数',
|
||||
dataIndex: 'index',
|
||||
key: 'index',
|
||||
customRender: ({index}) => {
|
||||
console.log({...order});
|
||||
|
||||
if (props.data.orderSource == 20) {
|
||||
if (index == 0) {
|
||||
return '首期';
|
||||
} else {
|
||||
return '第' + index + '期';
|
||||
}
|
||||
} else if (props.data.orderSource == 30 || props.data.orderSource == 40) {
|
||||
return '第' + (index + 1) + '期';
|
||||
} else if (props.data.orderSource == 10) {
|
||||
return '一次性购买';
|
||||
}
|
||||
|
||||
}
|
||||
dataIndex: 'currPeriods',
|
||||
key: 'currPeriods'
|
||||
// customRender: ({currPeriods}) => {
|
||||
// console.log({...order});
|
||||
//
|
||||
// if (props.data.orderSource == 20) {
|
||||
// if (currPeriods == 0) {
|
||||
// return '首期';
|
||||
// } else {
|
||||
// return '第' + currPeriods + '期';
|
||||
// }
|
||||
// } else if (props.data.orderSource == 30 || props.data.orderSource == 40) {
|
||||
// return '第' + (currPeriods + 1) + '期';
|
||||
// } else if (props.data.orderSource == 10) {
|
||||
// return '一次性购买';
|
||||
// }
|
||||
//
|
||||
// }
|
||||
},
|
||||
{
|
||||
title: '订单号',
|
||||
|
||||
Reference in New Issue
Block a user