@fmdeui/fmui 1.0.172 → 1.0.174

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.172 */
1
+ /*! fmdeui-fmui v1.0.174 */
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) :
@@ -4096,6 +4096,57 @@
4096
4096
  };
4097
4097
  });
4098
4098
 
4099
+ const usefmPageFormDatatore = pinia$1.defineStore("fmPageFormDatatore", () => {
4100
+ const state = vue.reactive({
4101
+ formData: {},
4102
+ currentBizType: ""
4103
+ });
4104
+ const setFormData = (data, bizType = "basefrom") => {
4105
+ state.formData[bizType] = data;
4106
+ };
4107
+ const setCurrentBizType = (bizType = "") => {
4108
+ state.currentBizType = bizType;
4109
+ };
4110
+ const getFormData = (bizType = "basefrom") => {
4111
+ return state.formData[bizType];
4112
+ };
4113
+ const clearFormData = (bizType = "basefrom") => {
4114
+ state.formData[bizType] = {};
4115
+ };
4116
+ const clearAllFormData = () => {
4117
+ state.formData = {};
4118
+ };
4119
+ const getLableLogData = (table, field, bizid, bizinType = "basefrom") => {
4120
+ const resultLogData = [];
4121
+ const bizType = state.currentBizType != "" ? state.currentBizType : bizinType;
4122
+ if (state.formData[bizType]) {
4123
+ state.formData[bizType].forEach((item) => {
4124
+ var _a, _b;
4125
+ const filteredLogs = (_b = (_a = item.logData) == null ? void 0 : _a.filter(
4126
+ (log) => log.table === table && log.field === field && log.bizid === bizid && log.actionType === "update"
4127
+ )) != null ? _b : [];
4128
+ filteredLogs.forEach((log) => {
4129
+ resultLogData.push({
4130
+ ...log,
4131
+ // 保留原有属性
4132
+ opUser: item.createUserName,
4133
+ opDate: item.createTime
4134
+ });
4135
+ });
4136
+ });
4137
+ }
4138
+ return resultLogData;
4139
+ };
4140
+ return {
4141
+ setCurrentBizType,
4142
+ setFormData,
4143
+ getFormData,
4144
+ clearFormData,
4145
+ clearAllFormData,
4146
+ getLableLogData
4147
+ };
4148
+ });
4149
+
4099
4150
  function authDirective(app) {
4100
4151
  app.directive("auth", {
4101
4152
  mounted(el, binding) {
@@ -21235,7 +21286,7 @@
21235
21286
  }
21236
21287
 
21237
21288
  const _hoisted_1$F = { key: 0 };
21238
- const _hoisted_2$r = { key: 0 };
21289
+ const _hoisted_2$s = { key: 0 };
21239
21290
  var _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
21240
21291
  ...{
21241
21292
  name: "FInput"
@@ -21476,7 +21527,7 @@
21476
21527
  fn: vue.withCtx(() => [
21477
21528
  __props.inputType === "amount" ? (vue.openBlock(), vue.createElementBlock(
21478
21529
  "span",
21479
- _hoisted_2$r,
21530
+ _hoisted_2$s,
21480
21531
  vue.toDisplayString(appendTitleText.value),
21481
21532
  1
21482
21533
  /* TEXT */
@@ -22038,7 +22089,7 @@
22038
22089
  });
22039
22090
 
22040
22091
  const _hoisted_1$B = { class: "inside_box" };
22041
- const _hoisted_2$q = { class: "inside_box_title" };
22092
+ const _hoisted_2$r = { class: "inside_box_title" };
22042
22093
  const _hoisted_3$i = { class: "check-box" };
22043
22094
  const _hoisted_4$9 = { class: "more_dropdown_icon" };
22044
22095
  const _hoisted_5$8 = { class: "out_box" };
@@ -22181,7 +22232,7 @@
22181
22232
  ]),
22182
22233
  default: vue.withCtx(() => [
22183
22234
  vue.createElementVNode("div", _hoisted_1$B, [
22184
- vue.createElementVNode("div", _hoisted_2$q, [
22235
+ vue.createElementVNode("div", _hoisted_2$r, [
22185
22236
  vue.createElementVNode(
22186
22237
  "div",
22187
22238
  null,
@@ -23058,7 +23109,7 @@
23058
23109
  key: 0,
23059
23110
  class: "table_query_condition"
23060
23111
  };
23061
- const _hoisted_2$p = ["element-loading-text"];
23112
+ const _hoisted_2$q = ["element-loading-text"];
23062
23113
  const _hoisted_3$h = { key: 2 };
23063
23114
  const _hoisted_4$8 = {
23064
23115
  key: 0,
@@ -23945,7 +23996,7 @@
23945
23996
  total: pagination.total
23946
23997
  }, { background: true, size: __props.paginationSize || "small", ..._ctx.$attrs }), null, 16, ["current-page", "page-size", "pager-count", "total"])
23947
23998
  ])) : vue.createCommentVNode("v-if", true)
23948
- ], 8, _hoisted_2$p)), [
23999
+ ], 8, _hoisted_2$q)), [
23949
24000
  [_directive_loading, __props.tableLoading || internalLoading.value]
23950
24001
  ]),
23951
24002
  vue.renderSlot(_ctx.$slots, "footer")
@@ -24011,7 +24062,7 @@
24011
24062
  key: 1,
24012
24063
  class: "text_show"
24013
24064
  };
24014
- const _hoisted_2$o = { class: "footer_btn flex-box flex-ver f-margin-top-5" };
24065
+ const _hoisted_2$p = { class: "footer_btn flex-box flex-ver f-margin-top-5" };
24015
24066
  var _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
24016
24067
  ...{
24017
24068
  name: "FForm"
@@ -24405,7 +24456,7 @@
24405
24456
  /* UNKEYED_FRAGMENT */
24406
24457
  )),
24407
24458
  vue.createCommentVNode(" \u6309\u94AE "),
24408
- vue.createElementVNode("div", _hoisted_2$o, [
24459
+ vue.createElementVNode("div", _hoisted_2$p, [
24409
24460
  __props.formOpts.btnSlotName ? vue.renderSlot(_ctx.$slots, __props.formOpts.btnSlotName, { key: 0 }) : vue.createCommentVNode("v-if", true),
24410
24461
  !__props.formOpts.btnSlotName && __props.formOpts.operatorList && __props.formOpts.operatorList.length > 0 ? (vue.openBlock(true), vue.createElementBlock(
24411
24462
  vue.Fragment,
@@ -24933,7 +24984,7 @@
24933
24984
  };
24934
24985
 
24935
24986
  const _hoisted_1$x = { class: "layout-breadcrumb-seting" };
24936
- const _hoisted_2$n = { class: "layout-breadcrumb-seting-bar-flex" };
24987
+ const _hoisted_2$o = { class: "layout-breadcrumb-seting-bar-flex" };
24937
24988
  const _hoisted_3$g = { class: "layout-breadcrumb-seting-bar-flex-label" };
24938
24989
  const _hoisted_4$7 = { class: "layout-breadcrumb-seting-bar-flex-value" };
24939
24990
  const _hoisted_5$7 = { style: { "margin": "10px 0" } };
@@ -25346,7 +25397,7 @@
25346
25397
  _: 1
25347
25398
  /* STABLE */
25348
25399
  }),
25349
- vue.createElementVNode("div", _hoisted_2$n, [
25400
+ vue.createElementVNode("div", _hoisted_2$o, [
25350
25401
  vue.createElementVNode(
25351
25402
  "div",
25352
25403
  _hoisted_3$g,
@@ -27677,7 +27728,7 @@
27677
27728
  const FmInputNumber = _sfc_main$C;
27678
27729
 
27679
27730
  const _hoisted_1$v = { style: { "color": "#fff" } };
27680
- const _hoisted_2$m = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
27731
+ const _hoisted_2$n = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
27681
27732
  const _hoisted_3$f = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
27682
27733
  const _hoisted_4$6 = { style: { "margin-top": "10px" } };
27683
27734
  const _hoisted_5$6 = { class: "dialog-footer" };
@@ -27866,7 +27917,7 @@
27866
27917
  default: vue.withCtx(() => [
27867
27918
  vue.createElementVNode(
27868
27919
  "p",
27869
- _hoisted_2$m,
27920
+ _hoisted_2$n,
27870
27921
  vue.toDisplayString(_ctx.$t("\u673A\u6784")),
27871
27922
  1
27872
27923
  /* TEXT */
@@ -28073,7 +28124,7 @@
28073
28124
  });
28074
28125
 
28075
28126
  const _hoisted_1$u = { style: { "color": "#fff" } };
28076
- const _hoisted_2$l = { style: { "margin-top": "10px" } };
28127
+ const _hoisted_2$m = { style: { "margin-top": "10px" } };
28077
28128
  const _hoisted_3$e = { class: "dialog-footer" };
28078
28129
  var _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
28079
28130
  __name: "supplierSelectDialog",
@@ -28241,7 +28292,7 @@
28241
28292
  default: vue.withCtx(() => [
28242
28293
  vue.createVNode(_component_el_col, { span: 24 }, {
28243
28294
  default: vue.withCtx(() => [
28244
- vue.createElementVNode("div", _hoisted_2$l, [
28295
+ vue.createElementVNode("div", _hoisted_2$m, [
28245
28296
  vue.createVNode(_component_el_form, {
28246
28297
  model: state.queryParams,
28247
28298
  ref: "queryRef",
@@ -28452,7 +28503,7 @@
28452
28503
  });
28453
28504
 
28454
28505
  const _hoisted_1$t = { style: { "color": "#fff" } };
28455
- const _hoisted_2$k = { style: { "margin-top": "10px" } };
28506
+ const _hoisted_2$l = { style: { "margin-top": "10px" } };
28456
28507
  const _hoisted_3$d = { class: "dialog-footer" };
28457
28508
  var _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
28458
28509
  __name: "supplierUserSelectDialog",
@@ -28613,7 +28664,7 @@
28613
28664
  default: vue.withCtx(() => [
28614
28665
  vue.createVNode(_component_el_col, { span: 24 }, {
28615
28666
  default: vue.withCtx(() => [
28616
- vue.createElementVNode("div", _hoisted_2$k, [
28667
+ vue.createElementVNode("div", _hoisted_2$l, [
28617
28668
  vue.createVNode(_component_el_form, {
28618
28669
  model: state.queryParams,
28619
28670
  ref: "queryRef",
@@ -28781,7 +28832,7 @@
28781
28832
  });
28782
28833
 
28783
28834
  const _hoisted_1$s = { style: { "color": "#fff" } };
28784
- const _hoisted_2$j = { style: { "margin-top": "10px" } };
28835
+ const _hoisted_2$k = { style: { "margin-top": "10px" } };
28785
28836
  const _hoisted_3$c = { class: "dialog-footer" };
28786
28837
  var _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
28787
28838
  __name: "accountSelectDialog",
@@ -28940,7 +28991,7 @@
28940
28991
  default: vue.withCtx(() => [
28941
28992
  vue.createVNode(_component_el_col, { span: 24 }, {
28942
28993
  default: vue.withCtx(() => [
28943
- vue.createElementVNode("div", _hoisted_2$j, [
28994
+ vue.createElementVNode("div", _hoisted_2$k, [
28944
28995
  vue.createVNode(_component_el_form, {
28945
28996
  model: state.queryParams,
28946
28997
  ref: "queryRef",
@@ -29102,7 +29153,7 @@
29102
29153
  });
29103
29154
 
29104
29155
  const _hoisted_1$r = { style: { "color": "#fff" } };
29105
- const _hoisted_2$i = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
29156
+ const _hoisted_2$j = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
29106
29157
  const _hoisted_3$b = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
29107
29158
  const _hoisted_4$5 = { style: { "margin-top": "10px" } };
29108
29159
  const _hoisted_5$5 = { class: "dialog-footer" };
@@ -29258,7 +29309,7 @@
29258
29309
  default: vue.withCtx(() => [
29259
29310
  vue.createElementVNode(
29260
29311
  "p",
29261
- _hoisted_2$i,
29312
+ _hoisted_2$j,
29262
29313
  vue.toDisplayString(_ctx.$t("\u5927\u7C7B")),
29263
29314
  1
29264
29315
  /* TEXT */
@@ -29428,7 +29479,7 @@
29428
29479
  });
29429
29480
 
29430
29481
  const _hoisted_1$q = { style: { "color": "#fff" } };
29431
- const _hoisted_2$h = { style: { "margin-top": "10px" } };
29482
+ const _hoisted_2$i = { style: { "margin-top": "10px" } };
29432
29483
  const _hoisted_3$a = { class: "dialog-footer" };
29433
29484
  var _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
29434
29485
  __name: "linSelectDialog",
@@ -29589,7 +29640,7 @@
29589
29640
  default: vue.withCtx(() => [
29590
29641
  vue.createVNode(_component_el_col, { span: 24 }, {
29591
29642
  default: vue.withCtx(() => [
29592
- vue.createElementVNode("div", _hoisted_2$h, [
29643
+ vue.createElementVNode("div", _hoisted_2$i, [
29593
29644
  vue.createVNode(_component_el_form, {
29594
29645
  model: state.queryParams,
29595
29646
  ref: "queryRef",
@@ -29769,7 +29820,7 @@
29769
29820
  });
29770
29821
 
29771
29822
  const _hoisted_1$p = { style: { "color": "#fff" } };
29772
- const _hoisted_2$g = { style: { "margin-top": "10px" } };
29823
+ const _hoisted_2$h = { style: { "margin-top": "10px" } };
29773
29824
  const _hoisted_3$9 = { class: "dialog-footer" };
29774
29825
  var _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
29775
29826
  __name: "guideSelectDialog",
@@ -29930,7 +29981,7 @@
29930
29981
  default: vue.withCtx(() => [
29931
29982
  vue.createVNode(_component_el_col, { span: 24 }, {
29932
29983
  default: vue.withCtx(() => [
29933
- vue.createElementVNode("div", _hoisted_2$g, [
29984
+ vue.createElementVNode("div", _hoisted_2$h, [
29934
29985
  vue.createVNode(_component_el_form, {
29935
29986
  model: state.queryParams,
29936
29987
  ref: "queryRef",
@@ -30086,7 +30137,7 @@
30086
30137
  });
30087
30138
 
30088
30139
  const _hoisted_1$o = { style: { "color": "#fff" } };
30089
- const _hoisted_2$f = { style: { "margin-top": "10px" } };
30140
+ const _hoisted_2$g = { style: { "margin-top": "10px" } };
30090
30141
  const _hoisted_3$8 = { class: "dialog-footer" };
30091
30142
  var _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
30092
30143
  __name: "dirverSelectDialog",
@@ -30247,7 +30298,7 @@
30247
30298
  default: vue.withCtx(() => [
30248
30299
  vue.createVNode(_component_el_col, { span: 24 }, {
30249
30300
  default: vue.withCtx(() => [
30250
- vue.createElementVNode("div", _hoisted_2$f, [
30301
+ vue.createElementVNode("div", _hoisted_2$g, [
30251
30302
  vue.createVNode(_component_el_form, {
30252
30303
  model: state.queryParams,
30253
30304
  ref: "queryRef",
@@ -31173,7 +31224,7 @@
31173
31224
  const Fmdatepicker = _sfc_main$r;
31174
31225
 
31175
31226
  const _hoisted_1$l = { style: { "display": "flex", "justify-content": "space-between", "align-items": "center" } };
31176
- const _hoisted_2$e = { style: { "font-size": "16px" } };
31227
+ const _hoisted_2$f = { style: { "font-size": "16px" } };
31177
31228
  const _sfc_main$q = /* @__PURE__ */ Object.assign({
31178
31229
  name: "FmPeriod"
31179
31230
  }, {
@@ -31273,7 +31324,7 @@
31273
31324
  }, null, 8, ["icon"]),
31274
31325
  vue.createElementVNode(
31275
31326
  "b",
31276
- _hoisted_2$e,
31327
+ _hoisted_2$f,
31277
31328
  vue.toDisplayString(currentYear.value) + vue.toDisplayString(_ctx.$t("\u5E74") || "\u5E74"),
31278
31329
  1
31279
31330
  /* TEXT */
@@ -31397,7 +31448,8 @@
31397
31448
 
31398
31449
  const FmPeriod = _sfc_main$q;
31399
31450
 
31400
- const _hoisted_1$k = ["innerHTML"];
31451
+ const _hoisted_1$k = { style: { "display": "inline-flex" } };
31452
+ const _hoisted_2$e = ["innerHTML"];
31401
31453
  var _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
31402
31454
  ...{
31403
31455
  name: "FmTooltip"
@@ -31415,28 +31467,41 @@
31415
31467
  content: {
31416
31468
  type: String,
31417
31469
  default: ""
31470
+ },
31471
+ params: {
31472
+ type: Object,
31473
+ default: () => {
31474
+ }
31418
31475
  }
31419
31476
  },
31420
31477
  setup(__props) {
31478
+ const props = __props;
31479
+ const useBaseApi = usefmPageFormDatatore();
31480
+ const tipLoadData = vue.computed(() => {
31481
+ var _a;
31482
+ return useBaseApi.getLableLogData(props.params.table, props.params.field, props.params.bizid, ((_a = props.params) == null ? void 0 : _a.bizType) || "basefrom");
31483
+ });
31421
31484
  return (_ctx, _cache) => {
31422
31485
  const _component_el_icon = vue.resolveComponent("el-icon");
31423
31486
  const _component_el_tooltip = vue.resolveComponent("el-tooltip");
31424
- return vue.openBlock(), vue.createElementBlock("div", null, [
31487
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$k, [
31488
+ vue.renderSlot(_ctx.$slots, "default"),
31425
31489
  vue.createTextVNode(
31426
- vue.toDisplayString(__props.label) + " ",
31490
+ " " + vue.toDisplayString(__props.label) + " ",
31427
31491
  1
31428
31492
  /* TEXT */
31429
31493
  ),
31430
- vue.createVNode(_component_el_tooltip, {
31494
+ tipLoadData.value.length > 0 || __props.content ? (vue.openBlock(), vue.createBlock(_component_el_tooltip, {
31495
+ key: 0,
31431
31496
  "raw-content": "",
31432
31497
  placement: "top",
31433
31498
  effect: "light"
31434
31499
  }, {
31435
31500
  content: vue.withCtx(() => [
31436
- __props.tipdata.length > 0 ? (vue.openBlock(true), vue.createElementBlock(
31501
+ tipLoadData.value.length > 0 ? (vue.openBlock(true), vue.createElementBlock(
31437
31502
  vue.Fragment,
31438
31503
  { key: 0 },
31439
- vue.renderList(__props.tipdata, (value) => {
31504
+ vue.renderList(tipLoadData.value, (value) => {
31440
31505
  return vue.openBlock(), vue.createElementBlock("p", null, [
31441
31506
  _cache[0] || (_cache[0] = vue.createTextVNode(
31442
31507
  " \u4ECE\u3010",
@@ -31481,7 +31546,7 @@
31481
31546
  )) : (vue.openBlock(), vue.createElementBlock("p", {
31482
31547
  key: 1,
31483
31548
  innerHTML: __props.content
31484
- }, null, 8, _hoisted_1$k))
31549
+ }, null, 8, _hoisted_2$e))
31485
31550
  ]),
31486
31551
  default: vue.withCtx(() => [
31487
31552
  vue.createVNode(_component_el_icon, { color: "#ff4d4f" }, {
@@ -31494,7 +31559,7 @@
31494
31559
  ]),
31495
31560
  _: 1
31496
31561
  /* STABLE */
31497
- })
31562
+ })) : vue.createCommentVNode("v-if", true)
31498
31563
  ]);
31499
31564
  };
31500
31565
  }
@@ -36054,6 +36119,7 @@
36054
36119
  exports.useThemeConfig = useThemeConfig;
36055
36120
  exports.useUserInfo = useUserInfo;
36056
36121
  exports.useVxeTable = useVxeTable;
36122
+ exports.usefmPageFormDatatore = usefmPageFormDatatore;
36057
36123
  exports.usefminputdropdownstore = usefminputdropdownstore;
36058
36124
  exports.userAccount = userAccount;
36059
36125
  exports.userEmail = userEmail;