@fmdeui/fmui 1.0.174 → 1.0.176
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/es/components/fm-tooltip/index.d.ts +15 -0
- package/es/components/fm-tooltip/index.vue.d.ts +9 -0
- package/es/packages/components/fm-tooltip/index2.vue.mjs +65 -16
- package/es/packages/stores/thepagefromdata.mjs +27 -1
- package/es/stores/thepagefromdata.d.ts +4 -1
- package/index.js +114 -39
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +114 -39
- package/lib/components/fm-tooltip/index.d.ts +15 -0
- package/lib/components/fm-tooltip/index.vue.d.ts +9 -0
- package/lib/packages/components/fm-tooltip/index2.vue.js +64 -15
- package/lib/packages/stores/thepagefromdata.js +27 -1
- package/lib/stores/thepagefromdata.d.ts +4 -1
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/package.json +1 -1
- /package/es/{index.css → version.css} +0 -0
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.176 */
|
|
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';
|
|
@@ -4101,6 +4101,7 @@ const usefmPageFormDatatore = defineStore("fmPageFormDatatore", () => {
|
|
|
4101
4101
|
});
|
|
4102
4102
|
const setFormData = (data, bizType = "basefrom") => {
|
|
4103
4103
|
state.formData[bizType] = data;
|
|
4104
|
+
state.currentBizType = bizType;
|
|
4104
4105
|
};
|
|
4105
4106
|
const setCurrentBizType = (bizType = "") => {
|
|
4106
4107
|
state.currentBizType = bizType;
|
|
@@ -4135,13 +4136,38 @@ const usefmPageFormDatatore = defineStore("fmPageFormDatatore", () => {
|
|
|
4135
4136
|
}
|
|
4136
4137
|
return resultLogData;
|
|
4137
4138
|
};
|
|
4139
|
+
const getLableDelLogData = (table, field, bizid, bizinType = "basefrom") => {
|
|
4140
|
+
const resultLogData = [];
|
|
4141
|
+
const bizType = state.currentBizType != "" ? state.currentBizType : bizinType;
|
|
4142
|
+
if (state.formData[bizType]) {
|
|
4143
|
+
state.formData[bizType].forEach((item) => {
|
|
4144
|
+
var _a, _b;
|
|
4145
|
+
const filteredLogs = (_b = (_a = item.logData) == null ? void 0 : _a.filter(
|
|
4146
|
+
(log) => {
|
|
4147
|
+
var _a2;
|
|
4148
|
+
return log.table === table && log.field === field && ((_a2 = log == null ? void 0 : log.snapshot) == null ? void 0 : _a2.regMainId) === bizid && log.actionType === "delete";
|
|
4149
|
+
}
|
|
4150
|
+
)) != null ? _b : [];
|
|
4151
|
+
filteredLogs.forEach((log) => {
|
|
4152
|
+
resultLogData.push({
|
|
4153
|
+
...log.snapshot,
|
|
4154
|
+
// 保留原有属性
|
|
4155
|
+
opUser: item.createUserName,
|
|
4156
|
+
opDate: item.createTime
|
|
4157
|
+
});
|
|
4158
|
+
});
|
|
4159
|
+
});
|
|
4160
|
+
}
|
|
4161
|
+
return resultLogData;
|
|
4162
|
+
};
|
|
4138
4163
|
return {
|
|
4139
4164
|
setCurrentBizType,
|
|
4140
4165
|
setFormData,
|
|
4141
4166
|
getFormData,
|
|
4142
4167
|
clearFormData,
|
|
4143
4168
|
clearAllFormData,
|
|
4144
|
-
getLableLogData
|
|
4169
|
+
getLableLogData,
|
|
4170
|
+
getLableDelLogData
|
|
4145
4171
|
};
|
|
4146
4172
|
});
|
|
4147
4173
|
|
|
@@ -22088,7 +22114,7 @@ var _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
22088
22114
|
|
|
22089
22115
|
const _hoisted_1$B = { class: "inside_box" };
|
|
22090
22116
|
const _hoisted_2$r = { class: "inside_box_title" };
|
|
22091
|
-
const _hoisted_3$
|
|
22117
|
+
const _hoisted_3$j = { class: "check-box" };
|
|
22092
22118
|
const _hoisted_4$9 = { class: "more_dropdown_icon" };
|
|
22093
22119
|
const _hoisted_5$8 = { class: "out_box" };
|
|
22094
22120
|
var _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
@@ -22238,7 +22264,7 @@ var _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
22238
22264
|
1
|
|
22239
22265
|
/* TEXT */
|
|
22240
22266
|
),
|
|
22241
|
-
createElementVNode("div", _hoisted_3$
|
|
22267
|
+
createElementVNode("div", _hoisted_3$j, [
|
|
22242
22268
|
createVNode(_component_el_button, {
|
|
22243
22269
|
size: "small",
|
|
22244
22270
|
link: "",
|
|
@@ -23108,7 +23134,7 @@ const _hoisted_1$A = {
|
|
|
23108
23134
|
class: "table_query_condition"
|
|
23109
23135
|
};
|
|
23110
23136
|
const _hoisted_2$q = ["element-loading-text"];
|
|
23111
|
-
const _hoisted_3$
|
|
23137
|
+
const _hoisted_3$i = { key: 2 };
|
|
23112
23138
|
const _hoisted_4$8 = {
|
|
23113
23139
|
key: 0,
|
|
23114
23140
|
class: "f-table-select__page"
|
|
@@ -23960,7 +23986,7 @@ var _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
23960
23986
|
key: 1,
|
|
23961
23987
|
scope
|
|
23962
23988
|
}) : createCommentVNode("v-if", true),
|
|
23963
|
-
!item.render && !item.slotName ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
23989
|
+
!item.render && !item.slotName ? (openBlock(), createElementBlock("div", _hoisted_3$i, [
|
|
23964
23990
|
createElementVNode(
|
|
23965
23991
|
"span",
|
|
23966
23992
|
null,
|
|
@@ -24983,7 +25009,7 @@ const other = {
|
|
|
24983
25009
|
|
|
24984
25010
|
const _hoisted_1$x = { class: "layout-breadcrumb-seting" };
|
|
24985
25011
|
const _hoisted_2$o = { class: "layout-breadcrumb-seting-bar-flex" };
|
|
24986
|
-
const _hoisted_3$
|
|
25012
|
+
const _hoisted_3$h = { class: "layout-breadcrumb-seting-bar-flex-label" };
|
|
24987
25013
|
const _hoisted_4$7 = { class: "layout-breadcrumb-seting-bar-flex-value" };
|
|
24988
25014
|
const _hoisted_5$7 = { style: { "margin": "10px 0" } };
|
|
24989
25015
|
const _hoisted_6$3 = { class: "layout-breadcrumb-seting-bar-flex mt15" };
|
|
@@ -25398,7 +25424,7 @@ var _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
25398
25424
|
createElementVNode("div", _hoisted_2$o, [
|
|
25399
25425
|
createElementVNode(
|
|
25400
25426
|
"div",
|
|
25401
|
-
_hoisted_3$
|
|
25427
|
+
_hoisted_3$h,
|
|
25402
25428
|
toDisplayString(_ctx.$t("message.layout.themeColors")),
|
|
25403
25429
|
1
|
|
25404
25430
|
/* TEXT */
|
|
@@ -27727,7 +27753,7 @@ const FmInputNumber = _sfc_main$C;
|
|
|
27727
27753
|
|
|
27728
27754
|
const _hoisted_1$v = { style: { "color": "#fff" } };
|
|
27729
27755
|
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" } };
|
|
27730
|
-
const _hoisted_3$
|
|
27756
|
+
const _hoisted_3$g = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
|
|
27731
27757
|
const _hoisted_4$6 = { style: { "margin-top": "10px" } };
|
|
27732
27758
|
const _hoisted_5$6 = { class: "dialog-footer" };
|
|
27733
27759
|
var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
@@ -27937,7 +27963,7 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
27937
27963
|
default: withCtx(() => [
|
|
27938
27964
|
createElementVNode(
|
|
27939
27965
|
"p",
|
|
27940
|
-
_hoisted_3$
|
|
27966
|
+
_hoisted_3$g,
|
|
27941
27967
|
toDisplayString(_ctx.$t(__props.title)) + toDisplayString(_ctx.$t("\u5217\u8868")),
|
|
27942
27968
|
1
|
|
27943
27969
|
/* TEXT */
|
|
@@ -28123,7 +28149,7 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
28123
28149
|
|
|
28124
28150
|
const _hoisted_1$u = { style: { "color": "#fff" } };
|
|
28125
28151
|
const _hoisted_2$m = { style: { "margin-top": "10px" } };
|
|
28126
|
-
const _hoisted_3$
|
|
28152
|
+
const _hoisted_3$f = { class: "dialog-footer" };
|
|
28127
28153
|
var _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
28128
28154
|
__name: "supplierSelectDialog",
|
|
28129
28155
|
props: {
|
|
@@ -28267,7 +28293,7 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
28267
28293
|
])
|
|
28268
28294
|
]),
|
|
28269
28295
|
footer: withCtx(() => [
|
|
28270
|
-
createElementVNode("div", _hoisted_3$
|
|
28296
|
+
createElementVNode("div", _hoisted_3$f, [
|
|
28271
28297
|
createVNode(_component_el_button, {
|
|
28272
28298
|
icon: "ele-CircleCloseFilled",
|
|
28273
28299
|
onClick: closeDialog
|
|
@@ -28502,7 +28528,7 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
28502
28528
|
|
|
28503
28529
|
const _hoisted_1$t = { style: { "color": "#fff" } };
|
|
28504
28530
|
const _hoisted_2$l = { style: { "margin-top": "10px" } };
|
|
28505
|
-
const _hoisted_3$
|
|
28531
|
+
const _hoisted_3$e = { class: "dialog-footer" };
|
|
28506
28532
|
var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
28507
28533
|
__name: "supplierUserSelectDialog",
|
|
28508
28534
|
props: {
|
|
@@ -28639,7 +28665,7 @@ var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
28639
28665
|
])
|
|
28640
28666
|
]),
|
|
28641
28667
|
footer: withCtx(() => [
|
|
28642
|
-
createElementVNode("div", _hoisted_3$
|
|
28668
|
+
createElementVNode("div", _hoisted_3$e, [
|
|
28643
28669
|
createVNode(_component_el_button, {
|
|
28644
28670
|
icon: "ele-CircleCloseFilled",
|
|
28645
28671
|
onClick: closeDialog
|
|
@@ -28831,7 +28857,7 @@ var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
28831
28857
|
|
|
28832
28858
|
const _hoisted_1$s = { style: { "color": "#fff" } };
|
|
28833
28859
|
const _hoisted_2$k = { style: { "margin-top": "10px" } };
|
|
28834
|
-
const _hoisted_3$
|
|
28860
|
+
const _hoisted_3$d = { class: "dialog-footer" };
|
|
28835
28861
|
var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
28836
28862
|
__name: "accountSelectDialog",
|
|
28837
28863
|
props: {
|
|
@@ -28966,7 +28992,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
28966
28992
|
])
|
|
28967
28993
|
]),
|
|
28968
28994
|
footer: withCtx(() => [
|
|
28969
|
-
createElementVNode("div", _hoisted_3$
|
|
28995
|
+
createElementVNode("div", _hoisted_3$d, [
|
|
28970
28996
|
createVNode(_component_el_button, {
|
|
28971
28997
|
icon: "ele-CircleCloseFilled",
|
|
28972
28998
|
onClick: closeDialog
|
|
@@ -29152,7 +29178,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
29152
29178
|
|
|
29153
29179
|
const _hoisted_1$r = { style: { "color": "#fff" } };
|
|
29154
29180
|
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" } };
|
|
29155
|
-
const _hoisted_3$
|
|
29181
|
+
const _hoisted_3$c = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
|
|
29156
29182
|
const _hoisted_4$5 = { style: { "margin-top": "10px" } };
|
|
29157
29183
|
const _hoisted_5$5 = { class: "dialog-footer" };
|
|
29158
29184
|
var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
@@ -29325,7 +29351,7 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
29325
29351
|
default: withCtx(() => [
|
|
29326
29352
|
createElementVNode(
|
|
29327
29353
|
"p",
|
|
29328
|
-
_hoisted_3$
|
|
29354
|
+
_hoisted_3$c,
|
|
29329
29355
|
toDisplayString(_ctx.$t(__props.title)) + toDisplayString(_ctx.$t("\u5217\u8868")),
|
|
29330
29356
|
1
|
|
29331
29357
|
/* TEXT */
|
|
@@ -29478,7 +29504,7 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
29478
29504
|
|
|
29479
29505
|
const _hoisted_1$q = { style: { "color": "#fff" } };
|
|
29480
29506
|
const _hoisted_2$i = { style: { "margin-top": "10px" } };
|
|
29481
|
-
const _hoisted_3$
|
|
29507
|
+
const _hoisted_3$b = { class: "dialog-footer" };
|
|
29482
29508
|
var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
29483
29509
|
__name: "linSelectDialog",
|
|
29484
29510
|
props: {
|
|
@@ -29615,7 +29641,7 @@ var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
29615
29641
|
])
|
|
29616
29642
|
]),
|
|
29617
29643
|
footer: withCtx(() => [
|
|
29618
|
-
createElementVNode("div", _hoisted_3$
|
|
29644
|
+
createElementVNode("div", _hoisted_3$b, [
|
|
29619
29645
|
createVNode(_component_el_button, {
|
|
29620
29646
|
icon: "ele-CircleCloseFilled",
|
|
29621
29647
|
onClick: closeDialog
|
|
@@ -29819,7 +29845,7 @@ var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
29819
29845
|
|
|
29820
29846
|
const _hoisted_1$p = { style: { "color": "#fff" } };
|
|
29821
29847
|
const _hoisted_2$h = { style: { "margin-top": "10px" } };
|
|
29822
|
-
const _hoisted_3$
|
|
29848
|
+
const _hoisted_3$a = { class: "dialog-footer" };
|
|
29823
29849
|
var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
29824
29850
|
__name: "guideSelectDialog",
|
|
29825
29851
|
props: {
|
|
@@ -29956,7 +29982,7 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
29956
29982
|
])
|
|
29957
29983
|
]),
|
|
29958
29984
|
footer: withCtx(() => [
|
|
29959
|
-
createElementVNode("div", _hoisted_3$
|
|
29985
|
+
createElementVNode("div", _hoisted_3$a, [
|
|
29960
29986
|
createVNode(_component_el_button, {
|
|
29961
29987
|
icon: "ele-CircleCloseFilled",
|
|
29962
29988
|
onClick: closeDialog
|
|
@@ -30136,7 +30162,7 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
30136
30162
|
|
|
30137
30163
|
const _hoisted_1$o = { style: { "color": "#fff" } };
|
|
30138
30164
|
const _hoisted_2$g = { style: { "margin-top": "10px" } };
|
|
30139
|
-
const _hoisted_3$
|
|
30165
|
+
const _hoisted_3$9 = { class: "dialog-footer" };
|
|
30140
30166
|
var _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
30141
30167
|
__name: "dirverSelectDialog",
|
|
30142
30168
|
props: {
|
|
@@ -30273,7 +30299,7 @@ var _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
30273
30299
|
])
|
|
30274
30300
|
]),
|
|
30275
30301
|
footer: withCtx(() => [
|
|
30276
|
-
createElementVNode("div", _hoisted_3$
|
|
30302
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
30277
30303
|
createVNode(_component_el_button, {
|
|
30278
30304
|
icon: "ele-CircleCloseFilled",
|
|
30279
30305
|
onClick: closeDialog
|
|
@@ -31446,8 +31472,9 @@ const _sfc_main$q = /* @__PURE__ */ Object.assign({
|
|
|
31446
31472
|
|
|
31447
31473
|
const FmPeriod = _sfc_main$q;
|
|
31448
31474
|
|
|
31449
|
-
const _hoisted_1$k = { style: { "display": "inline-flex" } };
|
|
31450
|
-
const _hoisted_2$e =
|
|
31475
|
+
const _hoisted_1$k = { style: { "position": "relative", "display": "inline-flex", "align-items": "center", "width": "100%", "max-width": "100%" } };
|
|
31476
|
+
const _hoisted_2$e = { style: { "flex": "1", "min-width": "0", "position": "relative" } };
|
|
31477
|
+
const _hoisted_3$8 = ["innerHTML"];
|
|
31451
31478
|
var _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
31452
31479
|
...{
|
|
31453
31480
|
name: "FmTooltip"
|
|
@@ -31470,33 +31497,44 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
31470
31497
|
type: Object,
|
|
31471
31498
|
default: () => {
|
|
31472
31499
|
}
|
|
31500
|
+
},
|
|
31501
|
+
isDel: {
|
|
31502
|
+
type: Boolean,
|
|
31503
|
+
default: false
|
|
31473
31504
|
}
|
|
31474
31505
|
},
|
|
31475
31506
|
setup(__props) {
|
|
31476
31507
|
const props = __props;
|
|
31477
31508
|
const useBaseApi = usefmPageFormDatatore();
|
|
31478
31509
|
const tipLoadData = computed(() => {
|
|
31479
|
-
var _a;
|
|
31480
|
-
|
|
31510
|
+
var _a, _b;
|
|
31511
|
+
if (props.isDel) {
|
|
31512
|
+
return useBaseApi.getLableDelLogData(props.params.table, props.params.field, props.params.bizid, ((_a = props.params) == null ? void 0 : _a.bizType) || "basefrom");
|
|
31513
|
+
}
|
|
31514
|
+
return useBaseApi.getLableLogData(props.params.table, props.params.field, props.params.bizid, ((_b = props.params) == null ? void 0 : _b.bizType) || "basefrom");
|
|
31481
31515
|
});
|
|
31482
31516
|
return (_ctx, _cache) => {
|
|
31483
31517
|
const _component_el_icon = resolveComponent("el-icon");
|
|
31484
31518
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
31485
31519
|
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
31486
|
-
|
|
31487
|
-
|
|
31488
|
-
|
|
31489
|
-
|
|
31490
|
-
|
|
31491
|
-
|
|
31520
|
+
createElementVNode("div", _hoisted_2$e, [
|
|
31521
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
31522
|
+
createTextVNode(
|
|
31523
|
+
toDisplayString(__props.label),
|
|
31524
|
+
1
|
|
31525
|
+
/* TEXT */
|
|
31526
|
+
)
|
|
31527
|
+
])
|
|
31528
|
+
]),
|
|
31492
31529
|
tipLoadData.value.length > 0 || __props.content ? (openBlock(), createBlock(_component_el_tooltip, {
|
|
31493
31530
|
key: 0,
|
|
31494
31531
|
"raw-content": "",
|
|
31495
31532
|
placement: "top",
|
|
31496
|
-
effect: "light"
|
|
31533
|
+
effect: "light",
|
|
31534
|
+
style: { "position": "absolute", "top": "4px", "right": "4px", "z-index": "10", "line-height": "1" }
|
|
31497
31535
|
}, {
|
|
31498
31536
|
content: withCtx(() => [
|
|
31499
|
-
tipLoadData.value.length > 0 ? (openBlock(true), createElementBlock(
|
|
31537
|
+
tipLoadData.value.length > 0 && !__props.isDel ? (openBlock(true), createElementBlock(
|
|
31500
31538
|
Fragment,
|
|
31501
31539
|
{ key: 0 },
|
|
31502
31540
|
renderList(tipLoadData.value, (value) => {
|
|
@@ -31541,13 +31579,50 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
31541
31579
|
}),
|
|
31542
31580
|
256
|
|
31543
31581
|
/* UNKEYED_FRAGMENT */
|
|
31582
|
+
)) : createCommentVNode("v-if", true),
|
|
31583
|
+
tipLoadData.value.length > 0 && __props.isDel ? (openBlock(true), createElementBlock(
|
|
31584
|
+
Fragment,
|
|
31585
|
+
{ key: 1 },
|
|
31586
|
+
renderList(tipLoadData.value, (value) => {
|
|
31587
|
+
return openBlock(), createElementBlock("p", null, [
|
|
31588
|
+
_cache[3] || (_cache[3] = createTextVNode(
|
|
31589
|
+
" \u5220\u9664\u3010",
|
|
31590
|
+
-1
|
|
31591
|
+
/* CACHED */
|
|
31592
|
+
)),
|
|
31593
|
+
createElementVNode(
|
|
31594
|
+
"strong",
|
|
31595
|
+
null,
|
|
31596
|
+
toDisplayString((value == null ? void 0 : value.supplierName) != null ? (value == null ? void 0 : value.supplierName) + "/" : "") + " " + toDisplayString(value.itemName),
|
|
31597
|
+
1
|
|
31598
|
+
/* TEXT */
|
|
31599
|
+
),
|
|
31600
|
+
createTextVNode(
|
|
31601
|
+
"\u3011" + toDisplayString(value == null ? void 0 : value.price) + "*" + toDisplayString((value == null ? void 0 : value.numA) != null ? value == null ? void 0 : value.numA : value == null ? void 0 : value.num) + "*" + toDisplayString((value == null ? void 0 : value.unit) != null ? value == null ? void 0 : value.unit : (value == null ? void 0 : value.numB) || 1) + "=" + toDisplayString(value == null ? void 0 : value.totalMoney) + "\uFF0C",
|
|
31602
|
+
1
|
|
31603
|
+
/* TEXT */
|
|
31604
|
+
),
|
|
31605
|
+
createElementVNode(
|
|
31606
|
+
"strong",
|
|
31607
|
+
null,
|
|
31608
|
+
toDisplayString(value.opUser) + " " + toDisplayString(value.opDate),
|
|
31609
|
+
1
|
|
31610
|
+
/* TEXT */
|
|
31611
|
+
)
|
|
31612
|
+
]);
|
|
31613
|
+
}),
|
|
31614
|
+
256
|
|
31615
|
+
/* UNKEYED_FRAGMENT */
|
|
31544
31616
|
)) : (openBlock(), createElementBlock("p", {
|
|
31545
|
-
key:
|
|
31617
|
+
key: 2,
|
|
31546
31618
|
innerHTML: __props.content
|
|
31547
|
-
}, null, 8,
|
|
31619
|
+
}, null, 8, _hoisted_3$8))
|
|
31548
31620
|
]),
|
|
31549
31621
|
default: withCtx(() => [
|
|
31550
|
-
createVNode(_component_el_icon, {
|
|
31622
|
+
createVNode(_component_el_icon, {
|
|
31623
|
+
size: 10,
|
|
31624
|
+
color: "#ff4d4f"
|
|
31625
|
+
}, {
|
|
31551
31626
|
default: withCtx(() => [
|
|
31552
31627
|
createVNode(unref(Opportunity))
|
|
31553
31628
|
]),
|
|
@@ -30,10 +30,15 @@ export declare const FmTooltip: {
|
|
|
30
30
|
type: ObjectConstructor;
|
|
31
31
|
default: () => void;
|
|
32
32
|
};
|
|
33
|
+
isDel: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
33
37
|
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
34
38
|
content: string;
|
|
35
39
|
params: Record<string, any>;
|
|
36
40
|
label: string;
|
|
41
|
+
isDel: boolean;
|
|
37
42
|
tipdata: any[];
|
|
38
43
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
39
44
|
P: {};
|
|
@@ -72,10 +77,15 @@ export declare const FmTooltip: {
|
|
|
72
77
|
type: ObjectConstructor;
|
|
73
78
|
default: () => void;
|
|
74
79
|
};
|
|
80
|
+
isDel: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
75
84
|
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
76
85
|
content: string;
|
|
77
86
|
params: Record<string, any>;
|
|
78
87
|
label: string;
|
|
88
|
+
isDel: boolean;
|
|
79
89
|
tipdata: any[];
|
|
80
90
|
}>;
|
|
81
91
|
__isFragment?: never;
|
|
@@ -111,10 +121,15 @@ export declare const FmTooltip: {
|
|
|
111
121
|
type: ObjectConstructor;
|
|
112
122
|
default: () => void;
|
|
113
123
|
};
|
|
124
|
+
isDel: {
|
|
125
|
+
type: BooleanConstructor;
|
|
126
|
+
default: boolean;
|
|
127
|
+
};
|
|
114
128
|
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
115
129
|
content: string;
|
|
116
130
|
params: Record<string, any>;
|
|
117
131
|
label: string;
|
|
132
|
+
isDel: boolean;
|
|
118
133
|
tipdata: any[];
|
|
119
134
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
120
135
|
$slots: {
|
|
@@ -38,6 +38,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
38
38
|
type: ObjectConstructor;
|
|
39
39
|
default: () => void;
|
|
40
40
|
};
|
|
41
|
+
isDel: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
41
45
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
42
46
|
label: {
|
|
43
47
|
type: StringConstructor;
|
|
@@ -68,10 +72,15 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
68
72
|
type: ObjectConstructor;
|
|
69
73
|
default: () => void;
|
|
70
74
|
};
|
|
75
|
+
isDel: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
71
79
|
}>> & Readonly<{}>, {
|
|
72
80
|
content: string;
|
|
73
81
|
params: Record<string, any>;
|
|
74
82
|
label: string;
|
|
83
|
+
isDel: boolean;
|
|
75
84
|
tipdata: any[];
|
|
76
85
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
77
86
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -7,8 +7,9 @@ var svg = require('@element-plus/icons-vue');
|
|
|
7
7
|
require('../../stores/index.js');
|
|
8
8
|
var thepagefromdata = require('../../stores/thepagefromdata.js');
|
|
9
9
|
|
|
10
|
-
const _hoisted_1 = { style: { "display": "inline-flex" } };
|
|
11
|
-
const _hoisted_2 =
|
|
10
|
+
const _hoisted_1 = { style: { "position": "relative", "display": "inline-flex", "align-items": "center", "width": "100%", "max-width": "100%" } };
|
|
11
|
+
const _hoisted_2 = { style: { "flex": "1", "min-width": "0", "position": "relative" } };
|
|
12
|
+
const _hoisted_3 = ["innerHTML"];
|
|
12
13
|
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
13
14
|
...{
|
|
14
15
|
name: "FmTooltip"
|
|
@@ -31,33 +32,44 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
31
32
|
type: Object,
|
|
32
33
|
default: () => {
|
|
33
34
|
}
|
|
35
|
+
},
|
|
36
|
+
isDel: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: false
|
|
34
39
|
}
|
|
35
40
|
},
|
|
36
41
|
setup(__props) {
|
|
37
42
|
const props = __props;
|
|
38
43
|
const useBaseApi = thepagefromdata.usefmPageFormDatatore();
|
|
39
44
|
const tipLoadData = vue.computed(() => {
|
|
40
|
-
var _a;
|
|
41
|
-
|
|
45
|
+
var _a, _b;
|
|
46
|
+
if (props.isDel) {
|
|
47
|
+
return useBaseApi.getLableDelLogData(props.params.table, props.params.field, props.params.bizid, ((_a = props.params) == null ? void 0 : _a.bizType) || "basefrom");
|
|
48
|
+
}
|
|
49
|
+
return useBaseApi.getLableLogData(props.params.table, props.params.field, props.params.bizid, ((_b = props.params) == null ? void 0 : _b.bizType) || "basefrom");
|
|
42
50
|
});
|
|
43
51
|
return (_ctx, _cache) => {
|
|
44
52
|
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
45
53
|
const _component_el_tooltip = vue.resolveComponent("el-tooltip");
|
|
46
54
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
47
|
-
vue.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
55
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
56
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
57
|
+
vue.createTextVNode(
|
|
58
|
+
vue.toDisplayString(__props.label),
|
|
59
|
+
1
|
|
60
|
+
/* TEXT */
|
|
61
|
+
)
|
|
62
|
+
])
|
|
63
|
+
]),
|
|
53
64
|
tipLoadData.value.length > 0 || __props.content ? (vue.openBlock(), vue.createBlock(_component_el_tooltip, {
|
|
54
65
|
key: 0,
|
|
55
66
|
"raw-content": "",
|
|
56
67
|
placement: "top",
|
|
57
|
-
effect: "light"
|
|
68
|
+
effect: "light",
|
|
69
|
+
style: { "position": "absolute", "top": "4px", "right": "4px", "z-index": "10", "line-height": "1" }
|
|
58
70
|
}, {
|
|
59
71
|
content: vue.withCtx(() => [
|
|
60
|
-
tipLoadData.value.length > 0 ? (vue.openBlock(true), vue.createElementBlock(
|
|
72
|
+
tipLoadData.value.length > 0 && !__props.isDel ? (vue.openBlock(true), vue.createElementBlock(
|
|
61
73
|
vue.Fragment,
|
|
62
74
|
{ key: 0 },
|
|
63
75
|
vue.renderList(tipLoadData.value, (value) => {
|
|
@@ -102,13 +114,50 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
102
114
|
}),
|
|
103
115
|
256
|
|
104
116
|
/* UNKEYED_FRAGMENT */
|
|
117
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
118
|
+
tipLoadData.value.length > 0 && __props.isDel ? (vue.openBlock(true), vue.createElementBlock(
|
|
119
|
+
vue.Fragment,
|
|
120
|
+
{ key: 1 },
|
|
121
|
+
vue.renderList(tipLoadData.value, (value) => {
|
|
122
|
+
return vue.openBlock(), vue.createElementBlock("p", null, [
|
|
123
|
+
_cache[3] || (_cache[3] = vue.createTextVNode(
|
|
124
|
+
" \u5220\u9664\u3010",
|
|
125
|
+
-1
|
|
126
|
+
/* CACHED */
|
|
127
|
+
)),
|
|
128
|
+
vue.createElementVNode(
|
|
129
|
+
"strong",
|
|
130
|
+
null,
|
|
131
|
+
vue.toDisplayString((value == null ? void 0 : value.supplierName) != null ? (value == null ? void 0 : value.supplierName) + "/" : "") + " " + vue.toDisplayString(value.itemName),
|
|
132
|
+
1
|
|
133
|
+
/* TEXT */
|
|
134
|
+
),
|
|
135
|
+
vue.createTextVNode(
|
|
136
|
+
"\u3011" + vue.toDisplayString(value == null ? void 0 : value.price) + "*" + vue.toDisplayString((value == null ? void 0 : value.numA) != null ? value == null ? void 0 : value.numA : value == null ? void 0 : value.num) + "*" + vue.toDisplayString((value == null ? void 0 : value.unit) != null ? value == null ? void 0 : value.unit : (value == null ? void 0 : value.numB) || 1) + "=" + vue.toDisplayString(value == null ? void 0 : value.totalMoney) + "\uFF0C",
|
|
137
|
+
1
|
|
138
|
+
/* TEXT */
|
|
139
|
+
),
|
|
140
|
+
vue.createElementVNode(
|
|
141
|
+
"strong",
|
|
142
|
+
null,
|
|
143
|
+
vue.toDisplayString(value.opUser) + " " + vue.toDisplayString(value.opDate),
|
|
144
|
+
1
|
|
145
|
+
/* TEXT */
|
|
146
|
+
)
|
|
147
|
+
]);
|
|
148
|
+
}),
|
|
149
|
+
256
|
|
150
|
+
/* UNKEYED_FRAGMENT */
|
|
105
151
|
)) : (vue.openBlock(), vue.createElementBlock("p", {
|
|
106
|
-
key:
|
|
152
|
+
key: 2,
|
|
107
153
|
innerHTML: __props.content
|
|
108
|
-
}, null, 8,
|
|
154
|
+
}, null, 8, _hoisted_3))
|
|
109
155
|
]),
|
|
110
156
|
default: vue.withCtx(() => [
|
|
111
|
-
vue.createVNode(_component_el_icon, {
|
|
157
|
+
vue.createVNode(_component_el_icon, {
|
|
158
|
+
size: 10,
|
|
159
|
+
color: "#ff4d4f"
|
|
160
|
+
}, {
|
|
112
161
|
default: vue.withCtx(() => [
|
|
113
162
|
vue.createVNode(vue.unref(svg.Opportunity))
|
|
114
163
|
]),
|
|
@@ -10,6 +10,7 @@ const usefmPageFormDatatore = pinia.defineStore("fmPageFormDatatore", () => {
|
|
|
10
10
|
});
|
|
11
11
|
const setFormData = (data, bizType = "basefrom") => {
|
|
12
12
|
state.formData[bizType] = data;
|
|
13
|
+
state.currentBizType = bizType;
|
|
13
14
|
};
|
|
14
15
|
const setCurrentBizType = (bizType = "") => {
|
|
15
16
|
state.currentBizType = bizType;
|
|
@@ -44,13 +45,38 @@ const usefmPageFormDatatore = pinia.defineStore("fmPageFormDatatore", () => {
|
|
|
44
45
|
}
|
|
45
46
|
return resultLogData;
|
|
46
47
|
};
|
|
48
|
+
const getLableDelLogData = (table, field, bizid, bizinType = "basefrom") => {
|
|
49
|
+
const resultLogData = [];
|
|
50
|
+
const bizType = state.currentBizType != "" ? state.currentBizType : bizinType;
|
|
51
|
+
if (state.formData[bizType]) {
|
|
52
|
+
state.formData[bizType].forEach((item) => {
|
|
53
|
+
var _a, _b;
|
|
54
|
+
const filteredLogs = (_b = (_a = item.logData) == null ? void 0 : _a.filter(
|
|
55
|
+
(log) => {
|
|
56
|
+
var _a2;
|
|
57
|
+
return log.table === table && log.field === field && ((_a2 = log == null ? void 0 : log.snapshot) == null ? void 0 : _a2.regMainId) === bizid && log.actionType === "delete";
|
|
58
|
+
}
|
|
59
|
+
)) != null ? _b : [];
|
|
60
|
+
filteredLogs.forEach((log) => {
|
|
61
|
+
resultLogData.push({
|
|
62
|
+
...log.snapshot,
|
|
63
|
+
// 保留原有属性
|
|
64
|
+
opUser: item.createUserName,
|
|
65
|
+
opDate: item.createTime
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
return resultLogData;
|
|
71
|
+
};
|
|
47
72
|
return {
|
|
48
73
|
setCurrentBizType,
|
|
49
74
|
setFormData,
|
|
50
75
|
getFormData,
|
|
51
76
|
clearFormData,
|
|
52
77
|
clearAllFormData,
|
|
53
|
-
getLableLogData
|
|
78
|
+
getLableLogData,
|
|
79
|
+
getLableDelLogData
|
|
54
80
|
};
|
|
55
81
|
});
|
|
56
82
|
|
|
@@ -11,6 +11,7 @@ export declare const usefmPageFormDatatore: StoreDefinition<"fmPageFormDatatore"
|
|
|
11
11
|
clearFormData: (bizType?: string) => void;
|
|
12
12
|
clearAllFormData: () => void;
|
|
13
13
|
getLableLogData: (table: any, field: any, bizid: any, bizinType?: string) => any[];
|
|
14
|
+
getLableDelLogData: (table: any, field: any, bizid: any, bizinType?: string) => any[];
|
|
14
15
|
}, never>, Pick<{
|
|
15
16
|
setCurrentBizType: (bizType?: string) => void;
|
|
16
17
|
setFormData: (data: any, bizType?: string) => void;
|
|
@@ -18,6 +19,7 @@ export declare const usefmPageFormDatatore: StoreDefinition<"fmPageFormDatatore"
|
|
|
18
19
|
clearFormData: (bizType?: string) => void;
|
|
19
20
|
clearAllFormData: () => void;
|
|
20
21
|
getLableLogData: (table: any, field: any, bizid: any, bizinType?: string) => any[];
|
|
22
|
+
getLableDelLogData: (table: any, field: any, bizid: any, bizinType?: string) => any[];
|
|
21
23
|
}, never>, Pick<{
|
|
22
24
|
setCurrentBizType: (bizType?: string) => void;
|
|
23
25
|
setFormData: (data: any, bizType?: string) => void;
|
|
@@ -25,4 +27,5 @@ export declare const usefmPageFormDatatore: StoreDefinition<"fmPageFormDatatore"
|
|
|
25
27
|
clearFormData: (bizType?: string) => void;
|
|
26
28
|
clearAllFormData: () => void;
|
|
27
29
|
getLableLogData: (table: any, field: any, bizid: any, bizinType?: string) => any[];
|
|
28
|
-
|
|
30
|
+
getLableDelLogData: (table: any, field: any, bizid: any, bizinType?: string) => any[];
|
|
31
|
+
}, "setCurrentBizType" | "setFormData" | "getFormData" | "clearFormData" | "clearAllFormData" | "getLableLogData" | "getLableDelLogData">>;
|
package/locale/en.js
CHANGED
package/locale/en.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.176 */(function(e,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self,e.fmdeuiPlusLocaleEn=t())})(this,(function(){"use strict";var e={name:"en",plus:{datepicker:{date:"Please select date",dates:"Please select dates",week:"Please select week",month:"Please select month",months:"Please select months",year:"Please select year",years:"Please select years",startDatePlaceholder:"Please select start date",endDatePlaceholder:"Please select end date",datetime:"Please select datetime",startMonthPlaceholder:"Please select start month",endMonthPlaceholder:"Please select end month",startTimePlaceholder:"Please select start time",endTimePlaceholder:"Please select end time",shortcutsDate:{today:"Today",yesterday:"Yesterday",lastWeek:"Last week"},shortcutsDaterange:{pastWeek:"Past week",pastMonth:"Past month",pastThreeMonths:"Past three months"},shortcutsMonthrange:{thisMonth:"This month",thisYear:"This year",pastSixMonths:"Past six months"},shortcutsDatetime:{today:"Today",yesterday:"Yesterday",lastWeek:"Last week"},shortcutsDatetimerange:{pastWeek:"Past week",pastMonth:"Past month",pastThreeMonths:"Past three months"}},form:{pleaseEnter:"Please enter ",pleaseSelect:"Please select "},input:{placeholder:"Please enter ",appendTitle:"Yuan",validatePhone:"Please enter a valid phone number",validateIdCard:"Please enter a valid ID card number",validateInteger:"Please enter a valid integer",format:"Please enter a valid ",amount:"amount",numbers:"numbers",digitUppercase:"Please enter a valid amount format",validateError:"Please enter a valid format",escaped:{0:"Cent",1:"Penny",2:"Zero",3:"One",4:"Two",5:"Three",6:"Four",7:"Five",8:"Six",9:"Seven",10:"Eight",11:"Nine",12:"Yuan",13:"Ten thousand",14:"Ten million",15:"Ten billion",16:"Ten",17:"Hundred",18:"Thousand",19:"Short",20:"Whole"}},moduleForm:{save:"Save",back:"Back"},search:{searchText:"Search",resetText:"Reset",expand:"Expand",retract:"Retract",pleaseEnter:"Please enter ",pleaseSelect:"Please select ",popoverAttrs:{showTxt:"More",title:"All conditions",allTxt:"SelectAll",reverseTxt:"Reverse",clearTxt:"ClearAll"}},select:{selectAllTxt:"Select all"},selectIcon:{placeholder:"Please select icon",dialogTitle:"Please select icon",searchPlaceholder:"Search icon",emptyDescription:"No icon found"},copy:{copySuccess:"Copy success",copyFail:"Copy fail",invalidCopyContent:"Invalid copy content"},selectTable:{searchBtnTxt:"Search",radioTxt:"Radio",loadingTxt:"Loading...",copySuccess:"Copy success",copyFail:"Copy fail"},stepWizard:{lastBtnTitle:"Complete"},table:{columnBind:{btnTxt:"Column setting",title:"Column setting"},fistColumn:{label:"Number",radio:"Radio"},operator:{label:"Operation",more:"More",sum:"Sum",total:"Total",allSum:"All sum"},singleEdit:{tipText:"Click to edit"},pleaseEnter:"Please enter ",pleaseSelect:"Please select ",loadingTxt:"Loading...",dragTxt:"Drag",saveBtnTxt:"Save",density:"Density",default:"Default",loose:"Loose",compact:"Compact"},list:{idleTimeoutMessage:"Long time no operation, system logged out.",sysMessage:"System Message"}}};return e}));
|