|
@@ -10,6 +10,7 @@ enum Api {
|
|
|
delete = '/basic-api/goods/delete',
|
|
|
info = '/basic-api/goods/info/',
|
|
|
update = '/basic-api/goods/update',
|
|
|
+ save = '/basic-api/goods/save',
|
|
|
queryAll = '/basic-api/specification/queryAll',
|
|
|
}
|
|
|
|
|
@@ -53,6 +54,16 @@ export const UnSaleApi = (params: string[]) =>
|
|
|
},
|
|
|
});
|
|
|
|
|
|
+export const SaveSaleApi = (params: any) =>
|
|
|
+ defHttp.post<Result>({
|
|
|
+ url: Api.save,
|
|
|
+ data: params,
|
|
|
+ headers: {
|
|
|
+ // @ts-ignore
|
|
|
+ ignoreCancelToken: true,
|
|
|
+ },
|
|
|
+ });
|
|
|
+
|
|
|
export const UpdateSaleApi = (params: any) =>
|
|
|
defHttp.post<Result>({
|
|
|
url: Api.update,
|