@fmdeui/fmui 1.0.175 → 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 +45 -4
- package/es/packages/stores/thepagefromdata.mjs +26 -1
- package/es/stores/thepagefromdata.d.ts +4 -1
- package/index.js +72 -6
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +72 -6
- 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 +45 -4
- package/lib/packages/stores/thepagefromdata.js +26 -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
|
@@ -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"]>;
|
|
@@ -28,14 +28,21 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
type: Object,
|
|
29
29
|
default: () => {
|
|
30
30
|
}
|
|
31
|
+
},
|
|
32
|
+
isDel: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false
|
|
31
35
|
}
|
|
32
36
|
},
|
|
33
37
|
setup(__props) {
|
|
34
38
|
const props = __props;
|
|
35
39
|
const useBaseApi = usefmPageFormDatatore();
|
|
36
40
|
const tipLoadData = computed(() => {
|
|
37
|
-
var _a;
|
|
38
|
-
|
|
41
|
+
var _a, _b;
|
|
42
|
+
if (props.isDel) {
|
|
43
|
+
return useBaseApi.getLableDelLogData(props.params.table, props.params.field, props.params.bizid, ((_a = props.params) == null ? void 0 : _a.bizType) || "basefrom");
|
|
44
|
+
}
|
|
45
|
+
return useBaseApi.getLableLogData(props.params.table, props.params.field, props.params.bizid, ((_b = props.params) == null ? void 0 : _b.bizType) || "basefrom");
|
|
39
46
|
});
|
|
40
47
|
return (_ctx, _cache) => {
|
|
41
48
|
const _component_el_icon = resolveComponent("el-icon");
|
|
@@ -58,7 +65,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
58
65
|
style: { "position": "absolute", "top": "4px", "right": "4px", "z-index": "10", "line-height": "1" }
|
|
59
66
|
}, {
|
|
60
67
|
content: withCtx(() => [
|
|
61
|
-
tipLoadData.value.length > 0 ? (openBlock(true), createElementBlock(
|
|
68
|
+
tipLoadData.value.length > 0 && !__props.isDel ? (openBlock(true), createElementBlock(
|
|
62
69
|
Fragment,
|
|
63
70
|
{ key: 0 },
|
|
64
71
|
renderList(tipLoadData.value, (value) => {
|
|
@@ -103,8 +110,42 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
103
110
|
}),
|
|
104
111
|
256
|
|
105
112
|
/* UNKEYED_FRAGMENT */
|
|
113
|
+
)) : createCommentVNode("v-if", true),
|
|
114
|
+
tipLoadData.value.length > 0 && __props.isDel ? (openBlock(true), createElementBlock(
|
|
115
|
+
Fragment,
|
|
116
|
+
{ key: 1 },
|
|
117
|
+
renderList(tipLoadData.value, (value) => {
|
|
118
|
+
return openBlock(), createElementBlock("p", null, [
|
|
119
|
+
_cache[3] || (_cache[3] = createTextVNode(
|
|
120
|
+
" \u5220\u9664\u3010",
|
|
121
|
+
-1
|
|
122
|
+
/* CACHED */
|
|
123
|
+
)),
|
|
124
|
+
createElementVNode(
|
|
125
|
+
"strong",
|
|
126
|
+
null,
|
|
127
|
+
toDisplayString((value == null ? void 0 : value.supplierName) != null ? (value == null ? void 0 : value.supplierName) + "/" : "") + " " + toDisplayString(value.itemName),
|
|
128
|
+
1
|
|
129
|
+
/* TEXT */
|
|
130
|
+
),
|
|
131
|
+
createTextVNode(
|
|
132
|
+
"\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",
|
|
133
|
+
1
|
|
134
|
+
/* TEXT */
|
|
135
|
+
),
|
|
136
|
+
createElementVNode(
|
|
137
|
+
"strong",
|
|
138
|
+
null,
|
|
139
|
+
toDisplayString(value.opUser) + " " + toDisplayString(value.opDate),
|
|
140
|
+
1
|
|
141
|
+
/* TEXT */
|
|
142
|
+
)
|
|
143
|
+
]);
|
|
144
|
+
}),
|
|
145
|
+
256
|
|
146
|
+
/* UNKEYED_FRAGMENT */
|
|
106
147
|
)) : (openBlock(), createElementBlock("p", {
|
|
107
|
-
key:
|
|
148
|
+
key: 2,
|
|
108
149
|
innerHTML: __props.content
|
|
109
150
|
}, null, 8, _hoisted_3))
|
|
110
151
|
]),
|
|
@@ -43,13 +43,38 @@ const usefmPageFormDatatore = defineStore("fmPageFormDatatore", () => {
|
|
|
43
43
|
}
|
|
44
44
|
return resultLogData;
|
|
45
45
|
};
|
|
46
|
+
const getLableDelLogData = (table, field, bizid, bizinType = "basefrom") => {
|
|
47
|
+
const resultLogData = [];
|
|
48
|
+
const bizType = state.currentBizType != "" ? state.currentBizType : bizinType;
|
|
49
|
+
if (state.formData[bizType]) {
|
|
50
|
+
state.formData[bizType].forEach((item) => {
|
|
51
|
+
var _a, _b;
|
|
52
|
+
const filteredLogs = (_b = (_a = item.logData) == null ? void 0 : _a.filter(
|
|
53
|
+
(log) => {
|
|
54
|
+
var _a2;
|
|
55
|
+
return log.table === table && log.field === field && ((_a2 = log == null ? void 0 : log.snapshot) == null ? void 0 : _a2.regMainId) === bizid && log.actionType === "delete";
|
|
56
|
+
}
|
|
57
|
+
)) != null ? _b : [];
|
|
58
|
+
filteredLogs.forEach((log) => {
|
|
59
|
+
resultLogData.push({
|
|
60
|
+
...log.snapshot,
|
|
61
|
+
// 保留原有属性
|
|
62
|
+
opUser: item.createUserName,
|
|
63
|
+
opDate: item.createTime
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
return resultLogData;
|
|
69
|
+
};
|
|
46
70
|
return {
|
|
47
71
|
setCurrentBizType,
|
|
48
72
|
setFormData,
|
|
49
73
|
getFormData,
|
|
50
74
|
clearFormData,
|
|
51
75
|
clearAllFormData,
|
|
52
|
-
getLableLogData
|
|
76
|
+
getLableLogData,
|
|
77
|
+
getLableDelLogData
|
|
53
78
|
};
|
|
54
79
|
});
|
|
55
80
|
|
|
@@ -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/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.176 */
|
|
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) :
|
|
@@ -4138,13 +4138,38 @@
|
|
|
4138
4138
|
}
|
|
4139
4139
|
return resultLogData;
|
|
4140
4140
|
};
|
|
4141
|
+
const getLableDelLogData = (table, field, bizid, bizinType = "basefrom") => {
|
|
4142
|
+
const resultLogData = [];
|
|
4143
|
+
const bizType = state.currentBizType != "" ? state.currentBizType : bizinType;
|
|
4144
|
+
if (state.formData[bizType]) {
|
|
4145
|
+
state.formData[bizType].forEach((item) => {
|
|
4146
|
+
var _a, _b;
|
|
4147
|
+
const filteredLogs = (_b = (_a = item.logData) == null ? void 0 : _a.filter(
|
|
4148
|
+
(log) => {
|
|
4149
|
+
var _a2;
|
|
4150
|
+
return log.table === table && log.field === field && ((_a2 = log == null ? void 0 : log.snapshot) == null ? void 0 : _a2.regMainId) === bizid && log.actionType === "delete";
|
|
4151
|
+
}
|
|
4152
|
+
)) != null ? _b : [];
|
|
4153
|
+
filteredLogs.forEach((log) => {
|
|
4154
|
+
resultLogData.push({
|
|
4155
|
+
...log.snapshot,
|
|
4156
|
+
// 保留原有属性
|
|
4157
|
+
opUser: item.createUserName,
|
|
4158
|
+
opDate: item.createTime
|
|
4159
|
+
});
|
|
4160
|
+
});
|
|
4161
|
+
});
|
|
4162
|
+
}
|
|
4163
|
+
return resultLogData;
|
|
4164
|
+
};
|
|
4141
4165
|
return {
|
|
4142
4166
|
setCurrentBizType,
|
|
4143
4167
|
setFormData,
|
|
4144
4168
|
getFormData,
|
|
4145
4169
|
clearFormData,
|
|
4146
4170
|
clearAllFormData,
|
|
4147
|
-
getLableLogData
|
|
4171
|
+
getLableLogData,
|
|
4172
|
+
getLableDelLogData
|
|
4148
4173
|
};
|
|
4149
4174
|
});
|
|
4150
4175
|
|
|
@@ -31474,14 +31499,21 @@
|
|
|
31474
31499
|
type: Object,
|
|
31475
31500
|
default: () => {
|
|
31476
31501
|
}
|
|
31502
|
+
},
|
|
31503
|
+
isDel: {
|
|
31504
|
+
type: Boolean,
|
|
31505
|
+
default: false
|
|
31477
31506
|
}
|
|
31478
31507
|
},
|
|
31479
31508
|
setup(__props) {
|
|
31480
31509
|
const props = __props;
|
|
31481
31510
|
const useBaseApi = usefmPageFormDatatore();
|
|
31482
31511
|
const tipLoadData = vue.computed(() => {
|
|
31483
|
-
var _a;
|
|
31484
|
-
|
|
31512
|
+
var _a, _b;
|
|
31513
|
+
if (props.isDel) {
|
|
31514
|
+
return useBaseApi.getLableDelLogData(props.params.table, props.params.field, props.params.bizid, ((_a = props.params) == null ? void 0 : _a.bizType) || "basefrom");
|
|
31515
|
+
}
|
|
31516
|
+
return useBaseApi.getLableLogData(props.params.table, props.params.field, props.params.bizid, ((_b = props.params) == null ? void 0 : _b.bizType) || "basefrom");
|
|
31485
31517
|
});
|
|
31486
31518
|
return (_ctx, _cache) => {
|
|
31487
31519
|
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
@@ -31504,7 +31536,7 @@
|
|
|
31504
31536
|
style: { "position": "absolute", "top": "4px", "right": "4px", "z-index": "10", "line-height": "1" }
|
|
31505
31537
|
}, {
|
|
31506
31538
|
content: vue.withCtx(() => [
|
|
31507
|
-
tipLoadData.value.length > 0 ? (vue.openBlock(true), vue.createElementBlock(
|
|
31539
|
+
tipLoadData.value.length > 0 && !__props.isDel ? (vue.openBlock(true), vue.createElementBlock(
|
|
31508
31540
|
vue.Fragment,
|
|
31509
31541
|
{ key: 0 },
|
|
31510
31542
|
vue.renderList(tipLoadData.value, (value) => {
|
|
@@ -31549,8 +31581,42 @@
|
|
|
31549
31581
|
}),
|
|
31550
31582
|
256
|
|
31551
31583
|
/* UNKEYED_FRAGMENT */
|
|
31584
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
31585
|
+
tipLoadData.value.length > 0 && __props.isDel ? (vue.openBlock(true), vue.createElementBlock(
|
|
31586
|
+
vue.Fragment,
|
|
31587
|
+
{ key: 1 },
|
|
31588
|
+
vue.renderList(tipLoadData.value, (value) => {
|
|
31589
|
+
return vue.openBlock(), vue.createElementBlock("p", null, [
|
|
31590
|
+
_cache[3] || (_cache[3] = vue.createTextVNode(
|
|
31591
|
+
" \u5220\u9664\u3010",
|
|
31592
|
+
-1
|
|
31593
|
+
/* CACHED */
|
|
31594
|
+
)),
|
|
31595
|
+
vue.createElementVNode(
|
|
31596
|
+
"strong",
|
|
31597
|
+
null,
|
|
31598
|
+
vue.toDisplayString((value == null ? void 0 : value.supplierName) != null ? (value == null ? void 0 : value.supplierName) + "/" : "") + " " + vue.toDisplayString(value.itemName),
|
|
31599
|
+
1
|
|
31600
|
+
/* TEXT */
|
|
31601
|
+
),
|
|
31602
|
+
vue.createTextVNode(
|
|
31603
|
+
"\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",
|
|
31604
|
+
1
|
|
31605
|
+
/* TEXT */
|
|
31606
|
+
),
|
|
31607
|
+
vue.createElementVNode(
|
|
31608
|
+
"strong",
|
|
31609
|
+
null,
|
|
31610
|
+
vue.toDisplayString(value.opUser) + " " + vue.toDisplayString(value.opDate),
|
|
31611
|
+
1
|
|
31612
|
+
/* TEXT */
|
|
31613
|
+
)
|
|
31614
|
+
]);
|
|
31615
|
+
}),
|
|
31616
|
+
256
|
|
31617
|
+
/* UNKEYED_FRAGMENT */
|
|
31552
31618
|
)) : (vue.openBlock(), vue.createElementBlock("p", {
|
|
31553
|
-
key:
|
|
31619
|
+
key: 2,
|
|
31554
31620
|
innerHTML: __props.content
|
|
31555
31621
|
}, null, 8, _hoisted_3$8))
|
|
31556
31622
|
]),
|