@gct-paas/word 0.2.43-beta.0 → 0.2.43-beta.4

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.
@@ -43,4 +43,4 @@ export type AllocateFieldKey = (typeof F)[keyof typeof F];
43
43
  /** 设计态输入属性固定禁用、运行态只读的字段 */
44
44
  export declare const DISABLED_INPUT_FIELDS: readonly ["product_id_name_", "product_id_code_", "product_id_spec_", "production_identification_id_", "origin_warehouse_id_", "origin_location_id_", "mfg_order_id_", "lot_sn_id_", "stock_num_", "validity_", "re_inspection_date_"];
45
45
  /** 物料清空时需一并清空的字段(不含目标仓/目标库位,避免误清已选目标) */
46
- export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["inventory_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "production_identification_id_", "origin_warehouse_id_", "origin_location_id_", "mfg_order_id_", "lot_sn_id_", "stock_num_", "allocate_num_", "validity_", "re_inspection_date_"];
46
+ export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["inventory_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "production_identification_id_", "origin_warehouse_id_", "origin_location_id_", "mfg_order_id_", "lot_sn_id_", "stock_num_", "allocate_num_", "validity_", "re_inspection_date_", "unique_code_"];
@@ -40,12 +40,14 @@ export declare const F: {
40
40
  readonly rowSource: "row_source_";
41
41
  readonly matno: "material_no_";
42
42
  readonly matcode: "product_code_";
43
+ /** 唯一码 */
44
+ readonly uniqueCode: "unique_code_";
43
45
  };
44
46
  export type InventoryFieldKey = (typeof F)[keyof typeof F];
45
47
  /** 设计态输入属性固定禁用、运行态只读的字段 */
46
48
  export declare const DISABLED_INPUT_FIELDS: readonly ["production_identification_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "stock_num_", "diff_num_", "stocktake_status_", "warehouse_id_", "location_id_", "validity_", "re_inspection_date_"];
47
49
  /** 物料清空时需一并清空的字段 */
48
- export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["inventory_id_", "front_id_", "production_identification_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "stock_num_", "stocktake_num_", "diff_num_", "warehouse_id_", "location_id_", "validity_", "re_inspection_date_"];
50
+ export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["inventory_id_", "front_id_", "production_identification_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "stock_num_", "stocktake_num_", "diff_num_", "warehouse_id_", "location_id_", "validity_", "re_inspection_date_", "unique_code_"];
49
51
  /** 按批次+物料+仓库分组(initLoad / 汇总) */
50
52
  export declare const WAREHOUSE_IDENTITY_GROUP_KEYS: readonly ["production_identification_id_", "product_id_", "warehouse_id_"];
51
53
  /** 库存记录映射基础字段(initLoad mapper / 扫码聚合) */
@@ -41,4 +41,4 @@ export type WarehouseOutFieldKey = (typeof F)[keyof typeof F];
41
41
  */
42
42
  export declare const DISABLED_INPUT_FIELDS: readonly ["product_id_name_", "product_id_code_", "product_id_spec_", "material_no_", "warehouse_id_", "location_id_", "mfg_order_id_", "lot_sn_id_", "validity_", "re_inspection_date_"];
43
43
  /** 物料清空时需一并清空的字段 */
44
- export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["inventory_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "material_no_", "material_no__id_", "warehouse_id_", "location_id_", "mfg_order_id_", "lot_sn_id_", "validity_", "re_inspection_date_"];
44
+ export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["inventory_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "material_no_", "material_no__id_", "warehouse_id_", "location_id_", "mfg_order_id_", "lot_sn_id_", "validity_", "re_inspection_date_", "unique_code_"];
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @gct-paas/word v0.2.43-beta.0 */
1
+ /*! @gct-paas/word v0.2.43-beta.4 */
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, shallowReactive, shallowRef, toDisplayString, toHandlers, toRaw, toRef, toValue, unref, useAttrs, useCssVars, useModel, useSlots, vModelRadio, vModelSelect, vModelText, vShow, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
3
3
  import da, { PopperWrapper } from "floating-vue";
4
4
  import VueKonva from "vue-konva";
@@ -127834,6 +127834,21 @@ var init_product_ndo = __esmMin((() => {
127834
127834
  title: "有效期",
127835
127835
  field: "validate_",
127836
127836
  minWidth: 100
127837
+ },
127838
+ uniqueCode: {
127839
+ title: "唯一码",
127840
+ field: "unique_code_",
127841
+ minWidth: 100
127842
+ },
127843
+ mfgOrderCode: {
127844
+ title: "指定工单",
127845
+ field: "mfg_order_code_",
127846
+ minWidth: 100
127847
+ },
127848
+ lotSnName: {
127849
+ title: "指定批次",
127850
+ field: "lot_sn_name_",
127851
+ minWidth: 100
127837
127852
  }
127838
127853
  };
127839
127854
  productNdoColumns = [
@@ -127845,7 +127860,10 @@ var init_product_ndo = __esmMin((() => {
127845
127860
  columns$2.warehouseName,
127846
127861
  columns$2.locationName,
127847
127862
  columns$2.stockNum,
127848
- columns$2.validate
127863
+ columns$2.validate,
127864
+ columns$2.uniqueCode,
127865
+ columns$2.mfgOrderCode,
127866
+ columns$2.lotSnName
127849
127867
  ];
127850
127868
  productNdoSummaryColumns = [
127851
127869
  radioColumn,
@@ -133157,7 +133175,8 @@ var init_field_keys$14 = __esmMin((() => {
133157
133175
  F$14.mfgOrder,
133158
133176
  F$14.lotSn,
133159
133177
  F$14.validity,
133160
- F$14.reInspectionDate
133178
+ F$14.reInspectionDate,
133179
+ F$14.uniqueCode
133161
133180
  ];
133162
133181
  }));
133163
133182
  //#endregion
@@ -133234,6 +133253,10 @@ var init_fields$16 = __esmMin((() => {
133234
133253
  {
133235
133254
  optionField: "re_inspection_date_",
133236
133255
  toField: F$14.reInspectionDate
133256
+ },
133257
+ {
133258
+ optionField: "unique_code_",
133259
+ toField: F$14.uniqueCode
133237
133260
  }
133238
133261
  ]
133239
133262
  },
@@ -133879,7 +133902,9 @@ var init_field_keys$11 = __esmMin((() => {
133879
133902
  /** 行数据来源 */
133880
133903
  rowSource: "row_source_",
133881
133904
  matno: "material_no_",
133882
- matcode: "product_code_"
133905
+ matcode: "product_code_",
133906
+ /** 唯一码 */
133907
+ uniqueCode: "unique_code_"
133883
133908
  };
133884
133909
  DISABLED_INPUT_FIELDS$6 = [
133885
133910
  F$11.batch,
@@ -133907,7 +133932,8 @@ var init_field_keys$11 = __esmMin((() => {
133907
133932
  F$11.warehouse,
133908
133933
  F$11.location,
133909
133934
  F$11.validity,
133910
- F$11.reInspectionDate
133935
+ F$11.reInspectionDate,
133936
+ F$11.uniqueCode
133911
133937
  ];
133912
133938
  F$11.batch, F$11.product, F$11.warehouse;
133913
133939
  INVENTORY_BASE_FIELDS = [
@@ -133977,6 +134003,10 @@ var init_fields$13 = __esmMin((() => {
133977
134003
  {
133978
134004
  optionField: "re_inspection_date_",
133979
134005
  toField: F$11.reInspectionDate
134006
+ },
134007
+ {
134008
+ optionField: "unique_code_",
134009
+ toField: F$11.uniqueCode
133980
134010
  }
133981
134011
  ];
133982
134012
  fields$12 = [
@@ -135037,7 +135067,8 @@ var init_field_keys$8 = __esmMin((() => {
135037
135067
  F$8.stock,
135038
135068
  F$8.allocateNum,
135039
135069
  F$8.validity,
135040
- F$8.reInspectionDate
135070
+ F$8.reInspectionDate,
135071
+ F$8.uniqueCode
135041
135072
  ];
135042
135073
  }));
135043
135074
  //#endregion
@@ -135114,6 +135145,10 @@ var init_fields$10 = __esmMin((() => {
135114
135145
  {
135115
135146
  optionField: "re_inspection_date_",
135116
135147
  toField: F$8.reInspectionDate
135148
+ },
135149
+ {
135150
+ optionField: "unique_code_",
135151
+ toField: F$8.uniqueCode
135117
135152
  }
135118
135153
  ]
135119
135154
  },
@@ -176097,6 +176132,18 @@ var init_useTableDropdown = __esmMin((() => {
176097
176132
  {
176098
176133
  field: "validate_",
176099
176134
  title: "有效期"
176135
+ },
176136
+ {
176137
+ field: "unique_code_",
176138
+ title: "唯一码"
176139
+ },
176140
+ {
176141
+ field: "mfg_order_code_",
176142
+ title: "指定工单"
176143
+ },
176144
+ {
176145
+ field: "lot_sn_name_",
176146
+ title: "指定批次"
176100
176147
  }
176101
176148
  ];
176102
176149
  }));
@@ -179303,8 +179350,8 @@ function applyOptionFillUpdates(writer, nextValues, optionFill, inputValues, opt
179303
179350
  enrichedValues[path] = nextValues[path];
179304
179351
  delete userValues[path];
179305
179352
  }
179306
- writer.setMultiple(userValues, "user");
179307
179353
  if (Object.keys(enrichedValues).length) writer.setMultiple(enrichedValues, "enrichment");
179354
+ writer.setMultiple(userValues, "user");
179308
179355
  }
179309
179356
  var init_option_fill_updates = __esmMin((() => {}));
179310
179357
  //#endregion
@@ -179847,7 +179894,6 @@ var init_overlay_render_vue_vue_type_script_setup_true_lang = __esmMin((() => {
179847
179894
  parsed,
179848
179895
  dataIndex
179849
179896
  }));
179850
- if (!isConsumeLot) applyOptionFillUpdates(props.doc.dataManager, nextValues, optionFill, data, optionFillSource);
179851
179897
  const reinspection = getConsumeObjectReinspectionParams({
179852
179898
  doc: props.doc,
179853
179899
  belongingObject: field === null || field === void 0 ? void 0 : field.belongingObject,
@@ -179855,16 +179901,17 @@ var init_overlay_render_vue_vue_type_script_setup_true_lang = __esmMin((() => {
179855
179901
  nextValues
179856
179902
  });
179857
179903
  if (reinspection) await assertReinspectionDate(reinspection);
179904
+ let writes = nextValues;
179858
179905
  if (isConsumeLot) {
179859
179906
  if (changeId !== consumeLotChangeId) return;
179860
179907
  let productPath;
179861
179908
  if (consumeController && (parsed === null || parsed === void 0 ? void 0 : parsed.parentFieldPath) && isNumber(dataIndex)) productPath = `${parsed.parentFieldPath}[${dataIndex}].product_id_`;
179862
179909
  else if (isConsumeObject && (field === null || field === void 0 ? void 0 : field.belongingObject)) productPath = collectConsumeObjectPaths(props.doc, field.belongingObject).productPath;
179863
179910
  const sourcePaths = productPath ? getChangedConsumeSourcePaths(props.doc, nextValues, [productPath]) : [];
179864
- const writes = sourcePaths.length ? await prepareConsumeWrite(props.doc, nextValues, sourcePaths) : nextValues;
179911
+ writes = sourcePaths.length ? await prepareConsumeWrite(props.doc, nextValues, sourcePaths) : nextValues;
179865
179912
  if (changeId !== consumeLotChangeId) return;
179866
- applyOptionFillUpdates(props.doc.dataManager, writes, optionFill, data, optionFillSource);
179867
- } else props.doc.dataManager.setMultiple(nextValues, "user");
179913
+ }
179914
+ applyOptionFillUpdates(props.doc.dataManager, writes, optionFill, data, optionFillSource);
179868
179915
  if (consumeController && parsed && isNumber(dataIndex)) consumeController.afterSelectChange({
179869
179916
  doc: props.doc,
179870
179917
  parsed,
@@ -179990,8 +180037,8 @@ var init_overlay_render_vue_vue_type_script_setup_true_lang = __esmMin((() => {
179990
180037
  //#region src/runtime/canvas/__common__/widget-container/overlay-render.vue?vue&type=style&index=0&lang.less
179991
180038
  var init_overlay_render_vue_vue_type_style_index_0_lang = __esmMin((() => {}));
179992
180039
  //#endregion
179993
- //#region src/runtime/canvas/__common__/widget-container/overlay-render.vue?vue&type=style&index=1&scoped=e7c636f8&lang.less
179994
- var init_overlay_render_vue_vue_type_style_index_1_scoped_e7c636f8_lang = __esmMin((() => {}));
180040
+ //#region src/runtime/canvas/__common__/widget-container/overlay-render.vue?vue&type=style&index=1&scoped=d0310425&lang.less
180041
+ var init_overlay_render_vue_vue_type_style_index_1_scoped_d0310425_lang = __esmMin((() => {}));
179995
180042
  //#endregion
179996
180043
  //#region src/runtime/canvas/__common__/widget-container/overlay-render.vue
179997
180044
  var overlay_render_default;
@@ -179999,9 +180046,9 @@ var init_overlay_render = __esmMin((() => {
179999
180046
  init_overlay_render_vue_vue_type_script_setup_true_lang();
180000
180047
  init_overlay_render_vue_vue_type_script_setup_true_lang();
180001
180048
  init_overlay_render_vue_vue_type_style_index_0_lang();
180002
- init_overlay_render_vue_vue_type_style_index_1_scoped_e7c636f8_lang();
180049
+ init_overlay_render_vue_vue_type_style_index_1_scoped_d0310425_lang();
180003
180050
  init__plugin_vue_export_helper();
180004
- overlay_render_default = /*#__PURE__*/ _plugin_vue_export_helper_default(overlay_render_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-e7c636f8"]]);
180051
+ overlay_render_default = /*#__PURE__*/ _plugin_vue_export_helper_default(overlay_render_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-d0310425"]]);
180005
180052
  }));
180006
180053
  //#endregion
180007
180054
  //#region src/utils/composables/useHoverDelay.ts
package/dist/word.css CHANGED
@@ -10223,7 +10223,7 @@ to {
10223
10223
  /**
10224
10224
  * 字段态配色 —— DOM 控件子集(input / select / overlay)
10225
10225
  */
10226
- .widget-container-action[data-v-e7c636f8] {
10226
+ .widget-container-action[data-v-d0310425] {
10227
10227
  position: absolute;
10228
10228
  inset: 0;
10229
10229
  z-index: 999;
@@ -10231,7 +10231,7 @@ to {
10231
10231
  height: 0;
10232
10232
  pointer-events: all;
10233
10233
  }
10234
- .picker-trigger[data-v-e7c636f8] {
10234
+ .picker-trigger[data-v-d0310425] {
10235
10235
  display: flex;
10236
10236
  box-sizing: border-box;
10237
10237
  align-items: center;
@@ -10243,19 +10243,19 @@ to {
10243
10243
  outline: none;
10244
10244
  background-color: #fff;
10245
10245
  }
10246
- .picker-trigger.disabled[data-v-e7c636f8] {
10246
+ .picker-trigger.disabled[data-v-d0310425] {
10247
10247
  border: 1px solid rgba(13, 13, 13, 0.12);
10248
10248
  cursor: not-allowed;
10249
10249
  }
10250
- .picker-trigger.disabled .gct-icon[data-v-e7c636f8] {
10250
+ .picker-trigger.disabled .gct-icon[data-v-d0310425] {
10251
10251
  color: rgba(0, 0, 0, 0.25);
10252
10252
  }
10253
- .picker-trigger.readonly[data-v-e7c636f8] {
10253
+ .picker-trigger.readonly[data-v-d0310425] {
10254
10254
  border-color: #d9d9d9;
10255
10255
  background-color: #f5f6f8;
10256
10256
  cursor: default;
10257
10257
  }
10258
- .picker-trigger.readonly .gct-icon[data-v-e7c636f8] {
10258
+ .picker-trigger.readonly .gct-icon[data-v-d0310425] {
10259
10259
  color: rgba(0, 0, 0, 0.65);
10260
10260
  }
10261
10261
  .resize-box[data-v-788ab62c] {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/word",
3
- "version": "0.2.43-beta.0",
3
+ "version": "0.2.43-beta.4",
4
4
  "description": "GCT 在线 word",
5
5
  "keywords": [
6
6
  "vue",