@bit-sun/business-component 4.2.0-alpha.6.8 → 4.2.0-alpha.jw-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Functional/DataValidation/index.d.ts +1 -1
- package/dist/index.esm.js +1056 -1152
- package/dist/index.js +1056 -1152
- package/package.json +1 -1
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +2 -2
- package/src/components/Business/BsLayouts/index.tsx +2 -2
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +45 -12
- package/src/components/Functional/AddSelect/index.tsx +92 -0
- package/src/components/Functional/DataValidation/index.tsx +22 -3
- package/src/components/Functional/SearchSelect/index.tsx +5 -2
- package/src/components/Solution/RuleComponent/index.js +1 -0
package/dist/index.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',
|
|
@@ -5472,6 +5292,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5472
5292
|
highestPopContainer = _props$highestPopCont === void 0 ? undefined : _props$highestPopCont,
|
|
5473
5293
|
fieldComponent = props.fieldComponent,
|
|
5474
5294
|
onSaveCallback = props.onSaveCallback,
|
|
5295
|
+
_props$returnFormat = props.returnFormat,
|
|
5296
|
+
returnFormat = _props$returnFormat === void 0 ? [] : _props$returnFormat,
|
|
5475
5297
|
selectBusinessType = props.selectBusinessType;
|
|
5476
5298
|
var _ref = rCTemp || {},
|
|
5477
5299
|
url = _ref.url,
|
|
@@ -5530,14 +5352,16 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5530
5352
|
var currentPage = 1;
|
|
5531
5353
|
var selectParamsKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filter) || 'qp-codeAndName-like';
|
|
5532
5354
|
var selectParamsInitKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filterInit) || selectParamsKey;
|
|
5533
|
-
var currentSelectProps = _objectSpread2(_objectSpread2({
|
|
5355
|
+
var currentSelectProps = _objectSpread2(_objectSpread2({
|
|
5356
|
+
// 回显字段可自定义
|
|
5357
|
+
optionLabelProp: "label"
|
|
5358
|
+
}, selectProps), {}, {
|
|
5534
5359
|
// 以下属性不可更改----设计配置项
|
|
5535
5360
|
showArrow: true,
|
|
5536
5361
|
showSearch: true,
|
|
5537
5362
|
filterOption: false,
|
|
5538
5363
|
allowClear: true,
|
|
5539
5364
|
listHeight: 160,
|
|
5540
|
-
optionLabelProp: "label",
|
|
5541
5365
|
autoClearSearchValue: false,
|
|
5542
5366
|
placement: 'bottomRight'
|
|
5543
5367
|
});
|
|
@@ -5587,29 +5411,29 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5587
5411
|
scrollPage = _useState8[0],
|
|
5588
5412
|
setScrollPage = _useState8[1];
|
|
5589
5413
|
var _useState9 = useState(0),
|
|
5590
|
-
|
|
5591
|
-
itemsTotal =
|
|
5592
|
-
setItemsTotal =
|
|
5593
|
-
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(''),
|
|
5594
5422
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
var _useState13 = useState(
|
|
5423
|
+
searchValue = _useState12[0],
|
|
5424
|
+
setSearchValue = _useState12[1];
|
|
5425
|
+
var _useState13 = useState(false),
|
|
5598
5426
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
var _useState15 = useState(
|
|
5427
|
+
isModalVisible = _useState14[0],
|
|
5428
|
+
setIsModalVisible = _useState14[1];
|
|
5429
|
+
var _useState15 = useState(initVal),
|
|
5602
5430
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
var _useState17 = useState(
|
|
5431
|
+
popvalue = _useState16[0],
|
|
5432
|
+
setPopValue = _useState16[1];
|
|
5433
|
+
var _useState17 = useState(resultSourceKey),
|
|
5606
5434
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
var _useState19 = useState(resultSourceKey),
|
|
5610
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5611
|
-
uniqueValue = _useState20[0],
|
|
5612
|
-
setUniqueValue = _useState20[1];
|
|
5435
|
+
uniqueValue = _useState18[0],
|
|
5436
|
+
setUniqueValue = _useState18[1];
|
|
5613
5437
|
var _useDebounceFn = useDebounceFn(function (v) {
|
|
5614
5438
|
// 优化搜索参数 支持传多个
|
|
5615
5439
|
var searchParams = {};
|
|
@@ -5638,58 +5462,58 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5638
5462
|
var _Form$useForm = Form.useForm(),
|
|
5639
5463
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5640
5464
|
form = _Form$useForm2[0];
|
|
5465
|
+
var _useState19 = useState(true),
|
|
5466
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5467
|
+
collapsed = _useState20[0],
|
|
5468
|
+
setCollapsed = _useState20[1];
|
|
5641
5469
|
var _useState21 = useState(true),
|
|
5642
5470
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
var _useState23 = useState(
|
|
5471
|
+
caretLeftFlag = _useState22[0],
|
|
5472
|
+
setCaretLeftFlag = _useState22[1];
|
|
5473
|
+
var _useState23 = useState([]),
|
|
5646
5474
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
var _useState25 = useState(
|
|
5475
|
+
tableData = _useState24[0],
|
|
5476
|
+
setTableData = _useState24[1];
|
|
5477
|
+
var _useState25 = useState(tableInitPagination),
|
|
5650
5478
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
var _useState27 = useState(
|
|
5479
|
+
tablePagination = _useState26[0],
|
|
5480
|
+
setTablePagination = _useState26[1];
|
|
5481
|
+
var _useState27 = useState([]),
|
|
5654
5482
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5655
|
-
|
|
5656
|
-
|
|
5483
|
+
selectedRowKeys = _useState28[0],
|
|
5484
|
+
setSelectedRowKeys = _useState28[1];
|
|
5657
5485
|
var _useState29 = useState([]),
|
|
5658
5486
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
var _useState31 = useState(
|
|
5487
|
+
selectedRows = _useState30[0],
|
|
5488
|
+
setSelectedRows = _useState30[1];
|
|
5489
|
+
var _useState31 = useState(false),
|
|
5662
5490
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5663
|
-
|
|
5664
|
-
|
|
5491
|
+
checkedAll = _useState32[0],
|
|
5492
|
+
setCheckedAll = _useState32[1];
|
|
5665
5493
|
var _useState33 = useState(false),
|
|
5666
5494
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
var _useState35 = useState(
|
|
5495
|
+
indeterminate = _useState34[0],
|
|
5496
|
+
setIndeterminate = _useState34[1];
|
|
5497
|
+
var _useState35 = useState({}),
|
|
5670
5498
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
var _useState37 = useState(
|
|
5499
|
+
tableFormParams = _useState36[0],
|
|
5500
|
+
setTableFormParams = _useState36[1];
|
|
5501
|
+
var _useState37 = useState(false),
|
|
5674
5502
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
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)),
|
|
5678
5506
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
var _useState41 = useState(
|
|
5507
|
+
tableShowColumns = _useState40[0],
|
|
5508
|
+
setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5509
|
+
var _useState41 = useState(false),
|
|
5682
5510
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5683
|
-
|
|
5684
|
-
|
|
5511
|
+
confirmLoading = _useState42[0],
|
|
5512
|
+
setConfirmLoading = _useState42[1];
|
|
5685
5513
|
var _useState43 = useState(false),
|
|
5686
5514
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
var _useState45 = useState(false),
|
|
5690
|
-
_useState46 = _slicedToArray(_useState45, 2),
|
|
5691
|
-
modalSearched = _useState46[0],
|
|
5692
|
-
setModalSearched = _useState46[1];
|
|
5515
|
+
modalSearched = _useState44[0],
|
|
5516
|
+
setModalSearched = _useState44[1];
|
|
5693
5517
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5694
5518
|
setItems(list);
|
|
5695
5519
|
setItemsTotal(total);
|
|
@@ -6006,12 +5830,19 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6006
5830
|
};
|
|
6007
5831
|
var formaData = function formaData(value, source) {
|
|
6008
5832
|
if (labelInValue) {
|
|
5833
|
+
var getFromat = function getFromat(format, val) {
|
|
5834
|
+
return format.map(function (_ref8) {
|
|
5835
|
+
var key = _ref8.key,
|
|
5836
|
+
value = _ref8.value;
|
|
5837
|
+
return _defineProperty({}, key, val[value]);
|
|
5838
|
+
});
|
|
5839
|
+
};
|
|
6009
5840
|
var formatResult = value.map(function (i) {
|
|
6010
|
-
return {
|
|
5841
|
+
return Object.assign.apply(Object, [{
|
|
6011
5842
|
key: i[mappingValueField] || i.key,
|
|
6012
5843
|
label: i[mappingTextField] || i.label,
|
|
6013
5844
|
value: i[mappingValueField] || i.value
|
|
6014
|
-
};
|
|
5845
|
+
}].concat(_toConsumableArray(getFromat(returnFormat, i))));
|
|
6015
5846
|
});
|
|
6016
5847
|
onChange(selectMode ? formatResult : formatResult[0], value, source);
|
|
6017
5848
|
} else {
|
|
@@ -6159,7 +5990,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6159
5990
|
})) || [];
|
|
6160
5991
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
6161
5992
|
return searchList.map(function (i, index) {
|
|
6162
|
-
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;
|
|
6163
5994
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
|
|
6164
5995
|
span: ColSpan,
|
|
6165
5996
|
key: i
|
|
@@ -6257,7 +6088,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6257
6088
|
disabled: setDisabled(i.name)
|
|
6258
6089
|
}))));
|
|
6259
6090
|
}
|
|
6260
|
-
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') {
|
|
6261
6092
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6262
6093
|
span: ColSpan,
|
|
6263
6094
|
key: i.name
|
|
@@ -6271,7 +6102,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6271
6102
|
}
|
|
6272
6103
|
})));
|
|
6273
6104
|
}
|
|
6274
|
-
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') {
|
|
6275
6106
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6276
6107
|
span: ColSpan,
|
|
6277
6108
|
key: i.name
|
|
@@ -6281,8 +6112,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6281
6112
|
key: i.name
|
|
6282
6113
|
}, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
|
|
6283
6114
|
}
|
|
6284
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6285
|
-
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;
|
|
6286
6117
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6287
6118
|
span: ColSpan,
|
|
6288
6119
|
key: i.name
|
|
@@ -6295,9 +6126,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6295
6126
|
width: '100%'
|
|
6296
6127
|
},
|
|
6297
6128
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6298
|
-
}, 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))));
|
|
6299
6130
|
}
|
|
6300
|
-
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') {
|
|
6301
6132
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6302
6133
|
span: ColSpan,
|
|
6303
6134
|
key: i.name
|
|
@@ -6326,7 +6157,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6326
6157
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6327
6158
|
allowClear: true,
|
|
6328
6159
|
maxLength: 100
|
|
6329
|
-
}, 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), {}, {
|
|
6330
6161
|
disabled: setDisabled(i.name)
|
|
6331
6162
|
}))));
|
|
6332
6163
|
});
|
|
@@ -7646,135 +7477,132 @@ var AddSelect = function AddSelect(props) {
|
|
|
7646
7477
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7647
7478
|
form = _Form$useForm2[0];
|
|
7648
7479
|
var _useState9 = useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7649
|
-
|
|
7650
|
-
tableSearchForm =
|
|
7651
|
-
setTableSearchForm =
|
|
7652
|
-
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([]),
|
|
7653
7488
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
var _useState13 = useState(
|
|
7657
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
7658
|
-
tableData = _useState14[0],
|
|
7659
|
-
setTableData = _useState14[1];
|
|
7660
|
-
var _useState15 = useState(_objectSpread2({
|
|
7489
|
+
tableData = _useState12[0],
|
|
7490
|
+
setTableData = _useState12[1];
|
|
7491
|
+
var _useState13 = useState(_objectSpread2({
|
|
7661
7492
|
total: 0,
|
|
7662
7493
|
size: "small",
|
|
7663
7494
|
current: 1,
|
|
7664
7495
|
pageSize: tableInitPageSize
|
|
7665
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([]),
|
|
7666
7501
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7667
|
-
|
|
7668
|
-
|
|
7669
|
-
var _useState17 = useState(
|
|
7502
|
+
selectedRowKeys = _useState16[0],
|
|
7503
|
+
setSelectedRowKeys = _useState16[1];
|
|
7504
|
+
var _useState17 = useState({}),
|
|
7670
7505
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
var _useState19 = useState(
|
|
7506
|
+
tableFormParams = _useState18[0],
|
|
7507
|
+
setTableFormParams = _useState18[1];
|
|
7508
|
+
var _useState19 = useState(false),
|
|
7674
7509
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7675
|
-
|
|
7676
|
-
|
|
7510
|
+
confirmLoading = _useState20[0],
|
|
7511
|
+
setConfirmLoading = _useState20[1];
|
|
7677
7512
|
var _useState21 = useState(false),
|
|
7678
7513
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
var _useState23 = useState(
|
|
7514
|
+
confirmContinueLoading = _useState22[0],
|
|
7515
|
+
setConfirmContinueLoading = _useState22[1];
|
|
7516
|
+
var _useState23 = useState([]),
|
|
7682
7517
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7683
|
-
|
|
7684
|
-
|
|
7518
|
+
selectColumns = _useState24[0],
|
|
7519
|
+
setSelectColumns = _useState24[1];
|
|
7685
7520
|
var _useState25 = useState([]),
|
|
7686
7521
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7687
|
-
|
|
7688
|
-
|
|
7522
|
+
showColumns = _useState26[0],
|
|
7523
|
+
setShowColumns = _useState26[1];
|
|
7689
7524
|
var _useState27 = useState([]),
|
|
7690
7525
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7691
|
-
|
|
7692
|
-
|
|
7526
|
+
tableColumns = _useState28[0],
|
|
7527
|
+
setTableColumns = _useState28[1];
|
|
7693
7528
|
var _useState29 = useState([]),
|
|
7694
7529
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
var _useState31 = useState([]),
|
|
7698
|
-
_useState32 = _slicedToArray(_useState31, 2),
|
|
7699
|
-
showToChooseColumns = _useState32[0],
|
|
7700
|
-
setShowToChooseColumns = _useState32[1];
|
|
7530
|
+
showToChooseColumns = _useState30[0],
|
|
7531
|
+
setShowToChooseColumns = _useState30[1];
|
|
7701
7532
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7702
7533
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7703
7534
|
// FIXME: 特殊业务逻辑
|
|
7704
7535
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7705
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7706
|
-
var result;
|
|
7707
|
-
return
|
|
7708
|
-
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) {
|
|
7709
7540
|
case 0:
|
|
7710
7541
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7711
7542
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7712
7543
|
}))) {
|
|
7713
|
-
_context.
|
|
7544
|
+
_context.n = 1;
|
|
7714
7545
|
break;
|
|
7715
7546
|
}
|
|
7716
7547
|
message$1.warning('相同skc配码不可设置相同哦');
|
|
7717
|
-
return _context.
|
|
7718
|
-
case
|
|
7548
|
+
return _context.a(2, false);
|
|
7549
|
+
case 1:
|
|
7719
7550
|
if (!(bType == 'spu')) {
|
|
7720
|
-
_context.
|
|
7551
|
+
_context.n = 9;
|
|
7721
7552
|
break;
|
|
7722
7553
|
}
|
|
7723
7554
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7724
7555
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7725
7556
|
}))) {
|
|
7726
|
-
_context.
|
|
7557
|
+
_context.n = 2;
|
|
7727
7558
|
break;
|
|
7728
7559
|
}
|
|
7729
7560
|
message$1.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7730
|
-
return _context.
|
|
7731
|
-
case
|
|
7561
|
+
return _context.a(2, false);
|
|
7562
|
+
case 2:
|
|
7732
7563
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7733
|
-
_context.
|
|
7564
|
+
_context.n = 3;
|
|
7734
7565
|
break;
|
|
7735
7566
|
}
|
|
7736
7567
|
message$1.warning('请先选择颜色!');
|
|
7737
|
-
return _context.
|
|
7738
|
-
case
|
|
7568
|
+
return _context.a(2, false);
|
|
7569
|
+
case 3:
|
|
7739
7570
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7740
7571
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7741
7572
|
}))) {
|
|
7742
|
-
_context.
|
|
7573
|
+
_context.n = 4;
|
|
7743
7574
|
break;
|
|
7744
7575
|
}
|
|
7745
7576
|
message$1.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7746
|
-
return _context.
|
|
7747
|
-
case
|
|
7577
|
+
return _context.a(2, false);
|
|
7578
|
+
case 4:
|
|
7748
7579
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7749
|
-
_context.
|
|
7580
|
+
_context.n = 9;
|
|
7750
7581
|
break;
|
|
7751
7582
|
}
|
|
7752
7583
|
result = true;
|
|
7753
|
-
_context.
|
|
7754
|
-
_context.
|
|
7584
|
+
_context.p = 5;
|
|
7585
|
+
_context.n = 6;
|
|
7755
7586
|
return checkSpuMatchCode({
|
|
7756
7587
|
skcCode: recordItem[recordKey],
|
|
7757
7588
|
matchingCode: changeValue,
|
|
7758
7589
|
ext1: recordItem.colorName
|
|
7759
7590
|
});
|
|
7760
|
-
case
|
|
7761
|
-
result = _context.
|
|
7591
|
+
case 6:
|
|
7592
|
+
result = _context.v;
|
|
7762
7593
|
result = true;
|
|
7763
|
-
_context.
|
|
7594
|
+
_context.n = 8;
|
|
7764
7595
|
break;
|
|
7765
|
-
case
|
|
7766
|
-
_context.
|
|
7767
|
-
|
|
7768
|
-
result = typeof
|
|
7769
|
-
case
|
|
7770
|
-
return _context.
|
|
7771
|
-
case
|
|
7772
|
-
return _context.
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
return _context.stop();
|
|
7776
|
-
}
|
|
7777
|
-
}, _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]]);
|
|
7778
7606
|
}));
|
|
7779
7607
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7780
7608
|
return _ref2.apply(this, arguments);
|
|
@@ -7852,6 +7680,115 @@ var AddSelect = function AddSelect(props) {
|
|
|
7852
7680
|
acc[key] = typeof value === 'function' ? value === null || value === void 0 ? void 0 : value(record) : value;
|
|
7853
7681
|
return acc;
|
|
7854
7682
|
}, {});
|
|
7683
|
+
// 可输入非数字字符
|
|
7684
|
+
if (item.canInputString) {
|
|
7685
|
+
return /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2(_objectSpread2({
|
|
7686
|
+
min: 0,
|
|
7687
|
+
precision: 0,
|
|
7688
|
+
controls: false
|
|
7689
|
+
}, inputProps), {}, {
|
|
7690
|
+
value: text || '',
|
|
7691
|
+
keyboard: false,
|
|
7692
|
+
onPressEnter: function onPressEnter(e) {
|
|
7693
|
+
e.target.blur();
|
|
7694
|
+
},
|
|
7695
|
+
onBlur: function () {
|
|
7696
|
+
var _onBlur = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e) {
|
|
7697
|
+
var value;
|
|
7698
|
+
return _regenerator().w(function (_context2) {
|
|
7699
|
+
while (1) switch (_context2.n) {
|
|
7700
|
+
case 0:
|
|
7701
|
+
value = e.target.value;
|
|
7702
|
+
record[item.dataIndex] = value;
|
|
7703
|
+
editRecord(record);
|
|
7704
|
+
case 1:
|
|
7705
|
+
return _context2.a(2);
|
|
7706
|
+
}
|
|
7707
|
+
}, _callee2);
|
|
7708
|
+
}));
|
|
7709
|
+
function onBlur(_x7) {
|
|
7710
|
+
return _onBlur.apply(this, arguments);
|
|
7711
|
+
}
|
|
7712
|
+
return onBlur;
|
|
7713
|
+
}(),
|
|
7714
|
+
onKeyDown: function onKeyDown(e) {
|
|
7715
|
+
if (e.keyCode === 13 && e.ctrlKey) {
|
|
7716
|
+
var _document$getElementB;
|
|
7717
|
+
handleOk(true);
|
|
7718
|
+
(_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
|
|
7719
|
+
}
|
|
7720
|
+
if (e.keyCode === 8 && e.ctrlKey) {
|
|
7721
|
+
var _e$nativeEvent$path$;
|
|
7722
|
+
message$1.success('删除当前行');
|
|
7723
|
+
e.stopPropagation();
|
|
7724
|
+
e.preventDefault();
|
|
7725
|
+
var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path$.getElementsByTagName('input')[currentIndex];
|
|
7726
|
+
if (dom) {
|
|
7727
|
+
dom.select();
|
|
7728
|
+
dom.focus();
|
|
7729
|
+
dom.scrollIntoView(false);
|
|
7730
|
+
}
|
|
7731
|
+
dom = null;
|
|
7732
|
+
deleteRecord(record);
|
|
7733
|
+
}
|
|
7734
|
+
if (e.keyCode === 37 && e.shiftKey) {
|
|
7735
|
+
var _e$nativeEvent$path$2;
|
|
7736
|
+
// 左滑动
|
|
7737
|
+
e.stopPropagation();
|
|
7738
|
+
e.preventDefault();
|
|
7739
|
+
var _dom = (_e$nativeEvent$path$2 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$2 === void 0 ? void 0 : _e$nativeEvent$path$2.getElementsByTagName('input')[currentIndex - 1];
|
|
7740
|
+
if (_dom) {
|
|
7741
|
+
_dom.select();
|
|
7742
|
+
_dom.focus();
|
|
7743
|
+
_dom.scrollIntoView(false);
|
|
7744
|
+
}
|
|
7745
|
+
_dom = null;
|
|
7746
|
+
}
|
|
7747
|
+
if (e.keyCode === 39 && e.shiftKey) {
|
|
7748
|
+
var _e$nativeEvent$path$3;
|
|
7749
|
+
// 右滑
|
|
7750
|
+
e.stopPropagation();
|
|
7751
|
+
e.preventDefault();
|
|
7752
|
+
var _dom2 = (_e$nativeEvent$path$3 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$3 === void 0 ? void 0 : _e$nativeEvent$path$3.getElementsByTagName('input')[currentIndex + 1];
|
|
7753
|
+
if (_dom2) {
|
|
7754
|
+
_dom2.select();
|
|
7755
|
+
_dom2.focus();
|
|
7756
|
+
_dom2.scrollIntoView(false);
|
|
7757
|
+
}
|
|
7758
|
+
_dom2 = null;
|
|
7759
|
+
}
|
|
7760
|
+
if (e.keyCode === 40) {
|
|
7761
|
+
var _e$nativeEvent$path$4;
|
|
7762
|
+
e.stopPropagation();
|
|
7763
|
+
e.preventDefault();
|
|
7764
|
+
var _dom3 = (_e$nativeEvent$path$4 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$4 === void 0 ? void 0 : _e$nativeEvent$path$4.getElementsByTagName('input')[currentIndex];
|
|
7765
|
+
if (_dom3) {
|
|
7766
|
+
_dom3.select();
|
|
7767
|
+
_dom3.focus();
|
|
7768
|
+
_dom3.scrollIntoView(false);
|
|
7769
|
+
}
|
|
7770
|
+
_dom3 = null;
|
|
7771
|
+
} else if (e.keyCode === 38) {
|
|
7772
|
+
var _e$nativeEvent$path$5;
|
|
7773
|
+
e.stopPropagation();
|
|
7774
|
+
e.preventDefault();
|
|
7775
|
+
var dom1 = (_e$nativeEvent$path$5 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$5 === void 0 ? void 0 : _e$nativeEvent$path$5.getElementsByTagName('input')[currentIndex];
|
|
7776
|
+
if (dom1) {
|
|
7777
|
+
// dom1.value=""
|
|
7778
|
+
// dom1.setSelectionRange(100, 0);
|
|
7779
|
+
dom1.select();
|
|
7780
|
+
dom1.focus();
|
|
7781
|
+
dom1.scrollIntoViewIfNeeded(false);
|
|
7782
|
+
// dom1.value=record['count']
|
|
7783
|
+
}
|
|
7784
|
+
dom1 = null;
|
|
7785
|
+
} else if (e.keyCode === 9 && index === selectedRowKeys.length - 1 && currentIndex === inputLength - 1) {
|
|
7786
|
+
e.stopPropagation();
|
|
7787
|
+
e.preventDefault();
|
|
7788
|
+
}
|
|
7789
|
+
}
|
|
7790
|
+
}));
|
|
7791
|
+
}
|
|
7855
7792
|
return /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2(_objectSpread2(_objectSpread2({}, inputProps), {}, {
|
|
7856
7793
|
value: text || '',
|
|
7857
7794
|
min: 0,
|
|
@@ -7869,16 +7806,16 @@ var AddSelect = function AddSelect(props) {
|
|
|
7869
7806
|
// }}
|
|
7870
7807
|
onKeyDown: function onKeyDown(e) {
|
|
7871
7808
|
if (e.keyCode === 13 && e.ctrlKey) {
|
|
7872
|
-
var _document$
|
|
7809
|
+
var _document$getElementB2;
|
|
7873
7810
|
handleOk(true);
|
|
7874
|
-
(_document$
|
|
7811
|
+
(_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
|
|
7875
7812
|
}
|
|
7876
7813
|
if (e.keyCode === 8 && e.ctrlKey) {
|
|
7877
|
-
var _e$nativeEvent$path
|
|
7814
|
+
var _e$nativeEvent$path$6;
|
|
7878
7815
|
message$1.success('删除当前行');
|
|
7879
7816
|
e.stopPropagation();
|
|
7880
7817
|
e.preventDefault();
|
|
7881
|
-
var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path
|
|
7818
|
+
var dom = (_e$nativeEvent$path$6 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$6 === void 0 ? void 0 : _e$nativeEvent$path$6.getElementsByTagName('input')[currentIndex];
|
|
7882
7819
|
if (dom) {
|
|
7883
7820
|
dom.select();
|
|
7884
7821
|
dom.focus();
|
|
@@ -7888,47 +7825,47 @@ var AddSelect = function AddSelect(props) {
|
|
|
7888
7825
|
deleteRecord(record);
|
|
7889
7826
|
}
|
|
7890
7827
|
if (e.keyCode === 37 && e.shiftKey) {
|
|
7891
|
-
var _e$nativeEvent$path$
|
|
7828
|
+
var _e$nativeEvent$path$7;
|
|
7892
7829
|
// 左滑动
|
|
7893
7830
|
e.stopPropagation();
|
|
7894
7831
|
e.preventDefault();
|
|
7895
|
-
var
|
|
7896
|
-
if (
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7832
|
+
var _dom4 = (_e$nativeEvent$path$7 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$7 === void 0 ? void 0 : _e$nativeEvent$path$7.getElementsByTagName('input')[currentIndex - 1];
|
|
7833
|
+
if (_dom4) {
|
|
7834
|
+
_dom4.select();
|
|
7835
|
+
_dom4.focus();
|
|
7836
|
+
_dom4.scrollIntoView(false);
|
|
7900
7837
|
}
|
|
7901
|
-
|
|
7838
|
+
_dom4 = null;
|
|
7902
7839
|
}
|
|
7903
7840
|
if (e.keyCode === 39 && e.shiftKey) {
|
|
7904
|
-
var _e$nativeEvent$path$
|
|
7841
|
+
var _e$nativeEvent$path$8;
|
|
7905
7842
|
// 右滑
|
|
7906
7843
|
e.stopPropagation();
|
|
7907
7844
|
e.preventDefault();
|
|
7908
|
-
var
|
|
7909
|
-
if (
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7845
|
+
var _dom5 = (_e$nativeEvent$path$8 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$8 === void 0 ? void 0 : _e$nativeEvent$path$8.getElementsByTagName('input')[currentIndex + 1];
|
|
7846
|
+
if (_dom5) {
|
|
7847
|
+
_dom5.select();
|
|
7848
|
+
_dom5.focus();
|
|
7849
|
+
_dom5.scrollIntoView(false);
|
|
7913
7850
|
}
|
|
7914
|
-
|
|
7851
|
+
_dom5 = null;
|
|
7915
7852
|
}
|
|
7916
7853
|
if (e.keyCode === 40) {
|
|
7917
|
-
var _e$nativeEvent$path$
|
|
7854
|
+
var _e$nativeEvent$path$9;
|
|
7918
7855
|
e.stopPropagation();
|
|
7919
7856
|
e.preventDefault();
|
|
7920
|
-
var
|
|
7921
|
-
if (
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7857
|
+
var _dom6 = (_e$nativeEvent$path$9 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$9 === void 0 ? void 0 : _e$nativeEvent$path$9.getElementsByTagName('input')[currentIndex];
|
|
7858
|
+
if (_dom6) {
|
|
7859
|
+
_dom6.select();
|
|
7860
|
+
_dom6.focus();
|
|
7861
|
+
_dom6.scrollIntoView(false);
|
|
7925
7862
|
}
|
|
7926
|
-
|
|
7863
|
+
_dom6 = null;
|
|
7927
7864
|
} else if (e.keyCode === 38) {
|
|
7928
|
-
var _e$nativeEvent$path$
|
|
7865
|
+
var _e$nativeEvent$path$0;
|
|
7929
7866
|
e.stopPropagation();
|
|
7930
7867
|
e.preventDefault();
|
|
7931
|
-
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];
|
|
7932
7869
|
if (dom1) {
|
|
7933
7870
|
// dom1.value=""
|
|
7934
7871
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -7962,19 +7899,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
7962
7899
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7963
7900
|
value: text || null,
|
|
7964
7901
|
onChange: function () {
|
|
7965
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
7966
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7967
|
-
return
|
|
7968
|
-
while (1) switch (
|
|
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) {
|
|
7969
7906
|
case 0:
|
|
7970
7907
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
7971
7908
|
return d[selectKey] == value;
|
|
7972
7909
|
})) || {};
|
|
7973
7910
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
7974
|
-
|
|
7911
|
+
_context3.n = 2;
|
|
7975
7912
|
break;
|
|
7976
7913
|
}
|
|
7977
|
-
|
|
7914
|
+
_context3.n = 1;
|
|
7978
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, {
|
|
7979
7916
|
record: record,
|
|
7980
7917
|
index: index,
|
|
@@ -7984,10 +7921,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7984
7921
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
7985
7922
|
editRecord: editRecord
|
|
7986
7923
|
});
|
|
7987
|
-
case
|
|
7988
|
-
|
|
7924
|
+
case 1:
|
|
7925
|
+
_context3.n = 10;
|
|
7989
7926
|
break;
|
|
7990
|
-
case
|
|
7927
|
+
case 2:
|
|
7991
7928
|
// 更新当前行数据函数
|
|
7992
7929
|
changeValue = function changeValue(v, dSSItem) {
|
|
7993
7930
|
var _item$dataSourceSelec;
|
|
@@ -8000,12 +7937,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
8000
7937
|
}
|
|
8001
7938
|
}; // 处理校验,默认不校验
|
|
8002
7939
|
isCheckPass = true;
|
|
8003
|
-
|
|
7940
|
+
_context3.p = 3;
|
|
8004
7941
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
8005
|
-
|
|
7942
|
+
_context3.n = 5;
|
|
8006
7943
|
break;
|
|
8007
7944
|
}
|
|
8008
|
-
|
|
7945
|
+
_context3.n = 4;
|
|
8009
7946
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
8010
7947
|
record: record,
|
|
8011
7948
|
index: index,
|
|
@@ -8014,23 +7951,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
8014
7951
|
changeValue: value,
|
|
8015
7952
|
dataSourceSelectItem: dataSourceSelectItem
|
|
8016
7953
|
});
|
|
8017
|
-
case
|
|
8018
|
-
isCheckPass =
|
|
8019
|
-
|
|
7954
|
+
case 4:
|
|
7955
|
+
isCheckPass = _context3.v;
|
|
7956
|
+
_context3.n = 7;
|
|
8020
7957
|
break;
|
|
8021
|
-
case
|
|
8022
|
-
|
|
7958
|
+
case 5:
|
|
7959
|
+
_context3.n = 6;
|
|
8023
7960
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
8024
|
-
case
|
|
8025
|
-
isConformToTheRules =
|
|
7961
|
+
case 6:
|
|
7962
|
+
isConformToTheRules = _context3.v;
|
|
8026
7963
|
isCheckPass = !isConformToTheRules;
|
|
8027
|
-
case
|
|
8028
|
-
|
|
7964
|
+
case 7:
|
|
7965
|
+
_context3.n = 9;
|
|
8029
7966
|
break;
|
|
8030
|
-
case
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
case
|
|
7967
|
+
case 8:
|
|
7968
|
+
_context3.p = 8;
|
|
7969
|
+
_t2 = _context3.v;
|
|
7970
|
+
case 9:
|
|
8034
7971
|
if (isCheckPass) {
|
|
8035
7972
|
changeValue(value, dataSourceSelectItem);
|
|
8036
7973
|
} else {
|
|
@@ -8038,13 +7975,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
8038
7975
|
}
|
|
8039
7976
|
// 更新已选表格函数
|
|
8040
7977
|
editRecord(record);
|
|
8041
|
-
case
|
|
8042
|
-
|
|
8043
|
-
return _context2.stop();
|
|
7978
|
+
case 10:
|
|
7979
|
+
return _context3.a(2);
|
|
8044
7980
|
}
|
|
8045
|
-
},
|
|
7981
|
+
}, _callee3, null, [[3, 8]]);
|
|
8046
7982
|
}));
|
|
8047
|
-
function onChange(
|
|
7983
|
+
function onChange(_x8) {
|
|
8048
7984
|
return _onChange.apply(this, arguments);
|
|
8049
7985
|
}
|
|
8050
7986
|
return onChange;
|
|
@@ -8304,8 +8240,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
8304
8240
|
}
|
|
8305
8241
|
}
|
|
8306
8242
|
setTimeout(function () {
|
|
8307
|
-
var _document$
|
|
8308
|
-
(_document$
|
|
8243
|
+
var _document$getElementB3;
|
|
8244
|
+
(_document$getElementB3 = document.getElementById("first-query")) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
|
|
8309
8245
|
}, 50);
|
|
8310
8246
|
};
|
|
8311
8247
|
// 将格式化完的数据回显到 表格中
|
|
@@ -8335,7 +8271,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8335
8271
|
handleLoading(isContinue, true);
|
|
8336
8272
|
onSaveCallback(popvalue).then(function (res) {
|
|
8337
8273
|
{
|
|
8338
|
-
var _Object$keys2, _document$
|
|
8274
|
+
var _Object$keys2, _document$getElementB4;
|
|
8339
8275
|
// 成功信息可以在调用处处理 即resolve({messageSuccessBackInfo: { needThrowSuccess: false } })、resolve({messageSuccessBackInfo: { needThrowSuccess: true, successMessage: '已保存' } })
|
|
8340
8276
|
var initSuccessMessage = '保存成功';
|
|
8341
8277
|
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
@@ -8345,7 +8281,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8345
8281
|
message$1.success(initSuccessMessage);
|
|
8346
8282
|
}
|
|
8347
8283
|
deleteSelectRows();
|
|
8348
|
-
(_document$
|
|
8284
|
+
(_document$getElementB4 = document.getElementById('first-query')) === null || _document$getElementB4 === void 0 ? void 0 : _document$getElementB4.focus();
|
|
8349
8285
|
!isContinue && handleCancel();
|
|
8350
8286
|
}
|
|
8351
8287
|
handleLoading(isContinue, false);
|
|
@@ -9433,29 +9369,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9433
9369
|
dataIndex: 'propertyNameAndValue'
|
|
9434
9370
|
}];
|
|
9435
9371
|
var _useState9 = useState(false),
|
|
9436
|
-
|
|
9437
|
-
isModalVisible =
|
|
9438
|
-
setIsModalVisible =
|
|
9439
|
-
var
|
|
9372
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
9373
|
+
isModalVisible = _useState0[0],
|
|
9374
|
+
setIsModalVisible = _useState0[1];
|
|
9375
|
+
var _useState1 = useState([{
|
|
9440
9376
|
hovered: false
|
|
9441
9377
|
}]),
|
|
9442
|
-
|
|
9443
|
-
data =
|
|
9444
|
-
setData =
|
|
9378
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
9379
|
+
data = _useState10[0],
|
|
9380
|
+
setData = _useState10[1];
|
|
9445
9381
|
var tableRef = useRef(null);
|
|
9446
9382
|
var codeSelected = tableCode;
|
|
9447
|
-
var
|
|
9383
|
+
var _useState11 = useState(false),
|
|
9384
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9385
|
+
loading = _useState12[0],
|
|
9386
|
+
setLoading = _useState12[1];
|
|
9387
|
+
var _useState13 = useState([]),
|
|
9448
9388
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9449
|
-
|
|
9450
|
-
|
|
9389
|
+
selectColumns = _useState14[0],
|
|
9390
|
+
setSelectColumns = _useState14[1];
|
|
9451
9391
|
var _useState15 = useState([]),
|
|
9452
9392
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9453
|
-
|
|
9454
|
-
|
|
9455
|
-
var _useState17 = useState([]),
|
|
9456
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
9457
|
-
showColumns = _useState18[0],
|
|
9458
|
-
setShowColumns = _useState18[1];
|
|
9393
|
+
showColumns = _useState16[0],
|
|
9394
|
+
setShowColumns = _useState16[1];
|
|
9459
9395
|
useEffect(function () {
|
|
9460
9396
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9461
9397
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9571,42 +9507,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9571
9507
|
});
|
|
9572
9508
|
};
|
|
9573
9509
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9574
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9510
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
9575
9511
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9576
|
-
return
|
|
9577
|
-
while (1) switch (_context.
|
|
9512
|
+
return _regenerator().w(function (_context) {
|
|
9513
|
+
while (1) switch (_context.n) {
|
|
9578
9514
|
case 0:
|
|
9579
9515
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9580
|
-
_context.
|
|
9516
|
+
_context.n = 1;
|
|
9581
9517
|
break;
|
|
9582
9518
|
}
|
|
9583
9519
|
message$1.warning('至少录入一条数据');
|
|
9584
|
-
return _context.
|
|
9585
|
-
case
|
|
9520
|
+
return _context.a(2);
|
|
9521
|
+
case 1:
|
|
9586
9522
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9587
9523
|
return d.skuCode && d.name;
|
|
9588
9524
|
})) {
|
|
9589
|
-
_context.
|
|
9525
|
+
_context.n = 2;
|
|
9590
9526
|
break;
|
|
9591
9527
|
}
|
|
9592
9528
|
message$1.warning('录入商品不存在');
|
|
9593
|
-
return _context.
|
|
9594
|
-
case
|
|
9529
|
+
return _context.a(2);
|
|
9530
|
+
case 2:
|
|
9595
9531
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9596
9532
|
return d.count;
|
|
9597
9533
|
})) {
|
|
9598
|
-
_context.
|
|
9534
|
+
_context.n = 3;
|
|
9599
9535
|
break;
|
|
9600
9536
|
}
|
|
9601
9537
|
message$1.warning('请填写商品数量!');
|
|
9602
|
-
return _context.
|
|
9603
|
-
case
|
|
9604
|
-
_context.
|
|
9538
|
+
return _context.a(2);
|
|
9539
|
+
case 3:
|
|
9540
|
+
_context.n = 4;
|
|
9605
9541
|
return isSkuCanEntry(data);
|
|
9606
|
-
case
|
|
9607
|
-
canEntryObject = _context.
|
|
9542
|
+
case 4:
|
|
9543
|
+
canEntryObject = _context.v;
|
|
9608
9544
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9609
|
-
_context.
|
|
9545
|
+
_context.n = 5;
|
|
9610
9546
|
break;
|
|
9611
9547
|
}
|
|
9612
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) {
|
|
@@ -9616,8 +9552,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9616
9552
|
content: messageInfo,
|
|
9617
9553
|
duration: 6
|
|
9618
9554
|
});
|
|
9619
|
-
return _context.
|
|
9620
|
-
case
|
|
9555
|
+
return _context.a(2);
|
|
9556
|
+
case 5:
|
|
9621
9557
|
setLoading(true);
|
|
9622
9558
|
onSaveCallback(data).then(function (res) {
|
|
9623
9559
|
{
|
|
@@ -9635,9 +9571,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9635
9571
|
message$1.error(Error);
|
|
9636
9572
|
setLoading(false);
|
|
9637
9573
|
});
|
|
9638
|
-
case
|
|
9639
|
-
|
|
9640
|
-
return _context.stop();
|
|
9574
|
+
case 6:
|
|
9575
|
+
return _context.a(2);
|
|
9641
9576
|
}
|
|
9642
9577
|
}, _callee);
|
|
9643
9578
|
}));
|
|
@@ -10523,10 +10458,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10523
10458
|
selectProps = _objectSpread2({
|
|
10524
10459
|
placeholder: '输入商品(SPU)编码或名称',
|
|
10525
10460
|
renderTableColumns: [{
|
|
10526
|
-
title: '
|
|
10461
|
+
title: 'SPU编码',
|
|
10527
10462
|
dataIndex: 'itemCode'
|
|
10528
10463
|
}, {
|
|
10529
|
-
title: '
|
|
10464
|
+
title: 'SPU名称',
|
|
10530
10465
|
dataIndex: 'name'
|
|
10531
10466
|
}]
|
|
10532
10467
|
}, selectConfigProps);
|
|
@@ -10543,11 +10478,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10543
10478
|
}, requestConfigProp);
|
|
10544
10479
|
tableSearchForm = [{
|
|
10545
10480
|
name: 'itemCode*multiInput',
|
|
10546
|
-
label: '
|
|
10481
|
+
label: 'SPU编码',
|
|
10547
10482
|
type: 'multipleQueryInput'
|
|
10548
10483
|
}, {
|
|
10549
10484
|
name: 'name*multiInput',
|
|
10550
|
-
label: '
|
|
10485
|
+
label: 'SPU名称',
|
|
10551
10486
|
type: 'multipleQueryInput'
|
|
10552
10487
|
}, {
|
|
10553
10488
|
name: 'qp-brandId-in',
|
|
@@ -10641,11 +10576,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10641
10576
|
dataIndex: 'keyIndex',
|
|
10642
10577
|
defaultSort: 0
|
|
10643
10578
|
}, {
|
|
10644
|
-
title: '
|
|
10579
|
+
title: 'SPU编码',
|
|
10645
10580
|
dataIndex: 'itemCode',
|
|
10646
10581
|
defaultSort: 1
|
|
10647
10582
|
}, {
|
|
10648
|
-
title: '
|
|
10583
|
+
title: 'SPU名称',
|
|
10649
10584
|
dataIndex: 'name',
|
|
10650
10585
|
defaultSort: 2
|
|
10651
10586
|
}, {
|
|
@@ -10999,7 +10934,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10999
10934
|
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-brandId-in')
|
|
11000
10935
|
}], ['colorName', 'categoryId', 'classId', 'brandId'], hiddenFields);
|
|
11001
10936
|
var fieldLoadSource = fieldsRequest.map(function (i) {
|
|
11002
|
-
return loadSelectSource$1(i.url, i.params, options);
|
|
10937
|
+
return loadSelectSource$1(i.url, i.params, i.options);
|
|
11003
10938
|
});
|
|
11004
10939
|
requestConfig = _objectSpread2({
|
|
11005
10940
|
url: "".concat(prefixUrl.selectPrefix, "/skc/skcSelect"),
|
|
@@ -11348,6 +11283,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11348
11283
|
render: function render(text) {
|
|
11349
11284
|
return getDictionaryTextByValue$1('SC00004', text);
|
|
11350
11285
|
}
|
|
11286
|
+
}, {
|
|
11287
|
+
title: '运营组名称',
|
|
11288
|
+
dataIndex: 'groupCode',
|
|
11289
|
+
defaultSort: 7,
|
|
11290
|
+
render: function render(text, record) {
|
|
11291
|
+
return (record === null || record === void 0 ? void 0 : record.groupName) ? "\u3010".concat(text, "\u3011").concat(record === null || record === void 0 ? void 0 : record.groupName) : "";
|
|
11292
|
+
},
|
|
11293
|
+
width: 100
|
|
11351
11294
|
}, {
|
|
11352
11295
|
title: '所属销售渠道',
|
|
11353
11296
|
dataIndex: 'channelName',
|
|
@@ -11369,7 +11312,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11369
11312
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11370
11313
|
title: '状态',
|
|
11371
11314
|
dataIndex: 'isEnable',
|
|
11372
|
-
defaultSort:
|
|
11315
|
+
defaultSort: 8,
|
|
11373
11316
|
render: function render(text) {
|
|
11374
11317
|
return getDictionaryTextByValue$1('SC00001', text);
|
|
11375
11318
|
}
|
|
@@ -11826,17 +11769,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11826
11769
|
}
|
|
11827
11770
|
}
|
|
11828
11771
|
}];
|
|
11829
|
-
var
|
|
11772
|
+
var _queryHeaderParams0 = getQueryHeadersList({
|
|
11830
11773
|
querySelectHeadersList: querySelectHeadersList,
|
|
11831
11774
|
extralHeaders: extralHeaders
|
|
11832
11775
|
});
|
|
11833
|
-
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", {
|
|
11834
11777
|
'qp-status-eq': 10,
|
|
11835
11778
|
'qp-isMain-eq': 1,
|
|
11836
11779
|
'qp-type-in': '1,2'
|
|
11837
|
-
}, getQueryHeadersItem(
|
|
11780
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11838
11781
|
'qp-status-eq': 1
|
|
11839
|
-
}, getQueryHeadersItem(
|
|
11782
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in'))]).then(function (x) {
|
|
11840
11783
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
11841
11784
|
var allList = firstElement && [firstElement, firstElement];
|
|
11842
11785
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
@@ -11911,12 +11854,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11911
11854
|
sourceName: 'code'
|
|
11912
11855
|
}, requestConfigProp);
|
|
11913
11856
|
tableSearchForm = [{
|
|
11914
|
-
name: '
|
|
11915
|
-
label: '店铺名称'
|
|
11916
|
-
|
|
11917
|
-
name: 'qp-code-like',
|
|
11918
|
-
label: '店铺编码'
|
|
11857
|
+
name: 'name*multiInput',
|
|
11858
|
+
label: '店铺名称',
|
|
11859
|
+
type: 'multipleQueryInput'
|
|
11919
11860
|
}, {
|
|
11861
|
+
name: 'code*multiInput',
|
|
11862
|
+
label: '店铺编码',
|
|
11863
|
+
type: 'multipleQueryInput'
|
|
11864
|
+
},
|
|
11865
|
+
// { name: 'qp-name-like', label: '店铺名称' },
|
|
11866
|
+
// { name: 'qp-code-like', label: '店铺编码' },
|
|
11867
|
+
{
|
|
11920
11868
|
name: 'qp-conglomerateCode-in',
|
|
11921
11869
|
type: 'select',
|
|
11922
11870
|
label: '归属集团',
|
|
@@ -12017,7 +11965,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12017
11965
|
}
|
|
12018
11966
|
}
|
|
12019
11967
|
}];
|
|
12020
|
-
var
|
|
11968
|
+
var _queryHeaderParams1 = getQueryHeadersList({
|
|
12021
11969
|
querySelectHeadersList: querySelectHeadersList,
|
|
12022
11970
|
extralHeaders: extralHeaders
|
|
12023
11971
|
});
|
|
@@ -12025,21 +11973,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12025
11973
|
pageSize: 5000,
|
|
12026
11974
|
currentPage: 1,
|
|
12027
11975
|
'qp-companyType-eq': '30'
|
|
12028
|
-
}, getQueryHeadersItem(
|
|
11976
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
12029
11977
|
pageSize: 5000,
|
|
12030
11978
|
currentPage: 1,
|
|
12031
11979
|
'qp-companyType-eq': '20'
|
|
12032
|
-
}, getQueryHeadersItem(
|
|
11980
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
12033
11981
|
// pageSize: 5000,
|
|
12034
11982
|
// currentPage: 1,
|
|
12035
11983
|
'qp-status-eq': '1'
|
|
12036
|
-
}, getQueryHeadersItem(
|
|
11984
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
12037
11985
|
pageSize: 5000,
|
|
12038
11986
|
currentPage: 1
|
|
12039
|
-
}, getQueryHeadersItem(
|
|
11987
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
12040
11988
|
pageSize: 5000,
|
|
12041
11989
|
currentPage: 1
|
|
12042
|
-
}, getQueryHeadersItem(
|
|
11990
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-accountingCode-in'))]).then(function (x) {
|
|
12043
11991
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12044
11992
|
formatSource(x, 1, 3, tableSearchForm);
|
|
12045
11993
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -12208,8 +12156,26 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12208
12156
|
}
|
|
12209
12157
|
},
|
|
12210
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
|
+
}
|
|
12211
12177
|
}];
|
|
12212
|
-
var
|
|
12178
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
12213
12179
|
querySelectHeadersList: querySelectHeadersList,
|
|
12214
12180
|
extralHeaders: extralHeaders
|
|
12215
12181
|
});
|
|
@@ -12217,13 +12183,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12217
12183
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12218
12184
|
'qp-realOrg-eq': true,
|
|
12219
12185
|
'qp-status-eq': 10
|
|
12220
|
-
}, getQueryHeadersItem(
|
|
12186
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12221
12187
|
'qp-status-eq': 10,
|
|
12222
12188
|
'qp-isMain-eq': 1,
|
|
12223
12189
|
'qp-type-in': '1,2'
|
|
12224
|
-
}, getQueryHeadersItem(
|
|
12190
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12225
12191
|
'qp-status-eq': 1
|
|
12226
|
-
}, 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) {
|
|
12227
12197
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12228
12198
|
return data['parentCode'] === '0';
|
|
12229
12199
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -12233,6 +12203,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12233
12203
|
formatSource(x, 0, 3, tableSearchForm);
|
|
12234
12204
|
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12235
12205
|
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
12206
|
+
formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
|
|
12236
12207
|
});
|
|
12237
12208
|
modalTableProps = _objectSpread2({
|
|
12238
12209
|
modalTableTitle: '选择商店',
|
|
@@ -12461,7 +12432,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12461
12432
|
name: 'qp-officeTelephone-like',
|
|
12462
12433
|
label: '手机号'
|
|
12463
12434
|
}];
|
|
12464
|
-
var
|
|
12435
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
12465
12436
|
querySelectHeadersList: querySelectHeadersList,
|
|
12466
12437
|
extralHeaders: extralHeaders
|
|
12467
12438
|
});
|
|
@@ -12469,7 +12440,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12469
12440
|
pageSize: 5000,
|
|
12470
12441
|
currentPage: 1,
|
|
12471
12442
|
'qp-companyType-eq': 20
|
|
12472
|
-
}, getQueryHeadersItem(
|
|
12443
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in'))]).then(function (x) {
|
|
12473
12444
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12474
12445
|
});
|
|
12475
12446
|
modalTableProps = _objectSpread2({
|
|
@@ -12575,16 +12546,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12575
12546
|
name: 'qp-email-like',
|
|
12576
12547
|
label: '邮箱'
|
|
12577
12548
|
}, {
|
|
12578
|
-
name: 'qp-
|
|
12549
|
+
name: 'qp-phone-like',
|
|
12579
12550
|
label: '手机号'
|
|
12580
12551
|
}]);
|
|
12581
|
-
var
|
|
12552
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12582
12553
|
querySelectHeadersList: querySelectHeadersList,
|
|
12583
12554
|
extralHeaders: extralHeaders
|
|
12584
12555
|
});
|
|
12585
12556
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12586
12557
|
'orgViewCode': 'administrative-organization-view'
|
|
12587
|
-
}, getQueryHeadersItem(
|
|
12558
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-code-in'))]).then(function (x) {
|
|
12588
12559
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12589
12560
|
});
|
|
12590
12561
|
modalTableProps = _objectSpread2({
|
|
@@ -12635,7 +12606,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12635
12606
|
dataIndex: 'email'
|
|
12636
12607
|
}, {
|
|
12637
12608
|
title: '手机号',
|
|
12638
|
-
dataIndex: '
|
|
12609
|
+
dataIndex: 'phone',
|
|
12639
12610
|
defaultSort: 4,
|
|
12640
12611
|
render: function render(text, record) {
|
|
12641
12612
|
return handleTextOverflow(text || (record === null || record === void 0 ? void 0 : record.phone));
|
|
@@ -12731,17 +12702,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12731
12702
|
name: 'qp-remark-like',
|
|
12732
12703
|
label: '备注'
|
|
12733
12704
|
}];
|
|
12734
|
-
var
|
|
12705
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12735
12706
|
querySelectHeadersList: querySelectHeadersList,
|
|
12736
12707
|
extralHeaders: extralHeaders
|
|
12737
12708
|
});
|
|
12738
12709
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12739
12710
|
pageSize: 5000,
|
|
12740
12711
|
currentPage: 1
|
|
12741
|
-
}, getQueryHeadersItem(
|
|
12712
|
+
}, getQueryHeadersItem(_queryHeaderParams13, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12742
12713
|
pageSize: 5000,
|
|
12743
12714
|
currentPage: 1
|
|
12744
|
-
}, getQueryHeadersItem(
|
|
12715
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12745
12716
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12746
12717
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12747
12718
|
});
|
|
@@ -12911,14 +12882,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12911
12882
|
}
|
|
12912
12883
|
}
|
|
12913
12884
|
}];
|
|
12914
|
-
var
|
|
12885
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12915
12886
|
querySelectHeadersList: querySelectHeadersList,
|
|
12916
12887
|
extralHeaders: extralHeaders
|
|
12917
12888
|
});
|
|
12918
12889
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
12919
12890
|
pageSize: 5000,
|
|
12920
12891
|
currentPage: 1
|
|
12921
|
-
}, getQueryHeadersItem(
|
|
12892
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
12922
12893
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12923
12894
|
});
|
|
12924
12895
|
modalTableProps = _objectSpread2({
|
|
@@ -13015,7 +12986,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13015
12986
|
}
|
|
13016
12987
|
}
|
|
13017
12988
|
}];
|
|
13018
|
-
var
|
|
12989
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
13019
12990
|
querySelectHeadersList: querySelectHeadersList,
|
|
13020
12991
|
extralHeaders: extralHeaders
|
|
13021
12992
|
});
|
|
@@ -13023,7 +12994,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13023
12994
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
13024
12995
|
'qp-realOrg-eq': true,
|
|
13025
12996
|
'qp-status-eq': 10
|
|
13026
|
-
}, getQueryHeadersItem(
|
|
12997
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
13027
12998
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13028
12999
|
});
|
|
13029
13000
|
modalTableProps = _objectSpread2({
|
|
@@ -13129,13 +13100,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13129
13100
|
},
|
|
13130
13101
|
initialSource: nodeType
|
|
13131
13102
|
}];
|
|
13132
|
-
var
|
|
13103
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13133
13104
|
querySelectHeadersList: querySelectHeadersList,
|
|
13134
13105
|
extralHeaders: extralHeaders
|
|
13135
13106
|
});
|
|
13136
13107
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13137
13108
|
'qp-status-eq': 10
|
|
13138
|
-
}, getQueryHeadersItem(
|
|
13109
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13139
13110
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13140
13111
|
});
|
|
13141
13112
|
modalTableProps = _objectSpread2({
|
|
@@ -13461,13 +13432,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13461
13432
|
},
|
|
13462
13433
|
initialSource: nodeType
|
|
13463
13434
|
}];
|
|
13464
|
-
var
|
|
13435
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
13465
13436
|
querySelectHeadersList: querySelectHeadersList,
|
|
13466
13437
|
extralHeaders: extralHeaders
|
|
13467
13438
|
});
|
|
13468
13439
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13469
13440
|
'qp-status-eq': 10
|
|
13470
|
-
}, getQueryHeadersItem(
|
|
13441
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13471
13442
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13472
13443
|
});
|
|
13473
13444
|
modalTableProps = _objectSpread2({
|
|
@@ -14412,9 +14383,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14412
14383
|
value = _useState8[0],
|
|
14413
14384
|
setValue = _useState8[1];
|
|
14414
14385
|
var _useState9 = useState([]),
|
|
14415
|
-
|
|
14416
|
-
propertyList =
|
|
14417
|
-
setPropertyList =
|
|
14386
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
14387
|
+
propertyList = _useState0[0],
|
|
14388
|
+
setPropertyList = _useState0[1];
|
|
14418
14389
|
useEffect(function () {
|
|
14419
14390
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14420
14391
|
// type: 1 尺码组; 2 配码组
|
|
@@ -14938,46 +14909,45 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14938
14909
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
14939
14910
|
headers: headers
|
|
14940
14911
|
}).then(/*#__PURE__*/function () {
|
|
14941
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
14912
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
|
|
14942
14913
|
var _ctx$form;
|
|
14943
14914
|
var resData, coverData, data, dataList;
|
|
14944
|
-
return
|
|
14945
|
-
while (1) switch (_context.
|
|
14915
|
+
return _regenerator().w(function (_context) {
|
|
14916
|
+
while (1) switch (_context.n) {
|
|
14946
14917
|
case 0:
|
|
14947
14918
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
14948
14919
|
if (!judgeIsRequestSuccess(resData)) {
|
|
14949
|
-
_context.
|
|
14920
|
+
_context.n = 4;
|
|
14950
14921
|
break;
|
|
14951
14922
|
}
|
|
14952
14923
|
data = resData.data;
|
|
14953
14924
|
if (!remoteSource.converter) {
|
|
14954
|
-
_context.
|
|
14925
|
+
_context.n = 2;
|
|
14955
14926
|
break;
|
|
14956
14927
|
}
|
|
14957
|
-
_context.
|
|
14928
|
+
_context.n = 1;
|
|
14958
14929
|
return remoteSource.converter({
|
|
14959
14930
|
data: [data]
|
|
14960
14931
|
});
|
|
14961
|
-
case
|
|
14962
|
-
coverData = _context.
|
|
14963
|
-
_context.
|
|
14932
|
+
case 1:
|
|
14933
|
+
coverData = _context.v;
|
|
14934
|
+
_context.n = 3;
|
|
14964
14935
|
break;
|
|
14965
|
-
case
|
|
14936
|
+
case 2:
|
|
14966
14937
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
14967
14938
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
14968
14939
|
return _mapSearchTree(ites);
|
|
14969
14940
|
}) || [];
|
|
14970
|
-
case
|
|
14971
|
-
_context.
|
|
14941
|
+
case 3:
|
|
14942
|
+
_context.n = 5;
|
|
14972
14943
|
break;
|
|
14973
|
-
case
|
|
14944
|
+
case 4:
|
|
14974
14945
|
coverData = [];
|
|
14975
|
-
case
|
|
14946
|
+
case 5:
|
|
14976
14947
|
setTreeData(coverData);
|
|
14977
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);
|
|
14978
|
-
case
|
|
14979
|
-
|
|
14980
|
-
return _context.stop();
|
|
14949
|
+
case 6:
|
|
14950
|
+
return _context.a(2);
|
|
14981
14951
|
}
|
|
14982
14952
|
}, _callee);
|
|
14983
14953
|
}));
|
|
@@ -19279,38 +19249,38 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19279
19249
|
};
|
|
19280
19250
|
var refs = useRef(null);
|
|
19281
19251
|
var _useState9 = useState(''),
|
|
19282
|
-
|
|
19283
|
-
pagePath =
|
|
19284
|
-
setPagePath =
|
|
19252
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
19253
|
+
pagePath = _useState0[0],
|
|
19254
|
+
setPagePath = _useState0[1];
|
|
19285
19255
|
var _useLocation = useLocation(),
|
|
19286
19256
|
pathname = _useLocation.pathname,
|
|
19287
19257
|
_useLocation$state = _useLocation.state,
|
|
19288
19258
|
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
19289
|
-
var
|
|
19290
|
-
|
|
19291
|
-
isFullScreen =
|
|
19292
|
-
setIsFnllScreen =
|
|
19259
|
+
var _useState1 = useState(false),
|
|
19260
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
19261
|
+
isFullScreen = _useState10[0],
|
|
19262
|
+
setIsFnllScreen = _useState10[1];
|
|
19293
19263
|
// @ts-nocheck
|
|
19294
19264
|
var value = props;
|
|
19295
19265
|
var _props$fields = props.fields,
|
|
19296
19266
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
19297
|
-
var
|
|
19298
|
-
|
|
19299
|
-
showColumn =
|
|
19300
|
-
setShowColumns =
|
|
19267
|
+
var _useState11 = useState([]),
|
|
19268
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
19269
|
+
showColumn = _useState12[0],
|
|
19270
|
+
setShowColumns = _useState12[1]; // 列字段
|
|
19301
19271
|
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19302
|
-
var
|
|
19272
|
+
var _useState13 = useState(originSearchFields),
|
|
19273
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
19274
|
+
showSearchFields = _useState14[0],
|
|
19275
|
+
setShowSearchFields = _useState14[1]; //搜索项字段
|
|
19276
|
+
var _useState15 = useState([]),
|
|
19303
19277
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
19304
|
-
|
|
19305
|
-
|
|
19306
|
-
var _useState17 = useState(
|
|
19278
|
+
showExportColumn = _useState16[0],
|
|
19279
|
+
setShowExportColumns = _useState16[1]; // 导出列字段
|
|
19280
|
+
var _useState17 = useState(''),
|
|
19307
19281
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
19308
|
-
|
|
19309
|
-
|
|
19310
|
-
var _useState19 = useState(''),
|
|
19311
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
19312
|
-
height = _useState20[0],
|
|
19313
|
-
setHeight = _useState20[1];
|
|
19282
|
+
height = _useState18[0],
|
|
19283
|
+
setHeight = _useState18[1];
|
|
19314
19284
|
var sortTableRef = useRef(null);
|
|
19315
19285
|
var searchTableRef = useRef(null);
|
|
19316
19286
|
var exportTableRef = useRef(null);
|
|
@@ -20358,22 +20328,19 @@ function outLogin(_x) {
|
|
|
20358
20328
|
return _outLogin.apply(this, arguments);
|
|
20359
20329
|
}
|
|
20360
20330
|
function _outLogin() {
|
|
20361
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
20331
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20362
20332
|
var res;
|
|
20363
|
-
return
|
|
20364
|
-
while (1) switch (_context.
|
|
20333
|
+
return _regenerator().w(function (_context) {
|
|
20334
|
+
while (1) switch (_context.n) {
|
|
20365
20335
|
case 0:
|
|
20366
|
-
_context.
|
|
20336
|
+
_context.n = 1;
|
|
20367
20337
|
return requestUtil({
|
|
20368
20338
|
url: '/user/web/loginOut',
|
|
20369
20339
|
method: 'GET'
|
|
20370
20340
|
});
|
|
20371
|
-
case
|
|
20372
|
-
res = _context.
|
|
20373
|
-
return _context.
|
|
20374
|
-
case 4:
|
|
20375
|
-
case "end":
|
|
20376
|
-
return _context.stop();
|
|
20341
|
+
case 1:
|
|
20342
|
+
res = _context.v;
|
|
20343
|
+
return _context.a(2, res);
|
|
20377
20344
|
}
|
|
20378
20345
|
}, _callee);
|
|
20379
20346
|
}));
|
|
@@ -20500,20 +20467,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20500
20467
|
});
|
|
20501
20468
|
};
|
|
20502
20469
|
var loginOut = /*#__PURE__*/function () {
|
|
20503
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
20470
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
20504
20471
|
var sessionId;
|
|
20505
|
-
return
|
|
20506
|
-
while (1) switch (_context.
|
|
20472
|
+
return _regenerator().w(function (_context) {
|
|
20473
|
+
while (1) switch (_context.n) {
|
|
20507
20474
|
case 0:
|
|
20508
|
-
_context.
|
|
20475
|
+
_context.n = 1;
|
|
20509
20476
|
return getSessionId();
|
|
20510
|
-
case
|
|
20511
|
-
sessionId = _context.
|
|
20512
|
-
_context.
|
|
20477
|
+
case 1:
|
|
20478
|
+
sessionId = _context.v;
|
|
20479
|
+
_context.n = 2;
|
|
20513
20480
|
return outLogin({
|
|
20514
20481
|
sessionId: sessionId
|
|
20515
20482
|
});
|
|
20516
|
-
case
|
|
20483
|
+
case 2:
|
|
20517
20484
|
// @ts-ignore
|
|
20518
20485
|
if (BUILD_TYPE) {
|
|
20519
20486
|
message$1.success('退出登录成功');
|
|
@@ -20523,9 +20490,8 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20523
20490
|
} else {
|
|
20524
20491
|
setLoginOutPath();
|
|
20525
20492
|
}
|
|
20526
|
-
case
|
|
20527
|
-
|
|
20528
|
-
return _context.stop();
|
|
20493
|
+
case 3:
|
|
20494
|
+
return _context.a(2);
|
|
20529
20495
|
}
|
|
20530
20496
|
}, _callee);
|
|
20531
20497
|
}));
|
|
@@ -20612,18 +20578,15 @@ function getStoreByName(_x) {
|
|
|
20612
20578
|
return _getStoreByName.apply(this, arguments);
|
|
20613
20579
|
}
|
|
20614
20580
|
function _getStoreByName() {
|
|
20615
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20616
|
-
return
|
|
20617
|
-
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) {
|
|
20618
20584
|
case 0:
|
|
20619
|
-
return _context.
|
|
20585
|
+
return _context.a(2, requestUtil({
|
|
20620
20586
|
url: '/store-house/orgViewNode/listNoPage',
|
|
20621
20587
|
method: 'GET',
|
|
20622
20588
|
params: _objectSpread2({}, params)
|
|
20623
20589
|
}));
|
|
20624
|
-
case 1:
|
|
20625
|
-
case "end":
|
|
20626
|
-
return _context.stop();
|
|
20627
20590
|
}
|
|
20628
20591
|
}, _callee);
|
|
20629
20592
|
}));
|
|
@@ -20658,33 +20621,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20658
20621
|
openSelect = _useState8[0],
|
|
20659
20622
|
setOpenSelect = _useState8[1];
|
|
20660
20623
|
var _useState9 = useState([]),
|
|
20661
|
-
|
|
20662
|
-
options =
|
|
20663
|
-
setOptions =
|
|
20664
|
-
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(''),
|
|
20665
20632
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
20666
|
-
|
|
20667
|
-
|
|
20668
|
-
var _useState13 = useState(
|
|
20669
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
20670
|
-
searchValue = _useState14[0],
|
|
20671
|
-
setSearchValue = _useState14[1];
|
|
20672
|
-
var _useState15 = useState([{
|
|
20633
|
+
searchValue = _useState12[0],
|
|
20634
|
+
setSearchValue = _useState12[1];
|
|
20635
|
+
var _useState13 = useState([{
|
|
20673
20636
|
label: name,
|
|
20674
20637
|
value: code
|
|
20675
20638
|
}]),
|
|
20676
|
-
|
|
20677
|
-
store =
|
|
20678
|
-
setStore =
|
|
20639
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
20640
|
+
store = _useState14[0],
|
|
20641
|
+
setStore = _useState14[1];
|
|
20679
20642
|
function fetchUserList(_x, _x2) {
|
|
20680
20643
|
return _fetchUserList.apply(this, arguments);
|
|
20681
20644
|
}
|
|
20682
20645
|
function _fetchUserList() {
|
|
20683
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
20684
|
-
return
|
|
20685
|
-
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) {
|
|
20686
20649
|
case 0:
|
|
20687
|
-
return _context3.
|
|
20650
|
+
return _context3.a(2, getStoreByName({
|
|
20688
20651
|
orgName: storeName ? storeName : undefined,
|
|
20689
20652
|
platCompanyCode: init ? undefined : key,
|
|
20690
20653
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -20703,9 +20666,6 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20703
20666
|
};
|
|
20704
20667
|
});
|
|
20705
20668
|
}));
|
|
20706
|
-
case 1:
|
|
20707
|
-
case "end":
|
|
20708
|
-
return _context3.stop();
|
|
20709
20669
|
}
|
|
20710
20670
|
}, _callee3);
|
|
20711
20671
|
}));
|
|
@@ -20728,20 +20688,19 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20728
20688
|
return debounce$1(loadOptions, debounceTimeout);
|
|
20729
20689
|
}, [debounceTimeout, key]);
|
|
20730
20690
|
var changeInput = /*#__PURE__*/function () {
|
|
20731
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
20691
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
|
|
20732
20692
|
var res;
|
|
20733
|
-
return
|
|
20734
|
-
while (1) switch (_context.
|
|
20693
|
+
return _regenerator().w(function (_context) {
|
|
20694
|
+
while (1) switch (_context.n) {
|
|
20735
20695
|
case 0:
|
|
20736
|
-
_context.
|
|
20696
|
+
_context.n = 1;
|
|
20737
20697
|
return debounceFetcher(str);
|
|
20738
|
-
case
|
|
20739
|
-
res = _context.
|
|
20698
|
+
case 1:
|
|
20699
|
+
res = _context.v;
|
|
20740
20700
|
setOptions(res);
|
|
20741
20701
|
setRescouse(res);
|
|
20742
|
-
case
|
|
20743
|
-
|
|
20744
|
-
return _context.stop();
|
|
20702
|
+
case 2:
|
|
20703
|
+
return _context.a(2);
|
|
20745
20704
|
}
|
|
20746
20705
|
}, _callee);
|
|
20747
20706
|
}));
|
|
@@ -20750,15 +20709,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20750
20709
|
};
|
|
20751
20710
|
}();
|
|
20752
20711
|
useEffect(function () {
|
|
20753
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
20712
|
+
_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
20754
20713
|
var res;
|
|
20755
|
-
return
|
|
20756
|
-
while (1) switch (_context2.
|
|
20714
|
+
return _regenerator().w(function (_context2) {
|
|
20715
|
+
while (1) switch (_context2.n) {
|
|
20757
20716
|
case 0:
|
|
20758
|
-
_context2.
|
|
20717
|
+
_context2.n = 1;
|
|
20759
20718
|
return fetchUserList(undefined, true);
|
|
20760
|
-
case
|
|
20761
|
-
res = _context2.
|
|
20719
|
+
case 1:
|
|
20720
|
+
res = _context2.v;
|
|
20762
20721
|
res.map(function (item, indexNumber) {
|
|
20763
20722
|
if (item.label === name) {
|
|
20764
20723
|
setIndex(indexNumber);
|
|
@@ -20774,9 +20733,8 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20774
20733
|
});
|
|
20775
20734
|
setOptions(res);
|
|
20776
20735
|
setRescouse(res);
|
|
20777
|
-
case
|
|
20778
|
-
|
|
20779
|
-
return _context2.stop();
|
|
20736
|
+
case 2:
|
|
20737
|
+
return _context2.a(2);
|
|
20780
20738
|
}
|
|
20781
20739
|
}, _callee2);
|
|
20782
20740
|
}))();
|
|
@@ -21031,8 +20989,6 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
21031
20989
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
21032
20990
|
};
|
|
21033
20991
|
|
|
21034
|
-
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";
|
|
21035
|
-
|
|
21036
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";
|
|
21037
20993
|
styleInject(css_248z$o);
|
|
21038
20994
|
|
|
@@ -21738,28 +21694,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
21738
21694
|
};
|
|
21739
21695
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
21740
21696
|
className: 'customer_menu_content'
|
|
21741
|
-
}, /*#__PURE__*/React$1.createElement(
|
|
21742
|
-
style: {
|
|
21743
|
-
cursor: 'pointer'
|
|
21744
|
-
},
|
|
21745
|
-
onClick: function onClick(e) {
|
|
21746
|
-
handleClose();
|
|
21747
|
-
settingModalFn(_objectSpread2(_objectSpread2({}, settingModal), {}, {
|
|
21748
|
-
visible: true
|
|
21749
|
-
}));
|
|
21750
|
-
}
|
|
21751
|
-
}, /*#__PURE__*/React$1.createElement("img", {
|
|
21752
|
-
style: {
|
|
21753
|
-
marginTop: '-3px'
|
|
21754
|
-
},
|
|
21755
|
-
width: 24,
|
|
21756
|
-
src: addIcon
|
|
21757
|
-
}), /*#__PURE__*/React$1.createElement(Button, {
|
|
21758
|
-
type: 'link',
|
|
21759
|
-
style: {
|
|
21760
|
-
paddingLeft: '5px'
|
|
21761
|
-
}
|
|
21762
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
21697
|
+
}, !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
21763
21698
|
style: {
|
|
21764
21699
|
left: isDrawer ? 140 : 0
|
|
21765
21700
|
},
|
|
@@ -21825,25 +21760,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
21825
21760
|
currentOneLevel = _useState8[0],
|
|
21826
21761
|
setCurrentOneLevel = _useState8[1];
|
|
21827
21762
|
var _useState9 = useState([]),
|
|
21828
|
-
|
|
21829
|
-
SearhData =
|
|
21830
|
-
setSearchMenuData =
|
|
21831
|
-
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),
|
|
21832
21771
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
21833
|
-
|
|
21834
|
-
|
|
21835
|
-
var _useState13 = useState(
|
|
21772
|
+
drawHeight = _useState12[0],
|
|
21773
|
+
setDrawHeight = _useState12[1];
|
|
21774
|
+
var _useState13 = useState(false),
|
|
21836
21775
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
21837
|
-
|
|
21838
|
-
|
|
21776
|
+
moreBtnShow = _useState14[0],
|
|
21777
|
+
setMoreBtnShow = _useState14[1];
|
|
21839
21778
|
var _useState15 = useState(false),
|
|
21840
21779
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
21841
|
-
|
|
21842
|
-
|
|
21843
|
-
var _useState17 = useState(false),
|
|
21844
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
21845
|
-
showScroll = _useState18[0],
|
|
21846
|
-
setShowScroll = _useState18[1];
|
|
21780
|
+
showScroll = _useState16[0],
|
|
21781
|
+
setShowScroll = _useState16[1];
|
|
21847
21782
|
useEffect(function () {
|
|
21848
21783
|
var _originRoutes$find;
|
|
21849
21784
|
getMenuContentHeight();
|
|
@@ -22261,7 +22196,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
22261
22196
|
if (item.children && item.children.length > 0) {
|
|
22262
22197
|
_getLimitedMenuKeys(item.children);
|
|
22263
22198
|
} else {
|
|
22264
|
-
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
22199
|
+
var originPath = (item.path || item.frontendPath).replace(/^\/\w+\//, '/');
|
|
22265
22200
|
menuKeys.push(originPath);
|
|
22266
22201
|
if (pathToRegexp('/operation-and-maintenance-center/configuration-management/all-general-documents-specific/:id').test(originPath)) {
|
|
22267
22202
|
getId(originPath) && docsId.push(getId(originPath));
|
|
@@ -22511,7 +22446,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22511
22446
|
return;
|
|
22512
22447
|
}
|
|
22513
22448
|
// todo:暂时处理非wujie环境不做404管控
|
|
22514
|
-
if (!window.__POWERED_BY_WUJIE__) {
|
|
22449
|
+
if (!window.__POWERED_BY_WUJIE__ && !_this.props.isSingleSystem) {
|
|
22515
22450
|
treeList.push({
|
|
22516
22451
|
tab: node.locale,
|
|
22517
22452
|
key: node.path,
|
|
@@ -23454,14 +23389,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23454
23389
|
},
|
|
23455
23390
|
menu: {
|
|
23456
23391
|
request: function () {
|
|
23457
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23458
|
-
return
|
|
23459
|
-
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) {
|
|
23460
23395
|
case 0:
|
|
23461
|
-
return _context.
|
|
23462
|
-
case 1:
|
|
23463
|
-
case "end":
|
|
23464
|
-
return _context.stop();
|
|
23396
|
+
return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
23465
23397
|
}
|
|
23466
23398
|
}, _callee);
|
|
23467
23399
|
}));
|
|
@@ -23866,31 +23798,31 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
23866
23798
|
multiTableData = _useState8[0],
|
|
23867
23799
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
23868
23800
|
var _useState9 = useState(10),
|
|
23869
|
-
|
|
23870
|
-
viewCount =
|
|
23871
|
-
setViewCount =
|
|
23801
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
23802
|
+
viewCount = _useState0[0],
|
|
23803
|
+
setViewCount = _useState0[1]; //虚拟表格每次渲染数量
|
|
23872
23804
|
var itemWidth = 100; // 表格每一项宽度
|
|
23873
|
-
var
|
|
23874
|
-
|
|
23875
|
-
realColHeaderWidth =
|
|
23876
|
-
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];
|
|
23877
23809
|
var viewPort = useRef(null);
|
|
23878
23810
|
var topScrollBar = useRef(null);
|
|
23879
23811
|
var leftTableRef = useRef(null);
|
|
23880
23812
|
//起始渲染item
|
|
23881
|
-
var
|
|
23882
|
-
|
|
23883
|
-
startIndex =
|
|
23884
|
-
setStartIndex =
|
|
23813
|
+
var _useState11 = useState(0),
|
|
23814
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
23815
|
+
startIndex = _useState12[0],
|
|
23816
|
+
setStartIndex = _useState12[1];
|
|
23885
23817
|
//结束渲染item
|
|
23886
23818
|
var endIndex = useMemo(function () {
|
|
23887
23819
|
return startIndex + viewCount;
|
|
23888
23820
|
}, [startIndex, viewCount]);
|
|
23889
23821
|
//表格偏移量
|
|
23890
|
-
var
|
|
23891
|
-
|
|
23892
|
-
offsetWidth =
|
|
23893
|
-
setOffset =
|
|
23822
|
+
var _useState13 = useState(0),
|
|
23823
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
23824
|
+
offsetWidth = _useState14[0],
|
|
23825
|
+
setOffset = _useState14[1];
|
|
23894
23826
|
useEffect(function () {
|
|
23895
23827
|
setTimeout(function () {
|
|
23896
23828
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -31194,11 +31126,11 @@ var valueType = {
|
|
|
31194
31126
|
};
|
|
31195
31127
|
|
|
31196
31128
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
31197
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
31198
|
-
return
|
|
31199
|
-
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) {
|
|
31200
31132
|
case 0:
|
|
31201
|
-
_context.
|
|
31133
|
+
_context.n = 1;
|
|
31202
31134
|
return request$2({
|
|
31203
31135
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
31204
31136
|
converter: function converter(_ref2) {
|
|
@@ -31211,11 +31143,8 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
31211
31143
|
});
|
|
31212
31144
|
}
|
|
31213
31145
|
});
|
|
31214
|
-
case
|
|
31215
|
-
return _context.
|
|
31216
|
-
case 3:
|
|
31217
|
-
case "end":
|
|
31218
|
-
return _context.stop();
|
|
31146
|
+
case 1:
|
|
31147
|
+
return _context.a(2, _context.v);
|
|
31219
31148
|
}
|
|
31220
31149
|
}, _callee);
|
|
31221
31150
|
}));
|
|
@@ -31262,12 +31191,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31262
31191
|
value: false
|
|
31263
31192
|
}];
|
|
31264
31193
|
var ref = useRef();
|
|
31265
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
31266
|
-
var _ref$current, source;
|
|
31267
|
-
return
|
|
31268
|
-
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) {
|
|
31269
31198
|
case 0:
|
|
31270
|
-
_context.
|
|
31199
|
+
_context.n = 1;
|
|
31271
31200
|
return setIsShowAndType(function (prev) {
|
|
31272
31201
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
31273
31202
|
return {
|
|
@@ -31278,40 +31207,39 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31278
31207
|
}
|
|
31279
31208
|
return prev;
|
|
31280
31209
|
});
|
|
31281
|
-
case
|
|
31210
|
+
case 1:
|
|
31282
31211
|
if (!record.dictionaryCode) {
|
|
31283
|
-
_context.
|
|
31212
|
+
_context.n = 7;
|
|
31284
31213
|
break;
|
|
31285
31214
|
}
|
|
31286
31215
|
if (!(record.choiceType == 20)) {
|
|
31287
|
-
_context.
|
|
31216
|
+
_context.n = 2;
|
|
31288
31217
|
break;
|
|
31289
31218
|
}
|
|
31290
|
-
|
|
31291
|
-
_context.
|
|
31219
|
+
_t = getDictionarySource(record.dictionaryCode);
|
|
31220
|
+
_context.n = 6;
|
|
31292
31221
|
break;
|
|
31293
|
-
case
|
|
31222
|
+
case 2:
|
|
31294
31223
|
if (!(record.choiceType == 30)) {
|
|
31295
|
-
_context.
|
|
31224
|
+
_context.n = 4;
|
|
31296
31225
|
break;
|
|
31297
31226
|
}
|
|
31298
|
-
_context.
|
|
31227
|
+
_context.n = 3;
|
|
31299
31228
|
return getDynamicDict(record.dictionaryCode);
|
|
31300
|
-
case
|
|
31301
|
-
|
|
31302
|
-
_context.
|
|
31229
|
+
case 3:
|
|
31230
|
+
_t2 = _context.v;
|
|
31231
|
+
_context.n = 5;
|
|
31303
31232
|
break;
|
|
31304
|
-
case
|
|
31305
|
-
|
|
31306
|
-
case
|
|
31307
|
-
|
|
31308
|
-
case
|
|
31309
|
-
source =
|
|
31233
|
+
case 4:
|
|
31234
|
+
_t2 = [];
|
|
31235
|
+
case 5:
|
|
31236
|
+
_t = _t2;
|
|
31237
|
+
case 6:
|
|
31238
|
+
source = _t;
|
|
31310
31239
|
// @ts-ignore
|
|
31311
31240
|
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
31312
|
-
case
|
|
31313
|
-
|
|
31314
|
-
return _context.stop();
|
|
31241
|
+
case 7:
|
|
31242
|
+
return _context.a(2);
|
|
31315
31243
|
}
|
|
31316
31244
|
}, _callee);
|
|
31317
31245
|
})));
|
|
@@ -31376,10 +31304,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31376
31304
|
source: {
|
|
31377
31305
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
31378
31306
|
type: function () {
|
|
31379
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
31307
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
|
|
31380
31308
|
var form, values, name, relates, source;
|
|
31381
|
-
return
|
|
31382
|
-
while (1) switch (_context2.
|
|
31309
|
+
return _regenerator().w(function (_context2) {
|
|
31310
|
+
while (1) switch (_context2.n) {
|
|
31383
31311
|
case 0:
|
|
31384
31312
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
31385
31313
|
if (values[0]) {
|
|
@@ -31388,19 +31316,18 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31388
31316
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
31389
31317
|
}
|
|
31390
31318
|
if (!values[1]) {
|
|
31391
|
-
_context2.
|
|
31319
|
+
_context2.n = 2;
|
|
31392
31320
|
break;
|
|
31393
31321
|
}
|
|
31394
|
-
_context2.
|
|
31322
|
+
_context2.n = 1;
|
|
31395
31323
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
31396
|
-
case
|
|
31397
|
-
source = _context2.
|
|
31324
|
+
case 1:
|
|
31325
|
+
source = _context2.v;
|
|
31398
31326
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
31399
31327
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
31400
31328
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
31401
|
-
case
|
|
31402
|
-
|
|
31403
|
-
return _context2.stop();
|
|
31329
|
+
case 2:
|
|
31330
|
+
return _context2.a(2);
|
|
31404
31331
|
}
|
|
31405
31332
|
}, _callee2);
|
|
31406
31333
|
}));
|
|
@@ -31856,25 +31783,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31856
31783
|
source: {
|
|
31857
31784
|
relates: ['choiceType', 'inputType'],
|
|
31858
31785
|
type: function () {
|
|
31859
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
31786
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
|
|
31860
31787
|
var values, name, form, source;
|
|
31861
|
-
return
|
|
31862
|
-
while (1) switch (_context3.
|
|
31788
|
+
return _regenerator().w(function (_context3) {
|
|
31789
|
+
while (1) switch (_context3.n) {
|
|
31863
31790
|
case 0:
|
|
31864
|
-
values =
|
|
31791
|
+
values = _ref0.values, name = _ref0.name, form = _ref0.form;
|
|
31865
31792
|
if (values[1] === 40) {
|
|
31866
31793
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
31867
31794
|
form.setFieldVisible(name, false);
|
|
31868
31795
|
}
|
|
31869
31796
|
if (!(values[0] === 30)) {
|
|
31870
|
-
_context3.
|
|
31797
|
+
_context3.n = 2;
|
|
31871
31798
|
break;
|
|
31872
31799
|
}
|
|
31873
|
-
_context3.
|
|
31800
|
+
_context3.n = 1;
|
|
31874
31801
|
return request$2({
|
|
31875
31802
|
url: '/basic/dictDynamicItem/queryList',
|
|
31876
|
-
converter: function converter(
|
|
31877
|
-
var data =
|
|
31803
|
+
converter: function converter(_ref1) {
|
|
31804
|
+
var data = _ref1.data;
|
|
31878
31805
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31879
31806
|
return {
|
|
31880
31807
|
text: d.dictCode,
|
|
@@ -31883,17 +31810,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31883
31810
|
});
|
|
31884
31811
|
}
|
|
31885
31812
|
});
|
|
31886
|
-
case
|
|
31887
|
-
source = _context3.
|
|
31813
|
+
case 1:
|
|
31814
|
+
source = _context3.v;
|
|
31888
31815
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
31889
31816
|
form.setFieldVisible(name, true);
|
|
31890
|
-
_context3.
|
|
31817
|
+
_context3.n = 3;
|
|
31891
31818
|
break;
|
|
31892
|
-
case
|
|
31819
|
+
case 2:
|
|
31893
31820
|
form.setFieldVisible(name, false);
|
|
31894
|
-
case
|
|
31895
|
-
|
|
31896
|
-
return _context3.stop();
|
|
31821
|
+
case 3:
|
|
31822
|
+
return _context3.a(2);
|
|
31897
31823
|
}
|
|
31898
31824
|
}, _callee3);
|
|
31899
31825
|
}));
|
|
@@ -31908,8 +31834,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31908
31834
|
name: 'enumeration',
|
|
31909
31835
|
label: '维护自定义选项',
|
|
31910
31836
|
field: {
|
|
31911
|
-
type: function type(
|
|
31912
|
-
var form =
|
|
31837
|
+
type: function type(_ref10) {
|
|
31838
|
+
var form = _ref10.form;
|
|
31913
31839
|
return /*#__PURE__*/React$1.createElement(Button, {
|
|
31914
31840
|
type: 'link',
|
|
31915
31841
|
onClick: function onClick() {
|
|
@@ -31935,10 +31861,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31935
31861
|
dependency: {
|
|
31936
31862
|
source: {
|
|
31937
31863
|
relates: ['choiceType'],
|
|
31938
|
-
type: function type(
|
|
31939
|
-
var values =
|
|
31940
|
-
name =
|
|
31941
|
-
form =
|
|
31864
|
+
type: function type(_ref11) {
|
|
31865
|
+
var values = _ref11.values,
|
|
31866
|
+
name = _ref11.name,
|
|
31867
|
+
form = _ref11.form;
|
|
31942
31868
|
if (values[0] === 10) {
|
|
31943
31869
|
form.setFieldVisible(name, true);
|
|
31944
31870
|
} else {
|
|
@@ -31954,10 +31880,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31954
31880
|
dependency: {
|
|
31955
31881
|
visible: {
|
|
31956
31882
|
relates: ['choiceType'],
|
|
31957
|
-
type: function type(
|
|
31958
|
-
var name =
|
|
31959
|
-
values =
|
|
31960
|
-
form =
|
|
31883
|
+
type: function type(_ref12) {
|
|
31884
|
+
var name = _ref12.name,
|
|
31885
|
+
values = _ref12.values,
|
|
31886
|
+
form = _ref12.form;
|
|
31961
31887
|
if (values[0] == 330) {
|
|
31962
31888
|
form.setFieldVisible(name, true);
|
|
31963
31889
|
} else {
|
|
@@ -31981,8 +31907,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31981
31907
|
params: {
|
|
31982
31908
|
'qp-businessType-eq': record.businessType
|
|
31983
31909
|
},
|
|
31984
|
-
converter: function converter(
|
|
31985
|
-
var data =
|
|
31910
|
+
converter: function converter(_ref13) {
|
|
31911
|
+
var data = _ref13.data;
|
|
31986
31912
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31987
31913
|
return {
|
|
31988
31914
|
text: d.name,
|
|
@@ -32022,8 +31948,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32022
31948
|
'qp-businessType-eq': record.businessType,
|
|
32023
31949
|
'qp-status-eq': 1
|
|
32024
31950
|
},
|
|
32025
|
-
converter: function converter(
|
|
32026
|
-
var data =
|
|
31951
|
+
converter: function converter(_ref14) {
|
|
31952
|
+
var data = _ref14.data;
|
|
32027
31953
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32028
31954
|
var _d$code;
|
|
32029
31955
|
return {
|
|
@@ -32051,8 +31977,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32051
31977
|
remoteSource: {
|
|
32052
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),
|
|
32053
31979
|
method: 'get',
|
|
32054
|
-
converter: function converter(
|
|
32055
|
-
var data =
|
|
31980
|
+
converter: function converter(_ref15) {
|
|
31981
|
+
var data = _ref15.data;
|
|
32056
31982
|
if (lineDetail.moduleType == 1) {
|
|
32057
31983
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32058
31984
|
return {
|
|
@@ -32078,16 +32004,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32078
32004
|
width: 900,
|
|
32079
32005
|
maskClosable: false,
|
|
32080
32006
|
onOk: function () {
|
|
32081
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
32007
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
32082
32008
|
var _ref$current4, _res$editableStatus;
|
|
32083
32009
|
var res, _res$defaultValue;
|
|
32084
|
-
return
|
|
32085
|
-
while (1) switch (_context4.
|
|
32010
|
+
return _regenerator().w(function (_context4) {
|
|
32011
|
+
while (1) switch (_context4.n) {
|
|
32086
32012
|
case 0:
|
|
32087
|
-
_context4.
|
|
32013
|
+
_context4.n = 1;
|
|
32088
32014
|
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
32089
|
-
case
|
|
32090
|
-
res = _context4.
|
|
32015
|
+
case 1:
|
|
32016
|
+
res = _context4.v;
|
|
32091
32017
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
32092
32018
|
res.fieldGroup = record.fieldGroup;
|
|
32093
32019
|
res.businessType = record.businessType;
|
|
@@ -32114,7 +32040,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32114
32040
|
delete res.formula;
|
|
32115
32041
|
delete res.showValue;
|
|
32116
32042
|
if (!(mode === 'create')) {
|
|
32117
|
-
_context4.
|
|
32043
|
+
_context4.n = 2;
|
|
32118
32044
|
break;
|
|
32119
32045
|
}
|
|
32120
32046
|
request$2({
|
|
@@ -32126,8 +32052,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32126
32052
|
onParentOk();
|
|
32127
32053
|
}
|
|
32128
32054
|
});
|
|
32129
|
-
return _context4.
|
|
32130
|
-
case
|
|
32055
|
+
return _context4.a(2);
|
|
32056
|
+
case 2:
|
|
32131
32057
|
request$2({
|
|
32132
32058
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
32133
32059
|
method: 'PATCH',
|
|
@@ -32137,9 +32063,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32137
32063
|
onParentOk();
|
|
32138
32064
|
}
|
|
32139
32065
|
});
|
|
32140
|
-
case
|
|
32141
|
-
|
|
32142
|
-
return _context4.stop();
|
|
32066
|
+
case 3:
|
|
32067
|
+
return _context4.a(2);
|
|
32143
32068
|
}
|
|
32144
32069
|
}, _callee4);
|
|
32145
32070
|
}));
|
|
@@ -32595,21 +32520,21 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
32595
32520
|
jsonEditorVal = _useState8[0],
|
|
32596
32521
|
setJsonEditorVal = _useState8[1];
|
|
32597
32522
|
var _useState9 = useState({}),
|
|
32598
|
-
|
|
32599
|
-
moduleParams =
|
|
32600
|
-
setModuleParams =
|
|
32601
|
-
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({}),
|
|
32602
32531
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32603
|
-
|
|
32604
|
-
|
|
32605
|
-
var _useState13 = useState(
|
|
32532
|
+
tablesConfigParams = _useState12[0],
|
|
32533
|
+
setTablesConfigParams = _useState12[1];
|
|
32534
|
+
var _useState13 = useState([]),
|
|
32606
32535
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32607
|
-
|
|
32608
|
-
|
|
32609
|
-
var _useState15 = useState([]),
|
|
32610
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
32611
|
-
tableJsonEditorValsArr = _useState16[0],
|
|
32612
|
-
setTableJsonEditorValsArr = _useState16[1];
|
|
32536
|
+
tableJsonEditorValsArr = _useState14[0],
|
|
32537
|
+
setTableJsonEditorValsArr = _useState14[1];
|
|
32613
32538
|
useEffect(function () {
|
|
32614
32539
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32615
32540
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -32985,11 +32910,11 @@ function getMetaData(_x) {
|
|
|
32985
32910
|
|
|
32986
32911
|
// 获取数据
|
|
32987
32912
|
function _getMetaData() {
|
|
32988
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
32989
|
-
return
|
|
32990
|
-
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) {
|
|
32991
32916
|
case 0:
|
|
32992
|
-
return _context.
|
|
32917
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
32993
32918
|
request$3('/basic/entityProperty/listNoPage', {
|
|
32994
32919
|
params: {
|
|
32995
32920
|
'qp-entityId-eq': id
|
|
@@ -33001,9 +32926,6 @@ function _getMetaData() {
|
|
|
33001
32926
|
reject([]);
|
|
33002
32927
|
});
|
|
33003
32928
|
}));
|
|
33004
|
-
case 1:
|
|
33005
|
-
case "end":
|
|
33006
|
-
return _context.stop();
|
|
33007
32929
|
}
|
|
33008
32930
|
}, _callee);
|
|
33009
32931
|
}));
|
|
@@ -33207,11 +33129,11 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33207
33129
|
tableState = _useState4[0],
|
|
33208
33130
|
setTableState = _useState4[1];
|
|
33209
33131
|
var handleOpen = /*#__PURE__*/function () {
|
|
33210
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33132
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33211
33133
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
33212
33134
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
33213
|
-
return
|
|
33214
|
-
while (1) switch (_context.
|
|
33135
|
+
return _regenerator().w(function (_context) {
|
|
33136
|
+
while (1) switch (_context.n) {
|
|
33215
33137
|
case 0:
|
|
33216
33138
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
33217
33139
|
isSearchForm: props.isSearchForm,
|
|
@@ -33219,16 +33141,16 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33219
33141
|
searchFormData: searchFormData
|
|
33220
33142
|
});
|
|
33221
33143
|
if (requestConfigNew) {
|
|
33222
|
-
_context.
|
|
33144
|
+
_context.n = 1;
|
|
33223
33145
|
break;
|
|
33224
33146
|
}
|
|
33225
|
-
return _context.
|
|
33226
|
-
case
|
|
33147
|
+
return _context.a(2);
|
|
33148
|
+
case 1:
|
|
33227
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;
|
|
33228
|
-
_context.
|
|
33150
|
+
_context.n = 2;
|
|
33229
33151
|
return getMetaData(metaDataId);
|
|
33230
|
-
case
|
|
33231
|
-
metaData = _context.
|
|
33152
|
+
case 2:
|
|
33153
|
+
metaData = _context.v;
|
|
33232
33154
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
33233
33155
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
33234
33156
|
})) || [];
|
|
@@ -33268,9 +33190,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33268
33190
|
// @ts-ignore
|
|
33269
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);
|
|
33270
33192
|
}
|
|
33271
|
-
case
|
|
33272
|
-
|
|
33273
|
-
return _context.stop();
|
|
33193
|
+
case 3:
|
|
33194
|
+
return _context.a(2);
|
|
33274
33195
|
}
|
|
33275
33196
|
}, _callee);
|
|
33276
33197
|
}));
|
|
@@ -33373,7 +33294,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33373
33294
|
}, [requestConfig, tableState.columns]);
|
|
33374
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';
|
|
33375
33296
|
var handleOk = function handleOk(rowData) {
|
|
33376
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
33297
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
|
|
33377
33298
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
33378
33299
|
//多选数据处理
|
|
33379
33300
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -33384,9 +33305,9 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33384
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()) || [];
|
|
33385
33306
|
var realSelectedRows = selectedRows;
|
|
33386
33307
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
33387
|
-
var _queryTableRef$
|
|
33308
|
+
var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
|
|
33388
33309
|
// @ts-ignore
|
|
33389
|
-
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()) || [];
|
|
33390
33311
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
33391
33312
|
return selectedKesys.includes(s[rowKey]);
|
|
33392
33313
|
});
|
|
@@ -33419,10 +33340,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33419
33340
|
});
|
|
33420
33341
|
}
|
|
33421
33342
|
mappings.map(function (item) {
|
|
33422
|
-
var _props$
|
|
33423
|
-
if (((_props$
|
|
33424
|
-
var _props$
|
|
33425
|
-
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];
|
|
33426
33347
|
}
|
|
33427
33348
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
33428
33349
|
});
|
|
@@ -33477,10 +33398,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33477
33398
|
}
|
|
33478
33399
|
props.onCancel();
|
|
33479
33400
|
//@ts-ignore
|
|
33480
|
-
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();
|
|
33481
33402
|
};
|
|
33482
33403
|
var config = useMemo(function () {
|
|
33483
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
33404
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
|
|
33484
33405
|
var returnConfig = {
|
|
33485
33406
|
size: 'small',
|
|
33486
33407
|
needPageHeader: false,
|
|
@@ -33489,7 +33410,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33489
33410
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33490
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) {
|
|
33491
33412
|
return v.key || v;
|
|
33492
|
-
})) || (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))
|
|
33493
33414
|
} : false,
|
|
33494
33415
|
remoteDataSource: remoteDataSource,
|
|
33495
33416
|
fields: tableState.fields,
|
|
@@ -33497,8 +33418,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33497
33418
|
rowKey: rowKey,
|
|
33498
33419
|
tableProps: !isView && {
|
|
33499
33420
|
rowClassName: function rowClassName(record) {
|
|
33500
|
-
var _props$
|
|
33501
|
-
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' : '';
|
|
33502
33423
|
},
|
|
33503
33424
|
onRow: function onRow(record) {
|
|
33504
33425
|
return {
|
|
@@ -33543,10 +33464,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33543
33464
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React$1.createElement(Button, {
|
|
33544
33465
|
type: "default",
|
|
33545
33466
|
onClick: function onClick() {
|
|
33546
|
-
var _queryTableRef$
|
|
33467
|
+
var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
|
|
33547
33468
|
props.onCancel();
|
|
33548
33469
|
//@ts-ignore
|
|
33549
|
-
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();
|
|
33550
33471
|
}
|
|
33551
33472
|
}, "\u53D6\u6D88"))));
|
|
33552
33473
|
});
|
|
@@ -33770,19 +33691,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33770
33691
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33771
33692
|
handSource = _useState2[0],
|
|
33772
33693
|
setHandSource = _useState2[1];
|
|
33773
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
33694
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33774
33695
|
var resData, data;
|
|
33775
|
-
return
|
|
33776
|
-
while (1) switch (_context.
|
|
33696
|
+
return _regenerator().w(function (_context) {
|
|
33697
|
+
while (1) switch (_context.n) {
|
|
33777
33698
|
case 0:
|
|
33778
33699
|
if (!(!source && initRequestSource)) {
|
|
33779
|
-
_context.
|
|
33700
|
+
_context.n = 2;
|
|
33780
33701
|
break;
|
|
33781
33702
|
}
|
|
33782
|
-
_context.
|
|
33703
|
+
_context.n = 1;
|
|
33783
33704
|
return initRequestSource();
|
|
33784
|
-
case
|
|
33785
|
-
resData = _context.
|
|
33705
|
+
case 1:
|
|
33706
|
+
resData = _context.v;
|
|
33786
33707
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
33787
33708
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
33788
33709
|
label: item.text,
|
|
@@ -33790,9 +33711,8 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33790
33711
|
});
|
|
33791
33712
|
})) || [];
|
|
33792
33713
|
setHandSource(data);
|
|
33793
|
-
case
|
|
33794
|
-
|
|
33795
|
-
return _context.stop();
|
|
33714
|
+
case 2:
|
|
33715
|
+
return _context.a(2);
|
|
33796
33716
|
}
|
|
33797
33717
|
}, _callee);
|
|
33798
33718
|
})), []);
|
|
@@ -33922,20 +33842,17 @@ function getRegularThresholdRange(_x) {
|
|
|
33922
33842
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
33923
33843
|
}
|
|
33924
33844
|
function _getRegularThresholdRange() {
|
|
33925
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
33926
|
-
return
|
|
33927
|
-
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) {
|
|
33928
33848
|
case 0:
|
|
33929
|
-
return _context.
|
|
33849
|
+
return _context.a(2, requestUtil({
|
|
33930
33850
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
33931
33851
|
method: 'POST',
|
|
33932
33852
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
33933
33853
|
queryIdentify: undefined
|
|
33934
33854
|
})
|
|
33935
33855
|
}));
|
|
33936
|
-
case 1:
|
|
33937
|
-
case "end":
|
|
33938
|
-
return _context.stop();
|
|
33939
33856
|
}
|
|
33940
33857
|
}, _callee);
|
|
33941
33858
|
}));
|
|
@@ -34076,24 +33993,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34076
33993
|
};
|
|
34077
33994
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
34078
33995
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
34079
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33996
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
34080
33997
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
34081
|
-
return
|
|
34082
|
-
while (1) switch (_context.
|
|
33998
|
+
return _regenerator().w(function (_context) {
|
|
33999
|
+
while (1) switch (_context.n) {
|
|
34083
34000
|
case 0:
|
|
34084
34001
|
if (queryIdentify) {
|
|
34085
|
-
_context.
|
|
34002
|
+
_context.n = 1;
|
|
34086
34003
|
break;
|
|
34087
34004
|
}
|
|
34088
|
-
return _context.
|
|
34089
|
-
case
|
|
34005
|
+
return _context.a(2);
|
|
34006
|
+
case 1:
|
|
34090
34007
|
thresholdQuery = _this.state.thresholdQuery;
|
|
34091
34008
|
extraRequestUrl = '';
|
|
34092
34009
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
34093
34010
|
if (!queryIdentityInfo.find(function (item) {
|
|
34094
34011
|
return item.identity == propertyCode;
|
|
34095
34012
|
})) {
|
|
34096
|
-
_context.
|
|
34013
|
+
_context.n = 3;
|
|
34097
34014
|
break;
|
|
34098
34015
|
}
|
|
34099
34016
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -34107,15 +34024,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34107
34024
|
if (!needQueryList.some(function (item) {
|
|
34108
34025
|
return !querParams[item] || !querParams[item].length;
|
|
34109
34026
|
})) {
|
|
34110
|
-
_context.
|
|
34027
|
+
_context.n = 2;
|
|
34111
34028
|
break;
|
|
34112
34029
|
}
|
|
34113
|
-
return _context.
|
|
34114
|
-
case
|
|
34030
|
+
return _context.a(2);
|
|
34031
|
+
case 2:
|
|
34115
34032
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
34116
34033
|
return item.identity == propertyCode;
|
|
34117
34034
|
}).requestUrl || '';
|
|
34118
|
-
case
|
|
34035
|
+
case 3:
|
|
34119
34036
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
34120
34037
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
34121
34038
|
querParams = {
|
|
@@ -34126,7 +34043,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34126
34043
|
// querParams = { dictCode: queryIdentify }
|
|
34127
34044
|
}
|
|
34128
34045
|
if (!extraRequestUrl) {
|
|
34129
|
-
_context.
|
|
34046
|
+
_context.n = 4;
|
|
34130
34047
|
break;
|
|
34131
34048
|
}
|
|
34132
34049
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -34165,43 +34082,42 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34165
34082
|
return handleData;
|
|
34166
34083
|
}
|
|
34167
34084
|
});
|
|
34168
|
-
_context.
|
|
34085
|
+
_context.n = 8;
|
|
34169
34086
|
break;
|
|
34170
|
-
case
|
|
34087
|
+
case 4:
|
|
34171
34088
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
34172
|
-
_context.
|
|
34089
|
+
_context.n = 5;
|
|
34173
34090
|
break;
|
|
34174
34091
|
}
|
|
34175
34092
|
_this.setState({
|
|
34176
34093
|
thresholdList: queryIdentify
|
|
34177
34094
|
});
|
|
34178
|
-
_context.
|
|
34095
|
+
_context.n = 8;
|
|
34179
34096
|
break;
|
|
34180
|
-
case
|
|
34097
|
+
case 5:
|
|
34181
34098
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
34182
|
-
_context.
|
|
34099
|
+
_context.n = 6;
|
|
34183
34100
|
break;
|
|
34184
34101
|
}
|
|
34185
34102
|
// TODO待处理
|
|
34186
34103
|
_this.setState({
|
|
34187
34104
|
thresholdList: []
|
|
34188
34105
|
});
|
|
34189
|
-
_context.
|
|
34106
|
+
_context.n = 8;
|
|
34190
34107
|
break;
|
|
34191
|
-
case
|
|
34108
|
+
case 6:
|
|
34192
34109
|
querParams.queryIdentify = queryIdentify;
|
|
34193
|
-
_context.
|
|
34110
|
+
_context.n = 7;
|
|
34194
34111
|
return getRegularThresholdRange(querParams);
|
|
34195
|
-
case
|
|
34196
|
-
res = _context.
|
|
34112
|
+
case 7:
|
|
34113
|
+
res = _context.v;
|
|
34197
34114
|
if (handleError(res)) {
|
|
34198
34115
|
_this.setState({
|
|
34199
34116
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
34200
34117
|
});
|
|
34201
34118
|
}
|
|
34202
|
-
case
|
|
34203
|
-
|
|
34204
|
-
return _context.stop();
|
|
34119
|
+
case 8:
|
|
34120
|
+
return _context.a(2);
|
|
34205
34121
|
}
|
|
34206
34122
|
}, _callee);
|
|
34207
34123
|
}));
|
|
@@ -35033,11 +34949,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35033
34949
|
isAll: true,
|
|
35034
34950
|
needNameAndCode: true,
|
|
35035
34951
|
notChangeOnSelect: true,
|
|
35036
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35037
|
-
return
|
|
35038
|
-
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) {
|
|
35039
34955
|
case 0:
|
|
35040
|
-
_context2.
|
|
34956
|
+
_context2.n = 1;
|
|
35041
34957
|
return request$2({
|
|
35042
34958
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35043
34959
|
method: 'get',
|
|
@@ -35054,11 +34970,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35054
34970
|
return handleData;
|
|
35055
34971
|
}
|
|
35056
34972
|
});
|
|
35057
|
-
case
|
|
35058
|
-
return _context2.
|
|
35059
|
-
case 3:
|
|
35060
|
-
case "end":
|
|
35061
|
-
return _context2.stop();
|
|
34973
|
+
case 1:
|
|
34974
|
+
return _context2.a(2, _context2.v);
|
|
35062
34975
|
}
|
|
35063
34976
|
}, _callee2);
|
|
35064
34977
|
})),
|
|
@@ -35082,11 +34995,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35082
34995
|
isAll: true,
|
|
35083
34996
|
needNameAndCode: true,
|
|
35084
34997
|
notChangeOnSelect: true,
|
|
35085
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35086
|
-
return
|
|
35087
|
-
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) {
|
|
35088
35001
|
case 0:
|
|
35089
|
-
_context3.
|
|
35002
|
+
_context3.n = 1;
|
|
35090
35003
|
return request$2({
|
|
35091
35004
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35092
35005
|
method: 'get',
|
|
@@ -35103,11 +35016,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35103
35016
|
return handleData;
|
|
35104
35017
|
}
|
|
35105
35018
|
});
|
|
35106
|
-
case
|
|
35107
|
-
return _context3.
|
|
35108
|
-
case 3:
|
|
35109
|
-
case "end":
|
|
35110
|
-
return _context3.stop();
|
|
35019
|
+
case 1:
|
|
35020
|
+
return _context3.a(2, _context3.v);
|
|
35111
35021
|
}
|
|
35112
35022
|
}, _callee3);
|
|
35113
35023
|
})),
|
|
@@ -35133,11 +35043,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35133
35043
|
isAll: true,
|
|
35134
35044
|
needNameAndCode: true,
|
|
35135
35045
|
notChangeOnSelect: true,
|
|
35136
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35137
|
-
return
|
|
35138
|
-
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) {
|
|
35139
35049
|
case 0:
|
|
35140
|
-
_context4.
|
|
35050
|
+
_context4.n = 1;
|
|
35141
35051
|
return request$2({
|
|
35142
35052
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35143
35053
|
method: 'get',
|
|
@@ -35154,11 +35064,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35154
35064
|
return handleData;
|
|
35155
35065
|
}
|
|
35156
35066
|
});
|
|
35157
|
-
case
|
|
35158
|
-
return _context4.
|
|
35159
|
-
case 3:
|
|
35160
|
-
case "end":
|
|
35161
|
-
return _context4.stop();
|
|
35067
|
+
case 1:
|
|
35068
|
+
return _context4.a(2, _context4.v);
|
|
35162
35069
|
}
|
|
35163
35070
|
}, _callee4);
|
|
35164
35071
|
})),
|
|
@@ -35845,8 +35752,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35845
35752
|
}
|
|
35846
35753
|
}));
|
|
35847
35754
|
} else {
|
|
35848
|
-
var
|
|
35849
|
-
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) {
|
|
35850
35757
|
return {
|
|
35851
35758
|
key: s,
|
|
35852
35759
|
label: valueNames[vIndex],
|
|
@@ -36124,8 +36031,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36124
36031
|
}
|
|
36125
36032
|
}));
|
|
36126
36033
|
} else {
|
|
36127
|
-
var
|
|
36128
|
-
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) {
|
|
36129
36036
|
return {
|
|
36130
36037
|
key: s,
|
|
36131
36038
|
label: valueNames[vIndex],
|
|
@@ -36147,7 +36054,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36147
36054
|
} : {}),
|
|
36148
36055
|
disabled: disabled,
|
|
36149
36056
|
labelInValue: true,
|
|
36150
|
-
value:
|
|
36057
|
+
value: _currentValue0,
|
|
36151
36058
|
requestConfig: {
|
|
36152
36059
|
filterInit: 'qp-code-in'
|
|
36153
36060
|
},
|
|
@@ -36240,8 +36147,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36240
36147
|
}
|
|
36241
36148
|
}));
|
|
36242
36149
|
} else {
|
|
36243
|
-
var
|
|
36244
|
-
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) {
|
|
36245
36152
|
return {
|
|
36246
36153
|
key: s,
|
|
36247
36154
|
label: valueNames[vIndex],
|
|
@@ -36263,7 +36170,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36263
36170
|
} : {}),
|
|
36264
36171
|
disabled: disabled,
|
|
36265
36172
|
labelInValue: true,
|
|
36266
|
-
value:
|
|
36173
|
+
value: _currentValue1,
|
|
36267
36174
|
requestConfig: {
|
|
36268
36175
|
filterInit: 'qp-code-in'
|
|
36269
36176
|
},
|
|
@@ -36356,8 +36263,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36356
36263
|
}
|
|
36357
36264
|
}));
|
|
36358
36265
|
} else {
|
|
36359
|
-
var
|
|
36360
|
-
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) {
|
|
36361
36268
|
return {
|
|
36362
36269
|
key: s,
|
|
36363
36270
|
label: valueNames[vIndex],
|
|
@@ -36379,7 +36286,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36379
36286
|
} : {}),
|
|
36380
36287
|
disabled: disabled,
|
|
36381
36288
|
labelInValue: true,
|
|
36382
|
-
value:
|
|
36289
|
+
value: _currentValue10,
|
|
36383
36290
|
requestConfig: {
|
|
36384
36291
|
filterInit: 'qp-brandCode-in'
|
|
36385
36292
|
},
|
|
@@ -36570,8 +36477,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36570
36477
|
}
|
|
36571
36478
|
}));
|
|
36572
36479
|
} else {
|
|
36573
|
-
var
|
|
36574
|
-
var
|
|
36480
|
+
var _values12;
|
|
36481
|
+
var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
36575
36482
|
return {
|
|
36576
36483
|
key: s,
|
|
36577
36484
|
label: valueNames[vIndex]
|
|
@@ -36599,7 +36506,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36599
36506
|
isSearchForm: true,
|
|
36600
36507
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36601
36508
|
disabled: disabled,
|
|
36602
|
-
value:
|
|
36509
|
+
value: _currentValue11,
|
|
36603
36510
|
onChange: function onChange(value, sourceList) {
|
|
36604
36511
|
if (dataInputBusinessType === 12) {
|
|
36605
36512
|
var _value$map3, _sourceList$filter3;
|
|
@@ -36919,9 +36826,9 @@ var App$1 = function App(_ref) {
|
|
|
36919
36826
|
UpdateState(res);
|
|
36920
36827
|
};
|
|
36921
36828
|
var _useState9 = useState(false),
|
|
36922
|
-
|
|
36923
|
-
isModalVisible =
|
|
36924
|
-
setIsModalVisible =
|
|
36829
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
36830
|
+
isModalVisible = _useState0[0],
|
|
36831
|
+
setIsModalVisible = _useState0[1];
|
|
36925
36832
|
var showModal = function showModal() {
|
|
36926
36833
|
setIsModalVisible(true);
|
|
36927
36834
|
};
|
|
@@ -37402,27 +37309,26 @@ function RenderCompItem(props) {
|
|
|
37402
37309
|
dictData = _useState2[0],
|
|
37403
37310
|
setDictData = _useState2[1];
|
|
37404
37311
|
var getDictData = /*#__PURE__*/function () {
|
|
37405
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
37312
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
37406
37313
|
var _data$map;
|
|
37407
37314
|
var data;
|
|
37408
|
-
return
|
|
37409
|
-
while (1) switch (_context.
|
|
37315
|
+
return _regenerator().w(function (_context) {
|
|
37316
|
+
while (1) switch (_context.n) {
|
|
37410
37317
|
case 0:
|
|
37411
|
-
_context.
|
|
37318
|
+
_context.n = 1;
|
|
37412
37319
|
return request$2({
|
|
37413
37320
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
37414
37321
|
});
|
|
37415
|
-
case
|
|
37416
|
-
data = _context.
|
|
37322
|
+
case 1:
|
|
37323
|
+
data = _context.v;
|
|
37417
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) {
|
|
37418
37325
|
return {
|
|
37419
37326
|
text: item.dictItemName,
|
|
37420
37327
|
value: item.dictItemCode
|
|
37421
37328
|
};
|
|
37422
37329
|
}));
|
|
37423
|
-
case
|
|
37424
|
-
|
|
37425
|
-
return _context.stop();
|
|
37330
|
+
case 2:
|
|
37331
|
+
return _context.a(2);
|
|
37426
37332
|
}
|
|
37427
37333
|
}, _callee);
|
|
37428
37334
|
}));
|
|
@@ -37663,11 +37569,11 @@ function RenderCompItem(props) {
|
|
|
37663
37569
|
needNameAndCode: true,
|
|
37664
37570
|
notChangeOnSelect: true,
|
|
37665
37571
|
initRequestSource: function () {
|
|
37666
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
37667
|
-
return
|
|
37668
|
-
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) {
|
|
37669
37575
|
case 0:
|
|
37670
|
-
_context2.
|
|
37576
|
+
_context2.n = 1;
|
|
37671
37577
|
return request$2({
|
|
37672
37578
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
37673
37579
|
method: 'get',
|
|
@@ -37685,11 +37591,8 @@ function RenderCompItem(props) {
|
|
|
37685
37591
|
return handleData;
|
|
37686
37592
|
}
|
|
37687
37593
|
});
|
|
37688
|
-
case
|
|
37689
|
-
return _context2.
|
|
37690
|
-
case 3:
|
|
37691
|
-
case "end":
|
|
37692
|
-
return _context2.stop();
|
|
37594
|
+
case 1:
|
|
37595
|
+
return _context2.a(2, _context2.v);
|
|
37693
37596
|
}
|
|
37694
37597
|
}, _callee2);
|
|
37695
37598
|
}));
|
|
@@ -38479,7 +38382,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
38479
38382
|
display: 'flex',
|
|
38480
38383
|
marginBottom: '0px',
|
|
38481
38384
|
padding: '10px 0px'
|
|
38482
|
-
}
|
|
38385
|
+
},
|
|
38386
|
+
key: itemDetail.elementId
|
|
38483
38387
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
38484
38388
|
className: 'logical_operate_content',
|
|
38485
38389
|
style: {
|
|
@@ -39739,13 +39643,13 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
39739
39643
|
ruleTypeData = _useState8[0],
|
|
39740
39644
|
setRuleTypeData = _useState8[1];
|
|
39741
39645
|
var _useState9 = useState([]),
|
|
39742
|
-
|
|
39743
|
-
ruleReturnConfig =
|
|
39744
|
-
setRuleReturnConfig =
|
|
39745
|
-
var
|
|
39746
|
-
|
|
39747
|
-
templateData =
|
|
39748
|
-
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];
|
|
39749
39653
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
39750
39654
|
request$2({
|
|
39751
39655
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -40081,25 +39985,25 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
40081
39985
|
regularDataList = _useState8[0],
|
|
40082
39986
|
setRegularDataList = _useState8[1];
|
|
40083
39987
|
var _useState9 = useState([]),
|
|
40084
|
-
|
|
40085
|
-
baseRuleDetailList =
|
|
40086
|
-
setBaseRuleDetailList =
|
|
40087
|
-
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),
|
|
40088
39996
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
40089
|
-
|
|
40090
|
-
|
|
39997
|
+
isGetDefRuleDataRes = _useState12[0],
|
|
39998
|
+
setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
40091
39999
|
var _useState13 = useState(false),
|
|
40092
40000
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
40093
|
-
|
|
40094
|
-
|
|
40001
|
+
isGetRuleDataRes = _useState14[0],
|
|
40002
|
+
setIsGetRuleDataRes = _useState14[1];
|
|
40095
40003
|
var _useState15 = useState(false),
|
|
40096
40004
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
40097
|
-
|
|
40098
|
-
|
|
40099
|
-
var _useState17 = useState(false),
|
|
40100
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
40101
|
-
groupOtherPriorityList = _useState18[0],
|
|
40102
|
-
setGroupOtherPriorityList = _useState18[1];
|
|
40005
|
+
groupOtherPriorityList = _useState16[0],
|
|
40006
|
+
setGroupOtherPriorityList = _useState16[1];
|
|
40103
40007
|
var baseRuleRef = useRef();
|
|
40104
40008
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
40105
40009
|
// 查询规则组下所有规则实例
|