@gct-paas/word 1.0.3-beta.0 → 1.0.3-beta.2
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 +8 -3
- package/dist/browser.js +1 -1
- package/dist/chunks/QuickFillPanel-BNZwXlnL.js +336 -0
- package/dist/chunks/QuickFillPanel-BNZwXlnL.js.map +1 -0
- package/dist/chunks/{browser-OAJIVM8O.js → browser-DkEIriBA.js} +1124 -661
- package/dist/chunks/browser-DkEIriBA.js.map +1 -0
- package/dist/chunks/{sdk-BmwE5mZn.js → sdk-DaWE1Ttf.js} +242 -63
- package/dist/chunks/sdk-DaWE1Ttf.js.map +1 -0
- package/dist/chunks/{types-CMkQ6Lvg.js → types-CzOaf1gP.js} +67 -149
- package/dist/chunks/types-CzOaf1gP.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/style.css +348 -241
- package/dist/types/adapters/browser/index.d.ts +1 -0
- package/dist/types/adapters/browser/input/CanvasFieldBrackets.d.ts +10 -0
- package/dist/types/adapters/browser/input/CanvasTextInput.d.ts +5 -2
- package/dist/types/adapters/browser/input/ChoiceFieldInput.d.ts +7 -2
- package/dist/types/adapters/browser/input/FieldInputValidation.d.ts +1 -1
- package/dist/types/adapters/browser/input/InlineFieldInput.d.ts +1 -1
- package/dist/types/adapters/browser/input/business/FieldPopover.d.ts +6 -0
- package/dist/types/adapters/browser/input/business/materials/CanvasMaterialTableActions.d.ts +3 -0
- package/dist/types/adapters/browser/input/business/materials/attach-canvas-materials.d.ts +3 -1
- package/dist/types/adapters/browser/input/business/tables/CanvasBusinessTableActions.d.ts +3 -0
- package/dist/types/adapters/browser/input/business/tables/CanvasBusinessTablePanel.d.ts +4 -0
- package/dist/types/adapters/browser/input/business/tables/CanvasQuickFillDialog.d.ts +9 -8
- package/dist/types/adapters/browser/input/business/tables/attach-canvas-business-table.d.ts +4 -1
- package/dist/types/adapters/browser/input/business/tables/quick-fill-panel.d.ts +22 -0
- package/dist/types/adapters/browser/input/business/tables/table-action-anchors.d.ts +3 -3
- package/dist/types/adapters/browser/input/business/tables/table-action-pages.d.ts +26 -0
- package/dist/types/adapters/browser/input/business/tables/table-actions-renderer.d.ts +4 -0
- package/dist/types/adapters/browser/input/field-panel-geometry.d.ts +12 -0
- package/dist/types/adapters/browser/input/types.d.ts +4 -4
- package/dist/types/adapters/browser/input/validation/CanvasValidationComments.d.ts +19 -0
- package/dist/types/adapters/browser/input/validation/CanvasValidationPanel.d.ts +11 -7
- package/dist/types/adapters/browser/input/validation/validation-issue-key.d.ts +3 -0
- package/dist/types/adapters/browser/input/word-error-text.d.ts +4 -0
- package/dist/types/adapters/document/types.d.ts +2 -1
- package/dist/types/adapters/platform/field-catalog/field-business-rules.d.ts +1 -1
- package/dist/types/adapters/platform/reference-policies.d.ts +3 -1
- package/dist/types/adapters/platform/template-reference-migration.d.ts +6 -0
- package/dist/types/adapters/platform/templates.d.ts +2 -0
- package/dist/types/adapters/vue/QuickFillPanel.vue.d.ts +12 -0
- package/dist/types/adapters/vue/SignatureFieldPanel.vue.d.ts +0 -1
- package/dist/types/adapters/vue/SignatureVisual.vue.d.ts +2 -0
- package/dist/types/adapters/vue/index.d.ts +1 -0
- package/dist/types/adapters/vue/quick-fill-container.d.ts +2 -0
- package/dist/types/adapters/vue/quick-fill-data.d.ts +8 -0
- package/dist/types/adapters/vue/quick-fill-merge.d.ts +49 -0
- package/dist/types/adapters/vue/quick-fill-panel.d.ts +4 -0
- package/dist/types/layout/engine/atoms/field-control.d.ts +2 -0
- package/dist/types/layout/engine/atoms/fit-atomic.d.ts +1 -1
- package/dist/types/runtime/form/fields/core/declaration-changes.d.ts +2 -2
- package/dist/types/runtime/form/validation/NativeFieldValidation.d.ts +2 -0
- package/dist/types/runtime/form/validation/description.d.ts +8 -4
- package/dist/types/runtime/interaction/EditorController.d.ts +3 -1
- package/dist/types/runtime/interaction/browse/types.d.ts +1 -6
- package/dist/types/runtime/interaction/design/tables/regions/EditorTableRegions.d.ts +3 -1
- package/dist/types/runtime/interaction/field-text.d.ts +5 -5
- package/dist/types/runtime/interaction/validation/types.d.ts +2 -0
- package/dist/types/shared/text/word-navigation.d.ts +1 -0
- package/dist/types/shared/word-shortcuts.d.ts +28 -0
- package/dist/vue.js +858 -571
- package/dist/vue.js.map +1 -1
- package/package.json +2 -1
- package/dist/chunks/browser-OAJIVM8O.js.map +0 -1
- package/dist/chunks/sdk-BmwE5mZn.js.map +0 -1
- package/dist/chunks/types-CMkQ6Lvg.js.map +0 -1
- package/dist/types/adapters/browser/input/business/tables/fixed-quick-fill-grid.d.ts +0 -19
- package/dist/types/adapters/browser/input/validation/CanvasValidationMarks.d.ts +0 -15
package/dist/vue.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as getGctFieldIcon, c as getGctBusinessFieldType, i as readGctModelMeta, n as isGctInternalFormField, o as GCT_BASE_FIELD_TYPES, r as readGctFieldCreationContext, s as GCT_BUSINESS_FIELD_TYPES, t as getGctFormModelLoader } from "./chunks/fields-CAcm6X98.js";
|
|
2
2
|
import { a as icon_default, i as PopperWrapper, n as DialogActionButton_default, o as button_default, r as tooltip_default, s as _plugin_vue_export_helper_default, t as GctModal } from "./chunks/src-BFXPGLus.js";
|
|
3
|
-
import {
|
|
4
|
-
import { A as
|
|
3
|
+
import { Lt as isMaterialLotBinding, Rt as isNamedLotBinding, V as designRegionVariants, Xt as commonFieldDeclaration, et as TextFlowError, t as nativeTableRowBatchLimit, z as designRegionLabel } from "./chunks/types-CzOaf1gP.js";
|
|
4
|
+
import { A as readWordErrorText, B as inputScreenRect, D as FieldInputBlockedError, F as openImageViewer, G as loadBrowserImage, H as viewportClip, I as clipInputRect, J as NativeFontResources, K as CanvasImageResources, L as inputPageLocation, M as revealInputRect, N as ResourceFileSizes, O as isWordCancellation, P as resourceFileIcon, R as inputPointerRequest, S as attachCanvasBusinessTablePanel, U as paintPage, V as CanvasPages, W as paintSignatureGraphic, X as browserAbortable, Z as CanvasTextMeasurer, a as attachCanvasFieldDesignPanel, b as attachCanvasValidationPanel, c as attachCanvasTableDesignPanel, d as attachCanvasFieldCatalogPanel, g as attachCanvasObjectHandles, h as fieldSettingControls, j as wordPanelErrorText, k as isWordValidationError, n as CanvasBusinessTableActions, o as attachCanvasRegionDesignPanel, q as layoutImages, r as attachCanvasMaterialsPanel, t as CanvasMaterialTableActions, u as attachCanvasFormatPanel, v as attachCanvasFieldDrag, x as attachCanvasTextInput, z as inputScreenPages } from "./chunks/browser-DkEIriBA.js";
|
|
5
|
+
import { At as clippedFrame, B as logicalFillPath, C as NativeReferenceScopeError, D as materialAutofillRegions, E as tableSelectionKind, F as nativeProductReference, H as nativeSourceWorkerCode, J as sourceParameters, K as copySourceValue, Lt as runtimeRequest, O as productAutofillDetails, P as materialProductMatches, St as compareDocumentContent, T as inventorySelection, Tt as isRecord, U as runNativeSourceScript, V as subtableFillColumn, Y as sourceProperty, _ as CHECK_TABLE_TYPE_TO_VALUE_FIELD, _t as resizedDesignColumnWidth, c as businessNumberMinimum, gt as NestedTableInsertionError, h as allocationNotices, j as getInvalidMaterialLotReason, jt as signatureGraphic, l as businessTableFieldDefaults, mt as attachNativeInteraction, o as attachNativeDataServices, pt as isDerivedDataPath, q as sourceResult, r as choiceSpacingDefaults, t as attachNativeLayout, u as attachSessionData, v as isSubmitExcludedKey, vt as MissingSubTableHeaderTargetError, wt as validateTemplateSave, xt as DocumentSession, yt as FieldPlacementError } from "./chunks/sdk-DaWE1Ttf.js";
|
|
5
6
|
import { c as DocumentValidationError, l as parseDocument, u as readDocument } from "./chunks/NodeFactory-DzFnWaWf.js";
|
|
6
|
-
import { At as clippedFrame, B as logicalFillPath, C as NativeReferenceScopeError, D as materialAutofillRegions, E as tableSelectionKind, F as nativeProductReference, H as nativeSourceWorkerCode, It as runtimeRequest, J as sourceParameters, K as copySourceValue, O as productAutofillDetails, P as materialProductMatches, St as compareDocumentContent, T as inventorySelection, Tt as isRecord, U as runNativeSourceScript, V as subtableFillColumn, Y as sourceProperty, _ as CHECK_TABLE_TYPE_TO_VALUE_FIELD, _t as resizedDesignColumnWidth, c as businessNumberMinimum, gt as NestedTableInsertionError, h as allocationNotices, j as getInvalidMaterialLotReason, l as businessTableFieldDefaults, mt as attachNativeInteraction, o as attachNativeDataServices, pt as isDerivedDataPath, q as sourceResult, r as choiceSpacingDefaults, t as attachNativeLayout, u as attachSessionData, v as isSubmitExcludedKey, vt as MissingSubTableHeaderTargetError, wt as validateTemplateSave, xt as DocumentSession, yt as FieldPlacementError } from "./chunks/sdk-BmwE5mZn.js";
|
|
7
7
|
import { g as parseValuePath, r as collectDataLockFields, s as containsRectangle, t as ModelEditor } from "./chunks/ModelEditor-DqavEAJg.js";
|
|
8
8
|
import { u as createUuid$1 } from "./chunks/change-set-DgfKTJ6d.js";
|
|
9
9
|
import { n as wordFontFamilies, t as defaultWordFontFamily } from "./chunks/word-fonts-BA_Tyfnj.js";
|
|
@@ -13,10 +13,10 @@ import { I as isObject, c as communicationBusinessSchema, d as repeatingTableSet
|
|
|
13
13
|
import { n as tableBorderWidthsPx, r as createDocument, t as defaultTableBorderColor } from "./chunks/table-borders-B9bZMj5o.js";
|
|
14
14
|
import { countBy } from "es-toolkit/array";
|
|
15
15
|
import { isEqual, isPlainObject } from "es-toolkit/predicate";
|
|
16
|
-
import dayjs from "dayjs";
|
|
17
16
|
import { cloneDeep, debounce, isEqual as isEqual$1, omit } from "es-toolkit";
|
|
18
17
|
import BigNumber from "bignumber.js";
|
|
19
18
|
import { cloneDeep as cloneDeep$1 } from "es-toolkit/object";
|
|
19
|
+
import dayjs from "dayjs";
|
|
20
20
|
import { sha256 } from "js-sha256";
|
|
21
21
|
import { Comment, Fragment, Teleport, Text, Transition, TransitionGroup, cloneVNode, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, h, inject, isRef, isVNode, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, onUpdated, openBlock, provide, reactive, ref, render, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowReactive, shallowRef, toDisplayString, toRaw, unref, useCssVars, useId, useModel, useSlots, useTemplateRef, vModelCheckbox, vModelSelect, vModelText, vShow, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
22
22
|
import { groupBy as groupBy$2, isNil as isNil$1 } from "es-toolkit/compat";
|
|
@@ -537,7 +537,7 @@ var checkbox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
537
537
|
var _hoisted_1$115 = { class: "collapse" };
|
|
538
538
|
var _hoisted_2$93 = ["aria-expanded"];
|
|
539
539
|
var _hoisted_3$75 = { class: "header-text" };
|
|
540
|
-
var _hoisted_4$
|
|
540
|
+
var _hoisted_4$61 = {
|
|
541
541
|
ref: "content",
|
|
542
542
|
class: "collapse-body"
|
|
543
543
|
};
|
|
@@ -595,7 +595,7 @@ var collapse_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
595
595
|
onAfterLeave,
|
|
596
596
|
persisted: ""
|
|
597
597
|
}, {
|
|
598
|
-
default: withCtx(() => [withDirectives(createElementVNode("div", _hoisted_4$
|
|
598
|
+
default: withCtx(() => [withDirectives(createElementVNode("div", _hoisted_4$61, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 512), [[vShow, open.value]])]),
|
|
599
599
|
_: 3
|
|
600
600
|
})]);
|
|
601
601
|
};
|
|
@@ -1615,9 +1615,9 @@ var _hoisted_3$74 = {
|
|
|
1615
1615
|
key: 0,
|
|
1616
1616
|
class: "group-label"
|
|
1617
1617
|
};
|
|
1618
|
-
var _hoisted_4$
|
|
1619
|
-
var _hoisted_5$
|
|
1620
|
-
var _hoisted_6$
|
|
1618
|
+
var _hoisted_4$60 = ["onClick"];
|
|
1619
|
+
var _hoisted_5$55 = { class: "option-label" };
|
|
1620
|
+
var _hoisted_6$47 = { class: "option-right" };
|
|
1621
1621
|
var _hoisted_7$40 = {
|
|
1622
1622
|
key: 1,
|
|
1623
1623
|
class: "divider"
|
|
@@ -1765,10 +1765,10 @@ var dropdown_basic_select_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
|
|
|
1765
1765
|
disabled: !item.showTip
|
|
1766
1766
|
}, {
|
|
1767
1767
|
popper: withCtx(() => [createTextVNode(toDisplayString(item.tip || item.label), 1)]),
|
|
1768
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_5$
|
|
1768
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_5$55, toDisplayString(item.label), 1)]),
|
|
1769
1769
|
_: 2
|
|
1770
1770
|
}, 1032, ["disabled"]),
|
|
1771
|
-
createElementVNode("div", _hoisted_6$
|
|
1771
|
+
createElementVNode("div", _hoisted_6$47, [withDirectives(createVNode(unref(icon_default), {
|
|
1772
1772
|
class: "edit-icon",
|
|
1773
1773
|
icon: "icon-sheji-2",
|
|
1774
1774
|
onClick: withModifiers(($event) => onEdit(item), ["stop"])
|
|
@@ -1778,7 +1778,7 @@ var dropdown_basic_select_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
|
|
|
1778
1778
|
icon: "icon-duigou-da",
|
|
1779
1779
|
color: "#026ac8"
|
|
1780
1780
|
})) : createCommentVNode("", true)])
|
|
1781
|
-
], 64))], 10, _hoisted_4$
|
|
1781
|
+
], 64))], 10, _hoisted_4$60);
|
|
1782
1782
|
}), 128)),
|
|
1783
1783
|
group._showDivider !== false && groupIndex !== normalizedGroupOptions.value.length - 1 ? (openBlock(), createElementBlock("div", _hoisted_7$40)) : createCommentVNode("", true)
|
|
1784
1784
|
], 64);
|
|
@@ -2020,15 +2020,15 @@ var _hoisted_3$70 = [
|
|
|
2020
2020
|
"autofocus",
|
|
2021
2021
|
"spellcheck"
|
|
2022
2022
|
];
|
|
2023
|
-
var _hoisted_4$
|
|
2023
|
+
var _hoisted_4$59 = {
|
|
2024
2024
|
key: 1,
|
|
2025
2025
|
class: "gct-input-clear-icon-default"
|
|
2026
2026
|
};
|
|
2027
|
-
var _hoisted_5$
|
|
2027
|
+
var _hoisted_5$54 = {
|
|
2028
2028
|
key: 2,
|
|
2029
2029
|
class: "gct-input-count"
|
|
2030
2030
|
};
|
|
2031
|
-
var _hoisted_6$
|
|
2031
|
+
var _hoisted_6$46 = { key: 0 };
|
|
2032
2032
|
var _hoisted_7$39 = {
|
|
2033
2033
|
key: 3,
|
|
2034
2034
|
class: "gct-input-suffix"
|
|
@@ -2246,12 +2246,12 @@ var input_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__
|
|
|
2246
2246
|
key: 1,
|
|
2247
2247
|
class: "gct-input-clear-icon",
|
|
2248
2248
|
onClick: handleClear
|
|
2249
|
-
}, [_ctx.$slots.clearIcon ? renderSlot(_ctx.$slots, "clearIcon", {}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
2249
|
+
}, [_ctx.$slots.clearIcon ? renderSlot(_ctx.$slots, "clearIcon", {}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_4$59, [createVNode(unref(icon_default), {
|
|
2250
2250
|
icon: "icon-cuowu2",
|
|
2251
2251
|
color: "rgba(0, 0, 0, 0.25)",
|
|
2252
2252
|
size: "14"
|
|
2253
2253
|
})]))])) : createCommentVNode("", true),
|
|
2254
|
-
props.showCount ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
2254
|
+
props.showCount ? (openBlock(), createElementBlock("span", _hoisted_5$54, [createTextVNode(toDisplayString(countValue.value), 1), props.maxLength ? (openBlock(), createElementBlock("span", _hoisted_6$46, " / " + toDisplayString(props.maxLength), 1)) : createCommentVNode("", true)])) : createCommentVNode("", true),
|
|
2255
2255
|
props.suffix ? (openBlock(), createElementBlock("span", _hoisted_7$39, [createElementVNode("span", _hoisted_8$31, toDisplayString(__props.suffix), 1)])) : createCommentVNode("", true)
|
|
2256
2256
|
], 2)], 14, _hoisted_1$109);
|
|
2257
2257
|
};
|
|
@@ -2274,11 +2274,11 @@ var _hoisted_3$69 = {
|
|
|
2274
2274
|
key: 1,
|
|
2275
2275
|
class: "stepper"
|
|
2276
2276
|
};
|
|
2277
|
-
var _hoisted_4$
|
|
2277
|
+
var _hoisted_4$58 = {
|
|
2278
2278
|
key: 2,
|
|
2279
2279
|
class: "gct-input-number-suffix"
|
|
2280
2280
|
};
|
|
2281
|
-
var _hoisted_5$
|
|
2281
|
+
var _hoisted_5$53 = { class: "gct-input-number-suffix-text" };
|
|
2282
2282
|
// ../ui/src/input/src/input-number.vue
|
|
2283
2283
|
var input_number_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
2284
2284
|
__name: "input-number",
|
|
@@ -2591,7 +2591,7 @@ var input_number_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
2591
2591
|
class: normalizeClass(["step reduce", { disabled: !canStepDown.value }]),
|
|
2592
2592
|
onClick: _cache[1] || (_cache[1] = ($event) => canStepDown.value && stepBy(-1))
|
|
2593
2593
|
}, null, 2)])) : createCommentVNode("", true),
|
|
2594
|
-
props.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
2594
|
+
props.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$58, [createElementVNode("span", _hoisted_5$53, toDisplayString(__props.suffix), 1)])) : createCommentVNode("", true)
|
|
2595
2595
|
], 2);
|
|
2596
2596
|
};
|
|
2597
2597
|
}
|
|
@@ -3014,9 +3014,9 @@ var _hoisted_3$67 = [
|
|
|
3014
3014
|
"disabled",
|
|
3015
3015
|
"onKeydown"
|
|
3016
3016
|
];
|
|
3017
|
-
var _hoisted_4$
|
|
3018
|
-
var _hoisted_5$
|
|
3019
|
-
var _hoisted_6$
|
|
3017
|
+
var _hoisted_4$57 = ["disabled"];
|
|
3018
|
+
var _hoisted_5$52 = ["aria-multiselectable", "tabindex"];
|
|
3019
|
+
var _hoisted_6$45 = { class: "group-name" };
|
|
3020
3020
|
var _hoisted_7$38 = [
|
|
3021
3021
|
"aria-selected",
|
|
3022
3022
|
"aria-disabled",
|
|
@@ -3033,7 +3033,7 @@ var _hoisted_11$17 = {
|
|
|
3033
3033
|
class: "select-selection-tag select-selection-rest",
|
|
3034
3034
|
tabindex: "0"
|
|
3035
3035
|
};
|
|
3036
|
-
var _hoisted_12$
|
|
3036
|
+
var _hoisted_12$13 = {
|
|
3037
3037
|
class: "select-selection-overflow-list",
|
|
3038
3038
|
"aria-label": "折叠的已选项"
|
|
3039
3039
|
};
|
|
@@ -3482,7 +3482,7 @@ var select_control_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
3482
3482
|
icon: "icon-cuowu2",
|
|
3483
3483
|
color: "currentColor",
|
|
3484
3484
|
size: "14"
|
|
3485
|
-
})], 40, _hoisted_4$
|
|
3485
|
+
})], 40, _hoisted_4$57)) : createCommentVNode("", true)
|
|
3486
3486
|
])])) : createCommentVNode("", true),
|
|
3487
3487
|
renderSlot(_ctx.$slots, "header", {}, void 0, true),
|
|
3488
3488
|
createVNode(unref(scrollbar_default), { class: "popper-scrollbar" }, {
|
|
@@ -3497,7 +3497,7 @@ var select_control_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
3497
3497
|
return openBlock(), createElementBlock("div", {
|
|
3498
3498
|
key: g.group,
|
|
3499
3499
|
class: "select-group"
|
|
3500
|
-
}, [createElementVNode("div", _hoisted_6$
|
|
3500
|
+
}, [createElementVNode("div", _hoisted_6$45, [createVNode(search_match_text_default, {
|
|
3501
3501
|
text: g.group,
|
|
3502
3502
|
keyword: inputValue.value
|
|
3503
3503
|
}, null, 8, ["text", "keyword"])]), (openBlock(true), createElementBlock(Fragment, null, renderList(g.options, (item) => {
|
|
@@ -3627,7 +3627,7 @@ var select_control_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
3627
3627
|
color: "#026ac8"
|
|
3628
3628
|
})) : createCommentVNode("", true)
|
|
3629
3629
|
], 64))], 16, _hoisted_8$30);
|
|
3630
|
-
}), 128)), !normalizedFlatOptions.value.length ? renderSlot(_ctx.$slots, "empty", {}, () => [_cache[17] || (_cache[17] = createElementVNode("div", { class: "empty" }, "暂无数据", -1))], true, 2) : createCommentVNode("", true)], 8, _hoisted_5$
|
|
3630
|
+
}), 128)), !normalizedFlatOptions.value.length ? renderSlot(_ctx.$slots, "empty", {}, () => [_cache[17] || (_cache[17] = createElementVNode("div", { class: "empty" }, "暂无数据", -1))], true, 2) : createCommentVNode("", true)], 8, _hoisted_5$52)]),
|
|
3631
3631
|
_: 3
|
|
3632
3632
|
}),
|
|
3633
3633
|
renderSlot(_ctx.$slots, "bottom-bar", {}, void 0, true)
|
|
@@ -3702,7 +3702,7 @@ var select_control_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
3702
3702
|
},
|
|
3703
3703
|
"no-auto-focus": ""
|
|
3704
3704
|
}, {
|
|
3705
|
-
popper: withCtx(() => [createElementVNode("ul", _hoisted_12$
|
|
3705
|
+
popper: withCtx(() => [createElementVNode("ul", _hoisted_12$13, [(openBlock(true), createElementBlock(Fragment, null, renderList(omittedSelectedOptions.value, (item) => {
|
|
3706
3706
|
return openBlock(), createElementBlock("li", { key: item.value }, toDisplayString(item.label), 1);
|
|
3707
3707
|
}), 128))])]),
|
|
3708
3708
|
default: withCtx(() => [createElementVNode("span", _hoisted_11$17, " +" + toDisplayString(omittedSelectedOptions.value.length) + "... ", 1)]),
|
|
@@ -5825,8 +5825,8 @@ var colorUtils = { standard: [
|
|
|
5825
5825
|
var _hoisted_1$98 = { class: "color-picker-container" };
|
|
5826
5826
|
var _hoisted_2$81 = { class: "color-submenu-panel" };
|
|
5827
5827
|
var _hoisted_3$65 = { class: "color-content-standard" };
|
|
5828
|
-
var _hoisted_4$
|
|
5829
|
-
var _hoisted_5$
|
|
5828
|
+
var _hoisted_4$56 = { class: "items" };
|
|
5829
|
+
var _hoisted_5$51 = ["onClick"];
|
|
5830
5830
|
// ../ui/src/color-picker/src/ColorPicker.vue
|
|
5831
5831
|
var ColorPicker_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
5832
5832
|
__name: "ColorPicker",
|
|
@@ -5877,7 +5877,7 @@ var ColorPicker_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
5877
5877
|
"main-content": withCtx(() => [createElementVNode("div", _hoisted_1$98, [createElementVNode("div", _hoisted_2$81, [createVNode(unref(gn), mergeProps(pickerBindings.value, {
|
|
5878
5878
|
class: "color-submenu-picker",
|
|
5879
5879
|
"disable-alpha": ""
|
|
5880
|
-
}), null, 16)]), createElementVNode("div", _hoisted_3$65, [_cache[0] || (_cache[0] = createElementVNode("div", { class: "title" }, "标准色", -1)), createElementVNode("div", _hoisted_4$
|
|
5880
|
+
}), null, 16)]), createElementVNode("div", _hoisted_3$65, [_cache[0] || (_cache[0] = createElementVNode("div", { class: "title" }, "标准色", -1)), createElementVNode("div", _hoisted_4$56, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(colorUtils).standard, (c, idx) => {
|
|
5881
5881
|
return openBlock(), createBlock(unref(tooltip_default), {
|
|
5882
5882
|
key: "theme-" + idx,
|
|
5883
5883
|
distance: 12,
|
|
@@ -5888,7 +5888,7 @@ var ColorPicker_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
5888
5888
|
class: normalizeClass(["color-icon", { active: model.value === c.color }]),
|
|
5889
5889
|
style: normalizeStyle({ backgroundColor: c.color }),
|
|
5890
5890
|
onClick: ($event) => handleColorClick(c.color)
|
|
5891
|
-
}, null, 14, _hoisted_5$
|
|
5891
|
+
}, null, 14, _hoisted_5$51)]),
|
|
5892
5892
|
_: 2
|
|
5893
5893
|
}, 1024);
|
|
5894
5894
|
}), 128))])])])]),
|
|
@@ -5968,8 +5968,8 @@ var createList = (n) => Array.from({ length: n }, (_, i) => i);
|
|
|
5968
5968
|
var _hoisted_1$97 = { class: "gct-time-container" };
|
|
5969
5969
|
var _hoisted_2$80 = { class: "scrollbar-container" };
|
|
5970
5970
|
var _hoisted_3$64 = ["onClick"];
|
|
5971
|
-
var _hoisted_4$
|
|
5972
|
-
var _hoisted_5$
|
|
5971
|
+
var _hoisted_4$55 = { class: "gct-time-footer" };
|
|
5972
|
+
var _hoisted_5$50 = { class: "gct-right-btns" };
|
|
5973
5973
|
// ../ui/src/calendar/src/time.vue
|
|
5974
5974
|
var time_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
5975
5975
|
name: "GctTimePanel",
|
|
@@ -6137,10 +6137,10 @@ var time_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__
|
|
|
6137
6137
|
}), 128))])]),
|
|
6138
6138
|
_: 2
|
|
6139
6139
|
}, 1536)]);
|
|
6140
|
-
}), 128))]), createElementVNode("div", _hoisted_4$
|
|
6140
|
+
}), 128))]), createElementVNode("div", _hoisted_4$55, [createElementVNode("div", {
|
|
6141
6141
|
class: "gct-now-btn",
|
|
6142
6142
|
onClick: nowDay
|
|
6143
|
-
}, "此刻"), createElementVNode("div", _hoisted_5$
|
|
6143
|
+
}, "此刻"), createElementVNode("div", _hoisted_5$50, [__props.showClearBtn && __props.modelValue ? (openBlock(), createBlock(unref(button_default), {
|
|
6144
6144
|
key: 0,
|
|
6145
6145
|
class: "gct-sure-btn gct-clear-btn",
|
|
6146
6146
|
size: "small",
|
|
@@ -6166,9 +6166,9 @@ var time_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__
|
|
|
6166
6166
|
var _hoisted_1$96 = { class: "gct-dtp-panel-inner" };
|
|
6167
6167
|
var _hoisted_2$79 = { class: "gct-dtp-date" };
|
|
6168
6168
|
var _hoisted_3$63 = { class: "gct-dtp-header" };
|
|
6169
|
-
var _hoisted_4$
|
|
6170
|
-
var _hoisted_5$
|
|
6171
|
-
var _hoisted_6$
|
|
6169
|
+
var _hoisted_4$54 = { class: "text" };
|
|
6170
|
+
var _hoisted_5$49 = { class: "gct-dtp-head" };
|
|
6171
|
+
var _hoisted_6$44 = { class: "gct-dtp-rows-wrapper" };
|
|
6172
6172
|
var _hoisted_7$37 = ["onClick"];
|
|
6173
6173
|
var _hoisted_8$29 = { class: "dtp-day-label" };
|
|
6174
6174
|
var _hoisted_9$23 = {
|
|
@@ -6180,7 +6180,7 @@ var _hoisted_10$19 = {
|
|
|
6180
6180
|
class: "gct-dtp-time"
|
|
6181
6181
|
};
|
|
6182
6182
|
var _hoisted_11$16 = { class: "gct-dtp-time-header" };
|
|
6183
|
-
var _hoisted_12$
|
|
6183
|
+
var _hoisted_12$12 = { class: "gct-dtp-time-container" };
|
|
6184
6184
|
// ../ui/src/calendar/src/calendar.vue
|
|
6185
6185
|
var calendar_default$1 = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
6186
6186
|
name: "GctCalendar",
|
|
@@ -6340,7 +6340,7 @@ var calendar_default$1 = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
6340
6340
|
color: "#64748b",
|
|
6341
6341
|
onClick: withModifiers(prevMonth, ["stop"])
|
|
6342
6342
|
}),
|
|
6343
|
-
createElementVNode("div", _hoisted_4$
|
|
6343
|
+
createElementVNode("div", _hoisted_4$54, toDisplayString(monthTitle.value), 1),
|
|
6344
6344
|
createVNode(unref(icon_default), {
|
|
6345
6345
|
class: "nav",
|
|
6346
6346
|
icon: "icon-a-Rightarrow",
|
|
@@ -6348,13 +6348,13 @@ var calendar_default$1 = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
6348
6348
|
onClick: withModifiers(nextMonth, ["stop"])
|
|
6349
6349
|
})
|
|
6350
6350
|
]),
|
|
6351
|
-
createElementVNode("div", _hoisted_5$
|
|
6351
|
+
createElementVNode("div", _hoisted_5$49, [(openBlock(true), createElementBlock(Fragment, null, renderList(weekdayShort.value, (d) => {
|
|
6352
6352
|
return openBlock(), createElementBlock("div", {
|
|
6353
6353
|
key: d,
|
|
6354
6354
|
class: "day head"
|
|
6355
6355
|
}, toDisplayString(d), 1);
|
|
6356
6356
|
}), 128))]),
|
|
6357
|
-
createElementVNode("div", _hoisted_6$
|
|
6357
|
+
createElementVNode("div", _hoisted_6$44, [createVNode(Transition, {
|
|
6358
6358
|
name: transitionName.value,
|
|
6359
6359
|
mode: "out-in"
|
|
6360
6360
|
}, {
|
|
@@ -6384,7 +6384,7 @@ var calendar_default$1 = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
6384
6384
|
default: withCtx(() => [..._cache[1] || (_cache[1] = [createTextVNode(" 清除 ", -1)])]),
|
|
6385
6385
|
_: 1
|
|
6386
6386
|
}, 8, ["disabled"])])) : createCommentVNode("", true)
|
|
6387
|
-
]), showTimeLocal.value ? (openBlock(), createElementBlock("div", _hoisted_10$19, [createElementVNode("div", _hoisted_11$16, toDisplayString(timeValue.value), 1), createElementVNode("div", _hoisted_12$
|
|
6387
|
+
]), showTimeLocal.value ? (openBlock(), createElementBlock("div", _hoisted_10$19, [createElementVNode("div", _hoisted_11$16, toDisplayString(timeValue.value), 1), createElementVNode("div", _hoisted_12$12, [createVNode(time_default, {
|
|
6388
6388
|
"model-value": timeValue.value,
|
|
6389
6389
|
format: __props.timeFormat,
|
|
6390
6390
|
"disabled-time": disabledTime,
|
|
@@ -6413,7 +6413,7 @@ var _hoisted_3$62 = {
|
|
|
6413
6413
|
key: 1,
|
|
6414
6414
|
class: "placeholder"
|
|
6415
6415
|
};
|
|
6416
|
-
var _hoisted_4$
|
|
6416
|
+
var _hoisted_4$53 = ["src"];
|
|
6417
6417
|
// ../ui/src/date-time-picker/src/DateTimePicker.vue
|
|
6418
6418
|
var DateTimePicker_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
6419
6419
|
__name: "DateTimePicker",
|
|
@@ -6524,7 +6524,7 @@ var DateTimePicker_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
6524
6524
|
width: "14",
|
|
6525
6525
|
height: "14",
|
|
6526
6526
|
alt: ""
|
|
6527
|
-
}, null, 8, _hoisted_4$
|
|
6527
|
+
}, null, 8, _hoisted_4$53),
|
|
6528
6528
|
props.modelValue && !props.disabled ? (openBlock(), createElementBlock("span", {
|
|
6529
6529
|
key: 2,
|
|
6530
6530
|
class: "clear-icon",
|
|
@@ -6554,9 +6554,9 @@ var _hoisted_2$77 = {
|
|
|
6554
6554
|
"aria-hidden": "true"
|
|
6555
6555
|
};
|
|
6556
6556
|
var _hoisted_3$61 = { class: "message-message" };
|
|
6557
|
-
var _hoisted_4$
|
|
6558
|
-
var _hoisted_5$
|
|
6559
|
-
var _hoisted_6$
|
|
6557
|
+
var _hoisted_4$52 = { class: "message-title" };
|
|
6558
|
+
var _hoisted_5$48 = { class: "message-description" };
|
|
6559
|
+
var _hoisted_6$43 = ["onClick"];
|
|
6560
6560
|
// ../ui/src/message/src/Message.vue
|
|
6561
6561
|
var Message_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
6562
6562
|
name: "GctMessageView",
|
|
@@ -6631,7 +6631,7 @@ var Message_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
6631
6631
|
class: "message-icon",
|
|
6632
6632
|
icon: iconMap[item.type]
|
|
6633
6633
|
}, null, 8, ["icon"])),
|
|
6634
|
-
createElementVNode("div", _hoisted_3$61, [item.title ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("div", _hoisted_4$
|
|
6634
|
+
createElementVNode("div", _hoisted_3$61, [item.title ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("div", _hoisted_4$52, toDisplayString(item.title), 1), createElementVNode("div", _hoisted_5$48, [typeof item.message !== "string" ? (openBlock(), createBlock(resolveDynamicComponent(item.message), { key: 0 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(item.message), 1)], 64))])], 64)) : typeof item.message !== "string" ? (openBlock(), createBlock(resolveDynamicComponent(item.message), { key: 1 })) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [createTextVNode(toDisplayString(item.message), 1)], 64))]),
|
|
6635
6635
|
item.closeable && item.title ? (openBlock(), createElementBlock("button", {
|
|
6636
6636
|
key: 2,
|
|
6637
6637
|
type: "button",
|
|
@@ -6642,7 +6642,7 @@ var Message_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
6642
6642
|
viewBox: "64 64 896 896",
|
|
6643
6643
|
fill: "currentColor",
|
|
6644
6644
|
"aria-hidden": "true"
|
|
6645
|
-
}, [createElementVNode("path", { d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" })], -1)])], 8, _hoisted_6$
|
|
6645
|
+
}, [createElementVNode("path", { d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" })], -1)])], 8, _hoisted_6$43)) : item.closeable ? (openBlock(), createBlock(unref(icon_default), {
|
|
6646
6646
|
key: 3,
|
|
6647
6647
|
class: "message-close",
|
|
6648
6648
|
icon: "icon-guanbi",
|
|
@@ -6858,9 +6858,9 @@ var _hoisted_3$60 = {
|
|
|
6858
6858
|
key: 0,
|
|
6859
6859
|
class: "gct-table-empty-row"
|
|
6860
6860
|
};
|
|
6861
|
-
var _hoisted_4$
|
|
6862
|
-
var _hoisted_5$
|
|
6863
|
-
var _hoisted_6$
|
|
6861
|
+
var _hoisted_4$51 = ["colspan"];
|
|
6862
|
+
var _hoisted_5$47 = { class: "gct-table-empty" };
|
|
6863
|
+
var _hoisted_6$42 = ["src"];
|
|
6864
6864
|
var _hoisted_7$36 = ["onClick"];
|
|
6865
6865
|
var _hoisted_8$28 = {
|
|
6866
6866
|
key: 0,
|
|
@@ -6978,11 +6978,11 @@ var table_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__
|
|
|
6978
6978
|
key: col.key,
|
|
6979
6979
|
style: normalizeStyle(getColStyle(col))
|
|
6980
6980
|
}, [renderSlot(_ctx.$slots, `header-${col.key}`, { column: col }, () => [createTextVNode(toDisplayString(col.name), 1)], true)], 4);
|
|
6981
|
-
}), 128))])]), createElementVNode("tbody", null, [showEmpty.value ? (openBlock(), createElementBlock("tr", _hoisted_3$60, [createElementVNode("td", { colspan: Math.max(__props.columns.length + (__props.selectable ? 1 : 0), 1) }, [createElementVNode("div", _hoisted_5$
|
|
6981
|
+
}), 128))])]), createElementVNode("tbody", null, [showEmpty.value ? (openBlock(), createElementBlock("tr", _hoisted_3$60, [createElementVNode("td", { colspan: Math.max(__props.columns.length + (__props.selectable ? 1 : 0), 1) }, [createElementVNode("div", _hoisted_5$47, [createElementVNode("img", {
|
|
6982
6982
|
src: unref(empty_default$2),
|
|
6983
6983
|
height: "66",
|
|
6984
6984
|
alt: ""
|
|
6985
|
-
}, null, 8, _hoisted_6$
|
|
6985
|
+
}, null, 8, _hoisted_6$42), _cache[1] || (_cache[1] = createElementVNode("span", null, "暂无数据", -1))])], 8, _hoisted_4$51)])) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.rows, (row, index) => {
|
|
6986
6986
|
return openBlock(), createElementBlock("tr", {
|
|
6987
6987
|
key: _getRowKey(row),
|
|
6988
6988
|
class: normalizeClass([__props.stripe && index % 2 === 1 ? "stripe" : "", getIsSelected(row) ? "is-selected" : ""]),
|
|
@@ -7032,12 +7032,12 @@ var table_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__
|
|
|
7032
7032
|
var _hoisted_1$91 = { class: "table-pagination" };
|
|
7033
7033
|
var _hoisted_2$75 = { role: "status" };
|
|
7034
7034
|
var _hoisted_3$59 = { class: "table-pagination-controls" };
|
|
7035
|
-
var _hoisted_4$
|
|
7035
|
+
var _hoisted_4$50 = {
|
|
7036
7036
|
key: 0,
|
|
7037
7037
|
role: "status"
|
|
7038
7038
|
};
|
|
7039
|
-
var _hoisted_5$
|
|
7040
|
-
var _hoisted_6$
|
|
7039
|
+
var _hoisted_5$46 = ["disabled"];
|
|
7040
|
+
var _hoisted_6$41 = { class: "table-pagination-number" };
|
|
7041
7041
|
var _hoisted_7$35 = ["disabled"];
|
|
7042
7042
|
// ../ui/src/table-select/src/table-select-pagination.vue
|
|
7043
7043
|
var table_select_pagination_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -7056,7 +7056,7 @@ var table_select_pagination_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
7056
7056
|
setup(__props) {
|
|
7057
7057
|
return (_ctx, _cache) => {
|
|
7058
7058
|
return openBlock(), createElementBlock("div", _hoisted_1$91, [createElementVNode("span", _hoisted_2$75, toDisplayString(__props.total === void 0 ? `已加载 ${__props.loadedCount} 条数据` : `共 ${__props.total} 条数据`), 1), createElementVNode("div", _hoisted_3$59, [
|
|
7059
|
-
__props.loading ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
7059
|
+
__props.loading ? (openBlock(), createElementBlock("span", _hoisted_4$50, "加载中…")) : createCommentVNode("", true),
|
|
7060
7060
|
__props.failed ? (openBlock(), createElementBlock("button", {
|
|
7061
7061
|
key: 1,
|
|
7062
7062
|
class: "table-pagination-retry",
|
|
@@ -7071,8 +7071,8 @@ var table_select_pagination_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
7071
7071
|
}, [createVNode(unref(icon_default), {
|
|
7072
7072
|
icon: "icon-a-Leftarrow",
|
|
7073
7073
|
color: "#8c8c8c"
|
|
7074
|
-
})], 8, _hoisted_5$
|
|
7075
|
-
createElementVNode("span", _hoisted_6$
|
|
7074
|
+
})], 8, _hoisted_5$46),
|
|
7075
|
+
createElementVNode("span", _hoisted_6$41, [createElementVNode("span", null, toDisplayString(__props.current || 1), 1), createTextVNode(" / " + toDisplayString(__props.pageCount ?? "…"), 1)]),
|
|
7076
7076
|
createElementVNode("button", {
|
|
7077
7077
|
type: "button",
|
|
7078
7078
|
"aria-label": "下一页",
|
|
@@ -7306,12 +7306,12 @@ var empty_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAA
|
|
|
7306
7306
|
var _hoisted_1$90 = ["title"];
|
|
7307
7307
|
var _hoisted_2$74 = { class: "gct-tree-select-tag-label" };
|
|
7308
7308
|
var _hoisted_3$58 = ["aria-label", "onClick"];
|
|
7309
|
-
var _hoisted_4$
|
|
7310
|
-
var _hoisted_5$
|
|
7309
|
+
var _hoisted_4$49 = ["aria-label"];
|
|
7310
|
+
var _hoisted_5$45 = {
|
|
7311
7311
|
class: "gct-tree-select-tag-list",
|
|
7312
7312
|
"aria-label": "折叠的已选项"
|
|
7313
7313
|
};
|
|
7314
|
-
var _hoisted_6$
|
|
7314
|
+
var _hoisted_6$40 = {
|
|
7315
7315
|
key: 2,
|
|
7316
7316
|
class: "gct-tree-select-measure",
|
|
7317
7317
|
"aria-hidden": "true"
|
|
@@ -7338,7 +7338,7 @@ var _hoisted_11$15 = [
|
|
|
7338
7338
|
"value",
|
|
7339
7339
|
"placeholder"
|
|
7340
7340
|
];
|
|
7341
|
-
var _hoisted_12$
|
|
7341
|
+
var _hoisted_12$11 = {
|
|
7342
7342
|
key: 4,
|
|
7343
7343
|
class: "gct-tree-select-suffix",
|
|
7344
7344
|
"aria-hidden": "true"
|
|
@@ -8218,7 +8218,7 @@ var unified_tree_select_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
8218
8218
|
],
|
|
8219
8219
|
"no-auto-focus": ""
|
|
8220
8220
|
}, {
|
|
8221
|
-
popper: withCtx(() => [createElementVNode("ul", _hoisted_5$
|
|
8221
|
+
popper: withCtx(() => [createElementVNode("ul", _hoisted_5$45, [(openBlock(true), createElementBlock(Fragment, null, renderList(hiddenTags.value, (tag) => {
|
|
8222
8222
|
return openBlock(), createElementBlock("li", { key: tag.value }, toDisplayString(tag.label), 1);
|
|
8223
8223
|
}), 128))])]),
|
|
8224
8224
|
default: withCtx(() => [createElementVNode("button", {
|
|
@@ -8227,10 +8227,10 @@ var unified_tree_select_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
8227
8227
|
"aria-label": `查看另外 ${hiddenTags.value.length} 个已选项`,
|
|
8228
8228
|
onMousedown: _cache[1] || (_cache[1] = withModifiers(() => {}, ["prevent"])),
|
|
8229
8229
|
onClick: _cache[2] || (_cache[2] = withModifiers(() => {}, ["stop"]))
|
|
8230
|
-
}, " +" + toDisplayString(hiddenTags.value.length), 41, _hoisted_4$
|
|
8230
|
+
}, " +" + toDisplayString(hiddenTags.value.length), 41, _hoisted_4$49)]),
|
|
8231
8231
|
_: 1
|
|
8232
8232
|
})) : createCommentVNode("", true),
|
|
8233
|
-
responsiveTags.value && selectedTags.value.length ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
8233
|
+
responsiveTags.value && selectedTags.value.length ? (openBlock(), createElementBlock("span", _hoisted_6$40, [createElementVNode("span", {
|
|
8234
8234
|
ref_key: "tagMeasure",
|
|
8235
8235
|
ref: tagMeasure,
|
|
8236
8236
|
class: "gct-tree-select-measure-content"
|
|
@@ -8295,7 +8295,7 @@ var unified_tree_select_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
8295
8295
|
icon: "icon-cuowu2",
|
|
8296
8296
|
color: "rgba(0, 0, 0, 0.25)",
|
|
8297
8297
|
size: "14"
|
|
8298
|
-
})], 32)) : (openBlock(), createElementBlock("span", _hoisted_12$
|
|
8298
|
+
})], 32)) : (openBlock(), createElementBlock("span", _hoisted_12$11, [shown.value ? (openBlock(), createBlock(unref(icon_default), {
|
|
8299
8299
|
key: 0,
|
|
8300
8300
|
icon: "icon-search",
|
|
8301
8301
|
color: "#6b6b6b"
|
|
@@ -8746,28 +8746,28 @@ var _hoisted_2$73 = [
|
|
|
8746
8746
|
"disabled",
|
|
8747
8747
|
"onClick"
|
|
8748
8748
|
];
|
|
8749
|
-
var _hoisted_3$57 = ["disabled"];
|
|
8750
|
-
var _hoisted_4$
|
|
8751
|
-
var _hoisted_5$
|
|
8752
|
-
var _hoisted_6$
|
|
8753
|
-
var _hoisted_7$33 = ["disabled"];
|
|
8754
|
-
var _hoisted_8$26 = ["disabled"];
|
|
8755
|
-
var _hoisted_9$21 = ["disabled"];
|
|
8756
|
-
var _hoisted_10$17 = ["disabled"];
|
|
8757
|
-
var _hoisted_11$14 = ["disabled"];
|
|
8758
|
-
var _hoisted_12$
|
|
8759
|
-
var _hoisted_13$10 = ["disabled"];
|
|
8749
|
+
var _hoisted_3$57 = ["disabled", "onClick"];
|
|
8750
|
+
var _hoisted_4$48 = ["disabled", "onClick"];
|
|
8751
|
+
var _hoisted_5$44 = ["disabled", "onClick"];
|
|
8752
|
+
var _hoisted_6$39 = ["disabled", "onClick"];
|
|
8753
|
+
var _hoisted_7$33 = ["disabled", "onClick"];
|
|
8754
|
+
var _hoisted_8$26 = ["disabled", "onClick"];
|
|
8755
|
+
var _hoisted_9$21 = ["disabled", "onClick"];
|
|
8756
|
+
var _hoisted_10$17 = ["disabled", "onClick"];
|
|
8757
|
+
var _hoisted_11$14 = ["disabled", "onClick"];
|
|
8758
|
+
var _hoisted_12$10 = ["disabled", "onClick"];
|
|
8759
|
+
var _hoisted_13$10 = ["disabled", "onClick"];
|
|
8760
8760
|
var _hoisted_14$10 = {
|
|
8761
8761
|
key: 2,
|
|
8762
8762
|
class: "word-business-table-menu-batch"
|
|
8763
8763
|
};
|
|
8764
|
-
var _hoisted_15$10 = ["disabled"];
|
|
8764
|
+
var _hoisted_15$10 = ["disabled", "onClick"];
|
|
8765
8765
|
var _hoisted_16$8 = {
|
|
8766
8766
|
key: 3,
|
|
8767
8767
|
class: "word-business-table-menu-batch"
|
|
8768
8768
|
};
|
|
8769
|
-
var _hoisted_17$5 = ["disabled"];
|
|
8770
|
-
var _hoisted_18$3 = ["disabled"];
|
|
8769
|
+
var _hoisted_17$5 = ["disabled", "onClick"];
|
|
8770
|
+
var _hoisted_18$3 = ["disabled", "onClick"];
|
|
8771
8771
|
// src/adapters/vue/BusinessTableActions.vue
|
|
8772
8772
|
var BusinessTableActions_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
8773
8773
|
__name: "BusinessTableActions",
|
|
@@ -8783,7 +8783,8 @@ var BusinessTableActions_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
|
|
|
8783
8783
|
watch(() => props.state.menu?.id, () => {
|
|
8784
8784
|
beforeCount.value = afterCount.value = 1;
|
|
8785
8785
|
});
|
|
8786
|
-
function execute(action, count) {
|
|
8786
|
+
function execute(id, action, count) {
|
|
8787
|
+
if (props.state.menu?.id !== id || props.state.busy) return;
|
|
8787
8788
|
props.run(action, count === void 0 && action !== "before" && action !== "after" ? void 0 : count === null || count === "" ? NaN : Number(count));
|
|
8788
8789
|
}
|
|
8789
8790
|
return (_ctx, _cache) => {
|
|
@@ -8807,82 +8808,82 @@ var BusinessTableActions_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
|
|
|
8807
8808
|
class: "word-business-table-menu",
|
|
8808
8809
|
role: "menu",
|
|
8809
8810
|
"aria-label": "子表操作",
|
|
8810
|
-
onKeydown: _cache[
|
|
8811
|
+
onKeydown: _cache[3] || (_cache[3] = withKeys(withModifiers((...args) => __props.close && __props.close(...args), ["stop"]), ["esc"]))
|
|
8811
8812
|
}, [__props.state.menu.material ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
8812
|
-
_cache[
|
|
8813
|
+
_cache[10] || (_cache[10] = createElementVNode("div", { class: "word-business-table-menu-title" }, "业务操作", -1)),
|
|
8813
8814
|
__props.state.menu.scan ? (openBlock(), createElementBlock("button", {
|
|
8814
8815
|
key: 0,
|
|
8815
8816
|
type: "button",
|
|
8816
8817
|
role: "menuitem",
|
|
8817
8818
|
disabled: __props.state.busy,
|
|
8818
|
-
onClick:
|
|
8819
|
+
onClick: ($event) => execute(anchor.id, "scan")
|
|
8819
8820
|
}, [createVNode(unref(icon_default), {
|
|
8820
8821
|
icon: "icon-saoma1",
|
|
8821
8822
|
font: "iconfont",
|
|
8822
8823
|
color: "currentColor"
|
|
8823
|
-
}), _cache[
|
|
8824
|
+
}), _cache[4] || (_cache[4] = createElementVNode("span", null, "条码扫描", -1))], 8, _hoisted_3$57)) : createCommentVNode("", true),
|
|
8824
8825
|
__props.state.menu.material.check ? (openBlock(), createElementBlock("button", {
|
|
8825
8826
|
key: 1,
|
|
8826
8827
|
type: "button",
|
|
8827
8828
|
role: "menuitem",
|
|
8828
8829
|
disabled: __props.state.busy,
|
|
8829
|
-
onClick:
|
|
8830
|
+
onClick: ($event) => execute(anchor.id, "check")
|
|
8830
8831
|
}, [createVNode(unref(icon_default), {
|
|
8831
8832
|
icon: "icon-zhongxinbianjidangqianhang",
|
|
8832
8833
|
font: "iconfont",
|
|
8833
8834
|
color: "currentColor"
|
|
8834
|
-
}), _cache[
|
|
8835
|
+
}), _cache[5] || (_cache[5] = createElementVNode("span", null, "检查当前组", -1))], 8, _hoisted_4$48)) : createCommentVNode("", true),
|
|
8835
8836
|
__props.state.menu.material.confirm ? (openBlock(), createElementBlock("button", {
|
|
8836
8837
|
key: 2,
|
|
8837
8838
|
type: "button",
|
|
8838
8839
|
role: "menuitem",
|
|
8839
8840
|
disabled: __props.state.busy,
|
|
8840
|
-
onClick:
|
|
8841
|
+
onClick: ($event) => execute(anchor.id, "confirm")
|
|
8841
8842
|
}, [createVNode(unref(icon_default), {
|
|
8842
8843
|
icon: "icon-zhongxinbianjidangqianhang",
|
|
8843
8844
|
font: "iconfont",
|
|
8844
8845
|
color: "currentColor"
|
|
8845
|
-
}), _cache[
|
|
8846
|
-
_cache[
|
|
8846
|
+
}), _cache[6] || (_cache[6] = createElementVNode("span", null, "确认当前组", -1))], 8, _hoisted_5$44)) : createCommentVNode("", true),
|
|
8847
|
+
_cache[11] || (_cache[11] = createElementVNode("div", { class: "word-business-table-menu-title" }, "行编辑", -1)),
|
|
8847
8848
|
__props.state.menu.material.edit ? (openBlock(), createElementBlock("button", {
|
|
8848
8849
|
key: 3,
|
|
8849
8850
|
type: "button",
|
|
8850
8851
|
role: "menuitem",
|
|
8851
8852
|
disabled: __props.state.busy,
|
|
8852
|
-
onClick:
|
|
8853
|
+
onClick: ($event) => execute(anchor.id, "edit")
|
|
8853
8854
|
}, [createVNode(unref(icon_default), {
|
|
8854
8855
|
icon: "icon-zhongxinbianjidangqianhang",
|
|
8855
8856
|
font: "iconfont",
|
|
8856
8857
|
color: "currentColor"
|
|
8857
|
-
}), _cache[
|
|
8858
|
+
}), _cache[7] || (_cache[7] = createElementVNode("span", null, "重新编辑当前行", -1))], 8, _hoisted_6$39)) : createCommentVNode("", true),
|
|
8858
8859
|
__props.state.menu.material.addRow ? (openBlock(), createElementBlock("button", {
|
|
8859
8860
|
key: 4,
|
|
8860
8861
|
type: "button",
|
|
8861
8862
|
role: "menuitem",
|
|
8862
8863
|
disabled: __props.state.busy,
|
|
8863
|
-
onClick:
|
|
8864
|
+
onClick: ($event) => execute(anchor.id, "after")
|
|
8864
8865
|
}, [createVNode(unref(icon_default), {
|
|
8865
8866
|
icon: "icon-jiayihang",
|
|
8866
8867
|
font: "iconfont",
|
|
8867
8868
|
color: "currentColor"
|
|
8868
|
-
}), _cache[
|
|
8869
|
+
}), _cache[8] || (_cache[8] = createElementVNode("span", null, "加一行", -1))], 8, _hoisted_7$33)) : createCommentVNode("", true),
|
|
8869
8870
|
__props.state.menu.material.addGroup ? (openBlock(), createElementBlock("button", {
|
|
8870
8871
|
key: 5,
|
|
8871
8872
|
type: "button",
|
|
8872
8873
|
role: "menuitem",
|
|
8873
8874
|
disabled: __props.state.busy,
|
|
8874
|
-
onClick:
|
|
8875
|
+
onClick: ($event) => execute(anchor.id, "add-group")
|
|
8875
8876
|
}, [createVNode(unref(icon_default), {
|
|
8876
8877
|
icon: "icon-jiayihang",
|
|
8877
8878
|
font: "iconfont",
|
|
8878
8879
|
color: "currentColor"
|
|
8879
8880
|
}), createElementVNode("span", null, toDisplayString(__props.state.menu.hasRow ? "加一组" : "创建首组"), 1)], 8, _hoisted_8$26)) : createCommentVNode("", true),
|
|
8880
|
-
__props.state.menu.remove || __props.state.menu.material.clear ? (openBlock(), createElementBlock(Fragment, { key: 6 }, [_cache[
|
|
8881
|
+
__props.state.menu.remove || __props.state.menu.material.clear ? (openBlock(), createElementBlock(Fragment, { key: 6 }, [_cache[9] || (_cache[9] = createElementVNode("div", { class: "word-business-table-menu-divider" }, null, -1)), createElementVNode("button", {
|
|
8881
8882
|
type: "button",
|
|
8882
8883
|
role: "menuitem",
|
|
8883
8884
|
class: "word-business-table-remove",
|
|
8884
8885
|
disabled: __props.state.busy,
|
|
8885
|
-
onClick:
|
|
8886
|
+
onClick: ($event) => execute(anchor.id, __props.state.menu?.material?.clear ? "clear" : "remove")
|
|
8886
8887
|
}, [createVNode(unref(icon_default), {
|
|
8887
8888
|
icon: "icon-a-shanchubiaoge",
|
|
8888
8889
|
font: "iconfont",
|
|
@@ -8890,66 +8891,66 @@ var BusinessTableActions_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
|
|
|
8890
8891
|
}), createElementVNode("span", null, toDisplayString(__props.state.menu.material.clear ? "清除内容" : "删除行"), 1)], 8, _hoisted_9$21)], 64)) : createCommentVNode("", true)
|
|
8891
8892
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
8892
8893
|
__props.state.menu.scan ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
8893
|
-
_cache[
|
|
8894
|
+
_cache[13] || (_cache[13] = createElementVNode("div", { class: "word-business-table-menu-title" }, "业务操作", -1)),
|
|
8894
8895
|
createElementVNode("button", {
|
|
8895
8896
|
type: "button",
|
|
8896
8897
|
role: "menuitem",
|
|
8897
8898
|
disabled: __props.state.busy,
|
|
8898
|
-
onClick:
|
|
8899
|
+
onClick: ($event) => execute(anchor.id, "scan")
|
|
8899
8900
|
}, [createVNode(unref(icon_default), {
|
|
8900
8901
|
icon: "icon-saoyisao",
|
|
8901
8902
|
font: "iconfont",
|
|
8902
8903
|
color: "currentColor"
|
|
8903
|
-
}), _cache[
|
|
8904
|
-
_cache[
|
|
8904
|
+
}), _cache[12] || (_cache[12] = createElementVNode("span", null, "条码扫描", -1))], 8, _hoisted_10$17),
|
|
8905
|
+
_cache[14] || (_cache[14] = createElementVNode("div", { class: "word-business-table-menu-divider" }, null, -1))
|
|
8905
8906
|
], 64)) : createCommentVNode("", true),
|
|
8906
8907
|
__props.state.menu.quickFill ? (openBlock(), createElementBlock("button", {
|
|
8907
8908
|
key: 1,
|
|
8908
8909
|
type: "button",
|
|
8909
8910
|
role: "menuitem",
|
|
8910
8911
|
disabled: __props.state.busy,
|
|
8911
|
-
onClick:
|
|
8912
|
+
onClick: ($event) => execute(anchor.id, "quick-fill")
|
|
8912
8913
|
}, [createVNode(unref(icon_default), {
|
|
8913
8914
|
icon: "icon-zhongxinbianjidangqianhang",
|
|
8914
8915
|
font: "iconfont",
|
|
8915
8916
|
color: "currentColor"
|
|
8916
|
-
}), _cache[
|
|
8917
|
+
}), _cache[15] || (_cache[15] = createElementVNode("span", null, "快速填报", -1))], 8, _hoisted_11$14)) : createCommentVNode("", true),
|
|
8917
8918
|
!__props.state.menu.bounded && (__props.state.menu.insert || __props.state.menu.copy) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
8918
|
-
_cache[
|
|
8919
|
+
_cache[20] || (_cache[20] = createElementVNode("div", { class: "word-business-table-menu-title" }, "行编辑", -1)),
|
|
8919
8920
|
__props.state.menu.insert ? (openBlock(), createElementBlock("button", {
|
|
8920
8921
|
key: 0,
|
|
8921
8922
|
type: "button",
|
|
8922
8923
|
role: "menuitem",
|
|
8923
8924
|
disabled: __props.state.busy,
|
|
8924
|
-
onClick:
|
|
8925
|
+
onClick: ($event) => execute(anchor.id, __props.state.menu?.hasRow ? "after" : "end", 1)
|
|
8925
8926
|
}, [createVNode(unref(icon_default), {
|
|
8926
8927
|
icon: "icon-tianjia",
|
|
8927
8928
|
font: "iconfont",
|
|
8928
8929
|
color: "currentColor"
|
|
8929
|
-
}), _cache[
|
|
8930
|
+
}), _cache[16] || (_cache[16] = createElementVNode("span", null, "加一行", -1))], 8, _hoisted_12$10)) : createCommentVNode("", true),
|
|
8930
8931
|
__props.state.menu.copy ? (openBlock(), createElementBlock("button", {
|
|
8931
8932
|
key: 1,
|
|
8932
8933
|
type: "button",
|
|
8933
8934
|
role: "menuitem",
|
|
8934
8935
|
disabled: __props.state.busy,
|
|
8935
|
-
onClick:
|
|
8936
|
+
onClick: ($event) => execute(anchor.id, "copy", 1)
|
|
8936
8937
|
}, [createVNode(unref(icon_default), {
|
|
8937
8938
|
icon: "icon-fuzhihang",
|
|
8938
8939
|
font: "iconfont",
|
|
8939
8940
|
color: "currentColor"
|
|
8940
|
-
}), _cache[
|
|
8941
|
+
}), _cache[17] || (_cache[17] = createElementVNode("span", null, "复制行", -1))], 8, _hoisted_13$10)) : createCommentVNode("", true),
|
|
8941
8942
|
__props.state.menu.insert && __props.state.menu.hasRow && __props.state.menu.batchInsert !== false ? (openBlock(), createElementBlock("div", _hoisted_14$10, [createElementVNode("button", {
|
|
8942
8943
|
type: "button",
|
|
8943
8944
|
role: "menuitem",
|
|
8944
8945
|
disabled: __props.state.busy,
|
|
8945
|
-
onClick:
|
|
8946
|
+
onClick: ($event) => execute(anchor.id, "before", beforeCount.value)
|
|
8946
8947
|
}, [createVNode(unref(icon_default), {
|
|
8947
8948
|
icon: "icon-shangfangcharuhang",
|
|
8948
8949
|
font: "iconfont",
|
|
8949
8950
|
color: "currentColor"
|
|
8950
|
-
}), _cache[
|
|
8951
|
+
}), _cache[18] || (_cache[18] = createElementVNode("span", null, "在上方插入行", -1))], 8, _hoisted_15$10), createVNode(unref(input_number_default), mergeProps({
|
|
8951
8952
|
modelValue: beforeCount.value,
|
|
8952
|
-
"onUpdate:modelValue": _cache[
|
|
8953
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => beforeCount.value = $event)
|
|
8953
8954
|
}, { ref_for: true }, { ariaLabel: "上方插入行数" }, {
|
|
8954
8955
|
min: 1,
|
|
8955
8956
|
max: unref(nativeTableRowBatchLimit),
|
|
@@ -8964,14 +8965,14 @@ var BusinessTableActions_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
|
|
|
8964
8965
|
type: "button",
|
|
8965
8966
|
role: "menuitem",
|
|
8966
8967
|
disabled: __props.state.busy,
|
|
8967
|
-
onClick:
|
|
8968
|
+
onClick: ($event) => execute(anchor.id, "after", afterCount.value)
|
|
8968
8969
|
}, [createVNode(unref(icon_default), {
|
|
8969
8970
|
icon: "icon-xiafangcharuhang",
|
|
8970
8971
|
font: "iconfont",
|
|
8971
8972
|
color: "currentColor"
|
|
8972
|
-
}), _cache[
|
|
8973
|
+
}), _cache[19] || (_cache[19] = createElementVNode("span", null, "在下方插入行", -1))], 8, _hoisted_17$5), createVNode(unref(input_number_default), mergeProps({
|
|
8973
8974
|
modelValue: afterCount.value,
|
|
8974
|
-
"onUpdate:modelValue": _cache[
|
|
8975
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => afterCount.value = $event)
|
|
8975
8976
|
}, { ref_for: true }, { ariaLabel: "下方插入行数" }, {
|
|
8976
8977
|
min: 1,
|
|
8977
8978
|
max: unref(nativeTableRowBatchLimit),
|
|
@@ -8983,17 +8984,17 @@ var BusinessTableActions_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
|
|
|
8983
8984
|
"disabled"
|
|
8984
8985
|
])])) : createCommentVNode("", true)
|
|
8985
8986
|
], 64)) : createCommentVNode("", true),
|
|
8986
|
-
!__props.state.menu.bounded && __props.state.menu.remove ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [_cache[
|
|
8987
|
+
!__props.state.menu.bounded && __props.state.menu.remove ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [_cache[22] || (_cache[22] = createElementVNode("div", { class: "word-business-table-menu-divider" }, null, -1)), createElementVNode("button", {
|
|
8987
8988
|
type: "button",
|
|
8988
8989
|
role: "menuitem",
|
|
8989
8990
|
class: "word-business-table-remove",
|
|
8990
8991
|
disabled: __props.state.busy,
|
|
8991
|
-
onClick:
|
|
8992
|
+
onClick: ($event) => execute(anchor.id, "remove")
|
|
8992
8993
|
}, [createVNode(unref(icon_default), {
|
|
8993
8994
|
icon: "icon-shanchu1",
|
|
8994
8995
|
font: "iconfont",
|
|
8995
8996
|
color: "currentColor"
|
|
8996
|
-
}), _cache[
|
|
8997
|
+
}), _cache[21] || (_cache[21] = createElementVNode("span", null, "删除行", -1))], 8, _hoisted_18$3)], 64)) : createCommentVNode("", true)
|
|
8997
8998
|
], 64)), __props.state.menu.message ? (openBlock(), createElementBlock("p", {
|
|
8998
8999
|
key: 2,
|
|
8999
9000
|
class: normalizeClass(["word-business-table-message", { "is-success": __props.state.menu.messageKind === "success" }]),
|
|
@@ -9019,23 +9020,81 @@ var BusinessTableActions_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
|
|
|
9019
9020
|
}), 128))]);
|
|
9020
9021
|
};
|
|
9021
9022
|
}
|
|
9022
|
-
}), [["__scopeId", "data-v-
|
|
9023
|
+
}), [["__scopeId", "data-v-9c8ba619"]]);
|
|
9023
9024
|
// src/adapters/vue/business-table-actions.ts
|
|
9024
9025
|
/** @file 行旁操作复用公共下拉、数字输入和旧版图标。 */
|
|
9025
9026
|
var renderBusinessTableActions = (options) => {
|
|
9027
|
+
let binding = options;
|
|
9026
9028
|
const state = shallowRef(options.state);
|
|
9027
|
-
const
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9032
|
-
|
|
9029
|
+
const layers = /* @__PURE__ */ new Map();
|
|
9030
|
+
function update(next) {
|
|
9031
|
+
if (!binding) return;
|
|
9032
|
+
const active = /* @__PURE__ */ new Set();
|
|
9033
|
+
for (const id of new Set(next.anchors.map((anchor) => anchor.pageId))) {
|
|
9034
|
+
const parent = binding.pageHost(id);
|
|
9035
|
+
if (!parent) continue;
|
|
9036
|
+
active.add(id);
|
|
9037
|
+
let layer = layers.get(id);
|
|
9038
|
+
if (!layer) {
|
|
9039
|
+
layer = parent.ownerDocument.createElement("div");
|
|
9040
|
+
layer.className = "gct-word-table-actions-layer";
|
|
9041
|
+
layer.dataset.wordActionPage = id;
|
|
9042
|
+
Object.assign(layer.style, {
|
|
9043
|
+
position: "absolute",
|
|
9044
|
+
inset: "0",
|
|
9045
|
+
pointerEvents: "none",
|
|
9046
|
+
zIndex: "8"
|
|
9047
|
+
});
|
|
9048
|
+
layers.set(id, layer);
|
|
9049
|
+
}
|
|
9050
|
+
if (layer.parentElement !== parent) parent.append(layer);
|
|
9051
|
+
}
|
|
9052
|
+
for (const [id, layer] of layers) if (!active.has(id)) {
|
|
9053
|
+
layer.remove();
|
|
9054
|
+
layers.delete(id);
|
|
9055
|
+
}
|
|
9056
|
+
state.value = next;
|
|
9057
|
+
}
|
|
9058
|
+
let app = createApp({ render: () => {
|
|
9059
|
+
const current = binding;
|
|
9060
|
+
if (!current) return null;
|
|
9061
|
+
const pages = /* @__PURE__ */ new Map();
|
|
9062
|
+
for (const anchor of state.value.anchors) {
|
|
9063
|
+
const group = pages.get(anchor.pageId) ?? [];
|
|
9064
|
+
group.push(anchor);
|
|
9065
|
+
pages.set(anchor.pageId, group);
|
|
9066
|
+
}
|
|
9067
|
+
return [...pages].flatMap(([id, anchors]) => {
|
|
9068
|
+
const layer = layers.get(id);
|
|
9069
|
+
return layer ? [h(Teleport, {
|
|
9070
|
+
key: id,
|
|
9071
|
+
to: layer
|
|
9072
|
+
}, [h(BusinessTableActions_default, {
|
|
9073
|
+
state: {
|
|
9074
|
+
...state.value,
|
|
9075
|
+
anchors
|
|
9076
|
+
},
|
|
9077
|
+
open: current.open,
|
|
9078
|
+
close: current.close,
|
|
9079
|
+
run: current.run
|
|
9080
|
+
})])] : [];
|
|
9081
|
+
});
|
|
9082
|
+
} });
|
|
9033
9083
|
app.mount(options.container);
|
|
9084
|
+
update(options.state);
|
|
9034
9085
|
return {
|
|
9035
|
-
update
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9086
|
+
update,
|
|
9087
|
+
dispose: () => {
|
|
9088
|
+
app?.unmount();
|
|
9089
|
+
app = void 0;
|
|
9090
|
+
for (const layer of layers.values()) layer.remove();
|
|
9091
|
+
layers.clear();
|
|
9092
|
+
state.value = {
|
|
9093
|
+
anchors: [],
|
|
9094
|
+
busy: false
|
|
9095
|
+
};
|
|
9096
|
+
binding = void 0;
|
|
9097
|
+
}
|
|
9039
9098
|
};
|
|
9040
9099
|
};
|
|
9041
9100
|
// src/adapters/vue/FieldSelectActions.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -9237,6 +9296,93 @@ var renderFieldDialog = (options) => {
|
|
|
9237
9296
|
}
|
|
9238
9297
|
};
|
|
9239
9298
|
};
|
|
9299
|
+
// src/adapters/vue/quick-fill-container.ts
|
|
9300
|
+
/** @file 弹框内容可能尚未接入文档;只在可测量的容器中初始化虚拟表格。 */
|
|
9301
|
+
function waitForQuickFillContainer(container, signal) {
|
|
9302
|
+
return new Promise((resolve, reject) => {
|
|
9303
|
+
const view = container.ownerDocument.defaultView;
|
|
9304
|
+
const dispose = () => {
|
|
9305
|
+
mutation.disconnect();
|
|
9306
|
+
resize.disconnect();
|
|
9307
|
+
signal.removeEventListener("abort", aborted);
|
|
9308
|
+
};
|
|
9309
|
+
const aborted = () => {
|
|
9310
|
+
dispose();
|
|
9311
|
+
reject(Error("快速填报已取消"));
|
|
9312
|
+
};
|
|
9313
|
+
const check = () => {
|
|
9314
|
+
if (signal.aborted) {
|
|
9315
|
+
aborted();
|
|
9316
|
+
return;
|
|
9317
|
+
}
|
|
9318
|
+
const rect = container.getBoundingClientRect();
|
|
9319
|
+
if (!container.isConnected || rect.width <= 0 || rect.height <= 0) return;
|
|
9320
|
+
dispose();
|
|
9321
|
+
resolve();
|
|
9322
|
+
};
|
|
9323
|
+
const mutation = new view.MutationObserver(check), resize = new view.ResizeObserver(check);
|
|
9324
|
+
mutation.observe(container.ownerDocument.documentElement, {
|
|
9325
|
+
childList: true,
|
|
9326
|
+
subtree: true
|
|
9327
|
+
});
|
|
9328
|
+
resize.observe(container);
|
|
9329
|
+
signal.addEventListener("abort", aborted, { once: true });
|
|
9330
|
+
check();
|
|
9331
|
+
});
|
|
9332
|
+
}
|
|
9333
|
+
// src/adapters/vue/quick-fill-panel.ts
|
|
9334
|
+
/** @file 填报页先注册 RevoGrid 并预加载面板,打开弹框时只创建当前草稿实例。 */
|
|
9335
|
+
var preparation;
|
|
9336
|
+
/** 每个浏览器页面只准备一次;不创建隐藏表格,不持有业务值。 */
|
|
9337
|
+
function prepareQuickFillPanel() {
|
|
9338
|
+
if (!preparation) preparation = (async () => {
|
|
9339
|
+
const { defineCustomElements } = await import("@revolist/vue3-datagrid");
|
|
9340
|
+
if (!window.customElements.get("revo-grid")) await defineCustomElements();
|
|
9341
|
+
await window.customElements.whenDefined("revo-grid");
|
|
9342
|
+
return import("./chunks/QuickFillPanel-BNZwXlnL.js");
|
|
9343
|
+
})().catch((error) => {
|
|
9344
|
+
preparation = void 0;
|
|
9345
|
+
throw error;
|
|
9346
|
+
});
|
|
9347
|
+
return preparation;
|
|
9348
|
+
}
|
|
9349
|
+
var renderQuickFillPanel = async (options) => {
|
|
9350
|
+
const { default: Panel } = await prepareQuickFillPanel();
|
|
9351
|
+
if (options.signal.aborted) throw Error("快速填报已取消");
|
|
9352
|
+
await waitForQuickFillContainer(options.container, options.signal);
|
|
9353
|
+
const readonly = shallowRef(false), panel = shallowRef(), app = createApp({ render: () => h(Panel, {
|
|
9354
|
+
ref: panel,
|
|
9355
|
+
options,
|
|
9356
|
+
readonly: readonly.value
|
|
9357
|
+
}) });
|
|
9358
|
+
let disposed = false;
|
|
9359
|
+
const dispose = () => {
|
|
9360
|
+
if (disposed) return;
|
|
9361
|
+
disposed = true;
|
|
9362
|
+
options.signal.removeEventListener("abort", dispose);
|
|
9363
|
+
app.unmount();
|
|
9364
|
+
};
|
|
9365
|
+
options.signal.addEventListener("abort", dispose, { once: true });
|
|
9366
|
+
try {
|
|
9367
|
+
app.mount(options.container);
|
|
9368
|
+
await nextTick();
|
|
9369
|
+
if (!panel.value) throw Error("快速填报表格加载失败,请重新打开");
|
|
9370
|
+
await panel.value.ready();
|
|
9371
|
+
if (options.signal.aborted) throw Error("快速填报已取消");
|
|
9372
|
+
} catch (error) {
|
|
9373
|
+
dispose();
|
|
9374
|
+
throw error;
|
|
9375
|
+
}
|
|
9376
|
+
return {
|
|
9377
|
+
flush: async () => {
|
|
9378
|
+
if (!disposed) await panel.value?.flush();
|
|
9379
|
+
},
|
|
9380
|
+
setReadonly: (value) => {
|
|
9381
|
+
if (!disposed) readonly.value = value;
|
|
9382
|
+
},
|
|
9383
|
+
dispose
|
|
9384
|
+
};
|
|
9385
|
+
};
|
|
9240
9386
|
// src/adapters/vue/reference-field-options.ts
|
|
9241
9387
|
function defaultReferenceOptions(items) {
|
|
9242
9388
|
const defaults = /* @__PURE__ */ new Map();
|
|
@@ -9958,12 +10104,12 @@ var signature_card_default = "data:image/svg+xml,%3csvg%20width='444'%20height='
|
|
|
9958
10104
|
var _hoisted_1$85 = { class: "word-signature-card" };
|
|
9959
10105
|
var _hoisted_2$70 = { class: "word-signature-card-account" };
|
|
9960
10106
|
var _hoisted_3$55 = ["disabled"];
|
|
9961
|
-
var _hoisted_4$
|
|
9962
|
-
var _hoisted_5$
|
|
10107
|
+
var _hoisted_4$47 = ["src"];
|
|
10108
|
+
var _hoisted_5$43 = {
|
|
9963
10109
|
role: "status",
|
|
9964
10110
|
"aria-live": "polite"
|
|
9965
10111
|
};
|
|
9966
|
-
var _hoisted_6$
|
|
10112
|
+
var _hoisted_6$38 = ["disabled"];
|
|
9967
10113
|
// src/adapters/vue/SignatureCardReader.vue
|
|
9968
10114
|
var SignatureCardReader_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
9969
10115
|
__name: "SignatureCardReader",
|
|
@@ -10045,7 +10191,7 @@ var SignatureCardReader_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
10045
10191
|
}, [createElementVNode("img", {
|
|
10046
10192
|
src: unref(signature_card_default),
|
|
10047
10193
|
alt: ""
|
|
10048
|
-
}, null, 8, _hoisted_4$
|
|
10194
|
+
}, null, 8, _hoisted_4$47), createElementVNode("span", _hoisted_5$43, toDisplayString(__props.completed ? "签名成功" : __props.disabled ? "正在认证,请稍候…" : "请将卡片/手环贴近读卡器,完成刷卡签名"), 1)], 8, _hoisted_3$55),
|
|
10049
10195
|
createElementVNode("input", {
|
|
10050
10196
|
ref_key: "reader",
|
|
10051
10197
|
ref: reader,
|
|
@@ -10056,7 +10202,7 @@ var SignatureCardReader_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
10056
10202
|
autocomplete: "off",
|
|
10057
10203
|
onKeydown: onCardInput,
|
|
10058
10204
|
onPaste: _cache[0] || (_cache[0] = withModifiers(() => {}, ["prevent"]))
|
|
10059
|
-
}, null, 40, _hoisted_6$
|
|
10205
|
+
}, null, 40, _hoisted_6$38)
|
|
10060
10206
|
]);
|
|
10061
10207
|
};
|
|
10062
10208
|
}
|
|
@@ -10071,7 +10217,8 @@ var SignatureVisual_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
10071
10217
|
username: {},
|
|
10072
10218
|
time: {},
|
|
10073
10219
|
imageUrl: {},
|
|
10074
|
-
appearance: {}
|
|
10220
|
+
appearance: {},
|
|
10221
|
+
thumbnail: { type: Boolean }
|
|
10075
10222
|
},
|
|
10076
10223
|
setup(__props) {
|
|
10077
10224
|
const props = __props;
|
|
@@ -10082,9 +10229,9 @@ var SignatureVisual_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
10082
10229
|
height: appearance.value.vertical ? appearance.value.width ?? 120 : appearance.value.height ?? 68
|
|
10083
10230
|
}));
|
|
10084
10231
|
const size = ref(imageSize.value);
|
|
10085
|
-
const
|
|
10086
|
-
width: `${imageSize.value.width}px`,
|
|
10087
|
-
height: `${imageSize.value.height}px`,
|
|
10232
|
+
const visualStyle = computed(() => ({
|
|
10233
|
+
width: props.thumbnail ? "100%" : `${props.imageUrl ? imageSize.value.width : size.value.width}px`,
|
|
10234
|
+
height: props.thumbnail ? "100%" : `${props.imageUrl ? imageSize.value.height : size.value.height}px`,
|
|
10088
10235
|
objectFit: "contain"
|
|
10089
10236
|
}));
|
|
10090
10237
|
watchEffect(() => {
|
|
@@ -10117,7 +10264,7 @@ var SignatureVisual_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
10117
10264
|
key: 0,
|
|
10118
10265
|
src: __props.imageUrl,
|
|
10119
10266
|
alt: __props.username,
|
|
10120
|
-
style: normalizeStyle(
|
|
10267
|
+
style: normalizeStyle(visualStyle.value)
|
|
10121
10268
|
}, null, 12, _hoisted_1$84)) : (openBlock(), createElementBlock("canvas", {
|
|
10122
10269
|
key: 1,
|
|
10123
10270
|
ref_key: "canvas",
|
|
@@ -10125,48 +10272,47 @@ var SignatureVisual_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
10125
10272
|
class: "word-signature-graphic",
|
|
10126
10273
|
role: "img",
|
|
10127
10274
|
"aria-label": __props.username,
|
|
10128
|
-
style: normalizeStyle(
|
|
10129
|
-
width: `${size.value.width}px`,
|
|
10130
|
-
height: `${size.value.height}px`
|
|
10131
|
-
})
|
|
10275
|
+
style: normalizeStyle(visualStyle.value)
|
|
10132
10276
|
}, null, 12, _hoisted_2$69));
|
|
10133
10277
|
};
|
|
10134
10278
|
}
|
|
10135
|
-
}), [["__scopeId", "data-v-
|
|
10279
|
+
}), [["__scopeId", "data-v-5bfbfb20"]]);
|
|
10136
10280
|
// src/adapters/vue/SignatureFieldPanel.vue?vue&type=script&setup=true&lang.ts
|
|
10137
10281
|
var _hoisted_1$83 = { class: "word-signature-body" };
|
|
10138
|
-
var _hoisted_2$68 = {
|
|
10139
|
-
var _hoisted_3$54 = { class: "word-signature-record-visual" };
|
|
10140
|
-
var _hoisted_4$47 = {
|
|
10282
|
+
var _hoisted_2$68 = {
|
|
10141
10283
|
key: 0,
|
|
10142
10284
|
class: "word-signature-hint",
|
|
10143
10285
|
role: "status"
|
|
10144
10286
|
};
|
|
10145
|
-
var
|
|
10287
|
+
var _hoisted_3$54 = {
|
|
10146
10288
|
key: 1,
|
|
10147
10289
|
class: "word-signature-form"
|
|
10148
10290
|
};
|
|
10149
|
-
var
|
|
10150
|
-
var
|
|
10291
|
+
var _hoisted_4$46 = ["onKeydown"];
|
|
10292
|
+
var _hoisted_5$42 = {
|
|
10151
10293
|
key: 0,
|
|
10152
10294
|
class: "word-signature-field-error",
|
|
10153
10295
|
role: "alert"
|
|
10154
10296
|
};
|
|
10155
|
-
var
|
|
10297
|
+
var _hoisted_6$37 = {
|
|
10156
10298
|
key: 0,
|
|
10157
10299
|
class: "word-signature-field-error",
|
|
10158
10300
|
role: "alert"
|
|
10159
10301
|
};
|
|
10160
|
-
var
|
|
10161
|
-
key:
|
|
10162
|
-
class: "word-signature-
|
|
10163
|
-
|
|
10164
|
-
var _hoisted_10$16 = {
|
|
10165
|
-
key: 3,
|
|
10166
|
-
class: "word-signature-preview"
|
|
10302
|
+
var _hoisted_7$32 = {
|
|
10303
|
+
key: 1,
|
|
10304
|
+
class: "word-signature-records",
|
|
10305
|
+
"aria-label": "已保存签名"
|
|
10167
10306
|
};
|
|
10168
|
-
var
|
|
10169
|
-
var
|
|
10307
|
+
var _hoisted_8$25 = ["aria-label", "onClick"];
|
|
10308
|
+
var _hoisted_9$20 = [
|
|
10309
|
+
"aria-label",
|
|
10310
|
+
"title",
|
|
10311
|
+
"disabled",
|
|
10312
|
+
"onClick"
|
|
10313
|
+
];
|
|
10314
|
+
var _hoisted_10$16 = ["role"];
|
|
10315
|
+
var _hoisted_11$13 = {
|
|
10170
10316
|
key: 0,
|
|
10171
10317
|
class: "gct-word-field-actions"
|
|
10172
10318
|
};
|
|
@@ -10176,7 +10322,6 @@ var SignatureFieldPanel_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
10176
10322
|
props: {
|
|
10177
10323
|
state: {},
|
|
10178
10324
|
authorize: { type: Function },
|
|
10179
|
-
confirm: { type: Function },
|
|
10180
10325
|
remove: { type: Function },
|
|
10181
10326
|
cancel: { type: Function }
|
|
10182
10327
|
},
|
|
@@ -10195,9 +10340,10 @@ var SignatureFieldPanel_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
10195
10340
|
}), hideFeedback = ref(false), lifetime = new AbortController();
|
|
10196
10341
|
const usernameError = computed(() => touched.username && !username.value.trim() ? "请输入账号" : "");
|
|
10197
10342
|
const secretError = computed(() => touched.secret && !secret.value ? `请输入${methodLabel.value}` : "");
|
|
10198
|
-
const feedbackMessage = computed(() => !props.state.completed &&
|
|
10343
|
+
const feedbackMessage = computed(() => !props.state.completed && !hideFeedback.value ? props.state.message : "");
|
|
10199
10344
|
const methodLabel = computed(() => labels[method.value]);
|
|
10200
10345
|
let feedbackTimer;
|
|
10346
|
+
let viewer;
|
|
10201
10347
|
const feedbackError = computed(() => !!configError.value || !!feedbackMessage.value && (props.state.messageKind === "error" || props.state.messageKind === void 0 && !props.state.busy));
|
|
10202
10348
|
onMounted(async () => {
|
|
10203
10349
|
try {
|
|
@@ -10215,6 +10361,7 @@ var SignatureFieldPanel_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
10215
10361
|
}
|
|
10216
10362
|
});
|
|
10217
10363
|
onBeforeUnmount(() => {
|
|
10364
|
+
viewer?.close();
|
|
10218
10365
|
clearTimeout(feedbackTimer);
|
|
10219
10366
|
lifetime.abort();
|
|
10220
10367
|
secret.value = "";
|
|
@@ -10223,11 +10370,6 @@ var SignatureFieldPanel_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
10223
10370
|
clearTimeout(feedbackTimer);
|
|
10224
10371
|
if (method.value === "CARD" && props.state.messageKind === "error") feedbackTimer = setTimeout(() => hideFeedback.value = true, 5e3);
|
|
10225
10372
|
});
|
|
10226
|
-
watch(() => props.state.draft, async (draft) => {
|
|
10227
|
-
if (!draft) return;
|
|
10228
|
-
await nextTick();
|
|
10229
|
-
panel.value?.querySelector(".word-signature-confirm")?.focus({ preventScroll: true });
|
|
10230
|
-
});
|
|
10231
10373
|
function changeMethod(value) {
|
|
10232
10374
|
const found = methods.value.find((item) => item === value);
|
|
10233
10375
|
if (found && found !== method.value && !props.state.busy) {
|
|
@@ -10243,6 +10385,29 @@ var SignatureFieldPanel_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
10243
10385
|
const label = field === "username" ? "账号" : methodLabel.value;
|
|
10244
10386
|
panel.value?.querySelector(`input[aria-label="${label}"]`)?.focus({ preventScroll: true });
|
|
10245
10387
|
}
|
|
10388
|
+
/** 复用当前已绘制的签名图形,放大查看不重新认证,也不改变签名值或图片尺寸配置。 */
|
|
10389
|
+
function preview(index) {
|
|
10390
|
+
const container = panel.value;
|
|
10391
|
+
if (!container) return;
|
|
10392
|
+
const images = props.state.records.flatMap((record) => {
|
|
10393
|
+
const canvas = container.querySelector(`[data-signature-index="${record.index}"] canvas`);
|
|
10394
|
+
const url = record.imageUrl || canvas?.toDataURL("image/png");
|
|
10395
|
+
return url ? [{
|
|
10396
|
+
url,
|
|
10397
|
+
name: record.username,
|
|
10398
|
+
index: record.index
|
|
10399
|
+
}] : [];
|
|
10400
|
+
});
|
|
10401
|
+
if (!images.length) return;
|
|
10402
|
+
viewer?.close();
|
|
10403
|
+
viewer = openImageViewer({
|
|
10404
|
+
container,
|
|
10405
|
+
images,
|
|
10406
|
+
index: Math.max(0, images.findIndex((image) => image.index === index)),
|
|
10407
|
+
signal: lifetime.signal,
|
|
10408
|
+
onClose: () => viewer = void 0
|
|
10409
|
+
});
|
|
10410
|
+
}
|
|
10246
10411
|
async function authenticateCard(code) {
|
|
10247
10412
|
if (!props.state.canAuthorize || loading.value || configError.value || method.value !== "CARD") return;
|
|
10248
10413
|
hideFeedback.value = false;
|
|
@@ -10278,33 +10443,21 @@ var SignatureFieldPanel_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
10278
10443
|
class: "word-signature-panel",
|
|
10279
10444
|
tabindex: "-1"
|
|
10280
10445
|
}, { "data-field-dialog-focus": "" }), [createElementVNode("div", _hoisted_1$83, [
|
|
10281
|
-
__props.state.
|
|
10282
|
-
return openBlock(), createElementBlock("div", {
|
|
10283
|
-
key: record.index,
|
|
10284
|
-
class: "word-signature-record"
|
|
10285
|
-
}, [createElementVNode("div", _hoisted_3$54, [createVNode(SignatureVisual_default, mergeProps({ ref_for: true }, record, { appearance: __props.state.appearance }), null, 16, ["appearance"])]), createVNode(unref(button_default), {
|
|
10286
|
-
class: "word-signature-clear",
|
|
10287
|
-
size: "small",
|
|
10288
|
-
disabled: !__props.state.canRemove,
|
|
10289
|
-
onClick: ($event) => __props.remove(record.index)
|
|
10290
|
-
}, {
|
|
10291
|
-
default: withCtx(() => [..._cache[4] || (_cache[4] = [createTextVNode("清除", -1)])]),
|
|
10292
|
-
_: 1
|
|
10293
|
-
}, 8, ["disabled", "onClick"])]);
|
|
10294
|
-
}), 128))])], 64)) : createCommentVNode("", true),
|
|
10295
|
-
!__props.state.draft && (__props.state.canAuthorize || __props.state.busy || __props.state.completed) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [_cache[6] || (_cache[6] = createElementVNode("div", { class: "word-signature-section-title" }, "身份验证", -1)), loading.value ? (openBlock(), createElementBlock("p", _hoisted_4$47, "正在加载签名方式…")) : !configError.value ? (openBlock(), createElementBlock("div", _hoisted_5$43, [methods.value.length > 1 ? (openBlock(), createBlock(unref(form_item_default), {
|
|
10446
|
+
__props.state.canAuthorize || __props.state.busy || __props.state.completed ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [loading.value ? (openBlock(), createElementBlock("p", _hoisted_2$68, "正在加载签名方式…")) : !configError.value ? (openBlock(), createElementBlock("div", _hoisted_3$54, [methods.value.length ? (openBlock(), createBlock(unref(form_item_default), {
|
|
10296
10447
|
key: 0,
|
|
10297
|
-
inline: false,
|
|
10298
10448
|
label: "签名方式",
|
|
10299
|
-
|
|
10449
|
+
required: "",
|
|
10450
|
+
colon: "",
|
|
10451
|
+
"disable-spacing": "",
|
|
10452
|
+
class: "word-signature-row"
|
|
10300
10453
|
}, {
|
|
10301
|
-
default: withCtx(() => [createVNode(unref(radio_group_default), {
|
|
10454
|
+
default: withCtx(() => [createVNode(unref(radio_group_default), mergeProps({
|
|
10302
10455
|
"model-value": method.value,
|
|
10303
|
-
disabled: __props.state.busy || __props.state.completed
|
|
10304
|
-
|
|
10456
|
+
disabled: __props.state.busy || __props.state.completed
|
|
10457
|
+
}, { "aria-label": "签名方式" }, {
|
|
10305
10458
|
class: "word-signature-methods",
|
|
10306
10459
|
"onUpdate:modelValue": changeMethod
|
|
10307
|
-
}, {
|
|
10460
|
+
}), {
|
|
10308
10461
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(methods.value, (item) => {
|
|
10309
10462
|
return openBlock(), createBlock(unref(radio_default), {
|
|
10310
10463
|
key: item,
|
|
@@ -10315,7 +10468,7 @@ var SignatureFieldPanel_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
10315
10468
|
}, 1032, ["value"]);
|
|
10316
10469
|
}), 128))]),
|
|
10317
10470
|
_: 1
|
|
10318
|
-
},
|
|
10471
|
+
}, 16, ["model-value", "disabled"])]),
|
|
10319
10472
|
_: 1
|
|
10320
10473
|
})) : createCommentVNode("", true), method.value === "CARD" ? (openBlock(), createBlock(SignatureCardReader_default, {
|
|
10321
10474
|
key: 1,
|
|
@@ -10332,13 +10485,15 @@ var SignatureFieldPanel_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
10332
10485
|
class: "word-signature-password",
|
|
10333
10486
|
onKeydown: withKeys(withModifiers(authenticate, ["prevent"]), ["enter"])
|
|
10334
10487
|
}, [createVNode(unref(form_item_default), {
|
|
10335
|
-
inline: false,
|
|
10336
10488
|
label: "账号",
|
|
10337
10489
|
required: "",
|
|
10338
|
-
|
|
10490
|
+
colon: "",
|
|
10491
|
+
"disable-spacing": "",
|
|
10492
|
+
class: "word-signature-row"
|
|
10339
10493
|
}, {
|
|
10340
10494
|
default: withCtx(() => [createVNode(unref(input_default), mergeProps({ "model-value": username.value }, { ariaLabel: "账号" }, {
|
|
10341
|
-
placeholder: "
|
|
10495
|
+
placeholder: "请输入",
|
|
10496
|
+
"allow-clear": "",
|
|
10342
10497
|
status: usernameError.value ? "error" : "",
|
|
10343
10498
|
disabled: __props.state.busy,
|
|
10344
10499
|
autocomplete: "off",
|
|
@@ -10348,17 +10503,19 @@ var SignatureFieldPanel_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
10348
10503
|
"model-value",
|
|
10349
10504
|
"status",
|
|
10350
10505
|
"disabled"
|
|
10351
|
-
]), usernameError.value ? (openBlock(), createElementBlock("p",
|
|
10506
|
+
]), usernameError.value ? (openBlock(), createElementBlock("p", _hoisted_5$42, toDisplayString(usernameError.value), 1)) : createCommentVNode("", true)]),
|
|
10352
10507
|
_: 1
|
|
10353
10508
|
}), createVNode(unref(form_item_default), {
|
|
10354
|
-
inline: false,
|
|
10355
10509
|
label: methodLabel.value,
|
|
10356
10510
|
required: "",
|
|
10357
|
-
|
|
10511
|
+
colon: "",
|
|
10512
|
+
"disable-spacing": "",
|
|
10513
|
+
class: "word-signature-row"
|
|
10358
10514
|
}, {
|
|
10359
10515
|
default: withCtx(() => [createVNode(unref(input_default), mergeProps({ "model-value": secret.value }, { ariaLabel: methodLabel.value }, {
|
|
10360
10516
|
type: "password",
|
|
10361
|
-
placeholder:
|
|
10517
|
+
placeholder: "请输入",
|
|
10518
|
+
"allow-clear": "",
|
|
10362
10519
|
status: secretError.value ? "error" : "",
|
|
10363
10520
|
disabled: __props.state.busy,
|
|
10364
10521
|
autocomplete: "off",
|
|
@@ -10366,51 +10523,62 @@ var SignatureFieldPanel_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
10366
10523
|
onBlur: _cache[3] || (_cache[3] = ($event) => touched.secret = true)
|
|
10367
10524
|
}), null, 16, [
|
|
10368
10525
|
"model-value",
|
|
10369
|
-
"placeholder",
|
|
10370
10526
|
"status",
|
|
10371
10527
|
"disabled"
|
|
10372
|
-
]), secretError.value ? (openBlock(), createElementBlock("p",
|
|
10528
|
+
]), secretError.value ? (openBlock(), createElementBlock("p", _hoisted_6$37, toDisplayString(secretError.value), 1)) : createCommentVNode("", true)]),
|
|
10373
10529
|
_: 1
|
|
10374
|
-
}, 8, ["label"])], 40,
|
|
10375
|
-
__props.state.
|
|
10376
|
-
|
|
10530
|
+
}, 8, ["label"])], 40, _hoisted_4$46))])) : createCommentVNode("", true)], 64)) : createCommentVNode("", true),
|
|
10531
|
+
__props.state.records.length && !__props.state.completed && (method.value !== "CARD" || !__props.state.canAuthorize) ? (openBlock(), createElementBlock("div", _hoisted_7$32, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.state.records, (record) => {
|
|
10532
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
10533
|
+
key: record.index,
|
|
10534
|
+
class: "word-signature-record"
|
|
10535
|
+
}, { ref_for: true }, { "data-signature-index": record.index }), [createElementVNode("button", {
|
|
10536
|
+
type: "button",
|
|
10537
|
+
class: "word-signature-record-visual",
|
|
10538
|
+
"aria-label": `预览第 ${record.index + 1} 个签名`,
|
|
10539
|
+
onClick: ($event) => preview(record.index)
|
|
10540
|
+
}, [createVNode(SignatureVisual_default, mergeProps({ ref_for: true }, record, {
|
|
10541
|
+
appearance: __props.state.appearance,
|
|
10542
|
+
thumbnail: ""
|
|
10543
|
+
}), null, 16, ["appearance"])], 8, _hoisted_8$25), createElementVNode("button", {
|
|
10544
|
+
type: "button",
|
|
10545
|
+
class: "word-signature-remove",
|
|
10546
|
+
"aria-label": `删除第 ${record.index + 1} 个签名`,
|
|
10547
|
+
title: `删除第 ${record.index + 1} 个签名`,
|
|
10548
|
+
disabled: !__props.state.canRemove,
|
|
10549
|
+
onClick: withModifiers(($event) => __props.remove(record.index), ["stop"])
|
|
10550
|
+
}, [..._cache[4] || (_cache[4] = [createElementVNode("span", {
|
|
10551
|
+
class: "word-signature-remove-icon",
|
|
10552
|
+
"aria-hidden": "true"
|
|
10553
|
+
}, null, -1)])], 8, _hoisted_9$20)], 16);
|
|
10554
|
+
}), 128))])) : createCommentVNode("", true),
|
|
10377
10555
|
configError.value || feedbackMessage.value ? (openBlock(), createElementBlock("p", {
|
|
10378
|
-
key:
|
|
10556
|
+
key: 2,
|
|
10379
10557
|
class: normalizeClass(["word-signature-feedback", { "is-error": feedbackError.value }]),
|
|
10380
10558
|
role: feedbackError.value ? "alert" : "status"
|
|
10381
|
-
}, toDisplayString(configError.value || feedbackMessage.value), 11,
|
|
10382
|
-
]), !__props.state.completed ? (openBlock(), createElementBlock("div",
|
|
10383
|
-
default: withCtx(() => [createTextVNode(toDisplayString(__props.state.records.length && !__props.state.canAuthorize
|
|
10559
|
+
}, toDisplayString(configError.value || feedbackMessage.value), 11, _hoisted_10$16)) : createCommentVNode("", true)
|
|
10560
|
+
]), !__props.state.completed ? (openBlock(), createElementBlock("div", _hoisted_11$13, [createVNode(unref(button_default), { onClick: __props.cancel }, {
|
|
10561
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.state.records.length && !__props.state.canAuthorize ? "关闭" : "取消"), 1)]),
|
|
10384
10562
|
_: 1
|
|
10385
|
-
}, 8, ["onClick"]), __props.state.
|
|
10563
|
+
}, 8, ["onClick"]), method.value !== "CARD" && (__props.state.canAuthorize || __props.state.busy) ? (openBlock(), createBlock(unref(button_default), {
|
|
10386
10564
|
key: 0,
|
|
10387
|
-
class: "word-signature-confirm",
|
|
10388
|
-
type: "primary",
|
|
10389
|
-
disabled: !__props.state.canConfirm,
|
|
10390
|
-
onClick: __props.confirm
|
|
10391
|
-
}, {
|
|
10392
|
-
default: withCtx(() => [..._cache[8] || (_cache[8] = [createTextVNode("确认签名", -1)])]),
|
|
10393
|
-
_: 1
|
|
10394
|
-
}, 8, ["disabled", "onClick"])) : method.value !== "CARD" && (__props.state.canAuthorize || __props.state.busy) ? (openBlock(), createBlock(unref(button_default), {
|
|
10395
|
-
key: 1,
|
|
10396
10565
|
type: "primary",
|
|
10397
10566
|
loading: __props.state.busy,
|
|
10398
10567
|
disabled: loading.value || !!configError.value || !__props.state.canAuthorize,
|
|
10399
10568
|
onClick: authenticate
|
|
10400
10569
|
}, {
|
|
10401
|
-
default: withCtx(() => [..._cache[
|
|
10570
|
+
default: withCtx(() => [..._cache[5] || (_cache[5] = [createTextVNode("确认", -1)])]),
|
|
10402
10571
|
_: 1
|
|
10403
10572
|
}, 8, ["loading", "disabled"])) : createCommentVNode("", true)])) : createCommentVNode("", true)], 16);
|
|
10404
10573
|
};
|
|
10405
10574
|
}
|
|
10406
|
-
}), [["__scopeId", "data-v-
|
|
10575
|
+
}), [["__scopeId", "data-v-25d21dfe"]]);
|
|
10407
10576
|
// src/adapters/vue/signature-field-panel.ts
|
|
10408
10577
|
/** @file 一个字段的认证、预览和确认都挂在当前公共弹框中。 */
|
|
10409
10578
|
var renderSignatureFieldPanel = (options) => {
|
|
10410
10579
|
const state = shallowRef(options.state), app = createApp({ render: () => h(SignatureFieldPanel_default, {
|
|
10411
10580
|
state: state.value,
|
|
10412
10581
|
authorize: options.authorize,
|
|
10413
|
-
confirm: options.confirm,
|
|
10414
10582
|
cancel: options.cancel,
|
|
10415
10583
|
remove: options.remove
|
|
10416
10584
|
}) });
|
|
@@ -10462,15 +10630,15 @@ var _hoisted_3$53 = {
|
|
|
10462
10630
|
viewBox: "0 0 20 20",
|
|
10463
10631
|
"aria-hidden": "true"
|
|
10464
10632
|
};
|
|
10465
|
-
var _hoisted_4$
|
|
10633
|
+
var _hoisted_4$45 = {
|
|
10466
10634
|
key: 0,
|
|
10467
10635
|
d: "m6 10 3 3 5-6"
|
|
10468
10636
|
};
|
|
10469
|
-
var _hoisted_5$
|
|
10637
|
+
var _hoisted_5$41 = {
|
|
10470
10638
|
key: 1,
|
|
10471
10639
|
d: "M10 5.5v5M10 14v.2"
|
|
10472
10640
|
};
|
|
10473
|
-
var _hoisted_6$
|
|
10641
|
+
var _hoisted_6$36 = { class: "word-feedback-content" };
|
|
10474
10642
|
var _hoisted_7$31 = ["onClick"];
|
|
10475
10643
|
// src/adapters/vue/WordFeedback.vue
|
|
10476
10644
|
var WordFeedback_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -10489,8 +10657,8 @@ var WordFeedback_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
10489
10657
|
cx: "10",
|
|
10490
10658
|
cy: "10",
|
|
10491
10659
|
r: "8"
|
|
10492
|
-
}, null, -1)), item.type === "success" ? (openBlock(), createElementBlock("path", _hoisted_4$
|
|
10493
|
-
createElementVNode("div", _hoisted_6$
|
|
10660
|
+
}, null, -1)), item.type === "success" ? (openBlock(), createElementBlock("path", _hoisted_4$45)) : (openBlock(), createElementBlock("path", _hoisted_5$41))])),
|
|
10661
|
+
createElementVNode("div", _hoisted_6$36, [createElementVNode("strong", null, toDisplayString(item.title), 1), createElementVNode("p", null, toDisplayString(item.message), 1)]),
|
|
10494
10662
|
createElementVNode("button", {
|
|
10495
10663
|
type: "button",
|
|
10496
10664
|
"aria-label": "关闭提示",
|
|
@@ -12604,6 +12772,8 @@ var WordCanvasHost = class {
|
|
|
12604
12772
|
const tableOptions = {
|
|
12605
12773
|
host: options.tableOperationsHost,
|
|
12606
12774
|
controller: this.interaction.controller,
|
|
12775
|
+
renderQuickFillPanel: options.renderQuickFillPanel,
|
|
12776
|
+
renderFieldDialog: options.renderFieldDialog,
|
|
12607
12777
|
beforeAction: (signal) => this.beforeBusinessAction(signal),
|
|
12608
12778
|
onApplied: () => options.changed?.(),
|
|
12609
12779
|
onError: (error) => this.fail(error)
|
|
@@ -13047,8 +13217,11 @@ var WordCanvasHost = class {
|
|
|
13047
13217
|
this.drag.drag.refresh();
|
|
13048
13218
|
this.objects.handles.refresh();
|
|
13049
13219
|
this.tableEdges?.refresh();
|
|
13050
|
-
this.tableOperations?.panel.
|
|
13051
|
-
|
|
13220
|
+
const tables = this.tableOperations?.panel, materials = this.materialOperations?.panel;
|
|
13221
|
+
if (tables?.refreshGeometry) tables.refreshGeometry();
|
|
13222
|
+
else tables?.refresh();
|
|
13223
|
+
if (materials?.refreshGeometry) materials.refreshGeometry();
|
|
13224
|
+
else materials?.refresh();
|
|
13052
13225
|
this.regionMarks?.setActive(this.readActiveRegionId ? this.readActiveRegionId() : this.regionDesign?.panel.activeRegionId);
|
|
13053
13226
|
this.validation?.panel.refresh();
|
|
13054
13227
|
this.historyMarks?.refresh();
|
|
@@ -13392,9 +13565,9 @@ var fixedMaterialTables = /* @__PURE__ */ new Set([
|
|
|
13392
13565
|
"MATERIAL_SUBSTITUTION"
|
|
13393
13566
|
]);
|
|
13394
13567
|
/** 内置业务下拉的初始列及查询条件,模板保存后由字段配置接管。 */
|
|
13395
|
-
function wordReferenceDefaults(type, fieldKey, modelKey,
|
|
13568
|
+
function wordReferenceDefaults(type, fieldKey, modelKey, tableType) {
|
|
13396
13569
|
const key = fieldKey.split("$").at(-1);
|
|
13397
|
-
if (key === "part_id_" || type === "
|
|
13570
|
+
if (key === "part_id_" || type === "product" && tableType && fixedMaterialTables.has(tableType)) return {};
|
|
13398
13571
|
const material = type === "product" || type === "scrap_material";
|
|
13399
13572
|
const search = key === "storage_zone_id_" || modelKey === "em_storage_zone" ? nameAndCode : referenceSearchFields[type];
|
|
13400
13573
|
return {
|
|
@@ -13676,7 +13849,7 @@ function wordFieldDefinition(field, label, modelKey, subFieldKey, tableType) {
|
|
|
13676
13849
|
config: {
|
|
13677
13850
|
...config,
|
|
13678
13851
|
...textDefault,
|
|
13679
|
-
...wordReferenceDefaults(businessType ?? type, field.key, refModelKey,
|
|
13852
|
+
...wordReferenceDefaults(businessType ?? type, field.key, refModelKey, tableType)
|
|
13680
13853
|
}
|
|
13681
13854
|
};
|
|
13682
13855
|
case "date":
|
|
@@ -14602,6 +14775,10 @@ function useWordWorkspace(props, context, requestedMode, designer, openTableHead
|
|
|
14602
14775
|
/** 没有局部反馈位置的异常使用顶部居中提示,取消请求不打扰用户。 */
|
|
14603
14776
|
function fail(error) {
|
|
14604
14777
|
if (isWordCancellation(error)) return;
|
|
14778
|
+
if (error instanceof FieldInputBlockedError) {
|
|
14779
|
+
GctMessage.warning(error.message);
|
|
14780
|
+
return;
|
|
14781
|
+
}
|
|
14605
14782
|
if (error instanceof FieldPlacementError) {
|
|
14606
14783
|
showWordNotice(error.message, true);
|
|
14607
14784
|
return;
|
|
@@ -14690,11 +14867,16 @@ function useWordWorkspace(props, context, requestedMode, designer, openTableHead
|
|
|
14690
14867
|
if (!source || !mounted || ticket !== generation) return;
|
|
14691
14868
|
const page = elements.host.value;
|
|
14692
14869
|
if (!page) throw Error("Word 画布容器尚未挂载");
|
|
14870
|
+
if (!designer && requestedMode() === "fill") {
|
|
14871
|
+
await prepareQuickFillPanel();
|
|
14872
|
+
if (!mounted || ticket !== generation) return;
|
|
14873
|
+
}
|
|
14693
14874
|
const original = toRaw(source);
|
|
14694
14875
|
const key = designer ? modelKey?.() : void 0;
|
|
14695
14876
|
const host = new WordCanvasHost({
|
|
14696
14877
|
renderBusinessTableActions,
|
|
14697
14878
|
renderFieldDialog,
|
|
14879
|
+
renderQuickFillPanel,
|
|
14698
14880
|
renderSignaturePanel: renderSignatureFieldPanel,
|
|
14699
14881
|
renderTemporalPanel: renderTemporalFieldPanel,
|
|
14700
14882
|
renderChoicePanel: renderChoiceFieldPanel,
|
|
@@ -14814,6 +14996,8 @@ function useWordWorkspace(props, context, requestedMode, designer, openTableHead
|
|
|
14814
14996
|
await host.open();
|
|
14815
14997
|
if (!mounted || ticket !== generation || current !== host) return;
|
|
14816
14998
|
while (host.getMode() !== requestedMode()) {
|
|
14999
|
+
if (!designer && requestedMode() === "fill") await prepareQuickFillPanel();
|
|
15000
|
+
if (!mounted || ticket !== generation || current !== host) return;
|
|
14817
15001
|
const applied = await host.setMode(requestedMode(), props.discardDraftOnReadonly);
|
|
14818
15002
|
if (!mounted || ticket !== generation || current !== host) return;
|
|
14819
15003
|
if (!applied) throw new Error("初始文档模式尚未准备完成");
|
|
@@ -14852,6 +15036,10 @@ function useWordWorkspace(props, context, requestedMode, designer, openTableHead
|
|
|
14852
15036
|
const host = readyHost(), ticket = ++modeGeneration;
|
|
14853
15037
|
if (!host) return;
|
|
14854
15038
|
try {
|
|
15039
|
+
if (!designer && request === "fill") {
|
|
15040
|
+
await prepareQuickFillPanel();
|
|
15041
|
+
if (host !== readyHost() || ticket !== modeGeneration) return;
|
|
15042
|
+
}
|
|
14855
15043
|
const applied = await host.setMode(request, props.discardDraftOnReadonly);
|
|
14856
15044
|
if (host !== readyHost() || ticket !== modeGeneration) return;
|
|
14857
15045
|
mode.value = host.getMode();
|
|
@@ -16448,12 +16636,12 @@ function useDataSourceDraft(props, save) {
|
|
|
16448
16636
|
var _hoisted_1$81 = { class: "data-source-picker-header" };
|
|
16449
16637
|
var _hoisted_2$66 = { class: "data-source-picker-actions" };
|
|
16450
16638
|
var _hoisted_3$52 = { class: "data-source-picker-main" };
|
|
16451
|
-
var _hoisted_4$
|
|
16639
|
+
var _hoisted_4$44 = {
|
|
16452
16640
|
key: 0,
|
|
16453
16641
|
class: "data-source-picker-list"
|
|
16454
16642
|
};
|
|
16455
|
-
var _hoisted_5$
|
|
16456
|
-
var _hoisted_6$
|
|
16643
|
+
var _hoisted_5$40 = ["value"];
|
|
16644
|
+
var _hoisted_6$35 = { class: "data-source-picker-field" };
|
|
16457
16645
|
var _hoisted_7$30 = { class: "data-source-picker-type" };
|
|
16458
16646
|
var _hoisted_8$24 = { class: "data-source-picker-footer" };
|
|
16459
16647
|
var _hoisted_9$19 = {
|
|
@@ -16515,7 +16703,7 @@ var SourceFieldPicker_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
16515
16703
|
color: "#6b6b6b"
|
|
16516
16704
|
})]),
|
|
16517
16705
|
_: 1
|
|
16518
|
-
}, 8, ["model-value"]), visible.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
16706
|
+
}, 8, ["model-value"]), visible.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$44, [(openBlock(true), createElementBlock(Fragment, null, renderList(visible.value, (field) => {
|
|
16519
16707
|
return openBlock(), createElementBlock("label", {
|
|
16520
16708
|
key: field.key,
|
|
16521
16709
|
class: "data-source-picker-row"
|
|
@@ -16523,7 +16711,7 @@ var SourceFieldPicker_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
16523
16711
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => selected.value = $event),
|
|
16524
16712
|
type: "checkbox",
|
|
16525
16713
|
value: field.key
|
|
16526
|
-
}, null, 8, _hoisted_5$
|
|
16714
|
+
}, null, 8, _hoisted_5$40), [[vModelCheckbox, selected.value]]), createElementVNode("span", _hoisted_6$35, [createElementVNode("span", null, toDisplayString(field.label), 1), createElementVNode("small", null, [createElementVNode("span", null, toDisplayString(field.key), 1), createElementVNode("span", _hoisted_7$30, toDisplayString(__props.fieldTypeLabel(field.valueType)), 1)])])]);
|
|
16527
16715
|
}), 128))])) : (openBlock(), createBlock(unref(empty_default$1), {
|
|
16528
16716
|
key: 1,
|
|
16529
16717
|
class: "data-source-picker-empty",
|
|
@@ -16644,17 +16832,17 @@ var _hoisted_3$51 = {
|
|
|
16644
16832
|
class: "data-source-error",
|
|
16645
16833
|
role: "alert"
|
|
16646
16834
|
};
|
|
16647
|
-
var _hoisted_4$
|
|
16835
|
+
var _hoisted_4$43 = {
|
|
16648
16836
|
key: 0,
|
|
16649
16837
|
class: "data-source-error",
|
|
16650
16838
|
role: "alert"
|
|
16651
16839
|
};
|
|
16652
|
-
var _hoisted_5$
|
|
16840
|
+
var _hoisted_5$39 = {
|
|
16653
16841
|
key: 0,
|
|
16654
16842
|
class: "data-source-error",
|
|
16655
16843
|
role: "alert"
|
|
16656
16844
|
};
|
|
16657
|
-
var _hoisted_6$
|
|
16845
|
+
var _hoisted_6$34 = {
|
|
16658
16846
|
key: 0,
|
|
16659
16847
|
class: "data-source-error",
|
|
16660
16848
|
role: "alert"
|
|
@@ -16828,7 +17016,7 @@ var SourceConfigStep_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
16828
17016
|
"max-length": 80,
|
|
16829
17017
|
disabled: __props.editing,
|
|
16830
17018
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(draft).key = String($event))
|
|
16831
|
-
}, null, 8, ["model-value", "disabled"]), unref(fieldErrors).key ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
17019
|
+
}, null, 8, ["model-value", "disabled"]), unref(fieldErrors).key ? (openBlock(), createElementBlock("p", _hoisted_4$43, toDisplayString(unref(fieldErrors).key), 1)) : createCommentVNode("", true)]),
|
|
16832
17020
|
_: 1
|
|
16833
17021
|
}),
|
|
16834
17022
|
unref(draft).kind === "form" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(unref(form_item_default), {
|
|
@@ -16848,7 +17036,7 @@ var SourceConfigStep_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
16848
17036
|
"nodes",
|
|
16849
17037
|
"loading",
|
|
16850
17038
|
"onUpdate:modelValue"
|
|
16851
|
-
]), unref(fieldErrors).category ? (openBlock(), createElementBlock("p", _hoisted_5$
|
|
17039
|
+
]), unref(fieldErrors).category ? (openBlock(), createElementBlock("p", _hoisted_5$39, toDisplayString(unref(fieldErrors).category), 1)) : createCommentVNode("", true)]),
|
|
16852
17040
|
_: 1
|
|
16853
17041
|
}), createVNode(unref(form_item_default), {
|
|
16854
17042
|
label: "来源表单模板",
|
|
@@ -16867,7 +17055,7 @@ var SourceConfigStep_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
16867
17055
|
"model-value",
|
|
16868
17056
|
"options",
|
|
16869
17057
|
"disabled"
|
|
16870
|
-
]), unref(fieldErrors).templateId ? (openBlock(), createElementBlock("p", _hoisted_6$
|
|
17058
|
+
]), unref(fieldErrors).templateId ? (openBlock(), createElementBlock("p", _hoisted_6$34, toDisplayString(unref(fieldErrors).templateId), 1)) : createCommentVNode("", true)]),
|
|
16871
17059
|
_: 1
|
|
16872
17060
|
})], 64)) : unref(draft).kind === "entity" ? (openBlock(), createBlock(unref(form_item_default), {
|
|
16873
17061
|
key: 1,
|
|
@@ -17237,12 +17425,12 @@ var _hoisted_2$63 = {
|
|
|
17237
17425
|
"aria-label": "配置步骤"
|
|
17238
17426
|
};
|
|
17239
17427
|
var _hoisted_3$50 = ["aria-current"];
|
|
17240
|
-
var _hoisted_4$
|
|
17241
|
-
var _hoisted_5$
|
|
17428
|
+
var _hoisted_4$42 = { class: "data-source-step-number" };
|
|
17429
|
+
var _hoisted_5$38 = {
|
|
17242
17430
|
key: 0,
|
|
17243
17431
|
class: "data-source-types"
|
|
17244
17432
|
};
|
|
17245
|
-
var _hoisted_6$
|
|
17433
|
+
var _hoisted_6$33 = ["aria-pressed", "onClick"];
|
|
17246
17434
|
var _hoisted_7$28 = ["src"];
|
|
17247
17435
|
var _hoisted_8$22 = { class: "data-source-type-heading" };
|
|
17248
17436
|
var _hoisted_9$17 = {
|
|
@@ -17316,7 +17504,7 @@ var DataSourceDrawer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
17316
17504
|
done: unref(step) > index
|
|
17317
17505
|
}),
|
|
17318
17506
|
"aria-current": unref(step) === index ? "step" : void 0
|
|
17319
|
-
}, [createElementVNode("span", _hoisted_4$
|
|
17507
|
+
}, [createElementVNode("span", _hoisted_4$42, [unref(step) > index ? (openBlock(), createBlock(unref(icon_default), {
|
|
17320
17508
|
key: 0,
|
|
17321
17509
|
icon: "icon-duigou-da",
|
|
17322
17510
|
color: "currentColor",
|
|
@@ -17327,7 +17515,7 @@ var DataSourceDrawer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
17327
17515
|
ref_key: "main",
|
|
17328
17516
|
ref: main,
|
|
17329
17517
|
class: normalizeClass(["data-source-main", { "is-type-step": unref(step) === 0 }])
|
|
17330
|
-
}, [unref(step) === 0 ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
17518
|
+
}, [unref(step) === 0 ? (openBlock(), createElementBlock("div", _hoisted_5$38, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(sourceKinds), (item) => {
|
|
17331
17519
|
return openBlock(), createElementBlock("button", {
|
|
17332
17520
|
key: item.value,
|
|
17333
17521
|
type: "button",
|
|
@@ -17343,7 +17531,7 @@ var DataSourceDrawer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
17343
17531
|
}, null, 8, _hoisted_7$28),
|
|
17344
17532
|
createElementVNode("span", _hoisted_8$22, [createElementVNode("strong", null, toDisplayString(item.label), 1), "prerequisite" in item ? (openBlock(), createElementBlock("span", _hoisted_9$17, toDisplayString(item.prerequisite), 1)) : createCommentVNode("", true)]),
|
|
17345
17533
|
createElementVNode("span", _hoisted_10$13, toDisplayString(item.description), 1)
|
|
17346
|
-
], 10, _hoisted_6$
|
|
17534
|
+
], 10, _hoisted_6$33);
|
|
17347
17535
|
}), 128))])) : unref(step) === 1 ? (openBlock(), createBlock(SourceConfigStep_default, {
|
|
17348
17536
|
key: 1,
|
|
17349
17537
|
state: unref(state),
|
|
@@ -17463,9 +17651,9 @@ var SourceTypeTag_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
17463
17651
|
var _hoisted_1$77 = { class: "data-source-list" };
|
|
17464
17652
|
var _hoisted_2$62 = ["title"];
|
|
17465
17653
|
var _hoisted_3$49 = ["disabled", "onClick"];
|
|
17466
|
-
var _hoisted_4$
|
|
17467
|
-
var _hoisted_5$
|
|
17468
|
-
var _hoisted_6$
|
|
17654
|
+
var _hoisted_4$41 = ["disabled", "onClick"];
|
|
17655
|
+
var _hoisted_5$37 = { class: "data-source-fields" };
|
|
17656
|
+
var _hoisted_6$32 = {
|
|
17469
17657
|
key: 0,
|
|
17470
17658
|
class: "data-source-field"
|
|
17471
17659
|
};
|
|
@@ -17518,9 +17706,9 @@ var DataSourceList_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
17518
17706
|
icon: "icon-shanchu",
|
|
17519
17707
|
color: "currentColor",
|
|
17520
17708
|
size: "14"
|
|
17521
|
-
})], true)], 8, _hoisted_4$
|
|
17522
|
-
]), createElementVNode("div", _hoisted_5$
|
|
17523
|
-
item.result === "array" ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
17709
|
+
})], true)], 8, _hoisted_4$41)
|
|
17710
|
+
]), createElementVNode("div", _hoisted_5$37, [
|
|
17711
|
+
item.result === "array" ? (openBlock(), createElementBlock("div", _hoisted_6$32, [createElementVNode("code", null, toDisplayString(item.key) + ".DATA", 1), _cache[1] || (_cache[1] = createElementVNode("span", null, "集合", -1))])) : createCommentVNode("", true),
|
|
17524
17712
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.fields, (field) => {
|
|
17525
17713
|
return openBlock(), createElementBlock("div", {
|
|
17526
17714
|
key: field.key,
|
|
@@ -17546,7 +17734,7 @@ var DataSourceList_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
17546
17734
|
var _hoisted_1$76 = { class: "form-context-card" };
|
|
17547
17735
|
var _hoisted_2$61 = { class: "form-context-fields" };
|
|
17548
17736
|
var _hoisted_3$48 = ["title"];
|
|
17549
|
-
var _hoisted_4$
|
|
17737
|
+
var _hoisted_4$40 = ["title"];
|
|
17550
17738
|
// ../form-config/src/data/context/BuiltinContextCard.vue
|
|
17551
17739
|
var BuiltinContextCard_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
17552
17740
|
__name: "BuiltinContextCard",
|
|
@@ -17566,7 +17754,7 @@ var BuiltinContextCard_default = /*#__PURE__*/ _plugin_vue_export_helper_default
|
|
|
17566
17754
|
return openBlock(), createElementBlock("div", {
|
|
17567
17755
|
key: field.value,
|
|
17568
17756
|
class: "form-context-field"
|
|
17569
|
-
}, [createElementVNode("code", { title: `$ctx.${field.value}` }, "$ctx." + toDisplayString(field.value), 9, _hoisted_3$48), createElementVNode("span", { title: field.label }, toDisplayString(field.label), 9, _hoisted_4$
|
|
17757
|
+
}, [createElementVNode("code", { title: `$ctx.${field.value}` }, "$ctx." + toDisplayString(field.value), 9, _hoisted_3$48), createElementVNode("span", { title: field.label }, toDisplayString(field.label), 9, _hoisted_4$40)]);
|
|
17570
17758
|
}), 128))])]);
|
|
17571
17759
|
};
|
|
17572
17760
|
}
|
|
@@ -17700,11 +17888,11 @@ function createUuid() {
|
|
|
17700
17888
|
var _hoisted_1$75 = ["aria-label"];
|
|
17701
17889
|
var _hoisted_2$60 = { class: "field-fill-actions" };
|
|
17702
17890
|
var _hoisted_3$47 = { class: "field-fill-form" };
|
|
17703
|
-
var _hoisted_4$
|
|
17891
|
+
var _hoisted_4$39 = {
|
|
17704
17892
|
key: 0,
|
|
17705
17893
|
role: "alert"
|
|
17706
17894
|
};
|
|
17707
|
-
var _hoisted_5$
|
|
17895
|
+
var _hoisted_5$36 = {
|
|
17708
17896
|
key: 0,
|
|
17709
17897
|
role: "alert"
|
|
17710
17898
|
};
|
|
@@ -17799,7 +17987,7 @@ var FieldFillDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
17799
17987
|
"modelValue",
|
|
17800
17988
|
"nodes",
|
|
17801
17989
|
"selected-label"
|
|
17802
|
-
]), targetError.value ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
17990
|
+
]), targetError.value ? (openBlock(), createElementBlock("p", _hoisted_4$39, toDisplayString(targetError.value), 1)) : createCommentVNode("", true)]),
|
|
17803
17991
|
_: 1
|
|
17804
17992
|
}),
|
|
17805
17993
|
createVNode(unref(form_item_default), {
|
|
@@ -17820,7 +18008,7 @@ var FieldFillDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
17820
18008
|
"model-value",
|
|
17821
18009
|
"options",
|
|
17822
18010
|
"selected-option"
|
|
17823
|
-
]), sourceError.value ? (openBlock(), createElementBlock("p", _hoisted_5$
|
|
18011
|
+
]), sourceError.value ? (openBlock(), createElementBlock("p", _hoisted_5$36, toDisplayString(sourceError.value), 1)) : createCommentVNode("", true)]),
|
|
17824
18012
|
_: 1
|
|
17825
18013
|
}),
|
|
17826
18014
|
createVNode(unref(form_item_default), {
|
|
@@ -17854,9 +18042,9 @@ var FieldFillDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
17854
18042
|
var _hoisted_1$74 = { class: "field-fills" };
|
|
17855
18043
|
var _hoisted_2$59 = { class: "field-fill-line" };
|
|
17856
18044
|
var _hoisted_3$46 = ["title"];
|
|
17857
|
-
var _hoisted_4$
|
|
17858
|
-
var _hoisted_5$
|
|
17859
|
-
var _hoisted_6$
|
|
18045
|
+
var _hoisted_4$38 = ["title"];
|
|
18046
|
+
var _hoisted_5$35 = { class: "field-fill-bottom" };
|
|
18047
|
+
var _hoisted_6$31 = { class: "field-fill-buttons" };
|
|
17860
18048
|
var _hoisted_7$26 = ["disabled", "onClick"];
|
|
17861
18049
|
var _hoisted_8$20 = ["disabled", "onClick"];
|
|
17862
18050
|
// ../form-config/src/data/fills/FieldFills.vue
|
|
@@ -17895,9 +18083,9 @@ var FieldFills_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
17895
18083
|
class: "field-fill-arrow",
|
|
17896
18084
|
"aria-hidden": "true"
|
|
17897
18085
|
}, "←", -1)),
|
|
17898
|
-
createElementVNode("span", { title: unref(fillSourceLabel)(item.source) }, toDisplayString(unref(fillSourceLabel)(item.source)), 9, _hoisted_4$
|
|
18086
|
+
createElementVNode("span", { title: unref(fillSourceLabel)(item.source) }, toDisplayString(unref(fillSourceLabel)(item.source)), 9, _hoisted_4$38),
|
|
17899
18087
|
createVNode(SourceTypeTag_default, { kind: sourceKind(item) }, null, 8, ["kind"])
|
|
17900
|
-
]), createElementVNode("div", _hoisted_5$
|
|
18088
|
+
]), createElementVNode("div", _hoisted_5$35, [createElementVNode("small", null, "触发:" + toDisplayString(unref(fillTriggerLabels)[item.trigger]), 1), createElementVNode("div", _hoisted_6$31, [createElementVNode("button", {
|
|
17901
18089
|
type: "button",
|
|
17902
18090
|
disabled: !__props.editable,
|
|
17903
18091
|
"aria-label": "编辑填充",
|
|
@@ -17972,12 +18160,12 @@ var _hoisted_3$45 = {
|
|
|
17972
18160
|
key: 0,
|
|
17973
18161
|
role: "alert"
|
|
17974
18162
|
};
|
|
17975
|
-
var _hoisted_4$
|
|
18163
|
+
var _hoisted_4$37 = {
|
|
17976
18164
|
key: 0,
|
|
17977
18165
|
role: "alert"
|
|
17978
18166
|
};
|
|
17979
|
-
var _hoisted_5$
|
|
17980
|
-
var _hoisted_6$
|
|
18167
|
+
var _hoisted_5$34 = { class: "object-stock-header" };
|
|
18168
|
+
var _hoisted_6$30 = {
|
|
17981
18169
|
key: 1,
|
|
17982
18170
|
role: "alert"
|
|
17983
18171
|
};
|
|
@@ -18258,10 +18446,10 @@ var ObjectStockSettings_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
18258
18446
|
"model-value",
|
|
18259
18447
|
"options",
|
|
18260
18448
|
"disabled"
|
|
18261
|
-
]), defaultLocationError.value ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
18449
|
+
]), defaultLocationError.value ? (openBlock(), createElementBlock("p", _hoisted_4$37, toDisplayString(defaultLocationError.value), 1)) : createCommentVNode("", true)]),
|
|
18262
18450
|
_: 1
|
|
18263
18451
|
})]),
|
|
18264
|
-
createElementVNode("div", _hoisted_5$
|
|
18452
|
+
createElementVNode("div", _hoisted_5$34, [_cache[5] || (_cache[5] = createElementVNode("strong", null, "特殊库存配置", -1)), editing.value ? (openBlock(), createBlock(unref(button_default), {
|
|
18265
18453
|
key: 0,
|
|
18266
18454
|
type: "primary",
|
|
18267
18455
|
plain: "",
|
|
@@ -18287,7 +18475,7 @@ var ObjectStockSettings_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
18287
18475
|
"options",
|
|
18288
18476
|
"disabled",
|
|
18289
18477
|
"onUpdate:modelValue"
|
|
18290
|
-
])) : createCommentVNode("", true), rows.value[index] && rowError(rows.value[index].item, "shopfloor") ? (openBlock(), createElementBlock("p", _hoisted_6$
|
|
18478
|
+
])) : createCommentVNode("", true), rows.value[index] && rowError(rows.value[index].item, "shopfloor") ? (openBlock(), createElementBlock("p", _hoisted_6$30, toDisplayString(rowError(rows.value[index].item, "shopfloor")), 1)) : createCommentVNode("", true)]),
|
|
18291
18479
|
"cell-warehouse": withCtx(({ index }) => [rows.value[index] ? (openBlock(), createBlock(unref(unified_select_default), {
|
|
18292
18480
|
key: 0,
|
|
18293
18481
|
"model-value": rows.value[index].item.warehouseId ?? void 0,
|
|
@@ -18342,12 +18530,12 @@ var _hoisted_2$57 = {
|
|
|
18342
18530
|
role: "alert"
|
|
18343
18531
|
};
|
|
18344
18532
|
var _hoisted_3$44 = { class: "object-init-column-heading" };
|
|
18345
|
-
var _hoisted_4$
|
|
18346
|
-
var _hoisted_5$
|
|
18533
|
+
var _hoisted_4$36 = ["value", "onInput"];
|
|
18534
|
+
var _hoisted_5$33 = {
|
|
18347
18535
|
key: 10,
|
|
18348
18536
|
role: "alert"
|
|
18349
18537
|
};
|
|
18350
|
-
var _hoisted_6$
|
|
18538
|
+
var _hoisted_6$29 = {
|
|
18351
18539
|
key: 11,
|
|
18352
18540
|
role: "alert"
|
|
18353
18541
|
};
|
|
@@ -18863,7 +19051,7 @@ var ObjectInitializationEditor_default = /*#__PURE__*/ _plugin_vue_export_helper
|
|
|
18863
19051
|
step: "1",
|
|
18864
19052
|
value: textValue(field.key),
|
|
18865
19053
|
onInput: ($event) => change(field, $event.target.value || void 0)
|
|
18866
|
-
}, null, 40, _hoisted_4$
|
|
19054
|
+
}, null, 40, _hoisted_4$36)) : (openBlock(), createBlock(unref(input_default), {
|
|
18867
19055
|
key: 9,
|
|
18868
19056
|
disabled: !!materialInfoSource(field.key),
|
|
18869
19057
|
"model-value": textValue(field.key),
|
|
@@ -18874,8 +19062,8 @@ var ObjectInitializationEditor_default = /*#__PURE__*/ _plugin_vue_export_helper
|
|
|
18874
19062
|
"model-value",
|
|
18875
19063
|
"onUpdate:modelValue"
|
|
18876
19064
|
])),
|
|
18877
|
-
directoryErrors.get(field.key) ? (openBlock(), createElementBlock("p", _hoisted_5$
|
|
18878
|
-
materialErrors.get(field.key) ? (openBlock(), createElementBlock("p", _hoisted_6$
|
|
19065
|
+
directoryErrors.get(field.key) ? (openBlock(), createElementBlock("p", _hoisted_5$33, toDisplayString(directoryErrors.get(field.key)), 1)) : createCommentVNode("", true),
|
|
19066
|
+
materialErrors.get(field.key) ? (openBlock(), createElementBlock("p", _hoisted_6$29, toDisplayString(materialErrors.get(field.key)), 1)) : createCommentVNode("", true)
|
|
18879
19067
|
], 64);
|
|
18880
19068
|
}), 128))]),
|
|
18881
19069
|
_: 3
|
|
@@ -19076,7 +19264,7 @@ var ObjectInitializationEditor_default = /*#__PURE__*/ _plugin_vue_export_helper
|
|
|
19076
19264
|
var _hoisted_1$71 = { class: "object-initialization-list" };
|
|
19077
19265
|
var _hoisted_2$56 = { class: "object-init-info" };
|
|
19078
19266
|
var _hoisted_3$43 = ["title"];
|
|
19079
|
-
var _hoisted_4$
|
|
19267
|
+
var _hoisted_4$35 = ["disabled", "onClick"];
|
|
19080
19268
|
// ../form-config/src/data/objects/ObjectInitializationList.vue
|
|
19081
19269
|
var ObjectInitializationList_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
19082
19270
|
__name: "ObjectInitializationList",
|
|
@@ -19115,7 +19303,7 @@ var ObjectInitializationList_default = /*#__PURE__*/ _plugin_vue_export_helper_d
|
|
|
19115
19303
|
icon: "icon-shanchu",
|
|
19116
19304
|
size: "14",
|
|
19117
19305
|
color: "currentColor"
|
|
19118
|
-
})], true)], 8, _hoisted_4$
|
|
19306
|
+
})], true)], 8, _hoisted_4$35)]), createVNode(unref(button_default), {
|
|
19119
19307
|
full: "",
|
|
19120
19308
|
type: "primary",
|
|
19121
19309
|
plain: !configured(item),
|
|
@@ -19264,7 +19452,7 @@ var _hoisted_3$42 = {
|
|
|
19264
19452
|
class: "device-page",
|
|
19265
19453
|
"aria-current": "page"
|
|
19266
19454
|
};
|
|
19267
|
-
var _hoisted_4$
|
|
19455
|
+
var _hoisted_4$34 = {
|
|
19268
19456
|
key: 0,
|
|
19269
19457
|
role: "alert"
|
|
19270
19458
|
};
|
|
@@ -19428,7 +19616,7 @@ var DevicePickerDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default
|
|
|
19428
19616
|
_: 1
|
|
19429
19617
|
}, 16, ["disabled"])
|
|
19430
19618
|
]),
|
|
19431
|
-
error.value ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
19619
|
+
error.value ? (openBlock(), createElementBlock("p", _hoisted_4$34, toDisplayString(error.value), 1)) : createCommentVNode("", true)
|
|
19432
19620
|
]);
|
|
19433
19621
|
};
|
|
19434
19622
|
}
|
|
@@ -19581,9 +19769,9 @@ var DeviceFieldMapping_default = /*#__PURE__*/ _plugin_vue_export_helper_default
|
|
|
19581
19769
|
var _hoisted_1$67 = { class: "device-parameter" };
|
|
19582
19770
|
var _hoisted_2$52 = { class: "device-parameter-heading" };
|
|
19583
19771
|
var _hoisted_3$40 = ["title"];
|
|
19584
|
-
var _hoisted_4$
|
|
19585
|
-
var _hoisted_5$
|
|
19586
|
-
var _hoisted_6$
|
|
19772
|
+
var _hoisted_4$33 = { class: "device-parameter-name" };
|
|
19773
|
+
var _hoisted_5$32 = ["title"];
|
|
19774
|
+
var _hoisted_6$28 = { class: "device-parameter-info" };
|
|
19587
19775
|
var _hoisted_7$23 = { class: "device-parameter-link" };
|
|
19588
19776
|
var _hoisted_8$17 = { class: "device-parameter-target" };
|
|
19589
19777
|
var _hoisted_9$13 = { class: "device-parameter-select" };
|
|
@@ -19613,13 +19801,13 @@ var DeviceParameterCard_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
19613
19801
|
};
|
|
19614
19802
|
return (_ctx, _cache) => {
|
|
19615
19803
|
return openBlock(), createElementBlock("div", _hoisted_1$67, [
|
|
19616
|
-
createElementVNode("div", _hoisted_2$52, [createElementVNode("span", { title: __props.parameter.code }, toDisplayString(__props.parameter.code), 9, _hoisted_3$40), createElementVNode("div", _hoisted_4$
|
|
19804
|
+
createElementVNode("div", _hoisted_2$52, [createElementVNode("span", { title: __props.parameter.code }, toDisplayString(__props.parameter.code), 9, _hoisted_3$40), createElementVNode("div", _hoisted_4$33, [createElementVNode("span", { title: __props.parameter.name }, toDisplayString(__props.parameter.name), 9, _hoisted_5$32), createVNode(unref(dropdown_default), {
|
|
19617
19805
|
shown: detailsOpen.value,
|
|
19618
19806
|
"onUpdate:shown": _cache[1] || (_cache[1] = ($event) => detailsOpen.value = $event),
|
|
19619
19807
|
placement: "bottom-end",
|
|
19620
19808
|
triggers: ["hover", "focus"]
|
|
19621
19809
|
}, {
|
|
19622
|
-
popper: withCtx(() => [createElementVNode("dl", _hoisted_6$
|
|
19810
|
+
popper: withCtx(() => [createElementVNode("dl", _hoisted_6$28, [
|
|
19623
19811
|
_cache[3] || (_cache[3] = createElementVNode("dt", null, "编码:", -1)),
|
|
19624
19812
|
createElementVNode("dd", null, toDisplayString(__props.parameter.code), 1),
|
|
19625
19813
|
_cache[4] || (_cache[4] = createElementVNode("dt", null, "名称:", -1)),
|
|
@@ -19862,9 +20050,9 @@ var _hoisted_3$39 = {
|
|
|
19862
20050
|
key: 0,
|
|
19863
20051
|
role: "alert"
|
|
19864
20052
|
};
|
|
19865
|
-
var _hoisted_4$
|
|
19866
|
-
var _hoisted_5$
|
|
19867
|
-
var _hoisted_6$
|
|
20053
|
+
var _hoisted_4$32 = ["open"];
|
|
20054
|
+
var _hoisted_5$31 = { class: "communication-section communication-fields" };
|
|
20055
|
+
var _hoisted_6$27 = {
|
|
19868
20056
|
key: 0,
|
|
19869
20057
|
role: "alert"
|
|
19870
20058
|
};
|
|
@@ -20037,7 +20225,7 @@ var OcrTemplateEditor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
20037
20225
|
createElementVNode("details", {
|
|
20038
20226
|
open: modelOpen.value,
|
|
20039
20227
|
onToggle: _cache[12] || (_cache[12] = ($event) => modelOpen.value = $event.target.open)
|
|
20040
|
-
}, [_cache[19] || (_cache[19] = createElementVNode("summary", null, "模型配置", -1)), createElementVNode("div", _hoisted_5$
|
|
20228
|
+
}, [_cache[19] || (_cache[19] = createElementVNode("summary", null, "模型配置", -1)), createElementVNode("div", _hoisted_5$31, [
|
|
20041
20229
|
createVNode(unref(form_item_default), {
|
|
20042
20230
|
label: "模型精度",
|
|
20043
20231
|
required: "",
|
|
@@ -20049,7 +20237,7 @@ var OcrTemplateEditor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
20049
20237
|
options: __props.precision,
|
|
20050
20238
|
placeholder: "请选择",
|
|
20051
20239
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => draft.value.modelPrecision = String($event ?? ""))
|
|
20052
|
-
}, null, 8, ["model-value", "options"]), submitted.value && !draft.value.modelPrecision ? (openBlock(), createElementBlock("p", _hoisted_6$
|
|
20240
|
+
}, null, 8, ["model-value", "options"]), submitted.value && !draft.value.modelPrecision ? (openBlock(), createElementBlock("p", _hoisted_6$27, "请选择模型精度")) : createCommentVNode("", true)]),
|
|
20053
20241
|
_: 1
|
|
20054
20242
|
}),
|
|
20055
20243
|
createVNode(unref(form_item_default), {
|
|
@@ -20156,7 +20344,7 @@ var OcrTemplateEditor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
20156
20344
|
_: 1
|
|
20157
20345
|
})) : createCommentVNode("", true)
|
|
20158
20346
|
])) : createCommentVNode("", true)
|
|
20159
|
-
])], 40, _hoisted_4$
|
|
20347
|
+
])], 40, _hoisted_4$32),
|
|
20160
20348
|
createElementVNode("details", _hoisted_9$12, [_cache[29] || (_cache[29] = createElementVNode("summary", null, "提示词", -1)), createElementVNode("div", _hoisted_10$10, [createVNode(unref(radio_group_default), {
|
|
20161
20349
|
"model-value": draft.value.promptMode,
|
|
20162
20350
|
"option-type": "button",
|
|
@@ -20314,9 +20502,9 @@ var OcrTemplateEditor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
20314
20502
|
var _hoisted_1$63 = { class: "communication-panel" };
|
|
20315
20503
|
var _hoisted_2$49 = { key: 0 };
|
|
20316
20504
|
var _hoisted_3$38 = { class: "communication-card-heading" };
|
|
20317
|
-
var _hoisted_4$
|
|
20318
|
-
var _hoisted_5$
|
|
20319
|
-
var _hoisted_6$
|
|
20505
|
+
var _hoisted_4$31 = ["src"];
|
|
20506
|
+
var _hoisted_5$30 = ["title"];
|
|
20507
|
+
var _hoisted_6$26 = ["disabled", "onClick"];
|
|
20320
20508
|
var _hoisted_7$21 = { class: "communication-card-row" };
|
|
20321
20509
|
var _hoisted_8$15 = ["title"];
|
|
20322
20510
|
var _hoisted_9$11 = ["disabled", "onClick"];
|
|
@@ -20484,8 +20672,8 @@ var CommunicationPanel_default = /*#__PURE__*/ _plugin_vue_export_helper_default
|
|
|
20484
20672
|
width: "24",
|
|
20485
20673
|
height: "24",
|
|
20486
20674
|
alt: ""
|
|
20487
|
-
}, null, 8, _hoisted_4$
|
|
20488
|
-
createElementVNode("strong", { title: item.name }, toDisplayString(item.name || "OCR图像识别"), 9, _hoisted_5$
|
|
20675
|
+
}, null, 8, _hoisted_4$31),
|
|
20676
|
+
createElementVNode("strong", { title: item.name }, toDisplayString(item.name || "OCR图像识别"), 9, _hoisted_5$30),
|
|
20489
20677
|
!__props.runtime ? (openBlock(), createElementBlock("button", {
|
|
20490
20678
|
key: 0,
|
|
20491
20679
|
type: "button",
|
|
@@ -20493,7 +20681,7 @@ var CommunicationPanel_default = /*#__PURE__*/ _plugin_vue_export_helper_default
|
|
|
20493
20681
|
"aria-label": "删除 OCR 模板",
|
|
20494
20682
|
disabled: !__props.editable || busy.value,
|
|
20495
20683
|
onClick: ($event) => remove(item.id)
|
|
20496
|
-
}, [createVNode(CommunicationIcon_default, { name: "remove" })], 8, _hoisted_6$
|
|
20684
|
+
}, [createVNode(CommunicationIcon_default, { name: "remove" })], 8, _hoisted_6$26)) : createCommentVNode("", true)
|
|
20497
20685
|
]), createElementVNode("div", _hoisted_7$21, [createElementVNode("span", { title: item.deviceName }, toDisplayString(item.deviceName || "--"), 9, _hoisted_8$15), createElementVNode("button", {
|
|
20498
20686
|
type: "button",
|
|
20499
20687
|
class: "communication-link",
|
|
@@ -21369,9 +21557,9 @@ var WordObjectUserSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
21369
21557
|
var _hoisted_1$62 = ["width", "height"];
|
|
21370
21558
|
var _hoisted_2$48 = { key: 0 };
|
|
21371
21559
|
var _hoisted_3$37 = { key: 1 };
|
|
21372
|
-
var _hoisted_4$
|
|
21373
|
-
var _hoisted_5$
|
|
21374
|
-
var _hoisted_6$
|
|
21560
|
+
var _hoisted_4$30 = { key: 2 };
|
|
21561
|
+
var _hoisted_5$29 = { key: 3 };
|
|
21562
|
+
var _hoisted_6$25 = { key: 4 };
|
|
21375
21563
|
var _hoisted_7$20 = { key: 5 };
|
|
21376
21564
|
// src/adapters/vue/field-properties/FieldOptionIcon.vue
|
|
21377
21565
|
var FieldOptionIcon_default = /* @__PURE__ */ defineComponent({
|
|
@@ -21391,9 +21579,9 @@ var FieldOptionIcon_default = /* @__PURE__ */ defineComponent({
|
|
|
21391
21579
|
}, [
|
|
21392
21580
|
__props.name === "add" ? (openBlock(), createElementBlock("g", _hoisted_2$48, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M472 896V552H128a40 40 0 1 1 0-80h344V128a40 40 0 1 1 80 0v344H896a40 40 0 0 1 8.064 79.168L896 552H552V896a40 40 0 1 1-80 0z" }, null, -1)])])) : createCommentVNode("", true),
|
|
21393
21581
|
__props.name === "drag" ? (openBlock(), createElementBlock("g", _hoisted_3$37, [..._cache[1] || (_cache[1] = [createElementVNode("path", { d: "M361.411765 210.823529a60.235294 60.235294 0 1 0 0 120.470589 60.235294 60.235294 0 0 0 0-120.470589z m301.17647 0a60.235294 60.235294 0 1 0 0 120.470589 60.235294 60.235294 0 0 0 0-120.470589z m-361.411764 301.176471a60.235294 60.235294 0 1 1 120.470588 0 60.235294 60.235294 0 0 1-120.470588 0z m60.235294 180.705882a60.235294 60.235294 0 1 0 0 120.470589 60.235294 60.235294 0 0 0 0-120.470589z m240.941176-180.705882a60.235294 60.235294 0 1 1 120.470588 0 60.235294 60.235294 0 0 1-120.470588 0z m60.235294 180.705882a60.235294 60.235294 0 1 0 0 120.470589 60.235294 60.235294 0 0 0 0-120.470589z" }, null, -1)])])) : createCommentVNode("", true),
|
|
21394
|
-
__props.name === "edit" ? (openBlock(), createElementBlock("g", _hoisted_4$
|
|
21395
|
-
__props.name === "show" ? (openBlock(), createElementBlock("g", _hoisted_5$
|
|
21396
|
-
__props.name === "hide" ? (openBlock(), createElementBlock("g", _hoisted_6$
|
|
21582
|
+
__props.name === "edit" ? (openBlock(), createElementBlock("g", _hoisted_4$30, [..._cache[2] || (_cache[2] = [createElementVNode("path", { d: "M639.879529 92.16a12.047059 12.047059 0 0 1 17.046589 0l188.656941 188.777412a12.047059 12.047059 0 0 1 0 17.046588L374.663529 769.204706a12.047059 12.047059 0 0 1-8.553411 3.553882H177.152a12.047059 12.047059 0 0 1-12.047059-12.047059V572.476235a12.047059 12.047059 0 0 1 3.493647-8.493176l471.280941-471.823059z m17.046589 93.726118a12.047059 12.047059 0 0 0-17.046589 0L234.857412 591.390118a12.047059 12.047059 0 0 0-3.493647 8.493176v94.509177c0 6.625882 5.421176 12.047059 12.047059 12.047058h95.292235a12.047059 12.047059 0 0 0 8.493176-3.553882l404.781177-404.901647a12.047059 12.047059 0 0 0 0-17.046588l-95.051294-95.051294z m237.327058 748.724706a12.047059 12.047059 0 0 1-12.047058 12.047058h-758.964706a12.047059 12.047059 0 0 1-12.047059-12.047058v-42.164706c0-6.625882 5.421176-12.047059 12.047059-12.047059h758.964706c6.686118 0 12.047059 5.421176 12.047058 12.047059v42.164706z" }, null, -1)])])) : createCommentVNode("", true),
|
|
21583
|
+
__props.name === "show" ? (openBlock(), createElementBlock("g", _hoisted_5$29, [..._cache[3] || (_cache[3] = [createElementVNode("path", { d: "M512 192c92.736 0 177.664 36.736 248 82.752 70.464 46.08 128.384 102.976 167.68 146.752a134.4 134.4 0 0 1 0 180.992c-39.296 43.776-97.216 100.608-167.68 146.752C689.664 795.328 604.736 832 512 832c-92.736 0-177.664-36.736-248-82.752-70.4-46.08-128.384-102.976-167.68-146.752a134.4 134.4 0 0 1 0-180.992c39.296-43.776 97.28-100.608 167.68-146.752C334.336 228.672 419.264 192 512 192z m0 64c-75.84 0-148.608 30.144-212.928 72.256-64.192 41.984-117.952 94.592-155.136 136a70.4 70.4 0 0 0 0 95.488c37.12 41.408 90.88 93.952 155.136 136C363.392 737.92 436.16 768 512 768s148.608-30.144 212.928-72.256c64.192-42.048 117.952-94.592 155.136-136a70.4 70.4 0 0 0 0-95.488c-37.12-41.408-90.88-94.016-155.136-136C660.608 286.08 587.84 256 512 256z" }, null, -1), createElementVNode("path", { d: "M586.624 512a74.688 74.688 0 1 0-149.312 0 74.688 74.688 0 0 0 149.312 0z m64 0a138.624 138.624 0 1 1-277.248 0 138.624 138.624 0 0 1 277.248 0z" }, null, -1)])])) : createCommentVNode("", true),
|
|
21584
|
+
__props.name === "hide" ? (openBlock(), createElementBlock("g", _hoisted_6$25, [..._cache[4] || (_cache[4] = [createElementVNode("path", { d: "M155.84 360.64a32 32 0 0 1 43.712 46.72c-21.248 19.904-39.872 39.424-55.552 56.896a70.464 70.464 0 0 0-0.064 95.488c37.12 41.408 90.88 93.952 155.136 136C363.392 737.92 436.16 768 512 768c44.032 0 87.104-10.112 128.192-27.008a32 32 0 0 1 24.32 59.2C617.28 819.584 565.952 832 512 832c-92.736 0-177.664-36.736-248-82.752-70.4-46.08-128.384-102.976-167.68-146.752a134.4 134.4 0 0 1 0-180.992c16.768-18.56 36.736-39.552 59.52-60.864zM512 192c92.736 0 177.664 36.736 248 82.752 70.4 46.08 128.384 102.976 167.68 146.752a134.4 134.4 0 0 1 0 180.992c-16.768 18.56-36.736 39.488-59.52 60.864a32 32 0 0 1-43.712-46.72c21.248-19.904 39.872-39.424 55.552-56.896 24.896-27.712 24.96-67.84 0.064-95.488-37.12-41.408-90.88-94.016-155.136-136C660.608 286.08 587.84 256 512 256c-42.752 0-84.48 9.6-124.48 25.6a32 32 0 0 1-23.808-59.52A399.168 399.168 0 0 1 512 192zM103.424 171.52a32 32 0 0 1 45.056-4.096l768 640a32 32 0 0 1-40.96 49.152l-768-640a32 32 0 0 1-4.096-45.056z" }, null, -1), createElementVNode("path", { d: "M373.312 512c0-31.168 10.368-60.032 27.776-83.2l25.6 19.2 25.6 19.2a74.688 74.688 0 0 0 112 98.112l44.8 45.696A138.688 138.688 0 0 1 373.312 512z" }, null, -1)])])) : createCommentVNode("", true),
|
|
21397
21585
|
__props.name === "remove" ? (openBlock(), createElementBlock("g", _hoisted_7$20, [..._cache[5] || (_cache[5] = [
|
|
21398
21586
|
createElementVNode("path", { d: "M398.4 801.9c17 0 33.9-17.9 33.9-35.8V425.8c0-23.9-11.3-35.8-33.9-35.8-22.6 0-39.6 11.9-39.6 35.8V766c0.1 18 17 35.9 39.6 35.9z" }, null, -1),
|
|
21399
21587
|
createElementVNode("path", { d: "M901.4 211h-110L777.1 79.7c0-23.9-17-35.8-33.9-35.8H268.5c-17 0-33.9 11.9-33.9 35.8L220.2 211h-110c-22.6 0-39.6 11.9-39.6 35.8s17 41.8 33.9 41.8h34.3c-0.3 1.9-0.4 3.9-0.4 6v620.8c0 29.8 22.6 59.7 56.5 59.7h616c28.3 0 56.5-23.9 67.8-59.7V294.6c0-2-0.2-4-0.6-6h17.6c22.6 0 45.2-23.9 45.2-41.8S924 211 901.4 211z m-599-89.6h401.2l12.7 89.5H289.7l12.7-89.5z m497.3 173.2v608.8H217.6V294.6c0-2-0.2-4-0.6-6h583.1c-0.3 1.9-0.4 3.9-0.4 6z" }, null, -1),
|
|
@@ -21630,13 +21818,13 @@ var _hoisted_3$36 = {
|
|
|
21630
21818
|
key: 0,
|
|
21631
21819
|
class: "word-barcode-tip"
|
|
21632
21820
|
};
|
|
21633
|
-
var _hoisted_4$
|
|
21634
|
-
var _hoisted_5$
|
|
21821
|
+
var _hoisted_4$29 = { class: "word-barcode-mapping" };
|
|
21822
|
+
var _hoisted_5$28 = {
|
|
21635
21823
|
key: 0,
|
|
21636
21824
|
class: "word-barcode-error",
|
|
21637
21825
|
role: "alert"
|
|
21638
21826
|
};
|
|
21639
|
-
var _hoisted_6$
|
|
21827
|
+
var _hoisted_6$24 = {
|
|
21640
21828
|
key: 0,
|
|
21641
21829
|
class: "word-barcode-error",
|
|
21642
21830
|
role: "alert"
|
|
@@ -21774,7 +21962,7 @@ var FieldBarcodeRulesDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
21774
21962
|
}),
|
|
21775
21963
|
__props.tip ? (openBlock(), createElementBlock("p", _hoisted_3$36, toDisplayString(__props.tip), 1)) : createCommentVNode("", true),
|
|
21776
21964
|
_cache[2] || (_cache[2] = createElementVNode("div", { class: "word-barcode-subtitle" }, "字段映射", -1)),
|
|
21777
|
-
createElementVNode("div", _hoisted_4$
|
|
21965
|
+
createElementVNode("div", _hoisted_4$29, [(openBlock(true), createElementBlock(Fragment, null, renderList(rows.value, (row, index) => {
|
|
21778
21966
|
return openBlock(), createElementBlock("div", {
|
|
21779
21967
|
key: row.id,
|
|
21780
21968
|
class: "word-barcode-row"
|
|
@@ -21794,7 +21982,7 @@ var FieldBarcodeRulesDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
21794
21982
|
"options",
|
|
21795
21983
|
"disabled",
|
|
21796
21984
|
"onChange"
|
|
21797
|
-
]), row.checked && sourceError(row.source) ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
21985
|
+
]), row.checked && sourceError(row.source) ? (openBlock(), createElementBlock("div", _hoisted_5$28, toDisplayString(sourceError(row.source)), 1)) : createCommentVNode("", true)]),
|
|
21798
21986
|
_: 2
|
|
21799
21987
|
}, 1024),
|
|
21800
21988
|
_cache[0] || (_cache[0] = createElementVNode("div", {
|
|
@@ -21818,7 +22006,7 @@ var FieldBarcodeRulesDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
21818
22006
|
"options",
|
|
21819
22007
|
"disabled",
|
|
21820
22008
|
"onChange"
|
|
21821
|
-
]), row.checked && targetError(row.targets) ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
22009
|
+
]), row.checked && targetError(row.targets) ? (openBlock(), createElementBlock("div", _hoisted_6$24, toDisplayString(targetError(row.targets)), 1)) : createCommentVNode("", true)]),
|
|
21822
22010
|
_: 2
|
|
21823
22011
|
}, 1032, ["label"]),
|
|
21824
22012
|
createElementVNode("div", _hoisted_7$19, [!__props.readonly ? (openBlock(), createElementBlock("button", {
|
|
@@ -22089,8 +22277,8 @@ var WordObjectInitDialog_default = /* @__PURE__ */ defineComponent({
|
|
|
22089
22277
|
var _hoisted_1$59 = { class: "word-data-properties" };
|
|
22090
22278
|
var _hoisted_2$45 = { class: "word-data-section" };
|
|
22091
22279
|
var _hoisted_3$35 = { class: "word-data-section" };
|
|
22092
|
-
var _hoisted_4$
|
|
22093
|
-
var _hoisted_5$
|
|
22280
|
+
var _hoisted_4$28 = { class: "word-data-section" };
|
|
22281
|
+
var _hoisted_5$27 = { class: "word-data-section" };
|
|
22094
22282
|
// src/adapters/vue/data-properties/WordDataProperties.vue
|
|
22095
22283
|
var WordDataProperties_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
22096
22284
|
__name: "WordDataProperties",
|
|
@@ -22426,7 +22614,7 @@ var WordDataProperties_default = /*#__PURE__*/ _plugin_vue_export_helper_default
|
|
|
22426
22614
|
class: "word-page-section",
|
|
22427
22615
|
title: "对象初始化"
|
|
22428
22616
|
}, {
|
|
22429
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_4$
|
|
22617
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_4$28, [createVNode(unref(ObjectInitializationList_default), {
|
|
22430
22618
|
items: __props.config.objects ?? [],
|
|
22431
22619
|
options: objects.value,
|
|
22432
22620
|
editable: __props.editable,
|
|
@@ -22453,7 +22641,7 @@ var WordDataProperties_default = /*#__PURE__*/ _plugin_vue_export_helper_default
|
|
|
22453
22641
|
class: "word-page-section",
|
|
22454
22642
|
title: "数据加载"
|
|
22455
22643
|
}, {
|
|
22456
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_5$
|
|
22644
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_5$27, [createVNode(unref(CommunicationPanel_default), {
|
|
22457
22645
|
templates: __props.communication,
|
|
22458
22646
|
fields: communicationFields.value,
|
|
22459
22647
|
ports: communicationPorts,
|
|
@@ -22985,9 +23173,9 @@ var FieldRangeFormula_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
22985
23173
|
var _hoisted_1$55 = { class: "word-dependency-dialog" };
|
|
22986
23174
|
var _hoisted_2$42 = { class: "word-dependency-row is-top-aligned" };
|
|
22987
23175
|
var _hoisted_3$33 = { class: "word-dependency-control" };
|
|
22988
|
-
var _hoisted_4$
|
|
22989
|
-
var _hoisted_5$
|
|
22990
|
-
var _hoisted_6$
|
|
23176
|
+
var _hoisted_4$27 = { class: "word-dependency-field" };
|
|
23177
|
+
var _hoisted_5$26 = { class: "word-dependency-row" };
|
|
23178
|
+
var _hoisted_6$23 = {
|
|
22991
23179
|
key: 0,
|
|
22992
23180
|
class: "word-dependency-row"
|
|
22993
23181
|
};
|
|
@@ -23078,7 +23266,7 @@ var FieldDependencyDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
|
|
|
23078
23266
|
__expose({ read });
|
|
23079
23267
|
return (_ctx, _cache) => {
|
|
23080
23268
|
return openBlock(), createElementBlock("div", _hoisted_1$55, [
|
|
23081
|
-
createElementVNode("div", _hoisted_2$42, [_cache[0] || (_cache[0] = createElementVNode("span", { class: "word-dependency-label" }, "当前组件", -1)), createElementVNode("div", _hoisted_3$33, [createElementVNode("div", _hoisted_4$
|
|
23269
|
+
createElementVNode("div", _hoisted_2$42, [_cache[0] || (_cache[0] = createElementVNode("span", { class: "word-dependency-label" }, "当前组件", -1)), createElementVNode("div", _hoisted_3$33, [createElementVNode("div", _hoisted_4$27, [__props.fieldIcon ? (openBlock(), createBlock(unref(icon_default), {
|
|
23082
23270
|
key: 0,
|
|
23083
23271
|
icon: __props.fieldIcon,
|
|
23084
23272
|
font: "iconfont",
|
|
@@ -23101,7 +23289,7 @@ var FieldDependencyDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
|
|
|
23101
23289
|
}), 128))]),
|
|
23102
23290
|
_: 1
|
|
23103
23291
|
}, 16)])]),
|
|
23104
|
-
createElementVNode("div", _hoisted_5$
|
|
23292
|
+
createElementVNode("div", _hoisted_5$26, [_cache[1] || (_cache[1] = createElementVNode("span", { class: "word-dependency-label" }, "组件行为", -1)), createVNode(unref(radio_group_default), {
|
|
23105
23293
|
"model-value": effect.value,
|
|
23106
23294
|
disabled: __props.readonly,
|
|
23107
23295
|
class: "word-dependency-effects",
|
|
@@ -23119,7 +23307,7 @@ var FieldDependencyDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
|
|
|
23119
23307
|
}), 128))]),
|
|
23120
23308
|
_: 1
|
|
23121
23309
|
}, 8, ["model-value", "disabled"])]),
|
|
23122
|
-
assignment.value ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
23310
|
+
assignment.value ? (openBlock(), createElementBlock("div", _hoisted_6$23, [_cache[4] || (_cache[4] = createElementVNode("span", { class: "word-dependency-label" }, "赋值类型", -1)), createVNode(unref(radio_group_default), {
|
|
23123
23311
|
"model-value": assignmentType.value,
|
|
23124
23312
|
disabled: __props.readonly,
|
|
23125
23313
|
onChange: chooseAssignmentType
|
|
@@ -23178,8 +23366,8 @@ var FieldDependencyDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
|
|
|
23178
23366
|
var _hoisted_1$54 = { class: "word-field-dependencies" };
|
|
23179
23367
|
var _hoisted_2$41 = { class: "word-field-dependency-header" };
|
|
23180
23368
|
var _hoisted_3$32 = { key: 0 };
|
|
23181
|
-
var _hoisted_4$
|
|
23182
|
-
var _hoisted_5$
|
|
23369
|
+
var _hoisted_4$26 = { class: "word-field-inline" };
|
|
23370
|
+
var _hoisted_5$25 = ["title"];
|
|
23183
23371
|
// src/adapters/vue/field-properties/FieldDependencies.vue
|
|
23184
23372
|
var FieldDependencies_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
23185
23373
|
__name: "FieldDependencies",
|
|
@@ -23283,7 +23471,7 @@ var FieldDependencies_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
23283
23471
|
}, [createElementVNode("div", _hoisted_2$41, [
|
|
23284
23472
|
createElementVNode("strong", null, toDisplayString(labels[rule.effect]), 1),
|
|
23285
23473
|
rule.effect === "assignment" ? (openBlock(), createElementBlock("span", _hoisted_3$32, [rule.assignmentType === "clear" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode("清空")], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode("公式计算 · " + toDisplayString(strategyLabel(rule.strategy)), 1)], 64))])) : createCommentVNode("", true),
|
|
23286
|
-
createElementVNode("div", _hoisted_4$
|
|
23474
|
+
createElementVNode("div", _hoisted_4$26, [createVNode(unref(button_default), mergeProps({ class: "word-field-icon-button" }, { ref_for: true }, { "aria-label": "编辑规则" }, { onClick: ($event) => edit(rule) }), {
|
|
23287
23475
|
default: withCtx(() => [createVNode(FieldOptionIcon_default, {
|
|
23288
23476
|
name: "edit",
|
|
23289
23477
|
size: 14
|
|
@@ -23303,7 +23491,7 @@ var FieldDependencies_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
23303
23491
|
key: 0,
|
|
23304
23492
|
class: "word-field-dependency-expression",
|
|
23305
23493
|
title: rule.expressionLabel || rule.expression || void 0
|
|
23306
|
-
}, toDisplayString(rule.expressionLabel || rule.expression), 9, _hoisted_5$
|
|
23494
|
+
}, toDisplayString(rule.expressionLabel || rule.expression), 9, _hoisted_5$25)) : createCommentVNode("", true)]);
|
|
23307
23495
|
}), 128))
|
|
23308
23496
|
]);
|
|
23309
23497
|
};
|
|
@@ -23471,9 +23659,9 @@ var _hoisted_2$38 = {
|
|
|
23471
23659
|
class: "word-field-empty"
|
|
23472
23660
|
};
|
|
23473
23661
|
var _hoisted_3$29 = ["onDrop"];
|
|
23474
|
-
var _hoisted_4$
|
|
23475
|
-
var _hoisted_5$
|
|
23476
|
-
var _hoisted_6$
|
|
23662
|
+
var _hoisted_4$25 = { class: "word-enum-option-row" };
|
|
23663
|
+
var _hoisted_5$24 = ["draggable", "onDragstart"];
|
|
23664
|
+
var _hoisted_6$22 = { class: "word-field-inline word-enum-option-actions" };
|
|
23477
23665
|
// src/adapters/vue/field-properties/FieldOptions.vue
|
|
23478
23666
|
var FieldOptions_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
23479
23667
|
__name: "FieldOptions",
|
|
@@ -23719,13 +23907,13 @@ var FieldOptions_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
23719
23907
|
class: "word-enum-option",
|
|
23720
23908
|
onDragover: allowReorder,
|
|
23721
23909
|
onDrop: ($event) => move($event, option.id)
|
|
23722
|
-
}, [createElementVNode("div", _hoisted_4$
|
|
23910
|
+
}, [createElementVNode("div", _hoisted_4$25, [
|
|
23723
23911
|
createElementVNode("span", {
|
|
23724
23912
|
class: "word-enum-option-handle",
|
|
23725
23913
|
draggable: __props.state.editable,
|
|
23726
23914
|
onDragstart: ($event) => dragged.value = option.id,
|
|
23727
23915
|
onDragend: _cache[1] || (_cache[1] = ($event) => dragged.value = void 0)
|
|
23728
|
-
}, [createVNode(FieldOptionIcon_default, { name: "drag" })], 40, _hoisted_5$
|
|
23916
|
+
}, [createVNode(FieldOptionIcon_default, { name: "drag" })], 40, _hoisted_5$24),
|
|
23729
23917
|
createVNode(unref(input_default), {
|
|
23730
23918
|
"model-value": option.label,
|
|
23731
23919
|
disabled: !__props.state.editable,
|
|
@@ -23736,7 +23924,7 @@ var FieldOptions_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
23736
23924
|
"disabled",
|
|
23737
23925
|
"onChange"
|
|
23738
23926
|
]),
|
|
23739
|
-
createElementVNode("div", _hoisted_6$
|
|
23927
|
+
createElementVNode("div", _hoisted_6$22, [
|
|
23740
23928
|
createVNode(unref(button_default), mergeProps({ class: "word-field-icon-button" }, { ref_for: true }, { "aria-label": "编辑选项" }, { onClick: ($event) => edit(option) }), {
|
|
23741
23929
|
default: withCtx(() => [createVNode(FieldOptionIcon_default, {
|
|
23742
23930
|
name: "edit",
|
|
@@ -24580,9 +24768,9 @@ var _hoisted_2$34 = {
|
|
|
24580
24768
|
"aria-label": "内置填充"
|
|
24581
24769
|
};
|
|
24582
24770
|
var _hoisted_3$27 = { class: "word-autofill-heading" };
|
|
24583
|
-
var _hoisted_4$
|
|
24584
|
-
var _hoisted_5$
|
|
24585
|
-
var _hoisted_6$
|
|
24771
|
+
var _hoisted_4$24 = { class: "word-autofill-count" };
|
|
24772
|
+
var _hoisted_5$23 = { class: "word-autofill-built-in-table" };
|
|
24773
|
+
var _hoisted_6$21 = { class: "word-autofill-built-in-field" };
|
|
24586
24774
|
var _hoisted_7$17 = ["title"];
|
|
24587
24775
|
var _hoisted_8$12 = ["title"];
|
|
24588
24776
|
var _hoisted_9$9 = { class: "word-autofill-built-in-field" };
|
|
@@ -24717,7 +24905,7 @@ var FieldAutofillDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
24717
24905
|
"aria-label": __props.title,
|
|
24718
24906
|
class: normalizeClass(["word-autofill-dialog", { "word-signature-autofill": __props.signature }])
|
|
24719
24907
|
}, [
|
|
24720
|
-
__props.presets.length ? (openBlock(), createElementBlock("section", _hoisted_2$34, [createElementVNode("div", _hoisted_3$27, [createElementVNode("span", null, [_cache[1] || (_cache[1] = createTextVNode("内置填充 ", -1)), createElementVNode("span", _hoisted_4$
|
|
24908
|
+
__props.presets.length ? (openBlock(), createElementBlock("section", _hoisted_2$34, [createElementVNode("div", _hoisted_3$27, [createElementVNode("span", null, [_cache[1] || (_cache[1] = createTextVNode("内置填充 ", -1)), createElementVNode("span", _hoisted_4$24, toDisplayString(__props.presets.length), 1)]), _cache[2] || (_cache[2] = createElementVNode("span", { class: "word-autofill-note" }, "业务表预置 · 只读", -1))]), createElementVNode("div", _hoisted_5$23, [_cache[4] || (_cache[4] = createElementVNode("div", { class: "word-autofill-built-in-heading" }, [
|
|
24721
24909
|
createElementVNode("span", null, "取值来源"),
|
|
24722
24910
|
createElementVNode("span"),
|
|
24723
24911
|
createElementVNode("span", null, "目标字段")
|
|
@@ -24726,7 +24914,7 @@ var FieldAutofillDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
24726
24914
|
key: preset.target,
|
|
24727
24915
|
class: "word-autofill-built-in-row"
|
|
24728
24916
|
}, [
|
|
24729
|
-
createElementVNode("div", _hoisted_6$
|
|
24917
|
+
createElementVNode("div", _hoisted_6$21, [createElementVNode("span", { title: preset.sourceLabel }, toDisplayString(preset.sourceLabel), 9, _hoisted_7$17), createElementVNode("span", { title: preset.source }, toDisplayString(preset.source), 9, _hoisted_8$12)]),
|
|
24730
24918
|
_cache[3] || (_cache[3] = createElementVNode("span", {
|
|
24731
24919
|
class: "word-autofill-arrow",
|
|
24732
24920
|
"aria-hidden": "true"
|
|
@@ -24970,12 +25158,12 @@ var _hoisted_3$26 = {
|
|
|
24970
25158
|
class: "word-field-feedback",
|
|
24971
25159
|
role: "status"
|
|
24972
25160
|
};
|
|
24973
|
-
var _hoisted_4$
|
|
25161
|
+
var _hoisted_4$23 = {
|
|
24974
25162
|
key: 3,
|
|
24975
25163
|
class: "word-field-feedback",
|
|
24976
25164
|
role: "alert"
|
|
24977
25165
|
};
|
|
24978
|
-
var _hoisted_5$
|
|
25166
|
+
var _hoisted_5$22 = { class: "word-field-toggle" };
|
|
24979
25167
|
// src/adapters/vue/field-properties/FieldRelationSettings.vue
|
|
24980
25168
|
var FieldRelationSettings_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
24981
25169
|
__name: "FieldRelationSettings",
|
|
@@ -25017,8 +25205,8 @@ var FieldRelationSettings_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
|
|
|
25017
25205
|
}
|
|
25018
25206
|
}, { immediate: true });
|
|
25019
25207
|
const defaults = computed(() => {
|
|
25020
|
-
const { fieldLink
|
|
25021
|
-
return wordReferenceDefaults(policy.value.type, fieldLink, refModel.value,
|
|
25208
|
+
const { fieldLink } = props.state.binding.source;
|
|
25209
|
+
return wordReferenceDefaults(policy.value.type, fieldLink, refModel.value, props.state.regionVariant?.replace(/^edhr:/, ""));
|
|
25022
25210
|
});
|
|
25023
25211
|
const display = computed(() => {
|
|
25024
25212
|
const fields = config.value.displayFields ?? defaults.value.displayFields ?? [];
|
|
@@ -25222,7 +25410,7 @@ var FieldRelationSettings_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
|
|
|
25222
25410
|
}),
|
|
25223
25411
|
failed.value ? (openBlock(), createElementBlock("p", _hoisted_3$26, "关联模型字段加载失败")) : createCommentVNode("", true)
|
|
25224
25412
|
], 64)) : createCommentVNode("", true),
|
|
25225
|
-
displayError.value ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
25413
|
+
displayError.value ? (openBlock(), createElementBlock("p", _hoisted_4$23, toDisplayString(displayError.value), 1)) : createCommentVNode("", true),
|
|
25226
25414
|
policy.value.relationAutofill ? (openBlock(), createBlock(FieldAutofill_default, {
|
|
25227
25415
|
key: 4,
|
|
25228
25416
|
state: __props.state,
|
|
@@ -25240,7 +25428,7 @@ var FieldRelationSettings_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
|
|
|
25240
25428
|
"execute"
|
|
25241
25429
|
])) : createCommentVNode("", true),
|
|
25242
25430
|
policy.value.deviceFilter ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [createVNode(unref(form_item_default), { label: "级联数据过滤" }, {
|
|
25243
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_5$
|
|
25431
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_5$22, [createVNode(unref(switch_default), {
|
|
25244
25432
|
size: "small",
|
|
25245
25433
|
"model-value": config.value.deviceFilter?.enabled === true,
|
|
25246
25434
|
disabled: !__props.state.editable,
|
|
@@ -25309,7 +25497,7 @@ var FieldRelationSettings_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
|
|
|
25309
25497
|
], 64);
|
|
25310
25498
|
};
|
|
25311
25499
|
}
|
|
25312
|
-
}), [["__scopeId", "data-v-
|
|
25500
|
+
}), [["__scopeId", "data-v-7fd5f69c"]]);
|
|
25313
25501
|
// src/adapters/vue/field-properties/FieldResourceSettings.vue?vue&type=script&setup=true&lang.ts
|
|
25314
25502
|
var _hoisted_1$43 = {
|
|
25315
25503
|
key: 0,
|
|
@@ -26064,12 +26252,12 @@ var _hoisted_3$24 = {
|
|
|
26064
26252
|
class: "common-regex-panel-error",
|
|
26065
26253
|
role: "alert"
|
|
26066
26254
|
};
|
|
26067
|
-
var _hoisted_4$
|
|
26255
|
+
var _hoisted_4$22 = {
|
|
26068
26256
|
key: 1,
|
|
26069
26257
|
class: "common-regex-panel-list"
|
|
26070
26258
|
};
|
|
26071
|
-
var _hoisted_5$
|
|
26072
|
-
var _hoisted_6$
|
|
26259
|
+
var _hoisted_5$21 = { class: "common-regex-panel-item-main" };
|
|
26260
|
+
var _hoisted_6$20 = ["title"];
|
|
26073
26261
|
var _hoisted_7$16 = ["title"];
|
|
26074
26262
|
var _hoisted_8$11 = { class: "common-regex-panel-item-actions" };
|
|
26075
26263
|
var _hoisted_9$8 = ["onClick"];
|
|
@@ -26220,14 +26408,14 @@ var FieldCommonRegex_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
26220
26408
|
type: "button",
|
|
26221
26409
|
onClick: _cache[1] || (_cache[1] = ($event) => emit("refresh"))
|
|
26222
26410
|
}, " 重试 ")) : createCommentVNode("", true)])) : createCommentVNode("", true),
|
|
26223
|
-
__props.list.length ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
26411
|
+
__props.list.length ? (openBlock(), createElementBlock("div", _hoisted_4$22, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.list, (item) => {
|
|
26224
26412
|
return openBlock(), createElementBlock("div", {
|
|
26225
26413
|
key: item.id,
|
|
26226
26414
|
class: "common-regex-panel-item"
|
|
26227
|
-
}, [createElementVNode("div", _hoisted_5$
|
|
26415
|
+
}, [createElementVNode("div", _hoisted_5$21, [createElementVNode("div", {
|
|
26228
26416
|
class: "common-regex-panel-item-name",
|
|
26229
26417
|
title: item.name
|
|
26230
|
-
}, toDisplayString(item.name), 9, _hoisted_6$
|
|
26418
|
+
}, toDisplayString(item.name), 9, _hoisted_6$20), createElementVNode("div", {
|
|
26231
26419
|
class: "common-regex-panel-item-value",
|
|
26232
26420
|
title: item.value
|
|
26233
26421
|
}, toDisplayString(item.value), 9, _hoisted_7$16)]), createElementVNode("div", _hoisted_8$11, [
|
|
@@ -26374,16 +26562,16 @@ var FieldCommonRegex_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
26374
26562
|
var _hoisted_1$37 = { class: "regex-editor-modal" };
|
|
26375
26563
|
var _hoisted_2$30 = { class: "regex-editor-modal-regex-row" };
|
|
26376
26564
|
var _hoisted_3$23 = { class: "regex-editor-modal-regex-main" };
|
|
26377
|
-
var _hoisted_4$
|
|
26565
|
+
var _hoisted_4$21 = {
|
|
26378
26566
|
key: 0,
|
|
26379
26567
|
class: "regex-editor-error",
|
|
26380
26568
|
role: "alert"
|
|
26381
26569
|
};
|
|
26382
|
-
var _hoisted_5$
|
|
26570
|
+
var _hoisted_5$20 = {
|
|
26383
26571
|
key: 1,
|
|
26384
26572
|
class: "regex-editor-modal-tags"
|
|
26385
26573
|
};
|
|
26386
|
-
var _hoisted_6$
|
|
26574
|
+
var _hoisted_6$19 = ["onClick"];
|
|
26387
26575
|
var _hoisted_7$15 = ["aria-expanded"];
|
|
26388
26576
|
var _hoisted_8$10 = {
|
|
26389
26577
|
key: 0,
|
|
@@ -26492,8 +26680,8 @@ var FieldRegexEditor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
26492
26680
|
"readonly",
|
|
26493
26681
|
"status"
|
|
26494
26682
|
]),
|
|
26495
|
-
errors.regex ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
26496
|
-
!__props.readonly && presets.value.length ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
26683
|
+
errors.regex ? (openBlock(), createElementBlock("div", _hoisted_4$21, toDisplayString(errors.regex), 1)) : createCommentVNode("", true),
|
|
26684
|
+
!__props.readonly && presets.value.length ? (openBlock(), createElementBlock("div", _hoisted_5$20, [(openBlock(true), createElementBlock(Fragment, null, renderList(presets.value, (item) => {
|
|
26497
26685
|
return openBlock(), createBlock(unref(tooltip_default), {
|
|
26498
26686
|
key: item.id,
|
|
26499
26687
|
theme: "eform-tooltip-dark",
|
|
@@ -26506,7 +26694,7 @@ var FieldRegexEditor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
26506
26694
|
type: "button",
|
|
26507
26695
|
class: "regex-tag",
|
|
26508
26696
|
onClick: ($event) => fillRegex(item)
|
|
26509
|
-
}, toDisplayString(item.name.length > 12 ? item.name.slice(0, 12) + "..." : item.name), 9, _hoisted_6$
|
|
26697
|
+
}, toDisplayString(item.name.length > 12 ? item.name.slice(0, 12) + "..." : item.name), 9, _hoisted_6$19)]),
|
|
26510
26698
|
_: 2
|
|
26511
26699
|
}, 1032, ["disabled"]);
|
|
26512
26700
|
}), 128))])) : createCommentVNode("", true)
|
|
@@ -26707,12 +26895,12 @@ var _hoisted_3$22 = {
|
|
|
26707
26895
|
viewBox: "0 0 14 14",
|
|
26708
26896
|
"aria-hidden": "true"
|
|
26709
26897
|
};
|
|
26710
|
-
var _hoisted_4$
|
|
26898
|
+
var _hoisted_4$20 = {
|
|
26711
26899
|
role: "tablist",
|
|
26712
26900
|
"aria-label": "字段设置",
|
|
26713
26901
|
class: "word-field-tabs"
|
|
26714
26902
|
};
|
|
26715
|
-
var _hoisted_5$
|
|
26903
|
+
var _hoisted_5$19 = [
|
|
26716
26904
|
"id",
|
|
26717
26905
|
"aria-selected",
|
|
26718
26906
|
"aria-controls",
|
|
@@ -26720,7 +26908,7 @@ var _hoisted_5$20 = [
|
|
|
26720
26908
|
"onClick",
|
|
26721
26909
|
"onKeydown"
|
|
26722
26910
|
];
|
|
26723
|
-
var _hoisted_6$
|
|
26911
|
+
var _hoisted_6$18 = ["role"];
|
|
26724
26912
|
var _hoisted_7$14 = ["id", "aria-labelledby"];
|
|
26725
26913
|
var _hoisted_8$9 = { class: "word-field-properties-body" };
|
|
26726
26914
|
var _hoisted_9$7 = { class: "word-field-inline" };
|
|
@@ -27070,7 +27258,7 @@ var WordFieldProperties_default = /* @__PURE__ */ defineComponent({
|
|
|
27070
27258
|
}), 128))])]),
|
|
27071
27259
|
_: 1
|
|
27072
27260
|
}),
|
|
27073
|
-
createElementVNode("div", _hoisted_4$
|
|
27261
|
+
createElementVNode("div", _hoisted_4$20, [(openBlock(), createElementBlock(Fragment, null, renderList(tabs, (tab) => {
|
|
27074
27262
|
return createElementVNode("button", {
|
|
27075
27263
|
id: `${unref(tabId)}-${tab.key}`,
|
|
27076
27264
|
key: tab.key,
|
|
@@ -27081,13 +27269,13 @@ var WordFieldProperties_default = /* @__PURE__ */ defineComponent({
|
|
|
27081
27269
|
tabindex: active.value === tab.key ? 0 : -1,
|
|
27082
27270
|
onClick: ($event) => active.value = tab.key,
|
|
27083
27271
|
onKeydown: ($event) => navigate($event, tab.key)
|
|
27084
|
-
}, toDisplayString(tab.label), 41, _hoisted_5$
|
|
27272
|
+
}, toDisplayString(tab.label), 41, _hoisted_5$19);
|
|
27085
27273
|
}), 64))]),
|
|
27086
27274
|
message.value ? (openBlock(), createElementBlock("p", {
|
|
27087
27275
|
key: 1,
|
|
27088
27276
|
class: "word-field-feedback",
|
|
27089
27277
|
role: error.value ? "alert" : "status"
|
|
27090
|
-
}, toDisplayString(message.value), 9, _hoisted_6$
|
|
27278
|
+
}, toDisplayString(message.value), 9, _hoisted_6$18)) : createCommentVNode("", true),
|
|
27091
27279
|
withDirectives(createElementVNode("div", {
|
|
27092
27280
|
id: `${unref(tabId)}-config-content`,
|
|
27093
27281
|
role: "tabpanel",
|
|
@@ -27652,9 +27840,9 @@ var _hoisted_3$21 = {
|
|
|
27652
27840
|
key: 0,
|
|
27653
27841
|
class: "word-widget-drop-field"
|
|
27654
27842
|
};
|
|
27655
|
-
var _hoisted_4$
|
|
27656
|
-
var _hoisted_5$
|
|
27657
|
-
var _hoisted_6$
|
|
27843
|
+
var _hoisted_4$19 = { class: "word-widget-drop-content" };
|
|
27844
|
+
var _hoisted_5$18 = ["title"];
|
|
27845
|
+
var _hoisted_6$17 = ["disabled"];
|
|
27658
27846
|
var _hoisted_7$13 = {
|
|
27659
27847
|
key: 1,
|
|
27660
27848
|
class: "word-widget-drop-placeholder"
|
|
@@ -27685,13 +27873,13 @@ var WidgetFieldDrop_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
27685
27873
|
ref: target,
|
|
27686
27874
|
class: "word-widget-drop",
|
|
27687
27875
|
"aria-label": __props.placeholder
|
|
27688
|
-
}, [__props.field ? (openBlock(), createElementBlock("div", _hoisted_3$21, [createElementVNode("div", _hoisted_4$
|
|
27876
|
+
}, [__props.field ? (openBlock(), createElementBlock("div", _hoisted_3$21, [createElementVNode("div", _hoisted_4$19, [icon.value ? (openBlock(), createBlock(unref(icon_default), {
|
|
27689
27877
|
key: 0,
|
|
27690
27878
|
icon: icon.value,
|
|
27691
27879
|
font: "iconfont",
|
|
27692
27880
|
color: "#026ac8",
|
|
27693
27881
|
size: "16"
|
|
27694
|
-
}, null, 8, ["icon"])) : createCommentVNode("", true), createElementVNode("span", { title: __props.field.label }, toDisplayString(__props.field.label), 9, _hoisted_5$
|
|
27882
|
+
}, null, 8, ["icon"])) : createCommentVNode("", true), createElementVNode("span", { title: __props.field.label }, toDisplayString(__props.field.label), 9, _hoisted_5$18)]), createElementVNode("button", {
|
|
27695
27883
|
type: "button",
|
|
27696
27884
|
disabled: __props.disabled,
|
|
27697
27885
|
"aria-label": "取消绑定字段",
|
|
@@ -27701,7 +27889,7 @@ var WidgetFieldDrop_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
27701
27889
|
font: "iconfont",
|
|
27702
27890
|
color: "currentColor",
|
|
27703
27891
|
size: "14"
|
|
27704
|
-
})], 8, _hoisted_6$
|
|
27892
|
+
})], 8, _hoisted_6$17)])) : (openBlock(), createElementBlock("div", _hoisted_7$13, toDisplayString(__props.placeholder), 1))], 8, _hoisted_2$27)]);
|
|
27705
27893
|
};
|
|
27706
27894
|
}
|
|
27707
27895
|
}), [["__scopeId", "data-v-e784521c"]]);
|
|
@@ -27712,9 +27900,9 @@ var _hoisted_1$33 = {
|
|
|
27712
27900
|
};
|
|
27713
27901
|
var _hoisted_2$26 = ["src", "alt"];
|
|
27714
27902
|
var _hoisted_3$20 = { key: 1 };
|
|
27715
|
-
var _hoisted_4$
|
|
27716
|
-
var _hoisted_5$
|
|
27717
|
-
var _hoisted_6$
|
|
27903
|
+
var _hoisted_4$18 = { class: "word-widget-image-actions" };
|
|
27904
|
+
var _hoisted_5$17 = ["disabled"];
|
|
27905
|
+
var _hoisted_6$16 = ["disabled"];
|
|
27718
27906
|
var _hoisted_7$12 = ["disabled"];
|
|
27719
27907
|
var _hoisted_8$8 = {
|
|
27720
27908
|
key: 2,
|
|
@@ -27787,7 +27975,7 @@ var WidgetImageUpload_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
27787
27975
|
key: 0,
|
|
27788
27976
|
src: url.value,
|
|
27789
27977
|
alt: __props.asset.name || "图片预览"
|
|
27790
|
-
}, null, 8, _hoisted_2$26)) : (openBlock(), createElementBlock("span", _hoisted_3$20, toDisplayString(__props.asset.name || "已上传图片"), 1)), createElementVNode("div", _hoisted_4$
|
|
27978
|
+
}, null, 8, _hoisted_2$26)) : (openBlock(), createElementBlock("span", _hoisted_3$20, toDisplayString(__props.asset.name || "已上传图片"), 1)), createElementVNode("div", _hoisted_4$18, [
|
|
27791
27979
|
url.value ? (openBlock(), createElementBlock("button", {
|
|
27792
27980
|
key: 0,
|
|
27793
27981
|
type: "button",
|
|
@@ -27812,7 +28000,7 @@ var WidgetImageUpload_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
27812
28000
|
font: "iconfont",
|
|
27813
28001
|
color: "currentColor",
|
|
27814
28002
|
size: 20
|
|
27815
|
-
})], 8, _hoisted_5$
|
|
28003
|
+
})], 8, _hoisted_5$17)) : createCommentVNode("", true),
|
|
27816
28004
|
!__props.disabled ? (openBlock(), createElementBlock("button", {
|
|
27817
28005
|
key: 2,
|
|
27818
28006
|
type: "button",
|
|
@@ -27825,7 +28013,7 @@ var WidgetImageUpload_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
27825
28013
|
font: "iconfont",
|
|
27826
28014
|
color: "currentColor",
|
|
27827
28015
|
size: 20
|
|
27828
|
-
})], 8, _hoisted_6$
|
|
28016
|
+
})], 8, _hoisted_6$16)) : createCommentVNode("", true)
|
|
27829
28017
|
])])) : (openBlock(), createElementBlock("button", {
|
|
27830
28018
|
key: 1,
|
|
27831
28019
|
type: "button",
|
|
@@ -28207,9 +28395,9 @@ var _hoisted_2$24 = [
|
|
|
28207
28395
|
"onClick"
|
|
28208
28396
|
];
|
|
28209
28397
|
var _hoisted_3$19 = { class: "word-widget-line-style" };
|
|
28210
|
-
var _hoisted_4$
|
|
28211
|
-
var _hoisted_5$
|
|
28212
|
-
var _hoisted_6$
|
|
28398
|
+
var _hoisted_4$17 = { class: "word-widget-subcontrol" };
|
|
28399
|
+
var _hoisted_5$16 = { class: "word-widget-switch" };
|
|
28400
|
+
var _hoisted_6$15 = {
|
|
28213
28401
|
key: 0,
|
|
28214
28402
|
class: "word-field-feedback",
|
|
28215
28403
|
role: "status"
|
|
@@ -28741,7 +28929,7 @@ var WordPageWidgetProperties_default = /*#__PURE__*/ _plugin_vue_export_helper_d
|
|
|
28741
28929
|
"model-value",
|
|
28742
28930
|
"options",
|
|
28743
28931
|
"disabled"
|
|
28744
|
-
]), createElementVNode("div", _hoisted_4$
|
|
28932
|
+
]), createElementVNode("div", _hoisted_4$17, [state.value.config.content?.kind === "field" ? (openBlock(), createBlock(WidgetFieldDrop_default, {
|
|
28745
28933
|
key: 0,
|
|
28746
28934
|
disabled: disabled.value,
|
|
28747
28935
|
"bind-field-drop": __props.bindFieldDrop,
|
|
@@ -28815,7 +29003,7 @@ var WordPageWidgetProperties_default = /*#__PURE__*/ _plugin_vue_export_helper_d
|
|
|
28815
29003
|
_: 1
|
|
28816
29004
|
}),
|
|
28817
29005
|
createVNode(unref(form_item_default), { label: "显示条码内容" }, {
|
|
28818
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_5$
|
|
29006
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_5$16, [createVNode(unref(switch_default), mergeProps({ "aria-label": "显示条码内容" }, {
|
|
28819
29007
|
"model-value": state.value.config.showValue ?? true,
|
|
28820
29008
|
disabled: disabled.value,
|
|
28821
29009
|
size: "small",
|
|
@@ -28852,7 +29040,7 @@ var WordPageWidgetProperties_default = /*#__PURE__*/ _plugin_vue_export_helper_d
|
|
|
28852
29040
|
"asset",
|
|
28853
29041
|
"disabled",
|
|
28854
29042
|
"loading"
|
|
28855
|
-
]), !__props.uploadImage ? (openBlock(), createElementBlock("p", _hoisted_6$
|
|
29043
|
+
]), !__props.uploadImage ? (openBlock(), createElementBlock("p", _hoisted_6$15, " 当前应用未接入图片上传服务 ")) : createCommentVNode("", true)]),
|
|
28856
29044
|
_: 1
|
|
28857
29045
|
}),
|
|
28858
29046
|
createVNode(unref(radio_group_default), {
|
|
@@ -29192,15 +29380,15 @@ var _hoisted_3$18 = {
|
|
|
29192
29380
|
key: 0,
|
|
29193
29381
|
class: "word-material-nested"
|
|
29194
29382
|
};
|
|
29195
|
-
var _hoisted_4$
|
|
29383
|
+
var _hoisted_4$16 = {
|
|
29196
29384
|
key: 0,
|
|
29197
29385
|
class: "word-material-row"
|
|
29198
29386
|
};
|
|
29199
|
-
var _hoisted_5$
|
|
29387
|
+
var _hoisted_5$15 = {
|
|
29200
29388
|
key: 2,
|
|
29201
29389
|
class: "word-material-nested"
|
|
29202
29390
|
};
|
|
29203
|
-
var _hoisted_6$
|
|
29391
|
+
var _hoisted_6$14 = {
|
|
29204
29392
|
key: 3,
|
|
29205
29393
|
class: "word-material-nested"
|
|
29206
29394
|
};
|
|
@@ -29461,7 +29649,7 @@ var MaterialBomEntryDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_def
|
|
|
29461
29649
|
onChange: setQuantityRule
|
|
29462
29650
|
}, null, 8, ["model-value"])]),
|
|
29463
29651
|
_: 1
|
|
29464
|
-
}), quantityPolicy.operator === "bounds" ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
29652
|
+
}), quantityPolicy.operator === "bounds" ? (openBlock(), createElementBlock("div", _hoisted_4$16, [(openBlock(), createElementBlock(Fragment, null, renderList(bounds, (bound) => {
|
|
29465
29653
|
return createVNode(unref(form_item_default), {
|
|
29466
29654
|
key: bound.key,
|
|
29467
29655
|
label: bound.label,
|
|
@@ -29502,7 +29690,7 @@ var MaterialBomEntryDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_def
|
|
|
29502
29690
|
}, 16, ["model-value"])]),
|
|
29503
29691
|
_: 1
|
|
29504
29692
|
})) : createCommentVNode("", true),
|
|
29505
|
-
draft.loading === "by_lot" && lotMixing.enabled ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
29693
|
+
draft.loading === "by_lot" && lotMixing.enabled ? (openBlock(), createElementBlock("div", _hoisted_5$15, [createVNode(unref(form_item_default), {
|
|
29506
29694
|
label: "可混批次数",
|
|
29507
29695
|
required: "",
|
|
29508
29696
|
inline: false
|
|
@@ -29534,7 +29722,7 @@ var MaterialBomEntryDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_def
|
|
|
29534
29722
|
}, 16, ["model-value"])]),
|
|
29535
29723
|
_: 1
|
|
29536
29724
|
}),
|
|
29537
|
-
substitution.enabled ? (openBlock(), createElementBlock("section", _hoisted_6$
|
|
29725
|
+
substitution.enabled ? (openBlock(), createElementBlock("section", _hoisted_6$14, [
|
|
29538
29726
|
createVNode(unref(form_item_default), {
|
|
29539
29727
|
label: "替代策略",
|
|
29540
29728
|
inline: false
|
|
@@ -29665,9 +29853,9 @@ var _hoisted_3$17 = {
|
|
|
29665
29853
|
key: 1,
|
|
29666
29854
|
class: "word-bom-list"
|
|
29667
29855
|
};
|
|
29668
|
-
var _hoisted_4$
|
|
29669
|
-
var _hoisted_5$
|
|
29670
|
-
var _hoisted_6$
|
|
29856
|
+
var _hoisted_4$15 = ["onDrop"];
|
|
29857
|
+
var _hoisted_5$14 = ["onDragstart"];
|
|
29858
|
+
var _hoisted_6$13 = { class: "word-bom-material" };
|
|
29671
29859
|
var _hoisted_7$9 = ["title"];
|
|
29672
29860
|
var _hoisted_8$6 = ["title"];
|
|
29673
29861
|
var _hoisted_9$5 = ["onClick"];
|
|
@@ -30033,8 +30221,8 @@ var WordMaterialTableSettings_default = /*#__PURE__*/ _plugin_vue_export_helper_
|
|
|
30033
30221
|
draggable: "true",
|
|
30034
30222
|
onDragstart: ($event) => dragged.value = index,
|
|
30035
30223
|
onDragend: _cache[4] || (_cache[4] = ($event) => dragged.value = void 0)
|
|
30036
|
-
}, [createVNode(FieldOptionIcon_default, { name: "drag" })], 40, _hoisted_5$
|
|
30037
|
-
createElementVNode("div", _hoisted_6$
|
|
30224
|
+
}, [createVNode(FieldOptionIcon_default, { name: "drag" })], 40, _hoisted_5$14)) : createCommentVNode("", true),
|
|
30225
|
+
createElementVNode("div", _hoisted_6$13, [createElementVNode("span", { title: names.value[entry.productId ?? ""] || entry.productId || "未选择物料" }, toDisplayString(names.value[entry.productId ?? ""] || entry.productId || "未选择物料"), 9, _hoisted_7$9), createElementVNode("span", { title: "单位用量:" + (entry.quantity ?? "—") }, " 单位用量:" + toDisplayString(entry.quantity ?? "—"), 9, _hoisted_8$6)]),
|
|
30038
30226
|
__props.region.editable ? (openBlock(), createElementBlock("button", {
|
|
30039
30227
|
key: 1,
|
|
30040
30228
|
type: "button",
|
|
@@ -30075,7 +30263,7 @@ var WordMaterialTableSettings_default = /*#__PURE__*/ _plugin_vue_export_helper_
|
|
|
30075
30263
|
})])]),
|
|
30076
30264
|
_: 2
|
|
30077
30265
|
}, 1032, ["shown", "onUpdate:shown"])) : createCommentVNode("", true)
|
|
30078
|
-
], 40, _hoisted_4$
|
|
30266
|
+
], 40, _hoisted_4$15);
|
|
30079
30267
|
}), 128))])) : createCommentVNode("", true)]), createVNode(unref(form_item_default), { label: "按顺序投料" }, {
|
|
30080
30268
|
default: withCtx(() => [createVNode(unref(switch_default), {
|
|
30081
30269
|
size: "small",
|
|
@@ -30407,9 +30595,9 @@ var WordRepeatingTableSettings_default = /*#__PURE__*/ _plugin_vue_export_helper
|
|
|
30407
30595
|
var _hoisted_1$24 = { class: "word-region-section" };
|
|
30408
30596
|
var _hoisted_2$20 = { class: "word-region-section" };
|
|
30409
30597
|
var _hoisted_3$16 = { class: "word-region-section word-region-group" };
|
|
30410
|
-
var _hoisted_4$
|
|
30411
|
-
var _hoisted_5$
|
|
30412
|
-
var _hoisted_6$
|
|
30598
|
+
var _hoisted_4$14 = { class: "word-region-section" };
|
|
30599
|
+
var _hoisted_5$13 = { class: "word-region-section" };
|
|
30600
|
+
var _hoisted_6$12 = { class: "word-region-section" };
|
|
30413
30601
|
// src/adapters/vue/region-properties/WordBusinessRegion.vue
|
|
30414
30602
|
var WordBusinessRegion_default = /* @__PURE__ */ defineComponent({
|
|
30415
30603
|
__name: "WordBusinessRegion",
|
|
@@ -30730,7 +30918,7 @@ var WordBusinessRegion_default = /* @__PURE__ */ defineComponent({
|
|
|
30730
30918
|
class: "word-page-section",
|
|
30731
30919
|
title: "二维表配置"
|
|
30732
30920
|
}, {
|
|
30733
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_4$
|
|
30921
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_4$14, [createVNode(WordRegionConfirmDelete_default, {
|
|
30734
30922
|
region: __props.region,
|
|
30735
30923
|
update: __props.update
|
|
30736
30924
|
}, null, 8, ["region", "update"])])]),
|
|
@@ -30741,7 +30929,7 @@ var WordBusinessRegion_default = /* @__PURE__ */ defineComponent({
|
|
|
30741
30929
|
class: "word-page-section",
|
|
30742
30930
|
title: "固定表配置"
|
|
30743
30931
|
}, {
|
|
30744
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_5$
|
|
30932
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_5$13, [deviceType.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(unref(form_item_default), {
|
|
30745
30933
|
label: "主表字段绑定",
|
|
30746
30934
|
inline: false
|
|
30747
30935
|
}, {
|
|
@@ -30834,7 +31022,7 @@ var WordBusinessRegion_default = /* @__PURE__ */ defineComponent({
|
|
|
30834
31022
|
class: "word-page-section",
|
|
30835
31023
|
title: "数据锁定配置"
|
|
30836
31024
|
}, {
|
|
30837
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_6$
|
|
31025
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_6$12, [createVNode(WordDataLockConfig_default, {
|
|
30838
31026
|
region: __props.region,
|
|
30839
31027
|
fields: dataLockFields.value,
|
|
30840
31028
|
update: __props.update,
|
|
@@ -30948,9 +31136,9 @@ var RuleFieldSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
30948
31136
|
var _hoisted_1$23 = { class: "word-decision-group" };
|
|
30949
31137
|
var _hoisted_2$19 = { class: "word-decision-toolbar" };
|
|
30950
31138
|
var _hoisted_3$15 = ["aria-expanded", "aria-label"];
|
|
30951
|
-
var _hoisted_4$
|
|
30952
|
-
var _hoisted_5$
|
|
30953
|
-
var _hoisted_6$
|
|
31139
|
+
var _hoisted_4$13 = { class: "word-decision-children" };
|
|
31140
|
+
var _hoisted_5$12 = { class: "word-decision-condition" };
|
|
31141
|
+
var _hoisted_6$11 = ["onClick"];
|
|
30954
31142
|
var _hoisted_7$8 = ["onClick"];
|
|
30955
31143
|
var _hoisted_8$5 = {
|
|
30956
31144
|
key: 0,
|
|
@@ -31188,7 +31376,7 @@ var DecisionRuleGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
31188
31376
|
default: withCtx(() => [..._cache[5] || (_cache[5] = [createTextVNode(" 删除分组 ", -1)])]),
|
|
31189
31377
|
_: 1
|
|
31190
31378
|
})) : createCommentVNode("", true)
|
|
31191
|
-
]), withDirectives(createElementVNode("div", _hoisted_4$
|
|
31379
|
+
]), withDirectives(createElementVNode("div", _hoisted_4$13, [
|
|
31192
31380
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.group.children, (node, index) => {
|
|
31193
31381
|
return openBlock(), createElementBlock("div", {
|
|
31194
31382
|
key: node.id,
|
|
@@ -31210,7 +31398,7 @@ var DecisionRuleGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
31210
31398
|
"depth",
|
|
31211
31399
|
"onRemove",
|
|
31212
31400
|
"onChange"
|
|
31213
|
-
])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createElementVNode("div", _hoisted_5$
|
|
31401
|
+
])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createElementVNode("div", _hoisted_5$12, [
|
|
31214
31402
|
createVNode(RuleFieldSelect_default, {
|
|
31215
31403
|
class: normalizeClass(["word-decision-left", { "is-error": __props.errors.has(node.id) && !node.left }]),
|
|
31216
31404
|
nodes: leftOptions(node),
|
|
@@ -31304,7 +31492,7 @@ var DecisionRuleGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
31304
31492
|
}, [createVNode(FieldOptionIcon_default, {
|
|
31305
31493
|
name: "remove",
|
|
31306
31494
|
size: 16
|
|
31307
|
-
})], 8, _hoisted_6$
|
|
31495
|
+
})], 8, _hoisted_6$11)) : createCommentVNode("", true),
|
|
31308
31496
|
createElementVNode("button", {
|
|
31309
31497
|
type: "button",
|
|
31310
31498
|
class: "word-decision-icon word-decision-add",
|
|
@@ -31456,13 +31644,13 @@ var _hoisted_1$21 = [
|
|
|
31456
31644
|
];
|
|
31457
31645
|
var _hoisted_2$17 = ["id", "onKeydown"];
|
|
31458
31646
|
var _hoisted_3$13 = { class: "word-notification-field-search" };
|
|
31459
|
-
var _hoisted_4$
|
|
31647
|
+
var _hoisted_4$12 = [
|
|
31460
31648
|
"aria-label",
|
|
31461
31649
|
"value",
|
|
31462
31650
|
"onInput"
|
|
31463
31651
|
];
|
|
31464
|
-
var _hoisted_5$
|
|
31465
|
-
var _hoisted_6$
|
|
31652
|
+
var _hoisted_5$11 = { class: "word-notification-field-options" };
|
|
31653
|
+
var _hoisted_6$10 = [
|
|
31466
31654
|
"aria-expanded",
|
|
31467
31655
|
"disabled",
|
|
31468
31656
|
"onClick"
|
|
@@ -31596,10 +31784,10 @@ var NotificationFieldPicker_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
31596
31784
|
"aria-label": path.value[index - 1] ? `搜索${path.value[index - 1]?.name}的字段` : "搜索字段",
|
|
31597
31785
|
value: queries.value[index] ?? "",
|
|
31598
31786
|
onInput: ($event) => search(index, $event)
|
|
31599
|
-
}, null, 40, _hoisted_4$
|
|
31787
|
+
}, null, 40, _hoisted_4$12), _cache[1] || (_cache[1] = createElementVNode("span", {
|
|
31600
31788
|
class: "word-notification-field-search-icon",
|
|
31601
31789
|
"aria-hidden": "true"
|
|
31602
|
-
}, null, -1))]), createElementVNode("div", _hoisted_5$
|
|
31790
|
+
}, null, -1))]), createElementVNode("div", _hoisted_5$11, [(openBlock(true), createElementBlock(Fragment, null, renderList(options, (field) => {
|
|
31603
31791
|
return openBlock(), createElementBlock("button", {
|
|
31604
31792
|
key: field.key,
|
|
31605
31793
|
type: "button",
|
|
@@ -31607,7 +31795,7 @@ var NotificationFieldPicker_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
31607
31795
|
"aria-expanded": field.linkedModelKey && index < 2 ? path.value[index]?.key === field.key && columns.value.length > index + 1 : void 0,
|
|
31608
31796
|
disabled: Boolean(field.linkedModelKey && index === 2),
|
|
31609
31797
|
onClick: ($event) => chooseField(field, index)
|
|
31610
|
-
}, [createElementVNode("span", { title: field.name }, toDisplayString(field.name), 9, _hoisted_7$7)], 10, _hoisted_6$
|
|
31798
|
+
}, [createElementVNode("span", { title: field.name }, toDisplayString(field.name), 9, _hoisted_7$7)], 10, _hoisted_6$10);
|
|
31611
31799
|
}), 128)), index === failedAt.value || index === 0 && __props.failed ? (openBlock(), createElementBlock("p", _hoisted_8$4, " 字段加载失败 ")) : index === loadingAt.value || index === 0 && __props.loading ? (openBlock(), createElementBlock("p", _hoisted_9$3, "加载中…")) : !options.length ? (openBlock(), createElementBlock("p", _hoisted_10$2, "暂无可选字段")) : createCommentVNode("", true)])]);
|
|
31612
31800
|
}), 128))], 40, _hoisted_2$17)]),
|
|
31613
31801
|
default: withCtx(() => [createElementVNode("button", {
|
|
@@ -31629,13 +31817,13 @@ var NotificationFieldPicker_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
31629
31817
|
var _hoisted_1$20 = { class: "word-rule-dialog word-notification-dialog" };
|
|
31630
31818
|
var _hoisted_2$16 = ["aria-expanded", "onClick"];
|
|
31631
31819
|
var _hoisted_3$12 = { class: "word-notification-time-panel" };
|
|
31632
|
-
var _hoisted_4$
|
|
31820
|
+
var _hoisted_4$11 = {
|
|
31633
31821
|
key: 0,
|
|
31634
31822
|
class: "word-rule-error",
|
|
31635
31823
|
role: "alert"
|
|
31636
31824
|
};
|
|
31637
|
-
var _hoisted_5$
|
|
31638
|
-
var _hoisted_6$
|
|
31825
|
+
var _hoisted_5$10 = ["onClick"];
|
|
31826
|
+
var _hoisted_6$9 = { class: "word-notification-content" };
|
|
31639
31827
|
var _hoisted_7$6 = {
|
|
31640
31828
|
class: "word-notification-channels",
|
|
31641
31829
|
role: "tablist",
|
|
@@ -31862,12 +32050,12 @@ var NotificationRuleDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_def
|
|
|
31862
32050
|
onClick: ($event) => setTimeOpen(Number(row.id), openTimeId.value !== row.id)
|
|
31863
32051
|
}, toDisplayString(row.time || "请选择通知时间"), 11, _hoisted_2$16)]),
|
|
31864
32052
|
_: 2
|
|
31865
|
-
}, 1032, ["shown", "onUpdate:shown"]), checked.value && !validTime(String(row.time)) ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
32053
|
+
}, 1032, ["shown", "onUpdate:shown"]), checked.value && !validTime(String(row.time)) ? (openBlock(), createElementBlock("p", _hoisted_4$11, " 请选择通知时间 ")) : createCommentVNode("", true)]),
|
|
31866
32054
|
"cell-operation": withCtx(({ row }) => [createElementVNode("button", {
|
|
31867
32055
|
type: "button",
|
|
31868
32056
|
class: "word-rule-link word-rule-delete",
|
|
31869
32057
|
onClick: ($event) => removeTime(Number(row.id))
|
|
31870
|
-
}, " 删除 ", 8, _hoisted_5$
|
|
32058
|
+
}, " 删除 ", 8, _hoisted_5$10)]),
|
|
31871
32059
|
_: 1
|
|
31872
32060
|
}, 8, ["rows", "get-row-key"])]),
|
|
31873
32061
|
_: 1
|
|
@@ -31892,7 +32080,7 @@ var NotificationRuleDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_def
|
|
|
31892
32080
|
inline: false,
|
|
31893
32081
|
"disable-spacing": ""
|
|
31894
32082
|
}, {
|
|
31895
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_6$
|
|
32083
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_6$9, [createElementVNode("div", _hoisted_7$6, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(channels), (channel, index) => {
|
|
31896
32084
|
return openBlock(), createElementBlock("button", {
|
|
31897
32085
|
key: channel,
|
|
31898
32086
|
type: "button",
|
|
@@ -31946,12 +32134,12 @@ var _hoisted_3$11 = {
|
|
|
31946
32134
|
class: "word-rule-error",
|
|
31947
32135
|
role: "alert"
|
|
31948
32136
|
};
|
|
31949
|
-
var _hoisted_4$
|
|
31950
|
-
var _hoisted_5$
|
|
32137
|
+
var _hoisted_4$10 = { class: "word-conversion-box" };
|
|
32138
|
+
var _hoisted_5$9 = {
|
|
31951
32139
|
key: 0,
|
|
31952
32140
|
class: "word-conversion-box"
|
|
31953
32141
|
};
|
|
31954
|
-
var _hoisted_6$
|
|
32142
|
+
var _hoisted_6$8 = {
|
|
31955
32143
|
class: "word-conversion-divider",
|
|
31956
32144
|
"aria-hidden": "true"
|
|
31957
32145
|
};
|
|
@@ -32142,8 +32330,8 @@ var UnitConversionDialog_default = /* @__PURE__ */ defineComponent({
|
|
|
32142
32330
|
])]),
|
|
32143
32331
|
_: 1
|
|
32144
32332
|
})]),
|
|
32145
|
-
createElementVNode("div", _hoisted_4$
|
|
32146
|
-
draft.mappings?.length ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
32333
|
+
createElementVNode("div", _hoisted_4$10, [_cache[0] || (_cache[0] = createElementVNode("div", null, "规则表达式", -1)), createElementVNode("div", { class: normalizeClass(["word-conversion-expression", { "is-placeholder": !draft.label && !draft.expression }]) }, toDisplayString(draft.label || draft.expression || "选择单位转换规则后自动带出"), 3)]),
|
|
32334
|
+
draft.mappings?.length ? (openBlock(), createElementBlock("div", _hoisted_5$9, [(openBlock(true), createElementBlock(Fragment, null, renderList(draft.mappings, (mapping) => {
|
|
32147
32335
|
return openBlock(), createElementBlock("div", {
|
|
32148
32336
|
key: mapping.kind === "unit" ? mapping.side : mapping.kind === "input" ? "input" : mapping.key,
|
|
32149
32337
|
class: "word-conversion-mapping"
|
|
@@ -32161,7 +32349,7 @@ var UnitConversionDialog_default = /* @__PURE__ */ defineComponent({
|
|
|
32161
32349
|
}, null, 8, ["model-value"])]),
|
|
32162
32350
|
_: 2
|
|
32163
32351
|
}, 1032, ["label"]),
|
|
32164
|
-
createElementVNode("span", _hoisted_6$
|
|
32352
|
+
createElementVNode("span", _hoisted_6$8, [createVNode(unref(icon_default), {
|
|
32165
32353
|
icon: "icon-lianjie",
|
|
32166
32354
|
font: "gct-iconfont",
|
|
32167
32355
|
size: "16",
|
|
@@ -32202,9 +32390,9 @@ var UnitConversionDialog_default = /* @__PURE__ */ defineComponent({
|
|
|
32202
32390
|
var _hoisted_1$18 = { class: "word-rule-properties" };
|
|
32203
32391
|
var _hoisted_2$14 = { class: "word-rule-section" };
|
|
32204
32392
|
var _hoisted_3$10 = { class: "word-rule-card-header" };
|
|
32205
|
-
var _hoisted_4$
|
|
32206
|
-
var _hoisted_5$
|
|
32207
|
-
var _hoisted_6$
|
|
32393
|
+
var _hoisted_4$9 = ["title"];
|
|
32394
|
+
var _hoisted_5$8 = ["disabled", "onClick"];
|
|
32395
|
+
var _hoisted_6$7 = { class: "word-rule-section" };
|
|
32208
32396
|
var _hoisted_7$4 = { class: "word-rule-row" };
|
|
32209
32397
|
var _hoisted_8$2 = { class: "word-rule-section" };
|
|
32210
32398
|
// src/adapters/vue/rule-properties/WordRuleProperties.vue
|
|
@@ -32377,7 +32565,7 @@ var WordRuleProperties_default = /* @__PURE__ */ defineComponent({
|
|
|
32377
32565
|
createElementVNode("div", _hoisted_3$10, [createElementVNode("span", {
|
|
32378
32566
|
class: "word-rule-card-name",
|
|
32379
32567
|
title: rule.label ?? void 0
|
|
32380
|
-
}, [_cache[1] || (_cache[1] = createElementVNode("span", { class: "word-rule-card-label" }, "规则:", -1)), createTextVNode(toDisplayString(rule.label || "—"), 1)], 8, _hoisted_4$
|
|
32568
|
+
}, [_cache[1] || (_cache[1] = createElementVNode("span", { class: "word-rule-card-label" }, "规则:", -1)), createTextVNode(toDisplayString(rule.label || "—"), 1)], 8, _hoisted_4$9), createElementVNode("button", {
|
|
32381
32569
|
type: "button",
|
|
32382
32570
|
class: "word-rule-card-remove",
|
|
32383
32571
|
"aria-label": "删除规则",
|
|
@@ -32387,7 +32575,7 @@ var WordRuleProperties_default = /* @__PURE__ */ defineComponent({
|
|
|
32387
32575
|
}, [createVNode(FieldOptionIcon_default, {
|
|
32388
32576
|
name: "remove",
|
|
32389
32577
|
size: 14
|
|
32390
|
-
})], 8, _hoisted_5$
|
|
32578
|
+
})], 8, _hoisted_5$8)]),
|
|
32391
32579
|
createElementVNode("div", null, [_cache[2] || (_cache[2] = createElementVNode("span", { class: "word-rule-card-label" }, "物料:", -1)), createTextVNode(toDisplayString(rule.productLabel || "—"), 1)]),
|
|
32392
32580
|
createVNode(unref(button_default), {
|
|
32393
32581
|
full: "",
|
|
@@ -32417,7 +32605,7 @@ var WordRuleProperties_default = /* @__PURE__ */ defineComponent({
|
|
|
32417
32605
|
class: "word-page-section",
|
|
32418
32606
|
title: "提前终止校验规则"
|
|
32419
32607
|
}, {
|
|
32420
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_6$
|
|
32608
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_6$7, [createElementVNode("div", _hoisted_7$4, [createVNode(FieldLabelHelp_default, { label: "提前终止校验规则" }, {
|
|
32421
32609
|
default: withCtx(() => [..._cache[5] || (_cache[5] = [createTextVNode(" 开启后,满足判定条件时允许跳过提交时的字段校验 ", -1)])]),
|
|
32422
32610
|
_: 1
|
|
32423
32611
|
}), createVNode(unref(switch_default), mergeProps({ "aria-label": "启用提前终止校验规则" }, {
|
|
@@ -32509,9 +32697,9 @@ var _hoisted_2$13 = {
|
|
|
32509
32697
|
class: "word-signature-table"
|
|
32510
32698
|
};
|
|
32511
32699
|
var _hoisted_3$9 = { class: "word-signature-rule word-signature-rule-head" };
|
|
32512
|
-
var _hoisted_4$
|
|
32513
|
-
var _hoisted_5$
|
|
32514
|
-
var _hoisted_6$
|
|
32700
|
+
var _hoisted_4$8 = { class: "word-signature-required" };
|
|
32701
|
+
var _hoisted_5$7 = ["onClick"];
|
|
32702
|
+
var _hoisted_6$6 = {
|
|
32515
32703
|
key: 2,
|
|
32516
32704
|
role: "alert"
|
|
32517
32705
|
};
|
|
@@ -32593,7 +32781,7 @@ var SignatureRulesDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
|
|
|
32593
32781
|
rows.value.length ? (openBlock(), createElementBlock("div", _hoisted_2$13, [createElementVNode("div", _hoisted_3$9, [
|
|
32594
32782
|
_cache[3] || (_cache[3] = createElementVNode("span", { class: "word-signature-required" }, "主签名", -1)),
|
|
32595
32783
|
_cache[4] || (_cache[4] = createElementVNode("span", null, null, -1)),
|
|
32596
|
-
createElementVNode("span", _hoisted_4$
|
|
32784
|
+
createElementVNode("span", _hoisted_4$8, [createVNode(FieldLabelHelp_default, { label: "制衡签名" }, {
|
|
32597
32785
|
default: withCtx(() => [..._cache[2] || (_cache[2] = [createTextVNode(" 主签名与制衡签名不能由同一人签署。同一子表内的签名按行比较,其他组合比较各自的全部签名。 ", -1)])]),
|
|
32598
32786
|
_: 1
|
|
32599
32787
|
})])
|
|
@@ -32643,10 +32831,10 @@ var SignatureRulesDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
|
|
|
32643
32831
|
viewBox: "0 0 1024 1024",
|
|
32644
32832
|
fill: "currentColor",
|
|
32645
32833
|
"aria-hidden": "true"
|
|
32646
|
-
}, [createElementVNode("path", { d: "M342.848 78.208A51.2 51.2 0 0 1 390.336 46.08h308.672a51.2 51.2 0 0 1 47.68 32.448l55.936 141.824h155.264c7.04 0 12.8 5.76 12.8 12.8v44.8a12.8 12.8 0 0 1-12.8 12.8h-62.784l-17.472 563.136a128 128 0 0 1-128 124.032H338.368a128 128 0 0 1-127.936-124.032l-17.472-563.136h-62.72a12.8 12.8 0 0 1-12.8-12.8v-44.8c0-7.04 5.696-12.8 12.8-12.8h155.392l57.28-142.144z m18.56 142.144h365.568l-40.96-103.872H403.2l-41.792 103.872z m462.72 70.4H263.936l11.264 554.048a64 64 0 0 0 64 62.72h409.728a64 64 0 0 0 64-62.72l11.328-554.048z m-387.84 479.04a12.8 12.8 0 0 1-12.8-12.8V441.216c0-7.04 5.76-12.8 12.8-12.8h44.8c7.04 0 12.8 5.76 12.8 12.8v315.776a12.8 12.8 0 0 1-12.8 12.8h-44.8z m170.624 0a12.8 12.8 0 0 1-12.8-12.8V441.216c0-7.04 5.76-12.8 12.8-12.8h44.8c7.104 0 12.8 5.76 12.8 12.8v315.776a12.8 12.8 0 0 1-12.8 12.8h-44.8z" })], -1)])], 8, _hoisted_5$
|
|
32834
|
+
}, [createElementVNode("path", { d: "M342.848 78.208A51.2 51.2 0 0 1 390.336 46.08h308.672a51.2 51.2 0 0 1 47.68 32.448l55.936 141.824h155.264c7.04 0 12.8 5.76 12.8 12.8v44.8a12.8 12.8 0 0 1-12.8 12.8h-62.784l-17.472 563.136a128 128 0 0 1-128 124.032H338.368a128 128 0 0 1-127.936-124.032l-17.472-563.136h-62.72a12.8 12.8 0 0 1-12.8-12.8v-44.8c0-7.04 5.696-12.8 12.8-12.8h155.392l57.28-142.144z m18.56 142.144h365.568l-40.96-103.872H403.2l-41.792 103.872z m462.72 70.4H263.936l11.264 554.048a64 64 0 0 0 64 62.72h409.728a64 64 0 0 0 64-62.72l11.328-554.048z m-387.84 479.04a12.8 12.8 0 0 1-12.8-12.8V441.216c0-7.04 5.76-12.8 12.8-12.8h44.8c7.04 0 12.8 5.76 12.8 12.8v315.776a12.8 12.8 0 0 1-12.8 12.8h-44.8z m170.624 0a12.8 12.8 0 0 1-12.8-12.8V441.216c0-7.04 5.76-12.8 12.8-12.8h44.8c7.104 0 12.8 5.76 12.8 12.8v315.776a12.8 12.8 0 0 1-12.8 12.8h-44.8z" })], -1)])], 8, _hoisted_5$7)) : createCommentVNode("", true)
|
|
32647
32835
|
]);
|
|
32648
32836
|
}), 128))])) : createCommentVNode("", true),
|
|
32649
|
-
invalid.value ? (openBlock(), createElementBlock("p", _hoisted_6$
|
|
32837
|
+
invalid.value ? (openBlock(), createElementBlock("p", _hoisted_6$6, "请选择主签名和至少一个制衡签名")) : createCommentVNode("", true)
|
|
32650
32838
|
]);
|
|
32651
32839
|
};
|
|
32652
32840
|
}
|
|
@@ -33050,15 +33238,8 @@ function renderDesignerPage(view, customPage, info) {
|
|
|
33050
33238
|
}
|
|
33051
33239
|
// src/adapters/vue/WordShortcutReference.vue?vue&type=script&setup=true&lang.ts
|
|
33052
33240
|
var _hoisted_1$15 = { class: "word-shortcut-reference" };
|
|
33053
|
-
var _hoisted_2$12 = { class: "shortcut-
|
|
33241
|
+
var _hoisted_2$12 = { class: "shortcut-groups" };
|
|
33054
33242
|
var _hoisted_3$8 = {
|
|
33055
|
-
class: "shortcut-platform",
|
|
33056
|
-
role: "group",
|
|
33057
|
-
"aria-label": "操作系统"
|
|
33058
|
-
};
|
|
33059
|
-
var _hoisted_4$8 = ["aria-pressed", "onClick"];
|
|
33060
|
-
var _hoisted_5$7 = { class: "shortcut-groups" };
|
|
33061
|
-
var _hoisted_6$6 = {
|
|
33062
33243
|
key: 0,
|
|
33063
33244
|
class: "shortcut-join"
|
|
33064
33245
|
};
|
|
@@ -33066,14 +33247,7 @@ var _hoisted_6$6 = {
|
|
|
33066
33247
|
var WordShortcutReference_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
33067
33248
|
__name: "WordShortcutReference",
|
|
33068
33249
|
setup(__props) {
|
|
33069
|
-
const
|
|
33070
|
-
value: "windows",
|
|
33071
|
-
label: "Windows"
|
|
33072
|
-
}, {
|
|
33073
|
-
value: "mac",
|
|
33074
|
-
label: "macOS"
|
|
33075
|
-
}];
|
|
33076
|
-
const platform = ref(typeof navigator !== "undefined" && /Mac/i.test(navigator.platform) ? "mac" : "windows");
|
|
33250
|
+
const platform = typeof navigator !== "undefined" && /Mac/i.test(navigator.platform || navigator.userAgent) ? "mac" : "windows";
|
|
33077
33251
|
/** 按画布输入适配器支持的编辑命令和指针手势列出。 */
|
|
33078
33252
|
const shortcuts = [
|
|
33079
33253
|
{
|
|
@@ -33086,7 +33260,7 @@ var WordShortcutReference_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
|
|
|
33086
33260
|
],
|
|
33087
33261
|
[
|
|
33088
33262
|
"重做",
|
|
33089
|
-
"Ctrl+
|
|
33263
|
+
"Ctrl+Shift+Z|Ctrl+Y",
|
|
33090
33264
|
"⌘+Shift+Z|⌘+Y"
|
|
33091
33265
|
],
|
|
33092
33266
|
[
|
|
@@ -33111,7 +33285,17 @@ var WordShortcutReference_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
|
|
|
33111
33285
|
"⌥+Delete / Fn Delete"
|
|
33112
33286
|
],
|
|
33113
33287
|
["新建段落", "Enter"],
|
|
33114
|
-
["段内换行", "Shift+Enter"]
|
|
33288
|
+
["段内换行", "Shift+Enter"],
|
|
33289
|
+
[
|
|
33290
|
+
"下一可填字段",
|
|
33291
|
+
"Ctrl+Enter",
|
|
33292
|
+
"⌘+Enter"
|
|
33293
|
+
],
|
|
33294
|
+
[
|
|
33295
|
+
"上一可填字段",
|
|
33296
|
+
"Ctrl+Shift+Enter",
|
|
33297
|
+
"⌘+Shift+Enter"
|
|
33298
|
+
]
|
|
33115
33299
|
]
|
|
33116
33300
|
},
|
|
33117
33301
|
{
|
|
@@ -33120,8 +33304,13 @@ var WordShortcutReference_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
|
|
|
33120
33304
|
["移动光标", "← / ↑ / ↓ / →"],
|
|
33121
33305
|
[
|
|
33122
33306
|
"按词移动",
|
|
33123
|
-
"Ctrl+← / →|Alt+← / →",
|
|
33124
|
-
"
|
|
33307
|
+
"Ctrl+← / →|Ctrl+Alt+Shift+← / →",
|
|
33308
|
+
"⌘+⌥+Shift+← / →"
|
|
33309
|
+
],
|
|
33310
|
+
[
|
|
33311
|
+
"逐行移动",
|
|
33312
|
+
"Ctrl+Alt+Shift+↑ / ↓",
|
|
33313
|
+
"⌘+⌥+Shift+↑ / ↓"
|
|
33125
33314
|
],
|
|
33126
33315
|
[
|
|
33127
33316
|
"行首 / 行尾",
|
|
@@ -33167,14 +33356,7 @@ var WordShortcutReference_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
|
|
|
33167
33356
|
}
|
|
33168
33357
|
];
|
|
33169
33358
|
return (_ctx, _cache) => {
|
|
33170
|
-
return openBlock(), createElementBlock("div", _hoisted_1$15, [createElementVNode("div",
|
|
33171
|
-
return createElementVNode("button", {
|
|
33172
|
-
key: option.value,
|
|
33173
|
-
type: "button",
|
|
33174
|
-
"aria-pressed": platform.value === option.value,
|
|
33175
|
-
onClick: ($event) => platform.value = option.value
|
|
33176
|
-
}, toDisplayString(option.label), 9, _hoisted_4$8);
|
|
33177
|
-
}), 64))]), _cache[0] || (_cache[0] = createElementVNode("span", { class: "shortcut-scope" }, "在画布内使用", -1))]), createElementVNode("div", _hoisted_5$7, [(openBlock(), createElementBlock(Fragment, null, renderList(shortcuts, (group) => {
|
|
33359
|
+
return openBlock(), createElementBlock("div", _hoisted_1$15, [_cache[0] || (_cache[0] = createElementVNode("div", { class: "shortcut-scope" }, "在画布内使用", -1)), createElementVNode("div", _hoisted_2$12, [(openBlock(), createElementBlock(Fragment, null, renderList(shortcuts, (group) => {
|
|
33178
33360
|
return createElementVNode("section", {
|
|
33179
33361
|
key: group.title,
|
|
33180
33362
|
class: "shortcut-group"
|
|
@@ -33182,19 +33364,19 @@ var WordShortcutReference_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
|
|
|
33182
33364
|
return openBlock(), createElementBlock("div", {
|
|
33183
33365
|
key: label,
|
|
33184
33366
|
class: "shortcut-row"
|
|
33185
|
-
}, [createElementVNode("dt", null, toDisplayString(label), 1), createElementVNode("dd", null, [(openBlock(true), createElementBlock(Fragment, null, renderList((platform
|
|
33367
|
+
}, [createElementVNode("dt", null, toDisplayString(label), 1), createElementVNode("dd", null, [(openBlock(true), createElementBlock(Fragment, null, renderList((unref(platform) === "mac" ? mac ?? windows : windows).split("|"), (sequence) => {
|
|
33186
33368
|
return openBlock(), createElementBlock("span", {
|
|
33187
33369
|
key: sequence,
|
|
33188
33370
|
class: "shortcut-combination"
|
|
33189
33371
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(sequence.split("+"), (key, index) => {
|
|
33190
|
-
return openBlock(), createElementBlock(Fragment, { key: index }, [index > 0 ? (openBlock(), createElementBlock("span",
|
|
33372
|
+
return openBlock(), createElementBlock(Fragment, { key: index }, [index > 0 ? (openBlock(), createElementBlock("span", _hoisted_3$8, "+")) : createCommentVNode("", true), createElementVNode("kbd", null, toDisplayString(key), 1)], 64);
|
|
33191
33373
|
}), 128))]);
|
|
33192
33374
|
}), 128))])]);
|
|
33193
33375
|
}), 128))])]);
|
|
33194
33376
|
}), 64))])]);
|
|
33195
33377
|
};
|
|
33196
33378
|
}
|
|
33197
|
-
}), [["__scopeId", "data-v-
|
|
33379
|
+
}), [["__scopeId", "data-v-ebfc7f4a"]]);
|
|
33198
33380
|
// src/adapters/vue/WordShortcutHelp.vue?vue&type=script&setup=true&lang.ts
|
|
33199
33381
|
var _hoisted_1$14 = { class: "word-shortcut-entry" };
|
|
33200
33382
|
var _hoisted_2$11 = ["aria-expanded"];
|
|
@@ -35180,6 +35362,204 @@ async function encodeGctWordTemplateBusiness(document, savedBoms, signal) {
|
|
|
35180
35362
|
editor.dispose();
|
|
35181
35363
|
}
|
|
35182
35364
|
}
|
|
35365
|
+
// src/adapters/platform/reference-policies.ts
|
|
35366
|
+
/** @file 固定业务关联的范围声明,列表查询和选择确认使用同一套规则。 */
|
|
35367
|
+
/** 业务字段已有固定来源,不要求模板另配普通关联的目标模型。 */
|
|
35368
|
+
function businessReferenceModel(source) {
|
|
35369
|
+
if (source.businessType === "device") return "em_device";
|
|
35370
|
+
if (["production_container", "inspection_container"].includes(source.businessType ?? source.fieldType) || isNamedLotBinding(source)) return "em_production_identification";
|
|
35371
|
+
}
|
|
35372
|
+
var lotTypes = /* @__PURE__ */ new Set([
|
|
35373
|
+
"material_no",
|
|
35374
|
+
"related_lot_no",
|
|
35375
|
+
"scrap_material_no",
|
|
35376
|
+
"material_container",
|
|
35377
|
+
"sterilization_container",
|
|
35378
|
+
"production_container",
|
|
35379
|
+
"inspection_container"
|
|
35380
|
+
]);
|
|
35381
|
+
var operatingTypes = /* @__PURE__ */ new Set([
|
|
35382
|
+
"warehouse",
|
|
35383
|
+
"target_warehouse",
|
|
35384
|
+
"location",
|
|
35385
|
+
"shopfloor"
|
|
35386
|
+
]);
|
|
35387
|
+
var lotSearch = [
|
|
35388
|
+
"name_.iLike",
|
|
35389
|
+
"related_parent_name_.iLike",
|
|
35390
|
+
"product_id_$code_.iLike",
|
|
35391
|
+
"product_id_$name_.iLike",
|
|
35392
|
+
"product_id_$spec_.iLike"
|
|
35393
|
+
];
|
|
35394
|
+
var productionKinds = ["LOT", "SN"];
|
|
35395
|
+
function referenceBusinessType(context) {
|
|
35396
|
+
return context.binding.source.businessType ?? context.binding.source.fieldType ?? "";
|
|
35397
|
+
}
|
|
35398
|
+
function lotSelection(context) {
|
|
35399
|
+
return lotTypes.has(referenceBusinessType(context));
|
|
35400
|
+
}
|
|
35401
|
+
/** 字段固有查询条件不保存为可被模板改写的用户筛选。 */
|
|
35402
|
+
function referencePolicyQuery(context, component) {
|
|
35403
|
+
const type = referenceBusinessType(context), filters = {}, conditions = [];
|
|
35404
|
+
const filter = (key, value) => {
|
|
35405
|
+
filters[key] = value;
|
|
35406
|
+
conditions.push(key);
|
|
35407
|
+
};
|
|
35408
|
+
if (operatingTypes.has(type)) filter("operating_state_", true);
|
|
35409
|
+
if (type === "routing_operation") filter("type_", "NODE_SPEC");
|
|
35410
|
+
if (type === "routing_operation" && typeof component.routingId === "string" && component.routingId) filter("ref_master_id_", component.routingId);
|
|
35411
|
+
if (lotTypes.has(type)) filter("container_role_.ne", "related_parent");
|
|
35412
|
+
if (type === "production_container" || type === "inspection_container") {
|
|
35413
|
+
if (type === "production_container") filter("production_identification_type_.in", productionKinds);
|
|
35414
|
+
else filter("production_identification_type_.eq", "INSPECTION_CONTAINER");
|
|
35415
|
+
filter("is_rework_", 0);
|
|
35416
|
+
} else if (type === "sterilization_container") filter("production_identification_type_", "STERILIZATION");
|
|
35417
|
+
else if (type === "material_container") {
|
|
35418
|
+
filters["production_identification_type_.eq"] = "MATERIAL";
|
|
35419
|
+
filters["production_identification_type_.isNull"] = null;
|
|
35420
|
+
conditions.push("OR(production_identification_type_.eq,production_identification_type_.isNull)");
|
|
35421
|
+
}
|
|
35422
|
+
return [filters, conditions];
|
|
35423
|
+
}
|
|
35424
|
+
/** 回读也拒绝明确失效的状态,不能只靠候选列表过滤。接口省略的投影仍由查询条件限定。 */
|
|
35425
|
+
function referencePolicyAccepts(context, record, component) {
|
|
35426
|
+
const type = referenceBusinessType(context), kind = record.production_identification_type_;
|
|
35427
|
+
if (type === "routing_operation" && record.type_ !== void 0 && record.type_ !== "NODE_SPEC") return false;
|
|
35428
|
+
if (operatingTypes.has(type) && (record.operating_state_ === false || record.operating_state_ === 0)) return false;
|
|
35429
|
+
if (type === "routing_operation" && component.routingId && record.ref_master_id_ !== void 0 && record.ref_master_id_ !== component.routingId) return false;
|
|
35430
|
+
if (lotTypes.has(type) && record.container_role_ === "related_parent") return false;
|
|
35431
|
+
if (type === "production_container" || type === "inspection_container") {
|
|
35432
|
+
if (record.is_rework_ === true || record.is_rework_ === 1) return false;
|
|
35433
|
+
if (kind !== void 0 && (type === "production_container" ? !productionKinds.includes(kind) : kind !== "INSPECTION_CONTAINER")) return false;
|
|
35434
|
+
}
|
|
35435
|
+
if (type === "material_container" && kind != null && kind !== "MATERIAL") return false;
|
|
35436
|
+
if (type === "sterilization_container" && kind !== void 0 && kind !== "STERILIZATION") return false;
|
|
35437
|
+
return true;
|
|
35438
|
+
}
|
|
35439
|
+
function referencePolicySearch(context) {
|
|
35440
|
+
const type = referenceBusinessType(context);
|
|
35441
|
+
if ([
|
|
35442
|
+
"routing_operation",
|
|
35443
|
+
"operation",
|
|
35444
|
+
"e_sop"
|
|
35445
|
+
].includes(type)) return ["name_.iLike"];
|
|
35446
|
+
if ([
|
|
35447
|
+
"scrap_group",
|
|
35448
|
+
"scrap_reason",
|
|
35449
|
+
"not_good_group",
|
|
35450
|
+
"not_good_reason",
|
|
35451
|
+
"warehouse",
|
|
35452
|
+
"target_warehouse",
|
|
35453
|
+
"location",
|
|
35454
|
+
"shopfloor"
|
|
35455
|
+
].includes(type)) return ["name_.iLike", "code_.iLike"];
|
|
35456
|
+
if (type === "production_container" || type === "inspection_container") return ["name_.iLike", "related_parent_name_.iLike"];
|
|
35457
|
+
if (type === "material_container") return [
|
|
35458
|
+
"name_.iLike",
|
|
35459
|
+
"product_id_code_.iLike",
|
|
35460
|
+
"product_id_name_.iLike",
|
|
35461
|
+
"spec_.iLike"
|
|
35462
|
+
];
|
|
35463
|
+
if (type === "sterilization_container") return ["name_.iLike"];
|
|
35464
|
+
if (lotTypes.has(type)) return lotSearch;
|
|
35465
|
+
}
|
|
35466
|
+
// src/adapters/platform/template-reference-migration.ts
|
|
35467
|
+
/** @file 在模板转换边界补齐关联声明,填报查询只消费完整的原生绑定。 */
|
|
35468
|
+
/** 旧绑定保留模型/字段链;目标查询只取明确的所属模型和字段,不能借用同名主表字段。 */
|
|
35469
|
+
function definition(source, metadata) {
|
|
35470
|
+
const modelKey = source.modelLink.split(".").at(-1), key = source.fieldLink.split(".").at(-1);
|
|
35471
|
+
return wordFieldDefinition({
|
|
35472
|
+
...metadata,
|
|
35473
|
+
key,
|
|
35474
|
+
type: metadata?.type ?? source.fieldType,
|
|
35475
|
+
bizType: metadata?.bizType ?? source.businessType
|
|
35476
|
+
}, metadata?.name ?? key, modelKey, source.subFieldKey ?? void 0);
|
|
35477
|
+
}
|
|
35478
|
+
/** 新转换和早期已保存的转换结果共用;配置完整的模板不请求模型,也不改写用户配置。 */
|
|
35479
|
+
async function completeGctWordTemplateReferences(document, signal) {
|
|
35480
|
+
signal.throwIfAborted();
|
|
35481
|
+
const missing = new Set(Object.entries(document.bindings).flatMap(([id, { source }]) => {
|
|
35482
|
+
if (source.refModelKey) return [];
|
|
35483
|
+
const field = definition(source);
|
|
35484
|
+
if (businessReferenceModel(source) && field?.binding.source.businessType === source.businessType) return [];
|
|
35485
|
+
return field?.widget === "relation" || field?.widget === "rdo-relation" ? [id] : [];
|
|
35486
|
+
}));
|
|
35487
|
+
if (!missing.size) return {
|
|
35488
|
+
document,
|
|
35489
|
+
changed: false
|
|
35490
|
+
};
|
|
35491
|
+
const editor = new ModelEditor(document, {
|
|
35492
|
+
historyLimit: 0,
|
|
35493
|
+
createId: createUuid$1
|
|
35494
|
+
});
|
|
35495
|
+
try {
|
|
35496
|
+
const fields = /* @__PURE__ */ new Map();
|
|
35497
|
+
for (const { id } of editor.query.findEntities({ roles: ["field"] })) {
|
|
35498
|
+
const field = editor.query.getEntity(id, "field");
|
|
35499
|
+
if (missing.has(field.bindingId) && (field.widget === "relation" || field.widget === "rdo-relation")) {
|
|
35500
|
+
const nodes = fields.get(field.bindingId) ?? [];
|
|
35501
|
+
nodes.push({
|
|
35502
|
+
id: field.id,
|
|
35503
|
+
bindingId: field.bindingId,
|
|
35504
|
+
widget: field.widget,
|
|
35505
|
+
config: field.config
|
|
35506
|
+
});
|
|
35507
|
+
fields.set(field.bindingId, nodes);
|
|
35508
|
+
}
|
|
35509
|
+
}
|
|
35510
|
+
const used = new Set(fields.keys());
|
|
35511
|
+
if (!used.size) return {
|
|
35512
|
+
document,
|
|
35513
|
+
changed: false
|
|
35514
|
+
};
|
|
35515
|
+
const models = new Map(await Promise.all([...new Set([...used].filter((id) => {
|
|
35516
|
+
const field = definition(document.bindings[id].source);
|
|
35517
|
+
return !field || !businessReferenceModel(field.binding.source);
|
|
35518
|
+
}).map((id) => document.bindings[id].source.modelLink.split(".").at(-1)))].map(async (key) => [key, await readGctModelMeta(key, signal)])));
|
|
35519
|
+
signal.throwIfAborted();
|
|
35520
|
+
const resolved = [...used].map((id) => {
|
|
35521
|
+
const binding = document.bindings[id], source = binding.source, modelKey = source.modelLink.split(".").at(-1), key = source.fieldLink.split(".").at(-1), local = definition(source), matches = local && businessReferenceModel(local.binding.source) ? [] : models.get(modelKey)?.fieldMetaList?.filter((field) => field.key === key) ?? [];
|
|
35522
|
+
if (matches.length > 1) throw Error(`模型 ${modelKey} 的字段 ${key} 不唯一,无法补齐关联配置`);
|
|
35523
|
+
const field = definition(source, matches[0]);
|
|
35524
|
+
const refModelKey = field && (businessReferenceModel(field.binding.source) ?? field.binding.source.refModelKey);
|
|
35525
|
+
if (!field || field.widget !== "relation" && field.widget !== "rdo-relation" || !refModelKey || fields.get(id).some((node) => node.widget !== field.widget)) throw Error(`字段 ${modelKey}.${key} 缺少关联模型,无法完成模板转换`);
|
|
35526
|
+
return {
|
|
35527
|
+
id,
|
|
35528
|
+
binding,
|
|
35529
|
+
field,
|
|
35530
|
+
refModelKey
|
|
35531
|
+
};
|
|
35532
|
+
});
|
|
35533
|
+
editor.transaction("补齐转换字段的关联声明", () => {
|
|
35534
|
+
for (const { id, binding, field, refModelKey } of resolved) {
|
|
35535
|
+
editor.setDictionary("bindings", id, {
|
|
35536
|
+
...binding,
|
|
35537
|
+
source: {
|
|
35538
|
+
...binding.source,
|
|
35539
|
+
refModelKey,
|
|
35540
|
+
...field.binding.source.businessType && !binding.source.businessType ? { businessType: field.binding.source.businessType } : {}
|
|
35541
|
+
}
|
|
35542
|
+
});
|
|
35543
|
+
for (const node of fields.get(id)) {
|
|
35544
|
+
const set = {
|
|
35545
|
+
...node.config?.searchFields == null && field.config?.searchFields ? { searchFields: field.config.searchFields } : {},
|
|
35546
|
+
...node.config?.displayFields == null && field.config?.displayFields ? { displayFields: field.config.displayFields } : {}
|
|
35547
|
+
};
|
|
35548
|
+
if (Object.keys(set).length) editor.updateFieldConfig(node.id, {
|
|
35549
|
+
widget: node.widget,
|
|
35550
|
+
set
|
|
35551
|
+
});
|
|
35552
|
+
}
|
|
35553
|
+
}
|
|
35554
|
+
});
|
|
35555
|
+
return {
|
|
35556
|
+
document: editor.snapshot(),
|
|
35557
|
+
changed: true
|
|
35558
|
+
};
|
|
35559
|
+
} finally {
|
|
35560
|
+
editor.dispose();
|
|
35561
|
+
}
|
|
35562
|
+
}
|
|
35183
35563
|
// src/adapters/platform/templates.ts
|
|
35184
35564
|
/** @file 平台模板版本与 Word 原生文档之间的转换。 */
|
|
35185
35565
|
var pxPerMm = 96 / 25.4;
|
|
@@ -35208,15 +35588,16 @@ async function loadGctWordTemplate(id, signal, convertLegacyTemplate) {
|
|
|
35208
35588
|
for (let layer = 0; layer < 2 && typeof value === "string"; layer++) value = JSON.parse(value);
|
|
35209
35589
|
const legacy = !!value && typeof value === "object" && !Object.hasOwn(value, "format") && "document" in value && !!value.document && typeof value.document === "object" && "name" in value.document && value.document.name === "w:document";
|
|
35210
35590
|
if (legacy && !convertLegacyTemplate) throw new Error("此模板为旧版格式,当前宿主尚未接入模板转换能力");
|
|
35211
|
-
const document = legacy ? readDocument(await convertLegacyTemplate({
|
|
35591
|
+
const { document, changed } = await completeGctWordTemplateReferences(legacy ? readDocument(await convertLegacyTemplate({
|
|
35212
35592
|
id,
|
|
35213
35593
|
value,
|
|
35214
35594
|
signal,
|
|
35215
35595
|
...detail.communicationConfig != null ? { communicationConfig: detail.communicationConfig } : {}
|
|
35216
|
-
})) : readDocument(value);
|
|
35596
|
+
})) : readDocument(value), signal);
|
|
35217
35597
|
signal.throwIfAborted();
|
|
35218
35598
|
return {
|
|
35219
35599
|
...legacy ? { migrated: true } : {},
|
|
35600
|
+
...!legacy && changed ? { normalized: true } : {},
|
|
35220
35601
|
...detail.modelKey ? { modelKey: detail.modelKey } : {},
|
|
35221
35602
|
name: detail.name,
|
|
35222
35603
|
canAddField,
|
|
@@ -35362,9 +35743,9 @@ var GctWordTemplateDesigner_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
35362
35743
|
fontDeclarations: gctWordFontDeclarations()
|
|
35363
35744
|
})
|
|
35364
35745
|
};
|
|
35365
|
-
if (template.migrated) {
|
|
35746
|
+
if (template.migrated || template.normalized) {
|
|
35366
35747
|
revision.value = 1;
|
|
35367
|
-
notify("success", "模板已转换,请核对后保存");
|
|
35748
|
+
notify("success", template.migrated ? "模板已转换,请核对后保存" : "模板关联配置已补齐,请核对后保存");
|
|
35368
35749
|
}
|
|
35369
35750
|
} catch (error) {
|
|
35370
35751
|
if (!request.signal.aborted) loadError.value = error instanceof Error ? error.message : "模板打开失败";
|
|
@@ -35601,7 +35982,7 @@ var GctWordTemplateDesigner_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
35601
35982
|
}, null, 544)]);
|
|
35602
35983
|
};
|
|
35603
35984
|
}
|
|
35604
|
-
}), [["__scopeId", "data-v-
|
|
35985
|
+
}), [["__scopeId", "data-v-717ef8cd"]]);
|
|
35605
35986
|
// src/adapters/vue/data-properties/word-device-connections.ts
|
|
35606
35987
|
/** @file 设备订阅和焦点缓存归属当前填报会话,数据回写走原生字段事务。 */
|
|
35607
35988
|
/** 为填报会话建立一套独立的设备运行状态。 */
|
|
@@ -38061,101 +38442,6 @@ function createProductReleaseLots(businessType, readContext) {
|
|
|
38061
38442
|
}
|
|
38062
38443
|
};
|
|
38063
38444
|
}
|
|
38064
|
-
// src/adapters/platform/reference-policies.ts
|
|
38065
|
-
var lotTypes = /* @__PURE__ */ new Set([
|
|
38066
|
-
"material_no",
|
|
38067
|
-
"related_lot_no",
|
|
38068
|
-
"scrap_material_no",
|
|
38069
|
-
"material_container",
|
|
38070
|
-
"sterilization_container",
|
|
38071
|
-
"production_container",
|
|
38072
|
-
"inspection_container"
|
|
38073
|
-
]);
|
|
38074
|
-
var operatingTypes = /* @__PURE__ */ new Set([
|
|
38075
|
-
"warehouse",
|
|
38076
|
-
"target_warehouse",
|
|
38077
|
-
"location",
|
|
38078
|
-
"shopfloor"
|
|
38079
|
-
]);
|
|
38080
|
-
var lotSearch = [
|
|
38081
|
-
"name_.iLike",
|
|
38082
|
-
"related_parent_name_.iLike",
|
|
38083
|
-
"product_id_$code_.iLike",
|
|
38084
|
-
"product_id_$name_.iLike",
|
|
38085
|
-
"product_id_$spec_.iLike"
|
|
38086
|
-
];
|
|
38087
|
-
var productionKinds = ["LOT", "SN"];
|
|
38088
|
-
function referenceBusinessType(context) {
|
|
38089
|
-
return context.binding.source.businessType ?? context.binding.source.fieldType ?? "";
|
|
38090
|
-
}
|
|
38091
|
-
function lotSelection(context) {
|
|
38092
|
-
return lotTypes.has(referenceBusinessType(context));
|
|
38093
|
-
}
|
|
38094
|
-
/** 字段固有查询条件不保存为可被模板改写的用户筛选。 */
|
|
38095
|
-
function referencePolicyQuery(context, component) {
|
|
38096
|
-
const type = referenceBusinessType(context), filters = {}, conditions = [];
|
|
38097
|
-
const filter = (key, value) => {
|
|
38098
|
-
filters[key] = value;
|
|
38099
|
-
conditions.push(key);
|
|
38100
|
-
};
|
|
38101
|
-
if (operatingTypes.has(type)) filter("operating_state_", true);
|
|
38102
|
-
if (type === "routing_operation") filter("type_", "NODE_SPEC");
|
|
38103
|
-
if (type === "routing_operation" && typeof component.routingId === "string" && component.routingId) filter("ref_master_id_", component.routingId);
|
|
38104
|
-
if (lotTypes.has(type)) filter("container_role_.ne", "related_parent");
|
|
38105
|
-
if (type === "production_container" || type === "inspection_container") {
|
|
38106
|
-
if (type === "production_container") filter("production_identification_type_.in", productionKinds);
|
|
38107
|
-
else filter("production_identification_type_.eq", "INSPECTION_CONTAINER");
|
|
38108
|
-
filter("is_rework_", 0);
|
|
38109
|
-
} else if (type === "sterilization_container") filter("production_identification_type_", "STERILIZATION");
|
|
38110
|
-
else if (type === "material_container") {
|
|
38111
|
-
filters["production_identification_type_.eq"] = "MATERIAL";
|
|
38112
|
-
filters["production_identification_type_.isNull"] = null;
|
|
38113
|
-
conditions.push("OR(production_identification_type_.eq,production_identification_type_.isNull)");
|
|
38114
|
-
}
|
|
38115
|
-
return [filters, conditions];
|
|
38116
|
-
}
|
|
38117
|
-
/** 回读也拒绝明确失效的状态,不能只靠候选列表过滤。接口省略的投影仍由查询条件限定。 */
|
|
38118
|
-
function referencePolicyAccepts(context, record, component) {
|
|
38119
|
-
const type = referenceBusinessType(context), kind = record.production_identification_type_;
|
|
38120
|
-
if (type === "routing_operation" && record.type_ !== void 0 && record.type_ !== "NODE_SPEC") return false;
|
|
38121
|
-
if (operatingTypes.has(type) && (record.operating_state_ === false || record.operating_state_ === 0)) return false;
|
|
38122
|
-
if (type === "routing_operation" && component.routingId && record.ref_master_id_ !== void 0 && record.ref_master_id_ !== component.routingId) return false;
|
|
38123
|
-
if (lotTypes.has(type) && record.container_role_ === "related_parent") return false;
|
|
38124
|
-
if (type === "production_container" || type === "inspection_container") {
|
|
38125
|
-
if (record.is_rework_ === true || record.is_rework_ === 1) return false;
|
|
38126
|
-
if (kind !== void 0 && (type === "production_container" ? !productionKinds.includes(kind) : kind !== "INSPECTION_CONTAINER")) return false;
|
|
38127
|
-
}
|
|
38128
|
-
if (type === "material_container" && kind != null && kind !== "MATERIAL") return false;
|
|
38129
|
-
if (type === "sterilization_container" && kind !== void 0 && kind !== "STERILIZATION") return false;
|
|
38130
|
-
return true;
|
|
38131
|
-
}
|
|
38132
|
-
function referencePolicySearch(context) {
|
|
38133
|
-
const type = referenceBusinessType(context);
|
|
38134
|
-
if ([
|
|
38135
|
-
"routing_operation",
|
|
38136
|
-
"operation",
|
|
38137
|
-
"e_sop"
|
|
38138
|
-
].includes(type)) return ["name_.iLike"];
|
|
38139
|
-
if ([
|
|
38140
|
-
"scrap_group",
|
|
38141
|
-
"scrap_reason",
|
|
38142
|
-
"not_good_group",
|
|
38143
|
-
"not_good_reason",
|
|
38144
|
-
"warehouse",
|
|
38145
|
-
"target_warehouse",
|
|
38146
|
-
"location",
|
|
38147
|
-
"shopfloor"
|
|
38148
|
-
].includes(type)) return ["name_.iLike", "code_.iLike"];
|
|
38149
|
-
if (type === "production_container" || type === "inspection_container") return ["name_.iLike", "related_parent_name_.iLike"];
|
|
38150
|
-
if (type === "material_container") return [
|
|
38151
|
-
"name_.iLike",
|
|
38152
|
-
"product_id_code_.iLike",
|
|
38153
|
-
"product_id_name_.iLike",
|
|
38154
|
-
"spec_.iLike"
|
|
38155
|
-
];
|
|
38156
|
-
if (type === "sterilization_container") return ["name_.iLike"];
|
|
38157
|
-
if (lotTypes.has(type)) return lotSearch;
|
|
38158
|
-
}
|
|
38159
38445
|
// src/adapters/platform/reference-columns.ts
|
|
38160
38446
|
/** @file GCT 业务下拉的显示列策略;只投影短文本,不保存来源记录。 */
|
|
38161
38447
|
var column = (key, label, aliases) => ({
|
|
@@ -39102,10 +39388,7 @@ function label(item) {
|
|
|
39102
39388
|
return String(item.__SHOW_LABEL__ || item.__LABEL__ || item.name_ || item.code_ || item.id_ || "");
|
|
39103
39389
|
}
|
|
39104
39390
|
function modelFor(context) {
|
|
39105
|
-
|
|
39106
|
-
if (["production_container", "inspection_container"].includes(context.binding.source.businessType ?? context.binding.source.fieldType ?? "")) return "em_production_identification";
|
|
39107
|
-
if (isNamedLotBinding(context.binding.source)) return "em_production_identification";
|
|
39108
|
-
const { refModelKey } = context.binding.source;
|
|
39391
|
+
const refModelKey = businessReferenceModel(context.binding.source) ?? context.binding.source.refModelKey;
|
|
39109
39392
|
if (!refModelKey) throw new Error("关联字段缺少目标模型");
|
|
39110
39393
|
return refModelKey;
|
|
39111
39394
|
}
|
|
@@ -39996,6 +40279,7 @@ var GctWordTemplatePreview_default = /*#__PURE__*/ _plugin_vue_export_helper_def
|
|
|
39996
40279
|
const buffer = await view.getPdfBuffer({
|
|
39997
40280
|
title,
|
|
39998
40281
|
copyableText,
|
|
40282
|
+
showPrintFieldBg: false,
|
|
39999
40283
|
signal: request.signal
|
|
40000
40284
|
});
|
|
40001
40285
|
if (request.signal.aborted || active !== source.value) return;
|
|
@@ -40038,7 +40322,10 @@ var GctWordTemplatePreview_default = /*#__PURE__*/ _plugin_vue_export_helper_def
|
|
|
40038
40322
|
if (!view || !ready.value || busy.value) return;
|
|
40039
40323
|
printing.value = true;
|
|
40040
40324
|
try {
|
|
40041
|
-
if (!await view.print(
|
|
40325
|
+
if (!await view.print({
|
|
40326
|
+
title: template.value?.name,
|
|
40327
|
+
showPrintFieldBg: false
|
|
40328
|
+
}) && active === source.value) GctMessage({
|
|
40042
40329
|
type: "warning",
|
|
40043
40330
|
message: "请先完成当前字段编辑,再打印预览"
|
|
40044
40331
|
});
|
|
@@ -40100,7 +40387,7 @@ var GctWordTemplatePreview_default = /*#__PURE__*/ _plugin_vue_export_helper_def
|
|
|
40100
40387
|
fontDeclarations: gctWordFontDeclarations(),
|
|
40101
40388
|
layout: {
|
|
40102
40389
|
formula,
|
|
40103
|
-
showPrintFieldBackground:
|
|
40390
|
+
showPrintFieldBackground: false
|
|
40104
40391
|
},
|
|
40105
40392
|
browseActions: {
|
|
40106
40393
|
...readonly.browse,
|
|
@@ -40208,7 +40495,7 @@ var GctWordTemplatePreview_default = /*#__PURE__*/ _plugin_vue_export_helper_def
|
|
|
40208
40495
|
}, null, 8, ["source", "mode"])) : renderSlot(_ctx.$slots, "loading", {}, () => [createVNode(WordDocumentLoading_default, { message: "正在加载模板…" })], true, 2)]);
|
|
40209
40496
|
};
|
|
40210
40497
|
}
|
|
40211
|
-
}), [["__scopeId", "data-v-
|
|
40498
|
+
}), [["__scopeId", "data-v-b6a9d5e6"]]);
|
|
40212
40499
|
// src/adapters/vue/GctWordTemplateComparison.vue?vue&type=script&setup=true&lang.ts
|
|
40213
40500
|
var _hoisted_1$3 = ["aria-busy"];
|
|
40214
40501
|
var _hoisted_2$2 = { class: "word-comparison-toolbar" };
|
|
@@ -42311,6 +42598,6 @@ var WordRuntimeDataSources_default = /*#__PURE__*/ _plugin_vue_export_helper_def
|
|
|
42311
42598
|
};
|
|
42312
42599
|
}
|
|
42313
42600
|
}), [["__scopeId", "data-v-c669b2db"]]);
|
|
42314
|
-
export { GctWordPrintRenderer_default as GctWordPrintRenderer, GctWordTemplateComparison_default as GctWordTemplateComparison, GctWordTemplateDesigner_default as GctWordTemplateDesigner, GctWordTemplatePreview_default as GctWordTemplatePreview, WordCommunicationActions_default as WordCommunicationActions, WordDesigner, WordDocumentLoading_default as WordDocumentLoading, WordOcrHistory_default as WordOcrHistory, WordRenderer, WordRuntimeDataSources_default as WordRuntimeDataSources, createGctDeviceSubscriber, createGctWordFieldDialogs, createGctWordFillPorts, createGctWordFormulaEditor, openGctWordTemplateComparison, prepareGctWordDocxImport, readGctFieldCreationContext, useGctWordInstance };
|
|
42601
|
+
export { GctWordPrintRenderer_default as GctWordPrintRenderer, GctWordTemplateComparison_default as GctWordTemplateComparison, GctWordTemplateDesigner_default as GctWordTemplateDesigner, GctWordTemplatePreview_default as GctWordTemplatePreview, WordCommunicationActions_default as WordCommunicationActions, WordDesigner, WordDocumentLoading_default as WordDocumentLoading, WordOcrHistory_default as WordOcrHistory, WordRenderer, WordRuntimeDataSources_default as WordRuntimeDataSources, createGctDeviceSubscriber, createGctWordFieldDialogs, createGctWordFillPorts, createGctWordFormulaEditor, openGctWordTemplateComparison, prepareGctWordDocxImport, prepareQuickFillPanel, readGctFieldCreationContext, renderQuickFillPanel, useGctWordInstance };
|
|
42315
42602
|
|
|
42316
42603
|
//# sourceMappingURL=vue.js.map
|