iv-npm 1.1.9 → 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,1500 +1,3 @@
1
- import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createVNode, computed, watchEffect, unref, isRef, createElementVNode, createElementBlock, Fragment } from 'vue';
2
-
3
- /**
4
- * show:Boolean 是否显示弹窗 v-model:show="Visible"
5
- *
6
- * remove-padding:Boolean 是否需要弹窗内边距(defult:true)
7
- * 内边距 padding: 100px 0 100px 100px;
8
- *
9
- * @cancelHandle:Function 关闭时触发事件
10
- *
11
- * v-slot:title 弹窗头部
12
- *
13
- * v-slot:body 弹窗主体
14
- *
15
- * */
16
-
17
- var script$5 = /*#__PURE__*/defineComponent({
18
- __name: 'IVMrpModal',
19
- props: {
20
- show: {
21
- type: Boolean,
22
- "default": false
23
- },
24
- removePadding: {
25
- type: Boolean,
26
- "default": true
27
- }
28
- },
29
- emits: ["update:show", "cancelHandle"],
30
- setup: function setup(__props, _ref) {
31
- var emit = _ref.emit;
32
- var props = __props;
33
- var isShow = ref(props.show);
34
-
35
- function cancel() {
36
- emit("update:show", false);
37
- emit("cancelHandle", false);
38
- }
39
-
40
- return function (_ctx, _cache) {
41
- var _component_close_circle_outlined = resolveComponent("close-circle-outlined");
42
-
43
- var _component_a_modal = resolveComponent("a-modal");
44
-
45
- return openBlock(), createBlock(_component_a_modal, {
46
- wrapClassName: [__props.removePadding ? '' : 'not-padding', 'module-class modal-components'],
47
- visible: isShow.value,
48
- "onUpdate:visible": _cache[0] || (_cache[0] = function ($event) {
49
- return isShow.value = $event;
50
- }),
51
- onCancel: cancel,
52
- destroyOnClose: "",
53
- footer: null
54
- }, {
55
- title: withCtx(function () {
56
- return [renderSlot(_ctx.$slots, "title")];
57
- }),
58
- closeIcon: withCtx(function () {
59
- return [createVNode(_component_close_circle_outlined, {
60
- "class": "text-[#006ab2] text-[30px]"
61
- })];
62
- }),
63
- "default": withCtx(function () {
64
- return [renderSlot(_ctx.$slots, "body")];
65
- }),
66
- _: 3
67
- /* FORWARDED */
68
-
69
- }, 8
70
- /* PROPS */
71
- , ["wrapClassName", "visible"]);
72
- };
73
- }
74
- });
75
-
76
- script$5.__file = "src/function-ui/component/IVMrpModal.vue";
77
-
78
- function ownKeys(object, enumerableOnly) {
79
- var keys = Object.keys(object);
80
-
81
- if (Object.getOwnPropertySymbols) {
82
- var symbols = Object.getOwnPropertySymbols(object);
83
- enumerableOnly && (symbols = symbols.filter(function (sym) {
84
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
85
- })), keys.push.apply(keys, symbols);
86
- }
87
-
88
- return keys;
89
- }
90
-
91
- function _objectSpread2(target) {
92
- for (var i = 1; i < arguments.length; i++) {
93
- var source = null != arguments[i] ? arguments[i] : {};
94
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
95
- _defineProperty(target, key, source[key]);
96
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
97
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
98
- });
99
- }
100
-
101
- return target;
102
- }
103
-
104
- function _regeneratorRuntime() {
105
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
106
-
107
- _regeneratorRuntime = function () {
108
- return exports;
109
- };
110
-
111
- var exports = {},
112
- Op = Object.prototype,
113
- hasOwn = Op.hasOwnProperty,
114
- $Symbol = "function" == typeof Symbol ? Symbol : {},
115
- iteratorSymbol = $Symbol.iterator || "@@iterator",
116
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
117
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
118
-
119
- function define(obj, key, value) {
120
- return Object.defineProperty(obj, key, {
121
- value: value,
122
- enumerable: !0,
123
- configurable: !0,
124
- writable: !0
125
- }), obj[key];
126
- }
127
-
128
- try {
129
- define({}, "");
130
- } catch (err) {
131
- define = function (obj, key, value) {
132
- return obj[key] = value;
133
- };
134
- }
135
-
136
- function wrap(innerFn, outerFn, self, tryLocsList) {
137
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
138
- generator = Object.create(protoGenerator.prototype),
139
- context = new Context(tryLocsList || []);
140
- return generator._invoke = function (innerFn, self, context) {
141
- var state = "suspendedStart";
142
- return function (method, arg) {
143
- if ("executing" === state) throw new Error("Generator is already running");
144
-
145
- if ("completed" === state) {
146
- if ("throw" === method) throw arg;
147
- return doneResult();
148
- }
149
-
150
- for (context.method = method, context.arg = arg;;) {
151
- var delegate = context.delegate;
152
-
153
- if (delegate) {
154
- var delegateResult = maybeInvokeDelegate(delegate, context);
155
-
156
- if (delegateResult) {
157
- if (delegateResult === ContinueSentinel) continue;
158
- return delegateResult;
159
- }
160
- }
161
-
162
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
163
- if ("suspendedStart" === state) throw state = "completed", context.arg;
164
- context.dispatchException(context.arg);
165
- } else "return" === context.method && context.abrupt("return", context.arg);
166
- state = "executing";
167
- var record = tryCatch(innerFn, self, context);
168
-
169
- if ("normal" === record.type) {
170
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
171
- return {
172
- value: record.arg,
173
- done: context.done
174
- };
175
- }
176
-
177
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
178
- }
179
- };
180
- }(innerFn, self, context), generator;
181
- }
182
-
183
- function tryCatch(fn, obj, arg) {
184
- try {
185
- return {
186
- type: "normal",
187
- arg: fn.call(obj, arg)
188
- };
189
- } catch (err) {
190
- return {
191
- type: "throw",
192
- arg: err
193
- };
194
- }
195
- }
196
-
197
- exports.wrap = wrap;
198
- var ContinueSentinel = {};
199
-
200
- function Generator() {}
201
-
202
- function GeneratorFunction() {}
203
-
204
- function GeneratorFunctionPrototype() {}
205
-
206
- var IteratorPrototype = {};
207
- define(IteratorPrototype, iteratorSymbol, function () {
208
- return this;
209
- });
210
- var getProto = Object.getPrototypeOf,
211
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
212
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
213
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
214
-
215
- function defineIteratorMethods(prototype) {
216
- ["next", "throw", "return"].forEach(function (method) {
217
- define(prototype, method, function (arg) {
218
- return this._invoke(method, arg);
219
- });
220
- });
221
- }
222
-
223
- function AsyncIterator(generator, PromiseImpl) {
224
- function invoke(method, arg, resolve, reject) {
225
- var record = tryCatch(generator[method], generator, arg);
226
-
227
- if ("throw" !== record.type) {
228
- var result = record.arg,
229
- value = result.value;
230
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
231
- invoke("next", value, resolve, reject);
232
- }, function (err) {
233
- invoke("throw", err, resolve, reject);
234
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
235
- result.value = unwrapped, resolve(result);
236
- }, function (error) {
237
- return invoke("throw", error, resolve, reject);
238
- });
239
- }
240
-
241
- reject(record.arg);
242
- }
243
-
244
- var previousPromise;
245
-
246
- this._invoke = function (method, arg) {
247
- function callInvokeWithMethodAndArg() {
248
- return new PromiseImpl(function (resolve, reject) {
249
- invoke(method, arg, resolve, reject);
250
- });
251
- }
252
-
253
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
254
- };
255
- }
256
-
257
- function maybeInvokeDelegate(delegate, context) {
258
- var method = delegate.iterator[context.method];
259
-
260
- if (undefined === method) {
261
- if (context.delegate = null, "throw" === context.method) {
262
- if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
263
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
264
- }
265
-
266
- return ContinueSentinel;
267
- }
268
-
269
- var record = tryCatch(method, delegate.iterator, context.arg);
270
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
271
- var info = record.arg;
272
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
273
- }
274
-
275
- function pushTryEntry(locs) {
276
- var entry = {
277
- tryLoc: locs[0]
278
- };
279
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
280
- }
281
-
282
- function resetTryEntry(entry) {
283
- var record = entry.completion || {};
284
- record.type = "normal", delete record.arg, entry.completion = record;
285
- }
286
-
287
- function Context(tryLocsList) {
288
- this.tryEntries = [{
289
- tryLoc: "root"
290
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
291
- }
292
-
293
- function values(iterable) {
294
- if (iterable) {
295
- var iteratorMethod = iterable[iteratorSymbol];
296
- if (iteratorMethod) return iteratorMethod.call(iterable);
297
- if ("function" == typeof iterable.next) return iterable;
298
-
299
- if (!isNaN(iterable.length)) {
300
- var i = -1,
301
- next = function next() {
302
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
303
-
304
- return next.value = undefined, next.done = !0, next;
305
- };
306
-
307
- return next.next = next;
308
- }
309
- }
310
-
311
- return {
312
- next: doneResult
313
- };
314
- }
315
-
316
- function doneResult() {
317
- return {
318
- value: undefined,
319
- done: !0
320
- };
321
- }
322
-
323
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
324
- var ctor = "function" == typeof genFun && genFun.constructor;
325
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
326
- }, exports.mark = function (genFun) {
327
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
328
- }, exports.awrap = function (arg) {
329
- return {
330
- __await: arg
331
- };
332
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
333
- return this;
334
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
335
- void 0 === PromiseImpl && (PromiseImpl = Promise);
336
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
337
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
338
- return result.done ? result.value : iter.next();
339
- });
340
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
341
- return this;
342
- }), define(Gp, "toString", function () {
343
- return "[object Generator]";
344
- }), exports.keys = function (object) {
345
- var keys = [];
346
-
347
- for (var key in object) keys.push(key);
348
-
349
- return keys.reverse(), function next() {
350
- for (; keys.length;) {
351
- var key = keys.pop();
352
- if (key in object) return next.value = key, next.done = !1, next;
353
- }
354
-
355
- return next.done = !0, next;
356
- };
357
- }, exports.values = values, Context.prototype = {
358
- constructor: Context,
359
- reset: function (skipTempReset) {
360
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
361
- },
362
- stop: function () {
363
- this.done = !0;
364
- var rootRecord = this.tryEntries[0].completion;
365
- if ("throw" === rootRecord.type) throw rootRecord.arg;
366
- return this.rval;
367
- },
368
- dispatchException: function (exception) {
369
- if (this.done) throw exception;
370
- var context = this;
371
-
372
- function handle(loc, caught) {
373
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
374
- }
375
-
376
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
377
- var entry = this.tryEntries[i],
378
- record = entry.completion;
379
- if ("root" === entry.tryLoc) return handle("end");
380
-
381
- if (entry.tryLoc <= this.prev) {
382
- var hasCatch = hasOwn.call(entry, "catchLoc"),
383
- hasFinally = hasOwn.call(entry, "finallyLoc");
384
-
385
- if (hasCatch && hasFinally) {
386
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
387
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
388
- } else if (hasCatch) {
389
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
390
- } else {
391
- if (!hasFinally) throw new Error("try statement without catch or finally");
392
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
393
- }
394
- }
395
- }
396
- },
397
- abrupt: function (type, arg) {
398
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
399
- var entry = this.tryEntries[i];
400
-
401
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
402
- var finallyEntry = entry;
403
- break;
404
- }
405
- }
406
-
407
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
408
- var record = finallyEntry ? finallyEntry.completion : {};
409
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
410
- },
411
- complete: function (record, afterLoc) {
412
- if ("throw" === record.type) throw record.arg;
413
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
414
- },
415
- finish: function (finallyLoc) {
416
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
417
- var entry = this.tryEntries[i];
418
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
419
- }
420
- },
421
- catch: function (tryLoc) {
422
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
423
- var entry = this.tryEntries[i];
424
-
425
- if (entry.tryLoc === tryLoc) {
426
- var record = entry.completion;
427
-
428
- if ("throw" === record.type) {
429
- var thrown = record.arg;
430
- resetTryEntry(entry);
431
- }
432
-
433
- return thrown;
434
- }
435
- }
436
-
437
- throw new Error("illegal catch attempt");
438
- },
439
- delegateYield: function (iterable, resultName, nextLoc) {
440
- return this.delegate = {
441
- iterator: values(iterable),
442
- resultName: resultName,
443
- nextLoc: nextLoc
444
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
445
- }
446
- }, exports;
447
- }
448
-
449
- function _typeof(obj) {
450
- "@babel/helpers - typeof";
451
-
452
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
453
- return typeof obj;
454
- } : function (obj) {
455
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
456
- }, _typeof(obj);
457
- }
458
-
459
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
460
- try {
461
- var info = gen[key](arg);
462
- var value = info.value;
463
- } catch (error) {
464
- reject(error);
465
- return;
466
- }
467
-
468
- if (info.done) {
469
- resolve(value);
470
- } else {
471
- Promise.resolve(value).then(_next, _throw);
472
- }
473
- }
474
-
475
- function _asyncToGenerator(fn) {
476
- return function () {
477
- var self = this,
478
- args = arguments;
479
- return new Promise(function (resolve, reject) {
480
- var gen = fn.apply(self, args);
481
-
482
- function _next(value) {
483
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
484
- }
485
-
486
- function _throw(err) {
487
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
488
- }
489
-
490
- _next(undefined);
491
- });
492
- };
493
- }
494
-
495
- function _defineProperty(obj, key, value) {
496
- if (key in obj) {
497
- Object.defineProperty(obj, key, {
498
- value: value,
499
- enumerable: true,
500
- configurable: true,
501
- writable: true
502
- });
503
- } else {
504
- obj[key] = value;
505
- }
506
-
507
- return obj;
508
- }
509
-
510
- function _loadChildren(obj, list) {
511
- var arr = list.filter(function (x) {
512
- return x.parentId == obj.id;
513
- });
514
- if (!arr.length) return;
515
- obj.children = arr;
516
- obj.children.forEach(function (x) {
517
- _loadChildren(x, list);
518
- });
519
- return obj;
520
- }
521
- function tranListToTreeData(list) {
522
- var results = list.filter(function (x) {
523
- return x.parentId == null;
524
- });
525
- results.forEach(function (x) {
526
- return _loadChildren(x, list);
527
- });
528
- return results;
529
- }
530
- var isObject = function isObject(val) {
531
- return val !== null && _typeof(val) === "object";
532
- };
533
- var assign = Object.assign;
534
- function filterOptionHeadle(input, option) {
535
- return option.label && option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;
536
- }
537
-
538
- var BASE_URL = "https://basis.nacho.cn";
539
- var DEFIND_OPTION = {
540
- headers: {
541
- "Content-Type": "application/json;charset=UTF-8",
542
- "Accept-Language": "zh-Hans",
543
- authorization: localStorage.getItem("token") ? "Bearer " + localStorage.getItem("token") : null
544
- },
545
- cache: "no-cache",
546
- credentials: "include",
547
- responseType: "JSON",
548
- mode: "cors"
549
- };
550
- var API_OPTION = {
551
- getIVMrpOrgDropdown: {
552
- url: "/api/identity/users/allOrganizationByUser",
553
- option: _objectSpread2({
554
- method: "GET"
555
- }, DEFIND_OPTION)
556
- },
557
- getIVMrpProdBaseDropdown: {
558
- url: "/api/basis-management/production-base/all",
559
- option: _objectSpread2({
560
- method: "GET"
561
- }, DEFIND_OPTION)
562
- },
563
- getIVMrpLineDropdown: {
564
- url: "/api/basis-management/line/all",
565
- option: _objectSpread2({
566
- method: "GET"
567
- }, DEFIND_OPTION)
568
- },
569
- getIVMrpSetofbookDropdown: {
570
- url: "/api/basis-management/setOfBook/all",
571
- option: _objectSpread2({
572
- method: "GET"
573
- }, DEFIND_OPTION)
574
- },
575
- getIVMrpPostDropdown: {
576
- url: "/api/identity/users/allPosition",
577
- option: _objectSpread2({
578
- method: "GET"
579
- }, DEFIND_OPTION)
580
- }
581
- };
582
- var formatHTTP = function formatHTTP(fetch) {
583
- return new Promise(function (resolve, reject) {
584
- fetch.then(function (data) {
585
- data.json().then(function (data) {
586
- return resolve(data);
587
- })["catch"](function (err) {
588
- return reject(err);
589
- });
590
- })["catch"](function (err) {
591
- return reject(err);
592
- });
593
- });
594
- };
595
- var formatUrl = function formatUrl(base, api, params) {
596
- if (!isObject(params)) return base + api;
597
- if (Object.keys(params).length === 0) return base + api;
598
- var urlTemparr = [];
599
-
600
- for (var k in params) {
601
- urlTemparr.push("".concat(k, "=").concat(params[k]));
602
- }
603
-
604
- return base + api + "?" + urlTemparr.join("&");
605
- };
606
-
607
- var _hoisted_1$4 = /*#__PURE__*/createElementVNode("div", {
608
- "class": "text-[#0000006D] text-[14px]"
609
- }, "所属组织", -1
610
- /* HOISTED */
611
- );
612
- /**
613
- * 组件定义-------------------------------------
614
- * */
615
-
616
- var script$4 = /*#__PURE__*/defineComponent({
617
- __name: 'IVMrpOrgDropdown',
618
- props: {
619
- value: {
620
- type: null,
621
- required: true
622
- },
623
- params: {
624
- type: Object,
625
- required: false
626
- },
627
- data: {
628
- type: Object,
629
- required: false
630
- },
631
- replaceFields: {
632
- type: null,
633
- required: false,
634
- "default": function _default() {
635
- return {
636
- children: "children",
637
- label: "displayName",
638
- key: "id",
639
- value: "id"
640
- };
641
- }
642
- }
643
- },
644
- emits: ["update:value"],
645
- setup: function setup(__props, _ref) {
646
- var emit = _ref.emit;
647
- var props = __props;
648
- /**
649
- * 获取数据-------------------------------------
650
- * */
651
-
652
- var dataV = ref();
653
-
654
- var getData = /*#__PURE__*/function () {
655
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
656
- var _option,
657
- _a,
658
- _yield$formatHTTP,
659
- items,
660
- _args = arguments;
661
-
662
- return _regeneratorRuntime().wrap(function _callee$(_context) {
663
- while (1) {
664
- switch (_context.prev = _context.next) {
665
- case 0:
666
- _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
667
- _context.next = 3;
668
- return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpOrgDropdown.url, _option.params), assign({
669
- data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
670
- }, API_OPTION.getIVMrpOrgDropdown.option)));
671
-
672
- case 3:
673
- _yield$formatHTTP = _context.sent;
674
- items = _yield$formatHTTP.items;
675
- dataV.value = tranListToTreeData(items);
676
-
677
- case 6:
678
- case "end":
679
- return _context.stop();
680
- }
681
- }
682
- }, _callee);
683
- }));
684
-
685
- return function getData() {
686
- return _ref2.apply(this, arguments);
687
- };
688
- }();
689
-
690
- var inputV = computed({
691
- get: function get() {
692
- return props.value;
693
- },
694
- set: function set(value) {
695
- emit("update:value", value);
696
- }
697
- });
698
- /**
699
- * 侦听器-------------------------------------
700
- * */
701
-
702
- watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
703
- var _a, _b;
704
-
705
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
706
- while (1) {
707
- switch (_context2.prev = _context2.next) {
708
- case 0:
709
- // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
710
- getData({
711
- params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
712
- type: 1
713
- }),
714
- data: (_b = props.data) !== null && _b !== void 0 ? _b : null
715
- });
716
-
717
- case 1:
718
- case "end":
719
- return _context2.stop();
720
- }
721
- }
722
- }, _callee2);
723
- })));
724
- return function (_ctx, _cache) {
725
- var _component_a_tree_select = resolveComponent("a-tree-select");
726
-
727
- var _component_a_form_item = resolveComponent("a-form-item");
728
-
729
- return openBlock(), createBlock(_component_a_form_item, {
730
- name: "organizationId",
731
- rules: [{
732
- required: true,
733
- message: '请选择所属组织'
734
- }]
735
- }, {
736
- label: withCtx(function () {
737
- return [_hoisted_1$4];
738
- }),
739
- "default": withCtx(function () {
740
- return [createVNode(_component_a_tree_select, {
741
- value: unref(inputV),
742
- "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
743
- return isRef(inputV) ? inputV.value = $event : null;
744
- }),
745
- "tree-data": dataV.value,
746
- getPopupContainer: function getPopupContainer(triggerNode) {
747
- return triggerNode.parentNode;
748
- },
749
- placeholder: "请选择",
750
- showArrow: "",
751
- showSearch: "",
752
- "filter-option": unref(filterOptionHeadle),
753
- treeDefaultExpandAll: "",
754
- style: {
755
- "width": "300px"
756
- },
757
- replaceFields: __props.replaceFields
758
- }, null, 8
759
- /* PROPS */
760
- , ["value", "tree-data", "getPopupContainer", "filter-option", "replaceFields"])];
761
- }),
762
- _: 1
763
- /* STABLE */
764
-
765
- });
766
- };
767
- }
768
- });
769
-
770
- script$4.__file = "src/business-ui/component/IVMrpOrgDropdown.vue";
771
-
772
- var _hoisted_1$3 = /*#__PURE__*/createElementVNode("div", {
773
- "class": "text-[#0000006D] text-[14px]"
774
- }, "所属基地", -1
775
- /* HOISTED */
776
- );
777
- /**
778
- * 组件定义-------------------------------------
779
- * */
780
-
781
- var script$3 = /*#__PURE__*/defineComponent({
782
- __name: 'IVMrpProdBaseDropdown',
783
- props: {
784
- value: {
785
- type: null,
786
- required: true
787
- },
788
- params: {
789
- type: Object,
790
- required: false
791
- },
792
- data: {
793
- type: Object,
794
- required: false
795
- },
796
- fieldNames: {
797
- type: null,
798
- required: false,
799
- "default": function _default() {
800
- return {
801
- label: "name",
802
- value: "id"
803
- };
804
- }
805
- }
806
- },
807
- emits: ["update:value"],
808
- setup: function setup(__props, _ref) {
809
- var emit = _ref.emit;
810
- var props = __props;
811
- /**
812
- * 获取数据-------------------------------------
813
- * */
814
-
815
- var dataV = ref();
816
-
817
- var getData = /*#__PURE__*/function () {
818
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
819
- var _option,
820
- _a,
821
- _args = arguments;
822
-
823
- return _regeneratorRuntime().wrap(function _callee$(_context) {
824
- while (1) {
825
- switch (_context.prev = _context.next) {
826
- case 0:
827
- _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
828
- _context.next = 3;
829
- return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpProdBaseDropdown.url, _option.params), assign({
830
- data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
831
- }, API_OPTION.getIVMrpProdBaseDropdown.option)));
832
-
833
- case 3:
834
- dataV.value = _context.sent;
835
-
836
- case 4:
837
- case "end":
838
- return _context.stop();
839
- }
840
- }
841
- }, _callee);
842
- }));
843
-
844
- return function getData() {
845
- return _ref2.apply(this, arguments);
846
- };
847
- }();
848
-
849
- var inputV = computed({
850
- get: function get() {
851
- return props.value;
852
- },
853
- set: function set(value) {
854
- emit("update:value", value);
855
- }
856
- });
857
- /**
858
- * 侦听器-------------------------------------
859
- * */
860
-
861
- watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
862
- var _a, _b;
863
-
864
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
865
- while (1) {
866
- switch (_context2.prev = _context2.next) {
867
- case 0:
868
- // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
869
- getData({
870
- params: (_a = props.params) !== null && _a !== void 0 ? _a : null,
871
- data: (_b = props.data) !== null && _b !== void 0 ? _b : null
872
- });
873
-
874
- case 1:
875
- case "end":
876
- return _context2.stop();
877
- }
878
- }
879
- }, _callee2);
880
- })));
881
- return function (_ctx, _cache) {
882
- var _component_a_select = resolveComponent("a-select");
883
-
884
- var _component_a_form_item = resolveComponent("a-form-item");
885
-
886
- return openBlock(), createBlock(_component_a_form_item, {
887
- name: "organizationIds",
888
- "wrapper-col": {
889
- span: 8
890
- },
891
- rules: [{
892
- required: true,
893
- message: '请选择所属基地'
894
- }]
895
- }, {
896
- label: withCtx(function () {
897
- return [_hoisted_1$3];
898
- }),
899
- "default": withCtx(function () {
900
- return [createVNode(_component_a_select, {
901
- getPopupContainer: function getPopupContainer(triggerNode) {
902
- return triggerNode.parentNode;
903
- },
904
- value: unref(inputV),
905
- "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
906
- return isRef(inputV) ? inputV.value = $event : null;
907
- }),
908
- mode: "multiple",
909
- style: {
910
- "width": "100%"
911
- },
912
- placeholder: "请选择",
913
- options: dataV.value,
914
- fieldNames: __props.fieldNames,
915
- showSearch: "",
916
- "filter-option": unref(filterOptionHeadle)
917
- }, null, 8
918
- /* PROPS */
919
- , ["getPopupContainer", "value", "options", "fieldNames", "filter-option"])];
920
- }),
921
- _: 1
922
- /* STABLE */
923
-
924
- });
925
- };
926
- }
927
- });
928
-
929
- script$3.__file = "src/business-ui/component/IVMrpProdBaseDropdown.vue";
930
-
931
- var _hoisted_1$2 = /*#__PURE__*/createElementVNode("div", {
932
- "class": "text-[#0000006D] text-[14px]"
933
- }, "所属条线", -1
934
- /* HOISTED */
935
- );
936
- /**
937
- * 组件定义-------------------------------------
938
- * */
939
-
940
- var script$2 = /*#__PURE__*/defineComponent({
941
- __name: 'IVMrpLineDropdown',
942
- props: {
943
- value: {
944
- type: null,
945
- required: true
946
- },
947
- params: {
948
- type: Object,
949
- required: false
950
- },
951
- data: {
952
- type: Object,
953
- required: false
954
- },
955
- fieldNames: {
956
- type: null,
957
- required: false,
958
- "default": function _default() {
959
- return {
960
- label: "displayName",
961
- value: "id"
962
- };
963
- }
964
- }
965
- },
966
- emits: ["update:value"],
967
- setup: function setup(__props, _ref) {
968
- var emit = _ref.emit;
969
- var props = __props;
970
- /**
971
- * 获取数据-------------------------------------
972
- * */
973
-
974
- var dataV = ref();
975
-
976
- var getData = /*#__PURE__*/function () {
977
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
978
- var _option,
979
- _a,
980
- _yield$formatHTTP,
981
- items,
982
- _args = arguments;
983
-
984
- return _regeneratorRuntime().wrap(function _callee$(_context) {
985
- while (1) {
986
- switch (_context.prev = _context.next) {
987
- case 0:
988
- _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
989
- _context.next = 3;
990
- return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpLineDropdown.url, _option.params), assign({
991
- data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
992
- }, API_OPTION.getIVMrpLineDropdown.option)));
993
-
994
- case 3:
995
- _yield$formatHTTP = _context.sent;
996
- items = _yield$formatHTTP.items;
997
- dataV.value = items;
998
-
999
- case 6:
1000
- case "end":
1001
- return _context.stop();
1002
- }
1003
- }
1004
- }, _callee);
1005
- }));
1006
-
1007
- return function getData() {
1008
- return _ref2.apply(this, arguments);
1009
- };
1010
- }();
1011
-
1012
- var inputV = computed({
1013
- get: function get() {
1014
- return props.value;
1015
- },
1016
- set: function set(value) {
1017
- emit("update:value", value);
1018
- }
1019
- });
1020
- /**
1021
- * 侦听器-------------------------------------
1022
- * */
1023
-
1024
- watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
1025
- var _a, _b;
1026
-
1027
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1028
- while (1) {
1029
- switch (_context2.prev = _context2.next) {
1030
- case 0:
1031
- // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
1032
- getData({
1033
- params: (_a = props.params) !== null && _a !== void 0 ? _a : null,
1034
- data: (_b = props.data) !== null && _b !== void 0 ? _b : null
1035
- });
1036
-
1037
- case 1:
1038
- case "end":
1039
- return _context2.stop();
1040
- }
1041
- }
1042
- }, _callee2);
1043
- })));
1044
- return function (_ctx, _cache) {
1045
- var _component_a_select = resolveComponent("a-select");
1046
-
1047
- var _component_a_form_item = resolveComponent("a-form-item");
1048
-
1049
- return openBlock(), createBlock(_component_a_form_item, {
1050
- name: "lineIds",
1051
- "wrapper-col": {
1052
- span: 8
1053
- },
1054
- rules: [{
1055
- required: true,
1056
- message: '请选择所属条线'
1057
- }]
1058
- }, {
1059
- label: withCtx(function () {
1060
- return [_hoisted_1$2];
1061
- }),
1062
- "default": withCtx(function () {
1063
- return [createVNode(_component_a_select, {
1064
- getPopupContainer: function getPopupContainer(triggerNode) {
1065
- return triggerNode.parentNode;
1066
- },
1067
- value: unref(inputV),
1068
- "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
1069
- return isRef(inputV) ? inputV.value = $event : null;
1070
- }),
1071
- mode: "multiple",
1072
- style: {
1073
- "width": "100%"
1074
- },
1075
- placeholder: "请选择",
1076
- options: dataV.value,
1077
- fieldNames: __props.fieldNames,
1078
- showSearch: "",
1079
- "filter-option": unref(filterOptionHeadle)
1080
- }, null, 8
1081
- /* PROPS */
1082
- , ["getPopupContainer", "value", "options", "fieldNames", "filter-option"])];
1083
- }),
1084
- _: 1
1085
- /* STABLE */
1086
-
1087
- });
1088
- };
1089
- }
1090
- });
1091
-
1092
- script$2.__file = "src/business-ui/component/IVMrpLineDropdown.vue";
1093
-
1094
- var _hoisted_1$1 = /*#__PURE__*/createElementVNode("div", {
1095
- "class": "text-[#0000006D] text-[14px]"
1096
- }, "所属账套", -1
1097
- /* HOISTED */
1098
- );
1099
- /**
1100
- * 组件定义-------------------------------------
1101
- * */
1102
-
1103
- var script$1 = /*#__PURE__*/defineComponent({
1104
- __name: 'IVMrpSetofbookDropdown',
1105
- props: {
1106
- value: {
1107
- type: null,
1108
- required: true
1109
- },
1110
- params: {
1111
- type: Object,
1112
- required: false
1113
- },
1114
- data: {
1115
- type: Object,
1116
- required: false
1117
- },
1118
- replaceFields: {
1119
- type: null,
1120
- required: false,
1121
- "default": function _default() {
1122
- return {
1123
- children: "children",
1124
- label: "name",
1125
- key: "id",
1126
- value: "id"
1127
- };
1128
- }
1129
- },
1130
- multiple: {
1131
- type: Boolean,
1132
- required: false,
1133
- "default": true
1134
- }
1135
- },
1136
- emits: ["update:value"],
1137
- setup: function setup(__props, _ref) {
1138
- var emit = _ref.emit;
1139
- var props = __props;
1140
- /**
1141
- * 获取数据-------------------------------------
1142
- * */
1143
-
1144
- var dataV = ref();
1145
-
1146
- var getData = /*#__PURE__*/function () {
1147
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
1148
- var _option,
1149
- _a,
1150
- _yield$formatHTTP,
1151
- items,
1152
- _args = arguments;
1153
-
1154
- return _regeneratorRuntime().wrap(function _callee$(_context) {
1155
- while (1) {
1156
- switch (_context.prev = _context.next) {
1157
- case 0:
1158
- _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
1159
- _context.next = 3;
1160
- return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpSetofbookDropdown.url, _option.params), assign({
1161
- data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
1162
- }, API_OPTION.getIVMrpSetofbookDropdown.option)));
1163
-
1164
- case 3:
1165
- _yield$formatHTTP = _context.sent;
1166
- items = _yield$formatHTTP.items;
1167
- dataV.value = tranListToTreeData(items);
1168
-
1169
- case 6:
1170
- case "end":
1171
- return _context.stop();
1172
- }
1173
- }
1174
- }, _callee);
1175
- }));
1176
-
1177
- return function getData() {
1178
- return _ref2.apply(this, arguments);
1179
- };
1180
- }();
1181
-
1182
- var inputV = computed({
1183
- get: function get() {
1184
- return props.value;
1185
- },
1186
- set: function set(value) {
1187
- emit("update:value", value);
1188
- }
1189
- });
1190
- /**
1191
- * 侦听器-------------------------------------
1192
- * */
1193
-
1194
- watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
1195
- var _a, _b;
1196
-
1197
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1198
- while (1) {
1199
- switch (_context2.prev = _context2.next) {
1200
- case 0:
1201
- // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
1202
- getData({
1203
- params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
1204
- type: 1
1205
- }),
1206
- data: (_b = props.data) !== null && _b !== void 0 ? _b : null
1207
- });
1208
-
1209
- case 1:
1210
- case "end":
1211
- return _context2.stop();
1212
- }
1213
- }
1214
- }, _callee2);
1215
- })));
1216
- return function (_ctx, _cache) {
1217
- var _component_a_tree_select = resolveComponent("a-tree-select");
1218
-
1219
- var _component_a_form_item = resolveComponent("a-form-item");
1220
-
1221
- return openBlock(), createBlock(_component_a_form_item, {
1222
- name: "setOfBookIds",
1223
- "wrapper-col": {
1224
- span: 8
1225
- },
1226
- rules: [{
1227
- required: true,
1228
- message: '请选择所属账套'
1229
- }]
1230
- }, {
1231
- label: withCtx(function () {
1232
- return [_hoisted_1$1];
1233
- }),
1234
- "default": withCtx(function () {
1235
- return [createVNode(_component_a_tree_select, {
1236
- value: unref(inputV),
1237
- "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
1238
- return isRef(inputV) ? inputV.value = $event : null;
1239
- }),
1240
- "tree-data": dataV.value,
1241
- getPopupContainer: function getPopupContainer(triggerNode) {
1242
- return triggerNode.parentNode;
1243
- },
1244
- placeholder: "请选择",
1245
- showArrow: "",
1246
- showSearch: "",
1247
- "filter-option": unref(filterOptionHeadle),
1248
- multiple: __props.multiple,
1249
- treeDefaultExpandAll: "",
1250
- style: {
1251
- "width": "300px"
1252
- },
1253
- replaceFields: __props.replaceFields
1254
- }, null, 8
1255
- /* PROPS */
1256
- , ["value", "tree-data", "getPopupContainer", "filter-option", "multiple", "replaceFields"])];
1257
- }),
1258
- _: 1
1259
- /* STABLE */
1260
-
1261
- });
1262
- };
1263
- }
1264
- });
1265
-
1266
- script$1.__file = "src/business-ui/component/IVMrpSetofbookDropdown.vue";
1267
-
1268
- var _hoisted_1 = /*#__PURE__*/createElementVNode("div", {
1269
- "class": "text-[#0000006D] text-[14px]"
1270
- }, "所属条线", -1
1271
- /* HOISTED */
1272
- );
1273
-
1274
- var _hoisted_2 = /*#__PURE__*/createElementVNode("div", {
1275
- "class": "text-[#0000006D] text-[14px]"
1276
- }, "岗位", -1
1277
- /* HOISTED */
1278
- );
1279
- /**
1280
- * 组件定义-------------------------------------
1281
- * */
1282
-
1283
- var script = /*#__PURE__*/defineComponent({
1284
- __name: 'IVMrpPostDropdown',
1285
- props: {
1286
- value: {
1287
- type: null,
1288
- required: true
1289
- },
1290
- params: {
1291
- type: Object,
1292
- required: false
1293
- },
1294
- data: {
1295
- type: Object,
1296
- required: false
1297
- },
1298
- fieldNames: {
1299
- type: null,
1300
- required: false,
1301
- "default": function _default() {
1302
- return {
1303
- label: "name",
1304
- value: "id"
1305
- };
1306
- }
1307
- }
1308
- },
1309
- emits: ["update:value"],
1310
- setup: function setup(__props, _ref) {
1311
- var emit = _ref.emit;
1312
- var props = __props;
1313
- /**
1314
- * 获取数据-------------------------------------
1315
- * */
1316
-
1317
- var dataV = ref();
1318
-
1319
- var getData = /*#__PURE__*/function () {
1320
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
1321
- var _option,
1322
- _a,
1323
- _yield$formatHTTP,
1324
- items,
1325
- _args = arguments;
1326
-
1327
- return _regeneratorRuntime().wrap(function _callee$(_context) {
1328
- while (1) {
1329
- switch (_context.prev = _context.next) {
1330
- case 0:
1331
- _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
1332
- _context.next = 3;
1333
- return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpPostDropdown.url, _option.params), assign({
1334
- data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
1335
- }, API_OPTION.getIVMrpPostDropdown.option)));
1336
-
1337
- case 3:
1338
- _yield$formatHTTP = _context.sent;
1339
- items = _yield$formatHTTP.items;
1340
- dataV.value = items;
1341
-
1342
- case 6:
1343
- case "end":
1344
- return _context.stop();
1345
- }
1346
- }
1347
- }, _callee);
1348
- }));
1349
-
1350
- return function getData() {
1351
- return _ref2.apply(this, arguments);
1352
- };
1353
- }();
1354
-
1355
- var inputV = computed({
1356
- get: function get() {
1357
- return props.value;
1358
- },
1359
- set: function set(value) {
1360
- emit("update:value", value);
1361
- }
1362
- });
1363
- /**
1364
- * 侦听器-------------------------------------
1365
- * */
1366
-
1367
- watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
1368
- var _a, _b;
1369
-
1370
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1371
- while (1) {
1372
- switch (_context2.prev = _context2.next) {
1373
- case 0:
1374
- // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
1375
- getData({
1376
- params: (_a = props.params) !== null && _a !== void 0 ? _a : null,
1377
- data: (_b = props.data) !== null && _b !== void 0 ? _b : null
1378
- });
1379
-
1380
- case 1:
1381
- case "end":
1382
- return _context2.stop();
1383
- }
1384
- }
1385
- }, _callee2);
1386
- })));
1387
- return function (_ctx, _cache) {
1388
- var _component_a_select = resolveComponent("a-select");
1389
-
1390
- var _component_a_form_item = resolveComponent("a-form-item");
1391
-
1392
- return openBlock(), createElementBlock(Fragment, null, [createVNode(_component_a_form_item, {
1393
- name: "lineIds",
1394
- "wrapper-col": {
1395
- span: 8
1396
- },
1397
- rules: [{
1398
- required: true,
1399
- message: '请选择所属条线'
1400
- }]
1401
- }, {
1402
- label: withCtx(function () {
1403
- return [_hoisted_1];
1404
- }),
1405
- "default": withCtx(function () {
1406
- return [createVNode(_component_a_select, {
1407
- getPopupContainer: function getPopupContainer(triggerNode) {
1408
- return triggerNode.parentNode;
1409
- },
1410
- value: unref(inputV),
1411
- "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
1412
- return isRef(inputV) ? inputV.value = $event : null;
1413
- }),
1414
- mode: "multiple",
1415
- style: {
1416
- "width": "100%"
1417
- },
1418
- placeholder: "请选择",
1419
- options: dataV.value,
1420
- fieldNames: __props.fieldNames
1421
- }, null, 8
1422
- /* PROPS */
1423
- , ["getPopupContainer", "value", "options", "fieldNames"])];
1424
- }),
1425
- _: 1
1426
- /* STABLE */
1427
-
1428
- }), createVNode(_component_a_form_item, {
1429
- name: "positionId",
1430
- rules: [{
1431
- required: true,
1432
- message: '请选择岗位'
1433
- }]
1434
- }, {
1435
- label: withCtx(function () {
1436
- return [_hoisted_2];
1437
- }),
1438
- "default": withCtx(function () {
1439
- return [createVNode(_component_a_select, {
1440
- value: unref(inputV),
1441
- "onUpdate:value": _cache[1] || (_cache[1] = function ($event) {
1442
- return isRef(inputV) ? inputV.value = $event : null;
1443
- }),
1444
- getPopupContainer: function getPopupContainer(triggerNode) {
1445
- return triggerNode.parentNode;
1446
- },
1447
- allowClear: "",
1448
- style: {
1449
- "width": "300px"
1450
- },
1451
- placeholder: "请选择",
1452
- showSearch: "",
1453
- showArrow: "",
1454
- options: dataV.value,
1455
- "filter-option": unref(filterOptionHeadle),
1456
- fieldNames: __props.fieldNames
1457
- }, null, 8
1458
- /* PROPS */
1459
- , ["value", "getPopupContainer", "options", "filter-option", "fieldNames"])];
1460
- }),
1461
- _: 1
1462
- /* STABLE */
1463
-
1464
- })], 64
1465
- /* STABLE_FRAGMENT */
1466
- );
1467
- };
1468
- }
1469
- });
1470
-
1471
- script.__file = "src/business-ui/component/IVMrpPostDropdown.vue";
1472
-
1473
- /*
1474
- * @Author: Mr.Cong Wei
1475
- * @Date: 2022-08-08 18:47:06
1476
- * @LastEditTime: 2022-08-11 10:33:03
1477
- */
1478
- var components = [script$5, script$4, script$3, script$2, script$1, script];
1479
- installComponents(); // 单独引用
1480
-
1481
- function installComponents() {
1482
- components.forEach(function (component) {
1483
- component.install = function (app) {
1484
- app.component(component.name, component);
1485
- };
1486
- });
1487
- } // 全局引用
1488
-
1489
-
1490
- var install = function install(app) {
1491
- components.forEach(function (component) {
1492
- app.component(component.name, component);
1493
- });
1494
- };
1495
-
1496
- var cAll = {
1497
- install: install
1498
- };
1499
-
1500
- export { script$2 as IVMrpLineDropdown, script$5 as IVMrpModal, script$4 as IVMrpOrgDropdown, script as IVMrpPostDropdown, script$3 as IVMrpProdBaseDropdown, script$1 as IVMrpSetofbookDropdown, cAll as default };
1
+ import{defineComponent as e,ref as t,resolveComponent as n,openBlock as r,createBlock as o,withCtx as a,renderSlot as i,createVNode as u,onMounted as l,onBeforeUnmount as c,createElementBlock as s,Fragment as p,createCommentVNode as d,createElementVNode as f,normalizeStyle as v,renderList as h,normalizeClass as g,createTextVNode as m,toDisplayString as y,unref as A,pushScopeId as w,popScopeId as b,createStaticVNode as x,reactive as E,watch as k,computed as C,watchEffect as Q,isRef as I,onBeforeMount as S,withKeys as B,withModifiers as N}from"vue";var D=e({__name:"IVMrpModal",props:{show:{type:Boolean,default:!1},removePadding:{type:Boolean,default:!0}},emits:["update:show","cancelHandle"],setup:function(e,l){var c=l.emit,s=t(e.show);function p(){c("update:show",!1),c("cancelHandle",!1)}return function(t,l){var c=n("close-circle-outlined"),d=n("a-modal");return r(),o(d,{wrapClassName:[e.removePadding?"":"not-padding","module-class modal-components"],visible:s.value,"onUpdate:visible":l[0]||(l[0]=function(e){return s.value=e}),onCancel:p,destroyOnClose:"",footer:null},{title:a((function(){return[i(t.$slots,"title")]})),closeIcon:a((function(){return[u(c,{class:"text-[#006ab2] text-[30px]"})]})),default:a((function(){return[i(t.$slots,"body")]})),_:3},8,["wrapClassName","visible"])}}});function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(){
2
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
3
+ j=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),i=new E(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return C()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var u=w(i,n);if(u){if(u===s)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,i),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var s={};function p(){}function d(){}function f(){}var v={};u(v,o,(function(){return this}));var h=Object.getPrototypeOf,g=h&&h(h(k([])));g&&g!==t&&n.call(g,o)&&(v=g);var m=f.prototype=p.prototype=Object.create(v);function y(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function r(o,a,i,u){var l=c(e[o],e,a);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,i,u)}),(function(e){r("throw",e,i,u)})):t.resolve(p).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,u)}))}u(l.arg)}var o;this._invoke=function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return s;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,s;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,s):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function k(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=f,u(m,"constructor",f),u(f,"constructor",d),d.displayName=u(f,i,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,i,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},y(A.prototype),u(A.prototype,a,(function(){return this})),e.AsyncIterator=A,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new A(l(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},y(m),u(m,i,"Generator"),u(m,o,(function(){return this})),u(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=k,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,s):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),s},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),s}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),s}},e}function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function O(e,t,n,r,o,a,i){try{var u=e[a](i),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,o)}function _(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){O(a,r,o,i,u,"next",e)}function u(e){O(a,r,o,i,u,"throw",e)}i(void 0)}))}}function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}D.__file="src/function-ui/component/IVMrpModal.vue";var U=function(e){return w("data-v-2dfcb17e"),e=e(),b(),e},J={key:0,id:"top"},V={class:"flex items-center justify-center"},K={key:0,style:{color:"#ff0066"}},z={key:0},H=U((function(){return f("div",{class:"h-2 flex items-center"},[f("span",{class:"bg-[#d9d9d9] h-[1px] w-full"})],-1)})),F={class:"flex items-center justify-between h-1/2"},T={key:0,style:{color:"#ff0066"}},R={class:"mrpTable"},G={class:"relative w-full mb-[24px]",style:{"table-layout":"fixed"}},Y={class:"flex items-center justify-center"},Z={key:0,style:{color:"#ff0066"}},X={key:1},W=U((function(){return f("div",{class:"h-2 flex items-center"},[f("span",{class:"bg-[#d9d9d9] h-[1px] w-full"})],-1)})),$={class:"flex items-center justify-between h-1/2"},ee={key:0,style:{color:"#ff0066"}},te={key:0},ne={key:1},re={key:2,class:"flex justify-center items-center relative"},oe={key:1,class:"table-footer"},ae=[x('<div class="centent" data-v-2dfcb17e><svg class="ant-empty-img-simple" width="64" height="41" viewBox="0 0 64 41" data-v-2dfcb17e><g transform="translate(0 1)" fill="none" fill-rule="evenodd" data-v-2dfcb17e><ellipse class="ant-empty-img-simple-ellipse" fill="#F5F5F5" cx="32" cy="33" rx="32" ry="7" data-v-2dfcb17e></ellipse><g class="ant-empty-img-simple-g" fill-rule="nonzero" stroke="#D9D9D9" data-v-2dfcb17e><path d="M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" data-v-2dfcb17e></path><path d="M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z" fill="#FAFAFA" class="ant-empty-img-simple-path" data-v-2dfcb17e></path></g></g></svg> 没有数据 </div>',1)],ie=e({__name:"IVMrpTable",props:{data:{type:null,required:!0},contractExecDocList:{type:Array,required:!0},currentPages:{type:Number,required:!0},totalPages:{type:Number,required:!0},formData:{type:Object,required:!0},col:{type:Boolean,required:!1},setHeight:{type:Number,required:!1}},emits:["onPageChange","onShowSizeChange","upth"],setup:function(e,a){var w=a.emit,b=e;localStorage.setItem("th",b.data.map((function(e){return e.title})).join(","));var x=function(e,t){w("onPageChange",e,t)},E=function(e,t){w("onShowSizeChange",e,t)},k=t(0),C=t(0),Q=!1,I=function(e){if(!Q){Q=!0;var t=e.target.scrollTop,n=document.querySelector(".mrpTable");setTimeout((function(){Q=!1}),15),t>(null==n?void 0:n.offsetTop)-48&&(null==e?void 0:e.target)!=document.querySelector(".rc-virtual-list-holder")?k.value=n.offsetWidth:k.value=0}},S=t(0),B=t(!1),N=function(e){B.value=!0,S.value=0==e?0:1==e?40:20},D=function(e){var t=b.data.map((function(t){return L(L({},t),{},{show:e.includes(t.title)})}));w("upth",t)};return l((function(){var e=document.querySelector(".mrpTable");C.value=e.offsetWidth,window.addEventListener("scroll",I,!0)})),c((function(){window.removeEventListener("scroll",I,!0)})),function(t,a){var l=n("a-image"),c=n("a-pagination");return r(),s(p,null,[d(" 主体 "),k.value?(r(),s("div",J,[f("table",{class:"relative w-full mb-[24px]",style:v([{"table-layout":"fixed"},{width:k.value?k.value+"px":""}])},[f("tr",null,[(r(!0),s(p,null,h(e.data,(function(t,n){return r(),s(p,null,[t.show?(r(),s("th",{key:n,class:g("table-cell bg-[#97D2FD]"),style:v({height:e.setHeight&&!B.value?e.setHeight+"px":S.value?S.value+"px":"",width:t.w?t.w:""})},[f("div",V,[m(y("操作"==t.title?"":t.title)+" ",1),t.unit?(r(),s("span",K,y(t.unit),1)):d("v-if",!0)]),t.header?(r(),s("div",z,[H,f("div",F,[(r(!0),s(p,null,h(t.header,(function(e,t){return r(),s("div",{key:t,style:v({width:e.w?e.w:""})},[m(y("操作"==e.title?"":e.title)+" ",1),e.unit?(r(),s("span",T,y(e.unit),1)):d("v-if",!0)],4)})),128))])])):d("v-if",!0)],4)):d("v-if",!0)],64)})),256))])],4),u(A(he),{setHeight:e.setHeight,onDensity:N,onChangeS:D},null,8,["setHeight"])])):d("v-if",!0),f("div",R,[f("table",G,[f("tr",null,[(r(!0),s(p,null,h(e.data,(function(n,o){return r(),s(p,{key:o},[n.show?(r(),s("th",{key:0,class:g("table-cell bg-[#97D2FD]"),style:v({height:e.setHeight&&!B.value?e.setHeight+"px":S.value?S.value+"px":"",width:n.w?n.w:""})},["select"==n.key?i(t.$slots,"selectAll",{key:0}):d("v-if",!0),f("div",Y,[m(y("select"==n.key||"操作"==n.title?"":n.title)+" ",1),n.unit?(r(),s("span",Z,y(n.unit),1)):d("v-if",!0),d(' <span class="flex flex-col"\r\n ><caret-up-filled /><caret-down-filled\r\n /></span> ')]),n.header?(r(),s("div",X,[W,f("div",$,[(r(!0),s(p,null,h(n.header,(function(e,t){return r(),s("div",{key:t,style:v({width:e.w?e.w:""})},[m(y("操作"==e.title?"":e.title)+" ",1),e.unit?(r(),s("span",ee,y(e.unit),1)):d("v-if",!0)],4)})),128))])])):d("v-if",!0)],4)):d("v-if",!0)],64)})),128))]),0!==b.contractExecDocList.length?(r(!0),s(p,{key:0},h(b.contractExecDocList,(function(n,a){return r(),s("tr",{key:n.id},[(r(!0),s(p,null,h(e.data,(function(u,c){return r(),s(p,{key:c},[u.show?(r(),s("td",{key:0,class:"table-cell",style:v({height:e.setHeight&&!B.value?e.setHeight+"px":S.value?S.value+"px":""})},[d(" 序号 "),"index"==u.key?(r(),s("div",te,y(b.currentPages-1==0?a+1:10*(b.currentPages-1)+a+1),1)):d("v-if",!0),d(" 常规 "),"index"==u.key||"pictures"==u.key||"buttonSlot"==u.key||"select"==u.key||u.custom?d("v-if",!0):(r(),s("div",ne,y(n[u.key]),1)),d(" 图片数据特殊处理 "),"pictures"==u.key?(r(),s("div",re,[d(' <img\r\n v-for="(e1, i1) in e.pictures"\r\n :key="i1"\r\n :src="e1"\r\n width="30"\r\n height="32"\r\n class="mx-4"\r\n /> '),(r(!0),s(p,null,h(n.pictures,(function(e,t){return r(),o(l,{key:t,src:e,width:30,height:32,fallback:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghgg0Aj8i0JO4OzsrPv69Wv+hi2qPHr0qNvf39+iI97soRIh4f3z58/u7du3SXX7Xt7Z2enevHmzfQe+oSN2apSAPj09TSrb+XKI/f379+08+A0cNRE2ANkupk+ACNPvkSPcAAEibACyXUyfABGm3yNHuAECRNgAZLuYPgEirKlHu7u7XdyytGwHAd8jjNyng4OD7vnz51dbPT8/7z58+NB9+/bt6jU/TI+AGWHEnrx48eJ/EsSmHzx40L18+fLyzxF3ZVMjEyDCiEDjMYZZS5wiPXnyZFbJaxMhQIQRGzHvWR7XCyOCXsOmiDAi1HmPMMQjDpbpEiDCiL358eNHurW/5SnWdIBbXiDCiA38/Pnzrce2YyZ4//59F3ePLNMl4PbpiL2J0L979+7yDtHDhw8vtzzvdGnEXdvUigSIsCLAWavHp/+qM0BcXMd/q25n1vF57TYBp0a3mUzilePj4+7k5KSLb6gt6ydAhPUzXnoPR0dHl79WGTNCfBnn1uvSCJdegQhLI1vvCk+fPu2ePXt2tZOYEV6/fn31dz+shwAR1sP1cqvLntbEN9MxA9xcYjsxS1jWR4AIa2Ibzx0tc44fYX/16lV6NDFLXH+YL32jwiACRBiEbf5KcXoTIsQSpzXx4N28Ja4BQoK7rgXiydbHjx/P25TaQAJEGAguWy0+2Q8PD6/Ki4R8EVl+bzBOnZY95fq9rj9zAkTI2SxdidBHqG9+skdw43borCXO/ZcJdraPWdv22uIEiLA4q7nvvCug8WTqzQveOH26fodo7g6uFe/a17W3+nFBAkRYENRdb1vkkz1CH9cPsVy/jrhr27PqMYvENYNlHAIesRiBYwRy0V+8iXP8+/fvX11Mr7L7ECueb/r48eMqm7FuI2BGWDEG8cm+7G3NEOfmdcTQw4h9/55lhm7DekRYKQPZF2ArbXTAyu4kDYB2YxUzwg0gi/41ztHnfQG26HbGel/crVrm7tNY+/1btkOEAZ2M05r4FB7r9GbAIdxaZYrHdOsgJ/wCEQY0J74TmOKnbxxT9n3FgGGWWsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg==",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}},null,8,["src"])})),128))])):d("v-if",!0),d(" 可点击的td slot"),"clickSlot"==u.key?i(t.$slots,"clickSlot",{key:3,id:n.id,item:n}):d("v-if",!0),"select"==u.key?i(t.$slots,"select",{key:4,index:a,item:n}):d("v-if",!0),d(" 按钮使用slot"),"buttonSlot"==u.key?i(t.$slots,"buttonSlot",{key:5,id:n.id,item:n}):d("v-if",!0),d(" 按钮使用slot"),u.custom?i(t.$slots,u.key,{key:6,id:n.id,item:n}):d("v-if",!0)],4)):d("v-if",!0)],64)})),128))])})),128)):(r(),s("div",oe,ae))]),u(A(he),{setHeight:e.setHeight,onDensity:N,onChangeS:D},null,8,["setHeight"])]),d(" 分页 "),e.totalPages?(r(),s("div",{key:1,class:"flex justify-center h-full mt-4 mb-20 pagination",style:v({width:C.value?C.value+"px":""})},[u(c,{current:b.currentPages,"onUpdate:current":a[0]||(a[0]=function(e){return b.currentPages=e}),"show-quick-jumper":"","show-size-changer":"",pageSizeOptions:["10","20","30","50"],total:b.totalPages,onChange:x,onShowSizeChange:E},null,8,["current","total"])],4)):d("v-if",!0)],64)}}});ie.__scopeId="data-v-2dfcb17e",ie.__file="src/function-ui/component/IVMrpTable.vue";var ue=function(e){return w("data-v-4b5cf48c"),e=e(),b(),e},le={class:"tableControl"},ce=ue((function(){return f("div",null,"密度",-1)})),se=m(" 默认 "),pe=m(" 中等 "),de=m(" 紧凑 "),fe=ue((function(){return f("div",null,"列设置",-1)})),ve=m(" 全选 "),he=e({__name:"IVMrpTableControl",props:{setHeight:{type:Number,required:!1}},emits:["density","ChangeS"],setup:function(e,o){var i,l,c=o.emit,p=e,d=t(!1),v=t(!1),h=t(!1),g=t(!1),m=E({collapsed:!1,selectedKeys:["1"]}),y=function(e){d.value=!1,v.value=e},w=function(e){d.value=e,v.value=!1},b=function(e){h.value=e,g.value=!1},x=function(e){c("density",e.key)};m.selectedKeys[0]=p.setHeight?40==p.setHeight?"1":20==p.setHeight?"2":"0":"0";var C=null===(i=localStorage.getItem("th"))||void 0===i?void 0:i.split(","),Q=E({indeterminate:!1,checkAll:!0,checkedList:null===(l=localStorage.getItem("th"))||void 0===l?void 0:l.split(",")}),I=function(e){Object.assign(Q,{checkedList:e.target.checked?C:[],indeterminate:!1}),c("ChangeS",Q.checkedList)},S=function(e){var t=e.length,n=C.length;Object.assign(Q,{checkAll:t===n,indeterminate:t>0&&t<n}),c("ChangeS",e)};return k((function(){return Q.checkedList}),(function(e){Q.indeterminate=!!e.length&&e.length<C.length,Q.checkAll=e.length===C.length})),function(e,t){var o=n("a-menu-item"),i=n("a-menu"),l=n("column-height-outlined"),c=n("a-popover"),p=n("a-checkbox"),g=n("a-divider"),E=n("a-checkbox-group"),k=n("setting-outlined");return r(),s("div",le,[u(c,{trigger:"hover",visible:v.value,onVisibleChange:y},{content:a((function(){return[ce]})),default:a((function(){return[u(c,{trigger:"click",placement:"left","arrow-point-at-center":"",visible:d.value,onVisibleChange:w,getPopupContainer:function(e){return e.parentNode}},{content:a((function(){return[u(i,{selectedKeys:m.selectedKeys,"onUpdate:selectedKeys":t[0]||(t[0]=function(e){return m.selectedKeys=e}),onClick:x},{default:a((function(){return[u(o,{key:"0"},{default:a((function(){return[se]})),_:1}),u(o,{key:"1"},{default:a((function(){return[pe]})),_:1}),u(o,{key:"2"},{default:a((function(){return[de]})),_:1})]})),_:1},8,["selectedKeys"])]})),default:a((function(){return[u(l,{style:{fontSize:"20px"},class:"cursor-pointer"})]})),_:1},8,["visible","getPopupContainer"])]})),_:1},8,["visible"]),u(c,{trigger:"hover"},{content:a((function(){return[fe]})),default:a((function(){return[u(c,{trigger:"click",placement:"left",visible:h.value,onVisibleChange:b,getPopupContainer:function(e){return e.parentNode}},{content:a((function(){return[f("div",null,[u(p,{checked:Q.checkAll,"onUpdate:checked":t[1]||(t[1]=function(e){return Q.checkAll=e}),indeterminate:Q.indeterminate,onChange:I},{default:a((function(){return[ve]})),_:1},8,["checked","indeterminate"])]),u(g),u(E,{value:Q.checkedList,"onUpdate:value":t[2]||(t[2]=function(e){return Q.checkedList=e}),options:A(C),onChange:S},null,8,["value","options"])]})),default:a((function(){return[u(k,{class:"setting cursor-pointer",style:{fontSize:"20px"}})]})),_:1},8,["visible","getPopupContainer"])]})),_:1})])}}});function ge(e,t){var n=t.filter((function(t){return t.parentId==e.id}));if(n.length)return e.children=n,e.children.forEach((function(e){ge(e,t)})),e}function me(e){var t=e.filter((function(e){return null==e.parentId}));return t.forEach((function(t){return ge(t,e)})),t}he.__scopeId="data-v-4b5cf48c",he.__file="src/function-ui/component/IVMrpTableControl.vue";var ye=Object.assign;function Ae(e,t){return t.label&&t.label.toLowerCase().indexOf(e.toLowerCase())>=0}var we="https://basis.nacho.cn",be={headers:{"Content-Type":"application/json;charset=UTF-8","Accept-Language":"zh-Hans",authorization:localStorage.getItem("token")?"Bearer "+localStorage.getItem("token"):null},cache:"no-cache",credentials:"include",responseType:"JSON",mode:"cors"},xe={getIVMrpOrgDropdown:{url:"/api/identity/users/allOrganizationByUser",option:L({method:"GET"},be)},getIVMrpProdBaseDropdown:{url:"/api/basis-management/production-base/all",option:L({method:"GET"},be)},getIVMrpLineDropdown:{url:"/api/basis-management/line/all",option:L({method:"GET"},be)},getIVMrpSetofbookDropdown:{url:"/api/basis-management/setOfBook/all",option:L({method:"GET"},be)},getIVMrpPostDropdown:{url:"/api/identity/users/allPosition",option:L({method:"GET"},be)},getIVMrpUserSelector:{url:"/api/identity/users/userList",option:L({method:"GET"},be)}},Ee=function(e){return new Promise((function(t,n){e.then((function(e){e.json().then((function(e){return t(e)})).catch((function(e){return n(e)}))})).catch((function(e){return n(e)}))}))},ke=function(e,t,n){if(null===(r=n)||"object"!==M(r))return e+t;var r;if(0===Object.keys(n).length)return e+t;var o=[];for(var a in n)o.push("".concat(a,"=").concat(n[a]));return e+t+"?"+o.join("&")},Ce=f("div",{class:"text-[#0000006D] text-[14px]"},"所属组织",-1),Qe=e({__name:"IVMrpOrgDropdown",props:{value:{type:null,required:!0},params:{type:Object,required:!1},data:{type:Object,required:!1},replaceFields:{type:null,required:!1,default:function(){return{children:"children",label:"displayName",key:"id",value:"id"}}}},emits:["update:value","change"],setup:function(e,i){var l=i.emit,c=e,s=t(),p=function(){var e=_(j().mark((function e(){var t,n,r,o,a=arguments;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,Ee(fetch(ke(we,xe.getIVMrpOrgDropdown.url,t.params),ye({data:null!==(n=t.data)&&void 0!==n?n:null},xe.getIVMrpOrgDropdown.option)));case 3:r=e.sent,o=r.items,s.value=me(o);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=C({get:function(){return c.value},set:function(e){l("update:value",e)}});return Q(_(j().mark((function e(){var t,n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p({params:ye(null!==(t=c.params)&&void 0!==t?t:{},{type:1}),data:null!==(n=c.data)&&void 0!==n?n:null});case 1:case"end":return e.stop()}}),e)})))),function(t,i){var l=n("a-tree-select"),c=n("a-form-item");return r(),o(c,{name:"organizationId",rules:[{required:!0,message:"请选择所属组织"}]},{label:a((function(){return[Ce]})),default:a((function(){return[u(l,{value:A(d),"onUpdate:value":i[0]||(i[0]=function(e){return I(d)?d.value=e:null}),"tree-data":s.value,getPopupContainer:function(e){return e.parentNode},placeholder:"请选择",showArrow:"",showSearch:"","filter-option":A(Ae),treeDefaultExpandAll:"",style:{width:"300px"},onChange:i[1]||(i[1]=function(e){return t.$emit("change",e)}),replaceFields:e.replaceFields},null,8,["value","tree-data","getPopupContainer","filter-option","replaceFields"])]})),_:1})}}});Qe.__file="src/business-ui/component/IVMrpOrgDropdown.vue";var Ie=f("div",{class:"text-[#0000006D] text-[14px]"},"所属基地",-1),Se=e({__name:"IVMrpProdBaseDropdown",props:{value:{type:null,required:!0},params:{type:Object,required:!1},data:{type:Object,required:!1},fieldNames:{type:null,required:!1,default:function(){return{label:"name",value:"id"}}}},emits:["update:value","change"],setup:function(e,i){var l=i.emit,c=e,s=t(),p=function(){var e=_(j().mark((function e(){var t,n,r=arguments;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,Ee(fetch(ke(we,xe.getIVMrpProdBaseDropdown.url,t.params),ye({data:null!==(n=t.data)&&void 0!==n?n:null},xe.getIVMrpProdBaseDropdown.option)));case 3:s.value=e.sent;case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=C({get:function(){return c.value},set:function(e){l("update:value",e)}});return Q(_(j().mark((function e(){var t,n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p({params:null!==(t=c.params)&&void 0!==t?t:null,data:null!==(n=c.data)&&void 0!==n?n:null});case 1:case"end":return e.stop()}}),e)})))),function(t,i){var l=n("a-select"),c=n("a-form-item");return r(),o(c,{name:"organizationIds","wrapper-col":{span:8},rules:[{required:!0,message:"请选择所属基地"}]},{label:a((function(){return[Ie]})),default:a((function(){return[u(l,{getPopupContainer:function(e){return e.parentNode},value:A(d),"onUpdate:value":i[0]||(i[0]=function(e){return I(d)?d.value=e:null}),mode:"multiple",style:{width:"100%"},placeholder:"请选择",options:s.value,fieldNames:e.fieldNames,showSearch:"",onChange:i[1]||(i[1]=function(e){return t.$emit("change",e)}),"filter-option":A(Ae)},null,8,["getPopupContainer","value","options","fieldNames","filter-option"])]})),_:1})}}});Se.__file="src/business-ui/component/IVMrpProdBaseDropdown.vue";var Be=f("div",{class:"text-[#0000006D] text-[14px]"},"所属条线",-1),Ne=e({__name:"IVMrpLineDropdown",props:{value:{type:null,required:!0},params:{type:Object,required:!1},data:{type:Object,required:!1},fieldNames:{type:null,required:!1,default:function(){return{label:"displayName",value:"id"}}}},emits:["update:value","change"],setup:function(e,i){var l=i.emit,c=e,s=t(),p=function(){var e=_(j().mark((function e(){var t,n,r,o,a=arguments;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,Ee(fetch(ke(we,xe.getIVMrpLineDropdown.url,t.params),ye({data:null!==(n=t.data)&&void 0!==n?n:null},xe.getIVMrpLineDropdown.option)));case 3:r=e.sent,o=r.items,s.value=o;case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=C({get:function(){return c.value},set:function(e){l("update:value",e)}});return Q(_(j().mark((function e(){var t,n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p({params:null!==(t=c.params)&&void 0!==t?t:null,data:null!==(n=c.data)&&void 0!==n?n:null});case 1:case"end":return e.stop()}}),e)})))),function(t,i){var l=n("a-select"),c=n("a-form-item");return r(),o(c,{name:"lineIds","wrapper-col":{span:8},rules:[{required:!0,message:"请选择所属条线"}]},{label:a((function(){return[Be]})),default:a((function(){return[u(l,{getPopupContainer:function(e){return e.parentNode},value:A(d),"onUpdate:value":i[0]||(i[0]=function(e){return I(d)?d.value=e:null}),mode:"multiple",style:{width:"100%"},placeholder:"请选择",options:s.value,fieldNames:e.fieldNames,showSearch:"",onChange:i[1]||(i[1]=function(e){return t.$emit("change",e)}),"filter-option":A(Ae)},null,8,["getPopupContainer","value","options","fieldNames","filter-option"])]})),_:1})}}});Ne.__file="src/business-ui/component/IVMrpLineDropdown.vue";var De=f("div",{class:"text-[#0000006D] text-[14px]"},"所属账套",-1),Pe=e({__name:"IVMrpSetofbookDropdown",props:{value:{type:null,required:!0},params:{type:Object,required:!1},data:{type:Object,required:!1},replaceFields:{type:null,required:!1,default:function(){return{children:"children",label:"name",key:"id",value:"id"}}},multiple:{type:Boolean,required:!1,default:!0}},emits:["update:value","change"],setup:function(e,i){var l=i.emit,c=e,s=t(),p=function(){var e=_(j().mark((function e(){var t,n,r,o,a=arguments;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,Ee(fetch(ke(we,xe.getIVMrpSetofbookDropdown.url,t.params),ye({data:null!==(n=t.data)&&void 0!==n?n:null},xe.getIVMrpSetofbookDropdown.option)));case 3:r=e.sent,o=r.items,s.value=me(o);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=C({get:function(){return c.value},set:function(e){l("update:value",e)}});return Q(_(j().mark((function e(){var t,n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p({params:ye(null!==(t=c.params)&&void 0!==t?t:{},{type:1}),data:null!==(n=c.data)&&void 0!==n?n:null});case 1:case"end":return e.stop()}}),e)})))),function(t,i){var l=n("a-tree-select"),c=n("a-form-item");return r(),o(c,{name:"setOfBookIds","wrapper-col":{span:8},rules:[{required:!0,message:"请选择所属账套"}]},{label:a((function(){return[De]})),default:a((function(){return[u(l,{value:A(d),"onUpdate:value":i[0]||(i[0]=function(e){return I(d)?d.value=e:null}),"tree-data":s.value,getPopupContainer:function(e){return e.parentNode},placeholder:"请选择",showArrow:"",showSearch:"","filter-option":A(Ae),multiple:e.multiple,treeDefaultExpandAll:"",style:{width:"300px"},onChange:i[1]||(i[1]=function(e){return t.$emit("change",e)}),replaceFields:e.replaceFields},null,8,["value","tree-data","getPopupContainer","filter-option","multiple","replaceFields"])]})),_:1})}}});Pe.__file="src/business-ui/component/IVMrpSetofbookDropdown.vue";var Le=f("div",{class:"text-[#0000006D] text-[14px]"},"岗位",-1),je=e({__name:"IVMrpPostDropdown",props:{value:{type:null,required:!0},params:{type:Object,required:!1},data:{type:Object,required:!1},fieldNames:{type:null,required:!1,default:function(){return{label:"name",value:"id"}}}},emits:["update:value","change"],setup:function(e,i){var l=i.emit,c=e,s=t(),p=function(){var e=_(j().mark((function e(){var t,n,r,o,a=arguments;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,Ee(fetch(ke(we,xe.getIVMrpPostDropdown.url,t.params),ye({data:null!==(n=t.data)&&void 0!==n?n:null},xe.getIVMrpPostDropdown.option)));case 3:r=e.sent,o=r.items,s.value=o;case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=C({get:function(){return c.value},set:function(e){l("update:value",e)}});return Q(_(j().mark((function e(){var t,n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p({params:null!==(t=c.params)&&void 0!==t?t:null,data:null!==(n=c.data)&&void 0!==n?n:null});case 1:case"end":return e.stop()}}),e)})))),function(t,i){var l=n("a-select"),c=n("a-form-item");return r(),o(c,{name:"positionId",rules:[{required:!0,message:"请选择岗位"}]},{label:a((function(){return[Le]})),default:a((function(){return[u(l,{value:A(d),"onUpdate:value":i[0]||(i[0]=function(e){return I(d)?d.value=e:null}),getPopupContainer:function(e){return e.parentNode},allowClear:"",style:{width:"300px"},placeholder:"请选择",showSearch:"",showArrow:"",options:s.value,"filter-option":A(Ae),onChange:i[1]||(i[1]=function(e){return t.$emit("change",e)}),fieldNames:e.fieldNames},null,8,["value","getPopupContainer","options","filter-option","fieldNames"])]})),_:1})}}});je.__file="src/business-ui/component/IVMrpPostDropdown.vue";var Me={class:"relative mt-[8px] w-[30px] h-[23px]"},Oe=[f("svg",{"xmlns:xlink":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"23px",height:"23px",class:"absolute"},[f("g",{transform:"matrix(1 0 0 1 -256 -275 )"},[f("path",{d:"M 2.8482972136223452 0 C 1.2746130030959648 0.028482972136316675 0 1.3030959752322815 0 2.8767801857584345 L 0 20.151702786377655 C 0 21.725386996904035 1.2746130030959648 23 2.8482972136223452 23 L 20.123219814241565 23 C 21.69690402476772 23 22.971517027863683 21.725386996904035 23 20.151702786377655 L 23 2.8767801857584345 C 22.971517027863683 1.3030959752322815 21.69690402476772 0.028482972136316675 20.123219814241565 0 L 2.8482972136223452 0 Z ","fill-rule":"nonzero",fill:"#bd9e55",stroke:"none",transform:"matrix(1 0 0 1 256 275 )"})])],-1),f("svg",{"xmlns:xlink":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"23px",height:"23px",class:"absolute left-[7px] bottom-[7px]"},[f("g",{transform:"matrix(1 0 0 1 -263 -268 )"},[f("path",{d:"M 2.8767801857584345 0 C 1.3030959752322815 0 0.028482972136316675 1.2746130030959648 0.028482972136316675 2.8482972136223452 L 0.028482972136316675 4.870588235294008 C 0.028482972136316675 5.027244582043295 0.15665634674928697 5.155417956656265 0.31331269349834656 5.155417956656265 L 14.426625386996877 5.155417956656265 C 16.306501547987637 5.155417956656265 17.844582043343735 6.693498452012363 17.844582043343735 8.573374613003125 L 17.844582043343735 22.686687306501653 C 17.844582043343735 22.843343653250713 17.972755417956705 22.971517027863683 18.129411764705992 22.971517027863683 L 20.151702786377655 22.971517027863683 C 21.725386996904035 22.971517027863683 23 21.69690402476772 23 20.123219814241565 L 23 2.8482972136223452 C 23 1.2746130030959648 21.725386996904035 0 20.151702786377655 0 L 2.8767801857584345 0 Z ","fill-rule":"nonzero",fill:"#bd9e55",stroke:"none",transform:"matrix(1 0 0 1 263 268 )"})])],-1)];var _e={render:function(e,t){return r(),s("div",Me,Oe)},__file:"src/business-ui/component/icon/SelectorIcon.vue"},qe={class:"flex items-center h-[60px] pl-[40px] bg-[#97D2FD]"},Ue=function(e){return w("data-v-15a6b582"),e=e(),b(),e}((function(){return f("span",{class:"text-xl text-[#bd9e55] pl-2"},"选择人员",-1)})),Je={class:"px-[150px]"},Ve={class:"mx-10"},Ke={class:"flex items-center my-4 justify-center"},ze=m(" 搜索 "),He={class:"mt-10"},Fe={class:"flex justify-between mb-2"},Te={class:"text-[#999999]"},Re=m(" 共有 "),Ge={class:"text-[#BD9E55] text-[16px]"},Ye=m(" 个记录满足条件,当前第 "),Ze={class:"text-[#BD9E55] text-[16px]"},Xe=m(" 页,跳转到第 "),We={class:"text-[#BD9E55] text-[16px]"},$e=m(" 页 "),et={class:"contentList"},tt=["onClick"],nt={key:0},rt={class:"flex items-center justify-around text-[#006AB2] text-[13px]"},ot=["onClick"],at=e({__name:"IVMrpUserSelector",props:{show:{type:Boolean,required:!0,default:!1}},emits:["update:show","getItem"],setup:function(e,i){var l=i.emit,c=e;console.log(c.show);var v=E({name:null,phoneNumber:null,workNo:null,positionId:null,organizationId:null,lineId:null,sorting:null,skipCount:0,maxResultCount:10}),g=t(),w=function(){var e=_(j().mark((function e(){var t,n,r,o,a,i=arguments;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},e.next=3,Ee(fetch(ke(we,xe.getIVMrpUserSelector.url,t.params),ye({data:null!==(n=t.data)&&void 0!==n?n:null},xe.getIVMrpUserSelector.option)));case 3:r=e.sent,o=r.items,a=r.totalCount,g.value=o,q.value=a,M.value=Math.ceil(q.value/v.maxResultCount);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),b=t([{title:"序号",w:54/1499*100+"%",key:"index",show:!0},{title:"人员编号",w:120/1499*100+"%",key:"workNo",show:!0},{title:"所属部门",w:200/1499*100+"%",key:"organizationName",show:!0},{title:"所属条线",w:200/1499*100+"%",key:"lineNames",show:!0,custom:!0},{title:"岗位",w:200/1499*100+"%",key:"positionName",show:!0},{title:"姓名",w:200/1499*100+"%",key:"name",show:!0,custom:!0},{title:"手机号码",w:130/1499*100+"%",key:"phoneNumber",show:!0},{title:"",w:80/1333*100+"%",key:"buttonSlot",show:!0}]),x=function(e){b.value=e};function k(e){return Q.apply(this,arguments)}function Q(){return(Q=_(j().mark((function e(t){return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l("getItem",JSON.stringify(t)),K.value=!1;case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var P=t(1),L=t(1),M=t(0),O=t(1),q=t(0);function U(e,t){L.value=e,O.value=e,P.value=e,v.skipCount=(e-1)*t,v.maxResultCount=t,w({params:v})}function J(e,t){L.value=e,O.value=e,v.maxResultCount=t,w({params:v})}function V(){v.skipCount=0,P.value=1,L.value=1,M.value=0,O.value=1,w({params:v})}S((function(){w({params:v})}));var K=C({get:function(){return c.show},set:function(e){l("update:show",e)}});return function(e,t){var i=n("a-input"),l=n("a-button"),c=n("DownOutlined"),w=n("a-menu-item"),E=n("a-menu"),C=n("a-dropdown");return r(),o(D,{show:A(K),"onUpdate:show":t[5]||(t[5]=function(e){return I(K)?K.value=e:null}),"remove-padding":!1},{title:a((function(){return[f("div",qe,[u(_e),Ue])]})),body:a((function(){return[f("div",Je,[d(" 搜索 "),f("div",Ve,[f("div",Ke,[u(A(Qe),{value:v.organizationId,"onUpdate:value":t[0]||(t[0]=function(e){return v.organizationId=e}),onChange:V},null,8,["value"]),u(A(Ne),{value:v.lineId,"onUpdate:value":t[1]||(t[1]=function(e){return v.lineId=e}),onChange:V},null,8,["value"]),u(A(je),{value:v.positionId,"onUpdate:value":t[2]||(t[2]=function(e){return v.positionId=e}),onChange:V},null,8,["value"]),u(i,{value:v.name,"onUpdate:value":t[3]||(t[3]=function(e){return v.name=e}),style:{width:"300px","margin-right":"15px"},class:"mr-4",placeholder:"请输入员工编号,姓名,或手机号码",onKeyup:B(V,["enter"])},null,8,["value","onKeyup"]),u(l,{style:{padding:"4px 10px","border-radius":"4px",background:"#006ab2","margin-right":"15px",color:"#fff"},onClick:V},{default:a((function(){return[ze]})),_:1})])]),d(" 主体 "),f("div",He,[d(" 分页 "),f("div",Fe,[f("div",Te,[Re,f("span",Ge,y(q.value),1),Ye,f("span",Ze,y(L.value),1),Xe,u(C,{trigger:["click"]},{overlay:a((function(){return[u(E,{getPopupContainer:function(e){return e.parentNode},class:"max-h-40 overflow-y-auto scrollbar"},{default:a((function(){return[(r(!0),s(p,null,h(M.value,(function(e){return r(),o(w,{key:e,onClick:function(t){return n=e,O.value=n,P.value=n,void U(n,v.maxResultCount);var n}},{default:a((function(){return[m(y(e),1)]})),_:2},1032,["onClick"])})),128))]})),_:1},8,["getPopupContainer"])]})),default:a((function(){return[f("a",{class:"pl-2 ant-dropdown-link border-b border-[#BD9E55]",onClick:t[4]||(t[4]=N((function(){}),["prevent"]))},[f("span",We,y(O.value),1),u(c,{class:"align-middle ml-1 mb-[4px]",style:{"font-size":"16px"}})])]})),_:1}),$e])]),f("div",et,[u(A(ie),{data:A(b),contractExecDocList:g.value,currentPages:P.value,totalPages:q.value,formData:v,setHeight:40,onOnPageChange:U,onOnShowSizeChange:J,onUpth:x},{name:a((function(e){return[f("span",{class:"text-[#006AB2] cursor-pointer",onClick:function(t){return k(e.item)}},y(e.item.name),9,tt)]})),lineNames:a((function(e){return[(r(!0),s(p,null,h(e.item.lineNames,(function(t,n){return r(),s("span",null,[m(y(t)+" ",1),n!==e.item.lineNames.length-1?(r(),s("span",nt,",")):d("v-if",!0)])})),256))]})),buttonSlot:a((function(e){return[f("div",rt,[f("span",{class:"cursor-pointer",onClick:function(t){return k(e.item)}},"选择",8,ot)])]})),_:1},8,["data","contractExecDocList","currentPages","totalPages","formData"])])])])]})),_:1},8,["show"])}}});at.__scopeId="data-v-15a6b582",at.__file="src/business-ui/component/IVMrpUserSelector.vue";var it=[D,Qe,Se,Ne,Pe,je,ie,he,at];it.forEach((function(e){e.install=function(t){t.component(e.name,e)}}));var ut={install:function(e){it.forEach((function(t){e.component(t.name,t)}))}};export{Ne as IVMrpLineDropdown,D as IVMrpModal,Qe as IVMrpOrgDropdown,je as IVMrpPostDropdown,Se as IVMrpProdBaseDropdown,Pe as IVMrpSetofbookDropdown,ie as IVMrpTable,he as IVMrpTableControl,at as IVMrpUserSelector,ut as default};