@gct-paas/word 0.1.73-patch.7 → 0.1.73-patch.9

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.73-patch.7 */
1
+ /*! @gct-paas/word v0.1.73-patch.9 */
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";
@@ -92969,12 +92969,13 @@ var init_fetchers = __esmMin((() => {
92969
92969
  return data;
92970
92970
  },
92971
92971
  fetchDataList: async (params) => {
92972
- const { modelKey, fieldKey, refModelKey, queryData = {}, exp = "", pageNo = 1, pageSize = 20 } = params;
92972
+ const { modelKey, fieldKey, refModelKey, queryData = {}, exp = "", pageNo = 1, pageSize = 20, requestParams } = params;
92973
92973
  const { isLinkQuery, ...otherQueryData } = queryData || {};
92974
92974
  let result;
92975
92975
  if (isLinkQuery) {
92976
92976
  const { dataIds, refModelChain, ...searchQuery } = otherQueryData || {};
92977
92977
  result = await api$1.apaas.modelComprehensive.postQueryRefChainDataModelCategory({ modelCategory: API_CONFIG.ENTITY_CATEGORY }, {
92978
+ ...requestParams || {},
92978
92979
  fieldKey,
92979
92980
  modelKey,
92980
92981
  dataIds,
@@ -92987,6 +92988,7 @@ var init_fetchers = __esmMin((() => {
92987
92988
  } : {}
92988
92989
  });
92989
92990
  } else result = await api$1.apaas.modelData.postQueryRefData({
92991
+ ...requestParams || {},
92990
92992
  fieldKey,
92991
92993
  modelKey,
92992
92994
  refModelKey,
@@ -93008,12 +93010,13 @@ var init_fetchers = __esmMin((() => {
93008
93010
  cachePrefix: "lot2sn",
93009
93011
  cacheTTL: 3e5,
93010
93012
  fetchDataList: async (params) => {
93011
- const { queryData = {}, exp, pageNo = 1, pageSize = 20 } = params;
93013
+ const { queryData = {}, exp, pageNo = 1, pageSize = 20, requestParams } = params;
93012
93014
  const { data = [], totalPage, dict, totalCount } = await api$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
93013
93015
  modelCategory: API_CONFIG.ENTITY_CATEGORY,
93014
93016
  modelKey: API_CONFIG.LOT_DEFAULTS.refModelKey,
93015
93017
  bsKey: API_CONFIG.LOT_DEFAULTS.bsKey
93016
93018
  }, {}, {
93019
+ ...requestParams || {},
93017
93020
  exp,
93018
93021
  query: queryData,
93019
93022
  pageSize,
@@ -93060,8 +93063,9 @@ var init_fetchers = __esmMin((() => {
93060
93063
  return parent;
93061
93064
  },
93062
93065
  fetchDataList: async (params) => {
93063
- const { modelKey, fieldKey, refModelKey, queryData = {}, exp = "", pageNo = 1, pageSize = 20 } = params;
93066
+ const { modelKey, fieldKey, refModelKey, queryData = {}, exp = "", pageNo = 1, pageSize = 20, requestParams } = params;
93064
93067
  const { data = [], totalPage, dict, totalCount } = await api$1.apaas.modelData.postQueryRefData({
93068
+ ...requestParams || {},
93065
93069
  fieldKey,
93066
93070
  modelKey,
93067
93071
  refModelKey,
@@ -93116,12 +93120,13 @@ var init_fetchers = __esmMin((() => {
93116
93120
  if (!(binding === null || binding === void 0 ? void 0 : binding.bsKey)) throw new Error("biz fetcher requires params.api.bsKey");
93117
93121
  const modelCategory = binding.modelCategory ?? API_CONFIG.ENTITY_CATEGORY;
93118
93122
  const modelKey = binding.modelKeyFromRef ? params.refModelKey || binding.modelKey || "" : binding.modelKey || "";
93119
- const { queryData = {}, exp, pageNo = 1, pageSize = 20 } = params;
93123
+ const { queryData = {}, exp, pageNo = 1, pageSize = 20, requestParams } = params;
93120
93124
  const { data = [], totalPage, dict, totalCount } = await api$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
93121
93125
  modelCategory,
93122
93126
  modelKey,
93123
93127
  bsKey: binding.bsKey
93124
93128
  }, {}, {
93129
+ ...requestParams || {},
93125
93130
  query: queryData,
93126
93131
  exp,
93127
93132
  pageNo,
@@ -113569,7 +113574,7 @@ var init_split_table = __esmMin((() => {
113569
113574
  * 执行表格切分主流程
113570
113575
  */
113571
113576
  split() {
113572
- var _this$curTable, _this$nextTable;
113577
+ var _this$curTable, _this$nextTable, _this$curTable2, _this$nextTable2;
113573
113578
  if (!this.needsSplit()) return {
113574
113579
  cur: this.table,
113575
113580
  next: void 0
@@ -113605,6 +113610,8 @@ var init_split_table = __esmMin((() => {
113605
113610
  this.regenerateNextTableFirstRowIds();
113606
113611
  (_this$curTable = this.curTable) === null || _this$curTable === void 0 || _this$curTable.redistribute();
113607
113612
  (_this$nextTable = this.nextTable) === null || _this$nextTable === void 0 || _this$nextTable.redistribute();
113613
+ (_this$curTable2 = this.curTable) === null || _this$curTable2 === void 0 || _this$curTable2.updateCellOffsetInfo();
113614
+ (_this$nextTable2 = this.nextTable) === null || _this$nextTable2 === void 0 || _this$nextTable2.updateCellOffsetInfo();
113608
113615
  return {
113609
113616
  cur: this.curTable,
113610
113617
  next: this.nextTable
@@ -124682,7 +124689,10 @@ var init_material_consume_util = __esmMin((() => {
124682
124689
  includedIds.push(_e.product_id_.split(":").pop());
124683
124690
  });
124684
124691
  });
124685
- subConfig[`${table_key_}[n].product_id_`] = { "id_.in": includedIds };
124692
+ subConfig[`${table_key_}[n].product_id_`] = {
124693
+ "id_.in": includedIds,
124694
+ $request: { rmIfNoDefaultVersion: 0 }
124695
+ };
124686
124696
  repeat(activeCount || 1, (index) => {
124687
124697
  MCDataUtil.updateQtyRequiredDisablement(doc.dataManager, `${table_key_}[${index}]`, true);
124688
124698
  });
@@ -128284,15 +128294,16 @@ function useTableDropdown(props, searchFilters) {
128284
128294
  const filters = unref(searchFilters);
128285
128295
  const valuePath = (_fieldMeta$value11 = fieldMeta.value) === null || _fieldMeta$value11 === void 0 ? void 0 : _fieldMeta$value11.valuePath;
128286
128296
  const subFieldConfig = getSubFieldConfig(docInst.value.paramsConfig);
128287
- const extraParams = subFieldConfig.get(valuePath);
128297
+ const extraParams = { ...subFieldConfig.get(valuePath) };
128288
128298
  if (runtimeValuePath.value) Object.assign(extraParams, subFieldConfig.get(runtimeValuePath.value));
128299
+ const { $request: requestParams, ...queryExtra } = extraParams;
128289
128300
  const { queryData = {}, exp = "" } = (buildQuery === null || buildQuery === void 0 ? void 0 : buildQuery({
128290
128301
  keyword,
128291
128302
  isLinkQuery,
128292
128303
  linkDataId: isLinkQuery ? String(linkDataValue.value ?? "") : void 0,
128293
128304
  searchField: widgetProps.value.searchField,
128294
128305
  deviceTypeId: deviceTypeId ?? (filters === null || filters === void 0 ? void 0 : filters.deviceTypeId),
128295
- extraParams,
128306
+ extraParams: queryExtra,
128296
128307
  optionMapping
128297
128308
  })) ?? {};
128298
128309
  const apiFetcher = apiFetchers[fetcher];
@@ -128311,7 +128322,8 @@ function useTableDropdown(props, searchFilters) {
128311
128322
  pageNo,
128312
128323
  pageSize,
128313
128324
  optionMapping,
128314
- api
128325
+ api,
128326
+ requestParams
128315
128327
  });
128316
128328
  const info = transform(res.options ?? [], props.modelValue, selectedId.value);
128317
128329
  return {
@@ -30,6 +30,8 @@ interface RequestParams {
30
30
  isRdo?: boolean;
31
31
  needDataLink?: boolean;
32
32
  isLinkQuery?: boolean;
33
+ /** subFieldConfig.$request:与 query 同级的请求体参数 */
34
+ requestParams?: Record<string, unknown>;
33
35
  optionMapping?: {
34
36
  value?: string;
35
37
  label?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/word",
3
- "version": "0.1.73-patch.7",
3
+ "version": "0.1.73-patch.9",
4
4
  "description": "GCT 在线 word",
5
5
  "keywords": [
6
6
  "vue",