Commit a51ccc2f by 杨铁龙

合并interface

parent 9abb4afc
Showing with 7 additions and 19 deletions
...@@ -50,11 +50,14 @@ export interface OrderTableListItem { ...@@ -50,11 +50,14 @@ export interface OrderTableListItem {
RefundedAmount: number; RefundedAmount: number;
} }
export const orderTableListItemPredict = { export const orderPredict = {
id: "ID", id: "ID",
v: 'uniplat_version',
no: 'OrderDocNo',
title: "ProductId#product.OuterName", title: "ProductId#product.OuterName",
status: "Status", status: "Status",
time: "CreatedDate", time: "CreatedDate",
createTime: 'CreatedDate',
PayAmount: "PayAmount", PayAmount: "PayAmount",
PaidAmount: "PaidAmount", PaidAmount: "PaidAmount",
RefundAmount: "RefundAmount", RefundAmount: "RefundAmount",
...@@ -128,14 +131,6 @@ export const enum OperationType { ...@@ -128,14 +131,6 @@ export const enum OperationType {
Backend, Backend,
} }
export interface OrderRowItem {
status: OrderStatus;
no: string;
createTime: string;
v: string;
id: string;
}
export interface PaymentDetail { export interface PaymentDetail {
status: PayStatus; status: PayStatus;
time: string; time: string;
......
...@@ -4,12 +4,11 @@ import { ...@@ -4,12 +4,11 @@ import {
OperationType, OperationType,
OrderStatus, OrderStatus,
OrderTableListItem, OrderTableListItem,
orderTableListItemPredict, orderPredict,
SrcPlatform, SrcPlatform,
OrderPayItem, OrderPayItem,
PaymentDetail, PaymentDetail,
UploadImageItem, UploadImageItem,
OrderRowItem
} from "../model"; } from "../model";
class OrderService { class OrderService {
...@@ -59,7 +58,7 @@ class OrderService { ...@@ -59,7 +58,7 @@ class OrderService {
.then((r) => .then((r) =>
this.handler.buildRows<OrderTableListItem>( this.handler.buildRows<OrderTableListItem>(
r.pageData.rows, r.pageData.rows,
orderTableListItemPredict orderPredict
) )
); );
} }
...@@ -139,13 +138,7 @@ class OrderService { ...@@ -139,13 +138,7 @@ class OrderService {
} }
public buildOrder(o: metaRow) { public buildOrder(o: metaRow) {
return this.handler.buildRow<OrderRowItem>(o, { return this.handler.buildRow<OrderTableListItem>(o, orderPredict);
status: 'Status',
no: 'OrderDocNo',
createTime: 'CreatedDate',
v: 'uniplat_version',
id: 'ID'
});
} }
} }
......
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