@gct-paas/excel 0.1.39-beta.6 → 0.1.39-beta.7
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/dist/{BaseComponent-496TdqSh.js → BaseComponent-Dri2NRAY.js} +1 -1
- package/dist/{barcode-design-DLV-IKwU.js → barcode-design-C8V6Zzz_.js} +1 -1
- package/dist/base/index.es.js +12 -9
- package/dist/{diagonal-design-s5rJj3eC.js → diagonal-design-DXfWVZvL.js} +1 -1
- package/dist/{dynamic-table-action-uAxRjqmt.js → dynamic-table-action-BQfJFJ4j.js} +13 -5
- package/dist/{exceljs.min-DnAYpSA-.js → exceljs.min-BfRvRgvB.js} +1 -1
- package/dist/{font-editor-C1pCgzC4.js → font-editor-C-R6CAVG.js} +1 -1
- package/dist/{index-BAUeCs0u.js → index-BUK-p31i.js} +1 -1
- package/dist/{index-CZ-lGrhr.js → index-BYH3tYm7.js} +1 -1
- package/dist/{index-hV1z27Wq.js → index-Bl5PEJrh.js} +2 -2
- package/dist/{index-DMKRNo0V.js → index-C-k8dFLv.js} +1 -1
- package/dist/{index-DHe_chMb.js → index-C3k8QiLF.js} +1 -1
- package/dist/{index-rCqc75qz.js → index-CCBueGEh.js} +3 -3
- package/dist/{index-WdpcUacn.js → index-CRloZ0HP.js} +1 -1
- package/dist/{index-C6B3hX3m.js → index-Caygbi4F.js} +1 -1
- package/dist/{index-BY9iA8Md.js → index-D1jXU0ka.js} +1 -1
- package/dist/{index-DNQBMyTJ.js → index-D9444n1O.js} +1 -1
- package/dist/{index-BHbyId3E.js → index-DERot0lx.js} +1 -1
- package/dist/{index-BnnagQbJ.js → index-DWVhXPb-.js} +1 -1
- package/dist/{index-CW-jTLhX.js → index-DY7Xkd8n.js} +1 -1
- package/dist/{index-BpNSrjRf.js → index-DkDetjLm.js} +2 -2
- package/dist/{index-BnTs1dT0.js → index-DkwkBWEP.js} +1 -1
- package/dist/{index-Cv-gDUBP.js → index-DmBx27M9.js} +1 -1
- package/dist/{index-BnqjqPSW.js → index-DpMV2Mnw.js} +2 -2
- package/dist/{index-Lt6Z6rZN.js → index-DqkPgoly.js} +1 -1
- package/dist/{index-CI5K4fp5.js → index-DsLZqLga.js} +1 -1
- package/dist/{index-CwTlBrT8.js → index-H2nF4SP8.js} +1 -1
- package/dist/{index-BcuBEVfC.js → index-P9ZTqL1i.js} +2 -2
- package/dist/{index-Dpb1Gk5W.js → index-afC-rHNa.js} +1 -1
- package/dist/{index-DKS29zyj.js → index-bH6ERrWd.js} +1 -1
- package/dist/{index-zd3Fc7K2.js → index-luggjixn.js} +82 -80
- package/dist/index.es.js +1 -1
- package/dist/{pagination-design-CGXaXvu_.js → pagination-design-CpZhqHAZ.js} +1 -1
- package/dist/paper-widget-design-o-K-d1mV.js +4 -0
- package/dist/{print-runtime-instance-CeGsmoVR.js → print-runtime-instance-DP1Lp8e2.js} +1 -1
- package/dist/{print-snapshot-renderer-CtCLP2p6.js → print-snapshot-renderer-Cf73dKcd.js} +3 -3
- package/dist/{qrcode-design-DiA3bnlu.js → qrcode-design-BDVFS0l9.js} +1 -1
- package/dist/seal-design-D2dtOjZh.js +4 -0
- package/dist/{single-field-drop-3EIpd7ih.js → single-field-drop-Ijh7_RRT.js} +1 -1
- package/dist/src/nocode-base/src/runtime/async-task-coordinator.d.ts +6 -2
- package/dist/src/nocode-base/src/runtime/runtime-field-initializer.d.ts +1 -1
- package/dist/src/nocode-base/src/runtime/runtime-validation-service.d.ts +1 -0
- package/dist/{sub-table-factory-om7kG_PY.js → sub-table-factory-CNkIUJTC.js} +1 -1
- package/dist/{text-design-CkhX4gTo.js → text-design-BaDQZeS2.js} +1 -1
- package/dist/{trace-like-wrapper-DZwBEUQP.js → trace-like-wrapper-B1n1LPhU.js} +1 -1
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-BZdsztfj.js → value-editor.vue_vue_type_style_index_0_lang-_7d452gl.js} +1 -1
- package/dist/{widget-barcode-DEpa6lsx.js → widget-barcode-D3nGm6wi.js} +2 -2
- package/dist/{widget-diagonal-DUwCXGf1.js → widget-diagonal-CrTfSw6w.js} +2 -2
- package/dist/{widget-image-CYbh0z6A.js → widget-image-Bq3B9IR0.js} +1 -1
- package/dist/{widget-line-BUBZVQ4l.js → widget-line-BE8D0_Mn.js} +1 -1
- package/dist/{widget-pagination-DQEaEV_Q.js → widget-pagination-CJZ-nXas.js} +2 -2
- package/dist/{widget-power-EGE6wryz.js → widget-power-CUVtkygi.js} +2 -2
- package/dist/{widget-qrcode-Bizaqz8O.js → widget-qrcode-DDqtIjp6.js} +2 -2
- package/dist/{widget-rangelimit-q8ZbujIE.js → widget-rangelimit-CiXyiZ4L.js} +2 -2
- package/dist/{widget-serialnumber-Dz03qK0f.js → widget-serialnumber-DdV7rw4j.js} +1 -1
- package/dist/{widget-text-Kx2Nsg9U.js → widget-text-B5pDJ4lb.js} +3 -3
- package/dist/{widget-timediff-CecQOGZu.js → widget-timediff-D_BS7hfR.js} +1 -1
- package/package.json +1 -1
- package/dist/paper-widget-design-PdZDVW77.js +0 -4
- package/dist/seal-design-Cu8mfOFa.js +0 -4
|
@@ -5,7 +5,7 @@ import { range, cloneDeep, get as get$3, merge, isEmpty, zip, pick, omit, has, d
|
|
|
5
5
|
import dayjs from "dayjs";
|
|
6
6
|
import * as Antd from "ant-design-vue";
|
|
7
7
|
import { message, Modal, notification, Empty, InputSearch, Cascader, ConfigProvider, Tooltip as Tooltip$1, Input, Tree, Transfer, Select, Tag, AutoComplete, TimePicker, DatePicker, Textarea, TreeSelect, CheckboxGroup, Checkbox, Radio, RadioGroup } from "ant-design-vue";
|
|
8
|
-
import { M as MAX_RUNTIME_SHEETS, a as MAX_RUNTIME_SHEET_TITLE_LENGTH, b as MULTI_SHEET_SCHEMA_VERSION, c as createRuntimeDocumentV2, g as getBusinessFieldKey, n as normalizeFieldWidth, D as DEFAULT_BOOLEAN_FIELD_WIDTH, B as BorderTD, u as useFormTmplConfig, d as normalizeHistoricalBusinessRow, e as DeviceLinkTmplUtil, f as normalizeAIOcrTmpl, h as useWidgetStaticAttrs, i as useRuntimeInstanceServices, s as setSelectValidatorId, j as setSelectAnnotationId, k as useRuntimeRowState, l as getObjectBomMaterialLotQuery, m as buildObjectLotExtraQuery, r as resolveObjectFieldKeys, o as MaterialConsumptionPatternEnum, v as validateObjectBomForScan, p as resolveObjectBomEntry, q as runWithFillProduct, t as useNocodeFormWidget, w as applyConsumeObjectTraceChange, x as getObjectBomProductQuery, E as EMPTY_PRODUCT_VERSION_ID, y as normalizeHistoricalAutofillRow, N as NCB_PROVIDE, z as parseRuntimeFieldPath, A as useStyles, C as useDependency, F as useFieldPresentation, G as useRuntimeEditorFlusher, R as RuntimeFormStateStore, H as createRuntimeInstanceContext, I as RuntimeInstanceRegistry, S as ScanParamType, J as RequiredQtyCalcRule, K as registerFormulaFuncs, L as DocumentPaper, O as DynamicTableAction, _ as _sfc_main$6u } from "./dynamic-table-action-
|
|
8
|
+
import { M as MAX_RUNTIME_SHEETS, a as MAX_RUNTIME_SHEET_TITLE_LENGTH, b as MULTI_SHEET_SCHEMA_VERSION, c as createRuntimeDocumentV2, g as getBusinessFieldKey, n as normalizeFieldWidth, D as DEFAULT_BOOLEAN_FIELD_WIDTH, B as BorderTD, u as useFormTmplConfig, d as normalizeHistoricalBusinessRow, e as DeviceLinkTmplUtil, f as normalizeAIOcrTmpl, h as useWidgetStaticAttrs, i as useRuntimeInstanceServices, s as setSelectValidatorId, j as setSelectAnnotationId, k as useRuntimeRowState, l as getObjectBomMaterialLotQuery, m as buildObjectLotExtraQuery, r as resolveObjectFieldKeys, o as MaterialConsumptionPatternEnum, v as validateObjectBomForScan, p as resolveObjectBomEntry, q as runWithFillProduct, t as useNocodeFormWidget, w as applyConsumeObjectTraceChange, x as getObjectBomProductQuery, E as EMPTY_PRODUCT_VERSION_ID, y as normalizeHistoricalAutofillRow, N as NCB_PROVIDE, z as parseRuntimeFieldPath, A as useStyles, C as useDependency, F as useFieldPresentation, G as useRuntimeEditorFlusher, R as RuntimeFormStateStore, H as createRuntimeInstanceContext, I as RuntimeInstanceRegistry, S as ScanParamType, J as RequiredQtyCalcRule, K as registerFormulaFuncs, L as DocumentPaper, O as DynamicTableAction, _ as _sfc_main$6u } from "./dynamic-table-action-BQfJFJ4j.js";
|
|
9
9
|
import { S as SEARCH_SEVICE, V as VersionSelect, C as CloseOutlined, E as EmptyImg$2, _ as _sfc_main$6s } from "./online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-BEX02BrW.js";
|
|
10
10
|
import { I as Icon$1, w as warning, u as useInsertStyles, s as svgBaseProps, a as useNamespace } from "./AntdIcon-DCIaV352.js";
|
|
11
11
|
import { u as useWebUpload, i as initWebPaasUploadApis, a as useThrottleFn, d as defaultWindow, n as noop, b as useEventListener, c as isIOS, e as unrefElement, r as require$$0, U as Uploader, f as useIntersectionObserver, g as cacheAdapter, w as watchDebounced, A as AddRuleBtn, M as ModalWrapper, F as FormFieldSelect, o as onClickOutside$1, _ as _sfc_main$6t, h as initWebNocodeAdapter } from "./index-BE-3UQG0.js";
|
|
@@ -1930,7 +1930,7 @@ function openWindow(url, opt) {
|
|
|
1930
1930
|
const FieldPropLabels = Object.entries(FIELD_PROP_LABEL_MAP);
|
|
1931
1931
|
const FieldTypeLabels = Object.entries(FIELD_TYPE_LABEL_MAP);
|
|
1932
1932
|
async function createWorkbook() {
|
|
1933
|
-
const ExcelJs = (await import("./exceljs.min-
|
|
1933
|
+
const ExcelJs = (await import("./exceljs.min-BfRvRgvB.js").then((n) => n.e)).default;
|
|
1934
1934
|
return new ExcelJs.Workbook();
|
|
1935
1935
|
}
|
|
1936
1936
|
class XlsxParser {
|
|
@@ -2258,28 +2258,28 @@ class XlsxParser {
|
|
|
2258
2258
|
}
|
|
2259
2259
|
function asyncImportClassModules() {
|
|
2260
2260
|
const modules = /* @__PURE__ */ Object.assign({
|
|
2261
|
-
"./_field_/auto-complete/index.ts": () => import("./index-
|
|
2262
|
-
"./_field_/datepicker/index.ts": () => import("./index-
|
|
2263
|
-
"./_field_/datetimepicker/index.ts": () => import("./index-
|
|
2264
|
-
"./_field_/department/index.ts": () => import("./index-
|
|
2265
|
-
"./_field_/enum-select/index.ts": () => import("./index-
|
|
2266
|
-
"./_field_/input/index.ts": () => import("./index-
|
|
2267
|
-
"./_field_/inputdouble/index.ts": () => import("./index-
|
|
2268
|
-
"./_field_/inputnumber/index.ts": () => import("./index-
|
|
2269
|
-
"./_field_/rdo-select/index.ts": () => import("./index-
|
|
2270
|
-
"./_field_/seal/index.ts": () => import("./index-
|
|
2271
|
-
"./_field_/select/index.ts": () => import("./index-
|
|
2272
|
-
"./_field_/sign/index.ts": () => import("./index-
|
|
2273
|
-
"./_field_/switch/index.ts": () => import("./index-
|
|
2274
|
-
"./_field_/textarea/index.ts": () => import("./index-
|
|
2275
|
-
"./_field_/timepicker/index.ts": () => import("./index-
|
|
2276
|
-
"./_field_/upload-file/index.ts": () => import("./index-
|
|
2277
|
-
"./_field_/upload-image/index.ts": () => import("./index-
|
|
2278
|
-
"./_field_/userpicker/index.ts": () => import("./index-
|
|
2261
|
+
"./_field_/auto-complete/index.ts": () => import("./index-DkDetjLm.js").then((m) => m["default"]),
|
|
2262
|
+
"./_field_/datepicker/index.ts": () => import("./index-C3k8QiLF.js").then((m) => m["default"]),
|
|
2263
|
+
"./_field_/datetimepicker/index.ts": () => import("./index-DWVhXPb-.js").then((m) => m["default"]),
|
|
2264
|
+
"./_field_/department/index.ts": () => import("./index-H2nF4SP8.js").then((m) => m["default"]),
|
|
2265
|
+
"./_field_/enum-select/index.ts": () => import("./index-DpMV2Mnw.js").then((m) => m["default"]),
|
|
2266
|
+
"./_field_/input/index.ts": () => import("./index-DsLZqLga.js").then((m) => m["default"]),
|
|
2267
|
+
"./_field_/inputdouble/index.ts": () => import("./index-DkwkBWEP.js").then((m) => m["default"]),
|
|
2268
|
+
"./_field_/inputnumber/index.ts": () => import("./index-DmBx27M9.js").then((m) => m["default"]),
|
|
2269
|
+
"./_field_/rdo-select/index.ts": () => import("./index-P9ZTqL1i.js").then((m) => m["default"]),
|
|
2270
|
+
"./_field_/seal/index.ts": () => import("./index-BUK-p31i.js").then((m) => m["default"]),
|
|
2271
|
+
"./_field_/select/index.ts": () => import("./index-Bl5PEJrh.js").then((m) => m["default"]),
|
|
2272
|
+
"./_field_/sign/index.ts": () => import("./index-DERot0lx.js").then((m) => m["default"]),
|
|
2273
|
+
"./_field_/switch/index.ts": () => import("./index-CCBueGEh.js").then((m) => m["default"]),
|
|
2274
|
+
"./_field_/textarea/index.ts": () => import("./index-D1jXU0ka.js").then((m) => m["default"]),
|
|
2275
|
+
"./_field_/timepicker/index.ts": () => import("./index-D9444n1O.js").then((m) => m["default"]),
|
|
2276
|
+
"./_field_/upload-file/index.ts": () => import("./index-DY7Xkd8n.js").then((m) => m["default"]),
|
|
2277
|
+
"./_field_/upload-image/index.ts": () => import("./index-afC-rHNa.js").then((m) => m["default"]),
|
|
2278
|
+
"./_field_/userpicker/index.ts": () => import("./index-Caygbi4F.js").then((m) => m["default"]),
|
|
2279
2279
|
"./_widget_/barcode/index.ts": () => import("./index-Bs8Xs0bo.js").then((m) => m["default"]),
|
|
2280
|
-
"./_widget_/combine-fields/index.ts": () => import("./index-
|
|
2281
|
-
"./_widget_/diagonal/index.ts": () => import("./index-
|
|
2282
|
-
"./_widget_/dyn-value/index.ts": () => import("./index-
|
|
2280
|
+
"./_widget_/combine-fields/index.ts": () => import("./index-DqkPgoly.js").then((m) => m["default"]),
|
|
2281
|
+
"./_widget_/diagonal/index.ts": () => import("./index-CRloZ0HP.js").then((m) => m["default"]),
|
|
2282
|
+
"./_widget_/dyn-value/index.ts": () => import("./index-bH6ERrWd.js").then((m) => m["default"]),
|
|
2283
2283
|
"./_widget_/image/index.ts": () => import("./index-B-Kwr44d.js").then((m) => m["default"]),
|
|
2284
2284
|
"./_widget_/line/index.ts": () => import("./index-DFNVqlgA.js").then((m) => m["default"]),
|
|
2285
2285
|
"./_widget_/power/index.ts": () => import("./index-CTASuQPn.js").then((m) => m["default"]),
|
|
@@ -2289,8 +2289,8 @@ function asyncImportClassModules() {
|
|
|
2289
2289
|
"./_widget_/sub-table/index.ts": () => import("./index-B_GyS-E2.js").then((m) => m["default"]),
|
|
2290
2290
|
"./_widget_/timediff/index.ts": () => import("./index-CJdwj04Z.js").then((m) => m["default"]),
|
|
2291
2291
|
"./paper/index.ts": () => import("./index-BLmR9aiG.js").then((m) => m["default"]),
|
|
2292
|
-
"./td/index.ts": () => import("./index-
|
|
2293
|
-
"./tr/index.ts": () => import("./index-
|
|
2292
|
+
"./td/index.ts": () => import("./index-BYH3tYm7.js").then((m) => m["default"]),
|
|
2293
|
+
"./tr/index.ts": () => import("./index-C-k8dFLv.js").then((m) => m["default"])
|
|
2294
2294
|
});
|
|
2295
2295
|
return modules;
|
|
2296
2296
|
}
|
|
@@ -15822,7 +15822,7 @@ function asyncImportWidgetConfigList() {
|
|
|
15822
15822
|
return widgetConfigList;
|
|
15823
15823
|
}
|
|
15824
15824
|
function asyncImportWidgetDesign() {
|
|
15825
|
-
const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "../__cell_widgets__/seal/seal-design.vue": () => import("./seal-design-
|
|
15825
|
+
const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "../__cell_widgets__/seal/seal-design.vue": () => import("./seal-design-D2dtOjZh.js"), "./barcode/barcode-design.vue": () => import("./barcode-design-C8V6Zzz_.js"), "./diagonal/diagonal-design.vue": () => import("./diagonal-design-DXfWVZvL.js"), "./image/image-design.vue": () => import("./image-design-A8_t4F3t.js"), "./line/line-design.vue": () => Promise.resolve().then(() => lineDesign), "./pagination/pagination-design.vue": () => import("./pagination-design-CpZhqHAZ.js"), "./paper-widget-design.vue": () => import("./paper-widget-design-o-K-d1mV.js"), "./power/power-design.vue": () => Promise.resolve().then(() => powerDesign), "./qrcode/qrcode-design.vue": () => import("./qrcode-design-BDVFS0l9.js"), "./rangelimit/rangelimit-design.vue": () => Promise.resolve().then(() => rangelimitDesign), "./serialnumber/serialnumber-design.vue": () => import("./serialnumber-design-Cs3B0ZNE.js"), "./text/text-design.vue": () => import("./text-design-BaDQZeS2.js"), "./timediff/timediff-design.vue": () => import("./timediff-design-DASqeRcJ.js") });
|
|
15826
15826
|
const widgetDesignMap = Object.keys(modules).reduce((map2, path) => {
|
|
15827
15827
|
const mKey = path.match(/\/([a-z]+)-design\.vue$/)?.[1];
|
|
15828
15828
|
if (mKey) {
|
|
@@ -52746,7 +52746,7 @@ const _sfc_main$3p = /* @__PURE__ */ defineComponent({
|
|
|
52746
52746
|
}
|
|
52747
52747
|
});
|
|
52748
52748
|
function asyncImportWidgetProp() {
|
|
52749
|
-
const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-
|
|
52749
|
+
const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-D3nGm6wi.js"), "./widget-diagonal.vue": () => import("./widget-diagonal-CrTfSw6w.js"), "./widget-image.vue": () => import("./widget-image-Bq3B9IR0.js"), "./widget-line.vue": () => import("./widget-line-BE8D0_Mn.js"), "./widget-pagination.vue": () => import("./widget-pagination-CJZ-nXas.js"), "./widget-power.vue": () => import("./widget-power-CUVtkygi.js"), "./widget-qrcode.vue": () => import("./widget-qrcode-DDqtIjp6.js"), "./widget-rangelimit.vue": () => import("./widget-rangelimit-CiXyiZ4L.js"), "./widget-serialnumber.vue": () => import("./widget-serialnumber-DdV7rw4j.js"), "./widget-text.vue": () => import("./widget-text-B5pDJ4lb.js"), "./widget-timediff.vue": () => import("./widget-timediff-D_BS7hfR.js") });
|
|
52750
52750
|
const widgetPropMap = Object.keys(modules).reduce((map2, path) => {
|
|
52751
52751
|
const mKey = path.match(/\/widget-([a-z]+)\.vue$/)?.[1];
|
|
52752
52752
|
if (mKey) {
|
|
@@ -63115,16 +63115,16 @@ const _sfc_main$2o = /* @__PURE__ */ defineComponent({
|
|
|
63115
63115
|
setup(__props) {
|
|
63116
63116
|
const props2 = __props;
|
|
63117
63117
|
const { nullValSymbol, prefix, suffix } = reactive(props2.widget.props);
|
|
63118
|
-
const { targetFieldId, fieldType, showDisplayStatus, showRequired, dataRelationShip
|
|
63118
|
+
const { targetFieldId, fieldType, showDisplayStatus, showRequired, dataRelationShip } = useWidgetStaticAttrs(props2.widget);
|
|
63119
63119
|
const preserveAffixWidth = computed(
|
|
63120
63120
|
() => showDisplayStatus.value === "edit-component" && Boolean(prefix || suffix)
|
|
63121
63121
|
);
|
|
63122
63122
|
const { events: events2 } = useRuntimeInstanceServices();
|
|
63123
63123
|
function selectAnnotation(id, event2) {
|
|
63124
|
-
setSelectAnnotationId(id,
|
|
63124
|
+
setSelectAnnotationId(id, dataRelationShip, event2, events2.value);
|
|
63125
63125
|
}
|
|
63126
63126
|
const _nullValSymbol = computed(() => {
|
|
63127
|
-
return
|
|
63127
|
+
return dataRelationShip?.isMockReport ? void 0 : nullValSymbol;
|
|
63128
63128
|
});
|
|
63129
63129
|
const containerStyles = omit(props2.widget.style, ["textAlign", "verticalAlign"]);
|
|
63130
63130
|
const contentStyles = mapValues(
|
|
@@ -63152,7 +63152,7 @@ const _sfc_main$2o = /* @__PURE__ */ defineComponent({
|
|
|
63152
63152
|
return showDisplayStatus.value === "readonly-text";
|
|
63153
63153
|
});
|
|
63154
63154
|
const showFilledBackground = computed(
|
|
63155
|
-
() => !
|
|
63155
|
+
() => !dataRelationShip?.isMockReport && dataRelationShip?.platformType !== PlatformEnum.INTEGRATION_PAAS_DP && (!dataRelationShip?.renderPurpose || Boolean(dataRelationShip?.showPrintFieldBg))
|
|
63156
63156
|
);
|
|
63157
63157
|
const canClickOpenValidator = computed(() => {
|
|
63158
63158
|
return !!props2.annotationInfo?.showValidatorClass && ["readonly-text", "readonly-component"].includes(showDisplayStatus.value);
|
|
@@ -63172,7 +63172,7 @@ const _sfc_main$2o = /* @__PURE__ */ defineComponent({
|
|
|
63172
63172
|
});
|
|
63173
63173
|
function openValidatorComment(e) {
|
|
63174
63174
|
if (!canClickOpenValidator.value) return;
|
|
63175
|
-
setSelectValidatorId(e,
|
|
63175
|
+
setSelectValidatorId(e, dataRelationShip);
|
|
63176
63176
|
}
|
|
63177
63177
|
function handleCellClick(e) {
|
|
63178
63178
|
openValidatorComment(e);
|
|
@@ -63203,7 +63203,7 @@ const _sfc_main$2o = /* @__PURE__ */ defineComponent({
|
|
|
63203
63203
|
key: 0,
|
|
63204
63204
|
class: "validator-icon",
|
|
63205
63205
|
"data-ann": __props.annotationInfo?.annFieldId,
|
|
63206
|
-
onClick: _cache[0] || (_cache[0] = withModifiers((e) => unref(setSelectValidatorId)(e, unref(
|
|
63206
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((e) => unref(setSelectValidatorId)(e, unref(dataRelationShip)), ["stop"]))
|
|
63207
63207
|
}, null, 8, _hoisted_2$T)) : createCommentVNode("", true),
|
|
63208
63208
|
showAnnotationIcon.value ? (openBlock(), createElementBlock("i", {
|
|
63209
63209
|
key: 1,
|
|
@@ -65835,7 +65835,7 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
|
65835
65835
|
const props2 = __props;
|
|
65836
65836
|
const emit2 = __emit;
|
|
65837
65837
|
const { value, onChange, onBlur, realFieldId, annotationInfo, setRowField, patchRow } = useNocodeFormWidget(props2, emit2);
|
|
65838
|
-
const { field, fieldType, bizType, showDisplayStatus, dataRelationShip
|
|
65838
|
+
const { field, fieldType, bizType, showDisplayStatus, dataRelationShip, newComponentProps } = useWidgetStaticAttrs(props2.widget);
|
|
65839
65839
|
const { formConfig: formConfig2 } = useRuntimeInstanceServices();
|
|
65840
65840
|
const formModel = useFormModel().injectController();
|
|
65841
65841
|
const { tmplBomController } = useRuntimeInstanceServices();
|
|
@@ -65899,7 +65899,7 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
|
65899
65899
|
watch(
|
|
65900
65900
|
value,
|
|
65901
65901
|
async () => {
|
|
65902
|
-
if (
|
|
65902
|
+
if (dataRelationShip?.renderPurpose) return;
|
|
65903
65903
|
const seq = ++lotResolveSeq;
|
|
65904
65904
|
lotDisplayLabel.value = void 0;
|
|
65905
65905
|
hasEbrInfo.value = false;
|
|
@@ -65929,13 +65929,13 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
|
65929
65929
|
}
|
|
65930
65930
|
);
|
|
65931
65931
|
const isContentHighlight = computed(
|
|
65932
|
-
() =>
|
|
65932
|
+
() => dataRelationShip?.contentHighlight[ComponentTypeEnum.Trace]?.includes(value.value)
|
|
65933
65933
|
);
|
|
65934
65934
|
const readonlyCallback = (val) => {
|
|
65935
65935
|
const isLotParentLabelField = lotParentLabelFieldTypes.includes(fieldType);
|
|
65936
65936
|
const lotLabel = isLotParentLabelField ? lotDisplayLabel.value || renderUtils.getLabJsonValue(props2.formData, field) || val : val;
|
|
65937
65937
|
if ([FIELD_TYPE.MATERIAL_NO, FIELD_TYPE.RELATED_LOT_NO].includes(fieldType) && hasEbrInfo.value) {
|
|
65938
|
-
if (
|
|
65938
|
+
if (dataRelationShip?.annSwitchStatus) {
|
|
65939
65939
|
renderScript.value = void 0;
|
|
65940
65940
|
return lotLabel;
|
|
65941
65941
|
}
|
|
@@ -66277,7 +66277,7 @@ const _sfc_main$25 = /* @__PURE__ */ defineComponent({
|
|
|
66277
66277
|
props2,
|
|
66278
66278
|
emit2
|
|
66279
66279
|
);
|
|
66280
|
-
const { field, fieldType, showRequired, showDisabled, placeholder, options, dataRelationShip
|
|
66280
|
+
const { field, fieldType, showRequired, showDisabled, placeholder, options, dataRelationShip } = useWidgetStaticAttrs(props2.widget);
|
|
66281
66281
|
const multiple = fieldType === FIELD_TYPE.ORG_MULTI;
|
|
66282
66282
|
const {
|
|
66283
66283
|
selectRef,
|
|
@@ -66403,7 +66403,7 @@ const _sfc_main$25 = /* @__PURE__ */ defineComponent({
|
|
|
66403
66403
|
}
|
|
66404
66404
|
function readonlyCallback(val) {
|
|
66405
66405
|
if (val) {
|
|
66406
|
-
if (
|
|
66406
|
+
if (dataRelationShip?.platformType === PlatformEnum.INTEGRATION_PAAS_DP) {
|
|
66407
66407
|
return val;
|
|
66408
66408
|
}
|
|
66409
66409
|
return renderUtils.getLabJsonValue(props2.formData, field) || val;
|
|
@@ -66737,7 +66737,7 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
|
|
|
66737
66737
|
showDisabled,
|
|
66738
66738
|
placeholder,
|
|
66739
66739
|
options,
|
|
66740
|
-
dataRelationShip
|
|
66740
|
+
dataRelationShip,
|
|
66741
66741
|
isAutoLineBreak
|
|
66742
66742
|
} = useWidgetStaticAttrs(props2.widget);
|
|
66743
66743
|
const multiple = fieldType === FIELD_TYPE.ENUM_MULTI || fieldType === FIELD_TYPE.OPTION_MULTI;
|
|
@@ -66856,7 +66856,7 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
|
|
|
66856
66856
|
});
|
|
66857
66857
|
function readonlyCallback(val) {
|
|
66858
66858
|
if (val) {
|
|
66859
|
-
if (
|
|
66859
|
+
if (dataRelationShip?.platformType === PlatformEnum.INTEGRATION_PAAS_DP) {
|
|
66860
66860
|
return val;
|
|
66861
66861
|
}
|
|
66862
66862
|
return renderUtils.getLabJsonValue(props2.formData, field);
|
|
@@ -67095,7 +67095,8 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
67095
67095
|
showDisplayStatus,
|
|
67096
67096
|
bindCompStyleType,
|
|
67097
67097
|
placeholder,
|
|
67098
|
-
realRefRecordNo
|
|
67098
|
+
realRefRecordNo,
|
|
67099
|
+
dataRelationShip
|
|
67099
67100
|
} = useWidgetStaticAttrs(props2.widget);
|
|
67100
67101
|
const isPlainTextField = computed(
|
|
67101
67102
|
() => [FIELD_TYPE.RECORD_NO, FIELD_TYPE.ORDER_NO, FIELD_TYPE.EXTERNAL_REF_NO].includes(fieldType)
|
|
@@ -68222,6 +68223,7 @@ function useRuleProps({
|
|
|
68222
68223
|
fieldKey: path,
|
|
68223
68224
|
sheetId,
|
|
68224
68225
|
required: true,
|
|
68226
|
+
blockOnFailure: false,
|
|
68225
68227
|
replace: true
|
|
68226
68228
|
});
|
|
68227
68229
|
};
|
|
@@ -68885,10 +68887,10 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
68885
68887
|
options: initialOptions,
|
|
68886
68888
|
newTotalCount,
|
|
68887
68889
|
newQueryDataRef,
|
|
68888
|
-
dataRelationShip
|
|
68890
|
+
dataRelationShip
|
|
68889
68891
|
} = useWidgetStaticAttrs(props2.widget);
|
|
68890
68892
|
function resolveWarehouseId() {
|
|
68891
|
-
return
|
|
68893
|
+
return dataRelationShip?.paramsConfig?.warehouseId ?? newQueryDataRef.value?.warehouse_id_ ?? props2.formData?.[F.warehouse];
|
|
68892
68894
|
}
|
|
68893
68895
|
const { quickSearchField, quickSearchExp, autofillRules, enableAutofill } = props2.widget.props;
|
|
68894
68896
|
const { applyAutofillRules } = useAutofill();
|
|
@@ -70257,7 +70259,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
70257
70259
|
const props2 = __props;
|
|
70258
70260
|
const emit2 = __emit;
|
|
70259
70261
|
const { value, onChange, onBlur, realFieldId, annotationInfo, setRowField, patchRow } = useNocodeFormWidget(props2, emit2);
|
|
70260
|
-
const { field, fieldType, bizType, dataRelationShip
|
|
70262
|
+
const { field, fieldType, bizType, dataRelationShip, newComponentProps } = useWidgetStaticAttrs(
|
|
70261
70263
|
props2.widget
|
|
70262
70264
|
);
|
|
70263
70265
|
const { formConfig: formConfig2 } = useRuntimeInstanceServices();
|
|
@@ -70310,11 +70312,11 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
70310
70312
|
const renderScript = ref();
|
|
70311
70313
|
const traceRef = ref();
|
|
70312
70314
|
const isContentHighlight = computed(
|
|
70313
|
-
() =>
|
|
70315
|
+
() => dataRelationShip?.contentHighlight[ComponentTypeEnum.Trace]?.includes(value.value)
|
|
70314
70316
|
);
|
|
70315
70317
|
const readonlyCallback = (val) => {
|
|
70316
70318
|
if (consumeObjectRole.value === FIELD_TYPE.E_SOP) {
|
|
70317
|
-
if (
|
|
70319
|
+
if (dataRelationShip?.platformType === PlatformEnum.INTEGRATION_PAAS_DP) {
|
|
70318
70320
|
return val;
|
|
70319
70321
|
}
|
|
70320
70322
|
if (!val) {
|
|
@@ -70783,7 +70785,7 @@ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
|
70783
70785
|
() => !!(annotationInfo.value && annotationInfo.value.showValidatorClass)
|
|
70784
70786
|
);
|
|
70785
70787
|
const pdfMode = inject(NCB_PROVIDE.IS_PDF, false);
|
|
70786
|
-
const { showRequired, showDisabled, showDisplayStatus, dataRelationShip
|
|
70788
|
+
const { showRequired, showDisabled, showDisplayStatus, dataRelationShip } = useWidgetStaticAttrs(
|
|
70787
70789
|
props2.widget
|
|
70788
70790
|
);
|
|
70789
70791
|
const value = computed(() => readSealValue(props2.modelValue, props2.widget.props.sealPosition));
|
|
@@ -70791,9 +70793,9 @@ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
|
70791
70793
|
const sealImageUrl = computed(() => transfer(value.value.sealImage || ""));
|
|
70792
70794
|
const stamped = computed(() => isSealStamped(props2.modelValue));
|
|
70793
70795
|
const printMode = computed(
|
|
70794
|
-
() => props2.printMode || pdfMode || !!
|
|
70796
|
+
() => props2.printMode || pdfMode || !!dataRelationShip?.__isPrintRender
|
|
70795
70797
|
);
|
|
70796
|
-
const isDetailMode = computed(() =>
|
|
70798
|
+
const isDetailMode = computed(() => dataRelationShip?.renderModeType === RenderModeEnum.ViewMode);
|
|
70797
70799
|
const isReadOnlyMode = computed(() => isDetailMode.value || printMode.value);
|
|
70798
70800
|
const hasNullValSymbol = computed(() => {
|
|
70799
70801
|
const symbol = props2.widget.props.nullValSymbol;
|
|
@@ -70810,7 +70812,7 @@ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
|
70810
70812
|
if (!showSealException.value || !editable.value || !showRequired.value || stamped.value) {
|
|
70811
70813
|
return false;
|
|
70812
70814
|
}
|
|
70813
|
-
const errors =
|
|
70815
|
+
const errors = dataRelationShip?.validatorMessageMap?.[realFieldId.value];
|
|
70814
70816
|
if (!Array.isArray(errors)) return false;
|
|
70815
70817
|
return errors.some((item) => {
|
|
70816
70818
|
try {
|
|
@@ -73723,7 +73725,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
73723
73725
|
props2,
|
|
73724
73726
|
emit2
|
|
73725
73727
|
);
|
|
73726
|
-
const { field, fieldType, bizType, dataRelationShip
|
|
73728
|
+
const { field, fieldType, bizType, dataRelationShip, showDisplayStatus, newComponentProps } = useWidgetStaticAttrs(props2.widget);
|
|
73727
73729
|
const customRenderTag = computed(() => props2.widget.props.customRenderTag);
|
|
73728
73730
|
const consumeRole = computed(() => bizType || fieldType);
|
|
73729
73731
|
const isDevice = computed(() => consumeRole.value === FIELD_TYPE.DEVICE);
|
|
@@ -73779,12 +73781,12 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
73779
73781
|
}
|
|
73780
73782
|
});
|
|
73781
73783
|
const isContentHighlight = computed(
|
|
73782
|
-
() =>
|
|
73784
|
+
() => dataRelationShip?.contentHighlight[ComponentTypeEnum.Trace]?.includes(value.value)
|
|
73783
73785
|
);
|
|
73784
73786
|
watch(
|
|
73785
73787
|
() => [props2.modelValue, showDisplayStatus.value],
|
|
73786
73788
|
async () => {
|
|
73787
|
-
if (
|
|
73789
|
+
if (dataRelationShip?.renderPurpose) return;
|
|
73788
73790
|
if (!isLotContainer) return;
|
|
73789
73791
|
if (showDisplayStatus.value !== "readonly-text") return;
|
|
73790
73792
|
const childId = props2.modelValue;
|
|
@@ -73834,13 +73836,13 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
73834
73836
|
return !!res;
|
|
73835
73837
|
}
|
|
73836
73838
|
const readonlyCallback = (val) => {
|
|
73837
|
-
if (
|
|
73839
|
+
if (dataRelationShip?.platformType === PlatformEnum.INTEGRATION_PAAS_DP) {
|
|
73838
73840
|
return val;
|
|
73839
73841
|
}
|
|
73840
73842
|
const label = renderUtils.getLabJsonValue(props2.formData, field) || renderUtils.getLabByDict(props2.formData, field);
|
|
73841
73843
|
const childName = productionContainerChildName.value;
|
|
73842
73844
|
if (isLotContainer && hasEbrInfo.value && label && childName) {
|
|
73843
|
-
if (
|
|
73845
|
+
if (dataRelationShip?.annSwitchStatus) {
|
|
73844
73846
|
renderScript.value = void 0;
|
|
73845
73847
|
return label;
|
|
73846
73848
|
}
|
|
@@ -74075,7 +74077,7 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
74075
74077
|
customDateFormat,
|
|
74076
74078
|
field
|
|
74077
74079
|
} = reactive(props2.widget.props);
|
|
74078
|
-
const { showRequired, showDisabled, showDisplayStatus, dataRelationShip
|
|
74080
|
+
const { showRequired, showDisabled, showDisplayStatus, dataRelationShip, placeholder } = useWidgetStaticAttrs(props2.widget);
|
|
74079
74081
|
const { instance, formConfig: formConfig2, formStateStore, events: events2 } = useRuntimeInstanceServices();
|
|
74080
74082
|
const { transfer } = useWebUpload();
|
|
74081
74083
|
const signatures = computed({
|
|
@@ -74099,9 +74101,9 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
74099
74101
|
return signatureNumber === SignatureNumberTypeEnum.SIGNATURE_MULTIPLE || signatureNumber === SignatureNumberTypeEnum.SIGNATURE_SINGLE && !signatures.value.length;
|
|
74100
74102
|
});
|
|
74101
74103
|
const isEditable = computed(() => showDisplayStatus.value === "edit-component");
|
|
74102
|
-
const isPrintRender = computed(() => Boolean(
|
|
74104
|
+
const isPrintRender = computed(() => Boolean(dataRelationShip?.renderPurpose));
|
|
74103
74105
|
const showFilledBackground = computed(
|
|
74104
|
-
() => !
|
|
74106
|
+
() => !dataRelationShip?.isMockReport && dataRelationShip?.platformType !== PlatformEnum.INTEGRATION_PAAS_DP && (!dataRelationShip?.renderPurpose || Boolean(dataRelationShip?.showPrintFieldBg))
|
|
74105
74107
|
);
|
|
74106
74108
|
const signatureCellContentClasses = computed(() => [
|
|
74107
74109
|
"signature-cell-content",
|
|
@@ -74117,14 +74119,14 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
74117
74119
|
return fixedTable?.bizTableConfig;
|
|
74118
74120
|
});
|
|
74119
74121
|
const validateSignatureFields = async () => {
|
|
74120
|
-
const uniqueId =
|
|
74122
|
+
const uniqueId = dataRelationShip?.uniqueId;
|
|
74121
74123
|
if (!uniqueId) return;
|
|
74122
74124
|
const validationPaths = resolveSignatureValidationPaths({
|
|
74123
74125
|
config: fixedTableConfig.value,
|
|
74124
74126
|
field: props2.widget?.props?.field ?? field,
|
|
74125
74127
|
subtableFieldId: props2.subtableFieldId,
|
|
74126
74128
|
rowKey: props2.subtableFieldId ? formStateStore.value.getRowKey(props2.formData, props2.subtableFieldId) : void 0,
|
|
74127
|
-
modelKey: props2.widget.props.modelKey ??
|
|
74129
|
+
modelKey: props2.widget.props.modelKey ?? dataRelationShip?.modelKey,
|
|
74128
74130
|
subModelKey: props2.widget.props.subModelKey,
|
|
74129
74131
|
ruleKeys: instance.value.validation.listRuleKeys()
|
|
74130
74132
|
});
|
|
@@ -74344,7 +74346,7 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
74344
74346
|
"show-tip": false,
|
|
74345
74347
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => unref(setSelectAnnotationId)(
|
|
74346
74348
|
unref(annotationInfo) ? unref(annotationInfo).annFieldId : void 0,
|
|
74347
|
-
unref(
|
|
74349
|
+
unref(dataRelationShip),
|
|
74348
74350
|
void 0,
|
|
74349
74351
|
unref(events2)
|
|
74350
74352
|
), ["stop"]))
|
|
@@ -79578,7 +79580,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
79578
79580
|
showDisabled,
|
|
79579
79581
|
showDisplayStatus,
|
|
79580
79582
|
uploadConfig,
|
|
79581
|
-
dataRelationShip
|
|
79583
|
+
dataRelationShip,
|
|
79582
79584
|
placeholder,
|
|
79583
79585
|
targetFieldId
|
|
79584
79586
|
} = useWidgetStaticAttrs(props2.widget);
|
|
@@ -79590,7 +79592,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
79590
79592
|
const value = computed(() => renderUtils.getValue(props2.modelValue, true));
|
|
79591
79593
|
const isEditable = computed(() => showDisplayStatus.value === "edit-component");
|
|
79592
79594
|
const showFilledBackground = computed(
|
|
79593
|
-
() => !
|
|
79595
|
+
() => !dataRelationShip?.isMockReport && dataRelationShip?.platformType !== PlatformEnum.INTEGRATION_PAAS_DP && (!dataRelationShip?.renderPurpose || Boolean(dataRelationShip?.showPrintFieldBg))
|
|
79594
79596
|
);
|
|
79595
79597
|
const fileList = computed(
|
|
79596
79598
|
() => value.value.map((path) => ({
|
|
@@ -79628,7 +79630,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
79628
79630
|
annotationInfo: unref(annotationInfo),
|
|
79629
79631
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => unref(setSelectAnnotationId)(
|
|
79630
79632
|
unref(annotationInfo) ? unref(annotationInfo).annFieldId : void 0,
|
|
79631
|
-
unref(
|
|
79633
|
+
unref(dataRelationShip),
|
|
79632
79634
|
void 0,
|
|
79633
79635
|
events2.value
|
|
79634
79636
|
), ["stop"]))
|
|
@@ -80243,7 +80245,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
80243
80245
|
showDisabled,
|
|
80244
80246
|
showDisplayStatus,
|
|
80245
80247
|
uploadConfig,
|
|
80246
|
-
dataRelationShip
|
|
80248
|
+
dataRelationShip,
|
|
80247
80249
|
placeholder,
|
|
80248
80250
|
targetFieldId
|
|
80249
80251
|
} = useWidgetStaticAttrs(props2.widget);
|
|
@@ -80254,14 +80256,14 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
80254
80256
|
const popoverPreviewVisible = ref(false);
|
|
80255
80257
|
const previewVisible = ref(false);
|
|
80256
80258
|
const previewIndex = ref(0);
|
|
80257
|
-
const isPrintRender = computed(() => Boolean(
|
|
80259
|
+
const isPrintRender = computed(() => Boolean(dataRelationShip?.renderPurpose));
|
|
80258
80260
|
const isAdaptive = computed(() => imageDisplayMode === ImageDisplayModeEnum.ADAPTIVE);
|
|
80259
80261
|
const maxCount = computed(() => isAdaptive.value ? 1 : uploadConfig.maxCount);
|
|
80260
80262
|
const value = computed(() => renderUtils.getValue(props2.modelValue, true));
|
|
80261
80263
|
const images = computed(() => value.value.map((path) => ({ path, name: path.split("/").pop() })));
|
|
80262
80264
|
const isEditable = computed(() => showDisplayStatus.value === "edit-component");
|
|
80263
80265
|
const showFilledBackground = computed(
|
|
80264
|
-
() => !
|
|
80266
|
+
() => !dataRelationShip?.isMockReport && dataRelationShip?.platformType !== PlatformEnum.INTEGRATION_PAAS_DP && (!dataRelationShip?.renderPurpose || Boolean(dataRelationShip?.showPrintFieldBg))
|
|
80265
80267
|
);
|
|
80266
80268
|
const handleVisibleChange = (nextVisible) => {
|
|
80267
80269
|
if (!nextVisible && popoverPreviewVisible.value) return;
|
|
@@ -80280,7 +80282,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
80280
80282
|
annotationInfo: unref(annotationInfo),
|
|
80281
80283
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => unref(setSelectAnnotationId)(
|
|
80282
80284
|
unref(annotationInfo) ? unref(annotationInfo).annFieldId : void 0,
|
|
80283
|
-
unref(
|
|
80285
|
+
unref(dataRelationShip),
|
|
80284
80286
|
void 0,
|
|
80285
80287
|
unref(events2)
|
|
80286
80288
|
), ["stop"]))
|
|
@@ -80427,7 +80429,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
80427
80429
|
props2,
|
|
80428
80430
|
emit2
|
|
80429
80431
|
);
|
|
80430
|
-
const { placeholder, fieldType, field, showRequired, showDisabled, options, dataRelationShip
|
|
80432
|
+
const { placeholder, fieldType, field, showRequired, showDisabled, options, dataRelationShip } = useWidgetStaticAttrs(props2.widget);
|
|
80431
80433
|
const multiple = fieldType === FIELD_TYPE.USER_MULTI;
|
|
80432
80434
|
const {
|
|
80433
80435
|
selectRef,
|
|
@@ -80512,7 +80514,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
80512
80514
|
);
|
|
80513
80515
|
function readonlyCallback(val) {
|
|
80514
80516
|
if (val) {
|
|
80515
|
-
if (
|
|
80517
|
+
if (dataRelationShip?.platformType === PlatformEnum.INTEGRATION_PAAS_DP) {
|
|
80516
80518
|
return val;
|
|
80517
80519
|
}
|
|
80518
80520
|
return renderUtils.getLabJsonValue(props2.formData, field);
|
|
@@ -81544,7 +81546,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
81544
81546
|
formData: {}
|
|
81545
81547
|
},
|
|
81546
81548
|
setup(__props) {
|
|
81547
|
-
const
|
|
81549
|
+
const dataRelationShip = inject(NCB_PROVIDE.DATA_RELATION_SHIP);
|
|
81548
81550
|
const props2 = __props;
|
|
81549
81551
|
const { patchRow } = useRuntimeRowState(() => props2.formData);
|
|
81550
81552
|
const mapping = {
|
|
@@ -81553,7 +81555,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
81553
81555
|
value: "valueField"
|
|
81554
81556
|
};
|
|
81555
81557
|
const isFillIn = computed(() => {
|
|
81556
|
-
return
|
|
81558
|
+
return dataRelationShip?.renderModeType === RenderModeEnum.FormMode;
|
|
81557
81559
|
});
|
|
81558
81560
|
const currentValue = computed(() => {
|
|
81559
81561
|
const obj = {};
|
|
@@ -82000,7 +82002,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
82000
82002
|
props2
|
|
82001
82003
|
);
|
|
82002
82004
|
const { formStateStore, fields } = useRuntimeInstanceServices();
|
|
82003
|
-
const
|
|
82005
|
+
const dataRelationShip = inject(NCB_PROVIDE.DATA_RELATION_SHIP);
|
|
82004
82006
|
const runtimeWidget = computed(() => fields.value?.findWidgetById(props2.widget.id));
|
|
82005
82007
|
const navigationRowKey = computed(() => {
|
|
82006
82008
|
const tableKey = props2.subtableFieldId || props2.widget.props.subFieldKey;
|
|
@@ -82095,7 +82097,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
82095
82097
|
"data-runtime-row-key": navigationRowKey.value,
|
|
82096
82098
|
"data-runtime-field-id": unref(targetFieldId),
|
|
82097
82099
|
"data-runtime-subtable-key": __props.subtableFieldId || __props.widget.props.subFieldKey,
|
|
82098
|
-
"data-runtime-model-key": __props.widget.props.modelKey ?? unref(
|
|
82100
|
+
"data-runtime-model-key": __props.widget.props.modelKey ?? unref(dataRelationShip)?.modelKey,
|
|
82099
82101
|
"data-runtime-sub-model-key": __props.widget.props.subModelKey,
|
|
82100
82102
|
"data-runtime-node-id": runtimeWidget.value?.nodeId,
|
|
82101
82103
|
onFocus,
|
|
@@ -90076,12 +90078,12 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
90076
90078
|
const position = computed(
|
|
90077
90079
|
() => readSealValue(props2.formData[field.value], props2.widget.props.sealPosition).sealPosition
|
|
90078
90080
|
);
|
|
90079
|
-
const { showDisplayStatus, showDisabled, dataRelationShip
|
|
90081
|
+
const { showDisplayStatus, showDisabled, dataRelationShip } = useWidgetStaticAttrs(props2.widget);
|
|
90080
90082
|
const pdfMode = inject(NCB_PROVIDE.IS_PDF, false);
|
|
90081
90083
|
const printMode = computed(
|
|
90082
|
-
() => props2.printMode || pdfMode || !!
|
|
90084
|
+
() => props2.printMode || pdfMode || !!dataRelationShip?.__isPrintRender
|
|
90083
90085
|
);
|
|
90084
|
-
const isDetailMode = computed(() =>
|
|
90086
|
+
const isDetailMode = computed(() => dataRelationShip?.renderModeType === RenderModeEnum.ViewMode);
|
|
90085
90087
|
const isReadOnlyMode = computed(() => isDetailMode.value || printMode.value);
|
|
90086
90088
|
const blocked = computed(
|
|
90087
90089
|
() => isReadOnlyMode.value || showDisabled.value || ["readonly-text", "readonly-component"].includes(showDisplayStatus.value)
|
|
@@ -90942,8 +90944,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
90942
90944
|
printTask = (async () => {
|
|
90943
90945
|
if (document.activeElement instanceof HTMLElement) document.activeElement.blur();
|
|
90944
90946
|
await nextTick();
|
|
90945
|
-
const { printRuntimeInstance } = await import("./print-runtime-instance-
|
|
90946
|
-
const { default: renderer } = await import("./print-snapshot-renderer-
|
|
90947
|
+
const { printRuntimeInstance } = await import("./print-runtime-instance-DP1Lp8e2.js");
|
|
90948
|
+
const { default: renderer } = await import("./print-snapshot-renderer-Cf73dKcd.js");
|
|
90947
90949
|
if (abort.signal.aborted) throw new Error("打印已取消");
|
|
90948
90950
|
printRenderer.value = markRaw(renderer);
|
|
90949
90951
|
await printRuntimeInstance(
|
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G, H, J, K, M, N, O, Q, U, B, W, X, Y, Z, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, x, a9, aa, y, ab, P, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, h } from "./index-
|
|
1
|
+
import { G, H, J, K, M, N, O, Q, U, B, W, X, Y, Z, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, x, a9, aa, y, ab, P, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, h } from "./index-luggjixn.js";
|
|
2
2
|
import { O as O2, _, V } from "./online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-BEX02BrW.js";
|
|
3
3
|
export {
|
|
4
4
|
G as AiTmplEditor,
|
|
@@ -3,7 +3,7 @@ import { P as PaginationFormat } from "./dynamic-table-action.vue_vue_type_style
|
|
|
3
3
|
import "lodash-es";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
6
|
-
import { j as calcText } from "./index-
|
|
6
|
+
import { j as calcText } from "./index-luggjixn.js";
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "pagination-design",
|
|
9
9
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as captureRuntimePrintSnapshot, w as waitPrintFonts, e as waitPrintImages, p as printPagesInIframe } from "./index-
|
|
1
|
+
import { d as captureRuntimePrintSnapshot, w as waitPrintFonts, e as waitPrintImages, p as printPagesInIframe } from "./index-luggjixn.js";
|
|
2
2
|
async function printRuntimeInstance(record, basicInfo, renderSnapshot, signal, options = {}) {
|
|
3
3
|
if (!record.controller) throw new Error("表单尚未完成初始化,暂时无法打印");
|
|
4
4
|
const snapshot = await record.controller.preparePrintSnapshot(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, provide, ref, onErrorCaptured, onBeforeUnmount, openBlock, createBlock, unref } from "vue";
|
|
2
|
-
import { R as RuntimeFormStateStore, I as RuntimeInstanceRegistry, N as NCB_PROVIDE } from "./dynamic-table-action-
|
|
3
|
-
import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "./sub-table-factory-
|
|
4
|
-
import { _ as _sfc_main$1 } from "./index-
|
|
2
|
+
import { R as RuntimeFormStateStore, I as RuntimeInstanceRegistry, N as NCB_PROVIDE } from "./dynamic-table-action-BQfJFJ4j.js";
|
|
3
|
+
import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "./sub-table-factory-CNkIUJTC.js";
|
|
4
|
+
import { _ as _sfc_main$1 } from "./index-luggjixn.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "print-snapshot-renderer",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeClass, createElementVNode } from "vue";
|
|
2
|
-
import { B as BwipCodeTypeOptions, l as loadBwip } from "./index-
|
|
2
|
+
import { B as BwipCodeTypeOptions, l as loadBwip } from "./index-luggjixn.js";
|
|
3
3
|
const _hoisted_1 = ["src"];
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "qrcode-design",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createBlock, unref, normalizeClass } from "vue";
|
|
2
2
|
import { a as useNamespace } from "./AntdIcon-DCIaV352.js";
|
|
3
|
-
import { m as useDrop, T as TransferType, h as useModelFields, o as getFieldIcon, S as SingleDrop } from "./index-
|
|
3
|
+
import { m as useDrop, T as TransferType, h as useModelFields, o as getFieldIcon, S as SingleDrop } from "./index-luggjixn.js";
|
|
4
4
|
import { a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DZRtpBe8.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "single-field-drop",
|