mg-ocr-invoice 0.2.1 → 0.2.3-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +10229 -9899
- package/dist/index.umd.js +39 -45
- package/dist/style.css +1 -1
- package/dist/types/api/invoice.d.ts +1 -0
- package/dist/types/components/Invoice/const.d.ts +4 -0
- package/dist/types/components/Invoice/index.vue.d.ts +11 -20
- package/dist/types/components/Invoice copy/index.vue.d.ts +23 -0
- package/dist/types/components/InvoiceList/const.d.ts +3 -1
- package/dist/types/components/InvoiceList/index.vue.d.ts +5 -7
- package/dist/types/components/OCRInvoice/const.d.ts +66 -0
- package/dist/types/utils/number.d.ts +1 -0
- package/package.json +2 -1
- package/src/components/Invoice/const.ts +4 -0
- package/src/components/Invoice/index.vue +422 -224
- package/src/components/Invoice copy/index.vue +343 -0
- package/src/components/InvoiceList/const.ts +9 -1
- package/src/components/InvoiceList/index.vue +80 -47
- package/src/components/OCRInvoice/const.ts +70 -0
- package/src/components/OCRInvoice/index.vue +11 -4
- package/src/components/PaymentMode/index.vue +0 -1
|
@@ -2,3 +2,4 @@ export declare const __uploadInvoice: (data: any, token?: string) => Promise<imp
|
|
|
2
2
|
export declare const __getUploadInvoiceList: (data: any, token?: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
3
3
|
export declare const __deleteInvoice: (data: any, token?: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
4
4
|
export declare const __updateInvoice: (data: any, token?: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
|
+
export declare const __updateInvoiceData: (data: any, token?: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -1,23 +1,14 @@
|
|
|
1
1
|
import '@/utils/disableZoom';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
ids
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
invoiceData
|
|
8
|
-
|
|
9
|
-
required: true;
|
|
10
|
-
};
|
|
11
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "saveSuccess"[], "saveSuccess", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
-
ids: {
|
|
13
|
-
type: ObjectConstructor;
|
|
14
|
-
required: true;
|
|
15
|
-
};
|
|
16
|
-
invoiceData: {
|
|
17
|
-
type: ObjectConstructor;
|
|
18
|
-
required: true;
|
|
19
|
-
};
|
|
20
|
-
}>> & {
|
|
2
|
+
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
3
|
+
ids?: any;
|
|
4
|
+
invoiceData?: any;
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "saveSuccess"[], "saveSuccess", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
6
|
+
ids?: any;
|
|
7
|
+
invoiceData?: any;
|
|
8
|
+
}>>> & {
|
|
21
9
|
onSaveSuccess?: ((...args: any[]) => any) | undefined;
|
|
22
|
-
}, {
|
|
10
|
+
}, {
|
|
11
|
+
readonly ids?: any;
|
|
12
|
+
readonly invoiceData?: any;
|
|
13
|
+
}, {}>;
|
|
23
14
|
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import '@/utils/disableZoom';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
ids: {
|
|
4
|
+
type: ObjectConstructor;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
invoiceData: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "saveSuccess"[], "saveSuccess", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
ids: {
|
|
13
|
+
type: ObjectConstructor;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
invoiceData: {
|
|
17
|
+
type: ObjectConstructor;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
}>> & {
|
|
21
|
+
onSaveSuccess?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
}, {}, {}>;
|
|
23
|
+
export default _default;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export declare const const_invoiceStatus: any;
|
|
2
2
|
export declare const const_realStatus: any;
|
|
3
|
+
export declare const const_invoiceExceptionInfo: any;
|
|
4
|
+
export declare const const_manualModify: any;
|
|
3
5
|
export declare const const_taskStatus: any;
|
|
4
|
-
export declare const setClass: (type: any) => "
|
|
6
|
+
export declare const setClass: (type: any) => "error" | "warning" | "ok" | "default";
|
|
@@ -2,28 +2,26 @@ import 'vant/lib/index.css';
|
|
|
2
2
|
import '@/utils/disableZoom';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
listId: {
|
|
5
|
-
required:
|
|
5
|
+
required: false;
|
|
6
6
|
type: StringConstructor;
|
|
7
|
-
default: string;
|
|
8
7
|
};
|
|
9
8
|
multiple: {
|
|
10
9
|
required: true;
|
|
11
10
|
type: BooleanConstructor;
|
|
12
11
|
};
|
|
12
|
+
catchList: {};
|
|
13
13
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("ok" | "edit")[], "ok" | "edit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
14
|
listId: {
|
|
15
|
-
required:
|
|
15
|
+
required: false;
|
|
16
16
|
type: StringConstructor;
|
|
17
|
-
default: string;
|
|
18
17
|
};
|
|
19
18
|
multiple: {
|
|
20
19
|
required: true;
|
|
21
20
|
type: BooleanConstructor;
|
|
22
21
|
};
|
|
22
|
+
catchList: {};
|
|
23
23
|
}>> & {
|
|
24
24
|
onOk?: ((...args: any[]) => any) | undefined;
|
|
25
25
|
onEdit?: ((...args: any[]) => any) | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
listId: string;
|
|
28
|
-
}, {}>;
|
|
26
|
+
}, {}, {}>;
|
|
29
27
|
export default _default;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare const data: {
|
|
2
|
+
angle: string;
|
|
3
|
+
attachmentLink: string;
|
|
4
|
+
description: string;
|
|
5
|
+
invoiceType: string;
|
|
6
|
+
invoiceRootType: string;
|
|
7
|
+
position: string;
|
|
8
|
+
checkCode: string;
|
|
9
|
+
clerk: string;
|
|
10
|
+
electronicMark: string;
|
|
11
|
+
electronicNumber: string;
|
|
12
|
+
invoiceCode: string;
|
|
13
|
+
invoiceDate: string;
|
|
14
|
+
invoiceNum: string;
|
|
15
|
+
itemNames: string;
|
|
16
|
+
noTaxAmountTotal: string;
|
|
17
|
+
note: string;
|
|
18
|
+
payee: string;
|
|
19
|
+
payerAccount: string;
|
|
20
|
+
payerContact: string;
|
|
21
|
+
payerId: string;
|
|
22
|
+
payerName: string;
|
|
23
|
+
priceTaxTotalFigure: string;
|
|
24
|
+
printCode: string;
|
|
25
|
+
printNum: string;
|
|
26
|
+
producerStamp: string;
|
|
27
|
+
recheck: string;
|
|
28
|
+
seal: string;
|
|
29
|
+
sellerAccount: string;
|
|
30
|
+
sellerContact: string;
|
|
31
|
+
sellerId: string;
|
|
32
|
+
sellerName: string;
|
|
33
|
+
serviceName: string;
|
|
34
|
+
taxAmountTotal: string;
|
|
35
|
+
title: string;
|
|
36
|
+
totalCn: string;
|
|
37
|
+
vatInvoicePage: string;
|
|
38
|
+
nuonuoFileId: string;
|
|
39
|
+
deatis: {
|
|
40
|
+
itemExTaxAmount: string;
|
|
41
|
+
itemExTaxPrice: string;
|
|
42
|
+
itemName: string;
|
|
43
|
+
itemQuantity: string;
|
|
44
|
+
itemSpec: string;
|
|
45
|
+
itemTaxAmount: string;
|
|
46
|
+
itemTaxRate: string;
|
|
47
|
+
itemUtil: string;
|
|
48
|
+
id: number;
|
|
49
|
+
code: string;
|
|
50
|
+
tenantCode: string;
|
|
51
|
+
brandCode: string;
|
|
52
|
+
createdAt: number;
|
|
53
|
+
updatedAt: number;
|
|
54
|
+
invoiceTableCode: string;
|
|
55
|
+
}[];
|
|
56
|
+
status: string;
|
|
57
|
+
invoiceStatus: string;
|
|
58
|
+
realStatus: string;
|
|
59
|
+
fileUrlKey: string;
|
|
60
|
+
invoiceCompanyType: string;
|
|
61
|
+
taxRate: string;
|
|
62
|
+
taskStatus: string;
|
|
63
|
+
taskId: string;
|
|
64
|
+
invoiceConsumptionType: string;
|
|
65
|
+
invoiceConsumptionTypeInfo: string;
|
|
66
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function filterNumber(value: any): number | "";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mg-ocr-invoice",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.3-beta",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"@types/js-cookie": "^3.0.3",
|
|
20
20
|
"axios": "^1.4.0",
|
|
21
21
|
"compressorjs": "^1.2.1",
|
|
22
|
+
"decimal.js": "^10.4.3",
|
|
22
23
|
"element-plus": "^2.3.7",
|
|
23
24
|
"js-cookie": "^3.0.5",
|
|
24
25
|
"swiper": "^9.3.2",
|