Commit 515362e6 by Sixong.Zhu
parents 12cfe2d1 b164ce1b
Showing with 9 additions and 19 deletions
......@@ -28,6 +28,8 @@ export const statusMapping = new Map<OrderStatus, string>([
export interface OrderTableListItem {
id: string;
v: string;
no: string;
title: string;
time: string;
chat: number;
......@@ -50,11 +52,14 @@ export interface OrderTableListItem {
RefundedAmount: number;
}
export const orderTableListItemPredict = {
export const orderPredict = {
id: "ID",
v: 'uniplat_version',
no: 'OrderDocNo',
title: "ProductId#product.OuterName",
status: "Status",
time: "CreatedDate",
createTime: 'CreatedDate',
PayAmount: "PayAmount",
PaidAmount: "PaidAmount",
RefundAmount: "RefundAmount",
......@@ -128,14 +133,6 @@ export const enum OperationType {
Backend,
}
export interface OrderRowItem {
status: OrderStatus;
no: string;
createTime: string;
v: string;
id: string;
}
export interface PaymentDetail {
status: PayStatus;
time: string;
......
......@@ -4,12 +4,11 @@ import {
OperationType,
OrderStatus,
OrderTableListItem,
orderTableListItemPredict,
orderPredict,
SrcPlatform,
OrderPayItem,
PaymentDetail,
UploadImageItem,
OrderRowItem
} from "../model";
class OrderService {
......@@ -68,7 +67,7 @@ class OrderService {
.then((r) =>
this.handler.buildRows<OrderTableListItem>(
r.pageData.rows,
orderTableListItemPredict
orderPredict
)
);
}
......@@ -148,13 +147,7 @@ class OrderService {
}
public buildOrder(o: metaRow) {
return this.handler.buildRow<OrderRowItem>(o, {
status: 'Status',
no: 'OrderDocNo',
createTime: 'CreatedDate',
v: 'uniplat_version',
id: 'ID'
});
return this.handler.buildRow<OrderTableListItem>(o, orderPredict);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment