@bit-sun/business-component 4.2.0-alpha.6.1 → 4.2.0-alpha.6.2
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.d.ts +0 -1
- package/dist/index.esm.js +1092 -860
- package/dist/index.js +1091 -861
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +19 -18
- package/dist/utils/utils.d.ts +0 -41
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +93 -2
- package/src/index.ts +0 -2
- package/src/utils/utils.ts +1 -41
- package/dist/components/Business/SystemLog/index.d.ts +0 -78
- package/src/components/Business/SystemLog/index.md +0 -37
- package/src/components/Business/SystemLog/index.tsx +0 -87
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
|
+
}
|
|
338
487
|
}
|
|
339
|
-
|
|
488
|
+
},
|
|
489
|
+
abrupt: function (t, e) {
|
|
490
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
491
|
+
var o = this.tryEntries[r];
|
|
492
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
493
|
+
var i = o;
|
|
494
|
+
break;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
498
|
+
var a = i ? i.completion : {};
|
|
499
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
500
|
+
},
|
|
501
|
+
complete: function (t, e) {
|
|
502
|
+
if ("throw" === t.type) throw t.arg;
|
|
503
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
504
|
+
},
|
|
505
|
+
finish: function (t) {
|
|
506
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
507
|
+
var r = this.tryEntries[e];
|
|
508
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
catch: function (t) {
|
|
512
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
513
|
+
var r = this.tryEntries[e];
|
|
514
|
+
if (r.tryLoc === t) {
|
|
515
|
+
var n = r.completion;
|
|
516
|
+
if ("throw" === n.type) {
|
|
517
|
+
var o = n.arg;
|
|
518
|
+
resetTryEntry(r);
|
|
519
|
+
}
|
|
520
|
+
return o;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
throw Error("illegal catch attempt");
|
|
524
|
+
},
|
|
525
|
+
delegateYield: function (e, r, n) {
|
|
526
|
+
return this.delegate = {
|
|
527
|
+
iterator: values(e),
|
|
528
|
+
resultName: r,
|
|
529
|
+
nextLoc: n
|
|
530
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
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) {
|
|
@@ -1286,45 +1477,6 @@ var handleConvertResponse = function handleConvertResponse(items, total) {
|
|
|
1286
1477
|
var noEmptyArray = function noEmptyArray(targetObj) {
|
|
1287
1478
|
return Array.isArray(targetObj) && targetObj.length !== 0;
|
|
1288
1479
|
};
|
|
1289
|
-
var formContainerAndItemLayout = function formContainerAndItemLayout(type, title, name) {
|
|
1290
|
-
return type === 'form' ? {
|
|
1291
|
-
container: {
|
|
1292
|
-
type: 'card',
|
|
1293
|
-
props: {
|
|
1294
|
-
title: title,
|
|
1295
|
-
id: Math.random(),
|
|
1296
|
-
level: 1,
|
|
1297
|
-
name: name
|
|
1298
|
-
}
|
|
1299
|
-
},
|
|
1300
|
-
itemLayout: {
|
|
1301
|
-
span: 8,
|
|
1302
|
-
labelCol: {
|
|
1303
|
-
span: 8
|
|
1304
|
-
},
|
|
1305
|
-
wrapperCol: {
|
|
1306
|
-
span: 18
|
|
1307
|
-
}
|
|
1308
|
-
}
|
|
1309
|
-
} : {
|
|
1310
|
-
container: {
|
|
1311
|
-
type: 'card',
|
|
1312
|
-
props: {
|
|
1313
|
-
title: title,
|
|
1314
|
-
id: Math.random(),
|
|
1315
|
-
level: 1,
|
|
1316
|
-
bordered: null,
|
|
1317
|
-
isWhiteCard: true,
|
|
1318
|
-
name: name
|
|
1319
|
-
}
|
|
1320
|
-
},
|
|
1321
|
-
itemLayout: {
|
|
1322
|
-
wrapperCol: {
|
|
1323
|
-
span: 0
|
|
1324
|
-
}
|
|
1325
|
-
}
|
|
1326
|
-
};
|
|
1327
|
-
};
|
|
1328
1480
|
|
|
1329
1481
|
// 判断某个按钮/菜单 是否有权限,返回布尔值
|
|
1330
1482
|
var authFunc = function authFunc(code) {
|
|
@@ -1411,22 +1563,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1411
1563
|
// sheepMap是表头字段中英文映射
|
|
1412
1564
|
// sheetCount:表的数量,默认一张
|
|
1413
1565
|
var resolveFile = /*#__PURE__*/function () {
|
|
1414
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
1566
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1415
1567
|
var config,
|
|
1416
1568
|
data,
|
|
1417
1569
|
_args = arguments;
|
|
1418
|
-
return
|
|
1419
|
-
while (1) switch (_context.
|
|
1570
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1571
|
+
while (1) switch (_context.prev = _context.next) {
|
|
1420
1572
|
case 0:
|
|
1421
1573
|
config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
|
|
1422
1574
|
sheetMap: [],
|
|
1423
1575
|
sheetCount: 1
|
|
1424
1576
|
};
|
|
1425
|
-
_context.
|
|
1577
|
+
_context.next = 3;
|
|
1426
1578
|
return analyseExcelToByte(file);
|
|
1427
|
-
case
|
|
1428
|
-
data = _context.
|
|
1429
|
-
return _context.
|
|
1579
|
+
case 3:
|
|
1580
|
+
data = _context.sent;
|
|
1581
|
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
1430
1582
|
var workbook = XLSX.read(data, {
|
|
1431
1583
|
type: 'binary'
|
|
1432
1584
|
});
|
|
@@ -1438,6 +1590,9 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1438
1590
|
var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
|
|
1439
1591
|
resolve(outdata);
|
|
1440
1592
|
}));
|
|
1593
|
+
case 5:
|
|
1594
|
+
case "end":
|
|
1595
|
+
return _context.stop();
|
|
1441
1596
|
}
|
|
1442
1597
|
}, _callee);
|
|
1443
1598
|
}));
|
|
@@ -1447,40 +1602,41 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1447
1602
|
}();
|
|
1448
1603
|
//读取文件
|
|
1449
1604
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1450
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
1605
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1451
1606
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1452
|
-
return
|
|
1453
|
-
while (1) switch (_context2.
|
|
1607
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1608
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
1454
1609
|
case 0:
|
|
1455
1610
|
_ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
|
|
1456
1611
|
if (!(Array.isArray(fileList) && fileList.length > 0)) {
|
|
1457
|
-
_context2.
|
|
1612
|
+
_context2.next = 15;
|
|
1458
1613
|
break;
|
|
1459
1614
|
}
|
|
1460
1615
|
nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
|
|
1461
|
-
_context2.
|
|
1616
|
+
_context2.next = 5;
|
|
1462
1617
|
return resolveFile(nowFile.originFileObj, {
|
|
1463
1618
|
sheetMap: fieldMappingReverse(sheetMap),
|
|
1464
1619
|
sheetCount: 1
|
|
1465
1620
|
});
|
|
1466
|
-
case
|
|
1467
|
-
data2 = _context2.
|
|
1621
|
+
case 5:
|
|
1622
|
+
data2 = _context2.sent;
|
|
1468
1623
|
data = data2[0];
|
|
1469
1624
|
if (data.length) {
|
|
1470
|
-
_context2.
|
|
1625
|
+
_context2.next = 10;
|
|
1471
1626
|
break;
|
|
1472
1627
|
}
|
|
1473
1628
|
antd.message.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
|
|
1474
|
-
return _context2.
|
|
1475
|
-
case
|
|
1629
|
+
return _context2.abrupt("return");
|
|
1630
|
+
case 10:
|
|
1476
1631
|
if (callback) callback(data);
|
|
1477
1632
|
!callback && antd.message.success("\u5BFC\u5165\u6210\u529F");
|
|
1478
|
-
return _context2.
|
|
1479
|
-
case
|
|
1633
|
+
return _context2.abrupt("return", data);
|
|
1634
|
+
case 15:
|
|
1480
1635
|
antd.message.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
|
|
1481
|
-
return _context2.
|
|
1482
|
-
case
|
|
1483
|
-
|
|
1636
|
+
return _context2.abrupt("return");
|
|
1637
|
+
case 17:
|
|
1638
|
+
case "end":
|
|
1639
|
+
return _context2.stop();
|
|
1484
1640
|
}
|
|
1485
1641
|
}, _callee2);
|
|
1486
1642
|
}));
|
|
@@ -2432,14 +2588,17 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2432
2588
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2433
2589
|
};
|
|
2434
2590
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2435
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
2436
|
-
return
|
|
2437
|
-
while (1) switch (_context.
|
|
2591
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2592
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2593
|
+
while (1) switch (_context.prev = _context.next) {
|
|
2438
2594
|
case 0:
|
|
2439
|
-
return _context.
|
|
2595
|
+
return _context.abrupt("return", Promise.resolve({
|
|
2440
2596
|
data: response,
|
|
2441
2597
|
status: response.status
|
|
2442
2598
|
}));
|
|
2599
|
+
case 1:
|
|
2600
|
+
case "end":
|
|
2601
|
+
return _context.stop();
|
|
2443
2602
|
}
|
|
2444
2603
|
}, _callee);
|
|
2445
2604
|
}));
|
|
@@ -4582,27 +4741,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4582
4741
|
popvalue = _useState8[0],
|
|
4583
4742
|
setPopValue = _useState8[1];
|
|
4584
4743
|
var _useState9 = React$1.useState([]),
|
|
4585
|
-
|
|
4586
|
-
source =
|
|
4587
|
-
setSource =
|
|
4744
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
4745
|
+
source = _useState10[0],
|
|
4746
|
+
setSource = _useState10[1];
|
|
4588
4747
|
var _useDebounceFn = ahooks.useDebounceFn(function () {
|
|
4589
4748
|
getData();
|
|
4590
4749
|
}, {
|
|
4591
4750
|
wait: 1000
|
|
4592
4751
|
}),
|
|
4593
4752
|
run = _useDebounceFn.run;
|
|
4594
|
-
var
|
|
4595
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
4596
|
-
fetching = _useState10[0],
|
|
4597
|
-
setFetching = _useState10[1];
|
|
4598
|
-
var _useState11 = React$1.useState(''),
|
|
4753
|
+
var _useState11 = React$1.useState(false),
|
|
4599
4754
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
var _useState13 = React$1.useState(
|
|
4755
|
+
fetching = _useState12[0],
|
|
4756
|
+
setFetching = _useState12[1];
|
|
4757
|
+
var _useState13 = React$1.useState(''),
|
|
4603
4758
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4604
|
-
|
|
4605
|
-
|
|
4759
|
+
searchValue = _useState14[0],
|
|
4760
|
+
setSearchValue = _useState14[1];
|
|
4761
|
+
var _useState15 = React$1.useState(resultSourceKey),
|
|
4762
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
4763
|
+
uniqueValue = _useState16[0],
|
|
4764
|
+
setUniqueValue = _useState16[1];
|
|
4606
4765
|
React$1.useEffect(function () {
|
|
4607
4766
|
setPopValue(value);
|
|
4608
4767
|
onValueChange(value);
|
|
@@ -5019,21 +5178,21 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5019
5178
|
notCommonProperty = _useState8[0],
|
|
5020
5179
|
setNotCommonProperty = _useState8[1];
|
|
5021
5180
|
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([]),
|
|
5181
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
5182
|
+
visible = _useState10[0],
|
|
5183
|
+
setVisible = _useState10[1];
|
|
5184
|
+
var _useState11 = React$1.useState(false),
|
|
5030
5185
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
var _useState13 = React$1.useState(
|
|
5186
|
+
showNotCommon = _useState12[0],
|
|
5187
|
+
setShowNotCommon = _useState12[1]; // 是否展示非常用属性
|
|
5188
|
+
var _useState13 = React$1.useState([]),
|
|
5034
5189
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5035
|
-
|
|
5036
|
-
|
|
5190
|
+
classifyOptionList = _useState14[0],
|
|
5191
|
+
setClassifyOptionList = _useState14[1];
|
|
5192
|
+
var _useState15 = React$1.useState('1'),
|
|
5193
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
5194
|
+
listKey = _useState16[0],
|
|
5195
|
+
setListKey = _useState16[1];
|
|
5037
5196
|
React$1.useEffect(function () {
|
|
5038
5197
|
requestUtil({
|
|
5039
5198
|
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
@@ -5412,29 +5571,29 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5412
5571
|
scrollPage = _useState8[0],
|
|
5413
5572
|
setScrollPage = _useState8[1];
|
|
5414
5573
|
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(''),
|
|
5574
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
5575
|
+
itemsTotal = _useState10[0],
|
|
5576
|
+
setItemsTotal = _useState10[1];
|
|
5577
|
+
var _useState11 = React$1.useState(false),
|
|
5423
5578
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
var _useState13 = React$1.useState(
|
|
5579
|
+
fetching = _useState12[0],
|
|
5580
|
+
setFetching = _useState12[1];
|
|
5581
|
+
var _useState13 = React$1.useState(''),
|
|
5427
5582
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
var _useState15 = React$1.useState(
|
|
5583
|
+
searchValue = _useState14[0],
|
|
5584
|
+
setSearchValue = _useState14[1];
|
|
5585
|
+
var _useState15 = React$1.useState(false),
|
|
5431
5586
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
var _useState17 = React$1.useState(
|
|
5587
|
+
isModalVisible = _useState16[0],
|
|
5588
|
+
setIsModalVisible = _useState16[1];
|
|
5589
|
+
var _useState17 = React$1.useState(initVal),
|
|
5435
5590
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5436
|
-
|
|
5437
|
-
|
|
5591
|
+
popvalue = _useState18[0],
|
|
5592
|
+
setPopValue = _useState18[1];
|
|
5593
|
+
var _useState19 = React$1.useState(resultSourceKey),
|
|
5594
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5595
|
+
uniqueValue = _useState20[0],
|
|
5596
|
+
setUniqueValue = _useState20[1];
|
|
5438
5597
|
var _useDebounceFn = ahooks.useDebounceFn(function (v) {
|
|
5439
5598
|
// 优化搜索参数 支持传多个
|
|
5440
5599
|
var searchParams = {};
|
|
@@ -5463,58 +5622,58 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5463
5622
|
var _Form$useForm = antd.Form.useForm(),
|
|
5464
5623
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5465
5624
|
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
5625
|
var _useState21 = React$1.useState(true),
|
|
5471
5626
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
var _useState23 = React$1.useState(
|
|
5627
|
+
collapsed = _useState22[0],
|
|
5628
|
+
setCollapsed = _useState22[1];
|
|
5629
|
+
var _useState23 = React$1.useState(true),
|
|
5475
5630
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
var _useState25 = React$1.useState(
|
|
5631
|
+
caretLeftFlag = _useState24[0],
|
|
5632
|
+
setCaretLeftFlag = _useState24[1];
|
|
5633
|
+
var _useState25 = React$1.useState([]),
|
|
5479
5634
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
var _useState27 = React$1.useState(
|
|
5635
|
+
tableData = _useState26[0],
|
|
5636
|
+
setTableData = _useState26[1];
|
|
5637
|
+
var _useState27 = React$1.useState(tableInitPagination),
|
|
5483
5638
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5484
|
-
|
|
5485
|
-
|
|
5639
|
+
tablePagination = _useState28[0],
|
|
5640
|
+
setTablePagination = _useState28[1];
|
|
5486
5641
|
var _useState29 = React$1.useState([]),
|
|
5487
5642
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
var _useState31 = React$1.useState(
|
|
5643
|
+
selectedRowKeys = _useState30[0],
|
|
5644
|
+
setSelectedRowKeys = _useState30[1];
|
|
5645
|
+
var _useState31 = React$1.useState([]),
|
|
5491
5646
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5492
|
-
|
|
5493
|
-
|
|
5647
|
+
selectedRows = _useState32[0],
|
|
5648
|
+
setSelectedRows = _useState32[1];
|
|
5494
5649
|
var _useState33 = React$1.useState(false),
|
|
5495
5650
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
var _useState35 = React$1.useState(
|
|
5651
|
+
checkedAll = _useState34[0],
|
|
5652
|
+
setCheckedAll = _useState34[1];
|
|
5653
|
+
var _useState35 = React$1.useState(false),
|
|
5499
5654
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
var _useState37 = React$1.useState(
|
|
5655
|
+
indeterminate = _useState36[0],
|
|
5656
|
+
setIndeterminate = _useState36[1];
|
|
5657
|
+
var _useState37 = React$1.useState({}),
|
|
5503
5658
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
var _useState39 = React$1.useState(
|
|
5659
|
+
tableFormParams = _useState38[0],
|
|
5660
|
+
setTableFormParams = _useState38[1];
|
|
5661
|
+
var _useState39 = React$1.useState(false),
|
|
5507
5662
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
var _useState41 = React$1.useState(
|
|
5663
|
+
tooltipVisible = _useState40[0],
|
|
5664
|
+
setTooltipVisible = _useState40[1];
|
|
5665
|
+
var _useState41 = React$1.useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5511
5666
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5512
|
-
|
|
5513
|
-
|
|
5667
|
+
tableShowColumns = _useState42[0],
|
|
5668
|
+
setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5514
5669
|
var _useState43 = React$1.useState(false),
|
|
5515
5670
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5516
|
-
|
|
5517
|
-
|
|
5671
|
+
confirmLoading = _useState44[0],
|
|
5672
|
+
setConfirmLoading = _useState44[1];
|
|
5673
|
+
var _useState45 = React$1.useState(false),
|
|
5674
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
|
5675
|
+
modalSearched = _useState46[0],
|
|
5676
|
+
setModalSearched = _useState46[1];
|
|
5518
5677
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5519
5678
|
setItems(list);
|
|
5520
5679
|
setItemsTotal(total);
|
|
@@ -5984,7 +6143,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5984
6143
|
})) || [];
|
|
5985
6144
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
5986
6145
|
return searchList.map(function (i, index) {
|
|
5987
|
-
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$
|
|
6146
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
|
|
5988
6147
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
5989
6148
|
span: ColSpan,
|
|
5990
6149
|
key: i
|
|
@@ -6082,7 +6241,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6082
6241
|
disabled: setDisabled(i.name)
|
|
6083
6242
|
}))));
|
|
6084
6243
|
}
|
|
6085
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6244
|
+
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
6245
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6087
6246
|
span: ColSpan,
|
|
6088
6247
|
key: i.name
|
|
@@ -6096,7 +6255,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6096
6255
|
}
|
|
6097
6256
|
})));
|
|
6098
6257
|
}
|
|
6099
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6258
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
|
|
6100
6259
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6101
6260
|
span: ColSpan,
|
|
6102
6261
|
key: i.name
|
|
@@ -6106,8 +6265,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6106
6265
|
key: i.name
|
|
6107
6266
|
}, /*#__PURE__*/React__default['default'].createElement(PropertySelector, null)));
|
|
6108
6267
|
}
|
|
6109
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6110
|
-
var _i$
|
|
6268
|
+
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') {
|
|
6269
|
+
var _i$field13;
|
|
6111
6270
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6112
6271
|
span: ColSpan,
|
|
6113
6272
|
key: i.name
|
|
@@ -6120,9 +6279,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6120
6279
|
width: '100%'
|
|
6121
6280
|
},
|
|
6122
6281
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6123
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6282
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
|
|
6124
6283
|
}
|
|
6125
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6284
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
|
|
6126
6285
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6127
6286
|
span: ColSpan,
|
|
6128
6287
|
key: i.name
|
|
@@ -6151,7 +6310,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6151
6310
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6152
6311
|
allowClear: true,
|
|
6153
6312
|
maxLength: 100
|
|
6154
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6313
|
+
}, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
|
|
6155
6314
|
disabled: setDisabled(i.name)
|
|
6156
6315
|
}))));
|
|
6157
6316
|
});
|
|
@@ -7471,132 +7630,135 @@ var AddSelect = function AddSelect(props) {
|
|
|
7471
7630
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7472
7631
|
form = _Form$useForm2[0];
|
|
7473
7632
|
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([]),
|
|
7633
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
7634
|
+
tableSearchForm = _useState10[0],
|
|
7635
|
+
setTableSearchForm = _useState10[1];
|
|
7636
|
+
var _useState11 = React$1.useState(true),
|
|
7482
7637
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7483
|
-
|
|
7484
|
-
|
|
7485
|
-
var _useState13 = React$1.useState(
|
|
7638
|
+
caretLeftFlag = _useState12[0],
|
|
7639
|
+
setCaretLeftFlag = _useState12[1];
|
|
7640
|
+
var _useState13 = React$1.useState([]),
|
|
7641
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
7642
|
+
tableData = _useState14[0],
|
|
7643
|
+
setTableData = _useState14[1];
|
|
7644
|
+
var _useState15 = React$1.useState(_objectSpread2({
|
|
7486
7645
|
total: 0,
|
|
7487
7646
|
size: "small",
|
|
7488
7647
|
current: 1,
|
|
7489
7648
|
pageSize: tableInitPageSize
|
|
7490
7649
|
}, 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
7650
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7496
|
-
|
|
7497
|
-
|
|
7498
|
-
var _useState17 = React$1.useState(
|
|
7651
|
+
tablePagination = _useState16[0],
|
|
7652
|
+
setTablePagination = _useState16[1];
|
|
7653
|
+
var _useState17 = React$1.useState([]),
|
|
7499
7654
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
var _useState19 = React$1.useState(
|
|
7655
|
+
selectedRowKeys = _useState18[0],
|
|
7656
|
+
setSelectedRowKeys = _useState18[1];
|
|
7657
|
+
var _useState19 = React$1.useState({}),
|
|
7503
7658
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7504
|
-
|
|
7505
|
-
|
|
7659
|
+
tableFormParams = _useState20[0],
|
|
7660
|
+
setTableFormParams = _useState20[1];
|
|
7506
7661
|
var _useState21 = React$1.useState(false),
|
|
7507
7662
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7508
|
-
|
|
7509
|
-
|
|
7510
|
-
var _useState23 = React$1.useState(
|
|
7663
|
+
confirmLoading = _useState22[0],
|
|
7664
|
+
setConfirmLoading = _useState22[1];
|
|
7665
|
+
var _useState23 = React$1.useState(false),
|
|
7511
7666
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7512
|
-
|
|
7513
|
-
|
|
7667
|
+
confirmContinueLoading = _useState24[0],
|
|
7668
|
+
setConfirmContinueLoading = _useState24[1];
|
|
7514
7669
|
var _useState25 = React$1.useState([]),
|
|
7515
7670
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7516
|
-
|
|
7517
|
-
|
|
7671
|
+
selectColumns = _useState26[0],
|
|
7672
|
+
setSelectColumns = _useState26[1];
|
|
7518
7673
|
var _useState27 = React$1.useState([]),
|
|
7519
7674
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7520
|
-
|
|
7521
|
-
|
|
7675
|
+
showColumns = _useState28[0],
|
|
7676
|
+
setShowColumns = _useState28[1];
|
|
7522
7677
|
var _useState29 = React$1.useState([]),
|
|
7523
7678
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7524
|
-
|
|
7525
|
-
|
|
7679
|
+
tableColumns = _useState30[0],
|
|
7680
|
+
setTableColumns = _useState30[1];
|
|
7681
|
+
var _useState31 = React$1.useState([]),
|
|
7682
|
+
_useState32 = _slicedToArray(_useState31, 2),
|
|
7683
|
+
showToChooseColumns = _useState32[0],
|
|
7684
|
+
setShowToChooseColumns = _useState32[1];
|
|
7526
7685
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7527
7686
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7528
7687
|
// FIXME: 特殊业务逻辑
|
|
7529
7688
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7530
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7531
|
-
var result
|
|
7532
|
-
return
|
|
7533
|
-
while (1) switch (_context.
|
|
7689
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7690
|
+
var result;
|
|
7691
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7692
|
+
while (1) switch (_context.prev = _context.next) {
|
|
7534
7693
|
case 0:
|
|
7535
7694
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7536
7695
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7537
7696
|
}))) {
|
|
7538
|
-
_context.
|
|
7697
|
+
_context.next = 3;
|
|
7539
7698
|
break;
|
|
7540
7699
|
}
|
|
7541
7700
|
antd.message.warning('相同skc配码不可设置相同哦');
|
|
7542
|
-
return _context.
|
|
7543
|
-
case
|
|
7701
|
+
return _context.abrupt("return", false);
|
|
7702
|
+
case 3:
|
|
7544
7703
|
if (!(bType == 'spu')) {
|
|
7545
|
-
_context.
|
|
7704
|
+
_context.next = 26;
|
|
7546
7705
|
break;
|
|
7547
7706
|
}
|
|
7548
7707
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7549
7708
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7550
7709
|
}))) {
|
|
7551
|
-
_context.
|
|
7710
|
+
_context.next = 7;
|
|
7552
7711
|
break;
|
|
7553
7712
|
}
|
|
7554
7713
|
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7555
|
-
return _context.
|
|
7556
|
-
case
|
|
7714
|
+
return _context.abrupt("return", false);
|
|
7715
|
+
case 7:
|
|
7557
7716
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7558
|
-
_context.
|
|
7717
|
+
_context.next = 10;
|
|
7559
7718
|
break;
|
|
7560
7719
|
}
|
|
7561
7720
|
antd.message.warning('请先选择颜色!');
|
|
7562
|
-
return _context.
|
|
7563
|
-
case
|
|
7721
|
+
return _context.abrupt("return", false);
|
|
7722
|
+
case 10:
|
|
7564
7723
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7565
7724
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7566
7725
|
}))) {
|
|
7567
|
-
_context.
|
|
7726
|
+
_context.next = 13;
|
|
7568
7727
|
break;
|
|
7569
7728
|
}
|
|
7570
7729
|
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7571
|
-
return _context.
|
|
7572
|
-
case
|
|
7730
|
+
return _context.abrupt("return", false);
|
|
7731
|
+
case 13:
|
|
7573
7732
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7574
|
-
_context.
|
|
7733
|
+
_context.next = 26;
|
|
7575
7734
|
break;
|
|
7576
7735
|
}
|
|
7577
7736
|
result = true;
|
|
7578
|
-
_context.
|
|
7579
|
-
_context.
|
|
7737
|
+
_context.prev = 15;
|
|
7738
|
+
_context.next = 18;
|
|
7580
7739
|
return checkSpuMatchCode({
|
|
7581
7740
|
skcCode: recordItem[recordKey],
|
|
7582
7741
|
matchingCode: changeValue,
|
|
7583
7742
|
ext1: recordItem.colorName
|
|
7584
7743
|
});
|
|
7585
|
-
case
|
|
7586
|
-
result = _context.
|
|
7744
|
+
case 18:
|
|
7745
|
+
result = _context.sent;
|
|
7587
7746
|
result = true;
|
|
7588
|
-
_context.
|
|
7747
|
+
_context.next = 25;
|
|
7589
7748
|
break;
|
|
7590
|
-
case
|
|
7591
|
-
_context.
|
|
7592
|
-
|
|
7593
|
-
result = typeof
|
|
7594
|
-
case
|
|
7595
|
-
return _context.
|
|
7596
|
-
case
|
|
7597
|
-
return _context.
|
|
7598
|
-
|
|
7599
|
-
|
|
7749
|
+
case 22:
|
|
7750
|
+
_context.prev = 22;
|
|
7751
|
+
_context.t0 = _context["catch"](15);
|
|
7752
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
7753
|
+
case 25:
|
|
7754
|
+
return _context.abrupt("return", result);
|
|
7755
|
+
case 26:
|
|
7756
|
+
return _context.abrupt("return", true);
|
|
7757
|
+
case 27:
|
|
7758
|
+
case "end":
|
|
7759
|
+
return _context.stop();
|
|
7760
|
+
}
|
|
7761
|
+
}, _callee, null, [[15, 22]]);
|
|
7600
7762
|
}));
|
|
7601
7763
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7602
7764
|
return _ref2.apply(this, arguments);
|
|
@@ -7784,19 +7946,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
7784
7946
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7785
7947
|
value: text || null,
|
|
7786
7948
|
onChange: function () {
|
|
7787
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
7788
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules
|
|
7789
|
-
return
|
|
7790
|
-
while (1) switch (_context2.
|
|
7949
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7950
|
+
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7951
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7952
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
7791
7953
|
case 0:
|
|
7792
7954
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
7793
7955
|
return d[selectKey] == value;
|
|
7794
7956
|
})) || {};
|
|
7795
7957
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
7796
|
-
_context2.
|
|
7958
|
+
_context2.next = 6;
|
|
7797
7959
|
break;
|
|
7798
7960
|
}
|
|
7799
|
-
_context2.
|
|
7961
|
+
_context2.next = 4;
|
|
7800
7962
|
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
7963
|
record: record,
|
|
7802
7964
|
index: index,
|
|
@@ -7806,10 +7968,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7806
7968
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
7807
7969
|
editRecord: editRecord
|
|
7808
7970
|
});
|
|
7809
|
-
case
|
|
7810
|
-
_context2.
|
|
7971
|
+
case 4:
|
|
7972
|
+
_context2.next = 25;
|
|
7811
7973
|
break;
|
|
7812
|
-
case
|
|
7974
|
+
case 6:
|
|
7813
7975
|
// 更新当前行数据函数
|
|
7814
7976
|
changeValue = function changeValue(v, dSSItem) {
|
|
7815
7977
|
var _item$dataSourceSelec;
|
|
@@ -7822,12 +7984,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
7822
7984
|
}
|
|
7823
7985
|
}; // 处理校验,默认不校验
|
|
7824
7986
|
isCheckPass = true;
|
|
7825
|
-
_context2.
|
|
7987
|
+
_context2.prev = 8;
|
|
7826
7988
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
7827
|
-
_context2.
|
|
7989
|
+
_context2.next = 15;
|
|
7828
7990
|
break;
|
|
7829
7991
|
}
|
|
7830
|
-
_context2.
|
|
7992
|
+
_context2.next = 12;
|
|
7831
7993
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
7832
7994
|
record: record,
|
|
7833
7995
|
index: index,
|
|
@@ -7836,23 +7998,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
7836
7998
|
changeValue: value,
|
|
7837
7999
|
dataSourceSelectItem: dataSourceSelectItem
|
|
7838
8000
|
});
|
|
7839
|
-
case
|
|
7840
|
-
isCheckPass = _context2.
|
|
7841
|
-
_context2.
|
|
8001
|
+
case 12:
|
|
8002
|
+
isCheckPass = _context2.sent;
|
|
8003
|
+
_context2.next = 19;
|
|
7842
8004
|
break;
|
|
7843
|
-
case
|
|
7844
|
-
_context2.
|
|
8005
|
+
case 15:
|
|
8006
|
+
_context2.next = 17;
|
|
7845
8007
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
7846
|
-
case
|
|
7847
|
-
isConformToTheRules = _context2.
|
|
8008
|
+
case 17:
|
|
8009
|
+
isConformToTheRules = _context2.sent;
|
|
7848
8010
|
isCheckPass = !isConformToTheRules;
|
|
7849
|
-
case
|
|
7850
|
-
_context2.
|
|
8011
|
+
case 19:
|
|
8012
|
+
_context2.next = 23;
|
|
7851
8013
|
break;
|
|
7852
|
-
case
|
|
7853
|
-
_context2.
|
|
7854
|
-
|
|
7855
|
-
case
|
|
8014
|
+
case 21:
|
|
8015
|
+
_context2.prev = 21;
|
|
8016
|
+
_context2.t0 = _context2["catch"](8);
|
|
8017
|
+
case 23:
|
|
7856
8018
|
if (isCheckPass) {
|
|
7857
8019
|
changeValue(value, dataSourceSelectItem);
|
|
7858
8020
|
} else {
|
|
@@ -7860,10 +8022,11 @@ var AddSelect = function AddSelect(props) {
|
|
|
7860
8022
|
}
|
|
7861
8023
|
// 更新已选表格函数
|
|
7862
8024
|
editRecord(record);
|
|
7863
|
-
case
|
|
7864
|
-
|
|
8025
|
+
case 25:
|
|
8026
|
+
case "end":
|
|
8027
|
+
return _context2.stop();
|
|
7865
8028
|
}
|
|
7866
|
-
}, _callee2, null, [[
|
|
8029
|
+
}, _callee2, null, [[8, 21]]);
|
|
7867
8030
|
}));
|
|
7868
8031
|
function onChange(_x7) {
|
|
7869
8032
|
return _onChange.apply(this, arguments);
|
|
@@ -9254,29 +9417,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9254
9417
|
dataIndex: 'propertyNameAndValue'
|
|
9255
9418
|
}];
|
|
9256
9419
|
var _useState9 = React$1.useState(false),
|
|
9257
|
-
|
|
9258
|
-
isModalVisible =
|
|
9259
|
-
setIsModalVisible =
|
|
9260
|
-
var
|
|
9420
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
9421
|
+
isModalVisible = _useState10[0],
|
|
9422
|
+
setIsModalVisible = _useState10[1];
|
|
9423
|
+
var _useState11 = React$1.useState([{
|
|
9261
9424
|
hovered: false
|
|
9262
9425
|
}]),
|
|
9263
|
-
|
|
9264
|
-
data =
|
|
9265
|
-
setData =
|
|
9426
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9427
|
+
data = _useState12[0],
|
|
9428
|
+
setData = _useState12[1];
|
|
9266
9429
|
var tableRef = React$1.useRef(null);
|
|
9267
9430
|
var codeSelected = tableCode;
|
|
9268
|
-
var
|
|
9269
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
9270
|
-
loading = _useState12[0],
|
|
9271
|
-
setLoading = _useState12[1];
|
|
9272
|
-
var _useState13 = React$1.useState([]),
|
|
9431
|
+
var _useState13 = React$1.useState(false),
|
|
9273
9432
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9274
|
-
|
|
9275
|
-
|
|
9433
|
+
loading = _useState14[0],
|
|
9434
|
+
setLoading = _useState14[1];
|
|
9276
9435
|
var _useState15 = React$1.useState([]),
|
|
9277
9436
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9278
|
-
|
|
9279
|
-
|
|
9437
|
+
selectColumns = _useState16[0],
|
|
9438
|
+
setSelectColumns = _useState16[1];
|
|
9439
|
+
var _useState17 = React$1.useState([]),
|
|
9440
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
9441
|
+
showColumns = _useState18[0],
|
|
9442
|
+
setShowColumns = _useState18[1];
|
|
9280
9443
|
React$1.useEffect(function () {
|
|
9281
9444
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9282
9445
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9392,42 +9555,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9392
9555
|
});
|
|
9393
9556
|
};
|
|
9394
9557
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9395
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9558
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9396
9559
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9397
|
-
return
|
|
9398
|
-
while (1) switch (_context.
|
|
9560
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9561
|
+
while (1) switch (_context.prev = _context.next) {
|
|
9399
9562
|
case 0:
|
|
9400
9563
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9401
|
-
_context.
|
|
9564
|
+
_context.next = 3;
|
|
9402
9565
|
break;
|
|
9403
9566
|
}
|
|
9404
9567
|
antd.message.warning('至少录入一条数据');
|
|
9405
|
-
return _context.
|
|
9406
|
-
case
|
|
9568
|
+
return _context.abrupt("return");
|
|
9569
|
+
case 3:
|
|
9407
9570
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9408
9571
|
return d.skuCode && d.name;
|
|
9409
9572
|
})) {
|
|
9410
|
-
_context.
|
|
9573
|
+
_context.next = 6;
|
|
9411
9574
|
break;
|
|
9412
9575
|
}
|
|
9413
9576
|
antd.message.warning('录入商品不存在');
|
|
9414
|
-
return _context.
|
|
9415
|
-
case
|
|
9577
|
+
return _context.abrupt("return");
|
|
9578
|
+
case 6:
|
|
9416
9579
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9417
9580
|
return d.count;
|
|
9418
9581
|
})) {
|
|
9419
|
-
_context.
|
|
9582
|
+
_context.next = 9;
|
|
9420
9583
|
break;
|
|
9421
9584
|
}
|
|
9422
9585
|
antd.message.warning('请填写商品数量!');
|
|
9423
|
-
return _context.
|
|
9424
|
-
case
|
|
9425
|
-
_context.
|
|
9586
|
+
return _context.abrupt("return");
|
|
9587
|
+
case 9:
|
|
9588
|
+
_context.next = 11;
|
|
9426
9589
|
return isSkuCanEntry(data);
|
|
9427
|
-
case
|
|
9428
|
-
canEntryObject = _context.
|
|
9590
|
+
case 11:
|
|
9591
|
+
canEntryObject = _context.sent;
|
|
9429
9592
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9430
|
-
_context.
|
|
9593
|
+
_context.next = 16;
|
|
9431
9594
|
break;
|
|
9432
9595
|
}
|
|
9433
9596
|
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 +9600,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9437
9600
|
content: messageInfo,
|
|
9438
9601
|
duration: 6
|
|
9439
9602
|
});
|
|
9440
|
-
return _context.
|
|
9441
|
-
case
|
|
9603
|
+
return _context.abrupt("return");
|
|
9604
|
+
case 16:
|
|
9442
9605
|
setLoading(true);
|
|
9443
9606
|
onSaveCallback(data).then(function (res) {
|
|
9444
9607
|
{
|
|
@@ -9456,8 +9619,9 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9456
9619
|
antd.message.error(Error);
|
|
9457
9620
|
setLoading(false);
|
|
9458
9621
|
});
|
|
9459
|
-
case
|
|
9460
|
-
|
|
9622
|
+
case 18:
|
|
9623
|
+
case "end":
|
|
9624
|
+
return _context.stop();
|
|
9461
9625
|
}
|
|
9462
9626
|
}, _callee);
|
|
9463
9627
|
}));
|
|
@@ -11033,6 +11197,26 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11033
11197
|
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
11034
11198
|
sourceName: 'warehouseIds'
|
|
11035
11199
|
}, requestConfigProp);
|
|
11200
|
+
var _queryHeaderParams7 = getQueryHeadersList({
|
|
11201
|
+
querySelectHeadersList: querySelectHeadersList,
|
|
11202
|
+
extralHeaders: extralHeaders
|
|
11203
|
+
});
|
|
11204
|
+
Promise.all([loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11205
|
+
'qp-status-eq': 10,
|
|
11206
|
+
'qp-isMain-eq': 1,
|
|
11207
|
+
'qp-type-in': '1,2'
|
|
11208
|
+
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11209
|
+
'qp-status-eq': 1
|
|
11210
|
+
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in'))]).then(function (x) {
|
|
11211
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11212
|
+
return data['parentCode'] === '0';
|
|
11213
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11214
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
11215
|
+
return data['parent'] === '0';
|
|
11216
|
+
}; // 所属营销区域 树节点不能点判断
|
|
11217
|
+
formatTreeDataSource(x, 0, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11218
|
+
formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
11219
|
+
});
|
|
11036
11220
|
tableSearchForm = [{
|
|
11037
11221
|
name: 'realWarehouseName*multiInput',
|
|
11038
11222
|
label: '逻辑仓名称',
|
|
@@ -11056,6 +11240,70 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11056
11240
|
},
|
|
11057
11241
|
label: '管理大区',
|
|
11058
11242
|
initialSource: getDictionarySource$1('BUSINESS_belongArea')
|
|
11243
|
+
}, {
|
|
11244
|
+
name: 'qp-channelCode-in',
|
|
11245
|
+
type: 'treeSelect',
|
|
11246
|
+
label: '销售渠道',
|
|
11247
|
+
field: {
|
|
11248
|
+
type: 'treeSelect',
|
|
11249
|
+
props: {
|
|
11250
|
+
multiple: true,
|
|
11251
|
+
treeData: [],
|
|
11252
|
+
treeCheckable: false,
|
|
11253
|
+
notFoundContent: '暂无数据',
|
|
11254
|
+
allowClear: true,
|
|
11255
|
+
showSearch: true,
|
|
11256
|
+
showArrow: true,
|
|
11257
|
+
maxTagCount: 1,
|
|
11258
|
+
optionFilterProp: 'children',
|
|
11259
|
+
filterOption: function filterOption(input, option) {
|
|
11260
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11261
|
+
},
|
|
11262
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11263
|
+
}
|
|
11264
|
+
}
|
|
11265
|
+
}, {
|
|
11266
|
+
name: 'qp-refCode-in',
|
|
11267
|
+
type: 'treeSelect',
|
|
11268
|
+
label: '营销区域',
|
|
11269
|
+
field: {
|
|
11270
|
+
type: 'treeSelect',
|
|
11271
|
+
props: {
|
|
11272
|
+
multiple: true,
|
|
11273
|
+
treeData: [],
|
|
11274
|
+
treeCheckable: false,
|
|
11275
|
+
notFoundContent: '暂无数据',
|
|
11276
|
+
allowClear: true,
|
|
11277
|
+
showSearch: true,
|
|
11278
|
+
showArrow: true,
|
|
11279
|
+
maxTagCount: 1,
|
|
11280
|
+
optionFilterProp: 'children',
|
|
11281
|
+
filterOption: function filterOption(input, option) {
|
|
11282
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11283
|
+
},
|
|
11284
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11285
|
+
}
|
|
11286
|
+
}
|
|
11287
|
+
}, {
|
|
11288
|
+
name: 'qp-type-in',
|
|
11289
|
+
type: 'select',
|
|
11290
|
+
label: '店铺性质',
|
|
11291
|
+
field: {
|
|
11292
|
+
type: 'select',
|
|
11293
|
+
props: {
|
|
11294
|
+
mode: 'multiple',
|
|
11295
|
+
notFoundContent: '暂无数据',
|
|
11296
|
+
allowClear: true,
|
|
11297
|
+
showSearch: true,
|
|
11298
|
+
showArrow: true,
|
|
11299
|
+
maxTagCount: 1,
|
|
11300
|
+
optionFilterProp: 'children',
|
|
11301
|
+
filterOption: function filterOption(input, option) {
|
|
11302
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11303
|
+
}
|
|
11304
|
+
}
|
|
11305
|
+
},
|
|
11306
|
+
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
11059
11307
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11060
11308
|
name: 'qp-isEnable-eq',
|
|
11061
11309
|
type: 'select',
|
|
@@ -11084,10 +11332,28 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11084
11332
|
render: function render(text) {
|
|
11085
11333
|
return getDictionaryTextByValue$1('SC00004', text);
|
|
11086
11334
|
}
|
|
11335
|
+
}, {
|
|
11336
|
+
title: '所属销售渠道',
|
|
11337
|
+
dataIndex: 'channelName',
|
|
11338
|
+
defaultSort: 4,
|
|
11339
|
+
width: 100
|
|
11340
|
+
}, {
|
|
11341
|
+
title: '营销区域',
|
|
11342
|
+
dataIndex: 'commonRelationAreaName',
|
|
11343
|
+
defaultSort: 5,
|
|
11344
|
+
width: 100
|
|
11345
|
+
}, {
|
|
11346
|
+
title: '店铺性质',
|
|
11347
|
+
dataIndex: 'type',
|
|
11348
|
+
defaultSort: 6,
|
|
11349
|
+
render: function render(text) {
|
|
11350
|
+
return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
|
|
11351
|
+
},
|
|
11352
|
+
width: 80
|
|
11087
11353
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11088
11354
|
title: '状态',
|
|
11089
11355
|
dataIndex: 'isEnable',
|
|
11090
|
-
defaultSort:
|
|
11356
|
+
defaultSort: 7,
|
|
11091
11357
|
render: function render(text) {
|
|
11092
11358
|
return getDictionaryTextByValue$1('SC00001', text);
|
|
11093
11359
|
}
|
|
@@ -11153,13 +11419,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11153
11419
|
label: '运营仓状态',
|
|
11154
11420
|
initialSource: getDictionarySource$1('SC00001')
|
|
11155
11421
|
}] : []));
|
|
11156
|
-
var
|
|
11422
|
+
var _queryHeaderParams8 = getQueryHeadersList({
|
|
11157
11423
|
querySelectHeadersList: querySelectHeadersList,
|
|
11158
11424
|
extralHeaders: extralHeaders
|
|
11159
11425
|
});
|
|
11160
11426
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
|
|
11161
11427
|
'qp-status-eq': 1
|
|
11162
|
-
}, getQueryHeadersItem(
|
|
11428
|
+
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-groupCode-in'))]).then(function (x) {
|
|
11163
11429
|
formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
|
|
11164
11430
|
});
|
|
11165
11431
|
modalTableProps = _objectSpread2({
|
|
@@ -11337,7 +11603,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11337
11603
|
label: '共享类型',
|
|
11338
11604
|
initialSource: sharingTypeDataList
|
|
11339
11605
|
}];
|
|
11340
|
-
var
|
|
11606
|
+
var _queryHeaderParams9 = getQueryHeadersList({
|
|
11341
11607
|
querySelectHeadersList: querySelectHeadersList,
|
|
11342
11608
|
extralHeaders: extralHeaders
|
|
11343
11609
|
});
|
|
@@ -11345,14 +11611,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11345
11611
|
pageSize: 5000,
|
|
11346
11612
|
currentPage: 1,
|
|
11347
11613
|
'qp-companyType-eq': '30'
|
|
11348
|
-
}, getQueryHeadersItem(
|
|
11614
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
11349
11615
|
pageSize: 5000,
|
|
11350
11616
|
currentPage: 1
|
|
11351
|
-
}, getQueryHeadersItem(
|
|
11617
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-accountingCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
11352
11618
|
pageSize: 5000,
|
|
11353
11619
|
currentPage: 1,
|
|
11354
11620
|
'qp-companyType-eq': '20'
|
|
11355
|
-
}, getQueryHeadersItem(
|
|
11621
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-sharingType-in'))]).then(function (x) {
|
|
11356
11622
|
formatSource(x, 0, 2, tableSearchForm);
|
|
11357
11623
|
formatSource(x, 1, 3, tableSearchForm);
|
|
11358
11624
|
formatSource(x, 2, 4, tableSearchForm);
|
|
@@ -11465,11 +11731,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11465
11731
|
}
|
|
11466
11732
|
}
|
|
11467
11733
|
}];
|
|
11468
|
-
var
|
|
11734
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
11469
11735
|
querySelectHeadersList: querySelectHeadersList,
|
|
11470
11736
|
extralHeaders: extralHeaders
|
|
11471
11737
|
});
|
|
11472
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(
|
|
11738
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq'))]).then(function (x) {
|
|
11473
11739
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
11474
11740
|
var allList = firstElement && [firstElement, firstElement];
|
|
11475
11741
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
@@ -11631,7 +11897,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11631
11897
|
}
|
|
11632
11898
|
}
|
|
11633
11899
|
}];
|
|
11634
|
-
var
|
|
11900
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
11635
11901
|
querySelectHeadersList: querySelectHeadersList,
|
|
11636
11902
|
extralHeaders: extralHeaders
|
|
11637
11903
|
});
|
|
@@ -11639,21 +11905,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11639
11905
|
pageSize: 5000,
|
|
11640
11906
|
currentPage: 1,
|
|
11641
11907
|
'qp-companyType-eq': '30'
|
|
11642
|
-
}, getQueryHeadersItem(
|
|
11908
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
11643
11909
|
pageSize: 5000,
|
|
11644
11910
|
currentPage: 1,
|
|
11645
11911
|
'qp-companyType-eq': '20'
|
|
11646
|
-
}, getQueryHeadersItem(
|
|
11912
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
11647
11913
|
// pageSize: 5000,
|
|
11648
11914
|
// currentPage: 1,
|
|
11649
11915
|
'qp-status-eq': '1'
|
|
11650
|
-
}, getQueryHeadersItem(
|
|
11916
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
11651
11917
|
pageSize: 5000,
|
|
11652
11918
|
currentPage: 1
|
|
11653
|
-
}, getQueryHeadersItem(
|
|
11919
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
11654
11920
|
pageSize: 5000,
|
|
11655
11921
|
currentPage: 1
|
|
11656
|
-
}, getQueryHeadersItem(
|
|
11922
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-accountingCode-in'))]).then(function (x) {
|
|
11657
11923
|
formatSource(x, 0, 2, tableSearchForm);
|
|
11658
11924
|
formatSource(x, 1, 3, tableSearchForm);
|
|
11659
11925
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -11823,7 +12089,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11823
12089
|
},
|
|
11824
12090
|
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
11825
12091
|
}];
|
|
11826
|
-
var
|
|
12092
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
11827
12093
|
querySelectHeadersList: querySelectHeadersList,
|
|
11828
12094
|
extralHeaders: extralHeaders
|
|
11829
12095
|
});
|
|
@@ -11831,13 +12097,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11831
12097
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
11832
12098
|
'qp-realOrg-eq': true,
|
|
11833
12099
|
'qp-status-eq': 10
|
|
11834
|
-
}, getQueryHeadersItem(
|
|
12100
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
11835
12101
|
'qp-status-eq': 10,
|
|
11836
12102
|
'qp-isMain-eq': 1,
|
|
11837
12103
|
'qp-type-in': '1,2'
|
|
11838
|
-
}, getQueryHeadersItem(
|
|
12104
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
11839
12105
|
'qp-status-eq': 1
|
|
11840
|
-
}, getQueryHeadersItem(
|
|
12106
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in'))]).then(function (x) {
|
|
11841
12107
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11842
12108
|
return data['parentCode'] === '0';
|
|
11843
12109
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -12075,7 +12341,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12075
12341
|
name: 'qp-officeTelephone-like',
|
|
12076
12342
|
label: '手机号'
|
|
12077
12343
|
}];
|
|
12078
|
-
var
|
|
12344
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12079
12345
|
querySelectHeadersList: querySelectHeadersList,
|
|
12080
12346
|
extralHeaders: extralHeaders
|
|
12081
12347
|
});
|
|
@@ -12083,7 +12349,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12083
12349
|
pageSize: 5000,
|
|
12084
12350
|
currentPage: 1,
|
|
12085
12351
|
'qp-companyType-eq': 20
|
|
12086
|
-
}, getQueryHeadersItem(
|
|
12352
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-companyCode-in'))]).then(function (x) {
|
|
12087
12353
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12088
12354
|
});
|
|
12089
12355
|
modalTableProps = _objectSpread2({
|
|
@@ -12192,13 +12458,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12192
12458
|
name: 'qp-officeTelephone-like',
|
|
12193
12459
|
label: '手机号'
|
|
12194
12460
|
}]);
|
|
12195
|
-
var
|
|
12461
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12196
12462
|
querySelectHeadersList: querySelectHeadersList,
|
|
12197
12463
|
extralHeaders: extralHeaders
|
|
12198
12464
|
});
|
|
12199
12465
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12200
12466
|
'orgViewCode': 'administrative-organization-view'
|
|
12201
|
-
}, getQueryHeadersItem(
|
|
12467
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-code-in'))]).then(function (x) {
|
|
12202
12468
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12203
12469
|
});
|
|
12204
12470
|
modalTableProps = _objectSpread2({
|
|
@@ -12345,17 +12611,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12345
12611
|
name: 'qp-remark-like',
|
|
12346
12612
|
label: '备注'
|
|
12347
12613
|
}];
|
|
12348
|
-
var
|
|
12614
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
12349
12615
|
querySelectHeadersList: querySelectHeadersList,
|
|
12350
12616
|
extralHeaders: extralHeaders
|
|
12351
12617
|
});
|
|
12352
12618
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12353
12619
|
pageSize: 5000,
|
|
12354
12620
|
currentPage: 1
|
|
12355
|
-
}, getQueryHeadersItem(
|
|
12621
|
+
}, getQueryHeadersItem(_queryHeaderParams15, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12356
12622
|
pageSize: 5000,
|
|
12357
12623
|
currentPage: 1
|
|
12358
|
-
}, getQueryHeadersItem(
|
|
12624
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12359
12625
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12360
12626
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12361
12627
|
});
|
|
@@ -12525,14 +12791,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12525
12791
|
}
|
|
12526
12792
|
}
|
|
12527
12793
|
}];
|
|
12528
|
-
var
|
|
12794
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
12529
12795
|
querySelectHeadersList: querySelectHeadersList,
|
|
12530
12796
|
extralHeaders: extralHeaders
|
|
12531
12797
|
});
|
|
12532
12798
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
12533
12799
|
pageSize: 5000,
|
|
12534
12800
|
currentPage: 1
|
|
12535
|
-
}, getQueryHeadersItem(
|
|
12801
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
12536
12802
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12537
12803
|
});
|
|
12538
12804
|
modalTableProps = _objectSpread2({
|
|
@@ -12629,7 +12895,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12629
12895
|
}
|
|
12630
12896
|
}
|
|
12631
12897
|
}];
|
|
12632
|
-
var
|
|
12898
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
12633
12899
|
querySelectHeadersList: querySelectHeadersList,
|
|
12634
12900
|
extralHeaders: extralHeaders
|
|
12635
12901
|
});
|
|
@@ -12637,7 +12903,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12637
12903
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12638
12904
|
'qp-realOrg-eq': true,
|
|
12639
12905
|
'qp-status-eq': 10
|
|
12640
|
-
}, getQueryHeadersItem(
|
|
12906
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
12641
12907
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12642
12908
|
});
|
|
12643
12909
|
modalTableProps = _objectSpread2({
|
|
@@ -12743,13 +13009,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12743
13009
|
},
|
|
12744
13010
|
initialSource: nodeType
|
|
12745
13011
|
}];
|
|
12746
|
-
var
|
|
13012
|
+
var _queryHeaderParams18 = getQueryHeadersList({
|
|
12747
13013
|
querySelectHeadersList: querySelectHeadersList,
|
|
12748
13014
|
extralHeaders: extralHeaders
|
|
12749
13015
|
});
|
|
12750
13016
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
12751
13017
|
'qp-status-eq': 10
|
|
12752
|
-
}, getQueryHeadersItem(
|
|
13018
|
+
}, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
12753
13019
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12754
13020
|
});
|
|
12755
13021
|
modalTableProps = _objectSpread2({
|
|
@@ -13075,13 +13341,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13075
13341
|
},
|
|
13076
13342
|
initialSource: nodeType
|
|
13077
13343
|
}];
|
|
13078
|
-
var
|
|
13344
|
+
var _queryHeaderParams19 = getQueryHeadersList({
|
|
13079
13345
|
querySelectHeadersList: querySelectHeadersList,
|
|
13080
13346
|
extralHeaders: extralHeaders
|
|
13081
13347
|
});
|
|
13082
13348
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13083
13349
|
'qp-status-eq': 10
|
|
13084
|
-
}, getQueryHeadersItem(
|
|
13350
|
+
}, getQueryHeadersItem(_queryHeaderParams19, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13085
13351
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13086
13352
|
});
|
|
13087
13353
|
modalTableProps = _objectSpread2({
|
|
@@ -14026,9 +14292,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14026
14292
|
value = _useState8[0],
|
|
14027
14293
|
setValue = _useState8[1];
|
|
14028
14294
|
var _useState9 = React$1.useState([]),
|
|
14029
|
-
|
|
14030
|
-
propertyList =
|
|
14031
|
-
setPropertyList =
|
|
14295
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
14296
|
+
propertyList = _useState10[0],
|
|
14297
|
+
setPropertyList = _useState10[1];
|
|
14032
14298
|
React$1.useEffect(function () {
|
|
14033
14299
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14034
14300
|
// type: 1 尺码组; 2 配码组
|
|
@@ -14552,45 +14818,46 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14552
14818
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
14553
14819
|
headers: headers
|
|
14554
14820
|
}).then(/*#__PURE__*/function () {
|
|
14555
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
14821
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
14556
14822
|
var _ctx$form;
|
|
14557
14823
|
var resData, coverData, data, dataList;
|
|
14558
|
-
return
|
|
14559
|
-
while (1) switch (_context.
|
|
14824
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14825
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14560
14826
|
case 0:
|
|
14561
14827
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
14562
14828
|
if (!judgeIsRequestSuccess(resData)) {
|
|
14563
|
-
_context.
|
|
14829
|
+
_context.next = 13;
|
|
14564
14830
|
break;
|
|
14565
14831
|
}
|
|
14566
14832
|
data = resData.data;
|
|
14567
14833
|
if (!remoteSource.converter) {
|
|
14568
|
-
_context.
|
|
14834
|
+
_context.next = 9;
|
|
14569
14835
|
break;
|
|
14570
14836
|
}
|
|
14571
|
-
_context.
|
|
14837
|
+
_context.next = 6;
|
|
14572
14838
|
return remoteSource.converter({
|
|
14573
14839
|
data: [data]
|
|
14574
14840
|
});
|
|
14575
|
-
case
|
|
14576
|
-
coverData = _context.
|
|
14577
|
-
_context.
|
|
14841
|
+
case 6:
|
|
14842
|
+
coverData = _context.sent;
|
|
14843
|
+
_context.next = 11;
|
|
14578
14844
|
break;
|
|
14579
|
-
case
|
|
14845
|
+
case 9:
|
|
14580
14846
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
14581
14847
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
14582
14848
|
return _mapSearchTree(ites);
|
|
14583
14849
|
}) || [];
|
|
14584
|
-
case
|
|
14585
|
-
_context.
|
|
14850
|
+
case 11:
|
|
14851
|
+
_context.next = 14;
|
|
14586
14852
|
break;
|
|
14587
|
-
case
|
|
14853
|
+
case 13:
|
|
14588
14854
|
coverData = [];
|
|
14589
|
-
case
|
|
14855
|
+
case 14:
|
|
14590
14856
|
setTreeData(coverData);
|
|
14591
14857
|
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
|
-
|
|
14858
|
+
case 16:
|
|
14859
|
+
case "end":
|
|
14860
|
+
return _context.stop();
|
|
14594
14861
|
}
|
|
14595
14862
|
}, _callee);
|
|
14596
14863
|
}));
|
|
@@ -18892,38 +19159,38 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18892
19159
|
};
|
|
18893
19160
|
var refs = React$1.useRef(null);
|
|
18894
19161
|
var _useState9 = React$1.useState(''),
|
|
18895
|
-
|
|
18896
|
-
pagePath =
|
|
18897
|
-
setPagePath =
|
|
19162
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
19163
|
+
pagePath = _useState10[0],
|
|
19164
|
+
setPagePath = _useState10[1];
|
|
18898
19165
|
var _useLocation = umi.useLocation(),
|
|
18899
19166
|
pathname = _useLocation.pathname,
|
|
18900
19167
|
_useLocation$state = _useLocation.state,
|
|
18901
19168
|
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
18902
|
-
var
|
|
18903
|
-
|
|
18904
|
-
isFullScreen =
|
|
18905
|
-
setIsFnllScreen =
|
|
19169
|
+
var _useState11 = React$1.useState(false),
|
|
19170
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
19171
|
+
isFullScreen = _useState12[0],
|
|
19172
|
+
setIsFnllScreen = _useState12[1];
|
|
18906
19173
|
// @ts-nocheck
|
|
18907
19174
|
var value = props;
|
|
18908
19175
|
var _props$fields = props.fields,
|
|
18909
19176
|
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),
|
|
19177
|
+
var _useState13 = React$1.useState([]),
|
|
18916
19178
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
18917
|
-
|
|
18918
|
-
|
|
18919
|
-
var
|
|
19179
|
+
showColumn = _useState14[0],
|
|
19180
|
+
setShowColumns = _useState14[1]; // 列字段
|
|
19181
|
+
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19182
|
+
var _useState15 = React$1.useState(originSearchFields),
|
|
18920
19183
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
18921
|
-
|
|
18922
|
-
|
|
18923
|
-
var _useState17 = React$1.useState(
|
|
19184
|
+
showSearchFields = _useState16[0],
|
|
19185
|
+
setShowSearchFields = _useState16[1]; //搜索项字段
|
|
19186
|
+
var _useState17 = React$1.useState([]),
|
|
18924
19187
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
18925
|
-
|
|
18926
|
-
|
|
19188
|
+
showExportColumn = _useState18[0],
|
|
19189
|
+
setShowExportColumns = _useState18[1]; // 导出列字段
|
|
19190
|
+
var _useState19 = React$1.useState(''),
|
|
19191
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
19192
|
+
height = _useState20[0],
|
|
19193
|
+
setHeight = _useState20[1];
|
|
18927
19194
|
var sortTableRef = React$1.useRef(null);
|
|
18928
19195
|
var searchTableRef = React$1.useRef(null);
|
|
18929
19196
|
var exportTableRef = React$1.useRef(null);
|
|
@@ -19971,19 +20238,22 @@ function outLogin(_x) {
|
|
|
19971
20238
|
return _outLogin.apply(this, arguments);
|
|
19972
20239
|
}
|
|
19973
20240
|
function _outLogin() {
|
|
19974
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
20241
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19975
20242
|
var res;
|
|
19976
|
-
return
|
|
19977
|
-
while (1) switch (_context.
|
|
20243
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20244
|
+
while (1) switch (_context.prev = _context.next) {
|
|
19978
20245
|
case 0:
|
|
19979
|
-
_context.
|
|
20246
|
+
_context.next = 2;
|
|
19980
20247
|
return requestUtil({
|
|
19981
20248
|
url: '/user/web/loginOut',
|
|
19982
20249
|
method: 'GET'
|
|
19983
20250
|
});
|
|
19984
|
-
case
|
|
19985
|
-
res = _context.
|
|
19986
|
-
return _context.
|
|
20251
|
+
case 2:
|
|
20252
|
+
res = _context.sent;
|
|
20253
|
+
return _context.abrupt("return", res);
|
|
20254
|
+
case 4:
|
|
20255
|
+
case "end":
|
|
20256
|
+
return _context.stop();
|
|
19987
20257
|
}
|
|
19988
20258
|
}, _callee);
|
|
19989
20259
|
}));
|
|
@@ -20110,20 +20380,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20110
20380
|
});
|
|
20111
20381
|
};
|
|
20112
20382
|
var loginOut = /*#__PURE__*/function () {
|
|
20113
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
20383
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20114
20384
|
var sessionId;
|
|
20115
|
-
return
|
|
20116
|
-
while (1) switch (_context.
|
|
20385
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20386
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20117
20387
|
case 0:
|
|
20118
|
-
_context.
|
|
20388
|
+
_context.next = 2;
|
|
20119
20389
|
return getSessionId();
|
|
20120
|
-
case
|
|
20121
|
-
sessionId = _context.
|
|
20122
|
-
_context.
|
|
20390
|
+
case 2:
|
|
20391
|
+
sessionId = _context.sent;
|
|
20392
|
+
_context.next = 5;
|
|
20123
20393
|
return outLogin({
|
|
20124
20394
|
sessionId: sessionId
|
|
20125
20395
|
});
|
|
20126
|
-
case
|
|
20396
|
+
case 5:
|
|
20127
20397
|
// @ts-ignore
|
|
20128
20398
|
if (BUILD_TYPE) {
|
|
20129
20399
|
antd.message.success('退出登录成功');
|
|
@@ -20133,8 +20403,9 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20133
20403
|
} else {
|
|
20134
20404
|
setLoginOutPath();
|
|
20135
20405
|
}
|
|
20136
|
-
case
|
|
20137
|
-
|
|
20406
|
+
case 6:
|
|
20407
|
+
case "end":
|
|
20408
|
+
return _context.stop();
|
|
20138
20409
|
}
|
|
20139
20410
|
}, _callee);
|
|
20140
20411
|
}));
|
|
@@ -20221,15 +20492,18 @@ function getStoreByName(_x) {
|
|
|
20221
20492
|
return _getStoreByName.apply(this, arguments);
|
|
20222
20493
|
}
|
|
20223
20494
|
function _getStoreByName() {
|
|
20224
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20225
|
-
return
|
|
20226
|
-
while (1) switch (_context.
|
|
20495
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
20496
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20497
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20227
20498
|
case 0:
|
|
20228
|
-
return _context.
|
|
20499
|
+
return _context.abrupt("return", requestUtil({
|
|
20229
20500
|
url: '/store-house/orgViewNode/listNoPage',
|
|
20230
20501
|
method: 'GET',
|
|
20231
20502
|
params: _objectSpread2({}, params)
|
|
20232
20503
|
}));
|
|
20504
|
+
case 1:
|
|
20505
|
+
case "end":
|
|
20506
|
+
return _context.stop();
|
|
20233
20507
|
}
|
|
20234
20508
|
}, _callee);
|
|
20235
20509
|
}));
|
|
@@ -20264,33 +20538,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20264
20538
|
openSelect = _useState8[0],
|
|
20265
20539
|
setOpenSelect = _useState8[1];
|
|
20266
20540
|
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(''),
|
|
20541
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
20542
|
+
options = _useState10[0],
|
|
20543
|
+
setOptions = _useState10[1];
|
|
20544
|
+
var _useState11 = React$1.useState([]),
|
|
20275
20545
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
20276
|
-
|
|
20277
|
-
|
|
20278
|
-
var _useState13 = React$1.useState(
|
|
20546
|
+
rescouse = _useState12[0],
|
|
20547
|
+
setRescouse = _useState12[1];
|
|
20548
|
+
var _useState13 = React$1.useState(''),
|
|
20549
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
20550
|
+
searchValue = _useState14[0],
|
|
20551
|
+
setSearchValue = _useState14[1];
|
|
20552
|
+
var _useState15 = React$1.useState([{
|
|
20279
20553
|
label: name,
|
|
20280
20554
|
value: code
|
|
20281
20555
|
}]),
|
|
20282
|
-
|
|
20283
|
-
store =
|
|
20284
|
-
setStore =
|
|
20556
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
20557
|
+
store = _useState16[0],
|
|
20558
|
+
setStore = _useState16[1];
|
|
20285
20559
|
function fetchUserList(_x, _x2) {
|
|
20286
20560
|
return _fetchUserList.apply(this, arguments);
|
|
20287
20561
|
}
|
|
20288
20562
|
function _fetchUserList() {
|
|
20289
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
20290
|
-
return
|
|
20291
|
-
while (1) switch (_context3.
|
|
20563
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
20564
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
20565
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
20292
20566
|
case 0:
|
|
20293
|
-
return _context3.
|
|
20567
|
+
return _context3.abrupt("return", getStoreByName({
|
|
20294
20568
|
orgName: storeName ? storeName : undefined,
|
|
20295
20569
|
platCompanyCode: init ? undefined : key,
|
|
20296
20570
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -20309,6 +20583,9 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20309
20583
|
};
|
|
20310
20584
|
});
|
|
20311
20585
|
}));
|
|
20586
|
+
case 1:
|
|
20587
|
+
case "end":
|
|
20588
|
+
return _context3.stop();
|
|
20312
20589
|
}
|
|
20313
20590
|
}, _callee3);
|
|
20314
20591
|
}));
|
|
@@ -20331,19 +20608,20 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20331
20608
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
20332
20609
|
}, [debounceTimeout, key]);
|
|
20333
20610
|
var changeInput = /*#__PURE__*/function () {
|
|
20334
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
20611
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
20335
20612
|
var res;
|
|
20336
|
-
return
|
|
20337
|
-
while (1) switch (_context.
|
|
20613
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20614
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20338
20615
|
case 0:
|
|
20339
|
-
_context.
|
|
20616
|
+
_context.next = 2;
|
|
20340
20617
|
return debounceFetcher(str);
|
|
20341
|
-
case
|
|
20342
|
-
res = _context.
|
|
20618
|
+
case 2:
|
|
20619
|
+
res = _context.sent;
|
|
20343
20620
|
setOptions(res);
|
|
20344
20621
|
setRescouse(res);
|
|
20345
|
-
case
|
|
20346
|
-
|
|
20622
|
+
case 5:
|
|
20623
|
+
case "end":
|
|
20624
|
+
return _context.stop();
|
|
20347
20625
|
}
|
|
20348
20626
|
}, _callee);
|
|
20349
20627
|
}));
|
|
@@ -20352,15 +20630,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20352
20630
|
};
|
|
20353
20631
|
}();
|
|
20354
20632
|
React$1.useEffect(function () {
|
|
20355
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
20633
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
20356
20634
|
var res;
|
|
20357
|
-
return
|
|
20358
|
-
while (1) switch (_context2.
|
|
20635
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
20636
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
20359
20637
|
case 0:
|
|
20360
|
-
_context2.
|
|
20638
|
+
_context2.next = 2;
|
|
20361
20639
|
return fetchUserList(undefined, true);
|
|
20362
|
-
case
|
|
20363
|
-
res = _context2.
|
|
20640
|
+
case 2:
|
|
20641
|
+
res = _context2.sent;
|
|
20364
20642
|
res.map(function (item, indexNumber) {
|
|
20365
20643
|
if (item.label === name) {
|
|
20366
20644
|
setIndex(indexNumber);
|
|
@@ -20376,8 +20654,9 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20376
20654
|
});
|
|
20377
20655
|
setOptions(res);
|
|
20378
20656
|
setRescouse(res);
|
|
20379
|
-
case
|
|
20380
|
-
|
|
20657
|
+
case 6:
|
|
20658
|
+
case "end":
|
|
20659
|
+
return _context2.stop();
|
|
20381
20660
|
}
|
|
20382
20661
|
}, _callee2);
|
|
20383
20662
|
}))();
|
|
@@ -21426,25 +21705,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
21426
21705
|
currentOneLevel = _useState8[0],
|
|
21427
21706
|
setCurrentOneLevel = _useState8[1];
|
|
21428
21707
|
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),
|
|
21708
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
21709
|
+
SearhData = _useState10[0],
|
|
21710
|
+
setSearchMenuData = _useState10[1];
|
|
21711
|
+
var _useState11 = React$1.useState(600),
|
|
21437
21712
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
21438
|
-
|
|
21439
|
-
|
|
21440
|
-
var _useState13 = React$1.useState(
|
|
21713
|
+
rightMenuHeight = _useState12[0],
|
|
21714
|
+
setHeight = _useState12[1];
|
|
21715
|
+
var _useState13 = React$1.useState(900),
|
|
21441
21716
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
21442
|
-
|
|
21443
|
-
|
|
21717
|
+
drawHeight = _useState14[0],
|
|
21718
|
+
setDrawHeight = _useState14[1];
|
|
21444
21719
|
var _useState15 = React$1.useState(false),
|
|
21445
21720
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
21446
|
-
|
|
21447
|
-
|
|
21721
|
+
moreBtnShow = _useState16[0],
|
|
21722
|
+
setMoreBtnShow = _useState16[1];
|
|
21723
|
+
var _useState17 = React$1.useState(false),
|
|
21724
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
21725
|
+
showScroll = _useState18[0],
|
|
21726
|
+
setShowScroll = _useState18[1];
|
|
21448
21727
|
React$1.useEffect(function () {
|
|
21449
21728
|
var _originRoutes$find;
|
|
21450
21729
|
getMenuContentHeight();
|
|
@@ -23055,11 +23334,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23055
23334
|
},
|
|
23056
23335
|
menu: {
|
|
23057
23336
|
request: function () {
|
|
23058
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23059
|
-
return
|
|
23060
|
-
while (1) switch (_context.
|
|
23337
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
23338
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
23339
|
+
while (1) switch (_context.prev = _context.next) {
|
|
23061
23340
|
case 0:
|
|
23062
|
-
return _context.
|
|
23341
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
23342
|
+
case 1:
|
|
23343
|
+
case "end":
|
|
23344
|
+
return _context.stop();
|
|
23063
23345
|
}
|
|
23064
23346
|
}, _callee);
|
|
23065
23347
|
}));
|
|
@@ -23464,31 +23746,31 @@ var index$6 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
23464
23746
|
multiTableData = _useState8[0],
|
|
23465
23747
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
23466
23748
|
var _useState9 = React$1.useState(10),
|
|
23467
|
-
|
|
23468
|
-
viewCount =
|
|
23469
|
-
setViewCount =
|
|
23749
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
23750
|
+
viewCount = _useState10[0],
|
|
23751
|
+
setViewCount = _useState10[1]; //虚拟表格每次渲染数量
|
|
23470
23752
|
var itemWidth = 100; // 表格每一项宽度
|
|
23471
|
-
var
|
|
23472
|
-
|
|
23473
|
-
realColHeaderWidth =
|
|
23474
|
-
setLeftWidth =
|
|
23753
|
+
var _useState11 = React$1.useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
|
|
23754
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
23755
|
+
realColHeaderWidth = _useState12[0],
|
|
23756
|
+
setLeftWidth = _useState12[1];
|
|
23475
23757
|
var viewPort = React$1.useRef(null);
|
|
23476
23758
|
var topScrollBar = React$1.useRef(null);
|
|
23477
23759
|
var leftTableRef = React$1.useRef(null);
|
|
23478
23760
|
//起始渲染item
|
|
23479
|
-
var
|
|
23480
|
-
|
|
23481
|
-
startIndex =
|
|
23482
|
-
setStartIndex =
|
|
23761
|
+
var _useState13 = React$1.useState(0),
|
|
23762
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
23763
|
+
startIndex = _useState14[0],
|
|
23764
|
+
setStartIndex = _useState14[1];
|
|
23483
23765
|
//结束渲染item
|
|
23484
23766
|
var endIndex = React$1.useMemo(function () {
|
|
23485
23767
|
return startIndex + viewCount;
|
|
23486
23768
|
}, [startIndex, viewCount]);
|
|
23487
23769
|
//表格偏移量
|
|
23488
|
-
var
|
|
23489
|
-
|
|
23490
|
-
offsetWidth =
|
|
23491
|
-
setOffset =
|
|
23770
|
+
var _useState15 = React$1.useState(0),
|
|
23771
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
23772
|
+
offsetWidth = _useState16[0],
|
|
23773
|
+
setOffset = _useState16[1];
|
|
23492
23774
|
React$1.useEffect(function () {
|
|
23493
23775
|
setTimeout(function () {
|
|
23494
23776
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -30792,11 +31074,11 @@ var valueType = {
|
|
|
30792
31074
|
};
|
|
30793
31075
|
|
|
30794
31076
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
30795
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
30796
|
-
return
|
|
30797
|
-
while (1) switch (_context.
|
|
31077
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
31078
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31079
|
+
while (1) switch (_context.prev = _context.next) {
|
|
30798
31080
|
case 0:
|
|
30799
|
-
_context.
|
|
31081
|
+
_context.next = 2;
|
|
30800
31082
|
return bssula.request({
|
|
30801
31083
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
30802
31084
|
converter: function converter(_ref2) {
|
|
@@ -30809,8 +31091,11 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
30809
31091
|
});
|
|
30810
31092
|
}
|
|
30811
31093
|
});
|
|
30812
|
-
case
|
|
30813
|
-
return _context.
|
|
31094
|
+
case 2:
|
|
31095
|
+
return _context.abrupt("return", _context.sent);
|
|
31096
|
+
case 3:
|
|
31097
|
+
case "end":
|
|
31098
|
+
return _context.stop();
|
|
30814
31099
|
}
|
|
30815
31100
|
}, _callee);
|
|
30816
31101
|
}));
|
|
@@ -30857,12 +31142,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30857
31142
|
value: false
|
|
30858
31143
|
}];
|
|
30859
31144
|
var ref = React$1.useRef();
|
|
30860
|
-
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
30861
|
-
var _ref$current, source
|
|
30862
|
-
return
|
|
30863
|
-
while (1) switch (_context.
|
|
31145
|
+
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31146
|
+
var _ref$current, source;
|
|
31147
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31148
|
+
while (1) switch (_context.prev = _context.next) {
|
|
30864
31149
|
case 0:
|
|
30865
|
-
_context.
|
|
31150
|
+
_context.next = 2;
|
|
30866
31151
|
return setIsShowAndType(function (prev) {
|
|
30867
31152
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
30868
31153
|
return {
|
|
@@ -30873,39 +31158,40 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30873
31158
|
}
|
|
30874
31159
|
return prev;
|
|
30875
31160
|
});
|
|
30876
|
-
case
|
|
31161
|
+
case 2:
|
|
30877
31162
|
if (!record.dictionaryCode) {
|
|
30878
|
-
_context.
|
|
31163
|
+
_context.next = 17;
|
|
30879
31164
|
break;
|
|
30880
31165
|
}
|
|
30881
31166
|
if (!(record.choiceType == 20)) {
|
|
30882
|
-
_context.
|
|
31167
|
+
_context.next = 7;
|
|
30883
31168
|
break;
|
|
30884
31169
|
}
|
|
30885
|
-
|
|
30886
|
-
_context.
|
|
31170
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
31171
|
+
_context.next = 15;
|
|
30887
31172
|
break;
|
|
30888
|
-
case
|
|
31173
|
+
case 7:
|
|
30889
31174
|
if (!(record.choiceType == 30)) {
|
|
30890
|
-
_context.
|
|
31175
|
+
_context.next = 13;
|
|
30891
31176
|
break;
|
|
30892
31177
|
}
|
|
30893
|
-
_context.
|
|
31178
|
+
_context.next = 10;
|
|
30894
31179
|
return getDynamicDict(record.dictionaryCode);
|
|
30895
|
-
case
|
|
30896
|
-
|
|
30897
|
-
_context.
|
|
31180
|
+
case 10:
|
|
31181
|
+
_context.t1 = _context.sent;
|
|
31182
|
+
_context.next = 14;
|
|
30898
31183
|
break;
|
|
30899
|
-
case
|
|
30900
|
-
|
|
30901
|
-
case
|
|
30902
|
-
|
|
30903
|
-
case
|
|
30904
|
-
source =
|
|
31184
|
+
case 13:
|
|
31185
|
+
_context.t1 = [];
|
|
31186
|
+
case 14:
|
|
31187
|
+
_context.t0 = _context.t1;
|
|
31188
|
+
case 15:
|
|
31189
|
+
source = _context.t0;
|
|
30905
31190
|
// @ts-ignore
|
|
30906
31191
|
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
|
-
|
|
31192
|
+
case 17:
|
|
31193
|
+
case "end":
|
|
31194
|
+
return _context.stop();
|
|
30909
31195
|
}
|
|
30910
31196
|
}, _callee);
|
|
30911
31197
|
})));
|
|
@@ -30970,10 +31256,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30970
31256
|
source: {
|
|
30971
31257
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
30972
31258
|
type: function () {
|
|
30973
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
31259
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
30974
31260
|
var form, values, name, relates, source;
|
|
30975
|
-
return
|
|
30976
|
-
while (1) switch (_context2.
|
|
31261
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
31262
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
30977
31263
|
case 0:
|
|
30978
31264
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
30979
31265
|
if (values[0]) {
|
|
@@ -30982,18 +31268,19 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30982
31268
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
30983
31269
|
}
|
|
30984
31270
|
if (!values[1]) {
|
|
30985
|
-
_context2.
|
|
31271
|
+
_context2.next = 9;
|
|
30986
31272
|
break;
|
|
30987
31273
|
}
|
|
30988
|
-
_context2.
|
|
31274
|
+
_context2.next = 5;
|
|
30989
31275
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
30990
|
-
case
|
|
30991
|
-
source = _context2.
|
|
31276
|
+
case 5:
|
|
31277
|
+
source = _context2.sent;
|
|
30992
31278
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
30993
31279
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
30994
31280
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
30995
|
-
case
|
|
30996
|
-
|
|
31281
|
+
case 9:
|
|
31282
|
+
case "end":
|
|
31283
|
+
return _context2.stop();
|
|
30997
31284
|
}
|
|
30998
31285
|
}, _callee2);
|
|
30999
31286
|
}));
|
|
@@ -31449,25 +31736,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31449
31736
|
source: {
|
|
31450
31737
|
relates: ['choiceType', 'inputType'],
|
|
31451
31738
|
type: function () {
|
|
31452
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
31739
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
31453
31740
|
var values, name, form, source;
|
|
31454
|
-
return
|
|
31455
|
-
while (1) switch (_context3.
|
|
31741
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
31742
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
31456
31743
|
case 0:
|
|
31457
|
-
values =
|
|
31744
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
31458
31745
|
if (values[1] === 40) {
|
|
31459
31746
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
31460
31747
|
form.setFieldVisible(name, false);
|
|
31461
31748
|
}
|
|
31462
31749
|
if (!(values[0] === 30)) {
|
|
31463
|
-
_context3.
|
|
31750
|
+
_context3.next = 10;
|
|
31464
31751
|
break;
|
|
31465
31752
|
}
|
|
31466
|
-
_context3.
|
|
31753
|
+
_context3.next = 5;
|
|
31467
31754
|
return bssula.request({
|
|
31468
31755
|
url: '/basic/dictDynamicItem/queryList',
|
|
31469
|
-
converter: function converter(
|
|
31470
|
-
var data =
|
|
31756
|
+
converter: function converter(_ref11) {
|
|
31757
|
+
var data = _ref11.data;
|
|
31471
31758
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31472
31759
|
return {
|
|
31473
31760
|
text: d.dictCode,
|
|
@@ -31476,16 +31763,17 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31476
31763
|
});
|
|
31477
31764
|
}
|
|
31478
31765
|
});
|
|
31479
|
-
case
|
|
31480
|
-
source = _context3.
|
|
31766
|
+
case 5:
|
|
31767
|
+
source = _context3.sent;
|
|
31481
31768
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
31482
31769
|
form.setFieldVisible(name, true);
|
|
31483
|
-
_context3.
|
|
31770
|
+
_context3.next = 11;
|
|
31484
31771
|
break;
|
|
31485
|
-
case
|
|
31772
|
+
case 10:
|
|
31486
31773
|
form.setFieldVisible(name, false);
|
|
31487
|
-
case
|
|
31488
|
-
|
|
31774
|
+
case 11:
|
|
31775
|
+
case "end":
|
|
31776
|
+
return _context3.stop();
|
|
31489
31777
|
}
|
|
31490
31778
|
}, _callee3);
|
|
31491
31779
|
}));
|
|
@@ -31500,8 +31788,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31500
31788
|
name: 'enumeration',
|
|
31501
31789
|
label: '维护自定义选项',
|
|
31502
31790
|
field: {
|
|
31503
|
-
type: function type(
|
|
31504
|
-
var form =
|
|
31791
|
+
type: function type(_ref12) {
|
|
31792
|
+
var form = _ref12.form;
|
|
31505
31793
|
return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
31506
31794
|
type: 'link',
|
|
31507
31795
|
onClick: function onClick() {
|
|
@@ -31527,10 +31815,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31527
31815
|
dependency: {
|
|
31528
31816
|
source: {
|
|
31529
31817
|
relates: ['choiceType'],
|
|
31530
|
-
type: function type(
|
|
31531
|
-
var values =
|
|
31532
|
-
name =
|
|
31533
|
-
form =
|
|
31818
|
+
type: function type(_ref13) {
|
|
31819
|
+
var values = _ref13.values,
|
|
31820
|
+
name = _ref13.name,
|
|
31821
|
+
form = _ref13.form;
|
|
31534
31822
|
if (values[0] === 10) {
|
|
31535
31823
|
form.setFieldVisible(name, true);
|
|
31536
31824
|
} else {
|
|
@@ -31546,10 +31834,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31546
31834
|
dependency: {
|
|
31547
31835
|
visible: {
|
|
31548
31836
|
relates: ['choiceType'],
|
|
31549
|
-
type: function type(
|
|
31550
|
-
var name =
|
|
31551
|
-
values =
|
|
31552
|
-
form =
|
|
31837
|
+
type: function type(_ref14) {
|
|
31838
|
+
var name = _ref14.name,
|
|
31839
|
+
values = _ref14.values,
|
|
31840
|
+
form = _ref14.form;
|
|
31553
31841
|
if (values[0] == 330) {
|
|
31554
31842
|
form.setFieldVisible(name, true);
|
|
31555
31843
|
} else {
|
|
@@ -31573,8 +31861,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31573
31861
|
params: {
|
|
31574
31862
|
'qp-businessType-eq': record.businessType
|
|
31575
31863
|
},
|
|
31576
|
-
converter: function converter(
|
|
31577
|
-
var data =
|
|
31864
|
+
converter: function converter(_ref15) {
|
|
31865
|
+
var data = _ref15.data;
|
|
31578
31866
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31579
31867
|
return {
|
|
31580
31868
|
text: d.name,
|
|
@@ -31614,8 +31902,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31614
31902
|
'qp-businessType-eq': record.businessType,
|
|
31615
31903
|
'qp-status-eq': 1
|
|
31616
31904
|
},
|
|
31617
|
-
converter: function converter(
|
|
31618
|
-
var data =
|
|
31905
|
+
converter: function converter(_ref16) {
|
|
31906
|
+
var data = _ref16.data;
|
|
31619
31907
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31620
31908
|
var _d$code;
|
|
31621
31909
|
return {
|
|
@@ -31643,8 +31931,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31643
31931
|
remoteSource: {
|
|
31644
31932
|
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
31933
|
method: 'get',
|
|
31646
|
-
converter: function converter(
|
|
31647
|
-
var data =
|
|
31934
|
+
converter: function converter(_ref17) {
|
|
31935
|
+
var data = _ref17.data;
|
|
31648
31936
|
if (lineDetail.moduleType == 1) {
|
|
31649
31937
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31650
31938
|
return {
|
|
@@ -31670,16 +31958,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31670
31958
|
width: 900,
|
|
31671
31959
|
maskClosable: false,
|
|
31672
31960
|
onOk: function () {
|
|
31673
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
31961
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
31674
31962
|
var _ref$current4, _res$editableStatus;
|
|
31675
31963
|
var res, _res$defaultValue;
|
|
31676
|
-
return
|
|
31677
|
-
while (1) switch (_context4.
|
|
31964
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
31965
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
31678
31966
|
case 0:
|
|
31679
|
-
_context4.
|
|
31967
|
+
_context4.next = 2;
|
|
31680
31968
|
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.
|
|
31969
|
+
case 2:
|
|
31970
|
+
res = _context4.sent;
|
|
31683
31971
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
31684
31972
|
res.fieldGroup = record.fieldGroup;
|
|
31685
31973
|
res.businessType = record.businessType;
|
|
@@ -31706,7 +31994,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31706
31994
|
delete res.formula;
|
|
31707
31995
|
delete res.showValue;
|
|
31708
31996
|
if (!(mode === 'create')) {
|
|
31709
|
-
_context4.
|
|
31997
|
+
_context4.next = 18;
|
|
31710
31998
|
break;
|
|
31711
31999
|
}
|
|
31712
32000
|
bssula.request({
|
|
@@ -31718,8 +32006,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31718
32006
|
onParentOk();
|
|
31719
32007
|
}
|
|
31720
32008
|
});
|
|
31721
|
-
return _context4.
|
|
31722
|
-
case
|
|
32009
|
+
return _context4.abrupt("return");
|
|
32010
|
+
case 18:
|
|
31723
32011
|
bssula.request({
|
|
31724
32012
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
31725
32013
|
method: 'PATCH',
|
|
@@ -31729,8 +32017,9 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31729
32017
|
onParentOk();
|
|
31730
32018
|
}
|
|
31731
32019
|
});
|
|
31732
|
-
case
|
|
31733
|
-
|
|
32020
|
+
case 19:
|
|
32021
|
+
case "end":
|
|
32022
|
+
return _context4.stop();
|
|
31734
32023
|
}
|
|
31735
32024
|
}, _callee4);
|
|
31736
32025
|
}));
|
|
@@ -32186,21 +32475,21 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
32186
32475
|
jsonEditorVal = _useState8[0],
|
|
32187
32476
|
setJsonEditorVal = _useState8[1];
|
|
32188
32477
|
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({}),
|
|
32478
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
32479
|
+
moduleParams = _useState10[0],
|
|
32480
|
+
setModuleParams = _useState10[1];
|
|
32481
|
+
var _useState11 = React$1.useState('main'),
|
|
32197
32482
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32198
|
-
|
|
32199
|
-
|
|
32200
|
-
var _useState13 = React$1.useState(
|
|
32483
|
+
activeKey = _useState12[0],
|
|
32484
|
+
setActiveKey = _useState12[1]; //默认详情页配置
|
|
32485
|
+
var _useState13 = React$1.useState({}),
|
|
32201
32486
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32202
|
-
|
|
32203
|
-
|
|
32487
|
+
tablesConfigParams = _useState14[0],
|
|
32488
|
+
setTablesConfigParams = _useState14[1];
|
|
32489
|
+
var _useState15 = React$1.useState([]),
|
|
32490
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
32491
|
+
tableJsonEditorValsArr = _useState16[0],
|
|
32492
|
+
setTableJsonEditorValsArr = _useState16[1];
|
|
32204
32493
|
React$1.useEffect(function () {
|
|
32205
32494
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32206
32495
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -32576,11 +32865,11 @@ function getMetaData(_x) {
|
|
|
32576
32865
|
|
|
32577
32866
|
// 获取数据
|
|
32578
32867
|
function _getMetaData() {
|
|
32579
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
32580
|
-
return
|
|
32581
|
-
while (1) switch (_context.
|
|
32868
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
32869
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32870
|
+
while (1) switch (_context.prev = _context.next) {
|
|
32582
32871
|
case 0:
|
|
32583
|
-
return _context.
|
|
32872
|
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
32584
32873
|
umi.request('/basic/entityProperty/listNoPage', {
|
|
32585
32874
|
params: {
|
|
32586
32875
|
'qp-entityId-eq': id
|
|
@@ -32592,6 +32881,9 @@ function _getMetaData() {
|
|
|
32592
32881
|
reject([]);
|
|
32593
32882
|
});
|
|
32594
32883
|
}));
|
|
32884
|
+
case 1:
|
|
32885
|
+
case "end":
|
|
32886
|
+
return _context.stop();
|
|
32595
32887
|
}
|
|
32596
32888
|
}, _callee);
|
|
32597
32889
|
}));
|
|
@@ -32795,11 +33087,11 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32795
33087
|
tableState = _useState4[0],
|
|
32796
33088
|
setTableState = _useState4[1];
|
|
32797
33089
|
var handleOpen = /*#__PURE__*/function () {
|
|
32798
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33090
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32799
33091
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
32800
33092
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
32801
|
-
return
|
|
32802
|
-
while (1) switch (_context.
|
|
33093
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33094
|
+
while (1) switch (_context.prev = _context.next) {
|
|
32803
33095
|
case 0:
|
|
32804
33096
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
32805
33097
|
isSearchForm: props.isSearchForm,
|
|
@@ -32807,16 +33099,16 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32807
33099
|
searchFormData: searchFormData
|
|
32808
33100
|
});
|
|
32809
33101
|
if (requestConfigNew) {
|
|
32810
|
-
_context.
|
|
33102
|
+
_context.next = 3;
|
|
32811
33103
|
break;
|
|
32812
33104
|
}
|
|
32813
|
-
return _context.
|
|
32814
|
-
case
|
|
33105
|
+
return _context.abrupt("return");
|
|
33106
|
+
case 3:
|
|
32815
33107
|
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.
|
|
33108
|
+
_context.next = 6;
|
|
32817
33109
|
return getMetaData(metaDataId);
|
|
32818
|
-
case
|
|
32819
|
-
metaData = _context.
|
|
33110
|
+
case 6:
|
|
33111
|
+
metaData = _context.sent;
|
|
32820
33112
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
32821
33113
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
32822
33114
|
})) || [];
|
|
@@ -32856,8 +33148,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32856
33148
|
// @ts-ignore
|
|
32857
33149
|
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
33150
|
}
|
|
32859
|
-
case
|
|
32860
|
-
|
|
33151
|
+
case 14:
|
|
33152
|
+
case "end":
|
|
33153
|
+
return _context.stop();
|
|
32861
33154
|
}
|
|
32862
33155
|
}, _callee);
|
|
32863
33156
|
}));
|
|
@@ -32960,7 +33253,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32960
33253
|
}, [requestConfig, tableState.columns]);
|
|
32961
33254
|
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
33255
|
var handleOk = function handleOk(rowData) {
|
|
32963
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
33256
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren13, _queryTableRef$curren14, _queryTableRef$curren15;
|
|
32964
33257
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
32965
33258
|
//多选数据处理
|
|
32966
33259
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -32971,9 +33264,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32971
33264
|
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
33265
|
var realSelectedRows = selectedRows;
|
|
32973
33266
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
32974
|
-
var _queryTableRef$
|
|
33267
|
+
var _queryTableRef$curren10, _queryTableRef$curren11, _queryTableRef$curren12;
|
|
32975
33268
|
// @ts-ignore
|
|
32976
|
-
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33269
|
+
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
33270
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
32978
33271
|
return selectedKesys.includes(s[rowKey]);
|
|
32979
33272
|
});
|
|
@@ -33006,10 +33299,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33006
33299
|
});
|
|
33007
33300
|
}
|
|
33008
33301
|
mappings.map(function (item) {
|
|
33009
|
-
var _props$
|
|
33010
|
-
if (((_props$
|
|
33011
|
-
var _props$
|
|
33012
|
-
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$
|
|
33302
|
+
var _props$customSelector10, _props$customSelector11, _props$customSelector12, _props$customSelector13;
|
|
33303
|
+
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]) {
|
|
33304
|
+
var _props$customSelector14, _props$customSelector15;
|
|
33305
|
+
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
33306
|
}
|
|
33014
33307
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
33015
33308
|
});
|
|
@@ -33064,10 +33357,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33064
33357
|
}
|
|
33065
33358
|
props.onCancel();
|
|
33066
33359
|
//@ts-ignore
|
|
33067
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33360
|
+
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
33361
|
};
|
|
33069
33362
|
var config = React$1.useMemo(function () {
|
|
33070
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
33363
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx10, _props$ctx10$form;
|
|
33071
33364
|
var returnConfig = {
|
|
33072
33365
|
size: 'small',
|
|
33073
33366
|
needPageHeader: false,
|
|
@@ -33076,7 +33369,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33076
33369
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33077
33370
|
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
33371
|
return v.key || v;
|
|
33079
|
-
})) || (props === null || props === void 0 ? void 0 : (_props$
|
|
33372
|
+
})) || (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
33373
|
} : false,
|
|
33081
33374
|
remoteDataSource: remoteDataSource,
|
|
33082
33375
|
fields: tableState.fields,
|
|
@@ -33084,8 +33377,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33084
33377
|
rowKey: rowKey,
|
|
33085
33378
|
tableProps: !isView && {
|
|
33086
33379
|
rowClassName: function rowClassName(record) {
|
|
33087
|
-
var _props$
|
|
33088
|
-
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$
|
|
33380
|
+
var _props$ctx11, _props$value3, _props$ctx12, _props$ctx12$form;
|
|
33381
|
+
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
33382
|
},
|
|
33090
33383
|
onRow: function onRow(record) {
|
|
33091
33384
|
return {
|
|
@@ -33130,10 +33423,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33130
33423
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
33131
33424
|
type: "default",
|
|
33132
33425
|
onClick: function onClick() {
|
|
33133
|
-
var _queryTableRef$
|
|
33426
|
+
var _queryTableRef$curren16, _queryTableRef$curren17, _queryTableRef$curren18;
|
|
33134
33427
|
props.onCancel();
|
|
33135
33428
|
//@ts-ignore
|
|
33136
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33429
|
+
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
33430
|
}
|
|
33138
33431
|
}, "\u53D6\u6D88"))));
|
|
33139
33432
|
});
|
|
@@ -33357,19 +33650,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33357
33650
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33358
33651
|
handSource = _useState2[0],
|
|
33359
33652
|
setHandSource = _useState2[1];
|
|
33360
|
-
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
33653
|
+
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
33361
33654
|
var resData, data;
|
|
33362
|
-
return
|
|
33363
|
-
while (1) switch (_context.
|
|
33655
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33656
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33364
33657
|
case 0:
|
|
33365
33658
|
if (!(!source && initRequestSource)) {
|
|
33366
|
-
_context.
|
|
33659
|
+
_context.next = 6;
|
|
33367
33660
|
break;
|
|
33368
33661
|
}
|
|
33369
|
-
_context.
|
|
33662
|
+
_context.next = 3;
|
|
33370
33663
|
return initRequestSource();
|
|
33371
|
-
case
|
|
33372
|
-
resData = _context.
|
|
33664
|
+
case 3:
|
|
33665
|
+
resData = _context.sent;
|
|
33373
33666
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
33374
33667
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
33375
33668
|
label: item.text,
|
|
@@ -33377,8 +33670,9 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33377
33670
|
});
|
|
33378
33671
|
})) || [];
|
|
33379
33672
|
setHandSource(data);
|
|
33380
|
-
case
|
|
33381
|
-
|
|
33673
|
+
case 6:
|
|
33674
|
+
case "end":
|
|
33675
|
+
return _context.stop();
|
|
33382
33676
|
}
|
|
33383
33677
|
}, _callee);
|
|
33384
33678
|
})), []);
|
|
@@ -33508,17 +33802,20 @@ function getRegularThresholdRange(_x) {
|
|
|
33508
33802
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
33509
33803
|
}
|
|
33510
33804
|
function _getRegularThresholdRange() {
|
|
33511
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
33512
|
-
return
|
|
33513
|
-
while (1) switch (_context.
|
|
33805
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
33806
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33807
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33514
33808
|
case 0:
|
|
33515
|
-
return _context.
|
|
33809
|
+
return _context.abrupt("return", requestUtil({
|
|
33516
33810
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
33517
33811
|
method: 'POST',
|
|
33518
33812
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
33519
33813
|
queryIdentify: undefined
|
|
33520
33814
|
})
|
|
33521
33815
|
}));
|
|
33816
|
+
case 1:
|
|
33817
|
+
case "end":
|
|
33818
|
+
return _context.stop();
|
|
33522
33819
|
}
|
|
33523
33820
|
}, _callee);
|
|
33524
33821
|
}));
|
|
@@ -33659,24 +33956,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33659
33956
|
};
|
|
33660
33957
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
33661
33958
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
33662
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33959
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
33663
33960
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
33664
|
-
return
|
|
33665
|
-
while (1) switch (_context.
|
|
33961
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33962
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33666
33963
|
case 0:
|
|
33667
33964
|
if (queryIdentify) {
|
|
33668
|
-
_context.
|
|
33965
|
+
_context.next = 2;
|
|
33669
33966
|
break;
|
|
33670
33967
|
}
|
|
33671
|
-
return _context.
|
|
33672
|
-
case
|
|
33968
|
+
return _context.abrupt("return");
|
|
33969
|
+
case 2:
|
|
33673
33970
|
thresholdQuery = _this.state.thresholdQuery;
|
|
33674
33971
|
extraRequestUrl = '';
|
|
33675
33972
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
33676
33973
|
if (!queryIdentityInfo.find(function (item) {
|
|
33677
33974
|
return item.identity == propertyCode;
|
|
33678
33975
|
})) {
|
|
33679
|
-
_context.
|
|
33976
|
+
_context.next = 10;
|
|
33680
33977
|
break;
|
|
33681
33978
|
}
|
|
33682
33979
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -33690,15 +33987,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33690
33987
|
if (!needQueryList.some(function (item) {
|
|
33691
33988
|
return !querParams[item] || !querParams[item].length;
|
|
33692
33989
|
})) {
|
|
33693
|
-
_context.
|
|
33990
|
+
_context.next = 9;
|
|
33694
33991
|
break;
|
|
33695
33992
|
}
|
|
33696
|
-
return _context.
|
|
33697
|
-
case
|
|
33993
|
+
return _context.abrupt("return");
|
|
33994
|
+
case 9:
|
|
33698
33995
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
33699
33996
|
return item.identity == propertyCode;
|
|
33700
33997
|
}).requestUrl || '';
|
|
33701
|
-
case
|
|
33998
|
+
case 10:
|
|
33702
33999
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
33703
34000
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
33704
34001
|
querParams = {
|
|
@@ -33709,7 +34006,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33709
34006
|
// querParams = { dictCode: queryIdentify }
|
|
33710
34007
|
}
|
|
33711
34008
|
if (!extraRequestUrl) {
|
|
33712
|
-
_context.
|
|
34009
|
+
_context.next = 16;
|
|
33713
34010
|
break;
|
|
33714
34011
|
}
|
|
33715
34012
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -33748,42 +34045,43 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33748
34045
|
return handleData;
|
|
33749
34046
|
}
|
|
33750
34047
|
});
|
|
33751
|
-
_context.
|
|
34048
|
+
_context.next = 29;
|
|
33752
34049
|
break;
|
|
33753
|
-
case
|
|
34050
|
+
case 16:
|
|
33754
34051
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
33755
|
-
_context.
|
|
34052
|
+
_context.next = 20;
|
|
33756
34053
|
break;
|
|
33757
34054
|
}
|
|
33758
34055
|
_this.setState({
|
|
33759
34056
|
thresholdList: queryIdentify
|
|
33760
34057
|
});
|
|
33761
|
-
_context.
|
|
34058
|
+
_context.next = 29;
|
|
33762
34059
|
break;
|
|
33763
|
-
case
|
|
34060
|
+
case 20:
|
|
33764
34061
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
33765
|
-
_context.
|
|
34062
|
+
_context.next = 24;
|
|
33766
34063
|
break;
|
|
33767
34064
|
}
|
|
33768
34065
|
// TODO待处理
|
|
33769
34066
|
_this.setState({
|
|
33770
34067
|
thresholdList: []
|
|
33771
34068
|
});
|
|
33772
|
-
_context.
|
|
34069
|
+
_context.next = 29;
|
|
33773
34070
|
break;
|
|
33774
|
-
case
|
|
34071
|
+
case 24:
|
|
33775
34072
|
querParams.queryIdentify = queryIdentify;
|
|
33776
|
-
_context.
|
|
34073
|
+
_context.next = 27;
|
|
33777
34074
|
return getRegularThresholdRange(querParams);
|
|
33778
|
-
case
|
|
33779
|
-
res = _context.
|
|
34075
|
+
case 27:
|
|
34076
|
+
res = _context.sent;
|
|
33780
34077
|
if (handleError(res)) {
|
|
33781
34078
|
_this.setState({
|
|
33782
34079
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
33783
34080
|
});
|
|
33784
34081
|
}
|
|
33785
|
-
case
|
|
33786
|
-
|
|
34082
|
+
case 29:
|
|
34083
|
+
case "end":
|
|
34084
|
+
return _context.stop();
|
|
33787
34085
|
}
|
|
33788
34086
|
}, _callee);
|
|
33789
34087
|
}));
|
|
@@ -34615,11 +34913,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34615
34913
|
isAll: true,
|
|
34616
34914
|
needNameAndCode: true,
|
|
34617
34915
|
notChangeOnSelect: true,
|
|
34618
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34619
|
-
return
|
|
34620
|
-
while (1) switch (_context2.
|
|
34916
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
34917
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
34918
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
34621
34919
|
case 0:
|
|
34622
|
-
_context2.
|
|
34920
|
+
_context2.next = 2;
|
|
34623
34921
|
return bssula.request({
|
|
34624
34922
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34625
34923
|
method: 'get',
|
|
@@ -34636,8 +34934,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34636
34934
|
return handleData;
|
|
34637
34935
|
}
|
|
34638
34936
|
});
|
|
34639
|
-
case
|
|
34640
|
-
return _context2.
|
|
34937
|
+
case 2:
|
|
34938
|
+
return _context2.abrupt("return", _context2.sent);
|
|
34939
|
+
case 3:
|
|
34940
|
+
case "end":
|
|
34941
|
+
return _context2.stop();
|
|
34641
34942
|
}
|
|
34642
34943
|
}, _callee2);
|
|
34643
34944
|
})),
|
|
@@ -34661,11 +34962,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34661
34962
|
isAll: true,
|
|
34662
34963
|
needNameAndCode: true,
|
|
34663
34964
|
notChangeOnSelect: true,
|
|
34664
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34665
|
-
return
|
|
34666
|
-
while (1) switch (_context3.
|
|
34965
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
34966
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
34967
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
34667
34968
|
case 0:
|
|
34668
|
-
_context3.
|
|
34969
|
+
_context3.next = 2;
|
|
34669
34970
|
return bssula.request({
|
|
34670
34971
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34671
34972
|
method: 'get',
|
|
@@ -34682,8 +34983,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34682
34983
|
return handleData;
|
|
34683
34984
|
}
|
|
34684
34985
|
});
|
|
34685
|
-
case
|
|
34686
|
-
return _context3.
|
|
34986
|
+
case 2:
|
|
34987
|
+
return _context3.abrupt("return", _context3.sent);
|
|
34988
|
+
case 3:
|
|
34989
|
+
case "end":
|
|
34990
|
+
return _context3.stop();
|
|
34687
34991
|
}
|
|
34688
34992
|
}, _callee3);
|
|
34689
34993
|
})),
|
|
@@ -34709,11 +35013,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34709
35013
|
isAll: true,
|
|
34710
35014
|
needNameAndCode: true,
|
|
34711
35015
|
notChangeOnSelect: true,
|
|
34712
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34713
|
-
return
|
|
34714
|
-
while (1) switch (_context4.
|
|
35016
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
35017
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
35018
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
34715
35019
|
case 0:
|
|
34716
|
-
_context4.
|
|
35020
|
+
_context4.next = 2;
|
|
34717
35021
|
return bssula.request({
|
|
34718
35022
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34719
35023
|
method: 'get',
|
|
@@ -34730,8 +35034,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34730
35034
|
return handleData;
|
|
34731
35035
|
}
|
|
34732
35036
|
});
|
|
34733
|
-
case
|
|
34734
|
-
return _context4.
|
|
35037
|
+
case 2:
|
|
35038
|
+
return _context4.abrupt("return", _context4.sent);
|
|
35039
|
+
case 3:
|
|
35040
|
+
case "end":
|
|
35041
|
+
return _context4.stop();
|
|
34735
35042
|
}
|
|
34736
35043
|
}, _callee4);
|
|
34737
35044
|
})),
|
|
@@ -35418,8 +35725,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35418
35725
|
}
|
|
35419
35726
|
}));
|
|
35420
35727
|
} else {
|
|
35421
|
-
var
|
|
35422
|
-
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((
|
|
35728
|
+
var _values10;
|
|
35729
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
35423
35730
|
return {
|
|
35424
35731
|
key: s,
|
|
35425
35732
|
label: valueNames[vIndex],
|
|
@@ -35697,8 +36004,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35697
36004
|
}
|
|
35698
36005
|
}));
|
|
35699
36006
|
} else {
|
|
35700
|
-
var
|
|
35701
|
-
var
|
|
36007
|
+
var _values11;
|
|
36008
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
35702
36009
|
return {
|
|
35703
36010
|
key: s,
|
|
35704
36011
|
label: valueNames[vIndex],
|
|
@@ -35720,7 +36027,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35720
36027
|
} : {}),
|
|
35721
36028
|
disabled: disabled,
|
|
35722
36029
|
labelInValue: true,
|
|
35723
|
-
value:
|
|
36030
|
+
value: _currentValue10,
|
|
35724
36031
|
requestConfig: {
|
|
35725
36032
|
filterInit: 'qp-code-in'
|
|
35726
36033
|
},
|
|
@@ -35813,8 +36120,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35813
36120
|
}
|
|
35814
36121
|
}));
|
|
35815
36122
|
} else {
|
|
35816
|
-
var
|
|
35817
|
-
var
|
|
36123
|
+
var _values12;
|
|
36124
|
+
var _currentValue11 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
35818
36125
|
return {
|
|
35819
36126
|
key: s,
|
|
35820
36127
|
label: valueNames[vIndex],
|
|
@@ -35836,7 +36143,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35836
36143
|
} : {}),
|
|
35837
36144
|
disabled: disabled,
|
|
35838
36145
|
labelInValue: true,
|
|
35839
|
-
value:
|
|
36146
|
+
value: _currentValue11,
|
|
35840
36147
|
requestConfig: {
|
|
35841
36148
|
filterInit: 'qp-code-in'
|
|
35842
36149
|
},
|
|
@@ -35929,8 +36236,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35929
36236
|
}
|
|
35930
36237
|
}));
|
|
35931
36238
|
} else {
|
|
35932
|
-
var
|
|
35933
|
-
var
|
|
36239
|
+
var _values13;
|
|
36240
|
+
var _currentValue12 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
|
|
35934
36241
|
return {
|
|
35935
36242
|
key: s,
|
|
35936
36243
|
label: valueNames[vIndex],
|
|
@@ -35952,7 +36259,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35952
36259
|
} : {}),
|
|
35953
36260
|
disabled: disabled,
|
|
35954
36261
|
labelInValue: true,
|
|
35955
|
-
value:
|
|
36262
|
+
value: _currentValue12,
|
|
35956
36263
|
requestConfig: {
|
|
35957
36264
|
filterInit: 'qp-brandCode-in'
|
|
35958
36265
|
},
|
|
@@ -36143,8 +36450,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36143
36450
|
}
|
|
36144
36451
|
}));
|
|
36145
36452
|
} else {
|
|
36146
|
-
var
|
|
36147
|
-
var
|
|
36453
|
+
var _values14;
|
|
36454
|
+
var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
|
|
36148
36455
|
return {
|
|
36149
36456
|
key: s,
|
|
36150
36457
|
label: valueNames[vIndex]
|
|
@@ -36172,7 +36479,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36172
36479
|
isSearchForm: true,
|
|
36173
36480
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36174
36481
|
disabled: disabled,
|
|
36175
|
-
value:
|
|
36482
|
+
value: _currentValue13,
|
|
36176
36483
|
onChange: function onChange(value, sourceList) {
|
|
36177
36484
|
if (dataInputBusinessType === 12) {
|
|
36178
36485
|
var _value$map3, _sourceList$filter3;
|
|
@@ -36492,9 +36799,9 @@ var App$1 = function App(_ref) {
|
|
|
36492
36799
|
UpdateState(res);
|
|
36493
36800
|
};
|
|
36494
36801
|
var _useState9 = React$1.useState(false),
|
|
36495
|
-
|
|
36496
|
-
isModalVisible =
|
|
36497
|
-
setIsModalVisible =
|
|
36802
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
36803
|
+
isModalVisible = _useState10[0],
|
|
36804
|
+
setIsModalVisible = _useState10[1];
|
|
36498
36805
|
var showModal = function showModal() {
|
|
36499
36806
|
setIsModalVisible(true);
|
|
36500
36807
|
};
|
|
@@ -36975,26 +37282,27 @@ function RenderCompItem(props) {
|
|
|
36975
37282
|
dictData = _useState2[0],
|
|
36976
37283
|
setDictData = _useState2[1];
|
|
36977
37284
|
var getDictData = /*#__PURE__*/function () {
|
|
36978
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
37285
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
36979
37286
|
var _data$map;
|
|
36980
37287
|
var data;
|
|
36981
|
-
return
|
|
36982
|
-
while (1) switch (_context.
|
|
37288
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
37289
|
+
while (1) switch (_context.prev = _context.next) {
|
|
36983
37290
|
case 0:
|
|
36984
|
-
_context.
|
|
37291
|
+
_context.next = 2;
|
|
36985
37292
|
return bssula.request({
|
|
36986
37293
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
36987
37294
|
});
|
|
36988
|
-
case
|
|
36989
|
-
data = _context.
|
|
37295
|
+
case 2:
|
|
37296
|
+
data = _context.sent;
|
|
36990
37297
|
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
37298
|
return {
|
|
36992
37299
|
text: item.dictItemName,
|
|
36993
37300
|
value: item.dictItemCode
|
|
36994
37301
|
};
|
|
36995
37302
|
}));
|
|
36996
|
-
case
|
|
36997
|
-
|
|
37303
|
+
case 4:
|
|
37304
|
+
case "end":
|
|
37305
|
+
return _context.stop();
|
|
36998
37306
|
}
|
|
36999
37307
|
}, _callee);
|
|
37000
37308
|
}));
|
|
@@ -37235,11 +37543,11 @@ function RenderCompItem(props) {
|
|
|
37235
37543
|
needNameAndCode: true,
|
|
37236
37544
|
notChangeOnSelect: true,
|
|
37237
37545
|
initRequestSource: function () {
|
|
37238
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
37239
|
-
return
|
|
37240
|
-
while (1) switch (_context2.
|
|
37546
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
37547
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
37548
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
37241
37549
|
case 0:
|
|
37242
|
-
_context2.
|
|
37550
|
+
_context2.next = 2;
|
|
37243
37551
|
return bssula.request({
|
|
37244
37552
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
37245
37553
|
method: 'get',
|
|
@@ -37257,8 +37565,11 @@ function RenderCompItem(props) {
|
|
|
37257
37565
|
return handleData;
|
|
37258
37566
|
}
|
|
37259
37567
|
});
|
|
37260
|
-
case
|
|
37261
|
-
return _context2.
|
|
37568
|
+
case 2:
|
|
37569
|
+
return _context2.abrupt("return", _context2.sent);
|
|
37570
|
+
case 3:
|
|
37571
|
+
case "end":
|
|
37572
|
+
return _context2.stop();
|
|
37262
37573
|
}
|
|
37263
37574
|
}, _callee2);
|
|
37264
37575
|
}));
|
|
@@ -39308,13 +39619,13 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
39308
39619
|
ruleTypeData = _useState8[0],
|
|
39309
39620
|
setRuleTypeData = _useState8[1];
|
|
39310
39621
|
var _useState9 = React$1.useState([]),
|
|
39311
|
-
|
|
39312
|
-
ruleReturnConfig =
|
|
39313
|
-
setRuleReturnConfig =
|
|
39314
|
-
var
|
|
39315
|
-
|
|
39316
|
-
templateData =
|
|
39317
|
-
setTemplateData =
|
|
39622
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
39623
|
+
ruleReturnConfig = _useState10[0],
|
|
39624
|
+
setRuleReturnConfig = _useState10[1];
|
|
39625
|
+
var _useState11 = React$1.useState({}),
|
|
39626
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
39627
|
+
templateData = _useState12[0],
|
|
39628
|
+
setTemplateData = _useState12[1];
|
|
39318
39629
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
39319
39630
|
bssula.request({
|
|
39320
39631
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -39650,25 +39961,25 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
39650
39961
|
regularDataList = _useState8[0],
|
|
39651
39962
|
setRegularDataList = _useState8[1];
|
|
39652
39963
|
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),
|
|
39964
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
39965
|
+
baseRuleDetailList = _useState10[0],
|
|
39966
|
+
setBaseRuleDetailList = _useState10[1]; // 规则实例详情集合
|
|
39967
|
+
var _useState11 = React$1.useState([]),
|
|
39661
39968
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
39662
|
-
|
|
39663
|
-
|
|
39969
|
+
systemVariableList = _useState12[0],
|
|
39970
|
+
setSystemVariableList = _useState12[1];
|
|
39664
39971
|
var _useState13 = React$1.useState(false),
|
|
39665
39972
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
39666
|
-
|
|
39667
|
-
|
|
39973
|
+
isGetDefRuleDataRes = _useState14[0],
|
|
39974
|
+
setIsGetDefRuleDataRes = _useState14[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
39668
39975
|
var _useState15 = React$1.useState(false),
|
|
39669
39976
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
39670
|
-
|
|
39671
|
-
|
|
39977
|
+
isGetRuleDataRes = _useState16[0],
|
|
39978
|
+
setIsGetRuleDataRes = _useState16[1];
|
|
39979
|
+
var _useState17 = React$1.useState(false),
|
|
39980
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
39981
|
+
groupOtherPriorityList = _useState18[0],
|
|
39982
|
+
setGroupOtherPriorityList = _useState18[1];
|
|
39672
39983
|
var baseRuleRef = React$1.useRef();
|
|
39673
39984
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
39674
39985
|
// 查询规则组下所有规则实例
|
|
@@ -39992,85 +40303,6 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
39992
40303
|
}, children));
|
|
39993
40304
|
};
|
|
39994
40305
|
|
|
39995
|
-
//操作日志
|
|
39996
|
-
var SystemLog = function SystemLog(_ref) {
|
|
39997
|
-
var modeType = _ref.modeType,
|
|
39998
|
-
code = _ref.code,
|
|
39999
|
-
containerName = _ref.containerName,
|
|
40000
|
-
_ref$renderLogRef = _ref.renderLogRef,
|
|
40001
|
-
renderLogRef = _ref$renderLogRef === void 0 ? {} : _ref$renderLogRef,
|
|
40002
|
-
_ref$extraParams = _ref.extraParams,
|
|
40003
|
-
extraParams = _ref$extraParams === void 0 ? {} : _ref$extraParams;
|
|
40004
|
-
return _objectSpread2(_objectSpread2({}, formContainerAndItemLayout('table', '操作日志', containerName)), {}, {
|
|
40005
|
-
initialVisible: modeType != 'create',
|
|
40006
|
-
fields: [{
|
|
40007
|
-
name: 'table',
|
|
40008
|
-
label: false,
|
|
40009
|
-
itemLayout: {
|
|
40010
|
-
span: 24,
|
|
40011
|
-
labelCol: {
|
|
40012
|
-
span: 0
|
|
40013
|
-
},
|
|
40014
|
-
wrapperCol: {
|
|
40015
|
-
span: 24
|
|
40016
|
-
}
|
|
40017
|
-
},
|
|
40018
|
-
field: function field(ctx) {
|
|
40019
|
-
return code && /*#__PURE__*/React__default['default'].createElement(bssula.Table, {
|
|
40020
|
-
remoteDataSource: {
|
|
40021
|
-
url: "/oms-ops/logInfo?qp-businessCode-eq=".concat(code),
|
|
40022
|
-
convertParams: function convertParams(_ref2) {
|
|
40023
|
-
var params = _ref2.params;
|
|
40024
|
-
return _objectSpread2({
|
|
40025
|
-
pageSize: params.pageSize,
|
|
40026
|
-
currentPage: params.current
|
|
40027
|
-
}, extraParams);
|
|
40028
|
-
},
|
|
40029
|
-
converter: function converter(_ref3) {
|
|
40030
|
-
var data = _ref3.data;
|
|
40031
|
-
return _objectSpread2({}, handleConvertResponse(data.list, data.total || data.totalCount));
|
|
40032
|
-
}
|
|
40033
|
-
},
|
|
40034
|
-
columns: [{
|
|
40035
|
-
title: '操作人',
|
|
40036
|
-
dataIndex: 'handlerName'
|
|
40037
|
-
}, {
|
|
40038
|
-
title: '操作名称',
|
|
40039
|
-
dataIndex: 'handlerType'
|
|
40040
|
-
}, {
|
|
40041
|
-
title: '操作时间',
|
|
40042
|
-
dataIndex: 'handlerTime',
|
|
40043
|
-
render: function render(_ref4) {
|
|
40044
|
-
var text = _ref4.text;
|
|
40045
|
-
return handleCommonTimeRender$1(text);
|
|
40046
|
-
}
|
|
40047
|
-
}, {
|
|
40048
|
-
title: '操作内容',
|
|
40049
|
-
dataIndex: 'logcontent'
|
|
40050
|
-
}],
|
|
40051
|
-
style: {
|
|
40052
|
-
width: '100%',
|
|
40053
|
-
marginTop: '-16px',
|
|
40054
|
-
padding: '0px'
|
|
40055
|
-
},
|
|
40056
|
-
rowKey: "id",
|
|
40057
|
-
scroll: {
|
|
40058
|
-
x: 'max-content'
|
|
40059
|
-
},
|
|
40060
|
-
pagination: {
|
|
40061
|
-
showTotal: function showTotal(total) {
|
|
40062
|
-
return "\u5171 ".concat(total, " \u6761");
|
|
40063
|
-
},
|
|
40064
|
-
showQuickJumper: true,
|
|
40065
|
-
hideOnSinglePage: true
|
|
40066
|
-
},
|
|
40067
|
-
ref: renderLogRef
|
|
40068
|
-
});
|
|
40069
|
-
}
|
|
40070
|
-
}]
|
|
40071
|
-
});
|
|
40072
|
-
};
|
|
40073
|
-
|
|
40074
40306
|
exports.AddSelect = AddSelect;
|
|
40075
40307
|
exports.AddSkcSelect = AddSkcSelect;
|
|
40076
40308
|
exports.AddSkuSelect = AddSkuSelect;
|
|
@@ -40109,7 +40341,6 @@ exports.SearchSelect = SearchSelect;
|
|
|
40109
40341
|
exports.Section = Section;
|
|
40110
40342
|
exports.StateFlow = index$2;
|
|
40111
40343
|
exports.SulaColumnSettingTable = ColumnSettingSulaTable;
|
|
40112
|
-
exports.SystemLog = SystemLog;
|
|
40113
40344
|
exports.TableColumnSetting = TableColumnSetting;
|
|
40114
40345
|
exports.TreeSearchSelect = TreeSearchSelect;
|
|
40115
40346
|
exports.authFunc = authFunc;
|
|
@@ -40119,7 +40350,6 @@ exports.coverToParallel = _coverToParallel;
|
|
|
40119
40350
|
exports.createUniqID = createUniqID;
|
|
40120
40351
|
exports.downloadExcel = downloadExcel;
|
|
40121
40352
|
exports.ergodicMenuRoutes = ergodicMenuRoutes;
|
|
40122
|
-
exports.formContainerAndItemLayout = formContainerAndItemLayout;
|
|
40123
40353
|
exports.formatter = _formatter;
|
|
40124
40354
|
exports.getAccountID = getAccountID;
|
|
40125
40355
|
exports.getAccountId = getAccountId;
|