Commit 9539beaa by 杨铁龙

优化代码

parent 1af94dfd
Showing with 1 additions and 8 deletions
...@@ -16,20 +16,13 @@ class OrderService { ...@@ -16,20 +16,13 @@ class OrderService {
productId: number; productId: number;
srcPlatform: SrcPlatform; srcPlatform: SrcPlatform;
createdType: OperationType; createdType: OperationType;
title?: string;
}) { }) {
const sdk = Chat.getSdk(); const sdk = Chat.getSdk();
return sdk.model(this.generalOrder).action('addOrder').addInputs_parameter({ return sdk.model(this.generalOrder).action('addOrder').addInputs_parameter({
ProductId: params.productId, ProductId: params.productId,
SrcPlatform: params.srcPlatform, SrcPlatform: params.srcPlatform,
CreatedType: params.createdType CreatedType: params.createdType
}).execute().then(r => { }).execute();
return store.dispatch(`${ChatStore.ns}/${ChatStore.ACTION_CREATE_NEW_CHAT_BY_CLIENT}`, {
modelName: this.generalOrder,
selectedListId: r.id,
title: params.title
});
});
} }
public updateOrderStatus(id: number | string, v: number, status: OrderStatus) { public updateOrderStatus(id: number | string, v: number, status: OrderStatus) {
......
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