iv-npm 1.1.12 → 1.1.13

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.
@@ -1,2676 +1,3 @@
1
- import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createVNode, onMounted, onBeforeUnmount, createElementBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, renderList, normalizeClass, createTextVNode, toDisplayString, unref, pushScopeId, popScopeId, createStaticVNode, reactive, watch, computed, watchEffect, isRef, onBeforeMount, withKeys, withModifiers } from 'vue';
2
-
3
- /**
4
- * show:Boolean 是否显示弹窗 v-model:show="Visible"
5
- *
6
- * remove-padding:Boolean 是否需要弹窗内边距(defult:true)
7
- * 内边距 padding: 100px 0 100px 100px;
8
- *
9
- * @cancelHandle:Function 关闭时触发事件
10
- *
11
- * v-slot:title 弹窗头部
12
- *
13
- * v-slot:body 弹窗主体
14
- *
15
- * */
16
-
17
- var script$9 = /*#__PURE__*/defineComponent({
18
- __name: 'IVMrpModal',
19
- props: {
20
- show: {
21
- type: Boolean,
22
- "default": false
23
- },
24
- removePadding: {
25
- type: Boolean,
26
- "default": true
27
- }
28
- },
29
- emits: ["update:show", "cancelHandle"],
30
- setup: function setup(__props, _ref) {
31
- var emit = _ref.emit;
32
- var props = __props;
33
- var isShow = ref(props.show);
34
-
35
- function cancel() {
36
- emit("update:show", false);
37
- emit("cancelHandle", false);
38
- }
39
-
40
- return function (_ctx, _cache) {
41
- var _component_close_circle_outlined = resolveComponent("close-circle-outlined");
42
-
43
- var _component_a_modal = resolveComponent("a-modal");
44
-
45
- return openBlock(), createBlock(_component_a_modal, {
46
- wrapClassName: [__props.removePadding ? '' : 'not-padding', 'module-class modal-components'],
47
- visible: isShow.value,
48
- "onUpdate:visible": _cache[0] || (_cache[0] = function ($event) {
49
- return isShow.value = $event;
50
- }),
51
- onCancel: cancel,
52
- destroyOnClose: "",
53
- footer: null
54
- }, {
55
- title: withCtx(function () {
56
- return [renderSlot(_ctx.$slots, "title")];
57
- }),
58
- closeIcon: withCtx(function () {
59
- return [createVNode(_component_close_circle_outlined, {
60
- "class": "text-[#006ab2] text-[30px]"
61
- })];
62
- }),
63
- "default": withCtx(function () {
64
- return [renderSlot(_ctx.$slots, "body")];
65
- }),
66
- _: 3
67
- /* FORWARDED */
68
-
69
- }, 8
70
- /* PROPS */
71
- , ["wrapClassName", "visible"]);
72
- };
73
- }
74
- });
75
-
76
- script$9.__file = "src/function-ui/component/IVMrpModal.vue";
77
-
78
- function ownKeys(object, enumerableOnly) {
79
- var keys = Object.keys(object);
80
-
81
- if (Object.getOwnPropertySymbols) {
82
- var symbols = Object.getOwnPropertySymbols(object);
83
- enumerableOnly && (symbols = symbols.filter(function (sym) {
84
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
85
- })), keys.push.apply(keys, symbols);
86
- }
87
-
88
- return keys;
89
- }
90
-
91
- function _objectSpread2(target) {
92
- for (var i = 1; i < arguments.length; i++) {
93
- var source = null != arguments[i] ? arguments[i] : {};
94
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
95
- _defineProperty(target, key, source[key]);
96
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
97
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
98
- });
99
- }
100
-
101
- return target;
102
- }
103
-
104
- function _regeneratorRuntime() {
105
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
106
-
107
- _regeneratorRuntime = function () {
108
- return exports;
109
- };
110
-
111
- var exports = {},
112
- Op = Object.prototype,
113
- hasOwn = Op.hasOwnProperty,
114
- $Symbol = "function" == typeof Symbol ? Symbol : {},
115
- iteratorSymbol = $Symbol.iterator || "@@iterator",
116
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
117
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
118
-
119
- function define(obj, key, value) {
120
- return Object.defineProperty(obj, key, {
121
- value: value,
122
- enumerable: !0,
123
- configurable: !0,
124
- writable: !0
125
- }), obj[key];
126
- }
127
-
128
- try {
129
- define({}, "");
130
- } catch (err) {
131
- define = function (obj, key, value) {
132
- return obj[key] = value;
133
- };
134
- }
135
-
136
- function wrap(innerFn, outerFn, self, tryLocsList) {
137
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
138
- generator = Object.create(protoGenerator.prototype),
139
- context = new Context(tryLocsList || []);
140
- return generator._invoke = function (innerFn, self, context) {
141
- var state = "suspendedStart";
142
- return function (method, arg) {
143
- if ("executing" === state) throw new Error("Generator is already running");
144
-
145
- if ("completed" === state) {
146
- if ("throw" === method) throw arg;
147
- return doneResult();
148
- }
149
-
150
- for (context.method = method, context.arg = arg;;) {
151
- var delegate = context.delegate;
152
-
153
- if (delegate) {
154
- var delegateResult = maybeInvokeDelegate(delegate, context);
155
-
156
- if (delegateResult) {
157
- if (delegateResult === ContinueSentinel) continue;
158
- return delegateResult;
159
- }
160
- }
161
-
162
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
163
- if ("suspendedStart" === state) throw state = "completed", context.arg;
164
- context.dispatchException(context.arg);
165
- } else "return" === context.method && context.abrupt("return", context.arg);
166
- state = "executing";
167
- var record = tryCatch(innerFn, self, context);
168
-
169
- if ("normal" === record.type) {
170
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
171
- return {
172
- value: record.arg,
173
- done: context.done
174
- };
175
- }
176
-
177
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
178
- }
179
- };
180
- }(innerFn, self, context), generator;
181
- }
182
-
183
- function tryCatch(fn, obj, arg) {
184
- try {
185
- return {
186
- type: "normal",
187
- arg: fn.call(obj, arg)
188
- };
189
- } catch (err) {
190
- return {
191
- type: "throw",
192
- arg: err
193
- };
194
- }
195
- }
196
-
197
- exports.wrap = wrap;
198
- var ContinueSentinel = {};
199
-
200
- function Generator() {}
201
-
202
- function GeneratorFunction() {}
203
-
204
- function GeneratorFunctionPrototype() {}
205
-
206
- var IteratorPrototype = {};
207
- define(IteratorPrototype, iteratorSymbol, function () {
208
- return this;
209
- });
210
- var getProto = Object.getPrototypeOf,
211
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
212
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
213
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
214
-
215
- function defineIteratorMethods(prototype) {
216
- ["next", "throw", "return"].forEach(function (method) {
217
- define(prototype, method, function (arg) {
218
- return this._invoke(method, arg);
219
- });
220
- });
221
- }
222
-
223
- function AsyncIterator(generator, PromiseImpl) {
224
- function invoke(method, arg, resolve, reject) {
225
- var record = tryCatch(generator[method], generator, arg);
226
-
227
- if ("throw" !== record.type) {
228
- var result = record.arg,
229
- value = result.value;
230
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
231
- invoke("next", value, resolve, reject);
232
- }, function (err) {
233
- invoke("throw", err, resolve, reject);
234
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
235
- result.value = unwrapped, resolve(result);
236
- }, function (error) {
237
- return invoke("throw", error, resolve, reject);
238
- });
239
- }
240
-
241
- reject(record.arg);
242
- }
243
-
244
- var previousPromise;
245
-
246
- this._invoke = function (method, arg) {
247
- function callInvokeWithMethodAndArg() {
248
- return new PromiseImpl(function (resolve, reject) {
249
- invoke(method, arg, resolve, reject);
250
- });
251
- }
252
-
253
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
254
- };
255
- }
256
-
257
- function maybeInvokeDelegate(delegate, context) {
258
- var method = delegate.iterator[context.method];
259
-
260
- if (undefined === method) {
261
- if (context.delegate = null, "throw" === context.method) {
262
- if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
263
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
264
- }
265
-
266
- return ContinueSentinel;
267
- }
268
-
269
- var record = tryCatch(method, delegate.iterator, context.arg);
270
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
271
- var info = record.arg;
272
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
273
- }
274
-
275
- function pushTryEntry(locs) {
276
- var entry = {
277
- tryLoc: locs[0]
278
- };
279
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
280
- }
281
-
282
- function resetTryEntry(entry) {
283
- var record = entry.completion || {};
284
- record.type = "normal", delete record.arg, entry.completion = record;
285
- }
286
-
287
- function Context(tryLocsList) {
288
- this.tryEntries = [{
289
- tryLoc: "root"
290
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
291
- }
292
-
293
- function values(iterable) {
294
- if (iterable) {
295
- var iteratorMethod = iterable[iteratorSymbol];
296
- if (iteratorMethod) return iteratorMethod.call(iterable);
297
- if ("function" == typeof iterable.next) return iterable;
298
-
299
- if (!isNaN(iterable.length)) {
300
- var i = -1,
301
- next = function next() {
302
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
303
-
304
- return next.value = undefined, next.done = !0, next;
305
- };
306
-
307
- return next.next = next;
308
- }
309
- }
310
-
311
- return {
312
- next: doneResult
313
- };
314
- }
315
-
316
- function doneResult() {
317
- return {
318
- value: undefined,
319
- done: !0
320
- };
321
- }
322
-
323
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
324
- var ctor = "function" == typeof genFun && genFun.constructor;
325
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
326
- }, exports.mark = function (genFun) {
327
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
328
- }, exports.awrap = function (arg) {
329
- return {
330
- __await: arg
331
- };
332
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
333
- return this;
334
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
335
- void 0 === PromiseImpl && (PromiseImpl = Promise);
336
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
337
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
338
- return result.done ? result.value : iter.next();
339
- });
340
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
341
- return this;
342
- }), define(Gp, "toString", function () {
343
- return "[object Generator]";
344
- }), exports.keys = function (object) {
345
- var keys = [];
346
-
347
- for (var key in object) keys.push(key);
348
-
349
- return keys.reverse(), function next() {
350
- for (; keys.length;) {
351
- var key = keys.pop();
352
- if (key in object) return next.value = key, next.done = !1, next;
353
- }
354
-
355
- return next.done = !0, next;
356
- };
357
- }, exports.values = values, Context.prototype = {
358
- constructor: Context,
359
- reset: function (skipTempReset) {
360
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
361
- },
362
- stop: function () {
363
- this.done = !0;
364
- var rootRecord = this.tryEntries[0].completion;
365
- if ("throw" === rootRecord.type) throw rootRecord.arg;
366
- return this.rval;
367
- },
368
- dispatchException: function (exception) {
369
- if (this.done) throw exception;
370
- var context = this;
371
-
372
- function handle(loc, caught) {
373
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
374
- }
375
-
376
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
377
- var entry = this.tryEntries[i],
378
- record = entry.completion;
379
- if ("root" === entry.tryLoc) return handle("end");
380
-
381
- if (entry.tryLoc <= this.prev) {
382
- var hasCatch = hasOwn.call(entry, "catchLoc"),
383
- hasFinally = hasOwn.call(entry, "finallyLoc");
384
-
385
- if (hasCatch && hasFinally) {
386
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
387
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
388
- } else if (hasCatch) {
389
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
390
- } else {
391
- if (!hasFinally) throw new Error("try statement without catch or finally");
392
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
393
- }
394
- }
395
- }
396
- },
397
- abrupt: function (type, arg) {
398
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
399
- var entry = this.tryEntries[i];
400
-
401
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
402
- var finallyEntry = entry;
403
- break;
404
- }
405
- }
406
-
407
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
408
- var record = finallyEntry ? finallyEntry.completion : {};
409
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
410
- },
411
- complete: function (record, afterLoc) {
412
- if ("throw" === record.type) throw record.arg;
413
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
414
- },
415
- finish: function (finallyLoc) {
416
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
417
- var entry = this.tryEntries[i];
418
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
419
- }
420
- },
421
- catch: function (tryLoc) {
422
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
423
- var entry = this.tryEntries[i];
424
-
425
- if (entry.tryLoc === tryLoc) {
426
- var record = entry.completion;
427
-
428
- if ("throw" === record.type) {
429
- var thrown = record.arg;
430
- resetTryEntry(entry);
431
- }
432
-
433
- return thrown;
434
- }
435
- }
436
-
437
- throw new Error("illegal catch attempt");
438
- },
439
- delegateYield: function (iterable, resultName, nextLoc) {
440
- return this.delegate = {
441
- iterator: values(iterable),
442
- resultName: resultName,
443
- nextLoc: nextLoc
444
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
445
- }
446
- }, exports;
447
- }
448
-
449
- function _typeof(obj) {
450
- "@babel/helpers - typeof";
451
-
452
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
453
- return typeof obj;
454
- } : function (obj) {
455
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
456
- }, _typeof(obj);
457
- }
458
-
459
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
460
- try {
461
- var info = gen[key](arg);
462
- var value = info.value;
463
- } catch (error) {
464
- reject(error);
465
- return;
466
- }
467
-
468
- if (info.done) {
469
- resolve(value);
470
- } else {
471
- Promise.resolve(value).then(_next, _throw);
472
- }
473
- }
474
-
475
- function _asyncToGenerator(fn) {
476
- return function () {
477
- var self = this,
478
- args = arguments;
479
- return new Promise(function (resolve, reject) {
480
- var gen = fn.apply(self, args);
481
-
482
- function _next(value) {
483
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
484
- }
485
-
486
- function _throw(err) {
487
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
488
- }
489
-
490
- _next(undefined);
491
- });
492
- };
493
- }
494
-
495
- function _defineProperty(obj, key, value) {
496
- if (key in obj) {
497
- Object.defineProperty(obj, key, {
498
- value: value,
499
- enumerable: true,
500
- configurable: true,
501
- writable: true
502
- });
503
- } else {
504
- obj[key] = value;
505
- }
506
-
507
- return obj;
508
- }
509
-
510
- var _withScopeId$2 = function _withScopeId(n) {
511
- return pushScopeId("data-v-2dfcb17e"), n = n(), popScopeId(), n;
512
- };
513
-
514
- var _hoisted_1$8 = {
515
- key: 0,
516
- id: "top"
517
- };
518
- var _hoisted_2$3 = {
519
- "class": "flex items-center justify-center"
520
- };
521
- var _hoisted_3$3 = {
522
- key: 0,
523
- style: {
524
- "color": "#ff0066"
525
- }
526
- };
527
- var _hoisted_4$3 = {
528
- key: 0
529
- };
530
-
531
- var _hoisted_5$2 = /*#__PURE__*/_withScopeId$2(function () {
532
- return /*#__PURE__*/createElementVNode("div", {
533
- "class": "h-2 flex items-center"
534
- }, [/*#__PURE__*/createElementVNode("span", {
535
- "class": "bg-[#d9d9d9] h-[1px] w-full"
536
- })], -1
537
- /* HOISTED */
538
- );
539
- });
540
-
541
- var _hoisted_6$2 = {
542
- "class": "flex items-center justify-between h-1/2"
543
- };
544
- var _hoisted_7$2 = {
545
- key: 0,
546
- style: {
547
- "color": "#ff0066"
548
- }
549
- };
550
- var _hoisted_8$1 = {
551
- "class": "mrpTable"
552
- };
553
- var _hoisted_9$1 = {
554
- "class": "relative w-full mb-[24px]",
555
- style: {
556
- "table-layout": "fixed"
557
- }
558
- };
559
- var _hoisted_10$1 = {
560
- "class": "flex items-center justify-center"
561
- };
562
- var _hoisted_11$1 = {
563
- key: 0,
564
- style: {
565
- "color": "#ff0066"
566
- }
567
- };
568
- var _hoisted_12$1 = {
569
- key: 1
570
- };
571
-
572
- var _hoisted_13$1 = /*#__PURE__*/_withScopeId$2(function () {
573
- return /*#__PURE__*/createElementVNode("div", {
574
- "class": "h-2 flex items-center"
575
- }, [/*#__PURE__*/createElementVNode("span", {
576
- "class": "bg-[#d9d9d9] h-[1px] w-full"
577
- })], -1
578
- /* HOISTED */
579
- );
580
- });
581
-
582
- var _hoisted_14$1 = {
583
- "class": "flex items-center justify-between h-1/2"
584
- };
585
- var _hoisted_15$1 = {
586
- key: 0,
587
- style: {
588
- "color": "#ff0066"
589
- }
590
- };
591
- var _hoisted_16$1 = {
592
- key: 0
593
- };
594
- var _hoisted_17$1 = {
595
- key: 1
596
- };
597
- var _hoisted_18$1 = {
598
- key: 2,
599
- "class": "flex justify-center items-center relative"
600
- };
601
- var _hoisted_19$1 = {
602
- key: 1,
603
- "class": "table-footer"
604
- };
605
-
606
- var _hoisted_20$1 = /*#__PURE__*/createStaticVNode("<div class=\"centent\" data-v-2dfcb17e><svg class=\"ant-empty-img-simple\" width=\"64\" height=\"41\" viewBox=\"0 0 64 41\" data-v-2dfcb17e><g transform=\"translate(0 1)\" fill=\"none\" fill-rule=\"evenodd\" data-v-2dfcb17e><ellipse class=\"ant-empty-img-simple-ellipse\" fill=\"#F5F5F5\" cx=\"32\" cy=\"33\" rx=\"32\" ry=\"7\" data-v-2dfcb17e></ellipse><g class=\"ant-empty-img-simple-g\" fill-rule=\"nonzero\" stroke=\"#D9D9D9\" data-v-2dfcb17e><path d=\"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z\" data-v-2dfcb17e></path><path d=\"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z\" fill=\"#FAFAFA\" class=\"ant-empty-img-simple-path\" data-v-2dfcb17e></path></g></g></svg> 没有数据 </div>", 1);
607
-
608
- var _hoisted_21$1 = [_hoisted_20$1];
609
- var script$8 = /*#__PURE__*/defineComponent({
610
- __name: 'IVMrpTable',
611
- props: {
612
- data: {
613
- type: null,
614
- required: true
615
- },
616
- contractExecDocList: {
617
- type: Array,
618
- required: true
619
- },
620
- currentPages: {
621
- type: Number,
622
- required: true
623
- },
624
- totalPages: {
625
- type: Number,
626
- required: true
627
- },
628
- formData: {
629
- type: Object,
630
- required: true
631
- },
632
- col: {
633
- type: Boolean,
634
- required: false
635
- },
636
- setHeight: {
637
- type: Number,
638
- required: false
639
- }
640
- },
641
- emits: ["onPageChange", "onShowSizeChange", "upth"],
642
- setup: function setup(__props, _ref) {
643
- var emit = _ref.emit;
644
- var Props = __props;
645
- localStorage.setItem("th", Props.data.map(function (item) {
646
- return item.title;
647
- }).join(",")); // onPageChange
648
-
649
- var onPageChange = function onPageChange(current, pageSize) {
650
- // console.log(current, pageSize, "-------------onPageChange");
651
- emit("onPageChange", current, pageSize);
652
- }; // onShowSizeChange
653
-
654
-
655
- var onShowSizeChange = function onShowSizeChange(current, pageSize) {
656
- // console.log(current, pageSize, '-------------onShowSizeChange')
657
- emit("onShowSizeChange", current, pageSize);
658
- };
659
-
660
- var offsetWidth = ref(0);
661
- var mrpTableOffsetWidth = ref(0);
662
- var ji = false; // 实时滚动条高度
663
-
664
- var scrollTop = function scrollTop(e) {
665
- if (ji) return;
666
- ji = true;
667
- var scrollY = e.target.scrollTop; // // 获取元素
668
-
669
- var div = document.querySelector(".mrpTable");
670
- setTimeout(function () {
671
- ji = false;
672
- }, 15); // // 获取距离页面顶部的偏移值
673
-
674
- var div_scrolltop = (div === null || div === void 0 ? void 0 : div.offsetTop) - 48;
675
-
676
- if (scrollY > div_scrolltop && (e === null || e === void 0 ? void 0 : e.target) != document.querySelector(".rc-virtual-list-holder")) {
677
- offsetWidth.value = div.offsetWidth;
678
- } else {
679
- offsetWidth.value = 0;
680
- }
681
- };
682
-
683
- var tableH = ref(0);
684
- var clickDensity = ref(false); // 密度事件
685
-
686
- var density = function density(key) {
687
- clickDensity.value = true;
688
- key == 0 ? tableH.value = 0 : key == 1 ? tableH.value = 40 : tableH.value = 20;
689
- }; // 列设置更新th
690
-
691
-
692
- var tableControlChange = function tableControlChange(val) {
693
- var updata = Props.data.map(function (item) {
694
- return _objectSpread2(_objectSpread2({}, item), {}, {
695
- show: val.includes(item.title)
696
- });
697
- });
698
- emit("upth", updata);
699
- };
700
-
701
- onMounted(function () {
702
- var div = document.querySelector(".mrpTable");
703
- mrpTableOffsetWidth.value = div.offsetWidth; // 监听滚动条位置
704
-
705
- window.addEventListener("scroll", scrollTop, true);
706
- });
707
- onBeforeUnmount(function () {
708
- window.removeEventListener("scroll", scrollTop, true); // 离开当前组件别忘记移除事件监听
709
- });
710
- return function (_ctx, _cache) {
711
- var _component_a_image = resolveComponent("a-image");
712
-
713
- var _component_a_pagination = resolveComponent("a-pagination");
714
-
715
- return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" 主体 "), offsetWidth.value ? (openBlock(), createElementBlock("div", _hoisted_1$8, [createElementVNode("table", {
716
- "class": "relative w-full mb-[24px]",
717
- style: normalizeStyle([{
718
- "table-layout": "fixed"
719
- }, {
720
- width: offsetWidth.value ? offsetWidth.value + 'px' : ''
721
- }])
722
- }, [createElementVNode("tr", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.data, function (item, index) {
723
- return openBlock(), createElementBlock(Fragment, null, [item.show ? (openBlock(), createElementBlock("th", {
724
- key: index,
725
- "class": normalizeClass('table-cell bg-[#97D2FD]'),
726
- style: normalizeStyle({
727
- height: __props.setHeight && !clickDensity.value ? __props.setHeight + 'px' : tableH.value ? tableH.value + 'px' : '',
728
- width: item.w ? item.w : ''
729
- })
730
- }, [createElementVNode("div", _hoisted_2$3, [createTextVNode(toDisplayString(item.title == "操作" ? "" : item.title) + " ", 1
731
- /* TEXT */
732
- ), item.unit ? (openBlock(), createElementBlock("span", _hoisted_3$3, toDisplayString(item.unit), 1
733
- /* TEXT */
734
- )) : createCommentVNode("v-if", true)]), item.header ? (openBlock(), createElementBlock("div", _hoisted_4$3, [_hoisted_5$2, createElementVNode("div", _hoisted_6$2, [(openBlock(true), createElementBlock(Fragment, null, renderList(item.header, function (e, i) {
735
- return openBlock(), createElementBlock("div", {
736
- key: i,
737
- style: normalizeStyle({
738
- width: e.w ? e.w : ''
739
- })
740
- }, [createTextVNode(toDisplayString(e.title == "操作" ? "" : e.title) + " ", 1
741
- /* TEXT */
742
- ), e.unit ? (openBlock(), createElementBlock("span", _hoisted_7$2, toDisplayString(e.unit), 1
743
- /* TEXT */
744
- )) : createCommentVNode("v-if", true)], 4
745
- /* STYLE */
746
- );
747
- }), 128
748
- /* KEYED_FRAGMENT */
749
- ))])])) : createCommentVNode("v-if", true)], 4
750
- /* STYLE */
751
- )) : createCommentVNode("v-if", true)], 64
752
- /* STABLE_FRAGMENT */
753
- );
754
- }), 256
755
- /* UNKEYED_FRAGMENT */
756
- ))])], 4
757
- /* STYLE */
758
- ), createVNode(unref(script$7), {
759
- setHeight: __props.setHeight,
760
- onDensity: density,
761
- onChangeS: tableControlChange
762
- }, null, 8
763
- /* PROPS */
764
- , ["setHeight"])])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_8$1, [createElementVNode("table", _hoisted_9$1, [createElementVNode("tr", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.data, function (item, index) {
765
- return openBlock(), createElementBlock(Fragment, {
766
- key: index
767
- }, [item.show ? (openBlock(), createElementBlock("th", {
768
- key: 0,
769
- "class": normalizeClass('table-cell bg-[#97D2FD]'),
770
- style: normalizeStyle({
771
- height: __props.setHeight && !clickDensity.value ? __props.setHeight + 'px' : tableH.value ? tableH.value + 'px' : '',
772
- width: item.w ? item.w : ''
773
- })
774
- }, [item.key == 'select' ? renderSlot(_ctx.$slots, "selectAll", {
775
- key: 0
776
- }) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_10$1, [createTextVNode(toDisplayString(item.key == "select" ? "" : item.title == "操作" ? "" : item.title) + " ", 1
777
- /* TEXT */
778
- ), item.unit ? (openBlock(), createElementBlock("span", _hoisted_11$1, toDisplayString(item.unit), 1
779
- /* TEXT */
780
- )) : createCommentVNode("v-if", true), createCommentVNode(" <span class=\"flex flex-col\"\r\n ><caret-up-filled /><caret-down-filled\r\n /></span> ")]), item.header ? (openBlock(), createElementBlock("div", _hoisted_12$1, [_hoisted_13$1, createElementVNode("div", _hoisted_14$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(item.header, function (e, i) {
781
- return openBlock(), createElementBlock("div", {
782
- key: i,
783
- style: normalizeStyle({
784
- width: e.w ? e.w : ''
785
- })
786
- }, [createTextVNode(toDisplayString(e.title == "操作" ? "" : e.title) + " ", 1
787
- /* TEXT */
788
- ), e.unit ? (openBlock(), createElementBlock("span", _hoisted_15$1, toDisplayString(e.unit), 1
789
- /* TEXT */
790
- )) : createCommentVNode("v-if", true)], 4
791
- /* STYLE */
792
- );
793
- }), 128
794
- /* KEYED_FRAGMENT */
795
- ))])])) : createCommentVNode("v-if", true)], 4
796
- /* STYLE */
797
- )) : createCommentVNode("v-if", true)], 64
798
- /* STABLE_FRAGMENT */
799
- );
800
- }), 128
801
- /* KEYED_FRAGMENT */
802
- ))]), Props.contractExecDocList.length !== 0 ? (openBlock(true), createElementBlock(Fragment, {
803
- key: 0
804
- }, renderList(Props.contractExecDocList, function (e, i) {
805
- return openBlock(), createElementBlock("tr", {
806
- key: e.id
807
- }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.data, function (item, index) {
808
- return openBlock(), createElementBlock(Fragment, {
809
- key: index
810
- }, [item.show ? (openBlock(), createElementBlock("td", {
811
- key: 0,
812
- "class": "table-cell",
813
- style: normalizeStyle({
814
- height: __props.setHeight && !clickDensity.value ? __props.setHeight + 'px' : tableH.value ? tableH.value + 'px' : ''
815
- })
816
- }, [createCommentVNode(" 序号 "), item.key == 'index' ? (openBlock(), createElementBlock("div", _hoisted_16$1, toDisplayString(Props.currentPages - 1 == 0 ? i + 1 : (Props.currentPages - 1) * 10 + i + 1), 1
817
- /* TEXT */
818
- )) : createCommentVNode("v-if", true), createCommentVNode(" 常规 "), item.key != 'index' && item.key != 'pictures' && item.key != 'buttonSlot' && item.key != 'select' && !item.custom ? (openBlock(), createElementBlock("div", _hoisted_17$1, toDisplayString(e[item.key]), 1
819
- /* TEXT */
820
- )) : createCommentVNode("v-if", true), createCommentVNode(" 图片数据特殊处理 "), item.key == 'pictures' ? (openBlock(), createElementBlock("div", _hoisted_18$1, [createCommentVNode(" <img\r\n v-for=\"(e1, i1) in e.pictures\"\r\n :key=\"i1\"\r\n :src=\"e1\"\r\n width=\"30\"\r\n height=\"32\"\r\n class=\"mx-4\"\r\n /> "), (openBlock(true), createElementBlock(Fragment, null, renderList(e.pictures, function (e1, i1) {
821
- return openBlock(), createBlock(_component_a_image, {
822
- key: i1,
823
- src: e1,
824
- width: 30,
825
- height: 32,
826
- fallback: "data:image/png;base64,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",
827
- style: {
828
- "position": "absolute",
829
- "top": "50%",
830
- "left": "50%",
831
- "transform": "translate(-50%, -50%)"
832
- }
833
- }, null, 8
834
- /* PROPS */
835
- , ["src"]);
836
- }), 128
837
- /* KEYED_FRAGMENT */
838
- ))])) : createCommentVNode("v-if", true), createCommentVNode(" 可点击的td slot"), item.key == 'clickSlot' ? renderSlot(_ctx.$slots, "clickSlot", {
839
- key: 3,
840
- id: e.id,
841
- item: e
842
- }) : createCommentVNode("v-if", true), item.key == 'select' ? renderSlot(_ctx.$slots, "select", {
843
- key: 4,
844
- index: i,
845
- item: e
846
- }) : createCommentVNode("v-if", true), createCommentVNode(" 按钮使用slot"), item.key == 'buttonSlot' ? renderSlot(_ctx.$slots, "buttonSlot", {
847
- key: 5,
848
- id: e.id,
849
- item: e
850
- }) : createCommentVNode("v-if", true), createCommentVNode(" 按钮使用slot"), item.custom ? renderSlot(_ctx.$slots, item.key, {
851
- key: 6,
852
- id: e.id,
853
- item: e
854
- }) : createCommentVNode("v-if", true)], 4
855
- /* STYLE */
856
- )) : createCommentVNode("v-if", true)], 64
857
- /* STABLE_FRAGMENT */
858
- );
859
- }), 128
860
- /* KEYED_FRAGMENT */
861
- ))]);
862
- }), 128
863
- /* KEYED_FRAGMENT */
864
- )) : (openBlock(), createElementBlock("div", _hoisted_19$1, _hoisted_21$1))]), createVNode(unref(script$7), {
865
- setHeight: __props.setHeight,
866
- onDensity: density,
867
- onChangeS: tableControlChange
868
- }, null, 8
869
- /* PROPS */
870
- , ["setHeight"])]), createCommentVNode(" 分页 "), __props.totalPages ? (openBlock(), createElementBlock("div", {
871
- key: 1,
872
- "class": "flex justify-center h-full mt-4 mb-20 pagination",
873
- style: normalizeStyle({
874
- width: mrpTableOffsetWidth.value ? mrpTableOffsetWidth.value + 'px' : ''
875
- })
876
- }, [createVNode(_component_a_pagination, {
877
- current: Props.currentPages,
878
- "onUpdate:current": _cache[0] || (_cache[0] = function ($event) {
879
- return Props.currentPages = $event;
880
- }),
881
- "show-quick-jumper": "",
882
- "show-size-changer": "",
883
- pageSizeOptions: ['10', '20', '30', '50'],
884
- total: Props.totalPages,
885
- onChange: onPageChange,
886
- onShowSizeChange: onShowSizeChange
887
- }, null, 8
888
- /* PROPS */
889
- , ["current", "total"])], 4
890
- /* STYLE */
891
- )) : createCommentVNode("v-if", true)], 64
892
- /* STABLE_FRAGMENT */
893
- );
894
- };
895
- }
896
- });
897
-
898
- script$8.__scopeId = "data-v-2dfcb17e";
899
- script$8.__file = "src/function-ui/component/IVMrpTable.vue";
900
-
901
- var _withScopeId$1 = function _withScopeId(n) {
902
- return pushScopeId("data-v-4b5cf48c"), n = n(), popScopeId(), n;
903
- };
904
-
905
- var _hoisted_1$7 = {
906
- "class": "tableControl"
907
- };
908
-
909
- var _hoisted_2$2 = /*#__PURE__*/_withScopeId$1(function () {
910
- return /*#__PURE__*/createElementVNode("div", null, "密度", -1
911
- /* HOISTED */
912
- );
913
- });
914
-
915
- var _hoisted_3$2 = /*#__PURE__*/createTextVNode(" 默认 ");
916
-
917
- var _hoisted_4$2 = /*#__PURE__*/createTextVNode(" 中等 ");
918
-
919
- var _hoisted_5$1 = /*#__PURE__*/createTextVNode(" 紧凑 ");
920
-
921
- var _hoisted_6$1 = /*#__PURE__*/_withScopeId$1(function () {
922
- return /*#__PURE__*/createElementVNode("div", null, "列设置", -1
923
- /* HOISTED */
924
- );
925
- });
926
-
927
- var _hoisted_7$1 = /*#__PURE__*/createTextVNode(" 全选 ");
928
-
929
- var script$7 = /*#__PURE__*/defineComponent({
930
- __name: 'IVMrpTableControl',
931
- props: {
932
- setHeight: {
933
- type: Number,
934
- required: false
935
- }
936
- },
937
- emits: ["density", "ChangeS"],
938
- setup: function setup(__props, _ref) {
939
- var emit = _ref.emit;
940
-
941
- var _a, _b;
942
-
943
- var Props = __props;
944
- var clicked = ref(false);
945
- var hovered = ref(false);
946
- var clickedT = ref(false);
947
- var hoveredT = ref(false);
948
- var state = reactive({
949
- collapsed: false,
950
- selectedKeys: ["1"]
951
- });
952
-
953
- var handleHoverChange = function handleHoverChange(visible) {
954
- clicked.value = false;
955
- hovered.value = visible;
956
- };
957
-
958
- var handleClickChange = function handleClickChange(visible) {
959
- clicked.value = visible;
960
- hovered.value = false;
961
- };
962
-
963
- var handleClickChangeT = function handleClickChangeT(visible) {
964
- clickedT.value = visible;
965
- hoveredT.value = false;
966
- }; // 密度事件
967
-
968
-
969
- var density = function density(item) {
970
- emit("density", item.key);
971
- };
972
-
973
- state.selectedKeys[0] = Props.setHeight ? Props.setHeight == 40 ? "1" : Props.setHeight == 20 ? "2" : "0" : "0";
974
- var plainOptions = (_a = localStorage.getItem("th")) === null || _a === void 0 ? void 0 : _a.split(","); //全部选项
975
-
976
- var table = reactive({
977
- indeterminate: false,
978
- checkAll: true,
979
- checkedList: (_b = localStorage.getItem("th")) === null || _b === void 0 ? void 0 : _b.split(",")
980
- }); //全选功能
981
-
982
- var onCheckAllChange = function onCheckAllChange(e) {
983
- Object.assign(table, {
984
- checkedList: e.target.checked ? plainOptions : [],
985
- indeterminate: false
986
- });
987
- emit("ChangeS", table.checkedList);
988
- }; //多选功能
989
-
990
-
991
- var onCheckedListChange = function onCheckedListChange(value) {
992
- var checkedCount = value.length;
993
- var totalCount = plainOptions.length;
994
- Object.assign(table, {
995
- checkAll: checkedCount === totalCount,
996
- indeterminate: checkedCount > 0 && checkedCount < totalCount
997
- });
998
- emit("ChangeS", value);
999
- };
1000
-
1001
- watch(function () {
1002
- return table.checkedList;
1003
- }, function (val) {
1004
- table.indeterminate = !!val.length && val.length < plainOptions.length;
1005
- table.checkAll = val.length === plainOptions.length;
1006
- });
1007
- return function (_ctx, _cache) {
1008
- var _component_a_menu_item = resolveComponent("a-menu-item");
1009
-
1010
- var _component_a_menu = resolveComponent("a-menu");
1011
-
1012
- var _component_column_height_outlined = resolveComponent("column-height-outlined");
1013
-
1014
- var _component_a_popover = resolveComponent("a-popover");
1015
-
1016
- var _component_a_checkbox = resolveComponent("a-checkbox");
1017
-
1018
- var _component_a_divider = resolveComponent("a-divider");
1019
-
1020
- var _component_a_checkbox_group = resolveComponent("a-checkbox-group");
1021
-
1022
- var _component_setting_outlined = resolveComponent("setting-outlined");
1023
-
1024
- return openBlock(), createElementBlock("div", _hoisted_1$7, [createVNode(_component_a_popover, {
1025
- trigger: "hover",
1026
- visible: hovered.value,
1027
- onVisibleChange: handleHoverChange
1028
- }, {
1029
- content: withCtx(function () {
1030
- return [_hoisted_2$2];
1031
- }),
1032
- "default": withCtx(function () {
1033
- return [createVNode(_component_a_popover, {
1034
- trigger: "click",
1035
- placement: "left",
1036
- "arrow-point-at-center": "",
1037
- visible: clicked.value,
1038
- onVisibleChange: handleClickChange,
1039
- getPopupContainer: function getPopupContainer(triggerNode) {
1040
- return triggerNode.parentNode;
1041
- }
1042
- }, {
1043
- content: withCtx(function () {
1044
- return [createVNode(_component_a_menu, {
1045
- selectedKeys: state.selectedKeys,
1046
- "onUpdate:selectedKeys": _cache[0] || (_cache[0] = function ($event) {
1047
- return state.selectedKeys = $event;
1048
- }),
1049
- onClick: density
1050
- }, {
1051
- "default": withCtx(function () {
1052
- return [createVNode(_component_a_menu_item, {
1053
- key: "0"
1054
- }, {
1055
- "default": withCtx(function () {
1056
- return [_hoisted_3$2];
1057
- }),
1058
- _: 1
1059
- /* STABLE */
1060
-
1061
- }), createVNode(_component_a_menu_item, {
1062
- key: "1"
1063
- }, {
1064
- "default": withCtx(function () {
1065
- return [_hoisted_4$2];
1066
- }),
1067
- _: 1
1068
- /* STABLE */
1069
-
1070
- }), createVNode(_component_a_menu_item, {
1071
- key: "2"
1072
- }, {
1073
- "default": withCtx(function () {
1074
- return [_hoisted_5$1];
1075
- }),
1076
- _: 1
1077
- /* STABLE */
1078
-
1079
- })];
1080
- }),
1081
- _: 1
1082
- /* STABLE */
1083
-
1084
- }, 8
1085
- /* PROPS */
1086
- , ["selectedKeys"])];
1087
- }),
1088
- "default": withCtx(function () {
1089
- return [createVNode(_component_column_height_outlined, {
1090
- style: {
1091
- fontSize: '20px'
1092
- },
1093
- "class": "cursor-pointer"
1094
- })];
1095
- }),
1096
- _: 1
1097
- /* STABLE */
1098
-
1099
- }, 8
1100
- /* PROPS */
1101
- , ["visible", "getPopupContainer"])];
1102
- }),
1103
- _: 1
1104
- /* STABLE */
1105
-
1106
- }, 8
1107
- /* PROPS */
1108
- , ["visible"]), createVNode(_component_a_popover, {
1109
- trigger: "hover"
1110
- }, {
1111
- content: withCtx(function () {
1112
- return [_hoisted_6$1];
1113
- }),
1114
- "default": withCtx(function () {
1115
- return [createVNode(_component_a_popover, {
1116
- trigger: "click",
1117
- placement: "left",
1118
- visible: clickedT.value,
1119
- onVisibleChange: handleClickChangeT,
1120
- getPopupContainer: function getPopupContainer(triggerNode) {
1121
- return triggerNode.parentNode;
1122
- }
1123
- }, {
1124
- content: withCtx(function () {
1125
- return [createElementVNode("div", null, [createVNode(_component_a_checkbox, {
1126
- checked: table.checkAll,
1127
- "onUpdate:checked": _cache[1] || (_cache[1] = function ($event) {
1128
- return table.checkAll = $event;
1129
- }),
1130
- indeterminate: table.indeterminate,
1131
- onChange: onCheckAllChange
1132
- }, {
1133
- "default": withCtx(function () {
1134
- return [_hoisted_7$1];
1135
- }),
1136
- _: 1
1137
- /* STABLE */
1138
-
1139
- }, 8
1140
- /* PROPS */
1141
- , ["checked", "indeterminate"])]), createVNode(_component_a_divider), createVNode(_component_a_checkbox_group, {
1142
- value: table.checkedList,
1143
- "onUpdate:value": _cache[2] || (_cache[2] = function ($event) {
1144
- return table.checkedList = $event;
1145
- }),
1146
- options: unref(plainOptions),
1147
- onChange: onCheckedListChange
1148
- }, null, 8
1149
- /* PROPS */
1150
- , ["value", "options"])];
1151
- }),
1152
- "default": withCtx(function () {
1153
- return [createVNode(_component_setting_outlined, {
1154
- "class": "setting cursor-pointer",
1155
- style: {
1156
- fontSize: '20px'
1157
- }
1158
- })];
1159
- }),
1160
- _: 1
1161
- /* STABLE */
1162
-
1163
- }, 8
1164
- /* PROPS */
1165
- , ["visible", "getPopupContainer"])];
1166
- }),
1167
- _: 1
1168
- /* STABLE */
1169
-
1170
- })]);
1171
- };
1172
- }
1173
- });
1174
-
1175
- script$7.__scopeId = "data-v-4b5cf48c";
1176
- script$7.__file = "src/function-ui/component/IVMrpTableControl.vue";
1177
-
1178
- function _loadChildren(obj, list) {
1179
- var arr = list.filter(function (x) {
1180
- return x.parentId == obj.id;
1181
- });
1182
- if (!arr.length) return;
1183
- obj.children = arr;
1184
- obj.children.forEach(function (x) {
1185
- _loadChildren(x, list);
1186
- });
1187
- return obj;
1188
- }
1189
- function tranListToTreeData(list) {
1190
- var results = list.filter(function (x) {
1191
- return x.parentId == null;
1192
- });
1193
- results.forEach(function (x) {
1194
- return _loadChildren(x, list);
1195
- });
1196
- return results;
1197
- }
1198
- var isObject = function isObject(val) {
1199
- return val !== null && _typeof(val) === "object";
1200
- };
1201
- var assign = Object.assign;
1202
- function filterOptionHeadle(input, option) {
1203
- return option.label && option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;
1204
- }
1205
-
1206
- var BASE_URL = "https://basis.nacho.cn";
1207
- var DEFIND_OPTION = {
1208
- headers: {
1209
- "Content-Type": "application/json;charset=UTF-8",
1210
- "Accept-Language": "zh-Hans",
1211
- authorization: localStorage.getItem("token") ? "Bearer " + localStorage.getItem("token") : null
1212
- },
1213
- cache: "no-cache",
1214
- credentials: "include",
1215
- responseType: "JSON",
1216
- mode: "cors"
1217
- };
1218
- var API_OPTION = {
1219
- getIVMrpOrgDropdown: {
1220
- url: "/api/identity/users/allOrganizationByUser",
1221
- option: _objectSpread2({
1222
- method: "GET"
1223
- }, DEFIND_OPTION)
1224
- },
1225
- getIVMrpProdBaseDropdown: {
1226
- url: "/api/basis-management/production-base/all",
1227
- option: _objectSpread2({
1228
- method: "GET"
1229
- }, DEFIND_OPTION)
1230
- },
1231
- getIVMrpLineDropdown: {
1232
- url: "/api/basis-management/line/all",
1233
- option: _objectSpread2({
1234
- method: "GET"
1235
- }, DEFIND_OPTION)
1236
- },
1237
- getIVMrpSetofbookDropdown: {
1238
- url: "/api/basis-management/setOfBook/all",
1239
- option: _objectSpread2({
1240
- method: "GET"
1241
- }, DEFIND_OPTION)
1242
- },
1243
- getIVMrpPostDropdown: {
1244
- url: "/api/identity/users/allPosition",
1245
- option: _objectSpread2({
1246
- method: "GET"
1247
- }, DEFIND_OPTION)
1248
- },
1249
- getIVMrpUserSelector: {
1250
- url: "/api/identity/users/userList",
1251
- option: _objectSpread2({
1252
- method: "GET"
1253
- }, DEFIND_OPTION)
1254
- }
1255
- };
1256
- var formatHTTP = function formatHTTP(fetch) {
1257
- return new Promise(function (resolve, reject) {
1258
- fetch.then(function (data) {
1259
- data.json().then(function (data) {
1260
- return resolve(data);
1261
- })["catch"](function (err) {
1262
- return reject(err);
1263
- });
1264
- })["catch"](function (err) {
1265
- return reject(err);
1266
- });
1267
- });
1268
- };
1269
- var formatUrl = function formatUrl(base, api, params) {
1270
- if (!isObject(params)) return base + api;
1271
- if (Object.keys(params).length === 0) return base + api;
1272
- var urlTemparr = [];
1273
-
1274
- for (var k in params) {
1275
- urlTemparr.push("".concat(k, "=").concat(params[k]));
1276
- }
1277
-
1278
- return base + api + "?" + urlTemparr.join("&");
1279
- };
1280
-
1281
- var _hoisted_1$6 = /*#__PURE__*/createElementVNode("div", {
1282
- "class": "text-[#0000006D] text-[14px]"
1283
- }, "所属组织", -1
1284
- /* HOISTED */
1285
- );
1286
- /**
1287
- * 组件定义-------------------------------------
1288
- * */
1289
-
1290
- var script$6 = /*#__PURE__*/defineComponent({
1291
- __name: 'IVMrpOrgDropdown',
1292
- props: {
1293
- value: {
1294
- type: null,
1295
- required: true
1296
- },
1297
- params: {
1298
- type: Object,
1299
- required: false
1300
- },
1301
- data: {
1302
- type: Object,
1303
- required: false
1304
- },
1305
- replaceFields: {
1306
- type: null,
1307
- required: false,
1308
- "default": function _default() {
1309
- return {
1310
- children: "children",
1311
- label: "displayName",
1312
- key: "id",
1313
- value: "id"
1314
- };
1315
- }
1316
- }
1317
- },
1318
- emits: ["update:value", "change"],
1319
- setup: function setup(__props, _ref) {
1320
- var emit = _ref.emit;
1321
- var props = __props;
1322
- /**
1323
- * 获取数据-------------------------------------
1324
- * */
1325
-
1326
- var dataV = ref();
1327
-
1328
- var getData = /*#__PURE__*/function () {
1329
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
1330
- var _option,
1331
- _a,
1332
- _yield$formatHTTP,
1333
- items,
1334
- _args = arguments;
1335
-
1336
- return _regeneratorRuntime().wrap(function _callee$(_context) {
1337
- while (1) {
1338
- switch (_context.prev = _context.next) {
1339
- case 0:
1340
- _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
1341
- _context.next = 3;
1342
- return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpOrgDropdown.url, _option.params), assign({
1343
- data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
1344
- }, API_OPTION.getIVMrpOrgDropdown.option)));
1345
-
1346
- case 3:
1347
- _yield$formatHTTP = _context.sent;
1348
- items = _yield$formatHTTP.items;
1349
- dataV.value = tranListToTreeData(items);
1350
-
1351
- case 6:
1352
- case "end":
1353
- return _context.stop();
1354
- }
1355
- }
1356
- }, _callee);
1357
- }));
1358
-
1359
- return function getData() {
1360
- return _ref2.apply(this, arguments);
1361
- };
1362
- }();
1363
-
1364
- var inputV = computed({
1365
- get: function get() {
1366
- return props.value;
1367
- },
1368
- set: function set(value) {
1369
- emit("update:value", value);
1370
- }
1371
- });
1372
- /**
1373
- * 侦听器-------------------------------------
1374
- * */
1375
-
1376
- watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
1377
- var _a, _b;
1378
-
1379
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1380
- while (1) {
1381
- switch (_context2.prev = _context2.next) {
1382
- case 0:
1383
- // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
1384
- getData({
1385
- params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
1386
- type: 1
1387
- }),
1388
- data: (_b = props.data) !== null && _b !== void 0 ? _b : null
1389
- });
1390
-
1391
- case 1:
1392
- case "end":
1393
- return _context2.stop();
1394
- }
1395
- }
1396
- }, _callee2);
1397
- })));
1398
- return function (_ctx, _cache) {
1399
- var _component_a_tree_select = resolveComponent("a-tree-select");
1400
-
1401
- var _component_a_form_item = resolveComponent("a-form-item");
1402
-
1403
- return openBlock(), createBlock(_component_a_form_item, {
1404
- name: "organizationId",
1405
- rules: [{
1406
- required: true,
1407
- message: '请选择所属组织'
1408
- }]
1409
- }, {
1410
- label: withCtx(function () {
1411
- return [_hoisted_1$6];
1412
- }),
1413
- "default": withCtx(function () {
1414
- return [createVNode(_component_a_tree_select, {
1415
- value: unref(inputV),
1416
- "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
1417
- return isRef(inputV) ? inputV.value = $event : null;
1418
- }),
1419
- "tree-data": dataV.value,
1420
- getPopupContainer: function getPopupContainer(triggerNode) {
1421
- return triggerNode.parentNode;
1422
- },
1423
- placeholder: "请选择",
1424
- showArrow: "",
1425
- showSearch: "",
1426
- "filter-option": unref(filterOptionHeadle),
1427
- treeDefaultExpandAll: "",
1428
- style: {
1429
- "width": "300px"
1430
- },
1431
- onChange: _cache[1] || (_cache[1] = function ($event) {
1432
- return _ctx.$emit('change', $event);
1433
- }),
1434
- replaceFields: __props.replaceFields
1435
- }, null, 8
1436
- /* PROPS */
1437
- , ["value", "tree-data", "getPopupContainer", "filter-option", "replaceFields"])];
1438
- }),
1439
- _: 1
1440
- /* STABLE */
1441
-
1442
- });
1443
- };
1444
- }
1445
- });
1446
-
1447
- script$6.__file = "src/business-ui/component/IVMrpOrgDropdown.vue";
1448
-
1449
- var _hoisted_1$5 = /*#__PURE__*/createElementVNode("div", {
1450
- "class": "text-[#0000006D] text-[14px]"
1451
- }, "所属基地", -1
1452
- /* HOISTED */
1453
- );
1454
- /**
1455
- * 组件定义-------------------------------------
1456
- * */
1457
-
1458
- var script$5 = /*#__PURE__*/defineComponent({
1459
- __name: 'IVMrpProdBaseDropdown',
1460
- props: {
1461
- value: {
1462
- type: null,
1463
- required: true
1464
- },
1465
- params: {
1466
- type: Object,
1467
- required: false
1468
- },
1469
- data: {
1470
- type: Object,
1471
- required: false
1472
- },
1473
- fieldNames: {
1474
- type: null,
1475
- required: false,
1476
- "default": function _default() {
1477
- return {
1478
- label: "name",
1479
- value: "id"
1480
- };
1481
- }
1482
- }
1483
- },
1484
- emits: ["update:value", "change"],
1485
- setup: function setup(__props, _ref) {
1486
- var emit = _ref.emit;
1487
- var props = __props;
1488
- /**
1489
- * 获取数据-------------------------------------
1490
- * */
1491
-
1492
- var dataV = ref();
1493
-
1494
- var getData = /*#__PURE__*/function () {
1495
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
1496
- var _option,
1497
- _a,
1498
- _args = arguments;
1499
-
1500
- return _regeneratorRuntime().wrap(function _callee$(_context) {
1501
- while (1) {
1502
- switch (_context.prev = _context.next) {
1503
- case 0:
1504
- _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
1505
- _context.next = 3;
1506
- return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpProdBaseDropdown.url, _option.params), assign({
1507
- data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
1508
- }, API_OPTION.getIVMrpProdBaseDropdown.option)));
1509
-
1510
- case 3:
1511
- dataV.value = _context.sent;
1512
-
1513
- case 4:
1514
- case "end":
1515
- return _context.stop();
1516
- }
1517
- }
1518
- }, _callee);
1519
- }));
1520
-
1521
- return function getData() {
1522
- return _ref2.apply(this, arguments);
1523
- };
1524
- }();
1525
-
1526
- var inputV = computed({
1527
- get: function get() {
1528
- return props.value;
1529
- },
1530
- set: function set(value) {
1531
- emit("update:value", value);
1532
- }
1533
- });
1534
- /**
1535
- * 侦听器-------------------------------------
1536
- * */
1537
-
1538
- watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
1539
- var _a, _b;
1540
-
1541
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1542
- while (1) {
1543
- switch (_context2.prev = _context2.next) {
1544
- case 0:
1545
- // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
1546
- getData({
1547
- params: (_a = props.params) !== null && _a !== void 0 ? _a : null,
1548
- data: (_b = props.data) !== null && _b !== void 0 ? _b : null
1549
- });
1550
-
1551
- case 1:
1552
- case "end":
1553
- return _context2.stop();
1554
- }
1555
- }
1556
- }, _callee2);
1557
- })));
1558
- return function (_ctx, _cache) {
1559
- var _component_a_select = resolveComponent("a-select");
1560
-
1561
- var _component_a_form_item = resolveComponent("a-form-item");
1562
-
1563
- return openBlock(), createBlock(_component_a_form_item, {
1564
- name: "organizationIds",
1565
- "wrapper-col": {
1566
- span: 8
1567
- },
1568
- rules: [{
1569
- required: true,
1570
- message: '请选择所属基地'
1571
- }]
1572
- }, {
1573
- label: withCtx(function () {
1574
- return [_hoisted_1$5];
1575
- }),
1576
- "default": withCtx(function () {
1577
- return [createVNode(_component_a_select, {
1578
- getPopupContainer: function getPopupContainer(triggerNode) {
1579
- return triggerNode.parentNode;
1580
- },
1581
- value: unref(inputV),
1582
- "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
1583
- return isRef(inputV) ? inputV.value = $event : null;
1584
- }),
1585
- mode: "multiple",
1586
- style: {
1587
- "width": "100%"
1588
- },
1589
- placeholder: "请选择",
1590
- options: dataV.value,
1591
- fieldNames: __props.fieldNames,
1592
- showSearch: "",
1593
- onChange: _cache[1] || (_cache[1] = function ($event) {
1594
- return _ctx.$emit('change', $event);
1595
- }),
1596
- "filter-option": unref(filterOptionHeadle)
1597
- }, null, 8
1598
- /* PROPS */
1599
- , ["getPopupContainer", "value", "options", "fieldNames", "filter-option"])];
1600
- }),
1601
- _: 1
1602
- /* STABLE */
1603
-
1604
- });
1605
- };
1606
- }
1607
- });
1608
-
1609
- script$5.__file = "src/business-ui/component/IVMrpProdBaseDropdown.vue";
1610
-
1611
- var _hoisted_1$4 = /*#__PURE__*/createElementVNode("div", {
1612
- "class": "text-[#0000006D] text-[14px]"
1613
- }, "所属条线", -1
1614
- /* HOISTED */
1615
- );
1616
- /**
1617
- * 组件定义-------------------------------------
1618
- * */
1619
-
1620
- var script$4 = /*#__PURE__*/defineComponent({
1621
- __name: 'IVMrpLineDropdown',
1622
- props: {
1623
- value: {
1624
- type: null,
1625
- required: true
1626
- },
1627
- params: {
1628
- type: Object,
1629
- required: false
1630
- },
1631
- data: {
1632
- type: Object,
1633
- required: false
1634
- },
1635
- fieldNames: {
1636
- type: null,
1637
- required: false,
1638
- "default": function _default() {
1639
- return {
1640
- label: "displayName",
1641
- value: "id"
1642
- };
1643
- }
1644
- }
1645
- },
1646
- emits: ["update:value", "change"],
1647
- setup: function setup(__props, _ref) {
1648
- var emit = _ref.emit;
1649
- var props = __props;
1650
- /**
1651
- * 获取数据-------------------------------------
1652
- * */
1653
-
1654
- var dataV = ref();
1655
-
1656
- var getData = /*#__PURE__*/function () {
1657
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
1658
- var _option,
1659
- _a,
1660
- _yield$formatHTTP,
1661
- items,
1662
- _args = arguments;
1663
-
1664
- return _regeneratorRuntime().wrap(function _callee$(_context) {
1665
- while (1) {
1666
- switch (_context.prev = _context.next) {
1667
- case 0:
1668
- _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
1669
- _context.next = 3;
1670
- return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpLineDropdown.url, _option.params), assign({
1671
- data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
1672
- }, API_OPTION.getIVMrpLineDropdown.option)));
1673
-
1674
- case 3:
1675
- _yield$formatHTTP = _context.sent;
1676
- items = _yield$formatHTTP.items;
1677
- dataV.value = items;
1678
-
1679
- case 6:
1680
- case "end":
1681
- return _context.stop();
1682
- }
1683
- }
1684
- }, _callee);
1685
- }));
1686
-
1687
- return function getData() {
1688
- return _ref2.apply(this, arguments);
1689
- };
1690
- }();
1691
-
1692
- var inputV = computed({
1693
- get: function get() {
1694
- return props.value;
1695
- },
1696
- set: function set(value) {
1697
- emit("update:value", value);
1698
- }
1699
- });
1700
- /**
1701
- * 侦听器-------------------------------------
1702
- * */
1703
-
1704
- watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
1705
- var _a, _b;
1706
-
1707
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1708
- while (1) {
1709
- switch (_context2.prev = _context2.next) {
1710
- case 0:
1711
- // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
1712
- getData({
1713
- params: (_a = props.params) !== null && _a !== void 0 ? _a : null,
1714
- data: (_b = props.data) !== null && _b !== void 0 ? _b : null
1715
- });
1716
-
1717
- case 1:
1718
- case "end":
1719
- return _context2.stop();
1720
- }
1721
- }
1722
- }, _callee2);
1723
- })));
1724
- return function (_ctx, _cache) {
1725
- var _component_a_select = resolveComponent("a-select");
1726
-
1727
- var _component_a_form_item = resolveComponent("a-form-item");
1728
-
1729
- return openBlock(), createBlock(_component_a_form_item, {
1730
- name: "lineIds",
1731
- "wrapper-col": {
1732
- span: 8
1733
- },
1734
- rules: [{
1735
- required: true,
1736
- message: '请选择所属条线'
1737
- }]
1738
- }, {
1739
- label: withCtx(function () {
1740
- return [_hoisted_1$4];
1741
- }),
1742
- "default": withCtx(function () {
1743
- return [createVNode(_component_a_select, {
1744
- getPopupContainer: function getPopupContainer(triggerNode) {
1745
- return triggerNode.parentNode;
1746
- },
1747
- value: unref(inputV),
1748
- "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
1749
- return isRef(inputV) ? inputV.value = $event : null;
1750
- }),
1751
- mode: "multiple",
1752
- style: {
1753
- "width": "100%"
1754
- },
1755
- placeholder: "请选择",
1756
- options: dataV.value,
1757
- fieldNames: __props.fieldNames,
1758
- showSearch: "",
1759
- onChange: _cache[1] || (_cache[1] = function ($event) {
1760
- return _ctx.$emit('change', $event);
1761
- }),
1762
- "filter-option": unref(filterOptionHeadle)
1763
- }, null, 8
1764
- /* PROPS */
1765
- , ["getPopupContainer", "value", "options", "fieldNames", "filter-option"])];
1766
- }),
1767
- _: 1
1768
- /* STABLE */
1769
-
1770
- });
1771
- };
1772
- }
1773
- });
1774
-
1775
- script$4.__file = "src/business-ui/component/IVMrpLineDropdown.vue";
1776
-
1777
- var _hoisted_1$3 = /*#__PURE__*/createElementVNode("div", {
1778
- "class": "text-[#0000006D] text-[14px]"
1779
- }, "所属账套", -1
1780
- /* HOISTED */
1781
- );
1782
- /**
1783
- * 组件定义-------------------------------------
1784
- * */
1785
-
1786
- var script$3 = /*#__PURE__*/defineComponent({
1787
- __name: 'IVMrpSetofbookDropdown',
1788
- props: {
1789
- value: {
1790
- type: null,
1791
- required: true
1792
- },
1793
- params: {
1794
- type: Object,
1795
- required: false
1796
- },
1797
- data: {
1798
- type: Object,
1799
- required: false
1800
- },
1801
- replaceFields: {
1802
- type: null,
1803
- required: false,
1804
- "default": function _default() {
1805
- return {
1806
- children: "children",
1807
- label: "name",
1808
- key: "id",
1809
- value: "id"
1810
- };
1811
- }
1812
- },
1813
- multiple: {
1814
- type: Boolean,
1815
- required: false,
1816
- "default": true
1817
- }
1818
- },
1819
- emits: ["update:value", "change"],
1820
- setup: function setup(__props, _ref) {
1821
- var emit = _ref.emit;
1822
- var props = __props;
1823
- /**
1824
- * 获取数据-------------------------------------
1825
- * */
1826
-
1827
- var dataV = ref();
1828
-
1829
- var getData = /*#__PURE__*/function () {
1830
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
1831
- var _option,
1832
- _a,
1833
- _yield$formatHTTP,
1834
- items,
1835
- _args = arguments;
1836
-
1837
- return _regeneratorRuntime().wrap(function _callee$(_context) {
1838
- while (1) {
1839
- switch (_context.prev = _context.next) {
1840
- case 0:
1841
- _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
1842
- _context.next = 3;
1843
- return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpSetofbookDropdown.url, _option.params), assign({
1844
- data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
1845
- }, API_OPTION.getIVMrpSetofbookDropdown.option)));
1846
-
1847
- case 3:
1848
- _yield$formatHTTP = _context.sent;
1849
- items = _yield$formatHTTP.items;
1850
- dataV.value = tranListToTreeData(items);
1851
-
1852
- case 6:
1853
- case "end":
1854
- return _context.stop();
1855
- }
1856
- }
1857
- }, _callee);
1858
- }));
1859
-
1860
- return function getData() {
1861
- return _ref2.apply(this, arguments);
1862
- };
1863
- }();
1864
-
1865
- var inputV = computed({
1866
- get: function get() {
1867
- return props.value;
1868
- },
1869
- set: function set(value) {
1870
- emit("update:value", value);
1871
- }
1872
- });
1873
- /**
1874
- * 侦听器-------------------------------------
1875
- * */
1876
-
1877
- watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
1878
- var _a, _b;
1879
-
1880
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1881
- while (1) {
1882
- switch (_context2.prev = _context2.next) {
1883
- case 0:
1884
- // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
1885
- getData({
1886
- params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
1887
- type: 1
1888
- }),
1889
- data: (_b = props.data) !== null && _b !== void 0 ? _b : null
1890
- });
1891
-
1892
- case 1:
1893
- case "end":
1894
- return _context2.stop();
1895
- }
1896
- }
1897
- }, _callee2);
1898
- })));
1899
- return function (_ctx, _cache) {
1900
- var _component_a_tree_select = resolveComponent("a-tree-select");
1901
-
1902
- var _component_a_form_item = resolveComponent("a-form-item");
1903
-
1904
- return openBlock(), createBlock(_component_a_form_item, {
1905
- name: "setOfBookIds",
1906
- "wrapper-col": {
1907
- span: 8
1908
- },
1909
- rules: [{
1910
- required: true,
1911
- message: '请选择所属账套'
1912
- }]
1913
- }, {
1914
- label: withCtx(function () {
1915
- return [_hoisted_1$3];
1916
- }),
1917
- "default": withCtx(function () {
1918
- return [createVNode(_component_a_tree_select, {
1919
- value: unref(inputV),
1920
- "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
1921
- return isRef(inputV) ? inputV.value = $event : null;
1922
- }),
1923
- "tree-data": dataV.value,
1924
- getPopupContainer: function getPopupContainer(triggerNode) {
1925
- return triggerNode.parentNode;
1926
- },
1927
- placeholder: "请选择",
1928
- showArrow: "",
1929
- showSearch: "",
1930
- "filter-option": unref(filterOptionHeadle),
1931
- multiple: __props.multiple,
1932
- treeDefaultExpandAll: "",
1933
- style: {
1934
- "width": "300px"
1935
- },
1936
- onChange: _cache[1] || (_cache[1] = function ($event) {
1937
- return _ctx.$emit('change', $event);
1938
- }),
1939
- replaceFields: __props.replaceFields
1940
- }, null, 8
1941
- /* PROPS */
1942
- , ["value", "tree-data", "getPopupContainer", "filter-option", "multiple", "replaceFields"])];
1943
- }),
1944
- _: 1
1945
- /* STABLE */
1946
-
1947
- });
1948
- };
1949
- }
1950
- });
1951
-
1952
- script$3.__file = "src/business-ui/component/IVMrpSetofbookDropdown.vue";
1953
-
1954
- var _hoisted_1$2 = /*#__PURE__*/createElementVNode("div", {
1955
- "class": "text-[#0000006D] text-[14px]"
1956
- }, "岗位", -1
1957
- /* HOISTED */
1958
- );
1959
- /**
1960
- * 组件定义-------------------------------------
1961
- * */
1962
-
1963
- var script$2 = /*#__PURE__*/defineComponent({
1964
- __name: 'IVMrpPostDropdown',
1965
- props: {
1966
- value: {
1967
- type: null,
1968
- required: true
1969
- },
1970
- params: {
1971
- type: Object,
1972
- required: false
1973
- },
1974
- data: {
1975
- type: Object,
1976
- required: false
1977
- },
1978
- fieldNames: {
1979
- type: null,
1980
- required: false,
1981
- "default": function _default() {
1982
- return {
1983
- label: "name",
1984
- value: "id"
1985
- };
1986
- }
1987
- }
1988
- },
1989
- emits: ["update:value", "change"],
1990
- setup: function setup(__props, _ref) {
1991
- var emit = _ref.emit;
1992
- var props = __props;
1993
- /**
1994
- * 获取数据-------------------------------------
1995
- * */
1996
-
1997
- var dataV = ref();
1998
-
1999
- var getData = /*#__PURE__*/function () {
2000
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
2001
- var _option,
2002
- _a,
2003
- _yield$formatHTTP,
2004
- items,
2005
- _args = arguments;
2006
-
2007
- return _regeneratorRuntime().wrap(function _callee$(_context) {
2008
- while (1) {
2009
- switch (_context.prev = _context.next) {
2010
- case 0:
2011
- _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
2012
- _context.next = 3;
2013
- return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpPostDropdown.url, _option.params), assign({
2014
- data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
2015
- }, API_OPTION.getIVMrpPostDropdown.option)));
2016
-
2017
- case 3:
2018
- _yield$formatHTTP = _context.sent;
2019
- items = _yield$formatHTTP.items;
2020
- dataV.value = items;
2021
-
2022
- case 6:
2023
- case "end":
2024
- return _context.stop();
2025
- }
2026
- }
2027
- }, _callee);
2028
- }));
2029
-
2030
- return function getData() {
2031
- return _ref2.apply(this, arguments);
2032
- };
2033
- }();
2034
-
2035
- var inputV = computed({
2036
- get: function get() {
2037
- return props.value;
2038
- },
2039
- set: function set(value) {
2040
- emit("update:value", value);
2041
- }
2042
- });
2043
- /**
2044
- * 侦听器-------------------------------------
2045
- * */
2046
-
2047
- watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
2048
- var _a, _b;
2049
-
2050
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2051
- while (1) {
2052
- switch (_context2.prev = _context2.next) {
2053
- case 0:
2054
- // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
2055
- getData({
2056
- params: (_a = props.params) !== null && _a !== void 0 ? _a : null,
2057
- data: (_b = props.data) !== null && _b !== void 0 ? _b : null
2058
- });
2059
-
2060
- case 1:
2061
- case "end":
2062
- return _context2.stop();
2063
- }
2064
- }
2065
- }, _callee2);
2066
- })));
2067
- return function (_ctx, _cache) {
2068
- var _component_a_select = resolveComponent("a-select");
2069
-
2070
- var _component_a_form_item = resolveComponent("a-form-item");
2071
-
2072
- return openBlock(), createBlock(_component_a_form_item, {
2073
- name: "positionId",
2074
- rules: [{
2075
- required: true,
2076
- message: '请选择岗位'
2077
- }]
2078
- }, {
2079
- label: withCtx(function () {
2080
- return [_hoisted_1$2];
2081
- }),
2082
- "default": withCtx(function () {
2083
- return [createVNode(_component_a_select, {
2084
- value: unref(inputV),
2085
- "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
2086
- return isRef(inputV) ? inputV.value = $event : null;
2087
- }),
2088
- getPopupContainer: function getPopupContainer(triggerNode) {
2089
- return triggerNode.parentNode;
2090
- },
2091
- allowClear: "",
2092
- style: {
2093
- "width": "300px"
2094
- },
2095
- placeholder: "请选择",
2096
- showSearch: "",
2097
- showArrow: "",
2098
- options: dataV.value,
2099
- "filter-option": unref(filterOptionHeadle),
2100
- onChange: _cache[1] || (_cache[1] = function ($event) {
2101
- return _ctx.$emit('change', $event);
2102
- }),
2103
- fieldNames: __props.fieldNames
2104
- }, null, 8
2105
- /* PROPS */
2106
- , ["value", "getPopupContainer", "options", "filter-option", "fieldNames"])];
2107
- }),
2108
- _: 1
2109
- /* STABLE */
2110
-
2111
- });
2112
- };
2113
- }
2114
- });
2115
-
2116
- script$2.__file = "src/business-ui/component/IVMrpPostDropdown.vue";
2117
-
2118
- var _hoisted_1$1 = {
2119
- "class": "relative mt-[8px] w-[30px] h-[23px]"
2120
- };
2121
- var _hoisted_2$1 = createElementVNode("svg", {
2122
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
2123
- xmlns: "http://www.w3.org/2000/svg",
2124
- version: "1.1",
2125
- width: "23px",
2126
- height: "23px",
2127
- "class": "absolute"
2128
- }, [createElementVNode("g", {
2129
- transform: "matrix(1 0 0 1 -256 -275 )"
2130
- }, [createElementVNode("path", {
2131
- d: "M 2.8482972136223452 0 C 1.2746130030959648 0.028482972136316675 0 1.3030959752322815 0 2.8767801857584345 L 0 20.151702786377655 C 0 21.725386996904035 1.2746130030959648 23 2.8482972136223452 23 L 20.123219814241565 23 C 21.69690402476772 23 22.971517027863683 21.725386996904035 23 20.151702786377655 L 23 2.8767801857584345 C 22.971517027863683 1.3030959752322815 21.69690402476772 0.028482972136316675 20.123219814241565 0 L 2.8482972136223452 0 Z ",
2132
- "fill-rule": "nonzero",
2133
- fill: "#bd9e55",
2134
- stroke: "none",
2135
- transform: "matrix(1 0 0 1 256 275 )"
2136
- })])], -1
2137
- );
2138
- var _hoisted_3$1 = createElementVNode("svg", {
2139
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
2140
- xmlns: "http://www.w3.org/2000/svg",
2141
- version: "1.1",
2142
- width: "23px",
2143
- height: "23px",
2144
- "class": "absolute left-[7px] bottom-[7px]"
2145
- }, [createElementVNode("g", {
2146
- transform: "matrix(1 0 0 1 -263 -268 )"
2147
- }, [createElementVNode("path", {
2148
- d: "M 2.8767801857584345 0 C 1.3030959752322815 0 0.028482972136316675 1.2746130030959648 0.028482972136316675 2.8482972136223452 L 0.028482972136316675 4.870588235294008 C 0.028482972136316675 5.027244582043295 0.15665634674928697 5.155417956656265 0.31331269349834656 5.155417956656265 L 14.426625386996877 5.155417956656265 C 16.306501547987637 5.155417956656265 17.844582043343735 6.693498452012363 17.844582043343735 8.573374613003125 L 17.844582043343735 22.686687306501653 C 17.844582043343735 22.843343653250713 17.972755417956705 22.971517027863683 18.129411764705992 22.971517027863683 L 20.151702786377655 22.971517027863683 C 21.725386996904035 22.971517027863683 23 21.69690402476772 23 20.123219814241565 L 23 2.8482972136223452 C 23 1.2746130030959648 21.725386996904035 0 20.151702786377655 0 L 2.8767801857584345 0 Z ",
2149
- "fill-rule": "nonzero",
2150
- fill: "#bd9e55",
2151
- stroke: "none",
2152
- transform: "matrix(1 0 0 1 263 268 )"
2153
- })])], -1
2154
- );
2155
- var _hoisted_4$1 = [_hoisted_2$1, _hoisted_3$1];
2156
- function render(_ctx, _cache) {
2157
- return openBlock(), createElementBlock("div", _hoisted_1$1, _hoisted_4$1);
2158
- }
2159
-
2160
- var script$1 = {};
2161
- script$1.render = render;
2162
- script$1.__file = "src/business-ui/component/icon/SelectorIcon.vue";
2163
-
2164
- var _withScopeId = function _withScopeId(n) {
2165
- return pushScopeId("data-v-15a6b582"), n = n(), popScopeId(), n;
2166
- };
2167
-
2168
- var _hoisted_1 = {
2169
- "class": "flex items-center h-[60px] pl-[40px] bg-[#97D2FD]"
2170
- };
2171
-
2172
- var _hoisted_2 = /*#__PURE__*/_withScopeId(function () {
2173
- return /*#__PURE__*/createElementVNode("span", {
2174
- "class": "text-xl text-[#bd9e55] pl-2"
2175
- }, "选择人员", -1
2176
- /* HOISTED */
2177
- );
2178
- });
2179
-
2180
- var _hoisted_3 = {
2181
- "class": "px-[150px]"
2182
- };
2183
- var _hoisted_4 = {
2184
- "class": "mx-10"
2185
- };
2186
- var _hoisted_5 = {
2187
- "class": "flex items-center my-4 justify-center"
2188
- };
2189
-
2190
- var _hoisted_6 = /*#__PURE__*/createTextVNode(" 搜索 ");
2191
-
2192
- var _hoisted_7 = {
2193
- "class": "mt-10"
2194
- };
2195
- var _hoisted_8 = {
2196
- "class": "flex justify-between mb-2"
2197
- };
2198
- var _hoisted_9 = {
2199
- "class": "text-[#999999]"
2200
- };
2201
-
2202
- var _hoisted_10 = /*#__PURE__*/createTextVNode(" 共有 ");
2203
-
2204
- var _hoisted_11 = {
2205
- "class": "text-[#BD9E55] text-[16px]"
2206
- };
2207
-
2208
- var _hoisted_12 = /*#__PURE__*/createTextVNode(" 个记录满足条件,当前第 ");
2209
-
2210
- var _hoisted_13 = {
2211
- "class": "text-[#BD9E55] text-[16px]"
2212
- };
2213
-
2214
- var _hoisted_14 = /*#__PURE__*/createTextVNode(" 页,跳转到第 ");
2215
-
2216
- var _hoisted_15 = {
2217
- "class": "text-[#BD9E55] text-[16px]"
2218
- };
2219
-
2220
- var _hoisted_16 = /*#__PURE__*/createTextVNode(" 页 ");
2221
-
2222
- var _hoisted_17 = {
2223
- "class": "contentList"
2224
- };
2225
- var _hoisted_18 = ["onClick"];
2226
- var _hoisted_19 = {
2227
- key: 0
2228
- };
2229
- var _hoisted_20 = {
2230
- "class": "flex items-center justify-around text-[#006AB2] text-[13px]"
2231
- };
2232
- var _hoisted_21 = ["onClick"];
2233
- /**
2234
- * 组件定义-------------------------------------
2235
- * */
2236
-
2237
- var script = /*#__PURE__*/defineComponent({
2238
- __name: 'IVMrpUserSelector',
2239
- props: {
2240
- show: {
2241
- type: Boolean,
2242
- required: true,
2243
- "default": false
2244
- }
2245
- },
2246
- emits: ["update:show", "getItem"],
2247
- setup: function setup(__props, _ref) {
2248
- var emit = _ref.emit;
2249
- var props = __props;
2250
- /**
2251
- * 搜索-------------------------------------
2252
- * */
2253
-
2254
- var formData = reactive({
2255
- name: null,
2256
- phoneNumber: null,
2257
- workNo: null,
2258
- positionId: null,
2259
- organizationId: null,
2260
- lineId: null,
2261
- sorting: null,
2262
- skipCount: 0,
2263
- maxResultCount: 10
2264
- });
2265
- /**
2266
- * 获取数据-------------------------------------
2267
- * */
2268
-
2269
- var dataV = ref();
2270
-
2271
- var getData = /*#__PURE__*/function () {
2272
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
2273
- var _option,
2274
- _a,
2275
- _yield$formatHTTP,
2276
- items,
2277
- totalCount,
2278
- _args = arguments;
2279
-
2280
- return _regeneratorRuntime().wrap(function _callee$(_context) {
2281
- while (1) {
2282
- switch (_context.prev = _context.next) {
2283
- case 0:
2284
- _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
2285
- _context.next = 3;
2286
- return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpUserSelector.url, _option.params), assign({
2287
- data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
2288
- }, API_OPTION.getIVMrpUserSelector.option)));
2289
-
2290
- case 3:
2291
- _yield$formatHTTP = _context.sent;
2292
- items = _yield$formatHTTP.items;
2293
- totalCount = _yield$formatHTTP.totalCount;
2294
- dataV.value = items;
2295
- totalPages.value = totalCount;
2296
- topPages.value = Math.ceil(totalPages.value / formData.maxResultCount);
2297
-
2298
- case 9:
2299
- case "end":
2300
- return _context.stop();
2301
- }
2302
- }
2303
- }, _callee);
2304
- }));
2305
-
2306
- return function getData() {
2307
- return _ref2.apply(this, arguments);
2308
- };
2309
- }();
2310
- /**
2311
- * 表格-------------------------------------
2312
- * */
2313
-
2314
-
2315
- var th = ref([{
2316
- title: "序号",
2317
- w: 54 / 1499 * 100 + "%",
2318
- key: "index",
2319
- show: true
2320
- }, {
2321
- title: "人员编号",
2322
- w: 120 / 1499 * 100 + "%",
2323
- key: "workNo",
2324
- show: true
2325
- }, {
2326
- title: "所属部门",
2327
- w: 200 / 1499 * 100 + "%",
2328
- key: "organizationName",
2329
- show: true
2330
- }, {
2331
- title: "所属条线",
2332
- w: 200 / 1499 * 100 + "%",
2333
- key: "lineNames",
2334
- show: true,
2335
- custom: true
2336
- }, {
2337
- title: "岗位",
2338
- w: 200 / 1499 * 100 + "%",
2339
- key: "positionName",
2340
- show: true
2341
- }, {
2342
- title: "姓名",
2343
- w: 200 / 1499 * 100 + "%",
2344
- key: "name",
2345
- show: true,
2346
- custom: true
2347
- }, {
2348
- title: "手机号码",
2349
- w: 130 / 1499 * 100 + "%",
2350
- key: "phoneNumber",
2351
- show: true
2352
- }, {
2353
- title: "",
2354
- w: 80 / 1333 * 100 + "%",
2355
- key: "buttonSlot",
2356
- show: true
2357
- }]); // 更新th
2358
-
2359
- var upth = function upth(val) {
2360
- th.value = val;
2361
- }; //获取指定记录
2362
-
2363
-
2364
- function sendItem(_x) {
2365
- return _sendItem.apply(this, arguments);
2366
- }
2367
- /**
2368
- * 分页-------------------------------------
2369
- * */
2370
-
2371
-
2372
- function _sendItem() {
2373
- _sendItem = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(item) {
2374
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2375
- while (1) {
2376
- switch (_context2.prev = _context2.next) {
2377
- case 0:
2378
- emit("getItem", JSON.stringify(item));
2379
- inputV.value = false;
2380
-
2381
- case 2:
2382
- case "end":
2383
- return _context2.stop();
2384
- }
2385
- }
2386
- }, _callee2);
2387
- }));
2388
- return _sendItem.apply(this, arguments);
2389
- }
2390
-
2391
- var currentPages = ref(1);
2392
- var topCurrentPages = ref(1);
2393
- var topPages = ref(0);
2394
- var topSelectPages = ref(1);
2395
- var totalPages = ref(0); // 重置搜索分页
2396
-
2397
- function resetPagination() {
2398
- formData.skipCount = 0;
2399
- currentPages.value = 1;
2400
- topCurrentPages.value = 1;
2401
- topPages.value = 0;
2402
- topSelectPages.value = 1;
2403
- }
2404
-
2405
- function onPageChange(current, pageSize) {
2406
- topCurrentPages.value = current;
2407
- topSelectPages.value = current;
2408
- currentPages.value = current;
2409
- formData.skipCount = (current - 1) * pageSize;
2410
- formData.maxResultCount = pageSize;
2411
- getData({
2412
- params: formData
2413
- });
2414
- }
2415
-
2416
- function onShowSizeChange(current, pageSize) {
2417
- topCurrentPages.value = current;
2418
- topSelectPages.value = current;
2419
- formData.maxResultCount = pageSize;
2420
- getData({
2421
- params: formData
2422
- });
2423
- }
2424
-
2425
- function onSelectTopPage(id) {
2426
- topSelectPages.value = id;
2427
- currentPages.value = id;
2428
- onPageChange(id, formData.maxResultCount);
2429
- }
2430
-
2431
- function onSearch() {
2432
- resetPagination();
2433
- getData({
2434
- params: formData
2435
- });
2436
- }
2437
-
2438
- onBeforeMount(function () {
2439
- getData({
2440
- params: formData
2441
- });
2442
- });
2443
- var inputV = computed({
2444
- get: function get() {
2445
- return props.show;
2446
- },
2447
- set: function set(value) {
2448
- emit("update:show", value);
2449
- }
2450
- });
2451
- return function (_ctx, _cache) {
2452
- var _component_a_input = resolveComponent("a-input");
2453
-
2454
- var _component_a_button = resolveComponent("a-button");
2455
-
2456
- var _component_DownOutlined = resolveComponent("DownOutlined");
2457
-
2458
- var _component_a_menu_item = resolveComponent("a-menu-item");
2459
-
2460
- var _component_a_menu = resolveComponent("a-menu");
2461
-
2462
- var _component_a_dropdown = resolveComponent("a-dropdown");
2463
-
2464
- return openBlock(), createBlock(script$9, {
2465
- show: unref(inputV),
2466
- "onUpdate:show": _cache[5] || (_cache[5] = function ($event) {
2467
- return isRef(inputV) ? inputV.value = $event : null;
2468
- }),
2469
- "remove-padding": false
2470
- }, {
2471
- title: withCtx(function () {
2472
- return [createElementVNode("div", _hoisted_1, [createVNode(script$1), _hoisted_2])];
2473
- }),
2474
- body: withCtx(function () {
2475
- return [createElementVNode("div", _hoisted_3, [createCommentVNode(" 搜索 "), createElementVNode("div", _hoisted_4, [createElementVNode("div", _hoisted_5, [createVNode(unref(script$6), {
2476
- value: formData.organizationId,
2477
- "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
2478
- return formData.organizationId = $event;
2479
- }),
2480
- onChange: onSearch
2481
- }, null, 8
2482
- /* PROPS */
2483
- , ["value"]), createVNode(unref(script$4), {
2484
- value: formData.lineId,
2485
- "onUpdate:value": _cache[1] || (_cache[1] = function ($event) {
2486
- return formData.lineId = $event;
2487
- }),
2488
- onChange: onSearch
2489
- }, null, 8
2490
- /* PROPS */
2491
- , ["value"]), createVNode(unref(script$2), {
2492
- value: formData.positionId,
2493
- "onUpdate:value": _cache[2] || (_cache[2] = function ($event) {
2494
- return formData.positionId = $event;
2495
- }),
2496
- onChange: onSearch
2497
- }, null, 8
2498
- /* PROPS */
2499
- , ["value"]), createVNode(_component_a_input, {
2500
- value: formData.name,
2501
- "onUpdate:value": _cache[3] || (_cache[3] = function ($event) {
2502
- return formData.name = $event;
2503
- }),
2504
- style: {
2505
- "width": "300px",
2506
- "margin-right": "15px"
2507
- },
2508
- "class": "mr-4",
2509
- placeholder: "请输入员工编号,姓名,或手机号码",
2510
- onKeyup: withKeys(onSearch, ["enter"])
2511
- }, null, 8
2512
- /* PROPS */
2513
- , ["value", "onKeyup"]), createVNode(_component_a_button, {
2514
- style: {
2515
- "padding": "4px 10px",
2516
- "border-radius": "4px",
2517
- "background": "#006ab2",
2518
- "margin-right": "15px",
2519
- "color": "#fff"
2520
- },
2521
- onClick: onSearch
2522
- }, {
2523
- "default": withCtx(function () {
2524
- return [_hoisted_6];
2525
- }),
2526
- _: 1
2527
- /* STABLE */
2528
-
2529
- })])]), createCommentVNode(" 主体 "), createElementVNode("div", _hoisted_7, [createCommentVNode(" 分页 "), createElementVNode("div", _hoisted_8, [createElementVNode("div", _hoisted_9, [_hoisted_10, createElementVNode("span", _hoisted_11, toDisplayString(totalPages.value), 1
2530
- /* TEXT */
2531
- ), _hoisted_12, createElementVNode("span", _hoisted_13, toDisplayString(topCurrentPages.value), 1
2532
- /* TEXT */
2533
- ), _hoisted_14, createVNode(_component_a_dropdown, {
2534
- trigger: ['click']
2535
- }, {
2536
- overlay: withCtx(function () {
2537
- return [createVNode(_component_a_menu, {
2538
- getPopupContainer: function getPopupContainer(triggerNode) {
2539
- return triggerNode.parentNode;
2540
- },
2541
- "class": "max-h-40 overflow-y-auto scrollbar"
2542
- }, {
2543
- "default": withCtx(function () {
2544
- return [(openBlock(true), createElementBlock(Fragment, null, renderList(topPages.value, function (e) {
2545
- return openBlock(), createBlock(_component_a_menu_item, {
2546
- key: e,
2547
- onClick: function onClick($event) {
2548
- return onSelectTopPage(e);
2549
- }
2550
- }, {
2551
- "default": withCtx(function () {
2552
- return [createTextVNode(toDisplayString(e), 1
2553
- /* TEXT */
2554
- )];
2555
- }),
2556
- _: 2
2557
- /* DYNAMIC */
2558
-
2559
- }, 1032
2560
- /* PROPS, DYNAMIC_SLOTS */
2561
- , ["onClick"]);
2562
- }), 128
2563
- /* KEYED_FRAGMENT */
2564
- ))];
2565
- }),
2566
- _: 1
2567
- /* STABLE */
2568
-
2569
- }, 8
2570
- /* PROPS */
2571
- , ["getPopupContainer"])];
2572
- }),
2573
- "default": withCtx(function () {
2574
- return [createElementVNode("a", {
2575
- "class": "pl-2 ant-dropdown-link border-b border-[#BD9E55]",
2576
- onClick: _cache[4] || (_cache[4] = withModifiers(function () {}, ["prevent"]))
2577
- }, [createElementVNode("span", _hoisted_15, toDisplayString(topSelectPages.value), 1
2578
- /* TEXT */
2579
- ), createVNode(_component_DownOutlined, {
2580
- "class": "align-middle ml-1 mb-[4px]",
2581
- style: {
2582
- "font-size": "16px"
2583
- }
2584
- })])];
2585
- }),
2586
- _: 1
2587
- /* STABLE */
2588
-
2589
- }), _hoisted_16])]), createElementVNode("div", _hoisted_17, [createVNode(unref(script$8), {
2590
- data: unref(th),
2591
- contractExecDocList: dataV.value,
2592
- currentPages: currentPages.value,
2593
- totalPages: totalPages.value,
2594
- formData: formData,
2595
- setHeight: 40,
2596
- onOnPageChange: onPageChange,
2597
- onOnShowSizeChange: onShowSizeChange,
2598
- onUpth: upth
2599
- }, {
2600
- name: withCtx(function (e) {
2601
- return [createElementVNode("span", {
2602
- "class": "text-[#006AB2] cursor-pointer",
2603
- onClick: function onClick($event) {
2604
- return sendItem(e.item);
2605
- }
2606
- }, toDisplayString(e.item.name), 9
2607
- /* TEXT, PROPS */
2608
- , _hoisted_18)];
2609
- }),
2610
- lineNames: withCtx(function (e) {
2611
- return [(openBlock(true), createElementBlock(Fragment, null, renderList(e.item.lineNames, function (item, index) {
2612
- return openBlock(), createElementBlock("span", null, [createTextVNode(toDisplayString(item) + " ", 1
2613
- /* TEXT */
2614
- ), index !== e.item.lineNames.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_19, ",")) : createCommentVNode("v-if", true)]);
2615
- }), 256
2616
- /* UNKEYED_FRAGMENT */
2617
- ))];
2618
- }),
2619
- buttonSlot: withCtx(function (buttonSlot) {
2620
- return [createElementVNode("div", _hoisted_20, [createElementVNode("span", {
2621
- "class": "cursor-pointer",
2622
- onClick: function onClick($event) {
2623
- return sendItem(buttonSlot.item);
2624
- }
2625
- }, "选择", 8
2626
- /* PROPS */
2627
- , _hoisted_21)])];
2628
- }),
2629
- _: 1
2630
- /* STABLE */
2631
-
2632
- }, 8
2633
- /* PROPS */
2634
- , ["data", "contractExecDocList", "currentPages", "totalPages", "formData"])])])])];
2635
- }),
2636
- _: 1
2637
- /* STABLE */
2638
-
2639
- }, 8
2640
- /* PROPS */
2641
- , ["show"]);
2642
- };
2643
- }
2644
- });
2645
-
2646
- script.__scopeId = "data-v-15a6b582";
2647
- script.__file = "src/business-ui/component/IVMrpUserSelector.vue";
2648
-
2649
- /*
2650
- * @Author: Mr.Cong Wei
2651
- * @Date: 2022-08-08 18:47:06
2652
- * @LastEditTime: 2022-08-11 14:35:19
2653
- */
2654
- var components = [script$9, script$6, script$5, script$4, script$3, script$2, script$8, script$7, script];
2655
- installComponents(); // 单独引用
2656
-
2657
- function installComponents() {
2658
- components.forEach(function (component) {
2659
- component.install = function (app) {
2660
- app.component(component.name, component);
2661
- };
2662
- });
2663
- } // 全局引用
2664
-
2665
-
2666
- var install = function install(app) {
2667
- components.forEach(function (component) {
2668
- app.component(component.name, component);
2669
- });
2670
- };
2671
-
2672
- var cAll = {
2673
- install: install
2674
- };
2675
-
2676
- export { script$4 as IVMrpLineDropdown, script$9 as IVMrpModal, script$6 as IVMrpOrgDropdown, script$2 as IVMrpPostDropdown, script$5 as IVMrpProdBaseDropdown, script$3 as IVMrpSetofbookDropdown, script$8 as IVMrpTable, script$7 as IVMrpTableControl, script as IVMrpUserSelector, cAll as default };
1
+ import{defineComponent as e,ref as t,resolveComponent as n,openBlock as r,createBlock as o,withCtx as a,renderSlot as i,createVNode as u,onMounted as l,onBeforeUnmount as c,createElementBlock as s,Fragment as p,createCommentVNode as d,createElementVNode as f,normalizeStyle as v,renderList as h,normalizeClass as g,createTextVNode as m,toDisplayString as y,unref as A,pushScopeId as w,popScopeId as b,createStaticVNode as x,reactive as E,watch as k,computed as C,watchEffect as Q,isRef as I,onBeforeMount as S,withKeys as B,withModifiers as N}from"vue";var D=e({__name:"IVMrpModal",props:{show:{type:Boolean,default:!1},removePadding:{type:Boolean,default:!0}},emits:["update:show","cancelHandle"],setup:function(e,l){var c=l.emit,s=t(e.show);function p(){c("update:show",!1),c("cancelHandle",!1)}return function(t,l){var c=n("close-circle-outlined"),d=n("a-modal");return r(),o(d,{wrapClassName:[e.removePadding?"":"not-padding","module-class modal-components"],visible:s.value,"onUpdate:visible":l[0]||(l[0]=function(e){return s.value=e}),onCancel:p,destroyOnClose:"",footer:null},{title:a((function(){return[i(t.$slots,"title")]})),closeIcon:a((function(){return[u(c,{class:"text-[#006ab2] text-[30px]"})]})),default:a((function(){return[i(t.$slots,"body")]})),_:3},8,["wrapClassName","visible"])}}});function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(){
2
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
3
+ j=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),i=new E(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return C()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var u=w(i,n);if(u){if(u===s)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,i),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var s={};function p(){}function d(){}function f(){}var v={};u(v,o,(function(){return this}));var h=Object.getPrototypeOf,g=h&&h(h(k([])));g&&g!==t&&n.call(g,o)&&(v=g);var m=f.prototype=p.prototype=Object.create(v);function y(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function r(o,a,i,u){var l=c(e[o],e,a);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,i,u)}),(function(e){r("throw",e,i,u)})):t.resolve(p).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,u)}))}u(l.arg)}var o;this._invoke=function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return s;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,s;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,s):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function k(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=f,u(m,"constructor",f),u(f,"constructor",d),d.displayName=u(f,i,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,i,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},y(A.prototype),u(A.prototype,a,(function(){return this})),e.AsyncIterator=A,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new A(l(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},y(m),u(m,i,"Generator"),u(m,o,(function(){return this})),u(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=k,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,s):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),s},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),s}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),s}},e}function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function O(e,t,n,r,o,a,i){try{var u=e[a](i),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,o)}function _(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){O(a,r,o,i,u,"next",e)}function u(e){O(a,r,o,i,u,"throw",e)}i(void 0)}))}}function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}D.__file="src/function-ui/component/IVMrpModal.vue";var U=function(e){return w("data-v-2dfcb17e"),e=e(),b(),e},J={key:0,id:"top"},V={class:"flex items-center justify-center"},K={key:0,style:{color:"#ff0066"}},z={key:0},H=U((function(){return f("div",{class:"h-2 flex items-center"},[f("span",{class:"bg-[#d9d9d9] h-[1px] w-full"})],-1)})),F={class:"flex items-center justify-between h-1/2"},T={key:0,style:{color:"#ff0066"}},R={class:"mrpTable"},G={class:"relative w-full mb-[24px]",style:{"table-layout":"fixed"}},Y={class:"flex items-center justify-center"},Z={key:0,style:{color:"#ff0066"}},X={key:1},W=U((function(){return f("div",{class:"h-2 flex items-center"},[f("span",{class:"bg-[#d9d9d9] h-[1px] w-full"})],-1)})),$={class:"flex items-center justify-between h-1/2"},ee={key:0,style:{color:"#ff0066"}},te={key:0},ne={key:1},re={key:2,class:"flex justify-center items-center relative"},oe={key:1,class:"table-footer"},ae=[x('<div class="centent" data-v-2dfcb17e><svg class="ant-empty-img-simple" width="64" height="41" viewBox="0 0 64 41" data-v-2dfcb17e><g transform="translate(0 1)" fill="none" fill-rule="evenodd" data-v-2dfcb17e><ellipse class="ant-empty-img-simple-ellipse" fill="#F5F5F5" cx="32" cy="33" rx="32" ry="7" data-v-2dfcb17e></ellipse><g class="ant-empty-img-simple-g" fill-rule="nonzero" stroke="#D9D9D9" data-v-2dfcb17e><path d="M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" data-v-2dfcb17e></path><path d="M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z" fill="#FAFAFA" class="ant-empty-img-simple-path" data-v-2dfcb17e></path></g></g></svg> 没有数据 </div>',1)],ie=e({__name:"IVMrpTable",props:{data:{type:null,required:!0},contractExecDocList:{type:Array,required:!0},currentPages:{type:Number,required:!0},totalPages:{type:Number,required:!0},formData:{type:Object,required:!0},col:{type:Boolean,required:!1},setHeight:{type:Number,required:!1}},emits:["onPageChange","onShowSizeChange","upth"],setup:function(e,a){var w=a.emit,b=e;localStorage.setItem("th",b.data.map((function(e){return e.title})).join(","));var x=function(e,t){w("onPageChange",e,t)},E=function(e,t){w("onShowSizeChange",e,t)},k=t(0),C=t(0),Q=!1,I=function(e){if(!Q){Q=!0;var t=e.target.scrollTop,n=document.querySelector(".mrpTable");setTimeout((function(){Q=!1}),15),t>(null==n?void 0:n.offsetTop)-48&&(null==e?void 0:e.target)!=document.querySelector(".rc-virtual-list-holder")?k.value=n.offsetWidth:k.value=0}},S=t(0),B=t(!1),N=function(e){B.value=!0,S.value=0==e?0:1==e?40:20},D=function(e){var t=b.data.map((function(t){return L(L({},t),{},{show:e.includes(t.title)})}));w("upth",t)};return l((function(){var e=document.querySelector(".mrpTable");C.value=e.offsetWidth,window.addEventListener("scroll",I,!0)})),c((function(){window.removeEventListener("scroll",I,!0)})),function(t,a){var l=n("a-image"),c=n("a-pagination");return r(),s(p,null,[d(" 主体 "),k.value?(r(),s("div",J,[f("table",{class:"relative w-full mb-[24px]",style:v([{"table-layout":"fixed"},{width:k.value?k.value+"px":""}])},[f("tr",null,[(r(!0),s(p,null,h(e.data,(function(t,n){return r(),s(p,null,[t.show?(r(),s("th",{key:n,class:g("table-cell bg-[#97D2FD]"),style:v({height:e.setHeight&&!B.value?e.setHeight+"px":S.value?S.value+"px":"",width:t.w?t.w:""})},[f("div",V,[m(y("操作"==t.title?"":t.title)+" ",1),t.unit?(r(),s("span",K,y(t.unit),1)):d("v-if",!0)]),t.header?(r(),s("div",z,[H,f("div",F,[(r(!0),s(p,null,h(t.header,(function(e,t){return r(),s("div",{key:t,style:v({width:e.w?e.w:""})},[m(y("操作"==e.title?"":e.title)+" ",1),e.unit?(r(),s("span",T,y(e.unit),1)):d("v-if",!0)],4)})),128))])])):d("v-if",!0)],4)):d("v-if",!0)],64)})),256))])],4),u(A(he),{setHeight:e.setHeight,onDensity:N,onChangeS:D},null,8,["setHeight"])])):d("v-if",!0),f("div",R,[f("table",G,[f("tr",null,[(r(!0),s(p,null,h(e.data,(function(n,o){return r(),s(p,{key:o},[n.show?(r(),s("th",{key:0,class:g("table-cell bg-[#97D2FD]"),style:v({height:e.setHeight&&!B.value?e.setHeight+"px":S.value?S.value+"px":"",width:n.w?n.w:""})},["select"==n.key?i(t.$slots,"selectAll",{key:0}):d("v-if",!0),f("div",Y,[m(y("select"==n.key||"操作"==n.title?"":n.title)+" ",1),n.unit?(r(),s("span",Z,y(n.unit),1)):d("v-if",!0),d(' <span class="flex flex-col"\r\n ><caret-up-filled /><caret-down-filled\r\n /></span> ')]),n.header?(r(),s("div",X,[W,f("div",$,[(r(!0),s(p,null,h(n.header,(function(e,t){return r(),s("div",{key:t,style:v({width:e.w?e.w:""})},[m(y("操作"==e.title?"":e.title)+" ",1),e.unit?(r(),s("span",ee,y(e.unit),1)):d("v-if",!0)],4)})),128))])])):d("v-if",!0)],4)):d("v-if",!0)],64)})),128))]),0!==b.contractExecDocList.length?(r(!0),s(p,{key:0},h(b.contractExecDocList,(function(n,a){return r(),s("tr",{key:n.id},[(r(!0),s(p,null,h(e.data,(function(u,c){return r(),s(p,{key:c},[u.show?(r(),s("td",{key:0,class:"table-cell",style:v({height:e.setHeight&&!B.value?e.setHeight+"px":S.value?S.value+"px":""})},[d(" 序号 "),"index"==u.key?(r(),s("div",te,y(b.currentPages-1==0?a+1:10*(b.currentPages-1)+a+1),1)):d("v-if",!0),d(" 常规 "),"index"==u.key||"pictures"==u.key||"buttonSlot"==u.key||"select"==u.key||u.custom?d("v-if",!0):(r(),s("div",ne,y(n[u.key]),1)),d(" 图片数据特殊处理 "),"pictures"==u.key?(r(),s("div",re,[d(' <img\r\n v-for="(e1, i1) in e.pictures"\r\n :key="i1"\r\n :src="e1"\r\n width="30"\r\n height="32"\r\n class="mx-4"\r\n /> '),(r(!0),s(p,null,h(n.pictures,(function(e,t){return r(),o(l,{key:t,src:e,width:30,height:32,fallback:"data:image/png;base64,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",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}},null,8,["src"])})),128))])):d("v-if",!0),d(" 可点击的td slot"),"clickSlot"==u.key?i(t.$slots,"clickSlot",{key:3,id:n.id,item:n}):d("v-if",!0),"select"==u.key?i(t.$slots,"select",{key:4,index:a,item:n}):d("v-if",!0),d(" 按钮使用slot"),"buttonSlot"==u.key?i(t.$slots,"buttonSlot",{key:5,id:n.id,item:n}):d("v-if",!0),d(" 按钮使用slot"),u.custom?i(t.$slots,u.key,{key:6,id:n.id,item:n}):d("v-if",!0)],4)):d("v-if",!0)],64)})),128))])})),128)):(r(),s("div",oe,ae))]),u(A(he),{setHeight:e.setHeight,onDensity:N,onChangeS:D},null,8,["setHeight"])]),d(" 分页 "),e.totalPages?(r(),s("div",{key:1,class:"flex justify-center h-full mt-4 mb-20 pagination",style:v({width:C.value?C.value+"px":""})},[u(c,{current:b.currentPages,"onUpdate:current":a[0]||(a[0]=function(e){return b.currentPages=e}),"show-quick-jumper":"","show-size-changer":"",pageSizeOptions:["10","20","30","50"],total:b.totalPages,onChange:x,onShowSizeChange:E},null,8,["current","total"])],4)):d("v-if",!0)],64)}}});ie.__scopeId="data-v-2dfcb17e",ie.__file="src/function-ui/component/IVMrpTable.vue";var ue=function(e){return w("data-v-4b5cf48c"),e=e(),b(),e},le={class:"tableControl"},ce=ue((function(){return f("div",null,"密度",-1)})),se=m(" 默认 "),pe=m(" 中等 "),de=m(" 紧凑 "),fe=ue((function(){return f("div",null,"列设置",-1)})),ve=m(" 全选 "),he=e({__name:"IVMrpTableControl",props:{setHeight:{type:Number,required:!1}},emits:["density","ChangeS"],setup:function(e,o){var i,l,c=o.emit,p=e,d=t(!1),v=t(!1),h=t(!1),g=t(!1),m=E({collapsed:!1,selectedKeys:["1"]}),y=function(e){d.value=!1,v.value=e},w=function(e){d.value=e,v.value=!1},b=function(e){h.value=e,g.value=!1},x=function(e){c("density",e.key)};m.selectedKeys[0]=p.setHeight?40==p.setHeight?"1":20==p.setHeight?"2":"0":"0";var C=null===(i=localStorage.getItem("th"))||void 0===i?void 0:i.split(","),Q=E({indeterminate:!1,checkAll:!0,checkedList:null===(l=localStorage.getItem("th"))||void 0===l?void 0:l.split(",")}),I=function(e){Object.assign(Q,{checkedList:e.target.checked?C:[],indeterminate:!1}),c("ChangeS",Q.checkedList)},S=function(e){var t=e.length,n=C.length;Object.assign(Q,{checkAll:t===n,indeterminate:t>0&&t<n}),c("ChangeS",e)};return k((function(){return Q.checkedList}),(function(e){Q.indeterminate=!!e.length&&e.length<C.length,Q.checkAll=e.length===C.length})),function(e,t){var o=n("a-menu-item"),i=n("a-menu"),l=n("column-height-outlined"),c=n("a-popover"),p=n("a-checkbox"),g=n("a-divider"),E=n("a-checkbox-group"),k=n("setting-outlined");return r(),s("div",le,[u(c,{trigger:"hover",visible:v.value,onVisibleChange:y},{content:a((function(){return[ce]})),default:a((function(){return[u(c,{trigger:"click",placement:"left","arrow-point-at-center":"",visible:d.value,onVisibleChange:w,getPopupContainer:function(e){return e.parentNode}},{content:a((function(){return[u(i,{selectedKeys:m.selectedKeys,"onUpdate:selectedKeys":t[0]||(t[0]=function(e){return m.selectedKeys=e}),onClick:x},{default:a((function(){return[u(o,{key:"0"},{default:a((function(){return[se]})),_:1}),u(o,{key:"1"},{default:a((function(){return[pe]})),_:1}),u(o,{key:"2"},{default:a((function(){return[de]})),_:1})]})),_:1},8,["selectedKeys"])]})),default:a((function(){return[u(l,{style:{fontSize:"20px"},class:"cursor-pointer"})]})),_:1},8,["visible","getPopupContainer"])]})),_:1},8,["visible"]),u(c,{trigger:"hover"},{content:a((function(){return[fe]})),default:a((function(){return[u(c,{trigger:"click",placement:"left",visible:h.value,onVisibleChange:b,getPopupContainer:function(e){return e.parentNode}},{content:a((function(){return[f("div",null,[u(p,{checked:Q.checkAll,"onUpdate:checked":t[1]||(t[1]=function(e){return Q.checkAll=e}),indeterminate:Q.indeterminate,onChange:I},{default:a((function(){return[ve]})),_:1},8,["checked","indeterminate"])]),u(g),u(E,{value:Q.checkedList,"onUpdate:value":t[2]||(t[2]=function(e){return Q.checkedList=e}),options:A(C),onChange:S},null,8,["value","options"])]})),default:a((function(){return[u(k,{class:"setting cursor-pointer",style:{fontSize:"20px"}})]})),_:1},8,["visible","getPopupContainer"])]})),_:1})])}}});function ge(e,t){var n=t.filter((function(t){return t.parentId==e.id}));if(n.length)return e.children=n,e.children.forEach((function(e){ge(e,t)})),e}function me(e){var t=e.filter((function(e){return null==e.parentId}));return t.forEach((function(t){return ge(t,e)})),t}he.__scopeId="data-v-4b5cf48c",he.__file="src/function-ui/component/IVMrpTableControl.vue";var ye=Object.assign;function Ae(e,t){return t.label&&t.label.toLowerCase().indexOf(e.toLowerCase())>=0}var we="https://basis.nacho.cn",be={headers:{"Content-Type":"application/json;charset=UTF-8","Accept-Language":"zh-Hans",authorization:localStorage.getItem("token")?"Bearer "+localStorage.getItem("token"):null},cache:"no-cache",credentials:"include",responseType:"JSON",mode:"cors"},xe={getIVMrpOrgDropdown:{url:"/api/identity/users/allOrganizationByUser",option:L({method:"GET"},be)},getIVMrpProdBaseDropdown:{url:"/api/basis-management/production-base/all",option:L({method:"GET"},be)},getIVMrpLineDropdown:{url:"/api/basis-management/line/all",option:L({method:"GET"},be)},getIVMrpSetofbookDropdown:{url:"/api/basis-management/setOfBook/all",option:L({method:"GET"},be)},getIVMrpPostDropdown:{url:"/api/identity/users/allPosition",option:L({method:"GET"},be)},getIVMrpUserSelector:{url:"/api/identity/users/userList",option:L({method:"GET"},be)}},Ee=function(e){return new Promise((function(t,n){e.then((function(e){e.json().then((function(e){return t(e)})).catch((function(e){return n(e)}))})).catch((function(e){return n(e)}))}))},ke=function(e,t,n){if(null===(r=n)||"object"!==M(r))return e+t;var r;if(0===Object.keys(n).length)return e+t;var o=[];for(var a in n)o.push("".concat(a,"=").concat(n[a]));return e+t+"?"+o.join("&")},Ce=f("div",{class:"text-[#0000006D] text-[14px]"},"所属组织",-1),Qe=e({__name:"IVMrpOrgDropdown",props:{value:{type:null,required:!0},params:{type:Object,required:!1},data:{type:Object,required:!1},replaceFields:{type:null,required:!1,default:function(){return{children:"children",label:"displayName",key:"id",value:"id"}}}},emits:["update:value","change"],setup:function(e,i){var l=i.emit,c=e,s=t(),p=function(){var e=_(j().mark((function e(){var t,n,r,o,a=arguments;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,Ee(fetch(ke(we,xe.getIVMrpOrgDropdown.url,t.params),ye({data:null!==(n=t.data)&&void 0!==n?n:null},xe.getIVMrpOrgDropdown.option)));case 3:r=e.sent,o=r.items,s.value=me(o);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=C({get:function(){return c.value},set:function(e){l("update:value",e)}});return Q(_(j().mark((function e(){var t,n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p({params:ye(null!==(t=c.params)&&void 0!==t?t:{},{type:1}),data:null!==(n=c.data)&&void 0!==n?n:null});case 1:case"end":return e.stop()}}),e)})))),function(t,i){var l=n("a-tree-select"),c=n("a-form-item");return r(),o(c,{name:"organizationId",rules:[{required:!0,message:"请选择所属组织"}]},{label:a((function(){return[Ce]})),default:a((function(){return[u(l,{value:A(d),"onUpdate:value":i[0]||(i[0]=function(e){return I(d)?d.value=e:null}),"tree-data":s.value,getPopupContainer:function(e){return e.parentNode},placeholder:"请选择",showArrow:"",showSearch:"","filter-option":A(Ae),treeDefaultExpandAll:"",style:{width:"300px"},onChange:i[1]||(i[1]=function(e){return t.$emit("change",e)}),replaceFields:e.replaceFields},null,8,["value","tree-data","getPopupContainer","filter-option","replaceFields"])]})),_:1})}}});Qe.__file="src/business-ui/component/IVMrpOrgDropdown.vue";var Ie=f("div",{class:"text-[#0000006D] text-[14px]"},"所属基地",-1),Se=e({__name:"IVMrpProdBaseDropdown",props:{value:{type:null,required:!0},params:{type:Object,required:!1},data:{type:Object,required:!1},fieldNames:{type:null,required:!1,default:function(){return{label:"name",value:"id"}}}},emits:["update:value","change"],setup:function(e,i){var l=i.emit,c=e,s=t(),p=function(){var e=_(j().mark((function e(){var t,n,r=arguments;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,Ee(fetch(ke(we,xe.getIVMrpProdBaseDropdown.url,t.params),ye({data:null!==(n=t.data)&&void 0!==n?n:null},xe.getIVMrpProdBaseDropdown.option)));case 3:s.value=e.sent;case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=C({get:function(){return c.value},set:function(e){l("update:value",e)}});return Q(_(j().mark((function e(){var t,n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p({params:null!==(t=c.params)&&void 0!==t?t:null,data:null!==(n=c.data)&&void 0!==n?n:null});case 1:case"end":return e.stop()}}),e)})))),function(t,i){var l=n("a-select"),c=n("a-form-item");return r(),o(c,{name:"organizationIds","wrapper-col":{span:8},rules:[{required:!0,message:"请选择所属基地"}]},{label:a((function(){return[Ie]})),default:a((function(){return[u(l,{getPopupContainer:function(e){return e.parentNode},value:A(d),"onUpdate:value":i[0]||(i[0]=function(e){return I(d)?d.value=e:null}),mode:"multiple",style:{width:"100%"},placeholder:"请选择",options:s.value,fieldNames:e.fieldNames,showSearch:"",onChange:i[1]||(i[1]=function(e){return t.$emit("change",e)}),"filter-option":A(Ae)},null,8,["getPopupContainer","value","options","fieldNames","filter-option"])]})),_:1})}}});Se.__file="src/business-ui/component/IVMrpProdBaseDropdown.vue";var Be=f("div",{class:"text-[#0000006D] text-[14px]"},"所属条线",-1),Ne=e({__name:"IVMrpLineDropdown",props:{value:{type:null,required:!0},params:{type:Object,required:!1},data:{type:Object,required:!1},fieldNames:{type:null,required:!1,default:function(){return{label:"displayName",value:"id"}}}},emits:["update:value","change"],setup:function(e,i){var l=i.emit,c=e,s=t(),p=function(){var e=_(j().mark((function e(){var t,n,r,o,a=arguments;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,Ee(fetch(ke(we,xe.getIVMrpLineDropdown.url,t.params),ye({data:null!==(n=t.data)&&void 0!==n?n:null},xe.getIVMrpLineDropdown.option)));case 3:r=e.sent,o=r.items,s.value=o;case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=C({get:function(){return c.value},set:function(e){l("update:value",e)}});return Q(_(j().mark((function e(){var t,n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p({params:null!==(t=c.params)&&void 0!==t?t:null,data:null!==(n=c.data)&&void 0!==n?n:null});case 1:case"end":return e.stop()}}),e)})))),function(t,i){var l=n("a-select"),c=n("a-form-item");return r(),o(c,{name:"lineIds","wrapper-col":{span:8},rules:[{required:!0,message:"请选择所属条线"}]},{label:a((function(){return[Be]})),default:a((function(){return[u(l,{getPopupContainer:function(e){return e.parentNode},value:A(d),"onUpdate:value":i[0]||(i[0]=function(e){return I(d)?d.value=e:null}),mode:"multiple",style:{width:"100%"},placeholder:"请选择",options:s.value,fieldNames:e.fieldNames,showSearch:"",onChange:i[1]||(i[1]=function(e){return t.$emit("change",e)}),"filter-option":A(Ae)},null,8,["getPopupContainer","value","options","fieldNames","filter-option"])]})),_:1})}}});Ne.__file="src/business-ui/component/IVMrpLineDropdown.vue";var De=f("div",{class:"text-[#0000006D] text-[14px]"},"所属账套",-1),Pe=e({__name:"IVMrpSetofbookDropdown",props:{value:{type:null,required:!0},params:{type:Object,required:!1},data:{type:Object,required:!1},replaceFields:{type:null,required:!1,default:function(){return{children:"children",label:"name",key:"id",value:"id"}}},multiple:{type:Boolean,required:!1,default:!0}},emits:["update:value","change"],setup:function(e,i){var l=i.emit,c=e,s=t(),p=function(){var e=_(j().mark((function e(){var t,n,r,o,a=arguments;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,Ee(fetch(ke(we,xe.getIVMrpSetofbookDropdown.url,t.params),ye({data:null!==(n=t.data)&&void 0!==n?n:null},xe.getIVMrpSetofbookDropdown.option)));case 3:r=e.sent,o=r.items,s.value=me(o);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=C({get:function(){return c.value},set:function(e){l("update:value",e)}});return Q(_(j().mark((function e(){var t,n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p({params:ye(null!==(t=c.params)&&void 0!==t?t:{},{type:1}),data:null!==(n=c.data)&&void 0!==n?n:null});case 1:case"end":return e.stop()}}),e)})))),function(t,i){var l=n("a-tree-select"),c=n("a-form-item");return r(),o(c,{name:"setOfBookIds","wrapper-col":{span:8},rules:[{required:!0,message:"请选择所属账套"}]},{label:a((function(){return[De]})),default:a((function(){return[u(l,{value:A(d),"onUpdate:value":i[0]||(i[0]=function(e){return I(d)?d.value=e:null}),"tree-data":s.value,getPopupContainer:function(e){return e.parentNode},placeholder:"请选择",showArrow:"",showSearch:"","filter-option":A(Ae),multiple:e.multiple,treeDefaultExpandAll:"",style:{width:"300px"},onChange:i[1]||(i[1]=function(e){return t.$emit("change",e)}),replaceFields:e.replaceFields},null,8,["value","tree-data","getPopupContainer","filter-option","multiple","replaceFields"])]})),_:1})}}});Pe.__file="src/business-ui/component/IVMrpSetofbookDropdown.vue";var Le=f("div",{class:"text-[#0000006D] text-[14px]"},"岗位",-1),je=e({__name:"IVMrpPostDropdown",props:{value:{type:null,required:!0},params:{type:Object,required:!1},data:{type:Object,required:!1},fieldNames:{type:null,required:!1,default:function(){return{label:"name",value:"id"}}}},emits:["update:value","change"],setup:function(e,i){var l=i.emit,c=e,s=t(),p=function(){var e=_(j().mark((function e(){var t,n,r,o,a=arguments;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,Ee(fetch(ke(we,xe.getIVMrpPostDropdown.url,t.params),ye({data:null!==(n=t.data)&&void 0!==n?n:null},xe.getIVMrpPostDropdown.option)));case 3:r=e.sent,o=r.items,s.value=o;case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=C({get:function(){return c.value},set:function(e){l("update:value",e)}});return Q(_(j().mark((function e(){var t,n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p({params:null!==(t=c.params)&&void 0!==t?t:null,data:null!==(n=c.data)&&void 0!==n?n:null});case 1:case"end":return e.stop()}}),e)})))),function(t,i){var l=n("a-select"),c=n("a-form-item");return r(),o(c,{name:"positionId",rules:[{required:!0,message:"请选择岗位"}]},{label:a((function(){return[Le]})),default:a((function(){return[u(l,{value:A(d),"onUpdate:value":i[0]||(i[0]=function(e){return I(d)?d.value=e:null}),getPopupContainer:function(e){return e.parentNode},allowClear:"",style:{width:"300px"},placeholder:"请选择",showSearch:"",showArrow:"",options:s.value,"filter-option":A(Ae),onChange:i[1]||(i[1]=function(e){return t.$emit("change",e)}),fieldNames:e.fieldNames},null,8,["value","getPopupContainer","options","filter-option","fieldNames"])]})),_:1})}}});je.__file="src/business-ui/component/IVMrpPostDropdown.vue";var Me={class:"relative mt-[8px] w-[30px] h-[23px]"},Oe=[f("svg",{"xmlns:xlink":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"23px",height:"23px",class:"absolute"},[f("g",{transform:"matrix(1 0 0 1 -256 -275 )"},[f("path",{d:"M 2.8482972136223452 0 C 1.2746130030959648 0.028482972136316675 0 1.3030959752322815 0 2.8767801857584345 L 0 20.151702786377655 C 0 21.725386996904035 1.2746130030959648 23 2.8482972136223452 23 L 20.123219814241565 23 C 21.69690402476772 23 22.971517027863683 21.725386996904035 23 20.151702786377655 L 23 2.8767801857584345 C 22.971517027863683 1.3030959752322815 21.69690402476772 0.028482972136316675 20.123219814241565 0 L 2.8482972136223452 0 Z ","fill-rule":"nonzero",fill:"#bd9e55",stroke:"none",transform:"matrix(1 0 0 1 256 275 )"})])],-1),f("svg",{"xmlns:xlink":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"23px",height:"23px",class:"absolute left-[7px] bottom-[7px]"},[f("g",{transform:"matrix(1 0 0 1 -263 -268 )"},[f("path",{d:"M 2.8767801857584345 0 C 1.3030959752322815 0 0.028482972136316675 1.2746130030959648 0.028482972136316675 2.8482972136223452 L 0.028482972136316675 4.870588235294008 C 0.028482972136316675 5.027244582043295 0.15665634674928697 5.155417956656265 0.31331269349834656 5.155417956656265 L 14.426625386996877 5.155417956656265 C 16.306501547987637 5.155417956656265 17.844582043343735 6.693498452012363 17.844582043343735 8.573374613003125 L 17.844582043343735 22.686687306501653 C 17.844582043343735 22.843343653250713 17.972755417956705 22.971517027863683 18.129411764705992 22.971517027863683 L 20.151702786377655 22.971517027863683 C 21.725386996904035 22.971517027863683 23 21.69690402476772 23 20.123219814241565 L 23 2.8482972136223452 C 23 1.2746130030959648 21.725386996904035 0 20.151702786377655 0 L 2.8767801857584345 0 Z ","fill-rule":"nonzero",fill:"#bd9e55",stroke:"none",transform:"matrix(1 0 0 1 263 268 )"})])],-1)];var _e={render:function(e,t){return r(),s("div",Me,Oe)},__file:"src/business-ui/component/icon/SelectorIcon.vue"},qe={class:"flex items-center h-[60px] pl-[40px] bg-[#97D2FD]"},Ue=function(e){return w("data-v-15a6b582"),e=e(),b(),e}((function(){return f("span",{class:"text-xl text-[#bd9e55] pl-2"},"选择人员",-1)})),Je={class:"px-[150px]"},Ve={class:"mx-10"},Ke={class:"flex items-center my-4 justify-center"},ze=m(" 搜索 "),He={class:"mt-10"},Fe={class:"flex justify-between mb-2"},Te={class:"text-[#999999]"},Re=m(" 共有 "),Ge={class:"text-[#BD9E55] text-[16px]"},Ye=m(" 个记录满足条件,当前第 "),Ze={class:"text-[#BD9E55] text-[16px]"},Xe=m(" 页,跳转到第 "),We={class:"text-[#BD9E55] text-[16px]"},$e=m(" 页 "),et={class:"contentList"},tt=["onClick"],nt={key:0},rt={class:"flex items-center justify-around text-[#006AB2] text-[13px]"},ot=["onClick"],at=e({__name:"IVMrpUserSelector",props:{show:{type:Boolean,required:!0,default:!1}},emits:["update:show","getItem"],setup:function(e,i){var l=i.emit,c=e;console.log(c.show);var v=E({name:null,phoneNumber:null,workNo:null,positionId:null,organizationId:null,lineId:null,sorting:null,skipCount:0,maxResultCount:10}),g=t(),w=function(){var e=_(j().mark((function e(){var t,n,r,o,a,i=arguments;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},e.next=3,Ee(fetch(ke(we,xe.getIVMrpUserSelector.url,t.params),ye({data:null!==(n=t.data)&&void 0!==n?n:null},xe.getIVMrpUserSelector.option)));case 3:r=e.sent,o=r.items,a=r.totalCount,g.value=o,q.value=a,M.value=Math.ceil(q.value/v.maxResultCount);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),b=t([{title:"序号",w:54/1499*100+"%",key:"index",show:!0},{title:"人员编号",w:120/1499*100+"%",key:"workNo",show:!0},{title:"所属部门",w:200/1499*100+"%",key:"organizationName",show:!0},{title:"所属条线",w:200/1499*100+"%",key:"lineNames",show:!0,custom:!0},{title:"岗位",w:200/1499*100+"%",key:"positionName",show:!0},{title:"姓名",w:200/1499*100+"%",key:"name",show:!0,custom:!0},{title:"手机号码",w:130/1499*100+"%",key:"phoneNumber",show:!0},{title:"",w:80/1333*100+"%",key:"buttonSlot",show:!0}]),x=function(e){b.value=e};function k(e){return Q.apply(this,arguments)}function Q(){return(Q=_(j().mark((function e(t){return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l("getItem",JSON.stringify(t)),K.value=!1;case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var P=t(1),L=t(1),M=t(0),O=t(1),q=t(0);function U(e,t){L.value=e,O.value=e,P.value=e,v.skipCount=(e-1)*t,v.maxResultCount=t,w({params:v})}function J(e,t){L.value=e,O.value=e,v.maxResultCount=t,w({params:v})}function V(){v.skipCount=0,P.value=1,L.value=1,M.value=0,O.value=1,w({params:v})}S((function(){w({params:v})}));var K=C({get:function(){return c.show},set:function(e){l("update:show",e)}});return function(e,t){var i=n("a-input"),l=n("a-button"),c=n("DownOutlined"),w=n("a-menu-item"),E=n("a-menu"),C=n("a-dropdown");return r(),o(D,{show:A(K),"onUpdate:show":t[5]||(t[5]=function(e){return I(K)?K.value=e:null}),"remove-padding":!1},{title:a((function(){return[f("div",qe,[u(_e),Ue])]})),body:a((function(){return[f("div",Je,[d(" 搜索 "),f("div",Ve,[f("div",Ke,[u(A(Qe),{value:v.organizationId,"onUpdate:value":t[0]||(t[0]=function(e){return v.organizationId=e}),onChange:V},null,8,["value"]),u(A(Ne),{value:v.lineId,"onUpdate:value":t[1]||(t[1]=function(e){return v.lineId=e}),onChange:V},null,8,["value"]),u(A(je),{value:v.positionId,"onUpdate:value":t[2]||(t[2]=function(e){return v.positionId=e}),onChange:V},null,8,["value"]),u(i,{value:v.name,"onUpdate:value":t[3]||(t[3]=function(e){return v.name=e}),style:{width:"300px","margin-right":"15px"},class:"mr-4",placeholder:"请输入员工编号,姓名,或手机号码",onKeyup:B(V,["enter"])},null,8,["value","onKeyup"]),u(l,{style:{padding:"4px 10px","border-radius":"4px",background:"#006ab2","margin-right":"15px",color:"#fff"},onClick:V},{default:a((function(){return[ze]})),_:1})])]),d(" 主体 "),f("div",He,[d(" 分页 "),f("div",Fe,[f("div",Te,[Re,f("span",Ge,y(q.value),1),Ye,f("span",Ze,y(L.value),1),Xe,u(C,{trigger:["click"]},{overlay:a((function(){return[u(E,{getPopupContainer:function(e){return e.parentNode},class:"max-h-40 overflow-y-auto scrollbar"},{default:a((function(){return[(r(!0),s(p,null,h(M.value,(function(e){return r(),o(w,{key:e,onClick:function(t){return n=e,O.value=n,P.value=n,void U(n,v.maxResultCount);var n}},{default:a((function(){return[m(y(e),1)]})),_:2},1032,["onClick"])})),128))]})),_:1},8,["getPopupContainer"])]})),default:a((function(){return[f("a",{class:"pl-2 ant-dropdown-link border-b border-[#BD9E55]",onClick:t[4]||(t[4]=N((function(){}),["prevent"]))},[f("span",We,y(O.value),1),u(c,{class:"align-middle ml-1 mb-[4px]",style:{"font-size":"16px"}})])]})),_:1}),$e])]),f("div",et,[u(A(ie),{data:A(b),contractExecDocList:g.value,currentPages:P.value,totalPages:q.value,formData:v,setHeight:40,onOnPageChange:U,onOnShowSizeChange:J,onUpth:x},{name:a((function(e){return[f("span",{class:"text-[#006AB2] cursor-pointer",onClick:function(t){return k(e.item)}},y(e.item.name),9,tt)]})),lineNames:a((function(e){return[(r(!0),s(p,null,h(e.item.lineNames,(function(t,n){return r(),s("span",null,[m(y(t)+" ",1),n!==e.item.lineNames.length-1?(r(),s("span",nt,",")):d("v-if",!0)])})),256))]})),buttonSlot:a((function(e){return[f("div",rt,[f("span",{class:"cursor-pointer",onClick:function(t){return k(e.item)}},"选择",8,ot)])]})),_:1},8,["data","contractExecDocList","currentPages","totalPages","formData"])])])])]})),_:1},8,["show"])}}});at.__scopeId="data-v-15a6b582",at.__file="src/business-ui/component/IVMrpUserSelector.vue";var it=[D,Qe,Se,Ne,Pe,je,ie,he,at];it.forEach((function(e){e.install=function(t){t.component(e.name,e)}}));var ut={install:function(e){it.forEach((function(t){e.component(t.name,t)}))}};export{Ne as IVMrpLineDropdown,D as IVMrpModal,Qe as IVMrpOrgDropdown,je as IVMrpPostDropdown,Se as IVMrpProdBaseDropdown,Pe as IVMrpSetofbookDropdown,ie as IVMrpTable,he as IVMrpTableControl,at as IVMrpUserSelector,ut as default};