@gct-paas/excel 0.1.21 → 0.1.22

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 (153) hide show
  1. package/dist/{VueVideoPlayer-Bf0x69CJ.js → VueVideoPlayer-dfgekKID.js} +2 -2
  2. package/dist/{agg-design-CLSOm6QJ.js → agg-design-yDLZkVkR.js} +1 -1
  3. package/dist/{agg-props-4nnDqWtf.js → agg-props-DrXyaNCT.js} +1 -1
  4. package/dist/{agg-style-FHSkeH5u.js → agg-style-D_6r9Myg.js} +1 -1
  5. package/dist/{align-editor-Bf391dfO.js → align-editor-D5Ra4SB6.js} +1 -1
  6. package/dist/{attach-fields-editor-U0Vg4ar8.js → attach-fields-editor-C4JBi-p_.js} +2 -2
  7. package/dist/{barcode-design-XLuURxqD.js → barcode-design-D3JH5Afi.js} +2 -2
  8. package/dist/base/index.es.js +77 -74
  9. package/dist/{base-font-editor-adnb7ShQ.js → base-font-editor-B6J_Ts2T.js} +2 -2
  10. package/dist/{boolean-design-Bk3jIc2m.js → boolean-design-DQvGDcd9.js} +2 -2
  11. package/dist/{boolean-props-D1C7P7oX.js → boolean-props-BPxPHLqI.js} +3 -3
  12. package/dist/{boolean-style-CWmep9-Y.js → boolean-style-BSc1-meP.js} +4 -4
  13. package/dist/{cell-upload-wzPF8ovv.js → cell-upload-CiWekXUb.js} +2 -2
  14. package/dist/{date-range-editor-CGCLkDFp.js → date-range-editor-DPt8-LqQ.js} +2 -2
  15. package/dist/{date-time-design-CG6fhsBd.js → date-time-design-Dv4dW-Iy.js} +1 -1
  16. package/dist/{date-time-props-DGa4XIFD.js → date-time-props-Cs4GVKqC.js} +3 -3
  17. package/dist/{date-time-style-C5xs_HQX.js → date-time-style-iSIC_SNA.js} +1 -1
  18. package/dist/{decimal-design-Dg2PWB7J.js → decimal-design-C-GvHZPx.js} +1 -1
  19. package/dist/{decimal-display-mode-B5nxWZnK.js → decimal-display-mode-C_ooE9xL.js} +2 -2
  20. package/dist/{decimal-props-BUduwEu5.js → decimal-props-Vv8GsEHC.js} +4 -4
  21. package/dist/{decimal-style-CW6QyMh0.js → decimal-style-CY-zOSpD.js} +1 -1
  22. package/dist/{default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-BlQSjkvP.js → default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-Bw0TkvW-.js} +2 -2
  23. package/dist/{diagonal-design-xlveiCza.js → diagonal-design-DS1kXGt1.js} +16 -4
  24. package/dist/{double-design-Dkzgoo0g.js → double-design-DAz8wmRS.js} +1 -1
  25. package/dist/{double-props-DwI5z-Mz.js → double-props-e76nS4qi.js} +4 -4
  26. package/dist/{double-style-B09n2Oup.js → double-style-kWIo_xYy.js} +1 -1
  27. package/dist/{dynamic-table-action-KwzaoPBC.js → dynamic-table-action-CbHoY76E.js} +12 -3
  28. package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-ByU7Owiw.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BfGYCqH5.js} +250 -225
  29. package/dist/{edit.utils-CXmmCnxE-Do4weQUL.js → edit.utils-CXmmCnxE-CLCBDG4R.js} +1 -1
  30. package/dist/{enum-design-D_hYB8q2.js → enum-design-DVoXOTIU.js} +2 -2
  31. package/dist/{enum-props-SHpVl7is.js → enum-props-DgsIc2Fz.js} +3 -3
  32. package/dist/{enum-style-zTZKj6Li.js → enum-style-C4r86NqC.js} +3 -3
  33. package/dist/excel.css +284 -66
  34. package/dist/{exceljs.min-Dy4OavkS.js → exceljs.min-D-mqoZsC.js} +2 -2
  35. package/dist/{expression-design-DH37JCnd.js → expression-design-D7PiPYQJ.js} +1 -1
  36. package/dist/{expression-props-D4aZ2FzY.js → expression-props-DDcg6alT.js} +1 -1
  37. package/dist/{expression-style-Bj0tEmqJ.js → expression-style-C0GgXqbp.js} +1 -1
  38. package/dist/{file-design-hV82bwcT.js → file-design-CeAmaBow.js} +1 -1
  39. package/dist/{file-props-BR0xOn8f.js → file-props-e06WxwTc.js} +2 -2
  40. package/dist/{file-style-CPXRGFCR.js → file-style-FigMgXwH.js} +1 -1
  41. package/dist/{font-editor-QrOFLcNA.js → font-editor-DYBI1FXx.js} +3 -3
  42. package/dist/{image-design-B3FASJvR.js → image-design-CcHGCTJH.js} +1 -1
  43. package/dist/{image-design-WqYFe8Hz.js → image-design-DxKCuSrx.js} +2 -2
  44. package/dist/{image-props-DZ0lHvNN.js → image-props-Co5Kp-ZH.js} +1 -1
  45. package/dist/{image-style-D3jSU46p.js → image-style-D6I5jBAk.js} +1 -1
  46. package/dist/{index-C9uva5U9.js → index-8-tnvhRC.js} +1 -1
  47. package/dist/{index-DKR79OBc.js → index-B2Rk7ex6.js} +1 -1
  48. package/dist/{index-CVsM5Bam.js → index-BC-Zhsm-.js} +1 -1
  49. package/dist/{index-Cblyq6yH.js → index-BZfGHVOt.js} +1 -1
  50. package/dist/{index-DVaUctcz.js → index-Bsabb65u.js} +1 -1
  51. package/dist/{index-B_bGf5j3.js → index-C7EF3bU6.js} +2 -2
  52. package/dist/{index-BpacgAuY.js → index-CRcKdyyr.js} +1 -1
  53. package/dist/{index-CAp9OIUg.js → index-CTEoW7C9.js} +2 -2
  54. package/dist/{index-BYnhPyxm.js → index-CgDvaY3D.js} +1 -1
  55. package/dist/{index-4aWfyi4S.js → index-CpsQzaA9.js} +2 -2
  56. package/dist/{index-BCRANZ6N.js → index-CwwHZhmI.js} +1 -1
  57. package/dist/{index-pMF19I7H.js → index-D3H3AjqQ.js} +1 -1
  58. package/dist/{index-B2JfWmQ5.js → index-D51-PvAq.js} +1 -1
  59. package/dist/{index-RY064UmV.js → index-D6YzCpCw.js} +2 -1
  60. package/dist/{index-Dvp79b5b.js → index-D7DRfQTh.js} +1 -1
  61. package/dist/{index-D8uy8whi.js → index-DFGBKBau.js} +1 -1
  62. package/dist/{index-CsLZerBY.js → index-DJdI2Xy_.js} +771 -311
  63. package/dist/{index-Cqh9EW_d.js → index-DSSHWwFD.js} +4 -1
  64. package/dist/{index-DegtNz07.js → index-DXtJ-139.js} +1 -1
  65. package/dist/{index-BYFfjfXo.js → index-Dacbq4L4.js} +249 -27
  66. package/dist/{index-CquVE9ii.js → index-DgBJVPsK.js} +1 -1
  67. package/dist/{index-DNHA-joo.js → index-Dku5Txlf.js} +1 -1
  68. package/dist/{index-DxgKf-wy.js → index-DsBusJ7S.js} +1 -1
  69. package/dist/{index-BgJenclY.js → index-Dx6OiqW2.js} +1 -1
  70. package/dist/{index-DpFPYL8b.js → index-E-flWZFi.js} +1 -1
  71. package/dist/{index-ChFaMPeg.js → index-GGZRPnYe.js} +2 -2
  72. package/dist/{index-wmbtcxzT.js → index-H9YwRWK1.js} +2 -2
  73. package/dist/{index-Jz0_ApK0.js → index-J1Nf5wgV.js} +1 -1
  74. package/dist/{index-dECIkP6q.js → index-OK49_noi.js} +1 -1
  75. package/dist/{index-iGA3l7nd.js → index-UeWlvtDf.js} +1 -1
  76. package/dist/{index-Ol6_R1tg.js → index-l3TfFIxY.js} +1 -1
  77. package/dist/{index-BocrGDq2.js → index-xg8BpbDL.js} +1 -1
  78. package/dist/{index-DU3SF4eg.js → index-yclgXrqJ.js} +1 -1
  79. package/dist/index.es.js +2 -2
  80. package/dist/{integer-design-_-oIGMZi.js → integer-design-DJ4aKAz0.js} +1 -1
  81. package/dist/{integer-props-CbhqGTWT.js → integer-props-CaSOySHa.js} +4 -4
  82. package/dist/{integer-style-CRDDq2e1.js → integer-style-CCLqQ4ys.js} +1 -1
  83. package/dist/{mb-render-Bh6EegbE.js → mb-render-JGHghp5L.js} +1 -1
  84. package/dist/{number-input-ex-n0MRaA8Z.js → number-input-ex-CtHpEamV.js} +1 -1
  85. package/dist/{org-props-B_ED1XJd.js → org-props-CRAmwHlJ.js} +2 -2
  86. package/dist/{org-style-P7mL2u1-.js → org-style-BWj_AEnP.js} +1 -1
  87. package/dist/{pagination-design-CC2ZvE5K.js → pagination-design-BGUqZKxh.js} +2 -2
  88. package/dist/paper-widget-design-CgmZ8LSm.js +4 -0
  89. package/dist/{qrcode-design-C_G8R7Lo.js → qrcode-design-CjN0UWN3.js} +1 -1
  90. package/dist/{ref-autofill-editor-DdUMjliQ.js → ref-autofill-editor-BKYPW69A.js} +2 -2
  91. package/dist/{ref-props-CCwA0E2w.js → ref-props-M99PRlsI.js} +3 -3
  92. package/dist/{ref-style-C3Qy3L2V.js → ref-style-BCeprSYg.js} +1 -1
  93. package/dist/{regex-editor-CswiNY9l.js → regex-editor-BGaFYbF4.js} +2 -2
  94. package/dist/{revo-grid.entry-fhJrZlXs.js → revo-grid.entry-Bokapeoj.js} +1 -1
  95. package/dist/{revogr-attribution_7.entry-BxX5Aax7.js → revogr-attribution_7.entry-D7WJHpFT.js} +3 -3
  96. package/dist/{revogr-clipboard_3.entry-B84Mg6_S.js → revogr-clipboard_3.entry-Bk1SGzbF.js} +2 -2
  97. package/dist/{revogr-data_4.entry-BSSMKH9X.js → revogr-data_4.entry-2v7X9qHp.js} +2 -2
  98. package/dist/{revogr-filter-panel.entry-xjYp1Z8c.js → revogr-filter-panel.entry-DXaW46ts.js} +1 -1
  99. package/dist/{select-render-type-editor.vue_vue_type_script_setup_true_lang-JwULnnUe.js → select-render-type-editor.vue_vue_type_script_setup_true_lang-ygXwKc_C.js} +2 -2
  100. package/dist/{serialnumber-design-qdEzFAi4.js → serialnumber-design-Bo13RmJa.js} +1 -1
  101. package/dist/shared/index.es.js +22 -22
  102. package/dist/{signature-design-DyLTKEwS.js → signature-design-DT5T5nus.js} +1 -1
  103. package/dist/{signature-props-CXwqrh0H.js → signature-props-cW9R4qcY.js} +3 -3
  104. package/dist/{signature-style-ibNQSAPQ.js → signature-style-XPxgyfzG.js} +1 -1
  105. package/dist/{single-field-drop-BSdWy-C4.js → single-field-drop-CjK8KjfH.js} +2 -2
  106. package/dist/{size-editor-8C1AxONY.js → size-editor-aLyY3Bsr.js} +1 -1
  107. package/dist/src/nocode-base/src/constant/index.d.ts +16 -1
  108. package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +3 -1
  109. package/dist/src/nocode-base/src/hooks/material-consume/mc-render.d.ts +8 -1
  110. package/dist/src/nocode-base/src/hooks/material-consume/types.d.ts +13 -0
  111. package/dist/src/nocode-base/src/types/common/base.d.ts +8 -0
  112. package/dist/src/nocode-base/src/types/fields/i-trace.d.ts +6 -0
  113. package/dist/src/nocode-base/src/types/render/mc-render.d.ts +8 -1
  114. package/dist/src/nocode-base/src/types/render/sub-table-render.d.ts +8 -1
  115. package/dist/src/nocode-base/src/types/widgets/i-diagonal.d.ts +4 -2
  116. package/dist/src/nocode-web-render/src/render/sub-table/common/scan-modal.vue.d.ts +12 -1
  117. package/dist/src/nocode-web-render/src/render/sub-table/common/sub-table-render.d.ts +8 -1
  118. package/dist/src/nocode-web-render/src/render/sub-table/material-consume/mc-web-render.d.ts +7 -0
  119. package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/assoc-filter-editor.vue.d.ts +20 -0
  120. package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/assoc-filter.util.d.ts +30 -0
  121. package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/assoc-source-field-select.vue.d.ts +22 -0
  122. package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/index.d.ts +3 -0
  123. package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +40 -0
  124. package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +55 -0
  125. package/dist/src/online-form/src/views/render/__components__/_field_/trace/composables/assoc-filter.d.ts +11 -0
  126. package/dist/{text-design-BzDtceUO.js → text-design-DIR_98fe.js} +2 -2
  127. package/dist/{text-design-Di-2lpQC.js → text-design-Dz8pIESR.js} +2 -2
  128. package/dist/{text-props-YXtd9DCt.js → text-props-BxirdX2V.js} +5 -5
  129. package/dist/{text-style-BtclwHUQ.js → text-style-MPmJRVRg.js} +1 -1
  130. package/dist/{throttle-Cpk1LoGk-BFMM5iqm.js → throttle-Cpk1LoGk-C22z7VFi.js} +1 -1
  131. package/dist/{timediff-design-DPDNHC4C.js → timediff-design-Pud7SFpe.js} +1 -1
  132. package/dist/{trace-design-B2tffMF2.js → trace-design-DNVZ_y9D.js} +2 -2
  133. package/dist/trace-props-LPvWrrti.js +610 -0
  134. package/dist/{trace-style-AmSVnHXF.js → trace-style-DnaicSRA.js} +1 -1
  135. package/dist/{user-props-hR1saiG7.js → user-props-DdTpHX3B.js} +2 -2
  136. package/dist/{user-style-BsMfhFHo.js → user-style-6SWgJi8d.js} +1 -1
  137. package/dist/{value-editor.vue_vue_type_style_index_0_lang-zAPZ-2E_.js → value-editor.vue_vue_type_style_index_0_lang-DKeZWlc0.js} +2 -2
  138. package/dist/{version-select-CeQP0Bne.js → version-select-CXWtI4W-.js} +1 -1
  139. package/dist/web-render/index.es.js +2 -2
  140. package/dist/{widget-barcode-DPdsvAF5.js → widget-barcode-iBjDv4NF.js} +4 -4
  141. package/dist/{widget-diagonal-BfjZGony.js → widget-diagonal-4ZMgaI9y.js} +72 -17
  142. package/dist/{widget-image-D_E_0ZEd.js → widget-image-B63wZzz4.js} +5 -5
  143. package/dist/{widget-line-SDiSxrzr.js → widget-line-CIG-L--W.js} +2 -2
  144. package/dist/{widget-pagination-DdIoe9Yy.js → widget-pagination-CAmhXECi.js} +5 -5
  145. package/dist/{widget-power-hifeC3T0.js → widget-power-CsiguFSe.js} +3 -3
  146. package/dist/{widget-qrcode-DBEsM1iE.js → widget-qrcode-BuEayrLO.js} +3 -3
  147. package/dist/{widget-rangelimit-clQ84tvq.js → widget-rangelimit-CqaLvV8n.js} +3 -3
  148. package/dist/{widget-serialnumber-BXvzHCYR.js → widget-serialnumber-C_wAw0TS.js} +1 -1
  149. package/dist/{widget-text-CPojsb_9.js → widget-text-CRApo2EO.js} +5 -5
  150. package/dist/{widget-timediff-DGBZsme_.js → widget-timediff-D1q5VNhe.js} +2 -2
  151. package/package.json +1 -1
  152. package/dist/paper-widget-design-CvvM0OZ2.js +0 -4
  153. package/dist/trace-props-CWTXFYZ9.js +0 -275
@@ -1,14 +1,14 @@
1
1
  import { computed, unref, ref, defineComponent, onMounted, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, watch, toRaw, inject, reactive, createBlock, Fragment, renderList, createTextVNode, toDisplayString, createCommentVNode, createElementVNode, defineAsyncComponent, normalizeClass, normalizeStyle, watchEffect, renderSlot, resolveDynamicComponent, mergeProps, normalizeProps, guardReactiveProps, withModifiers, withKeys, nextTick, withDirectives, vShow, onBeforeUnmount, onUnmounted, isRef, provide, isVNode, h, createApp, Teleport, TransitionGroup, getCurrentInstance, onActivated, onDeactivated, render, toRef, mergeDefaults, useCssVars, onBeforeMount, toHandlers, createSlots, useAttrs, vModelText, toRefs } from "vue";
2
- import { P as PaginationFormat, a as PaperWidgeType, B as BwipCodeType, L as LineType, b as PageSizeEnum, O as Orientation, F as FIELD_TYPE, c as FIELD_TYPE_TRACE, d as FIELD_TYPE_BUSINESS, s as src, C as CreateType, e as ComponentTypeEnum, p as parse, f as estraverse, S as Syntax, g as SubTableType, h as CellType, i as api, j as FieldTypeToJs, r as requireEstraverse, k as commonjsGlobal, l as getDefaultExportFromCjs, m as PaperWidgeValueType, u as useCalculateFormula, o as onlineFormMasterModelTypeEnum, n as FIELD_TYPE_WAREHOUSE, U as UniqueConstraintType, q as FieldDefaultValueTypeEnum, t as FormTypeEnum, v as mitt, w as LabelPosition, x as BooleanShowMode, y as SignatureNumberTypeEnum, z as SignatureTimeTypeEnum, A as SignShowTypeEnum, D as SignatureTypeEnum, _ as _export_sfc, E as PlatformEnum, G as FieldIconMap, H as CellWidgetViewState, I as DiagonalDirection, W as WidgetImageSizeMode, J as LineDirection, T as TimeDiffFormat, V as ViewTypeEnum, K as EmptySymbol, M as ASSIGNMENTSTRATEGY_ENUM, N as Dependency_ENUM, Q as ExpressionModeEnum, R as ExpressionTabEnum, X as ReturnTypeEnum, Y as ImageDisplayModeEnum, Z as PaperSizeMap, $ as EntityModelCategoryEnum, a0 as CheckDsTypeEnum, a1 as DeviceLink, a2 as DeviceParamsTypeTitle, a3 as AITooltips, a4 as DenoiseMethodOptions, a5 as BinarizeMethodOptions, a6 as ParamModelTypeEnum, a7 as JoinModelTypeEum, a8 as sqlUtils, a9 as useWidgetStaticAttrs, aa as setSelectValidatorId, ab as setSelectAnnotationId, ac as useNocodeFormWidget, ad as DateFormat, ae as renderUtils, af as BindCmpStyleEnum, ag as DecimalDisplayMode, ah as NCB_PROVIDE, ai as normalizeRefLoaderResult, aj as refUtils, ak as getParseRuleInfo, al as getParseRuleValue, am as useCurrentPageFormState, an as RangeValidateMode, ao as RenderModeEnum, ap as EFieldBizTypeEnum, aq as FormulaRuleFieldKeyEnum, ar as formulaRuleFieldDict, as as useNocodeEmitter } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-ByU7Owiw.js";
2
+ import { P as PaginationFormat, a as PaperWidgeType, B as BwipCodeType, L as LineType, b as PageSizeEnum, O as Orientation, F as FIELD_TYPE, c as FIELD_TYPE_TRACE, d as FIELD_TYPE_BUSINESS, s as src, C as CreateType, e as ComponentTypeEnum, p as parse, f as estraverse, S as Syntax, g as SubTableType, h as CellType, i as api, j as FieldTypeToJs, r as requireEstraverse, k as commonjsGlobal, l as getDefaultExportFromCjs, m as PaperWidgeValueType, u as useCalculateFormula, o as onlineFormMasterModelTypeEnum, n as FIELD_TYPE_WAREHOUSE, U as UniqueConstraintType, q as FieldDefaultValueTypeEnum, t as FormTypeEnum, v as mitt, w as LabelPosition, x as BooleanShowMode, y as SignatureNumberTypeEnum, z as SignatureTimeTypeEnum, A as SignShowTypeEnum, D as SignatureTypeEnum, _ as _export_sfc, E as PlatformEnum, G as FieldIconMap, H as CellWidgetViewState, I as DiagonalDirection, W as WidgetImageSizeMode, J as LineDirection, T as TimeDiffFormat, K as DiagonalVertex, M as resolveDiagonalVertex, V as ViewTypeEnum, N as EmptySymbol, Q as ASSIGNMENTSTRATEGY_ENUM, R as Dependency_ENUM, X as ExpressionModeEnum, Y as ExpressionTabEnum, Z as ReturnTypeEnum, $ as ImageDisplayModeEnum, a0 as PaperSizeMap, a1 as EntityModelCategoryEnum, a2 as CheckDsTypeEnum, a3 as DeviceLink, a4 as DeviceParamsTypeTitle, a5 as AITooltips, a6 as DenoiseMethodOptions, a7 as BinarizeMethodOptions, a8 as ParamModelTypeEnum, a9 as JoinModelTypeEum, aa as sqlUtils, ab as useWidgetStaticAttrs, ac as setSelectValidatorId, ad as setSelectAnnotationId, ae as useNocodeFormWidget, af as DateFormat, ag as renderUtils, ah as BindCmpStyleEnum, ai as DecimalDisplayMode, aj as NCB_PROVIDE, ak as normalizeRefLoaderResult, al as refUtils, am as getParseRuleInfo, an as getParseRuleValue, ao as useCurrentPageFormState, ap as RangeValidateMode, aq as RenderModeEnum, ar as EFieldBizTypeEnum, as as FormulaRuleFieldKeyEnum, at as formulaRuleFieldDict, au as useNocodeEmitter } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BfGYCqH5.js";
3
3
  import { range, cloneDeep, get as get$3, merge, isEmpty, zip, pick, debounce, omit, has, isNil, times, last, mapValues, set as set$2, hasIn, isEqual } from "lodash-es";
4
4
  import dayjs from "dayjs";
5
5
  import * as Antd from "ant-design-vue";
6
6
  import { message, Modal, Empty, InputSearch, Cascader, ConfigProvider, Tooltip as Tooltip$1, DatePicker, TreeSelect, CheckboxGroup, Checkbox, Radio, Select, Input, Textarea, AutoComplete, RadioGroup, TimePicker } from "ant-design-vue";
7
- import { u as useOnlineFormTransformField2Component, B as BorderTD, a as useFormTmplConfig, D as DeviceLinkTmplUtil, I as InstanceStatusValues, b as useStyles, c as useDependency, d as useValidator, M as MaterialConsumptionPatternEnum, _ as _sfc_main$4s, e as DocumentPaper, f as DynamicTableAction } from "./dynamic-table-action-KwzaoPBC.js";
7
+ import { u as useOnlineFormTransformField2Component, B as BorderTD, a as useFormTmplConfig, D as DeviceLinkTmplUtil, I as InstanceStatusValues, b as useStyles, c as useDependency, d as useValidator, M as MaterialConsumptionPatternEnum, _ as _sfc_main$4s, e as DocumentPaper, f as DynamicTableAction } from "./dynamic-table-action-CbHoY76E.js";
8
8
  import { u as useModal, a as useNamespace } from "./use-namespace-qtLS8nEh.js";
9
- import { S as SEARCH_SEVICE, I as Icon$2, w as warning, u as useInsertStyles, s as svgBaseProps, C as CloseOutlined, E as EmptyImg$2, _ as _sfc_main$4r, a as SignatureTypeEnum$1 } from "./version-select-CeQP0Bne.js";
10
- import { u as useWebUpload, i as initWebPaasUploadApis, d as defaultWindow, a as useEventListener, b as unrefElement, M as ModalWrapper, F as FormFieldSelect, r as require$$0, U as Uploader, c as useWindowSize, o as onClickOutside$1, A as AddRuleBtn, e as initWebNocodeAdapter } from "./index-BYFfjfXo.js";
11
- import { u as useFormModel, a as useThrottleFn, n as noop, i as isIOS } from "./mb-render-Bh6EegbE.js";
9
+ import { S as SEARCH_SEVICE, I as Icon$2, w as warning, u as useInsertStyles, s as svgBaseProps, C as CloseOutlined, E as EmptyImg$2, _ as _sfc_main$4r, a as SignatureTypeEnum$1 } from "./version-select-CXWtI4W-.js";
10
+ import { u as useWebUpload, i as initWebPaasUploadApis, d as defaultWindow, a as useEventListener, b as unrefElement, M as ModalWrapper, F as FormFieldSelect, r as require$$0, U as Uploader, c as useWindowSize, o as onClickOutside$1, A as AddRuleBtn, e as initWebNocodeAdapter } from "./index-Dacbq4L4.js";
11
+ import { u as useFormModel, a as useThrottleFn, n as noop, i as isIOS } from "./mb-render-JGHghp5L.js";
12
12
  import { useRoute } from "vue-router";
13
13
  var ContextMenu$1 = /* @__PURE__ */ ((ContextMenu2) => {
14
14
  ContextMenu2[ContextMenu2["InsertRowBefore"] = 0] = "InsertRowBefore";
@@ -819,7 +819,7 @@ const FieldTypeLabels = Object.entries(FIELD_TYPE_LABEL_MAP);
819
819
  const TRACE_FIELDS = Object.values(FIELD_TYPE_TRACE);
820
820
  const BUSINESS_FIELDS = Object.values(FIELD_TYPE_BUSINESS);
821
821
  async function createWorkbook() {
822
- const ExcelJs = (await import("./exceljs.min-Dy4OavkS.js").then((n) => n.e)).default;
822
+ const ExcelJs = (await import("./exceljs.min-D-mqoZsC.js").then((n) => n.e)).default;
823
823
  return new ExcelJs.Workbook();
824
824
  }
825
825
  class XlsxParser {
@@ -1106,37 +1106,37 @@ class XlsxParser {
1106
1106
  }
1107
1107
  function asyncImportClassModules() {
1108
1108
  const modules = /* @__PURE__ */ Object.assign({
1109
- "./_field_/datepicker/index.ts": () => import("./index-Jz0_ApK0.js").then((m) => m["default"]),
1110
- "./_field_/datetimepicker/index.ts": () => import("./index-dECIkP6q.js").then((m) => m["default"]),
1111
- "./_field_/department/index.ts": () => import("./index-Cblyq6yH.js").then((m) => m["default"]),
1112
- "./_field_/enum-select/index.ts": () => import("./index-ChFaMPeg.js").then((m) => m["default"]),
1113
- "./_field_/input/index.ts": () => import("./index-Dvp79b5b.js").then((m) => m["default"]),
1114
- "./_field_/inputdouble/index.ts": () => import("./index-DVaUctcz.js").then((m) => m["default"]),
1115
- "./_field_/inputnumber/index.ts": () => import("./index-D8uy8whi.js").then((m) => m["default"]),
1116
- "./_field_/select/index.ts": () => import("./index-iGA3l7nd.js").then((m) => m["default"]),
1117
- "./_field_/sign/index.ts": () => import("./index-C9uva5U9.js").then((m) => m["default"]),
1118
- "./_field_/switch/index.ts": () => import("./index-B_bGf5j3.js").then((m) => m["default"]),
1119
- "./_field_/textarea/index.ts": () => import("./index-DU3SF4eg.js").then((m) => m["default"]),
1120
- "./_field_/timepicker/index.ts": () => import("./index-DegtNz07.js").then((m) => m["default"]),
1121
- "./_field_/trace/index.ts": () => import("./index-Cqh9EW_d.js").then((m) => m["default"]),
1122
- "./_field_/upload-file/index.ts": () => import("./index-BocrGDq2.js").then((m) => m["default"]),
1123
- "./_field_/upload-image/index.ts": () => import("./index-CquVE9ii.js").then((m) => m["default"]),
1124
- "./_field_/userpicker/index.ts": () => import("./index-pMF19I7H.js").then((m) => m["default"]),
1125
- "./_widget_/barcode/index.ts": () => import("./index-BYnhPyxm.js").then((m) => m["default"]),
1126
- "./_widget_/combine-fields/index.ts": () => import("./index-4aWfyi4S.js").then((m) => m["default"]),
1127
- "./_widget_/diagonal/index.ts": () => import("./index-RY064UmV.js").then((m) => m["default"]),
1128
- "./_widget_/dyn-value/index.ts": () => import("./index-CVsM5Bam.js").then((m) => m["default"]),
1129
- "./_widget_/image/index.ts": () => import("./index-Ol6_R1tg.js").then((m) => m["default"]),
1130
- "./_widget_/line/index.ts": () => import("./index-BCRANZ6N.js").then((m) => m["default"]),
1131
- "./_widget_/power/index.ts": () => import("./index-B2JfWmQ5.js").then((m) => m["default"]),
1132
- "./_widget_/qrcode/index.ts": () => import("./index-DKR79OBc.js").then((m) => m["default"]),
1133
- "./_widget_/ro/index.ts": () => import("./index-BpacgAuY.js").then((m) => m["default"]),
1134
- "./_widget_/serialnumber/index.ts": () => import("./index-BgJenclY.js").then((m) => m["default"]),
1135
- "./_widget_/sub-table/index.ts": () => import("./index-DpFPYL8b.js").then((m) => m["default"]),
1136
- "./_widget_/timediff/index.ts": () => import("./index-DxgKf-wy.js").then((m) => m["default"]),
1137
- "./paper/index.ts": () => import("./index-DNHA-joo.js").then((m) => m["default"]),
1138
- "./td/index.ts": () => import("./index-CAp9OIUg.js").then((m) => m["default"]),
1139
- "./tr/index.ts": () => import("./index-wmbtcxzT.js").then((m) => m["default"])
1109
+ "./_field_/datepicker/index.ts": () => import("./index-J1Nf5wgV.js").then((m) => m["default"]),
1110
+ "./_field_/datetimepicker/index.ts": () => import("./index-OK49_noi.js").then((m) => m["default"]),
1111
+ "./_field_/department/index.ts": () => import("./index-BZfGHVOt.js").then((m) => m["default"]),
1112
+ "./_field_/enum-select/index.ts": () => import("./index-GGZRPnYe.js").then((m) => m["default"]),
1113
+ "./_field_/input/index.ts": () => import("./index-D7DRfQTh.js").then((m) => m["default"]),
1114
+ "./_field_/inputdouble/index.ts": () => import("./index-Bsabb65u.js").then((m) => m["default"]),
1115
+ "./_field_/inputnumber/index.ts": () => import("./index-DFGBKBau.js").then((m) => m["default"]),
1116
+ "./_field_/select/index.ts": () => import("./index-UeWlvtDf.js").then((m) => m["default"]),
1117
+ "./_field_/sign/index.ts": () => import("./index-8-tnvhRC.js").then((m) => m["default"]),
1118
+ "./_field_/switch/index.ts": () => import("./index-C7EF3bU6.js").then((m) => m["default"]),
1119
+ "./_field_/textarea/index.ts": () => import("./index-yclgXrqJ.js").then((m) => m["default"]),
1120
+ "./_field_/timepicker/index.ts": () => import("./index-DXtJ-139.js").then((m) => m["default"]),
1121
+ "./_field_/trace/index.ts": () => import("./index-DSSHWwFD.js").then((m) => m["default"]),
1122
+ "./_field_/upload-file/index.ts": () => import("./index-xg8BpbDL.js").then((m) => m["default"]),
1123
+ "./_field_/upload-image/index.ts": () => import("./index-DgBJVPsK.js").then((m) => m["default"]),
1124
+ "./_field_/userpicker/index.ts": () => import("./index-D3H3AjqQ.js").then((m) => m["default"]),
1125
+ "./_widget_/barcode/index.ts": () => import("./index-CgDvaY3D.js").then((m) => m["default"]),
1126
+ "./_widget_/combine-fields/index.ts": () => import("./index-CpsQzaA9.js").then((m) => m["default"]),
1127
+ "./_widget_/diagonal/index.ts": () => import("./index-D6YzCpCw.js").then((m) => m["default"]),
1128
+ "./_widget_/dyn-value/index.ts": () => import("./index-BC-Zhsm-.js").then((m) => m["default"]),
1129
+ "./_widget_/image/index.ts": () => import("./index-l3TfFIxY.js").then((m) => m["default"]),
1130
+ "./_widget_/line/index.ts": () => import("./index-CwwHZhmI.js").then((m) => m["default"]),
1131
+ "./_widget_/power/index.ts": () => import("./index-D51-PvAq.js").then((m) => m["default"]),
1132
+ "./_widget_/qrcode/index.ts": () => import("./index-B2Rk7ex6.js").then((m) => m["default"]),
1133
+ "./_widget_/ro/index.ts": () => import("./index-CRcKdyyr.js").then((m) => m["default"]),
1134
+ "./_widget_/serialnumber/index.ts": () => import("./index-Dx6OiqW2.js").then((m) => m["default"]),
1135
+ "./_widget_/sub-table/index.ts": () => import("./index-E-flWZFi.js").then((m) => m["default"]),
1136
+ "./_widget_/timediff/index.ts": () => import("./index-DsBusJ7S.js").then((m) => m["default"]),
1137
+ "./paper/index.ts": () => import("./index-Dku5Txlf.js").then((m) => m["default"]),
1138
+ "./td/index.ts": () => import("./index-CTEoW7C9.js").then((m) => m["default"]),
1139
+ "./tr/index.ts": () => import("./index-H9YwRWK1.js").then((m) => m["default"])
1140
1140
  });
1141
1141
  return modules;
1142
1142
  }
@@ -9183,6 +9183,21 @@ const _sfc_main$4p = /* @__PURE__ */ defineComponent({
9183
9183
  type: { default: SubTableType.DEFAULT }
9184
9184
  },
9185
9185
  setup(__props) {
9186
+ const BUSINESS_REF_MODEL_TYPES = /* @__PURE__ */ new Set([
9187
+ onlineFormMasterModelTypeEnum.WAREHOUSE_IN_OUT,
9188
+ onlineFormMasterModelTypeEnum.MATERIAL_CONSUME,
9189
+ onlineFormMasterModelTypeEnum.MATERIAL_BALANCE,
9190
+ onlineFormMasterModelTypeEnum.STOCKTAKE,
9191
+ onlineFormMasterModelTypeEnum.ALLOCATE,
9192
+ onlineFormMasterModelTypeEnum.STERILIZE_BATCH,
9193
+ onlineFormMasterModelTypeEnum.PRETREATMENT_LIST
9194
+ ]);
9195
+ const DATA_TABLE_TYPES = /* @__PURE__ */ new Set([
9196
+ SubTableType.DEFAULT,
9197
+ SubTableType.FIXED,
9198
+ SubTableType._2D,
9199
+ SubTableType.CHECK
9200
+ ]);
9186
9201
  const isInEDHR = computed(() => window.NocodeAdapter.stores?.appInfo?.value.suiteKey === "eDHR");
9187
9202
  const props2 = __props;
9188
9203
  const { subTableFieldModel: subTableFieldModel2, masterModel: masterModel2 } = useModelFields();
@@ -9217,6 +9232,13 @@ const _sfc_main$4p = /* @__PURE__ */ defineComponent({
9217
9232
  if (props2.type === SubTableType.WAREHOUSE_IN_OUT) {
9218
9233
  return item.field.refModelType === onlineFormMasterModelTypeEnum.WAREHOUSE_IN_OUT;
9219
9234
  }
9235
+ if (DATA_TABLE_TYPES.has(props2.type)) {
9236
+ const refType = item.field.refModelType;
9237
+ if (props2.type === SubTableType.CHECK && refType === onlineFormMasterModelTypeEnum.INSPECTION) {
9238
+ return true;
9239
+ }
9240
+ return !refType || !BUSINESS_REF_MODEL_TYPES.has(refType);
9241
+ }
9220
9242
  return true;
9221
9243
  });
9222
9244
  });
@@ -9770,6 +9792,7 @@ const config$2 = {
9770
9792
  enableFormat: true,
9771
9793
  autofillRules: [],
9772
9794
  enableAutofill: false,
9795
+ enableAssocFilter: false,
9773
9796
  displayFields: [],
9774
9797
  searchable: false,
9775
9798
  searchField: []
@@ -9816,7 +9839,7 @@ function asyncImportWidgetConfig() {
9816
9839
  }
9817
9840
  const widgetConfigMap = asyncImportWidgetConfig();
9818
9841
  function asyncImportWidgetDesign$1() {
9819
- const modules = /* @__PURE__ */ Object.assign({ "./agg/agg-design.vue": () => import("./agg-design-CLSOm6QJ.js"), "./boolean/boolean-design.vue": () => import("./boolean-design-Bk3jIc2m.js"), "./cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "./date-time/date-time-design.vue": () => import("./date-time-design-CG6fhsBd.js"), "./decimal/decimal-design.vue": () => import("./decimal-design-Dg2PWB7J.js"), "./double/double-design.vue": () => import("./double-design-Dkzgoo0g.js"), "./enum/enum-design.vue": () => import("./enum-design-D_hYB8q2.js"), "./expression/expression-design.vue": () => import("./expression-design-DH37JCnd.js"), "./file/file-design.vue": () => import("./file-design-hV82bwcT.js"), "./image/image-design.vue": () => import("./image-design-B3FASJvR.js"), "./integer/integer-design.vue": () => import("./integer-design-_-oIGMZi.js"), "./org/org-design.vue": () => import("./org-design-DEibx7uD.js"), "./ref/ref-design.vue": () => import("./ref-design-C7LbDVQz.js"), "./signature/signature-design.vue": () => import("./signature-design-DyLTKEwS.js"), "./text/text-design.vue": () => import("./text-design-Di-2lpQC.js"), "./trace/trace-design.vue": () => import("./trace-design-B2tffMF2.js"), "./user/user-design.vue": () => import("./user-design-BRIV937X.js") });
9842
+ const modules = /* @__PURE__ */ Object.assign({ "./agg/agg-design.vue": () => import("./agg-design-yDLZkVkR.js"), "./boolean/boolean-design.vue": () => import("./boolean-design-DQvGDcd9.js"), "./cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "./date-time/date-time-design.vue": () => import("./date-time-design-Dv4dW-Iy.js"), "./decimal/decimal-design.vue": () => import("./decimal-design-C-GvHZPx.js"), "./double/double-design.vue": () => import("./double-design-DAz8wmRS.js"), "./enum/enum-design.vue": () => import("./enum-design-DVoXOTIU.js"), "./expression/expression-design.vue": () => import("./expression-design-D7PiPYQJ.js"), "./file/file-design.vue": () => import("./file-design-CeAmaBow.js"), "./image/image-design.vue": () => import("./image-design-CcHGCTJH.js"), "./integer/integer-design.vue": () => import("./integer-design-DJ4aKAz0.js"), "./org/org-design.vue": () => import("./org-design-DEibx7uD.js"), "./ref/ref-design.vue": () => import("./ref-design-C7LbDVQz.js"), "./signature/signature-design.vue": () => import("./signature-design-DT5T5nus.js"), "./text/text-design.vue": () => import("./text-design-Dz8pIESR.js"), "./trace/trace-design.vue": () => import("./trace-design-DNVZ_y9D.js"), "./user/user-design.vue": () => import("./user-design-BRIV937X.js") });
9820
9843
  const widgetDesignMap = Object.keys(modules).reduce((map2, path) => {
9821
9844
  const mKey = path.match(/\/([a-z-]+)-design\.vue$/)?.[1];
9822
9845
  if (mKey) {
@@ -9827,7 +9850,7 @@ function asyncImportWidgetDesign$1() {
9827
9850
  return widgetDesignMap;
9828
9851
  }
9829
9852
  function asyncImportWidgetProps() {
9830
- const modules = /* @__PURE__ */ Object.assign({ "./agg/agg-props.vue": () => import("./agg-props-4nnDqWtf.js"), "./boolean/boolean-props.vue": () => import("./boolean-props-D1C7P7oX.js"), "./cell-widget-props.vue": () => Promise.resolve().then(() => cellWidgetProps), "./date-time/date-time-props.vue": () => import("./date-time-props-DGa4XIFD.js"), "./decimal/decimal-props.vue": () => import("./decimal-props-BUduwEu5.js"), "./double/double-props.vue": () => import("./double-props-DwI5z-Mz.js"), "./enum/enum-props.vue": () => import("./enum-props-SHpVl7is.js"), "./expression/expression-props.vue": () => import("./expression-props-D4aZ2FzY.js"), "./file/file-props.vue": () => import("./file-props-BR0xOn8f.js"), "./image/image-props.vue": () => import("./image-props-DZ0lHvNN.js"), "./integer/integer-props.vue": () => import("./integer-props-CbhqGTWT.js"), "./org/org-props.vue": () => import("./org-props-B_ED1XJd.js"), "./ref/ref-props.vue": () => import("./ref-props-CCwA0E2w.js"), "./signature/signature-props.vue": () => import("./signature-props-CXwqrh0H.js"), "./text/text-props.vue": () => import("./text-props-YXtd9DCt.js"), "./trace/trace-props.vue": () => import("./trace-props-CWTXFYZ9.js"), "./user/user-props.vue": () => import("./user-props-hR1saiG7.js") });
9853
+ const modules = /* @__PURE__ */ Object.assign({ "./agg/agg-props.vue": () => import("./agg-props-DrXyaNCT.js"), "./boolean/boolean-props.vue": () => import("./boolean-props-BPxPHLqI.js"), "./cell-widget-props.vue": () => Promise.resolve().then(() => cellWidgetProps), "./date-time/date-time-props.vue": () => import("./date-time-props-Cs4GVKqC.js"), "./decimal/decimal-props.vue": () => import("./decimal-props-Vv8GsEHC.js"), "./double/double-props.vue": () => import("./double-props-e76nS4qi.js"), "./enum/enum-props.vue": () => import("./enum-props-DgsIc2Fz.js"), "./expression/expression-props.vue": () => import("./expression-props-DDcg6alT.js"), "./file/file-props.vue": () => import("./file-props-e06WxwTc.js"), "./image/image-props.vue": () => import("./image-props-Co5Kp-ZH.js"), "./integer/integer-props.vue": () => import("./integer-props-CaSOySHa.js"), "./org/org-props.vue": () => import("./org-props-CRAmwHlJ.js"), "./ref/ref-props.vue": () => import("./ref-props-M99PRlsI.js"), "./signature/signature-props.vue": () => import("./signature-props-cW9R4qcY.js"), "./text/text-props.vue": () => import("./text-props-BxirdX2V.js"), "./trace/trace-props.vue": () => import("./trace-props-LPvWrrti.js"), "./user/user-props.vue": () => import("./user-props-DdTpHX3B.js") });
9831
9854
  const widgetPropsMap = Object.keys(modules).reduce((map2, path) => {
9832
9855
  const mKey = path.match(/\/([a-z-]+)-props\.vue$/)?.[1];
9833
9856
  if (mKey) {
@@ -9839,7 +9862,7 @@ function asyncImportWidgetProps() {
9839
9862
  return widgetPropsMap;
9840
9863
  }
9841
9864
  function asyncImportWidgetStyle() {
9842
- const modules = /* @__PURE__ */ Object.assign({ "./agg/agg-style.vue": () => import("./agg-style-FHSkeH5u.js"), "./boolean/boolean-style.vue": () => import("./boolean-style-CWmep9-Y.js"), "./cell-widget-style.vue": () => Promise.resolve().then(() => cellWidgetStyle), "./date-time/date-time-style.vue": () => import("./date-time-style-C5xs_HQX.js"), "./decimal/decimal-style.vue": () => import("./decimal-style-CW6QyMh0.js"), "./double/double-style.vue": () => import("./double-style-B09n2Oup.js"), "./enum/enum-style.vue": () => import("./enum-style-zTZKj6Li.js"), "./expression/expression-style.vue": () => import("./expression-style-Bj0tEmqJ.js"), "./file/file-style.vue": () => import("./file-style-CPXRGFCR.js"), "./image/image-style.vue": () => import("./image-style-D3jSU46p.js"), "./integer/integer-style.vue": () => import("./integer-style-CRDDq2e1.js"), "./org/org-style.vue": () => import("./org-style-P7mL2u1-.js"), "./ref/ref-style.vue": () => import("./ref-style-C3Qy3L2V.js"), "./signature/signature-style.vue": () => import("./signature-style-ibNQSAPQ.js"), "./text/text-style.vue": () => import("./text-style-BtclwHUQ.js"), "./trace/trace-style.vue": () => import("./trace-style-AmSVnHXF.js"), "./user/user-style.vue": () => import("./user-style-BsMfhFHo.js") });
9865
+ const modules = /* @__PURE__ */ Object.assign({ "./agg/agg-style.vue": () => import("./agg-style-D_6r9Myg.js"), "./boolean/boolean-style.vue": () => import("./boolean-style-BSc1-meP.js"), "./cell-widget-style.vue": () => Promise.resolve().then(() => cellWidgetStyle), "./date-time/date-time-style.vue": () => import("./date-time-style-iSIC_SNA.js"), "./decimal/decimal-style.vue": () => import("./decimal-style-CY-zOSpD.js"), "./double/double-style.vue": () => import("./double-style-kWIo_xYy.js"), "./enum/enum-style.vue": () => import("./enum-style-C4r86NqC.js"), "./expression/expression-style.vue": () => import("./expression-style-C0GgXqbp.js"), "./file/file-style.vue": () => import("./file-style-FigMgXwH.js"), "./image/image-style.vue": () => import("./image-style-D6I5jBAk.js"), "./integer/integer-style.vue": () => import("./integer-style-CCLqQ4ys.js"), "./org/org-style.vue": () => import("./org-style-BWj_AEnP.js"), "./ref/ref-style.vue": () => import("./ref-style-BCeprSYg.js"), "./signature/signature-style.vue": () => import("./signature-style-XPxgyfzG.js"), "./text/text-style.vue": () => import("./text-style-MPmJRVRg.js"), "./trace/trace-style.vue": () => import("./trace-style-DnaicSRA.js"), "./user/user-style.vue": () => import("./user-style-6SWgJi8d.js") });
9843
9866
  const widgetStyleMap = Object.keys(modules).reduce((map2, path) => {
9844
9867
  const mKey = path.match(/\/([a-z-]+)-style\.vue$/)?.[1];
9845
9868
  if (mKey) {
@@ -11521,10 +11544,24 @@ function useSpreadSheet() {
11521
11544
  t2 = y;
11522
11545
  l = x;
11523
11546
  }
11524
- const fieldWidget = getFieldWidget2(data);
11547
+ const cellInfo = judgeCellInfo(l, t2);
11548
+ const bindField = { ...data };
11549
+ const subTable = cellInfo?.dynamicTable || cellInfo?.fixedTable;
11550
+ if (subTable) {
11551
+ if (!bindField.subFieldKey && cellInfo?.refFieldKey) {
11552
+ bindField.subFieldKey = cellInfo.refFieldKey;
11553
+ }
11554
+ if (!bindField.subModelKey && cellInfo?.modelKey !== doc.value.modelKey) {
11555
+ bindField.subModelKey = cellInfo.modelKey;
11556
+ }
11557
+ if (!bindField.subModelType && subTable.type) {
11558
+ bindField.subModelType = subTable.type;
11559
+ }
11560
+ }
11561
+ const fieldWidget = getFieldWidget2(bindField);
11525
11562
  const content = {
11526
11563
  type: CellType.Field,
11527
- fieldMeta: data,
11564
+ fieldMeta: bindField,
11528
11565
  fieldWidget
11529
11566
  };
11530
11567
  const cell = paper$3.value.cells[t2 - 1][l - 1];
@@ -11869,6 +11906,10 @@ function useSpreadSheet() {
11869
11906
  if (currentCellInfo.modelKey !== doc.value.modelKey) {
11870
11907
  bindField.subFieldKey = currentCellInfo.refFieldKey;
11871
11908
  bindField.subModelKey = currentCellInfo.modelKey;
11909
+ const subTable = currentCellInfo.dynamicTable || currentCellInfo.fixedTable;
11910
+ if (subTable?.type) {
11911
+ bindField.subModelType = subTable.type;
11912
+ }
11872
11913
  }
11873
11914
  addField(field);
11874
11915
  bindFieldToCell(bindField, opts.x, opts.y);
@@ -13019,68 +13060,86 @@ const __vite_glob_3_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
13019
13060
  }, Symbol.toStringTag, { value: "Module" }));
13020
13061
  const _hoisted_1$2u = { class: "column-name column-name--top" };
13021
13062
  const _hoisted_2$1G = { class: "column-name column-name--bottom" };
13022
- const _hoisted_3$1m = { class: "column-name column-name--middle" };
13063
+ const _hoisted_3$1m = ["x1", "y1", "x2", "y2"];
13064
+ const _hoisted_4$_ = {
13065
+ key: 0,
13066
+ class: "column-name column-name--middle"
13067
+ };
13023
13068
  const _sfc_main$4g = /* @__PURE__ */ defineComponent({
13024
13069
  __name: "diagonal",
13025
13070
  props: {
13026
13071
  value: { default: () => [] },
13027
13072
  size: { default: 2 },
13028
- direction: { default: DiagonalDirection.Forward }
13073
+ direction: { default: DiagonalDirection.Forward },
13074
+ vertex: {}
13029
13075
  },
13030
13076
  setup(__props) {
13031
13077
  const ns = useNamespace("diagonal");
13078
+ const props2 = __props;
13079
+ const rootClass = computed(() => {
13080
+ if (props2.size === 2) {
13081
+ return [ns.b(), ns.m(props2.direction)];
13082
+ }
13083
+ return [ns.b(), ns.m(props2.vertex)];
13084
+ });
13085
+ const lines = computed(() => {
13086
+ if (props2.size === 2) {
13087
+ return props2.direction === DiagonalDirection.Backward ? [{ x1: "100%", y1: "0", x2: "0", y2: "100%" }] : [{ x1: "0", y1: "0", x2: "100%", y2: "100%" }];
13088
+ }
13089
+ switch (props2.vertex) {
13090
+ case DiagonalVertex.TopRight:
13091
+ return [
13092
+ { x1: "100%", y1: "0", x2: "0", y2: "40%" },
13093
+ { x1: "100%", y1: "0", x2: "60%", y2: "100%" }
13094
+ ];
13095
+ case DiagonalVertex.BottomLeft:
13096
+ return [
13097
+ { x1: "0", y1: "100%", x2: "100%", y2: "60%" },
13098
+ { x1: "0", y1: "100%", x2: "40%", y2: "0" }
13099
+ ];
13100
+ case DiagonalVertex.BottomRight:
13101
+ return [
13102
+ { x1: "40%", y1: "0", x2: "100%", y2: "100%" },
13103
+ { x1: "0", y1: "40%", x2: "100%", y2: "100%" }
13104
+ ];
13105
+ case DiagonalVertex.TopLeft:
13106
+ default:
13107
+ return [
13108
+ { x1: "0", y1: "0", x2: "100%", y2: "40%" },
13109
+ { x1: "0", y1: "0", x2: "40%", y2: "100%" }
13110
+ ];
13111
+ }
13112
+ });
13032
13113
  return (_ctx, _cache) => {
13033
13114
  return openBlock(), createElementBlock("div", {
13034
- class: normalizeClass(["absolute top-0px left-0px h-full w-full", [unref(ns).b(), unref(ns).m(__props.direction)]])
13115
+ class: normalizeClass(["absolute top-0px left-0px h-full w-full", rootClass.value])
13035
13116
  }, [
13036
13117
  createElementVNode("span", _hoisted_1$2u, toDisplayString(__props.value[0]), 1),
13037
13118
  createElementVNode("span", _hoisted_2$1G, toDisplayString(__props.value[2]), 1),
13038
- __props.size === 2 ? (openBlock(), createElementBlock("svg", {
13039
- key: 0,
13119
+ (openBlock(), createElementBlock("svg", {
13040
13120
  class: normalizeClass(unref(ns).e("img")),
13041
13121
  xmlns: "http://www.w3.org/2000/svg",
13042
13122
  width: "100%",
13043
13123
  height: "100%"
13044
- }, [..._cache[0] || (_cache[0] = [
13045
- createElementVNode("line", {
13046
- x1: "0",
13047
- y1: "0",
13048
- x2: "100%",
13049
- y2: "100%",
13050
- stroke: "black",
13051
- "stroke-width": "1"
13052
- }, null, -1)
13053
- ])], 2)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
13054
- (openBlock(), createElementBlock("svg", {
13055
- class: normalizeClass(unref(ns).e("img")),
13056
- xmlns: "http://www.w3.org/2000/svg",
13057
- width: "100%",
13058
- height: "100%"
13059
- }, [..._cache[1] || (_cache[1] = [
13060
- createElementVNode("line", {
13061
- x1: "40%",
13062
- y1: "0",
13063
- x2: "100%",
13064
- y2: "100%",
13065
- stroke: "black",
13066
- "stroke-width": "1"
13067
- }, null, -1),
13068
- createElementVNode("line", {
13069
- x1: "0",
13070
- y1: "40%",
13071
- x2: "100%",
13072
- y2: "100%",
13124
+ }, [
13125
+ (openBlock(true), createElementBlock(Fragment, null, renderList(lines.value, (line, index2) => {
13126
+ return openBlock(), createElementBlock("line", {
13127
+ key: index2,
13128
+ x1: line.x1,
13129
+ y1: line.y1,
13130
+ x2: line.x2,
13131
+ y2: line.y2,
13073
13132
  stroke: "black",
13074
13133
  "stroke-width": "1"
13075
- }, null, -1)
13076
- ])], 2)),
13077
- createElementVNode("span", _hoisted_3$1m, toDisplayString(__props.value[1]), 1)
13078
- ], 64))
13134
+ }, null, 8, _hoisted_3$1m);
13135
+ }), 128))
13136
+ ], 2)),
13137
+ __props.size === 3 ? (openBlock(), createElementBlock("span", _hoisted_4$_, toDisplayString(__props.value[1]), 1)) : createCommentVNode("", true)
13079
13138
  ], 2);
13080
13139
  };
13081
13140
  }
13082
13141
  });
13083
- const Diagonal = /* @__PURE__ */ _export_sfc(_sfc_main$4g, [["__scopeId", "data-v-055fbfcb"]]);
13142
+ const Diagonal = /* @__PURE__ */ _export_sfc(_sfc_main$4g, [["__scopeId", "data-v-07498761"]]);
13084
13143
  const _sfc_main$4f = /* @__PURE__ */ defineComponent({
13085
13144
  __name: "diagonal-render",
13086
13145
  props: {
@@ -13105,12 +13164,21 @@ const _sfc_main$4f = /* @__PURE__ */ defineComponent({
13105
13164
  const names = computed(() => {
13106
13165
  return [0, 1, 2].map((i) => getNameByIndex(i));
13107
13166
  });
13167
+ const resolvedVertex = computed(
13168
+ () => resolveDiagonalVertex(
13169
+ props2.widget.size,
13170
+ props2.widget.direction,
13171
+ props2.widget.vertex,
13172
+ "vertex" in props2.widget
13173
+ )
13174
+ );
13108
13175
  return (_ctx, _cache) => {
13109
13176
  return openBlock(), createBlock(Diagonal, {
13110
13177
  size: __props.widget.size,
13111
13178
  direction: __props.widget.direction,
13179
+ vertex: resolvedVertex.value,
13112
13180
  value: names.value
13113
- }, null, 8, ["size", "direction", "value"]);
13181
+ }, null, 8, ["size", "direction", "vertex", "value"]);
13114
13182
  };
13115
13183
  }
13116
13184
  });
@@ -13676,7 +13744,7 @@ function asyncImportWidgetConfigList() {
13676
13744
  return widgetConfigList;
13677
13745
  }
13678
13746
  function asyncImportWidgetDesign() {
13679
- const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/agg/agg-design.vue": () => import("./agg-design-CLSOm6QJ.js"), "../__cell_widgets__/boolean/boolean-design.vue": () => import("./boolean-design-Bk3jIc2m.js"), "../__cell_widgets__/cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "../__cell_widgets__/date-time/date-time-design.vue": () => import("./date-time-design-CG6fhsBd.js"), "../__cell_widgets__/decimal/decimal-design.vue": () => import("./decimal-design-Dg2PWB7J.js"), "../__cell_widgets__/double/double-design.vue": () => import("./double-design-Dkzgoo0g.js"), "../__cell_widgets__/enum/enum-design.vue": () => import("./enum-design-D_hYB8q2.js"), "../__cell_widgets__/expression/expression-design.vue": () => import("./expression-design-DH37JCnd.js"), "../__cell_widgets__/file/file-design.vue": () => import("./file-design-hV82bwcT.js"), "../__cell_widgets__/image/image-design.vue": () => import("./image-design-B3FASJvR.js"), "../__cell_widgets__/integer/integer-design.vue": () => import("./integer-design-_-oIGMZi.js"), "../__cell_widgets__/org/org-design.vue": () => import("./org-design-DEibx7uD.js"), "../__cell_widgets__/ref/ref-design.vue": () => import("./ref-design-C7LbDVQz.js"), "../__cell_widgets__/signature/signature-design.vue": () => import("./signature-design-DyLTKEwS.js"), "../__cell_widgets__/text/text-design.vue": () => import("./text-design-Di-2lpQC.js"), "../__cell_widgets__/trace/trace-design.vue": () => import("./trace-design-B2tffMF2.js"), "../__cell_widgets__/user/user-design.vue": () => import("./user-design-BRIV937X.js"), "./barcode/barcode-design.vue": () => import("./barcode-design-XLuURxqD.js"), "./diagonal/diagonal-design.vue": () => import("./diagonal-design-xlveiCza.js"), "./image/image-design.vue": () => import("./image-design-WqYFe8Hz.js"), "./line/line-design.vue": () => Promise.resolve().then(() => lineDesign), "./pagination/pagination-design.vue": () => import("./pagination-design-CC2ZvE5K.js"), "./paper-widget-design.vue": () => import("./paper-widget-design-CvvM0OZ2.js"), "./power/power-design.vue": () => Promise.resolve().then(() => powerDesign), "./qrcode/qrcode-design.vue": () => import("./qrcode-design-C_G8R7Lo.js"), "./rangelimit/rangelimit-design.vue": () => Promise.resolve().then(() => rangelimitDesign), "./serialnumber/serialnumber-design.vue": () => import("./serialnumber-design-qdEzFAi4.js"), "./text/text-design.vue": () => import("./text-design-BzDtceUO.js"), "./timediff/timediff-design.vue": () => import("./timediff-design-DPDNHC4C.js") });
13747
+ const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/agg/agg-design.vue": () => import("./agg-design-yDLZkVkR.js"), "../__cell_widgets__/boolean/boolean-design.vue": () => import("./boolean-design-DQvGDcd9.js"), "../__cell_widgets__/cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "../__cell_widgets__/date-time/date-time-design.vue": () => import("./date-time-design-Dv4dW-Iy.js"), "../__cell_widgets__/decimal/decimal-design.vue": () => import("./decimal-design-C-GvHZPx.js"), "../__cell_widgets__/double/double-design.vue": () => import("./double-design-DAz8wmRS.js"), "../__cell_widgets__/enum/enum-design.vue": () => import("./enum-design-DVoXOTIU.js"), "../__cell_widgets__/expression/expression-design.vue": () => import("./expression-design-D7PiPYQJ.js"), "../__cell_widgets__/file/file-design.vue": () => import("./file-design-CeAmaBow.js"), "../__cell_widgets__/image/image-design.vue": () => import("./image-design-CcHGCTJH.js"), "../__cell_widgets__/integer/integer-design.vue": () => import("./integer-design-DJ4aKAz0.js"), "../__cell_widgets__/org/org-design.vue": () => import("./org-design-DEibx7uD.js"), "../__cell_widgets__/ref/ref-design.vue": () => import("./ref-design-C7LbDVQz.js"), "../__cell_widgets__/signature/signature-design.vue": () => import("./signature-design-DT5T5nus.js"), "../__cell_widgets__/text/text-design.vue": () => import("./text-design-Dz8pIESR.js"), "../__cell_widgets__/trace/trace-design.vue": () => import("./trace-design-DNVZ_y9D.js"), "../__cell_widgets__/user/user-design.vue": () => import("./user-design-BRIV937X.js"), "./barcode/barcode-design.vue": () => import("./barcode-design-D3JH5Afi.js"), "./diagonal/diagonal-design.vue": () => import("./diagonal-design-DS1kXGt1.js"), "./image/image-design.vue": () => import("./image-design-DxKCuSrx.js"), "./line/line-design.vue": () => Promise.resolve().then(() => lineDesign), "./pagination/pagination-design.vue": () => import("./pagination-design-BGUqZKxh.js"), "./paper-widget-design.vue": () => import("./paper-widget-design-CgmZ8LSm.js"), "./power/power-design.vue": () => Promise.resolve().then(() => powerDesign), "./qrcode/qrcode-design.vue": () => import("./qrcode-design-CjN0UWN3.js"), "./rangelimit/rangelimit-design.vue": () => Promise.resolve().then(() => rangelimitDesign), "./serialnumber/serialnumber-design.vue": () => import("./serialnumber-design-Bo13RmJa.js"), "./text/text-design.vue": () => import("./text-design-DIR_98fe.js"), "./timediff/timediff-design.vue": () => import("./timediff-design-Pud7SFpe.js") });
13680
13748
  const widgetDesignMap = Object.keys(modules).reduce((map2, path) => {
13681
13749
  const mKey = path.match(/\/([a-z]+)-design\.vue$/)?.[1];
13682
13750
  if (mKey) {
@@ -15898,7 +15966,7 @@ const _hoisted_3$1i = ["width"];
15898
15966
  const _hoisted_4$X = ["data-y", "height"];
15899
15967
  const _hoisted_5$I = { style: { "position": "relative" } };
15900
15968
  const _hoisted_6$x = ["onMouseenter"];
15901
- const _hoisted_7$l = ["onClick"];
15969
+ const _hoisted_7$m = ["onClick"];
15902
15970
  const _sfc_main$3M = /* @__PURE__ */ defineComponent({
15903
15971
  __name: "table-y",
15904
15972
  setup(__props) {
@@ -15975,7 +16043,7 @@ const _sfc_main$3M = /* @__PURE__ */ defineComponent({
15975
16043
  createElementVNode("i", {
15976
16044
  class: "iconfont icon-tianjia hover-icon",
15977
16045
  onClick: (e) => addRow(e, rowIndex + 1)
15978
- }, null, 8, _hoisted_7$l)
16046
+ }, null, 8, _hoisted_7$m)
15979
16047
  ], 42, _hoisted_6$x)
15980
16048
  ]),
15981
16049
  createElementVNode("td", {
@@ -17221,8 +17289,8 @@ const _hoisted_3$1b = { style: {
17221
17289
  const _hoisted_4$S = { class: "color-picker-middle" };
17222
17290
  const _hoisted_5$E = { style: { "flex": "auto" } };
17223
17291
  const _hoisted_6$v = { class: "color-picker-diamond" };
17224
- const _hoisted_7$k = { class: "color-picker-value" };
17225
- const _hoisted_8$e = { class: "hex" };
17292
+ const _hoisted_7$l = { class: "color-picker-value" };
17293
+ const _hoisted_8$f = { class: "hex" };
17226
17294
  const _hoisted_9$a = ["value"];
17227
17295
  const _hoisted_10$9 = { class: "rgba-r" };
17228
17296
  const _hoisted_11$6 = ["value"];
@@ -17667,8 +17735,8 @@ const _sfc_main$3z = /* @__PURE__ */ defineComponent({
17667
17735
  }, null, 4)
17668
17736
  ])
17669
17737
  ]),
17670
- createElementVNode("div", _hoisted_7$k, [
17671
- createElementVNode("div", _hoisted_8$e, [
17738
+ createElementVNode("div", _hoisted_7$l, [
17739
+ createElementVNode("div", _hoisted_8$f, [
17672
17740
  createElementVNode("label", null, [
17673
17741
  createElementVNode("input", {
17674
17742
  value: colorObj.value.hex8,
@@ -17934,8 +18002,8 @@ const _hoisted_3$1a = { class: "designer__toolbar__left__second" };
17934
18002
  const _hoisted_4$R = { class: "second__top" };
17935
18003
  const _hoisted_5$D = { class: "tool--dropdown" };
17936
18004
  const _hoisted_6$u = { class: "flex items-center text-14px" };
17937
- const _hoisted_7$j = { class: "tool--dropdown" };
17938
- const _hoisted_8$d = { class: "tool--dropdown" };
18005
+ const _hoisted_7$k = { class: "tool--dropdown" };
18006
+ const _hoisted_8$e = { class: "tool--dropdown" };
17939
18007
  const _hoisted_9$9 = { class: "designer__toolbar__left__third" };
17940
18008
  const _hoisted_10$8 = ["onClick"];
17941
18009
  const _hoisted_11$5 = { class: "tool--dropdown tool--dropdown-expand" };
@@ -18290,7 +18358,7 @@ const _sfc_main$3u = /* @__PURE__ */ defineComponent({
18290
18358
  _: 1
18291
18359
  })
18292
18360
  ]),
18293
- createElementVNode("div", _hoisted_7$j, [
18361
+ createElementVNode("div", _hoisted_7$k, [
18294
18362
  createElementVNode("i", null, [
18295
18363
  _cache[21] || (_cache[21] = createElementVNode("i", { class: "iconfont icon-wenziyanse" }, null, -1)),
18296
18364
  createElementVNode("div", {
@@ -18317,7 +18385,7 @@ const _sfc_main$3u = /* @__PURE__ */ defineComponent({
18317
18385
  _: 1
18318
18386
  }, 8, ["color"])
18319
18387
  ]),
18320
- createElementVNode("div", _hoisted_8$d, [
18388
+ createElementVNode("div", _hoisted_8$e, [
18321
18389
  createElementVNode("i", null, [
18322
18390
  _cache[23] || (_cache[23] = createElementVNode("i", { class: "iconfont icon-tianchongyanse relative left-1px" }, null, -1)),
18323
18391
  createElementVNode("div", {
@@ -19751,6 +19819,9 @@ const ToolkitContentFields = /* @__PURE__ */ defineComponent({
19751
19819
  disabled: true
19752
19820
  };
19753
19821
  };
19822
+ const isAssocField = (item) => {
19823
+ return [FIELD_TYPE.REF, FIELD_TYPE.REF_MULTI, FIELD_TYPE.RDO_REF, FIELD_TYPE.MODEL_RELATION].includes(item.type) || item.bizType === FIELD_TYPE.MODEL_RELATION;
19824
+ };
19754
19825
  const getFieldName = (item) => {
19755
19826
  return item.highlightName ? createVNode("span", {
19756
19827
  "class": "field-title",
@@ -19858,9 +19929,9 @@ const ToolkitContentFields = /* @__PURE__ */ defineComponent({
19858
19929
  bizType: item.bizType,
19859
19930
  ...subTableObj
19860
19931
  };
19861
- const isRef2 = [FIELD_TYPE.REF, FIELD_TYPE.REF_MULTI, FIELD_TYPE.RDO_REF].includes(item.type);
19932
+ const isRef2 = isAssocField(item);
19862
19933
  const isSubObjectType = item.type === FIELD_TYPE.OBJECT_TYPE;
19863
- const children = (isRef2 || isSubObjectType) && !last2 ? recursive(item.bindInfo, {
19934
+ const children = isSubObjectType && !last2 ? recursive(item.bindInfo, {
19864
19935
  modelLinks: [...newModelLinks],
19865
19936
  fieldLinks: [...newFieldLinks],
19866
19937
  fieldKey: item.key,
@@ -19912,9 +19983,9 @@ const ToolkitContentFields = /* @__PURE__ */ defineComponent({
19912
19983
  bizType: item.bizType,
19913
19984
  ...subTableObj
19914
19985
  };
19915
- const isRef2 = [FIELD_TYPE.REF, FIELD_TYPE.REF_MULTI, FIELD_TYPE.RDO_REF].includes(item.type);
19986
+ const isRef2 = isAssocField(item);
19916
19987
  const isObjectType = item.type === FIELD_TYPE.OBJECT_TYPE;
19917
- const children = isRef2 || isObjectType ? recursive(item.bindInfo, {
19988
+ const children = isObjectType ? recursive(item.bindInfo, {
19918
19989
  modelLinks,
19919
19990
  fieldLinks,
19920
19991
  fieldKey: item.key,
@@ -19937,49 +20008,6 @@ const ToolkitContentFields = /* @__PURE__ */ defineComponent({
19937
20008
  console.log(options, "renderOptions:FieldList");
19938
20009
  return options;
19939
20010
  };
19940
- const recursiveList = (originModelKey, {
19941
- modelLinks,
19942
- fieldLinks,
19943
- subTableObj,
19944
- last: last2 = false
19945
- }) => {
19946
- if (!originModelKey) return [];
19947
- const originModelMeta = modelMetaMap2.value[originModelKey];
19948
- if (isEmpty(originModelMeta)) return [];
19949
- const list = [];
19950
- originModelMeta.fields.filter(filterFieldInfo).forEach((item) => {
19951
- const newModelLinks = [...modelLinks, originModelKey];
19952
- const newFieldLinks = [...fieldLinks, item.key];
19953
- const fieldCodeChain = {
19954
- field: item.key,
19955
- fieldType: item.type,
19956
- model: item.modelKey,
19957
- /** 模型链路 */
19958
- modelLink: [...newModelLinks],
19959
- /** 字段链路 */
19960
- fieldLink: [...newFieldLinks],
19961
- isFieldModel: true,
19962
- createType: item.createType,
19963
- refModelKey: item.bindInfo,
19964
- belongingObject: item.belongingObject,
19965
- bizType: item.bizType,
19966
- ...subTableObj
19967
- };
19968
- const isRef2 = [FIELD_TYPE.REF, FIELD_TYPE.REF_MULTI, FIELD_TYPE.RDO_REF].includes(item.type);
19969
- const children = isRef2 && !last2 ? recursiveList(item.bindInfo, {
19970
- modelLinks: newModelLinks,
19971
- fieldLinks: newFieldLinks,
19972
- subTableObj,
19973
- last: true
19974
- }) : [];
19975
- list.push({
19976
- ...fieldCodeChain,
19977
- name: item.name
19978
- });
19979
- list.push(children);
19980
- });
19981
- return list;
19982
- };
19983
20011
  const allFieldList = computed(() => {
19984
20012
  const options = [];
19985
20013
  if (!isEmpty(currentModelMeta.value)) {
@@ -20009,16 +20037,9 @@ const ToolkitContentFields = /* @__PURE__ */ defineComponent({
20009
20037
  bizType: item.bizType,
20010
20038
  ...subTableObj
20011
20039
  };
20012
- const isRef2 = [FIELD_TYPE.REF, FIELD_TYPE.REF_MULTI, FIELD_TYPE.RDO_REF].includes(item.type);
20013
20040
  const isObjectType = item.type === FIELD_TYPE.OBJECT_TYPE;
20014
20041
  let children = [];
20015
- if (isRef2) {
20016
- children = recursiveList(item.bindInfo, {
20017
- modelLinks,
20018
- fieldLinks,
20019
- subTableObj
20020
- });
20021
- } else if (isObjectType) {
20042
+ if (isObjectType) {
20022
20043
  const objectChildFields = getObjectChildFields(item.key, modelKey);
20023
20044
  children = objectChildFields.map((childItem) => {
20024
20045
  const newFieldLinks = [...fieldLinks, childItem.key];
@@ -20069,7 +20090,10 @@ const ToolkitContentFields = /* @__PURE__ */ defineComponent({
20069
20090
  });
20070
20091
  const renderSearch = () => {
20071
20092
  return searchFieldList.value.map((item) => {
20072
- const isRef2 = [FIELD_TYPE.REF, FIELD_TYPE.REF_MULTI, FIELD_TYPE.RDO_REF].includes(item.fieldType);
20093
+ const isRef2 = isAssocField({
20094
+ type: item.fieldType,
20095
+ bizType: item.bizType
20096
+ });
20073
20097
  const fieldPathChains = getFieldMeta2({
20074
20098
  ...item,
20075
20099
  modelLink: item.modelLink.join("."),
@@ -51303,7 +51327,7 @@ const _sfc_main$3e = /* @__PURE__ */ defineComponent({
51303
51327
  });
51304
51328
  const FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$3e, [["__scopeId", "data-v-463388f0"]]);
51305
51329
  function asyncImportWidgetProp() {
51306
- const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-DPdsvAF5.js"), "./widget-diagonal.vue": () => import("./widget-diagonal-BfjZGony.js"), "./widget-image.vue": () => import("./widget-image-D_E_0ZEd.js"), "./widget-line.vue": () => import("./widget-line-SDiSxrzr.js"), "./widget-pagination.vue": () => import("./widget-pagination-DdIoe9Yy.js"), "./widget-power.vue": () => import("./widget-power-hifeC3T0.js"), "./widget-qrcode.vue": () => import("./widget-qrcode-DBEsM1iE.js"), "./widget-rangelimit.vue": () => import("./widget-rangelimit-clQ84tvq.js"), "./widget-serialnumber.vue": () => import("./widget-serialnumber-BXvzHCYR.js"), "./widget-text.vue": () => import("./widget-text-CPojsb_9.js"), "./widget-timediff.vue": () => import("./widget-timediff-DGBZsme_.js") });
51330
+ const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-iBjDv4NF.js"), "./widget-diagonal.vue": () => import("./widget-diagonal-4ZMgaI9y.js"), "./widget-image.vue": () => import("./widget-image-B63wZzz4.js"), "./widget-line.vue": () => import("./widget-line-CIG-L--W.js"), "./widget-pagination.vue": () => import("./widget-pagination-CAmhXECi.js"), "./widget-power.vue": () => import("./widget-power-CsiguFSe.js"), "./widget-qrcode.vue": () => import("./widget-qrcode-BuEayrLO.js"), "./widget-rangelimit.vue": () => import("./widget-rangelimit-CqaLvV8n.js"), "./widget-serialnumber.vue": () => import("./widget-serialnumber-C_wAw0TS.js"), "./widget-text.vue": () => import("./widget-text-CRApo2EO.js"), "./widget-timediff.vue": () => import("./widget-timediff-D1q5VNhe.js") });
51307
51331
  const widgetPropMap = Object.keys(modules).reduce((map2, path) => {
51308
51332
  const mKey = path.match(/\/widget-([a-z]+)\.vue$/)?.[1];
51309
51333
  if (mKey) {
@@ -52629,7 +52653,7 @@ const _hoisted_5$A = {
52629
52653
  class: "ml5px text-[#c3c3c3]"
52630
52654
  };
52631
52655
  const _hoisted_6$t = ["onClick"];
52632
- const _hoisted_7$i = { class: "text-[#797A7D] bg-[#fff] p-4px mt-2px ell h26px" };
52656
+ const _hoisted_7$j = { class: "text-[#797A7D] bg-[#fff] p-4px mt-2px ell h26px" };
52633
52657
  const _sfc_main$30 = /* @__PURE__ */ defineComponent({
52634
52658
  __name: "cell-widget-dependency",
52635
52659
  props: {
@@ -52804,7 +52828,7 @@ const _sfc_main$30 = /* @__PURE__ */ defineComponent({
52804
52828
  _: 1
52805
52829
  }, 8, ["title", "onConfirm"])
52806
52830
  ]),
52807
- createElementVNode("div", _hoisted_7$i, toDisplayString(configDependency.value[item]?.expressionStr || configDependency.value[item]?.expression), 1)
52831
+ createElementVNode("div", _hoisted_7$j, toDisplayString(configDependency.value[item]?.expressionStr || configDependency.value[item]?.expression), 1)
52808
52832
  ]);
52809
52833
  }), 128))
52810
52834
  ])
@@ -57081,8 +57105,8 @@ const _hoisted_3$Y = { class: "rules-item rules-item-title" };
57081
57105
  const _hoisted_4$L = { class: "title left" };
57082
57106
  const _hoisted_5$y = { class: "title right" };
57083
57107
  const _hoisted_6$r = { class: "rules-item-value" };
57084
- const _hoisted_7$h = { class: "rules-item-middle" };
57085
- const _hoisted_8$c = { class: "rules-item-value" };
57108
+ const _hoisted_7$i = { class: "rules-item-middle" };
57109
+ const _hoisted_8$d = { class: "rules-item-value" };
57086
57110
  const _hoisted_9$8 = { class: "rules-item-ope" };
57087
57111
  const _hoisted_10$7 = ["onClick"];
57088
57112
  const _sfc_main$2N = /* @__PURE__ */ defineComponent({
@@ -57229,8 +57253,8 @@ const _sfc_main$2N = /* @__PURE__ */ defineComponent({
57229
57253
  _: 2
57230
57254
  }, 1032, ["name", "rules"])
57231
57255
  ]),
57232
- createElementVNode("div", _hoisted_7$h, toDisplayString(_ctx.$t("sys.edhr.mutualExclusion")), 1),
57233
- createElementVNode("div", _hoisted_8$c, [
57256
+ createElementVNode("div", _hoisted_7$i, toDisplayString(_ctx.$t("sys.edhr.mutualExclusion")), 1),
57257
+ createElementVNode("div", _hoisted_8$d, [
57234
57258
  createVNode(_component_a_form_item, {
57235
57259
  name: ["configList", i, "checkIds"],
57236
57260
  rules: [{ required: true, message: _ctx.$t("sys.chooseText") }]
@@ -57291,11 +57315,11 @@ const _hoisted_3$X = { class: "color-[#212528] text-12px lh-[18px]" };
57291
57315
  const _hoisted_4$K = { class: "color-[#212528] text-12px lh-[18px]" };
57292
57316
  const _hoisted_5$x = { class: "flex justify-end" };
57293
57317
  const _hoisted_6$q = { class: "flex justify-end" };
57294
- const _hoisted_7$g = {
57318
+ const _hoisted_7$h = {
57295
57319
  key: 0,
57296
57320
  class: "dynamic-table"
57297
57321
  };
57298
- const _hoisted_8$b = { class: "dynamic-table__header" };
57322
+ const _hoisted_8$c = { class: "dynamic-table__header" };
57299
57323
  const _hoisted_9$7 = {
57300
57324
  key: 1,
57301
57325
  class: "flex justify-center color-[#bebdc7]"
@@ -57583,8 +57607,8 @@ const _sfc_main$2M = /* @__PURE__ */ defineComponent({
57583
57607
  inline: false
57584
57608
  }, {
57585
57609
  default: withCtx(() => [
57586
- unref(paper2).thead?.thName ? (openBlock(), createElementBlock("div", _hoisted_7$g, [
57587
- createElementVNode("div", _hoisted_8$b, [
57610
+ unref(paper2).thead?.thName ? (openBlock(), createElementBlock("div", _hoisted_7$h, [
57611
+ createElementVNode("div", _hoisted_8$c, [
57588
57612
  createElementVNode("span", null, toDisplayString(unref(paper2).thead?.thName), 1),
57589
57613
  !unref(sheetReadonly2) ? (openBlock(), createElementBlock("i", {
57590
57614
  key: 0,
@@ -57768,7 +57792,7 @@ const _hoisted_3$V = ["id"];
57768
57792
  const _hoisted_4$I = { key: 0 };
57769
57793
  const _hoisted_5$w = ["onMouseenter"];
57770
57794
  const _hoisted_6$p = ["onClick"];
57771
- const _hoisted_7$f = ["onClick"];
57795
+ const _hoisted_7$g = ["onClick"];
57772
57796
  const _sfc_main$2K = /* @__PURE__ */ defineComponent({
57773
57797
  __name: "panel-paper-widget-group",
57774
57798
  setup(__props) {
@@ -57875,7 +57899,7 @@ const _sfc_main$2K = /* @__PURE__ */ defineComponent({
57875
57899
  key: 0,
57876
57900
  class: "iconfont icon-shanchu2",
57877
57901
  onClick: withModifiers(($event) => handleRemovePaperWidget(widget2.id), ["stop"])
57878
- }, null, 8, _hoisted_7$f)) : createCommentVNode("", true)
57902
+ }, null, 8, _hoisted_7$g)) : createCommentVNode("", true)
57879
57903
  ], 42, _hoisted_5$w);
57880
57904
  }), 128))
57881
57905
  ])
@@ -58139,8 +58163,8 @@ const _hoisted_3$T = { class: "readonly-text" };
58139
58163
  const _hoisted_4$G = { class: "readonly-text" };
58140
58164
  const _hoisted_5$v = { class: "readonly-text" };
58141
58165
  const _hoisted_6$o = { class: "readonly-text" };
58142
- const _hoisted_7$e = { class: "mt-12px text-12px color-[#252525]" };
58143
- const _hoisted_8$a = { class: "color-[#3168EC]" };
58166
+ const _hoisted_7$f = { class: "mt-12px text-12px color-[#252525]" };
58167
+ const _hoisted_8$b = { class: "color-[#3168EC]" };
58144
58168
  const _sfc_main$2G = /* @__PURE__ */ defineComponent({
58145
58169
  __name: "panel-fixed-table",
58146
58170
  setup(__props) {
@@ -58295,9 +58319,9 @@ const _sfc_main$2G = /* @__PURE__ */ defineComponent({
58295
58319
  ]),
58296
58320
  _: 1
58297
58321
  }),
58298
- createElementVNode("div", _hoisted_7$e, [
58322
+ createElementVNode("div", _hoisted_7$f, [
58299
58323
  createTextVNode(toDisplayString(_ctx.$t("sys.onlineForm.currentlyFixed")) + " ", 1),
58300
- createElementVNode("span", _hoisted_8$a, toDisplayString(validCellCount.value), 1),
58324
+ createElementVNode("span", _hoisted_8$b, toDisplayString(validCellCount.value), 1),
58301
58325
  createTextVNode(" " + toDisplayString(_ctx.$t("sys.onlineForm.cells")), 1)
58302
58326
  ]),
58303
58327
  cells.value.length ? (openBlock(), createBlock(FormItem, {
@@ -58729,7 +58753,7 @@ const getColumns = (orderKeys, isTree = false) => {
58729
58753
  ...baseColumnConfig,
58730
58754
  treeNode: isTree && index2 === 0,
58731
58755
  ...col,
58732
- slots: col.slots ? { ...baseColumnConfig.slots, ...col.slots } : baseColumnConfig.slots
58756
+ slots: col?.slots ? { ...baseColumnConfig.slots, ...col.slots } : baseColumnConfig.slots
58733
58757
  };
58734
58758
  });
58735
58759
  };
@@ -60125,8 +60149,8 @@ const _hoisted_3$L = { class: "actions" };
60125
60149
  const _hoisted_4$A = ["onClick"];
60126
60150
  const _hoisted_5$q = ["onClick"];
60127
60151
  const _hoisted_6$l = { class: "ks-row-middle fieldrow mb5px" };
60128
- const _hoisted_7$d = { class: "ks-col ks-row" };
60129
- const _hoisted_8$9 = { class: "min-w-86px flex-grow-1" };
60152
+ const _hoisted_7$e = { class: "ks-col ks-row" };
60153
+ const _hoisted_8$a = { class: "min-w-86px flex-grow-1" };
60130
60154
  const _hoisted_9$6 = { class: "min-w-86px flex-grow-1" };
60131
60155
  const _hoisted_10$5 = ["onClick"];
60132
60156
  const _sfc_main$2w = /* @__PURE__ */ defineComponent({
@@ -60251,8 +60275,8 @@ const _sfc_main$2w = /* @__PURE__ */ defineComponent({
60251
60275
  item: withCtx(({ element: option2 }) => [
60252
60276
  createElementVNode("div", _hoisted_6$l, [
60253
60277
  _cache[3] || (_cache[3] = createElementVNode("i", { class: "icon-drag iconfont mr4px cursor-move text-[#C3C3C3] primary-gct-hover" }, null, -1)),
60254
- createElementVNode("div", _hoisted_7$d, [
60255
- createElementVNode("div", _hoisted_8$9, [
60278
+ createElementVNode("div", _hoisted_7$e, [
60279
+ createElementVNode("div", _hoisted_8$a, [
60256
60280
  createVNode(_component_a_input, {
60257
60281
  value: option2.text,
60258
60282
  "onUpdate:value": ($event) => option2.text = $event,
@@ -60761,8 +60785,8 @@ const _hoisted_3$I = ["title"];
60761
60785
  const _hoisted_4$y = { class: "w-50% pl-11px flex items-center justify-end" };
60762
60786
  const _hoisted_5$o = ["title"];
60763
60787
  const _hoisted_6$j = { class: "flex items-center" };
60764
- const _hoisted_7$c = { class: "flex-grow-1 w-1px" };
60765
- const _hoisted_8$8 = {
60788
+ const _hoisted_7$d = { class: "flex-grow-1 w-1px" };
60789
+ const _hoisted_8$9 = {
60766
60790
  key: 0,
60767
60791
  class: "params-item-card__children"
60768
60792
  };
@@ -60814,7 +60838,7 @@ const _sfc_main$2n = /* @__PURE__ */ defineComponent({
60814
60838
  _: 1
60815
60839
  }),
60816
60840
  createElementVNode("div", _hoisted_6$j, [
60817
- createElementVNode("div", _hoisted_7$c, [
60841
+ createElementVNode("div", _hoisted_7$d, [
60818
60842
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
60819
60843
  ]),
60820
60844
  props2.enableCollapse ? (openBlock(), createElementBlock("div", {
@@ -60826,7 +60850,7 @@ const _sfc_main$2n = /* @__PURE__ */ defineComponent({
60826
60850
  ])], 2)) : createCommentVNode("", true)
60827
60851
  ]),
60828
60852
  renderSlot(_ctx.$slots, "center", {}, void 0, true),
60829
- props2.enableCollapse && collapse.value ? (openBlock(), createElementBlock("div", _hoisted_8$8, [
60853
+ props2.enableCollapse && collapse.value ? (openBlock(), createElementBlock("div", _hoisted_8$9, [
60830
60854
  renderSlot(_ctx.$slots, "children", {}, void 0, true)
60831
60855
  ])) : createCommentVNode("", true)
60832
60856
  ]);
@@ -61189,8 +61213,8 @@ const _hoisted_3$E = { class: "flex justify-end" };
61189
61213
  const _hoisted_4$x = { class: "flex justify-end" };
61190
61214
  const _hoisted_5$n = { class: "flex justify-end" };
61191
61215
  const _hoisted_6$i = { class: "flex justify-end" };
61192
- const _hoisted_7$b = { class: "px-8px py-12px ai-tmpl-editor__border-top" };
61193
- const _hoisted_8$7 = { class: "ai-tmpl-editor__preview-btn mt-12px" };
61216
+ const _hoisted_7$c = { class: "px-8px py-12px ai-tmpl-editor__border-top" };
61217
+ const _hoisted_8$8 = { class: "ai-tmpl-editor__preview-btn mt-12px" };
61194
61218
  const _sfc_main$2i = /* @__PURE__ */ defineComponent({
61195
61219
  __name: "ai-tmpl-editor",
61196
61220
  props: {
@@ -61357,7 +61381,7 @@ const _sfc_main$2i = /* @__PURE__ */ defineComponent({
61357
61381
  _: 1
61358
61382
  }, 8, ["label"])) : createCommentVNode("", true)
61359
61383
  ]),
61360
- createElementVNode("div", _hoisted_7$b, [
61384
+ createElementVNode("div", _hoisted_7$c, [
61361
61385
  createVNode(_component_a_button, {
61362
61386
  type: "dashed",
61363
61387
  class: "ai-tmpl-editor__add-param",
@@ -61401,7 +61425,7 @@ const _sfc_main$2i = /* @__PURE__ */ defineComponent({
61401
61425
  createTextVNode(toDisplayString(previewPrompt.value), 1)
61402
61426
  ]),
61403
61427
  default: withCtx(() => [
61404
- createElementVNode("div", _hoisted_8$7, [
61428
+ createElementVNode("div", _hoisted_8$8, [
61405
61429
  _cache[10] || (_cache[10] = createElementVNode("i", { class: "gct-iconfont icon-yulantishici" }, null, -1)),
61406
61430
  createTextVNode(toDisplayString(_ctx.$t("sys.onlineForm.previewFullPrompt")), 1)
61407
61431
  ])
@@ -64300,8 +64324,8 @@ const _hoisted_4$v = {
64300
64324
  };
64301
64325
  const _hoisted_5$m = ["onClick"];
64302
64326
  const _hoisted_6$h = { key: 1 };
64303
- const _hoisted_7$a = { class: "w50px ml10px" };
64304
- const _hoisted_8$6 = { class: "mr3px" };
64327
+ const _hoisted_7$b = { class: "w50px ml10px" };
64328
+ const _hoisted_8$7 = { class: "mr3px" };
64305
64329
  const _hoisted_9$5 = { class: "flex-1 ml-10px" };
64306
64330
  const _hoisted_10$4 = { class: "w-80px ml-10px flex flex-none" };
64307
64331
  const _hoisted_11$3 = { key: 0 };
@@ -64518,8 +64542,8 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
64518
64542
  }, 8, ["value", "onUpdate:value", "placeholder", "onChange", "disabled"]), [
64519
64543
  [vShow, item.valueType === unref(ValueTypeEnum).INPUT || __props.isChild]
64520
64544
  ]),
64521
- withDirectives(createElementVNode("div", _hoisted_7$a, [
64522
- createElementVNode("span", _hoisted_8$6, toDisplayString(_ctx.$t("sys.model.required")), 1),
64545
+ withDirectives(createElementVNode("div", _hoisted_7$b, [
64546
+ createElementVNode("span", _hoisted_8$7, toDisplayString(_ctx.$t("sys.model.required")), 1),
64523
64547
  createVNode(_component_a_checkbox, {
64524
64548
  checked: item.required,
64525
64549
  "onUpdate:checked": ($event) => item.required = $event,
@@ -65579,8 +65603,8 @@ const _hoisted_3$x = { class: "object-init-list__label" };
65579
65603
  const _hoisted_4$r = ["title"];
65580
65604
  const _hoisted_5$j = ["onClick"];
65581
65605
  const _hoisted_6$e = { class: "object-init-list__meta" };
65582
- const _hoisted_7$9 = { class: "object-init-list__label" };
65583
- const _hoisted_8$5 = { class: "object-init-list__value" };
65606
+ const _hoisted_7$a = { class: "object-init-list__label" };
65607
+ const _hoisted_8$6 = { class: "object-init-list__value" };
65584
65608
  const _hoisted_9$4 = { class: "object-init-list__actions" };
65585
65609
  const _sfc_main$1W = /* @__PURE__ */ defineComponent({
65586
65610
  __name: "object-init-list",
@@ -65618,8 +65642,8 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
65618
65642
  }, null, 8, _hoisted_5$j)
65619
65643
  ]),
65620
65644
  createElementVNode("div", _hoisted_6$e, [
65621
- createElementVNode("span", _hoisted_7$9, toDisplayString(_ctx.$t("sys.onlineForm.fieldType")) + ":", 1),
65622
- createElementVNode("span", _hoisted_8$5, toDisplayString(__props.getObjectFieldTypeName(item.objectFieldMeta)), 1)
65645
+ createElementVNode("span", _hoisted_7$a, toDisplayString(_ctx.$t("sys.onlineForm.fieldType")) + ":", 1),
65646
+ createElementVNode("span", _hoisted_8$6, toDisplayString(__props.getObjectFieldTypeName(item.objectFieldMeta)), 1)
65623
65647
  ]),
65624
65648
  createElementVNode("div", _hoisted_9$4, [
65625
65649
  __props.hasValues(item) ? (openBlock(), createBlock(_component_a_button, {
@@ -66884,7 +66908,7 @@ const _hoisted_3$u = { class: "cell-textarea-modal-header" };
66884
66908
  const _hoisted_4$p = { class: "cell-textarea-modal-title" };
66885
66909
  const _hoisted_5$h = { class: "cell-textarea-modal-body" };
66886
66910
  const _hoisted_6$d = ["placeholder", "maxlength"];
66887
- const _hoisted_7$8 = { class: "cell-textarea-modal-footer" };
66911
+ const _hoisted_7$9 = { class: "cell-textarea-modal-footer" };
66888
66912
  const _sfc_main$1K = /* @__PURE__ */ defineComponent({
66889
66913
  __name: "cell-textarea",
66890
66914
  props: {
@@ -67011,7 +67035,7 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
67011
67035
  [vModelText, modalValue.value]
67012
67036
  ])
67013
67037
  ]),
67014
- createElementVNode("div", _hoisted_7$8, [
67038
+ createElementVNode("div", _hoisted_7$9, [
67015
67039
  createElementVNode("button", {
67016
67040
  class: "cell-textarea-modal-btn cell-textarea-modal-btn-cancel",
67017
67041
  onClick: onModalCancel
@@ -68542,10 +68566,11 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
68542
68566
  const match = str.match(/\.(\d+)/);
68543
68567
  return match ? match[1].length : 0;
68544
68568
  };
68569
+ const stripNumberNoise = (raw) => raw.replace(/\$\s?|,|,|\s/g, "");
68545
68570
  const formatterValue = (inputValue2) => {
68546
68571
  let value = inputValue2?.toString();
68547
- if (props2.isSeparator && value) {
68548
- value = value.replace(/\$\s?|(,*)/g, "");
68572
+ if (value) {
68573
+ value = stripNumberNoise(value);
68549
68574
  }
68550
68575
  const currentValue = parseFloat(value);
68551
68576
  if (isNaN(currentValue)) {
@@ -76912,7 +76937,7 @@ const _hoisted_4$n = {
76912
76937
  };
76913
76938
  const _hoisted_5$f = ["title"];
76914
76939
  const _hoisted_6$b = ["title"];
76915
- const _hoisted_7$7 = {
76940
+ const _hoisted_7$8 = {
76916
76941
  key: 0,
76917
76942
  class: "date-text"
76918
76943
  };
@@ -77185,7 +77210,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
77185
77210
  onClick: _cache[2] || (_cache[2] = withModifiers(() => {
77186
77211
  }, ["stop"]))
77187
77212
  }, null, 8, ["src"]),
77188
- shouldShowDate.value && unref(signTimeType) === unref(SignatureTimeTypeEnum).FOLLOW_SIGNATURE ? (openBlock(), createElementBlock("div", _hoisted_7$7, toDisplayString(formattedDate(signature.time)), 1)) : createCommentVNode("", true)
77213
+ shouldShowDate.value && unref(signTimeType) === unref(SignatureTimeTypeEnum).FOLLOW_SIGNATURE ? (openBlock(), createElementBlock("div", _hoisted_7$8, toDisplayString(formattedDate(signature.time)), 1)) : createCommentVNode("", true)
77189
77214
  ], 2);
77190
77215
  }), 128))
77191
77216
  ]),
@@ -77885,7 +77910,7 @@ const _hoisted_3$q = {
77885
77910
  const _hoisted_4$l = ["onContextmenu"];
77886
77911
  const _hoisted_5$e = { class: "inner-label-box" };
77887
77912
  const _hoisted_6$a = ["title"];
77888
- const _hoisted_7$6 = { class: "h-120px flex justify-center items-center" };
77913
+ const _hoisted_7$7 = { class: "h-120px flex justify-center items-center" };
77889
77914
  const _sfc_main$1n = /* @__PURE__ */ defineComponent({
77890
77915
  __name: "trace-select",
77891
77916
  props: {
@@ -78236,7 +78261,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
78236
78261
  state.fetching ? {
78237
78262
  name: "notFoundContent",
78238
78263
  fn: withCtx(() => [
78239
- createElementVNode("div", _hoisted_7$6, [
78264
+ createElementVNode("div", _hoisted_7$7, [
78240
78265
  createVNode(_component_a_spin, { size: "small" })
78241
78266
  ])
78242
78267
  ]),
@@ -78285,6 +78310,16 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
78285
78310
  setup(__props, { expose: __expose, emit: __emit }) {
78286
78311
  const props2 = __props;
78287
78312
  const emit2 = __emit;
78313
+ const { displayFields, quickSearchField } = props2.widget.props;
78314
+ const searchForm = ref({
78315
+ keyword: void 0
78316
+ });
78317
+ const searchField = computed(() => {
78318
+ return Array.from(new Set(quickSearchField || []));
78319
+ });
78320
+ const searchExp = computed(() => {
78321
+ return `OR(${searchField.value.join(",")})`;
78322
+ });
78288
78323
  const {
78289
78324
  field,
78290
78325
  bizType,
@@ -78295,11 +78330,19 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
78295
78330
  dataRelationShip
78296
78331
  } = useWidgetStaticAttrs(props2.widget);
78297
78332
  const columns2 = computed(() => {
78298
- let columns22 = ["code", "name", "spec", "uom", "desc"];
78299
- if (bizType === FIELD_TYPE.E_SOP) {
78300
- columns22 = ["esopName", "esopCode", "esopType", "esopSize"];
78333
+ const cols = [];
78334
+ if (displayFields?.length) {
78335
+ cols.push(
78336
+ ...displayFields.map(({ key, name }) => ({ title: name, field: key, minWidth: 170 }))
78337
+ );
78338
+ } else {
78339
+ let keys2 = ["code", "name", "spec", "uom", "desc"];
78340
+ if (bizType === FIELD_TYPE.E_SOP) {
78341
+ keys2 = ["esopName", "esopCode", "esopType", "esopSize"];
78342
+ }
78343
+ cols.push(...getColumns(keys2, true));
78301
78344
  }
78302
- return getColumns(columns22, true);
78345
+ return cols;
78303
78346
  });
78304
78347
  const wrapperWidth = computed(() => {
78305
78348
  if (bizType === FIELD_TYPE.E_SOP) {
@@ -78318,7 +78361,11 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
78318
78361
  fieldKey: field,
78319
78362
  refModelKey,
78320
78363
  isRdo: true,
78321
- exp: `OR(${(dataRelationShip?.productSearchFields || "name_,code_").split(",").map((k) => `${k}.like`).join(",")})`,
78364
+ // exp: `OR(${(dataRelationShip?.productSearchFields || 'name_,code_')
78365
+ // .split(',')
78366
+ // .map((k: string) => `${k}.like`)
78367
+ // .join(',')})`,
78368
+ exp: keyword2 ? searchExp.value : void 0,
78322
78369
  queryData: {
78323
78370
  ...queryData,
78324
78371
  ...props2.extraQuery,
@@ -78336,7 +78383,8 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
78336
78383
  };
78337
78384
  const { xTable, loading: loading2, tableData, pagination, search, setCurrentRowHighlight, onSizeChange } = useSelectTable(
78338
78385
  fetcher,
78339
- merge({}, transformTreeData(initialOptions ?? [], props2.modelValue ?? void 0), {
78386
+ // 已有关联过滤等额外条件时,不用预置 options,避免首开展示未过滤数据
78387
+ Object.keys(props2.extraQuery || {}).length ? void 0 : merge({}, transformTreeData(initialOptions ?? [], props2.modelValue ?? void 0), {
78340
78388
  total: newTotalCount
78341
78389
  })
78342
78390
  );
@@ -78348,6 +78396,18 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
78348
78396
  pageSizeOptions: ["10", "20", "30"],
78349
78397
  showTotal: (total) => $t("sys.component.table.total", { total })
78350
78398
  }));
78399
+ const debounceSearch = debounce(async () => {
78400
+ await search(searchForm.value.keyword);
78401
+ }, 500);
78402
+ watch(
78403
+ () => searchForm.value,
78404
+ () => {
78405
+ debounceSearch();
78406
+ },
78407
+ {
78408
+ deep: true
78409
+ }
78410
+ );
78351
78411
  const onChangeSelect = (row) => {
78352
78412
  emit2("change-select", row);
78353
78413
  if (props2.parentToDefault && row?.__DEFAULT__) {
@@ -78367,28 +78427,58 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
78367
78427
  search
78368
78428
  });
78369
78429
  return (_ctx, _cache) => {
78370
- return openBlock(), createBlock(BaseVxeTable, {
78371
- ref_key: "xTable",
78372
- ref: xTable,
78373
- columns: columns2.value,
78374
- tableData: unref(tableData),
78375
- modelValue: __props.modelValue,
78376
- loading: unref(loading2),
78377
- paginationAttr: paginationAttr.value,
78378
- treeConfig: { rowField: "id_", childrenField: "children", expandAll: true },
78379
- wrapperHeight: __props.wrapperHeight,
78380
- onChangeSelect,
78381
- onRequest: unref(onSizeChange),
78382
- wrapperWidth: wrapperWidth.value
78383
- }, {
78384
- rdo_version_render: withCtx(({ record }) => [
78385
- createVNode(RdoVersionNameTag, { data: record }, null, 8, ["data"])
78386
- ]),
78387
- _: 1
78388
- }, 8, ["columns", "tableData", "modelValue", "loading", "paginationAttr", "wrapperHeight", "onRequest", "wrapperWidth"]);
78430
+ const _component_a_input = resolveComponent("a-input");
78431
+ const _component_a_col = resolveComponent("a-col");
78432
+ const _component_a_row = resolveComponent("a-row");
78433
+ return openBlock(), createElementBlock(Fragment, null, [
78434
+ __props.widget.props.quickSearchable ? (openBlock(), createBlock(_component_a_row, {
78435
+ key: 0,
78436
+ class: "base-vxe-search-form-container",
78437
+ gutter: 24
78438
+ }, {
78439
+ default: withCtx(() => [
78440
+ createVNode(_component_a_col, { span: 12 }, {
78441
+ default: withCtx(() => [
78442
+ createVNode(_component_a_input, {
78443
+ value: searchForm.value.keyword,
78444
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => searchForm.value.keyword = $event),
78445
+ placeholder: _ctx.$t("sys.search")
78446
+ }, {
78447
+ prefix: withCtx(() => [..._cache[1] || (_cache[1] = [
78448
+ createElementVNode("i", { class: "iconfont icon-sousuo1" }, null, -1)
78449
+ ])]),
78450
+ _: 1
78451
+ }, 8, ["value", "placeholder"])
78452
+ ]),
78453
+ _: 1
78454
+ })
78455
+ ]),
78456
+ _: 1
78457
+ })) : createCommentVNode("", true),
78458
+ createVNode(BaseVxeTable, {
78459
+ ref_key: "xTable",
78460
+ ref: xTable,
78461
+ columns: columns2.value,
78462
+ tableData: unref(tableData),
78463
+ modelValue: __props.modelValue,
78464
+ loading: unref(loading2),
78465
+ paginationAttr: paginationAttr.value,
78466
+ treeConfig: { rowField: "id_", childrenField: "children", expandAll: true },
78467
+ wrapperHeight: __props.wrapperHeight,
78468
+ onChangeSelect,
78469
+ onRequest: unref(onSizeChange),
78470
+ wrapperWidth: wrapperWidth.value
78471
+ }, {
78472
+ rdo_version_render: withCtx(({ record }) => [
78473
+ createVNode(RdoVersionNameTag, { data: record }, null, 8, ["data"])
78474
+ ]),
78475
+ _: 1
78476
+ }, 8, ["columns", "tableData", "modelValue", "loading", "paginationAttr", "wrapperHeight", "onRequest", "wrapperWidth"])
78477
+ ], 64);
78389
78478
  };
78390
78479
  }
78391
78480
  });
78481
+ const RdoSelectTable = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["__scopeId", "data-v-542f045b"]]);
78392
78482
  const INITIAL_WRAPPER_HEIGHT = 360;
78393
78483
  const MIN_WRAPPER_HEIGHT = 150;
78394
78484
  const POPOVER_PADDING = 16;
@@ -78448,6 +78538,39 @@ function useWrapperHeight(triggerRef) {
78448
78538
  calculateWrapperHeight
78449
78539
  };
78450
78540
  }
78541
+ function parseAssocSourceField(value) {
78542
+ if (!value) return null;
78543
+ const idx = value.indexOf(".");
78544
+ if (idx === -1) return { fieldKey: value };
78545
+ return {
78546
+ subFieldKey: value.slice(0, idx),
78547
+ fieldKey: value.slice(idx + 1)
78548
+ };
78549
+ }
78550
+ function buildAssocFilterExtraParams(filterProps, formData, mainFormState) {
78551
+ if (!filterProps?.enableAssocFilter || !filterProps.assocFilterSourceField) return {};
78552
+ const parsed = parseAssocSourceField(filterProps.assocFilterSourceField);
78553
+ if (!parsed) return {};
78554
+ const row = formData || {};
78555
+ const main = mainFormState || {};
78556
+ const scope = parsed.subFieldKey ? row : main;
78557
+ const value = scope[parsed.fieldKey];
78558
+ const idValue = scope[`${parsed.fieldKey}_id_`];
78559
+ if (isNil(value) || value === "") return {};
78560
+ const sourceType = filterProps.assocFilterSourceFieldType;
78561
+ if (sourceType === FIELD_TYPE.MATERIAL_NO) {
78562
+ const lotId = idValue || value;
78563
+ if (isNil(lotId) || lotId === "") return {};
78564
+ return { production_identification_id_: lotId };
78565
+ }
78566
+ if (sourceType === FIELD_TYPE.MFG_ORDER) {
78567
+ return { mfg_order_id_: value };
78568
+ }
78569
+ if (!isNil(idValue) && idValue !== "") {
78570
+ return { production_identification_id_: idValue };
78571
+ }
78572
+ return { mfg_order_id_: value };
78573
+ }
78451
78574
  const _sfc_main$1k = /* @__PURE__ */ defineComponent({
78452
78575
  __name: "trace-rdo-select",
78453
78576
  props: {
@@ -78469,11 +78592,25 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
78469
78592
  showRequired,
78470
78593
  showDisabled,
78471
78594
  newQueryData,
78595
+ newQueryDataRef,
78472
78596
  newDisplayRule,
78473
78597
  modelKey
78474
78598
  } = useWidgetStaticAttrs(props2.widget);
78475
78599
  const { autofillRules, enableAutofill } = props2.widget.props;
78476
78600
  const { applyAutofillRules } = useAutofill();
78601
+ const { currentPageFormState } = useCurrentPageFormState();
78602
+ const mergedQueryData = computed(() => ({
78603
+ ...newQueryDataRef.value || newQueryData || {},
78604
+ ...buildAssocFilterExtraParams(
78605
+ {
78606
+ enableAssocFilter: props2.widget.props.enableAssocFilter,
78607
+ assocFilterSourceField: props2.widget.props.assocFilterSourceField,
78608
+ assocFilterSourceFieldType: props2.widget.props.assocFilterSourceFieldType
78609
+ },
78610
+ props2.formData,
78611
+ currentPageFormState.value
78612
+ )
78613
+ }));
78477
78614
  const open = ref(false);
78478
78615
  const searchValue = ref();
78479
78616
  const selectTableRef = ref(null);
@@ -78552,6 +78689,11 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
78552
78689
  searchValue.value = keyword2;
78553
78690
  selectTableRef.value?.search?.(keyword2);
78554
78691
  }, 300);
78692
+ watch(open, async (visible) => {
78693
+ if (!visible || !props2.widget.props.enableAssocFilter) return;
78694
+ await nextTick();
78695
+ selectTableRef.value?.search?.(searchValue.value || "");
78696
+ });
78555
78697
  const onClearSearchValue = () => {
78556
78698
  if (searchValue.value && String(searchValue.value).trim()) {
78557
78699
  searchValue.value = void 0;
@@ -78719,13 +78861,13 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
78719
78861
  placement: unref(popoverPlacement)
78720
78862
  }, {
78721
78863
  content: withCtx(() => [
78722
- createVNode(_sfc_main$1l, {
78864
+ createVNode(RdoSelectTable, {
78723
78865
  ref_key: "selectTableRef",
78724
78866
  ref: selectTableRef,
78725
78867
  widget: __props.widget,
78726
78868
  modelValue: __props.value,
78727
78869
  parentToDefault: __props.parentToDefault,
78728
- extraQuery: unref(newQueryData),
78870
+ extraQuery: mergedQueryData.value,
78729
78871
  wrapperHeight: unref(wrapperHeight),
78730
78872
  onChangeSelect
78731
78873
  }, null, 8, ["widget", "modelValue", "parentToDefault", "extraQuery", "wrapperHeight"])
@@ -78765,7 +78907,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
78765
78907
  };
78766
78908
  }
78767
78909
  });
78768
- const TraceRdoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-8a861bb9"]]);
78910
+ const TraceRdoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-d39afcd2"]]);
78769
78911
  const _sfc_main$1j = /* @__PURE__ */ defineComponent({
78770
78912
  __name: "lot-select-table",
78771
78913
  props: {
@@ -78778,12 +78920,32 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
78778
78920
  setup(__props, { expose: __expose, emit: __emit }) {
78779
78921
  const props2 = __props;
78780
78922
  const emit2 = __emit;
78781
- const { options: initialOptions, newTotalCount, customLoaderRef } = useWidgetStaticAttrs(
78782
- props2.widget
78783
- );
78784
- const columns2 = computed(
78785
- () => getColumns(["radio", "lot2sn", "productCode", "productName", "spec"])
78786
- );
78923
+ const { displayFields, quickSearchField } = props2.widget.props;
78924
+ const {
78925
+ options: initialOptions,
78926
+ newTotalCount,
78927
+ customLoaderRef
78928
+ } = useWidgetStaticAttrs(props2.widget);
78929
+ const searchForm = ref({
78930
+ keyword: void 0
78931
+ });
78932
+ const searchField = computed(() => {
78933
+ return Array.from(new Set(quickSearchField || []));
78934
+ });
78935
+ const searchExp = computed(() => {
78936
+ return `OR(${searchField.value.join(",")})`;
78937
+ });
78938
+ const columns2 = computed(() => {
78939
+ const cols = getColumns(["radio"]);
78940
+ if (displayFields?.length) {
78941
+ cols.push(
78942
+ ...displayFields.map(({ key, name }) => ({ title: name, field: key, minWidth: 170 }))
78943
+ );
78944
+ } else {
78945
+ cols.push(...getColumns(["lot2sn", "productCode", "productName", "spec"]));
78946
+ }
78947
+ return cols;
78948
+ });
78787
78949
  const fetcher = async ({ keyword: keyword2 = "", pageNo, pageSize }) => {
78788
78950
  const queryData = keyword2 && String(keyword2).trim() ? ["material_no_"].reduce((total, filedKey) => {
78789
78951
  const expkey = filedKey.split(".").length > 1 ? filedKey : filedKey + ".like";
@@ -78793,6 +78955,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
78793
78955
  const res = await renderUtils.requestLot2SnOptions({
78794
78956
  isMaterialConsumeField: props2.widget.props.isMaterialConsumeField,
78795
78957
  customLoader: customLoaderRef.value,
78958
+ exp: keyword2 ? searchExp.value : void 0,
78796
78959
  queryData: {
78797
78960
  ...queryData,
78798
78961
  ...props2.extraQuery
@@ -78831,6 +78994,18 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
78831
78994
  pageSizeOptions: ["10", "20", "30"],
78832
78995
  showTotal: (total) => $t("sys.component.table.total", { total })
78833
78996
  }));
78997
+ const debounceSearch = debounce(async () => {
78998
+ await search(searchForm.value.keyword);
78999
+ }, 500);
79000
+ watch(
79001
+ () => searchForm.value,
79002
+ () => {
79003
+ debounceSearch();
79004
+ },
79005
+ {
79006
+ deep: true
79007
+ }
79008
+ );
78834
79009
  const onChangeSelect = (row) => {
78835
79010
  emit2("change-select", row);
78836
79011
  };
@@ -78839,22 +79014,52 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
78839
79014
  search
78840
79015
  });
78841
79016
  return (_ctx, _cache) => {
78842
- return openBlock(), createBlock(BaseVxeTable, {
78843
- ref_key: "xTable",
78844
- ref: xTable,
78845
- columns: columns2.value,
78846
- tableData: unref(tableData),
78847
- modelValue: __props.modelValue,
78848
- loading: unref(loading2),
78849
- paginationAttr: paginationAttr.value,
78850
- "show-row-selection-mode": "",
78851
- onChangeSelect,
78852
- onRequest: unref(onSizeChange),
78853
- wrapperHeight: __props.wrapperHeight
78854
- }, null, 8, ["columns", "tableData", "modelValue", "loading", "paginationAttr", "onRequest", "wrapperHeight"]);
79017
+ const _component_a_input = resolveComponent("a-input");
79018
+ const _component_a_col = resolveComponent("a-col");
79019
+ const _component_a_row = resolveComponent("a-row");
79020
+ return openBlock(), createElementBlock(Fragment, null, [
79021
+ __props.widget.props.quickSearchable ? (openBlock(), createBlock(_component_a_row, {
79022
+ key: 0,
79023
+ class: "base-vxe-search-form-container",
79024
+ gutter: 24
79025
+ }, {
79026
+ default: withCtx(() => [
79027
+ createVNode(_component_a_col, { span: 12 }, {
79028
+ default: withCtx(() => [
79029
+ createVNode(_component_a_input, {
79030
+ value: searchForm.value.keyword,
79031
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => searchForm.value.keyword = $event),
79032
+ placeholder: _ctx.$t("sys.search")
79033
+ }, {
79034
+ prefix: withCtx(() => [..._cache[1] || (_cache[1] = [
79035
+ createElementVNode("i", { class: "iconfont icon-sousuo1" }, null, -1)
79036
+ ])]),
79037
+ _: 1
79038
+ }, 8, ["value", "placeholder"])
79039
+ ]),
79040
+ _: 1
79041
+ })
79042
+ ]),
79043
+ _: 1
79044
+ })) : createCommentVNode("", true),
79045
+ createVNode(BaseVxeTable, {
79046
+ ref_key: "xTable",
79047
+ ref: xTable,
79048
+ columns: columns2.value,
79049
+ tableData: unref(tableData),
79050
+ modelValue: __props.modelValue,
79051
+ loading: unref(loading2),
79052
+ paginationAttr: paginationAttr.value,
79053
+ "show-row-selection-mode": "",
79054
+ onChangeSelect,
79055
+ onRequest: unref(onSizeChange),
79056
+ wrapperHeight: __props.wrapperHeight
79057
+ }, null, 8, ["columns", "tableData", "modelValue", "loading", "paginationAttr", "onRequest", "wrapperHeight"])
79058
+ ], 64);
78855
79059
  };
78856
79060
  }
78857
79061
  });
79062
+ const LotSelectTable = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-d117eb50"]]);
78858
79063
  const _sfc_main$1i = /* @__PURE__ */ defineComponent({
78859
79064
  __name: "trace-lot-select",
78860
79065
  props: {
@@ -78990,7 +79195,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
78990
79195
  autoAdjustOverflow: unref(autoAdjustOverflow)
78991
79196
  }, {
78992
79197
  content: withCtx(() => [
78993
- createVNode(_sfc_main$1j, {
79198
+ createVNode(LotSelectTable, {
78994
79199
  ref_key: "selectTableRef",
78995
79200
  ref: selectTableRef,
78996
79201
  widget: __props.widget,
@@ -79220,15 +79425,34 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
79220
79425
  setup(__props, { expose: __expose, emit: __emit }) {
79221
79426
  const props2 = __props;
79222
79427
  const emit2 = __emit;
79428
+ const { displayFields, quickSearchField } = props2.widget.props;
79223
79429
  const { options: initialOptions, newTotalCount } = useWidgetStaticAttrs(props2.widget);
79224
- const columns2 = computed(
79225
- () => getColumns(["radio", "lot2sn", "productCode", "productName", "spec"])
79226
- );
79430
+ const columns2 = computed(() => {
79431
+ const cols = getColumns(["radio"]);
79432
+ if (displayFields?.length) {
79433
+ cols.push(
79434
+ ...displayFields.map(({ key, name }) => ({ title: name, field: key, minWidth: 170 }))
79435
+ );
79436
+ } else {
79437
+ cols.push(...getColumns(["lot2sn", "productCode", "productName", "spec"]));
79438
+ }
79439
+ return cols;
79440
+ });
79441
+ const searchForm = ref({
79442
+ keyword: void 0
79443
+ });
79444
+ const searchField = computed(() => {
79445
+ return Array.from(new Set(quickSearchField || []));
79446
+ });
79447
+ const searchExp = computed(() => {
79448
+ return `OR(${searchField.value.join(",")})`;
79449
+ });
79227
79450
  const fetcher = async ({ keyword: keyword2 = "", pageNo, pageSize }) => {
79228
79451
  const queryData = keyword2 && String(keyword2).trim() ? {
79229
79452
  "name_.like": keyword2
79230
79453
  } : {};
79231
79454
  const res = await renderUtils.requestMaterialLotOptions({
79455
+ exp: keyword2 ? searchExp.value : void 0,
79232
79456
  queryData: {
79233
79457
  ...queryData,
79234
79458
  ...props2.extraQuery
@@ -79264,6 +79488,18 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
79264
79488
  pageSizeOptions: ["10", "20", "30"],
79265
79489
  showTotal: (total) => $t("sys.component.table.total", { total })
79266
79490
  }));
79491
+ const debounceSearch = debounce(async () => {
79492
+ await search(searchForm.value.keyword);
79493
+ }, 500);
79494
+ watch(
79495
+ () => searchForm.value,
79496
+ () => {
79497
+ debounceSearch();
79498
+ },
79499
+ {
79500
+ deep: true
79501
+ }
79502
+ );
79267
79503
  const onChangeSelect = (row) => {
79268
79504
  emit2("change-select", row);
79269
79505
  };
@@ -79272,22 +79508,52 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
79272
79508
  search
79273
79509
  });
79274
79510
  return (_ctx, _cache) => {
79275
- return openBlock(), createBlock(BaseVxeTable, {
79276
- ref_key: "xTable",
79277
- ref: xTable,
79278
- columns: columns2.value,
79279
- tableData: unref(tableData),
79280
- modelValue: __props.modelValue,
79281
- loading: unref(loading2),
79282
- paginationAttr: paginationAttr.value,
79283
- "show-row-selection-mode": "",
79284
- onChangeSelect,
79285
- onRequest: unref(onSizeChange),
79286
- wrapperHeight: __props.wrapperHeight
79287
- }, null, 8, ["columns", "tableData", "modelValue", "loading", "paginationAttr", "onRequest", "wrapperHeight"]);
79511
+ const _component_a_input = resolveComponent("a-input");
79512
+ const _component_a_col = resolveComponent("a-col");
79513
+ const _component_a_row = resolveComponent("a-row");
79514
+ return openBlock(), createElementBlock(Fragment, null, [
79515
+ __props.widget.props.quickSearchable ? (openBlock(), createBlock(_component_a_row, {
79516
+ key: 0,
79517
+ class: "base-vxe-search-form-container",
79518
+ gutter: 24
79519
+ }, {
79520
+ default: withCtx(() => [
79521
+ createVNode(_component_a_col, { span: 12 }, {
79522
+ default: withCtx(() => [
79523
+ createVNode(_component_a_input, {
79524
+ value: searchForm.value.keyword,
79525
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => searchForm.value.keyword = $event),
79526
+ placeholder: _ctx.$t("sys.search")
79527
+ }, {
79528
+ prefix: withCtx(() => [..._cache[1] || (_cache[1] = [
79529
+ createElementVNode("i", { class: "iconfont icon-sousuo1" }, null, -1)
79530
+ ])]),
79531
+ _: 1
79532
+ }, 8, ["value", "placeholder"])
79533
+ ]),
79534
+ _: 1
79535
+ })
79536
+ ]),
79537
+ _: 1
79538
+ })) : createCommentVNode("", true),
79539
+ createVNode(BaseVxeTable, {
79540
+ ref_key: "xTable",
79541
+ ref: xTable,
79542
+ columns: columns2.value,
79543
+ tableData: unref(tableData),
79544
+ modelValue: __props.modelValue,
79545
+ loading: unref(loading2),
79546
+ paginationAttr: paginationAttr.value,
79547
+ "show-row-selection-mode": "",
79548
+ onChangeSelect,
79549
+ onRequest: unref(onSizeChange),
79550
+ wrapperHeight: __props.wrapperHeight
79551
+ }, null, 8, ["columns", "tableData", "modelValue", "loading", "paginationAttr", "onRequest", "wrapperHeight"])
79552
+ ], 64);
79288
79553
  };
79289
79554
  }
79290
79555
  });
79556
+ const MaterialLotSelectTable = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["__scopeId", "data-v-7d13eb18"]]);
79291
79557
  const _sfc_main$1f = /* @__PURE__ */ defineComponent({
79292
79558
  __name: "trace-material-lot-select",
79293
79559
  props: {
@@ -79423,7 +79689,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
79423
79689
  autoAdjustOverflow: unref(autoAdjustOverflow)
79424
79690
  }, {
79425
79691
  content: withCtx(() => [
79426
- createVNode(_sfc_main$1g, {
79692
+ createVNode(MaterialLotSelectTable, {
79427
79693
  ref_key: "selectTableRef",
79428
79694
  ref: selectTableRef,
79429
79695
  widget: __props.widget,
@@ -79737,9 +80003,9 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
79737
80003
  fieldMetaMap2.value[f.key] = f;
79738
80004
  });
79739
80005
  });
79740
- const searchFormData = ref({
79741
- deviceType: void 0,
79742
- keyword: void 0
80006
+ const searchForm = ref({
80007
+ keyword: void 0,
80008
+ deviceType: void 0
79743
80009
  });
79744
80010
  const props2 = __props;
79745
80011
  const emit2 = __emit;
@@ -79750,14 +80016,20 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
79750
80016
  modelKey,
79751
80017
  refModelKey,
79752
80018
  placeholder,
79753
- fieldType,
80019
+ // fieldType,
79754
80020
  showRequired,
79755
80021
  showDisabled,
79756
80022
  options: initialOptions,
79757
80023
  loadFinished2Options,
79758
80024
  newTotalCount
79759
80025
  } = useWidgetStaticAttrs(props2.widget);
79760
- const { quickSearchField, quickSearchExp, autofillRules, enableAutofill } = props2.widget.props;
80026
+ const {
80027
+ displayFields,
80028
+ quickSearchField,
80029
+ // quickSearchExp,
80030
+ autofillRules,
80031
+ enableAutofill
80032
+ } = props2.widget.props;
79761
80033
  const { applyAutofillRules } = useAutofill();
79762
80034
  const searchField = computed(() => {
79763
80035
  return Array.from(new Set(["code_.like", "name_.like"].concat(quickSearchField || [])));
@@ -79811,7 +80083,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
79811
80083
  }
79812
80084
  const info = res.options[0];
79813
80085
  currentValue.value = info.value;
79814
- changeSelect(info._item);
80086
+ changeSelect(info.value, info._item);
79815
80087
  return true;
79816
80088
  }
79817
80089
  });
@@ -79835,15 +80107,21 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
79835
80107
  const columns2 = computed(() => {
79836
80108
  const nameMeta = fieldMetaMap2.value["name_"];
79837
80109
  const codeMeta = fieldMetaMap2.value["code_"];
79838
- const cols = [
79839
- { field: "radio", type: "radio", width: 46, showOverflow: false },
79840
- { title: nameMeta?.name ?? $t("sys.name"), field: "name_", minWidth: 170 },
79841
- {
79842
- title: codeMeta?.name ?? $t("sys.edhr.field.code"),
79843
- field: "code_",
79844
- minWidth: 170
79845
- }
79846
- ];
80110
+ const cols = [{ field: "radio", type: "radio", width: 46, showOverflow: false }];
80111
+ if (displayFields?.length) {
80112
+ cols.push(
80113
+ ...displayFields.map(({ key, name }) => ({ title: name, field: key, minWidth: 170 }))
80114
+ );
80115
+ } else {
80116
+ cols.push(
80117
+ { title: nameMeta?.name ?? $t("sys.name"), field: "name_", minWidth: 170 },
80118
+ {
80119
+ title: codeMeta?.name ?? $t("sys.edhr.field.code"),
80120
+ field: "code_",
80121
+ minWidth: 170
80122
+ }
80123
+ );
80124
+ }
79847
80125
  const showKeys = searchField.value.map((s) => s.replace(".like", ""));
79848
80126
  showKeys.forEach((k) => {
79849
80127
  if (["name_", "code_"].includes(k)) {
@@ -79881,7 +80159,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
79881
80159
  exp: keyword2 ? searchExp.value : void 0,
79882
80160
  queryData: {
79883
80161
  ...searchFieldQuery,
79884
- "device_type_id_.eq": searchFormData.value.deviceType,
80162
+ "device_type_id_.eq": searchForm.value.deviceType,
79885
80163
  operating_state_: true
79886
80164
  },
79887
80165
  pageNo,
@@ -79909,10 +80187,10 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
79909
80187
  showTotal: (total) => $t("sys.component.table.total", { total })
79910
80188
  }));
79911
80189
  const debounceSearch = debounce(async () => {
79912
- await search(searchFormData.value.keyword);
80190
+ await search(searchForm.value.keyword);
79913
80191
  }, 500);
79914
80192
  watch(
79915
- () => searchFormData.value,
80193
+ () => searchForm.value,
79916
80194
  () => {
79917
80195
  debounceSearch();
79918
80196
  },
@@ -80020,7 +80298,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
80020
80298
  ref_key: "selectRef",
80021
80299
  ref: selectRef
80022
80300
  }), {
80023
- dropdownRender: withCtx(({ menuNode: menu }) => [
80301
+ dropdownRender: withCtx(() => [
80024
80302
  createElementVNode("div", _hoisted_1$K, [
80025
80303
  createVNode(_component_a_row, {
80026
80304
  class: "trace-device__search-form",
@@ -80033,8 +80311,8 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
80033
80311
  }, {
80034
80312
  default: withCtx(() => [
80035
80313
  createVNode(_component_a_input, {
80036
- value: searchFormData.value.keyword,
80037
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => searchFormData.value.keyword = $event),
80314
+ value: searchForm.value.keyword,
80315
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => searchForm.value.keyword = $event),
80038
80316
  placeholder: _ctx.$t("sys.edhr.searchDevice")
80039
80317
  }, {
80040
80318
  prefix: withCtx(() => [..._cache[4] || (_cache[4] = [
@@ -80054,8 +80332,8 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
80054
80332
  default: withCtx(() => [
80055
80333
  createVNode(TraceSelect, {
80056
80334
  dropdownClassName: "trace-device__exclude-outside",
80057
- modelValue: searchFormData.value.deviceType,
80058
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchFormData.value.deviceType = $event),
80335
+ modelValue: searchForm.value.deviceType,
80336
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchForm.value.deviceType = $event),
80059
80337
  placeholder: _ctx.$t("sys.chooseTextTip", { name: _ctx.$t("sys.edhr.deviceType") }),
80060
80338
  "model-key": "em_device_type"
80061
80339
  }, null, 8, ["modelValue", "placeholder"])
@@ -80089,7 +80367,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
80089
80367
  };
80090
80368
  }
80091
80369
  });
80092
- const TraceDevice = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-8de81758"]]);
80370
+ const TraceDevice = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-498f9bc8"]]);
80093
80371
  const _hoisted_1$J = { class: "allocate-product__dropdown" };
80094
80372
  const _sfc_main$1b = /* @__PURE__ */ defineComponent({
80095
80373
  __name: "allocate-product",
@@ -81211,7 +81489,7 @@ const VuePdf = /* @__PURE__ */ defineComponent({
81211
81489
  }
81212
81490
  });
81213
81491
  const VueVideoPlayer = defineAsyncComponent(
81214
- () => import("./VueVideoPlayer-Bf0x69CJ.js")
81492
+ () => import("./VueVideoPlayer-dfgekKID.js")
81215
81493
  );
81216
81494
  const _hoisted_1$I = {
81217
81495
  key: 0,
@@ -85724,7 +86002,7 @@ const _hoisted_6$9 = {
85724
86002
  class: "error",
85725
86003
  style: { "color": "red" }
85726
86004
  };
85727
- const _hoisted_7$5 = {
86005
+ const _hoisted_7$6 = {
85728
86006
  key: 1,
85729
86007
  style: { "color": "var(--ant-primary-color)" }
85730
86008
  };
@@ -85930,7 +86208,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
85930
86208
  percent: item.percentNum
85931
86209
  }, {
85932
86210
  format: withCtx((percent) => [
85933
- item.status === unref(statusEnum$1).EXCEPTION ? (openBlock(), createElementBlock("span", _hoisted_6$9, toDisplayString(_ctx.$t("sys.component.upload.uploadError")) + "!", 1)) : (openBlock(), createElementBlock("span", _hoisted_7$5, toDisplayString(percent + "%"), 1))
86211
+ item.status === unref(statusEnum$1).EXCEPTION ? (openBlock(), createElementBlock("span", _hoisted_6$9, toDisplayString(_ctx.$t("sys.component.upload.uploadError")) + "!", 1)) : (openBlock(), createElementBlock("span", _hoisted_7$6, toDisplayString(percent + "%"), 1))
85934
86212
  ]),
85935
86213
  _: 2
85936
86214
  }, 1032, ["percent"]), [
@@ -89615,8 +89893,8 @@ const _hoisted_3$h = { class: "ks-row" };
89615
89893
  const _hoisted_4$e = { class: "ks-col ell text-[12px]" };
89616
89894
  const _hoisted_5$9 = ["title"];
89617
89895
  const _hoisted_6$7 = { class: "mr4px text-#666" };
89618
- const _hoisted_7$4 = { class: "ks-col ell" };
89619
- const _hoisted_8$4 = ["title"];
89896
+ const _hoisted_7$5 = { class: "ks-col ell" };
89897
+ const _hoisted_8$5 = ["title"];
89620
89898
  const _hoisted_9$3 = { class: "mr4px text-#666" };
89621
89899
  const _hoisted_10$3 = { class: "ks-col ell" };
89622
89900
  const _hoisted_11$2 = ["onClick"];
@@ -89704,7 +89982,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
89704
89982
  title: `${item.formulaLabel}[${item.formulaContent}]`
89705
89983
  }, [
89706
89984
  createElementVNode("div", _hoisted_6$7, toDisplayString(_ctx.$t("sys.onlineForm.unitConversion.ruleLabel")), 1),
89707
- createElementVNode("div", _hoisted_7$4, toDisplayString(item.formulaLabel) + "[" + toDisplayString(item.formulaContent) + "]", 1)
89985
+ createElementVNode("div", _hoisted_7$5, toDisplayString(item.formulaLabel) + "[" + toDisplayString(item.formulaContent) + "]", 1)
89708
89986
  ], 8, _hoisted_5$9),
89709
89987
  createElementVNode("div", {
89710
89988
  class: "ks-row",
@@ -89712,7 +89990,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
89712
89990
  }, [
89713
89991
  createElementVNode("div", _hoisted_9$3, toDisplayString(_ctx.$t("sys.onlineForm.unitConversion.materialLabel")), 1),
89714
89992
  createElementVNode("div", _hoisted_10$3, toDisplayString(item.materialLabel), 1)
89715
- ], 8, _hoisted_8$4)
89993
+ ], 8, _hoisted_8$5)
89716
89994
  ]),
89717
89995
  createElementVNode("i", {
89718
89996
  class: "iconfont icon-shanchu primary-gct-hover ml4px",
@@ -89886,8 +90164,8 @@ const _hoisted_3$g = {
89886
90164
  const _hoisted_4$d = { class: "bom-entry-item-content ks-col" };
89887
90165
  const _hoisted_5$8 = { class: "bom-entry-item-content-item ell overflow-hidden" };
89888
90166
  const _hoisted_6$6 = ["title"];
89889
- const _hoisted_7$3 = { class: "bom-entry-item-btns ml8px" };
89890
- const _hoisted_8$3 = ["onClick"];
90167
+ const _hoisted_7$4 = { class: "bom-entry-item-btns ml8px" };
90168
+ const _hoisted_8$4 = ["onClick"];
89891
90169
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
89892
90170
  __name: "bom-entry-editor",
89893
90171
  props: {
@@ -89991,7 +90269,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
89991
90269
  title: `${_ctx.$t("sys.edhr.unitQty")}:${element.qty_required_}`
89992
90270
  }, toDisplayString(_ctx.$t("sys.edhr.unitQty")) + ":" + toDisplayString(element.qty_required_), 9, _hoisted_6$6)
89993
90271
  ]),
89994
- createElementVNode("div", _hoisted_7$3, [
90272
+ createElementVNode("div", _hoisted_7$4, [
89995
90273
  createVNode(_component_a_tooltip, {
89996
90274
  title: _ctx.$t("sys.edit")
89997
90275
  }, {
@@ -89999,7 +90277,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
89999
90277
  createElementVNode("i", {
90000
90278
  class: "iconfont btn-item icon-bianjimingcheng",
90001
90279
  onClick: ($event) => edit(element)
90002
- }, null, 8, _hoisted_8$3)
90280
+ }, null, 8, _hoisted_8$4)
90003
90281
  ]),
90004
90282
  _: 2
90005
90283
  }, 1032, ["title"]),
@@ -90070,12 +90348,24 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
90070
90348
  }
90071
90349
  });
90072
90350
  const EditParseRule = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-334f7559"]]);
90351
+ var ScanParamType = /* @__PURE__ */ ((ScanParamType2) => {
90352
+ ScanParamType2["Lot"] = "lot";
90353
+ ScanParamType2["UniqueCode"] = "uniqueCode";
90354
+ return ScanParamType2;
90355
+ })(ScanParamType || {});
90356
+ var RequiredQtyCalcRule = /* @__PURE__ */ ((RequiredQtyCalcRule2) => {
90357
+ RequiredQtyCalcRule2["LotQty"] = "lotQty";
90358
+ RequiredQtyCalcRule2["ProductQty"] = "productQty";
90359
+ return RequiredQtyCalcRule2;
90360
+ })(RequiredQtyCalcRule || {});
90073
90361
  const _hoisted_1$l = { class: "panel-document" };
90074
90362
  const _hoisted_2$g = { class: "pl-12px pr-12px pt-20px pb-20px" };
90075
90363
  const _hoisted_3$f = { class: "color-[#212528] text-12px lh-[18px]" };
90076
90364
  const _hoisted_4$c = { class: "color-[#212528] text-12px lh-[18px]" };
90077
90365
  const _hoisted_5$7 = { class: "flex justify-end" };
90078
90366
  const _hoisted_6$5 = { class: "flex justify-end" };
90367
+ const _hoisted_7$3 = { class: "flex justify-end" };
90368
+ const _hoisted_8$3 = { class: "flex justify-end" };
90079
90369
  const _sfc_main$B = /* @__PURE__ */ defineComponent({
90080
90370
  __name: "panel-material-consumption-table",
90081
90371
  setup(__props) {
@@ -90087,8 +90377,12 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
90087
90377
  });
90088
90378
  const { businessSetting } = window.NocodeAdapter.hooks?.useBusinessSetting?.();
90089
90379
  const { paper: paper2, panelData: panelData2, sheetReadonly: sheetReadonly2, removeSubTable, setPanelData } = useSpreadSheet();
90090
- const { modelMetaMap: modelMetaMap2 } = useModelFields();
90380
+ const { modelMetaMap: modelMetaMap2, masterModel: masterModel2 } = useModelFields();
90091
90381
  const activeCollapse = ref(["1", "2", "3"]);
90382
+ const fieldsOptions = computed(() => {
90383
+ const fields = modelMetaMap2.value[masterModel2.value.key]?.fields ?? [];
90384
+ return fields.filter((e) => e.bizType === FIELD_TYPE.ProductQty);
90385
+ });
90092
90386
  const table = computed({
90093
90387
  get() {
90094
90388
  return paper2.value.dynamicTables?.find((item) => item.id === panelData2.refId);
@@ -90109,10 +90403,17 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
90109
90403
  table.value.mcBomConfig = {
90110
90404
  table_key_: `${table.value.id}:${table.value.field}`,
90111
90405
  material_loading_model_enabled_: false,
90112
- entries_: []
90406
+ entries_: [],
90407
+ required_qty_calc_rule_: RequiredQtyCalcRule.LotQty,
90408
+ bom_init_enabled_: true
90113
90409
  };
90114
90410
  }
90115
90411
  });
90412
+ watchEffect(() => {
90413
+ if (config2.value && !config2.value.required_qty_calc_rule_) {
90414
+ config2.value.required_qty_calc_rule_ = RequiredQtyCalcRule.LotQty;
90415
+ }
90416
+ });
90116
90417
  if (businessSetting.isBomGranted) {
90117
90418
  watchEffect(() => {
90118
90419
  if (config2.value && !config2.value.material_consumption_pattern_) {
@@ -90154,8 +90455,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
90154
90455
  };
90155
90456
  return (_ctx, _cache) => {
90156
90457
  const _component_a_collapse_panel = resolveComponent("a-collapse-panel");
90157
- const _component_a_select = resolveComponent("a-select");
90158
90458
  const _component_a_switch = resolveComponent("a-switch");
90459
+ const _component_a_select_option = resolveComponent("a-select-option");
90460
+ const _component_a_select = resolveComponent("a-select");
90159
90461
  const _component_a_collapse = resolveComponent("a-collapse");
90160
90462
  return openBlock(), createElementBlock("div", _hoisted_1$l, [
90161
90463
  createElementVNode("div", _hoisted_2$g, [
@@ -90190,7 +90492,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
90190
90492
  createVNode(_component_a_collapse, {
90191
90493
  class: "override",
90192
90494
  activeKey: activeCollapse.value,
90193
- "onUpdate:activeKey": _cache[6] || (_cache[6] = ($event) => activeCollapse.value = $event),
90495
+ "onUpdate:activeKey": _cache[11] || (_cache[11] = ($event) => activeCollapse.value = $event),
90194
90496
  ghost: "",
90195
90497
  expandIconPosition: "right"
90196
90498
  }, {
@@ -90219,6 +90521,23 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
90219
90521
  }, null, 8, ["tableProps"]),
90220
90522
  !config2.value.material_loading_model_enabled_ ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
90221
90523
  createVNode(FormItem, {
90524
+ label: _ctx.$t("sys.enableBarcodeParseRule"),
90525
+ class: "justify-between"
90526
+ }, {
90527
+ default: withCtx(() => [
90528
+ createElementVNode("div", _hoisted_5$7, [
90529
+ createVNode(_component_a_switch, {
90530
+ size: "small",
90531
+ disabled: unref(sheetReadonly2),
90532
+ checked: !config2.value.enable_barcode_param,
90533
+ onChange: _cache[1] || (_cache[1] = ($event) => config2.value.enable_barcode_param = !config2.value.enable_barcode_param)
90534
+ }, null, 8, ["disabled", "checked"])
90535
+ ])
90536
+ ]),
90537
+ _: 1
90538
+ }, 8, ["label"]),
90539
+ !config2.value.enable_barcode_param ? (openBlock(), createBlock(FormItem, {
90540
+ key: 0,
90222
90541
  inline: false,
90223
90542
  label: _ctx.$t("sys.edhr.mcTable.parseRule"),
90224
90543
  class: "justify-between",
@@ -90227,14 +90546,44 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
90227
90546
  default: withCtx(() => [
90228
90547
  createVNode(EditParseRule, {
90229
90548
  modelValue: config2.value.barcode_parsing_rules_id_,
90230
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => config2.value.barcode_parsing_rules_id_ = $event),
90549
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => config2.value.barcode_parsing_rules_id_ = $event),
90231
90550
  subModelKey: table.value?.model
90232
90551
  }, null, 8, ["modelValue", "subModelKey"])
90233
90552
  ]),
90234
90553
  _: 1
90235
- }, 8, ["label"]),
90554
+ }, 8, ["label"])) : (openBlock(), createBlock(FormItem, {
90555
+ key: 1,
90556
+ inline: false,
90557
+ label: _ctx.$t("sys.params"),
90558
+ class: "justify-between",
90559
+ required: ""
90560
+ }, {
90561
+ default: withCtx(() => [
90562
+ createVNode(_component_a_select, {
90563
+ value: config2.value.scan_param_type_,
90564
+ "onUpdate:value": _cache[3] || (_cache[3] = ($event) => config2.value.scan_param_type_ = $event),
90565
+ placeholder: _ctx.$t("sys.chooseText")
90566
+ }, {
90567
+ default: withCtx(() => [
90568
+ (openBlock(true), createElementBlock(Fragment, null, renderList(Object.values(unref(ScanParamType)), (item) => {
90569
+ return openBlock(), createBlock(_component_a_select_option, {
90570
+ key: item,
90571
+ value: item
90572
+ }, {
90573
+ default: withCtx(() => [
90574
+ createTextVNode(toDisplayString(_ctx.$t(`sys.ScanParamType.${item}`)), 1)
90575
+ ]),
90576
+ _: 2
90577
+ }, 1032, ["value"]);
90578
+ }), 128))
90579
+ ]),
90580
+ _: 1
90581
+ }, 8, ["value", "placeholder"])
90582
+ ]),
90583
+ _: 1
90584
+ }, 8, ["label"])),
90236
90585
  unref(businessSetting).isBomGranted ? (openBlock(), createBlock(FormItem, {
90237
- key: 0,
90586
+ key: 2,
90238
90587
  inline: false,
90239
90588
  label: _ctx.$t("sys.edhr.mcTable.materialConsumptionPattern"),
90240
90589
  class: "justify-between",
@@ -90243,32 +90592,48 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
90243
90592
  default: withCtx(() => [
90244
90593
  createVNode(_component_a_select, {
90245
90594
  value: config2.value.material_consumption_pattern_,
90246
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => config2.value.material_consumption_pattern_ = $event),
90595
+ "onUpdate:value": _cache[4] || (_cache[4] = ($event) => config2.value.material_consumption_pattern_ = $event),
90247
90596
  options: patternOptions.value
90248
90597
  }, null, 8, ["value", "options"])
90249
90598
  ]),
90250
90599
  _: 1
90251
90600
  }, 8, ["label"])) : createCommentVNode("", true),
90601
+ createVNode(FormItem, {
90602
+ label: _ctx.$t("sys.enableInitMaterial"),
90603
+ class: "justify-between"
90604
+ }, {
90605
+ default: withCtx(() => [
90606
+ createElementVNode("div", _hoisted_6$5, [
90607
+ createVNode(_component_a_switch, {
90608
+ size: "small",
90609
+ disabled: unref(sheetReadonly2),
90610
+ checked: config2.value.bom_init_enabled_,
90611
+ "onUpdate:checked": _cache[5] || (_cache[5] = ($event) => config2.value.bom_init_enabled_ = $event)
90612
+ }, null, 8, ["disabled", "checked"])
90613
+ ])
90614
+ ]),
90615
+ _: 1
90616
+ }, 8, ["label"]),
90252
90617
  createVNode(FormItem, {
90253
90618
  label: _ctx.$t("sys.edhr.mcTable.personalBom"),
90254
90619
  class: "justify-between"
90255
90620
  }, {
90256
90621
  default: withCtx(() => [
90257
- createElementVNode("div", _hoisted_5$7, [
90622
+ createElementVNode("div", _hoisted_7$3, [
90258
90623
  createVNode(_component_a_switch, {
90259
90624
  size: "small",
90260
90625
  disabled: unref(sheetReadonly2),
90261
90626
  checked: config2.value.personal_bom_enabled_,
90262
- "onUpdate:checked": _cache[3] || (_cache[3] = ($event) => config2.value.personal_bom_enabled_ = $event)
90627
+ "onUpdate:checked": _cache[6] || (_cache[6] = ($event) => config2.value.personal_bom_enabled_ = $event)
90263
90628
  }, null, 8, ["disabled", "checked"])
90264
90629
  ])
90265
90630
  ]),
90266
90631
  _: 1
90267
90632
  }, 8, ["label"]),
90268
- config2.value.personal_bom_enabled_ ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
90633
+ config2.value.personal_bom_enabled_ ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
90269
90634
  createVNode(BomEntryEditor, {
90270
90635
  list: config2.value.entries_,
90271
- "onUpdate:list": _cache[4] || (_cache[4] = ($event) => config2.value.entries_ = $event)
90636
+ "onUpdate:list": _cache[7] || (_cache[7] = ($event) => config2.value.entries_ = $event)
90272
90637
  }, null, 8, ["list"]),
90273
90638
  createVNode(FormItem, {
90274
90639
  isFirst: "",
@@ -90276,18 +90641,69 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
90276
90641
  class: "justify-between"
90277
90642
  }, {
90278
90643
  default: withCtx(() => [
90279
- createElementVNode("div", _hoisted_6$5, [
90644
+ createElementVNode("div", _hoisted_8$3, [
90280
90645
  createVNode(_component_a_switch, {
90281
90646
  size: "small",
90282
90647
  disabled: unref(sheetReadonly2),
90283
90648
  checked: config2.value.sequence_loading_enabled_,
90284
- "onUpdate:checked": _cache[5] || (_cache[5] = ($event) => config2.value.sequence_loading_enabled_ = $event)
90649
+ "onUpdate:checked": _cache[8] || (_cache[8] = ($event) => config2.value.sequence_loading_enabled_ = $event)
90285
90650
  }, null, 8, ["disabled", "checked"])
90286
90651
  ])
90287
90652
  ]),
90288
90653
  _: 1
90289
90654
  }, 8, ["label"])
90290
- ], 64)) : createCommentVNode("", true)
90655
+ ], 64)) : createCommentVNode("", true),
90656
+ createVNode(FormItem, {
90657
+ inline: false,
90658
+ label: _ctx.$t("sys.requiredQtyCalcRule"),
90659
+ class: "justify-between"
90660
+ }, {
90661
+ default: withCtx(() => [
90662
+ createVNode(_component_a_select, {
90663
+ value: config2.value.required_qty_calc_rule_,
90664
+ "onUpdate:value": _cache[9] || (_cache[9] = ($event) => config2.value.required_qty_calc_rule_ = $event),
90665
+ placeholder: _ctx.$t("sys.chooseText")
90666
+ }, {
90667
+ default: withCtx(() => [
90668
+ (openBlock(true), createElementBlock(Fragment, null, renderList(Object.values(unref(RequiredQtyCalcRule)), (item) => {
90669
+ return openBlock(), createBlock(_component_a_select_option, {
90670
+ key: item,
90671
+ value: item
90672
+ }, {
90673
+ default: withCtx(() => [
90674
+ createTextVNode(toDisplayString(_ctx.$t(`sys.RequiredQtyCalcRule.${item}`)), 1)
90675
+ ]),
90676
+ _: 2
90677
+ }, 1032, ["value"]);
90678
+ }), 128))
90679
+ ]),
90680
+ _: 1
90681
+ }, 8, ["value", "placeholder"]),
90682
+ config2.value.required_qty_calc_rule_ === unref(RequiredQtyCalcRule).ProductQty ? (openBlock(), createBlock(_component_a_select, {
90683
+ key: 0,
90684
+ value: config2.value.product_qty_field_,
90685
+ "onUpdate:value": _cache[10] || (_cache[10] = ($event) => config2.value.product_qty_field_ = $event),
90686
+ placeholder: _ctx.$t("sys.pleaseSelectField"),
90687
+ class: "mt10px"
90688
+ }, {
90689
+ default: withCtx(() => [
90690
+ (openBlock(true), createElementBlock(Fragment, null, renderList(fieldsOptions.value, (item) => {
90691
+ return openBlock(), createBlock(_component_a_select_option, {
90692
+ key: item.key,
90693
+ value: item.key
90694
+ }, {
90695
+ default: withCtx(() => [
90696
+ createTextVNode(toDisplayString(item.name), 1)
90697
+ ]),
90698
+ _: 2
90699
+ }, 1032, ["value"]);
90700
+ }), 128))
90701
+ ]),
90702
+ _: 1
90703
+ }, 8, ["value", "placeholder"])) : createCommentVNode("", true)
90704
+ ]),
90705
+ _: 1
90706
+ }, 8, ["label"])
90291
90707
  ], 64)) : createCommentVNode("", true)
90292
90708
  ]),
90293
90709
  _: 1
@@ -91775,7 +92191,51 @@ const sys = {
91775
92191
  displayFields: "显示字段",
91776
92192
  displayFieldsTip: "下拉选项中显示的字段",
91777
92193
  selectDisplayFields: "选择显示字段",
91778
- quickSearchFieldsTip: "作为搜索条件的字段,根据关键字模糊匹配搜索关键字"
92194
+ quickSearchFieldsTip: "作为搜索条件的字段,根据关键字模糊匹配搜索关键字",
92195
+ diagonal: {
92196
+ enableFIeldLabel: "绑定字段",
92197
+ sizeLabel: "分栏数量",
92198
+ directionLabel: "分栏方向",
92199
+ topNameLabel: "上分栏名称",
92200
+ bottomNameLabel: "下分栏名称",
92201
+ middleNameLabel: "中分栏名称",
92202
+ size2: "2 栏",
92203
+ size3: "3 栏",
92204
+ sizeEnum: {
92205
+ 2: "两栏",
92206
+ 3: "三栏"
92207
+ },
92208
+ directionEnum: {
92209
+ forward: "向左分栏",
92210
+ backward: "向右分栏"
92211
+ },
92212
+ vertexLabel: "放射顶点",
92213
+ vertexEnum: {
92214
+ topLeft: "左上",
92215
+ topRight: "右上",
92216
+ bottomLeft: "左下",
92217
+ bottomRight: "右下"
92218
+ }
92219
+ },
92220
+ enableBarcodeParseRule: "是否启用条码解析",
92221
+ params: "参数",
92222
+ ScanParamType: {
92223
+ lot: "物料批次",
92224
+ uniqueCode: "唯一码"
92225
+ },
92226
+ requiredQtyCalcRule: "需求数量计算规则",
92227
+ enableInitMaterial: "是否初始化物料",
92228
+ pleaseSelectField: "请选择字段",
92229
+ expandConfig: "展开配置",
92230
+ collapseConfig: "收起配置",
92231
+ scanRuleTip: "默认映射规则:条码批次 → 批次字段,条码物料编码 → 物料编码字段,条码有效期 → 有效期字段",
92232
+ RequiredQtyCalcRule: {
92233
+ lotQty: "按批次数量计算上料数量",
92234
+ productQty: "按表单生产数量计算上料数量"
92235
+ },
92236
+ assocFilter: "关联过滤",
92237
+ assocFilterBySourceField: "根据源字段过滤",
92238
+ assocFilterTip: "当前字段可根据「源字段」在表单中的当前值过滤;已选的值保留,不被清除"
91779
92239
  };
91780
92240
  const __vite_glob_0_0$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91781
92241
  __proto__: null,