Commit 9539beaa by 杨铁龙

优化代码

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