@gct-paas/excel 0.1.28-beta.47 → 0.1.28-beta.49

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 (36) hide show
  1. package/dist/{barcode-design-CBW-9rfZ.js → barcode-design-UQyluywP.js} +1 -1
  2. package/dist/base/index.es.js +14 -4
  3. package/dist/{diagonal-design-Hi1qvgUy.js → diagonal-design-bGGzn_Wt.js} +1 -1
  4. package/dist/excel.css +1 -1
  5. package/dist/{exceljs.min-fqXZ76kX.js → exceljs.min-BxkFiHRf.js} +1 -1
  6. package/dist/{font-editor-DpyciLyF.js → font-editor-BBNgoyoK.js} +1 -1
  7. package/dist/{index-DpyTfSPo.js → index-BbRU7v-W.js} +1 -1
  8. package/dist/{index-BCPPBXiD.js → index-Bu5KxbKA.js} +1 -1
  9. package/dist/{index-mEtXTChk.js → index-CY_9UWH1.js} +1 -1
  10. package/dist/{index-BtVSQyJw.js → index-CuwWhVy-.js} +1 -1
  11. package/dist/{index-CB00bUHl.js → index-DapZh4vf.js} +46 -21
  12. package/dist/{index-BMqC23D3.js → index-FJwxWmrK.js} +1 -1
  13. package/dist/{index-ldPXxuoy.js → index-JYTz2lAb.js} +1 -1
  14. package/dist/{index-t5fgW846.js → index-R0Xrpn-f.js} +1 -1
  15. package/dist/{index-CJlVereU.js → index-f4FwucgP.js} +1 -1
  16. package/dist/index.es.js +1 -1
  17. package/dist/{pagination-design-BYqCOQb3.js → pagination-design-D2f9xg95.js} +1 -1
  18. package/dist/paper-widget-design-COSbrtAL.js +4 -0
  19. package/dist/{qrcode-design-BMDwrQbO.js → qrcode-design-DuLbid5Q.js} +1 -1
  20. package/dist/{single-field-drop-2RNiP7Iq.js → single-field-drop-BpdZOAYb.js} +1 -1
  21. package/dist/{text-design-DWvVOVku.js → text-design-CwR0nlo0.js} +1 -1
  22. package/dist/{trace-like-wrapper-BWtPIIme.js → trace-like-wrapper-CDVQC9nc.js} +1 -1
  23. package/dist/{value-editor.vue_vue_type_style_index_0_lang-mVrvhk6d.js → value-editor.vue_vue_type_style_index_0_lang-B6OHtKgu.js} +1 -1
  24. package/dist/{widget-barcode-B1YMUuiT.js → widget-barcode-BwVnh-YN.js} +2 -2
  25. package/dist/{widget-diagonal-CT5SDAkX.js → widget-diagonal-CrwmwCig.js} +4 -6
  26. package/dist/{widget-image-CZcII1gW.js → widget-image-BBUd3Sds.js} +1 -1
  27. package/dist/{widget-line-BShhFVLD.js → widget-line-BrtK1Cyg.js} +1 -1
  28. package/dist/{widget-pagination-B0r8CGuN.js → widget-pagination-CL4-9x6C.js} +2 -2
  29. package/dist/{widget-power-Bl5pTwIr.js → widget-power-CM63pEBI.js} +2 -2
  30. package/dist/{widget-qrcode-DS8iQeQH.js → widget-qrcode-CKaQeTLP.js} +2 -2
  31. package/dist/{widget-rangelimit-d5wRFVX7.js → widget-rangelimit-CXU8rtul.js} +2 -2
  32. package/dist/{widget-serialnumber-VlCPJiYt.js → widget-serialnumber-DyIKmcmC.js} +1 -1
  33. package/dist/{widget-text-GnMDqigF.js → widget-text-s757UF00.js} +3 -3
  34. package/dist/{widget-timediff-BRk7gJzT.js → widget-timediff-C6mIOI8p.js} +1 -1
  35. package/package.json +1 -1
  36. package/dist/paper-widget-design-D_aMRpTQ.js +0 -4
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeStyle, normalizeClass, createElementVNode, toDisplayString, createCommentVNode } from "vue";
2
2
  import { pick } from "lodash-es";
3
- import { u as useSpreadSheet, a as useModelFields, l as loadBwip } from "./index-CB00bUHl.js";
3
+ import { u as useSpreadSheet, a as useModelFields, l as loadBwip } from "./index-DapZh4vf.js";
4
4
  import { M as PaperWidgeValueType, a4 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BviS9x-o.js";
5
5
  import "dayjs";
6
6
  import "ant-design-vue";
@@ -413,7 +413,7 @@ function applyOptionFill(rowData, option, mappings) {
413
413
  }
414
414
  }
415
415
  }
416
- function applyAllocatePartTd(params, partField, mode) {
416
+ function applyAllocatePartTd(params, partField, mode, inventoryBinding) {
417
417
  const { field, tdHandler } = params;
418
418
  if (field !== partField) return;
419
419
  tdHandler.mergeTd({
@@ -421,6 +421,7 @@ function applyAllocatePartTd(params, partField, mode) {
421
421
  props: {
422
422
  customRenderTag: "allocatePart",
423
423
  partSelectMode: mode,
424
+ inventoryBinding,
424
425
  newSpecificConfig: {
425
426
  newOptions: []
426
427
  }
@@ -445,7 +446,10 @@ class WarehouseOutboundTableCore extends ProfileDrivenSubTableCore {
445
446
  return this.factory.ctx.paramsConfig?.warehouseId;
446
447
  }
447
448
  handleFieldTd = (params) => {
448
- applyAllocatePartTd(params, F$4.part, "inventory");
449
+ applyAllocatePartTd(params, F$4.part, "inventory", {
450
+ formField: F$4.inventory,
451
+ optionField: "id_"
452
+ });
449
453
  super.handleFieldTd(params);
450
454
  };
451
455
  calcFieldQuery = (params) => {
@@ -465,7 +469,10 @@ class PartStocktakeTableCore extends ProfileDrivenSubTableCore {
465
469
  return this.factory.ctx.paramsConfig?.warehouseId;
466
470
  }
467
471
  handleFieldTd = (params) => {
468
- applyAllocatePartTd(params, F$2.part, "inventory");
472
+ applyAllocatePartTd(params, F$2.part, "inventory", {
473
+ formField: F$2.inventory,
474
+ optionField: "id_"
475
+ });
469
476
  super.handleFieldTd(params);
470
477
  };
471
478
  calcFieldQuery = (params) => {
@@ -489,7 +496,10 @@ class DevicePartConsumeTableCore extends ProfileDrivenSubTableCore {
489
496
  return this.factory.ctx.paramsConfig?.warehouseId;
490
497
  }
491
498
  handleFieldTd = (params) => {
492
- applyAllocatePartTd(params, F$1.part, "inventory");
499
+ applyAllocatePartTd(params, F$1.part, "inventory", {
500
+ formField: F$1.inventory,
501
+ optionField: "id_"
502
+ });
493
503
  super.handleFieldTd(params);
494
504
  };
495
505
  calcFieldQuery = (params) => {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createBlock } from "vue";
2
- import { a as useModelFields, D as Diagonal } from "./index-CB00bUHl.js";
2
+ import { a as useModelFields, D as Diagonal } from "./index-DapZh4vf.js";
3
3
  import { ah as resolveDiagonalVertex, a4 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BviS9x-o.js";
4
4
  import "lodash-es";
5
5
  import "dayjs";
package/dist/excel.css CHANGED
@@ -22071,7 +22071,7 @@ svg[data-v-9a7c8184] {
22071
22071
  .base-vxe-search-form-container .ant-input-affix-wrapper[data-v-d7ef4df0] .ant-input {
22072
22072
  background: #f6f8fa;
22073
22073
  }
22074
- .allocate-part__dropdown[data-v-0b6fbc52] {
22074
+ .allocate-part__dropdown[data-v-0f86f37a] {
22075
22075
  height: 520px;
22076
22076
  padding: 6px 10px;
22077
22077
  }
@@ -1,5 +1,5 @@
1
1
  import { I as commonjsGlobal, J as getDefaultExportFromCjs } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BviS9x-o.js";
2
- import { c as commonjsRequire } from "./index-CB00bUHl.js";
2
+ import { c as commonjsRequire } from "./index-DapZh4vf.js";
3
3
  function _mergeNamespaces(n, m) {
4
4
  for (var i = 0; i < m.length; i++) {
5
5
  const e = m[i];
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, unref, normalizeClass, withCtx, normalizeStyle } from "vue";
2
2
  import { A as AlignEditor } from "./align-editor-aEWznFoT.js";
3
3
  import { pick } from "lodash-es";
4
- import { n as _sfc_main$1, C as ColorPicker } from "./index-CB00bUHl.js";
4
+ import { n as _sfc_main$1, C as ColorPicker } from "./index-DapZh4vf.js";
5
5
  import { a4 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BviS9x-o.js";
6
6
  const _hoisted_1 = { class: "ks-row-middle mb-6px" };
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,5 +1,5 @@
1
1
  import { pick, isEmpty, has, cloneDeep, get } from "lodash-es";
2
- import { A as AsyncGctOnlineComponents, g as getFieldWidget } from "./index-CB00bUHl.js";
2
+ import { A as AsyncGctOnlineComponents, g as getFieldWidget } from "./index-DapZh4vf.js";
3
3
  import { C as ComponentTypeEnum, x as CellType, n as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BviS9x-o.js";
4
4
  import "vue";
5
5
  import "dayjs";
@@ -4,7 +4,7 @@ import "vue";
4
4
  import { pick } from "lodash-es";
5
5
  import "dayjs";
6
6
  import "ant-design-vue";
7
- import { g as getFieldWidget } from "./index-CB00bUHl.js";
7
+ import { g as getFieldWidget } from "./index-DapZh4vf.js";
8
8
  class CombineFields {
9
9
  component = ComponentTypeEnum.CombineFields;
10
10
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum, O as Orientation, $ as BooleanShowMode, _ as La
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { g as getFieldWidget } from "./index-CB00bUHl.js";
6
+ import { g as getFieldWidget } from "./index-DapZh4vf.js";
7
7
  import { B as BaseComponent } from "./BaseComponent-9YPaGJfR.js";
8
8
  class Switch extends BaseComponent {
9
9
  component = ComponentTypeEnum.Switch;
@@ -4,7 +4,7 @@ import "lodash-es";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
6
  import { B as BaseComponent } from "./BaseComponent-9YPaGJfR.js";
7
- import { g as getTraceLikeSelectProps } from "./trace-like-wrapper-BWtPIIme.js";
7
+ import { g as getTraceLikeSelectProps } from "./trace-like-wrapper-CDVQC9nc.js";
8
8
  class RdoSelect extends BaseComponent {
9
9
  component = ComponentTypeEnum.RdoSelect;
10
10
  wrapperCmpConfig({ data }) {
@@ -1218,7 +1218,7 @@ function openWindow(url, opt) {
1218
1218
  const FieldPropLabels = Object.entries(FIELD_PROP_LABEL_MAP);
1219
1219
  const FieldTypeLabels = Object.entries(FIELD_TYPE_LABEL_MAP);
1220
1220
  async function createWorkbook() {
1221
- const ExcelJs = (await import("./exceljs.min-fqXZ76kX.js").then((n) => n.e)).default;
1221
+ const ExcelJs = (await import("./exceljs.min-BxkFiHRf.js").then((n) => n.e)).default;
1222
1222
  return new ExcelJs.Workbook();
1223
1223
  }
1224
1224
  class XlsxParser {
@@ -1505,25 +1505,25 @@ class XlsxParser {
1505
1505
  }
1506
1506
  function asyncImportClassModules() {
1507
1507
  const modules = /* @__PURE__ */ Object.assign({
1508
- "./_field_/auto-complete/index.ts": () => import("./index-BMqC23D3.js").then((m) => m["default"]),
1508
+ "./_field_/auto-complete/index.ts": () => import("./index-FJwxWmrK.js").then((m) => m["default"]),
1509
1509
  "./_field_/datepicker/index.ts": () => import("./index-kZ3vhOMA.js").then((m) => m["default"]),
1510
1510
  "./_field_/datetimepicker/index.ts": () => import("./index-Co8dy8tY.js").then((m) => m["default"]),
1511
1511
  "./_field_/department/index.ts": () => import("./index-q0gBBMoc.js").then((m) => m["default"]),
1512
- "./_field_/enum-select/index.ts": () => import("./index-CJlVereU.js").then((m) => m["default"]),
1512
+ "./_field_/enum-select/index.ts": () => import("./index-f4FwucgP.js").then((m) => m["default"]),
1513
1513
  "./_field_/input/index.ts": () => import("./index-DUomn6r4.js").then((m) => m["default"]),
1514
1514
  "./_field_/inputdouble/index.ts": () => import("./index-Dxiaj_9W.js").then((m) => m["default"]),
1515
1515
  "./_field_/inputnumber/index.ts": () => import("./index-BNdFxtuu.js").then((m) => m["default"]),
1516
- "./_field_/rdo-select/index.ts": () => import("./index-BtVSQyJw.js").then((m) => m["default"]),
1517
- "./_field_/select/index.ts": () => import("./index-t5fgW846.js").then((m) => m["default"]),
1516
+ "./_field_/rdo-select/index.ts": () => import("./index-CuwWhVy-.js").then((m) => m["default"]),
1517
+ "./_field_/select/index.ts": () => import("./index-R0Xrpn-f.js").then((m) => m["default"]),
1518
1518
  "./_field_/sign/index.ts": () => import("./index-B94zjbXB.js").then((m) => m["default"]),
1519
- "./_field_/switch/index.ts": () => import("./index-mEtXTChk.js").then((m) => m["default"]),
1519
+ "./_field_/switch/index.ts": () => import("./index-CY_9UWH1.js").then((m) => m["default"]),
1520
1520
  "./_field_/textarea/index.ts": () => import("./index-DzZ4dTHg.js").then((m) => m["default"]),
1521
1521
  "./_field_/timepicker/index.ts": () => import("./index-BVy2F-LZ.js").then((m) => m["default"]),
1522
1522
  "./_field_/upload-file/index.ts": () => import("./index-BI1w0HuA.js").then((m) => m["default"]),
1523
1523
  "./_field_/upload-image/index.ts": () => import("./index-D3RlguP-.js").then((m) => m["default"]),
1524
1524
  "./_field_/userpicker/index.ts": () => import("./index-DVCumM_5.js").then((m) => m["default"]),
1525
1525
  "./_widget_/barcode/index.ts": () => import("./index-s7YNVpgF.js").then((m) => m["default"]),
1526
- "./_widget_/combine-fields/index.ts": () => import("./index-BCPPBXiD.js").then((m) => m["default"]),
1526
+ "./_widget_/combine-fields/index.ts": () => import("./index-Bu5KxbKA.js").then((m) => m["default"]),
1527
1527
  "./_widget_/diagonal/index.ts": () => import("./index-DAokF2RK.js").then((m) => m["default"]),
1528
1528
  "./_widget_/dyn-value/index.ts": () => import("./index-DXvugQoP.js").then((m) => m["default"]),
1529
1529
  "./_widget_/image/index.ts": () => import("./index-BIyoFjsu.js").then((m) => m["default"]),
@@ -1535,8 +1535,8 @@ function asyncImportClassModules() {
1535
1535
  "./_widget_/sub-table/index.ts": () => import("./index-BzNleuvF.js").then((m) => m["default"]),
1536
1536
  "./_widget_/timediff/index.ts": () => import("./index-RHv1ncwn.js").then((m) => m["default"]),
1537
1537
  "./paper/index.ts": () => import("./index-CJgeCzTz.js").then((m) => m["default"]),
1538
- "./td/index.ts": () => import("./index-DpyTfSPo.js").then((m) => m["default"]),
1539
- "./tr/index.ts": () => import("./index-ldPXxuoy.js").then((m) => m["default"])
1538
+ "./td/index.ts": () => import("./index-BbRU7v-W.js").then((m) => m["default"]),
1539
+ "./tr/index.ts": () => import("./index-JYTz2lAb.js").then((m) => m["default"])
1540
1540
  });
1541
1541
  return modules;
1542
1542
  }
@@ -15952,7 +15952,7 @@ function asyncImportWidgetConfigList() {
15952
15952
  return widgetConfigList;
15953
15953
  }
15954
15954
  function asyncImportWidgetDesign() {
15955
- const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "./barcode/barcode-design.vue": () => import("./barcode-design-CBW-9rfZ.js"), "./diagonal/diagonal-design.vue": () => import("./diagonal-design-Hi1qvgUy.js"), "./image/image-design.vue": () => import("./image-design-CV8ivT4U.js"), "./line/line-design.vue": () => Promise.resolve().then(() => lineDesign), "./pagination/pagination-design.vue": () => import("./pagination-design-BYqCOQb3.js"), "./paper-widget-design.vue": () => import("./paper-widget-design-D_aMRpTQ.js"), "./power/power-design.vue": () => Promise.resolve().then(() => powerDesign), "./qrcode/qrcode-design.vue": () => import("./qrcode-design-BMDwrQbO.js"), "./rangelimit/rangelimit-design.vue": () => Promise.resolve().then(() => rangelimitDesign), "./serialnumber/serialnumber-design.vue": () => import("./serialnumber-design-CYdELIDU.js"), "./text/text-design.vue": () => import("./text-design-DWvVOVku.js"), "./timediff/timediff-design.vue": () => import("./timediff-design-INgy9LDa.js") });
15955
+ const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "./barcode/barcode-design.vue": () => import("./barcode-design-UQyluywP.js"), "./diagonal/diagonal-design.vue": () => import("./diagonal-design-bGGzn_Wt.js"), "./image/image-design.vue": () => import("./image-design-CV8ivT4U.js"), "./line/line-design.vue": () => Promise.resolve().then(() => lineDesign), "./pagination/pagination-design.vue": () => import("./pagination-design-D2f9xg95.js"), "./paper-widget-design.vue": () => import("./paper-widget-design-COSbrtAL.js"), "./power/power-design.vue": () => Promise.resolve().then(() => powerDesign), "./qrcode/qrcode-design.vue": () => import("./qrcode-design-DuLbid5Q.js"), "./rangelimit/rangelimit-design.vue": () => Promise.resolve().then(() => rangelimitDesign), "./serialnumber/serialnumber-design.vue": () => import("./serialnumber-design-CYdELIDU.js"), "./text/text-design.vue": () => import("./text-design-CwR0nlo0.js"), "./timediff/timediff-design.vue": () => import("./timediff-design-INgy9LDa.js") });
15956
15956
  const widgetDesignMap = Object.keys(modules).reduce((map2, path) => {
15957
15957
  const mKey = path.match(/\/([a-z]+)-design\.vue$/)?.[1];
15958
15958
  if (mKey) {
@@ -29758,7 +29758,7 @@ const _sfc_main$4x = /* @__PURE__ */ defineComponent({
29758
29758
  });
29759
29759
  const FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$4x, [["__scopeId", "data-v-463388f0"]]);
29760
29760
  function asyncImportWidgetProp() {
29761
- const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-B1YMUuiT.js"), "./widget-diagonal.vue": () => import("./widget-diagonal-CT5SDAkX.js"), "./widget-image.vue": () => import("./widget-image-CZcII1gW.js"), "./widget-line.vue": () => import("./widget-line-BShhFVLD.js"), "./widget-pagination.vue": () => import("./widget-pagination-B0r8CGuN.js"), "./widget-power.vue": () => import("./widget-power-Bl5pTwIr.js"), "./widget-qrcode.vue": () => import("./widget-qrcode-DS8iQeQH.js"), "./widget-rangelimit.vue": () => import("./widget-rangelimit-d5wRFVX7.js"), "./widget-serialnumber.vue": () => import("./widget-serialnumber-VlCPJiYt.js"), "./widget-text.vue": () => import("./widget-text-GnMDqigF.js"), "./widget-timediff.vue": () => import("./widget-timediff-BRk7gJzT.js") });
29761
+ const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-BwVnh-YN.js"), "./widget-diagonal.vue": () => import("./widget-diagonal-CrwmwCig.js"), "./widget-image.vue": () => import("./widget-image-BBUd3Sds.js"), "./widget-line.vue": () => import("./widget-line-BrtK1Cyg.js"), "./widget-pagination.vue": () => import("./widget-pagination-CL4-9x6C.js"), "./widget-power.vue": () => import("./widget-power-CM63pEBI.js"), "./widget-qrcode.vue": () => import("./widget-qrcode-CKaQeTLP.js"), "./widget-rangelimit.vue": () => import("./widget-rangelimit-CXU8rtul.js"), "./widget-serialnumber.vue": () => import("./widget-serialnumber-DyIKmcmC.js"), "./widget-text.vue": () => import("./widget-text-s757UF00.js"), "./widget-timediff.vue": () => import("./widget-timediff-C6mIOI8p.js") });
29762
29762
  const widgetPropMap = Object.keys(modules).reduce((map2, path) => {
29763
29763
  const mKey = path.match(/\/widget-([a-z]+)\.vue$/)?.[1];
29764
29764
  if (mKey) {
@@ -61898,6 +61898,13 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
61898
61898
  return mode === "inventory" ? "inventory" : "master";
61899
61899
  });
61900
61900
  const isInventory = computed(() => partSelectMode.value === "inventory");
61901
+ const inventoryBinding = computed(
61902
+ () => props2.widget.props.inventoryBinding
61903
+ );
61904
+ const inventoryId = computed(() => {
61905
+ const formField = inventoryBinding.value?.formField;
61906
+ return isInventory.value && formField ? props2.formData[formField] : void 0;
61907
+ });
61901
61908
  const dictColumn = {
61902
61909
  minWidth: 120,
61903
61910
  showOverflow: "tooltip",
@@ -61953,7 +61960,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
61953
61960
  });
61954
61961
  const highlightValue = computed(() => {
61955
61962
  if (isInventory.value) {
61956
- return props2.formData.inventory_id_ || currentValue.value;
61963
+ return inventoryId.value || currentValue.value;
61957
61964
  }
61958
61965
  return currentValue.value;
61959
61966
  });
@@ -62041,7 +62048,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
62041
62048
  body.query_keyword_ = keyword2;
62042
62049
  }
62043
62050
  if (ids?.length) {
62044
- body[`${idField}.in`] = ids;
62051
+ body[`${idField}`] = ids;
62045
62052
  }
62046
62053
  return api.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey(
62047
62054
  {
@@ -62091,8 +62098,9 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
62091
62098
  await search(keyword2);
62092
62099
  }, 500);
62093
62100
  watch(
62094
- () => currentValue.value,
62095
- async (val, prev) => {
62101
+ () => [currentValue.value, inventoryId.value],
62102
+ async ([val], oldValues) => {
62103
+ const prev = oldValues?.[0];
62096
62104
  if (prev && !val) {
62097
62105
  onClear();
62098
62106
  }
@@ -62130,21 +62138,25 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
62130
62138
  _item: raw
62131
62139
  };
62132
62140
  }
62141
+ let initialValueRequestId = 0;
62133
62142
  async function checkInitialValue() {
62134
- if (currentValue.value && !initialOptions.some((o) => o.value === currentValue.value)) {
62135
- const remoteOption = await getOptionByIds([currentValue.value]);
62143
+ const requestId = ++initialValueRequestId;
62144
+ const value = currentValue.value;
62145
+ if (value && !initialOptions.some((o) => o.value === value)) {
62146
+ const remoteOption = await getOptionByIds([value]);
62147
+ if (requestId !== initialValueRequestId) return;
62136
62148
  state.data = [...remoteOption, ...initialOptions];
62137
62149
  } else {
62138
62150
  state.data = initialOptions;
62139
62151
  }
62140
62152
  }
62141
62153
  async function getOptionByIds(ids) {
62142
- const inventoryId = props2.formData.inventory_id_;
62154
+ const currentInventoryId = inventoryId.value;
62143
62155
  const res = isInventory.value ? await fetchInventory({
62144
62156
  pageNo: 1,
62145
62157
  pageSize: ids.length || 20,
62146
- ids: inventoryId ? [inventoryId] : ids,
62147
- idField: inventoryId ? "id_" : "part_id_"
62158
+ ids: currentInventoryId ? [currentInventoryId] : ids,
62159
+ idField: currentInventoryId ? "id_" : "part_id_"
62148
62160
  }) : await fetchMaster({
62149
62161
  pageNo: 1,
62150
62162
  pageSize: ids.length || 20,
@@ -62152,8 +62164,20 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
62152
62164
  });
62153
62165
  return transformUtils.transformSourceData2SubTable(res?.data || [], res?.dict || {}).map(mapRowToOption);
62154
62166
  }
62167
+ function handleValueChange(value) {
62168
+ if (!isNil(value)) return;
62169
+ const formField = inventoryBinding.value?.formField;
62170
+ if (isInventory.value && formField) {
62171
+ props2.formData[formField] = void 0;
62172
+ }
62173
+ emit2("change", void 0);
62174
+ }
62155
62175
  async function changeSelect(info) {
62156
62176
  const raw = info?._item ?? info ?? {};
62177
+ const binding = inventoryBinding.value;
62178
+ if (isInventory.value && binding) {
62179
+ props2.formData[binding.formField] = raw[binding.optionField];
62180
+ }
62157
62181
  currentValue.value = raw[fieldValueAttr.value] || raw.id_;
62158
62182
  open.value = false;
62159
62183
  emit2("change", raw);
@@ -62179,6 +62203,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
62179
62203
  widget: __props.widget,
62180
62204
  open: open.value,
62181
62205
  onSearch: handleSearch,
62206
+ onChange: handleValueChange,
62182
62207
  onClick: onSelectClick,
62183
62208
  ref_key: "selectRef",
62184
62209
  ref: selectRef
@@ -62206,7 +62231,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
62206
62231
  };
62207
62232
  }
62208
62233
  });
62209
- const AllocatePart = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["__scopeId", "data-v-0b6fbc52"]]);
62234
+ const AllocatePart = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["__scopeId", "data-v-0f86f37a"]]);
62210
62235
  const _hoisted_1$T = { class: "trace-device__dropdown" };
62211
62236
  const _sfc_main$1t = /* @__PURE__ */ defineComponent({
62212
62237
  __name: "trace-device",
@@ -4,7 +4,7 @@ import "lodash-es";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
6
  import { B as BaseComponent } from "./BaseComponent-9YPaGJfR.js";
7
- import { g as getTraceLikeSelectProps } from "./trace-like-wrapper-BWtPIIme.js";
7
+ import { g as getTraceLikeSelectProps } from "./trace-like-wrapper-CDVQC9nc.js";
8
8
  class AutoComplete extends BaseComponent {
9
9
  component = ComponentTypeEnum.AutoComplete;
10
10
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import "vue";
3
3
  import { pick, has, isEmpty, cloneDeep, get } from "lodash-es";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { A as AsyncGctOnlineComponents } from "./index-CB00bUHl.js";
6
+ import { A as AsyncGctOnlineComponents } from "./index-DapZh4vf.js";
7
7
  class Tr {
8
8
  component = "tr";
9
9
  wrapperCmpConfig({ data, parent }) {
@@ -4,7 +4,7 @@ import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
6
  import { B as BaseComponent } from "./BaseComponent-9YPaGJfR.js";
7
- import { i as isInventoryProductField, s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig, I as INVENTORY_QUICK_SEARCH_FIELDS } from "./index-CB00bUHl.js";
7
+ import { i as isInventoryProductField, s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig, I as INVENTORY_QUICK_SEARCH_FIELDS } from "./index-DapZh4vf.js";
8
8
  class Select extends BaseComponent {
9
9
  component = ComponentTypeEnum.Select;
10
10
  wrapperCmpConfig({ data }) {
@@ -4,7 +4,7 @@ import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
6
  import { B as BaseComponent } from "./BaseComponent-9YPaGJfR.js";
7
- import { g as getFieldWidget } from "./index-CB00bUHl.js";
7
+ import { g as getFieldWidget } from "./index-DapZh4vf.js";
8
8
  class EnumSelect extends BaseComponent {
9
9
  component = ComponentTypeEnum.EnumSelect;
10
10
  wrapperCmpConfig({ data }) {
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { p, q, t, v, w, x, y, z, E, B, G, H, J, K, M, N, O, Q, U, W, X, Y, Z, $, k, a0, a1, m, a2, P, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, a } from "./index-CB00bUHl.js";
1
+ import { p, q, t, v, w, x, y, z, E, B, G, H, J, K, M, N, O, Q, U, W, X, Y, Z, $, k, a0, a1, m, a2, P, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, a } from "./index-DapZh4vf.js";
2
2
  import { O as O2, _, V } from "./online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-BGrVMSEF.js";
3
3
  export {
4
4
  p as AiTmplEditor,
@@ -3,7 +3,7 @@ import { P as PaginationFormat } from "./dynamic-table-action.vue_vue_type_style
3
3
  import "lodash-es";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { b as calcText } from "./index-CB00bUHl.js";
6
+ import { b as calcText } from "./index-DapZh4vf.js";
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  __name: "pagination-design",
9
9
  props: {
@@ -0,0 +1,4 @@
1
+ import { _ as _sfc_main } from "./index-DapZh4vf.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeClass, createElementVNode } from "vue";
2
- import { B as BwipCodeTypeOptions, l as loadBwip } from "./index-CB00bUHl.js";
2
+ import { B as BwipCodeTypeOptions, l as loadBwip } from "./index-DapZh4vf.js";
3
3
  const _hoisted_1 = ["src"];
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "qrcode-design",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, unref, normalizeClass } from "vue";
2
2
  import { u as useNamespace } from "./use-namespace-BxkK4ofX.js";
3
- import { d as useDrop, T as TransferType, a as useModelFields, e as getFieldIcon, S as SingleDrop } from "./index-CB00bUHl.js";
3
+ import { d as useDrop, T as TransferType, a as useModelFields, e as getFieldIcon, S as SingleDrop } from "./index-DapZh4vf.js";
4
4
  import { a4 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BviS9x-o.js";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "single-field-drop",
@@ -3,7 +3,7 @@ import { pick } from "lodash-es";
3
3
  import { M as PaperWidgeValueType, a4 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BviS9x-o.js";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { u as useSpreadSheet, a as useModelFields } from "./index-CB00bUHl.js";
6
+ import { u as useSpreadSheet, a as useModelFields } from "./index-DapZh4vf.js";
7
7
  const _hoisted_1 = { class: "ws-pre-wrap" };
8
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
9
  __name: "text-design",
@@ -3,7 +3,7 @@ import { F as FIELD_TYPE, b0 as BindCmpStyleEnum } from "./dynamic-table-action.
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig } from "./index-CB00bUHl.js";
6
+ import { s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig } from "./index-DapZh4vf.js";
7
7
  function getTraceLikeSelectProps(data) {
8
8
  const isSubtableMfgOrder = !!data.info.subModelKey && (data.info.bizType === FIELD_TYPE.MFG_ORDER || data.info.fieldType === FIELD_TYPE.MFG_ORDER);
9
9
  const displayFields = isSubtableMfgOrder ? [{ key: "code_", name: $t("sys.edhr.field.code") }] : showDisplayAndSearchConfig(data.info) ? get(data.info, "displayFields") : void 0;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, createElementVNode, unref, createCommentVNode } from "vue";
2
2
  import { pick } from "lodash-es";
3
- import { a as useModelFields, u as useSpreadSheet, d as useDrop, P as PanelType, T as TransferType, V as ValueEditorFieldDropBoxId, S as SingleDrop, e as getFieldIcon } from "./index-CB00bUHl.js";
3
+ import { a as useModelFields, u as useSpreadSheet, d as useDrop, P as PanelType, T as TransferType, V as ValueEditorFieldDropBoxId, S as SingleDrop, e as getFieldIcon } from "./index-DapZh4vf.js";
4
4
  import { M as PaperWidgeValueType, ap as ExpressionModeEnum, ar as ExpressionTabEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BviS9x-o.js";
5
5
  import "dayjs";
6
6
  import "ant-design-vue";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, createBlock, createTextVNode, toDisplayString, createElementVNode } from "vue";
2
- import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-CB00bUHl.js";
3
- import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-mVrvhk6d.js";
2
+ import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-DapZh4vf.js";
3
+ import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-B6OHtKgu.js";
4
4
  import { n as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BviS9x-o.js";
5
5
  import "lodash-es";
6
6
  import "dayjs";
@@ -1,11 +1,11 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, withCtx, createElementVNode, toDisplayString, createVNode, watch, createElementBlock, Fragment, createCommentVNode } from "vue";
2
- import { F as FormItem, f as SelectEx } from "./index-CB00bUHl.js";
2
+ import { F as FormItem, f as SelectEx } from "./index-DapZh4vf.js";
3
3
  import { defaults } from "lodash-es";
4
4
  import { F as FIELD_TYPE, a4 as _export_sfc, ac as DiagonalDirection, ag as DiagonalVertex, cY as migrateDiagonalDirectionToVertex } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BviS9x-o.js";
5
5
  import "dayjs";
6
6
  import { message } from "ant-design-vue";
7
7
  import { u as useNamespace } from "./use-namespace-BxkK4ofX.js";
8
- import { S as SingleFieldDrop } from "./single-field-drop-2RNiP7Iq.js";
8
+ import { S as SingleFieldDrop } from "./single-field-drop-BpdZOAYb.js";
9
9
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
10
10
  __name: "diagonal-name-editor",
11
11
  props: {
@@ -187,8 +187,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
187
187
  return openBlock(), createElementBlock(Fragment, null, [
188
188
  createVNode(FormItem, {
189
189
  label: _ctx.$t("sys.diagonal.sizeLabel"),
190
- inline: false,
191
- class: "important-mt-0px"
190
+ inline: false
192
191
  }, {
193
192
  default: withCtx(() => [
194
193
  createVNode(unref(SelectEx), {
@@ -207,8 +206,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
207
206
  __props.widget.size === 2 ? (openBlock(), createBlock(FormItem, {
208
207
  key: 0,
209
208
  label: _ctx.$t("sys.diagonal.directionLabel"),
210
- inline: false,
211
- class: "important-mt-0px"
209
+ inline: false
212
210
  }, {
213
211
  default: withCtx(() => [
214
212
  createVNode(unref(SelectEx), {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, reactive, ref, computed, watchEffect, createVNode, unref, createTextVNode, render, resolveComponent, openBlock, createElementBlock, Fragment, withCtx, createElementVNode, withModifiers, createCommentVNode, toDisplayString, renderList, createBlock } from "vue";
2
- import { L as LeftOutlined, R as RightOutlined, h as isClient, u as useSpreadSheet, F as FormItem, j as ImgParser } from "./index-CB00bUHl.js";
2
+ import { L as LeftOutlined, R as RightOutlined, h as isClient, u as useSpreadSheet, F as FormItem, j as ImgParser } from "./index-DapZh4vf.js";
3
3
  import { S as SizeEditor } from "./size-editor-Dr3sVcUl.js";
4
4
  import { message } from "ant-design-vue";
5
5
  import { ad as WidgetImageSizeMode, a4 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BviS9x-o.js";
@@ -3,7 +3,7 @@ import { ae as LineDirection } from "./dynamic-table-action.vue_vue_type_style_i
3
3
  import "lodash-es";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { F as FormItem, k as LineStyleOptions, C as ColorPicker } from "./index-CB00bUHl.js";
6
+ import { F as FormItem, k as LineStyleOptions, C as ColorPicker } from "./index-DapZh4vf.js";
7
7
  const _hoisted_1 = { class: "ks-row-middle" };
8
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
9
  __name: "widget-line",
@@ -3,10 +3,10 @@ import { P as PaginationFormat } from "./dynamic-table-action.vue_vue_type_style
3
3
  import "lodash-es";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { F as FormItem, m as PaginationFormatOptions } from "./index-CB00bUHl.js";
6
+ import { F as FormItem, m as PaginationFormatOptions } from "./index-DapZh4vf.js";
7
7
  import { S as SizeEditor } from "./size-editor-Dr3sVcUl.js";
8
8
  import { A as AlignEditor } from "./align-editor-aEWznFoT.js";
9
- import { F as FontEditor } from "./font-editor-DpyciLyF.js";
9
+ import { F as FontEditor } from "./font-editor-BBNgoyoK.js";
10
10
  const _hoisted_1 = { class: "pl-6px" };
11
11
  const _hoisted_2 = { class: "pl-6px" };
12
12
  const DefaultCustomFormat = "Page ${no} / ${total}";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, createTextVNode, toDisplayString } from "vue";
2
- import { u as useSpreadSheet, o as useReverseModeling, F as FormItem } from "./index-CB00bUHl.js";
3
- import { S as SingleFieldDrop } from "./single-field-drop-2RNiP7Iq.js";
2
+ import { u as useSpreadSheet, o as useReverseModeling, F as FormItem } from "./index-DapZh4vf.js";
3
+ import { S as SingleFieldDrop } from "./single-field-drop-BpdZOAYb.js";
4
4
  import { u as useNamespace } from "./use-namespace-BxkK4ofX.js";
5
5
  import { F as FIELD_TYPE, a4 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BviS9x-o.js";
6
6
  import { message } from "ant-design-vue";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, createBlock, createTextVNode, toDisplayString } from "vue";
2
- import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-CB00bUHl.js";
3
- import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-mVrvhk6d.js";
2
+ import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-DapZh4vf.js";
3
+ import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-B6OHtKgu.js";
4
4
  import { n as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BviS9x-o.js";
5
5
  import "lodash-es";
6
6
  import "dayjs";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, Fragment, renderList, createVNode, withCtx } from "vue";
2
- import { F as FormItem } from "./index-CB00bUHl.js";
3
- import { S as SingleFieldDrop } from "./single-field-drop-2RNiP7Iq.js";
2
+ import { F as FormItem } from "./index-DapZh4vf.js";
3
+ import { S as SingleFieldDrop } from "./single-field-drop-BpdZOAYb.js";
4
4
  import { u as useNamespace } from "./use-namespace-BxkK4ofX.js";
5
5
  import { F as FIELD_TYPE, a4 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BviS9x-o.js";
6
6
  import { message } from "ant-design-vue";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx } from "vue";
2
- import { F as FormItem } from "./index-CB00bUHl.js";
2
+ import { F as FormItem } from "./index-DapZh4vf.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "widget-serialnumber",
5
5
  props: {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, Fragment, createVNode, withCtx, createElementVNode } from "vue";
2
- import { u as useSpreadSheet, F as FormItem } from "./index-CB00bUHl.js";
3
- import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-mVrvhk6d.js";
2
+ import { u as useSpreadSheet, F as FormItem } from "./index-DapZh4vf.js";
3
+ import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-B6OHtKgu.js";
4
4
  import { S as SizeEditor } from "./size-editor-Dr3sVcUl.js";
5
5
  import { A as AlignEditor } from "./align-editor-aEWznFoT.js";
6
- import { F as FontEditor } from "./font-editor-DpyciLyF.js";
6
+ import { F as FontEditor } from "./font-editor-BBNgoyoK.js";
7
7
  const _hoisted_1 = { class: "pl-6px" };
8
8
  const _hoisted_2 = { class: "pl-6px" };
9
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock, createTextVNode, toDisplayString, createElementVNode } from "vue";
2
- import { u as useSpreadSheet, a as useModelFields, F as FormItem } from "./index-CB00bUHl.js";
2
+ import { u as useSpreadSheet, a as useModelFields, F as FormItem } from "./index-DapZh4vf.js";
3
3
  import { F as FIELD_TYPE, af as TimeDiffFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BviS9x-o.js";
4
4
  import "lodash-es";
5
5
  import "dayjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/excel",
3
- "version": "0.1.28-beta.47",
3
+ "version": "0.1.28-beta.49",
4
4
  "description": "GCT Excel online form rendering",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,4 +0,0 @@
1
- import { _ as _sfc_main } from "./index-CB00bUHl.js";
2
- export {
3
- _sfc_main as default
4
- };