|
@@ -1,5 +1,12 @@
|
|
|
import { defHttp } from '/@/utils/http/axios';
|
|
|
-import { PageParams, RentListGetResultModel,InvoiceListResul, addCameraParams, updateParams,getItemParams } from './model';
|
|
|
+import {
|
|
|
+ PageParams,
|
|
|
+ RentListGetResultModel,
|
|
|
+ InvoiceListResul,
|
|
|
+ addCameraParams,
|
|
|
+ updateParams,
|
|
|
+ getItemParams,
|
|
|
+} from './model';
|
|
|
import { Result } from '/#/axios';
|
|
|
|
|
|
enum Api {
|
|
@@ -8,10 +15,9 @@ enum Api {
|
|
|
cameraItem = '/newV4/service/manage/order/camera/item',
|
|
|
incrementList = '/newV4/service/manage/order/increment/list',
|
|
|
incrementExport = '/newV4/service/manage/order/increment/export',
|
|
|
- downList = '/newV4//service/manage/order/down/list',
|
|
|
+ downList = '/newV4/service/manage/order/down/list',
|
|
|
downExport = '/newV4/service/manage/order/down/export',
|
|
|
pageInvoice = '/newV4/service/manage/invoice/pageInvoice',
|
|
|
-
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -29,21 +35,20 @@ export const CameraList = (params: PageParams) =>
|
|
|
},
|
|
|
});
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* @description: Get sample list value
|
|
|
*/
|
|
|
|
|
|
export const CameraItem = (params: getItemParams) =>
|
|
|
-defHttp.get<Result>({
|
|
|
- url: Api.cameraItem,
|
|
|
- params,
|
|
|
- data: params,
|
|
|
- headers: {
|
|
|
- // @ts-ignore
|
|
|
- ignoreCancelToken: true,
|
|
|
- },
|
|
|
-});
|
|
|
+ defHttp.get<Result>({
|
|
|
+ url: Api.cameraItem,
|
|
|
+ params,
|
|
|
+ data: params,
|
|
|
+ headers: {
|
|
|
+ // @ts-ignore
|
|
|
+ ignoreCancelToken: true,
|
|
|
+ },
|
|
|
+ });
|
|
|
|
|
|
/**
|
|
|
* @description: 导出订单
|
|
@@ -60,55 +65,53 @@ export const CameraExport = (params: PageParams) =>
|
|
|
},
|
|
|
});
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* @description: Get sample list value
|
|
|
*/
|
|
|
-
|
|
|
- export const IncrementExport = (params: PageParams) =>
|
|
|
- defHttp.get<Result>({
|
|
|
- url: Api.incrementExport,
|
|
|
- params: params,
|
|
|
- // data: params,
|
|
|
- headers: {
|
|
|
- // @ts-ignore
|
|
|
- ignoreCancelToken: true,
|
|
|
- },
|
|
|
- });
|
|
|
-
|
|
|
- export const IncrementList = (params: PageParams) =>
|
|
|
- defHttp.post<Result>({
|
|
|
- url: Api.incrementList,
|
|
|
- params: params,
|
|
|
- // data: params,
|
|
|
- headers: {
|
|
|
- // @ts-ignore
|
|
|
- ignoreCancelToken: true,
|
|
|
- },
|
|
|
- });
|
|
|
|
|
|
-
|
|
|
+export const IncrementExport = (params: PageParams) =>
|
|
|
+ defHttp.get<Result>({
|
|
|
+ url: Api.incrementExport,
|
|
|
+ params: params,
|
|
|
+ // data: params,
|
|
|
+ headers: {
|
|
|
+ // @ts-ignore
|
|
|
+ ignoreCancelToken: true,
|
|
|
+ },
|
|
|
+ });
|
|
|
+
|
|
|
+export const IncrementList = (params: PageParams) =>
|
|
|
+ defHttp.post<Result>({
|
|
|
+ url: Api.incrementList,
|
|
|
+ params: params,
|
|
|
+ // data: params,
|
|
|
+ headers: {
|
|
|
+ // @ts-ignore
|
|
|
+ ignoreCancelToken: true,
|
|
|
+ },
|
|
|
+ });
|
|
|
+
|
|
|
export const DownExport = (params: PageParams) =>
|
|
|
-defHttp.get<Result>({
|
|
|
- url: Api.downExport,
|
|
|
- params: params,
|
|
|
- // data: params,
|
|
|
- headers: {
|
|
|
- // @ts-ignore
|
|
|
- ignoreCancelToken: true,
|
|
|
- },
|
|
|
-});
|
|
|
+ defHttp.get<Result>({
|
|
|
+ url: Api.downExport,
|
|
|
+ params: params,
|
|
|
+ // data: params,
|
|
|
+ headers: {
|
|
|
+ // @ts-ignore
|
|
|
+ ignoreCancelToken: true,
|
|
|
+ },
|
|
|
+ });
|
|
|
|
|
|
export const DownList = (params: PageParams) =>
|
|
|
-defHttp.post<Result>({
|
|
|
- url: Api.downList,
|
|
|
- params: params,
|
|
|
- // data: params,
|
|
|
- headers: {
|
|
|
- // @ts-ignore
|
|
|
- ignoreCancelToken: true,
|
|
|
- },
|
|
|
-});
|
|
|
+ defHttp.post<Result>({
|
|
|
+ url: Api.downList,
|
|
|
+ params: params,
|
|
|
+ // data: params,
|
|
|
+ headers: {
|
|
|
+ // @ts-ignore
|
|
|
+ ignoreCancelToken: true,
|
|
|
+ },
|
|
|
+ });
|
|
|
export const InvoiceList = (params: PageParams) =>
|
|
|
defHttp.post<InvoiceListResul>({
|
|
|
url: Api.pageInvoice,
|
|
@@ -156,4 +159,4 @@ export const InvoiceList = (params: PageParams) =>
|
|
|
// // @ts-ignore
|
|
|
// ignoreCancelToken: true,
|
|
|
// },
|
|
|
-// });
|
|
|
+// });
|