@bit-sun/business-component 4.2.0-alpha.6.8 → 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 +1056 -1152
- package/dist/index.js +1056 -1152
- 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 +45 -12
- package/src/components/Functional/AddSelect/index.tsx +92 -0
- package/src/components/Functional/DataValidation/index.tsx +22 -3
- package/src/components/Functional/SearchSelect/index.tsx +5 -2
- package/src/components/Solution/RuleComponent/index.js +1 -0
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',
|
|
@@ -5495,6 +5315,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5495
5315
|
highestPopContainer = _props$highestPopCont === void 0 ? undefined : _props$highestPopCont,
|
|
5496
5316
|
fieldComponent = props.fieldComponent,
|
|
5497
5317
|
onSaveCallback = props.onSaveCallback,
|
|
5318
|
+
_props$returnFormat = props.returnFormat,
|
|
5319
|
+
returnFormat = _props$returnFormat === void 0 ? [] : _props$returnFormat,
|
|
5498
5320
|
selectBusinessType = props.selectBusinessType;
|
|
5499
5321
|
var _ref = rCTemp || {},
|
|
5500
5322
|
url = _ref.url,
|
|
@@ -5553,14 +5375,16 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5553
5375
|
var currentPage = 1;
|
|
5554
5376
|
var selectParamsKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filter) || 'qp-codeAndName-like';
|
|
5555
5377
|
var selectParamsInitKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filterInit) || selectParamsKey;
|
|
5556
|
-
var currentSelectProps = _objectSpread2(_objectSpread2({
|
|
5378
|
+
var currentSelectProps = _objectSpread2(_objectSpread2({
|
|
5379
|
+
// 回显字段可自定义
|
|
5380
|
+
optionLabelProp: "label"
|
|
5381
|
+
}, selectProps), {}, {
|
|
5557
5382
|
// 以下属性不可更改----设计配置项
|
|
5558
5383
|
showArrow: true,
|
|
5559
5384
|
showSearch: true,
|
|
5560
5385
|
filterOption: false,
|
|
5561
5386
|
allowClear: true,
|
|
5562
5387
|
listHeight: 160,
|
|
5563
|
-
optionLabelProp: "label",
|
|
5564
5388
|
autoClearSearchValue: false,
|
|
5565
5389
|
placement: 'bottomRight'
|
|
5566
5390
|
});
|
|
@@ -5610,29 +5434,29 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5610
5434
|
scrollPage = _useState8[0],
|
|
5611
5435
|
setScrollPage = _useState8[1];
|
|
5612
5436
|
var _useState9 = React$1.useState(0),
|
|
5613
|
-
|
|
5614
|
-
itemsTotal =
|
|
5615
|
-
setItemsTotal =
|
|
5616
|
-
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(''),
|
|
5617
5445
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
var _useState13 = React$1.useState(
|
|
5446
|
+
searchValue = _useState12[0],
|
|
5447
|
+
setSearchValue = _useState12[1];
|
|
5448
|
+
var _useState13 = React$1.useState(false),
|
|
5621
5449
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
var _useState15 = React$1.useState(
|
|
5450
|
+
isModalVisible = _useState14[0],
|
|
5451
|
+
setIsModalVisible = _useState14[1];
|
|
5452
|
+
var _useState15 = React$1.useState(initVal),
|
|
5625
5453
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
var _useState17 = React$1.useState(
|
|
5454
|
+
popvalue = _useState16[0],
|
|
5455
|
+
setPopValue = _useState16[1];
|
|
5456
|
+
var _useState17 = React$1.useState(resultSourceKey),
|
|
5629
5457
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
var _useState19 = React$1.useState(resultSourceKey),
|
|
5633
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5634
|
-
uniqueValue = _useState20[0],
|
|
5635
|
-
setUniqueValue = _useState20[1];
|
|
5458
|
+
uniqueValue = _useState18[0],
|
|
5459
|
+
setUniqueValue = _useState18[1];
|
|
5636
5460
|
var _useDebounceFn = ahooks.useDebounceFn(function (v) {
|
|
5637
5461
|
// 优化搜索参数 支持传多个
|
|
5638
5462
|
var searchParams = {};
|
|
@@ -5661,58 +5485,58 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5661
5485
|
var _Form$useForm = antd.Form.useForm(),
|
|
5662
5486
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5663
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];
|
|
5664
5492
|
var _useState21 = React$1.useState(true),
|
|
5665
5493
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
var _useState23 = React$1.useState(
|
|
5494
|
+
caretLeftFlag = _useState22[0],
|
|
5495
|
+
setCaretLeftFlag = _useState22[1];
|
|
5496
|
+
var _useState23 = React$1.useState([]),
|
|
5669
5497
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
var _useState25 = React$1.useState(
|
|
5498
|
+
tableData = _useState24[0],
|
|
5499
|
+
setTableData = _useState24[1];
|
|
5500
|
+
var _useState25 = React$1.useState(tableInitPagination),
|
|
5673
5501
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
var _useState27 = React$1.useState(
|
|
5502
|
+
tablePagination = _useState26[0],
|
|
5503
|
+
setTablePagination = _useState26[1];
|
|
5504
|
+
var _useState27 = React$1.useState([]),
|
|
5677
5505
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5678
|
-
|
|
5679
|
-
|
|
5506
|
+
selectedRowKeys = _useState28[0],
|
|
5507
|
+
setSelectedRowKeys = _useState28[1];
|
|
5680
5508
|
var _useState29 = React$1.useState([]),
|
|
5681
5509
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
var _useState31 = React$1.useState(
|
|
5510
|
+
selectedRows = _useState30[0],
|
|
5511
|
+
setSelectedRows = _useState30[1];
|
|
5512
|
+
var _useState31 = React$1.useState(false),
|
|
5685
5513
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5686
|
-
|
|
5687
|
-
|
|
5514
|
+
checkedAll = _useState32[0],
|
|
5515
|
+
setCheckedAll = _useState32[1];
|
|
5688
5516
|
var _useState33 = React$1.useState(false),
|
|
5689
5517
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
var _useState35 = React$1.useState(
|
|
5518
|
+
indeterminate = _useState34[0],
|
|
5519
|
+
setIndeterminate = _useState34[1];
|
|
5520
|
+
var _useState35 = React$1.useState({}),
|
|
5693
5521
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
var _useState37 = React$1.useState(
|
|
5522
|
+
tableFormParams = _useState36[0],
|
|
5523
|
+
setTableFormParams = _useState36[1];
|
|
5524
|
+
var _useState37 = React$1.useState(false),
|
|
5697
5525
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
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)),
|
|
5701
5529
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
var _useState41 = React$1.useState(
|
|
5530
|
+
tableShowColumns = _useState40[0],
|
|
5531
|
+
setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5532
|
+
var _useState41 = React$1.useState(false),
|
|
5705
5533
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5706
|
-
|
|
5707
|
-
|
|
5534
|
+
confirmLoading = _useState42[0],
|
|
5535
|
+
setConfirmLoading = _useState42[1];
|
|
5708
5536
|
var _useState43 = React$1.useState(false),
|
|
5709
5537
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
var _useState45 = React$1.useState(false),
|
|
5713
|
-
_useState46 = _slicedToArray(_useState45, 2),
|
|
5714
|
-
modalSearched = _useState46[0],
|
|
5715
|
-
setModalSearched = _useState46[1];
|
|
5538
|
+
modalSearched = _useState44[0],
|
|
5539
|
+
setModalSearched = _useState44[1];
|
|
5716
5540
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5717
5541
|
setItems(list);
|
|
5718
5542
|
setItemsTotal(total);
|
|
@@ -6029,12 +5853,19 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6029
5853
|
};
|
|
6030
5854
|
var formaData = function formaData(value, source) {
|
|
6031
5855
|
if (labelInValue) {
|
|
5856
|
+
var getFromat = function getFromat(format, val) {
|
|
5857
|
+
return format.map(function (_ref8) {
|
|
5858
|
+
var key = _ref8.key,
|
|
5859
|
+
value = _ref8.value;
|
|
5860
|
+
return _defineProperty({}, key, val[value]);
|
|
5861
|
+
});
|
|
5862
|
+
};
|
|
6032
5863
|
var formatResult = value.map(function (i) {
|
|
6033
|
-
return {
|
|
5864
|
+
return Object.assign.apply(Object, [{
|
|
6034
5865
|
key: i[mappingValueField] || i.key,
|
|
6035
5866
|
label: i[mappingTextField] || i.label,
|
|
6036
5867
|
value: i[mappingValueField] || i.value
|
|
6037
|
-
};
|
|
5868
|
+
}].concat(_toConsumableArray(getFromat(returnFormat, i))));
|
|
6038
5869
|
});
|
|
6039
5870
|
onChange(selectMode ? formatResult : formatResult[0], value, source);
|
|
6040
5871
|
} else {
|
|
@@ -6182,7 +6013,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6182
6013
|
})) || [];
|
|
6183
6014
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
6184
6015
|
return searchList.map(function (i, index) {
|
|
6185
|
-
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;
|
|
6186
6017
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6187
6018
|
span: ColSpan,
|
|
6188
6019
|
key: i
|
|
@@ -6280,7 +6111,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6280
6111
|
disabled: setDisabled(i.name)
|
|
6281
6112
|
}))));
|
|
6282
6113
|
}
|
|
6283
|
-
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') {
|
|
6284
6115
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6285
6116
|
span: ColSpan,
|
|
6286
6117
|
key: i.name
|
|
@@ -6294,7 +6125,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6294
6125
|
}
|
|
6295
6126
|
})));
|
|
6296
6127
|
}
|
|
6297
|
-
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') {
|
|
6298
6129
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6299
6130
|
span: ColSpan,
|
|
6300
6131
|
key: i.name
|
|
@@ -6304,8 +6135,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6304
6135
|
key: i.name
|
|
6305
6136
|
}, /*#__PURE__*/React__default['default'].createElement(PropertySelector, null)));
|
|
6306
6137
|
}
|
|
6307
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6308
|
-
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;
|
|
6309
6140
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6310
6141
|
span: ColSpan,
|
|
6311
6142
|
key: i.name
|
|
@@ -6318,9 +6149,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6318
6149
|
width: '100%'
|
|
6319
6150
|
},
|
|
6320
6151
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6321
|
-
}, 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))));
|
|
6322
6153
|
}
|
|
6323
|
-
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') {
|
|
6324
6155
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6325
6156
|
span: ColSpan,
|
|
6326
6157
|
key: i.name
|
|
@@ -6349,7 +6180,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6349
6180
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6350
6181
|
allowClear: true,
|
|
6351
6182
|
maxLength: 100
|
|
6352
|
-
}, 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), {}, {
|
|
6353
6184
|
disabled: setDisabled(i.name)
|
|
6354
6185
|
}))));
|
|
6355
6186
|
});
|
|
@@ -7669,135 +7500,132 @@ var AddSelect = function AddSelect(props) {
|
|
|
7669
7500
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7670
7501
|
form = _Form$useForm2[0];
|
|
7671
7502
|
var _useState9 = React$1.useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7672
|
-
|
|
7673
|
-
tableSearchForm =
|
|
7674
|
-
setTableSearchForm =
|
|
7675
|
-
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([]),
|
|
7676
7511
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
var _useState13 = React$1.useState(
|
|
7680
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
7681
|
-
tableData = _useState14[0],
|
|
7682
|
-
setTableData = _useState14[1];
|
|
7683
|
-
var _useState15 = React$1.useState(_objectSpread2({
|
|
7512
|
+
tableData = _useState12[0],
|
|
7513
|
+
setTableData = _useState12[1];
|
|
7514
|
+
var _useState13 = React$1.useState(_objectSpread2({
|
|
7684
7515
|
total: 0,
|
|
7685
7516
|
size: "small",
|
|
7686
7517
|
current: 1,
|
|
7687
7518
|
pageSize: tableInitPageSize
|
|
7688
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([]),
|
|
7689
7524
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
var _useState17 = React$1.useState(
|
|
7525
|
+
selectedRowKeys = _useState16[0],
|
|
7526
|
+
setSelectedRowKeys = _useState16[1];
|
|
7527
|
+
var _useState17 = React$1.useState({}),
|
|
7693
7528
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
var _useState19 = React$1.useState(
|
|
7529
|
+
tableFormParams = _useState18[0],
|
|
7530
|
+
setTableFormParams = _useState18[1];
|
|
7531
|
+
var _useState19 = React$1.useState(false),
|
|
7697
7532
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7698
|
-
|
|
7699
|
-
|
|
7533
|
+
confirmLoading = _useState20[0],
|
|
7534
|
+
setConfirmLoading = _useState20[1];
|
|
7700
7535
|
var _useState21 = React$1.useState(false),
|
|
7701
7536
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
var _useState23 = React$1.useState(
|
|
7537
|
+
confirmContinueLoading = _useState22[0],
|
|
7538
|
+
setConfirmContinueLoading = _useState22[1];
|
|
7539
|
+
var _useState23 = React$1.useState([]),
|
|
7705
7540
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7706
|
-
|
|
7707
|
-
|
|
7541
|
+
selectColumns = _useState24[0],
|
|
7542
|
+
setSelectColumns = _useState24[1];
|
|
7708
7543
|
var _useState25 = React$1.useState([]),
|
|
7709
7544
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7710
|
-
|
|
7711
|
-
|
|
7545
|
+
showColumns = _useState26[0],
|
|
7546
|
+
setShowColumns = _useState26[1];
|
|
7712
7547
|
var _useState27 = React$1.useState([]),
|
|
7713
7548
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7714
|
-
|
|
7715
|
-
|
|
7549
|
+
tableColumns = _useState28[0],
|
|
7550
|
+
setTableColumns = _useState28[1];
|
|
7716
7551
|
var _useState29 = React$1.useState([]),
|
|
7717
7552
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
var _useState31 = React$1.useState([]),
|
|
7721
|
-
_useState32 = _slicedToArray(_useState31, 2),
|
|
7722
|
-
showToChooseColumns = _useState32[0],
|
|
7723
|
-
setShowToChooseColumns = _useState32[1];
|
|
7553
|
+
showToChooseColumns = _useState30[0],
|
|
7554
|
+
setShowToChooseColumns = _useState30[1];
|
|
7724
7555
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7725
7556
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7726
7557
|
// FIXME: 特殊业务逻辑
|
|
7727
7558
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7728
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7729
|
-
var result;
|
|
7730
|
-
return
|
|
7731
|
-
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) {
|
|
7732
7563
|
case 0:
|
|
7733
7564
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7734
7565
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7735
7566
|
}))) {
|
|
7736
|
-
_context.
|
|
7567
|
+
_context.n = 1;
|
|
7737
7568
|
break;
|
|
7738
7569
|
}
|
|
7739
7570
|
antd.message.warning('相同skc配码不可设置相同哦');
|
|
7740
|
-
return _context.
|
|
7741
|
-
case
|
|
7571
|
+
return _context.a(2, false);
|
|
7572
|
+
case 1:
|
|
7742
7573
|
if (!(bType == 'spu')) {
|
|
7743
|
-
_context.
|
|
7574
|
+
_context.n = 9;
|
|
7744
7575
|
break;
|
|
7745
7576
|
}
|
|
7746
7577
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7747
7578
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7748
7579
|
}))) {
|
|
7749
|
-
_context.
|
|
7580
|
+
_context.n = 2;
|
|
7750
7581
|
break;
|
|
7751
7582
|
}
|
|
7752
7583
|
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7753
|
-
return _context.
|
|
7754
|
-
case
|
|
7584
|
+
return _context.a(2, false);
|
|
7585
|
+
case 2:
|
|
7755
7586
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7756
|
-
_context.
|
|
7587
|
+
_context.n = 3;
|
|
7757
7588
|
break;
|
|
7758
7589
|
}
|
|
7759
7590
|
antd.message.warning('请先选择颜色!');
|
|
7760
|
-
return _context.
|
|
7761
|
-
case
|
|
7591
|
+
return _context.a(2, false);
|
|
7592
|
+
case 3:
|
|
7762
7593
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7763
7594
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7764
7595
|
}))) {
|
|
7765
|
-
_context.
|
|
7596
|
+
_context.n = 4;
|
|
7766
7597
|
break;
|
|
7767
7598
|
}
|
|
7768
7599
|
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7769
|
-
return _context.
|
|
7770
|
-
case
|
|
7600
|
+
return _context.a(2, false);
|
|
7601
|
+
case 4:
|
|
7771
7602
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7772
|
-
_context.
|
|
7603
|
+
_context.n = 9;
|
|
7773
7604
|
break;
|
|
7774
7605
|
}
|
|
7775
7606
|
result = true;
|
|
7776
|
-
_context.
|
|
7777
|
-
_context.
|
|
7607
|
+
_context.p = 5;
|
|
7608
|
+
_context.n = 6;
|
|
7778
7609
|
return checkSpuMatchCode({
|
|
7779
7610
|
skcCode: recordItem[recordKey],
|
|
7780
7611
|
matchingCode: changeValue,
|
|
7781
7612
|
ext1: recordItem.colorName
|
|
7782
7613
|
});
|
|
7783
|
-
case
|
|
7784
|
-
result = _context.
|
|
7614
|
+
case 6:
|
|
7615
|
+
result = _context.v;
|
|
7785
7616
|
result = true;
|
|
7786
|
-
_context.
|
|
7617
|
+
_context.n = 8;
|
|
7787
7618
|
break;
|
|
7788
|
-
case
|
|
7789
|
-
_context.
|
|
7790
|
-
|
|
7791
|
-
result = typeof
|
|
7792
|
-
case
|
|
7793
|
-
return _context.
|
|
7794
|
-
case
|
|
7795
|
-
return _context.
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
return _context.stop();
|
|
7799
|
-
}
|
|
7800
|
-
}, _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]]);
|
|
7801
7629
|
}));
|
|
7802
7630
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7803
7631
|
return _ref2.apply(this, arguments);
|
|
@@ -7875,6 +7703,115 @@ var AddSelect = function AddSelect(props) {
|
|
|
7875
7703
|
acc[key] = typeof value === 'function' ? value === null || value === void 0 ? void 0 : value(record) : value;
|
|
7876
7704
|
return acc;
|
|
7877
7705
|
}, {});
|
|
7706
|
+
// 可输入非数字字符
|
|
7707
|
+
if (item.canInputString) {
|
|
7708
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2(_objectSpread2({
|
|
7709
|
+
min: 0,
|
|
7710
|
+
precision: 0,
|
|
7711
|
+
controls: false
|
|
7712
|
+
}, inputProps), {}, {
|
|
7713
|
+
value: text || '',
|
|
7714
|
+
keyboard: false,
|
|
7715
|
+
onPressEnter: function onPressEnter(e) {
|
|
7716
|
+
e.target.blur();
|
|
7717
|
+
},
|
|
7718
|
+
onBlur: function () {
|
|
7719
|
+
var _onBlur = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e) {
|
|
7720
|
+
var value;
|
|
7721
|
+
return _regenerator().w(function (_context2) {
|
|
7722
|
+
while (1) switch (_context2.n) {
|
|
7723
|
+
case 0:
|
|
7724
|
+
value = e.target.value;
|
|
7725
|
+
record[item.dataIndex] = value;
|
|
7726
|
+
editRecord(record);
|
|
7727
|
+
case 1:
|
|
7728
|
+
return _context2.a(2);
|
|
7729
|
+
}
|
|
7730
|
+
}, _callee2);
|
|
7731
|
+
}));
|
|
7732
|
+
function onBlur(_x7) {
|
|
7733
|
+
return _onBlur.apply(this, arguments);
|
|
7734
|
+
}
|
|
7735
|
+
return onBlur;
|
|
7736
|
+
}(),
|
|
7737
|
+
onKeyDown: function onKeyDown(e) {
|
|
7738
|
+
if (e.keyCode === 13 && e.ctrlKey) {
|
|
7739
|
+
var _document$getElementB;
|
|
7740
|
+
handleOk(true);
|
|
7741
|
+
(_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
|
|
7742
|
+
}
|
|
7743
|
+
if (e.keyCode === 8 && e.ctrlKey) {
|
|
7744
|
+
var _e$nativeEvent$path$;
|
|
7745
|
+
antd.message.success('删除当前行');
|
|
7746
|
+
e.stopPropagation();
|
|
7747
|
+
e.preventDefault();
|
|
7748
|
+
var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path$.getElementsByTagName('input')[currentIndex];
|
|
7749
|
+
if (dom) {
|
|
7750
|
+
dom.select();
|
|
7751
|
+
dom.focus();
|
|
7752
|
+
dom.scrollIntoView(false);
|
|
7753
|
+
}
|
|
7754
|
+
dom = null;
|
|
7755
|
+
deleteRecord(record);
|
|
7756
|
+
}
|
|
7757
|
+
if (e.keyCode === 37 && e.shiftKey) {
|
|
7758
|
+
var _e$nativeEvent$path$2;
|
|
7759
|
+
// 左滑动
|
|
7760
|
+
e.stopPropagation();
|
|
7761
|
+
e.preventDefault();
|
|
7762
|
+
var _dom = (_e$nativeEvent$path$2 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$2 === void 0 ? void 0 : _e$nativeEvent$path$2.getElementsByTagName('input')[currentIndex - 1];
|
|
7763
|
+
if (_dom) {
|
|
7764
|
+
_dom.select();
|
|
7765
|
+
_dom.focus();
|
|
7766
|
+
_dom.scrollIntoView(false);
|
|
7767
|
+
}
|
|
7768
|
+
_dom = null;
|
|
7769
|
+
}
|
|
7770
|
+
if (e.keyCode === 39 && e.shiftKey) {
|
|
7771
|
+
var _e$nativeEvent$path$3;
|
|
7772
|
+
// 右滑
|
|
7773
|
+
e.stopPropagation();
|
|
7774
|
+
e.preventDefault();
|
|
7775
|
+
var _dom2 = (_e$nativeEvent$path$3 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$3 === void 0 ? void 0 : _e$nativeEvent$path$3.getElementsByTagName('input')[currentIndex + 1];
|
|
7776
|
+
if (_dom2) {
|
|
7777
|
+
_dom2.select();
|
|
7778
|
+
_dom2.focus();
|
|
7779
|
+
_dom2.scrollIntoView(false);
|
|
7780
|
+
}
|
|
7781
|
+
_dom2 = null;
|
|
7782
|
+
}
|
|
7783
|
+
if (e.keyCode === 40) {
|
|
7784
|
+
var _e$nativeEvent$path$4;
|
|
7785
|
+
e.stopPropagation();
|
|
7786
|
+
e.preventDefault();
|
|
7787
|
+
var _dom3 = (_e$nativeEvent$path$4 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$4 === void 0 ? void 0 : _e$nativeEvent$path$4.getElementsByTagName('input')[currentIndex];
|
|
7788
|
+
if (_dom3) {
|
|
7789
|
+
_dom3.select();
|
|
7790
|
+
_dom3.focus();
|
|
7791
|
+
_dom3.scrollIntoView(false);
|
|
7792
|
+
}
|
|
7793
|
+
_dom3 = null;
|
|
7794
|
+
} else if (e.keyCode === 38) {
|
|
7795
|
+
var _e$nativeEvent$path$5;
|
|
7796
|
+
e.stopPropagation();
|
|
7797
|
+
e.preventDefault();
|
|
7798
|
+
var dom1 = (_e$nativeEvent$path$5 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$5 === void 0 ? void 0 : _e$nativeEvent$path$5.getElementsByTagName('input')[currentIndex];
|
|
7799
|
+
if (dom1) {
|
|
7800
|
+
// dom1.value=""
|
|
7801
|
+
// dom1.setSelectionRange(100, 0);
|
|
7802
|
+
dom1.select();
|
|
7803
|
+
dom1.focus();
|
|
7804
|
+
dom1.scrollIntoViewIfNeeded(false);
|
|
7805
|
+
// dom1.value=record['count']
|
|
7806
|
+
}
|
|
7807
|
+
dom1 = null;
|
|
7808
|
+
} else if (e.keyCode === 9 && index === selectedRowKeys.length - 1 && currentIndex === inputLength - 1) {
|
|
7809
|
+
e.stopPropagation();
|
|
7810
|
+
e.preventDefault();
|
|
7811
|
+
}
|
|
7812
|
+
}
|
|
7813
|
+
}));
|
|
7814
|
+
}
|
|
7878
7815
|
return /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2(_objectSpread2(_objectSpread2({}, inputProps), {}, {
|
|
7879
7816
|
value: text || '',
|
|
7880
7817
|
min: 0,
|
|
@@ -7892,16 +7829,16 @@ var AddSelect = function AddSelect(props) {
|
|
|
7892
7829
|
// }}
|
|
7893
7830
|
onKeyDown: function onKeyDown(e) {
|
|
7894
7831
|
if (e.keyCode === 13 && e.ctrlKey) {
|
|
7895
|
-
var _document$
|
|
7832
|
+
var _document$getElementB2;
|
|
7896
7833
|
handleOk(true);
|
|
7897
|
-
(_document$
|
|
7834
|
+
(_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
|
|
7898
7835
|
}
|
|
7899
7836
|
if (e.keyCode === 8 && e.ctrlKey) {
|
|
7900
|
-
var _e$nativeEvent$path
|
|
7837
|
+
var _e$nativeEvent$path$6;
|
|
7901
7838
|
antd.message.success('删除当前行');
|
|
7902
7839
|
e.stopPropagation();
|
|
7903
7840
|
e.preventDefault();
|
|
7904
|
-
var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path
|
|
7841
|
+
var dom = (_e$nativeEvent$path$6 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$6 === void 0 ? void 0 : _e$nativeEvent$path$6.getElementsByTagName('input')[currentIndex];
|
|
7905
7842
|
if (dom) {
|
|
7906
7843
|
dom.select();
|
|
7907
7844
|
dom.focus();
|
|
@@ -7911,47 +7848,47 @@ var AddSelect = function AddSelect(props) {
|
|
|
7911
7848
|
deleteRecord(record);
|
|
7912
7849
|
}
|
|
7913
7850
|
if (e.keyCode === 37 && e.shiftKey) {
|
|
7914
|
-
var _e$nativeEvent$path$
|
|
7851
|
+
var _e$nativeEvent$path$7;
|
|
7915
7852
|
// 左滑动
|
|
7916
7853
|
e.stopPropagation();
|
|
7917
7854
|
e.preventDefault();
|
|
7918
|
-
var
|
|
7919
|
-
if (
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7855
|
+
var _dom4 = (_e$nativeEvent$path$7 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$7 === void 0 ? void 0 : _e$nativeEvent$path$7.getElementsByTagName('input')[currentIndex - 1];
|
|
7856
|
+
if (_dom4) {
|
|
7857
|
+
_dom4.select();
|
|
7858
|
+
_dom4.focus();
|
|
7859
|
+
_dom4.scrollIntoView(false);
|
|
7923
7860
|
}
|
|
7924
|
-
|
|
7861
|
+
_dom4 = null;
|
|
7925
7862
|
}
|
|
7926
7863
|
if (e.keyCode === 39 && e.shiftKey) {
|
|
7927
|
-
var _e$nativeEvent$path$
|
|
7864
|
+
var _e$nativeEvent$path$8;
|
|
7928
7865
|
// 右滑
|
|
7929
7866
|
e.stopPropagation();
|
|
7930
7867
|
e.preventDefault();
|
|
7931
|
-
var
|
|
7932
|
-
if (
|
|
7933
|
-
|
|
7934
|
-
|
|
7935
|
-
|
|
7868
|
+
var _dom5 = (_e$nativeEvent$path$8 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$8 === void 0 ? void 0 : _e$nativeEvent$path$8.getElementsByTagName('input')[currentIndex + 1];
|
|
7869
|
+
if (_dom5) {
|
|
7870
|
+
_dom5.select();
|
|
7871
|
+
_dom5.focus();
|
|
7872
|
+
_dom5.scrollIntoView(false);
|
|
7936
7873
|
}
|
|
7937
|
-
|
|
7874
|
+
_dom5 = null;
|
|
7938
7875
|
}
|
|
7939
7876
|
if (e.keyCode === 40) {
|
|
7940
|
-
var _e$nativeEvent$path$
|
|
7877
|
+
var _e$nativeEvent$path$9;
|
|
7941
7878
|
e.stopPropagation();
|
|
7942
7879
|
e.preventDefault();
|
|
7943
|
-
var
|
|
7944
|
-
if (
|
|
7945
|
-
|
|
7946
|
-
|
|
7947
|
-
|
|
7880
|
+
var _dom6 = (_e$nativeEvent$path$9 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$9 === void 0 ? void 0 : _e$nativeEvent$path$9.getElementsByTagName('input')[currentIndex];
|
|
7881
|
+
if (_dom6) {
|
|
7882
|
+
_dom6.select();
|
|
7883
|
+
_dom6.focus();
|
|
7884
|
+
_dom6.scrollIntoView(false);
|
|
7948
7885
|
}
|
|
7949
|
-
|
|
7886
|
+
_dom6 = null;
|
|
7950
7887
|
} else if (e.keyCode === 38) {
|
|
7951
|
-
var _e$nativeEvent$path$
|
|
7888
|
+
var _e$nativeEvent$path$0;
|
|
7952
7889
|
e.stopPropagation();
|
|
7953
7890
|
e.preventDefault();
|
|
7954
|
-
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];
|
|
7955
7892
|
if (dom1) {
|
|
7956
7893
|
// dom1.value=""
|
|
7957
7894
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -7985,19 +7922,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
7985
7922
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7986
7923
|
value: text || null,
|
|
7987
7924
|
onChange: function () {
|
|
7988
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
7989
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7990
|
-
return
|
|
7991
|
-
while (1) switch (
|
|
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) {
|
|
7992
7929
|
case 0:
|
|
7993
7930
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
7994
7931
|
return d[selectKey] == value;
|
|
7995
7932
|
})) || {};
|
|
7996
7933
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
7997
|
-
|
|
7934
|
+
_context3.n = 2;
|
|
7998
7935
|
break;
|
|
7999
7936
|
}
|
|
8000
|
-
|
|
7937
|
+
_context3.n = 1;
|
|
8001
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, {
|
|
8002
7939
|
record: record,
|
|
8003
7940
|
index: index,
|
|
@@ -8007,10 +7944,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8007
7944
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
8008
7945
|
editRecord: editRecord
|
|
8009
7946
|
});
|
|
8010
|
-
case
|
|
8011
|
-
|
|
7947
|
+
case 1:
|
|
7948
|
+
_context3.n = 10;
|
|
8012
7949
|
break;
|
|
8013
|
-
case
|
|
7950
|
+
case 2:
|
|
8014
7951
|
// 更新当前行数据函数
|
|
8015
7952
|
changeValue = function changeValue(v, dSSItem) {
|
|
8016
7953
|
var _item$dataSourceSelec;
|
|
@@ -8023,12 +7960,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
8023
7960
|
}
|
|
8024
7961
|
}; // 处理校验,默认不校验
|
|
8025
7962
|
isCheckPass = true;
|
|
8026
|
-
|
|
7963
|
+
_context3.p = 3;
|
|
8027
7964
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
8028
|
-
|
|
7965
|
+
_context3.n = 5;
|
|
8029
7966
|
break;
|
|
8030
7967
|
}
|
|
8031
|
-
|
|
7968
|
+
_context3.n = 4;
|
|
8032
7969
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
8033
7970
|
record: record,
|
|
8034
7971
|
index: index,
|
|
@@ -8037,23 +7974,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
8037
7974
|
changeValue: value,
|
|
8038
7975
|
dataSourceSelectItem: dataSourceSelectItem
|
|
8039
7976
|
});
|
|
8040
|
-
case
|
|
8041
|
-
isCheckPass =
|
|
8042
|
-
|
|
7977
|
+
case 4:
|
|
7978
|
+
isCheckPass = _context3.v;
|
|
7979
|
+
_context3.n = 7;
|
|
8043
7980
|
break;
|
|
8044
|
-
case
|
|
8045
|
-
|
|
7981
|
+
case 5:
|
|
7982
|
+
_context3.n = 6;
|
|
8046
7983
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
8047
|
-
case
|
|
8048
|
-
isConformToTheRules =
|
|
7984
|
+
case 6:
|
|
7985
|
+
isConformToTheRules = _context3.v;
|
|
8049
7986
|
isCheckPass = !isConformToTheRules;
|
|
8050
|
-
case
|
|
8051
|
-
|
|
7987
|
+
case 7:
|
|
7988
|
+
_context3.n = 9;
|
|
8052
7989
|
break;
|
|
8053
|
-
case
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
case
|
|
7990
|
+
case 8:
|
|
7991
|
+
_context3.p = 8;
|
|
7992
|
+
_t2 = _context3.v;
|
|
7993
|
+
case 9:
|
|
8057
7994
|
if (isCheckPass) {
|
|
8058
7995
|
changeValue(value, dataSourceSelectItem);
|
|
8059
7996
|
} else {
|
|
@@ -8061,13 +7998,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
8061
7998
|
}
|
|
8062
7999
|
// 更新已选表格函数
|
|
8063
8000
|
editRecord(record);
|
|
8064
|
-
case
|
|
8065
|
-
|
|
8066
|
-
return _context2.stop();
|
|
8001
|
+
case 10:
|
|
8002
|
+
return _context3.a(2);
|
|
8067
8003
|
}
|
|
8068
|
-
},
|
|
8004
|
+
}, _callee3, null, [[3, 8]]);
|
|
8069
8005
|
}));
|
|
8070
|
-
function onChange(
|
|
8006
|
+
function onChange(_x8) {
|
|
8071
8007
|
return _onChange.apply(this, arguments);
|
|
8072
8008
|
}
|
|
8073
8009
|
return onChange;
|
|
@@ -8327,8 +8263,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
8327
8263
|
}
|
|
8328
8264
|
}
|
|
8329
8265
|
setTimeout(function () {
|
|
8330
|
-
var _document$
|
|
8331
|
-
(_document$
|
|
8266
|
+
var _document$getElementB3;
|
|
8267
|
+
(_document$getElementB3 = document.getElementById("first-query")) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
|
|
8332
8268
|
}, 50);
|
|
8333
8269
|
};
|
|
8334
8270
|
// 将格式化完的数据回显到 表格中
|
|
@@ -8358,7 +8294,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8358
8294
|
handleLoading(isContinue, true);
|
|
8359
8295
|
onSaveCallback(popvalue).then(function (res) {
|
|
8360
8296
|
{
|
|
8361
|
-
var _Object$keys2, _document$
|
|
8297
|
+
var _Object$keys2, _document$getElementB4;
|
|
8362
8298
|
// 成功信息可以在调用处处理 即resolve({messageSuccessBackInfo: { needThrowSuccess: false } })、resolve({messageSuccessBackInfo: { needThrowSuccess: true, successMessage: '已保存' } })
|
|
8363
8299
|
var initSuccessMessage = '保存成功';
|
|
8364
8300
|
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
@@ -8368,7 +8304,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8368
8304
|
antd.message.success(initSuccessMessage);
|
|
8369
8305
|
}
|
|
8370
8306
|
deleteSelectRows();
|
|
8371
|
-
(_document$
|
|
8307
|
+
(_document$getElementB4 = document.getElementById('first-query')) === null || _document$getElementB4 === void 0 ? void 0 : _document$getElementB4.focus();
|
|
8372
8308
|
!isContinue && handleCancel();
|
|
8373
8309
|
}
|
|
8374
8310
|
handleLoading(isContinue, false);
|
|
@@ -9456,29 +9392,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9456
9392
|
dataIndex: 'propertyNameAndValue'
|
|
9457
9393
|
}];
|
|
9458
9394
|
var _useState9 = React$1.useState(false),
|
|
9459
|
-
|
|
9460
|
-
isModalVisible =
|
|
9461
|
-
setIsModalVisible =
|
|
9462
|
-
var
|
|
9395
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
9396
|
+
isModalVisible = _useState0[0],
|
|
9397
|
+
setIsModalVisible = _useState0[1];
|
|
9398
|
+
var _useState1 = React$1.useState([{
|
|
9463
9399
|
hovered: false
|
|
9464
9400
|
}]),
|
|
9465
|
-
|
|
9466
|
-
data =
|
|
9467
|
-
setData =
|
|
9401
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
9402
|
+
data = _useState10[0],
|
|
9403
|
+
setData = _useState10[1];
|
|
9468
9404
|
var tableRef = React$1.useRef(null);
|
|
9469
9405
|
var codeSelected = tableCode;
|
|
9470
|
-
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([]),
|
|
9471
9411
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9472
|
-
|
|
9473
|
-
|
|
9412
|
+
selectColumns = _useState14[0],
|
|
9413
|
+
setSelectColumns = _useState14[1];
|
|
9474
9414
|
var _useState15 = React$1.useState([]),
|
|
9475
9415
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9476
|
-
|
|
9477
|
-
|
|
9478
|
-
var _useState17 = React$1.useState([]),
|
|
9479
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
9480
|
-
showColumns = _useState18[0],
|
|
9481
|
-
setShowColumns = _useState18[1];
|
|
9416
|
+
showColumns = _useState16[0],
|
|
9417
|
+
setShowColumns = _useState16[1];
|
|
9482
9418
|
React$1.useEffect(function () {
|
|
9483
9419
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9484
9420
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9594,42 +9530,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9594
9530
|
});
|
|
9595
9531
|
};
|
|
9596
9532
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9597
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9533
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
9598
9534
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9599
|
-
return
|
|
9600
|
-
while (1) switch (_context.
|
|
9535
|
+
return _regenerator().w(function (_context) {
|
|
9536
|
+
while (1) switch (_context.n) {
|
|
9601
9537
|
case 0:
|
|
9602
9538
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9603
|
-
_context.
|
|
9539
|
+
_context.n = 1;
|
|
9604
9540
|
break;
|
|
9605
9541
|
}
|
|
9606
9542
|
antd.message.warning('至少录入一条数据');
|
|
9607
|
-
return _context.
|
|
9608
|
-
case
|
|
9543
|
+
return _context.a(2);
|
|
9544
|
+
case 1:
|
|
9609
9545
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9610
9546
|
return d.skuCode && d.name;
|
|
9611
9547
|
})) {
|
|
9612
|
-
_context.
|
|
9548
|
+
_context.n = 2;
|
|
9613
9549
|
break;
|
|
9614
9550
|
}
|
|
9615
9551
|
antd.message.warning('录入商品不存在');
|
|
9616
|
-
return _context.
|
|
9617
|
-
case
|
|
9552
|
+
return _context.a(2);
|
|
9553
|
+
case 2:
|
|
9618
9554
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9619
9555
|
return d.count;
|
|
9620
9556
|
})) {
|
|
9621
|
-
_context.
|
|
9557
|
+
_context.n = 3;
|
|
9622
9558
|
break;
|
|
9623
9559
|
}
|
|
9624
9560
|
antd.message.warning('请填写商品数量!');
|
|
9625
|
-
return _context.
|
|
9626
|
-
case
|
|
9627
|
-
_context.
|
|
9561
|
+
return _context.a(2);
|
|
9562
|
+
case 3:
|
|
9563
|
+
_context.n = 4;
|
|
9628
9564
|
return isSkuCanEntry(data);
|
|
9629
|
-
case
|
|
9630
|
-
canEntryObject = _context.
|
|
9565
|
+
case 4:
|
|
9566
|
+
canEntryObject = _context.v;
|
|
9631
9567
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9632
|
-
_context.
|
|
9568
|
+
_context.n = 5;
|
|
9633
9569
|
break;
|
|
9634
9570
|
}
|
|
9635
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) {
|
|
@@ -9639,8 +9575,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9639
9575
|
content: messageInfo,
|
|
9640
9576
|
duration: 6
|
|
9641
9577
|
});
|
|
9642
|
-
return _context.
|
|
9643
|
-
case
|
|
9578
|
+
return _context.a(2);
|
|
9579
|
+
case 5:
|
|
9644
9580
|
setLoading(true);
|
|
9645
9581
|
onSaveCallback(data).then(function (res) {
|
|
9646
9582
|
{
|
|
@@ -9658,9 +9594,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9658
9594
|
antd.message.error(Error);
|
|
9659
9595
|
setLoading(false);
|
|
9660
9596
|
});
|
|
9661
|
-
case
|
|
9662
|
-
|
|
9663
|
-
return _context.stop();
|
|
9597
|
+
case 6:
|
|
9598
|
+
return _context.a(2);
|
|
9664
9599
|
}
|
|
9665
9600
|
}, _callee);
|
|
9666
9601
|
}));
|
|
@@ -10546,10 +10481,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10546
10481
|
selectProps = _objectSpread2({
|
|
10547
10482
|
placeholder: '输入商品(SPU)编码或名称',
|
|
10548
10483
|
renderTableColumns: [{
|
|
10549
|
-
title: '
|
|
10484
|
+
title: 'SPU编码',
|
|
10550
10485
|
dataIndex: 'itemCode'
|
|
10551
10486
|
}, {
|
|
10552
|
-
title: '
|
|
10487
|
+
title: 'SPU名称',
|
|
10553
10488
|
dataIndex: 'name'
|
|
10554
10489
|
}]
|
|
10555
10490
|
}, selectConfigProps);
|
|
@@ -10566,11 +10501,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10566
10501
|
}, requestConfigProp);
|
|
10567
10502
|
tableSearchForm = [{
|
|
10568
10503
|
name: 'itemCode*multiInput',
|
|
10569
|
-
label: '
|
|
10504
|
+
label: 'SPU编码',
|
|
10570
10505
|
type: 'multipleQueryInput'
|
|
10571
10506
|
}, {
|
|
10572
10507
|
name: 'name*multiInput',
|
|
10573
|
-
label: '
|
|
10508
|
+
label: 'SPU名称',
|
|
10574
10509
|
type: 'multipleQueryInput'
|
|
10575
10510
|
}, {
|
|
10576
10511
|
name: 'qp-brandId-in',
|
|
@@ -10664,11 +10599,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10664
10599
|
dataIndex: 'keyIndex',
|
|
10665
10600
|
defaultSort: 0
|
|
10666
10601
|
}, {
|
|
10667
|
-
title: '
|
|
10602
|
+
title: 'SPU编码',
|
|
10668
10603
|
dataIndex: 'itemCode',
|
|
10669
10604
|
defaultSort: 1
|
|
10670
10605
|
}, {
|
|
10671
|
-
title: '
|
|
10606
|
+
title: 'SPU名称',
|
|
10672
10607
|
dataIndex: 'name',
|
|
10673
10608
|
defaultSort: 2
|
|
10674
10609
|
}, {
|
|
@@ -11022,7 +10957,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11022
10957
|
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-brandId-in')
|
|
11023
10958
|
}], ['colorName', 'categoryId', 'classId', 'brandId'], hiddenFields);
|
|
11024
10959
|
var fieldLoadSource = fieldsRequest.map(function (i) {
|
|
11025
|
-
return loadSelectSource$1(i.url, i.params, options);
|
|
10960
|
+
return loadSelectSource$1(i.url, i.params, i.options);
|
|
11026
10961
|
});
|
|
11027
10962
|
requestConfig = _objectSpread2({
|
|
11028
10963
|
url: "".concat(prefixUrl.selectPrefix, "/skc/skcSelect"),
|
|
@@ -11371,6 +11306,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11371
11306
|
render: function render(text) {
|
|
11372
11307
|
return getDictionaryTextByValue$1('SC00004', text);
|
|
11373
11308
|
}
|
|
11309
|
+
}, {
|
|
11310
|
+
title: '运营组名称',
|
|
11311
|
+
dataIndex: 'groupCode',
|
|
11312
|
+
defaultSort: 7,
|
|
11313
|
+
render: function render(text, record) {
|
|
11314
|
+
return (record === null || record === void 0 ? void 0 : record.groupName) ? "\u3010".concat(text, "\u3011").concat(record === null || record === void 0 ? void 0 : record.groupName) : "";
|
|
11315
|
+
},
|
|
11316
|
+
width: 100
|
|
11374
11317
|
}, {
|
|
11375
11318
|
title: '所属销售渠道',
|
|
11376
11319
|
dataIndex: 'channelName',
|
|
@@ -11392,7 +11335,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11392
11335
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11393
11336
|
title: '状态',
|
|
11394
11337
|
dataIndex: 'isEnable',
|
|
11395
|
-
defaultSort:
|
|
11338
|
+
defaultSort: 8,
|
|
11396
11339
|
render: function render(text) {
|
|
11397
11340
|
return getDictionaryTextByValue$1('SC00001', text);
|
|
11398
11341
|
}
|
|
@@ -11849,17 +11792,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11849
11792
|
}
|
|
11850
11793
|
}
|
|
11851
11794
|
}];
|
|
11852
|
-
var
|
|
11795
|
+
var _queryHeaderParams0 = getQueryHeadersList({
|
|
11853
11796
|
querySelectHeadersList: querySelectHeadersList,
|
|
11854
11797
|
extralHeaders: extralHeaders
|
|
11855
11798
|
});
|
|
11856
|
-
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", {
|
|
11857
11800
|
'qp-status-eq': 10,
|
|
11858
11801
|
'qp-isMain-eq': 1,
|
|
11859
11802
|
'qp-type-in': '1,2'
|
|
11860
|
-
}, getQueryHeadersItem(
|
|
11803
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11861
11804
|
'qp-status-eq': 1
|
|
11862
|
-
}, getQueryHeadersItem(
|
|
11805
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in'))]).then(function (x) {
|
|
11863
11806
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
11864
11807
|
var allList = firstElement && [firstElement, firstElement];
|
|
11865
11808
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
@@ -11934,12 +11877,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11934
11877
|
sourceName: 'code'
|
|
11935
11878
|
}, requestConfigProp);
|
|
11936
11879
|
tableSearchForm = [{
|
|
11937
|
-
name: '
|
|
11938
|
-
label: '店铺名称'
|
|
11939
|
-
|
|
11940
|
-
name: 'qp-code-like',
|
|
11941
|
-
label: '店铺编码'
|
|
11880
|
+
name: 'name*multiInput',
|
|
11881
|
+
label: '店铺名称',
|
|
11882
|
+
type: 'multipleQueryInput'
|
|
11942
11883
|
}, {
|
|
11884
|
+
name: 'code*multiInput',
|
|
11885
|
+
label: '店铺编码',
|
|
11886
|
+
type: 'multipleQueryInput'
|
|
11887
|
+
},
|
|
11888
|
+
// { name: 'qp-name-like', label: '店铺名称' },
|
|
11889
|
+
// { name: 'qp-code-like', label: '店铺编码' },
|
|
11890
|
+
{
|
|
11943
11891
|
name: 'qp-conglomerateCode-in',
|
|
11944
11892
|
type: 'select',
|
|
11945
11893
|
label: '归属集团',
|
|
@@ -12040,7 +11988,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12040
11988
|
}
|
|
12041
11989
|
}
|
|
12042
11990
|
}];
|
|
12043
|
-
var
|
|
11991
|
+
var _queryHeaderParams1 = getQueryHeadersList({
|
|
12044
11992
|
querySelectHeadersList: querySelectHeadersList,
|
|
12045
11993
|
extralHeaders: extralHeaders
|
|
12046
11994
|
});
|
|
@@ -12048,21 +11996,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12048
11996
|
pageSize: 5000,
|
|
12049
11997
|
currentPage: 1,
|
|
12050
11998
|
'qp-companyType-eq': '30'
|
|
12051
|
-
}, getQueryHeadersItem(
|
|
11999
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
12052
12000
|
pageSize: 5000,
|
|
12053
12001
|
currentPage: 1,
|
|
12054
12002
|
'qp-companyType-eq': '20'
|
|
12055
|
-
}, getQueryHeadersItem(
|
|
12003
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
12056
12004
|
// pageSize: 5000,
|
|
12057
12005
|
// currentPage: 1,
|
|
12058
12006
|
'qp-status-eq': '1'
|
|
12059
|
-
}, getQueryHeadersItem(
|
|
12007
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
12060
12008
|
pageSize: 5000,
|
|
12061
12009
|
currentPage: 1
|
|
12062
|
-
}, getQueryHeadersItem(
|
|
12010
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
12063
12011
|
pageSize: 5000,
|
|
12064
12012
|
currentPage: 1
|
|
12065
|
-
}, getQueryHeadersItem(
|
|
12013
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-accountingCode-in'))]).then(function (x) {
|
|
12066
12014
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12067
12015
|
formatSource(x, 1, 3, tableSearchForm);
|
|
12068
12016
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -12231,8 +12179,26 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12231
12179
|
}
|
|
12232
12180
|
},
|
|
12233
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
|
+
}
|
|
12234
12200
|
}];
|
|
12235
|
-
var
|
|
12201
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
12236
12202
|
querySelectHeadersList: querySelectHeadersList,
|
|
12237
12203
|
extralHeaders: extralHeaders
|
|
12238
12204
|
});
|
|
@@ -12240,13 +12206,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12240
12206
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12241
12207
|
'qp-realOrg-eq': true,
|
|
12242
12208
|
'qp-status-eq': 10
|
|
12243
|
-
}, getQueryHeadersItem(
|
|
12209
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12244
12210
|
'qp-status-eq': 10,
|
|
12245
12211
|
'qp-isMain-eq': 1,
|
|
12246
12212
|
'qp-type-in': '1,2'
|
|
12247
|
-
}, getQueryHeadersItem(
|
|
12213
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12248
12214
|
'qp-status-eq': 1
|
|
12249
|
-
}, 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) {
|
|
12250
12220
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12251
12221
|
return data['parentCode'] === '0';
|
|
12252
12222
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -12256,6 +12226,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12256
12226
|
formatSource(x, 0, 3, tableSearchForm);
|
|
12257
12227
|
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12258
12228
|
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
12229
|
+
formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
|
|
12259
12230
|
});
|
|
12260
12231
|
modalTableProps = _objectSpread2({
|
|
12261
12232
|
modalTableTitle: '选择商店',
|
|
@@ -12484,7 +12455,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12484
12455
|
name: 'qp-officeTelephone-like',
|
|
12485
12456
|
label: '手机号'
|
|
12486
12457
|
}];
|
|
12487
|
-
var
|
|
12458
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
12488
12459
|
querySelectHeadersList: querySelectHeadersList,
|
|
12489
12460
|
extralHeaders: extralHeaders
|
|
12490
12461
|
});
|
|
@@ -12492,7 +12463,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12492
12463
|
pageSize: 5000,
|
|
12493
12464
|
currentPage: 1,
|
|
12494
12465
|
'qp-companyType-eq': 20
|
|
12495
|
-
}, getQueryHeadersItem(
|
|
12466
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in'))]).then(function (x) {
|
|
12496
12467
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12497
12468
|
});
|
|
12498
12469
|
modalTableProps = _objectSpread2({
|
|
@@ -12598,16 +12569,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12598
12569
|
name: 'qp-email-like',
|
|
12599
12570
|
label: '邮箱'
|
|
12600
12571
|
}, {
|
|
12601
|
-
name: 'qp-
|
|
12572
|
+
name: 'qp-phone-like',
|
|
12602
12573
|
label: '手机号'
|
|
12603
12574
|
}]);
|
|
12604
|
-
var
|
|
12575
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12605
12576
|
querySelectHeadersList: querySelectHeadersList,
|
|
12606
12577
|
extralHeaders: extralHeaders
|
|
12607
12578
|
});
|
|
12608
12579
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12609
12580
|
'orgViewCode': 'administrative-organization-view'
|
|
12610
|
-
}, getQueryHeadersItem(
|
|
12581
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-code-in'))]).then(function (x) {
|
|
12611
12582
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12612
12583
|
});
|
|
12613
12584
|
modalTableProps = _objectSpread2({
|
|
@@ -12658,7 +12629,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12658
12629
|
dataIndex: 'email'
|
|
12659
12630
|
}, {
|
|
12660
12631
|
title: '手机号',
|
|
12661
|
-
dataIndex: '
|
|
12632
|
+
dataIndex: 'phone',
|
|
12662
12633
|
defaultSort: 4,
|
|
12663
12634
|
render: function render(text, record) {
|
|
12664
12635
|
return handleTextOverflow(text || (record === null || record === void 0 ? void 0 : record.phone));
|
|
@@ -12754,17 +12725,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12754
12725
|
name: 'qp-remark-like',
|
|
12755
12726
|
label: '备注'
|
|
12756
12727
|
}];
|
|
12757
|
-
var
|
|
12728
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12758
12729
|
querySelectHeadersList: querySelectHeadersList,
|
|
12759
12730
|
extralHeaders: extralHeaders
|
|
12760
12731
|
});
|
|
12761
12732
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12762
12733
|
pageSize: 5000,
|
|
12763
12734
|
currentPage: 1
|
|
12764
|
-
}, getQueryHeadersItem(
|
|
12735
|
+
}, getQueryHeadersItem(_queryHeaderParams13, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12765
12736
|
pageSize: 5000,
|
|
12766
12737
|
currentPage: 1
|
|
12767
|
-
}, getQueryHeadersItem(
|
|
12738
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12768
12739
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12769
12740
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12770
12741
|
});
|
|
@@ -12934,14 +12905,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12934
12905
|
}
|
|
12935
12906
|
}
|
|
12936
12907
|
}];
|
|
12937
|
-
var
|
|
12908
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12938
12909
|
querySelectHeadersList: querySelectHeadersList,
|
|
12939
12910
|
extralHeaders: extralHeaders
|
|
12940
12911
|
});
|
|
12941
12912
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
12942
12913
|
pageSize: 5000,
|
|
12943
12914
|
currentPage: 1
|
|
12944
|
-
}, getQueryHeadersItem(
|
|
12915
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
12945
12916
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12946
12917
|
});
|
|
12947
12918
|
modalTableProps = _objectSpread2({
|
|
@@ -13038,7 +13009,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13038
13009
|
}
|
|
13039
13010
|
}
|
|
13040
13011
|
}];
|
|
13041
|
-
var
|
|
13012
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
13042
13013
|
querySelectHeadersList: querySelectHeadersList,
|
|
13043
13014
|
extralHeaders: extralHeaders
|
|
13044
13015
|
});
|
|
@@ -13046,7 +13017,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13046
13017
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
13047
13018
|
'qp-realOrg-eq': true,
|
|
13048
13019
|
'qp-status-eq': 10
|
|
13049
|
-
}, getQueryHeadersItem(
|
|
13020
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
13050
13021
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13051
13022
|
});
|
|
13052
13023
|
modalTableProps = _objectSpread2({
|
|
@@ -13152,13 +13123,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13152
13123
|
},
|
|
13153
13124
|
initialSource: nodeType
|
|
13154
13125
|
}];
|
|
13155
|
-
var
|
|
13126
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13156
13127
|
querySelectHeadersList: querySelectHeadersList,
|
|
13157
13128
|
extralHeaders: extralHeaders
|
|
13158
13129
|
});
|
|
13159
13130
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13160
13131
|
'qp-status-eq': 10
|
|
13161
|
-
}, getQueryHeadersItem(
|
|
13132
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13162
13133
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13163
13134
|
});
|
|
13164
13135
|
modalTableProps = _objectSpread2({
|
|
@@ -13484,13 +13455,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13484
13455
|
},
|
|
13485
13456
|
initialSource: nodeType
|
|
13486
13457
|
}];
|
|
13487
|
-
var
|
|
13458
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
13488
13459
|
querySelectHeadersList: querySelectHeadersList,
|
|
13489
13460
|
extralHeaders: extralHeaders
|
|
13490
13461
|
});
|
|
13491
13462
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13492
13463
|
'qp-status-eq': 10
|
|
13493
|
-
}, getQueryHeadersItem(
|
|
13464
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13494
13465
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13495
13466
|
});
|
|
13496
13467
|
modalTableProps = _objectSpread2({
|
|
@@ -14435,9 +14406,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14435
14406
|
value = _useState8[0],
|
|
14436
14407
|
setValue = _useState8[1];
|
|
14437
14408
|
var _useState9 = React$1.useState([]),
|
|
14438
|
-
|
|
14439
|
-
propertyList =
|
|
14440
|
-
setPropertyList =
|
|
14409
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
14410
|
+
propertyList = _useState0[0],
|
|
14411
|
+
setPropertyList = _useState0[1];
|
|
14441
14412
|
React$1.useEffect(function () {
|
|
14442
14413
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14443
14414
|
// type: 1 尺码组; 2 配码组
|
|
@@ -14961,46 +14932,45 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14961
14932
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
14962
14933
|
headers: headers
|
|
14963
14934
|
}).then(/*#__PURE__*/function () {
|
|
14964
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
14935
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
|
|
14965
14936
|
var _ctx$form;
|
|
14966
14937
|
var resData, coverData, data, dataList;
|
|
14967
|
-
return
|
|
14968
|
-
while (1) switch (_context.
|
|
14938
|
+
return _regenerator().w(function (_context) {
|
|
14939
|
+
while (1) switch (_context.n) {
|
|
14969
14940
|
case 0:
|
|
14970
14941
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
14971
14942
|
if (!judgeIsRequestSuccess(resData)) {
|
|
14972
|
-
_context.
|
|
14943
|
+
_context.n = 4;
|
|
14973
14944
|
break;
|
|
14974
14945
|
}
|
|
14975
14946
|
data = resData.data;
|
|
14976
14947
|
if (!remoteSource.converter) {
|
|
14977
|
-
_context.
|
|
14948
|
+
_context.n = 2;
|
|
14978
14949
|
break;
|
|
14979
14950
|
}
|
|
14980
|
-
_context.
|
|
14951
|
+
_context.n = 1;
|
|
14981
14952
|
return remoteSource.converter({
|
|
14982
14953
|
data: [data]
|
|
14983
14954
|
});
|
|
14984
|
-
case
|
|
14985
|
-
coverData = _context.
|
|
14986
|
-
_context.
|
|
14955
|
+
case 1:
|
|
14956
|
+
coverData = _context.v;
|
|
14957
|
+
_context.n = 3;
|
|
14987
14958
|
break;
|
|
14988
|
-
case
|
|
14959
|
+
case 2:
|
|
14989
14960
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
14990
14961
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
14991
14962
|
return _mapSearchTree(ites);
|
|
14992
14963
|
}) || [];
|
|
14993
|
-
case
|
|
14994
|
-
_context.
|
|
14964
|
+
case 3:
|
|
14965
|
+
_context.n = 5;
|
|
14995
14966
|
break;
|
|
14996
|
-
case
|
|
14967
|
+
case 4:
|
|
14997
14968
|
coverData = [];
|
|
14998
|
-
case
|
|
14969
|
+
case 5:
|
|
14999
14970
|
setTreeData(coverData);
|
|
15000
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);
|
|
15001
|
-
case
|
|
15002
|
-
|
|
15003
|
-
return _context.stop();
|
|
14972
|
+
case 6:
|
|
14973
|
+
return _context.a(2);
|
|
15004
14974
|
}
|
|
15005
14975
|
}, _callee);
|
|
15006
14976
|
}));
|
|
@@ -19302,38 +19272,38 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19302
19272
|
};
|
|
19303
19273
|
var refs = React$1.useRef(null);
|
|
19304
19274
|
var _useState9 = React$1.useState(''),
|
|
19305
|
-
|
|
19306
|
-
pagePath =
|
|
19307
|
-
setPagePath =
|
|
19275
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
19276
|
+
pagePath = _useState0[0],
|
|
19277
|
+
setPagePath = _useState0[1];
|
|
19308
19278
|
var _useLocation = umi.useLocation(),
|
|
19309
19279
|
pathname = _useLocation.pathname,
|
|
19310
19280
|
_useLocation$state = _useLocation.state,
|
|
19311
19281
|
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
19312
|
-
var
|
|
19313
|
-
|
|
19314
|
-
isFullScreen =
|
|
19315
|
-
setIsFnllScreen =
|
|
19282
|
+
var _useState1 = React$1.useState(false),
|
|
19283
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
19284
|
+
isFullScreen = _useState10[0],
|
|
19285
|
+
setIsFnllScreen = _useState10[1];
|
|
19316
19286
|
// @ts-nocheck
|
|
19317
19287
|
var value = props;
|
|
19318
19288
|
var _props$fields = props.fields,
|
|
19319
19289
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
19320
|
-
var
|
|
19321
|
-
|
|
19322
|
-
showColumn =
|
|
19323
|
-
setShowColumns =
|
|
19290
|
+
var _useState11 = React$1.useState([]),
|
|
19291
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
19292
|
+
showColumn = _useState12[0],
|
|
19293
|
+
setShowColumns = _useState12[1]; // 列字段
|
|
19324
19294
|
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19325
|
-
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([]),
|
|
19326
19300
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
19327
|
-
|
|
19328
|
-
|
|
19329
|
-
var _useState17 = React$1.useState(
|
|
19301
|
+
showExportColumn = _useState16[0],
|
|
19302
|
+
setShowExportColumns = _useState16[1]; // 导出列字段
|
|
19303
|
+
var _useState17 = React$1.useState(''),
|
|
19330
19304
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
19331
|
-
|
|
19332
|
-
|
|
19333
|
-
var _useState19 = React$1.useState(''),
|
|
19334
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
19335
|
-
height = _useState20[0],
|
|
19336
|
-
setHeight = _useState20[1];
|
|
19305
|
+
height = _useState18[0],
|
|
19306
|
+
setHeight = _useState18[1];
|
|
19337
19307
|
var sortTableRef = React$1.useRef(null);
|
|
19338
19308
|
var searchTableRef = React$1.useRef(null);
|
|
19339
19309
|
var exportTableRef = React$1.useRef(null);
|
|
@@ -20381,22 +20351,19 @@ function outLogin(_x) {
|
|
|
20381
20351
|
return _outLogin.apply(this, arguments);
|
|
20382
20352
|
}
|
|
20383
20353
|
function _outLogin() {
|
|
20384
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
20354
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20385
20355
|
var res;
|
|
20386
|
-
return
|
|
20387
|
-
while (1) switch (_context.
|
|
20356
|
+
return _regenerator().w(function (_context) {
|
|
20357
|
+
while (1) switch (_context.n) {
|
|
20388
20358
|
case 0:
|
|
20389
|
-
_context.
|
|
20359
|
+
_context.n = 1;
|
|
20390
20360
|
return requestUtil({
|
|
20391
20361
|
url: '/user/web/loginOut',
|
|
20392
20362
|
method: 'GET'
|
|
20393
20363
|
});
|
|
20394
|
-
case
|
|
20395
|
-
res = _context.
|
|
20396
|
-
return _context.
|
|
20397
|
-
case 4:
|
|
20398
|
-
case "end":
|
|
20399
|
-
return _context.stop();
|
|
20364
|
+
case 1:
|
|
20365
|
+
res = _context.v;
|
|
20366
|
+
return _context.a(2, res);
|
|
20400
20367
|
}
|
|
20401
20368
|
}, _callee);
|
|
20402
20369
|
}));
|
|
@@ -20523,20 +20490,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20523
20490
|
});
|
|
20524
20491
|
};
|
|
20525
20492
|
var loginOut = /*#__PURE__*/function () {
|
|
20526
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
20493
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
20527
20494
|
var sessionId;
|
|
20528
|
-
return
|
|
20529
|
-
while (1) switch (_context.
|
|
20495
|
+
return _regenerator().w(function (_context) {
|
|
20496
|
+
while (1) switch (_context.n) {
|
|
20530
20497
|
case 0:
|
|
20531
|
-
_context.
|
|
20498
|
+
_context.n = 1;
|
|
20532
20499
|
return getSessionId();
|
|
20533
|
-
case
|
|
20534
|
-
sessionId = _context.
|
|
20535
|
-
_context.
|
|
20500
|
+
case 1:
|
|
20501
|
+
sessionId = _context.v;
|
|
20502
|
+
_context.n = 2;
|
|
20536
20503
|
return outLogin({
|
|
20537
20504
|
sessionId: sessionId
|
|
20538
20505
|
});
|
|
20539
|
-
case
|
|
20506
|
+
case 2:
|
|
20540
20507
|
// @ts-ignore
|
|
20541
20508
|
if (BUILD_TYPE) {
|
|
20542
20509
|
antd.message.success('退出登录成功');
|
|
@@ -20546,9 +20513,8 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20546
20513
|
} else {
|
|
20547
20514
|
setLoginOutPath();
|
|
20548
20515
|
}
|
|
20549
|
-
case
|
|
20550
|
-
|
|
20551
|
-
return _context.stop();
|
|
20516
|
+
case 3:
|
|
20517
|
+
return _context.a(2);
|
|
20552
20518
|
}
|
|
20553
20519
|
}, _callee);
|
|
20554
20520
|
}));
|
|
@@ -20635,18 +20601,15 @@ function getStoreByName(_x) {
|
|
|
20635
20601
|
return _getStoreByName.apply(this, arguments);
|
|
20636
20602
|
}
|
|
20637
20603
|
function _getStoreByName() {
|
|
20638
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20639
|
-
return
|
|
20640
|
-
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) {
|
|
20641
20607
|
case 0:
|
|
20642
|
-
return _context.
|
|
20608
|
+
return _context.a(2, requestUtil({
|
|
20643
20609
|
url: '/store-house/orgViewNode/listNoPage',
|
|
20644
20610
|
method: 'GET',
|
|
20645
20611
|
params: _objectSpread2({}, params)
|
|
20646
20612
|
}));
|
|
20647
|
-
case 1:
|
|
20648
|
-
case "end":
|
|
20649
|
-
return _context.stop();
|
|
20650
20613
|
}
|
|
20651
20614
|
}, _callee);
|
|
20652
20615
|
}));
|
|
@@ -20681,33 +20644,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20681
20644
|
openSelect = _useState8[0],
|
|
20682
20645
|
setOpenSelect = _useState8[1];
|
|
20683
20646
|
var _useState9 = React$1.useState([]),
|
|
20684
|
-
|
|
20685
|
-
options =
|
|
20686
|
-
setOptions =
|
|
20687
|
-
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(''),
|
|
20688
20655
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
20689
|
-
|
|
20690
|
-
|
|
20691
|
-
var _useState13 = React$1.useState(
|
|
20692
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
20693
|
-
searchValue = _useState14[0],
|
|
20694
|
-
setSearchValue = _useState14[1];
|
|
20695
|
-
var _useState15 = React$1.useState([{
|
|
20656
|
+
searchValue = _useState12[0],
|
|
20657
|
+
setSearchValue = _useState12[1];
|
|
20658
|
+
var _useState13 = React$1.useState([{
|
|
20696
20659
|
label: name,
|
|
20697
20660
|
value: code
|
|
20698
20661
|
}]),
|
|
20699
|
-
|
|
20700
|
-
store =
|
|
20701
|
-
setStore =
|
|
20662
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
20663
|
+
store = _useState14[0],
|
|
20664
|
+
setStore = _useState14[1];
|
|
20702
20665
|
function fetchUserList(_x, _x2) {
|
|
20703
20666
|
return _fetchUserList.apply(this, arguments);
|
|
20704
20667
|
}
|
|
20705
20668
|
function _fetchUserList() {
|
|
20706
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
20707
|
-
return
|
|
20708
|
-
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) {
|
|
20709
20672
|
case 0:
|
|
20710
|
-
return _context3.
|
|
20673
|
+
return _context3.a(2, getStoreByName({
|
|
20711
20674
|
orgName: storeName ? storeName : undefined,
|
|
20712
20675
|
platCompanyCode: init ? undefined : key,
|
|
20713
20676
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -20726,9 +20689,6 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20726
20689
|
};
|
|
20727
20690
|
});
|
|
20728
20691
|
}));
|
|
20729
|
-
case 1:
|
|
20730
|
-
case "end":
|
|
20731
|
-
return _context3.stop();
|
|
20732
20692
|
}
|
|
20733
20693
|
}, _callee3);
|
|
20734
20694
|
}));
|
|
@@ -20751,20 +20711,19 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20751
20711
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
20752
20712
|
}, [debounceTimeout, key]);
|
|
20753
20713
|
var changeInput = /*#__PURE__*/function () {
|
|
20754
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
20714
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
|
|
20755
20715
|
var res;
|
|
20756
|
-
return
|
|
20757
|
-
while (1) switch (_context.
|
|
20716
|
+
return _regenerator().w(function (_context) {
|
|
20717
|
+
while (1) switch (_context.n) {
|
|
20758
20718
|
case 0:
|
|
20759
|
-
_context.
|
|
20719
|
+
_context.n = 1;
|
|
20760
20720
|
return debounceFetcher(str);
|
|
20761
|
-
case
|
|
20762
|
-
res = _context.
|
|
20721
|
+
case 1:
|
|
20722
|
+
res = _context.v;
|
|
20763
20723
|
setOptions(res);
|
|
20764
20724
|
setRescouse(res);
|
|
20765
|
-
case
|
|
20766
|
-
|
|
20767
|
-
return _context.stop();
|
|
20725
|
+
case 2:
|
|
20726
|
+
return _context.a(2);
|
|
20768
20727
|
}
|
|
20769
20728
|
}, _callee);
|
|
20770
20729
|
}));
|
|
@@ -20773,15 +20732,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20773
20732
|
};
|
|
20774
20733
|
}();
|
|
20775
20734
|
React$1.useEffect(function () {
|
|
20776
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
20735
|
+
_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
20777
20736
|
var res;
|
|
20778
|
-
return
|
|
20779
|
-
while (1) switch (_context2.
|
|
20737
|
+
return _regenerator().w(function (_context2) {
|
|
20738
|
+
while (1) switch (_context2.n) {
|
|
20780
20739
|
case 0:
|
|
20781
|
-
_context2.
|
|
20740
|
+
_context2.n = 1;
|
|
20782
20741
|
return fetchUserList(undefined, true);
|
|
20783
|
-
case
|
|
20784
|
-
res = _context2.
|
|
20742
|
+
case 1:
|
|
20743
|
+
res = _context2.v;
|
|
20785
20744
|
res.map(function (item, indexNumber) {
|
|
20786
20745
|
if (item.label === name) {
|
|
20787
20746
|
setIndex(indexNumber);
|
|
@@ -20797,9 +20756,8 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20797
20756
|
});
|
|
20798
20757
|
setOptions(res);
|
|
20799
20758
|
setRescouse(res);
|
|
20800
|
-
case
|
|
20801
|
-
|
|
20802
|
-
return _context2.stop();
|
|
20759
|
+
case 2:
|
|
20760
|
+
return _context2.a(2);
|
|
20803
20761
|
}
|
|
20804
20762
|
}, _callee2);
|
|
20805
20763
|
}))();
|
|
@@ -21054,8 +21012,6 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
21054
21012
|
})), /*#__PURE__*/React__default['default'].createElement(GlobalHeaderRight, null));
|
|
21055
21013
|
};
|
|
21056
21014
|
|
|
21057
|
-
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";
|
|
21058
|
-
|
|
21059
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";
|
|
21060
21016
|
styleInject(css_248z$o);
|
|
21061
21017
|
|
|
@@ -21761,28 +21717,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
21761
21717
|
};
|
|
21762
21718
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21763
21719
|
className: 'customer_menu_content'
|
|
21764
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
21765
|
-
style: {
|
|
21766
|
-
cursor: 'pointer'
|
|
21767
|
-
},
|
|
21768
|
-
onClick: function onClick(e) {
|
|
21769
|
-
handleClose();
|
|
21770
|
-
settingModalFn(_objectSpread2(_objectSpread2({}, settingModal), {}, {
|
|
21771
|
-
visible: true
|
|
21772
|
-
}));
|
|
21773
|
-
}
|
|
21774
|
-
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
21775
|
-
style: {
|
|
21776
|
-
marginTop: '-3px'
|
|
21777
|
-
},
|
|
21778
|
-
width: 24,
|
|
21779
|
-
src: addIcon
|
|
21780
|
-
}), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
21781
|
-
type: 'link',
|
|
21782
|
-
style: {
|
|
21783
|
-
paddingLeft: '5px'
|
|
21784
|
-
}
|
|
21785
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
21720
|
+
}, !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
21786
21721
|
style: {
|
|
21787
21722
|
left: isDrawer ? 140 : 0
|
|
21788
21723
|
},
|
|
@@ -21848,25 +21783,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
21848
21783
|
currentOneLevel = _useState8[0],
|
|
21849
21784
|
setCurrentOneLevel = _useState8[1];
|
|
21850
21785
|
var _useState9 = React$1.useState([]),
|
|
21851
|
-
|
|
21852
|
-
SearhData =
|
|
21853
|
-
setSearchMenuData =
|
|
21854
|
-
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),
|
|
21855
21794
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
21856
|
-
|
|
21857
|
-
|
|
21858
|
-
var _useState13 = React$1.useState(
|
|
21795
|
+
drawHeight = _useState12[0],
|
|
21796
|
+
setDrawHeight = _useState12[1];
|
|
21797
|
+
var _useState13 = React$1.useState(false),
|
|
21859
21798
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
21860
|
-
|
|
21861
|
-
|
|
21799
|
+
moreBtnShow = _useState14[0],
|
|
21800
|
+
setMoreBtnShow = _useState14[1];
|
|
21862
21801
|
var _useState15 = React$1.useState(false),
|
|
21863
21802
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
21864
|
-
|
|
21865
|
-
|
|
21866
|
-
var _useState17 = React$1.useState(false),
|
|
21867
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
21868
|
-
showScroll = _useState18[0],
|
|
21869
|
-
setShowScroll = _useState18[1];
|
|
21803
|
+
showScroll = _useState16[0],
|
|
21804
|
+
setShowScroll = _useState16[1];
|
|
21870
21805
|
React$1.useEffect(function () {
|
|
21871
21806
|
var _originRoutes$find;
|
|
21872
21807
|
getMenuContentHeight();
|
|
@@ -22284,7 +22219,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
22284
22219
|
if (item.children && item.children.length > 0) {
|
|
22285
22220
|
_getLimitedMenuKeys(item.children);
|
|
22286
22221
|
} else {
|
|
22287
|
-
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
22222
|
+
var originPath = (item.path || item.frontendPath).replace(/^\/\w+\//, '/');
|
|
22288
22223
|
menuKeys.push(originPath);
|
|
22289
22224
|
if (pathToRegexp('/operation-and-maintenance-center/configuration-management/all-general-documents-specific/:id').test(originPath)) {
|
|
22290
22225
|
getId(originPath) && docsId.push(getId(originPath));
|
|
@@ -22534,7 +22469,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22534
22469
|
return;
|
|
22535
22470
|
}
|
|
22536
22471
|
// todo:暂时处理非wujie环境不做404管控
|
|
22537
|
-
if (!window.__POWERED_BY_WUJIE__) {
|
|
22472
|
+
if (!window.__POWERED_BY_WUJIE__ && !_this.props.isSingleSystem) {
|
|
22538
22473
|
treeList.push({
|
|
22539
22474
|
tab: node.locale,
|
|
22540
22475
|
key: node.path,
|
|
@@ -23477,14 +23412,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23477
23412
|
},
|
|
23478
23413
|
menu: {
|
|
23479
23414
|
request: function () {
|
|
23480
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23481
|
-
return
|
|
23482
|
-
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) {
|
|
23483
23418
|
case 0:
|
|
23484
|
-
return _context.
|
|
23485
|
-
case 1:
|
|
23486
|
-
case "end":
|
|
23487
|
-
return _context.stop();
|
|
23419
|
+
return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
23488
23420
|
}
|
|
23489
23421
|
}, _callee);
|
|
23490
23422
|
}));
|
|
@@ -23889,31 +23821,31 @@ var index$6 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
23889
23821
|
multiTableData = _useState8[0],
|
|
23890
23822
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
23891
23823
|
var _useState9 = React$1.useState(10),
|
|
23892
|
-
|
|
23893
|
-
viewCount =
|
|
23894
|
-
setViewCount =
|
|
23824
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
23825
|
+
viewCount = _useState0[0],
|
|
23826
|
+
setViewCount = _useState0[1]; //虚拟表格每次渲染数量
|
|
23895
23827
|
var itemWidth = 100; // 表格每一项宽度
|
|
23896
|
-
var
|
|
23897
|
-
|
|
23898
|
-
realColHeaderWidth =
|
|
23899
|
-
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];
|
|
23900
23832
|
var viewPort = React$1.useRef(null);
|
|
23901
23833
|
var topScrollBar = React$1.useRef(null);
|
|
23902
23834
|
var leftTableRef = React$1.useRef(null);
|
|
23903
23835
|
//起始渲染item
|
|
23904
|
-
var
|
|
23905
|
-
|
|
23906
|
-
startIndex =
|
|
23907
|
-
setStartIndex =
|
|
23836
|
+
var _useState11 = React$1.useState(0),
|
|
23837
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
23838
|
+
startIndex = _useState12[0],
|
|
23839
|
+
setStartIndex = _useState12[1];
|
|
23908
23840
|
//结束渲染item
|
|
23909
23841
|
var endIndex = React$1.useMemo(function () {
|
|
23910
23842
|
return startIndex + viewCount;
|
|
23911
23843
|
}, [startIndex, viewCount]);
|
|
23912
23844
|
//表格偏移量
|
|
23913
|
-
var
|
|
23914
|
-
|
|
23915
|
-
offsetWidth =
|
|
23916
|
-
setOffset =
|
|
23845
|
+
var _useState13 = React$1.useState(0),
|
|
23846
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
23847
|
+
offsetWidth = _useState14[0],
|
|
23848
|
+
setOffset = _useState14[1];
|
|
23917
23849
|
React$1.useEffect(function () {
|
|
23918
23850
|
setTimeout(function () {
|
|
23919
23851
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -31217,11 +31149,11 @@ var valueType = {
|
|
|
31217
31149
|
};
|
|
31218
31150
|
|
|
31219
31151
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
31220
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
31221
|
-
return
|
|
31222
|
-
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) {
|
|
31223
31155
|
case 0:
|
|
31224
|
-
_context.
|
|
31156
|
+
_context.n = 1;
|
|
31225
31157
|
return bssula.request({
|
|
31226
31158
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
31227
31159
|
converter: function converter(_ref2) {
|
|
@@ -31234,11 +31166,8 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
31234
31166
|
});
|
|
31235
31167
|
}
|
|
31236
31168
|
});
|
|
31237
|
-
case
|
|
31238
|
-
return _context.
|
|
31239
|
-
case 3:
|
|
31240
|
-
case "end":
|
|
31241
|
-
return _context.stop();
|
|
31169
|
+
case 1:
|
|
31170
|
+
return _context.a(2, _context.v);
|
|
31242
31171
|
}
|
|
31243
31172
|
}, _callee);
|
|
31244
31173
|
}));
|
|
@@ -31285,12 +31214,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31285
31214
|
value: false
|
|
31286
31215
|
}];
|
|
31287
31216
|
var ref = React$1.useRef();
|
|
31288
|
-
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
31289
|
-
var _ref$current, source;
|
|
31290
|
-
return
|
|
31291
|
-
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) {
|
|
31292
31221
|
case 0:
|
|
31293
|
-
_context.
|
|
31222
|
+
_context.n = 1;
|
|
31294
31223
|
return setIsShowAndType(function (prev) {
|
|
31295
31224
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
31296
31225
|
return {
|
|
@@ -31301,40 +31230,39 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31301
31230
|
}
|
|
31302
31231
|
return prev;
|
|
31303
31232
|
});
|
|
31304
|
-
case
|
|
31233
|
+
case 1:
|
|
31305
31234
|
if (!record.dictionaryCode) {
|
|
31306
|
-
_context.
|
|
31235
|
+
_context.n = 7;
|
|
31307
31236
|
break;
|
|
31308
31237
|
}
|
|
31309
31238
|
if (!(record.choiceType == 20)) {
|
|
31310
|
-
_context.
|
|
31239
|
+
_context.n = 2;
|
|
31311
31240
|
break;
|
|
31312
31241
|
}
|
|
31313
|
-
|
|
31314
|
-
_context.
|
|
31242
|
+
_t = getDictionarySource(record.dictionaryCode);
|
|
31243
|
+
_context.n = 6;
|
|
31315
31244
|
break;
|
|
31316
|
-
case
|
|
31245
|
+
case 2:
|
|
31317
31246
|
if (!(record.choiceType == 30)) {
|
|
31318
|
-
_context.
|
|
31247
|
+
_context.n = 4;
|
|
31319
31248
|
break;
|
|
31320
31249
|
}
|
|
31321
|
-
_context.
|
|
31250
|
+
_context.n = 3;
|
|
31322
31251
|
return getDynamicDict(record.dictionaryCode);
|
|
31323
|
-
case
|
|
31324
|
-
|
|
31325
|
-
_context.
|
|
31252
|
+
case 3:
|
|
31253
|
+
_t2 = _context.v;
|
|
31254
|
+
_context.n = 5;
|
|
31326
31255
|
break;
|
|
31327
|
-
case
|
|
31328
|
-
|
|
31329
|
-
case
|
|
31330
|
-
|
|
31331
|
-
case
|
|
31332
|
-
source =
|
|
31256
|
+
case 4:
|
|
31257
|
+
_t2 = [];
|
|
31258
|
+
case 5:
|
|
31259
|
+
_t = _t2;
|
|
31260
|
+
case 6:
|
|
31261
|
+
source = _t;
|
|
31333
31262
|
// @ts-ignore
|
|
31334
31263
|
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
31335
|
-
case
|
|
31336
|
-
|
|
31337
|
-
return _context.stop();
|
|
31264
|
+
case 7:
|
|
31265
|
+
return _context.a(2);
|
|
31338
31266
|
}
|
|
31339
31267
|
}, _callee);
|
|
31340
31268
|
})));
|
|
@@ -31399,10 +31327,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31399
31327
|
source: {
|
|
31400
31328
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
31401
31329
|
type: function () {
|
|
31402
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
31330
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
|
|
31403
31331
|
var form, values, name, relates, source;
|
|
31404
|
-
return
|
|
31405
|
-
while (1) switch (_context2.
|
|
31332
|
+
return _regenerator().w(function (_context2) {
|
|
31333
|
+
while (1) switch (_context2.n) {
|
|
31406
31334
|
case 0:
|
|
31407
31335
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
31408
31336
|
if (values[0]) {
|
|
@@ -31411,19 +31339,18 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31411
31339
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
31412
31340
|
}
|
|
31413
31341
|
if (!values[1]) {
|
|
31414
|
-
_context2.
|
|
31342
|
+
_context2.n = 2;
|
|
31415
31343
|
break;
|
|
31416
31344
|
}
|
|
31417
|
-
_context2.
|
|
31345
|
+
_context2.n = 1;
|
|
31418
31346
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
31419
|
-
case
|
|
31420
|
-
source = _context2.
|
|
31347
|
+
case 1:
|
|
31348
|
+
source = _context2.v;
|
|
31421
31349
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
31422
31350
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
31423
31351
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
31424
|
-
case
|
|
31425
|
-
|
|
31426
|
-
return _context2.stop();
|
|
31352
|
+
case 2:
|
|
31353
|
+
return _context2.a(2);
|
|
31427
31354
|
}
|
|
31428
31355
|
}, _callee2);
|
|
31429
31356
|
}));
|
|
@@ -31879,25 +31806,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31879
31806
|
source: {
|
|
31880
31807
|
relates: ['choiceType', 'inputType'],
|
|
31881
31808
|
type: function () {
|
|
31882
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
31809
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
|
|
31883
31810
|
var values, name, form, source;
|
|
31884
|
-
return
|
|
31885
|
-
while (1) switch (_context3.
|
|
31811
|
+
return _regenerator().w(function (_context3) {
|
|
31812
|
+
while (1) switch (_context3.n) {
|
|
31886
31813
|
case 0:
|
|
31887
|
-
values =
|
|
31814
|
+
values = _ref0.values, name = _ref0.name, form = _ref0.form;
|
|
31888
31815
|
if (values[1] === 40) {
|
|
31889
31816
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
31890
31817
|
form.setFieldVisible(name, false);
|
|
31891
31818
|
}
|
|
31892
31819
|
if (!(values[0] === 30)) {
|
|
31893
|
-
_context3.
|
|
31820
|
+
_context3.n = 2;
|
|
31894
31821
|
break;
|
|
31895
31822
|
}
|
|
31896
|
-
_context3.
|
|
31823
|
+
_context3.n = 1;
|
|
31897
31824
|
return bssula.request({
|
|
31898
31825
|
url: '/basic/dictDynamicItem/queryList',
|
|
31899
|
-
converter: function converter(
|
|
31900
|
-
var data =
|
|
31826
|
+
converter: function converter(_ref1) {
|
|
31827
|
+
var data = _ref1.data;
|
|
31901
31828
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31902
31829
|
return {
|
|
31903
31830
|
text: d.dictCode,
|
|
@@ -31906,17 +31833,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31906
31833
|
});
|
|
31907
31834
|
}
|
|
31908
31835
|
});
|
|
31909
|
-
case
|
|
31910
|
-
source = _context3.
|
|
31836
|
+
case 1:
|
|
31837
|
+
source = _context3.v;
|
|
31911
31838
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
31912
31839
|
form.setFieldVisible(name, true);
|
|
31913
|
-
_context3.
|
|
31840
|
+
_context3.n = 3;
|
|
31914
31841
|
break;
|
|
31915
|
-
case
|
|
31842
|
+
case 2:
|
|
31916
31843
|
form.setFieldVisible(name, false);
|
|
31917
|
-
case
|
|
31918
|
-
|
|
31919
|
-
return _context3.stop();
|
|
31844
|
+
case 3:
|
|
31845
|
+
return _context3.a(2);
|
|
31920
31846
|
}
|
|
31921
31847
|
}, _callee3);
|
|
31922
31848
|
}));
|
|
@@ -31931,8 +31857,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31931
31857
|
name: 'enumeration',
|
|
31932
31858
|
label: '维护自定义选项',
|
|
31933
31859
|
field: {
|
|
31934
|
-
type: function type(
|
|
31935
|
-
var form =
|
|
31860
|
+
type: function type(_ref10) {
|
|
31861
|
+
var form = _ref10.form;
|
|
31936
31862
|
return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
31937
31863
|
type: 'link',
|
|
31938
31864
|
onClick: function onClick() {
|
|
@@ -31958,10 +31884,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31958
31884
|
dependency: {
|
|
31959
31885
|
source: {
|
|
31960
31886
|
relates: ['choiceType'],
|
|
31961
|
-
type: function type(
|
|
31962
|
-
var values =
|
|
31963
|
-
name =
|
|
31964
|
-
form =
|
|
31887
|
+
type: function type(_ref11) {
|
|
31888
|
+
var values = _ref11.values,
|
|
31889
|
+
name = _ref11.name,
|
|
31890
|
+
form = _ref11.form;
|
|
31965
31891
|
if (values[0] === 10) {
|
|
31966
31892
|
form.setFieldVisible(name, true);
|
|
31967
31893
|
} else {
|
|
@@ -31977,10 +31903,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31977
31903
|
dependency: {
|
|
31978
31904
|
visible: {
|
|
31979
31905
|
relates: ['choiceType'],
|
|
31980
|
-
type: function type(
|
|
31981
|
-
var name =
|
|
31982
|
-
values =
|
|
31983
|
-
form =
|
|
31906
|
+
type: function type(_ref12) {
|
|
31907
|
+
var name = _ref12.name,
|
|
31908
|
+
values = _ref12.values,
|
|
31909
|
+
form = _ref12.form;
|
|
31984
31910
|
if (values[0] == 330) {
|
|
31985
31911
|
form.setFieldVisible(name, true);
|
|
31986
31912
|
} else {
|
|
@@ -32004,8 +31930,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32004
31930
|
params: {
|
|
32005
31931
|
'qp-businessType-eq': record.businessType
|
|
32006
31932
|
},
|
|
32007
|
-
converter: function converter(
|
|
32008
|
-
var data =
|
|
31933
|
+
converter: function converter(_ref13) {
|
|
31934
|
+
var data = _ref13.data;
|
|
32009
31935
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32010
31936
|
return {
|
|
32011
31937
|
text: d.name,
|
|
@@ -32045,8 +31971,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32045
31971
|
'qp-businessType-eq': record.businessType,
|
|
32046
31972
|
'qp-status-eq': 1
|
|
32047
31973
|
},
|
|
32048
|
-
converter: function converter(
|
|
32049
|
-
var data =
|
|
31974
|
+
converter: function converter(_ref14) {
|
|
31975
|
+
var data = _ref14.data;
|
|
32050
31976
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32051
31977
|
var _d$code;
|
|
32052
31978
|
return {
|
|
@@ -32074,8 +32000,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32074
32000
|
remoteSource: {
|
|
32075
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),
|
|
32076
32002
|
method: 'get',
|
|
32077
|
-
converter: function converter(
|
|
32078
|
-
var data =
|
|
32003
|
+
converter: function converter(_ref15) {
|
|
32004
|
+
var data = _ref15.data;
|
|
32079
32005
|
if (lineDetail.moduleType == 1) {
|
|
32080
32006
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32081
32007
|
return {
|
|
@@ -32101,16 +32027,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32101
32027
|
width: 900,
|
|
32102
32028
|
maskClosable: false,
|
|
32103
32029
|
onOk: function () {
|
|
32104
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
32030
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
32105
32031
|
var _ref$current4, _res$editableStatus;
|
|
32106
32032
|
var res, _res$defaultValue;
|
|
32107
|
-
return
|
|
32108
|
-
while (1) switch (_context4.
|
|
32033
|
+
return _regenerator().w(function (_context4) {
|
|
32034
|
+
while (1) switch (_context4.n) {
|
|
32109
32035
|
case 0:
|
|
32110
|
-
_context4.
|
|
32036
|
+
_context4.n = 1;
|
|
32111
32037
|
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
32112
|
-
case
|
|
32113
|
-
res = _context4.
|
|
32038
|
+
case 1:
|
|
32039
|
+
res = _context4.v;
|
|
32114
32040
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
32115
32041
|
res.fieldGroup = record.fieldGroup;
|
|
32116
32042
|
res.businessType = record.businessType;
|
|
@@ -32137,7 +32063,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32137
32063
|
delete res.formula;
|
|
32138
32064
|
delete res.showValue;
|
|
32139
32065
|
if (!(mode === 'create')) {
|
|
32140
|
-
_context4.
|
|
32066
|
+
_context4.n = 2;
|
|
32141
32067
|
break;
|
|
32142
32068
|
}
|
|
32143
32069
|
bssula.request({
|
|
@@ -32149,8 +32075,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32149
32075
|
onParentOk();
|
|
32150
32076
|
}
|
|
32151
32077
|
});
|
|
32152
|
-
return _context4.
|
|
32153
|
-
case
|
|
32078
|
+
return _context4.a(2);
|
|
32079
|
+
case 2:
|
|
32154
32080
|
bssula.request({
|
|
32155
32081
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
32156
32082
|
method: 'PATCH',
|
|
@@ -32160,9 +32086,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32160
32086
|
onParentOk();
|
|
32161
32087
|
}
|
|
32162
32088
|
});
|
|
32163
|
-
case
|
|
32164
|
-
|
|
32165
|
-
return _context4.stop();
|
|
32089
|
+
case 3:
|
|
32090
|
+
return _context4.a(2);
|
|
32166
32091
|
}
|
|
32167
32092
|
}, _callee4);
|
|
32168
32093
|
}));
|
|
@@ -32618,21 +32543,21 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
32618
32543
|
jsonEditorVal = _useState8[0],
|
|
32619
32544
|
setJsonEditorVal = _useState8[1];
|
|
32620
32545
|
var _useState9 = React$1.useState({}),
|
|
32621
|
-
|
|
32622
|
-
moduleParams =
|
|
32623
|
-
setModuleParams =
|
|
32624
|
-
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({}),
|
|
32625
32554
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32626
|
-
|
|
32627
|
-
|
|
32628
|
-
var _useState13 = React$1.useState(
|
|
32555
|
+
tablesConfigParams = _useState12[0],
|
|
32556
|
+
setTablesConfigParams = _useState12[1];
|
|
32557
|
+
var _useState13 = React$1.useState([]),
|
|
32629
32558
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32630
|
-
|
|
32631
|
-
|
|
32632
|
-
var _useState15 = React$1.useState([]),
|
|
32633
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
32634
|
-
tableJsonEditorValsArr = _useState16[0],
|
|
32635
|
-
setTableJsonEditorValsArr = _useState16[1];
|
|
32559
|
+
tableJsonEditorValsArr = _useState14[0],
|
|
32560
|
+
setTableJsonEditorValsArr = _useState14[1];
|
|
32636
32561
|
React$1.useEffect(function () {
|
|
32637
32562
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32638
32563
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -33008,11 +32933,11 @@ function getMetaData(_x) {
|
|
|
33008
32933
|
|
|
33009
32934
|
// 获取数据
|
|
33010
32935
|
function _getMetaData() {
|
|
33011
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
33012
|
-
return
|
|
33013
|
-
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) {
|
|
33014
32939
|
case 0:
|
|
33015
|
-
return _context.
|
|
32940
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
33016
32941
|
umi.request('/basic/entityProperty/listNoPage', {
|
|
33017
32942
|
params: {
|
|
33018
32943
|
'qp-entityId-eq': id
|
|
@@ -33024,9 +32949,6 @@ function _getMetaData() {
|
|
|
33024
32949
|
reject([]);
|
|
33025
32950
|
});
|
|
33026
32951
|
}));
|
|
33027
|
-
case 1:
|
|
33028
|
-
case "end":
|
|
33029
|
-
return _context.stop();
|
|
33030
32952
|
}
|
|
33031
32953
|
}, _callee);
|
|
33032
32954
|
}));
|
|
@@ -33230,11 +33152,11 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33230
33152
|
tableState = _useState4[0],
|
|
33231
33153
|
setTableState = _useState4[1];
|
|
33232
33154
|
var handleOpen = /*#__PURE__*/function () {
|
|
33233
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33155
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33234
33156
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
33235
33157
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
33236
|
-
return
|
|
33237
|
-
while (1) switch (_context.
|
|
33158
|
+
return _regenerator().w(function (_context) {
|
|
33159
|
+
while (1) switch (_context.n) {
|
|
33238
33160
|
case 0:
|
|
33239
33161
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
33240
33162
|
isSearchForm: props.isSearchForm,
|
|
@@ -33242,16 +33164,16 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33242
33164
|
searchFormData: searchFormData
|
|
33243
33165
|
});
|
|
33244
33166
|
if (requestConfigNew) {
|
|
33245
|
-
_context.
|
|
33167
|
+
_context.n = 1;
|
|
33246
33168
|
break;
|
|
33247
33169
|
}
|
|
33248
|
-
return _context.
|
|
33249
|
-
case
|
|
33170
|
+
return _context.a(2);
|
|
33171
|
+
case 1:
|
|
33250
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;
|
|
33251
|
-
_context.
|
|
33173
|
+
_context.n = 2;
|
|
33252
33174
|
return getMetaData(metaDataId);
|
|
33253
|
-
case
|
|
33254
|
-
metaData = _context.
|
|
33175
|
+
case 2:
|
|
33176
|
+
metaData = _context.v;
|
|
33255
33177
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
33256
33178
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
33257
33179
|
})) || [];
|
|
@@ -33291,9 +33213,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33291
33213
|
// @ts-ignore
|
|
33292
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);
|
|
33293
33215
|
}
|
|
33294
|
-
case
|
|
33295
|
-
|
|
33296
|
-
return _context.stop();
|
|
33216
|
+
case 3:
|
|
33217
|
+
return _context.a(2);
|
|
33297
33218
|
}
|
|
33298
33219
|
}, _callee);
|
|
33299
33220
|
}));
|
|
@@ -33396,7 +33317,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33396
33317
|
}, [requestConfig, tableState.columns]);
|
|
33397
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';
|
|
33398
33319
|
var handleOk = function handleOk(rowData) {
|
|
33399
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
33320
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
|
|
33400
33321
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
33401
33322
|
//多选数据处理
|
|
33402
33323
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -33407,9 +33328,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33407
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()) || [];
|
|
33408
33329
|
var realSelectedRows = selectedRows;
|
|
33409
33330
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
33410
|
-
var _queryTableRef$
|
|
33331
|
+
var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
|
|
33411
33332
|
// @ts-ignore
|
|
33412
|
-
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()) || [];
|
|
33413
33334
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
33414
33335
|
return selectedKesys.includes(s[rowKey]);
|
|
33415
33336
|
});
|
|
@@ -33442,10 +33363,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33442
33363
|
});
|
|
33443
33364
|
}
|
|
33444
33365
|
mappings.map(function (item) {
|
|
33445
|
-
var _props$
|
|
33446
|
-
if (((_props$
|
|
33447
|
-
var _props$
|
|
33448
|
-
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];
|
|
33449
33370
|
}
|
|
33450
33371
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
33451
33372
|
});
|
|
@@ -33500,10 +33421,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33500
33421
|
}
|
|
33501
33422
|
props.onCancel();
|
|
33502
33423
|
//@ts-ignore
|
|
33503
|
-
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();
|
|
33504
33425
|
};
|
|
33505
33426
|
var config = React$1.useMemo(function () {
|
|
33506
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
33427
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
|
|
33507
33428
|
var returnConfig = {
|
|
33508
33429
|
size: 'small',
|
|
33509
33430
|
needPageHeader: false,
|
|
@@ -33512,7 +33433,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33512
33433
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33513
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) {
|
|
33514
33435
|
return v.key || v;
|
|
33515
|
-
})) || (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))
|
|
33516
33437
|
} : false,
|
|
33517
33438
|
remoteDataSource: remoteDataSource,
|
|
33518
33439
|
fields: tableState.fields,
|
|
@@ -33520,8 +33441,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33520
33441
|
rowKey: rowKey,
|
|
33521
33442
|
tableProps: !isView && {
|
|
33522
33443
|
rowClassName: function rowClassName(record) {
|
|
33523
|
-
var _props$
|
|
33524
|
-
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' : '';
|
|
33525
33446
|
},
|
|
33526
33447
|
onRow: function onRow(record) {
|
|
33527
33448
|
return {
|
|
@@ -33566,10 +33487,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33566
33487
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
33567
33488
|
type: "default",
|
|
33568
33489
|
onClick: function onClick() {
|
|
33569
|
-
var _queryTableRef$
|
|
33490
|
+
var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
|
|
33570
33491
|
props.onCancel();
|
|
33571
33492
|
//@ts-ignore
|
|
33572
|
-
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();
|
|
33573
33494
|
}
|
|
33574
33495
|
}, "\u53D6\u6D88"))));
|
|
33575
33496
|
});
|
|
@@ -33793,19 +33714,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33793
33714
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33794
33715
|
handSource = _useState2[0],
|
|
33795
33716
|
setHandSource = _useState2[1];
|
|
33796
|
-
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
33717
|
+
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33797
33718
|
var resData, data;
|
|
33798
|
-
return
|
|
33799
|
-
while (1) switch (_context.
|
|
33719
|
+
return _regenerator().w(function (_context) {
|
|
33720
|
+
while (1) switch (_context.n) {
|
|
33800
33721
|
case 0:
|
|
33801
33722
|
if (!(!source && initRequestSource)) {
|
|
33802
|
-
_context.
|
|
33723
|
+
_context.n = 2;
|
|
33803
33724
|
break;
|
|
33804
33725
|
}
|
|
33805
|
-
_context.
|
|
33726
|
+
_context.n = 1;
|
|
33806
33727
|
return initRequestSource();
|
|
33807
|
-
case
|
|
33808
|
-
resData = _context.
|
|
33728
|
+
case 1:
|
|
33729
|
+
resData = _context.v;
|
|
33809
33730
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
33810
33731
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
33811
33732
|
label: item.text,
|
|
@@ -33813,9 +33734,8 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33813
33734
|
});
|
|
33814
33735
|
})) || [];
|
|
33815
33736
|
setHandSource(data);
|
|
33816
|
-
case
|
|
33817
|
-
|
|
33818
|
-
return _context.stop();
|
|
33737
|
+
case 2:
|
|
33738
|
+
return _context.a(2);
|
|
33819
33739
|
}
|
|
33820
33740
|
}, _callee);
|
|
33821
33741
|
})), []);
|
|
@@ -33945,20 +33865,17 @@ function getRegularThresholdRange(_x) {
|
|
|
33945
33865
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
33946
33866
|
}
|
|
33947
33867
|
function _getRegularThresholdRange() {
|
|
33948
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
33949
|
-
return
|
|
33950
|
-
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) {
|
|
33951
33871
|
case 0:
|
|
33952
|
-
return _context.
|
|
33872
|
+
return _context.a(2, requestUtil({
|
|
33953
33873
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
33954
33874
|
method: 'POST',
|
|
33955
33875
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
33956
33876
|
queryIdentify: undefined
|
|
33957
33877
|
})
|
|
33958
33878
|
}));
|
|
33959
|
-
case 1:
|
|
33960
|
-
case "end":
|
|
33961
|
-
return _context.stop();
|
|
33962
33879
|
}
|
|
33963
33880
|
}, _callee);
|
|
33964
33881
|
}));
|
|
@@ -34099,24 +34016,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34099
34016
|
};
|
|
34100
34017
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
34101
34018
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
34102
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
34019
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
34103
34020
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
34104
|
-
return
|
|
34105
|
-
while (1) switch (_context.
|
|
34021
|
+
return _regenerator().w(function (_context) {
|
|
34022
|
+
while (1) switch (_context.n) {
|
|
34106
34023
|
case 0:
|
|
34107
34024
|
if (queryIdentify) {
|
|
34108
|
-
_context.
|
|
34025
|
+
_context.n = 1;
|
|
34109
34026
|
break;
|
|
34110
34027
|
}
|
|
34111
|
-
return _context.
|
|
34112
|
-
case
|
|
34028
|
+
return _context.a(2);
|
|
34029
|
+
case 1:
|
|
34113
34030
|
thresholdQuery = _this.state.thresholdQuery;
|
|
34114
34031
|
extraRequestUrl = '';
|
|
34115
34032
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
34116
34033
|
if (!queryIdentityInfo.find(function (item) {
|
|
34117
34034
|
return item.identity == propertyCode;
|
|
34118
34035
|
})) {
|
|
34119
|
-
_context.
|
|
34036
|
+
_context.n = 3;
|
|
34120
34037
|
break;
|
|
34121
34038
|
}
|
|
34122
34039
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -34130,15 +34047,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34130
34047
|
if (!needQueryList.some(function (item) {
|
|
34131
34048
|
return !querParams[item] || !querParams[item].length;
|
|
34132
34049
|
})) {
|
|
34133
|
-
_context.
|
|
34050
|
+
_context.n = 2;
|
|
34134
34051
|
break;
|
|
34135
34052
|
}
|
|
34136
|
-
return _context.
|
|
34137
|
-
case
|
|
34053
|
+
return _context.a(2);
|
|
34054
|
+
case 2:
|
|
34138
34055
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
34139
34056
|
return item.identity == propertyCode;
|
|
34140
34057
|
}).requestUrl || '';
|
|
34141
|
-
case
|
|
34058
|
+
case 3:
|
|
34142
34059
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
34143
34060
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
34144
34061
|
querParams = {
|
|
@@ -34149,7 +34066,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34149
34066
|
// querParams = { dictCode: queryIdentify }
|
|
34150
34067
|
}
|
|
34151
34068
|
if (!extraRequestUrl) {
|
|
34152
|
-
_context.
|
|
34069
|
+
_context.n = 4;
|
|
34153
34070
|
break;
|
|
34154
34071
|
}
|
|
34155
34072
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -34188,43 +34105,42 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34188
34105
|
return handleData;
|
|
34189
34106
|
}
|
|
34190
34107
|
});
|
|
34191
|
-
_context.
|
|
34108
|
+
_context.n = 8;
|
|
34192
34109
|
break;
|
|
34193
|
-
case
|
|
34110
|
+
case 4:
|
|
34194
34111
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
34195
|
-
_context.
|
|
34112
|
+
_context.n = 5;
|
|
34196
34113
|
break;
|
|
34197
34114
|
}
|
|
34198
34115
|
_this.setState({
|
|
34199
34116
|
thresholdList: queryIdentify
|
|
34200
34117
|
});
|
|
34201
|
-
_context.
|
|
34118
|
+
_context.n = 8;
|
|
34202
34119
|
break;
|
|
34203
|
-
case
|
|
34120
|
+
case 5:
|
|
34204
34121
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
34205
|
-
_context.
|
|
34122
|
+
_context.n = 6;
|
|
34206
34123
|
break;
|
|
34207
34124
|
}
|
|
34208
34125
|
// TODO待处理
|
|
34209
34126
|
_this.setState({
|
|
34210
34127
|
thresholdList: []
|
|
34211
34128
|
});
|
|
34212
|
-
_context.
|
|
34129
|
+
_context.n = 8;
|
|
34213
34130
|
break;
|
|
34214
|
-
case
|
|
34131
|
+
case 6:
|
|
34215
34132
|
querParams.queryIdentify = queryIdentify;
|
|
34216
|
-
_context.
|
|
34133
|
+
_context.n = 7;
|
|
34217
34134
|
return getRegularThresholdRange(querParams);
|
|
34218
|
-
case
|
|
34219
|
-
res = _context.
|
|
34135
|
+
case 7:
|
|
34136
|
+
res = _context.v;
|
|
34220
34137
|
if (handleError(res)) {
|
|
34221
34138
|
_this.setState({
|
|
34222
34139
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
34223
34140
|
});
|
|
34224
34141
|
}
|
|
34225
|
-
case
|
|
34226
|
-
|
|
34227
|
-
return _context.stop();
|
|
34142
|
+
case 8:
|
|
34143
|
+
return _context.a(2);
|
|
34228
34144
|
}
|
|
34229
34145
|
}, _callee);
|
|
34230
34146
|
}));
|
|
@@ -35056,11 +34972,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35056
34972
|
isAll: true,
|
|
35057
34973
|
needNameAndCode: true,
|
|
35058
34974
|
notChangeOnSelect: true,
|
|
35059
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35060
|
-
return
|
|
35061
|
-
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) {
|
|
35062
34978
|
case 0:
|
|
35063
|
-
_context2.
|
|
34979
|
+
_context2.n = 1;
|
|
35064
34980
|
return bssula.request({
|
|
35065
34981
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35066
34982
|
method: 'get',
|
|
@@ -35077,11 +34993,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35077
34993
|
return handleData;
|
|
35078
34994
|
}
|
|
35079
34995
|
});
|
|
35080
|
-
case
|
|
35081
|
-
return _context2.
|
|
35082
|
-
case 3:
|
|
35083
|
-
case "end":
|
|
35084
|
-
return _context2.stop();
|
|
34996
|
+
case 1:
|
|
34997
|
+
return _context2.a(2, _context2.v);
|
|
35085
34998
|
}
|
|
35086
34999
|
}, _callee2);
|
|
35087
35000
|
})),
|
|
@@ -35105,11 +35018,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35105
35018
|
isAll: true,
|
|
35106
35019
|
needNameAndCode: true,
|
|
35107
35020
|
notChangeOnSelect: true,
|
|
35108
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35109
|
-
return
|
|
35110
|
-
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) {
|
|
35111
35024
|
case 0:
|
|
35112
|
-
_context3.
|
|
35025
|
+
_context3.n = 1;
|
|
35113
35026
|
return bssula.request({
|
|
35114
35027
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35115
35028
|
method: 'get',
|
|
@@ -35126,11 +35039,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35126
35039
|
return handleData;
|
|
35127
35040
|
}
|
|
35128
35041
|
});
|
|
35129
|
-
case
|
|
35130
|
-
return _context3.
|
|
35131
|
-
case 3:
|
|
35132
|
-
case "end":
|
|
35133
|
-
return _context3.stop();
|
|
35042
|
+
case 1:
|
|
35043
|
+
return _context3.a(2, _context3.v);
|
|
35134
35044
|
}
|
|
35135
35045
|
}, _callee3);
|
|
35136
35046
|
})),
|
|
@@ -35156,11 +35066,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35156
35066
|
isAll: true,
|
|
35157
35067
|
needNameAndCode: true,
|
|
35158
35068
|
notChangeOnSelect: true,
|
|
35159
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35160
|
-
return
|
|
35161
|
-
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) {
|
|
35162
35072
|
case 0:
|
|
35163
|
-
_context4.
|
|
35073
|
+
_context4.n = 1;
|
|
35164
35074
|
return bssula.request({
|
|
35165
35075
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35166
35076
|
method: 'get',
|
|
@@ -35177,11 +35087,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35177
35087
|
return handleData;
|
|
35178
35088
|
}
|
|
35179
35089
|
});
|
|
35180
|
-
case
|
|
35181
|
-
return _context4.
|
|
35182
|
-
case 3:
|
|
35183
|
-
case "end":
|
|
35184
|
-
return _context4.stop();
|
|
35090
|
+
case 1:
|
|
35091
|
+
return _context4.a(2, _context4.v);
|
|
35185
35092
|
}
|
|
35186
35093
|
}, _callee4);
|
|
35187
35094
|
})),
|
|
@@ -35868,8 +35775,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35868
35775
|
}
|
|
35869
35776
|
}));
|
|
35870
35777
|
} else {
|
|
35871
|
-
var
|
|
35872
|
-
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) {
|
|
35873
35780
|
return {
|
|
35874
35781
|
key: s,
|
|
35875
35782
|
label: valueNames[vIndex],
|
|
@@ -36147,8 +36054,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36147
36054
|
}
|
|
36148
36055
|
}));
|
|
36149
36056
|
} else {
|
|
36150
|
-
var
|
|
36151
|
-
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) {
|
|
36152
36059
|
return {
|
|
36153
36060
|
key: s,
|
|
36154
36061
|
label: valueNames[vIndex],
|
|
@@ -36170,7 +36077,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36170
36077
|
} : {}),
|
|
36171
36078
|
disabled: disabled,
|
|
36172
36079
|
labelInValue: true,
|
|
36173
|
-
value:
|
|
36080
|
+
value: _currentValue0,
|
|
36174
36081
|
requestConfig: {
|
|
36175
36082
|
filterInit: 'qp-code-in'
|
|
36176
36083
|
},
|
|
@@ -36263,8 +36170,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36263
36170
|
}
|
|
36264
36171
|
}));
|
|
36265
36172
|
} else {
|
|
36266
|
-
var
|
|
36267
|
-
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) {
|
|
36268
36175
|
return {
|
|
36269
36176
|
key: s,
|
|
36270
36177
|
label: valueNames[vIndex],
|
|
@@ -36286,7 +36193,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36286
36193
|
} : {}),
|
|
36287
36194
|
disabled: disabled,
|
|
36288
36195
|
labelInValue: true,
|
|
36289
|
-
value:
|
|
36196
|
+
value: _currentValue1,
|
|
36290
36197
|
requestConfig: {
|
|
36291
36198
|
filterInit: 'qp-code-in'
|
|
36292
36199
|
},
|
|
@@ -36379,8 +36286,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36379
36286
|
}
|
|
36380
36287
|
}));
|
|
36381
36288
|
} else {
|
|
36382
|
-
var
|
|
36383
|
-
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) {
|
|
36384
36291
|
return {
|
|
36385
36292
|
key: s,
|
|
36386
36293
|
label: valueNames[vIndex],
|
|
@@ -36402,7 +36309,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36402
36309
|
} : {}),
|
|
36403
36310
|
disabled: disabled,
|
|
36404
36311
|
labelInValue: true,
|
|
36405
|
-
value:
|
|
36312
|
+
value: _currentValue10,
|
|
36406
36313
|
requestConfig: {
|
|
36407
36314
|
filterInit: 'qp-brandCode-in'
|
|
36408
36315
|
},
|
|
@@ -36593,8 +36500,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36593
36500
|
}
|
|
36594
36501
|
}));
|
|
36595
36502
|
} else {
|
|
36596
|
-
var
|
|
36597
|
-
var
|
|
36503
|
+
var _values12;
|
|
36504
|
+
var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
36598
36505
|
return {
|
|
36599
36506
|
key: s,
|
|
36600
36507
|
label: valueNames[vIndex]
|
|
@@ -36622,7 +36529,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36622
36529
|
isSearchForm: true,
|
|
36623
36530
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36624
36531
|
disabled: disabled,
|
|
36625
|
-
value:
|
|
36532
|
+
value: _currentValue11,
|
|
36626
36533
|
onChange: function onChange(value, sourceList) {
|
|
36627
36534
|
if (dataInputBusinessType === 12) {
|
|
36628
36535
|
var _value$map3, _sourceList$filter3;
|
|
@@ -36942,9 +36849,9 @@ var App$1 = function App(_ref) {
|
|
|
36942
36849
|
UpdateState(res);
|
|
36943
36850
|
};
|
|
36944
36851
|
var _useState9 = React$1.useState(false),
|
|
36945
|
-
|
|
36946
|
-
isModalVisible =
|
|
36947
|
-
setIsModalVisible =
|
|
36852
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
36853
|
+
isModalVisible = _useState0[0],
|
|
36854
|
+
setIsModalVisible = _useState0[1];
|
|
36948
36855
|
var showModal = function showModal() {
|
|
36949
36856
|
setIsModalVisible(true);
|
|
36950
36857
|
};
|
|
@@ -37425,27 +37332,26 @@ function RenderCompItem(props) {
|
|
|
37425
37332
|
dictData = _useState2[0],
|
|
37426
37333
|
setDictData = _useState2[1];
|
|
37427
37334
|
var getDictData = /*#__PURE__*/function () {
|
|
37428
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
37335
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
37429
37336
|
var _data$map;
|
|
37430
37337
|
var data;
|
|
37431
|
-
return
|
|
37432
|
-
while (1) switch (_context.
|
|
37338
|
+
return _regenerator().w(function (_context) {
|
|
37339
|
+
while (1) switch (_context.n) {
|
|
37433
37340
|
case 0:
|
|
37434
|
-
_context.
|
|
37341
|
+
_context.n = 1;
|
|
37435
37342
|
return bssula.request({
|
|
37436
37343
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
37437
37344
|
});
|
|
37438
|
-
case
|
|
37439
|
-
data = _context.
|
|
37345
|
+
case 1:
|
|
37346
|
+
data = _context.v;
|
|
37440
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) {
|
|
37441
37348
|
return {
|
|
37442
37349
|
text: item.dictItemName,
|
|
37443
37350
|
value: item.dictItemCode
|
|
37444
37351
|
};
|
|
37445
37352
|
}));
|
|
37446
|
-
case
|
|
37447
|
-
|
|
37448
|
-
return _context.stop();
|
|
37353
|
+
case 2:
|
|
37354
|
+
return _context.a(2);
|
|
37449
37355
|
}
|
|
37450
37356
|
}, _callee);
|
|
37451
37357
|
}));
|
|
@@ -37686,11 +37592,11 @@ function RenderCompItem(props) {
|
|
|
37686
37592
|
needNameAndCode: true,
|
|
37687
37593
|
notChangeOnSelect: true,
|
|
37688
37594
|
initRequestSource: function () {
|
|
37689
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
37690
|
-
return
|
|
37691
|
-
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) {
|
|
37692
37598
|
case 0:
|
|
37693
|
-
_context2.
|
|
37599
|
+
_context2.n = 1;
|
|
37694
37600
|
return bssula.request({
|
|
37695
37601
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
37696
37602
|
method: 'get',
|
|
@@ -37708,11 +37614,8 @@ function RenderCompItem(props) {
|
|
|
37708
37614
|
return handleData;
|
|
37709
37615
|
}
|
|
37710
37616
|
});
|
|
37711
|
-
case
|
|
37712
|
-
return _context2.
|
|
37713
|
-
case 3:
|
|
37714
|
-
case "end":
|
|
37715
|
-
return _context2.stop();
|
|
37617
|
+
case 1:
|
|
37618
|
+
return _context2.a(2, _context2.v);
|
|
37716
37619
|
}
|
|
37717
37620
|
}, _callee2);
|
|
37718
37621
|
}));
|
|
@@ -38502,7 +38405,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
38502
38405
|
display: 'flex',
|
|
38503
38406
|
marginBottom: '0px',
|
|
38504
38407
|
padding: '10px 0px'
|
|
38505
|
-
}
|
|
38408
|
+
},
|
|
38409
|
+
key: itemDetail.elementId
|
|
38506
38410
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
38507
38411
|
className: 'logical_operate_content',
|
|
38508
38412
|
style: {
|
|
@@ -39762,13 +39666,13 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
39762
39666
|
ruleTypeData = _useState8[0],
|
|
39763
39667
|
setRuleTypeData = _useState8[1];
|
|
39764
39668
|
var _useState9 = React$1.useState([]),
|
|
39765
|
-
|
|
39766
|
-
ruleReturnConfig =
|
|
39767
|
-
setRuleReturnConfig =
|
|
39768
|
-
var
|
|
39769
|
-
|
|
39770
|
-
templateData =
|
|
39771
|
-
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];
|
|
39772
39676
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
39773
39677
|
bssula.request({
|
|
39774
39678
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -40104,25 +40008,25 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
40104
40008
|
regularDataList = _useState8[0],
|
|
40105
40009
|
setRegularDataList = _useState8[1];
|
|
40106
40010
|
var _useState9 = React$1.useState([]),
|
|
40107
|
-
|
|
40108
|
-
baseRuleDetailList =
|
|
40109
|
-
setBaseRuleDetailList =
|
|
40110
|
-
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),
|
|
40111
40019
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
40112
|
-
|
|
40113
|
-
|
|
40020
|
+
isGetDefRuleDataRes = _useState12[0],
|
|
40021
|
+
setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
40114
40022
|
var _useState13 = React$1.useState(false),
|
|
40115
40023
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
40116
|
-
|
|
40117
|
-
|
|
40024
|
+
isGetRuleDataRes = _useState14[0],
|
|
40025
|
+
setIsGetRuleDataRes = _useState14[1];
|
|
40118
40026
|
var _useState15 = React$1.useState(false),
|
|
40119
40027
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
40120
|
-
|
|
40121
|
-
|
|
40122
|
-
var _useState17 = React$1.useState(false),
|
|
40123
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
40124
|
-
groupOtherPriorityList = _useState18[0],
|
|
40125
|
-
setGroupOtherPriorityList = _useState18[1];
|
|
40028
|
+
groupOtherPriorityList = _useState16[0],
|
|
40029
|
+
setGroupOtherPriorityList = _useState16[1];
|
|
40126
40030
|
var baseRuleRef = React$1.useRef();
|
|
40127
40031
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
40128
40032
|
// 查询规则组下所有规则实例
|