cnhis-design-vue 3.1.33-beta.15 → 3.1.33-beta.18

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.
@@ -137,9 +137,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
137
137
  };
138
138
  });
139
139
  const treeConfig = computed(() => {
140
- let result = getAttr("tree-config") || {
141
- transform: true
142
- };
140
+ let result = getAttr("tree-config");
143
141
  let {
144
142
  isTransform
145
143
  } = props.tableParams;
@@ -60,6 +60,10 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
60
60
  default: string;
61
61
  type: StringConstructor;
62
62
  };
63
+ btnprint: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
63
67
  }, {
64
68
  $message: import("naive-ui").MessageApi;
65
69
  printInstance: any;
@@ -122,6 +126,10 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
122
126
  default: string;
123
127
  type: StringConstructor;
124
128
  };
129
+ btnprint: {
130
+ type: StringConstructor;
131
+ default: string;
132
+ };
125
133
  }>> & {
126
134
  onError?: ((...args: any[]) => any) | undefined;
127
135
  onSuccess?: ((...args: any[]) => any) | undefined;
@@ -1869,6 +1877,10 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1869
1877
  default: string;
1870
1878
  type: StringConstructor;
1871
1879
  };
1880
+ btnprint: {
1881
+ type: StringConstructor;
1882
+ default: string;
1883
+ };
1872
1884
  }>> & {
1873
1885
  onError?: ((...args: any[]) => any) | undefined;
1874
1886
  onSuccess?: ((...args: any[]) => any) | undefined;
@@ -1887,5 +1899,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1887
1899
  clickPrevFn: Function;
1888
1900
  noDataMsg: string;
1889
1901
  printdlgshow: string;
1902
+ btnprint: string;
1890
1903
  }>>;
1891
1904
  export default ButtonPrint;
@@ -61,6 +61,10 @@ declare const _default: import("vue").DefineComponent<{
61
61
  default: string;
62
62
  type: StringConstructor;
63
63
  };
64
+ btnprint: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
64
68
  }, {
65
69
  $message: import("naive-ui").MessageApi;
66
70
  printInstance: any;
@@ -126,6 +130,10 @@ declare const _default: import("vue").DefineComponent<{
126
130
  default: string;
127
131
  type: StringConstructor;
128
132
  };
133
+ btnprint: {
134
+ type: StringConstructor;
135
+ default: string;
136
+ };
129
137
  }>> & {
130
138
  onError?: ((...args: any[]) => any) | undefined;
131
139
  onSuccess?: ((...args: any[]) => any) | undefined;
@@ -1876,6 +1884,10 @@ declare const _default: import("vue").DefineComponent<{
1876
1884
  default: string;
1877
1885
  type: StringConstructor;
1878
1886
  };
1887
+ btnprint: {
1888
+ type: StringConstructor;
1889
+ default: string;
1890
+ };
1879
1891
  }>> & {
1880
1892
  onError?: ((...args: any[]) => any) | undefined;
1881
1893
  onSuccess?: ((...args: any[]) => any) | undefined;
@@ -1894,5 +1906,6 @@ declare const _default: import("vue").DefineComponent<{
1894
1906
  clickPrevFn: Function;
1895
1907
  noDataMsg: string;
1896
1908
  printdlgshow: string;
1909
+ btnprint: string;
1897
1910
  }>;
1898
1911
  export default _default;
@@ -67,6 +67,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
67
67
  printdlgshow: {
68
68
  default: "0",
69
69
  type: String
70
+ },
71
+ btnprint: {
72
+ type: String,
73
+ default: "1"
70
74
  }
71
75
  },
72
76
  emits: ["success", "error", "clickoutside"],
@@ -222,7 +226,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
222
226
  const queryParams = {
223
227
  formatId: state.currentFormatId,
224
228
  templateId: getTemplateIdByFormatId.value,
225
- params
229
+ params,
230
+ btnprint: props.btnprint
226
231
  };
227
232
  printInstance.preview(queryParams, (res) => {
228
233
  callLocalServicesSuccessCb(res, "preview");
@@ -33,10 +33,10 @@ export declare class Print {
33
33
  pageCount: any;
34
34
  formatId: string;
35
35
  };
36
- _handleEventDirect({ templateId, formatId, params, cmdid, print, printdlgshow, nobillnode }: AnyObject): Promise<any>;
36
+ _handleEventDirect({ templateId, formatId, params, cmdid, print, printdlgshow, nobillnode, btnprint }: AnyObject): Promise<any>;
37
37
  _handleEventEditFormat({ templateId, formatId, params, token }: AnyObject): Promise<any>;
38
38
  _queryPrintFile(formatId: string, params?: string): Promise<any>;
39
- preview({ templateId, formatId, params }: AnyObject, successCallbackFn?: Func, errorCallbackFn?: Func): Promise<any>;
39
+ preview({ templateId, formatId, params, btnprint }: AnyObject, successCallbackFn?: Func, errorCallbackFn?: Func): Promise<any>;
40
40
  printDirect({ templateId, formatId, params, print, printdlgshow, nobillnode }: AnyObject, successCallbackFn: Func, errorCallbackFn: Func, mode?: string): Promise<any>;
41
41
  private _downloadPDF;
42
42
  /**
@@ -197,7 +197,8 @@ class Print {
197
197
  cmdid,
198
198
  print,
199
199
  printdlgshow = "1",
200
- nobillnode = "1"
200
+ nobillnode = "1",
201
+ btnprint = "1"
201
202
  }) {
202
203
  const queryParams = {
203
204
  templateId,
@@ -205,7 +206,8 @@ class Print {
205
206
  params,
206
207
  cmdid,
207
208
  nobillnode,
208
- printdlgshow
209
+ printdlgshow,
210
+ btnprint
209
211
  };
210
212
  if (print) {
211
213
  try {
@@ -245,7 +247,7 @@ class Print {
245
247
  }) || {};
246
248
  return data;
247
249
  }
248
- async preview({ templateId, formatId, params = "" }, successCallbackFn, errorCallbackFn) {
250
+ async preview({ templateId, formatId, params = "", btnprint }, successCallbackFn, errorCallbackFn) {
249
251
  if (isIReport(formatId)) {
250
252
  const data = await this._queryPrintFile(formatId, params);
251
253
  if (!data)
@@ -264,7 +266,8 @@ class Print {
264
266
  templateId,
265
267
  formatId,
266
268
  params,
267
- cmdid: PREVIEW_CMD_ID
269
+ cmdid: PREVIEW_CMD_ID,
270
+ btnprint
268
271
  });
269
272
  if (!result)
270
273
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.33-beta.15",
3
+ "version": "3.1.33-beta.18",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -61,5 +61,5 @@
61
61
  "iOS 7",
62
62
  "last 3 iOS versions"
63
63
  ],
64
- "gitHead": "d496ef492de319ac054c399ebaeee956d3ae9d01"
64
+ "gitHead": "82e35cf632449ac33bf0dc468a7bb31185ceb55d"
65
65
  }