@bit-sun/business-component 4.2.0-alpha.6.9 → 4.2.0-alpha.jw-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Functional/DataValidation/index.d.ts +1 -1
- package/dist/index.esm.js +879 -1110
- package/dist/index.js +879 -1110
- package/package.json +1 -1
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +2 -2
- package/src/components/Business/BsLayouts/index.tsx +2 -2
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +26 -2
- package/src/components/Functional/DataValidation/index.tsx +22 -3
package/dist/index.esm.js
CHANGED
|
@@ -188,8 +188,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
188
188
|
r,
|
|
189
189
|
i = _objectWithoutPropertiesLoose(e, t);
|
|
190
190
|
if (Object.getOwnPropertySymbols) {
|
|
191
|
-
var
|
|
192
|
-
for (r = 0; r <
|
|
191
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
192
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
193
193
|
}
|
|
194
194
|
return i;
|
|
195
195
|
}
|
|
@@ -197,7 +197,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
197
197
|
if (null == r) return {};
|
|
198
198
|
var t = {};
|
|
199
199
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
200
|
-
if (e.
|
|
200
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
201
201
|
t[n] = r[n];
|
|
202
202
|
}
|
|
203
203
|
return t;
|
|
@@ -207,306 +207,113 @@ function _possibleConstructorReturn(t, e) {
|
|
|
207
207
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
208
208
|
return _assertThisInitialized(t);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
210
|
+
function _regenerator() {
|
|
211
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
212
|
+
var e,
|
|
213
|
+
t,
|
|
214
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
215
|
+
n = r.iterator || "@@iterator",
|
|
216
|
+
o = r.toStringTag || "@@toStringTag";
|
|
217
|
+
function i(r, n, o, i) {
|
|
218
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
219
|
+
u = Object.create(c.prototype);
|
|
220
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
221
|
+
var i,
|
|
222
|
+
c,
|
|
223
|
+
u,
|
|
224
|
+
f = 0,
|
|
225
|
+
p = o || [],
|
|
226
|
+
y = !1,
|
|
227
|
+
G = {
|
|
228
|
+
p: 0,
|
|
229
|
+
n: 0,
|
|
230
|
+
v: e,
|
|
231
|
+
a: d,
|
|
232
|
+
f: d.bind(e, 4),
|
|
233
|
+
d: function (t, r) {
|
|
234
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
function d(r, n) {
|
|
238
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
239
|
+
var o,
|
|
240
|
+
i = p[t],
|
|
241
|
+
d = G.p,
|
|
242
|
+
l = i[2];
|
|
243
|
+
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));
|
|
244
|
+
}
|
|
245
|
+
if (o || r > 1) return a;
|
|
246
|
+
throw y = !0, n;
|
|
247
|
+
}
|
|
248
|
+
return function (o, p, l) {
|
|
249
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
250
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
251
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
252
|
+
try {
|
|
253
|
+
if (f = 2, i) {
|
|
254
|
+
if (c || (o = "next"), t = i[o]) {
|
|
255
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
256
|
+
if (!t.done) return t;
|
|
257
|
+
u = t.value, c < 2 && (c = 0);
|
|
258
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
259
|
+
i = e;
|
|
260
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
261
|
+
} catch (t) {
|
|
262
|
+
i = e, c = 1, u = t;
|
|
263
|
+
} finally {
|
|
264
|
+
f = 1;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
return {
|
|
268
|
+
value: t,
|
|
269
|
+
done: y
|
|
270
|
+
};
|
|
258
271
|
};
|
|
259
|
-
}
|
|
272
|
+
}(r, o, i), !0), u;
|
|
260
273
|
}
|
|
261
|
-
|
|
262
|
-
var h = "suspendedStart",
|
|
263
|
-
l = "suspendedYield",
|
|
264
|
-
f = "executing",
|
|
265
|
-
s = "completed",
|
|
266
|
-
y = {};
|
|
274
|
+
var a = {};
|
|
267
275
|
function Generator() {}
|
|
268
276
|
function GeneratorFunction() {}
|
|
269
277
|
function GeneratorFunctionPrototype() {}
|
|
270
|
-
|
|
271
|
-
|
|
278
|
+
t = Object.getPrototypeOf;
|
|
279
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
280
|
+
return this;
|
|
281
|
+
}), t),
|
|
282
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
283
|
+
function f(e) {
|
|
284
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
285
|
+
}
|
|
286
|
+
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 () {
|
|
272
287
|
return this;
|
|
273
|
-
})
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
277
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
278
|
-
function defineIteratorMethods(t) {
|
|
279
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
280
|
-
define(t, e, function (t) {
|
|
281
|
-
return this._invoke(e, t);
|
|
282
|
-
});
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
function AsyncIterator(t, e) {
|
|
286
|
-
function invoke(r, o, i, a) {
|
|
287
|
-
var c = tryCatch(t[r], t, o);
|
|
288
|
-
if ("throw" !== c.type) {
|
|
289
|
-
var u = c.arg,
|
|
290
|
-
h = u.value;
|
|
291
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
292
|
-
invoke("next", t, i, a);
|
|
293
|
-
}, function (t) {
|
|
294
|
-
invoke("throw", t, i, a);
|
|
295
|
-
}) : e.resolve(h).then(function (t) {
|
|
296
|
-
u.value = t, i(u);
|
|
297
|
-
}, function (t) {
|
|
298
|
-
return invoke("throw", t, i, a);
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
a(c.arg);
|
|
302
|
-
}
|
|
303
|
-
var r;
|
|
304
|
-
o(this, "_invoke", {
|
|
305
|
-
value: function (t, n) {
|
|
306
|
-
function callInvokeWithMethodAndArg() {
|
|
307
|
-
return new e(function (e, r) {
|
|
308
|
-
invoke(t, n, e, r);
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
312
|
-
}
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
function makeInvokeMethod(e, r, n) {
|
|
316
|
-
var o = h;
|
|
317
|
-
return function (i, a) {
|
|
318
|
-
if (o === f) throw Error("Generator is already running");
|
|
319
|
-
if (o === s) {
|
|
320
|
-
if ("throw" === i) throw a;
|
|
321
|
-
return {
|
|
322
|
-
value: t,
|
|
323
|
-
done: !0
|
|
324
|
-
};
|
|
325
|
-
}
|
|
326
|
-
for (n.method = i, n.arg = a;;) {
|
|
327
|
-
var c = n.delegate;
|
|
328
|
-
if (c) {
|
|
329
|
-
var u = maybeInvokeDelegate(c, n);
|
|
330
|
-
if (u) {
|
|
331
|
-
if (u === y) continue;
|
|
332
|
-
return u;
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
336
|
-
if (o === h) throw o = s, n.arg;
|
|
337
|
-
n.dispatchException(n.arg);
|
|
338
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
339
|
-
o = f;
|
|
340
|
-
var p = tryCatch(e, r, n);
|
|
341
|
-
if ("normal" === p.type) {
|
|
342
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
343
|
-
return {
|
|
344
|
-
value: p.arg,
|
|
345
|
-
done: n.done
|
|
346
|
-
};
|
|
347
|
-
}
|
|
348
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
349
|
-
}
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
function maybeInvokeDelegate(e, r) {
|
|
353
|
-
var n = r.method,
|
|
354
|
-
o = e.iterator[n];
|
|
355
|
-
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;
|
|
356
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
357
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
358
|
-
var a = i.arg;
|
|
359
|
-
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);
|
|
360
|
-
}
|
|
361
|
-
function pushTryEntry(t) {
|
|
362
|
-
var e = {
|
|
363
|
-
tryLoc: t[0]
|
|
364
|
-
};
|
|
365
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
366
|
-
}
|
|
367
|
-
function resetTryEntry(t) {
|
|
368
|
-
var e = t.completion || {};
|
|
369
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
370
|
-
}
|
|
371
|
-
function Context(t) {
|
|
372
|
-
this.tryEntries = [{
|
|
373
|
-
tryLoc: "root"
|
|
374
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
375
|
-
}
|
|
376
|
-
function values(e) {
|
|
377
|
-
if (e || "" === e) {
|
|
378
|
-
var r = e[a];
|
|
379
|
-
if (r) return r.call(e);
|
|
380
|
-
if ("function" == typeof e.next) return e;
|
|
381
|
-
if (!isNaN(e.length)) {
|
|
382
|
-
var o = -1,
|
|
383
|
-
i = function next() {
|
|
384
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
385
|
-
return next.value = t, next.done = !0, next;
|
|
386
|
-
};
|
|
387
|
-
return i.next = i;
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
391
|
-
}
|
|
392
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
393
|
-
value: GeneratorFunctionPrototype,
|
|
394
|
-
configurable: !0
|
|
395
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
396
|
-
value: GeneratorFunction,
|
|
397
|
-
configurable: !0
|
|
398
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
399
|
-
var e = "function" == typeof t && t.constructor;
|
|
400
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
401
|
-
}, e.mark = function (t) {
|
|
402
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
403
|
-
}, e.awrap = function (t) {
|
|
288
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
289
|
+
return "[object Generator]";
|
|
290
|
+
}), (_regenerator = function () {
|
|
404
291
|
return {
|
|
405
|
-
|
|
292
|
+
w: i,
|
|
293
|
+
m: f
|
|
406
294
|
};
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
r = [];
|
|
422
|
-
for (var n in e) r.push(n);
|
|
423
|
-
return r.reverse(), function next() {
|
|
424
|
-
for (; r.length;) {
|
|
425
|
-
var t = r.pop();
|
|
426
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
427
|
-
}
|
|
428
|
-
return next.done = !0, next;
|
|
429
|
-
};
|
|
430
|
-
}, e.values = values, Context.prototype = {
|
|
431
|
-
constructor: Context,
|
|
432
|
-
reset: function (e) {
|
|
433
|
-
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);
|
|
434
|
-
},
|
|
435
|
-
stop: function () {
|
|
436
|
-
this.done = !0;
|
|
437
|
-
var t = this.tryEntries[0].completion;
|
|
438
|
-
if ("throw" === t.type) throw t.arg;
|
|
439
|
-
return this.rval;
|
|
440
|
-
},
|
|
441
|
-
dispatchException: function (e) {
|
|
442
|
-
if (this.done) throw e;
|
|
443
|
-
var r = this;
|
|
444
|
-
function handle(n, o) {
|
|
445
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
446
|
-
}
|
|
447
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
448
|
-
var i = this.tryEntries[o],
|
|
449
|
-
a = i.completion;
|
|
450
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
451
|
-
if (i.tryLoc <= this.prev) {
|
|
452
|
-
var c = n.call(i, "catchLoc"),
|
|
453
|
-
u = n.call(i, "finallyLoc");
|
|
454
|
-
if (c && u) {
|
|
455
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
456
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
457
|
-
} else if (c) {
|
|
458
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
459
|
-
} else {
|
|
460
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
461
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
},
|
|
466
|
-
abrupt: function (t, e) {
|
|
467
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
468
|
-
var o = this.tryEntries[r];
|
|
469
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
470
|
-
var i = o;
|
|
471
|
-
break;
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
475
|
-
var a = i ? i.completion : {};
|
|
476
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
477
|
-
},
|
|
478
|
-
complete: function (t, e) {
|
|
479
|
-
if ("throw" === t.type) throw t.arg;
|
|
480
|
-
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;
|
|
481
|
-
},
|
|
482
|
-
finish: function (t) {
|
|
483
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
484
|
-
var r = this.tryEntries[e];
|
|
485
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
486
|
-
}
|
|
487
|
-
},
|
|
488
|
-
catch: function (t) {
|
|
489
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
490
|
-
var r = this.tryEntries[e];
|
|
491
|
-
if (r.tryLoc === t) {
|
|
492
|
-
var n = r.completion;
|
|
493
|
-
if ("throw" === n.type) {
|
|
494
|
-
var o = n.arg;
|
|
495
|
-
resetTryEntry(r);
|
|
496
|
-
}
|
|
497
|
-
return o;
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
throw Error("illegal catch attempt");
|
|
501
|
-
},
|
|
502
|
-
delegateYield: function (e, r, n) {
|
|
503
|
-
return this.delegate = {
|
|
504
|
-
iterator: values(e),
|
|
505
|
-
resultName: r,
|
|
506
|
-
nextLoc: n
|
|
507
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
295
|
+
})();
|
|
296
|
+
}
|
|
297
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
298
|
+
var i = Object.defineProperty;
|
|
299
|
+
try {
|
|
300
|
+
i({}, "", {});
|
|
301
|
+
} catch (e) {
|
|
302
|
+
i = 0;
|
|
303
|
+
}
|
|
304
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
305
|
+
function o(r, n) {
|
|
306
|
+
_regeneratorDefine(e, r, function (e) {
|
|
307
|
+
return this._invoke(r, n, e);
|
|
308
|
+
});
|
|
508
309
|
}
|
|
509
|
-
|
|
310
|
+
r ? i ? i(e, r, {
|
|
311
|
+
value: n,
|
|
312
|
+
enumerable: !t,
|
|
313
|
+
configurable: !t,
|
|
314
|
+
writable: !t
|
|
315
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
316
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
510
317
|
}
|
|
511
318
|
function _setPrototypeOf(t, e) {
|
|
512
319
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -1579,22 +1386,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1579
1386
|
// sheepMap是表头字段中英文映射
|
|
1580
1387
|
// sheetCount:表的数量,默认一张
|
|
1581
1388
|
var resolveFile = /*#__PURE__*/function () {
|
|
1582
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
1389
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file) {
|
|
1583
1390
|
var config,
|
|
1584
1391
|
data,
|
|
1585
1392
|
_args = arguments;
|
|
1586
|
-
return
|
|
1587
|
-
while (1) switch (_context.
|
|
1393
|
+
return _regenerator().w(function (_context) {
|
|
1394
|
+
while (1) switch (_context.n) {
|
|
1588
1395
|
case 0:
|
|
1589
1396
|
config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
|
|
1590
1397
|
sheetMap: [],
|
|
1591
1398
|
sheetCount: 1
|
|
1592
1399
|
};
|
|
1593
|
-
_context.
|
|
1400
|
+
_context.n = 1;
|
|
1594
1401
|
return analyseExcelToByte(file);
|
|
1595
|
-
case
|
|
1596
|
-
data = _context.
|
|
1597
|
-
return _context.
|
|
1402
|
+
case 1:
|
|
1403
|
+
data = _context.v;
|
|
1404
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
1598
1405
|
var workbook = read(data, {
|
|
1599
1406
|
type: 'binary'
|
|
1600
1407
|
});
|
|
@@ -1606,9 +1413,6 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1606
1413
|
var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
|
|
1607
1414
|
resolve(outdata);
|
|
1608
1415
|
}));
|
|
1609
|
-
case 5:
|
|
1610
|
-
case "end":
|
|
1611
|
-
return _context.stop();
|
|
1612
1416
|
}
|
|
1613
1417
|
}, _callee);
|
|
1614
1418
|
}));
|
|
@@ -1618,41 +1422,40 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1618
1422
|
}();
|
|
1619
1423
|
//读取文件
|
|
1620
1424
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1621
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
1425
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1622
1426
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1623
|
-
return
|
|
1624
|
-
while (1) switch (_context2.
|
|
1427
|
+
return _regenerator().w(function (_context2) {
|
|
1428
|
+
while (1) switch (_context2.n) {
|
|
1625
1429
|
case 0:
|
|
1626
1430
|
_ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
|
|
1627
1431
|
if (!(Array.isArray(fileList) && fileList.length > 0)) {
|
|
1628
|
-
_context2.
|
|
1432
|
+
_context2.n = 3;
|
|
1629
1433
|
break;
|
|
1630
1434
|
}
|
|
1631
1435
|
nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
|
|
1632
|
-
_context2.
|
|
1436
|
+
_context2.n = 1;
|
|
1633
1437
|
return resolveFile(nowFile.originFileObj, {
|
|
1634
1438
|
sheetMap: fieldMappingReverse(sheetMap),
|
|
1635
1439
|
sheetCount: 1
|
|
1636
1440
|
});
|
|
1637
|
-
case
|
|
1638
|
-
data2 = _context2.
|
|
1441
|
+
case 1:
|
|
1442
|
+
data2 = _context2.v;
|
|
1639
1443
|
data = data2[0];
|
|
1640
1444
|
if (data.length) {
|
|
1641
|
-
_context2.
|
|
1445
|
+
_context2.n = 2;
|
|
1642
1446
|
break;
|
|
1643
1447
|
}
|
|
1644
1448
|
message$1.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
|
|
1645
|
-
return _context2.
|
|
1646
|
-
case
|
|
1449
|
+
return _context2.a(2);
|
|
1450
|
+
case 2:
|
|
1647
1451
|
if (callback) callback(data);
|
|
1648
1452
|
!callback && message$1.success("\u5BFC\u5165\u6210\u529F");
|
|
1649
|
-
return _context2.
|
|
1650
|
-
case
|
|
1453
|
+
return _context2.a(2, data);
|
|
1454
|
+
case 3:
|
|
1651
1455
|
message$1.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
|
|
1652
|
-
return _context2.
|
|
1653
|
-
case
|
|
1654
|
-
|
|
1655
|
-
return _context2.stop();
|
|
1456
|
+
return _context2.a(2);
|
|
1457
|
+
case 4:
|
|
1458
|
+
return _context2.a(2);
|
|
1656
1459
|
}
|
|
1657
1460
|
}, _callee2);
|
|
1658
1461
|
}));
|
|
@@ -2604,17 +2407,14 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2604
2407
|
return request$1(url, parms).then(handleResponseData);
|
|
2605
2408
|
};
|
|
2606
2409
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2607
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
2608
|
-
return
|
|
2609
|
-
while (1) switch (_context.
|
|
2410
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
|
|
2411
|
+
return _regenerator().w(function (_context) {
|
|
2412
|
+
while (1) switch (_context.n) {
|
|
2610
2413
|
case 0:
|
|
2611
|
-
return _context.
|
|
2414
|
+
return _context.a(2, Promise.resolve({
|
|
2612
2415
|
data: response,
|
|
2613
2416
|
status: response.status
|
|
2614
2417
|
}));
|
|
2615
|
-
case 1:
|
|
2616
|
-
case "end":
|
|
2617
|
-
return _context.stop();
|
|
2618
2418
|
}
|
|
2619
2419
|
}, _callee);
|
|
2620
2420
|
}));
|
|
@@ -2987,88 +2787,108 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2987
2787
|
data: luckysheet.transToCellData(newData)
|
|
2988
2788
|
});
|
|
2989
2789
|
};
|
|
2990
|
-
_this.resetData = function () {
|
|
2790
|
+
_this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
2991
2791
|
var _customerColumnsMappi;
|
|
2992
|
-
var _this$props
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt,
|
|
3000
|
-
customerColumnsMapping = _this$props.customerColumnsMapping;
|
|
3001
|
-
var resultData = _this.getData().filter(function (d) {
|
|
3002
|
-
return _.compact(Object.values(d)).length;
|
|
3003
|
-
});
|
|
3004
|
-
var resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
|
|
3005
|
-
return !!(c === null || c === void 0 ? void 0 : c.name);
|
|
3006
|
-
})) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
|
|
3007
|
-
return c.name;
|
|
3008
|
-
}) : columns;
|
|
3009
|
-
// 处理业务参数
|
|
3010
|
-
var otherParams = {};
|
|
3011
|
-
if (isBrandAuth) {
|
|
3012
|
-
otherParams = {
|
|
3013
|
-
brandAuth: 'ctl-withAuth'
|
|
3014
|
-
};
|
|
3015
|
-
}
|
|
3016
|
-
requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
|
|
3017
|
-
columns: resultColumns,
|
|
3018
|
-
data: resultData,
|
|
3019
|
-
checkStockNum: isCheckStockNum
|
|
3020
|
-
})).then(function (result) {
|
|
3021
|
-
result = result.data;
|
|
3022
|
-
if (judgeIsRequestError(result)) {
|
|
3023
|
-
message$1.error(result.msg);
|
|
3024
|
-
return;
|
|
3025
|
-
}
|
|
3026
|
-
var items = _this.state.items;
|
|
3027
|
-
var validIndex = items.length;
|
|
3028
|
-
var res = result.data;
|
|
3029
|
-
var sheetData = luckysheet.getSheetData();
|
|
3030
|
-
sheetData.map(function (item, index) {
|
|
3031
|
-
if (!res[index]) return item;
|
|
3032
|
-
var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
|
|
3033
|
-
return i === 'skuCode';
|
|
3034
|
-
});
|
|
3035
|
-
if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
|
|
3036
|
-
return i === 'skuCode';
|
|
3037
|
-
})) && item[changeVMIndex].v !== res[index].skuCode) {
|
|
3038
|
-
item[changeVMIndex].v = res[index].skuCode;
|
|
3039
|
-
item[changeVMIndex].m = res[index].skuCode;
|
|
3040
|
-
}
|
|
3041
|
-
if (res[index].flag) {
|
|
3042
|
-
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
3043
|
-
v: '通过',
|
|
3044
|
-
m: '通过',
|
|
3045
|
-
fc: 'green' //字体颜色为 "#990000"
|
|
3046
|
-
});
|
|
3047
|
-
} else {
|
|
3048
|
-
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
3049
|
-
v: res[index].checkResults,
|
|
3050
|
-
m: res[index].checkResults,
|
|
3051
|
-
fc: 'red' //字体颜色为 "#990000"
|
|
2792
|
+
var _this$props, validDataUrl, validDataParams, updateData, columns, isBrandAuth, _this$props$isCheckSt, isCheckStockNum, customerColumnsMapping, checkSharedValue, beforeCheckCallback, resultData, resultColumns, otherParams;
|
|
2793
|
+
return _regenerator().w(function (_context) {
|
|
2794
|
+
while (1) switch (_context.n) {
|
|
2795
|
+
case 0:
|
|
2796
|
+
_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;
|
|
2797
|
+
resultData = _this.getData().filter(function (d) {
|
|
2798
|
+
return _.compact(Object.values(d)).length;
|
|
3052
2799
|
});
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
2800
|
+
resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
|
|
2801
|
+
return !!(c === null || c === void 0 ? void 0 : c.name);
|
|
2802
|
+
})) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
|
|
2803
|
+
return c.name;
|
|
2804
|
+
}) : columns; // 处理业务参数
|
|
2805
|
+
otherParams = {};
|
|
2806
|
+
if (isBrandAuth) {
|
|
2807
|
+
otherParams = {
|
|
2808
|
+
brandAuth: 'ctl-withAuth'
|
|
2809
|
+
};
|
|
2810
|
+
}
|
|
2811
|
+
// 处理校验参数,隐藏校验参数(公用的部分)
|
|
2812
|
+
if (checkSharedValue) {
|
|
2813
|
+
resultData = resultData.map(function (d) {
|
|
2814
|
+
return _objectSpread2(_objectSpread2({}, d), checkSharedValue);
|
|
2815
|
+
});
|
|
2816
|
+
}
|
|
2817
|
+
// 调用回调函数
|
|
2818
|
+
if (!beforeCheckCallback) {
|
|
2819
|
+
_context.n = 2;
|
|
2820
|
+
break;
|
|
2821
|
+
}
|
|
2822
|
+
_context.n = 1;
|
|
2823
|
+
return beforeCheckCallback(resultData);
|
|
2824
|
+
case 1:
|
|
2825
|
+
resultData = _context.v;
|
|
2826
|
+
if (resultData) {
|
|
2827
|
+
_context.n = 2;
|
|
2828
|
+
break;
|
|
2829
|
+
}
|
|
2830
|
+
return _context.a(2);
|
|
2831
|
+
case 2:
|
|
2832
|
+
requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
|
|
2833
|
+
columns: resultColumns,
|
|
2834
|
+
data: resultData,
|
|
2835
|
+
checkStockNum: isCheckStockNum
|
|
2836
|
+
})).then(function (result) {
|
|
2837
|
+
result = result.data;
|
|
2838
|
+
if (judgeIsRequestError(result)) {
|
|
2839
|
+
message$1.error(result.msg);
|
|
2840
|
+
return;
|
|
2841
|
+
}
|
|
2842
|
+
var items = _this.state.items;
|
|
2843
|
+
var validIndex = items.length;
|
|
2844
|
+
var res = result.data;
|
|
2845
|
+
var sheetData = luckysheet.getSheetData();
|
|
2846
|
+
sheetData.map(function (item, index) {
|
|
2847
|
+
if (!res[index]) return item;
|
|
2848
|
+
var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
|
|
2849
|
+
return i === 'skuCode';
|
|
2850
|
+
});
|
|
2851
|
+
if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
|
|
2852
|
+
return i === 'skuCode';
|
|
2853
|
+
})) && item[changeVMIndex].v !== res[index].skuCode) {
|
|
2854
|
+
item[changeVMIndex].v = res[index].skuCode;
|
|
2855
|
+
item[changeVMIndex].m = res[index].skuCode;
|
|
2856
|
+
}
|
|
2857
|
+
if (res[index].flag) {
|
|
2858
|
+
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
2859
|
+
v: '通过',
|
|
2860
|
+
m: '通过',
|
|
2861
|
+
fc: 'green' //字体颜色为 "#990000"
|
|
2862
|
+
});
|
|
2863
|
+
} else {
|
|
2864
|
+
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
2865
|
+
v: res[index].checkResults,
|
|
2866
|
+
m: res[index].checkResults,
|
|
2867
|
+
fc: 'red' //字体颜色为 "#990000"
|
|
2868
|
+
});
|
|
2869
|
+
}
|
|
2870
|
+
item[validIndex].ct = {
|
|
2871
|
+
fa: 'General',
|
|
2872
|
+
t: 'g'
|
|
2873
|
+
};
|
|
2874
|
+
});
|
|
2875
|
+
// sheetData.map((item, index) => {
|
|
2876
|
+
// luckysheet.setCellValue(index + 1, 4, 345)
|
|
2877
|
+
// })
|
|
2878
|
+
luckysheet.create(_this.setConfig(luckysheet.transToCellData(sheetData)));
|
|
2879
|
+
_this.setState({
|
|
2880
|
+
data: luckysheet.transToCellData(sheetData),
|
|
2881
|
+
errorListCheck: false,
|
|
2882
|
+
resultData: res
|
|
2883
|
+
});
|
|
2884
|
+
console.log(setExportData);
|
|
2885
|
+
setExportData([123123]);
|
|
2886
|
+
}).catch(function (err) {});
|
|
2887
|
+
case 3:
|
|
2888
|
+
return _context.a(2);
|
|
2889
|
+
}
|
|
2890
|
+
}, _callee);
|
|
2891
|
+
}));
|
|
3072
2892
|
_this.filterData = function (type) {
|
|
3073
2893
|
var _this$state = _this.state,
|
|
3074
2894
|
showErrorData = _this$state.showErrorData,
|
|
@@ -3225,8 +3045,8 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3225
3045
|
if (!(res === null || res === void 0 ? void 0 : res[index])) return item;
|
|
3226
3046
|
var rowItem = res[index];
|
|
3227
3047
|
item === null || item === void 0 ? void 0 : item.forEach(function (element, colIndex) {
|
|
3228
|
-
var
|
|
3229
|
-
var colKey = (
|
|
3048
|
+
var _ref5;
|
|
3049
|
+
var colKey = (_ref5 = Object.keys(rowItem) || []) === null || _ref5 === void 0 ? void 0 : _ref5[colIndex];
|
|
3230
3050
|
if (!(rowItem === null || rowItem === void 0 ? void 0 : rowItem[colKey])) return element;
|
|
3231
3051
|
element.m = rowItem[colKey];
|
|
3232
3052
|
element.v = rowItem[colKey];
|
|
@@ -3302,10 +3122,10 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3302
3122
|
notExcelImport = _this$props6.notExcelImport,
|
|
3303
3123
|
excelImportConfig = _this$props6.excelImportConfig,
|
|
3304
3124
|
getTemplate = _this$props6.getTemplate;
|
|
3305
|
-
var
|
|
3306
|
-
size =
|
|
3307
|
-
accept =
|
|
3308
|
-
suffixRule =
|
|
3125
|
+
var _ref6 = excelImportConfig || {},
|
|
3126
|
+
size = _ref6.size,
|
|
3127
|
+
accept = _ref6.accept,
|
|
3128
|
+
suffixRule = _ref6.suffixRule;
|
|
3309
3129
|
var totalSummary = this.getCount();
|
|
3310
3130
|
var sheetMap = this.getSheetMap();
|
|
3311
3131
|
var callBackFun = this.importExcelToLuckySheet;
|
|
@@ -3331,9 +3151,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3331
3151
|
var _Object$keys;
|
|
3332
3152
|
if (!(sheetMap && ((_Object$keys = Object.keys(sheetMap)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length))) return;
|
|
3333
3153
|
if (info.file.status !== 'uploading') {
|
|
3334
|
-
var
|
|
3335
|
-
file =
|
|
3336
|
-
fileList =
|
|
3154
|
+
var _ref7 = info || {},
|
|
3155
|
+
file = _ref7.file,
|
|
3156
|
+
fileList = _ref7.fileList;
|
|
3337
3157
|
readerXlsxToList(file, fileList, null, null, {
|
|
3338
3158
|
callback: function callback(excelData) {
|
|
3339
3159
|
callBackFun(excelData);
|
|
@@ -4757,27 +4577,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4757
4577
|
popvalue = _useState8[0],
|
|
4758
4578
|
setPopValue = _useState8[1];
|
|
4759
4579
|
var _useState9 = useState([]),
|
|
4760
|
-
|
|
4761
|
-
source =
|
|
4762
|
-
setSource =
|
|
4580
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
4581
|
+
source = _useState0[0],
|
|
4582
|
+
setSource = _useState0[1];
|
|
4763
4583
|
var _useDebounceFn = useDebounceFn(function () {
|
|
4764
4584
|
getData();
|
|
4765
4585
|
}, {
|
|
4766
4586
|
wait: 1000
|
|
4767
4587
|
}),
|
|
4768
4588
|
run = _useDebounceFn.run;
|
|
4769
|
-
var
|
|
4589
|
+
var _useState1 = useState(false),
|
|
4590
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
4591
|
+
fetching = _useState10[0],
|
|
4592
|
+
setFetching = _useState10[1];
|
|
4593
|
+
var _useState11 = useState(''),
|
|
4770
4594
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
var _useState13 = useState(
|
|
4595
|
+
searchValue = _useState12[0],
|
|
4596
|
+
setSearchValue = _useState12[1];
|
|
4597
|
+
var _useState13 = useState(resultSourceKey),
|
|
4774
4598
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
var _useState15 = useState(resultSourceKey),
|
|
4778
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
4779
|
-
uniqueValue = _useState16[0],
|
|
4780
|
-
setUniqueValue = _useState16[1];
|
|
4599
|
+
uniqueValue = _useState14[0],
|
|
4600
|
+
setUniqueValue = _useState14[1];
|
|
4781
4601
|
useEffect(function () {
|
|
4782
4602
|
setPopValue(value);
|
|
4783
4603
|
onValueChange(value);
|
|
@@ -5194,21 +5014,21 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5194
5014
|
notCommonProperty = _useState8[0],
|
|
5195
5015
|
setNotCommonProperty = _useState8[1];
|
|
5196
5016
|
var _useState9 = useState(false),
|
|
5197
|
-
|
|
5198
|
-
visible =
|
|
5199
|
-
setVisible =
|
|
5200
|
-
var
|
|
5017
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5018
|
+
visible = _useState0[0],
|
|
5019
|
+
setVisible = _useState0[1];
|
|
5020
|
+
var _useState1 = useState(false),
|
|
5021
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5022
|
+
showNotCommon = _useState10[0],
|
|
5023
|
+
setShowNotCommon = _useState10[1]; // 是否展示非常用属性
|
|
5024
|
+
var _useState11 = useState([]),
|
|
5201
5025
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
var _useState13 = useState(
|
|
5026
|
+
classifyOptionList = _useState12[0],
|
|
5027
|
+
setClassifyOptionList = _useState12[1];
|
|
5028
|
+
var _useState13 = useState('1'),
|
|
5205
5029
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
var _useState15 = useState('1'),
|
|
5209
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
5210
|
-
listKey = _useState16[0],
|
|
5211
|
-
setListKey = _useState16[1];
|
|
5030
|
+
listKey = _useState14[0],
|
|
5031
|
+
setListKey = _useState14[1];
|
|
5212
5032
|
useEffect(function () {
|
|
5213
5033
|
requestUtil({
|
|
5214
5034
|
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
@@ -5591,29 +5411,29 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5591
5411
|
scrollPage = _useState8[0],
|
|
5592
5412
|
setScrollPage = _useState8[1];
|
|
5593
5413
|
var _useState9 = useState(0),
|
|
5594
|
-
|
|
5595
|
-
itemsTotal =
|
|
5596
|
-
setItemsTotal =
|
|
5597
|
-
var
|
|
5414
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5415
|
+
itemsTotal = _useState0[0],
|
|
5416
|
+
setItemsTotal = _useState0[1];
|
|
5417
|
+
var _useState1 = useState(false),
|
|
5418
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5419
|
+
fetching = _useState10[0],
|
|
5420
|
+
setFetching = _useState10[1];
|
|
5421
|
+
var _useState11 = useState(''),
|
|
5598
5422
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
var _useState13 = useState(
|
|
5423
|
+
searchValue = _useState12[0],
|
|
5424
|
+
setSearchValue = _useState12[1];
|
|
5425
|
+
var _useState13 = useState(false),
|
|
5602
5426
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
var _useState15 = useState(
|
|
5427
|
+
isModalVisible = _useState14[0],
|
|
5428
|
+
setIsModalVisible = _useState14[1];
|
|
5429
|
+
var _useState15 = useState(initVal),
|
|
5606
5430
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
var _useState17 = useState(
|
|
5431
|
+
popvalue = _useState16[0],
|
|
5432
|
+
setPopValue = _useState16[1];
|
|
5433
|
+
var _useState17 = useState(resultSourceKey),
|
|
5610
5434
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
var _useState19 = useState(resultSourceKey),
|
|
5614
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5615
|
-
uniqueValue = _useState20[0],
|
|
5616
|
-
setUniqueValue = _useState20[1];
|
|
5435
|
+
uniqueValue = _useState18[0],
|
|
5436
|
+
setUniqueValue = _useState18[1];
|
|
5617
5437
|
var _useDebounceFn = useDebounceFn(function (v) {
|
|
5618
5438
|
// 优化搜索参数 支持传多个
|
|
5619
5439
|
var searchParams = {};
|
|
@@ -5642,58 +5462,58 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5642
5462
|
var _Form$useForm = Form.useForm(),
|
|
5643
5463
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5644
5464
|
form = _Form$useForm2[0];
|
|
5465
|
+
var _useState19 = useState(true),
|
|
5466
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5467
|
+
collapsed = _useState20[0],
|
|
5468
|
+
setCollapsed = _useState20[1];
|
|
5645
5469
|
var _useState21 = useState(true),
|
|
5646
5470
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
var _useState23 = useState(
|
|
5471
|
+
caretLeftFlag = _useState22[0],
|
|
5472
|
+
setCaretLeftFlag = _useState22[1];
|
|
5473
|
+
var _useState23 = useState([]),
|
|
5650
5474
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
var _useState25 = useState(
|
|
5475
|
+
tableData = _useState24[0],
|
|
5476
|
+
setTableData = _useState24[1];
|
|
5477
|
+
var _useState25 = useState(tableInitPagination),
|
|
5654
5478
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
var _useState27 = useState(
|
|
5479
|
+
tablePagination = _useState26[0],
|
|
5480
|
+
setTablePagination = _useState26[1];
|
|
5481
|
+
var _useState27 = useState([]),
|
|
5658
5482
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5659
|
-
|
|
5660
|
-
|
|
5483
|
+
selectedRowKeys = _useState28[0],
|
|
5484
|
+
setSelectedRowKeys = _useState28[1];
|
|
5661
5485
|
var _useState29 = useState([]),
|
|
5662
5486
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
var _useState31 = useState(
|
|
5487
|
+
selectedRows = _useState30[0],
|
|
5488
|
+
setSelectedRows = _useState30[1];
|
|
5489
|
+
var _useState31 = useState(false),
|
|
5666
5490
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5667
|
-
|
|
5668
|
-
|
|
5491
|
+
checkedAll = _useState32[0],
|
|
5492
|
+
setCheckedAll = _useState32[1];
|
|
5669
5493
|
var _useState33 = useState(false),
|
|
5670
5494
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
var _useState35 = useState(
|
|
5495
|
+
indeterminate = _useState34[0],
|
|
5496
|
+
setIndeterminate = _useState34[1];
|
|
5497
|
+
var _useState35 = useState({}),
|
|
5674
5498
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
var _useState37 = useState(
|
|
5499
|
+
tableFormParams = _useState36[0],
|
|
5500
|
+
setTableFormParams = _useState36[1];
|
|
5501
|
+
var _useState37 = useState(false),
|
|
5678
5502
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
var _useState39 = useState(
|
|
5503
|
+
tooltipVisible = _useState38[0],
|
|
5504
|
+
setTooltipVisible = _useState38[1];
|
|
5505
|
+
var _useState39 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5682
5506
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
var _useState41 = useState(
|
|
5507
|
+
tableShowColumns = _useState40[0],
|
|
5508
|
+
setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5509
|
+
var _useState41 = useState(false),
|
|
5686
5510
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5687
|
-
|
|
5688
|
-
|
|
5511
|
+
confirmLoading = _useState42[0],
|
|
5512
|
+
setConfirmLoading = _useState42[1];
|
|
5689
5513
|
var _useState43 = useState(false),
|
|
5690
5514
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
var _useState45 = useState(false),
|
|
5694
|
-
_useState46 = _slicedToArray(_useState45, 2),
|
|
5695
|
-
modalSearched = _useState46[0],
|
|
5696
|
-
setModalSearched = _useState46[1];
|
|
5515
|
+
modalSearched = _useState44[0],
|
|
5516
|
+
setModalSearched = _useState44[1];
|
|
5697
5517
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5698
5518
|
setItems(list);
|
|
5699
5519
|
setItemsTotal(total);
|
|
@@ -6170,7 +5990,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6170
5990
|
})) || [];
|
|
6171
5991
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
6172
5992
|
return searchList.map(function (i, index) {
|
|
6173
|
-
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$
|
|
5993
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field10, _i$field12, _i$field13;
|
|
6174
5994
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
|
|
6175
5995
|
span: ColSpan,
|
|
6176
5996
|
key: i
|
|
@@ -6268,7 +6088,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6268
6088
|
disabled: setDisabled(i.name)
|
|
6269
6089
|
}))));
|
|
6270
6090
|
}
|
|
6271
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6091
|
+
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') {
|
|
6272
6092
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6273
6093
|
span: ColSpan,
|
|
6274
6094
|
key: i.name
|
|
@@ -6282,7 +6102,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6282
6102
|
}
|
|
6283
6103
|
})));
|
|
6284
6104
|
}
|
|
6285
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6105
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'proppertySelector') {
|
|
6286
6106
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6287
6107
|
span: ColSpan,
|
|
6288
6108
|
key: i.name
|
|
@@ -6292,8 +6112,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6292
6112
|
key: i.name
|
|
6293
6113
|
}, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
|
|
6294
6114
|
}
|
|
6295
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6296
|
-
var _i$
|
|
6115
|
+
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') {
|
|
6116
|
+
var _i$field11;
|
|
6297
6117
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6298
6118
|
span: ColSpan,
|
|
6299
6119
|
key: i.name
|
|
@@ -6306,9 +6126,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6306
6126
|
width: '100%'
|
|
6307
6127
|
},
|
|
6308
6128
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6309
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6129
|
+
}, i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.props))));
|
|
6310
6130
|
}
|
|
6311
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6131
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
|
|
6312
6132
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6313
6133
|
span: ColSpan,
|
|
6314
6134
|
key: i.name
|
|
@@ -6337,7 +6157,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6337
6157
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6338
6158
|
allowClear: true,
|
|
6339
6159
|
maxLength: 100
|
|
6340
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6160
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
|
|
6341
6161
|
disabled: setDisabled(i.name)
|
|
6342
6162
|
}))));
|
|
6343
6163
|
});
|
|
@@ -7657,135 +7477,132 @@ var AddSelect = function AddSelect(props) {
|
|
|
7657
7477
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7658
7478
|
form = _Form$useForm2[0];
|
|
7659
7479
|
var _useState9 = useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7660
|
-
|
|
7661
|
-
tableSearchForm =
|
|
7662
|
-
setTableSearchForm =
|
|
7663
|
-
var
|
|
7480
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
7481
|
+
tableSearchForm = _useState0[0],
|
|
7482
|
+
setTableSearchForm = _useState0[1];
|
|
7483
|
+
var _useState1 = useState(true),
|
|
7484
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
7485
|
+
caretLeftFlag = _useState10[0],
|
|
7486
|
+
setCaretLeftFlag = _useState10[1];
|
|
7487
|
+
var _useState11 = useState([]),
|
|
7664
7488
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
var _useState13 = useState(
|
|
7668
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
7669
|
-
tableData = _useState14[0],
|
|
7670
|
-
setTableData = _useState14[1];
|
|
7671
|
-
var _useState15 = useState(_objectSpread2({
|
|
7489
|
+
tableData = _useState12[0],
|
|
7490
|
+
setTableData = _useState12[1];
|
|
7491
|
+
var _useState13 = useState(_objectSpread2({
|
|
7672
7492
|
total: 0,
|
|
7673
7493
|
size: "small",
|
|
7674
7494
|
current: 1,
|
|
7675
7495
|
pageSize: tableInitPageSize
|
|
7676
7496
|
}, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
|
|
7497
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
7498
|
+
tablePagination = _useState14[0],
|
|
7499
|
+
setTablePagination = _useState14[1];
|
|
7500
|
+
var _useState15 = useState([]),
|
|
7677
7501
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
var _useState17 = useState(
|
|
7502
|
+
selectedRowKeys = _useState16[0],
|
|
7503
|
+
setSelectedRowKeys = _useState16[1];
|
|
7504
|
+
var _useState17 = useState({}),
|
|
7681
7505
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
var _useState19 = useState(
|
|
7506
|
+
tableFormParams = _useState18[0],
|
|
7507
|
+
setTableFormParams = _useState18[1];
|
|
7508
|
+
var _useState19 = useState(false),
|
|
7685
7509
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7686
|
-
|
|
7687
|
-
|
|
7510
|
+
confirmLoading = _useState20[0],
|
|
7511
|
+
setConfirmLoading = _useState20[1];
|
|
7688
7512
|
var _useState21 = useState(false),
|
|
7689
7513
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
var _useState23 = useState(
|
|
7514
|
+
confirmContinueLoading = _useState22[0],
|
|
7515
|
+
setConfirmContinueLoading = _useState22[1];
|
|
7516
|
+
var _useState23 = useState([]),
|
|
7693
7517
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7694
|
-
|
|
7695
|
-
|
|
7518
|
+
selectColumns = _useState24[0],
|
|
7519
|
+
setSelectColumns = _useState24[1];
|
|
7696
7520
|
var _useState25 = useState([]),
|
|
7697
7521
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7698
|
-
|
|
7699
|
-
|
|
7522
|
+
showColumns = _useState26[0],
|
|
7523
|
+
setShowColumns = _useState26[1];
|
|
7700
7524
|
var _useState27 = useState([]),
|
|
7701
7525
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7702
|
-
|
|
7703
|
-
|
|
7526
|
+
tableColumns = _useState28[0],
|
|
7527
|
+
setTableColumns = _useState28[1];
|
|
7704
7528
|
var _useState29 = useState([]),
|
|
7705
7529
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
var _useState31 = useState([]),
|
|
7709
|
-
_useState32 = _slicedToArray(_useState31, 2),
|
|
7710
|
-
showToChooseColumns = _useState32[0],
|
|
7711
|
-
setShowToChooseColumns = _useState32[1];
|
|
7530
|
+
showToChooseColumns = _useState30[0],
|
|
7531
|
+
setShowToChooseColumns = _useState30[1];
|
|
7712
7532
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7713
7533
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7714
7534
|
// FIXME: 特殊业务逻辑
|
|
7715
7535
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7716
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7717
|
-
var result;
|
|
7718
|
-
return
|
|
7719
|
-
while (1) switch (_context.
|
|
7536
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7537
|
+
var result, _t;
|
|
7538
|
+
return _regenerator().w(function (_context) {
|
|
7539
|
+
while (1) switch (_context.p = _context.n) {
|
|
7720
7540
|
case 0:
|
|
7721
7541
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7722
7542
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7723
7543
|
}))) {
|
|
7724
|
-
_context.
|
|
7544
|
+
_context.n = 1;
|
|
7725
7545
|
break;
|
|
7726
7546
|
}
|
|
7727
7547
|
message$1.warning('相同skc配码不可设置相同哦');
|
|
7728
|
-
return _context.
|
|
7729
|
-
case
|
|
7548
|
+
return _context.a(2, false);
|
|
7549
|
+
case 1:
|
|
7730
7550
|
if (!(bType == 'spu')) {
|
|
7731
|
-
_context.
|
|
7551
|
+
_context.n = 9;
|
|
7732
7552
|
break;
|
|
7733
7553
|
}
|
|
7734
7554
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7735
7555
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7736
7556
|
}))) {
|
|
7737
|
-
_context.
|
|
7557
|
+
_context.n = 2;
|
|
7738
7558
|
break;
|
|
7739
7559
|
}
|
|
7740
7560
|
message$1.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7741
|
-
return _context.
|
|
7742
|
-
case
|
|
7561
|
+
return _context.a(2, false);
|
|
7562
|
+
case 2:
|
|
7743
7563
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7744
|
-
_context.
|
|
7564
|
+
_context.n = 3;
|
|
7745
7565
|
break;
|
|
7746
7566
|
}
|
|
7747
7567
|
message$1.warning('请先选择颜色!');
|
|
7748
|
-
return _context.
|
|
7749
|
-
case
|
|
7568
|
+
return _context.a(2, false);
|
|
7569
|
+
case 3:
|
|
7750
7570
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7751
7571
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7752
7572
|
}))) {
|
|
7753
|
-
_context.
|
|
7573
|
+
_context.n = 4;
|
|
7754
7574
|
break;
|
|
7755
7575
|
}
|
|
7756
7576
|
message$1.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7757
|
-
return _context.
|
|
7758
|
-
case
|
|
7577
|
+
return _context.a(2, false);
|
|
7578
|
+
case 4:
|
|
7759
7579
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7760
|
-
_context.
|
|
7580
|
+
_context.n = 9;
|
|
7761
7581
|
break;
|
|
7762
7582
|
}
|
|
7763
7583
|
result = true;
|
|
7764
|
-
_context.
|
|
7765
|
-
_context.
|
|
7584
|
+
_context.p = 5;
|
|
7585
|
+
_context.n = 6;
|
|
7766
7586
|
return checkSpuMatchCode({
|
|
7767
7587
|
skcCode: recordItem[recordKey],
|
|
7768
7588
|
matchingCode: changeValue,
|
|
7769
7589
|
ext1: recordItem.colorName
|
|
7770
7590
|
});
|
|
7771
|
-
case
|
|
7772
|
-
result = _context.
|
|
7591
|
+
case 6:
|
|
7592
|
+
result = _context.v;
|
|
7773
7593
|
result = true;
|
|
7774
|
-
_context.
|
|
7594
|
+
_context.n = 8;
|
|
7775
7595
|
break;
|
|
7776
|
-
case
|
|
7777
|
-
_context.
|
|
7778
|
-
|
|
7779
|
-
result = typeof
|
|
7780
|
-
case
|
|
7781
|
-
return _context.
|
|
7782
|
-
case
|
|
7783
|
-
return _context.
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
return _context.stop();
|
|
7787
|
-
}
|
|
7788
|
-
}, _callee, null, [[15, 22]]);
|
|
7596
|
+
case 7:
|
|
7597
|
+
_context.p = 7;
|
|
7598
|
+
_t = _context.v;
|
|
7599
|
+
result = typeof _t == 'boolean' ? _t : false;
|
|
7600
|
+
case 8:
|
|
7601
|
+
return _context.a(2, result);
|
|
7602
|
+
case 9:
|
|
7603
|
+
return _context.a(2, true);
|
|
7604
|
+
}
|
|
7605
|
+
}, _callee, null, [[5, 7]]);
|
|
7789
7606
|
}));
|
|
7790
7607
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7791
7608
|
return _ref2.apply(this, arguments);
|
|
@@ -7876,17 +7693,16 @@ var AddSelect = function AddSelect(props) {
|
|
|
7876
7693
|
e.target.blur();
|
|
7877
7694
|
},
|
|
7878
7695
|
onBlur: function () {
|
|
7879
|
-
var _onBlur = _asyncToGenerator(/*#__PURE__*/
|
|
7696
|
+
var _onBlur = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e) {
|
|
7880
7697
|
var value;
|
|
7881
|
-
return
|
|
7882
|
-
while (1) switch (_context2.
|
|
7698
|
+
return _regenerator().w(function (_context2) {
|
|
7699
|
+
while (1) switch (_context2.n) {
|
|
7883
7700
|
case 0:
|
|
7884
7701
|
value = e.target.value;
|
|
7885
7702
|
record[item.dataIndex] = value;
|
|
7886
7703
|
editRecord(record);
|
|
7887
|
-
case
|
|
7888
|
-
|
|
7889
|
-
return _context2.stop();
|
|
7704
|
+
case 1:
|
|
7705
|
+
return _context2.a(2);
|
|
7890
7706
|
}
|
|
7891
7707
|
}, _callee2);
|
|
7892
7708
|
}));
|
|
@@ -8046,10 +7862,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8046
7862
|
}
|
|
8047
7863
|
_dom6 = null;
|
|
8048
7864
|
} else if (e.keyCode === 38) {
|
|
8049
|
-
var _e$nativeEvent$path$
|
|
7865
|
+
var _e$nativeEvent$path$0;
|
|
8050
7866
|
e.stopPropagation();
|
|
8051
7867
|
e.preventDefault();
|
|
8052
|
-
var dom1 = (_e$nativeEvent$path$
|
|
7868
|
+
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];
|
|
8053
7869
|
if (dom1) {
|
|
8054
7870
|
// dom1.value=""
|
|
8055
7871
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -8083,19 +7899,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
8083
7899
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
8084
7900
|
value: text || null,
|
|
8085
7901
|
onChange: function () {
|
|
8086
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
8087
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
8088
|
-
return
|
|
8089
|
-
while (1) switch (_context3.
|
|
7902
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(value) {
|
|
7903
|
+
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules, _t2;
|
|
7904
|
+
return _regenerator().w(function (_context3) {
|
|
7905
|
+
while (1) switch (_context3.p = _context3.n) {
|
|
8090
7906
|
case 0:
|
|
8091
7907
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
8092
7908
|
return d[selectKey] == value;
|
|
8093
7909
|
})) || {};
|
|
8094
7910
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
8095
|
-
_context3.
|
|
7911
|
+
_context3.n = 2;
|
|
8096
7912
|
break;
|
|
8097
7913
|
}
|
|
8098
|
-
_context3.
|
|
7914
|
+
_context3.n = 1;
|
|
8099
7915
|
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, {
|
|
8100
7916
|
record: record,
|
|
8101
7917
|
index: index,
|
|
@@ -8105,10 +7921,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8105
7921
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
8106
7922
|
editRecord: editRecord
|
|
8107
7923
|
});
|
|
8108
|
-
case
|
|
8109
|
-
_context3.
|
|
7924
|
+
case 1:
|
|
7925
|
+
_context3.n = 10;
|
|
8110
7926
|
break;
|
|
8111
|
-
case
|
|
7927
|
+
case 2:
|
|
8112
7928
|
// 更新当前行数据函数
|
|
8113
7929
|
changeValue = function changeValue(v, dSSItem) {
|
|
8114
7930
|
var _item$dataSourceSelec;
|
|
@@ -8121,12 +7937,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
8121
7937
|
}
|
|
8122
7938
|
}; // 处理校验,默认不校验
|
|
8123
7939
|
isCheckPass = true;
|
|
8124
|
-
_context3.
|
|
7940
|
+
_context3.p = 3;
|
|
8125
7941
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
8126
|
-
_context3.
|
|
7942
|
+
_context3.n = 5;
|
|
8127
7943
|
break;
|
|
8128
7944
|
}
|
|
8129
|
-
_context3.
|
|
7945
|
+
_context3.n = 4;
|
|
8130
7946
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
8131
7947
|
record: record,
|
|
8132
7948
|
index: index,
|
|
@@ -8135,23 +7951,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
8135
7951
|
changeValue: value,
|
|
8136
7952
|
dataSourceSelectItem: dataSourceSelectItem
|
|
8137
7953
|
});
|
|
8138
|
-
case
|
|
8139
|
-
isCheckPass = _context3.
|
|
8140
|
-
_context3.
|
|
7954
|
+
case 4:
|
|
7955
|
+
isCheckPass = _context3.v;
|
|
7956
|
+
_context3.n = 7;
|
|
8141
7957
|
break;
|
|
8142
|
-
case
|
|
8143
|
-
_context3.
|
|
7958
|
+
case 5:
|
|
7959
|
+
_context3.n = 6;
|
|
8144
7960
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
8145
|
-
case
|
|
8146
|
-
isConformToTheRules = _context3.
|
|
7961
|
+
case 6:
|
|
7962
|
+
isConformToTheRules = _context3.v;
|
|
8147
7963
|
isCheckPass = !isConformToTheRules;
|
|
8148
|
-
case
|
|
8149
|
-
_context3.
|
|
7964
|
+
case 7:
|
|
7965
|
+
_context3.n = 9;
|
|
8150
7966
|
break;
|
|
8151
|
-
case
|
|
8152
|
-
_context3.
|
|
8153
|
-
|
|
8154
|
-
case
|
|
7967
|
+
case 8:
|
|
7968
|
+
_context3.p = 8;
|
|
7969
|
+
_t2 = _context3.v;
|
|
7970
|
+
case 9:
|
|
8155
7971
|
if (isCheckPass) {
|
|
8156
7972
|
changeValue(value, dataSourceSelectItem);
|
|
8157
7973
|
} else {
|
|
@@ -8159,11 +7975,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8159
7975
|
}
|
|
8160
7976
|
// 更新已选表格函数
|
|
8161
7977
|
editRecord(record);
|
|
8162
|
-
case
|
|
8163
|
-
|
|
8164
|
-
return _context3.stop();
|
|
7978
|
+
case 10:
|
|
7979
|
+
return _context3.a(2);
|
|
8165
7980
|
}
|
|
8166
|
-
}, _callee3, null, [[
|
|
7981
|
+
}, _callee3, null, [[3, 8]]);
|
|
8167
7982
|
}));
|
|
8168
7983
|
function onChange(_x8) {
|
|
8169
7984
|
return _onChange.apply(this, arguments);
|
|
@@ -9554,29 +9369,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9554
9369
|
dataIndex: 'propertyNameAndValue'
|
|
9555
9370
|
}];
|
|
9556
9371
|
var _useState9 = useState(false),
|
|
9557
|
-
|
|
9558
|
-
isModalVisible =
|
|
9559
|
-
setIsModalVisible =
|
|
9560
|
-
var
|
|
9372
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
9373
|
+
isModalVisible = _useState0[0],
|
|
9374
|
+
setIsModalVisible = _useState0[1];
|
|
9375
|
+
var _useState1 = useState([{
|
|
9561
9376
|
hovered: false
|
|
9562
9377
|
}]),
|
|
9563
|
-
|
|
9564
|
-
data =
|
|
9565
|
-
setData =
|
|
9378
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
9379
|
+
data = _useState10[0],
|
|
9380
|
+
setData = _useState10[1];
|
|
9566
9381
|
var tableRef = useRef(null);
|
|
9567
9382
|
var codeSelected = tableCode;
|
|
9568
|
-
var
|
|
9383
|
+
var _useState11 = useState(false),
|
|
9384
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9385
|
+
loading = _useState12[0],
|
|
9386
|
+
setLoading = _useState12[1];
|
|
9387
|
+
var _useState13 = useState([]),
|
|
9569
9388
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9570
|
-
|
|
9571
|
-
|
|
9389
|
+
selectColumns = _useState14[0],
|
|
9390
|
+
setSelectColumns = _useState14[1];
|
|
9572
9391
|
var _useState15 = useState([]),
|
|
9573
9392
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9574
|
-
|
|
9575
|
-
|
|
9576
|
-
var _useState17 = useState([]),
|
|
9577
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
9578
|
-
showColumns = _useState18[0],
|
|
9579
|
-
setShowColumns = _useState18[1];
|
|
9393
|
+
showColumns = _useState16[0],
|
|
9394
|
+
setShowColumns = _useState16[1];
|
|
9580
9395
|
useEffect(function () {
|
|
9581
9396
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9582
9397
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9692,42 +9507,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9692
9507
|
});
|
|
9693
9508
|
};
|
|
9694
9509
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9695
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9510
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
9696
9511
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9697
|
-
return
|
|
9698
|
-
while (1) switch (_context.
|
|
9512
|
+
return _regenerator().w(function (_context) {
|
|
9513
|
+
while (1) switch (_context.n) {
|
|
9699
9514
|
case 0:
|
|
9700
9515
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9701
|
-
_context.
|
|
9516
|
+
_context.n = 1;
|
|
9702
9517
|
break;
|
|
9703
9518
|
}
|
|
9704
9519
|
message$1.warning('至少录入一条数据');
|
|
9705
|
-
return _context.
|
|
9706
|
-
case
|
|
9520
|
+
return _context.a(2);
|
|
9521
|
+
case 1:
|
|
9707
9522
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9708
9523
|
return d.skuCode && d.name;
|
|
9709
9524
|
})) {
|
|
9710
|
-
_context.
|
|
9525
|
+
_context.n = 2;
|
|
9711
9526
|
break;
|
|
9712
9527
|
}
|
|
9713
9528
|
message$1.warning('录入商品不存在');
|
|
9714
|
-
return _context.
|
|
9715
|
-
case
|
|
9529
|
+
return _context.a(2);
|
|
9530
|
+
case 2:
|
|
9716
9531
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9717
9532
|
return d.count;
|
|
9718
9533
|
})) {
|
|
9719
|
-
_context.
|
|
9534
|
+
_context.n = 3;
|
|
9720
9535
|
break;
|
|
9721
9536
|
}
|
|
9722
9537
|
message$1.warning('请填写商品数量!');
|
|
9723
|
-
return _context.
|
|
9724
|
-
case
|
|
9725
|
-
_context.
|
|
9538
|
+
return _context.a(2);
|
|
9539
|
+
case 3:
|
|
9540
|
+
_context.n = 4;
|
|
9726
9541
|
return isSkuCanEntry(data);
|
|
9727
|
-
case
|
|
9728
|
-
canEntryObject = _context.
|
|
9542
|
+
case 4:
|
|
9543
|
+
canEntryObject = _context.v;
|
|
9729
9544
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9730
|
-
_context.
|
|
9545
|
+
_context.n = 5;
|
|
9731
9546
|
break;
|
|
9732
9547
|
}
|
|
9733
9548
|
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) {
|
|
@@ -9737,8 +9552,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9737
9552
|
content: messageInfo,
|
|
9738
9553
|
duration: 6
|
|
9739
9554
|
});
|
|
9740
|
-
return _context.
|
|
9741
|
-
case
|
|
9555
|
+
return _context.a(2);
|
|
9556
|
+
case 5:
|
|
9742
9557
|
setLoading(true);
|
|
9743
9558
|
onSaveCallback(data).then(function (res) {
|
|
9744
9559
|
{
|
|
@@ -9756,9 +9571,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9756
9571
|
message$1.error(Error);
|
|
9757
9572
|
setLoading(false);
|
|
9758
9573
|
});
|
|
9759
|
-
case
|
|
9760
|
-
|
|
9761
|
-
return _context.stop();
|
|
9574
|
+
case 6:
|
|
9575
|
+
return _context.a(2);
|
|
9762
9576
|
}
|
|
9763
9577
|
}, _callee);
|
|
9764
9578
|
}));
|
|
@@ -11955,17 +11769,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11955
11769
|
}
|
|
11956
11770
|
}
|
|
11957
11771
|
}];
|
|
11958
|
-
var
|
|
11772
|
+
var _queryHeaderParams0 = getQueryHeadersList({
|
|
11959
11773
|
querySelectHeadersList: querySelectHeadersList,
|
|
11960
11774
|
extralHeaders: extralHeaders
|
|
11961
11775
|
});
|
|
11962
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(
|
|
11776
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams0, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11963
11777
|
'qp-status-eq': 10,
|
|
11964
11778
|
'qp-isMain-eq': 1,
|
|
11965
11779
|
'qp-type-in': '1,2'
|
|
11966
|
-
}, getQueryHeadersItem(
|
|
11780
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11967
11781
|
'qp-status-eq': 1
|
|
11968
|
-
}, getQueryHeadersItem(
|
|
11782
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in'))]).then(function (x) {
|
|
11969
11783
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
11970
11784
|
var allList = firstElement && [firstElement, firstElement];
|
|
11971
11785
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
@@ -12151,7 +11965,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12151
11965
|
}
|
|
12152
11966
|
}
|
|
12153
11967
|
}];
|
|
12154
|
-
var
|
|
11968
|
+
var _queryHeaderParams1 = getQueryHeadersList({
|
|
12155
11969
|
querySelectHeadersList: querySelectHeadersList,
|
|
12156
11970
|
extralHeaders: extralHeaders
|
|
12157
11971
|
});
|
|
@@ -12159,21 +11973,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12159
11973
|
pageSize: 5000,
|
|
12160
11974
|
currentPage: 1,
|
|
12161
11975
|
'qp-companyType-eq': '30'
|
|
12162
|
-
}, getQueryHeadersItem(
|
|
11976
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
12163
11977
|
pageSize: 5000,
|
|
12164
11978
|
currentPage: 1,
|
|
12165
11979
|
'qp-companyType-eq': '20'
|
|
12166
|
-
}, getQueryHeadersItem(
|
|
11980
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
12167
11981
|
// pageSize: 5000,
|
|
12168
11982
|
// currentPage: 1,
|
|
12169
11983
|
'qp-status-eq': '1'
|
|
12170
|
-
}, getQueryHeadersItem(
|
|
11984
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
12171
11985
|
pageSize: 5000,
|
|
12172
11986
|
currentPage: 1
|
|
12173
|
-
}, getQueryHeadersItem(
|
|
11987
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
12174
11988
|
pageSize: 5000,
|
|
12175
11989
|
currentPage: 1
|
|
12176
|
-
}, getQueryHeadersItem(
|
|
11990
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-accountingCode-in'))]).then(function (x) {
|
|
12177
11991
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12178
11992
|
formatSource(x, 1, 3, tableSearchForm);
|
|
12179
11993
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -12342,8 +12156,26 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12342
12156
|
}
|
|
12343
12157
|
},
|
|
12344
12158
|
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
12159
|
+
}, {
|
|
12160
|
+
name: "qp-brandCode-in",
|
|
12161
|
+
label: "品牌",
|
|
12162
|
+
field: {
|
|
12163
|
+
type: 'select',
|
|
12164
|
+
props: {
|
|
12165
|
+
mode: 'multiple',
|
|
12166
|
+
notFoundContent: '暂无数据',
|
|
12167
|
+
allowClear: true,
|
|
12168
|
+
showSearch: true,
|
|
12169
|
+
showArrow: true,
|
|
12170
|
+
maxTagCount: 1,
|
|
12171
|
+
optionFilterProp: 'children',
|
|
12172
|
+
filterOption: function filterOption(input, option) {
|
|
12173
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12174
|
+
}
|
|
12175
|
+
}
|
|
12176
|
+
}
|
|
12345
12177
|
}];
|
|
12346
|
-
var
|
|
12178
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
12347
12179
|
querySelectHeadersList: querySelectHeadersList,
|
|
12348
12180
|
extralHeaders: extralHeaders
|
|
12349
12181
|
});
|
|
@@ -12351,13 +12183,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12351
12183
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12352
12184
|
'qp-realOrg-eq': true,
|
|
12353
12185
|
'qp-status-eq': 10
|
|
12354
|
-
}, getQueryHeadersItem(
|
|
12186
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12355
12187
|
'qp-status-eq': 10,
|
|
12356
12188
|
'qp-isMain-eq': 1,
|
|
12357
12189
|
'qp-type-in': '1,2'
|
|
12358
|
-
}, getQueryHeadersItem(
|
|
12190
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12359
12191
|
'qp-status-eq': 1
|
|
12360
|
-
}, getQueryHeadersItem(
|
|
12192
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
12193
|
+
pageSize: 5000,
|
|
12194
|
+
currentPage: 1,
|
|
12195
|
+
'ctl-withAuth': true
|
|
12196
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth'))]).then(function (x) {
|
|
12361
12197
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12362
12198
|
return data['parentCode'] === '0';
|
|
12363
12199
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -12367,6 +12203,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12367
12203
|
formatSource(x, 0, 3, tableSearchForm);
|
|
12368
12204
|
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12369
12205
|
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
12206
|
+
formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
|
|
12370
12207
|
});
|
|
12371
12208
|
modalTableProps = _objectSpread2({
|
|
12372
12209
|
modalTableTitle: '选择商店',
|
|
@@ -12592,10 +12429,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12592
12429
|
name: 'qp-email-like',
|
|
12593
12430
|
label: '邮箱'
|
|
12594
12431
|
}, {
|
|
12595
|
-
name: 'qp-
|
|
12432
|
+
name: 'qp-officeTelephone-like',
|
|
12596
12433
|
label: '手机号'
|
|
12597
12434
|
}];
|
|
12598
|
-
var
|
|
12435
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
12599
12436
|
querySelectHeadersList: querySelectHeadersList,
|
|
12600
12437
|
extralHeaders: extralHeaders
|
|
12601
12438
|
});
|
|
@@ -12603,7 +12440,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12603
12440
|
pageSize: 5000,
|
|
12604
12441
|
currentPage: 1,
|
|
12605
12442
|
'qp-companyType-eq': 20
|
|
12606
|
-
}, getQueryHeadersItem(
|
|
12443
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in'))]).then(function (x) {
|
|
12607
12444
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12608
12445
|
});
|
|
12609
12446
|
modalTableProps = _objectSpread2({
|
|
@@ -12712,13 +12549,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12712
12549
|
name: 'qp-phone-like',
|
|
12713
12550
|
label: '手机号'
|
|
12714
12551
|
}]);
|
|
12715
|
-
var
|
|
12552
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12716
12553
|
querySelectHeadersList: querySelectHeadersList,
|
|
12717
12554
|
extralHeaders: extralHeaders
|
|
12718
12555
|
});
|
|
12719
12556
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12720
12557
|
'orgViewCode': 'administrative-organization-view'
|
|
12721
|
-
}, getQueryHeadersItem(
|
|
12558
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-code-in'))]).then(function (x) {
|
|
12722
12559
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12723
12560
|
});
|
|
12724
12561
|
modalTableProps = _objectSpread2({
|
|
@@ -12769,7 +12606,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12769
12606
|
dataIndex: 'email'
|
|
12770
12607
|
}, {
|
|
12771
12608
|
title: '手机号',
|
|
12772
|
-
dataIndex: '
|
|
12609
|
+
dataIndex: 'phone',
|
|
12773
12610
|
defaultSort: 4,
|
|
12774
12611
|
render: function render(text, record) {
|
|
12775
12612
|
return handleTextOverflow(text || (record === null || record === void 0 ? void 0 : record.phone));
|
|
@@ -12865,17 +12702,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12865
12702
|
name: 'qp-remark-like',
|
|
12866
12703
|
label: '备注'
|
|
12867
12704
|
}];
|
|
12868
|
-
var
|
|
12705
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12869
12706
|
querySelectHeadersList: querySelectHeadersList,
|
|
12870
12707
|
extralHeaders: extralHeaders
|
|
12871
12708
|
});
|
|
12872
12709
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12873
12710
|
pageSize: 5000,
|
|
12874
12711
|
currentPage: 1
|
|
12875
|
-
}, getQueryHeadersItem(
|
|
12712
|
+
}, getQueryHeadersItem(_queryHeaderParams13, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12876
12713
|
pageSize: 5000,
|
|
12877
12714
|
currentPage: 1
|
|
12878
|
-
}, getQueryHeadersItem(
|
|
12715
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12879
12716
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12880
12717
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12881
12718
|
});
|
|
@@ -13045,14 +12882,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13045
12882
|
}
|
|
13046
12883
|
}
|
|
13047
12884
|
}];
|
|
13048
|
-
var
|
|
12885
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
13049
12886
|
querySelectHeadersList: querySelectHeadersList,
|
|
13050
12887
|
extralHeaders: extralHeaders
|
|
13051
12888
|
});
|
|
13052
12889
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
13053
12890
|
pageSize: 5000,
|
|
13054
12891
|
currentPage: 1
|
|
13055
|
-
}, getQueryHeadersItem(
|
|
12892
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
13056
12893
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13057
12894
|
});
|
|
13058
12895
|
modalTableProps = _objectSpread2({
|
|
@@ -13149,7 +12986,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13149
12986
|
}
|
|
13150
12987
|
}
|
|
13151
12988
|
}];
|
|
13152
|
-
var
|
|
12989
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
13153
12990
|
querySelectHeadersList: querySelectHeadersList,
|
|
13154
12991
|
extralHeaders: extralHeaders
|
|
13155
12992
|
});
|
|
@@ -13157,7 +12994,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13157
12994
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
13158
12995
|
'qp-realOrg-eq': true,
|
|
13159
12996
|
'qp-status-eq': 10
|
|
13160
|
-
}, getQueryHeadersItem(
|
|
12997
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
13161
12998
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13162
12999
|
});
|
|
13163
13000
|
modalTableProps = _objectSpread2({
|
|
@@ -13263,13 +13100,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13263
13100
|
},
|
|
13264
13101
|
initialSource: nodeType
|
|
13265
13102
|
}];
|
|
13266
|
-
var
|
|
13103
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13267
13104
|
querySelectHeadersList: querySelectHeadersList,
|
|
13268
13105
|
extralHeaders: extralHeaders
|
|
13269
13106
|
});
|
|
13270
13107
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13271
13108
|
'qp-status-eq': 10
|
|
13272
|
-
}, getQueryHeadersItem(
|
|
13109
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13273
13110
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13274
13111
|
});
|
|
13275
13112
|
modalTableProps = _objectSpread2({
|
|
@@ -13595,13 +13432,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13595
13432
|
},
|
|
13596
13433
|
initialSource: nodeType
|
|
13597
13434
|
}];
|
|
13598
|
-
var
|
|
13435
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
13599
13436
|
querySelectHeadersList: querySelectHeadersList,
|
|
13600
13437
|
extralHeaders: extralHeaders
|
|
13601
13438
|
});
|
|
13602
13439
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13603
13440
|
'qp-status-eq': 10
|
|
13604
|
-
}, getQueryHeadersItem(
|
|
13441
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13605
13442
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13606
13443
|
});
|
|
13607
13444
|
modalTableProps = _objectSpread2({
|
|
@@ -14546,9 +14383,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14546
14383
|
value = _useState8[0],
|
|
14547
14384
|
setValue = _useState8[1];
|
|
14548
14385
|
var _useState9 = useState([]),
|
|
14549
|
-
|
|
14550
|
-
propertyList =
|
|
14551
|
-
setPropertyList =
|
|
14386
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
14387
|
+
propertyList = _useState0[0],
|
|
14388
|
+
setPropertyList = _useState0[1];
|
|
14552
14389
|
useEffect(function () {
|
|
14553
14390
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14554
14391
|
// type: 1 尺码组; 2 配码组
|
|
@@ -15072,46 +14909,45 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
15072
14909
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
15073
14910
|
headers: headers
|
|
15074
14911
|
}).then(/*#__PURE__*/function () {
|
|
15075
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
14912
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
|
|
15076
14913
|
var _ctx$form;
|
|
15077
14914
|
var resData, coverData, data, dataList;
|
|
15078
|
-
return
|
|
15079
|
-
while (1) switch (_context.
|
|
14915
|
+
return _regenerator().w(function (_context) {
|
|
14916
|
+
while (1) switch (_context.n) {
|
|
15080
14917
|
case 0:
|
|
15081
14918
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
15082
14919
|
if (!judgeIsRequestSuccess(resData)) {
|
|
15083
|
-
_context.
|
|
14920
|
+
_context.n = 4;
|
|
15084
14921
|
break;
|
|
15085
14922
|
}
|
|
15086
14923
|
data = resData.data;
|
|
15087
14924
|
if (!remoteSource.converter) {
|
|
15088
|
-
_context.
|
|
14925
|
+
_context.n = 2;
|
|
15089
14926
|
break;
|
|
15090
14927
|
}
|
|
15091
|
-
_context.
|
|
14928
|
+
_context.n = 1;
|
|
15092
14929
|
return remoteSource.converter({
|
|
15093
14930
|
data: [data]
|
|
15094
14931
|
});
|
|
15095
|
-
case
|
|
15096
|
-
coverData = _context.
|
|
15097
|
-
_context.
|
|
14932
|
+
case 1:
|
|
14933
|
+
coverData = _context.v;
|
|
14934
|
+
_context.n = 3;
|
|
15098
14935
|
break;
|
|
15099
|
-
case
|
|
14936
|
+
case 2:
|
|
15100
14937
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
15101
14938
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
15102
14939
|
return _mapSearchTree(ites);
|
|
15103
14940
|
}) || [];
|
|
15104
|
-
case
|
|
15105
|
-
_context.
|
|
14941
|
+
case 3:
|
|
14942
|
+
_context.n = 5;
|
|
15106
14943
|
break;
|
|
15107
|
-
case
|
|
14944
|
+
case 4:
|
|
15108
14945
|
coverData = [];
|
|
15109
|
-
case
|
|
14946
|
+
case 5:
|
|
15110
14947
|
setTreeData(coverData);
|
|
15111
14948
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
15112
|
-
case
|
|
15113
|
-
|
|
15114
|
-
return _context.stop();
|
|
14949
|
+
case 6:
|
|
14950
|
+
return _context.a(2);
|
|
15115
14951
|
}
|
|
15116
14952
|
}, _callee);
|
|
15117
14953
|
}));
|
|
@@ -19413,38 +19249,38 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19413
19249
|
};
|
|
19414
19250
|
var refs = useRef(null);
|
|
19415
19251
|
var _useState9 = useState(''),
|
|
19416
|
-
|
|
19417
|
-
pagePath =
|
|
19418
|
-
setPagePath =
|
|
19252
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
19253
|
+
pagePath = _useState0[0],
|
|
19254
|
+
setPagePath = _useState0[1];
|
|
19419
19255
|
var _useLocation = useLocation(),
|
|
19420
19256
|
pathname = _useLocation.pathname,
|
|
19421
19257
|
_useLocation$state = _useLocation.state,
|
|
19422
19258
|
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
19423
|
-
var
|
|
19424
|
-
|
|
19425
|
-
isFullScreen =
|
|
19426
|
-
setIsFnllScreen =
|
|
19259
|
+
var _useState1 = useState(false),
|
|
19260
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
19261
|
+
isFullScreen = _useState10[0],
|
|
19262
|
+
setIsFnllScreen = _useState10[1];
|
|
19427
19263
|
// @ts-nocheck
|
|
19428
19264
|
var value = props;
|
|
19429
19265
|
var _props$fields = props.fields,
|
|
19430
19266
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
19431
|
-
var
|
|
19432
|
-
|
|
19433
|
-
showColumn =
|
|
19434
|
-
setShowColumns =
|
|
19267
|
+
var _useState11 = useState([]),
|
|
19268
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
19269
|
+
showColumn = _useState12[0],
|
|
19270
|
+
setShowColumns = _useState12[1]; // 列字段
|
|
19435
19271
|
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19436
|
-
var
|
|
19272
|
+
var _useState13 = useState(originSearchFields),
|
|
19273
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
19274
|
+
showSearchFields = _useState14[0],
|
|
19275
|
+
setShowSearchFields = _useState14[1]; //搜索项字段
|
|
19276
|
+
var _useState15 = useState([]),
|
|
19437
19277
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
19438
|
-
|
|
19439
|
-
|
|
19440
|
-
var _useState17 = useState(
|
|
19278
|
+
showExportColumn = _useState16[0],
|
|
19279
|
+
setShowExportColumns = _useState16[1]; // 导出列字段
|
|
19280
|
+
var _useState17 = useState(''),
|
|
19441
19281
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
19442
|
-
|
|
19443
|
-
|
|
19444
|
-
var _useState19 = useState(''),
|
|
19445
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
19446
|
-
height = _useState20[0],
|
|
19447
|
-
setHeight = _useState20[1];
|
|
19282
|
+
height = _useState18[0],
|
|
19283
|
+
setHeight = _useState18[1];
|
|
19448
19284
|
var sortTableRef = useRef(null);
|
|
19449
19285
|
var searchTableRef = useRef(null);
|
|
19450
19286
|
var exportTableRef = useRef(null);
|
|
@@ -20492,22 +20328,19 @@ function outLogin(_x) {
|
|
|
20492
20328
|
return _outLogin.apply(this, arguments);
|
|
20493
20329
|
}
|
|
20494
20330
|
function _outLogin() {
|
|
20495
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
20331
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20496
20332
|
var res;
|
|
20497
|
-
return
|
|
20498
|
-
while (1) switch (_context.
|
|
20333
|
+
return _regenerator().w(function (_context) {
|
|
20334
|
+
while (1) switch (_context.n) {
|
|
20499
20335
|
case 0:
|
|
20500
|
-
_context.
|
|
20336
|
+
_context.n = 1;
|
|
20501
20337
|
return requestUtil({
|
|
20502
20338
|
url: '/user/web/loginOut',
|
|
20503
20339
|
method: 'GET'
|
|
20504
20340
|
});
|
|
20505
|
-
case
|
|
20506
|
-
res = _context.
|
|
20507
|
-
return _context.
|
|
20508
|
-
case 4:
|
|
20509
|
-
case "end":
|
|
20510
|
-
return _context.stop();
|
|
20341
|
+
case 1:
|
|
20342
|
+
res = _context.v;
|
|
20343
|
+
return _context.a(2, res);
|
|
20511
20344
|
}
|
|
20512
20345
|
}, _callee);
|
|
20513
20346
|
}));
|
|
@@ -20634,20 +20467,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20634
20467
|
});
|
|
20635
20468
|
};
|
|
20636
20469
|
var loginOut = /*#__PURE__*/function () {
|
|
20637
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
20470
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
20638
20471
|
var sessionId;
|
|
20639
|
-
return
|
|
20640
|
-
while (1) switch (_context.
|
|
20472
|
+
return _regenerator().w(function (_context) {
|
|
20473
|
+
while (1) switch (_context.n) {
|
|
20641
20474
|
case 0:
|
|
20642
|
-
_context.
|
|
20475
|
+
_context.n = 1;
|
|
20643
20476
|
return getSessionId();
|
|
20644
|
-
case
|
|
20645
|
-
sessionId = _context.
|
|
20646
|
-
_context.
|
|
20477
|
+
case 1:
|
|
20478
|
+
sessionId = _context.v;
|
|
20479
|
+
_context.n = 2;
|
|
20647
20480
|
return outLogin({
|
|
20648
20481
|
sessionId: sessionId
|
|
20649
20482
|
});
|
|
20650
|
-
case
|
|
20483
|
+
case 2:
|
|
20651
20484
|
// @ts-ignore
|
|
20652
20485
|
if (BUILD_TYPE) {
|
|
20653
20486
|
message$1.success('退出登录成功');
|
|
@@ -20657,9 +20490,8 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20657
20490
|
} else {
|
|
20658
20491
|
setLoginOutPath();
|
|
20659
20492
|
}
|
|
20660
|
-
case
|
|
20661
|
-
|
|
20662
|
-
return _context.stop();
|
|
20493
|
+
case 3:
|
|
20494
|
+
return _context.a(2);
|
|
20663
20495
|
}
|
|
20664
20496
|
}, _callee);
|
|
20665
20497
|
}));
|
|
@@ -20746,18 +20578,15 @@ function getStoreByName(_x) {
|
|
|
20746
20578
|
return _getStoreByName.apply(this, arguments);
|
|
20747
20579
|
}
|
|
20748
20580
|
function _getStoreByName() {
|
|
20749
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20750
|
-
return
|
|
20751
|
-
while (1) switch (_context.
|
|
20581
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20582
|
+
return _regenerator().w(function (_context) {
|
|
20583
|
+
while (1) switch (_context.n) {
|
|
20752
20584
|
case 0:
|
|
20753
|
-
return _context.
|
|
20585
|
+
return _context.a(2, requestUtil({
|
|
20754
20586
|
url: '/store-house/orgViewNode/listNoPage',
|
|
20755
20587
|
method: 'GET',
|
|
20756
20588
|
params: _objectSpread2({}, params)
|
|
20757
20589
|
}));
|
|
20758
|
-
case 1:
|
|
20759
|
-
case "end":
|
|
20760
|
-
return _context.stop();
|
|
20761
20590
|
}
|
|
20762
20591
|
}, _callee);
|
|
20763
20592
|
}));
|
|
@@ -20792,33 +20621,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20792
20621
|
openSelect = _useState8[0],
|
|
20793
20622
|
setOpenSelect = _useState8[1];
|
|
20794
20623
|
var _useState9 = useState([]),
|
|
20795
|
-
|
|
20796
|
-
options =
|
|
20797
|
-
setOptions =
|
|
20798
|
-
var
|
|
20624
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
20625
|
+
options = _useState0[0],
|
|
20626
|
+
setOptions = _useState0[1];
|
|
20627
|
+
var _useState1 = useState([]),
|
|
20628
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
20629
|
+
rescouse = _useState10[0],
|
|
20630
|
+
setRescouse = _useState10[1];
|
|
20631
|
+
var _useState11 = useState(''),
|
|
20799
20632
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
20800
|
-
|
|
20801
|
-
|
|
20802
|
-
var _useState13 = useState(
|
|
20803
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
20804
|
-
searchValue = _useState14[0],
|
|
20805
|
-
setSearchValue = _useState14[1];
|
|
20806
|
-
var _useState15 = useState([{
|
|
20633
|
+
searchValue = _useState12[0],
|
|
20634
|
+
setSearchValue = _useState12[1];
|
|
20635
|
+
var _useState13 = useState([{
|
|
20807
20636
|
label: name,
|
|
20808
20637
|
value: code
|
|
20809
20638
|
}]),
|
|
20810
|
-
|
|
20811
|
-
store =
|
|
20812
|
-
setStore =
|
|
20639
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
20640
|
+
store = _useState14[0],
|
|
20641
|
+
setStore = _useState14[1];
|
|
20813
20642
|
function fetchUserList(_x, _x2) {
|
|
20814
20643
|
return _fetchUserList.apply(this, arguments);
|
|
20815
20644
|
}
|
|
20816
20645
|
function _fetchUserList() {
|
|
20817
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
20818
|
-
return
|
|
20819
|
-
while (1) switch (_context3.
|
|
20646
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(storeName, init) {
|
|
20647
|
+
return _regenerator().w(function (_context3) {
|
|
20648
|
+
while (1) switch (_context3.n) {
|
|
20820
20649
|
case 0:
|
|
20821
|
-
return _context3.
|
|
20650
|
+
return _context3.a(2, getStoreByName({
|
|
20822
20651
|
orgName: storeName ? storeName : undefined,
|
|
20823
20652
|
platCompanyCode: init ? undefined : key,
|
|
20824
20653
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -20837,9 +20666,6 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20837
20666
|
};
|
|
20838
20667
|
});
|
|
20839
20668
|
}));
|
|
20840
|
-
case 1:
|
|
20841
|
-
case "end":
|
|
20842
|
-
return _context3.stop();
|
|
20843
20669
|
}
|
|
20844
20670
|
}, _callee3);
|
|
20845
20671
|
}));
|
|
@@ -20862,20 +20688,19 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20862
20688
|
return debounce$1(loadOptions, debounceTimeout);
|
|
20863
20689
|
}, [debounceTimeout, key]);
|
|
20864
20690
|
var changeInput = /*#__PURE__*/function () {
|
|
20865
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
20691
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
|
|
20866
20692
|
var res;
|
|
20867
|
-
return
|
|
20868
|
-
while (1) switch (_context.
|
|
20693
|
+
return _regenerator().w(function (_context) {
|
|
20694
|
+
while (1) switch (_context.n) {
|
|
20869
20695
|
case 0:
|
|
20870
|
-
_context.
|
|
20696
|
+
_context.n = 1;
|
|
20871
20697
|
return debounceFetcher(str);
|
|
20872
|
-
case
|
|
20873
|
-
res = _context.
|
|
20698
|
+
case 1:
|
|
20699
|
+
res = _context.v;
|
|
20874
20700
|
setOptions(res);
|
|
20875
20701
|
setRescouse(res);
|
|
20876
|
-
case
|
|
20877
|
-
|
|
20878
|
-
return _context.stop();
|
|
20702
|
+
case 2:
|
|
20703
|
+
return _context.a(2);
|
|
20879
20704
|
}
|
|
20880
20705
|
}, _callee);
|
|
20881
20706
|
}));
|
|
@@ -20884,15 +20709,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20884
20709
|
};
|
|
20885
20710
|
}();
|
|
20886
20711
|
useEffect(function () {
|
|
20887
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
20712
|
+
_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
20888
20713
|
var res;
|
|
20889
|
-
return
|
|
20890
|
-
while (1) switch (_context2.
|
|
20714
|
+
return _regenerator().w(function (_context2) {
|
|
20715
|
+
while (1) switch (_context2.n) {
|
|
20891
20716
|
case 0:
|
|
20892
|
-
_context2.
|
|
20717
|
+
_context2.n = 1;
|
|
20893
20718
|
return fetchUserList(undefined, true);
|
|
20894
|
-
case
|
|
20895
|
-
res = _context2.
|
|
20719
|
+
case 1:
|
|
20720
|
+
res = _context2.v;
|
|
20896
20721
|
res.map(function (item, indexNumber) {
|
|
20897
20722
|
if (item.label === name) {
|
|
20898
20723
|
setIndex(indexNumber);
|
|
@@ -20908,9 +20733,8 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20908
20733
|
});
|
|
20909
20734
|
setOptions(res);
|
|
20910
20735
|
setRescouse(res);
|
|
20911
|
-
case
|
|
20912
|
-
|
|
20913
|
-
return _context2.stop();
|
|
20736
|
+
case 2:
|
|
20737
|
+
return _context2.a(2);
|
|
20914
20738
|
}
|
|
20915
20739
|
}, _callee2);
|
|
20916
20740
|
}))();
|
|
@@ -21165,8 +20989,6 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
21165
20989
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
21166
20990
|
};
|
|
21167
20991
|
|
|
21168
|
-
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";
|
|
21169
|
-
|
|
21170
20992
|
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";
|
|
21171
20993
|
styleInject(css_248z$o);
|
|
21172
20994
|
|
|
@@ -21872,28 +21694,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
21872
21694
|
};
|
|
21873
21695
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
21874
21696
|
className: 'customer_menu_content'
|
|
21875
|
-
}, /*#__PURE__*/React$1.createElement(
|
|
21876
|
-
style: {
|
|
21877
|
-
cursor: 'pointer'
|
|
21878
|
-
},
|
|
21879
|
-
onClick: function onClick(e) {
|
|
21880
|
-
handleClose();
|
|
21881
|
-
settingModalFn(_objectSpread2(_objectSpread2({}, settingModal), {}, {
|
|
21882
|
-
visible: true
|
|
21883
|
-
}));
|
|
21884
|
-
}
|
|
21885
|
-
}, /*#__PURE__*/React$1.createElement("img", {
|
|
21886
|
-
style: {
|
|
21887
|
-
marginTop: '-3px'
|
|
21888
|
-
},
|
|
21889
|
-
width: 24,
|
|
21890
|
-
src: addIcon
|
|
21891
|
-
}), /*#__PURE__*/React$1.createElement(Button, {
|
|
21892
|
-
type: 'link',
|
|
21893
|
-
style: {
|
|
21894
|
-
paddingLeft: '5px'
|
|
21895
|
-
}
|
|
21896
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
21697
|
+
}, !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
21897
21698
|
style: {
|
|
21898
21699
|
left: isDrawer ? 140 : 0
|
|
21899
21700
|
},
|
|
@@ -21959,25 +21760,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
21959
21760
|
currentOneLevel = _useState8[0],
|
|
21960
21761
|
setCurrentOneLevel = _useState8[1];
|
|
21961
21762
|
var _useState9 = useState([]),
|
|
21962
|
-
|
|
21963
|
-
SearhData =
|
|
21964
|
-
setSearchMenuData =
|
|
21965
|
-
var
|
|
21763
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
21764
|
+
SearhData = _useState0[0],
|
|
21765
|
+
setSearchMenuData = _useState0[1];
|
|
21766
|
+
var _useState1 = useState(600),
|
|
21767
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
21768
|
+
rightMenuHeight = _useState10[0],
|
|
21769
|
+
setHeight = _useState10[1];
|
|
21770
|
+
var _useState11 = useState(900),
|
|
21966
21771
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
21967
|
-
|
|
21968
|
-
|
|
21969
|
-
var _useState13 = useState(
|
|
21772
|
+
drawHeight = _useState12[0],
|
|
21773
|
+
setDrawHeight = _useState12[1];
|
|
21774
|
+
var _useState13 = useState(false),
|
|
21970
21775
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
21971
|
-
|
|
21972
|
-
|
|
21776
|
+
moreBtnShow = _useState14[0],
|
|
21777
|
+
setMoreBtnShow = _useState14[1];
|
|
21973
21778
|
var _useState15 = useState(false),
|
|
21974
21779
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
21975
|
-
|
|
21976
|
-
|
|
21977
|
-
var _useState17 = useState(false),
|
|
21978
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
21979
|
-
showScroll = _useState18[0],
|
|
21980
|
-
setShowScroll = _useState18[1];
|
|
21780
|
+
showScroll = _useState16[0],
|
|
21781
|
+
setShowScroll = _useState16[1];
|
|
21981
21782
|
useEffect(function () {
|
|
21982
21783
|
var _originRoutes$find;
|
|
21983
21784
|
getMenuContentHeight();
|
|
@@ -22395,7 +22196,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
22395
22196
|
if (item.children && item.children.length > 0) {
|
|
22396
22197
|
_getLimitedMenuKeys(item.children);
|
|
22397
22198
|
} else {
|
|
22398
|
-
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
22199
|
+
var originPath = (item.path || item.frontendPath).replace(/^\/\w+\//, '/');
|
|
22399
22200
|
menuKeys.push(originPath);
|
|
22400
22201
|
if (pathToRegexp('/operation-and-maintenance-center/configuration-management/all-general-documents-specific/:id').test(originPath)) {
|
|
22401
22202
|
getId(originPath) && docsId.push(getId(originPath));
|
|
@@ -22645,7 +22446,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22645
22446
|
return;
|
|
22646
22447
|
}
|
|
22647
22448
|
// todo:暂时处理非wujie环境不做404管控
|
|
22648
|
-
if (!window.__POWERED_BY_WUJIE__) {
|
|
22449
|
+
if (!window.__POWERED_BY_WUJIE__ && !_this.props.isSingleSystem) {
|
|
22649
22450
|
treeList.push({
|
|
22650
22451
|
tab: node.locale,
|
|
22651
22452
|
key: node.path,
|
|
@@ -23588,14 +23389,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23588
23389
|
},
|
|
23589
23390
|
menu: {
|
|
23590
23391
|
request: function () {
|
|
23591
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23592
|
-
return
|
|
23593
|
-
while (1) switch (_context.
|
|
23392
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
23393
|
+
return _regenerator().w(function (_context) {
|
|
23394
|
+
while (1) switch (_context.n) {
|
|
23594
23395
|
case 0:
|
|
23595
|
-
return _context.
|
|
23596
|
-
case 1:
|
|
23597
|
-
case "end":
|
|
23598
|
-
return _context.stop();
|
|
23396
|
+
return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
23599
23397
|
}
|
|
23600
23398
|
}, _callee);
|
|
23601
23399
|
}));
|
|
@@ -24000,31 +23798,31 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
24000
23798
|
multiTableData = _useState8[0],
|
|
24001
23799
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
24002
23800
|
var _useState9 = useState(10),
|
|
24003
|
-
|
|
24004
|
-
viewCount =
|
|
24005
|
-
setViewCount =
|
|
23801
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
23802
|
+
viewCount = _useState0[0],
|
|
23803
|
+
setViewCount = _useState0[1]; //虚拟表格每次渲染数量
|
|
24006
23804
|
var itemWidth = 100; // 表格每一项宽度
|
|
24007
|
-
var
|
|
24008
|
-
|
|
24009
|
-
realColHeaderWidth =
|
|
24010
|
-
setLeftWidth =
|
|
23805
|
+
var _useState1 = useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
|
|
23806
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
23807
|
+
realColHeaderWidth = _useState10[0],
|
|
23808
|
+
setLeftWidth = _useState10[1];
|
|
24011
23809
|
var viewPort = useRef(null);
|
|
24012
23810
|
var topScrollBar = useRef(null);
|
|
24013
23811
|
var leftTableRef = useRef(null);
|
|
24014
23812
|
//起始渲染item
|
|
24015
|
-
var
|
|
24016
|
-
|
|
24017
|
-
startIndex =
|
|
24018
|
-
setStartIndex =
|
|
23813
|
+
var _useState11 = useState(0),
|
|
23814
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
23815
|
+
startIndex = _useState12[0],
|
|
23816
|
+
setStartIndex = _useState12[1];
|
|
24019
23817
|
//结束渲染item
|
|
24020
23818
|
var endIndex = useMemo(function () {
|
|
24021
23819
|
return startIndex + viewCount;
|
|
24022
23820
|
}, [startIndex, viewCount]);
|
|
24023
23821
|
//表格偏移量
|
|
24024
|
-
var
|
|
24025
|
-
|
|
24026
|
-
offsetWidth =
|
|
24027
|
-
setOffset =
|
|
23822
|
+
var _useState13 = useState(0),
|
|
23823
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
23824
|
+
offsetWidth = _useState14[0],
|
|
23825
|
+
setOffset = _useState14[1];
|
|
24028
23826
|
useEffect(function () {
|
|
24029
23827
|
setTimeout(function () {
|
|
24030
23828
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -31328,11 +31126,11 @@ var valueType = {
|
|
|
31328
31126
|
};
|
|
31329
31127
|
|
|
31330
31128
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
31331
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
31332
|
-
return
|
|
31333
|
-
while (1) switch (_context.
|
|
31129
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(dictionaryCode) {
|
|
31130
|
+
return _regenerator().w(function (_context) {
|
|
31131
|
+
while (1) switch (_context.n) {
|
|
31334
31132
|
case 0:
|
|
31335
|
-
_context.
|
|
31133
|
+
_context.n = 1;
|
|
31336
31134
|
return request$2({
|
|
31337
31135
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
31338
31136
|
converter: function converter(_ref2) {
|
|
@@ -31345,11 +31143,8 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
31345
31143
|
});
|
|
31346
31144
|
}
|
|
31347
31145
|
});
|
|
31348
|
-
case
|
|
31349
|
-
return _context.
|
|
31350
|
-
case 3:
|
|
31351
|
-
case "end":
|
|
31352
|
-
return _context.stop();
|
|
31146
|
+
case 1:
|
|
31147
|
+
return _context.a(2, _context.v);
|
|
31353
31148
|
}
|
|
31354
31149
|
}, _callee);
|
|
31355
31150
|
}));
|
|
@@ -31396,12 +31191,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31396
31191
|
value: false
|
|
31397
31192
|
}];
|
|
31398
31193
|
var ref = useRef();
|
|
31399
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
31400
|
-
var _ref$current, source;
|
|
31401
|
-
return
|
|
31402
|
-
while (1) switch (_context.
|
|
31194
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
31195
|
+
var _ref$current, source, _t, _t2;
|
|
31196
|
+
return _regenerator().w(function (_context) {
|
|
31197
|
+
while (1) switch (_context.n) {
|
|
31403
31198
|
case 0:
|
|
31404
|
-
_context.
|
|
31199
|
+
_context.n = 1;
|
|
31405
31200
|
return setIsShowAndType(function (prev) {
|
|
31406
31201
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
31407
31202
|
return {
|
|
@@ -31412,40 +31207,39 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31412
31207
|
}
|
|
31413
31208
|
return prev;
|
|
31414
31209
|
});
|
|
31415
|
-
case
|
|
31210
|
+
case 1:
|
|
31416
31211
|
if (!record.dictionaryCode) {
|
|
31417
|
-
_context.
|
|
31212
|
+
_context.n = 7;
|
|
31418
31213
|
break;
|
|
31419
31214
|
}
|
|
31420
31215
|
if (!(record.choiceType == 20)) {
|
|
31421
|
-
_context.
|
|
31216
|
+
_context.n = 2;
|
|
31422
31217
|
break;
|
|
31423
31218
|
}
|
|
31424
|
-
|
|
31425
|
-
_context.
|
|
31219
|
+
_t = getDictionarySource(record.dictionaryCode);
|
|
31220
|
+
_context.n = 6;
|
|
31426
31221
|
break;
|
|
31427
|
-
case
|
|
31222
|
+
case 2:
|
|
31428
31223
|
if (!(record.choiceType == 30)) {
|
|
31429
|
-
_context.
|
|
31224
|
+
_context.n = 4;
|
|
31430
31225
|
break;
|
|
31431
31226
|
}
|
|
31432
|
-
_context.
|
|
31227
|
+
_context.n = 3;
|
|
31433
31228
|
return getDynamicDict(record.dictionaryCode);
|
|
31434
|
-
case
|
|
31435
|
-
|
|
31436
|
-
_context.
|
|
31229
|
+
case 3:
|
|
31230
|
+
_t2 = _context.v;
|
|
31231
|
+
_context.n = 5;
|
|
31437
31232
|
break;
|
|
31438
|
-
case
|
|
31439
|
-
|
|
31440
|
-
case
|
|
31441
|
-
|
|
31442
|
-
case
|
|
31443
|
-
source =
|
|
31233
|
+
case 4:
|
|
31234
|
+
_t2 = [];
|
|
31235
|
+
case 5:
|
|
31236
|
+
_t = _t2;
|
|
31237
|
+
case 6:
|
|
31238
|
+
source = _t;
|
|
31444
31239
|
// @ts-ignore
|
|
31445
31240
|
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
31446
|
-
case
|
|
31447
|
-
|
|
31448
|
-
return _context.stop();
|
|
31241
|
+
case 7:
|
|
31242
|
+
return _context.a(2);
|
|
31449
31243
|
}
|
|
31450
31244
|
}, _callee);
|
|
31451
31245
|
})));
|
|
@@ -31510,10 +31304,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31510
31304
|
source: {
|
|
31511
31305
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
31512
31306
|
type: function () {
|
|
31513
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
31307
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
|
|
31514
31308
|
var form, values, name, relates, source;
|
|
31515
|
-
return
|
|
31516
|
-
while (1) switch (_context2.
|
|
31309
|
+
return _regenerator().w(function (_context2) {
|
|
31310
|
+
while (1) switch (_context2.n) {
|
|
31517
31311
|
case 0:
|
|
31518
31312
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
31519
31313
|
if (values[0]) {
|
|
@@ -31522,19 +31316,18 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31522
31316
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
31523
31317
|
}
|
|
31524
31318
|
if (!values[1]) {
|
|
31525
|
-
_context2.
|
|
31319
|
+
_context2.n = 2;
|
|
31526
31320
|
break;
|
|
31527
31321
|
}
|
|
31528
|
-
_context2.
|
|
31322
|
+
_context2.n = 1;
|
|
31529
31323
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
31530
|
-
case
|
|
31531
|
-
source = _context2.
|
|
31324
|
+
case 1:
|
|
31325
|
+
source = _context2.v;
|
|
31532
31326
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
31533
31327
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
31534
31328
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
31535
|
-
case
|
|
31536
|
-
|
|
31537
|
-
return _context2.stop();
|
|
31329
|
+
case 2:
|
|
31330
|
+
return _context2.a(2);
|
|
31538
31331
|
}
|
|
31539
31332
|
}, _callee2);
|
|
31540
31333
|
}));
|
|
@@ -31990,25 +31783,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31990
31783
|
source: {
|
|
31991
31784
|
relates: ['choiceType', 'inputType'],
|
|
31992
31785
|
type: function () {
|
|
31993
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
31786
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
|
|
31994
31787
|
var values, name, form, source;
|
|
31995
|
-
return
|
|
31996
|
-
while (1) switch (_context3.
|
|
31788
|
+
return _regenerator().w(function (_context3) {
|
|
31789
|
+
while (1) switch (_context3.n) {
|
|
31997
31790
|
case 0:
|
|
31998
|
-
values =
|
|
31791
|
+
values = _ref0.values, name = _ref0.name, form = _ref0.form;
|
|
31999
31792
|
if (values[1] === 40) {
|
|
32000
31793
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
32001
31794
|
form.setFieldVisible(name, false);
|
|
32002
31795
|
}
|
|
32003
31796
|
if (!(values[0] === 30)) {
|
|
32004
|
-
_context3.
|
|
31797
|
+
_context3.n = 2;
|
|
32005
31798
|
break;
|
|
32006
31799
|
}
|
|
32007
|
-
_context3.
|
|
31800
|
+
_context3.n = 1;
|
|
32008
31801
|
return request$2({
|
|
32009
31802
|
url: '/basic/dictDynamicItem/queryList',
|
|
32010
|
-
converter: function converter(
|
|
32011
|
-
var data =
|
|
31803
|
+
converter: function converter(_ref1) {
|
|
31804
|
+
var data = _ref1.data;
|
|
32012
31805
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32013
31806
|
return {
|
|
32014
31807
|
text: d.dictCode,
|
|
@@ -32017,17 +31810,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32017
31810
|
});
|
|
32018
31811
|
}
|
|
32019
31812
|
});
|
|
32020
|
-
case
|
|
32021
|
-
source = _context3.
|
|
31813
|
+
case 1:
|
|
31814
|
+
source = _context3.v;
|
|
32022
31815
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
32023
31816
|
form.setFieldVisible(name, true);
|
|
32024
|
-
_context3.
|
|
31817
|
+
_context3.n = 3;
|
|
32025
31818
|
break;
|
|
32026
|
-
case
|
|
31819
|
+
case 2:
|
|
32027
31820
|
form.setFieldVisible(name, false);
|
|
32028
|
-
case
|
|
32029
|
-
|
|
32030
|
-
return _context3.stop();
|
|
31821
|
+
case 3:
|
|
31822
|
+
return _context3.a(2);
|
|
32031
31823
|
}
|
|
32032
31824
|
}, _callee3);
|
|
32033
31825
|
}));
|
|
@@ -32042,8 +31834,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32042
31834
|
name: 'enumeration',
|
|
32043
31835
|
label: '维护自定义选项',
|
|
32044
31836
|
field: {
|
|
32045
|
-
type: function type(
|
|
32046
|
-
var form =
|
|
31837
|
+
type: function type(_ref10) {
|
|
31838
|
+
var form = _ref10.form;
|
|
32047
31839
|
return /*#__PURE__*/React$1.createElement(Button, {
|
|
32048
31840
|
type: 'link',
|
|
32049
31841
|
onClick: function onClick() {
|
|
@@ -32069,10 +31861,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32069
31861
|
dependency: {
|
|
32070
31862
|
source: {
|
|
32071
31863
|
relates: ['choiceType'],
|
|
32072
|
-
type: function type(
|
|
32073
|
-
var values =
|
|
32074
|
-
name =
|
|
32075
|
-
form =
|
|
31864
|
+
type: function type(_ref11) {
|
|
31865
|
+
var values = _ref11.values,
|
|
31866
|
+
name = _ref11.name,
|
|
31867
|
+
form = _ref11.form;
|
|
32076
31868
|
if (values[0] === 10) {
|
|
32077
31869
|
form.setFieldVisible(name, true);
|
|
32078
31870
|
} else {
|
|
@@ -32088,10 +31880,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32088
31880
|
dependency: {
|
|
32089
31881
|
visible: {
|
|
32090
31882
|
relates: ['choiceType'],
|
|
32091
|
-
type: function type(
|
|
32092
|
-
var name =
|
|
32093
|
-
values =
|
|
32094
|
-
form =
|
|
31883
|
+
type: function type(_ref12) {
|
|
31884
|
+
var name = _ref12.name,
|
|
31885
|
+
values = _ref12.values,
|
|
31886
|
+
form = _ref12.form;
|
|
32095
31887
|
if (values[0] == 330) {
|
|
32096
31888
|
form.setFieldVisible(name, true);
|
|
32097
31889
|
} else {
|
|
@@ -32115,8 +31907,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32115
31907
|
params: {
|
|
32116
31908
|
'qp-businessType-eq': record.businessType
|
|
32117
31909
|
},
|
|
32118
|
-
converter: function converter(
|
|
32119
|
-
var data =
|
|
31910
|
+
converter: function converter(_ref13) {
|
|
31911
|
+
var data = _ref13.data;
|
|
32120
31912
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32121
31913
|
return {
|
|
32122
31914
|
text: d.name,
|
|
@@ -32156,8 +31948,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32156
31948
|
'qp-businessType-eq': record.businessType,
|
|
32157
31949
|
'qp-status-eq': 1
|
|
32158
31950
|
},
|
|
32159
|
-
converter: function converter(
|
|
32160
|
-
var data =
|
|
31951
|
+
converter: function converter(_ref14) {
|
|
31952
|
+
var data = _ref14.data;
|
|
32161
31953
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32162
31954
|
var _d$code;
|
|
32163
31955
|
return {
|
|
@@ -32185,8 +31977,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32185
31977
|
remoteSource: {
|
|
32186
31978
|
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),
|
|
32187
31979
|
method: 'get',
|
|
32188
|
-
converter: function converter(
|
|
32189
|
-
var data =
|
|
31980
|
+
converter: function converter(_ref15) {
|
|
31981
|
+
var data = _ref15.data;
|
|
32190
31982
|
if (lineDetail.moduleType == 1) {
|
|
32191
31983
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32192
31984
|
return {
|
|
@@ -32212,16 +32004,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32212
32004
|
width: 900,
|
|
32213
32005
|
maskClosable: false,
|
|
32214
32006
|
onOk: function () {
|
|
32215
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
32007
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
32216
32008
|
var _ref$current4, _res$editableStatus;
|
|
32217
32009
|
var res, _res$defaultValue;
|
|
32218
|
-
return
|
|
32219
|
-
while (1) switch (_context4.
|
|
32010
|
+
return _regenerator().w(function (_context4) {
|
|
32011
|
+
while (1) switch (_context4.n) {
|
|
32220
32012
|
case 0:
|
|
32221
|
-
_context4.
|
|
32013
|
+
_context4.n = 1;
|
|
32222
32014
|
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
32223
|
-
case
|
|
32224
|
-
res = _context4.
|
|
32015
|
+
case 1:
|
|
32016
|
+
res = _context4.v;
|
|
32225
32017
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
32226
32018
|
res.fieldGroup = record.fieldGroup;
|
|
32227
32019
|
res.businessType = record.businessType;
|
|
@@ -32248,7 +32040,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32248
32040
|
delete res.formula;
|
|
32249
32041
|
delete res.showValue;
|
|
32250
32042
|
if (!(mode === 'create')) {
|
|
32251
|
-
_context4.
|
|
32043
|
+
_context4.n = 2;
|
|
32252
32044
|
break;
|
|
32253
32045
|
}
|
|
32254
32046
|
request$2({
|
|
@@ -32260,8 +32052,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32260
32052
|
onParentOk();
|
|
32261
32053
|
}
|
|
32262
32054
|
});
|
|
32263
|
-
return _context4.
|
|
32264
|
-
case
|
|
32055
|
+
return _context4.a(2);
|
|
32056
|
+
case 2:
|
|
32265
32057
|
request$2({
|
|
32266
32058
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
32267
32059
|
method: 'PATCH',
|
|
@@ -32271,9 +32063,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32271
32063
|
onParentOk();
|
|
32272
32064
|
}
|
|
32273
32065
|
});
|
|
32274
|
-
case
|
|
32275
|
-
|
|
32276
|
-
return _context4.stop();
|
|
32066
|
+
case 3:
|
|
32067
|
+
return _context4.a(2);
|
|
32277
32068
|
}
|
|
32278
32069
|
}, _callee4);
|
|
32279
32070
|
}));
|
|
@@ -32729,21 +32520,21 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
32729
32520
|
jsonEditorVal = _useState8[0],
|
|
32730
32521
|
setJsonEditorVal = _useState8[1];
|
|
32731
32522
|
var _useState9 = useState({}),
|
|
32732
|
-
|
|
32733
|
-
moduleParams =
|
|
32734
|
-
setModuleParams =
|
|
32735
|
-
var
|
|
32523
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
32524
|
+
moduleParams = _useState0[0],
|
|
32525
|
+
setModuleParams = _useState0[1];
|
|
32526
|
+
var _useState1 = useState('main'),
|
|
32527
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
32528
|
+
activeKey = _useState10[0],
|
|
32529
|
+
setActiveKey = _useState10[1]; //默认详情页配置
|
|
32530
|
+
var _useState11 = useState({}),
|
|
32736
32531
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32737
|
-
|
|
32738
|
-
|
|
32739
|
-
var _useState13 = useState(
|
|
32532
|
+
tablesConfigParams = _useState12[0],
|
|
32533
|
+
setTablesConfigParams = _useState12[1];
|
|
32534
|
+
var _useState13 = useState([]),
|
|
32740
32535
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32741
|
-
|
|
32742
|
-
|
|
32743
|
-
var _useState15 = useState([]),
|
|
32744
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
32745
|
-
tableJsonEditorValsArr = _useState16[0],
|
|
32746
|
-
setTableJsonEditorValsArr = _useState16[1];
|
|
32536
|
+
tableJsonEditorValsArr = _useState14[0],
|
|
32537
|
+
setTableJsonEditorValsArr = _useState14[1];
|
|
32747
32538
|
useEffect(function () {
|
|
32748
32539
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32749
32540
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -33119,11 +32910,11 @@ function getMetaData(_x) {
|
|
|
33119
32910
|
|
|
33120
32911
|
// 获取数据
|
|
33121
32912
|
function _getMetaData() {
|
|
33122
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
33123
|
-
return
|
|
33124
|
-
while (1) switch (_context.
|
|
32913
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id) {
|
|
32914
|
+
return _regenerator().w(function (_context) {
|
|
32915
|
+
while (1) switch (_context.n) {
|
|
33125
32916
|
case 0:
|
|
33126
|
-
return _context.
|
|
32917
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
33127
32918
|
request$3('/basic/entityProperty/listNoPage', {
|
|
33128
32919
|
params: {
|
|
33129
32920
|
'qp-entityId-eq': id
|
|
@@ -33135,9 +32926,6 @@ function _getMetaData() {
|
|
|
33135
32926
|
reject([]);
|
|
33136
32927
|
});
|
|
33137
32928
|
}));
|
|
33138
|
-
case 1:
|
|
33139
|
-
case "end":
|
|
33140
|
-
return _context.stop();
|
|
33141
32929
|
}
|
|
33142
32930
|
}, _callee);
|
|
33143
32931
|
}));
|
|
@@ -33341,11 +33129,11 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33341
33129
|
tableState = _useState4[0],
|
|
33342
33130
|
setTableState = _useState4[1];
|
|
33343
33131
|
var handleOpen = /*#__PURE__*/function () {
|
|
33344
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33132
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33345
33133
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
33346
33134
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
33347
|
-
return
|
|
33348
|
-
while (1) switch (_context.
|
|
33135
|
+
return _regenerator().w(function (_context) {
|
|
33136
|
+
while (1) switch (_context.n) {
|
|
33349
33137
|
case 0:
|
|
33350
33138
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
33351
33139
|
isSearchForm: props.isSearchForm,
|
|
@@ -33353,16 +33141,16 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33353
33141
|
searchFormData: searchFormData
|
|
33354
33142
|
});
|
|
33355
33143
|
if (requestConfigNew) {
|
|
33356
|
-
_context.
|
|
33144
|
+
_context.n = 1;
|
|
33357
33145
|
break;
|
|
33358
33146
|
}
|
|
33359
|
-
return _context.
|
|
33360
|
-
case
|
|
33147
|
+
return _context.a(2);
|
|
33148
|
+
case 1:
|
|
33361
33149
|
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;
|
|
33362
|
-
_context.
|
|
33150
|
+
_context.n = 2;
|
|
33363
33151
|
return getMetaData(metaDataId);
|
|
33364
|
-
case
|
|
33365
|
-
metaData = _context.
|
|
33152
|
+
case 2:
|
|
33153
|
+
metaData = _context.v;
|
|
33366
33154
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
33367
33155
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
33368
33156
|
})) || [];
|
|
@@ -33402,9 +33190,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33402
33190
|
// @ts-ignore
|
|
33403
33191
|
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);
|
|
33404
33192
|
}
|
|
33405
|
-
case
|
|
33406
|
-
|
|
33407
|
-
return _context.stop();
|
|
33193
|
+
case 3:
|
|
33194
|
+
return _context.a(2);
|
|
33408
33195
|
}
|
|
33409
33196
|
}, _callee);
|
|
33410
33197
|
}));
|
|
@@ -33507,7 +33294,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33507
33294
|
}, [requestConfig, tableState.columns]);
|
|
33508
33295
|
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';
|
|
33509
33296
|
var handleOk = function handleOk(rowData) {
|
|
33510
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
33297
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
|
|
33511
33298
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
33512
33299
|
//多选数据处理
|
|
33513
33300
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -33518,9 +33305,9 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33518
33305
|
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()) || [];
|
|
33519
33306
|
var realSelectedRows = selectedRows;
|
|
33520
33307
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
33521
|
-
var _queryTableRef$
|
|
33308
|
+
var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
|
|
33522
33309
|
// @ts-ignore
|
|
33523
|
-
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33310
|
+
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()) || [];
|
|
33524
33311
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
33525
33312
|
return selectedKesys.includes(s[rowKey]);
|
|
33526
33313
|
});
|
|
@@ -33553,10 +33340,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33553
33340
|
});
|
|
33554
33341
|
}
|
|
33555
33342
|
mappings.map(function (item) {
|
|
33556
|
-
var _props$
|
|
33557
|
-
if (((_props$
|
|
33558
|
-
var _props$
|
|
33559
|
-
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$
|
|
33343
|
+
var _props$customSelector0, _props$customSelector1, _props$customSelector10, _props$customSelector11;
|
|
33344
|
+
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]) {
|
|
33345
|
+
var _props$customSelector12, _props$customSelector13;
|
|
33346
|
+
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];
|
|
33560
33347
|
}
|
|
33561
33348
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
33562
33349
|
});
|
|
@@ -33611,10 +33398,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33611
33398
|
}
|
|
33612
33399
|
props.onCancel();
|
|
33613
33400
|
//@ts-ignore
|
|
33614
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33401
|
+
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();
|
|
33615
33402
|
};
|
|
33616
33403
|
var config = useMemo(function () {
|
|
33617
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
33404
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
|
|
33618
33405
|
var returnConfig = {
|
|
33619
33406
|
size: 'small',
|
|
33620
33407
|
needPageHeader: false,
|
|
@@ -33623,7 +33410,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33623
33410
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33624
33411
|
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) {
|
|
33625
33412
|
return v.key || v;
|
|
33626
|
-
})) || (props === null || props === void 0 ? void 0 : (_props$
|
|
33413
|
+
})) || (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))
|
|
33627
33414
|
} : false,
|
|
33628
33415
|
remoteDataSource: remoteDataSource,
|
|
33629
33416
|
fields: tableState.fields,
|
|
@@ -33631,8 +33418,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33631
33418
|
rowKey: rowKey,
|
|
33632
33419
|
tableProps: !isView && {
|
|
33633
33420
|
rowClassName: function rowClassName(record) {
|
|
33634
|
-
var _props$
|
|
33635
|
-
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$
|
|
33421
|
+
var _props$ctx1, _props$value3, _props$ctx10, _props$ctx10$form;
|
|
33422
|
+
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' : '';
|
|
33636
33423
|
},
|
|
33637
33424
|
onRow: function onRow(record) {
|
|
33638
33425
|
return {
|
|
@@ -33677,10 +33464,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33677
33464
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React$1.createElement(Button, {
|
|
33678
33465
|
type: "default",
|
|
33679
33466
|
onClick: function onClick() {
|
|
33680
|
-
var _queryTableRef$
|
|
33467
|
+
var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
|
|
33681
33468
|
props.onCancel();
|
|
33682
33469
|
//@ts-ignore
|
|
33683
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33470
|
+
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();
|
|
33684
33471
|
}
|
|
33685
33472
|
}, "\u53D6\u6D88"))));
|
|
33686
33473
|
});
|
|
@@ -33904,19 +33691,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33904
33691
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33905
33692
|
handSource = _useState2[0],
|
|
33906
33693
|
setHandSource = _useState2[1];
|
|
33907
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
33694
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33908
33695
|
var resData, data;
|
|
33909
|
-
return
|
|
33910
|
-
while (1) switch (_context.
|
|
33696
|
+
return _regenerator().w(function (_context) {
|
|
33697
|
+
while (1) switch (_context.n) {
|
|
33911
33698
|
case 0:
|
|
33912
33699
|
if (!(!source && initRequestSource)) {
|
|
33913
|
-
_context.
|
|
33700
|
+
_context.n = 2;
|
|
33914
33701
|
break;
|
|
33915
33702
|
}
|
|
33916
|
-
_context.
|
|
33703
|
+
_context.n = 1;
|
|
33917
33704
|
return initRequestSource();
|
|
33918
|
-
case
|
|
33919
|
-
resData = _context.
|
|
33705
|
+
case 1:
|
|
33706
|
+
resData = _context.v;
|
|
33920
33707
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
33921
33708
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
33922
33709
|
label: item.text,
|
|
@@ -33924,9 +33711,8 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33924
33711
|
});
|
|
33925
33712
|
})) || [];
|
|
33926
33713
|
setHandSource(data);
|
|
33927
|
-
case
|
|
33928
|
-
|
|
33929
|
-
return _context.stop();
|
|
33714
|
+
case 2:
|
|
33715
|
+
return _context.a(2);
|
|
33930
33716
|
}
|
|
33931
33717
|
}, _callee);
|
|
33932
33718
|
})), []);
|
|
@@ -34056,20 +33842,17 @@ function getRegularThresholdRange(_x) {
|
|
|
34056
33842
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
34057
33843
|
}
|
|
34058
33844
|
function _getRegularThresholdRange() {
|
|
34059
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
34060
|
-
return
|
|
34061
|
-
while (1) switch (_context.
|
|
33845
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
33846
|
+
return _regenerator().w(function (_context) {
|
|
33847
|
+
while (1) switch (_context.n) {
|
|
34062
33848
|
case 0:
|
|
34063
|
-
return _context.
|
|
33849
|
+
return _context.a(2, requestUtil({
|
|
34064
33850
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
34065
33851
|
method: 'POST',
|
|
34066
33852
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
34067
33853
|
queryIdentify: undefined
|
|
34068
33854
|
})
|
|
34069
33855
|
}));
|
|
34070
|
-
case 1:
|
|
34071
|
-
case "end":
|
|
34072
|
-
return _context.stop();
|
|
34073
33856
|
}
|
|
34074
33857
|
}, _callee);
|
|
34075
33858
|
}));
|
|
@@ -34210,24 +33993,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34210
33993
|
};
|
|
34211
33994
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
34212
33995
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
34213
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33996
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
34214
33997
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
34215
|
-
return
|
|
34216
|
-
while (1) switch (_context.
|
|
33998
|
+
return _regenerator().w(function (_context) {
|
|
33999
|
+
while (1) switch (_context.n) {
|
|
34217
34000
|
case 0:
|
|
34218
34001
|
if (queryIdentify) {
|
|
34219
|
-
_context.
|
|
34002
|
+
_context.n = 1;
|
|
34220
34003
|
break;
|
|
34221
34004
|
}
|
|
34222
|
-
return _context.
|
|
34223
|
-
case
|
|
34005
|
+
return _context.a(2);
|
|
34006
|
+
case 1:
|
|
34224
34007
|
thresholdQuery = _this.state.thresholdQuery;
|
|
34225
34008
|
extraRequestUrl = '';
|
|
34226
34009
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
34227
34010
|
if (!queryIdentityInfo.find(function (item) {
|
|
34228
34011
|
return item.identity == propertyCode;
|
|
34229
34012
|
})) {
|
|
34230
|
-
_context.
|
|
34013
|
+
_context.n = 3;
|
|
34231
34014
|
break;
|
|
34232
34015
|
}
|
|
34233
34016
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -34241,15 +34024,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34241
34024
|
if (!needQueryList.some(function (item) {
|
|
34242
34025
|
return !querParams[item] || !querParams[item].length;
|
|
34243
34026
|
})) {
|
|
34244
|
-
_context.
|
|
34027
|
+
_context.n = 2;
|
|
34245
34028
|
break;
|
|
34246
34029
|
}
|
|
34247
|
-
return _context.
|
|
34248
|
-
case
|
|
34030
|
+
return _context.a(2);
|
|
34031
|
+
case 2:
|
|
34249
34032
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
34250
34033
|
return item.identity == propertyCode;
|
|
34251
34034
|
}).requestUrl || '';
|
|
34252
|
-
case
|
|
34035
|
+
case 3:
|
|
34253
34036
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
34254
34037
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
34255
34038
|
querParams = {
|
|
@@ -34260,7 +34043,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34260
34043
|
// querParams = { dictCode: queryIdentify }
|
|
34261
34044
|
}
|
|
34262
34045
|
if (!extraRequestUrl) {
|
|
34263
|
-
_context.
|
|
34046
|
+
_context.n = 4;
|
|
34264
34047
|
break;
|
|
34265
34048
|
}
|
|
34266
34049
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -34299,43 +34082,42 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34299
34082
|
return handleData;
|
|
34300
34083
|
}
|
|
34301
34084
|
});
|
|
34302
|
-
_context.
|
|
34085
|
+
_context.n = 8;
|
|
34303
34086
|
break;
|
|
34304
|
-
case
|
|
34087
|
+
case 4:
|
|
34305
34088
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
34306
|
-
_context.
|
|
34089
|
+
_context.n = 5;
|
|
34307
34090
|
break;
|
|
34308
34091
|
}
|
|
34309
34092
|
_this.setState({
|
|
34310
34093
|
thresholdList: queryIdentify
|
|
34311
34094
|
});
|
|
34312
|
-
_context.
|
|
34095
|
+
_context.n = 8;
|
|
34313
34096
|
break;
|
|
34314
|
-
case
|
|
34097
|
+
case 5:
|
|
34315
34098
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
34316
|
-
_context.
|
|
34099
|
+
_context.n = 6;
|
|
34317
34100
|
break;
|
|
34318
34101
|
}
|
|
34319
34102
|
// TODO待处理
|
|
34320
34103
|
_this.setState({
|
|
34321
34104
|
thresholdList: []
|
|
34322
34105
|
});
|
|
34323
|
-
_context.
|
|
34106
|
+
_context.n = 8;
|
|
34324
34107
|
break;
|
|
34325
|
-
case
|
|
34108
|
+
case 6:
|
|
34326
34109
|
querParams.queryIdentify = queryIdentify;
|
|
34327
|
-
_context.
|
|
34110
|
+
_context.n = 7;
|
|
34328
34111
|
return getRegularThresholdRange(querParams);
|
|
34329
|
-
case
|
|
34330
|
-
res = _context.
|
|
34112
|
+
case 7:
|
|
34113
|
+
res = _context.v;
|
|
34331
34114
|
if (handleError(res)) {
|
|
34332
34115
|
_this.setState({
|
|
34333
34116
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
34334
34117
|
});
|
|
34335
34118
|
}
|
|
34336
|
-
case
|
|
34337
|
-
|
|
34338
|
-
return _context.stop();
|
|
34119
|
+
case 8:
|
|
34120
|
+
return _context.a(2);
|
|
34339
34121
|
}
|
|
34340
34122
|
}, _callee);
|
|
34341
34123
|
}));
|
|
@@ -35167,11 +34949,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35167
34949
|
isAll: true,
|
|
35168
34950
|
needNameAndCode: true,
|
|
35169
34951
|
notChangeOnSelect: true,
|
|
35170
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35171
|
-
return
|
|
35172
|
-
while (1) switch (_context2.
|
|
34952
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
34953
|
+
return _regenerator().w(function (_context2) {
|
|
34954
|
+
while (1) switch (_context2.n) {
|
|
35173
34955
|
case 0:
|
|
35174
|
-
_context2.
|
|
34956
|
+
_context2.n = 1;
|
|
35175
34957
|
return request$2({
|
|
35176
34958
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35177
34959
|
method: 'get',
|
|
@@ -35188,11 +34970,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35188
34970
|
return handleData;
|
|
35189
34971
|
}
|
|
35190
34972
|
});
|
|
35191
|
-
case
|
|
35192
|
-
return _context2.
|
|
35193
|
-
case 3:
|
|
35194
|
-
case "end":
|
|
35195
|
-
return _context2.stop();
|
|
34973
|
+
case 1:
|
|
34974
|
+
return _context2.a(2, _context2.v);
|
|
35196
34975
|
}
|
|
35197
34976
|
}, _callee2);
|
|
35198
34977
|
})),
|
|
@@ -35216,11 +34995,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35216
34995
|
isAll: true,
|
|
35217
34996
|
needNameAndCode: true,
|
|
35218
34997
|
notChangeOnSelect: true,
|
|
35219
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35220
|
-
return
|
|
35221
|
-
while (1) switch (_context3.
|
|
34998
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
34999
|
+
return _regenerator().w(function (_context3) {
|
|
35000
|
+
while (1) switch (_context3.n) {
|
|
35222
35001
|
case 0:
|
|
35223
|
-
_context3.
|
|
35002
|
+
_context3.n = 1;
|
|
35224
35003
|
return request$2({
|
|
35225
35004
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35226
35005
|
method: 'get',
|
|
@@ -35237,11 +35016,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35237
35016
|
return handleData;
|
|
35238
35017
|
}
|
|
35239
35018
|
});
|
|
35240
|
-
case
|
|
35241
|
-
return _context3.
|
|
35242
|
-
case 3:
|
|
35243
|
-
case "end":
|
|
35244
|
-
return _context3.stop();
|
|
35019
|
+
case 1:
|
|
35020
|
+
return _context3.a(2, _context3.v);
|
|
35245
35021
|
}
|
|
35246
35022
|
}, _callee3);
|
|
35247
35023
|
})),
|
|
@@ -35267,11 +35043,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35267
35043
|
isAll: true,
|
|
35268
35044
|
needNameAndCode: true,
|
|
35269
35045
|
notChangeOnSelect: true,
|
|
35270
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35271
|
-
return
|
|
35272
|
-
while (1) switch (_context4.
|
|
35046
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
35047
|
+
return _regenerator().w(function (_context4) {
|
|
35048
|
+
while (1) switch (_context4.n) {
|
|
35273
35049
|
case 0:
|
|
35274
|
-
_context4.
|
|
35050
|
+
_context4.n = 1;
|
|
35275
35051
|
return request$2({
|
|
35276
35052
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35277
35053
|
method: 'get',
|
|
@@ -35288,11 +35064,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35288
35064
|
return handleData;
|
|
35289
35065
|
}
|
|
35290
35066
|
});
|
|
35291
|
-
case
|
|
35292
|
-
return _context4.
|
|
35293
|
-
case 3:
|
|
35294
|
-
case "end":
|
|
35295
|
-
return _context4.stop();
|
|
35067
|
+
case 1:
|
|
35068
|
+
return _context4.a(2, _context4.v);
|
|
35296
35069
|
}
|
|
35297
35070
|
}, _callee4);
|
|
35298
35071
|
})),
|
|
@@ -35979,8 +35752,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35979
35752
|
}
|
|
35980
35753
|
}));
|
|
35981
35754
|
} else {
|
|
35982
|
-
var
|
|
35983
|
-
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((
|
|
35755
|
+
var _values0;
|
|
35756
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
|
|
35984
35757
|
return {
|
|
35985
35758
|
key: s,
|
|
35986
35759
|
label: valueNames[vIndex],
|
|
@@ -36258,8 +36031,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36258
36031
|
}
|
|
36259
36032
|
}));
|
|
36260
36033
|
} else {
|
|
36261
|
-
var
|
|
36262
|
-
var
|
|
36034
|
+
var _values1;
|
|
36035
|
+
var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
|
|
36263
36036
|
return {
|
|
36264
36037
|
key: s,
|
|
36265
36038
|
label: valueNames[vIndex],
|
|
@@ -36281,7 +36054,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36281
36054
|
} : {}),
|
|
36282
36055
|
disabled: disabled,
|
|
36283
36056
|
labelInValue: true,
|
|
36284
|
-
value:
|
|
36057
|
+
value: _currentValue0,
|
|
36285
36058
|
requestConfig: {
|
|
36286
36059
|
filterInit: 'qp-code-in'
|
|
36287
36060
|
},
|
|
@@ -36374,8 +36147,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36374
36147
|
}
|
|
36375
36148
|
}));
|
|
36376
36149
|
} else {
|
|
36377
|
-
var
|
|
36378
|
-
var
|
|
36150
|
+
var _values10;
|
|
36151
|
+
var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
36379
36152
|
return {
|
|
36380
36153
|
key: s,
|
|
36381
36154
|
label: valueNames[vIndex],
|
|
@@ -36397,7 +36170,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36397
36170
|
} : {}),
|
|
36398
36171
|
disabled: disabled,
|
|
36399
36172
|
labelInValue: true,
|
|
36400
|
-
value:
|
|
36173
|
+
value: _currentValue1,
|
|
36401
36174
|
requestConfig: {
|
|
36402
36175
|
filterInit: 'qp-code-in'
|
|
36403
36176
|
},
|
|
@@ -36490,8 +36263,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36490
36263
|
}
|
|
36491
36264
|
}));
|
|
36492
36265
|
} else {
|
|
36493
|
-
var
|
|
36494
|
-
var
|
|
36266
|
+
var _values11;
|
|
36267
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
36495
36268
|
return {
|
|
36496
36269
|
key: s,
|
|
36497
36270
|
label: valueNames[vIndex],
|
|
@@ -36513,7 +36286,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36513
36286
|
} : {}),
|
|
36514
36287
|
disabled: disabled,
|
|
36515
36288
|
labelInValue: true,
|
|
36516
|
-
value:
|
|
36289
|
+
value: _currentValue10,
|
|
36517
36290
|
requestConfig: {
|
|
36518
36291
|
filterInit: 'qp-brandCode-in'
|
|
36519
36292
|
},
|
|
@@ -36704,8 +36477,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36704
36477
|
}
|
|
36705
36478
|
}));
|
|
36706
36479
|
} else {
|
|
36707
|
-
var
|
|
36708
|
-
var
|
|
36480
|
+
var _values12;
|
|
36481
|
+
var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
36709
36482
|
return {
|
|
36710
36483
|
key: s,
|
|
36711
36484
|
label: valueNames[vIndex]
|
|
@@ -36733,7 +36506,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36733
36506
|
isSearchForm: true,
|
|
36734
36507
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36735
36508
|
disabled: disabled,
|
|
36736
|
-
value:
|
|
36509
|
+
value: _currentValue11,
|
|
36737
36510
|
onChange: function onChange(value, sourceList) {
|
|
36738
36511
|
if (dataInputBusinessType === 12) {
|
|
36739
36512
|
var _value$map3, _sourceList$filter3;
|
|
@@ -37053,9 +36826,9 @@ var App$1 = function App(_ref) {
|
|
|
37053
36826
|
UpdateState(res);
|
|
37054
36827
|
};
|
|
37055
36828
|
var _useState9 = useState(false),
|
|
37056
|
-
|
|
37057
|
-
isModalVisible =
|
|
37058
|
-
setIsModalVisible =
|
|
36829
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
36830
|
+
isModalVisible = _useState0[0],
|
|
36831
|
+
setIsModalVisible = _useState0[1];
|
|
37059
36832
|
var showModal = function showModal() {
|
|
37060
36833
|
setIsModalVisible(true);
|
|
37061
36834
|
};
|
|
@@ -37536,27 +37309,26 @@ function RenderCompItem(props) {
|
|
|
37536
37309
|
dictData = _useState2[0],
|
|
37537
37310
|
setDictData = _useState2[1];
|
|
37538
37311
|
var getDictData = /*#__PURE__*/function () {
|
|
37539
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
37312
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
37540
37313
|
var _data$map;
|
|
37541
37314
|
var data;
|
|
37542
|
-
return
|
|
37543
|
-
while (1) switch (_context.
|
|
37315
|
+
return _regenerator().w(function (_context) {
|
|
37316
|
+
while (1) switch (_context.n) {
|
|
37544
37317
|
case 0:
|
|
37545
|
-
_context.
|
|
37318
|
+
_context.n = 1;
|
|
37546
37319
|
return request$2({
|
|
37547
37320
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
37548
37321
|
});
|
|
37549
|
-
case
|
|
37550
|
-
data = _context.
|
|
37322
|
+
case 1:
|
|
37323
|
+
data = _context.v;
|
|
37551
37324
|
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) {
|
|
37552
37325
|
return {
|
|
37553
37326
|
text: item.dictItemName,
|
|
37554
37327
|
value: item.dictItemCode
|
|
37555
37328
|
};
|
|
37556
37329
|
}));
|
|
37557
|
-
case
|
|
37558
|
-
|
|
37559
|
-
return _context.stop();
|
|
37330
|
+
case 2:
|
|
37331
|
+
return _context.a(2);
|
|
37560
37332
|
}
|
|
37561
37333
|
}, _callee);
|
|
37562
37334
|
}));
|
|
@@ -37797,11 +37569,11 @@ function RenderCompItem(props) {
|
|
|
37797
37569
|
needNameAndCode: true,
|
|
37798
37570
|
notChangeOnSelect: true,
|
|
37799
37571
|
initRequestSource: function () {
|
|
37800
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
37801
|
-
return
|
|
37802
|
-
while (1) switch (_context2.
|
|
37572
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
37573
|
+
return _regenerator().w(function (_context2) {
|
|
37574
|
+
while (1) switch (_context2.n) {
|
|
37803
37575
|
case 0:
|
|
37804
|
-
_context2.
|
|
37576
|
+
_context2.n = 1;
|
|
37805
37577
|
return request$2({
|
|
37806
37578
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
37807
37579
|
method: 'get',
|
|
@@ -37819,11 +37591,8 @@ function RenderCompItem(props) {
|
|
|
37819
37591
|
return handleData;
|
|
37820
37592
|
}
|
|
37821
37593
|
});
|
|
37822
|
-
case
|
|
37823
|
-
return _context2.
|
|
37824
|
-
case 3:
|
|
37825
|
-
case "end":
|
|
37826
|
-
return _context2.stop();
|
|
37594
|
+
case 1:
|
|
37595
|
+
return _context2.a(2, _context2.v);
|
|
37827
37596
|
}
|
|
37828
37597
|
}, _callee2);
|
|
37829
37598
|
}));
|
|
@@ -39874,13 +39643,13 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
39874
39643
|
ruleTypeData = _useState8[0],
|
|
39875
39644
|
setRuleTypeData = _useState8[1];
|
|
39876
39645
|
var _useState9 = useState([]),
|
|
39877
|
-
|
|
39878
|
-
ruleReturnConfig =
|
|
39879
|
-
setRuleReturnConfig =
|
|
39880
|
-
var
|
|
39881
|
-
|
|
39882
|
-
templateData =
|
|
39883
|
-
setTemplateData =
|
|
39646
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
39647
|
+
ruleReturnConfig = _useState0[0],
|
|
39648
|
+
setRuleReturnConfig = _useState0[1];
|
|
39649
|
+
var _useState1 = useState({}),
|
|
39650
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
39651
|
+
templateData = _useState10[0],
|
|
39652
|
+
setTemplateData = _useState10[1];
|
|
39884
39653
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
39885
39654
|
request$2({
|
|
39886
39655
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -40216,25 +39985,25 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
40216
39985
|
regularDataList = _useState8[0],
|
|
40217
39986
|
setRegularDataList = _useState8[1];
|
|
40218
39987
|
var _useState9 = useState([]),
|
|
40219
|
-
|
|
40220
|
-
baseRuleDetailList =
|
|
40221
|
-
setBaseRuleDetailList =
|
|
40222
|
-
var
|
|
39988
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
39989
|
+
baseRuleDetailList = _useState0[0],
|
|
39990
|
+
setBaseRuleDetailList = _useState0[1]; // 规则实例详情集合
|
|
39991
|
+
var _useState1 = useState([]),
|
|
39992
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
39993
|
+
systemVariableList = _useState10[0],
|
|
39994
|
+
setSystemVariableList = _useState10[1];
|
|
39995
|
+
var _useState11 = useState(false),
|
|
40223
39996
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
40224
|
-
|
|
40225
|
-
|
|
39997
|
+
isGetDefRuleDataRes = _useState12[0],
|
|
39998
|
+
setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
40226
39999
|
var _useState13 = useState(false),
|
|
40227
40000
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
40228
|
-
|
|
40229
|
-
|
|
40001
|
+
isGetRuleDataRes = _useState14[0],
|
|
40002
|
+
setIsGetRuleDataRes = _useState14[1];
|
|
40230
40003
|
var _useState15 = useState(false),
|
|
40231
40004
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
40232
|
-
|
|
40233
|
-
|
|
40234
|
-
var _useState17 = useState(false),
|
|
40235
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
40236
|
-
groupOtherPriorityList = _useState18[0],
|
|
40237
|
-
setGroupOtherPriorityList = _useState18[1];
|
|
40005
|
+
groupOtherPriorityList = _useState16[0],
|
|
40006
|
+
setGroupOtherPriorityList = _useState16[1];
|
|
40238
40007
|
var baseRuleRef = useRef();
|
|
40239
40008
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
40240
40009
|
// 查询规则组下所有规则实例
|