@gct-paas/word 0.1.67 → 0.1.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @gct-paas/word v0.1.67 */
1
+ /*! @gct-paas/word v0.1.68 */
2
2
  import { Fragment, Suspense, Teleport, Transition, TransitionGroup, cloneVNode, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, getCurrentInstance, getCurrentScope, guardReactiveProps, h, inject, isRef, isVNode, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeMount, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, openBlock, provide, reactive, readonly, ref, render, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, toRef, toValue, unref, useCssVars, useModel, useSlots, vModelText, vShow, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
3
3
  import FloatingVue, { PopperWrapper } from "floating-vue";
4
4
  import VueKonva from "vue-konva";
@@ -122504,6 +122504,7 @@ var init_material_consume_table_controller = __esmMin((() => {
122504
122504
  if (this.mcPattern === MaterialConsumptionPatternEnum.RECORD) {
122505
122505
  const { dataManager, rowIndex, subFieldKey } = option;
122506
122506
  const row = (dataManager.getRawData()[subFieldKey] ?? [])[rowIndex];
122507
+ if (!row) throw new Error("请填写数据");
122507
122508
  if (!row.product_id_) throw new Error("物料不能为空");
122508
122509
  this.validateExpiration(row);
122509
122510
  } else await this.bomEntriesValidator.validate(this.actualTableData);
@@ -133538,17 +133539,6 @@ var init_sub_table_action_vue_vue_type_script_setup_true_name_sub_table_action_l
133538
133539
  if (visible) return rows.filter((row) => !row.deleted_);
133539
133540
  return rows;
133540
133541
  };
133541
- /**
133542
- * 确保目标行数据结构已经存在 dataManager 中
133543
- * - 首次填报校验时,填充自动渲染的第一行
133544
- * - 条码扫描时,填充最后一行
133545
- */
133546
- const checkTargetRowThen = (cb) => {
133547
- const { dataManager } = docInst.value;
133548
- const { path, index } = getCtx();
133549
- if (!dataManager.get(`${path}[${index}]`)) dataManager.insertAt(path, index, {});
133550
- setTimeout(cb);
133551
- };
133552
133542
  const readonly = computed(() => {
133553
133543
  const state = resolveWidgetState({
133554
133544
  doc: props.doc,
@@ -133600,19 +133590,15 @@ var init_sub_table_action_vue_vue_type_script_setup_true_name_sub_table_action_l
133600
133590
  if (!ctrl || !valuePath || !subFieldKey) return;
133601
133591
  const { doc } = props;
133602
133592
  const { dataManager, mainModelKey } = doc;
133603
- if (val === "confirm") checkTargetRowThen(() => {
133604
- ctrl.confirm({
133605
- dataManager,
133606
- subFieldKey,
133607
- rowIndex
133608
- }, subModelKey, doc);
133609
- });
133610
- else if (val === "scan") checkTargetRowThen(() => {
133611
- ctrl.openScanModal(tableName, {
133612
- doc,
133613
- subFieldKey,
133614
- subModelKey
133615
- });
133593
+ if (val === "confirm") ctrl.confirm({
133594
+ dataManager,
133595
+ subFieldKey,
133596
+ rowIndex
133597
+ }, subModelKey, doc);
133598
+ else if (val === "scan") ctrl.openScanModal(tableName, {
133599
+ doc,
133600
+ subFieldKey,
133601
+ subModelKey
133616
133602
  });
133617
133603
  else if (val === "edit-row") ctrl.editRow({
133618
133604
  dataManager,
@@ -133629,12 +133615,10 @@ var init_sub_table_action_vue_vue_type_script_setup_true_name_sub_table_action_l
133629
133615
  const { doc } = props;
133630
133616
  const { subRenderer, valuePath, subFieldKey, subModelKey } = getCtx();
133631
133617
  if (!valuePath || !subFieldKey) return;
133632
- if (val === "scan") checkTargetRowThen(() => {
133633
- openWarehouseInventoryScan({
133634
- doc,
133635
- subRenderer,
133636
- subFieldKey
133637
- });
133618
+ if (val === "scan") openWarehouseInventoryScan({
133619
+ doc,
133620
+ subRenderer,
133621
+ subFieldKey
133638
133622
  });
133639
133623
  else if (val === "change-rule") await changeWarehouseInventoryParseRule({
133640
133624
  doc,
@@ -133823,17 +133807,17 @@ var init_sub_table_action_vue_vue_type_script_setup_true_name_sub_table_action_l
133823
133807
  });
133824
133808
  }));
133825
133809
  //#endregion
133826
- //#region src/runtime/canvas/table/render/table-structure-overlay/sub-table-action.vue?vue&type=style&index=0&scoped=e16ba4cf&lang.less
133827
- var init_sub_table_action_vue_vue_type_style_index_0_scoped_e16ba4cf_lang = __esmMin((() => {}));
133810
+ //#region src/runtime/canvas/table/render/table-structure-overlay/sub-table-action.vue?vue&type=style&index=0&scoped=d4a2947b&lang.less
133811
+ var init_sub_table_action_vue_vue_type_style_index_0_scoped_d4a2947b_lang = __esmMin((() => {}));
133828
133812
  //#endregion
133829
133813
  //#region src/runtime/canvas/table/render/table-structure-overlay/sub-table-action.vue
133830
133814
  var sub_table_action_default;
133831
133815
  var init_sub_table_action = __esmMin((() => {
133832
133816
  init_sub_table_action_vue_vue_type_script_setup_true_name_sub_table_action_lang();
133833
133817
  init_sub_table_action_vue_vue_type_script_setup_true_name_sub_table_action_lang();
133834
- init_sub_table_action_vue_vue_type_style_index_0_scoped_e16ba4cf_lang();
133818
+ init_sub_table_action_vue_vue_type_style_index_0_scoped_d4a2947b_lang();
133835
133819
  init__plugin_vue_export_helper();
133836
- sub_table_action_default = /*#__PURE__*/ _plugin_vue_export_helper_default(sub_table_action_vue_vue_type_script_setup_true_name_sub_table_action_lang_default, [["__scopeId", "data-v-e16ba4cf"]]);
133820
+ sub_table_action_default = /*#__PURE__*/ _plugin_vue_export_helper_default(sub_table_action_vue_vue_type_script_setup_true_name_sub_table_action_lang_default, [["__scopeId", "data-v-d4a2947b"]]);
133837
133821
  }));
133838
133822
  //#endregion
133839
133823
  //#region src/runtime/canvas/table/render/table-structure-overlay/index.vue?vue&type=script&setup=true&lang.ts
@@ -148260,9 +148244,9 @@ var online_form_model_select_default = /* @__PURE__ */ defineComponent({
148260
148244
  moduleType
148261
148245
  }).then((res) => {
148262
148246
  if (!(res === null || res === void 0 ? void 0 : res.ok) || !(res === null || res === void 0 ? void 0 : res.params)) return;
148263
- const { modelKey, formId } = res.params;
148247
+ const { modelKey, formSelected } = res.params;
148264
148248
  emit("update:joinModelKey", modelKey);
148265
- localVal.value = formId;
148249
+ localVal.value = formSelected.id;
148266
148250
  });
148267
148251
  };
148268
148252
  return (_ctx, _cache) => {
package/dist/word.css CHANGED
@@ -9433,20 +9433,20 @@ textarea[data-v-2de31883]::placeholder {
9433
9433
  .table-action .row-headers .row-header:last-child .row-add-btn[data-v-c40eef9f] .gct-icon.bottom {
9434
9434
  transform: translateY(-100%);
9435
9435
  }
9436
- .sub-table-action-container[data-v-e16ba4cf] {
9436
+ .sub-table-action-container[data-v-d4a2947b] {
9437
9437
  position: absolute;
9438
9438
  z-index: 999;
9439
9439
  }
9440
- .sub-table-action-bar[data-v-e16ba4cf],
9441
- .sub-table-action-popper[data-v-e16ba4cf] {
9440
+ .sub-table-action-bar[data-v-d4a2947b],
9441
+ .sub-table-action-popper[data-v-d4a2947b] {
9442
9442
  pointer-events: auto;
9443
9443
  user-select: none;
9444
9444
  }
9445
- .sub-table-action-bar[data-v-e16ba4cf] {
9445
+ .sub-table-action-bar[data-v-d4a2947b] {
9446
9446
  display: flex;
9447
9447
  }
9448
- .sub-table-action-bar .more-btn[data-v-e16ba4cf],
9449
- .sub-table-action-bar .confirm-btn[data-v-e16ba4cf] {
9448
+ .sub-table-action-bar .more-btn[data-v-d4a2947b],
9449
+ .sub-table-action-bar .confirm-btn[data-v-d4a2947b] {
9450
9450
  display: flex;
9451
9451
  justify-content: center;
9452
9452
  align-items: center;
@@ -9455,44 +9455,44 @@ textarea[data-v-2de31883]::placeholder {
9455
9455
  cursor: pointer;
9456
9456
  box-sizing: border-box;
9457
9457
  }
9458
- .sub-table-action-bar .more-btn[data-v-e16ba4cf] {
9458
+ .sub-table-action-bar .more-btn[data-v-d4a2947b] {
9459
9459
  width: 10px;
9460
9460
  background: #026ac8;
9461
9461
  border-radius: 0 4px 4px 0;
9462
9462
  }
9463
- .sub-table-action-bar .confirm-btn[data-v-e16ba4cf] {
9463
+ .sub-table-action-bar .confirm-btn[data-v-d4a2947b] {
9464
9464
  margin-left: 4px;
9465
9465
  border-radius: 4px;
9466
9466
  border: 1px solid #4ec262;
9467
9467
  }
9468
- .sub-table-action-popper[data-v-e16ba4cf] {
9468
+ .sub-table-action-popper[data-v-d4a2947b] {
9469
9469
  padding: 2px 8px;
9470
9470
  }
9471
- .sub-table-action-popper .action-menu[data-v-e16ba4cf] {
9471
+ .sub-table-action-popper .action-menu[data-v-d4a2947b] {
9472
9472
  padding: 4px 0;
9473
9473
  width: 220px;
9474
9474
  user-select: none;
9475
9475
  }
9476
- .sub-table-action-popper .action-menu + .action-menu[data-v-e16ba4cf] {
9476
+ .sub-table-action-popper .action-menu + .action-menu[data-v-d4a2947b] {
9477
9477
  margin-top: 4px;
9478
9478
  padding-top: 4px;
9479
9479
  border-top: 1px solid #efefef;
9480
9480
  }
9481
- .sub-table-action-popper .action-menu .menu-title[data-v-e16ba4cf] {
9481
+ .sub-table-action-popper .action-menu .menu-title[data-v-d4a2947b] {
9482
9482
  color: #bcbcbc;
9483
9483
  margin: 4px 0;
9484
9484
  }
9485
- .sub-table-action-popper .action-menu .menu-item[data-v-e16ba4cf] {
9485
+ .sub-table-action-popper .action-menu .menu-item[data-v-d4a2947b] {
9486
9486
  display: flex;
9487
9487
  align-items: center;
9488
9488
  padding: 8px 10px;
9489
9489
  border-radius: 4px;
9490
9490
  }
9491
- .sub-table-action-popper .action-menu .menu-item[data-v-e16ba4cf]:hover {
9491
+ .sub-table-action-popper .action-menu .menu-item[data-v-d4a2947b]:hover {
9492
9492
  cursor: pointer;
9493
9493
  background-color: #f2f5f8;
9494
9494
  }
9495
- .sub-table-action-popper .action-menu .menu-item .item-icon[data-v-e16ba4cf] {
9495
+ .sub-table-action-popper .action-menu .menu-item .item-icon[data-v-d4a2947b] {
9496
9496
  display: flex;
9497
9497
  align-items: center;
9498
9498
  justify-content: start;
@@ -9500,14 +9500,14 @@ textarea[data-v-2de31883]::placeholder {
9500
9500
  width: 20px;
9501
9501
  height: 20px;
9502
9502
  }
9503
- .sub-table-action-popper .action-menu .menu-item .item-icon.scale-large[data-v-e16ba4cf] {
9503
+ .sub-table-action-popper .action-menu .menu-item .item-icon.scale-large[data-v-d4a2947b] {
9504
9504
  transform: scale(1.5);
9505
9505
  }
9506
- .sub-table-action-popper .action-menu .menu-item .item-label[data-v-e16ba4cf] {
9506
+ .sub-table-action-popper .action-menu .menu-item .item-label[data-v-d4a2947b] {
9507
9507
  flex-grow: 1;
9508
9508
  margin-left: 8px;
9509
9509
  }
9510
- .sub-table-action-popper .action-menu .menu-item .item-label.flex-between-center[data-v-e16ba4cf] {
9510
+ .sub-table-action-popper .action-menu .menu-item .item-label.flex-between-center[data-v-d4a2947b] {
9511
9511
  display: flex;
9512
9512
  justify-content: space-between;
9513
9513
  align-items: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/word",
3
- "version": "0.1.67",
3
+ "version": "0.1.68",
4
4
  "description": "GCT 在线 word",
5
5
  "keywords": [
6
6
  "vue",