@fmdeui/fmui 1.0.106 → 1.0.108
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-autocomplete/component/supplierSelectDialog.vue.d.ts +69 -0
- package/es/components/fm-autocomplete/index.vue.d.ts +2 -2
- package/es/hooks/limitsFunction.d.ts +1 -0
- package/es/index.mjs +1 -1
- package/es/packages/components/fm-autocomplete/component/supplierSelectDialog.vue.mjs +5 -0
- package/es/packages/components/fm-autocomplete/component/supplierSelectDialog.vue2.mjs +378 -0
- package/es/packages/components/fm-autocomplete/index.vue2.mjs +19 -6
- package/es/packages/components/fm-inputnumber/index.vue2.mjs +2 -1
- package/es/packages/hooks/index.mjs +1 -1
- package/es/packages/hooks/limitsFunction.mjs +14 -1
- package/index.js +496 -97
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +496 -98
- package/lib/components/fm-autocomplete/component/supplierSelectDialog.vue.d.ts +69 -0
- package/lib/components/fm-autocomplete/index.vue.d.ts +2 -2
- package/lib/hooks/limitsFunction.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/packages/components/fm-autocomplete/component/supplierSelectDialog.vue.js +9 -0
- package/lib/packages/components/fm-autocomplete/component/supplierSelectDialog.vue2.js +382 -0
- package/lib/packages/components/fm-autocomplete/index.vue2.js +18 -5
- package/lib/packages/components/fm-inputnumber/index.vue2.js +2 -1
- package/lib/packages/hooks/index.js +1 -0
- package/lib/packages/hooks/limitsFunction.js +14 -0
- 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/{version.css → component.css} +0 -0
- /package/lib/{version.css → component.css} +0 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
3
|
+
visible: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
title: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
data: {
|
|
12
|
+
type: ArrayConstructor;
|
|
13
|
+
default: () => never[];
|
|
14
|
+
};
|
|
15
|
+
userService: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
userAction: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
userParams: {
|
|
24
|
+
type: ObjectConstructor;
|
|
25
|
+
default: () => void;
|
|
26
|
+
};
|
|
27
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
28
|
+
change: (...args: any[]) => void;
|
|
29
|
+
"update:visible": (...args: any[]) => void;
|
|
30
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
31
|
+
visible: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
title: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
data: {
|
|
40
|
+
type: ArrayConstructor;
|
|
41
|
+
default: () => never[];
|
|
42
|
+
};
|
|
43
|
+
userService: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
userAction: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
userParams: {
|
|
52
|
+
type: ObjectConstructor;
|
|
53
|
+
default: () => void;
|
|
54
|
+
};
|
|
55
|
+
}>> & Readonly<{
|
|
56
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
58
|
+
}>, {
|
|
59
|
+
title: string;
|
|
60
|
+
data: unknown[];
|
|
61
|
+
visible: boolean;
|
|
62
|
+
userService: string;
|
|
63
|
+
userAction: string;
|
|
64
|
+
userParams: Record<string, any>;
|
|
65
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
66
|
+
queryRef: unknown;
|
|
67
|
+
refTable: unknown;
|
|
68
|
+
}, any>;
|
|
69
|
+
export default _default;
|
|
@@ -56,7 +56,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
56
56
|
default: () => void;
|
|
57
57
|
};
|
|
58
58
|
/**
|
|
59
|
-
* 打开类型 1
|
|
59
|
+
* 打开类型 0--用户加机构 1 联系人 2 单位
|
|
60
60
|
* @default 1
|
|
61
61
|
*/
|
|
62
62
|
openType: {
|
|
@@ -149,7 +149,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
149
149
|
default: () => void;
|
|
150
150
|
};
|
|
151
151
|
/**
|
|
152
|
-
* 打开类型 1
|
|
152
|
+
* 打开类型 0--用户加机构 1 联系人 2 单位
|
|
153
153
|
* @default 1
|
|
154
154
|
*/
|
|
155
155
|
openType: {
|
|
@@ -27,3 +27,4 @@ export declare function getFormItemLabel(field: string, defaultValue: string): s
|
|
|
27
27
|
export declare function showTabelColumn(field: string): boolean;
|
|
28
28
|
export declare function getSubFormFields(flag: string): any;
|
|
29
29
|
export declare function getShowColumn(flag: string, field: string): boolean;
|
|
30
|
+
export declare function getShowColumnWidth(flag: string, field: string, defaultValue?: string, isJson?: boolean): any;
|
package/lib/index.js
CHANGED
|
@@ -174,6 +174,7 @@ exports.getFormItemLabel = limitsFunction.getFormItemLabel;
|
|
|
174
174
|
exports.getFormItemProp = limitsFunction.getFormItemProp;
|
|
175
175
|
exports.getRules = limitsFunction.getRules;
|
|
176
176
|
exports.getShowColumn = limitsFunction.getShowColumn;
|
|
177
|
+
exports.getShowColumnWidth = limitsFunction.getShowColumnWidth;
|
|
177
178
|
exports.getSubFormFields = limitsFunction.getSubFormFields;
|
|
178
179
|
exports.getlimit = limitsFunction.getlimit;
|
|
179
180
|
exports.showTabelColumn = limitsFunction.showTabelColumn;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var supplierSelectDialog_vue_vue_type_script_setup_true_lang = require('./supplierSelectDialog.vue2.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.default = supplierSelectDialog_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
require('../../../api/index.js');
|
|
7
|
+
var index = require('../../../api/base/index.js');
|
|
8
|
+
|
|
9
|
+
const _hoisted_1 = { style: { "color": "#fff" } };
|
|
10
|
+
const _hoisted_2 = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
|
|
11
|
+
const _hoisted_3 = { style: { "margin-top": "10px" } };
|
|
12
|
+
const _hoisted_4 = { class: "dialog-footer" };
|
|
13
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
14
|
+
__name: "supplierSelectDialog",
|
|
15
|
+
props: {
|
|
16
|
+
visible: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: false
|
|
19
|
+
},
|
|
20
|
+
title: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: ""
|
|
23
|
+
},
|
|
24
|
+
data: {
|
|
25
|
+
type: Array,
|
|
26
|
+
default: () => []
|
|
27
|
+
},
|
|
28
|
+
userService: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "autoRes"
|
|
31
|
+
},
|
|
32
|
+
userAction: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: "UserTable"
|
|
35
|
+
},
|
|
36
|
+
userParams: {
|
|
37
|
+
type: Object,
|
|
38
|
+
default: () => {
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
emits: ["update:visible", "change"],
|
|
43
|
+
setup(__props, { emit: __emit }) {
|
|
44
|
+
let emits = __emit;
|
|
45
|
+
const props = __props;
|
|
46
|
+
const userList = vue.ref([]);
|
|
47
|
+
let checkedUsersList = vue.ref([]);
|
|
48
|
+
const state = vue.reactive({
|
|
49
|
+
total: 0,
|
|
50
|
+
queryParams: {
|
|
51
|
+
orgId: -1,
|
|
52
|
+
page: 1,
|
|
53
|
+
pageSize: 50
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
let visibleDialog = vue.computed({
|
|
57
|
+
get() {
|
|
58
|
+
return props.visible;
|
|
59
|
+
},
|
|
60
|
+
set() {
|
|
61
|
+
closeDialog();
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
vue.onMounted(async () => {
|
|
65
|
+
await getUserList();
|
|
66
|
+
});
|
|
67
|
+
const resetQuery = () => {
|
|
68
|
+
state.queryParams = {};
|
|
69
|
+
handleQuery();
|
|
70
|
+
};
|
|
71
|
+
const getUserList = async () => {
|
|
72
|
+
var _a, _b, _c, _d;
|
|
73
|
+
let res = await index.useBaseApi(props.userService).post({ ...state.queryParams, ...props.userParams }, props.userAction);
|
|
74
|
+
userList.value = (_b = (_a = res.data.result) == null ? void 0 : _a.items) != null ? _b : [];
|
|
75
|
+
state.queryParams.total = (_d = (_c = res.data.result) == null ? void 0 : _c.total) != null ? _d : 0;
|
|
76
|
+
};
|
|
77
|
+
async function handleQuery() {
|
|
78
|
+
state.queryParams.pageNum = 1;
|
|
79
|
+
await getUserList();
|
|
80
|
+
}
|
|
81
|
+
function handleSelectUser(row) {
|
|
82
|
+
if (!row || row.id == "") return;
|
|
83
|
+
emits("change", { id: row.id, name: row.supplierName, data: row });
|
|
84
|
+
}
|
|
85
|
+
const handledbclick = (row) => {
|
|
86
|
+
handleSelectUser(row);
|
|
87
|
+
};
|
|
88
|
+
const handleSizeChange = (val) => {
|
|
89
|
+
state.queryParams.pageSize = val;
|
|
90
|
+
handleQuery();
|
|
91
|
+
};
|
|
92
|
+
const handleCurrentChange = (val) => {
|
|
93
|
+
state.queryParams.page = val;
|
|
94
|
+
handleQuery();
|
|
95
|
+
};
|
|
96
|
+
const closeDialog = () => {
|
|
97
|
+
checkedUsersList.value = [];
|
|
98
|
+
emits("update:visible", false);
|
|
99
|
+
};
|
|
100
|
+
return (_ctx, _cache) => {
|
|
101
|
+
const _component_ele_Edit = vue.resolveComponent("ele-Edit");
|
|
102
|
+
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
103
|
+
const _component_el_input = vue.resolveComponent("el-input");
|
|
104
|
+
const _component_el_form_item = vue.resolveComponent("el-form-item");
|
|
105
|
+
const _component_el_button = vue.resolveComponent("el-button");
|
|
106
|
+
const _component_el_button_group = vue.resolveComponent("el-button-group");
|
|
107
|
+
const _component_el_form = vue.resolveComponent("el-form");
|
|
108
|
+
const _component_ele_Plus = vue.resolveComponent("ele-Plus");
|
|
109
|
+
const _component_el_table_column = vue.resolveComponent("el-table-column");
|
|
110
|
+
const _component_el_table = vue.resolveComponent("el-table");
|
|
111
|
+
const _component_el_pagination = vue.resolveComponent("el-pagination");
|
|
112
|
+
const _component_el_card = vue.resolveComponent("el-card");
|
|
113
|
+
const _component_el_col = vue.resolveComponent("el-col");
|
|
114
|
+
const _component_el_row = vue.resolveComponent("el-row");
|
|
115
|
+
const _component_el_dialog = vue.resolveComponent("el-dialog");
|
|
116
|
+
return vue.openBlock(), vue.createBlock(_component_el_dialog, {
|
|
117
|
+
modelValue: vue.unref(visibleDialog),
|
|
118
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(visibleDialog) ? visibleDialog.value = $event : visibleDialog = $event),
|
|
119
|
+
style: { "width": "70vw" },
|
|
120
|
+
"append-to-body": "",
|
|
121
|
+
draggable: "",
|
|
122
|
+
"close-on-click-modal": false
|
|
123
|
+
}, {
|
|
124
|
+
header: vue.withCtx(() => [
|
|
125
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
126
|
+
vue.createVNode(_component_el_icon, {
|
|
127
|
+
size: "16",
|
|
128
|
+
style: { "margin-right": "3px", "display": "inline", "vertical-align": "middle" }
|
|
129
|
+
}, {
|
|
130
|
+
default: vue.withCtx(() => [
|
|
131
|
+
vue.createVNode(_component_ele_Edit)
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
/* STABLE */
|
|
135
|
+
}),
|
|
136
|
+
vue.createElementVNode(
|
|
137
|
+
"span",
|
|
138
|
+
null,
|
|
139
|
+
vue.toDisplayString(_ctx.$t("\u9009\u62E9")) + vue.toDisplayString(_ctx.$t(__props.title)),
|
|
140
|
+
1
|
|
141
|
+
/* TEXT */
|
|
142
|
+
)
|
|
143
|
+
])
|
|
144
|
+
]),
|
|
145
|
+
footer: vue.withCtx(() => [
|
|
146
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
147
|
+
vue.createVNode(_component_el_button, {
|
|
148
|
+
icon: "ele-CircleCloseFilled",
|
|
149
|
+
onClick: closeDialog
|
|
150
|
+
}, {
|
|
151
|
+
default: vue.withCtx(() => [
|
|
152
|
+
vue.createTextVNode(
|
|
153
|
+
vue.toDisplayString(_ctx.$t("\u53D6\u6D88")),
|
|
154
|
+
1
|
|
155
|
+
/* TEXT */
|
|
156
|
+
)
|
|
157
|
+
]),
|
|
158
|
+
_: 1
|
|
159
|
+
/* STABLE */
|
|
160
|
+
}),
|
|
161
|
+
vue.createCommentVNode(' <el-button type="primary" icon="ele-CircleCheckFilled" @click="saveDialog">\u786E\u5B9A</el-button> ')
|
|
162
|
+
])
|
|
163
|
+
]),
|
|
164
|
+
default: vue.withCtx(() => [
|
|
165
|
+
vue.createVNode(_component_el_row, { gutter: 10 }, {
|
|
166
|
+
default: vue.withCtx(() => [
|
|
167
|
+
vue.createVNode(_component_el_col, { span: 18 }, {
|
|
168
|
+
default: vue.withCtx(() => [
|
|
169
|
+
vue.createElementVNode(
|
|
170
|
+
"p",
|
|
171
|
+
_hoisted_2,
|
|
172
|
+
vue.toDisplayString(_ctx.$t(__props.title)) + vue.toDisplayString(_ctx.$t("\u5217\u8868")),
|
|
173
|
+
1
|
|
174
|
+
/* TEXT */
|
|
175
|
+
),
|
|
176
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
177
|
+
vue.createVNode(_component_el_form, {
|
|
178
|
+
model: state.queryParams,
|
|
179
|
+
ref: "queryRef",
|
|
180
|
+
inline: true
|
|
181
|
+
}, {
|
|
182
|
+
default: vue.withCtx(() => [
|
|
183
|
+
vue.createVNode(_component_el_form_item, {
|
|
184
|
+
label: _ctx.$t("\u5173\u952E\u5B57")
|
|
185
|
+
}, {
|
|
186
|
+
default: vue.withCtx(() => [
|
|
187
|
+
vue.createVNode(_component_el_input, {
|
|
188
|
+
modelValue: state.queryParams.keyword,
|
|
189
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.queryParams.keyword = $event),
|
|
190
|
+
clearable: "",
|
|
191
|
+
style: { "width": "150px" },
|
|
192
|
+
onKeyup: vue.withKeys(handleQuery, ["enter"])
|
|
193
|
+
}, null, 8, ["modelValue"])
|
|
194
|
+
]),
|
|
195
|
+
_: 1
|
|
196
|
+
/* STABLE */
|
|
197
|
+
}, 8, ["label"]),
|
|
198
|
+
vue.createVNode(_component_el_form_item, null, {
|
|
199
|
+
default: vue.withCtx(() => [
|
|
200
|
+
vue.createVNode(_component_el_button_group, null, {
|
|
201
|
+
default: vue.withCtx(() => [
|
|
202
|
+
vue.createVNode(_component_el_button, {
|
|
203
|
+
type: "primary",
|
|
204
|
+
icon: "ele-Search",
|
|
205
|
+
onClick: handleQuery
|
|
206
|
+
}, {
|
|
207
|
+
default: vue.withCtx(() => [
|
|
208
|
+
vue.createTextVNode(
|
|
209
|
+
vue.toDisplayString(_ctx.$t("\u67E5\u8BE2")),
|
|
210
|
+
1
|
|
211
|
+
/* TEXT */
|
|
212
|
+
)
|
|
213
|
+
]),
|
|
214
|
+
_: 1
|
|
215
|
+
/* STABLE */
|
|
216
|
+
}),
|
|
217
|
+
vue.createVNode(_component_el_button, {
|
|
218
|
+
icon: "ele-Refresh",
|
|
219
|
+
onClick: resetQuery
|
|
220
|
+
}, {
|
|
221
|
+
default: vue.withCtx(() => [
|
|
222
|
+
vue.createTextVNode(
|
|
223
|
+
vue.toDisplayString(_ctx.$t("\u91CD\u7F6E")),
|
|
224
|
+
1
|
|
225
|
+
/* TEXT */
|
|
226
|
+
)
|
|
227
|
+
]),
|
|
228
|
+
_: 1
|
|
229
|
+
/* STABLE */
|
|
230
|
+
})
|
|
231
|
+
]),
|
|
232
|
+
_: 1
|
|
233
|
+
/* STABLE */
|
|
234
|
+
}),
|
|
235
|
+
vue.createCommentVNode(' <el-button type="primary" icon="ele-DArrowRight" plain style="margin-left: 10px" @click="handleSelectAllUser"> \u5168\u9009 </el-button> ')
|
|
236
|
+
]),
|
|
237
|
+
_: 1
|
|
238
|
+
/* STABLE */
|
|
239
|
+
})
|
|
240
|
+
]),
|
|
241
|
+
_: 1
|
|
242
|
+
/* STABLE */
|
|
243
|
+
}, 8, ["model"]),
|
|
244
|
+
vue.createVNode(_component_el_card, {
|
|
245
|
+
class: "full-table",
|
|
246
|
+
shadow: "hover"
|
|
247
|
+
}, {
|
|
248
|
+
default: vue.withCtx(() => [
|
|
249
|
+
vue.createVNode(_component_el_table, {
|
|
250
|
+
ref: "refTable",
|
|
251
|
+
data: userList.value,
|
|
252
|
+
style: { "height": "calc(70vh - 96px)" },
|
|
253
|
+
onRowDblclick: handledbclick
|
|
254
|
+
}, {
|
|
255
|
+
default: vue.withCtx(() => [
|
|
256
|
+
vue.createVNode(_component_el_table_column, {
|
|
257
|
+
label: "\u64CD\u4F5C",
|
|
258
|
+
width: "60",
|
|
259
|
+
align: "center"
|
|
260
|
+
}, {
|
|
261
|
+
default: vue.withCtx((scope) => [
|
|
262
|
+
vue.createVNode(_component_el_button, {
|
|
263
|
+
link: "",
|
|
264
|
+
type: "primary",
|
|
265
|
+
onClick: ($event) => handleSelectUser(scope.row)
|
|
266
|
+
}, {
|
|
267
|
+
default: vue.withCtx(() => [
|
|
268
|
+
vue.createVNode(_component_el_icon, null, {
|
|
269
|
+
default: vue.withCtx(() => [
|
|
270
|
+
vue.createVNode(_component_ele_Plus)
|
|
271
|
+
]),
|
|
272
|
+
_: 1
|
|
273
|
+
/* STABLE */
|
|
274
|
+
})
|
|
275
|
+
]),
|
|
276
|
+
_: 1
|
|
277
|
+
/* STABLE */
|
|
278
|
+
}, 8, ["onClick"])
|
|
279
|
+
]),
|
|
280
|
+
_: 1
|
|
281
|
+
/* STABLE */
|
|
282
|
+
}),
|
|
283
|
+
vue.createVNode(_component_el_table_column, {
|
|
284
|
+
label: _ctx.$t("\u540D\u79F0"),
|
|
285
|
+
prop: "supplierName",
|
|
286
|
+
align: "center",
|
|
287
|
+
"show-overflow-tooltip": true
|
|
288
|
+
}, null, 8, ["label"]),
|
|
289
|
+
vue.createVNode(_component_el_table_column, {
|
|
290
|
+
label: _ctx.$t("\u8D1F\u8D23\u4EBA"),
|
|
291
|
+
prop: "mainuser",
|
|
292
|
+
align: "center",
|
|
293
|
+
"show-overflow-tooltip": true
|
|
294
|
+
}, {
|
|
295
|
+
default: vue.withCtx((scope) => {
|
|
296
|
+
var _a, _b;
|
|
297
|
+
return [
|
|
298
|
+
vue.createTextVNode(
|
|
299
|
+
vue.toDisplayString((_b = (_a = scope.row) == null ? void 0 : _a.mainManager) == null ? void 0 : _b.Contact),
|
|
300
|
+
1
|
|
301
|
+
/* TEXT */
|
|
302
|
+
)
|
|
303
|
+
];
|
|
304
|
+
}),
|
|
305
|
+
_: 1
|
|
306
|
+
/* STABLE */
|
|
307
|
+
}, 8, ["label"]),
|
|
308
|
+
vue.createVNode(_component_el_table_column, {
|
|
309
|
+
label: _ctx.$t("\u7535\u8BDD"),
|
|
310
|
+
prop: "mainusertel",
|
|
311
|
+
align: "center",
|
|
312
|
+
"show-overflow-tooltip": true
|
|
313
|
+
}, {
|
|
314
|
+
default: vue.withCtx((scope) => {
|
|
315
|
+
var _a, _b;
|
|
316
|
+
return [
|
|
317
|
+
vue.createTextVNode(
|
|
318
|
+
vue.toDisplayString((_b = (_a = scope.row) == null ? void 0 : _a.mainManager) == null ? void 0 : _b.tel),
|
|
319
|
+
1
|
|
320
|
+
/* TEXT */
|
|
321
|
+
)
|
|
322
|
+
];
|
|
323
|
+
}),
|
|
324
|
+
_: 1
|
|
325
|
+
/* STABLE */
|
|
326
|
+
}, 8, ["label"]),
|
|
327
|
+
vue.createVNode(_component_el_table_column, {
|
|
328
|
+
label: _ctx.$t("\u6240\u5728\u533A\u57DF"),
|
|
329
|
+
prop: "mainusertel",
|
|
330
|
+
align: "center",
|
|
331
|
+
"show-overflow-tooltip": true
|
|
332
|
+
}, {
|
|
333
|
+
default: vue.withCtx((scope) => {
|
|
334
|
+
var _a, _b, _c, _d, _e, _f;
|
|
335
|
+
return [
|
|
336
|
+
vue.createTextVNode(
|
|
337
|
+
vue.toDisplayString((_b = (_a = scope.row) == null ? void 0 : _a.mainManager) == null ? void 0 : _b.province) + vue.toDisplayString((_d = (_c = scope.row) == null ? void 0 : _c.mainManager) == null ? void 0 : _d.city) + vue.toDisplayString((_f = (_e = scope.row) == null ? void 0 : _e.mainManager) == null ? void 0 : _f.district),
|
|
338
|
+
1
|
|
339
|
+
/* TEXT */
|
|
340
|
+
)
|
|
341
|
+
];
|
|
342
|
+
}),
|
|
343
|
+
_: 1
|
|
344
|
+
/* STABLE */
|
|
345
|
+
}, 8, ["label"])
|
|
346
|
+
]),
|
|
347
|
+
_: 1
|
|
348
|
+
/* STABLE */
|
|
349
|
+
}, 8, ["data"]),
|
|
350
|
+
vue.createVNode(_component_el_pagination, {
|
|
351
|
+
currentPage: state.queryParams.page,
|
|
352
|
+
"page-size": state.queryParams.pageSize,
|
|
353
|
+
total: state.queryParams.total,
|
|
354
|
+
"page-sizes": [10, 20, 50, 100],
|
|
355
|
+
background: "",
|
|
356
|
+
onSizeChange: handleSizeChange,
|
|
357
|
+
onCurrentChange: handleCurrentChange,
|
|
358
|
+
layout: "total, sizes, prev, pager, next, jumper",
|
|
359
|
+
style: { "padding-bottom": "8px" }
|
|
360
|
+
}, null, 8, ["currentPage", "page-size", "total"])
|
|
361
|
+
]),
|
|
362
|
+
_: 1
|
|
363
|
+
/* STABLE */
|
|
364
|
+
})
|
|
365
|
+
])
|
|
366
|
+
]),
|
|
367
|
+
_: 1
|
|
368
|
+
/* STABLE */
|
|
369
|
+
})
|
|
370
|
+
]),
|
|
371
|
+
_: 1
|
|
372
|
+
/* STABLE */
|
|
373
|
+
})
|
|
374
|
+
]),
|
|
375
|
+
_: 1
|
|
376
|
+
/* STABLE */
|
|
377
|
+
}, 8, ["modelValue"]);
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
|
|
382
|
+
exports.default = _sfc_main;
|
|
@@ -6,8 +6,10 @@ var vue = require('vue');
|
|
|
6
6
|
var svg = require('@element-plus/icons-vue');
|
|
7
7
|
require('../../api/index.js');
|
|
8
8
|
require('./component/userSelectDialog.vue.js');
|
|
9
|
+
require('./component/supplierSelectDialog.vue.js');
|
|
9
10
|
var index = require('../../api/base/index.js');
|
|
10
11
|
var userSelectDialog_vue_vue_type_script_setup_true_lang = require('./component/userSelectDialog.vue2.js');
|
|
12
|
+
var supplierSelectDialog_vue_vue_type_script_setup_true_lang = require('./component/supplierSelectDialog.vue2.js');
|
|
11
13
|
|
|
12
14
|
const _hoisted_1 = { style: { "font-size": "14px", "line-height": "30px" } };
|
|
13
15
|
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -73,12 +75,12 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
73
75
|
}
|
|
74
76
|
},
|
|
75
77
|
/**
|
|
76
|
-
* 打开类型 1
|
|
78
|
+
* 打开类型 0--用户加机构 1 联系人 2 单位
|
|
77
79
|
* @default 1
|
|
78
80
|
*/
|
|
79
81
|
openType: {
|
|
80
82
|
type: Number,
|
|
81
|
-
default:
|
|
83
|
+
default: 0
|
|
82
84
|
},
|
|
83
85
|
orgService: {
|
|
84
86
|
type: String,
|
|
@@ -152,7 +154,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
152
154
|
const _component_el_autocomplete = vue.resolveComponent("el-autocomplete");
|
|
153
155
|
return vue.openBlock(), vue.createBlock(_component_el_autocomplete, {
|
|
154
156
|
modelValue: autoName.value,
|
|
155
|
-
"onUpdate:modelValue": _cache[
|
|
157
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => autoName.value = $event),
|
|
156
158
|
debounce: 500,
|
|
157
159
|
"fetch-suggestions": querySearchAsync,
|
|
158
160
|
placeholder: props.placeholder,
|
|
@@ -181,7 +183,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
181
183
|
_: 1
|
|
182
184
|
/* STABLE */
|
|
183
185
|
}, 8, ["size"]),
|
|
184
|
-
vue.
|
|
186
|
+
__props.openType == 0 ? (vue.openBlock(), vue.createBlock(userSelectDialog_vue_vue_type_script_setup_true_lang.default, {
|
|
187
|
+
key: 0,
|
|
185
188
|
visible: visibleopenDialog.value,
|
|
186
189
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visibleopenDialog.value = $event),
|
|
187
190
|
orgService: __props.orgService,
|
|
@@ -192,7 +195,17 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
192
195
|
userAction: __props.userAction,
|
|
193
196
|
userParams: __props.params,
|
|
194
197
|
onChange: handleSelectDialogChange
|
|
195
|
-
}, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])
|
|
198
|
+
}, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])) : vue.createCommentVNode("v-if", true),
|
|
199
|
+
__props.openType == 2 ? (vue.openBlock(), vue.createBlock(supplierSelectDialog_vue_vue_type_script_setup_true_lang.default, {
|
|
200
|
+
key: 1,
|
|
201
|
+
visible: visibleopenDialog.value,
|
|
202
|
+
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visibleopenDialog.value = $event),
|
|
203
|
+
title: __props.title,
|
|
204
|
+
userService: __props.userService,
|
|
205
|
+
userAction: __props.userAction,
|
|
206
|
+
userParams: __props.params,
|
|
207
|
+
onChange: handleSelectDialogChange
|
|
208
|
+
}, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : vue.createCommentVNode("v-if", true)
|
|
196
209
|
]),
|
|
197
210
|
_: 1
|
|
198
211
|
/* STABLE */
|
|
@@ -37,7 +37,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
39
|
if (props.bType == "number") {
|
|
40
|
-
|
|
40
|
+
let trimstr = String(val).replace(/[^\d]/g, "");
|
|
41
|
+
const num = parseInt(trimstr, 10);
|
|
41
42
|
const validNum = Number.isNaN(num) ? props.defaultValue : num;
|
|
42
43
|
modelValue.value = validNum;
|
|
43
44
|
emit("handleInput", validNum);
|
|
@@ -61,6 +61,7 @@ exports.getFormItemLabel = limitsFunction.getFormItemLabel;
|
|
|
61
61
|
exports.getFormItemProp = limitsFunction.getFormItemProp;
|
|
62
62
|
exports.getRules = limitsFunction.getRules;
|
|
63
63
|
exports.getShowColumn = limitsFunction.getShowColumn;
|
|
64
|
+
exports.getShowColumnWidth = limitsFunction.getShowColumnWidth;
|
|
64
65
|
exports.getSubFormFields = limitsFunction.getSubFormFields;
|
|
65
66
|
exports.getlimit = limitsFunction.getlimit;
|
|
66
67
|
exports.showTabelColumn = limitsFunction.showTabelColumn;
|
|
@@ -76,11 +76,25 @@ function getShowColumn(flag, field) {
|
|
|
76
76
|
}
|
|
77
77
|
return true;
|
|
78
78
|
}
|
|
79
|
+
function getShowColumnWidth(flag, field, defaultValue = "", isJson = false) {
|
|
80
|
+
var _a, _b, _c, _d;
|
|
81
|
+
const stores = userInfo.useUserInfo();
|
|
82
|
+
const route = vueRouter.useRoute();
|
|
83
|
+
const ItemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === route.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === flag)) == null ? void 0 : _c.formData) == null ? void 0 : _d.find((item) => (item == null ? void 0 : item.field) === field);
|
|
84
|
+
let width = defaultValue;
|
|
85
|
+
if (ItemField) {
|
|
86
|
+
if (ItemField.width && ItemField.width != "" && ItemField.width > 0) {
|
|
87
|
+
width = ItemField.width + ItemField.widthUnit;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return isJson ? width != "" ? { width } : "" : width;
|
|
91
|
+
}
|
|
79
92
|
|
|
80
93
|
exports.getFormItemLabel = getFormItemLabel;
|
|
81
94
|
exports.getFormItemProp = getFormItemProp;
|
|
82
95
|
exports.getRules = getRules;
|
|
83
96
|
exports.getShowColumn = getShowColumn;
|
|
97
|
+
exports.getShowColumnWidth = getShowColumnWidth;
|
|
84
98
|
exports.getSubFormFields = getSubFormFields;
|
|
85
99
|
exports.getlimit = getlimit;
|
|
86
100
|
exports.showTabelColumn = showTabelColumn;
|
package/locale/en.js
CHANGED
package/locale/en.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.108 */(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}));
|
package/locale/en.min.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.108 */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"}}};export{e as default};
|
package/locale/en.mjs
CHANGED