@gct-paas/word 0.1.73-patch.8 → 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.8 */
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,
@@ -124684,7 +124689,10 @@ var init_material_consume_util = __esmMin((() => {
124684
124689
  includedIds.push(_e.product_id_.split(":").pop());
124685
124690
  });
124686
124691
  });
124687
- 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
+ };
124688
124696
  repeat(activeCount || 1, (index) => {
124689
124697
  MCDataUtil.updateQtyRequiredDisablement(doc.dataManager, `${table_key_}[${index}]`, true);
124690
124698
  });
@@ -128286,15 +128294,16 @@ function useTableDropdown(props, searchFilters) {
128286
128294
  const filters = unref(searchFilters);
128287
128295
  const valuePath = (_fieldMeta$value11 = fieldMeta.value) === null || _fieldMeta$value11 === void 0 ? void 0 : _fieldMeta$value11.valuePath;
128288
128296
  const subFieldConfig = getSubFieldConfig(docInst.value.paramsConfig);
128289
- const extraParams = subFieldConfig.get(valuePath);
128297
+ const extraParams = { ...subFieldConfig.get(valuePath) };
128290
128298
  if (runtimeValuePath.value) Object.assign(extraParams, subFieldConfig.get(runtimeValuePath.value));
128299
+ const { $request: requestParams, ...queryExtra } = extraParams;
128291
128300
  const { queryData = {}, exp = "" } = (buildQuery === null || buildQuery === void 0 ? void 0 : buildQuery({
128292
128301
  keyword,
128293
128302
  isLinkQuery,
128294
128303
  linkDataId: isLinkQuery ? String(linkDataValue.value ?? "") : void 0,
128295
128304
  searchField: widgetProps.value.searchField,
128296
128305
  deviceTypeId: deviceTypeId ?? (filters === null || filters === void 0 ? void 0 : filters.deviceTypeId),
128297
- extraParams,
128306
+ extraParams: queryExtra,
128298
128307
  optionMapping
128299
128308
  })) ?? {};
128300
128309
  const apiFetcher = apiFetchers[fetcher];
@@ -128313,7 +128322,8 @@ function useTableDropdown(props, searchFilters) {
128313
128322
  pageNo,
128314
128323
  pageSize,
128315
128324
  optionMapping,
128316
- api
128325
+ api,
128326
+ requestParams
128317
128327
  });
128318
128328
  const info = transform(res.options ?? [], props.modelValue, selectedId.value);
128319
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.8",
3
+ "version": "0.1.73-patch.9",
4
4
  "description": "GCT 在线 word",
5
5
  "keywords": [
6
6
  "vue",