@bit-sun/business-component 4.2.0-alpha.6.9 → 4.2.0-alpha.8
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 +2 -0
- package/dist/index.esm.js +1206 -1109
- package/dist/index.js +1207 -1108
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +18 -19
- package/docs/flow-control-readme.md +283 -0
- 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 +26 -2
- package/src/components/Functional/DataValidation/index.tsx +22 -3
- package/src/components/Solution/RuleComponent/RenderCompItem.tsx +9 -1
- package/src/components/Solution/RuleComponent/RenderCompItem_README.md +189 -0
- package/src/components/Solution/RuleComponent/ruleFiled.js +25 -1
- package/src/index.ts +5 -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',
|
|
@@ -5614,29 +5434,29 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5614
5434
|
scrollPage = _useState8[0],
|
|
5615
5435
|
setScrollPage = _useState8[1];
|
|
5616
5436
|
var _useState9 = React$1.useState(0),
|
|
5617
|
-
|
|
5618
|
-
itemsTotal =
|
|
5619
|
-
setItemsTotal =
|
|
5620
|
-
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(''),
|
|
5621
5445
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
var _useState13 = React$1.useState(
|
|
5446
|
+
searchValue = _useState12[0],
|
|
5447
|
+
setSearchValue = _useState12[1];
|
|
5448
|
+
var _useState13 = React$1.useState(false),
|
|
5625
5449
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
var _useState15 = React$1.useState(
|
|
5450
|
+
isModalVisible = _useState14[0],
|
|
5451
|
+
setIsModalVisible = _useState14[1];
|
|
5452
|
+
var _useState15 = React$1.useState(initVal),
|
|
5629
5453
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
var _useState17 = React$1.useState(
|
|
5454
|
+
popvalue = _useState16[0],
|
|
5455
|
+
setPopValue = _useState16[1];
|
|
5456
|
+
var _useState17 = React$1.useState(resultSourceKey),
|
|
5633
5457
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
var _useState19 = React$1.useState(resultSourceKey),
|
|
5637
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5638
|
-
uniqueValue = _useState20[0],
|
|
5639
|
-
setUniqueValue = _useState20[1];
|
|
5458
|
+
uniqueValue = _useState18[0],
|
|
5459
|
+
setUniqueValue = _useState18[1];
|
|
5640
5460
|
var _useDebounceFn = ahooks.useDebounceFn(function (v) {
|
|
5641
5461
|
// 优化搜索参数 支持传多个
|
|
5642
5462
|
var searchParams = {};
|
|
@@ -5665,58 +5485,58 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5665
5485
|
var _Form$useForm = antd.Form.useForm(),
|
|
5666
5486
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5667
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];
|
|
5668
5492
|
var _useState21 = React$1.useState(true),
|
|
5669
5493
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
var _useState23 = React$1.useState(
|
|
5494
|
+
caretLeftFlag = _useState22[0],
|
|
5495
|
+
setCaretLeftFlag = _useState22[1];
|
|
5496
|
+
var _useState23 = React$1.useState([]),
|
|
5673
5497
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
var _useState25 = React$1.useState(
|
|
5498
|
+
tableData = _useState24[0],
|
|
5499
|
+
setTableData = _useState24[1];
|
|
5500
|
+
var _useState25 = React$1.useState(tableInitPagination),
|
|
5677
5501
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
var _useState27 = React$1.useState(
|
|
5502
|
+
tablePagination = _useState26[0],
|
|
5503
|
+
setTablePagination = _useState26[1];
|
|
5504
|
+
var _useState27 = React$1.useState([]),
|
|
5681
5505
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5682
|
-
|
|
5683
|
-
|
|
5506
|
+
selectedRowKeys = _useState28[0],
|
|
5507
|
+
setSelectedRowKeys = _useState28[1];
|
|
5684
5508
|
var _useState29 = React$1.useState([]),
|
|
5685
5509
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
var _useState31 = React$1.useState(
|
|
5510
|
+
selectedRows = _useState30[0],
|
|
5511
|
+
setSelectedRows = _useState30[1];
|
|
5512
|
+
var _useState31 = React$1.useState(false),
|
|
5689
5513
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5690
|
-
|
|
5691
|
-
|
|
5514
|
+
checkedAll = _useState32[0],
|
|
5515
|
+
setCheckedAll = _useState32[1];
|
|
5692
5516
|
var _useState33 = React$1.useState(false),
|
|
5693
5517
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
var _useState35 = React$1.useState(
|
|
5518
|
+
indeterminate = _useState34[0],
|
|
5519
|
+
setIndeterminate = _useState34[1];
|
|
5520
|
+
var _useState35 = React$1.useState({}),
|
|
5697
5521
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
var _useState37 = React$1.useState(
|
|
5522
|
+
tableFormParams = _useState36[0],
|
|
5523
|
+
setTableFormParams = _useState36[1];
|
|
5524
|
+
var _useState37 = React$1.useState(false),
|
|
5701
5525
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
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)),
|
|
5705
5529
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
var _useState41 = React$1.useState(
|
|
5530
|
+
tableShowColumns = _useState40[0],
|
|
5531
|
+
setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5532
|
+
var _useState41 = React$1.useState(false),
|
|
5709
5533
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5710
|
-
|
|
5711
|
-
|
|
5534
|
+
confirmLoading = _useState42[0],
|
|
5535
|
+
setConfirmLoading = _useState42[1];
|
|
5712
5536
|
var _useState43 = React$1.useState(false),
|
|
5713
5537
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
var _useState45 = React$1.useState(false),
|
|
5717
|
-
_useState46 = _slicedToArray(_useState45, 2),
|
|
5718
|
-
modalSearched = _useState46[0],
|
|
5719
|
-
setModalSearched = _useState46[1];
|
|
5538
|
+
modalSearched = _useState44[0],
|
|
5539
|
+
setModalSearched = _useState44[1];
|
|
5720
5540
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5721
5541
|
setItems(list);
|
|
5722
5542
|
setItemsTotal(total);
|
|
@@ -6193,7 +6013,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6193
6013
|
})) || [];
|
|
6194
6014
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
6195
6015
|
return searchList.map(function (i, index) {
|
|
6196
|
-
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;
|
|
6197
6017
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6198
6018
|
span: ColSpan,
|
|
6199
6019
|
key: i
|
|
@@ -6291,7 +6111,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6291
6111
|
disabled: setDisabled(i.name)
|
|
6292
6112
|
}))));
|
|
6293
6113
|
}
|
|
6294
|
-
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') {
|
|
6295
6115
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6296
6116
|
span: ColSpan,
|
|
6297
6117
|
key: i.name
|
|
@@ -6305,7 +6125,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6305
6125
|
}
|
|
6306
6126
|
})));
|
|
6307
6127
|
}
|
|
6308
|
-
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') {
|
|
6309
6129
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6310
6130
|
span: ColSpan,
|
|
6311
6131
|
key: i.name
|
|
@@ -6315,8 +6135,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6315
6135
|
key: i.name
|
|
6316
6136
|
}, /*#__PURE__*/React__default['default'].createElement(PropertySelector, null)));
|
|
6317
6137
|
}
|
|
6318
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6319
|
-
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;
|
|
6320
6140
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6321
6141
|
span: ColSpan,
|
|
6322
6142
|
key: i.name
|
|
@@ -6329,9 +6149,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6329
6149
|
width: '100%'
|
|
6330
6150
|
},
|
|
6331
6151
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6332
|
-
}, 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))));
|
|
6333
6153
|
}
|
|
6334
|
-
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') {
|
|
6335
6155
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6336
6156
|
span: ColSpan,
|
|
6337
6157
|
key: i.name
|
|
@@ -6360,7 +6180,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6360
6180
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6361
6181
|
allowClear: true,
|
|
6362
6182
|
maxLength: 100
|
|
6363
|
-
}, 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), {}, {
|
|
6364
6184
|
disabled: setDisabled(i.name)
|
|
6365
6185
|
}))));
|
|
6366
6186
|
});
|
|
@@ -7680,135 +7500,132 @@ var AddSelect = function AddSelect(props) {
|
|
|
7680
7500
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7681
7501
|
form = _Form$useForm2[0];
|
|
7682
7502
|
var _useState9 = React$1.useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7683
|
-
|
|
7684
|
-
tableSearchForm =
|
|
7685
|
-
setTableSearchForm =
|
|
7686
|
-
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([]),
|
|
7687
7511
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
var _useState13 = React$1.useState(
|
|
7691
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
7692
|
-
tableData = _useState14[0],
|
|
7693
|
-
setTableData = _useState14[1];
|
|
7694
|
-
var _useState15 = React$1.useState(_objectSpread2({
|
|
7512
|
+
tableData = _useState12[0],
|
|
7513
|
+
setTableData = _useState12[1];
|
|
7514
|
+
var _useState13 = React$1.useState(_objectSpread2({
|
|
7695
7515
|
total: 0,
|
|
7696
7516
|
size: "small",
|
|
7697
7517
|
current: 1,
|
|
7698
7518
|
pageSize: tableInitPageSize
|
|
7699
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([]),
|
|
7700
7524
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
var _useState17 = React$1.useState(
|
|
7525
|
+
selectedRowKeys = _useState16[0],
|
|
7526
|
+
setSelectedRowKeys = _useState16[1];
|
|
7527
|
+
var _useState17 = React$1.useState({}),
|
|
7704
7528
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
var _useState19 = React$1.useState(
|
|
7529
|
+
tableFormParams = _useState18[0],
|
|
7530
|
+
setTableFormParams = _useState18[1];
|
|
7531
|
+
var _useState19 = React$1.useState(false),
|
|
7708
7532
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7709
|
-
|
|
7710
|
-
|
|
7533
|
+
confirmLoading = _useState20[0],
|
|
7534
|
+
setConfirmLoading = _useState20[1];
|
|
7711
7535
|
var _useState21 = React$1.useState(false),
|
|
7712
7536
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
var _useState23 = React$1.useState(
|
|
7537
|
+
confirmContinueLoading = _useState22[0],
|
|
7538
|
+
setConfirmContinueLoading = _useState22[1];
|
|
7539
|
+
var _useState23 = React$1.useState([]),
|
|
7716
7540
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7717
|
-
|
|
7718
|
-
|
|
7541
|
+
selectColumns = _useState24[0],
|
|
7542
|
+
setSelectColumns = _useState24[1];
|
|
7719
7543
|
var _useState25 = React$1.useState([]),
|
|
7720
7544
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7721
|
-
|
|
7722
|
-
|
|
7545
|
+
showColumns = _useState26[0],
|
|
7546
|
+
setShowColumns = _useState26[1];
|
|
7723
7547
|
var _useState27 = React$1.useState([]),
|
|
7724
7548
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7725
|
-
|
|
7726
|
-
|
|
7549
|
+
tableColumns = _useState28[0],
|
|
7550
|
+
setTableColumns = _useState28[1];
|
|
7727
7551
|
var _useState29 = React$1.useState([]),
|
|
7728
7552
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
var _useState31 = React$1.useState([]),
|
|
7732
|
-
_useState32 = _slicedToArray(_useState31, 2),
|
|
7733
|
-
showToChooseColumns = _useState32[0],
|
|
7734
|
-
setShowToChooseColumns = _useState32[1];
|
|
7553
|
+
showToChooseColumns = _useState30[0],
|
|
7554
|
+
setShowToChooseColumns = _useState30[1];
|
|
7735
7555
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7736
7556
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7737
7557
|
// FIXME: 特殊业务逻辑
|
|
7738
7558
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7739
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7740
|
-
var result;
|
|
7741
|
-
return
|
|
7742
|
-
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) {
|
|
7743
7563
|
case 0:
|
|
7744
7564
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7745
7565
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7746
7566
|
}))) {
|
|
7747
|
-
_context.
|
|
7567
|
+
_context.n = 1;
|
|
7748
7568
|
break;
|
|
7749
7569
|
}
|
|
7750
7570
|
antd.message.warning('相同skc配码不可设置相同哦');
|
|
7751
|
-
return _context.
|
|
7752
|
-
case
|
|
7571
|
+
return _context.a(2, false);
|
|
7572
|
+
case 1:
|
|
7753
7573
|
if (!(bType == 'spu')) {
|
|
7754
|
-
_context.
|
|
7574
|
+
_context.n = 9;
|
|
7755
7575
|
break;
|
|
7756
7576
|
}
|
|
7757
7577
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7758
7578
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7759
7579
|
}))) {
|
|
7760
|
-
_context.
|
|
7580
|
+
_context.n = 2;
|
|
7761
7581
|
break;
|
|
7762
7582
|
}
|
|
7763
7583
|
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7764
|
-
return _context.
|
|
7765
|
-
case
|
|
7584
|
+
return _context.a(2, false);
|
|
7585
|
+
case 2:
|
|
7766
7586
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7767
|
-
_context.
|
|
7587
|
+
_context.n = 3;
|
|
7768
7588
|
break;
|
|
7769
7589
|
}
|
|
7770
7590
|
antd.message.warning('请先选择颜色!');
|
|
7771
|
-
return _context.
|
|
7772
|
-
case
|
|
7591
|
+
return _context.a(2, false);
|
|
7592
|
+
case 3:
|
|
7773
7593
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7774
7594
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7775
7595
|
}))) {
|
|
7776
|
-
_context.
|
|
7596
|
+
_context.n = 4;
|
|
7777
7597
|
break;
|
|
7778
7598
|
}
|
|
7779
7599
|
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7780
|
-
return _context.
|
|
7781
|
-
case
|
|
7600
|
+
return _context.a(2, false);
|
|
7601
|
+
case 4:
|
|
7782
7602
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7783
|
-
_context.
|
|
7603
|
+
_context.n = 9;
|
|
7784
7604
|
break;
|
|
7785
7605
|
}
|
|
7786
7606
|
result = true;
|
|
7787
|
-
_context.
|
|
7788
|
-
_context.
|
|
7607
|
+
_context.p = 5;
|
|
7608
|
+
_context.n = 6;
|
|
7789
7609
|
return checkSpuMatchCode({
|
|
7790
7610
|
skcCode: recordItem[recordKey],
|
|
7791
7611
|
matchingCode: changeValue,
|
|
7792
7612
|
ext1: recordItem.colorName
|
|
7793
7613
|
});
|
|
7794
|
-
case
|
|
7795
|
-
result = _context.
|
|
7614
|
+
case 6:
|
|
7615
|
+
result = _context.v;
|
|
7796
7616
|
result = true;
|
|
7797
|
-
_context.
|
|
7617
|
+
_context.n = 8;
|
|
7798
7618
|
break;
|
|
7799
|
-
case
|
|
7800
|
-
_context.
|
|
7801
|
-
|
|
7802
|
-
result = typeof
|
|
7803
|
-
case
|
|
7804
|
-
return _context.
|
|
7805
|
-
case
|
|
7806
|
-
return _context.
|
|
7807
|
-
|
|
7808
|
-
|
|
7809
|
-
return _context.stop();
|
|
7810
|
-
}
|
|
7811
|
-
}, _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]]);
|
|
7812
7629
|
}));
|
|
7813
7630
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7814
7631
|
return _ref2.apply(this, arguments);
|
|
@@ -7899,17 +7716,16 @@ var AddSelect = function AddSelect(props) {
|
|
|
7899
7716
|
e.target.blur();
|
|
7900
7717
|
},
|
|
7901
7718
|
onBlur: function () {
|
|
7902
|
-
var _onBlur = _asyncToGenerator(/*#__PURE__*/
|
|
7719
|
+
var _onBlur = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e) {
|
|
7903
7720
|
var value;
|
|
7904
|
-
return
|
|
7905
|
-
while (1) switch (_context2.
|
|
7721
|
+
return _regenerator().w(function (_context2) {
|
|
7722
|
+
while (1) switch (_context2.n) {
|
|
7906
7723
|
case 0:
|
|
7907
7724
|
value = e.target.value;
|
|
7908
7725
|
record[item.dataIndex] = value;
|
|
7909
7726
|
editRecord(record);
|
|
7910
|
-
case
|
|
7911
|
-
|
|
7912
|
-
return _context2.stop();
|
|
7727
|
+
case 1:
|
|
7728
|
+
return _context2.a(2);
|
|
7913
7729
|
}
|
|
7914
7730
|
}, _callee2);
|
|
7915
7731
|
}));
|
|
@@ -8069,10 +7885,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8069
7885
|
}
|
|
8070
7886
|
_dom6 = null;
|
|
8071
7887
|
} else if (e.keyCode === 38) {
|
|
8072
|
-
var _e$nativeEvent$path$
|
|
7888
|
+
var _e$nativeEvent$path$0;
|
|
8073
7889
|
e.stopPropagation();
|
|
8074
7890
|
e.preventDefault();
|
|
8075
|
-
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];
|
|
8076
7892
|
if (dom1) {
|
|
8077
7893
|
// dom1.value=""
|
|
8078
7894
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -8106,19 +7922,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
8106
7922
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
8107
7923
|
value: text || null,
|
|
8108
7924
|
onChange: function () {
|
|
8109
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
8110
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
8111
|
-
return
|
|
8112
|
-
while (1) switch (_context3.
|
|
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) {
|
|
8113
7929
|
case 0:
|
|
8114
7930
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
8115
7931
|
return d[selectKey] == value;
|
|
8116
7932
|
})) || {};
|
|
8117
7933
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
8118
|
-
_context3.
|
|
7934
|
+
_context3.n = 2;
|
|
8119
7935
|
break;
|
|
8120
7936
|
}
|
|
8121
|
-
_context3.
|
|
7937
|
+
_context3.n = 1;
|
|
8122
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, {
|
|
8123
7939
|
record: record,
|
|
8124
7940
|
index: index,
|
|
@@ -8128,10 +7944,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8128
7944
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
8129
7945
|
editRecord: editRecord
|
|
8130
7946
|
});
|
|
8131
|
-
case
|
|
8132
|
-
_context3.
|
|
7947
|
+
case 1:
|
|
7948
|
+
_context3.n = 10;
|
|
8133
7949
|
break;
|
|
8134
|
-
case
|
|
7950
|
+
case 2:
|
|
8135
7951
|
// 更新当前行数据函数
|
|
8136
7952
|
changeValue = function changeValue(v, dSSItem) {
|
|
8137
7953
|
var _item$dataSourceSelec;
|
|
@@ -8144,12 +7960,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
8144
7960
|
}
|
|
8145
7961
|
}; // 处理校验,默认不校验
|
|
8146
7962
|
isCheckPass = true;
|
|
8147
|
-
_context3.
|
|
7963
|
+
_context3.p = 3;
|
|
8148
7964
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
8149
|
-
_context3.
|
|
7965
|
+
_context3.n = 5;
|
|
8150
7966
|
break;
|
|
8151
7967
|
}
|
|
8152
|
-
_context3.
|
|
7968
|
+
_context3.n = 4;
|
|
8153
7969
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
8154
7970
|
record: record,
|
|
8155
7971
|
index: index,
|
|
@@ -8158,23 +7974,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
8158
7974
|
changeValue: value,
|
|
8159
7975
|
dataSourceSelectItem: dataSourceSelectItem
|
|
8160
7976
|
});
|
|
8161
|
-
case
|
|
8162
|
-
isCheckPass = _context3.
|
|
8163
|
-
_context3.
|
|
7977
|
+
case 4:
|
|
7978
|
+
isCheckPass = _context3.v;
|
|
7979
|
+
_context3.n = 7;
|
|
8164
7980
|
break;
|
|
8165
|
-
case
|
|
8166
|
-
_context3.
|
|
7981
|
+
case 5:
|
|
7982
|
+
_context3.n = 6;
|
|
8167
7983
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
8168
|
-
case
|
|
8169
|
-
isConformToTheRules = _context3.
|
|
7984
|
+
case 6:
|
|
7985
|
+
isConformToTheRules = _context3.v;
|
|
8170
7986
|
isCheckPass = !isConformToTheRules;
|
|
8171
|
-
case
|
|
8172
|
-
_context3.
|
|
7987
|
+
case 7:
|
|
7988
|
+
_context3.n = 9;
|
|
8173
7989
|
break;
|
|
8174
|
-
case
|
|
8175
|
-
_context3.
|
|
8176
|
-
|
|
8177
|
-
case
|
|
7990
|
+
case 8:
|
|
7991
|
+
_context3.p = 8;
|
|
7992
|
+
_t2 = _context3.v;
|
|
7993
|
+
case 9:
|
|
8178
7994
|
if (isCheckPass) {
|
|
8179
7995
|
changeValue(value, dataSourceSelectItem);
|
|
8180
7996
|
} else {
|
|
@@ -8182,11 +7998,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8182
7998
|
}
|
|
8183
7999
|
// 更新已选表格函数
|
|
8184
8000
|
editRecord(record);
|
|
8185
|
-
case
|
|
8186
|
-
|
|
8187
|
-
return _context3.stop();
|
|
8001
|
+
case 10:
|
|
8002
|
+
return _context3.a(2);
|
|
8188
8003
|
}
|
|
8189
|
-
}, _callee3, null, [[
|
|
8004
|
+
}, _callee3, null, [[3, 8]]);
|
|
8190
8005
|
}));
|
|
8191
8006
|
function onChange(_x8) {
|
|
8192
8007
|
return _onChange.apply(this, arguments);
|
|
@@ -9577,29 +9392,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9577
9392
|
dataIndex: 'propertyNameAndValue'
|
|
9578
9393
|
}];
|
|
9579
9394
|
var _useState9 = React$1.useState(false),
|
|
9580
|
-
|
|
9581
|
-
isModalVisible =
|
|
9582
|
-
setIsModalVisible =
|
|
9583
|
-
var
|
|
9395
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
9396
|
+
isModalVisible = _useState0[0],
|
|
9397
|
+
setIsModalVisible = _useState0[1];
|
|
9398
|
+
var _useState1 = React$1.useState([{
|
|
9584
9399
|
hovered: false
|
|
9585
9400
|
}]),
|
|
9586
|
-
|
|
9587
|
-
data =
|
|
9588
|
-
setData =
|
|
9401
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
9402
|
+
data = _useState10[0],
|
|
9403
|
+
setData = _useState10[1];
|
|
9589
9404
|
var tableRef = React$1.useRef(null);
|
|
9590
9405
|
var codeSelected = tableCode;
|
|
9591
|
-
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([]),
|
|
9592
9411
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9593
|
-
|
|
9594
|
-
|
|
9412
|
+
selectColumns = _useState14[0],
|
|
9413
|
+
setSelectColumns = _useState14[1];
|
|
9595
9414
|
var _useState15 = React$1.useState([]),
|
|
9596
9415
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
var _useState17 = React$1.useState([]),
|
|
9600
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
9601
|
-
showColumns = _useState18[0],
|
|
9602
|
-
setShowColumns = _useState18[1];
|
|
9416
|
+
showColumns = _useState16[0],
|
|
9417
|
+
setShowColumns = _useState16[1];
|
|
9603
9418
|
React$1.useEffect(function () {
|
|
9604
9419
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9605
9420
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9715,42 +9530,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9715
9530
|
});
|
|
9716
9531
|
};
|
|
9717
9532
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9718
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9533
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
9719
9534
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9720
|
-
return
|
|
9721
|
-
while (1) switch (_context.
|
|
9535
|
+
return _regenerator().w(function (_context) {
|
|
9536
|
+
while (1) switch (_context.n) {
|
|
9722
9537
|
case 0:
|
|
9723
9538
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9724
|
-
_context.
|
|
9539
|
+
_context.n = 1;
|
|
9725
9540
|
break;
|
|
9726
9541
|
}
|
|
9727
9542
|
antd.message.warning('至少录入一条数据');
|
|
9728
|
-
return _context.
|
|
9729
|
-
case
|
|
9543
|
+
return _context.a(2);
|
|
9544
|
+
case 1:
|
|
9730
9545
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9731
9546
|
return d.skuCode && d.name;
|
|
9732
9547
|
})) {
|
|
9733
|
-
_context.
|
|
9548
|
+
_context.n = 2;
|
|
9734
9549
|
break;
|
|
9735
9550
|
}
|
|
9736
9551
|
antd.message.warning('录入商品不存在');
|
|
9737
|
-
return _context.
|
|
9738
|
-
case
|
|
9552
|
+
return _context.a(2);
|
|
9553
|
+
case 2:
|
|
9739
9554
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9740
9555
|
return d.count;
|
|
9741
9556
|
})) {
|
|
9742
|
-
_context.
|
|
9557
|
+
_context.n = 3;
|
|
9743
9558
|
break;
|
|
9744
9559
|
}
|
|
9745
9560
|
antd.message.warning('请填写商品数量!');
|
|
9746
|
-
return _context.
|
|
9747
|
-
case
|
|
9748
|
-
_context.
|
|
9561
|
+
return _context.a(2);
|
|
9562
|
+
case 3:
|
|
9563
|
+
_context.n = 4;
|
|
9749
9564
|
return isSkuCanEntry(data);
|
|
9750
|
-
case
|
|
9751
|
-
canEntryObject = _context.
|
|
9565
|
+
case 4:
|
|
9566
|
+
canEntryObject = _context.v;
|
|
9752
9567
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9753
|
-
_context.
|
|
9568
|
+
_context.n = 5;
|
|
9754
9569
|
break;
|
|
9755
9570
|
}
|
|
9756
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) {
|
|
@@ -9760,8 +9575,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9760
9575
|
content: messageInfo,
|
|
9761
9576
|
duration: 6
|
|
9762
9577
|
});
|
|
9763
|
-
return _context.
|
|
9764
|
-
case
|
|
9578
|
+
return _context.a(2);
|
|
9579
|
+
case 5:
|
|
9765
9580
|
setLoading(true);
|
|
9766
9581
|
onSaveCallback(data).then(function (res) {
|
|
9767
9582
|
{
|
|
@@ -9779,9 +9594,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9779
9594
|
antd.message.error(Error);
|
|
9780
9595
|
setLoading(false);
|
|
9781
9596
|
});
|
|
9782
|
-
case
|
|
9783
|
-
|
|
9784
|
-
return _context.stop();
|
|
9597
|
+
case 6:
|
|
9598
|
+
return _context.a(2);
|
|
9785
9599
|
}
|
|
9786
9600
|
}, _callee);
|
|
9787
9601
|
}));
|
|
@@ -11978,17 +11792,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11978
11792
|
}
|
|
11979
11793
|
}
|
|
11980
11794
|
}];
|
|
11981
|
-
var
|
|
11795
|
+
var _queryHeaderParams0 = getQueryHeadersList({
|
|
11982
11796
|
querySelectHeadersList: querySelectHeadersList,
|
|
11983
11797
|
extralHeaders: extralHeaders
|
|
11984
11798
|
});
|
|
11985
|
-
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", {
|
|
11986
11800
|
'qp-status-eq': 10,
|
|
11987
11801
|
'qp-isMain-eq': 1,
|
|
11988
11802
|
'qp-type-in': '1,2'
|
|
11989
|
-
}, getQueryHeadersItem(
|
|
11803
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11990
11804
|
'qp-status-eq': 1
|
|
11991
|
-
}, getQueryHeadersItem(
|
|
11805
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in'))]).then(function (x) {
|
|
11992
11806
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
11993
11807
|
var allList = firstElement && [firstElement, firstElement];
|
|
11994
11808
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
@@ -12174,7 +11988,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12174
11988
|
}
|
|
12175
11989
|
}
|
|
12176
11990
|
}];
|
|
12177
|
-
var
|
|
11991
|
+
var _queryHeaderParams1 = getQueryHeadersList({
|
|
12178
11992
|
querySelectHeadersList: querySelectHeadersList,
|
|
12179
11993
|
extralHeaders: extralHeaders
|
|
12180
11994
|
});
|
|
@@ -12182,21 +11996,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12182
11996
|
pageSize: 5000,
|
|
12183
11997
|
currentPage: 1,
|
|
12184
11998
|
'qp-companyType-eq': '30'
|
|
12185
|
-
}, getQueryHeadersItem(
|
|
11999
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
12186
12000
|
pageSize: 5000,
|
|
12187
12001
|
currentPage: 1,
|
|
12188
12002
|
'qp-companyType-eq': '20'
|
|
12189
|
-
}, getQueryHeadersItem(
|
|
12003
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
12190
12004
|
// pageSize: 5000,
|
|
12191
12005
|
// currentPage: 1,
|
|
12192
12006
|
'qp-status-eq': '1'
|
|
12193
|
-
}, getQueryHeadersItem(
|
|
12007
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
12194
12008
|
pageSize: 5000,
|
|
12195
12009
|
currentPage: 1
|
|
12196
|
-
}, getQueryHeadersItem(
|
|
12010
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
12197
12011
|
pageSize: 5000,
|
|
12198
12012
|
currentPage: 1
|
|
12199
|
-
}, getQueryHeadersItem(
|
|
12013
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-accountingCode-in'))]).then(function (x) {
|
|
12200
12014
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12201
12015
|
formatSource(x, 1, 3, tableSearchForm);
|
|
12202
12016
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -12365,8 +12179,26 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12365
12179
|
}
|
|
12366
12180
|
},
|
|
12367
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
|
+
}
|
|
12368
12200
|
}];
|
|
12369
|
-
var
|
|
12201
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
12370
12202
|
querySelectHeadersList: querySelectHeadersList,
|
|
12371
12203
|
extralHeaders: extralHeaders
|
|
12372
12204
|
});
|
|
@@ -12374,13 +12206,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12374
12206
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12375
12207
|
'qp-realOrg-eq': true,
|
|
12376
12208
|
'qp-status-eq': 10
|
|
12377
|
-
}, getQueryHeadersItem(
|
|
12209
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12378
12210
|
'qp-status-eq': 10,
|
|
12379
12211
|
'qp-isMain-eq': 1,
|
|
12380
12212
|
'qp-type-in': '1,2'
|
|
12381
|
-
}, getQueryHeadersItem(
|
|
12213
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12382
12214
|
'qp-status-eq': 1
|
|
12383
|
-
}, 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) {
|
|
12384
12220
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12385
12221
|
return data['parentCode'] === '0';
|
|
12386
12222
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -12390,6 +12226,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12390
12226
|
formatSource(x, 0, 3, tableSearchForm);
|
|
12391
12227
|
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12392
12228
|
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
12229
|
+
formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
|
|
12393
12230
|
});
|
|
12394
12231
|
modalTableProps = _objectSpread2({
|
|
12395
12232
|
modalTableTitle: '选择商店',
|
|
@@ -12615,10 +12452,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12615
12452
|
name: 'qp-email-like',
|
|
12616
12453
|
label: '邮箱'
|
|
12617
12454
|
}, {
|
|
12618
|
-
name: 'qp-
|
|
12455
|
+
name: 'qp-officeTelephone-like',
|
|
12619
12456
|
label: '手机号'
|
|
12620
12457
|
}];
|
|
12621
|
-
var
|
|
12458
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
12622
12459
|
querySelectHeadersList: querySelectHeadersList,
|
|
12623
12460
|
extralHeaders: extralHeaders
|
|
12624
12461
|
});
|
|
@@ -12626,7 +12463,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12626
12463
|
pageSize: 5000,
|
|
12627
12464
|
currentPage: 1,
|
|
12628
12465
|
'qp-companyType-eq': 20
|
|
12629
|
-
}, getQueryHeadersItem(
|
|
12466
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in'))]).then(function (x) {
|
|
12630
12467
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12631
12468
|
});
|
|
12632
12469
|
modalTableProps = _objectSpread2({
|
|
@@ -12735,13 +12572,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12735
12572
|
name: 'qp-phone-like',
|
|
12736
12573
|
label: '手机号'
|
|
12737
12574
|
}]);
|
|
12738
|
-
var
|
|
12575
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12739
12576
|
querySelectHeadersList: querySelectHeadersList,
|
|
12740
12577
|
extralHeaders: extralHeaders
|
|
12741
12578
|
});
|
|
12742
12579
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12743
12580
|
'orgViewCode': 'administrative-organization-view'
|
|
12744
|
-
}, getQueryHeadersItem(
|
|
12581
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-code-in'))]).then(function (x) {
|
|
12745
12582
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12746
12583
|
});
|
|
12747
12584
|
modalTableProps = _objectSpread2({
|
|
@@ -12792,7 +12629,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12792
12629
|
dataIndex: 'email'
|
|
12793
12630
|
}, {
|
|
12794
12631
|
title: '手机号',
|
|
12795
|
-
dataIndex: '
|
|
12632
|
+
dataIndex: 'phone',
|
|
12796
12633
|
defaultSort: 4,
|
|
12797
12634
|
render: function render(text, record) {
|
|
12798
12635
|
return handleTextOverflow(text || (record === null || record === void 0 ? void 0 : record.phone));
|
|
@@ -12888,17 +12725,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12888
12725
|
name: 'qp-remark-like',
|
|
12889
12726
|
label: '备注'
|
|
12890
12727
|
}];
|
|
12891
|
-
var
|
|
12728
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12892
12729
|
querySelectHeadersList: querySelectHeadersList,
|
|
12893
12730
|
extralHeaders: extralHeaders
|
|
12894
12731
|
});
|
|
12895
12732
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12896
12733
|
pageSize: 5000,
|
|
12897
12734
|
currentPage: 1
|
|
12898
|
-
}, getQueryHeadersItem(
|
|
12735
|
+
}, getQueryHeadersItem(_queryHeaderParams13, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12899
12736
|
pageSize: 5000,
|
|
12900
12737
|
currentPage: 1
|
|
12901
|
-
}, getQueryHeadersItem(
|
|
12738
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12902
12739
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12903
12740
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12904
12741
|
});
|
|
@@ -13068,14 +12905,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13068
12905
|
}
|
|
13069
12906
|
}
|
|
13070
12907
|
}];
|
|
13071
|
-
var
|
|
12908
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
13072
12909
|
querySelectHeadersList: querySelectHeadersList,
|
|
13073
12910
|
extralHeaders: extralHeaders
|
|
13074
12911
|
});
|
|
13075
12912
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
13076
12913
|
pageSize: 5000,
|
|
13077
12914
|
currentPage: 1
|
|
13078
|
-
}, getQueryHeadersItem(
|
|
12915
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
13079
12916
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13080
12917
|
});
|
|
13081
12918
|
modalTableProps = _objectSpread2({
|
|
@@ -13172,7 +13009,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13172
13009
|
}
|
|
13173
13010
|
}
|
|
13174
13011
|
}];
|
|
13175
|
-
var
|
|
13012
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
13176
13013
|
querySelectHeadersList: querySelectHeadersList,
|
|
13177
13014
|
extralHeaders: extralHeaders
|
|
13178
13015
|
});
|
|
@@ -13180,7 +13017,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13180
13017
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
13181
13018
|
'qp-realOrg-eq': true,
|
|
13182
13019
|
'qp-status-eq': 10
|
|
13183
|
-
}, getQueryHeadersItem(
|
|
13020
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
13184
13021
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13185
13022
|
});
|
|
13186
13023
|
modalTableProps = _objectSpread2({
|
|
@@ -13286,13 +13123,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13286
13123
|
},
|
|
13287
13124
|
initialSource: nodeType
|
|
13288
13125
|
}];
|
|
13289
|
-
var
|
|
13126
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13290
13127
|
querySelectHeadersList: querySelectHeadersList,
|
|
13291
13128
|
extralHeaders: extralHeaders
|
|
13292
13129
|
});
|
|
13293
13130
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13294
13131
|
'qp-status-eq': 10
|
|
13295
|
-
}, getQueryHeadersItem(
|
|
13132
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13296
13133
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13297
13134
|
});
|
|
13298
13135
|
modalTableProps = _objectSpread2({
|
|
@@ -13618,13 +13455,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13618
13455
|
},
|
|
13619
13456
|
initialSource: nodeType
|
|
13620
13457
|
}];
|
|
13621
|
-
var
|
|
13458
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
13622
13459
|
querySelectHeadersList: querySelectHeadersList,
|
|
13623
13460
|
extralHeaders: extralHeaders
|
|
13624
13461
|
});
|
|
13625
13462
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13626
13463
|
'qp-status-eq': 10
|
|
13627
|
-
}, getQueryHeadersItem(
|
|
13464
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13628
13465
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13629
13466
|
});
|
|
13630
13467
|
modalTableProps = _objectSpread2({
|
|
@@ -14569,9 +14406,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14569
14406
|
value = _useState8[0],
|
|
14570
14407
|
setValue = _useState8[1];
|
|
14571
14408
|
var _useState9 = React$1.useState([]),
|
|
14572
|
-
|
|
14573
|
-
propertyList =
|
|
14574
|
-
setPropertyList =
|
|
14409
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
14410
|
+
propertyList = _useState0[0],
|
|
14411
|
+
setPropertyList = _useState0[1];
|
|
14575
14412
|
React$1.useEffect(function () {
|
|
14576
14413
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14577
14414
|
// type: 1 尺码组; 2 配码组
|
|
@@ -14994,7 +14831,7 @@ function getStorageVale(storageKeyString) {
|
|
|
14994
14831
|
var _storageKeyString$spl = storageKeyString.split('.'),
|
|
14995
14832
|
_storageKeyString$spl2 = _toArray(_storageKeyString$spl),
|
|
14996
14833
|
localstorage = _storageKeyString$spl2[0],
|
|
14997
|
-
restKeyArrays = _storageKeyString$spl2.slice(1);
|
|
14834
|
+
restKeyArrays = _arrayLikeToArray(_storageKeyString$spl2).slice(1);
|
|
14998
14835
|
var localStorageInfo = window.localStorage.getItem(localstorage);
|
|
14999
14836
|
if (!restKeyArrays.length) return localStorageInfo;
|
|
15000
14837
|
var returnVal = JSON.parse(localStorageInfo || '{}');
|
|
@@ -15095,46 +14932,45 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
15095
14932
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
15096
14933
|
headers: headers
|
|
15097
14934
|
}).then(/*#__PURE__*/function () {
|
|
15098
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
14935
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
|
|
15099
14936
|
var _ctx$form;
|
|
15100
14937
|
var resData, coverData, data, dataList;
|
|
15101
|
-
return
|
|
15102
|
-
while (1) switch (_context.
|
|
14938
|
+
return _regenerator().w(function (_context) {
|
|
14939
|
+
while (1) switch (_context.n) {
|
|
15103
14940
|
case 0:
|
|
15104
14941
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
15105
14942
|
if (!judgeIsRequestSuccess(resData)) {
|
|
15106
|
-
_context.
|
|
14943
|
+
_context.n = 4;
|
|
15107
14944
|
break;
|
|
15108
14945
|
}
|
|
15109
14946
|
data = resData.data;
|
|
15110
14947
|
if (!remoteSource.converter) {
|
|
15111
|
-
_context.
|
|
14948
|
+
_context.n = 2;
|
|
15112
14949
|
break;
|
|
15113
14950
|
}
|
|
15114
|
-
_context.
|
|
14951
|
+
_context.n = 1;
|
|
15115
14952
|
return remoteSource.converter({
|
|
15116
14953
|
data: [data]
|
|
15117
14954
|
});
|
|
15118
|
-
case
|
|
15119
|
-
coverData = _context.
|
|
15120
|
-
_context.
|
|
14955
|
+
case 1:
|
|
14956
|
+
coverData = _context.v;
|
|
14957
|
+
_context.n = 3;
|
|
15121
14958
|
break;
|
|
15122
|
-
case
|
|
14959
|
+
case 2:
|
|
15123
14960
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
15124
14961
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
15125
14962
|
return _mapSearchTree(ites);
|
|
15126
14963
|
}) || [];
|
|
15127
|
-
case
|
|
15128
|
-
_context.
|
|
14964
|
+
case 3:
|
|
14965
|
+
_context.n = 5;
|
|
15129
14966
|
break;
|
|
15130
|
-
case
|
|
14967
|
+
case 4:
|
|
15131
14968
|
coverData = [];
|
|
15132
|
-
case
|
|
14969
|
+
case 5:
|
|
15133
14970
|
setTreeData(coverData);
|
|
15134
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);
|
|
15135
|
-
case
|
|
15136
|
-
|
|
15137
|
-
return _context.stop();
|
|
14972
|
+
case 6:
|
|
14973
|
+
return _context.a(2);
|
|
15138
14974
|
}
|
|
15139
14975
|
}, _callee);
|
|
15140
14976
|
}));
|
|
@@ -17537,7 +17373,9 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
17537
17373
|
title = _ref.title,
|
|
17538
17374
|
pathToRegexp = _ref.pathToRegexp,
|
|
17539
17375
|
backHistoryPath = _ref.backHistoryPath,
|
|
17540
|
-
onBack = _ref.onBack
|
|
17376
|
+
onBack = _ref.onBack,
|
|
17377
|
+
tradeType = _ref.tradeType,
|
|
17378
|
+
fromStatus = _ref.fromStatus;
|
|
17541
17379
|
var _useState3 = React$1.useState(false),
|
|
17542
17380
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
17543
17381
|
isFullScreen = _useState4[0],
|
|
@@ -17620,14 +17458,50 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
17620
17458
|
}
|
|
17621
17459
|
}
|
|
17622
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
|
+
};
|
|
17623
17491
|
var renderPageActionList = function renderPageActionList(actionLists) {
|
|
17624
17492
|
var _actionLists$;
|
|
17625
17493
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
17626
17494
|
var visibleActions = actionLists.filter(function (action) {
|
|
17627
|
-
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) {
|
|
17628
17496
|
return item === action.code;
|
|
17629
17497
|
}));
|
|
17630
17498
|
});
|
|
17499
|
+
if (typeof tradeType === 'number') {
|
|
17500
|
+
visibleActions = filterByFlowRules(visibleActions, {
|
|
17501
|
+
tradeType: tradeType,
|
|
17502
|
+
status: fromStatus
|
|
17503
|
+
});
|
|
17504
|
+
}
|
|
17631
17505
|
var renderButton = function renderButton(item, type) {
|
|
17632
17506
|
return /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
17633
17507
|
type: type || 'primary',
|
|
@@ -17740,6 +17614,68 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
17740
17614
|
}
|
|
17741
17615
|
return true;
|
|
17742
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
|
+
};
|
|
17743
17679
|
|
|
17744
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";
|
|
17745
17681
|
styleInject(css_248z$h);
|
|
@@ -18033,6 +17969,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
18033
17969
|
title: '列首',
|
|
18034
17970
|
dataIndex: 'fixedLeft',
|
|
18035
17971
|
render: function render(text, record) {
|
|
17972
|
+
if (_this.props.disableColumnFixed) {
|
|
17973
|
+
return null;
|
|
17974
|
+
}
|
|
18036
17975
|
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
18037
17976
|
onClick: function onClick() {
|
|
18038
17977
|
var sortDataSource = _this.state.sortDataSource;
|
|
@@ -18109,6 +18048,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
18109
18048
|
title: '列尾',
|
|
18110
18049
|
dataIndex: 'fixedRight',
|
|
18111
18050
|
render: function render(text, record) {
|
|
18051
|
+
if (_this.props.disableColumnFixed) {
|
|
18052
|
+
return null;
|
|
18053
|
+
}
|
|
18112
18054
|
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
18113
18055
|
onClick: function onClick() {
|
|
18114
18056
|
var sortDataSource = _this.state.sortDataSource;
|
|
@@ -19358,7 +19300,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
19358
19300
|
}, /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps)));
|
|
19359
19301
|
};
|
|
19360
19302
|
var BsSulaQueryTable = (function (props) {
|
|
19361
|
-
var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _value$exportConfig6;
|
|
19303
|
+
var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _props$tableProps, _value$exportConfig6;
|
|
19362
19304
|
var bsTableCode = (props === null || props === void 0 ? void 0 : props.tableCode) || window.location.hash; //设置列字段的唯一标识
|
|
19363
19305
|
var rowsRef = React$1.useRef(null);
|
|
19364
19306
|
// 获取 table columns中所有的 key 防止有的地方是 dataindex
|
|
@@ -19436,38 +19378,38 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19436
19378
|
};
|
|
19437
19379
|
var refs = React$1.useRef(null);
|
|
19438
19380
|
var _useState9 = React$1.useState(''),
|
|
19439
|
-
|
|
19440
|
-
pagePath =
|
|
19441
|
-
setPagePath =
|
|
19381
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
19382
|
+
pagePath = _useState0[0],
|
|
19383
|
+
setPagePath = _useState0[1];
|
|
19442
19384
|
var _useLocation = umi.useLocation(),
|
|
19443
19385
|
pathname = _useLocation.pathname,
|
|
19444
19386
|
_useLocation$state = _useLocation.state,
|
|
19445
19387
|
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
19446
|
-
var
|
|
19447
|
-
|
|
19448
|
-
isFullScreen =
|
|
19449
|
-
setIsFnllScreen =
|
|
19388
|
+
var _useState1 = React$1.useState(false),
|
|
19389
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
19390
|
+
isFullScreen = _useState10[0],
|
|
19391
|
+
setIsFnllScreen = _useState10[1];
|
|
19450
19392
|
// @ts-nocheck
|
|
19451
19393
|
var value = props;
|
|
19452
19394
|
var _props$fields = props.fields,
|
|
19453
19395
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
19454
|
-
var
|
|
19455
|
-
|
|
19456
|
-
showColumn =
|
|
19457
|
-
setShowColumns =
|
|
19396
|
+
var _useState11 = React$1.useState([]),
|
|
19397
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
19398
|
+
showColumn = _useState12[0],
|
|
19399
|
+
setShowColumns = _useState12[1]; // 列字段
|
|
19458
19400
|
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19459
|
-
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([]),
|
|
19460
19406
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
19461
|
-
|
|
19462
|
-
|
|
19463
|
-
var _useState17 = React$1.useState(
|
|
19407
|
+
showExportColumn = _useState16[0],
|
|
19408
|
+
setShowExportColumns = _useState16[1]; // 导出列字段
|
|
19409
|
+
var _useState17 = React$1.useState(''),
|
|
19464
19410
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
19465
|
-
|
|
19466
|
-
|
|
19467
|
-
var _useState19 = React$1.useState(''),
|
|
19468
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
19469
|
-
height = _useState20[0],
|
|
19470
|
-
setHeight = _useState20[1];
|
|
19411
|
+
height = _useState18[0],
|
|
19412
|
+
setHeight = _useState18[1];
|
|
19471
19413
|
var sortTableRef = React$1.useRef(null);
|
|
19472
19414
|
var searchTableRef = React$1.useRef(null);
|
|
19473
19415
|
var exportTableRef = React$1.useRef(null);
|
|
@@ -19720,10 +19662,22 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19720
19662
|
};
|
|
19721
19663
|
}
|
|
19722
19664
|
}, (value === null || value === void 0 ? void 0 : value.tableProps) || {});
|
|
19723
|
-
// @ts-ignore
|
|
19724
19665
|
if (tableProps === null || tableProps === void 0 ? void 0 : (_tableProps$initialPa = tableProps.initialPaging) === null || _tableProps$initialPa === void 0 ? void 0 : _tableProps$initialPa.pagination) {
|
|
19725
|
-
// @ts-ignore
|
|
19726
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
|
+
}
|
|
19727
19681
|
}
|
|
19728
19682
|
return tableProps;
|
|
19729
19683
|
};
|
|
@@ -19808,13 +19762,124 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19808
19762
|
if (value.rowSelection) {
|
|
19809
19763
|
value.rowSelection.columnWidth = 50;
|
|
19810
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
|
+
}
|
|
19811
19875
|
return _objectSpread2(_objectSpread2({}, value), {}, {
|
|
19812
|
-
actionsRender: actionsRender
|
|
19876
|
+
actionsRender: actionsRender,
|
|
19877
|
+
remoteDataSource: remoteDataSource
|
|
19813
19878
|
});
|
|
19814
19879
|
};
|
|
19815
19880
|
var handleResize = function handleResize(index) {
|
|
19816
|
-
return function (e,
|
|
19817
|
-
var size =
|
|
19881
|
+
return function (e, _ref5) {
|
|
19882
|
+
var size = _ref5.size;
|
|
19818
19883
|
setShowColumns(function (columns) {
|
|
19819
19884
|
var newColumns = _toConsumableArray(columns);
|
|
19820
19885
|
newColumns[index] = _objectSpread2(_objectSpread2({}, newColumns[index]), {}, {
|
|
@@ -19842,11 +19907,66 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19842
19907
|
// 优化一下 减少复杂度
|
|
19843
19908
|
var titleMap = toMapByKey(value.columns, 'title');
|
|
19844
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
|
+
};
|
|
19845
19962
|
var cols = showColumn.map(function (i) {
|
|
19846
|
-
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;
|
|
19847
19967
|
return _objectSpread2(_objectSpread2({}, i), {}, {
|
|
19848
|
-
isPermissionColumn:
|
|
19849
|
-
render:
|
|
19968
|
+
isPermissionColumn: isPerm,
|
|
19969
|
+
render: newRender
|
|
19850
19970
|
});
|
|
19851
19971
|
});
|
|
19852
19972
|
cols.forEach(function (i) {
|
|
@@ -20019,6 +20139,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
20019
20139
|
id: "bs-sula-query-table"
|
|
20020
20140
|
}, /*#__PURE__*/React__default['default'].createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
|
|
20021
20141
|
ref: sortTableRef,
|
|
20142
|
+
disableColumnFixed: (_props$tableProps = props.tableProps) === null || _props$tableProps === void 0 ? void 0 : _props$tableProps.isVirtualTable,
|
|
20022
20143
|
setShowColumns: setResizeShowColumns,
|
|
20023
20144
|
showColumn: showColumn,
|
|
20024
20145
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -20095,7 +20216,7 @@ var matchPath = function matchPath(pathname) {
|
|
|
20095
20216
|
if (!match) return null;
|
|
20096
20217
|
var _match = _toArray(match),
|
|
20097
20218
|
url = _match[0],
|
|
20098
|
-
values = _match.slice(1);
|
|
20219
|
+
values = _arrayLikeToArray(_match).slice(1);
|
|
20099
20220
|
var isExact = pathname === url;
|
|
20100
20221
|
if (exact && !isExact) return null;
|
|
20101
20222
|
return {
|
|
@@ -20515,22 +20636,19 @@ function outLogin(_x) {
|
|
|
20515
20636
|
return _outLogin.apply(this, arguments);
|
|
20516
20637
|
}
|
|
20517
20638
|
function _outLogin() {
|
|
20518
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
20639
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20519
20640
|
var res;
|
|
20520
|
-
return
|
|
20521
|
-
while (1) switch (_context.
|
|
20641
|
+
return _regenerator().w(function (_context) {
|
|
20642
|
+
while (1) switch (_context.n) {
|
|
20522
20643
|
case 0:
|
|
20523
|
-
_context.
|
|
20644
|
+
_context.n = 1;
|
|
20524
20645
|
return requestUtil({
|
|
20525
20646
|
url: '/user/web/loginOut',
|
|
20526
20647
|
method: 'GET'
|
|
20527
20648
|
});
|
|
20528
|
-
case
|
|
20529
|
-
res = _context.
|
|
20530
|
-
return _context.
|
|
20531
|
-
case 4:
|
|
20532
|
-
case "end":
|
|
20533
|
-
return _context.stop();
|
|
20649
|
+
case 1:
|
|
20650
|
+
res = _context.v;
|
|
20651
|
+
return _context.a(2, res);
|
|
20534
20652
|
}
|
|
20535
20653
|
}, _callee);
|
|
20536
20654
|
}));
|
|
@@ -20657,20 +20775,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20657
20775
|
});
|
|
20658
20776
|
};
|
|
20659
20777
|
var loginOut = /*#__PURE__*/function () {
|
|
20660
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
20778
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
20661
20779
|
var sessionId;
|
|
20662
|
-
return
|
|
20663
|
-
while (1) switch (_context.
|
|
20780
|
+
return _regenerator().w(function (_context) {
|
|
20781
|
+
while (1) switch (_context.n) {
|
|
20664
20782
|
case 0:
|
|
20665
|
-
_context.
|
|
20783
|
+
_context.n = 1;
|
|
20666
20784
|
return getSessionId();
|
|
20667
|
-
case
|
|
20668
|
-
sessionId = _context.
|
|
20669
|
-
_context.
|
|
20785
|
+
case 1:
|
|
20786
|
+
sessionId = _context.v;
|
|
20787
|
+
_context.n = 2;
|
|
20670
20788
|
return outLogin({
|
|
20671
20789
|
sessionId: sessionId
|
|
20672
20790
|
});
|
|
20673
|
-
case
|
|
20791
|
+
case 2:
|
|
20674
20792
|
// @ts-ignore
|
|
20675
20793
|
if (BUILD_TYPE) {
|
|
20676
20794
|
antd.message.success('退出登录成功');
|
|
@@ -20680,9 +20798,8 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20680
20798
|
} else {
|
|
20681
20799
|
setLoginOutPath();
|
|
20682
20800
|
}
|
|
20683
|
-
case
|
|
20684
|
-
|
|
20685
|
-
return _context.stop();
|
|
20801
|
+
case 3:
|
|
20802
|
+
return _context.a(2);
|
|
20686
20803
|
}
|
|
20687
20804
|
}, _callee);
|
|
20688
20805
|
}));
|
|
@@ -20769,18 +20886,15 @@ function getStoreByName(_x) {
|
|
|
20769
20886
|
return _getStoreByName.apply(this, arguments);
|
|
20770
20887
|
}
|
|
20771
20888
|
function _getStoreByName() {
|
|
20772
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20773
|
-
return
|
|
20774
|
-
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) {
|
|
20775
20892
|
case 0:
|
|
20776
|
-
return _context.
|
|
20893
|
+
return _context.a(2, requestUtil({
|
|
20777
20894
|
url: '/store-house/orgViewNode/listNoPage',
|
|
20778
20895
|
method: 'GET',
|
|
20779
20896
|
params: _objectSpread2({}, params)
|
|
20780
20897
|
}));
|
|
20781
|
-
case 1:
|
|
20782
|
-
case "end":
|
|
20783
|
-
return _context.stop();
|
|
20784
20898
|
}
|
|
20785
20899
|
}, _callee);
|
|
20786
20900
|
}));
|
|
@@ -20815,33 +20929,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20815
20929
|
openSelect = _useState8[0],
|
|
20816
20930
|
setOpenSelect = _useState8[1];
|
|
20817
20931
|
var _useState9 = React$1.useState([]),
|
|
20818
|
-
|
|
20819
|
-
options =
|
|
20820
|
-
setOptions =
|
|
20821
|
-
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(''),
|
|
20822
20940
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
20823
|
-
|
|
20824
|
-
|
|
20825
|
-
var _useState13 = React$1.useState(
|
|
20826
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
20827
|
-
searchValue = _useState14[0],
|
|
20828
|
-
setSearchValue = _useState14[1];
|
|
20829
|
-
var _useState15 = React$1.useState([{
|
|
20941
|
+
searchValue = _useState12[0],
|
|
20942
|
+
setSearchValue = _useState12[1];
|
|
20943
|
+
var _useState13 = React$1.useState([{
|
|
20830
20944
|
label: name,
|
|
20831
20945
|
value: code
|
|
20832
20946
|
}]),
|
|
20833
|
-
|
|
20834
|
-
store =
|
|
20835
|
-
setStore =
|
|
20947
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
20948
|
+
store = _useState14[0],
|
|
20949
|
+
setStore = _useState14[1];
|
|
20836
20950
|
function fetchUserList(_x, _x2) {
|
|
20837
20951
|
return _fetchUserList.apply(this, arguments);
|
|
20838
20952
|
}
|
|
20839
20953
|
function _fetchUserList() {
|
|
20840
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
20841
|
-
return
|
|
20842
|
-
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) {
|
|
20843
20957
|
case 0:
|
|
20844
|
-
return _context3.
|
|
20958
|
+
return _context3.a(2, getStoreByName({
|
|
20845
20959
|
orgName: storeName ? storeName : undefined,
|
|
20846
20960
|
platCompanyCode: init ? undefined : key,
|
|
20847
20961
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -20860,9 +20974,6 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20860
20974
|
};
|
|
20861
20975
|
});
|
|
20862
20976
|
}));
|
|
20863
|
-
case 1:
|
|
20864
|
-
case "end":
|
|
20865
|
-
return _context3.stop();
|
|
20866
20977
|
}
|
|
20867
20978
|
}, _callee3);
|
|
20868
20979
|
}));
|
|
@@ -20885,20 +20996,19 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20885
20996
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
20886
20997
|
}, [debounceTimeout, key]);
|
|
20887
20998
|
var changeInput = /*#__PURE__*/function () {
|
|
20888
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
20999
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
|
|
20889
21000
|
var res;
|
|
20890
|
-
return
|
|
20891
|
-
while (1) switch (_context.
|
|
21001
|
+
return _regenerator().w(function (_context) {
|
|
21002
|
+
while (1) switch (_context.n) {
|
|
20892
21003
|
case 0:
|
|
20893
|
-
_context.
|
|
21004
|
+
_context.n = 1;
|
|
20894
21005
|
return debounceFetcher(str);
|
|
20895
|
-
case
|
|
20896
|
-
res = _context.
|
|
21006
|
+
case 1:
|
|
21007
|
+
res = _context.v;
|
|
20897
21008
|
setOptions(res);
|
|
20898
21009
|
setRescouse(res);
|
|
20899
|
-
case
|
|
20900
|
-
|
|
20901
|
-
return _context.stop();
|
|
21010
|
+
case 2:
|
|
21011
|
+
return _context.a(2);
|
|
20902
21012
|
}
|
|
20903
21013
|
}, _callee);
|
|
20904
21014
|
}));
|
|
@@ -20907,15 +21017,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20907
21017
|
};
|
|
20908
21018
|
}();
|
|
20909
21019
|
React$1.useEffect(function () {
|
|
20910
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
21020
|
+
_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
20911
21021
|
var res;
|
|
20912
|
-
return
|
|
20913
|
-
while (1) switch (_context2.
|
|
21022
|
+
return _regenerator().w(function (_context2) {
|
|
21023
|
+
while (1) switch (_context2.n) {
|
|
20914
21024
|
case 0:
|
|
20915
|
-
_context2.
|
|
21025
|
+
_context2.n = 1;
|
|
20916
21026
|
return fetchUserList(undefined, true);
|
|
20917
|
-
case
|
|
20918
|
-
res = _context2.
|
|
21027
|
+
case 1:
|
|
21028
|
+
res = _context2.v;
|
|
20919
21029
|
res.map(function (item, indexNumber) {
|
|
20920
21030
|
if (item.label === name) {
|
|
20921
21031
|
setIndex(indexNumber);
|
|
@@ -20931,9 +21041,8 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20931
21041
|
});
|
|
20932
21042
|
setOptions(res);
|
|
20933
21043
|
setRescouse(res);
|
|
20934
|
-
case
|
|
20935
|
-
|
|
20936
|
-
return _context2.stop();
|
|
21044
|
+
case 2:
|
|
21045
|
+
return _context2.a(2);
|
|
20937
21046
|
}
|
|
20938
21047
|
}, _callee2);
|
|
20939
21048
|
}))();
|
|
@@ -21982,25 +22091,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
21982
22091
|
currentOneLevel = _useState8[0],
|
|
21983
22092
|
setCurrentOneLevel = _useState8[1];
|
|
21984
22093
|
var _useState9 = React$1.useState([]),
|
|
21985
|
-
|
|
21986
|
-
SearhData =
|
|
21987
|
-
setSearchMenuData =
|
|
21988
|
-
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),
|
|
21989
22102
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
21990
|
-
|
|
21991
|
-
|
|
21992
|
-
var _useState13 = React$1.useState(
|
|
22103
|
+
drawHeight = _useState12[0],
|
|
22104
|
+
setDrawHeight = _useState12[1];
|
|
22105
|
+
var _useState13 = React$1.useState(false),
|
|
21993
22106
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
21994
|
-
|
|
21995
|
-
|
|
22107
|
+
moreBtnShow = _useState14[0],
|
|
22108
|
+
setMoreBtnShow = _useState14[1];
|
|
21996
22109
|
var _useState15 = React$1.useState(false),
|
|
21997
22110
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
21998
|
-
|
|
21999
|
-
|
|
22000
|
-
var _useState17 = React$1.useState(false),
|
|
22001
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
22002
|
-
showScroll = _useState18[0],
|
|
22003
|
-
setShowScroll = _useState18[1];
|
|
22111
|
+
showScroll = _useState16[0],
|
|
22112
|
+
setShowScroll = _useState16[1];
|
|
22004
22113
|
React$1.useEffect(function () {
|
|
22005
22114
|
var _originRoutes$find;
|
|
22006
22115
|
getMenuContentHeight();
|
|
@@ -23611,14 +23720,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23611
23720
|
},
|
|
23612
23721
|
menu: {
|
|
23613
23722
|
request: function () {
|
|
23614
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23615
|
-
return
|
|
23616
|
-
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) {
|
|
23617
23726
|
case 0:
|
|
23618
|
-
return _context.
|
|
23619
|
-
case 1:
|
|
23620
|
-
case "end":
|
|
23621
|
-
return _context.stop();
|
|
23727
|
+
return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
23622
23728
|
}
|
|
23623
23729
|
}, _callee);
|
|
23624
23730
|
}));
|
|
@@ -24023,31 +24129,31 @@ var index$6 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
24023
24129
|
multiTableData = _useState8[0],
|
|
24024
24130
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
24025
24131
|
var _useState9 = React$1.useState(10),
|
|
24026
|
-
|
|
24027
|
-
viewCount =
|
|
24028
|
-
setViewCount =
|
|
24132
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
24133
|
+
viewCount = _useState0[0],
|
|
24134
|
+
setViewCount = _useState0[1]; //虚拟表格每次渲染数量
|
|
24029
24135
|
var itemWidth = 100; // 表格每一项宽度
|
|
24030
|
-
var
|
|
24031
|
-
|
|
24032
|
-
realColHeaderWidth =
|
|
24033
|
-
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];
|
|
24034
24140
|
var viewPort = React$1.useRef(null);
|
|
24035
24141
|
var topScrollBar = React$1.useRef(null);
|
|
24036
24142
|
var leftTableRef = React$1.useRef(null);
|
|
24037
24143
|
//起始渲染item
|
|
24038
|
-
var
|
|
24039
|
-
|
|
24040
|
-
startIndex =
|
|
24041
|
-
setStartIndex =
|
|
24144
|
+
var _useState11 = React$1.useState(0),
|
|
24145
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
24146
|
+
startIndex = _useState12[0],
|
|
24147
|
+
setStartIndex = _useState12[1];
|
|
24042
24148
|
//结束渲染item
|
|
24043
24149
|
var endIndex = React$1.useMemo(function () {
|
|
24044
24150
|
return startIndex + viewCount;
|
|
24045
24151
|
}, [startIndex, viewCount]);
|
|
24046
24152
|
//表格偏移量
|
|
24047
|
-
var
|
|
24048
|
-
|
|
24049
|
-
offsetWidth =
|
|
24050
|
-
setOffset =
|
|
24153
|
+
var _useState13 = React$1.useState(0),
|
|
24154
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
24155
|
+
offsetWidth = _useState14[0],
|
|
24156
|
+
setOffset = _useState14[1];
|
|
24051
24157
|
React$1.useEffect(function () {
|
|
24052
24158
|
setTimeout(function () {
|
|
24053
24159
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -31351,11 +31457,11 @@ var valueType = {
|
|
|
31351
31457
|
};
|
|
31352
31458
|
|
|
31353
31459
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
31354
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
31355
|
-
return
|
|
31356
|
-
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) {
|
|
31357
31463
|
case 0:
|
|
31358
|
-
_context.
|
|
31464
|
+
_context.n = 1;
|
|
31359
31465
|
return bssula.request({
|
|
31360
31466
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
31361
31467
|
converter: function converter(_ref2) {
|
|
@@ -31368,11 +31474,8 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
31368
31474
|
});
|
|
31369
31475
|
}
|
|
31370
31476
|
});
|
|
31371
|
-
case
|
|
31372
|
-
return _context.
|
|
31373
|
-
case 3:
|
|
31374
|
-
case "end":
|
|
31375
|
-
return _context.stop();
|
|
31477
|
+
case 1:
|
|
31478
|
+
return _context.a(2, _context.v);
|
|
31376
31479
|
}
|
|
31377
31480
|
}, _callee);
|
|
31378
31481
|
}));
|
|
@@ -31419,12 +31522,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31419
31522
|
value: false
|
|
31420
31523
|
}];
|
|
31421
31524
|
var ref = React$1.useRef();
|
|
31422
|
-
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
31423
|
-
var _ref$current, source;
|
|
31424
|
-
return
|
|
31425
|
-
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) {
|
|
31426
31529
|
case 0:
|
|
31427
|
-
_context.
|
|
31530
|
+
_context.n = 1;
|
|
31428
31531
|
return setIsShowAndType(function (prev) {
|
|
31429
31532
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
31430
31533
|
return {
|
|
@@ -31435,40 +31538,39 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31435
31538
|
}
|
|
31436
31539
|
return prev;
|
|
31437
31540
|
});
|
|
31438
|
-
case
|
|
31541
|
+
case 1:
|
|
31439
31542
|
if (!record.dictionaryCode) {
|
|
31440
|
-
_context.
|
|
31543
|
+
_context.n = 7;
|
|
31441
31544
|
break;
|
|
31442
31545
|
}
|
|
31443
31546
|
if (!(record.choiceType == 20)) {
|
|
31444
|
-
_context.
|
|
31547
|
+
_context.n = 2;
|
|
31445
31548
|
break;
|
|
31446
31549
|
}
|
|
31447
|
-
|
|
31448
|
-
_context.
|
|
31550
|
+
_t = getDictionarySource(record.dictionaryCode);
|
|
31551
|
+
_context.n = 6;
|
|
31449
31552
|
break;
|
|
31450
|
-
case
|
|
31553
|
+
case 2:
|
|
31451
31554
|
if (!(record.choiceType == 30)) {
|
|
31452
|
-
_context.
|
|
31555
|
+
_context.n = 4;
|
|
31453
31556
|
break;
|
|
31454
31557
|
}
|
|
31455
|
-
_context.
|
|
31558
|
+
_context.n = 3;
|
|
31456
31559
|
return getDynamicDict(record.dictionaryCode);
|
|
31457
|
-
case
|
|
31458
|
-
|
|
31459
|
-
_context.
|
|
31560
|
+
case 3:
|
|
31561
|
+
_t2 = _context.v;
|
|
31562
|
+
_context.n = 5;
|
|
31460
31563
|
break;
|
|
31461
|
-
case
|
|
31462
|
-
|
|
31463
|
-
case
|
|
31464
|
-
|
|
31465
|
-
case
|
|
31466
|
-
source =
|
|
31564
|
+
case 4:
|
|
31565
|
+
_t2 = [];
|
|
31566
|
+
case 5:
|
|
31567
|
+
_t = _t2;
|
|
31568
|
+
case 6:
|
|
31569
|
+
source = _t;
|
|
31467
31570
|
// @ts-ignore
|
|
31468
31571
|
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
31469
|
-
case
|
|
31470
|
-
|
|
31471
|
-
return _context.stop();
|
|
31572
|
+
case 7:
|
|
31573
|
+
return _context.a(2);
|
|
31472
31574
|
}
|
|
31473
31575
|
}, _callee);
|
|
31474
31576
|
})));
|
|
@@ -31533,10 +31635,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31533
31635
|
source: {
|
|
31534
31636
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
31535
31637
|
type: function () {
|
|
31536
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
31638
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
|
|
31537
31639
|
var form, values, name, relates, source;
|
|
31538
|
-
return
|
|
31539
|
-
while (1) switch (_context2.
|
|
31640
|
+
return _regenerator().w(function (_context2) {
|
|
31641
|
+
while (1) switch (_context2.n) {
|
|
31540
31642
|
case 0:
|
|
31541
31643
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
31542
31644
|
if (values[0]) {
|
|
@@ -31545,19 +31647,18 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31545
31647
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
31546
31648
|
}
|
|
31547
31649
|
if (!values[1]) {
|
|
31548
|
-
_context2.
|
|
31650
|
+
_context2.n = 2;
|
|
31549
31651
|
break;
|
|
31550
31652
|
}
|
|
31551
|
-
_context2.
|
|
31653
|
+
_context2.n = 1;
|
|
31552
31654
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
31553
|
-
case
|
|
31554
|
-
source = _context2.
|
|
31655
|
+
case 1:
|
|
31656
|
+
source = _context2.v;
|
|
31555
31657
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
31556
31658
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
31557
31659
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
31558
|
-
case
|
|
31559
|
-
|
|
31560
|
-
return _context2.stop();
|
|
31660
|
+
case 2:
|
|
31661
|
+
return _context2.a(2);
|
|
31561
31662
|
}
|
|
31562
31663
|
}, _callee2);
|
|
31563
31664
|
}));
|
|
@@ -32013,25 +32114,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32013
32114
|
source: {
|
|
32014
32115
|
relates: ['choiceType', 'inputType'],
|
|
32015
32116
|
type: function () {
|
|
32016
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
32117
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
|
|
32017
32118
|
var values, name, form, source;
|
|
32018
|
-
return
|
|
32019
|
-
while (1) switch (_context3.
|
|
32119
|
+
return _regenerator().w(function (_context3) {
|
|
32120
|
+
while (1) switch (_context3.n) {
|
|
32020
32121
|
case 0:
|
|
32021
|
-
values =
|
|
32122
|
+
values = _ref0.values, name = _ref0.name, form = _ref0.form;
|
|
32022
32123
|
if (values[1] === 40) {
|
|
32023
32124
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
32024
32125
|
form.setFieldVisible(name, false);
|
|
32025
32126
|
}
|
|
32026
32127
|
if (!(values[0] === 30)) {
|
|
32027
|
-
_context3.
|
|
32128
|
+
_context3.n = 2;
|
|
32028
32129
|
break;
|
|
32029
32130
|
}
|
|
32030
|
-
_context3.
|
|
32131
|
+
_context3.n = 1;
|
|
32031
32132
|
return bssula.request({
|
|
32032
32133
|
url: '/basic/dictDynamicItem/queryList',
|
|
32033
|
-
converter: function converter(
|
|
32034
|
-
var data =
|
|
32134
|
+
converter: function converter(_ref1) {
|
|
32135
|
+
var data = _ref1.data;
|
|
32035
32136
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32036
32137
|
return {
|
|
32037
32138
|
text: d.dictCode,
|
|
@@ -32040,17 +32141,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32040
32141
|
});
|
|
32041
32142
|
}
|
|
32042
32143
|
});
|
|
32043
|
-
case
|
|
32044
|
-
source = _context3.
|
|
32144
|
+
case 1:
|
|
32145
|
+
source = _context3.v;
|
|
32045
32146
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
32046
32147
|
form.setFieldVisible(name, true);
|
|
32047
|
-
_context3.
|
|
32148
|
+
_context3.n = 3;
|
|
32048
32149
|
break;
|
|
32049
|
-
case
|
|
32150
|
+
case 2:
|
|
32050
32151
|
form.setFieldVisible(name, false);
|
|
32051
|
-
case
|
|
32052
|
-
|
|
32053
|
-
return _context3.stop();
|
|
32152
|
+
case 3:
|
|
32153
|
+
return _context3.a(2);
|
|
32054
32154
|
}
|
|
32055
32155
|
}, _callee3);
|
|
32056
32156
|
}));
|
|
@@ -32065,8 +32165,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32065
32165
|
name: 'enumeration',
|
|
32066
32166
|
label: '维护自定义选项',
|
|
32067
32167
|
field: {
|
|
32068
|
-
type: function type(
|
|
32069
|
-
var form =
|
|
32168
|
+
type: function type(_ref10) {
|
|
32169
|
+
var form = _ref10.form;
|
|
32070
32170
|
return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
32071
32171
|
type: 'link',
|
|
32072
32172
|
onClick: function onClick() {
|
|
@@ -32092,10 +32192,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32092
32192
|
dependency: {
|
|
32093
32193
|
source: {
|
|
32094
32194
|
relates: ['choiceType'],
|
|
32095
|
-
type: function type(
|
|
32096
|
-
var values =
|
|
32097
|
-
name =
|
|
32098
|
-
form =
|
|
32195
|
+
type: function type(_ref11) {
|
|
32196
|
+
var values = _ref11.values,
|
|
32197
|
+
name = _ref11.name,
|
|
32198
|
+
form = _ref11.form;
|
|
32099
32199
|
if (values[0] === 10) {
|
|
32100
32200
|
form.setFieldVisible(name, true);
|
|
32101
32201
|
} else {
|
|
@@ -32111,10 +32211,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32111
32211
|
dependency: {
|
|
32112
32212
|
visible: {
|
|
32113
32213
|
relates: ['choiceType'],
|
|
32114
|
-
type: function type(
|
|
32115
|
-
var name =
|
|
32116
|
-
values =
|
|
32117
|
-
form =
|
|
32214
|
+
type: function type(_ref12) {
|
|
32215
|
+
var name = _ref12.name,
|
|
32216
|
+
values = _ref12.values,
|
|
32217
|
+
form = _ref12.form;
|
|
32118
32218
|
if (values[0] == 330) {
|
|
32119
32219
|
form.setFieldVisible(name, true);
|
|
32120
32220
|
} else {
|
|
@@ -32138,8 +32238,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32138
32238
|
params: {
|
|
32139
32239
|
'qp-businessType-eq': record.businessType
|
|
32140
32240
|
},
|
|
32141
|
-
converter: function converter(
|
|
32142
|
-
var data =
|
|
32241
|
+
converter: function converter(_ref13) {
|
|
32242
|
+
var data = _ref13.data;
|
|
32143
32243
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32144
32244
|
return {
|
|
32145
32245
|
text: d.name,
|
|
@@ -32179,8 +32279,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32179
32279
|
'qp-businessType-eq': record.businessType,
|
|
32180
32280
|
'qp-status-eq': 1
|
|
32181
32281
|
},
|
|
32182
|
-
converter: function converter(
|
|
32183
|
-
var data =
|
|
32282
|
+
converter: function converter(_ref14) {
|
|
32283
|
+
var data = _ref14.data;
|
|
32184
32284
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32185
32285
|
var _d$code;
|
|
32186
32286
|
return {
|
|
@@ -32208,8 +32308,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32208
32308
|
remoteSource: {
|
|
32209
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),
|
|
32210
32310
|
method: 'get',
|
|
32211
|
-
converter: function converter(
|
|
32212
|
-
var data =
|
|
32311
|
+
converter: function converter(_ref15) {
|
|
32312
|
+
var data = _ref15.data;
|
|
32213
32313
|
if (lineDetail.moduleType == 1) {
|
|
32214
32314
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32215
32315
|
return {
|
|
@@ -32235,16 +32335,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32235
32335
|
width: 900,
|
|
32236
32336
|
maskClosable: false,
|
|
32237
32337
|
onOk: function () {
|
|
32238
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
32338
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
32239
32339
|
var _ref$current4, _res$editableStatus;
|
|
32240
32340
|
var res, _res$defaultValue;
|
|
32241
|
-
return
|
|
32242
|
-
while (1) switch (_context4.
|
|
32341
|
+
return _regenerator().w(function (_context4) {
|
|
32342
|
+
while (1) switch (_context4.n) {
|
|
32243
32343
|
case 0:
|
|
32244
|
-
_context4.
|
|
32344
|
+
_context4.n = 1;
|
|
32245
32345
|
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
32246
|
-
case
|
|
32247
|
-
res = _context4.
|
|
32346
|
+
case 1:
|
|
32347
|
+
res = _context4.v;
|
|
32248
32348
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
32249
32349
|
res.fieldGroup = record.fieldGroup;
|
|
32250
32350
|
res.businessType = record.businessType;
|
|
@@ -32271,7 +32371,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32271
32371
|
delete res.formula;
|
|
32272
32372
|
delete res.showValue;
|
|
32273
32373
|
if (!(mode === 'create')) {
|
|
32274
|
-
_context4.
|
|
32374
|
+
_context4.n = 2;
|
|
32275
32375
|
break;
|
|
32276
32376
|
}
|
|
32277
32377
|
bssula.request({
|
|
@@ -32283,8 +32383,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32283
32383
|
onParentOk();
|
|
32284
32384
|
}
|
|
32285
32385
|
});
|
|
32286
|
-
return _context4.
|
|
32287
|
-
case
|
|
32386
|
+
return _context4.a(2);
|
|
32387
|
+
case 2:
|
|
32288
32388
|
bssula.request({
|
|
32289
32389
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
32290
32390
|
method: 'PATCH',
|
|
@@ -32294,9 +32394,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32294
32394
|
onParentOk();
|
|
32295
32395
|
}
|
|
32296
32396
|
});
|
|
32297
|
-
case
|
|
32298
|
-
|
|
32299
|
-
return _context4.stop();
|
|
32397
|
+
case 3:
|
|
32398
|
+
return _context4.a(2);
|
|
32300
32399
|
}
|
|
32301
32400
|
}, _callee4);
|
|
32302
32401
|
}));
|
|
@@ -32752,21 +32851,21 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
32752
32851
|
jsonEditorVal = _useState8[0],
|
|
32753
32852
|
setJsonEditorVal = _useState8[1];
|
|
32754
32853
|
var _useState9 = React$1.useState({}),
|
|
32755
|
-
|
|
32756
|
-
moduleParams =
|
|
32757
|
-
setModuleParams =
|
|
32758
|
-
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({}),
|
|
32759
32862
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32760
|
-
|
|
32761
|
-
|
|
32762
|
-
var _useState13 = React$1.useState(
|
|
32863
|
+
tablesConfigParams = _useState12[0],
|
|
32864
|
+
setTablesConfigParams = _useState12[1];
|
|
32865
|
+
var _useState13 = React$1.useState([]),
|
|
32763
32866
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32764
|
-
|
|
32765
|
-
|
|
32766
|
-
var _useState15 = React$1.useState([]),
|
|
32767
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
32768
|
-
tableJsonEditorValsArr = _useState16[0],
|
|
32769
|
-
setTableJsonEditorValsArr = _useState16[1];
|
|
32867
|
+
tableJsonEditorValsArr = _useState14[0],
|
|
32868
|
+
setTableJsonEditorValsArr = _useState14[1];
|
|
32770
32869
|
React$1.useEffect(function () {
|
|
32771
32870
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32772
32871
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -32797,7 +32896,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
32797
32896
|
});
|
|
32798
32897
|
Promise.all(axiosArr).then(function (_ref5) {
|
|
32799
32898
|
var _ref6 = _toArray(_ref5),
|
|
32800
|
-
resArr = _ref6.slice(0);
|
|
32899
|
+
resArr = _arrayLikeToArray(_ref6).slice(0);
|
|
32801
32900
|
var configParams = {};
|
|
32802
32901
|
detailTablesSetting.map(function (item, index) {
|
|
32803
32902
|
var _resArr$index;
|
|
@@ -33142,11 +33241,11 @@ function getMetaData(_x) {
|
|
|
33142
33241
|
|
|
33143
33242
|
// 获取数据
|
|
33144
33243
|
function _getMetaData() {
|
|
33145
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
33146
|
-
return
|
|
33147
|
-
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) {
|
|
33148
33247
|
case 0:
|
|
33149
|
-
return _context.
|
|
33248
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
33150
33249
|
umi.request('/basic/entityProperty/listNoPage', {
|
|
33151
33250
|
params: {
|
|
33152
33251
|
'qp-entityId-eq': id
|
|
@@ -33158,9 +33257,6 @@ function _getMetaData() {
|
|
|
33158
33257
|
reject([]);
|
|
33159
33258
|
});
|
|
33160
33259
|
}));
|
|
33161
|
-
case 1:
|
|
33162
|
-
case "end":
|
|
33163
|
-
return _context.stop();
|
|
33164
33260
|
}
|
|
33165
33261
|
}, _callee);
|
|
33166
33262
|
}));
|
|
@@ -33364,11 +33460,11 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33364
33460
|
tableState = _useState4[0],
|
|
33365
33461
|
setTableState = _useState4[1];
|
|
33366
33462
|
var handleOpen = /*#__PURE__*/function () {
|
|
33367
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33463
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33368
33464
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
33369
33465
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
33370
|
-
return
|
|
33371
|
-
while (1) switch (_context.
|
|
33466
|
+
return _regenerator().w(function (_context) {
|
|
33467
|
+
while (1) switch (_context.n) {
|
|
33372
33468
|
case 0:
|
|
33373
33469
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
33374
33470
|
isSearchForm: props.isSearchForm,
|
|
@@ -33376,16 +33472,16 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33376
33472
|
searchFormData: searchFormData
|
|
33377
33473
|
});
|
|
33378
33474
|
if (requestConfigNew) {
|
|
33379
|
-
_context.
|
|
33475
|
+
_context.n = 1;
|
|
33380
33476
|
break;
|
|
33381
33477
|
}
|
|
33382
|
-
return _context.
|
|
33383
|
-
case
|
|
33478
|
+
return _context.a(2);
|
|
33479
|
+
case 1:
|
|
33384
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;
|
|
33385
|
-
_context.
|
|
33481
|
+
_context.n = 2;
|
|
33386
33482
|
return getMetaData(metaDataId);
|
|
33387
|
-
case
|
|
33388
|
-
metaData = _context.
|
|
33483
|
+
case 2:
|
|
33484
|
+
metaData = _context.v;
|
|
33389
33485
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
33390
33486
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
33391
33487
|
})) || [];
|
|
@@ -33425,9 +33521,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33425
33521
|
// @ts-ignore
|
|
33426
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);
|
|
33427
33523
|
}
|
|
33428
|
-
case
|
|
33429
|
-
|
|
33430
|
-
return _context.stop();
|
|
33524
|
+
case 3:
|
|
33525
|
+
return _context.a(2);
|
|
33431
33526
|
}
|
|
33432
33527
|
}, _callee);
|
|
33433
33528
|
}));
|
|
@@ -33530,7 +33625,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33530
33625
|
}, [requestConfig, tableState.columns]);
|
|
33531
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';
|
|
33532
33627
|
var handleOk = function handleOk(rowData) {
|
|
33533
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
33628
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
|
|
33534
33629
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
33535
33630
|
//多选数据处理
|
|
33536
33631
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -33541,9 +33636,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33541
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()) || [];
|
|
33542
33637
|
var realSelectedRows = selectedRows;
|
|
33543
33638
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
33544
|
-
var _queryTableRef$
|
|
33639
|
+
var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
|
|
33545
33640
|
// @ts-ignore
|
|
33546
|
-
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()) || [];
|
|
33547
33642
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
33548
33643
|
return selectedKesys.includes(s[rowKey]);
|
|
33549
33644
|
});
|
|
@@ -33576,10 +33671,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33576
33671
|
});
|
|
33577
33672
|
}
|
|
33578
33673
|
mappings.map(function (item) {
|
|
33579
|
-
var _props$
|
|
33580
|
-
if (((_props$
|
|
33581
|
-
var _props$
|
|
33582
|
-
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];
|
|
33583
33678
|
}
|
|
33584
33679
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
33585
33680
|
});
|
|
@@ -33634,10 +33729,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33634
33729
|
}
|
|
33635
33730
|
props.onCancel();
|
|
33636
33731
|
//@ts-ignore
|
|
33637
|
-
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();
|
|
33638
33733
|
};
|
|
33639
33734
|
var config = React$1.useMemo(function () {
|
|
33640
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
33735
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
|
|
33641
33736
|
var returnConfig = {
|
|
33642
33737
|
size: 'small',
|
|
33643
33738
|
needPageHeader: false,
|
|
@@ -33646,7 +33741,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33646
33741
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33647
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) {
|
|
33648
33743
|
return v.key || v;
|
|
33649
|
-
})) || (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))
|
|
33650
33745
|
} : false,
|
|
33651
33746
|
remoteDataSource: remoteDataSource,
|
|
33652
33747
|
fields: tableState.fields,
|
|
@@ -33654,8 +33749,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33654
33749
|
rowKey: rowKey,
|
|
33655
33750
|
tableProps: !isView && {
|
|
33656
33751
|
rowClassName: function rowClassName(record) {
|
|
33657
|
-
var _props$
|
|
33658
|
-
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' : '';
|
|
33659
33754
|
},
|
|
33660
33755
|
onRow: function onRow(record) {
|
|
33661
33756
|
return {
|
|
@@ -33700,10 +33795,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33700
33795
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
33701
33796
|
type: "default",
|
|
33702
33797
|
onClick: function onClick() {
|
|
33703
|
-
var _queryTableRef$
|
|
33798
|
+
var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
|
|
33704
33799
|
props.onCancel();
|
|
33705
33800
|
//@ts-ignore
|
|
33706
|
-
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();
|
|
33707
33802
|
}
|
|
33708
33803
|
}, "\u53D6\u6D88"))));
|
|
33709
33804
|
});
|
|
@@ -33927,19 +34022,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33927
34022
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33928
34023
|
handSource = _useState2[0],
|
|
33929
34024
|
setHandSource = _useState2[1];
|
|
33930
|
-
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34025
|
+
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33931
34026
|
var resData, data;
|
|
33932
|
-
return
|
|
33933
|
-
while (1) switch (_context.
|
|
34027
|
+
return _regenerator().w(function (_context) {
|
|
34028
|
+
while (1) switch (_context.n) {
|
|
33934
34029
|
case 0:
|
|
33935
34030
|
if (!(!source && initRequestSource)) {
|
|
33936
|
-
_context.
|
|
34031
|
+
_context.n = 2;
|
|
33937
34032
|
break;
|
|
33938
34033
|
}
|
|
33939
|
-
_context.
|
|
34034
|
+
_context.n = 1;
|
|
33940
34035
|
return initRequestSource();
|
|
33941
|
-
case
|
|
33942
|
-
resData = _context.
|
|
34036
|
+
case 1:
|
|
34037
|
+
resData = _context.v;
|
|
33943
34038
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
33944
34039
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
33945
34040
|
label: item.text,
|
|
@@ -33947,9 +34042,8 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33947
34042
|
});
|
|
33948
34043
|
})) || [];
|
|
33949
34044
|
setHandSource(data);
|
|
33950
|
-
case
|
|
33951
|
-
|
|
33952
|
-
return _context.stop();
|
|
34045
|
+
case 2:
|
|
34046
|
+
return _context.a(2);
|
|
33953
34047
|
}
|
|
33954
34048
|
}, _callee);
|
|
33955
34049
|
})), []);
|
|
@@ -34079,20 +34173,17 @@ function getRegularThresholdRange(_x) {
|
|
|
34079
34173
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
34080
34174
|
}
|
|
34081
34175
|
function _getRegularThresholdRange() {
|
|
34082
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
34083
|
-
return
|
|
34084
|
-
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) {
|
|
34085
34179
|
case 0:
|
|
34086
|
-
return _context.
|
|
34180
|
+
return _context.a(2, requestUtil({
|
|
34087
34181
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
34088
34182
|
method: 'POST',
|
|
34089
34183
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
34090
34184
|
queryIdentify: undefined
|
|
34091
34185
|
})
|
|
34092
34186
|
}));
|
|
34093
|
-
case 1:
|
|
34094
|
-
case "end":
|
|
34095
|
-
return _context.stop();
|
|
34096
34187
|
}
|
|
34097
34188
|
}, _callee);
|
|
34098
34189
|
}));
|
|
@@ -34233,24 +34324,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34233
34324
|
};
|
|
34234
34325
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
34235
34326
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
34236
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
34327
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
34237
34328
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
34238
|
-
return
|
|
34239
|
-
while (1) switch (_context.
|
|
34329
|
+
return _regenerator().w(function (_context) {
|
|
34330
|
+
while (1) switch (_context.n) {
|
|
34240
34331
|
case 0:
|
|
34241
34332
|
if (queryIdentify) {
|
|
34242
|
-
_context.
|
|
34333
|
+
_context.n = 1;
|
|
34243
34334
|
break;
|
|
34244
34335
|
}
|
|
34245
|
-
return _context.
|
|
34246
|
-
case
|
|
34336
|
+
return _context.a(2);
|
|
34337
|
+
case 1:
|
|
34247
34338
|
thresholdQuery = _this.state.thresholdQuery;
|
|
34248
34339
|
extraRequestUrl = '';
|
|
34249
34340
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
34250
34341
|
if (!queryIdentityInfo.find(function (item) {
|
|
34251
34342
|
return item.identity == propertyCode;
|
|
34252
34343
|
})) {
|
|
34253
|
-
_context.
|
|
34344
|
+
_context.n = 3;
|
|
34254
34345
|
break;
|
|
34255
34346
|
}
|
|
34256
34347
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -34264,15 +34355,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34264
34355
|
if (!needQueryList.some(function (item) {
|
|
34265
34356
|
return !querParams[item] || !querParams[item].length;
|
|
34266
34357
|
})) {
|
|
34267
|
-
_context.
|
|
34358
|
+
_context.n = 2;
|
|
34268
34359
|
break;
|
|
34269
34360
|
}
|
|
34270
|
-
return _context.
|
|
34271
|
-
case
|
|
34361
|
+
return _context.a(2);
|
|
34362
|
+
case 2:
|
|
34272
34363
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
34273
34364
|
return item.identity == propertyCode;
|
|
34274
34365
|
}).requestUrl || '';
|
|
34275
|
-
case
|
|
34366
|
+
case 3:
|
|
34276
34367
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
34277
34368
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
34278
34369
|
querParams = {
|
|
@@ -34283,7 +34374,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34283
34374
|
// querParams = { dictCode: queryIdentify }
|
|
34284
34375
|
}
|
|
34285
34376
|
if (!extraRequestUrl) {
|
|
34286
|
-
_context.
|
|
34377
|
+
_context.n = 4;
|
|
34287
34378
|
break;
|
|
34288
34379
|
}
|
|
34289
34380
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -34322,43 +34413,42 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34322
34413
|
return handleData;
|
|
34323
34414
|
}
|
|
34324
34415
|
});
|
|
34325
|
-
_context.
|
|
34416
|
+
_context.n = 8;
|
|
34326
34417
|
break;
|
|
34327
|
-
case
|
|
34418
|
+
case 4:
|
|
34328
34419
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
34329
|
-
_context.
|
|
34420
|
+
_context.n = 5;
|
|
34330
34421
|
break;
|
|
34331
34422
|
}
|
|
34332
34423
|
_this.setState({
|
|
34333
34424
|
thresholdList: queryIdentify
|
|
34334
34425
|
});
|
|
34335
|
-
_context.
|
|
34426
|
+
_context.n = 8;
|
|
34336
34427
|
break;
|
|
34337
|
-
case
|
|
34428
|
+
case 5:
|
|
34338
34429
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
34339
|
-
_context.
|
|
34430
|
+
_context.n = 6;
|
|
34340
34431
|
break;
|
|
34341
34432
|
}
|
|
34342
34433
|
// TODO待处理
|
|
34343
34434
|
_this.setState({
|
|
34344
34435
|
thresholdList: []
|
|
34345
34436
|
});
|
|
34346
|
-
_context.
|
|
34437
|
+
_context.n = 8;
|
|
34347
34438
|
break;
|
|
34348
|
-
case
|
|
34439
|
+
case 6:
|
|
34349
34440
|
querParams.queryIdentify = queryIdentify;
|
|
34350
|
-
_context.
|
|
34441
|
+
_context.n = 7;
|
|
34351
34442
|
return getRegularThresholdRange(querParams);
|
|
34352
|
-
case
|
|
34353
|
-
res = _context.
|
|
34443
|
+
case 7:
|
|
34444
|
+
res = _context.v;
|
|
34354
34445
|
if (handleError(res)) {
|
|
34355
34446
|
_this.setState({
|
|
34356
34447
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
34357
34448
|
});
|
|
34358
34449
|
}
|
|
34359
|
-
case
|
|
34360
|
-
|
|
34361
|
-
return _context.stop();
|
|
34450
|
+
case 8:
|
|
34451
|
+
return _context.a(2);
|
|
34362
34452
|
}
|
|
34363
34453
|
}, _callee);
|
|
34364
34454
|
}));
|
|
@@ -35190,11 +35280,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35190
35280
|
isAll: true,
|
|
35191
35281
|
needNameAndCode: true,
|
|
35192
35282
|
notChangeOnSelect: true,
|
|
35193
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35194
|
-
return
|
|
35195
|
-
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) {
|
|
35196
35286
|
case 0:
|
|
35197
|
-
_context2.
|
|
35287
|
+
_context2.n = 1;
|
|
35198
35288
|
return bssula.request({
|
|
35199
35289
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35200
35290
|
method: 'get',
|
|
@@ -35211,11 +35301,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35211
35301
|
return handleData;
|
|
35212
35302
|
}
|
|
35213
35303
|
});
|
|
35214
|
-
case
|
|
35215
|
-
return _context2.
|
|
35216
|
-
case 3:
|
|
35217
|
-
case "end":
|
|
35218
|
-
return _context2.stop();
|
|
35304
|
+
case 1:
|
|
35305
|
+
return _context2.a(2, _context2.v);
|
|
35219
35306
|
}
|
|
35220
35307
|
}, _callee2);
|
|
35221
35308
|
})),
|
|
@@ -35239,11 +35326,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35239
35326
|
isAll: true,
|
|
35240
35327
|
needNameAndCode: true,
|
|
35241
35328
|
notChangeOnSelect: true,
|
|
35242
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35243
|
-
return
|
|
35244
|
-
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) {
|
|
35245
35332
|
case 0:
|
|
35246
|
-
_context3.
|
|
35333
|
+
_context3.n = 1;
|
|
35247
35334
|
return bssula.request({
|
|
35248
35335
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35249
35336
|
method: 'get',
|
|
@@ -35260,11 +35347,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35260
35347
|
return handleData;
|
|
35261
35348
|
}
|
|
35262
35349
|
});
|
|
35263
|
-
case
|
|
35264
|
-
return _context3.
|
|
35265
|
-
case 3:
|
|
35266
|
-
case "end":
|
|
35267
|
-
return _context3.stop();
|
|
35350
|
+
case 1:
|
|
35351
|
+
return _context3.a(2, _context3.v);
|
|
35268
35352
|
}
|
|
35269
35353
|
}, _callee3);
|
|
35270
35354
|
})),
|
|
@@ -35290,11 +35374,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35290
35374
|
isAll: true,
|
|
35291
35375
|
needNameAndCode: true,
|
|
35292
35376
|
notChangeOnSelect: true,
|
|
35293
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35294
|
-
return
|
|
35295
|
-
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) {
|
|
35296
35380
|
case 0:
|
|
35297
|
-
_context4.
|
|
35381
|
+
_context4.n = 1;
|
|
35298
35382
|
return bssula.request({
|
|
35299
35383
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35300
35384
|
method: 'get',
|
|
@@ -35311,11 +35395,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35311
35395
|
return handleData;
|
|
35312
35396
|
}
|
|
35313
35397
|
});
|
|
35314
|
-
case
|
|
35315
|
-
return _context4.
|
|
35316
|
-
case 3:
|
|
35317
|
-
case "end":
|
|
35318
|
-
return _context4.stop();
|
|
35398
|
+
case 1:
|
|
35399
|
+
return _context4.a(2, _context4.v);
|
|
35319
35400
|
}
|
|
35320
35401
|
}, _callee4);
|
|
35321
35402
|
})),
|
|
@@ -36002,8 +36083,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36002
36083
|
}
|
|
36003
36084
|
}));
|
|
36004
36085
|
} else {
|
|
36005
|
-
var
|
|
36006
|
-
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) {
|
|
36007
36088
|
return {
|
|
36008
36089
|
key: s,
|
|
36009
36090
|
label: valueNames[vIndex],
|
|
@@ -36213,7 +36294,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36213
36294
|
}
|
|
36214
36295
|
}
|
|
36215
36296
|
// 配送方式选择器
|
|
36216
|
-
if (dataChoiceBusinessType == 310) {
|
|
36297
|
+
if (dataChoiceBusinessType == 310 || dataChoiceBusinessType == 311) {
|
|
36217
36298
|
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
36218
36299
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36219
36300
|
selectBusinessType: "deliveryMode",
|
|
@@ -36227,9 +36308,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36227
36308
|
disabled: disabled,
|
|
36228
36309
|
labelInValue: true,
|
|
36229
36310
|
value: values[0],
|
|
36230
|
-
requestConfig: {
|
|
36311
|
+
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36312
|
+
otherParams: {
|
|
36313
|
+
// 配送方式只选择标准配送方式
|
|
36314
|
+
'qp-recordChannnelCode-eq': 80
|
|
36315
|
+
}
|
|
36316
|
+
} : {}), {}, {
|
|
36231
36317
|
filterInit: 'qp-code-in'
|
|
36232
|
-
},
|
|
36318
|
+
}),
|
|
36233
36319
|
onChange: function onChange(value) {
|
|
36234
36320
|
if (dataInputBusinessType === 12) {
|
|
36235
36321
|
values[0] = value.map(function (i) {
|
|
@@ -36259,9 +36345,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36259
36345
|
disabled: disabled,
|
|
36260
36346
|
labelInValue: true,
|
|
36261
36347
|
value: values[1],
|
|
36262
|
-
requestConfig: {
|
|
36348
|
+
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36349
|
+
otherParams: {
|
|
36350
|
+
// 配送方式只选择标准配送方式
|
|
36351
|
+
'qp-recordChannnelCode-eq': 80
|
|
36352
|
+
}
|
|
36353
|
+
} : {}), {}, {
|
|
36263
36354
|
filterInit: 'qp-code-in'
|
|
36264
|
-
},
|
|
36355
|
+
}),
|
|
36265
36356
|
onChange: function onChange(value) {
|
|
36266
36357
|
if (dataInputBusinessType === 12) {
|
|
36267
36358
|
values[1] = value.map(function (i) {
|
|
@@ -36281,8 +36372,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36281
36372
|
}
|
|
36282
36373
|
}));
|
|
36283
36374
|
} else {
|
|
36284
|
-
var
|
|
36285
|
-
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) {
|
|
36286
36377
|
return {
|
|
36287
36378
|
key: s,
|
|
36288
36379
|
label: valueNames[vIndex],
|
|
@@ -36304,10 +36395,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36304
36395
|
} : {}),
|
|
36305
36396
|
disabled: disabled,
|
|
36306
36397
|
labelInValue: true,
|
|
36307
|
-
value:
|
|
36308
|
-
requestConfig: {
|
|
36398
|
+
value: _currentValue0,
|
|
36399
|
+
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36400
|
+
otherParams: {
|
|
36401
|
+
// 配送方式只选择标准配送方式
|
|
36402
|
+
'qp-recordChannnelCode-eq': 80
|
|
36403
|
+
}
|
|
36404
|
+
} : {}), {}, {
|
|
36309
36405
|
filterInit: 'qp-code-in'
|
|
36310
|
-
},
|
|
36406
|
+
}),
|
|
36311
36407
|
onChange: function onChange(value) {
|
|
36312
36408
|
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
36313
36409
|
values = value.map(function (i) {
|
|
@@ -36397,8 +36493,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36397
36493
|
}
|
|
36398
36494
|
}));
|
|
36399
36495
|
} else {
|
|
36400
|
-
var
|
|
36401
|
-
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) {
|
|
36402
36498
|
return {
|
|
36403
36499
|
key: s,
|
|
36404
36500
|
label: valueNames[vIndex],
|
|
@@ -36420,7 +36516,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36420
36516
|
} : {}),
|
|
36421
36517
|
disabled: disabled,
|
|
36422
36518
|
labelInValue: true,
|
|
36423
|
-
value:
|
|
36519
|
+
value: _currentValue1,
|
|
36424
36520
|
requestConfig: {
|
|
36425
36521
|
filterInit: 'qp-code-in'
|
|
36426
36522
|
},
|
|
@@ -36513,8 +36609,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36513
36609
|
}
|
|
36514
36610
|
}));
|
|
36515
36611
|
} else {
|
|
36516
|
-
var
|
|
36517
|
-
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) {
|
|
36518
36614
|
return {
|
|
36519
36615
|
key: s,
|
|
36520
36616
|
label: valueNames[vIndex],
|
|
@@ -36536,7 +36632,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36536
36632
|
} : {}),
|
|
36537
36633
|
disabled: disabled,
|
|
36538
36634
|
labelInValue: true,
|
|
36539
|
-
value:
|
|
36635
|
+
value: _currentValue10,
|
|
36540
36636
|
requestConfig: {
|
|
36541
36637
|
filterInit: 'qp-brandCode-in'
|
|
36542
36638
|
},
|
|
@@ -36727,8 +36823,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36727
36823
|
}
|
|
36728
36824
|
}));
|
|
36729
36825
|
} else {
|
|
36730
|
-
var
|
|
36731
|
-
var
|
|
36826
|
+
var _values12;
|
|
36827
|
+
var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
36732
36828
|
return {
|
|
36733
36829
|
key: s,
|
|
36734
36830
|
label: valueNames[vIndex]
|
|
@@ -36756,7 +36852,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36756
36852
|
isSearchForm: true,
|
|
36757
36853
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36758
36854
|
disabled: disabled,
|
|
36759
|
-
value:
|
|
36855
|
+
value: _currentValue11,
|
|
36760
36856
|
onChange: function onChange(value, sourceList) {
|
|
36761
36857
|
if (dataInputBusinessType === 12) {
|
|
36762
36858
|
var _value$map3, _sourceList$filter3;
|
|
@@ -37076,9 +37172,9 @@ var App$1 = function App(_ref) {
|
|
|
37076
37172
|
UpdateState(res);
|
|
37077
37173
|
};
|
|
37078
37174
|
var _useState9 = React$1.useState(false),
|
|
37079
|
-
|
|
37080
|
-
isModalVisible =
|
|
37081
|
-
setIsModalVisible =
|
|
37175
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
37176
|
+
isModalVisible = _useState0[0],
|
|
37177
|
+
setIsModalVisible = _useState0[1];
|
|
37082
37178
|
var showModal = function showModal() {
|
|
37083
37179
|
setIsModalVisible(true);
|
|
37084
37180
|
};
|
|
@@ -37559,27 +37655,26 @@ function RenderCompItem(props) {
|
|
|
37559
37655
|
dictData = _useState2[0],
|
|
37560
37656
|
setDictData = _useState2[1];
|
|
37561
37657
|
var getDictData = /*#__PURE__*/function () {
|
|
37562
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
37658
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
37563
37659
|
var _data$map;
|
|
37564
37660
|
var data;
|
|
37565
|
-
return
|
|
37566
|
-
while (1) switch (_context.
|
|
37661
|
+
return _regenerator().w(function (_context) {
|
|
37662
|
+
while (1) switch (_context.n) {
|
|
37567
37663
|
case 0:
|
|
37568
|
-
_context.
|
|
37664
|
+
_context.n = 1;
|
|
37569
37665
|
return bssula.request({
|
|
37570
37666
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
37571
37667
|
});
|
|
37572
|
-
case
|
|
37573
|
-
data = _context.
|
|
37668
|
+
case 1:
|
|
37669
|
+
data = _context.v;
|
|
37574
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) {
|
|
37575
37671
|
return {
|
|
37576
37672
|
text: item.dictItemName,
|
|
37577
37673
|
value: item.dictItemCode
|
|
37578
37674
|
};
|
|
37579
37675
|
}));
|
|
37580
|
-
case
|
|
37581
|
-
|
|
37582
|
-
return _context.stop();
|
|
37676
|
+
case 2:
|
|
37677
|
+
return _context.a(2);
|
|
37583
37678
|
}
|
|
37584
37679
|
}, _callee);
|
|
37585
37680
|
}));
|
|
@@ -37820,11 +37915,11 @@ function RenderCompItem(props) {
|
|
|
37820
37915
|
needNameAndCode: true,
|
|
37821
37916
|
notChangeOnSelect: true,
|
|
37822
37917
|
initRequestSource: function () {
|
|
37823
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
37824
|
-
return
|
|
37825
|
-
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) {
|
|
37826
37921
|
case 0:
|
|
37827
|
-
_context2.
|
|
37922
|
+
_context2.n = 1;
|
|
37828
37923
|
return bssula.request({
|
|
37829
37924
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
37830
37925
|
method: 'get',
|
|
@@ -37842,11 +37937,8 @@ function RenderCompItem(props) {
|
|
|
37842
37937
|
return handleData;
|
|
37843
37938
|
}
|
|
37844
37939
|
});
|
|
37845
|
-
case
|
|
37846
|
-
return _context2.
|
|
37847
|
-
case 3:
|
|
37848
|
-
case "end":
|
|
37849
|
-
return _context2.stop();
|
|
37940
|
+
case 1:
|
|
37941
|
+
return _context2.a(2, _context2.v);
|
|
37850
37942
|
}
|
|
37851
37943
|
}, _callee2);
|
|
37852
37944
|
}));
|
|
@@ -38011,7 +38103,7 @@ function RenderCompItem(props) {
|
|
|
38011
38103
|
getPopupContainer: function getPopupContainer() {
|
|
38012
38104
|
return document.body;
|
|
38013
38105
|
}
|
|
38014
|
-
})) || 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, {
|
|
38015
38107
|
selectBusinessType: "deliveryMode",
|
|
38016
38108
|
selectProps: _objectSpread2({
|
|
38017
38109
|
style: styleCommon,
|
|
@@ -38023,9 +38115,14 @@ function RenderCompItem(props) {
|
|
|
38023
38115
|
disabled: disabled,
|
|
38024
38116
|
labelInValue: true,
|
|
38025
38117
|
value: showValue(ites.code),
|
|
38026
|
-
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
|
+
} : {}), {}, {
|
|
38027
38124
|
filterInit: 'qp-code-in'
|
|
38028
|
-
},
|
|
38125
|
+
}),
|
|
38029
38126
|
onChange: function onChange(value) {
|
|
38030
38127
|
handleEdit(ites.code, value);
|
|
38031
38128
|
},
|
|
@@ -39897,13 +39994,13 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
39897
39994
|
ruleTypeData = _useState8[0],
|
|
39898
39995
|
setRuleTypeData = _useState8[1];
|
|
39899
39996
|
var _useState9 = React$1.useState([]),
|
|
39900
|
-
|
|
39901
|
-
ruleReturnConfig =
|
|
39902
|
-
setRuleReturnConfig =
|
|
39903
|
-
var
|
|
39904
|
-
|
|
39905
|
-
templateData =
|
|
39906
|
-
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];
|
|
39907
40004
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
39908
40005
|
bssula.request({
|
|
39909
40006
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -40239,25 +40336,25 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
40239
40336
|
regularDataList = _useState8[0],
|
|
40240
40337
|
setRegularDataList = _useState8[1];
|
|
40241
40338
|
var _useState9 = React$1.useState([]),
|
|
40242
|
-
|
|
40243
|
-
baseRuleDetailList =
|
|
40244
|
-
setBaseRuleDetailList =
|
|
40245
|
-
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),
|
|
40246
40347
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
40247
|
-
|
|
40248
|
-
|
|
40348
|
+
isGetDefRuleDataRes = _useState12[0],
|
|
40349
|
+
setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
40249
40350
|
var _useState13 = React$1.useState(false),
|
|
40250
40351
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
40251
|
-
|
|
40252
|
-
|
|
40352
|
+
isGetRuleDataRes = _useState14[0],
|
|
40353
|
+
setIsGetRuleDataRes = _useState14[1];
|
|
40253
40354
|
var _useState15 = React$1.useState(false),
|
|
40254
40355
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
40255
|
-
|
|
40256
|
-
|
|
40257
|
-
var _useState17 = React$1.useState(false),
|
|
40258
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
40259
|
-
groupOtherPriorityList = _useState18[0],
|
|
40260
|
-
setGroupOtherPriorityList = _useState18[1];
|
|
40356
|
+
groupOtherPriorityList = _useState16[0],
|
|
40357
|
+
setGroupOtherPriorityList = _useState16[1];
|
|
40261
40358
|
var baseRuleRef = React$1.useRef();
|
|
40262
40359
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
40263
40360
|
// 查询规则组下所有规则实例
|
|
@@ -40692,6 +40789,7 @@ exports.ParagraphCopier = ParagraphCopier;
|
|
|
40692
40789
|
exports.PropertySelector = PropertySelector;
|
|
40693
40790
|
exports.QueryMutipleInput = QueryMutipleInput;
|
|
40694
40791
|
exports.QueryMutipleSearchSelect = QueryMutipleSearchSelect;
|
|
40792
|
+
exports.RenderCompItem = RenderCompItem;
|
|
40695
40793
|
exports.RuleComponent = RuleObjectComponent;
|
|
40696
40794
|
exports.RuleSetter = index$7;
|
|
40697
40795
|
exports.SearchSelect = SearchSelect;
|
|
@@ -40769,6 +40867,7 @@ exports.noEmptyArray = noEmptyArray;
|
|
|
40769
40867
|
exports.paramsControl = paramsControl;
|
|
40770
40868
|
exports.parseWidth = parseWidth;
|
|
40771
40869
|
exports.precisionQuantity = precisionQuantity;
|
|
40870
|
+
exports.processDetailButtonsVisible = processDetailButtonsVisible;
|
|
40772
40871
|
exports.randomString = randomString;
|
|
40773
40872
|
exports.readerXlsxToList = readerXlsxToList;
|
|
40774
40873
|
exports.removeCurrentTenantId = removeCurrentTenantId;
|