@bit-sun/business-component 4.2.0-alpha.6.16 → 4.2.0-alpha.6.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
- package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
- package/dist/components/Business/CommonAlert/index.d.ts +1 -2
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +11 -12
- package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
- package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +1 -2
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
- package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +1 -2
- package/dist/components/Functional/AuthButton/index.d.ts +1 -2
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +4 -4
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.esm.js +794 -1017
- package/dist/index.js +794 -1017
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +18 -19
- package/package.json +1 -1
- package/src/components/Business/BsSulaQueryTable/index.tsx +1 -0
- package/src/components/Business/BsSulaQueryTable/setting.tsx +6 -0
- package/src/components/Solution/RuleComponent/RenderCompItem.tsx +9 -1
- package/src/components/Solution/RuleComponent/ruleFiled.js +25 -1
package/dist/index.js
CHANGED
|
@@ -211,8 +211,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
211
211
|
r,
|
|
212
212
|
i = _objectWithoutPropertiesLoose(e, t);
|
|
213
213
|
if (Object.getOwnPropertySymbols) {
|
|
214
|
-
var
|
|
215
|
-
for (r = 0; r <
|
|
214
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
215
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
216
216
|
}
|
|
217
217
|
return i;
|
|
218
218
|
}
|
|
@@ -220,7 +220,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
220
220
|
if (null == r) return {};
|
|
221
221
|
var t = {};
|
|
222
222
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
223
|
-
if (e.
|
|
223
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
224
224
|
t[n] = r[n];
|
|
225
225
|
}
|
|
226
226
|
return t;
|
|
@@ -230,306 +230,115 @@ function _possibleConstructorReturn(t, e) {
|
|
|
230
230
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
231
231
|
return _assertThisInitialized(t);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
233
|
+
function _regenerator() {
|
|
234
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
235
|
+
var e,
|
|
236
|
+
t,
|
|
237
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
238
|
+
n = r.iterator || "@@iterator",
|
|
239
|
+
o = r.toStringTag || "@@toStringTag";
|
|
240
|
+
function i(r, n, o, i) {
|
|
241
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
242
|
+
u = Object.create(c.prototype);
|
|
243
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
244
|
+
var i,
|
|
245
|
+
c,
|
|
246
|
+
u,
|
|
247
|
+
f = 0,
|
|
248
|
+
p = o || [],
|
|
249
|
+
y = !1,
|
|
250
|
+
G = {
|
|
251
|
+
p: 0,
|
|
252
|
+
n: 0,
|
|
253
|
+
v: e,
|
|
254
|
+
a: d,
|
|
255
|
+
f: d.bind(e, 4),
|
|
256
|
+
d: function (t, r) {
|
|
257
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
function d(r, n) {
|
|
261
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
262
|
+
var o,
|
|
263
|
+
i = p[t],
|
|
264
|
+
d = G.p,
|
|
265
|
+
l = i[2];
|
|
266
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
267
|
+
}
|
|
268
|
+
if (o || r > 1) return a;
|
|
269
|
+
throw y = !0, n;
|
|
270
|
+
}
|
|
271
|
+
return function (o, p, l) {
|
|
272
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
273
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
274
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
275
|
+
try {
|
|
276
|
+
if (f = 2, i) {
|
|
277
|
+
if (c || (o = "next"), t = i[o]) {
|
|
278
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
279
|
+
if (!t.done) return t;
|
|
280
|
+
u = t.value, c < 2 && (c = 0);
|
|
281
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
282
|
+
i = e;
|
|
283
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
284
|
+
} catch (t) {
|
|
285
|
+
i = e, c = 1, u = t;
|
|
286
|
+
} finally {
|
|
287
|
+
f = 1;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
return {
|
|
291
|
+
value: t,
|
|
292
|
+
done: y
|
|
293
|
+
};
|
|
281
294
|
};
|
|
282
|
-
}
|
|
295
|
+
}(r, o, i), !0), u;
|
|
283
296
|
}
|
|
284
|
-
|
|
285
|
-
var h = "suspendedStart",
|
|
286
|
-
l = "suspendedYield",
|
|
287
|
-
f = "executing",
|
|
288
|
-
s = "completed",
|
|
289
|
-
y = {};
|
|
297
|
+
var a = {};
|
|
290
298
|
function Generator() {}
|
|
291
299
|
function GeneratorFunction() {}
|
|
292
300
|
function GeneratorFunctionPrototype() {}
|
|
293
|
-
|
|
294
|
-
|
|
301
|
+
t = Object.getPrototypeOf;
|
|
302
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
303
|
+
return this;
|
|
304
|
+
}), t),
|
|
305
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
306
|
+
function f(e) {
|
|
307
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
308
|
+
}
|
|
309
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
295
310
|
return this;
|
|
296
|
-
})
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
300
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
301
|
-
function defineIteratorMethods(t) {
|
|
302
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
303
|
-
define(t, e, function (t) {
|
|
304
|
-
return this._invoke(e, t);
|
|
305
|
-
});
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
function AsyncIterator(t, e) {
|
|
309
|
-
function invoke(r, o, i, a) {
|
|
310
|
-
var c = tryCatch(t[r], t, o);
|
|
311
|
-
if ("throw" !== c.type) {
|
|
312
|
-
var u = c.arg,
|
|
313
|
-
h = u.value;
|
|
314
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
315
|
-
invoke("next", t, i, a);
|
|
316
|
-
}, function (t) {
|
|
317
|
-
invoke("throw", t, i, a);
|
|
318
|
-
}) : e.resolve(h).then(function (t) {
|
|
319
|
-
u.value = t, i(u);
|
|
320
|
-
}, function (t) {
|
|
321
|
-
return invoke("throw", t, i, a);
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
a(c.arg);
|
|
325
|
-
}
|
|
326
|
-
var r;
|
|
327
|
-
o(this, "_invoke", {
|
|
328
|
-
value: function (t, n) {
|
|
329
|
-
function callInvokeWithMethodAndArg() {
|
|
330
|
-
return new e(function (e, r) {
|
|
331
|
-
invoke(t, n, e, r);
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
335
|
-
}
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
function makeInvokeMethod(e, r, n) {
|
|
339
|
-
var o = h;
|
|
340
|
-
return function (i, a) {
|
|
341
|
-
if (o === f) throw Error("Generator is already running");
|
|
342
|
-
if (o === s) {
|
|
343
|
-
if ("throw" === i) throw a;
|
|
344
|
-
return {
|
|
345
|
-
value: t,
|
|
346
|
-
done: !0
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
for (n.method = i, n.arg = a;;) {
|
|
350
|
-
var c = n.delegate;
|
|
351
|
-
if (c) {
|
|
352
|
-
var u = maybeInvokeDelegate(c, n);
|
|
353
|
-
if (u) {
|
|
354
|
-
if (u === y) continue;
|
|
355
|
-
return u;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
359
|
-
if (o === h) throw o = s, n.arg;
|
|
360
|
-
n.dispatchException(n.arg);
|
|
361
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
362
|
-
o = f;
|
|
363
|
-
var p = tryCatch(e, r, n);
|
|
364
|
-
if ("normal" === p.type) {
|
|
365
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
366
|
-
return {
|
|
367
|
-
value: p.arg,
|
|
368
|
-
done: n.done
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
372
|
-
}
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
function maybeInvokeDelegate(e, r) {
|
|
376
|
-
var n = r.method,
|
|
377
|
-
o = e.iterator[n];
|
|
378
|
-
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
379
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
380
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
381
|
-
var a = i.arg;
|
|
382
|
-
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
383
|
-
}
|
|
384
|
-
function pushTryEntry(t) {
|
|
385
|
-
var e = {
|
|
386
|
-
tryLoc: t[0]
|
|
387
|
-
};
|
|
388
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
389
|
-
}
|
|
390
|
-
function resetTryEntry(t) {
|
|
391
|
-
var e = t.completion || {};
|
|
392
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
393
|
-
}
|
|
394
|
-
function Context(t) {
|
|
395
|
-
this.tryEntries = [{
|
|
396
|
-
tryLoc: "root"
|
|
397
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
398
|
-
}
|
|
399
|
-
function values(e) {
|
|
400
|
-
if (e || "" === e) {
|
|
401
|
-
var r = e[a];
|
|
402
|
-
if (r) return r.call(e);
|
|
403
|
-
if ("function" == typeof e.next) return e;
|
|
404
|
-
if (!isNaN(e.length)) {
|
|
405
|
-
var o = -1,
|
|
406
|
-
i = function next() {
|
|
407
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
408
|
-
return next.value = t, next.done = !0, next;
|
|
409
|
-
};
|
|
410
|
-
return i.next = i;
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
414
|
-
}
|
|
415
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
416
|
-
value: GeneratorFunctionPrototype,
|
|
417
|
-
configurable: !0
|
|
418
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
419
|
-
value: GeneratorFunction,
|
|
420
|
-
configurable: !0
|
|
421
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
422
|
-
var e = "function" == typeof t && t.constructor;
|
|
423
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
424
|
-
}, e.mark = function (t) {
|
|
425
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
426
|
-
}, e.awrap = function (t) {
|
|
311
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
312
|
+
return "[object Generator]";
|
|
313
|
+
}), (_regenerator = function () {
|
|
427
314
|
return {
|
|
428
|
-
|
|
315
|
+
w: i,
|
|
316
|
+
m: f
|
|
429
317
|
};
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
}
|
|
451
|
-
return next.done = !0, next;
|
|
452
|
-
};
|
|
453
|
-
}, e.values = values, Context.prototype = {
|
|
454
|
-
constructor: Context,
|
|
455
|
-
reset: function (e) {
|
|
456
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
457
|
-
},
|
|
458
|
-
stop: function () {
|
|
459
|
-
this.done = !0;
|
|
460
|
-
var t = this.tryEntries[0].completion;
|
|
461
|
-
if ("throw" === t.type) throw t.arg;
|
|
462
|
-
return this.rval;
|
|
463
|
-
},
|
|
464
|
-
dispatchException: function (e) {
|
|
465
|
-
if (this.done) throw e;
|
|
466
|
-
var r = this;
|
|
467
|
-
function handle(n, o) {
|
|
468
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
469
|
-
}
|
|
470
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
471
|
-
var i = this.tryEntries[o],
|
|
472
|
-
a = i.completion;
|
|
473
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
474
|
-
if (i.tryLoc <= this.prev) {
|
|
475
|
-
var c = n.call(i, "catchLoc"),
|
|
476
|
-
u = n.call(i, "finallyLoc");
|
|
477
|
-
if (c && u) {
|
|
478
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
479
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
480
|
-
} else if (c) {
|
|
481
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
482
|
-
} else {
|
|
483
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
484
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
},
|
|
489
|
-
abrupt: function (t, e) {
|
|
490
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
491
|
-
var o = this.tryEntries[r];
|
|
492
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
493
|
-
var i = o;
|
|
494
|
-
break;
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
498
|
-
var a = i ? i.completion : {};
|
|
499
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
500
|
-
},
|
|
501
|
-
complete: function (t, e) {
|
|
502
|
-
if ("throw" === t.type) throw t.arg;
|
|
503
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
504
|
-
},
|
|
505
|
-
finish: function (t) {
|
|
506
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
507
|
-
var r = this.tryEntries[e];
|
|
508
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
509
|
-
}
|
|
510
|
-
},
|
|
511
|
-
catch: function (t) {
|
|
512
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
513
|
-
var r = this.tryEntries[e];
|
|
514
|
-
if (r.tryLoc === t) {
|
|
515
|
-
var n = r.completion;
|
|
516
|
-
if ("throw" === n.type) {
|
|
517
|
-
var o = n.arg;
|
|
518
|
-
resetTryEntry(r);
|
|
519
|
-
}
|
|
520
|
-
return o;
|
|
521
|
-
}
|
|
318
|
+
})();
|
|
319
|
+
}
|
|
320
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
321
|
+
var i = Object.defineProperty;
|
|
322
|
+
try {
|
|
323
|
+
i({}, "", {});
|
|
324
|
+
} catch (e) {
|
|
325
|
+
i = 0;
|
|
326
|
+
}
|
|
327
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
328
|
+
if (r) i ? i(e, r, {
|
|
329
|
+
value: n,
|
|
330
|
+
enumerable: !t,
|
|
331
|
+
configurable: !t,
|
|
332
|
+
writable: !t
|
|
333
|
+
}) : e[r] = n;else {
|
|
334
|
+
function o(r, n) {
|
|
335
|
+
_regeneratorDefine(e, r, function (e) {
|
|
336
|
+
return this._invoke(r, n, e);
|
|
337
|
+
});
|
|
522
338
|
}
|
|
523
|
-
|
|
524
|
-
},
|
|
525
|
-
delegateYield: function (e, r, n) {
|
|
526
|
-
return this.delegate = {
|
|
527
|
-
iterator: values(e),
|
|
528
|
-
resultName: r,
|
|
529
|
-
nextLoc: n
|
|
530
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
339
|
+
o("next", 0), o("throw", 1), o("return", 2);
|
|
531
340
|
}
|
|
532
|
-
}, e;
|
|
341
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
533
342
|
}
|
|
534
343
|
function _setPrototypeOf(t, e) {
|
|
535
344
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -1602,22 +1411,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1602
1411
|
// sheepMap是表头字段中英文映射
|
|
1603
1412
|
// sheetCount:表的数量,默认一张
|
|
1604
1413
|
var resolveFile = /*#__PURE__*/function () {
|
|
1605
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
1414
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file) {
|
|
1606
1415
|
var config,
|
|
1607
1416
|
data,
|
|
1608
1417
|
_args = arguments;
|
|
1609
|
-
return
|
|
1610
|
-
while (1) switch (_context.
|
|
1418
|
+
return _regenerator().w(function (_context) {
|
|
1419
|
+
while (1) switch (_context.n) {
|
|
1611
1420
|
case 0:
|
|
1612
1421
|
config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
|
|
1613
1422
|
sheetMap: [],
|
|
1614
1423
|
sheetCount: 1
|
|
1615
1424
|
};
|
|
1616
|
-
_context.
|
|
1425
|
+
_context.n = 1;
|
|
1617
1426
|
return analyseExcelToByte(file);
|
|
1618
|
-
case
|
|
1619
|
-
data = _context.
|
|
1620
|
-
return _context.
|
|
1427
|
+
case 1:
|
|
1428
|
+
data = _context.v;
|
|
1429
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
1621
1430
|
var workbook = XLSX.read(data, {
|
|
1622
1431
|
type: 'binary'
|
|
1623
1432
|
});
|
|
@@ -1629,9 +1438,6 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1629
1438
|
var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
|
|
1630
1439
|
resolve(outdata);
|
|
1631
1440
|
}));
|
|
1632
|
-
case 5:
|
|
1633
|
-
case "end":
|
|
1634
|
-
return _context.stop();
|
|
1635
1441
|
}
|
|
1636
1442
|
}, _callee);
|
|
1637
1443
|
}));
|
|
@@ -1641,41 +1447,40 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1641
1447
|
}();
|
|
1642
1448
|
//读取文件
|
|
1643
1449
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1644
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
1450
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1645
1451
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1646
|
-
return
|
|
1647
|
-
while (1) switch (_context2.
|
|
1452
|
+
return _regenerator().w(function (_context2) {
|
|
1453
|
+
while (1) switch (_context2.n) {
|
|
1648
1454
|
case 0:
|
|
1649
1455
|
_ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
|
|
1650
1456
|
if (!(Array.isArray(fileList) && fileList.length > 0)) {
|
|
1651
|
-
_context2.
|
|
1457
|
+
_context2.n = 3;
|
|
1652
1458
|
break;
|
|
1653
1459
|
}
|
|
1654
1460
|
nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
|
|
1655
|
-
_context2.
|
|
1461
|
+
_context2.n = 1;
|
|
1656
1462
|
return resolveFile(nowFile.originFileObj, {
|
|
1657
1463
|
sheetMap: fieldMappingReverse(sheetMap),
|
|
1658
1464
|
sheetCount: 1
|
|
1659
1465
|
});
|
|
1660
|
-
case
|
|
1661
|
-
data2 = _context2.
|
|
1466
|
+
case 1:
|
|
1467
|
+
data2 = _context2.v;
|
|
1662
1468
|
data = data2[0];
|
|
1663
1469
|
if (data.length) {
|
|
1664
|
-
_context2.
|
|
1470
|
+
_context2.n = 2;
|
|
1665
1471
|
break;
|
|
1666
1472
|
}
|
|
1667
1473
|
antd.message.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
|
|
1668
|
-
return _context2.
|
|
1669
|
-
case
|
|
1474
|
+
return _context2.a(2);
|
|
1475
|
+
case 2:
|
|
1670
1476
|
if (callback) callback(data);
|
|
1671
1477
|
!callback && antd.message.success("\u5BFC\u5165\u6210\u529F");
|
|
1672
|
-
return _context2.
|
|
1673
|
-
case
|
|
1478
|
+
return _context2.a(2, data);
|
|
1479
|
+
case 3:
|
|
1674
1480
|
antd.message.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
|
|
1675
|
-
return _context2.
|
|
1676
|
-
case
|
|
1677
|
-
|
|
1678
|
-
return _context2.stop();
|
|
1481
|
+
return _context2.a(2);
|
|
1482
|
+
case 4:
|
|
1483
|
+
return _context2.a(2);
|
|
1679
1484
|
}
|
|
1680
1485
|
}, _callee2);
|
|
1681
1486
|
}));
|
|
@@ -2627,17 +2432,14 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2627
2432
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2628
2433
|
};
|
|
2629
2434
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2630
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
2631
|
-
return
|
|
2632
|
-
while (1) switch (_context.
|
|
2435
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
|
|
2436
|
+
return _regenerator().w(function (_context) {
|
|
2437
|
+
while (1) switch (_context.n) {
|
|
2633
2438
|
case 0:
|
|
2634
|
-
return _context.
|
|
2439
|
+
return _context.a(2, Promise.resolve({
|
|
2635
2440
|
data: response,
|
|
2636
2441
|
status: response.status
|
|
2637
2442
|
}));
|
|
2638
|
-
case 1:
|
|
2639
|
-
case "end":
|
|
2640
|
-
return _context.stop();
|
|
2641
2443
|
}
|
|
2642
2444
|
}, _callee);
|
|
2643
2445
|
}));
|
|
@@ -3010,11 +2812,11 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3010
2812
|
data: luckysheet.transToCellData(newData)
|
|
3011
2813
|
});
|
|
3012
2814
|
};
|
|
3013
|
-
_this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
2815
|
+
_this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
3014
2816
|
var _customerColumnsMappi;
|
|
3015
2817
|
var _this$props, validDataUrl, validDataParams, updateData, columns, isBrandAuth, _this$props$isCheckSt, isCheckStockNum, customerColumnsMapping, checkSharedValue, beforeCheckCallback, resultData, resultColumns, otherParams;
|
|
3016
|
-
return
|
|
3017
|
-
while (1) switch (_context.
|
|
2818
|
+
return _regenerator().w(function (_context) {
|
|
2819
|
+
while (1) switch (_context.n) {
|
|
3018
2820
|
case 0:
|
|
3019
2821
|
_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;
|
|
3020
2822
|
resultData = _this.getData().filter(function (d) {
|
|
@@ -3039,19 +2841,19 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3039
2841
|
}
|
|
3040
2842
|
// 调用回调函数
|
|
3041
2843
|
if (!beforeCheckCallback) {
|
|
3042
|
-
_context.
|
|
2844
|
+
_context.n = 2;
|
|
3043
2845
|
break;
|
|
3044
2846
|
}
|
|
3045
|
-
_context.
|
|
2847
|
+
_context.n = 1;
|
|
3046
2848
|
return beforeCheckCallback(resultData);
|
|
3047
|
-
case
|
|
3048
|
-
resultData = _context.
|
|
2849
|
+
case 1:
|
|
2850
|
+
resultData = _context.v;
|
|
3049
2851
|
if (resultData) {
|
|
3050
|
-
_context.
|
|
2852
|
+
_context.n = 2;
|
|
3051
2853
|
break;
|
|
3052
2854
|
}
|
|
3053
|
-
return _context.
|
|
3054
|
-
case
|
|
2855
|
+
return _context.a(2);
|
|
2856
|
+
case 2:
|
|
3055
2857
|
requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
|
|
3056
2858
|
columns: resultColumns,
|
|
3057
2859
|
data: resultData,
|
|
@@ -3107,9 +2909,8 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3107
2909
|
console.log(setExportData);
|
|
3108
2910
|
setExportData([123123]);
|
|
3109
2911
|
}).catch(function (err) {});
|
|
3110
|
-
case
|
|
3111
|
-
|
|
3112
|
-
return _context.stop();
|
|
2912
|
+
case 3:
|
|
2913
|
+
return _context.a(2);
|
|
3113
2914
|
}
|
|
3114
2915
|
}, _callee);
|
|
3115
2916
|
}));
|
|
@@ -4801,27 +4602,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4801
4602
|
popvalue = _useState8[0],
|
|
4802
4603
|
setPopValue = _useState8[1];
|
|
4803
4604
|
var _useState9 = React$1.useState([]),
|
|
4804
|
-
|
|
4805
|
-
source =
|
|
4806
|
-
setSource =
|
|
4605
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
4606
|
+
source = _useState0[0],
|
|
4607
|
+
setSource = _useState0[1];
|
|
4807
4608
|
var _useDebounceFn = ahooks.useDebounceFn(function () {
|
|
4808
4609
|
getData();
|
|
4809
4610
|
}, {
|
|
4810
4611
|
wait: 1000
|
|
4811
4612
|
}),
|
|
4812
4613
|
run = _useDebounceFn.run;
|
|
4813
|
-
var
|
|
4614
|
+
var _useState1 = React$1.useState(false),
|
|
4615
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
4616
|
+
fetching = _useState10[0],
|
|
4617
|
+
setFetching = _useState10[1];
|
|
4618
|
+
var _useState11 = React$1.useState(''),
|
|
4814
4619
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
var _useState13 = React$1.useState(
|
|
4620
|
+
searchValue = _useState12[0],
|
|
4621
|
+
setSearchValue = _useState12[1];
|
|
4622
|
+
var _useState13 = React$1.useState(resultSourceKey),
|
|
4818
4623
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
var _useState15 = React$1.useState(resultSourceKey),
|
|
4822
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
4823
|
-
uniqueValue = _useState16[0],
|
|
4824
|
-
setUniqueValue = _useState16[1];
|
|
4624
|
+
uniqueValue = _useState14[0],
|
|
4625
|
+
setUniqueValue = _useState14[1];
|
|
4825
4626
|
React$1.useEffect(function () {
|
|
4826
4627
|
setPopValue(value);
|
|
4827
4628
|
onValueChange(value);
|
|
@@ -5238,21 +5039,21 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5238
5039
|
notCommonProperty = _useState8[0],
|
|
5239
5040
|
setNotCommonProperty = _useState8[1];
|
|
5240
5041
|
var _useState9 = React$1.useState(false),
|
|
5241
|
-
|
|
5242
|
-
visible =
|
|
5243
|
-
setVisible =
|
|
5244
|
-
var
|
|
5042
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5043
|
+
visible = _useState0[0],
|
|
5044
|
+
setVisible = _useState0[1];
|
|
5045
|
+
var _useState1 = React$1.useState(false),
|
|
5046
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5047
|
+
showNotCommon = _useState10[0],
|
|
5048
|
+
setShowNotCommon = _useState10[1]; // 是否展示非常用属性
|
|
5049
|
+
var _useState11 = React$1.useState([]),
|
|
5245
5050
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
var _useState13 = React$1.useState(
|
|
5051
|
+
classifyOptionList = _useState12[0],
|
|
5052
|
+
setClassifyOptionList = _useState12[1];
|
|
5053
|
+
var _useState13 = React$1.useState('1'),
|
|
5249
5054
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
var _useState15 = React$1.useState('1'),
|
|
5253
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
5254
|
-
listKey = _useState16[0],
|
|
5255
|
-
setListKey = _useState16[1];
|
|
5055
|
+
listKey = _useState14[0],
|
|
5056
|
+
setListKey = _useState14[1];
|
|
5256
5057
|
React$1.useEffect(function () {
|
|
5257
5058
|
requestUtil({
|
|
5258
5059
|
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
@@ -5635,29 +5436,29 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5635
5436
|
scrollPage = _useState8[0],
|
|
5636
5437
|
setScrollPage = _useState8[1];
|
|
5637
5438
|
var _useState9 = React$1.useState(0),
|
|
5638
|
-
|
|
5639
|
-
itemsTotal =
|
|
5640
|
-
setItemsTotal =
|
|
5641
|
-
var
|
|
5439
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5440
|
+
itemsTotal = _useState0[0],
|
|
5441
|
+
setItemsTotal = _useState0[1];
|
|
5442
|
+
var _useState1 = React$1.useState(false),
|
|
5443
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5444
|
+
fetching = _useState10[0],
|
|
5445
|
+
setFetching = _useState10[1];
|
|
5446
|
+
var _useState11 = React$1.useState(''),
|
|
5642
5447
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
var _useState13 = React$1.useState(
|
|
5448
|
+
searchValue = _useState12[0],
|
|
5449
|
+
setSearchValue = _useState12[1];
|
|
5450
|
+
var _useState13 = React$1.useState(false),
|
|
5646
5451
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
var _useState15 = React$1.useState(
|
|
5452
|
+
isModalVisible = _useState14[0],
|
|
5453
|
+
setIsModalVisible = _useState14[1];
|
|
5454
|
+
var _useState15 = React$1.useState(initVal),
|
|
5650
5455
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
var _useState17 = React$1.useState(
|
|
5456
|
+
popvalue = _useState16[0],
|
|
5457
|
+
setPopValue = _useState16[1];
|
|
5458
|
+
var _useState17 = React$1.useState(resultSourceKey),
|
|
5654
5459
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
var _useState19 = React$1.useState(resultSourceKey),
|
|
5658
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5659
|
-
uniqueValue = _useState20[0],
|
|
5660
|
-
setUniqueValue = _useState20[1];
|
|
5460
|
+
uniqueValue = _useState18[0],
|
|
5461
|
+
setUniqueValue = _useState18[1];
|
|
5661
5462
|
var _useDebounceFn = ahooks.useDebounceFn(function (v) {
|
|
5662
5463
|
// 优化搜索参数 支持传多个
|
|
5663
5464
|
var searchParams = {};
|
|
@@ -5686,58 +5487,58 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5686
5487
|
var _Form$useForm = antd.Form.useForm(),
|
|
5687
5488
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5688
5489
|
form = _Form$useForm2[0];
|
|
5490
|
+
var _useState19 = React$1.useState(true),
|
|
5491
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5492
|
+
collapsed = _useState20[0],
|
|
5493
|
+
setCollapsed = _useState20[1];
|
|
5689
5494
|
var _useState21 = React$1.useState(true),
|
|
5690
5495
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
var _useState23 = React$1.useState(
|
|
5496
|
+
caretLeftFlag = _useState22[0],
|
|
5497
|
+
setCaretLeftFlag = _useState22[1];
|
|
5498
|
+
var _useState23 = React$1.useState([]),
|
|
5694
5499
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
var _useState25 = React$1.useState(
|
|
5500
|
+
tableData = _useState24[0],
|
|
5501
|
+
setTableData = _useState24[1];
|
|
5502
|
+
var _useState25 = React$1.useState(tableInitPagination),
|
|
5698
5503
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
var _useState27 = React$1.useState(
|
|
5504
|
+
tablePagination = _useState26[0],
|
|
5505
|
+
setTablePagination = _useState26[1];
|
|
5506
|
+
var _useState27 = React$1.useState([]),
|
|
5702
5507
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5703
|
-
|
|
5704
|
-
|
|
5508
|
+
selectedRowKeys = _useState28[0],
|
|
5509
|
+
setSelectedRowKeys = _useState28[1];
|
|
5705
5510
|
var _useState29 = React$1.useState([]),
|
|
5706
5511
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
var _useState31 = React$1.useState(
|
|
5512
|
+
selectedRows = _useState30[0],
|
|
5513
|
+
setSelectedRows = _useState30[1];
|
|
5514
|
+
var _useState31 = React$1.useState(false),
|
|
5710
5515
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5711
|
-
|
|
5712
|
-
|
|
5516
|
+
checkedAll = _useState32[0],
|
|
5517
|
+
setCheckedAll = _useState32[1];
|
|
5713
5518
|
var _useState33 = React$1.useState(false),
|
|
5714
5519
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
var _useState35 = React$1.useState(
|
|
5520
|
+
indeterminate = _useState34[0],
|
|
5521
|
+
setIndeterminate = _useState34[1];
|
|
5522
|
+
var _useState35 = React$1.useState({}),
|
|
5718
5523
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
var _useState37 = React$1.useState(
|
|
5524
|
+
tableFormParams = _useState36[0],
|
|
5525
|
+
setTableFormParams = _useState36[1];
|
|
5526
|
+
var _useState37 = React$1.useState(false),
|
|
5722
5527
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
var _useState39 = React$1.useState(
|
|
5528
|
+
tooltipVisible = _useState38[0],
|
|
5529
|
+
setTooltipVisible = _useState38[1];
|
|
5530
|
+
var _useState39 = React$1.useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5726
5531
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
var _useState41 = React$1.useState(
|
|
5532
|
+
tableShowColumns = _useState40[0],
|
|
5533
|
+
setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5534
|
+
var _useState41 = React$1.useState(false),
|
|
5730
5535
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5731
|
-
|
|
5732
|
-
|
|
5536
|
+
confirmLoading = _useState42[0],
|
|
5537
|
+
setConfirmLoading = _useState42[1];
|
|
5733
5538
|
var _useState43 = React$1.useState(false),
|
|
5734
5539
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
var _useState45 = React$1.useState(false),
|
|
5738
|
-
_useState46 = _slicedToArray(_useState45, 2),
|
|
5739
|
-
modalSearched = _useState46[0],
|
|
5740
|
-
setModalSearched = _useState46[1];
|
|
5540
|
+
modalSearched = _useState44[0],
|
|
5541
|
+
setModalSearched = _useState44[1];
|
|
5741
5542
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5742
5543
|
setItems(list);
|
|
5743
5544
|
setItemsTotal(total);
|
|
@@ -6214,7 +6015,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6214
6015
|
})) || [];
|
|
6215
6016
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
6216
6017
|
return searchList.map(function (i, index) {
|
|
6217
|
-
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$
|
|
6018
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field10, _i$field12, _i$field13;
|
|
6218
6019
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6219
6020
|
span: ColSpan,
|
|
6220
6021
|
key: i
|
|
@@ -6312,7 +6113,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6312
6113
|
disabled: setDisabled(i.name)
|
|
6313
6114
|
}))));
|
|
6314
6115
|
}
|
|
6315
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6116
|
+
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') {
|
|
6316
6117
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6317
6118
|
span: ColSpan,
|
|
6318
6119
|
key: i.name
|
|
@@ -6326,7 +6127,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6326
6127
|
}
|
|
6327
6128
|
})));
|
|
6328
6129
|
}
|
|
6329
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6130
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'proppertySelector') {
|
|
6330
6131
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6331
6132
|
span: ColSpan,
|
|
6332
6133
|
key: i.name
|
|
@@ -6336,8 +6137,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6336
6137
|
key: i.name
|
|
6337
6138
|
}, /*#__PURE__*/React__default['default'].createElement(PropertySelector, null)));
|
|
6338
6139
|
}
|
|
6339
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6340
|
-
var _i$
|
|
6140
|
+
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') {
|
|
6141
|
+
var _i$field11;
|
|
6341
6142
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6342
6143
|
span: ColSpan,
|
|
6343
6144
|
key: i.name
|
|
@@ -6350,9 +6151,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6350
6151
|
width: '100%'
|
|
6351
6152
|
},
|
|
6352
6153
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6353
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6154
|
+
}, i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.props))));
|
|
6354
6155
|
}
|
|
6355
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6156
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
|
|
6356
6157
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6357
6158
|
span: ColSpan,
|
|
6358
6159
|
key: i.name
|
|
@@ -6381,7 +6182,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6381
6182
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6382
6183
|
allowClear: true,
|
|
6383
6184
|
maxLength: 100
|
|
6384
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6185
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
|
|
6385
6186
|
disabled: setDisabled(i.name)
|
|
6386
6187
|
}))));
|
|
6387
6188
|
});
|
|
@@ -7701,135 +7502,132 @@ var AddSelect = function AddSelect(props) {
|
|
|
7701
7502
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7702
7503
|
form = _Form$useForm2[0];
|
|
7703
7504
|
var _useState9 = React$1.useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7704
|
-
|
|
7705
|
-
tableSearchForm =
|
|
7706
|
-
setTableSearchForm =
|
|
7707
|
-
var
|
|
7505
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
7506
|
+
tableSearchForm = _useState0[0],
|
|
7507
|
+
setTableSearchForm = _useState0[1];
|
|
7508
|
+
var _useState1 = React$1.useState(true),
|
|
7509
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
7510
|
+
caretLeftFlag = _useState10[0],
|
|
7511
|
+
setCaretLeftFlag = _useState10[1];
|
|
7512
|
+
var _useState11 = React$1.useState([]),
|
|
7708
7513
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
var _useState13 = React$1.useState(
|
|
7712
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
7713
|
-
tableData = _useState14[0],
|
|
7714
|
-
setTableData = _useState14[1];
|
|
7715
|
-
var _useState15 = React$1.useState(_objectSpread2({
|
|
7514
|
+
tableData = _useState12[0],
|
|
7515
|
+
setTableData = _useState12[1];
|
|
7516
|
+
var _useState13 = React$1.useState(_objectSpread2({
|
|
7716
7517
|
total: 0,
|
|
7717
7518
|
size: "small",
|
|
7718
7519
|
current: 1,
|
|
7719
7520
|
pageSize: tableInitPageSize
|
|
7720
7521
|
}, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
|
|
7522
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
7523
|
+
tablePagination = _useState14[0],
|
|
7524
|
+
setTablePagination = _useState14[1];
|
|
7525
|
+
var _useState15 = React$1.useState([]),
|
|
7721
7526
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
var _useState17 = React$1.useState(
|
|
7527
|
+
selectedRowKeys = _useState16[0],
|
|
7528
|
+
setSelectedRowKeys = _useState16[1];
|
|
7529
|
+
var _useState17 = React$1.useState({}),
|
|
7725
7530
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
var _useState19 = React$1.useState(
|
|
7531
|
+
tableFormParams = _useState18[0],
|
|
7532
|
+
setTableFormParams = _useState18[1];
|
|
7533
|
+
var _useState19 = React$1.useState(false),
|
|
7729
7534
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7730
|
-
|
|
7731
|
-
|
|
7535
|
+
confirmLoading = _useState20[0],
|
|
7536
|
+
setConfirmLoading = _useState20[1];
|
|
7732
7537
|
var _useState21 = React$1.useState(false),
|
|
7733
7538
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
var _useState23 = React$1.useState(
|
|
7539
|
+
confirmContinueLoading = _useState22[0],
|
|
7540
|
+
setConfirmContinueLoading = _useState22[1];
|
|
7541
|
+
var _useState23 = React$1.useState([]),
|
|
7737
7542
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7738
|
-
|
|
7739
|
-
|
|
7543
|
+
selectColumns = _useState24[0],
|
|
7544
|
+
setSelectColumns = _useState24[1];
|
|
7740
7545
|
var _useState25 = React$1.useState([]),
|
|
7741
7546
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7742
|
-
|
|
7743
|
-
|
|
7547
|
+
showColumns = _useState26[0],
|
|
7548
|
+
setShowColumns = _useState26[1];
|
|
7744
7549
|
var _useState27 = React$1.useState([]),
|
|
7745
7550
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7746
|
-
|
|
7747
|
-
|
|
7551
|
+
tableColumns = _useState28[0],
|
|
7552
|
+
setTableColumns = _useState28[1];
|
|
7748
7553
|
var _useState29 = React$1.useState([]),
|
|
7749
7554
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
var _useState31 = React$1.useState([]),
|
|
7753
|
-
_useState32 = _slicedToArray(_useState31, 2),
|
|
7754
|
-
showToChooseColumns = _useState32[0],
|
|
7755
|
-
setShowToChooseColumns = _useState32[1];
|
|
7555
|
+
showToChooseColumns = _useState30[0],
|
|
7556
|
+
setShowToChooseColumns = _useState30[1];
|
|
7756
7557
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7757
7558
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7758
7559
|
// FIXME: 特殊业务逻辑
|
|
7759
7560
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7760
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7761
|
-
var result;
|
|
7762
|
-
return
|
|
7763
|
-
while (1) switch (_context.
|
|
7561
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7562
|
+
var result, _t;
|
|
7563
|
+
return _regenerator().w(function (_context) {
|
|
7564
|
+
while (1) switch (_context.n) {
|
|
7764
7565
|
case 0:
|
|
7765
7566
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7766
7567
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7767
7568
|
}))) {
|
|
7768
|
-
_context.
|
|
7569
|
+
_context.n = 1;
|
|
7769
7570
|
break;
|
|
7770
7571
|
}
|
|
7771
7572
|
antd.message.warning('相同skc配码不可设置相同哦');
|
|
7772
|
-
return _context.
|
|
7773
|
-
case
|
|
7573
|
+
return _context.a(2, false);
|
|
7574
|
+
case 1:
|
|
7774
7575
|
if (!(bType == 'spu')) {
|
|
7775
|
-
_context.
|
|
7576
|
+
_context.n = 9;
|
|
7776
7577
|
break;
|
|
7777
7578
|
}
|
|
7778
7579
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7779
7580
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7780
7581
|
}))) {
|
|
7781
|
-
_context.
|
|
7582
|
+
_context.n = 2;
|
|
7782
7583
|
break;
|
|
7783
7584
|
}
|
|
7784
7585
|
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7785
|
-
return _context.
|
|
7786
|
-
case
|
|
7586
|
+
return _context.a(2, false);
|
|
7587
|
+
case 2:
|
|
7787
7588
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7788
|
-
_context.
|
|
7589
|
+
_context.n = 3;
|
|
7789
7590
|
break;
|
|
7790
7591
|
}
|
|
7791
7592
|
antd.message.warning('请先选择颜色!');
|
|
7792
|
-
return _context.
|
|
7793
|
-
case
|
|
7593
|
+
return _context.a(2, false);
|
|
7594
|
+
case 3:
|
|
7794
7595
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7795
7596
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7796
7597
|
}))) {
|
|
7797
|
-
_context.
|
|
7598
|
+
_context.n = 4;
|
|
7798
7599
|
break;
|
|
7799
7600
|
}
|
|
7800
7601
|
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7801
|
-
return _context.
|
|
7802
|
-
case
|
|
7602
|
+
return _context.a(2, false);
|
|
7603
|
+
case 4:
|
|
7803
7604
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7804
|
-
_context.
|
|
7605
|
+
_context.n = 9;
|
|
7805
7606
|
break;
|
|
7806
7607
|
}
|
|
7807
7608
|
result = true;
|
|
7808
|
-
_context.
|
|
7809
|
-
_context.
|
|
7609
|
+
_context.p = 5;
|
|
7610
|
+
_context.n = 6;
|
|
7810
7611
|
return checkSpuMatchCode({
|
|
7811
7612
|
skcCode: recordItem[recordKey],
|
|
7812
7613
|
matchingCode: changeValue,
|
|
7813
7614
|
ext1: recordItem.colorName
|
|
7814
7615
|
});
|
|
7815
|
-
case
|
|
7816
|
-
result = _context.
|
|
7616
|
+
case 6:
|
|
7617
|
+
result = _context.v;
|
|
7817
7618
|
result = true;
|
|
7818
|
-
_context.
|
|
7619
|
+
_context.n = 8;
|
|
7819
7620
|
break;
|
|
7820
|
-
case
|
|
7821
|
-
_context.
|
|
7822
|
-
|
|
7823
|
-
result = typeof
|
|
7824
|
-
case
|
|
7825
|
-
return _context.
|
|
7826
|
-
case
|
|
7827
|
-
return _context.
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
return _context.stop();
|
|
7831
|
-
}
|
|
7832
|
-
}, _callee, null, [[15, 22]]);
|
|
7621
|
+
case 7:
|
|
7622
|
+
_context.p = 7;
|
|
7623
|
+
_t = _context.v;
|
|
7624
|
+
result = typeof _t == 'boolean' ? _t : false;
|
|
7625
|
+
case 8:
|
|
7626
|
+
return _context.a(2, result);
|
|
7627
|
+
case 9:
|
|
7628
|
+
return _context.a(2, true);
|
|
7629
|
+
}
|
|
7630
|
+
}, _callee, null, [[5, 7]]);
|
|
7833
7631
|
}));
|
|
7834
7632
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7835
7633
|
return _ref2.apply(this, arguments);
|
|
@@ -7920,17 +7718,16 @@ var AddSelect = function AddSelect(props) {
|
|
|
7920
7718
|
e.target.blur();
|
|
7921
7719
|
},
|
|
7922
7720
|
onBlur: function () {
|
|
7923
|
-
var _onBlur = _asyncToGenerator(/*#__PURE__*/
|
|
7721
|
+
var _onBlur = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e) {
|
|
7924
7722
|
var value;
|
|
7925
|
-
return
|
|
7926
|
-
while (1) switch (_context2.
|
|
7723
|
+
return _regenerator().w(function (_context2) {
|
|
7724
|
+
while (1) switch (_context2.n) {
|
|
7927
7725
|
case 0:
|
|
7928
7726
|
value = e.target.value;
|
|
7929
7727
|
record[item.dataIndex] = value;
|
|
7930
7728
|
editRecord(record);
|
|
7931
|
-
case
|
|
7932
|
-
|
|
7933
|
-
return _context2.stop();
|
|
7729
|
+
case 1:
|
|
7730
|
+
return _context2.a(2);
|
|
7934
7731
|
}
|
|
7935
7732
|
}, _callee2);
|
|
7936
7733
|
}));
|
|
@@ -8090,10 +7887,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8090
7887
|
}
|
|
8091
7888
|
_dom6 = null;
|
|
8092
7889
|
} else if (e.keyCode === 38) {
|
|
8093
|
-
var _e$nativeEvent$path$
|
|
7890
|
+
var _e$nativeEvent$path$0;
|
|
8094
7891
|
e.stopPropagation();
|
|
8095
7892
|
e.preventDefault();
|
|
8096
|
-
var dom1 = (_e$nativeEvent$path$
|
|
7893
|
+
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];
|
|
8097
7894
|
if (dom1) {
|
|
8098
7895
|
// dom1.value=""
|
|
8099
7896
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -8127,19 +7924,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
8127
7924
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
8128
7925
|
value: text || null,
|
|
8129
7926
|
onChange: function () {
|
|
8130
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
8131
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
8132
|
-
return
|
|
8133
|
-
while (1) switch (_context3.
|
|
7927
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(value) {
|
|
7928
|
+
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules, _t2;
|
|
7929
|
+
return _regenerator().w(function (_context3) {
|
|
7930
|
+
while (1) switch (_context3.n) {
|
|
8134
7931
|
case 0:
|
|
8135
7932
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
8136
7933
|
return d[selectKey] == value;
|
|
8137
7934
|
})) || {};
|
|
8138
7935
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
8139
|
-
_context3.
|
|
7936
|
+
_context3.n = 2;
|
|
8140
7937
|
break;
|
|
8141
7938
|
}
|
|
8142
|
-
_context3.
|
|
7939
|
+
_context3.n = 1;
|
|
8143
7940
|
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, {
|
|
8144
7941
|
record: record,
|
|
8145
7942
|
index: index,
|
|
@@ -8149,10 +7946,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8149
7946
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
8150
7947
|
editRecord: editRecord
|
|
8151
7948
|
});
|
|
8152
|
-
case
|
|
8153
|
-
_context3.
|
|
7949
|
+
case 1:
|
|
7950
|
+
_context3.n = 10;
|
|
8154
7951
|
break;
|
|
8155
|
-
case
|
|
7952
|
+
case 2:
|
|
8156
7953
|
// 更新当前行数据函数
|
|
8157
7954
|
changeValue = function changeValue(v, dSSItem) {
|
|
8158
7955
|
var _item$dataSourceSelec;
|
|
@@ -8165,12 +7962,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
8165
7962
|
}
|
|
8166
7963
|
}; // 处理校验,默认不校验
|
|
8167
7964
|
isCheckPass = true;
|
|
8168
|
-
_context3.
|
|
7965
|
+
_context3.p = 3;
|
|
8169
7966
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
8170
|
-
_context3.
|
|
7967
|
+
_context3.n = 5;
|
|
8171
7968
|
break;
|
|
8172
7969
|
}
|
|
8173
|
-
_context3.
|
|
7970
|
+
_context3.n = 4;
|
|
8174
7971
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
8175
7972
|
record: record,
|
|
8176
7973
|
index: index,
|
|
@@ -8179,23 +7976,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
8179
7976
|
changeValue: value,
|
|
8180
7977
|
dataSourceSelectItem: dataSourceSelectItem
|
|
8181
7978
|
});
|
|
8182
|
-
case
|
|
8183
|
-
isCheckPass = _context3.
|
|
8184
|
-
_context3.
|
|
7979
|
+
case 4:
|
|
7980
|
+
isCheckPass = _context3.v;
|
|
7981
|
+
_context3.n = 7;
|
|
8185
7982
|
break;
|
|
8186
|
-
case
|
|
8187
|
-
_context3.
|
|
7983
|
+
case 5:
|
|
7984
|
+
_context3.n = 6;
|
|
8188
7985
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
8189
|
-
case
|
|
8190
|
-
isConformToTheRules = _context3.
|
|
7986
|
+
case 6:
|
|
7987
|
+
isConformToTheRules = _context3.v;
|
|
8191
7988
|
isCheckPass = !isConformToTheRules;
|
|
8192
|
-
case
|
|
8193
|
-
_context3.
|
|
7989
|
+
case 7:
|
|
7990
|
+
_context3.n = 9;
|
|
8194
7991
|
break;
|
|
8195
|
-
case
|
|
8196
|
-
_context3.
|
|
8197
|
-
|
|
8198
|
-
case
|
|
7992
|
+
case 8:
|
|
7993
|
+
_context3.p = 8;
|
|
7994
|
+
_t2 = _context3.v;
|
|
7995
|
+
case 9:
|
|
8199
7996
|
if (isCheckPass) {
|
|
8200
7997
|
changeValue(value, dataSourceSelectItem);
|
|
8201
7998
|
} else {
|
|
@@ -8203,11 +8000,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8203
8000
|
}
|
|
8204
8001
|
// 更新已选表格函数
|
|
8205
8002
|
editRecord(record);
|
|
8206
|
-
case
|
|
8207
|
-
|
|
8208
|
-
return _context3.stop();
|
|
8003
|
+
case 10:
|
|
8004
|
+
return _context3.a(2);
|
|
8209
8005
|
}
|
|
8210
|
-
}, _callee3, null, [[
|
|
8006
|
+
}, _callee3, null, [[3, 8]]);
|
|
8211
8007
|
}));
|
|
8212
8008
|
function onChange(_x8) {
|
|
8213
8009
|
return _onChange.apply(this, arguments);
|
|
@@ -9598,29 +9394,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9598
9394
|
dataIndex: 'propertyNameAndValue'
|
|
9599
9395
|
}];
|
|
9600
9396
|
var _useState9 = React$1.useState(false),
|
|
9601
|
-
|
|
9602
|
-
isModalVisible =
|
|
9603
|
-
setIsModalVisible =
|
|
9604
|
-
var
|
|
9397
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
9398
|
+
isModalVisible = _useState0[0],
|
|
9399
|
+
setIsModalVisible = _useState0[1];
|
|
9400
|
+
var _useState1 = React$1.useState([{
|
|
9605
9401
|
hovered: false
|
|
9606
9402
|
}]),
|
|
9607
|
-
|
|
9608
|
-
data =
|
|
9609
|
-
setData =
|
|
9403
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
9404
|
+
data = _useState10[0],
|
|
9405
|
+
setData = _useState10[1];
|
|
9610
9406
|
var tableRef = React$1.useRef(null);
|
|
9611
9407
|
var codeSelected = tableCode;
|
|
9612
|
-
var
|
|
9408
|
+
var _useState11 = React$1.useState(false),
|
|
9409
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9410
|
+
loading = _useState12[0],
|
|
9411
|
+
setLoading = _useState12[1];
|
|
9412
|
+
var _useState13 = React$1.useState([]),
|
|
9613
9413
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9614
|
-
|
|
9615
|
-
|
|
9414
|
+
selectColumns = _useState14[0],
|
|
9415
|
+
setSelectColumns = _useState14[1];
|
|
9616
9416
|
var _useState15 = React$1.useState([]),
|
|
9617
9417
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9618
|
-
|
|
9619
|
-
|
|
9620
|
-
var _useState17 = React$1.useState([]),
|
|
9621
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
9622
|
-
showColumns = _useState18[0],
|
|
9623
|
-
setShowColumns = _useState18[1];
|
|
9418
|
+
showColumns = _useState16[0],
|
|
9419
|
+
setShowColumns = _useState16[1];
|
|
9624
9420
|
React$1.useEffect(function () {
|
|
9625
9421
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9626
9422
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9736,42 +9532,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9736
9532
|
});
|
|
9737
9533
|
};
|
|
9738
9534
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9739
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9535
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
9740
9536
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9741
|
-
return
|
|
9742
|
-
while (1) switch (_context.
|
|
9537
|
+
return _regenerator().w(function (_context) {
|
|
9538
|
+
while (1) switch (_context.n) {
|
|
9743
9539
|
case 0:
|
|
9744
9540
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9745
|
-
_context.
|
|
9541
|
+
_context.n = 1;
|
|
9746
9542
|
break;
|
|
9747
9543
|
}
|
|
9748
9544
|
antd.message.warning('至少录入一条数据');
|
|
9749
|
-
return _context.
|
|
9750
|
-
case
|
|
9545
|
+
return _context.a(2);
|
|
9546
|
+
case 1:
|
|
9751
9547
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9752
9548
|
return d.skuCode && d.name;
|
|
9753
9549
|
})) {
|
|
9754
|
-
_context.
|
|
9550
|
+
_context.n = 2;
|
|
9755
9551
|
break;
|
|
9756
9552
|
}
|
|
9757
9553
|
antd.message.warning('录入商品不存在');
|
|
9758
|
-
return _context.
|
|
9759
|
-
case
|
|
9554
|
+
return _context.a(2);
|
|
9555
|
+
case 2:
|
|
9760
9556
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9761
9557
|
return d.count;
|
|
9762
9558
|
})) {
|
|
9763
|
-
_context.
|
|
9559
|
+
_context.n = 3;
|
|
9764
9560
|
break;
|
|
9765
9561
|
}
|
|
9766
9562
|
antd.message.warning('请填写商品数量!');
|
|
9767
|
-
return _context.
|
|
9768
|
-
case
|
|
9769
|
-
_context.
|
|
9563
|
+
return _context.a(2);
|
|
9564
|
+
case 3:
|
|
9565
|
+
_context.n = 4;
|
|
9770
9566
|
return isSkuCanEntry(data);
|
|
9771
|
-
case
|
|
9772
|
-
canEntryObject = _context.
|
|
9567
|
+
case 4:
|
|
9568
|
+
canEntryObject = _context.v;
|
|
9773
9569
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9774
|
-
_context.
|
|
9570
|
+
_context.n = 5;
|
|
9775
9571
|
break;
|
|
9776
9572
|
}
|
|
9777
9573
|
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) {
|
|
@@ -9781,8 +9577,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9781
9577
|
content: messageInfo,
|
|
9782
9578
|
duration: 6
|
|
9783
9579
|
});
|
|
9784
|
-
return _context.
|
|
9785
|
-
case
|
|
9580
|
+
return _context.a(2);
|
|
9581
|
+
case 5:
|
|
9786
9582
|
setLoading(true);
|
|
9787
9583
|
onSaveCallback(data).then(function (res) {
|
|
9788
9584
|
{
|
|
@@ -9800,9 +9596,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9800
9596
|
antd.message.error(Error);
|
|
9801
9597
|
setLoading(false);
|
|
9802
9598
|
});
|
|
9803
|
-
case
|
|
9804
|
-
|
|
9805
|
-
return _context.stop();
|
|
9599
|
+
case 6:
|
|
9600
|
+
return _context.a(2);
|
|
9806
9601
|
}
|
|
9807
9602
|
}, _callee);
|
|
9808
9603
|
}));
|
|
@@ -11999,17 +11794,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11999
11794
|
}
|
|
12000
11795
|
}
|
|
12001
11796
|
}];
|
|
12002
|
-
var
|
|
11797
|
+
var _queryHeaderParams0 = getQueryHeadersList({
|
|
12003
11798
|
querySelectHeadersList: querySelectHeadersList,
|
|
12004
11799
|
extralHeaders: extralHeaders
|
|
12005
11800
|
});
|
|
12006
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(
|
|
11801
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams0, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
12007
11802
|
'qp-status-eq': 10,
|
|
12008
11803
|
'qp-isMain-eq': 1,
|
|
12009
11804
|
'qp-type-in': '1,2'
|
|
12010
|
-
}, getQueryHeadersItem(
|
|
11805
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
12011
11806
|
'qp-status-eq': 1
|
|
12012
|
-
}, getQueryHeadersItem(
|
|
11807
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in'))]).then(function (x) {
|
|
12013
11808
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
12014
11809
|
var allList = firstElement && [firstElement, firstElement];
|
|
12015
11810
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
@@ -12195,7 +11990,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12195
11990
|
}
|
|
12196
11991
|
}
|
|
12197
11992
|
}];
|
|
12198
|
-
var
|
|
11993
|
+
var _queryHeaderParams1 = getQueryHeadersList({
|
|
12199
11994
|
querySelectHeadersList: querySelectHeadersList,
|
|
12200
11995
|
extralHeaders: extralHeaders
|
|
12201
11996
|
});
|
|
@@ -12203,21 +11998,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12203
11998
|
pageSize: 5000,
|
|
12204
11999
|
currentPage: 1,
|
|
12205
12000
|
'qp-companyType-eq': '30'
|
|
12206
|
-
}, getQueryHeadersItem(
|
|
12001
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
12207
12002
|
pageSize: 5000,
|
|
12208
12003
|
currentPage: 1,
|
|
12209
12004
|
'qp-companyType-eq': '20'
|
|
12210
|
-
}, getQueryHeadersItem(
|
|
12005
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
12211
12006
|
// pageSize: 5000,
|
|
12212
12007
|
// currentPage: 1,
|
|
12213
12008
|
'qp-status-eq': '1'
|
|
12214
|
-
}, getQueryHeadersItem(
|
|
12009
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
12215
12010
|
pageSize: 5000,
|
|
12216
12011
|
currentPage: 1
|
|
12217
|
-
}, getQueryHeadersItem(
|
|
12012
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
12218
12013
|
pageSize: 5000,
|
|
12219
12014
|
currentPage: 1
|
|
12220
|
-
}, getQueryHeadersItem(
|
|
12015
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-accountingCode-in'))]).then(function (x) {
|
|
12221
12016
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12222
12017
|
formatSource(x, 1, 3, tableSearchForm);
|
|
12223
12018
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -12405,7 +12200,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12405
12200
|
}
|
|
12406
12201
|
}
|
|
12407
12202
|
}];
|
|
12408
|
-
var
|
|
12203
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
12409
12204
|
querySelectHeadersList: querySelectHeadersList,
|
|
12410
12205
|
extralHeaders: extralHeaders
|
|
12411
12206
|
});
|
|
@@ -12413,17 +12208,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12413
12208
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12414
12209
|
'qp-realOrg-eq': true,
|
|
12415
12210
|
'qp-status-eq': 10
|
|
12416
|
-
}, getQueryHeadersItem(
|
|
12211
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12417
12212
|
'qp-status-eq': 10,
|
|
12418
12213
|
'qp-isMain-eq': 1,
|
|
12419
12214
|
'qp-type-in': '1,2'
|
|
12420
|
-
}, getQueryHeadersItem(
|
|
12215
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12421
12216
|
'qp-status-eq': 1
|
|
12422
|
-
}, getQueryHeadersItem(
|
|
12217
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
12423
12218
|
pageSize: 5000,
|
|
12424
12219
|
currentPage: 1,
|
|
12425
12220
|
'ctl-withAuth': true
|
|
12426
|
-
}, getQueryHeadersItem(
|
|
12221
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth'))]).then(function (x) {
|
|
12427
12222
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12428
12223
|
return data['parentCode'] === '0';
|
|
12429
12224
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -12662,7 +12457,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12662
12457
|
name: 'qp-officeTelephone-like',
|
|
12663
12458
|
label: '手机号'
|
|
12664
12459
|
}];
|
|
12665
|
-
var
|
|
12460
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
12666
12461
|
querySelectHeadersList: querySelectHeadersList,
|
|
12667
12462
|
extralHeaders: extralHeaders
|
|
12668
12463
|
});
|
|
@@ -12670,7 +12465,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12670
12465
|
pageSize: 5000,
|
|
12671
12466
|
currentPage: 1,
|
|
12672
12467
|
'qp-companyType-eq': 20
|
|
12673
|
-
}, getQueryHeadersItem(
|
|
12468
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in'))]).then(function (x) {
|
|
12674
12469
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12675
12470
|
});
|
|
12676
12471
|
modalTableProps = _objectSpread2({
|
|
@@ -12779,13 +12574,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12779
12574
|
name: 'qp-phone-like',
|
|
12780
12575
|
label: '手机号'
|
|
12781
12576
|
}]);
|
|
12782
|
-
var
|
|
12577
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12783
12578
|
querySelectHeadersList: querySelectHeadersList,
|
|
12784
12579
|
extralHeaders: extralHeaders
|
|
12785
12580
|
});
|
|
12786
12581
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12787
12582
|
'orgViewCode': 'administrative-organization-view'
|
|
12788
|
-
}, getQueryHeadersItem(
|
|
12583
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-code-in'))]).then(function (x) {
|
|
12789
12584
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12790
12585
|
});
|
|
12791
12586
|
modalTableProps = _objectSpread2({
|
|
@@ -12932,17 +12727,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12932
12727
|
name: 'qp-remark-like',
|
|
12933
12728
|
label: '备注'
|
|
12934
12729
|
}];
|
|
12935
|
-
var
|
|
12730
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12936
12731
|
querySelectHeadersList: querySelectHeadersList,
|
|
12937
12732
|
extralHeaders: extralHeaders
|
|
12938
12733
|
});
|
|
12939
12734
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12940
12735
|
pageSize: 5000,
|
|
12941
12736
|
currentPage: 1
|
|
12942
|
-
}, getQueryHeadersItem(
|
|
12737
|
+
}, getQueryHeadersItem(_queryHeaderParams13, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12943
12738
|
pageSize: 5000,
|
|
12944
12739
|
currentPage: 1
|
|
12945
|
-
}, getQueryHeadersItem(
|
|
12740
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12946
12741
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12947
12742
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12948
12743
|
});
|
|
@@ -13112,14 +12907,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13112
12907
|
}
|
|
13113
12908
|
}
|
|
13114
12909
|
}];
|
|
13115
|
-
var
|
|
12910
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
13116
12911
|
querySelectHeadersList: querySelectHeadersList,
|
|
13117
12912
|
extralHeaders: extralHeaders
|
|
13118
12913
|
});
|
|
13119
12914
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
13120
12915
|
pageSize: 5000,
|
|
13121
12916
|
currentPage: 1
|
|
13122
|
-
}, getQueryHeadersItem(
|
|
12917
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
13123
12918
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13124
12919
|
});
|
|
13125
12920
|
modalTableProps = _objectSpread2({
|
|
@@ -13216,7 +13011,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13216
13011
|
}
|
|
13217
13012
|
}
|
|
13218
13013
|
}];
|
|
13219
|
-
var
|
|
13014
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
13220
13015
|
querySelectHeadersList: querySelectHeadersList,
|
|
13221
13016
|
extralHeaders: extralHeaders
|
|
13222
13017
|
});
|
|
@@ -13224,7 +13019,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13224
13019
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
13225
13020
|
'qp-realOrg-eq': true,
|
|
13226
13021
|
'qp-status-eq': 10
|
|
13227
|
-
}, getQueryHeadersItem(
|
|
13022
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
13228
13023
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13229
13024
|
});
|
|
13230
13025
|
modalTableProps = _objectSpread2({
|
|
@@ -13330,13 +13125,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13330
13125
|
},
|
|
13331
13126
|
initialSource: nodeType
|
|
13332
13127
|
}];
|
|
13333
|
-
var
|
|
13128
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13334
13129
|
querySelectHeadersList: querySelectHeadersList,
|
|
13335
13130
|
extralHeaders: extralHeaders
|
|
13336
13131
|
});
|
|
13337
13132
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13338
13133
|
'qp-status-eq': 10
|
|
13339
|
-
}, getQueryHeadersItem(
|
|
13134
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13340
13135
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13341
13136
|
});
|
|
13342
13137
|
modalTableProps = _objectSpread2({
|
|
@@ -13662,13 +13457,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13662
13457
|
},
|
|
13663
13458
|
initialSource: nodeType
|
|
13664
13459
|
}];
|
|
13665
|
-
var
|
|
13460
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
13666
13461
|
querySelectHeadersList: querySelectHeadersList,
|
|
13667
13462
|
extralHeaders: extralHeaders
|
|
13668
13463
|
});
|
|
13669
13464
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13670
13465
|
'qp-status-eq': 10
|
|
13671
|
-
}, getQueryHeadersItem(
|
|
13466
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13672
13467
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13673
13468
|
});
|
|
13674
13469
|
modalTableProps = _objectSpread2({
|
|
@@ -14613,9 +14408,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14613
14408
|
value = _useState8[0],
|
|
14614
14409
|
setValue = _useState8[1];
|
|
14615
14410
|
var _useState9 = React$1.useState([]),
|
|
14616
|
-
|
|
14617
|
-
propertyList =
|
|
14618
|
-
setPropertyList =
|
|
14411
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
14412
|
+
propertyList = _useState0[0],
|
|
14413
|
+
setPropertyList = _useState0[1];
|
|
14619
14414
|
React$1.useEffect(function () {
|
|
14620
14415
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14621
14416
|
// type: 1 尺码组; 2 配码组
|
|
@@ -15139,46 +14934,45 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
15139
14934
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
15140
14935
|
headers: headers
|
|
15141
14936
|
}).then(/*#__PURE__*/function () {
|
|
15142
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
14937
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
|
|
15143
14938
|
var _ctx$form;
|
|
15144
14939
|
var resData, coverData, data, dataList;
|
|
15145
|
-
return
|
|
15146
|
-
while (1) switch (_context.
|
|
14940
|
+
return _regenerator().w(function (_context) {
|
|
14941
|
+
while (1) switch (_context.n) {
|
|
15147
14942
|
case 0:
|
|
15148
14943
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
15149
14944
|
if (!judgeIsRequestSuccess(resData)) {
|
|
15150
|
-
_context.
|
|
14945
|
+
_context.n = 4;
|
|
15151
14946
|
break;
|
|
15152
14947
|
}
|
|
15153
14948
|
data = resData.data;
|
|
15154
14949
|
if (!remoteSource.converter) {
|
|
15155
|
-
_context.
|
|
14950
|
+
_context.n = 2;
|
|
15156
14951
|
break;
|
|
15157
14952
|
}
|
|
15158
|
-
_context.
|
|
14953
|
+
_context.n = 1;
|
|
15159
14954
|
return remoteSource.converter({
|
|
15160
14955
|
data: [data]
|
|
15161
14956
|
});
|
|
15162
|
-
case
|
|
15163
|
-
coverData = _context.
|
|
15164
|
-
_context.
|
|
14957
|
+
case 1:
|
|
14958
|
+
coverData = _context.v;
|
|
14959
|
+
_context.n = 3;
|
|
15165
14960
|
break;
|
|
15166
|
-
case
|
|
14961
|
+
case 2:
|
|
15167
14962
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
15168
14963
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
15169
14964
|
return _mapSearchTree(ites);
|
|
15170
14965
|
}) || [];
|
|
15171
|
-
case
|
|
15172
|
-
_context.
|
|
14966
|
+
case 3:
|
|
14967
|
+
_context.n = 5;
|
|
15173
14968
|
break;
|
|
15174
|
-
case
|
|
14969
|
+
case 4:
|
|
15175
14970
|
coverData = [];
|
|
15176
|
-
case
|
|
14971
|
+
case 5:
|
|
15177
14972
|
setTreeData(coverData);
|
|
15178
14973
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
15179
|
-
case
|
|
15180
|
-
|
|
15181
|
-
return _context.stop();
|
|
14974
|
+
case 6:
|
|
14975
|
+
return _context.a(2);
|
|
15182
14976
|
}
|
|
15183
14977
|
}, _callee);
|
|
15184
14978
|
}));
|
|
@@ -18077,6 +17871,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
18077
17871
|
title: '列首',
|
|
18078
17872
|
dataIndex: 'fixedLeft',
|
|
18079
17873
|
render: function render(text, record) {
|
|
17874
|
+
if (_this.props.disableColumnFixed) {
|
|
17875
|
+
return null;
|
|
17876
|
+
}
|
|
18080
17877
|
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
18081
17878
|
onClick: function onClick() {
|
|
18082
17879
|
var sortDataSource = _this.state.sortDataSource;
|
|
@@ -18153,6 +17950,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
18153
17950
|
title: '列尾',
|
|
18154
17951
|
dataIndex: 'fixedRight',
|
|
18155
17952
|
render: function render(text, record) {
|
|
17953
|
+
if (_this.props.disableColumnFixed) {
|
|
17954
|
+
return null;
|
|
17955
|
+
}
|
|
18156
17956
|
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
18157
17957
|
onClick: function onClick() {
|
|
18158
17958
|
var sortDataSource = _this.state.sortDataSource;
|
|
@@ -19402,7 +19202,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
19402
19202
|
}, /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps)));
|
|
19403
19203
|
};
|
|
19404
19204
|
var BsSulaQueryTable = (function (props) {
|
|
19405
|
-
var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _value$exportConfig6;
|
|
19205
|
+
var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _props$tableProps, _value$exportConfig6;
|
|
19406
19206
|
var bsTableCode = (props === null || props === void 0 ? void 0 : props.tableCode) || window.location.hash; //设置列字段的唯一标识
|
|
19407
19207
|
var rowsRef = React$1.useRef(null);
|
|
19408
19208
|
// 获取 table columns中所有的 key 防止有的地方是 dataindex
|
|
@@ -19480,38 +19280,38 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19480
19280
|
};
|
|
19481
19281
|
var refs = React$1.useRef(null);
|
|
19482
19282
|
var _useState9 = React$1.useState(''),
|
|
19483
|
-
|
|
19484
|
-
pagePath =
|
|
19485
|
-
setPagePath =
|
|
19283
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
19284
|
+
pagePath = _useState0[0],
|
|
19285
|
+
setPagePath = _useState0[1];
|
|
19486
19286
|
var _useLocation = umi.useLocation(),
|
|
19487
19287
|
pathname = _useLocation.pathname,
|
|
19488
19288
|
_useLocation$state = _useLocation.state,
|
|
19489
19289
|
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
19490
|
-
var
|
|
19491
|
-
|
|
19492
|
-
isFullScreen =
|
|
19493
|
-
setIsFnllScreen =
|
|
19290
|
+
var _useState1 = React$1.useState(false),
|
|
19291
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
19292
|
+
isFullScreen = _useState10[0],
|
|
19293
|
+
setIsFnllScreen = _useState10[1];
|
|
19494
19294
|
// @ts-nocheck
|
|
19495
19295
|
var value = props;
|
|
19496
19296
|
var _props$fields = props.fields,
|
|
19497
19297
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
19498
|
-
var
|
|
19499
|
-
|
|
19500
|
-
showColumn =
|
|
19501
|
-
setShowColumns =
|
|
19298
|
+
var _useState11 = React$1.useState([]),
|
|
19299
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
19300
|
+
showColumn = _useState12[0],
|
|
19301
|
+
setShowColumns = _useState12[1]; // 列字段
|
|
19502
19302
|
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19503
|
-
var
|
|
19303
|
+
var _useState13 = React$1.useState(originSearchFields),
|
|
19304
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
19305
|
+
showSearchFields = _useState14[0],
|
|
19306
|
+
setShowSearchFields = _useState14[1]; //搜索项字段
|
|
19307
|
+
var _useState15 = React$1.useState([]),
|
|
19504
19308
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
19505
|
-
|
|
19506
|
-
|
|
19507
|
-
var _useState17 = React$1.useState(
|
|
19309
|
+
showExportColumn = _useState16[0],
|
|
19310
|
+
setShowExportColumns = _useState16[1]; // 导出列字段
|
|
19311
|
+
var _useState17 = React$1.useState(''),
|
|
19508
19312
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
19509
|
-
|
|
19510
|
-
|
|
19511
|
-
var _useState19 = React$1.useState(''),
|
|
19512
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
19513
|
-
height = _useState20[0],
|
|
19514
|
-
setHeight = _useState20[1];
|
|
19313
|
+
height = _useState18[0],
|
|
19314
|
+
setHeight = _useState18[1];
|
|
19515
19315
|
var sortTableRef = React$1.useRef(null);
|
|
19516
19316
|
var searchTableRef = React$1.useRef(null);
|
|
19517
19317
|
var exportTableRef = React$1.useRef(null);
|
|
@@ -20063,6 +19863,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
20063
19863
|
id: "bs-sula-query-table"
|
|
20064
19864
|
}, /*#__PURE__*/React__default['default'].createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
|
|
20065
19865
|
ref: sortTableRef,
|
|
19866
|
+
disableColumnFixed: (_props$tableProps = props.tableProps) === null || _props$tableProps === void 0 ? void 0 : _props$tableProps.isVirtualTable,
|
|
20066
19867
|
setShowColumns: setResizeShowColumns,
|
|
20067
19868
|
showColumn: showColumn,
|
|
20068
19869
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -20559,22 +20360,19 @@ function outLogin(_x) {
|
|
|
20559
20360
|
return _outLogin.apply(this, arguments);
|
|
20560
20361
|
}
|
|
20561
20362
|
function _outLogin() {
|
|
20562
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
20363
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20563
20364
|
var res;
|
|
20564
|
-
return
|
|
20565
|
-
while (1) switch (_context.
|
|
20365
|
+
return _regenerator().w(function (_context) {
|
|
20366
|
+
while (1) switch (_context.n) {
|
|
20566
20367
|
case 0:
|
|
20567
|
-
_context.
|
|
20368
|
+
_context.n = 1;
|
|
20568
20369
|
return requestUtil({
|
|
20569
20370
|
url: '/user/web/loginOut',
|
|
20570
20371
|
method: 'GET'
|
|
20571
20372
|
});
|
|
20572
|
-
case
|
|
20573
|
-
res = _context.
|
|
20574
|
-
return _context.
|
|
20575
|
-
case 4:
|
|
20576
|
-
case "end":
|
|
20577
|
-
return _context.stop();
|
|
20373
|
+
case 1:
|
|
20374
|
+
res = _context.v;
|
|
20375
|
+
return _context.a(2, res);
|
|
20578
20376
|
}
|
|
20579
20377
|
}, _callee);
|
|
20580
20378
|
}));
|
|
@@ -20701,20 +20499,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20701
20499
|
});
|
|
20702
20500
|
};
|
|
20703
20501
|
var loginOut = /*#__PURE__*/function () {
|
|
20704
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
20502
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
20705
20503
|
var sessionId;
|
|
20706
|
-
return
|
|
20707
|
-
while (1) switch (_context.
|
|
20504
|
+
return _regenerator().w(function (_context) {
|
|
20505
|
+
while (1) switch (_context.n) {
|
|
20708
20506
|
case 0:
|
|
20709
|
-
_context.
|
|
20507
|
+
_context.n = 1;
|
|
20710
20508
|
return getSessionId();
|
|
20711
|
-
case
|
|
20712
|
-
sessionId = _context.
|
|
20713
|
-
_context.
|
|
20509
|
+
case 1:
|
|
20510
|
+
sessionId = _context.v;
|
|
20511
|
+
_context.n = 2;
|
|
20714
20512
|
return outLogin({
|
|
20715
20513
|
sessionId: sessionId
|
|
20716
20514
|
});
|
|
20717
|
-
case
|
|
20515
|
+
case 2:
|
|
20718
20516
|
// @ts-ignore
|
|
20719
20517
|
if (BUILD_TYPE) {
|
|
20720
20518
|
antd.message.success('退出登录成功');
|
|
@@ -20724,9 +20522,8 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20724
20522
|
} else {
|
|
20725
20523
|
setLoginOutPath();
|
|
20726
20524
|
}
|
|
20727
|
-
case
|
|
20728
|
-
|
|
20729
|
-
return _context.stop();
|
|
20525
|
+
case 3:
|
|
20526
|
+
return _context.a(2);
|
|
20730
20527
|
}
|
|
20731
20528
|
}, _callee);
|
|
20732
20529
|
}));
|
|
@@ -20813,18 +20610,15 @@ function getStoreByName(_x) {
|
|
|
20813
20610
|
return _getStoreByName.apply(this, arguments);
|
|
20814
20611
|
}
|
|
20815
20612
|
function _getStoreByName() {
|
|
20816
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20817
|
-
return
|
|
20818
|
-
while (1) switch (_context.
|
|
20613
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20614
|
+
return _regenerator().w(function (_context) {
|
|
20615
|
+
while (1) switch (_context.n) {
|
|
20819
20616
|
case 0:
|
|
20820
|
-
return _context.
|
|
20617
|
+
return _context.a(2, requestUtil({
|
|
20821
20618
|
url: '/store-house/orgViewNode/listNoPage',
|
|
20822
20619
|
method: 'GET',
|
|
20823
20620
|
params: _objectSpread2({}, params)
|
|
20824
20621
|
}));
|
|
20825
|
-
case 1:
|
|
20826
|
-
case "end":
|
|
20827
|
-
return _context.stop();
|
|
20828
20622
|
}
|
|
20829
20623
|
}, _callee);
|
|
20830
20624
|
}));
|
|
@@ -20859,33 +20653,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20859
20653
|
openSelect = _useState8[0],
|
|
20860
20654
|
setOpenSelect = _useState8[1];
|
|
20861
20655
|
var _useState9 = React$1.useState([]),
|
|
20862
|
-
|
|
20863
|
-
options =
|
|
20864
|
-
setOptions =
|
|
20865
|
-
var
|
|
20656
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
20657
|
+
options = _useState0[0],
|
|
20658
|
+
setOptions = _useState0[1];
|
|
20659
|
+
var _useState1 = React$1.useState([]),
|
|
20660
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
20661
|
+
rescouse = _useState10[0],
|
|
20662
|
+
setRescouse = _useState10[1];
|
|
20663
|
+
var _useState11 = React$1.useState(''),
|
|
20866
20664
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
20867
|
-
|
|
20868
|
-
|
|
20869
|
-
var _useState13 = React$1.useState(
|
|
20870
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
20871
|
-
searchValue = _useState14[0],
|
|
20872
|
-
setSearchValue = _useState14[1];
|
|
20873
|
-
var _useState15 = React$1.useState([{
|
|
20665
|
+
searchValue = _useState12[0],
|
|
20666
|
+
setSearchValue = _useState12[1];
|
|
20667
|
+
var _useState13 = React$1.useState([{
|
|
20874
20668
|
label: name,
|
|
20875
20669
|
value: code
|
|
20876
20670
|
}]),
|
|
20877
|
-
|
|
20878
|
-
store =
|
|
20879
|
-
setStore =
|
|
20671
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
20672
|
+
store = _useState14[0],
|
|
20673
|
+
setStore = _useState14[1];
|
|
20880
20674
|
function fetchUserList(_x, _x2) {
|
|
20881
20675
|
return _fetchUserList.apply(this, arguments);
|
|
20882
20676
|
}
|
|
20883
20677
|
function _fetchUserList() {
|
|
20884
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
20885
|
-
return
|
|
20886
|
-
while (1) switch (_context3.
|
|
20678
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(storeName, init) {
|
|
20679
|
+
return _regenerator().w(function (_context3) {
|
|
20680
|
+
while (1) switch (_context3.n) {
|
|
20887
20681
|
case 0:
|
|
20888
|
-
return _context3.
|
|
20682
|
+
return _context3.a(2, getStoreByName({
|
|
20889
20683
|
orgName: storeName ? storeName : undefined,
|
|
20890
20684
|
platCompanyCode: init ? undefined : key,
|
|
20891
20685
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -20904,9 +20698,6 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20904
20698
|
};
|
|
20905
20699
|
});
|
|
20906
20700
|
}));
|
|
20907
|
-
case 1:
|
|
20908
|
-
case "end":
|
|
20909
|
-
return _context3.stop();
|
|
20910
20701
|
}
|
|
20911
20702
|
}, _callee3);
|
|
20912
20703
|
}));
|
|
@@ -20929,20 +20720,19 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20929
20720
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
20930
20721
|
}, [debounceTimeout, key]);
|
|
20931
20722
|
var changeInput = /*#__PURE__*/function () {
|
|
20932
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
20723
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
|
|
20933
20724
|
var res;
|
|
20934
|
-
return
|
|
20935
|
-
while (1) switch (_context.
|
|
20725
|
+
return _regenerator().w(function (_context) {
|
|
20726
|
+
while (1) switch (_context.n) {
|
|
20936
20727
|
case 0:
|
|
20937
|
-
_context.
|
|
20728
|
+
_context.n = 1;
|
|
20938
20729
|
return debounceFetcher(str);
|
|
20939
|
-
case
|
|
20940
|
-
res = _context.
|
|
20730
|
+
case 1:
|
|
20731
|
+
res = _context.v;
|
|
20941
20732
|
setOptions(res);
|
|
20942
20733
|
setRescouse(res);
|
|
20943
|
-
case
|
|
20944
|
-
|
|
20945
|
-
return _context.stop();
|
|
20734
|
+
case 2:
|
|
20735
|
+
return _context.a(2);
|
|
20946
20736
|
}
|
|
20947
20737
|
}, _callee);
|
|
20948
20738
|
}));
|
|
@@ -20951,15 +20741,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20951
20741
|
};
|
|
20952
20742
|
}();
|
|
20953
20743
|
React$1.useEffect(function () {
|
|
20954
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
20744
|
+
_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
20955
20745
|
var res;
|
|
20956
|
-
return
|
|
20957
|
-
while (1) switch (_context2.
|
|
20746
|
+
return _regenerator().w(function (_context2) {
|
|
20747
|
+
while (1) switch (_context2.n) {
|
|
20958
20748
|
case 0:
|
|
20959
|
-
_context2.
|
|
20749
|
+
_context2.n = 1;
|
|
20960
20750
|
return fetchUserList(undefined, true);
|
|
20961
|
-
case
|
|
20962
|
-
res = _context2.
|
|
20751
|
+
case 1:
|
|
20752
|
+
res = _context2.v;
|
|
20963
20753
|
res.map(function (item, indexNumber) {
|
|
20964
20754
|
if (item.label === name) {
|
|
20965
20755
|
setIndex(indexNumber);
|
|
@@ -20975,9 +20765,8 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20975
20765
|
});
|
|
20976
20766
|
setOptions(res);
|
|
20977
20767
|
setRescouse(res);
|
|
20978
|
-
case
|
|
20979
|
-
|
|
20980
|
-
return _context2.stop();
|
|
20768
|
+
case 2:
|
|
20769
|
+
return _context2.a(2);
|
|
20981
20770
|
}
|
|
20982
20771
|
}, _callee2);
|
|
20983
20772
|
}))();
|
|
@@ -22026,25 +21815,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
22026
21815
|
currentOneLevel = _useState8[0],
|
|
22027
21816
|
setCurrentOneLevel = _useState8[1];
|
|
22028
21817
|
var _useState9 = React$1.useState([]),
|
|
22029
|
-
|
|
22030
|
-
SearhData =
|
|
22031
|
-
setSearchMenuData =
|
|
22032
|
-
var
|
|
21818
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
21819
|
+
SearhData = _useState0[0],
|
|
21820
|
+
setSearchMenuData = _useState0[1];
|
|
21821
|
+
var _useState1 = React$1.useState(600),
|
|
21822
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
21823
|
+
rightMenuHeight = _useState10[0],
|
|
21824
|
+
setHeight = _useState10[1];
|
|
21825
|
+
var _useState11 = React$1.useState(900),
|
|
22033
21826
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
22034
|
-
|
|
22035
|
-
|
|
22036
|
-
var _useState13 = React$1.useState(
|
|
21827
|
+
drawHeight = _useState12[0],
|
|
21828
|
+
setDrawHeight = _useState12[1];
|
|
21829
|
+
var _useState13 = React$1.useState(false),
|
|
22037
21830
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
22038
|
-
|
|
22039
|
-
|
|
21831
|
+
moreBtnShow = _useState14[0],
|
|
21832
|
+
setMoreBtnShow = _useState14[1];
|
|
22040
21833
|
var _useState15 = React$1.useState(false),
|
|
22041
21834
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
22042
|
-
|
|
22043
|
-
|
|
22044
|
-
var _useState17 = React$1.useState(false),
|
|
22045
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
22046
|
-
showScroll = _useState18[0],
|
|
22047
|
-
setShowScroll = _useState18[1];
|
|
21835
|
+
showScroll = _useState16[0],
|
|
21836
|
+
setShowScroll = _useState16[1];
|
|
22048
21837
|
React$1.useEffect(function () {
|
|
22049
21838
|
var _originRoutes$find;
|
|
22050
21839
|
getMenuContentHeight();
|
|
@@ -23655,14 +23444,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23655
23444
|
},
|
|
23656
23445
|
menu: {
|
|
23657
23446
|
request: function () {
|
|
23658
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23659
|
-
return
|
|
23660
|
-
while (1) switch (_context.
|
|
23447
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
23448
|
+
return _regenerator().w(function (_context) {
|
|
23449
|
+
while (1) switch (_context.n) {
|
|
23661
23450
|
case 0:
|
|
23662
|
-
return _context.
|
|
23663
|
-
case 1:
|
|
23664
|
-
case "end":
|
|
23665
|
-
return _context.stop();
|
|
23451
|
+
return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
23666
23452
|
}
|
|
23667
23453
|
}, _callee);
|
|
23668
23454
|
}));
|
|
@@ -24067,31 +23853,31 @@ var index$6 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
24067
23853
|
multiTableData = _useState8[0],
|
|
24068
23854
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
24069
23855
|
var _useState9 = React$1.useState(10),
|
|
24070
|
-
|
|
24071
|
-
viewCount =
|
|
24072
|
-
setViewCount =
|
|
23856
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
23857
|
+
viewCount = _useState0[0],
|
|
23858
|
+
setViewCount = _useState0[1]; //虚拟表格每次渲染数量
|
|
24073
23859
|
var itemWidth = 100; // 表格每一项宽度
|
|
24074
|
-
var
|
|
24075
|
-
|
|
24076
|
-
realColHeaderWidth =
|
|
24077
|
-
setLeftWidth =
|
|
23860
|
+
var _useState1 = React$1.useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
|
|
23861
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
23862
|
+
realColHeaderWidth = _useState10[0],
|
|
23863
|
+
setLeftWidth = _useState10[1];
|
|
24078
23864
|
var viewPort = React$1.useRef(null);
|
|
24079
23865
|
var topScrollBar = React$1.useRef(null);
|
|
24080
23866
|
var leftTableRef = React$1.useRef(null);
|
|
24081
23867
|
//起始渲染item
|
|
24082
|
-
var
|
|
24083
|
-
|
|
24084
|
-
startIndex =
|
|
24085
|
-
setStartIndex =
|
|
23868
|
+
var _useState11 = React$1.useState(0),
|
|
23869
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
23870
|
+
startIndex = _useState12[0],
|
|
23871
|
+
setStartIndex = _useState12[1];
|
|
24086
23872
|
//结束渲染item
|
|
24087
23873
|
var endIndex = React$1.useMemo(function () {
|
|
24088
23874
|
return startIndex + viewCount;
|
|
24089
23875
|
}, [startIndex, viewCount]);
|
|
24090
23876
|
//表格偏移量
|
|
24091
|
-
var
|
|
24092
|
-
|
|
24093
|
-
offsetWidth =
|
|
24094
|
-
setOffset =
|
|
23877
|
+
var _useState13 = React$1.useState(0),
|
|
23878
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
23879
|
+
offsetWidth = _useState14[0],
|
|
23880
|
+
setOffset = _useState14[1];
|
|
24095
23881
|
React$1.useEffect(function () {
|
|
24096
23882
|
setTimeout(function () {
|
|
24097
23883
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -31395,11 +31181,11 @@ var valueType = {
|
|
|
31395
31181
|
};
|
|
31396
31182
|
|
|
31397
31183
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
31398
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
31399
|
-
return
|
|
31400
|
-
while (1) switch (_context.
|
|
31184
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(dictionaryCode) {
|
|
31185
|
+
return _regenerator().w(function (_context) {
|
|
31186
|
+
while (1) switch (_context.n) {
|
|
31401
31187
|
case 0:
|
|
31402
|
-
_context.
|
|
31188
|
+
_context.n = 1;
|
|
31403
31189
|
return bssula.request({
|
|
31404
31190
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
31405
31191
|
converter: function converter(_ref2) {
|
|
@@ -31412,11 +31198,8 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
31412
31198
|
});
|
|
31413
31199
|
}
|
|
31414
31200
|
});
|
|
31415
|
-
case
|
|
31416
|
-
return _context.
|
|
31417
|
-
case 3:
|
|
31418
|
-
case "end":
|
|
31419
|
-
return _context.stop();
|
|
31201
|
+
case 1:
|
|
31202
|
+
return _context.a(2, _context.v);
|
|
31420
31203
|
}
|
|
31421
31204
|
}, _callee);
|
|
31422
31205
|
}));
|
|
@@ -31463,12 +31246,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31463
31246
|
value: false
|
|
31464
31247
|
}];
|
|
31465
31248
|
var ref = React$1.useRef();
|
|
31466
|
-
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
31467
|
-
var _ref$current, source;
|
|
31468
|
-
return
|
|
31469
|
-
while (1) switch (_context.
|
|
31249
|
+
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
31250
|
+
var _ref$current, source, _t, _t2;
|
|
31251
|
+
return _regenerator().w(function (_context) {
|
|
31252
|
+
while (1) switch (_context.n) {
|
|
31470
31253
|
case 0:
|
|
31471
|
-
_context.
|
|
31254
|
+
_context.n = 1;
|
|
31472
31255
|
return setIsShowAndType(function (prev) {
|
|
31473
31256
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
31474
31257
|
return {
|
|
@@ -31479,40 +31262,39 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31479
31262
|
}
|
|
31480
31263
|
return prev;
|
|
31481
31264
|
});
|
|
31482
|
-
case
|
|
31265
|
+
case 1:
|
|
31483
31266
|
if (!record.dictionaryCode) {
|
|
31484
|
-
_context.
|
|
31267
|
+
_context.n = 7;
|
|
31485
31268
|
break;
|
|
31486
31269
|
}
|
|
31487
31270
|
if (!(record.choiceType == 20)) {
|
|
31488
|
-
_context.
|
|
31271
|
+
_context.n = 2;
|
|
31489
31272
|
break;
|
|
31490
31273
|
}
|
|
31491
|
-
|
|
31492
|
-
_context.
|
|
31274
|
+
_t = getDictionarySource(record.dictionaryCode);
|
|
31275
|
+
_context.n = 6;
|
|
31493
31276
|
break;
|
|
31494
|
-
case
|
|
31277
|
+
case 2:
|
|
31495
31278
|
if (!(record.choiceType == 30)) {
|
|
31496
|
-
_context.
|
|
31279
|
+
_context.n = 4;
|
|
31497
31280
|
break;
|
|
31498
31281
|
}
|
|
31499
|
-
_context.
|
|
31282
|
+
_context.n = 3;
|
|
31500
31283
|
return getDynamicDict(record.dictionaryCode);
|
|
31501
|
-
case
|
|
31502
|
-
|
|
31503
|
-
_context.
|
|
31284
|
+
case 3:
|
|
31285
|
+
_t2 = _context.v;
|
|
31286
|
+
_context.n = 5;
|
|
31504
31287
|
break;
|
|
31505
|
-
case
|
|
31506
|
-
|
|
31507
|
-
case
|
|
31508
|
-
|
|
31509
|
-
case
|
|
31510
|
-
source =
|
|
31288
|
+
case 4:
|
|
31289
|
+
_t2 = [];
|
|
31290
|
+
case 5:
|
|
31291
|
+
_t = _t2;
|
|
31292
|
+
case 6:
|
|
31293
|
+
source = _t;
|
|
31511
31294
|
// @ts-ignore
|
|
31512
31295
|
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
31513
|
-
case
|
|
31514
|
-
|
|
31515
|
-
return _context.stop();
|
|
31296
|
+
case 7:
|
|
31297
|
+
return _context.a(2);
|
|
31516
31298
|
}
|
|
31517
31299
|
}, _callee);
|
|
31518
31300
|
})));
|
|
@@ -31577,10 +31359,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31577
31359
|
source: {
|
|
31578
31360
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
31579
31361
|
type: function () {
|
|
31580
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
31362
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
|
|
31581
31363
|
var form, values, name, relates, source;
|
|
31582
|
-
return
|
|
31583
|
-
while (1) switch (_context2.
|
|
31364
|
+
return _regenerator().w(function (_context2) {
|
|
31365
|
+
while (1) switch (_context2.n) {
|
|
31584
31366
|
case 0:
|
|
31585
31367
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
31586
31368
|
if (values[0]) {
|
|
@@ -31589,19 +31371,18 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31589
31371
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
31590
31372
|
}
|
|
31591
31373
|
if (!values[1]) {
|
|
31592
|
-
_context2.
|
|
31374
|
+
_context2.n = 2;
|
|
31593
31375
|
break;
|
|
31594
31376
|
}
|
|
31595
|
-
_context2.
|
|
31377
|
+
_context2.n = 1;
|
|
31596
31378
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
31597
|
-
case
|
|
31598
|
-
source = _context2.
|
|
31379
|
+
case 1:
|
|
31380
|
+
source = _context2.v;
|
|
31599
31381
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
31600
31382
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
31601
31383
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
31602
|
-
case
|
|
31603
|
-
|
|
31604
|
-
return _context2.stop();
|
|
31384
|
+
case 2:
|
|
31385
|
+
return _context2.a(2);
|
|
31605
31386
|
}
|
|
31606
31387
|
}, _callee2);
|
|
31607
31388
|
}));
|
|
@@ -32057,25 +31838,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32057
31838
|
source: {
|
|
32058
31839
|
relates: ['choiceType', 'inputType'],
|
|
32059
31840
|
type: function () {
|
|
32060
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
31841
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
|
|
32061
31842
|
var values, name, form, source;
|
|
32062
|
-
return
|
|
32063
|
-
while (1) switch (_context3.
|
|
31843
|
+
return _regenerator().w(function (_context3) {
|
|
31844
|
+
while (1) switch (_context3.n) {
|
|
32064
31845
|
case 0:
|
|
32065
|
-
values =
|
|
31846
|
+
values = _ref0.values, name = _ref0.name, form = _ref0.form;
|
|
32066
31847
|
if (values[1] === 40) {
|
|
32067
31848
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
32068
31849
|
form.setFieldVisible(name, false);
|
|
32069
31850
|
}
|
|
32070
31851
|
if (!(values[0] === 30)) {
|
|
32071
|
-
_context3.
|
|
31852
|
+
_context3.n = 2;
|
|
32072
31853
|
break;
|
|
32073
31854
|
}
|
|
32074
|
-
_context3.
|
|
31855
|
+
_context3.n = 1;
|
|
32075
31856
|
return bssula.request({
|
|
32076
31857
|
url: '/basic/dictDynamicItem/queryList',
|
|
32077
|
-
converter: function converter(
|
|
32078
|
-
var data =
|
|
31858
|
+
converter: function converter(_ref1) {
|
|
31859
|
+
var data = _ref1.data;
|
|
32079
31860
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32080
31861
|
return {
|
|
32081
31862
|
text: d.dictCode,
|
|
@@ -32084,17 +31865,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32084
31865
|
});
|
|
32085
31866
|
}
|
|
32086
31867
|
});
|
|
32087
|
-
case
|
|
32088
|
-
source = _context3.
|
|
31868
|
+
case 1:
|
|
31869
|
+
source = _context3.v;
|
|
32089
31870
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
32090
31871
|
form.setFieldVisible(name, true);
|
|
32091
|
-
_context3.
|
|
31872
|
+
_context3.n = 3;
|
|
32092
31873
|
break;
|
|
32093
|
-
case
|
|
31874
|
+
case 2:
|
|
32094
31875
|
form.setFieldVisible(name, false);
|
|
32095
|
-
case
|
|
32096
|
-
|
|
32097
|
-
return _context3.stop();
|
|
31876
|
+
case 3:
|
|
31877
|
+
return _context3.a(2);
|
|
32098
31878
|
}
|
|
32099
31879
|
}, _callee3);
|
|
32100
31880
|
}));
|
|
@@ -32109,8 +31889,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32109
31889
|
name: 'enumeration',
|
|
32110
31890
|
label: '维护自定义选项',
|
|
32111
31891
|
field: {
|
|
32112
|
-
type: function type(
|
|
32113
|
-
var form =
|
|
31892
|
+
type: function type(_ref10) {
|
|
31893
|
+
var form = _ref10.form;
|
|
32114
31894
|
return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
32115
31895
|
type: 'link',
|
|
32116
31896
|
onClick: function onClick() {
|
|
@@ -32136,10 +31916,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32136
31916
|
dependency: {
|
|
32137
31917
|
source: {
|
|
32138
31918
|
relates: ['choiceType'],
|
|
32139
|
-
type: function type(
|
|
32140
|
-
var values =
|
|
32141
|
-
name =
|
|
32142
|
-
form =
|
|
31919
|
+
type: function type(_ref11) {
|
|
31920
|
+
var values = _ref11.values,
|
|
31921
|
+
name = _ref11.name,
|
|
31922
|
+
form = _ref11.form;
|
|
32143
31923
|
if (values[0] === 10) {
|
|
32144
31924
|
form.setFieldVisible(name, true);
|
|
32145
31925
|
} else {
|
|
@@ -32155,10 +31935,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32155
31935
|
dependency: {
|
|
32156
31936
|
visible: {
|
|
32157
31937
|
relates: ['choiceType'],
|
|
32158
|
-
type: function type(
|
|
32159
|
-
var name =
|
|
32160
|
-
values =
|
|
32161
|
-
form =
|
|
31938
|
+
type: function type(_ref12) {
|
|
31939
|
+
var name = _ref12.name,
|
|
31940
|
+
values = _ref12.values,
|
|
31941
|
+
form = _ref12.form;
|
|
32162
31942
|
if (values[0] == 330) {
|
|
32163
31943
|
form.setFieldVisible(name, true);
|
|
32164
31944
|
} else {
|
|
@@ -32182,8 +31962,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32182
31962
|
params: {
|
|
32183
31963
|
'qp-businessType-eq': record.businessType
|
|
32184
31964
|
},
|
|
32185
|
-
converter: function converter(
|
|
32186
|
-
var data =
|
|
31965
|
+
converter: function converter(_ref13) {
|
|
31966
|
+
var data = _ref13.data;
|
|
32187
31967
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32188
31968
|
return {
|
|
32189
31969
|
text: d.name,
|
|
@@ -32223,8 +32003,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32223
32003
|
'qp-businessType-eq': record.businessType,
|
|
32224
32004
|
'qp-status-eq': 1
|
|
32225
32005
|
},
|
|
32226
|
-
converter: function converter(
|
|
32227
|
-
var data =
|
|
32006
|
+
converter: function converter(_ref14) {
|
|
32007
|
+
var data = _ref14.data;
|
|
32228
32008
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32229
32009
|
var _d$code;
|
|
32230
32010
|
return {
|
|
@@ -32252,8 +32032,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32252
32032
|
remoteSource: {
|
|
32253
32033
|
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),
|
|
32254
32034
|
method: 'get',
|
|
32255
|
-
converter: function converter(
|
|
32256
|
-
var data =
|
|
32035
|
+
converter: function converter(_ref15) {
|
|
32036
|
+
var data = _ref15.data;
|
|
32257
32037
|
if (lineDetail.moduleType == 1) {
|
|
32258
32038
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32259
32039
|
return {
|
|
@@ -32279,16 +32059,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32279
32059
|
width: 900,
|
|
32280
32060
|
maskClosable: false,
|
|
32281
32061
|
onOk: function () {
|
|
32282
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
32062
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
32283
32063
|
var _ref$current4, _res$editableStatus;
|
|
32284
32064
|
var res, _res$defaultValue;
|
|
32285
|
-
return
|
|
32286
|
-
while (1) switch (_context4.
|
|
32065
|
+
return _regenerator().w(function (_context4) {
|
|
32066
|
+
while (1) switch (_context4.n) {
|
|
32287
32067
|
case 0:
|
|
32288
|
-
_context4.
|
|
32068
|
+
_context4.n = 1;
|
|
32289
32069
|
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
32290
|
-
case
|
|
32291
|
-
res = _context4.
|
|
32070
|
+
case 1:
|
|
32071
|
+
res = _context4.v;
|
|
32292
32072
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
32293
32073
|
res.fieldGroup = record.fieldGroup;
|
|
32294
32074
|
res.businessType = record.businessType;
|
|
@@ -32315,7 +32095,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32315
32095
|
delete res.formula;
|
|
32316
32096
|
delete res.showValue;
|
|
32317
32097
|
if (!(mode === 'create')) {
|
|
32318
|
-
_context4.
|
|
32098
|
+
_context4.n = 2;
|
|
32319
32099
|
break;
|
|
32320
32100
|
}
|
|
32321
32101
|
bssula.request({
|
|
@@ -32327,8 +32107,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32327
32107
|
onParentOk();
|
|
32328
32108
|
}
|
|
32329
32109
|
});
|
|
32330
|
-
return _context4.
|
|
32331
|
-
case
|
|
32110
|
+
return _context4.a(2);
|
|
32111
|
+
case 2:
|
|
32332
32112
|
bssula.request({
|
|
32333
32113
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
32334
32114
|
method: 'PATCH',
|
|
@@ -32338,9 +32118,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32338
32118
|
onParentOk();
|
|
32339
32119
|
}
|
|
32340
32120
|
});
|
|
32341
|
-
case
|
|
32342
|
-
|
|
32343
|
-
return _context4.stop();
|
|
32121
|
+
case 3:
|
|
32122
|
+
return _context4.a(2);
|
|
32344
32123
|
}
|
|
32345
32124
|
}, _callee4);
|
|
32346
32125
|
}));
|
|
@@ -32796,21 +32575,21 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
32796
32575
|
jsonEditorVal = _useState8[0],
|
|
32797
32576
|
setJsonEditorVal = _useState8[1];
|
|
32798
32577
|
var _useState9 = React$1.useState({}),
|
|
32799
|
-
|
|
32800
|
-
moduleParams =
|
|
32801
|
-
setModuleParams =
|
|
32802
|
-
var
|
|
32578
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
32579
|
+
moduleParams = _useState0[0],
|
|
32580
|
+
setModuleParams = _useState0[1];
|
|
32581
|
+
var _useState1 = React$1.useState('main'),
|
|
32582
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
32583
|
+
activeKey = _useState10[0],
|
|
32584
|
+
setActiveKey = _useState10[1]; //默认详情页配置
|
|
32585
|
+
var _useState11 = React$1.useState({}),
|
|
32803
32586
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32804
|
-
|
|
32805
|
-
|
|
32806
|
-
var _useState13 = React$1.useState(
|
|
32587
|
+
tablesConfigParams = _useState12[0],
|
|
32588
|
+
setTablesConfigParams = _useState12[1];
|
|
32589
|
+
var _useState13 = React$1.useState([]),
|
|
32807
32590
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32808
|
-
|
|
32809
|
-
|
|
32810
|
-
var _useState15 = React$1.useState([]),
|
|
32811
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
32812
|
-
tableJsonEditorValsArr = _useState16[0],
|
|
32813
|
-
setTableJsonEditorValsArr = _useState16[1];
|
|
32591
|
+
tableJsonEditorValsArr = _useState14[0],
|
|
32592
|
+
setTableJsonEditorValsArr = _useState14[1];
|
|
32814
32593
|
React$1.useEffect(function () {
|
|
32815
32594
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32816
32595
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -33186,11 +32965,11 @@ function getMetaData(_x) {
|
|
|
33186
32965
|
|
|
33187
32966
|
// 获取数据
|
|
33188
32967
|
function _getMetaData() {
|
|
33189
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
33190
|
-
return
|
|
33191
|
-
while (1) switch (_context.
|
|
32968
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id) {
|
|
32969
|
+
return _regenerator().w(function (_context) {
|
|
32970
|
+
while (1) switch (_context.n) {
|
|
33192
32971
|
case 0:
|
|
33193
|
-
return _context.
|
|
32972
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
33194
32973
|
umi.request('/basic/entityProperty/listNoPage', {
|
|
33195
32974
|
params: {
|
|
33196
32975
|
'qp-entityId-eq': id
|
|
@@ -33202,9 +32981,6 @@ function _getMetaData() {
|
|
|
33202
32981
|
reject([]);
|
|
33203
32982
|
});
|
|
33204
32983
|
}));
|
|
33205
|
-
case 1:
|
|
33206
|
-
case "end":
|
|
33207
|
-
return _context.stop();
|
|
33208
32984
|
}
|
|
33209
32985
|
}, _callee);
|
|
33210
32986
|
}));
|
|
@@ -33408,11 +33184,11 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33408
33184
|
tableState = _useState4[0],
|
|
33409
33185
|
setTableState = _useState4[1];
|
|
33410
33186
|
var handleOpen = /*#__PURE__*/function () {
|
|
33411
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33187
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33412
33188
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
33413
33189
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
33414
|
-
return
|
|
33415
|
-
while (1) switch (_context.
|
|
33190
|
+
return _regenerator().w(function (_context) {
|
|
33191
|
+
while (1) switch (_context.n) {
|
|
33416
33192
|
case 0:
|
|
33417
33193
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
33418
33194
|
isSearchForm: props.isSearchForm,
|
|
@@ -33420,16 +33196,16 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33420
33196
|
searchFormData: searchFormData
|
|
33421
33197
|
});
|
|
33422
33198
|
if (requestConfigNew) {
|
|
33423
|
-
_context.
|
|
33199
|
+
_context.n = 1;
|
|
33424
33200
|
break;
|
|
33425
33201
|
}
|
|
33426
|
-
return _context.
|
|
33427
|
-
case
|
|
33202
|
+
return _context.a(2);
|
|
33203
|
+
case 1:
|
|
33428
33204
|
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;
|
|
33429
|
-
_context.
|
|
33205
|
+
_context.n = 2;
|
|
33430
33206
|
return getMetaData(metaDataId);
|
|
33431
|
-
case
|
|
33432
|
-
metaData = _context.
|
|
33207
|
+
case 2:
|
|
33208
|
+
metaData = _context.v;
|
|
33433
33209
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
33434
33210
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
33435
33211
|
})) || [];
|
|
@@ -33469,9 +33245,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33469
33245
|
// @ts-ignore
|
|
33470
33246
|
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);
|
|
33471
33247
|
}
|
|
33472
|
-
case
|
|
33473
|
-
|
|
33474
|
-
return _context.stop();
|
|
33248
|
+
case 3:
|
|
33249
|
+
return _context.a(2);
|
|
33475
33250
|
}
|
|
33476
33251
|
}, _callee);
|
|
33477
33252
|
}));
|
|
@@ -33574,7 +33349,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33574
33349
|
}, [requestConfig, tableState.columns]);
|
|
33575
33350
|
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';
|
|
33576
33351
|
var handleOk = function handleOk(rowData) {
|
|
33577
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
33352
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
|
|
33578
33353
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
33579
33354
|
//多选数据处理
|
|
33580
33355
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -33585,9 +33360,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33585
33360
|
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()) || [];
|
|
33586
33361
|
var realSelectedRows = selectedRows;
|
|
33587
33362
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
33588
|
-
var _queryTableRef$
|
|
33363
|
+
var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
|
|
33589
33364
|
// @ts-ignore
|
|
33590
|
-
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33365
|
+
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()) || [];
|
|
33591
33366
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
33592
33367
|
return selectedKesys.includes(s[rowKey]);
|
|
33593
33368
|
});
|
|
@@ -33620,10 +33395,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33620
33395
|
});
|
|
33621
33396
|
}
|
|
33622
33397
|
mappings.map(function (item) {
|
|
33623
|
-
var _props$
|
|
33624
|
-
if (((_props$
|
|
33625
|
-
var _props$
|
|
33626
|
-
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$
|
|
33398
|
+
var _props$customSelector0, _props$customSelector1, _props$customSelector10, _props$customSelector11;
|
|
33399
|
+
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]) {
|
|
33400
|
+
var _props$customSelector12, _props$customSelector13;
|
|
33401
|
+
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];
|
|
33627
33402
|
}
|
|
33628
33403
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
33629
33404
|
});
|
|
@@ -33678,10 +33453,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33678
33453
|
}
|
|
33679
33454
|
props.onCancel();
|
|
33680
33455
|
//@ts-ignore
|
|
33681
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33456
|
+
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();
|
|
33682
33457
|
};
|
|
33683
33458
|
var config = React$1.useMemo(function () {
|
|
33684
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
33459
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
|
|
33685
33460
|
var returnConfig = {
|
|
33686
33461
|
size: 'small',
|
|
33687
33462
|
needPageHeader: false,
|
|
@@ -33690,7 +33465,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33690
33465
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33691
33466
|
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) {
|
|
33692
33467
|
return v.key || v;
|
|
33693
|
-
})) || (props === null || props === void 0 ? void 0 : (_props$
|
|
33468
|
+
})) || (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))
|
|
33694
33469
|
} : false,
|
|
33695
33470
|
remoteDataSource: remoteDataSource,
|
|
33696
33471
|
fields: tableState.fields,
|
|
@@ -33698,8 +33473,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33698
33473
|
rowKey: rowKey,
|
|
33699
33474
|
tableProps: !isView && {
|
|
33700
33475
|
rowClassName: function rowClassName(record) {
|
|
33701
|
-
var _props$
|
|
33702
|
-
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$
|
|
33476
|
+
var _props$ctx1, _props$value3, _props$ctx10, _props$ctx10$form;
|
|
33477
|
+
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' : '';
|
|
33703
33478
|
},
|
|
33704
33479
|
onRow: function onRow(record) {
|
|
33705
33480
|
return {
|
|
@@ -33744,10 +33519,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33744
33519
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
33745
33520
|
type: "default",
|
|
33746
33521
|
onClick: function onClick() {
|
|
33747
|
-
var _queryTableRef$
|
|
33522
|
+
var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
|
|
33748
33523
|
props.onCancel();
|
|
33749
33524
|
//@ts-ignore
|
|
33750
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33525
|
+
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();
|
|
33751
33526
|
}
|
|
33752
33527
|
}, "\u53D6\u6D88"))));
|
|
33753
33528
|
});
|
|
@@ -33971,19 +33746,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33971
33746
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33972
33747
|
handSource = _useState2[0],
|
|
33973
33748
|
setHandSource = _useState2[1];
|
|
33974
|
-
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
33749
|
+
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33975
33750
|
var resData, data;
|
|
33976
|
-
return
|
|
33977
|
-
while (1) switch (_context.
|
|
33751
|
+
return _regenerator().w(function (_context) {
|
|
33752
|
+
while (1) switch (_context.n) {
|
|
33978
33753
|
case 0:
|
|
33979
33754
|
if (!(!source && initRequestSource)) {
|
|
33980
|
-
_context.
|
|
33755
|
+
_context.n = 2;
|
|
33981
33756
|
break;
|
|
33982
33757
|
}
|
|
33983
|
-
_context.
|
|
33758
|
+
_context.n = 1;
|
|
33984
33759
|
return initRequestSource();
|
|
33985
|
-
case
|
|
33986
|
-
resData = _context.
|
|
33760
|
+
case 1:
|
|
33761
|
+
resData = _context.v;
|
|
33987
33762
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
33988
33763
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
33989
33764
|
label: item.text,
|
|
@@ -33991,9 +33766,8 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33991
33766
|
});
|
|
33992
33767
|
})) || [];
|
|
33993
33768
|
setHandSource(data);
|
|
33994
|
-
case
|
|
33995
|
-
|
|
33996
|
-
return _context.stop();
|
|
33769
|
+
case 2:
|
|
33770
|
+
return _context.a(2);
|
|
33997
33771
|
}
|
|
33998
33772
|
}, _callee);
|
|
33999
33773
|
})), []);
|
|
@@ -34123,20 +33897,17 @@ function getRegularThresholdRange(_x) {
|
|
|
34123
33897
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
34124
33898
|
}
|
|
34125
33899
|
function _getRegularThresholdRange() {
|
|
34126
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
34127
|
-
return
|
|
34128
|
-
while (1) switch (_context.
|
|
33900
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
33901
|
+
return _regenerator().w(function (_context) {
|
|
33902
|
+
while (1) switch (_context.n) {
|
|
34129
33903
|
case 0:
|
|
34130
|
-
return _context.
|
|
33904
|
+
return _context.a(2, requestUtil({
|
|
34131
33905
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
34132
33906
|
method: 'POST',
|
|
34133
33907
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
34134
33908
|
queryIdentify: undefined
|
|
34135
33909
|
})
|
|
34136
33910
|
}));
|
|
34137
|
-
case 1:
|
|
34138
|
-
case "end":
|
|
34139
|
-
return _context.stop();
|
|
34140
33911
|
}
|
|
34141
33912
|
}, _callee);
|
|
34142
33913
|
}));
|
|
@@ -34277,24 +34048,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34277
34048
|
};
|
|
34278
34049
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
34279
34050
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
34280
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
34051
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
34281
34052
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
34282
|
-
return
|
|
34283
|
-
while (1) switch (_context.
|
|
34053
|
+
return _regenerator().w(function (_context) {
|
|
34054
|
+
while (1) switch (_context.n) {
|
|
34284
34055
|
case 0:
|
|
34285
34056
|
if (queryIdentify) {
|
|
34286
|
-
_context.
|
|
34057
|
+
_context.n = 1;
|
|
34287
34058
|
break;
|
|
34288
34059
|
}
|
|
34289
|
-
return _context.
|
|
34290
|
-
case
|
|
34060
|
+
return _context.a(2);
|
|
34061
|
+
case 1:
|
|
34291
34062
|
thresholdQuery = _this.state.thresholdQuery;
|
|
34292
34063
|
extraRequestUrl = '';
|
|
34293
34064
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
34294
34065
|
if (!queryIdentityInfo.find(function (item) {
|
|
34295
34066
|
return item.identity == propertyCode;
|
|
34296
34067
|
})) {
|
|
34297
|
-
_context.
|
|
34068
|
+
_context.n = 3;
|
|
34298
34069
|
break;
|
|
34299
34070
|
}
|
|
34300
34071
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -34308,15 +34079,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34308
34079
|
if (!needQueryList.some(function (item) {
|
|
34309
34080
|
return !querParams[item] || !querParams[item].length;
|
|
34310
34081
|
})) {
|
|
34311
|
-
_context.
|
|
34082
|
+
_context.n = 2;
|
|
34312
34083
|
break;
|
|
34313
34084
|
}
|
|
34314
|
-
return _context.
|
|
34315
|
-
case
|
|
34085
|
+
return _context.a(2);
|
|
34086
|
+
case 2:
|
|
34316
34087
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
34317
34088
|
return item.identity == propertyCode;
|
|
34318
34089
|
}).requestUrl || '';
|
|
34319
|
-
case
|
|
34090
|
+
case 3:
|
|
34320
34091
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
34321
34092
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
34322
34093
|
querParams = {
|
|
@@ -34327,7 +34098,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34327
34098
|
// querParams = { dictCode: queryIdentify }
|
|
34328
34099
|
}
|
|
34329
34100
|
if (!extraRequestUrl) {
|
|
34330
|
-
_context.
|
|
34101
|
+
_context.n = 4;
|
|
34331
34102
|
break;
|
|
34332
34103
|
}
|
|
34333
34104
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -34366,43 +34137,42 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34366
34137
|
return handleData;
|
|
34367
34138
|
}
|
|
34368
34139
|
});
|
|
34369
|
-
_context.
|
|
34140
|
+
_context.n = 8;
|
|
34370
34141
|
break;
|
|
34371
|
-
case
|
|
34142
|
+
case 4:
|
|
34372
34143
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
34373
|
-
_context.
|
|
34144
|
+
_context.n = 5;
|
|
34374
34145
|
break;
|
|
34375
34146
|
}
|
|
34376
34147
|
_this.setState({
|
|
34377
34148
|
thresholdList: queryIdentify
|
|
34378
34149
|
});
|
|
34379
|
-
_context.
|
|
34150
|
+
_context.n = 8;
|
|
34380
34151
|
break;
|
|
34381
|
-
case
|
|
34152
|
+
case 5:
|
|
34382
34153
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
34383
|
-
_context.
|
|
34154
|
+
_context.n = 6;
|
|
34384
34155
|
break;
|
|
34385
34156
|
}
|
|
34386
34157
|
// TODO待处理
|
|
34387
34158
|
_this.setState({
|
|
34388
34159
|
thresholdList: []
|
|
34389
34160
|
});
|
|
34390
|
-
_context.
|
|
34161
|
+
_context.n = 8;
|
|
34391
34162
|
break;
|
|
34392
|
-
case
|
|
34163
|
+
case 6:
|
|
34393
34164
|
querParams.queryIdentify = queryIdentify;
|
|
34394
|
-
_context.
|
|
34165
|
+
_context.n = 7;
|
|
34395
34166
|
return getRegularThresholdRange(querParams);
|
|
34396
|
-
case
|
|
34397
|
-
res = _context.
|
|
34167
|
+
case 7:
|
|
34168
|
+
res = _context.v;
|
|
34398
34169
|
if (handleError(res)) {
|
|
34399
34170
|
_this.setState({
|
|
34400
34171
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
34401
34172
|
});
|
|
34402
34173
|
}
|
|
34403
|
-
case
|
|
34404
|
-
|
|
34405
|
-
return _context.stop();
|
|
34174
|
+
case 8:
|
|
34175
|
+
return _context.a(2);
|
|
34406
34176
|
}
|
|
34407
34177
|
}, _callee);
|
|
34408
34178
|
}));
|
|
@@ -35234,11 +35004,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35234
35004
|
isAll: true,
|
|
35235
35005
|
needNameAndCode: true,
|
|
35236
35006
|
notChangeOnSelect: true,
|
|
35237
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35238
|
-
return
|
|
35239
|
-
while (1) switch (_context2.
|
|
35007
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
35008
|
+
return _regenerator().w(function (_context2) {
|
|
35009
|
+
while (1) switch (_context2.n) {
|
|
35240
35010
|
case 0:
|
|
35241
|
-
_context2.
|
|
35011
|
+
_context2.n = 1;
|
|
35242
35012
|
return bssula.request({
|
|
35243
35013
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35244
35014
|
method: 'get',
|
|
@@ -35255,11 +35025,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35255
35025
|
return handleData;
|
|
35256
35026
|
}
|
|
35257
35027
|
});
|
|
35258
|
-
case
|
|
35259
|
-
return _context2.
|
|
35260
|
-
case 3:
|
|
35261
|
-
case "end":
|
|
35262
|
-
return _context2.stop();
|
|
35028
|
+
case 1:
|
|
35029
|
+
return _context2.a(2, _context2.v);
|
|
35263
35030
|
}
|
|
35264
35031
|
}, _callee2);
|
|
35265
35032
|
})),
|
|
@@ -35283,11 +35050,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35283
35050
|
isAll: true,
|
|
35284
35051
|
needNameAndCode: true,
|
|
35285
35052
|
notChangeOnSelect: true,
|
|
35286
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35287
|
-
return
|
|
35288
|
-
while (1) switch (_context3.
|
|
35053
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
35054
|
+
return _regenerator().w(function (_context3) {
|
|
35055
|
+
while (1) switch (_context3.n) {
|
|
35289
35056
|
case 0:
|
|
35290
|
-
_context3.
|
|
35057
|
+
_context3.n = 1;
|
|
35291
35058
|
return bssula.request({
|
|
35292
35059
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35293
35060
|
method: 'get',
|
|
@@ -35304,11 +35071,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35304
35071
|
return handleData;
|
|
35305
35072
|
}
|
|
35306
35073
|
});
|
|
35307
|
-
case
|
|
35308
|
-
return _context3.
|
|
35309
|
-
case 3:
|
|
35310
|
-
case "end":
|
|
35311
|
-
return _context3.stop();
|
|
35074
|
+
case 1:
|
|
35075
|
+
return _context3.a(2, _context3.v);
|
|
35312
35076
|
}
|
|
35313
35077
|
}, _callee3);
|
|
35314
35078
|
})),
|
|
@@ -35334,11 +35098,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35334
35098
|
isAll: true,
|
|
35335
35099
|
needNameAndCode: true,
|
|
35336
35100
|
notChangeOnSelect: true,
|
|
35337
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35338
|
-
return
|
|
35339
|
-
while (1) switch (_context4.
|
|
35101
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
35102
|
+
return _regenerator().w(function (_context4) {
|
|
35103
|
+
while (1) switch (_context4.n) {
|
|
35340
35104
|
case 0:
|
|
35341
|
-
_context4.
|
|
35105
|
+
_context4.n = 1;
|
|
35342
35106
|
return bssula.request({
|
|
35343
35107
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35344
35108
|
method: 'get',
|
|
@@ -35355,11 +35119,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35355
35119
|
return handleData;
|
|
35356
35120
|
}
|
|
35357
35121
|
});
|
|
35358
|
-
case
|
|
35359
|
-
return _context4.
|
|
35360
|
-
case 3:
|
|
35361
|
-
case "end":
|
|
35362
|
-
return _context4.stop();
|
|
35122
|
+
case 1:
|
|
35123
|
+
return _context4.a(2, _context4.v);
|
|
35363
35124
|
}
|
|
35364
35125
|
}, _callee4);
|
|
35365
35126
|
})),
|
|
@@ -36046,8 +35807,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36046
35807
|
}
|
|
36047
35808
|
}));
|
|
36048
35809
|
} else {
|
|
36049
|
-
var
|
|
36050
|
-
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((
|
|
35810
|
+
var _values0;
|
|
35811
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
|
|
36051
35812
|
return {
|
|
36052
35813
|
key: s,
|
|
36053
35814
|
label: valueNames[vIndex],
|
|
@@ -36257,7 +36018,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36257
36018
|
}
|
|
36258
36019
|
}
|
|
36259
36020
|
// 配送方式选择器
|
|
36260
|
-
if (dataChoiceBusinessType == 310) {
|
|
36021
|
+
if (dataChoiceBusinessType == 310 || dataChoiceBusinessType == 311) {
|
|
36261
36022
|
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
36262
36023
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36263
36024
|
selectBusinessType: "deliveryMode",
|
|
@@ -36271,9 +36032,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36271
36032
|
disabled: disabled,
|
|
36272
36033
|
labelInValue: true,
|
|
36273
36034
|
value: values[0],
|
|
36274
|
-
requestConfig: {
|
|
36035
|
+
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36036
|
+
otherParams: {
|
|
36037
|
+
// 配送方式只选择标准配送方式
|
|
36038
|
+
'qp-recordChannnelCode-eq': 80
|
|
36039
|
+
}
|
|
36040
|
+
} : {}), {}, {
|
|
36275
36041
|
filterInit: 'qp-code-in'
|
|
36276
|
-
},
|
|
36042
|
+
}),
|
|
36277
36043
|
onChange: function onChange(value) {
|
|
36278
36044
|
if (dataInputBusinessType === 12) {
|
|
36279
36045
|
values[0] = value.map(function (i) {
|
|
@@ -36303,9 +36069,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36303
36069
|
disabled: disabled,
|
|
36304
36070
|
labelInValue: true,
|
|
36305
36071
|
value: values[1],
|
|
36306
|
-
requestConfig: {
|
|
36072
|
+
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36073
|
+
otherParams: {
|
|
36074
|
+
// 配送方式只选择标准配送方式
|
|
36075
|
+
'qp-recordChannnelCode-eq': 80
|
|
36076
|
+
}
|
|
36077
|
+
} : {}), {}, {
|
|
36307
36078
|
filterInit: 'qp-code-in'
|
|
36308
|
-
},
|
|
36079
|
+
}),
|
|
36309
36080
|
onChange: function onChange(value) {
|
|
36310
36081
|
if (dataInputBusinessType === 12) {
|
|
36311
36082
|
values[1] = value.map(function (i) {
|
|
@@ -36325,8 +36096,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36325
36096
|
}
|
|
36326
36097
|
}));
|
|
36327
36098
|
} else {
|
|
36328
|
-
var
|
|
36329
|
-
var
|
|
36099
|
+
var _values1;
|
|
36100
|
+
var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
|
|
36330
36101
|
return {
|
|
36331
36102
|
key: s,
|
|
36332
36103
|
label: valueNames[vIndex],
|
|
@@ -36348,10 +36119,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36348
36119
|
} : {}),
|
|
36349
36120
|
disabled: disabled,
|
|
36350
36121
|
labelInValue: true,
|
|
36351
|
-
value:
|
|
36352
|
-
requestConfig: {
|
|
36122
|
+
value: _currentValue0,
|
|
36123
|
+
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36124
|
+
otherParams: {
|
|
36125
|
+
// 配送方式只选择标准配送方式
|
|
36126
|
+
'qp-recordChannnelCode-eq': 80
|
|
36127
|
+
}
|
|
36128
|
+
} : {}), {}, {
|
|
36353
36129
|
filterInit: 'qp-code-in'
|
|
36354
|
-
},
|
|
36130
|
+
}),
|
|
36355
36131
|
onChange: function onChange(value) {
|
|
36356
36132
|
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
36357
36133
|
values = value.map(function (i) {
|
|
@@ -36441,8 +36217,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36441
36217
|
}
|
|
36442
36218
|
}));
|
|
36443
36219
|
} else {
|
|
36444
|
-
var
|
|
36445
|
-
var
|
|
36220
|
+
var _values10;
|
|
36221
|
+
var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
36446
36222
|
return {
|
|
36447
36223
|
key: s,
|
|
36448
36224
|
label: valueNames[vIndex],
|
|
@@ -36464,7 +36240,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36464
36240
|
} : {}),
|
|
36465
36241
|
disabled: disabled,
|
|
36466
36242
|
labelInValue: true,
|
|
36467
|
-
value:
|
|
36243
|
+
value: _currentValue1,
|
|
36468
36244
|
requestConfig: {
|
|
36469
36245
|
filterInit: 'qp-code-in'
|
|
36470
36246
|
},
|
|
@@ -36557,8 +36333,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36557
36333
|
}
|
|
36558
36334
|
}));
|
|
36559
36335
|
} else {
|
|
36560
|
-
var
|
|
36561
|
-
var
|
|
36336
|
+
var _values11;
|
|
36337
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
36562
36338
|
return {
|
|
36563
36339
|
key: s,
|
|
36564
36340
|
label: valueNames[vIndex],
|
|
@@ -36580,7 +36356,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36580
36356
|
} : {}),
|
|
36581
36357
|
disabled: disabled,
|
|
36582
36358
|
labelInValue: true,
|
|
36583
|
-
value:
|
|
36359
|
+
value: _currentValue10,
|
|
36584
36360
|
requestConfig: {
|
|
36585
36361
|
filterInit: 'qp-brandCode-in'
|
|
36586
36362
|
},
|
|
@@ -36771,8 +36547,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36771
36547
|
}
|
|
36772
36548
|
}));
|
|
36773
36549
|
} else {
|
|
36774
|
-
var
|
|
36775
|
-
var
|
|
36550
|
+
var _values12;
|
|
36551
|
+
var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
36776
36552
|
return {
|
|
36777
36553
|
key: s,
|
|
36778
36554
|
label: valueNames[vIndex]
|
|
@@ -36800,7 +36576,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36800
36576
|
isSearchForm: true,
|
|
36801
36577
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36802
36578
|
disabled: disabled,
|
|
36803
|
-
value:
|
|
36579
|
+
value: _currentValue11,
|
|
36804
36580
|
onChange: function onChange(value, sourceList) {
|
|
36805
36581
|
if (dataInputBusinessType === 12) {
|
|
36806
36582
|
var _value$map3, _sourceList$filter3;
|
|
@@ -37120,9 +36896,9 @@ var App$1 = function App(_ref) {
|
|
|
37120
36896
|
UpdateState(res);
|
|
37121
36897
|
};
|
|
37122
36898
|
var _useState9 = React$1.useState(false),
|
|
37123
|
-
|
|
37124
|
-
isModalVisible =
|
|
37125
|
-
setIsModalVisible =
|
|
36899
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
36900
|
+
isModalVisible = _useState0[0],
|
|
36901
|
+
setIsModalVisible = _useState0[1];
|
|
37126
36902
|
var showModal = function showModal() {
|
|
37127
36903
|
setIsModalVisible(true);
|
|
37128
36904
|
};
|
|
@@ -37603,27 +37379,26 @@ function RenderCompItem(props) {
|
|
|
37603
37379
|
dictData = _useState2[0],
|
|
37604
37380
|
setDictData = _useState2[1];
|
|
37605
37381
|
var getDictData = /*#__PURE__*/function () {
|
|
37606
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
37382
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
37607
37383
|
var _data$map;
|
|
37608
37384
|
var data;
|
|
37609
|
-
return
|
|
37610
|
-
while (1) switch (_context.
|
|
37385
|
+
return _regenerator().w(function (_context) {
|
|
37386
|
+
while (1) switch (_context.n) {
|
|
37611
37387
|
case 0:
|
|
37612
|
-
_context.
|
|
37388
|
+
_context.n = 1;
|
|
37613
37389
|
return bssula.request({
|
|
37614
37390
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
37615
37391
|
});
|
|
37616
|
-
case
|
|
37617
|
-
data = _context.
|
|
37392
|
+
case 1:
|
|
37393
|
+
data = _context.v;
|
|
37618
37394
|
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) {
|
|
37619
37395
|
return {
|
|
37620
37396
|
text: item.dictItemName,
|
|
37621
37397
|
value: item.dictItemCode
|
|
37622
37398
|
};
|
|
37623
37399
|
}));
|
|
37624
|
-
case
|
|
37625
|
-
|
|
37626
|
-
return _context.stop();
|
|
37400
|
+
case 2:
|
|
37401
|
+
return _context.a(2);
|
|
37627
37402
|
}
|
|
37628
37403
|
}, _callee);
|
|
37629
37404
|
}));
|
|
@@ -37864,11 +37639,11 @@ function RenderCompItem(props) {
|
|
|
37864
37639
|
needNameAndCode: true,
|
|
37865
37640
|
notChangeOnSelect: true,
|
|
37866
37641
|
initRequestSource: function () {
|
|
37867
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
37868
|
-
return
|
|
37869
|
-
while (1) switch (_context2.
|
|
37642
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
37643
|
+
return _regenerator().w(function (_context2) {
|
|
37644
|
+
while (1) switch (_context2.n) {
|
|
37870
37645
|
case 0:
|
|
37871
|
-
_context2.
|
|
37646
|
+
_context2.n = 1;
|
|
37872
37647
|
return bssula.request({
|
|
37873
37648
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
37874
37649
|
method: 'get',
|
|
@@ -37886,11 +37661,8 @@ function RenderCompItem(props) {
|
|
|
37886
37661
|
return handleData;
|
|
37887
37662
|
}
|
|
37888
37663
|
});
|
|
37889
|
-
case
|
|
37890
|
-
return _context2.
|
|
37891
|
-
case 3:
|
|
37892
|
-
case "end":
|
|
37893
|
-
return _context2.stop();
|
|
37664
|
+
case 1:
|
|
37665
|
+
return _context2.a(2, _context2.v);
|
|
37894
37666
|
}
|
|
37895
37667
|
}, _callee2);
|
|
37896
37668
|
}));
|
|
@@ -38055,7 +37827,7 @@ function RenderCompItem(props) {
|
|
|
38055
37827
|
getPopupContainer: function getPopupContainer() {
|
|
38056
37828
|
return document.body;
|
|
38057
37829
|
}
|
|
38058
|
-
})) || 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, {
|
|
37830
|
+
})) || 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, {
|
|
38059
37831
|
selectBusinessType: "deliveryMode",
|
|
38060
37832
|
selectProps: _objectSpread2({
|
|
38061
37833
|
style: styleCommon,
|
|
@@ -38067,9 +37839,14 @@ function RenderCompItem(props) {
|
|
|
38067
37839
|
disabled: disabled,
|
|
38068
37840
|
labelInValue: true,
|
|
38069
37841
|
value: showValue(ites.code),
|
|
38070
|
-
requestConfig: {
|
|
37842
|
+
requestConfig: _objectSpread2(_objectSpread2({}, (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 311 ? {
|
|
37843
|
+
otherParams: {
|
|
37844
|
+
// 配送方式只选择标准配送方式
|
|
37845
|
+
'qp-recordChannnelCode-eq': 80
|
|
37846
|
+
}
|
|
37847
|
+
} : {}), {}, {
|
|
38071
37848
|
filterInit: 'qp-code-in'
|
|
38072
|
-
},
|
|
37849
|
+
}),
|
|
38073
37850
|
onChange: function onChange(value) {
|
|
38074
37851
|
handleEdit(ites.code, value);
|
|
38075
37852
|
},
|
|
@@ -39941,13 +39718,13 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
39941
39718
|
ruleTypeData = _useState8[0],
|
|
39942
39719
|
setRuleTypeData = _useState8[1];
|
|
39943
39720
|
var _useState9 = React$1.useState([]),
|
|
39944
|
-
|
|
39945
|
-
ruleReturnConfig =
|
|
39946
|
-
setRuleReturnConfig =
|
|
39947
|
-
var
|
|
39948
|
-
|
|
39949
|
-
templateData =
|
|
39950
|
-
setTemplateData =
|
|
39721
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
39722
|
+
ruleReturnConfig = _useState0[0],
|
|
39723
|
+
setRuleReturnConfig = _useState0[1];
|
|
39724
|
+
var _useState1 = React$1.useState({}),
|
|
39725
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
39726
|
+
templateData = _useState10[0],
|
|
39727
|
+
setTemplateData = _useState10[1];
|
|
39951
39728
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
39952
39729
|
bssula.request({
|
|
39953
39730
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -40283,25 +40060,25 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
40283
40060
|
regularDataList = _useState8[0],
|
|
40284
40061
|
setRegularDataList = _useState8[1];
|
|
40285
40062
|
var _useState9 = React$1.useState([]),
|
|
40286
|
-
|
|
40287
|
-
baseRuleDetailList =
|
|
40288
|
-
setBaseRuleDetailList =
|
|
40289
|
-
var
|
|
40063
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
40064
|
+
baseRuleDetailList = _useState0[0],
|
|
40065
|
+
setBaseRuleDetailList = _useState0[1]; // 规则实例详情集合
|
|
40066
|
+
var _useState1 = React$1.useState([]),
|
|
40067
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
40068
|
+
systemVariableList = _useState10[0],
|
|
40069
|
+
setSystemVariableList = _useState10[1];
|
|
40070
|
+
var _useState11 = React$1.useState(false),
|
|
40290
40071
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
40291
|
-
|
|
40292
|
-
|
|
40072
|
+
isGetDefRuleDataRes = _useState12[0],
|
|
40073
|
+
setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
40293
40074
|
var _useState13 = React$1.useState(false),
|
|
40294
40075
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
40295
|
-
|
|
40296
|
-
|
|
40076
|
+
isGetRuleDataRes = _useState14[0],
|
|
40077
|
+
setIsGetRuleDataRes = _useState14[1];
|
|
40297
40078
|
var _useState15 = React$1.useState(false),
|
|
40298
40079
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
40299
|
-
|
|
40300
|
-
|
|
40301
|
-
var _useState17 = React$1.useState(false),
|
|
40302
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
40303
|
-
groupOtherPriorityList = _useState18[0],
|
|
40304
|
-
setGroupOtherPriorityList = _useState18[1];
|
|
40080
|
+
groupOtherPriorityList = _useState16[0],
|
|
40081
|
+
setGroupOtherPriorityList = _useState16[1];
|
|
40305
40082
|
var baseRuleRef = React$1.useRef();
|
|
40306
40083
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
40307
40084
|
// 查询规则组下所有规则实例
|