@fmdeui/fmui 1.0.147 → 1.0.149

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.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fmdeui-fmui v1.0.147 */
1
+ /*! fmdeui-fmui v1.0.149 */
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) :
@@ -27289,11 +27289,13 @@
27289
27289
  if (props.optionData.length > 0) {
27290
27290
  state.optionData = props.optionData;
27291
27291
  }
27292
+ });
27293
+ const handClick = async () => {
27292
27294
  if (props.autoLoadData && props.basecode && props.basecode != "") {
27293
27295
  const useBaseApi = usefminputdropdownstore();
27294
27296
  state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, false, props.multibasecode);
27295
27297
  }
27296
- });
27298
+ };
27297
27299
  const handRestdata = async () => {
27298
27300
  if (props.basecode && props.basecode != "") {
27299
27301
  const useBaseApi = usefminputdropdownstore();
@@ -27352,7 +27354,8 @@
27352
27354
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modeValueName.value = $event),
27353
27355
  placeholder: props.placeholder,
27354
27356
  style: vue.normalizeStyle({ width: __props.inputWidth }),
27355
- onChange: handelChange
27357
+ onChange: handelChange,
27358
+ onClick: handClick
27356
27359
  }, {
27357
27360
  suffix: vue.withCtx(() => [
27358
27361
  vue.createVNode(_component_el_icon, {
@@ -29723,7 +29726,12 @@
29723
29726
  const autoId = vue.useModel(__props, "id");
29724
29727
  const props = __props;
29725
29728
  const visibleopenDialog = vue.ref(false);
29726
- const tableDialogRef = vue.ref();
29729
+ const tableUserDialogRef = vue.ref();
29730
+ const tableSupplierUserDialogRef = vue.ref();
29731
+ const tableAccountDialogRef = vue.ref();
29732
+ const tableSubjectDialogRef = vue.ref();
29733
+ const tableLineDialogRef = vue.ref();
29734
+ const tableSupplierDialogRef = vue.ref();
29727
29735
  const emit = __emit;
29728
29736
  const querySearchAsync = async (queryString, cb) => {
29729
29737
  var _a;
@@ -29757,9 +29765,32 @@
29757
29765
  autoId.value = value.id;
29758
29766
  emit("select", value);
29759
29767
  };
29760
- const handleRefresh = () => {
29761
- if (tableDialogRef.value) {
29762
- tableDialogRef.value.handleQuery();
29768
+ const handleRefresh = async () => {
29769
+ var _a;
29770
+ await vue.nextTick();
29771
+ if (props.openType == 0) {
29772
+ if (tableUserDialogRef.value) {
29773
+ tableUserDialogRef.value.handleQuery();
29774
+ }
29775
+ } else if (props.openType == 1) {
29776
+ if (tableSupplierUserDialogRef.value) {
29777
+ tableSupplierUserDialogRef.value.handleQuery();
29778
+ }
29779
+ }
29780
+ if (props.openType == 2) {
29781
+ if (tableSupplierDialogRef.value) {
29782
+ tableSupplierDialogRef.value.handleQuery();
29783
+ }
29784
+ } else if (props.openType == 3) {
29785
+ if (tableAccountDialogRef.value) {
29786
+ tableAccountDialogRef.value.handleQuery();
29787
+ }
29788
+ } else if (props.openType == 4) {
29789
+ if (tableSubjectDialogRef.value) {
29790
+ tableSubjectDialogRef.value.handleQuery();
29791
+ }
29792
+ } else if (props.openType == 5) {
29793
+ (_a = tableLineDialogRef.value) == null ? void 0 : _a.handleQuery();
29763
29794
  }
29764
29795
  };
29765
29796
  return (_ctx, _cache) => {
@@ -29808,6 +29839,8 @@
29808
29839
  }, 8, ["size"]),
29809
29840
  __props.openType == 0 ? (vue.openBlock(), vue.createBlock(_sfc_main$y, {
29810
29841
  key: 0,
29842
+ ref_key: "tableUserDialogRef",
29843
+ ref: tableUserDialogRef,
29811
29844
  visible: visibleopenDialog.value,
29812
29845
  "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visibleopenDialog.value = $event),
29813
29846
  orgService: __props.orgService,
@@ -29821,6 +29854,8 @@
29821
29854
  }, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])) : vue.createCommentVNode("v-if", true),
29822
29855
  __props.openType == 1 ? (vue.openBlock(), vue.createBlock(_sfc_main$w, {
29823
29856
  key: 1,
29857
+ ref_key: "tableSupplierUserDialogRef",
29858
+ ref: tableSupplierUserDialogRef,
29824
29859
  visible: visibleopenDialog.value,
29825
29860
  "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visibleopenDialog.value = $event),
29826
29861
  title: __props.title,
@@ -29831,8 +29866,8 @@
29831
29866
  }, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : vue.createCommentVNode("v-if", true),
29832
29867
  __props.openType == 2 ? (vue.openBlock(), vue.createBlock(_sfc_main$x, {
29833
29868
  key: 2,
29834
- ref_key: "tableDialogRef",
29835
- ref: tableDialogRef,
29869
+ ref_key: "tableSupplierDialogRef",
29870
+ ref: tableSupplierDialogRef,
29836
29871
  visible: visibleopenDialog.value,
29837
29872
  "onUpdate:visible": _cache[3] || (_cache[3] = ($event) => visibleopenDialog.value = $event),
29838
29873
  title: __props.title,
@@ -29844,6 +29879,8 @@
29844
29879
  vue.createCommentVNode("\u8D26\u53F7\u9009\u62E9"),
29845
29880
  __props.openType == 3 ? (vue.openBlock(), vue.createBlock(_sfc_main$v, {
29846
29881
  key: 3,
29882
+ ref_key: "tableAccountDialogRef",
29883
+ ref: tableAccountDialogRef,
29847
29884
  visible: visibleopenDialog.value,
29848
29885
  "onUpdate:visible": _cache[4] || (_cache[4] = ($event) => visibleopenDialog.value = $event),
29849
29886
  title: __props.title,
@@ -29855,6 +29892,8 @@
29855
29892
  vue.createCommentVNode("\u79D1\u76EE\u9009\u62E9"),
29856
29893
  __props.openType == 4 ? (vue.openBlock(), vue.createBlock(_sfc_main$u, {
29857
29894
  key: 4,
29895
+ ref_key: "tableSubjectDialogRef",
29896
+ ref: tableSubjectDialogRef,
29858
29897
  visible: visibleopenDialog.value,
29859
29898
  "onUpdate:visible": _cache[5] || (_cache[5] = ($event) => visibleopenDialog.value = $event),
29860
29899
  title: __props.title,
@@ -29866,6 +29905,8 @@
29866
29905
  vue.createCommentVNode("\u7EBF\u8DEF\u9009\u62E9"),
29867
29906
  __props.openType == 5 ? (vue.openBlock(), vue.createBlock(_sfc_main$t, {
29868
29907
  key: 5,
29908
+ ref_key: "tableLineDialogRef",
29909
+ ref: tableLineDialogRef,
29869
29910
  visible: visibleopenDialog.value,
29870
29911
  "onUpdate:visible": _cache[6] || (_cache[6] = ($event) => visibleopenDialog.value = $event),
29871
29912
  title: __props.title,