Commit 0059e3e9 by Sixong.Zhu

update

parent d77c09b4
Showing with 44 additions and 1 deletions
...@@ -134,3 +134,16 @@ export interface OrderRowItem { ...@@ -134,3 +134,16 @@ export interface OrderRowItem {
v: string; v: string;
id: string; id: string;
} }
export interface PaymentDetail {
status: PayStatus;
time: string;
dueTime: string;
method: PayMethod;
method_label: string;
type: string;
desc: string;
agent: string;
id: number;
v: number;
}
...@@ -6,7 +6,8 @@ import { ...@@ -6,7 +6,8 @@ import {
OrderTableListItem, OrderTableListItem,
orderTableListItemPredict, orderTableListItemPredict,
SrcPlatform, SrcPlatform,
OrderPayItem OrderPayItem,
PaymentDetail
} from "../model"; } from "../model";
class OrderService { class OrderService {
...@@ -84,6 +85,35 @@ class OrderService { ...@@ -84,6 +85,35 @@ class OrderService {
return []; return [];
}); });
} }
public getPayment(id: string | number) {
return Chat.getSdk()
.model(orderService.generalOrderPaymentModel)
.detail(id as string, "userOrderPaymentDetail")
.query()
.then((r) =>
this.handler.buildRow<PaymentDetail>(r.row, {
status: "Status",
time: "PaymentDate",
dueTime: "PaymentDueDate",
method: "PaymentFunction_label",
type: "ItemName",
desc: "PaymentDesc",
agent: "ProviderCollectId#provider_agent.AgentTrueName",
id: "ID",
v: "uniplat_version",
})
);
}
public addImage4Payment(id: number | string, v: number, path: string) {
return Chat.getSdk()
.model(orderService.generalOrderPaymentModel)
.action("addImages")
.updateInitialParams({ selected_list: [{ v, id: id as number }] })
.addInputs_parameter({ images: path })
.execute();
}
} }
export const orderService = new OrderService(); export const orderService = new OrderService();
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