Commit 0059e3e9 by Sixong.Zhu

update

parent d77c09b4
Showing with 44 additions and 1 deletions
......@@ -134,3 +134,16 @@ export interface OrderRowItem {
v: 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 {
OrderTableListItem,
orderTableListItemPredict,
SrcPlatform,
OrderPayItem
OrderPayItem,
PaymentDetail
} from "../model";
class OrderService {
......@@ -84,6 +85,35 @@ class OrderService {
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();
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