@gct-paas/word 0.1.63-beta.8 → 0.1.63
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/index.es.js +112 -120
- package/dist/sdk/doc-runtime/factories/runtime-json-builder.d.ts +1 -9
- package/dist/suites/edhr/panel-schema/paper/modules/page-size-config/index.d.ts +12 -0
- package/dist/suites/edhr/panel-schema/paper/modules/page-size-config/page-size-config.vue.d.ts +6 -0
- package/dist/word.css +9 -9
- package/package.json +1 -1
- package/dist/suites/edhr/panel-schema/paper/modules/page-size-config.vue.d.ts +0 -2
package/dist/index.es.js
CHANGED
|
@@ -33535,7 +33535,7 @@ function getValue$1(value, multiple) {
|
|
|
33535
33535
|
}
|
|
33536
33536
|
return value;
|
|
33537
33537
|
}
|
|
33538
|
-
function setValue(value, valuePath, payload) {
|
|
33538
|
+
function setValue$1(value, valuePath, payload) {
|
|
33539
33539
|
const { multiple = false, valueKey } = payload || {};
|
|
33540
33540
|
const values = multiple ? value?.map((item) => valueKey ? item[valueKey] : item).join(",") || null : value ?? null;
|
|
33541
33541
|
return {
|
|
@@ -81339,7 +81339,7 @@ function getLabelPath(path) {
|
|
|
81339
81339
|
function getHrefPath(path) {
|
|
81340
81340
|
return path + HREF_SUFFIX;
|
|
81341
81341
|
}
|
|
81342
|
-
function getIdPath(path) {
|
|
81342
|
+
function getIdPath$1(path) {
|
|
81343
81343
|
return path + ID_SUFFIX;
|
|
81344
81344
|
}
|
|
81345
81345
|
function isCompanionIdPath(path) {
|
|
@@ -84511,7 +84511,7 @@ function createIdEnricher(reg) {
|
|
|
84511
84511
|
return createCompanionEnricher(reg, {
|
|
84512
84512
|
cacheNamespace: "id_enrich_resolve",
|
|
84513
84513
|
defaultIdPrefix: "id:",
|
|
84514
|
-
getCompanionPath: getIdPath,
|
|
84514
|
+
getCompanionPath: getIdPath$1,
|
|
84515
84515
|
preserveOnHydrate: true,
|
|
84516
84516
|
skipWhenCompanionPresent: true,
|
|
84517
84517
|
buildCacheKey: (path, value, doc) => ({
|
|
@@ -85362,7 +85362,7 @@ class DataManager {
|
|
|
85362
85362
|
return getHrefPath(path);
|
|
85363
85363
|
}
|
|
85364
85364
|
getIdPath(path) {
|
|
85365
|
-
return getIdPath(path);
|
|
85365
|
+
return getIdPath$1(path);
|
|
85366
85366
|
}
|
|
85367
85367
|
getFieldRuntimeSpecificConfigKeys() {
|
|
85368
85368
|
return [...this.fieldRuntimeConfigByPath.keys()];
|
|
@@ -86591,7 +86591,7 @@ class DataManager {
|
|
|
86591
86591
|
designValuePath,
|
|
86592
86592
|
getLabelPath(designValuePath),
|
|
86593
86593
|
getHrefPath(designValuePath),
|
|
86594
|
-
getIdPath(designValuePath)
|
|
86594
|
+
getIdPath$1(designValuePath)
|
|
86595
86595
|
];
|
|
86596
86596
|
const wildcardKeys = new Set(bases.map((path) => this.convertPathToWildcard(path)));
|
|
86597
86597
|
const result = new Set(bases);
|
|
@@ -86615,7 +86615,7 @@ class DataManager {
|
|
|
86615
86615
|
paths.add(path);
|
|
86616
86616
|
paths.add(getLabelPath(path));
|
|
86617
86617
|
paths.add(getHrefPath(path));
|
|
86618
|
-
paths.add(getIdPath(path));
|
|
86618
|
+
paths.add(getIdPath$1(path));
|
|
86619
86619
|
}
|
|
86620
86620
|
return [...paths];
|
|
86621
86621
|
}
|
|
@@ -86626,7 +86626,7 @@ class DataManager {
|
|
|
86626
86626
|
designValuePath,
|
|
86627
86627
|
getLabelPath(designValuePath),
|
|
86628
86628
|
getHrefPath(designValuePath),
|
|
86629
|
-
getIdPath(designValuePath)
|
|
86629
|
+
getIdPath$1(designValuePath)
|
|
86630
86630
|
].map((path) => this.convertPathToWildcard(path))
|
|
86631
86631
|
);
|
|
86632
86632
|
const nodes = this.collectDepNodes();
|
|
@@ -86873,7 +86873,7 @@ function buildFieldSelectUpdates(valuePath, value, optionId, options = {}) {
|
|
|
86873
86873
|
[valuePath]: normalizedValue
|
|
86874
86874
|
};
|
|
86875
86875
|
if (options.persistOptionId) {
|
|
86876
|
-
updates[getIdPath(valuePath)] = optionId ?? null;
|
|
86876
|
+
updates[getIdPath$1(valuePath)] = optionId ?? null;
|
|
86877
86877
|
}
|
|
86878
86878
|
return updates;
|
|
86879
86879
|
}
|
|
@@ -89134,7 +89134,7 @@ const CLEAR_ON_MFG_ORDER_SWITCH = [F$2.materialContainer, F$2.productionContaine
|
|
|
89134
89134
|
const CLEAR_ON_MATERIAL_CONTAINER_NO_EMPTY = [...CLEAR_ON_COMMON_EMPTY];
|
|
89135
89135
|
const CLEAR_ON_MATERIAL_CONTAINER_NO_SWITCH = [F$2.mfgOrder, F$2.productionContainer];
|
|
89136
89136
|
const CLEAR_ON_MATERIAL_CONTAINER_NO_MANUAL_SWITCH = [...CLEAR_ON_COMMON_EMPTY];
|
|
89137
|
-
const MATERIAL_CONTAINER_ID = getIdPath(F$2.materialContainer);
|
|
89137
|
+
const MATERIAL_CONTAINER_ID = getIdPath$1(F$2.materialContainer);
|
|
89138
89138
|
const PRODUCT_EDITABILITY_WATCH = [
|
|
89139
89139
|
F$2.materialContainer,
|
|
89140
89140
|
MATERIAL_CONTAINER_ID,
|
|
@@ -89444,7 +89444,7 @@ function handleMfgOrderChange(doc, subFieldKey, rowIndex) {
|
|
|
89444
89444
|
function handleMaterialContainerNoChange(doc, subFieldKey, rowIndex) {
|
|
89445
89445
|
const ctx = getRowChangeCtx(doc, subFieldKey, rowIndex);
|
|
89446
89446
|
if (!ctx) return;
|
|
89447
|
-
const clearWhenPresent = isBlank(ctx.row[getIdPath(F$2.materialContainer)]) ? [...CLEAR_ON_MATERIAL_CONTAINER_NO_MANUAL_SWITCH, ...CLEAR_ON_MATERIAL_CONTAINER_NO_SWITCH] : CLEAR_ON_MATERIAL_CONTAINER_NO_SWITCH;
|
|
89447
|
+
const clearWhenPresent = isBlank(ctx.row[getIdPath$1(F$2.materialContainer)]) ? [...CLEAR_ON_MATERIAL_CONTAINER_NO_MANUAL_SWITCH, ...CLEAR_ON_MATERIAL_CONTAINER_NO_SWITCH] : CLEAR_ON_MATERIAL_CONTAINER_NO_SWITCH;
|
|
89448
89448
|
handleIdentityFieldChange$1(
|
|
89449
89449
|
ctx,
|
|
89450
89450
|
F$2.materialContainer,
|
|
@@ -108002,33 +108002,16 @@ const DefaultDocxJson = {
|
|
|
108002
108002
|
fontTable,
|
|
108003
108003
|
footers
|
|
108004
108004
|
};
|
|
108005
|
-
const
|
|
108006
|
-
const
|
|
108007
|
-
|
|
108008
|
-
|
|
108009
|
-
|
|
108010
|
-
|
|
108011
|
-
|
|
108012
|
-
|
|
108013
|
-
|
|
108014
|
-
|
|
108015
|
-
width = 8391;
|
|
108016
|
-
height = 11906;
|
|
108017
|
-
break;
|
|
108018
|
-
case PaperSizeConst.CUSTOM:
|
|
108019
|
-
width = Number(UnitConverter.mmToTwip(options.width));
|
|
108020
|
-
height = Number(UnitConverter.mmToTwip(options.height));
|
|
108021
|
-
break;
|
|
108022
|
-
default:
|
|
108023
|
-
width = 11906;
|
|
108024
|
-
height = 16838;
|
|
108025
|
-
break;
|
|
108026
|
-
}
|
|
108027
|
-
if (direction === "landscape") {
|
|
108028
|
-
[width, height] = [height, width];
|
|
108029
|
-
}
|
|
108030
|
-
pgSz["@attrs"]["w:w"] = String(width);
|
|
108031
|
-
pgSz["@attrs"]["w:h"] = String(height);
|
|
108005
|
+
const getDirectedSize = (direction, mmWidth, mmHeight) => {
|
|
108006
|
+
const [short, long] = [mmWidth, mmHeight].sort((a, b2) => a - b2);
|
|
108007
|
+
const isLandscape = direction === "landscape";
|
|
108008
|
+
const width = isLandscape ? long : short;
|
|
108009
|
+
const height = isLandscape ? short : long;
|
|
108010
|
+
return { width, height };
|
|
108011
|
+
};
|
|
108012
|
+
const updatePgSzElInfo = (pgSz, mmWidth, mmHeight) => {
|
|
108013
|
+
pgSz["@attrs"]["w:w"] = String(UnitConverter.mmToTwip(mmWidth));
|
|
108014
|
+
pgSz["@attrs"]["w:h"] = String(UnitConverter.mmToTwip(mmHeight));
|
|
108032
108015
|
};
|
|
108033
108016
|
class RuntimeJsonBuilder {
|
|
108034
108017
|
json;
|
|
@@ -108051,10 +108034,11 @@ class RuntimeJsonBuilder {
|
|
|
108051
108034
|
/**
|
|
108052
108035
|
* 页面设置
|
|
108053
108036
|
*/
|
|
108054
|
-
setPageSize(
|
|
108037
|
+
setPageSize(mmWidth, mmHeight) {
|
|
108055
108038
|
const pgSz = this.findNode(this.json.document, "w:pgSz");
|
|
108056
|
-
if (
|
|
108057
|
-
|
|
108039
|
+
if (pgSz) {
|
|
108040
|
+
updatePgSzElInfo(pgSz, mmWidth, mmHeight);
|
|
108041
|
+
}
|
|
108058
108042
|
return this;
|
|
108059
108043
|
}
|
|
108060
108044
|
/**
|
|
@@ -108248,7 +108232,6 @@ class BomEntryValidator {
|
|
|
108248
108232
|
if (idSet.size > 1) {
|
|
108249
108233
|
throw new Error(
|
|
108250
108234
|
"整批替代不允许混用主料或者替代料"
|
|
108251
|
-
/*$t('sys.edhr.mcTable.notAllowMixSubstituteMaterial')*/
|
|
108252
108235
|
);
|
|
108253
108236
|
}
|
|
108254
108237
|
}
|
|
@@ -108295,7 +108278,6 @@ class BomEntryValidator {
|
|
|
108295
108278
|
if (["eq", "lte"].includes(this.bomEntry.qty_validation_rule_) && consumeNum > this.remainingNum) {
|
|
108296
108279
|
throw new Error(
|
|
108297
108280
|
"当前物料上料总消耗不能大于需求数量"
|
|
108298
|
-
/*$t('sys.edhr.mcTable.overMaterialConsumeError')*/
|
|
108299
108281
|
);
|
|
108300
108282
|
}
|
|
108301
108283
|
if (this.bomEntry.qty_validation_rule_ === "bounds") {
|
|
@@ -109505,55 +109487,52 @@ const syncMaterialConsumeTableBomInfo = async (templateId, docModel) => {
|
|
|
109505
109487
|
};
|
|
109506
109488
|
const initMaterialConsumeTableConfig = (doc, subConfig, tmplBomC) => {
|
|
109507
109489
|
if (!tmplBomC?.formInstBom?.formTmplBomList) return;
|
|
109508
|
-
tmplBomC.
|
|
109509
|
-
|
|
109510
|
-
personal_bom_enabled_,
|
|
109511
|
-
|
|
109512
|
-
|
|
109513
|
-
|
|
109514
|
-
|
|
109515
|
-
|
|
109516
|
-
|
|
109517
|
-
|
|
109518
|
-
|
|
109519
|
-
includedIds.push(e.product_id_.split(":").pop());
|
|
109520
|
-
(e.substitute_material_entries_ || []).forEach((_e) => {
|
|
109521
|
-
includedIds.push(_e.product_id_.split(":").pop());
|
|
109490
|
+
const useBomMode = tmplBomC.defaultMCPattern === MaterialConsumptionPatternEnum.BOM;
|
|
109491
|
+
tmplBomC.formInstBom.formTmplBomList.forEach(
|
|
109492
|
+
({ personal_bom_enabled_, entries_, table_key_ }) => {
|
|
109493
|
+
if (useBomMode) {
|
|
109494
|
+
const entries = personal_bom_enabled_ ? entries_ : tmplBomC.bomEntries;
|
|
109495
|
+
const includedIds = [];
|
|
109496
|
+
(entries || []).forEach((e) => {
|
|
109497
|
+
includedIds.push(e.product_id_.split(":").pop());
|
|
109498
|
+
(e.substitute_material_entries_ || []).forEach((_e) => {
|
|
109499
|
+
includedIds.push(_e.product_id_.split(":").pop());
|
|
109500
|
+
});
|
|
109522
109501
|
});
|
|
109523
|
-
|
|
109524
|
-
subConfig[`${table_key_}[n].product_id_`] = { "id_.in": includedIds };
|
|
109525
|
-
}
|
|
109526
|
-
const subFieldKey = table_key_.replace("$.", "");
|
|
109527
|
-
const rows = doc.dataManager.getRawData()[subFieldKey] || [];
|
|
109528
|
-
const rowCount = rows.length;
|
|
109529
|
-
repeat(rowCount || 1, (index2) => {
|
|
109530
|
-
MCDataUtil.disableQtyFields(doc.dataManager, `${table_key_}[${index2}]`);
|
|
109531
|
-
});
|
|
109532
|
-
rows.forEach((row, rowIndex) => {
|
|
109533
|
-
const rowPath = `${table_key_}[${rowIndex}]`;
|
|
109534
|
-
const tableController = tmplBomC?.findTableControllerByField(table_key_);
|
|
109535
|
-
if (row.product_id_) {
|
|
109536
|
-
const versionId = row.product_id_.split(":").pop();
|
|
109537
|
-
if (versionId) {
|
|
109538
|
-
subConfig[`${rowPath}.material_no_`] = {
|
|
109539
|
-
"product_id_.versionIn": [versionId]
|
|
109540
|
-
};
|
|
109541
|
-
}
|
|
109502
|
+
subConfig[`${table_key_}[n].product_id_`] = { "id_.in": includedIds };
|
|
109542
109503
|
}
|
|
109543
|
-
|
|
109544
|
-
|
|
109545
|
-
|
|
109546
|
-
|
|
109504
|
+
const subFieldKey = table_key_.replace("$.", "");
|
|
109505
|
+
const rows = doc.dataManager.getRawData()[subFieldKey] || [];
|
|
109506
|
+
const rowCount = rows.length;
|
|
109507
|
+
repeat(rowCount || 1, (index2) => {
|
|
109508
|
+
MCDataUtil.disableQtyFields(doc.dataManager, `${table_key_}[${index2}]`);
|
|
109547
109509
|
});
|
|
109548
|
-
|
|
109549
|
-
|
|
109510
|
+
rows.forEach((row, rowIndex) => {
|
|
109511
|
+
const rowPath = `${table_key_}[${rowIndex}]`;
|
|
109512
|
+
const tableController = tmplBomC?.findTableControllerByField(table_key_);
|
|
109513
|
+
if (row.product_id_) {
|
|
109514
|
+
const versionId = row.product_id_.split(":").pop();
|
|
109515
|
+
if (versionId) {
|
|
109516
|
+
subConfig[`${rowPath}.material_no_`] = {
|
|
109517
|
+
"product_id_.versionIn": [versionId]
|
|
109518
|
+
};
|
|
109519
|
+
}
|
|
109520
|
+
}
|
|
109521
|
+
MCDataUtil.updateViewFieldsDisablement({
|
|
109550
109522
|
dataManager: doc.dataManager,
|
|
109551
109523
|
rowPath,
|
|
109552
|
-
disabled:
|
|
109524
|
+
disabled: !!tableController?.getMaterialTypeIsView(row.product_id_)
|
|
109553
109525
|
});
|
|
109554
|
-
|
|
109555
|
-
|
|
109556
|
-
|
|
109526
|
+
if (row.is_confirmed_) {
|
|
109527
|
+
MCDataUtil.updateConfirmableFieldsDisablement({
|
|
109528
|
+
dataManager: doc.dataManager,
|
|
109529
|
+
rowPath,
|
|
109530
|
+
disabled: true
|
|
109531
|
+
});
|
|
109532
|
+
}
|
|
109533
|
+
});
|
|
109534
|
+
}
|
|
109535
|
+
);
|
|
109557
109536
|
};
|
|
109558
109537
|
class DocRequestStrategy {
|
|
109559
109538
|
props;
|
|
@@ -109672,32 +109651,28 @@ class SingleTemplateStrategy extends DocRequestStrategy {
|
|
|
109672
109651
|
console.warn(`Document template ${id} not found`);
|
|
109673
109652
|
return null;
|
|
109674
109653
|
}
|
|
109675
|
-
const {
|
|
109654
|
+
const {
|
|
109655
|
+
baseId,
|
|
109656
|
+
id: tmpId,
|
|
109657
|
+
paperSize,
|
|
109658
|
+
direction,
|
|
109659
|
+
width: w2,
|
|
109660
|
+
height: h2
|
|
109661
|
+
} = requestInfo;
|
|
109662
|
+
const { width, height } = getDirectedSize(direction, w2, h2);
|
|
109663
|
+
requestInfo.width = width;
|
|
109664
|
+
requestInfo.height = height;
|
|
109676
109665
|
if (!requestInfo.runtimeJson) {
|
|
109677
|
-
const json = new RuntimeJsonBuilder(DefaultDocxJson).setPageSize(
|
|
109678
|
-
width: requestInfo.width,
|
|
109679
|
-
height: requestInfo.height,
|
|
109680
|
-
direction: requestInfo.direction
|
|
109681
|
-
}).build();
|
|
109666
|
+
const json = new RuntimeJsonBuilder(DefaultDocxJson).setPageSize(width, height).build();
|
|
109682
109667
|
requestInfo.runtimeJson = JSON.stringify(json);
|
|
109683
109668
|
} else {
|
|
109684
109669
|
const jsonObj = JSON.parse(requestInfo.runtimeJson);
|
|
109685
109670
|
const wSec = jsonObj.document.elements[0]?.elements?.find((el) => el.name === "w:sectPr");
|
|
109686
109671
|
if (wSec) {
|
|
109687
|
-
wSec.paperSize =
|
|
109672
|
+
wSec.paperSize = paperSize;
|
|
109688
109673
|
const pgSzEl = wSec.elements?.find((el) => el.name === "w:pgSz");
|
|
109689
109674
|
if (pgSzEl) {
|
|
109690
|
-
|
|
109691
|
-
const [width, height] = [w2, h2].sort();
|
|
109692
|
-
updatePgSzElInfo(
|
|
109693
|
-
pgSzEl,
|
|
109694
|
-
paperSize,
|
|
109695
|
-
{
|
|
109696
|
-
width,
|
|
109697
|
-
height,
|
|
109698
|
-
direction
|
|
109699
|
-
}
|
|
109700
|
-
);
|
|
109675
|
+
updatePgSzElInfo(pgSzEl, width, height);
|
|
109701
109676
|
}
|
|
109702
109677
|
requestInfo.runtimeJson = JSON.stringify(jsonObj);
|
|
109703
109678
|
}
|
|
@@ -111768,7 +111743,7 @@ function appendFillMapPayload(payload, parsed, parseRules, runtimeValuePath) {
|
|
|
111768
111743
|
for (const formField of mapItem?.formFields || []) {
|
|
111769
111744
|
const path = resolveTargetPath(runtimeValuePath, formField);
|
|
111770
111745
|
if (!path || path === runtimeValuePath) continue;
|
|
111771
|
-
Object.assign(payload, setValue(value, path));
|
|
111746
|
+
Object.assign(payload, setValue$1(value, path));
|
|
111772
111747
|
}
|
|
111773
111748
|
}
|
|
111774
111749
|
}
|
|
@@ -111819,7 +111794,7 @@ async function submitDeviceScan(params) {
|
|
|
111819
111794
|
if (!row) {
|
|
111820
111795
|
return { ok: false, message: MSG_NO_DATA };
|
|
111821
111796
|
}
|
|
111822
|
-
const payload = setValue(row.__VALUE__, runtimeValuePath);
|
|
111797
|
+
const payload = setValue$1(row.__VALUE__, runtimeValuePath);
|
|
111823
111798
|
appendFillMapPayload(payload, parsed, parseRules, runtimeValuePath);
|
|
111824
111799
|
return { ok: true, payload, record: row._item };
|
|
111825
111800
|
}
|
|
@@ -124072,7 +124047,7 @@ const manifest$j = {
|
|
|
124072
124047
|
...commonDefaultProps
|
|
124073
124048
|
},
|
|
124074
124049
|
computed: {
|
|
124075
|
-
onValueChangeRule:
|
|
124050
|
+
onValueChangeRule: [...hyperlinkAndIdOnValueChangeRules]
|
|
124076
124051
|
}
|
|
124077
124052
|
};
|
|
124078
124053
|
const __vite_glob_0_53 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -125406,7 +125381,7 @@ const _sfc_main$2c = /* @__PURE__ */ defineComponent({
|
|
|
125406
125381
|
return getValue$1(value, isMultiple.value);
|
|
125407
125382
|
},
|
|
125408
125383
|
set(v) {
|
|
125409
|
-
const data = setValue(v, runtimeValuePath.value, {
|
|
125384
|
+
const data = setValue$1(v, runtimeValuePath.value, {
|
|
125410
125385
|
multiple: isMultiple.value
|
|
125411
125386
|
});
|
|
125412
125387
|
docInst.value?.dataManager.setMultiple(data, "user");
|
|
@@ -127440,9 +127415,13 @@ const _hoisted_1$1w = {
|
|
|
127440
127415
|
};
|
|
127441
127416
|
const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
127442
127417
|
__name: "page-size-config",
|
|
127418
|
+
props: {
|
|
127419
|
+
orientation: {}
|
|
127420
|
+
},
|
|
127443
127421
|
setup(__props) {
|
|
127444
127422
|
const { docInst } = useDocPubApiContext();
|
|
127445
127423
|
const { active, widget } = useActivePanel();
|
|
127424
|
+
const props = __props;
|
|
127446
127425
|
const isCustom = (s) => s === PaperSizeConst.CUSTOM;
|
|
127447
127426
|
const paperSizeOptions = Object.entries(PaperSizeConst).map(([paperSize2, value]) => {
|
|
127448
127427
|
const label = isCustom(paperSize2) ? "自定义" : `${paperSize2} (${PaperSizeMmMap[paperSize2].join("×")}mm)`;
|
|
@@ -127477,6 +127456,15 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
|
127477
127456
|
const [mmWidth, mmHeight] = PaperSizeMmMap[_sizeEnum];
|
|
127478
127457
|
handlePageSizeChange(mmWidth, mmHeight);
|
|
127479
127458
|
};
|
|
127459
|
+
watch(
|
|
127460
|
+
() => props.orientation,
|
|
127461
|
+
() => {
|
|
127462
|
+
const { mmWidth, mmHeight } = activeSecSize.value;
|
|
127463
|
+
const { width, height } = getDirectedSize(props.orientation, mmWidth, mmHeight);
|
|
127464
|
+
activeSecSize.value.mmWidth = width;
|
|
127465
|
+
activeSecSize.value.mmHeight = height;
|
|
127466
|
+
}
|
|
127467
|
+
);
|
|
127480
127468
|
return (_ctx, _cache) => {
|
|
127481
127469
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
127482
127470
|
createVNode(unref(GctFormItem), {
|
|
@@ -127532,7 +127520,7 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
|
127532
127520
|
};
|
|
127533
127521
|
}
|
|
127534
127522
|
});
|
|
127535
|
-
const PageSizeConfig = /* @__PURE__ */ _export_sfc(_sfc_main$1U, [["__scopeId", "data-v-
|
|
127523
|
+
const PageSizeConfig = /* @__PURE__ */ _export_sfc(_sfc_main$1U, [["__scopeId", "data-v-0c96db84"]]);
|
|
127536
127524
|
const _hoisted_1$1v = { style: { "display": "flex", "align-items": "center" } };
|
|
127537
127525
|
const _hoisted_2$V = { class: "form-item-end" };
|
|
127538
127526
|
const _hoisted_3$F = { style: { "margin-top": "8px" } };
|
|
@@ -127727,7 +127715,7 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
127727
127715
|
}, {
|
|
127728
127716
|
default: withCtx(() => [
|
|
127729
127717
|
createElementVNode("div", _hoisted_3$E, [
|
|
127730
|
-
createVNode(PageSizeConfig),
|
|
127718
|
+
createVNode(PageSizeConfig, { orientation: orient.value }, null, 8, ["orientation"]),
|
|
127731
127719
|
createVNode(unref(GctFormItem), {
|
|
127732
127720
|
label: "页面方向",
|
|
127733
127721
|
inline: false
|
|
@@ -127790,7 +127778,7 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
127790
127778
|
};
|
|
127791
127779
|
}
|
|
127792
127780
|
});
|
|
127793
|
-
const PaperPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1S, [["__scopeId", "data-v-
|
|
127781
|
+
const PaperPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1S, [["__scopeId", "data-v-243a03df"]]);
|
|
127794
127782
|
const schema$j = {
|
|
127795
127783
|
key: "paper.basic",
|
|
127796
127784
|
title: "表单属性",
|
|
@@ -129173,7 +129161,7 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
129173
129161
|
};
|
|
129174
129162
|
}
|
|
129175
129163
|
});
|
|
129176
|
-
const MaterialConsumeTablePanel = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["__scopeId", "data-v-
|
|
129164
|
+
const MaterialConsumeTablePanel = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["__scopeId", "data-v-0e3048f6"]]);
|
|
129177
129165
|
const schema$a = createTablePanelSchema("material-consume-table.basic", MaterialConsumeTablePanel);
|
|
129178
129166
|
const schema$9 = createTablePanelSchema("fixed-table.basic", BoundedSubTablePanel);
|
|
129179
129167
|
const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
@@ -139670,7 +139658,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
139670
139658
|
emitChange(value);
|
|
139671
139659
|
}
|
|
139672
139660
|
function emitChange(value) {
|
|
139673
|
-
const data = setValue(value, runtimeValuePath.value, {
|
|
139661
|
+
const data = setValue$1(value, runtimeValuePath.value, {
|
|
139674
139662
|
multiple: props.isMultiple
|
|
139675
139663
|
});
|
|
139676
139664
|
emit("change", data);
|
|
@@ -139967,7 +139955,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
139967
139955
|
emitChange(null);
|
|
139968
139956
|
}
|
|
139969
139957
|
function emitChange(value) {
|
|
139970
|
-
const data = setValue(value, runtimeValuePath.value, {
|
|
139958
|
+
const data = setValue$1(value, runtimeValuePath.value, {
|
|
139971
139959
|
multiple: props.isMultiple
|
|
139972
139960
|
});
|
|
139973
139961
|
emit("change", data);
|
|
@@ -140055,7 +140043,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
140055
140043
|
() => isDateTime.value ? resolveDateTimePickerTimeFormat(widgetProps.value) : void 0
|
|
140056
140044
|
);
|
|
140057
140045
|
function onPanelChange(v) {
|
|
140058
|
-
const data = setValue(
|
|
140046
|
+
const data = setValue$1(
|
|
140059
140047
|
v ? formatDateTimeForStorage(v, storageFormat.value, pickerTimeFormat.value) : v,
|
|
140060
140048
|
runtimeValuePath.value
|
|
140061
140049
|
);
|
|
@@ -140094,7 +140082,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
140094
140082
|
const pickerFormat = computed(() => resolveTimePickerFormat(widgetProps.value));
|
|
140095
140083
|
function onPanelChange(timeObj) {
|
|
140096
140084
|
const value = timeObj.value == null ? timeObj.value : completeTimeValue(timeObj.value);
|
|
140097
|
-
const data = setValue(value, runtimeValuePath.value);
|
|
140085
|
+
const data = setValue$1(value, runtimeValuePath.value);
|
|
140098
140086
|
emit("change", data);
|
|
140099
140087
|
}
|
|
140100
140088
|
return (_ctx, _cache) => {
|
|
@@ -140567,7 +140555,7 @@ function useTableDropdown(props, searchFilters) {
|
|
|
140567
140555
|
const columns2 = computed(() => getColumns(strategy.value.columnsKey, strategy.value.isTree));
|
|
140568
140556
|
const selectedId = computed(() => {
|
|
140569
140557
|
if (!runtimeValuePath.value) return void 0;
|
|
140570
|
-
const id = docInst.value.dataManager.get(getIdPath(runtimeValuePath.value));
|
|
140558
|
+
const id = docInst.value.dataManager.get(getIdPath$1(runtimeValuePath.value));
|
|
140571
140559
|
return id != null && id !== "" ? String(id) : void 0;
|
|
140572
140560
|
});
|
|
140573
140561
|
const businessLinkage = computed(
|
|
@@ -140794,6 +140782,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
140794
140782
|
row?._item?.id_,
|
|
140795
140783
|
{ persistOptionId: persistOptionId.value }
|
|
140796
140784
|
);
|
|
140785
|
+
if (persistOptionId.value) {
|
|
140786
|
+
const idPath = getIdPath(runtimeValuePath.value);
|
|
140787
|
+
Object.assign(data, setValue(row?._item?.id_ ?? void 0, idPath));
|
|
140788
|
+
}
|
|
140797
140789
|
if (clearValuePath.value) {
|
|
140798
140790
|
Object.assign(data, buildFieldSelectUpdates(clearValuePath.value, void 0));
|
|
140799
140791
|
}
|
|
@@ -140986,7 +140978,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
140986
140978
|
showValue = value;
|
|
140987
140979
|
}
|
|
140988
140980
|
}
|
|
140989
|
-
const data = setValue(showValue, runtimeValuePath.value);
|
|
140981
|
+
const data = setValue$1(showValue, runtimeValuePath.value);
|
|
140990
140982
|
emit("change", data, __DEFAULT__ ? __DEFAULT__._item : row?._item);
|
|
140991
140983
|
};
|
|
140992
140984
|
__expose({
|
|
@@ -141397,7 +141389,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
141397
141389
|
GctMessage.warning("请等待附件上传完成后再点击确定");
|
|
141398
141390
|
return;
|
|
141399
141391
|
}
|
|
141400
|
-
return setValue(innerValue.value, runtimeValuePath.value);
|
|
141392
|
+
return setValue$1(innerValue.value, runtimeValuePath.value);
|
|
141401
141393
|
}
|
|
141402
141394
|
function cancelUploading() {
|
|
141403
141395
|
uploadRef.value?.cancelUploading?.();
|
|
@@ -141725,7 +141717,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
141725
141717
|
GctMessage.warning("请等待图片上传完成后再点击确定");
|
|
141726
141718
|
return;
|
|
141727
141719
|
}
|
|
141728
|
-
return setValue(innerValue.value, runtimeValuePath.value);
|
|
141720
|
+
return setValue$1(innerValue.value, runtimeValuePath.value);
|
|
141729
141721
|
}
|
|
141730
141722
|
function cancelUploading() {
|
|
141731
141723
|
uploadRef.value?.cancelUploading?.();
|
|
@@ -142010,7 +142002,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
142010
142002
|
const persistSignatures = () => {
|
|
142011
142003
|
const list = signatureList.value.map(({ displaySrc: _2, ...item }) => item);
|
|
142012
142004
|
const data = list.length ? JSON.stringify(list) : void 0;
|
|
142013
|
-
return setValue(data, runtimeValuePath.value);
|
|
142005
|
+
return setValue$1(data, runtimeValuePath.value);
|
|
142014
142006
|
};
|
|
142015
142007
|
const validateAll = async () => {
|
|
142016
142008
|
clearErrors();
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { PaperSize } from '../../../core/constants';
|
|
2
|
-
interface IPageSizeOptions {
|
|
3
|
-
width: number;
|
|
4
|
-
height: number;
|
|
5
|
-
direction?: 'portrait' | 'landscape';
|
|
6
|
-
}
|
|
7
|
-
export declare const updatePgSzElInfo: (pgSz: any, paperSize: PaperSize, options: IPageSizeOptions) => void;
|
|
8
1
|
export declare class RuntimeJsonBuilder {
|
|
9
2
|
private json;
|
|
10
3
|
constructor(base: any);
|
|
@@ -12,10 +5,9 @@ export declare class RuntimeJsonBuilder {
|
|
|
12
5
|
/**
|
|
13
6
|
* 页面设置
|
|
14
7
|
*/
|
|
15
|
-
setPageSize(
|
|
8
|
+
setPageSize(mmWidth: number, mmHeight: number): this;
|
|
16
9
|
/**
|
|
17
10
|
* 构建
|
|
18
11
|
*/
|
|
19
12
|
build(): any;
|
|
20
13
|
}
|
|
21
|
-
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VOrientationType } from '../../../../../../domain/constants/enum';
|
|
2
|
+
/**
|
|
3
|
+
* 根据纸张方向计算实际展示的宽、高(单位mm)
|
|
4
|
+
*/
|
|
5
|
+
export declare const getDirectedSize: (direction: VOrientationType, mmWidth: number, mmHeight: number) => {
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* 更新 sec 下 pgSz 的 twip 尺寸信息
|
|
11
|
+
*/
|
|
12
|
+
export declare const updatePgSzElInfo: (pgSz: any, mmWidth: number, mmHeight: number) => void;
|
package/dist/suites/edhr/panel-schema/paper/modules/page-size-config/page-size-config.vue.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { VOrientationType } from '../../../../../../domain/constants/enum';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
orientation: VOrientationType;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
package/dist/word.css
CHANGED
|
@@ -10540,7 +10540,7 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
10540
10540
|
height: 36px;
|
|
10541
10541
|
color: #bebdc7;
|
|
10542
10542
|
}
|
|
10543
|
-
.page-size-custom-setting[data-v-
|
|
10543
|
+
.page-size-custom-setting[data-v-0c96db84] {
|
|
10544
10544
|
margin: 12px 0;
|
|
10545
10545
|
display: flex;
|
|
10546
10546
|
align-items: center;
|
|
@@ -10559,10 +10559,10 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
10559
10559
|
width: 240px;
|
|
10560
10560
|
color: #666;
|
|
10561
10561
|
}
|
|
10562
|
-
.panel-paper[data-v-
|
|
10562
|
+
.panel-paper[data-v-243a03df] {
|
|
10563
10563
|
position: relative;
|
|
10564
10564
|
}
|
|
10565
|
-
.panel-paper .container[data-v-
|
|
10565
|
+
.panel-paper .container[data-v-243a03df] {
|
|
10566
10566
|
padding: 16px;
|
|
10567
10567
|
}
|
|
10568
10568
|
.qrcode-parse-modal[data-v-7a8c7960] {
|
|
@@ -10774,22 +10774,22 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
10774
10774
|
.bom-entry-item .iconfont.btn-item[data-v-cabb46fe] {
|
|
10775
10775
|
margin-right: 8px;
|
|
10776
10776
|
}
|
|
10777
|
-
.panel-material-consume-table[data-v-
|
|
10777
|
+
.panel-material-consume-table[data-v-0e3048f6] {
|
|
10778
10778
|
position: relative;
|
|
10779
10779
|
}
|
|
10780
|
-
.panel-material-consume-table .container[data-v-
|
|
10780
|
+
.panel-material-consume-table .container[data-v-0e3048f6] {
|
|
10781
10781
|
padding: 16px;
|
|
10782
10782
|
}
|
|
10783
|
-
.panel-material-consume-table .form-custom-label[data-v-
|
|
10783
|
+
.panel-material-consume-table .form-custom-label[data-v-0e3048f6] {
|
|
10784
10784
|
display: inline-flex;
|
|
10785
10785
|
align-items: center;
|
|
10786
10786
|
gap: 4px;
|
|
10787
10787
|
}
|
|
10788
|
-
.panel-material-consume-table .form-custom-label .icon[data-v-
|
|
10788
|
+
.panel-material-consume-table .form-custom-label .icon[data-v-0e3048f6] {
|
|
10789
10789
|
cursor: pointer;
|
|
10790
10790
|
vertical-align: text-top;
|
|
10791
10791
|
}
|
|
10792
|
-
.panel-material-consume-table .content[data-v-
|
|
10792
|
+
.panel-material-consume-table .content[data-v-0e3048f6] {
|
|
10793
10793
|
display: flex;
|
|
10794
10794
|
align-items: center;
|
|
10795
10795
|
justify-content: flex-end;
|
|
@@ -10797,7 +10797,7 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
10797
10797
|
line-height: 22px;
|
|
10798
10798
|
width: 100%;
|
|
10799
10799
|
}
|
|
10800
|
-
.panel-material-consume-table .entries-container[data-v-
|
|
10800
|
+
.panel-material-consume-table .entries-container[data-v-0e3048f6] {
|
|
10801
10801
|
padding: 6px 0;
|
|
10802
10802
|
}
|
|
10803
10803
|
.add-ds-btn[data-v-e5dff26f] {
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|