@bit-sun/business-component 4.2.0-alpha.6.9 → 4.2.0-alpha.jw-1
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/dist/components/Functional/DataValidation/index.d.ts +1 -1
- package/dist/index.esm.js +879 -1110
- package/dist/index.js +879 -1110
- package/package.json +1 -1
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +2 -2
- package/src/components/Business/BsLayouts/index.tsx +2 -2
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +26 -2
- package/src/components/Functional/DataValidation/index.tsx +22 -3
package/dist/index.js
CHANGED
|
@@ -211,8 +211,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
211
211
|
r,
|
|
212
212
|
i = _objectWithoutPropertiesLoose(e, t);
|
|
213
213
|
if (Object.getOwnPropertySymbols) {
|
|
214
|
-
var
|
|
215
|
-
for (r = 0; r <
|
|
214
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
215
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
216
216
|
}
|
|
217
217
|
return i;
|
|
218
218
|
}
|
|
@@ -220,7 +220,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
220
220
|
if (null == r) return {};
|
|
221
221
|
var t = {};
|
|
222
222
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
223
|
-
if (e.
|
|
223
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
224
224
|
t[n] = r[n];
|
|
225
225
|
}
|
|
226
226
|
return t;
|
|
@@ -230,306 +230,113 @@ function _possibleConstructorReturn(t, e) {
|
|
|
230
230
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
231
231
|
return _assertThisInitialized(t);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
233
|
+
function _regenerator() {
|
|
234
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
235
|
+
var e,
|
|
236
|
+
t,
|
|
237
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
238
|
+
n = r.iterator || "@@iterator",
|
|
239
|
+
o = r.toStringTag || "@@toStringTag";
|
|
240
|
+
function i(r, n, o, i) {
|
|
241
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
242
|
+
u = Object.create(c.prototype);
|
|
243
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
244
|
+
var i,
|
|
245
|
+
c,
|
|
246
|
+
u,
|
|
247
|
+
f = 0,
|
|
248
|
+
p = o || [],
|
|
249
|
+
y = !1,
|
|
250
|
+
G = {
|
|
251
|
+
p: 0,
|
|
252
|
+
n: 0,
|
|
253
|
+
v: e,
|
|
254
|
+
a: d,
|
|
255
|
+
f: d.bind(e, 4),
|
|
256
|
+
d: function (t, r) {
|
|
257
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
function d(r, n) {
|
|
261
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
262
|
+
var o,
|
|
263
|
+
i = p[t],
|
|
264
|
+
d = G.p,
|
|
265
|
+
l = i[2];
|
|
266
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
267
|
+
}
|
|
268
|
+
if (o || r > 1) return a;
|
|
269
|
+
throw y = !0, n;
|
|
270
|
+
}
|
|
271
|
+
return function (o, p, l) {
|
|
272
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
273
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
274
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
275
|
+
try {
|
|
276
|
+
if (f = 2, i) {
|
|
277
|
+
if (c || (o = "next"), t = i[o]) {
|
|
278
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
279
|
+
if (!t.done) return t;
|
|
280
|
+
u = t.value, c < 2 && (c = 0);
|
|
281
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
282
|
+
i = e;
|
|
283
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
284
|
+
} catch (t) {
|
|
285
|
+
i = e, c = 1, u = t;
|
|
286
|
+
} finally {
|
|
287
|
+
f = 1;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
return {
|
|
291
|
+
value: t,
|
|
292
|
+
done: y
|
|
293
|
+
};
|
|
281
294
|
};
|
|
282
|
-
}
|
|
295
|
+
}(r, o, i), !0), u;
|
|
283
296
|
}
|
|
284
|
-
|
|
285
|
-
var h = "suspendedStart",
|
|
286
|
-
l = "suspendedYield",
|
|
287
|
-
f = "executing",
|
|
288
|
-
s = "completed",
|
|
289
|
-
y = {};
|
|
297
|
+
var a = {};
|
|
290
298
|
function Generator() {}
|
|
291
299
|
function GeneratorFunction() {}
|
|
292
300
|
function GeneratorFunctionPrototype() {}
|
|
293
|
-
|
|
294
|
-
|
|
301
|
+
t = Object.getPrototypeOf;
|
|
302
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
303
|
+
return this;
|
|
304
|
+
}), t),
|
|
305
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
306
|
+
function f(e) {
|
|
307
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
308
|
+
}
|
|
309
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
295
310
|
return this;
|
|
296
|
-
})
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
300
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
301
|
-
function defineIteratorMethods(t) {
|
|
302
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
303
|
-
define(t, e, function (t) {
|
|
304
|
-
return this._invoke(e, t);
|
|
305
|
-
});
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
function AsyncIterator(t, e) {
|
|
309
|
-
function invoke(r, o, i, a) {
|
|
310
|
-
var c = tryCatch(t[r], t, o);
|
|
311
|
-
if ("throw" !== c.type) {
|
|
312
|
-
var u = c.arg,
|
|
313
|
-
h = u.value;
|
|
314
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
315
|
-
invoke("next", t, i, a);
|
|
316
|
-
}, function (t) {
|
|
317
|
-
invoke("throw", t, i, a);
|
|
318
|
-
}) : e.resolve(h).then(function (t) {
|
|
319
|
-
u.value = t, i(u);
|
|
320
|
-
}, function (t) {
|
|
321
|
-
return invoke("throw", t, i, a);
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
a(c.arg);
|
|
325
|
-
}
|
|
326
|
-
var r;
|
|
327
|
-
o(this, "_invoke", {
|
|
328
|
-
value: function (t, n) {
|
|
329
|
-
function callInvokeWithMethodAndArg() {
|
|
330
|
-
return new e(function (e, r) {
|
|
331
|
-
invoke(t, n, e, r);
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
335
|
-
}
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
function makeInvokeMethod(e, r, n) {
|
|
339
|
-
var o = h;
|
|
340
|
-
return function (i, a) {
|
|
341
|
-
if (o === f) throw Error("Generator is already running");
|
|
342
|
-
if (o === s) {
|
|
343
|
-
if ("throw" === i) throw a;
|
|
344
|
-
return {
|
|
345
|
-
value: t,
|
|
346
|
-
done: !0
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
for (n.method = i, n.arg = a;;) {
|
|
350
|
-
var c = n.delegate;
|
|
351
|
-
if (c) {
|
|
352
|
-
var u = maybeInvokeDelegate(c, n);
|
|
353
|
-
if (u) {
|
|
354
|
-
if (u === y) continue;
|
|
355
|
-
return u;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
359
|
-
if (o === h) throw o = s, n.arg;
|
|
360
|
-
n.dispatchException(n.arg);
|
|
361
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
362
|
-
o = f;
|
|
363
|
-
var p = tryCatch(e, r, n);
|
|
364
|
-
if ("normal" === p.type) {
|
|
365
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
366
|
-
return {
|
|
367
|
-
value: p.arg,
|
|
368
|
-
done: n.done
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
372
|
-
}
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
function maybeInvokeDelegate(e, r) {
|
|
376
|
-
var n = r.method,
|
|
377
|
-
o = e.iterator[n];
|
|
378
|
-
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
379
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
380
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
381
|
-
var a = i.arg;
|
|
382
|
-
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
383
|
-
}
|
|
384
|
-
function pushTryEntry(t) {
|
|
385
|
-
var e = {
|
|
386
|
-
tryLoc: t[0]
|
|
387
|
-
};
|
|
388
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
389
|
-
}
|
|
390
|
-
function resetTryEntry(t) {
|
|
391
|
-
var e = t.completion || {};
|
|
392
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
393
|
-
}
|
|
394
|
-
function Context(t) {
|
|
395
|
-
this.tryEntries = [{
|
|
396
|
-
tryLoc: "root"
|
|
397
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
398
|
-
}
|
|
399
|
-
function values(e) {
|
|
400
|
-
if (e || "" === e) {
|
|
401
|
-
var r = e[a];
|
|
402
|
-
if (r) return r.call(e);
|
|
403
|
-
if ("function" == typeof e.next) return e;
|
|
404
|
-
if (!isNaN(e.length)) {
|
|
405
|
-
var o = -1,
|
|
406
|
-
i = function next() {
|
|
407
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
408
|
-
return next.value = t, next.done = !0, next;
|
|
409
|
-
};
|
|
410
|
-
return i.next = i;
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
414
|
-
}
|
|
415
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
416
|
-
value: GeneratorFunctionPrototype,
|
|
417
|
-
configurable: !0
|
|
418
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
419
|
-
value: GeneratorFunction,
|
|
420
|
-
configurable: !0
|
|
421
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
422
|
-
var e = "function" == typeof t && t.constructor;
|
|
423
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
424
|
-
}, e.mark = function (t) {
|
|
425
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
426
|
-
}, e.awrap = function (t) {
|
|
311
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
312
|
+
return "[object Generator]";
|
|
313
|
+
}), (_regenerator = function () {
|
|
427
314
|
return {
|
|
428
|
-
|
|
315
|
+
w: i,
|
|
316
|
+
m: f
|
|
429
317
|
};
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
r = [];
|
|
445
|
-
for (var n in e) r.push(n);
|
|
446
|
-
return r.reverse(), function next() {
|
|
447
|
-
for (; r.length;) {
|
|
448
|
-
var t = r.pop();
|
|
449
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
450
|
-
}
|
|
451
|
-
return next.done = !0, next;
|
|
452
|
-
};
|
|
453
|
-
}, e.values = values, Context.prototype = {
|
|
454
|
-
constructor: Context,
|
|
455
|
-
reset: function (e) {
|
|
456
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
457
|
-
},
|
|
458
|
-
stop: function () {
|
|
459
|
-
this.done = !0;
|
|
460
|
-
var t = this.tryEntries[0].completion;
|
|
461
|
-
if ("throw" === t.type) throw t.arg;
|
|
462
|
-
return this.rval;
|
|
463
|
-
},
|
|
464
|
-
dispatchException: function (e) {
|
|
465
|
-
if (this.done) throw e;
|
|
466
|
-
var r = this;
|
|
467
|
-
function handle(n, o) {
|
|
468
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
469
|
-
}
|
|
470
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
471
|
-
var i = this.tryEntries[o],
|
|
472
|
-
a = i.completion;
|
|
473
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
474
|
-
if (i.tryLoc <= this.prev) {
|
|
475
|
-
var c = n.call(i, "catchLoc"),
|
|
476
|
-
u = n.call(i, "finallyLoc");
|
|
477
|
-
if (c && u) {
|
|
478
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
479
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
480
|
-
} else if (c) {
|
|
481
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
482
|
-
} else {
|
|
483
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
484
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
},
|
|
489
|
-
abrupt: function (t, e) {
|
|
490
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
491
|
-
var o = this.tryEntries[r];
|
|
492
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
493
|
-
var i = o;
|
|
494
|
-
break;
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
498
|
-
var a = i ? i.completion : {};
|
|
499
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
500
|
-
},
|
|
501
|
-
complete: function (t, e) {
|
|
502
|
-
if ("throw" === t.type) throw t.arg;
|
|
503
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
504
|
-
},
|
|
505
|
-
finish: function (t) {
|
|
506
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
507
|
-
var r = this.tryEntries[e];
|
|
508
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
509
|
-
}
|
|
510
|
-
},
|
|
511
|
-
catch: function (t) {
|
|
512
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
513
|
-
var r = this.tryEntries[e];
|
|
514
|
-
if (r.tryLoc === t) {
|
|
515
|
-
var n = r.completion;
|
|
516
|
-
if ("throw" === n.type) {
|
|
517
|
-
var o = n.arg;
|
|
518
|
-
resetTryEntry(r);
|
|
519
|
-
}
|
|
520
|
-
return o;
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
throw Error("illegal catch attempt");
|
|
524
|
-
},
|
|
525
|
-
delegateYield: function (e, r, n) {
|
|
526
|
-
return this.delegate = {
|
|
527
|
-
iterator: values(e),
|
|
528
|
-
resultName: r,
|
|
529
|
-
nextLoc: n
|
|
530
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
318
|
+
})();
|
|
319
|
+
}
|
|
320
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
321
|
+
var i = Object.defineProperty;
|
|
322
|
+
try {
|
|
323
|
+
i({}, "", {});
|
|
324
|
+
} catch (e) {
|
|
325
|
+
i = 0;
|
|
326
|
+
}
|
|
327
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
328
|
+
function o(r, n) {
|
|
329
|
+
_regeneratorDefine(e, r, function (e) {
|
|
330
|
+
return this._invoke(r, n, e);
|
|
331
|
+
});
|
|
531
332
|
}
|
|
532
|
-
|
|
333
|
+
r ? i ? i(e, r, {
|
|
334
|
+
value: n,
|
|
335
|
+
enumerable: !t,
|
|
336
|
+
configurable: !t,
|
|
337
|
+
writable: !t
|
|
338
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
339
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
533
340
|
}
|
|
534
341
|
function _setPrototypeOf(t, e) {
|
|
535
342
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -1602,22 +1409,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1602
1409
|
// sheepMap是表头字段中英文映射
|
|
1603
1410
|
// sheetCount:表的数量,默认一张
|
|
1604
1411
|
var resolveFile = /*#__PURE__*/function () {
|
|
1605
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
1412
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file) {
|
|
1606
1413
|
var config,
|
|
1607
1414
|
data,
|
|
1608
1415
|
_args = arguments;
|
|
1609
|
-
return
|
|
1610
|
-
while (1) switch (_context.
|
|
1416
|
+
return _regenerator().w(function (_context) {
|
|
1417
|
+
while (1) switch (_context.n) {
|
|
1611
1418
|
case 0:
|
|
1612
1419
|
config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
|
|
1613
1420
|
sheetMap: [],
|
|
1614
1421
|
sheetCount: 1
|
|
1615
1422
|
};
|
|
1616
|
-
_context.
|
|
1423
|
+
_context.n = 1;
|
|
1617
1424
|
return analyseExcelToByte(file);
|
|
1618
|
-
case
|
|
1619
|
-
data = _context.
|
|
1620
|
-
return _context.
|
|
1425
|
+
case 1:
|
|
1426
|
+
data = _context.v;
|
|
1427
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
1621
1428
|
var workbook = XLSX.read(data, {
|
|
1622
1429
|
type: 'binary'
|
|
1623
1430
|
});
|
|
@@ -1629,9 +1436,6 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1629
1436
|
var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
|
|
1630
1437
|
resolve(outdata);
|
|
1631
1438
|
}));
|
|
1632
|
-
case 5:
|
|
1633
|
-
case "end":
|
|
1634
|
-
return _context.stop();
|
|
1635
1439
|
}
|
|
1636
1440
|
}, _callee);
|
|
1637
1441
|
}));
|
|
@@ -1641,41 +1445,40 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1641
1445
|
}();
|
|
1642
1446
|
//读取文件
|
|
1643
1447
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1644
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
1448
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1645
1449
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1646
|
-
return
|
|
1647
|
-
while (1) switch (_context2.
|
|
1450
|
+
return _regenerator().w(function (_context2) {
|
|
1451
|
+
while (1) switch (_context2.n) {
|
|
1648
1452
|
case 0:
|
|
1649
1453
|
_ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
|
|
1650
1454
|
if (!(Array.isArray(fileList) && fileList.length > 0)) {
|
|
1651
|
-
_context2.
|
|
1455
|
+
_context2.n = 3;
|
|
1652
1456
|
break;
|
|
1653
1457
|
}
|
|
1654
1458
|
nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
|
|
1655
|
-
_context2.
|
|
1459
|
+
_context2.n = 1;
|
|
1656
1460
|
return resolveFile(nowFile.originFileObj, {
|
|
1657
1461
|
sheetMap: fieldMappingReverse(sheetMap),
|
|
1658
1462
|
sheetCount: 1
|
|
1659
1463
|
});
|
|
1660
|
-
case
|
|
1661
|
-
data2 = _context2.
|
|
1464
|
+
case 1:
|
|
1465
|
+
data2 = _context2.v;
|
|
1662
1466
|
data = data2[0];
|
|
1663
1467
|
if (data.length) {
|
|
1664
|
-
_context2.
|
|
1468
|
+
_context2.n = 2;
|
|
1665
1469
|
break;
|
|
1666
1470
|
}
|
|
1667
1471
|
antd.message.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
|
|
1668
|
-
return _context2.
|
|
1669
|
-
case
|
|
1472
|
+
return _context2.a(2);
|
|
1473
|
+
case 2:
|
|
1670
1474
|
if (callback) callback(data);
|
|
1671
1475
|
!callback && antd.message.success("\u5BFC\u5165\u6210\u529F");
|
|
1672
|
-
return _context2.
|
|
1673
|
-
case
|
|
1476
|
+
return _context2.a(2, data);
|
|
1477
|
+
case 3:
|
|
1674
1478
|
antd.message.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
|
|
1675
|
-
return _context2.
|
|
1676
|
-
case
|
|
1677
|
-
|
|
1678
|
-
return _context2.stop();
|
|
1479
|
+
return _context2.a(2);
|
|
1480
|
+
case 4:
|
|
1481
|
+
return _context2.a(2);
|
|
1679
1482
|
}
|
|
1680
1483
|
}, _callee2);
|
|
1681
1484
|
}));
|
|
@@ -2627,17 +2430,14 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2627
2430
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2628
2431
|
};
|
|
2629
2432
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2630
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
2631
|
-
return
|
|
2632
|
-
while (1) switch (_context.
|
|
2433
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
|
|
2434
|
+
return _regenerator().w(function (_context) {
|
|
2435
|
+
while (1) switch (_context.n) {
|
|
2633
2436
|
case 0:
|
|
2634
|
-
return _context.
|
|
2437
|
+
return _context.a(2, Promise.resolve({
|
|
2635
2438
|
data: response,
|
|
2636
2439
|
status: response.status
|
|
2637
2440
|
}));
|
|
2638
|
-
case 1:
|
|
2639
|
-
case "end":
|
|
2640
|
-
return _context.stop();
|
|
2641
2441
|
}
|
|
2642
2442
|
}, _callee);
|
|
2643
2443
|
}));
|
|
@@ -3010,88 +2810,108 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3010
2810
|
data: luckysheet.transToCellData(newData)
|
|
3011
2811
|
});
|
|
3012
2812
|
};
|
|
3013
|
-
_this.resetData = function () {
|
|
2813
|
+
_this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
3014
2814
|
var _customerColumnsMappi;
|
|
3015
|
-
var _this$props
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt,
|
|
3023
|
-
customerColumnsMapping = _this$props.customerColumnsMapping;
|
|
3024
|
-
var resultData = _this.getData().filter(function (d) {
|
|
3025
|
-
return ___default['default'].compact(Object.values(d)).length;
|
|
3026
|
-
});
|
|
3027
|
-
var resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
|
|
3028
|
-
return !!(c === null || c === void 0 ? void 0 : c.name);
|
|
3029
|
-
})) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
|
|
3030
|
-
return c.name;
|
|
3031
|
-
}) : columns;
|
|
3032
|
-
// 处理业务参数
|
|
3033
|
-
var otherParams = {};
|
|
3034
|
-
if (isBrandAuth) {
|
|
3035
|
-
otherParams = {
|
|
3036
|
-
brandAuth: 'ctl-withAuth'
|
|
3037
|
-
};
|
|
3038
|
-
}
|
|
3039
|
-
requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
|
|
3040
|
-
columns: resultColumns,
|
|
3041
|
-
data: resultData,
|
|
3042
|
-
checkStockNum: isCheckStockNum
|
|
3043
|
-
})).then(function (result) {
|
|
3044
|
-
result = result.data;
|
|
3045
|
-
if (judgeIsRequestError(result)) {
|
|
3046
|
-
antd.message.error(result.msg);
|
|
3047
|
-
return;
|
|
3048
|
-
}
|
|
3049
|
-
var items = _this.state.items;
|
|
3050
|
-
var validIndex = items.length;
|
|
3051
|
-
var res = result.data;
|
|
3052
|
-
var sheetData = luckysheet.getSheetData();
|
|
3053
|
-
sheetData.map(function (item, index) {
|
|
3054
|
-
if (!res[index]) return item;
|
|
3055
|
-
var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
|
|
3056
|
-
return i === 'skuCode';
|
|
3057
|
-
});
|
|
3058
|
-
if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
|
|
3059
|
-
return i === 'skuCode';
|
|
3060
|
-
})) && item[changeVMIndex].v !== res[index].skuCode) {
|
|
3061
|
-
item[changeVMIndex].v = res[index].skuCode;
|
|
3062
|
-
item[changeVMIndex].m = res[index].skuCode;
|
|
3063
|
-
}
|
|
3064
|
-
if (res[index].flag) {
|
|
3065
|
-
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
3066
|
-
v: '通过',
|
|
3067
|
-
m: '通过',
|
|
3068
|
-
fc: 'green' //字体颜色为 "#990000"
|
|
3069
|
-
});
|
|
3070
|
-
} else {
|
|
3071
|
-
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
3072
|
-
v: res[index].checkResults,
|
|
3073
|
-
m: res[index].checkResults,
|
|
3074
|
-
fc: 'red' //字体颜色为 "#990000"
|
|
2815
|
+
var _this$props, validDataUrl, validDataParams, updateData, columns, isBrandAuth, _this$props$isCheckSt, isCheckStockNum, customerColumnsMapping, checkSharedValue, beforeCheckCallback, resultData, resultColumns, otherParams;
|
|
2816
|
+
return _regenerator().w(function (_context) {
|
|
2817
|
+
while (1) switch (_context.n) {
|
|
2818
|
+
case 0:
|
|
2819
|
+
_this$props = _this.props, validDataUrl = _this$props.validDataUrl, validDataParams = _this$props.validDataParams, updateData = _this$props.updateData, columns = _this$props.columns, isBrandAuth = _this$props.isBrandAuth, _this$props$isCheckSt = _this$props.isCheckStockNum, isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt, customerColumnsMapping = _this$props.customerColumnsMapping, checkSharedValue = _this$props.checkSharedValue, beforeCheckCallback = _this$props.beforeCheckCallback;
|
|
2820
|
+
resultData = _this.getData().filter(function (d) {
|
|
2821
|
+
return ___default['default'].compact(Object.values(d)).length;
|
|
3075
2822
|
});
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
2823
|
+
resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
|
|
2824
|
+
return !!(c === null || c === void 0 ? void 0 : c.name);
|
|
2825
|
+
})) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
|
|
2826
|
+
return c.name;
|
|
2827
|
+
}) : columns; // 处理业务参数
|
|
2828
|
+
otherParams = {};
|
|
2829
|
+
if (isBrandAuth) {
|
|
2830
|
+
otherParams = {
|
|
2831
|
+
brandAuth: 'ctl-withAuth'
|
|
2832
|
+
};
|
|
2833
|
+
}
|
|
2834
|
+
// 处理校验参数,隐藏校验参数(公用的部分)
|
|
2835
|
+
if (checkSharedValue) {
|
|
2836
|
+
resultData = resultData.map(function (d) {
|
|
2837
|
+
return _objectSpread2(_objectSpread2({}, d), checkSharedValue);
|
|
2838
|
+
});
|
|
2839
|
+
}
|
|
2840
|
+
// 调用回调函数
|
|
2841
|
+
if (!beforeCheckCallback) {
|
|
2842
|
+
_context.n = 2;
|
|
2843
|
+
break;
|
|
2844
|
+
}
|
|
2845
|
+
_context.n = 1;
|
|
2846
|
+
return beforeCheckCallback(resultData);
|
|
2847
|
+
case 1:
|
|
2848
|
+
resultData = _context.v;
|
|
2849
|
+
if (resultData) {
|
|
2850
|
+
_context.n = 2;
|
|
2851
|
+
break;
|
|
2852
|
+
}
|
|
2853
|
+
return _context.a(2);
|
|
2854
|
+
case 2:
|
|
2855
|
+
requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
|
|
2856
|
+
columns: resultColumns,
|
|
2857
|
+
data: resultData,
|
|
2858
|
+
checkStockNum: isCheckStockNum
|
|
2859
|
+
})).then(function (result) {
|
|
2860
|
+
result = result.data;
|
|
2861
|
+
if (judgeIsRequestError(result)) {
|
|
2862
|
+
antd.message.error(result.msg);
|
|
2863
|
+
return;
|
|
2864
|
+
}
|
|
2865
|
+
var items = _this.state.items;
|
|
2866
|
+
var validIndex = items.length;
|
|
2867
|
+
var res = result.data;
|
|
2868
|
+
var sheetData = luckysheet.getSheetData();
|
|
2869
|
+
sheetData.map(function (item, index) {
|
|
2870
|
+
if (!res[index]) return item;
|
|
2871
|
+
var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
|
|
2872
|
+
return i === 'skuCode';
|
|
2873
|
+
});
|
|
2874
|
+
if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
|
|
2875
|
+
return i === 'skuCode';
|
|
2876
|
+
})) && item[changeVMIndex].v !== res[index].skuCode) {
|
|
2877
|
+
item[changeVMIndex].v = res[index].skuCode;
|
|
2878
|
+
item[changeVMIndex].m = res[index].skuCode;
|
|
2879
|
+
}
|
|
2880
|
+
if (res[index].flag) {
|
|
2881
|
+
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
2882
|
+
v: '通过',
|
|
2883
|
+
m: '通过',
|
|
2884
|
+
fc: 'green' //字体颜色为 "#990000"
|
|
2885
|
+
});
|
|
2886
|
+
} else {
|
|
2887
|
+
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
2888
|
+
v: res[index].checkResults,
|
|
2889
|
+
m: res[index].checkResults,
|
|
2890
|
+
fc: 'red' //字体颜色为 "#990000"
|
|
2891
|
+
});
|
|
2892
|
+
}
|
|
2893
|
+
item[validIndex].ct = {
|
|
2894
|
+
fa: 'General',
|
|
2895
|
+
t: 'g'
|
|
2896
|
+
};
|
|
2897
|
+
});
|
|
2898
|
+
// sheetData.map((item, index) => {
|
|
2899
|
+
// luckysheet.setCellValue(index + 1, 4, 345)
|
|
2900
|
+
// })
|
|
2901
|
+
luckysheet.create(_this.setConfig(luckysheet.transToCellData(sheetData)));
|
|
2902
|
+
_this.setState({
|
|
2903
|
+
data: luckysheet.transToCellData(sheetData),
|
|
2904
|
+
errorListCheck: false,
|
|
2905
|
+
resultData: res
|
|
2906
|
+
});
|
|
2907
|
+
console.log(setExportData);
|
|
2908
|
+
setExportData([123123]);
|
|
2909
|
+
}).catch(function (err) {});
|
|
2910
|
+
case 3:
|
|
2911
|
+
return _context.a(2);
|
|
2912
|
+
}
|
|
2913
|
+
}, _callee);
|
|
2914
|
+
}));
|
|
3095
2915
|
_this.filterData = function (type) {
|
|
3096
2916
|
var _this$state = _this.state,
|
|
3097
2917
|
showErrorData = _this$state.showErrorData,
|
|
@@ -3248,8 +3068,8 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3248
3068
|
if (!(res === null || res === void 0 ? void 0 : res[index])) return item;
|
|
3249
3069
|
var rowItem = res[index];
|
|
3250
3070
|
item === null || item === void 0 ? void 0 : item.forEach(function (element, colIndex) {
|
|
3251
|
-
var
|
|
3252
|
-
var colKey = (
|
|
3071
|
+
var _ref5;
|
|
3072
|
+
var colKey = (_ref5 = Object.keys(rowItem) || []) === null || _ref5 === void 0 ? void 0 : _ref5[colIndex];
|
|
3253
3073
|
if (!(rowItem === null || rowItem === void 0 ? void 0 : rowItem[colKey])) return element;
|
|
3254
3074
|
element.m = rowItem[colKey];
|
|
3255
3075
|
element.v = rowItem[colKey];
|
|
@@ -3325,10 +3145,10 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3325
3145
|
notExcelImport = _this$props6.notExcelImport,
|
|
3326
3146
|
excelImportConfig = _this$props6.excelImportConfig,
|
|
3327
3147
|
getTemplate = _this$props6.getTemplate;
|
|
3328
|
-
var
|
|
3329
|
-
size =
|
|
3330
|
-
accept =
|
|
3331
|
-
suffixRule =
|
|
3148
|
+
var _ref6 = excelImportConfig || {},
|
|
3149
|
+
size = _ref6.size,
|
|
3150
|
+
accept = _ref6.accept,
|
|
3151
|
+
suffixRule = _ref6.suffixRule;
|
|
3332
3152
|
var totalSummary = this.getCount();
|
|
3333
3153
|
var sheetMap = this.getSheetMap();
|
|
3334
3154
|
var callBackFun = this.importExcelToLuckySheet;
|
|
@@ -3354,9 +3174,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3354
3174
|
var _Object$keys;
|
|
3355
3175
|
if (!(sheetMap && ((_Object$keys = Object.keys(sheetMap)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length))) return;
|
|
3356
3176
|
if (info.file.status !== 'uploading') {
|
|
3357
|
-
var
|
|
3358
|
-
file =
|
|
3359
|
-
fileList =
|
|
3177
|
+
var _ref7 = info || {},
|
|
3178
|
+
file = _ref7.file,
|
|
3179
|
+
fileList = _ref7.fileList;
|
|
3360
3180
|
readerXlsxToList(file, fileList, null, null, {
|
|
3361
3181
|
callback: function callback(excelData) {
|
|
3362
3182
|
callBackFun(excelData);
|
|
@@ -4780,27 +4600,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4780
4600
|
popvalue = _useState8[0],
|
|
4781
4601
|
setPopValue = _useState8[1];
|
|
4782
4602
|
var _useState9 = React$1.useState([]),
|
|
4783
|
-
|
|
4784
|
-
source =
|
|
4785
|
-
setSource =
|
|
4603
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
4604
|
+
source = _useState0[0],
|
|
4605
|
+
setSource = _useState0[1];
|
|
4786
4606
|
var _useDebounceFn = ahooks.useDebounceFn(function () {
|
|
4787
4607
|
getData();
|
|
4788
4608
|
}, {
|
|
4789
4609
|
wait: 1000
|
|
4790
4610
|
}),
|
|
4791
4611
|
run = _useDebounceFn.run;
|
|
4792
|
-
var
|
|
4612
|
+
var _useState1 = React$1.useState(false),
|
|
4613
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
4614
|
+
fetching = _useState10[0],
|
|
4615
|
+
setFetching = _useState10[1];
|
|
4616
|
+
var _useState11 = React$1.useState(''),
|
|
4793
4617
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
var _useState13 = React$1.useState(
|
|
4618
|
+
searchValue = _useState12[0],
|
|
4619
|
+
setSearchValue = _useState12[1];
|
|
4620
|
+
var _useState13 = React$1.useState(resultSourceKey),
|
|
4797
4621
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
var _useState15 = React$1.useState(resultSourceKey),
|
|
4801
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
4802
|
-
uniqueValue = _useState16[0],
|
|
4803
|
-
setUniqueValue = _useState16[1];
|
|
4622
|
+
uniqueValue = _useState14[0],
|
|
4623
|
+
setUniqueValue = _useState14[1];
|
|
4804
4624
|
React$1.useEffect(function () {
|
|
4805
4625
|
setPopValue(value);
|
|
4806
4626
|
onValueChange(value);
|
|
@@ -5217,21 +5037,21 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5217
5037
|
notCommonProperty = _useState8[0],
|
|
5218
5038
|
setNotCommonProperty = _useState8[1];
|
|
5219
5039
|
var _useState9 = React$1.useState(false),
|
|
5220
|
-
|
|
5221
|
-
visible =
|
|
5222
|
-
setVisible =
|
|
5223
|
-
var
|
|
5040
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5041
|
+
visible = _useState0[0],
|
|
5042
|
+
setVisible = _useState0[1];
|
|
5043
|
+
var _useState1 = React$1.useState(false),
|
|
5044
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5045
|
+
showNotCommon = _useState10[0],
|
|
5046
|
+
setShowNotCommon = _useState10[1]; // 是否展示非常用属性
|
|
5047
|
+
var _useState11 = React$1.useState([]),
|
|
5224
5048
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
var _useState13 = React$1.useState(
|
|
5049
|
+
classifyOptionList = _useState12[0],
|
|
5050
|
+
setClassifyOptionList = _useState12[1];
|
|
5051
|
+
var _useState13 = React$1.useState('1'),
|
|
5228
5052
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
var _useState15 = React$1.useState('1'),
|
|
5232
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
5233
|
-
listKey = _useState16[0],
|
|
5234
|
-
setListKey = _useState16[1];
|
|
5053
|
+
listKey = _useState14[0],
|
|
5054
|
+
setListKey = _useState14[1];
|
|
5235
5055
|
React$1.useEffect(function () {
|
|
5236
5056
|
requestUtil({
|
|
5237
5057
|
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
@@ -5614,29 +5434,29 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5614
5434
|
scrollPage = _useState8[0],
|
|
5615
5435
|
setScrollPage = _useState8[1];
|
|
5616
5436
|
var _useState9 = React$1.useState(0),
|
|
5617
|
-
|
|
5618
|
-
itemsTotal =
|
|
5619
|
-
setItemsTotal =
|
|
5620
|
-
var
|
|
5437
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5438
|
+
itemsTotal = _useState0[0],
|
|
5439
|
+
setItemsTotal = _useState0[1];
|
|
5440
|
+
var _useState1 = React$1.useState(false),
|
|
5441
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5442
|
+
fetching = _useState10[0],
|
|
5443
|
+
setFetching = _useState10[1];
|
|
5444
|
+
var _useState11 = React$1.useState(''),
|
|
5621
5445
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
var _useState13 = React$1.useState(
|
|
5446
|
+
searchValue = _useState12[0],
|
|
5447
|
+
setSearchValue = _useState12[1];
|
|
5448
|
+
var _useState13 = React$1.useState(false),
|
|
5625
5449
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
var _useState15 = React$1.useState(
|
|
5450
|
+
isModalVisible = _useState14[0],
|
|
5451
|
+
setIsModalVisible = _useState14[1];
|
|
5452
|
+
var _useState15 = React$1.useState(initVal),
|
|
5629
5453
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
var _useState17 = React$1.useState(
|
|
5454
|
+
popvalue = _useState16[0],
|
|
5455
|
+
setPopValue = _useState16[1];
|
|
5456
|
+
var _useState17 = React$1.useState(resultSourceKey),
|
|
5633
5457
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
var _useState19 = React$1.useState(resultSourceKey),
|
|
5637
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5638
|
-
uniqueValue = _useState20[0],
|
|
5639
|
-
setUniqueValue = _useState20[1];
|
|
5458
|
+
uniqueValue = _useState18[0],
|
|
5459
|
+
setUniqueValue = _useState18[1];
|
|
5640
5460
|
var _useDebounceFn = ahooks.useDebounceFn(function (v) {
|
|
5641
5461
|
// 优化搜索参数 支持传多个
|
|
5642
5462
|
var searchParams = {};
|
|
@@ -5665,58 +5485,58 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5665
5485
|
var _Form$useForm = antd.Form.useForm(),
|
|
5666
5486
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5667
5487
|
form = _Form$useForm2[0];
|
|
5488
|
+
var _useState19 = React$1.useState(true),
|
|
5489
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5490
|
+
collapsed = _useState20[0],
|
|
5491
|
+
setCollapsed = _useState20[1];
|
|
5668
5492
|
var _useState21 = React$1.useState(true),
|
|
5669
5493
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
var _useState23 = React$1.useState(
|
|
5494
|
+
caretLeftFlag = _useState22[0],
|
|
5495
|
+
setCaretLeftFlag = _useState22[1];
|
|
5496
|
+
var _useState23 = React$1.useState([]),
|
|
5673
5497
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
var _useState25 = React$1.useState(
|
|
5498
|
+
tableData = _useState24[0],
|
|
5499
|
+
setTableData = _useState24[1];
|
|
5500
|
+
var _useState25 = React$1.useState(tableInitPagination),
|
|
5677
5501
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
var _useState27 = React$1.useState(
|
|
5502
|
+
tablePagination = _useState26[0],
|
|
5503
|
+
setTablePagination = _useState26[1];
|
|
5504
|
+
var _useState27 = React$1.useState([]),
|
|
5681
5505
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5682
|
-
|
|
5683
|
-
|
|
5506
|
+
selectedRowKeys = _useState28[0],
|
|
5507
|
+
setSelectedRowKeys = _useState28[1];
|
|
5684
5508
|
var _useState29 = React$1.useState([]),
|
|
5685
5509
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
var _useState31 = React$1.useState(
|
|
5510
|
+
selectedRows = _useState30[0],
|
|
5511
|
+
setSelectedRows = _useState30[1];
|
|
5512
|
+
var _useState31 = React$1.useState(false),
|
|
5689
5513
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5690
|
-
|
|
5691
|
-
|
|
5514
|
+
checkedAll = _useState32[0],
|
|
5515
|
+
setCheckedAll = _useState32[1];
|
|
5692
5516
|
var _useState33 = React$1.useState(false),
|
|
5693
5517
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
var _useState35 = React$1.useState(
|
|
5518
|
+
indeterminate = _useState34[0],
|
|
5519
|
+
setIndeterminate = _useState34[1];
|
|
5520
|
+
var _useState35 = React$1.useState({}),
|
|
5697
5521
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
var _useState37 = React$1.useState(
|
|
5522
|
+
tableFormParams = _useState36[0],
|
|
5523
|
+
setTableFormParams = _useState36[1];
|
|
5524
|
+
var _useState37 = React$1.useState(false),
|
|
5701
5525
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
var _useState39 = React$1.useState(
|
|
5526
|
+
tooltipVisible = _useState38[0],
|
|
5527
|
+
setTooltipVisible = _useState38[1];
|
|
5528
|
+
var _useState39 = React$1.useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5705
5529
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
var _useState41 = React$1.useState(
|
|
5530
|
+
tableShowColumns = _useState40[0],
|
|
5531
|
+
setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5532
|
+
var _useState41 = React$1.useState(false),
|
|
5709
5533
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5710
|
-
|
|
5711
|
-
|
|
5534
|
+
confirmLoading = _useState42[0],
|
|
5535
|
+
setConfirmLoading = _useState42[1];
|
|
5712
5536
|
var _useState43 = React$1.useState(false),
|
|
5713
5537
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
var _useState45 = React$1.useState(false),
|
|
5717
|
-
_useState46 = _slicedToArray(_useState45, 2),
|
|
5718
|
-
modalSearched = _useState46[0],
|
|
5719
|
-
setModalSearched = _useState46[1];
|
|
5538
|
+
modalSearched = _useState44[0],
|
|
5539
|
+
setModalSearched = _useState44[1];
|
|
5720
5540
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5721
5541
|
setItems(list);
|
|
5722
5542
|
setItemsTotal(total);
|
|
@@ -6193,7 +6013,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6193
6013
|
})) || [];
|
|
6194
6014
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
6195
6015
|
return searchList.map(function (i, index) {
|
|
6196
|
-
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$
|
|
6016
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field10, _i$field12, _i$field13;
|
|
6197
6017
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6198
6018
|
span: ColSpan,
|
|
6199
6019
|
key: i
|
|
@@ -6291,7 +6111,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6291
6111
|
disabled: setDisabled(i.name)
|
|
6292
6112
|
}))));
|
|
6293
6113
|
}
|
|
6294
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6114
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field0 = i.field) === null || _i$field0 === void 0 ? void 0 : _i$field0.type) === 'multipleQueryInput') {
|
|
6295
6115
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6296
6116
|
span: ColSpan,
|
|
6297
6117
|
key: i.name
|
|
@@ -6305,7 +6125,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6305
6125
|
}
|
|
6306
6126
|
})));
|
|
6307
6127
|
}
|
|
6308
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6128
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'proppertySelector') {
|
|
6309
6129
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6310
6130
|
span: ColSpan,
|
|
6311
6131
|
key: i.name
|
|
@@ -6315,8 +6135,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6315
6135
|
key: i.name
|
|
6316
6136
|
}, /*#__PURE__*/React__default['default'].createElement(PropertySelector, null)));
|
|
6317
6137
|
}
|
|
6318
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6319
|
-
var _i$
|
|
6138
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.type) === 'itemPropertySelector') {
|
|
6139
|
+
var _i$field11;
|
|
6320
6140
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6321
6141
|
span: ColSpan,
|
|
6322
6142
|
key: i.name
|
|
@@ -6329,9 +6149,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6329
6149
|
width: '100%'
|
|
6330
6150
|
},
|
|
6331
6151
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6332
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6152
|
+
}, i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.props))));
|
|
6333
6153
|
}
|
|
6334
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6154
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
|
|
6335
6155
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6336
6156
|
span: ColSpan,
|
|
6337
6157
|
key: i.name
|
|
@@ -6360,7 +6180,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6360
6180
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6361
6181
|
allowClear: true,
|
|
6362
6182
|
maxLength: 100
|
|
6363
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6183
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
|
|
6364
6184
|
disabled: setDisabled(i.name)
|
|
6365
6185
|
}))));
|
|
6366
6186
|
});
|
|
@@ -7680,135 +7500,132 @@ var AddSelect = function AddSelect(props) {
|
|
|
7680
7500
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7681
7501
|
form = _Form$useForm2[0];
|
|
7682
7502
|
var _useState9 = React$1.useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7683
|
-
|
|
7684
|
-
tableSearchForm =
|
|
7685
|
-
setTableSearchForm =
|
|
7686
|
-
var
|
|
7503
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
7504
|
+
tableSearchForm = _useState0[0],
|
|
7505
|
+
setTableSearchForm = _useState0[1];
|
|
7506
|
+
var _useState1 = React$1.useState(true),
|
|
7507
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
7508
|
+
caretLeftFlag = _useState10[0],
|
|
7509
|
+
setCaretLeftFlag = _useState10[1];
|
|
7510
|
+
var _useState11 = React$1.useState([]),
|
|
7687
7511
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
var _useState13 = React$1.useState(
|
|
7691
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
7692
|
-
tableData = _useState14[0],
|
|
7693
|
-
setTableData = _useState14[1];
|
|
7694
|
-
var _useState15 = React$1.useState(_objectSpread2({
|
|
7512
|
+
tableData = _useState12[0],
|
|
7513
|
+
setTableData = _useState12[1];
|
|
7514
|
+
var _useState13 = React$1.useState(_objectSpread2({
|
|
7695
7515
|
total: 0,
|
|
7696
7516
|
size: "small",
|
|
7697
7517
|
current: 1,
|
|
7698
7518
|
pageSize: tableInitPageSize
|
|
7699
7519
|
}, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
|
|
7520
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
7521
|
+
tablePagination = _useState14[0],
|
|
7522
|
+
setTablePagination = _useState14[1];
|
|
7523
|
+
var _useState15 = React$1.useState([]),
|
|
7700
7524
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
var _useState17 = React$1.useState(
|
|
7525
|
+
selectedRowKeys = _useState16[0],
|
|
7526
|
+
setSelectedRowKeys = _useState16[1];
|
|
7527
|
+
var _useState17 = React$1.useState({}),
|
|
7704
7528
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
var _useState19 = React$1.useState(
|
|
7529
|
+
tableFormParams = _useState18[0],
|
|
7530
|
+
setTableFormParams = _useState18[1];
|
|
7531
|
+
var _useState19 = React$1.useState(false),
|
|
7708
7532
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7709
|
-
|
|
7710
|
-
|
|
7533
|
+
confirmLoading = _useState20[0],
|
|
7534
|
+
setConfirmLoading = _useState20[1];
|
|
7711
7535
|
var _useState21 = React$1.useState(false),
|
|
7712
7536
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
var _useState23 = React$1.useState(
|
|
7537
|
+
confirmContinueLoading = _useState22[0],
|
|
7538
|
+
setConfirmContinueLoading = _useState22[1];
|
|
7539
|
+
var _useState23 = React$1.useState([]),
|
|
7716
7540
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7717
|
-
|
|
7718
|
-
|
|
7541
|
+
selectColumns = _useState24[0],
|
|
7542
|
+
setSelectColumns = _useState24[1];
|
|
7719
7543
|
var _useState25 = React$1.useState([]),
|
|
7720
7544
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7721
|
-
|
|
7722
|
-
|
|
7545
|
+
showColumns = _useState26[0],
|
|
7546
|
+
setShowColumns = _useState26[1];
|
|
7723
7547
|
var _useState27 = React$1.useState([]),
|
|
7724
7548
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7725
|
-
|
|
7726
|
-
|
|
7549
|
+
tableColumns = _useState28[0],
|
|
7550
|
+
setTableColumns = _useState28[1];
|
|
7727
7551
|
var _useState29 = React$1.useState([]),
|
|
7728
7552
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
var _useState31 = React$1.useState([]),
|
|
7732
|
-
_useState32 = _slicedToArray(_useState31, 2),
|
|
7733
|
-
showToChooseColumns = _useState32[0],
|
|
7734
|
-
setShowToChooseColumns = _useState32[1];
|
|
7553
|
+
showToChooseColumns = _useState30[0],
|
|
7554
|
+
setShowToChooseColumns = _useState30[1];
|
|
7735
7555
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7736
7556
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7737
7557
|
// FIXME: 特殊业务逻辑
|
|
7738
7558
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7739
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7740
|
-
var result;
|
|
7741
|
-
return
|
|
7742
|
-
while (1) switch (_context.
|
|
7559
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7560
|
+
var result, _t;
|
|
7561
|
+
return _regenerator().w(function (_context) {
|
|
7562
|
+
while (1) switch (_context.p = _context.n) {
|
|
7743
7563
|
case 0:
|
|
7744
7564
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7745
7565
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7746
7566
|
}))) {
|
|
7747
|
-
_context.
|
|
7567
|
+
_context.n = 1;
|
|
7748
7568
|
break;
|
|
7749
7569
|
}
|
|
7750
7570
|
antd.message.warning('相同skc配码不可设置相同哦');
|
|
7751
|
-
return _context.
|
|
7752
|
-
case
|
|
7571
|
+
return _context.a(2, false);
|
|
7572
|
+
case 1:
|
|
7753
7573
|
if (!(bType == 'spu')) {
|
|
7754
|
-
_context.
|
|
7574
|
+
_context.n = 9;
|
|
7755
7575
|
break;
|
|
7756
7576
|
}
|
|
7757
7577
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7758
7578
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7759
7579
|
}))) {
|
|
7760
|
-
_context.
|
|
7580
|
+
_context.n = 2;
|
|
7761
7581
|
break;
|
|
7762
7582
|
}
|
|
7763
7583
|
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7764
|
-
return _context.
|
|
7765
|
-
case
|
|
7584
|
+
return _context.a(2, false);
|
|
7585
|
+
case 2:
|
|
7766
7586
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7767
|
-
_context.
|
|
7587
|
+
_context.n = 3;
|
|
7768
7588
|
break;
|
|
7769
7589
|
}
|
|
7770
7590
|
antd.message.warning('请先选择颜色!');
|
|
7771
|
-
return _context.
|
|
7772
|
-
case
|
|
7591
|
+
return _context.a(2, false);
|
|
7592
|
+
case 3:
|
|
7773
7593
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7774
7594
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7775
7595
|
}))) {
|
|
7776
|
-
_context.
|
|
7596
|
+
_context.n = 4;
|
|
7777
7597
|
break;
|
|
7778
7598
|
}
|
|
7779
7599
|
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7780
|
-
return _context.
|
|
7781
|
-
case
|
|
7600
|
+
return _context.a(2, false);
|
|
7601
|
+
case 4:
|
|
7782
7602
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7783
|
-
_context.
|
|
7603
|
+
_context.n = 9;
|
|
7784
7604
|
break;
|
|
7785
7605
|
}
|
|
7786
7606
|
result = true;
|
|
7787
|
-
_context.
|
|
7788
|
-
_context.
|
|
7607
|
+
_context.p = 5;
|
|
7608
|
+
_context.n = 6;
|
|
7789
7609
|
return checkSpuMatchCode({
|
|
7790
7610
|
skcCode: recordItem[recordKey],
|
|
7791
7611
|
matchingCode: changeValue,
|
|
7792
7612
|
ext1: recordItem.colorName
|
|
7793
7613
|
});
|
|
7794
|
-
case
|
|
7795
|
-
result = _context.
|
|
7614
|
+
case 6:
|
|
7615
|
+
result = _context.v;
|
|
7796
7616
|
result = true;
|
|
7797
|
-
_context.
|
|
7617
|
+
_context.n = 8;
|
|
7798
7618
|
break;
|
|
7799
|
-
case
|
|
7800
|
-
_context.
|
|
7801
|
-
|
|
7802
|
-
result = typeof
|
|
7803
|
-
case
|
|
7804
|
-
return _context.
|
|
7805
|
-
case
|
|
7806
|
-
return _context.
|
|
7807
|
-
|
|
7808
|
-
|
|
7809
|
-
return _context.stop();
|
|
7810
|
-
}
|
|
7811
|
-
}, _callee, null, [[15, 22]]);
|
|
7619
|
+
case 7:
|
|
7620
|
+
_context.p = 7;
|
|
7621
|
+
_t = _context.v;
|
|
7622
|
+
result = typeof _t == 'boolean' ? _t : false;
|
|
7623
|
+
case 8:
|
|
7624
|
+
return _context.a(2, result);
|
|
7625
|
+
case 9:
|
|
7626
|
+
return _context.a(2, true);
|
|
7627
|
+
}
|
|
7628
|
+
}, _callee, null, [[5, 7]]);
|
|
7812
7629
|
}));
|
|
7813
7630
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7814
7631
|
return _ref2.apply(this, arguments);
|
|
@@ -7899,17 +7716,16 @@ var AddSelect = function AddSelect(props) {
|
|
|
7899
7716
|
e.target.blur();
|
|
7900
7717
|
},
|
|
7901
7718
|
onBlur: function () {
|
|
7902
|
-
var _onBlur = _asyncToGenerator(/*#__PURE__*/
|
|
7719
|
+
var _onBlur = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e) {
|
|
7903
7720
|
var value;
|
|
7904
|
-
return
|
|
7905
|
-
while (1) switch (_context2.
|
|
7721
|
+
return _regenerator().w(function (_context2) {
|
|
7722
|
+
while (1) switch (_context2.n) {
|
|
7906
7723
|
case 0:
|
|
7907
7724
|
value = e.target.value;
|
|
7908
7725
|
record[item.dataIndex] = value;
|
|
7909
7726
|
editRecord(record);
|
|
7910
|
-
case
|
|
7911
|
-
|
|
7912
|
-
return _context2.stop();
|
|
7727
|
+
case 1:
|
|
7728
|
+
return _context2.a(2);
|
|
7913
7729
|
}
|
|
7914
7730
|
}, _callee2);
|
|
7915
7731
|
}));
|
|
@@ -8069,10 +7885,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8069
7885
|
}
|
|
8070
7886
|
_dom6 = null;
|
|
8071
7887
|
} else if (e.keyCode === 38) {
|
|
8072
|
-
var _e$nativeEvent$path$
|
|
7888
|
+
var _e$nativeEvent$path$0;
|
|
8073
7889
|
e.stopPropagation();
|
|
8074
7890
|
e.preventDefault();
|
|
8075
|
-
var dom1 = (_e$nativeEvent$path$
|
|
7891
|
+
var dom1 = (_e$nativeEvent$path$0 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$0 === void 0 ? void 0 : _e$nativeEvent$path$0.getElementsByTagName('input')[currentIndex];
|
|
8076
7892
|
if (dom1) {
|
|
8077
7893
|
// dom1.value=""
|
|
8078
7894
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -8106,19 +7922,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
8106
7922
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
8107
7923
|
value: text || null,
|
|
8108
7924
|
onChange: function () {
|
|
8109
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
8110
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
8111
|
-
return
|
|
8112
|
-
while (1) switch (_context3.
|
|
7925
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(value) {
|
|
7926
|
+
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules, _t2;
|
|
7927
|
+
return _regenerator().w(function (_context3) {
|
|
7928
|
+
while (1) switch (_context3.p = _context3.n) {
|
|
8113
7929
|
case 0:
|
|
8114
7930
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
8115
7931
|
return d[selectKey] == value;
|
|
8116
7932
|
})) || {};
|
|
8117
7933
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
8118
|
-
_context3.
|
|
7934
|
+
_context3.n = 2;
|
|
8119
7935
|
break;
|
|
8120
7936
|
}
|
|
8121
|
-
_context3.
|
|
7937
|
+
_context3.n = 1;
|
|
8122
7938
|
return item === null || item === void 0 ? void 0 : (_item$selectChangeCal = item.selectChangeCallback) === null || _item$selectChangeCal === void 0 ? void 0 : _item$selectChangeCal.call(item, popvalue, setPopValue, {
|
|
8123
7939
|
record: record,
|
|
8124
7940
|
index: index,
|
|
@@ -8128,10 +7944,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8128
7944
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
8129
7945
|
editRecord: editRecord
|
|
8130
7946
|
});
|
|
8131
|
-
case
|
|
8132
|
-
_context3.
|
|
7947
|
+
case 1:
|
|
7948
|
+
_context3.n = 10;
|
|
8133
7949
|
break;
|
|
8134
|
-
case
|
|
7950
|
+
case 2:
|
|
8135
7951
|
// 更新当前行数据函数
|
|
8136
7952
|
changeValue = function changeValue(v, dSSItem) {
|
|
8137
7953
|
var _item$dataSourceSelec;
|
|
@@ -8144,12 +7960,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
8144
7960
|
}
|
|
8145
7961
|
}; // 处理校验,默认不校验
|
|
8146
7962
|
isCheckPass = true;
|
|
8147
|
-
_context3.
|
|
7963
|
+
_context3.p = 3;
|
|
8148
7964
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
8149
|
-
_context3.
|
|
7965
|
+
_context3.n = 5;
|
|
8150
7966
|
break;
|
|
8151
7967
|
}
|
|
8152
|
-
_context3.
|
|
7968
|
+
_context3.n = 4;
|
|
8153
7969
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
8154
7970
|
record: record,
|
|
8155
7971
|
index: index,
|
|
@@ -8158,23 +7974,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
8158
7974
|
changeValue: value,
|
|
8159
7975
|
dataSourceSelectItem: dataSourceSelectItem
|
|
8160
7976
|
});
|
|
8161
|
-
case
|
|
8162
|
-
isCheckPass = _context3.
|
|
8163
|
-
_context3.
|
|
7977
|
+
case 4:
|
|
7978
|
+
isCheckPass = _context3.v;
|
|
7979
|
+
_context3.n = 7;
|
|
8164
7980
|
break;
|
|
8165
|
-
case
|
|
8166
|
-
_context3.
|
|
7981
|
+
case 5:
|
|
7982
|
+
_context3.n = 6;
|
|
8167
7983
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
8168
|
-
case
|
|
8169
|
-
isConformToTheRules = _context3.
|
|
7984
|
+
case 6:
|
|
7985
|
+
isConformToTheRules = _context3.v;
|
|
8170
7986
|
isCheckPass = !isConformToTheRules;
|
|
8171
|
-
case
|
|
8172
|
-
_context3.
|
|
7987
|
+
case 7:
|
|
7988
|
+
_context3.n = 9;
|
|
8173
7989
|
break;
|
|
8174
|
-
case
|
|
8175
|
-
_context3.
|
|
8176
|
-
|
|
8177
|
-
case
|
|
7990
|
+
case 8:
|
|
7991
|
+
_context3.p = 8;
|
|
7992
|
+
_t2 = _context3.v;
|
|
7993
|
+
case 9:
|
|
8178
7994
|
if (isCheckPass) {
|
|
8179
7995
|
changeValue(value, dataSourceSelectItem);
|
|
8180
7996
|
} else {
|
|
@@ -8182,11 +7998,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8182
7998
|
}
|
|
8183
7999
|
// 更新已选表格函数
|
|
8184
8000
|
editRecord(record);
|
|
8185
|
-
case
|
|
8186
|
-
|
|
8187
|
-
return _context3.stop();
|
|
8001
|
+
case 10:
|
|
8002
|
+
return _context3.a(2);
|
|
8188
8003
|
}
|
|
8189
|
-
}, _callee3, null, [[
|
|
8004
|
+
}, _callee3, null, [[3, 8]]);
|
|
8190
8005
|
}));
|
|
8191
8006
|
function onChange(_x8) {
|
|
8192
8007
|
return _onChange.apply(this, arguments);
|
|
@@ -9577,29 +9392,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9577
9392
|
dataIndex: 'propertyNameAndValue'
|
|
9578
9393
|
}];
|
|
9579
9394
|
var _useState9 = React$1.useState(false),
|
|
9580
|
-
|
|
9581
|
-
isModalVisible =
|
|
9582
|
-
setIsModalVisible =
|
|
9583
|
-
var
|
|
9395
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
9396
|
+
isModalVisible = _useState0[0],
|
|
9397
|
+
setIsModalVisible = _useState0[1];
|
|
9398
|
+
var _useState1 = React$1.useState([{
|
|
9584
9399
|
hovered: false
|
|
9585
9400
|
}]),
|
|
9586
|
-
|
|
9587
|
-
data =
|
|
9588
|
-
setData =
|
|
9401
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
9402
|
+
data = _useState10[0],
|
|
9403
|
+
setData = _useState10[1];
|
|
9589
9404
|
var tableRef = React$1.useRef(null);
|
|
9590
9405
|
var codeSelected = tableCode;
|
|
9591
|
-
var
|
|
9406
|
+
var _useState11 = React$1.useState(false),
|
|
9407
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9408
|
+
loading = _useState12[0],
|
|
9409
|
+
setLoading = _useState12[1];
|
|
9410
|
+
var _useState13 = React$1.useState([]),
|
|
9592
9411
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9593
|
-
|
|
9594
|
-
|
|
9412
|
+
selectColumns = _useState14[0],
|
|
9413
|
+
setSelectColumns = _useState14[1];
|
|
9595
9414
|
var _useState15 = React$1.useState([]),
|
|
9596
9415
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
var _useState17 = React$1.useState([]),
|
|
9600
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
9601
|
-
showColumns = _useState18[0],
|
|
9602
|
-
setShowColumns = _useState18[1];
|
|
9416
|
+
showColumns = _useState16[0],
|
|
9417
|
+
setShowColumns = _useState16[1];
|
|
9603
9418
|
React$1.useEffect(function () {
|
|
9604
9419
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9605
9420
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9715,42 +9530,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9715
9530
|
});
|
|
9716
9531
|
};
|
|
9717
9532
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9718
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9533
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
9719
9534
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9720
|
-
return
|
|
9721
|
-
while (1) switch (_context.
|
|
9535
|
+
return _regenerator().w(function (_context) {
|
|
9536
|
+
while (1) switch (_context.n) {
|
|
9722
9537
|
case 0:
|
|
9723
9538
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9724
|
-
_context.
|
|
9539
|
+
_context.n = 1;
|
|
9725
9540
|
break;
|
|
9726
9541
|
}
|
|
9727
9542
|
antd.message.warning('至少录入一条数据');
|
|
9728
|
-
return _context.
|
|
9729
|
-
case
|
|
9543
|
+
return _context.a(2);
|
|
9544
|
+
case 1:
|
|
9730
9545
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9731
9546
|
return d.skuCode && d.name;
|
|
9732
9547
|
})) {
|
|
9733
|
-
_context.
|
|
9548
|
+
_context.n = 2;
|
|
9734
9549
|
break;
|
|
9735
9550
|
}
|
|
9736
9551
|
antd.message.warning('录入商品不存在');
|
|
9737
|
-
return _context.
|
|
9738
|
-
case
|
|
9552
|
+
return _context.a(2);
|
|
9553
|
+
case 2:
|
|
9739
9554
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9740
9555
|
return d.count;
|
|
9741
9556
|
})) {
|
|
9742
|
-
_context.
|
|
9557
|
+
_context.n = 3;
|
|
9743
9558
|
break;
|
|
9744
9559
|
}
|
|
9745
9560
|
antd.message.warning('请填写商品数量!');
|
|
9746
|
-
return _context.
|
|
9747
|
-
case
|
|
9748
|
-
_context.
|
|
9561
|
+
return _context.a(2);
|
|
9562
|
+
case 3:
|
|
9563
|
+
_context.n = 4;
|
|
9749
9564
|
return isSkuCanEntry(data);
|
|
9750
|
-
case
|
|
9751
|
-
canEntryObject = _context.
|
|
9565
|
+
case 4:
|
|
9566
|
+
canEntryObject = _context.v;
|
|
9752
9567
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9753
|
-
_context.
|
|
9568
|
+
_context.n = 5;
|
|
9754
9569
|
break;
|
|
9755
9570
|
}
|
|
9756
9571
|
messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
|
|
@@ -9760,8 +9575,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9760
9575
|
content: messageInfo,
|
|
9761
9576
|
duration: 6
|
|
9762
9577
|
});
|
|
9763
|
-
return _context.
|
|
9764
|
-
case
|
|
9578
|
+
return _context.a(2);
|
|
9579
|
+
case 5:
|
|
9765
9580
|
setLoading(true);
|
|
9766
9581
|
onSaveCallback(data).then(function (res) {
|
|
9767
9582
|
{
|
|
@@ -9779,9 +9594,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9779
9594
|
antd.message.error(Error);
|
|
9780
9595
|
setLoading(false);
|
|
9781
9596
|
});
|
|
9782
|
-
case
|
|
9783
|
-
|
|
9784
|
-
return _context.stop();
|
|
9597
|
+
case 6:
|
|
9598
|
+
return _context.a(2);
|
|
9785
9599
|
}
|
|
9786
9600
|
}, _callee);
|
|
9787
9601
|
}));
|
|
@@ -11978,17 +11792,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11978
11792
|
}
|
|
11979
11793
|
}
|
|
11980
11794
|
}];
|
|
11981
|
-
var
|
|
11795
|
+
var _queryHeaderParams0 = getQueryHeadersList({
|
|
11982
11796
|
querySelectHeadersList: querySelectHeadersList,
|
|
11983
11797
|
extralHeaders: extralHeaders
|
|
11984
11798
|
});
|
|
11985
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(
|
|
11799
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams0, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11986
11800
|
'qp-status-eq': 10,
|
|
11987
11801
|
'qp-isMain-eq': 1,
|
|
11988
11802
|
'qp-type-in': '1,2'
|
|
11989
|
-
}, getQueryHeadersItem(
|
|
11803
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11990
11804
|
'qp-status-eq': 1
|
|
11991
|
-
}, getQueryHeadersItem(
|
|
11805
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in'))]).then(function (x) {
|
|
11992
11806
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
11993
11807
|
var allList = firstElement && [firstElement, firstElement];
|
|
11994
11808
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
@@ -12174,7 +11988,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12174
11988
|
}
|
|
12175
11989
|
}
|
|
12176
11990
|
}];
|
|
12177
|
-
var
|
|
11991
|
+
var _queryHeaderParams1 = getQueryHeadersList({
|
|
12178
11992
|
querySelectHeadersList: querySelectHeadersList,
|
|
12179
11993
|
extralHeaders: extralHeaders
|
|
12180
11994
|
});
|
|
@@ -12182,21 +11996,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12182
11996
|
pageSize: 5000,
|
|
12183
11997
|
currentPage: 1,
|
|
12184
11998
|
'qp-companyType-eq': '30'
|
|
12185
|
-
}, getQueryHeadersItem(
|
|
11999
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
12186
12000
|
pageSize: 5000,
|
|
12187
12001
|
currentPage: 1,
|
|
12188
12002
|
'qp-companyType-eq': '20'
|
|
12189
|
-
}, getQueryHeadersItem(
|
|
12003
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
12190
12004
|
// pageSize: 5000,
|
|
12191
12005
|
// currentPage: 1,
|
|
12192
12006
|
'qp-status-eq': '1'
|
|
12193
|
-
}, getQueryHeadersItem(
|
|
12007
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
12194
12008
|
pageSize: 5000,
|
|
12195
12009
|
currentPage: 1
|
|
12196
|
-
}, getQueryHeadersItem(
|
|
12010
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
12197
12011
|
pageSize: 5000,
|
|
12198
12012
|
currentPage: 1
|
|
12199
|
-
}, getQueryHeadersItem(
|
|
12013
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-accountingCode-in'))]).then(function (x) {
|
|
12200
12014
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12201
12015
|
formatSource(x, 1, 3, tableSearchForm);
|
|
12202
12016
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -12365,8 +12179,26 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12365
12179
|
}
|
|
12366
12180
|
},
|
|
12367
12181
|
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
12182
|
+
}, {
|
|
12183
|
+
name: "qp-brandCode-in",
|
|
12184
|
+
label: "品牌",
|
|
12185
|
+
field: {
|
|
12186
|
+
type: 'select',
|
|
12187
|
+
props: {
|
|
12188
|
+
mode: 'multiple',
|
|
12189
|
+
notFoundContent: '暂无数据',
|
|
12190
|
+
allowClear: true,
|
|
12191
|
+
showSearch: true,
|
|
12192
|
+
showArrow: true,
|
|
12193
|
+
maxTagCount: 1,
|
|
12194
|
+
optionFilterProp: 'children',
|
|
12195
|
+
filterOption: function filterOption(input, option) {
|
|
12196
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12197
|
+
}
|
|
12198
|
+
}
|
|
12199
|
+
}
|
|
12368
12200
|
}];
|
|
12369
|
-
var
|
|
12201
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
12370
12202
|
querySelectHeadersList: querySelectHeadersList,
|
|
12371
12203
|
extralHeaders: extralHeaders
|
|
12372
12204
|
});
|
|
@@ -12374,13 +12206,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12374
12206
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12375
12207
|
'qp-realOrg-eq': true,
|
|
12376
12208
|
'qp-status-eq': 10
|
|
12377
|
-
}, getQueryHeadersItem(
|
|
12209
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12378
12210
|
'qp-status-eq': 10,
|
|
12379
12211
|
'qp-isMain-eq': 1,
|
|
12380
12212
|
'qp-type-in': '1,2'
|
|
12381
|
-
}, getQueryHeadersItem(
|
|
12213
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12382
12214
|
'qp-status-eq': 1
|
|
12383
|
-
}, getQueryHeadersItem(
|
|
12215
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
12216
|
+
pageSize: 5000,
|
|
12217
|
+
currentPage: 1,
|
|
12218
|
+
'ctl-withAuth': true
|
|
12219
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth'))]).then(function (x) {
|
|
12384
12220
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12385
12221
|
return data['parentCode'] === '0';
|
|
12386
12222
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -12390,6 +12226,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12390
12226
|
formatSource(x, 0, 3, tableSearchForm);
|
|
12391
12227
|
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12392
12228
|
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
12229
|
+
formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
|
|
12393
12230
|
});
|
|
12394
12231
|
modalTableProps = _objectSpread2({
|
|
12395
12232
|
modalTableTitle: '选择商店',
|
|
@@ -12615,10 +12452,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12615
12452
|
name: 'qp-email-like',
|
|
12616
12453
|
label: '邮箱'
|
|
12617
12454
|
}, {
|
|
12618
|
-
name: 'qp-
|
|
12455
|
+
name: 'qp-officeTelephone-like',
|
|
12619
12456
|
label: '手机号'
|
|
12620
12457
|
}];
|
|
12621
|
-
var
|
|
12458
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
12622
12459
|
querySelectHeadersList: querySelectHeadersList,
|
|
12623
12460
|
extralHeaders: extralHeaders
|
|
12624
12461
|
});
|
|
@@ -12626,7 +12463,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12626
12463
|
pageSize: 5000,
|
|
12627
12464
|
currentPage: 1,
|
|
12628
12465
|
'qp-companyType-eq': 20
|
|
12629
|
-
}, getQueryHeadersItem(
|
|
12466
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in'))]).then(function (x) {
|
|
12630
12467
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12631
12468
|
});
|
|
12632
12469
|
modalTableProps = _objectSpread2({
|
|
@@ -12735,13 +12572,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12735
12572
|
name: 'qp-phone-like',
|
|
12736
12573
|
label: '手机号'
|
|
12737
12574
|
}]);
|
|
12738
|
-
var
|
|
12575
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12739
12576
|
querySelectHeadersList: querySelectHeadersList,
|
|
12740
12577
|
extralHeaders: extralHeaders
|
|
12741
12578
|
});
|
|
12742
12579
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12743
12580
|
'orgViewCode': 'administrative-organization-view'
|
|
12744
|
-
}, getQueryHeadersItem(
|
|
12581
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-code-in'))]).then(function (x) {
|
|
12745
12582
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12746
12583
|
});
|
|
12747
12584
|
modalTableProps = _objectSpread2({
|
|
@@ -12792,7 +12629,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12792
12629
|
dataIndex: 'email'
|
|
12793
12630
|
}, {
|
|
12794
12631
|
title: '手机号',
|
|
12795
|
-
dataIndex: '
|
|
12632
|
+
dataIndex: 'phone',
|
|
12796
12633
|
defaultSort: 4,
|
|
12797
12634
|
render: function render(text, record) {
|
|
12798
12635
|
return handleTextOverflow(text || (record === null || record === void 0 ? void 0 : record.phone));
|
|
@@ -12888,17 +12725,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12888
12725
|
name: 'qp-remark-like',
|
|
12889
12726
|
label: '备注'
|
|
12890
12727
|
}];
|
|
12891
|
-
var
|
|
12728
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12892
12729
|
querySelectHeadersList: querySelectHeadersList,
|
|
12893
12730
|
extralHeaders: extralHeaders
|
|
12894
12731
|
});
|
|
12895
12732
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12896
12733
|
pageSize: 5000,
|
|
12897
12734
|
currentPage: 1
|
|
12898
|
-
}, getQueryHeadersItem(
|
|
12735
|
+
}, getQueryHeadersItem(_queryHeaderParams13, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12899
12736
|
pageSize: 5000,
|
|
12900
12737
|
currentPage: 1
|
|
12901
|
-
}, getQueryHeadersItem(
|
|
12738
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12902
12739
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12903
12740
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12904
12741
|
});
|
|
@@ -13068,14 +12905,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13068
12905
|
}
|
|
13069
12906
|
}
|
|
13070
12907
|
}];
|
|
13071
|
-
var
|
|
12908
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
13072
12909
|
querySelectHeadersList: querySelectHeadersList,
|
|
13073
12910
|
extralHeaders: extralHeaders
|
|
13074
12911
|
});
|
|
13075
12912
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
13076
12913
|
pageSize: 5000,
|
|
13077
12914
|
currentPage: 1
|
|
13078
|
-
}, getQueryHeadersItem(
|
|
12915
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
13079
12916
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13080
12917
|
});
|
|
13081
12918
|
modalTableProps = _objectSpread2({
|
|
@@ -13172,7 +13009,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13172
13009
|
}
|
|
13173
13010
|
}
|
|
13174
13011
|
}];
|
|
13175
|
-
var
|
|
13012
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
13176
13013
|
querySelectHeadersList: querySelectHeadersList,
|
|
13177
13014
|
extralHeaders: extralHeaders
|
|
13178
13015
|
});
|
|
@@ -13180,7 +13017,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13180
13017
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
13181
13018
|
'qp-realOrg-eq': true,
|
|
13182
13019
|
'qp-status-eq': 10
|
|
13183
|
-
}, getQueryHeadersItem(
|
|
13020
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
13184
13021
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13185
13022
|
});
|
|
13186
13023
|
modalTableProps = _objectSpread2({
|
|
@@ -13286,13 +13123,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13286
13123
|
},
|
|
13287
13124
|
initialSource: nodeType
|
|
13288
13125
|
}];
|
|
13289
|
-
var
|
|
13126
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13290
13127
|
querySelectHeadersList: querySelectHeadersList,
|
|
13291
13128
|
extralHeaders: extralHeaders
|
|
13292
13129
|
});
|
|
13293
13130
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13294
13131
|
'qp-status-eq': 10
|
|
13295
|
-
}, getQueryHeadersItem(
|
|
13132
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13296
13133
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13297
13134
|
});
|
|
13298
13135
|
modalTableProps = _objectSpread2({
|
|
@@ -13618,13 +13455,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13618
13455
|
},
|
|
13619
13456
|
initialSource: nodeType
|
|
13620
13457
|
}];
|
|
13621
|
-
var
|
|
13458
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
13622
13459
|
querySelectHeadersList: querySelectHeadersList,
|
|
13623
13460
|
extralHeaders: extralHeaders
|
|
13624
13461
|
});
|
|
13625
13462
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13626
13463
|
'qp-status-eq': 10
|
|
13627
|
-
}, getQueryHeadersItem(
|
|
13464
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13628
13465
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13629
13466
|
});
|
|
13630
13467
|
modalTableProps = _objectSpread2({
|
|
@@ -14569,9 +14406,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14569
14406
|
value = _useState8[0],
|
|
14570
14407
|
setValue = _useState8[1];
|
|
14571
14408
|
var _useState9 = React$1.useState([]),
|
|
14572
|
-
|
|
14573
|
-
propertyList =
|
|
14574
|
-
setPropertyList =
|
|
14409
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
14410
|
+
propertyList = _useState0[0],
|
|
14411
|
+
setPropertyList = _useState0[1];
|
|
14575
14412
|
React$1.useEffect(function () {
|
|
14576
14413
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14577
14414
|
// type: 1 尺码组; 2 配码组
|
|
@@ -15095,46 +14932,45 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
15095
14932
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
15096
14933
|
headers: headers
|
|
15097
14934
|
}).then(/*#__PURE__*/function () {
|
|
15098
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
14935
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
|
|
15099
14936
|
var _ctx$form;
|
|
15100
14937
|
var resData, coverData, data, dataList;
|
|
15101
|
-
return
|
|
15102
|
-
while (1) switch (_context.
|
|
14938
|
+
return _regenerator().w(function (_context) {
|
|
14939
|
+
while (1) switch (_context.n) {
|
|
15103
14940
|
case 0:
|
|
15104
14941
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
15105
14942
|
if (!judgeIsRequestSuccess(resData)) {
|
|
15106
|
-
_context.
|
|
14943
|
+
_context.n = 4;
|
|
15107
14944
|
break;
|
|
15108
14945
|
}
|
|
15109
14946
|
data = resData.data;
|
|
15110
14947
|
if (!remoteSource.converter) {
|
|
15111
|
-
_context.
|
|
14948
|
+
_context.n = 2;
|
|
15112
14949
|
break;
|
|
15113
14950
|
}
|
|
15114
|
-
_context.
|
|
14951
|
+
_context.n = 1;
|
|
15115
14952
|
return remoteSource.converter({
|
|
15116
14953
|
data: [data]
|
|
15117
14954
|
});
|
|
15118
|
-
case
|
|
15119
|
-
coverData = _context.
|
|
15120
|
-
_context.
|
|
14955
|
+
case 1:
|
|
14956
|
+
coverData = _context.v;
|
|
14957
|
+
_context.n = 3;
|
|
15121
14958
|
break;
|
|
15122
|
-
case
|
|
14959
|
+
case 2:
|
|
15123
14960
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
15124
14961
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
15125
14962
|
return _mapSearchTree(ites);
|
|
15126
14963
|
}) || [];
|
|
15127
|
-
case
|
|
15128
|
-
_context.
|
|
14964
|
+
case 3:
|
|
14965
|
+
_context.n = 5;
|
|
15129
14966
|
break;
|
|
15130
|
-
case
|
|
14967
|
+
case 4:
|
|
15131
14968
|
coverData = [];
|
|
15132
|
-
case
|
|
14969
|
+
case 5:
|
|
15133
14970
|
setTreeData(coverData);
|
|
15134
14971
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
15135
|
-
case
|
|
15136
|
-
|
|
15137
|
-
return _context.stop();
|
|
14972
|
+
case 6:
|
|
14973
|
+
return _context.a(2);
|
|
15138
14974
|
}
|
|
15139
14975
|
}, _callee);
|
|
15140
14976
|
}));
|
|
@@ -19436,38 +19272,38 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19436
19272
|
};
|
|
19437
19273
|
var refs = React$1.useRef(null);
|
|
19438
19274
|
var _useState9 = React$1.useState(''),
|
|
19439
|
-
|
|
19440
|
-
pagePath =
|
|
19441
|
-
setPagePath =
|
|
19275
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
19276
|
+
pagePath = _useState0[0],
|
|
19277
|
+
setPagePath = _useState0[1];
|
|
19442
19278
|
var _useLocation = umi.useLocation(),
|
|
19443
19279
|
pathname = _useLocation.pathname,
|
|
19444
19280
|
_useLocation$state = _useLocation.state,
|
|
19445
19281
|
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
19446
|
-
var
|
|
19447
|
-
|
|
19448
|
-
isFullScreen =
|
|
19449
|
-
setIsFnllScreen =
|
|
19282
|
+
var _useState1 = React$1.useState(false),
|
|
19283
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
19284
|
+
isFullScreen = _useState10[0],
|
|
19285
|
+
setIsFnllScreen = _useState10[1];
|
|
19450
19286
|
// @ts-nocheck
|
|
19451
19287
|
var value = props;
|
|
19452
19288
|
var _props$fields = props.fields,
|
|
19453
19289
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
19454
|
-
var
|
|
19455
|
-
|
|
19456
|
-
showColumn =
|
|
19457
|
-
setShowColumns =
|
|
19290
|
+
var _useState11 = React$1.useState([]),
|
|
19291
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
19292
|
+
showColumn = _useState12[0],
|
|
19293
|
+
setShowColumns = _useState12[1]; // 列字段
|
|
19458
19294
|
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19459
|
-
var
|
|
19295
|
+
var _useState13 = React$1.useState(originSearchFields),
|
|
19296
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
19297
|
+
showSearchFields = _useState14[0],
|
|
19298
|
+
setShowSearchFields = _useState14[1]; //搜索项字段
|
|
19299
|
+
var _useState15 = React$1.useState([]),
|
|
19460
19300
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
19461
|
-
|
|
19462
|
-
|
|
19463
|
-
var _useState17 = React$1.useState(
|
|
19301
|
+
showExportColumn = _useState16[0],
|
|
19302
|
+
setShowExportColumns = _useState16[1]; // 导出列字段
|
|
19303
|
+
var _useState17 = React$1.useState(''),
|
|
19464
19304
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
19465
|
-
|
|
19466
|
-
|
|
19467
|
-
var _useState19 = React$1.useState(''),
|
|
19468
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
19469
|
-
height = _useState20[0],
|
|
19470
|
-
setHeight = _useState20[1];
|
|
19305
|
+
height = _useState18[0],
|
|
19306
|
+
setHeight = _useState18[1];
|
|
19471
19307
|
var sortTableRef = React$1.useRef(null);
|
|
19472
19308
|
var searchTableRef = React$1.useRef(null);
|
|
19473
19309
|
var exportTableRef = React$1.useRef(null);
|
|
@@ -20515,22 +20351,19 @@ function outLogin(_x) {
|
|
|
20515
20351
|
return _outLogin.apply(this, arguments);
|
|
20516
20352
|
}
|
|
20517
20353
|
function _outLogin() {
|
|
20518
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
20354
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20519
20355
|
var res;
|
|
20520
|
-
return
|
|
20521
|
-
while (1) switch (_context.
|
|
20356
|
+
return _regenerator().w(function (_context) {
|
|
20357
|
+
while (1) switch (_context.n) {
|
|
20522
20358
|
case 0:
|
|
20523
|
-
_context.
|
|
20359
|
+
_context.n = 1;
|
|
20524
20360
|
return requestUtil({
|
|
20525
20361
|
url: '/user/web/loginOut',
|
|
20526
20362
|
method: 'GET'
|
|
20527
20363
|
});
|
|
20528
|
-
case
|
|
20529
|
-
res = _context.
|
|
20530
|
-
return _context.
|
|
20531
|
-
case 4:
|
|
20532
|
-
case "end":
|
|
20533
|
-
return _context.stop();
|
|
20364
|
+
case 1:
|
|
20365
|
+
res = _context.v;
|
|
20366
|
+
return _context.a(2, res);
|
|
20534
20367
|
}
|
|
20535
20368
|
}, _callee);
|
|
20536
20369
|
}));
|
|
@@ -20657,20 +20490,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20657
20490
|
});
|
|
20658
20491
|
};
|
|
20659
20492
|
var loginOut = /*#__PURE__*/function () {
|
|
20660
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
20493
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
20661
20494
|
var sessionId;
|
|
20662
|
-
return
|
|
20663
|
-
while (1) switch (_context.
|
|
20495
|
+
return _regenerator().w(function (_context) {
|
|
20496
|
+
while (1) switch (_context.n) {
|
|
20664
20497
|
case 0:
|
|
20665
|
-
_context.
|
|
20498
|
+
_context.n = 1;
|
|
20666
20499
|
return getSessionId();
|
|
20667
|
-
case
|
|
20668
|
-
sessionId = _context.
|
|
20669
|
-
_context.
|
|
20500
|
+
case 1:
|
|
20501
|
+
sessionId = _context.v;
|
|
20502
|
+
_context.n = 2;
|
|
20670
20503
|
return outLogin({
|
|
20671
20504
|
sessionId: sessionId
|
|
20672
20505
|
});
|
|
20673
|
-
case
|
|
20506
|
+
case 2:
|
|
20674
20507
|
// @ts-ignore
|
|
20675
20508
|
if (BUILD_TYPE) {
|
|
20676
20509
|
antd.message.success('退出登录成功');
|
|
@@ -20680,9 +20513,8 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20680
20513
|
} else {
|
|
20681
20514
|
setLoginOutPath();
|
|
20682
20515
|
}
|
|
20683
|
-
case
|
|
20684
|
-
|
|
20685
|
-
return _context.stop();
|
|
20516
|
+
case 3:
|
|
20517
|
+
return _context.a(2);
|
|
20686
20518
|
}
|
|
20687
20519
|
}, _callee);
|
|
20688
20520
|
}));
|
|
@@ -20769,18 +20601,15 @@ function getStoreByName(_x) {
|
|
|
20769
20601
|
return _getStoreByName.apply(this, arguments);
|
|
20770
20602
|
}
|
|
20771
20603
|
function _getStoreByName() {
|
|
20772
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20773
|
-
return
|
|
20774
|
-
while (1) switch (_context.
|
|
20604
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20605
|
+
return _regenerator().w(function (_context) {
|
|
20606
|
+
while (1) switch (_context.n) {
|
|
20775
20607
|
case 0:
|
|
20776
|
-
return _context.
|
|
20608
|
+
return _context.a(2, requestUtil({
|
|
20777
20609
|
url: '/store-house/orgViewNode/listNoPage',
|
|
20778
20610
|
method: 'GET',
|
|
20779
20611
|
params: _objectSpread2({}, params)
|
|
20780
20612
|
}));
|
|
20781
|
-
case 1:
|
|
20782
|
-
case "end":
|
|
20783
|
-
return _context.stop();
|
|
20784
20613
|
}
|
|
20785
20614
|
}, _callee);
|
|
20786
20615
|
}));
|
|
@@ -20815,33 +20644,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20815
20644
|
openSelect = _useState8[0],
|
|
20816
20645
|
setOpenSelect = _useState8[1];
|
|
20817
20646
|
var _useState9 = React$1.useState([]),
|
|
20818
|
-
|
|
20819
|
-
options =
|
|
20820
|
-
setOptions =
|
|
20821
|
-
var
|
|
20647
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
20648
|
+
options = _useState0[0],
|
|
20649
|
+
setOptions = _useState0[1];
|
|
20650
|
+
var _useState1 = React$1.useState([]),
|
|
20651
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
20652
|
+
rescouse = _useState10[0],
|
|
20653
|
+
setRescouse = _useState10[1];
|
|
20654
|
+
var _useState11 = React$1.useState(''),
|
|
20822
20655
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
20823
|
-
|
|
20824
|
-
|
|
20825
|
-
var _useState13 = React$1.useState(
|
|
20826
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
20827
|
-
searchValue = _useState14[0],
|
|
20828
|
-
setSearchValue = _useState14[1];
|
|
20829
|
-
var _useState15 = React$1.useState([{
|
|
20656
|
+
searchValue = _useState12[0],
|
|
20657
|
+
setSearchValue = _useState12[1];
|
|
20658
|
+
var _useState13 = React$1.useState([{
|
|
20830
20659
|
label: name,
|
|
20831
20660
|
value: code
|
|
20832
20661
|
}]),
|
|
20833
|
-
|
|
20834
|
-
store =
|
|
20835
|
-
setStore =
|
|
20662
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
20663
|
+
store = _useState14[0],
|
|
20664
|
+
setStore = _useState14[1];
|
|
20836
20665
|
function fetchUserList(_x, _x2) {
|
|
20837
20666
|
return _fetchUserList.apply(this, arguments);
|
|
20838
20667
|
}
|
|
20839
20668
|
function _fetchUserList() {
|
|
20840
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
20841
|
-
return
|
|
20842
|
-
while (1) switch (_context3.
|
|
20669
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(storeName, init) {
|
|
20670
|
+
return _regenerator().w(function (_context3) {
|
|
20671
|
+
while (1) switch (_context3.n) {
|
|
20843
20672
|
case 0:
|
|
20844
|
-
return _context3.
|
|
20673
|
+
return _context3.a(2, getStoreByName({
|
|
20845
20674
|
orgName: storeName ? storeName : undefined,
|
|
20846
20675
|
platCompanyCode: init ? undefined : key,
|
|
20847
20676
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -20860,9 +20689,6 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20860
20689
|
};
|
|
20861
20690
|
});
|
|
20862
20691
|
}));
|
|
20863
|
-
case 1:
|
|
20864
|
-
case "end":
|
|
20865
|
-
return _context3.stop();
|
|
20866
20692
|
}
|
|
20867
20693
|
}, _callee3);
|
|
20868
20694
|
}));
|
|
@@ -20885,20 +20711,19 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20885
20711
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
20886
20712
|
}, [debounceTimeout, key]);
|
|
20887
20713
|
var changeInput = /*#__PURE__*/function () {
|
|
20888
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
20714
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
|
|
20889
20715
|
var res;
|
|
20890
|
-
return
|
|
20891
|
-
while (1) switch (_context.
|
|
20716
|
+
return _regenerator().w(function (_context) {
|
|
20717
|
+
while (1) switch (_context.n) {
|
|
20892
20718
|
case 0:
|
|
20893
|
-
_context.
|
|
20719
|
+
_context.n = 1;
|
|
20894
20720
|
return debounceFetcher(str);
|
|
20895
|
-
case
|
|
20896
|
-
res = _context.
|
|
20721
|
+
case 1:
|
|
20722
|
+
res = _context.v;
|
|
20897
20723
|
setOptions(res);
|
|
20898
20724
|
setRescouse(res);
|
|
20899
|
-
case
|
|
20900
|
-
|
|
20901
|
-
return _context.stop();
|
|
20725
|
+
case 2:
|
|
20726
|
+
return _context.a(2);
|
|
20902
20727
|
}
|
|
20903
20728
|
}, _callee);
|
|
20904
20729
|
}));
|
|
@@ -20907,15 +20732,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20907
20732
|
};
|
|
20908
20733
|
}();
|
|
20909
20734
|
React$1.useEffect(function () {
|
|
20910
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
20735
|
+
_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
20911
20736
|
var res;
|
|
20912
|
-
return
|
|
20913
|
-
while (1) switch (_context2.
|
|
20737
|
+
return _regenerator().w(function (_context2) {
|
|
20738
|
+
while (1) switch (_context2.n) {
|
|
20914
20739
|
case 0:
|
|
20915
|
-
_context2.
|
|
20740
|
+
_context2.n = 1;
|
|
20916
20741
|
return fetchUserList(undefined, true);
|
|
20917
|
-
case
|
|
20918
|
-
res = _context2.
|
|
20742
|
+
case 1:
|
|
20743
|
+
res = _context2.v;
|
|
20919
20744
|
res.map(function (item, indexNumber) {
|
|
20920
20745
|
if (item.label === name) {
|
|
20921
20746
|
setIndex(indexNumber);
|
|
@@ -20931,9 +20756,8 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20931
20756
|
});
|
|
20932
20757
|
setOptions(res);
|
|
20933
20758
|
setRescouse(res);
|
|
20934
|
-
case
|
|
20935
|
-
|
|
20936
|
-
return _context2.stop();
|
|
20759
|
+
case 2:
|
|
20760
|
+
return _context2.a(2);
|
|
20937
20761
|
}
|
|
20938
20762
|
}, _callee2);
|
|
20939
20763
|
}))();
|
|
@@ -21188,8 +21012,6 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
21188
21012
|
})), /*#__PURE__*/React__default['default'].createElement(GlobalHeaderRight, null));
|
|
21189
21013
|
};
|
|
21190
21014
|
|
|
21191
|
-
var addIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%2014%401x%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B7%A6%E4%BE%A7%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-21.000000%2C%20-71.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%280.000000%2C%2060.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-15%22%20transform%3D%22translate%2821.000000%2C%2010.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-14%22%20transform%3D%22translate%280.000000%2C%201.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%22%20transform%3D%22translate%284.000000%2C%204.000000%29%22%20fill%3D%22%23B1BAD4%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M8%2C0%20C12.4183529%2C0%2016%2C3.58164706%2016%2C8%20C16%2C12.4183529%2012.4183529%2C16%208%2C16%20C3.58164706%2C16%200%2C12.4183529%200%2C8%20C0%2C3.58164706%203.58164706%2C0%208%2C0%20Z%20M8%2C1.4117647%20C4.36141178%2C1.4117647%201.4117647%2C4.36141175%201.4117647%2C8%20C1.4117647%2C11.6385882%204.36141175%2C14.5882353%208%2C14.5882353%20C11.6385882%2C14.5882353%2014.5882353%2C11.6385882%2014.5882353%2C8%20C14.5882353%2C4.36141175%2011.6385882%2C1.4117647%208%2C1.4117647%20Z%20M8.70588235%2C3.76470589%20L8.70588235%2C7.29411765%20L12.2352941%2C7.29411765%20L12.2352941%2C8.70588235%20L8.70588235%2C8.70588235%20L8.70588235%2C12.2352941%20L7.29411765%2C12.2352941%20L7.29411765%2C8.70541177%20L3.76470589%2C8.70588235%20L3.76470589%2C7.29411765%20L7.29411765%2C7.29364707%20L7.29411765%2C3.76470589%20L8.70588235%2C3.76470589%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
21192
|
-
|
|
21193
21015
|
var css_248z$o = ".setting_content > div {\n width: 50%;\n box-sizing: border-box;\n margin: 0 10px;\n}\n.setting_content {\n display: flex;\n}\n.tree_title {\n height: 50px;\n}\n.tree_content {\n height: 400px;\n overflow: auto;\n border: 1px solid #d9d9d9;\n padding: 5px;\n}\n.setting_content::after {\n clear: both;\n display: block;\n content: '';\n}\n.choosed_label_color {\n color: #f50;\n}\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper {\n flex-grow: 1;\n}\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper .ant-tree-title {\n width: 100%;\n}\n.left_tree_content .ant-tree .ant-tree-treenode {\n width: 100%;\n}\n.right_tree_content .ant-tree .ant-tree-node-content-wrapper,\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper {\n display: flex;\n margin-left: -3px;\n}\n.right_tree_content .ant-tree-checkbox,\n.left_tree_content .ant-tree-checkbox {\n top: auto;\n top: initial;\n}\n.node_title_content:hover .right_arrow {\n display: block !important;\n}\n.right_arrow {\n float: right;\n display: none;\n color: #999999;\n margin-right: 10px;\n}\n.right_tree_content .ant-tree-title {\n width: 100%;\n display: inline-block;\n padding-right: 10px;\n}\n.right_tree_content .ant-dropdown-trigger {\n color: gray !important;\n}\n.right_tree_content .tree_node_title {\n font-size: 20px;\n color: #d9d9d9;\n float: right;\n}\n.right_tree_content .tree_node_title span {\n margin-right: 5px;\n}\n";
|
|
21194
21016
|
styleInject(css_248z$o);
|
|
21195
21017
|
|
|
@@ -21895,28 +21717,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
21895
21717
|
};
|
|
21896
21718
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21897
21719
|
className: 'customer_menu_content'
|
|
21898
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
21899
|
-
style: {
|
|
21900
|
-
cursor: 'pointer'
|
|
21901
|
-
},
|
|
21902
|
-
onClick: function onClick(e) {
|
|
21903
|
-
handleClose();
|
|
21904
|
-
settingModalFn(_objectSpread2(_objectSpread2({}, settingModal), {}, {
|
|
21905
|
-
visible: true
|
|
21906
|
-
}));
|
|
21907
|
-
}
|
|
21908
|
-
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
21909
|
-
style: {
|
|
21910
|
-
marginTop: '-3px'
|
|
21911
|
-
},
|
|
21912
|
-
width: 24,
|
|
21913
|
-
src: addIcon
|
|
21914
|
-
}), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
21915
|
-
type: 'link',
|
|
21916
|
-
style: {
|
|
21917
|
-
paddingLeft: '5px'
|
|
21918
|
-
}
|
|
21919
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
21720
|
+
}, !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
21920
21721
|
style: {
|
|
21921
21722
|
left: isDrawer ? 140 : 0
|
|
21922
21723
|
},
|
|
@@ -21982,25 +21783,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
21982
21783
|
currentOneLevel = _useState8[0],
|
|
21983
21784
|
setCurrentOneLevel = _useState8[1];
|
|
21984
21785
|
var _useState9 = React$1.useState([]),
|
|
21985
|
-
|
|
21986
|
-
SearhData =
|
|
21987
|
-
setSearchMenuData =
|
|
21988
|
-
var
|
|
21786
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
21787
|
+
SearhData = _useState0[0],
|
|
21788
|
+
setSearchMenuData = _useState0[1];
|
|
21789
|
+
var _useState1 = React$1.useState(600),
|
|
21790
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
21791
|
+
rightMenuHeight = _useState10[0],
|
|
21792
|
+
setHeight = _useState10[1];
|
|
21793
|
+
var _useState11 = React$1.useState(900),
|
|
21989
21794
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
21990
|
-
|
|
21991
|
-
|
|
21992
|
-
var _useState13 = React$1.useState(
|
|
21795
|
+
drawHeight = _useState12[0],
|
|
21796
|
+
setDrawHeight = _useState12[1];
|
|
21797
|
+
var _useState13 = React$1.useState(false),
|
|
21993
21798
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
21994
|
-
|
|
21995
|
-
|
|
21799
|
+
moreBtnShow = _useState14[0],
|
|
21800
|
+
setMoreBtnShow = _useState14[1];
|
|
21996
21801
|
var _useState15 = React$1.useState(false),
|
|
21997
21802
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
21998
|
-
|
|
21999
|
-
|
|
22000
|
-
var _useState17 = React$1.useState(false),
|
|
22001
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
22002
|
-
showScroll = _useState18[0],
|
|
22003
|
-
setShowScroll = _useState18[1];
|
|
21803
|
+
showScroll = _useState16[0],
|
|
21804
|
+
setShowScroll = _useState16[1];
|
|
22004
21805
|
React$1.useEffect(function () {
|
|
22005
21806
|
var _originRoutes$find;
|
|
22006
21807
|
getMenuContentHeight();
|
|
@@ -22418,7 +22219,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
22418
22219
|
if (item.children && item.children.length > 0) {
|
|
22419
22220
|
_getLimitedMenuKeys(item.children);
|
|
22420
22221
|
} else {
|
|
22421
|
-
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
22222
|
+
var originPath = (item.path || item.frontendPath).replace(/^\/\w+\//, '/');
|
|
22422
22223
|
menuKeys.push(originPath);
|
|
22423
22224
|
if (pathToRegexp('/operation-and-maintenance-center/configuration-management/all-general-documents-specific/:id').test(originPath)) {
|
|
22424
22225
|
getId(originPath) && docsId.push(getId(originPath));
|
|
@@ -22668,7 +22469,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22668
22469
|
return;
|
|
22669
22470
|
}
|
|
22670
22471
|
// todo:暂时处理非wujie环境不做404管控
|
|
22671
|
-
if (!window.__POWERED_BY_WUJIE__) {
|
|
22472
|
+
if (!window.__POWERED_BY_WUJIE__ && !_this.props.isSingleSystem) {
|
|
22672
22473
|
treeList.push({
|
|
22673
22474
|
tab: node.locale,
|
|
22674
22475
|
key: node.path,
|
|
@@ -23611,14 +23412,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23611
23412
|
},
|
|
23612
23413
|
menu: {
|
|
23613
23414
|
request: function () {
|
|
23614
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23615
|
-
return
|
|
23616
|
-
while (1) switch (_context.
|
|
23415
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
23416
|
+
return _regenerator().w(function (_context) {
|
|
23417
|
+
while (1) switch (_context.n) {
|
|
23617
23418
|
case 0:
|
|
23618
|
-
return _context.
|
|
23619
|
-
case 1:
|
|
23620
|
-
case "end":
|
|
23621
|
-
return _context.stop();
|
|
23419
|
+
return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
23622
23420
|
}
|
|
23623
23421
|
}, _callee);
|
|
23624
23422
|
}));
|
|
@@ -24023,31 +23821,31 @@ var index$6 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
24023
23821
|
multiTableData = _useState8[0],
|
|
24024
23822
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
24025
23823
|
var _useState9 = React$1.useState(10),
|
|
24026
|
-
|
|
24027
|
-
viewCount =
|
|
24028
|
-
setViewCount =
|
|
23824
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
23825
|
+
viewCount = _useState0[0],
|
|
23826
|
+
setViewCount = _useState0[1]; //虚拟表格每次渲染数量
|
|
24029
23827
|
var itemWidth = 100; // 表格每一项宽度
|
|
24030
|
-
var
|
|
24031
|
-
|
|
24032
|
-
realColHeaderWidth =
|
|
24033
|
-
setLeftWidth =
|
|
23828
|
+
var _useState1 = React$1.useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
|
|
23829
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
23830
|
+
realColHeaderWidth = _useState10[0],
|
|
23831
|
+
setLeftWidth = _useState10[1];
|
|
24034
23832
|
var viewPort = React$1.useRef(null);
|
|
24035
23833
|
var topScrollBar = React$1.useRef(null);
|
|
24036
23834
|
var leftTableRef = React$1.useRef(null);
|
|
24037
23835
|
//起始渲染item
|
|
24038
|
-
var
|
|
24039
|
-
|
|
24040
|
-
startIndex =
|
|
24041
|
-
setStartIndex =
|
|
23836
|
+
var _useState11 = React$1.useState(0),
|
|
23837
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
23838
|
+
startIndex = _useState12[0],
|
|
23839
|
+
setStartIndex = _useState12[1];
|
|
24042
23840
|
//结束渲染item
|
|
24043
23841
|
var endIndex = React$1.useMemo(function () {
|
|
24044
23842
|
return startIndex + viewCount;
|
|
24045
23843
|
}, [startIndex, viewCount]);
|
|
24046
23844
|
//表格偏移量
|
|
24047
|
-
var
|
|
24048
|
-
|
|
24049
|
-
offsetWidth =
|
|
24050
|
-
setOffset =
|
|
23845
|
+
var _useState13 = React$1.useState(0),
|
|
23846
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
23847
|
+
offsetWidth = _useState14[0],
|
|
23848
|
+
setOffset = _useState14[1];
|
|
24051
23849
|
React$1.useEffect(function () {
|
|
24052
23850
|
setTimeout(function () {
|
|
24053
23851
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -31351,11 +31149,11 @@ var valueType = {
|
|
|
31351
31149
|
};
|
|
31352
31150
|
|
|
31353
31151
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
31354
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
31355
|
-
return
|
|
31356
|
-
while (1) switch (_context.
|
|
31152
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(dictionaryCode) {
|
|
31153
|
+
return _regenerator().w(function (_context) {
|
|
31154
|
+
while (1) switch (_context.n) {
|
|
31357
31155
|
case 0:
|
|
31358
|
-
_context.
|
|
31156
|
+
_context.n = 1;
|
|
31359
31157
|
return bssula.request({
|
|
31360
31158
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
31361
31159
|
converter: function converter(_ref2) {
|
|
@@ -31368,11 +31166,8 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
31368
31166
|
});
|
|
31369
31167
|
}
|
|
31370
31168
|
});
|
|
31371
|
-
case
|
|
31372
|
-
return _context.
|
|
31373
|
-
case 3:
|
|
31374
|
-
case "end":
|
|
31375
|
-
return _context.stop();
|
|
31169
|
+
case 1:
|
|
31170
|
+
return _context.a(2, _context.v);
|
|
31376
31171
|
}
|
|
31377
31172
|
}, _callee);
|
|
31378
31173
|
}));
|
|
@@ -31419,12 +31214,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31419
31214
|
value: false
|
|
31420
31215
|
}];
|
|
31421
31216
|
var ref = React$1.useRef();
|
|
31422
|
-
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
31423
|
-
var _ref$current, source;
|
|
31424
|
-
return
|
|
31425
|
-
while (1) switch (_context.
|
|
31217
|
+
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
31218
|
+
var _ref$current, source, _t, _t2;
|
|
31219
|
+
return _regenerator().w(function (_context) {
|
|
31220
|
+
while (1) switch (_context.n) {
|
|
31426
31221
|
case 0:
|
|
31427
|
-
_context.
|
|
31222
|
+
_context.n = 1;
|
|
31428
31223
|
return setIsShowAndType(function (prev) {
|
|
31429
31224
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
31430
31225
|
return {
|
|
@@ -31435,40 +31230,39 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31435
31230
|
}
|
|
31436
31231
|
return prev;
|
|
31437
31232
|
});
|
|
31438
|
-
case
|
|
31233
|
+
case 1:
|
|
31439
31234
|
if (!record.dictionaryCode) {
|
|
31440
|
-
_context.
|
|
31235
|
+
_context.n = 7;
|
|
31441
31236
|
break;
|
|
31442
31237
|
}
|
|
31443
31238
|
if (!(record.choiceType == 20)) {
|
|
31444
|
-
_context.
|
|
31239
|
+
_context.n = 2;
|
|
31445
31240
|
break;
|
|
31446
31241
|
}
|
|
31447
|
-
|
|
31448
|
-
_context.
|
|
31242
|
+
_t = getDictionarySource(record.dictionaryCode);
|
|
31243
|
+
_context.n = 6;
|
|
31449
31244
|
break;
|
|
31450
|
-
case
|
|
31245
|
+
case 2:
|
|
31451
31246
|
if (!(record.choiceType == 30)) {
|
|
31452
|
-
_context.
|
|
31247
|
+
_context.n = 4;
|
|
31453
31248
|
break;
|
|
31454
31249
|
}
|
|
31455
|
-
_context.
|
|
31250
|
+
_context.n = 3;
|
|
31456
31251
|
return getDynamicDict(record.dictionaryCode);
|
|
31457
|
-
case
|
|
31458
|
-
|
|
31459
|
-
_context.
|
|
31252
|
+
case 3:
|
|
31253
|
+
_t2 = _context.v;
|
|
31254
|
+
_context.n = 5;
|
|
31460
31255
|
break;
|
|
31461
|
-
case
|
|
31462
|
-
|
|
31463
|
-
case
|
|
31464
|
-
|
|
31465
|
-
case
|
|
31466
|
-
source =
|
|
31256
|
+
case 4:
|
|
31257
|
+
_t2 = [];
|
|
31258
|
+
case 5:
|
|
31259
|
+
_t = _t2;
|
|
31260
|
+
case 6:
|
|
31261
|
+
source = _t;
|
|
31467
31262
|
// @ts-ignore
|
|
31468
31263
|
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
31469
|
-
case
|
|
31470
|
-
|
|
31471
|
-
return _context.stop();
|
|
31264
|
+
case 7:
|
|
31265
|
+
return _context.a(2);
|
|
31472
31266
|
}
|
|
31473
31267
|
}, _callee);
|
|
31474
31268
|
})));
|
|
@@ -31533,10 +31327,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31533
31327
|
source: {
|
|
31534
31328
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
31535
31329
|
type: function () {
|
|
31536
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
31330
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
|
|
31537
31331
|
var form, values, name, relates, source;
|
|
31538
|
-
return
|
|
31539
|
-
while (1) switch (_context2.
|
|
31332
|
+
return _regenerator().w(function (_context2) {
|
|
31333
|
+
while (1) switch (_context2.n) {
|
|
31540
31334
|
case 0:
|
|
31541
31335
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
31542
31336
|
if (values[0]) {
|
|
@@ -31545,19 +31339,18 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31545
31339
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
31546
31340
|
}
|
|
31547
31341
|
if (!values[1]) {
|
|
31548
|
-
_context2.
|
|
31342
|
+
_context2.n = 2;
|
|
31549
31343
|
break;
|
|
31550
31344
|
}
|
|
31551
|
-
_context2.
|
|
31345
|
+
_context2.n = 1;
|
|
31552
31346
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
31553
|
-
case
|
|
31554
|
-
source = _context2.
|
|
31347
|
+
case 1:
|
|
31348
|
+
source = _context2.v;
|
|
31555
31349
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
31556
31350
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
31557
31351
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
31558
|
-
case
|
|
31559
|
-
|
|
31560
|
-
return _context2.stop();
|
|
31352
|
+
case 2:
|
|
31353
|
+
return _context2.a(2);
|
|
31561
31354
|
}
|
|
31562
31355
|
}, _callee2);
|
|
31563
31356
|
}));
|
|
@@ -32013,25 +31806,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32013
31806
|
source: {
|
|
32014
31807
|
relates: ['choiceType', 'inputType'],
|
|
32015
31808
|
type: function () {
|
|
32016
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
31809
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
|
|
32017
31810
|
var values, name, form, source;
|
|
32018
|
-
return
|
|
32019
|
-
while (1) switch (_context3.
|
|
31811
|
+
return _regenerator().w(function (_context3) {
|
|
31812
|
+
while (1) switch (_context3.n) {
|
|
32020
31813
|
case 0:
|
|
32021
|
-
values =
|
|
31814
|
+
values = _ref0.values, name = _ref0.name, form = _ref0.form;
|
|
32022
31815
|
if (values[1] === 40) {
|
|
32023
31816
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
32024
31817
|
form.setFieldVisible(name, false);
|
|
32025
31818
|
}
|
|
32026
31819
|
if (!(values[0] === 30)) {
|
|
32027
|
-
_context3.
|
|
31820
|
+
_context3.n = 2;
|
|
32028
31821
|
break;
|
|
32029
31822
|
}
|
|
32030
|
-
_context3.
|
|
31823
|
+
_context3.n = 1;
|
|
32031
31824
|
return bssula.request({
|
|
32032
31825
|
url: '/basic/dictDynamicItem/queryList',
|
|
32033
|
-
converter: function converter(
|
|
32034
|
-
var data =
|
|
31826
|
+
converter: function converter(_ref1) {
|
|
31827
|
+
var data = _ref1.data;
|
|
32035
31828
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32036
31829
|
return {
|
|
32037
31830
|
text: d.dictCode,
|
|
@@ -32040,17 +31833,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32040
31833
|
});
|
|
32041
31834
|
}
|
|
32042
31835
|
});
|
|
32043
|
-
case
|
|
32044
|
-
source = _context3.
|
|
31836
|
+
case 1:
|
|
31837
|
+
source = _context3.v;
|
|
32045
31838
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
32046
31839
|
form.setFieldVisible(name, true);
|
|
32047
|
-
_context3.
|
|
31840
|
+
_context3.n = 3;
|
|
32048
31841
|
break;
|
|
32049
|
-
case
|
|
31842
|
+
case 2:
|
|
32050
31843
|
form.setFieldVisible(name, false);
|
|
32051
|
-
case
|
|
32052
|
-
|
|
32053
|
-
return _context3.stop();
|
|
31844
|
+
case 3:
|
|
31845
|
+
return _context3.a(2);
|
|
32054
31846
|
}
|
|
32055
31847
|
}, _callee3);
|
|
32056
31848
|
}));
|
|
@@ -32065,8 +31857,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32065
31857
|
name: 'enumeration',
|
|
32066
31858
|
label: '维护自定义选项',
|
|
32067
31859
|
field: {
|
|
32068
|
-
type: function type(
|
|
32069
|
-
var form =
|
|
31860
|
+
type: function type(_ref10) {
|
|
31861
|
+
var form = _ref10.form;
|
|
32070
31862
|
return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
32071
31863
|
type: 'link',
|
|
32072
31864
|
onClick: function onClick() {
|
|
@@ -32092,10 +31884,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32092
31884
|
dependency: {
|
|
32093
31885
|
source: {
|
|
32094
31886
|
relates: ['choiceType'],
|
|
32095
|
-
type: function type(
|
|
32096
|
-
var values =
|
|
32097
|
-
name =
|
|
32098
|
-
form =
|
|
31887
|
+
type: function type(_ref11) {
|
|
31888
|
+
var values = _ref11.values,
|
|
31889
|
+
name = _ref11.name,
|
|
31890
|
+
form = _ref11.form;
|
|
32099
31891
|
if (values[0] === 10) {
|
|
32100
31892
|
form.setFieldVisible(name, true);
|
|
32101
31893
|
} else {
|
|
@@ -32111,10 +31903,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32111
31903
|
dependency: {
|
|
32112
31904
|
visible: {
|
|
32113
31905
|
relates: ['choiceType'],
|
|
32114
|
-
type: function type(
|
|
32115
|
-
var name =
|
|
32116
|
-
values =
|
|
32117
|
-
form =
|
|
31906
|
+
type: function type(_ref12) {
|
|
31907
|
+
var name = _ref12.name,
|
|
31908
|
+
values = _ref12.values,
|
|
31909
|
+
form = _ref12.form;
|
|
32118
31910
|
if (values[0] == 330) {
|
|
32119
31911
|
form.setFieldVisible(name, true);
|
|
32120
31912
|
} else {
|
|
@@ -32138,8 +31930,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32138
31930
|
params: {
|
|
32139
31931
|
'qp-businessType-eq': record.businessType
|
|
32140
31932
|
},
|
|
32141
|
-
converter: function converter(
|
|
32142
|
-
var data =
|
|
31933
|
+
converter: function converter(_ref13) {
|
|
31934
|
+
var data = _ref13.data;
|
|
32143
31935
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32144
31936
|
return {
|
|
32145
31937
|
text: d.name,
|
|
@@ -32179,8 +31971,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32179
31971
|
'qp-businessType-eq': record.businessType,
|
|
32180
31972
|
'qp-status-eq': 1
|
|
32181
31973
|
},
|
|
32182
|
-
converter: function converter(
|
|
32183
|
-
var data =
|
|
31974
|
+
converter: function converter(_ref14) {
|
|
31975
|
+
var data = _ref14.data;
|
|
32184
31976
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32185
31977
|
var _d$code;
|
|
32186
31978
|
return {
|
|
@@ -32208,8 +32000,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32208
32000
|
remoteSource: {
|
|
32209
32001
|
url: lineDetail.moduleType == 1 ? "/basic/planModelField/listNoPage?qp-modelCode-eq=".concat(lineDetail === null || lineDetail === void 0 ? void 0 : lineDetail.moduleRelationId) : "/basic/flow/businessField/metaFieldMapping?metaEntityCode=".concat(lineDetail === null || lineDetail === void 0 ? void 0 : lineDetail.moduleRelationId, "&fieldMapping=").concat(record === null || record === void 0 ? void 0 : record.fieldMapping),
|
|
32210
32002
|
method: 'get',
|
|
32211
|
-
converter: function converter(
|
|
32212
|
-
var data =
|
|
32003
|
+
converter: function converter(_ref15) {
|
|
32004
|
+
var data = _ref15.data;
|
|
32213
32005
|
if (lineDetail.moduleType == 1) {
|
|
32214
32006
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32215
32007
|
return {
|
|
@@ -32235,16 +32027,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32235
32027
|
width: 900,
|
|
32236
32028
|
maskClosable: false,
|
|
32237
32029
|
onOk: function () {
|
|
32238
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
32030
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
32239
32031
|
var _ref$current4, _res$editableStatus;
|
|
32240
32032
|
var res, _res$defaultValue;
|
|
32241
|
-
return
|
|
32242
|
-
while (1) switch (_context4.
|
|
32033
|
+
return _regenerator().w(function (_context4) {
|
|
32034
|
+
while (1) switch (_context4.n) {
|
|
32243
32035
|
case 0:
|
|
32244
|
-
_context4.
|
|
32036
|
+
_context4.n = 1;
|
|
32245
32037
|
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
32246
|
-
case
|
|
32247
|
-
res = _context4.
|
|
32038
|
+
case 1:
|
|
32039
|
+
res = _context4.v;
|
|
32248
32040
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
32249
32041
|
res.fieldGroup = record.fieldGroup;
|
|
32250
32042
|
res.businessType = record.businessType;
|
|
@@ -32271,7 +32063,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32271
32063
|
delete res.formula;
|
|
32272
32064
|
delete res.showValue;
|
|
32273
32065
|
if (!(mode === 'create')) {
|
|
32274
|
-
_context4.
|
|
32066
|
+
_context4.n = 2;
|
|
32275
32067
|
break;
|
|
32276
32068
|
}
|
|
32277
32069
|
bssula.request({
|
|
@@ -32283,8 +32075,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32283
32075
|
onParentOk();
|
|
32284
32076
|
}
|
|
32285
32077
|
});
|
|
32286
|
-
return _context4.
|
|
32287
|
-
case
|
|
32078
|
+
return _context4.a(2);
|
|
32079
|
+
case 2:
|
|
32288
32080
|
bssula.request({
|
|
32289
32081
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
32290
32082
|
method: 'PATCH',
|
|
@@ -32294,9 +32086,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32294
32086
|
onParentOk();
|
|
32295
32087
|
}
|
|
32296
32088
|
});
|
|
32297
|
-
case
|
|
32298
|
-
|
|
32299
|
-
return _context4.stop();
|
|
32089
|
+
case 3:
|
|
32090
|
+
return _context4.a(2);
|
|
32300
32091
|
}
|
|
32301
32092
|
}, _callee4);
|
|
32302
32093
|
}));
|
|
@@ -32752,21 +32543,21 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
32752
32543
|
jsonEditorVal = _useState8[0],
|
|
32753
32544
|
setJsonEditorVal = _useState8[1];
|
|
32754
32545
|
var _useState9 = React$1.useState({}),
|
|
32755
|
-
|
|
32756
|
-
moduleParams =
|
|
32757
|
-
setModuleParams =
|
|
32758
|
-
var
|
|
32546
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
32547
|
+
moduleParams = _useState0[0],
|
|
32548
|
+
setModuleParams = _useState0[1];
|
|
32549
|
+
var _useState1 = React$1.useState('main'),
|
|
32550
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
32551
|
+
activeKey = _useState10[0],
|
|
32552
|
+
setActiveKey = _useState10[1]; //默认详情页配置
|
|
32553
|
+
var _useState11 = React$1.useState({}),
|
|
32759
32554
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32760
|
-
|
|
32761
|
-
|
|
32762
|
-
var _useState13 = React$1.useState(
|
|
32555
|
+
tablesConfigParams = _useState12[0],
|
|
32556
|
+
setTablesConfigParams = _useState12[1];
|
|
32557
|
+
var _useState13 = React$1.useState([]),
|
|
32763
32558
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32764
|
-
|
|
32765
|
-
|
|
32766
|
-
var _useState15 = React$1.useState([]),
|
|
32767
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
32768
|
-
tableJsonEditorValsArr = _useState16[0],
|
|
32769
|
-
setTableJsonEditorValsArr = _useState16[1];
|
|
32559
|
+
tableJsonEditorValsArr = _useState14[0],
|
|
32560
|
+
setTableJsonEditorValsArr = _useState14[1];
|
|
32770
32561
|
React$1.useEffect(function () {
|
|
32771
32562
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32772
32563
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -33142,11 +32933,11 @@ function getMetaData(_x) {
|
|
|
33142
32933
|
|
|
33143
32934
|
// 获取数据
|
|
33144
32935
|
function _getMetaData() {
|
|
33145
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
33146
|
-
return
|
|
33147
|
-
while (1) switch (_context.
|
|
32936
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id) {
|
|
32937
|
+
return _regenerator().w(function (_context) {
|
|
32938
|
+
while (1) switch (_context.n) {
|
|
33148
32939
|
case 0:
|
|
33149
|
-
return _context.
|
|
32940
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
33150
32941
|
umi.request('/basic/entityProperty/listNoPage', {
|
|
33151
32942
|
params: {
|
|
33152
32943
|
'qp-entityId-eq': id
|
|
@@ -33158,9 +32949,6 @@ function _getMetaData() {
|
|
|
33158
32949
|
reject([]);
|
|
33159
32950
|
});
|
|
33160
32951
|
}));
|
|
33161
|
-
case 1:
|
|
33162
|
-
case "end":
|
|
33163
|
-
return _context.stop();
|
|
33164
32952
|
}
|
|
33165
32953
|
}, _callee);
|
|
33166
32954
|
}));
|
|
@@ -33364,11 +33152,11 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33364
33152
|
tableState = _useState4[0],
|
|
33365
33153
|
setTableState = _useState4[1];
|
|
33366
33154
|
var handleOpen = /*#__PURE__*/function () {
|
|
33367
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33155
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33368
33156
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
33369
33157
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
33370
|
-
return
|
|
33371
|
-
while (1) switch (_context.
|
|
33158
|
+
return _regenerator().w(function (_context) {
|
|
33159
|
+
while (1) switch (_context.n) {
|
|
33372
33160
|
case 0:
|
|
33373
33161
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
33374
33162
|
isSearchForm: props.isSearchForm,
|
|
@@ -33376,16 +33164,16 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33376
33164
|
searchFormData: searchFormData
|
|
33377
33165
|
});
|
|
33378
33166
|
if (requestConfigNew) {
|
|
33379
|
-
_context.
|
|
33167
|
+
_context.n = 1;
|
|
33380
33168
|
break;
|
|
33381
33169
|
}
|
|
33382
|
-
return _context.
|
|
33383
|
-
case
|
|
33170
|
+
return _context.a(2);
|
|
33171
|
+
case 1:
|
|
33384
33172
|
metaDataId = (_props$customSelector = props.customSelectorConfig) === null || _props$customSelector === void 0 ? void 0 : (_props$customSelector2 = _props$customSelector.targetMetaData) === null || _props$customSelector2 === void 0 ? void 0 : _props$customSelector2.id;
|
|
33385
|
-
_context.
|
|
33173
|
+
_context.n = 2;
|
|
33386
33174
|
return getMetaData(metaDataId);
|
|
33387
|
-
case
|
|
33388
|
-
metaData = _context.
|
|
33175
|
+
case 2:
|
|
33176
|
+
metaData = _context.v;
|
|
33389
33177
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
33390
33178
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
33391
33179
|
})) || [];
|
|
@@ -33425,9 +33213,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33425
33213
|
// @ts-ignore
|
|
33426
33214
|
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren = queryTableRef.current) === null || _queryTableRef$curren === void 0 ? void 0 : (_queryTableRef$curren2 = _queryTableRef$curren.tableRef) === null || _queryTableRef$curren2 === void 0 ? void 0 : (_queryTableRef$curren3 = _queryTableRef$curren2.current) === null || _queryTableRef$curren3 === void 0 ? void 0 : _queryTableRef$curren3.bsSetSelectInfo(initValue);
|
|
33427
33215
|
}
|
|
33428
|
-
case
|
|
33429
|
-
|
|
33430
|
-
return _context.stop();
|
|
33216
|
+
case 3:
|
|
33217
|
+
return _context.a(2);
|
|
33431
33218
|
}
|
|
33432
33219
|
}, _callee);
|
|
33433
33220
|
}));
|
|
@@ -33530,7 +33317,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33530
33317
|
}, [requestConfig, tableState.columns]);
|
|
33531
33318
|
var rowKey = (_ref3 = (_fieldMappingItem$cod = fieldMappingItem === null || fieldMappingItem === void 0 ? void 0 : fieldMappingItem.codeMappingFrom) !== null && _fieldMappingItem$cod !== void 0 ? _fieldMappingItem$cod : 'id') !== null && _ref3 !== void 0 ? _ref3 : 'code';
|
|
33532
33319
|
var handleOk = function handleOk(rowData) {
|
|
33533
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
33320
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
|
|
33534
33321
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
33535
33322
|
//多选数据处理
|
|
33536
33323
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -33541,9 +33328,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33541
33328
|
var selectedRows = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren7 = queryTableRef.current) === null || _queryTableRef$curren7 === void 0 ? void 0 : (_queryTableRef$curren8 = _queryTableRef$curren7.tableRef) === null || _queryTableRef$curren8 === void 0 ? void 0 : (_queryTableRef$curren9 = _queryTableRef$curren8.current) === null || _queryTableRef$curren9 === void 0 ? void 0 : _queryTableRef$curren9.getSelectedRows()) || [];
|
|
33542
33329
|
var realSelectedRows = selectedRows;
|
|
33543
33330
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
33544
|
-
var _queryTableRef$
|
|
33331
|
+
var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
|
|
33545
33332
|
// @ts-ignore
|
|
33546
|
-
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33333
|
+
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren0 = queryTableRef.current) === null || _queryTableRef$curren0 === void 0 ? void 0 : (_queryTableRef$curren1 = _queryTableRef$curren0.tableRef) === null || _queryTableRef$curren1 === void 0 ? void 0 : (_queryTableRef$curren10 = _queryTableRef$curren1.current) === null || _queryTableRef$curren10 === void 0 ? void 0 : _queryTableRef$curren10.getDataSource()) || [];
|
|
33547
33334
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
33548
33335
|
return selectedKesys.includes(s[rowKey]);
|
|
33549
33336
|
});
|
|
@@ -33576,10 +33363,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33576
33363
|
});
|
|
33577
33364
|
}
|
|
33578
33365
|
mappings.map(function (item) {
|
|
33579
|
-
var _props$
|
|
33580
|
-
if (((_props$
|
|
33581
|
-
var _props$
|
|
33582
|
-
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$
|
|
33366
|
+
var _props$customSelector0, _props$customSelector1, _props$customSelector10, _props$customSelector11;
|
|
33367
|
+
if (((_props$customSelector0 = props.customSelectorConfig) === null || _props$customSelector0 === void 0 ? void 0 : (_props$customSelector1 = _props$customSelector0.extraData) === null || _props$customSelector1 === void 0 ? void 0 : _props$customSelector1.echoLabel) && item.codeMappingTo === prop && rowData[(_props$customSelector10 = props.customSelectorConfig) === null || _props$customSelector10 === void 0 ? void 0 : (_props$customSelector11 = _props$customSelector10.extraData) === null || _props$customSelector11 === void 0 ? void 0 : _props$customSelector11.echoLabel]) {
|
|
33368
|
+
var _props$customSelector12, _props$customSelector13;
|
|
33369
|
+
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$customSelector12 = props.customSelectorConfig) === null || _props$customSelector12 === void 0 ? void 0 : (_props$customSelector13 = _props$customSelector12.extraData) === null || _props$customSelector13 === void 0 ? void 0 : _props$customSelector13.echoLabel];
|
|
33583
33370
|
}
|
|
33584
33371
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
33585
33372
|
});
|
|
@@ -33634,10 +33421,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33634
33421
|
}
|
|
33635
33422
|
props.onCancel();
|
|
33636
33423
|
//@ts-ignore
|
|
33637
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33424
|
+
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren11 = queryTableRef.current) === null || _queryTableRef$curren11 === void 0 ? void 0 : (_queryTableRef$curren12 = _queryTableRef$curren11.tableRef) === null || _queryTableRef$curren12 === void 0 ? void 0 : (_queryTableRef$curren13 = _queryTableRef$curren12.current) === null || _queryTableRef$curren13 === void 0 ? void 0 : _queryTableRef$curren13.clearRowSelection();
|
|
33638
33425
|
};
|
|
33639
33426
|
var config = React$1.useMemo(function () {
|
|
33640
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
33427
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
|
|
33641
33428
|
var returnConfig = {
|
|
33642
33429
|
size: 'small',
|
|
33643
33430
|
needPageHeader: false,
|
|
@@ -33646,7 +33433,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33646
33433
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33647
33434
|
selectedRowKeys: !(props === null || props === void 0 ? void 0 : (_props$ctx9 = props.ctx) === null || _props$ctx9 === void 0 ? void 0 : _props$ctx9.form) && (props === null || props === void 0 ? void 0 : (_props$value2 = props.value) === null || _props$value2 === void 0 ? void 0 : _props$value2.map(function (v) {
|
|
33648
33435
|
return v.key || v;
|
|
33649
|
-
})) || (props === null || props === void 0 ? void 0 : (_props$
|
|
33436
|
+
})) || (props === null || props === void 0 ? void 0 : (_props$ctx0 = props.ctx) === null || _props$ctx0 === void 0 ? void 0 : (_props$ctx0$form = _props$ctx0.form) === null || _props$ctx0$form === void 0 ? void 0 : _props$ctx0$form.getFieldValue(props.id))
|
|
33650
33437
|
} : false,
|
|
33651
33438
|
remoteDataSource: remoteDataSource,
|
|
33652
33439
|
fields: tableState.fields,
|
|
@@ -33654,8 +33441,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33654
33441
|
rowKey: rowKey,
|
|
33655
33442
|
tableProps: !isView && {
|
|
33656
33443
|
rowClassName: function rowClassName(record) {
|
|
33657
|
-
var _props$
|
|
33658
|
-
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$
|
|
33444
|
+
var _props$ctx1, _props$value3, _props$ctx10, _props$ctx10$form;
|
|
33445
|
+
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$ctx1 = props.ctx) === null || _props$ctx1 === void 0 ? void 0 : _props$ctx1.form) && ((props === null || props === void 0 ? void 0 : (_props$value3 = props.value) === null || _props$value3 === void 0 ? void 0 : _props$value3.key) || (props === null || props === void 0 ? void 0 : props.value)) || (props === null || props === void 0 ? void 0 : (_props$ctx10 = props.ctx) === null || _props$ctx10 === void 0 ? void 0 : (_props$ctx10$form = _props$ctx10.form) === null || _props$ctx10$form === void 0 ? void 0 : _props$ctx10$form.getFieldValue(props.id))) ? 'tableSelectedRow' : '';
|
|
33659
33446
|
},
|
|
33660
33447
|
onRow: function onRow(record) {
|
|
33661
33448
|
return {
|
|
@@ -33700,10 +33487,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33700
33487
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
33701
33488
|
type: "default",
|
|
33702
33489
|
onClick: function onClick() {
|
|
33703
|
-
var _queryTableRef$
|
|
33490
|
+
var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
|
|
33704
33491
|
props.onCancel();
|
|
33705
33492
|
//@ts-ignore
|
|
33706
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33493
|
+
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren14 = queryTableRef.current) === null || _queryTableRef$curren14 === void 0 ? void 0 : (_queryTableRef$curren15 = _queryTableRef$curren14.tableRef) === null || _queryTableRef$curren15 === void 0 ? void 0 : (_queryTableRef$curren16 = _queryTableRef$curren15.current) === null || _queryTableRef$curren16 === void 0 ? void 0 : _queryTableRef$curren16.clearRowSelection();
|
|
33707
33494
|
}
|
|
33708
33495
|
}, "\u53D6\u6D88"))));
|
|
33709
33496
|
});
|
|
@@ -33927,19 +33714,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33927
33714
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33928
33715
|
handSource = _useState2[0],
|
|
33929
33716
|
setHandSource = _useState2[1];
|
|
33930
|
-
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
33717
|
+
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33931
33718
|
var resData, data;
|
|
33932
|
-
return
|
|
33933
|
-
while (1) switch (_context.
|
|
33719
|
+
return _regenerator().w(function (_context) {
|
|
33720
|
+
while (1) switch (_context.n) {
|
|
33934
33721
|
case 0:
|
|
33935
33722
|
if (!(!source && initRequestSource)) {
|
|
33936
|
-
_context.
|
|
33723
|
+
_context.n = 2;
|
|
33937
33724
|
break;
|
|
33938
33725
|
}
|
|
33939
|
-
_context.
|
|
33726
|
+
_context.n = 1;
|
|
33940
33727
|
return initRequestSource();
|
|
33941
|
-
case
|
|
33942
|
-
resData = _context.
|
|
33728
|
+
case 1:
|
|
33729
|
+
resData = _context.v;
|
|
33943
33730
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
33944
33731
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
33945
33732
|
label: item.text,
|
|
@@ -33947,9 +33734,8 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33947
33734
|
});
|
|
33948
33735
|
})) || [];
|
|
33949
33736
|
setHandSource(data);
|
|
33950
|
-
case
|
|
33951
|
-
|
|
33952
|
-
return _context.stop();
|
|
33737
|
+
case 2:
|
|
33738
|
+
return _context.a(2);
|
|
33953
33739
|
}
|
|
33954
33740
|
}, _callee);
|
|
33955
33741
|
})), []);
|
|
@@ -34079,20 +33865,17 @@ function getRegularThresholdRange(_x) {
|
|
|
34079
33865
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
34080
33866
|
}
|
|
34081
33867
|
function _getRegularThresholdRange() {
|
|
34082
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
34083
|
-
return
|
|
34084
|
-
while (1) switch (_context.
|
|
33868
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
33869
|
+
return _regenerator().w(function (_context) {
|
|
33870
|
+
while (1) switch (_context.n) {
|
|
34085
33871
|
case 0:
|
|
34086
|
-
return _context.
|
|
33872
|
+
return _context.a(2, requestUtil({
|
|
34087
33873
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
34088
33874
|
method: 'POST',
|
|
34089
33875
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
34090
33876
|
queryIdentify: undefined
|
|
34091
33877
|
})
|
|
34092
33878
|
}));
|
|
34093
|
-
case 1:
|
|
34094
|
-
case "end":
|
|
34095
|
-
return _context.stop();
|
|
34096
33879
|
}
|
|
34097
33880
|
}, _callee);
|
|
34098
33881
|
}));
|
|
@@ -34233,24 +34016,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34233
34016
|
};
|
|
34234
34017
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
34235
34018
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
34236
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
34019
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
34237
34020
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
34238
|
-
return
|
|
34239
|
-
while (1) switch (_context.
|
|
34021
|
+
return _regenerator().w(function (_context) {
|
|
34022
|
+
while (1) switch (_context.n) {
|
|
34240
34023
|
case 0:
|
|
34241
34024
|
if (queryIdentify) {
|
|
34242
|
-
_context.
|
|
34025
|
+
_context.n = 1;
|
|
34243
34026
|
break;
|
|
34244
34027
|
}
|
|
34245
|
-
return _context.
|
|
34246
|
-
case
|
|
34028
|
+
return _context.a(2);
|
|
34029
|
+
case 1:
|
|
34247
34030
|
thresholdQuery = _this.state.thresholdQuery;
|
|
34248
34031
|
extraRequestUrl = '';
|
|
34249
34032
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
34250
34033
|
if (!queryIdentityInfo.find(function (item) {
|
|
34251
34034
|
return item.identity == propertyCode;
|
|
34252
34035
|
})) {
|
|
34253
|
-
_context.
|
|
34036
|
+
_context.n = 3;
|
|
34254
34037
|
break;
|
|
34255
34038
|
}
|
|
34256
34039
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -34264,15 +34047,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34264
34047
|
if (!needQueryList.some(function (item) {
|
|
34265
34048
|
return !querParams[item] || !querParams[item].length;
|
|
34266
34049
|
})) {
|
|
34267
|
-
_context.
|
|
34050
|
+
_context.n = 2;
|
|
34268
34051
|
break;
|
|
34269
34052
|
}
|
|
34270
|
-
return _context.
|
|
34271
|
-
case
|
|
34053
|
+
return _context.a(2);
|
|
34054
|
+
case 2:
|
|
34272
34055
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
34273
34056
|
return item.identity == propertyCode;
|
|
34274
34057
|
}).requestUrl || '';
|
|
34275
|
-
case
|
|
34058
|
+
case 3:
|
|
34276
34059
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
34277
34060
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
34278
34061
|
querParams = {
|
|
@@ -34283,7 +34066,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34283
34066
|
// querParams = { dictCode: queryIdentify }
|
|
34284
34067
|
}
|
|
34285
34068
|
if (!extraRequestUrl) {
|
|
34286
|
-
_context.
|
|
34069
|
+
_context.n = 4;
|
|
34287
34070
|
break;
|
|
34288
34071
|
}
|
|
34289
34072
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -34322,43 +34105,42 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34322
34105
|
return handleData;
|
|
34323
34106
|
}
|
|
34324
34107
|
});
|
|
34325
|
-
_context.
|
|
34108
|
+
_context.n = 8;
|
|
34326
34109
|
break;
|
|
34327
|
-
case
|
|
34110
|
+
case 4:
|
|
34328
34111
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
34329
|
-
_context.
|
|
34112
|
+
_context.n = 5;
|
|
34330
34113
|
break;
|
|
34331
34114
|
}
|
|
34332
34115
|
_this.setState({
|
|
34333
34116
|
thresholdList: queryIdentify
|
|
34334
34117
|
});
|
|
34335
|
-
_context.
|
|
34118
|
+
_context.n = 8;
|
|
34336
34119
|
break;
|
|
34337
|
-
case
|
|
34120
|
+
case 5:
|
|
34338
34121
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
34339
|
-
_context.
|
|
34122
|
+
_context.n = 6;
|
|
34340
34123
|
break;
|
|
34341
34124
|
}
|
|
34342
34125
|
// TODO待处理
|
|
34343
34126
|
_this.setState({
|
|
34344
34127
|
thresholdList: []
|
|
34345
34128
|
});
|
|
34346
|
-
_context.
|
|
34129
|
+
_context.n = 8;
|
|
34347
34130
|
break;
|
|
34348
|
-
case
|
|
34131
|
+
case 6:
|
|
34349
34132
|
querParams.queryIdentify = queryIdentify;
|
|
34350
|
-
_context.
|
|
34133
|
+
_context.n = 7;
|
|
34351
34134
|
return getRegularThresholdRange(querParams);
|
|
34352
|
-
case
|
|
34353
|
-
res = _context.
|
|
34135
|
+
case 7:
|
|
34136
|
+
res = _context.v;
|
|
34354
34137
|
if (handleError(res)) {
|
|
34355
34138
|
_this.setState({
|
|
34356
34139
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
34357
34140
|
});
|
|
34358
34141
|
}
|
|
34359
|
-
case
|
|
34360
|
-
|
|
34361
|
-
return _context.stop();
|
|
34142
|
+
case 8:
|
|
34143
|
+
return _context.a(2);
|
|
34362
34144
|
}
|
|
34363
34145
|
}, _callee);
|
|
34364
34146
|
}));
|
|
@@ -35190,11 +34972,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35190
34972
|
isAll: true,
|
|
35191
34973
|
needNameAndCode: true,
|
|
35192
34974
|
notChangeOnSelect: true,
|
|
35193
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35194
|
-
return
|
|
35195
|
-
while (1) switch (_context2.
|
|
34975
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
34976
|
+
return _regenerator().w(function (_context2) {
|
|
34977
|
+
while (1) switch (_context2.n) {
|
|
35196
34978
|
case 0:
|
|
35197
|
-
_context2.
|
|
34979
|
+
_context2.n = 1;
|
|
35198
34980
|
return bssula.request({
|
|
35199
34981
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35200
34982
|
method: 'get',
|
|
@@ -35211,11 +34993,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35211
34993
|
return handleData;
|
|
35212
34994
|
}
|
|
35213
34995
|
});
|
|
35214
|
-
case
|
|
35215
|
-
return _context2.
|
|
35216
|
-
case 3:
|
|
35217
|
-
case "end":
|
|
35218
|
-
return _context2.stop();
|
|
34996
|
+
case 1:
|
|
34997
|
+
return _context2.a(2, _context2.v);
|
|
35219
34998
|
}
|
|
35220
34999
|
}, _callee2);
|
|
35221
35000
|
})),
|
|
@@ -35239,11 +35018,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35239
35018
|
isAll: true,
|
|
35240
35019
|
needNameAndCode: true,
|
|
35241
35020
|
notChangeOnSelect: true,
|
|
35242
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35243
|
-
return
|
|
35244
|
-
while (1) switch (_context3.
|
|
35021
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
35022
|
+
return _regenerator().w(function (_context3) {
|
|
35023
|
+
while (1) switch (_context3.n) {
|
|
35245
35024
|
case 0:
|
|
35246
|
-
_context3.
|
|
35025
|
+
_context3.n = 1;
|
|
35247
35026
|
return bssula.request({
|
|
35248
35027
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35249
35028
|
method: 'get',
|
|
@@ -35260,11 +35039,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35260
35039
|
return handleData;
|
|
35261
35040
|
}
|
|
35262
35041
|
});
|
|
35263
|
-
case
|
|
35264
|
-
return _context3.
|
|
35265
|
-
case 3:
|
|
35266
|
-
case "end":
|
|
35267
|
-
return _context3.stop();
|
|
35042
|
+
case 1:
|
|
35043
|
+
return _context3.a(2, _context3.v);
|
|
35268
35044
|
}
|
|
35269
35045
|
}, _callee3);
|
|
35270
35046
|
})),
|
|
@@ -35290,11 +35066,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35290
35066
|
isAll: true,
|
|
35291
35067
|
needNameAndCode: true,
|
|
35292
35068
|
notChangeOnSelect: true,
|
|
35293
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35294
|
-
return
|
|
35295
|
-
while (1) switch (_context4.
|
|
35069
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
35070
|
+
return _regenerator().w(function (_context4) {
|
|
35071
|
+
while (1) switch (_context4.n) {
|
|
35296
35072
|
case 0:
|
|
35297
|
-
_context4.
|
|
35073
|
+
_context4.n = 1;
|
|
35298
35074
|
return bssula.request({
|
|
35299
35075
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35300
35076
|
method: 'get',
|
|
@@ -35311,11 +35087,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35311
35087
|
return handleData;
|
|
35312
35088
|
}
|
|
35313
35089
|
});
|
|
35314
|
-
case
|
|
35315
|
-
return _context4.
|
|
35316
|
-
case 3:
|
|
35317
|
-
case "end":
|
|
35318
|
-
return _context4.stop();
|
|
35090
|
+
case 1:
|
|
35091
|
+
return _context4.a(2, _context4.v);
|
|
35319
35092
|
}
|
|
35320
35093
|
}, _callee4);
|
|
35321
35094
|
})),
|
|
@@ -36002,8 +35775,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36002
35775
|
}
|
|
36003
35776
|
}));
|
|
36004
35777
|
} else {
|
|
36005
|
-
var
|
|
36006
|
-
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((
|
|
35778
|
+
var _values0;
|
|
35779
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
|
|
36007
35780
|
return {
|
|
36008
35781
|
key: s,
|
|
36009
35782
|
label: valueNames[vIndex],
|
|
@@ -36281,8 +36054,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36281
36054
|
}
|
|
36282
36055
|
}));
|
|
36283
36056
|
} else {
|
|
36284
|
-
var
|
|
36285
|
-
var
|
|
36057
|
+
var _values1;
|
|
36058
|
+
var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
|
|
36286
36059
|
return {
|
|
36287
36060
|
key: s,
|
|
36288
36061
|
label: valueNames[vIndex],
|
|
@@ -36304,7 +36077,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36304
36077
|
} : {}),
|
|
36305
36078
|
disabled: disabled,
|
|
36306
36079
|
labelInValue: true,
|
|
36307
|
-
value:
|
|
36080
|
+
value: _currentValue0,
|
|
36308
36081
|
requestConfig: {
|
|
36309
36082
|
filterInit: 'qp-code-in'
|
|
36310
36083
|
},
|
|
@@ -36397,8 +36170,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36397
36170
|
}
|
|
36398
36171
|
}));
|
|
36399
36172
|
} else {
|
|
36400
|
-
var
|
|
36401
|
-
var
|
|
36173
|
+
var _values10;
|
|
36174
|
+
var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
36402
36175
|
return {
|
|
36403
36176
|
key: s,
|
|
36404
36177
|
label: valueNames[vIndex],
|
|
@@ -36420,7 +36193,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36420
36193
|
} : {}),
|
|
36421
36194
|
disabled: disabled,
|
|
36422
36195
|
labelInValue: true,
|
|
36423
|
-
value:
|
|
36196
|
+
value: _currentValue1,
|
|
36424
36197
|
requestConfig: {
|
|
36425
36198
|
filterInit: 'qp-code-in'
|
|
36426
36199
|
},
|
|
@@ -36513,8 +36286,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36513
36286
|
}
|
|
36514
36287
|
}));
|
|
36515
36288
|
} else {
|
|
36516
|
-
var
|
|
36517
|
-
var
|
|
36289
|
+
var _values11;
|
|
36290
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
36518
36291
|
return {
|
|
36519
36292
|
key: s,
|
|
36520
36293
|
label: valueNames[vIndex],
|
|
@@ -36536,7 +36309,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36536
36309
|
} : {}),
|
|
36537
36310
|
disabled: disabled,
|
|
36538
36311
|
labelInValue: true,
|
|
36539
|
-
value:
|
|
36312
|
+
value: _currentValue10,
|
|
36540
36313
|
requestConfig: {
|
|
36541
36314
|
filterInit: 'qp-brandCode-in'
|
|
36542
36315
|
},
|
|
@@ -36727,8 +36500,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36727
36500
|
}
|
|
36728
36501
|
}));
|
|
36729
36502
|
} else {
|
|
36730
|
-
var
|
|
36731
|
-
var
|
|
36503
|
+
var _values12;
|
|
36504
|
+
var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
36732
36505
|
return {
|
|
36733
36506
|
key: s,
|
|
36734
36507
|
label: valueNames[vIndex]
|
|
@@ -36756,7 +36529,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36756
36529
|
isSearchForm: true,
|
|
36757
36530
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36758
36531
|
disabled: disabled,
|
|
36759
|
-
value:
|
|
36532
|
+
value: _currentValue11,
|
|
36760
36533
|
onChange: function onChange(value, sourceList) {
|
|
36761
36534
|
if (dataInputBusinessType === 12) {
|
|
36762
36535
|
var _value$map3, _sourceList$filter3;
|
|
@@ -37076,9 +36849,9 @@ var App$1 = function App(_ref) {
|
|
|
37076
36849
|
UpdateState(res);
|
|
37077
36850
|
};
|
|
37078
36851
|
var _useState9 = React$1.useState(false),
|
|
37079
|
-
|
|
37080
|
-
isModalVisible =
|
|
37081
|
-
setIsModalVisible =
|
|
36852
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
36853
|
+
isModalVisible = _useState0[0],
|
|
36854
|
+
setIsModalVisible = _useState0[1];
|
|
37082
36855
|
var showModal = function showModal() {
|
|
37083
36856
|
setIsModalVisible(true);
|
|
37084
36857
|
};
|
|
@@ -37559,27 +37332,26 @@ function RenderCompItem(props) {
|
|
|
37559
37332
|
dictData = _useState2[0],
|
|
37560
37333
|
setDictData = _useState2[1];
|
|
37561
37334
|
var getDictData = /*#__PURE__*/function () {
|
|
37562
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
37335
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
37563
37336
|
var _data$map;
|
|
37564
37337
|
var data;
|
|
37565
|
-
return
|
|
37566
|
-
while (1) switch (_context.
|
|
37338
|
+
return _regenerator().w(function (_context) {
|
|
37339
|
+
while (1) switch (_context.n) {
|
|
37567
37340
|
case 0:
|
|
37568
|
-
_context.
|
|
37341
|
+
_context.n = 1;
|
|
37569
37342
|
return bssula.request({
|
|
37570
37343
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
37571
37344
|
});
|
|
37572
|
-
case
|
|
37573
|
-
data = _context.
|
|
37345
|
+
case 1:
|
|
37346
|
+
data = _context.v;
|
|
37574
37347
|
setDictData(data === null || data === void 0 ? void 0 : (_data$map = data.map) === null || _data$map === void 0 ? void 0 : _data$map.call(data, function (item) {
|
|
37575
37348
|
return {
|
|
37576
37349
|
text: item.dictItemName,
|
|
37577
37350
|
value: item.dictItemCode
|
|
37578
37351
|
};
|
|
37579
37352
|
}));
|
|
37580
|
-
case
|
|
37581
|
-
|
|
37582
|
-
return _context.stop();
|
|
37353
|
+
case 2:
|
|
37354
|
+
return _context.a(2);
|
|
37583
37355
|
}
|
|
37584
37356
|
}, _callee);
|
|
37585
37357
|
}));
|
|
@@ -37820,11 +37592,11 @@ function RenderCompItem(props) {
|
|
|
37820
37592
|
needNameAndCode: true,
|
|
37821
37593
|
notChangeOnSelect: true,
|
|
37822
37594
|
initRequestSource: function () {
|
|
37823
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
37824
|
-
return
|
|
37825
|
-
while (1) switch (_context2.
|
|
37595
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
37596
|
+
return _regenerator().w(function (_context2) {
|
|
37597
|
+
while (1) switch (_context2.n) {
|
|
37826
37598
|
case 0:
|
|
37827
|
-
_context2.
|
|
37599
|
+
_context2.n = 1;
|
|
37828
37600
|
return bssula.request({
|
|
37829
37601
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
37830
37602
|
method: 'get',
|
|
@@ -37842,11 +37614,8 @@ function RenderCompItem(props) {
|
|
|
37842
37614
|
return handleData;
|
|
37843
37615
|
}
|
|
37844
37616
|
});
|
|
37845
|
-
case
|
|
37846
|
-
return _context2.
|
|
37847
|
-
case 3:
|
|
37848
|
-
case "end":
|
|
37849
|
-
return _context2.stop();
|
|
37617
|
+
case 1:
|
|
37618
|
+
return _context2.a(2, _context2.v);
|
|
37850
37619
|
}
|
|
37851
37620
|
}, _callee2);
|
|
37852
37621
|
}));
|
|
@@ -39897,13 +39666,13 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
39897
39666
|
ruleTypeData = _useState8[0],
|
|
39898
39667
|
setRuleTypeData = _useState8[1];
|
|
39899
39668
|
var _useState9 = React$1.useState([]),
|
|
39900
|
-
|
|
39901
|
-
ruleReturnConfig =
|
|
39902
|
-
setRuleReturnConfig =
|
|
39903
|
-
var
|
|
39904
|
-
|
|
39905
|
-
templateData =
|
|
39906
|
-
setTemplateData =
|
|
39669
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
39670
|
+
ruleReturnConfig = _useState0[0],
|
|
39671
|
+
setRuleReturnConfig = _useState0[1];
|
|
39672
|
+
var _useState1 = React$1.useState({}),
|
|
39673
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
39674
|
+
templateData = _useState10[0],
|
|
39675
|
+
setTemplateData = _useState10[1];
|
|
39907
39676
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
39908
39677
|
bssula.request({
|
|
39909
39678
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -40239,25 +40008,25 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
40239
40008
|
regularDataList = _useState8[0],
|
|
40240
40009
|
setRegularDataList = _useState8[1];
|
|
40241
40010
|
var _useState9 = React$1.useState([]),
|
|
40242
|
-
|
|
40243
|
-
baseRuleDetailList =
|
|
40244
|
-
setBaseRuleDetailList =
|
|
40245
|
-
var
|
|
40011
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
40012
|
+
baseRuleDetailList = _useState0[0],
|
|
40013
|
+
setBaseRuleDetailList = _useState0[1]; // 规则实例详情集合
|
|
40014
|
+
var _useState1 = React$1.useState([]),
|
|
40015
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
40016
|
+
systemVariableList = _useState10[0],
|
|
40017
|
+
setSystemVariableList = _useState10[1];
|
|
40018
|
+
var _useState11 = React$1.useState(false),
|
|
40246
40019
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
40247
|
-
|
|
40248
|
-
|
|
40020
|
+
isGetDefRuleDataRes = _useState12[0],
|
|
40021
|
+
setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
40249
40022
|
var _useState13 = React$1.useState(false),
|
|
40250
40023
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
40251
|
-
|
|
40252
|
-
|
|
40024
|
+
isGetRuleDataRes = _useState14[0],
|
|
40025
|
+
setIsGetRuleDataRes = _useState14[1];
|
|
40253
40026
|
var _useState15 = React$1.useState(false),
|
|
40254
40027
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
40255
|
-
|
|
40256
|
-
|
|
40257
|
-
var _useState17 = React$1.useState(false),
|
|
40258
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
40259
|
-
groupOtherPriorityList = _useState18[0],
|
|
40260
|
-
setGroupOtherPriorityList = _useState18[1];
|
|
40028
|
+
groupOtherPriorityList = _useState16[0],
|
|
40029
|
+
setGroupOtherPriorityList = _useState16[1];
|
|
40261
40030
|
var baseRuleRef = React$1.useRef();
|
|
40262
40031
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
40263
40032
|
// 查询规则组下所有规则实例
|