cnhis-design-vue 3.4.0-beta.14 → 3.4.0-beta.15

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.
@@ -70,6 +70,7 @@ export declare class Print {
70
70
  _base64ToBlob(fileBase64: string, fileType: string): Blob;
71
71
  preview({ iReportExecuteMode, hideButtons, templateId, number, formatId: originFormatId, formatItem, params, paramsArr, authorizationKey, signature, btnprint, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<any>;
72
72
  printSync(data: AnyObject[], successCallbackFn: AnyFn, errorCallbackFn: AnyFn): Promise<void>;
73
+ isObject(o: any): boolean;
73
74
  printDirect({ iReportExecuteMode, templateId, number, formatId: originFormatId, formatItem, params, paramsArr, authorizationKey, print, signature, printdlgshow, nobillnode, copies, svrUpdateIp, apptype, uuid, printname, priority, isShowQueueProgressNotify, isDownloadFile, messageTimeout }: AnyObject, successCallbackFn: AnyFn, errorCallbackFn: AnyFn, cancelCallbackFn?: AnyFn, printQueueCallbackFn?: AnyFn, mode?: string): Promise<false | undefined>;
74
75
  printToHiPrint({ templateId, formatId, params, authorizationKey }: any, successCallbackFn: AnyFn, errorCallbackFn: AnyFn, cancelCallbackFn?: AnyFn): Promise<any>;
75
76
  private _downloadPDF;
@@ -308,11 +308,10 @@ class Print {
308
308
  }
309
309
  async getPicAndUpload(obj) {
310
310
  try {
311
- const isObject = (o) => Object.prototype.toString.call(o) === "[object Object]";
312
311
  if ((obj == null ? void 0 : obj.result) === "success" && (obj == null ? void 0 : obj.uploadTemplateFlag) == "Y" && !(obj == null ? void 0 : obj.filebase64) && this.queryServicesParams) {
313
- const params = isObject(this.queryServicesParams.params) ? this.queryServicesParams.params : JSON.parse(this.queryServicesParams.params);
312
+ const params = this.isObject(this.queryServicesParams.params) ? this.queryServicesParams.params : JSON.parse(this.queryServicesParams.params);
314
313
  params.uploadTemplateFlag = "Y";
315
- this.queryServicesParams.params = JSON.stringify(params);
314
+ this.queryServicesParams.params = params;
316
315
  this.queryServicesParams.cmdid = PRINT_CMD_ID;
317
316
  this.queryServicesParams.print = {
318
317
  print: 1,
@@ -320,7 +319,7 @@ class Print {
320
319
  zip: 0
321
320
  };
322
321
  this.queryServicesParams.paramsArr = [{
323
- params: JSON.stringify(params)
322
+ params
324
323
  }];
325
324
  const data = await this._queryBase64ServicesPrint(this.queryServicesParams);
326
325
  }
@@ -991,6 +990,9 @@ class Print {
991
990
  this._handleMonitorNotify(error);
992
991
  }
993
992
  }
993
+ isObject(o) {
994
+ return Object.prototype.toString.call(o) === "[object Object]";
995
+ }
994
996
  async printDirect({
995
997
  iReportExecuteMode,
996
998
  templateId,
@@ -1014,7 +1016,7 @@ class Print {
1014
1016
  isDownloadFile = true,
1015
1017
  messageTimeout = 0
1016
1018
  }, successCallbackFn, errorCallbackFn, cancelCallbackFn, printQueueCallbackFn, mode = "printDirect") {
1017
- const isObject = (o) => Object.prototype.toString.call(o) === "[object Object]";
1019
+ params = this.isObject(params) || !params ? params : JSON.parse(params);
1018
1020
  const iReportStatus = isIReport(originFormatId);
1019
1021
  const formatId = this.getIReportFormatId(iReportStatus, originFormatId);
1020
1022
  if (iReportStatus && (isDomestic || iReportExecuteMode == 2)) {
@@ -1059,7 +1061,7 @@ class Print {
1059
1061
  return false;
1060
1062
  try {
1061
1063
  if (formatItem == null ? void 0 : formatItem.queuePrint) {
1062
- const printParams = isObject(params) ? cloneDeep(params) : params;
1064
+ const printParams = this.isObject(params) ? cloneDeep(params) : params;
1063
1065
  paramsArr = [{
1064
1066
  params: printParams
1065
1067
  }];
@@ -553,9 +553,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
553
553
  hide: boolean;
554
554
  }>;
555
555
  draggable: boolean;
556
- isHighlightRow: boolean;
557
556
  idx: number;
558
557
  isHighlight: boolean;
558
+ isHighlightRow: boolean;
559
559
  isFieldSet: boolean;
560
560
  fieldDescribeMode: "column" | "tooltip";
561
561
  hideExpressionOption: AnyObject[];
@@ -594,9 +594,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
594
594
  hide: boolean;
595
595
  }>;
596
596
  draggable: boolean;
597
- isHighlightRow: boolean;
598
597
  idx: number;
599
598
  isHighlight: boolean;
599
+ isHighlightRow: boolean;
600
600
  isFieldSet: boolean;
601
601
  fieldDescribeMode: "column" | "tooltip";
602
602
  hideExpressionOption: AnyObject[];
@@ -773,9 +773,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
773
773
  hide: boolean;
774
774
  }>;
775
775
  draggable: boolean;
776
- isHighlightRow: boolean;
777
776
  idx: number;
778
777
  isHighlight: boolean;
778
+ isHighlightRow: boolean;
779
779
  isFieldSet: boolean;
780
780
  fieldDescribeMode: "column" | "tooltip";
781
781
  hideExpressionOption: AnyObject[];
@@ -384,9 +384,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
384
384
  hide: boolean;
385
385
  }>;
386
386
  draggable: boolean;
387
- isHighlightRow: boolean;
388
387
  idx: number;
389
388
  isHighlight: boolean;
389
+ isHighlightRow: boolean;
390
390
  isFieldSet: boolean;
391
391
  fieldDescribeMode: "column" | "tooltip";
392
392
  hideExpressionOption: AnyObject[];
@@ -1,5 +1,5 @@
1
1
  var name = "@cnhis-design-vue/shared";
2
- var version = "3.4.0-beta.14";
2
+ var version = "3.4.0-beta.15";
3
3
  var main = "index.ts";
4
4
  var peerDependencies = {
5
5
  "naive-ui": "^2.30.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.4.0-beta.14",
3
+ "version": "3.4.0-beta.15",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -73,5 +73,5 @@
73
73
  "iOS 7",
74
74
  "last 3 iOS versions"
75
75
  ],
76
- "gitHead": "d07e324fa6a4e354c83f3898e8a8f81fbe7dc431"
76
+ "gitHead": "5550a536343c49dce585e0cff932473410fafacc"
77
77
  }