Commit caa8e5f5 by 杨铁龙

设置备注

parent 483d728f
Showing with 22 additions and 2 deletions
......@@ -28,7 +28,7 @@ export const statusMapping = new Map<OrderStatus, string>([
export interface OrderTableListItem {
id: string;
v: string;
v: number;
no: string;
title: string;
time: string;
......@@ -50,6 +50,8 @@ export interface OrderTableListItem {
* 已退款金额
*/
RefundedAmount: number;
remarkTitle: string;
remarkContent: string;
}
export const orderPredict = {
......@@ -65,6 +67,8 @@ export const orderPredict = {
RefundAmount: "RefundAmount",
RefundedAmount: "RefundedAmount",
chat: "UniplatImChatId",
remarkTitle: "Title",
remarkContent: "Remark"
};
export const enum PayStatus {
......@@ -114,6 +118,9 @@ export interface OrderPayItem {
agent: string;
createdTime: string;
actions?: any[];
bankAccountName?: string;
OpenningBankNam?: string;
bankAccountNo?: string;
}
export const orderPayItemPredict = {
......@@ -128,7 +135,10 @@ export const orderPayItemPredict = {
v: "uniplat_version",
title: "ItemName",
value: "Amount",
createdTime: "CreatedDate"
createdTime: "CreatedDate",
bankAccountName: "ProviderHandleId#ServiceProviderBank.AccountName",
OpenningBankNam: "ProviderHandleId#ServiceProviderBank.OpenningBankNam",
bankAccountNo: "ProviderHandleId#ServiceProviderBank.AccountNo",
}
export const enum ChatOpenDirection {
......
......@@ -142,6 +142,16 @@ class OrderService {
public buildOrder(o: metaRow) {
return this.handler.buildRow<OrderTableListItem>(o, orderPredict);
}
/** 设置备注 */
public setRemark(id: string, v: number, data: { Title: string, Remark: string }) {
return Chat.getSdk()
.model(this.generalOrder)
.action('editTitle')
.updateInitialParams({ selected_list: [{ v, id: +id }] })
.addInputs_parameter(data)
.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