iv-npm 1.7.27 → 1.7.34

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.
Files changed (25) hide show
  1. package/package.json +4 -1
  2. package/packages/shared/dist/utils/index.d.ts +7 -2
  3. package/packages/shared/dist/utils/index.mjs +24 -0
  4. package/packages/ui/dist/business-ui/component/IVContractSelector.d.ts +6 -6
  5. package/packages/ui/dist/business-ui/component/IVProdBaseDropdown.d.ts +0 -11
  6. package/packages/ui/dist/index.cjs.js +4 -4
  7. package/packages/ui/dist/index.cjs.js.map +1 -1
  8. package/packages/ui/dist/index.esm.js +6 -6
  9. package/packages/ui/dist/index.esm.js.map +1 -1
  10. package/packages/ui/dist/index.umd.js +5 -5
  11. package/packages/ui/dist/index.umd.js.map +1 -1
  12. package/packages/ui/dist/ui/src/business-ui/component/IVAdjustAmount.d.ts +177 -0
  13. package/packages/ui/dist/ui/src/business-ui/component/IVApproval.d.ts +25 -0
  14. package/packages/ui/dist/ui/src/business-ui/component/IVClientSelector.d.ts +13 -1
  15. package/packages/ui/dist/ui/src/business-ui/component/IVLineDropdown.d.ts +155 -0
  16. package/packages/ui/dist/ui/src/business-ui/component/IVManagDropdown.d.ts +152 -0
  17. package/packages/ui/dist/ui/src/business-ui/component/IVPostDropdown.d.ts +148 -0
  18. package/packages/ui/dist/ui/src/business-ui/component/IVProdBaseDropdown.d.ts +176 -0
  19. package/packages/ui/dist/ui/src/business-ui/component/IVSetofbookDropdown.d.ts +186 -0
  20. package/packages/ui/dist/ui/src/function-ui/component/IVTableControl.d.ts +17 -0
  21. package/packages/ui/dist/ui/src/print-ui/component/FinancialStatementPrint.d.ts +56 -0
  22. package/packages/ui/package.json +77 -77
  23. package/pnpm-lock.yaml +6099 -6099
  24. package/packages/ui/dist/business-ui/component/IVContractAndProjectSelector.d.ts +0 -43
  25. /package/packages/ui/dist/{business-ui → ui/src/business-ui}/component/IVProjectTree.d.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iv-npm",
3
- "version": "1.7.27",
3
+ "version": "1.7.34",
4
4
  "description": "公共通用包",
5
5
  "author": "Mr.Cong",
6
6
  "license": "ISC",
@@ -47,5 +47,8 @@
47
47
  "devDependencies": {
48
48
  "shelljs": "^0.8.5",
49
49
  "turbo": "^1.4.2"
50
+ },
51
+ "dependencies": {
52
+ "@rollup/plugin-image": "^3.0.2"
50
53
  }
51
54
  }
@@ -133,6 +133,11 @@ declare function getAmountByUnit(amount: number): string;
133
133
  * @description 将金额保留两位小数。如果包含元字,处理结果也会返回元
134
134
  * @param amount
135
135
  * */
136
- declare const amountToFixed: (_v?: number | string) => string | 0;
136
+ declare const amountToFixed: (_v?: number | string) => string | 0;
137
+ /**
138
+ * @description 将金额加千分符并保留两位小数。如果包含元字,处理结果也会返回元
139
+ * @param amount
140
+ * */
141
+ declare const amountToThousandthFixed: (num?: number | string, fixed?: number) => string | 0;
137
142
 
138
- export { LineIDEnum, ProjectStausEnum, SignStatusEnum, amountToFixed, apiConfiger, arrToTree, arraySum, arraySumByKey, assign, buildURL as buildUrl, dateFormat, filterOptionHeadle, findTree, formatPercentage, formatType, getAmountByUnit, hostConfiger, isArraySumCompared, isDate, isObject, isPlainObject, isURLSearchParams, numFormat, onChangeTail, tranListToTreeData, yearMonthDayFormat, yearMonthFormat };
143
+ export { LineIDEnum, ProjectStausEnum, SignStatusEnum, amountToFixed, amountToThousandthFixed, apiConfiger, arrToTree, arraySum, arraySumByKey, assign, buildURL as buildUrl, dateFormat, filterOptionHeadle, findTree, formatPercentage, formatType, getAmountByUnit, hostConfiger, isArraySumCompared, isDate, isObject, isPlainObject, isURLSearchParams, numFormat, onChangeTail, tranListToTreeData, yearMonthDayFormat, yearMonthFormat };
@@ -464,11 +464,35 @@ var amountToFixed = (_v) => {
464
464
  }
465
465
  return (!Number.isNaN(value) ? value.toFixed(2) : 0) + (flag ? " \u5143" : "");
466
466
  };
467
+ var amountToThousandthFixed = (num, fixed = 0) => {
468
+ if (!num)
469
+ return 0;
470
+ let value = num;
471
+ let flag = false;
472
+ if (typeof num === "string") {
473
+ if (num.includes("\u5143")) {
474
+ flag = true;
475
+ value = parseFloat(num.split("\u5143")[0]);
476
+ } else {
477
+ value = parseFloat(num);
478
+ }
479
+ }
480
+ value = isNaN(Number(value)) ? 0 : Number(value);
481
+ if (fixed)
482
+ value = value.toFixed(fixed);
483
+ value = value.toString().replace(/\d+/, function(n) {
484
+ return n.replace(/(\d)(?=(\d{3})+$)/g, function($1) {
485
+ return $1 + ",";
486
+ });
487
+ });
488
+ return (!Number.isNaN(value) ? value : 0) + (flag ? " \u5143" : "");
489
+ };
467
490
  export {
468
491
  LineIDEnum,
469
492
  ProjectStausEnum,
470
493
  SignStatusEnum,
471
494
  amountToFixed,
495
+ amountToThousandthFixed,
472
496
  apiConfiger,
473
497
  arrToTree,
474
498
  arraySum,
@@ -32,12 +32,12 @@ declare const _default: import("vue").DefineComponent<{
32
32
  type: NumberConstructor;
33
33
  required: false;
34
34
  };
35
- businessTypeItems: {
36
- type: ArrayConstructor;
35
+ businessTypeItem: {
36
+ type: NumberConstructor;
37
37
  required: false;
38
38
  };
39
39
  notInBusinessTypeItems: {
40
- type: ArrayConstructor;
40
+ type: NumberConstructor;
41
41
  required: false;
42
42
  };
43
43
  mainContractId: {
@@ -99,12 +99,12 @@ declare const _default: import("vue").DefineComponent<{
99
99
  type: NumberConstructor;
100
100
  required: false;
101
101
  };
102
- businessTypeItems: {
103
- type: ArrayConstructor;
102
+ businessTypeItem: {
103
+ type: NumberConstructor;
104
104
  required: false;
105
105
  };
106
106
  notInBusinessTypeItems: {
107
- type: ArrayConstructor;
107
+ type: NumberConstructor;
108
108
  required: false;
109
109
  };
110
110
  mainContractId: {
@@ -74,11 +74,6 @@ declare const _default: import("vue").DefineComponent<{
74
74
  required: false;
75
75
  default: string;
76
76
  };
77
- isSetOfBookId: {
78
- type: BooleanConstructor;
79
- required: false;
80
- default: boolean;
81
- };
82
77
  }, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
83
78
  [key: string]: any;
84
79
  }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -154,11 +149,6 @@ declare const _default: import("vue").DefineComponent<{
154
149
  required: false;
155
150
  default: string;
156
151
  };
157
- isSetOfBookId: {
158
- type: BooleanConstructor;
159
- required: false;
160
- default: boolean;
161
- };
162
152
  }>> & {
163
153
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
164
154
  onChange?: ((...args: any[]) => any) | undefined;
@@ -171,6 +161,5 @@ declare const _default: import("vue").DefineComponent<{
171
161
  isTitle: boolean;
172
162
  placeholder: string;
173
163
  title: string;
174
- isSetOfBookId: boolean;
175
164
  }>;
176
165
  export default _default;