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.
- package/package.json +1 -1
- package/packages/ui/dist/api/api.config.d.ts +5 -1
- package/packages/ui/dist/business-ui/component/IVMrpLineDropdown.d.ts +2 -1
- package/packages/ui/dist/business-ui/component/IVMrpOrgDropdown.d.ts +2 -1
- package/packages/ui/dist/business-ui/component/IVMrpPostDropdown.d.ts +2 -1
- package/packages/ui/dist/business-ui/component/IVMrpProdBaseDropdown.d.ts +2 -1
- package/packages/ui/dist/business-ui/component/IVMrpSetofbookDropdown.d.ts +2 -1
- package/packages/ui/dist/business-ui/component/IVMrpUserSelector.d.ts +22 -0
- package/packages/ui/dist/business-ui/index.d.ts +2 -1
- package/packages/ui/dist/function-ui/component/IVMrpTable.d.ts +68 -0
- package/packages/ui/dist/function-ui/component/IVMrpTableControl.d.ts +17 -0
- package/packages/ui/dist/function-ui/index.d.ts +3 -1
- package/packages/ui/dist/index.cjs.css +112 -0
- package/packages/ui/dist/index.cjs.js +3 -1510
- package/packages/ui/dist/index.d.ts +3 -3
- package/packages/ui/dist/index.esm.css +112 -0
- package/packages/ui/dist/index.esm.js +3 -1500
- package/packages/ui/dist/index.umd.css +112 -0
- package/packages/ui/dist/index.umd.js +3 -1514
- package/packages/ui/dist/index.umd.js.map +1 -1
|
@@ -1,1510 +1,3 @@
|
|
|
1
|
-
|
|
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$5 = /*#__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$5.__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
|
-
function _loadChildren(obj, list) {
|
|
515
|
-
var arr = list.filter(function (x) {
|
|
516
|
-
return x.parentId == obj.id;
|
|
517
|
-
});
|
|
518
|
-
if (!arr.length) return;
|
|
519
|
-
obj.children = arr;
|
|
520
|
-
obj.children.forEach(function (x) {
|
|
521
|
-
_loadChildren(x, list);
|
|
522
|
-
});
|
|
523
|
-
return obj;
|
|
524
|
-
}
|
|
525
|
-
function tranListToTreeData(list) {
|
|
526
|
-
var results = list.filter(function (x) {
|
|
527
|
-
return x.parentId == null;
|
|
528
|
-
});
|
|
529
|
-
results.forEach(function (x) {
|
|
530
|
-
return _loadChildren(x, list);
|
|
531
|
-
});
|
|
532
|
-
return results;
|
|
533
|
-
}
|
|
534
|
-
var isObject = function isObject(val) {
|
|
535
|
-
return val !== null && _typeof(val) === "object";
|
|
536
|
-
};
|
|
537
|
-
var assign = Object.assign;
|
|
538
|
-
function filterOptionHeadle(input, option) {
|
|
539
|
-
return option.label && option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
var BASE_URL = "https://basis.nacho.cn";
|
|
543
|
-
var DEFIND_OPTION = {
|
|
544
|
-
headers: {
|
|
545
|
-
"Content-Type": "application/json;charset=UTF-8",
|
|
546
|
-
"Accept-Language": "zh-Hans",
|
|
547
|
-
authorization: localStorage.getItem("token") ? "Bearer " + localStorage.getItem("token") : null
|
|
548
|
-
},
|
|
549
|
-
cache: "no-cache",
|
|
550
|
-
credentials: "include",
|
|
551
|
-
responseType: "JSON",
|
|
552
|
-
mode: "cors"
|
|
553
|
-
};
|
|
554
|
-
var API_OPTION = {
|
|
555
|
-
getIVMrpOrgDropdown: {
|
|
556
|
-
url: "/api/identity/users/allOrganizationByUser",
|
|
557
|
-
option: _objectSpread2({
|
|
558
|
-
method: "GET"
|
|
559
|
-
}, DEFIND_OPTION)
|
|
560
|
-
},
|
|
561
|
-
getIVMrpProdBaseDropdown: {
|
|
562
|
-
url: "/api/basis-management/production-base/all",
|
|
563
|
-
option: _objectSpread2({
|
|
564
|
-
method: "GET"
|
|
565
|
-
}, DEFIND_OPTION)
|
|
566
|
-
},
|
|
567
|
-
getIVMrpLineDropdown: {
|
|
568
|
-
url: "/api/basis-management/line/all",
|
|
569
|
-
option: _objectSpread2({
|
|
570
|
-
method: "GET"
|
|
571
|
-
}, DEFIND_OPTION)
|
|
572
|
-
},
|
|
573
|
-
getIVMrpSetofbookDropdown: {
|
|
574
|
-
url: "/api/basis-management/setOfBook/all",
|
|
575
|
-
option: _objectSpread2({
|
|
576
|
-
method: "GET"
|
|
577
|
-
}, DEFIND_OPTION)
|
|
578
|
-
},
|
|
579
|
-
getIVMrpPostDropdown: {
|
|
580
|
-
url: "/api/identity/users/allPosition",
|
|
581
|
-
option: _objectSpread2({
|
|
582
|
-
method: "GET"
|
|
583
|
-
}, DEFIND_OPTION)
|
|
584
|
-
}
|
|
585
|
-
};
|
|
586
|
-
var formatHTTP = function formatHTTP(fetch) {
|
|
587
|
-
return new Promise(function (resolve, reject) {
|
|
588
|
-
fetch.then(function (data) {
|
|
589
|
-
data.json().then(function (data) {
|
|
590
|
-
return resolve(data);
|
|
591
|
-
})["catch"](function (err) {
|
|
592
|
-
return reject(err);
|
|
593
|
-
});
|
|
594
|
-
})["catch"](function (err) {
|
|
595
|
-
return reject(err);
|
|
596
|
-
});
|
|
597
|
-
});
|
|
598
|
-
};
|
|
599
|
-
var formatUrl = function formatUrl(base, api, params) {
|
|
600
|
-
if (!isObject(params)) return base + api;
|
|
601
|
-
if (Object.keys(params).length === 0) return base + api;
|
|
602
|
-
var urlTemparr = [];
|
|
603
|
-
|
|
604
|
-
for (var k in params) {
|
|
605
|
-
urlTemparr.push("".concat(k, "=").concat(params[k]));
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
return base + api + "?" + urlTemparr.join("&");
|
|
609
|
-
};
|
|
610
|
-
|
|
611
|
-
var _hoisted_1$4 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
612
|
-
"class": "text-[#0000006D] text-[14px]"
|
|
613
|
-
}, "所属组织", -1
|
|
614
|
-
/* HOISTED */
|
|
615
|
-
);
|
|
616
|
-
/**
|
|
617
|
-
* 组件定义-------------------------------------
|
|
618
|
-
* */
|
|
619
|
-
|
|
620
|
-
var script$4 = /*#__PURE__*/vue.defineComponent({
|
|
621
|
-
__name: 'IVMrpOrgDropdown',
|
|
622
|
-
props: {
|
|
623
|
-
value: {
|
|
624
|
-
type: null,
|
|
625
|
-
required: true
|
|
626
|
-
},
|
|
627
|
-
params: {
|
|
628
|
-
type: Object,
|
|
629
|
-
required: false
|
|
630
|
-
},
|
|
631
|
-
data: {
|
|
632
|
-
type: Object,
|
|
633
|
-
required: false
|
|
634
|
-
},
|
|
635
|
-
replaceFields: {
|
|
636
|
-
type: null,
|
|
637
|
-
required: false,
|
|
638
|
-
"default": function _default() {
|
|
639
|
-
return {
|
|
640
|
-
children: "children",
|
|
641
|
-
label: "displayName",
|
|
642
|
-
key: "id",
|
|
643
|
-
value: "id"
|
|
644
|
-
};
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
},
|
|
648
|
-
emits: ["update:value"],
|
|
649
|
-
setup: function setup(__props, _ref) {
|
|
650
|
-
var emit = _ref.emit;
|
|
651
|
-
var props = __props;
|
|
652
|
-
/**
|
|
653
|
-
* 获取数据-------------------------------------
|
|
654
|
-
* */
|
|
655
|
-
|
|
656
|
-
var dataV = vue.ref();
|
|
657
|
-
|
|
658
|
-
var getData = /*#__PURE__*/function () {
|
|
659
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
660
|
-
var _option,
|
|
661
|
-
_a,
|
|
662
|
-
_yield$formatHTTP,
|
|
663
|
-
items,
|
|
664
|
-
_args = arguments;
|
|
665
|
-
|
|
666
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
667
|
-
while (1) {
|
|
668
|
-
switch (_context.prev = _context.next) {
|
|
669
|
-
case 0:
|
|
670
|
-
_option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
671
|
-
_context.next = 3;
|
|
672
|
-
return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpOrgDropdown.url, _option.params), assign({
|
|
673
|
-
data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
|
|
674
|
-
}, API_OPTION.getIVMrpOrgDropdown.option)));
|
|
675
|
-
|
|
676
|
-
case 3:
|
|
677
|
-
_yield$formatHTTP = _context.sent;
|
|
678
|
-
items = _yield$formatHTTP.items;
|
|
679
|
-
dataV.value = tranListToTreeData(items);
|
|
680
|
-
|
|
681
|
-
case 6:
|
|
682
|
-
case "end":
|
|
683
|
-
return _context.stop();
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
}, _callee);
|
|
687
|
-
}));
|
|
688
|
-
|
|
689
|
-
return function getData() {
|
|
690
|
-
return _ref2.apply(this, arguments);
|
|
691
|
-
};
|
|
692
|
-
}();
|
|
693
|
-
|
|
694
|
-
var inputV = vue.computed({
|
|
695
|
-
get: function get() {
|
|
696
|
-
return props.value;
|
|
697
|
-
},
|
|
698
|
-
set: function set(value) {
|
|
699
|
-
emit("update:value", value);
|
|
700
|
-
}
|
|
701
|
-
});
|
|
702
|
-
/**
|
|
703
|
-
* 侦听器-------------------------------------
|
|
704
|
-
* */
|
|
705
|
-
|
|
706
|
-
vue.watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
707
|
-
var _a, _b;
|
|
708
|
-
|
|
709
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
710
|
-
while (1) {
|
|
711
|
-
switch (_context2.prev = _context2.next) {
|
|
712
|
-
case 0:
|
|
713
|
-
// 由于打包问题,侦听器一定要在最后,否则找不到getData方法
|
|
714
|
-
getData({
|
|
715
|
-
params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
|
|
716
|
-
type: 1
|
|
717
|
-
}),
|
|
718
|
-
data: (_b = props.data) !== null && _b !== void 0 ? _b : null
|
|
719
|
-
});
|
|
720
|
-
|
|
721
|
-
case 1:
|
|
722
|
-
case "end":
|
|
723
|
-
return _context2.stop();
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
}, _callee2);
|
|
727
|
-
})));
|
|
728
|
-
return function (_ctx, _cache) {
|
|
729
|
-
var _component_a_tree_select = vue.resolveComponent("a-tree-select");
|
|
730
|
-
|
|
731
|
-
var _component_a_form_item = vue.resolveComponent("a-form-item");
|
|
732
|
-
|
|
733
|
-
return vue.openBlock(), vue.createBlock(_component_a_form_item, {
|
|
734
|
-
name: "organizationId",
|
|
735
|
-
rules: [{
|
|
736
|
-
required: true,
|
|
737
|
-
message: '请选择所属组织'
|
|
738
|
-
}]
|
|
739
|
-
}, {
|
|
740
|
-
label: vue.withCtx(function () {
|
|
741
|
-
return [_hoisted_1$4];
|
|
742
|
-
}),
|
|
743
|
-
"default": vue.withCtx(function () {
|
|
744
|
-
return [vue.createVNode(_component_a_tree_select, {
|
|
745
|
-
value: vue.unref(inputV),
|
|
746
|
-
"onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
|
|
747
|
-
return vue.isRef(inputV) ? inputV.value = $event : null;
|
|
748
|
-
}),
|
|
749
|
-
"tree-data": dataV.value,
|
|
750
|
-
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
751
|
-
return triggerNode.parentNode;
|
|
752
|
-
},
|
|
753
|
-
placeholder: "请选择",
|
|
754
|
-
showArrow: "",
|
|
755
|
-
showSearch: "",
|
|
756
|
-
"filter-option": vue.unref(filterOptionHeadle),
|
|
757
|
-
treeDefaultExpandAll: "",
|
|
758
|
-
style: {
|
|
759
|
-
"width": "300px"
|
|
760
|
-
},
|
|
761
|
-
replaceFields: __props.replaceFields
|
|
762
|
-
}, null, 8
|
|
763
|
-
/* PROPS */
|
|
764
|
-
, ["value", "tree-data", "getPopupContainer", "filter-option", "replaceFields"])];
|
|
765
|
-
}),
|
|
766
|
-
_: 1
|
|
767
|
-
/* STABLE */
|
|
768
|
-
|
|
769
|
-
});
|
|
770
|
-
};
|
|
771
|
-
}
|
|
772
|
-
});
|
|
773
|
-
|
|
774
|
-
script$4.__file = "src/business-ui/component/IVMrpOrgDropdown.vue";
|
|
775
|
-
|
|
776
|
-
var _hoisted_1$3 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
777
|
-
"class": "text-[#0000006D] text-[14px]"
|
|
778
|
-
}, "所属基地", -1
|
|
779
|
-
/* HOISTED */
|
|
780
|
-
);
|
|
781
|
-
/**
|
|
782
|
-
* 组件定义-------------------------------------
|
|
783
|
-
* */
|
|
784
|
-
|
|
785
|
-
var script$3 = /*#__PURE__*/vue.defineComponent({
|
|
786
|
-
__name: 'IVMrpProdBaseDropdown',
|
|
787
|
-
props: {
|
|
788
|
-
value: {
|
|
789
|
-
type: null,
|
|
790
|
-
required: true
|
|
791
|
-
},
|
|
792
|
-
params: {
|
|
793
|
-
type: Object,
|
|
794
|
-
required: false
|
|
795
|
-
},
|
|
796
|
-
data: {
|
|
797
|
-
type: Object,
|
|
798
|
-
required: false
|
|
799
|
-
},
|
|
800
|
-
fieldNames: {
|
|
801
|
-
type: null,
|
|
802
|
-
required: false,
|
|
803
|
-
"default": function _default() {
|
|
804
|
-
return {
|
|
805
|
-
label: "name",
|
|
806
|
-
value: "id"
|
|
807
|
-
};
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
},
|
|
811
|
-
emits: ["update:value"],
|
|
812
|
-
setup: function setup(__props, _ref) {
|
|
813
|
-
var emit = _ref.emit;
|
|
814
|
-
var props = __props;
|
|
815
|
-
/**
|
|
816
|
-
* 获取数据-------------------------------------
|
|
817
|
-
* */
|
|
818
|
-
|
|
819
|
-
var dataV = vue.ref();
|
|
820
|
-
|
|
821
|
-
var getData = /*#__PURE__*/function () {
|
|
822
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
823
|
-
var _option,
|
|
824
|
-
_a,
|
|
825
|
-
_args = arguments;
|
|
826
|
-
|
|
827
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
828
|
-
while (1) {
|
|
829
|
-
switch (_context.prev = _context.next) {
|
|
830
|
-
case 0:
|
|
831
|
-
_option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
832
|
-
_context.next = 3;
|
|
833
|
-
return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpProdBaseDropdown.url, _option.params), assign({
|
|
834
|
-
data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
|
|
835
|
-
}, API_OPTION.getIVMrpProdBaseDropdown.option)));
|
|
836
|
-
|
|
837
|
-
case 3:
|
|
838
|
-
dataV.value = _context.sent;
|
|
839
|
-
|
|
840
|
-
case 4:
|
|
841
|
-
case "end":
|
|
842
|
-
return _context.stop();
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
}, _callee);
|
|
846
|
-
}));
|
|
847
|
-
|
|
848
|
-
return function getData() {
|
|
849
|
-
return _ref2.apply(this, arguments);
|
|
850
|
-
};
|
|
851
|
-
}();
|
|
852
|
-
|
|
853
|
-
var inputV = vue.computed({
|
|
854
|
-
get: function get() {
|
|
855
|
-
return props.value;
|
|
856
|
-
},
|
|
857
|
-
set: function set(value) {
|
|
858
|
-
emit("update:value", value);
|
|
859
|
-
}
|
|
860
|
-
});
|
|
861
|
-
/**
|
|
862
|
-
* 侦听器-------------------------------------
|
|
863
|
-
* */
|
|
864
|
-
|
|
865
|
-
vue.watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
866
|
-
var _a, _b;
|
|
867
|
-
|
|
868
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
869
|
-
while (1) {
|
|
870
|
-
switch (_context2.prev = _context2.next) {
|
|
871
|
-
case 0:
|
|
872
|
-
// 由于打包问题,侦听器一定要在最后,否则找不到getData方法
|
|
873
|
-
getData({
|
|
874
|
-
params: (_a = props.params) !== null && _a !== void 0 ? _a : null,
|
|
875
|
-
data: (_b = props.data) !== null && _b !== void 0 ? _b : null
|
|
876
|
-
});
|
|
877
|
-
|
|
878
|
-
case 1:
|
|
879
|
-
case "end":
|
|
880
|
-
return _context2.stop();
|
|
881
|
-
}
|
|
882
|
-
}
|
|
883
|
-
}, _callee2);
|
|
884
|
-
})));
|
|
885
|
-
return function (_ctx, _cache) {
|
|
886
|
-
var _component_a_select = vue.resolveComponent("a-select");
|
|
887
|
-
|
|
888
|
-
var _component_a_form_item = vue.resolveComponent("a-form-item");
|
|
889
|
-
|
|
890
|
-
return vue.openBlock(), vue.createBlock(_component_a_form_item, {
|
|
891
|
-
name: "organizationIds",
|
|
892
|
-
"wrapper-col": {
|
|
893
|
-
span: 8
|
|
894
|
-
},
|
|
895
|
-
rules: [{
|
|
896
|
-
required: true,
|
|
897
|
-
message: '请选择所属基地'
|
|
898
|
-
}]
|
|
899
|
-
}, {
|
|
900
|
-
label: vue.withCtx(function () {
|
|
901
|
-
return [_hoisted_1$3];
|
|
902
|
-
}),
|
|
903
|
-
"default": vue.withCtx(function () {
|
|
904
|
-
return [vue.createVNode(_component_a_select, {
|
|
905
|
-
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
906
|
-
return triggerNode.parentNode;
|
|
907
|
-
},
|
|
908
|
-
value: vue.unref(inputV),
|
|
909
|
-
"onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
|
|
910
|
-
return vue.isRef(inputV) ? inputV.value = $event : null;
|
|
911
|
-
}),
|
|
912
|
-
mode: "multiple",
|
|
913
|
-
style: {
|
|
914
|
-
"width": "100%"
|
|
915
|
-
},
|
|
916
|
-
placeholder: "请选择",
|
|
917
|
-
options: dataV.value,
|
|
918
|
-
fieldNames: __props.fieldNames,
|
|
919
|
-
showSearch: "",
|
|
920
|
-
"filter-option": vue.unref(filterOptionHeadle)
|
|
921
|
-
}, null, 8
|
|
922
|
-
/* PROPS */
|
|
923
|
-
, ["getPopupContainer", "value", "options", "fieldNames", "filter-option"])];
|
|
924
|
-
}),
|
|
925
|
-
_: 1
|
|
926
|
-
/* STABLE */
|
|
927
|
-
|
|
928
|
-
});
|
|
929
|
-
};
|
|
930
|
-
}
|
|
931
|
-
});
|
|
932
|
-
|
|
933
|
-
script$3.__file = "src/business-ui/component/IVMrpProdBaseDropdown.vue";
|
|
934
|
-
|
|
935
|
-
var _hoisted_1$2 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
936
|
-
"class": "text-[#0000006D] text-[14px]"
|
|
937
|
-
}, "所属条线", -1
|
|
938
|
-
/* HOISTED */
|
|
939
|
-
);
|
|
940
|
-
/**
|
|
941
|
-
* 组件定义-------------------------------------
|
|
942
|
-
* */
|
|
943
|
-
|
|
944
|
-
var script$2 = /*#__PURE__*/vue.defineComponent({
|
|
945
|
-
__name: 'IVMrpLineDropdown',
|
|
946
|
-
props: {
|
|
947
|
-
value: {
|
|
948
|
-
type: null,
|
|
949
|
-
required: true
|
|
950
|
-
},
|
|
951
|
-
params: {
|
|
952
|
-
type: Object,
|
|
953
|
-
required: false
|
|
954
|
-
},
|
|
955
|
-
data: {
|
|
956
|
-
type: Object,
|
|
957
|
-
required: false
|
|
958
|
-
},
|
|
959
|
-
fieldNames: {
|
|
960
|
-
type: null,
|
|
961
|
-
required: false,
|
|
962
|
-
"default": function _default() {
|
|
963
|
-
return {
|
|
964
|
-
label: "displayName",
|
|
965
|
-
value: "id"
|
|
966
|
-
};
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
},
|
|
970
|
-
emits: ["update:value"],
|
|
971
|
-
setup: function setup(__props, _ref) {
|
|
972
|
-
var emit = _ref.emit;
|
|
973
|
-
var props = __props;
|
|
974
|
-
/**
|
|
975
|
-
* 获取数据-------------------------------------
|
|
976
|
-
* */
|
|
977
|
-
|
|
978
|
-
var dataV = vue.ref();
|
|
979
|
-
|
|
980
|
-
var getData = /*#__PURE__*/function () {
|
|
981
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
982
|
-
var _option,
|
|
983
|
-
_a,
|
|
984
|
-
_yield$formatHTTP,
|
|
985
|
-
items,
|
|
986
|
-
_args = arguments;
|
|
987
|
-
|
|
988
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
989
|
-
while (1) {
|
|
990
|
-
switch (_context.prev = _context.next) {
|
|
991
|
-
case 0:
|
|
992
|
-
_option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
993
|
-
_context.next = 3;
|
|
994
|
-
return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpLineDropdown.url, _option.params), assign({
|
|
995
|
-
data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
|
|
996
|
-
}, API_OPTION.getIVMrpLineDropdown.option)));
|
|
997
|
-
|
|
998
|
-
case 3:
|
|
999
|
-
_yield$formatHTTP = _context.sent;
|
|
1000
|
-
items = _yield$formatHTTP.items;
|
|
1001
|
-
dataV.value = items;
|
|
1002
|
-
|
|
1003
|
-
case 6:
|
|
1004
|
-
case "end":
|
|
1005
|
-
return _context.stop();
|
|
1006
|
-
}
|
|
1007
|
-
}
|
|
1008
|
-
}, _callee);
|
|
1009
|
-
}));
|
|
1010
|
-
|
|
1011
|
-
return function getData() {
|
|
1012
|
-
return _ref2.apply(this, arguments);
|
|
1013
|
-
};
|
|
1014
|
-
}();
|
|
1015
|
-
|
|
1016
|
-
var inputV = vue.computed({
|
|
1017
|
-
get: function get() {
|
|
1018
|
-
return props.value;
|
|
1019
|
-
},
|
|
1020
|
-
set: function set(value) {
|
|
1021
|
-
emit("update:value", value);
|
|
1022
|
-
}
|
|
1023
|
-
});
|
|
1024
|
-
/**
|
|
1025
|
-
* 侦听器-------------------------------------
|
|
1026
|
-
* */
|
|
1027
|
-
|
|
1028
|
-
vue.watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
1029
|
-
var _a, _b;
|
|
1030
|
-
|
|
1031
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1032
|
-
while (1) {
|
|
1033
|
-
switch (_context2.prev = _context2.next) {
|
|
1034
|
-
case 0:
|
|
1035
|
-
// 由于打包问题,侦听器一定要在最后,否则找不到getData方法
|
|
1036
|
-
getData({
|
|
1037
|
-
params: (_a = props.params) !== null && _a !== void 0 ? _a : null,
|
|
1038
|
-
data: (_b = props.data) !== null && _b !== void 0 ? _b : null
|
|
1039
|
-
});
|
|
1040
|
-
|
|
1041
|
-
case 1:
|
|
1042
|
-
case "end":
|
|
1043
|
-
return _context2.stop();
|
|
1044
|
-
}
|
|
1045
|
-
}
|
|
1046
|
-
}, _callee2);
|
|
1047
|
-
})));
|
|
1048
|
-
return function (_ctx, _cache) {
|
|
1049
|
-
var _component_a_select = vue.resolveComponent("a-select");
|
|
1050
|
-
|
|
1051
|
-
var _component_a_form_item = vue.resolveComponent("a-form-item");
|
|
1052
|
-
|
|
1053
|
-
return vue.openBlock(), vue.createBlock(_component_a_form_item, {
|
|
1054
|
-
name: "lineIds",
|
|
1055
|
-
"wrapper-col": {
|
|
1056
|
-
span: 8
|
|
1057
|
-
},
|
|
1058
|
-
rules: [{
|
|
1059
|
-
required: true,
|
|
1060
|
-
message: '请选择所属条线'
|
|
1061
|
-
}]
|
|
1062
|
-
}, {
|
|
1063
|
-
label: vue.withCtx(function () {
|
|
1064
|
-
return [_hoisted_1$2];
|
|
1065
|
-
}),
|
|
1066
|
-
"default": vue.withCtx(function () {
|
|
1067
|
-
return [vue.createVNode(_component_a_select, {
|
|
1068
|
-
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
1069
|
-
return triggerNode.parentNode;
|
|
1070
|
-
},
|
|
1071
|
-
value: vue.unref(inputV),
|
|
1072
|
-
"onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
|
|
1073
|
-
return vue.isRef(inputV) ? inputV.value = $event : null;
|
|
1074
|
-
}),
|
|
1075
|
-
mode: "multiple",
|
|
1076
|
-
style: {
|
|
1077
|
-
"width": "100%"
|
|
1078
|
-
},
|
|
1079
|
-
placeholder: "请选择",
|
|
1080
|
-
options: dataV.value,
|
|
1081
|
-
fieldNames: __props.fieldNames,
|
|
1082
|
-
showSearch: "",
|
|
1083
|
-
"filter-option": vue.unref(filterOptionHeadle)
|
|
1084
|
-
}, null, 8
|
|
1085
|
-
/* PROPS */
|
|
1086
|
-
, ["getPopupContainer", "value", "options", "fieldNames", "filter-option"])];
|
|
1087
|
-
}),
|
|
1088
|
-
_: 1
|
|
1089
|
-
/* STABLE */
|
|
1090
|
-
|
|
1091
|
-
});
|
|
1092
|
-
};
|
|
1093
|
-
}
|
|
1094
|
-
});
|
|
1095
|
-
|
|
1096
|
-
script$2.__file = "src/business-ui/component/IVMrpLineDropdown.vue";
|
|
1097
|
-
|
|
1098
|
-
var _hoisted_1$1 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
1099
|
-
"class": "text-[#0000006D] text-[14px]"
|
|
1100
|
-
}, "所属账套", -1
|
|
1101
|
-
/* HOISTED */
|
|
1102
|
-
);
|
|
1103
|
-
/**
|
|
1104
|
-
* 组件定义-------------------------------------
|
|
1105
|
-
* */
|
|
1106
|
-
|
|
1107
|
-
var script$1 = /*#__PURE__*/vue.defineComponent({
|
|
1108
|
-
__name: 'IVMrpSetofbookDropdown',
|
|
1109
|
-
props: {
|
|
1110
|
-
value: {
|
|
1111
|
-
type: null,
|
|
1112
|
-
required: true
|
|
1113
|
-
},
|
|
1114
|
-
params: {
|
|
1115
|
-
type: Object,
|
|
1116
|
-
required: false
|
|
1117
|
-
},
|
|
1118
|
-
data: {
|
|
1119
|
-
type: Object,
|
|
1120
|
-
required: false
|
|
1121
|
-
},
|
|
1122
|
-
replaceFields: {
|
|
1123
|
-
type: null,
|
|
1124
|
-
required: false,
|
|
1125
|
-
"default": function _default() {
|
|
1126
|
-
return {
|
|
1127
|
-
children: "children",
|
|
1128
|
-
label: "name",
|
|
1129
|
-
key: "id",
|
|
1130
|
-
value: "id"
|
|
1131
|
-
};
|
|
1132
|
-
}
|
|
1133
|
-
},
|
|
1134
|
-
multiple: {
|
|
1135
|
-
type: Boolean,
|
|
1136
|
-
required: false,
|
|
1137
|
-
"default": true
|
|
1138
|
-
}
|
|
1139
|
-
},
|
|
1140
|
-
emits: ["update:value"],
|
|
1141
|
-
setup: function setup(__props, _ref) {
|
|
1142
|
-
var emit = _ref.emit;
|
|
1143
|
-
var props = __props;
|
|
1144
|
-
/**
|
|
1145
|
-
* 获取数据-------------------------------------
|
|
1146
|
-
* */
|
|
1147
|
-
|
|
1148
|
-
var dataV = vue.ref();
|
|
1149
|
-
|
|
1150
|
-
var getData = /*#__PURE__*/function () {
|
|
1151
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
1152
|
-
var _option,
|
|
1153
|
-
_a,
|
|
1154
|
-
_yield$formatHTTP,
|
|
1155
|
-
items,
|
|
1156
|
-
_args = arguments;
|
|
1157
|
-
|
|
1158
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1159
|
-
while (1) {
|
|
1160
|
-
switch (_context.prev = _context.next) {
|
|
1161
|
-
case 0:
|
|
1162
|
-
_option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
1163
|
-
_context.next = 3;
|
|
1164
|
-
return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpSetofbookDropdown.url, _option.params), assign({
|
|
1165
|
-
data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
|
|
1166
|
-
}, API_OPTION.getIVMrpSetofbookDropdown.option)));
|
|
1167
|
-
|
|
1168
|
-
case 3:
|
|
1169
|
-
_yield$formatHTTP = _context.sent;
|
|
1170
|
-
items = _yield$formatHTTP.items;
|
|
1171
|
-
dataV.value = tranListToTreeData(items);
|
|
1172
|
-
|
|
1173
|
-
case 6:
|
|
1174
|
-
case "end":
|
|
1175
|
-
return _context.stop();
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
}, _callee);
|
|
1179
|
-
}));
|
|
1180
|
-
|
|
1181
|
-
return function getData() {
|
|
1182
|
-
return _ref2.apply(this, arguments);
|
|
1183
|
-
};
|
|
1184
|
-
}();
|
|
1185
|
-
|
|
1186
|
-
var inputV = vue.computed({
|
|
1187
|
-
get: function get() {
|
|
1188
|
-
return props.value;
|
|
1189
|
-
},
|
|
1190
|
-
set: function set(value) {
|
|
1191
|
-
emit("update:value", value);
|
|
1192
|
-
}
|
|
1193
|
-
});
|
|
1194
|
-
/**
|
|
1195
|
-
* 侦听器-------------------------------------
|
|
1196
|
-
* */
|
|
1197
|
-
|
|
1198
|
-
vue.watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
1199
|
-
var _a, _b;
|
|
1200
|
-
|
|
1201
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1202
|
-
while (1) {
|
|
1203
|
-
switch (_context2.prev = _context2.next) {
|
|
1204
|
-
case 0:
|
|
1205
|
-
// 由于打包问题,侦听器一定要在最后,否则找不到getData方法
|
|
1206
|
-
getData({
|
|
1207
|
-
params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
|
|
1208
|
-
type: 1
|
|
1209
|
-
}),
|
|
1210
|
-
data: (_b = props.data) !== null && _b !== void 0 ? _b : null
|
|
1211
|
-
});
|
|
1212
|
-
|
|
1213
|
-
case 1:
|
|
1214
|
-
case "end":
|
|
1215
|
-
return _context2.stop();
|
|
1216
|
-
}
|
|
1217
|
-
}
|
|
1218
|
-
}, _callee2);
|
|
1219
|
-
})));
|
|
1220
|
-
return function (_ctx, _cache) {
|
|
1221
|
-
var _component_a_tree_select = vue.resolveComponent("a-tree-select");
|
|
1222
|
-
|
|
1223
|
-
var _component_a_form_item = vue.resolveComponent("a-form-item");
|
|
1224
|
-
|
|
1225
|
-
return vue.openBlock(), vue.createBlock(_component_a_form_item, {
|
|
1226
|
-
name: "setOfBookIds",
|
|
1227
|
-
"wrapper-col": {
|
|
1228
|
-
span: 8
|
|
1229
|
-
},
|
|
1230
|
-
rules: [{
|
|
1231
|
-
required: true,
|
|
1232
|
-
message: '请选择所属账套'
|
|
1233
|
-
}]
|
|
1234
|
-
}, {
|
|
1235
|
-
label: vue.withCtx(function () {
|
|
1236
|
-
return [_hoisted_1$1];
|
|
1237
|
-
}),
|
|
1238
|
-
"default": vue.withCtx(function () {
|
|
1239
|
-
return [vue.createVNode(_component_a_tree_select, {
|
|
1240
|
-
value: vue.unref(inputV),
|
|
1241
|
-
"onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
|
|
1242
|
-
return vue.isRef(inputV) ? inputV.value = $event : null;
|
|
1243
|
-
}),
|
|
1244
|
-
"tree-data": dataV.value,
|
|
1245
|
-
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
1246
|
-
return triggerNode.parentNode;
|
|
1247
|
-
},
|
|
1248
|
-
placeholder: "请选择",
|
|
1249
|
-
showArrow: "",
|
|
1250
|
-
showSearch: "",
|
|
1251
|
-
"filter-option": vue.unref(filterOptionHeadle),
|
|
1252
|
-
multiple: __props.multiple,
|
|
1253
|
-
treeDefaultExpandAll: "",
|
|
1254
|
-
style: {
|
|
1255
|
-
"width": "300px"
|
|
1256
|
-
},
|
|
1257
|
-
replaceFields: __props.replaceFields
|
|
1258
|
-
}, null, 8
|
|
1259
|
-
/* PROPS */
|
|
1260
|
-
, ["value", "tree-data", "getPopupContainer", "filter-option", "multiple", "replaceFields"])];
|
|
1261
|
-
}),
|
|
1262
|
-
_: 1
|
|
1263
|
-
/* STABLE */
|
|
1264
|
-
|
|
1265
|
-
});
|
|
1266
|
-
};
|
|
1267
|
-
}
|
|
1268
|
-
});
|
|
1269
|
-
|
|
1270
|
-
script$1.__file = "src/business-ui/component/IVMrpSetofbookDropdown.vue";
|
|
1271
|
-
|
|
1272
|
-
var _hoisted_1 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
1273
|
-
"class": "text-[#0000006D] text-[14px]"
|
|
1274
|
-
}, "所属条线", -1
|
|
1275
|
-
/* HOISTED */
|
|
1276
|
-
);
|
|
1277
|
-
|
|
1278
|
-
var _hoisted_2 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
1279
|
-
"class": "text-[#0000006D] text-[14px]"
|
|
1280
|
-
}, "岗位", -1
|
|
1281
|
-
/* HOISTED */
|
|
1282
|
-
);
|
|
1283
|
-
/**
|
|
1284
|
-
* 组件定义-------------------------------------
|
|
1285
|
-
* */
|
|
1286
|
-
|
|
1287
|
-
var script = /*#__PURE__*/vue.defineComponent({
|
|
1288
|
-
__name: 'IVMrpPostDropdown',
|
|
1289
|
-
props: {
|
|
1290
|
-
value: {
|
|
1291
|
-
type: null,
|
|
1292
|
-
required: true
|
|
1293
|
-
},
|
|
1294
|
-
params: {
|
|
1295
|
-
type: Object,
|
|
1296
|
-
required: false
|
|
1297
|
-
},
|
|
1298
|
-
data: {
|
|
1299
|
-
type: Object,
|
|
1300
|
-
required: false
|
|
1301
|
-
},
|
|
1302
|
-
fieldNames: {
|
|
1303
|
-
type: null,
|
|
1304
|
-
required: false,
|
|
1305
|
-
"default": function _default() {
|
|
1306
|
-
return {
|
|
1307
|
-
label: "name",
|
|
1308
|
-
value: "id"
|
|
1309
|
-
};
|
|
1310
|
-
}
|
|
1311
|
-
}
|
|
1312
|
-
},
|
|
1313
|
-
emits: ["update:value"],
|
|
1314
|
-
setup: function setup(__props, _ref) {
|
|
1315
|
-
var emit = _ref.emit;
|
|
1316
|
-
var props = __props;
|
|
1317
|
-
/**
|
|
1318
|
-
* 获取数据-------------------------------------
|
|
1319
|
-
* */
|
|
1320
|
-
|
|
1321
|
-
var dataV = vue.ref();
|
|
1322
|
-
|
|
1323
|
-
var getData = /*#__PURE__*/function () {
|
|
1324
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
1325
|
-
var _option,
|
|
1326
|
-
_a,
|
|
1327
|
-
_yield$formatHTTP,
|
|
1328
|
-
items,
|
|
1329
|
-
_args = arguments;
|
|
1330
|
-
|
|
1331
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1332
|
-
while (1) {
|
|
1333
|
-
switch (_context.prev = _context.next) {
|
|
1334
|
-
case 0:
|
|
1335
|
-
_option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
1336
|
-
_context.next = 3;
|
|
1337
|
-
return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpPostDropdown.url, _option.params), assign({
|
|
1338
|
-
data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
|
|
1339
|
-
}, API_OPTION.getIVMrpPostDropdown.option)));
|
|
1340
|
-
|
|
1341
|
-
case 3:
|
|
1342
|
-
_yield$formatHTTP = _context.sent;
|
|
1343
|
-
items = _yield$formatHTTP.items;
|
|
1344
|
-
dataV.value = items;
|
|
1345
|
-
|
|
1346
|
-
case 6:
|
|
1347
|
-
case "end":
|
|
1348
|
-
return _context.stop();
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
}, _callee);
|
|
1352
|
-
}));
|
|
1353
|
-
|
|
1354
|
-
return function getData() {
|
|
1355
|
-
return _ref2.apply(this, arguments);
|
|
1356
|
-
};
|
|
1357
|
-
}();
|
|
1358
|
-
|
|
1359
|
-
var inputV = vue.computed({
|
|
1360
|
-
get: function get() {
|
|
1361
|
-
return props.value;
|
|
1362
|
-
},
|
|
1363
|
-
set: function set(value) {
|
|
1364
|
-
emit("update:value", value);
|
|
1365
|
-
}
|
|
1366
|
-
});
|
|
1367
|
-
/**
|
|
1368
|
-
* 侦听器-------------------------------------
|
|
1369
|
-
* */
|
|
1370
|
-
|
|
1371
|
-
vue.watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
1372
|
-
var _a, _b;
|
|
1373
|
-
|
|
1374
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1375
|
-
while (1) {
|
|
1376
|
-
switch (_context2.prev = _context2.next) {
|
|
1377
|
-
case 0:
|
|
1378
|
-
// 由于打包问题,侦听器一定要在最后,否则找不到getData方法
|
|
1379
|
-
getData({
|
|
1380
|
-
params: (_a = props.params) !== null && _a !== void 0 ? _a : null,
|
|
1381
|
-
data: (_b = props.data) !== null && _b !== void 0 ? _b : null
|
|
1382
|
-
});
|
|
1383
|
-
|
|
1384
|
-
case 1:
|
|
1385
|
-
case "end":
|
|
1386
|
-
return _context2.stop();
|
|
1387
|
-
}
|
|
1388
|
-
}
|
|
1389
|
-
}, _callee2);
|
|
1390
|
-
})));
|
|
1391
|
-
return function (_ctx, _cache) {
|
|
1392
|
-
var _component_a_select = vue.resolveComponent("a-select");
|
|
1393
|
-
|
|
1394
|
-
var _component_a_form_item = vue.resolveComponent("a-form-item");
|
|
1395
|
-
|
|
1396
|
-
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [vue.createVNode(_component_a_form_item, {
|
|
1397
|
-
name: "lineIds",
|
|
1398
|
-
"wrapper-col": {
|
|
1399
|
-
span: 8
|
|
1400
|
-
},
|
|
1401
|
-
rules: [{
|
|
1402
|
-
required: true,
|
|
1403
|
-
message: '请选择所属条线'
|
|
1404
|
-
}]
|
|
1405
|
-
}, {
|
|
1406
|
-
label: vue.withCtx(function () {
|
|
1407
|
-
return [_hoisted_1];
|
|
1408
|
-
}),
|
|
1409
|
-
"default": vue.withCtx(function () {
|
|
1410
|
-
return [vue.createVNode(_component_a_select, {
|
|
1411
|
-
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
1412
|
-
return triggerNode.parentNode;
|
|
1413
|
-
},
|
|
1414
|
-
value: vue.unref(inputV),
|
|
1415
|
-
"onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
|
|
1416
|
-
return vue.isRef(inputV) ? inputV.value = $event : null;
|
|
1417
|
-
}),
|
|
1418
|
-
mode: "multiple",
|
|
1419
|
-
style: {
|
|
1420
|
-
"width": "100%"
|
|
1421
|
-
},
|
|
1422
|
-
placeholder: "请选择",
|
|
1423
|
-
options: dataV.value,
|
|
1424
|
-
fieldNames: __props.fieldNames
|
|
1425
|
-
}, null, 8
|
|
1426
|
-
/* PROPS */
|
|
1427
|
-
, ["getPopupContainer", "value", "options", "fieldNames"])];
|
|
1428
|
-
}),
|
|
1429
|
-
_: 1
|
|
1430
|
-
/* STABLE */
|
|
1431
|
-
|
|
1432
|
-
}), vue.createVNode(_component_a_form_item, {
|
|
1433
|
-
name: "positionId",
|
|
1434
|
-
rules: [{
|
|
1435
|
-
required: true,
|
|
1436
|
-
message: '请选择岗位'
|
|
1437
|
-
}]
|
|
1438
|
-
}, {
|
|
1439
|
-
label: vue.withCtx(function () {
|
|
1440
|
-
return [_hoisted_2];
|
|
1441
|
-
}),
|
|
1442
|
-
"default": vue.withCtx(function () {
|
|
1443
|
-
return [vue.createVNode(_component_a_select, {
|
|
1444
|
-
value: vue.unref(inputV),
|
|
1445
|
-
"onUpdate:value": _cache[1] || (_cache[1] = function ($event) {
|
|
1446
|
-
return vue.isRef(inputV) ? inputV.value = $event : null;
|
|
1447
|
-
}),
|
|
1448
|
-
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
1449
|
-
return triggerNode.parentNode;
|
|
1450
|
-
},
|
|
1451
|
-
allowClear: "",
|
|
1452
|
-
style: {
|
|
1453
|
-
"width": "300px"
|
|
1454
|
-
},
|
|
1455
|
-
placeholder: "请选择",
|
|
1456
|
-
showSearch: "",
|
|
1457
|
-
showArrow: "",
|
|
1458
|
-
options: dataV.value,
|
|
1459
|
-
"filter-option": vue.unref(filterOptionHeadle),
|
|
1460
|
-
fieldNames: __props.fieldNames
|
|
1461
|
-
}, null, 8
|
|
1462
|
-
/* PROPS */
|
|
1463
|
-
, ["value", "getPopupContainer", "options", "filter-option", "fieldNames"])];
|
|
1464
|
-
}),
|
|
1465
|
-
_: 1
|
|
1466
|
-
/* STABLE */
|
|
1467
|
-
|
|
1468
|
-
})], 64
|
|
1469
|
-
/* STABLE_FRAGMENT */
|
|
1470
|
-
);
|
|
1471
|
-
};
|
|
1472
|
-
}
|
|
1473
|
-
});
|
|
1474
|
-
|
|
1475
|
-
script.__file = "src/business-ui/component/IVMrpPostDropdown.vue";
|
|
1476
|
-
|
|
1477
|
-
/*
|
|
1478
|
-
* @Author: Mr.Cong Wei
|
|
1479
|
-
* @Date: 2022-08-08 18:47:06
|
|
1480
|
-
* @LastEditTime: 2022-08-11 10:33:03
|
|
1481
|
-
*/
|
|
1482
|
-
var components = [script$5, script$4, script$3, script$2, script$1, script];
|
|
1483
|
-
installComponents(); // 单独引用
|
|
1484
|
-
|
|
1485
|
-
function installComponents() {
|
|
1486
|
-
components.forEach(function (component) {
|
|
1487
|
-
component.install = function (app) {
|
|
1488
|
-
app.component(component.name, component);
|
|
1489
|
-
};
|
|
1490
|
-
});
|
|
1491
|
-
} // 全局引用
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
var install = function install(app) {
|
|
1495
|
-
components.forEach(function (component) {
|
|
1496
|
-
app.component(component.name, component);
|
|
1497
|
-
});
|
|
1498
|
-
};
|
|
1499
|
-
|
|
1500
|
-
var cAll = {
|
|
1501
|
-
install: install
|
|
1502
|
-
};
|
|
1503
|
-
|
|
1504
|
-
exports.IVMrpLineDropdown = script$2;
|
|
1505
|
-
exports.IVMrpModal = script$5;
|
|
1506
|
-
exports.IVMrpOrgDropdown = script$4;
|
|
1507
|
-
exports.IVMrpPostDropdown = script;
|
|
1508
|
-
exports.IVMrpProdBaseDropdown = script$3;
|
|
1509
|
-
exports.IVMrpSetofbookDropdown = script$1;
|
|
1510
|
-
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,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))])):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;
|