曾国涛
authored
|
1
2
3
4
|
import {
postServiceConstInvoiceFlushStatus,
postServiceConstInvoiceReissueRecordStatus,
postServiceConstPayees,
|
曾国涛
authored
|
5
|
postServiceConstProductCollectBillStatus,
|
曾国涛
authored
|
6
|
postServiceConstProducts,
|
曾国涛
authored
|
7
|
postServiceConstStores,
|
曾国涛
authored
|
8
|
} from '@/services';
|
曾国涛
authored
|
9
10
11
12
13
14
15
|
import { useCallback } from 'react';
export default () => {
const getPayees = useCallback(async () => {
const result = await postServiceConstPayees();
return result.data;
}, []);
|
曾国涛
authored
|
16
17
18
19
20
21
22
23
|
const getInvoiceReissueRecordStatus = useCallback(async () => {
const result = await postServiceConstInvoiceReissueRecordStatus();
return result.data;
}, []);
const getInvoiceFlushStatus = useCallback(async () => {
const result = await postServiceConstInvoiceFlushStatus();
return result.data;
}, []);
|
曾国涛
authored
|
24
25
26
27
28
29
30
31
|
const getProductCollectBillAuditStatus = useCallback(async () => {
const result = await postServiceConstProductCollectBillStatus();
return result.data;
}, []);
const getWarehouse = useCallback(async () => {
const result = await postServiceConstStores();
return result.data;
}, []);
|
曾国涛
authored
|
32
33
34
35
|
const getProducts = useCallback(async () => {
const res = await postServiceConstProducts();
return res.data;
}, []);
|
曾国涛
authored
|
36
37
38
39
40
41
|
return {
getPayees,
getInvoiceReissueRecordStatus,
getInvoiceFlushStatus,
getProductCollectBillAuditStatus,
getWarehouse,
|
曾国涛
authored
|
42
|
getProducts,
|
曾国涛
authored
|
43
|
};
|
曾国涛
authored
|
44
|
};
|