@bit-sun/business-component 4.2.1-alpha.6-aiwei → 4.2.1-alpha.8-aiwei
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Business/AddSelectBusiness/index.d.ts +4 -3
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +2 -1
- 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 +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -1
- 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 +2 -1
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +15 -14
- package/dist/components/Business/CommodityEntry/index.d.ts +2 -1
- package/dist/components/Business/CommonAlert/index.d.ts +2 -1
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -11
- package/dist/components/Business/HomePageWrapper/index.d.ts +2 -1
- package/dist/components/Business/ItemPropertySelector/index.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -1
- package/dist/components/Business/PropertyModal/index.d.ts +2 -1
- 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 +2 -1
- 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 +2 -1
- 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 +2 -1
- 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 +2 -1
- package/dist/components/Functional/AuthButton/index.d.ts +2 -1
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +4 -4
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +2 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +3 -2
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +2 -1
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +2 -1
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.esm.js +1169 -770
- package/dist/index.js +1168 -769
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +19 -18
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +93 -10
- package/src/components/Functional/SearchSelect/index.tsx +32 -1
package/dist/index.js
CHANGED
|
@@ -211,8 +211,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
211
211
|
r,
|
|
212
212
|
i = _objectWithoutPropertiesLoose(e, t);
|
|
213
213
|
if (Object.getOwnPropertySymbols) {
|
|
214
|
-
var
|
|
215
|
-
for (r = 0; r <
|
|
214
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
215
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
216
216
|
}
|
|
217
217
|
return i;
|
|
218
218
|
}
|
|
@@ -220,7 +220,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
220
220
|
if (null == r) return {};
|
|
221
221
|
var t = {};
|
|
222
222
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
223
|
-
if (
|
|
223
|
+
if (e.includes(n)) continue;
|
|
224
224
|
t[n] = r[n];
|
|
225
225
|
}
|
|
226
226
|
return t;
|
|
@@ -230,113 +230,306 @@ 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
|
-
|
|
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
|
-
};
|
|
233
|
+
function _regeneratorRuntime() {
|
|
234
|
+
_regeneratorRuntime = function () {
|
|
235
|
+
return e;
|
|
236
|
+
};
|
|
237
|
+
var t,
|
|
238
|
+
e = {},
|
|
239
|
+
r = Object.prototype,
|
|
240
|
+
n = r.hasOwnProperty,
|
|
241
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
242
|
+
t[e] = r.value;
|
|
243
|
+
},
|
|
244
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
245
|
+
a = i.iterator || "@@iterator",
|
|
246
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
247
|
+
u = i.toStringTag || "@@toStringTag";
|
|
248
|
+
function define(t, e, r) {
|
|
249
|
+
return Object.defineProperty(t, e, {
|
|
250
|
+
value: r,
|
|
251
|
+
enumerable: !0,
|
|
252
|
+
configurable: !0,
|
|
253
|
+
writable: !0
|
|
254
|
+
}), t[e];
|
|
255
|
+
}
|
|
256
|
+
try {
|
|
257
|
+
define({}, "");
|
|
258
|
+
} catch (t) {
|
|
259
|
+
define = function (t, e, r) {
|
|
260
|
+
return t[e] = r;
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
function wrap(t, e, r, n) {
|
|
264
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
265
|
+
a = Object.create(i.prototype),
|
|
266
|
+
c = new Context(n || []);
|
|
267
|
+
return o(a, "_invoke", {
|
|
268
|
+
value: makeInvokeMethod(t, r, c)
|
|
269
|
+
}), a;
|
|
270
|
+
}
|
|
271
|
+
function tryCatch(t, e, r) {
|
|
272
|
+
try {
|
|
273
|
+
return {
|
|
274
|
+
type: "normal",
|
|
275
|
+
arg: t.call(e, r)
|
|
276
|
+
};
|
|
277
|
+
} catch (t) {
|
|
278
|
+
return {
|
|
279
|
+
type: "throw",
|
|
280
|
+
arg: t
|
|
294
281
|
};
|
|
295
|
-
}
|
|
282
|
+
}
|
|
296
283
|
}
|
|
297
|
-
|
|
284
|
+
e.wrap = wrap;
|
|
285
|
+
var h = "suspendedStart",
|
|
286
|
+
l = "suspendedYield",
|
|
287
|
+
f = "executing",
|
|
288
|
+
s = "completed",
|
|
289
|
+
y = {};
|
|
298
290
|
function Generator() {}
|
|
299
291
|
function GeneratorFunction() {}
|
|
300
292
|
function GeneratorFunctionPrototype() {}
|
|
301
|
-
|
|
302
|
-
|
|
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 () {
|
|
293
|
+
var p = {};
|
|
294
|
+
define(p, a, function () {
|
|
310
295
|
return this;
|
|
311
|
-
})
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
296
|
+
});
|
|
297
|
+
var d = Object.getPrototypeOf,
|
|
298
|
+
v = d && d(d(values([])));
|
|
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
|
+
}
|
|
317
373
|
};
|
|
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
374
|
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
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) {
|
|
427
|
+
return {
|
|
428
|
+
__await: t
|
|
429
|
+
};
|
|
430
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
431
|
+
return this;
|
|
432
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
433
|
+
void 0 === i && (i = Promise);
|
|
434
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
435
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
436
|
+
return t.done ? t.value : a.next();
|
|
437
|
+
});
|
|
438
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
439
|
+
return this;
|
|
440
|
+
}), define(g, "toString", function () {
|
|
441
|
+
return "[object Generator]";
|
|
442
|
+
}), e.keys = function (t) {
|
|
443
|
+
var e = Object(t),
|
|
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;
|
|
332
531
|
}
|
|
333
|
-
|
|
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);
|
|
532
|
+
}, e;
|
|
340
533
|
}
|
|
341
534
|
function _setPrototypeOf(t, e) {
|
|
342
535
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -1409,22 +1602,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1409
1602
|
// sheepMap是表头字段中英文映射
|
|
1410
1603
|
// sheetCount:表的数量,默认一张
|
|
1411
1604
|
var resolveFile = /*#__PURE__*/function () {
|
|
1412
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
1605
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1413
1606
|
var config,
|
|
1414
1607
|
data,
|
|
1415
1608
|
_args = arguments;
|
|
1416
|
-
return
|
|
1417
|
-
while (1) switch (_context.
|
|
1609
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1610
|
+
while (1) switch (_context.prev = _context.next) {
|
|
1418
1611
|
case 0:
|
|
1419
1612
|
config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
|
|
1420
1613
|
sheetMap: [],
|
|
1421
1614
|
sheetCount: 1
|
|
1422
1615
|
};
|
|
1423
|
-
_context.
|
|
1616
|
+
_context.next = 3;
|
|
1424
1617
|
return analyseExcelToByte(file);
|
|
1425
|
-
case
|
|
1426
|
-
data = _context.
|
|
1427
|
-
return _context.
|
|
1618
|
+
case 3:
|
|
1619
|
+
data = _context.sent;
|
|
1620
|
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
1428
1621
|
var workbook = XLSX.read(data, {
|
|
1429
1622
|
type: 'binary'
|
|
1430
1623
|
});
|
|
@@ -1436,6 +1629,9 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1436
1629
|
var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
|
|
1437
1630
|
resolve(outdata);
|
|
1438
1631
|
}));
|
|
1632
|
+
case 5:
|
|
1633
|
+
case "end":
|
|
1634
|
+
return _context.stop();
|
|
1439
1635
|
}
|
|
1440
1636
|
}, _callee);
|
|
1441
1637
|
}));
|
|
@@ -1445,40 +1641,41 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1445
1641
|
}();
|
|
1446
1642
|
//读取文件
|
|
1447
1643
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1448
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
1644
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1449
1645
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1450
|
-
return
|
|
1451
|
-
while (1) switch (_context2.
|
|
1646
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1647
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
1452
1648
|
case 0:
|
|
1453
1649
|
_ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
|
|
1454
1650
|
if (!(Array.isArray(fileList) && fileList.length > 0)) {
|
|
1455
|
-
_context2.
|
|
1651
|
+
_context2.next = 15;
|
|
1456
1652
|
break;
|
|
1457
1653
|
}
|
|
1458
1654
|
nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
|
|
1459
|
-
_context2.
|
|
1655
|
+
_context2.next = 5;
|
|
1460
1656
|
return resolveFile(nowFile.originFileObj, {
|
|
1461
1657
|
sheetMap: fieldMappingReverse(sheetMap),
|
|
1462
1658
|
sheetCount: 1
|
|
1463
1659
|
});
|
|
1464
|
-
case
|
|
1465
|
-
data2 = _context2.
|
|
1660
|
+
case 5:
|
|
1661
|
+
data2 = _context2.sent;
|
|
1466
1662
|
data = data2[0];
|
|
1467
1663
|
if (data.length) {
|
|
1468
|
-
_context2.
|
|
1664
|
+
_context2.next = 10;
|
|
1469
1665
|
break;
|
|
1470
1666
|
}
|
|
1471
1667
|
antd.message.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
|
|
1472
|
-
return _context2.
|
|
1473
|
-
case
|
|
1668
|
+
return _context2.abrupt("return");
|
|
1669
|
+
case 10:
|
|
1474
1670
|
if (callback) callback(data);
|
|
1475
1671
|
!callback && antd.message.success("\u5BFC\u5165\u6210\u529F");
|
|
1476
|
-
return _context2.
|
|
1477
|
-
case
|
|
1672
|
+
return _context2.abrupt("return", data);
|
|
1673
|
+
case 15:
|
|
1478
1674
|
antd.message.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
|
|
1479
|
-
return _context2.
|
|
1480
|
-
case
|
|
1481
|
-
|
|
1675
|
+
return _context2.abrupt("return");
|
|
1676
|
+
case 17:
|
|
1677
|
+
case "end":
|
|
1678
|
+
return _context2.stop();
|
|
1482
1679
|
}
|
|
1483
1680
|
}, _callee2);
|
|
1484
1681
|
}));
|
|
@@ -2430,14 +2627,17 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2430
2627
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2431
2628
|
};
|
|
2432
2629
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2433
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
2434
|
-
return
|
|
2435
|
-
while (1) switch (_context.
|
|
2630
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2631
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2632
|
+
while (1) switch (_context.prev = _context.next) {
|
|
2436
2633
|
case 0:
|
|
2437
|
-
return _context.
|
|
2634
|
+
return _context.abrupt("return", Promise.resolve({
|
|
2438
2635
|
data: response,
|
|
2439
2636
|
status: response.status
|
|
2440
2637
|
}));
|
|
2638
|
+
case 1:
|
|
2639
|
+
case "end":
|
|
2640
|
+
return _context.stop();
|
|
2441
2641
|
}
|
|
2442
2642
|
}, _callee);
|
|
2443
2643
|
}));
|
|
@@ -2810,11 +3010,11 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2810
3010
|
data: luckysheet.transToCellData(newData)
|
|
2811
3011
|
});
|
|
2812
3012
|
};
|
|
2813
|
-
_this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
3013
|
+
_this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
2814
3014
|
var _customerColumnsMappi;
|
|
2815
3015
|
var _this$props, validDataUrl, validDataParams, updateData, columns, isBrandAuth, _this$props$isCheckSt, isCheckStockNum, customerColumnsMapping, checkSharedValue, beforeCheckCallback, resultData, resultColumns, otherParams;
|
|
2816
|
-
return
|
|
2817
|
-
while (1) switch (_context.
|
|
3016
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3017
|
+
while (1) switch (_context.prev = _context.next) {
|
|
2818
3018
|
case 0:
|
|
2819
3019
|
_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
3020
|
resultData = _this.getData().filter(function (d) {
|
|
@@ -2839,19 +3039,19 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2839
3039
|
}
|
|
2840
3040
|
// 调用回调函数
|
|
2841
3041
|
if (!beforeCheckCallback) {
|
|
2842
|
-
_context.
|
|
3042
|
+
_context.next = 12;
|
|
2843
3043
|
break;
|
|
2844
3044
|
}
|
|
2845
|
-
_context.
|
|
3045
|
+
_context.next = 9;
|
|
2846
3046
|
return beforeCheckCallback(resultData);
|
|
2847
|
-
case
|
|
2848
|
-
resultData = _context.
|
|
3047
|
+
case 9:
|
|
3048
|
+
resultData = _context.sent;
|
|
2849
3049
|
if (resultData) {
|
|
2850
|
-
_context.
|
|
3050
|
+
_context.next = 12;
|
|
2851
3051
|
break;
|
|
2852
3052
|
}
|
|
2853
|
-
return _context.
|
|
2854
|
-
case
|
|
3053
|
+
return _context.abrupt("return");
|
|
3054
|
+
case 12:
|
|
2855
3055
|
requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
|
|
2856
3056
|
columns: resultColumns,
|
|
2857
3057
|
data: resultData,
|
|
@@ -2907,8 +3107,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2907
3107
|
console.log(setExportData);
|
|
2908
3108
|
setExportData([123123]);
|
|
2909
3109
|
}).catch(function (err) {});
|
|
2910
|
-
case
|
|
2911
|
-
|
|
3110
|
+
case 13:
|
|
3111
|
+
case "end":
|
|
3112
|
+
return _context.stop();
|
|
2912
3113
|
}
|
|
2913
3114
|
}, _callee);
|
|
2914
3115
|
}));
|
|
@@ -4600,27 +4801,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4600
4801
|
popvalue = _useState8[0],
|
|
4601
4802
|
setPopValue = _useState8[1];
|
|
4602
4803
|
var _useState9 = React$1.useState([]),
|
|
4603
|
-
|
|
4604
|
-
source =
|
|
4605
|
-
setSource =
|
|
4804
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
4805
|
+
source = _useState10[0],
|
|
4806
|
+
setSource = _useState10[1];
|
|
4606
4807
|
var _useDebounceFn = ahooks.useDebounceFn(function () {
|
|
4607
4808
|
getData();
|
|
4608
4809
|
}, {
|
|
4609
4810
|
wait: 1000
|
|
4610
4811
|
}),
|
|
4611
4812
|
run = _useDebounceFn.run;
|
|
4612
|
-
var
|
|
4613
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
4614
|
-
fetching = _useState10[0],
|
|
4615
|
-
setFetching = _useState10[1];
|
|
4616
|
-
var _useState11 = React$1.useState(''),
|
|
4813
|
+
var _useState11 = React$1.useState(false),
|
|
4617
4814
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
var _useState13 = React$1.useState(
|
|
4815
|
+
fetching = _useState12[0],
|
|
4816
|
+
setFetching = _useState12[1];
|
|
4817
|
+
var _useState13 = React$1.useState(''),
|
|
4621
4818
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4622
|
-
|
|
4623
|
-
|
|
4819
|
+
searchValue = _useState14[0],
|
|
4820
|
+
setSearchValue = _useState14[1];
|
|
4821
|
+
var _useState15 = React$1.useState(resultSourceKey),
|
|
4822
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
4823
|
+
uniqueValue = _useState16[0],
|
|
4824
|
+
setUniqueValue = _useState16[1];
|
|
4624
4825
|
React$1.useEffect(function () {
|
|
4625
4826
|
setPopValue(value);
|
|
4626
4827
|
onValueChange(value);
|
|
@@ -5037,21 +5238,21 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5037
5238
|
notCommonProperty = _useState8[0],
|
|
5038
5239
|
setNotCommonProperty = _useState8[1];
|
|
5039
5240
|
var _useState9 = React$1.useState(false),
|
|
5040
|
-
|
|
5041
|
-
visible =
|
|
5042
|
-
setVisible =
|
|
5043
|
-
var
|
|
5044
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
5045
|
-
showNotCommon = _useState10[0],
|
|
5046
|
-
setShowNotCommon = _useState10[1]; // 是否展示非常用属性
|
|
5047
|
-
var _useState11 = React$1.useState([]),
|
|
5241
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
5242
|
+
visible = _useState10[0],
|
|
5243
|
+
setVisible = _useState10[1];
|
|
5244
|
+
var _useState11 = React$1.useState(false),
|
|
5048
5245
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
var _useState13 = React$1.useState(
|
|
5246
|
+
showNotCommon = _useState12[0],
|
|
5247
|
+
setShowNotCommon = _useState12[1]; // 是否展示非常用属性
|
|
5248
|
+
var _useState13 = React$1.useState([]),
|
|
5052
5249
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5053
|
-
|
|
5054
|
-
|
|
5250
|
+
classifyOptionList = _useState14[0],
|
|
5251
|
+
setClassifyOptionList = _useState14[1];
|
|
5252
|
+
var _useState15 = React$1.useState('1'),
|
|
5253
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
5254
|
+
listKey = _useState16[0],
|
|
5255
|
+
setListKey = _useState16[1];
|
|
5055
5256
|
React$1.useEffect(function () {
|
|
5056
5257
|
requestUtil({
|
|
5057
5258
|
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
@@ -5346,7 +5547,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5346
5547
|
viewShowValueStr = _ref.viewShowValueStr,
|
|
5347
5548
|
searchStartLength = _ref.searchStartLength,
|
|
5348
5549
|
_ref$isQuery = _ref.isQuery,
|
|
5349
|
-
isQuery = _ref$isQuery === void 0 ? false : _ref$isQuery
|
|
5550
|
+
isQuery = _ref$isQuery === void 0 ? false : _ref$isQuery,
|
|
5551
|
+
_ref$requireSearchCon = _ref.requireSearchCondition,
|
|
5552
|
+
requireSearchCondition = _ref$requireSearchCon === void 0 ? false : _ref$requireSearchCon;
|
|
5350
5553
|
var requestConfig = _objectSpread2({
|
|
5351
5554
|
url: url,
|
|
5352
5555
|
method: method,
|
|
@@ -5434,29 +5637,29 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5434
5637
|
scrollPage = _useState8[0],
|
|
5435
5638
|
setScrollPage = _useState8[1];
|
|
5436
5639
|
var _useState9 = React$1.useState(0),
|
|
5437
|
-
|
|
5438
|
-
itemsTotal =
|
|
5439
|
-
setItemsTotal =
|
|
5440
|
-
var
|
|
5441
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
5442
|
-
fetching = _useState10[0],
|
|
5443
|
-
setFetching = _useState10[1];
|
|
5444
|
-
var _useState11 = React$1.useState(''),
|
|
5640
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
5641
|
+
itemsTotal = _useState10[0],
|
|
5642
|
+
setItemsTotal = _useState10[1];
|
|
5643
|
+
var _useState11 = React$1.useState(false),
|
|
5445
5644
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
var _useState13 = React$1.useState(
|
|
5645
|
+
fetching = _useState12[0],
|
|
5646
|
+
setFetching = _useState12[1];
|
|
5647
|
+
var _useState13 = React$1.useState(''),
|
|
5449
5648
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
var _useState15 = React$1.useState(
|
|
5649
|
+
searchValue = _useState14[0],
|
|
5650
|
+
setSearchValue = _useState14[1];
|
|
5651
|
+
var _useState15 = React$1.useState(false),
|
|
5453
5652
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
var _useState17 = React$1.useState(
|
|
5653
|
+
isModalVisible = _useState16[0],
|
|
5654
|
+
setIsModalVisible = _useState16[1];
|
|
5655
|
+
var _useState17 = React$1.useState(initVal),
|
|
5457
5656
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5458
|
-
|
|
5459
|
-
|
|
5657
|
+
popvalue = _useState18[0],
|
|
5658
|
+
setPopValue = _useState18[1];
|
|
5659
|
+
var _useState19 = React$1.useState(resultSourceKey),
|
|
5660
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5661
|
+
uniqueValue = _useState20[0],
|
|
5662
|
+
setUniqueValue = _useState20[1];
|
|
5460
5663
|
var _useDebounceFn = ahooks.useDebounceFn(function (v) {
|
|
5461
5664
|
// 优化搜索参数 支持传多个
|
|
5462
5665
|
var searchParams = {};
|
|
@@ -5485,58 +5688,58 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5485
5688
|
var _Form$useForm = antd.Form.useForm(),
|
|
5486
5689
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5487
5690
|
form = _Form$useForm2[0];
|
|
5488
|
-
var _useState19 = React$1.useState(true),
|
|
5489
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5490
|
-
collapsed = _useState20[0],
|
|
5491
|
-
setCollapsed = _useState20[1];
|
|
5492
5691
|
var _useState21 = React$1.useState(true),
|
|
5493
5692
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
var _useState23 = React$1.useState(
|
|
5693
|
+
collapsed = _useState22[0],
|
|
5694
|
+
setCollapsed = _useState22[1];
|
|
5695
|
+
var _useState23 = React$1.useState(true),
|
|
5497
5696
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
var _useState25 = React$1.useState(
|
|
5697
|
+
caretLeftFlag = _useState24[0],
|
|
5698
|
+
setCaretLeftFlag = _useState24[1];
|
|
5699
|
+
var _useState25 = React$1.useState([]),
|
|
5501
5700
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
var _useState27 = React$1.useState(
|
|
5701
|
+
tableData = _useState26[0],
|
|
5702
|
+
setTableData = _useState26[1];
|
|
5703
|
+
var _useState27 = React$1.useState(tableInitPagination),
|
|
5505
5704
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5506
|
-
|
|
5507
|
-
|
|
5705
|
+
tablePagination = _useState28[0],
|
|
5706
|
+
setTablePagination = _useState28[1];
|
|
5508
5707
|
var _useState29 = React$1.useState([]),
|
|
5509
5708
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
var _useState31 = React$1.useState(
|
|
5709
|
+
selectedRowKeys = _useState30[0],
|
|
5710
|
+
setSelectedRowKeys = _useState30[1];
|
|
5711
|
+
var _useState31 = React$1.useState([]),
|
|
5513
5712
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5514
|
-
|
|
5515
|
-
|
|
5713
|
+
selectedRows = _useState32[0],
|
|
5714
|
+
setSelectedRows = _useState32[1];
|
|
5516
5715
|
var _useState33 = React$1.useState(false),
|
|
5517
5716
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
var _useState35 = React$1.useState(
|
|
5717
|
+
checkedAll = _useState34[0],
|
|
5718
|
+
setCheckedAll = _useState34[1];
|
|
5719
|
+
var _useState35 = React$1.useState(false),
|
|
5521
5720
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
var _useState37 = React$1.useState(
|
|
5721
|
+
indeterminate = _useState36[0],
|
|
5722
|
+
setIndeterminate = _useState36[1];
|
|
5723
|
+
var _useState37 = React$1.useState({}),
|
|
5525
5724
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
var _useState39 = React$1.useState(
|
|
5725
|
+
tableFormParams = _useState38[0],
|
|
5726
|
+
setTableFormParams = _useState38[1];
|
|
5727
|
+
var _useState39 = React$1.useState(false),
|
|
5529
5728
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
var _useState41 = React$1.useState(
|
|
5729
|
+
tooltipVisible = _useState40[0],
|
|
5730
|
+
setTooltipVisible = _useState40[1];
|
|
5731
|
+
var _useState41 = React$1.useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5533
5732
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5534
|
-
|
|
5535
|
-
|
|
5733
|
+
tableShowColumns = _useState42[0],
|
|
5734
|
+
setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5536
5735
|
var _useState43 = React$1.useState(false),
|
|
5537
5736
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5538
|
-
|
|
5539
|
-
|
|
5737
|
+
confirmLoading = _useState44[0],
|
|
5738
|
+
setConfirmLoading = _useState44[1];
|
|
5739
|
+
var _useState45 = React$1.useState(false),
|
|
5740
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
|
5741
|
+
modalSearched = _useState46[0],
|
|
5742
|
+
setModalSearched = _useState46[1];
|
|
5540
5743
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5541
5744
|
setItems(list);
|
|
5542
5745
|
setItemsTotal(total);
|
|
@@ -5909,6 +6112,16 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5909
6112
|
};
|
|
5910
6113
|
var onSearchTable = function onSearchTable() {
|
|
5911
6114
|
var params = form.getFieldsValue();
|
|
6115
|
+
// 必须选择一个值
|
|
6116
|
+
if (requireSearchCondition) {
|
|
6117
|
+
var hasValidValue = Object.values(params).some(function (value) {
|
|
6118
|
+
return Array.isArray(value) && value.length > 0 || typeof value === 'string' && value.trim().length > 0;
|
|
6119
|
+
});
|
|
6120
|
+
if (!hasValidValue) {
|
|
6121
|
+
antd.message.warning('请至少选择一个搜索条件');
|
|
6122
|
+
return;
|
|
6123
|
+
}
|
|
6124
|
+
}
|
|
5912
6125
|
setModalSearched(true);
|
|
5913
6126
|
setTableFormParams(params);
|
|
5914
6127
|
getData(_objectSpread2(_objectSpread2({}, params), {}, {
|
|
@@ -6014,7 +6227,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6014
6227
|
})) || [];
|
|
6015
6228
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
6016
6229
|
return searchList.map(function (i, index) {
|
|
6017
|
-
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$
|
|
6230
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
|
|
6018
6231
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6019
6232
|
span: ColSpan,
|
|
6020
6233
|
key: i
|
|
@@ -6112,7 +6325,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6112
6325
|
disabled: setDisabled(i.name)
|
|
6113
6326
|
}))));
|
|
6114
6327
|
}
|
|
6115
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6328
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.type) === 'multipleQueryInput') {
|
|
6116
6329
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6117
6330
|
span: ColSpan,
|
|
6118
6331
|
key: i.name
|
|
@@ -6126,7 +6339,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6126
6339
|
}
|
|
6127
6340
|
})));
|
|
6128
6341
|
}
|
|
6129
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6342
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
|
|
6130
6343
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6131
6344
|
span: ColSpan,
|
|
6132
6345
|
key: i.name
|
|
@@ -6136,8 +6349,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6136
6349
|
key: i.name
|
|
6137
6350
|
}, /*#__PURE__*/React__default['default'].createElement(PropertySelector, null)));
|
|
6138
6351
|
}
|
|
6139
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6140
|
-
var _i$
|
|
6352
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'itemPropertySelector') {
|
|
6353
|
+
var _i$field13;
|
|
6141
6354
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6142
6355
|
span: ColSpan,
|
|
6143
6356
|
key: i.name
|
|
@@ -6150,9 +6363,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6150
6363
|
width: '100%'
|
|
6151
6364
|
},
|
|
6152
6365
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6153
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6366
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
|
|
6154
6367
|
}
|
|
6155
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6368
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
|
|
6156
6369
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6157
6370
|
span: ColSpan,
|
|
6158
6371
|
key: i.name
|
|
@@ -6181,7 +6394,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6181
6394
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6182
6395
|
allowClear: true,
|
|
6183
6396
|
maxLength: 100
|
|
6184
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6397
|
+
}, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
|
|
6185
6398
|
disabled: setDisabled(i.name)
|
|
6186
6399
|
}))));
|
|
6187
6400
|
});
|
|
@@ -6203,7 +6416,26 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6203
6416
|
});
|
|
6204
6417
|
};
|
|
6205
6418
|
var renderShowTable = function renderShowTable(tableList, type) {
|
|
6206
|
-
var
|
|
6419
|
+
var _modalTableProps$tabl;
|
|
6420
|
+
var viCount = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.visibleFieldsCount) || defaultVisibleFieldsCount;
|
|
6421
|
+
var canExpand = hasMoreQueryFields(modalTableProps);
|
|
6422
|
+
var collapsedList = modalTableProps === null || modalTableProps === void 0 ? void 0 : (_modalTableProps$tabl = modalTableProps.tableSearchForm) === null || _modalTableProps$tabl === void 0 ? void 0 : _modalTableProps$tabl.slice(0, viCount);
|
|
6423
|
+
var baseHeight = getTableHeigth(collapsedList);
|
|
6424
|
+
var rowsCollapsed = getFormRowInfo(collapsedList, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchColSpan).totalRows;
|
|
6425
|
+
var rowsExpandedData = getFormRowInfo(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchColSpan);
|
|
6426
|
+
var rowsExpanded = rowsExpandedData.totalRows;
|
|
6427
|
+
var isMoreAction = false;
|
|
6428
|
+
if (24 / (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchColSpan) - rowsExpandedData.emptyArray.length === 1) {
|
|
6429
|
+
rowsExpanded++;
|
|
6430
|
+
isMoreAction = true;
|
|
6431
|
+
}
|
|
6432
|
+
var extraRows = !collapsed && canExpand ? Math.max(0, rowsExpanded - rowsCollapsed) : 0;
|
|
6433
|
+
var tableBoxHeighth = baseHeight;
|
|
6434
|
+
if (isMoreAction && extraRows > 0) {
|
|
6435
|
+
tableBoxHeighth = tableBoxHeighth + (extraRows - 1 ? extraRows - 1 : 0) * 34 + 32;
|
|
6436
|
+
} else {
|
|
6437
|
+
tableBoxHeighth = tableBoxHeighth + extraRows * 34;
|
|
6438
|
+
}
|
|
6207
6439
|
var x = (tableList === null || tableList === void 0 ? void 0 : tableList.length) ? 82 : 28; // 无数据没有分页,有数据计算减去:分页 24+16*2+10 「高 + margin * 2 + paddingBottom 10 」
|
|
6208
6440
|
var oSY = "calc(100vh - ".concat(tableBoxHeighth, "px - ").concat(x, "px)");
|
|
6209
6441
|
var mTB = "calc(50vh - ".concat(tableBoxHeighth / 2, "px - ").concat(x / 2, "px - 40px)");
|
|
@@ -7501,132 +7733,135 @@ var AddSelect = function AddSelect(props) {
|
|
|
7501
7733
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7502
7734
|
form = _Form$useForm2[0];
|
|
7503
7735
|
var _useState9 = React$1.useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7504
|
-
|
|
7505
|
-
tableSearchForm =
|
|
7506
|
-
setTableSearchForm =
|
|
7507
|
-
var
|
|
7508
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
7509
|
-
caretLeftFlag = _useState10[0],
|
|
7510
|
-
setCaretLeftFlag = _useState10[1];
|
|
7511
|
-
var _useState11 = React$1.useState([]),
|
|
7736
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
7737
|
+
tableSearchForm = _useState10[0],
|
|
7738
|
+
setTableSearchForm = _useState10[1];
|
|
7739
|
+
var _useState11 = React$1.useState(true),
|
|
7512
7740
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
var _useState13 = React$1.useState(
|
|
7741
|
+
caretLeftFlag = _useState12[0],
|
|
7742
|
+
setCaretLeftFlag = _useState12[1];
|
|
7743
|
+
var _useState13 = React$1.useState([]),
|
|
7744
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
7745
|
+
tableData = _useState14[0],
|
|
7746
|
+
setTableData = _useState14[1];
|
|
7747
|
+
var _useState15 = React$1.useState(_objectSpread2({
|
|
7516
7748
|
total: 0,
|
|
7517
7749
|
size: "small",
|
|
7518
7750
|
current: 1,
|
|
7519
7751
|
pageSize: tableInitPageSize
|
|
7520
7752
|
}, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
|
|
7521
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
7522
|
-
tablePagination = _useState14[0],
|
|
7523
|
-
setTablePagination = _useState14[1];
|
|
7524
|
-
var _useState15 = React$1.useState([]),
|
|
7525
7753
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7526
|
-
|
|
7527
|
-
|
|
7528
|
-
var _useState17 = React$1.useState(
|
|
7754
|
+
tablePagination = _useState16[0],
|
|
7755
|
+
setTablePagination = _useState16[1];
|
|
7756
|
+
var _useState17 = React$1.useState([]),
|
|
7529
7757
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7530
|
-
|
|
7531
|
-
|
|
7532
|
-
var _useState19 = React$1.useState(
|
|
7758
|
+
selectedRowKeys = _useState18[0],
|
|
7759
|
+
setSelectedRowKeys = _useState18[1];
|
|
7760
|
+
var _useState19 = React$1.useState({}),
|
|
7533
7761
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7534
|
-
|
|
7535
|
-
|
|
7762
|
+
tableFormParams = _useState20[0],
|
|
7763
|
+
setTableFormParams = _useState20[1];
|
|
7536
7764
|
var _useState21 = React$1.useState(false),
|
|
7537
7765
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
var _useState23 = React$1.useState(
|
|
7766
|
+
confirmLoading = _useState22[0],
|
|
7767
|
+
setConfirmLoading = _useState22[1];
|
|
7768
|
+
var _useState23 = React$1.useState(false),
|
|
7541
7769
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7542
|
-
|
|
7543
|
-
|
|
7770
|
+
confirmContinueLoading = _useState24[0],
|
|
7771
|
+
setConfirmContinueLoading = _useState24[1];
|
|
7544
7772
|
var _useState25 = React$1.useState([]),
|
|
7545
7773
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7546
|
-
|
|
7547
|
-
|
|
7774
|
+
selectColumns = _useState26[0],
|
|
7775
|
+
setSelectColumns = _useState26[1];
|
|
7548
7776
|
var _useState27 = React$1.useState([]),
|
|
7549
7777
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7550
|
-
|
|
7551
|
-
|
|
7778
|
+
showColumns = _useState28[0],
|
|
7779
|
+
setShowColumns = _useState28[1];
|
|
7552
7780
|
var _useState29 = React$1.useState([]),
|
|
7553
7781
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7554
|
-
|
|
7555
|
-
|
|
7782
|
+
tableColumns = _useState30[0],
|
|
7783
|
+
setTableColumns = _useState30[1];
|
|
7784
|
+
var _useState31 = React$1.useState([]),
|
|
7785
|
+
_useState32 = _slicedToArray(_useState31, 2),
|
|
7786
|
+
showToChooseColumns = _useState32[0],
|
|
7787
|
+
setShowToChooseColumns = _useState32[1];
|
|
7556
7788
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7557
7789
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7558
7790
|
// FIXME: 特殊业务逻辑
|
|
7559
7791
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7560
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7561
|
-
var result
|
|
7562
|
-
return
|
|
7563
|
-
while (1) switch (_context.
|
|
7792
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7793
|
+
var result;
|
|
7794
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7795
|
+
while (1) switch (_context.prev = _context.next) {
|
|
7564
7796
|
case 0:
|
|
7565
7797
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7566
7798
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7567
7799
|
}))) {
|
|
7568
|
-
_context.
|
|
7800
|
+
_context.next = 3;
|
|
7569
7801
|
break;
|
|
7570
7802
|
}
|
|
7571
7803
|
antd.message.warning('相同skc配码不可设置相同哦');
|
|
7572
|
-
return _context.
|
|
7573
|
-
case
|
|
7804
|
+
return _context.abrupt("return", false);
|
|
7805
|
+
case 3:
|
|
7574
7806
|
if (!(bType == 'spu')) {
|
|
7575
|
-
_context.
|
|
7807
|
+
_context.next = 26;
|
|
7576
7808
|
break;
|
|
7577
7809
|
}
|
|
7578
7810
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7579
7811
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7580
7812
|
}))) {
|
|
7581
|
-
_context.
|
|
7813
|
+
_context.next = 7;
|
|
7582
7814
|
break;
|
|
7583
7815
|
}
|
|
7584
7816
|
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7585
|
-
return _context.
|
|
7586
|
-
case
|
|
7817
|
+
return _context.abrupt("return", false);
|
|
7818
|
+
case 7:
|
|
7587
7819
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7588
|
-
_context.
|
|
7820
|
+
_context.next = 10;
|
|
7589
7821
|
break;
|
|
7590
7822
|
}
|
|
7591
7823
|
antd.message.warning('请先选择颜色!');
|
|
7592
|
-
return _context.
|
|
7593
|
-
case
|
|
7824
|
+
return _context.abrupt("return", false);
|
|
7825
|
+
case 10:
|
|
7594
7826
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7595
7827
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7596
7828
|
}))) {
|
|
7597
|
-
_context.
|
|
7829
|
+
_context.next = 13;
|
|
7598
7830
|
break;
|
|
7599
7831
|
}
|
|
7600
7832
|
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7601
|
-
return _context.
|
|
7602
|
-
case
|
|
7833
|
+
return _context.abrupt("return", false);
|
|
7834
|
+
case 13:
|
|
7603
7835
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7604
|
-
_context.
|
|
7836
|
+
_context.next = 26;
|
|
7605
7837
|
break;
|
|
7606
7838
|
}
|
|
7607
7839
|
result = true;
|
|
7608
|
-
_context.
|
|
7609
|
-
_context.
|
|
7840
|
+
_context.prev = 15;
|
|
7841
|
+
_context.next = 18;
|
|
7610
7842
|
return checkSpuMatchCode({
|
|
7611
7843
|
skcCode: recordItem[recordKey],
|
|
7612
7844
|
matchingCode: changeValue,
|
|
7613
7845
|
ext1: recordItem.colorName
|
|
7614
7846
|
});
|
|
7615
|
-
case
|
|
7616
|
-
result = _context.
|
|
7847
|
+
case 18:
|
|
7848
|
+
result = _context.sent;
|
|
7617
7849
|
result = true;
|
|
7618
|
-
_context.
|
|
7850
|
+
_context.next = 25;
|
|
7619
7851
|
break;
|
|
7620
|
-
case
|
|
7621
|
-
_context.
|
|
7622
|
-
|
|
7623
|
-
result = typeof
|
|
7624
|
-
case
|
|
7625
|
-
return _context.
|
|
7626
|
-
case
|
|
7627
|
-
return _context.
|
|
7628
|
-
|
|
7629
|
-
|
|
7852
|
+
case 22:
|
|
7853
|
+
_context.prev = 22;
|
|
7854
|
+
_context.t0 = _context["catch"](15);
|
|
7855
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
7856
|
+
case 25:
|
|
7857
|
+
return _context.abrupt("return", result);
|
|
7858
|
+
case 26:
|
|
7859
|
+
return _context.abrupt("return", true);
|
|
7860
|
+
case 27:
|
|
7861
|
+
case "end":
|
|
7862
|
+
return _context.stop();
|
|
7863
|
+
}
|
|
7864
|
+
}, _callee, null, [[15, 22]]);
|
|
7630
7865
|
}));
|
|
7631
7866
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7632
7867
|
return _ref2.apply(this, arguments);
|
|
@@ -7717,16 +7952,17 @@ var AddSelect = function AddSelect(props) {
|
|
|
7717
7952
|
e.target.blur();
|
|
7718
7953
|
},
|
|
7719
7954
|
onBlur: function () {
|
|
7720
|
-
var _onBlur = _asyncToGenerator(/*#__PURE__*/
|
|
7955
|
+
var _onBlur = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
|
|
7721
7956
|
var value;
|
|
7722
|
-
return
|
|
7723
|
-
while (1) switch (_context2.
|
|
7957
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7958
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
7724
7959
|
case 0:
|
|
7725
7960
|
value = e.target.value;
|
|
7726
7961
|
record[item.dataIndex] = value;
|
|
7727
7962
|
editRecord(record);
|
|
7728
|
-
case
|
|
7729
|
-
|
|
7963
|
+
case 3:
|
|
7964
|
+
case "end":
|
|
7965
|
+
return _context2.stop();
|
|
7730
7966
|
}
|
|
7731
7967
|
}, _callee2);
|
|
7732
7968
|
}));
|
|
@@ -7886,10 +8122,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7886
8122
|
}
|
|
7887
8123
|
_dom6 = null;
|
|
7888
8124
|
} else if (e.keyCode === 38) {
|
|
7889
|
-
var _e$nativeEvent$path$
|
|
8125
|
+
var _e$nativeEvent$path$10;
|
|
7890
8126
|
e.stopPropagation();
|
|
7891
8127
|
e.preventDefault();
|
|
7892
|
-
var dom1 = (_e$nativeEvent$path$
|
|
8128
|
+
var dom1 = (_e$nativeEvent$path$10 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$10 === void 0 ? void 0 : _e$nativeEvent$path$10.getElementsByTagName('input')[currentIndex];
|
|
7893
8129
|
if (dom1) {
|
|
7894
8130
|
// dom1.value=""
|
|
7895
8131
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -7923,19 +8159,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
7923
8159
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7924
8160
|
value: text || null,
|
|
7925
8161
|
onChange: function () {
|
|
7926
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
7927
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules
|
|
7928
|
-
return
|
|
7929
|
-
while (1) switch (_context3.
|
|
8162
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(value) {
|
|
8163
|
+
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
8164
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
8165
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
7930
8166
|
case 0:
|
|
7931
8167
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
7932
8168
|
return d[selectKey] == value;
|
|
7933
8169
|
})) || {};
|
|
7934
8170
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
7935
|
-
_context3.
|
|
8171
|
+
_context3.next = 6;
|
|
7936
8172
|
break;
|
|
7937
8173
|
}
|
|
7938
|
-
_context3.
|
|
8174
|
+
_context3.next = 4;
|
|
7939
8175
|
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, {
|
|
7940
8176
|
record: record,
|
|
7941
8177
|
index: index,
|
|
@@ -7945,10 +8181,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7945
8181
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
7946
8182
|
editRecord: editRecord
|
|
7947
8183
|
});
|
|
7948
|
-
case
|
|
7949
|
-
_context3.
|
|
8184
|
+
case 4:
|
|
8185
|
+
_context3.next = 25;
|
|
7950
8186
|
break;
|
|
7951
|
-
case
|
|
8187
|
+
case 6:
|
|
7952
8188
|
// 更新当前行数据函数
|
|
7953
8189
|
changeValue = function changeValue(v, dSSItem) {
|
|
7954
8190
|
var _item$dataSourceSelec;
|
|
@@ -7961,12 +8197,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
7961
8197
|
}
|
|
7962
8198
|
}; // 处理校验,默认不校验
|
|
7963
8199
|
isCheckPass = true;
|
|
7964
|
-
_context3.
|
|
8200
|
+
_context3.prev = 8;
|
|
7965
8201
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
7966
|
-
_context3.
|
|
8202
|
+
_context3.next = 15;
|
|
7967
8203
|
break;
|
|
7968
8204
|
}
|
|
7969
|
-
_context3.
|
|
8205
|
+
_context3.next = 12;
|
|
7970
8206
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
7971
8207
|
record: record,
|
|
7972
8208
|
index: index,
|
|
@@ -7975,23 +8211,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
7975
8211
|
changeValue: value,
|
|
7976
8212
|
dataSourceSelectItem: dataSourceSelectItem
|
|
7977
8213
|
});
|
|
7978
|
-
case
|
|
7979
|
-
isCheckPass = _context3.
|
|
7980
|
-
_context3.
|
|
8214
|
+
case 12:
|
|
8215
|
+
isCheckPass = _context3.sent;
|
|
8216
|
+
_context3.next = 19;
|
|
7981
8217
|
break;
|
|
7982
|
-
case
|
|
7983
|
-
_context3.
|
|
8218
|
+
case 15:
|
|
8219
|
+
_context3.next = 17;
|
|
7984
8220
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
7985
|
-
case
|
|
7986
|
-
isConformToTheRules = _context3.
|
|
8221
|
+
case 17:
|
|
8222
|
+
isConformToTheRules = _context3.sent;
|
|
7987
8223
|
isCheckPass = !isConformToTheRules;
|
|
7988
|
-
case
|
|
7989
|
-
_context3.
|
|
8224
|
+
case 19:
|
|
8225
|
+
_context3.next = 23;
|
|
7990
8226
|
break;
|
|
7991
|
-
case
|
|
7992
|
-
_context3.
|
|
7993
|
-
|
|
7994
|
-
case
|
|
8227
|
+
case 21:
|
|
8228
|
+
_context3.prev = 21;
|
|
8229
|
+
_context3.t0 = _context3["catch"](8);
|
|
8230
|
+
case 23:
|
|
7995
8231
|
if (isCheckPass) {
|
|
7996
8232
|
changeValue(value, dataSourceSelectItem);
|
|
7997
8233
|
} else {
|
|
@@ -7999,10 +8235,11 @@ var AddSelect = function AddSelect(props) {
|
|
|
7999
8235
|
}
|
|
8000
8236
|
// 更新已选表格函数
|
|
8001
8237
|
editRecord(record);
|
|
8002
|
-
case
|
|
8003
|
-
|
|
8238
|
+
case 25:
|
|
8239
|
+
case "end":
|
|
8240
|
+
return _context3.stop();
|
|
8004
8241
|
}
|
|
8005
|
-
}, _callee3, null, [[
|
|
8242
|
+
}, _callee3, null, [[8, 21]]);
|
|
8006
8243
|
}));
|
|
8007
8244
|
function onChange(_x8) {
|
|
8008
8245
|
return _onChange.apply(this, arguments);
|
|
@@ -9393,29 +9630,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9393
9630
|
dataIndex: 'propertyNameAndValue'
|
|
9394
9631
|
}];
|
|
9395
9632
|
var _useState9 = React$1.useState(false),
|
|
9396
|
-
|
|
9397
|
-
isModalVisible =
|
|
9398
|
-
setIsModalVisible =
|
|
9399
|
-
var
|
|
9633
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
9634
|
+
isModalVisible = _useState10[0],
|
|
9635
|
+
setIsModalVisible = _useState10[1];
|
|
9636
|
+
var _useState11 = React$1.useState([{
|
|
9400
9637
|
hovered: false
|
|
9401
9638
|
}]),
|
|
9402
|
-
|
|
9403
|
-
data =
|
|
9404
|
-
setData =
|
|
9639
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9640
|
+
data = _useState12[0],
|
|
9641
|
+
setData = _useState12[1];
|
|
9405
9642
|
var tableRef = React$1.useRef(null);
|
|
9406
9643
|
var codeSelected = tableCode;
|
|
9407
|
-
var
|
|
9408
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
9409
|
-
loading = _useState12[0],
|
|
9410
|
-
setLoading = _useState12[1];
|
|
9411
|
-
var _useState13 = React$1.useState([]),
|
|
9644
|
+
var _useState13 = React$1.useState(false),
|
|
9412
9645
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9413
|
-
|
|
9414
|
-
|
|
9646
|
+
loading = _useState14[0],
|
|
9647
|
+
setLoading = _useState14[1];
|
|
9415
9648
|
var _useState15 = React$1.useState([]),
|
|
9416
9649
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9417
|
-
|
|
9418
|
-
|
|
9650
|
+
selectColumns = _useState16[0],
|
|
9651
|
+
setSelectColumns = _useState16[1];
|
|
9652
|
+
var _useState17 = React$1.useState([]),
|
|
9653
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
9654
|
+
showColumns = _useState18[0],
|
|
9655
|
+
setShowColumns = _useState18[1];
|
|
9419
9656
|
React$1.useEffect(function () {
|
|
9420
9657
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9421
9658
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9531,42 +9768,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9531
9768
|
});
|
|
9532
9769
|
};
|
|
9533
9770
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9534
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9771
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9535
9772
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9536
|
-
return
|
|
9537
|
-
while (1) switch (_context.
|
|
9773
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9774
|
+
while (1) switch (_context.prev = _context.next) {
|
|
9538
9775
|
case 0:
|
|
9539
9776
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9540
|
-
_context.
|
|
9777
|
+
_context.next = 3;
|
|
9541
9778
|
break;
|
|
9542
9779
|
}
|
|
9543
9780
|
antd.message.warning('至少录入一条数据');
|
|
9544
|
-
return _context.
|
|
9545
|
-
case
|
|
9781
|
+
return _context.abrupt("return");
|
|
9782
|
+
case 3:
|
|
9546
9783
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9547
9784
|
return d.skuCode && d.name;
|
|
9548
9785
|
})) {
|
|
9549
|
-
_context.
|
|
9786
|
+
_context.next = 6;
|
|
9550
9787
|
break;
|
|
9551
9788
|
}
|
|
9552
9789
|
antd.message.warning('录入商品不存在');
|
|
9553
|
-
return _context.
|
|
9554
|
-
case
|
|
9790
|
+
return _context.abrupt("return");
|
|
9791
|
+
case 6:
|
|
9555
9792
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9556
9793
|
return d.count;
|
|
9557
9794
|
})) {
|
|
9558
|
-
_context.
|
|
9795
|
+
_context.next = 9;
|
|
9559
9796
|
break;
|
|
9560
9797
|
}
|
|
9561
9798
|
antd.message.warning('请填写商品数量!');
|
|
9562
|
-
return _context.
|
|
9563
|
-
case
|
|
9564
|
-
_context.
|
|
9799
|
+
return _context.abrupt("return");
|
|
9800
|
+
case 9:
|
|
9801
|
+
_context.next = 11;
|
|
9565
9802
|
return isSkuCanEntry(data);
|
|
9566
|
-
case
|
|
9567
|
-
canEntryObject = _context.
|
|
9803
|
+
case 11:
|
|
9804
|
+
canEntryObject = _context.sent;
|
|
9568
9805
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9569
|
-
_context.
|
|
9806
|
+
_context.next = 16;
|
|
9570
9807
|
break;
|
|
9571
9808
|
}
|
|
9572
9809
|
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) {
|
|
@@ -9576,8 +9813,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9576
9813
|
content: messageInfo,
|
|
9577
9814
|
duration: 6
|
|
9578
9815
|
});
|
|
9579
|
-
return _context.
|
|
9580
|
-
case
|
|
9816
|
+
return _context.abrupt("return");
|
|
9817
|
+
case 16:
|
|
9581
9818
|
setLoading(true);
|
|
9582
9819
|
onSaveCallback(data).then(function (res) {
|
|
9583
9820
|
{
|
|
@@ -9595,8 +9832,9 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9595
9832
|
antd.message.error(Error);
|
|
9596
9833
|
setLoading(false);
|
|
9597
9834
|
});
|
|
9598
|
-
case
|
|
9599
|
-
|
|
9835
|
+
case 18:
|
|
9836
|
+
case "end":
|
|
9837
|
+
return _context.stop();
|
|
9600
9838
|
}
|
|
9601
9839
|
}, _callee);
|
|
9602
9840
|
}));
|
|
@@ -11905,18 +12143,18 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11905
12143
|
name: 'qp-code-like',
|
|
11906
12144
|
label: '客户编码'
|
|
11907
12145
|
}, {
|
|
11908
|
-
name: 'qp-createOrgCode-
|
|
12146
|
+
name: 'qp-createOrgCode-in',
|
|
11909
12147
|
type: 'select',
|
|
11910
12148
|
label: '创建组织',
|
|
11911
12149
|
field: {
|
|
11912
12150
|
type: 'select',
|
|
11913
12151
|
props: {
|
|
11914
|
-
|
|
12152
|
+
mode: 'multiple',
|
|
11915
12153
|
notFoundContent: '暂无数据',
|
|
11916
12154
|
allowClear: true,
|
|
11917
12155
|
showSearch: true,
|
|
11918
12156
|
showArrow: true,
|
|
11919
|
-
|
|
12157
|
+
maxTagCount: 1,
|
|
11920
12158
|
optionFilterProp: 'children',
|
|
11921
12159
|
filterOption: function filterOption(input, option) {
|
|
11922
12160
|
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
@@ -11987,17 +12225,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11987
12225
|
}
|
|
11988
12226
|
}
|
|
11989
12227
|
}];
|
|
11990
|
-
var
|
|
12228
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
11991
12229
|
querySelectHeadersList: querySelectHeadersList,
|
|
11992
12230
|
extralHeaders: extralHeaders
|
|
11993
12231
|
});
|
|
11994
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(
|
|
12232
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11995
12233
|
'qp-status-eq': 10,
|
|
11996
12234
|
'qp-isMain-eq': 1,
|
|
11997
12235
|
'qp-type-in': '1,2'
|
|
11998
|
-
}, getQueryHeadersItem(
|
|
12236
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11999
12237
|
'qp-status-eq': 1
|
|
12000
|
-
}, getQueryHeadersItem(
|
|
12238
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in'))]).then(function (x) {
|
|
12001
12239
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
12002
12240
|
var allList = firstElement && [firstElement, firstElement];
|
|
12003
12241
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
@@ -12183,7 +12421,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12183
12421
|
}
|
|
12184
12422
|
}
|
|
12185
12423
|
}];
|
|
12186
|
-
var
|
|
12424
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
12187
12425
|
querySelectHeadersList: querySelectHeadersList,
|
|
12188
12426
|
extralHeaders: extralHeaders
|
|
12189
12427
|
});
|
|
@@ -12191,21 +12429,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12191
12429
|
pageSize: 5000,
|
|
12192
12430
|
currentPage: 1,
|
|
12193
12431
|
'qp-companyType-eq': '30'
|
|
12194
|
-
}, getQueryHeadersItem(
|
|
12432
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
12195
12433
|
pageSize: 5000,
|
|
12196
12434
|
currentPage: 1,
|
|
12197
12435
|
'qp-companyType-eq': '20'
|
|
12198
|
-
}, getQueryHeadersItem(
|
|
12436
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
12199
12437
|
// pageSize: 5000,
|
|
12200
12438
|
// currentPage: 1,
|
|
12201
12439
|
'qp-status-eq': '1'
|
|
12202
|
-
}, getQueryHeadersItem(
|
|
12440
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
12203
12441
|
pageSize: 5000,
|
|
12204
12442
|
currentPage: 1
|
|
12205
|
-
}, getQueryHeadersItem(
|
|
12443
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
12206
12444
|
pageSize: 5000,
|
|
12207
12445
|
currentPage: 1
|
|
12208
|
-
}, getQueryHeadersItem(
|
|
12446
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-accountingCode-in'))]).then(function (x) {
|
|
12209
12447
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12210
12448
|
formatSource(x, 1, 3, tableSearchForm);
|
|
12211
12449
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -12394,26 +12632,102 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12394
12632
|
}
|
|
12395
12633
|
}, {
|
|
12396
12634
|
name: 'qp-manageSupervisor-like',
|
|
12635
|
+
type: 'select',
|
|
12397
12636
|
label: '管理督导',
|
|
12398
|
-
|
|
12637
|
+
field: {
|
|
12638
|
+
type: 'select',
|
|
12639
|
+
props: {
|
|
12640
|
+
notFoundContent: '暂无数据',
|
|
12641
|
+
allowClear: true,
|
|
12642
|
+
showSearch: true,
|
|
12643
|
+
showArrow: true,
|
|
12644
|
+
maxTagCount: 1,
|
|
12645
|
+
optionFilterProp: 'children',
|
|
12646
|
+
filterOption: function filterOption(input, option) {
|
|
12647
|
+
var _option$value;
|
|
12648
|
+
debugger;
|
|
12649
|
+
return ((_option$value = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value !== void 0 ? _option$value : '').toLowerCase().includes(input.toLowerCase());
|
|
12650
|
+
}
|
|
12651
|
+
}
|
|
12652
|
+
}
|
|
12399
12653
|
}, {
|
|
12400
12654
|
name: 'qp-directSupervisor-like',
|
|
12655
|
+
type: 'select',
|
|
12401
12656
|
label: '直接督导',
|
|
12402
|
-
|
|
12657
|
+
field: {
|
|
12658
|
+
type: 'select',
|
|
12659
|
+
props: {
|
|
12660
|
+
notFoundContent: '暂无数据',
|
|
12661
|
+
allowClear: true,
|
|
12662
|
+
showSearch: true,
|
|
12663
|
+
showArrow: true,
|
|
12664
|
+
maxTagCount: 1,
|
|
12665
|
+
optionFilterProp: 'children',
|
|
12666
|
+
filterOption: function filterOption(input, option) {
|
|
12667
|
+
var _option$value2;
|
|
12668
|
+
return ((_option$value2 = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value2 !== void 0 ? _option$value2 : '').toLowerCase().includes(input.toLowerCase());
|
|
12669
|
+
}
|
|
12670
|
+
}
|
|
12671
|
+
}
|
|
12403
12672
|
}, {
|
|
12404
12673
|
name: 'qp-distributionItem-like',
|
|
12674
|
+
type: 'select',
|
|
12405
12675
|
label: '分销商品',
|
|
12406
|
-
|
|
12676
|
+
field: {
|
|
12677
|
+
type: 'select',
|
|
12678
|
+
props: {
|
|
12679
|
+
notFoundContent: '暂无数据',
|
|
12680
|
+
allowClear: true,
|
|
12681
|
+
showSearch: true,
|
|
12682
|
+
showArrow: true,
|
|
12683
|
+
maxTagCount: 1,
|
|
12684
|
+
optionFilterProp: 'children',
|
|
12685
|
+
filterOption: function filterOption(input, option) {
|
|
12686
|
+
var _option$value3;
|
|
12687
|
+
return ((_option$value3 = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value3 !== void 0 ? _option$value3 : '').toLowerCase().includes(input.toLowerCase());
|
|
12688
|
+
}
|
|
12689
|
+
}
|
|
12690
|
+
}
|
|
12407
12691
|
}, {
|
|
12408
12692
|
name: 'qp-headItem-like',
|
|
12693
|
+
type: 'select',
|
|
12409
12694
|
label: '总部商品',
|
|
12410
|
-
|
|
12695
|
+
field: {
|
|
12696
|
+
type: 'select',
|
|
12697
|
+
props: {
|
|
12698
|
+
notFoundContent: '暂无数据',
|
|
12699
|
+
allowClear: true,
|
|
12700
|
+
showSearch: true,
|
|
12701
|
+
showArrow: true,
|
|
12702
|
+
maxTagCount: 1,
|
|
12703
|
+
optionFilterProp: 'children',
|
|
12704
|
+
filterOption: function filterOption(input, option) {
|
|
12705
|
+
var _option$value4;
|
|
12706
|
+
return ((_option$value4 = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value4 !== void 0 ? _option$value4 : '').toLowerCase().includes(input.toLowerCase());
|
|
12707
|
+
}
|
|
12708
|
+
}
|
|
12709
|
+
}
|
|
12411
12710
|
}, {
|
|
12412
12711
|
name: 'qp-storeChannelName-like',
|
|
12712
|
+
type: 'select',
|
|
12413
12713
|
label: '管理模式',
|
|
12414
|
-
|
|
12714
|
+
field: {
|
|
12715
|
+
type: 'select',
|
|
12716
|
+
props: {
|
|
12717
|
+
notFoundContent: '暂无数据',
|
|
12718
|
+
allowClear: true,
|
|
12719
|
+
showSearch: true,
|
|
12720
|
+
showArrow: true,
|
|
12721
|
+
maxTagCount: 1,
|
|
12722
|
+
optionFilterProp: 'children',
|
|
12723
|
+
filterOption: function filterOption(input, option) {
|
|
12724
|
+
var _option$value5;
|
|
12725
|
+
return ((_option$value5 = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value5 !== void 0 ? _option$value5 : '').toLowerCase().includes(input.toLowerCase());
|
|
12726
|
+
}
|
|
12727
|
+
}
|
|
12728
|
+
}
|
|
12415
12729
|
}];
|
|
12416
|
-
var
|
|
12730
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12417
12731
|
querySelectHeadersList: querySelectHeadersList,
|
|
12418
12732
|
extralHeaders: extralHeaders
|
|
12419
12733
|
});
|
|
@@ -12421,18 +12735,18 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12421
12735
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12422
12736
|
'qp-realOrg-eq': true,
|
|
12423
12737
|
'qp-status-eq': 10
|
|
12424
|
-
}, getQueryHeadersItem(
|
|
12738
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12425
12739
|
'qp-status-eq': 10,
|
|
12426
12740
|
'qp-isMain-eq': 1,
|
|
12427
12741
|
'qp-type-in': '1,2'
|
|
12428
|
-
}, getQueryHeadersItem(
|
|
12742
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12429
12743
|
'qp-status-eq': 1
|
|
12430
|
-
}, getQueryHeadersItem(
|
|
12744
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
12431
12745
|
pageSize: 5000,
|
|
12432
12746
|
currentPage: 1,
|
|
12433
12747
|
'ctl-withAuth': true
|
|
12434
|
-
}, getQueryHeadersItem(
|
|
12435
|
-
var _x$3, _x$3$data$, _x$3$data$$channelInf;
|
|
12748
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'ctl-withAuth')), loadSelectSource$1("/channel-manage/store/selectStoreOperationalInfo", {}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in'))]).then(function (x) {
|
|
12749
|
+
var _x$3, _x$3$data$, _x$3$data$$channelInf, _x$4, _opList, _opList$, _opList2, _opList3, _opList4, _opList5, _opList6;
|
|
12436
12750
|
var newData1 = [];
|
|
12437
12751
|
(_x$3 = x[1]) === null || _x$3 === void 0 ? void 0 : (_x$3$data$ = _x$3.data[0]) === null || _x$3$data$ === void 0 ? void 0 : (_x$3$data$$channelInf = _x$3$data$.channelInfoSon) === null || _x$3$data$$channelInf === void 0 ? void 0 : _x$3$data$$channelInf.forEach(function (item) {
|
|
12438
12752
|
newData1.push({
|
|
@@ -12451,6 +12765,46 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12451
12765
|
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12452
12766
|
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
12453
12767
|
formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
|
|
12768
|
+
var opRaw = (_x$4 = x[4]) === null || _x$4 === void 0 ? void 0 : _x$4.data;
|
|
12769
|
+
// 新增label属性
|
|
12770
|
+
(_opList = opList) === null || _opList === void 0 ? void 0 : _opList.forEach(function (r) {
|
|
12771
|
+
r.label = r === null || r === void 0 ? void 0 : r.value;
|
|
12772
|
+
});
|
|
12773
|
+
var opList = Array.isArray(opRaw) ? opRaw : (opRaw === null || opRaw === void 0 ? void 0 : opRaw.items) || (opRaw === null || opRaw === void 0 ? void 0 : opRaw.list) || [];
|
|
12774
|
+
if (Array.isArray(opList) && Array.isArray(opList[0]) && !((_opList$ = opList[0]) === null || _opList$ === void 0 ? void 0 : _opList$.field)) {
|
|
12775
|
+
opList = opList[0];
|
|
12776
|
+
}
|
|
12777
|
+
var m1 = (_opList2 = opList) === null || _opList2 === void 0 ? void 0 : _opList2.filter(function (r) {
|
|
12778
|
+
return (r === null || r === void 0 ? void 0 : r.field) === 'manage_supervisor' && _.trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12779
|
+
});
|
|
12780
|
+
var m2 = (_opList3 = opList) === null || _opList3 === void 0 ? void 0 : _opList3.filter(function (r) {
|
|
12781
|
+
return (r === null || r === void 0 ? void 0 : r.field) === 'direct_supervisor' && _.trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12782
|
+
});
|
|
12783
|
+
var m3 = (_opList4 = opList) === null || _opList4 === void 0 ? void 0 : _opList4.filter(function (r) {
|
|
12784
|
+
return (r === null || r === void 0 ? void 0 : r.field) === 'distribution_item' && _.trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12785
|
+
});
|
|
12786
|
+
debugger;
|
|
12787
|
+
var m4 = (_opList5 = opList) === null || _opList5 === void 0 ? void 0 : _opList5.filter(function (r) {
|
|
12788
|
+
return (r === null || r === void 0 ? void 0 : r.field) === 'head_item' && _.trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12789
|
+
});
|
|
12790
|
+
var m5 = (_opList6 = opList) === null || _opList6 === void 0 ? void 0 : _opList6.filter(function (r) {
|
|
12791
|
+
return (r === null || r === void 0 ? void 0 : r.field) === 'store_channel_name' && _.trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12792
|
+
});
|
|
12793
|
+
tableSearchForm[8] = _objectSpread2(_objectSpread2({}, tableSearchForm[8]), {}, {
|
|
12794
|
+
initialSource: m1
|
|
12795
|
+
});
|
|
12796
|
+
tableSearchForm[9] = _objectSpread2(_objectSpread2({}, tableSearchForm[9]), {}, {
|
|
12797
|
+
initialSource: m2
|
|
12798
|
+
});
|
|
12799
|
+
tableSearchForm[10] = _objectSpread2(_objectSpread2({}, tableSearchForm[10]), {}, {
|
|
12800
|
+
initialSource: m3
|
|
12801
|
+
});
|
|
12802
|
+
tableSearchForm[11] = _objectSpread2(_objectSpread2({}, tableSearchForm[11]), {}, {
|
|
12803
|
+
initialSource: m4
|
|
12804
|
+
});
|
|
12805
|
+
tableSearchForm[12] = _objectSpread2(_objectSpread2({}, tableSearchForm[12]), {}, {
|
|
12806
|
+
initialSource: m5
|
|
12807
|
+
});
|
|
12454
12808
|
});
|
|
12455
12809
|
modalTableProps = _objectSpread2({
|
|
12456
12810
|
modalTableTitle: '选择商店',
|
|
@@ -12709,7 +13063,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12709
13063
|
name: 'qp-officeTelephone-like',
|
|
12710
13064
|
label: '手机号'
|
|
12711
13065
|
}];
|
|
12712
|
-
var
|
|
13066
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12713
13067
|
querySelectHeadersList: querySelectHeadersList,
|
|
12714
13068
|
extralHeaders: extralHeaders
|
|
12715
13069
|
});
|
|
@@ -12717,7 +13071,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12717
13071
|
pageSize: 5000,
|
|
12718
13072
|
currentPage: 1,
|
|
12719
13073
|
'qp-companyType-eq': 20
|
|
12720
|
-
}, getQueryHeadersItem(
|
|
13074
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-companyCode-in'))]).then(function (x) {
|
|
12721
13075
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12722
13076
|
});
|
|
12723
13077
|
modalTableProps = _objectSpread2({
|
|
@@ -12826,13 +13180,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12826
13180
|
name: 'qp-phone-like',
|
|
12827
13181
|
label: '手机号'
|
|
12828
13182
|
}]);
|
|
12829
|
-
var
|
|
13183
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12830
13184
|
querySelectHeadersList: querySelectHeadersList,
|
|
12831
13185
|
extralHeaders: extralHeaders
|
|
12832
13186
|
});
|
|
12833
13187
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12834
13188
|
'orgViewCode': 'administrative-organization-view'
|
|
12835
|
-
}, getQueryHeadersItem(
|
|
13189
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-code-in'))]).then(function (x) {
|
|
12836
13190
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12837
13191
|
});
|
|
12838
13192
|
modalTableProps = _objectSpread2({
|
|
@@ -12979,17 +13333,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12979
13333
|
name: 'qp-remark-like',
|
|
12980
13334
|
label: '备注'
|
|
12981
13335
|
}];
|
|
12982
|
-
var
|
|
13336
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
12983
13337
|
querySelectHeadersList: querySelectHeadersList,
|
|
12984
13338
|
extralHeaders: extralHeaders
|
|
12985
13339
|
});
|
|
12986
13340
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12987
13341
|
pageSize: 5000,
|
|
12988
13342
|
currentPage: 1
|
|
12989
|
-
}, getQueryHeadersItem(
|
|
13343
|
+
}, getQueryHeadersItem(_queryHeaderParams15, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12990
13344
|
pageSize: 5000,
|
|
12991
13345
|
currentPage: 1
|
|
12992
|
-
}, getQueryHeadersItem(
|
|
13346
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12993
13347
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12994
13348
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12995
13349
|
});
|
|
@@ -13159,14 +13513,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13159
13513
|
}
|
|
13160
13514
|
}
|
|
13161
13515
|
}];
|
|
13162
|
-
var
|
|
13516
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13163
13517
|
querySelectHeadersList: querySelectHeadersList,
|
|
13164
13518
|
extralHeaders: extralHeaders
|
|
13165
13519
|
});
|
|
13166
13520
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
13167
13521
|
pageSize: 5000,
|
|
13168
13522
|
currentPage: 1
|
|
13169
|
-
}, getQueryHeadersItem(
|
|
13523
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
13170
13524
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13171
13525
|
});
|
|
13172
13526
|
modalTableProps = _objectSpread2({
|
|
@@ -13263,7 +13617,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13263
13617
|
}
|
|
13264
13618
|
}
|
|
13265
13619
|
}];
|
|
13266
|
-
var
|
|
13620
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
13267
13621
|
querySelectHeadersList: querySelectHeadersList,
|
|
13268
13622
|
extralHeaders: extralHeaders
|
|
13269
13623
|
});
|
|
@@ -13271,7 +13625,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13271
13625
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
13272
13626
|
'qp-realOrg-eq': true,
|
|
13273
13627
|
'qp-status-eq': 10
|
|
13274
|
-
}, getQueryHeadersItem(
|
|
13628
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
13275
13629
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13276
13630
|
});
|
|
13277
13631
|
modalTableProps = _objectSpread2({
|
|
@@ -13377,13 +13731,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13377
13731
|
},
|
|
13378
13732
|
initialSource: nodeType
|
|
13379
13733
|
}];
|
|
13380
|
-
var
|
|
13734
|
+
var _queryHeaderParams18 = getQueryHeadersList({
|
|
13381
13735
|
querySelectHeadersList: querySelectHeadersList,
|
|
13382
13736
|
extralHeaders: extralHeaders
|
|
13383
13737
|
});
|
|
13384
13738
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13385
13739
|
'qp-status-eq': 10
|
|
13386
|
-
}, getQueryHeadersItem(
|
|
13740
|
+
}, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13387
13741
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13388
13742
|
});
|
|
13389
13743
|
modalTableProps = _objectSpread2({
|
|
@@ -13709,13 +14063,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13709
14063
|
},
|
|
13710
14064
|
initialSource: nodeType
|
|
13711
14065
|
}];
|
|
13712
|
-
var
|
|
14066
|
+
var _queryHeaderParams19 = getQueryHeadersList({
|
|
13713
14067
|
querySelectHeadersList: querySelectHeadersList,
|
|
13714
14068
|
extralHeaders: extralHeaders
|
|
13715
14069
|
});
|
|
13716
14070
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13717
14071
|
'qp-status-eq': 10
|
|
13718
|
-
}, getQueryHeadersItem(
|
|
14072
|
+
}, getQueryHeadersItem(_queryHeaderParams19, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13719
14073
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13720
14074
|
});
|
|
13721
14075
|
modalTableProps = _objectSpread2({
|
|
@@ -14660,9 +15014,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14660
15014
|
value = _useState8[0],
|
|
14661
15015
|
setValue = _useState8[1];
|
|
14662
15016
|
var _useState9 = React$1.useState([]),
|
|
14663
|
-
|
|
14664
|
-
propertyList =
|
|
14665
|
-
setPropertyList =
|
|
15017
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
15018
|
+
propertyList = _useState10[0],
|
|
15019
|
+
setPropertyList = _useState10[1];
|
|
14666
15020
|
React$1.useEffect(function () {
|
|
14667
15021
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14668
15022
|
// type: 1 尺码组; 2 配码组
|
|
@@ -15085,7 +15439,7 @@ function getStorageVale(storageKeyString) {
|
|
|
15085
15439
|
var _storageKeyString$spl = storageKeyString.split('.'),
|
|
15086
15440
|
_storageKeyString$spl2 = _toArray(_storageKeyString$spl),
|
|
15087
15441
|
localstorage = _storageKeyString$spl2[0],
|
|
15088
|
-
restKeyArrays =
|
|
15442
|
+
restKeyArrays = _storageKeyString$spl2.slice(1);
|
|
15089
15443
|
var localStorageInfo = window.localStorage.getItem(localstorage);
|
|
15090
15444
|
if (!restKeyArrays.length) return localStorageInfo;
|
|
15091
15445
|
var returnVal = JSON.parse(localStorageInfo || '{}');
|
|
@@ -15186,45 +15540,46 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
15186
15540
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
15187
15541
|
headers: headers
|
|
15188
15542
|
}).then(/*#__PURE__*/function () {
|
|
15189
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
15543
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
15190
15544
|
var _ctx$form;
|
|
15191
15545
|
var resData, coverData, data, dataList;
|
|
15192
|
-
return
|
|
15193
|
-
while (1) switch (_context.
|
|
15546
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15547
|
+
while (1) switch (_context.prev = _context.next) {
|
|
15194
15548
|
case 0:
|
|
15195
15549
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
15196
15550
|
if (!judgeIsRequestSuccess(resData)) {
|
|
15197
|
-
_context.
|
|
15551
|
+
_context.next = 13;
|
|
15198
15552
|
break;
|
|
15199
15553
|
}
|
|
15200
15554
|
data = resData.data;
|
|
15201
15555
|
if (!remoteSource.converter) {
|
|
15202
|
-
_context.
|
|
15556
|
+
_context.next = 9;
|
|
15203
15557
|
break;
|
|
15204
15558
|
}
|
|
15205
|
-
_context.
|
|
15559
|
+
_context.next = 6;
|
|
15206
15560
|
return remoteSource.converter({
|
|
15207
15561
|
data: [data]
|
|
15208
15562
|
});
|
|
15209
|
-
case
|
|
15210
|
-
coverData = _context.
|
|
15211
|
-
_context.
|
|
15563
|
+
case 6:
|
|
15564
|
+
coverData = _context.sent;
|
|
15565
|
+
_context.next = 11;
|
|
15212
15566
|
break;
|
|
15213
|
-
case
|
|
15567
|
+
case 9:
|
|
15214
15568
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
15215
15569
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
15216
15570
|
return _mapSearchTree(ites);
|
|
15217
15571
|
}) || [];
|
|
15218
|
-
case
|
|
15219
|
-
_context.
|
|
15572
|
+
case 11:
|
|
15573
|
+
_context.next = 14;
|
|
15220
15574
|
break;
|
|
15221
|
-
case
|
|
15575
|
+
case 13:
|
|
15222
15576
|
coverData = [];
|
|
15223
|
-
case
|
|
15577
|
+
case 14:
|
|
15224
15578
|
setTreeData(coverData);
|
|
15225
15579
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
15226
|
-
case
|
|
15227
|
-
|
|
15580
|
+
case 16:
|
|
15581
|
+
case "end":
|
|
15582
|
+
return _context.stop();
|
|
15228
15583
|
}
|
|
15229
15584
|
}, _callee);
|
|
15230
15585
|
}));
|
|
@@ -19532,37 +19887,37 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19532
19887
|
};
|
|
19533
19888
|
var refs = React$1.useRef(null);
|
|
19534
19889
|
var _useState9 = React$1.useState(''),
|
|
19535
|
-
|
|
19536
|
-
pagePath =
|
|
19537
|
-
setPagePath =
|
|
19890
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
19891
|
+
pagePath = _useState10[0],
|
|
19892
|
+
setPagePath = _useState10[1];
|
|
19538
19893
|
var _useLocation = umi.useLocation(),
|
|
19539
19894
|
pathname = _useLocation.pathname,
|
|
19540
19895
|
_useLocation$state = _useLocation.state;
|
|
19541
|
-
var
|
|
19542
|
-
|
|
19543
|
-
isFullScreen =
|
|
19544
|
-
setIsFnllScreen =
|
|
19896
|
+
var _useState11 = React$1.useState(false),
|
|
19897
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
19898
|
+
isFullScreen = _useState12[0],
|
|
19899
|
+
setIsFnllScreen = _useState12[1];
|
|
19545
19900
|
// @ts-nocheck
|
|
19546
19901
|
var value = props;
|
|
19547
19902
|
var _props$fields = props.fields,
|
|
19548
19903
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
19549
|
-
var
|
|
19550
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
19551
|
-
showColumn = _useState12[0],
|
|
19552
|
-
setShowColumns = _useState12[1]; // 列字段
|
|
19553
|
-
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19554
|
-
var _useState13 = React$1.useState(originSearchFields),
|
|
19904
|
+
var _useState13 = React$1.useState([]),
|
|
19555
19905
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
19556
|
-
|
|
19557
|
-
|
|
19558
|
-
var
|
|
19906
|
+
showColumn = _useState14[0],
|
|
19907
|
+
setShowColumns = _useState14[1]; // 列字段
|
|
19908
|
+
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19909
|
+
var _useState15 = React$1.useState(originSearchFields),
|
|
19559
19910
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
19560
|
-
|
|
19561
|
-
|
|
19562
|
-
var _useState17 = React$1.useState(
|
|
19911
|
+
showSearchFields = _useState16[0],
|
|
19912
|
+
setShowSearchFields = _useState16[1]; //搜索项字段
|
|
19913
|
+
var _useState17 = React$1.useState([]),
|
|
19563
19914
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
19564
|
-
|
|
19565
|
-
|
|
19915
|
+
showExportColumn = _useState18[0],
|
|
19916
|
+
setShowExportColumns = _useState18[1]; // 导出列字段
|
|
19917
|
+
var _useState19 = React$1.useState(''),
|
|
19918
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
19919
|
+
height = _useState20[0],
|
|
19920
|
+
setHeight = _useState20[1];
|
|
19566
19921
|
var sortTableRef = React$1.useRef(null);
|
|
19567
19922
|
var searchTableRef = React$1.useRef(null);
|
|
19568
19923
|
var exportTableRef = React$1.useRef(null);
|
|
@@ -20190,7 +20545,7 @@ var matchPath = function matchPath(pathname) {
|
|
|
20190
20545
|
if (!match) return null;
|
|
20191
20546
|
var _match = _toArray(match),
|
|
20192
20547
|
url = _match[0],
|
|
20193
|
-
values =
|
|
20548
|
+
values = _match.slice(1);
|
|
20194
20549
|
var isExact = pathname === url;
|
|
20195
20550
|
if (exact && !isExact) return null;
|
|
20196
20551
|
return {
|
|
@@ -20610,19 +20965,22 @@ function outLogin(_x) {
|
|
|
20610
20965
|
return _outLogin.apply(this, arguments);
|
|
20611
20966
|
}
|
|
20612
20967
|
function _outLogin() {
|
|
20613
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
20968
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
20614
20969
|
var res;
|
|
20615
|
-
return
|
|
20616
|
-
while (1) switch (_context.
|
|
20970
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20971
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20617
20972
|
case 0:
|
|
20618
|
-
_context.
|
|
20973
|
+
_context.next = 2;
|
|
20619
20974
|
return requestUtil({
|
|
20620
20975
|
url: '/user/web/loginOut',
|
|
20621
20976
|
method: 'GET'
|
|
20622
20977
|
});
|
|
20623
|
-
case
|
|
20624
|
-
res = _context.
|
|
20625
|
-
return _context.
|
|
20978
|
+
case 2:
|
|
20979
|
+
res = _context.sent;
|
|
20980
|
+
return _context.abrupt("return", res);
|
|
20981
|
+
case 4:
|
|
20982
|
+
case "end":
|
|
20983
|
+
return _context.stop();
|
|
20626
20984
|
}
|
|
20627
20985
|
}, _callee);
|
|
20628
20986
|
}));
|
|
@@ -20749,20 +21107,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20749
21107
|
});
|
|
20750
21108
|
};
|
|
20751
21109
|
var loginOut = /*#__PURE__*/function () {
|
|
20752
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
21110
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20753
21111
|
var sessionId;
|
|
20754
|
-
return
|
|
20755
|
-
while (1) switch (_context.
|
|
21112
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21113
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20756
21114
|
case 0:
|
|
20757
|
-
_context.
|
|
21115
|
+
_context.next = 2;
|
|
20758
21116
|
return getSessionId();
|
|
20759
|
-
case
|
|
20760
|
-
sessionId = _context.
|
|
20761
|
-
_context.
|
|
21117
|
+
case 2:
|
|
21118
|
+
sessionId = _context.sent;
|
|
21119
|
+
_context.next = 5;
|
|
20762
21120
|
return outLogin({
|
|
20763
21121
|
sessionId: sessionId
|
|
20764
21122
|
});
|
|
20765
|
-
case
|
|
21123
|
+
case 5:
|
|
20766
21124
|
// @ts-ignore
|
|
20767
21125
|
if (BUILD_TYPE) {
|
|
20768
21126
|
antd.message.success('退出登录成功');
|
|
@@ -20772,8 +21130,9 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20772
21130
|
} else {
|
|
20773
21131
|
setLoginOutPath();
|
|
20774
21132
|
}
|
|
20775
|
-
case
|
|
20776
|
-
|
|
21133
|
+
case 6:
|
|
21134
|
+
case "end":
|
|
21135
|
+
return _context.stop();
|
|
20777
21136
|
}
|
|
20778
21137
|
}, _callee);
|
|
20779
21138
|
}));
|
|
@@ -20860,15 +21219,18 @@ function getStoreByName(_x) {
|
|
|
20860
21219
|
return _getStoreByName.apply(this, arguments);
|
|
20861
21220
|
}
|
|
20862
21221
|
function _getStoreByName() {
|
|
20863
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20864
|
-
return
|
|
20865
|
-
while (1) switch (_context.
|
|
21222
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
21223
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21224
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20866
21225
|
case 0:
|
|
20867
|
-
return _context.
|
|
21226
|
+
return _context.abrupt("return", requestUtil({
|
|
20868
21227
|
url: '/store-house/orgViewNode/listNoPage',
|
|
20869
21228
|
method: 'GET',
|
|
20870
21229
|
params: _objectSpread2({}, params)
|
|
20871
21230
|
}));
|
|
21231
|
+
case 1:
|
|
21232
|
+
case "end":
|
|
21233
|
+
return _context.stop();
|
|
20872
21234
|
}
|
|
20873
21235
|
}, _callee);
|
|
20874
21236
|
}));
|
|
@@ -20903,33 +21265,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20903
21265
|
openSelect = _useState8[0],
|
|
20904
21266
|
setOpenSelect = _useState8[1];
|
|
20905
21267
|
var _useState9 = React$1.useState([]),
|
|
20906
|
-
|
|
20907
|
-
options =
|
|
20908
|
-
setOptions =
|
|
20909
|
-
var
|
|
20910
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
20911
|
-
rescouse = _useState10[0],
|
|
20912
|
-
setRescouse = _useState10[1];
|
|
20913
|
-
var _useState11 = React$1.useState(''),
|
|
21268
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
21269
|
+
options = _useState10[0],
|
|
21270
|
+
setOptions = _useState10[1];
|
|
21271
|
+
var _useState11 = React$1.useState([]),
|
|
20914
21272
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
20915
|
-
|
|
20916
|
-
|
|
20917
|
-
var _useState13 = React$1.useState(
|
|
21273
|
+
rescouse = _useState12[0],
|
|
21274
|
+
setRescouse = _useState12[1];
|
|
21275
|
+
var _useState13 = React$1.useState(''),
|
|
21276
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
21277
|
+
searchValue = _useState14[0],
|
|
21278
|
+
setSearchValue = _useState14[1];
|
|
21279
|
+
var _useState15 = React$1.useState([{
|
|
20918
21280
|
label: name,
|
|
20919
21281
|
value: code
|
|
20920
21282
|
}]),
|
|
20921
|
-
|
|
20922
|
-
store =
|
|
20923
|
-
setStore =
|
|
21283
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
21284
|
+
store = _useState16[0],
|
|
21285
|
+
setStore = _useState16[1];
|
|
20924
21286
|
function fetchUserList(_x, _x2) {
|
|
20925
21287
|
return _fetchUserList.apply(this, arguments);
|
|
20926
21288
|
}
|
|
20927
21289
|
function _fetchUserList() {
|
|
20928
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
20929
|
-
return
|
|
20930
|
-
while (1) switch (_context3.
|
|
21290
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
21291
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
21292
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
20931
21293
|
case 0:
|
|
20932
|
-
return _context3.
|
|
21294
|
+
return _context3.abrupt("return", getStoreByName({
|
|
20933
21295
|
orgName: storeName ? storeName : undefined,
|
|
20934
21296
|
platCompanyCode: init ? undefined : key,
|
|
20935
21297
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -20948,6 +21310,9 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20948
21310
|
};
|
|
20949
21311
|
});
|
|
20950
21312
|
}));
|
|
21313
|
+
case 1:
|
|
21314
|
+
case "end":
|
|
21315
|
+
return _context3.stop();
|
|
20951
21316
|
}
|
|
20952
21317
|
}, _callee3);
|
|
20953
21318
|
}));
|
|
@@ -20970,19 +21335,20 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20970
21335
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
20971
21336
|
}, [debounceTimeout, key]);
|
|
20972
21337
|
var changeInput = /*#__PURE__*/function () {
|
|
20973
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
21338
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
20974
21339
|
var res;
|
|
20975
|
-
return
|
|
20976
|
-
while (1) switch (_context.
|
|
21340
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21341
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20977
21342
|
case 0:
|
|
20978
|
-
_context.
|
|
21343
|
+
_context.next = 2;
|
|
20979
21344
|
return debounceFetcher(str);
|
|
20980
|
-
case
|
|
20981
|
-
res = _context.
|
|
21345
|
+
case 2:
|
|
21346
|
+
res = _context.sent;
|
|
20982
21347
|
setOptions(res);
|
|
20983
21348
|
setRescouse(res);
|
|
20984
|
-
case
|
|
20985
|
-
|
|
21349
|
+
case 5:
|
|
21350
|
+
case "end":
|
|
21351
|
+
return _context.stop();
|
|
20986
21352
|
}
|
|
20987
21353
|
}, _callee);
|
|
20988
21354
|
}));
|
|
@@ -20991,15 +21357,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20991
21357
|
};
|
|
20992
21358
|
}();
|
|
20993
21359
|
React$1.useEffect(function () {
|
|
20994
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
21360
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
20995
21361
|
var res;
|
|
20996
|
-
return
|
|
20997
|
-
while (1) switch (_context2.
|
|
21362
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
21363
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
20998
21364
|
case 0:
|
|
20999
|
-
_context2.
|
|
21365
|
+
_context2.next = 2;
|
|
21000
21366
|
return fetchUserList(undefined, true);
|
|
21001
|
-
case
|
|
21002
|
-
res = _context2.
|
|
21367
|
+
case 2:
|
|
21368
|
+
res = _context2.sent;
|
|
21003
21369
|
res.map(function (item, indexNumber) {
|
|
21004
21370
|
if (item.label === name) {
|
|
21005
21371
|
setIndex(indexNumber);
|
|
@@ -21015,8 +21381,9 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
21015
21381
|
});
|
|
21016
21382
|
setOptions(res);
|
|
21017
21383
|
setRescouse(res);
|
|
21018
|
-
case
|
|
21019
|
-
|
|
21384
|
+
case 6:
|
|
21385
|
+
case "end":
|
|
21386
|
+
return _context2.stop();
|
|
21020
21387
|
}
|
|
21021
21388
|
}, _callee2);
|
|
21022
21389
|
}))();
|
|
@@ -22065,25 +22432,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
22065
22432
|
currentOneLevel = _useState8[0],
|
|
22066
22433
|
setCurrentOneLevel = _useState8[1];
|
|
22067
22434
|
var _useState9 = React$1.useState([]),
|
|
22068
|
-
|
|
22069
|
-
SearhData =
|
|
22070
|
-
setSearchMenuData =
|
|
22071
|
-
var
|
|
22072
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
22073
|
-
rightMenuHeight = _useState10[0],
|
|
22074
|
-
setHeight = _useState10[1];
|
|
22075
|
-
var _useState11 = React$1.useState(900),
|
|
22435
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
22436
|
+
SearhData = _useState10[0],
|
|
22437
|
+
setSearchMenuData = _useState10[1];
|
|
22438
|
+
var _useState11 = React$1.useState(600),
|
|
22076
22439
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
22077
|
-
|
|
22078
|
-
|
|
22079
|
-
var _useState13 = React$1.useState(
|
|
22440
|
+
rightMenuHeight = _useState12[0],
|
|
22441
|
+
setHeight = _useState12[1];
|
|
22442
|
+
var _useState13 = React$1.useState(900),
|
|
22080
22443
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
22081
|
-
|
|
22082
|
-
|
|
22444
|
+
drawHeight = _useState14[0],
|
|
22445
|
+
setDrawHeight = _useState14[1];
|
|
22083
22446
|
var _useState15 = React$1.useState(false),
|
|
22084
22447
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
22085
|
-
|
|
22086
|
-
|
|
22448
|
+
moreBtnShow = _useState16[0],
|
|
22449
|
+
setMoreBtnShow = _useState16[1];
|
|
22450
|
+
var _useState17 = React$1.useState(false),
|
|
22451
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
22452
|
+
showScroll = _useState18[0],
|
|
22453
|
+
setShowScroll = _useState18[1];
|
|
22087
22454
|
React$1.useEffect(function () {
|
|
22088
22455
|
var _originRoutes$find;
|
|
22089
22456
|
getMenuContentHeight();
|
|
@@ -23694,11 +24061,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23694
24061
|
},
|
|
23695
24062
|
menu: {
|
|
23696
24063
|
request: function () {
|
|
23697
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23698
|
-
return
|
|
23699
|
-
while (1) switch (_context.
|
|
24064
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
24065
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24066
|
+
while (1) switch (_context.prev = _context.next) {
|
|
23700
24067
|
case 0:
|
|
23701
|
-
return _context.
|
|
24068
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
24069
|
+
case 1:
|
|
24070
|
+
case "end":
|
|
24071
|
+
return _context.stop();
|
|
23702
24072
|
}
|
|
23703
24073
|
}, _callee);
|
|
23704
24074
|
}));
|
|
@@ -24103,31 +24473,31 @@ var index$6 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
24103
24473
|
multiTableData = _useState8[0],
|
|
24104
24474
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
24105
24475
|
var _useState9 = React$1.useState(10),
|
|
24106
|
-
|
|
24107
|
-
viewCount =
|
|
24108
|
-
setViewCount =
|
|
24476
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
24477
|
+
viewCount = _useState10[0],
|
|
24478
|
+
setViewCount = _useState10[1]; //虚拟表格每次渲染数量
|
|
24109
24479
|
var itemWidth = 100; // 表格每一项宽度
|
|
24110
|
-
var
|
|
24111
|
-
|
|
24112
|
-
realColHeaderWidth =
|
|
24113
|
-
setLeftWidth =
|
|
24480
|
+
var _useState11 = React$1.useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
|
|
24481
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
24482
|
+
realColHeaderWidth = _useState12[0],
|
|
24483
|
+
setLeftWidth = _useState12[1];
|
|
24114
24484
|
var viewPort = React$1.useRef(null);
|
|
24115
24485
|
var topScrollBar = React$1.useRef(null);
|
|
24116
24486
|
var leftTableRef = React$1.useRef(null);
|
|
24117
24487
|
//起始渲染item
|
|
24118
|
-
var
|
|
24119
|
-
|
|
24120
|
-
startIndex =
|
|
24121
|
-
setStartIndex =
|
|
24488
|
+
var _useState13 = React$1.useState(0),
|
|
24489
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
24490
|
+
startIndex = _useState14[0],
|
|
24491
|
+
setStartIndex = _useState14[1];
|
|
24122
24492
|
//结束渲染item
|
|
24123
24493
|
var endIndex = React$1.useMemo(function () {
|
|
24124
24494
|
return startIndex + viewCount;
|
|
24125
24495
|
}, [startIndex, viewCount]);
|
|
24126
24496
|
//表格偏移量
|
|
24127
|
-
var
|
|
24128
|
-
|
|
24129
|
-
offsetWidth =
|
|
24130
|
-
setOffset =
|
|
24497
|
+
var _useState15 = React$1.useState(0),
|
|
24498
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
24499
|
+
offsetWidth = _useState16[0],
|
|
24500
|
+
setOffset = _useState16[1];
|
|
24131
24501
|
React$1.useEffect(function () {
|
|
24132
24502
|
setTimeout(function () {
|
|
24133
24503
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -31431,11 +31801,11 @@ var valueType = {
|
|
|
31431
31801
|
};
|
|
31432
31802
|
|
|
31433
31803
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
31434
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
31435
|
-
return
|
|
31436
|
-
while (1) switch (_context.
|
|
31804
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
31805
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31806
|
+
while (1) switch (_context.prev = _context.next) {
|
|
31437
31807
|
case 0:
|
|
31438
|
-
_context.
|
|
31808
|
+
_context.next = 2;
|
|
31439
31809
|
return bssula.request({
|
|
31440
31810
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
31441
31811
|
converter: function converter(_ref2) {
|
|
@@ -31448,8 +31818,11 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
31448
31818
|
});
|
|
31449
31819
|
}
|
|
31450
31820
|
});
|
|
31451
|
-
case
|
|
31452
|
-
return _context.
|
|
31821
|
+
case 2:
|
|
31822
|
+
return _context.abrupt("return", _context.sent);
|
|
31823
|
+
case 3:
|
|
31824
|
+
case "end":
|
|
31825
|
+
return _context.stop();
|
|
31453
31826
|
}
|
|
31454
31827
|
}, _callee);
|
|
31455
31828
|
}));
|
|
@@ -31496,12 +31869,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31496
31869
|
value: false
|
|
31497
31870
|
}];
|
|
31498
31871
|
var ref = React$1.useRef();
|
|
31499
|
-
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
31500
|
-
var _ref$current, source
|
|
31501
|
-
return
|
|
31502
|
-
while (1) switch (_context.
|
|
31872
|
+
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31873
|
+
var _ref$current, source;
|
|
31874
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31875
|
+
while (1) switch (_context.prev = _context.next) {
|
|
31503
31876
|
case 0:
|
|
31504
|
-
_context.
|
|
31877
|
+
_context.next = 2;
|
|
31505
31878
|
return setIsShowAndType(function (prev) {
|
|
31506
31879
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
31507
31880
|
return {
|
|
@@ -31512,39 +31885,40 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31512
31885
|
}
|
|
31513
31886
|
return prev;
|
|
31514
31887
|
});
|
|
31515
|
-
case
|
|
31888
|
+
case 2:
|
|
31516
31889
|
if (!record.dictionaryCode) {
|
|
31517
|
-
_context.
|
|
31890
|
+
_context.next = 17;
|
|
31518
31891
|
break;
|
|
31519
31892
|
}
|
|
31520
31893
|
if (!(record.choiceType == 20)) {
|
|
31521
|
-
_context.
|
|
31894
|
+
_context.next = 7;
|
|
31522
31895
|
break;
|
|
31523
31896
|
}
|
|
31524
|
-
|
|
31525
|
-
_context.
|
|
31897
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
31898
|
+
_context.next = 15;
|
|
31526
31899
|
break;
|
|
31527
|
-
case
|
|
31900
|
+
case 7:
|
|
31528
31901
|
if (!(record.choiceType == 30)) {
|
|
31529
|
-
_context.
|
|
31902
|
+
_context.next = 13;
|
|
31530
31903
|
break;
|
|
31531
31904
|
}
|
|
31532
|
-
_context.
|
|
31905
|
+
_context.next = 10;
|
|
31533
31906
|
return getDynamicDict(record.dictionaryCode);
|
|
31534
|
-
case
|
|
31535
|
-
|
|
31536
|
-
_context.
|
|
31907
|
+
case 10:
|
|
31908
|
+
_context.t1 = _context.sent;
|
|
31909
|
+
_context.next = 14;
|
|
31537
31910
|
break;
|
|
31538
|
-
case
|
|
31539
|
-
|
|
31540
|
-
case
|
|
31541
|
-
|
|
31542
|
-
case
|
|
31543
|
-
source =
|
|
31911
|
+
case 13:
|
|
31912
|
+
_context.t1 = [];
|
|
31913
|
+
case 14:
|
|
31914
|
+
_context.t0 = _context.t1;
|
|
31915
|
+
case 15:
|
|
31916
|
+
source = _context.t0;
|
|
31544
31917
|
// @ts-ignore
|
|
31545
31918
|
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
31546
|
-
case
|
|
31547
|
-
|
|
31919
|
+
case 17:
|
|
31920
|
+
case "end":
|
|
31921
|
+
return _context.stop();
|
|
31548
31922
|
}
|
|
31549
31923
|
}, _callee);
|
|
31550
31924
|
})));
|
|
@@ -31609,10 +31983,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31609
31983
|
source: {
|
|
31610
31984
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
31611
31985
|
type: function () {
|
|
31612
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
31986
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
31613
31987
|
var form, values, name, relates, source;
|
|
31614
|
-
return
|
|
31615
|
-
while (1) switch (_context2.
|
|
31988
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
31989
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
31616
31990
|
case 0:
|
|
31617
31991
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
31618
31992
|
if (values[0]) {
|
|
@@ -31621,18 +31995,19 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31621
31995
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
31622
31996
|
}
|
|
31623
31997
|
if (!values[1]) {
|
|
31624
|
-
_context2.
|
|
31998
|
+
_context2.next = 9;
|
|
31625
31999
|
break;
|
|
31626
32000
|
}
|
|
31627
|
-
_context2.
|
|
32001
|
+
_context2.next = 5;
|
|
31628
32002
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
31629
|
-
case
|
|
31630
|
-
source = _context2.
|
|
32003
|
+
case 5:
|
|
32004
|
+
source = _context2.sent;
|
|
31631
32005
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
31632
32006
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
31633
32007
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
31634
|
-
case
|
|
31635
|
-
|
|
32008
|
+
case 9:
|
|
32009
|
+
case "end":
|
|
32010
|
+
return _context2.stop();
|
|
31636
32011
|
}
|
|
31637
32012
|
}, _callee2);
|
|
31638
32013
|
}));
|
|
@@ -32088,25 +32463,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32088
32463
|
source: {
|
|
32089
32464
|
relates: ['choiceType', 'inputType'],
|
|
32090
32465
|
type: function () {
|
|
32091
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
32466
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
32092
32467
|
var values, name, form, source;
|
|
32093
|
-
return
|
|
32094
|
-
while (1) switch (_context3.
|
|
32468
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32469
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
32095
32470
|
case 0:
|
|
32096
|
-
values =
|
|
32471
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
32097
32472
|
if (values[1] === 40) {
|
|
32098
32473
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
32099
32474
|
form.setFieldVisible(name, false);
|
|
32100
32475
|
}
|
|
32101
32476
|
if (!(values[0] === 30)) {
|
|
32102
|
-
_context3.
|
|
32477
|
+
_context3.next = 10;
|
|
32103
32478
|
break;
|
|
32104
32479
|
}
|
|
32105
|
-
_context3.
|
|
32480
|
+
_context3.next = 5;
|
|
32106
32481
|
return bssula.request({
|
|
32107
32482
|
url: '/basic/dictDynamicItem/queryList',
|
|
32108
|
-
converter: function converter(
|
|
32109
|
-
var data =
|
|
32483
|
+
converter: function converter(_ref11) {
|
|
32484
|
+
var data = _ref11.data;
|
|
32110
32485
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32111
32486
|
return {
|
|
32112
32487
|
text: d.dictCode,
|
|
@@ -32115,16 +32490,17 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32115
32490
|
});
|
|
32116
32491
|
}
|
|
32117
32492
|
});
|
|
32118
|
-
case
|
|
32119
|
-
source = _context3.
|
|
32493
|
+
case 5:
|
|
32494
|
+
source = _context3.sent;
|
|
32120
32495
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
32121
32496
|
form.setFieldVisible(name, true);
|
|
32122
|
-
_context3.
|
|
32497
|
+
_context3.next = 11;
|
|
32123
32498
|
break;
|
|
32124
|
-
case
|
|
32499
|
+
case 10:
|
|
32125
32500
|
form.setFieldVisible(name, false);
|
|
32126
|
-
case
|
|
32127
|
-
|
|
32501
|
+
case 11:
|
|
32502
|
+
case "end":
|
|
32503
|
+
return _context3.stop();
|
|
32128
32504
|
}
|
|
32129
32505
|
}, _callee3);
|
|
32130
32506
|
}));
|
|
@@ -32139,8 +32515,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32139
32515
|
name: 'enumeration',
|
|
32140
32516
|
label: '维护自定义选项',
|
|
32141
32517
|
field: {
|
|
32142
|
-
type: function type(
|
|
32143
|
-
var form =
|
|
32518
|
+
type: function type(_ref12) {
|
|
32519
|
+
var form = _ref12.form;
|
|
32144
32520
|
return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
32145
32521
|
type: 'link',
|
|
32146
32522
|
onClick: function onClick() {
|
|
@@ -32166,10 +32542,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32166
32542
|
dependency: {
|
|
32167
32543
|
source: {
|
|
32168
32544
|
relates: ['choiceType'],
|
|
32169
|
-
type: function type(
|
|
32170
|
-
var values =
|
|
32171
|
-
name =
|
|
32172
|
-
form =
|
|
32545
|
+
type: function type(_ref13) {
|
|
32546
|
+
var values = _ref13.values,
|
|
32547
|
+
name = _ref13.name,
|
|
32548
|
+
form = _ref13.form;
|
|
32173
32549
|
if (values[0] === 10) {
|
|
32174
32550
|
form.setFieldVisible(name, true);
|
|
32175
32551
|
} else {
|
|
@@ -32185,10 +32561,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32185
32561
|
dependency: {
|
|
32186
32562
|
visible: {
|
|
32187
32563
|
relates: ['choiceType'],
|
|
32188
|
-
type: function type(
|
|
32189
|
-
var name =
|
|
32190
|
-
values =
|
|
32191
|
-
form =
|
|
32564
|
+
type: function type(_ref14) {
|
|
32565
|
+
var name = _ref14.name,
|
|
32566
|
+
values = _ref14.values,
|
|
32567
|
+
form = _ref14.form;
|
|
32192
32568
|
if (values[0] == 330) {
|
|
32193
32569
|
form.setFieldVisible(name, true);
|
|
32194
32570
|
} else {
|
|
@@ -32212,8 +32588,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32212
32588
|
params: {
|
|
32213
32589
|
'qp-businessType-eq': record.businessType
|
|
32214
32590
|
},
|
|
32215
|
-
converter: function converter(
|
|
32216
|
-
var data =
|
|
32591
|
+
converter: function converter(_ref15) {
|
|
32592
|
+
var data = _ref15.data;
|
|
32217
32593
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32218
32594
|
return {
|
|
32219
32595
|
text: d.name,
|
|
@@ -32253,8 +32629,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32253
32629
|
'qp-businessType-eq': record.businessType,
|
|
32254
32630
|
'qp-status-eq': 1
|
|
32255
32631
|
},
|
|
32256
|
-
converter: function converter(
|
|
32257
|
-
var data =
|
|
32632
|
+
converter: function converter(_ref16) {
|
|
32633
|
+
var data = _ref16.data;
|
|
32258
32634
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32259
32635
|
var _d$code;
|
|
32260
32636
|
return {
|
|
@@ -32282,8 +32658,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32282
32658
|
remoteSource: {
|
|
32283
32659
|
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),
|
|
32284
32660
|
method: 'get',
|
|
32285
|
-
converter: function converter(
|
|
32286
|
-
var data =
|
|
32661
|
+
converter: function converter(_ref17) {
|
|
32662
|
+
var data = _ref17.data;
|
|
32287
32663
|
if (lineDetail.moduleType == 1) {
|
|
32288
32664
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32289
32665
|
return {
|
|
@@ -32309,16 +32685,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32309
32685
|
width: 900,
|
|
32310
32686
|
maskClosable: false,
|
|
32311
32687
|
onOk: function () {
|
|
32312
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
32688
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32313
32689
|
var _ref$current4, _res$editableStatus;
|
|
32314
32690
|
var res, _res$defaultValue;
|
|
32315
|
-
return
|
|
32316
|
-
while (1) switch (_context4.
|
|
32691
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32692
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
32317
32693
|
case 0:
|
|
32318
|
-
_context4.
|
|
32694
|
+
_context4.next = 2;
|
|
32319
32695
|
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
32320
|
-
case
|
|
32321
|
-
res = _context4.
|
|
32696
|
+
case 2:
|
|
32697
|
+
res = _context4.sent;
|
|
32322
32698
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
32323
32699
|
res.fieldGroup = record.fieldGroup;
|
|
32324
32700
|
res.businessType = record.businessType;
|
|
@@ -32345,7 +32721,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32345
32721
|
delete res.formula;
|
|
32346
32722
|
delete res.showValue;
|
|
32347
32723
|
if (!(mode === 'create')) {
|
|
32348
|
-
_context4.
|
|
32724
|
+
_context4.next = 18;
|
|
32349
32725
|
break;
|
|
32350
32726
|
}
|
|
32351
32727
|
bssula.request({
|
|
@@ -32357,8 +32733,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32357
32733
|
onParentOk();
|
|
32358
32734
|
}
|
|
32359
32735
|
});
|
|
32360
|
-
return _context4.
|
|
32361
|
-
case
|
|
32736
|
+
return _context4.abrupt("return");
|
|
32737
|
+
case 18:
|
|
32362
32738
|
bssula.request({
|
|
32363
32739
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
32364
32740
|
method: 'PATCH',
|
|
@@ -32368,8 +32744,9 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32368
32744
|
onParentOk();
|
|
32369
32745
|
}
|
|
32370
32746
|
});
|
|
32371
|
-
case
|
|
32372
|
-
|
|
32747
|
+
case 19:
|
|
32748
|
+
case "end":
|
|
32749
|
+
return _context4.stop();
|
|
32373
32750
|
}
|
|
32374
32751
|
}, _callee4);
|
|
32375
32752
|
}));
|
|
@@ -32825,21 +33202,21 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
32825
33202
|
jsonEditorVal = _useState8[0],
|
|
32826
33203
|
setJsonEditorVal = _useState8[1];
|
|
32827
33204
|
var _useState9 = React$1.useState({}),
|
|
32828
|
-
|
|
32829
|
-
moduleParams =
|
|
32830
|
-
setModuleParams =
|
|
32831
|
-
var
|
|
32832
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
32833
|
-
activeKey = _useState10[0],
|
|
32834
|
-
setActiveKey = _useState10[1]; //默认详情页配置
|
|
32835
|
-
var _useState11 = React$1.useState({}),
|
|
33205
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
33206
|
+
moduleParams = _useState10[0],
|
|
33207
|
+
setModuleParams = _useState10[1];
|
|
33208
|
+
var _useState11 = React$1.useState('main'),
|
|
32836
33209
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32837
|
-
|
|
32838
|
-
|
|
32839
|
-
var _useState13 = React$1.useState(
|
|
33210
|
+
activeKey = _useState12[0],
|
|
33211
|
+
setActiveKey = _useState12[1]; //默认详情页配置
|
|
33212
|
+
var _useState13 = React$1.useState({}),
|
|
32840
33213
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32841
|
-
|
|
32842
|
-
|
|
33214
|
+
tablesConfigParams = _useState14[0],
|
|
33215
|
+
setTablesConfigParams = _useState14[1];
|
|
33216
|
+
var _useState15 = React$1.useState([]),
|
|
33217
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
33218
|
+
tableJsonEditorValsArr = _useState16[0],
|
|
33219
|
+
setTableJsonEditorValsArr = _useState16[1];
|
|
32843
33220
|
React$1.useEffect(function () {
|
|
32844
33221
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32845
33222
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -32870,7 +33247,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
32870
33247
|
});
|
|
32871
33248
|
Promise.all(axiosArr).then(function (_ref5) {
|
|
32872
33249
|
var _ref6 = _toArray(_ref5),
|
|
32873
|
-
resArr =
|
|
33250
|
+
resArr = _ref6.slice(0);
|
|
32874
33251
|
var configParams = {};
|
|
32875
33252
|
detailTablesSetting.map(function (item, index) {
|
|
32876
33253
|
var _resArr$index;
|
|
@@ -33215,11 +33592,11 @@ function getMetaData(_x) {
|
|
|
33215
33592
|
|
|
33216
33593
|
// 获取数据
|
|
33217
33594
|
function _getMetaData() {
|
|
33218
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
33219
|
-
return
|
|
33220
|
-
while (1) switch (_context.
|
|
33595
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
33596
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33597
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33221
33598
|
case 0:
|
|
33222
|
-
return _context.
|
|
33599
|
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
33223
33600
|
umi.request('/basic/entityProperty/listNoPage', {
|
|
33224
33601
|
params: {
|
|
33225
33602
|
'qp-entityId-eq': id
|
|
@@ -33231,6 +33608,9 @@ function _getMetaData() {
|
|
|
33231
33608
|
reject([]);
|
|
33232
33609
|
});
|
|
33233
33610
|
}));
|
|
33611
|
+
case 1:
|
|
33612
|
+
case "end":
|
|
33613
|
+
return _context.stop();
|
|
33234
33614
|
}
|
|
33235
33615
|
}, _callee);
|
|
33236
33616
|
}));
|
|
@@ -33434,11 +33814,11 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33434
33814
|
tableState = _useState4[0],
|
|
33435
33815
|
setTableState = _useState4[1];
|
|
33436
33816
|
var handleOpen = /*#__PURE__*/function () {
|
|
33437
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33817
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
33438
33818
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
33439
33819
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
33440
|
-
return
|
|
33441
|
-
while (1) switch (_context.
|
|
33820
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33821
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33442
33822
|
case 0:
|
|
33443
33823
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
33444
33824
|
isSearchForm: props.isSearchForm,
|
|
@@ -33446,16 +33826,16 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33446
33826
|
searchFormData: searchFormData
|
|
33447
33827
|
});
|
|
33448
33828
|
if (requestConfigNew) {
|
|
33449
|
-
_context.
|
|
33829
|
+
_context.next = 3;
|
|
33450
33830
|
break;
|
|
33451
33831
|
}
|
|
33452
|
-
return _context.
|
|
33453
|
-
case
|
|
33832
|
+
return _context.abrupt("return");
|
|
33833
|
+
case 3:
|
|
33454
33834
|
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;
|
|
33455
|
-
_context.
|
|
33835
|
+
_context.next = 6;
|
|
33456
33836
|
return getMetaData(metaDataId);
|
|
33457
|
-
case
|
|
33458
|
-
metaData = _context.
|
|
33837
|
+
case 6:
|
|
33838
|
+
metaData = _context.sent;
|
|
33459
33839
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
33460
33840
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
33461
33841
|
})) || [];
|
|
@@ -33495,8 +33875,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33495
33875
|
// @ts-ignore
|
|
33496
33876
|
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);
|
|
33497
33877
|
}
|
|
33498
|
-
case
|
|
33499
|
-
|
|
33878
|
+
case 14:
|
|
33879
|
+
case "end":
|
|
33880
|
+
return _context.stop();
|
|
33500
33881
|
}
|
|
33501
33882
|
}, _callee);
|
|
33502
33883
|
}));
|
|
@@ -33599,7 +33980,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33599
33980
|
}, [requestConfig, tableState.columns]);
|
|
33600
33981
|
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';
|
|
33601
33982
|
var handleOk = function handleOk(rowData) {
|
|
33602
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
33983
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren13, _queryTableRef$curren14, _queryTableRef$curren15;
|
|
33603
33984
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
33604
33985
|
//多选数据处理
|
|
33605
33986
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -33610,9 +33991,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33610
33991
|
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()) || [];
|
|
33611
33992
|
var realSelectedRows = selectedRows;
|
|
33612
33993
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
33613
|
-
var _queryTableRef$
|
|
33994
|
+
var _queryTableRef$curren10, _queryTableRef$curren11, _queryTableRef$curren12;
|
|
33614
33995
|
// @ts-ignore
|
|
33615
|
-
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33996
|
+
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren10 = queryTableRef.current) === null || _queryTableRef$curren10 === void 0 ? void 0 : (_queryTableRef$curren11 = _queryTableRef$curren10.tableRef) === null || _queryTableRef$curren11 === void 0 ? void 0 : (_queryTableRef$curren12 = _queryTableRef$curren11.current) === null || _queryTableRef$curren12 === void 0 ? void 0 : _queryTableRef$curren12.getDataSource()) || [];
|
|
33616
33997
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
33617
33998
|
return selectedKesys.includes(s[rowKey]);
|
|
33618
33999
|
});
|
|
@@ -33645,10 +34026,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33645
34026
|
});
|
|
33646
34027
|
}
|
|
33647
34028
|
mappings.map(function (item) {
|
|
33648
|
-
var _props$
|
|
33649
|
-
if (((_props$
|
|
33650
|
-
var _props$
|
|
33651
|
-
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$
|
|
34029
|
+
var _props$customSelector10, _props$customSelector11, _props$customSelector12, _props$customSelector13;
|
|
34030
|
+
if (((_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) && item.codeMappingTo === prop && 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]) {
|
|
34031
|
+
var _props$customSelector14, _props$customSelector15;
|
|
34032
|
+
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$customSelector14 = props.customSelectorConfig) === null || _props$customSelector14 === void 0 ? void 0 : (_props$customSelector15 = _props$customSelector14.extraData) === null || _props$customSelector15 === void 0 ? void 0 : _props$customSelector15.echoLabel];
|
|
33652
34033
|
}
|
|
33653
34034
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
33654
34035
|
});
|
|
@@ -33703,10 +34084,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33703
34084
|
}
|
|
33704
34085
|
props.onCancel();
|
|
33705
34086
|
//@ts-ignore
|
|
33706
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
34087
|
+
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren13 = queryTableRef.current) === null || _queryTableRef$curren13 === void 0 ? void 0 : (_queryTableRef$curren14 = _queryTableRef$curren13.tableRef) === null || _queryTableRef$curren14 === void 0 ? void 0 : (_queryTableRef$curren15 = _queryTableRef$curren14.current) === null || _queryTableRef$curren15 === void 0 ? void 0 : _queryTableRef$curren15.clearRowSelection();
|
|
33707
34088
|
};
|
|
33708
34089
|
var config = React$1.useMemo(function () {
|
|
33709
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
34090
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx10, _props$ctx10$form;
|
|
33710
34091
|
var returnConfig = {
|
|
33711
34092
|
size: 'small',
|
|
33712
34093
|
needPageHeader: false,
|
|
@@ -33715,7 +34096,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33715
34096
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33716
34097
|
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) {
|
|
33717
34098
|
return v.key || v;
|
|
33718
|
-
})) || (props === null || props === void 0 ? void 0 : (_props$
|
|
34099
|
+
})) || (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))
|
|
33719
34100
|
} : false,
|
|
33720
34101
|
remoteDataSource: remoteDataSource,
|
|
33721
34102
|
fields: tableState.fields,
|
|
@@ -33723,8 +34104,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33723
34104
|
rowKey: rowKey,
|
|
33724
34105
|
tableProps: !isView && {
|
|
33725
34106
|
rowClassName: function rowClassName(record) {
|
|
33726
|
-
var _props$
|
|
33727
|
-
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$
|
|
34107
|
+
var _props$ctx11, _props$value3, _props$ctx12, _props$ctx12$form;
|
|
34108
|
+
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$ctx11 = props.ctx) === null || _props$ctx11 === void 0 ? void 0 : _props$ctx11.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$ctx12 = props.ctx) === null || _props$ctx12 === void 0 ? void 0 : (_props$ctx12$form = _props$ctx12.form) === null || _props$ctx12$form === void 0 ? void 0 : _props$ctx12$form.getFieldValue(props.id))) ? 'tableSelectedRow' : '';
|
|
33728
34109
|
},
|
|
33729
34110
|
onRow: function onRow(record) {
|
|
33730
34111
|
return {
|
|
@@ -33769,10 +34150,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33769
34150
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
33770
34151
|
type: "default",
|
|
33771
34152
|
onClick: function onClick() {
|
|
33772
|
-
var _queryTableRef$
|
|
34153
|
+
var _queryTableRef$curren16, _queryTableRef$curren17, _queryTableRef$curren18;
|
|
33773
34154
|
props.onCancel();
|
|
33774
34155
|
//@ts-ignore
|
|
33775
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
34156
|
+
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren16 = queryTableRef.current) === null || _queryTableRef$curren16 === void 0 ? void 0 : (_queryTableRef$curren17 = _queryTableRef$curren16.tableRef) === null || _queryTableRef$curren17 === void 0 ? void 0 : (_queryTableRef$curren18 = _queryTableRef$curren17.current) === null || _queryTableRef$curren18 === void 0 ? void 0 : _queryTableRef$curren18.clearRowSelection();
|
|
33776
34157
|
}
|
|
33777
34158
|
}, "\u53D6\u6D88"))));
|
|
33778
34159
|
});
|
|
@@ -33996,19 +34377,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33996
34377
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33997
34378
|
handSource = _useState2[0],
|
|
33998
34379
|
setHandSource = _useState2[1];
|
|
33999
|
-
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34380
|
+
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34000
34381
|
var resData, data;
|
|
34001
|
-
return
|
|
34002
|
-
while (1) switch (_context.
|
|
34382
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
34383
|
+
while (1) switch (_context.prev = _context.next) {
|
|
34003
34384
|
case 0:
|
|
34004
34385
|
if (!(!source && initRequestSource)) {
|
|
34005
|
-
_context.
|
|
34386
|
+
_context.next = 6;
|
|
34006
34387
|
break;
|
|
34007
34388
|
}
|
|
34008
|
-
_context.
|
|
34389
|
+
_context.next = 3;
|
|
34009
34390
|
return initRequestSource();
|
|
34010
|
-
case
|
|
34011
|
-
resData = _context.
|
|
34391
|
+
case 3:
|
|
34392
|
+
resData = _context.sent;
|
|
34012
34393
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
34013
34394
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
34014
34395
|
label: item.text,
|
|
@@ -34016,8 +34397,9 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
34016
34397
|
});
|
|
34017
34398
|
})) || [];
|
|
34018
34399
|
setHandSource(data);
|
|
34019
|
-
case
|
|
34020
|
-
|
|
34400
|
+
case 6:
|
|
34401
|
+
case "end":
|
|
34402
|
+
return _context.stop();
|
|
34021
34403
|
}
|
|
34022
34404
|
}, _callee);
|
|
34023
34405
|
})), []);
|
|
@@ -34147,17 +34529,20 @@ function getRegularThresholdRange(_x) {
|
|
|
34147
34529
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
34148
34530
|
}
|
|
34149
34531
|
function _getRegularThresholdRange() {
|
|
34150
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
34151
|
-
return
|
|
34152
|
-
while (1) switch (_context.
|
|
34532
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
34533
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
34534
|
+
while (1) switch (_context.prev = _context.next) {
|
|
34153
34535
|
case 0:
|
|
34154
|
-
return _context.
|
|
34536
|
+
return _context.abrupt("return", requestUtil({
|
|
34155
34537
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
34156
34538
|
method: 'POST',
|
|
34157
34539
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
34158
34540
|
queryIdentify: undefined
|
|
34159
34541
|
})
|
|
34160
34542
|
}));
|
|
34543
|
+
case 1:
|
|
34544
|
+
case "end":
|
|
34545
|
+
return _context.stop();
|
|
34161
34546
|
}
|
|
34162
34547
|
}, _callee);
|
|
34163
34548
|
}));
|
|
@@ -34298,24 +34683,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34298
34683
|
};
|
|
34299
34684
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
34300
34685
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
34301
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
34686
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
34302
34687
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
34303
|
-
return
|
|
34304
|
-
while (1) switch (_context.
|
|
34688
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
34689
|
+
while (1) switch (_context.prev = _context.next) {
|
|
34305
34690
|
case 0:
|
|
34306
34691
|
if (queryIdentify) {
|
|
34307
|
-
_context.
|
|
34692
|
+
_context.next = 2;
|
|
34308
34693
|
break;
|
|
34309
34694
|
}
|
|
34310
|
-
return _context.
|
|
34311
|
-
case
|
|
34695
|
+
return _context.abrupt("return");
|
|
34696
|
+
case 2:
|
|
34312
34697
|
thresholdQuery = _this.state.thresholdQuery;
|
|
34313
34698
|
extraRequestUrl = '';
|
|
34314
34699
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
34315
34700
|
if (!queryIdentityInfo.find(function (item) {
|
|
34316
34701
|
return item.identity == propertyCode;
|
|
34317
34702
|
})) {
|
|
34318
|
-
_context.
|
|
34703
|
+
_context.next = 10;
|
|
34319
34704
|
break;
|
|
34320
34705
|
}
|
|
34321
34706
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -34329,15 +34714,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34329
34714
|
if (!needQueryList.some(function (item) {
|
|
34330
34715
|
return !querParams[item] || !querParams[item].length;
|
|
34331
34716
|
})) {
|
|
34332
|
-
_context.
|
|
34717
|
+
_context.next = 9;
|
|
34333
34718
|
break;
|
|
34334
34719
|
}
|
|
34335
|
-
return _context.
|
|
34336
|
-
case
|
|
34720
|
+
return _context.abrupt("return");
|
|
34721
|
+
case 9:
|
|
34337
34722
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
34338
34723
|
return item.identity == propertyCode;
|
|
34339
34724
|
}).requestUrl || '';
|
|
34340
|
-
case
|
|
34725
|
+
case 10:
|
|
34341
34726
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
34342
34727
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
34343
34728
|
querParams = {
|
|
@@ -34348,7 +34733,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34348
34733
|
// querParams = { dictCode: queryIdentify }
|
|
34349
34734
|
}
|
|
34350
34735
|
if (!extraRequestUrl) {
|
|
34351
|
-
_context.
|
|
34736
|
+
_context.next = 16;
|
|
34352
34737
|
break;
|
|
34353
34738
|
}
|
|
34354
34739
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -34387,42 +34772,43 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34387
34772
|
return handleData;
|
|
34388
34773
|
}
|
|
34389
34774
|
});
|
|
34390
|
-
_context.
|
|
34775
|
+
_context.next = 29;
|
|
34391
34776
|
break;
|
|
34392
|
-
case
|
|
34777
|
+
case 16:
|
|
34393
34778
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
34394
|
-
_context.
|
|
34779
|
+
_context.next = 20;
|
|
34395
34780
|
break;
|
|
34396
34781
|
}
|
|
34397
34782
|
_this.setState({
|
|
34398
34783
|
thresholdList: queryIdentify
|
|
34399
34784
|
});
|
|
34400
|
-
_context.
|
|
34785
|
+
_context.next = 29;
|
|
34401
34786
|
break;
|
|
34402
|
-
case
|
|
34787
|
+
case 20:
|
|
34403
34788
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
34404
|
-
_context.
|
|
34789
|
+
_context.next = 24;
|
|
34405
34790
|
break;
|
|
34406
34791
|
}
|
|
34407
34792
|
// TODO待处理
|
|
34408
34793
|
_this.setState({
|
|
34409
34794
|
thresholdList: []
|
|
34410
34795
|
});
|
|
34411
|
-
_context.
|
|
34796
|
+
_context.next = 29;
|
|
34412
34797
|
break;
|
|
34413
|
-
case
|
|
34798
|
+
case 24:
|
|
34414
34799
|
querParams.queryIdentify = queryIdentify;
|
|
34415
|
-
_context.
|
|
34800
|
+
_context.next = 27;
|
|
34416
34801
|
return getRegularThresholdRange(querParams);
|
|
34417
|
-
case
|
|
34418
|
-
res = _context.
|
|
34802
|
+
case 27:
|
|
34803
|
+
res = _context.sent;
|
|
34419
34804
|
if (handleError(res)) {
|
|
34420
34805
|
_this.setState({
|
|
34421
34806
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
34422
34807
|
});
|
|
34423
34808
|
}
|
|
34424
|
-
case
|
|
34425
|
-
|
|
34809
|
+
case 29:
|
|
34810
|
+
case "end":
|
|
34811
|
+
return _context.stop();
|
|
34426
34812
|
}
|
|
34427
34813
|
}, _callee);
|
|
34428
34814
|
}));
|
|
@@ -35254,11 +35640,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35254
35640
|
isAll: true,
|
|
35255
35641
|
needNameAndCode: true,
|
|
35256
35642
|
notChangeOnSelect: true,
|
|
35257
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35258
|
-
return
|
|
35259
|
-
while (1) switch (_context2.
|
|
35643
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35644
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
35645
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
35260
35646
|
case 0:
|
|
35261
|
-
_context2.
|
|
35647
|
+
_context2.next = 2;
|
|
35262
35648
|
return bssula.request({
|
|
35263
35649
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35264
35650
|
method: 'get',
|
|
@@ -35275,8 +35661,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35275
35661
|
return handleData;
|
|
35276
35662
|
}
|
|
35277
35663
|
});
|
|
35278
|
-
case
|
|
35279
|
-
return _context2.
|
|
35664
|
+
case 2:
|
|
35665
|
+
return _context2.abrupt("return", _context2.sent);
|
|
35666
|
+
case 3:
|
|
35667
|
+
case "end":
|
|
35668
|
+
return _context2.stop();
|
|
35280
35669
|
}
|
|
35281
35670
|
}, _callee2);
|
|
35282
35671
|
})),
|
|
@@ -35300,11 +35689,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35300
35689
|
isAll: true,
|
|
35301
35690
|
needNameAndCode: true,
|
|
35302
35691
|
notChangeOnSelect: true,
|
|
35303
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35304
|
-
return
|
|
35305
|
-
while (1) switch (_context3.
|
|
35692
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
35693
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
35694
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
35306
35695
|
case 0:
|
|
35307
|
-
_context3.
|
|
35696
|
+
_context3.next = 2;
|
|
35308
35697
|
return bssula.request({
|
|
35309
35698
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35310
35699
|
method: 'get',
|
|
@@ -35321,8 +35710,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35321
35710
|
return handleData;
|
|
35322
35711
|
}
|
|
35323
35712
|
});
|
|
35324
|
-
case
|
|
35325
|
-
return _context3.
|
|
35713
|
+
case 2:
|
|
35714
|
+
return _context3.abrupt("return", _context3.sent);
|
|
35715
|
+
case 3:
|
|
35716
|
+
case "end":
|
|
35717
|
+
return _context3.stop();
|
|
35326
35718
|
}
|
|
35327
35719
|
}, _callee3);
|
|
35328
35720
|
})),
|
|
@@ -35348,11 +35740,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35348
35740
|
isAll: true,
|
|
35349
35741
|
needNameAndCode: true,
|
|
35350
35742
|
notChangeOnSelect: true,
|
|
35351
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35352
|
-
return
|
|
35353
|
-
while (1) switch (_context4.
|
|
35743
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
35744
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
35745
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
35354
35746
|
case 0:
|
|
35355
|
-
_context4.
|
|
35747
|
+
_context4.next = 2;
|
|
35356
35748
|
return bssula.request({
|
|
35357
35749
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35358
35750
|
method: 'get',
|
|
@@ -35369,8 +35761,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35369
35761
|
return handleData;
|
|
35370
35762
|
}
|
|
35371
35763
|
});
|
|
35372
|
-
case
|
|
35373
|
-
return _context4.
|
|
35764
|
+
case 2:
|
|
35765
|
+
return _context4.abrupt("return", _context4.sent);
|
|
35766
|
+
case 3:
|
|
35767
|
+
case "end":
|
|
35768
|
+
return _context4.stop();
|
|
35374
35769
|
}
|
|
35375
35770
|
}, _callee4);
|
|
35376
35771
|
})),
|
|
@@ -36057,8 +36452,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36057
36452
|
}
|
|
36058
36453
|
}));
|
|
36059
36454
|
} else {
|
|
36060
|
-
var
|
|
36061
|
-
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((
|
|
36455
|
+
var _values10;
|
|
36456
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
36062
36457
|
return {
|
|
36063
36458
|
key: s,
|
|
36064
36459
|
label: valueNames[vIndex],
|
|
@@ -36346,8 +36741,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36346
36741
|
}
|
|
36347
36742
|
}));
|
|
36348
36743
|
} else {
|
|
36349
|
-
var
|
|
36350
|
-
var
|
|
36744
|
+
var _values11;
|
|
36745
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
36351
36746
|
return {
|
|
36352
36747
|
key: s,
|
|
36353
36748
|
label: valueNames[vIndex],
|
|
@@ -36369,7 +36764,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36369
36764
|
} : {}),
|
|
36370
36765
|
disabled: disabled,
|
|
36371
36766
|
labelInValue: true,
|
|
36372
|
-
value:
|
|
36767
|
+
value: _currentValue10,
|
|
36373
36768
|
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36374
36769
|
otherParams: {
|
|
36375
36770
|
// 配送方式只选择标准配送方式
|
|
@@ -36467,8 +36862,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36467
36862
|
}
|
|
36468
36863
|
}));
|
|
36469
36864
|
} else {
|
|
36470
|
-
var
|
|
36471
|
-
var
|
|
36865
|
+
var _values12;
|
|
36866
|
+
var _currentValue11 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
36472
36867
|
return {
|
|
36473
36868
|
key: s,
|
|
36474
36869
|
label: valueNames[vIndex],
|
|
@@ -36490,7 +36885,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36490
36885
|
} : {}),
|
|
36491
36886
|
disabled: disabled,
|
|
36492
36887
|
labelInValue: true,
|
|
36493
|
-
value:
|
|
36888
|
+
value: _currentValue11,
|
|
36494
36889
|
requestConfig: {
|
|
36495
36890
|
filterInit: 'qp-code-in'
|
|
36496
36891
|
},
|
|
@@ -36583,8 +36978,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36583
36978
|
}
|
|
36584
36979
|
}));
|
|
36585
36980
|
} else {
|
|
36586
|
-
var
|
|
36587
|
-
var
|
|
36981
|
+
var _values13;
|
|
36982
|
+
var _currentValue12 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
|
|
36588
36983
|
return {
|
|
36589
36984
|
key: s,
|
|
36590
36985
|
label: valueNames[vIndex],
|
|
@@ -36606,7 +37001,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36606
37001
|
} : {}),
|
|
36607
37002
|
disabled: disabled,
|
|
36608
37003
|
labelInValue: true,
|
|
36609
|
-
value:
|
|
37004
|
+
value: _currentValue12,
|
|
36610
37005
|
requestConfig: {
|
|
36611
37006
|
filterInit: 'qp-brandCode-in'
|
|
36612
37007
|
},
|
|
@@ -36797,8 +37192,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36797
37192
|
}
|
|
36798
37193
|
}));
|
|
36799
37194
|
} else {
|
|
36800
|
-
var
|
|
36801
|
-
var
|
|
37195
|
+
var _values14;
|
|
37196
|
+
var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
|
|
36802
37197
|
return {
|
|
36803
37198
|
key: s,
|
|
36804
37199
|
label: valueNames[vIndex]
|
|
@@ -36826,7 +37221,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36826
37221
|
isSearchForm: true,
|
|
36827
37222
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36828
37223
|
disabled: disabled,
|
|
36829
|
-
value:
|
|
37224
|
+
value: _currentValue13,
|
|
36830
37225
|
onChange: function onChange(value, sourceList) {
|
|
36831
37226
|
if (dataInputBusinessType === 12) {
|
|
36832
37227
|
var _value$map3, _sourceList$filter3;
|
|
@@ -37146,9 +37541,9 @@ var App$1 = function App(_ref) {
|
|
|
37146
37541
|
UpdateState(res);
|
|
37147
37542
|
};
|
|
37148
37543
|
var _useState9 = React$1.useState(false),
|
|
37149
|
-
|
|
37150
|
-
isModalVisible =
|
|
37151
|
-
setIsModalVisible =
|
|
37544
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
37545
|
+
isModalVisible = _useState10[0],
|
|
37546
|
+
setIsModalVisible = _useState10[1];
|
|
37152
37547
|
var showModal = function showModal() {
|
|
37153
37548
|
setIsModalVisible(true);
|
|
37154
37549
|
};
|
|
@@ -37629,26 +38024,27 @@ function RenderCompItem(props) {
|
|
|
37629
38024
|
dictData = _useState2[0],
|
|
37630
38025
|
setDictData = _useState2[1];
|
|
37631
38026
|
var getDictData = /*#__PURE__*/function () {
|
|
37632
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
38027
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
37633
38028
|
var _data$map;
|
|
37634
38029
|
var data;
|
|
37635
|
-
return
|
|
37636
|
-
while (1) switch (_context.
|
|
38030
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
38031
|
+
while (1) switch (_context.prev = _context.next) {
|
|
37637
38032
|
case 0:
|
|
37638
|
-
_context.
|
|
38033
|
+
_context.next = 2;
|
|
37639
38034
|
return bssula.request({
|
|
37640
38035
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
37641
38036
|
});
|
|
37642
|
-
case
|
|
37643
|
-
data = _context.
|
|
38037
|
+
case 2:
|
|
38038
|
+
data = _context.sent;
|
|
37644
38039
|
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) {
|
|
37645
38040
|
return {
|
|
37646
38041
|
text: item.dictItemName,
|
|
37647
38042
|
value: item.dictItemCode
|
|
37648
38043
|
};
|
|
37649
38044
|
}));
|
|
37650
|
-
case
|
|
37651
|
-
|
|
38045
|
+
case 4:
|
|
38046
|
+
case "end":
|
|
38047
|
+
return _context.stop();
|
|
37652
38048
|
}
|
|
37653
38049
|
}, _callee);
|
|
37654
38050
|
}));
|
|
@@ -37889,11 +38285,11 @@ function RenderCompItem(props) {
|
|
|
37889
38285
|
needNameAndCode: true,
|
|
37890
38286
|
notChangeOnSelect: true,
|
|
37891
38287
|
initRequestSource: function () {
|
|
37892
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
37893
|
-
return
|
|
37894
|
-
while (1) switch (_context2.
|
|
38288
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
38289
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
38290
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
37895
38291
|
case 0:
|
|
37896
|
-
_context2.
|
|
38292
|
+
_context2.next = 2;
|
|
37897
38293
|
return bssula.request({
|
|
37898
38294
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
37899
38295
|
method: 'get',
|
|
@@ -37911,8 +38307,11 @@ function RenderCompItem(props) {
|
|
|
37911
38307
|
return handleData;
|
|
37912
38308
|
}
|
|
37913
38309
|
});
|
|
37914
|
-
case
|
|
37915
|
-
return _context2.
|
|
38310
|
+
case 2:
|
|
38311
|
+
return _context2.abrupt("return", _context2.sent);
|
|
38312
|
+
case 3:
|
|
38313
|
+
case "end":
|
|
38314
|
+
return _context2.stop();
|
|
37916
38315
|
}
|
|
37917
38316
|
}, _callee2);
|
|
37918
38317
|
}));
|
|
@@ -39968,13 +40367,13 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
39968
40367
|
ruleTypeData = _useState8[0],
|
|
39969
40368
|
setRuleTypeData = _useState8[1];
|
|
39970
40369
|
var _useState9 = React$1.useState([]),
|
|
39971
|
-
|
|
39972
|
-
ruleReturnConfig =
|
|
39973
|
-
setRuleReturnConfig =
|
|
39974
|
-
var
|
|
39975
|
-
|
|
39976
|
-
templateData =
|
|
39977
|
-
setTemplateData =
|
|
40370
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
40371
|
+
ruleReturnConfig = _useState10[0],
|
|
40372
|
+
setRuleReturnConfig = _useState10[1];
|
|
40373
|
+
var _useState11 = React$1.useState({}),
|
|
40374
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
40375
|
+
templateData = _useState12[0],
|
|
40376
|
+
setTemplateData = _useState12[1];
|
|
39978
40377
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
39979
40378
|
bssula.request({
|
|
39980
40379
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -40310,25 +40709,25 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
40310
40709
|
regularDataList = _useState8[0],
|
|
40311
40710
|
setRegularDataList = _useState8[1];
|
|
40312
40711
|
var _useState9 = React$1.useState([]),
|
|
40313
|
-
|
|
40314
|
-
baseRuleDetailList =
|
|
40315
|
-
setBaseRuleDetailList =
|
|
40316
|
-
var
|
|
40317
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
40318
|
-
systemVariableList = _useState10[0],
|
|
40319
|
-
setSystemVariableList = _useState10[1];
|
|
40320
|
-
var _useState11 = React$1.useState(false),
|
|
40712
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
40713
|
+
baseRuleDetailList = _useState10[0],
|
|
40714
|
+
setBaseRuleDetailList = _useState10[1]; // 规则实例详情集合
|
|
40715
|
+
var _useState11 = React$1.useState([]),
|
|
40321
40716
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
40322
|
-
|
|
40323
|
-
|
|
40717
|
+
systemVariableList = _useState12[0],
|
|
40718
|
+
setSystemVariableList = _useState12[1];
|
|
40324
40719
|
var _useState13 = React$1.useState(false),
|
|
40325
40720
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
40326
|
-
|
|
40327
|
-
|
|
40721
|
+
isGetDefRuleDataRes = _useState14[0],
|
|
40722
|
+
setIsGetDefRuleDataRes = _useState14[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
40328
40723
|
var _useState15 = React$1.useState(false),
|
|
40329
40724
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
40330
|
-
|
|
40331
|
-
|
|
40725
|
+
isGetRuleDataRes = _useState16[0],
|
|
40726
|
+
setIsGetRuleDataRes = _useState16[1];
|
|
40727
|
+
var _useState17 = React$1.useState(false),
|
|
40728
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
40729
|
+
groupOtherPriorityList = _useState18[0],
|
|
40730
|
+
setGroupOtherPriorityList = _useState18[1];
|
|
40332
40731
|
var baseRuleRef = React$1.useRef();
|
|
40333
40732
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
40334
40733
|
// 查询规则组下所有规则实例
|