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