cnhis-design-vue 3.3.2-beta.12 → 3.3.2-beta.6
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/README.md +87 -87
- package/es/components/audio-sdk/src/Index.vue2.js +1 -1
- package/es/components/audio-sdk/style/index.css +1 -1
- package/es/components/base-search/src/index.vue2.js +15 -27
- package/es/components/big-table/src/BigTable.vue2.js +131 -189
- package/es/components/big-table/src/components/NoData.vue2.js +4 -16
- package/es/components/big-table/src/components/edit-form/edit-date.js +6 -12
- package/es/components/big-table/src/components/edit-form/edit-input.js +2 -8
- package/es/components/big-table/src/components/edit-form/edit-select.js +17 -21
- package/es/components/big-table/src/components/edit-form/edit-time.js +4 -11
- package/es/components/big-table/src/components/input-button.vue2.js +3 -7
- package/es/components/big-table/src/hooks/useNestTable.js +4 -18
- package/es/components/big-table/src/hooks/useTableParse.js +3 -16
- package/es/components/body-select/src/index.vue2.js +4 -24
- package/es/components/button-print/index.d.ts +0 -1
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +0 -1
- package/es/components/button-print/src/ButtonPrint.vue2.js +11 -52
- package/es/components/button-print/src/components/EditFormat.vue2.js +6 -14
- package/es/components/button-print/src/components/IdentityVerification.vue2.js +43 -94
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +94 -229
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +0 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +32 -92
- package/es/components/button-print/src/components/Preview.vue2.js +2 -8
- package/es/components/button-print/src/utils/dialog.js +6 -24
- package/es/components/button-print/src/utils/print.d.ts +5 -5
- package/es/components/button-print/src/utils/print.js +21 -108
- package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +2 -8
- package/es/components/card-reader-sdk/src/utils/readHealthCard.js +4 -16
- package/es/components/card-reader-sdk-cn/src/henan/index.js +11 -38
- package/es/components/classification/src/components/search-filter/index.vue2.js +10 -24
- package/es/components/classification/src/components/set-classification/index.vue2.js +6 -23
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/classification/src/components/table-modal/index.vue2.js +165 -324
- package/es/components/classification/src/index.vue2.js +69 -261
- package/es/components/default-page/src/constants/index.js +19 -144
- package/es/components/default-page/src/index.vue2.js +2 -8
- package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +51 -75
- package/es/components/expand-field/src/components/FormItemPerson.vue2.js +38 -46
- package/es/components/expand-field/src/components/PersonModal.vue2.js +50 -62
- package/es/components/expand-field/src/components/form.vue2.js +412 -783
- package/es/components/expand-field/src/index.vue2.js +22 -88
- package/es/components/expand-field/src/utils/constant.js +12 -88
- package/es/components/fabric-chart/src/components/PopupMenu.js +15 -32
- package/es/components/fabric-chart/src/constants/index.js +10 -72
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +3 -16
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +2 -8
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +5 -32
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +2 -8
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +41 -63
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -5
- package/es/components/fabric-chart/src/hooks/useCommon.js +4 -24
- package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
- package/es/components/fabric-chart/src/utils/index.js +2 -2
- package/es/components/field-editor/src/fields.js +30 -232
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldColor.vue2.js +21 -88
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue2.js +12 -28
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue2.js +57 -210
- package/es/components/field-set/src/Index.vue2.js +6 -40
- package/es/components/field-set/src/TableStyle.vue2.js +13 -48
- package/es/components/field-set/src/components/condition.vue2.js +11 -27
- package/es/components/field-set/src/components/edit-dialog.vue2.js +69 -149
- package/es/components/field-set/src/components/edit-filter.vue2.js +4 -24
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/field-set/src/components/table-row.vue2.js +42 -123
- package/es/components/field-set/src/constants/filter.js +42 -328
- package/es/components/field-set/src/constants/index.js +64 -504
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +46 -91
- package/es/components/form-config/src/constants/index.js +11 -80
- package/es/components/form-config/src/hooks/useLocale.js +31 -240
- package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +3 -7
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +3 -7
- package/es/components/form-render/src/components/renderer/combination/tableCombination.js +2 -8
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +3 -7
- package/es/components/form-render/src/components/renderer/remoteSearch.js +2 -8
- package/es/components/form-render/src/components/renderer/switch.js +4 -24
- package/es/components/form-render/src/utils/schema.js +6 -26
- package/es/components/iho-chat/src/Index.vue2.js +38 -42
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +33 -108
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +90 -132
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +48 -110
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +15 -35
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +22 -54
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +45 -77
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +208 -256
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +211 -309
- package/es/components/iho-chat/src/components/ContextMenu.js +9 -50
- package/es/components/iho-chat/src/components/MessageEvent.vue2.js +4 -16
- package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +2 -8
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +18 -104
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +12 -67
- package/es/components/iho-chat/src/components/SelectLabel.vue2.js +43 -47
- package/es/components/iho-chat/src/components/SiderList.vue2.js +40 -70
- package/es/components/iho-chat/src/components/Video.vue2.js +11 -38
- package/es/components/iho-chat/src/hooks/useVideo.js +4 -15
- package/es/components/iho-chat/src/utils/index.js +14 -79
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +2 -8
- package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +15 -40
- package/es/components/iho-table/src/plugins/filterRemoteSearchPlugin/remoteFilter.vue2.js +15 -40
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +20 -50
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +6 -14
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +3 -10
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +18 -45
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +14 -20
- package/es/components/index.css +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue2.js +23 -142
- package/es/components/keyboard/src/Keyboard.vue2.js +9 -21
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +35 -49
- package/es/components/map/src/Map.vue2.js +3 -7
- package/es/components/picture-clipper/src/PictureClipper.vue2.js +6 -14
- package/es/components/quick-search/src/index.vue2.js +132 -177
- package/es/components/recommend-search/src/components/BaseSearch.js +8 -14
- package/es/components/recommend-search/src/components/RecommendInput.vue2.js +8 -28
- package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +5 -18
- package/es/components/scale-view/src/ScaleView.vue2.js +7 -15
- package/es/components/scale-view/src/components/NoData.vue2.js +4 -16
- package/es/components/scale-view/src/components/formitem/r-cascader.js +2 -8
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +6 -24
- package/es/components/scale-view/src/components/formitem/r-input.js +2 -8
- package/es/components/scale-view/src/components/formitem/r-map.js +2 -8
- package/es/components/scale-view/src/components/formitem/r-radio.js +6 -24
- package/es/components/scale-view/src/components/formitem/r-select.js +2 -8
- package/es/components/scale-view/src/components/formitem/r-sign.js +9 -30
- package/es/components/scale-view/src/components/formitem/standard-modal.js +3 -16
- package/es/components/scale-view/src/hooks/scaleview-computed.js +5 -24
- package/es/components/scale-view/src/hooks/scaleview-methods.js +4 -16
- package/es/components/scale-view/src/hooks/scaleview-submit.js +3 -16
- package/es/components/scale-view/src/hooks/scaleview-validate.js +9 -40
- package/es/components/search-cascader/src/SearchCascader.vue2.js +14 -20
- package/es/components/select-label/src/LabelFormContent.vue2.js +21 -53
- package/es/components/select-label/src/SelectLabel.vue2.js +55 -85
- package/es/components/select-label/src/components/label-classify.vue2.js +11 -28
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +5 -18
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +8 -34
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +5 -18
- package/es/components/select-person/src/SelectPerson.vue2.js +141 -214
- package/es/components/select-person/src/SelectPersonType.vue2.js +105 -130
- package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +2 -9
- package/es/components/select-person/src/index.vue2.js +7 -20
- package/es/components/slider-tree/src/index.vue2.js +3 -16
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +112 -186
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +88 -147
- package/es/components/table-export-field/src/index.vue2.js +12 -28
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +5 -32
- package/es/components/table-filter/src/components/bi-filter/helpers/options.js +34 -264
- package/es/components/table-filter/src/components/bi-filter/index.vue2.js +135 -214
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +3 -16
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +2 -9
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +6 -39
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +5 -18
- package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +18 -29
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +3 -16
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +2 -8
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +130 -195
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +7 -26
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +7 -13
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +8 -34
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +8 -21
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +3 -7
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +6 -19
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +3 -16
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +10 -24
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +207 -1648
- package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +2 -8
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +3 -16
- package/es/components/table-filter/src/tool/baseOptions.js +19 -144
- package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +12 -28
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +2 -22
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +3 -7
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +6 -14
- package/es/env.d.ts +25 -25
- package/es/shared/hooks/selectHooks/useSelectAllowModify.js +2 -2
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -10,6 +10,7 @@ import { format } from 'date-fns';
|
|
10
10
|
import { savePrivateFormatApi, getPrivateFormatApi } from '../api.js';
|
11
11
|
import { cloneDeep } from 'lodash-es';
|
12
12
|
|
13
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
13
14
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
14
15
|
__name: "OldPrintComponent",
|
15
16
|
props: {
|
@@ -21,58 +22,23 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
21
22
|
type: Array
|
22
23
|
},
|
23
24
|
btnText: {
|
24
|
-
default:
|
25
|
-
var _a, _b, _c;
|
26
|
-
try {
|
27
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.478")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.478")) || "\u6253\u5370";
|
28
|
-
} catch (e) {
|
29
|
-
return "\u6253\u5370";
|
30
|
-
}
|
31
|
-
}(),
|
25
|
+
default: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.478")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.478")) || "\u6253\u5370",
|
32
26
|
type: String
|
33
27
|
},
|
34
28
|
printText: {
|
35
|
-
default:
|
36
|
-
var _a, _b, _c;
|
37
|
-
try {
|
38
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.479")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.479")) || "\u76F4\u63A5\u6253\u5370";
|
39
|
-
} catch (e) {
|
40
|
-
return "\u76F4\u63A5\u6253\u5370";
|
41
|
-
}
|
42
|
-
}(),
|
29
|
+
default: ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.479")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.479")) || "\u76F4\u63A5\u6253\u5370",
|
43
30
|
type: String
|
44
31
|
},
|
45
32
|
previewText: {
|
46
|
-
default:
|
47
|
-
var _a, _b, _c;
|
48
|
-
try {
|
49
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.480")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.480")) || "\u6253\u5370\u9884\u89C8";
|
50
|
-
} catch (e) {
|
51
|
-
return "\u6253\u5370\u9884\u89C8";
|
52
|
-
}
|
53
|
-
}(),
|
33
|
+
default: ((_g = window.getLanguageByCode) == null ? void 0 : _g.call(window, "10010.1.480")) || ((_i = (_h = window.top) == null ? void 0 : _h.getLanguageByCode) == null ? void 0 : _i.call(_h, "10010.1.480")) || "\u6253\u5370\u9884\u89C8",
|
54
34
|
type: String
|
55
35
|
},
|
56
36
|
pdfLoadText: {
|
57
|
-
default:
|
58
|
-
var _a, _b, _c;
|
59
|
-
try {
|
60
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.481")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.481")) || "\u4E0B\u8F7Dpdf";
|
61
|
-
} catch (e) {
|
62
|
-
return "\u4E0B\u8F7Dpdf";
|
63
|
-
}
|
64
|
-
}(),
|
37
|
+
default: ((_j = window.getLanguageByCode) == null ? void 0 : _j.call(window, "10010.1.481")) || ((_l = (_k = window.top) == null ? void 0 : _k.getLanguageByCode) == null ? void 0 : _l.call(_k, "10010.1.481")) || "\u4E0B\u8F7Dpdf",
|
65
38
|
type: String
|
66
39
|
},
|
67
40
|
formatEditText: {
|
68
|
-
default:
|
69
|
-
var _a, _b, _c;
|
70
|
-
try {
|
71
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.482")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.482")) || "\u683C\u5F0F\u7F16\u8F91";
|
72
|
-
} catch (e) {
|
73
|
-
return "\u683C\u5F0F\u7F16\u8F91";
|
74
|
-
}
|
75
|
-
}(),
|
41
|
+
default: ((_m = window.getLanguageByCode) == null ? void 0 : _m.call(window, "10010.1.482")) || ((_o = (_n = window.top) == null ? void 0 : _n.getLanguageByCode) == null ? void 0 : _o.call(_n, "10010.1.482")) || "\u683C\u5F0F\u7F16\u8F91",
|
76
42
|
type: String
|
77
43
|
},
|
78
44
|
prevFn: {
|
@@ -96,14 +62,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
96
62
|
type: Function
|
97
63
|
},
|
98
64
|
noDataMsg: {
|
99
|
-
default:
|
100
|
-
var _a, _b, _c;
|
101
|
-
try {
|
102
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.483")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.483")) || "\u8BF7\u9009\u4E2D\u9700\u8981\u6253\u5370\u7684\u6570\u636E";
|
103
|
-
} catch (e) {
|
104
|
-
return "\u8BF7\u9009\u4E2D\u9700\u8981\u6253\u5370\u7684\u6570\u636E";
|
105
|
-
}
|
106
|
-
}(),
|
65
|
+
default: ((_p = window.getLanguageByCode) == null ? void 0 : _p.call(window, "10010.1.483")) || ((_r = (_q = window.top) == null ? void 0 : _q.getLanguageByCode) == null ? void 0 : _r.call(_q, "10010.1.483")) || "\u8BF7\u9009\u4E2D\u9700\u8981\u6253\u5370\u7684\u6570\u636E",
|
107
66
|
type: String
|
108
67
|
},
|
109
68
|
noDefaultFormatMsg: {
|
@@ -163,7 +122,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
163
122
|
setup(__props, {
|
164
123
|
expose
|
165
124
|
}) {
|
166
|
-
var
|
125
|
+
var _a2;
|
167
126
|
const props = __props;
|
168
127
|
const $attrs = useAttrs();
|
169
128
|
const $message = useMessage();
|
@@ -187,8 +146,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
187
146
|
isInited: false,
|
188
147
|
watchPrintParamsReformatFn: null,
|
189
148
|
spinTimer: null,
|
190
|
-
iReportExecuteMode: 1
|
191
|
-
number: ""
|
149
|
+
iReportExecuteMode: 1
|
192
150
|
});
|
193
151
|
let options = ref([{
|
194
152
|
label: props.printText,
|
@@ -202,7 +160,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
202
160
|
}, {
|
203
161
|
label: props.formatEditText,
|
204
162
|
key: "formatEditText"
|
205
|
-
}, ...((
|
163
|
+
}, ...((_a2 = props.externalOptionConfig) == null ? void 0 : _a2.options) || []]);
|
206
164
|
const tempOptions = ref([]);
|
207
165
|
const currentFormatItem = computed(() => {
|
208
166
|
if (!state.currentFormatId)
|
@@ -211,15 +169,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
211
169
|
return state.formatList.find((item) => item.id === id);
|
212
170
|
});
|
213
171
|
const formatTitle = computed(() => {
|
214
|
-
var
|
215
|
-
return ((
|
216
|
-
var _a3, _b, _c;
|
217
|
-
try {
|
218
|
-
return ((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.485")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.485")) || "\u683C\u5F0F\u9009\u62E9";
|
219
|
-
} catch (e) {
|
220
|
-
return "\u683C\u5F0F\u9009\u62E9";
|
221
|
-
}
|
222
|
-
}();
|
172
|
+
var _a3, _b2, _c2, _d2;
|
173
|
+
return ((_a3 = currentFormatItem.value) == null ? void 0 : _a3.name) || ((_b2 = window.getLanguageByCode) == null ? void 0 : _b2.call(window, "10010.1.485")) || ((_d2 = (_c2 = window.top) == null ? void 0 : _c2.getLanguageByCode) == null ? void 0 : _d2.call(_c2, "10010.1.485")) || "\u683C\u5F0F\u9009\u62E9";
|
223
174
|
});
|
224
175
|
const getTemplateIdByFormatId = computed(() => {
|
225
176
|
let find = state.formatList.find((item) => item.id === state.currentFormatId);
|
@@ -278,23 +229,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
278
229
|
emit("cancel", res);
|
279
230
|
};
|
280
231
|
const prevFnError = (type) => {
|
232
|
+
var _a3, _b2, _c2;
|
281
233
|
const error = {
|
282
|
-
message:
|
283
|
-
var _a2, _b, _c;
|
284
|
-
try {
|
285
|
-
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.486")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.486")) || "\u524D\u7F6E\u6761\u4EF6\u6267\u884C\u9519\u8BEF";
|
286
|
-
} catch (e) {
|
287
|
-
return "\u524D\u7F6E\u6761\u4EF6\u6267\u884C\u9519\u8BEF";
|
288
|
-
}
|
289
|
-
}(),
|
234
|
+
message: ((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.486")) || ((_c2 = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c2.call(_b2, "10010.1.486")) || "\u524D\u7F6E\u6761\u4EF6\u6267\u884C\u9519\u8BEF",
|
290
235
|
type,
|
291
236
|
preExecution: true
|
292
237
|
};
|
293
238
|
emit("error", error);
|
294
239
|
};
|
295
240
|
const getPrintParams = (index = 0) => {
|
296
|
-
var
|
297
|
-
const params = ((
|
241
|
+
var _a3;
|
242
|
+
const params = ((_a3 = props.printParams) == null ? void 0 : _a3.length) ? props.printParams[index] : state.printParams[index];
|
298
243
|
return JSON.stringify({
|
299
244
|
...params || {},
|
300
245
|
...props.token ? {
|
@@ -304,11 +249,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
304
249
|
});
|
305
250
|
};
|
306
251
|
const getOnceParams = () => {
|
307
|
-
var
|
252
|
+
var _a3, _b2;
|
308
253
|
let params = {};
|
309
254
|
let obj = {};
|
310
|
-
if ((
|
311
|
-
const key = ((
|
255
|
+
if ((_a3 = state.templateParams.customizeDataset) == null ? void 0 : _a3.length) {
|
256
|
+
const key = ((_b2 = Object.keys(state.printParams[0].datasetData || {})) == null ? void 0 : _b2[0]) || "";
|
312
257
|
const datasetDataKeyVal = JSON.stringify(state.printParams.map((v) => JSON.parse(v.datasetData[key])));
|
313
258
|
obj = {
|
314
259
|
datasetData: {}
|
@@ -348,7 +293,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
348
293
|
}).then(() => {
|
349
294
|
const queryParams = {
|
350
295
|
iReportExecuteMode: state.iReportExecuteMode,
|
351
|
-
number: state.number,
|
352
296
|
formatId: state.currentFormatId,
|
353
297
|
templateId: getTemplateIdByFormatId.value,
|
354
298
|
authorizationKey: authorizationKey.value,
|
@@ -394,7 +338,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
394
338
|
const queryParams = {
|
395
339
|
formatId: state.currentFormatId,
|
396
340
|
iReportExecuteMode: state.iReportExecuteMode,
|
397
|
-
number: state.number,
|
398
341
|
templateId: getTemplateIdByFormatId.value,
|
399
342
|
authorizationKey: authorizationKey.value,
|
400
343
|
params,
|
@@ -424,7 +367,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
424
367
|
const queryParams = {
|
425
368
|
formatId: state.currentFormatId,
|
426
369
|
iReportExecuteMode: state.iReportExecuteMode,
|
427
|
-
number: state.number,
|
428
370
|
templateId: getTemplateIdByFormatId.value,
|
429
371
|
authorizationKey: authorizationKey.value,
|
430
372
|
print: {
|
@@ -460,7 +402,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
460
402
|
});
|
461
403
|
};
|
462
404
|
const handleSelect = async (key, option) => {
|
463
|
-
var
|
405
|
+
var _a3, _b2;
|
464
406
|
switch (key) {
|
465
407
|
case "printText":
|
466
408
|
handleDebounceClickPrint();
|
@@ -500,7 +442,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
500
442
|
token: props.token
|
501
443
|
});
|
502
444
|
} else {
|
503
|
-
(
|
445
|
+
(_b2 = (_a3 = props.externalOptionConfig) == null ? void 0 : _a3.onSelect) == null ? void 0 : _b2.call(_a3, key, option, {
|
504
446
|
formatId: state.currentFormatId
|
505
447
|
});
|
506
448
|
}
|
@@ -518,7 +460,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
518
460
|
printInstance = new Print();
|
519
461
|
};
|
520
462
|
const getDefaultFormatId = async (list, key) => {
|
521
|
-
var
|
463
|
+
var _a3;
|
522
464
|
if (!(list == null ? void 0 : list.length))
|
523
465
|
return "";
|
524
466
|
if (!$attrs.isDoc) {
|
@@ -534,7 +476,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
534
476
|
formatForms = []
|
535
477
|
} = data.map || {};
|
536
478
|
Object.assign(defaultFormatInfo, data.map || {});
|
537
|
-
const id = (
|
479
|
+
const id = (_a3 = formatForms == null ? void 0 : formatForms[0]) == null ? void 0 : _a3.id;
|
538
480
|
if (id && list.map((item) => item.id).includes(id))
|
539
481
|
return id;
|
540
482
|
}
|
@@ -543,7 +485,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
543
485
|
return (findDefault == null ? void 0 : findDefault.id) || list[0].id;
|
544
486
|
};
|
545
487
|
const setOptions = () => {
|
546
|
-
var
|
488
|
+
var _a3;
|
547
489
|
const children = state.formatList.map((v) => {
|
548
490
|
return {
|
549
491
|
label: v.name,
|
@@ -561,7 +503,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
561
503
|
const portalStr = sessionStorage.getItem("portal");
|
562
504
|
if (portalStr) {
|
563
505
|
const portal = JSON.parse(portalStr);
|
564
|
-
const limitObj = ((
|
506
|
+
const limitObj = ((_a3 = portal == null ? void 0 : portal.user) == null ? void 0 : _a3.currentRoleResourceObj) || {};
|
565
507
|
const limitList = Object.keys(limitObj);
|
566
508
|
if (!limitList.includes(downloadPdfCode)) {
|
567
509
|
options.value = options.value.filter((option) => option.key != "downloadPdf");
|
@@ -632,10 +574,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
632
574
|
});
|
633
575
|
};
|
634
576
|
const initCRM = async (formatListResult) => {
|
635
|
-
var
|
577
|
+
var _a3, _b2;
|
636
578
|
state.formatList = formatListResult ? formatFormatList(formatListResult.obj) : [];
|
637
|
-
state.iReportExecuteMode = ((
|
638
|
-
state.number = ((_b = formatListResult == null ? void 0 : formatListResult.obj) == null ? void 0 : _b.length) > 0 ? formatListResult.obj[0].number || "" : "";
|
579
|
+
state.iReportExecuteMode = ((_a3 = formatListResult == null ? void 0 : formatListResult.obj) == null ? void 0 : _a3.length) > 0 ? formatListResult.obj[0].iReportExecuteMode || 1 : 1;
|
639
580
|
state.currentFormatId = await getDefaultFormatId(state.formatList, "defaultFlag");
|
640
581
|
if (!state.currentFormatId) {
|
641
582
|
options.value = [];
|
@@ -643,7 +584,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
643
584
|
return requestError();
|
644
585
|
}
|
645
586
|
setOptions();
|
646
|
-
let templateParamsResult = (
|
587
|
+
let templateParamsResult = (_b2 = await props.queryTemplateParams()) == null ? void 0 : _b2.obj;
|
647
588
|
if (templateParamsResult && getTemplateIdByFormatId.value) {
|
648
589
|
state.templateParams = templateParamsResult;
|
649
590
|
} else {
|
@@ -653,7 +594,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
653
594
|
state.printParams = formatParams(state.templateParams, props.params);
|
654
595
|
};
|
655
596
|
const init = async () => {
|
656
|
-
var
|
597
|
+
var _a3;
|
657
598
|
if (state.isInited)
|
658
599
|
return true;
|
659
600
|
state.isInited = true;
|
@@ -661,17 +602,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
661
602
|
instantiatePrintSDK();
|
662
603
|
const formatListResult = await props.queryPrintFormatByNumber();
|
663
604
|
await initCRM(formatListResult);
|
664
|
-
if (((
|
605
|
+
if (((_a3 = formatListResult.obj) == null ? void 0 : _a3.length) > 0)
|
665
606
|
authorizationKey.value = formatListResult.obj[0].authorizationKey || "";
|
666
607
|
state.spinning = false;
|
667
608
|
return true;
|
668
609
|
};
|
669
610
|
const handleClickBtn = async (visible = true) => {
|
670
|
-
var
|
611
|
+
var _a3, _b2;
|
671
612
|
const status = await props.clickPrevFn();
|
672
613
|
if (!status)
|
673
614
|
return;
|
674
|
-
if (!((
|
615
|
+
if (!((_a3 = props.params) == null ? void 0 : _a3.length) && !((_b2 = props.printParams) == null ? void 0 : _b2.length)) {
|
675
616
|
$message.warning(props.noDataMsg);
|
676
617
|
return;
|
677
618
|
}
|
@@ -702,7 +643,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
702
643
|
return callLocalServicesSuccessCb(null, "edit");
|
703
644
|
const queryParams = {
|
704
645
|
formatId: state.currentFormatId,
|
705
|
-
number: state.number,
|
706
646
|
templateId: getTemplateIdByFormatId.value,
|
707
647
|
params: getPrintParams(),
|
708
648
|
token
|
@@ -34,14 +34,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
34
34
|
}, 300);
|
35
35
|
});
|
36
36
|
function titleRender() {
|
37
|
-
|
38
|
-
|
39
|
-
try {
|
40
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.490")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.490")) || "\u9884\u89C8";
|
41
|
-
} catch (e) {
|
42
|
-
return "\u9884\u89C8";
|
43
|
-
}
|
44
|
-
}())]), createVNode(NIcon, {
|
37
|
+
var _a, _b, _c;
|
38
|
+
return createVNode(Fragment, null, [createVNode("div", null, [createTextVNode(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.490")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.490")) || "\u9884\u89C8")]), createVNode(NIcon, {
|
45
39
|
"style": {
|
46
40
|
margin: "0 0 0 auto",
|
47
41
|
transform: isNormalSize.value ? "none" : "rotate(90deg)"
|
@@ -11,15 +11,9 @@ class IdentityVerificationDialog {
|
|
11
11
|
return `[IdentityVerificationDialog] ${message}`;
|
12
12
|
}
|
13
13
|
show(instance, title, api, formatId, templateId) {
|
14
|
+
var _a, _b, _c;
|
14
15
|
if (this.rendered)
|
15
|
-
return Promise.reject(IdentityVerificationDialog.createMsg(
|
16
|
-
var _a, _b, _c;
|
17
|
-
try {
|
18
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.491")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.491")) || "\u8BF7\u52FF\u91CD\u590D\u6253\u5F00\u5F39\u7A97";
|
19
|
-
} catch (e) {
|
20
|
-
return "\u8BF7\u52FF\u91CD\u590D\u6253\u5F00\u5F39\u7A97";
|
21
|
-
}
|
22
|
-
}()));
|
16
|
+
return Promise.reject(IdentityVerificationDialog.createMsg(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.491")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.491")) || "\u8BF7\u52FF\u91CD\u590D\u6253\u5F00\u5F39\u7A97"));
|
23
17
|
return new Promise((resolve, reject) => {
|
24
18
|
this.rendered = true;
|
25
19
|
const container = document.createElement("div");
|
@@ -42,14 +36,8 @@ class IdentityVerificationDialog {
|
|
42
36
|
mount(container);
|
43
37
|
nextTick(() => visible.value = true);
|
44
38
|
function onClose() {
|
45
|
-
|
46
|
-
|
47
|
-
try {
|
48
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.492")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.492")) || "\u5F39\u7A97\u5173\u95ED";
|
49
|
-
} catch (e) {
|
50
|
-
return "\u5F39\u7A97\u5173\u95ED";
|
51
|
-
}
|
52
|
-
}()));
|
39
|
+
var _a2, _b2, _c2;
|
40
|
+
reject(IdentityVerificationDialog.createMsg(((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.492")) || ((_c2 = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c2.call(_b2, "10010.1.492")) || "\u5F39\u7A97\u5173\u95ED"));
|
53
41
|
}
|
54
42
|
function onSuccess(token) {
|
55
43
|
resolve(token);
|
@@ -76,15 +64,9 @@ class PreviewDialog {
|
|
76
64
|
return `[PreviewDialog] ${message}`;
|
77
65
|
}
|
78
66
|
show(instance, src) {
|
67
|
+
var _a, _b, _c;
|
79
68
|
if (this.rendered)
|
80
|
-
return Promise.reject(PreviewDialog.createMsg(
|
81
|
-
var _a, _b, _c;
|
82
|
-
try {
|
83
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.491")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.491")) || "\u8BF7\u52FF\u91CD\u590D\u6253\u5F00\u5F39\u7A97";
|
84
|
-
} catch (e) {
|
85
|
-
return "\u8BF7\u52FF\u91CD\u590D\u6253\u5F00\u5F39\u7A97";
|
86
|
-
}
|
87
|
-
}()));
|
69
|
+
return Promise.reject(PreviewDialog.createMsg(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.491")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.491")) || "\u8BF7\u52FF\u91CD\u590D\u6253\u5F00\u5F39\u7A97"));
|
88
70
|
return new Promise((resolve, reject) => {
|
89
71
|
this.rendered = true;
|
90
72
|
const container = document.createElement("div");
|
@@ -55,8 +55,8 @@ export declare class Print {
|
|
55
55
|
pageCount: any;
|
56
56
|
formatId: string;
|
57
57
|
};
|
58
|
-
_handleEventDirect({ templateId, formatId,
|
59
|
-
_handleEventEditFormat({ templateId, formatId,
|
58
|
+
_handleEventDirect({ templateId, formatId, svrUpdateIp, hideButtons, params, paramsArr, cmdid, print, signature, copies, printdlgshow, nobillnode, btnprint, messageTimeout }: AnyObject): Promise<any>;
|
59
|
+
_handleEventEditFormat({ templateId, formatId, params, token, messageTimeout }: AnyObject): Promise<any>;
|
60
60
|
_queryProxyOrigin(): Promise<void>;
|
61
61
|
_queryPrintFile(formatId: string, params?: string): Promise<any>;
|
62
62
|
paramsSerializer(params: AnyObject): AnyObject;
|
@@ -66,9 +66,9 @@ export declare class Print {
|
|
66
66
|
_queryPrintForPdf(templateId: string, formatId: string, params: string | undefined, authorizationKey: String): Promise<any>;
|
67
67
|
_browserPrint(result: AnyObject, mode: string): Promise<string | void>;
|
68
68
|
_base64ToBlob(fileBase64: string, fileType: string): Blob;
|
69
|
-
preview({ iReportExecuteMode, hideButtons, templateId,
|
69
|
+
preview({ iReportExecuteMode, hideButtons, templateId, formatId: originFormatId, params, paramsArr, authorizationKey, signature, btnprint, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<any>;
|
70
70
|
printSync(data: AnyObject[], successCallbackFn: AnyFn, errorCallbackFn: AnyFn): Promise<void>;
|
71
|
-
printDirect({ iReportExecuteMode, templateId,
|
71
|
+
printDirect({ iReportExecuteMode, templateId, formatId: originFormatId, params, paramsArr, authorizationKey, print, signature, printdlgshow, nobillnode, copies, svrUpdateIp, isDownloadFile, messageTimeout }: AnyObject, successCallbackFn: AnyFn, errorCallbackFn: AnyFn, cancelCallbackFn?: AnyFn, mode?: string): Promise<false | undefined>;
|
72
72
|
printToHiPrint({ templateId, formatId, params, authorizationKey }: any, successCallbackFn: AnyFn, errorCallbackFn: AnyFn, cancelCallbackFn?: AnyFn): Promise<any>;
|
73
73
|
private _downloadPDF;
|
74
74
|
/**
|
@@ -83,6 +83,6 @@ export declare class Print {
|
|
83
83
|
formatId: string;
|
84
84
|
}>;
|
85
85
|
printFileData({ formatId, file, printerName }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<false | AnyObject>;
|
86
|
-
editPrintFormat({ templateId, formatId,
|
86
|
+
editPrintFormat({ templateId, formatId, params, token, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<false | undefined>;
|
87
87
|
addPrintFormat({ templateId, params, token }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<false | undefined>;
|
88
88
|
}
|