Commit caa8e5f5 by 杨铁龙

设置备注

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