@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.
@@ -72,6 +72,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
72
72
  type: Array,
73
73
  default: []
74
74
  },
75
+ /**
76
+ * 业务类型
77
+ */
78
+ bizType: {
79
+ type: Number,
80
+ default: 0
81
+ },
75
82
  freshSize: {
76
83
  type: [Number, String],
77
84
  default: 20
@@ -115,13 +122,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
115
122
  const handClick = async () => {
116
123
  if (props.autoLoadData && props.basecode && props.basecode != "") {
117
124
  const useBaseApi = usefminputdropdownstore();
118
- state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, false, props.multibasecode);
125
+ state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, false, props.multibasecode, props.bizType);
119
126
  }
120
127
  };
121
128
  const handRestdata = async () => {
122
129
  if (props.basecode && props.basecode != "") {
123
130
  const useBaseApi = usefminputdropdownstore();
124
- state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, true, []);
131
+ state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, true, [], props.bizType);
125
132
  }
126
133
  };
127
134
  return (_ctx, _cache) => {
@@ -7,14 +7,14 @@ const usefminputdropdownstore = defineStore("fminputdropdownstore", () => {
7
7
  const state = reactive({
8
8
  optionsData: {}
9
9
  });
10
- const getOptionsData = async (apiService, apiAction, basecode, reload = false, multibasecode = []) => {
10
+ const getOptionsData = async (apiService, apiAction, basecode, reload = false, multibasecode = [], bizType = 0) => {
11
11
  var _a, _b;
12
12
  if (!reload) {
13
13
  if (state.optionsData[basecode] && state.optionsData[basecode].length > 0) {
14
14
  return state.optionsData[basecode];
15
15
  }
16
16
  }
17
- const res = await useBaseApi(apiService, { loading: true }).get(null, apiAction + "/?codetype=" + basecode + "&mcodes=" + multibasecode.join(","));
17
+ const res = await useBaseApi(apiService, { loading: true }).get(null, apiAction + "/?codetype=" + basecode + "&mcodes=" + multibasecode.join(",") + "&bizType=" + bizType);
18
18
  if (multibasecode.length > 0) {
19
19
  const mdata = (_a = res.data.result) != null ? _a : [];
20
20
  multibasecode.forEach((p) => {
@@ -3,15 +3,15 @@ export declare const usefminputdropdownstore: StoreDefinition<"fminputdropdownst
3
3
  state: {
4
4
  optionsData: any;
5
5
  };
6
- getOptionsData: (apiService: string, apiAction: string, basecode: string, reload?: boolean, multibasecode?: Array<any>) => Promise<any>;
6
+ getOptionsData: (apiService: string, apiAction: string, basecode: string, reload?: boolean, multibasecode?: Array<any>, bizType?: number) => Promise<any>;
7
7
  }, "state">, Pick<{
8
8
  state: {
9
9
  optionsData: any;
10
10
  };
11
- getOptionsData: (apiService: string, apiAction: string, basecode: string, reload?: boolean, multibasecode?: Array<any>) => Promise<any>;
11
+ getOptionsData: (apiService: string, apiAction: string, basecode: string, reload?: boolean, multibasecode?: Array<any>, bizType?: number) => Promise<any>;
12
12
  }, never>, Pick<{
13
13
  state: {
14
14
  optionsData: any;
15
15
  };
16
- getOptionsData: (apiService: string, apiAction: string, basecode: string, reload?: boolean, multibasecode?: Array<any>) => Promise<any>;
16
+ getOptionsData: (apiService: string, apiAction: string, basecode: string, reload?: boolean, multibasecode?: Array<any>, bizType?: number) => Promise<any>;
17
17
  }, "getOptionsData">>;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fmdeui-fmui v1.0.156 */
1
+ /*! fmdeui-fmui v1.0.158 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vxe-table'), require('@vxe-ui/plugin-render-element'), require('@vxe-ui/plugin-export-xlsx'), require('vxe-pc-ui'), require('exceljs'), require('@element-plus/icons-vue'), require('vue'), require('element-plus'), require('lodash-es'), require('js-cookie'), require('pinia'), require('vue-router'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), require('sortablejs'), require('screenfull'), require('push.js'), require('mitt'), require('@microsoft/signalr'), require('axios')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vxe-table', '@vxe-ui/plugin-render-element', '@vxe-ui/plugin-export-xlsx', 'vxe-pc-ui', 'exceljs', '@element-plus/icons-vue', 'vue', 'element-plus', 'lodash-es', 'js-cookie', 'pinia', 'vue-router', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
@@ -4060,14 +4060,14 @@
4060
4060
  const state = vue.reactive({
4061
4061
  optionsData: {}
4062
4062
  });
4063
- const getOptionsData = async (apiService, apiAction, basecode, reload = false, multibasecode = []) => {
4063
+ const getOptionsData = async (apiService, apiAction, basecode, reload = false, multibasecode = [], bizType = 0) => {
4064
4064
  var _a, _b;
4065
4065
  if (!reload) {
4066
4066
  if (state.optionsData[basecode] && state.optionsData[basecode].length > 0) {
4067
4067
  return state.optionsData[basecode];
4068
4068
  }
4069
4069
  }
4070
- const res = await useBaseApi(apiService, { loading: true }).get(null, apiAction + "/?codetype=" + basecode + "&mcodes=" + multibasecode.join(","));
4070
+ const res = await useBaseApi(apiService, { loading: true }).get(null, apiAction + "/?codetype=" + basecode + "&mcodes=" + multibasecode.join(",") + "&bizType=" + bizType);
4071
4071
  if (multibasecode.length > 0) {
4072
4072
  const mdata = (_a = res.data.result) != null ? _a : [];
4073
4073
  multibasecode.forEach((p) => {
@@ -27264,6 +27264,13 @@
27264
27264
  type: Array,
27265
27265
  default: []
27266
27266
  },
27267
+ /**
27268
+ * 业务类型
27269
+ */
27270
+ bizType: {
27271
+ type: Number,
27272
+ default: 0
27273
+ },
27267
27274
  freshSize: {
27268
27275
  type: [Number, String],
27269
27276
  default: 20
@@ -27307,13 +27314,13 @@
27307
27314
  const handClick = async () => {
27308
27315
  if (props.autoLoadData && props.basecode && props.basecode != "") {
27309
27316
  const useBaseApi = usefminputdropdownstore();
27310
- state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, false, props.multibasecode);
27317
+ state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, false, props.multibasecode, props.bizType);
27311
27318
  }
27312
27319
  };
27313
27320
  const handRestdata = async () => {
27314
27321
  if (props.basecode && props.basecode != "") {
27315
27322
  const useBaseApi = usefminputdropdownstore();
27316
- state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, true, []);
27323
+ state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, true, [], props.bizType);
27317
27324
  }
27318
27325
  };
27319
27326
  return (_ctx, _cache) => {
@@ -29881,6 +29888,13 @@
29881
29888
  _: 2
29882
29889
  /* DYNAMIC */
29883
29890
  }, [
29891
+ _ctx.$slots.prepend ? {
29892
+ name: "prepend",
29893
+ fn: vue.withCtx(() => [
29894
+ vue.renderSlot(_ctx.$slots, "prepend")
29895
+ ]),
29896
+ key: "0"
29897
+ } : void 0,
29884
29898
  __props.openType > -1 ? {
29885
29899
  name: "suffix",
29886
29900
  fn: vue.withCtx(() => [
@@ -29979,7 +29993,7 @@
29979
29993
  onChange: handleSelectDialogChange
29980
29994
  }, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : vue.createCommentVNode("v-if", true)
29981
29995
  ]),
29982
- key: "0"
29996
+ key: "1"
29983
29997
  } : void 0
29984
29998
  ]), 1032, ["modelValue", "placeholder"]);
29985
29999
  };