diff --git a/src/api/order/model/index.ts b/src/api/order/model/index.ts
index c4ebe1c..4cdbb5f 100644
--- a/src/api/order/model/index.ts
+++ b/src/api/order/model/index.ts
@@ -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;//当前期数
}
diff --git a/src/views/yunxinwei/order/components/order-info.vue b/src/views/yunxinwei/order/components/order-info.vue
index 6773e8a..ec2457d 100644
--- a/src/views/yunxinwei/order/components/order-info.vue
+++ b/src/views/yunxinwei/order/components/order-info.vue
@@ -313,6 +313,16 @@
>续费该设备
+
+
+
+ 一次性购买
+
+
+ 第{{ record.currPeriods }}期
+
+
+
@@ -571,24 +581,24 @@ const tableRef2 = ref | null>(null);
const columns2 = ref([
{
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: '订单号',