@bit-sun/business-component 4.2.0-alpha.6.1 → 4.2.0-alpha.6.3
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 +1233 -773
- package/dist/index.js +1233 -773
- 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 -2
- package/src/components/Functional/AddSelect/index.tsx +92 -0
package/dist/index.js
CHANGED
|
@@ -211,8 +211,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
211
211
|
r,
|
|
212
212
|
i = _objectWithoutPropertiesLoose(e, t);
|
|
213
213
|
if (Object.getOwnPropertySymbols) {
|
|
214
|
-
var
|
|
215
|
-
for (r = 0; r <
|
|
214
|
+
var 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,115 +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
|
-
|
|
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
|
+
}
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
function maybeInvokeDelegate(e, r) {
|
|
376
|
+
var n = r.method,
|
|
377
|
+
o = e.iterator[n];
|
|
378
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
379
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
380
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
381
|
+
var a = i.arg;
|
|
382
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
383
|
+
}
|
|
384
|
+
function pushTryEntry(t) {
|
|
385
|
+
var e = {
|
|
386
|
+
tryLoc: t[0]
|
|
387
|
+
};
|
|
388
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
389
|
+
}
|
|
390
|
+
function resetTryEntry(t) {
|
|
391
|
+
var e = t.completion || {};
|
|
392
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
393
|
+
}
|
|
394
|
+
function Context(t) {
|
|
395
|
+
this.tryEntries = [{
|
|
396
|
+
tryLoc: "root"
|
|
397
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
398
|
+
}
|
|
399
|
+
function values(e) {
|
|
400
|
+
if (e || "" === e) {
|
|
401
|
+
var r = e[a];
|
|
402
|
+
if (r) return r.call(e);
|
|
403
|
+
if ("function" == typeof e.next) return e;
|
|
404
|
+
if (!isNaN(e.length)) {
|
|
405
|
+
var o = -1,
|
|
406
|
+
i = function next() {
|
|
407
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
408
|
+
return next.value = t, next.done = !0, next;
|
|
409
|
+
};
|
|
410
|
+
return i.next = i;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
414
|
+
}
|
|
415
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
416
|
+
value: GeneratorFunctionPrototype,
|
|
417
|
+
configurable: !0
|
|
418
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
419
|
+
value: GeneratorFunction,
|
|
420
|
+
configurable: !0
|
|
421
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
422
|
+
var e = "function" == typeof t && t.constructor;
|
|
423
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
424
|
+
}, e.mark = function (t) {
|
|
425
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
426
|
+
}, e.awrap = function (t) {
|
|
314
427
|
return {
|
|
315
|
-
|
|
316
|
-
m: f
|
|
428
|
+
__await: t
|
|
317
429
|
};
|
|
318
|
-
})()
|
|
319
|
-
|
|
320
|
-
function
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
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;
|
|
338
509
|
}
|
|
339
|
-
|
|
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;
|
|
340
531
|
}
|
|
341
|
-
},
|
|
532
|
+
}, e;
|
|
342
533
|
}
|
|
343
534
|
function _setPrototypeOf(t, e) {
|
|
344
535
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -1411,22 +1602,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1411
1602
|
// sheepMap是表头字段中英文映射
|
|
1412
1603
|
// sheetCount:表的数量,默认一张
|
|
1413
1604
|
var resolveFile = /*#__PURE__*/function () {
|
|
1414
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
1605
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1415
1606
|
var config,
|
|
1416
1607
|
data,
|
|
1417
1608
|
_args = arguments;
|
|
1418
|
-
return
|
|
1419
|
-
while (1) switch (_context.
|
|
1609
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1610
|
+
while (1) switch (_context.prev = _context.next) {
|
|
1420
1611
|
case 0:
|
|
1421
1612
|
config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
|
|
1422
1613
|
sheetMap: [],
|
|
1423
1614
|
sheetCount: 1
|
|
1424
1615
|
};
|
|
1425
|
-
_context.
|
|
1616
|
+
_context.next = 3;
|
|
1426
1617
|
return analyseExcelToByte(file);
|
|
1427
|
-
case
|
|
1428
|
-
data = _context.
|
|
1429
|
-
return _context.
|
|
1618
|
+
case 3:
|
|
1619
|
+
data = _context.sent;
|
|
1620
|
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
1430
1621
|
var workbook = XLSX.read(data, {
|
|
1431
1622
|
type: 'binary'
|
|
1432
1623
|
});
|
|
@@ -1438,6 +1629,9 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1438
1629
|
var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
|
|
1439
1630
|
resolve(outdata);
|
|
1440
1631
|
}));
|
|
1632
|
+
case 5:
|
|
1633
|
+
case "end":
|
|
1634
|
+
return _context.stop();
|
|
1441
1635
|
}
|
|
1442
1636
|
}, _callee);
|
|
1443
1637
|
}));
|
|
@@ -1447,40 +1641,41 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1447
1641
|
}();
|
|
1448
1642
|
//读取文件
|
|
1449
1643
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1450
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
1644
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1451
1645
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1452
|
-
return
|
|
1453
|
-
while (1) switch (_context2.
|
|
1646
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1647
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
1454
1648
|
case 0:
|
|
1455
1649
|
_ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
|
|
1456
1650
|
if (!(Array.isArray(fileList) && fileList.length > 0)) {
|
|
1457
|
-
_context2.
|
|
1651
|
+
_context2.next = 15;
|
|
1458
1652
|
break;
|
|
1459
1653
|
}
|
|
1460
1654
|
nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
|
|
1461
|
-
_context2.
|
|
1655
|
+
_context2.next = 5;
|
|
1462
1656
|
return resolveFile(nowFile.originFileObj, {
|
|
1463
1657
|
sheetMap: fieldMappingReverse(sheetMap),
|
|
1464
1658
|
sheetCount: 1
|
|
1465
1659
|
});
|
|
1466
|
-
case
|
|
1467
|
-
data2 = _context2.
|
|
1660
|
+
case 5:
|
|
1661
|
+
data2 = _context2.sent;
|
|
1468
1662
|
data = data2[0];
|
|
1469
1663
|
if (data.length) {
|
|
1470
|
-
_context2.
|
|
1664
|
+
_context2.next = 10;
|
|
1471
1665
|
break;
|
|
1472
1666
|
}
|
|
1473
1667
|
antd.message.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
|
|
1474
|
-
return _context2.
|
|
1475
|
-
case
|
|
1668
|
+
return _context2.abrupt("return");
|
|
1669
|
+
case 10:
|
|
1476
1670
|
if (callback) callback(data);
|
|
1477
1671
|
!callback && antd.message.success("\u5BFC\u5165\u6210\u529F");
|
|
1478
|
-
return _context2.
|
|
1479
|
-
case
|
|
1672
|
+
return _context2.abrupt("return", data);
|
|
1673
|
+
case 15:
|
|
1480
1674
|
antd.message.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
|
|
1481
|
-
return _context2.
|
|
1482
|
-
case
|
|
1483
|
-
|
|
1675
|
+
return _context2.abrupt("return");
|
|
1676
|
+
case 17:
|
|
1677
|
+
case "end":
|
|
1678
|
+
return _context2.stop();
|
|
1484
1679
|
}
|
|
1485
1680
|
}, _callee2);
|
|
1486
1681
|
}));
|
|
@@ -2432,14 +2627,17 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2432
2627
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2433
2628
|
};
|
|
2434
2629
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2435
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
2436
|
-
return
|
|
2437
|
-
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) {
|
|
2438
2633
|
case 0:
|
|
2439
|
-
return _context.
|
|
2634
|
+
return _context.abrupt("return", Promise.resolve({
|
|
2440
2635
|
data: response,
|
|
2441
2636
|
status: response.status
|
|
2442
2637
|
}));
|
|
2638
|
+
case 1:
|
|
2639
|
+
case "end":
|
|
2640
|
+
return _context.stop();
|
|
2443
2641
|
}
|
|
2444
2642
|
}, _callee);
|
|
2445
2643
|
}));
|
|
@@ -4582,27 +4780,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4582
4780
|
popvalue = _useState8[0],
|
|
4583
4781
|
setPopValue = _useState8[1];
|
|
4584
4782
|
var _useState9 = React$1.useState([]),
|
|
4585
|
-
|
|
4586
|
-
source =
|
|
4587
|
-
setSource =
|
|
4783
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
4784
|
+
source = _useState10[0],
|
|
4785
|
+
setSource = _useState10[1];
|
|
4588
4786
|
var _useDebounceFn = ahooks.useDebounceFn(function () {
|
|
4589
4787
|
getData();
|
|
4590
4788
|
}, {
|
|
4591
4789
|
wait: 1000
|
|
4592
4790
|
}),
|
|
4593
4791
|
run = _useDebounceFn.run;
|
|
4594
|
-
var
|
|
4595
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
4596
|
-
fetching = _useState10[0],
|
|
4597
|
-
setFetching = _useState10[1];
|
|
4598
|
-
var _useState11 = React$1.useState(''),
|
|
4792
|
+
var _useState11 = React$1.useState(false),
|
|
4599
4793
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
var _useState13 = React$1.useState(
|
|
4794
|
+
fetching = _useState12[0],
|
|
4795
|
+
setFetching = _useState12[1];
|
|
4796
|
+
var _useState13 = React$1.useState(''),
|
|
4603
4797
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4604
|
-
|
|
4605
|
-
|
|
4798
|
+
searchValue = _useState14[0],
|
|
4799
|
+
setSearchValue = _useState14[1];
|
|
4800
|
+
var _useState15 = React$1.useState(resultSourceKey),
|
|
4801
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
4802
|
+
uniqueValue = _useState16[0],
|
|
4803
|
+
setUniqueValue = _useState16[1];
|
|
4606
4804
|
React$1.useEffect(function () {
|
|
4607
4805
|
setPopValue(value);
|
|
4608
4806
|
onValueChange(value);
|
|
@@ -5019,21 +5217,21 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5019
5217
|
notCommonProperty = _useState8[0],
|
|
5020
5218
|
setNotCommonProperty = _useState8[1];
|
|
5021
5219
|
var _useState9 = React$1.useState(false),
|
|
5022
|
-
|
|
5023
|
-
visible =
|
|
5024
|
-
setVisible =
|
|
5025
|
-
var
|
|
5026
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
5027
|
-
showNotCommon = _useState10[0],
|
|
5028
|
-
setShowNotCommon = _useState10[1]; // 是否展示非常用属性
|
|
5029
|
-
var _useState11 = React$1.useState([]),
|
|
5220
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
5221
|
+
visible = _useState10[0],
|
|
5222
|
+
setVisible = _useState10[1];
|
|
5223
|
+
var _useState11 = React$1.useState(false),
|
|
5030
5224
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
var _useState13 = React$1.useState(
|
|
5225
|
+
showNotCommon = _useState12[0],
|
|
5226
|
+
setShowNotCommon = _useState12[1]; // 是否展示非常用属性
|
|
5227
|
+
var _useState13 = React$1.useState([]),
|
|
5034
5228
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5035
|
-
|
|
5036
|
-
|
|
5229
|
+
classifyOptionList = _useState14[0],
|
|
5230
|
+
setClassifyOptionList = _useState14[1];
|
|
5231
|
+
var _useState15 = React$1.useState('1'),
|
|
5232
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
5233
|
+
listKey = _useState16[0],
|
|
5234
|
+
setListKey = _useState16[1];
|
|
5037
5235
|
React$1.useEffect(function () {
|
|
5038
5236
|
requestUtil({
|
|
5039
5237
|
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
@@ -5412,29 +5610,29 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5412
5610
|
scrollPage = _useState8[0],
|
|
5413
5611
|
setScrollPage = _useState8[1];
|
|
5414
5612
|
var _useState9 = React$1.useState(0),
|
|
5415
|
-
|
|
5416
|
-
itemsTotal =
|
|
5417
|
-
setItemsTotal =
|
|
5418
|
-
var
|
|
5419
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
5420
|
-
fetching = _useState10[0],
|
|
5421
|
-
setFetching = _useState10[1];
|
|
5422
|
-
var _useState11 = React$1.useState(''),
|
|
5613
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
5614
|
+
itemsTotal = _useState10[0],
|
|
5615
|
+
setItemsTotal = _useState10[1];
|
|
5616
|
+
var _useState11 = React$1.useState(false),
|
|
5423
5617
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
var _useState13 = React$1.useState(
|
|
5618
|
+
fetching = _useState12[0],
|
|
5619
|
+
setFetching = _useState12[1];
|
|
5620
|
+
var _useState13 = React$1.useState(''),
|
|
5427
5621
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
var _useState15 = React$1.useState(
|
|
5622
|
+
searchValue = _useState14[0],
|
|
5623
|
+
setSearchValue = _useState14[1];
|
|
5624
|
+
var _useState15 = React$1.useState(false),
|
|
5431
5625
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
var _useState17 = React$1.useState(
|
|
5626
|
+
isModalVisible = _useState16[0],
|
|
5627
|
+
setIsModalVisible = _useState16[1];
|
|
5628
|
+
var _useState17 = React$1.useState(initVal),
|
|
5435
5629
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5436
|
-
|
|
5437
|
-
|
|
5630
|
+
popvalue = _useState18[0],
|
|
5631
|
+
setPopValue = _useState18[1];
|
|
5632
|
+
var _useState19 = React$1.useState(resultSourceKey),
|
|
5633
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5634
|
+
uniqueValue = _useState20[0],
|
|
5635
|
+
setUniqueValue = _useState20[1];
|
|
5438
5636
|
var _useDebounceFn = ahooks.useDebounceFn(function (v) {
|
|
5439
5637
|
// 优化搜索参数 支持传多个
|
|
5440
5638
|
var searchParams = {};
|
|
@@ -5463,58 +5661,58 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5463
5661
|
var _Form$useForm = antd.Form.useForm(),
|
|
5464
5662
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5465
5663
|
form = _Form$useForm2[0];
|
|
5466
|
-
var _useState19 = React$1.useState(true),
|
|
5467
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5468
|
-
collapsed = _useState20[0],
|
|
5469
|
-
setCollapsed = _useState20[1];
|
|
5470
5664
|
var _useState21 = React$1.useState(true),
|
|
5471
5665
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
var _useState23 = React$1.useState(
|
|
5666
|
+
collapsed = _useState22[0],
|
|
5667
|
+
setCollapsed = _useState22[1];
|
|
5668
|
+
var _useState23 = React$1.useState(true),
|
|
5475
5669
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
var _useState25 = React$1.useState(
|
|
5670
|
+
caretLeftFlag = _useState24[0],
|
|
5671
|
+
setCaretLeftFlag = _useState24[1];
|
|
5672
|
+
var _useState25 = React$1.useState([]),
|
|
5479
5673
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
var _useState27 = React$1.useState(
|
|
5674
|
+
tableData = _useState26[0],
|
|
5675
|
+
setTableData = _useState26[1];
|
|
5676
|
+
var _useState27 = React$1.useState(tableInitPagination),
|
|
5483
5677
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5484
|
-
|
|
5485
|
-
|
|
5678
|
+
tablePagination = _useState28[0],
|
|
5679
|
+
setTablePagination = _useState28[1];
|
|
5486
5680
|
var _useState29 = React$1.useState([]),
|
|
5487
5681
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
var _useState31 = React$1.useState(
|
|
5682
|
+
selectedRowKeys = _useState30[0],
|
|
5683
|
+
setSelectedRowKeys = _useState30[1];
|
|
5684
|
+
var _useState31 = React$1.useState([]),
|
|
5491
5685
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5492
|
-
|
|
5493
|
-
|
|
5686
|
+
selectedRows = _useState32[0],
|
|
5687
|
+
setSelectedRows = _useState32[1];
|
|
5494
5688
|
var _useState33 = React$1.useState(false),
|
|
5495
5689
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
var _useState35 = React$1.useState(
|
|
5690
|
+
checkedAll = _useState34[0],
|
|
5691
|
+
setCheckedAll = _useState34[1];
|
|
5692
|
+
var _useState35 = React$1.useState(false),
|
|
5499
5693
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
var _useState37 = React$1.useState(
|
|
5694
|
+
indeterminate = _useState36[0],
|
|
5695
|
+
setIndeterminate = _useState36[1];
|
|
5696
|
+
var _useState37 = React$1.useState({}),
|
|
5503
5697
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
var _useState39 = React$1.useState(
|
|
5698
|
+
tableFormParams = _useState38[0],
|
|
5699
|
+
setTableFormParams = _useState38[1];
|
|
5700
|
+
var _useState39 = React$1.useState(false),
|
|
5507
5701
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
var _useState41 = React$1.useState(
|
|
5702
|
+
tooltipVisible = _useState40[0],
|
|
5703
|
+
setTooltipVisible = _useState40[1];
|
|
5704
|
+
var _useState41 = React$1.useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5511
5705
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5512
|
-
|
|
5513
|
-
|
|
5706
|
+
tableShowColumns = _useState42[0],
|
|
5707
|
+
setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5514
5708
|
var _useState43 = React$1.useState(false),
|
|
5515
5709
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5516
|
-
|
|
5517
|
-
|
|
5710
|
+
confirmLoading = _useState44[0],
|
|
5711
|
+
setConfirmLoading = _useState44[1];
|
|
5712
|
+
var _useState45 = React$1.useState(false),
|
|
5713
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
|
5714
|
+
modalSearched = _useState46[0],
|
|
5715
|
+
setModalSearched = _useState46[1];
|
|
5518
5716
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5519
5717
|
setItems(list);
|
|
5520
5718
|
setItemsTotal(total);
|
|
@@ -5984,7 +6182,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5984
6182
|
})) || [];
|
|
5985
6183
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
5986
6184
|
return searchList.map(function (i, index) {
|
|
5987
|
-
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$
|
|
6185
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
|
|
5988
6186
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
5989
6187
|
span: ColSpan,
|
|
5990
6188
|
key: i
|
|
@@ -6082,7 +6280,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6082
6280
|
disabled: setDisabled(i.name)
|
|
6083
6281
|
}))));
|
|
6084
6282
|
}
|
|
6085
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6283
|
+
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') {
|
|
6086
6284
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6087
6285
|
span: ColSpan,
|
|
6088
6286
|
key: i.name
|
|
@@ -6096,7 +6294,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6096
6294
|
}
|
|
6097
6295
|
})));
|
|
6098
6296
|
}
|
|
6099
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6297
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
|
|
6100
6298
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6101
6299
|
span: ColSpan,
|
|
6102
6300
|
key: i.name
|
|
@@ -6106,8 +6304,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6106
6304
|
key: i.name
|
|
6107
6305
|
}, /*#__PURE__*/React__default['default'].createElement(PropertySelector, null)));
|
|
6108
6306
|
}
|
|
6109
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6110
|
-
var _i$
|
|
6307
|
+
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') {
|
|
6308
|
+
var _i$field13;
|
|
6111
6309
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6112
6310
|
span: ColSpan,
|
|
6113
6311
|
key: i.name
|
|
@@ -6120,9 +6318,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6120
6318
|
width: '100%'
|
|
6121
6319
|
},
|
|
6122
6320
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6123
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6321
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
|
|
6124
6322
|
}
|
|
6125
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6323
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
|
|
6126
6324
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6127
6325
|
span: ColSpan,
|
|
6128
6326
|
key: i.name
|
|
@@ -6151,7 +6349,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6151
6349
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6152
6350
|
allowClear: true,
|
|
6153
6351
|
maxLength: 100
|
|
6154
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6352
|
+
}, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
|
|
6155
6353
|
disabled: setDisabled(i.name)
|
|
6156
6354
|
}))));
|
|
6157
6355
|
});
|
|
@@ -7471,132 +7669,135 @@ var AddSelect = function AddSelect(props) {
|
|
|
7471
7669
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7472
7670
|
form = _Form$useForm2[0];
|
|
7473
7671
|
var _useState9 = React$1.useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7474
|
-
|
|
7475
|
-
tableSearchForm =
|
|
7476
|
-
setTableSearchForm =
|
|
7477
|
-
var
|
|
7478
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
7479
|
-
caretLeftFlag = _useState10[0],
|
|
7480
|
-
setCaretLeftFlag = _useState10[1];
|
|
7481
|
-
var _useState11 = React$1.useState([]),
|
|
7672
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
7673
|
+
tableSearchForm = _useState10[0],
|
|
7674
|
+
setTableSearchForm = _useState10[1];
|
|
7675
|
+
var _useState11 = React$1.useState(true),
|
|
7482
7676
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7483
|
-
|
|
7484
|
-
|
|
7485
|
-
var _useState13 = React$1.useState(
|
|
7677
|
+
caretLeftFlag = _useState12[0],
|
|
7678
|
+
setCaretLeftFlag = _useState12[1];
|
|
7679
|
+
var _useState13 = React$1.useState([]),
|
|
7680
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
7681
|
+
tableData = _useState14[0],
|
|
7682
|
+
setTableData = _useState14[1];
|
|
7683
|
+
var _useState15 = React$1.useState(_objectSpread2({
|
|
7486
7684
|
total: 0,
|
|
7487
7685
|
size: "small",
|
|
7488
7686
|
current: 1,
|
|
7489
7687
|
pageSize: tableInitPageSize
|
|
7490
7688
|
}, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
|
|
7491
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
7492
|
-
tablePagination = _useState14[0],
|
|
7493
|
-
setTablePagination = _useState14[1];
|
|
7494
|
-
var _useState15 = React$1.useState([]),
|
|
7495
7689
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7496
|
-
|
|
7497
|
-
|
|
7498
|
-
var _useState17 = React$1.useState(
|
|
7690
|
+
tablePagination = _useState16[0],
|
|
7691
|
+
setTablePagination = _useState16[1];
|
|
7692
|
+
var _useState17 = React$1.useState([]),
|
|
7499
7693
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
var _useState19 = React$1.useState(
|
|
7694
|
+
selectedRowKeys = _useState18[0],
|
|
7695
|
+
setSelectedRowKeys = _useState18[1];
|
|
7696
|
+
var _useState19 = React$1.useState({}),
|
|
7503
7697
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7504
|
-
|
|
7505
|
-
|
|
7698
|
+
tableFormParams = _useState20[0],
|
|
7699
|
+
setTableFormParams = _useState20[1];
|
|
7506
7700
|
var _useState21 = React$1.useState(false),
|
|
7507
7701
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7508
|
-
|
|
7509
|
-
|
|
7510
|
-
var _useState23 = React$1.useState(
|
|
7702
|
+
confirmLoading = _useState22[0],
|
|
7703
|
+
setConfirmLoading = _useState22[1];
|
|
7704
|
+
var _useState23 = React$1.useState(false),
|
|
7511
7705
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7512
|
-
|
|
7513
|
-
|
|
7706
|
+
confirmContinueLoading = _useState24[0],
|
|
7707
|
+
setConfirmContinueLoading = _useState24[1];
|
|
7514
7708
|
var _useState25 = React$1.useState([]),
|
|
7515
7709
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7516
|
-
|
|
7517
|
-
|
|
7710
|
+
selectColumns = _useState26[0],
|
|
7711
|
+
setSelectColumns = _useState26[1];
|
|
7518
7712
|
var _useState27 = React$1.useState([]),
|
|
7519
7713
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7520
|
-
|
|
7521
|
-
|
|
7714
|
+
showColumns = _useState28[0],
|
|
7715
|
+
setShowColumns = _useState28[1];
|
|
7522
7716
|
var _useState29 = React$1.useState([]),
|
|
7523
7717
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7524
|
-
|
|
7525
|
-
|
|
7718
|
+
tableColumns = _useState30[0],
|
|
7719
|
+
setTableColumns = _useState30[1];
|
|
7720
|
+
var _useState31 = React$1.useState([]),
|
|
7721
|
+
_useState32 = _slicedToArray(_useState31, 2),
|
|
7722
|
+
showToChooseColumns = _useState32[0],
|
|
7723
|
+
setShowToChooseColumns = _useState32[1];
|
|
7526
7724
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7527
7725
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7528
7726
|
// FIXME: 特殊业务逻辑
|
|
7529
7727
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7530
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7531
|
-
var result
|
|
7532
|
-
return
|
|
7533
|
-
while (1) switch (_context.
|
|
7728
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7729
|
+
var result;
|
|
7730
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7731
|
+
while (1) switch (_context.prev = _context.next) {
|
|
7534
7732
|
case 0:
|
|
7535
7733
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7536
7734
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7537
7735
|
}))) {
|
|
7538
|
-
_context.
|
|
7736
|
+
_context.next = 3;
|
|
7539
7737
|
break;
|
|
7540
7738
|
}
|
|
7541
7739
|
antd.message.warning('相同skc配码不可设置相同哦');
|
|
7542
|
-
return _context.
|
|
7543
|
-
case
|
|
7740
|
+
return _context.abrupt("return", false);
|
|
7741
|
+
case 3:
|
|
7544
7742
|
if (!(bType == 'spu')) {
|
|
7545
|
-
_context.
|
|
7743
|
+
_context.next = 26;
|
|
7546
7744
|
break;
|
|
7547
7745
|
}
|
|
7548
7746
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7549
7747
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7550
7748
|
}))) {
|
|
7551
|
-
_context.
|
|
7749
|
+
_context.next = 7;
|
|
7552
7750
|
break;
|
|
7553
7751
|
}
|
|
7554
7752
|
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7555
|
-
return _context.
|
|
7556
|
-
case
|
|
7753
|
+
return _context.abrupt("return", false);
|
|
7754
|
+
case 7:
|
|
7557
7755
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7558
|
-
_context.
|
|
7756
|
+
_context.next = 10;
|
|
7559
7757
|
break;
|
|
7560
7758
|
}
|
|
7561
7759
|
antd.message.warning('请先选择颜色!');
|
|
7562
|
-
return _context.
|
|
7563
|
-
case
|
|
7760
|
+
return _context.abrupt("return", false);
|
|
7761
|
+
case 10:
|
|
7564
7762
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7565
7763
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7566
7764
|
}))) {
|
|
7567
|
-
_context.
|
|
7765
|
+
_context.next = 13;
|
|
7568
7766
|
break;
|
|
7569
7767
|
}
|
|
7570
7768
|
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7571
|
-
return _context.
|
|
7572
|
-
case
|
|
7769
|
+
return _context.abrupt("return", false);
|
|
7770
|
+
case 13:
|
|
7573
7771
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7574
|
-
_context.
|
|
7772
|
+
_context.next = 26;
|
|
7575
7773
|
break;
|
|
7576
7774
|
}
|
|
7577
7775
|
result = true;
|
|
7578
|
-
_context.
|
|
7579
|
-
_context.
|
|
7776
|
+
_context.prev = 15;
|
|
7777
|
+
_context.next = 18;
|
|
7580
7778
|
return checkSpuMatchCode({
|
|
7581
7779
|
skcCode: recordItem[recordKey],
|
|
7582
7780
|
matchingCode: changeValue,
|
|
7583
7781
|
ext1: recordItem.colorName
|
|
7584
7782
|
});
|
|
7585
|
-
case
|
|
7586
|
-
result = _context.
|
|
7783
|
+
case 18:
|
|
7784
|
+
result = _context.sent;
|
|
7587
7785
|
result = true;
|
|
7588
|
-
_context.
|
|
7786
|
+
_context.next = 25;
|
|
7589
7787
|
break;
|
|
7590
|
-
case
|
|
7591
|
-
_context.
|
|
7592
|
-
|
|
7593
|
-
result = typeof
|
|
7594
|
-
case
|
|
7595
|
-
return _context.
|
|
7596
|
-
case
|
|
7597
|
-
return _context.
|
|
7598
|
-
|
|
7599
|
-
|
|
7788
|
+
case 22:
|
|
7789
|
+
_context.prev = 22;
|
|
7790
|
+
_context.t0 = _context["catch"](15);
|
|
7791
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
7792
|
+
case 25:
|
|
7793
|
+
return _context.abrupt("return", result);
|
|
7794
|
+
case 26:
|
|
7795
|
+
return _context.abrupt("return", true);
|
|
7796
|
+
case 27:
|
|
7797
|
+
case "end":
|
|
7798
|
+
return _context.stop();
|
|
7799
|
+
}
|
|
7800
|
+
}, _callee, null, [[15, 22]]);
|
|
7600
7801
|
}));
|
|
7601
7802
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7602
7803
|
return _ref2.apply(this, arguments);
|
|
@@ -7674,6 +7875,116 @@ var AddSelect = function AddSelect(props) {
|
|
|
7674
7875
|
acc[key] = typeof value === 'function' ? value === null || value === void 0 ? void 0 : value(record) : value;
|
|
7675
7876
|
return acc;
|
|
7676
7877
|
}, {});
|
|
7878
|
+
// 可输入非数字字符
|
|
7879
|
+
if (item.canInputString) {
|
|
7880
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2(_objectSpread2({
|
|
7881
|
+
min: 0,
|
|
7882
|
+
precision: 0,
|
|
7883
|
+
controls: false
|
|
7884
|
+
}, inputProps), {}, {
|
|
7885
|
+
value: text || '',
|
|
7886
|
+
keyboard: false,
|
|
7887
|
+
onPressEnter: function onPressEnter(e) {
|
|
7888
|
+
e.target.blur();
|
|
7889
|
+
},
|
|
7890
|
+
onBlur: function () {
|
|
7891
|
+
var _onBlur = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
|
|
7892
|
+
var value;
|
|
7893
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7894
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
7895
|
+
case 0:
|
|
7896
|
+
value = e.target.value;
|
|
7897
|
+
record[item.dataIndex] = value;
|
|
7898
|
+
editRecord(record);
|
|
7899
|
+
case 3:
|
|
7900
|
+
case "end":
|
|
7901
|
+
return _context2.stop();
|
|
7902
|
+
}
|
|
7903
|
+
}, _callee2);
|
|
7904
|
+
}));
|
|
7905
|
+
function onBlur(_x7) {
|
|
7906
|
+
return _onBlur.apply(this, arguments);
|
|
7907
|
+
}
|
|
7908
|
+
return onBlur;
|
|
7909
|
+
}(),
|
|
7910
|
+
onKeyDown: function onKeyDown(e) {
|
|
7911
|
+
if (e.keyCode === 13 && e.ctrlKey) {
|
|
7912
|
+
var _document$getElementB;
|
|
7913
|
+
handleOk(true);
|
|
7914
|
+
(_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
|
|
7915
|
+
}
|
|
7916
|
+
if (e.keyCode === 8 && e.ctrlKey) {
|
|
7917
|
+
var _e$nativeEvent$path$;
|
|
7918
|
+
antd.message.success('删除当前行');
|
|
7919
|
+
e.stopPropagation();
|
|
7920
|
+
e.preventDefault();
|
|
7921
|
+
var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path$.getElementsByTagName('input')[currentIndex];
|
|
7922
|
+
if (dom) {
|
|
7923
|
+
dom.select();
|
|
7924
|
+
dom.focus();
|
|
7925
|
+
dom.scrollIntoView(false);
|
|
7926
|
+
}
|
|
7927
|
+
dom = null;
|
|
7928
|
+
deleteRecord(record);
|
|
7929
|
+
}
|
|
7930
|
+
if (e.keyCode === 37 && e.shiftKey) {
|
|
7931
|
+
var _e$nativeEvent$path$2;
|
|
7932
|
+
// 左滑动
|
|
7933
|
+
e.stopPropagation();
|
|
7934
|
+
e.preventDefault();
|
|
7935
|
+
var _dom = (_e$nativeEvent$path$2 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$2 === void 0 ? void 0 : _e$nativeEvent$path$2.getElementsByTagName('input')[currentIndex - 1];
|
|
7936
|
+
if (_dom) {
|
|
7937
|
+
_dom.select();
|
|
7938
|
+
_dom.focus();
|
|
7939
|
+
_dom.scrollIntoView(false);
|
|
7940
|
+
}
|
|
7941
|
+
_dom = null;
|
|
7942
|
+
}
|
|
7943
|
+
if (e.keyCode === 39 && e.shiftKey) {
|
|
7944
|
+
var _e$nativeEvent$path$3;
|
|
7945
|
+
// 右滑
|
|
7946
|
+
e.stopPropagation();
|
|
7947
|
+
e.preventDefault();
|
|
7948
|
+
var _dom2 = (_e$nativeEvent$path$3 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$3 === void 0 ? void 0 : _e$nativeEvent$path$3.getElementsByTagName('input')[currentIndex + 1];
|
|
7949
|
+
if (_dom2) {
|
|
7950
|
+
_dom2.select();
|
|
7951
|
+
_dom2.focus();
|
|
7952
|
+
_dom2.scrollIntoView(false);
|
|
7953
|
+
}
|
|
7954
|
+
_dom2 = null;
|
|
7955
|
+
}
|
|
7956
|
+
if (e.keyCode === 40) {
|
|
7957
|
+
var _e$nativeEvent$path$4;
|
|
7958
|
+
e.stopPropagation();
|
|
7959
|
+
e.preventDefault();
|
|
7960
|
+
var _dom3 = (_e$nativeEvent$path$4 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$4 === void 0 ? void 0 : _e$nativeEvent$path$4.getElementsByTagName('input')[currentIndex];
|
|
7961
|
+
if (_dom3) {
|
|
7962
|
+
_dom3.select();
|
|
7963
|
+
_dom3.focus();
|
|
7964
|
+
_dom3.scrollIntoView(false);
|
|
7965
|
+
}
|
|
7966
|
+
_dom3 = null;
|
|
7967
|
+
} else if (e.keyCode === 38) {
|
|
7968
|
+
var _e$nativeEvent$path$5;
|
|
7969
|
+
e.stopPropagation();
|
|
7970
|
+
e.preventDefault();
|
|
7971
|
+
var dom1 = (_e$nativeEvent$path$5 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$5 === void 0 ? void 0 : _e$nativeEvent$path$5.getElementsByTagName('input')[currentIndex];
|
|
7972
|
+
if (dom1) {
|
|
7973
|
+
// dom1.value=""
|
|
7974
|
+
// dom1.setSelectionRange(100, 0);
|
|
7975
|
+
dom1.select();
|
|
7976
|
+
dom1.focus();
|
|
7977
|
+
dom1.scrollIntoViewIfNeeded(false);
|
|
7978
|
+
// dom1.value=record['count']
|
|
7979
|
+
}
|
|
7980
|
+
dom1 = null;
|
|
7981
|
+
} else if (e.keyCode === 9 && index === selectedRowKeys.length - 1 && currentIndex === inputLength - 1) {
|
|
7982
|
+
e.stopPropagation();
|
|
7983
|
+
e.preventDefault();
|
|
7984
|
+
}
|
|
7985
|
+
}
|
|
7986
|
+
}));
|
|
7987
|
+
}
|
|
7677
7988
|
return /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2(_objectSpread2(_objectSpread2({}, inputProps), {}, {
|
|
7678
7989
|
value: text || '',
|
|
7679
7990
|
min: 0,
|
|
@@ -7691,16 +8002,16 @@ var AddSelect = function AddSelect(props) {
|
|
|
7691
8002
|
// }}
|
|
7692
8003
|
onKeyDown: function onKeyDown(e) {
|
|
7693
8004
|
if (e.keyCode === 13 && e.ctrlKey) {
|
|
7694
|
-
var _document$
|
|
8005
|
+
var _document$getElementB2;
|
|
7695
8006
|
handleOk(true);
|
|
7696
|
-
(_document$
|
|
8007
|
+
(_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
|
|
7697
8008
|
}
|
|
7698
8009
|
if (e.keyCode === 8 && e.ctrlKey) {
|
|
7699
|
-
var _e$nativeEvent$path
|
|
8010
|
+
var _e$nativeEvent$path$6;
|
|
7700
8011
|
antd.message.success('删除当前行');
|
|
7701
8012
|
e.stopPropagation();
|
|
7702
8013
|
e.preventDefault();
|
|
7703
|
-
var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path
|
|
8014
|
+
var dom = (_e$nativeEvent$path$6 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$6 === void 0 ? void 0 : _e$nativeEvent$path$6.getElementsByTagName('input')[currentIndex];
|
|
7704
8015
|
if (dom) {
|
|
7705
8016
|
dom.select();
|
|
7706
8017
|
dom.focus();
|
|
@@ -7710,47 +8021,47 @@ var AddSelect = function AddSelect(props) {
|
|
|
7710
8021
|
deleteRecord(record);
|
|
7711
8022
|
}
|
|
7712
8023
|
if (e.keyCode === 37 && e.shiftKey) {
|
|
7713
|
-
var _e$nativeEvent$path$
|
|
8024
|
+
var _e$nativeEvent$path$7;
|
|
7714
8025
|
// 左滑动
|
|
7715
8026
|
e.stopPropagation();
|
|
7716
8027
|
e.preventDefault();
|
|
7717
|
-
var
|
|
7718
|
-
if (
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
8028
|
+
var _dom4 = (_e$nativeEvent$path$7 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$7 === void 0 ? void 0 : _e$nativeEvent$path$7.getElementsByTagName('input')[currentIndex - 1];
|
|
8029
|
+
if (_dom4) {
|
|
8030
|
+
_dom4.select();
|
|
8031
|
+
_dom4.focus();
|
|
8032
|
+
_dom4.scrollIntoView(false);
|
|
7722
8033
|
}
|
|
7723
|
-
|
|
8034
|
+
_dom4 = null;
|
|
7724
8035
|
}
|
|
7725
8036
|
if (e.keyCode === 39 && e.shiftKey) {
|
|
7726
|
-
var _e$nativeEvent$path$
|
|
8037
|
+
var _e$nativeEvent$path$8;
|
|
7727
8038
|
// 右滑
|
|
7728
8039
|
e.stopPropagation();
|
|
7729
8040
|
e.preventDefault();
|
|
7730
|
-
var
|
|
7731
|
-
if (
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
8041
|
+
var _dom5 = (_e$nativeEvent$path$8 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$8 === void 0 ? void 0 : _e$nativeEvent$path$8.getElementsByTagName('input')[currentIndex + 1];
|
|
8042
|
+
if (_dom5) {
|
|
8043
|
+
_dom5.select();
|
|
8044
|
+
_dom5.focus();
|
|
8045
|
+
_dom5.scrollIntoView(false);
|
|
7735
8046
|
}
|
|
7736
|
-
|
|
8047
|
+
_dom5 = null;
|
|
7737
8048
|
}
|
|
7738
8049
|
if (e.keyCode === 40) {
|
|
7739
|
-
var _e$nativeEvent$path$
|
|
8050
|
+
var _e$nativeEvent$path$9;
|
|
7740
8051
|
e.stopPropagation();
|
|
7741
8052
|
e.preventDefault();
|
|
7742
|
-
var
|
|
7743
|
-
if (
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
8053
|
+
var _dom6 = (_e$nativeEvent$path$9 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$9 === void 0 ? void 0 : _e$nativeEvent$path$9.getElementsByTagName('input')[currentIndex];
|
|
8054
|
+
if (_dom6) {
|
|
8055
|
+
_dom6.select();
|
|
8056
|
+
_dom6.focus();
|
|
8057
|
+
_dom6.scrollIntoView(false);
|
|
7747
8058
|
}
|
|
7748
|
-
|
|
8059
|
+
_dom6 = null;
|
|
7749
8060
|
} else if (e.keyCode === 38) {
|
|
7750
|
-
var _e$nativeEvent$path$
|
|
8061
|
+
var _e$nativeEvent$path$10;
|
|
7751
8062
|
e.stopPropagation();
|
|
7752
8063
|
e.preventDefault();
|
|
7753
|
-
var dom1 = (_e$nativeEvent$path$
|
|
8064
|
+
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];
|
|
7754
8065
|
if (dom1) {
|
|
7755
8066
|
// dom1.value=""
|
|
7756
8067
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -7784,19 +8095,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
7784
8095
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7785
8096
|
value: text || null,
|
|
7786
8097
|
onChange: function () {
|
|
7787
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
7788
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules
|
|
7789
|
-
return
|
|
7790
|
-
while (1) switch (
|
|
8098
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(value) {
|
|
8099
|
+
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
8100
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
8101
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
7791
8102
|
case 0:
|
|
7792
8103
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
7793
8104
|
return d[selectKey] == value;
|
|
7794
8105
|
})) || {};
|
|
7795
8106
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
7796
|
-
|
|
8107
|
+
_context3.next = 6;
|
|
7797
8108
|
break;
|
|
7798
8109
|
}
|
|
7799
|
-
|
|
8110
|
+
_context3.next = 4;
|
|
7800
8111
|
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, {
|
|
7801
8112
|
record: record,
|
|
7802
8113
|
index: index,
|
|
@@ -7806,10 +8117,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7806
8117
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
7807
8118
|
editRecord: editRecord
|
|
7808
8119
|
});
|
|
7809
|
-
case
|
|
7810
|
-
|
|
8120
|
+
case 4:
|
|
8121
|
+
_context3.next = 25;
|
|
7811
8122
|
break;
|
|
7812
|
-
case
|
|
8123
|
+
case 6:
|
|
7813
8124
|
// 更新当前行数据函数
|
|
7814
8125
|
changeValue = function changeValue(v, dSSItem) {
|
|
7815
8126
|
var _item$dataSourceSelec;
|
|
@@ -7822,12 +8133,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
7822
8133
|
}
|
|
7823
8134
|
}; // 处理校验,默认不校验
|
|
7824
8135
|
isCheckPass = true;
|
|
7825
|
-
|
|
8136
|
+
_context3.prev = 8;
|
|
7826
8137
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
7827
|
-
|
|
8138
|
+
_context3.next = 15;
|
|
7828
8139
|
break;
|
|
7829
8140
|
}
|
|
7830
|
-
|
|
8141
|
+
_context3.next = 12;
|
|
7831
8142
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
7832
8143
|
record: record,
|
|
7833
8144
|
index: index,
|
|
@@ -7836,23 +8147,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
7836
8147
|
changeValue: value,
|
|
7837
8148
|
dataSourceSelectItem: dataSourceSelectItem
|
|
7838
8149
|
});
|
|
7839
|
-
case
|
|
7840
|
-
isCheckPass =
|
|
7841
|
-
|
|
8150
|
+
case 12:
|
|
8151
|
+
isCheckPass = _context3.sent;
|
|
8152
|
+
_context3.next = 19;
|
|
7842
8153
|
break;
|
|
7843
|
-
case
|
|
7844
|
-
|
|
8154
|
+
case 15:
|
|
8155
|
+
_context3.next = 17;
|
|
7845
8156
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
7846
|
-
case
|
|
7847
|
-
isConformToTheRules =
|
|
8157
|
+
case 17:
|
|
8158
|
+
isConformToTheRules = _context3.sent;
|
|
7848
8159
|
isCheckPass = !isConformToTheRules;
|
|
7849
|
-
case
|
|
7850
|
-
|
|
8160
|
+
case 19:
|
|
8161
|
+
_context3.next = 23;
|
|
7851
8162
|
break;
|
|
7852
|
-
case
|
|
7853
|
-
|
|
7854
|
-
|
|
7855
|
-
case
|
|
8163
|
+
case 21:
|
|
8164
|
+
_context3.prev = 21;
|
|
8165
|
+
_context3.t0 = _context3["catch"](8);
|
|
8166
|
+
case 23:
|
|
7856
8167
|
if (isCheckPass) {
|
|
7857
8168
|
changeValue(value, dataSourceSelectItem);
|
|
7858
8169
|
} else {
|
|
@@ -7860,12 +8171,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7860
8171
|
}
|
|
7861
8172
|
// 更新已选表格函数
|
|
7862
8173
|
editRecord(record);
|
|
7863
|
-
case
|
|
7864
|
-
|
|
8174
|
+
case 25:
|
|
8175
|
+
case "end":
|
|
8176
|
+
return _context3.stop();
|
|
7865
8177
|
}
|
|
7866
|
-
},
|
|
8178
|
+
}, _callee3, null, [[8, 21]]);
|
|
7867
8179
|
}));
|
|
7868
|
-
function onChange(
|
|
8180
|
+
function onChange(_x8) {
|
|
7869
8181
|
return _onChange.apply(this, arguments);
|
|
7870
8182
|
}
|
|
7871
8183
|
return onChange;
|
|
@@ -8125,8 +8437,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
8125
8437
|
}
|
|
8126
8438
|
}
|
|
8127
8439
|
setTimeout(function () {
|
|
8128
|
-
var _document$
|
|
8129
|
-
(_document$
|
|
8440
|
+
var _document$getElementB3;
|
|
8441
|
+
(_document$getElementB3 = document.getElementById("first-query")) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
|
|
8130
8442
|
}, 50);
|
|
8131
8443
|
};
|
|
8132
8444
|
// 将格式化完的数据回显到 表格中
|
|
@@ -8156,7 +8468,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8156
8468
|
handleLoading(isContinue, true);
|
|
8157
8469
|
onSaveCallback(popvalue).then(function (res) {
|
|
8158
8470
|
{
|
|
8159
|
-
var _Object$keys2, _document$
|
|
8471
|
+
var _Object$keys2, _document$getElementB4;
|
|
8160
8472
|
// 成功信息可以在调用处处理 即resolve({messageSuccessBackInfo: { needThrowSuccess: false } })、resolve({messageSuccessBackInfo: { needThrowSuccess: true, successMessage: '已保存' } })
|
|
8161
8473
|
var initSuccessMessage = '保存成功';
|
|
8162
8474
|
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
@@ -8166,7 +8478,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8166
8478
|
antd.message.success(initSuccessMessage);
|
|
8167
8479
|
}
|
|
8168
8480
|
deleteSelectRows();
|
|
8169
|
-
(_document$
|
|
8481
|
+
(_document$getElementB4 = document.getElementById('first-query')) === null || _document$getElementB4 === void 0 ? void 0 : _document$getElementB4.focus();
|
|
8170
8482
|
!isContinue && handleCancel();
|
|
8171
8483
|
}
|
|
8172
8484
|
handleLoading(isContinue, false);
|
|
@@ -9254,29 +9566,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9254
9566
|
dataIndex: 'propertyNameAndValue'
|
|
9255
9567
|
}];
|
|
9256
9568
|
var _useState9 = React$1.useState(false),
|
|
9257
|
-
|
|
9258
|
-
isModalVisible =
|
|
9259
|
-
setIsModalVisible =
|
|
9260
|
-
var
|
|
9569
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
9570
|
+
isModalVisible = _useState10[0],
|
|
9571
|
+
setIsModalVisible = _useState10[1];
|
|
9572
|
+
var _useState11 = React$1.useState([{
|
|
9261
9573
|
hovered: false
|
|
9262
9574
|
}]),
|
|
9263
|
-
|
|
9264
|
-
data =
|
|
9265
|
-
setData =
|
|
9575
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9576
|
+
data = _useState12[0],
|
|
9577
|
+
setData = _useState12[1];
|
|
9266
9578
|
var tableRef = React$1.useRef(null);
|
|
9267
9579
|
var codeSelected = tableCode;
|
|
9268
|
-
var
|
|
9269
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
9270
|
-
loading = _useState12[0],
|
|
9271
|
-
setLoading = _useState12[1];
|
|
9272
|
-
var _useState13 = React$1.useState([]),
|
|
9580
|
+
var _useState13 = React$1.useState(false),
|
|
9273
9581
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9274
|
-
|
|
9275
|
-
|
|
9582
|
+
loading = _useState14[0],
|
|
9583
|
+
setLoading = _useState14[1];
|
|
9276
9584
|
var _useState15 = React$1.useState([]),
|
|
9277
9585
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9278
|
-
|
|
9279
|
-
|
|
9586
|
+
selectColumns = _useState16[0],
|
|
9587
|
+
setSelectColumns = _useState16[1];
|
|
9588
|
+
var _useState17 = React$1.useState([]),
|
|
9589
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
9590
|
+
showColumns = _useState18[0],
|
|
9591
|
+
setShowColumns = _useState18[1];
|
|
9280
9592
|
React$1.useEffect(function () {
|
|
9281
9593
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9282
9594
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9392,42 +9704,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9392
9704
|
});
|
|
9393
9705
|
};
|
|
9394
9706
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9395
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9707
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9396
9708
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9397
|
-
return
|
|
9398
|
-
while (1) switch (_context.
|
|
9709
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9710
|
+
while (1) switch (_context.prev = _context.next) {
|
|
9399
9711
|
case 0:
|
|
9400
9712
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9401
|
-
_context.
|
|
9713
|
+
_context.next = 3;
|
|
9402
9714
|
break;
|
|
9403
9715
|
}
|
|
9404
9716
|
antd.message.warning('至少录入一条数据');
|
|
9405
|
-
return _context.
|
|
9406
|
-
case
|
|
9717
|
+
return _context.abrupt("return");
|
|
9718
|
+
case 3:
|
|
9407
9719
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9408
9720
|
return d.skuCode && d.name;
|
|
9409
9721
|
})) {
|
|
9410
|
-
_context.
|
|
9722
|
+
_context.next = 6;
|
|
9411
9723
|
break;
|
|
9412
9724
|
}
|
|
9413
9725
|
antd.message.warning('录入商品不存在');
|
|
9414
|
-
return _context.
|
|
9415
|
-
case
|
|
9726
|
+
return _context.abrupt("return");
|
|
9727
|
+
case 6:
|
|
9416
9728
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9417
9729
|
return d.count;
|
|
9418
9730
|
})) {
|
|
9419
|
-
_context.
|
|
9731
|
+
_context.next = 9;
|
|
9420
9732
|
break;
|
|
9421
9733
|
}
|
|
9422
9734
|
antd.message.warning('请填写商品数量!');
|
|
9423
|
-
return _context.
|
|
9424
|
-
case
|
|
9425
|
-
_context.
|
|
9735
|
+
return _context.abrupt("return");
|
|
9736
|
+
case 9:
|
|
9737
|
+
_context.next = 11;
|
|
9426
9738
|
return isSkuCanEntry(data);
|
|
9427
|
-
case
|
|
9428
|
-
canEntryObject = _context.
|
|
9739
|
+
case 11:
|
|
9740
|
+
canEntryObject = _context.sent;
|
|
9429
9741
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9430
|
-
_context.
|
|
9742
|
+
_context.next = 16;
|
|
9431
9743
|
break;
|
|
9432
9744
|
}
|
|
9433
9745
|
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) {
|
|
@@ -9437,8 +9749,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9437
9749
|
content: messageInfo,
|
|
9438
9750
|
duration: 6
|
|
9439
9751
|
});
|
|
9440
|
-
return _context.
|
|
9441
|
-
case
|
|
9752
|
+
return _context.abrupt("return");
|
|
9753
|
+
case 16:
|
|
9442
9754
|
setLoading(true);
|
|
9443
9755
|
onSaveCallback(data).then(function (res) {
|
|
9444
9756
|
{
|
|
@@ -9456,8 +9768,9 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9456
9768
|
antd.message.error(Error);
|
|
9457
9769
|
setLoading(false);
|
|
9458
9770
|
});
|
|
9459
|
-
case
|
|
9460
|
-
|
|
9771
|
+
case 18:
|
|
9772
|
+
case "end":
|
|
9773
|
+
return _context.stop();
|
|
9461
9774
|
}
|
|
9462
9775
|
}, _callee);
|
|
9463
9776
|
}));
|
|
@@ -11033,6 +11346,26 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11033
11346
|
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
11034
11347
|
sourceName: 'warehouseIds'
|
|
11035
11348
|
}, requestConfigProp);
|
|
11349
|
+
var _queryHeaderParams7 = getQueryHeadersList({
|
|
11350
|
+
querySelectHeadersList: querySelectHeadersList,
|
|
11351
|
+
extralHeaders: extralHeaders
|
|
11352
|
+
});
|
|
11353
|
+
Promise.all([loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11354
|
+
'qp-status-eq': 10,
|
|
11355
|
+
'qp-isMain-eq': 1,
|
|
11356
|
+
'qp-type-in': '1,2'
|
|
11357
|
+
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11358
|
+
'qp-status-eq': 1
|
|
11359
|
+
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in'))]).then(function (x) {
|
|
11360
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11361
|
+
return data['parentCode'] === '0';
|
|
11362
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11363
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
11364
|
+
return data['parent'] === '0';
|
|
11365
|
+
}; // 所属营销区域 树节点不能点判断
|
|
11366
|
+
formatTreeDataSource(x, 0, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11367
|
+
formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
11368
|
+
});
|
|
11036
11369
|
tableSearchForm = [{
|
|
11037
11370
|
name: 'realWarehouseName*multiInput',
|
|
11038
11371
|
label: '逻辑仓名称',
|
|
@@ -11056,6 +11389,70 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11056
11389
|
},
|
|
11057
11390
|
label: '管理大区',
|
|
11058
11391
|
initialSource: getDictionarySource$1('BUSINESS_belongArea')
|
|
11392
|
+
}, {
|
|
11393
|
+
name: 'qp-channelCode-in',
|
|
11394
|
+
type: 'treeSelect',
|
|
11395
|
+
label: '销售渠道',
|
|
11396
|
+
field: {
|
|
11397
|
+
type: 'treeSelect',
|
|
11398
|
+
props: {
|
|
11399
|
+
multiple: true,
|
|
11400
|
+
treeData: [],
|
|
11401
|
+
treeCheckable: false,
|
|
11402
|
+
notFoundContent: '暂无数据',
|
|
11403
|
+
allowClear: true,
|
|
11404
|
+
showSearch: true,
|
|
11405
|
+
showArrow: true,
|
|
11406
|
+
maxTagCount: 1,
|
|
11407
|
+
optionFilterProp: 'children',
|
|
11408
|
+
filterOption: function filterOption(input, option) {
|
|
11409
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11410
|
+
},
|
|
11411
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11412
|
+
}
|
|
11413
|
+
}
|
|
11414
|
+
}, {
|
|
11415
|
+
name: 'qp-refCode-in',
|
|
11416
|
+
type: 'treeSelect',
|
|
11417
|
+
label: '营销区域',
|
|
11418
|
+
field: {
|
|
11419
|
+
type: 'treeSelect',
|
|
11420
|
+
props: {
|
|
11421
|
+
multiple: true,
|
|
11422
|
+
treeData: [],
|
|
11423
|
+
treeCheckable: false,
|
|
11424
|
+
notFoundContent: '暂无数据',
|
|
11425
|
+
allowClear: true,
|
|
11426
|
+
showSearch: true,
|
|
11427
|
+
showArrow: true,
|
|
11428
|
+
maxTagCount: 1,
|
|
11429
|
+
optionFilterProp: 'children',
|
|
11430
|
+
filterOption: function filterOption(input, option) {
|
|
11431
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11432
|
+
},
|
|
11433
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11434
|
+
}
|
|
11435
|
+
}
|
|
11436
|
+
}, {
|
|
11437
|
+
name: 'qp-type-in',
|
|
11438
|
+
type: 'select',
|
|
11439
|
+
label: '店铺性质',
|
|
11440
|
+
field: {
|
|
11441
|
+
type: 'select',
|
|
11442
|
+
props: {
|
|
11443
|
+
mode: 'multiple',
|
|
11444
|
+
notFoundContent: '暂无数据',
|
|
11445
|
+
allowClear: true,
|
|
11446
|
+
showSearch: true,
|
|
11447
|
+
showArrow: true,
|
|
11448
|
+
maxTagCount: 1,
|
|
11449
|
+
optionFilterProp: 'children',
|
|
11450
|
+
filterOption: function filterOption(input, option) {
|
|
11451
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11452
|
+
}
|
|
11453
|
+
}
|
|
11454
|
+
},
|
|
11455
|
+
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
11059
11456
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11060
11457
|
name: 'qp-isEnable-eq',
|
|
11061
11458
|
type: 'select',
|
|
@@ -11084,10 +11481,28 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11084
11481
|
render: function render(text) {
|
|
11085
11482
|
return getDictionaryTextByValue$1('SC00004', text);
|
|
11086
11483
|
}
|
|
11484
|
+
}, {
|
|
11485
|
+
title: '所属销售渠道',
|
|
11486
|
+
dataIndex: 'channelName',
|
|
11487
|
+
defaultSort: 4,
|
|
11488
|
+
width: 100
|
|
11489
|
+
}, {
|
|
11490
|
+
title: '营销区域',
|
|
11491
|
+
dataIndex: 'commonRelationAreaName',
|
|
11492
|
+
defaultSort: 5,
|
|
11493
|
+
width: 100
|
|
11494
|
+
}, {
|
|
11495
|
+
title: '店铺性质',
|
|
11496
|
+
dataIndex: 'type',
|
|
11497
|
+
defaultSort: 6,
|
|
11498
|
+
render: function render(text) {
|
|
11499
|
+
return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
|
|
11500
|
+
},
|
|
11501
|
+
width: 80
|
|
11087
11502
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11088
11503
|
title: '状态',
|
|
11089
11504
|
dataIndex: 'isEnable',
|
|
11090
|
-
defaultSort:
|
|
11505
|
+
defaultSort: 7,
|
|
11091
11506
|
render: function render(text) {
|
|
11092
11507
|
return getDictionaryTextByValue$1('SC00001', text);
|
|
11093
11508
|
}
|
|
@@ -11153,13 +11568,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11153
11568
|
label: '运营仓状态',
|
|
11154
11569
|
initialSource: getDictionarySource$1('SC00001')
|
|
11155
11570
|
}] : []));
|
|
11156
|
-
var
|
|
11571
|
+
var _queryHeaderParams8 = getQueryHeadersList({
|
|
11157
11572
|
querySelectHeadersList: querySelectHeadersList,
|
|
11158
11573
|
extralHeaders: extralHeaders
|
|
11159
11574
|
});
|
|
11160
11575
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
|
|
11161
11576
|
'qp-status-eq': 1
|
|
11162
|
-
}, getQueryHeadersItem(
|
|
11577
|
+
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-groupCode-in'))]).then(function (x) {
|
|
11163
11578
|
formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
|
|
11164
11579
|
});
|
|
11165
11580
|
modalTableProps = _objectSpread2({
|
|
@@ -11337,7 +11752,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11337
11752
|
label: '共享类型',
|
|
11338
11753
|
initialSource: sharingTypeDataList
|
|
11339
11754
|
}];
|
|
11340
|
-
var
|
|
11755
|
+
var _queryHeaderParams9 = getQueryHeadersList({
|
|
11341
11756
|
querySelectHeadersList: querySelectHeadersList,
|
|
11342
11757
|
extralHeaders: extralHeaders
|
|
11343
11758
|
});
|
|
@@ -11345,14 +11760,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11345
11760
|
pageSize: 5000,
|
|
11346
11761
|
currentPage: 1,
|
|
11347
11762
|
'qp-companyType-eq': '30'
|
|
11348
|
-
}, getQueryHeadersItem(
|
|
11763
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
11349
11764
|
pageSize: 5000,
|
|
11350
11765
|
currentPage: 1
|
|
11351
|
-
}, getQueryHeadersItem(
|
|
11766
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-accountingCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
11352
11767
|
pageSize: 5000,
|
|
11353
11768
|
currentPage: 1,
|
|
11354
11769
|
'qp-companyType-eq': '20'
|
|
11355
|
-
}, getQueryHeadersItem(
|
|
11770
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-sharingType-in'))]).then(function (x) {
|
|
11356
11771
|
formatSource(x, 0, 2, tableSearchForm);
|
|
11357
11772
|
formatSource(x, 1, 3, tableSearchForm);
|
|
11358
11773
|
formatSource(x, 2, 4, tableSearchForm);
|
|
@@ -11465,11 +11880,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11465
11880
|
}
|
|
11466
11881
|
}
|
|
11467
11882
|
}];
|
|
11468
|
-
var
|
|
11883
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
11469
11884
|
querySelectHeadersList: querySelectHeadersList,
|
|
11470
11885
|
extralHeaders: extralHeaders
|
|
11471
11886
|
});
|
|
11472
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(
|
|
11887
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq'))]).then(function (x) {
|
|
11473
11888
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
11474
11889
|
var allList = firstElement && [firstElement, firstElement];
|
|
11475
11890
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
@@ -11631,7 +12046,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11631
12046
|
}
|
|
11632
12047
|
}
|
|
11633
12048
|
}];
|
|
11634
|
-
var
|
|
12049
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
11635
12050
|
querySelectHeadersList: querySelectHeadersList,
|
|
11636
12051
|
extralHeaders: extralHeaders
|
|
11637
12052
|
});
|
|
@@ -11639,21 +12054,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11639
12054
|
pageSize: 5000,
|
|
11640
12055
|
currentPage: 1,
|
|
11641
12056
|
'qp-companyType-eq': '30'
|
|
11642
|
-
}, getQueryHeadersItem(
|
|
12057
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
11643
12058
|
pageSize: 5000,
|
|
11644
12059
|
currentPage: 1,
|
|
11645
12060
|
'qp-companyType-eq': '20'
|
|
11646
|
-
}, getQueryHeadersItem(
|
|
12061
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
11647
12062
|
// pageSize: 5000,
|
|
11648
12063
|
// currentPage: 1,
|
|
11649
12064
|
'qp-status-eq': '1'
|
|
11650
|
-
}, getQueryHeadersItem(
|
|
12065
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
11651
12066
|
pageSize: 5000,
|
|
11652
12067
|
currentPage: 1
|
|
11653
|
-
}, getQueryHeadersItem(
|
|
12068
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
11654
12069
|
pageSize: 5000,
|
|
11655
12070
|
currentPage: 1
|
|
11656
|
-
}, getQueryHeadersItem(
|
|
12071
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-accountingCode-in'))]).then(function (x) {
|
|
11657
12072
|
formatSource(x, 0, 2, tableSearchForm);
|
|
11658
12073
|
formatSource(x, 1, 3, tableSearchForm);
|
|
11659
12074
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -11823,7 +12238,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11823
12238
|
},
|
|
11824
12239
|
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
11825
12240
|
}];
|
|
11826
|
-
var
|
|
12241
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
11827
12242
|
querySelectHeadersList: querySelectHeadersList,
|
|
11828
12243
|
extralHeaders: extralHeaders
|
|
11829
12244
|
});
|
|
@@ -11831,13 +12246,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11831
12246
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
11832
12247
|
'qp-realOrg-eq': true,
|
|
11833
12248
|
'qp-status-eq': 10
|
|
11834
|
-
}, getQueryHeadersItem(
|
|
12249
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
11835
12250
|
'qp-status-eq': 10,
|
|
11836
12251
|
'qp-isMain-eq': 1,
|
|
11837
12252
|
'qp-type-in': '1,2'
|
|
11838
|
-
}, getQueryHeadersItem(
|
|
12253
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
11839
12254
|
'qp-status-eq': 1
|
|
11840
|
-
}, getQueryHeadersItem(
|
|
12255
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in'))]).then(function (x) {
|
|
11841
12256
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11842
12257
|
return data['parentCode'] === '0';
|
|
11843
12258
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -12075,7 +12490,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12075
12490
|
name: 'qp-officeTelephone-like',
|
|
12076
12491
|
label: '手机号'
|
|
12077
12492
|
}];
|
|
12078
|
-
var
|
|
12493
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12079
12494
|
querySelectHeadersList: querySelectHeadersList,
|
|
12080
12495
|
extralHeaders: extralHeaders
|
|
12081
12496
|
});
|
|
@@ -12083,7 +12498,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12083
12498
|
pageSize: 5000,
|
|
12084
12499
|
currentPage: 1,
|
|
12085
12500
|
'qp-companyType-eq': 20
|
|
12086
|
-
}, getQueryHeadersItem(
|
|
12501
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-companyCode-in'))]).then(function (x) {
|
|
12087
12502
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12088
12503
|
});
|
|
12089
12504
|
modalTableProps = _objectSpread2({
|
|
@@ -12192,13 +12607,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12192
12607
|
name: 'qp-officeTelephone-like',
|
|
12193
12608
|
label: '手机号'
|
|
12194
12609
|
}]);
|
|
12195
|
-
var
|
|
12610
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12196
12611
|
querySelectHeadersList: querySelectHeadersList,
|
|
12197
12612
|
extralHeaders: extralHeaders
|
|
12198
12613
|
});
|
|
12199
12614
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12200
12615
|
'orgViewCode': 'administrative-organization-view'
|
|
12201
|
-
}, getQueryHeadersItem(
|
|
12616
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-code-in'))]).then(function (x) {
|
|
12202
12617
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12203
12618
|
});
|
|
12204
12619
|
modalTableProps = _objectSpread2({
|
|
@@ -12345,17 +12760,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12345
12760
|
name: 'qp-remark-like',
|
|
12346
12761
|
label: '备注'
|
|
12347
12762
|
}];
|
|
12348
|
-
var
|
|
12763
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
12349
12764
|
querySelectHeadersList: querySelectHeadersList,
|
|
12350
12765
|
extralHeaders: extralHeaders
|
|
12351
12766
|
});
|
|
12352
12767
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12353
12768
|
pageSize: 5000,
|
|
12354
12769
|
currentPage: 1
|
|
12355
|
-
}, getQueryHeadersItem(
|
|
12770
|
+
}, getQueryHeadersItem(_queryHeaderParams15, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12356
12771
|
pageSize: 5000,
|
|
12357
12772
|
currentPage: 1
|
|
12358
|
-
}, getQueryHeadersItem(
|
|
12773
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12359
12774
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12360
12775
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12361
12776
|
});
|
|
@@ -12525,14 +12940,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12525
12940
|
}
|
|
12526
12941
|
}
|
|
12527
12942
|
}];
|
|
12528
|
-
var
|
|
12943
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
12529
12944
|
querySelectHeadersList: querySelectHeadersList,
|
|
12530
12945
|
extralHeaders: extralHeaders
|
|
12531
12946
|
});
|
|
12532
12947
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
12533
12948
|
pageSize: 5000,
|
|
12534
12949
|
currentPage: 1
|
|
12535
|
-
}, getQueryHeadersItem(
|
|
12950
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
12536
12951
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12537
12952
|
});
|
|
12538
12953
|
modalTableProps = _objectSpread2({
|
|
@@ -12629,7 +13044,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12629
13044
|
}
|
|
12630
13045
|
}
|
|
12631
13046
|
}];
|
|
12632
|
-
var
|
|
13047
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
12633
13048
|
querySelectHeadersList: querySelectHeadersList,
|
|
12634
13049
|
extralHeaders: extralHeaders
|
|
12635
13050
|
});
|
|
@@ -12637,7 +13052,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12637
13052
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12638
13053
|
'qp-realOrg-eq': true,
|
|
12639
13054
|
'qp-status-eq': 10
|
|
12640
|
-
}, getQueryHeadersItem(
|
|
13055
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
12641
13056
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12642
13057
|
});
|
|
12643
13058
|
modalTableProps = _objectSpread2({
|
|
@@ -12743,13 +13158,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12743
13158
|
},
|
|
12744
13159
|
initialSource: nodeType
|
|
12745
13160
|
}];
|
|
12746
|
-
var
|
|
13161
|
+
var _queryHeaderParams18 = getQueryHeadersList({
|
|
12747
13162
|
querySelectHeadersList: querySelectHeadersList,
|
|
12748
13163
|
extralHeaders: extralHeaders
|
|
12749
13164
|
});
|
|
12750
13165
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
12751
13166
|
'qp-status-eq': 10
|
|
12752
|
-
}, getQueryHeadersItem(
|
|
13167
|
+
}, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
12753
13168
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12754
13169
|
});
|
|
12755
13170
|
modalTableProps = _objectSpread2({
|
|
@@ -13075,13 +13490,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13075
13490
|
},
|
|
13076
13491
|
initialSource: nodeType
|
|
13077
13492
|
}];
|
|
13078
|
-
var
|
|
13493
|
+
var _queryHeaderParams19 = getQueryHeadersList({
|
|
13079
13494
|
querySelectHeadersList: querySelectHeadersList,
|
|
13080
13495
|
extralHeaders: extralHeaders
|
|
13081
13496
|
});
|
|
13082
13497
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13083
13498
|
'qp-status-eq': 10
|
|
13084
|
-
}, getQueryHeadersItem(
|
|
13499
|
+
}, getQueryHeadersItem(_queryHeaderParams19, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13085
13500
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13086
13501
|
});
|
|
13087
13502
|
modalTableProps = _objectSpread2({
|
|
@@ -14026,9 +14441,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14026
14441
|
value = _useState8[0],
|
|
14027
14442
|
setValue = _useState8[1];
|
|
14028
14443
|
var _useState9 = React$1.useState([]),
|
|
14029
|
-
|
|
14030
|
-
propertyList =
|
|
14031
|
-
setPropertyList =
|
|
14444
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
14445
|
+
propertyList = _useState10[0],
|
|
14446
|
+
setPropertyList = _useState10[1];
|
|
14032
14447
|
React$1.useEffect(function () {
|
|
14033
14448
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14034
14449
|
// type: 1 尺码组; 2 配码组
|
|
@@ -14552,45 +14967,46 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14552
14967
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
14553
14968
|
headers: headers
|
|
14554
14969
|
}).then(/*#__PURE__*/function () {
|
|
14555
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
14970
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
14556
14971
|
var _ctx$form;
|
|
14557
14972
|
var resData, coverData, data, dataList;
|
|
14558
|
-
return
|
|
14559
|
-
while (1) switch (_context.
|
|
14973
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14974
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14560
14975
|
case 0:
|
|
14561
14976
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
14562
14977
|
if (!judgeIsRequestSuccess(resData)) {
|
|
14563
|
-
_context.
|
|
14978
|
+
_context.next = 13;
|
|
14564
14979
|
break;
|
|
14565
14980
|
}
|
|
14566
14981
|
data = resData.data;
|
|
14567
14982
|
if (!remoteSource.converter) {
|
|
14568
|
-
_context.
|
|
14983
|
+
_context.next = 9;
|
|
14569
14984
|
break;
|
|
14570
14985
|
}
|
|
14571
|
-
_context.
|
|
14986
|
+
_context.next = 6;
|
|
14572
14987
|
return remoteSource.converter({
|
|
14573
14988
|
data: [data]
|
|
14574
14989
|
});
|
|
14575
|
-
case
|
|
14576
|
-
coverData = _context.
|
|
14577
|
-
_context.
|
|
14990
|
+
case 6:
|
|
14991
|
+
coverData = _context.sent;
|
|
14992
|
+
_context.next = 11;
|
|
14578
14993
|
break;
|
|
14579
|
-
case
|
|
14994
|
+
case 9:
|
|
14580
14995
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
14581
14996
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
14582
14997
|
return _mapSearchTree(ites);
|
|
14583
14998
|
}) || [];
|
|
14584
|
-
case
|
|
14585
|
-
_context.
|
|
14999
|
+
case 11:
|
|
15000
|
+
_context.next = 14;
|
|
14586
15001
|
break;
|
|
14587
|
-
case
|
|
15002
|
+
case 13:
|
|
14588
15003
|
coverData = [];
|
|
14589
|
-
case
|
|
15004
|
+
case 14:
|
|
14590
15005
|
setTreeData(coverData);
|
|
14591
15006
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
14592
|
-
case
|
|
14593
|
-
|
|
15007
|
+
case 16:
|
|
15008
|
+
case "end":
|
|
15009
|
+
return _context.stop();
|
|
14594
15010
|
}
|
|
14595
15011
|
}, _callee);
|
|
14596
15012
|
}));
|
|
@@ -18892,38 +19308,38 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18892
19308
|
};
|
|
18893
19309
|
var refs = React$1.useRef(null);
|
|
18894
19310
|
var _useState9 = React$1.useState(''),
|
|
18895
|
-
|
|
18896
|
-
pagePath =
|
|
18897
|
-
setPagePath =
|
|
19311
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
19312
|
+
pagePath = _useState10[0],
|
|
19313
|
+
setPagePath = _useState10[1];
|
|
18898
19314
|
var _useLocation = umi.useLocation(),
|
|
18899
19315
|
pathname = _useLocation.pathname,
|
|
18900
19316
|
_useLocation$state = _useLocation.state,
|
|
18901
19317
|
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
18902
|
-
var
|
|
18903
|
-
|
|
18904
|
-
isFullScreen =
|
|
18905
|
-
setIsFnllScreen =
|
|
19318
|
+
var _useState11 = React$1.useState(false),
|
|
19319
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
19320
|
+
isFullScreen = _useState12[0],
|
|
19321
|
+
setIsFnllScreen = _useState12[1];
|
|
18906
19322
|
// @ts-nocheck
|
|
18907
19323
|
var value = props;
|
|
18908
19324
|
var _props$fields = props.fields,
|
|
18909
19325
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
18910
|
-
var
|
|
18911
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
18912
|
-
showColumn = _useState12[0],
|
|
18913
|
-
setShowColumns = _useState12[1]; // 列字段
|
|
18914
|
-
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
18915
|
-
var _useState13 = React$1.useState(originSearchFields),
|
|
19326
|
+
var _useState13 = React$1.useState([]),
|
|
18916
19327
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
18917
|
-
|
|
18918
|
-
|
|
18919
|
-
var
|
|
19328
|
+
showColumn = _useState14[0],
|
|
19329
|
+
setShowColumns = _useState14[1]; // 列字段
|
|
19330
|
+
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19331
|
+
var _useState15 = React$1.useState(originSearchFields),
|
|
18920
19332
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
18921
|
-
|
|
18922
|
-
|
|
18923
|
-
var _useState17 = React$1.useState(
|
|
19333
|
+
showSearchFields = _useState16[0],
|
|
19334
|
+
setShowSearchFields = _useState16[1]; //搜索项字段
|
|
19335
|
+
var _useState17 = React$1.useState([]),
|
|
18924
19336
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
18925
|
-
|
|
18926
|
-
|
|
19337
|
+
showExportColumn = _useState18[0],
|
|
19338
|
+
setShowExportColumns = _useState18[1]; // 导出列字段
|
|
19339
|
+
var _useState19 = React$1.useState(''),
|
|
19340
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
19341
|
+
height = _useState20[0],
|
|
19342
|
+
setHeight = _useState20[1];
|
|
18927
19343
|
var sortTableRef = React$1.useRef(null);
|
|
18928
19344
|
var searchTableRef = React$1.useRef(null);
|
|
18929
19345
|
var exportTableRef = React$1.useRef(null);
|
|
@@ -19971,19 +20387,22 @@ function outLogin(_x) {
|
|
|
19971
20387
|
return _outLogin.apply(this, arguments);
|
|
19972
20388
|
}
|
|
19973
20389
|
function _outLogin() {
|
|
19974
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
20390
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19975
20391
|
var res;
|
|
19976
|
-
return
|
|
19977
|
-
while (1) switch (_context.
|
|
20392
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20393
|
+
while (1) switch (_context.prev = _context.next) {
|
|
19978
20394
|
case 0:
|
|
19979
|
-
_context.
|
|
20395
|
+
_context.next = 2;
|
|
19980
20396
|
return requestUtil({
|
|
19981
20397
|
url: '/user/web/loginOut',
|
|
19982
20398
|
method: 'GET'
|
|
19983
20399
|
});
|
|
19984
|
-
case
|
|
19985
|
-
res = _context.
|
|
19986
|
-
return _context.
|
|
20400
|
+
case 2:
|
|
20401
|
+
res = _context.sent;
|
|
20402
|
+
return _context.abrupt("return", res);
|
|
20403
|
+
case 4:
|
|
20404
|
+
case "end":
|
|
20405
|
+
return _context.stop();
|
|
19987
20406
|
}
|
|
19988
20407
|
}, _callee);
|
|
19989
20408
|
}));
|
|
@@ -20110,20 +20529,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20110
20529
|
});
|
|
20111
20530
|
};
|
|
20112
20531
|
var loginOut = /*#__PURE__*/function () {
|
|
20113
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
20532
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20114
20533
|
var sessionId;
|
|
20115
|
-
return
|
|
20116
|
-
while (1) switch (_context.
|
|
20534
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20535
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20117
20536
|
case 0:
|
|
20118
|
-
_context.
|
|
20537
|
+
_context.next = 2;
|
|
20119
20538
|
return getSessionId();
|
|
20120
|
-
case
|
|
20121
|
-
sessionId = _context.
|
|
20122
|
-
_context.
|
|
20539
|
+
case 2:
|
|
20540
|
+
sessionId = _context.sent;
|
|
20541
|
+
_context.next = 5;
|
|
20123
20542
|
return outLogin({
|
|
20124
20543
|
sessionId: sessionId
|
|
20125
20544
|
});
|
|
20126
|
-
case
|
|
20545
|
+
case 5:
|
|
20127
20546
|
// @ts-ignore
|
|
20128
20547
|
if (BUILD_TYPE) {
|
|
20129
20548
|
antd.message.success('退出登录成功');
|
|
@@ -20133,8 +20552,9 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20133
20552
|
} else {
|
|
20134
20553
|
setLoginOutPath();
|
|
20135
20554
|
}
|
|
20136
|
-
case
|
|
20137
|
-
|
|
20555
|
+
case 6:
|
|
20556
|
+
case "end":
|
|
20557
|
+
return _context.stop();
|
|
20138
20558
|
}
|
|
20139
20559
|
}, _callee);
|
|
20140
20560
|
}));
|
|
@@ -20221,15 +20641,18 @@ function getStoreByName(_x) {
|
|
|
20221
20641
|
return _getStoreByName.apply(this, arguments);
|
|
20222
20642
|
}
|
|
20223
20643
|
function _getStoreByName() {
|
|
20224
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20225
|
-
return
|
|
20226
|
-
while (1) switch (_context.
|
|
20644
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
20645
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20646
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20227
20647
|
case 0:
|
|
20228
|
-
return _context.
|
|
20648
|
+
return _context.abrupt("return", requestUtil({
|
|
20229
20649
|
url: '/store-house/orgViewNode/listNoPage',
|
|
20230
20650
|
method: 'GET',
|
|
20231
20651
|
params: _objectSpread2({}, params)
|
|
20232
20652
|
}));
|
|
20653
|
+
case 1:
|
|
20654
|
+
case "end":
|
|
20655
|
+
return _context.stop();
|
|
20233
20656
|
}
|
|
20234
20657
|
}, _callee);
|
|
20235
20658
|
}));
|
|
@@ -20264,33 +20687,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20264
20687
|
openSelect = _useState8[0],
|
|
20265
20688
|
setOpenSelect = _useState8[1];
|
|
20266
20689
|
var _useState9 = React$1.useState([]),
|
|
20267
|
-
|
|
20268
|
-
options =
|
|
20269
|
-
setOptions =
|
|
20270
|
-
var
|
|
20271
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
20272
|
-
rescouse = _useState10[0],
|
|
20273
|
-
setRescouse = _useState10[1];
|
|
20274
|
-
var _useState11 = React$1.useState(''),
|
|
20690
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
20691
|
+
options = _useState10[0],
|
|
20692
|
+
setOptions = _useState10[1];
|
|
20693
|
+
var _useState11 = React$1.useState([]),
|
|
20275
20694
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
20276
|
-
|
|
20277
|
-
|
|
20278
|
-
var _useState13 = React$1.useState(
|
|
20695
|
+
rescouse = _useState12[0],
|
|
20696
|
+
setRescouse = _useState12[1];
|
|
20697
|
+
var _useState13 = React$1.useState(''),
|
|
20698
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
20699
|
+
searchValue = _useState14[0],
|
|
20700
|
+
setSearchValue = _useState14[1];
|
|
20701
|
+
var _useState15 = React$1.useState([{
|
|
20279
20702
|
label: name,
|
|
20280
20703
|
value: code
|
|
20281
20704
|
}]),
|
|
20282
|
-
|
|
20283
|
-
store =
|
|
20284
|
-
setStore =
|
|
20705
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
20706
|
+
store = _useState16[0],
|
|
20707
|
+
setStore = _useState16[1];
|
|
20285
20708
|
function fetchUserList(_x, _x2) {
|
|
20286
20709
|
return _fetchUserList.apply(this, arguments);
|
|
20287
20710
|
}
|
|
20288
20711
|
function _fetchUserList() {
|
|
20289
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
20290
|
-
return
|
|
20291
|
-
while (1) switch (_context3.
|
|
20712
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
20713
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
20714
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
20292
20715
|
case 0:
|
|
20293
|
-
return _context3.
|
|
20716
|
+
return _context3.abrupt("return", getStoreByName({
|
|
20294
20717
|
orgName: storeName ? storeName : undefined,
|
|
20295
20718
|
platCompanyCode: init ? undefined : key,
|
|
20296
20719
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -20309,6 +20732,9 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20309
20732
|
};
|
|
20310
20733
|
});
|
|
20311
20734
|
}));
|
|
20735
|
+
case 1:
|
|
20736
|
+
case "end":
|
|
20737
|
+
return _context3.stop();
|
|
20312
20738
|
}
|
|
20313
20739
|
}, _callee3);
|
|
20314
20740
|
}));
|
|
@@ -20331,19 +20757,20 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20331
20757
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
20332
20758
|
}, [debounceTimeout, key]);
|
|
20333
20759
|
var changeInput = /*#__PURE__*/function () {
|
|
20334
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
20760
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
20335
20761
|
var res;
|
|
20336
|
-
return
|
|
20337
|
-
while (1) switch (_context.
|
|
20762
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20763
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20338
20764
|
case 0:
|
|
20339
|
-
_context.
|
|
20765
|
+
_context.next = 2;
|
|
20340
20766
|
return debounceFetcher(str);
|
|
20341
|
-
case
|
|
20342
|
-
res = _context.
|
|
20767
|
+
case 2:
|
|
20768
|
+
res = _context.sent;
|
|
20343
20769
|
setOptions(res);
|
|
20344
20770
|
setRescouse(res);
|
|
20345
|
-
case
|
|
20346
|
-
|
|
20771
|
+
case 5:
|
|
20772
|
+
case "end":
|
|
20773
|
+
return _context.stop();
|
|
20347
20774
|
}
|
|
20348
20775
|
}, _callee);
|
|
20349
20776
|
}));
|
|
@@ -20352,15 +20779,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20352
20779
|
};
|
|
20353
20780
|
}();
|
|
20354
20781
|
React$1.useEffect(function () {
|
|
20355
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
20782
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
20356
20783
|
var res;
|
|
20357
|
-
return
|
|
20358
|
-
while (1) switch (_context2.
|
|
20784
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
20785
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
20359
20786
|
case 0:
|
|
20360
|
-
_context2.
|
|
20787
|
+
_context2.next = 2;
|
|
20361
20788
|
return fetchUserList(undefined, true);
|
|
20362
|
-
case
|
|
20363
|
-
res = _context2.
|
|
20789
|
+
case 2:
|
|
20790
|
+
res = _context2.sent;
|
|
20364
20791
|
res.map(function (item, indexNumber) {
|
|
20365
20792
|
if (item.label === name) {
|
|
20366
20793
|
setIndex(indexNumber);
|
|
@@ -20376,8 +20803,9 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20376
20803
|
});
|
|
20377
20804
|
setOptions(res);
|
|
20378
20805
|
setRescouse(res);
|
|
20379
|
-
case
|
|
20380
|
-
|
|
20806
|
+
case 6:
|
|
20807
|
+
case "end":
|
|
20808
|
+
return _context2.stop();
|
|
20381
20809
|
}
|
|
20382
20810
|
}, _callee2);
|
|
20383
20811
|
}))();
|
|
@@ -21426,25 +21854,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
21426
21854
|
currentOneLevel = _useState8[0],
|
|
21427
21855
|
setCurrentOneLevel = _useState8[1];
|
|
21428
21856
|
var _useState9 = React$1.useState([]),
|
|
21429
|
-
|
|
21430
|
-
SearhData =
|
|
21431
|
-
setSearchMenuData =
|
|
21432
|
-
var
|
|
21433
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
21434
|
-
rightMenuHeight = _useState10[0],
|
|
21435
|
-
setHeight = _useState10[1];
|
|
21436
|
-
var _useState11 = React$1.useState(900),
|
|
21857
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
21858
|
+
SearhData = _useState10[0],
|
|
21859
|
+
setSearchMenuData = _useState10[1];
|
|
21860
|
+
var _useState11 = React$1.useState(600),
|
|
21437
21861
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
21438
|
-
|
|
21439
|
-
|
|
21440
|
-
var _useState13 = React$1.useState(
|
|
21862
|
+
rightMenuHeight = _useState12[0],
|
|
21863
|
+
setHeight = _useState12[1];
|
|
21864
|
+
var _useState13 = React$1.useState(900),
|
|
21441
21865
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
21442
|
-
|
|
21443
|
-
|
|
21866
|
+
drawHeight = _useState14[0],
|
|
21867
|
+
setDrawHeight = _useState14[1];
|
|
21444
21868
|
var _useState15 = React$1.useState(false),
|
|
21445
21869
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
21446
|
-
|
|
21447
|
-
|
|
21870
|
+
moreBtnShow = _useState16[0],
|
|
21871
|
+
setMoreBtnShow = _useState16[1];
|
|
21872
|
+
var _useState17 = React$1.useState(false),
|
|
21873
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
21874
|
+
showScroll = _useState18[0],
|
|
21875
|
+
setShowScroll = _useState18[1];
|
|
21448
21876
|
React$1.useEffect(function () {
|
|
21449
21877
|
var _originRoutes$find;
|
|
21450
21878
|
getMenuContentHeight();
|
|
@@ -23055,11 +23483,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23055
23483
|
},
|
|
23056
23484
|
menu: {
|
|
23057
23485
|
request: function () {
|
|
23058
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23059
|
-
return
|
|
23060
|
-
while (1) switch (_context.
|
|
23486
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
23487
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
23488
|
+
while (1) switch (_context.prev = _context.next) {
|
|
23061
23489
|
case 0:
|
|
23062
|
-
return _context.
|
|
23490
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
23491
|
+
case 1:
|
|
23492
|
+
case "end":
|
|
23493
|
+
return _context.stop();
|
|
23063
23494
|
}
|
|
23064
23495
|
}, _callee);
|
|
23065
23496
|
}));
|
|
@@ -23464,31 +23895,31 @@ var index$6 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
23464
23895
|
multiTableData = _useState8[0],
|
|
23465
23896
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
23466
23897
|
var _useState9 = React$1.useState(10),
|
|
23467
|
-
|
|
23468
|
-
viewCount =
|
|
23469
|
-
setViewCount =
|
|
23898
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
23899
|
+
viewCount = _useState10[0],
|
|
23900
|
+
setViewCount = _useState10[1]; //虚拟表格每次渲染数量
|
|
23470
23901
|
var itemWidth = 100; // 表格每一项宽度
|
|
23471
|
-
var
|
|
23472
|
-
|
|
23473
|
-
realColHeaderWidth =
|
|
23474
|
-
setLeftWidth =
|
|
23902
|
+
var _useState11 = React$1.useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
|
|
23903
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
23904
|
+
realColHeaderWidth = _useState12[0],
|
|
23905
|
+
setLeftWidth = _useState12[1];
|
|
23475
23906
|
var viewPort = React$1.useRef(null);
|
|
23476
23907
|
var topScrollBar = React$1.useRef(null);
|
|
23477
23908
|
var leftTableRef = React$1.useRef(null);
|
|
23478
23909
|
//起始渲染item
|
|
23479
|
-
var
|
|
23480
|
-
|
|
23481
|
-
startIndex =
|
|
23482
|
-
setStartIndex =
|
|
23910
|
+
var _useState13 = React$1.useState(0),
|
|
23911
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
23912
|
+
startIndex = _useState14[0],
|
|
23913
|
+
setStartIndex = _useState14[1];
|
|
23483
23914
|
//结束渲染item
|
|
23484
23915
|
var endIndex = React$1.useMemo(function () {
|
|
23485
23916
|
return startIndex + viewCount;
|
|
23486
23917
|
}, [startIndex, viewCount]);
|
|
23487
23918
|
//表格偏移量
|
|
23488
|
-
var
|
|
23489
|
-
|
|
23490
|
-
offsetWidth =
|
|
23491
|
-
setOffset =
|
|
23919
|
+
var _useState15 = React$1.useState(0),
|
|
23920
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
23921
|
+
offsetWidth = _useState16[0],
|
|
23922
|
+
setOffset = _useState16[1];
|
|
23492
23923
|
React$1.useEffect(function () {
|
|
23493
23924
|
setTimeout(function () {
|
|
23494
23925
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -30792,11 +31223,11 @@ var valueType = {
|
|
|
30792
31223
|
};
|
|
30793
31224
|
|
|
30794
31225
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
30795
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
30796
|
-
return
|
|
30797
|
-
while (1) switch (_context.
|
|
31226
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
31227
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31228
|
+
while (1) switch (_context.prev = _context.next) {
|
|
30798
31229
|
case 0:
|
|
30799
|
-
_context.
|
|
31230
|
+
_context.next = 2;
|
|
30800
31231
|
return bssula.request({
|
|
30801
31232
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
30802
31233
|
converter: function converter(_ref2) {
|
|
@@ -30809,8 +31240,11 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
30809
31240
|
});
|
|
30810
31241
|
}
|
|
30811
31242
|
});
|
|
30812
|
-
case
|
|
30813
|
-
return _context.
|
|
31243
|
+
case 2:
|
|
31244
|
+
return _context.abrupt("return", _context.sent);
|
|
31245
|
+
case 3:
|
|
31246
|
+
case "end":
|
|
31247
|
+
return _context.stop();
|
|
30814
31248
|
}
|
|
30815
31249
|
}, _callee);
|
|
30816
31250
|
}));
|
|
@@ -30857,12 +31291,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30857
31291
|
value: false
|
|
30858
31292
|
}];
|
|
30859
31293
|
var ref = React$1.useRef();
|
|
30860
|
-
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
30861
|
-
var _ref$current, source
|
|
30862
|
-
return
|
|
30863
|
-
while (1) switch (_context.
|
|
31294
|
+
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31295
|
+
var _ref$current, source;
|
|
31296
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31297
|
+
while (1) switch (_context.prev = _context.next) {
|
|
30864
31298
|
case 0:
|
|
30865
|
-
_context.
|
|
31299
|
+
_context.next = 2;
|
|
30866
31300
|
return setIsShowAndType(function (prev) {
|
|
30867
31301
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
30868
31302
|
return {
|
|
@@ -30873,39 +31307,40 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30873
31307
|
}
|
|
30874
31308
|
return prev;
|
|
30875
31309
|
});
|
|
30876
|
-
case
|
|
31310
|
+
case 2:
|
|
30877
31311
|
if (!record.dictionaryCode) {
|
|
30878
|
-
_context.
|
|
31312
|
+
_context.next = 17;
|
|
30879
31313
|
break;
|
|
30880
31314
|
}
|
|
30881
31315
|
if (!(record.choiceType == 20)) {
|
|
30882
|
-
_context.
|
|
31316
|
+
_context.next = 7;
|
|
30883
31317
|
break;
|
|
30884
31318
|
}
|
|
30885
|
-
|
|
30886
|
-
_context.
|
|
31319
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
31320
|
+
_context.next = 15;
|
|
30887
31321
|
break;
|
|
30888
|
-
case
|
|
31322
|
+
case 7:
|
|
30889
31323
|
if (!(record.choiceType == 30)) {
|
|
30890
|
-
_context.
|
|
31324
|
+
_context.next = 13;
|
|
30891
31325
|
break;
|
|
30892
31326
|
}
|
|
30893
|
-
_context.
|
|
31327
|
+
_context.next = 10;
|
|
30894
31328
|
return getDynamicDict(record.dictionaryCode);
|
|
30895
|
-
case
|
|
30896
|
-
|
|
30897
|
-
_context.
|
|
31329
|
+
case 10:
|
|
31330
|
+
_context.t1 = _context.sent;
|
|
31331
|
+
_context.next = 14;
|
|
30898
31332
|
break;
|
|
30899
|
-
case
|
|
30900
|
-
|
|
30901
|
-
case
|
|
30902
|
-
|
|
30903
|
-
case
|
|
30904
|
-
source =
|
|
31333
|
+
case 13:
|
|
31334
|
+
_context.t1 = [];
|
|
31335
|
+
case 14:
|
|
31336
|
+
_context.t0 = _context.t1;
|
|
31337
|
+
case 15:
|
|
31338
|
+
source = _context.t0;
|
|
30905
31339
|
// @ts-ignore
|
|
30906
31340
|
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
30907
|
-
case
|
|
30908
|
-
|
|
31341
|
+
case 17:
|
|
31342
|
+
case "end":
|
|
31343
|
+
return _context.stop();
|
|
30909
31344
|
}
|
|
30910
31345
|
}, _callee);
|
|
30911
31346
|
})));
|
|
@@ -30970,10 +31405,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30970
31405
|
source: {
|
|
30971
31406
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
30972
31407
|
type: function () {
|
|
30973
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
31408
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
30974
31409
|
var form, values, name, relates, source;
|
|
30975
|
-
return
|
|
30976
|
-
while (1) switch (_context2.
|
|
31410
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
31411
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
30977
31412
|
case 0:
|
|
30978
31413
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
30979
31414
|
if (values[0]) {
|
|
@@ -30982,18 +31417,19 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30982
31417
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
30983
31418
|
}
|
|
30984
31419
|
if (!values[1]) {
|
|
30985
|
-
_context2.
|
|
31420
|
+
_context2.next = 9;
|
|
30986
31421
|
break;
|
|
30987
31422
|
}
|
|
30988
|
-
_context2.
|
|
31423
|
+
_context2.next = 5;
|
|
30989
31424
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
30990
|
-
case
|
|
30991
|
-
source = _context2.
|
|
31425
|
+
case 5:
|
|
31426
|
+
source = _context2.sent;
|
|
30992
31427
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
30993
31428
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
30994
31429
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
30995
|
-
case
|
|
30996
|
-
|
|
31430
|
+
case 9:
|
|
31431
|
+
case "end":
|
|
31432
|
+
return _context2.stop();
|
|
30997
31433
|
}
|
|
30998
31434
|
}, _callee2);
|
|
30999
31435
|
}));
|
|
@@ -31449,25 +31885,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31449
31885
|
source: {
|
|
31450
31886
|
relates: ['choiceType', 'inputType'],
|
|
31451
31887
|
type: function () {
|
|
31452
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
31888
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
31453
31889
|
var values, name, form, source;
|
|
31454
|
-
return
|
|
31455
|
-
while (1) switch (_context3.
|
|
31890
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
31891
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
31456
31892
|
case 0:
|
|
31457
|
-
values =
|
|
31893
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
31458
31894
|
if (values[1] === 40) {
|
|
31459
31895
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
31460
31896
|
form.setFieldVisible(name, false);
|
|
31461
31897
|
}
|
|
31462
31898
|
if (!(values[0] === 30)) {
|
|
31463
|
-
_context3.
|
|
31899
|
+
_context3.next = 10;
|
|
31464
31900
|
break;
|
|
31465
31901
|
}
|
|
31466
|
-
_context3.
|
|
31902
|
+
_context3.next = 5;
|
|
31467
31903
|
return bssula.request({
|
|
31468
31904
|
url: '/basic/dictDynamicItem/queryList',
|
|
31469
|
-
converter: function converter(
|
|
31470
|
-
var data =
|
|
31905
|
+
converter: function converter(_ref11) {
|
|
31906
|
+
var data = _ref11.data;
|
|
31471
31907
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31472
31908
|
return {
|
|
31473
31909
|
text: d.dictCode,
|
|
@@ -31476,16 +31912,17 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31476
31912
|
});
|
|
31477
31913
|
}
|
|
31478
31914
|
});
|
|
31479
|
-
case
|
|
31480
|
-
source = _context3.
|
|
31915
|
+
case 5:
|
|
31916
|
+
source = _context3.sent;
|
|
31481
31917
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
31482
31918
|
form.setFieldVisible(name, true);
|
|
31483
|
-
_context3.
|
|
31919
|
+
_context3.next = 11;
|
|
31484
31920
|
break;
|
|
31485
|
-
case
|
|
31921
|
+
case 10:
|
|
31486
31922
|
form.setFieldVisible(name, false);
|
|
31487
|
-
case
|
|
31488
|
-
|
|
31923
|
+
case 11:
|
|
31924
|
+
case "end":
|
|
31925
|
+
return _context3.stop();
|
|
31489
31926
|
}
|
|
31490
31927
|
}, _callee3);
|
|
31491
31928
|
}));
|
|
@@ -31500,8 +31937,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31500
31937
|
name: 'enumeration',
|
|
31501
31938
|
label: '维护自定义选项',
|
|
31502
31939
|
field: {
|
|
31503
|
-
type: function type(
|
|
31504
|
-
var form =
|
|
31940
|
+
type: function type(_ref12) {
|
|
31941
|
+
var form = _ref12.form;
|
|
31505
31942
|
return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
31506
31943
|
type: 'link',
|
|
31507
31944
|
onClick: function onClick() {
|
|
@@ -31527,10 +31964,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31527
31964
|
dependency: {
|
|
31528
31965
|
source: {
|
|
31529
31966
|
relates: ['choiceType'],
|
|
31530
|
-
type: function type(
|
|
31531
|
-
var values =
|
|
31532
|
-
name =
|
|
31533
|
-
form =
|
|
31967
|
+
type: function type(_ref13) {
|
|
31968
|
+
var values = _ref13.values,
|
|
31969
|
+
name = _ref13.name,
|
|
31970
|
+
form = _ref13.form;
|
|
31534
31971
|
if (values[0] === 10) {
|
|
31535
31972
|
form.setFieldVisible(name, true);
|
|
31536
31973
|
} else {
|
|
@@ -31546,10 +31983,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31546
31983
|
dependency: {
|
|
31547
31984
|
visible: {
|
|
31548
31985
|
relates: ['choiceType'],
|
|
31549
|
-
type: function type(
|
|
31550
|
-
var name =
|
|
31551
|
-
values =
|
|
31552
|
-
form =
|
|
31986
|
+
type: function type(_ref14) {
|
|
31987
|
+
var name = _ref14.name,
|
|
31988
|
+
values = _ref14.values,
|
|
31989
|
+
form = _ref14.form;
|
|
31553
31990
|
if (values[0] == 330) {
|
|
31554
31991
|
form.setFieldVisible(name, true);
|
|
31555
31992
|
} else {
|
|
@@ -31573,8 +32010,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31573
32010
|
params: {
|
|
31574
32011
|
'qp-businessType-eq': record.businessType
|
|
31575
32012
|
},
|
|
31576
|
-
converter: function converter(
|
|
31577
|
-
var data =
|
|
32013
|
+
converter: function converter(_ref15) {
|
|
32014
|
+
var data = _ref15.data;
|
|
31578
32015
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31579
32016
|
return {
|
|
31580
32017
|
text: d.name,
|
|
@@ -31614,8 +32051,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31614
32051
|
'qp-businessType-eq': record.businessType,
|
|
31615
32052
|
'qp-status-eq': 1
|
|
31616
32053
|
},
|
|
31617
|
-
converter: function converter(
|
|
31618
|
-
var data =
|
|
32054
|
+
converter: function converter(_ref16) {
|
|
32055
|
+
var data = _ref16.data;
|
|
31619
32056
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31620
32057
|
var _d$code;
|
|
31621
32058
|
return {
|
|
@@ -31643,8 +32080,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31643
32080
|
remoteSource: {
|
|
31644
32081
|
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),
|
|
31645
32082
|
method: 'get',
|
|
31646
|
-
converter: function converter(
|
|
31647
|
-
var data =
|
|
32083
|
+
converter: function converter(_ref17) {
|
|
32084
|
+
var data = _ref17.data;
|
|
31648
32085
|
if (lineDetail.moduleType == 1) {
|
|
31649
32086
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31650
32087
|
return {
|
|
@@ -31670,16 +32107,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31670
32107
|
width: 900,
|
|
31671
32108
|
maskClosable: false,
|
|
31672
32109
|
onOk: function () {
|
|
31673
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
32110
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
31674
32111
|
var _ref$current4, _res$editableStatus;
|
|
31675
32112
|
var res, _res$defaultValue;
|
|
31676
|
-
return
|
|
31677
|
-
while (1) switch (_context4.
|
|
32113
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32114
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
31678
32115
|
case 0:
|
|
31679
|
-
_context4.
|
|
32116
|
+
_context4.next = 2;
|
|
31680
32117
|
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
31681
|
-
case
|
|
31682
|
-
res = _context4.
|
|
32118
|
+
case 2:
|
|
32119
|
+
res = _context4.sent;
|
|
31683
32120
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
31684
32121
|
res.fieldGroup = record.fieldGroup;
|
|
31685
32122
|
res.businessType = record.businessType;
|
|
@@ -31706,7 +32143,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31706
32143
|
delete res.formula;
|
|
31707
32144
|
delete res.showValue;
|
|
31708
32145
|
if (!(mode === 'create')) {
|
|
31709
|
-
_context4.
|
|
32146
|
+
_context4.next = 18;
|
|
31710
32147
|
break;
|
|
31711
32148
|
}
|
|
31712
32149
|
bssula.request({
|
|
@@ -31718,8 +32155,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31718
32155
|
onParentOk();
|
|
31719
32156
|
}
|
|
31720
32157
|
});
|
|
31721
|
-
return _context4.
|
|
31722
|
-
case
|
|
32158
|
+
return _context4.abrupt("return");
|
|
32159
|
+
case 18:
|
|
31723
32160
|
bssula.request({
|
|
31724
32161
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
31725
32162
|
method: 'PATCH',
|
|
@@ -31729,8 +32166,9 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31729
32166
|
onParentOk();
|
|
31730
32167
|
}
|
|
31731
32168
|
});
|
|
31732
|
-
case
|
|
31733
|
-
|
|
32169
|
+
case 19:
|
|
32170
|
+
case "end":
|
|
32171
|
+
return _context4.stop();
|
|
31734
32172
|
}
|
|
31735
32173
|
}, _callee4);
|
|
31736
32174
|
}));
|
|
@@ -32186,21 +32624,21 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
32186
32624
|
jsonEditorVal = _useState8[0],
|
|
32187
32625
|
setJsonEditorVal = _useState8[1];
|
|
32188
32626
|
var _useState9 = React$1.useState({}),
|
|
32189
|
-
|
|
32190
|
-
moduleParams =
|
|
32191
|
-
setModuleParams =
|
|
32192
|
-
var
|
|
32193
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
32194
|
-
activeKey = _useState10[0],
|
|
32195
|
-
setActiveKey = _useState10[1]; //默认详情页配置
|
|
32196
|
-
var _useState11 = React$1.useState({}),
|
|
32627
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
32628
|
+
moduleParams = _useState10[0],
|
|
32629
|
+
setModuleParams = _useState10[1];
|
|
32630
|
+
var _useState11 = React$1.useState('main'),
|
|
32197
32631
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32198
|
-
|
|
32199
|
-
|
|
32200
|
-
var _useState13 = React$1.useState(
|
|
32632
|
+
activeKey = _useState12[0],
|
|
32633
|
+
setActiveKey = _useState12[1]; //默认详情页配置
|
|
32634
|
+
var _useState13 = React$1.useState({}),
|
|
32201
32635
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32202
|
-
|
|
32203
|
-
|
|
32636
|
+
tablesConfigParams = _useState14[0],
|
|
32637
|
+
setTablesConfigParams = _useState14[1];
|
|
32638
|
+
var _useState15 = React$1.useState([]),
|
|
32639
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
32640
|
+
tableJsonEditorValsArr = _useState16[0],
|
|
32641
|
+
setTableJsonEditorValsArr = _useState16[1];
|
|
32204
32642
|
React$1.useEffect(function () {
|
|
32205
32643
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32206
32644
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -32576,11 +33014,11 @@ function getMetaData(_x) {
|
|
|
32576
33014
|
|
|
32577
33015
|
// 获取数据
|
|
32578
33016
|
function _getMetaData() {
|
|
32579
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
32580
|
-
return
|
|
32581
|
-
while (1) switch (_context.
|
|
33017
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
33018
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33019
|
+
while (1) switch (_context.prev = _context.next) {
|
|
32582
33020
|
case 0:
|
|
32583
|
-
return _context.
|
|
33021
|
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
32584
33022
|
umi.request('/basic/entityProperty/listNoPage', {
|
|
32585
33023
|
params: {
|
|
32586
33024
|
'qp-entityId-eq': id
|
|
@@ -32592,6 +33030,9 @@ function _getMetaData() {
|
|
|
32592
33030
|
reject([]);
|
|
32593
33031
|
});
|
|
32594
33032
|
}));
|
|
33033
|
+
case 1:
|
|
33034
|
+
case "end":
|
|
33035
|
+
return _context.stop();
|
|
32595
33036
|
}
|
|
32596
33037
|
}, _callee);
|
|
32597
33038
|
}));
|
|
@@ -32795,11 +33236,11 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32795
33236
|
tableState = _useState4[0],
|
|
32796
33237
|
setTableState = _useState4[1];
|
|
32797
33238
|
var handleOpen = /*#__PURE__*/function () {
|
|
32798
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33239
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32799
33240
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
32800
33241
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
32801
|
-
return
|
|
32802
|
-
while (1) switch (_context.
|
|
33242
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33243
|
+
while (1) switch (_context.prev = _context.next) {
|
|
32803
33244
|
case 0:
|
|
32804
33245
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
32805
33246
|
isSearchForm: props.isSearchForm,
|
|
@@ -32807,16 +33248,16 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32807
33248
|
searchFormData: searchFormData
|
|
32808
33249
|
});
|
|
32809
33250
|
if (requestConfigNew) {
|
|
32810
|
-
_context.
|
|
33251
|
+
_context.next = 3;
|
|
32811
33252
|
break;
|
|
32812
33253
|
}
|
|
32813
|
-
return _context.
|
|
32814
|
-
case
|
|
33254
|
+
return _context.abrupt("return");
|
|
33255
|
+
case 3:
|
|
32815
33256
|
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;
|
|
32816
|
-
_context.
|
|
33257
|
+
_context.next = 6;
|
|
32817
33258
|
return getMetaData(metaDataId);
|
|
32818
|
-
case
|
|
32819
|
-
metaData = _context.
|
|
33259
|
+
case 6:
|
|
33260
|
+
metaData = _context.sent;
|
|
32820
33261
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
32821
33262
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
32822
33263
|
})) || [];
|
|
@@ -32856,8 +33297,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32856
33297
|
// @ts-ignore
|
|
32857
33298
|
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);
|
|
32858
33299
|
}
|
|
32859
|
-
case
|
|
32860
|
-
|
|
33300
|
+
case 14:
|
|
33301
|
+
case "end":
|
|
33302
|
+
return _context.stop();
|
|
32861
33303
|
}
|
|
32862
33304
|
}, _callee);
|
|
32863
33305
|
}));
|
|
@@ -32960,7 +33402,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32960
33402
|
}, [requestConfig, tableState.columns]);
|
|
32961
33403
|
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';
|
|
32962
33404
|
var handleOk = function handleOk(rowData) {
|
|
32963
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
33405
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren13, _queryTableRef$curren14, _queryTableRef$curren15;
|
|
32964
33406
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
32965
33407
|
//多选数据处理
|
|
32966
33408
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -32971,9 +33413,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32971
33413
|
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()) || [];
|
|
32972
33414
|
var realSelectedRows = selectedRows;
|
|
32973
33415
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
32974
|
-
var _queryTableRef$
|
|
33416
|
+
var _queryTableRef$curren10, _queryTableRef$curren11, _queryTableRef$curren12;
|
|
32975
33417
|
// @ts-ignore
|
|
32976
|
-
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33418
|
+
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()) || [];
|
|
32977
33419
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
32978
33420
|
return selectedKesys.includes(s[rowKey]);
|
|
32979
33421
|
});
|
|
@@ -33006,10 +33448,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33006
33448
|
});
|
|
33007
33449
|
}
|
|
33008
33450
|
mappings.map(function (item) {
|
|
33009
|
-
var _props$
|
|
33010
|
-
if (((_props$
|
|
33011
|
-
var _props$
|
|
33012
|
-
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$
|
|
33451
|
+
var _props$customSelector10, _props$customSelector11, _props$customSelector12, _props$customSelector13;
|
|
33452
|
+
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]) {
|
|
33453
|
+
var _props$customSelector14, _props$customSelector15;
|
|
33454
|
+
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];
|
|
33013
33455
|
}
|
|
33014
33456
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
33015
33457
|
});
|
|
@@ -33064,10 +33506,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33064
33506
|
}
|
|
33065
33507
|
props.onCancel();
|
|
33066
33508
|
//@ts-ignore
|
|
33067
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33509
|
+
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();
|
|
33068
33510
|
};
|
|
33069
33511
|
var config = React$1.useMemo(function () {
|
|
33070
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
33512
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx10, _props$ctx10$form;
|
|
33071
33513
|
var returnConfig = {
|
|
33072
33514
|
size: 'small',
|
|
33073
33515
|
needPageHeader: false,
|
|
@@ -33076,7 +33518,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33076
33518
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33077
33519
|
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) {
|
|
33078
33520
|
return v.key || v;
|
|
33079
|
-
})) || (props === null || props === void 0 ? void 0 : (_props$
|
|
33521
|
+
})) || (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))
|
|
33080
33522
|
} : false,
|
|
33081
33523
|
remoteDataSource: remoteDataSource,
|
|
33082
33524
|
fields: tableState.fields,
|
|
@@ -33084,8 +33526,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33084
33526
|
rowKey: rowKey,
|
|
33085
33527
|
tableProps: !isView && {
|
|
33086
33528
|
rowClassName: function rowClassName(record) {
|
|
33087
|
-
var _props$
|
|
33088
|
-
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$
|
|
33529
|
+
var _props$ctx11, _props$value3, _props$ctx12, _props$ctx12$form;
|
|
33530
|
+
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' : '';
|
|
33089
33531
|
},
|
|
33090
33532
|
onRow: function onRow(record) {
|
|
33091
33533
|
return {
|
|
@@ -33130,10 +33572,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33130
33572
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
33131
33573
|
type: "default",
|
|
33132
33574
|
onClick: function onClick() {
|
|
33133
|
-
var _queryTableRef$
|
|
33575
|
+
var _queryTableRef$curren16, _queryTableRef$curren17, _queryTableRef$curren18;
|
|
33134
33576
|
props.onCancel();
|
|
33135
33577
|
//@ts-ignore
|
|
33136
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33578
|
+
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();
|
|
33137
33579
|
}
|
|
33138
33580
|
}, "\u53D6\u6D88"))));
|
|
33139
33581
|
});
|
|
@@ -33357,19 +33799,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33357
33799
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33358
33800
|
handSource = _useState2[0],
|
|
33359
33801
|
setHandSource = _useState2[1];
|
|
33360
|
-
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
33802
|
+
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
33361
33803
|
var resData, data;
|
|
33362
|
-
return
|
|
33363
|
-
while (1) switch (_context.
|
|
33804
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33805
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33364
33806
|
case 0:
|
|
33365
33807
|
if (!(!source && initRequestSource)) {
|
|
33366
|
-
_context.
|
|
33808
|
+
_context.next = 6;
|
|
33367
33809
|
break;
|
|
33368
33810
|
}
|
|
33369
|
-
_context.
|
|
33811
|
+
_context.next = 3;
|
|
33370
33812
|
return initRequestSource();
|
|
33371
|
-
case
|
|
33372
|
-
resData = _context.
|
|
33813
|
+
case 3:
|
|
33814
|
+
resData = _context.sent;
|
|
33373
33815
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
33374
33816
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
33375
33817
|
label: item.text,
|
|
@@ -33377,8 +33819,9 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33377
33819
|
});
|
|
33378
33820
|
})) || [];
|
|
33379
33821
|
setHandSource(data);
|
|
33380
|
-
case
|
|
33381
|
-
|
|
33822
|
+
case 6:
|
|
33823
|
+
case "end":
|
|
33824
|
+
return _context.stop();
|
|
33382
33825
|
}
|
|
33383
33826
|
}, _callee);
|
|
33384
33827
|
})), []);
|
|
@@ -33508,17 +33951,20 @@ function getRegularThresholdRange(_x) {
|
|
|
33508
33951
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
33509
33952
|
}
|
|
33510
33953
|
function _getRegularThresholdRange() {
|
|
33511
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
33512
|
-
return
|
|
33513
|
-
while (1) switch (_context.
|
|
33954
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
33955
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33956
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33514
33957
|
case 0:
|
|
33515
|
-
return _context.
|
|
33958
|
+
return _context.abrupt("return", requestUtil({
|
|
33516
33959
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
33517
33960
|
method: 'POST',
|
|
33518
33961
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
33519
33962
|
queryIdentify: undefined
|
|
33520
33963
|
})
|
|
33521
33964
|
}));
|
|
33965
|
+
case 1:
|
|
33966
|
+
case "end":
|
|
33967
|
+
return _context.stop();
|
|
33522
33968
|
}
|
|
33523
33969
|
}, _callee);
|
|
33524
33970
|
}));
|
|
@@ -33659,24 +34105,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33659
34105
|
};
|
|
33660
34106
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
33661
34107
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
33662
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
34108
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
33663
34109
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
33664
|
-
return
|
|
33665
|
-
while (1) switch (_context.
|
|
34110
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
34111
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33666
34112
|
case 0:
|
|
33667
34113
|
if (queryIdentify) {
|
|
33668
|
-
_context.
|
|
34114
|
+
_context.next = 2;
|
|
33669
34115
|
break;
|
|
33670
34116
|
}
|
|
33671
|
-
return _context.
|
|
33672
|
-
case
|
|
34117
|
+
return _context.abrupt("return");
|
|
34118
|
+
case 2:
|
|
33673
34119
|
thresholdQuery = _this.state.thresholdQuery;
|
|
33674
34120
|
extraRequestUrl = '';
|
|
33675
34121
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
33676
34122
|
if (!queryIdentityInfo.find(function (item) {
|
|
33677
34123
|
return item.identity == propertyCode;
|
|
33678
34124
|
})) {
|
|
33679
|
-
_context.
|
|
34125
|
+
_context.next = 10;
|
|
33680
34126
|
break;
|
|
33681
34127
|
}
|
|
33682
34128
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -33690,15 +34136,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33690
34136
|
if (!needQueryList.some(function (item) {
|
|
33691
34137
|
return !querParams[item] || !querParams[item].length;
|
|
33692
34138
|
})) {
|
|
33693
|
-
_context.
|
|
34139
|
+
_context.next = 9;
|
|
33694
34140
|
break;
|
|
33695
34141
|
}
|
|
33696
|
-
return _context.
|
|
33697
|
-
case
|
|
34142
|
+
return _context.abrupt("return");
|
|
34143
|
+
case 9:
|
|
33698
34144
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
33699
34145
|
return item.identity == propertyCode;
|
|
33700
34146
|
}).requestUrl || '';
|
|
33701
|
-
case
|
|
34147
|
+
case 10:
|
|
33702
34148
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
33703
34149
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
33704
34150
|
querParams = {
|
|
@@ -33709,7 +34155,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33709
34155
|
// querParams = { dictCode: queryIdentify }
|
|
33710
34156
|
}
|
|
33711
34157
|
if (!extraRequestUrl) {
|
|
33712
|
-
_context.
|
|
34158
|
+
_context.next = 16;
|
|
33713
34159
|
break;
|
|
33714
34160
|
}
|
|
33715
34161
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -33748,42 +34194,43 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33748
34194
|
return handleData;
|
|
33749
34195
|
}
|
|
33750
34196
|
});
|
|
33751
|
-
_context.
|
|
34197
|
+
_context.next = 29;
|
|
33752
34198
|
break;
|
|
33753
|
-
case
|
|
34199
|
+
case 16:
|
|
33754
34200
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
33755
|
-
_context.
|
|
34201
|
+
_context.next = 20;
|
|
33756
34202
|
break;
|
|
33757
34203
|
}
|
|
33758
34204
|
_this.setState({
|
|
33759
34205
|
thresholdList: queryIdentify
|
|
33760
34206
|
});
|
|
33761
|
-
_context.
|
|
34207
|
+
_context.next = 29;
|
|
33762
34208
|
break;
|
|
33763
|
-
case
|
|
34209
|
+
case 20:
|
|
33764
34210
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
33765
|
-
_context.
|
|
34211
|
+
_context.next = 24;
|
|
33766
34212
|
break;
|
|
33767
34213
|
}
|
|
33768
34214
|
// TODO待处理
|
|
33769
34215
|
_this.setState({
|
|
33770
34216
|
thresholdList: []
|
|
33771
34217
|
});
|
|
33772
|
-
_context.
|
|
34218
|
+
_context.next = 29;
|
|
33773
34219
|
break;
|
|
33774
|
-
case
|
|
34220
|
+
case 24:
|
|
33775
34221
|
querParams.queryIdentify = queryIdentify;
|
|
33776
|
-
_context.
|
|
34222
|
+
_context.next = 27;
|
|
33777
34223
|
return getRegularThresholdRange(querParams);
|
|
33778
|
-
case
|
|
33779
|
-
res = _context.
|
|
34224
|
+
case 27:
|
|
34225
|
+
res = _context.sent;
|
|
33780
34226
|
if (handleError(res)) {
|
|
33781
34227
|
_this.setState({
|
|
33782
34228
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
33783
34229
|
});
|
|
33784
34230
|
}
|
|
33785
|
-
case
|
|
33786
|
-
|
|
34231
|
+
case 29:
|
|
34232
|
+
case "end":
|
|
34233
|
+
return _context.stop();
|
|
33787
34234
|
}
|
|
33788
34235
|
}, _callee);
|
|
33789
34236
|
}));
|
|
@@ -34615,11 +35062,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34615
35062
|
isAll: true,
|
|
34616
35063
|
needNameAndCode: true,
|
|
34617
35064
|
notChangeOnSelect: true,
|
|
34618
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34619
|
-
return
|
|
34620
|
-
while (1) switch (_context2.
|
|
35065
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35066
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
35067
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
34621
35068
|
case 0:
|
|
34622
|
-
_context2.
|
|
35069
|
+
_context2.next = 2;
|
|
34623
35070
|
return bssula.request({
|
|
34624
35071
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34625
35072
|
method: 'get',
|
|
@@ -34636,8 +35083,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34636
35083
|
return handleData;
|
|
34637
35084
|
}
|
|
34638
35085
|
});
|
|
34639
|
-
case
|
|
34640
|
-
return _context2.
|
|
35086
|
+
case 2:
|
|
35087
|
+
return _context2.abrupt("return", _context2.sent);
|
|
35088
|
+
case 3:
|
|
35089
|
+
case "end":
|
|
35090
|
+
return _context2.stop();
|
|
34641
35091
|
}
|
|
34642
35092
|
}, _callee2);
|
|
34643
35093
|
})),
|
|
@@ -34661,11 +35111,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34661
35111
|
isAll: true,
|
|
34662
35112
|
needNameAndCode: true,
|
|
34663
35113
|
notChangeOnSelect: true,
|
|
34664
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34665
|
-
return
|
|
34666
|
-
while (1) switch (_context3.
|
|
35114
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
35115
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
35116
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
34667
35117
|
case 0:
|
|
34668
|
-
_context3.
|
|
35118
|
+
_context3.next = 2;
|
|
34669
35119
|
return bssula.request({
|
|
34670
35120
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34671
35121
|
method: 'get',
|
|
@@ -34682,8 +35132,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34682
35132
|
return handleData;
|
|
34683
35133
|
}
|
|
34684
35134
|
});
|
|
34685
|
-
case
|
|
34686
|
-
return _context3.
|
|
35135
|
+
case 2:
|
|
35136
|
+
return _context3.abrupt("return", _context3.sent);
|
|
35137
|
+
case 3:
|
|
35138
|
+
case "end":
|
|
35139
|
+
return _context3.stop();
|
|
34687
35140
|
}
|
|
34688
35141
|
}, _callee3);
|
|
34689
35142
|
})),
|
|
@@ -34709,11 +35162,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34709
35162
|
isAll: true,
|
|
34710
35163
|
needNameAndCode: true,
|
|
34711
35164
|
notChangeOnSelect: true,
|
|
34712
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34713
|
-
return
|
|
34714
|
-
while (1) switch (_context4.
|
|
35165
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
35166
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
35167
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
34715
35168
|
case 0:
|
|
34716
|
-
_context4.
|
|
35169
|
+
_context4.next = 2;
|
|
34717
35170
|
return bssula.request({
|
|
34718
35171
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34719
35172
|
method: 'get',
|
|
@@ -34730,8 +35183,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34730
35183
|
return handleData;
|
|
34731
35184
|
}
|
|
34732
35185
|
});
|
|
34733
|
-
case
|
|
34734
|
-
return _context4.
|
|
35186
|
+
case 2:
|
|
35187
|
+
return _context4.abrupt("return", _context4.sent);
|
|
35188
|
+
case 3:
|
|
35189
|
+
case "end":
|
|
35190
|
+
return _context4.stop();
|
|
34735
35191
|
}
|
|
34736
35192
|
}, _callee4);
|
|
34737
35193
|
})),
|
|
@@ -35418,8 +35874,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35418
35874
|
}
|
|
35419
35875
|
}));
|
|
35420
35876
|
} else {
|
|
35421
|
-
var
|
|
35422
|
-
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((
|
|
35877
|
+
var _values10;
|
|
35878
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
35423
35879
|
return {
|
|
35424
35880
|
key: s,
|
|
35425
35881
|
label: valueNames[vIndex],
|
|
@@ -35697,8 +36153,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35697
36153
|
}
|
|
35698
36154
|
}));
|
|
35699
36155
|
} else {
|
|
35700
|
-
var
|
|
35701
|
-
var
|
|
36156
|
+
var _values11;
|
|
36157
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
35702
36158
|
return {
|
|
35703
36159
|
key: s,
|
|
35704
36160
|
label: valueNames[vIndex],
|
|
@@ -35720,7 +36176,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35720
36176
|
} : {}),
|
|
35721
36177
|
disabled: disabled,
|
|
35722
36178
|
labelInValue: true,
|
|
35723
|
-
value:
|
|
36179
|
+
value: _currentValue10,
|
|
35724
36180
|
requestConfig: {
|
|
35725
36181
|
filterInit: 'qp-code-in'
|
|
35726
36182
|
},
|
|
@@ -35813,8 +36269,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35813
36269
|
}
|
|
35814
36270
|
}));
|
|
35815
36271
|
} else {
|
|
35816
|
-
var
|
|
35817
|
-
var
|
|
36272
|
+
var _values12;
|
|
36273
|
+
var _currentValue11 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
35818
36274
|
return {
|
|
35819
36275
|
key: s,
|
|
35820
36276
|
label: valueNames[vIndex],
|
|
@@ -35836,7 +36292,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35836
36292
|
} : {}),
|
|
35837
36293
|
disabled: disabled,
|
|
35838
36294
|
labelInValue: true,
|
|
35839
|
-
value:
|
|
36295
|
+
value: _currentValue11,
|
|
35840
36296
|
requestConfig: {
|
|
35841
36297
|
filterInit: 'qp-code-in'
|
|
35842
36298
|
},
|
|
@@ -35929,8 +36385,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35929
36385
|
}
|
|
35930
36386
|
}));
|
|
35931
36387
|
} else {
|
|
35932
|
-
var
|
|
35933
|
-
var
|
|
36388
|
+
var _values13;
|
|
36389
|
+
var _currentValue12 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
|
|
35934
36390
|
return {
|
|
35935
36391
|
key: s,
|
|
35936
36392
|
label: valueNames[vIndex],
|
|
@@ -35952,7 +36408,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35952
36408
|
} : {}),
|
|
35953
36409
|
disabled: disabled,
|
|
35954
36410
|
labelInValue: true,
|
|
35955
|
-
value:
|
|
36411
|
+
value: _currentValue12,
|
|
35956
36412
|
requestConfig: {
|
|
35957
36413
|
filterInit: 'qp-brandCode-in'
|
|
35958
36414
|
},
|
|
@@ -36143,8 +36599,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36143
36599
|
}
|
|
36144
36600
|
}));
|
|
36145
36601
|
} else {
|
|
36146
|
-
var
|
|
36147
|
-
var
|
|
36602
|
+
var _values14;
|
|
36603
|
+
var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
|
|
36148
36604
|
return {
|
|
36149
36605
|
key: s,
|
|
36150
36606
|
label: valueNames[vIndex]
|
|
@@ -36172,7 +36628,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36172
36628
|
isSearchForm: true,
|
|
36173
36629
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36174
36630
|
disabled: disabled,
|
|
36175
|
-
value:
|
|
36631
|
+
value: _currentValue13,
|
|
36176
36632
|
onChange: function onChange(value, sourceList) {
|
|
36177
36633
|
if (dataInputBusinessType === 12) {
|
|
36178
36634
|
var _value$map3, _sourceList$filter3;
|
|
@@ -36492,9 +36948,9 @@ var App$1 = function App(_ref) {
|
|
|
36492
36948
|
UpdateState(res);
|
|
36493
36949
|
};
|
|
36494
36950
|
var _useState9 = React$1.useState(false),
|
|
36495
|
-
|
|
36496
|
-
isModalVisible =
|
|
36497
|
-
setIsModalVisible =
|
|
36951
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
36952
|
+
isModalVisible = _useState10[0],
|
|
36953
|
+
setIsModalVisible = _useState10[1];
|
|
36498
36954
|
var showModal = function showModal() {
|
|
36499
36955
|
setIsModalVisible(true);
|
|
36500
36956
|
};
|
|
@@ -36975,26 +37431,27 @@ function RenderCompItem(props) {
|
|
|
36975
37431
|
dictData = _useState2[0],
|
|
36976
37432
|
setDictData = _useState2[1];
|
|
36977
37433
|
var getDictData = /*#__PURE__*/function () {
|
|
36978
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
37434
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
36979
37435
|
var _data$map;
|
|
36980
37436
|
var data;
|
|
36981
|
-
return
|
|
36982
|
-
while (1) switch (_context.
|
|
37437
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
37438
|
+
while (1) switch (_context.prev = _context.next) {
|
|
36983
37439
|
case 0:
|
|
36984
|
-
_context.
|
|
37440
|
+
_context.next = 2;
|
|
36985
37441
|
return bssula.request({
|
|
36986
37442
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
36987
37443
|
});
|
|
36988
|
-
case
|
|
36989
|
-
data = _context.
|
|
37444
|
+
case 2:
|
|
37445
|
+
data = _context.sent;
|
|
36990
37446
|
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) {
|
|
36991
37447
|
return {
|
|
36992
37448
|
text: item.dictItemName,
|
|
36993
37449
|
value: item.dictItemCode
|
|
36994
37450
|
};
|
|
36995
37451
|
}));
|
|
36996
|
-
case
|
|
36997
|
-
|
|
37452
|
+
case 4:
|
|
37453
|
+
case "end":
|
|
37454
|
+
return _context.stop();
|
|
36998
37455
|
}
|
|
36999
37456
|
}, _callee);
|
|
37000
37457
|
}));
|
|
@@ -37235,11 +37692,11 @@ function RenderCompItem(props) {
|
|
|
37235
37692
|
needNameAndCode: true,
|
|
37236
37693
|
notChangeOnSelect: true,
|
|
37237
37694
|
initRequestSource: function () {
|
|
37238
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
37239
|
-
return
|
|
37240
|
-
while (1) switch (_context2.
|
|
37695
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
37696
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
37697
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
37241
37698
|
case 0:
|
|
37242
|
-
_context2.
|
|
37699
|
+
_context2.next = 2;
|
|
37243
37700
|
return bssula.request({
|
|
37244
37701
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
37245
37702
|
method: 'get',
|
|
@@ -37257,8 +37714,11 @@ function RenderCompItem(props) {
|
|
|
37257
37714
|
return handleData;
|
|
37258
37715
|
}
|
|
37259
37716
|
});
|
|
37260
|
-
case
|
|
37261
|
-
return _context2.
|
|
37717
|
+
case 2:
|
|
37718
|
+
return _context2.abrupt("return", _context2.sent);
|
|
37719
|
+
case 3:
|
|
37720
|
+
case "end":
|
|
37721
|
+
return _context2.stop();
|
|
37262
37722
|
}
|
|
37263
37723
|
}, _callee2);
|
|
37264
37724
|
}));
|
|
@@ -39308,13 +39768,13 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
39308
39768
|
ruleTypeData = _useState8[0],
|
|
39309
39769
|
setRuleTypeData = _useState8[1];
|
|
39310
39770
|
var _useState9 = React$1.useState([]),
|
|
39311
|
-
|
|
39312
|
-
ruleReturnConfig =
|
|
39313
|
-
setRuleReturnConfig =
|
|
39314
|
-
var
|
|
39315
|
-
|
|
39316
|
-
templateData =
|
|
39317
|
-
setTemplateData =
|
|
39771
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
39772
|
+
ruleReturnConfig = _useState10[0],
|
|
39773
|
+
setRuleReturnConfig = _useState10[1];
|
|
39774
|
+
var _useState11 = React$1.useState({}),
|
|
39775
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
39776
|
+
templateData = _useState12[0],
|
|
39777
|
+
setTemplateData = _useState12[1];
|
|
39318
39778
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
39319
39779
|
bssula.request({
|
|
39320
39780
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -39650,25 +40110,25 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
39650
40110
|
regularDataList = _useState8[0],
|
|
39651
40111
|
setRegularDataList = _useState8[1];
|
|
39652
40112
|
var _useState9 = React$1.useState([]),
|
|
39653
|
-
|
|
39654
|
-
baseRuleDetailList =
|
|
39655
|
-
setBaseRuleDetailList =
|
|
39656
|
-
var
|
|
39657
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
39658
|
-
systemVariableList = _useState10[0],
|
|
39659
|
-
setSystemVariableList = _useState10[1];
|
|
39660
|
-
var _useState11 = React$1.useState(false),
|
|
40113
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
40114
|
+
baseRuleDetailList = _useState10[0],
|
|
40115
|
+
setBaseRuleDetailList = _useState10[1]; // 规则实例详情集合
|
|
40116
|
+
var _useState11 = React$1.useState([]),
|
|
39661
40117
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
39662
|
-
|
|
39663
|
-
|
|
40118
|
+
systemVariableList = _useState12[0],
|
|
40119
|
+
setSystemVariableList = _useState12[1];
|
|
39664
40120
|
var _useState13 = React$1.useState(false),
|
|
39665
40121
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
39666
|
-
|
|
39667
|
-
|
|
40122
|
+
isGetDefRuleDataRes = _useState14[0],
|
|
40123
|
+
setIsGetDefRuleDataRes = _useState14[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
39668
40124
|
var _useState15 = React$1.useState(false),
|
|
39669
40125
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
39670
|
-
|
|
39671
|
-
|
|
40126
|
+
isGetRuleDataRes = _useState16[0],
|
|
40127
|
+
setIsGetRuleDataRes = _useState16[1];
|
|
40128
|
+
var _useState17 = React$1.useState(false),
|
|
40129
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
40130
|
+
groupOtherPriorityList = _useState18[0],
|
|
40131
|
+
setGroupOtherPriorityList = _useState18[1];
|
|
39672
40132
|
var baseRuleRef = React$1.useRef();
|
|
39673
40133
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
39674
40134
|
// 查询规则组下所有规则实例
|