@bit-sun/business-component 4.2.0-alpha.6 → 4.2.0-alpha.6.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/Business/AddSelectBusiness/index.d.ts +3 -4
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
- package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
- package/dist/components/Business/CommonAlert/index.d.ts +1 -2
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +11 -12
- package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
- package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +1 -2
- package/dist/components/Business/SystemLog/index.d.ts +78 -0
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
- package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +1 -2
- package/dist/components/Functional/AuthButton/index.d.ts +1 -2
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +4 -4
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +851 -981
- package/dist/index.js +852 -980
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +18 -19
- package/dist/utils/utils.d.ts +41 -0
- package/package.json +1 -1
- package/src/components/Business/SystemLog/index.md +37 -0
- package/src/components/Business/SystemLog/index.tsx +87 -0
- package/src/index.ts +2 -0
- package/src/utils/utils.ts +41 -1
package/dist/index.js
CHANGED
|
@@ -211,8 +211,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
211
211
|
r,
|
|
212
212
|
i = _objectWithoutPropertiesLoose(e, t);
|
|
213
213
|
if (Object.getOwnPropertySymbols) {
|
|
214
|
-
var
|
|
215
|
-
for (r = 0; r <
|
|
214
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
215
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
216
216
|
}
|
|
217
217
|
return i;
|
|
218
218
|
}
|
|
@@ -220,7 +220,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
220
220
|
if (null == r) return {};
|
|
221
221
|
var t = {};
|
|
222
222
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
223
|
-
if (e.
|
|
223
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
224
224
|
t[n] = r[n];
|
|
225
225
|
}
|
|
226
226
|
return t;
|
|
@@ -230,306 +230,115 @@ function _possibleConstructorReturn(t, e) {
|
|
|
230
230
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
231
231
|
return _assertThisInitialized(t);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
233
|
+
function _regenerator() {
|
|
234
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
235
|
+
var e,
|
|
236
|
+
t,
|
|
237
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
238
|
+
n = r.iterator || "@@iterator",
|
|
239
|
+
o = r.toStringTag || "@@toStringTag";
|
|
240
|
+
function i(r, n, o, i) {
|
|
241
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
242
|
+
u = Object.create(c.prototype);
|
|
243
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
244
|
+
var i,
|
|
245
|
+
c,
|
|
246
|
+
u,
|
|
247
|
+
f = 0,
|
|
248
|
+
p = o || [],
|
|
249
|
+
y = !1,
|
|
250
|
+
G = {
|
|
251
|
+
p: 0,
|
|
252
|
+
n: 0,
|
|
253
|
+
v: e,
|
|
254
|
+
a: d,
|
|
255
|
+
f: d.bind(e, 4),
|
|
256
|
+
d: function (t, r) {
|
|
257
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
function d(r, n) {
|
|
261
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
262
|
+
var o,
|
|
263
|
+
i = p[t],
|
|
264
|
+
d = G.p,
|
|
265
|
+
l = i[2];
|
|
266
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
267
|
+
}
|
|
268
|
+
if (o || r > 1) return a;
|
|
269
|
+
throw y = !0, n;
|
|
270
|
+
}
|
|
271
|
+
return function (o, p, l) {
|
|
272
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
273
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
274
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
275
|
+
try {
|
|
276
|
+
if (f = 2, i) {
|
|
277
|
+
if (c || (o = "next"), t = i[o]) {
|
|
278
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
279
|
+
if (!t.done) return t;
|
|
280
|
+
u = t.value, c < 2 && (c = 0);
|
|
281
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
282
|
+
i = e;
|
|
283
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
284
|
+
} catch (t) {
|
|
285
|
+
i = e, c = 1, u = t;
|
|
286
|
+
} finally {
|
|
287
|
+
f = 1;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
return {
|
|
291
|
+
value: t,
|
|
292
|
+
done: y
|
|
293
|
+
};
|
|
281
294
|
};
|
|
282
|
-
}
|
|
295
|
+
}(r, o, i), !0), u;
|
|
283
296
|
}
|
|
284
|
-
|
|
285
|
-
var h = "suspendedStart",
|
|
286
|
-
l = "suspendedYield",
|
|
287
|
-
f = "executing",
|
|
288
|
-
s = "completed",
|
|
289
|
-
y = {};
|
|
297
|
+
var a = {};
|
|
290
298
|
function Generator() {}
|
|
291
299
|
function GeneratorFunction() {}
|
|
292
300
|
function GeneratorFunctionPrototype() {}
|
|
293
|
-
|
|
294
|
-
|
|
301
|
+
t = Object.getPrototypeOf;
|
|
302
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
303
|
+
return this;
|
|
304
|
+
}), t),
|
|
305
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
306
|
+
function f(e) {
|
|
307
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
308
|
+
}
|
|
309
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
295
310
|
return this;
|
|
296
|
-
})
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
300
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
301
|
-
function defineIteratorMethods(t) {
|
|
302
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
303
|
-
define(t, e, function (t) {
|
|
304
|
-
return this._invoke(e, t);
|
|
305
|
-
});
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
function AsyncIterator(t, e) {
|
|
309
|
-
function invoke(r, o, i, a) {
|
|
310
|
-
var c = tryCatch(t[r], t, o);
|
|
311
|
-
if ("throw" !== c.type) {
|
|
312
|
-
var u = c.arg,
|
|
313
|
-
h = u.value;
|
|
314
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
315
|
-
invoke("next", t, i, a);
|
|
316
|
-
}, function (t) {
|
|
317
|
-
invoke("throw", t, i, a);
|
|
318
|
-
}) : e.resolve(h).then(function (t) {
|
|
319
|
-
u.value = t, i(u);
|
|
320
|
-
}, function (t) {
|
|
321
|
-
return invoke("throw", t, i, a);
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
a(c.arg);
|
|
325
|
-
}
|
|
326
|
-
var r;
|
|
327
|
-
o(this, "_invoke", {
|
|
328
|
-
value: function (t, n) {
|
|
329
|
-
function callInvokeWithMethodAndArg() {
|
|
330
|
-
return new e(function (e, r) {
|
|
331
|
-
invoke(t, n, e, r);
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
335
|
-
}
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
function makeInvokeMethod(e, r, n) {
|
|
339
|
-
var o = h;
|
|
340
|
-
return function (i, a) {
|
|
341
|
-
if (o === f) throw Error("Generator is already running");
|
|
342
|
-
if (o === s) {
|
|
343
|
-
if ("throw" === i) throw a;
|
|
344
|
-
return {
|
|
345
|
-
value: t,
|
|
346
|
-
done: !0
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
for (n.method = i, n.arg = a;;) {
|
|
350
|
-
var c = n.delegate;
|
|
351
|
-
if (c) {
|
|
352
|
-
var u = maybeInvokeDelegate(c, n);
|
|
353
|
-
if (u) {
|
|
354
|
-
if (u === y) continue;
|
|
355
|
-
return u;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
359
|
-
if (o === h) throw o = s, n.arg;
|
|
360
|
-
n.dispatchException(n.arg);
|
|
361
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
362
|
-
o = f;
|
|
363
|
-
var p = tryCatch(e, r, n);
|
|
364
|
-
if ("normal" === p.type) {
|
|
365
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
366
|
-
return {
|
|
367
|
-
value: p.arg,
|
|
368
|
-
done: n.done
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
372
|
-
}
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
function maybeInvokeDelegate(e, r) {
|
|
376
|
-
var n = r.method,
|
|
377
|
-
o = e.iterator[n];
|
|
378
|
-
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
379
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
380
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
381
|
-
var a = i.arg;
|
|
382
|
-
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
383
|
-
}
|
|
384
|
-
function pushTryEntry(t) {
|
|
385
|
-
var e = {
|
|
386
|
-
tryLoc: t[0]
|
|
387
|
-
};
|
|
388
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
389
|
-
}
|
|
390
|
-
function resetTryEntry(t) {
|
|
391
|
-
var e = t.completion || {};
|
|
392
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
393
|
-
}
|
|
394
|
-
function Context(t) {
|
|
395
|
-
this.tryEntries = [{
|
|
396
|
-
tryLoc: "root"
|
|
397
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
398
|
-
}
|
|
399
|
-
function values(e) {
|
|
400
|
-
if (e || "" === e) {
|
|
401
|
-
var r = e[a];
|
|
402
|
-
if (r) return r.call(e);
|
|
403
|
-
if ("function" == typeof e.next) return e;
|
|
404
|
-
if (!isNaN(e.length)) {
|
|
405
|
-
var o = -1,
|
|
406
|
-
i = function next() {
|
|
407
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
408
|
-
return next.value = t, next.done = !0, next;
|
|
409
|
-
};
|
|
410
|
-
return i.next = i;
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
414
|
-
}
|
|
415
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
416
|
-
value: GeneratorFunctionPrototype,
|
|
417
|
-
configurable: !0
|
|
418
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
419
|
-
value: GeneratorFunction,
|
|
420
|
-
configurable: !0
|
|
421
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
422
|
-
var e = "function" == typeof t && t.constructor;
|
|
423
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
424
|
-
}, e.mark = function (t) {
|
|
425
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
426
|
-
}, e.awrap = function (t) {
|
|
311
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
312
|
+
return "[object Generator]";
|
|
313
|
+
}), (_regenerator = function () {
|
|
427
314
|
return {
|
|
428
|
-
|
|
315
|
+
w: i,
|
|
316
|
+
m: f
|
|
429
317
|
};
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
}
|
|
451
|
-
return next.done = !0, next;
|
|
452
|
-
};
|
|
453
|
-
}, e.values = values, Context.prototype = {
|
|
454
|
-
constructor: Context,
|
|
455
|
-
reset: function (e) {
|
|
456
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
457
|
-
},
|
|
458
|
-
stop: function () {
|
|
459
|
-
this.done = !0;
|
|
460
|
-
var t = this.tryEntries[0].completion;
|
|
461
|
-
if ("throw" === t.type) throw t.arg;
|
|
462
|
-
return this.rval;
|
|
463
|
-
},
|
|
464
|
-
dispatchException: function (e) {
|
|
465
|
-
if (this.done) throw e;
|
|
466
|
-
var r = this;
|
|
467
|
-
function handle(n, o) {
|
|
468
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
469
|
-
}
|
|
470
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
471
|
-
var i = this.tryEntries[o],
|
|
472
|
-
a = i.completion;
|
|
473
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
474
|
-
if (i.tryLoc <= this.prev) {
|
|
475
|
-
var c = n.call(i, "catchLoc"),
|
|
476
|
-
u = n.call(i, "finallyLoc");
|
|
477
|
-
if (c && u) {
|
|
478
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
479
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
480
|
-
} else if (c) {
|
|
481
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
482
|
-
} else {
|
|
483
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
484
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
},
|
|
489
|
-
abrupt: function (t, e) {
|
|
490
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
491
|
-
var o = this.tryEntries[r];
|
|
492
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
493
|
-
var i = o;
|
|
494
|
-
break;
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
498
|
-
var a = i ? i.completion : {};
|
|
499
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
500
|
-
},
|
|
501
|
-
complete: function (t, e) {
|
|
502
|
-
if ("throw" === t.type) throw t.arg;
|
|
503
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
504
|
-
},
|
|
505
|
-
finish: function (t) {
|
|
506
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
507
|
-
var r = this.tryEntries[e];
|
|
508
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
509
|
-
}
|
|
510
|
-
},
|
|
511
|
-
catch: function (t) {
|
|
512
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
513
|
-
var r = this.tryEntries[e];
|
|
514
|
-
if (r.tryLoc === t) {
|
|
515
|
-
var n = r.completion;
|
|
516
|
-
if ("throw" === n.type) {
|
|
517
|
-
var o = n.arg;
|
|
518
|
-
resetTryEntry(r);
|
|
519
|
-
}
|
|
520
|
-
return o;
|
|
521
|
-
}
|
|
318
|
+
})();
|
|
319
|
+
}
|
|
320
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
321
|
+
var i = Object.defineProperty;
|
|
322
|
+
try {
|
|
323
|
+
i({}, "", {});
|
|
324
|
+
} catch (e) {
|
|
325
|
+
i = 0;
|
|
326
|
+
}
|
|
327
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
328
|
+
if (r) i ? i(e, r, {
|
|
329
|
+
value: n,
|
|
330
|
+
enumerable: !t,
|
|
331
|
+
configurable: !t,
|
|
332
|
+
writable: !t
|
|
333
|
+
}) : e[r] = n;else {
|
|
334
|
+
function o(r, n) {
|
|
335
|
+
_regeneratorDefine(e, r, function (e) {
|
|
336
|
+
return this._invoke(r, n, e);
|
|
337
|
+
});
|
|
522
338
|
}
|
|
523
|
-
|
|
524
|
-
},
|
|
525
|
-
delegateYield: function (e, r, n) {
|
|
526
|
-
return this.delegate = {
|
|
527
|
-
iterator: values(e),
|
|
528
|
-
resultName: r,
|
|
529
|
-
nextLoc: n
|
|
530
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
339
|
+
o("next", 0), o("throw", 1), o("return", 2);
|
|
531
340
|
}
|
|
532
|
-
}, e;
|
|
341
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
533
342
|
}
|
|
534
343
|
function _setPrototypeOf(t, e) {
|
|
535
344
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -1477,6 +1286,45 @@ var handleConvertResponse = function handleConvertResponse(items, total) {
|
|
|
1477
1286
|
var noEmptyArray = function noEmptyArray(targetObj) {
|
|
1478
1287
|
return Array.isArray(targetObj) && targetObj.length !== 0;
|
|
1479
1288
|
};
|
|
1289
|
+
var formContainerAndItemLayout = function formContainerAndItemLayout(type, title, name) {
|
|
1290
|
+
return type === 'form' ? {
|
|
1291
|
+
container: {
|
|
1292
|
+
type: 'card',
|
|
1293
|
+
props: {
|
|
1294
|
+
title: title,
|
|
1295
|
+
id: Math.random(),
|
|
1296
|
+
level: 1,
|
|
1297
|
+
name: name
|
|
1298
|
+
}
|
|
1299
|
+
},
|
|
1300
|
+
itemLayout: {
|
|
1301
|
+
span: 8,
|
|
1302
|
+
labelCol: {
|
|
1303
|
+
span: 8
|
|
1304
|
+
},
|
|
1305
|
+
wrapperCol: {
|
|
1306
|
+
span: 18
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
} : {
|
|
1310
|
+
container: {
|
|
1311
|
+
type: 'card',
|
|
1312
|
+
props: {
|
|
1313
|
+
title: title,
|
|
1314
|
+
id: Math.random(),
|
|
1315
|
+
level: 1,
|
|
1316
|
+
bordered: null,
|
|
1317
|
+
isWhiteCard: true,
|
|
1318
|
+
name: name
|
|
1319
|
+
}
|
|
1320
|
+
},
|
|
1321
|
+
itemLayout: {
|
|
1322
|
+
wrapperCol: {
|
|
1323
|
+
span: 0
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
};
|
|
1327
|
+
};
|
|
1480
1328
|
|
|
1481
1329
|
// 判断某个按钮/菜单 是否有权限,返回布尔值
|
|
1482
1330
|
var authFunc = function authFunc(code) {
|
|
@@ -1563,22 +1411,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1563
1411
|
// sheepMap是表头字段中英文映射
|
|
1564
1412
|
// sheetCount:表的数量,默认一张
|
|
1565
1413
|
var resolveFile = /*#__PURE__*/function () {
|
|
1566
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
1414
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file) {
|
|
1567
1415
|
var config,
|
|
1568
1416
|
data,
|
|
1569
1417
|
_args = arguments;
|
|
1570
|
-
return
|
|
1571
|
-
while (1) switch (_context.
|
|
1418
|
+
return _regenerator().w(function (_context) {
|
|
1419
|
+
while (1) switch (_context.n) {
|
|
1572
1420
|
case 0:
|
|
1573
1421
|
config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
|
|
1574
1422
|
sheetMap: [],
|
|
1575
1423
|
sheetCount: 1
|
|
1576
1424
|
};
|
|
1577
|
-
_context.
|
|
1425
|
+
_context.n = 1;
|
|
1578
1426
|
return analyseExcelToByte(file);
|
|
1579
|
-
case
|
|
1580
|
-
data = _context.
|
|
1581
|
-
return _context.
|
|
1427
|
+
case 1:
|
|
1428
|
+
data = _context.v;
|
|
1429
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
1582
1430
|
var workbook = XLSX.read(data, {
|
|
1583
1431
|
type: 'binary'
|
|
1584
1432
|
});
|
|
@@ -1590,9 +1438,6 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1590
1438
|
var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
|
|
1591
1439
|
resolve(outdata);
|
|
1592
1440
|
}));
|
|
1593
|
-
case 5:
|
|
1594
|
-
case "end":
|
|
1595
|
-
return _context.stop();
|
|
1596
1441
|
}
|
|
1597
1442
|
}, _callee);
|
|
1598
1443
|
}));
|
|
@@ -1602,41 +1447,40 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1602
1447
|
}();
|
|
1603
1448
|
//读取文件
|
|
1604
1449
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1605
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
1450
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1606
1451
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1607
|
-
return
|
|
1608
|
-
while (1) switch (_context2.
|
|
1452
|
+
return _regenerator().w(function (_context2) {
|
|
1453
|
+
while (1) switch (_context2.n) {
|
|
1609
1454
|
case 0:
|
|
1610
1455
|
_ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
|
|
1611
1456
|
if (!(Array.isArray(fileList) && fileList.length > 0)) {
|
|
1612
|
-
_context2.
|
|
1457
|
+
_context2.n = 3;
|
|
1613
1458
|
break;
|
|
1614
1459
|
}
|
|
1615
1460
|
nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
|
|
1616
|
-
_context2.
|
|
1461
|
+
_context2.n = 1;
|
|
1617
1462
|
return resolveFile(nowFile.originFileObj, {
|
|
1618
1463
|
sheetMap: fieldMappingReverse(sheetMap),
|
|
1619
1464
|
sheetCount: 1
|
|
1620
1465
|
});
|
|
1621
|
-
case
|
|
1622
|
-
data2 = _context2.
|
|
1466
|
+
case 1:
|
|
1467
|
+
data2 = _context2.v;
|
|
1623
1468
|
data = data2[0];
|
|
1624
1469
|
if (data.length) {
|
|
1625
|
-
_context2.
|
|
1470
|
+
_context2.n = 2;
|
|
1626
1471
|
break;
|
|
1627
1472
|
}
|
|
1628
1473
|
antd.message.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
|
|
1629
|
-
return _context2.
|
|
1630
|
-
case
|
|
1474
|
+
return _context2.a(2);
|
|
1475
|
+
case 2:
|
|
1631
1476
|
if (callback) callback(data);
|
|
1632
1477
|
!callback && antd.message.success("\u5BFC\u5165\u6210\u529F");
|
|
1633
|
-
return _context2.
|
|
1634
|
-
case
|
|
1478
|
+
return _context2.a(2, data);
|
|
1479
|
+
case 3:
|
|
1635
1480
|
antd.message.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
|
|
1636
|
-
return _context2.
|
|
1637
|
-
case
|
|
1638
|
-
|
|
1639
|
-
return _context2.stop();
|
|
1481
|
+
return _context2.a(2);
|
|
1482
|
+
case 4:
|
|
1483
|
+
return _context2.a(2);
|
|
1640
1484
|
}
|
|
1641
1485
|
}, _callee2);
|
|
1642
1486
|
}));
|
|
@@ -2588,17 +2432,14 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2588
2432
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2589
2433
|
};
|
|
2590
2434
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2591
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
2592
|
-
return
|
|
2593
|
-
while (1) switch (_context.
|
|
2435
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
|
|
2436
|
+
return _regenerator().w(function (_context) {
|
|
2437
|
+
while (1) switch (_context.n) {
|
|
2594
2438
|
case 0:
|
|
2595
|
-
return _context.
|
|
2439
|
+
return _context.a(2, Promise.resolve({
|
|
2596
2440
|
data: response,
|
|
2597
2441
|
status: response.status
|
|
2598
2442
|
}));
|
|
2599
|
-
case 1:
|
|
2600
|
-
case "end":
|
|
2601
|
-
return _context.stop();
|
|
2602
2443
|
}
|
|
2603
2444
|
}, _callee);
|
|
2604
2445
|
}));
|
|
@@ -4741,27 +4582,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4741
4582
|
popvalue = _useState8[0],
|
|
4742
4583
|
setPopValue = _useState8[1];
|
|
4743
4584
|
var _useState9 = React$1.useState([]),
|
|
4744
|
-
|
|
4745
|
-
source =
|
|
4746
|
-
setSource =
|
|
4585
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
4586
|
+
source = _useState0[0],
|
|
4587
|
+
setSource = _useState0[1];
|
|
4747
4588
|
var _useDebounceFn = ahooks.useDebounceFn(function () {
|
|
4748
4589
|
getData();
|
|
4749
4590
|
}, {
|
|
4750
4591
|
wait: 1000
|
|
4751
4592
|
}),
|
|
4752
4593
|
run = _useDebounceFn.run;
|
|
4753
|
-
var
|
|
4594
|
+
var _useState1 = React$1.useState(false),
|
|
4595
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
4596
|
+
fetching = _useState10[0],
|
|
4597
|
+
setFetching = _useState10[1];
|
|
4598
|
+
var _useState11 = React$1.useState(''),
|
|
4754
4599
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
var _useState13 = React$1.useState(
|
|
4600
|
+
searchValue = _useState12[0],
|
|
4601
|
+
setSearchValue = _useState12[1];
|
|
4602
|
+
var _useState13 = React$1.useState(resultSourceKey),
|
|
4758
4603
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
var _useState15 = React$1.useState(resultSourceKey),
|
|
4762
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
4763
|
-
uniqueValue = _useState16[0],
|
|
4764
|
-
setUniqueValue = _useState16[1];
|
|
4604
|
+
uniqueValue = _useState14[0],
|
|
4605
|
+
setUniqueValue = _useState14[1];
|
|
4765
4606
|
React$1.useEffect(function () {
|
|
4766
4607
|
setPopValue(value);
|
|
4767
4608
|
onValueChange(value);
|
|
@@ -5178,21 +5019,21 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5178
5019
|
notCommonProperty = _useState8[0],
|
|
5179
5020
|
setNotCommonProperty = _useState8[1];
|
|
5180
5021
|
var _useState9 = React$1.useState(false),
|
|
5181
|
-
|
|
5182
|
-
visible =
|
|
5183
|
-
setVisible =
|
|
5184
|
-
var
|
|
5022
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5023
|
+
visible = _useState0[0],
|
|
5024
|
+
setVisible = _useState0[1];
|
|
5025
|
+
var _useState1 = React$1.useState(false),
|
|
5026
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5027
|
+
showNotCommon = _useState10[0],
|
|
5028
|
+
setShowNotCommon = _useState10[1]; // 是否展示非常用属性
|
|
5029
|
+
var _useState11 = React$1.useState([]),
|
|
5185
5030
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
var _useState13 = React$1.useState(
|
|
5031
|
+
classifyOptionList = _useState12[0],
|
|
5032
|
+
setClassifyOptionList = _useState12[1];
|
|
5033
|
+
var _useState13 = React$1.useState('1'),
|
|
5189
5034
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
var _useState15 = React$1.useState('1'),
|
|
5193
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
5194
|
-
listKey = _useState16[0],
|
|
5195
|
-
setListKey = _useState16[1];
|
|
5035
|
+
listKey = _useState14[0],
|
|
5036
|
+
setListKey = _useState14[1];
|
|
5196
5037
|
React$1.useEffect(function () {
|
|
5197
5038
|
requestUtil({
|
|
5198
5039
|
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
@@ -5571,29 +5412,29 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5571
5412
|
scrollPage = _useState8[0],
|
|
5572
5413
|
setScrollPage = _useState8[1];
|
|
5573
5414
|
var _useState9 = React$1.useState(0),
|
|
5574
|
-
|
|
5575
|
-
itemsTotal =
|
|
5576
|
-
setItemsTotal =
|
|
5577
|
-
var
|
|
5415
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5416
|
+
itemsTotal = _useState0[0],
|
|
5417
|
+
setItemsTotal = _useState0[1];
|
|
5418
|
+
var _useState1 = React$1.useState(false),
|
|
5419
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5420
|
+
fetching = _useState10[0],
|
|
5421
|
+
setFetching = _useState10[1];
|
|
5422
|
+
var _useState11 = React$1.useState(''),
|
|
5578
5423
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
var _useState13 = React$1.useState(
|
|
5424
|
+
searchValue = _useState12[0],
|
|
5425
|
+
setSearchValue = _useState12[1];
|
|
5426
|
+
var _useState13 = React$1.useState(false),
|
|
5582
5427
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
var _useState15 = React$1.useState(
|
|
5428
|
+
isModalVisible = _useState14[0],
|
|
5429
|
+
setIsModalVisible = _useState14[1];
|
|
5430
|
+
var _useState15 = React$1.useState(initVal),
|
|
5586
5431
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
var _useState17 = React$1.useState(
|
|
5432
|
+
popvalue = _useState16[0],
|
|
5433
|
+
setPopValue = _useState16[1];
|
|
5434
|
+
var _useState17 = React$1.useState(resultSourceKey),
|
|
5590
5435
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
var _useState19 = React$1.useState(resultSourceKey),
|
|
5594
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5595
|
-
uniqueValue = _useState20[0],
|
|
5596
|
-
setUniqueValue = _useState20[1];
|
|
5436
|
+
uniqueValue = _useState18[0],
|
|
5437
|
+
setUniqueValue = _useState18[1];
|
|
5597
5438
|
var _useDebounceFn = ahooks.useDebounceFn(function (v) {
|
|
5598
5439
|
// 优化搜索参数 支持传多个
|
|
5599
5440
|
var searchParams = {};
|
|
@@ -5622,58 +5463,58 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5622
5463
|
var _Form$useForm = antd.Form.useForm(),
|
|
5623
5464
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5624
5465
|
form = _Form$useForm2[0];
|
|
5466
|
+
var _useState19 = React$1.useState(true),
|
|
5467
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5468
|
+
collapsed = _useState20[0],
|
|
5469
|
+
setCollapsed = _useState20[1];
|
|
5625
5470
|
var _useState21 = React$1.useState(true),
|
|
5626
5471
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
var _useState23 = React$1.useState(
|
|
5472
|
+
caretLeftFlag = _useState22[0],
|
|
5473
|
+
setCaretLeftFlag = _useState22[1];
|
|
5474
|
+
var _useState23 = React$1.useState([]),
|
|
5630
5475
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
var _useState25 = React$1.useState(
|
|
5476
|
+
tableData = _useState24[0],
|
|
5477
|
+
setTableData = _useState24[1];
|
|
5478
|
+
var _useState25 = React$1.useState(tableInitPagination),
|
|
5634
5479
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
var _useState27 = React$1.useState(
|
|
5480
|
+
tablePagination = _useState26[0],
|
|
5481
|
+
setTablePagination = _useState26[1];
|
|
5482
|
+
var _useState27 = React$1.useState([]),
|
|
5638
5483
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5639
|
-
|
|
5640
|
-
|
|
5484
|
+
selectedRowKeys = _useState28[0],
|
|
5485
|
+
setSelectedRowKeys = _useState28[1];
|
|
5641
5486
|
var _useState29 = React$1.useState([]),
|
|
5642
5487
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
var _useState31 = React$1.useState(
|
|
5488
|
+
selectedRows = _useState30[0],
|
|
5489
|
+
setSelectedRows = _useState30[1];
|
|
5490
|
+
var _useState31 = React$1.useState(false),
|
|
5646
5491
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5647
|
-
|
|
5648
|
-
|
|
5492
|
+
checkedAll = _useState32[0],
|
|
5493
|
+
setCheckedAll = _useState32[1];
|
|
5649
5494
|
var _useState33 = React$1.useState(false),
|
|
5650
5495
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
var _useState35 = React$1.useState(
|
|
5496
|
+
indeterminate = _useState34[0],
|
|
5497
|
+
setIndeterminate = _useState34[1];
|
|
5498
|
+
var _useState35 = React$1.useState({}),
|
|
5654
5499
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
var _useState37 = React$1.useState(
|
|
5500
|
+
tableFormParams = _useState36[0],
|
|
5501
|
+
setTableFormParams = _useState36[1];
|
|
5502
|
+
var _useState37 = React$1.useState(false),
|
|
5658
5503
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
var _useState39 = React$1.useState(
|
|
5504
|
+
tooltipVisible = _useState38[0],
|
|
5505
|
+
setTooltipVisible = _useState38[1];
|
|
5506
|
+
var _useState39 = React$1.useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5662
5507
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
var _useState41 = React$1.useState(
|
|
5508
|
+
tableShowColumns = _useState40[0],
|
|
5509
|
+
setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5510
|
+
var _useState41 = React$1.useState(false),
|
|
5666
5511
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5667
|
-
|
|
5668
|
-
|
|
5512
|
+
confirmLoading = _useState42[0],
|
|
5513
|
+
setConfirmLoading = _useState42[1];
|
|
5669
5514
|
var _useState43 = React$1.useState(false),
|
|
5670
5515
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
var _useState45 = React$1.useState(false),
|
|
5674
|
-
_useState46 = _slicedToArray(_useState45, 2),
|
|
5675
|
-
modalSearched = _useState46[0],
|
|
5676
|
-
setModalSearched = _useState46[1];
|
|
5516
|
+
modalSearched = _useState44[0],
|
|
5517
|
+
setModalSearched = _useState44[1];
|
|
5677
5518
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5678
5519
|
setItems(list);
|
|
5679
5520
|
setItemsTotal(total);
|
|
@@ -6143,7 +5984,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6143
5984
|
})) || [];
|
|
6144
5985
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
6145
5986
|
return searchList.map(function (i, index) {
|
|
6146
|
-
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$
|
|
5987
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field10, _i$field12, _i$field13;
|
|
6147
5988
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6148
5989
|
span: ColSpan,
|
|
6149
5990
|
key: i
|
|
@@ -6241,7 +6082,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6241
6082
|
disabled: setDisabled(i.name)
|
|
6242
6083
|
}))));
|
|
6243
6084
|
}
|
|
6244
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6085
|
+
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') {
|
|
6245
6086
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6246
6087
|
span: ColSpan,
|
|
6247
6088
|
key: i.name
|
|
@@ -6255,7 +6096,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6255
6096
|
}
|
|
6256
6097
|
})));
|
|
6257
6098
|
}
|
|
6258
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6099
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'proppertySelector') {
|
|
6259
6100
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6260
6101
|
span: ColSpan,
|
|
6261
6102
|
key: i.name
|
|
@@ -6265,8 +6106,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6265
6106
|
key: i.name
|
|
6266
6107
|
}, /*#__PURE__*/React__default['default'].createElement(PropertySelector, null)));
|
|
6267
6108
|
}
|
|
6268
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6269
|
-
var _i$
|
|
6109
|
+
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') {
|
|
6110
|
+
var _i$field11;
|
|
6270
6111
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6271
6112
|
span: ColSpan,
|
|
6272
6113
|
key: i.name
|
|
@@ -6279,9 +6120,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6279
6120
|
width: '100%'
|
|
6280
6121
|
},
|
|
6281
6122
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6282
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6123
|
+
}, i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.props))));
|
|
6283
6124
|
}
|
|
6284
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6125
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
|
|
6285
6126
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6286
6127
|
span: ColSpan,
|
|
6287
6128
|
key: i.name
|
|
@@ -6310,7 +6151,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6310
6151
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6311
6152
|
allowClear: true,
|
|
6312
6153
|
maxLength: 100
|
|
6313
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6154
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
|
|
6314
6155
|
disabled: setDisabled(i.name)
|
|
6315
6156
|
}))));
|
|
6316
6157
|
});
|
|
@@ -7630,135 +7471,132 @@ var AddSelect = function AddSelect(props) {
|
|
|
7630
7471
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7631
7472
|
form = _Form$useForm2[0];
|
|
7632
7473
|
var _useState9 = React$1.useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7633
|
-
|
|
7634
|
-
tableSearchForm =
|
|
7635
|
-
setTableSearchForm =
|
|
7636
|
-
var
|
|
7474
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
7475
|
+
tableSearchForm = _useState0[0],
|
|
7476
|
+
setTableSearchForm = _useState0[1];
|
|
7477
|
+
var _useState1 = React$1.useState(true),
|
|
7478
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
7479
|
+
caretLeftFlag = _useState10[0],
|
|
7480
|
+
setCaretLeftFlag = _useState10[1];
|
|
7481
|
+
var _useState11 = React$1.useState([]),
|
|
7637
7482
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7638
|
-
|
|
7639
|
-
|
|
7640
|
-
var _useState13 = React$1.useState(
|
|
7641
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
7642
|
-
tableData = _useState14[0],
|
|
7643
|
-
setTableData = _useState14[1];
|
|
7644
|
-
var _useState15 = React$1.useState(_objectSpread2({
|
|
7483
|
+
tableData = _useState12[0],
|
|
7484
|
+
setTableData = _useState12[1];
|
|
7485
|
+
var _useState13 = React$1.useState(_objectSpread2({
|
|
7645
7486
|
total: 0,
|
|
7646
7487
|
size: "small",
|
|
7647
7488
|
current: 1,
|
|
7648
7489
|
pageSize: tableInitPageSize
|
|
7649
7490
|
}, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
|
|
7491
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
7492
|
+
tablePagination = _useState14[0],
|
|
7493
|
+
setTablePagination = _useState14[1];
|
|
7494
|
+
var _useState15 = React$1.useState([]),
|
|
7650
7495
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
var _useState17 = React$1.useState(
|
|
7496
|
+
selectedRowKeys = _useState16[0],
|
|
7497
|
+
setSelectedRowKeys = _useState16[1];
|
|
7498
|
+
var _useState17 = React$1.useState({}),
|
|
7654
7499
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
var _useState19 = React$1.useState(
|
|
7500
|
+
tableFormParams = _useState18[0],
|
|
7501
|
+
setTableFormParams = _useState18[1];
|
|
7502
|
+
var _useState19 = React$1.useState(false),
|
|
7658
7503
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7659
|
-
|
|
7660
|
-
|
|
7504
|
+
confirmLoading = _useState20[0],
|
|
7505
|
+
setConfirmLoading = _useState20[1];
|
|
7661
7506
|
var _useState21 = React$1.useState(false),
|
|
7662
7507
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7663
|
-
|
|
7664
|
-
|
|
7665
|
-
var _useState23 = React$1.useState(
|
|
7508
|
+
confirmContinueLoading = _useState22[0],
|
|
7509
|
+
setConfirmContinueLoading = _useState22[1];
|
|
7510
|
+
var _useState23 = React$1.useState([]),
|
|
7666
7511
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7667
|
-
|
|
7668
|
-
|
|
7512
|
+
selectColumns = _useState24[0],
|
|
7513
|
+
setSelectColumns = _useState24[1];
|
|
7669
7514
|
var _useState25 = React$1.useState([]),
|
|
7670
7515
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7671
|
-
|
|
7672
|
-
|
|
7516
|
+
showColumns = _useState26[0],
|
|
7517
|
+
setShowColumns = _useState26[1];
|
|
7673
7518
|
var _useState27 = React$1.useState([]),
|
|
7674
7519
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7675
|
-
|
|
7676
|
-
|
|
7520
|
+
tableColumns = _useState28[0],
|
|
7521
|
+
setTableColumns = _useState28[1];
|
|
7677
7522
|
var _useState29 = React$1.useState([]),
|
|
7678
7523
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
var _useState31 = React$1.useState([]),
|
|
7682
|
-
_useState32 = _slicedToArray(_useState31, 2),
|
|
7683
|
-
showToChooseColumns = _useState32[0],
|
|
7684
|
-
setShowToChooseColumns = _useState32[1];
|
|
7524
|
+
showToChooseColumns = _useState30[0],
|
|
7525
|
+
setShowToChooseColumns = _useState30[1];
|
|
7685
7526
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7686
7527
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7687
7528
|
// FIXME: 特殊业务逻辑
|
|
7688
7529
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7689
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7690
|
-
var result;
|
|
7691
|
-
return
|
|
7692
|
-
while (1) switch (_context.
|
|
7530
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7531
|
+
var result, _t;
|
|
7532
|
+
return _regenerator().w(function (_context) {
|
|
7533
|
+
while (1) switch (_context.n) {
|
|
7693
7534
|
case 0:
|
|
7694
7535
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7695
7536
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7696
7537
|
}))) {
|
|
7697
|
-
_context.
|
|
7538
|
+
_context.n = 1;
|
|
7698
7539
|
break;
|
|
7699
7540
|
}
|
|
7700
7541
|
antd.message.warning('相同skc配码不可设置相同哦');
|
|
7701
|
-
return _context.
|
|
7702
|
-
case
|
|
7542
|
+
return _context.a(2, false);
|
|
7543
|
+
case 1:
|
|
7703
7544
|
if (!(bType == 'spu')) {
|
|
7704
|
-
_context.
|
|
7545
|
+
_context.n = 9;
|
|
7705
7546
|
break;
|
|
7706
7547
|
}
|
|
7707
7548
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7708
7549
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7709
7550
|
}))) {
|
|
7710
|
-
_context.
|
|
7551
|
+
_context.n = 2;
|
|
7711
7552
|
break;
|
|
7712
7553
|
}
|
|
7713
7554
|
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7714
|
-
return _context.
|
|
7715
|
-
case
|
|
7555
|
+
return _context.a(2, false);
|
|
7556
|
+
case 2:
|
|
7716
7557
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7717
|
-
_context.
|
|
7558
|
+
_context.n = 3;
|
|
7718
7559
|
break;
|
|
7719
7560
|
}
|
|
7720
7561
|
antd.message.warning('请先选择颜色!');
|
|
7721
|
-
return _context.
|
|
7722
|
-
case
|
|
7562
|
+
return _context.a(2, false);
|
|
7563
|
+
case 3:
|
|
7723
7564
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7724
7565
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7725
7566
|
}))) {
|
|
7726
|
-
_context.
|
|
7567
|
+
_context.n = 4;
|
|
7727
7568
|
break;
|
|
7728
7569
|
}
|
|
7729
7570
|
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7730
|
-
return _context.
|
|
7731
|
-
case
|
|
7571
|
+
return _context.a(2, false);
|
|
7572
|
+
case 4:
|
|
7732
7573
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7733
|
-
_context.
|
|
7574
|
+
_context.n = 9;
|
|
7734
7575
|
break;
|
|
7735
7576
|
}
|
|
7736
7577
|
result = true;
|
|
7737
|
-
_context.
|
|
7738
|
-
_context.
|
|
7578
|
+
_context.p = 5;
|
|
7579
|
+
_context.n = 6;
|
|
7739
7580
|
return checkSpuMatchCode({
|
|
7740
7581
|
skcCode: recordItem[recordKey],
|
|
7741
7582
|
matchingCode: changeValue,
|
|
7742
7583
|
ext1: recordItem.colorName
|
|
7743
7584
|
});
|
|
7744
|
-
case
|
|
7745
|
-
result = _context.
|
|
7585
|
+
case 6:
|
|
7586
|
+
result = _context.v;
|
|
7746
7587
|
result = true;
|
|
7747
|
-
_context.
|
|
7588
|
+
_context.n = 8;
|
|
7748
7589
|
break;
|
|
7749
|
-
case
|
|
7750
|
-
_context.
|
|
7751
|
-
|
|
7752
|
-
result = typeof
|
|
7753
|
-
case
|
|
7754
|
-
return _context.
|
|
7755
|
-
case
|
|
7756
|
-
return _context.
|
|
7757
|
-
|
|
7758
|
-
|
|
7759
|
-
return _context.stop();
|
|
7760
|
-
}
|
|
7761
|
-
}, _callee, null, [[15, 22]]);
|
|
7590
|
+
case 7:
|
|
7591
|
+
_context.p = 7;
|
|
7592
|
+
_t = _context.v;
|
|
7593
|
+
result = typeof _t == 'boolean' ? _t : false;
|
|
7594
|
+
case 8:
|
|
7595
|
+
return _context.a(2, result);
|
|
7596
|
+
case 9:
|
|
7597
|
+
return _context.a(2, true);
|
|
7598
|
+
}
|
|
7599
|
+
}, _callee, null, [[5, 7]]);
|
|
7762
7600
|
}));
|
|
7763
7601
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7764
7602
|
return _ref2.apply(this, arguments);
|
|
@@ -7946,19 +7784,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
7946
7784
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7947
7785
|
value: text || null,
|
|
7948
7786
|
onChange: function () {
|
|
7949
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
7950
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7951
|
-
return
|
|
7952
|
-
while (1) switch (_context2.
|
|
7787
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(value) {
|
|
7788
|
+
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules, _t2;
|
|
7789
|
+
return _regenerator().w(function (_context2) {
|
|
7790
|
+
while (1) switch (_context2.n) {
|
|
7953
7791
|
case 0:
|
|
7954
7792
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
7955
7793
|
return d[selectKey] == value;
|
|
7956
7794
|
})) || {};
|
|
7957
7795
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
7958
|
-
_context2.
|
|
7796
|
+
_context2.n = 2;
|
|
7959
7797
|
break;
|
|
7960
7798
|
}
|
|
7961
|
-
_context2.
|
|
7799
|
+
_context2.n = 1;
|
|
7962
7800
|
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, {
|
|
7963
7801
|
record: record,
|
|
7964
7802
|
index: index,
|
|
@@ -7968,10 +7806,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7968
7806
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
7969
7807
|
editRecord: editRecord
|
|
7970
7808
|
});
|
|
7971
|
-
case
|
|
7972
|
-
_context2.
|
|
7809
|
+
case 1:
|
|
7810
|
+
_context2.n = 10;
|
|
7973
7811
|
break;
|
|
7974
|
-
case
|
|
7812
|
+
case 2:
|
|
7975
7813
|
// 更新当前行数据函数
|
|
7976
7814
|
changeValue = function changeValue(v, dSSItem) {
|
|
7977
7815
|
var _item$dataSourceSelec;
|
|
@@ -7984,12 +7822,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
7984
7822
|
}
|
|
7985
7823
|
}; // 处理校验,默认不校验
|
|
7986
7824
|
isCheckPass = true;
|
|
7987
|
-
_context2.
|
|
7825
|
+
_context2.p = 3;
|
|
7988
7826
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
7989
|
-
_context2.
|
|
7827
|
+
_context2.n = 5;
|
|
7990
7828
|
break;
|
|
7991
7829
|
}
|
|
7992
|
-
_context2.
|
|
7830
|
+
_context2.n = 4;
|
|
7993
7831
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
7994
7832
|
record: record,
|
|
7995
7833
|
index: index,
|
|
@@ -7998,23 +7836,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
7998
7836
|
changeValue: value,
|
|
7999
7837
|
dataSourceSelectItem: dataSourceSelectItem
|
|
8000
7838
|
});
|
|
8001
|
-
case
|
|
8002
|
-
isCheckPass = _context2.
|
|
8003
|
-
_context2.
|
|
7839
|
+
case 4:
|
|
7840
|
+
isCheckPass = _context2.v;
|
|
7841
|
+
_context2.n = 7;
|
|
8004
7842
|
break;
|
|
8005
|
-
case
|
|
8006
|
-
_context2.
|
|
7843
|
+
case 5:
|
|
7844
|
+
_context2.n = 6;
|
|
8007
7845
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
8008
|
-
case
|
|
8009
|
-
isConformToTheRules = _context2.
|
|
7846
|
+
case 6:
|
|
7847
|
+
isConformToTheRules = _context2.v;
|
|
8010
7848
|
isCheckPass = !isConformToTheRules;
|
|
8011
|
-
case
|
|
8012
|
-
_context2.
|
|
7849
|
+
case 7:
|
|
7850
|
+
_context2.n = 9;
|
|
8013
7851
|
break;
|
|
8014
|
-
case
|
|
8015
|
-
_context2.
|
|
8016
|
-
|
|
8017
|
-
case
|
|
7852
|
+
case 8:
|
|
7853
|
+
_context2.p = 8;
|
|
7854
|
+
_t2 = _context2.v;
|
|
7855
|
+
case 9:
|
|
8018
7856
|
if (isCheckPass) {
|
|
8019
7857
|
changeValue(value, dataSourceSelectItem);
|
|
8020
7858
|
} else {
|
|
@@ -8022,11 +7860,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8022
7860
|
}
|
|
8023
7861
|
// 更新已选表格函数
|
|
8024
7862
|
editRecord(record);
|
|
8025
|
-
case
|
|
8026
|
-
|
|
8027
|
-
return _context2.stop();
|
|
7863
|
+
case 10:
|
|
7864
|
+
return _context2.a(2);
|
|
8028
7865
|
}
|
|
8029
|
-
}, _callee2, null, [[
|
|
7866
|
+
}, _callee2, null, [[3, 8]]);
|
|
8030
7867
|
}));
|
|
8031
7868
|
function onChange(_x7) {
|
|
8032
7869
|
return _onChange.apply(this, arguments);
|
|
@@ -9417,29 +9254,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9417
9254
|
dataIndex: 'propertyNameAndValue'
|
|
9418
9255
|
}];
|
|
9419
9256
|
var _useState9 = React$1.useState(false),
|
|
9420
|
-
|
|
9421
|
-
isModalVisible =
|
|
9422
|
-
setIsModalVisible =
|
|
9423
|
-
var
|
|
9257
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
9258
|
+
isModalVisible = _useState0[0],
|
|
9259
|
+
setIsModalVisible = _useState0[1];
|
|
9260
|
+
var _useState1 = React$1.useState([{
|
|
9424
9261
|
hovered: false
|
|
9425
9262
|
}]),
|
|
9426
|
-
|
|
9427
|
-
data =
|
|
9428
|
-
setData =
|
|
9263
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
9264
|
+
data = _useState10[0],
|
|
9265
|
+
setData = _useState10[1];
|
|
9429
9266
|
var tableRef = React$1.useRef(null);
|
|
9430
9267
|
var codeSelected = tableCode;
|
|
9431
|
-
var
|
|
9268
|
+
var _useState11 = React$1.useState(false),
|
|
9269
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9270
|
+
loading = _useState12[0],
|
|
9271
|
+
setLoading = _useState12[1];
|
|
9272
|
+
var _useState13 = React$1.useState([]),
|
|
9432
9273
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9433
|
-
|
|
9434
|
-
|
|
9274
|
+
selectColumns = _useState14[0],
|
|
9275
|
+
setSelectColumns = _useState14[1];
|
|
9435
9276
|
var _useState15 = React$1.useState([]),
|
|
9436
9277
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9437
|
-
|
|
9438
|
-
|
|
9439
|
-
var _useState17 = React$1.useState([]),
|
|
9440
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
9441
|
-
showColumns = _useState18[0],
|
|
9442
|
-
setShowColumns = _useState18[1];
|
|
9278
|
+
showColumns = _useState16[0],
|
|
9279
|
+
setShowColumns = _useState16[1];
|
|
9443
9280
|
React$1.useEffect(function () {
|
|
9444
9281
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9445
9282
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9555,42 +9392,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9555
9392
|
});
|
|
9556
9393
|
};
|
|
9557
9394
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9558
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9395
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
9559
9396
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9560
|
-
return
|
|
9561
|
-
while (1) switch (_context.
|
|
9397
|
+
return _regenerator().w(function (_context) {
|
|
9398
|
+
while (1) switch (_context.n) {
|
|
9562
9399
|
case 0:
|
|
9563
9400
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9564
|
-
_context.
|
|
9401
|
+
_context.n = 1;
|
|
9565
9402
|
break;
|
|
9566
9403
|
}
|
|
9567
9404
|
antd.message.warning('至少录入一条数据');
|
|
9568
|
-
return _context.
|
|
9569
|
-
case
|
|
9405
|
+
return _context.a(2);
|
|
9406
|
+
case 1:
|
|
9570
9407
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9571
9408
|
return d.skuCode && d.name;
|
|
9572
9409
|
})) {
|
|
9573
|
-
_context.
|
|
9410
|
+
_context.n = 2;
|
|
9574
9411
|
break;
|
|
9575
9412
|
}
|
|
9576
9413
|
antd.message.warning('录入商品不存在');
|
|
9577
|
-
return _context.
|
|
9578
|
-
case
|
|
9414
|
+
return _context.a(2);
|
|
9415
|
+
case 2:
|
|
9579
9416
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9580
9417
|
return d.count;
|
|
9581
9418
|
})) {
|
|
9582
|
-
_context.
|
|
9419
|
+
_context.n = 3;
|
|
9583
9420
|
break;
|
|
9584
9421
|
}
|
|
9585
9422
|
antd.message.warning('请填写商品数量!');
|
|
9586
|
-
return _context.
|
|
9587
|
-
case
|
|
9588
|
-
_context.
|
|
9423
|
+
return _context.a(2);
|
|
9424
|
+
case 3:
|
|
9425
|
+
_context.n = 4;
|
|
9589
9426
|
return isSkuCanEntry(data);
|
|
9590
|
-
case
|
|
9591
|
-
canEntryObject = _context.
|
|
9427
|
+
case 4:
|
|
9428
|
+
canEntryObject = _context.v;
|
|
9592
9429
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9593
|
-
_context.
|
|
9430
|
+
_context.n = 5;
|
|
9594
9431
|
break;
|
|
9595
9432
|
}
|
|
9596
9433
|
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) {
|
|
@@ -9600,8 +9437,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9600
9437
|
content: messageInfo,
|
|
9601
9438
|
duration: 6
|
|
9602
9439
|
});
|
|
9603
|
-
return _context.
|
|
9604
|
-
case
|
|
9440
|
+
return _context.a(2);
|
|
9441
|
+
case 5:
|
|
9605
9442
|
setLoading(true);
|
|
9606
9443
|
onSaveCallback(data).then(function (res) {
|
|
9607
9444
|
{
|
|
@@ -9619,9 +9456,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9619
9456
|
antd.message.error(Error);
|
|
9620
9457
|
setLoading(false);
|
|
9621
9458
|
});
|
|
9622
|
-
case
|
|
9623
|
-
|
|
9624
|
-
return _context.stop();
|
|
9459
|
+
case 6:
|
|
9460
|
+
return _context.a(2);
|
|
9625
9461
|
}
|
|
9626
9462
|
}, _callee);
|
|
9627
9463
|
}));
|
|
@@ -11795,7 +11631,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11795
11631
|
}
|
|
11796
11632
|
}
|
|
11797
11633
|
}];
|
|
11798
|
-
var
|
|
11634
|
+
var _queryHeaderParams0 = getQueryHeadersList({
|
|
11799
11635
|
querySelectHeadersList: querySelectHeadersList,
|
|
11800
11636
|
extralHeaders: extralHeaders
|
|
11801
11637
|
});
|
|
@@ -11803,21 +11639,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11803
11639
|
pageSize: 5000,
|
|
11804
11640
|
currentPage: 1,
|
|
11805
11641
|
'qp-companyType-eq': '30'
|
|
11806
|
-
}, getQueryHeadersItem(
|
|
11642
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
11807
11643
|
pageSize: 5000,
|
|
11808
11644
|
currentPage: 1,
|
|
11809
11645
|
'qp-companyType-eq': '20'
|
|
11810
|
-
}, getQueryHeadersItem(
|
|
11646
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
11811
11647
|
// pageSize: 5000,
|
|
11812
11648
|
// currentPage: 1,
|
|
11813
11649
|
'qp-status-eq': '1'
|
|
11814
|
-
}, getQueryHeadersItem(
|
|
11650
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
11815
11651
|
pageSize: 5000,
|
|
11816
11652
|
currentPage: 1
|
|
11817
|
-
}, getQueryHeadersItem(
|
|
11653
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
11818
11654
|
pageSize: 5000,
|
|
11819
11655
|
currentPage: 1
|
|
11820
|
-
}, getQueryHeadersItem(
|
|
11656
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-accountingCode-in'))]).then(function (x) {
|
|
11821
11657
|
formatSource(x, 0, 2, tableSearchForm);
|
|
11822
11658
|
formatSource(x, 1, 3, tableSearchForm);
|
|
11823
11659
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -11987,7 +11823,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11987
11823
|
},
|
|
11988
11824
|
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
11989
11825
|
}];
|
|
11990
|
-
var
|
|
11826
|
+
var _queryHeaderParams1 = getQueryHeadersList({
|
|
11991
11827
|
querySelectHeadersList: querySelectHeadersList,
|
|
11992
11828
|
extralHeaders: extralHeaders
|
|
11993
11829
|
});
|
|
@@ -11995,13 +11831,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11995
11831
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
11996
11832
|
'qp-realOrg-eq': true,
|
|
11997
11833
|
'qp-status-eq': 10
|
|
11998
|
-
}, getQueryHeadersItem(
|
|
11834
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
11999
11835
|
'qp-status-eq': 10,
|
|
12000
11836
|
'qp-isMain-eq': 1,
|
|
12001
11837
|
'qp-type-in': '1,2'
|
|
12002
|
-
}, getQueryHeadersItem(
|
|
11838
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12003
11839
|
'qp-status-eq': 1
|
|
12004
|
-
}, getQueryHeadersItem(
|
|
11840
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-orgCode-in'))]).then(function (x) {
|
|
12005
11841
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12006
11842
|
return data['parentCode'] === '0';
|
|
12007
11843
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -12239,7 +12075,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12239
12075
|
name: 'qp-officeTelephone-like',
|
|
12240
12076
|
label: '手机号'
|
|
12241
12077
|
}];
|
|
12242
|
-
var
|
|
12078
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
12243
12079
|
querySelectHeadersList: querySelectHeadersList,
|
|
12244
12080
|
extralHeaders: extralHeaders
|
|
12245
12081
|
});
|
|
@@ -12247,7 +12083,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12247
12083
|
pageSize: 5000,
|
|
12248
12084
|
currentPage: 1,
|
|
12249
12085
|
'qp-companyType-eq': 20
|
|
12250
|
-
}, getQueryHeadersItem(
|
|
12086
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-companyCode-in'))]).then(function (x) {
|
|
12251
12087
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12252
12088
|
});
|
|
12253
12089
|
modalTableProps = _objectSpread2({
|
|
@@ -12356,13 +12192,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12356
12192
|
name: 'qp-officeTelephone-like',
|
|
12357
12193
|
label: '手机号'
|
|
12358
12194
|
}]);
|
|
12359
|
-
var
|
|
12195
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
12360
12196
|
querySelectHeadersList: querySelectHeadersList,
|
|
12361
12197
|
extralHeaders: extralHeaders
|
|
12362
12198
|
});
|
|
12363
12199
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12364
12200
|
'orgViewCode': 'administrative-organization-view'
|
|
12365
|
-
}, getQueryHeadersItem(
|
|
12201
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-code-in'))]).then(function (x) {
|
|
12366
12202
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12367
12203
|
});
|
|
12368
12204
|
modalTableProps = _objectSpread2({
|
|
@@ -12509,17 +12345,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12509
12345
|
name: 'qp-remark-like',
|
|
12510
12346
|
label: '备注'
|
|
12511
12347
|
}];
|
|
12512
|
-
var
|
|
12348
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12513
12349
|
querySelectHeadersList: querySelectHeadersList,
|
|
12514
12350
|
extralHeaders: extralHeaders
|
|
12515
12351
|
});
|
|
12516
12352
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12517
12353
|
pageSize: 5000,
|
|
12518
12354
|
currentPage: 1
|
|
12519
|
-
}, getQueryHeadersItem(
|
|
12355
|
+
}, getQueryHeadersItem(_queryHeaderParams12, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12520
12356
|
pageSize: 5000,
|
|
12521
12357
|
currentPage: 1
|
|
12522
|
-
}, getQueryHeadersItem(
|
|
12358
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12523
12359
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12524
12360
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12525
12361
|
});
|
|
@@ -12689,14 +12525,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12689
12525
|
}
|
|
12690
12526
|
}
|
|
12691
12527
|
}];
|
|
12692
|
-
var
|
|
12528
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12693
12529
|
querySelectHeadersList: querySelectHeadersList,
|
|
12694
12530
|
extralHeaders: extralHeaders
|
|
12695
12531
|
});
|
|
12696
12532
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
12697
12533
|
pageSize: 5000,
|
|
12698
12534
|
currentPage: 1
|
|
12699
|
-
}, getQueryHeadersItem(
|
|
12535
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
12700
12536
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12701
12537
|
});
|
|
12702
12538
|
modalTableProps = _objectSpread2({
|
|
@@ -12793,7 +12629,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12793
12629
|
}
|
|
12794
12630
|
}
|
|
12795
12631
|
}];
|
|
12796
|
-
var
|
|
12632
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12797
12633
|
querySelectHeadersList: querySelectHeadersList,
|
|
12798
12634
|
extralHeaders: extralHeaders
|
|
12799
12635
|
});
|
|
@@ -12801,7 +12637,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12801
12637
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12802
12638
|
'qp-realOrg-eq': true,
|
|
12803
12639
|
'qp-status-eq': 10
|
|
12804
|
-
}, getQueryHeadersItem(
|
|
12640
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
12805
12641
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12806
12642
|
});
|
|
12807
12643
|
modalTableProps = _objectSpread2({
|
|
@@ -12907,13 +12743,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12907
12743
|
},
|
|
12908
12744
|
initialSource: nodeType
|
|
12909
12745
|
}];
|
|
12910
|
-
var
|
|
12746
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
12911
12747
|
querySelectHeadersList: querySelectHeadersList,
|
|
12912
12748
|
extralHeaders: extralHeaders
|
|
12913
12749
|
});
|
|
12914
12750
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
12915
12751
|
'qp-status-eq': 10
|
|
12916
|
-
}, getQueryHeadersItem(
|
|
12752
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
12917
12753
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12918
12754
|
});
|
|
12919
12755
|
modalTableProps = _objectSpread2({
|
|
@@ -13239,13 +13075,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13239
13075
|
},
|
|
13240
13076
|
initialSource: nodeType
|
|
13241
13077
|
}];
|
|
13242
|
-
var
|
|
13078
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13243
13079
|
querySelectHeadersList: querySelectHeadersList,
|
|
13244
13080
|
extralHeaders: extralHeaders
|
|
13245
13081
|
});
|
|
13246
13082
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13247
13083
|
'qp-status-eq': 10
|
|
13248
|
-
}, getQueryHeadersItem(
|
|
13084
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13249
13085
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13250
13086
|
});
|
|
13251
13087
|
modalTableProps = _objectSpread2({
|
|
@@ -14190,9 +14026,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14190
14026
|
value = _useState8[0],
|
|
14191
14027
|
setValue = _useState8[1];
|
|
14192
14028
|
var _useState9 = React$1.useState([]),
|
|
14193
|
-
|
|
14194
|
-
propertyList =
|
|
14195
|
-
setPropertyList =
|
|
14029
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
14030
|
+
propertyList = _useState0[0],
|
|
14031
|
+
setPropertyList = _useState0[1];
|
|
14196
14032
|
React$1.useEffect(function () {
|
|
14197
14033
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14198
14034
|
// type: 1 尺码组; 2 配码组
|
|
@@ -14716,46 +14552,45 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14716
14552
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
14717
14553
|
headers: headers
|
|
14718
14554
|
}).then(/*#__PURE__*/function () {
|
|
14719
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
14555
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
|
|
14720
14556
|
var _ctx$form;
|
|
14721
14557
|
var resData, coverData, data, dataList;
|
|
14722
|
-
return
|
|
14723
|
-
while (1) switch (_context.
|
|
14558
|
+
return _regenerator().w(function (_context) {
|
|
14559
|
+
while (1) switch (_context.n) {
|
|
14724
14560
|
case 0:
|
|
14725
14561
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
14726
14562
|
if (!judgeIsRequestSuccess(resData)) {
|
|
14727
|
-
_context.
|
|
14563
|
+
_context.n = 4;
|
|
14728
14564
|
break;
|
|
14729
14565
|
}
|
|
14730
14566
|
data = resData.data;
|
|
14731
14567
|
if (!remoteSource.converter) {
|
|
14732
|
-
_context.
|
|
14568
|
+
_context.n = 2;
|
|
14733
14569
|
break;
|
|
14734
14570
|
}
|
|
14735
|
-
_context.
|
|
14571
|
+
_context.n = 1;
|
|
14736
14572
|
return remoteSource.converter({
|
|
14737
14573
|
data: [data]
|
|
14738
14574
|
});
|
|
14739
|
-
case
|
|
14740
|
-
coverData = _context.
|
|
14741
|
-
_context.
|
|
14575
|
+
case 1:
|
|
14576
|
+
coverData = _context.v;
|
|
14577
|
+
_context.n = 3;
|
|
14742
14578
|
break;
|
|
14743
|
-
case
|
|
14579
|
+
case 2:
|
|
14744
14580
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
14745
14581
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
14746
14582
|
return _mapSearchTree(ites);
|
|
14747
14583
|
}) || [];
|
|
14748
|
-
case
|
|
14749
|
-
_context.
|
|
14584
|
+
case 3:
|
|
14585
|
+
_context.n = 5;
|
|
14750
14586
|
break;
|
|
14751
|
-
case
|
|
14587
|
+
case 4:
|
|
14752
14588
|
coverData = [];
|
|
14753
|
-
case
|
|
14589
|
+
case 5:
|
|
14754
14590
|
setTreeData(coverData);
|
|
14755
14591
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
14756
|
-
case
|
|
14757
|
-
|
|
14758
|
-
return _context.stop();
|
|
14592
|
+
case 6:
|
|
14593
|
+
return _context.a(2);
|
|
14759
14594
|
}
|
|
14760
14595
|
}, _callee);
|
|
14761
14596
|
}));
|
|
@@ -19057,38 +18892,38 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19057
18892
|
};
|
|
19058
18893
|
var refs = React$1.useRef(null);
|
|
19059
18894
|
var _useState9 = React$1.useState(''),
|
|
19060
|
-
|
|
19061
|
-
pagePath =
|
|
19062
|
-
setPagePath =
|
|
18895
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
18896
|
+
pagePath = _useState0[0],
|
|
18897
|
+
setPagePath = _useState0[1];
|
|
19063
18898
|
var _useLocation = umi.useLocation(),
|
|
19064
18899
|
pathname = _useLocation.pathname,
|
|
19065
18900
|
_useLocation$state = _useLocation.state,
|
|
19066
18901
|
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
19067
|
-
var
|
|
19068
|
-
|
|
19069
|
-
isFullScreen =
|
|
19070
|
-
setIsFnllScreen =
|
|
18902
|
+
var _useState1 = React$1.useState(false),
|
|
18903
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
18904
|
+
isFullScreen = _useState10[0],
|
|
18905
|
+
setIsFnllScreen = _useState10[1];
|
|
19071
18906
|
// @ts-nocheck
|
|
19072
18907
|
var value = props;
|
|
19073
18908
|
var _props$fields = props.fields,
|
|
19074
18909
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
19075
|
-
var
|
|
19076
|
-
|
|
19077
|
-
showColumn =
|
|
19078
|
-
setShowColumns =
|
|
18910
|
+
var _useState11 = React$1.useState([]),
|
|
18911
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
18912
|
+
showColumn = _useState12[0],
|
|
18913
|
+
setShowColumns = _useState12[1]; // 列字段
|
|
19079
18914
|
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19080
|
-
var
|
|
18915
|
+
var _useState13 = React$1.useState(originSearchFields),
|
|
18916
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
18917
|
+
showSearchFields = _useState14[0],
|
|
18918
|
+
setShowSearchFields = _useState14[1]; //搜索项字段
|
|
18919
|
+
var _useState15 = React$1.useState([]),
|
|
19081
18920
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
19082
|
-
|
|
19083
|
-
|
|
19084
|
-
var _useState17 = React$1.useState(
|
|
18921
|
+
showExportColumn = _useState16[0],
|
|
18922
|
+
setShowExportColumns = _useState16[1]; // 导出列字段
|
|
18923
|
+
var _useState17 = React$1.useState(''),
|
|
19085
18924
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
19086
|
-
|
|
19087
|
-
|
|
19088
|
-
var _useState19 = React$1.useState(''),
|
|
19089
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
19090
|
-
height = _useState20[0],
|
|
19091
|
-
setHeight = _useState20[1];
|
|
18925
|
+
height = _useState18[0],
|
|
18926
|
+
setHeight = _useState18[1];
|
|
19092
18927
|
var sortTableRef = React$1.useRef(null);
|
|
19093
18928
|
var searchTableRef = React$1.useRef(null);
|
|
19094
18929
|
var exportTableRef = React$1.useRef(null);
|
|
@@ -20136,22 +19971,19 @@ function outLogin(_x) {
|
|
|
20136
19971
|
return _outLogin.apply(this, arguments);
|
|
20137
19972
|
}
|
|
20138
19973
|
function _outLogin() {
|
|
20139
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
19974
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20140
19975
|
var res;
|
|
20141
|
-
return
|
|
20142
|
-
while (1) switch (_context.
|
|
19976
|
+
return _regenerator().w(function (_context) {
|
|
19977
|
+
while (1) switch (_context.n) {
|
|
20143
19978
|
case 0:
|
|
20144
|
-
_context.
|
|
19979
|
+
_context.n = 1;
|
|
20145
19980
|
return requestUtil({
|
|
20146
19981
|
url: '/user/web/loginOut',
|
|
20147
19982
|
method: 'GET'
|
|
20148
19983
|
});
|
|
20149
|
-
case
|
|
20150
|
-
res = _context.
|
|
20151
|
-
return _context.
|
|
20152
|
-
case 4:
|
|
20153
|
-
case "end":
|
|
20154
|
-
return _context.stop();
|
|
19984
|
+
case 1:
|
|
19985
|
+
res = _context.v;
|
|
19986
|
+
return _context.a(2, res);
|
|
20155
19987
|
}
|
|
20156
19988
|
}, _callee);
|
|
20157
19989
|
}));
|
|
@@ -20278,20 +20110,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20278
20110
|
});
|
|
20279
20111
|
};
|
|
20280
20112
|
var loginOut = /*#__PURE__*/function () {
|
|
20281
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
20113
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
20282
20114
|
var sessionId;
|
|
20283
|
-
return
|
|
20284
|
-
while (1) switch (_context.
|
|
20115
|
+
return _regenerator().w(function (_context) {
|
|
20116
|
+
while (1) switch (_context.n) {
|
|
20285
20117
|
case 0:
|
|
20286
|
-
_context.
|
|
20118
|
+
_context.n = 1;
|
|
20287
20119
|
return getSessionId();
|
|
20288
|
-
case
|
|
20289
|
-
sessionId = _context.
|
|
20290
|
-
_context.
|
|
20120
|
+
case 1:
|
|
20121
|
+
sessionId = _context.v;
|
|
20122
|
+
_context.n = 2;
|
|
20291
20123
|
return outLogin({
|
|
20292
20124
|
sessionId: sessionId
|
|
20293
20125
|
});
|
|
20294
|
-
case
|
|
20126
|
+
case 2:
|
|
20295
20127
|
// @ts-ignore
|
|
20296
20128
|
if (BUILD_TYPE) {
|
|
20297
20129
|
antd.message.success('退出登录成功');
|
|
@@ -20301,9 +20133,8 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20301
20133
|
} else {
|
|
20302
20134
|
setLoginOutPath();
|
|
20303
20135
|
}
|
|
20304
|
-
case
|
|
20305
|
-
|
|
20306
|
-
return _context.stop();
|
|
20136
|
+
case 3:
|
|
20137
|
+
return _context.a(2);
|
|
20307
20138
|
}
|
|
20308
20139
|
}, _callee);
|
|
20309
20140
|
}));
|
|
@@ -20390,18 +20221,15 @@ function getStoreByName(_x) {
|
|
|
20390
20221
|
return _getStoreByName.apply(this, arguments);
|
|
20391
20222
|
}
|
|
20392
20223
|
function _getStoreByName() {
|
|
20393
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20394
|
-
return
|
|
20395
|
-
while (1) switch (_context.
|
|
20224
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20225
|
+
return _regenerator().w(function (_context) {
|
|
20226
|
+
while (1) switch (_context.n) {
|
|
20396
20227
|
case 0:
|
|
20397
|
-
return _context.
|
|
20228
|
+
return _context.a(2, requestUtil({
|
|
20398
20229
|
url: '/store-house/orgViewNode/listNoPage',
|
|
20399
20230
|
method: 'GET',
|
|
20400
20231
|
params: _objectSpread2({}, params)
|
|
20401
20232
|
}));
|
|
20402
|
-
case 1:
|
|
20403
|
-
case "end":
|
|
20404
|
-
return _context.stop();
|
|
20405
20233
|
}
|
|
20406
20234
|
}, _callee);
|
|
20407
20235
|
}));
|
|
@@ -20436,33 +20264,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20436
20264
|
openSelect = _useState8[0],
|
|
20437
20265
|
setOpenSelect = _useState8[1];
|
|
20438
20266
|
var _useState9 = React$1.useState([]),
|
|
20439
|
-
|
|
20440
|
-
options =
|
|
20441
|
-
setOptions =
|
|
20442
|
-
var
|
|
20267
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
20268
|
+
options = _useState0[0],
|
|
20269
|
+
setOptions = _useState0[1];
|
|
20270
|
+
var _useState1 = React$1.useState([]),
|
|
20271
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
20272
|
+
rescouse = _useState10[0],
|
|
20273
|
+
setRescouse = _useState10[1];
|
|
20274
|
+
var _useState11 = React$1.useState(''),
|
|
20443
20275
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
20444
|
-
|
|
20445
|
-
|
|
20446
|
-
var _useState13 = React$1.useState(
|
|
20447
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
20448
|
-
searchValue = _useState14[0],
|
|
20449
|
-
setSearchValue = _useState14[1];
|
|
20450
|
-
var _useState15 = React$1.useState([{
|
|
20276
|
+
searchValue = _useState12[0],
|
|
20277
|
+
setSearchValue = _useState12[1];
|
|
20278
|
+
var _useState13 = React$1.useState([{
|
|
20451
20279
|
label: name,
|
|
20452
20280
|
value: code
|
|
20453
20281
|
}]),
|
|
20454
|
-
|
|
20455
|
-
store =
|
|
20456
|
-
setStore =
|
|
20282
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
20283
|
+
store = _useState14[0],
|
|
20284
|
+
setStore = _useState14[1];
|
|
20457
20285
|
function fetchUserList(_x, _x2) {
|
|
20458
20286
|
return _fetchUserList.apply(this, arguments);
|
|
20459
20287
|
}
|
|
20460
20288
|
function _fetchUserList() {
|
|
20461
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
20462
|
-
return
|
|
20463
|
-
while (1) switch (_context3.
|
|
20289
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(storeName, init) {
|
|
20290
|
+
return _regenerator().w(function (_context3) {
|
|
20291
|
+
while (1) switch (_context3.n) {
|
|
20464
20292
|
case 0:
|
|
20465
|
-
return _context3.
|
|
20293
|
+
return _context3.a(2, getStoreByName({
|
|
20466
20294
|
orgName: storeName ? storeName : undefined,
|
|
20467
20295
|
platCompanyCode: init ? undefined : key,
|
|
20468
20296
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -20481,9 +20309,6 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20481
20309
|
};
|
|
20482
20310
|
});
|
|
20483
20311
|
}));
|
|
20484
|
-
case 1:
|
|
20485
|
-
case "end":
|
|
20486
|
-
return _context3.stop();
|
|
20487
20312
|
}
|
|
20488
20313
|
}, _callee3);
|
|
20489
20314
|
}));
|
|
@@ -20506,20 +20331,19 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20506
20331
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
20507
20332
|
}, [debounceTimeout, key]);
|
|
20508
20333
|
var changeInput = /*#__PURE__*/function () {
|
|
20509
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
20334
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
|
|
20510
20335
|
var res;
|
|
20511
|
-
return
|
|
20512
|
-
while (1) switch (_context.
|
|
20336
|
+
return _regenerator().w(function (_context) {
|
|
20337
|
+
while (1) switch (_context.n) {
|
|
20513
20338
|
case 0:
|
|
20514
|
-
_context.
|
|
20339
|
+
_context.n = 1;
|
|
20515
20340
|
return debounceFetcher(str);
|
|
20516
|
-
case
|
|
20517
|
-
res = _context.
|
|
20341
|
+
case 1:
|
|
20342
|
+
res = _context.v;
|
|
20518
20343
|
setOptions(res);
|
|
20519
20344
|
setRescouse(res);
|
|
20520
|
-
case
|
|
20521
|
-
|
|
20522
|
-
return _context.stop();
|
|
20345
|
+
case 2:
|
|
20346
|
+
return _context.a(2);
|
|
20523
20347
|
}
|
|
20524
20348
|
}, _callee);
|
|
20525
20349
|
}));
|
|
@@ -20528,15 +20352,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20528
20352
|
};
|
|
20529
20353
|
}();
|
|
20530
20354
|
React$1.useEffect(function () {
|
|
20531
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
20355
|
+
_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
20532
20356
|
var res;
|
|
20533
|
-
return
|
|
20534
|
-
while (1) switch (_context2.
|
|
20357
|
+
return _regenerator().w(function (_context2) {
|
|
20358
|
+
while (1) switch (_context2.n) {
|
|
20535
20359
|
case 0:
|
|
20536
|
-
_context2.
|
|
20360
|
+
_context2.n = 1;
|
|
20537
20361
|
return fetchUserList(undefined, true);
|
|
20538
|
-
case
|
|
20539
|
-
res = _context2.
|
|
20362
|
+
case 1:
|
|
20363
|
+
res = _context2.v;
|
|
20540
20364
|
res.map(function (item, indexNumber) {
|
|
20541
20365
|
if (item.label === name) {
|
|
20542
20366
|
setIndex(indexNumber);
|
|
@@ -20552,9 +20376,8 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20552
20376
|
});
|
|
20553
20377
|
setOptions(res);
|
|
20554
20378
|
setRescouse(res);
|
|
20555
|
-
case
|
|
20556
|
-
|
|
20557
|
-
return _context2.stop();
|
|
20379
|
+
case 2:
|
|
20380
|
+
return _context2.a(2);
|
|
20558
20381
|
}
|
|
20559
20382
|
}, _callee2);
|
|
20560
20383
|
}))();
|
|
@@ -21603,25 +21426,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
21603
21426
|
currentOneLevel = _useState8[0],
|
|
21604
21427
|
setCurrentOneLevel = _useState8[1];
|
|
21605
21428
|
var _useState9 = React$1.useState([]),
|
|
21606
|
-
|
|
21607
|
-
SearhData =
|
|
21608
|
-
setSearchMenuData =
|
|
21609
|
-
var
|
|
21429
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
21430
|
+
SearhData = _useState0[0],
|
|
21431
|
+
setSearchMenuData = _useState0[1];
|
|
21432
|
+
var _useState1 = React$1.useState(600),
|
|
21433
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
21434
|
+
rightMenuHeight = _useState10[0],
|
|
21435
|
+
setHeight = _useState10[1];
|
|
21436
|
+
var _useState11 = React$1.useState(900),
|
|
21610
21437
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
21611
|
-
|
|
21612
|
-
|
|
21613
|
-
var _useState13 = React$1.useState(
|
|
21438
|
+
drawHeight = _useState12[0],
|
|
21439
|
+
setDrawHeight = _useState12[1];
|
|
21440
|
+
var _useState13 = React$1.useState(false),
|
|
21614
21441
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
21615
|
-
|
|
21616
|
-
|
|
21442
|
+
moreBtnShow = _useState14[0],
|
|
21443
|
+
setMoreBtnShow = _useState14[1];
|
|
21617
21444
|
var _useState15 = React$1.useState(false),
|
|
21618
21445
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
21619
|
-
|
|
21620
|
-
|
|
21621
|
-
var _useState17 = React$1.useState(false),
|
|
21622
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
21623
|
-
showScroll = _useState18[0],
|
|
21624
|
-
setShowScroll = _useState18[1];
|
|
21446
|
+
showScroll = _useState16[0],
|
|
21447
|
+
setShowScroll = _useState16[1];
|
|
21625
21448
|
React$1.useEffect(function () {
|
|
21626
21449
|
var _originRoutes$find;
|
|
21627
21450
|
getMenuContentHeight();
|
|
@@ -23232,14 +23055,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23232
23055
|
},
|
|
23233
23056
|
menu: {
|
|
23234
23057
|
request: function () {
|
|
23235
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23236
|
-
return
|
|
23237
|
-
while (1) switch (_context.
|
|
23058
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
23059
|
+
return _regenerator().w(function (_context) {
|
|
23060
|
+
while (1) switch (_context.n) {
|
|
23238
23061
|
case 0:
|
|
23239
|
-
return _context.
|
|
23240
|
-
case 1:
|
|
23241
|
-
case "end":
|
|
23242
|
-
return _context.stop();
|
|
23062
|
+
return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
23243
23063
|
}
|
|
23244
23064
|
}, _callee);
|
|
23245
23065
|
}));
|
|
@@ -23644,31 +23464,31 @@ var index$6 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
23644
23464
|
multiTableData = _useState8[0],
|
|
23645
23465
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
23646
23466
|
var _useState9 = React$1.useState(10),
|
|
23647
|
-
|
|
23648
|
-
viewCount =
|
|
23649
|
-
setViewCount =
|
|
23467
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
23468
|
+
viewCount = _useState0[0],
|
|
23469
|
+
setViewCount = _useState0[1]; //虚拟表格每次渲染数量
|
|
23650
23470
|
var itemWidth = 100; // 表格每一项宽度
|
|
23651
|
-
var
|
|
23652
|
-
|
|
23653
|
-
realColHeaderWidth =
|
|
23654
|
-
setLeftWidth =
|
|
23471
|
+
var _useState1 = React$1.useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
|
|
23472
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
23473
|
+
realColHeaderWidth = _useState10[0],
|
|
23474
|
+
setLeftWidth = _useState10[1];
|
|
23655
23475
|
var viewPort = React$1.useRef(null);
|
|
23656
23476
|
var topScrollBar = React$1.useRef(null);
|
|
23657
23477
|
var leftTableRef = React$1.useRef(null);
|
|
23658
23478
|
//起始渲染item
|
|
23659
|
-
var
|
|
23660
|
-
|
|
23661
|
-
startIndex =
|
|
23662
|
-
setStartIndex =
|
|
23479
|
+
var _useState11 = React$1.useState(0),
|
|
23480
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
23481
|
+
startIndex = _useState12[0],
|
|
23482
|
+
setStartIndex = _useState12[1];
|
|
23663
23483
|
//结束渲染item
|
|
23664
23484
|
var endIndex = React$1.useMemo(function () {
|
|
23665
23485
|
return startIndex + viewCount;
|
|
23666
23486
|
}, [startIndex, viewCount]);
|
|
23667
23487
|
//表格偏移量
|
|
23668
|
-
var
|
|
23669
|
-
|
|
23670
|
-
offsetWidth =
|
|
23671
|
-
setOffset =
|
|
23488
|
+
var _useState13 = React$1.useState(0),
|
|
23489
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
23490
|
+
offsetWidth = _useState14[0],
|
|
23491
|
+
setOffset = _useState14[1];
|
|
23672
23492
|
React$1.useEffect(function () {
|
|
23673
23493
|
setTimeout(function () {
|
|
23674
23494
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -30972,11 +30792,11 @@ var valueType = {
|
|
|
30972
30792
|
};
|
|
30973
30793
|
|
|
30974
30794
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
30975
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
30976
|
-
return
|
|
30977
|
-
while (1) switch (_context.
|
|
30795
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(dictionaryCode) {
|
|
30796
|
+
return _regenerator().w(function (_context) {
|
|
30797
|
+
while (1) switch (_context.n) {
|
|
30978
30798
|
case 0:
|
|
30979
|
-
_context.
|
|
30799
|
+
_context.n = 1;
|
|
30980
30800
|
return bssula.request({
|
|
30981
30801
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
30982
30802
|
converter: function converter(_ref2) {
|
|
@@ -30989,11 +30809,8 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
30989
30809
|
});
|
|
30990
30810
|
}
|
|
30991
30811
|
});
|
|
30992
|
-
case
|
|
30993
|
-
return _context.
|
|
30994
|
-
case 3:
|
|
30995
|
-
case "end":
|
|
30996
|
-
return _context.stop();
|
|
30812
|
+
case 1:
|
|
30813
|
+
return _context.a(2, _context.v);
|
|
30997
30814
|
}
|
|
30998
30815
|
}, _callee);
|
|
30999
30816
|
}));
|
|
@@ -31040,12 +30857,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31040
30857
|
value: false
|
|
31041
30858
|
}];
|
|
31042
30859
|
var ref = React$1.useRef();
|
|
31043
|
-
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
31044
|
-
var _ref$current, source;
|
|
31045
|
-
return
|
|
31046
|
-
while (1) switch (_context.
|
|
30860
|
+
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
30861
|
+
var _ref$current, source, _t, _t2;
|
|
30862
|
+
return _regenerator().w(function (_context) {
|
|
30863
|
+
while (1) switch (_context.n) {
|
|
31047
30864
|
case 0:
|
|
31048
|
-
_context.
|
|
30865
|
+
_context.n = 1;
|
|
31049
30866
|
return setIsShowAndType(function (prev) {
|
|
31050
30867
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
31051
30868
|
return {
|
|
@@ -31056,40 +30873,39 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31056
30873
|
}
|
|
31057
30874
|
return prev;
|
|
31058
30875
|
});
|
|
31059
|
-
case
|
|
30876
|
+
case 1:
|
|
31060
30877
|
if (!record.dictionaryCode) {
|
|
31061
|
-
_context.
|
|
30878
|
+
_context.n = 7;
|
|
31062
30879
|
break;
|
|
31063
30880
|
}
|
|
31064
30881
|
if (!(record.choiceType == 20)) {
|
|
31065
|
-
_context.
|
|
30882
|
+
_context.n = 2;
|
|
31066
30883
|
break;
|
|
31067
30884
|
}
|
|
31068
|
-
|
|
31069
|
-
_context.
|
|
30885
|
+
_t = getDictionarySource(record.dictionaryCode);
|
|
30886
|
+
_context.n = 6;
|
|
31070
30887
|
break;
|
|
31071
|
-
case
|
|
30888
|
+
case 2:
|
|
31072
30889
|
if (!(record.choiceType == 30)) {
|
|
31073
|
-
_context.
|
|
30890
|
+
_context.n = 4;
|
|
31074
30891
|
break;
|
|
31075
30892
|
}
|
|
31076
|
-
_context.
|
|
30893
|
+
_context.n = 3;
|
|
31077
30894
|
return getDynamicDict(record.dictionaryCode);
|
|
31078
|
-
case
|
|
31079
|
-
|
|
31080
|
-
_context.
|
|
30895
|
+
case 3:
|
|
30896
|
+
_t2 = _context.v;
|
|
30897
|
+
_context.n = 5;
|
|
31081
30898
|
break;
|
|
31082
|
-
case
|
|
31083
|
-
|
|
31084
|
-
case
|
|
31085
|
-
|
|
31086
|
-
case
|
|
31087
|
-
source =
|
|
30899
|
+
case 4:
|
|
30900
|
+
_t2 = [];
|
|
30901
|
+
case 5:
|
|
30902
|
+
_t = _t2;
|
|
30903
|
+
case 6:
|
|
30904
|
+
source = _t;
|
|
31088
30905
|
// @ts-ignore
|
|
31089
30906
|
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
31090
|
-
case
|
|
31091
|
-
|
|
31092
|
-
return _context.stop();
|
|
30907
|
+
case 7:
|
|
30908
|
+
return _context.a(2);
|
|
31093
30909
|
}
|
|
31094
30910
|
}, _callee);
|
|
31095
30911
|
})));
|
|
@@ -31154,10 +30970,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31154
30970
|
source: {
|
|
31155
30971
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
31156
30972
|
type: function () {
|
|
31157
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
30973
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
|
|
31158
30974
|
var form, values, name, relates, source;
|
|
31159
|
-
return
|
|
31160
|
-
while (1) switch (_context2.
|
|
30975
|
+
return _regenerator().w(function (_context2) {
|
|
30976
|
+
while (1) switch (_context2.n) {
|
|
31161
30977
|
case 0:
|
|
31162
30978
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
31163
30979
|
if (values[0]) {
|
|
@@ -31166,19 +30982,18 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31166
30982
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
31167
30983
|
}
|
|
31168
30984
|
if (!values[1]) {
|
|
31169
|
-
_context2.
|
|
30985
|
+
_context2.n = 2;
|
|
31170
30986
|
break;
|
|
31171
30987
|
}
|
|
31172
|
-
_context2.
|
|
30988
|
+
_context2.n = 1;
|
|
31173
30989
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
31174
|
-
case
|
|
31175
|
-
source = _context2.
|
|
30990
|
+
case 1:
|
|
30991
|
+
source = _context2.v;
|
|
31176
30992
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
31177
30993
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
31178
30994
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
31179
|
-
case
|
|
31180
|
-
|
|
31181
|
-
return _context2.stop();
|
|
30995
|
+
case 2:
|
|
30996
|
+
return _context2.a(2);
|
|
31182
30997
|
}
|
|
31183
30998
|
}, _callee2);
|
|
31184
30999
|
}));
|
|
@@ -31634,25 +31449,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31634
31449
|
source: {
|
|
31635
31450
|
relates: ['choiceType', 'inputType'],
|
|
31636
31451
|
type: function () {
|
|
31637
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
31452
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
|
|
31638
31453
|
var values, name, form, source;
|
|
31639
|
-
return
|
|
31640
|
-
while (1) switch (_context3.
|
|
31454
|
+
return _regenerator().w(function (_context3) {
|
|
31455
|
+
while (1) switch (_context3.n) {
|
|
31641
31456
|
case 0:
|
|
31642
|
-
values =
|
|
31457
|
+
values = _ref0.values, name = _ref0.name, form = _ref0.form;
|
|
31643
31458
|
if (values[1] === 40) {
|
|
31644
31459
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
31645
31460
|
form.setFieldVisible(name, false);
|
|
31646
31461
|
}
|
|
31647
31462
|
if (!(values[0] === 30)) {
|
|
31648
|
-
_context3.
|
|
31463
|
+
_context3.n = 2;
|
|
31649
31464
|
break;
|
|
31650
31465
|
}
|
|
31651
|
-
_context3.
|
|
31466
|
+
_context3.n = 1;
|
|
31652
31467
|
return bssula.request({
|
|
31653
31468
|
url: '/basic/dictDynamicItem/queryList',
|
|
31654
|
-
converter: function converter(
|
|
31655
|
-
var data =
|
|
31469
|
+
converter: function converter(_ref1) {
|
|
31470
|
+
var data = _ref1.data;
|
|
31656
31471
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31657
31472
|
return {
|
|
31658
31473
|
text: d.dictCode,
|
|
@@ -31661,17 +31476,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31661
31476
|
});
|
|
31662
31477
|
}
|
|
31663
31478
|
});
|
|
31664
|
-
case
|
|
31665
|
-
source = _context3.
|
|
31479
|
+
case 1:
|
|
31480
|
+
source = _context3.v;
|
|
31666
31481
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
31667
31482
|
form.setFieldVisible(name, true);
|
|
31668
|
-
_context3.
|
|
31483
|
+
_context3.n = 3;
|
|
31669
31484
|
break;
|
|
31670
|
-
case
|
|
31485
|
+
case 2:
|
|
31671
31486
|
form.setFieldVisible(name, false);
|
|
31672
|
-
case
|
|
31673
|
-
|
|
31674
|
-
return _context3.stop();
|
|
31487
|
+
case 3:
|
|
31488
|
+
return _context3.a(2);
|
|
31675
31489
|
}
|
|
31676
31490
|
}, _callee3);
|
|
31677
31491
|
}));
|
|
@@ -31686,8 +31500,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31686
31500
|
name: 'enumeration',
|
|
31687
31501
|
label: '维护自定义选项',
|
|
31688
31502
|
field: {
|
|
31689
|
-
type: function type(
|
|
31690
|
-
var form =
|
|
31503
|
+
type: function type(_ref10) {
|
|
31504
|
+
var form = _ref10.form;
|
|
31691
31505
|
return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
31692
31506
|
type: 'link',
|
|
31693
31507
|
onClick: function onClick() {
|
|
@@ -31713,10 +31527,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31713
31527
|
dependency: {
|
|
31714
31528
|
source: {
|
|
31715
31529
|
relates: ['choiceType'],
|
|
31716
|
-
type: function type(
|
|
31717
|
-
var values =
|
|
31718
|
-
name =
|
|
31719
|
-
form =
|
|
31530
|
+
type: function type(_ref11) {
|
|
31531
|
+
var values = _ref11.values,
|
|
31532
|
+
name = _ref11.name,
|
|
31533
|
+
form = _ref11.form;
|
|
31720
31534
|
if (values[0] === 10) {
|
|
31721
31535
|
form.setFieldVisible(name, true);
|
|
31722
31536
|
} else {
|
|
@@ -31732,10 +31546,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31732
31546
|
dependency: {
|
|
31733
31547
|
visible: {
|
|
31734
31548
|
relates: ['choiceType'],
|
|
31735
|
-
type: function type(
|
|
31736
|
-
var name =
|
|
31737
|
-
values =
|
|
31738
|
-
form =
|
|
31549
|
+
type: function type(_ref12) {
|
|
31550
|
+
var name = _ref12.name,
|
|
31551
|
+
values = _ref12.values,
|
|
31552
|
+
form = _ref12.form;
|
|
31739
31553
|
if (values[0] == 330) {
|
|
31740
31554
|
form.setFieldVisible(name, true);
|
|
31741
31555
|
} else {
|
|
@@ -31759,8 +31573,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31759
31573
|
params: {
|
|
31760
31574
|
'qp-businessType-eq': record.businessType
|
|
31761
31575
|
},
|
|
31762
|
-
converter: function converter(
|
|
31763
|
-
var data =
|
|
31576
|
+
converter: function converter(_ref13) {
|
|
31577
|
+
var data = _ref13.data;
|
|
31764
31578
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31765
31579
|
return {
|
|
31766
31580
|
text: d.name,
|
|
@@ -31800,8 +31614,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31800
31614
|
'qp-businessType-eq': record.businessType,
|
|
31801
31615
|
'qp-status-eq': 1
|
|
31802
31616
|
},
|
|
31803
|
-
converter: function converter(
|
|
31804
|
-
var data =
|
|
31617
|
+
converter: function converter(_ref14) {
|
|
31618
|
+
var data = _ref14.data;
|
|
31805
31619
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31806
31620
|
var _d$code;
|
|
31807
31621
|
return {
|
|
@@ -31829,8 +31643,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31829
31643
|
remoteSource: {
|
|
31830
31644
|
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),
|
|
31831
31645
|
method: 'get',
|
|
31832
|
-
converter: function converter(
|
|
31833
|
-
var data =
|
|
31646
|
+
converter: function converter(_ref15) {
|
|
31647
|
+
var data = _ref15.data;
|
|
31834
31648
|
if (lineDetail.moduleType == 1) {
|
|
31835
31649
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31836
31650
|
return {
|
|
@@ -31856,16 +31670,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31856
31670
|
width: 900,
|
|
31857
31671
|
maskClosable: false,
|
|
31858
31672
|
onOk: function () {
|
|
31859
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
31673
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
31860
31674
|
var _ref$current4, _res$editableStatus;
|
|
31861
31675
|
var res, _res$defaultValue;
|
|
31862
|
-
return
|
|
31863
|
-
while (1) switch (_context4.
|
|
31676
|
+
return _regenerator().w(function (_context4) {
|
|
31677
|
+
while (1) switch (_context4.n) {
|
|
31864
31678
|
case 0:
|
|
31865
|
-
_context4.
|
|
31679
|
+
_context4.n = 1;
|
|
31866
31680
|
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
31867
|
-
case
|
|
31868
|
-
res = _context4.
|
|
31681
|
+
case 1:
|
|
31682
|
+
res = _context4.v;
|
|
31869
31683
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
31870
31684
|
res.fieldGroup = record.fieldGroup;
|
|
31871
31685
|
res.businessType = record.businessType;
|
|
@@ -31892,7 +31706,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31892
31706
|
delete res.formula;
|
|
31893
31707
|
delete res.showValue;
|
|
31894
31708
|
if (!(mode === 'create')) {
|
|
31895
|
-
_context4.
|
|
31709
|
+
_context4.n = 2;
|
|
31896
31710
|
break;
|
|
31897
31711
|
}
|
|
31898
31712
|
bssula.request({
|
|
@@ -31904,8 +31718,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31904
31718
|
onParentOk();
|
|
31905
31719
|
}
|
|
31906
31720
|
});
|
|
31907
|
-
return _context4.
|
|
31908
|
-
case
|
|
31721
|
+
return _context4.a(2);
|
|
31722
|
+
case 2:
|
|
31909
31723
|
bssula.request({
|
|
31910
31724
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
31911
31725
|
method: 'PATCH',
|
|
@@ -31915,9 +31729,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31915
31729
|
onParentOk();
|
|
31916
31730
|
}
|
|
31917
31731
|
});
|
|
31918
|
-
case
|
|
31919
|
-
|
|
31920
|
-
return _context4.stop();
|
|
31732
|
+
case 3:
|
|
31733
|
+
return _context4.a(2);
|
|
31921
31734
|
}
|
|
31922
31735
|
}, _callee4);
|
|
31923
31736
|
}));
|
|
@@ -32373,21 +32186,21 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
32373
32186
|
jsonEditorVal = _useState8[0],
|
|
32374
32187
|
setJsonEditorVal = _useState8[1];
|
|
32375
32188
|
var _useState9 = React$1.useState({}),
|
|
32376
|
-
|
|
32377
|
-
moduleParams =
|
|
32378
|
-
setModuleParams =
|
|
32379
|
-
var
|
|
32189
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
32190
|
+
moduleParams = _useState0[0],
|
|
32191
|
+
setModuleParams = _useState0[1];
|
|
32192
|
+
var _useState1 = React$1.useState('main'),
|
|
32193
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
32194
|
+
activeKey = _useState10[0],
|
|
32195
|
+
setActiveKey = _useState10[1]; //默认详情页配置
|
|
32196
|
+
var _useState11 = React$1.useState({}),
|
|
32380
32197
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32381
|
-
|
|
32382
|
-
|
|
32383
|
-
var _useState13 = React$1.useState(
|
|
32198
|
+
tablesConfigParams = _useState12[0],
|
|
32199
|
+
setTablesConfigParams = _useState12[1];
|
|
32200
|
+
var _useState13 = React$1.useState([]),
|
|
32384
32201
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32385
|
-
|
|
32386
|
-
|
|
32387
|
-
var _useState15 = React$1.useState([]),
|
|
32388
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
32389
|
-
tableJsonEditorValsArr = _useState16[0],
|
|
32390
|
-
setTableJsonEditorValsArr = _useState16[1];
|
|
32202
|
+
tableJsonEditorValsArr = _useState14[0],
|
|
32203
|
+
setTableJsonEditorValsArr = _useState14[1];
|
|
32391
32204
|
React$1.useEffect(function () {
|
|
32392
32205
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32393
32206
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -32763,11 +32576,11 @@ function getMetaData(_x) {
|
|
|
32763
32576
|
|
|
32764
32577
|
// 获取数据
|
|
32765
32578
|
function _getMetaData() {
|
|
32766
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
32767
|
-
return
|
|
32768
|
-
while (1) switch (_context.
|
|
32579
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id) {
|
|
32580
|
+
return _regenerator().w(function (_context) {
|
|
32581
|
+
while (1) switch (_context.n) {
|
|
32769
32582
|
case 0:
|
|
32770
|
-
return _context.
|
|
32583
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
32771
32584
|
umi.request('/basic/entityProperty/listNoPage', {
|
|
32772
32585
|
params: {
|
|
32773
32586
|
'qp-entityId-eq': id
|
|
@@ -32779,9 +32592,6 @@ function _getMetaData() {
|
|
|
32779
32592
|
reject([]);
|
|
32780
32593
|
});
|
|
32781
32594
|
}));
|
|
32782
|
-
case 1:
|
|
32783
|
-
case "end":
|
|
32784
|
-
return _context.stop();
|
|
32785
32595
|
}
|
|
32786
32596
|
}, _callee);
|
|
32787
32597
|
}));
|
|
@@ -32985,11 +32795,11 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32985
32795
|
tableState = _useState4[0],
|
|
32986
32796
|
setTableState = _useState4[1];
|
|
32987
32797
|
var handleOpen = /*#__PURE__*/function () {
|
|
32988
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
32798
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
32989
32799
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
32990
32800
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
32991
|
-
return
|
|
32992
|
-
while (1) switch (_context.
|
|
32801
|
+
return _regenerator().w(function (_context) {
|
|
32802
|
+
while (1) switch (_context.n) {
|
|
32993
32803
|
case 0:
|
|
32994
32804
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
32995
32805
|
isSearchForm: props.isSearchForm,
|
|
@@ -32997,16 +32807,16 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32997
32807
|
searchFormData: searchFormData
|
|
32998
32808
|
});
|
|
32999
32809
|
if (requestConfigNew) {
|
|
33000
|
-
_context.
|
|
32810
|
+
_context.n = 1;
|
|
33001
32811
|
break;
|
|
33002
32812
|
}
|
|
33003
|
-
return _context.
|
|
33004
|
-
case
|
|
32813
|
+
return _context.a(2);
|
|
32814
|
+
case 1:
|
|
33005
32815
|
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;
|
|
33006
|
-
_context.
|
|
32816
|
+
_context.n = 2;
|
|
33007
32817
|
return getMetaData(metaDataId);
|
|
33008
|
-
case
|
|
33009
|
-
metaData = _context.
|
|
32818
|
+
case 2:
|
|
32819
|
+
metaData = _context.v;
|
|
33010
32820
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
33011
32821
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
33012
32822
|
})) || [];
|
|
@@ -33046,9 +32856,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33046
32856
|
// @ts-ignore
|
|
33047
32857
|
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);
|
|
33048
32858
|
}
|
|
33049
|
-
case
|
|
33050
|
-
|
|
33051
|
-
return _context.stop();
|
|
32859
|
+
case 3:
|
|
32860
|
+
return _context.a(2);
|
|
33052
32861
|
}
|
|
33053
32862
|
}, _callee);
|
|
33054
32863
|
}));
|
|
@@ -33151,7 +32960,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33151
32960
|
}, [requestConfig, tableState.columns]);
|
|
33152
32961
|
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';
|
|
33153
32962
|
var handleOk = function handleOk(rowData) {
|
|
33154
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
32963
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
|
|
33155
32964
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
33156
32965
|
//多选数据处理
|
|
33157
32966
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -33162,9 +32971,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33162
32971
|
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()) || [];
|
|
33163
32972
|
var realSelectedRows = selectedRows;
|
|
33164
32973
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
33165
|
-
var _queryTableRef$
|
|
32974
|
+
var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
|
|
33166
32975
|
// @ts-ignore
|
|
33167
|
-
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
32976
|
+
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()) || [];
|
|
33168
32977
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
33169
32978
|
return selectedKesys.includes(s[rowKey]);
|
|
33170
32979
|
});
|
|
@@ -33197,10 +33006,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33197
33006
|
});
|
|
33198
33007
|
}
|
|
33199
33008
|
mappings.map(function (item) {
|
|
33200
|
-
var _props$
|
|
33201
|
-
if (((_props$
|
|
33202
|
-
var _props$
|
|
33203
|
-
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$
|
|
33009
|
+
var _props$customSelector0, _props$customSelector1, _props$customSelector10, _props$customSelector11;
|
|
33010
|
+
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]) {
|
|
33011
|
+
var _props$customSelector12, _props$customSelector13;
|
|
33012
|
+
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];
|
|
33204
33013
|
}
|
|
33205
33014
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
33206
33015
|
});
|
|
@@ -33255,10 +33064,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33255
33064
|
}
|
|
33256
33065
|
props.onCancel();
|
|
33257
33066
|
//@ts-ignore
|
|
33258
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33067
|
+
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();
|
|
33259
33068
|
};
|
|
33260
33069
|
var config = React$1.useMemo(function () {
|
|
33261
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
33070
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
|
|
33262
33071
|
var returnConfig = {
|
|
33263
33072
|
size: 'small',
|
|
33264
33073
|
needPageHeader: false,
|
|
@@ -33267,7 +33076,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33267
33076
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33268
33077
|
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) {
|
|
33269
33078
|
return v.key || v;
|
|
33270
|
-
})) || (props === null || props === void 0 ? void 0 : (_props$
|
|
33079
|
+
})) || (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))
|
|
33271
33080
|
} : false,
|
|
33272
33081
|
remoteDataSource: remoteDataSource,
|
|
33273
33082
|
fields: tableState.fields,
|
|
@@ -33275,8 +33084,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33275
33084
|
rowKey: rowKey,
|
|
33276
33085
|
tableProps: !isView && {
|
|
33277
33086
|
rowClassName: function rowClassName(record) {
|
|
33278
|
-
var _props$
|
|
33279
|
-
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$
|
|
33087
|
+
var _props$ctx1, _props$value3, _props$ctx10, _props$ctx10$form;
|
|
33088
|
+
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' : '';
|
|
33280
33089
|
},
|
|
33281
33090
|
onRow: function onRow(record) {
|
|
33282
33091
|
return {
|
|
@@ -33321,10 +33130,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33321
33130
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
33322
33131
|
type: "default",
|
|
33323
33132
|
onClick: function onClick() {
|
|
33324
|
-
var _queryTableRef$
|
|
33133
|
+
var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
|
|
33325
33134
|
props.onCancel();
|
|
33326
33135
|
//@ts-ignore
|
|
33327
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33136
|
+
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();
|
|
33328
33137
|
}
|
|
33329
33138
|
}, "\u53D6\u6D88"))));
|
|
33330
33139
|
});
|
|
@@ -33548,19 +33357,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33548
33357
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33549
33358
|
handSource = _useState2[0],
|
|
33550
33359
|
setHandSource = _useState2[1];
|
|
33551
|
-
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
33360
|
+
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33552
33361
|
var resData, data;
|
|
33553
|
-
return
|
|
33554
|
-
while (1) switch (_context.
|
|
33362
|
+
return _regenerator().w(function (_context) {
|
|
33363
|
+
while (1) switch (_context.n) {
|
|
33555
33364
|
case 0:
|
|
33556
33365
|
if (!(!source && initRequestSource)) {
|
|
33557
|
-
_context.
|
|
33366
|
+
_context.n = 2;
|
|
33558
33367
|
break;
|
|
33559
33368
|
}
|
|
33560
|
-
_context.
|
|
33369
|
+
_context.n = 1;
|
|
33561
33370
|
return initRequestSource();
|
|
33562
|
-
case
|
|
33563
|
-
resData = _context.
|
|
33371
|
+
case 1:
|
|
33372
|
+
resData = _context.v;
|
|
33564
33373
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
33565
33374
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
33566
33375
|
label: item.text,
|
|
@@ -33568,9 +33377,8 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33568
33377
|
});
|
|
33569
33378
|
})) || [];
|
|
33570
33379
|
setHandSource(data);
|
|
33571
|
-
case
|
|
33572
|
-
|
|
33573
|
-
return _context.stop();
|
|
33380
|
+
case 2:
|
|
33381
|
+
return _context.a(2);
|
|
33574
33382
|
}
|
|
33575
33383
|
}, _callee);
|
|
33576
33384
|
})), []);
|
|
@@ -33700,20 +33508,17 @@ function getRegularThresholdRange(_x) {
|
|
|
33700
33508
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
33701
33509
|
}
|
|
33702
33510
|
function _getRegularThresholdRange() {
|
|
33703
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
33704
|
-
return
|
|
33705
|
-
while (1) switch (_context.
|
|
33511
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
33512
|
+
return _regenerator().w(function (_context) {
|
|
33513
|
+
while (1) switch (_context.n) {
|
|
33706
33514
|
case 0:
|
|
33707
|
-
return _context.
|
|
33515
|
+
return _context.a(2, requestUtil({
|
|
33708
33516
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
33709
33517
|
method: 'POST',
|
|
33710
33518
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
33711
33519
|
queryIdentify: undefined
|
|
33712
33520
|
})
|
|
33713
33521
|
}));
|
|
33714
|
-
case 1:
|
|
33715
|
-
case "end":
|
|
33716
|
-
return _context.stop();
|
|
33717
33522
|
}
|
|
33718
33523
|
}, _callee);
|
|
33719
33524
|
}));
|
|
@@ -33854,24 +33659,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33854
33659
|
};
|
|
33855
33660
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
33856
33661
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
33857
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33662
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
33858
33663
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
33859
|
-
return
|
|
33860
|
-
while (1) switch (_context.
|
|
33664
|
+
return _regenerator().w(function (_context) {
|
|
33665
|
+
while (1) switch (_context.n) {
|
|
33861
33666
|
case 0:
|
|
33862
33667
|
if (queryIdentify) {
|
|
33863
|
-
_context.
|
|
33668
|
+
_context.n = 1;
|
|
33864
33669
|
break;
|
|
33865
33670
|
}
|
|
33866
|
-
return _context.
|
|
33867
|
-
case
|
|
33671
|
+
return _context.a(2);
|
|
33672
|
+
case 1:
|
|
33868
33673
|
thresholdQuery = _this.state.thresholdQuery;
|
|
33869
33674
|
extraRequestUrl = '';
|
|
33870
33675
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
33871
33676
|
if (!queryIdentityInfo.find(function (item) {
|
|
33872
33677
|
return item.identity == propertyCode;
|
|
33873
33678
|
})) {
|
|
33874
|
-
_context.
|
|
33679
|
+
_context.n = 3;
|
|
33875
33680
|
break;
|
|
33876
33681
|
}
|
|
33877
33682
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -33885,15 +33690,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33885
33690
|
if (!needQueryList.some(function (item) {
|
|
33886
33691
|
return !querParams[item] || !querParams[item].length;
|
|
33887
33692
|
})) {
|
|
33888
|
-
_context.
|
|
33693
|
+
_context.n = 2;
|
|
33889
33694
|
break;
|
|
33890
33695
|
}
|
|
33891
|
-
return _context.
|
|
33892
|
-
case
|
|
33696
|
+
return _context.a(2);
|
|
33697
|
+
case 2:
|
|
33893
33698
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
33894
33699
|
return item.identity == propertyCode;
|
|
33895
33700
|
}).requestUrl || '';
|
|
33896
|
-
case
|
|
33701
|
+
case 3:
|
|
33897
33702
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
33898
33703
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
33899
33704
|
querParams = {
|
|
@@ -33904,7 +33709,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33904
33709
|
// querParams = { dictCode: queryIdentify }
|
|
33905
33710
|
}
|
|
33906
33711
|
if (!extraRequestUrl) {
|
|
33907
|
-
_context.
|
|
33712
|
+
_context.n = 4;
|
|
33908
33713
|
break;
|
|
33909
33714
|
}
|
|
33910
33715
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -33943,43 +33748,42 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33943
33748
|
return handleData;
|
|
33944
33749
|
}
|
|
33945
33750
|
});
|
|
33946
|
-
_context.
|
|
33751
|
+
_context.n = 8;
|
|
33947
33752
|
break;
|
|
33948
|
-
case
|
|
33753
|
+
case 4:
|
|
33949
33754
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
33950
|
-
_context.
|
|
33755
|
+
_context.n = 5;
|
|
33951
33756
|
break;
|
|
33952
33757
|
}
|
|
33953
33758
|
_this.setState({
|
|
33954
33759
|
thresholdList: queryIdentify
|
|
33955
33760
|
});
|
|
33956
|
-
_context.
|
|
33761
|
+
_context.n = 8;
|
|
33957
33762
|
break;
|
|
33958
|
-
case
|
|
33763
|
+
case 5:
|
|
33959
33764
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
33960
|
-
_context.
|
|
33765
|
+
_context.n = 6;
|
|
33961
33766
|
break;
|
|
33962
33767
|
}
|
|
33963
33768
|
// TODO待处理
|
|
33964
33769
|
_this.setState({
|
|
33965
33770
|
thresholdList: []
|
|
33966
33771
|
});
|
|
33967
|
-
_context.
|
|
33772
|
+
_context.n = 8;
|
|
33968
33773
|
break;
|
|
33969
|
-
case
|
|
33774
|
+
case 6:
|
|
33970
33775
|
querParams.queryIdentify = queryIdentify;
|
|
33971
|
-
_context.
|
|
33776
|
+
_context.n = 7;
|
|
33972
33777
|
return getRegularThresholdRange(querParams);
|
|
33973
|
-
case
|
|
33974
|
-
res = _context.
|
|
33778
|
+
case 7:
|
|
33779
|
+
res = _context.v;
|
|
33975
33780
|
if (handleError(res)) {
|
|
33976
33781
|
_this.setState({
|
|
33977
33782
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
33978
33783
|
});
|
|
33979
33784
|
}
|
|
33980
|
-
case
|
|
33981
|
-
|
|
33982
|
-
return _context.stop();
|
|
33785
|
+
case 8:
|
|
33786
|
+
return _context.a(2);
|
|
33983
33787
|
}
|
|
33984
33788
|
}, _callee);
|
|
33985
33789
|
}));
|
|
@@ -34811,11 +34615,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34811
34615
|
isAll: true,
|
|
34812
34616
|
needNameAndCode: true,
|
|
34813
34617
|
notChangeOnSelect: true,
|
|
34814
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34815
|
-
return
|
|
34816
|
-
while (1) switch (_context2.
|
|
34618
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
34619
|
+
return _regenerator().w(function (_context2) {
|
|
34620
|
+
while (1) switch (_context2.n) {
|
|
34817
34621
|
case 0:
|
|
34818
|
-
_context2.
|
|
34622
|
+
_context2.n = 1;
|
|
34819
34623
|
return bssula.request({
|
|
34820
34624
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34821
34625
|
method: 'get',
|
|
@@ -34832,11 +34636,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34832
34636
|
return handleData;
|
|
34833
34637
|
}
|
|
34834
34638
|
});
|
|
34835
|
-
case
|
|
34836
|
-
return _context2.
|
|
34837
|
-
case 3:
|
|
34838
|
-
case "end":
|
|
34839
|
-
return _context2.stop();
|
|
34639
|
+
case 1:
|
|
34640
|
+
return _context2.a(2, _context2.v);
|
|
34840
34641
|
}
|
|
34841
34642
|
}, _callee2);
|
|
34842
34643
|
})),
|
|
@@ -34860,11 +34661,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34860
34661
|
isAll: true,
|
|
34861
34662
|
needNameAndCode: true,
|
|
34862
34663
|
notChangeOnSelect: true,
|
|
34863
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34864
|
-
return
|
|
34865
|
-
while (1) switch (_context3.
|
|
34664
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
34665
|
+
return _regenerator().w(function (_context3) {
|
|
34666
|
+
while (1) switch (_context3.n) {
|
|
34866
34667
|
case 0:
|
|
34867
|
-
_context3.
|
|
34668
|
+
_context3.n = 1;
|
|
34868
34669
|
return bssula.request({
|
|
34869
34670
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34870
34671
|
method: 'get',
|
|
@@ -34881,11 +34682,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34881
34682
|
return handleData;
|
|
34882
34683
|
}
|
|
34883
34684
|
});
|
|
34884
|
-
case
|
|
34885
|
-
return _context3.
|
|
34886
|
-
case 3:
|
|
34887
|
-
case "end":
|
|
34888
|
-
return _context3.stop();
|
|
34685
|
+
case 1:
|
|
34686
|
+
return _context3.a(2, _context3.v);
|
|
34889
34687
|
}
|
|
34890
34688
|
}, _callee3);
|
|
34891
34689
|
})),
|
|
@@ -34911,11 +34709,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34911
34709
|
isAll: true,
|
|
34912
34710
|
needNameAndCode: true,
|
|
34913
34711
|
notChangeOnSelect: true,
|
|
34914
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34915
|
-
return
|
|
34916
|
-
while (1) switch (_context4.
|
|
34712
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
34713
|
+
return _regenerator().w(function (_context4) {
|
|
34714
|
+
while (1) switch (_context4.n) {
|
|
34917
34715
|
case 0:
|
|
34918
|
-
_context4.
|
|
34716
|
+
_context4.n = 1;
|
|
34919
34717
|
return bssula.request({
|
|
34920
34718
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34921
34719
|
method: 'get',
|
|
@@ -34932,11 +34730,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34932
34730
|
return handleData;
|
|
34933
34731
|
}
|
|
34934
34732
|
});
|
|
34935
|
-
case
|
|
34936
|
-
return _context4.
|
|
34937
|
-
case 3:
|
|
34938
|
-
case "end":
|
|
34939
|
-
return _context4.stop();
|
|
34733
|
+
case 1:
|
|
34734
|
+
return _context4.a(2, _context4.v);
|
|
34940
34735
|
}
|
|
34941
34736
|
}, _callee4);
|
|
34942
34737
|
})),
|
|
@@ -35623,8 +35418,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35623
35418
|
}
|
|
35624
35419
|
}));
|
|
35625
35420
|
} else {
|
|
35626
|
-
var
|
|
35627
|
-
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((
|
|
35421
|
+
var _values0;
|
|
35422
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
|
|
35628
35423
|
return {
|
|
35629
35424
|
key: s,
|
|
35630
35425
|
label: valueNames[vIndex],
|
|
@@ -35902,8 +35697,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35902
35697
|
}
|
|
35903
35698
|
}));
|
|
35904
35699
|
} else {
|
|
35905
|
-
var
|
|
35906
|
-
var
|
|
35700
|
+
var _values1;
|
|
35701
|
+
var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
|
|
35907
35702
|
return {
|
|
35908
35703
|
key: s,
|
|
35909
35704
|
label: valueNames[vIndex],
|
|
@@ -35925,7 +35720,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35925
35720
|
} : {}),
|
|
35926
35721
|
disabled: disabled,
|
|
35927
35722
|
labelInValue: true,
|
|
35928
|
-
value:
|
|
35723
|
+
value: _currentValue0,
|
|
35929
35724
|
requestConfig: {
|
|
35930
35725
|
filterInit: 'qp-code-in'
|
|
35931
35726
|
},
|
|
@@ -36018,8 +35813,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36018
35813
|
}
|
|
36019
35814
|
}));
|
|
36020
35815
|
} else {
|
|
36021
|
-
var
|
|
36022
|
-
var
|
|
35816
|
+
var _values10;
|
|
35817
|
+
var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
36023
35818
|
return {
|
|
36024
35819
|
key: s,
|
|
36025
35820
|
label: valueNames[vIndex],
|
|
@@ -36041,7 +35836,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36041
35836
|
} : {}),
|
|
36042
35837
|
disabled: disabled,
|
|
36043
35838
|
labelInValue: true,
|
|
36044
|
-
value:
|
|
35839
|
+
value: _currentValue1,
|
|
36045
35840
|
requestConfig: {
|
|
36046
35841
|
filterInit: 'qp-code-in'
|
|
36047
35842
|
},
|
|
@@ -36134,8 +35929,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36134
35929
|
}
|
|
36135
35930
|
}));
|
|
36136
35931
|
} else {
|
|
36137
|
-
var
|
|
36138
|
-
var
|
|
35932
|
+
var _values11;
|
|
35933
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
36139
35934
|
return {
|
|
36140
35935
|
key: s,
|
|
36141
35936
|
label: valueNames[vIndex],
|
|
@@ -36157,7 +35952,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36157
35952
|
} : {}),
|
|
36158
35953
|
disabled: disabled,
|
|
36159
35954
|
labelInValue: true,
|
|
36160
|
-
value:
|
|
35955
|
+
value: _currentValue10,
|
|
36161
35956
|
requestConfig: {
|
|
36162
35957
|
filterInit: 'qp-brandCode-in'
|
|
36163
35958
|
},
|
|
@@ -36348,8 +36143,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36348
36143
|
}
|
|
36349
36144
|
}));
|
|
36350
36145
|
} else {
|
|
36351
|
-
var
|
|
36352
|
-
var
|
|
36146
|
+
var _values12;
|
|
36147
|
+
var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
36353
36148
|
return {
|
|
36354
36149
|
key: s,
|
|
36355
36150
|
label: valueNames[vIndex]
|
|
@@ -36377,7 +36172,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36377
36172
|
isSearchForm: true,
|
|
36378
36173
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36379
36174
|
disabled: disabled,
|
|
36380
|
-
value:
|
|
36175
|
+
value: _currentValue11,
|
|
36381
36176
|
onChange: function onChange(value, sourceList) {
|
|
36382
36177
|
if (dataInputBusinessType === 12) {
|
|
36383
36178
|
var _value$map3, _sourceList$filter3;
|
|
@@ -36697,9 +36492,9 @@ var App$1 = function App(_ref) {
|
|
|
36697
36492
|
UpdateState(res);
|
|
36698
36493
|
};
|
|
36699
36494
|
var _useState9 = React$1.useState(false),
|
|
36700
|
-
|
|
36701
|
-
isModalVisible =
|
|
36702
|
-
setIsModalVisible =
|
|
36495
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
36496
|
+
isModalVisible = _useState0[0],
|
|
36497
|
+
setIsModalVisible = _useState0[1];
|
|
36703
36498
|
var showModal = function showModal() {
|
|
36704
36499
|
setIsModalVisible(true);
|
|
36705
36500
|
};
|
|
@@ -37180,27 +36975,26 @@ function RenderCompItem(props) {
|
|
|
37180
36975
|
dictData = _useState2[0],
|
|
37181
36976
|
setDictData = _useState2[1];
|
|
37182
36977
|
var getDictData = /*#__PURE__*/function () {
|
|
37183
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
36978
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
37184
36979
|
var _data$map;
|
|
37185
36980
|
var data;
|
|
37186
|
-
return
|
|
37187
|
-
while (1) switch (_context.
|
|
36981
|
+
return _regenerator().w(function (_context) {
|
|
36982
|
+
while (1) switch (_context.n) {
|
|
37188
36983
|
case 0:
|
|
37189
|
-
_context.
|
|
36984
|
+
_context.n = 1;
|
|
37190
36985
|
return bssula.request({
|
|
37191
36986
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
37192
36987
|
});
|
|
37193
|
-
case
|
|
37194
|
-
data = _context.
|
|
36988
|
+
case 1:
|
|
36989
|
+
data = _context.v;
|
|
37195
36990
|
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) {
|
|
37196
36991
|
return {
|
|
37197
36992
|
text: item.dictItemName,
|
|
37198
36993
|
value: item.dictItemCode
|
|
37199
36994
|
};
|
|
37200
36995
|
}));
|
|
37201
|
-
case
|
|
37202
|
-
|
|
37203
|
-
return _context.stop();
|
|
36996
|
+
case 2:
|
|
36997
|
+
return _context.a(2);
|
|
37204
36998
|
}
|
|
37205
36999
|
}, _callee);
|
|
37206
37000
|
}));
|
|
@@ -37441,11 +37235,11 @@ function RenderCompItem(props) {
|
|
|
37441
37235
|
needNameAndCode: true,
|
|
37442
37236
|
notChangeOnSelect: true,
|
|
37443
37237
|
initRequestSource: function () {
|
|
37444
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
37445
|
-
return
|
|
37446
|
-
while (1) switch (_context2.
|
|
37238
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
37239
|
+
return _regenerator().w(function (_context2) {
|
|
37240
|
+
while (1) switch (_context2.n) {
|
|
37447
37241
|
case 0:
|
|
37448
|
-
_context2.
|
|
37242
|
+
_context2.n = 1;
|
|
37449
37243
|
return bssula.request({
|
|
37450
37244
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
37451
37245
|
method: 'get',
|
|
@@ -37463,11 +37257,8 @@ function RenderCompItem(props) {
|
|
|
37463
37257
|
return handleData;
|
|
37464
37258
|
}
|
|
37465
37259
|
});
|
|
37466
|
-
case
|
|
37467
|
-
return _context2.
|
|
37468
|
-
case 3:
|
|
37469
|
-
case "end":
|
|
37470
|
-
return _context2.stop();
|
|
37260
|
+
case 1:
|
|
37261
|
+
return _context2.a(2, _context2.v);
|
|
37471
37262
|
}
|
|
37472
37263
|
}, _callee2);
|
|
37473
37264
|
}));
|
|
@@ -39517,13 +39308,13 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
39517
39308
|
ruleTypeData = _useState8[0],
|
|
39518
39309
|
setRuleTypeData = _useState8[1];
|
|
39519
39310
|
var _useState9 = React$1.useState([]),
|
|
39520
|
-
|
|
39521
|
-
ruleReturnConfig =
|
|
39522
|
-
setRuleReturnConfig =
|
|
39523
|
-
var
|
|
39524
|
-
|
|
39525
|
-
templateData =
|
|
39526
|
-
setTemplateData =
|
|
39311
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
39312
|
+
ruleReturnConfig = _useState0[0],
|
|
39313
|
+
setRuleReturnConfig = _useState0[1];
|
|
39314
|
+
var _useState1 = React$1.useState({}),
|
|
39315
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
39316
|
+
templateData = _useState10[0],
|
|
39317
|
+
setTemplateData = _useState10[1];
|
|
39527
39318
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
39528
39319
|
bssula.request({
|
|
39529
39320
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -39859,25 +39650,25 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
39859
39650
|
regularDataList = _useState8[0],
|
|
39860
39651
|
setRegularDataList = _useState8[1];
|
|
39861
39652
|
var _useState9 = React$1.useState([]),
|
|
39862
|
-
|
|
39863
|
-
baseRuleDetailList =
|
|
39864
|
-
setBaseRuleDetailList =
|
|
39865
|
-
var
|
|
39653
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
39654
|
+
baseRuleDetailList = _useState0[0],
|
|
39655
|
+
setBaseRuleDetailList = _useState0[1]; // 规则实例详情集合
|
|
39656
|
+
var _useState1 = React$1.useState([]),
|
|
39657
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
39658
|
+
systemVariableList = _useState10[0],
|
|
39659
|
+
setSystemVariableList = _useState10[1];
|
|
39660
|
+
var _useState11 = React$1.useState(false),
|
|
39866
39661
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
39867
|
-
|
|
39868
|
-
|
|
39662
|
+
isGetDefRuleDataRes = _useState12[0],
|
|
39663
|
+
setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
39869
39664
|
var _useState13 = React$1.useState(false),
|
|
39870
39665
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
39871
|
-
|
|
39872
|
-
|
|
39666
|
+
isGetRuleDataRes = _useState14[0],
|
|
39667
|
+
setIsGetRuleDataRes = _useState14[1];
|
|
39873
39668
|
var _useState15 = React$1.useState(false),
|
|
39874
39669
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
39875
|
-
|
|
39876
|
-
|
|
39877
|
-
var _useState17 = React$1.useState(false),
|
|
39878
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
39879
|
-
groupOtherPriorityList = _useState18[0],
|
|
39880
|
-
setGroupOtherPriorityList = _useState18[1];
|
|
39670
|
+
groupOtherPriorityList = _useState16[0],
|
|
39671
|
+
setGroupOtherPriorityList = _useState16[1];
|
|
39881
39672
|
var baseRuleRef = React$1.useRef();
|
|
39882
39673
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
39883
39674
|
// 查询规则组下所有规则实例
|
|
@@ -40201,6 +39992,85 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
40201
39992
|
}, children));
|
|
40202
39993
|
};
|
|
40203
39994
|
|
|
39995
|
+
//操作日志
|
|
39996
|
+
var SystemLog = function SystemLog(_ref) {
|
|
39997
|
+
var modeType = _ref.modeType,
|
|
39998
|
+
code = _ref.code,
|
|
39999
|
+
containerName = _ref.containerName,
|
|
40000
|
+
_ref$renderLogRef = _ref.renderLogRef,
|
|
40001
|
+
renderLogRef = _ref$renderLogRef === void 0 ? {} : _ref$renderLogRef,
|
|
40002
|
+
_ref$extraParams = _ref.extraParams,
|
|
40003
|
+
extraParams = _ref$extraParams === void 0 ? {} : _ref$extraParams;
|
|
40004
|
+
return _objectSpread2(_objectSpread2({}, formContainerAndItemLayout('table', '操作日志', containerName)), {}, {
|
|
40005
|
+
initialVisible: modeType != 'create',
|
|
40006
|
+
fields: [{
|
|
40007
|
+
name: 'table',
|
|
40008
|
+
label: false,
|
|
40009
|
+
itemLayout: {
|
|
40010
|
+
span: 24,
|
|
40011
|
+
labelCol: {
|
|
40012
|
+
span: 0
|
|
40013
|
+
},
|
|
40014
|
+
wrapperCol: {
|
|
40015
|
+
span: 24
|
|
40016
|
+
}
|
|
40017
|
+
},
|
|
40018
|
+
field: function field(ctx) {
|
|
40019
|
+
return code && /*#__PURE__*/React__default['default'].createElement(bssula.Table, {
|
|
40020
|
+
remoteDataSource: {
|
|
40021
|
+
url: "/oms-ops/logInfo?qp-businessCode-eq=".concat(code),
|
|
40022
|
+
convertParams: function convertParams(_ref2) {
|
|
40023
|
+
var params = _ref2.params;
|
|
40024
|
+
return _objectSpread2({
|
|
40025
|
+
pageSize: params.pageSize,
|
|
40026
|
+
currentPage: params.current
|
|
40027
|
+
}, extraParams);
|
|
40028
|
+
},
|
|
40029
|
+
converter: function converter(_ref3) {
|
|
40030
|
+
var data = _ref3.data;
|
|
40031
|
+
return _objectSpread2({}, handleConvertResponse(data.list, data.total || data.totalCount));
|
|
40032
|
+
}
|
|
40033
|
+
},
|
|
40034
|
+
columns: [{
|
|
40035
|
+
title: '操作人',
|
|
40036
|
+
dataIndex: 'handlerName'
|
|
40037
|
+
}, {
|
|
40038
|
+
title: '操作名称',
|
|
40039
|
+
dataIndex: 'handlerType'
|
|
40040
|
+
}, {
|
|
40041
|
+
title: '操作时间',
|
|
40042
|
+
dataIndex: 'handlerTime',
|
|
40043
|
+
render: function render(_ref4) {
|
|
40044
|
+
var text = _ref4.text;
|
|
40045
|
+
return handleCommonTimeRender$1(text);
|
|
40046
|
+
}
|
|
40047
|
+
}, {
|
|
40048
|
+
title: '操作内容',
|
|
40049
|
+
dataIndex: 'logcontent'
|
|
40050
|
+
}],
|
|
40051
|
+
style: {
|
|
40052
|
+
width: '100%',
|
|
40053
|
+
marginTop: '-16px',
|
|
40054
|
+
padding: '0px'
|
|
40055
|
+
},
|
|
40056
|
+
rowKey: "id",
|
|
40057
|
+
scroll: {
|
|
40058
|
+
x: 'max-content'
|
|
40059
|
+
},
|
|
40060
|
+
pagination: {
|
|
40061
|
+
showTotal: function showTotal(total) {
|
|
40062
|
+
return "\u5171 ".concat(total, " \u6761");
|
|
40063
|
+
},
|
|
40064
|
+
showQuickJumper: true,
|
|
40065
|
+
hideOnSinglePage: true
|
|
40066
|
+
},
|
|
40067
|
+
ref: renderLogRef
|
|
40068
|
+
});
|
|
40069
|
+
}
|
|
40070
|
+
}]
|
|
40071
|
+
});
|
|
40072
|
+
};
|
|
40073
|
+
|
|
40204
40074
|
exports.AddSelect = AddSelect;
|
|
40205
40075
|
exports.AddSkcSelect = AddSkcSelect;
|
|
40206
40076
|
exports.AddSkuSelect = AddSkuSelect;
|
|
@@ -40239,6 +40109,7 @@ exports.SearchSelect = SearchSelect;
|
|
|
40239
40109
|
exports.Section = Section;
|
|
40240
40110
|
exports.StateFlow = index$2;
|
|
40241
40111
|
exports.SulaColumnSettingTable = ColumnSettingSulaTable;
|
|
40112
|
+
exports.SystemLog = SystemLog;
|
|
40242
40113
|
exports.TableColumnSetting = TableColumnSetting;
|
|
40243
40114
|
exports.TreeSearchSelect = TreeSearchSelect;
|
|
40244
40115
|
exports.authFunc = authFunc;
|
|
@@ -40248,6 +40119,7 @@ exports.coverToParallel = _coverToParallel;
|
|
|
40248
40119
|
exports.createUniqID = createUniqID;
|
|
40249
40120
|
exports.downloadExcel = downloadExcel;
|
|
40250
40121
|
exports.ergodicMenuRoutes = ergodicMenuRoutes;
|
|
40122
|
+
exports.formContainerAndItemLayout = formContainerAndItemLayout;
|
|
40251
40123
|
exports.formatter = _formatter;
|
|
40252
40124
|
exports.getAccountID = getAccountID;
|
|
40253
40125
|
exports.getAccountId = getAccountId;
|