@bit-sun/business-component 4.2.0-alpha.1 → 4.2.0-alpha.10
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/.umirc.ts +9 -9
- package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
- package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
- package/dist/components/Business/CommonAlert/index.d.ts +1 -2
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -12
- package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
- package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +1 -2
- package/dist/components/Business/SystemLog/index.d.ts +78 -0
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
- package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +1 -2
- package/dist/components/Functional/AuthButton/index.d.ts +1 -2
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +5 -5
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +1909 -1186
- package/dist/index.js +1908 -1181
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +18 -19
- package/dist/utils/utils.d.ts +41 -0
- package/docs/flow-control-readme.md +283 -0
- package/package.json +1 -1
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +0 -1
- package/src/components/Business/BsSulaQueryTable/index.md +57 -4
- package/src/components/Business/BsSulaQueryTable/index.tsx +164 -7
- package/src/components/Business/BsSulaQueryTable/setting.tsx +6 -0
- package/src/components/Business/DetailPageWrapper/index.tsx +81 -1
- package/src/components/Business/DetailPageWrapper/readme.md +89 -0
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +363 -41
- package/src/components/Business/SystemLog/index.md +37 -0
- package/src/components/Business/SystemLog/index.tsx +87 -0
- package/src/components/Business/columnSettingTable/index.tsx +7 -6
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +23 -22
- package/src/components/Functional/AddSelect/index.tsx +92 -0
- package/src/components/Functional/DataValidation/index.tsx +22 -3
- package/src/components/Functional/QueryMutipleInput/index.tsx +1 -1
- package/src/components/Functional/SearchSelect/index.tsx +68 -10
- package/src/components/Functional/SearchSelect/utils.tsx +4 -1
- package/src/components/Solution/RuleComponent/RenderCompItem.tsx +9 -1
- package/src/components/Solution/RuleComponent/RenderCompItem_README.md +189 -0
- package/src/components/Solution/RuleComponent/index.js +1 -0
- package/src/components/Solution/RuleComponent/ruleFiled.js +25 -1
- package/src/index.ts +7 -0
- package/src/utils/utils.ts +41 -1
package/dist/index.js
CHANGED
|
@@ -230,306 +230,113 @@ function _possibleConstructorReturn(t, e) {
|
|
|
230
230
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
231
231
|
return _assertThisInitialized(t);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
233
|
+
function _regenerator() {
|
|
234
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
235
|
+
var e,
|
|
236
|
+
t,
|
|
237
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
238
|
+
n = r.iterator || "@@iterator",
|
|
239
|
+
o = r.toStringTag || "@@toStringTag";
|
|
240
|
+
function i(r, n, o, i) {
|
|
241
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
242
|
+
u = Object.create(c.prototype);
|
|
243
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
244
|
+
var i,
|
|
245
|
+
c,
|
|
246
|
+
u,
|
|
247
|
+
f = 0,
|
|
248
|
+
p = o || [],
|
|
249
|
+
y = !1,
|
|
250
|
+
G = {
|
|
251
|
+
p: 0,
|
|
252
|
+
n: 0,
|
|
253
|
+
v: e,
|
|
254
|
+
a: d,
|
|
255
|
+
f: d.bind(e, 4),
|
|
256
|
+
d: function (t, r) {
|
|
257
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
function d(r, n) {
|
|
261
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
262
|
+
var o,
|
|
263
|
+
i = p[t],
|
|
264
|
+
d = G.p,
|
|
265
|
+
l = i[2];
|
|
266
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
267
|
+
}
|
|
268
|
+
if (o || r > 1) return a;
|
|
269
|
+
throw y = !0, n;
|
|
270
|
+
}
|
|
271
|
+
return function (o, p, l) {
|
|
272
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
273
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
274
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
275
|
+
try {
|
|
276
|
+
if (f = 2, i) {
|
|
277
|
+
if (c || (o = "next"), t = i[o]) {
|
|
278
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
279
|
+
if (!t.done) return t;
|
|
280
|
+
u = t.value, c < 2 && (c = 0);
|
|
281
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
282
|
+
i = e;
|
|
283
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
284
|
+
} catch (t) {
|
|
285
|
+
i = e, c = 1, u = t;
|
|
286
|
+
} finally {
|
|
287
|
+
f = 1;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
return {
|
|
291
|
+
value: t,
|
|
292
|
+
done: y
|
|
293
|
+
};
|
|
281
294
|
};
|
|
282
|
-
}
|
|
295
|
+
}(r, o, i), !0), u;
|
|
283
296
|
}
|
|
284
|
-
|
|
285
|
-
var h = "suspendedStart",
|
|
286
|
-
l = "suspendedYield",
|
|
287
|
-
f = "executing",
|
|
288
|
-
s = "completed",
|
|
289
|
-
y = {};
|
|
297
|
+
var a = {};
|
|
290
298
|
function Generator() {}
|
|
291
299
|
function GeneratorFunction() {}
|
|
292
300
|
function GeneratorFunctionPrototype() {}
|
|
293
|
-
|
|
294
|
-
|
|
301
|
+
t = Object.getPrototypeOf;
|
|
302
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
303
|
+
return this;
|
|
304
|
+
}), t),
|
|
305
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
306
|
+
function f(e) {
|
|
307
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
308
|
+
}
|
|
309
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
295
310
|
return this;
|
|
296
|
-
})
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
300
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
301
|
-
function defineIteratorMethods(t) {
|
|
302
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
303
|
-
define(t, e, function (t) {
|
|
304
|
-
return this._invoke(e, t);
|
|
305
|
-
});
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
function AsyncIterator(t, e) {
|
|
309
|
-
function invoke(r, o, i, a) {
|
|
310
|
-
var c = tryCatch(t[r], t, o);
|
|
311
|
-
if ("throw" !== c.type) {
|
|
312
|
-
var u = c.arg,
|
|
313
|
-
h = u.value;
|
|
314
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
315
|
-
invoke("next", t, i, a);
|
|
316
|
-
}, function (t) {
|
|
317
|
-
invoke("throw", t, i, a);
|
|
318
|
-
}) : e.resolve(h).then(function (t) {
|
|
319
|
-
u.value = t, i(u);
|
|
320
|
-
}, function (t) {
|
|
321
|
-
return invoke("throw", t, i, a);
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
a(c.arg);
|
|
325
|
-
}
|
|
326
|
-
var r;
|
|
327
|
-
o(this, "_invoke", {
|
|
328
|
-
value: function (t, n) {
|
|
329
|
-
function callInvokeWithMethodAndArg() {
|
|
330
|
-
return new e(function (e, r) {
|
|
331
|
-
invoke(t, n, e, r);
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
335
|
-
}
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
function makeInvokeMethod(e, r, n) {
|
|
339
|
-
var o = h;
|
|
340
|
-
return function (i, a) {
|
|
341
|
-
if (o === f) throw Error("Generator is already running");
|
|
342
|
-
if (o === s) {
|
|
343
|
-
if ("throw" === i) throw a;
|
|
344
|
-
return {
|
|
345
|
-
value: t,
|
|
346
|
-
done: !0
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
for (n.method = i, n.arg = a;;) {
|
|
350
|
-
var c = n.delegate;
|
|
351
|
-
if (c) {
|
|
352
|
-
var u = maybeInvokeDelegate(c, n);
|
|
353
|
-
if (u) {
|
|
354
|
-
if (u === y) continue;
|
|
355
|
-
return u;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
359
|
-
if (o === h) throw o = s, n.arg;
|
|
360
|
-
n.dispatchException(n.arg);
|
|
361
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
362
|
-
o = f;
|
|
363
|
-
var p = tryCatch(e, r, n);
|
|
364
|
-
if ("normal" === p.type) {
|
|
365
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
366
|
-
return {
|
|
367
|
-
value: p.arg,
|
|
368
|
-
done: n.done
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
372
|
-
}
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
function maybeInvokeDelegate(e, r) {
|
|
376
|
-
var n = r.method,
|
|
377
|
-
o = e.iterator[n];
|
|
378
|
-
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
379
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
380
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
381
|
-
var a = i.arg;
|
|
382
|
-
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
383
|
-
}
|
|
384
|
-
function pushTryEntry(t) {
|
|
385
|
-
var e = {
|
|
386
|
-
tryLoc: t[0]
|
|
387
|
-
};
|
|
388
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
389
|
-
}
|
|
390
|
-
function resetTryEntry(t) {
|
|
391
|
-
var e = t.completion || {};
|
|
392
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
393
|
-
}
|
|
394
|
-
function Context(t) {
|
|
395
|
-
this.tryEntries = [{
|
|
396
|
-
tryLoc: "root"
|
|
397
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
398
|
-
}
|
|
399
|
-
function values(e) {
|
|
400
|
-
if (e || "" === e) {
|
|
401
|
-
var r = e[a];
|
|
402
|
-
if (r) return r.call(e);
|
|
403
|
-
if ("function" == typeof e.next) return e;
|
|
404
|
-
if (!isNaN(e.length)) {
|
|
405
|
-
var o = -1,
|
|
406
|
-
i = function next() {
|
|
407
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
408
|
-
return next.value = t, next.done = !0, next;
|
|
409
|
-
};
|
|
410
|
-
return i.next = i;
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
414
|
-
}
|
|
415
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
416
|
-
value: GeneratorFunctionPrototype,
|
|
417
|
-
configurable: !0
|
|
418
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
419
|
-
value: GeneratorFunction,
|
|
420
|
-
configurable: !0
|
|
421
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
422
|
-
var e = "function" == typeof t && t.constructor;
|
|
423
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
424
|
-
}, e.mark = function (t) {
|
|
425
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
426
|
-
}, e.awrap = function (t) {
|
|
311
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
312
|
+
return "[object Generator]";
|
|
313
|
+
}), (_regenerator = function () {
|
|
427
314
|
return {
|
|
428
|
-
|
|
315
|
+
w: i,
|
|
316
|
+
m: f
|
|
429
317
|
};
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
r = [];
|
|
445
|
-
for (var n in e) r.push(n);
|
|
446
|
-
return r.reverse(), function next() {
|
|
447
|
-
for (; r.length;) {
|
|
448
|
-
var t = r.pop();
|
|
449
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
450
|
-
}
|
|
451
|
-
return next.done = !0, next;
|
|
452
|
-
};
|
|
453
|
-
}, e.values = values, Context.prototype = {
|
|
454
|
-
constructor: Context,
|
|
455
|
-
reset: function (e) {
|
|
456
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
457
|
-
},
|
|
458
|
-
stop: function () {
|
|
459
|
-
this.done = !0;
|
|
460
|
-
var t = this.tryEntries[0].completion;
|
|
461
|
-
if ("throw" === t.type) throw t.arg;
|
|
462
|
-
return this.rval;
|
|
463
|
-
},
|
|
464
|
-
dispatchException: function (e) {
|
|
465
|
-
if (this.done) throw e;
|
|
466
|
-
var r = this;
|
|
467
|
-
function handle(n, o) {
|
|
468
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
469
|
-
}
|
|
470
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
471
|
-
var i = this.tryEntries[o],
|
|
472
|
-
a = i.completion;
|
|
473
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
474
|
-
if (i.tryLoc <= this.prev) {
|
|
475
|
-
var c = n.call(i, "catchLoc"),
|
|
476
|
-
u = n.call(i, "finallyLoc");
|
|
477
|
-
if (c && u) {
|
|
478
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
479
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
480
|
-
} else if (c) {
|
|
481
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
482
|
-
} else {
|
|
483
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
484
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
},
|
|
489
|
-
abrupt: function (t, e) {
|
|
490
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
491
|
-
var o = this.tryEntries[r];
|
|
492
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
493
|
-
var i = o;
|
|
494
|
-
break;
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
498
|
-
var a = i ? i.completion : {};
|
|
499
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
500
|
-
},
|
|
501
|
-
complete: function (t, e) {
|
|
502
|
-
if ("throw" === t.type) throw t.arg;
|
|
503
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
504
|
-
},
|
|
505
|
-
finish: function (t) {
|
|
506
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
507
|
-
var r = this.tryEntries[e];
|
|
508
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
509
|
-
}
|
|
510
|
-
},
|
|
511
|
-
catch: function (t) {
|
|
512
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
513
|
-
var r = this.tryEntries[e];
|
|
514
|
-
if (r.tryLoc === t) {
|
|
515
|
-
var n = r.completion;
|
|
516
|
-
if ("throw" === n.type) {
|
|
517
|
-
var o = n.arg;
|
|
518
|
-
resetTryEntry(r);
|
|
519
|
-
}
|
|
520
|
-
return o;
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
throw Error("illegal catch attempt");
|
|
524
|
-
},
|
|
525
|
-
delegateYield: function (e, r, n) {
|
|
526
|
-
return this.delegate = {
|
|
527
|
-
iterator: values(e),
|
|
528
|
-
resultName: r,
|
|
529
|
-
nextLoc: n
|
|
530
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
318
|
+
})();
|
|
319
|
+
}
|
|
320
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
321
|
+
var i = Object.defineProperty;
|
|
322
|
+
try {
|
|
323
|
+
i({}, "", {});
|
|
324
|
+
} catch (e) {
|
|
325
|
+
i = 0;
|
|
326
|
+
}
|
|
327
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
328
|
+
function o(r, n) {
|
|
329
|
+
_regeneratorDefine(e, r, function (e) {
|
|
330
|
+
return this._invoke(r, n, e);
|
|
331
|
+
});
|
|
531
332
|
}
|
|
532
|
-
|
|
333
|
+
r ? i ? i(e, r, {
|
|
334
|
+
value: n,
|
|
335
|
+
enumerable: !t,
|
|
336
|
+
configurable: !t,
|
|
337
|
+
writable: !t
|
|
338
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
339
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
533
340
|
}
|
|
534
341
|
function _setPrototypeOf(t, e) {
|
|
535
342
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -1477,6 +1284,45 @@ var handleConvertResponse = function handleConvertResponse(items, total) {
|
|
|
1477
1284
|
var noEmptyArray = function noEmptyArray(targetObj) {
|
|
1478
1285
|
return Array.isArray(targetObj) && targetObj.length !== 0;
|
|
1479
1286
|
};
|
|
1287
|
+
var formContainerAndItemLayout = function formContainerAndItemLayout(type, title, name) {
|
|
1288
|
+
return type === 'form' ? {
|
|
1289
|
+
container: {
|
|
1290
|
+
type: 'card',
|
|
1291
|
+
props: {
|
|
1292
|
+
title: title,
|
|
1293
|
+
id: Math.random(),
|
|
1294
|
+
level: 1,
|
|
1295
|
+
name: name
|
|
1296
|
+
}
|
|
1297
|
+
},
|
|
1298
|
+
itemLayout: {
|
|
1299
|
+
span: 8,
|
|
1300
|
+
labelCol: {
|
|
1301
|
+
span: 8
|
|
1302
|
+
},
|
|
1303
|
+
wrapperCol: {
|
|
1304
|
+
span: 18
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
} : {
|
|
1308
|
+
container: {
|
|
1309
|
+
type: 'card',
|
|
1310
|
+
props: {
|
|
1311
|
+
title: title,
|
|
1312
|
+
id: Math.random(),
|
|
1313
|
+
level: 1,
|
|
1314
|
+
bordered: null,
|
|
1315
|
+
isWhiteCard: true,
|
|
1316
|
+
name: name
|
|
1317
|
+
}
|
|
1318
|
+
},
|
|
1319
|
+
itemLayout: {
|
|
1320
|
+
wrapperCol: {
|
|
1321
|
+
span: 0
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
};
|
|
1325
|
+
};
|
|
1480
1326
|
|
|
1481
1327
|
// 判断某个按钮/菜单 是否有权限,返回布尔值
|
|
1482
1328
|
var authFunc = function authFunc(code) {
|
|
@@ -1563,22 +1409,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1563
1409
|
// sheepMap是表头字段中英文映射
|
|
1564
1410
|
// sheetCount:表的数量,默认一张
|
|
1565
1411
|
var resolveFile = /*#__PURE__*/function () {
|
|
1566
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
1412
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file) {
|
|
1567
1413
|
var config,
|
|
1568
1414
|
data,
|
|
1569
1415
|
_args = arguments;
|
|
1570
|
-
return
|
|
1571
|
-
while (1) switch (_context.
|
|
1416
|
+
return _regenerator().w(function (_context) {
|
|
1417
|
+
while (1) switch (_context.n) {
|
|
1572
1418
|
case 0:
|
|
1573
1419
|
config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
|
|
1574
1420
|
sheetMap: [],
|
|
1575
1421
|
sheetCount: 1
|
|
1576
1422
|
};
|
|
1577
|
-
_context.
|
|
1423
|
+
_context.n = 1;
|
|
1578
1424
|
return analyseExcelToByte(file);
|
|
1579
|
-
case
|
|
1580
|
-
data = _context.
|
|
1581
|
-
return _context.
|
|
1425
|
+
case 1:
|
|
1426
|
+
data = _context.v;
|
|
1427
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
1582
1428
|
var workbook = XLSX.read(data, {
|
|
1583
1429
|
type: 'binary'
|
|
1584
1430
|
});
|
|
@@ -1590,9 +1436,6 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1590
1436
|
var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
|
|
1591
1437
|
resolve(outdata);
|
|
1592
1438
|
}));
|
|
1593
|
-
case 5:
|
|
1594
|
-
case "end":
|
|
1595
|
-
return _context.stop();
|
|
1596
1439
|
}
|
|
1597
1440
|
}, _callee);
|
|
1598
1441
|
}));
|
|
@@ -1602,41 +1445,40 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1602
1445
|
}();
|
|
1603
1446
|
//读取文件
|
|
1604
1447
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1605
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
1448
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1606
1449
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1607
|
-
return
|
|
1608
|
-
while (1) switch (_context2.
|
|
1450
|
+
return _regenerator().w(function (_context2) {
|
|
1451
|
+
while (1) switch (_context2.n) {
|
|
1609
1452
|
case 0:
|
|
1610
1453
|
_ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
|
|
1611
1454
|
if (!(Array.isArray(fileList) && fileList.length > 0)) {
|
|
1612
|
-
_context2.
|
|
1455
|
+
_context2.n = 3;
|
|
1613
1456
|
break;
|
|
1614
1457
|
}
|
|
1615
1458
|
nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
|
|
1616
|
-
_context2.
|
|
1459
|
+
_context2.n = 1;
|
|
1617
1460
|
return resolveFile(nowFile.originFileObj, {
|
|
1618
1461
|
sheetMap: fieldMappingReverse(sheetMap),
|
|
1619
1462
|
sheetCount: 1
|
|
1620
1463
|
});
|
|
1621
|
-
case
|
|
1622
|
-
data2 = _context2.
|
|
1464
|
+
case 1:
|
|
1465
|
+
data2 = _context2.v;
|
|
1623
1466
|
data = data2[0];
|
|
1624
1467
|
if (data.length) {
|
|
1625
|
-
_context2.
|
|
1468
|
+
_context2.n = 2;
|
|
1626
1469
|
break;
|
|
1627
1470
|
}
|
|
1628
1471
|
antd.message.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
|
|
1629
|
-
return _context2.
|
|
1630
|
-
case
|
|
1472
|
+
return _context2.a(2);
|
|
1473
|
+
case 2:
|
|
1631
1474
|
if (callback) callback(data);
|
|
1632
1475
|
!callback && antd.message.success("\u5BFC\u5165\u6210\u529F");
|
|
1633
|
-
return _context2.
|
|
1634
|
-
case
|
|
1476
|
+
return _context2.a(2, data);
|
|
1477
|
+
case 3:
|
|
1635
1478
|
antd.message.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
|
|
1636
|
-
return _context2.
|
|
1637
|
-
case
|
|
1638
|
-
|
|
1639
|
-
return _context2.stop();
|
|
1479
|
+
return _context2.a(2);
|
|
1480
|
+
case 4:
|
|
1481
|
+
return _context2.a(2);
|
|
1640
1482
|
}
|
|
1641
1483
|
}, _callee2);
|
|
1642
1484
|
}));
|
|
@@ -2588,17 +2430,14 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2588
2430
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2589
2431
|
};
|
|
2590
2432
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2591
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
2592
|
-
return
|
|
2593
|
-
while (1) switch (_context.
|
|
2433
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
|
|
2434
|
+
return _regenerator().w(function (_context) {
|
|
2435
|
+
while (1) switch (_context.n) {
|
|
2594
2436
|
case 0:
|
|
2595
|
-
return _context.
|
|
2437
|
+
return _context.a(2, Promise.resolve({
|
|
2596
2438
|
data: response,
|
|
2597
2439
|
status: response.status
|
|
2598
2440
|
}));
|
|
2599
|
-
case 1:
|
|
2600
|
-
case "end":
|
|
2601
|
-
return _context.stop();
|
|
2602
2441
|
}
|
|
2603
2442
|
}, _callee);
|
|
2604
2443
|
}));
|
|
@@ -2971,88 +2810,108 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2971
2810
|
data: luckysheet.transToCellData(newData)
|
|
2972
2811
|
});
|
|
2973
2812
|
};
|
|
2974
|
-
_this.resetData = function () {
|
|
2813
|
+
_this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
2975
2814
|
var _customerColumnsMappi;
|
|
2976
|
-
var _this$props
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt,
|
|
2984
|
-
customerColumnsMapping = _this$props.customerColumnsMapping;
|
|
2985
|
-
var resultData = _this.getData().filter(function (d) {
|
|
2986
|
-
return ___default['default'].compact(Object.values(d)).length;
|
|
2987
|
-
});
|
|
2988
|
-
var resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
|
|
2989
|
-
return !!(c === null || c === void 0 ? void 0 : c.name);
|
|
2990
|
-
})) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
|
|
2991
|
-
return c.name;
|
|
2992
|
-
}) : columns;
|
|
2993
|
-
// 处理业务参数
|
|
2994
|
-
var otherParams = {};
|
|
2995
|
-
if (isBrandAuth) {
|
|
2996
|
-
otherParams = {
|
|
2997
|
-
brandAuth: 'ctl-withAuth'
|
|
2998
|
-
};
|
|
2999
|
-
}
|
|
3000
|
-
requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
|
|
3001
|
-
columns: resultColumns,
|
|
3002
|
-
data: resultData,
|
|
3003
|
-
checkStockNum: isCheckStockNum
|
|
3004
|
-
})).then(function (result) {
|
|
3005
|
-
result = result.data;
|
|
3006
|
-
if (judgeIsRequestError(result)) {
|
|
3007
|
-
antd.message.error(result.msg);
|
|
3008
|
-
return;
|
|
3009
|
-
}
|
|
3010
|
-
var items = _this.state.items;
|
|
3011
|
-
var validIndex = items.length;
|
|
3012
|
-
var res = result.data;
|
|
3013
|
-
var sheetData = luckysheet.getSheetData();
|
|
3014
|
-
sheetData.map(function (item, index) {
|
|
3015
|
-
if (!res[index]) return item;
|
|
3016
|
-
var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
|
|
3017
|
-
return i === 'skuCode';
|
|
3018
|
-
});
|
|
3019
|
-
if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
|
|
3020
|
-
return i === 'skuCode';
|
|
3021
|
-
})) && item[changeVMIndex].v !== res[index].skuCode) {
|
|
3022
|
-
item[changeVMIndex].v = res[index].skuCode;
|
|
3023
|
-
item[changeVMIndex].m = res[index].skuCode;
|
|
3024
|
-
}
|
|
3025
|
-
if (res[index].flag) {
|
|
3026
|
-
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
3027
|
-
v: '通过',
|
|
3028
|
-
m: '通过',
|
|
3029
|
-
fc: 'green' //字体颜色为 "#990000"
|
|
3030
|
-
});
|
|
3031
|
-
} else {
|
|
3032
|
-
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
3033
|
-
v: res[index].checkResults,
|
|
3034
|
-
m: res[index].checkResults,
|
|
3035
|
-
fc: 'red' //字体颜色为 "#990000"
|
|
2815
|
+
var _this$props, validDataUrl, validDataParams, updateData, columns, isBrandAuth, _this$props$isCheckSt, isCheckStockNum, customerColumnsMapping, checkSharedValue, beforeCheckCallback, resultData, resultColumns, otherParams;
|
|
2816
|
+
return _regenerator().w(function (_context) {
|
|
2817
|
+
while (1) switch (_context.n) {
|
|
2818
|
+
case 0:
|
|
2819
|
+
_this$props = _this.props, validDataUrl = _this$props.validDataUrl, validDataParams = _this$props.validDataParams, updateData = _this$props.updateData, columns = _this$props.columns, isBrandAuth = _this$props.isBrandAuth, _this$props$isCheckSt = _this$props.isCheckStockNum, isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt, customerColumnsMapping = _this$props.customerColumnsMapping, checkSharedValue = _this$props.checkSharedValue, beforeCheckCallback = _this$props.beforeCheckCallback;
|
|
2820
|
+
resultData = _this.getData().filter(function (d) {
|
|
2821
|
+
return ___default['default'].compact(Object.values(d)).length;
|
|
3036
2822
|
});
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
2823
|
+
resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
|
|
2824
|
+
return !!(c === null || c === void 0 ? void 0 : c.name);
|
|
2825
|
+
})) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
|
|
2826
|
+
return c.name;
|
|
2827
|
+
}) : columns; // 处理业务参数
|
|
2828
|
+
otherParams = {};
|
|
2829
|
+
if (isBrandAuth) {
|
|
2830
|
+
otherParams = {
|
|
2831
|
+
brandAuth: 'ctl-withAuth'
|
|
2832
|
+
};
|
|
2833
|
+
}
|
|
2834
|
+
// 处理校验参数,隐藏校验参数(公用的部分)
|
|
2835
|
+
if (checkSharedValue) {
|
|
2836
|
+
resultData = resultData.map(function (d) {
|
|
2837
|
+
return _objectSpread2(_objectSpread2({}, d), checkSharedValue);
|
|
2838
|
+
});
|
|
2839
|
+
}
|
|
2840
|
+
// 调用回调函数
|
|
2841
|
+
if (!beforeCheckCallback) {
|
|
2842
|
+
_context.n = 2;
|
|
2843
|
+
break;
|
|
2844
|
+
}
|
|
2845
|
+
_context.n = 1;
|
|
2846
|
+
return beforeCheckCallback(resultData);
|
|
2847
|
+
case 1:
|
|
2848
|
+
resultData = _context.v;
|
|
2849
|
+
if (resultData) {
|
|
2850
|
+
_context.n = 2;
|
|
2851
|
+
break;
|
|
2852
|
+
}
|
|
2853
|
+
return _context.a(2);
|
|
2854
|
+
case 2:
|
|
2855
|
+
requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
|
|
2856
|
+
columns: resultColumns,
|
|
2857
|
+
data: resultData,
|
|
2858
|
+
checkStockNum: isCheckStockNum
|
|
2859
|
+
})).then(function (result) {
|
|
2860
|
+
result = result.data;
|
|
2861
|
+
if (judgeIsRequestError(result)) {
|
|
2862
|
+
antd.message.error(result.msg);
|
|
2863
|
+
return;
|
|
2864
|
+
}
|
|
2865
|
+
var items = _this.state.items;
|
|
2866
|
+
var validIndex = items.length;
|
|
2867
|
+
var res = result.data;
|
|
2868
|
+
var sheetData = luckysheet.getSheetData();
|
|
2869
|
+
sheetData.map(function (item, index) {
|
|
2870
|
+
if (!res[index]) return item;
|
|
2871
|
+
var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
|
|
2872
|
+
return i === 'skuCode';
|
|
2873
|
+
});
|
|
2874
|
+
if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
|
|
2875
|
+
return i === 'skuCode';
|
|
2876
|
+
})) && item[changeVMIndex].v !== res[index].skuCode) {
|
|
2877
|
+
item[changeVMIndex].v = res[index].skuCode;
|
|
2878
|
+
item[changeVMIndex].m = res[index].skuCode;
|
|
2879
|
+
}
|
|
2880
|
+
if (res[index].flag) {
|
|
2881
|
+
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
2882
|
+
v: '通过',
|
|
2883
|
+
m: '通过',
|
|
2884
|
+
fc: 'green' //字体颜色为 "#990000"
|
|
2885
|
+
});
|
|
2886
|
+
} else {
|
|
2887
|
+
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
2888
|
+
v: res[index].checkResults,
|
|
2889
|
+
m: res[index].checkResults,
|
|
2890
|
+
fc: 'red' //字体颜色为 "#990000"
|
|
2891
|
+
});
|
|
2892
|
+
}
|
|
2893
|
+
item[validIndex].ct = {
|
|
2894
|
+
fa: 'General',
|
|
2895
|
+
t: 'g'
|
|
2896
|
+
};
|
|
2897
|
+
});
|
|
2898
|
+
// sheetData.map((item, index) => {
|
|
2899
|
+
// luckysheet.setCellValue(index + 1, 4, 345)
|
|
2900
|
+
// })
|
|
2901
|
+
luckysheet.create(_this.setConfig(luckysheet.transToCellData(sheetData)));
|
|
2902
|
+
_this.setState({
|
|
2903
|
+
data: luckysheet.transToCellData(sheetData),
|
|
2904
|
+
errorListCheck: false,
|
|
2905
|
+
resultData: res
|
|
2906
|
+
});
|
|
2907
|
+
console.log(setExportData);
|
|
2908
|
+
setExportData([123123]);
|
|
2909
|
+
}).catch(function (err) {});
|
|
2910
|
+
case 3:
|
|
2911
|
+
return _context.a(2);
|
|
2912
|
+
}
|
|
2913
|
+
}, _callee);
|
|
2914
|
+
}));
|
|
3056
2915
|
_this.filterData = function (type) {
|
|
3057
2916
|
var _this$state = _this.state,
|
|
3058
2917
|
showErrorData = _this$state.showErrorData,
|
|
@@ -3209,8 +3068,8 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3209
3068
|
if (!(res === null || res === void 0 ? void 0 : res[index])) return item;
|
|
3210
3069
|
var rowItem = res[index];
|
|
3211
3070
|
item === null || item === void 0 ? void 0 : item.forEach(function (element, colIndex) {
|
|
3212
|
-
var
|
|
3213
|
-
var colKey = (
|
|
3071
|
+
var _ref5;
|
|
3072
|
+
var colKey = (_ref5 = Object.keys(rowItem) || []) === null || _ref5 === void 0 ? void 0 : _ref5[colIndex];
|
|
3214
3073
|
if (!(rowItem === null || rowItem === void 0 ? void 0 : rowItem[colKey])) return element;
|
|
3215
3074
|
element.m = rowItem[colKey];
|
|
3216
3075
|
element.v = rowItem[colKey];
|
|
@@ -3286,10 +3145,10 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3286
3145
|
notExcelImport = _this$props6.notExcelImport,
|
|
3287
3146
|
excelImportConfig = _this$props6.excelImportConfig,
|
|
3288
3147
|
getTemplate = _this$props6.getTemplate;
|
|
3289
|
-
var
|
|
3290
|
-
size =
|
|
3291
|
-
accept =
|
|
3292
|
-
suffixRule =
|
|
3148
|
+
var _ref6 = excelImportConfig || {},
|
|
3149
|
+
size = _ref6.size,
|
|
3150
|
+
accept = _ref6.accept,
|
|
3151
|
+
suffixRule = _ref6.suffixRule;
|
|
3293
3152
|
var totalSummary = this.getCount();
|
|
3294
3153
|
var sheetMap = this.getSheetMap();
|
|
3295
3154
|
var callBackFun = this.importExcelToLuckySheet;
|
|
@@ -3315,9 +3174,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3315
3174
|
var _Object$keys;
|
|
3316
3175
|
if (!(sheetMap && ((_Object$keys = Object.keys(sheetMap)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length))) return;
|
|
3317
3176
|
if (info.file.status !== 'uploading') {
|
|
3318
|
-
var
|
|
3319
|
-
file =
|
|
3320
|
-
fileList =
|
|
3177
|
+
var _ref7 = info || {},
|
|
3178
|
+
file = _ref7.file,
|
|
3179
|
+
fileList = _ref7.fileList;
|
|
3321
3180
|
readerXlsxToList(file, fileList, null, null, {
|
|
3322
3181
|
callback: function callback(excelData) {
|
|
3323
3182
|
callBackFun(excelData);
|
|
@@ -4124,7 +3983,8 @@ var QueryMutipleInput = function QueryMutipleInput(_ref) {
|
|
|
4124
3983
|
setIsModalVisible(true);
|
|
4125
3984
|
//弹窗打开时 默认搜索内容换行显示
|
|
4126
3985
|
setPopValue(function (data) {
|
|
4127
|
-
|
|
3986
|
+
var _data$replace;
|
|
3987
|
+
return data === null || data === void 0 ? void 0 : (_data$replace = data.replace) === null || _data$replace === void 0 ? void 0 : _data$replace.call(data, /,/g, '\n');
|
|
4128
3988
|
});
|
|
4129
3989
|
};
|
|
4130
3990
|
var handleOk = function handleOk() {
|
|
@@ -4616,11 +4476,13 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref4) {
|
|
|
4616
4476
|
};
|
|
4617
4477
|
// 弹窗数据表头处理
|
|
4618
4478
|
var handleTableColumns = function handleTableColumns(tableColumns) {
|
|
4479
|
+
var _showTableColumns, _showTableColumns2;
|
|
4619
4480
|
// 按照默认设置排序 > 没有排序字段的展示所有列表头 > 没有表头列不展示
|
|
4620
4481
|
var showTableColumns = (tableColumns === null || tableColumns === void 0 ? void 0 : tableColumns.filter(function (s) {
|
|
4621
4482
|
return typeof s.defaultSort == 'number';
|
|
4622
4483
|
})) || tableColumns || [];
|
|
4623
|
-
|
|
4484
|
+
showTableColumns = ((_showTableColumns = showTableColumns) === null || _showTableColumns === void 0 ? void 0 : _showTableColumns.length) ? showTableColumns : tableColumns;
|
|
4485
|
+
return ((_showTableColumns2 = showTableColumns) === null || _showTableColumns2 === void 0 ? void 0 : _showTableColumns2.sort(function (a, b) {
|
|
4624
4486
|
return a.defaultSort - b.defaultSort;
|
|
4625
4487
|
})) || [];
|
|
4626
4488
|
};
|
|
@@ -4738,27 +4600,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4738
4600
|
popvalue = _useState8[0],
|
|
4739
4601
|
setPopValue = _useState8[1];
|
|
4740
4602
|
var _useState9 = React$1.useState([]),
|
|
4741
|
-
|
|
4742
|
-
source =
|
|
4743
|
-
setSource =
|
|
4603
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
4604
|
+
source = _useState0[0],
|
|
4605
|
+
setSource = _useState0[1];
|
|
4744
4606
|
var _useDebounceFn = ahooks.useDebounceFn(function () {
|
|
4745
4607
|
getData();
|
|
4746
4608
|
}, {
|
|
4747
4609
|
wait: 1000
|
|
4748
4610
|
}),
|
|
4749
4611
|
run = _useDebounceFn.run;
|
|
4750
|
-
var
|
|
4612
|
+
var _useState1 = React$1.useState(false),
|
|
4613
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
4614
|
+
fetching = _useState10[0],
|
|
4615
|
+
setFetching = _useState10[1];
|
|
4616
|
+
var _useState11 = React$1.useState(''),
|
|
4751
4617
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
var _useState13 = React$1.useState(
|
|
4618
|
+
searchValue = _useState12[0],
|
|
4619
|
+
setSearchValue = _useState12[1];
|
|
4620
|
+
var _useState13 = React$1.useState(resultSourceKey),
|
|
4755
4621
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
var _useState15 = React$1.useState(resultSourceKey),
|
|
4759
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
4760
|
-
uniqueValue = _useState16[0],
|
|
4761
|
-
setUniqueValue = _useState16[1];
|
|
4622
|
+
uniqueValue = _useState14[0],
|
|
4623
|
+
setUniqueValue = _useState14[1];
|
|
4762
4624
|
React$1.useEffect(function () {
|
|
4763
4625
|
setPopValue(value);
|
|
4764
4626
|
onValueChange(value);
|
|
@@ -5175,21 +5037,21 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5175
5037
|
notCommonProperty = _useState8[0],
|
|
5176
5038
|
setNotCommonProperty = _useState8[1];
|
|
5177
5039
|
var _useState9 = React$1.useState(false),
|
|
5178
|
-
|
|
5179
|
-
visible =
|
|
5180
|
-
setVisible =
|
|
5181
|
-
var
|
|
5040
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5041
|
+
visible = _useState0[0],
|
|
5042
|
+
setVisible = _useState0[1];
|
|
5043
|
+
var _useState1 = React$1.useState(false),
|
|
5044
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5045
|
+
showNotCommon = _useState10[0],
|
|
5046
|
+
setShowNotCommon = _useState10[1]; // 是否展示非常用属性
|
|
5047
|
+
var _useState11 = React$1.useState([]),
|
|
5182
5048
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
var _useState13 = React$1.useState(
|
|
5049
|
+
classifyOptionList = _useState12[0],
|
|
5050
|
+
setClassifyOptionList = _useState12[1];
|
|
5051
|
+
var _useState13 = React$1.useState('1'),
|
|
5186
5052
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
var _useState15 = React$1.useState('1'),
|
|
5190
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
5191
|
-
listKey = _useState16[0],
|
|
5192
|
-
setListKey = _useState16[1];
|
|
5053
|
+
listKey = _useState14[0],
|
|
5054
|
+
setListKey = _useState14[1];
|
|
5193
5055
|
React$1.useEffect(function () {
|
|
5194
5056
|
requestUtil({
|
|
5195
5057
|
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
@@ -5453,6 +5315,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5453
5315
|
highestPopContainer = _props$highestPopCont === void 0 ? undefined : _props$highestPopCont,
|
|
5454
5316
|
fieldComponent = props.fieldComponent,
|
|
5455
5317
|
onSaveCallback = props.onSaveCallback,
|
|
5318
|
+
_props$returnFormat = props.returnFormat,
|
|
5319
|
+
returnFormat = _props$returnFormat === void 0 ? [] : _props$returnFormat,
|
|
5456
5320
|
selectBusinessType = props.selectBusinessType;
|
|
5457
5321
|
var _ref = rCTemp || {},
|
|
5458
5322
|
url = _ref.url,
|
|
@@ -5511,14 +5375,16 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5511
5375
|
var currentPage = 1;
|
|
5512
5376
|
var selectParamsKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filter) || 'qp-codeAndName-like';
|
|
5513
5377
|
var selectParamsInitKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filterInit) || selectParamsKey;
|
|
5514
|
-
var currentSelectProps = _objectSpread2(_objectSpread2({
|
|
5378
|
+
var currentSelectProps = _objectSpread2(_objectSpread2({
|
|
5379
|
+
// 回显字段可自定义
|
|
5380
|
+
optionLabelProp: "label"
|
|
5381
|
+
}, selectProps), {}, {
|
|
5515
5382
|
// 以下属性不可更改----设计配置项
|
|
5516
5383
|
showArrow: true,
|
|
5517
5384
|
showSearch: true,
|
|
5518
5385
|
filterOption: false,
|
|
5519
5386
|
allowClear: true,
|
|
5520
5387
|
listHeight: 160,
|
|
5521
|
-
optionLabelProp: "label",
|
|
5522
5388
|
autoClearSearchValue: false,
|
|
5523
5389
|
placement: 'bottomRight'
|
|
5524
5390
|
});
|
|
@@ -5535,7 +5401,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5535
5401
|
};
|
|
5536
5402
|
var tableInitPagination = _objectSpread2(_objectSpread2({}, initPagination), {}, {
|
|
5537
5403
|
total: 0,
|
|
5538
|
-
current: 1
|
|
5404
|
+
current: 1,
|
|
5405
|
+
pageSizeOptions: [10, 20, 50, 100, 500, 1000]
|
|
5539
5406
|
});
|
|
5540
5407
|
var disabled = !!noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
|
|
5541
5408
|
var isHaveDependency = fixedparameter && fieldValToParam && ctx;
|
|
@@ -5567,29 +5434,29 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5567
5434
|
scrollPage = _useState8[0],
|
|
5568
5435
|
setScrollPage = _useState8[1];
|
|
5569
5436
|
var _useState9 = React$1.useState(0),
|
|
5570
|
-
|
|
5571
|
-
itemsTotal =
|
|
5572
|
-
setItemsTotal =
|
|
5573
|
-
var
|
|
5437
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5438
|
+
itemsTotal = _useState0[0],
|
|
5439
|
+
setItemsTotal = _useState0[1];
|
|
5440
|
+
var _useState1 = React$1.useState(false),
|
|
5441
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5442
|
+
fetching = _useState10[0],
|
|
5443
|
+
setFetching = _useState10[1];
|
|
5444
|
+
var _useState11 = React$1.useState(''),
|
|
5574
5445
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
var _useState13 = React$1.useState(
|
|
5446
|
+
searchValue = _useState12[0],
|
|
5447
|
+
setSearchValue = _useState12[1];
|
|
5448
|
+
var _useState13 = React$1.useState(false),
|
|
5578
5449
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
var _useState15 = React$1.useState(
|
|
5450
|
+
isModalVisible = _useState14[0],
|
|
5451
|
+
setIsModalVisible = _useState14[1];
|
|
5452
|
+
var _useState15 = React$1.useState(initVal),
|
|
5582
5453
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
var _useState17 = React$1.useState(
|
|
5454
|
+
popvalue = _useState16[0],
|
|
5455
|
+
setPopValue = _useState16[1];
|
|
5456
|
+
var _useState17 = React$1.useState(resultSourceKey),
|
|
5586
5457
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
var _useState19 = React$1.useState(resultSourceKey),
|
|
5590
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5591
|
-
uniqueValue = _useState20[0],
|
|
5592
|
-
setUniqueValue = _useState20[1];
|
|
5458
|
+
uniqueValue = _useState18[0],
|
|
5459
|
+
setUniqueValue = _useState18[1];
|
|
5593
5460
|
var _useDebounceFn = ahooks.useDebounceFn(function (v) {
|
|
5594
5461
|
// 优化搜索参数 支持传多个
|
|
5595
5462
|
var searchParams = {};
|
|
@@ -5618,58 +5485,58 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5618
5485
|
var _Form$useForm = antd.Form.useForm(),
|
|
5619
5486
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5620
5487
|
form = _Form$useForm2[0];
|
|
5488
|
+
var _useState19 = React$1.useState(true),
|
|
5489
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5490
|
+
collapsed = _useState20[0],
|
|
5491
|
+
setCollapsed = _useState20[1];
|
|
5621
5492
|
var _useState21 = React$1.useState(true),
|
|
5622
5493
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
var _useState23 = React$1.useState(
|
|
5494
|
+
caretLeftFlag = _useState22[0],
|
|
5495
|
+
setCaretLeftFlag = _useState22[1];
|
|
5496
|
+
var _useState23 = React$1.useState([]),
|
|
5626
5497
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
var _useState25 = React$1.useState(
|
|
5498
|
+
tableData = _useState24[0],
|
|
5499
|
+
setTableData = _useState24[1];
|
|
5500
|
+
var _useState25 = React$1.useState(tableInitPagination),
|
|
5630
5501
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
var _useState27 = React$1.useState(
|
|
5502
|
+
tablePagination = _useState26[0],
|
|
5503
|
+
setTablePagination = _useState26[1];
|
|
5504
|
+
var _useState27 = React$1.useState([]),
|
|
5634
5505
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5635
|
-
|
|
5636
|
-
|
|
5506
|
+
selectedRowKeys = _useState28[0],
|
|
5507
|
+
setSelectedRowKeys = _useState28[1];
|
|
5637
5508
|
var _useState29 = React$1.useState([]),
|
|
5638
5509
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
var _useState31 = React$1.useState(
|
|
5510
|
+
selectedRows = _useState30[0],
|
|
5511
|
+
setSelectedRows = _useState30[1];
|
|
5512
|
+
var _useState31 = React$1.useState(false),
|
|
5642
5513
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5643
|
-
|
|
5644
|
-
|
|
5514
|
+
checkedAll = _useState32[0],
|
|
5515
|
+
setCheckedAll = _useState32[1];
|
|
5645
5516
|
var _useState33 = React$1.useState(false),
|
|
5646
5517
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
var _useState35 = React$1.useState(
|
|
5518
|
+
indeterminate = _useState34[0],
|
|
5519
|
+
setIndeterminate = _useState34[1];
|
|
5520
|
+
var _useState35 = React$1.useState({}),
|
|
5650
5521
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
var _useState37 = React$1.useState(
|
|
5522
|
+
tableFormParams = _useState36[0],
|
|
5523
|
+
setTableFormParams = _useState36[1];
|
|
5524
|
+
var _useState37 = React$1.useState(false),
|
|
5654
5525
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
var _useState39 = React$1.useState(
|
|
5526
|
+
tooltipVisible = _useState38[0],
|
|
5527
|
+
setTooltipVisible = _useState38[1];
|
|
5528
|
+
var _useState39 = React$1.useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5658
5529
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
var _useState41 = React$1.useState(
|
|
5530
|
+
tableShowColumns = _useState40[0],
|
|
5531
|
+
setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5532
|
+
var _useState41 = React$1.useState(false),
|
|
5662
5533
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5663
|
-
|
|
5664
|
-
|
|
5534
|
+
confirmLoading = _useState42[0],
|
|
5535
|
+
setConfirmLoading = _useState42[1];
|
|
5665
5536
|
var _useState43 = React$1.useState(false),
|
|
5666
5537
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
var _useState45 = React$1.useState(false),
|
|
5670
|
-
_useState46 = _slicedToArray(_useState45, 2),
|
|
5671
|
-
modalSearched = _useState46[0],
|
|
5672
|
-
setModalSearched = _useState46[1];
|
|
5538
|
+
modalSearched = _useState44[0],
|
|
5539
|
+
setModalSearched = _useState44[1];
|
|
5673
5540
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5674
5541
|
setItems(list);
|
|
5675
5542
|
setItemsTotal(total);
|
|
@@ -5899,6 +5766,29 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5899
5766
|
removeListener();
|
|
5900
5767
|
};
|
|
5901
5768
|
}, [isModalVisible]);
|
|
5769
|
+
var safeJSONParse = function safeJSONParse(str) {
|
|
5770
|
+
try {
|
|
5771
|
+
return JSON.parse(str);
|
|
5772
|
+
} catch (error) {
|
|
5773
|
+
console.warn('JSON解析失败:', error);
|
|
5774
|
+
return null;
|
|
5775
|
+
}
|
|
5776
|
+
};
|
|
5777
|
+
// 获取回显的value值 如果开启了搜索条件 则需要过滤掉搜索条件
|
|
5778
|
+
var getShowValue = function getShowValue(value) {
|
|
5779
|
+
var newValue = _.cloneDeep(value);
|
|
5780
|
+
if (selectProps.useSearchCondition && newValue) {
|
|
5781
|
+
// 回显的时候 把搜索项的内容去掉
|
|
5782
|
+
if (selectMode) {
|
|
5783
|
+
newValue = newValue.filter(function (item) {
|
|
5784
|
+
var parsedItem = safeJSONParse(decodeURIComponent(item));
|
|
5785
|
+
// 过滤掉JSON对象(搜索条件),保留非JSON数据(实际选择项)
|
|
5786
|
+
return !parsedItem || !(parsedItem && _typeof(parsedItem) === 'object' && !Array.isArray(parsedItem));
|
|
5787
|
+
});
|
|
5788
|
+
}
|
|
5789
|
+
}
|
|
5790
|
+
return newValue;
|
|
5791
|
+
};
|
|
5902
5792
|
var showModal = function showModal() {
|
|
5903
5793
|
if (sDisabled) return;
|
|
5904
5794
|
setSelectOpen(false);
|
|
@@ -5908,12 +5798,13 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5908
5798
|
// 回显
|
|
5909
5799
|
if (value) {
|
|
5910
5800
|
if (selectMode) {
|
|
5911
|
-
|
|
5801
|
+
var newValue = getShowValue(value);
|
|
5802
|
+
setSelectedRowKeys(labelInValue ? newValue.map(function (i) {
|
|
5912
5803
|
return i.key;
|
|
5913
|
-
}) :
|
|
5914
|
-
setSelectedRows(labelInValue ?
|
|
5804
|
+
}) : newValue);
|
|
5805
|
+
setSelectedRows(labelInValue ? newValue.map(function (i) {
|
|
5915
5806
|
return _defineProperty(_defineProperty(_defineProperty({}, mappingValueField, i.key), "value", i.key), "text", i.label);
|
|
5916
|
-
}) :
|
|
5807
|
+
}) : newValue.map(function (i) {
|
|
5917
5808
|
return _defineProperty(_defineProperty({}, mappingValueField, i), "value", i);
|
|
5918
5809
|
}));
|
|
5919
5810
|
setPopValue(labelInValue ? value.map(function (i) {
|
|
@@ -5950,7 +5841,24 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5950
5841
|
formaData(selectedValue, source);
|
|
5951
5842
|
} else {
|
|
5952
5843
|
var formatResult = selectMode ? [] : null;
|
|
5953
|
-
|
|
5844
|
+
// 支持使用查询条件 筛选
|
|
5845
|
+
if (selectProps.useSearchCondition) {
|
|
5846
|
+
var formValue = form.getFieldsValue();
|
|
5847
|
+
// 一次性处理数据转换和过滤
|
|
5848
|
+
var processedFormValue = Object.keys(formValue).reduce(function (acc, key) {
|
|
5849
|
+
var value = formValue[key];
|
|
5850
|
+
// 过滤空值(确保trim函数存在)
|
|
5851
|
+
var trimmedValue = typeof value === 'string' ? value.trim() : value;
|
|
5852
|
+
if (trimmedValue && trimmedValue !== '') {
|
|
5853
|
+
acc[key] = trimmedValue;
|
|
5854
|
+
}
|
|
5855
|
+
return acc;
|
|
5856
|
+
}, {});
|
|
5857
|
+
var result = JSON.stringify(processedFormValue);
|
|
5858
|
+
onChange(_.isEmpty(processedFormValue) ? formatResult : selectMode ? [result] : result, selectedValue);
|
|
5859
|
+
} else {
|
|
5860
|
+
onChange(formatResult, selectedValue);
|
|
5861
|
+
}
|
|
5954
5862
|
}
|
|
5955
5863
|
};
|
|
5956
5864
|
var handleOk = function handleOk() {
|
|
@@ -5980,18 +5888,25 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5980
5888
|
setConfirmLoading(false);
|
|
5981
5889
|
});
|
|
5982
5890
|
} else {
|
|
5983
|
-
handleSelectOver(popvalue);
|
|
5891
|
+
handleSelectOver(selectedRows.length ? popvalue : []);
|
|
5984
5892
|
handleCancel();
|
|
5985
5893
|
}
|
|
5986
5894
|
};
|
|
5987
5895
|
var formaData = function formaData(value, source) {
|
|
5988
5896
|
if (labelInValue) {
|
|
5897
|
+
var getFromat = function getFromat(format, val) {
|
|
5898
|
+
return format.map(function (_ref8) {
|
|
5899
|
+
var key = _ref8.key,
|
|
5900
|
+
value = _ref8.value;
|
|
5901
|
+
return _defineProperty({}, key, val[value]);
|
|
5902
|
+
});
|
|
5903
|
+
};
|
|
5989
5904
|
var formatResult = value.map(function (i) {
|
|
5990
|
-
return {
|
|
5905
|
+
return Object.assign.apply(Object, [{
|
|
5991
5906
|
key: i[mappingValueField] || i.key,
|
|
5992
5907
|
label: i[mappingTextField] || i.label,
|
|
5993
5908
|
value: i[mappingValueField] || i.value
|
|
5994
|
-
};
|
|
5909
|
+
}].concat(_toConsumableArray(getFromat(returnFormat, i))));
|
|
5995
5910
|
});
|
|
5996
5911
|
onChange(selectMode ? formatResult : formatResult[0], value, source);
|
|
5997
5912
|
} else {
|
|
@@ -6139,7 +6054,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6139
6054
|
})) || [];
|
|
6140
6055
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
6141
6056
|
return searchList.map(function (i, index) {
|
|
6142
|
-
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$
|
|
6057
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field10, _i$field12, _i$field13;
|
|
6143
6058
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6144
6059
|
span: ColSpan,
|
|
6145
6060
|
key: i
|
|
@@ -6237,7 +6152,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6237
6152
|
disabled: setDisabled(i.name)
|
|
6238
6153
|
}))));
|
|
6239
6154
|
}
|
|
6240
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6155
|
+
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') {
|
|
6241
6156
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6242
6157
|
span: ColSpan,
|
|
6243
6158
|
key: i.name
|
|
@@ -6251,7 +6166,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6251
6166
|
}
|
|
6252
6167
|
})));
|
|
6253
6168
|
}
|
|
6254
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6169
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'proppertySelector') {
|
|
6255
6170
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6256
6171
|
span: ColSpan,
|
|
6257
6172
|
key: i.name
|
|
@@ -6261,8 +6176,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6261
6176
|
key: i.name
|
|
6262
6177
|
}, /*#__PURE__*/React__default['default'].createElement(PropertySelector, null)));
|
|
6263
6178
|
}
|
|
6264
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6265
|
-
var _i$
|
|
6179
|
+
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') {
|
|
6180
|
+
var _i$field11;
|
|
6266
6181
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6267
6182
|
span: ColSpan,
|
|
6268
6183
|
key: i.name
|
|
@@ -6275,9 +6190,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6275
6190
|
width: '100%'
|
|
6276
6191
|
},
|
|
6277
6192
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6278
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6193
|
+
}, i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.props))));
|
|
6279
6194
|
}
|
|
6280
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6195
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
|
|
6281
6196
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6282
6197
|
span: ColSpan,
|
|
6283
6198
|
key: i.name
|
|
@@ -6306,7 +6221,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6306
6221
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6307
6222
|
allowClear: true,
|
|
6308
6223
|
maxLength: 100
|
|
6309
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6224
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
|
|
6310
6225
|
disabled: setDisabled(i.name)
|
|
6311
6226
|
}))));
|
|
6312
6227
|
});
|
|
@@ -6599,9 +6514,25 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6599
6514
|
confirmLoading: confirmLoading,
|
|
6600
6515
|
onOk: handleOk,
|
|
6601
6516
|
onCancel: handleCancel,
|
|
6602
|
-
footer: selectMode || (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalRadioNeedFooter) ? [/*#__PURE__*/React__default['default'].createElement(
|
|
6517
|
+
footer: selectMode || (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalRadioNeedFooter) ? [selectProps.useSearchCondition ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6518
|
+
key: "instructions",
|
|
6519
|
+
style: {
|
|
6520
|
+
position: 'absolute',
|
|
6521
|
+
width: 'calc(100% - 500px)',
|
|
6522
|
+
textAlign: 'left'
|
|
6523
|
+
}
|
|
6524
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, "\u64CD\u4F5C\u8BF4\u660E\uFF1A\u7ED3\u679C\u96C6\u8FC7\u591A\u65F6\uFF0C\u53EF\u65E0\u9700\u9009\u62E9\u5177\u4F53\u6570\u636E\uFF0C\u7CFB\u7EDF\u5C06\u76F4\u63A5\u6309\u5DF2\u8BBE\u7B5B\u9009\u6761\u4EF6\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
6525
|
+
style: {
|
|
6526
|
+
marginTop: '3px',
|
|
6527
|
+
height: '22px'
|
|
6528
|
+
},
|
|
6529
|
+
value: value
|
|
6530
|
+
}))) : /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
6603
6531
|
key: "back",
|
|
6604
|
-
onClick: handleCancel
|
|
6532
|
+
onClick: handleCancel,
|
|
6533
|
+
style: {
|
|
6534
|
+
margin: selectProps.useSearchCondition ? '10px 0' : 0
|
|
6535
|
+
}
|
|
6605
6536
|
}, "\u53D6\u6D88"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
6606
6537
|
key: "submit",
|
|
6607
6538
|
type: "primary",
|
|
@@ -7626,135 +7557,132 @@ var AddSelect = function AddSelect(props) {
|
|
|
7626
7557
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7627
7558
|
form = _Form$useForm2[0];
|
|
7628
7559
|
var _useState9 = React$1.useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7629
|
-
|
|
7630
|
-
tableSearchForm =
|
|
7631
|
-
setTableSearchForm =
|
|
7632
|
-
var
|
|
7560
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
7561
|
+
tableSearchForm = _useState0[0],
|
|
7562
|
+
setTableSearchForm = _useState0[1];
|
|
7563
|
+
var _useState1 = React$1.useState(true),
|
|
7564
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
7565
|
+
caretLeftFlag = _useState10[0],
|
|
7566
|
+
setCaretLeftFlag = _useState10[1];
|
|
7567
|
+
var _useState11 = React$1.useState([]),
|
|
7633
7568
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
var _useState13 = React$1.useState(
|
|
7637
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
7638
|
-
tableData = _useState14[0],
|
|
7639
|
-
setTableData = _useState14[1];
|
|
7640
|
-
var _useState15 = React$1.useState(_objectSpread2({
|
|
7569
|
+
tableData = _useState12[0],
|
|
7570
|
+
setTableData = _useState12[1];
|
|
7571
|
+
var _useState13 = React$1.useState(_objectSpread2({
|
|
7641
7572
|
total: 0,
|
|
7642
7573
|
size: "small",
|
|
7643
7574
|
current: 1,
|
|
7644
7575
|
pageSize: tableInitPageSize
|
|
7645
7576
|
}, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
|
|
7577
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
7578
|
+
tablePagination = _useState14[0],
|
|
7579
|
+
setTablePagination = _useState14[1];
|
|
7580
|
+
var _useState15 = React$1.useState([]),
|
|
7646
7581
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7647
|
-
|
|
7648
|
-
|
|
7649
|
-
var _useState17 = React$1.useState(
|
|
7582
|
+
selectedRowKeys = _useState16[0],
|
|
7583
|
+
setSelectedRowKeys = _useState16[1];
|
|
7584
|
+
var _useState17 = React$1.useState({}),
|
|
7650
7585
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
var _useState19 = React$1.useState(
|
|
7586
|
+
tableFormParams = _useState18[0],
|
|
7587
|
+
setTableFormParams = _useState18[1];
|
|
7588
|
+
var _useState19 = React$1.useState(false),
|
|
7654
7589
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7655
|
-
|
|
7656
|
-
|
|
7590
|
+
confirmLoading = _useState20[0],
|
|
7591
|
+
setConfirmLoading = _useState20[1];
|
|
7657
7592
|
var _useState21 = React$1.useState(false),
|
|
7658
7593
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
var _useState23 = React$1.useState(
|
|
7594
|
+
confirmContinueLoading = _useState22[0],
|
|
7595
|
+
setConfirmContinueLoading = _useState22[1];
|
|
7596
|
+
var _useState23 = React$1.useState([]),
|
|
7662
7597
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7663
|
-
|
|
7664
|
-
|
|
7598
|
+
selectColumns = _useState24[0],
|
|
7599
|
+
setSelectColumns = _useState24[1];
|
|
7665
7600
|
var _useState25 = React$1.useState([]),
|
|
7666
7601
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7667
|
-
|
|
7668
|
-
|
|
7602
|
+
showColumns = _useState26[0],
|
|
7603
|
+
setShowColumns = _useState26[1];
|
|
7669
7604
|
var _useState27 = React$1.useState([]),
|
|
7670
7605
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7671
|
-
|
|
7672
|
-
|
|
7606
|
+
tableColumns = _useState28[0],
|
|
7607
|
+
setTableColumns = _useState28[1];
|
|
7673
7608
|
var _useState29 = React$1.useState([]),
|
|
7674
7609
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
var _useState31 = React$1.useState([]),
|
|
7678
|
-
_useState32 = _slicedToArray(_useState31, 2),
|
|
7679
|
-
showToChooseColumns = _useState32[0],
|
|
7680
|
-
setShowToChooseColumns = _useState32[1];
|
|
7610
|
+
showToChooseColumns = _useState30[0],
|
|
7611
|
+
setShowToChooseColumns = _useState30[1];
|
|
7681
7612
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7682
7613
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7683
7614
|
// FIXME: 特殊业务逻辑
|
|
7684
7615
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7685
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7686
|
-
var result;
|
|
7687
|
-
return
|
|
7688
|
-
while (1) switch (_context.
|
|
7616
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7617
|
+
var result, _t;
|
|
7618
|
+
return _regenerator().w(function (_context) {
|
|
7619
|
+
while (1) switch (_context.p = _context.n) {
|
|
7689
7620
|
case 0:
|
|
7690
7621
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7691
7622
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7692
7623
|
}))) {
|
|
7693
|
-
_context.
|
|
7624
|
+
_context.n = 1;
|
|
7694
7625
|
break;
|
|
7695
7626
|
}
|
|
7696
7627
|
antd.message.warning('相同skc配码不可设置相同哦');
|
|
7697
|
-
return _context.
|
|
7698
|
-
case
|
|
7628
|
+
return _context.a(2, false);
|
|
7629
|
+
case 1:
|
|
7699
7630
|
if (!(bType == 'spu')) {
|
|
7700
|
-
_context.
|
|
7631
|
+
_context.n = 9;
|
|
7701
7632
|
break;
|
|
7702
7633
|
}
|
|
7703
7634
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7704
7635
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7705
7636
|
}))) {
|
|
7706
|
-
_context.
|
|
7637
|
+
_context.n = 2;
|
|
7707
7638
|
break;
|
|
7708
7639
|
}
|
|
7709
7640
|
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7710
|
-
return _context.
|
|
7711
|
-
case
|
|
7641
|
+
return _context.a(2, false);
|
|
7642
|
+
case 2:
|
|
7712
7643
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7713
|
-
_context.
|
|
7644
|
+
_context.n = 3;
|
|
7714
7645
|
break;
|
|
7715
7646
|
}
|
|
7716
7647
|
antd.message.warning('请先选择颜色!');
|
|
7717
|
-
return _context.
|
|
7718
|
-
case
|
|
7648
|
+
return _context.a(2, false);
|
|
7649
|
+
case 3:
|
|
7719
7650
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7720
7651
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7721
7652
|
}))) {
|
|
7722
|
-
_context.
|
|
7653
|
+
_context.n = 4;
|
|
7723
7654
|
break;
|
|
7724
7655
|
}
|
|
7725
7656
|
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7726
|
-
return _context.
|
|
7727
|
-
case
|
|
7657
|
+
return _context.a(2, false);
|
|
7658
|
+
case 4:
|
|
7728
7659
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7729
|
-
_context.
|
|
7660
|
+
_context.n = 9;
|
|
7730
7661
|
break;
|
|
7731
7662
|
}
|
|
7732
7663
|
result = true;
|
|
7733
|
-
_context.
|
|
7734
|
-
_context.
|
|
7664
|
+
_context.p = 5;
|
|
7665
|
+
_context.n = 6;
|
|
7735
7666
|
return checkSpuMatchCode({
|
|
7736
7667
|
skcCode: recordItem[recordKey],
|
|
7737
7668
|
matchingCode: changeValue,
|
|
7738
7669
|
ext1: recordItem.colorName
|
|
7739
7670
|
});
|
|
7740
|
-
case
|
|
7741
|
-
result = _context.
|
|
7671
|
+
case 6:
|
|
7672
|
+
result = _context.v;
|
|
7742
7673
|
result = true;
|
|
7743
|
-
_context.
|
|
7674
|
+
_context.n = 8;
|
|
7744
7675
|
break;
|
|
7745
|
-
case
|
|
7746
|
-
_context.
|
|
7747
|
-
|
|
7748
|
-
result = typeof
|
|
7749
|
-
case
|
|
7750
|
-
return _context.
|
|
7751
|
-
case
|
|
7752
|
-
return _context.
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
return _context.stop();
|
|
7756
|
-
}
|
|
7757
|
-
}, _callee, null, [[15, 22]]);
|
|
7676
|
+
case 7:
|
|
7677
|
+
_context.p = 7;
|
|
7678
|
+
_t = _context.v;
|
|
7679
|
+
result = typeof _t == 'boolean' ? _t : false;
|
|
7680
|
+
case 8:
|
|
7681
|
+
return _context.a(2, result);
|
|
7682
|
+
case 9:
|
|
7683
|
+
return _context.a(2, true);
|
|
7684
|
+
}
|
|
7685
|
+
}, _callee, null, [[5, 7]]);
|
|
7758
7686
|
}));
|
|
7759
7687
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7760
7688
|
return _ref2.apply(this, arguments);
|
|
@@ -7832,6 +7760,115 @@ var AddSelect = function AddSelect(props) {
|
|
|
7832
7760
|
acc[key] = typeof value === 'function' ? value === null || value === void 0 ? void 0 : value(record) : value;
|
|
7833
7761
|
return acc;
|
|
7834
7762
|
}, {});
|
|
7763
|
+
// 可输入非数字字符
|
|
7764
|
+
if (item.canInputString) {
|
|
7765
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2(_objectSpread2({
|
|
7766
|
+
min: 0,
|
|
7767
|
+
precision: 0,
|
|
7768
|
+
controls: false
|
|
7769
|
+
}, inputProps), {}, {
|
|
7770
|
+
value: text || '',
|
|
7771
|
+
keyboard: false,
|
|
7772
|
+
onPressEnter: function onPressEnter(e) {
|
|
7773
|
+
e.target.blur();
|
|
7774
|
+
},
|
|
7775
|
+
onBlur: function () {
|
|
7776
|
+
var _onBlur = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e) {
|
|
7777
|
+
var value;
|
|
7778
|
+
return _regenerator().w(function (_context2) {
|
|
7779
|
+
while (1) switch (_context2.n) {
|
|
7780
|
+
case 0:
|
|
7781
|
+
value = e.target.value;
|
|
7782
|
+
record[item.dataIndex] = value;
|
|
7783
|
+
editRecord(record);
|
|
7784
|
+
case 1:
|
|
7785
|
+
return _context2.a(2);
|
|
7786
|
+
}
|
|
7787
|
+
}, _callee2);
|
|
7788
|
+
}));
|
|
7789
|
+
function onBlur(_x7) {
|
|
7790
|
+
return _onBlur.apply(this, arguments);
|
|
7791
|
+
}
|
|
7792
|
+
return onBlur;
|
|
7793
|
+
}(),
|
|
7794
|
+
onKeyDown: function onKeyDown(e) {
|
|
7795
|
+
if (e.keyCode === 13 && e.ctrlKey) {
|
|
7796
|
+
var _document$getElementB;
|
|
7797
|
+
handleOk(true);
|
|
7798
|
+
(_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
|
|
7799
|
+
}
|
|
7800
|
+
if (e.keyCode === 8 && e.ctrlKey) {
|
|
7801
|
+
var _e$nativeEvent$path$;
|
|
7802
|
+
antd.message.success('删除当前行');
|
|
7803
|
+
e.stopPropagation();
|
|
7804
|
+
e.preventDefault();
|
|
7805
|
+
var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path$.getElementsByTagName('input')[currentIndex];
|
|
7806
|
+
if (dom) {
|
|
7807
|
+
dom.select();
|
|
7808
|
+
dom.focus();
|
|
7809
|
+
dom.scrollIntoView(false);
|
|
7810
|
+
}
|
|
7811
|
+
dom = null;
|
|
7812
|
+
deleteRecord(record);
|
|
7813
|
+
}
|
|
7814
|
+
if (e.keyCode === 37 && e.shiftKey) {
|
|
7815
|
+
var _e$nativeEvent$path$2;
|
|
7816
|
+
// 左滑动
|
|
7817
|
+
e.stopPropagation();
|
|
7818
|
+
e.preventDefault();
|
|
7819
|
+
var _dom = (_e$nativeEvent$path$2 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$2 === void 0 ? void 0 : _e$nativeEvent$path$2.getElementsByTagName('input')[currentIndex - 1];
|
|
7820
|
+
if (_dom) {
|
|
7821
|
+
_dom.select();
|
|
7822
|
+
_dom.focus();
|
|
7823
|
+
_dom.scrollIntoView(false);
|
|
7824
|
+
}
|
|
7825
|
+
_dom = null;
|
|
7826
|
+
}
|
|
7827
|
+
if (e.keyCode === 39 && e.shiftKey) {
|
|
7828
|
+
var _e$nativeEvent$path$3;
|
|
7829
|
+
// 右滑
|
|
7830
|
+
e.stopPropagation();
|
|
7831
|
+
e.preventDefault();
|
|
7832
|
+
var _dom2 = (_e$nativeEvent$path$3 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$3 === void 0 ? void 0 : _e$nativeEvent$path$3.getElementsByTagName('input')[currentIndex + 1];
|
|
7833
|
+
if (_dom2) {
|
|
7834
|
+
_dom2.select();
|
|
7835
|
+
_dom2.focus();
|
|
7836
|
+
_dom2.scrollIntoView(false);
|
|
7837
|
+
}
|
|
7838
|
+
_dom2 = null;
|
|
7839
|
+
}
|
|
7840
|
+
if (e.keyCode === 40) {
|
|
7841
|
+
var _e$nativeEvent$path$4;
|
|
7842
|
+
e.stopPropagation();
|
|
7843
|
+
e.preventDefault();
|
|
7844
|
+
var _dom3 = (_e$nativeEvent$path$4 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$4 === void 0 ? void 0 : _e$nativeEvent$path$4.getElementsByTagName('input')[currentIndex];
|
|
7845
|
+
if (_dom3) {
|
|
7846
|
+
_dom3.select();
|
|
7847
|
+
_dom3.focus();
|
|
7848
|
+
_dom3.scrollIntoView(false);
|
|
7849
|
+
}
|
|
7850
|
+
_dom3 = null;
|
|
7851
|
+
} else if (e.keyCode === 38) {
|
|
7852
|
+
var _e$nativeEvent$path$5;
|
|
7853
|
+
e.stopPropagation();
|
|
7854
|
+
e.preventDefault();
|
|
7855
|
+
var dom1 = (_e$nativeEvent$path$5 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$5 === void 0 ? void 0 : _e$nativeEvent$path$5.getElementsByTagName('input')[currentIndex];
|
|
7856
|
+
if (dom1) {
|
|
7857
|
+
// dom1.value=""
|
|
7858
|
+
// dom1.setSelectionRange(100, 0);
|
|
7859
|
+
dom1.select();
|
|
7860
|
+
dom1.focus();
|
|
7861
|
+
dom1.scrollIntoViewIfNeeded(false);
|
|
7862
|
+
// dom1.value=record['count']
|
|
7863
|
+
}
|
|
7864
|
+
dom1 = null;
|
|
7865
|
+
} else if (e.keyCode === 9 && index === selectedRowKeys.length - 1 && currentIndex === inputLength - 1) {
|
|
7866
|
+
e.stopPropagation();
|
|
7867
|
+
e.preventDefault();
|
|
7868
|
+
}
|
|
7869
|
+
}
|
|
7870
|
+
}));
|
|
7871
|
+
}
|
|
7835
7872
|
return /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2(_objectSpread2(_objectSpread2({}, inputProps), {}, {
|
|
7836
7873
|
value: text || '',
|
|
7837
7874
|
min: 0,
|
|
@@ -7849,16 +7886,16 @@ var AddSelect = function AddSelect(props) {
|
|
|
7849
7886
|
// }}
|
|
7850
7887
|
onKeyDown: function onKeyDown(e) {
|
|
7851
7888
|
if (e.keyCode === 13 && e.ctrlKey) {
|
|
7852
|
-
var _document$
|
|
7889
|
+
var _document$getElementB2;
|
|
7853
7890
|
handleOk(true);
|
|
7854
|
-
(_document$
|
|
7891
|
+
(_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
|
|
7855
7892
|
}
|
|
7856
7893
|
if (e.keyCode === 8 && e.ctrlKey) {
|
|
7857
|
-
var _e$nativeEvent$path
|
|
7894
|
+
var _e$nativeEvent$path$6;
|
|
7858
7895
|
antd.message.success('删除当前行');
|
|
7859
7896
|
e.stopPropagation();
|
|
7860
7897
|
e.preventDefault();
|
|
7861
|
-
var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path
|
|
7898
|
+
var dom = (_e$nativeEvent$path$6 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$6 === void 0 ? void 0 : _e$nativeEvent$path$6.getElementsByTagName('input')[currentIndex];
|
|
7862
7899
|
if (dom) {
|
|
7863
7900
|
dom.select();
|
|
7864
7901
|
dom.focus();
|
|
@@ -7868,47 +7905,47 @@ var AddSelect = function AddSelect(props) {
|
|
|
7868
7905
|
deleteRecord(record);
|
|
7869
7906
|
}
|
|
7870
7907
|
if (e.keyCode === 37 && e.shiftKey) {
|
|
7871
|
-
var _e$nativeEvent$path$
|
|
7908
|
+
var _e$nativeEvent$path$7;
|
|
7872
7909
|
// 左滑动
|
|
7873
7910
|
e.stopPropagation();
|
|
7874
7911
|
e.preventDefault();
|
|
7875
|
-
var
|
|
7876
|
-
if (
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
|
|
7912
|
+
var _dom4 = (_e$nativeEvent$path$7 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$7 === void 0 ? void 0 : _e$nativeEvent$path$7.getElementsByTagName('input')[currentIndex - 1];
|
|
7913
|
+
if (_dom4) {
|
|
7914
|
+
_dom4.select();
|
|
7915
|
+
_dom4.focus();
|
|
7916
|
+
_dom4.scrollIntoView(false);
|
|
7880
7917
|
}
|
|
7881
|
-
|
|
7918
|
+
_dom4 = null;
|
|
7882
7919
|
}
|
|
7883
7920
|
if (e.keyCode === 39 && e.shiftKey) {
|
|
7884
|
-
var _e$nativeEvent$path$
|
|
7921
|
+
var _e$nativeEvent$path$8;
|
|
7885
7922
|
// 右滑
|
|
7886
7923
|
e.stopPropagation();
|
|
7887
7924
|
e.preventDefault();
|
|
7888
|
-
var
|
|
7889
|
-
if (
|
|
7890
|
-
|
|
7891
|
-
|
|
7892
|
-
|
|
7925
|
+
var _dom5 = (_e$nativeEvent$path$8 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$8 === void 0 ? void 0 : _e$nativeEvent$path$8.getElementsByTagName('input')[currentIndex + 1];
|
|
7926
|
+
if (_dom5) {
|
|
7927
|
+
_dom5.select();
|
|
7928
|
+
_dom5.focus();
|
|
7929
|
+
_dom5.scrollIntoView(false);
|
|
7893
7930
|
}
|
|
7894
|
-
|
|
7931
|
+
_dom5 = null;
|
|
7895
7932
|
}
|
|
7896
7933
|
if (e.keyCode === 40) {
|
|
7897
|
-
var _e$nativeEvent$path$
|
|
7934
|
+
var _e$nativeEvent$path$9;
|
|
7898
7935
|
e.stopPropagation();
|
|
7899
7936
|
e.preventDefault();
|
|
7900
|
-
var
|
|
7901
|
-
if (
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
|
|
7937
|
+
var _dom6 = (_e$nativeEvent$path$9 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$9 === void 0 ? void 0 : _e$nativeEvent$path$9.getElementsByTagName('input')[currentIndex];
|
|
7938
|
+
if (_dom6) {
|
|
7939
|
+
_dom6.select();
|
|
7940
|
+
_dom6.focus();
|
|
7941
|
+
_dom6.scrollIntoView(false);
|
|
7905
7942
|
}
|
|
7906
|
-
|
|
7943
|
+
_dom6 = null;
|
|
7907
7944
|
} else if (e.keyCode === 38) {
|
|
7908
|
-
var _e$nativeEvent$path$
|
|
7945
|
+
var _e$nativeEvent$path$0;
|
|
7909
7946
|
e.stopPropagation();
|
|
7910
7947
|
e.preventDefault();
|
|
7911
|
-
var dom1 = (_e$nativeEvent$path$
|
|
7948
|
+
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];
|
|
7912
7949
|
if (dom1) {
|
|
7913
7950
|
// dom1.value=""
|
|
7914
7951
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -7942,19 +7979,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
7942
7979
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7943
7980
|
value: text || null,
|
|
7944
7981
|
onChange: function () {
|
|
7945
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
7946
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7947
|
-
return
|
|
7948
|
-
while (1) switch (
|
|
7982
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(value) {
|
|
7983
|
+
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules, _t2;
|
|
7984
|
+
return _regenerator().w(function (_context3) {
|
|
7985
|
+
while (1) switch (_context3.p = _context3.n) {
|
|
7949
7986
|
case 0:
|
|
7950
7987
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
7951
7988
|
return d[selectKey] == value;
|
|
7952
7989
|
})) || {};
|
|
7953
7990
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
7954
|
-
|
|
7991
|
+
_context3.n = 2;
|
|
7955
7992
|
break;
|
|
7956
7993
|
}
|
|
7957
|
-
|
|
7994
|
+
_context3.n = 1;
|
|
7958
7995
|
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, {
|
|
7959
7996
|
record: record,
|
|
7960
7997
|
index: index,
|
|
@@ -7964,10 +8001,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7964
8001
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
7965
8002
|
editRecord: editRecord
|
|
7966
8003
|
});
|
|
7967
|
-
case
|
|
7968
|
-
|
|
8004
|
+
case 1:
|
|
8005
|
+
_context3.n = 10;
|
|
7969
8006
|
break;
|
|
7970
|
-
case
|
|
8007
|
+
case 2:
|
|
7971
8008
|
// 更新当前行数据函数
|
|
7972
8009
|
changeValue = function changeValue(v, dSSItem) {
|
|
7973
8010
|
var _item$dataSourceSelec;
|
|
@@ -7980,12 +8017,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
7980
8017
|
}
|
|
7981
8018
|
}; // 处理校验,默认不校验
|
|
7982
8019
|
isCheckPass = true;
|
|
7983
|
-
|
|
8020
|
+
_context3.p = 3;
|
|
7984
8021
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
7985
|
-
|
|
8022
|
+
_context3.n = 5;
|
|
7986
8023
|
break;
|
|
7987
8024
|
}
|
|
7988
|
-
|
|
8025
|
+
_context3.n = 4;
|
|
7989
8026
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
7990
8027
|
record: record,
|
|
7991
8028
|
index: index,
|
|
@@ -7994,23 +8031,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
7994
8031
|
changeValue: value,
|
|
7995
8032
|
dataSourceSelectItem: dataSourceSelectItem
|
|
7996
8033
|
});
|
|
7997
|
-
case
|
|
7998
|
-
isCheckPass =
|
|
7999
|
-
|
|
8034
|
+
case 4:
|
|
8035
|
+
isCheckPass = _context3.v;
|
|
8036
|
+
_context3.n = 7;
|
|
8000
8037
|
break;
|
|
8001
|
-
case
|
|
8002
|
-
|
|
8038
|
+
case 5:
|
|
8039
|
+
_context3.n = 6;
|
|
8003
8040
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
8004
|
-
case
|
|
8005
|
-
isConformToTheRules =
|
|
8041
|
+
case 6:
|
|
8042
|
+
isConformToTheRules = _context3.v;
|
|
8006
8043
|
isCheckPass = !isConformToTheRules;
|
|
8007
|
-
case
|
|
8008
|
-
|
|
8044
|
+
case 7:
|
|
8045
|
+
_context3.n = 9;
|
|
8009
8046
|
break;
|
|
8010
|
-
case
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
case
|
|
8047
|
+
case 8:
|
|
8048
|
+
_context3.p = 8;
|
|
8049
|
+
_t2 = _context3.v;
|
|
8050
|
+
case 9:
|
|
8014
8051
|
if (isCheckPass) {
|
|
8015
8052
|
changeValue(value, dataSourceSelectItem);
|
|
8016
8053
|
} else {
|
|
@@ -8018,13 +8055,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
8018
8055
|
}
|
|
8019
8056
|
// 更新已选表格函数
|
|
8020
8057
|
editRecord(record);
|
|
8021
|
-
case
|
|
8022
|
-
|
|
8023
|
-
return _context2.stop();
|
|
8058
|
+
case 10:
|
|
8059
|
+
return _context3.a(2);
|
|
8024
8060
|
}
|
|
8025
|
-
},
|
|
8061
|
+
}, _callee3, null, [[3, 8]]);
|
|
8026
8062
|
}));
|
|
8027
|
-
function onChange(
|
|
8063
|
+
function onChange(_x8) {
|
|
8028
8064
|
return _onChange.apply(this, arguments);
|
|
8029
8065
|
}
|
|
8030
8066
|
return onChange;
|
|
@@ -8284,8 +8320,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
8284
8320
|
}
|
|
8285
8321
|
}
|
|
8286
8322
|
setTimeout(function () {
|
|
8287
|
-
var _document$
|
|
8288
|
-
(_document$
|
|
8323
|
+
var _document$getElementB3;
|
|
8324
|
+
(_document$getElementB3 = document.getElementById("first-query")) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
|
|
8289
8325
|
}, 50);
|
|
8290
8326
|
};
|
|
8291
8327
|
// 将格式化完的数据回显到 表格中
|
|
@@ -8315,7 +8351,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8315
8351
|
handleLoading(isContinue, true);
|
|
8316
8352
|
onSaveCallback(popvalue).then(function (res) {
|
|
8317
8353
|
{
|
|
8318
|
-
var _Object$keys2, _document$
|
|
8354
|
+
var _Object$keys2, _document$getElementB4;
|
|
8319
8355
|
// 成功信息可以在调用处处理 即resolve({messageSuccessBackInfo: { needThrowSuccess: false } })、resolve({messageSuccessBackInfo: { needThrowSuccess: true, successMessage: '已保存' } })
|
|
8320
8356
|
var initSuccessMessage = '保存成功';
|
|
8321
8357
|
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
@@ -8325,7 +8361,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8325
8361
|
antd.message.success(initSuccessMessage);
|
|
8326
8362
|
}
|
|
8327
8363
|
deleteSelectRows();
|
|
8328
|
-
(_document$
|
|
8364
|
+
(_document$getElementB4 = document.getElementById('first-query')) === null || _document$getElementB4 === void 0 ? void 0 : _document$getElementB4.focus();
|
|
8329
8365
|
!isContinue && handleCancel();
|
|
8330
8366
|
}
|
|
8331
8367
|
handleLoading(isContinue, false);
|
|
@@ -9413,29 +9449,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9413
9449
|
dataIndex: 'propertyNameAndValue'
|
|
9414
9450
|
}];
|
|
9415
9451
|
var _useState9 = React$1.useState(false),
|
|
9416
|
-
|
|
9417
|
-
isModalVisible =
|
|
9418
|
-
setIsModalVisible =
|
|
9419
|
-
var
|
|
9452
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
9453
|
+
isModalVisible = _useState0[0],
|
|
9454
|
+
setIsModalVisible = _useState0[1];
|
|
9455
|
+
var _useState1 = React$1.useState([{
|
|
9420
9456
|
hovered: false
|
|
9421
9457
|
}]),
|
|
9422
|
-
|
|
9423
|
-
data =
|
|
9424
|
-
setData =
|
|
9458
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
9459
|
+
data = _useState10[0],
|
|
9460
|
+
setData = _useState10[1];
|
|
9425
9461
|
var tableRef = React$1.useRef(null);
|
|
9426
9462
|
var codeSelected = tableCode;
|
|
9427
|
-
var
|
|
9463
|
+
var _useState11 = React$1.useState(false),
|
|
9464
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9465
|
+
loading = _useState12[0],
|
|
9466
|
+
setLoading = _useState12[1];
|
|
9467
|
+
var _useState13 = React$1.useState([]),
|
|
9428
9468
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9429
|
-
|
|
9430
|
-
|
|
9469
|
+
selectColumns = _useState14[0],
|
|
9470
|
+
setSelectColumns = _useState14[1];
|
|
9431
9471
|
var _useState15 = React$1.useState([]),
|
|
9432
9472
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9433
|
-
|
|
9434
|
-
|
|
9435
|
-
var _useState17 = React$1.useState([]),
|
|
9436
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
9437
|
-
showColumns = _useState18[0],
|
|
9438
|
-
setShowColumns = _useState18[1];
|
|
9473
|
+
showColumns = _useState16[0],
|
|
9474
|
+
setShowColumns = _useState16[1];
|
|
9439
9475
|
React$1.useEffect(function () {
|
|
9440
9476
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9441
9477
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9551,42 +9587,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9551
9587
|
});
|
|
9552
9588
|
};
|
|
9553
9589
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9554
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9590
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
9555
9591
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9556
|
-
return
|
|
9557
|
-
while (1) switch (_context.
|
|
9592
|
+
return _regenerator().w(function (_context) {
|
|
9593
|
+
while (1) switch (_context.n) {
|
|
9558
9594
|
case 0:
|
|
9559
9595
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9560
|
-
_context.
|
|
9596
|
+
_context.n = 1;
|
|
9561
9597
|
break;
|
|
9562
9598
|
}
|
|
9563
9599
|
antd.message.warning('至少录入一条数据');
|
|
9564
|
-
return _context.
|
|
9565
|
-
case
|
|
9600
|
+
return _context.a(2);
|
|
9601
|
+
case 1:
|
|
9566
9602
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9567
9603
|
return d.skuCode && d.name;
|
|
9568
9604
|
})) {
|
|
9569
|
-
_context.
|
|
9605
|
+
_context.n = 2;
|
|
9570
9606
|
break;
|
|
9571
9607
|
}
|
|
9572
9608
|
antd.message.warning('录入商品不存在');
|
|
9573
|
-
return _context.
|
|
9574
|
-
case
|
|
9609
|
+
return _context.a(2);
|
|
9610
|
+
case 2:
|
|
9575
9611
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9576
9612
|
return d.count;
|
|
9577
9613
|
})) {
|
|
9578
|
-
_context.
|
|
9614
|
+
_context.n = 3;
|
|
9579
9615
|
break;
|
|
9580
9616
|
}
|
|
9581
9617
|
antd.message.warning('请填写商品数量!');
|
|
9582
|
-
return _context.
|
|
9583
|
-
case
|
|
9584
|
-
_context.
|
|
9618
|
+
return _context.a(2);
|
|
9619
|
+
case 3:
|
|
9620
|
+
_context.n = 4;
|
|
9585
9621
|
return isSkuCanEntry(data);
|
|
9586
|
-
case
|
|
9587
|
-
canEntryObject = _context.
|
|
9622
|
+
case 4:
|
|
9623
|
+
canEntryObject = _context.v;
|
|
9588
9624
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9589
|
-
_context.
|
|
9625
|
+
_context.n = 5;
|
|
9590
9626
|
break;
|
|
9591
9627
|
}
|
|
9592
9628
|
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) {
|
|
@@ -9596,8 +9632,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9596
9632
|
content: messageInfo,
|
|
9597
9633
|
duration: 6
|
|
9598
9634
|
});
|
|
9599
|
-
return _context.
|
|
9600
|
-
case
|
|
9635
|
+
return _context.a(2);
|
|
9636
|
+
case 5:
|
|
9601
9637
|
setLoading(true);
|
|
9602
9638
|
onSaveCallback(data).then(function (res) {
|
|
9603
9639
|
{
|
|
@@ -9615,9 +9651,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9615
9651
|
antd.message.error(Error);
|
|
9616
9652
|
setLoading(false);
|
|
9617
9653
|
});
|
|
9618
|
-
case
|
|
9619
|
-
|
|
9620
|
-
return _context.stop();
|
|
9654
|
+
case 6:
|
|
9655
|
+
return _context.a(2);
|
|
9621
9656
|
}
|
|
9622
9657
|
}, _callee);
|
|
9623
9658
|
}));
|
|
@@ -10013,31 +10048,36 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10013
10048
|
});
|
|
10014
10049
|
};
|
|
10015
10050
|
// 格式化树选择器数据源
|
|
10016
|
-
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
10017
|
-
var haveChildren = Array.isArray(treeDataItem
|
|
10051
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge, childrenKey) {
|
|
10052
|
+
var haveChildren = Array.isArray(treeDataItem[childrenKey]) && treeDataItem[childrenKey].length > 0;
|
|
10018
10053
|
return {
|
|
10019
10054
|
title: treeDataItem[resKeyValue[1]],
|
|
10020
10055
|
value: treeDataItem[resKeyValue[0]],
|
|
10021
10056
|
parentId: treeDataItem.parent,
|
|
10022
10057
|
data: _objectSpread2({}, treeDataItem),
|
|
10023
10058
|
isLeaf: !haveChildren,
|
|
10024
|
-
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
10025
|
-
children: haveChildren ? treeDataItem.
|
|
10026
|
-
return _mapSearchTree(i, resKeyValue, disabledJudge);
|
|
10059
|
+
disabled: disabledJudge !== undefined ? _.isBoolean(disabledJudge) ? disabledJudge : disabledJudge(treeDataItem) : haveChildren,
|
|
10060
|
+
children: haveChildren ? treeDataItem[childrenKey].map(function (i) {
|
|
10061
|
+
return _mapSearchTree(i, resKeyValue, disabledJudge, childrenKey);
|
|
10027
10062
|
}) : []
|
|
10028
10063
|
};
|
|
10029
10064
|
};
|
|
10030
10065
|
var formatTreeDataSource = function formatTreeDataSource(reData, position, changePosition, changeSearchForm) {
|
|
10031
10066
|
var _reData$position2;
|
|
10032
10067
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
10068
|
+
var childrenKey = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 'children';
|
|
10069
|
+
var nodeDisabledJudge = arguments.length > 6 ? arguments[6] : undefined;
|
|
10033
10070
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
10034
10071
|
var disabledJudge;
|
|
10035
10072
|
if (data && _typeof(data) === 'object' && !Array.isArray(data) && Object.keys(data).length > 0) {
|
|
10036
10073
|
data = [data];
|
|
10037
10074
|
disabledJudge = false;
|
|
10038
10075
|
}
|
|
10076
|
+
if (nodeDisabledJudge) {
|
|
10077
|
+
disabledJudge = nodeDisabledJudge;
|
|
10078
|
+
}
|
|
10039
10079
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
10040
|
-
return _mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
10080
|
+
return _mapSearchTree(ites, resKeyValue, disabledJudge, childrenKey);
|
|
10041
10081
|
}) || [];
|
|
10042
10082
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
10043
10083
|
};
|
|
@@ -10498,10 +10538,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10498
10538
|
selectProps = _objectSpread2({
|
|
10499
10539
|
placeholder: '输入商品(SPU)编码或名称',
|
|
10500
10540
|
renderTableColumns: [{
|
|
10501
|
-
title: '
|
|
10541
|
+
title: 'SPU编码',
|
|
10502
10542
|
dataIndex: 'itemCode'
|
|
10503
10543
|
}, {
|
|
10504
|
-
title: '
|
|
10544
|
+
title: 'SPU名称',
|
|
10505
10545
|
dataIndex: 'name'
|
|
10506
10546
|
}]
|
|
10507
10547
|
}, selectConfigProps);
|
|
@@ -10518,11 +10558,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10518
10558
|
}, requestConfigProp);
|
|
10519
10559
|
tableSearchForm = [{
|
|
10520
10560
|
name: 'itemCode*multiInput',
|
|
10521
|
-
label: '
|
|
10561
|
+
label: 'SPU编码',
|
|
10522
10562
|
type: 'multipleQueryInput'
|
|
10523
10563
|
}, {
|
|
10524
10564
|
name: 'name*multiInput',
|
|
10525
|
-
label: '
|
|
10565
|
+
label: 'SPU名称',
|
|
10526
10566
|
type: 'multipleQueryInput'
|
|
10527
10567
|
}, {
|
|
10528
10568
|
name: 'qp-brandId-in',
|
|
@@ -10616,11 +10656,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10616
10656
|
dataIndex: 'keyIndex',
|
|
10617
10657
|
defaultSort: 0
|
|
10618
10658
|
}, {
|
|
10619
|
-
title: '
|
|
10659
|
+
title: 'SPU编码',
|
|
10620
10660
|
dataIndex: 'itemCode',
|
|
10621
10661
|
defaultSort: 1
|
|
10622
10662
|
}, {
|
|
10623
|
-
title: '
|
|
10663
|
+
title: 'SPU名称',
|
|
10624
10664
|
dataIndex: 'name',
|
|
10625
10665
|
defaultSort: 2
|
|
10626
10666
|
}, {
|
|
@@ -10974,7 +11014,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10974
11014
|
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-brandId-in')
|
|
10975
11015
|
}], ['colorName', 'categoryId', 'classId', 'brandId'], hiddenFields);
|
|
10976
11016
|
var fieldLoadSource = fieldsRequest.map(function (i) {
|
|
10977
|
-
return loadSelectSource$1(i.url, i.params, options);
|
|
11017
|
+
return loadSelectSource$1(i.url, i.params, i.options);
|
|
10978
11018
|
});
|
|
10979
11019
|
requestConfig = _objectSpread2({
|
|
10980
11020
|
url: "".concat(prefixUrl.selectPrefix, "/skc/skcSelect"),
|
|
@@ -11188,6 +11228,26 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11188
11228
|
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
11189
11229
|
sourceName: 'warehouseIds'
|
|
11190
11230
|
}, requestConfigProp);
|
|
11231
|
+
var _queryHeaderParams7 = getQueryHeadersList({
|
|
11232
|
+
querySelectHeadersList: querySelectHeadersList,
|
|
11233
|
+
extralHeaders: extralHeaders
|
|
11234
|
+
});
|
|
11235
|
+
Promise.all([loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11236
|
+
'qp-status-eq': 10,
|
|
11237
|
+
'qp-isMain-eq': 1,
|
|
11238
|
+
'qp-type-in': '1,2'
|
|
11239
|
+
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11240
|
+
'qp-status-eq': 1
|
|
11241
|
+
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in'))]).then(function (x) {
|
|
11242
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11243
|
+
return data['parentCode'] === '0';
|
|
11244
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11245
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
11246
|
+
return data['parent'] === '0';
|
|
11247
|
+
}; // 所属营销区域 树节点不能点判断
|
|
11248
|
+
formatTreeDataSource(x, 0, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11249
|
+
formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
11250
|
+
});
|
|
11191
11251
|
tableSearchForm = [{
|
|
11192
11252
|
name: 'realWarehouseName*multiInput',
|
|
11193
11253
|
label: '逻辑仓名称',
|
|
@@ -11211,6 +11271,70 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11211
11271
|
},
|
|
11212
11272
|
label: '管理大区',
|
|
11213
11273
|
initialSource: getDictionarySource$1('BUSINESS_belongArea')
|
|
11274
|
+
}, {
|
|
11275
|
+
name: 'qp-channelCode-in',
|
|
11276
|
+
type: 'treeSelect',
|
|
11277
|
+
label: '销售渠道',
|
|
11278
|
+
field: {
|
|
11279
|
+
type: 'treeSelect',
|
|
11280
|
+
props: {
|
|
11281
|
+
multiple: true,
|
|
11282
|
+
treeData: [],
|
|
11283
|
+
treeCheckable: false,
|
|
11284
|
+
notFoundContent: '暂无数据',
|
|
11285
|
+
allowClear: true,
|
|
11286
|
+
showSearch: true,
|
|
11287
|
+
showArrow: true,
|
|
11288
|
+
maxTagCount: 1,
|
|
11289
|
+
optionFilterProp: 'children',
|
|
11290
|
+
filterOption: function filterOption(input, option) {
|
|
11291
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11292
|
+
},
|
|
11293
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11294
|
+
}
|
|
11295
|
+
}
|
|
11296
|
+
}, {
|
|
11297
|
+
name: 'qp-refCode-in',
|
|
11298
|
+
type: 'treeSelect',
|
|
11299
|
+
label: '营销区域',
|
|
11300
|
+
field: {
|
|
11301
|
+
type: 'treeSelect',
|
|
11302
|
+
props: {
|
|
11303
|
+
multiple: true,
|
|
11304
|
+
treeData: [],
|
|
11305
|
+
treeCheckable: false,
|
|
11306
|
+
notFoundContent: '暂无数据',
|
|
11307
|
+
allowClear: true,
|
|
11308
|
+
showSearch: true,
|
|
11309
|
+
showArrow: true,
|
|
11310
|
+
maxTagCount: 1,
|
|
11311
|
+
optionFilterProp: 'children',
|
|
11312
|
+
filterOption: function filterOption(input, option) {
|
|
11313
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11314
|
+
},
|
|
11315
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11316
|
+
}
|
|
11317
|
+
}
|
|
11318
|
+
}, {
|
|
11319
|
+
name: 'qp-type-in',
|
|
11320
|
+
type: 'select',
|
|
11321
|
+
label: '店铺性质',
|
|
11322
|
+
field: {
|
|
11323
|
+
type: 'select',
|
|
11324
|
+
props: {
|
|
11325
|
+
mode: 'multiple',
|
|
11326
|
+
notFoundContent: '暂无数据',
|
|
11327
|
+
allowClear: true,
|
|
11328
|
+
showSearch: true,
|
|
11329
|
+
showArrow: true,
|
|
11330
|
+
maxTagCount: 1,
|
|
11331
|
+
optionFilterProp: 'children',
|
|
11332
|
+
filterOption: function filterOption(input, option) {
|
|
11333
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11334
|
+
}
|
|
11335
|
+
}
|
|
11336
|
+
},
|
|
11337
|
+
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
11214
11338
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11215
11339
|
name: 'qp-isEnable-eq',
|
|
11216
11340
|
type: 'select',
|
|
@@ -11239,10 +11363,36 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11239
11363
|
render: function render(text) {
|
|
11240
11364
|
return getDictionaryTextByValue$1('SC00004', text);
|
|
11241
11365
|
}
|
|
11366
|
+
}, {
|
|
11367
|
+
title: '运营组名称',
|
|
11368
|
+
dataIndex: 'groupCode',
|
|
11369
|
+
defaultSort: 7,
|
|
11370
|
+
render: function render(text, record) {
|
|
11371
|
+
return (record === null || record === void 0 ? void 0 : record.groupName) ? "\u3010".concat(text, "\u3011").concat(record === null || record === void 0 ? void 0 : record.groupName) : "";
|
|
11372
|
+
},
|
|
11373
|
+
width: 100
|
|
11374
|
+
}, {
|
|
11375
|
+
title: '所属销售渠道',
|
|
11376
|
+
dataIndex: 'channelName',
|
|
11377
|
+
defaultSort: 4,
|
|
11378
|
+
width: 100
|
|
11379
|
+
}, {
|
|
11380
|
+
title: '营销区域',
|
|
11381
|
+
dataIndex: 'commonRelationAreaName',
|
|
11382
|
+
defaultSort: 5,
|
|
11383
|
+
width: 100
|
|
11384
|
+
}, {
|
|
11385
|
+
title: '店铺性质',
|
|
11386
|
+
dataIndex: 'type',
|
|
11387
|
+
defaultSort: 6,
|
|
11388
|
+
render: function render(text) {
|
|
11389
|
+
return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
|
|
11390
|
+
},
|
|
11391
|
+
width: 80
|
|
11242
11392
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11243
11393
|
title: '状态',
|
|
11244
11394
|
dataIndex: 'isEnable',
|
|
11245
|
-
defaultSort:
|
|
11395
|
+
defaultSort: 8,
|
|
11246
11396
|
render: function render(text) {
|
|
11247
11397
|
return getDictionaryTextByValue$1('SC00001', text);
|
|
11248
11398
|
}
|
|
@@ -11302,20 +11452,50 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11302
11452
|
}
|
|
11303
11453
|
}
|
|
11304
11454
|
}
|
|
11455
|
+
}, {
|
|
11456
|
+
name: 'qp-channelCode-in',
|
|
11457
|
+
type: 'treeSelect',
|
|
11458
|
+
label: '销售渠道',
|
|
11459
|
+
field: {
|
|
11460
|
+
type: 'treeSelect',
|
|
11461
|
+
props: {
|
|
11462
|
+
multiple: true,
|
|
11463
|
+
treeData: [],
|
|
11464
|
+
treeCheckable: false,
|
|
11465
|
+
notFoundContent: '暂无数据',
|
|
11466
|
+
allowClear: true,
|
|
11467
|
+
showSearch: true,
|
|
11468
|
+
showArrow: true,
|
|
11469
|
+
maxTagCount: 1,
|
|
11470
|
+
optionFilterProp: 'children',
|
|
11471
|
+
filterOption: function filterOption(input, option) {
|
|
11472
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11473
|
+
},
|
|
11474
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11475
|
+
}
|
|
11476
|
+
}
|
|
11305
11477
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11306
11478
|
name: 'qp-status-eq',
|
|
11307
11479
|
type: 'select',
|
|
11308
11480
|
label: '运营仓状态',
|
|
11309
11481
|
initialSource: getDictionarySource$1('SC00001')
|
|
11310
11482
|
}] : []));
|
|
11311
|
-
var
|
|
11483
|
+
var _queryHeaderParams8 = getQueryHeadersList({
|
|
11312
11484
|
querySelectHeadersList: querySelectHeadersList,
|
|
11313
11485
|
extralHeaders: extralHeaders
|
|
11314
11486
|
});
|
|
11315
11487
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
|
|
11316
11488
|
'qp-status-eq': 1
|
|
11317
|
-
}, getQueryHeadersItem(
|
|
11489
|
+
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-groupCode-in')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11490
|
+
'qp-status-eq': 10,
|
|
11491
|
+
'qp-isMain-eq': 1,
|
|
11492
|
+
'qp-type-in': '1,2'
|
|
11493
|
+
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-orgCode-in'))]).then(function (x) {
|
|
11318
11494
|
formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
|
|
11495
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11496
|
+
return data['parentCode'] === '0';
|
|
11497
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11498
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11319
11499
|
});
|
|
11320
11500
|
modalTableProps = _objectSpread2({
|
|
11321
11501
|
modalTableTitle: '选择运营仓',
|
|
@@ -11343,7 +11523,12 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11343
11523
|
render: function render(text) {
|
|
11344
11524
|
return getDictionaryTextByValue$1('SC00001', text);
|
|
11345
11525
|
}
|
|
11346
|
-
}] : [])
|
|
11526
|
+
}] : []), [{
|
|
11527
|
+
title: '所属销售渠道',
|
|
11528
|
+
dataIndex: 'channelName',
|
|
11529
|
+
defaultSort: 5,
|
|
11530
|
+
width: 100
|
|
11531
|
+
}])
|
|
11347
11532
|
}, modalTableBusProps);
|
|
11348
11533
|
}
|
|
11349
11534
|
// 仓库选择器(虚拟、渠道仓)(无弹窗)
|
|
@@ -11492,7 +11677,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11492
11677
|
label: '共享类型',
|
|
11493
11678
|
initialSource: sharingTypeDataList
|
|
11494
11679
|
}];
|
|
11495
|
-
var
|
|
11680
|
+
var _queryHeaderParams9 = getQueryHeadersList({
|
|
11496
11681
|
querySelectHeadersList: querySelectHeadersList,
|
|
11497
11682
|
extralHeaders: extralHeaders
|
|
11498
11683
|
});
|
|
@@ -11500,14 +11685,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11500
11685
|
pageSize: 5000,
|
|
11501
11686
|
currentPage: 1,
|
|
11502
11687
|
'qp-companyType-eq': '30'
|
|
11503
|
-
}, getQueryHeadersItem(
|
|
11688
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
11504
11689
|
pageSize: 5000,
|
|
11505
11690
|
currentPage: 1
|
|
11506
|
-
}, getQueryHeadersItem(
|
|
11691
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-accountingCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
11507
11692
|
pageSize: 5000,
|
|
11508
11693
|
currentPage: 1,
|
|
11509
11694
|
'qp-companyType-eq': '20'
|
|
11510
|
-
}, getQueryHeadersItem(
|
|
11695
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-sharingType-in'))]).then(function (x) {
|
|
11511
11696
|
formatSource(x, 0, 2, tableSearchForm);
|
|
11512
11697
|
formatSource(x, 1, 3, tableSearchForm);
|
|
11513
11698
|
formatSource(x, 2, 4, tableSearchForm);
|
|
@@ -11619,16 +11804,74 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11619
11804
|
}
|
|
11620
11805
|
}
|
|
11621
11806
|
}
|
|
11807
|
+
}, {
|
|
11808
|
+
name: 'qp-saleChannel-in',
|
|
11809
|
+
type: 'treeSelect',
|
|
11810
|
+
label: '销售渠道',
|
|
11811
|
+
field: {
|
|
11812
|
+
type: 'treeSelect',
|
|
11813
|
+
props: {
|
|
11814
|
+
multiple: true,
|
|
11815
|
+
treeData: [],
|
|
11816
|
+
treeCheckable: false,
|
|
11817
|
+
notFoundContent: '暂无数据',
|
|
11818
|
+
allowClear: true,
|
|
11819
|
+
showSearch: true,
|
|
11820
|
+
showArrow: true,
|
|
11821
|
+
maxTagCount: 1,
|
|
11822
|
+
optionFilterProp: 'children',
|
|
11823
|
+
filterOption: function filterOption(input, option) {
|
|
11824
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11825
|
+
},
|
|
11826
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11827
|
+
}
|
|
11828
|
+
}
|
|
11829
|
+
}, {
|
|
11830
|
+
name: 'qp-refCode-in',
|
|
11831
|
+
type: 'treeSelect',
|
|
11832
|
+
label: '营销区域',
|
|
11833
|
+
field: {
|
|
11834
|
+
type: 'treeSelect',
|
|
11835
|
+
props: {
|
|
11836
|
+
multiple: true,
|
|
11837
|
+
treeData: [],
|
|
11838
|
+
treeCheckable: false,
|
|
11839
|
+
notFoundContent: '暂无数据',
|
|
11840
|
+
allowClear: true,
|
|
11841
|
+
showSearch: true,
|
|
11842
|
+
showArrow: true,
|
|
11843
|
+
maxTagCount: 1,
|
|
11844
|
+
optionFilterProp: 'children',
|
|
11845
|
+
filterOption: function filterOption(input, option) {
|
|
11846
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11847
|
+
},
|
|
11848
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11849
|
+
}
|
|
11850
|
+
}
|
|
11622
11851
|
}];
|
|
11623
|
-
var
|
|
11852
|
+
var _queryHeaderParams0 = getQueryHeadersList({
|
|
11624
11853
|
querySelectHeadersList: querySelectHeadersList,
|
|
11625
11854
|
extralHeaders: extralHeaders
|
|
11626
11855
|
});
|
|
11627
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(
|
|
11856
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams0, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11857
|
+
'qp-status-eq': 10,
|
|
11858
|
+
'qp-isMain-eq': 1,
|
|
11859
|
+
'qp-type-in': '1,2'
|
|
11860
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11861
|
+
'qp-status-eq': 1
|
|
11862
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in'))]).then(function (x) {
|
|
11628
11863
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
11629
11864
|
var allList = firstElement && [firstElement, firstElement];
|
|
11630
11865
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
11631
11866
|
formatSource(allList, 1, 3, tableSearchForm);
|
|
11867
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11868
|
+
return data['parentCode'] === '0';
|
|
11869
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11870
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
11871
|
+
return data['parent'] === '0';
|
|
11872
|
+
}; // 所属营销区域 树节点不能点判断
|
|
11873
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11874
|
+
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
11632
11875
|
});
|
|
11633
11876
|
modalTableProps = _objectSpread2({
|
|
11634
11877
|
modalTableTitle: '选择客户',
|
|
@@ -11652,7 +11895,18 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11652
11895
|
}, {
|
|
11653
11896
|
title: '使用组织',
|
|
11654
11897
|
dataIndex: 'salesOrgName',
|
|
11655
|
-
defaultSort: 4
|
|
11898
|
+
defaultSort: 4,
|
|
11899
|
+
width: 100
|
|
11900
|
+
}, {
|
|
11901
|
+
title: '所属销售渠道',
|
|
11902
|
+
dataIndex: 'channelName',
|
|
11903
|
+
defaultSort: 5,
|
|
11904
|
+
width: 100
|
|
11905
|
+
}, {
|
|
11906
|
+
title: '营销区域',
|
|
11907
|
+
dataIndex: 'commonRelationAreaName',
|
|
11908
|
+
defaultSort: 6,
|
|
11909
|
+
width: 100
|
|
11656
11910
|
}]
|
|
11657
11911
|
}, modalTableBusProps);
|
|
11658
11912
|
}
|
|
@@ -11680,12 +11934,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11680
11934
|
sourceName: 'code'
|
|
11681
11935
|
}, requestConfigProp);
|
|
11682
11936
|
tableSearchForm = [{
|
|
11683
|
-
name: '
|
|
11684
|
-
label: '店铺名称'
|
|
11685
|
-
|
|
11686
|
-
name: 'qp-code-like',
|
|
11687
|
-
label: '店铺编码'
|
|
11937
|
+
name: 'name*multiInput',
|
|
11938
|
+
label: '店铺名称',
|
|
11939
|
+
type: 'multipleQueryInput'
|
|
11688
11940
|
}, {
|
|
11941
|
+
name: 'code*multiInput',
|
|
11942
|
+
label: '店铺编码',
|
|
11943
|
+
type: 'multipleQueryInput'
|
|
11944
|
+
},
|
|
11945
|
+
// { name: 'qp-name-like', label: '店铺名称' },
|
|
11946
|
+
// { name: 'qp-code-like', label: '店铺编码' },
|
|
11947
|
+
{
|
|
11689
11948
|
name: 'qp-conglomerateCode-in',
|
|
11690
11949
|
type: 'select',
|
|
11691
11950
|
label: '归属集团',
|
|
@@ -11786,7 +12045,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11786
12045
|
}
|
|
11787
12046
|
}
|
|
11788
12047
|
}];
|
|
11789
|
-
var
|
|
12048
|
+
var _queryHeaderParams1 = getQueryHeadersList({
|
|
11790
12049
|
querySelectHeadersList: querySelectHeadersList,
|
|
11791
12050
|
extralHeaders: extralHeaders
|
|
11792
12051
|
});
|
|
@@ -11794,21 +12053,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11794
12053
|
pageSize: 5000,
|
|
11795
12054
|
currentPage: 1,
|
|
11796
12055
|
'qp-companyType-eq': '30'
|
|
11797
|
-
}, getQueryHeadersItem(
|
|
12056
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
11798
12057
|
pageSize: 5000,
|
|
11799
12058
|
currentPage: 1,
|
|
11800
12059
|
'qp-companyType-eq': '20'
|
|
11801
|
-
}, getQueryHeadersItem(
|
|
12060
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
11802
12061
|
// pageSize: 5000,
|
|
11803
12062
|
// currentPage: 1,
|
|
11804
12063
|
'qp-status-eq': '1'
|
|
11805
|
-
}, getQueryHeadersItem(
|
|
12064
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
11806
12065
|
pageSize: 5000,
|
|
11807
12066
|
currentPage: 1
|
|
11808
|
-
}, getQueryHeadersItem(
|
|
12067
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
11809
12068
|
pageSize: 5000,
|
|
11810
12069
|
currentPage: 1
|
|
11811
|
-
}, getQueryHeadersItem(
|
|
12070
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-accountingCode-in'))]).then(function (x) {
|
|
11812
12071
|
formatSource(x, 0, 2, tableSearchForm);
|
|
11813
12072
|
formatSource(x, 1, 3, tableSearchForm);
|
|
11814
12073
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -11874,7 +12133,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11874
12133
|
mappingTextField: 'name',
|
|
11875
12134
|
mappingValueField: 'code',
|
|
11876
12135
|
otherParams: _objectSpread2({
|
|
11877
|
-
sorter: 'desc-id'
|
|
12136
|
+
sorter: 'desc-id',
|
|
12137
|
+
'qp-status-in': 10
|
|
11878
12138
|
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
11879
12139
|
sourceName: 'code'
|
|
11880
12140
|
}, requestConfigProp);
|
|
@@ -11891,12 +12151,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11891
12151
|
type: 'select',
|
|
11892
12152
|
label: '商店类型',
|
|
11893
12153
|
initialSource: shopFile2Type
|
|
11894
|
-
},
|
|
11895
|
-
|
|
11896
|
-
|
|
11897
|
-
label: '商店状态',
|
|
11898
|
-
initialSource: shopFile2Status
|
|
11899
|
-
}, {
|
|
12154
|
+
},
|
|
12155
|
+
// { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
|
|
12156
|
+
{
|
|
11900
12157
|
name: 'qp-orgCode-in',
|
|
11901
12158
|
type: 'select',
|
|
11902
12159
|
label: '所属销售组织',
|
|
@@ -11915,8 +12172,90 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11915
12172
|
}
|
|
11916
12173
|
}
|
|
11917
12174
|
}
|
|
12175
|
+
}, {
|
|
12176
|
+
name: 'qp-channelCode-in',
|
|
12177
|
+
type: 'treeSelect',
|
|
12178
|
+
label: '所属销售渠道',
|
|
12179
|
+
field: {
|
|
12180
|
+
type: 'treeSelect',
|
|
12181
|
+
props: {
|
|
12182
|
+
multiple: true,
|
|
12183
|
+
treeData: [],
|
|
12184
|
+
treeCheckable: false,
|
|
12185
|
+
notFoundContent: '暂无数据',
|
|
12186
|
+
allowClear: true,
|
|
12187
|
+
showSearch: true,
|
|
12188
|
+
showArrow: true,
|
|
12189
|
+
maxTagCount: 1,
|
|
12190
|
+
optionFilterProp: 'children',
|
|
12191
|
+
filterOption: function filterOption(input, option) {
|
|
12192
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12193
|
+
},
|
|
12194
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
12195
|
+
}
|
|
12196
|
+
}
|
|
12197
|
+
}, {
|
|
12198
|
+
name: 'qp-commonRelationAreaCode-in',
|
|
12199
|
+
type: 'treeSelect',
|
|
12200
|
+
label: '营销区域',
|
|
12201
|
+
field: {
|
|
12202
|
+
type: 'treeSelect',
|
|
12203
|
+
props: {
|
|
12204
|
+
multiple: true,
|
|
12205
|
+
treeData: [],
|
|
12206
|
+
treeCheckable: false,
|
|
12207
|
+
notFoundContent: '暂无数据',
|
|
12208
|
+
allowClear: true,
|
|
12209
|
+
showSearch: true,
|
|
12210
|
+
showArrow: true,
|
|
12211
|
+
maxTagCount: 1,
|
|
12212
|
+
optionFilterProp: 'children',
|
|
12213
|
+
filterOption: function filterOption(input, option) {
|
|
12214
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12215
|
+
},
|
|
12216
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
12217
|
+
}
|
|
12218
|
+
}
|
|
12219
|
+
}, {
|
|
12220
|
+
name: 'qp-businessType-in',
|
|
12221
|
+
type: 'select',
|
|
12222
|
+
label: '店铺性质',
|
|
12223
|
+
field: {
|
|
12224
|
+
type: 'select',
|
|
12225
|
+
props: {
|
|
12226
|
+
mode: 'multiple',
|
|
12227
|
+
notFoundContent: '暂无数据',
|
|
12228
|
+
allowClear: true,
|
|
12229
|
+
showSearch: true,
|
|
12230
|
+
showArrow: true,
|
|
12231
|
+
maxTagCount: 1,
|
|
12232
|
+
optionFilterProp: 'children',
|
|
12233
|
+
filterOption: function filterOption(input, option) {
|
|
12234
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12235
|
+
}
|
|
12236
|
+
}
|
|
12237
|
+
},
|
|
12238
|
+
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
12239
|
+
}, {
|
|
12240
|
+
name: "qp-brandCode-in",
|
|
12241
|
+
label: "品牌",
|
|
12242
|
+
field: {
|
|
12243
|
+
type: 'select',
|
|
12244
|
+
props: {
|
|
12245
|
+
mode: 'multiple',
|
|
12246
|
+
notFoundContent: '暂无数据',
|
|
12247
|
+
allowClear: true,
|
|
12248
|
+
showSearch: true,
|
|
12249
|
+
showArrow: true,
|
|
12250
|
+
maxTagCount: 1,
|
|
12251
|
+
optionFilterProp: 'children',
|
|
12252
|
+
filterOption: function filterOption(input, option) {
|
|
12253
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12254
|
+
}
|
|
12255
|
+
}
|
|
12256
|
+
}
|
|
11918
12257
|
}];
|
|
11919
|
-
var
|
|
12258
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
11920
12259
|
querySelectHeadersList: querySelectHeadersList,
|
|
11921
12260
|
extralHeaders: extralHeaders
|
|
11922
12261
|
});
|
|
@@ -11924,8 +12263,27 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11924
12263
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
11925
12264
|
'qp-realOrg-eq': true,
|
|
11926
12265
|
'qp-status-eq': 10
|
|
11927
|
-
}, getQueryHeadersItem(
|
|
11928
|
-
|
|
12266
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12267
|
+
'qp-status-eq': 10,
|
|
12268
|
+
'qp-isMain-eq': 1,
|
|
12269
|
+
'qp-type-in': '1,2'
|
|
12270
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12271
|
+
'qp-status-eq': 1
|
|
12272
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
12273
|
+
pageSize: 5000,
|
|
12274
|
+
currentPage: 1,
|
|
12275
|
+
'ctl-withAuth': true
|
|
12276
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth'))]).then(function (x) {
|
|
12277
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12278
|
+
return data['parentCode'] === '0';
|
|
12279
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
12280
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
12281
|
+
return data['parent'] === '0';
|
|
12282
|
+
}; // 所属营销区域 树节点不能点判断
|
|
12283
|
+
formatSource(x, 0, 3, tableSearchForm);
|
|
12284
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12285
|
+
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
12286
|
+
formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
|
|
11929
12287
|
});
|
|
11930
12288
|
modalTableProps = _objectSpread2({
|
|
11931
12289
|
modalTableTitle: '选择商店',
|
|
@@ -11933,19 +12291,23 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11933
12291
|
tableColumns: [{
|
|
11934
12292
|
title: '序号',
|
|
11935
12293
|
dataIndex: 'keyIndex',
|
|
11936
|
-
defaultSort: 0
|
|
12294
|
+
defaultSort: 0,
|
|
12295
|
+
width: 60
|
|
11937
12296
|
}, {
|
|
11938
12297
|
title: '商店编码',
|
|
11939
12298
|
dataIndex: 'code',
|
|
11940
|
-
defaultSort: 1
|
|
12299
|
+
defaultSort: 1,
|
|
12300
|
+
width: 100
|
|
11941
12301
|
}, {
|
|
11942
12302
|
title: '商店名称',
|
|
11943
12303
|
dataIndex: 'name',
|
|
11944
|
-
defaultSort: 2
|
|
12304
|
+
defaultSort: 2,
|
|
12305
|
+
width: 120
|
|
11945
12306
|
}, {
|
|
11946
12307
|
title: '商店类型',
|
|
11947
12308
|
dataIndex: 'type',
|
|
11948
12309
|
defaultSort: 3,
|
|
12310
|
+
width: 100,
|
|
11949
12311
|
render: function render(text) {
|
|
11950
12312
|
var _shopFile2Type$find;
|
|
11951
12313
|
return (_shopFile2Type$find = shopFile2Type.find(function (i) {
|
|
@@ -11955,6 +12317,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11955
12317
|
}, {
|
|
11956
12318
|
title: '启用状态',
|
|
11957
12319
|
dataIndex: 'status',
|
|
12320
|
+
width: 80,
|
|
11958
12321
|
render: function render(text) {
|
|
11959
12322
|
var _shopFile2Status$find;
|
|
11960
12323
|
return (_shopFile2Status$find = shopFile2Status.find(function (i) {
|
|
@@ -11964,8 +12327,28 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11964
12327
|
}, {
|
|
11965
12328
|
title: '所属销售组织',
|
|
11966
12329
|
dataIndex: 'orgName',
|
|
11967
|
-
defaultSort: 4
|
|
11968
|
-
|
|
12330
|
+
defaultSort: 4,
|
|
12331
|
+
width: 95
|
|
12332
|
+
}, {
|
|
12333
|
+
title: '所属销售渠道',
|
|
12334
|
+
dataIndex: 'channelName',
|
|
12335
|
+
defaultSort: 5,
|
|
12336
|
+
width: 100
|
|
12337
|
+
}, {
|
|
12338
|
+
title: '营销区域',
|
|
12339
|
+
dataIndex: 'commonRelationAreaName',
|
|
12340
|
+
defaultSort: 6,
|
|
12341
|
+
width: 100
|
|
12342
|
+
}, {
|
|
12343
|
+
title: '店铺性质',
|
|
12344
|
+
dataIndex: 'businessType',
|
|
12345
|
+
defaultSort: 7,
|
|
12346
|
+
render: function render(text) {
|
|
12347
|
+
return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
|
|
12348
|
+
},
|
|
12349
|
+
width: 80
|
|
12350
|
+
}],
|
|
12351
|
+
noEmptySearchField: true
|
|
11969
12352
|
}, modalTableBusProps);
|
|
11970
12353
|
}
|
|
11971
12354
|
// 核算主体选择器(无弹窗)
|
|
@@ -12129,7 +12512,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12129
12512
|
name: 'qp-officeTelephone-like',
|
|
12130
12513
|
label: '手机号'
|
|
12131
12514
|
}];
|
|
12132
|
-
var
|
|
12515
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
12133
12516
|
querySelectHeadersList: querySelectHeadersList,
|
|
12134
12517
|
extralHeaders: extralHeaders
|
|
12135
12518
|
});
|
|
@@ -12137,7 +12520,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12137
12520
|
pageSize: 5000,
|
|
12138
12521
|
currentPage: 1,
|
|
12139
12522
|
'qp-companyType-eq': 20
|
|
12140
|
-
}, getQueryHeadersItem(
|
|
12523
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in'))]).then(function (x) {
|
|
12141
12524
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12142
12525
|
});
|
|
12143
12526
|
modalTableProps = _objectSpread2({
|
|
@@ -12243,16 +12626,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12243
12626
|
name: 'qp-email-like',
|
|
12244
12627
|
label: '邮箱'
|
|
12245
12628
|
}, {
|
|
12246
|
-
name: 'qp-
|
|
12629
|
+
name: 'qp-phone-like',
|
|
12247
12630
|
label: '手机号'
|
|
12248
12631
|
}]);
|
|
12249
|
-
var
|
|
12632
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12250
12633
|
querySelectHeadersList: querySelectHeadersList,
|
|
12251
12634
|
extralHeaders: extralHeaders
|
|
12252
12635
|
});
|
|
12253
12636
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12254
12637
|
'orgViewCode': 'administrative-organization-view'
|
|
12255
|
-
}, getQueryHeadersItem(
|
|
12638
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-code-in'))]).then(function (x) {
|
|
12256
12639
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12257
12640
|
});
|
|
12258
12641
|
modalTableProps = _objectSpread2({
|
|
@@ -12303,7 +12686,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12303
12686
|
dataIndex: 'email'
|
|
12304
12687
|
}, {
|
|
12305
12688
|
title: '手机号',
|
|
12306
|
-
dataIndex: '
|
|
12689
|
+
dataIndex: 'phone',
|
|
12307
12690
|
defaultSort: 4,
|
|
12308
12691
|
render: function render(text, record) {
|
|
12309
12692
|
return handleTextOverflow(text || (record === null || record === void 0 ? void 0 : record.phone));
|
|
@@ -12399,17 +12782,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12399
12782
|
name: 'qp-remark-like',
|
|
12400
12783
|
label: '备注'
|
|
12401
12784
|
}];
|
|
12402
|
-
var
|
|
12785
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12403
12786
|
querySelectHeadersList: querySelectHeadersList,
|
|
12404
12787
|
extralHeaders: extralHeaders
|
|
12405
12788
|
});
|
|
12406
12789
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12407
12790
|
pageSize: 5000,
|
|
12408
12791
|
currentPage: 1
|
|
12409
|
-
}, getQueryHeadersItem(
|
|
12792
|
+
}, getQueryHeadersItem(_queryHeaderParams13, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12410
12793
|
pageSize: 5000,
|
|
12411
12794
|
currentPage: 1
|
|
12412
|
-
}, getQueryHeadersItem(
|
|
12795
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12413
12796
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12414
12797
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12415
12798
|
});
|
|
@@ -12579,14 +12962,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12579
12962
|
}
|
|
12580
12963
|
}
|
|
12581
12964
|
}];
|
|
12582
|
-
var
|
|
12965
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12583
12966
|
querySelectHeadersList: querySelectHeadersList,
|
|
12584
12967
|
extralHeaders: extralHeaders
|
|
12585
12968
|
});
|
|
12586
12969
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
12587
12970
|
pageSize: 5000,
|
|
12588
12971
|
currentPage: 1
|
|
12589
|
-
}, getQueryHeadersItem(
|
|
12972
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
12590
12973
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12591
12974
|
});
|
|
12592
12975
|
modalTableProps = _objectSpread2({
|
|
@@ -12683,7 +13066,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12683
13066
|
}
|
|
12684
13067
|
}
|
|
12685
13068
|
}];
|
|
12686
|
-
var
|
|
13069
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
12687
13070
|
querySelectHeadersList: querySelectHeadersList,
|
|
12688
13071
|
extralHeaders: extralHeaders
|
|
12689
13072
|
});
|
|
@@ -12691,7 +13074,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12691
13074
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12692
13075
|
'qp-realOrg-eq': true,
|
|
12693
13076
|
'qp-status-eq': 10
|
|
12694
|
-
}, getQueryHeadersItem(
|
|
13077
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
12695
13078
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12696
13079
|
});
|
|
12697
13080
|
modalTableProps = _objectSpread2({
|
|
@@ -12797,13 +13180,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12797
13180
|
},
|
|
12798
13181
|
initialSource: nodeType
|
|
12799
13182
|
}];
|
|
12800
|
-
var
|
|
13183
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
12801
13184
|
querySelectHeadersList: querySelectHeadersList,
|
|
12802
13185
|
extralHeaders: extralHeaders
|
|
12803
13186
|
});
|
|
12804
13187
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
12805
13188
|
'qp-status-eq': 10
|
|
12806
|
-
}, getQueryHeadersItem(
|
|
13189
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
12807
13190
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12808
13191
|
});
|
|
12809
13192
|
modalTableProps = _objectSpread2({
|
|
@@ -13129,13 +13512,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13129
13512
|
},
|
|
13130
13513
|
initialSource: nodeType
|
|
13131
13514
|
}];
|
|
13132
|
-
var
|
|
13515
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
13133
13516
|
querySelectHeadersList: querySelectHeadersList,
|
|
13134
13517
|
extralHeaders: extralHeaders
|
|
13135
13518
|
});
|
|
13136
13519
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13137
13520
|
'qp-status-eq': 10
|
|
13138
|
-
}, getQueryHeadersItem(
|
|
13521
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13139
13522
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13140
13523
|
});
|
|
13141
13524
|
modalTableProps = _objectSpread2({
|
|
@@ -14080,9 +14463,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14080
14463
|
value = _useState8[0],
|
|
14081
14464
|
setValue = _useState8[1];
|
|
14082
14465
|
var _useState9 = React$1.useState([]),
|
|
14083
|
-
|
|
14084
|
-
propertyList =
|
|
14085
|
-
setPropertyList =
|
|
14466
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
14467
|
+
propertyList = _useState0[0],
|
|
14468
|
+
setPropertyList = _useState0[1];
|
|
14086
14469
|
React$1.useEffect(function () {
|
|
14087
14470
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14088
14471
|
// type: 1 尺码组; 2 配码组
|
|
@@ -14505,7 +14888,7 @@ function getStorageVale(storageKeyString) {
|
|
|
14505
14888
|
var _storageKeyString$spl = storageKeyString.split('.'),
|
|
14506
14889
|
_storageKeyString$spl2 = _toArray(_storageKeyString$spl),
|
|
14507
14890
|
localstorage = _storageKeyString$spl2[0],
|
|
14508
|
-
restKeyArrays = _storageKeyString$spl2.slice(1);
|
|
14891
|
+
restKeyArrays = _arrayLikeToArray(_storageKeyString$spl2).slice(1);
|
|
14509
14892
|
var localStorageInfo = window.localStorage.getItem(localstorage);
|
|
14510
14893
|
if (!restKeyArrays.length) return localStorageInfo;
|
|
14511
14894
|
var returnVal = JSON.parse(localStorageInfo || '{}');
|
|
@@ -14606,46 +14989,45 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14606
14989
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
14607
14990
|
headers: headers
|
|
14608
14991
|
}).then(/*#__PURE__*/function () {
|
|
14609
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
14992
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
|
|
14610
14993
|
var _ctx$form;
|
|
14611
14994
|
var resData, coverData, data, dataList;
|
|
14612
|
-
return
|
|
14613
|
-
while (1) switch (_context.
|
|
14995
|
+
return _regenerator().w(function (_context) {
|
|
14996
|
+
while (1) switch (_context.n) {
|
|
14614
14997
|
case 0:
|
|
14615
14998
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
14616
14999
|
if (!judgeIsRequestSuccess(resData)) {
|
|
14617
|
-
_context.
|
|
15000
|
+
_context.n = 4;
|
|
14618
15001
|
break;
|
|
14619
15002
|
}
|
|
14620
15003
|
data = resData.data;
|
|
14621
15004
|
if (!remoteSource.converter) {
|
|
14622
|
-
_context.
|
|
15005
|
+
_context.n = 2;
|
|
14623
15006
|
break;
|
|
14624
15007
|
}
|
|
14625
|
-
_context.
|
|
15008
|
+
_context.n = 1;
|
|
14626
15009
|
return remoteSource.converter({
|
|
14627
15010
|
data: [data]
|
|
14628
15011
|
});
|
|
14629
|
-
case
|
|
14630
|
-
coverData = _context.
|
|
14631
|
-
_context.
|
|
15012
|
+
case 1:
|
|
15013
|
+
coverData = _context.v;
|
|
15014
|
+
_context.n = 3;
|
|
14632
15015
|
break;
|
|
14633
|
-
case
|
|
15016
|
+
case 2:
|
|
14634
15017
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
14635
15018
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
14636
15019
|
return _mapSearchTree(ites);
|
|
14637
15020
|
}) || [];
|
|
14638
|
-
case
|
|
14639
|
-
_context.
|
|
15021
|
+
case 3:
|
|
15022
|
+
_context.n = 5;
|
|
14640
15023
|
break;
|
|
14641
|
-
case
|
|
15024
|
+
case 4:
|
|
14642
15025
|
coverData = [];
|
|
14643
|
-
case
|
|
15026
|
+
case 5:
|
|
14644
15027
|
setTreeData(coverData);
|
|
14645
15028
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
14646
|
-
case
|
|
14647
|
-
|
|
14648
|
-
return _context.stop();
|
|
15029
|
+
case 6:
|
|
15030
|
+
return _context.a(2);
|
|
14649
15031
|
}
|
|
14650
15032
|
}, _callee);
|
|
14651
15033
|
}));
|
|
@@ -17048,7 +17430,9 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
17048
17430
|
title = _ref.title,
|
|
17049
17431
|
pathToRegexp = _ref.pathToRegexp,
|
|
17050
17432
|
backHistoryPath = _ref.backHistoryPath,
|
|
17051
|
-
onBack = _ref.onBack
|
|
17433
|
+
onBack = _ref.onBack,
|
|
17434
|
+
tradeType = _ref.tradeType,
|
|
17435
|
+
fromStatus = _ref.fromStatus;
|
|
17052
17436
|
var _useState3 = React$1.useState(false),
|
|
17053
17437
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
17054
17438
|
isFullScreen = _useState4[0],
|
|
@@ -17131,14 +17515,50 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
17131
17515
|
}
|
|
17132
17516
|
}
|
|
17133
17517
|
};
|
|
17518
|
+
var getFlowButtons = function getFlowButtons() {
|
|
17519
|
+
try {
|
|
17520
|
+
return JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
|
|
17521
|
+
} catch (e) {
|
|
17522
|
+
return [];
|
|
17523
|
+
}
|
|
17524
|
+
};
|
|
17525
|
+
var filterByFlowRules = function filterByFlowRules(list, ctx) {
|
|
17526
|
+
var _find;
|
|
17527
|
+
var flowList = getFlowButtons();
|
|
17528
|
+
if (!(flowList === null || flowList === void 0 ? void 0 : flowList.length) || typeof ctx.tradeType !== 'number') return list;
|
|
17529
|
+
var entry = flowList.find(function (i) {
|
|
17530
|
+
return (i === null || i === void 0 ? void 0 : i.tradeType) === ctx.tradeType;
|
|
17531
|
+
});
|
|
17532
|
+
if (!entry) return list;
|
|
17533
|
+
var ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
|
|
17534
|
+
var statButtons = ((_find = ((entry === null || entry === void 0 ? void 0 : entry.config) || []).find(function (c) {
|
|
17535
|
+
return (c === null || c === void 0 ? void 0 : c.fromStatus) === ctx.status;
|
|
17536
|
+
})) === null || _find === void 0 ? void 0 : _find.buttons) || [];
|
|
17537
|
+
var allowedSet = new Set((statButtons || []).filter(Boolean).filter(function (b) {
|
|
17538
|
+
return ctrlSet.size ? ctrlSet.has(b) : true;
|
|
17539
|
+
}));
|
|
17540
|
+
return list.filter(function (ui) {
|
|
17541
|
+
var _ui$props3, _ui$props4;
|
|
17542
|
+
var uiCode = ui.code || ui.buttonCode || (ui === null || ui === void 0 ? void 0 : (_ui$props3 = ui.props) === null || _ui$props3 === void 0 ? void 0 : _ui$props3.code) || (ui === null || ui === void 0 ? void 0 : (_ui$props4 = ui.props) === null || _ui$props4 === void 0 ? void 0 : _ui$props4.buttonCode);
|
|
17543
|
+
if (!uiCode) return true;
|
|
17544
|
+
if (ctrlSet.size && !ctrlSet.has(uiCode)) return true; // 非流程控制按钮不处理
|
|
17545
|
+
return allowedSet.has(uiCode);
|
|
17546
|
+
});
|
|
17547
|
+
};
|
|
17134
17548
|
var renderPageActionList = function renderPageActionList(actionLists) {
|
|
17135
17549
|
var _actionLists$;
|
|
17136
17550
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
17137
17551
|
var visibleActions = actionLists.filter(function (action) {
|
|
17138
|
-
return (action.visible && action.visible !== 'false' || judgeIsEmpty$1(action.visible)) && (!shouldUseAuth() || judgeIsEmpty$1(action.code) || authButton.
|
|
17552
|
+
return (action.visible && action.visible !== 'false' || judgeIsEmpty$1(action.visible)) && (!shouldUseAuth() || judgeIsEmpty$1(action.code) || authButton.some(function (item) {
|
|
17139
17553
|
return item === action.code;
|
|
17140
17554
|
}));
|
|
17141
17555
|
});
|
|
17556
|
+
if (typeof tradeType === 'number') {
|
|
17557
|
+
visibleActions = filterByFlowRules(visibleActions, {
|
|
17558
|
+
tradeType: tradeType,
|
|
17559
|
+
status: fromStatus
|
|
17560
|
+
});
|
|
17561
|
+
}
|
|
17142
17562
|
var renderButton = function renderButton(item, type) {
|
|
17143
17563
|
return /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
17144
17564
|
type: type || 'primary',
|
|
@@ -17251,6 +17671,68 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
17251
17671
|
}
|
|
17252
17672
|
return true;
|
|
17253
17673
|
});
|
|
17674
|
+
var processDetailButtonsVisible = function processDetailButtonsVisible(buttons, params) {
|
|
17675
|
+
var _ref4 = params || {},
|
|
17676
|
+
tradeType = _ref4.tradeType,
|
|
17677
|
+
fromStatus = _ref4.fromStatus;
|
|
17678
|
+
var getFlowButtons = function getFlowButtons() {
|
|
17679
|
+
try {
|
|
17680
|
+
return JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
|
|
17681
|
+
} catch (e) {
|
|
17682
|
+
return [];
|
|
17683
|
+
}
|
|
17684
|
+
};
|
|
17685
|
+
var evalVisible = function evalVisible(v, ctx) {
|
|
17686
|
+
if (typeof v === 'string') {
|
|
17687
|
+
var expr = v.replace(/^#\{|\}$/g, '');
|
|
17688
|
+
try {
|
|
17689
|
+
var keys = Object.keys(ctx || {});
|
|
17690
|
+
var vals = keys.map(function (k) {
|
|
17691
|
+
return ctx[k];
|
|
17692
|
+
});
|
|
17693
|
+
// eslint-disable-next-line no-new-func
|
|
17694
|
+
return Function.apply(void 0, keys.concat(["return (".concat(expr, ");")])).apply(void 0, _toConsumableArray(vals));
|
|
17695
|
+
} catch (e) {
|
|
17696
|
+
return true;
|
|
17697
|
+
}
|
|
17698
|
+
}
|
|
17699
|
+
if (v === undefined) return true;
|
|
17700
|
+
return !!v;
|
|
17701
|
+
};
|
|
17702
|
+
var ctrlSet = new Set();
|
|
17703
|
+
var allowedSet = new Set();
|
|
17704
|
+
if (typeof tradeType === 'number') {
|
|
17705
|
+
var flowList = getFlowButtons();
|
|
17706
|
+
var entry = flowList.find(function (i) {
|
|
17707
|
+
return (i === null || i === void 0 ? void 0 : i.tradeType) === tradeType;
|
|
17708
|
+
});
|
|
17709
|
+
if (entry) {
|
|
17710
|
+
var _find2;
|
|
17711
|
+
ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
|
|
17712
|
+
var statButtons = ((_find2 = ((entry === null || entry === void 0 ? void 0 : entry.config) || []).find(function (c) {
|
|
17713
|
+
return (c === null || c === void 0 ? void 0 : c.fromStatus) === fromStatus;
|
|
17714
|
+
})) === null || _find2 === void 0 ? void 0 : _find2.buttons) || [];
|
|
17715
|
+
allowedSet = new Set((statButtons || []).filter(Boolean).filter(function (b) {
|
|
17716
|
+
return ctrlSet.size ? ctrlSet.has(b) : true;
|
|
17717
|
+
}));
|
|
17718
|
+
}
|
|
17719
|
+
}
|
|
17720
|
+
var processed = (buttons || []).map(function (btn) {
|
|
17721
|
+
var visBase = evalVisible(btn === null || btn === void 0 ? void 0 : btn.visible, params);
|
|
17722
|
+
var vis = visBase;
|
|
17723
|
+
if (typeof tradeType === 'number' && ctrlSet && allowedSet && (btn === null || btn === void 0 ? void 0 : btn.code)) {
|
|
17724
|
+
if (ctrlSet.size === 0 || !ctrlSet.has(btn.code)) {
|
|
17725
|
+
vis = visBase;
|
|
17726
|
+
} else {
|
|
17727
|
+
vis = visBase && allowedSet.has(btn.code);
|
|
17728
|
+
}
|
|
17729
|
+
}
|
|
17730
|
+
return _objectSpread2(_objectSpread2({}, btn), {}, {
|
|
17731
|
+
visible: vis
|
|
17732
|
+
});
|
|
17733
|
+
});
|
|
17734
|
+
return processed;
|
|
17735
|
+
};
|
|
17254
17736
|
|
|
17255
17737
|
var css_248z$h = ".bs_home_page_head_wrapper {\n position: sticky;\n background: #fff;\n width: 100%;\n top: 0px;\n z-index: 10;\n}\n.home_page_head {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n padding: 6px 16px 5px;\n font-weight: 500;\n}\n.home_page_head .home_page_title_wrapper {\n display: flex;\n align-items: center;\n height: 20px;\n line-height: 20px;\n}\n.home_page_head .home_page_title {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 16px;\n color: #000000;\n letter-spacing: 0;\n flex-grow: 1;\n padding-right: 10px;\n display: none;\n}\n.home_page_head .ant-breadcrumb {\n display: block !important;\n}\n.home_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.home_page_head .ant-breadcrumb li .bread_name {\n color: #8B8B8B;\n font-size: 12px;\n line-height: 16px;\n cursor: pointer;\n}\n.home_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n";
|
|
17256
17738
|
styleInject(css_248z$h);
|
|
@@ -17544,6 +18026,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17544
18026
|
title: '列首',
|
|
17545
18027
|
dataIndex: 'fixedLeft',
|
|
17546
18028
|
render: function render(text, record) {
|
|
18029
|
+
if (_this.props.disableColumnFixed) {
|
|
18030
|
+
return null;
|
|
18031
|
+
}
|
|
17547
18032
|
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17548
18033
|
onClick: function onClick() {
|
|
17549
18034
|
var sortDataSource = _this.state.sortDataSource;
|
|
@@ -17620,6 +18105,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17620
18105
|
title: '列尾',
|
|
17621
18106
|
dataIndex: 'fixedRight',
|
|
17622
18107
|
render: function render(text, record) {
|
|
18108
|
+
if (_this.props.disableColumnFixed) {
|
|
18109
|
+
return null;
|
|
18110
|
+
}
|
|
17623
18111
|
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17624
18112
|
onClick: function onClick() {
|
|
17625
18113
|
var sortDataSource = _this.state.sortDataSource;
|
|
@@ -18869,7 +19357,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
18869
19357
|
}, /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps)));
|
|
18870
19358
|
};
|
|
18871
19359
|
var BsSulaQueryTable = (function (props) {
|
|
18872
|
-
var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _value$exportConfig6;
|
|
19360
|
+
var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _props$tableProps, _value$exportConfig6;
|
|
18873
19361
|
var bsTableCode = (props === null || props === void 0 ? void 0 : props.tableCode) || window.location.hash; //设置列字段的唯一标识
|
|
18874
19362
|
var rowsRef = React$1.useRef(null);
|
|
18875
19363
|
// 获取 table columns中所有的 key 防止有的地方是 dataindex
|
|
@@ -18947,38 +19435,38 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18947
19435
|
};
|
|
18948
19436
|
var refs = React$1.useRef(null);
|
|
18949
19437
|
var _useState9 = React$1.useState(''),
|
|
18950
|
-
|
|
18951
|
-
pagePath =
|
|
18952
|
-
setPagePath =
|
|
19438
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
19439
|
+
pagePath = _useState0[0],
|
|
19440
|
+
setPagePath = _useState0[1];
|
|
18953
19441
|
var _useLocation = umi.useLocation(),
|
|
18954
19442
|
pathname = _useLocation.pathname,
|
|
18955
19443
|
_useLocation$state = _useLocation.state,
|
|
18956
19444
|
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
18957
|
-
var
|
|
18958
|
-
|
|
18959
|
-
isFullScreen =
|
|
18960
|
-
setIsFnllScreen =
|
|
19445
|
+
var _useState1 = React$1.useState(false),
|
|
19446
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
19447
|
+
isFullScreen = _useState10[0],
|
|
19448
|
+
setIsFnllScreen = _useState10[1];
|
|
18961
19449
|
// @ts-nocheck
|
|
18962
19450
|
var value = props;
|
|
18963
19451
|
var _props$fields = props.fields,
|
|
18964
19452
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
18965
|
-
var
|
|
18966
|
-
|
|
18967
|
-
showColumn =
|
|
18968
|
-
setShowColumns =
|
|
19453
|
+
var _useState11 = React$1.useState([]),
|
|
19454
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
19455
|
+
showColumn = _useState12[0],
|
|
19456
|
+
setShowColumns = _useState12[1]; // 列字段
|
|
18969
19457
|
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
18970
|
-
var
|
|
19458
|
+
var _useState13 = React$1.useState(originSearchFields),
|
|
19459
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
19460
|
+
showSearchFields = _useState14[0],
|
|
19461
|
+
setShowSearchFields = _useState14[1]; //搜索项字段
|
|
19462
|
+
var _useState15 = React$1.useState([]),
|
|
18971
19463
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
18972
|
-
|
|
18973
|
-
|
|
18974
|
-
var _useState17 = React$1.useState(
|
|
19464
|
+
showExportColumn = _useState16[0],
|
|
19465
|
+
setShowExportColumns = _useState16[1]; // 导出列字段
|
|
19466
|
+
var _useState17 = React$1.useState(''),
|
|
18975
19467
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
18976
|
-
|
|
18977
|
-
|
|
18978
|
-
var _useState19 = React$1.useState(''),
|
|
18979
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
18980
|
-
height = _useState20[0],
|
|
18981
|
-
setHeight = _useState20[1];
|
|
19468
|
+
height = _useState18[0],
|
|
19469
|
+
setHeight = _useState18[1];
|
|
18982
19470
|
var sortTableRef = React$1.useRef(null);
|
|
18983
19471
|
var searchTableRef = React$1.useRef(null);
|
|
18984
19472
|
var exportTableRef = React$1.useRef(null);
|
|
@@ -19231,10 +19719,22 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19231
19719
|
};
|
|
19232
19720
|
}
|
|
19233
19721
|
}, (value === null || value === void 0 ? void 0 : value.tableProps) || {});
|
|
19234
|
-
// @ts-ignore
|
|
19235
19722
|
if (tableProps === null || tableProps === void 0 ? void 0 : (_tableProps$initialPa = tableProps.initialPaging) === null || _tableProps$initialPa === void 0 ? void 0 : _tableProps$initialPa.pagination) {
|
|
19236
|
-
// @ts-ignore
|
|
19237
19723
|
tableProps.initialPaging.pagination.showSizeChanger = true;
|
|
19724
|
+
// 分页大小改变时,更新本地存储
|
|
19725
|
+
var onShowSizeChange = function onShowSizeChange(current, size) {
|
|
19726
|
+
var allPaginationData = JSON.parse(localStorage.getItem('paginationData') || "{}");
|
|
19727
|
+
allPaginationData[bsTableCode] = size;
|
|
19728
|
+
localStorage.setItem('paginationData', JSON.stringify(allPaginationData || {}));
|
|
19729
|
+
};
|
|
19730
|
+
tableProps.initialPaging.pagination.onShowSizeChange = onShowSizeChange;
|
|
19731
|
+
// 从本地存储中获取分页大小
|
|
19732
|
+
var pageSize = JSON.parse(localStorage.getItem('paginationData') || "{}")[bsTableCode];
|
|
19733
|
+
if (pageSize) {
|
|
19734
|
+
tableProps.initialPaging.pagination.pageSize = pageSize;
|
|
19735
|
+
tableProps.pageSize = pageSize;
|
|
19736
|
+
tableProps.defaultPageSize = pageSize;
|
|
19737
|
+
}
|
|
19238
19738
|
}
|
|
19239
19739
|
return tableProps;
|
|
19240
19740
|
};
|
|
@@ -19319,13 +19819,124 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19319
19819
|
if (value.rowSelection) {
|
|
19320
19820
|
value.rowSelection.columnWidth = 50;
|
|
19321
19821
|
}
|
|
19822
|
+
if (typeof props.tradeType !== 'number') {
|
|
19823
|
+
return _objectSpread2(_objectSpread2({}, value), {}, {
|
|
19824
|
+
actionsRender: actionsRender
|
|
19825
|
+
});
|
|
19826
|
+
}
|
|
19827
|
+
try {
|
|
19828
|
+
var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
|
|
19829
|
+
var entry = raw.find(function (i) {
|
|
19830
|
+
return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
|
|
19831
|
+
});
|
|
19832
|
+
if (entry) {
|
|
19833
|
+
var ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
|
|
19834
|
+
var allowedTopSet = new Set();
|
|
19835
|
+
((entry === null || entry === void 0 ? void 0 : entry.config) || []).forEach(function (c) {
|
|
19836
|
+
((c === null || c === void 0 ? void 0 : c.buttons) || []).filter(Boolean).forEach(function (b) {
|
|
19837
|
+
if (!ctrlSet.size || ctrlSet.has(b)) allowedTopSet.add(b);
|
|
19838
|
+
});
|
|
19839
|
+
});
|
|
19840
|
+
console.debug('[FlowCtrl:top]', {
|
|
19841
|
+
ctrlSize: ctrlSet.size,
|
|
19842
|
+
allowedTopSize: allowedTopSet.size
|
|
19843
|
+
});
|
|
19844
|
+
actionsRender = actionsRender.filter(function (ui) {
|
|
19845
|
+
var code = ui === null || ui === void 0 ? void 0 : ui.code;
|
|
19846
|
+
if (!code) return true;
|
|
19847
|
+
if (ctrlSet.size && !ctrlSet.has(code)) return true; // 非流程控制按钮不处理
|
|
19848
|
+
var keep = allowedTopSet.has(code);
|
|
19849
|
+
if (code) console.debug('[FlowCtrl:top-element]', {
|
|
19850
|
+
code: code,
|
|
19851
|
+
keep: keep
|
|
19852
|
+
});
|
|
19853
|
+
return keep;
|
|
19854
|
+
});
|
|
19855
|
+
}
|
|
19856
|
+
} catch (e) {}
|
|
19857
|
+
var remoteDataSource = value === null || value === void 0 ? void 0 : value.remoteDataSource;
|
|
19858
|
+
if (remoteDataSource) {
|
|
19859
|
+
var _ctrlSet = new Set();
|
|
19860
|
+
var btnStatusMap = new Map();
|
|
19861
|
+
try {
|
|
19862
|
+
var _raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
|
|
19863
|
+
var _entry = _raw.find(function (i) {
|
|
19864
|
+
return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
|
|
19865
|
+
});
|
|
19866
|
+
if (_entry) {
|
|
19867
|
+
_ctrlSet = new Set(((_entry === null || _entry === void 0 ? void 0 : _entry.controlButtons) || []).filter(Boolean));
|
|
19868
|
+
((_entry === null || _entry === void 0 ? void 0 : _entry.config) || []).forEach(function (c) {
|
|
19869
|
+
((c === null || c === void 0 ? void 0 : c.buttons) || []).filter(Boolean).forEach(function (b) {
|
|
19870
|
+
if (!_ctrlSet.size || _ctrlSet.has(b)) {
|
|
19871
|
+
var set = btnStatusMap.get(b) || new Set();
|
|
19872
|
+
set.add(c === null || c === void 0 ? void 0 : c.fromStatus);
|
|
19873
|
+
btnStatusMap.set(b, set);
|
|
19874
|
+
}
|
|
19875
|
+
});
|
|
19876
|
+
});
|
|
19877
|
+
}
|
|
19878
|
+
} catch (e) {}
|
|
19879
|
+
var getByPath = function getByPath(obj, path) {
|
|
19880
|
+
if (!obj || !path) return undefined;
|
|
19881
|
+
var parts = path.split('.');
|
|
19882
|
+
var cur = obj;
|
|
19883
|
+
for (var i = 0; i < parts.length; i++) {
|
|
19884
|
+
var _cur;
|
|
19885
|
+
cur = (_cur = cur) === null || _cur === void 0 ? void 0 : _cur[parts[i]];
|
|
19886
|
+
if (cur === undefined) return undefined;
|
|
19887
|
+
}
|
|
19888
|
+
return cur;
|
|
19889
|
+
};
|
|
19890
|
+
var statusPath = props === null || props === void 0 ? void 0 : props.statusFieldPath;
|
|
19891
|
+
var augment = function augment(result) {
|
|
19892
|
+
if (!btnStatusMap || btnStatusMap.size === 0) return result;
|
|
19893
|
+
if (result && Array.isArray(result.list)) {
|
|
19894
|
+
result.list = result.list.map(function (rec) {
|
|
19895
|
+
var _ref2, _ref3, _ref4, _rec$status;
|
|
19896
|
+
var status = statusPath ? getByPath(rec, statusPath) : (_ref2 = (_ref3 = (_ref4 = (_rec$status = rec === null || rec === void 0 ? void 0 : rec.status) !== null && _rec$status !== void 0 ? _rec$status : rec === null || rec === void 0 ? void 0 : rec.orderStatus) !== null && _ref4 !== void 0 ? _ref4 : rec === null || rec === void 0 ? void 0 : rec.flowStatus) !== null && _ref3 !== void 0 ? _ref3 : rec === null || rec === void 0 ? void 0 : rec.tradeStatus) !== null && _ref2 !== void 0 ? _ref2 : rec === null || rec === void 0 ? void 0 : rec.currentStatus;
|
|
19897
|
+
var map = {};
|
|
19898
|
+
btnStatusMap.forEach(function (set, code) {
|
|
19899
|
+
map[code] = set.has(status) ? true : undefined;
|
|
19900
|
+
});
|
|
19901
|
+
return _objectSpread2(_objectSpread2({}, rec), {}, {
|
|
19902
|
+
__flowAllowedMap: map
|
|
19903
|
+
});
|
|
19904
|
+
});
|
|
19905
|
+
}
|
|
19906
|
+
return result;
|
|
19907
|
+
};
|
|
19908
|
+
if (Array.isArray(remoteDataSource.converter)) {
|
|
19909
|
+
var stages = remoteDataSource.converter;
|
|
19910
|
+
var pipeline = function pipeline(args) {
|
|
19911
|
+
var res = args;
|
|
19912
|
+
for (var i = 0; i < stages.length; i++) {
|
|
19913
|
+
res = stages[i](res);
|
|
19914
|
+
}
|
|
19915
|
+
res = augment(res);
|
|
19916
|
+
return res;
|
|
19917
|
+
};
|
|
19918
|
+
remoteDataSource = _objectSpread2(_objectSpread2({}, remoteDataSource), {}, {
|
|
19919
|
+
converter: pipeline
|
|
19920
|
+
});
|
|
19921
|
+
} else if (typeof remoteDataSource.converter === 'function') {
|
|
19922
|
+
var orig = remoteDataSource.converter;
|
|
19923
|
+
var wrap = function wrap(args) {
|
|
19924
|
+
var res = orig(args);
|
|
19925
|
+
return augment(res);
|
|
19926
|
+
};
|
|
19927
|
+
remoteDataSource = _objectSpread2(_objectSpread2({}, remoteDataSource), {}, {
|
|
19928
|
+
converter: wrap
|
|
19929
|
+
});
|
|
19930
|
+
}
|
|
19931
|
+
}
|
|
19322
19932
|
return _objectSpread2(_objectSpread2({}, value), {}, {
|
|
19323
|
-
actionsRender: actionsRender
|
|
19933
|
+
actionsRender: actionsRender,
|
|
19934
|
+
remoteDataSource: remoteDataSource
|
|
19324
19935
|
});
|
|
19325
19936
|
};
|
|
19326
19937
|
var handleResize = function handleResize(index) {
|
|
19327
|
-
return function (e,
|
|
19328
|
-
var size =
|
|
19938
|
+
return function (e, _ref5) {
|
|
19939
|
+
var size = _ref5.size;
|
|
19329
19940
|
setShowColumns(function (columns) {
|
|
19330
19941
|
var newColumns = _toConsumableArray(columns);
|
|
19331
19942
|
newColumns[index] = _objectSpread2(_objectSpread2({}, newColumns[index]), {}, {
|
|
@@ -19353,11 +19964,66 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19353
19964
|
// 优化一下 减少复杂度
|
|
19354
19965
|
var titleMap = toMapByKey(value.columns, 'title');
|
|
19355
19966
|
// 加上排序
|
|
19967
|
+
var hasFlowEntry = typeof props.tradeType === 'number' && function () {
|
|
19968
|
+
try {
|
|
19969
|
+
var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
|
|
19970
|
+
return !!raw.find(function (i) {
|
|
19971
|
+
return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
|
|
19972
|
+
});
|
|
19973
|
+
} catch (e) {
|
|
19974
|
+
return false;
|
|
19975
|
+
}
|
|
19976
|
+
}();
|
|
19977
|
+
var hasControlRange = typeof props.tradeType === 'number' && function () {
|
|
19978
|
+
try {
|
|
19979
|
+
var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
|
|
19980
|
+
var entry = raw.find(function (i) {
|
|
19981
|
+
return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
|
|
19982
|
+
});
|
|
19983
|
+
if (!entry) return false;
|
|
19984
|
+
var _ctrlSet2 = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
|
|
19985
|
+
return _ctrlSet2.size > 0;
|
|
19986
|
+
} catch (e) {
|
|
19987
|
+
return false;
|
|
19988
|
+
}
|
|
19989
|
+
}();
|
|
19990
|
+
var toExpr = function toExpr(v) {
|
|
19991
|
+
if (typeof v === 'string') return v.replace(/^#\{|\}$/g, '');
|
|
19992
|
+
if (v === undefined) return 'true';
|
|
19993
|
+
return v ? 'true' : 'false';
|
|
19994
|
+
};
|
|
19995
|
+
// 读取当前 tradeType 的控制范围,用于只在控制按钮上追加流程表达式
|
|
19996
|
+
var ctrlSet = new Set();
|
|
19997
|
+
if (hasFlowEntry) {
|
|
19998
|
+
try {
|
|
19999
|
+
var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
|
|
20000
|
+
var entry = raw.find(function (i) {
|
|
20001
|
+
return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
|
|
20002
|
+
});
|
|
20003
|
+
if (entry) ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
|
|
20004
|
+
} catch (e) {}
|
|
20005
|
+
}
|
|
20006
|
+
var augmentPermissionRender = function augmentPermissionRender(arr, set) {
|
|
20007
|
+
return arr.map(function (el) {
|
|
20008
|
+
var code = el === null || el === void 0 ? void 0 : el.code;
|
|
20009
|
+
if (!code) return el;
|
|
20010
|
+
// 非控制范围按钮不追加流程控制,保持原 visible
|
|
20011
|
+
if (!set || set.size === 0 || !set.has(code)) return el;
|
|
20012
|
+
var base = toExpr(el.visible);
|
|
20013
|
+
var flow = "record.__flowAllowedMap['".concat(code, "'] == true");
|
|
20014
|
+
return _objectSpread2(_objectSpread2({}, el), {}, {
|
|
20015
|
+
visible: "#{(".concat(base, ") && (").concat(flow, ")}")
|
|
20016
|
+
});
|
|
20017
|
+
});
|
|
20018
|
+
};
|
|
19356
20019
|
var cols = showColumn.map(function (i) {
|
|
19357
|
-
var
|
|
20020
|
+
var orig = titleMap[renderToString(i.title)] || {};
|
|
20021
|
+
var origRender = orig.render;
|
|
20022
|
+
var isPerm = orig.isPermissionColumn;
|
|
20023
|
+
var newRender = Array.isArray(origRender) && isPerm && hasFlowEntry && hasControlRange ? augmentPermissionRender(origRender, ctrlSet) : origRender;
|
|
19358
20024
|
return _objectSpread2(_objectSpread2({}, i), {}, {
|
|
19359
|
-
isPermissionColumn:
|
|
19360
|
-
render:
|
|
20025
|
+
isPermissionColumn: isPerm,
|
|
20026
|
+
render: newRender
|
|
19361
20027
|
});
|
|
19362
20028
|
});
|
|
19363
20029
|
cols.forEach(function (i) {
|
|
@@ -19530,6 +20196,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19530
20196
|
id: "bs-sula-query-table"
|
|
19531
20197
|
}, /*#__PURE__*/React__default['default'].createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
|
|
19532
20198
|
ref: sortTableRef,
|
|
20199
|
+
disableColumnFixed: (_props$tableProps = props.tableProps) === null || _props$tableProps === void 0 ? void 0 : _props$tableProps.isVirtualTable,
|
|
19533
20200
|
setShowColumns: setResizeShowColumns,
|
|
19534
20201
|
showColumn: showColumn,
|
|
19535
20202
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -19606,7 +20273,7 @@ var matchPath = function matchPath(pathname) {
|
|
|
19606
20273
|
if (!match) return null;
|
|
19607
20274
|
var _match = _toArray(match),
|
|
19608
20275
|
url = _match[0],
|
|
19609
|
-
values = _match.slice(1);
|
|
20276
|
+
values = _arrayLikeToArray(_match).slice(1);
|
|
19610
20277
|
var isExact = pathname === url;
|
|
19611
20278
|
if (exact && !isExact) return null;
|
|
19612
20279
|
return {
|
|
@@ -20026,22 +20693,19 @@ function outLogin(_x) {
|
|
|
20026
20693
|
return _outLogin.apply(this, arguments);
|
|
20027
20694
|
}
|
|
20028
20695
|
function _outLogin() {
|
|
20029
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
20696
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20030
20697
|
var res;
|
|
20031
|
-
return
|
|
20032
|
-
while (1) switch (_context.
|
|
20698
|
+
return _regenerator().w(function (_context) {
|
|
20699
|
+
while (1) switch (_context.n) {
|
|
20033
20700
|
case 0:
|
|
20034
|
-
_context.
|
|
20701
|
+
_context.n = 1;
|
|
20035
20702
|
return requestUtil({
|
|
20036
20703
|
url: '/user/web/loginOut',
|
|
20037
20704
|
method: 'GET'
|
|
20038
20705
|
});
|
|
20039
|
-
case
|
|
20040
|
-
res = _context.
|
|
20041
|
-
return _context.
|
|
20042
|
-
case 4:
|
|
20043
|
-
case "end":
|
|
20044
|
-
return _context.stop();
|
|
20706
|
+
case 1:
|
|
20707
|
+
res = _context.v;
|
|
20708
|
+
return _context.a(2, res);
|
|
20045
20709
|
}
|
|
20046
20710
|
}, _callee);
|
|
20047
20711
|
}));
|
|
@@ -20168,20 +20832,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20168
20832
|
});
|
|
20169
20833
|
};
|
|
20170
20834
|
var loginOut = /*#__PURE__*/function () {
|
|
20171
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
20835
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
20172
20836
|
var sessionId;
|
|
20173
|
-
return
|
|
20174
|
-
while (1) switch (_context.
|
|
20837
|
+
return _regenerator().w(function (_context) {
|
|
20838
|
+
while (1) switch (_context.n) {
|
|
20175
20839
|
case 0:
|
|
20176
|
-
_context.
|
|
20840
|
+
_context.n = 1;
|
|
20177
20841
|
return getSessionId();
|
|
20178
|
-
case
|
|
20179
|
-
sessionId = _context.
|
|
20180
|
-
_context.
|
|
20842
|
+
case 1:
|
|
20843
|
+
sessionId = _context.v;
|
|
20844
|
+
_context.n = 2;
|
|
20181
20845
|
return outLogin({
|
|
20182
20846
|
sessionId: sessionId
|
|
20183
20847
|
});
|
|
20184
|
-
case
|
|
20848
|
+
case 2:
|
|
20185
20849
|
// @ts-ignore
|
|
20186
20850
|
if (BUILD_TYPE) {
|
|
20187
20851
|
antd.message.success('退出登录成功');
|
|
@@ -20191,9 +20855,8 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20191
20855
|
} else {
|
|
20192
20856
|
setLoginOutPath();
|
|
20193
20857
|
}
|
|
20194
|
-
case
|
|
20195
|
-
|
|
20196
|
-
return _context.stop();
|
|
20858
|
+
case 3:
|
|
20859
|
+
return _context.a(2);
|
|
20197
20860
|
}
|
|
20198
20861
|
}, _callee);
|
|
20199
20862
|
}));
|
|
@@ -20280,18 +20943,15 @@ function getStoreByName(_x) {
|
|
|
20280
20943
|
return _getStoreByName.apply(this, arguments);
|
|
20281
20944
|
}
|
|
20282
20945
|
function _getStoreByName() {
|
|
20283
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20284
|
-
return
|
|
20285
|
-
while (1) switch (_context.
|
|
20946
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20947
|
+
return _regenerator().w(function (_context) {
|
|
20948
|
+
while (1) switch (_context.n) {
|
|
20286
20949
|
case 0:
|
|
20287
|
-
return _context.
|
|
20950
|
+
return _context.a(2, requestUtil({
|
|
20288
20951
|
url: '/store-house/orgViewNode/listNoPage',
|
|
20289
20952
|
method: 'GET',
|
|
20290
20953
|
params: _objectSpread2({}, params)
|
|
20291
20954
|
}));
|
|
20292
|
-
case 1:
|
|
20293
|
-
case "end":
|
|
20294
|
-
return _context.stop();
|
|
20295
20955
|
}
|
|
20296
20956
|
}, _callee);
|
|
20297
20957
|
}));
|
|
@@ -20326,33 +20986,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20326
20986
|
openSelect = _useState8[0],
|
|
20327
20987
|
setOpenSelect = _useState8[1];
|
|
20328
20988
|
var _useState9 = React$1.useState([]),
|
|
20329
|
-
|
|
20330
|
-
options =
|
|
20331
|
-
setOptions =
|
|
20332
|
-
var
|
|
20989
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
20990
|
+
options = _useState0[0],
|
|
20991
|
+
setOptions = _useState0[1];
|
|
20992
|
+
var _useState1 = React$1.useState([]),
|
|
20993
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
20994
|
+
rescouse = _useState10[0],
|
|
20995
|
+
setRescouse = _useState10[1];
|
|
20996
|
+
var _useState11 = React$1.useState(''),
|
|
20333
20997
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
20334
|
-
|
|
20335
|
-
|
|
20336
|
-
var _useState13 = React$1.useState(
|
|
20337
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
20338
|
-
searchValue = _useState14[0],
|
|
20339
|
-
setSearchValue = _useState14[1];
|
|
20340
|
-
var _useState15 = React$1.useState([{
|
|
20998
|
+
searchValue = _useState12[0],
|
|
20999
|
+
setSearchValue = _useState12[1];
|
|
21000
|
+
var _useState13 = React$1.useState([{
|
|
20341
21001
|
label: name,
|
|
20342
21002
|
value: code
|
|
20343
21003
|
}]),
|
|
20344
|
-
|
|
20345
|
-
store =
|
|
20346
|
-
setStore =
|
|
21004
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
21005
|
+
store = _useState14[0],
|
|
21006
|
+
setStore = _useState14[1];
|
|
20347
21007
|
function fetchUserList(_x, _x2) {
|
|
20348
21008
|
return _fetchUserList.apply(this, arguments);
|
|
20349
21009
|
}
|
|
20350
21010
|
function _fetchUserList() {
|
|
20351
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
20352
|
-
return
|
|
20353
|
-
while (1) switch (_context3.
|
|
21011
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(storeName, init) {
|
|
21012
|
+
return _regenerator().w(function (_context3) {
|
|
21013
|
+
while (1) switch (_context3.n) {
|
|
20354
21014
|
case 0:
|
|
20355
|
-
return _context3.
|
|
21015
|
+
return _context3.a(2, getStoreByName({
|
|
20356
21016
|
orgName: storeName ? storeName : undefined,
|
|
20357
21017
|
platCompanyCode: init ? undefined : key,
|
|
20358
21018
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -20371,9 +21031,6 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20371
21031
|
};
|
|
20372
21032
|
});
|
|
20373
21033
|
}));
|
|
20374
|
-
case 1:
|
|
20375
|
-
case "end":
|
|
20376
|
-
return _context3.stop();
|
|
20377
21034
|
}
|
|
20378
21035
|
}, _callee3);
|
|
20379
21036
|
}));
|
|
@@ -20396,20 +21053,19 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20396
21053
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
20397
21054
|
}, [debounceTimeout, key]);
|
|
20398
21055
|
var changeInput = /*#__PURE__*/function () {
|
|
20399
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
21056
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
|
|
20400
21057
|
var res;
|
|
20401
|
-
return
|
|
20402
|
-
while (1) switch (_context.
|
|
21058
|
+
return _regenerator().w(function (_context) {
|
|
21059
|
+
while (1) switch (_context.n) {
|
|
20403
21060
|
case 0:
|
|
20404
|
-
_context.
|
|
21061
|
+
_context.n = 1;
|
|
20405
21062
|
return debounceFetcher(str);
|
|
20406
|
-
case
|
|
20407
|
-
res = _context.
|
|
21063
|
+
case 1:
|
|
21064
|
+
res = _context.v;
|
|
20408
21065
|
setOptions(res);
|
|
20409
21066
|
setRescouse(res);
|
|
20410
|
-
case
|
|
20411
|
-
|
|
20412
|
-
return _context.stop();
|
|
21067
|
+
case 2:
|
|
21068
|
+
return _context.a(2);
|
|
20413
21069
|
}
|
|
20414
21070
|
}, _callee);
|
|
20415
21071
|
}));
|
|
@@ -20418,15 +21074,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20418
21074
|
};
|
|
20419
21075
|
}();
|
|
20420
21076
|
React$1.useEffect(function () {
|
|
20421
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
21077
|
+
_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
20422
21078
|
var res;
|
|
20423
|
-
return
|
|
20424
|
-
while (1) switch (_context2.
|
|
21079
|
+
return _regenerator().w(function (_context2) {
|
|
21080
|
+
while (1) switch (_context2.n) {
|
|
20425
21081
|
case 0:
|
|
20426
|
-
_context2.
|
|
21082
|
+
_context2.n = 1;
|
|
20427
21083
|
return fetchUserList(undefined, true);
|
|
20428
|
-
case
|
|
20429
|
-
res = _context2.
|
|
21084
|
+
case 1:
|
|
21085
|
+
res = _context2.v;
|
|
20430
21086
|
res.map(function (item, indexNumber) {
|
|
20431
21087
|
if (item.label === name) {
|
|
20432
21088
|
setIndex(indexNumber);
|
|
@@ -20442,9 +21098,8 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20442
21098
|
});
|
|
20443
21099
|
setOptions(res);
|
|
20444
21100
|
setRescouse(res);
|
|
20445
|
-
case
|
|
20446
|
-
|
|
20447
|
-
return _context2.stop();
|
|
21101
|
+
case 2:
|
|
21102
|
+
return _context2.a(2);
|
|
20448
21103
|
}
|
|
20449
21104
|
}, _callee2);
|
|
20450
21105
|
}))();
|
|
@@ -21493,25 +22148,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
21493
22148
|
currentOneLevel = _useState8[0],
|
|
21494
22149
|
setCurrentOneLevel = _useState8[1];
|
|
21495
22150
|
var _useState9 = React$1.useState([]),
|
|
21496
|
-
|
|
21497
|
-
SearhData =
|
|
21498
|
-
setSearchMenuData =
|
|
21499
|
-
var
|
|
22151
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
22152
|
+
SearhData = _useState0[0],
|
|
22153
|
+
setSearchMenuData = _useState0[1];
|
|
22154
|
+
var _useState1 = React$1.useState(600),
|
|
22155
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
22156
|
+
rightMenuHeight = _useState10[0],
|
|
22157
|
+
setHeight = _useState10[1];
|
|
22158
|
+
var _useState11 = React$1.useState(900),
|
|
21500
22159
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
21501
|
-
|
|
21502
|
-
|
|
21503
|
-
var _useState13 = React$1.useState(
|
|
22160
|
+
drawHeight = _useState12[0],
|
|
22161
|
+
setDrawHeight = _useState12[1];
|
|
22162
|
+
var _useState13 = React$1.useState(false),
|
|
21504
22163
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
21505
|
-
|
|
21506
|
-
|
|
22164
|
+
moreBtnShow = _useState14[0],
|
|
22165
|
+
setMoreBtnShow = _useState14[1];
|
|
21507
22166
|
var _useState15 = React$1.useState(false),
|
|
21508
22167
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
21509
|
-
|
|
21510
|
-
|
|
21511
|
-
var _useState17 = React$1.useState(false),
|
|
21512
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
21513
|
-
showScroll = _useState18[0],
|
|
21514
|
-
setShowScroll = _useState18[1];
|
|
22168
|
+
showScroll = _useState16[0],
|
|
22169
|
+
setShowScroll = _useState16[1];
|
|
21515
22170
|
React$1.useEffect(function () {
|
|
21516
22171
|
var _originRoutes$find;
|
|
21517
22172
|
getMenuContentHeight();
|
|
@@ -23122,14 +23777,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23122
23777
|
},
|
|
23123
23778
|
menu: {
|
|
23124
23779
|
request: function () {
|
|
23125
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23126
|
-
return
|
|
23127
|
-
while (1) switch (_context.
|
|
23780
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
23781
|
+
return _regenerator().w(function (_context) {
|
|
23782
|
+
while (1) switch (_context.n) {
|
|
23128
23783
|
case 0:
|
|
23129
|
-
return _context.
|
|
23130
|
-
case 1:
|
|
23131
|
-
case "end":
|
|
23132
|
-
return _context.stop();
|
|
23784
|
+
return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
23133
23785
|
}
|
|
23134
23786
|
}, _callee);
|
|
23135
23787
|
}));
|
|
@@ -23534,31 +24186,31 @@ var index$6 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
23534
24186
|
multiTableData = _useState8[0],
|
|
23535
24187
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
23536
24188
|
var _useState9 = React$1.useState(10),
|
|
23537
|
-
|
|
23538
|
-
viewCount =
|
|
23539
|
-
setViewCount =
|
|
24189
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
24190
|
+
viewCount = _useState0[0],
|
|
24191
|
+
setViewCount = _useState0[1]; //虚拟表格每次渲染数量
|
|
23540
24192
|
var itemWidth = 100; // 表格每一项宽度
|
|
23541
|
-
var
|
|
23542
|
-
|
|
23543
|
-
realColHeaderWidth =
|
|
23544
|
-
setLeftWidth =
|
|
24193
|
+
var _useState1 = React$1.useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
|
|
24194
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
24195
|
+
realColHeaderWidth = _useState10[0],
|
|
24196
|
+
setLeftWidth = _useState10[1];
|
|
23545
24197
|
var viewPort = React$1.useRef(null);
|
|
23546
24198
|
var topScrollBar = React$1.useRef(null);
|
|
23547
24199
|
var leftTableRef = React$1.useRef(null);
|
|
23548
24200
|
//起始渲染item
|
|
23549
|
-
var
|
|
23550
|
-
|
|
23551
|
-
startIndex =
|
|
23552
|
-
setStartIndex =
|
|
24201
|
+
var _useState11 = React$1.useState(0),
|
|
24202
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
24203
|
+
startIndex = _useState12[0],
|
|
24204
|
+
setStartIndex = _useState12[1];
|
|
23553
24205
|
//结束渲染item
|
|
23554
24206
|
var endIndex = React$1.useMemo(function () {
|
|
23555
24207
|
return startIndex + viewCount;
|
|
23556
24208
|
}, [startIndex, viewCount]);
|
|
23557
24209
|
//表格偏移量
|
|
23558
|
-
var
|
|
23559
|
-
|
|
23560
|
-
offsetWidth =
|
|
23561
|
-
setOffset =
|
|
24210
|
+
var _useState13 = React$1.useState(0),
|
|
24211
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
24212
|
+
offsetWidth = _useState14[0],
|
|
24213
|
+
setOffset = _useState14[1];
|
|
23562
24214
|
React$1.useEffect(function () {
|
|
23563
24215
|
setTimeout(function () {
|
|
23564
24216
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -30862,11 +31514,11 @@ var valueType = {
|
|
|
30862
31514
|
};
|
|
30863
31515
|
|
|
30864
31516
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
30865
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
30866
|
-
return
|
|
30867
|
-
while (1) switch (_context.
|
|
31517
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(dictionaryCode) {
|
|
31518
|
+
return _regenerator().w(function (_context) {
|
|
31519
|
+
while (1) switch (_context.n) {
|
|
30868
31520
|
case 0:
|
|
30869
|
-
_context.
|
|
31521
|
+
_context.n = 1;
|
|
30870
31522
|
return bssula.request({
|
|
30871
31523
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
30872
31524
|
converter: function converter(_ref2) {
|
|
@@ -30879,11 +31531,8 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
30879
31531
|
});
|
|
30880
31532
|
}
|
|
30881
31533
|
});
|
|
30882
|
-
case
|
|
30883
|
-
return _context.
|
|
30884
|
-
case 3:
|
|
30885
|
-
case "end":
|
|
30886
|
-
return _context.stop();
|
|
31534
|
+
case 1:
|
|
31535
|
+
return _context.a(2, _context.v);
|
|
30887
31536
|
}
|
|
30888
31537
|
}, _callee);
|
|
30889
31538
|
}));
|
|
@@ -30930,12 +31579,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30930
31579
|
value: false
|
|
30931
31580
|
}];
|
|
30932
31581
|
var ref = React$1.useRef();
|
|
30933
|
-
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
30934
|
-
var _ref$current, source;
|
|
30935
|
-
return
|
|
30936
|
-
while (1) switch (_context.
|
|
31582
|
+
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
31583
|
+
var _ref$current, source, _t, _t2;
|
|
31584
|
+
return _regenerator().w(function (_context) {
|
|
31585
|
+
while (1) switch (_context.n) {
|
|
30937
31586
|
case 0:
|
|
30938
|
-
_context.
|
|
31587
|
+
_context.n = 1;
|
|
30939
31588
|
return setIsShowAndType(function (prev) {
|
|
30940
31589
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
30941
31590
|
return {
|
|
@@ -30946,40 +31595,39 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30946
31595
|
}
|
|
30947
31596
|
return prev;
|
|
30948
31597
|
});
|
|
30949
|
-
case
|
|
31598
|
+
case 1:
|
|
30950
31599
|
if (!record.dictionaryCode) {
|
|
30951
|
-
_context.
|
|
31600
|
+
_context.n = 7;
|
|
30952
31601
|
break;
|
|
30953
31602
|
}
|
|
30954
31603
|
if (!(record.choiceType == 20)) {
|
|
30955
|
-
_context.
|
|
31604
|
+
_context.n = 2;
|
|
30956
31605
|
break;
|
|
30957
31606
|
}
|
|
30958
|
-
|
|
30959
|
-
_context.
|
|
31607
|
+
_t = getDictionarySource(record.dictionaryCode);
|
|
31608
|
+
_context.n = 6;
|
|
30960
31609
|
break;
|
|
30961
|
-
case
|
|
31610
|
+
case 2:
|
|
30962
31611
|
if (!(record.choiceType == 30)) {
|
|
30963
|
-
_context.
|
|
31612
|
+
_context.n = 4;
|
|
30964
31613
|
break;
|
|
30965
31614
|
}
|
|
30966
|
-
_context.
|
|
31615
|
+
_context.n = 3;
|
|
30967
31616
|
return getDynamicDict(record.dictionaryCode);
|
|
30968
|
-
case
|
|
30969
|
-
|
|
30970
|
-
_context.
|
|
31617
|
+
case 3:
|
|
31618
|
+
_t2 = _context.v;
|
|
31619
|
+
_context.n = 5;
|
|
30971
31620
|
break;
|
|
30972
|
-
case
|
|
30973
|
-
|
|
30974
|
-
case
|
|
30975
|
-
|
|
30976
|
-
case
|
|
30977
|
-
source =
|
|
31621
|
+
case 4:
|
|
31622
|
+
_t2 = [];
|
|
31623
|
+
case 5:
|
|
31624
|
+
_t = _t2;
|
|
31625
|
+
case 6:
|
|
31626
|
+
source = _t;
|
|
30978
31627
|
// @ts-ignore
|
|
30979
31628
|
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
30980
|
-
case
|
|
30981
|
-
|
|
30982
|
-
return _context.stop();
|
|
31629
|
+
case 7:
|
|
31630
|
+
return _context.a(2);
|
|
30983
31631
|
}
|
|
30984
31632
|
}, _callee);
|
|
30985
31633
|
})));
|
|
@@ -31044,10 +31692,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31044
31692
|
source: {
|
|
31045
31693
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
31046
31694
|
type: function () {
|
|
31047
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
31695
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
|
|
31048
31696
|
var form, values, name, relates, source;
|
|
31049
|
-
return
|
|
31050
|
-
while (1) switch (_context2.
|
|
31697
|
+
return _regenerator().w(function (_context2) {
|
|
31698
|
+
while (1) switch (_context2.n) {
|
|
31051
31699
|
case 0:
|
|
31052
31700
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
31053
31701
|
if (values[0]) {
|
|
@@ -31056,19 +31704,18 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31056
31704
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
31057
31705
|
}
|
|
31058
31706
|
if (!values[1]) {
|
|
31059
|
-
_context2.
|
|
31707
|
+
_context2.n = 2;
|
|
31060
31708
|
break;
|
|
31061
31709
|
}
|
|
31062
|
-
_context2.
|
|
31710
|
+
_context2.n = 1;
|
|
31063
31711
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
31064
|
-
case
|
|
31065
|
-
source = _context2.
|
|
31712
|
+
case 1:
|
|
31713
|
+
source = _context2.v;
|
|
31066
31714
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
31067
31715
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
31068
31716
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
31069
|
-
case
|
|
31070
|
-
|
|
31071
|
-
return _context2.stop();
|
|
31717
|
+
case 2:
|
|
31718
|
+
return _context2.a(2);
|
|
31072
31719
|
}
|
|
31073
31720
|
}, _callee2);
|
|
31074
31721
|
}));
|
|
@@ -31524,25 +32171,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31524
32171
|
source: {
|
|
31525
32172
|
relates: ['choiceType', 'inputType'],
|
|
31526
32173
|
type: function () {
|
|
31527
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
32174
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
|
|
31528
32175
|
var values, name, form, source;
|
|
31529
|
-
return
|
|
31530
|
-
while (1) switch (_context3.
|
|
32176
|
+
return _regenerator().w(function (_context3) {
|
|
32177
|
+
while (1) switch (_context3.n) {
|
|
31531
32178
|
case 0:
|
|
31532
|
-
values =
|
|
32179
|
+
values = _ref0.values, name = _ref0.name, form = _ref0.form;
|
|
31533
32180
|
if (values[1] === 40) {
|
|
31534
32181
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
31535
32182
|
form.setFieldVisible(name, false);
|
|
31536
32183
|
}
|
|
31537
32184
|
if (!(values[0] === 30)) {
|
|
31538
|
-
_context3.
|
|
32185
|
+
_context3.n = 2;
|
|
31539
32186
|
break;
|
|
31540
32187
|
}
|
|
31541
|
-
_context3.
|
|
32188
|
+
_context3.n = 1;
|
|
31542
32189
|
return bssula.request({
|
|
31543
32190
|
url: '/basic/dictDynamicItem/queryList',
|
|
31544
|
-
converter: function converter(
|
|
31545
|
-
var data =
|
|
32191
|
+
converter: function converter(_ref1) {
|
|
32192
|
+
var data = _ref1.data;
|
|
31546
32193
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31547
32194
|
return {
|
|
31548
32195
|
text: d.dictCode,
|
|
@@ -31551,17 +32198,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31551
32198
|
});
|
|
31552
32199
|
}
|
|
31553
32200
|
});
|
|
31554
|
-
case
|
|
31555
|
-
source = _context3.
|
|
32201
|
+
case 1:
|
|
32202
|
+
source = _context3.v;
|
|
31556
32203
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
31557
32204
|
form.setFieldVisible(name, true);
|
|
31558
|
-
_context3.
|
|
32205
|
+
_context3.n = 3;
|
|
31559
32206
|
break;
|
|
31560
|
-
case
|
|
32207
|
+
case 2:
|
|
31561
32208
|
form.setFieldVisible(name, false);
|
|
31562
|
-
case
|
|
31563
|
-
|
|
31564
|
-
return _context3.stop();
|
|
32209
|
+
case 3:
|
|
32210
|
+
return _context3.a(2);
|
|
31565
32211
|
}
|
|
31566
32212
|
}, _callee3);
|
|
31567
32213
|
}));
|
|
@@ -31576,8 +32222,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31576
32222
|
name: 'enumeration',
|
|
31577
32223
|
label: '维护自定义选项',
|
|
31578
32224
|
field: {
|
|
31579
|
-
type: function type(
|
|
31580
|
-
var form =
|
|
32225
|
+
type: function type(_ref10) {
|
|
32226
|
+
var form = _ref10.form;
|
|
31581
32227
|
return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
31582
32228
|
type: 'link',
|
|
31583
32229
|
onClick: function onClick() {
|
|
@@ -31603,10 +32249,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31603
32249
|
dependency: {
|
|
31604
32250
|
source: {
|
|
31605
32251
|
relates: ['choiceType'],
|
|
31606
|
-
type: function type(
|
|
31607
|
-
var values =
|
|
31608
|
-
name =
|
|
31609
|
-
form =
|
|
32252
|
+
type: function type(_ref11) {
|
|
32253
|
+
var values = _ref11.values,
|
|
32254
|
+
name = _ref11.name,
|
|
32255
|
+
form = _ref11.form;
|
|
31610
32256
|
if (values[0] === 10) {
|
|
31611
32257
|
form.setFieldVisible(name, true);
|
|
31612
32258
|
} else {
|
|
@@ -31622,10 +32268,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31622
32268
|
dependency: {
|
|
31623
32269
|
visible: {
|
|
31624
32270
|
relates: ['choiceType'],
|
|
31625
|
-
type: function type(
|
|
31626
|
-
var name =
|
|
31627
|
-
values =
|
|
31628
|
-
form =
|
|
32271
|
+
type: function type(_ref12) {
|
|
32272
|
+
var name = _ref12.name,
|
|
32273
|
+
values = _ref12.values,
|
|
32274
|
+
form = _ref12.form;
|
|
31629
32275
|
if (values[0] == 330) {
|
|
31630
32276
|
form.setFieldVisible(name, true);
|
|
31631
32277
|
} else {
|
|
@@ -31649,8 +32295,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31649
32295
|
params: {
|
|
31650
32296
|
'qp-businessType-eq': record.businessType
|
|
31651
32297
|
},
|
|
31652
|
-
converter: function converter(
|
|
31653
|
-
var data =
|
|
32298
|
+
converter: function converter(_ref13) {
|
|
32299
|
+
var data = _ref13.data;
|
|
31654
32300
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31655
32301
|
return {
|
|
31656
32302
|
text: d.name,
|
|
@@ -31690,8 +32336,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31690
32336
|
'qp-businessType-eq': record.businessType,
|
|
31691
32337
|
'qp-status-eq': 1
|
|
31692
32338
|
},
|
|
31693
|
-
converter: function converter(
|
|
31694
|
-
var data =
|
|
32339
|
+
converter: function converter(_ref14) {
|
|
32340
|
+
var data = _ref14.data;
|
|
31695
32341
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31696
32342
|
var _d$code;
|
|
31697
32343
|
return {
|
|
@@ -31719,8 +32365,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31719
32365
|
remoteSource: {
|
|
31720
32366
|
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),
|
|
31721
32367
|
method: 'get',
|
|
31722
|
-
converter: function converter(
|
|
31723
|
-
var data =
|
|
32368
|
+
converter: function converter(_ref15) {
|
|
32369
|
+
var data = _ref15.data;
|
|
31724
32370
|
if (lineDetail.moduleType == 1) {
|
|
31725
32371
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31726
32372
|
return {
|
|
@@ -31746,16 +32392,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31746
32392
|
width: 900,
|
|
31747
32393
|
maskClosable: false,
|
|
31748
32394
|
onOk: function () {
|
|
31749
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
32395
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
31750
32396
|
var _ref$current4, _res$editableStatus;
|
|
31751
32397
|
var res, _res$defaultValue;
|
|
31752
|
-
return
|
|
31753
|
-
while (1) switch (_context4.
|
|
32398
|
+
return _regenerator().w(function (_context4) {
|
|
32399
|
+
while (1) switch (_context4.n) {
|
|
31754
32400
|
case 0:
|
|
31755
|
-
_context4.
|
|
32401
|
+
_context4.n = 1;
|
|
31756
32402
|
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
31757
|
-
case
|
|
31758
|
-
res = _context4.
|
|
32403
|
+
case 1:
|
|
32404
|
+
res = _context4.v;
|
|
31759
32405
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
31760
32406
|
res.fieldGroup = record.fieldGroup;
|
|
31761
32407
|
res.businessType = record.businessType;
|
|
@@ -31782,7 +32428,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31782
32428
|
delete res.formula;
|
|
31783
32429
|
delete res.showValue;
|
|
31784
32430
|
if (!(mode === 'create')) {
|
|
31785
|
-
_context4.
|
|
32431
|
+
_context4.n = 2;
|
|
31786
32432
|
break;
|
|
31787
32433
|
}
|
|
31788
32434
|
bssula.request({
|
|
@@ -31794,8 +32440,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31794
32440
|
onParentOk();
|
|
31795
32441
|
}
|
|
31796
32442
|
});
|
|
31797
|
-
return _context4.
|
|
31798
|
-
case
|
|
32443
|
+
return _context4.a(2);
|
|
32444
|
+
case 2:
|
|
31799
32445
|
bssula.request({
|
|
31800
32446
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
31801
32447
|
method: 'PATCH',
|
|
@@ -31805,9 +32451,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31805
32451
|
onParentOk();
|
|
31806
32452
|
}
|
|
31807
32453
|
});
|
|
31808
|
-
case
|
|
31809
|
-
|
|
31810
|
-
return _context4.stop();
|
|
32454
|
+
case 3:
|
|
32455
|
+
return _context4.a(2);
|
|
31811
32456
|
}
|
|
31812
32457
|
}, _callee4);
|
|
31813
32458
|
}));
|
|
@@ -32263,21 +32908,21 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
32263
32908
|
jsonEditorVal = _useState8[0],
|
|
32264
32909
|
setJsonEditorVal = _useState8[1];
|
|
32265
32910
|
var _useState9 = React$1.useState({}),
|
|
32266
|
-
|
|
32267
|
-
moduleParams =
|
|
32268
|
-
setModuleParams =
|
|
32269
|
-
var
|
|
32911
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
32912
|
+
moduleParams = _useState0[0],
|
|
32913
|
+
setModuleParams = _useState0[1];
|
|
32914
|
+
var _useState1 = React$1.useState('main'),
|
|
32915
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
32916
|
+
activeKey = _useState10[0],
|
|
32917
|
+
setActiveKey = _useState10[1]; //默认详情页配置
|
|
32918
|
+
var _useState11 = React$1.useState({}),
|
|
32270
32919
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32271
|
-
|
|
32272
|
-
|
|
32273
|
-
var _useState13 = React$1.useState(
|
|
32920
|
+
tablesConfigParams = _useState12[0],
|
|
32921
|
+
setTablesConfigParams = _useState12[1];
|
|
32922
|
+
var _useState13 = React$1.useState([]),
|
|
32274
32923
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32275
|
-
|
|
32276
|
-
|
|
32277
|
-
var _useState15 = React$1.useState([]),
|
|
32278
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
32279
|
-
tableJsonEditorValsArr = _useState16[0],
|
|
32280
|
-
setTableJsonEditorValsArr = _useState16[1];
|
|
32924
|
+
tableJsonEditorValsArr = _useState14[0],
|
|
32925
|
+
setTableJsonEditorValsArr = _useState14[1];
|
|
32281
32926
|
React$1.useEffect(function () {
|
|
32282
32927
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32283
32928
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -32308,7 +32953,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
32308
32953
|
});
|
|
32309
32954
|
Promise.all(axiosArr).then(function (_ref5) {
|
|
32310
32955
|
var _ref6 = _toArray(_ref5),
|
|
32311
|
-
resArr = _ref6.slice(0);
|
|
32956
|
+
resArr = _arrayLikeToArray(_ref6).slice(0);
|
|
32312
32957
|
var configParams = {};
|
|
32313
32958
|
detailTablesSetting.map(function (item, index) {
|
|
32314
32959
|
var _resArr$index;
|
|
@@ -32653,11 +33298,11 @@ function getMetaData(_x) {
|
|
|
32653
33298
|
|
|
32654
33299
|
// 获取数据
|
|
32655
33300
|
function _getMetaData() {
|
|
32656
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
32657
|
-
return
|
|
32658
|
-
while (1) switch (_context.
|
|
33301
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id) {
|
|
33302
|
+
return _regenerator().w(function (_context) {
|
|
33303
|
+
while (1) switch (_context.n) {
|
|
32659
33304
|
case 0:
|
|
32660
|
-
return _context.
|
|
33305
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
32661
33306
|
umi.request('/basic/entityProperty/listNoPage', {
|
|
32662
33307
|
params: {
|
|
32663
33308
|
'qp-entityId-eq': id
|
|
@@ -32669,9 +33314,6 @@ function _getMetaData() {
|
|
|
32669
33314
|
reject([]);
|
|
32670
33315
|
});
|
|
32671
33316
|
}));
|
|
32672
|
-
case 1:
|
|
32673
|
-
case "end":
|
|
32674
|
-
return _context.stop();
|
|
32675
33317
|
}
|
|
32676
33318
|
}, _callee);
|
|
32677
33319
|
}));
|
|
@@ -32875,11 +33517,11 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32875
33517
|
tableState = _useState4[0],
|
|
32876
33518
|
setTableState = _useState4[1];
|
|
32877
33519
|
var handleOpen = /*#__PURE__*/function () {
|
|
32878
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33520
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
32879
33521
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
32880
33522
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
32881
|
-
return
|
|
32882
|
-
while (1) switch (_context.
|
|
33523
|
+
return _regenerator().w(function (_context) {
|
|
33524
|
+
while (1) switch (_context.n) {
|
|
32883
33525
|
case 0:
|
|
32884
33526
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
32885
33527
|
isSearchForm: props.isSearchForm,
|
|
@@ -32887,16 +33529,16 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32887
33529
|
searchFormData: searchFormData
|
|
32888
33530
|
});
|
|
32889
33531
|
if (requestConfigNew) {
|
|
32890
|
-
_context.
|
|
33532
|
+
_context.n = 1;
|
|
32891
33533
|
break;
|
|
32892
33534
|
}
|
|
32893
|
-
return _context.
|
|
32894
|
-
case
|
|
33535
|
+
return _context.a(2);
|
|
33536
|
+
case 1:
|
|
32895
33537
|
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;
|
|
32896
|
-
_context.
|
|
33538
|
+
_context.n = 2;
|
|
32897
33539
|
return getMetaData(metaDataId);
|
|
32898
|
-
case
|
|
32899
|
-
metaData = _context.
|
|
33540
|
+
case 2:
|
|
33541
|
+
metaData = _context.v;
|
|
32900
33542
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
32901
33543
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
32902
33544
|
})) || [];
|
|
@@ -32936,9 +33578,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32936
33578
|
// @ts-ignore
|
|
32937
33579
|
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);
|
|
32938
33580
|
}
|
|
32939
|
-
case
|
|
32940
|
-
|
|
32941
|
-
return _context.stop();
|
|
33581
|
+
case 3:
|
|
33582
|
+
return _context.a(2);
|
|
32942
33583
|
}
|
|
32943
33584
|
}, _callee);
|
|
32944
33585
|
}));
|
|
@@ -33041,7 +33682,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33041
33682
|
}, [requestConfig, tableState.columns]);
|
|
33042
33683
|
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';
|
|
33043
33684
|
var handleOk = function handleOk(rowData) {
|
|
33044
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
33685
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
|
|
33045
33686
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
33046
33687
|
//多选数据处理
|
|
33047
33688
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -33052,9 +33693,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33052
33693
|
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()) || [];
|
|
33053
33694
|
var realSelectedRows = selectedRows;
|
|
33054
33695
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
33055
|
-
var _queryTableRef$
|
|
33696
|
+
var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
|
|
33056
33697
|
// @ts-ignore
|
|
33057
|
-
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33698
|
+
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()) || [];
|
|
33058
33699
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
33059
33700
|
return selectedKesys.includes(s[rowKey]);
|
|
33060
33701
|
});
|
|
@@ -33087,10 +33728,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33087
33728
|
});
|
|
33088
33729
|
}
|
|
33089
33730
|
mappings.map(function (item) {
|
|
33090
|
-
var _props$
|
|
33091
|
-
if (((_props$
|
|
33092
|
-
var _props$
|
|
33093
|
-
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$
|
|
33731
|
+
var _props$customSelector0, _props$customSelector1, _props$customSelector10, _props$customSelector11;
|
|
33732
|
+
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]) {
|
|
33733
|
+
var _props$customSelector12, _props$customSelector13;
|
|
33734
|
+
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];
|
|
33094
33735
|
}
|
|
33095
33736
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
33096
33737
|
});
|
|
@@ -33145,10 +33786,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33145
33786
|
}
|
|
33146
33787
|
props.onCancel();
|
|
33147
33788
|
//@ts-ignore
|
|
33148
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33789
|
+
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();
|
|
33149
33790
|
};
|
|
33150
33791
|
var config = React$1.useMemo(function () {
|
|
33151
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
33792
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
|
|
33152
33793
|
var returnConfig = {
|
|
33153
33794
|
size: 'small',
|
|
33154
33795
|
needPageHeader: false,
|
|
@@ -33157,7 +33798,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33157
33798
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33158
33799
|
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) {
|
|
33159
33800
|
return v.key || v;
|
|
33160
|
-
})) || (props === null || props === void 0 ? void 0 : (_props$
|
|
33801
|
+
})) || (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))
|
|
33161
33802
|
} : false,
|
|
33162
33803
|
remoteDataSource: remoteDataSource,
|
|
33163
33804
|
fields: tableState.fields,
|
|
@@ -33165,8 +33806,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33165
33806
|
rowKey: rowKey,
|
|
33166
33807
|
tableProps: !isView && {
|
|
33167
33808
|
rowClassName: function rowClassName(record) {
|
|
33168
|
-
var _props$
|
|
33169
|
-
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$
|
|
33809
|
+
var _props$ctx1, _props$value3, _props$ctx10, _props$ctx10$form;
|
|
33810
|
+
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' : '';
|
|
33170
33811
|
},
|
|
33171
33812
|
onRow: function onRow(record) {
|
|
33172
33813
|
return {
|
|
@@ -33211,10 +33852,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33211
33852
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
33212
33853
|
type: "default",
|
|
33213
33854
|
onClick: function onClick() {
|
|
33214
|
-
var _queryTableRef$
|
|
33855
|
+
var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
|
|
33215
33856
|
props.onCancel();
|
|
33216
33857
|
//@ts-ignore
|
|
33217
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33858
|
+
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();
|
|
33218
33859
|
}
|
|
33219
33860
|
}, "\u53D6\u6D88"))));
|
|
33220
33861
|
});
|
|
@@ -33438,19 +34079,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33438
34079
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33439
34080
|
handSource = _useState2[0],
|
|
33440
34081
|
setHandSource = _useState2[1];
|
|
33441
|
-
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34082
|
+
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33442
34083
|
var resData, data;
|
|
33443
|
-
return
|
|
33444
|
-
while (1) switch (_context.
|
|
34084
|
+
return _regenerator().w(function (_context) {
|
|
34085
|
+
while (1) switch (_context.n) {
|
|
33445
34086
|
case 0:
|
|
33446
34087
|
if (!(!source && initRequestSource)) {
|
|
33447
|
-
_context.
|
|
34088
|
+
_context.n = 2;
|
|
33448
34089
|
break;
|
|
33449
34090
|
}
|
|
33450
|
-
_context.
|
|
34091
|
+
_context.n = 1;
|
|
33451
34092
|
return initRequestSource();
|
|
33452
|
-
case
|
|
33453
|
-
resData = _context.
|
|
34093
|
+
case 1:
|
|
34094
|
+
resData = _context.v;
|
|
33454
34095
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
33455
34096
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
33456
34097
|
label: item.text,
|
|
@@ -33458,9 +34099,8 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33458
34099
|
});
|
|
33459
34100
|
})) || [];
|
|
33460
34101
|
setHandSource(data);
|
|
33461
|
-
case
|
|
33462
|
-
|
|
33463
|
-
return _context.stop();
|
|
34102
|
+
case 2:
|
|
34103
|
+
return _context.a(2);
|
|
33464
34104
|
}
|
|
33465
34105
|
}, _callee);
|
|
33466
34106
|
})), []);
|
|
@@ -33590,20 +34230,17 @@ function getRegularThresholdRange(_x) {
|
|
|
33590
34230
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
33591
34231
|
}
|
|
33592
34232
|
function _getRegularThresholdRange() {
|
|
33593
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
33594
|
-
return
|
|
33595
|
-
while (1) switch (_context.
|
|
34233
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
34234
|
+
return _regenerator().w(function (_context) {
|
|
34235
|
+
while (1) switch (_context.n) {
|
|
33596
34236
|
case 0:
|
|
33597
|
-
return _context.
|
|
34237
|
+
return _context.a(2, requestUtil({
|
|
33598
34238
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
33599
34239
|
method: 'POST',
|
|
33600
34240
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
33601
34241
|
queryIdentify: undefined
|
|
33602
34242
|
})
|
|
33603
34243
|
}));
|
|
33604
|
-
case 1:
|
|
33605
|
-
case "end":
|
|
33606
|
-
return _context.stop();
|
|
33607
34244
|
}
|
|
33608
34245
|
}, _callee);
|
|
33609
34246
|
}));
|
|
@@ -33744,24 +34381,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33744
34381
|
};
|
|
33745
34382
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
33746
34383
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
33747
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
34384
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
33748
34385
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
33749
|
-
return
|
|
33750
|
-
while (1) switch (_context.
|
|
34386
|
+
return _regenerator().w(function (_context) {
|
|
34387
|
+
while (1) switch (_context.n) {
|
|
33751
34388
|
case 0:
|
|
33752
34389
|
if (queryIdentify) {
|
|
33753
|
-
_context.
|
|
34390
|
+
_context.n = 1;
|
|
33754
34391
|
break;
|
|
33755
34392
|
}
|
|
33756
|
-
return _context.
|
|
33757
|
-
case
|
|
34393
|
+
return _context.a(2);
|
|
34394
|
+
case 1:
|
|
33758
34395
|
thresholdQuery = _this.state.thresholdQuery;
|
|
33759
34396
|
extraRequestUrl = '';
|
|
33760
34397
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
33761
34398
|
if (!queryIdentityInfo.find(function (item) {
|
|
33762
34399
|
return item.identity == propertyCode;
|
|
33763
34400
|
})) {
|
|
33764
|
-
_context.
|
|
34401
|
+
_context.n = 3;
|
|
33765
34402
|
break;
|
|
33766
34403
|
}
|
|
33767
34404
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -33775,15 +34412,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33775
34412
|
if (!needQueryList.some(function (item) {
|
|
33776
34413
|
return !querParams[item] || !querParams[item].length;
|
|
33777
34414
|
})) {
|
|
33778
|
-
_context.
|
|
34415
|
+
_context.n = 2;
|
|
33779
34416
|
break;
|
|
33780
34417
|
}
|
|
33781
|
-
return _context.
|
|
33782
|
-
case
|
|
34418
|
+
return _context.a(2);
|
|
34419
|
+
case 2:
|
|
33783
34420
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
33784
34421
|
return item.identity == propertyCode;
|
|
33785
34422
|
}).requestUrl || '';
|
|
33786
|
-
case
|
|
34423
|
+
case 3:
|
|
33787
34424
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
33788
34425
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
33789
34426
|
querParams = {
|
|
@@ -33794,7 +34431,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33794
34431
|
// querParams = { dictCode: queryIdentify }
|
|
33795
34432
|
}
|
|
33796
34433
|
if (!extraRequestUrl) {
|
|
33797
|
-
_context.
|
|
34434
|
+
_context.n = 4;
|
|
33798
34435
|
break;
|
|
33799
34436
|
}
|
|
33800
34437
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -33833,43 +34470,42 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33833
34470
|
return handleData;
|
|
33834
34471
|
}
|
|
33835
34472
|
});
|
|
33836
|
-
_context.
|
|
34473
|
+
_context.n = 8;
|
|
33837
34474
|
break;
|
|
33838
|
-
case
|
|
34475
|
+
case 4:
|
|
33839
34476
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
33840
|
-
_context.
|
|
34477
|
+
_context.n = 5;
|
|
33841
34478
|
break;
|
|
33842
34479
|
}
|
|
33843
34480
|
_this.setState({
|
|
33844
34481
|
thresholdList: queryIdentify
|
|
33845
34482
|
});
|
|
33846
|
-
_context.
|
|
34483
|
+
_context.n = 8;
|
|
33847
34484
|
break;
|
|
33848
|
-
case
|
|
34485
|
+
case 5:
|
|
33849
34486
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
33850
|
-
_context.
|
|
34487
|
+
_context.n = 6;
|
|
33851
34488
|
break;
|
|
33852
34489
|
}
|
|
33853
34490
|
// TODO待处理
|
|
33854
34491
|
_this.setState({
|
|
33855
34492
|
thresholdList: []
|
|
33856
34493
|
});
|
|
33857
|
-
_context.
|
|
34494
|
+
_context.n = 8;
|
|
33858
34495
|
break;
|
|
33859
|
-
case
|
|
34496
|
+
case 6:
|
|
33860
34497
|
querParams.queryIdentify = queryIdentify;
|
|
33861
|
-
_context.
|
|
34498
|
+
_context.n = 7;
|
|
33862
34499
|
return getRegularThresholdRange(querParams);
|
|
33863
|
-
case
|
|
33864
|
-
res = _context.
|
|
34500
|
+
case 7:
|
|
34501
|
+
res = _context.v;
|
|
33865
34502
|
if (handleError(res)) {
|
|
33866
34503
|
_this.setState({
|
|
33867
34504
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
33868
34505
|
});
|
|
33869
34506
|
}
|
|
33870
|
-
case
|
|
33871
|
-
|
|
33872
|
-
return _context.stop();
|
|
34507
|
+
case 8:
|
|
34508
|
+
return _context.a(2);
|
|
33873
34509
|
}
|
|
33874
34510
|
}, _callee);
|
|
33875
34511
|
}));
|
|
@@ -34701,11 +35337,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34701
35337
|
isAll: true,
|
|
34702
35338
|
needNameAndCode: true,
|
|
34703
35339
|
notChangeOnSelect: true,
|
|
34704
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34705
|
-
return
|
|
34706
|
-
while (1) switch (_context2.
|
|
35340
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
35341
|
+
return _regenerator().w(function (_context2) {
|
|
35342
|
+
while (1) switch (_context2.n) {
|
|
34707
35343
|
case 0:
|
|
34708
|
-
_context2.
|
|
35344
|
+
_context2.n = 1;
|
|
34709
35345
|
return bssula.request({
|
|
34710
35346
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34711
35347
|
method: 'get',
|
|
@@ -34722,11 +35358,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34722
35358
|
return handleData;
|
|
34723
35359
|
}
|
|
34724
35360
|
});
|
|
34725
|
-
case
|
|
34726
|
-
return _context2.
|
|
34727
|
-
case 3:
|
|
34728
|
-
case "end":
|
|
34729
|
-
return _context2.stop();
|
|
35361
|
+
case 1:
|
|
35362
|
+
return _context2.a(2, _context2.v);
|
|
34730
35363
|
}
|
|
34731
35364
|
}, _callee2);
|
|
34732
35365
|
})),
|
|
@@ -34750,11 +35383,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34750
35383
|
isAll: true,
|
|
34751
35384
|
needNameAndCode: true,
|
|
34752
35385
|
notChangeOnSelect: true,
|
|
34753
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34754
|
-
return
|
|
34755
|
-
while (1) switch (_context3.
|
|
35386
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
35387
|
+
return _regenerator().w(function (_context3) {
|
|
35388
|
+
while (1) switch (_context3.n) {
|
|
34756
35389
|
case 0:
|
|
34757
|
-
_context3.
|
|
35390
|
+
_context3.n = 1;
|
|
34758
35391
|
return bssula.request({
|
|
34759
35392
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34760
35393
|
method: 'get',
|
|
@@ -34771,11 +35404,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34771
35404
|
return handleData;
|
|
34772
35405
|
}
|
|
34773
35406
|
});
|
|
34774
|
-
case
|
|
34775
|
-
return _context3.
|
|
34776
|
-
case 3:
|
|
34777
|
-
case "end":
|
|
34778
|
-
return _context3.stop();
|
|
35407
|
+
case 1:
|
|
35408
|
+
return _context3.a(2, _context3.v);
|
|
34779
35409
|
}
|
|
34780
35410
|
}, _callee3);
|
|
34781
35411
|
})),
|
|
@@ -34801,11 +35431,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34801
35431
|
isAll: true,
|
|
34802
35432
|
needNameAndCode: true,
|
|
34803
35433
|
notChangeOnSelect: true,
|
|
34804
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34805
|
-
return
|
|
34806
|
-
while (1) switch (_context4.
|
|
35434
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
35435
|
+
return _regenerator().w(function (_context4) {
|
|
35436
|
+
while (1) switch (_context4.n) {
|
|
34807
35437
|
case 0:
|
|
34808
|
-
_context4.
|
|
35438
|
+
_context4.n = 1;
|
|
34809
35439
|
return bssula.request({
|
|
34810
35440
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34811
35441
|
method: 'get',
|
|
@@ -34822,11 +35452,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34822
35452
|
return handleData;
|
|
34823
35453
|
}
|
|
34824
35454
|
});
|
|
34825
|
-
case
|
|
34826
|
-
return _context4.
|
|
34827
|
-
case 3:
|
|
34828
|
-
case "end":
|
|
34829
|
-
return _context4.stop();
|
|
35455
|
+
case 1:
|
|
35456
|
+
return _context4.a(2, _context4.v);
|
|
34830
35457
|
}
|
|
34831
35458
|
}, _callee4);
|
|
34832
35459
|
})),
|
|
@@ -35513,8 +36140,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35513
36140
|
}
|
|
35514
36141
|
}));
|
|
35515
36142
|
} else {
|
|
35516
|
-
var
|
|
35517
|
-
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((
|
|
36143
|
+
var _values0;
|
|
36144
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
|
|
35518
36145
|
return {
|
|
35519
36146
|
key: s,
|
|
35520
36147
|
label: valueNames[vIndex],
|
|
@@ -35724,7 +36351,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35724
36351
|
}
|
|
35725
36352
|
}
|
|
35726
36353
|
// 配送方式选择器
|
|
35727
|
-
if (dataChoiceBusinessType == 310) {
|
|
36354
|
+
if (dataChoiceBusinessType == 310 || dataChoiceBusinessType == 311) {
|
|
35728
36355
|
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
35729
36356
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35730
36357
|
selectBusinessType: "deliveryMode",
|
|
@@ -35738,9 +36365,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35738
36365
|
disabled: disabled,
|
|
35739
36366
|
labelInValue: true,
|
|
35740
36367
|
value: values[0],
|
|
35741
|
-
requestConfig: {
|
|
36368
|
+
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36369
|
+
otherParams: {
|
|
36370
|
+
// 配送方式只选择标准配送方式
|
|
36371
|
+
'qp-recordChannnelCode-eq': 80
|
|
36372
|
+
}
|
|
36373
|
+
} : {}), {}, {
|
|
35742
36374
|
filterInit: 'qp-code-in'
|
|
35743
|
-
},
|
|
36375
|
+
}),
|
|
35744
36376
|
onChange: function onChange(value) {
|
|
35745
36377
|
if (dataInputBusinessType === 12) {
|
|
35746
36378
|
values[0] = value.map(function (i) {
|
|
@@ -35770,9 +36402,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35770
36402
|
disabled: disabled,
|
|
35771
36403
|
labelInValue: true,
|
|
35772
36404
|
value: values[1],
|
|
35773
|
-
requestConfig: {
|
|
36405
|
+
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36406
|
+
otherParams: {
|
|
36407
|
+
// 配送方式只选择标准配送方式
|
|
36408
|
+
'qp-recordChannnelCode-eq': 80
|
|
36409
|
+
}
|
|
36410
|
+
} : {}), {}, {
|
|
35774
36411
|
filterInit: 'qp-code-in'
|
|
35775
|
-
},
|
|
36412
|
+
}),
|
|
35776
36413
|
onChange: function onChange(value) {
|
|
35777
36414
|
if (dataInputBusinessType === 12) {
|
|
35778
36415
|
values[1] = value.map(function (i) {
|
|
@@ -35792,8 +36429,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35792
36429
|
}
|
|
35793
36430
|
}));
|
|
35794
36431
|
} else {
|
|
35795
|
-
var
|
|
35796
|
-
var
|
|
36432
|
+
var _values1;
|
|
36433
|
+
var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
|
|
35797
36434
|
return {
|
|
35798
36435
|
key: s,
|
|
35799
36436
|
label: valueNames[vIndex],
|
|
@@ -35815,10 +36452,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35815
36452
|
} : {}),
|
|
35816
36453
|
disabled: disabled,
|
|
35817
36454
|
labelInValue: true,
|
|
35818
|
-
value:
|
|
35819
|
-
requestConfig: {
|
|
36455
|
+
value: _currentValue0,
|
|
36456
|
+
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36457
|
+
otherParams: {
|
|
36458
|
+
// 配送方式只选择标准配送方式
|
|
36459
|
+
'qp-recordChannnelCode-eq': 80
|
|
36460
|
+
}
|
|
36461
|
+
} : {}), {}, {
|
|
35820
36462
|
filterInit: 'qp-code-in'
|
|
35821
|
-
},
|
|
36463
|
+
}),
|
|
35822
36464
|
onChange: function onChange(value) {
|
|
35823
36465
|
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
35824
36466
|
values = value.map(function (i) {
|
|
@@ -35908,8 +36550,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35908
36550
|
}
|
|
35909
36551
|
}));
|
|
35910
36552
|
} else {
|
|
35911
|
-
var
|
|
35912
|
-
var
|
|
36553
|
+
var _values10;
|
|
36554
|
+
var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
35913
36555
|
return {
|
|
35914
36556
|
key: s,
|
|
35915
36557
|
label: valueNames[vIndex],
|
|
@@ -35931,7 +36573,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35931
36573
|
} : {}),
|
|
35932
36574
|
disabled: disabled,
|
|
35933
36575
|
labelInValue: true,
|
|
35934
|
-
value:
|
|
36576
|
+
value: _currentValue1,
|
|
35935
36577
|
requestConfig: {
|
|
35936
36578
|
filterInit: 'qp-code-in'
|
|
35937
36579
|
},
|
|
@@ -36024,8 +36666,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36024
36666
|
}
|
|
36025
36667
|
}));
|
|
36026
36668
|
} else {
|
|
36027
|
-
var
|
|
36028
|
-
var
|
|
36669
|
+
var _values11;
|
|
36670
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
36029
36671
|
return {
|
|
36030
36672
|
key: s,
|
|
36031
36673
|
label: valueNames[vIndex],
|
|
@@ -36047,7 +36689,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36047
36689
|
} : {}),
|
|
36048
36690
|
disabled: disabled,
|
|
36049
36691
|
labelInValue: true,
|
|
36050
|
-
value:
|
|
36692
|
+
value: _currentValue10,
|
|
36051
36693
|
requestConfig: {
|
|
36052
36694
|
filterInit: 'qp-brandCode-in'
|
|
36053
36695
|
},
|
|
@@ -36238,8 +36880,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36238
36880
|
}
|
|
36239
36881
|
}));
|
|
36240
36882
|
} else {
|
|
36241
|
-
var
|
|
36242
|
-
var
|
|
36883
|
+
var _values12;
|
|
36884
|
+
var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
36243
36885
|
return {
|
|
36244
36886
|
key: s,
|
|
36245
36887
|
label: valueNames[vIndex]
|
|
@@ -36267,7 +36909,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36267
36909
|
isSearchForm: true,
|
|
36268
36910
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36269
36911
|
disabled: disabled,
|
|
36270
|
-
value:
|
|
36912
|
+
value: _currentValue11,
|
|
36271
36913
|
onChange: function onChange(value, sourceList) {
|
|
36272
36914
|
if (dataInputBusinessType === 12) {
|
|
36273
36915
|
var _value$map3, _sourceList$filter3;
|
|
@@ -36587,9 +37229,9 @@ var App$1 = function App(_ref) {
|
|
|
36587
37229
|
UpdateState(res);
|
|
36588
37230
|
};
|
|
36589
37231
|
var _useState9 = React$1.useState(false),
|
|
36590
|
-
|
|
36591
|
-
isModalVisible =
|
|
36592
|
-
setIsModalVisible =
|
|
37232
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
37233
|
+
isModalVisible = _useState0[0],
|
|
37234
|
+
setIsModalVisible = _useState0[1];
|
|
36593
37235
|
var showModal = function showModal() {
|
|
36594
37236
|
setIsModalVisible(true);
|
|
36595
37237
|
};
|
|
@@ -37070,27 +37712,26 @@ function RenderCompItem(props) {
|
|
|
37070
37712
|
dictData = _useState2[0],
|
|
37071
37713
|
setDictData = _useState2[1];
|
|
37072
37714
|
var getDictData = /*#__PURE__*/function () {
|
|
37073
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
37715
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
37074
37716
|
var _data$map;
|
|
37075
37717
|
var data;
|
|
37076
|
-
return
|
|
37077
|
-
while (1) switch (_context.
|
|
37718
|
+
return _regenerator().w(function (_context) {
|
|
37719
|
+
while (1) switch (_context.n) {
|
|
37078
37720
|
case 0:
|
|
37079
|
-
_context.
|
|
37721
|
+
_context.n = 1;
|
|
37080
37722
|
return bssula.request({
|
|
37081
37723
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
37082
37724
|
});
|
|
37083
|
-
case
|
|
37084
|
-
data = _context.
|
|
37725
|
+
case 1:
|
|
37726
|
+
data = _context.v;
|
|
37085
37727
|
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) {
|
|
37086
37728
|
return {
|
|
37087
37729
|
text: item.dictItemName,
|
|
37088
37730
|
value: item.dictItemCode
|
|
37089
37731
|
};
|
|
37090
37732
|
}));
|
|
37091
|
-
case
|
|
37092
|
-
|
|
37093
|
-
return _context.stop();
|
|
37733
|
+
case 2:
|
|
37734
|
+
return _context.a(2);
|
|
37094
37735
|
}
|
|
37095
37736
|
}, _callee);
|
|
37096
37737
|
}));
|
|
@@ -37331,11 +37972,11 @@ function RenderCompItem(props) {
|
|
|
37331
37972
|
needNameAndCode: true,
|
|
37332
37973
|
notChangeOnSelect: true,
|
|
37333
37974
|
initRequestSource: function () {
|
|
37334
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
37335
|
-
return
|
|
37336
|
-
while (1) switch (_context2.
|
|
37975
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
37976
|
+
return _regenerator().w(function (_context2) {
|
|
37977
|
+
while (1) switch (_context2.n) {
|
|
37337
37978
|
case 0:
|
|
37338
|
-
_context2.
|
|
37979
|
+
_context2.n = 1;
|
|
37339
37980
|
return bssula.request({
|
|
37340
37981
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
37341
37982
|
method: 'get',
|
|
@@ -37353,11 +37994,8 @@ function RenderCompItem(props) {
|
|
|
37353
37994
|
return handleData;
|
|
37354
37995
|
}
|
|
37355
37996
|
});
|
|
37356
|
-
case
|
|
37357
|
-
return _context2.
|
|
37358
|
-
case 3:
|
|
37359
|
-
case "end":
|
|
37360
|
-
return _context2.stop();
|
|
37997
|
+
case 1:
|
|
37998
|
+
return _context2.a(2, _context2.v);
|
|
37361
37999
|
}
|
|
37362
38000
|
}, _callee2);
|
|
37363
38001
|
}));
|
|
@@ -37522,7 +38160,7 @@ function RenderCompItem(props) {
|
|
|
37522
38160
|
getPopupContainer: function getPopupContainer() {
|
|
37523
38161
|
return document.body;
|
|
37524
38162
|
}
|
|
37525
|
-
})) || 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, {
|
|
38163
|
+
})) || 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, {
|
|
37526
38164
|
selectBusinessType: "deliveryMode",
|
|
37527
38165
|
selectProps: _objectSpread2({
|
|
37528
38166
|
style: styleCommon,
|
|
@@ -37534,9 +38172,14 @@ function RenderCompItem(props) {
|
|
|
37534
38172
|
disabled: disabled,
|
|
37535
38173
|
labelInValue: true,
|
|
37536
38174
|
value: showValue(ites.code),
|
|
37537
|
-
requestConfig: {
|
|
38175
|
+
requestConfig: _objectSpread2(_objectSpread2({}, (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 311 ? {
|
|
38176
|
+
otherParams: {
|
|
38177
|
+
// 配送方式只选择标准配送方式
|
|
38178
|
+
'qp-recordChannnelCode-eq': 80
|
|
38179
|
+
}
|
|
38180
|
+
} : {}), {}, {
|
|
37538
38181
|
filterInit: 'qp-code-in'
|
|
37539
|
-
},
|
|
38182
|
+
}),
|
|
37540
38183
|
onChange: function onChange(value) {
|
|
37541
38184
|
handleEdit(ites.code, value);
|
|
37542
38185
|
},
|
|
@@ -38147,7 +38790,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
38147
38790
|
display: 'flex',
|
|
38148
38791
|
marginBottom: '0px',
|
|
38149
38792
|
padding: '10px 0px'
|
|
38150
|
-
}
|
|
38793
|
+
},
|
|
38794
|
+
key: itemDetail.elementId
|
|
38151
38795
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
38152
38796
|
className: 'logical_operate_content',
|
|
38153
38797
|
style: {
|
|
@@ -39407,13 +40051,13 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
39407
40051
|
ruleTypeData = _useState8[0],
|
|
39408
40052
|
setRuleTypeData = _useState8[1];
|
|
39409
40053
|
var _useState9 = React$1.useState([]),
|
|
39410
|
-
|
|
39411
|
-
ruleReturnConfig =
|
|
39412
|
-
setRuleReturnConfig =
|
|
39413
|
-
var
|
|
39414
|
-
|
|
39415
|
-
templateData =
|
|
39416
|
-
setTemplateData =
|
|
40054
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
40055
|
+
ruleReturnConfig = _useState0[0],
|
|
40056
|
+
setRuleReturnConfig = _useState0[1];
|
|
40057
|
+
var _useState1 = React$1.useState({}),
|
|
40058
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
40059
|
+
templateData = _useState10[0],
|
|
40060
|
+
setTemplateData = _useState10[1];
|
|
39417
40061
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
39418
40062
|
bssula.request({
|
|
39419
40063
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -39749,25 +40393,25 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
39749
40393
|
regularDataList = _useState8[0],
|
|
39750
40394
|
setRegularDataList = _useState8[1];
|
|
39751
40395
|
var _useState9 = React$1.useState([]),
|
|
39752
|
-
|
|
39753
|
-
baseRuleDetailList =
|
|
39754
|
-
setBaseRuleDetailList =
|
|
39755
|
-
var
|
|
40396
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
40397
|
+
baseRuleDetailList = _useState0[0],
|
|
40398
|
+
setBaseRuleDetailList = _useState0[1]; // 规则实例详情集合
|
|
40399
|
+
var _useState1 = React$1.useState([]),
|
|
40400
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
40401
|
+
systemVariableList = _useState10[0],
|
|
40402
|
+
setSystemVariableList = _useState10[1];
|
|
40403
|
+
var _useState11 = React$1.useState(false),
|
|
39756
40404
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
39757
|
-
|
|
39758
|
-
|
|
40405
|
+
isGetDefRuleDataRes = _useState12[0],
|
|
40406
|
+
setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
39759
40407
|
var _useState13 = React$1.useState(false),
|
|
39760
40408
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
39761
|
-
|
|
39762
|
-
|
|
40409
|
+
isGetRuleDataRes = _useState14[0],
|
|
40410
|
+
setIsGetRuleDataRes = _useState14[1];
|
|
39763
40411
|
var _useState15 = React$1.useState(false),
|
|
39764
40412
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
39765
|
-
|
|
39766
|
-
|
|
39767
|
-
var _useState17 = React$1.useState(false),
|
|
39768
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
39769
|
-
groupOtherPriorityList = _useState18[0],
|
|
39770
|
-
setGroupOtherPriorityList = _useState18[1];
|
|
40413
|
+
groupOtherPriorityList = _useState16[0],
|
|
40414
|
+
setGroupOtherPriorityList = _useState16[1];
|
|
39771
40415
|
var baseRuleRef = React$1.useRef();
|
|
39772
40416
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
39773
40417
|
// 查询规则组下所有规则实例
|
|
@@ -40091,6 +40735,85 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
40091
40735
|
}, children));
|
|
40092
40736
|
};
|
|
40093
40737
|
|
|
40738
|
+
//操作日志
|
|
40739
|
+
var SystemLog = function SystemLog(_ref) {
|
|
40740
|
+
var modeType = _ref.modeType,
|
|
40741
|
+
code = _ref.code,
|
|
40742
|
+
containerName = _ref.containerName,
|
|
40743
|
+
_ref$renderLogRef = _ref.renderLogRef,
|
|
40744
|
+
renderLogRef = _ref$renderLogRef === void 0 ? {} : _ref$renderLogRef,
|
|
40745
|
+
_ref$extraParams = _ref.extraParams,
|
|
40746
|
+
extraParams = _ref$extraParams === void 0 ? {} : _ref$extraParams;
|
|
40747
|
+
return _objectSpread2(_objectSpread2({}, formContainerAndItemLayout('table', '操作日志', containerName)), {}, {
|
|
40748
|
+
initialVisible: modeType != 'create',
|
|
40749
|
+
fields: [{
|
|
40750
|
+
name: 'table',
|
|
40751
|
+
label: false,
|
|
40752
|
+
itemLayout: {
|
|
40753
|
+
span: 24,
|
|
40754
|
+
labelCol: {
|
|
40755
|
+
span: 0
|
|
40756
|
+
},
|
|
40757
|
+
wrapperCol: {
|
|
40758
|
+
span: 24
|
|
40759
|
+
}
|
|
40760
|
+
},
|
|
40761
|
+
field: function field(ctx) {
|
|
40762
|
+
return code && /*#__PURE__*/React__default['default'].createElement(bssula.Table, {
|
|
40763
|
+
remoteDataSource: {
|
|
40764
|
+
url: "/oms-ops/logInfo?qp-businessCode-eq=".concat(code),
|
|
40765
|
+
convertParams: function convertParams(_ref2) {
|
|
40766
|
+
var params = _ref2.params;
|
|
40767
|
+
return _objectSpread2({
|
|
40768
|
+
pageSize: params.pageSize,
|
|
40769
|
+
currentPage: params.current
|
|
40770
|
+
}, extraParams);
|
|
40771
|
+
},
|
|
40772
|
+
converter: function converter(_ref3) {
|
|
40773
|
+
var data = _ref3.data;
|
|
40774
|
+
return _objectSpread2({}, handleConvertResponse(data.list, data.total || data.totalCount));
|
|
40775
|
+
}
|
|
40776
|
+
},
|
|
40777
|
+
columns: [{
|
|
40778
|
+
title: '操作人',
|
|
40779
|
+
dataIndex: 'handlerName'
|
|
40780
|
+
}, {
|
|
40781
|
+
title: '操作名称',
|
|
40782
|
+
dataIndex: 'handlerType'
|
|
40783
|
+
}, {
|
|
40784
|
+
title: '操作时间',
|
|
40785
|
+
dataIndex: 'handlerTime',
|
|
40786
|
+
render: function render(_ref4) {
|
|
40787
|
+
var text = _ref4.text;
|
|
40788
|
+
return handleCommonTimeRender$1(text);
|
|
40789
|
+
}
|
|
40790
|
+
}, {
|
|
40791
|
+
title: '操作内容',
|
|
40792
|
+
dataIndex: 'logcontent'
|
|
40793
|
+
}],
|
|
40794
|
+
style: {
|
|
40795
|
+
width: '100%',
|
|
40796
|
+
marginTop: '-16px',
|
|
40797
|
+
padding: '0px'
|
|
40798
|
+
},
|
|
40799
|
+
rowKey: "id",
|
|
40800
|
+
scroll: {
|
|
40801
|
+
x: 'max-content'
|
|
40802
|
+
},
|
|
40803
|
+
pagination: {
|
|
40804
|
+
showTotal: function showTotal(total) {
|
|
40805
|
+
return "\u5171 ".concat(total, " \u6761");
|
|
40806
|
+
},
|
|
40807
|
+
showQuickJumper: true,
|
|
40808
|
+
hideOnSinglePage: true
|
|
40809
|
+
},
|
|
40810
|
+
ref: renderLogRef
|
|
40811
|
+
});
|
|
40812
|
+
}
|
|
40813
|
+
}]
|
|
40814
|
+
});
|
|
40815
|
+
};
|
|
40816
|
+
|
|
40094
40817
|
exports.AddSelect = AddSelect;
|
|
40095
40818
|
exports.AddSkcSelect = AddSkcSelect;
|
|
40096
40819
|
exports.AddSkuSelect = AddSkuSelect;
|
|
@@ -40123,12 +40846,14 @@ exports.ParagraphCopier = ParagraphCopier;
|
|
|
40123
40846
|
exports.PropertySelector = PropertySelector;
|
|
40124
40847
|
exports.QueryMutipleInput = QueryMutipleInput;
|
|
40125
40848
|
exports.QueryMutipleSearchSelect = QueryMutipleSearchSelect;
|
|
40849
|
+
exports.RenderCompItem = RenderCompItem;
|
|
40126
40850
|
exports.RuleComponent = RuleObjectComponent;
|
|
40127
40851
|
exports.RuleSetter = index$7;
|
|
40128
40852
|
exports.SearchSelect = SearchSelect;
|
|
40129
40853
|
exports.Section = Section;
|
|
40130
40854
|
exports.StateFlow = index$2;
|
|
40131
40855
|
exports.SulaColumnSettingTable = ColumnSettingSulaTable;
|
|
40856
|
+
exports.SystemLog = SystemLog;
|
|
40132
40857
|
exports.TableColumnSetting = TableColumnSetting;
|
|
40133
40858
|
exports.TreeSearchSelect = TreeSearchSelect;
|
|
40134
40859
|
exports.authFunc = authFunc;
|
|
@@ -40138,6 +40863,7 @@ exports.coverToParallel = _coverToParallel;
|
|
|
40138
40863
|
exports.createUniqID = createUniqID;
|
|
40139
40864
|
exports.downloadExcel = downloadExcel;
|
|
40140
40865
|
exports.ergodicMenuRoutes = ergodicMenuRoutes;
|
|
40866
|
+
exports.formContainerAndItemLayout = formContainerAndItemLayout;
|
|
40141
40867
|
exports.formatter = _formatter;
|
|
40142
40868
|
exports.getAccountID = getAccountID;
|
|
40143
40869
|
exports.getAccountId = getAccountId;
|
|
@@ -40198,6 +40924,7 @@ exports.noEmptyArray = noEmptyArray;
|
|
|
40198
40924
|
exports.paramsControl = paramsControl;
|
|
40199
40925
|
exports.parseWidth = parseWidth;
|
|
40200
40926
|
exports.precisionQuantity = precisionQuantity;
|
|
40927
|
+
exports.processDetailButtonsVisible = processDetailButtonsVisible;
|
|
40201
40928
|
exports.randomString = randomString;
|
|
40202
40929
|
exports.readerXlsxToList = readerXlsxToList;
|
|
40203
40930
|
exports.removeCurrentTenantId = removeCurrentTenantId;
|