@fmdeui/fmui 1.0.140 → 1.0.142

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.
@@ -0,0 +1,72 @@
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare function handleQuery(): Promise<void>;
3
+ declare const _default: DefineComponent<ExtractPropTypes<{
4
+ visible: {
5
+ type: BooleanConstructor;
6
+ default: boolean;
7
+ };
8
+ title: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ data: {
13
+ type: ArrayConstructor;
14
+ default: () => never[];
15
+ };
16
+ userService: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ userAction: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ userParams: {
25
+ type: ObjectConstructor;
26
+ default: () => void;
27
+ };
28
+ }>, {
29
+ handleQuery: typeof handleQuery;
30
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
31
+ change: (...args: any[]) => void;
32
+ "update:visible": (...args: any[]) => void;
33
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
34
+ visible: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ title: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
42
+ data: {
43
+ type: ArrayConstructor;
44
+ default: () => never[];
45
+ };
46
+ userService: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
50
+ userAction: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ userParams: {
55
+ type: ObjectConstructor;
56
+ default: () => void;
57
+ };
58
+ }>> & Readonly<{
59
+ onChange?: ((...args: any[]) => any) | undefined;
60
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
61
+ }>, {
62
+ title: string;
63
+ data: unknown[];
64
+ visible: boolean;
65
+ userService: string;
66
+ userAction: string;
67
+ userParams: Record<string, any>;
68
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
69
+ queryRef: unknown;
70
+ refTable: unknown;
71
+ }, any>;
72
+ export default _default;
@@ -63,7 +63,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
63
63
  default: () => void;
64
64
  };
65
65
  /**
66
- * 打开类型 0--用户加机构 1-- 联系人 2-- 单位 3-- 银行账户 4--科目
66
+ * 打开类型 0--用户加机构 1-- 联系人 2-- 供应商单位 3-- 银行账户 4--科目 5--线路
67
67
  * @default 0
68
68
  */
69
69
  openType: {
@@ -183,7 +183,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
183
183
  default: () => void;
184
184
  };
185
185
  /**
186
- * 打开类型 0--用户加机构 1-- 联系人 2-- 单位 3-- 银行账户 4--科目
186
+ * 打开类型 0--用户加机构 1-- 联系人 2-- 供应商单位 3-- 银行账户 4--科目 5--线路
187
187
  * @default 0
188
188
  */
189
189
  openType: {
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './linSelectDialog2.vue.mjs';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,347 @@
1
+ import { defineComponent, ref, reactive, computed, onMounted, resolveComponent, openBlock, createBlock, isRef, unref, withCtx, createVNode, createElementVNode, withKeys, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
2
+ import '../../../api/index.mjs';
3
+ import { useBaseApi } from '../../../api/base/index.mjs';
4
+
5
+ const _hoisted_1 = { style: { "color": "#fff" } };
6
+ const _hoisted_2 = { style: { "margin-top": "10px" } };
7
+ const _hoisted_3 = { class: "dialog-footer" };
8
+ var _sfc_main = /* @__PURE__ */ defineComponent({
9
+ __name: "linSelectDialog",
10
+ props: {
11
+ visible: {
12
+ type: Boolean,
13
+ default: false
14
+ },
15
+ title: {
16
+ type: String,
17
+ default: ""
18
+ },
19
+ data: {
20
+ type: Array,
21
+ default: () => []
22
+ },
23
+ userService: {
24
+ type: String,
25
+ default: "autoRes"
26
+ },
27
+ userAction: {
28
+ type: String,
29
+ default: "lineTable"
30
+ },
31
+ userParams: {
32
+ type: Object,
33
+ default: () => {
34
+ }
35
+ }
36
+ },
37
+ emits: ["update:visible", "change"],
38
+ setup(__props, { expose: __expose, emit: __emit }) {
39
+ let emits = __emit;
40
+ const props = __props;
41
+ const userList = ref([]);
42
+ let checkedUsersList = ref([]);
43
+ const state = reactive({
44
+ total: 0,
45
+ pdata: null,
46
+ queryParams: {
47
+ orgId: -1,
48
+ page: 1,
49
+ pageSize: 50
50
+ }
51
+ });
52
+ let visibleDialog = computed({
53
+ get() {
54
+ return props.visible;
55
+ },
56
+ set() {
57
+ closeDialog();
58
+ }
59
+ });
60
+ onMounted(async () => {
61
+ await getUserList();
62
+ });
63
+ const resetQuery = () => {
64
+ state.queryParams = {};
65
+ handleQuery();
66
+ };
67
+ const getUserList = async () => {
68
+ var _a, _b, _c, _d;
69
+ let res = await useBaseApi(props.userService).post({ ...state.queryParams, ...props.userParams }, props.userAction);
70
+ userList.value = (_b = (_a = res.data.result) == null ? void 0 : _a.items) != null ? _b : [];
71
+ state.queryParams.total = (_d = (_c = res.data.result) == null ? void 0 : _c.total) != null ? _d : 0;
72
+ };
73
+ async function handleQuery() {
74
+ state.queryParams.pageNum = 1;
75
+ await getUserList();
76
+ }
77
+ function handleSelectUser(row) {
78
+ if (!row || row.id == "") return;
79
+ emits("change", row);
80
+ }
81
+ const handledbclick = (row) => {
82
+ handleSelectUser(row);
83
+ };
84
+ const handleSizeChange = (val) => {
85
+ state.queryParams.pageSize = val;
86
+ handleQuery();
87
+ };
88
+ const handleCurrentChange = (val) => {
89
+ state.queryParams.page = val;
90
+ handleQuery();
91
+ };
92
+ const closeDialog = () => {
93
+ checkedUsersList.value = [];
94
+ emits("update:visible", false);
95
+ };
96
+ __expose({
97
+ handleQuery
98
+ });
99
+ return (_ctx, _cache) => {
100
+ const _component_ele_Edit = resolveComponent("ele-Edit");
101
+ const _component_el_icon = resolveComponent("el-icon");
102
+ const _component_el_input = resolveComponent("el-input");
103
+ const _component_el_form_item = resolveComponent("el-form-item");
104
+ const _component_el_button = resolveComponent("el-button");
105
+ const _component_el_button_group = resolveComponent("el-button-group");
106
+ const _component_el_form = resolveComponent("el-form");
107
+ const _component_el_table_column = resolveComponent("el-table-column");
108
+ const _component_ele_Plus = resolveComponent("ele-Plus");
109
+ const _component_el_table = resolveComponent("el-table");
110
+ const _component_el_pagination = resolveComponent("el-pagination");
111
+ const _component_el_card = resolveComponent("el-card");
112
+ const _component_el_col = resolveComponent("el-col");
113
+ const _component_el_row = resolveComponent("el-row");
114
+ const _component_el_dialog = resolveComponent("el-dialog");
115
+ return openBlock(), createBlock(_component_el_dialog, {
116
+ modelValue: unref(visibleDialog),
117
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(visibleDialog) ? visibleDialog.value = $event : visibleDialog = $event),
118
+ style: { "width": "70vw" },
119
+ "append-to-body": "",
120
+ draggable: "",
121
+ "close-on-click-modal": false
122
+ }, {
123
+ header: withCtx(() => [
124
+ createElementVNode("div", _hoisted_1, [
125
+ createVNode(_component_el_icon, {
126
+ size: "16",
127
+ style: { "margin-right": "3px", "display": "inline", "vertical-align": "middle" }
128
+ }, {
129
+ default: withCtx(() => [
130
+ createVNode(_component_ele_Edit)
131
+ ]),
132
+ _: 1
133
+ /* STABLE */
134
+ }),
135
+ createElementVNode(
136
+ "span",
137
+ null,
138
+ toDisplayString(_ctx.$t("\u9009\u62E9")) + toDisplayString(_ctx.$t(__props.title)),
139
+ 1
140
+ /* TEXT */
141
+ )
142
+ ])
143
+ ]),
144
+ footer: withCtx(() => [
145
+ createElementVNode("div", _hoisted_3, [
146
+ createVNode(_component_el_button, {
147
+ icon: "ele-CircleCloseFilled",
148
+ onClick: closeDialog
149
+ }, {
150
+ default: withCtx(() => [
151
+ createTextVNode(
152
+ toDisplayString(_ctx.$t("\u53D6\u6D88")),
153
+ 1
154
+ /* TEXT */
155
+ )
156
+ ]),
157
+ _: 1
158
+ /* STABLE */
159
+ }),
160
+ createCommentVNode(' <el-button type="primary" icon="ele-CircleCheckFilled" @click="saveDialog">\u786E\u5B9A</el-button> ')
161
+ ])
162
+ ]),
163
+ default: withCtx(() => [
164
+ createVNode(_component_el_row, { gutter: 10 }, {
165
+ default: withCtx(() => [
166
+ createVNode(_component_el_col, { span: 24 }, {
167
+ default: withCtx(() => [
168
+ createElementVNode("div", _hoisted_2, [
169
+ createVNode(_component_el_form, {
170
+ model: state.queryParams,
171
+ ref: "queryRef",
172
+ inline: true
173
+ }, {
174
+ default: withCtx(() => [
175
+ createVNode(_component_el_form_item, {
176
+ label: _ctx.$t("\u5173\u952E\u5B57")
177
+ }, {
178
+ default: withCtx(() => [
179
+ createVNode(_component_el_input, {
180
+ modelValue: state.queryParams.keyword,
181
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.queryParams.keyword = $event),
182
+ clearable: "",
183
+ style: { "width": "150px" },
184
+ onKeyup: withKeys(handleQuery, ["enter"])
185
+ }, null, 8, ["modelValue"])
186
+ ]),
187
+ _: 1
188
+ /* STABLE */
189
+ }, 8, ["label"]),
190
+ createVNode(_component_el_form_item, null, {
191
+ default: withCtx(() => [
192
+ createVNode(_component_el_button_group, null, {
193
+ default: withCtx(() => [
194
+ createVNode(_component_el_button, {
195
+ type: "primary",
196
+ icon: "ele-Search",
197
+ onClick: handleQuery
198
+ }, {
199
+ default: withCtx(() => [
200
+ createTextVNode(
201
+ toDisplayString(_ctx.$t("\u67E5\u8BE2")),
202
+ 1
203
+ /* TEXT */
204
+ )
205
+ ]),
206
+ _: 1
207
+ /* STABLE */
208
+ }),
209
+ createVNode(_component_el_button, {
210
+ icon: "ele-Refresh",
211
+ onClick: resetQuery
212
+ }, {
213
+ default: withCtx(() => [
214
+ createTextVNode(
215
+ toDisplayString(_ctx.$t("\u91CD\u7F6E")),
216
+ 1
217
+ /* TEXT */
218
+ )
219
+ ]),
220
+ _: 1
221
+ /* STABLE */
222
+ })
223
+ ]),
224
+ _: 1
225
+ /* STABLE */
226
+ }),
227
+ createCommentVNode(' <el-button type="primary" icon="ele-DArrowRight" plain style="margin-left: 10px" @click="handleSelectAllUser"> \u5168\u9009 </el-button> ')
228
+ ]),
229
+ _: 1
230
+ /* STABLE */
231
+ })
232
+ ]),
233
+ _: 1
234
+ /* STABLE */
235
+ }, 8, ["model"]),
236
+ createVNode(_component_el_card, {
237
+ class: "full-table",
238
+ shadow: "hover"
239
+ }, {
240
+ default: withCtx(() => [
241
+ createVNode(_component_el_table, {
242
+ ref: "refTable",
243
+ data: userList.value,
244
+ style: { "height": "calc(70vh - 96px)" },
245
+ onRowDblclick: handledbclick
246
+ }, {
247
+ default: withCtx(() => [
248
+ createVNode(_component_el_table_column, {
249
+ label: _ctx.$t("\u540D\u79F0"),
250
+ prop: "lineName",
251
+ align: "center",
252
+ "show-overflow-tooltip": true
253
+ }, null, 8, ["label"]),
254
+ createVNode(_component_el_table_column, {
255
+ label: _ctx.$t("\u7EBF\u8DEF\u7F16\u7801"),
256
+ prop: "lineCode",
257
+ align: "center",
258
+ "show-overflow-tooltip": true
259
+ }, null, 8, ["label"]),
260
+ createVNode(_component_el_table_column, {
261
+ label: _ctx.$t("\u6210\u4EBA\u4EF7"),
262
+ prop: "adultPrice",
263
+ align: "center",
264
+ "show-overflow-tooltip": true
265
+ }, null, 8, ["label"]),
266
+ createVNode(_component_el_table_column, {
267
+ label: _ctx.$t("\u513F\u7AE5\u4EF7"),
268
+ prop: "childPrice",
269
+ align: "center",
270
+ "show-overflow-tooltip": true
271
+ }, null, 8, ["label"]),
272
+ createVNode(_component_el_table_column, {
273
+ label: _ctx.$t("\u51FA\u56E2\u4EA4\u901A"),
274
+ prop: "sendTraffic",
275
+ align: "center",
276
+ "show-overflow-tooltip": true
277
+ }, null, 8, ["label"]),
278
+ createVNode(_component_el_table_column, {
279
+ label: _ctx.$t("\u8FD4\u56DE\u4EA4\u901A"),
280
+ prop: "endTraffic",
281
+ align: "center",
282
+ "show-overflow-tooltip": true
283
+ }, null, 8, ["label"]),
284
+ createVNode(_component_el_table_column, {
285
+ label: "\u64CD\u4F5C",
286
+ width: "60",
287
+ align: "center"
288
+ }, {
289
+ default: withCtx((scope) => [
290
+ createVNode(_component_el_button, {
291
+ link: "",
292
+ type: "primary",
293
+ onClick: ($event) => handleSelectUser(scope.row)
294
+ }, {
295
+ default: withCtx(() => [
296
+ createVNode(_component_el_icon, null, {
297
+ default: withCtx(() => [
298
+ createVNode(_component_ele_Plus)
299
+ ]),
300
+ _: 1
301
+ /* STABLE */
302
+ })
303
+ ]),
304
+ _: 1
305
+ /* STABLE */
306
+ }, 8, ["onClick"])
307
+ ]),
308
+ _: 1
309
+ /* STABLE */
310
+ })
311
+ ]),
312
+ _: 1
313
+ /* STABLE */
314
+ }, 8, ["data"]),
315
+ createVNode(_component_el_pagination, {
316
+ currentPage: state.queryParams.page,
317
+ "page-size": state.queryParams.pageSize,
318
+ total: state.queryParams.total,
319
+ "page-sizes": [10, 20, 50, 100],
320
+ background: "",
321
+ onSizeChange: handleSizeChange,
322
+ onCurrentChange: handleCurrentChange,
323
+ layout: "total, sizes, prev, pager, next, jumper",
324
+ style: { "padding-bottom": "8px" }
325
+ }, null, 8, ["currentPage", "page-size", "total"])
326
+ ]),
327
+ _: 1
328
+ /* STABLE */
329
+ })
330
+ ])
331
+ ]),
332
+ _: 1
333
+ /* STABLE */
334
+ })
335
+ ]),
336
+ _: 1
337
+ /* STABLE */
338
+ })
339
+ ]),
340
+ _: 1
341
+ /* STABLE */
342
+ }, 8, ["modelValue"]);
343
+ };
344
+ }
345
+ });
346
+
347
+ export { _sfc_main as default };
@@ -101,7 +101,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
101
101
  }
102
102
  function handleSelectUser(row) {
103
103
  if (!row || row.id == "") return;
104
- emits("change", { id: row.id, name: row.realName, data: row });
104
+ emits("change", row);
105
105
  }
106
106
  const handledbclick = (row) => {
107
107
  handleSelectUser(row);
@@ -6,12 +6,14 @@ import './component/supplierSelectDialog.vue.mjs';
6
6
  import './component/supplierUserSelectDialog.vue.mjs';
7
7
  import './component/accountSelectDialog.vue.mjs';
8
8
  import './component/subjectSelectDialog.vue.mjs';
9
+ import './component/linSelectDialog.vue.mjs';
9
10
  import { useBaseApi } from '../../api/base/index.mjs';
10
11
  import _sfc_main$1 from './component/userSelectDialog2.vue.mjs';
11
12
  import _sfc_main$2 from './component/supplierUserSelectDialog2.vue.mjs';
12
13
  import _sfc_main$3 from './component/supplierSelectDialog2.vue.mjs';
13
14
  import _sfc_main$4 from './component/accountSelectDialog2.vue.mjs';
14
15
  import _sfc_main$5 from './component/subjectSelectDialog2.vue.mjs';
16
+ import _sfc_main$6 from './component/linSelectDialog2.vue.mjs';
15
17
 
16
18
  const _hoisted_1 = { style: { "font-size": "14px", "line-height": "30px" } };
17
19
  var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -84,7 +86,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
84
86
  }
85
87
  },
86
88
  /**
87
- * 打开类型 0--用户加机构 1-- 联系人 2-- 单位 3-- 银行账户 4--科目
89
+ * 打开类型 0--用户加机构 1-- 联系人 2-- 供应商单位 3-- 银行账户 4--科目 5--线路
88
90
  * @default 0
89
91
  */
90
92
  openType: {
@@ -189,7 +191,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
189
191
  const _component_el_autocomplete = resolveComponent("el-autocomplete");
190
192
  return openBlock(), createBlock(_component_el_autocomplete, {
191
193
  modelValue: autoName.value,
192
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => autoName.value = $event),
194
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => autoName.value = $event),
193
195
  debounce: 500,
194
196
  "fetch-suggestions": querySearchAsync,
195
197
  placeholder: props.placeholder,
@@ -284,7 +286,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
284
286
  subjectAction: __props.subjectAction,
285
287
  subjectParams: __props.params,
286
288
  onChange: handleSelectDialogChange
287
- }, null, 8, ["visible", "title", "subjectService", "subjectAction", "subjectParams"])) : createCommentVNode("v-if", true)
289
+ }, null, 8, ["visible", "title", "subjectService", "subjectAction", "subjectParams"])) : createCommentVNode("v-if", true),
290
+ createCommentVNode("\u7EBF\u8DEF\u9009\u62E9"),
291
+ __props.openType == 5 ? (openBlock(), createBlock(_sfc_main$6, {
292
+ key: 5,
293
+ visible: visibleopenDialog.value,
294
+ "onUpdate:visible": _cache[6] || (_cache[6] = ($event) => visibleopenDialog.value = $event),
295
+ title: __props.title,
296
+ userService: __props.userService,
297
+ userAction: __props.userAction,
298
+ userParams: __props.params,
299
+ onChange: handleSelectDialogChange
300
+ }, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true)
288
301
  ]),
289
302
  key: "0"
290
303
  } : void 0