@bit-sun/business-component 4.2.0-alpha.6.8 → 4.2.0-alpha.7
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 +12 -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/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 +5 -5
- 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 +1383 -1151
- package/dist/index.js +1383 -1150
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +18 -19
- package/package.json +1 -1
- package/src/components/Business/BsSulaQueryTable/index.md +57 -4
- package/src/components/Business/BsSulaQueryTable/index.tsx +164 -7
- package/src/components/Business/BsSulaQueryTable/setting.tsx +6 -0
- package/src/components/Business/DetailPageWrapper/index.tsx +81 -1
- package/src/components/Business/DetailPageWrapper/readme.md +89 -0
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +45 -12
- package/src/components/Functional/AddSelect/index.tsx +92 -0
- package/src/components/Functional/DataValidation/index.tsx +22 -3
- package/src/components/Functional/SearchSelect/index.tsx +5 -2
- package/src/components/Solution/RuleComponent/RenderCompItem.tsx +9 -1
- package/src/components/Solution/RuleComponent/index.js +1 -0
- package/src/components/Solution/RuleComponent/ruleFiled.js +25 -1
- package/src/index.ts +4 -0
package/dist/index.js
CHANGED
|
@@ -211,8 +211,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
211
211
|
r,
|
|
212
212
|
i = _objectWithoutPropertiesLoose(e, t);
|
|
213
213
|
if (Object.getOwnPropertySymbols) {
|
|
214
|
-
var
|
|
215
|
-
for (r = 0; r <
|
|
214
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
215
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
216
216
|
}
|
|
217
217
|
return i;
|
|
218
218
|
}
|
|
@@ -220,7 +220,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
220
220
|
if (null == r) return {};
|
|
221
221
|
var t = {};
|
|
222
222
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
223
|
-
if (e.
|
|
223
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
224
224
|
t[n] = r[n];
|
|
225
225
|
}
|
|
226
226
|
return t;
|
|
@@ -230,306 +230,113 @@ function _possibleConstructorReturn(t, e) {
|
|
|
230
230
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
231
231
|
return _assertThisInitialized(t);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
233
|
+
function _regenerator() {
|
|
234
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
235
|
+
var e,
|
|
236
|
+
t,
|
|
237
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
238
|
+
n = r.iterator || "@@iterator",
|
|
239
|
+
o = r.toStringTag || "@@toStringTag";
|
|
240
|
+
function i(r, n, o, i) {
|
|
241
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
242
|
+
u = Object.create(c.prototype);
|
|
243
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
244
|
+
var i,
|
|
245
|
+
c,
|
|
246
|
+
u,
|
|
247
|
+
f = 0,
|
|
248
|
+
p = o || [],
|
|
249
|
+
y = !1,
|
|
250
|
+
G = {
|
|
251
|
+
p: 0,
|
|
252
|
+
n: 0,
|
|
253
|
+
v: e,
|
|
254
|
+
a: d,
|
|
255
|
+
f: d.bind(e, 4),
|
|
256
|
+
d: function (t, r) {
|
|
257
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
function d(r, n) {
|
|
261
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
262
|
+
var o,
|
|
263
|
+
i = p[t],
|
|
264
|
+
d = G.p,
|
|
265
|
+
l = i[2];
|
|
266
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
267
|
+
}
|
|
268
|
+
if (o || r > 1) return a;
|
|
269
|
+
throw y = !0, n;
|
|
270
|
+
}
|
|
271
|
+
return function (o, p, l) {
|
|
272
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
273
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
274
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
275
|
+
try {
|
|
276
|
+
if (f = 2, i) {
|
|
277
|
+
if (c || (o = "next"), t = i[o]) {
|
|
278
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
279
|
+
if (!t.done) return t;
|
|
280
|
+
u = t.value, c < 2 && (c = 0);
|
|
281
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
282
|
+
i = e;
|
|
283
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
284
|
+
} catch (t) {
|
|
285
|
+
i = e, c = 1, u = t;
|
|
286
|
+
} finally {
|
|
287
|
+
f = 1;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
return {
|
|
291
|
+
value: t,
|
|
292
|
+
done: y
|
|
293
|
+
};
|
|
281
294
|
};
|
|
282
|
-
}
|
|
295
|
+
}(r, o, i), !0), u;
|
|
283
296
|
}
|
|
284
|
-
|
|
285
|
-
var h = "suspendedStart",
|
|
286
|
-
l = "suspendedYield",
|
|
287
|
-
f = "executing",
|
|
288
|
-
s = "completed",
|
|
289
|
-
y = {};
|
|
297
|
+
var a = {};
|
|
290
298
|
function Generator() {}
|
|
291
299
|
function GeneratorFunction() {}
|
|
292
300
|
function GeneratorFunctionPrototype() {}
|
|
293
|
-
|
|
294
|
-
|
|
301
|
+
t = Object.getPrototypeOf;
|
|
302
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
303
|
+
return this;
|
|
304
|
+
}), t),
|
|
305
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
306
|
+
function f(e) {
|
|
307
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
308
|
+
}
|
|
309
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
295
310
|
return this;
|
|
296
|
-
})
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
300
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
301
|
-
function defineIteratorMethods(t) {
|
|
302
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
303
|
-
define(t, e, function (t) {
|
|
304
|
-
return this._invoke(e, t);
|
|
305
|
-
});
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
function AsyncIterator(t, e) {
|
|
309
|
-
function invoke(r, o, i, a) {
|
|
310
|
-
var c = tryCatch(t[r], t, o);
|
|
311
|
-
if ("throw" !== c.type) {
|
|
312
|
-
var u = c.arg,
|
|
313
|
-
h = u.value;
|
|
314
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
315
|
-
invoke("next", t, i, a);
|
|
316
|
-
}, function (t) {
|
|
317
|
-
invoke("throw", t, i, a);
|
|
318
|
-
}) : e.resolve(h).then(function (t) {
|
|
319
|
-
u.value = t, i(u);
|
|
320
|
-
}, function (t) {
|
|
321
|
-
return invoke("throw", t, i, a);
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
a(c.arg);
|
|
325
|
-
}
|
|
326
|
-
var r;
|
|
327
|
-
o(this, "_invoke", {
|
|
328
|
-
value: function (t, n) {
|
|
329
|
-
function callInvokeWithMethodAndArg() {
|
|
330
|
-
return new e(function (e, r) {
|
|
331
|
-
invoke(t, n, e, r);
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
335
|
-
}
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
function makeInvokeMethod(e, r, n) {
|
|
339
|
-
var o = h;
|
|
340
|
-
return function (i, a) {
|
|
341
|
-
if (o === f) throw Error("Generator is already running");
|
|
342
|
-
if (o === s) {
|
|
343
|
-
if ("throw" === i) throw a;
|
|
344
|
-
return {
|
|
345
|
-
value: t,
|
|
346
|
-
done: !0
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
for (n.method = i, n.arg = a;;) {
|
|
350
|
-
var c = n.delegate;
|
|
351
|
-
if (c) {
|
|
352
|
-
var u = maybeInvokeDelegate(c, n);
|
|
353
|
-
if (u) {
|
|
354
|
-
if (u === y) continue;
|
|
355
|
-
return u;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
359
|
-
if (o === h) throw o = s, n.arg;
|
|
360
|
-
n.dispatchException(n.arg);
|
|
361
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
362
|
-
o = f;
|
|
363
|
-
var p = tryCatch(e, r, n);
|
|
364
|
-
if ("normal" === p.type) {
|
|
365
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
366
|
-
return {
|
|
367
|
-
value: p.arg,
|
|
368
|
-
done: n.done
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
372
|
-
}
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
function maybeInvokeDelegate(e, r) {
|
|
376
|
-
var n = r.method,
|
|
377
|
-
o = e.iterator[n];
|
|
378
|
-
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
379
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
380
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
381
|
-
var a = i.arg;
|
|
382
|
-
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
383
|
-
}
|
|
384
|
-
function pushTryEntry(t) {
|
|
385
|
-
var e = {
|
|
386
|
-
tryLoc: t[0]
|
|
387
|
-
};
|
|
388
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
389
|
-
}
|
|
390
|
-
function resetTryEntry(t) {
|
|
391
|
-
var e = t.completion || {};
|
|
392
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
393
|
-
}
|
|
394
|
-
function Context(t) {
|
|
395
|
-
this.tryEntries = [{
|
|
396
|
-
tryLoc: "root"
|
|
397
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
398
|
-
}
|
|
399
|
-
function values(e) {
|
|
400
|
-
if (e || "" === e) {
|
|
401
|
-
var r = e[a];
|
|
402
|
-
if (r) return r.call(e);
|
|
403
|
-
if ("function" == typeof e.next) return e;
|
|
404
|
-
if (!isNaN(e.length)) {
|
|
405
|
-
var o = -1,
|
|
406
|
-
i = function next() {
|
|
407
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
408
|
-
return next.value = t, next.done = !0, next;
|
|
409
|
-
};
|
|
410
|
-
return i.next = i;
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
414
|
-
}
|
|
415
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
416
|
-
value: GeneratorFunctionPrototype,
|
|
417
|
-
configurable: !0
|
|
418
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
419
|
-
value: GeneratorFunction,
|
|
420
|
-
configurable: !0
|
|
421
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
422
|
-
var e = "function" == typeof t && t.constructor;
|
|
423
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
424
|
-
}, e.mark = function (t) {
|
|
425
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
426
|
-
}, e.awrap = function (t) {
|
|
311
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
312
|
+
return "[object Generator]";
|
|
313
|
+
}), (_regenerator = function () {
|
|
427
314
|
return {
|
|
428
|
-
|
|
315
|
+
w: i,
|
|
316
|
+
m: f
|
|
429
317
|
};
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
r = [];
|
|
445
|
-
for (var n in e) r.push(n);
|
|
446
|
-
return r.reverse(), function next() {
|
|
447
|
-
for (; r.length;) {
|
|
448
|
-
var t = r.pop();
|
|
449
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
450
|
-
}
|
|
451
|
-
return next.done = !0, next;
|
|
452
|
-
};
|
|
453
|
-
}, e.values = values, Context.prototype = {
|
|
454
|
-
constructor: Context,
|
|
455
|
-
reset: function (e) {
|
|
456
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
457
|
-
},
|
|
458
|
-
stop: function () {
|
|
459
|
-
this.done = !0;
|
|
460
|
-
var t = this.tryEntries[0].completion;
|
|
461
|
-
if ("throw" === t.type) throw t.arg;
|
|
462
|
-
return this.rval;
|
|
463
|
-
},
|
|
464
|
-
dispatchException: function (e) {
|
|
465
|
-
if (this.done) throw e;
|
|
466
|
-
var r = this;
|
|
467
|
-
function handle(n, o) {
|
|
468
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
469
|
-
}
|
|
470
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
471
|
-
var i = this.tryEntries[o],
|
|
472
|
-
a = i.completion;
|
|
473
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
474
|
-
if (i.tryLoc <= this.prev) {
|
|
475
|
-
var c = n.call(i, "catchLoc"),
|
|
476
|
-
u = n.call(i, "finallyLoc");
|
|
477
|
-
if (c && u) {
|
|
478
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
479
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
480
|
-
} else if (c) {
|
|
481
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
482
|
-
} else {
|
|
483
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
484
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
},
|
|
489
|
-
abrupt: function (t, e) {
|
|
490
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
491
|
-
var o = this.tryEntries[r];
|
|
492
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
493
|
-
var i = o;
|
|
494
|
-
break;
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
498
|
-
var a = i ? i.completion : {};
|
|
499
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
500
|
-
},
|
|
501
|
-
complete: function (t, e) {
|
|
502
|
-
if ("throw" === t.type) throw t.arg;
|
|
503
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
504
|
-
},
|
|
505
|
-
finish: function (t) {
|
|
506
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
507
|
-
var r = this.tryEntries[e];
|
|
508
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
509
|
-
}
|
|
510
|
-
},
|
|
511
|
-
catch: function (t) {
|
|
512
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
513
|
-
var r = this.tryEntries[e];
|
|
514
|
-
if (r.tryLoc === t) {
|
|
515
|
-
var n = r.completion;
|
|
516
|
-
if ("throw" === n.type) {
|
|
517
|
-
var o = n.arg;
|
|
518
|
-
resetTryEntry(r);
|
|
519
|
-
}
|
|
520
|
-
return o;
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
throw Error("illegal catch attempt");
|
|
524
|
-
},
|
|
525
|
-
delegateYield: function (e, r, n) {
|
|
526
|
-
return this.delegate = {
|
|
527
|
-
iterator: values(e),
|
|
528
|
-
resultName: r,
|
|
529
|
-
nextLoc: n
|
|
530
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
318
|
+
})();
|
|
319
|
+
}
|
|
320
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
321
|
+
var i = Object.defineProperty;
|
|
322
|
+
try {
|
|
323
|
+
i({}, "", {});
|
|
324
|
+
} catch (e) {
|
|
325
|
+
i = 0;
|
|
326
|
+
}
|
|
327
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
328
|
+
function o(r, n) {
|
|
329
|
+
_regeneratorDefine(e, r, function (e) {
|
|
330
|
+
return this._invoke(r, n, e);
|
|
331
|
+
});
|
|
531
332
|
}
|
|
532
|
-
|
|
333
|
+
r ? i ? i(e, r, {
|
|
334
|
+
value: n,
|
|
335
|
+
enumerable: !t,
|
|
336
|
+
configurable: !t,
|
|
337
|
+
writable: !t
|
|
338
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
339
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
533
340
|
}
|
|
534
341
|
function _setPrototypeOf(t, e) {
|
|
535
342
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -1602,22 +1409,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1602
1409
|
// sheepMap是表头字段中英文映射
|
|
1603
1410
|
// sheetCount:表的数量,默认一张
|
|
1604
1411
|
var resolveFile = /*#__PURE__*/function () {
|
|
1605
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
1412
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file) {
|
|
1606
1413
|
var config,
|
|
1607
1414
|
data,
|
|
1608
1415
|
_args = arguments;
|
|
1609
|
-
return
|
|
1610
|
-
while (1) switch (_context.
|
|
1416
|
+
return _regenerator().w(function (_context) {
|
|
1417
|
+
while (1) switch (_context.n) {
|
|
1611
1418
|
case 0:
|
|
1612
1419
|
config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
|
|
1613
1420
|
sheetMap: [],
|
|
1614
1421
|
sheetCount: 1
|
|
1615
1422
|
};
|
|
1616
|
-
_context.
|
|
1423
|
+
_context.n = 1;
|
|
1617
1424
|
return analyseExcelToByte(file);
|
|
1618
|
-
case
|
|
1619
|
-
data = _context.
|
|
1620
|
-
return _context.
|
|
1425
|
+
case 1:
|
|
1426
|
+
data = _context.v;
|
|
1427
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
1621
1428
|
var workbook = XLSX.read(data, {
|
|
1622
1429
|
type: 'binary'
|
|
1623
1430
|
});
|
|
@@ -1629,9 +1436,6 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1629
1436
|
var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
|
|
1630
1437
|
resolve(outdata);
|
|
1631
1438
|
}));
|
|
1632
|
-
case 5:
|
|
1633
|
-
case "end":
|
|
1634
|
-
return _context.stop();
|
|
1635
1439
|
}
|
|
1636
1440
|
}, _callee);
|
|
1637
1441
|
}));
|
|
@@ -1641,41 +1445,40 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1641
1445
|
}();
|
|
1642
1446
|
//读取文件
|
|
1643
1447
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1644
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
1448
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1645
1449
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1646
|
-
return
|
|
1647
|
-
while (1) switch (_context2.
|
|
1450
|
+
return _regenerator().w(function (_context2) {
|
|
1451
|
+
while (1) switch (_context2.n) {
|
|
1648
1452
|
case 0:
|
|
1649
1453
|
_ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
|
|
1650
1454
|
if (!(Array.isArray(fileList) && fileList.length > 0)) {
|
|
1651
|
-
_context2.
|
|
1455
|
+
_context2.n = 3;
|
|
1652
1456
|
break;
|
|
1653
1457
|
}
|
|
1654
1458
|
nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
|
|
1655
|
-
_context2.
|
|
1459
|
+
_context2.n = 1;
|
|
1656
1460
|
return resolveFile(nowFile.originFileObj, {
|
|
1657
1461
|
sheetMap: fieldMappingReverse(sheetMap),
|
|
1658
1462
|
sheetCount: 1
|
|
1659
1463
|
});
|
|
1660
|
-
case
|
|
1661
|
-
data2 = _context2.
|
|
1464
|
+
case 1:
|
|
1465
|
+
data2 = _context2.v;
|
|
1662
1466
|
data = data2[0];
|
|
1663
1467
|
if (data.length) {
|
|
1664
|
-
_context2.
|
|
1468
|
+
_context2.n = 2;
|
|
1665
1469
|
break;
|
|
1666
1470
|
}
|
|
1667
1471
|
antd.message.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
|
|
1668
|
-
return _context2.
|
|
1669
|
-
case
|
|
1472
|
+
return _context2.a(2);
|
|
1473
|
+
case 2:
|
|
1670
1474
|
if (callback) callback(data);
|
|
1671
1475
|
!callback && antd.message.success("\u5BFC\u5165\u6210\u529F");
|
|
1672
|
-
return _context2.
|
|
1673
|
-
case
|
|
1476
|
+
return _context2.a(2, data);
|
|
1477
|
+
case 3:
|
|
1674
1478
|
antd.message.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
|
|
1675
|
-
return _context2.
|
|
1676
|
-
case
|
|
1677
|
-
|
|
1678
|
-
return _context2.stop();
|
|
1479
|
+
return _context2.a(2);
|
|
1480
|
+
case 4:
|
|
1481
|
+
return _context2.a(2);
|
|
1679
1482
|
}
|
|
1680
1483
|
}, _callee2);
|
|
1681
1484
|
}));
|
|
@@ -2627,17 +2430,14 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2627
2430
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2628
2431
|
};
|
|
2629
2432
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2630
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
2631
|
-
return
|
|
2632
|
-
while (1) switch (_context.
|
|
2433
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
|
|
2434
|
+
return _regenerator().w(function (_context) {
|
|
2435
|
+
while (1) switch (_context.n) {
|
|
2633
2436
|
case 0:
|
|
2634
|
-
return _context.
|
|
2437
|
+
return _context.a(2, Promise.resolve({
|
|
2635
2438
|
data: response,
|
|
2636
2439
|
status: response.status
|
|
2637
2440
|
}));
|
|
2638
|
-
case 1:
|
|
2639
|
-
case "end":
|
|
2640
|
-
return _context.stop();
|
|
2641
2441
|
}
|
|
2642
2442
|
}, _callee);
|
|
2643
2443
|
}));
|
|
@@ -3010,88 +2810,108 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3010
2810
|
data: luckysheet.transToCellData(newData)
|
|
3011
2811
|
});
|
|
3012
2812
|
};
|
|
3013
|
-
_this.resetData = function () {
|
|
2813
|
+
_this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
3014
2814
|
var _customerColumnsMappi;
|
|
3015
|
-
var _this$props
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt,
|
|
3023
|
-
customerColumnsMapping = _this$props.customerColumnsMapping;
|
|
3024
|
-
var resultData = _this.getData().filter(function (d) {
|
|
3025
|
-
return ___default['default'].compact(Object.values(d)).length;
|
|
3026
|
-
});
|
|
3027
|
-
var resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
|
|
3028
|
-
return !!(c === null || c === void 0 ? void 0 : c.name);
|
|
3029
|
-
})) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
|
|
3030
|
-
return c.name;
|
|
3031
|
-
}) : columns;
|
|
3032
|
-
// 处理业务参数
|
|
3033
|
-
var otherParams = {};
|
|
3034
|
-
if (isBrandAuth) {
|
|
3035
|
-
otherParams = {
|
|
3036
|
-
brandAuth: 'ctl-withAuth'
|
|
3037
|
-
};
|
|
3038
|
-
}
|
|
3039
|
-
requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
|
|
3040
|
-
columns: resultColumns,
|
|
3041
|
-
data: resultData,
|
|
3042
|
-
checkStockNum: isCheckStockNum
|
|
3043
|
-
})).then(function (result) {
|
|
3044
|
-
result = result.data;
|
|
3045
|
-
if (judgeIsRequestError(result)) {
|
|
3046
|
-
antd.message.error(result.msg);
|
|
3047
|
-
return;
|
|
3048
|
-
}
|
|
3049
|
-
var items = _this.state.items;
|
|
3050
|
-
var validIndex = items.length;
|
|
3051
|
-
var res = result.data;
|
|
3052
|
-
var sheetData = luckysheet.getSheetData();
|
|
3053
|
-
sheetData.map(function (item, index) {
|
|
3054
|
-
if (!res[index]) return item;
|
|
3055
|
-
var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
|
|
3056
|
-
return i === 'skuCode';
|
|
3057
|
-
});
|
|
3058
|
-
if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
|
|
3059
|
-
return i === 'skuCode';
|
|
3060
|
-
})) && item[changeVMIndex].v !== res[index].skuCode) {
|
|
3061
|
-
item[changeVMIndex].v = res[index].skuCode;
|
|
3062
|
-
item[changeVMIndex].m = res[index].skuCode;
|
|
3063
|
-
}
|
|
3064
|
-
if (res[index].flag) {
|
|
3065
|
-
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
3066
|
-
v: '通过',
|
|
3067
|
-
m: '通过',
|
|
3068
|
-
fc: 'green' //字体颜色为 "#990000"
|
|
3069
|
-
});
|
|
3070
|
-
} else {
|
|
3071
|
-
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
3072
|
-
v: res[index].checkResults,
|
|
3073
|
-
m: res[index].checkResults,
|
|
3074
|
-
fc: 'red' //字体颜色为 "#990000"
|
|
2815
|
+
var _this$props, validDataUrl, validDataParams, updateData, columns, isBrandAuth, _this$props$isCheckSt, isCheckStockNum, customerColumnsMapping, checkSharedValue, beforeCheckCallback, resultData, resultColumns, otherParams;
|
|
2816
|
+
return _regenerator().w(function (_context) {
|
|
2817
|
+
while (1) switch (_context.n) {
|
|
2818
|
+
case 0:
|
|
2819
|
+
_this$props = _this.props, validDataUrl = _this$props.validDataUrl, validDataParams = _this$props.validDataParams, updateData = _this$props.updateData, columns = _this$props.columns, isBrandAuth = _this$props.isBrandAuth, _this$props$isCheckSt = _this$props.isCheckStockNum, isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt, customerColumnsMapping = _this$props.customerColumnsMapping, checkSharedValue = _this$props.checkSharedValue, beforeCheckCallback = _this$props.beforeCheckCallback;
|
|
2820
|
+
resultData = _this.getData().filter(function (d) {
|
|
2821
|
+
return ___default['default'].compact(Object.values(d)).length;
|
|
3075
2822
|
});
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
2823
|
+
resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
|
|
2824
|
+
return !!(c === null || c === void 0 ? void 0 : c.name);
|
|
2825
|
+
})) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
|
|
2826
|
+
return c.name;
|
|
2827
|
+
}) : columns; // 处理业务参数
|
|
2828
|
+
otherParams = {};
|
|
2829
|
+
if (isBrandAuth) {
|
|
2830
|
+
otherParams = {
|
|
2831
|
+
brandAuth: 'ctl-withAuth'
|
|
2832
|
+
};
|
|
2833
|
+
}
|
|
2834
|
+
// 处理校验参数,隐藏校验参数(公用的部分)
|
|
2835
|
+
if (checkSharedValue) {
|
|
2836
|
+
resultData = resultData.map(function (d) {
|
|
2837
|
+
return _objectSpread2(_objectSpread2({}, d), checkSharedValue);
|
|
2838
|
+
});
|
|
2839
|
+
}
|
|
2840
|
+
// 调用回调函数
|
|
2841
|
+
if (!beforeCheckCallback) {
|
|
2842
|
+
_context.n = 2;
|
|
2843
|
+
break;
|
|
2844
|
+
}
|
|
2845
|
+
_context.n = 1;
|
|
2846
|
+
return beforeCheckCallback(resultData);
|
|
2847
|
+
case 1:
|
|
2848
|
+
resultData = _context.v;
|
|
2849
|
+
if (resultData) {
|
|
2850
|
+
_context.n = 2;
|
|
2851
|
+
break;
|
|
2852
|
+
}
|
|
2853
|
+
return _context.a(2);
|
|
2854
|
+
case 2:
|
|
2855
|
+
requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
|
|
2856
|
+
columns: resultColumns,
|
|
2857
|
+
data: resultData,
|
|
2858
|
+
checkStockNum: isCheckStockNum
|
|
2859
|
+
})).then(function (result) {
|
|
2860
|
+
result = result.data;
|
|
2861
|
+
if (judgeIsRequestError(result)) {
|
|
2862
|
+
antd.message.error(result.msg);
|
|
2863
|
+
return;
|
|
2864
|
+
}
|
|
2865
|
+
var items = _this.state.items;
|
|
2866
|
+
var validIndex = items.length;
|
|
2867
|
+
var res = result.data;
|
|
2868
|
+
var sheetData = luckysheet.getSheetData();
|
|
2869
|
+
sheetData.map(function (item, index) {
|
|
2870
|
+
if (!res[index]) return item;
|
|
2871
|
+
var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
|
|
2872
|
+
return i === 'skuCode';
|
|
2873
|
+
});
|
|
2874
|
+
if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
|
|
2875
|
+
return i === 'skuCode';
|
|
2876
|
+
})) && item[changeVMIndex].v !== res[index].skuCode) {
|
|
2877
|
+
item[changeVMIndex].v = res[index].skuCode;
|
|
2878
|
+
item[changeVMIndex].m = res[index].skuCode;
|
|
2879
|
+
}
|
|
2880
|
+
if (res[index].flag) {
|
|
2881
|
+
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
2882
|
+
v: '通过',
|
|
2883
|
+
m: '通过',
|
|
2884
|
+
fc: 'green' //字体颜色为 "#990000"
|
|
2885
|
+
});
|
|
2886
|
+
} else {
|
|
2887
|
+
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
2888
|
+
v: res[index].checkResults,
|
|
2889
|
+
m: res[index].checkResults,
|
|
2890
|
+
fc: 'red' //字体颜色为 "#990000"
|
|
2891
|
+
});
|
|
2892
|
+
}
|
|
2893
|
+
item[validIndex].ct = {
|
|
2894
|
+
fa: 'General',
|
|
2895
|
+
t: 'g'
|
|
2896
|
+
};
|
|
2897
|
+
});
|
|
2898
|
+
// sheetData.map((item, index) => {
|
|
2899
|
+
// luckysheet.setCellValue(index + 1, 4, 345)
|
|
2900
|
+
// })
|
|
2901
|
+
luckysheet.create(_this.setConfig(luckysheet.transToCellData(sheetData)));
|
|
2902
|
+
_this.setState({
|
|
2903
|
+
data: luckysheet.transToCellData(sheetData),
|
|
2904
|
+
errorListCheck: false,
|
|
2905
|
+
resultData: res
|
|
2906
|
+
});
|
|
2907
|
+
console.log(setExportData);
|
|
2908
|
+
setExportData([123123]);
|
|
2909
|
+
}).catch(function (err) {});
|
|
2910
|
+
case 3:
|
|
2911
|
+
return _context.a(2);
|
|
2912
|
+
}
|
|
2913
|
+
}, _callee);
|
|
2914
|
+
}));
|
|
3095
2915
|
_this.filterData = function (type) {
|
|
3096
2916
|
var _this$state = _this.state,
|
|
3097
2917
|
showErrorData = _this$state.showErrorData,
|
|
@@ -3248,8 +3068,8 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3248
3068
|
if (!(res === null || res === void 0 ? void 0 : res[index])) return item;
|
|
3249
3069
|
var rowItem = res[index];
|
|
3250
3070
|
item === null || item === void 0 ? void 0 : item.forEach(function (element, colIndex) {
|
|
3251
|
-
var
|
|
3252
|
-
var colKey = (
|
|
3071
|
+
var _ref5;
|
|
3072
|
+
var colKey = (_ref5 = Object.keys(rowItem) || []) === null || _ref5 === void 0 ? void 0 : _ref5[colIndex];
|
|
3253
3073
|
if (!(rowItem === null || rowItem === void 0 ? void 0 : rowItem[colKey])) return element;
|
|
3254
3074
|
element.m = rowItem[colKey];
|
|
3255
3075
|
element.v = rowItem[colKey];
|
|
@@ -3325,10 +3145,10 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3325
3145
|
notExcelImport = _this$props6.notExcelImport,
|
|
3326
3146
|
excelImportConfig = _this$props6.excelImportConfig,
|
|
3327
3147
|
getTemplate = _this$props6.getTemplate;
|
|
3328
|
-
var
|
|
3329
|
-
size =
|
|
3330
|
-
accept =
|
|
3331
|
-
suffixRule =
|
|
3148
|
+
var _ref6 = excelImportConfig || {},
|
|
3149
|
+
size = _ref6.size,
|
|
3150
|
+
accept = _ref6.accept,
|
|
3151
|
+
suffixRule = _ref6.suffixRule;
|
|
3332
3152
|
var totalSummary = this.getCount();
|
|
3333
3153
|
var sheetMap = this.getSheetMap();
|
|
3334
3154
|
var callBackFun = this.importExcelToLuckySheet;
|
|
@@ -3354,9 +3174,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3354
3174
|
var _Object$keys;
|
|
3355
3175
|
if (!(sheetMap && ((_Object$keys = Object.keys(sheetMap)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length))) return;
|
|
3356
3176
|
if (info.file.status !== 'uploading') {
|
|
3357
|
-
var
|
|
3358
|
-
file =
|
|
3359
|
-
fileList =
|
|
3177
|
+
var _ref7 = info || {},
|
|
3178
|
+
file = _ref7.file,
|
|
3179
|
+
fileList = _ref7.fileList;
|
|
3360
3180
|
readerXlsxToList(file, fileList, null, null, {
|
|
3361
3181
|
callback: function callback(excelData) {
|
|
3362
3182
|
callBackFun(excelData);
|
|
@@ -4780,27 +4600,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4780
4600
|
popvalue = _useState8[0],
|
|
4781
4601
|
setPopValue = _useState8[1];
|
|
4782
4602
|
var _useState9 = React$1.useState([]),
|
|
4783
|
-
|
|
4784
|
-
source =
|
|
4785
|
-
setSource =
|
|
4603
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
4604
|
+
source = _useState0[0],
|
|
4605
|
+
setSource = _useState0[1];
|
|
4786
4606
|
var _useDebounceFn = ahooks.useDebounceFn(function () {
|
|
4787
4607
|
getData();
|
|
4788
4608
|
}, {
|
|
4789
4609
|
wait: 1000
|
|
4790
4610
|
}),
|
|
4791
4611
|
run = _useDebounceFn.run;
|
|
4792
|
-
var
|
|
4612
|
+
var _useState1 = React$1.useState(false),
|
|
4613
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
4614
|
+
fetching = _useState10[0],
|
|
4615
|
+
setFetching = _useState10[1];
|
|
4616
|
+
var _useState11 = React$1.useState(''),
|
|
4793
4617
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
var _useState13 = React$1.useState(
|
|
4618
|
+
searchValue = _useState12[0],
|
|
4619
|
+
setSearchValue = _useState12[1];
|
|
4620
|
+
var _useState13 = React$1.useState(resultSourceKey),
|
|
4797
4621
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
var _useState15 = React$1.useState(resultSourceKey),
|
|
4801
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
4802
|
-
uniqueValue = _useState16[0],
|
|
4803
|
-
setUniqueValue = _useState16[1];
|
|
4622
|
+
uniqueValue = _useState14[0],
|
|
4623
|
+
setUniqueValue = _useState14[1];
|
|
4804
4624
|
React$1.useEffect(function () {
|
|
4805
4625
|
setPopValue(value);
|
|
4806
4626
|
onValueChange(value);
|
|
@@ -5217,21 +5037,21 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5217
5037
|
notCommonProperty = _useState8[0],
|
|
5218
5038
|
setNotCommonProperty = _useState8[1];
|
|
5219
5039
|
var _useState9 = React$1.useState(false),
|
|
5220
|
-
|
|
5221
|
-
visible =
|
|
5222
|
-
setVisible =
|
|
5223
|
-
var
|
|
5040
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5041
|
+
visible = _useState0[0],
|
|
5042
|
+
setVisible = _useState0[1];
|
|
5043
|
+
var _useState1 = React$1.useState(false),
|
|
5044
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5045
|
+
showNotCommon = _useState10[0],
|
|
5046
|
+
setShowNotCommon = _useState10[1]; // 是否展示非常用属性
|
|
5047
|
+
var _useState11 = React$1.useState([]),
|
|
5224
5048
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
var _useState13 = React$1.useState(
|
|
5049
|
+
classifyOptionList = _useState12[0],
|
|
5050
|
+
setClassifyOptionList = _useState12[1];
|
|
5051
|
+
var _useState13 = React$1.useState('1'),
|
|
5228
5052
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
var _useState15 = React$1.useState('1'),
|
|
5232
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
5233
|
-
listKey = _useState16[0],
|
|
5234
|
-
setListKey = _useState16[1];
|
|
5053
|
+
listKey = _useState14[0],
|
|
5054
|
+
setListKey = _useState14[1];
|
|
5235
5055
|
React$1.useEffect(function () {
|
|
5236
5056
|
requestUtil({
|
|
5237
5057
|
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
@@ -5495,6 +5315,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5495
5315
|
highestPopContainer = _props$highestPopCont === void 0 ? undefined : _props$highestPopCont,
|
|
5496
5316
|
fieldComponent = props.fieldComponent,
|
|
5497
5317
|
onSaveCallback = props.onSaveCallback,
|
|
5318
|
+
_props$returnFormat = props.returnFormat,
|
|
5319
|
+
returnFormat = _props$returnFormat === void 0 ? [] : _props$returnFormat,
|
|
5498
5320
|
selectBusinessType = props.selectBusinessType;
|
|
5499
5321
|
var _ref = rCTemp || {},
|
|
5500
5322
|
url = _ref.url,
|
|
@@ -5553,14 +5375,16 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5553
5375
|
var currentPage = 1;
|
|
5554
5376
|
var selectParamsKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filter) || 'qp-codeAndName-like';
|
|
5555
5377
|
var selectParamsInitKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filterInit) || selectParamsKey;
|
|
5556
|
-
var currentSelectProps = _objectSpread2(_objectSpread2({
|
|
5378
|
+
var currentSelectProps = _objectSpread2(_objectSpread2({
|
|
5379
|
+
// 回显字段可自定义
|
|
5380
|
+
optionLabelProp: "label"
|
|
5381
|
+
}, selectProps), {}, {
|
|
5557
5382
|
// 以下属性不可更改----设计配置项
|
|
5558
5383
|
showArrow: true,
|
|
5559
5384
|
showSearch: true,
|
|
5560
5385
|
filterOption: false,
|
|
5561
5386
|
allowClear: true,
|
|
5562
5387
|
listHeight: 160,
|
|
5563
|
-
optionLabelProp: "label",
|
|
5564
5388
|
autoClearSearchValue: false,
|
|
5565
5389
|
placement: 'bottomRight'
|
|
5566
5390
|
});
|
|
@@ -5610,29 +5434,29 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5610
5434
|
scrollPage = _useState8[0],
|
|
5611
5435
|
setScrollPage = _useState8[1];
|
|
5612
5436
|
var _useState9 = React$1.useState(0),
|
|
5613
|
-
|
|
5614
|
-
itemsTotal =
|
|
5615
|
-
setItemsTotal =
|
|
5616
|
-
var
|
|
5437
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5438
|
+
itemsTotal = _useState0[0],
|
|
5439
|
+
setItemsTotal = _useState0[1];
|
|
5440
|
+
var _useState1 = React$1.useState(false),
|
|
5441
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5442
|
+
fetching = _useState10[0],
|
|
5443
|
+
setFetching = _useState10[1];
|
|
5444
|
+
var _useState11 = React$1.useState(''),
|
|
5617
5445
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
var _useState13 = React$1.useState(
|
|
5446
|
+
searchValue = _useState12[0],
|
|
5447
|
+
setSearchValue = _useState12[1];
|
|
5448
|
+
var _useState13 = React$1.useState(false),
|
|
5621
5449
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
var _useState15 = React$1.useState(
|
|
5450
|
+
isModalVisible = _useState14[0],
|
|
5451
|
+
setIsModalVisible = _useState14[1];
|
|
5452
|
+
var _useState15 = React$1.useState(initVal),
|
|
5625
5453
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
var _useState17 = React$1.useState(
|
|
5454
|
+
popvalue = _useState16[0],
|
|
5455
|
+
setPopValue = _useState16[1];
|
|
5456
|
+
var _useState17 = React$1.useState(resultSourceKey),
|
|
5629
5457
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
var _useState19 = React$1.useState(resultSourceKey),
|
|
5633
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5634
|
-
uniqueValue = _useState20[0],
|
|
5635
|
-
setUniqueValue = _useState20[1];
|
|
5458
|
+
uniqueValue = _useState18[0],
|
|
5459
|
+
setUniqueValue = _useState18[1];
|
|
5636
5460
|
var _useDebounceFn = ahooks.useDebounceFn(function (v) {
|
|
5637
5461
|
// 优化搜索参数 支持传多个
|
|
5638
5462
|
var searchParams = {};
|
|
@@ -5661,58 +5485,58 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5661
5485
|
var _Form$useForm = antd.Form.useForm(),
|
|
5662
5486
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5663
5487
|
form = _Form$useForm2[0];
|
|
5488
|
+
var _useState19 = React$1.useState(true),
|
|
5489
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5490
|
+
collapsed = _useState20[0],
|
|
5491
|
+
setCollapsed = _useState20[1];
|
|
5664
5492
|
var _useState21 = React$1.useState(true),
|
|
5665
5493
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
var _useState23 = React$1.useState(
|
|
5494
|
+
caretLeftFlag = _useState22[0],
|
|
5495
|
+
setCaretLeftFlag = _useState22[1];
|
|
5496
|
+
var _useState23 = React$1.useState([]),
|
|
5669
5497
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
var _useState25 = React$1.useState(
|
|
5498
|
+
tableData = _useState24[0],
|
|
5499
|
+
setTableData = _useState24[1];
|
|
5500
|
+
var _useState25 = React$1.useState(tableInitPagination),
|
|
5673
5501
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
var _useState27 = React$1.useState(
|
|
5502
|
+
tablePagination = _useState26[0],
|
|
5503
|
+
setTablePagination = _useState26[1];
|
|
5504
|
+
var _useState27 = React$1.useState([]),
|
|
5677
5505
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5678
|
-
|
|
5679
|
-
|
|
5506
|
+
selectedRowKeys = _useState28[0],
|
|
5507
|
+
setSelectedRowKeys = _useState28[1];
|
|
5680
5508
|
var _useState29 = React$1.useState([]),
|
|
5681
5509
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
var _useState31 = React$1.useState(
|
|
5510
|
+
selectedRows = _useState30[0],
|
|
5511
|
+
setSelectedRows = _useState30[1];
|
|
5512
|
+
var _useState31 = React$1.useState(false),
|
|
5685
5513
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5686
|
-
|
|
5687
|
-
|
|
5514
|
+
checkedAll = _useState32[0],
|
|
5515
|
+
setCheckedAll = _useState32[1];
|
|
5688
5516
|
var _useState33 = React$1.useState(false),
|
|
5689
5517
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
var _useState35 = React$1.useState(
|
|
5518
|
+
indeterminate = _useState34[0],
|
|
5519
|
+
setIndeterminate = _useState34[1];
|
|
5520
|
+
var _useState35 = React$1.useState({}),
|
|
5693
5521
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
var _useState37 = React$1.useState(
|
|
5522
|
+
tableFormParams = _useState36[0],
|
|
5523
|
+
setTableFormParams = _useState36[1];
|
|
5524
|
+
var _useState37 = React$1.useState(false),
|
|
5697
5525
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
var _useState39 = React$1.useState(
|
|
5526
|
+
tooltipVisible = _useState38[0],
|
|
5527
|
+
setTooltipVisible = _useState38[1];
|
|
5528
|
+
var _useState39 = React$1.useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5701
5529
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
var _useState41 = React$1.useState(
|
|
5530
|
+
tableShowColumns = _useState40[0],
|
|
5531
|
+
setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5532
|
+
var _useState41 = React$1.useState(false),
|
|
5705
5533
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5706
|
-
|
|
5707
|
-
|
|
5534
|
+
confirmLoading = _useState42[0],
|
|
5535
|
+
setConfirmLoading = _useState42[1];
|
|
5708
5536
|
var _useState43 = React$1.useState(false),
|
|
5709
5537
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
var _useState45 = React$1.useState(false),
|
|
5713
|
-
_useState46 = _slicedToArray(_useState45, 2),
|
|
5714
|
-
modalSearched = _useState46[0],
|
|
5715
|
-
setModalSearched = _useState46[1];
|
|
5538
|
+
modalSearched = _useState44[0],
|
|
5539
|
+
setModalSearched = _useState44[1];
|
|
5716
5540
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5717
5541
|
setItems(list);
|
|
5718
5542
|
setItemsTotal(total);
|
|
@@ -6029,12 +5853,19 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6029
5853
|
};
|
|
6030
5854
|
var formaData = function formaData(value, source) {
|
|
6031
5855
|
if (labelInValue) {
|
|
5856
|
+
var getFromat = function getFromat(format, val) {
|
|
5857
|
+
return format.map(function (_ref8) {
|
|
5858
|
+
var key = _ref8.key,
|
|
5859
|
+
value = _ref8.value;
|
|
5860
|
+
return _defineProperty({}, key, val[value]);
|
|
5861
|
+
});
|
|
5862
|
+
};
|
|
6032
5863
|
var formatResult = value.map(function (i) {
|
|
6033
|
-
return {
|
|
5864
|
+
return Object.assign.apply(Object, [{
|
|
6034
5865
|
key: i[mappingValueField] || i.key,
|
|
6035
5866
|
label: i[mappingTextField] || i.label,
|
|
6036
5867
|
value: i[mappingValueField] || i.value
|
|
6037
|
-
};
|
|
5868
|
+
}].concat(_toConsumableArray(getFromat(returnFormat, i))));
|
|
6038
5869
|
});
|
|
6039
5870
|
onChange(selectMode ? formatResult : formatResult[0], value, source);
|
|
6040
5871
|
} else {
|
|
@@ -6182,7 +6013,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6182
6013
|
})) || [];
|
|
6183
6014
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
6184
6015
|
return searchList.map(function (i, index) {
|
|
6185
|
-
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$
|
|
6016
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field10, _i$field12, _i$field13;
|
|
6186
6017
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6187
6018
|
span: ColSpan,
|
|
6188
6019
|
key: i
|
|
@@ -6280,7 +6111,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6280
6111
|
disabled: setDisabled(i.name)
|
|
6281
6112
|
}))));
|
|
6282
6113
|
}
|
|
6283
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6114
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field0 = i.field) === null || _i$field0 === void 0 ? void 0 : _i$field0.type) === 'multipleQueryInput') {
|
|
6284
6115
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6285
6116
|
span: ColSpan,
|
|
6286
6117
|
key: i.name
|
|
@@ -6294,7 +6125,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6294
6125
|
}
|
|
6295
6126
|
})));
|
|
6296
6127
|
}
|
|
6297
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6128
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'proppertySelector') {
|
|
6298
6129
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6299
6130
|
span: ColSpan,
|
|
6300
6131
|
key: i.name
|
|
@@ -6304,8 +6135,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6304
6135
|
key: i.name
|
|
6305
6136
|
}, /*#__PURE__*/React__default['default'].createElement(PropertySelector, null)));
|
|
6306
6137
|
}
|
|
6307
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6308
|
-
var _i$
|
|
6138
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.type) === 'itemPropertySelector') {
|
|
6139
|
+
var _i$field11;
|
|
6309
6140
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6310
6141
|
span: ColSpan,
|
|
6311
6142
|
key: i.name
|
|
@@ -6318,9 +6149,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6318
6149
|
width: '100%'
|
|
6319
6150
|
},
|
|
6320
6151
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6321
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6152
|
+
}, i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.props))));
|
|
6322
6153
|
}
|
|
6323
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6154
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
|
|
6324
6155
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6325
6156
|
span: ColSpan,
|
|
6326
6157
|
key: i.name
|
|
@@ -6349,7 +6180,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6349
6180
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6350
6181
|
allowClear: true,
|
|
6351
6182
|
maxLength: 100
|
|
6352
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6183
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
|
|
6353
6184
|
disabled: setDisabled(i.name)
|
|
6354
6185
|
}))));
|
|
6355
6186
|
});
|
|
@@ -7669,135 +7500,132 @@ var AddSelect = function AddSelect(props) {
|
|
|
7669
7500
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7670
7501
|
form = _Form$useForm2[0];
|
|
7671
7502
|
var _useState9 = React$1.useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7672
|
-
|
|
7673
|
-
tableSearchForm =
|
|
7674
|
-
setTableSearchForm =
|
|
7675
|
-
var
|
|
7503
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
7504
|
+
tableSearchForm = _useState0[0],
|
|
7505
|
+
setTableSearchForm = _useState0[1];
|
|
7506
|
+
var _useState1 = React$1.useState(true),
|
|
7507
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
7508
|
+
caretLeftFlag = _useState10[0],
|
|
7509
|
+
setCaretLeftFlag = _useState10[1];
|
|
7510
|
+
var _useState11 = React$1.useState([]),
|
|
7676
7511
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
var _useState13 = React$1.useState(
|
|
7680
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
7681
|
-
tableData = _useState14[0],
|
|
7682
|
-
setTableData = _useState14[1];
|
|
7683
|
-
var _useState15 = React$1.useState(_objectSpread2({
|
|
7512
|
+
tableData = _useState12[0],
|
|
7513
|
+
setTableData = _useState12[1];
|
|
7514
|
+
var _useState13 = React$1.useState(_objectSpread2({
|
|
7684
7515
|
total: 0,
|
|
7685
7516
|
size: "small",
|
|
7686
7517
|
current: 1,
|
|
7687
7518
|
pageSize: tableInitPageSize
|
|
7688
7519
|
}, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
|
|
7520
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
7521
|
+
tablePagination = _useState14[0],
|
|
7522
|
+
setTablePagination = _useState14[1];
|
|
7523
|
+
var _useState15 = React$1.useState([]),
|
|
7689
7524
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
var _useState17 = React$1.useState(
|
|
7525
|
+
selectedRowKeys = _useState16[0],
|
|
7526
|
+
setSelectedRowKeys = _useState16[1];
|
|
7527
|
+
var _useState17 = React$1.useState({}),
|
|
7693
7528
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
var _useState19 = React$1.useState(
|
|
7529
|
+
tableFormParams = _useState18[0],
|
|
7530
|
+
setTableFormParams = _useState18[1];
|
|
7531
|
+
var _useState19 = React$1.useState(false),
|
|
7697
7532
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7698
|
-
|
|
7699
|
-
|
|
7533
|
+
confirmLoading = _useState20[0],
|
|
7534
|
+
setConfirmLoading = _useState20[1];
|
|
7700
7535
|
var _useState21 = React$1.useState(false),
|
|
7701
7536
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
var _useState23 = React$1.useState(
|
|
7537
|
+
confirmContinueLoading = _useState22[0],
|
|
7538
|
+
setConfirmContinueLoading = _useState22[1];
|
|
7539
|
+
var _useState23 = React$1.useState([]),
|
|
7705
7540
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7706
|
-
|
|
7707
|
-
|
|
7541
|
+
selectColumns = _useState24[0],
|
|
7542
|
+
setSelectColumns = _useState24[1];
|
|
7708
7543
|
var _useState25 = React$1.useState([]),
|
|
7709
7544
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7710
|
-
|
|
7711
|
-
|
|
7545
|
+
showColumns = _useState26[0],
|
|
7546
|
+
setShowColumns = _useState26[1];
|
|
7712
7547
|
var _useState27 = React$1.useState([]),
|
|
7713
7548
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7714
|
-
|
|
7715
|
-
|
|
7549
|
+
tableColumns = _useState28[0],
|
|
7550
|
+
setTableColumns = _useState28[1];
|
|
7716
7551
|
var _useState29 = React$1.useState([]),
|
|
7717
7552
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
var _useState31 = React$1.useState([]),
|
|
7721
|
-
_useState32 = _slicedToArray(_useState31, 2),
|
|
7722
|
-
showToChooseColumns = _useState32[0],
|
|
7723
|
-
setShowToChooseColumns = _useState32[1];
|
|
7553
|
+
showToChooseColumns = _useState30[0],
|
|
7554
|
+
setShowToChooseColumns = _useState30[1];
|
|
7724
7555
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7725
7556
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7726
7557
|
// FIXME: 特殊业务逻辑
|
|
7727
7558
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7728
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7729
|
-
var result;
|
|
7730
|
-
return
|
|
7731
|
-
while (1) switch (_context.
|
|
7559
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7560
|
+
var result, _t;
|
|
7561
|
+
return _regenerator().w(function (_context) {
|
|
7562
|
+
while (1) switch (_context.p = _context.n) {
|
|
7732
7563
|
case 0:
|
|
7733
7564
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7734
7565
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7735
7566
|
}))) {
|
|
7736
|
-
_context.
|
|
7567
|
+
_context.n = 1;
|
|
7737
7568
|
break;
|
|
7738
7569
|
}
|
|
7739
7570
|
antd.message.warning('相同skc配码不可设置相同哦');
|
|
7740
|
-
return _context.
|
|
7741
|
-
case
|
|
7571
|
+
return _context.a(2, false);
|
|
7572
|
+
case 1:
|
|
7742
7573
|
if (!(bType == 'spu')) {
|
|
7743
|
-
_context.
|
|
7574
|
+
_context.n = 9;
|
|
7744
7575
|
break;
|
|
7745
7576
|
}
|
|
7746
7577
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7747
7578
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7748
7579
|
}))) {
|
|
7749
|
-
_context.
|
|
7580
|
+
_context.n = 2;
|
|
7750
7581
|
break;
|
|
7751
7582
|
}
|
|
7752
7583
|
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7753
|
-
return _context.
|
|
7754
|
-
case
|
|
7584
|
+
return _context.a(2, false);
|
|
7585
|
+
case 2:
|
|
7755
7586
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7756
|
-
_context.
|
|
7587
|
+
_context.n = 3;
|
|
7757
7588
|
break;
|
|
7758
7589
|
}
|
|
7759
7590
|
antd.message.warning('请先选择颜色!');
|
|
7760
|
-
return _context.
|
|
7761
|
-
case
|
|
7591
|
+
return _context.a(2, false);
|
|
7592
|
+
case 3:
|
|
7762
7593
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7763
7594
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7764
7595
|
}))) {
|
|
7765
|
-
_context.
|
|
7596
|
+
_context.n = 4;
|
|
7766
7597
|
break;
|
|
7767
7598
|
}
|
|
7768
7599
|
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7769
|
-
return _context.
|
|
7770
|
-
case
|
|
7600
|
+
return _context.a(2, false);
|
|
7601
|
+
case 4:
|
|
7771
7602
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7772
|
-
_context.
|
|
7603
|
+
_context.n = 9;
|
|
7773
7604
|
break;
|
|
7774
7605
|
}
|
|
7775
7606
|
result = true;
|
|
7776
|
-
_context.
|
|
7777
|
-
_context.
|
|
7607
|
+
_context.p = 5;
|
|
7608
|
+
_context.n = 6;
|
|
7778
7609
|
return checkSpuMatchCode({
|
|
7779
7610
|
skcCode: recordItem[recordKey],
|
|
7780
7611
|
matchingCode: changeValue,
|
|
7781
7612
|
ext1: recordItem.colorName
|
|
7782
7613
|
});
|
|
7783
|
-
case
|
|
7784
|
-
result = _context.
|
|
7614
|
+
case 6:
|
|
7615
|
+
result = _context.v;
|
|
7785
7616
|
result = true;
|
|
7786
|
-
_context.
|
|
7617
|
+
_context.n = 8;
|
|
7787
7618
|
break;
|
|
7788
|
-
case
|
|
7789
|
-
_context.
|
|
7790
|
-
|
|
7791
|
-
result = typeof
|
|
7792
|
-
case
|
|
7793
|
-
return _context.
|
|
7794
|
-
case
|
|
7795
|
-
return _context.
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
return _context.stop();
|
|
7799
|
-
}
|
|
7800
|
-
}, _callee, null, [[15, 22]]);
|
|
7619
|
+
case 7:
|
|
7620
|
+
_context.p = 7;
|
|
7621
|
+
_t = _context.v;
|
|
7622
|
+
result = typeof _t == 'boolean' ? _t : false;
|
|
7623
|
+
case 8:
|
|
7624
|
+
return _context.a(2, result);
|
|
7625
|
+
case 9:
|
|
7626
|
+
return _context.a(2, true);
|
|
7627
|
+
}
|
|
7628
|
+
}, _callee, null, [[5, 7]]);
|
|
7801
7629
|
}));
|
|
7802
7630
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7803
7631
|
return _ref2.apply(this, arguments);
|
|
@@ -7875,6 +7703,115 @@ var AddSelect = function AddSelect(props) {
|
|
|
7875
7703
|
acc[key] = typeof value === 'function' ? value === null || value === void 0 ? void 0 : value(record) : value;
|
|
7876
7704
|
return acc;
|
|
7877
7705
|
}, {});
|
|
7706
|
+
// 可输入非数字字符
|
|
7707
|
+
if (item.canInputString) {
|
|
7708
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2(_objectSpread2({
|
|
7709
|
+
min: 0,
|
|
7710
|
+
precision: 0,
|
|
7711
|
+
controls: false
|
|
7712
|
+
}, inputProps), {}, {
|
|
7713
|
+
value: text || '',
|
|
7714
|
+
keyboard: false,
|
|
7715
|
+
onPressEnter: function onPressEnter(e) {
|
|
7716
|
+
e.target.blur();
|
|
7717
|
+
},
|
|
7718
|
+
onBlur: function () {
|
|
7719
|
+
var _onBlur = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e) {
|
|
7720
|
+
var value;
|
|
7721
|
+
return _regenerator().w(function (_context2) {
|
|
7722
|
+
while (1) switch (_context2.n) {
|
|
7723
|
+
case 0:
|
|
7724
|
+
value = e.target.value;
|
|
7725
|
+
record[item.dataIndex] = value;
|
|
7726
|
+
editRecord(record);
|
|
7727
|
+
case 1:
|
|
7728
|
+
return _context2.a(2);
|
|
7729
|
+
}
|
|
7730
|
+
}, _callee2);
|
|
7731
|
+
}));
|
|
7732
|
+
function onBlur(_x7) {
|
|
7733
|
+
return _onBlur.apply(this, arguments);
|
|
7734
|
+
}
|
|
7735
|
+
return onBlur;
|
|
7736
|
+
}(),
|
|
7737
|
+
onKeyDown: function onKeyDown(e) {
|
|
7738
|
+
if (e.keyCode === 13 && e.ctrlKey) {
|
|
7739
|
+
var _document$getElementB;
|
|
7740
|
+
handleOk(true);
|
|
7741
|
+
(_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
|
|
7742
|
+
}
|
|
7743
|
+
if (e.keyCode === 8 && e.ctrlKey) {
|
|
7744
|
+
var _e$nativeEvent$path$;
|
|
7745
|
+
antd.message.success('删除当前行');
|
|
7746
|
+
e.stopPropagation();
|
|
7747
|
+
e.preventDefault();
|
|
7748
|
+
var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path$.getElementsByTagName('input')[currentIndex];
|
|
7749
|
+
if (dom) {
|
|
7750
|
+
dom.select();
|
|
7751
|
+
dom.focus();
|
|
7752
|
+
dom.scrollIntoView(false);
|
|
7753
|
+
}
|
|
7754
|
+
dom = null;
|
|
7755
|
+
deleteRecord(record);
|
|
7756
|
+
}
|
|
7757
|
+
if (e.keyCode === 37 && e.shiftKey) {
|
|
7758
|
+
var _e$nativeEvent$path$2;
|
|
7759
|
+
// 左滑动
|
|
7760
|
+
e.stopPropagation();
|
|
7761
|
+
e.preventDefault();
|
|
7762
|
+
var _dom = (_e$nativeEvent$path$2 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$2 === void 0 ? void 0 : _e$nativeEvent$path$2.getElementsByTagName('input')[currentIndex - 1];
|
|
7763
|
+
if (_dom) {
|
|
7764
|
+
_dom.select();
|
|
7765
|
+
_dom.focus();
|
|
7766
|
+
_dom.scrollIntoView(false);
|
|
7767
|
+
}
|
|
7768
|
+
_dom = null;
|
|
7769
|
+
}
|
|
7770
|
+
if (e.keyCode === 39 && e.shiftKey) {
|
|
7771
|
+
var _e$nativeEvent$path$3;
|
|
7772
|
+
// 右滑
|
|
7773
|
+
e.stopPropagation();
|
|
7774
|
+
e.preventDefault();
|
|
7775
|
+
var _dom2 = (_e$nativeEvent$path$3 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$3 === void 0 ? void 0 : _e$nativeEvent$path$3.getElementsByTagName('input')[currentIndex + 1];
|
|
7776
|
+
if (_dom2) {
|
|
7777
|
+
_dom2.select();
|
|
7778
|
+
_dom2.focus();
|
|
7779
|
+
_dom2.scrollIntoView(false);
|
|
7780
|
+
}
|
|
7781
|
+
_dom2 = null;
|
|
7782
|
+
}
|
|
7783
|
+
if (e.keyCode === 40) {
|
|
7784
|
+
var _e$nativeEvent$path$4;
|
|
7785
|
+
e.stopPropagation();
|
|
7786
|
+
e.preventDefault();
|
|
7787
|
+
var _dom3 = (_e$nativeEvent$path$4 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$4 === void 0 ? void 0 : _e$nativeEvent$path$4.getElementsByTagName('input')[currentIndex];
|
|
7788
|
+
if (_dom3) {
|
|
7789
|
+
_dom3.select();
|
|
7790
|
+
_dom3.focus();
|
|
7791
|
+
_dom3.scrollIntoView(false);
|
|
7792
|
+
}
|
|
7793
|
+
_dom3 = null;
|
|
7794
|
+
} else if (e.keyCode === 38) {
|
|
7795
|
+
var _e$nativeEvent$path$5;
|
|
7796
|
+
e.stopPropagation();
|
|
7797
|
+
e.preventDefault();
|
|
7798
|
+
var dom1 = (_e$nativeEvent$path$5 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$5 === void 0 ? void 0 : _e$nativeEvent$path$5.getElementsByTagName('input')[currentIndex];
|
|
7799
|
+
if (dom1) {
|
|
7800
|
+
// dom1.value=""
|
|
7801
|
+
// dom1.setSelectionRange(100, 0);
|
|
7802
|
+
dom1.select();
|
|
7803
|
+
dom1.focus();
|
|
7804
|
+
dom1.scrollIntoViewIfNeeded(false);
|
|
7805
|
+
// dom1.value=record['count']
|
|
7806
|
+
}
|
|
7807
|
+
dom1 = null;
|
|
7808
|
+
} else if (e.keyCode === 9 && index === selectedRowKeys.length - 1 && currentIndex === inputLength - 1) {
|
|
7809
|
+
e.stopPropagation();
|
|
7810
|
+
e.preventDefault();
|
|
7811
|
+
}
|
|
7812
|
+
}
|
|
7813
|
+
}));
|
|
7814
|
+
}
|
|
7878
7815
|
return /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2(_objectSpread2(_objectSpread2({}, inputProps), {}, {
|
|
7879
7816
|
value: text || '',
|
|
7880
7817
|
min: 0,
|
|
@@ -7892,16 +7829,16 @@ var AddSelect = function AddSelect(props) {
|
|
|
7892
7829
|
// }}
|
|
7893
7830
|
onKeyDown: function onKeyDown(e) {
|
|
7894
7831
|
if (e.keyCode === 13 && e.ctrlKey) {
|
|
7895
|
-
var _document$
|
|
7832
|
+
var _document$getElementB2;
|
|
7896
7833
|
handleOk(true);
|
|
7897
|
-
(_document$
|
|
7834
|
+
(_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
|
|
7898
7835
|
}
|
|
7899
7836
|
if (e.keyCode === 8 && e.ctrlKey) {
|
|
7900
|
-
var _e$nativeEvent$path
|
|
7837
|
+
var _e$nativeEvent$path$6;
|
|
7901
7838
|
antd.message.success('删除当前行');
|
|
7902
7839
|
e.stopPropagation();
|
|
7903
7840
|
e.preventDefault();
|
|
7904
|
-
var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path
|
|
7841
|
+
var dom = (_e$nativeEvent$path$6 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$6 === void 0 ? void 0 : _e$nativeEvent$path$6.getElementsByTagName('input')[currentIndex];
|
|
7905
7842
|
if (dom) {
|
|
7906
7843
|
dom.select();
|
|
7907
7844
|
dom.focus();
|
|
@@ -7911,47 +7848,47 @@ var AddSelect = function AddSelect(props) {
|
|
|
7911
7848
|
deleteRecord(record);
|
|
7912
7849
|
}
|
|
7913
7850
|
if (e.keyCode === 37 && e.shiftKey) {
|
|
7914
|
-
var _e$nativeEvent$path$
|
|
7851
|
+
var _e$nativeEvent$path$7;
|
|
7915
7852
|
// 左滑动
|
|
7916
7853
|
e.stopPropagation();
|
|
7917
7854
|
e.preventDefault();
|
|
7918
|
-
var
|
|
7919
|
-
if (
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7855
|
+
var _dom4 = (_e$nativeEvent$path$7 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$7 === void 0 ? void 0 : _e$nativeEvent$path$7.getElementsByTagName('input')[currentIndex - 1];
|
|
7856
|
+
if (_dom4) {
|
|
7857
|
+
_dom4.select();
|
|
7858
|
+
_dom4.focus();
|
|
7859
|
+
_dom4.scrollIntoView(false);
|
|
7923
7860
|
}
|
|
7924
|
-
|
|
7861
|
+
_dom4 = null;
|
|
7925
7862
|
}
|
|
7926
7863
|
if (e.keyCode === 39 && e.shiftKey) {
|
|
7927
|
-
var _e$nativeEvent$path$
|
|
7864
|
+
var _e$nativeEvent$path$8;
|
|
7928
7865
|
// 右滑
|
|
7929
7866
|
e.stopPropagation();
|
|
7930
7867
|
e.preventDefault();
|
|
7931
|
-
var
|
|
7932
|
-
if (
|
|
7933
|
-
|
|
7934
|
-
|
|
7935
|
-
|
|
7868
|
+
var _dom5 = (_e$nativeEvent$path$8 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$8 === void 0 ? void 0 : _e$nativeEvent$path$8.getElementsByTagName('input')[currentIndex + 1];
|
|
7869
|
+
if (_dom5) {
|
|
7870
|
+
_dom5.select();
|
|
7871
|
+
_dom5.focus();
|
|
7872
|
+
_dom5.scrollIntoView(false);
|
|
7936
7873
|
}
|
|
7937
|
-
|
|
7874
|
+
_dom5 = null;
|
|
7938
7875
|
}
|
|
7939
7876
|
if (e.keyCode === 40) {
|
|
7940
|
-
var _e$nativeEvent$path$
|
|
7877
|
+
var _e$nativeEvent$path$9;
|
|
7941
7878
|
e.stopPropagation();
|
|
7942
7879
|
e.preventDefault();
|
|
7943
|
-
var
|
|
7944
|
-
if (
|
|
7945
|
-
|
|
7946
|
-
|
|
7947
|
-
|
|
7880
|
+
var _dom6 = (_e$nativeEvent$path$9 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$9 === void 0 ? void 0 : _e$nativeEvent$path$9.getElementsByTagName('input')[currentIndex];
|
|
7881
|
+
if (_dom6) {
|
|
7882
|
+
_dom6.select();
|
|
7883
|
+
_dom6.focus();
|
|
7884
|
+
_dom6.scrollIntoView(false);
|
|
7948
7885
|
}
|
|
7949
|
-
|
|
7886
|
+
_dom6 = null;
|
|
7950
7887
|
} else if (e.keyCode === 38) {
|
|
7951
|
-
var _e$nativeEvent$path$
|
|
7888
|
+
var _e$nativeEvent$path$0;
|
|
7952
7889
|
e.stopPropagation();
|
|
7953
7890
|
e.preventDefault();
|
|
7954
|
-
var dom1 = (_e$nativeEvent$path$
|
|
7891
|
+
var dom1 = (_e$nativeEvent$path$0 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$0 === void 0 ? void 0 : _e$nativeEvent$path$0.getElementsByTagName('input')[currentIndex];
|
|
7955
7892
|
if (dom1) {
|
|
7956
7893
|
// dom1.value=""
|
|
7957
7894
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -7985,19 +7922,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
7985
7922
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7986
7923
|
value: text || null,
|
|
7987
7924
|
onChange: function () {
|
|
7988
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
7989
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7990
|
-
return
|
|
7991
|
-
while (1) switch (
|
|
7925
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(value) {
|
|
7926
|
+
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules, _t2;
|
|
7927
|
+
return _regenerator().w(function (_context3) {
|
|
7928
|
+
while (1) switch (_context3.p = _context3.n) {
|
|
7992
7929
|
case 0:
|
|
7993
7930
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
7994
7931
|
return d[selectKey] == value;
|
|
7995
7932
|
})) || {};
|
|
7996
7933
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
7997
|
-
|
|
7934
|
+
_context3.n = 2;
|
|
7998
7935
|
break;
|
|
7999
7936
|
}
|
|
8000
|
-
|
|
7937
|
+
_context3.n = 1;
|
|
8001
7938
|
return item === null || item === void 0 ? void 0 : (_item$selectChangeCal = item.selectChangeCallback) === null || _item$selectChangeCal === void 0 ? void 0 : _item$selectChangeCal.call(item, popvalue, setPopValue, {
|
|
8002
7939
|
record: record,
|
|
8003
7940
|
index: index,
|
|
@@ -8007,10 +7944,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8007
7944
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
8008
7945
|
editRecord: editRecord
|
|
8009
7946
|
});
|
|
8010
|
-
case
|
|
8011
|
-
|
|
7947
|
+
case 1:
|
|
7948
|
+
_context3.n = 10;
|
|
8012
7949
|
break;
|
|
8013
|
-
case
|
|
7950
|
+
case 2:
|
|
8014
7951
|
// 更新当前行数据函数
|
|
8015
7952
|
changeValue = function changeValue(v, dSSItem) {
|
|
8016
7953
|
var _item$dataSourceSelec;
|
|
@@ -8023,12 +7960,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
8023
7960
|
}
|
|
8024
7961
|
}; // 处理校验,默认不校验
|
|
8025
7962
|
isCheckPass = true;
|
|
8026
|
-
|
|
7963
|
+
_context3.p = 3;
|
|
8027
7964
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
8028
|
-
|
|
7965
|
+
_context3.n = 5;
|
|
8029
7966
|
break;
|
|
8030
7967
|
}
|
|
8031
|
-
|
|
7968
|
+
_context3.n = 4;
|
|
8032
7969
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
8033
7970
|
record: record,
|
|
8034
7971
|
index: index,
|
|
@@ -8037,23 +7974,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
8037
7974
|
changeValue: value,
|
|
8038
7975
|
dataSourceSelectItem: dataSourceSelectItem
|
|
8039
7976
|
});
|
|
8040
|
-
case
|
|
8041
|
-
isCheckPass =
|
|
8042
|
-
|
|
7977
|
+
case 4:
|
|
7978
|
+
isCheckPass = _context3.v;
|
|
7979
|
+
_context3.n = 7;
|
|
8043
7980
|
break;
|
|
8044
|
-
case
|
|
8045
|
-
|
|
7981
|
+
case 5:
|
|
7982
|
+
_context3.n = 6;
|
|
8046
7983
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
8047
|
-
case
|
|
8048
|
-
isConformToTheRules =
|
|
7984
|
+
case 6:
|
|
7985
|
+
isConformToTheRules = _context3.v;
|
|
8049
7986
|
isCheckPass = !isConformToTheRules;
|
|
8050
|
-
case
|
|
8051
|
-
|
|
7987
|
+
case 7:
|
|
7988
|
+
_context3.n = 9;
|
|
8052
7989
|
break;
|
|
8053
|
-
case
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
case
|
|
7990
|
+
case 8:
|
|
7991
|
+
_context3.p = 8;
|
|
7992
|
+
_t2 = _context3.v;
|
|
7993
|
+
case 9:
|
|
8057
7994
|
if (isCheckPass) {
|
|
8058
7995
|
changeValue(value, dataSourceSelectItem);
|
|
8059
7996
|
} else {
|
|
@@ -8061,13 +7998,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
8061
7998
|
}
|
|
8062
7999
|
// 更新已选表格函数
|
|
8063
8000
|
editRecord(record);
|
|
8064
|
-
case
|
|
8065
|
-
|
|
8066
|
-
return _context2.stop();
|
|
8001
|
+
case 10:
|
|
8002
|
+
return _context3.a(2);
|
|
8067
8003
|
}
|
|
8068
|
-
},
|
|
8004
|
+
}, _callee3, null, [[3, 8]]);
|
|
8069
8005
|
}));
|
|
8070
|
-
function onChange(
|
|
8006
|
+
function onChange(_x8) {
|
|
8071
8007
|
return _onChange.apply(this, arguments);
|
|
8072
8008
|
}
|
|
8073
8009
|
return onChange;
|
|
@@ -8327,8 +8263,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
8327
8263
|
}
|
|
8328
8264
|
}
|
|
8329
8265
|
setTimeout(function () {
|
|
8330
|
-
var _document$
|
|
8331
|
-
(_document$
|
|
8266
|
+
var _document$getElementB3;
|
|
8267
|
+
(_document$getElementB3 = document.getElementById("first-query")) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
|
|
8332
8268
|
}, 50);
|
|
8333
8269
|
};
|
|
8334
8270
|
// 将格式化完的数据回显到 表格中
|
|
@@ -8358,7 +8294,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8358
8294
|
handleLoading(isContinue, true);
|
|
8359
8295
|
onSaveCallback(popvalue).then(function (res) {
|
|
8360
8296
|
{
|
|
8361
|
-
var _Object$keys2, _document$
|
|
8297
|
+
var _Object$keys2, _document$getElementB4;
|
|
8362
8298
|
// 成功信息可以在调用处处理 即resolve({messageSuccessBackInfo: { needThrowSuccess: false } })、resolve({messageSuccessBackInfo: { needThrowSuccess: true, successMessage: '已保存' } })
|
|
8363
8299
|
var initSuccessMessage = '保存成功';
|
|
8364
8300
|
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
@@ -8368,7 +8304,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8368
8304
|
antd.message.success(initSuccessMessage);
|
|
8369
8305
|
}
|
|
8370
8306
|
deleteSelectRows();
|
|
8371
|
-
(_document$
|
|
8307
|
+
(_document$getElementB4 = document.getElementById('first-query')) === null || _document$getElementB4 === void 0 ? void 0 : _document$getElementB4.focus();
|
|
8372
8308
|
!isContinue && handleCancel();
|
|
8373
8309
|
}
|
|
8374
8310
|
handleLoading(isContinue, false);
|
|
@@ -9456,29 +9392,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9456
9392
|
dataIndex: 'propertyNameAndValue'
|
|
9457
9393
|
}];
|
|
9458
9394
|
var _useState9 = React$1.useState(false),
|
|
9459
|
-
|
|
9460
|
-
isModalVisible =
|
|
9461
|
-
setIsModalVisible =
|
|
9462
|
-
var
|
|
9395
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
9396
|
+
isModalVisible = _useState0[0],
|
|
9397
|
+
setIsModalVisible = _useState0[1];
|
|
9398
|
+
var _useState1 = React$1.useState([{
|
|
9463
9399
|
hovered: false
|
|
9464
9400
|
}]),
|
|
9465
|
-
|
|
9466
|
-
data =
|
|
9467
|
-
setData =
|
|
9401
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
9402
|
+
data = _useState10[0],
|
|
9403
|
+
setData = _useState10[1];
|
|
9468
9404
|
var tableRef = React$1.useRef(null);
|
|
9469
9405
|
var codeSelected = tableCode;
|
|
9470
|
-
var
|
|
9406
|
+
var _useState11 = React$1.useState(false),
|
|
9407
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9408
|
+
loading = _useState12[0],
|
|
9409
|
+
setLoading = _useState12[1];
|
|
9410
|
+
var _useState13 = React$1.useState([]),
|
|
9471
9411
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9472
|
-
|
|
9473
|
-
|
|
9412
|
+
selectColumns = _useState14[0],
|
|
9413
|
+
setSelectColumns = _useState14[1];
|
|
9474
9414
|
var _useState15 = React$1.useState([]),
|
|
9475
9415
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9476
|
-
|
|
9477
|
-
|
|
9478
|
-
var _useState17 = React$1.useState([]),
|
|
9479
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
9480
|
-
showColumns = _useState18[0],
|
|
9481
|
-
setShowColumns = _useState18[1];
|
|
9416
|
+
showColumns = _useState16[0],
|
|
9417
|
+
setShowColumns = _useState16[1];
|
|
9482
9418
|
React$1.useEffect(function () {
|
|
9483
9419
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9484
9420
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9594,42 +9530,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9594
9530
|
});
|
|
9595
9531
|
};
|
|
9596
9532
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9597
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9533
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
9598
9534
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9599
|
-
return
|
|
9600
|
-
while (1) switch (_context.
|
|
9535
|
+
return _regenerator().w(function (_context) {
|
|
9536
|
+
while (1) switch (_context.n) {
|
|
9601
9537
|
case 0:
|
|
9602
9538
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9603
|
-
_context.
|
|
9539
|
+
_context.n = 1;
|
|
9604
9540
|
break;
|
|
9605
9541
|
}
|
|
9606
9542
|
antd.message.warning('至少录入一条数据');
|
|
9607
|
-
return _context.
|
|
9608
|
-
case
|
|
9543
|
+
return _context.a(2);
|
|
9544
|
+
case 1:
|
|
9609
9545
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9610
9546
|
return d.skuCode && d.name;
|
|
9611
9547
|
})) {
|
|
9612
|
-
_context.
|
|
9548
|
+
_context.n = 2;
|
|
9613
9549
|
break;
|
|
9614
9550
|
}
|
|
9615
9551
|
antd.message.warning('录入商品不存在');
|
|
9616
|
-
return _context.
|
|
9617
|
-
case
|
|
9552
|
+
return _context.a(2);
|
|
9553
|
+
case 2:
|
|
9618
9554
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9619
9555
|
return d.count;
|
|
9620
9556
|
})) {
|
|
9621
|
-
_context.
|
|
9557
|
+
_context.n = 3;
|
|
9622
9558
|
break;
|
|
9623
9559
|
}
|
|
9624
9560
|
antd.message.warning('请填写商品数量!');
|
|
9625
|
-
return _context.
|
|
9626
|
-
case
|
|
9627
|
-
_context.
|
|
9561
|
+
return _context.a(2);
|
|
9562
|
+
case 3:
|
|
9563
|
+
_context.n = 4;
|
|
9628
9564
|
return isSkuCanEntry(data);
|
|
9629
|
-
case
|
|
9630
|
-
canEntryObject = _context.
|
|
9565
|
+
case 4:
|
|
9566
|
+
canEntryObject = _context.v;
|
|
9631
9567
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9632
|
-
_context.
|
|
9568
|
+
_context.n = 5;
|
|
9633
9569
|
break;
|
|
9634
9570
|
}
|
|
9635
9571
|
messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
|
|
@@ -9639,8 +9575,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9639
9575
|
content: messageInfo,
|
|
9640
9576
|
duration: 6
|
|
9641
9577
|
});
|
|
9642
|
-
return _context.
|
|
9643
|
-
case
|
|
9578
|
+
return _context.a(2);
|
|
9579
|
+
case 5:
|
|
9644
9580
|
setLoading(true);
|
|
9645
9581
|
onSaveCallback(data).then(function (res) {
|
|
9646
9582
|
{
|
|
@@ -9658,9 +9594,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9658
9594
|
antd.message.error(Error);
|
|
9659
9595
|
setLoading(false);
|
|
9660
9596
|
});
|
|
9661
|
-
case
|
|
9662
|
-
|
|
9663
|
-
return _context.stop();
|
|
9597
|
+
case 6:
|
|
9598
|
+
return _context.a(2);
|
|
9664
9599
|
}
|
|
9665
9600
|
}, _callee);
|
|
9666
9601
|
}));
|
|
@@ -10546,10 +10481,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10546
10481
|
selectProps = _objectSpread2({
|
|
10547
10482
|
placeholder: '输入商品(SPU)编码或名称',
|
|
10548
10483
|
renderTableColumns: [{
|
|
10549
|
-
title: '
|
|
10484
|
+
title: 'SPU编码',
|
|
10550
10485
|
dataIndex: 'itemCode'
|
|
10551
10486
|
}, {
|
|
10552
|
-
title: '
|
|
10487
|
+
title: 'SPU名称',
|
|
10553
10488
|
dataIndex: 'name'
|
|
10554
10489
|
}]
|
|
10555
10490
|
}, selectConfigProps);
|
|
@@ -10566,11 +10501,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10566
10501
|
}, requestConfigProp);
|
|
10567
10502
|
tableSearchForm = [{
|
|
10568
10503
|
name: 'itemCode*multiInput',
|
|
10569
|
-
label: '
|
|
10504
|
+
label: 'SPU编码',
|
|
10570
10505
|
type: 'multipleQueryInput'
|
|
10571
10506
|
}, {
|
|
10572
10507
|
name: 'name*multiInput',
|
|
10573
|
-
label: '
|
|
10508
|
+
label: 'SPU名称',
|
|
10574
10509
|
type: 'multipleQueryInput'
|
|
10575
10510
|
}, {
|
|
10576
10511
|
name: 'qp-brandId-in',
|
|
@@ -10664,11 +10599,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10664
10599
|
dataIndex: 'keyIndex',
|
|
10665
10600
|
defaultSort: 0
|
|
10666
10601
|
}, {
|
|
10667
|
-
title: '
|
|
10602
|
+
title: 'SPU编码',
|
|
10668
10603
|
dataIndex: 'itemCode',
|
|
10669
10604
|
defaultSort: 1
|
|
10670
10605
|
}, {
|
|
10671
|
-
title: '
|
|
10606
|
+
title: 'SPU名称',
|
|
10672
10607
|
dataIndex: 'name',
|
|
10673
10608
|
defaultSort: 2
|
|
10674
10609
|
}, {
|
|
@@ -11022,7 +10957,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11022
10957
|
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-brandId-in')
|
|
11023
10958
|
}], ['colorName', 'categoryId', 'classId', 'brandId'], hiddenFields);
|
|
11024
10959
|
var fieldLoadSource = fieldsRequest.map(function (i) {
|
|
11025
|
-
return loadSelectSource$1(i.url, i.params, options);
|
|
10960
|
+
return loadSelectSource$1(i.url, i.params, i.options);
|
|
11026
10961
|
});
|
|
11027
10962
|
requestConfig = _objectSpread2({
|
|
11028
10963
|
url: "".concat(prefixUrl.selectPrefix, "/skc/skcSelect"),
|
|
@@ -11371,6 +11306,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11371
11306
|
render: function render(text) {
|
|
11372
11307
|
return getDictionaryTextByValue$1('SC00004', text);
|
|
11373
11308
|
}
|
|
11309
|
+
}, {
|
|
11310
|
+
title: '运营组名称',
|
|
11311
|
+
dataIndex: 'groupCode',
|
|
11312
|
+
defaultSort: 7,
|
|
11313
|
+
render: function render(text, record) {
|
|
11314
|
+
return (record === null || record === void 0 ? void 0 : record.groupName) ? "\u3010".concat(text, "\u3011").concat(record === null || record === void 0 ? void 0 : record.groupName) : "";
|
|
11315
|
+
},
|
|
11316
|
+
width: 100
|
|
11374
11317
|
}, {
|
|
11375
11318
|
title: '所属销售渠道',
|
|
11376
11319
|
dataIndex: 'channelName',
|
|
@@ -11392,7 +11335,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11392
11335
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11393
11336
|
title: '状态',
|
|
11394
11337
|
dataIndex: 'isEnable',
|
|
11395
|
-
defaultSort:
|
|
11338
|
+
defaultSort: 8,
|
|
11396
11339
|
render: function render(text) {
|
|
11397
11340
|
return getDictionaryTextByValue$1('SC00001', text);
|
|
11398
11341
|
}
|
|
@@ -11849,17 +11792,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11849
11792
|
}
|
|
11850
11793
|
}
|
|
11851
11794
|
}];
|
|
11852
|
-
var
|
|
11795
|
+
var _queryHeaderParams0 = getQueryHeadersList({
|
|
11853
11796
|
querySelectHeadersList: querySelectHeadersList,
|
|
11854
11797
|
extralHeaders: extralHeaders
|
|
11855
11798
|
});
|
|
11856
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(
|
|
11799
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams0, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11857
11800
|
'qp-status-eq': 10,
|
|
11858
11801
|
'qp-isMain-eq': 1,
|
|
11859
11802
|
'qp-type-in': '1,2'
|
|
11860
|
-
}, getQueryHeadersItem(
|
|
11803
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11861
11804
|
'qp-status-eq': 1
|
|
11862
|
-
}, getQueryHeadersItem(
|
|
11805
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in'))]).then(function (x) {
|
|
11863
11806
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
11864
11807
|
var allList = firstElement && [firstElement, firstElement];
|
|
11865
11808
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
@@ -11934,12 +11877,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11934
11877
|
sourceName: 'code'
|
|
11935
11878
|
}, requestConfigProp);
|
|
11936
11879
|
tableSearchForm = [{
|
|
11937
|
-
name: '
|
|
11938
|
-
label: '店铺名称'
|
|
11939
|
-
|
|
11940
|
-
name: 'qp-code-like',
|
|
11941
|
-
label: '店铺编码'
|
|
11880
|
+
name: 'name*multiInput',
|
|
11881
|
+
label: '店铺名称',
|
|
11882
|
+
type: 'multipleQueryInput'
|
|
11942
11883
|
}, {
|
|
11884
|
+
name: 'code*multiInput',
|
|
11885
|
+
label: '店铺编码',
|
|
11886
|
+
type: 'multipleQueryInput'
|
|
11887
|
+
},
|
|
11888
|
+
// { name: 'qp-name-like', label: '店铺名称' },
|
|
11889
|
+
// { name: 'qp-code-like', label: '店铺编码' },
|
|
11890
|
+
{
|
|
11943
11891
|
name: 'qp-conglomerateCode-in',
|
|
11944
11892
|
type: 'select',
|
|
11945
11893
|
label: '归属集团',
|
|
@@ -12040,7 +11988,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12040
11988
|
}
|
|
12041
11989
|
}
|
|
12042
11990
|
}];
|
|
12043
|
-
var
|
|
11991
|
+
var _queryHeaderParams1 = getQueryHeadersList({
|
|
12044
11992
|
querySelectHeadersList: querySelectHeadersList,
|
|
12045
11993
|
extralHeaders: extralHeaders
|
|
12046
11994
|
});
|
|
@@ -12048,21 +11996,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12048
11996
|
pageSize: 5000,
|
|
12049
11997
|
currentPage: 1,
|
|
12050
11998
|
'qp-companyType-eq': '30'
|
|
12051
|
-
}, getQueryHeadersItem(
|
|
11999
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
12052
12000
|
pageSize: 5000,
|
|
12053
12001
|
currentPage: 1,
|
|
12054
12002
|
'qp-companyType-eq': '20'
|
|
12055
|
-
}, getQueryHeadersItem(
|
|
12003
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
12056
12004
|
// pageSize: 5000,
|
|
12057
12005
|
// currentPage: 1,
|
|
12058
12006
|
'qp-status-eq': '1'
|
|
12059
|
-
}, getQueryHeadersItem(
|
|
12007
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
12060
12008
|
pageSize: 5000,
|
|
12061
12009
|
currentPage: 1
|
|
12062
|
-
}, getQueryHeadersItem(
|
|
12010
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
12063
12011
|
pageSize: 5000,
|
|
12064
12012
|
currentPage: 1
|
|
12065
|
-
}, getQueryHeadersItem(
|
|
12013
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-accountingCode-in'))]).then(function (x) {
|
|
12066
12014
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12067
12015
|
formatSource(x, 1, 3, tableSearchForm);
|
|
12068
12016
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -12231,8 +12179,26 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12231
12179
|
}
|
|
12232
12180
|
},
|
|
12233
12181
|
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
12182
|
+
}, {
|
|
12183
|
+
name: "qp-brandCode-in",
|
|
12184
|
+
label: "品牌",
|
|
12185
|
+
field: {
|
|
12186
|
+
type: 'select',
|
|
12187
|
+
props: {
|
|
12188
|
+
mode: 'multiple',
|
|
12189
|
+
notFoundContent: '暂无数据',
|
|
12190
|
+
allowClear: true,
|
|
12191
|
+
showSearch: true,
|
|
12192
|
+
showArrow: true,
|
|
12193
|
+
maxTagCount: 1,
|
|
12194
|
+
optionFilterProp: 'children',
|
|
12195
|
+
filterOption: function filterOption(input, option) {
|
|
12196
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12197
|
+
}
|
|
12198
|
+
}
|
|
12199
|
+
}
|
|
12234
12200
|
}];
|
|
12235
|
-
var
|
|
12201
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
12236
12202
|
querySelectHeadersList: querySelectHeadersList,
|
|
12237
12203
|
extralHeaders: extralHeaders
|
|
12238
12204
|
});
|
|
@@ -12240,13 +12206,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12240
12206
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12241
12207
|
'qp-realOrg-eq': true,
|
|
12242
12208
|
'qp-status-eq': 10
|
|
12243
|
-
}, getQueryHeadersItem(
|
|
12209
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12244
12210
|
'qp-status-eq': 10,
|
|
12245
12211
|
'qp-isMain-eq': 1,
|
|
12246
12212
|
'qp-type-in': '1,2'
|
|
12247
|
-
}, getQueryHeadersItem(
|
|
12213
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12248
12214
|
'qp-status-eq': 1
|
|
12249
|
-
}, getQueryHeadersItem(
|
|
12215
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
12216
|
+
pageSize: 5000,
|
|
12217
|
+
currentPage: 1,
|
|
12218
|
+
'ctl-withAuth': true
|
|
12219
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth'))]).then(function (x) {
|
|
12250
12220
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12251
12221
|
return data['parentCode'] === '0';
|
|
12252
12222
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -12256,6 +12226,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12256
12226
|
formatSource(x, 0, 3, tableSearchForm);
|
|
12257
12227
|
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12258
12228
|
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
12229
|
+
formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
|
|
12259
12230
|
});
|
|
12260
12231
|
modalTableProps = _objectSpread2({
|
|
12261
12232
|
modalTableTitle: '选择商店',
|
|
@@ -12484,7 +12455,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12484
12455
|
name: 'qp-officeTelephone-like',
|
|
12485
12456
|
label: '手机号'
|
|
12486
12457
|
}];
|
|
12487
|
-
var
|
|
12458
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
12488
12459
|
querySelectHeadersList: querySelectHeadersList,
|
|
12489
12460
|
extralHeaders: extralHeaders
|
|
12490
12461
|
});
|
|
@@ -12492,7 +12463,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12492
12463
|
pageSize: 5000,
|
|
12493
12464
|
currentPage: 1,
|
|
12494
12465
|
'qp-companyType-eq': 20
|
|
12495
|
-
}, getQueryHeadersItem(
|
|
12466
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in'))]).then(function (x) {
|
|
12496
12467
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12497
12468
|
});
|
|
12498
12469
|
modalTableProps = _objectSpread2({
|
|
@@ -12598,16 +12569,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12598
12569
|
name: 'qp-email-like',
|
|
12599
12570
|
label: '邮箱'
|
|
12600
12571
|
}, {
|
|
12601
|
-
name: 'qp-
|
|
12572
|
+
name: 'qp-phone-like',
|
|
12602
12573
|
label: '手机号'
|
|
12603
12574
|
}]);
|
|
12604
|
-
var
|
|
12575
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12605
12576
|
querySelectHeadersList: querySelectHeadersList,
|
|
12606
12577
|
extralHeaders: extralHeaders
|
|
12607
12578
|
});
|
|
12608
12579
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12609
12580
|
'orgViewCode': 'administrative-organization-view'
|
|
12610
|
-
}, getQueryHeadersItem(
|
|
12581
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-code-in'))]).then(function (x) {
|
|
12611
12582
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12612
12583
|
});
|
|
12613
12584
|
modalTableProps = _objectSpread2({
|
|
@@ -12658,7 +12629,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12658
12629
|
dataIndex: 'email'
|
|
12659
12630
|
}, {
|
|
12660
12631
|
title: '手机号',
|
|
12661
|
-
dataIndex: '
|
|
12632
|
+
dataIndex: 'phone',
|
|
12662
12633
|
defaultSort: 4,
|
|
12663
12634
|
render: function render(text, record) {
|
|
12664
12635
|
return handleTextOverflow(text || (record === null || record === void 0 ? void 0 : record.phone));
|
|
@@ -12754,17 +12725,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12754
12725
|
name: 'qp-remark-like',
|
|
12755
12726
|
label: '备注'
|
|
12756
12727
|
}];
|
|
12757
|
-
var
|
|
12728
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12758
12729
|
querySelectHeadersList: querySelectHeadersList,
|
|
12759
12730
|
extralHeaders: extralHeaders
|
|
12760
12731
|
});
|
|
12761
12732
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12762
12733
|
pageSize: 5000,
|
|
12763
12734
|
currentPage: 1
|
|
12764
|
-
}, getQueryHeadersItem(
|
|
12735
|
+
}, getQueryHeadersItem(_queryHeaderParams13, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12765
12736
|
pageSize: 5000,
|
|
12766
12737
|
currentPage: 1
|
|
12767
|
-
}, getQueryHeadersItem(
|
|
12738
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12768
12739
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12769
12740
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12770
12741
|
});
|
|
@@ -12934,14 +12905,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12934
12905
|
}
|
|
12935
12906
|
}
|
|
12936
12907
|
}];
|
|
12937
|
-
var
|
|
12908
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12938
12909
|
querySelectHeadersList: querySelectHeadersList,
|
|
12939
12910
|
extralHeaders: extralHeaders
|
|
12940
12911
|
});
|
|
12941
12912
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
12942
12913
|
pageSize: 5000,
|
|
12943
12914
|
currentPage: 1
|
|
12944
|
-
}, getQueryHeadersItem(
|
|
12915
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
12945
12916
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12946
12917
|
});
|
|
12947
12918
|
modalTableProps = _objectSpread2({
|
|
@@ -13038,7 +13009,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13038
13009
|
}
|
|
13039
13010
|
}
|
|
13040
13011
|
}];
|
|
13041
|
-
var
|
|
13012
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
13042
13013
|
querySelectHeadersList: querySelectHeadersList,
|
|
13043
13014
|
extralHeaders: extralHeaders
|
|
13044
13015
|
});
|
|
@@ -13046,7 +13017,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13046
13017
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
13047
13018
|
'qp-realOrg-eq': true,
|
|
13048
13019
|
'qp-status-eq': 10
|
|
13049
|
-
}, getQueryHeadersItem(
|
|
13020
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
13050
13021
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13051
13022
|
});
|
|
13052
13023
|
modalTableProps = _objectSpread2({
|
|
@@ -13152,13 +13123,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13152
13123
|
},
|
|
13153
13124
|
initialSource: nodeType
|
|
13154
13125
|
}];
|
|
13155
|
-
var
|
|
13126
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13156
13127
|
querySelectHeadersList: querySelectHeadersList,
|
|
13157
13128
|
extralHeaders: extralHeaders
|
|
13158
13129
|
});
|
|
13159
13130
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13160
13131
|
'qp-status-eq': 10
|
|
13161
|
-
}, getQueryHeadersItem(
|
|
13132
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13162
13133
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13163
13134
|
});
|
|
13164
13135
|
modalTableProps = _objectSpread2({
|
|
@@ -13484,13 +13455,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13484
13455
|
},
|
|
13485
13456
|
initialSource: nodeType
|
|
13486
13457
|
}];
|
|
13487
|
-
var
|
|
13458
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
13488
13459
|
querySelectHeadersList: querySelectHeadersList,
|
|
13489
13460
|
extralHeaders: extralHeaders
|
|
13490
13461
|
});
|
|
13491
13462
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13492
13463
|
'qp-status-eq': 10
|
|
13493
|
-
}, getQueryHeadersItem(
|
|
13464
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13494
13465
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13495
13466
|
});
|
|
13496
13467
|
modalTableProps = _objectSpread2({
|
|
@@ -14435,9 +14406,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14435
14406
|
value = _useState8[0],
|
|
14436
14407
|
setValue = _useState8[1];
|
|
14437
14408
|
var _useState9 = React$1.useState([]),
|
|
14438
|
-
|
|
14439
|
-
propertyList =
|
|
14440
|
-
setPropertyList =
|
|
14409
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
14410
|
+
propertyList = _useState0[0],
|
|
14411
|
+
setPropertyList = _useState0[1];
|
|
14441
14412
|
React$1.useEffect(function () {
|
|
14442
14413
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14443
14414
|
// type: 1 尺码组; 2 配码组
|
|
@@ -14860,7 +14831,7 @@ function getStorageVale(storageKeyString) {
|
|
|
14860
14831
|
var _storageKeyString$spl = storageKeyString.split('.'),
|
|
14861
14832
|
_storageKeyString$spl2 = _toArray(_storageKeyString$spl),
|
|
14862
14833
|
localstorage = _storageKeyString$spl2[0],
|
|
14863
|
-
restKeyArrays = _storageKeyString$spl2.slice(1);
|
|
14834
|
+
restKeyArrays = _arrayLikeToArray(_storageKeyString$spl2).slice(1);
|
|
14864
14835
|
var localStorageInfo = window.localStorage.getItem(localstorage);
|
|
14865
14836
|
if (!restKeyArrays.length) return localStorageInfo;
|
|
14866
14837
|
var returnVal = JSON.parse(localStorageInfo || '{}');
|
|
@@ -14961,46 +14932,45 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14961
14932
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
14962
14933
|
headers: headers
|
|
14963
14934
|
}).then(/*#__PURE__*/function () {
|
|
14964
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
14935
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
|
|
14965
14936
|
var _ctx$form;
|
|
14966
14937
|
var resData, coverData, data, dataList;
|
|
14967
|
-
return
|
|
14968
|
-
while (1) switch (_context.
|
|
14938
|
+
return _regenerator().w(function (_context) {
|
|
14939
|
+
while (1) switch (_context.n) {
|
|
14969
14940
|
case 0:
|
|
14970
14941
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
14971
14942
|
if (!judgeIsRequestSuccess(resData)) {
|
|
14972
|
-
_context.
|
|
14943
|
+
_context.n = 4;
|
|
14973
14944
|
break;
|
|
14974
14945
|
}
|
|
14975
14946
|
data = resData.data;
|
|
14976
14947
|
if (!remoteSource.converter) {
|
|
14977
|
-
_context.
|
|
14948
|
+
_context.n = 2;
|
|
14978
14949
|
break;
|
|
14979
14950
|
}
|
|
14980
|
-
_context.
|
|
14951
|
+
_context.n = 1;
|
|
14981
14952
|
return remoteSource.converter({
|
|
14982
14953
|
data: [data]
|
|
14983
14954
|
});
|
|
14984
|
-
case
|
|
14985
|
-
coverData = _context.
|
|
14986
|
-
_context.
|
|
14955
|
+
case 1:
|
|
14956
|
+
coverData = _context.v;
|
|
14957
|
+
_context.n = 3;
|
|
14987
14958
|
break;
|
|
14988
|
-
case
|
|
14959
|
+
case 2:
|
|
14989
14960
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
14990
14961
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
14991
14962
|
return _mapSearchTree(ites);
|
|
14992
14963
|
}) || [];
|
|
14993
|
-
case
|
|
14994
|
-
_context.
|
|
14964
|
+
case 3:
|
|
14965
|
+
_context.n = 5;
|
|
14995
14966
|
break;
|
|
14996
|
-
case
|
|
14967
|
+
case 4:
|
|
14997
14968
|
coverData = [];
|
|
14998
|
-
case
|
|
14969
|
+
case 5:
|
|
14999
14970
|
setTreeData(coverData);
|
|
15000
14971
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
15001
|
-
case
|
|
15002
|
-
|
|
15003
|
-
return _context.stop();
|
|
14972
|
+
case 6:
|
|
14973
|
+
return _context.a(2);
|
|
15004
14974
|
}
|
|
15005
14975
|
}, _callee);
|
|
15006
14976
|
}));
|
|
@@ -17403,7 +17373,9 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
17403
17373
|
title = _ref.title,
|
|
17404
17374
|
pathToRegexp = _ref.pathToRegexp,
|
|
17405
17375
|
backHistoryPath = _ref.backHistoryPath,
|
|
17406
|
-
onBack = _ref.onBack
|
|
17376
|
+
onBack = _ref.onBack,
|
|
17377
|
+
tradeType = _ref.tradeType,
|
|
17378
|
+
fromStatus = _ref.fromStatus;
|
|
17407
17379
|
var _useState3 = React$1.useState(false),
|
|
17408
17380
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
17409
17381
|
isFullScreen = _useState4[0],
|
|
@@ -17486,14 +17458,50 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
17486
17458
|
}
|
|
17487
17459
|
}
|
|
17488
17460
|
};
|
|
17461
|
+
var getFlowButtons = function getFlowButtons() {
|
|
17462
|
+
try {
|
|
17463
|
+
return JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
|
|
17464
|
+
} catch (e) {
|
|
17465
|
+
return [];
|
|
17466
|
+
}
|
|
17467
|
+
};
|
|
17468
|
+
var filterByFlowRules = function filterByFlowRules(list, ctx) {
|
|
17469
|
+
var _find;
|
|
17470
|
+
var flowList = getFlowButtons();
|
|
17471
|
+
if (!(flowList === null || flowList === void 0 ? void 0 : flowList.length) || typeof ctx.tradeType !== 'number') return list;
|
|
17472
|
+
var entry = flowList.find(function (i) {
|
|
17473
|
+
return (i === null || i === void 0 ? void 0 : i.tradeType) === ctx.tradeType;
|
|
17474
|
+
});
|
|
17475
|
+
if (!entry) return list;
|
|
17476
|
+
var ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
|
|
17477
|
+
var statButtons = ((_find = ((entry === null || entry === void 0 ? void 0 : entry.config) || []).find(function (c) {
|
|
17478
|
+
return (c === null || c === void 0 ? void 0 : c.fromStatus) === ctx.status;
|
|
17479
|
+
})) === null || _find === void 0 ? void 0 : _find.buttons) || [];
|
|
17480
|
+
var allowedSet = new Set((statButtons || []).filter(Boolean).filter(function (b) {
|
|
17481
|
+
return ctrlSet.size ? ctrlSet.has(b) : true;
|
|
17482
|
+
}));
|
|
17483
|
+
return list.filter(function (ui) {
|
|
17484
|
+
var _ui$props3, _ui$props4;
|
|
17485
|
+
var uiCode = ui.code || ui.buttonCode || (ui === null || ui === void 0 ? void 0 : (_ui$props3 = ui.props) === null || _ui$props3 === void 0 ? void 0 : _ui$props3.code) || (ui === null || ui === void 0 ? void 0 : (_ui$props4 = ui.props) === null || _ui$props4 === void 0 ? void 0 : _ui$props4.buttonCode);
|
|
17486
|
+
if (!uiCode) return true;
|
|
17487
|
+
if (ctrlSet.size && !ctrlSet.has(uiCode)) return true; // 非流程控制按钮不处理
|
|
17488
|
+
return allowedSet.has(uiCode);
|
|
17489
|
+
});
|
|
17490
|
+
};
|
|
17489
17491
|
var renderPageActionList = function renderPageActionList(actionLists) {
|
|
17490
17492
|
var _actionLists$;
|
|
17491
17493
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
17492
17494
|
var visibleActions = actionLists.filter(function (action) {
|
|
17493
|
-
return (action.visible && action.visible !== 'false' || judgeIsEmpty$1(action.visible)) && (!shouldUseAuth() || judgeIsEmpty$1(action.code) || authButton.
|
|
17495
|
+
return (action.visible && action.visible !== 'false' || judgeIsEmpty$1(action.visible)) && (!shouldUseAuth() || judgeIsEmpty$1(action.code) || authButton.some(function (item) {
|
|
17494
17496
|
return item === action.code;
|
|
17495
17497
|
}));
|
|
17496
17498
|
});
|
|
17499
|
+
if (typeof tradeType === 'number') {
|
|
17500
|
+
visibleActions = filterByFlowRules(visibleActions, {
|
|
17501
|
+
tradeType: tradeType,
|
|
17502
|
+
status: fromStatus
|
|
17503
|
+
});
|
|
17504
|
+
}
|
|
17497
17505
|
var renderButton = function renderButton(item, type) {
|
|
17498
17506
|
return /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
17499
17507
|
type: type || 'primary',
|
|
@@ -17606,6 +17614,68 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
17606
17614
|
}
|
|
17607
17615
|
return true;
|
|
17608
17616
|
});
|
|
17617
|
+
var processDetailButtonsVisible = function processDetailButtonsVisible(buttons, params) {
|
|
17618
|
+
var _ref4 = params || {},
|
|
17619
|
+
tradeType = _ref4.tradeType,
|
|
17620
|
+
fromStatus = _ref4.fromStatus;
|
|
17621
|
+
var getFlowButtons = function getFlowButtons() {
|
|
17622
|
+
try {
|
|
17623
|
+
return JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
|
|
17624
|
+
} catch (e) {
|
|
17625
|
+
return [];
|
|
17626
|
+
}
|
|
17627
|
+
};
|
|
17628
|
+
var evalVisible = function evalVisible(v, ctx) {
|
|
17629
|
+
if (typeof v === 'string') {
|
|
17630
|
+
var expr = v.replace(/^#\{|\}$/g, '');
|
|
17631
|
+
try {
|
|
17632
|
+
var keys = Object.keys(ctx || {});
|
|
17633
|
+
var vals = keys.map(function (k) {
|
|
17634
|
+
return ctx[k];
|
|
17635
|
+
});
|
|
17636
|
+
// eslint-disable-next-line no-new-func
|
|
17637
|
+
return Function.apply(void 0, keys.concat(["return (".concat(expr, ");")])).apply(void 0, _toConsumableArray(vals));
|
|
17638
|
+
} catch (e) {
|
|
17639
|
+
return true;
|
|
17640
|
+
}
|
|
17641
|
+
}
|
|
17642
|
+
if (v === undefined) return true;
|
|
17643
|
+
return !!v;
|
|
17644
|
+
};
|
|
17645
|
+
var ctrlSet = new Set();
|
|
17646
|
+
var allowedSet = new Set();
|
|
17647
|
+
if (typeof tradeType === 'number') {
|
|
17648
|
+
var flowList = getFlowButtons();
|
|
17649
|
+
var entry = flowList.find(function (i) {
|
|
17650
|
+
return (i === null || i === void 0 ? void 0 : i.tradeType) === tradeType;
|
|
17651
|
+
});
|
|
17652
|
+
if (entry) {
|
|
17653
|
+
var _find2;
|
|
17654
|
+
ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
|
|
17655
|
+
var statButtons = ((_find2 = ((entry === null || entry === void 0 ? void 0 : entry.config) || []).find(function (c) {
|
|
17656
|
+
return (c === null || c === void 0 ? void 0 : c.fromStatus) === fromStatus;
|
|
17657
|
+
})) === null || _find2 === void 0 ? void 0 : _find2.buttons) || [];
|
|
17658
|
+
allowedSet = new Set((statButtons || []).filter(Boolean).filter(function (b) {
|
|
17659
|
+
return ctrlSet.size ? ctrlSet.has(b) : true;
|
|
17660
|
+
}));
|
|
17661
|
+
}
|
|
17662
|
+
}
|
|
17663
|
+
var processed = (buttons || []).map(function (btn) {
|
|
17664
|
+
var visBase = evalVisible(btn === null || btn === void 0 ? void 0 : btn.visible, params);
|
|
17665
|
+
var vis = visBase;
|
|
17666
|
+
if (typeof tradeType === 'number' && ctrlSet && allowedSet && (btn === null || btn === void 0 ? void 0 : btn.code)) {
|
|
17667
|
+
if (ctrlSet.size === 0 || !ctrlSet.has(btn.code)) {
|
|
17668
|
+
vis = visBase;
|
|
17669
|
+
} else {
|
|
17670
|
+
vis = visBase && allowedSet.has(btn.code);
|
|
17671
|
+
}
|
|
17672
|
+
}
|
|
17673
|
+
return _objectSpread2(_objectSpread2({}, btn), {}, {
|
|
17674
|
+
visible: vis
|
|
17675
|
+
});
|
|
17676
|
+
});
|
|
17677
|
+
return processed;
|
|
17678
|
+
};
|
|
17609
17679
|
|
|
17610
17680
|
var css_248z$h = ".bs_home_page_head_wrapper {\n position: sticky;\n background: #fff;\n width: 100%;\n top: 0px;\n z-index: 10;\n}\n.home_page_head {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n padding: 6px 16px 5px;\n font-weight: 500;\n}\n.home_page_head .home_page_title_wrapper {\n display: flex;\n align-items: center;\n height: 20px;\n line-height: 20px;\n}\n.home_page_head .home_page_title {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 16px;\n color: #000000;\n letter-spacing: 0;\n flex-grow: 1;\n padding-right: 10px;\n display: none;\n}\n.home_page_head .ant-breadcrumb {\n display: block !important;\n}\n.home_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.home_page_head .ant-breadcrumb li .bread_name {\n color: #8B8B8B;\n font-size: 12px;\n line-height: 16px;\n cursor: pointer;\n}\n.home_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n";
|
|
17611
17681
|
styleInject(css_248z$h);
|
|
@@ -17899,6 +17969,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17899
17969
|
title: '列首',
|
|
17900
17970
|
dataIndex: 'fixedLeft',
|
|
17901
17971
|
render: function render(text, record) {
|
|
17972
|
+
if (_this.props.disableColumnFixed) {
|
|
17973
|
+
return null;
|
|
17974
|
+
}
|
|
17902
17975
|
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17903
17976
|
onClick: function onClick() {
|
|
17904
17977
|
var sortDataSource = _this.state.sortDataSource;
|
|
@@ -17975,6 +18048,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17975
18048
|
title: '列尾',
|
|
17976
18049
|
dataIndex: 'fixedRight',
|
|
17977
18050
|
render: function render(text, record) {
|
|
18051
|
+
if (_this.props.disableColumnFixed) {
|
|
18052
|
+
return null;
|
|
18053
|
+
}
|
|
17978
18054
|
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17979
18055
|
onClick: function onClick() {
|
|
17980
18056
|
var sortDataSource = _this.state.sortDataSource;
|
|
@@ -19224,7 +19300,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
19224
19300
|
}, /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps)));
|
|
19225
19301
|
};
|
|
19226
19302
|
var BsSulaQueryTable = (function (props) {
|
|
19227
|
-
var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _value$exportConfig6;
|
|
19303
|
+
var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _props$tableProps, _value$exportConfig6;
|
|
19228
19304
|
var bsTableCode = (props === null || props === void 0 ? void 0 : props.tableCode) || window.location.hash; //设置列字段的唯一标识
|
|
19229
19305
|
var rowsRef = React$1.useRef(null);
|
|
19230
19306
|
// 获取 table columns中所有的 key 防止有的地方是 dataindex
|
|
@@ -19302,38 +19378,38 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19302
19378
|
};
|
|
19303
19379
|
var refs = React$1.useRef(null);
|
|
19304
19380
|
var _useState9 = React$1.useState(''),
|
|
19305
|
-
|
|
19306
|
-
pagePath =
|
|
19307
|
-
setPagePath =
|
|
19381
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
19382
|
+
pagePath = _useState0[0],
|
|
19383
|
+
setPagePath = _useState0[1];
|
|
19308
19384
|
var _useLocation = umi.useLocation(),
|
|
19309
19385
|
pathname = _useLocation.pathname,
|
|
19310
19386
|
_useLocation$state = _useLocation.state,
|
|
19311
19387
|
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
19312
|
-
var
|
|
19313
|
-
|
|
19314
|
-
isFullScreen =
|
|
19315
|
-
setIsFnllScreen =
|
|
19388
|
+
var _useState1 = React$1.useState(false),
|
|
19389
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
19390
|
+
isFullScreen = _useState10[0],
|
|
19391
|
+
setIsFnllScreen = _useState10[1];
|
|
19316
19392
|
// @ts-nocheck
|
|
19317
19393
|
var value = props;
|
|
19318
19394
|
var _props$fields = props.fields,
|
|
19319
19395
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
19320
|
-
var
|
|
19321
|
-
|
|
19322
|
-
showColumn =
|
|
19323
|
-
setShowColumns =
|
|
19396
|
+
var _useState11 = React$1.useState([]),
|
|
19397
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
19398
|
+
showColumn = _useState12[0],
|
|
19399
|
+
setShowColumns = _useState12[1]; // 列字段
|
|
19324
19400
|
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19325
|
-
var
|
|
19401
|
+
var _useState13 = React$1.useState(originSearchFields),
|
|
19402
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
19403
|
+
showSearchFields = _useState14[0],
|
|
19404
|
+
setShowSearchFields = _useState14[1]; //搜索项字段
|
|
19405
|
+
var _useState15 = React$1.useState([]),
|
|
19326
19406
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
19327
|
-
|
|
19328
|
-
|
|
19329
|
-
var _useState17 = React$1.useState(
|
|
19407
|
+
showExportColumn = _useState16[0],
|
|
19408
|
+
setShowExportColumns = _useState16[1]; // 导出列字段
|
|
19409
|
+
var _useState17 = React$1.useState(''),
|
|
19330
19410
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
19331
|
-
|
|
19332
|
-
|
|
19333
|
-
var _useState19 = React$1.useState(''),
|
|
19334
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
19335
|
-
height = _useState20[0],
|
|
19336
|
-
setHeight = _useState20[1];
|
|
19411
|
+
height = _useState18[0],
|
|
19412
|
+
setHeight = _useState18[1];
|
|
19337
19413
|
var sortTableRef = React$1.useRef(null);
|
|
19338
19414
|
var searchTableRef = React$1.useRef(null);
|
|
19339
19415
|
var exportTableRef = React$1.useRef(null);
|
|
@@ -19586,10 +19662,22 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19586
19662
|
};
|
|
19587
19663
|
}
|
|
19588
19664
|
}, (value === null || value === void 0 ? void 0 : value.tableProps) || {});
|
|
19589
|
-
// @ts-ignore
|
|
19590
19665
|
if (tableProps === null || tableProps === void 0 ? void 0 : (_tableProps$initialPa = tableProps.initialPaging) === null || _tableProps$initialPa === void 0 ? void 0 : _tableProps$initialPa.pagination) {
|
|
19591
|
-
// @ts-ignore
|
|
19592
19666
|
tableProps.initialPaging.pagination.showSizeChanger = true;
|
|
19667
|
+
// 分页大小改变时,更新本地存储
|
|
19668
|
+
var onShowSizeChange = function onShowSizeChange(current, size) {
|
|
19669
|
+
var allPaginationData = JSON.parse(localStorage.getItem('paginationData') || "{}");
|
|
19670
|
+
allPaginationData[bsTableCode] = size;
|
|
19671
|
+
localStorage.setItem('paginationData', JSON.stringify(allPaginationData || {}));
|
|
19672
|
+
};
|
|
19673
|
+
tableProps.initialPaging.pagination.onShowSizeChange = onShowSizeChange;
|
|
19674
|
+
// 从本地存储中获取分页大小
|
|
19675
|
+
var pageSize = JSON.parse(localStorage.getItem('paginationData') || "{}")[bsTableCode];
|
|
19676
|
+
if (pageSize) {
|
|
19677
|
+
tableProps.initialPaging.pagination.pageSize = pageSize;
|
|
19678
|
+
tableProps.pageSize = pageSize;
|
|
19679
|
+
tableProps.defaultPageSize = pageSize;
|
|
19680
|
+
}
|
|
19593
19681
|
}
|
|
19594
19682
|
return tableProps;
|
|
19595
19683
|
};
|
|
@@ -19674,13 +19762,124 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19674
19762
|
if (value.rowSelection) {
|
|
19675
19763
|
value.rowSelection.columnWidth = 50;
|
|
19676
19764
|
}
|
|
19765
|
+
if (typeof props.tradeType !== 'number') {
|
|
19766
|
+
return _objectSpread2(_objectSpread2({}, value), {}, {
|
|
19767
|
+
actionsRender: actionsRender
|
|
19768
|
+
});
|
|
19769
|
+
}
|
|
19770
|
+
try {
|
|
19771
|
+
var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
|
|
19772
|
+
var entry = raw.find(function (i) {
|
|
19773
|
+
return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
|
|
19774
|
+
});
|
|
19775
|
+
if (entry) {
|
|
19776
|
+
var ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
|
|
19777
|
+
var allowedTopSet = new Set();
|
|
19778
|
+
((entry === null || entry === void 0 ? void 0 : entry.config) || []).forEach(function (c) {
|
|
19779
|
+
((c === null || c === void 0 ? void 0 : c.buttons) || []).filter(Boolean).forEach(function (b) {
|
|
19780
|
+
if (!ctrlSet.size || ctrlSet.has(b)) allowedTopSet.add(b);
|
|
19781
|
+
});
|
|
19782
|
+
});
|
|
19783
|
+
console.debug('[FlowCtrl:top]', {
|
|
19784
|
+
ctrlSize: ctrlSet.size,
|
|
19785
|
+
allowedTopSize: allowedTopSet.size
|
|
19786
|
+
});
|
|
19787
|
+
actionsRender = actionsRender.filter(function (ui) {
|
|
19788
|
+
var code = ui === null || ui === void 0 ? void 0 : ui.code;
|
|
19789
|
+
if (!code) return true;
|
|
19790
|
+
if (ctrlSet.size && !ctrlSet.has(code)) return true; // 非流程控制按钮不处理
|
|
19791
|
+
var keep = allowedTopSet.has(code);
|
|
19792
|
+
if (code) console.debug('[FlowCtrl:top-element]', {
|
|
19793
|
+
code: code,
|
|
19794
|
+
keep: keep
|
|
19795
|
+
});
|
|
19796
|
+
return keep;
|
|
19797
|
+
});
|
|
19798
|
+
}
|
|
19799
|
+
} catch (e) {}
|
|
19800
|
+
var remoteDataSource = value === null || value === void 0 ? void 0 : value.remoteDataSource;
|
|
19801
|
+
if (remoteDataSource) {
|
|
19802
|
+
var _ctrlSet = new Set();
|
|
19803
|
+
var btnStatusMap = new Map();
|
|
19804
|
+
try {
|
|
19805
|
+
var _raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
|
|
19806
|
+
var _entry = _raw.find(function (i) {
|
|
19807
|
+
return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
|
|
19808
|
+
});
|
|
19809
|
+
if (_entry) {
|
|
19810
|
+
_ctrlSet = new Set(((_entry === null || _entry === void 0 ? void 0 : _entry.controlButtons) || []).filter(Boolean));
|
|
19811
|
+
((_entry === null || _entry === void 0 ? void 0 : _entry.config) || []).forEach(function (c) {
|
|
19812
|
+
((c === null || c === void 0 ? void 0 : c.buttons) || []).filter(Boolean).forEach(function (b) {
|
|
19813
|
+
if (!_ctrlSet.size || _ctrlSet.has(b)) {
|
|
19814
|
+
var set = btnStatusMap.get(b) || new Set();
|
|
19815
|
+
set.add(c === null || c === void 0 ? void 0 : c.fromStatus);
|
|
19816
|
+
btnStatusMap.set(b, set);
|
|
19817
|
+
}
|
|
19818
|
+
});
|
|
19819
|
+
});
|
|
19820
|
+
}
|
|
19821
|
+
} catch (e) {}
|
|
19822
|
+
var getByPath = function getByPath(obj, path) {
|
|
19823
|
+
if (!obj || !path) return undefined;
|
|
19824
|
+
var parts = path.split('.');
|
|
19825
|
+
var cur = obj;
|
|
19826
|
+
for (var i = 0; i < parts.length; i++) {
|
|
19827
|
+
var _cur;
|
|
19828
|
+
cur = (_cur = cur) === null || _cur === void 0 ? void 0 : _cur[parts[i]];
|
|
19829
|
+
if (cur === undefined) return undefined;
|
|
19830
|
+
}
|
|
19831
|
+
return cur;
|
|
19832
|
+
};
|
|
19833
|
+
var statusPath = props === null || props === void 0 ? void 0 : props.statusFieldPath;
|
|
19834
|
+
var augment = function augment(result) {
|
|
19835
|
+
if (!btnStatusMap || btnStatusMap.size === 0) return result;
|
|
19836
|
+
if (result && Array.isArray(result.list)) {
|
|
19837
|
+
result.list = result.list.map(function (rec) {
|
|
19838
|
+
var _ref2, _ref3, _ref4, _rec$status;
|
|
19839
|
+
var status = statusPath ? getByPath(rec, statusPath) : (_ref2 = (_ref3 = (_ref4 = (_rec$status = rec === null || rec === void 0 ? void 0 : rec.status) !== null && _rec$status !== void 0 ? _rec$status : rec === null || rec === void 0 ? void 0 : rec.orderStatus) !== null && _ref4 !== void 0 ? _ref4 : rec === null || rec === void 0 ? void 0 : rec.flowStatus) !== null && _ref3 !== void 0 ? _ref3 : rec === null || rec === void 0 ? void 0 : rec.tradeStatus) !== null && _ref2 !== void 0 ? _ref2 : rec === null || rec === void 0 ? void 0 : rec.currentStatus;
|
|
19840
|
+
var map = {};
|
|
19841
|
+
btnStatusMap.forEach(function (set, code) {
|
|
19842
|
+
map[code] = set.has(status) ? true : undefined;
|
|
19843
|
+
});
|
|
19844
|
+
return _objectSpread2(_objectSpread2({}, rec), {}, {
|
|
19845
|
+
__flowAllowedMap: map
|
|
19846
|
+
});
|
|
19847
|
+
});
|
|
19848
|
+
}
|
|
19849
|
+
return result;
|
|
19850
|
+
};
|
|
19851
|
+
if (Array.isArray(remoteDataSource.converter)) {
|
|
19852
|
+
var stages = remoteDataSource.converter;
|
|
19853
|
+
var pipeline = function pipeline(args) {
|
|
19854
|
+
var res = args;
|
|
19855
|
+
for (var i = 0; i < stages.length; i++) {
|
|
19856
|
+
res = stages[i](res);
|
|
19857
|
+
}
|
|
19858
|
+
res = augment(res);
|
|
19859
|
+
return res;
|
|
19860
|
+
};
|
|
19861
|
+
remoteDataSource = _objectSpread2(_objectSpread2({}, remoteDataSource), {}, {
|
|
19862
|
+
converter: pipeline
|
|
19863
|
+
});
|
|
19864
|
+
} else if (typeof remoteDataSource.converter === 'function') {
|
|
19865
|
+
var orig = remoteDataSource.converter;
|
|
19866
|
+
var wrap = function wrap(args) {
|
|
19867
|
+
var res = orig(args);
|
|
19868
|
+
return augment(res);
|
|
19869
|
+
};
|
|
19870
|
+
remoteDataSource = _objectSpread2(_objectSpread2({}, remoteDataSource), {}, {
|
|
19871
|
+
converter: wrap
|
|
19872
|
+
});
|
|
19873
|
+
}
|
|
19874
|
+
}
|
|
19677
19875
|
return _objectSpread2(_objectSpread2({}, value), {}, {
|
|
19678
|
-
actionsRender: actionsRender
|
|
19876
|
+
actionsRender: actionsRender,
|
|
19877
|
+
remoteDataSource: remoteDataSource
|
|
19679
19878
|
});
|
|
19680
19879
|
};
|
|
19681
19880
|
var handleResize = function handleResize(index) {
|
|
19682
|
-
return function (e,
|
|
19683
|
-
var size =
|
|
19881
|
+
return function (e, _ref5) {
|
|
19882
|
+
var size = _ref5.size;
|
|
19684
19883
|
setShowColumns(function (columns) {
|
|
19685
19884
|
var newColumns = _toConsumableArray(columns);
|
|
19686
19885
|
newColumns[index] = _objectSpread2(_objectSpread2({}, newColumns[index]), {}, {
|
|
@@ -19708,11 +19907,66 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19708
19907
|
// 优化一下 减少复杂度
|
|
19709
19908
|
var titleMap = toMapByKey(value.columns, 'title');
|
|
19710
19909
|
// 加上排序
|
|
19910
|
+
var hasFlowEntry = typeof props.tradeType === 'number' && function () {
|
|
19911
|
+
try {
|
|
19912
|
+
var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
|
|
19913
|
+
return !!raw.find(function (i) {
|
|
19914
|
+
return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
|
|
19915
|
+
});
|
|
19916
|
+
} catch (e) {
|
|
19917
|
+
return false;
|
|
19918
|
+
}
|
|
19919
|
+
}();
|
|
19920
|
+
var hasControlRange = typeof props.tradeType === 'number' && function () {
|
|
19921
|
+
try {
|
|
19922
|
+
var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
|
|
19923
|
+
var entry = raw.find(function (i) {
|
|
19924
|
+
return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
|
|
19925
|
+
});
|
|
19926
|
+
if (!entry) return false;
|
|
19927
|
+
var _ctrlSet2 = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
|
|
19928
|
+
return _ctrlSet2.size > 0;
|
|
19929
|
+
} catch (e) {
|
|
19930
|
+
return false;
|
|
19931
|
+
}
|
|
19932
|
+
}();
|
|
19933
|
+
var toExpr = function toExpr(v) {
|
|
19934
|
+
if (typeof v === 'string') return v.replace(/^#\{|\}$/g, '');
|
|
19935
|
+
if (v === undefined) return 'true';
|
|
19936
|
+
return v ? 'true' : 'false';
|
|
19937
|
+
};
|
|
19938
|
+
// 读取当前 tradeType 的控制范围,用于只在控制按钮上追加流程表达式
|
|
19939
|
+
var ctrlSet = new Set();
|
|
19940
|
+
if (hasFlowEntry) {
|
|
19941
|
+
try {
|
|
19942
|
+
var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
|
|
19943
|
+
var entry = raw.find(function (i) {
|
|
19944
|
+
return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
|
|
19945
|
+
});
|
|
19946
|
+
if (entry) ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
|
|
19947
|
+
} catch (e) {}
|
|
19948
|
+
}
|
|
19949
|
+
var augmentPermissionRender = function augmentPermissionRender(arr, set) {
|
|
19950
|
+
return arr.map(function (el) {
|
|
19951
|
+
var code = el === null || el === void 0 ? void 0 : el.code;
|
|
19952
|
+
if (!code) return el;
|
|
19953
|
+
// 非控制范围按钮不追加流程控制,保持原 visible
|
|
19954
|
+
if (!set || set.size === 0 || !set.has(code)) return el;
|
|
19955
|
+
var base = toExpr(el.visible);
|
|
19956
|
+
var flow = "record.__flowAllowedMap['".concat(code, "'] == true");
|
|
19957
|
+
return _objectSpread2(_objectSpread2({}, el), {}, {
|
|
19958
|
+
visible: "#{(".concat(base, ") && (").concat(flow, ")}")
|
|
19959
|
+
});
|
|
19960
|
+
});
|
|
19961
|
+
};
|
|
19711
19962
|
var cols = showColumn.map(function (i) {
|
|
19712
|
-
var
|
|
19963
|
+
var orig = titleMap[renderToString(i.title)] || {};
|
|
19964
|
+
var origRender = orig.render;
|
|
19965
|
+
var isPerm = orig.isPermissionColumn;
|
|
19966
|
+
var newRender = Array.isArray(origRender) && isPerm && hasFlowEntry && hasControlRange ? augmentPermissionRender(origRender, ctrlSet) : origRender;
|
|
19713
19967
|
return _objectSpread2(_objectSpread2({}, i), {}, {
|
|
19714
|
-
isPermissionColumn:
|
|
19715
|
-
render:
|
|
19968
|
+
isPermissionColumn: isPerm,
|
|
19969
|
+
render: newRender
|
|
19716
19970
|
});
|
|
19717
19971
|
});
|
|
19718
19972
|
cols.forEach(function (i) {
|
|
@@ -19885,6 +20139,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19885
20139
|
id: "bs-sula-query-table"
|
|
19886
20140
|
}, /*#__PURE__*/React__default['default'].createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
|
|
19887
20141
|
ref: sortTableRef,
|
|
20142
|
+
disableColumnFixed: (_props$tableProps = props.tableProps) === null || _props$tableProps === void 0 ? void 0 : _props$tableProps.isVirtualTable,
|
|
19888
20143
|
setShowColumns: setResizeShowColumns,
|
|
19889
20144
|
showColumn: showColumn,
|
|
19890
20145
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -19961,7 +20216,7 @@ var matchPath = function matchPath(pathname) {
|
|
|
19961
20216
|
if (!match) return null;
|
|
19962
20217
|
var _match = _toArray(match),
|
|
19963
20218
|
url = _match[0],
|
|
19964
|
-
values = _match.slice(1);
|
|
20219
|
+
values = _arrayLikeToArray(_match).slice(1);
|
|
19965
20220
|
var isExact = pathname === url;
|
|
19966
20221
|
if (exact && !isExact) return null;
|
|
19967
20222
|
return {
|
|
@@ -20381,22 +20636,19 @@ function outLogin(_x) {
|
|
|
20381
20636
|
return _outLogin.apply(this, arguments);
|
|
20382
20637
|
}
|
|
20383
20638
|
function _outLogin() {
|
|
20384
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
20639
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20385
20640
|
var res;
|
|
20386
|
-
return
|
|
20387
|
-
while (1) switch (_context.
|
|
20641
|
+
return _regenerator().w(function (_context) {
|
|
20642
|
+
while (1) switch (_context.n) {
|
|
20388
20643
|
case 0:
|
|
20389
|
-
_context.
|
|
20644
|
+
_context.n = 1;
|
|
20390
20645
|
return requestUtil({
|
|
20391
20646
|
url: '/user/web/loginOut',
|
|
20392
20647
|
method: 'GET'
|
|
20393
20648
|
});
|
|
20394
|
-
case
|
|
20395
|
-
res = _context.
|
|
20396
|
-
return _context.
|
|
20397
|
-
case 4:
|
|
20398
|
-
case "end":
|
|
20399
|
-
return _context.stop();
|
|
20649
|
+
case 1:
|
|
20650
|
+
res = _context.v;
|
|
20651
|
+
return _context.a(2, res);
|
|
20400
20652
|
}
|
|
20401
20653
|
}, _callee);
|
|
20402
20654
|
}));
|
|
@@ -20523,20 +20775,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20523
20775
|
});
|
|
20524
20776
|
};
|
|
20525
20777
|
var loginOut = /*#__PURE__*/function () {
|
|
20526
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
20778
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
20527
20779
|
var sessionId;
|
|
20528
|
-
return
|
|
20529
|
-
while (1) switch (_context.
|
|
20780
|
+
return _regenerator().w(function (_context) {
|
|
20781
|
+
while (1) switch (_context.n) {
|
|
20530
20782
|
case 0:
|
|
20531
|
-
_context.
|
|
20783
|
+
_context.n = 1;
|
|
20532
20784
|
return getSessionId();
|
|
20533
|
-
case
|
|
20534
|
-
sessionId = _context.
|
|
20535
|
-
_context.
|
|
20785
|
+
case 1:
|
|
20786
|
+
sessionId = _context.v;
|
|
20787
|
+
_context.n = 2;
|
|
20536
20788
|
return outLogin({
|
|
20537
20789
|
sessionId: sessionId
|
|
20538
20790
|
});
|
|
20539
|
-
case
|
|
20791
|
+
case 2:
|
|
20540
20792
|
// @ts-ignore
|
|
20541
20793
|
if (BUILD_TYPE) {
|
|
20542
20794
|
antd.message.success('退出登录成功');
|
|
@@ -20546,9 +20798,8 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20546
20798
|
} else {
|
|
20547
20799
|
setLoginOutPath();
|
|
20548
20800
|
}
|
|
20549
|
-
case
|
|
20550
|
-
|
|
20551
|
-
return _context.stop();
|
|
20801
|
+
case 3:
|
|
20802
|
+
return _context.a(2);
|
|
20552
20803
|
}
|
|
20553
20804
|
}, _callee);
|
|
20554
20805
|
}));
|
|
@@ -20635,18 +20886,15 @@ function getStoreByName(_x) {
|
|
|
20635
20886
|
return _getStoreByName.apply(this, arguments);
|
|
20636
20887
|
}
|
|
20637
20888
|
function _getStoreByName() {
|
|
20638
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20639
|
-
return
|
|
20640
|
-
while (1) switch (_context.
|
|
20889
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20890
|
+
return _regenerator().w(function (_context) {
|
|
20891
|
+
while (1) switch (_context.n) {
|
|
20641
20892
|
case 0:
|
|
20642
|
-
return _context.
|
|
20893
|
+
return _context.a(2, requestUtil({
|
|
20643
20894
|
url: '/store-house/orgViewNode/listNoPage',
|
|
20644
20895
|
method: 'GET',
|
|
20645
20896
|
params: _objectSpread2({}, params)
|
|
20646
20897
|
}));
|
|
20647
|
-
case 1:
|
|
20648
|
-
case "end":
|
|
20649
|
-
return _context.stop();
|
|
20650
20898
|
}
|
|
20651
20899
|
}, _callee);
|
|
20652
20900
|
}));
|
|
@@ -20681,33 +20929,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20681
20929
|
openSelect = _useState8[0],
|
|
20682
20930
|
setOpenSelect = _useState8[1];
|
|
20683
20931
|
var _useState9 = React$1.useState([]),
|
|
20684
|
-
|
|
20685
|
-
options =
|
|
20686
|
-
setOptions =
|
|
20687
|
-
var
|
|
20932
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
20933
|
+
options = _useState0[0],
|
|
20934
|
+
setOptions = _useState0[1];
|
|
20935
|
+
var _useState1 = React$1.useState([]),
|
|
20936
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
20937
|
+
rescouse = _useState10[0],
|
|
20938
|
+
setRescouse = _useState10[1];
|
|
20939
|
+
var _useState11 = React$1.useState(''),
|
|
20688
20940
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
20689
|
-
|
|
20690
|
-
|
|
20691
|
-
var _useState13 = React$1.useState(
|
|
20692
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
20693
|
-
searchValue = _useState14[0],
|
|
20694
|
-
setSearchValue = _useState14[1];
|
|
20695
|
-
var _useState15 = React$1.useState([{
|
|
20941
|
+
searchValue = _useState12[0],
|
|
20942
|
+
setSearchValue = _useState12[1];
|
|
20943
|
+
var _useState13 = React$1.useState([{
|
|
20696
20944
|
label: name,
|
|
20697
20945
|
value: code
|
|
20698
20946
|
}]),
|
|
20699
|
-
|
|
20700
|
-
store =
|
|
20701
|
-
setStore =
|
|
20947
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
20948
|
+
store = _useState14[0],
|
|
20949
|
+
setStore = _useState14[1];
|
|
20702
20950
|
function fetchUserList(_x, _x2) {
|
|
20703
20951
|
return _fetchUserList.apply(this, arguments);
|
|
20704
20952
|
}
|
|
20705
20953
|
function _fetchUserList() {
|
|
20706
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
20707
|
-
return
|
|
20708
|
-
while (1) switch (_context3.
|
|
20954
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(storeName, init) {
|
|
20955
|
+
return _regenerator().w(function (_context3) {
|
|
20956
|
+
while (1) switch (_context3.n) {
|
|
20709
20957
|
case 0:
|
|
20710
|
-
return _context3.
|
|
20958
|
+
return _context3.a(2, getStoreByName({
|
|
20711
20959
|
orgName: storeName ? storeName : undefined,
|
|
20712
20960
|
platCompanyCode: init ? undefined : key,
|
|
20713
20961
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -20726,9 +20974,6 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20726
20974
|
};
|
|
20727
20975
|
});
|
|
20728
20976
|
}));
|
|
20729
|
-
case 1:
|
|
20730
|
-
case "end":
|
|
20731
|
-
return _context3.stop();
|
|
20732
20977
|
}
|
|
20733
20978
|
}, _callee3);
|
|
20734
20979
|
}));
|
|
@@ -20751,20 +20996,19 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20751
20996
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
20752
20997
|
}, [debounceTimeout, key]);
|
|
20753
20998
|
var changeInput = /*#__PURE__*/function () {
|
|
20754
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
20999
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
|
|
20755
21000
|
var res;
|
|
20756
|
-
return
|
|
20757
|
-
while (1) switch (_context.
|
|
21001
|
+
return _regenerator().w(function (_context) {
|
|
21002
|
+
while (1) switch (_context.n) {
|
|
20758
21003
|
case 0:
|
|
20759
|
-
_context.
|
|
21004
|
+
_context.n = 1;
|
|
20760
21005
|
return debounceFetcher(str);
|
|
20761
|
-
case
|
|
20762
|
-
res = _context.
|
|
21006
|
+
case 1:
|
|
21007
|
+
res = _context.v;
|
|
20763
21008
|
setOptions(res);
|
|
20764
21009
|
setRescouse(res);
|
|
20765
|
-
case
|
|
20766
|
-
|
|
20767
|
-
return _context.stop();
|
|
21010
|
+
case 2:
|
|
21011
|
+
return _context.a(2);
|
|
20768
21012
|
}
|
|
20769
21013
|
}, _callee);
|
|
20770
21014
|
}));
|
|
@@ -20773,15 +21017,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20773
21017
|
};
|
|
20774
21018
|
}();
|
|
20775
21019
|
React$1.useEffect(function () {
|
|
20776
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
21020
|
+
_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
20777
21021
|
var res;
|
|
20778
|
-
return
|
|
20779
|
-
while (1) switch (_context2.
|
|
21022
|
+
return _regenerator().w(function (_context2) {
|
|
21023
|
+
while (1) switch (_context2.n) {
|
|
20780
21024
|
case 0:
|
|
20781
|
-
_context2.
|
|
21025
|
+
_context2.n = 1;
|
|
20782
21026
|
return fetchUserList(undefined, true);
|
|
20783
|
-
case
|
|
20784
|
-
res = _context2.
|
|
21027
|
+
case 1:
|
|
21028
|
+
res = _context2.v;
|
|
20785
21029
|
res.map(function (item, indexNumber) {
|
|
20786
21030
|
if (item.label === name) {
|
|
20787
21031
|
setIndex(indexNumber);
|
|
@@ -20797,9 +21041,8 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20797
21041
|
});
|
|
20798
21042
|
setOptions(res);
|
|
20799
21043
|
setRescouse(res);
|
|
20800
|
-
case
|
|
20801
|
-
|
|
20802
|
-
return _context2.stop();
|
|
21044
|
+
case 2:
|
|
21045
|
+
return _context2.a(2);
|
|
20803
21046
|
}
|
|
20804
21047
|
}, _callee2);
|
|
20805
21048
|
}))();
|
|
@@ -21848,25 +22091,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
21848
22091
|
currentOneLevel = _useState8[0],
|
|
21849
22092
|
setCurrentOneLevel = _useState8[1];
|
|
21850
22093
|
var _useState9 = React$1.useState([]),
|
|
21851
|
-
|
|
21852
|
-
SearhData =
|
|
21853
|
-
setSearchMenuData =
|
|
21854
|
-
var
|
|
22094
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
22095
|
+
SearhData = _useState0[0],
|
|
22096
|
+
setSearchMenuData = _useState0[1];
|
|
22097
|
+
var _useState1 = React$1.useState(600),
|
|
22098
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
22099
|
+
rightMenuHeight = _useState10[0],
|
|
22100
|
+
setHeight = _useState10[1];
|
|
22101
|
+
var _useState11 = React$1.useState(900),
|
|
21855
22102
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
21856
|
-
|
|
21857
|
-
|
|
21858
|
-
var _useState13 = React$1.useState(
|
|
22103
|
+
drawHeight = _useState12[0],
|
|
22104
|
+
setDrawHeight = _useState12[1];
|
|
22105
|
+
var _useState13 = React$1.useState(false),
|
|
21859
22106
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
21860
|
-
|
|
21861
|
-
|
|
22107
|
+
moreBtnShow = _useState14[0],
|
|
22108
|
+
setMoreBtnShow = _useState14[1];
|
|
21862
22109
|
var _useState15 = React$1.useState(false),
|
|
21863
22110
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
21864
|
-
|
|
21865
|
-
|
|
21866
|
-
var _useState17 = React$1.useState(false),
|
|
21867
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
21868
|
-
showScroll = _useState18[0],
|
|
21869
|
-
setShowScroll = _useState18[1];
|
|
22111
|
+
showScroll = _useState16[0],
|
|
22112
|
+
setShowScroll = _useState16[1];
|
|
21870
22113
|
React$1.useEffect(function () {
|
|
21871
22114
|
var _originRoutes$find;
|
|
21872
22115
|
getMenuContentHeight();
|
|
@@ -23477,14 +23720,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23477
23720
|
},
|
|
23478
23721
|
menu: {
|
|
23479
23722
|
request: function () {
|
|
23480
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23481
|
-
return
|
|
23482
|
-
while (1) switch (_context.
|
|
23723
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
23724
|
+
return _regenerator().w(function (_context) {
|
|
23725
|
+
while (1) switch (_context.n) {
|
|
23483
23726
|
case 0:
|
|
23484
|
-
return _context.
|
|
23485
|
-
case 1:
|
|
23486
|
-
case "end":
|
|
23487
|
-
return _context.stop();
|
|
23727
|
+
return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
23488
23728
|
}
|
|
23489
23729
|
}, _callee);
|
|
23490
23730
|
}));
|
|
@@ -23889,31 +24129,31 @@ var index$6 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
23889
24129
|
multiTableData = _useState8[0],
|
|
23890
24130
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
23891
24131
|
var _useState9 = React$1.useState(10),
|
|
23892
|
-
|
|
23893
|
-
viewCount =
|
|
23894
|
-
setViewCount =
|
|
24132
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
24133
|
+
viewCount = _useState0[0],
|
|
24134
|
+
setViewCount = _useState0[1]; //虚拟表格每次渲染数量
|
|
23895
24135
|
var itemWidth = 100; // 表格每一项宽度
|
|
23896
|
-
var
|
|
23897
|
-
|
|
23898
|
-
realColHeaderWidth =
|
|
23899
|
-
setLeftWidth =
|
|
24136
|
+
var _useState1 = React$1.useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
|
|
24137
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
24138
|
+
realColHeaderWidth = _useState10[0],
|
|
24139
|
+
setLeftWidth = _useState10[1];
|
|
23900
24140
|
var viewPort = React$1.useRef(null);
|
|
23901
24141
|
var topScrollBar = React$1.useRef(null);
|
|
23902
24142
|
var leftTableRef = React$1.useRef(null);
|
|
23903
24143
|
//起始渲染item
|
|
23904
|
-
var
|
|
23905
|
-
|
|
23906
|
-
startIndex =
|
|
23907
|
-
setStartIndex =
|
|
24144
|
+
var _useState11 = React$1.useState(0),
|
|
24145
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
24146
|
+
startIndex = _useState12[0],
|
|
24147
|
+
setStartIndex = _useState12[1];
|
|
23908
24148
|
//结束渲染item
|
|
23909
24149
|
var endIndex = React$1.useMemo(function () {
|
|
23910
24150
|
return startIndex + viewCount;
|
|
23911
24151
|
}, [startIndex, viewCount]);
|
|
23912
24152
|
//表格偏移量
|
|
23913
|
-
var
|
|
23914
|
-
|
|
23915
|
-
offsetWidth =
|
|
23916
|
-
setOffset =
|
|
24153
|
+
var _useState13 = React$1.useState(0),
|
|
24154
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
24155
|
+
offsetWidth = _useState14[0],
|
|
24156
|
+
setOffset = _useState14[1];
|
|
23917
24157
|
React$1.useEffect(function () {
|
|
23918
24158
|
setTimeout(function () {
|
|
23919
24159
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -31217,11 +31457,11 @@ var valueType = {
|
|
|
31217
31457
|
};
|
|
31218
31458
|
|
|
31219
31459
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
31220
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
31221
|
-
return
|
|
31222
|
-
while (1) switch (_context.
|
|
31460
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(dictionaryCode) {
|
|
31461
|
+
return _regenerator().w(function (_context) {
|
|
31462
|
+
while (1) switch (_context.n) {
|
|
31223
31463
|
case 0:
|
|
31224
|
-
_context.
|
|
31464
|
+
_context.n = 1;
|
|
31225
31465
|
return bssula.request({
|
|
31226
31466
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
31227
31467
|
converter: function converter(_ref2) {
|
|
@@ -31234,11 +31474,8 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
31234
31474
|
});
|
|
31235
31475
|
}
|
|
31236
31476
|
});
|
|
31237
|
-
case
|
|
31238
|
-
return _context.
|
|
31239
|
-
case 3:
|
|
31240
|
-
case "end":
|
|
31241
|
-
return _context.stop();
|
|
31477
|
+
case 1:
|
|
31478
|
+
return _context.a(2, _context.v);
|
|
31242
31479
|
}
|
|
31243
31480
|
}, _callee);
|
|
31244
31481
|
}));
|
|
@@ -31285,12 +31522,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31285
31522
|
value: false
|
|
31286
31523
|
}];
|
|
31287
31524
|
var ref = React$1.useRef();
|
|
31288
|
-
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
31289
|
-
var _ref$current, source;
|
|
31290
|
-
return
|
|
31291
|
-
while (1) switch (_context.
|
|
31525
|
+
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
31526
|
+
var _ref$current, source, _t, _t2;
|
|
31527
|
+
return _regenerator().w(function (_context) {
|
|
31528
|
+
while (1) switch (_context.n) {
|
|
31292
31529
|
case 0:
|
|
31293
|
-
_context.
|
|
31530
|
+
_context.n = 1;
|
|
31294
31531
|
return setIsShowAndType(function (prev) {
|
|
31295
31532
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
31296
31533
|
return {
|
|
@@ -31301,40 +31538,39 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31301
31538
|
}
|
|
31302
31539
|
return prev;
|
|
31303
31540
|
});
|
|
31304
|
-
case
|
|
31541
|
+
case 1:
|
|
31305
31542
|
if (!record.dictionaryCode) {
|
|
31306
|
-
_context.
|
|
31543
|
+
_context.n = 7;
|
|
31307
31544
|
break;
|
|
31308
31545
|
}
|
|
31309
31546
|
if (!(record.choiceType == 20)) {
|
|
31310
|
-
_context.
|
|
31547
|
+
_context.n = 2;
|
|
31311
31548
|
break;
|
|
31312
31549
|
}
|
|
31313
|
-
|
|
31314
|
-
_context.
|
|
31550
|
+
_t = getDictionarySource(record.dictionaryCode);
|
|
31551
|
+
_context.n = 6;
|
|
31315
31552
|
break;
|
|
31316
|
-
case
|
|
31553
|
+
case 2:
|
|
31317
31554
|
if (!(record.choiceType == 30)) {
|
|
31318
|
-
_context.
|
|
31555
|
+
_context.n = 4;
|
|
31319
31556
|
break;
|
|
31320
31557
|
}
|
|
31321
|
-
_context.
|
|
31558
|
+
_context.n = 3;
|
|
31322
31559
|
return getDynamicDict(record.dictionaryCode);
|
|
31323
|
-
case
|
|
31324
|
-
|
|
31325
|
-
_context.
|
|
31560
|
+
case 3:
|
|
31561
|
+
_t2 = _context.v;
|
|
31562
|
+
_context.n = 5;
|
|
31326
31563
|
break;
|
|
31327
|
-
case
|
|
31328
|
-
|
|
31329
|
-
case
|
|
31330
|
-
|
|
31331
|
-
case
|
|
31332
|
-
source =
|
|
31564
|
+
case 4:
|
|
31565
|
+
_t2 = [];
|
|
31566
|
+
case 5:
|
|
31567
|
+
_t = _t2;
|
|
31568
|
+
case 6:
|
|
31569
|
+
source = _t;
|
|
31333
31570
|
// @ts-ignore
|
|
31334
31571
|
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
31335
|
-
case
|
|
31336
|
-
|
|
31337
|
-
return _context.stop();
|
|
31572
|
+
case 7:
|
|
31573
|
+
return _context.a(2);
|
|
31338
31574
|
}
|
|
31339
31575
|
}, _callee);
|
|
31340
31576
|
})));
|
|
@@ -31399,10 +31635,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31399
31635
|
source: {
|
|
31400
31636
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
31401
31637
|
type: function () {
|
|
31402
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
31638
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
|
|
31403
31639
|
var form, values, name, relates, source;
|
|
31404
|
-
return
|
|
31405
|
-
while (1) switch (_context2.
|
|
31640
|
+
return _regenerator().w(function (_context2) {
|
|
31641
|
+
while (1) switch (_context2.n) {
|
|
31406
31642
|
case 0:
|
|
31407
31643
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
31408
31644
|
if (values[0]) {
|
|
@@ -31411,19 +31647,18 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31411
31647
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
31412
31648
|
}
|
|
31413
31649
|
if (!values[1]) {
|
|
31414
|
-
_context2.
|
|
31650
|
+
_context2.n = 2;
|
|
31415
31651
|
break;
|
|
31416
31652
|
}
|
|
31417
|
-
_context2.
|
|
31653
|
+
_context2.n = 1;
|
|
31418
31654
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
31419
|
-
case
|
|
31420
|
-
source = _context2.
|
|
31655
|
+
case 1:
|
|
31656
|
+
source = _context2.v;
|
|
31421
31657
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
31422
31658
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
31423
31659
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
31424
|
-
case
|
|
31425
|
-
|
|
31426
|
-
return _context2.stop();
|
|
31660
|
+
case 2:
|
|
31661
|
+
return _context2.a(2);
|
|
31427
31662
|
}
|
|
31428
31663
|
}, _callee2);
|
|
31429
31664
|
}));
|
|
@@ -31879,25 +32114,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31879
32114
|
source: {
|
|
31880
32115
|
relates: ['choiceType', 'inputType'],
|
|
31881
32116
|
type: function () {
|
|
31882
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
32117
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
|
|
31883
32118
|
var values, name, form, source;
|
|
31884
|
-
return
|
|
31885
|
-
while (1) switch (_context3.
|
|
32119
|
+
return _regenerator().w(function (_context3) {
|
|
32120
|
+
while (1) switch (_context3.n) {
|
|
31886
32121
|
case 0:
|
|
31887
|
-
values =
|
|
32122
|
+
values = _ref0.values, name = _ref0.name, form = _ref0.form;
|
|
31888
32123
|
if (values[1] === 40) {
|
|
31889
32124
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
31890
32125
|
form.setFieldVisible(name, false);
|
|
31891
32126
|
}
|
|
31892
32127
|
if (!(values[0] === 30)) {
|
|
31893
|
-
_context3.
|
|
32128
|
+
_context3.n = 2;
|
|
31894
32129
|
break;
|
|
31895
32130
|
}
|
|
31896
|
-
_context3.
|
|
32131
|
+
_context3.n = 1;
|
|
31897
32132
|
return bssula.request({
|
|
31898
32133
|
url: '/basic/dictDynamicItem/queryList',
|
|
31899
|
-
converter: function converter(
|
|
31900
|
-
var data =
|
|
32134
|
+
converter: function converter(_ref1) {
|
|
32135
|
+
var data = _ref1.data;
|
|
31901
32136
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31902
32137
|
return {
|
|
31903
32138
|
text: d.dictCode,
|
|
@@ -31906,17 +32141,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31906
32141
|
});
|
|
31907
32142
|
}
|
|
31908
32143
|
});
|
|
31909
|
-
case
|
|
31910
|
-
source = _context3.
|
|
32144
|
+
case 1:
|
|
32145
|
+
source = _context3.v;
|
|
31911
32146
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
31912
32147
|
form.setFieldVisible(name, true);
|
|
31913
|
-
_context3.
|
|
32148
|
+
_context3.n = 3;
|
|
31914
32149
|
break;
|
|
31915
|
-
case
|
|
32150
|
+
case 2:
|
|
31916
32151
|
form.setFieldVisible(name, false);
|
|
31917
|
-
case
|
|
31918
|
-
|
|
31919
|
-
return _context3.stop();
|
|
32152
|
+
case 3:
|
|
32153
|
+
return _context3.a(2);
|
|
31920
32154
|
}
|
|
31921
32155
|
}, _callee3);
|
|
31922
32156
|
}));
|
|
@@ -31931,8 +32165,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31931
32165
|
name: 'enumeration',
|
|
31932
32166
|
label: '维护自定义选项',
|
|
31933
32167
|
field: {
|
|
31934
|
-
type: function type(
|
|
31935
|
-
var form =
|
|
32168
|
+
type: function type(_ref10) {
|
|
32169
|
+
var form = _ref10.form;
|
|
31936
32170
|
return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
31937
32171
|
type: 'link',
|
|
31938
32172
|
onClick: function onClick() {
|
|
@@ -31958,10 +32192,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31958
32192
|
dependency: {
|
|
31959
32193
|
source: {
|
|
31960
32194
|
relates: ['choiceType'],
|
|
31961
|
-
type: function type(
|
|
31962
|
-
var values =
|
|
31963
|
-
name =
|
|
31964
|
-
form =
|
|
32195
|
+
type: function type(_ref11) {
|
|
32196
|
+
var values = _ref11.values,
|
|
32197
|
+
name = _ref11.name,
|
|
32198
|
+
form = _ref11.form;
|
|
31965
32199
|
if (values[0] === 10) {
|
|
31966
32200
|
form.setFieldVisible(name, true);
|
|
31967
32201
|
} else {
|
|
@@ -31977,10 +32211,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31977
32211
|
dependency: {
|
|
31978
32212
|
visible: {
|
|
31979
32213
|
relates: ['choiceType'],
|
|
31980
|
-
type: function type(
|
|
31981
|
-
var name =
|
|
31982
|
-
values =
|
|
31983
|
-
form =
|
|
32214
|
+
type: function type(_ref12) {
|
|
32215
|
+
var name = _ref12.name,
|
|
32216
|
+
values = _ref12.values,
|
|
32217
|
+
form = _ref12.form;
|
|
31984
32218
|
if (values[0] == 330) {
|
|
31985
32219
|
form.setFieldVisible(name, true);
|
|
31986
32220
|
} else {
|
|
@@ -32004,8 +32238,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32004
32238
|
params: {
|
|
32005
32239
|
'qp-businessType-eq': record.businessType
|
|
32006
32240
|
},
|
|
32007
|
-
converter: function converter(
|
|
32008
|
-
var data =
|
|
32241
|
+
converter: function converter(_ref13) {
|
|
32242
|
+
var data = _ref13.data;
|
|
32009
32243
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32010
32244
|
return {
|
|
32011
32245
|
text: d.name,
|
|
@@ -32045,8 +32279,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32045
32279
|
'qp-businessType-eq': record.businessType,
|
|
32046
32280
|
'qp-status-eq': 1
|
|
32047
32281
|
},
|
|
32048
|
-
converter: function converter(
|
|
32049
|
-
var data =
|
|
32282
|
+
converter: function converter(_ref14) {
|
|
32283
|
+
var data = _ref14.data;
|
|
32050
32284
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32051
32285
|
var _d$code;
|
|
32052
32286
|
return {
|
|
@@ -32074,8 +32308,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32074
32308
|
remoteSource: {
|
|
32075
32309
|
url: lineDetail.moduleType == 1 ? "/basic/planModelField/listNoPage?qp-modelCode-eq=".concat(lineDetail === null || lineDetail === void 0 ? void 0 : lineDetail.moduleRelationId) : "/basic/flow/businessField/metaFieldMapping?metaEntityCode=".concat(lineDetail === null || lineDetail === void 0 ? void 0 : lineDetail.moduleRelationId, "&fieldMapping=").concat(record === null || record === void 0 ? void 0 : record.fieldMapping),
|
|
32076
32310
|
method: 'get',
|
|
32077
|
-
converter: function converter(
|
|
32078
|
-
var data =
|
|
32311
|
+
converter: function converter(_ref15) {
|
|
32312
|
+
var data = _ref15.data;
|
|
32079
32313
|
if (lineDetail.moduleType == 1) {
|
|
32080
32314
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32081
32315
|
return {
|
|
@@ -32101,16 +32335,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32101
32335
|
width: 900,
|
|
32102
32336
|
maskClosable: false,
|
|
32103
32337
|
onOk: function () {
|
|
32104
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
32338
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
32105
32339
|
var _ref$current4, _res$editableStatus;
|
|
32106
32340
|
var res, _res$defaultValue;
|
|
32107
|
-
return
|
|
32108
|
-
while (1) switch (_context4.
|
|
32341
|
+
return _regenerator().w(function (_context4) {
|
|
32342
|
+
while (1) switch (_context4.n) {
|
|
32109
32343
|
case 0:
|
|
32110
|
-
_context4.
|
|
32344
|
+
_context4.n = 1;
|
|
32111
32345
|
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
32112
|
-
case
|
|
32113
|
-
res = _context4.
|
|
32346
|
+
case 1:
|
|
32347
|
+
res = _context4.v;
|
|
32114
32348
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
32115
32349
|
res.fieldGroup = record.fieldGroup;
|
|
32116
32350
|
res.businessType = record.businessType;
|
|
@@ -32137,7 +32371,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32137
32371
|
delete res.formula;
|
|
32138
32372
|
delete res.showValue;
|
|
32139
32373
|
if (!(mode === 'create')) {
|
|
32140
|
-
_context4.
|
|
32374
|
+
_context4.n = 2;
|
|
32141
32375
|
break;
|
|
32142
32376
|
}
|
|
32143
32377
|
bssula.request({
|
|
@@ -32149,8 +32383,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32149
32383
|
onParentOk();
|
|
32150
32384
|
}
|
|
32151
32385
|
});
|
|
32152
|
-
return _context4.
|
|
32153
|
-
case
|
|
32386
|
+
return _context4.a(2);
|
|
32387
|
+
case 2:
|
|
32154
32388
|
bssula.request({
|
|
32155
32389
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
32156
32390
|
method: 'PATCH',
|
|
@@ -32160,9 +32394,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32160
32394
|
onParentOk();
|
|
32161
32395
|
}
|
|
32162
32396
|
});
|
|
32163
|
-
case
|
|
32164
|
-
|
|
32165
|
-
return _context4.stop();
|
|
32397
|
+
case 3:
|
|
32398
|
+
return _context4.a(2);
|
|
32166
32399
|
}
|
|
32167
32400
|
}, _callee4);
|
|
32168
32401
|
}));
|
|
@@ -32618,21 +32851,21 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
32618
32851
|
jsonEditorVal = _useState8[0],
|
|
32619
32852
|
setJsonEditorVal = _useState8[1];
|
|
32620
32853
|
var _useState9 = React$1.useState({}),
|
|
32621
|
-
|
|
32622
|
-
moduleParams =
|
|
32623
|
-
setModuleParams =
|
|
32624
|
-
var
|
|
32854
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
32855
|
+
moduleParams = _useState0[0],
|
|
32856
|
+
setModuleParams = _useState0[1];
|
|
32857
|
+
var _useState1 = React$1.useState('main'),
|
|
32858
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
32859
|
+
activeKey = _useState10[0],
|
|
32860
|
+
setActiveKey = _useState10[1]; //默认详情页配置
|
|
32861
|
+
var _useState11 = React$1.useState({}),
|
|
32625
32862
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32626
|
-
|
|
32627
|
-
|
|
32628
|
-
var _useState13 = React$1.useState(
|
|
32863
|
+
tablesConfigParams = _useState12[0],
|
|
32864
|
+
setTablesConfigParams = _useState12[1];
|
|
32865
|
+
var _useState13 = React$1.useState([]),
|
|
32629
32866
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32630
|
-
|
|
32631
|
-
|
|
32632
|
-
var _useState15 = React$1.useState([]),
|
|
32633
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
32634
|
-
tableJsonEditorValsArr = _useState16[0],
|
|
32635
|
-
setTableJsonEditorValsArr = _useState16[1];
|
|
32867
|
+
tableJsonEditorValsArr = _useState14[0],
|
|
32868
|
+
setTableJsonEditorValsArr = _useState14[1];
|
|
32636
32869
|
React$1.useEffect(function () {
|
|
32637
32870
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32638
32871
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -32663,7 +32896,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
32663
32896
|
});
|
|
32664
32897
|
Promise.all(axiosArr).then(function (_ref5) {
|
|
32665
32898
|
var _ref6 = _toArray(_ref5),
|
|
32666
|
-
resArr = _ref6.slice(0);
|
|
32899
|
+
resArr = _arrayLikeToArray(_ref6).slice(0);
|
|
32667
32900
|
var configParams = {};
|
|
32668
32901
|
detailTablesSetting.map(function (item, index) {
|
|
32669
32902
|
var _resArr$index;
|
|
@@ -33008,11 +33241,11 @@ function getMetaData(_x) {
|
|
|
33008
33241
|
|
|
33009
33242
|
// 获取数据
|
|
33010
33243
|
function _getMetaData() {
|
|
33011
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
33012
|
-
return
|
|
33013
|
-
while (1) switch (_context.
|
|
33244
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id) {
|
|
33245
|
+
return _regenerator().w(function (_context) {
|
|
33246
|
+
while (1) switch (_context.n) {
|
|
33014
33247
|
case 0:
|
|
33015
|
-
return _context.
|
|
33248
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
33016
33249
|
umi.request('/basic/entityProperty/listNoPage', {
|
|
33017
33250
|
params: {
|
|
33018
33251
|
'qp-entityId-eq': id
|
|
@@ -33024,9 +33257,6 @@ function _getMetaData() {
|
|
|
33024
33257
|
reject([]);
|
|
33025
33258
|
});
|
|
33026
33259
|
}));
|
|
33027
|
-
case 1:
|
|
33028
|
-
case "end":
|
|
33029
|
-
return _context.stop();
|
|
33030
33260
|
}
|
|
33031
33261
|
}, _callee);
|
|
33032
33262
|
}));
|
|
@@ -33230,11 +33460,11 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33230
33460
|
tableState = _useState4[0],
|
|
33231
33461
|
setTableState = _useState4[1];
|
|
33232
33462
|
var handleOpen = /*#__PURE__*/function () {
|
|
33233
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33463
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33234
33464
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
33235
33465
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
33236
|
-
return
|
|
33237
|
-
while (1) switch (_context.
|
|
33466
|
+
return _regenerator().w(function (_context) {
|
|
33467
|
+
while (1) switch (_context.n) {
|
|
33238
33468
|
case 0:
|
|
33239
33469
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
33240
33470
|
isSearchForm: props.isSearchForm,
|
|
@@ -33242,16 +33472,16 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33242
33472
|
searchFormData: searchFormData
|
|
33243
33473
|
});
|
|
33244
33474
|
if (requestConfigNew) {
|
|
33245
|
-
_context.
|
|
33475
|
+
_context.n = 1;
|
|
33246
33476
|
break;
|
|
33247
33477
|
}
|
|
33248
|
-
return _context.
|
|
33249
|
-
case
|
|
33478
|
+
return _context.a(2);
|
|
33479
|
+
case 1:
|
|
33250
33480
|
metaDataId = (_props$customSelector = props.customSelectorConfig) === null || _props$customSelector === void 0 ? void 0 : (_props$customSelector2 = _props$customSelector.targetMetaData) === null || _props$customSelector2 === void 0 ? void 0 : _props$customSelector2.id;
|
|
33251
|
-
_context.
|
|
33481
|
+
_context.n = 2;
|
|
33252
33482
|
return getMetaData(metaDataId);
|
|
33253
|
-
case
|
|
33254
|
-
metaData = _context.
|
|
33483
|
+
case 2:
|
|
33484
|
+
metaData = _context.v;
|
|
33255
33485
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
33256
33486
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
33257
33487
|
})) || [];
|
|
@@ -33291,9 +33521,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33291
33521
|
// @ts-ignore
|
|
33292
33522
|
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren = queryTableRef.current) === null || _queryTableRef$curren === void 0 ? void 0 : (_queryTableRef$curren2 = _queryTableRef$curren.tableRef) === null || _queryTableRef$curren2 === void 0 ? void 0 : (_queryTableRef$curren3 = _queryTableRef$curren2.current) === null || _queryTableRef$curren3 === void 0 ? void 0 : _queryTableRef$curren3.bsSetSelectInfo(initValue);
|
|
33293
33523
|
}
|
|
33294
|
-
case
|
|
33295
|
-
|
|
33296
|
-
return _context.stop();
|
|
33524
|
+
case 3:
|
|
33525
|
+
return _context.a(2);
|
|
33297
33526
|
}
|
|
33298
33527
|
}, _callee);
|
|
33299
33528
|
}));
|
|
@@ -33396,7 +33625,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33396
33625
|
}, [requestConfig, tableState.columns]);
|
|
33397
33626
|
var rowKey = (_ref3 = (_fieldMappingItem$cod = fieldMappingItem === null || fieldMappingItem === void 0 ? void 0 : fieldMappingItem.codeMappingFrom) !== null && _fieldMappingItem$cod !== void 0 ? _fieldMappingItem$cod : 'id') !== null && _ref3 !== void 0 ? _ref3 : 'code';
|
|
33398
33627
|
var handleOk = function handleOk(rowData) {
|
|
33399
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
33628
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
|
|
33400
33629
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
33401
33630
|
//多选数据处理
|
|
33402
33631
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -33407,9 +33636,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33407
33636
|
var selectedRows = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren7 = queryTableRef.current) === null || _queryTableRef$curren7 === void 0 ? void 0 : (_queryTableRef$curren8 = _queryTableRef$curren7.tableRef) === null || _queryTableRef$curren8 === void 0 ? void 0 : (_queryTableRef$curren9 = _queryTableRef$curren8.current) === null || _queryTableRef$curren9 === void 0 ? void 0 : _queryTableRef$curren9.getSelectedRows()) || [];
|
|
33408
33637
|
var realSelectedRows = selectedRows;
|
|
33409
33638
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
33410
|
-
var _queryTableRef$
|
|
33639
|
+
var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
|
|
33411
33640
|
// @ts-ignore
|
|
33412
|
-
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33641
|
+
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren0 = queryTableRef.current) === null || _queryTableRef$curren0 === void 0 ? void 0 : (_queryTableRef$curren1 = _queryTableRef$curren0.tableRef) === null || _queryTableRef$curren1 === void 0 ? void 0 : (_queryTableRef$curren10 = _queryTableRef$curren1.current) === null || _queryTableRef$curren10 === void 0 ? void 0 : _queryTableRef$curren10.getDataSource()) || [];
|
|
33413
33642
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
33414
33643
|
return selectedKesys.includes(s[rowKey]);
|
|
33415
33644
|
});
|
|
@@ -33442,10 +33671,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33442
33671
|
});
|
|
33443
33672
|
}
|
|
33444
33673
|
mappings.map(function (item) {
|
|
33445
|
-
var _props$
|
|
33446
|
-
if (((_props$
|
|
33447
|
-
var _props$
|
|
33448
|
-
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$
|
|
33674
|
+
var _props$customSelector0, _props$customSelector1, _props$customSelector10, _props$customSelector11;
|
|
33675
|
+
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]) {
|
|
33676
|
+
var _props$customSelector12, _props$customSelector13;
|
|
33677
|
+
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$customSelector12 = props.customSelectorConfig) === null || _props$customSelector12 === void 0 ? void 0 : (_props$customSelector13 = _props$customSelector12.extraData) === null || _props$customSelector13 === void 0 ? void 0 : _props$customSelector13.echoLabel];
|
|
33449
33678
|
}
|
|
33450
33679
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
33451
33680
|
});
|
|
@@ -33500,10 +33729,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33500
33729
|
}
|
|
33501
33730
|
props.onCancel();
|
|
33502
33731
|
//@ts-ignore
|
|
33503
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33732
|
+
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren11 = queryTableRef.current) === null || _queryTableRef$curren11 === void 0 ? void 0 : (_queryTableRef$curren12 = _queryTableRef$curren11.tableRef) === null || _queryTableRef$curren12 === void 0 ? void 0 : (_queryTableRef$curren13 = _queryTableRef$curren12.current) === null || _queryTableRef$curren13 === void 0 ? void 0 : _queryTableRef$curren13.clearRowSelection();
|
|
33504
33733
|
};
|
|
33505
33734
|
var config = React$1.useMemo(function () {
|
|
33506
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
33735
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
|
|
33507
33736
|
var returnConfig = {
|
|
33508
33737
|
size: 'small',
|
|
33509
33738
|
needPageHeader: false,
|
|
@@ -33512,7 +33741,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33512
33741
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33513
33742
|
selectedRowKeys: !(props === null || props === void 0 ? void 0 : (_props$ctx9 = props.ctx) === null || _props$ctx9 === void 0 ? void 0 : _props$ctx9.form) && (props === null || props === void 0 ? void 0 : (_props$value2 = props.value) === null || _props$value2 === void 0 ? void 0 : _props$value2.map(function (v) {
|
|
33514
33743
|
return v.key || v;
|
|
33515
|
-
})) || (props === null || props === void 0 ? void 0 : (_props$
|
|
33744
|
+
})) || (props === null || props === void 0 ? void 0 : (_props$ctx0 = props.ctx) === null || _props$ctx0 === void 0 ? void 0 : (_props$ctx0$form = _props$ctx0.form) === null || _props$ctx0$form === void 0 ? void 0 : _props$ctx0$form.getFieldValue(props.id))
|
|
33516
33745
|
} : false,
|
|
33517
33746
|
remoteDataSource: remoteDataSource,
|
|
33518
33747
|
fields: tableState.fields,
|
|
@@ -33520,8 +33749,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33520
33749
|
rowKey: rowKey,
|
|
33521
33750
|
tableProps: !isView && {
|
|
33522
33751
|
rowClassName: function rowClassName(record) {
|
|
33523
|
-
var _props$
|
|
33524
|
-
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$
|
|
33752
|
+
var _props$ctx1, _props$value3, _props$ctx10, _props$ctx10$form;
|
|
33753
|
+
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$ctx1 = props.ctx) === null || _props$ctx1 === void 0 ? void 0 : _props$ctx1.form) && ((props === null || props === void 0 ? void 0 : (_props$value3 = props.value) === null || _props$value3 === void 0 ? void 0 : _props$value3.key) || (props === null || props === void 0 ? void 0 : props.value)) || (props === null || props === void 0 ? void 0 : (_props$ctx10 = props.ctx) === null || _props$ctx10 === void 0 ? void 0 : (_props$ctx10$form = _props$ctx10.form) === null || _props$ctx10$form === void 0 ? void 0 : _props$ctx10$form.getFieldValue(props.id))) ? 'tableSelectedRow' : '';
|
|
33525
33754
|
},
|
|
33526
33755
|
onRow: function onRow(record) {
|
|
33527
33756
|
return {
|
|
@@ -33566,10 +33795,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33566
33795
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
33567
33796
|
type: "default",
|
|
33568
33797
|
onClick: function onClick() {
|
|
33569
|
-
var _queryTableRef$
|
|
33798
|
+
var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
|
|
33570
33799
|
props.onCancel();
|
|
33571
33800
|
//@ts-ignore
|
|
33572
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33801
|
+
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren14 = queryTableRef.current) === null || _queryTableRef$curren14 === void 0 ? void 0 : (_queryTableRef$curren15 = _queryTableRef$curren14.tableRef) === null || _queryTableRef$curren15 === void 0 ? void 0 : (_queryTableRef$curren16 = _queryTableRef$curren15.current) === null || _queryTableRef$curren16 === void 0 ? void 0 : _queryTableRef$curren16.clearRowSelection();
|
|
33573
33802
|
}
|
|
33574
33803
|
}, "\u53D6\u6D88"))));
|
|
33575
33804
|
});
|
|
@@ -33793,19 +34022,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33793
34022
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33794
34023
|
handSource = _useState2[0],
|
|
33795
34024
|
setHandSource = _useState2[1];
|
|
33796
|
-
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34025
|
+
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33797
34026
|
var resData, data;
|
|
33798
|
-
return
|
|
33799
|
-
while (1) switch (_context.
|
|
34027
|
+
return _regenerator().w(function (_context) {
|
|
34028
|
+
while (1) switch (_context.n) {
|
|
33800
34029
|
case 0:
|
|
33801
34030
|
if (!(!source && initRequestSource)) {
|
|
33802
|
-
_context.
|
|
34031
|
+
_context.n = 2;
|
|
33803
34032
|
break;
|
|
33804
34033
|
}
|
|
33805
|
-
_context.
|
|
34034
|
+
_context.n = 1;
|
|
33806
34035
|
return initRequestSource();
|
|
33807
|
-
case
|
|
33808
|
-
resData = _context.
|
|
34036
|
+
case 1:
|
|
34037
|
+
resData = _context.v;
|
|
33809
34038
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
33810
34039
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
33811
34040
|
label: item.text,
|
|
@@ -33813,9 +34042,8 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33813
34042
|
});
|
|
33814
34043
|
})) || [];
|
|
33815
34044
|
setHandSource(data);
|
|
33816
|
-
case
|
|
33817
|
-
|
|
33818
|
-
return _context.stop();
|
|
34045
|
+
case 2:
|
|
34046
|
+
return _context.a(2);
|
|
33819
34047
|
}
|
|
33820
34048
|
}, _callee);
|
|
33821
34049
|
})), []);
|
|
@@ -33945,20 +34173,17 @@ function getRegularThresholdRange(_x) {
|
|
|
33945
34173
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
33946
34174
|
}
|
|
33947
34175
|
function _getRegularThresholdRange() {
|
|
33948
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
33949
|
-
return
|
|
33950
|
-
while (1) switch (_context.
|
|
34176
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
34177
|
+
return _regenerator().w(function (_context) {
|
|
34178
|
+
while (1) switch (_context.n) {
|
|
33951
34179
|
case 0:
|
|
33952
|
-
return _context.
|
|
34180
|
+
return _context.a(2, requestUtil({
|
|
33953
34181
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
33954
34182
|
method: 'POST',
|
|
33955
34183
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
33956
34184
|
queryIdentify: undefined
|
|
33957
34185
|
})
|
|
33958
34186
|
}));
|
|
33959
|
-
case 1:
|
|
33960
|
-
case "end":
|
|
33961
|
-
return _context.stop();
|
|
33962
34187
|
}
|
|
33963
34188
|
}, _callee);
|
|
33964
34189
|
}));
|
|
@@ -34099,24 +34324,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34099
34324
|
};
|
|
34100
34325
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
34101
34326
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
34102
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
34327
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
34103
34328
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
34104
|
-
return
|
|
34105
|
-
while (1) switch (_context.
|
|
34329
|
+
return _regenerator().w(function (_context) {
|
|
34330
|
+
while (1) switch (_context.n) {
|
|
34106
34331
|
case 0:
|
|
34107
34332
|
if (queryIdentify) {
|
|
34108
|
-
_context.
|
|
34333
|
+
_context.n = 1;
|
|
34109
34334
|
break;
|
|
34110
34335
|
}
|
|
34111
|
-
return _context.
|
|
34112
|
-
case
|
|
34336
|
+
return _context.a(2);
|
|
34337
|
+
case 1:
|
|
34113
34338
|
thresholdQuery = _this.state.thresholdQuery;
|
|
34114
34339
|
extraRequestUrl = '';
|
|
34115
34340
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
34116
34341
|
if (!queryIdentityInfo.find(function (item) {
|
|
34117
34342
|
return item.identity == propertyCode;
|
|
34118
34343
|
})) {
|
|
34119
|
-
_context.
|
|
34344
|
+
_context.n = 3;
|
|
34120
34345
|
break;
|
|
34121
34346
|
}
|
|
34122
34347
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -34130,15 +34355,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34130
34355
|
if (!needQueryList.some(function (item) {
|
|
34131
34356
|
return !querParams[item] || !querParams[item].length;
|
|
34132
34357
|
})) {
|
|
34133
|
-
_context.
|
|
34358
|
+
_context.n = 2;
|
|
34134
34359
|
break;
|
|
34135
34360
|
}
|
|
34136
|
-
return _context.
|
|
34137
|
-
case
|
|
34361
|
+
return _context.a(2);
|
|
34362
|
+
case 2:
|
|
34138
34363
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
34139
34364
|
return item.identity == propertyCode;
|
|
34140
34365
|
}).requestUrl || '';
|
|
34141
|
-
case
|
|
34366
|
+
case 3:
|
|
34142
34367
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
34143
34368
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
34144
34369
|
querParams = {
|
|
@@ -34149,7 +34374,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34149
34374
|
// querParams = { dictCode: queryIdentify }
|
|
34150
34375
|
}
|
|
34151
34376
|
if (!extraRequestUrl) {
|
|
34152
|
-
_context.
|
|
34377
|
+
_context.n = 4;
|
|
34153
34378
|
break;
|
|
34154
34379
|
}
|
|
34155
34380
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -34188,43 +34413,42 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34188
34413
|
return handleData;
|
|
34189
34414
|
}
|
|
34190
34415
|
});
|
|
34191
|
-
_context.
|
|
34416
|
+
_context.n = 8;
|
|
34192
34417
|
break;
|
|
34193
|
-
case
|
|
34418
|
+
case 4:
|
|
34194
34419
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
34195
|
-
_context.
|
|
34420
|
+
_context.n = 5;
|
|
34196
34421
|
break;
|
|
34197
34422
|
}
|
|
34198
34423
|
_this.setState({
|
|
34199
34424
|
thresholdList: queryIdentify
|
|
34200
34425
|
});
|
|
34201
|
-
_context.
|
|
34426
|
+
_context.n = 8;
|
|
34202
34427
|
break;
|
|
34203
|
-
case
|
|
34428
|
+
case 5:
|
|
34204
34429
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
34205
|
-
_context.
|
|
34430
|
+
_context.n = 6;
|
|
34206
34431
|
break;
|
|
34207
34432
|
}
|
|
34208
34433
|
// TODO待处理
|
|
34209
34434
|
_this.setState({
|
|
34210
34435
|
thresholdList: []
|
|
34211
34436
|
});
|
|
34212
|
-
_context.
|
|
34437
|
+
_context.n = 8;
|
|
34213
34438
|
break;
|
|
34214
|
-
case
|
|
34439
|
+
case 6:
|
|
34215
34440
|
querParams.queryIdentify = queryIdentify;
|
|
34216
|
-
_context.
|
|
34441
|
+
_context.n = 7;
|
|
34217
34442
|
return getRegularThresholdRange(querParams);
|
|
34218
|
-
case
|
|
34219
|
-
res = _context.
|
|
34443
|
+
case 7:
|
|
34444
|
+
res = _context.v;
|
|
34220
34445
|
if (handleError(res)) {
|
|
34221
34446
|
_this.setState({
|
|
34222
34447
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
34223
34448
|
});
|
|
34224
34449
|
}
|
|
34225
|
-
case
|
|
34226
|
-
|
|
34227
|
-
return _context.stop();
|
|
34450
|
+
case 8:
|
|
34451
|
+
return _context.a(2);
|
|
34228
34452
|
}
|
|
34229
34453
|
}, _callee);
|
|
34230
34454
|
}));
|
|
@@ -35056,11 +35280,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35056
35280
|
isAll: true,
|
|
35057
35281
|
needNameAndCode: true,
|
|
35058
35282
|
notChangeOnSelect: true,
|
|
35059
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35060
|
-
return
|
|
35061
|
-
while (1) switch (_context2.
|
|
35283
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
35284
|
+
return _regenerator().w(function (_context2) {
|
|
35285
|
+
while (1) switch (_context2.n) {
|
|
35062
35286
|
case 0:
|
|
35063
|
-
_context2.
|
|
35287
|
+
_context2.n = 1;
|
|
35064
35288
|
return bssula.request({
|
|
35065
35289
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35066
35290
|
method: 'get',
|
|
@@ -35077,11 +35301,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35077
35301
|
return handleData;
|
|
35078
35302
|
}
|
|
35079
35303
|
});
|
|
35080
|
-
case
|
|
35081
|
-
return _context2.
|
|
35082
|
-
case 3:
|
|
35083
|
-
case "end":
|
|
35084
|
-
return _context2.stop();
|
|
35304
|
+
case 1:
|
|
35305
|
+
return _context2.a(2, _context2.v);
|
|
35085
35306
|
}
|
|
35086
35307
|
}, _callee2);
|
|
35087
35308
|
})),
|
|
@@ -35105,11 +35326,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35105
35326
|
isAll: true,
|
|
35106
35327
|
needNameAndCode: true,
|
|
35107
35328
|
notChangeOnSelect: true,
|
|
35108
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35109
|
-
return
|
|
35110
|
-
while (1) switch (_context3.
|
|
35329
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
35330
|
+
return _regenerator().w(function (_context3) {
|
|
35331
|
+
while (1) switch (_context3.n) {
|
|
35111
35332
|
case 0:
|
|
35112
|
-
_context3.
|
|
35333
|
+
_context3.n = 1;
|
|
35113
35334
|
return bssula.request({
|
|
35114
35335
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35115
35336
|
method: 'get',
|
|
@@ -35126,11 +35347,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35126
35347
|
return handleData;
|
|
35127
35348
|
}
|
|
35128
35349
|
});
|
|
35129
|
-
case
|
|
35130
|
-
return _context3.
|
|
35131
|
-
case 3:
|
|
35132
|
-
case "end":
|
|
35133
|
-
return _context3.stop();
|
|
35350
|
+
case 1:
|
|
35351
|
+
return _context3.a(2, _context3.v);
|
|
35134
35352
|
}
|
|
35135
35353
|
}, _callee3);
|
|
35136
35354
|
})),
|
|
@@ -35156,11 +35374,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35156
35374
|
isAll: true,
|
|
35157
35375
|
needNameAndCode: true,
|
|
35158
35376
|
notChangeOnSelect: true,
|
|
35159
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35160
|
-
return
|
|
35161
|
-
while (1) switch (_context4.
|
|
35377
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
35378
|
+
return _regenerator().w(function (_context4) {
|
|
35379
|
+
while (1) switch (_context4.n) {
|
|
35162
35380
|
case 0:
|
|
35163
|
-
_context4.
|
|
35381
|
+
_context4.n = 1;
|
|
35164
35382
|
return bssula.request({
|
|
35165
35383
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35166
35384
|
method: 'get',
|
|
@@ -35177,11 +35395,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35177
35395
|
return handleData;
|
|
35178
35396
|
}
|
|
35179
35397
|
});
|
|
35180
|
-
case
|
|
35181
|
-
return _context4.
|
|
35182
|
-
case 3:
|
|
35183
|
-
case "end":
|
|
35184
|
-
return _context4.stop();
|
|
35398
|
+
case 1:
|
|
35399
|
+
return _context4.a(2, _context4.v);
|
|
35185
35400
|
}
|
|
35186
35401
|
}, _callee4);
|
|
35187
35402
|
})),
|
|
@@ -35868,8 +36083,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35868
36083
|
}
|
|
35869
36084
|
}));
|
|
35870
36085
|
} else {
|
|
35871
|
-
var
|
|
35872
|
-
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((
|
|
36086
|
+
var _values0;
|
|
36087
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
|
|
35873
36088
|
return {
|
|
35874
36089
|
key: s,
|
|
35875
36090
|
label: valueNames[vIndex],
|
|
@@ -36079,7 +36294,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36079
36294
|
}
|
|
36080
36295
|
}
|
|
36081
36296
|
// 配送方式选择器
|
|
36082
|
-
if (dataChoiceBusinessType == 310) {
|
|
36297
|
+
if (dataChoiceBusinessType == 310 || dataChoiceBusinessType == 311) {
|
|
36083
36298
|
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
36084
36299
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36085
36300
|
selectBusinessType: "deliveryMode",
|
|
@@ -36093,9 +36308,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36093
36308
|
disabled: disabled,
|
|
36094
36309
|
labelInValue: true,
|
|
36095
36310
|
value: values[0],
|
|
36096
|
-
requestConfig: {
|
|
36311
|
+
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36312
|
+
otherParams: {
|
|
36313
|
+
// 配送方式只选择标准配送方式
|
|
36314
|
+
'qp-recordChannnelCode-eq': 80
|
|
36315
|
+
}
|
|
36316
|
+
} : {}), {}, {
|
|
36097
36317
|
filterInit: 'qp-code-in'
|
|
36098
|
-
},
|
|
36318
|
+
}),
|
|
36099
36319
|
onChange: function onChange(value) {
|
|
36100
36320
|
if (dataInputBusinessType === 12) {
|
|
36101
36321
|
values[0] = value.map(function (i) {
|
|
@@ -36125,9 +36345,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36125
36345
|
disabled: disabled,
|
|
36126
36346
|
labelInValue: true,
|
|
36127
36347
|
value: values[1],
|
|
36128
|
-
requestConfig: {
|
|
36348
|
+
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36349
|
+
otherParams: {
|
|
36350
|
+
// 配送方式只选择标准配送方式
|
|
36351
|
+
'qp-recordChannnelCode-eq': 80
|
|
36352
|
+
}
|
|
36353
|
+
} : {}), {}, {
|
|
36129
36354
|
filterInit: 'qp-code-in'
|
|
36130
|
-
},
|
|
36355
|
+
}),
|
|
36131
36356
|
onChange: function onChange(value) {
|
|
36132
36357
|
if (dataInputBusinessType === 12) {
|
|
36133
36358
|
values[1] = value.map(function (i) {
|
|
@@ -36147,8 +36372,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36147
36372
|
}
|
|
36148
36373
|
}));
|
|
36149
36374
|
} else {
|
|
36150
|
-
var
|
|
36151
|
-
var
|
|
36375
|
+
var _values1;
|
|
36376
|
+
var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
|
|
36152
36377
|
return {
|
|
36153
36378
|
key: s,
|
|
36154
36379
|
label: valueNames[vIndex],
|
|
@@ -36170,10 +36395,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36170
36395
|
} : {}),
|
|
36171
36396
|
disabled: disabled,
|
|
36172
36397
|
labelInValue: true,
|
|
36173
|
-
value:
|
|
36174
|
-
requestConfig: {
|
|
36398
|
+
value: _currentValue0,
|
|
36399
|
+
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36400
|
+
otherParams: {
|
|
36401
|
+
// 配送方式只选择标准配送方式
|
|
36402
|
+
'qp-recordChannnelCode-eq': 80
|
|
36403
|
+
}
|
|
36404
|
+
} : {}), {}, {
|
|
36175
36405
|
filterInit: 'qp-code-in'
|
|
36176
|
-
},
|
|
36406
|
+
}),
|
|
36177
36407
|
onChange: function onChange(value) {
|
|
36178
36408
|
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
36179
36409
|
values = value.map(function (i) {
|
|
@@ -36263,8 +36493,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36263
36493
|
}
|
|
36264
36494
|
}));
|
|
36265
36495
|
} else {
|
|
36266
|
-
var
|
|
36267
|
-
var
|
|
36496
|
+
var _values10;
|
|
36497
|
+
var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
36268
36498
|
return {
|
|
36269
36499
|
key: s,
|
|
36270
36500
|
label: valueNames[vIndex],
|
|
@@ -36286,7 +36516,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36286
36516
|
} : {}),
|
|
36287
36517
|
disabled: disabled,
|
|
36288
36518
|
labelInValue: true,
|
|
36289
|
-
value:
|
|
36519
|
+
value: _currentValue1,
|
|
36290
36520
|
requestConfig: {
|
|
36291
36521
|
filterInit: 'qp-code-in'
|
|
36292
36522
|
},
|
|
@@ -36379,8 +36609,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36379
36609
|
}
|
|
36380
36610
|
}));
|
|
36381
36611
|
} else {
|
|
36382
|
-
var
|
|
36383
|
-
var
|
|
36612
|
+
var _values11;
|
|
36613
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
36384
36614
|
return {
|
|
36385
36615
|
key: s,
|
|
36386
36616
|
label: valueNames[vIndex],
|
|
@@ -36402,7 +36632,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36402
36632
|
} : {}),
|
|
36403
36633
|
disabled: disabled,
|
|
36404
36634
|
labelInValue: true,
|
|
36405
|
-
value:
|
|
36635
|
+
value: _currentValue10,
|
|
36406
36636
|
requestConfig: {
|
|
36407
36637
|
filterInit: 'qp-brandCode-in'
|
|
36408
36638
|
},
|
|
@@ -36593,8 +36823,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36593
36823
|
}
|
|
36594
36824
|
}));
|
|
36595
36825
|
} else {
|
|
36596
|
-
var
|
|
36597
|
-
var
|
|
36826
|
+
var _values12;
|
|
36827
|
+
var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
36598
36828
|
return {
|
|
36599
36829
|
key: s,
|
|
36600
36830
|
label: valueNames[vIndex]
|
|
@@ -36622,7 +36852,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36622
36852
|
isSearchForm: true,
|
|
36623
36853
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36624
36854
|
disabled: disabled,
|
|
36625
|
-
value:
|
|
36855
|
+
value: _currentValue11,
|
|
36626
36856
|
onChange: function onChange(value, sourceList) {
|
|
36627
36857
|
if (dataInputBusinessType === 12) {
|
|
36628
36858
|
var _value$map3, _sourceList$filter3;
|
|
@@ -36942,9 +37172,9 @@ var App$1 = function App(_ref) {
|
|
|
36942
37172
|
UpdateState(res);
|
|
36943
37173
|
};
|
|
36944
37174
|
var _useState9 = React$1.useState(false),
|
|
36945
|
-
|
|
36946
|
-
isModalVisible =
|
|
36947
|
-
setIsModalVisible =
|
|
37175
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
37176
|
+
isModalVisible = _useState0[0],
|
|
37177
|
+
setIsModalVisible = _useState0[1];
|
|
36948
37178
|
var showModal = function showModal() {
|
|
36949
37179
|
setIsModalVisible(true);
|
|
36950
37180
|
};
|
|
@@ -37425,27 +37655,26 @@ function RenderCompItem(props) {
|
|
|
37425
37655
|
dictData = _useState2[0],
|
|
37426
37656
|
setDictData = _useState2[1];
|
|
37427
37657
|
var getDictData = /*#__PURE__*/function () {
|
|
37428
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
37658
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
37429
37659
|
var _data$map;
|
|
37430
37660
|
var data;
|
|
37431
|
-
return
|
|
37432
|
-
while (1) switch (_context.
|
|
37661
|
+
return _regenerator().w(function (_context) {
|
|
37662
|
+
while (1) switch (_context.n) {
|
|
37433
37663
|
case 0:
|
|
37434
|
-
_context.
|
|
37664
|
+
_context.n = 1;
|
|
37435
37665
|
return bssula.request({
|
|
37436
37666
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
37437
37667
|
});
|
|
37438
|
-
case
|
|
37439
|
-
data = _context.
|
|
37668
|
+
case 1:
|
|
37669
|
+
data = _context.v;
|
|
37440
37670
|
setDictData(data === null || data === void 0 ? void 0 : (_data$map = data.map) === null || _data$map === void 0 ? void 0 : _data$map.call(data, function (item) {
|
|
37441
37671
|
return {
|
|
37442
37672
|
text: item.dictItemName,
|
|
37443
37673
|
value: item.dictItemCode
|
|
37444
37674
|
};
|
|
37445
37675
|
}));
|
|
37446
|
-
case
|
|
37447
|
-
|
|
37448
|
-
return _context.stop();
|
|
37676
|
+
case 2:
|
|
37677
|
+
return _context.a(2);
|
|
37449
37678
|
}
|
|
37450
37679
|
}, _callee);
|
|
37451
37680
|
}));
|
|
@@ -37686,11 +37915,11 @@ function RenderCompItem(props) {
|
|
|
37686
37915
|
needNameAndCode: true,
|
|
37687
37916
|
notChangeOnSelect: true,
|
|
37688
37917
|
initRequestSource: function () {
|
|
37689
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
37690
|
-
return
|
|
37691
|
-
while (1) switch (_context2.
|
|
37918
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
37919
|
+
return _regenerator().w(function (_context2) {
|
|
37920
|
+
while (1) switch (_context2.n) {
|
|
37692
37921
|
case 0:
|
|
37693
|
-
_context2.
|
|
37922
|
+
_context2.n = 1;
|
|
37694
37923
|
return bssula.request({
|
|
37695
37924
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
37696
37925
|
method: 'get',
|
|
@@ -37708,11 +37937,8 @@ function RenderCompItem(props) {
|
|
|
37708
37937
|
return handleData;
|
|
37709
37938
|
}
|
|
37710
37939
|
});
|
|
37711
|
-
case
|
|
37712
|
-
return _context2.
|
|
37713
|
-
case 3:
|
|
37714
|
-
case "end":
|
|
37715
|
-
return _context2.stop();
|
|
37940
|
+
case 1:
|
|
37941
|
+
return _context2.a(2, _context2.v);
|
|
37716
37942
|
}
|
|
37717
37943
|
}, _callee2);
|
|
37718
37944
|
}));
|
|
@@ -37877,7 +38103,7 @@ function RenderCompItem(props) {
|
|
|
37877
38103
|
getPopupContainer: function getPopupContainer() {
|
|
37878
38104
|
return document.body;
|
|
37879
38105
|
}
|
|
37880
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
38106
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && ((ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 || (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 311) && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
37881
38107
|
selectBusinessType: "deliveryMode",
|
|
37882
38108
|
selectProps: _objectSpread2({
|
|
37883
38109
|
style: styleCommon,
|
|
@@ -37889,9 +38115,14 @@ function RenderCompItem(props) {
|
|
|
37889
38115
|
disabled: disabled,
|
|
37890
38116
|
labelInValue: true,
|
|
37891
38117
|
value: showValue(ites.code),
|
|
37892
|
-
requestConfig: {
|
|
38118
|
+
requestConfig: _objectSpread2(_objectSpread2({}, (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 311 ? {
|
|
38119
|
+
otherParams: {
|
|
38120
|
+
// 配送方式只选择标准配送方式
|
|
38121
|
+
'qp-recordChannnelCode-eq': 80
|
|
38122
|
+
}
|
|
38123
|
+
} : {}), {}, {
|
|
37893
38124
|
filterInit: 'qp-code-in'
|
|
37894
|
-
},
|
|
38125
|
+
}),
|
|
37895
38126
|
onChange: function onChange(value) {
|
|
37896
38127
|
handleEdit(ites.code, value);
|
|
37897
38128
|
},
|
|
@@ -38502,7 +38733,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
38502
38733
|
display: 'flex',
|
|
38503
38734
|
marginBottom: '0px',
|
|
38504
38735
|
padding: '10px 0px'
|
|
38505
|
-
}
|
|
38736
|
+
},
|
|
38737
|
+
key: itemDetail.elementId
|
|
38506
38738
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
38507
38739
|
className: 'logical_operate_content',
|
|
38508
38740
|
style: {
|
|
@@ -39762,13 +39994,13 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
39762
39994
|
ruleTypeData = _useState8[0],
|
|
39763
39995
|
setRuleTypeData = _useState8[1];
|
|
39764
39996
|
var _useState9 = React$1.useState([]),
|
|
39765
|
-
|
|
39766
|
-
ruleReturnConfig =
|
|
39767
|
-
setRuleReturnConfig =
|
|
39768
|
-
var
|
|
39769
|
-
|
|
39770
|
-
templateData =
|
|
39771
|
-
setTemplateData =
|
|
39997
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
39998
|
+
ruleReturnConfig = _useState0[0],
|
|
39999
|
+
setRuleReturnConfig = _useState0[1];
|
|
40000
|
+
var _useState1 = React$1.useState({}),
|
|
40001
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
40002
|
+
templateData = _useState10[0],
|
|
40003
|
+
setTemplateData = _useState10[1];
|
|
39772
40004
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
39773
40005
|
bssula.request({
|
|
39774
40006
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -40104,25 +40336,25 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
40104
40336
|
regularDataList = _useState8[0],
|
|
40105
40337
|
setRegularDataList = _useState8[1];
|
|
40106
40338
|
var _useState9 = React$1.useState([]),
|
|
40107
|
-
|
|
40108
|
-
baseRuleDetailList =
|
|
40109
|
-
setBaseRuleDetailList =
|
|
40110
|
-
var
|
|
40339
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
40340
|
+
baseRuleDetailList = _useState0[0],
|
|
40341
|
+
setBaseRuleDetailList = _useState0[1]; // 规则实例详情集合
|
|
40342
|
+
var _useState1 = React$1.useState([]),
|
|
40343
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
40344
|
+
systemVariableList = _useState10[0],
|
|
40345
|
+
setSystemVariableList = _useState10[1];
|
|
40346
|
+
var _useState11 = React$1.useState(false),
|
|
40111
40347
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
40112
|
-
|
|
40113
|
-
|
|
40348
|
+
isGetDefRuleDataRes = _useState12[0],
|
|
40349
|
+
setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
40114
40350
|
var _useState13 = React$1.useState(false),
|
|
40115
40351
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
40116
|
-
|
|
40117
|
-
|
|
40352
|
+
isGetRuleDataRes = _useState14[0],
|
|
40353
|
+
setIsGetRuleDataRes = _useState14[1];
|
|
40118
40354
|
var _useState15 = React$1.useState(false),
|
|
40119
40355
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
40120
|
-
|
|
40121
|
-
|
|
40122
|
-
var _useState17 = React$1.useState(false),
|
|
40123
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
40124
|
-
groupOtherPriorityList = _useState18[0],
|
|
40125
|
-
setGroupOtherPriorityList = _useState18[1];
|
|
40356
|
+
groupOtherPriorityList = _useState16[0],
|
|
40357
|
+
setGroupOtherPriorityList = _useState16[1];
|
|
40126
40358
|
var baseRuleRef = React$1.useRef();
|
|
40127
40359
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
40128
40360
|
// 查询规则组下所有规则实例
|
|
@@ -40634,6 +40866,7 @@ exports.noEmptyArray = noEmptyArray;
|
|
|
40634
40866
|
exports.paramsControl = paramsControl;
|
|
40635
40867
|
exports.parseWidth = parseWidth;
|
|
40636
40868
|
exports.precisionQuantity = precisionQuantity;
|
|
40869
|
+
exports.processDetailButtonsVisible = processDetailButtonsVisible;
|
|
40637
40870
|
exports.randomString = randomString;
|
|
40638
40871
|
exports.readerXlsxToList = readerXlsxToList;
|
|
40639
40872
|
exports.removeCurrentTenantId = removeCurrentTenantId;
|