@gct-paas/excel 0.1.39-beta.18 → 0.1.39-beta.20

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.
Files changed (67) hide show
  1. package/dist/{BaseComponent-DlErT5t9.js → BaseComponent-DuVlKAnk.js} +1 -1
  2. package/dist/{VueVideoPlayer-IeaDX9ln.js → VueVideoPlayer-BlB2c7W0.js} +1 -1
  3. package/dist/{barcode-design-ejpO4TWN.js → barcode-design-CDhA1Xiw.js} +1 -1
  4. package/dist/base/index.es.js +4 -4
  5. package/dist/{diagonal-design-Bs9gWcVz.js → diagonal-design-ThSef3Um.js} +1 -1
  6. package/dist/{dynamic-table-action-BXNnUUIX.js → dynamic-table-action-cb-6H4R2.js} +10 -4
  7. package/dist/excel.css +10 -10
  8. package/dist/{exceljs.min-Cr5_l7GW.js → exceljs.min-CULCDRW9.js} +1 -1
  9. package/dist/{font-editor-CpisAVLZ.js → font-editor-trc2cWng.js} +1 -1
  10. package/dist/{image-design-DVq9O1ZF.js → image-design-DbOmyTpn.js} +1 -1
  11. package/dist/{index-Dg5modjI.js → index-1WZ6SgTp.js} +2 -2
  12. package/dist/{index-BK1OplGc.js → index-2Vv4Nw6L.js} +1 -1
  13. package/dist/{index-DAxqwkuO.js → index-B2lCwHgw.js} +1 -1
  14. package/dist/{index-B9mMKdWV.js → index-BBfo_rmJ.js} +1 -1
  15. package/dist/{index-Bq15nkZU.js → index-BhJGnoAZ.js} +1 -1
  16. package/dist/{index-BDXjjYXb.js → index-BkznJYts.js} +65 -45
  17. package/dist/{index-9S_12I_m.js → index-BsSL0R1j.js} +1 -1
  18. package/dist/{index-CabjW1sn.js → index-BsgB6y7K.js} +2 -2
  19. package/dist/{index-em0rzOJO.js → index-CAGghO4i.js} +1 -1
  20. package/dist/{index-BDQQZex8.js → index-CCyMfv1Z.js} +1 -1
  21. package/dist/{index-DQhVTdNc.js → index-CRo6J80n.js} +1 -1
  22. package/dist/{index-UMo1va8T.js → index-CksQHOUM.js} +1 -1
  23. package/dist/{index-_y43fj3W.js → index-CpQ_DR3c.js} +2 -2
  24. package/dist/{index-BkEEB8UX.js → index-DGZzlITI.js} +2 -2
  25. package/dist/{index-BQGtju-p.js → index-DOiOWH2x.js} +1 -1
  26. package/dist/{index-B0_PuKlp.js → index-DUXHvUXT.js} +1 -1
  27. package/dist/{index-265Zuy2Y.js → index-DYjYdrMD.js} +1 -1
  28. package/dist/{index-BaQfzPpW.js → index-Dkj2h_zE.js} +1 -1
  29. package/dist/{index-50OBRcTM.js → index-Dq5kgEpr.js} +1 -1
  30. package/dist/{index-BhRaNTnf.js → index-DrWkEAL9.js} +1 -1
  31. package/dist/{index-BLFfeKcf.js → index-DyZzboE8.js} +1 -1
  32. package/dist/{index-CSinNyyL.js → index-Dzqrtkn_.js} +1 -1
  33. package/dist/{index-BHmTVYqD.js → index-XtiIrcx4.js} +3 -3
  34. package/dist/{index-BO6dvJRn.js → index-cunDtoJs.js} +1 -1
  35. package/dist/{index-BHXvTfAC.js → index-l8FZ6Q3X.js} +49 -2
  36. package/dist/index.es.js +1 -1
  37. package/dist/{pagination-design-D_QjDeiL.js → pagination-design-Dlt_hRc9.js} +1 -1
  38. package/dist/paper-widget-design-CsNAYJIm.js +4 -0
  39. package/dist/{print-runtime-instance-BVl0QFuC.js → print-runtime-instance-C0P0bQ0t.js} +1 -1
  40. package/dist/{print-snapshot-renderer-CwlqVc2E.js → print-snapshot-renderer-hfbiNoQz.js} +3 -3
  41. package/dist/{qrcode-design-DlAjNGZV.js → qrcode-design-BKW9Ywq7.js} +1 -1
  42. package/dist/seal-design-D1K9CloN.js +4 -0
  43. package/dist/{single-field-drop-CILrDdkn.js → single-field-drop-DkjfkD4a.js} +1 -1
  44. package/dist/src/nocode-base/src/core/sub-table/sub-table-core.d.ts +2 -1
  45. package/dist/src/nocode-base/src/hooks/material-consume-object/bom-validator.d.ts +4 -3
  46. package/dist/src/nocode-base/src/types/render/sub-table-render.d.ts +5 -1
  47. package/dist/src/nocode-web-render/src/render/sub-table/common/inventory-scan-columns.d.ts +6 -0
  48. package/dist/src/online-form/src/views/__cell_widgets__/common/display-fields-editor/display-fields.util.d.ts +2 -2
  49. package/dist/{sub-table-factory-CGAWlYDu.js → sub-table-factory-Bnb8zZTb.js} +10 -4
  50. package/dist/{text-design-DaLE4WYR.js → text-design-CJo1qzwn.js} +1 -1
  51. package/dist/{trace-like-wrapper-C4E9e2Je.js → trace-like-wrapper-BQv5F61v.js} +1 -1
  52. package/dist/{value-editor.vue_vue_type_style_index_0_lang-C5hFF1Ud.js → value-editor.vue_vue_type_style_index_0_lang-Cfy4DxTn.js} +1 -1
  53. package/dist/web-render/index.es.js +2 -2
  54. package/dist/{widget-barcode-D8sXBO3u.js → widget-barcode-Skwby19J.js} +2 -2
  55. package/dist/{widget-diagonal-CoiPow-N.js → widget-diagonal-2jkexxFy.js} +2 -2
  56. package/dist/{widget-image-CkfwiupS.js → widget-image-DzNGEvNB.js} +2 -2
  57. package/dist/{widget-line-BHHhjt39.js → widget-line-CKztM9A8.js} +1 -1
  58. package/dist/{widget-pagination-2D_pMT3X.js → widget-pagination-DewFBSHR.js} +2 -2
  59. package/dist/{widget-power-BWjDuOSj.js → widget-power-DXJJuRh4.js} +2 -2
  60. package/dist/{widget-qrcode-DxARlp5Q.js → widget-qrcode-js88isHk.js} +2 -2
  61. package/dist/{widget-rangelimit-DUyFFT_x.js → widget-rangelimit-DLy_aqqT.js} +2 -2
  62. package/dist/{widget-serialnumber-CeQt5Nwg.js → widget-serialnumber-BvpZV5f7.js} +1 -1
  63. package/dist/{widget-text-Ci9WHuOm.js → widget-text-CrZN9uDY.js} +3 -3
  64. package/dist/{widget-timediff-BNrCLWLE.js → widget-timediff-DJLoE_Xk.js} +1 -1
  65. package/package.json +1 -1
  66. package/dist/paper-widget-design-BuH_G9AK.js +0 -4
  67. package/dist/seal-design-CFxljXVw.js +0 -4
@@ -1,4 +1,4 @@
1
- import { n as normalizeFieldWidth } from "./dynamic-table-action-BXNnUUIX.js";
1
+ import { n as normalizeFieldWidth } from "./dynamic-table-action-cb-6H4R2.js";
2
2
  import { get, pick } from "lodash-es";
3
3
  import { F as FIELD_TYPE } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
4
4
  import { f as fontStyleAttrs } from "./config.enum-B8UZQTON.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, toRaw, shallowRef, computed, ref, readonly, onMounted, watch, normalizeClass, onBeforeUnmount, h as h$1, watchEffect, unref, createVNode, reactive } from "vue";
2
2
  import { M as commonjsGlobal, N as getDefaultExportFromCjs } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
3
- import { r as require$$0 } from "./index-BHXvTfAC.js";
3
+ import { r as require$$0 } from "./index-l8FZ6Q3X.js";
4
4
  var window_1;
5
5
  var hasRequiredWindow;
6
6
  function requireWindow() {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeStyle, normalizeClass, createElementVNode, toDisplayString, createCommentVNode } from "vue";
2
2
  import { pick } from "lodash-es";
3
- import { u as useSpreadSheet, h as useModelFields, l as loadBwip } from "./index-BDXjjYXb.js";
3
+ import { u as useSpreadSheet, h as useModelFields, l as loadBwip } from "./index-BkznJYts.js";
4
4
  import { Q as PaperWidgeValueType, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
5
5
  import "dayjs";
6
6
  import "ant-design-vue";
@@ -1,12 +1,12 @@
1
1
  import { E as api, $ as PlatformEnum, F as FIELD_TYPE, bj as getRowId, bk as findRuntimeTableRow, b9 as RenderModeEnum, C as ComponentTypeEnum, bw as assembleRules, bx as isAttachFieldActive, aI as Dependency_ENUM, bl as calculateFormula, aH as ASSIGNMENTSTRATEGY_ENUM, R as getParseFormulaVarInfos, by as fetchHistoryConsume, bz as isBomGranted, aW as renderUtils, bv as uuid2, bA as parseFrontConfig, aL as CheckDsTypeEnum, aF as transformUtils, bB as baseDataUtils, bC as initializeSealFields, Y as FormTypeEnum, bD as normalizeToArray, bE as safeParseArray, bF as BpmnNodeTypeEnum, bG as mergeByMultiKey, a8 as _export_sfc, bH as evaluateInspectionDecisionRule, bI as areValidationCommentsEqual, bJ as useNocodeEmitter, bK as commonUtils, aJ as EntityModelCategoryEnum } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
2
2
  import { aO, aQ, b0, a1, bL, bM, B, bN, y, ai, bO, bP, bQ, bi, bR, aT, ay, aP, aM, aN, bS, aj, an, bT, bU, aG, a3, ah, az, aR, a0, al, L, bV, bW, bX, O, p, P, aa, o, Q, A, bY, bZ, ax, aw, a6, a2, a4, a5, a7, f, b_, am, aq, ak, b$, c0, c1, c2, bh, c3, c4, c5, c6, c7, c8, c9, ca, cb, cc, bm, cd, ce, aZ, cf, b1, b2, cg, ch, ci, cj, ck, cl, cm, cn, co, cp, aY, cq, b3, bf, cr, cs, ct, ao, t, aS, cu, cv, bn, a_ } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
3
- import { P as getRuntimeDataFieldId, z as parseRuntimeFieldPath, Q as buildRuntimeFieldPath, T as resolveRuntimeFieldProps, U as resolveRuntimeFieldState, V as getRuntimeDependencyOutputKey, W as isRowAddedInCurrentFormChange, o as MaterialConsumptionPatternEnum, X as MaterialConsumeTableController, Y as setFormulaParamsConfig, Z as normalizeRuntime, H as createRuntimeInstanceContext, R as RuntimeFormStateStore, $ as RuntimeSheetService, g as getBusinessFieldKey, a0 as validateObjectBomQtyOnSubmit, a1 as closeValidatorPopovers, a2 as enrichFormChangeRowDetails, N as NCB_PROVIDE, I as RuntimeInstanceRegistry, a3 as useMaterialBalance, a4 as collectFormChangeFieldLocations, a5 as nextFormChangeRowViewHistoryId } from "../dynamic-table-action-BXNnUUIX.js";
4
- import { B as B2, a6 as a62, e, _, a7 as a72, L as L2, a8, O as O2, E, a9, aa as aa2, ab, ac, ad, M, a, ae, b, af, ag, ah as ah2, ai as ai2, aj as aj2, ak as ak2, al as al2, am as am2, w, an as an2, m, ao as ao2, c, ap, aq as aq2, ar, as, l, x, at, au, av, aw as aw2, f as f2, y as y2, d, ax as ax2, ay as ay2, az as az2, aA, aB, aC, p as p2, r, aD, q, j, aE, s, aF, C, F, u, t as t2, G, i, k, A as A2, h, v } from "../dynamic-table-action-BXNnUUIX.js";
3
+ import { P as getRuntimeDataFieldId, z as parseRuntimeFieldPath, Q as buildRuntimeFieldPath, T as resolveRuntimeFieldProps, U as resolveRuntimeFieldState, V as getRuntimeDependencyOutputKey, W as isRowAddedInCurrentFormChange, o as MaterialConsumptionPatternEnum, X as MaterialConsumeTableController, Y as setFormulaParamsConfig, Z as normalizeRuntime, H as createRuntimeInstanceContext, R as RuntimeFormStateStore, $ as RuntimeSheetService, g as getBusinessFieldKey, a0 as validateObjectBomQtyOnSubmit, a1 as closeValidatorPopovers, a2 as enrichFormChangeRowDetails, N as NCB_PROVIDE, I as RuntimeInstanceRegistry, a3 as useMaterialBalance, a4 as collectFormChangeFieldLocations, a5 as nextFormChangeRowViewHistoryId } from "../dynamic-table-action-cb-6H4R2.js";
4
+ import { B as B2, a6 as a62, e, _, a7 as a72, L as L2, a8, O as O2, E, a9, aa as aa2, ab, ac, ad, M, a, ae, b, af, ag, ah as ah2, ai as ai2, aj as aj2, ak as ak2, al as al2, am as am2, w, an as an2, m, ao as ao2, c, ap, aq as aq2, ar, as, l, x, at, au, av, aw as aw2, f as f2, y as y2, d, ax as ax2, ay as ay2, az as az2, aA, aB, aC, p as p2, r, aD, q, j, aE, s, aF, C, F, u, t as t2, G, i, k, A as A2, h, v } from "../dynamic-table-action-cb-6H4R2.js";
5
5
  import { toRaw, watch, toRef, computed, defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, ref, provide, onUnmounted, markRaw, reactive, onBeforeUnmount } from "vue";
6
6
  import { cloneDeep, defaults, isEmpty, merge } from "lodash-es";
7
7
  import "dayjs";
8
- import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-CGAWlYDu.js";
9
- import { A as A3, D, M as M2, a as a10, P as P2, b as b4, c as c10, d as d2, e as e2, W, f as f3, g, h as h2 } from "../sub-table-factory-CGAWlYDu.js";
8
+ import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-Bnb8zZTb.js";
9
+ import { A as A3, D, M as M2, a as a10, P as P2, b as b4, c as c10, d as d2, e as e2, W, f as f3, g, h as h2 } from "../sub-table-factory-Bnb8zZTb.js";
10
10
  import { B as B3, F as F2, M as M3, a as a11, u as u2 } from "../mb-render-DjXYXimz.js";
11
11
  const InstanceStatusValues = {
12
12
  /** 作废状态 */
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createBlock } from "vue";
2
- import { h as useModelFields, D as Diagonal } from "./index-BDXjjYXb.js";
2
+ import { h as useModelFields, D as Diagonal } from "./index-BkznJYts.js";
3
3
  import { ao as resolveDiagonalVertex, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
4
4
  import "lodash-es";
5
5
  import "dayjs";
@@ -6731,11 +6731,12 @@ class SubTableCore {
6731
6731
  /**
6732
6732
  * 扫码多条候选时选择一行(1 条自动选中)
6733
6733
  */
6734
- async pickScanRecord(records) {
6734
+ async pickScanRecord(records, options = {}) {
6735
6735
  if (!records.length) return void 0;
6736
6736
  if (records.length === 1) return records[0];
6737
6737
  return this.render.openMultiRowsModal({
6738
- rows: mapScanRecordsForPicker(records)
6738
+ rows: mapScanRecordsForPicker(records),
6739
+ ...options
6739
6740
  });
6740
6741
  }
6741
6742
  /**
@@ -6961,7 +6962,7 @@ async function validateObjectBomQtyOnSubmit(opts) {
6961
6962
  for (const obj of objectFieldList) {
6962
6963
  if (!obj?.objectField) continue;
6963
6964
  const objectBom = findObjectBom(formInstBom, obj.objectField);
6964
- if (objectBom?.material_consumption_pattern_ === MaterialConsumptionPatternEnum.RECORD) {
6965
+ if (objectBom?.material_consumption_pattern_ === MaterialConsumptionPatternEnum.RECORD && !objectBom.personal_bom_enabled_) {
6965
6966
  continue;
6966
6967
  }
6967
6968
  const { productKey, productFieldName, qtyKey, qtyRequiredKey, qtyFieldName } = pickObjectFieldKeys(obj.subFields, obj.objectField);
@@ -8232,6 +8233,7 @@ const DocumentSubTable = /* @__PURE__ */ defineComponent({
8232
8233
  showDisplayStatus,
8233
8234
  dataRelationShip
8234
8235
  } = useWidgetStaticAttrs(props.widget);
8236
+ const isMockMaterialConsume = computed(() => !!dataRelationShip?.isMockReport && !!props.widget.props.isMaterialConsumeTable);
8235
8237
  const sheetId = () => fields.value?.findWidgetById(props.widget.id)?.sheetId;
8236
8238
  const subTableCore = props.subTableCore;
8237
8239
  provide(NCB_PROVIDE.SUB_TABLE_CORE, subTableCore);
@@ -8372,6 +8374,9 @@ const DocumentSubTable = /* @__PURE__ */ defineComponent({
8372
8374
  key,
8373
8375
  actionValue
8374
8376
  }) => {
8377
+ if (isMockMaterialConsume.value && (key === SubTableActionEnum.SCAN || key === SubTableActionEnum.Insert1GroupAfter)) {
8378
+ return;
8379
+ }
8375
8380
  switch (key) {
8376
8381
  case "insertRowBefore":
8377
8382
  handleAddRow({
@@ -8465,10 +8470,11 @@ const DocumentSubTable = /* @__PURE__ */ defineComponent({
8465
8470
  showRowWatermark,
8466
8471
  rowGroupKey
8467
8472
  }) => {
8468
- const menus = subTableCore?.calcSubTableActionMenu({
8473
+ const baseMenus = subTableCore?.calcSubTableActionMenu({
8469
8474
  rowData,
8470
8475
  showDelBtn
8471
8476
  });
8477
+ const menus = isMockMaterialConsume.value ? [getMenuByAction(SubTableActionEnum.SCAN), getMenuByAction(SubTableActionEnum.Insert1GroupAfter), ...baseMenus ?? []] : baseMenus;
8472
8478
  const annRowDetails = dataRelationShip?.annRowDetails;
8473
8479
  const rowMark = dataIdx !== -1 && annRowDetails?.length ? resolveRowFormChangeMark(field, rowData, annRowDetails) : null;
8474
8480
  const rowUi = resolveFormChangeRowUi(rowData, rowMark);
package/dist/excel.css CHANGED
@@ -15664,16 +15664,16 @@ div.vxe-table--tooltip-wrapper.vxe-table--valid-error.old-cell-valid {
15664
15664
  pointer-events: none;
15665
15665
  user-select: none;
15666
15666
  }
15667
- .display-fields-editor[data-v-9a44d291] .ant-select.ant-select-multiple .ant-select-selector {
15667
+ .display-fields-editor[data-v-2593d6b8] .ant-select.ant-select-multiple .ant-select-selector {
15668
15668
  padding-right: 48px;
15669
15669
  }
15670
- .display-fields-editor[data-v-9a44d291] .ant-select.ant-select-multiple .ant-select-selection-overflow-item-rest {
15670
+ .display-fields-editor[data-v-2593d6b8] .ant-select.ant-select-multiple .ant-select-selection-overflow-item-rest {
15671
15671
  pointer-events: none;
15672
15672
  }
15673
- .display-fields-editor[data-v-9a44d291] .ant-select.ant-select-multiple .ant-select-clear {
15673
+ .display-fields-editor[data-v-2593d6b8] .ant-select.ant-select-multiple .ant-select-clear {
15674
15674
  right: 28px;
15675
15675
  }
15676
- .display-fields-editor .editor-tip[data-v-9a44d291] {
15676
+ .display-fields-editor .editor-tip[data-v-2593d6b8] {
15677
15677
  margin-top: 4px;
15678
15678
  color: #a6a6a6;
15679
15679
  font-size: 12px;
@@ -22322,15 +22322,15 @@ svg[data-v-9a7c8184] {
22322
22322
  color: var(--ant-primary-color);
22323
22323
  cursor: pointer;
22324
22324
  }
22325
- .base-vxe-search-form-container[data-v-ca7c40d7] {
22325
+ .base-vxe-search-form-container[data-v-ba907b47] {
22326
22326
  height: 44px;
22327
22327
  }
22328
- .base-vxe-search-form-container .ant-input-affix-wrapper[data-v-ca7c40d7] {
22328
+ .base-vxe-search-form-container .ant-input-affix-wrapper[data-v-ba907b47] {
22329
22329
  height: 32px;
22330
22330
  border: none;
22331
22331
  background: #f6f8fa;
22332
22332
  }
22333
- .base-vxe-search-form-container .ant-input-affix-wrapper[data-v-ca7c40d7] .ant-input {
22333
+ .base-vxe-search-form-container .ant-input-affix-wrapper[data-v-ba907b47] .ant-input {
22334
22334
  background: #f6f8fa;
22335
22335
  }
22336
22336
  .rdo-select-tree[data-v-0a2a138a] {
@@ -22377,15 +22377,15 @@ svg[data-v-9a7c8184] {
22377
22377
  .rdo-select-tree[data-v-0a2a138a] .ant-input {
22378
22378
  background: transparent;
22379
22379
  }
22380
- .base-vxe-search-form-container[data-v-b48ca019] {
22380
+ .base-vxe-search-form-container[data-v-7f1d3189] {
22381
22381
  height: 44px;
22382
22382
  }
22383
- .base-vxe-search-form-container .ant-input-affix-wrapper[data-v-b48ca019] {
22383
+ .base-vxe-search-form-container .ant-input-affix-wrapper[data-v-7f1d3189] {
22384
22384
  height: 32px;
22385
22385
  border: none;
22386
22386
  background: #f6f8fa;
22387
22387
  }
22388
- .base-vxe-search-form-container .ant-input-affix-wrapper[data-v-b48ca019] .ant-input {
22388
+ .base-vxe-search-form-container .ant-input-affix-wrapper[data-v-7f1d3189] .ant-input {
22389
22389
  background: #f6f8fa;
22390
22390
  }
22391
22391
  .cell-trace-tree-select[data-v-f00b4ba0] .ant-select-selection-search {
@@ -1,5 +1,5 @@
1
1
  import { M as commonjsGlobal, N as getDefaultExportFromCjs } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
2
- import { c as commonjsRequire } from "./index-BDXjjYXb.js";
2
+ import { c as commonjsRequire } from "./index-BkznJYts.js";
3
3
  function _mergeNamespaces(n, m) {
4
4
  for (var i = 0; i < m.length; i++) {
5
5
  const e = m[i];
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, unref, normalizeClass, withCtx, normalizeStyle } from "vue";
2
2
  import { A as AlignEditor } from "./align-editor-wPpZ_4zH.js";
3
3
  import { pick } from "lodash-es";
4
- import { z as _sfc_main$1, C as ColorPicker } from "./index-BDXjjYXb.js";
4
+ import { z as _sfc_main$1, C as ColorPicker } from "./index-BkznJYts.js";
5
5
  import { a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
6
6
  const _hoisted_1 = { class: "ks-row-middle mb-6px" };
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, unref, normalizeStyle } from "vue";
2
- import { u as useWebUpload } from "./index-BHXvTfAC.js";
2
+ import { u as useWebUpload } from "./index-l8FZ6Q3X.js";
3
3
  import "ant-design-vue";
4
4
  import { a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
5
5
  import "@gct-paas/form-base";
@@ -3,8 +3,8 @@ import "vue";
3
3
  import "lodash-es";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-DlErT5t9.js";
7
- import { g as getTraceLikeSelectProps } from "./trace-like-wrapper-C4E9e2Je.js";
6
+ import { B as BaseComponent } from "./BaseComponent-DuVlKAnk.js";
7
+ import { g as getTraceLikeSelectProps } from "./trace-like-wrapper-BQv5F61v.js";
8
8
  class AutoComplete extends BaseComponent {
9
9
  component = ComponentTypeEnum.AutoComplete;
10
10
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_styl
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-DlErT5t9.js";
6
+ import { B as BaseComponent } from "./BaseComponent-DuVlKAnk.js";
7
7
  class UploadFile extends BaseComponent {
8
8
  component = ComponentTypeEnum.UploadFile;
9
9
  wrapperCmpConfig({ data }) {
@@ -1,5 +1,5 @@
1
1
  import { pick, isEmpty, has, cloneDeep, get } from "lodash-es";
2
- import { A as AsyncGctOnlineComponents, g as getFieldWidget } from "./index-BDXjjYXb.js";
2
+ import { A as AsyncGctOnlineComponents, g as getFieldWidget } from "./index-BkznJYts.js";
3
3
  import { C as ComponentTypeEnum, y as CellType, o as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
4
4
  import "vue";
5
5
  import "dayjs";
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_styl
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-DlErT5t9.js";
6
+ import { B as BaseComponent } from "./BaseComponent-DuVlKAnk.js";
7
7
  class Userpicker extends BaseComponent {
8
8
  component = ComponentTypeEnum.Userpicker;
9
9
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_styl
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-DlErT5t9.js";
6
+ import { B as BaseComponent } from "./BaseComponent-DuVlKAnk.js";
7
7
  class Timepicker extends BaseComponent {
8
8
  component = ComponentTypeEnum.Timepicker;
9
9
  wrapperCmpConfig({ data }) {
@@ -5,10 +5,10 @@ import { range, cloneDeep, get as get$3, merge, isEmpty, zip, pick, omit, has, d
5
5
  import dayjs from "dayjs";
6
6
  import * as Antd from "ant-design-vue";
7
7
  import { message, Modal, notification, Empty, InputSearch, Cascader, ConfigProvider, Tooltip as Tooltip$1, Input, Tree, Transfer, Select, Tag, AutoComplete, TimePicker, DatePicker, Textarea, TreeSelect, CheckboxGroup, Checkbox, Radio, RadioGroup } from "ant-design-vue";
8
- import { M as MAX_RUNTIME_SHEETS, a as MAX_RUNTIME_SHEET_TITLE_LENGTH, b as MULTI_SHEET_SCHEMA_VERSION, c as createRuntimeDocumentV2, g as getBusinessFieldKey, n as normalizeFieldWidth, D as DEFAULT_BOOLEAN_FIELD_WIDTH, B as BorderTD, u as useFormTmplConfig, d as normalizeHistoricalBusinessRow, e as DeviceLinkTmplUtil, f as normalizeAIOcrTmpl, h as useWidgetStaticAttrs, i as useRuntimeInstanceServices, s as setSelectValidatorId, j as setSelectAnnotationId, k as useRuntimeRowState, l as getObjectBomMaterialLotQuery, m as buildObjectLotExtraQuery, r as resolveObjectFieldKeys, o as MaterialConsumptionPatternEnum, v as validateObjectBomForScan, p as resolveObjectBomEntry, q as runWithFillProduct, t as useNocodeFormWidget, w as applyConsumeObjectTraceChange, x as getObjectBomProductQuery, E as EMPTY_PRODUCT_VERSION_ID, y as normalizeHistoricalAutofillRow, N as NCB_PROVIDE, z as parseRuntimeFieldPath, A as useStyles, C as useDependency, F as useFieldPresentation, G as useRuntimeEditorFlusher, R as RuntimeFormStateStore, H as createRuntimeInstanceContext, I as RuntimeInstanceRegistry, S as ScanParamType, J as RequiredQtyCalcRule, K as registerFormulaFuncs, L as DocumentPaper, O as DynamicTableAction, _ as _sfc_main$6u } from "./dynamic-table-action-BXNnUUIX.js";
8
+ import { M as MAX_RUNTIME_SHEETS, a as MAX_RUNTIME_SHEET_TITLE_LENGTH, b as MULTI_SHEET_SCHEMA_VERSION, c as createRuntimeDocumentV2, g as getBusinessFieldKey, n as normalizeFieldWidth, D as DEFAULT_BOOLEAN_FIELD_WIDTH, B as BorderTD, u as useFormTmplConfig, d as normalizeHistoricalBusinessRow, e as DeviceLinkTmplUtil, f as normalizeAIOcrTmpl, h as useWidgetStaticAttrs, i as useRuntimeInstanceServices, s as setSelectValidatorId, j as setSelectAnnotationId, k as useRuntimeRowState, l as getObjectBomMaterialLotQuery, m as buildObjectLotExtraQuery, r as resolveObjectFieldKeys, o as MaterialConsumptionPatternEnum, v as validateObjectBomForScan, p as resolveObjectBomEntry, q as runWithFillProduct, t as useNocodeFormWidget, w as applyConsumeObjectTraceChange, x as getObjectBomProductQuery, E as EMPTY_PRODUCT_VERSION_ID, y as normalizeHistoricalAutofillRow, N as NCB_PROVIDE, z as parseRuntimeFieldPath, A as useStyles, C as useDependency, F as useFieldPresentation, G as useRuntimeEditorFlusher, R as RuntimeFormStateStore, H as createRuntimeInstanceContext, I as RuntimeInstanceRegistry, S as ScanParamType, J as RequiredQtyCalcRule, K as registerFormulaFuncs, L as DocumentPaper, O as DynamicTableAction, _ as _sfc_main$6u } from "./dynamic-table-action-cb-6H4R2.js";
9
9
  import { S as SEARCH_SEVICE, V as VersionSelect, C as CloseOutlined, E as EmptyImg$2, _ as _sfc_main$6s, P as ProductTypeEnum } from "./online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-CtYTpCF6.js";
10
10
  import { I as Icon$1, w as warning, u as useInsertStyles, s as svgBaseProps, a as useNamespace } from "./AntdIcon-DCIaV352.js";
11
- import { u as useWebUpload, i as initWebPaasUploadApis, a as useThrottleFn, d as defaultWindow, n as noop, b as useEventListener, c as isIOS, e as unrefElement, r as require$$0, U as Uploader, f as useIntersectionObserver, g as cacheAdapter, w as watchDebounced, A as AddRuleBtn, M as ModalWrapper, F as FormFieldSelect, o as onClickOutside$1, _ as _sfc_main$6t, h as initWebNocodeAdapter } from "./index-BHXvTfAC.js";
11
+ import { u as useWebUpload, i as initWebPaasUploadApis, a as useThrottleFn, d as defaultWindow, n as noop, b as useEventListener, c as isIOS, e as unrefElement, r as require$$0, U as Uploader, f as useIntersectionObserver, g as cacheAdapter, w as watchDebounced, A as AddRuleBtn, M as ModalWrapper, F as FormFieldSelect, o as onClickOutside$1, _ as _sfc_main$6t, h as initWebNocodeAdapter } from "./index-l8FZ6Q3X.js";
12
12
  import { useFormBaseModal, FormBaseModalPlugin } from "@gct-paas/form-base";
13
13
  import { Tooltip, Grid, Table, Column, Icon as Icon$2, Edit, Validator, VxeGrid } from "vxe-table";
14
14
  import { u as useFormModel, F as FormModelController } from "./mb-render-DjXYXimz.js";
@@ -1931,7 +1931,7 @@ function openWindow(url, opt) {
1931
1931
  const FieldPropLabels = Object.entries(FIELD_PROP_LABEL_MAP);
1932
1932
  const FieldTypeLabels = Object.entries(FIELD_TYPE_LABEL_MAP);
1933
1933
  async function createWorkbook() {
1934
- const ExcelJs = (await import("./exceljs.min-Cr5_l7GW.js").then((n) => n.e)).default;
1934
+ const ExcelJs = (await import("./exceljs.min-CULCDRW9.js").then((n) => n.e)).default;
1935
1935
  return new ExcelJs.Workbook();
1936
1936
  }
1937
1937
  class XlsxParser {
@@ -2259,28 +2259,28 @@ class XlsxParser {
2259
2259
  }
2260
2260
  function asyncImportClassModules() {
2261
2261
  const modules = /* @__PURE__ */ Object.assign({
2262
- "./_field_/auto-complete/index.ts": () => import("./index-Dg5modjI.js").then((m) => m["default"]),
2263
- "./_field_/datepicker/index.ts": () => import("./index-BLFfeKcf.js").then((m) => m["default"]),
2264
- "./_field_/datetimepicker/index.ts": () => import("./index-em0rzOJO.js").then((m) => m["default"]),
2265
- "./_field_/department/index.ts": () => import("./index-BhRaNTnf.js").then((m) => m["default"]),
2266
- "./_field_/enum-select/index.ts": () => import("./index-BkEEB8UX.js").then((m) => m["default"]),
2267
- "./_field_/input/index.ts": () => import("./index-CSinNyyL.js").then((m) => m["default"]),
2268
- "./_field_/inputdouble/index.ts": () => import("./index-BDQQZex8.js").then((m) => m["default"]),
2269
- "./_field_/inputnumber/index.ts": () => import("./index-UMo1va8T.js").then((m) => m["default"]),
2270
- "./_field_/rdo-select/index.ts": () => import("./index-CabjW1sn.js").then((m) => m["default"]),
2271
- "./_field_/seal/index.ts": () => import("./index-DQhVTdNc.js").then((m) => m["default"]),
2272
- "./_field_/select/index.ts": () => import("./index-_y43fj3W.js").then((m) => m["default"]),
2273
- "./_field_/sign/index.ts": () => import("./index-BaQfzPpW.js").then((m) => m["default"]),
2274
- "./_field_/switch/index.ts": () => import("./index-BHmTVYqD.js").then((m) => m["default"]),
2275
- "./_field_/textarea/index.ts": () => import("./index-9S_12I_m.js").then((m) => m["default"]),
2276
- "./_field_/timepicker/index.ts": () => import("./index-Bq15nkZU.js").then((m) => m["default"]),
2277
- "./_field_/upload-file/index.ts": () => import("./index-BK1OplGc.js").then((m) => m["default"]),
2278
- "./_field_/upload-image/index.ts": () => import("./index-BO6dvJRn.js").then((m) => m["default"]),
2279
- "./_field_/userpicker/index.ts": () => import("./index-B9mMKdWV.js").then((m) => m["default"]),
2262
+ "./_field_/auto-complete/index.ts": () => import("./index-1WZ6SgTp.js").then((m) => m["default"]),
2263
+ "./_field_/datepicker/index.ts": () => import("./index-DyZzboE8.js").then((m) => m["default"]),
2264
+ "./_field_/datetimepicker/index.ts": () => import("./index-CAGghO4i.js").then((m) => m["default"]),
2265
+ "./_field_/department/index.ts": () => import("./index-DrWkEAL9.js").then((m) => m["default"]),
2266
+ "./_field_/enum-select/index.ts": () => import("./index-DGZzlITI.js").then((m) => m["default"]),
2267
+ "./_field_/input/index.ts": () => import("./index-Dzqrtkn_.js").then((m) => m["default"]),
2268
+ "./_field_/inputdouble/index.ts": () => import("./index-CCyMfv1Z.js").then((m) => m["default"]),
2269
+ "./_field_/inputnumber/index.ts": () => import("./index-CksQHOUM.js").then((m) => m["default"]),
2270
+ "./_field_/rdo-select/index.ts": () => import("./index-BsgB6y7K.js").then((m) => m["default"]),
2271
+ "./_field_/seal/index.ts": () => import("./index-CRo6J80n.js").then((m) => m["default"]),
2272
+ "./_field_/select/index.ts": () => import("./index-CpQ_DR3c.js").then((m) => m["default"]),
2273
+ "./_field_/sign/index.ts": () => import("./index-Dkj2h_zE.js").then((m) => m["default"]),
2274
+ "./_field_/switch/index.ts": () => import("./index-XtiIrcx4.js").then((m) => m["default"]),
2275
+ "./_field_/textarea/index.ts": () => import("./index-BsSL0R1j.js").then((m) => m["default"]),
2276
+ "./_field_/timepicker/index.ts": () => import("./index-BhJGnoAZ.js").then((m) => m["default"]),
2277
+ "./_field_/upload-file/index.ts": () => import("./index-2Vv4Nw6L.js").then((m) => m["default"]),
2278
+ "./_field_/upload-image/index.ts": () => import("./index-cunDtoJs.js").then((m) => m["default"]),
2279
+ "./_field_/userpicker/index.ts": () => import("./index-BBfo_rmJ.js").then((m) => m["default"]),
2280
2280
  "./_widget_/barcode/index.ts": () => import("./index-CvPWXCmn.js").then((m) => m["default"]),
2281
- "./_widget_/combine-fields/index.ts": () => import("./index-265Zuy2Y.js").then((m) => m["default"]),
2282
- "./_widget_/diagonal/index.ts": () => import("./index-BQGtju-p.js").then((m) => m["default"]),
2283
- "./_widget_/dyn-value/index.ts": () => import("./index-B0_PuKlp.js").then((m) => m["default"]),
2281
+ "./_widget_/combine-fields/index.ts": () => import("./index-DYjYdrMD.js").then((m) => m["default"]),
2282
+ "./_widget_/diagonal/index.ts": () => import("./index-DOiOWH2x.js").then((m) => m["default"]),
2283
+ "./_widget_/dyn-value/index.ts": () => import("./index-DUXHvUXT.js").then((m) => m["default"]),
2284
2284
  "./_widget_/image/index.ts": () => import("./index-B4LBLC9w.js").then((m) => m["default"]),
2285
2285
  "./_widget_/line/index.ts": () => import("./index-CyX1kNkY.js").then((m) => m["default"]),
2286
2286
  "./_widget_/power/index.ts": () => import("./index-N2ZMSuL6.js").then((m) => m["default"]),
@@ -2290,8 +2290,8 @@ function asyncImportClassModules() {
2290
2290
  "./_widget_/sub-table/index.ts": () => import("./index-Dq8DSt0w.js").then((m) => m["default"]),
2291
2291
  "./_widget_/timediff/index.ts": () => import("./index-CPQNMrdO.js").then((m) => m["default"]),
2292
2292
  "./paper/index.ts": () => import("./index-C-urdRZ2.js").then((m) => m["default"]),
2293
- "./td/index.ts": () => import("./index-DAxqwkuO.js").then((m) => m["default"]),
2294
- "./tr/index.ts": () => import("./index-50OBRcTM.js").then((m) => m["default"])
2293
+ "./td/index.ts": () => import("./index-B2lCwHgw.js").then((m) => m["default"]),
2294
+ "./tr/index.ts": () => import("./index-Dq5kgEpr.js").then((m) => m["default"])
2295
2295
  });
2296
2296
  return modules;
2297
2297
  }
@@ -11547,10 +11547,13 @@ const resolveQuickSearchConfig = (fieldMeta) => {
11547
11547
  const fields2 = getBasicSearchFields(fieldMeta);
11548
11548
  return { searchable: true, fields: fields2 };
11549
11549
  }
11550
+ const defaultType = resolveDefaultSearchType(fieldMeta);
11551
+ if (showDisplayAndSearchConfig(fieldMeta) && Array.isArray(fieldMeta.searchField)) {
11552
+ return { searchable: fieldMeta.searchField.length > 0, fields: fieldMeta.searchField };
11553
+ }
11550
11554
  if (fieldMeta.searchField?.length) {
11551
11555
  return { searchable: true, fields: fieldMeta.searchField };
11552
11556
  }
11553
- const defaultType = resolveDefaultSearchType(fieldMeta);
11554
11557
  if (defaultType === FIELD_TYPE.ROUTING_OPERATION || defaultType === FIELD_TYPE.OPERATION) {
11555
11558
  return { searchable: false, fields: [] };
11556
11559
  }
@@ -15886,7 +15889,7 @@ function asyncImportWidgetConfigList() {
15886
15889
  return widgetConfigList;
15887
15890
  }
15888
15891
  function asyncImportWidgetDesign() {
15889
- const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "../__cell_widgets__/seal/seal-design.vue": () => import("./seal-design-CFxljXVw.js"), "./barcode/barcode-design.vue": () => import("./barcode-design-ejpO4TWN.js"), "./diagonal/diagonal-design.vue": () => import("./diagonal-design-Bs9gWcVz.js"), "./image/image-design.vue": () => import("./image-design-DVq9O1ZF.js"), "./line/line-design.vue": () => Promise.resolve().then(() => lineDesign), "./pagination/pagination-design.vue": () => import("./pagination-design-D_QjDeiL.js"), "./paper-widget-design.vue": () => import("./paper-widget-design-BuH_G9AK.js"), "./power/power-design.vue": () => Promise.resolve().then(() => powerDesign), "./qrcode/qrcode-design.vue": () => import("./qrcode-design-DlAjNGZV.js"), "./rangelimit/rangelimit-design.vue": () => Promise.resolve().then(() => rangelimitDesign), "./serialnumber/serialnumber-design.vue": () => import("./serialnumber-design-BSgTQN0r.js"), "./text/text-design.vue": () => import("./text-design-DaLE4WYR.js"), "./timediff/timediff-design.vue": () => import("./timediff-design-BIyHZKid.js") });
15892
+ const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "../__cell_widgets__/seal/seal-design.vue": () => import("./seal-design-D1K9CloN.js"), "./barcode/barcode-design.vue": () => import("./barcode-design-CDhA1Xiw.js"), "./diagonal/diagonal-design.vue": () => import("./diagonal-design-ThSef3Um.js"), "./image/image-design.vue": () => import("./image-design-DbOmyTpn.js"), "./line/line-design.vue": () => Promise.resolve().then(() => lineDesign), "./pagination/pagination-design.vue": () => import("./pagination-design-Dlt_hRc9.js"), "./paper-widget-design.vue": () => import("./paper-widget-design-CsNAYJIm.js"), "./power/power-design.vue": () => Promise.resolve().then(() => powerDesign), "./qrcode/qrcode-design.vue": () => import("./qrcode-design-BKW9Ywq7.js"), "./rangelimit/rangelimit-design.vue": () => Promise.resolve().then(() => rangelimitDesign), "./serialnumber/serialnumber-design.vue": () => import("./serialnumber-design-BSgTQN0r.js"), "./text/text-design.vue": () => import("./text-design-CJo1qzwn.js"), "./timediff/timediff-design.vue": () => import("./timediff-design-BIyHZKid.js") });
15890
15893
  const widgetDesignMap = Object.keys(modules).reduce((map2, path) => {
15891
15894
  const mKey = path.match(/\/([a-z]+)-design\.vue$/)?.[1];
15892
15895
  if (mKey) {
@@ -35326,7 +35329,13 @@ const _sfc_main$4A = /* @__PURE__ */ defineComponent({
35326
35329
  };
35327
35330
  }
35328
35331
  });
35329
- const getDefaultDisplayFieldConfig = (_fieldType) => {
35332
+ const DEFAULT_DISPLAY_FIELDS_MAP = {
35333
+ material: ["code_", "name_", "spec_", "uom_id_", "description_"]
35334
+ };
35335
+ const getDefaultDisplayFieldConfig = (fieldType) => {
35336
+ if ([FIELD_TYPE.PRODUCT, FIELD_TYPE.SCRAP_MATERIAL].includes(fieldType)) {
35337
+ return { keys: DEFAULT_DISPLAY_FIELDS_MAP.material, unremovableKeys: ["code_"] };
35338
+ }
35330
35339
  return { keys: [], unremovableKeys: [] };
35331
35340
  };
35332
35341
  const retainsLegacyDisplayFields = (fieldType) => [
@@ -36854,7 +36863,7 @@ const _sfc_main$4x = /* @__PURE__ */ defineComponent({
36854
36863
  return { options, values, displayTitle };
36855
36864
  });
36856
36865
  const unremovableKeys = computed(() => {
36857
- return (props2.displayFields || []).filter((o) => o._dfUnremovable).map((o) => o._dfValue);
36866
+ return (props2.displayFields || []).filter((o) => o._dfUnremovable || defaultConfig.value.unremovableKeys.includes(o.key)).map((o) => o._dfValue);
36858
36867
  });
36859
36868
  const handleOpenModal = () => {
36860
36869
  open({
@@ -36877,19 +36886,22 @@ const _sfc_main$4x = /* @__PURE__ */ defineComponent({
36877
36886
  _dfValue: f.id,
36878
36887
  _dfUnremovable: defaultConfig.value.unremovableKeys.includes(f.key)
36879
36888
  }));
36880
- emit2("update:displayFields", fields);
36889
+ const locked = (props2.displayFields || []).filter(
36890
+ (field) => defaultConfig.value.unremovableKeys.includes(field.key) && !fields.some((item) => item.key === field.key)
36891
+ );
36892
+ emit2("update:displayFields", [...locked, ...fields]);
36881
36893
  }
36882
36894
  });
36883
36895
  };
36884
36896
  const handleSelectChange = (remainingKeys) => {
36885
36897
  if (props2.disabled) return;
36886
36898
  const options = (props2.displayFields || []).filter((o) => {
36887
- return o._dfUnremovable ? true : remainingKeys.includes(o._dfValue);
36899
+ return unremovableKeys.value.includes(o._dfValue) || remainingKeys.includes(o._dfValue);
36888
36900
  });
36889
36901
  emit2("update:displayFields", options);
36890
36902
  };
36891
36903
  const handleTagClose = (val) => {
36892
- if (props2.disabled) return;
36904
+ if (props2.disabled || unremovableKeys.value.includes(val)) return;
36893
36905
  const options = (props2.displayFields || []).filter((o) => o._dfValue !== val);
36894
36906
  emit2("update:displayFields", options);
36895
36907
  };
@@ -36901,13 +36913,15 @@ const _sfc_main$4x = /* @__PURE__ */ defineComponent({
36901
36913
  if (!shouldInit) return;
36902
36914
  if (!refModelKey) return;
36903
36915
  const retainsDefaults = retainsLegacyDisplayFields(fieldMeta.bizType || fieldType) || fieldMeta.field?.split("$").pop() === "part_id_";
36904
- if (!retainsDefaults) {
36916
+ if (!retainsDefaults && !defaultConfig.value.keys.length) {
36905
36917
  emit2("update:displayFields", []);
36906
36918
  return;
36907
36919
  }
36908
- const { unremovableKeys: unremovableKeys2 } = getDefaultDisplayFieldConfig(fieldMeta.bizType || fieldType);
36920
+ const { keys: defaultKeys, unremovableKeys: unremovableKeys2 } = defaultConfig.value;
36909
36921
  const keys2 = Array.from(
36910
- new Set((props2.legacySearchFields || []).map((key) => key.split(".")[0]))
36922
+ new Set(
36923
+ defaultKeys.length ? defaultKeys : (props2.legacySearchFields || []).map((key) => key.split(".")[0])
36924
+ )
36911
36925
  );
36912
36926
  if (!keys2.length) return;
36913
36927
  if (!modelMetaMap2.value[refModelKey]) {
@@ -36938,7 +36952,7 @@ const _sfc_main$4x = /* @__PURE__ */ defineComponent({
36938
36952
  mode: "multiple",
36939
36953
  showArrow: "",
36940
36954
  "max-tag-count": "responsive",
36941
- allowClear: !__props.disabled,
36955
+ allowClear: !__props.disabled && !defaultConfig.value.unremovableKeys.length,
36942
36956
  open: false,
36943
36957
  showSearch: false,
36944
36958
  options: selectorInfo.value.options,
@@ -36970,7 +36984,7 @@ const _sfc_main$4x = /* @__PURE__ */ defineComponent({
36970
36984
  };
36971
36985
  }
36972
36986
  });
36973
- const DisplayFieldsEditor = /* @__PURE__ */ _export_sfc(_sfc_main$4x, [["__scopeId", "data-v-9a44d291"]]);
36987
+ const DisplayFieldsEditor = /* @__PURE__ */ _export_sfc(_sfc_main$4x, [["__scopeId", "data-v-2593d6b8"]]);
36974
36988
  const _hoisted_1$2z = {
36975
36989
  key: 0,
36976
36990
  class: "quick-search-editor"
@@ -52817,7 +52831,7 @@ const _sfc_main$3p = /* @__PURE__ */ defineComponent({
52817
52831
  }
52818
52832
  });
52819
52833
  function asyncImportWidgetProp() {
52820
- const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-D8sXBO3u.js"), "./widget-diagonal.vue": () => import("./widget-diagonal-CoiPow-N.js"), "./widget-image.vue": () => import("./widget-image-CkfwiupS.js"), "./widget-line.vue": () => import("./widget-line-BHHhjt39.js"), "./widget-pagination.vue": () => import("./widget-pagination-2D_pMT3X.js"), "./widget-power.vue": () => import("./widget-power-BWjDuOSj.js"), "./widget-qrcode.vue": () => import("./widget-qrcode-DxARlp5Q.js"), "./widget-rangelimit.vue": () => import("./widget-rangelimit-DUyFFT_x.js"), "./widget-serialnumber.vue": () => import("./widget-serialnumber-CeQt5Nwg.js"), "./widget-text.vue": () => import("./widget-text-Ci9WHuOm.js"), "./widget-timediff.vue": () => import("./widget-timediff-BNrCLWLE.js") });
52834
+ const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-Skwby19J.js"), "./widget-diagonal.vue": () => import("./widget-diagonal-2jkexxFy.js"), "./widget-image.vue": () => import("./widget-image-DzNGEvNB.js"), "./widget-line.vue": () => import("./widget-line-CKztM9A8.js"), "./widget-pagination.vue": () => import("./widget-pagination-DewFBSHR.js"), "./widget-power.vue": () => import("./widget-power-DXJJuRh4.js"), "./widget-qrcode.vue": () => import("./widget-qrcode-js88isHk.js"), "./widget-rangelimit.vue": () => import("./widget-rangelimit-DLy_aqqT.js"), "./widget-serialnumber.vue": () => import("./widget-serialnumber-BvpZV5f7.js"), "./widget-text.vue": () => import("./widget-text-CrZN9uDY.js"), "./widget-timediff.vue": () => import("./widget-timediff-DJLoE_Xk.js") });
52821
52835
  const widgetPropMap = Object.keys(modules).reduce((map2, path) => {
52822
52836
  const mKey = path.match(/\/widget-([a-z]+)\.vue$/)?.[1];
52823
52837
  if (mKey) {
@@ -67595,6 +67609,9 @@ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
67595
67609
  } = useWidgetStaticAttrs(props2.widget);
67596
67610
  const searchField = computed(() => {
67597
67611
  const realFieldType = bizType || fieldType;
67612
+ if (Array.isArray(quickSearchField) && !quickSearchField.length) {
67613
+ return [];
67614
+ }
67598
67615
  const basicFields = [FIELD_TYPE.PRODUCT, FIELD_TYPE.SCRAP_MATERIAL].includes(realFieldType) ? ["code_.like", "version_.like", "name_.like", "spec_.like"] : [];
67599
67616
  const configuredFields = (() => {
67600
67617
  if (quickSearchField?.length) return quickSearchField;
@@ -67763,7 +67780,7 @@ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
67763
67780
  };
67764
67781
  }
67765
67782
  });
67766
- const RdoSelectTable = /* @__PURE__ */ _export_sfc(_sfc_main$1V, [["__scopeId", "data-v-ca7c40d7"]]);
67783
+ const RdoSelectTable = /* @__PURE__ */ _export_sfc(_sfc_main$1V, [["__scopeId", "data-v-ba907b47"]]);
67767
67784
  const _hoisted_1$18 = { class: "rdo-select-tree" };
67768
67785
  const _hoisted_2$O = {
67769
67786
  key: 0,
@@ -68023,7 +68040,7 @@ const _sfc_main$1T = /* @__PURE__ */ defineComponent({
68023
68040
  const { field, bizType, fieldType, modelKey, refModelKey, customLoaderRef } = useWidgetStaticAttrs(props2.widget);
68024
68041
  const keyword2 = ref();
68025
68042
  const showSearch = computed(
68026
- () => (props2.widget.props.displayFields || []).some((item) => item?.key) && (!!props2.widget.props.quickSearchField?.length || (bizType || fieldType) === FIELD_TYPE.MFG_ORDER)
68043
+ () => (props2.widget.props.displayFields || []).some((item) => item?.key) && !!props2.widget.props.quickSearchField?.length
68027
68044
  );
68028
68045
  function formatDisplayCell({ cellValue }) {
68029
68046
  return cellValue === "" || cellValue === null || cellValue === void 0 ? "--" : cellValue;
@@ -68160,7 +68177,7 @@ const _sfc_main$1T = /* @__PURE__ */ defineComponent({
68160
68177
  };
68161
68178
  }
68162
68179
  });
68163
- const TraceRefSelectTable = /* @__PURE__ */ _export_sfc(_sfc_main$1T, [["__scopeId", "data-v-b48ca019"]]);
68180
+ const TraceRefSelectTable = /* @__PURE__ */ _export_sfc(_sfc_main$1T, [["__scopeId", "data-v-7f1d3189"]]);
68164
68181
  const _sfc_main$1S = /* @__PURE__ */ defineComponent({
68165
68182
  ...{ inheritAttrs: false },
68166
68183
  __name: "parse-select",
@@ -70128,7 +70145,7 @@ const VuePdf = /* @__PURE__ */ defineComponent({
70128
70145
  }
70129
70146
  });
70130
70147
  const VueVideoPlayer = defineAsyncComponent(
70131
- () => import("./VueVideoPlayer-IeaDX9ln.js")
70148
+ () => import("./VueVideoPlayer-BlB2c7W0.js")
70132
70149
  );
70133
70150
  const _hoisted_1$16 = {
70134
70151
  key: 0,
@@ -71308,6 +71325,7 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
71308
71325
  if ((bizType || fieldType) === FIELD_TYPE.E_SOP || isRoutingOperation || isOperationRef) {
71309
71326
  return [];
71310
71327
  }
71328
+ if (Array.isArray(quickSearchField)) return [];
71311
71329
  if (customLoaderRef.value) return ["name_.like"];
71312
71330
  return quickSearchField;
71313
71331
  })();
@@ -73232,6 +73250,8 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
73232
73250
  } = useWidgetStaticAttrs(props2.widget);
73233
73251
  const searchField = searchFieldMap[fieldType] || "name_";
73234
73252
  const searchVisible = computed(() => {
73253
+ const { quickSearchField } = props2.widget.props;
73254
+ if (Array.isArray(quickSearchField) && !quickSearchField.length) return false;
73235
73255
  if ((bizType || fieldType) === FIELD_TYPE.MFG_ORDER) {
73236
73256
  return !!props2.widget.props.quickSearchField?.length;
73237
73257
  }
@@ -91007,8 +91027,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
91007
91027
  printTask = (async () => {
91008
91028
  if (document.activeElement instanceof HTMLElement) document.activeElement.blur();
91009
91029
  await nextTick();
91010
- const { printRuntimeInstance } = await import("./print-runtime-instance-BVl0QFuC.js");
91011
- const { default: renderer } = await import("./print-snapshot-renderer-CwlqVc2E.js");
91030
+ const { printRuntimeInstance } = await import("./print-runtime-instance-C0P0bQ0t.js");
91031
+ const { default: renderer } = await import("./print-snapshot-renderer-hfbiNoQz.js");
91012
91032
  if (abort.signal.aborted) throw new Error("打印已取消");
91013
91033
  printRenderer.value = markRaw(renderer);
91014
91034
  await printRuntimeInstance(
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum, b0 as BindCmpStyleEnum } from "./dynamic-table-
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-DlErT5t9.js";
6
+ import { B as BaseComponent } from "./BaseComponent-DuVlKAnk.js";
7
7
  class Textarea extends BaseComponent {
8
8
  component = ComponentTypeEnum.Textarea;
9
9
  wrapperCmpConfig({ data }) {
@@ -3,8 +3,8 @@ import "vue";
3
3
  import "lodash-es";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-DlErT5t9.js";
7
- import { g as getTraceLikeSelectProps } from "./trace-like-wrapper-C4E9e2Je.js";
6
+ import { B as BaseComponent } from "./BaseComponent-DuVlKAnk.js";
7
+ import { g as getTraceLikeSelectProps } from "./trace-like-wrapper-BQv5F61v.js";
8
8
  class RdoSelect extends BaseComponent {
9
9
  component = ComponentTypeEnum.RdoSelect;
10
10
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum, F as FIELD_TYPE, ax as RangeCompareOp, aw as Ra
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-DlErT5t9.js";
6
+ import { B as BaseComponent } from "./BaseComponent-DuVlKAnk.js";
7
7
  class DateTimepicker extends BaseComponent {
8
8
  component = ComponentTypeEnum.DateTimepicker;
9
9
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum, ay as DecimalDisplayMode, ax as RangeCompareOp,
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-DlErT5t9.js";
6
+ import { B as BaseComponent } from "./BaseComponent-DuVlKAnk.js";
7
7
  class InputDouble extends BaseComponent {
8
8
  component = ComponentTypeEnum.InputDouble;
9
9
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import "vue";
3
3
  import "lodash-es";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-DlErT5t9.js";
6
+ import { B as BaseComponent } from "./BaseComponent-DuVlKAnk.js";
7
7
  class Seal extends BaseComponent {
8
8
  component = ComponentTypeEnum.Seal;
9
9
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum, ay as DecimalDisplayMode, ax as RangeCompareOp,
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-DlErT5t9.js";
6
+ import { B as BaseComponent } from "./BaseComponent-DuVlKAnk.js";
7
7
  class InputNumber extends BaseComponent {
8
8
  component = ComponentTypeEnum.Inputnumber;
9
9
  wrapperCmpConfig({ data }) {
@@ -3,8 +3,8 @@ import { C as ComponentTypeEnum, F as FIELD_TYPE } from "./dynamic-table-action.
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-DlErT5t9.js";
7
- import { i as isSterilizationLotField, a as getSterilizationLotDisplayFields, b as isInventoryProductField, s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig, I as INVENTORY_QUICK_SEARCH_FIELDS } from "./index-BDXjjYXb.js";
6
+ import { B as BaseComponent } from "./BaseComponent-DuVlKAnk.js";
7
+ import { i as isSterilizationLotField, a as getSterilizationLotDisplayFields, b as isInventoryProductField, s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig, I as INVENTORY_QUICK_SEARCH_FIELDS } from "./index-BkznJYts.js";
8
8
  class Select extends BaseComponent {
9
9
  component = ComponentTypeEnum.Select;
10
10
  wrapperCmpConfig({ data }) {