@fmdeui/fmui 1.0.156 → 1.0.158

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/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! fmdeui-fmui v1.0.156 */
1
+ /*! fmdeui-fmui v1.0.158 */
2
2
  import VxeUITable from 'vxe-table';
3
3
  import VxeUIPluginRenderElement from '@vxe-ui/plugin-render-element';
4
4
  import VxeUIPluginExportXLSX from '@vxe-ui/plugin-export-xlsx';
@@ -4058,14 +4058,14 @@ const usefminputdropdownstore = defineStore("fminputdropdownstore", () => {
4058
4058
  const state = reactive({
4059
4059
  optionsData: {}
4060
4060
  });
4061
- const getOptionsData = async (apiService, apiAction, basecode, reload = false, multibasecode = []) => {
4061
+ const getOptionsData = async (apiService, apiAction, basecode, reload = false, multibasecode = [], bizType = 0) => {
4062
4062
  var _a, _b;
4063
4063
  if (!reload) {
4064
4064
  if (state.optionsData[basecode] && state.optionsData[basecode].length > 0) {
4065
4065
  return state.optionsData[basecode];
4066
4066
  }
4067
4067
  }
4068
- const res = await useBaseApi(apiService, { loading: true }).get(null, apiAction + "/?codetype=" + basecode + "&mcodes=" + multibasecode.join(","));
4068
+ const res = await useBaseApi(apiService, { loading: true }).get(null, apiAction + "/?codetype=" + basecode + "&mcodes=" + multibasecode.join(",") + "&bizType=" + bizType);
4069
4069
  if (multibasecode.length > 0) {
4070
4070
  const mdata = (_a = res.data.result) != null ? _a : [];
4071
4071
  multibasecode.forEach((p) => {
@@ -27262,6 +27262,13 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
27262
27262
  type: Array,
27263
27263
  default: []
27264
27264
  },
27265
+ /**
27266
+ * 业务类型
27267
+ */
27268
+ bizType: {
27269
+ type: Number,
27270
+ default: 0
27271
+ },
27265
27272
  freshSize: {
27266
27273
  type: [Number, String],
27267
27274
  default: 20
@@ -27305,13 +27312,13 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
27305
27312
  const handClick = async () => {
27306
27313
  if (props.autoLoadData && props.basecode && props.basecode != "") {
27307
27314
  const useBaseApi = usefminputdropdownstore();
27308
- state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, false, props.multibasecode);
27315
+ state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, false, props.multibasecode, props.bizType);
27309
27316
  }
27310
27317
  };
27311
27318
  const handRestdata = async () => {
27312
27319
  if (props.basecode && props.basecode != "") {
27313
27320
  const useBaseApi = usefminputdropdownstore();
27314
- state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, true, []);
27321
+ state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, true, [], props.bizType);
27315
27322
  }
27316
27323
  };
27317
27324
  return (_ctx, _cache) => {
@@ -29879,6 +29886,13 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
29879
29886
  _: 2
29880
29887
  /* DYNAMIC */
29881
29888
  }, [
29889
+ _ctx.$slots.prepend ? {
29890
+ name: "prepend",
29891
+ fn: withCtx(() => [
29892
+ renderSlot(_ctx.$slots, "prepend")
29893
+ ]),
29894
+ key: "0"
29895
+ } : void 0,
29882
29896
  __props.openType > -1 ? {
29883
29897
  name: "suffix",
29884
29898
  fn: withCtx(() => [
@@ -29977,7 +29991,7 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
29977
29991
  onChange: handleSelectDialogChange
29978
29992
  }, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true)
29979
29993
  ]),
29980
- key: "0"
29994
+ key: "1"
29981
29995
  } : void 0
29982
29996
  ]), 1032, ["modelValue", "placeholder"]);
29983
29997
  };