cnhis-design-vue 3.1.33-beta.9 → 3.1.33
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/es/components/big-table/index.d.ts +1 -1
- package/es/components/big-table/src/BigTable.vue.d.ts +1 -1
- package/es/components/big-table/src/BigTable.vue2.js +7 -9
- package/es/components/big-table/src/components/edit-form/edit-input.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-time.js +5 -3
- package/es/components/big-table/src/components/edit-form/useCommon.d.ts +2 -1
- package/es/components/big-table/src/components/edit-form/useCommon.js +7 -3
- package/es/components/big-table/src/hooks/useFormat.js +1 -1
- package/es/components/button-print/index.d.ts +13 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +13 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +6 -1
- package/es/components/button-print/src/utils/print.d.ts +2 -2
- package/es/components/button-print/src/utils/print.js +7 -4
- package/es/components/fabric-chart/index.d.ts +133 -2
- package/es/components/fabric-chart/src/BirthProcessChart.vue.d.ts +132 -0
- package/es/components/fabric-chart/src/BirthProcessChart.vue.js +62 -8
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +133 -2
- package/es/components/fabric-chart/src/FabricChart.vue.js +2 -2
- package/es/components/fabric-chart/src/TemperatureChart.vue.d.ts +1 -2
- package/es/components/fabric-chart/src/TemperatureChart.vue.js +17 -9
- package/es/components/fabric-chart/src/components/PopupMenu.js +2 -2
- package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +3 -2
- package/es/components/fabric-chart/src/hooks/index.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/index.js +1 -0
- package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +23 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +305 -9
- package/es/components/fabric-chart/src/hooks/useCenter.d.ts +0 -2
- package/es/components/fabric-chart/src/hooks/useCenter.js +27 -45
- package/es/components/fabric-chart/src/hooks/useCommon.d.ts +8 -0
- package/es/components/fabric-chart/src/hooks/useCommon.js +32 -0
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +5 -2
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +27 -10
- package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.js +12 -7
- package/es/components/fabric-chart/src/interface.d.ts +1 -0
- package/es/components/fabric-chart/src/utils/utils.d.ts +11 -0
- package/es/components/fabric-chart/src/utils/utils.js +27 -0
- package/es/components/iho-table/index.d.ts +4 -3
- package/es/components/iho-table/src/IhoTable.vue.d.ts +4 -3
- package/es/components/iho-table/src/IhoTable.vue.js +6 -4
- package/es/components/iho-table/src/components/IhoTableColumn.js +1 -1
- package/es/components/iho-table/src/constants/index.d.ts +3 -3
- package/es/components/iho-table/src/constants/index.js +0 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +5 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.js +10 -9
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +2 -2
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +119 -119
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +5 -3
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +16 -4
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +9 -4
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +6 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +51 -24
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +37 -51
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +181 -20
- package/es/components/iho-table/src/plugins/filterPlugin/types.d.ts +2 -6
- package/es/components/iho-table/src/plugins/filterPlugin/types.js +0 -7
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +7 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +3 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +3 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +3 -5
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +5 -2
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +7 -4
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +10 -12
- package/es/components/iho-table/src/types/pluginType.d.ts +28 -12
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/src/InfoHeader.vue.js +1 -1
- package/es/components/info-header/style/index.css +1 -1
- package/es/components/keyboard/index.d.ts +62 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +62 -1
- package/es/components/keyboard/src/Keyboard.vue.js +4 -1
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +67 -5
- package/es/components/keyboard/src/components/NumberPanel.vue.js +48 -26
- package/es/components/keyboard/style/index.css +1 -1
- package/package.json +2 -2
- package/es/components/big-table/src/components/edit-form/dist/edit-date.d.ts +0 -36
- package/es/components/big-table/src/components/edit-form/dist/edit-select.d.ts +0 -37
- package/es/components/big-table/src/components/edit-form/dist/edit-time.d.ts +0 -45
- package/es/components/fabric-chart/src/constants/index.d.ts +0 -4
- package/es/components/fabric-chart/src/constants/index.js +0 -4
- package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -65
- package/es/components/form-render/src/components/renderer/dist/radio.d.ts +0 -64
- package/es/components/form-render/src/components/renderer/dist/remoteSearch.d.ts +0 -46
- package/es/components/form-render/src/components/renderer/dist/search.d.ts +0 -56
- package/es/components/form-render/src/components/renderer/dist/select.d.ts +0 -55
- package/es/components/iho-table/src/components/dist/IhoTableColumn.d.ts +0 -20
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dist/inputRendererPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dist/numberRendererPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dist/timeRendererPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/dist/editSelect.d.ts +0 -42
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/dist/index.d.ts +0 -3
|
@@ -646,7 +646,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
646
646
|
userInfo: Record<string, any>;
|
|
647
647
|
sysImageSize: unknown[];
|
|
648
648
|
}>;
|
|
649
|
-
treeConfig: import("vue").ComputedRef<
|
|
649
|
+
treeConfig: import("vue").ComputedRef<any>;
|
|
650
650
|
hideAllWrap: (e: any) => void;
|
|
651
651
|
bindDocumentClick: () => void;
|
|
652
652
|
unBindDocumentClick: () => void;
|
|
@@ -645,7 +645,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
645
645
|
userInfo: Record<string, any>;
|
|
646
646
|
sysImageSize: unknown[];
|
|
647
647
|
}>;
|
|
648
|
-
treeConfig: import("vue").ComputedRef<
|
|
648
|
+
treeConfig: import("vue").ComputedRef<any>;
|
|
649
649
|
hideAllWrap: (e: any) => void;
|
|
650
650
|
bindDocumentClick: () => void;
|
|
651
651
|
unBindDocumentClick: () => void;
|
|
@@ -137,7 +137,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
137
137
|
};
|
|
138
138
|
});
|
|
139
139
|
const treeConfig = computed(() => {
|
|
140
|
-
let result =
|
|
140
|
+
let result = getAttr("tree-config");
|
|
141
141
|
let {
|
|
142
142
|
isTransform
|
|
143
143
|
} = props.tableParams;
|
|
@@ -529,7 +529,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
529
529
|
editTrigger: state.editConfig.trigger
|
|
530
530
|
};
|
|
531
531
|
if (["date", "time"].includes(formType)) {
|
|
532
|
-
propsData.formattedValue = row[col.columnName];
|
|
532
|
+
propsData.formattedValue = row[col.columnName] || void 0;
|
|
533
533
|
} else if (formatMap) {
|
|
534
534
|
propsData.value = row[formatMap.value];
|
|
535
535
|
} else {
|
|
@@ -1301,7 +1301,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1301
1301
|
updateAddCheckedRows(row);
|
|
1302
1302
|
};
|
|
1303
1303
|
const handlerClickRow = (data) => {
|
|
1304
|
-
var _a, _b;
|
|
1304
|
+
var _a, _b, _c;
|
|
1305
1305
|
let {
|
|
1306
1306
|
row,
|
|
1307
1307
|
$event = {},
|
|
@@ -1342,8 +1342,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1342
1342
|
nestHandleClickRow(table, data);
|
|
1343
1343
|
return;
|
|
1344
1344
|
}
|
|
1345
|
+
const batchSelect = (_c = getAttr("checkbox-config")) == null ? void 0 : _c.batchSelect;
|
|
1345
1346
|
let forbiddenBatchSelect = !checkMethod(data);
|
|
1346
|
-
if (state.selectType == "checkbox" && (forbiddenBatchSelect || data.row.$__SEPARATE)) {
|
|
1347
|
+
if (state.selectType == "checkbox" && !batchSelect && (forbiddenBatchSelect || data.row.$__SEPARATE)) {
|
|
1347
1348
|
table == null ? void 0 : table.setAllCheckboxRow(false);
|
|
1348
1349
|
const checked2 = getRowClassName({
|
|
1349
1350
|
row
|
|
@@ -1407,7 +1408,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1407
1408
|
rowLen = checkedRow.filter((item) => !XEUtils.has(item, GROUP_TITLE_KEY)).length;
|
|
1408
1409
|
}
|
|
1409
1410
|
}
|
|
1410
|
-
table.setAllCheckboxRow(false);
|
|
1411
|
+
!batchSelect && table.setAllCheckboxRow(false);
|
|
1411
1412
|
let setChecked = checked;
|
|
1412
1413
|
if (rowLen > 1) {
|
|
1413
1414
|
state.selectType != "radio" && table.setCheckboxRow([row], true);
|
|
@@ -2309,10 +2310,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2309
2310
|
"mouse-config": {
|
|
2310
2311
|
selected: ((_a = _ctx.columnConfig.keyboardConfig) == null ? void 0 : _a.isEdit) ? true : false
|
|
2311
2312
|
},
|
|
2312
|
-
"tree-config":
|
|
2313
|
-
...unref(treeConfig) || {},
|
|
2314
|
-
...unref(getAttr)("tree-config")
|
|
2315
|
-
},
|
|
2313
|
+
"tree-config": unref(treeConfig),
|
|
2316
2314
|
"row-class-name": getRowClassName,
|
|
2317
2315
|
"row-config": {
|
|
2318
2316
|
...state.rowConfig,
|
|
@@ -35,7 +35,7 @@ var EditInput = defineComponent({
|
|
|
35
35
|
const {
|
|
36
36
|
formRef
|
|
37
37
|
} = useCommon(props, attrs);
|
|
38
|
-
const __value = ref(attrs.value);
|
|
38
|
+
const __value = ref(props.type === "number" ? attrs.value || void 0 : attrs.value);
|
|
39
39
|
const commData = {
|
|
40
40
|
row: props.row,
|
|
41
41
|
column: props.col,
|
|
@@ -80,12 +80,14 @@ var EditTime = defineComponent({
|
|
|
80
80
|
}
|
|
81
81
|
return false;
|
|
82
82
|
};
|
|
83
|
+
const isTime = (curTime) => {
|
|
84
|
+
const arr = curTime.split(":");
|
|
85
|
+
return +arr[0] * 60 * 60 + +arr[1] * 60 + (arr[3] ? +arr[3] : 0) < 24 * 60 * 60;
|
|
86
|
+
};
|
|
83
87
|
if (!isValid(time)) {
|
|
84
88
|
if (!isNaN(time) && (/^\d{4}$/.test(time) || /^\d{6}$/.test(time))) {
|
|
85
89
|
const curTime = getFormatTime(time);
|
|
86
|
-
|
|
87
|
-
time = curTime;
|
|
88
|
-
}
|
|
90
|
+
time = isValid(curTime) && isTime(curTime) ? curTime : "";
|
|
89
91
|
} else {
|
|
90
92
|
time = "";
|
|
91
93
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { AnyObject } from '../../../../../../es/shared/types';
|
|
2
|
+
export declare const useCommon: (props: AnyObject, attrs: AnyObject, isTriggerClick?: boolean) => {
|
|
2
3
|
formRef: import("vue").Ref<HTMLElement | null>;
|
|
3
4
|
isShow: import("vue").Ref<boolean>;
|
|
4
5
|
};
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { ref, onMounted } from 'vue';
|
|
2
2
|
|
|
3
|
-
const useCommon = (props, attrs) => {
|
|
3
|
+
const useCommon = (props, attrs, isTriggerClick = false) => {
|
|
4
4
|
const formRef = ref(null);
|
|
5
5
|
const isShow = ref(false);
|
|
6
6
|
onMounted(() => {
|
|
7
|
-
var _a;
|
|
7
|
+
var _a, _b, _c;
|
|
8
8
|
if (attrs.editTrigger !== "manual") {
|
|
9
|
-
(
|
|
9
|
+
if (isTriggerClick) {
|
|
10
|
+
(_b = (_a = formRef.value) == null ? void 0 : _a.handleTriggerClick) == null ? void 0 : _b.call(_a);
|
|
11
|
+
} else {
|
|
12
|
+
(_c = formRef.value) == null ? void 0 : _c.focus();
|
|
13
|
+
}
|
|
10
14
|
isShow.value = true;
|
|
11
15
|
}
|
|
12
16
|
});
|
|
@@ -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;
|
|
@@ -85,7 +85,6 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
85
85
|
getXValue: (pointX: number) => string | undefined;
|
|
86
86
|
getYValue: (type: import("./src/interface").IPointType, pointY: number) => number;
|
|
87
87
|
setPopup: (point: any) => void;
|
|
88
|
-
getEqualXTypes: (pointX: number) => import("./src/interface").IPointType[];
|
|
89
88
|
isAddPoint: (x: number) => boolean;
|
|
90
89
|
updateData: (params: any, mode?: string) => void;
|
|
91
90
|
redrawPoints: () => void;
|
|
@@ -135,7 +134,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
135
134
|
show: boolean;
|
|
136
135
|
point: import("./src/interface").ICoordinateValue;
|
|
137
136
|
list: string[];
|
|
138
|
-
propItems: import("
|
|
137
|
+
propItems: import("../../../es/shared/types").AnyObject;
|
|
139
138
|
};
|
|
140
139
|
pointStyle: import("vue").ComputedRef<{
|
|
141
140
|
top: string;
|
|
@@ -257,11 +256,143 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
257
256
|
xCellWidth: import("vue").ComputedRef<number>;
|
|
258
257
|
yCellHeight: import("vue").ComputedRef<number>;
|
|
259
258
|
originY: import("vue").ComputedRef<number>;
|
|
259
|
+
originYCervix: import("vue").ComputedRef<number>;
|
|
260
260
|
endY: import("vue").ComputedRef<number>;
|
|
261
|
+
startTime: import("vue").ComputedRef<number>;
|
|
262
|
+
timeXCell: import("vue").ComputedRef<number>;
|
|
263
|
+
cervixYCell: import("vue").ComputedRef<number>;
|
|
264
|
+
FHRYCell: import("vue").ComputedRef<number>;
|
|
265
|
+
fetalPresentationYCell: import("vue").ComputedRef<number>;
|
|
266
|
+
event: import("vue").ComputedRef<any>;
|
|
261
267
|
select: import("vue").Ref<any>;
|
|
262
268
|
canvasRef: any;
|
|
263
269
|
canvas: import("vue").Ref<any>;
|
|
264
270
|
propItems: any;
|
|
271
|
+
pointTipProps: {
|
|
272
|
+
show: boolean;
|
|
273
|
+
point: {
|
|
274
|
+
x: number;
|
|
275
|
+
y: number;
|
|
276
|
+
};
|
|
277
|
+
list: string[];
|
|
278
|
+
};
|
|
279
|
+
pointMenuProps: {
|
|
280
|
+
show: boolean;
|
|
281
|
+
point: {
|
|
282
|
+
x: number;
|
|
283
|
+
y: number;
|
|
284
|
+
};
|
|
285
|
+
list: any[];
|
|
286
|
+
target: any;
|
|
287
|
+
};
|
|
288
|
+
clickMenu: ({ item, target }: {
|
|
289
|
+
item: any;
|
|
290
|
+
target: any;
|
|
291
|
+
}) => void;
|
|
292
|
+
PopupTip: import("vue").DefineComponent<{
|
|
293
|
+
show: {
|
|
294
|
+
type: BooleanConstructor;
|
|
295
|
+
required: true;
|
|
296
|
+
default: boolean;
|
|
297
|
+
};
|
|
298
|
+
point: {
|
|
299
|
+
type: null;
|
|
300
|
+
required: true;
|
|
301
|
+
};
|
|
302
|
+
list: {
|
|
303
|
+
type: ArrayConstructor;
|
|
304
|
+
required: false;
|
|
305
|
+
default: () => never[];
|
|
306
|
+
};
|
|
307
|
+
propItems: {
|
|
308
|
+
type: null;
|
|
309
|
+
required: true;
|
|
310
|
+
};
|
|
311
|
+
}, {
|
|
312
|
+
props: {
|
|
313
|
+
show: boolean;
|
|
314
|
+
point: import("./src/interface").ICoordinateValue;
|
|
315
|
+
list: string[];
|
|
316
|
+
propItems: import("../../../es/shared/types").AnyObject;
|
|
317
|
+
};
|
|
318
|
+
pointStyle: import("vue").ComputedRef<{
|
|
319
|
+
top: string;
|
|
320
|
+
bottom: string;
|
|
321
|
+
left: string;
|
|
322
|
+
right: string;
|
|
323
|
+
'transform-origin': string;
|
|
324
|
+
}>;
|
|
325
|
+
Teleport: {
|
|
326
|
+
new (): {
|
|
327
|
+
$props: import("vue").VNodeProps & import("vue").TeleportProps;
|
|
328
|
+
};
|
|
329
|
+
__isTeleport: true;
|
|
330
|
+
};
|
|
331
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
332
|
+
show: {
|
|
333
|
+
type: BooleanConstructor;
|
|
334
|
+
required: true;
|
|
335
|
+
default: boolean;
|
|
336
|
+
};
|
|
337
|
+
point: {
|
|
338
|
+
type: null;
|
|
339
|
+
required: true;
|
|
340
|
+
};
|
|
341
|
+
list: {
|
|
342
|
+
type: ArrayConstructor;
|
|
343
|
+
required: false;
|
|
344
|
+
default: () => never[];
|
|
345
|
+
};
|
|
346
|
+
propItems: {
|
|
347
|
+
type: null;
|
|
348
|
+
required: true;
|
|
349
|
+
};
|
|
350
|
+
}>>, {
|
|
351
|
+
list: unknown[];
|
|
352
|
+
}>;
|
|
353
|
+
PopupMenu: import("vue").DefineComponent<{
|
|
354
|
+
show: {
|
|
355
|
+
type: BooleanConstructor;
|
|
356
|
+
default: boolean;
|
|
357
|
+
};
|
|
358
|
+
list: {
|
|
359
|
+
type: ArrayConstructor;
|
|
360
|
+
default: () => never[];
|
|
361
|
+
};
|
|
362
|
+
point: {
|
|
363
|
+
type: import("vue").PropType<import("./src/interface").ICoordinateValue>;
|
|
364
|
+
};
|
|
365
|
+
propItems: {
|
|
366
|
+
type: import("vue").PropType<import("./src/interface").IPropItems>;
|
|
367
|
+
};
|
|
368
|
+
target: {
|
|
369
|
+
type: import("vue").PropType<any>;
|
|
370
|
+
};
|
|
371
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "clickMenu")[], "clickMenu" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
372
|
+
show: {
|
|
373
|
+
type: BooleanConstructor;
|
|
374
|
+
default: boolean;
|
|
375
|
+
};
|
|
376
|
+
list: {
|
|
377
|
+
type: ArrayConstructor;
|
|
378
|
+
default: () => never[];
|
|
379
|
+
};
|
|
380
|
+
point: {
|
|
381
|
+
type: import("vue").PropType<import("./src/interface").ICoordinateValue>;
|
|
382
|
+
};
|
|
383
|
+
propItems: {
|
|
384
|
+
type: import("vue").PropType<import("./src/interface").IPropItems>;
|
|
385
|
+
};
|
|
386
|
+
target: {
|
|
387
|
+
type: import("vue").PropType<any>;
|
|
388
|
+
};
|
|
389
|
+
}>> & {
|
|
390
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
391
|
+
onClickMenu?: ((...args: any[]) => any) | undefined;
|
|
392
|
+
}, {
|
|
393
|
+
show: boolean;
|
|
394
|
+
list: unknown[];
|
|
395
|
+
}>;
|
|
265
396
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "change" | "add" | "select")[], "delete" | "change" | "add" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
266
397
|
data: {
|
|
267
398
|
type: import("vue").PropType<import("./src/interface").IBirthProcessData>;
|
|
@@ -30,11 +30,143 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
30
|
xCellWidth: import("vue").ComputedRef<number>;
|
|
31
31
|
yCellHeight: import("vue").ComputedRef<number>;
|
|
32
32
|
originY: import("vue").ComputedRef<number>;
|
|
33
|
+
originYCervix: import("vue").ComputedRef<number>;
|
|
33
34
|
endY: import("vue").ComputedRef<number>;
|
|
35
|
+
startTime: import("vue").ComputedRef<number>;
|
|
36
|
+
timeXCell: import("vue").ComputedRef<number>;
|
|
37
|
+
cervixYCell: import("vue").ComputedRef<number>;
|
|
38
|
+
FHRYCell: import("vue").ComputedRef<number>;
|
|
39
|
+
fetalPresentationYCell: import("vue").ComputedRef<number>;
|
|
40
|
+
event: import("vue").ComputedRef<any>;
|
|
34
41
|
select: import("vue").Ref<any>;
|
|
35
42
|
canvasRef: any;
|
|
36
43
|
canvas: import("vue").Ref<any>;
|
|
37
44
|
propItems: any;
|
|
45
|
+
pointTipProps: {
|
|
46
|
+
show: boolean;
|
|
47
|
+
point: {
|
|
48
|
+
x: number;
|
|
49
|
+
y: number;
|
|
50
|
+
};
|
|
51
|
+
list: string[];
|
|
52
|
+
};
|
|
53
|
+
pointMenuProps: {
|
|
54
|
+
show: boolean;
|
|
55
|
+
point: {
|
|
56
|
+
x: number;
|
|
57
|
+
y: number;
|
|
58
|
+
};
|
|
59
|
+
list: any[];
|
|
60
|
+
target: any;
|
|
61
|
+
};
|
|
62
|
+
clickMenu: ({ item, target }: {
|
|
63
|
+
item: any;
|
|
64
|
+
target: any;
|
|
65
|
+
}) => void;
|
|
66
|
+
PopupTip: import("vue").DefineComponent<{
|
|
67
|
+
show: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
required: true;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
point: {
|
|
73
|
+
type: null;
|
|
74
|
+
required: true;
|
|
75
|
+
};
|
|
76
|
+
list: {
|
|
77
|
+
type: ArrayConstructor;
|
|
78
|
+
required: false;
|
|
79
|
+
default: () => never[];
|
|
80
|
+
};
|
|
81
|
+
propItems: {
|
|
82
|
+
type: null;
|
|
83
|
+
required: true;
|
|
84
|
+
};
|
|
85
|
+
}, {
|
|
86
|
+
props: {
|
|
87
|
+
show: boolean;
|
|
88
|
+
point: import("./interface").ICoordinateValue;
|
|
89
|
+
list: string[];
|
|
90
|
+
propItems: AnyObject;
|
|
91
|
+
};
|
|
92
|
+
pointStyle: import("vue").ComputedRef<{
|
|
93
|
+
top: string;
|
|
94
|
+
bottom: string;
|
|
95
|
+
left: string;
|
|
96
|
+
right: string;
|
|
97
|
+
'transform-origin': string;
|
|
98
|
+
}>;
|
|
99
|
+
Teleport: {
|
|
100
|
+
new (): {
|
|
101
|
+
$props: import("vue").VNodeProps & import("vue").TeleportProps;
|
|
102
|
+
};
|
|
103
|
+
__isTeleport: true;
|
|
104
|
+
};
|
|
105
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
106
|
+
show: {
|
|
107
|
+
type: BooleanConstructor;
|
|
108
|
+
required: true;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
point: {
|
|
112
|
+
type: null;
|
|
113
|
+
required: true;
|
|
114
|
+
};
|
|
115
|
+
list: {
|
|
116
|
+
type: ArrayConstructor;
|
|
117
|
+
required: false;
|
|
118
|
+
default: () => never[];
|
|
119
|
+
};
|
|
120
|
+
propItems: {
|
|
121
|
+
type: null;
|
|
122
|
+
required: true;
|
|
123
|
+
};
|
|
124
|
+
}>>, {
|
|
125
|
+
list: unknown[];
|
|
126
|
+
}>;
|
|
127
|
+
PopupMenu: import("vue").DefineComponent<{
|
|
128
|
+
show: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
default: boolean;
|
|
131
|
+
};
|
|
132
|
+
list: {
|
|
133
|
+
type: ArrayConstructor;
|
|
134
|
+
default: () => never[];
|
|
135
|
+
};
|
|
136
|
+
point: {
|
|
137
|
+
type: PropType<import("./interface").ICoordinateValue>;
|
|
138
|
+
};
|
|
139
|
+
propItems: {
|
|
140
|
+
type: PropType<import("./interface").IPropItems>;
|
|
141
|
+
};
|
|
142
|
+
target: {
|
|
143
|
+
type: PropType<any>;
|
|
144
|
+
};
|
|
145
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "clickMenu")[], "clickMenu" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
146
|
+
show: {
|
|
147
|
+
type: BooleanConstructor;
|
|
148
|
+
default: boolean;
|
|
149
|
+
};
|
|
150
|
+
list: {
|
|
151
|
+
type: ArrayConstructor;
|
|
152
|
+
default: () => never[];
|
|
153
|
+
};
|
|
154
|
+
point: {
|
|
155
|
+
type: PropType<import("./interface").ICoordinateValue>;
|
|
156
|
+
};
|
|
157
|
+
propItems: {
|
|
158
|
+
type: PropType<import("./interface").IPropItems>;
|
|
159
|
+
};
|
|
160
|
+
target: {
|
|
161
|
+
type: PropType<any>;
|
|
162
|
+
};
|
|
163
|
+
}>> & {
|
|
164
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
165
|
+
onClickMenu?: ((...args: any[]) => any) | undefined;
|
|
166
|
+
}, {
|
|
167
|
+
show: boolean;
|
|
168
|
+
list: unknown[];
|
|
169
|
+
}>;
|
|
38
170
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "change" | "add" | "select")[], "delete" | "change" | "add" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
171
|
data: {
|
|
40
172
|
type: PropType<IBirthProcessData>;
|