iv-npm 1.5.99 → 1.5.100

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iv-npm",
3
- "version": "1.5.99",
3
+ "version": "1.5.100",
4
4
  "description": "公共通用包",
5
5
  "author": "Mr.Cong",
6
6
  "license": "ISC",
@@ -64,6 +64,8 @@ declare function dateFormat(data: Date | string, format: string): string;
64
64
  declare function yearMonthFormat(data?: Date): string | formatType;
65
65
  declare function yearMonthDayFormat(data?: Date): string | formatType;
66
66
 
67
+ declare function onChangeTail(item: any[]): (key: string, cb?: Function) => number;
68
+
67
69
  declare enum ProjectStausEnum {
68
70
  "待开工" = 0,
69
71
  "在建" = 1,
@@ -87,4 +89,4 @@ declare enum LineIDEnum {
87
89
  "tx05" = 16
88
90
  }
89
91
 
90
- export { LineIDEnum, ProjectStausEnum, SignStatusEnum, apiConfiger, arrToTree, assign, buildURL as buildUrl, dateFormat, filterOptionHeadle, findTree, formatType, hostConfiger, isDate, isObject, isPlainObject, isURLSearchParams, tranListToTreeData, yearMonthDayFormat, yearMonthFormat };
92
+ export { LineIDEnum, ProjectStausEnum, SignStatusEnum, apiConfiger, arrToTree, assign, buildURL as buildUrl, dateFormat, filterOptionHeadle, findTree, formatType, hostConfiger, isDate, isObject, isPlainObject, isURLSearchParams, onChangeTail, tranListToTreeData, yearMonthDayFormat, yearMonthFormat };
@@ -306,6 +306,19 @@ function yearMonthDayFormat(data) {
306
306
  }
307
307
  }
308
308
 
309
+ // utils/businessUi/IVAdjustAmount.ts
310
+ function onChangeTail(item) {
311
+ return function baseTail(key, cb) {
312
+ const temp = item.reduce((_c, _p) => {
313
+ if (_p.isInput === void 0 || _p.isInput)
314
+ return _c + 0;
315
+ _p = cb ? cb(_p) : _p;
316
+ return _c + parseFloat(_p[key]);
317
+ }, 0);
318
+ return temp;
319
+ };
320
+ }
321
+
309
322
  // utils/enum/projectStatus.ts
310
323
  var ProjectStausEnum = /* @__PURE__ */ ((ProjectStausEnum2) => {
311
324
  ProjectStausEnum2[ProjectStausEnum2["\u5F85\u5F00\u5DE5"] = 0] = "\u5F85\u5F00\u5DE5";
@@ -350,6 +363,7 @@ export {
350
363
  isObject,
351
364
  isPlainObject,
352
365
  isURLSearchParams,
366
+ onChangeTail,
353
367
  tranListToTreeData,
354
368
  yearMonthDayFormat,
355
369
  yearMonthFormat