@gct-paas/word 0.1.47-beta.11 → 0.1.47-beta.13

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 CHANGED
@@ -32591,7 +32591,7 @@ const createList = (n) => Array.from({ length: n }, (_2, i) => i);
32591
32591
  const _hoisted_1$2g = { class: "gct-time-container" };
32592
32592
  const _hoisted_2$1u = { class: "scrollbar-container" };
32593
32593
  const _hoisted_3$1b = ["onClick"];
32594
- const _hoisted_4$T = { class: "gct-time-footer" };
32594
+ const _hoisted_4$S = { class: "gct-time-footer" };
32595
32595
  const _hoisted_5$H = { class: "gct-right-btns" };
32596
32596
  const _sfc_main$3u = /* @__PURE__ */ defineComponent({
32597
32597
  __name: "time",
@@ -32779,7 +32779,7 @@ const _sfc_main$3u = /* @__PURE__ */ defineComponent({
32779
32779
  ]);
32780
32780
  }), 128))
32781
32781
  ]),
32782
- createElementVNode("div", _hoisted_4$T, [
32782
+ createElementVNode("div", _hoisted_4$S, [
32783
32783
  createElementVNode("div", {
32784
32784
  class: "gct-now-btn",
32785
32785
  onClick: nowDay
@@ -32819,7 +32819,7 @@ const GctTimer = /* @__PURE__ */ _export_sfc(_sfc_main$3u, [["__scopeId", "data-
32819
32819
  const _hoisted_1$2f = { class: "gct-dtp-panel-inner" };
32820
32820
  const _hoisted_2$1t = { class: "gct-dtp-date" };
32821
32821
  const _hoisted_3$1a = { class: "gct-dtp-header" };
32822
- const _hoisted_4$S = { class: "text" };
32822
+ const _hoisted_4$R = { class: "text" };
32823
32823
  const _hoisted_5$G = { class: "gct-dtp-head" };
32824
32824
  const _hoisted_6$t = { class: "gct-dtp-rows-wrapper" };
32825
32825
  const _hoisted_7$o = ["onClick"];
@@ -32833,7 +32833,7 @@ const _hoisted_10$9 = {
32833
32833
  class: "gct-dtp-time"
32834
32834
  };
32835
32835
  const _hoisted_11$6 = { class: "gct-dtp-time-header" };
32836
- const _hoisted_12$4 = { class: "gct-dtp-time-container" };
32836
+ const _hoisted_12$5 = { class: "gct-dtp-time-container" };
32837
32837
  const _sfc_main$3t = /* @__PURE__ */ defineComponent({
32838
32838
  __name: "calendar",
32839
32839
  props: {
@@ -33021,7 +33021,7 @@ const _sfc_main$3t = /* @__PURE__ */ defineComponent({
33021
33021
  color: "#64748b",
33022
33022
  onClick: withModifiers(prevMonth, ["stop"])
33023
33023
  }),
33024
- createElementVNode("div", _hoisted_4$S, toDisplayString(monthTitle.value), 1),
33024
+ createElementVNode("div", _hoisted_4$R, toDisplayString(monthTitle.value), 1),
33025
33025
  createVNode(unref(GctIcon), {
33026
33026
  class: "nav",
33027
33027
  icon: "icon-a-Rightarrow",
@@ -33084,7 +33084,7 @@ const _sfc_main$3t = /* @__PURE__ */ defineComponent({
33084
33084
  ]),
33085
33085
  showTimeLocal.value ? (openBlock(), createElementBlock("div", _hoisted_10$9, [
33086
33086
  createElementVNode("div", _hoisted_11$6, toDisplayString(timeValue.value), 1),
33087
- createElementVNode("div", _hoisted_12$4, [
33087
+ createElementVNode("div", _hoisted_12$5, [
33088
33088
  createVNode(GctTimer, {
33089
33089
  "model-value": timeValue.value,
33090
33090
  format: __props.timeFormat,
@@ -33232,7 +33232,7 @@ const _hoisted_3$18 = {
33232
33232
  key: 0,
33233
33233
  class: "group-label"
33234
33234
  };
33235
- const _hoisted_4$R = ["onClick"];
33235
+ const _hoisted_4$Q = ["onClick"];
33236
33236
  const _hoisted_5$F = { class: "option-label" };
33237
33237
  const _hoisted_6$s = { class: "option-right" };
33238
33238
  const _hoisted_7$n = {
@@ -33371,7 +33371,7 @@ const _sfc_main$3p = /* @__PURE__ */ defineComponent({
33371
33371
  })) : createCommentVNode("", true)
33372
33372
  ])
33373
33373
  ], 64))
33374
- ], 10, _hoisted_4$R);
33374
+ ], 10, _hoisted_4$Q);
33375
33375
  }), 128)),
33376
33376
  group2._showDivider !== false && groupIndex !== normalizedGroupOptions.value.length - 1 ? (openBlock(), createElementBlock("div", _hoisted_7$n)) : createCommentVNode("", true)
33377
33377
  ], 64);
@@ -33660,7 +33660,7 @@ const _hoisted_1$28 = {
33660
33660
  };
33661
33661
  const _hoisted_2$1n = ["src"];
33662
33662
  const _hoisted_3$14 = { class: "upload-img-mask" };
33663
- const _hoisted_4$Q = { class: "tip-text" };
33663
+ const _hoisted_4$P = { class: "tip-text" };
33664
33664
  const _hoisted_5$E = {
33665
33665
  key: 2,
33666
33666
  class: "upload-loading"
@@ -33752,7 +33752,7 @@ const _sfc_main$3k = /* @__PURE__ */ defineComponent({
33752
33752
  }, [
33753
33753
  createElementVNode("div", null, [
33754
33754
  _cache[1] || (_cache[1] = createElementVNode("i", { class: "iconfont icon-tupian_wudaima" }, null, -1)),
33755
- createElementVNode("div", _hoisted_4$Q, toDisplayString(__props.tip), 1)
33755
+ createElementVNode("div", _hoisted_4$P, toDisplayString(__props.tip), 1)
33756
33756
  ])
33757
33757
  ])),
33758
33758
  loading.value ? (openBlock(), createElementBlock("div", _hoisted_5$E, [..._cache[2] || (_cache[2] = [
@@ -33788,7 +33788,7 @@ const _hoisted_3$13 = {
33788
33788
  key: 1,
33789
33789
  class: "gct-input-clear-icon-default"
33790
33790
  };
33791
- const _hoisted_4$P = {
33791
+ const _hoisted_4$O = {
33792
33792
  key: 2,
33793
33793
  class: "gct-input-count"
33794
33794
  };
@@ -33998,7 +33998,7 @@ const _sfc_main$3j = /* @__PURE__ */ defineComponent({
33998
33998
  })
33999
33999
  ]))
34000
34000
  ])) : createCommentVNode("", true),
34001
- props.showCount ? (openBlock(), createElementBlock("span", _hoisted_4$P, [
34001
+ props.showCount ? (openBlock(), createElementBlock("span", _hoisted_4$O, [
34002
34002
  createTextVNode(toDisplayString(countValue.value), 1),
34003
34003
  props.maxLength ? (openBlock(), createElementBlock("span", _hoisted_5$D, " / " + toDisplayString(props.maxLength), 1)) : createCommentVNode("", true)
34004
34004
  ])) : createCommentVNode("", true),
@@ -34020,7 +34020,7 @@ const _hoisted_3$12 = {
34020
34020
  key: 1,
34021
34021
  class: "stepper"
34022
34022
  };
34023
- const _hoisted_4$O = {
34023
+ const _hoisted_4$N = {
34024
34024
  key: 2,
34025
34025
  class: "gct-input-number-suffix"
34026
34026
  };
@@ -34286,7 +34286,7 @@ const _sfc_main$3i = /* @__PURE__ */ defineComponent({
34286
34286
  })
34287
34287
  ], 2)
34288
34288
  ])) : createCommentVNode("", true),
34289
- props.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$O, [
34289
+ props.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$N, [
34290
34290
  createElementVNode("span", _hoisted_5$C, toDisplayString(__props.suffix), 1)
34291
34291
  ])) : createCommentVNode("", true)
34292
34292
  ], 2);
@@ -34480,7 +34480,7 @@ const GctLoading = /* @__PURE__ */ _export_sfc(_sfc_main$3f, [["render", _sfc_re
34480
34480
  const _hoisted_1$22 = { class: "message-wrapper" };
34481
34481
  const _hoisted_2$1i = ["onMouseenter", "onMouseleave"];
34482
34482
  const _hoisted_3$$ = { class: "message-message" };
34483
- const _hoisted_4$N = ["onClick"];
34483
+ const _hoisted_4$M = ["onClick"];
34484
34484
  const _sfc_main$3e = /* @__PURE__ */ defineComponent({
34485
34485
  __name: "Message",
34486
34486
  setup(__props, { expose: __expose }) {
@@ -34551,7 +34551,7 @@ const _sfc_main$3e = /* @__PURE__ */ defineComponent({
34551
34551
  key: 0,
34552
34552
  class: "message-close icon iconfont icon-guanbi",
34553
34553
  onClick: ($event) => remove2(item.id)
34554
- }, null, 8, _hoisted_4$N)) : createCommentVNode("", true)
34554
+ }, null, 8, _hoisted_4$M)) : createCommentVNode("", true)
34555
34555
  ], 42, _hoisted_2$1i);
34556
34556
  }), 128))
34557
34557
  ]),
@@ -35833,7 +35833,7 @@ const GctSegmentSlider = /* @__PURE__ */ _export_sfc(_sfc_main$39, [["__scopeId"
35833
35833
  const _hoisted_1$1Z = { class: "popper-container" };
35834
35834
  const _hoisted_2$1g = { class: "group-name" };
35835
35835
  const _hoisted_3$Z = ["onClick"];
35836
- const _hoisted_4$M = ["onClick"];
35836
+ const _hoisted_4$L = ["onClick"];
35837
35837
  const _hoisted_5$B = {
35838
35838
  key: 2,
35839
35839
  class: "empty"
@@ -36035,7 +36035,7 @@ const _sfc_main$38 = /* @__PURE__ */ defineComponent({
36035
36035
  _: 2
36036
36036
  }, 1032, ["disabled"])
36037
36037
  ], 64))
36038
- ], 10, _hoisted_4$M);
36038
+ ], 10, _hoisted_4$L);
36039
36039
  }), 128)),
36040
36040
  !normalizedFlatOptions.value.length ? (openBlock(), createElementBlock("div", _hoisted_5$B, " 暂无数据 ")) : createCommentVNode("", true)
36041
36041
  ])
@@ -36101,7 +36101,7 @@ const _hoisted_2$1f = {
36101
36101
  class: "gct-ss-search-icon"
36102
36102
  };
36103
36103
  const _hoisted_3$Y = { class: "gct-ss-list" };
36104
- const _hoisted_4$L = ["onClick"];
36104
+ const _hoisted_4$K = ["onClick"];
36105
36105
  const _hoisted_5$A = {
36106
36106
  key: 0,
36107
36107
  class: "gct-ss-empty"
@@ -36275,7 +36275,7 @@ const _sfc_main$37 = /* @__PURE__ */ defineComponent({
36275
36275
  key: item.value,
36276
36276
  class: normalizeClass(["gct-ss-option", { selected: item.value === __props.modelValue, disabled: item.disabled }]),
36277
36277
  onClick: ($event) => onSelect(item)
36278
- }, toDisplayString(item.label), 11, _hoisted_4$L);
36278
+ }, toDisplayString(item.label), 11, _hoisted_4$K);
36279
36279
  }), 128)),
36280
36280
  !filteredOptions.value.length ? (openBlock(), createElementBlock("div", _hoisted_5$A, "暂无数据")) : createCommentVNode("", true)
36281
36281
  ])
@@ -36341,7 +36341,7 @@ const _hoisted_3$X = {
36341
36341
  key: 0,
36342
36342
  class: "selection-col"
36343
36343
  };
36344
- const _hoisted_4$K = ["onClick"];
36344
+ const _hoisted_4$J = ["onClick"];
36345
36345
  const _hoisted_5$z = {
36346
36346
  key: 0,
36347
36347
  class: "selection-col"
@@ -36507,7 +36507,7 @@ const _sfc_main$35 = /* @__PURE__ */ defineComponent({
36507
36507
  ], true)
36508
36508
  ], 4);
36509
36509
  }), 128))
36510
- ], 14, _hoisted_4$K);
36510
+ ], 14, _hoisted_4$J);
36511
36511
  }), 128))
36512
36512
  ])
36513
36513
  ])
@@ -36609,7 +36609,7 @@ const _hoisted_2$1d = {
36609
36609
  class: "rdo-tree-select-node__switcher placeholder"
36610
36610
  };
36611
36611
  const _hoisted_3$W = { class: "rdo-tree-select-node__title" };
36612
- const _hoisted_4$J = { class: "rdo-tree-select-node__label" };
36612
+ const _hoisted_4$I = { class: "rdo-tree-select-node__label" };
36613
36613
  const _hoisted_5$y = {
36614
36614
  key: 0,
36615
36615
  class: "rdo-tree-select-node__tag"
@@ -36669,7 +36669,7 @@ const _sfc_main$32 = /* @__PURE__ */ defineComponent({
36669
36669
  })
36670
36670
  ], 2)) : (openBlock(), createElementBlock("span", _hoisted_2$1d)),
36671
36671
  createElementVNode("span", _hoisted_3$W, [
36672
- createElementVNode("span", _hoisted_4$J, toDisplayString(__props.node.title), 1),
36672
+ createElementVNode("span", _hoisted_4$I, toDisplayString(__props.node.title), 1),
36673
36673
  __props.node.isDefault && !hasChildren.value ? (openBlock(), createElementBlock("span", _hoisted_5$y, "默认")) : createCommentVNode("", true)
36674
36674
  ])
36675
36675
  ], 6),
@@ -37106,7 +37106,7 @@ const _hoisted_3$V = {
37106
37106
  key: 1,
37107
37107
  class: "rdo-tree-select__empty"
37108
37108
  };
37109
- const _hoisted_4$I = ["title"];
37109
+ const _hoisted_4$H = ["title"];
37110
37110
  const _hoisted_5$x = { class: "rdo-tree-select__value-text" };
37111
37111
  const _hoisted_6$o = {
37112
37112
  key: 0,
@@ -37335,7 +37335,7 @@ const _sfc_main$31 = /* @__PURE__ */ defineComponent({
37335
37335
  }, [
37336
37336
  createElementVNode("span", _hoisted_5$x, toDisplayString(selectedDisplay.value.text), 1),
37337
37337
  selectedDisplay.value.showDefaultTag ? (openBlock(), createElementBlock("span", _hoisted_6$o, "默认")) : createCommentVNode("", true)
37338
- ], 8, _hoisted_4$I)) : (openBlock(), createElementBlock("span", _hoisted_7$j, toDisplayString(__props.placeholder), 1)),
37338
+ ], 8, _hoisted_4$H)) : (openBlock(), createElementBlock("span", _hoisted_7$j, toDisplayString(__props.placeholder), 1)),
37339
37339
  innerValue.value && __props.allowClear && !__props.disabled ? (openBlock(), createBlock(unref(GctIcon), {
37340
37340
  key: 2,
37341
37341
  class: "rdo-tree-select__clear",
@@ -39173,7 +39173,7 @@ const colorUtils$1 = {
39173
39173
  const _hoisted_1$1S = { class: "color-picker-container" };
39174
39174
  const _hoisted_2$1a = { class: "color-submenu-panel" };
39175
39175
  const _hoisted_3$T = { class: "color-content-standard" };
39176
- const _hoisted_4$H = { class: "items" };
39176
+ const _hoisted_4$G = { class: "items" };
39177
39177
  const _hoisted_5$w = ["onClick"];
39178
39178
  const _sfc_main$2$ = /* @__PURE__ */ defineComponent({
39179
39179
  __name: "ColorPicker",
@@ -39220,7 +39220,7 @@ const _sfc_main$2$ = /* @__PURE__ */ defineComponent({
39220
39220
  ]),
39221
39221
  createElementVNode("div", _hoisted_3$T, [
39222
39222
  _cache[1] || (_cache[1] = createElementVNode("div", { class: "title" }, "标准色", -1)),
39223
- createElementVNode("div", _hoisted_4$H, [
39223
+ createElementVNode("div", _hoisted_4$G, [
39224
39224
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(colorUtils$1).standard, (c2, idx) => {
39225
39225
  return openBlock(), createBlock(unref(_sfc_main$34), {
39226
39226
  key: "theme-" + idx,
@@ -53202,6 +53202,7 @@ const postApi = api.apaas.modelComprehensive.postBizServiceModelCategoryModelKey
53202
53202
  HttpUtil.use((inst) => {
53203
53203
  inst.interceptors.response.use((response) => {
53204
53204
  if (response.config.__useWordMessage && !response.data.ok) {
53205
+ response.data.message = void 0;
53205
53206
  GctMessage.error(response.data.subMessage);
53206
53207
  }
53207
53208
  return response;
@@ -53860,6 +53861,23 @@ class McWebRender extends MCRender {
53860
53861
  });
53861
53862
  }
53862
53863
  }
53864
+ const KEY = "_subFieldConfig";
53865
+ const getSubFieldConfig = (paramsConfig) => {
53866
+ return {
53867
+ init(subConfig) {
53868
+ if (!paramsConfig) return;
53869
+ paramsConfig[KEY] = subConfig;
53870
+ },
53871
+ get(valuePath) {
53872
+ if (!valuePath || !paramsConfig?.[KEY]) return {};
53873
+ return paramsConfig[KEY][valuePath] || {};
53874
+ },
53875
+ set(valuePath, subConfig) {
53876
+ if (!valuePath || !paramsConfig?.[KEY]) return;
53877
+ paramsConfig[KEY][valuePath] = subConfig;
53878
+ }
53879
+ };
53880
+ };
53863
53881
  class MCDataUtil {
53864
53882
  static allFields = [
53865
53883
  "product_id_",
@@ -53915,6 +53933,9 @@ class MCDataUtil {
53915
53933
  if (key.startsWith(`$.${subFieldKey}[${rowIndex}]`)) {
53916
53934
  dataManager.setFieldRuntimeSpecificConfig(key, { newDisabled: isConfirmed });
53917
53935
  }
53936
+ if ([`$.${subFieldKey}[${rowIndex}].qty_required_`, `$.${subFieldKey}[${rowIndex}].qty_consumed_`].includes(key)) {
53937
+ dataManager.setFieldRuntimeSpecificConfig(key, { newDisabled: true });
53938
+ }
53918
53939
  });
53919
53940
  }
53920
53941
  }
@@ -54327,20 +54348,58 @@ class MaterialConsumeTableController {
54327
54348
  }
54328
54349
  }
54329
54350
  }
54330
- /**
54331
- * 统一处理表格内部的字段的值变更
54332
- * @param opts
54333
- */
54334
- handleChange(opts) {
54335
- const { field, row, option } = opts;
54336
- console.log("handleChange", opts);
54337
- if (field === "product_id_") {
54338
- row.material_no_ = void 0;
54339
- row.qty_ = void 0;
54340
- this.setDefaultValue(row);
54341
- } else if (field === "material_no_") {
54342
- row.product_id_ = option.product_id_;
54343
- this.setDefaultValue(row);
54351
+ getDefaultValue(row) {
54352
+ const value = {};
54353
+ if (!row.routing_operation_id_) {
54354
+ value.routing_operation_id_ = this.tmplBomController.operationId;
54355
+ }
54356
+ if (row.product_id_) {
54357
+ const util = this.bomEntriesValidator.findUtilByProductId(row.product_id_);
54358
+ if (util) {
54359
+ value.qty_required_ = util.total;
54360
+ value.qty_consumed_ = util.hasConsumed;
54361
+ value.bom_entry_id_ = util.bomEntry.id_;
54362
+ }
54363
+ }
54364
+ return value;
54365
+ }
54366
+ handleSelectChange({
54367
+ changedData,
54368
+ selectedOption,
54369
+ doc,
54370
+ parsed,
54371
+ dataIndex
54372
+ }) {
54373
+ const { fieldKey, parentFieldKey, parentFieldPath } = parsed;
54374
+ if (["product_id_", "material_no_"].includes(fieldKey)) {
54375
+ const rowPath = `${parentFieldPath}[${dataIndex}]`;
54376
+ if (fieldKey === "product_id_") {
54377
+ const versionId = changedData[`${rowPath}.product_id_`]?.split(":").pop();
54378
+ if (versionId) {
54379
+ getSubFieldConfig(doc.paramsConfig).set(`${rowPath}.material_no_`, {
54380
+ "product_id_.versionIn": [versionId]
54381
+ });
54382
+ }
54383
+ doc.dataManager.setMultiple({
54384
+ [`${rowPath}.material_no_`]: void 0,
54385
+ [`${rowPath}.material_no__lb_`]: void 0,
54386
+ [`${rowPath}.qty_`]: void 0
54387
+ });
54388
+ } else if (fieldKey === "material_no_") {
54389
+ doc.dataManager.setMultiple({
54390
+ [`${rowPath}.product_id_`]: selectedOption.product_id_
54391
+ // [`${rowPath}.product_id__lb_`]: record.product_id__lb_, // 目前取不到
54392
+ });
54393
+ }
54394
+ const rowData = doc.dataManager.getRawData()[parentFieldKey][dataIndex];
54395
+ const value = this.getDefaultValue(rowData);
54396
+ const wordValue = Object.entries(value).reduce((data, [key, value2]) => {
54397
+ data[`${rowPath}.${key}`] = value2;
54398
+ return data;
54399
+ }, {});
54400
+ doc.dataManager.setMultiple(wordValue);
54401
+ doc.dataManager.setFieldRuntimeSpecificConfig(`${rowPath}.qty_required_`, { newDisabled: true });
54402
+ doc.dataManager.setFieldRuntimeSpecificConfig(`${rowPath}.qty_consumed_`, { newDisabled: true });
54344
54403
  }
54345
54404
  }
54346
54405
  }
@@ -54353,7 +54412,7 @@ class FormTmplBomController {
54353
54412
  materialNo;
54354
54413
  /** 历史填报数据 */
54355
54414
  historyData = [];
54356
- /** 表单控制器(key是tableKey) */
54415
+ /** 表单控制器(key是 valuePath) */
54357
54416
  tableControllers = {};
54358
54417
  /** 字段key和tableKey的映射 */
54359
54418
  field2TableMap = {};
@@ -54434,16 +54493,14 @@ class FormTmplBomController {
54434
54493
  }
54435
54494
  /**
54436
54495
  * 根据字段key获取子表控制器
54437
- * @param field
54438
- * @return {*}
54439
54496
  */
54440
- // findTableControllerByField(field: string) {
54441
- // return this.tableControllers[this.field2TableMap[field]!];
54497
+ // findTableControllerByField(subFieldKey: string) {
54498
+ // return this.tableControllers[subFieldKey];
54442
54499
  // }
54500
+ // 方法废弃,word 里改在初始化时记录到 paramsConfig
54443
54501
  /**
54444
54502
  * 处理字段组件
54445
54503
  * - 补充物料字段的额外查询条件
54446
- * @param field
54447
54504
  */
54448
54505
  // handleField(field: any) {
54449
54506
  // const { subFieldKey, fieldType } = field;
@@ -54530,7 +54587,7 @@ class DocRequestStrategy {
54530
54587
  );
54531
54588
  } else if (docInfo.formType === FormTypeConst.PROCESS) {
54532
54589
  const { nodeDef = {} } = docInfo.ofProcessOperations ?? {};
54533
- bpmnType = docInfo.instanceStatus === "ABANDON" ? "bpmnEnd" : nodeDef.type ?? "bpmnEnd";
54590
+ bpmnType = docInfo.instanceStatus === "ABANDON" || docInfo.instanceStatus === "IN_AUDIT" ? "bpmnEnd" : nodeDef.type ?? "bpmnEnd";
54534
54591
  fillModeType = bpmnType === "bpmnEnd" ? DocModeTypeConst.Print : DocModeTypeConst.Fill;
54535
54592
  btnModelType = fillModeType;
54536
54593
  bpmnFieldAuthMap = getBpmnFieldAuthMap(
@@ -103348,7 +103405,7 @@ async function prepareDocumentRenderData(options) {
103348
103405
  });
103349
103406
  }
103350
103407
  async function initializeDocumentEngine(props, payload, result) {
103351
- const { id, requestInfo, fillModeType, paramsConfig } = result;
103408
+ const { id, requestInfo, fillModeType, paramsConfig, tmplBomC } = result;
103352
103409
  const materialNo = paramsConfig?.materialNo || requestInfo.materialNo;
103353
103410
  const { mainModelKey, masterSlaveList } = await prepareDocumentFieldContext({
103354
103411
  requestInfo,
@@ -103380,6 +103437,14 @@ async function initializeDocumentEngine(props, payload, result) {
103380
103437
  r.widgetMeta.props = matchedBom;
103381
103438
  });
103382
103439
  }
103440
+ if (paramsConfig && tmplBomC?.formInstBom?.formTmplBomList) {
103441
+ const subConfig = {};
103442
+ tmplBomC.formInstBom.formTmplBomList.forEach(({ table_key_, entries_ }) => {
103443
+ const includedIds = (entries_ || []).map((e) => e.product_id_.split(":").pop());
103444
+ subConfig[`${table_key_}[n].product_id_`] = { "id_.in": includedIds };
103445
+ });
103446
+ getSubFieldConfig(paramsConfig).init(subConfig);
103447
+ }
103383
103448
  const instances = docModel.getWidgetInstances();
103384
103449
  if (fillModeType !== DocModeTypeConst.Edit) {
103385
103450
  instances.forEach((instance2) => {
@@ -105071,13 +105136,13 @@ function getDropdownOverlayActionConfig(type4, options) {
105071
105136
  icon: "icon-saoyisao",
105072
105137
  actionType: "scan-dialog",
105073
105138
  dialogKey: "device-scan",
105074
- tooltip: "点击可切换到搜索模式"
105139
+ tooltip: "双击可切换到搜索模式"
105075
105140
  };
105076
105141
  }
105077
105142
  return {
105078
105143
  icon: "icon-pad_search",
105079
105144
  actionType: "scan-dropdown",
105080
- tooltip: "点击可切换到扫码模式"
105145
+ tooltip: "双击可切换到扫码模式"
105081
105146
  };
105082
105147
  }
105083
105148
  const supported = getSupportedDropdownTypes();
@@ -106670,6 +106735,7 @@ const _sfc_main$2O = /* @__PURE__ */ defineComponent({
106670
106735
  },
106671
106736
  emits: ["enter", "leave"],
106672
106737
  setup(__props) {
106738
+ const tmplBomCRef = inject(TMPL_BOM_CONTROLLER);
106673
106739
  const interCtx = useInteractionContext();
106674
106740
  const designCtx = useDesignSuiteContext();
106675
106741
  const props = __props;
@@ -106876,6 +106942,24 @@ const _sfc_main$2O = /* @__PURE__ */ defineComponent({
106876
106942
  designCtx.runtime.getMasterSlaveFieldList(props.doc.mainModelKey)
106877
106943
  );
106878
106944
  props.doc.dataManager.setMultiple({ ...data, ...dataValues });
106945
+ const subFieldValuePath = props.widget.widgetMeta?.field?.valuePath;
106946
+ const dataIndex = props.widget.dataSlotIndex?.dataIndex;
106947
+ if (subFieldValuePath && isNumber(dataIndex)) {
106948
+ const parsed = parseValuePath(subFieldValuePath);
106949
+ const { parentFieldPath } = parsed;
106950
+ const allRegions = props.doc.model?.document.body.children.flatMap((w2) => w2.name === "w:tbl" ? w2.regions : []);
106951
+ const isMaterialConsumeTable = allRegions?.find((r) => r.valuePath === parentFieldPath)?.type === "material-consume-table";
106952
+ if (isMaterialConsumeTable && tmplBomCRef?.value) {
106953
+ const tableController = tmplBomCRef.value.tableControllers[parentFieldPath];
106954
+ tableController?.handleSelectChange({
106955
+ changedData: data,
106956
+ selectedOption: record,
106957
+ doc: props.doc,
106958
+ parsed,
106959
+ dataIndex
106960
+ });
106961
+ }
106962
+ }
106879
106963
  requestValidationRefresh(props.doc, true);
106880
106964
  }
106881
106965
  return (_ctx, _cache) => {
@@ -106940,7 +107024,7 @@ const _sfc_main$2O = /* @__PURE__ */ defineComponent({
106940
107024
  };
106941
107025
  }
106942
107026
  });
106943
- const OverlayRender = /* @__PURE__ */ _export_sfc(_sfc_main$2O, [["__scopeId", "data-v-d9277289"]]);
107027
+ const OverlayRender = /* @__PURE__ */ _export_sfc(_sfc_main$2O, [["__scopeId", "data-v-666e31b6"]]);
106944
107028
  let activeHoverId = 0;
106945
107029
  function useHoverDelay(callback, delay = 120) {
106946
107030
  let timer = null;
@@ -108640,7 +108724,7 @@ function useTableSelection() {
108640
108724
  const _hoisted_1$1L = { class: "col-headers" };
108641
108725
  const _hoisted_2$17 = ["onMouseenter"];
108642
108726
  const _hoisted_3$R = ["onClick"];
108643
- const _hoisted_4$G = ["onMousedown"];
108727
+ const _hoisted_4$F = ["onMousedown"];
108644
108728
  const _hoisted_5$v = { class: "row-headers" };
108645
108729
  const _hoisted_6$n = ["onMouseenter"];
108646
108730
  const _hoisted_7$i = ["onClick"];
@@ -108931,7 +109015,7 @@ const _sfc_main$2A = /* @__PURE__ */ defineComponent({
108931
109015
  height: `${__props.tableHeight}px`
108932
109016
  }),
108933
109017
  onMousedown: ($event) => onResizeMouseDown("col", colIndex, $event)
108934
- }, null, 46, _hoisted_4$G)
109018
+ }, null, 46, _hoisted_4$F)
108935
109019
  ]);
108936
109020
  }), 128))
108937
109021
  ]),
@@ -109227,16 +109311,23 @@ const _sfc_main$2x = /* @__PURE__ */ defineComponent({
109227
109311
  }
109228
109312
  });
109229
109313
  const _hoisted_1$1K = { class: "sub-table-action-bar" };
109230
- const _hoisted_2$16 = { class: "material-consume-menu" };
109231
- const _hoisted_3$Q = ["onClick"];
109232
- const _hoisted_4$F = { class: "sub-table-btn scan-btn" };
109233
- const _hoisted_5$u = { class: "sub-table-action-content" };
109234
- const _hoisted_6$m = { class: "action-group" };
109235
- const _hoisted_7$h = { class: "insert-row-container" };
109236
- const _hoisted_8$e = { class: "insert-row-item" };
109237
- const _hoisted_9$a = { class: "insert-row-item" };
109238
- const _hoisted_10$7 = { class: "sub-table-btn" };
109239
- const _hoisted_11$5 = { class: "sub-table-btn" };
109314
+ const _hoisted_2$16 = { class: "sub-table-action-popper" };
109315
+ const _hoisted_3$Q = {
109316
+ key: 0,
109317
+ class: "action-menu"
109318
+ };
109319
+ const _hoisted_4$E = ["onClick"];
109320
+ const _hoisted_5$u = { class: "item-label" };
109321
+ const _hoisted_6$m = { class: "action-menu" };
109322
+ const _hoisted_7$h = { class: "item-icon" };
109323
+ const _hoisted_8$e = { class: "item-icon" };
109324
+ const _hoisted_9$a = { class: "item-icon scale-large" };
109325
+ const _hoisted_10$7 = { class: "item-label flex-between-center" };
109326
+ const _hoisted_11$5 = { class: "item-icon scale-large" };
109327
+ const _hoisted_12$4 = { class: "item-label flex-between-center" };
109328
+ const _hoisted_13$3 = { class: "action-menu" };
109329
+ const _hoisted_14$3 = { class: "item-icon" };
109330
+ const _hoisted_15$2 = { class: "more-btn" };
109240
109331
  const _sfc_main$2w = /* @__PURE__ */ defineComponent({
109241
109332
  __name: "sub-table-action",
109242
109333
  props: {
@@ -109252,12 +109343,6 @@ const _sfc_main$2w = /* @__PURE__ */ defineComponent({
109252
109343
  const props = __props;
109253
109344
  const mainFields = designCtx.runtime.getFieldList(props.doc.mainModelKey);
109254
109345
  const HOVER_DELAY = { show: 200, hide: 150 };
109255
- const materialMenus = [
109256
- { label: "条码扫描", value: "scan" },
109257
- { label: "BOM", value: "bom" },
109258
- { label: "条码解析规则变更", value: "change" }
109259
- ];
109260
- const insertMoreRef = ref(null);
109261
109346
  const formState = reactive({
109262
109347
  upRowNum: 1,
109263
109348
  downRowNum: 1
@@ -109293,6 +109378,14 @@ const _sfc_main$2w = /* @__PURE__ */ defineComponent({
109293
109378
  const tableData = docInst.value.dataManager.getRawData()[subFieldKey] ?? [];
109294
109379
  return tableData[rowIndex]?.is_confirmed_;
109295
109380
  });
109381
+ const materialMenuList = computed(() => {
109382
+ return [
109383
+ { icon: "icon-bianji", label: "编辑行", value: "edit", visible: isMaterialConsumeTableConfirmed.value },
109384
+ { icon: "icon-saoyisao", label: "条码扫描", value: "scan", visible: props.isLastGroup },
109385
+ { icon: "icon-a-bom11", label: "BOM", value: "bom", visible: props.isLastGroup },
109386
+ { icon: "icon-tiaomajiexi", label: "条码解析规则变更", value: "change", visible: props.isLastGroup }
109387
+ ];
109388
+ });
109296
109389
  const handleMaterialConsumeAction = async (val) => {
109297
109390
  if (!tmplBomCRef?.value?.tableControllers || !props.cell?.subRenderer?.valuePath) return;
109298
109391
  const tableController = tmplBomCRef.value.tableControllers[props.cell.subRenderer.valuePath];
@@ -109340,7 +109433,7 @@ const _sfc_main$2w = /* @__PURE__ */ defineComponent({
109340
109433
  const { path, index: index2 } = getCtx();
109341
109434
  const storageIndex = props.doc.dataManager.resolveSubtableVisibleIndex(path, index2);
109342
109435
  const data = props.doc.dataManager.get(`${path}[${storageIndex}]`) || {};
109343
- props.doc.dataManager.insertAt(path, index2 + 1, data);
109436
+ props.doc.dataManager.insertAt(path, index2 + 1, omit(data, "id_"));
109344
109437
  };
109345
109438
  const actionHandlers = {
109346
109439
  insertRowAfter() {
@@ -109359,7 +109452,6 @@ const _sfc_main$2w = /* @__PURE__ */ defineComponent({
109359
109452
  copyCurrentRow: copyRow
109360
109453
  };
109361
109454
  const handleAction = (key) => {
109362
- insertMoreRef.value?.hide?.();
109363
109455
  actionHandlers[key]?.();
109364
109456
  formState.upRowNum = 1;
109365
109457
  formState.downRowNum = 1;
@@ -109370,167 +109462,139 @@ const _sfc_main$2w = /* @__PURE__ */ defineComponent({
109370
109462
  }, [
109371
109463
  !readonly2.value ? (openBlock(), createElementBlock("div", {
109372
109464
  key: 0,
109373
- class: "sub-table-action",
109465
+ class: "sub-table-action-container",
109374
109466
  style: normalizeStyle(__props.pos)
109375
109467
  }, [
109376
109468
  createElementVNode("div", _hoisted_1$1K, [
109377
- isMaterialConsumeTable.value && __props.isLastGroup && !isMaterialConsumeTableConfirmed.value ? (openBlock(), createElementBlock("div", {
109378
- key: 0,
109379
- class: "sub-table-btn confirm-btn",
109380
- onClick: _cache[0] || (_cache[0] = ($event) => handleMaterialConsumeAction("confirm"))
109381
- }, [
109382
- createVNode(unref(GctIcon), {
109383
- icon: "icon-tijiao1",
109384
- color: "#4ec262"
109385
- })
109386
- ])) : createCommentVNode("", true),
109387
- isMaterialConsumeTable.value && __props.isLastGroup ? (openBlock(), createBlock(unref(_sfc_main$3q), {
109388
- key: 1,
109389
- placement: "bottom-start",
109390
- triggers: ["hover"],
109391
- popperTriggers: ["hover"],
109392
- delay: HOVER_DELAY,
109393
- "instant-move": ""
109394
- }, {
109395
- popper: withCtx(() => [
109396
- createElementVNode("div", _hoisted_2$16, [
109397
- (openBlock(), createElementBlock(Fragment, null, renderList(materialMenus, (item) => {
109398
- return createElementVNode("div", {
109399
- key: item.value,
109400
- class: "menu-item",
109401
- onClick: ($event) => handleMaterialConsumeAction(item.value)
109402
- }, toDisplayString(item.label), 9, _hoisted_3$Q);
109403
- }), 64))
109404
- ])
109405
- ]),
109406
- default: withCtx(() => [
109407
- createElementVNode("div", _hoisted_4$F, [
109408
- createVNode(unref(GctIcon), {
109409
- icon: "icon-saoyisao",
109410
- color: "#5378ff"
109411
- })
109412
- ])
109413
- ]),
109414
- _: 1
109415
- })) : createCommentVNode("", true),
109416
109469
  createVNode(unref(_sfc_main$3q), {
109417
- placement: "right",
109470
+ placement: "bottom-end",
109418
109471
  triggers: ["hover"],
109419
109472
  popperTriggers: ["hover"],
109420
109473
  delay: HOVER_DELAY,
109421
109474
  "instant-move": ""
109422
109475
  }, {
109423
109476
  popper: withCtx(() => [
109424
- createElementVNode("div", _hoisted_5$u, [
109477
+ createElementVNode("div", _hoisted_2$16, [
109478
+ isMaterialConsumeTable.value ? (openBlock(), createElementBlock("div", _hoisted_3$Q, [
109479
+ _cache[10] || (_cache[10] = createElementVNode("div", { class: "menu-title" }, "业务操作", -1)),
109480
+ (openBlock(true), createElementBlock(Fragment, null, renderList(materialMenuList.value.filter((o) => o.visible), (item) => {
109481
+ return openBlock(), createElementBlock("div", {
109482
+ key: item.value,
109483
+ class: "menu-item",
109484
+ onClick: ($event) => handleMaterialConsumeAction(item.value)
109485
+ }, [
109486
+ createElementVNode("div", {
109487
+ class: normalizeClass(["item-icon", item.value === "change" ? "scale-large" : void 0])
109488
+ }, [
109489
+ createVNode(unref(GctIcon), {
109490
+ icon: item.icon
109491
+ }, null, 8, ["icon"])
109492
+ ], 2),
109493
+ createElementVNode("div", _hoisted_5$u, toDisplayString(item.label), 1)
109494
+ ], 8, _hoisted_4$E);
109495
+ }), 128))
109496
+ ])) : createCommentVNode("", true),
109425
109497
  createElementVNode("div", _hoisted_6$m, [
109426
- isMaterialConsumeTable.value && isMaterialConsumeTableConfirmed.value ? (openBlock(), createElementBlock("div", {
109427
- key: 0,
109428
- class: "sub-table-btn",
109429
- onClick: _cache[1] || (_cache[1] = ($event) => handleMaterialConsumeAction("edit"))
109430
- }, [
109431
- createVNode(unref(GctIcon), {
109432
- icon: "icon-bianji",
109433
- color: "#fff"
109434
- })
109435
- ])) : createCommentVNode("", true),
109498
+ _cache[15] || (_cache[15] = createElementVNode("div", { class: "menu-title" }, "行编辑", -1)),
109436
109499
  createElementVNode("div", {
109437
- class: "sub-table-btn",
109438
- onClick: _cache[2] || (_cache[2] = ($event) => handleAction("insertRowAfter"))
109500
+ class: "menu-item",
109501
+ onClick: _cache[0] || (_cache[0] = ($event) => handleAction("insertRowAfter"))
109439
109502
  }, [
109440
- createVNode(unref(GctIcon), {
109441
- icon: "icon-tianjia",
109442
- color: "#fff"
109443
- })
109503
+ createElementVNode("div", _hoisted_7$h, [
109504
+ createVNode(unref(GctIcon), { icon: "icon-tianjia" })
109505
+ ]),
109506
+ _cache[11] || (_cache[11] = createElementVNode("div", { class: "item-label" }, " 加一行 ", -1))
109444
109507
  ]),
109445
109508
  createElementVNode("div", {
109446
- class: "sub-table-btn",
109447
- onClick: _cache[3] || (_cache[3] = ($event) => handleAction("copyCurrentRow"))
109509
+ class: "menu-item",
109510
+ onClick: _cache[1] || (_cache[1] = ($event) => handleAction("copyCurrentRow"))
109448
109511
  }, [
109449
- createVNode(unref(GctIcon), {
109450
- icon: "icon-fuzhihang",
109451
- color: "#fff"
109452
- })
109512
+ createElementVNode("div", _hoisted_8$e, [
109513
+ createVNode(unref(GctIcon), { icon: "icon-fuzhihang" })
109514
+ ]),
109515
+ _cache[12] || (_cache[12] = createElementVNode("div", { class: "item-label" }, " 复制行 ", -1))
109453
109516
  ]),
109454
- createVNode(unref(_sfc_main$3q), {
109455
- ref_key: "insertMoreRef",
109456
- ref: insertMoreRef,
109457
- placement: "bottom-start",
109458
- showTriggers: ["hover"],
109459
- popperShowTriggers: ["hover"],
109460
- popperHideTriggers: ["hover"],
109461
- delay: HOVER_DELAY,
109462
- distance: 6,
109463
- "instant-move": ""
109464
- }, {
109465
- popper: withCtx(() => [
109466
- createElementVNode("div", _hoisted_7$h, [
109467
- createElementVNode("div", _hoisted_8$e, [
109468
- createElementVNode("div", {
109469
- class: "title",
109470
- onClick: _cache[4] || (_cache[4] = ($event) => handleAction("insertRowBeforeMore"))
109471
- }, " 在上方插入行 "),
109472
- createVNode(unref(GctInputNumber), {
109473
- modelValue: formState.upRowNum,
109474
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => formState.upRowNum = $event),
109475
- min: 1,
109476
- integer: "",
109477
- style: { "width": "68px" }
109478
- }, null, 8, ["modelValue"])
109479
- ]),
109480
- createElementVNode("div", _hoisted_9$a, [
109481
- createElementVNode("div", {
109482
- class: "title",
109483
- onClick: _cache[6] || (_cache[6] = ($event) => handleAction("insertRowAfterMore"))
109484
- }, " 在下方插入行 "),
109485
- createVNode(unref(GctInputNumber), {
109486
- modelValue: formState.downRowNum,
109487
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => formState.downRowNum = $event),
109488
- min: 1,
109489
- integer: "",
109490
- style: { "width": "68px" }
109491
- }, null, 8, ["modelValue"])
109492
- ])
109493
- ])
109517
+ createElementVNode("div", {
109518
+ class: "menu-item",
109519
+ onClick: _cache[4] || (_cache[4] = ($event) => handleAction("insertRowBeforeMore"))
109520
+ }, [
109521
+ createElementVNode("div", _hoisted_9$a, [
109522
+ createVNode(unref(GctIcon), { icon: "icon-shangfangcharuhang" })
109494
109523
  ]),
109495
- default: withCtx(() => [
109496
- createElementVNode("div", _hoisted_10$7, [
109497
- createVNode(unref(GctIcon), {
109498
- icon: "icon-gengduo1",
109499
- color: "#fff"
109500
- })
109501
- ])
109524
+ createElementVNode("div", _hoisted_10$7, [
109525
+ _cache[13] || (_cache[13] = createElementVNode("div", null, " 在上方插入行 ", -1)),
109526
+ createVNode(unref(GctInputNumber), {
109527
+ modelValue: formState.upRowNum,
109528
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => formState.upRowNum = $event),
109529
+ min: 1,
109530
+ integer: "",
109531
+ style: { "width": "68px" },
109532
+ onClick: _cache[3] || (_cache[3] = withModifiers(() => {
109533
+ }, ["stop"]))
109534
+ }, null, 8, ["modelValue"])
109535
+ ])
109536
+ ]),
109537
+ createElementVNode("div", {
109538
+ class: "menu-item",
109539
+ onClick: _cache[7] || (_cache[7] = ($event) => handleAction("insertRowAfterMore"))
109540
+ }, [
109541
+ createElementVNode("div", _hoisted_11$5, [
109542
+ createVNode(unref(GctIcon), { icon: "icon-xiafangcharuhang" })
109502
109543
  ]),
109503
- _: 1
109504
- }, 512)
109544
+ createElementVNode("div", _hoisted_12$4, [
109545
+ _cache[14] || (_cache[14] = createElementVNode("div", null, " 在下方插入行 ", -1)),
109546
+ createVNode(unref(GctInputNumber), {
109547
+ modelValue: formState.downRowNum,
109548
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => formState.downRowNum = $event),
109549
+ min: 1,
109550
+ integer: "",
109551
+ style: { "width": "68px" },
109552
+ onClick: _cache[6] || (_cache[6] = withModifiers(() => {
109553
+ }, ["stop"]))
109554
+ }, null, 8, ["modelValue"])
109555
+ ])
109556
+ ])
109505
109557
  ]),
109506
- createElementVNode("div", {
109507
- class: "sub-table-btn delete-icon",
109508
- onClick: _cache[8] || (_cache[8] = ($event) => handleAction("deleteRowCurrent"))
109509
- }, [
109510
- createVNode(unref(GctIcon), {
109511
- icon: "icon-shanchu1",
109512
- color: "#fff"
109513
- })
109558
+ createElementVNode("div", _hoisted_13$3, [
109559
+ createElementVNode("div", {
109560
+ class: "menu-item",
109561
+ onClick: _cache[8] || (_cache[8] = ($event) => handleAction("deleteRowCurrent"))
109562
+ }, [
109563
+ createElementVNode("div", _hoisted_14$3, [
109564
+ createVNode(unref(GctIcon), { icon: "icon-shanchu1" })
109565
+ ]),
109566
+ _cache[16] || (_cache[16] = createElementVNode("div", { class: "item-label" }, " 删除行 ", -1))
109567
+ ])
109514
109568
  ])
109515
109569
  ])
109516
109570
  ]),
109517
109571
  default: withCtx(() => [
109518
- createElementVNode("div", _hoisted_11$5, [
109572
+ createElementVNode("div", _hoisted_15$2, [
109519
109573
  createVNode(unref(GctIcon), {
109520
- icon: "icon-neibuyingyong",
109521
- color: "#5378ff"
109574
+ icon: "icon-gengduo1",
109575
+ color: "#fff"
109522
109576
  })
109523
109577
  ])
109524
109578
  ]),
109525
109579
  _: 1
109526
- })
109580
+ }),
109581
+ isMaterialConsumeTable.value && __props.isLastGroup && !isMaterialConsumeTableConfirmed.value ? (openBlock(), createElementBlock("div", {
109582
+ key: 0,
109583
+ class: "confirm-btn",
109584
+ onClick: _cache[9] || (_cache[9] = ($event) => handleMaterialConsumeAction("confirm"))
109585
+ }, [
109586
+ createVNode(unref(GctIcon), {
109587
+ icon: "icon-tijiao1",
109588
+ color: "#4ec262"
109589
+ })
109590
+ ])) : createCommentVNode("", true)
109527
109591
  ])
109528
109592
  ], 4)) : createCommentVNode("", true)
109529
109593
  ], 8, ["to"]);
109530
109594
  };
109531
109595
  }
109532
109596
  });
109533
- const SubTableAction = /* @__PURE__ */ _export_sfc(_sfc_main$2w, [["__scopeId", "data-v-3228f8df"]]);
109597
+ const SubTableAction = /* @__PURE__ */ _export_sfc(_sfc_main$2w, [["__scopeId", "data-v-5e39d20c"]]);
109534
109598
  const _sfc_main$2v = /* @__PURE__ */ defineComponent({
109535
109599
  __name: "index",
109536
109600
  props: {
@@ -111312,7 +111376,7 @@ const _sfc_main$2o = /* @__PURE__ */ defineComponent({
111312
111376
  const _hoisted_1$1E = { class: "color-picker-container" };
111313
111377
  const _hoisted_2$11 = { class: "color-content-auto" };
111314
111378
  const _hoisted_3$N = { class: "color-content-theme" };
111315
- const _hoisted_4$E = ["onClick"];
111379
+ const _hoisted_4$D = ["onClick"];
111316
111380
  const _hoisted_5$t = { class: "color-content-standard" };
111317
111381
  const _hoisted_6$l = { class: "items" };
111318
111382
  const _hoisted_7$g = ["onClick"];
@@ -111395,7 +111459,7 @@ const _sfc_main$2n = /* @__PURE__ */ defineComponent({
111395
111459
  class: "color-icon",
111396
111460
  style: normalizeStyle({ "background-color": c2.color }),
111397
111461
  onClick: ($event) => handleColorClick(c2.color)
111398
- }, null, 12, _hoisted_4$E))
111462
+ }, null, 12, _hoisted_4$D))
111399
111463
  ]),
111400
111464
  _: 2
111401
111465
  }, 1024);
@@ -111898,7 +111962,7 @@ const svgTableMaterialConsume = "data:image/svg+xml,%3c?xml%20version='1.0'%20st
111898
111962
  const _hoisted_1$1A = { class: "items-container" };
111899
111963
  const _hoisted_2$10 = { class: "ribbon-tab-item" };
111900
111964
  const _hoisted_3$M = { class: "ribbon-tab-item" };
111901
- const _hoisted_4$D = { class: "ribbon-tab-item" };
111965
+ const _hoisted_4$C = { class: "ribbon-tab-item" };
111902
111966
  const _hoisted_5$s = { class: "ribbon-tab-item" };
111903
111967
  const _hoisted_6$k = { class: "ribbon-tab-item" };
111904
111968
  const _hoisted_7$f = { class: "ribbon-tab-item" };
@@ -112205,7 +112269,7 @@ const _sfc_main$2j = /* @__PURE__ */ defineComponent({
112205
112269
  }, 8, ["modelValue", "options"])
112206
112270
  ]),
112207
112271
  _cache[27] || (_cache[27] = createElementVNode("div", { class: "split-divider" }, null, -1)),
112208
- createElementVNode("div", _hoisted_4$D, [
112272
+ createElementVNode("div", _hoisted_4$C, [
112209
112273
  createVNode(ButtonIcon, {
112210
112274
  tooltip: "加粗",
112211
112275
  iconExtraProps: { icon: "icon-Bold" },
@@ -112339,7 +112403,7 @@ const Ribbon = /* @__PURE__ */ _export_sfc(_sfc_main$2i, [["__scopeId", "data-v-
112339
112403
  const _hoisted_1$1y = { class: "toolkit-item" };
112340
112404
  const _hoisted_2$_ = { class: "toolkit-popper-wrap" };
112341
112405
  const _hoisted_3$L = { class: "toolkit-popper-title" };
112342
- const _hoisted_4$C = { class: "title" };
112406
+ const _hoisted_4$B = { class: "title" };
112343
112407
  const _hoisted_5$r = { class: "label" };
112344
112408
  const _sfc_main$2h = /* @__PURE__ */ defineComponent({
112345
112409
  __name: "toolkit-item",
@@ -112407,7 +112471,7 @@ const _sfc_main$2h = /* @__PURE__ */ defineComponent({
112407
112471
  fn: withCtx(() => [
112408
112472
  createElementVNode("div", _hoisted_2$_, [
112409
112473
  createElementVNode("div", _hoisted_3$L, [
112410
- createElementVNode("span", _hoisted_4$C, toDisplayString(__props.title), 1),
112474
+ createElementVNode("span", _hoisted_4$B, toDisplayString(__props.title), 1),
112411
112475
  createElementVNode("span", {
112412
112476
  class: "close",
112413
112477
  onClick: onClose
@@ -112579,7 +112643,7 @@ function createDesignPaperWidgetToWidgetFactory(getManifest) {
112579
112643
  const _hoisted_1$1x = { class: "content-fields-wrapper" };
112580
112644
  const _hoisted_2$Z = { class: "search" };
112581
112645
  const _hoisted_3$K = { class: "container" };
112582
- const _hoisted_4$B = { class: "item main" };
112646
+ const _hoisted_4$A = { class: "item main" };
112583
112647
  const _hoisted_5$q = {
112584
112648
  key: 0,
112585
112649
  class: "field-list-wrap"
@@ -112687,7 +112751,7 @@ const _sfc_main$2g = /* @__PURE__ */ defineComponent({
112687
112751
  }, 8, ["modelValue"])
112688
112752
  ]),
112689
112753
  createElementVNode("div", _hoisted_3$K, [
112690
- createElementVNode("div", _hoisted_4$B, toDisplayString(unref(modelMeta)?.modelName), 1),
112754
+ createElementVNode("div", _hoisted_4$A, toDisplayString(unref(modelMeta)?.modelName), 1),
112691
112755
  filteredFields.value.length ? (openBlock(), createElementBlock("div", _hoisted_5$q, [
112692
112756
  createVNode(unref(GctScrollbar), null, {
112693
112757
  default: withCtx(() => [
@@ -112875,7 +112939,7 @@ const _hoisted_3$I = {
112875
112939
  key: 0,
112876
112940
  class: "breadcrumb"
112877
112941
  };
112878
- const _hoisted_4$A = {
112942
+ const _hoisted_4$z = {
112879
112943
  key: 1,
112880
112944
  class: "title"
112881
112945
  };
@@ -112966,7 +113030,7 @@ const _sfc_main$2d = /* @__PURE__ */ defineComponent({
112966
113030
  ]),
112967
113031
  _: 1
112968
113032
  })
112969
- ])) : (openBlock(), createElementBlock("div", _hoisted_4$A, toDisplayString(unref(schemaTitle) || "表单属性"), 1))
113033
+ ])) : (openBlock(), createElementBlock("div", _hoisted_4$z, toDisplayString(unref(schemaTitle) || "表单属性"), 1))
112970
113034
  ]),
112971
113035
  createElementVNode("div", {
112972
113036
  class: normalizeClass(["panel-container", unref(active) ? unref(active).panelType.replace(":", "-") + "-container" : void 0])
@@ -113510,7 +113574,7 @@ function resolveTableColModelIndex(tableCell) {
113510
113574
  const _hoisted_1$1t = { class: "item-suffix" };
113511
113575
  const _hoisted_2$W = { class: "item-suffix" };
113512
113576
  const _hoisted_3$H = { class: "item-suffix" };
113513
- const _hoisted_4$z = { class: "item-suffix" };
113577
+ const _hoisted_4$y = { class: "item-suffix" };
113514
113578
  const _sfc_main$27 = /* @__PURE__ */ defineComponent({
113515
113579
  __name: "table-menu",
113516
113580
  props: {
@@ -113685,7 +113749,7 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
113685
113749
  }, [
113686
113750
  _cache[25] || (_cache[25] = createElementVNode("i", { class: "item-icon icon iconfont icon-a-xiacharuhang1" }, null, -1)),
113687
113751
  _cache[26] || (_cache[26] = createElementVNode("span", { class: "item-name" }, "在下方插入行", -1)),
113688
- createElementVNode("div", _hoisted_4$z, [
113752
+ createElementVNode("div", _hoisted_4$y, [
113689
113753
  createVNode(unref(GctInputNumber), {
113690
113754
  min: 1,
113691
113755
  modelValue: insertAfterRowCount.value,
@@ -113809,7 +113873,7 @@ const _sfc_main$26 = /* @__PURE__ */ defineComponent({
113809
113873
  const _hoisted_1$1s = { class: "validation-comment-item" };
113810
113874
  const _hoisted_2$V = { class: "validation-comment-panel-container" };
113811
113875
  const _hoisted_3$G = { class: "comment-header" };
113812
- const _hoisted_4$y = { class: "comment-messages" };
113876
+ const _hoisted_4$x = { class: "comment-messages" };
113813
113877
  const _hoisted_5$o = { class: "message-item" };
113814
113878
  const _hoisted_6$i = { class: "field-name" };
113815
113879
  const _hoisted_7$d = { class: "error-text" };
@@ -113895,7 +113959,7 @@ const _sfc_main$25 = /* @__PURE__ */ defineComponent({
113895
113959
  class: normalizeClass(["comment-tag", header.value.cls])
113896
113960
  }, toDisplayString(header.value.title), 3)
113897
113961
  ]),
113898
- createElementVNode("div", _hoisted_4$y, [
113962
+ createElementVNode("div", _hoisted_4$x, [
113899
113963
  (openBlock(true), createElementBlock(Fragment, null, renderList(fieldErrorList.value, (item) => {
113900
113964
  return openBlock(), createElementBlock("div", _hoisted_5$o, [
113901
113965
  createElementVNode("div", _hoisted_6$i, toDisplayString(unref(fieldInfo)?.name) + ":", 1),
@@ -113996,7 +114060,7 @@ const ValidationCommentLayer = /* @__PURE__ */ _export_sfc(_sfc_main$24, [["__sc
113996
114060
  const _hoisted_1$1q = { class: "cl__item" };
113997
114061
  const _hoisted_2$U = { class: "cl__item-panel-container" };
113998
114062
  const _hoisted_3$F = { class: "cl__hdr" };
113999
- const _hoisted_4$x = { class: "cl__hdr-title" };
114063
+ const _hoisted_4$w = { class: "cl__hdr-title" };
114000
114064
  const _hoisted_5$n = {
114001
114065
  key: 0,
114002
114066
  class: "cl__hdr-flag"
@@ -114111,7 +114175,7 @@ const _sfc_main$23 = /* @__PURE__ */ defineComponent({
114111
114175
  }, [
114112
114176
  createElementVNode("article", _hoisted_2$U, [
114113
114177
  createElementVNode("header", _hoisted_3$F, [
114114
- createElementVNode("div", _hoisted_4$x, toDisplayString(getHeaderLabel(__props.data.changeType)), 1),
114178
+ createElementVNode("div", _hoisted_4$w, toDisplayString(getHeaderLabel(__props.data.changeType)), 1),
114115
114179
  __props.data.isCurrentChange ? (openBlock(), createElementBlock("div", _hoisted_5$n, "本次变更")) : createCommentVNode("", true)
114116
114180
  ]),
114117
114181
  createElementVNode("div", _hoisted_6$h, [
@@ -114705,7 +114769,7 @@ const _hoisted_3$E = {
114705
114769
  key: 1,
114706
114770
  class: "empty-container"
114707
114771
  };
114708
- const _hoisted_4$w = {
114772
+ const _hoisted_4$v = {
114709
114773
  key: 0,
114710
114774
  class: "right-container"
114711
114775
  };
@@ -114793,7 +114857,7 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
114793
114857
  width: isPreview.value ? "0px" : `${unref(rightWidth)}px`
114794
114858
  })
114795
114859
  }, [
114796
- !isPreview.value ? (openBlock(), createElementBlock("div", _hoisted_4$w, [
114860
+ !isPreview.value ? (openBlock(), createElementBlock("div", _hoisted_4$v, [
114797
114861
  createElementVNode("div", {
114798
114862
  class: "divider",
114799
114863
  onMousedown: _cache[0] || (_cache[0] = (e) => handleMouseDown(e))
@@ -118885,7 +118949,7 @@ const PortraitIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["render", _sfc_
118885
118949
  const _hoisted_1$1k = { class: "orientation-item" };
118886
118950
  const _hoisted_2$R = { class: "orientation-icon" };
118887
118951
  const _hoisted_3$D = { class: "orientation-item" };
118888
- const _hoisted_4$v = { class: "orientation-icon" };
118952
+ const _hoisted_4$u = { class: "orientation-icon" };
118889
118953
  const _sfc_main$1F = /* @__PURE__ */ defineComponent({
118890
118954
  __name: "orientation-module",
118891
118955
  props: {
@@ -118924,7 +118988,7 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
118924
118988
  }, 8, ["value"])
118925
118989
  ]),
118926
118990
  createElementVNode("label", _hoisted_3$D, [
118927
- createElementVNode("span", _hoisted_4$v, [
118991
+ createElementVNode("span", _hoisted_4$u, [
118928
118992
  createVNode(LandscapeIcon)
118929
118993
  ]),
118930
118994
  createVNode(unref(GctRadio), {
@@ -119096,7 +119160,7 @@ const _hoisted_3$C = {
119096
119160
  key: 0,
119097
119161
  class: "head"
119098
119162
  };
119099
- const _hoisted_4$u = { class: "title" };
119163
+ const _hoisted_4$t = { class: "title" };
119100
119164
  const _hoisted_5$l = {
119101
119165
  key: 1,
119102
119166
  class: "link"
@@ -119133,7 +119197,7 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
119133
119197
  onClick: ($event) => _ctx.$emit("active", item)
119134
119198
  }, [
119135
119199
  item?.thead ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
119136
- createElementVNode("span", _hoisted_4$u, toDisplayString(item.thead.name || "[表头]"), 1),
119200
+ createElementVNode("span", _hoisted_4$t, toDisplayString(item.thead.name || "[表头]"), 1),
119137
119201
  createVNode(unref(GctIcon), {
119138
119202
  class: "icon",
119139
119203
  icon: "icon-shanchu2",
@@ -119602,7 +119666,7 @@ function usePanelProps(targetRef, propsPath, opts) {
119602
119666
  const _hoisted_1$1g = { class: "panel-dynamic-table" };
119603
119667
  const _hoisted_2$N = { class: "container" };
119604
119668
  const _hoisted_3$A = { class: "container" };
119605
- const _hoisted_4$t = { class: "form-custom-label" };
119669
+ const _hoisted_4$s = { class: "form-custom-label" };
119606
119670
  const _hoisted_5$k = { class: "content" };
119607
119671
  const _sfc_main$1B = /* @__PURE__ */ defineComponent({
119608
119672
  __name: "DynamicTablePanel",
@@ -119704,7 +119768,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
119704
119768
  createElementVNode("div", _hoisted_3$A, [
119705
119769
  createVNode(unref(GctFormItem), null, {
119706
119770
  label: withCtx(() => [
119707
- createElementVNode("div", _hoisted_4$t, [
119771
+ createElementVNode("div", _hoisted_4$s, [
119708
119772
  _cache[2] || (_cache[2] = createElementVNode("span", null, "快速填报", -1)),
119709
119773
  createVNode(unref(_sfc_main$34), {
119710
119774
  distance: 12,
@@ -119754,7 +119818,7 @@ const schema$b = {
119754
119818
  const _hoisted_1$1f = { class: "panel-2d-table" };
119755
119819
  const _hoisted_2$M = { class: "container" };
119756
119820
  const _hoisted_3$z = { class: "line-content" };
119757
- const _hoisted_4$s = { class: "line-content cell-count" };
119821
+ const _hoisted_4$r = { class: "line-content cell-count" };
119758
119822
  const _sfc_main$1A = /* @__PURE__ */ defineComponent({
119759
119823
  __name: "_2DTablePanel",
119760
119824
  props: {
@@ -119866,7 +119930,7 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
119866
119930
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => onDelete("deleteDataGroup2D"), ["stop"]))
119867
119931
  }, "删除动态关联")) : createCommentVNode("", true)
119868
119932
  ]),
119869
- createElementVNode("div", _hoisted_4$s, [
119933
+ createElementVNode("div", _hoisted_4$r, [
119870
119934
  _cache[2] || (_cache[2] = createElementVNode("span", null, "当前已固定", -1)),
119871
119935
  createElementVNode("span", null, toDisplayString(unref(regionRef)?.cellCount), 1),
119872
119936
  _cache[3] || (_cache[3] = createElementVNode("span", null, "个单元格", -1))
@@ -119931,7 +119995,8 @@ const AddBtn = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-
119931
119995
  const _sfc_main$1y = /* @__PURE__ */ defineComponent({
119932
119996
  __name: "parse-rule-editor",
119933
119997
  props: {
119934
- modelValue: { default: void 0 }
119998
+ modelValue: { default: void 0 },
119999
+ subModelKey: { default: void 0 }
119935
120000
  },
119936
120001
  emits: ["update:modelValue"],
119937
120002
  setup(__props, { emit: __emit }) {
@@ -119960,8 +120025,9 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
119960
120025
  return (_ctx, _cache) => {
119961
120026
  return openBlock(), createBlock(AddBtn, {
119962
120027
  modelValue: value.value,
119963
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
119964
- }, null, 8, ["modelValue"]);
120028
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
120029
+ subModelKey: __props.subModelKey
120030
+ }, null, 8, ["modelValue", "subModelKey"]);
119965
120031
  };
119966
120032
  }
119967
120033
  });
@@ -120035,7 +120101,7 @@ const _hoisted_3$y = {
120035
120101
  key: 0,
120036
120102
  class: "iconfont icon-drag mover"
120037
120103
  };
120038
- const _hoisted_4$r = { class: "bom-entry-item-content ks-col" };
120104
+ const _hoisted_4$q = { class: "bom-entry-item-content ks-col" };
120039
120105
  const _hoisted_5$j = { class: "bom-entry-item-content-item ell overflow-hidden" };
120040
120106
  const _hoisted_6$e = ["title"];
120041
120107
  const _hoisted_7$9 = { class: "bom-entry-item-btns ml8px" };
@@ -120067,7 +120133,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
120067
120133
  }
120068
120134
  const edit = async (data) => {
120069
120135
  const cloneData = cloneDeep(data);
120070
- const hasIds = calcHasProductIds();
120136
+ const hasIds = calcHasProductIds(data);
120071
120137
  triggerUtil.handle("OPEN_MATERIAL_CONSUME_TABLE_ADD_MATERIAL_MODAL", { data: cloneData, hasIds }).then((res) => {
120072
120138
  if (res.ok) {
120073
120139
  Object.assign(data, res.data);
@@ -120131,7 +120197,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
120131
120197
  item: withCtx(({ element }) => [
120132
120198
  createElementVNode("div", _hoisted_2$L, [
120133
120199
  !__props.disabled ? (openBlock(), createElementBlock("i", _hoisted_3$y)) : createCommentVNode("", true),
120134
- createElementVNode("div", _hoisted_4$r, [
120200
+ createElementVNode("div", _hoisted_4$q, [
120135
120201
  createElementVNode("div", _hoisted_5$j, [
120136
120202
  (openBlock(), createBlock(_sfc_main$1x, {
120137
120203
  key: element.product_id_,
@@ -120177,11 +120243,11 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
120177
120243
  };
120178
120244
  }
120179
120245
  });
120180
- const BomEntryEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["__scopeId", "data-v-bd727c66"]]);
120246
+ const BomEntryEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["__scopeId", "data-v-d7a225cc"]]);
120181
120247
  const _hoisted_1$1c = { class: "panel-material-consume-table" };
120182
120248
  const _hoisted_2$K = { class: "container" };
120183
120249
  const _hoisted_3$x = { class: "container" };
120184
- const _hoisted_4$q = { class: "content" };
120250
+ const _hoisted_4$p = { class: "content" };
120185
120251
  const _hoisted_5$i = { class: "entries-container" };
120186
120252
  const _hoisted_6$d = { class: "content" };
120187
120253
  const _sfc_main$1v = /* @__PURE__ */ defineComponent({
@@ -120291,7 +120357,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
120291
120357
  createVNode(_sfc_main$1y, {
120292
120358
  modelValue: unref(regionProps).barcode_parsing_rules_id_,
120293
120359
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(regionProps).barcode_parsing_rules_id_ = $event),
120294
- subModelKey: fieldInfo.value?.modelKey
120360
+ subModelKey: fieldInfo.value?.bindInfo
120295
120361
  }, null, 8, ["modelValue", "subModelKey"])
120296
120362
  ]),
120297
120363
  _: 1
@@ -120301,7 +120367,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
120301
120367
  createElementVNode("div", { class: "form-custom-label" }, " 人为指定物料 ", -1)
120302
120368
  ])]),
120303
120369
  default: withCtx(() => [
120304
- createElementVNode("div", _hoisted_4$q, [
120370
+ createElementVNode("div", _hoisted_4$p, [
120305
120371
  createVNode(unref(GctSwitch), {
120306
120372
  modelValue: unref(regionProps).personal_bom_enabled_,
120307
120373
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(regionProps).personal_bom_enabled_ = $event),
@@ -120342,7 +120408,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
120342
120408
  };
120343
120409
  }
120344
120410
  });
120345
- const MaterialConsumeTablePanel = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["__scopeId", "data-v-e911ba4d"]]);
120411
+ const MaterialConsumeTablePanel = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["__scopeId", "data-v-d02b91ab"]]);
120346
120412
  const schema$9 = {
120347
120413
  key: "material-consume-table.basic",
120348
120414
  title: [
@@ -120354,7 +120420,7 @@ const schema$9 = {
120354
120420
  const _hoisted_1$1b = { class: "panel-fixed-table" };
120355
120421
  const _hoisted_2$J = { class: "container" };
120356
120422
  const _hoisted_3$w = { class: "line-content" };
120357
- const _hoisted_4$p = { class: "line-content cell-count" };
120423
+ const _hoisted_4$o = { class: "line-content cell-count" };
120358
120424
  const _sfc_main$1u = /* @__PURE__ */ defineComponent({
120359
120425
  __name: "FixedTablePanel",
120360
120426
  props: {
@@ -120466,7 +120532,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
120466
120532
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => onDelete("deleteBoundedItem"), ["stop"]))
120467
120533
  }, "删除数据分组")) : createCommentVNode("", true)
120468
120534
  ]),
120469
- createElementVNode("div", _hoisted_4$p, [
120535
+ createElementVNode("div", _hoisted_4$o, [
120470
120536
  _cache[2] || (_cache[2] = createElementVNode("span", null, "当前已固定", -1)),
120471
120537
  createElementVNode("span", null, toDisplayString(unref(regionRef)?.cellCount), 1),
120472
120538
  _cache[3] || (_cache[3] = createElementVNode("span", null, "个单元格", -1))
@@ -120491,7 +120557,7 @@ const schema$8 = {
120491
120557
  const _hoisted_1$1a = { class: "panel-check-table" };
120492
120558
  const _hoisted_2$I = { class: "container" };
120493
120559
  const _hoisted_3$v = { class: "line-content" };
120494
- const _hoisted_4$o = { class: "line-content cell-count" };
120560
+ const _hoisted_4$n = { class: "line-content cell-count" };
120495
120561
  const _sfc_main$1t = /* @__PURE__ */ defineComponent({
120496
120562
  __name: "CheckTablePanel",
120497
120563
  props: {
@@ -120603,7 +120669,7 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
120603
120669
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => onDelete("deleteDataGroup2D"), ["stop"]))
120604
120670
  }, "删除动态关联")) : createCommentVNode("", true)
120605
120671
  ]),
120606
- createElementVNode("div", _hoisted_4$o, [
120672
+ createElementVNode("div", _hoisted_4$n, [
120607
120673
  _cache[2] || (_cache[2] = createElementVNode("span", null, "当前已固定", -1)),
120608
120674
  createElementVNode("span", null, toDisplayString(unref(regionRef)?.cellCount), 1),
120609
120675
  _cache[3] || (_cache[3] = createElementVNode("span", null, "个单元格", -1))
@@ -120628,7 +120694,7 @@ const schema$7 = {
120628
120694
  const _hoisted_1$19 = { class: "panel-data-group" };
120629
120695
  const _hoisted_2$H = { class: "container" };
120630
120696
  const _hoisted_3$u = { class: "line-content" };
120631
- const _hoisted_4$n = { class: "content" };
120697
+ const _hoisted_4$m = { class: "content" };
120632
120698
  const _sfc_main$1s = /* @__PURE__ */ defineComponent({
120633
120699
  __name: "DataGroupPanel",
120634
120700
  props: {
@@ -120692,7 +120758,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
120692
120758
  ]),
120693
120759
  createVNode(unref(GctFormItem), { label: "引用填充(撑满固定表)" }, {
120694
120760
  default: withCtx(() => [
120695
- createElementVNode("div", _hoisted_4$n, [
120761
+ createElementVNode("div", _hoisted_4$m, [
120696
120762
  createVNode(unref(GctSwitch), {
120697
120763
  modelValue: unref(regionProps).autoFill,
120698
120764
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(regionProps).autoFill = $event),
@@ -120737,7 +120803,7 @@ const schema$6 = {
120737
120803
  const _hoisted_1$18 = { class: "panel-data-group-2d" };
120738
120804
  const _hoisted_2$G = { class: "container" };
120739
120805
  const _hoisted_3$t = { class: "line-content" };
120740
- const _hoisted_4$m = { class: "content" };
120806
+ const _hoisted_4$l = { class: "content" };
120741
120807
  const _sfc_main$1r = /* @__PURE__ */ defineComponent({
120742
120808
  __name: "DataGroup2DPanel",
120743
120809
  props: {
@@ -120818,7 +120884,7 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
120818
120884
  ]),
120819
120885
  createVNode(unref(GctFormItem), { label: "引用填充(撑满表格)" }, {
120820
120886
  default: withCtx(() => [
120821
- createElementVNode("div", _hoisted_4$m, [
120887
+ createElementVNode("div", _hoisted_4$l, [
120822
120888
  createVNode(unref(GctSwitch), {
120823
120889
  modelValue: unref(regionProps).autoFill,
120824
120890
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(regionProps).autoFill = $event),
@@ -121851,7 +121917,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
121851
121917
  const _hoisted_1$12 = { class: "data-source-model-link-wrapper" };
121852
121918
  const _hoisted_2$C = { class: "model-link-container" };
121853
121919
  const _hoisted_3$r = { class: "model-link-content" };
121854
- const _hoisted_4$l = { class: "model-link-item" };
121920
+ const _hoisted_4$k = { class: "model-link-item" };
121855
121921
  const _hoisted_5$h = { class: "model-link-item" };
121856
121922
  const _sfc_main$1f = /* @__PURE__ */ defineComponent({
121857
121923
  __name: "data-source-model-link",
@@ -122026,7 +122092,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
122026
122092
  return openBlock(), createElementBlock("div", _hoisted_1$12, [
122027
122093
  createElementVNode("div", _hoisted_2$C, [
122028
122094
  createElementVNode("div", _hoisted_3$r, [
122029
- createElementVNode("div", _hoisted_4$l, [
122095
+ createElementVNode("div", _hoisted_4$k, [
122030
122096
  _cache[9] || (_cache[9] = createElementVNode("span", { class: "blank first" }, "当", -1)),
122031
122097
  createVNode(unref(GctSelect), {
122032
122098
  class: "custom-select",
@@ -122278,7 +122344,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
122278
122344
  const _hoisted_1$10 = { class: "data-source-field-map-wrapper" };
122279
122345
  const _hoisted_2$A = { class: "field-map-container" };
122280
122346
  const _hoisted_3$p = { class: "field-map-content" };
122281
- const _hoisted_4$k = { class: "field-map-item" };
122347
+ const _hoisted_4$j = { class: "field-map-item" };
122282
122348
  const _hoisted_5$g = { class: "blank last" };
122283
122349
  const _hoisted_6$c = ["onClick"];
122284
122350
  const _sfc_main$1c = /* @__PURE__ */ defineComponent({
@@ -122427,7 +122493,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
122427
122493
  _cache[3] || (_cache[3] = createElementVNode("div", { class: "line" }, null, -1)),
122428
122494
  createElementVNode("div", _hoisted_2$A, [
122429
122495
  createElementVNode("div", _hoisted_3$p, [
122430
- createElementVNode("div", _hoisted_4$k, [
122496
+ createElementVNode("div", _hoisted_4$j, [
122431
122497
  createVNode(unref(GctSelect), {
122432
122498
  class: "custom-select",
122433
122499
  bordered: false,
@@ -122514,7 +122580,7 @@ const DataSourceFieldMap = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeI
122514
122580
  const _hoisted_1$$ = { class: "param-link-container" };
122515
122581
  const _hoisted_2$z = { class: "param-link-content" };
122516
122582
  const _hoisted_3$o = { class: "param-link-item" };
122517
- const _hoisted_4$j = { class: "blank last" };
122583
+ const _hoisted_4$i = { class: "blank last" };
122518
122584
  const _hoisted_5$f = ["onClick"];
122519
122585
  const _sfc_main$1b = /* @__PURE__ */ defineComponent({
122520
122586
  __name: "param-field-link",
@@ -122656,7 +122722,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
122656
122722
  "onUpdate:modelValue": ($event) => fieldItem.field = $event,
122657
122723
  options: fieldOptions.value
122658
122724
  }, null, 8, ["modelValue", "onUpdate:modelValue", "options"]),
122659
- createElementVNode("span", _hoisted_4$j, [
122725
+ createElementVNode("span", _hoisted_4$i, [
122660
122726
  createElementVNode("i", {
122661
122727
  class: "iconfont icon-shanchu",
122662
122728
  onClick: ($event) => removeFieldItem(fieldItem)
@@ -123014,7 +123080,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
123014
123080
  const _hoisted_1$Z = { class: "field-dependency-form" };
123015
123081
  const _hoisted_2$x = { class: "form-row current-component" };
123016
123082
  const _hoisted_3$m = { class: "control" };
123017
- const _hoisted_4$i = { class: "field-icon" };
123083
+ const _hoisted_4$h = { class: "field-icon" };
123018
123084
  const _hoisted_5$e = { class: "form-row" };
123019
123085
  const _hoisted_6$b = { class: "control" };
123020
123086
  const _hoisted_7$8 = { class: "form-row" };
@@ -123113,7 +123179,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
123113
123179
  createElementVNode("div", _hoisted_2$x, [
123114
123180
  _cache[9] || (_cache[9] = createElementVNode("div", { class: "label" }, "当前组件", -1)),
123115
123181
  createElementVNode("div", _hoisted_3$m, [
123116
- createElementVNode("div", _hoisted_4$i, [
123182
+ createElementVNode("div", _hoisted_4$h, [
123117
123183
  createVNode(unref(GctIcon), {
123118
123184
  class: "icon",
123119
123185
  icon: __props.fieldIdentity.icon,
@@ -123294,7 +123360,7 @@ const getFormulaFieldOptions = (infoList) => {
123294
123360
  const _hoisted_1$Y = { class: "field-dependency-module" };
123295
123361
  const _hoisted_2$w = { class: "field-dependency-list" };
123296
123362
  const _hoisted_3$l = { class: "item-header" };
123297
- const _hoisted_4$h = { class: "title" };
123363
+ const _hoisted_4$g = { class: "title" };
123298
123364
  const _hoisted_5$d = { class: "main" };
123299
123365
  const _hoisted_6$a = {
123300
123366
  key: 0,
@@ -123459,7 +123525,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
123459
123525
  class: "field-dependency-item"
123460
123526
  }, [
123461
123527
  createElementVNode("div", _hoisted_3$l, [
123462
- createElementVNode("div", _hoisted_4$h, [
123528
+ createElementVNode("div", _hoisted_4$g, [
123463
123529
  createElementVNode("span", _hoisted_5$d, toDisplayString(unref(FieldDependencyTypeCh)[type4]), 1),
123464
123530
  type4 === unref(FieldDependencyTypeConst).Assignment ? (openBlock(), createElementBlock("span", _hoisted_6$a, " 公式计算 ")) : createCommentVNode("", true)
123465
123531
  ]),
@@ -123758,8 +123824,7 @@ const schema$2 = {
123758
123824
  };
123759
123825
  const _hoisted_1$V = { class: "panel-table-header" };
123760
123826
  const _hoisted_2$u = { class: "container" };
123761
- const _hoisted_3$j = { class: "readonly-text" };
123762
- const _hoisted_4$g = { class: "render-mode" };
123827
+ const _hoisted_3$j = { class: "render-mode" };
123763
123828
  const _sfc_main$14 = /* @__PURE__ */ defineComponent({
123764
123829
  __name: "TableHeaderPanel",
123765
123830
  props: {
@@ -123817,15 +123882,9 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
123817
123882
  ]),
123818
123883
  _: 1
123819
123884
  }, 8, ["label"]),
123820
- createVNode(unref(GctFormItem), { label: "单元格" }, {
123821
- default: withCtx(() => [
123822
- createElementVNode("span", _hoisted_3$j, toDisplayString(headerInfo.value.range), 1)
123823
- ]),
123824
- _: 1
123825
- }),
123826
123885
  createVNode(unref(GctFormItem), { label: "渲染方式" }, {
123827
123886
  default: withCtx(() => [
123828
- createElementVNode("span", _hoisted_4$g, toDisplayString(headerInfo.value.renderMode), 1)
123887
+ createElementVNode("span", _hoisted_3$j, toDisplayString(headerInfo.value.renderMode), 1)
123829
123888
  ]),
123830
123889
  _: 1
123831
123890
  })
@@ -123837,7 +123896,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
123837
123896
  };
123838
123897
  }
123839
123898
  });
123840
- const TableHeaderPanel = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-22abf304"]]);
123899
+ const TableHeaderPanel = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-1c020e08"]]);
123841
123900
  const schema$1 = {
123842
123901
  key: "table-header.basic",
123843
123902
  title: "表头",
@@ -130171,8 +130230,7 @@ function shouldEnableLinkage(doc, clickedFieldType, clickedKey) {
130171
130230
  function buildLikeQuery(fields, keyword, query) {
130172
130231
  if (!keyword?.trim()) {
130173
130232
  return {
130174
- // queryData: { ...query }, // todo 暂时注释,不然一条数据都请求不到
130175
- queryData: {},
130233
+ queryData: { ...query },
130176
130234
  exp: ""
130177
130235
  };
130178
130236
  }
@@ -130183,7 +130241,7 @@ function buildLikeQuery(fields, keyword, query) {
130183
130241
  return prev;
130184
130242
  },
130185
130243
  {
130186
- // ...query // todo 暂时注释,不然一条数据都请求不到
130244
+ ...query
130187
130245
  }
130188
130246
  );
130189
130247
  const exp = `OR(${fields.map((k) => `${k}.like`).join(",")})`;
@@ -130194,8 +130252,15 @@ const selectStrategyMap = {
130194
130252
  columnsKey: "lot-sn",
130195
130253
  fetcher: "lot2sn",
130196
130254
  allowManualInput: true,
130197
- buildQuery({ keyword }) {
130198
- return buildLikeQuery(["material_no_"], keyword);
130255
+ buildQuery({ keyword, extraParams }) {
130256
+ return buildLikeQuery(
130257
+ ["material_no_"],
130258
+ keyword,
130259
+ {
130260
+ "instance_status_.ne": "ARCHIVED",
130261
+ ...extraParams
130262
+ }
130263
+ );
130199
130264
  },
130200
130265
  transform: transformLotData
130201
130266
  },
@@ -130204,7 +130269,7 @@ const selectStrategyMap = {
130204
130269
  fetcher: "lot2sn",
130205
130270
  allowManualInput: true,
130206
130271
  buildQuery({ keyword }) {
130207
- return buildLikeQuery(["material_no_"], keyword);
130272
+ return buildLikeQuery(["material_no_"], keyword, { "instance_status_.ne": "ARCHIVED" });
130208
130273
  },
130209
130274
  transform: transformLotData
130210
130275
  },
@@ -130213,7 +130278,7 @@ const selectStrategyMap = {
130213
130278
  fetcher: "lot2sn",
130214
130279
  allowManualInput: true,
130215
130280
  buildQuery({ keyword }) {
130216
- return buildLikeQuery(["material_no_"], keyword);
130281
+ return buildLikeQuery(["material_no_"], keyword, { "instance_status_.ne": "ARCHIVED" });
130217
130282
  },
130218
130283
  transform: transformLotData
130219
130284
  },
@@ -130239,7 +130304,11 @@ const selectStrategyMap = {
130239
130304
  columnsKey: "route-operation",
130240
130305
  fetcher: "ref",
130241
130306
  buildQuery({ keyword }) {
130242
- return buildLikeQuery(["name_", "code_"], keyword);
130307
+ return buildLikeQuery(["name_", "code_"], keyword, {
130308
+ type_: "NODE_SPEC",
130309
+ operating_state_: true
130310
+ // ref_master_id_: paramsConfig?.routingId, // todo
130311
+ });
130243
130312
  },
130244
130313
  transform: transformLotData
130245
130314
  },
@@ -130248,7 +130317,9 @@ const selectStrategyMap = {
130248
130317
  fetcher: "ref",
130249
130318
  clearFieldId: "scrap_reason_1_",
130250
130319
  buildQuery({ keyword }) {
130251
- return buildLikeQuery(["name_", "code_"], keyword);
130320
+ return buildLikeQuery(["name_", "code_"], keyword, {
130321
+ operating_state_: true
130322
+ });
130252
130323
  },
130253
130324
  transform: transformLotData
130254
130325
  },
@@ -130272,7 +130343,9 @@ const selectStrategyMap = {
130272
130343
  isLinkQuery: true
130273
130344
  };
130274
130345
  if (keyword?.trim()) {
130275
- const { queryData: searchQuery, exp } = buildLikeQuery(["name_", "code_"], keyword);
130346
+ const { queryData: searchQuery, exp } = buildLikeQuery(["name_", "code_"], keyword, {
130347
+ operating_state_: true
130348
+ });
130276
130349
  return { queryData: { ...queryData, ...searchQuery }, exp };
130277
130350
  }
130278
130351
  return {
@@ -130280,7 +130353,9 @@ const selectStrategyMap = {
130280
130353
  exp: ""
130281
130354
  };
130282
130355
  }
130283
- return buildLikeQuery(["name_", "code_"], keyword);
130356
+ return buildLikeQuery(["name_", "code_"], keyword, {
130357
+ operating_state_: true
130358
+ });
130284
130359
  },
130285
130360
  transform: transformLotData
130286
130361
  },
@@ -130289,7 +130364,9 @@ const selectStrategyMap = {
130289
130364
  fetcher: "ref",
130290
130365
  clearFieldId: "not_good_reason_1_",
130291
130366
  buildQuery({ keyword }) {
130292
- return buildLikeQuery(["name_", "code_"], keyword);
130367
+ return buildLikeQuery(["name_", "code_"], keyword, {
130368
+ operating_state_: true
130369
+ });
130293
130370
  },
130294
130371
  transform: transformLotData
130295
130372
  },
@@ -130313,7 +130390,9 @@ const selectStrategyMap = {
130313
130390
  isLinkQuery: true
130314
130391
  };
130315
130392
  if (keyword?.trim()) {
130316
- const { queryData: searchQuery, exp } = buildLikeQuery(["name_", "code_"], keyword);
130393
+ const { queryData: searchQuery, exp } = buildLikeQuery(["name_", "code_"], keyword, {
130394
+ operating_state_: true
130395
+ });
130317
130396
  return { queryData: { ...queryData, ...searchQuery }, exp };
130318
130397
  }
130319
130398
  return {
@@ -130321,7 +130400,9 @@ const selectStrategyMap = {
130321
130400
  exp: ""
130322
130401
  };
130323
130402
  }
130324
- return buildLikeQuery(["name_", "code_"], keyword);
130403
+ return buildLikeQuery(["name_", "code_"], keyword, {
130404
+ operating_state_: true
130405
+ });
130325
130406
  },
130326
130407
  transform: transformLotData
130327
130408
  },
@@ -130329,8 +130410,15 @@ const selectStrategyMap = {
130329
130410
  columnsKey: "rdo-ref",
130330
130411
  fetcher: "rdo2ref",
130331
130412
  isTree: true,
130332
- buildQuery({ keyword }) {
130333
- return buildLikeQuery(["name_", "code_"], keyword);
130413
+ buildQuery({ keyword, extraParams }) {
130414
+ return buildLikeQuery(
130415
+ ["name_", "code_"],
130416
+ keyword,
130417
+ {
130418
+ operating_state_: true,
130419
+ ...extraParams
130420
+ }
130421
+ );
130334
130422
  },
130335
130423
  transform: transformTreeData
130336
130424
  },
@@ -130339,7 +130427,9 @@ const selectStrategyMap = {
130339
130427
  fetcher: "rdo2ref",
130340
130428
  isTree: true,
130341
130429
  buildQuery({ keyword }) {
130342
- return buildLikeQuery(["name_", "code_"], keyword);
130430
+ return buildLikeQuery(["name_", "code_"], keyword, {
130431
+ operating_state_: true
130432
+ });
130343
130433
  },
130344
130434
  transform: transformTreeData
130345
130435
  }
@@ -130421,12 +130511,22 @@ function useTableDropdown(props, searchFilters) {
130421
130511
  const { buildQuery, fetcher: fetcher2, transform } = strategy.value;
130422
130512
  const isLinkQuery = enableLinkage.value;
130423
130513
  const filters = unref(searchFilters);
130514
+ const valuePath = fieldMeta.value?.valuePath;
130515
+ const subFieldConfig = getSubFieldConfig(docInst.value.paramsConfig);
130516
+ let extraParams = subFieldConfig.get(valuePath);
130517
+ const dataIndex = props.widget?.dataSlotIndex?.dataIndex;
130518
+ if (valuePath && isNumber(dataIndex)) {
130519
+ const _valuePath = valuePath.replace("[n]", `[${dataIndex}]`);
130520
+ const _extraParams = subFieldConfig.get(_valuePath);
130521
+ Object.assign(extraParams, _extraParams);
130522
+ }
130424
130523
  const { queryData = {}, exp = "" } = buildQuery?.({
130425
130524
  keyword,
130426
130525
  isLinkQuery,
130427
130526
  linkDataId: isLinkQuery ? String(linkDataValue.value ?? "") : void 0,
130428
130527
  searchField: widgetProps.value.searchField,
130429
- deviceTypeId: deviceTypeId ?? filters?.deviceTypeId
130528
+ deviceTypeId: deviceTypeId ?? filters?.deviceTypeId,
130529
+ extraParams
130430
130530
  }) ?? {};
130431
130531
  const res = await apiFetchers[fetcher2].getOptions({
130432
130532
  fieldKey: fieldInfo.value.key,